@wildix/xbees-users-client 1.0.33 → 1.0.35
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.
- package/dist-cjs/Users.js +0 -2
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/models/models_0.js +37 -1
- package/dist-cjs/protocols/Aws_restJson1.js +120 -36
- package/dist-es/Users.js +0 -2
- package/dist-es/commands/index.js +0 -1
- package/dist-es/models/models_0.js +36 -0
- package/dist-es/protocols/Aws_restJson1.js +120 -34
- package/dist-types/Users.d.ts +0 -7
- package/dist-types/UsersClient.d.ts +2 -3
- package/dist-types/commands/CreateBotCommand.d.ts +49 -0
- package/dist-types/commands/GetBotCallbackCommand.d.ts +49 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +217 -32
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -9
- package/package.json +5 -5
- package/dist-cjs/commands/IntelligenceSearchCommand.js +0 -21
- package/dist-es/commands/IntelligenceSearchCommand.js +0 -17
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +0 -73
|
@@ -42,6 +42,55 @@ declare const CreateBotCommand_base: {
|
|
|
42
42
|
* searchable: true || false,
|
|
43
43
|
* callback: { // BotCallback
|
|
44
44
|
* endpoint: { // BotEndpoint Union: only one key present
|
|
45
|
+
* llm: { // BotLlmEndpoint
|
|
46
|
+
* prompt: "STRING_VALUE", // required
|
|
47
|
+
* embeddedTools: [ // BotLlmEmbeddedToolsList
|
|
48
|
+
* { // BotLlmEmbeddedTool
|
|
49
|
+
* type: "HANDOVER" || "DELEGATE", // required
|
|
50
|
+
* name: "STRING_VALUE", // required
|
|
51
|
+
* parameters: "DOCUMENT_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* tools: [ // BotLlmToolsList
|
|
55
|
+
* { // BotLlmTool
|
|
56
|
+
* type: "function", // required
|
|
57
|
+
* function: { // BotLlmFunctionDefinition
|
|
58
|
+
* name: "STRING_VALUE", // required
|
|
59
|
+
* description: "STRING_VALUE",
|
|
60
|
+
* parameters: "DOCUMENT_VALUE",
|
|
61
|
+
* integration: { // BotLlmFunctionIntegration Union: only one key present
|
|
62
|
+
* webhook: { // BotLlmFunctionIntegrationWebhook
|
|
63
|
+
* url: "STRING_VALUE", // required
|
|
64
|
+
* method: "get" || "post" || "put" || "delete" || "patch",
|
|
65
|
+
* async: true || false,
|
|
66
|
+
* authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
67
|
+
* bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
68
|
+
* token: "STRING_VALUE", // required
|
|
69
|
+
* },
|
|
70
|
+
* basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
71
|
+
* username: "STRING_VALUE", // required
|
|
72
|
+
* password: "STRING_VALUE", // required
|
|
73
|
+
* },
|
|
74
|
+
* oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
|
|
75
|
+
* clientId: "STRING_VALUE", // required
|
|
76
|
+
* clientSecret: "STRING_VALUE", // required
|
|
77
|
+
* endpointUrl: "STRING_VALUE", // required
|
|
78
|
+
* scope: "STRING_VALUE",
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
|
|
82
|
+
* { // BotLlmFunctionIntegrationWebhookHeader
|
|
83
|
+
* key: "STRING_VALUE", // required
|
|
84
|
+
* value: "STRING_VALUE", // required
|
|
85
|
+
* },
|
|
86
|
+
* ],
|
|
87
|
+
* parameters: "DOCUMENT_VALUE",
|
|
88
|
+
* },
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* },
|
|
45
94
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
46
95
|
* credentials: "DOCUMENT_VALUE", // required
|
|
47
96
|
* agent: "STRING_VALUE", // required
|
|
@@ -44,6 +44,55 @@ declare const GetBotCallbackCommand_base: {
|
|
|
44
44
|
* // { // GetBotCallbackOutput
|
|
45
45
|
* // callback: { // BotCallback
|
|
46
46
|
* // endpoint: { // BotEndpoint Union: only one key present
|
|
47
|
+
* // llm: { // BotLlmEndpoint
|
|
48
|
+
* // prompt: "STRING_VALUE", // required
|
|
49
|
+
* // embeddedTools: [ // BotLlmEmbeddedToolsList
|
|
50
|
+
* // { // BotLlmEmbeddedTool
|
|
51
|
+
* // type: "HANDOVER" || "DELEGATE", // required
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // tools: [ // BotLlmToolsList
|
|
57
|
+
* // { // BotLlmTool
|
|
58
|
+
* // type: "function", // required
|
|
59
|
+
* // function: { // BotLlmFunctionDefinition
|
|
60
|
+
* // name: "STRING_VALUE", // required
|
|
61
|
+
* // description: "STRING_VALUE",
|
|
62
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
63
|
+
* // integration: { // BotLlmFunctionIntegration Union: only one key present
|
|
64
|
+
* // webhook: { // BotLlmFunctionIntegrationWebhook
|
|
65
|
+
* // url: "STRING_VALUE", // required
|
|
66
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
67
|
+
* // async: true || false,
|
|
68
|
+
* // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
69
|
+
* // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
70
|
+
* // token: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
73
|
+
* // username: "STRING_VALUE", // required
|
|
74
|
+
* // password: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
|
|
77
|
+
* // clientId: "STRING_VALUE", // required
|
|
78
|
+
* // clientSecret: "STRING_VALUE", // required
|
|
79
|
+
* // endpointUrl: "STRING_VALUE", // required
|
|
80
|
+
* // scope: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
|
|
84
|
+
* // { // BotLlmFunctionIntegrationWebhookHeader
|
|
85
|
+
* // key: "STRING_VALUE", // required
|
|
86
|
+
* // value: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
90
|
+
* // },
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // ],
|
|
95
|
+
* // },
|
|
47
96
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
48
97
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
49
98
|
* // agent: "STRING_VALUE", // required
|
|
@@ -40,6 +40,55 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
40
40
|
* botId: "STRING_VALUE", // required
|
|
41
41
|
* callback: { // BotCallback
|
|
42
42
|
* endpoint: { // BotEndpoint Union: only one key present
|
|
43
|
+
* llm: { // BotLlmEndpoint
|
|
44
|
+
* prompt: "STRING_VALUE", // required
|
|
45
|
+
* embeddedTools: [ // BotLlmEmbeddedToolsList
|
|
46
|
+
* { // BotLlmEmbeddedTool
|
|
47
|
+
* type: "HANDOVER" || "DELEGATE", // required
|
|
48
|
+
* name: "STRING_VALUE", // required
|
|
49
|
+
* parameters: "DOCUMENT_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* tools: [ // BotLlmToolsList
|
|
53
|
+
* { // BotLlmTool
|
|
54
|
+
* type: "function", // required
|
|
55
|
+
* function: { // BotLlmFunctionDefinition
|
|
56
|
+
* name: "STRING_VALUE", // required
|
|
57
|
+
* description: "STRING_VALUE",
|
|
58
|
+
* parameters: "DOCUMENT_VALUE",
|
|
59
|
+
* integration: { // BotLlmFunctionIntegration Union: only one key present
|
|
60
|
+
* webhook: { // BotLlmFunctionIntegrationWebhook
|
|
61
|
+
* url: "STRING_VALUE", // required
|
|
62
|
+
* method: "get" || "post" || "put" || "delete" || "patch",
|
|
63
|
+
* async: true || false,
|
|
64
|
+
* authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
65
|
+
* bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
66
|
+
* token: "STRING_VALUE", // required
|
|
67
|
+
* },
|
|
68
|
+
* basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
69
|
+
* username: "STRING_VALUE", // required
|
|
70
|
+
* password: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
72
|
+
* oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
|
|
73
|
+
* clientId: "STRING_VALUE", // required
|
|
74
|
+
* clientSecret: "STRING_VALUE", // required
|
|
75
|
+
* endpointUrl: "STRING_VALUE", // required
|
|
76
|
+
* scope: "STRING_VALUE",
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
|
|
80
|
+
* { // BotLlmFunctionIntegrationWebhookHeader
|
|
81
|
+
* key: "STRING_VALUE", // required
|
|
82
|
+
* value: "STRING_VALUE", // required
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* parameters: "DOCUMENT_VALUE",
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* },
|
|
43
92
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
44
93
|
* credentials: "DOCUMENT_VALUE", // required
|
|
45
94
|
* agent: "STRING_VALUE", // required
|
|
@@ -67,6 +116,55 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
67
116
|
* // { // UpdateBotCallbackOutput
|
|
68
117
|
* // callback: { // BotCallback
|
|
69
118
|
* // endpoint: { // BotEndpoint Union: only one key present
|
|
119
|
+
* // llm: { // BotLlmEndpoint
|
|
120
|
+
* // prompt: "STRING_VALUE", // required
|
|
121
|
+
* // embeddedTools: [ // BotLlmEmbeddedToolsList
|
|
122
|
+
* // { // BotLlmEmbeddedTool
|
|
123
|
+
* // type: "HANDOVER" || "DELEGATE", // required
|
|
124
|
+
* // name: "STRING_VALUE", // required
|
|
125
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
126
|
+
* // },
|
|
127
|
+
* // ],
|
|
128
|
+
* // tools: [ // BotLlmToolsList
|
|
129
|
+
* // { // BotLlmTool
|
|
130
|
+
* // type: "function", // required
|
|
131
|
+
* // function: { // BotLlmFunctionDefinition
|
|
132
|
+
* // name: "STRING_VALUE", // required
|
|
133
|
+
* // description: "STRING_VALUE",
|
|
134
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
135
|
+
* // integration: { // BotLlmFunctionIntegration Union: only one key present
|
|
136
|
+
* // webhook: { // BotLlmFunctionIntegrationWebhook
|
|
137
|
+
* // url: "STRING_VALUE", // required
|
|
138
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
139
|
+
* // async: true || false,
|
|
140
|
+
* // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
141
|
+
* // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
142
|
+
* // token: "STRING_VALUE", // required
|
|
143
|
+
* // },
|
|
144
|
+
* // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
145
|
+
* // username: "STRING_VALUE", // required
|
|
146
|
+
* // password: "STRING_VALUE", // required
|
|
147
|
+
* // },
|
|
148
|
+
* // oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
|
|
149
|
+
* // clientId: "STRING_VALUE", // required
|
|
150
|
+
* // clientSecret: "STRING_VALUE", // required
|
|
151
|
+
* // endpointUrl: "STRING_VALUE", // required
|
|
152
|
+
* // scope: "STRING_VALUE",
|
|
153
|
+
* // },
|
|
154
|
+
* // },
|
|
155
|
+
* // headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
|
|
156
|
+
* // { // BotLlmFunctionIntegrationWebhookHeader
|
|
157
|
+
* // key: "STRING_VALUE", // required
|
|
158
|
+
* // value: "STRING_VALUE", // required
|
|
159
|
+
* // },
|
|
160
|
+
* // ],
|
|
161
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
162
|
+
* // },
|
|
163
|
+
* // },
|
|
164
|
+
* // },
|
|
165
|
+
* // },
|
|
166
|
+
* // ],
|
|
167
|
+
* // },
|
|
70
168
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
71
169
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
72
170
|
* // agent: "STRING_VALUE", // required
|
|
@@ -13,7 +13,6 @@ export * from "./GetUserCommand";
|
|
|
13
13
|
export * from "./GetUserPbxLinkDataCommand";
|
|
14
14
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
15
15
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
16
|
-
export * from "./IntelligenceSearchCommand";
|
|
17
16
|
export * from "./ListBotApiKeysCommand";
|
|
18
17
|
export * from "./ListBotsCommand";
|
|
19
18
|
export * from "./QueryColleaguesCommand";
|
|
@@ -520,15 +520,226 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
|
|
|
520
520
|
*/
|
|
521
521
|
constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
|
|
522
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* @public
|
|
525
|
+
* @enum
|
|
526
|
+
*/
|
|
527
|
+
export declare const BotLlmEmbeddedToolType: {
|
|
528
|
+
readonly DELEGATE: "DELEGATE";
|
|
529
|
+
readonly HANDOVER: "HANDOVER";
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
*/
|
|
534
|
+
export type BotLlmEmbeddedToolType = typeof BotLlmEmbeddedToolType[keyof typeof BotLlmEmbeddedToolType];
|
|
535
|
+
/**
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
export interface BotLlmEmbeddedTool {
|
|
539
|
+
type: BotLlmEmbeddedToolType;
|
|
540
|
+
name: string;
|
|
541
|
+
/**
|
|
542
|
+
* The parameters the functions accepts.
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
parameters?: __DocumentType;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
export interface BotLlmFunctionIntegrationWebhookAuthorizationBasic {
|
|
551
|
+
username: string;
|
|
552
|
+
password: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* @public
|
|
556
|
+
*/
|
|
557
|
+
export interface BotLlmFunctionIntegrationWebhookAuthorizationBearer {
|
|
558
|
+
token: string;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @public
|
|
562
|
+
*/
|
|
563
|
+
export interface BotLlmFunctionIntegrationWebhookAuthorizationOAuth {
|
|
564
|
+
clientId: string;
|
|
565
|
+
clientSecret: string;
|
|
566
|
+
endpointUrl: string;
|
|
567
|
+
scope?: string;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
export type BotLlmFunctionIntegrationWebhookAuthorization = BotLlmFunctionIntegrationWebhookAuthorization.BasicMember | BotLlmFunctionIntegrationWebhookAuthorization.BearerMember | BotLlmFunctionIntegrationWebhookAuthorization.OauthMember | BotLlmFunctionIntegrationWebhookAuthorization.$UnknownMember;
|
|
573
|
+
/**
|
|
574
|
+
* @public
|
|
575
|
+
*/
|
|
576
|
+
export declare namespace BotLlmFunctionIntegrationWebhookAuthorization {
|
|
577
|
+
interface BearerMember {
|
|
578
|
+
bearer: BotLlmFunctionIntegrationWebhookAuthorizationBearer;
|
|
579
|
+
basic?: never;
|
|
580
|
+
oauth?: never;
|
|
581
|
+
$unknown?: never;
|
|
582
|
+
}
|
|
583
|
+
interface BasicMember {
|
|
584
|
+
bearer?: never;
|
|
585
|
+
basic: BotLlmFunctionIntegrationWebhookAuthorizationBasic;
|
|
586
|
+
oauth?: never;
|
|
587
|
+
$unknown?: never;
|
|
588
|
+
}
|
|
589
|
+
interface OauthMember {
|
|
590
|
+
bearer?: never;
|
|
591
|
+
basic?: never;
|
|
592
|
+
oauth: BotLlmFunctionIntegrationWebhookAuthorizationOAuth;
|
|
593
|
+
$unknown?: never;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
*/
|
|
598
|
+
interface $UnknownMember {
|
|
599
|
+
bearer?: never;
|
|
600
|
+
basic?: never;
|
|
601
|
+
oauth?: never;
|
|
602
|
+
$unknown: [string, any];
|
|
603
|
+
}
|
|
604
|
+
interface Visitor<T> {
|
|
605
|
+
bearer: (value: BotLlmFunctionIntegrationWebhookAuthorizationBearer) => T;
|
|
606
|
+
basic: (value: BotLlmFunctionIntegrationWebhookAuthorizationBasic) => T;
|
|
607
|
+
oauth: (value: BotLlmFunctionIntegrationWebhookAuthorizationOAuth) => T;
|
|
608
|
+
_: (name: string, value: any) => T;
|
|
609
|
+
}
|
|
610
|
+
const visit: <T>(value: BotLlmFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* @public
|
|
614
|
+
*/
|
|
615
|
+
export interface BotLlmFunctionIntegrationWebhookHeader {
|
|
616
|
+
key: string;
|
|
617
|
+
value: string;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @public
|
|
621
|
+
* @enum
|
|
622
|
+
*/
|
|
623
|
+
export declare const BotLlmFunctionIntegrationMethod: {
|
|
624
|
+
readonly DELETE: "delete";
|
|
625
|
+
readonly GET: "get";
|
|
626
|
+
readonly PATCH: "patch";
|
|
627
|
+
readonly POST: "post";
|
|
628
|
+
readonly PUT: "put";
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
633
|
+
export type BotLlmFunctionIntegrationMethod = typeof BotLlmFunctionIntegrationMethod[keyof typeof BotLlmFunctionIntegrationMethod];
|
|
523
634
|
/**
|
|
524
635
|
* @public
|
|
525
636
|
*/
|
|
526
|
-
export
|
|
637
|
+
export interface BotLlmFunctionIntegrationWebhook {
|
|
638
|
+
url: string;
|
|
639
|
+
method?: BotLlmFunctionIntegrationMethod;
|
|
640
|
+
async?: boolean;
|
|
641
|
+
authorization?: BotLlmFunctionIntegrationWebhookAuthorization;
|
|
642
|
+
headers?: (BotLlmFunctionIntegrationWebhookHeader)[];
|
|
643
|
+
parameters?: __DocumentType;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
|
|
649
|
+
/**
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
export declare namespace BotLlmFunctionIntegration {
|
|
653
|
+
interface WebhookMember {
|
|
654
|
+
webhook: BotLlmFunctionIntegrationWebhook;
|
|
655
|
+
$unknown?: never;
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
*/
|
|
660
|
+
interface $UnknownMember {
|
|
661
|
+
webhook?: never;
|
|
662
|
+
$unknown: [string, any];
|
|
663
|
+
}
|
|
664
|
+
interface Visitor<T> {
|
|
665
|
+
webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
|
|
666
|
+
_: (name: string, value: any) => T;
|
|
667
|
+
}
|
|
668
|
+
const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
export interface BotLlmFunctionDefinition {
|
|
674
|
+
/**
|
|
675
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
name: string;
|
|
679
|
+
/**
|
|
680
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
681
|
+
* @public
|
|
682
|
+
*/
|
|
683
|
+
description?: string;
|
|
684
|
+
/**
|
|
685
|
+
* The parameters the functions accepts, described as a JSON Schema object.
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
parameters?: __DocumentType;
|
|
689
|
+
integration?: BotLlmFunctionIntegration;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* @public
|
|
693
|
+
* @enum
|
|
694
|
+
*/
|
|
695
|
+
export declare const BotLlmToolType: {
|
|
696
|
+
readonly FUNCTION: "function";
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* @public
|
|
700
|
+
*/
|
|
701
|
+
export type BotLlmToolType = typeof BotLlmToolType[keyof typeof BotLlmToolType];
|
|
702
|
+
/**
|
|
703
|
+
* @public
|
|
704
|
+
*/
|
|
705
|
+
export interface BotLlmTool {
|
|
706
|
+
type: BotLlmToolType;
|
|
707
|
+
function?: BotLlmFunctionDefinition;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* @public
|
|
711
|
+
*/
|
|
712
|
+
export interface BotLlmEndpoint {
|
|
713
|
+
prompt: string;
|
|
714
|
+
/**
|
|
715
|
+
* Embedded functions to use within chat session.
|
|
716
|
+
* @public
|
|
717
|
+
*/
|
|
718
|
+
embeddedTools?: (BotLlmEmbeddedTool)[];
|
|
719
|
+
/**
|
|
720
|
+
* Custom tools to be used within chat session.
|
|
721
|
+
* @public
|
|
722
|
+
*/
|
|
723
|
+
tools?: (BotLlmTool)[];
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
export type BotEndpoint = BotEndpoint.DialogflowCxMember | BotEndpoint.LlmMember | BotEndpoint.OpenAiAssistantMember | BotEndpoint.SqsMember | BotEndpoint.WebhookMember | BotEndpoint.$UnknownMember;
|
|
527
729
|
/**
|
|
528
730
|
* @public
|
|
529
731
|
*/
|
|
530
732
|
export declare namespace BotEndpoint {
|
|
733
|
+
interface LlmMember {
|
|
734
|
+
llm: BotLlmEndpoint;
|
|
735
|
+
dialogflowCx?: never;
|
|
736
|
+
openAiAssistant?: never;
|
|
737
|
+
webhook?: never;
|
|
738
|
+
sqs?: never;
|
|
739
|
+
$unknown?: never;
|
|
740
|
+
}
|
|
531
741
|
interface DialogflowCxMember {
|
|
742
|
+
llm?: never;
|
|
532
743
|
dialogflowCx: BotDialogflowCxEndpoint;
|
|
533
744
|
openAiAssistant?: never;
|
|
534
745
|
webhook?: never;
|
|
@@ -536,6 +747,7 @@ export declare namespace BotEndpoint {
|
|
|
536
747
|
$unknown?: never;
|
|
537
748
|
}
|
|
538
749
|
interface OpenAiAssistantMember {
|
|
750
|
+
llm?: never;
|
|
539
751
|
dialogflowCx?: never;
|
|
540
752
|
openAiAssistant: BotOpenAiAssistantEndpoint;
|
|
541
753
|
webhook?: never;
|
|
@@ -543,6 +755,7 @@ export declare namespace BotEndpoint {
|
|
|
543
755
|
$unknown?: never;
|
|
544
756
|
}
|
|
545
757
|
interface WebhookMember {
|
|
758
|
+
llm?: never;
|
|
546
759
|
dialogflowCx?: never;
|
|
547
760
|
openAiAssistant?: never;
|
|
548
761
|
webhook: BotWebhookEndpoint;
|
|
@@ -550,6 +763,7 @@ export declare namespace BotEndpoint {
|
|
|
550
763
|
$unknown?: never;
|
|
551
764
|
}
|
|
552
765
|
interface SqsMember {
|
|
766
|
+
llm?: never;
|
|
553
767
|
dialogflowCx?: never;
|
|
554
768
|
openAiAssistant?: never;
|
|
555
769
|
webhook?: never;
|
|
@@ -560,6 +774,7 @@ export declare namespace BotEndpoint {
|
|
|
560
774
|
* @public
|
|
561
775
|
*/
|
|
562
776
|
interface $UnknownMember {
|
|
777
|
+
llm?: never;
|
|
563
778
|
dialogflowCx?: never;
|
|
564
779
|
openAiAssistant?: never;
|
|
565
780
|
webhook?: never;
|
|
@@ -567,6 +782,7 @@ export declare namespace BotEndpoint {
|
|
|
567
782
|
$unknown: [string, any];
|
|
568
783
|
}
|
|
569
784
|
interface Visitor<T> {
|
|
785
|
+
llm: (value: BotLlmEndpoint) => T;
|
|
570
786
|
dialogflowCx: (value: BotDialogflowCxEndpoint) => T;
|
|
571
787
|
openAiAssistant: (value: BotOpenAiAssistantEndpoint) => T;
|
|
572
788
|
webhook: (value: BotWebhookEndpoint) => T;
|
|
@@ -751,15 +967,6 @@ export interface DeleteBotApiKeyInput {
|
|
|
751
967
|
*/
|
|
752
968
|
export interface DeleteBotApiKeyOutput {
|
|
753
969
|
}
|
|
754
|
-
/**
|
|
755
|
-
* @public
|
|
756
|
-
*/
|
|
757
|
-
export interface DirectoryItem {
|
|
758
|
-
extension?: string;
|
|
759
|
-
name?: string;
|
|
760
|
-
department?: string;
|
|
761
|
-
group?: string;
|
|
762
|
-
}
|
|
763
970
|
/**
|
|
764
971
|
* @public
|
|
765
972
|
*/
|
|
@@ -873,28 +1080,6 @@ export interface GetUserPbxLinkSuggestionV1Output {
|
|
|
873
1080
|
*/
|
|
874
1081
|
suggestion?: UserPbxLinkSuggestion;
|
|
875
1082
|
}
|
|
876
|
-
/**
|
|
877
|
-
* @public
|
|
878
|
-
*/
|
|
879
|
-
export interface IntelligenceSearchInput {
|
|
880
|
-
/**
|
|
881
|
-
* The unique identifier of the tenant when a service token is used. Only for s2s auth
|
|
882
|
-
* @public
|
|
883
|
-
*/
|
|
884
|
-
company?: string;
|
|
885
|
-
search: string;
|
|
886
|
-
/**
|
|
887
|
-
* Optional extension to exclude from search results. Used to prevent returning the caller's own record when searching.
|
|
888
|
-
* @public
|
|
889
|
-
*/
|
|
890
|
-
excludeExtension?: string;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @public
|
|
894
|
-
*/
|
|
895
|
-
export interface IntelligenceSearchOutput {
|
|
896
|
-
items: (DirectoryItem)[];
|
|
897
|
-
}
|
|
898
1083
|
/**
|
|
899
1084
|
* @public
|
|
900
1085
|
*/
|
|
@@ -13,7 +13,6 @@ import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCo
|
|
|
13
13
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
|
|
14
14
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
|
|
15
15
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
|
|
16
|
-
import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "../commands/IntelligenceSearchCommand";
|
|
17
16
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
18
17
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
19
18
|
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "../commands/QueryColleaguesCommand";
|
|
@@ -87,10 +86,6 @@ export declare const se_GetUserPbxLinkSuggestionCommand: (input: GetUserPbxLinkS
|
|
|
87
86
|
* serializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
88
87
|
*/
|
|
89
88
|
export declare const se_GetUserPbxLinkSuggestionV1Command: (input: GetUserPbxLinkSuggestionV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
90
|
-
/**
|
|
91
|
-
* serializeAws_restJson1IntelligenceSearchCommand
|
|
92
|
-
*/
|
|
93
|
-
export declare const se_IntelligenceSearchCommand: (input: IntelligenceSearchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
94
89
|
/**
|
|
95
90
|
* serializeAws_restJson1ListBotApiKeysCommand
|
|
96
91
|
*/
|
|
@@ -195,10 +190,6 @@ export declare const de_GetUserPbxLinkSuggestionCommand: (output: __HttpResponse
|
|
|
195
190
|
* deserializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
196
191
|
*/
|
|
197
192
|
export declare const de_GetUserPbxLinkSuggestionV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
|
|
198
|
-
/**
|
|
199
|
-
* deserializeAws_restJson1IntelligenceSearchCommand
|
|
200
|
-
*/
|
|
201
|
-
export declare const de_IntelligenceSearchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<IntelligenceSearchCommandOutput>;
|
|
202
193
|
/**
|
|
203
194
|
* deserializeAws_restJson1ListBotApiKeysCommand
|
|
204
195
|
*/
|
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.
|
|
4
|
+
"version": "1.0.35",
|
|
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",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"module": "./dist-es/index.js",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"tslib": "^2.6.2",
|
|
20
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
21
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
22
23
|
"@aws-sdk/middleware-user-agent": "3.587.0",
|
|
@@ -45,16 +46,15 @@
|
|
|
45
46
|
"@smithy/util-defaults-mode-node": "^3.0.3",
|
|
46
47
|
"@smithy/util-retry": "^3.0.0",
|
|
47
48
|
"@smithy/util-utf8": "^3.0.0",
|
|
48
|
-
"@wildix/smithy-utils": "^1.0.2"
|
|
49
|
-
"tslib": "^2.6.2"
|
|
49
|
+
"@wildix/smithy-utils": "^1.0.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node16": "16.1.3",
|
|
53
|
-
"@types/node": "^16.18.96",
|
|
54
53
|
"concurrently": "7.0.0",
|
|
55
54
|
"downlevel-dts": "0.10.1",
|
|
56
55
|
"rimraf": "^3.0.0",
|
|
57
|
-
"typescript": "~4.9.5"
|
|
56
|
+
"typescript": "~4.9.5",
|
|
57
|
+
"@types/node": "^16.18.96"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=16.0.0"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntelligenceSearchCommand = exports.$Command = void 0;
|
|
4
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class IntelligenceSearchCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
-
})
|
|
14
|
-
.s("Users", "IntelligenceSearch", {})
|
|
15
|
-
.n("UsersClient", "IntelligenceSearchCommand")
|
|
16
|
-
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.se_IntelligenceSearchCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_IntelligenceSearchCommand)
|
|
19
|
-
.build() {
|
|
20
|
-
}
|
|
21
|
-
exports.IntelligenceSearchCommand = IntelligenceSearchCommand;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_IntelligenceSearchCommand, se_IntelligenceSearchCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class IntelligenceSearchCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("Users", "IntelligenceSearch", {})
|
|
12
|
-
.n("UsersClient", "IntelligenceSearchCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_IntelligenceSearchCommand)
|
|
15
|
-
.de(de_IntelligenceSearchCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|