@wildix/xbees-users-client 1.0.32 → 1.0.34
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 -12
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/models/models_0.js +37 -1
- package/dist-cjs/protocols/Aws_restJson1.js +120 -182
- package/dist-es/Users.js +0 -12
- package/dist-es/commands/index.js +0 -6
- package/dist-es/models/models_0.js +36 -0
- package/dist-es/protocols/Aws_restJson1.js +120 -170
- package/dist-types/Users.d.ts +0 -42
- package/dist-types/UsersClient.d.ts +2 -8
- 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 -6
- package/dist-types/models/models_0.d.ts +217 -132
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
- package/package.json +5 -5
- package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -21
- package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +0 -21
- package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -21
- package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -21
- package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -21
- package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -21
- package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -17
- package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +0 -17
- package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -17
- package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -17
- package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -17
- package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -17
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -71
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -69
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -63
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -63
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
|
@@ -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: [ // BotEmbeddedToolsList
|
|
50
|
+
* // { // BotEmbeddedTool
|
|
51
|
+
* // type: "HANDOVER" || "DELEGATE", // required
|
|
52
|
+
* // name: "STRING_VALUE", // required
|
|
53
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // tools: [ // BotToolsList
|
|
57
|
+
* // { // BotTool
|
|
58
|
+
* // type: "function", // required
|
|
59
|
+
* // function: { // BotFunctionDefinition
|
|
60
|
+
* // name: "STRING_VALUE", // required
|
|
61
|
+
* // description: "STRING_VALUE",
|
|
62
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
63
|
+
* // integration: { // BotFunctionIntegration Union: only one key present
|
|
64
|
+
* // webhook: { // BotFunctionIntegrationWebhook
|
|
65
|
+
* // url: "STRING_VALUE", // required
|
|
66
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
67
|
+
* // async: true || false,
|
|
68
|
+
* // authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
69
|
+
* // bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
|
|
70
|
+
* // token: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
|
|
73
|
+
* // username: "STRING_VALUE", // required
|
|
74
|
+
* // password: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
|
|
77
|
+
* // clientId: "STRING_VALUE", // required
|
|
78
|
+
* // clientSecret: "STRING_VALUE", // required
|
|
79
|
+
* // endpointUrl: "STRING_VALUE", // required
|
|
80
|
+
* // scope: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // headers: [ // BotFunctionIntegrationWebhookHeadersList
|
|
84
|
+
* // { // BotFunctionIntegrationWebhookHeader
|
|
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: [ // BotEmbeddedToolsList
|
|
46
|
+
* { // BotEmbeddedTool
|
|
47
|
+
* type: "HANDOVER" || "DELEGATE", // required
|
|
48
|
+
* name: "STRING_VALUE", // required
|
|
49
|
+
* parameters: "DOCUMENT_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* tools: [ // BotToolsList
|
|
53
|
+
* { // BotTool
|
|
54
|
+
* type: "function", // required
|
|
55
|
+
* function: { // BotFunctionDefinition
|
|
56
|
+
* name: "STRING_VALUE", // required
|
|
57
|
+
* description: "STRING_VALUE",
|
|
58
|
+
* parameters: "DOCUMENT_VALUE",
|
|
59
|
+
* integration: { // BotFunctionIntegration Union: only one key present
|
|
60
|
+
* webhook: { // BotFunctionIntegrationWebhook
|
|
61
|
+
* url: "STRING_VALUE", // required
|
|
62
|
+
* method: "get" || "post" || "put" || "delete" || "patch",
|
|
63
|
+
* async: true || false,
|
|
64
|
+
* authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
65
|
+
* bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
|
|
66
|
+
* token: "STRING_VALUE", // required
|
|
67
|
+
* },
|
|
68
|
+
* basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
|
|
69
|
+
* username: "STRING_VALUE", // required
|
|
70
|
+
* password: "STRING_VALUE", // required
|
|
71
|
+
* },
|
|
72
|
+
* oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
|
|
73
|
+
* clientId: "STRING_VALUE", // required
|
|
74
|
+
* clientSecret: "STRING_VALUE", // required
|
|
75
|
+
* endpointUrl: "STRING_VALUE", // required
|
|
76
|
+
* scope: "STRING_VALUE",
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* headers: [ // BotFunctionIntegrationWebhookHeadersList
|
|
80
|
+
* { // BotFunctionIntegrationWebhookHeader
|
|
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: [ // BotEmbeddedToolsList
|
|
122
|
+
* // { // BotEmbeddedTool
|
|
123
|
+
* // type: "HANDOVER" || "DELEGATE", // required
|
|
124
|
+
* // name: "STRING_VALUE", // required
|
|
125
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
126
|
+
* // },
|
|
127
|
+
* // ],
|
|
128
|
+
* // tools: [ // BotToolsList
|
|
129
|
+
* // { // BotTool
|
|
130
|
+
* // type: "function", // required
|
|
131
|
+
* // function: { // BotFunctionDefinition
|
|
132
|
+
* // name: "STRING_VALUE", // required
|
|
133
|
+
* // description: "STRING_VALUE",
|
|
134
|
+
* // parameters: "DOCUMENT_VALUE",
|
|
135
|
+
* // integration: { // BotFunctionIntegration Union: only one key present
|
|
136
|
+
* // webhook: { // BotFunctionIntegrationWebhook
|
|
137
|
+
* // url: "STRING_VALUE", // required
|
|
138
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
139
|
+
* // async: true || false,
|
|
140
|
+
* // authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
141
|
+
* // bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
|
|
142
|
+
* // token: "STRING_VALUE", // required
|
|
143
|
+
* // },
|
|
144
|
+
* // basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
|
|
145
|
+
* // username: "STRING_VALUE", // required
|
|
146
|
+
* // password: "STRING_VALUE", // required
|
|
147
|
+
* // },
|
|
148
|
+
* // oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
|
|
149
|
+
* // clientId: "STRING_VALUE", // required
|
|
150
|
+
* // clientSecret: "STRING_VALUE", // required
|
|
151
|
+
* // endpointUrl: "STRING_VALUE", // required
|
|
152
|
+
* // scope: "STRING_VALUE",
|
|
153
|
+
* // },
|
|
154
|
+
* // },
|
|
155
|
+
* // headers: [ // BotFunctionIntegrationWebhookHeadersList
|
|
156
|
+
* // { // BotFunctionIntegrationWebhookHeader
|
|
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
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./BatchGetUsersCommand";
|
|
2
|
-
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
3
2
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
4
3
|
export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
5
4
|
export * from "./ChangeUserEmailCommand";
|
|
@@ -11,21 +10,16 @@ export * from "./DeleteBotApiKeyCommand";
|
|
|
11
10
|
export * from "./GetBotCommand";
|
|
12
11
|
export * from "./GetBotCallbackCommand";
|
|
13
12
|
export * from "./GetUserCommand";
|
|
14
|
-
export * from "./GetUserEmailNotificationsSettingsCommand";
|
|
15
13
|
export * from "./GetUserPbxLinkDataCommand";
|
|
16
14
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
17
15
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
18
16
|
export * from "./ListBotApiKeysCommand";
|
|
19
17
|
export * from "./ListBotsCommand";
|
|
20
|
-
export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
21
18
|
export * from "./QueryColleaguesCommand";
|
|
22
19
|
export * from "./QueryUserCommand";
|
|
23
20
|
export * from "./QueryUsersCommand";
|
|
24
|
-
export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
25
|
-
export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
26
21
|
export * from "./UpdateBotCommand";
|
|
27
22
|
export * from "./UpdateBotCallbackCommand";
|
|
28
|
-
export * from "./UpdateUserEmailNotificationsSettingsCommand";
|
|
29
23
|
export * from "./UploadPictureCommand";
|
|
30
24
|
export * from "./UploadPictureV1Command";
|
|
31
25
|
export * from "./VerifyBotSecretKeyCommand";
|
|
@@ -214,37 +214,6 @@ export interface BatchGetUsersOutput {
|
|
|
214
214
|
*/
|
|
215
215
|
users: (User)[];
|
|
216
216
|
}
|
|
217
|
-
/**
|
|
218
|
-
* @public
|
|
219
|
-
*/
|
|
220
|
-
export interface BatchGetUsersEmailNotificationsSettingsInput {
|
|
221
|
-
/**
|
|
222
|
-
* List of the unique identifier of the user
|
|
223
|
-
* @public
|
|
224
|
-
*/
|
|
225
|
-
usersIds: (string)[];
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* @public
|
|
229
|
-
*/
|
|
230
|
-
export interface UserEmailNotificationsSettings {
|
|
231
|
-
/**
|
|
232
|
-
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
233
|
-
* @public
|
|
234
|
-
*/
|
|
235
|
-
unread: boolean;
|
|
236
|
-
/**
|
|
237
|
-
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
238
|
-
* @public
|
|
239
|
-
*/
|
|
240
|
-
transcription: boolean;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @public
|
|
244
|
-
*/
|
|
245
|
-
export interface BatchGetUsersEmailNotificationsSettingsOutput {
|
|
246
|
-
notifications: Record<string, UserEmailNotificationsSettings>;
|
|
247
|
-
}
|
|
248
217
|
/**
|
|
249
218
|
* @public
|
|
250
219
|
*/
|
|
@@ -551,15 +520,226 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
|
|
|
551
520
|
*/
|
|
552
521
|
constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
|
|
553
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* @public
|
|
525
|
+
* @enum
|
|
526
|
+
*/
|
|
527
|
+
export declare const BotEmbeddedToolType: {
|
|
528
|
+
readonly DELEGATE: "DELEGATE";
|
|
529
|
+
readonly TRANSFER: "HANDOVER";
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
*/
|
|
534
|
+
export type BotEmbeddedToolType = typeof BotEmbeddedToolType[keyof typeof BotEmbeddedToolType];
|
|
535
|
+
/**
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
export interface BotEmbeddedTool {
|
|
539
|
+
type: BotEmbeddedToolType;
|
|
540
|
+
name: string;
|
|
541
|
+
/**
|
|
542
|
+
* The parameters the functions accepts.
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
parameters?: __DocumentType;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
export interface BotFunctionIntegrationWebhookAuthorizationBasic {
|
|
551
|
+
username: string;
|
|
552
|
+
password: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* @public
|
|
556
|
+
*/
|
|
557
|
+
export interface BotFunctionIntegrationWebhookAuthorizationBearer {
|
|
558
|
+
token: string;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @public
|
|
562
|
+
*/
|
|
563
|
+
export interface BotFunctionIntegrationWebhookAuthorizationOAuth {
|
|
564
|
+
clientId: string;
|
|
565
|
+
clientSecret: string;
|
|
566
|
+
endpointUrl: string;
|
|
567
|
+
scope?: string;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
export type BotFunctionIntegrationWebhookAuthorization = BotFunctionIntegrationWebhookAuthorization.BasicMember | BotFunctionIntegrationWebhookAuthorization.BearerMember | BotFunctionIntegrationWebhookAuthorization.OauthMember | BotFunctionIntegrationWebhookAuthorization.$UnknownMember;
|
|
573
|
+
/**
|
|
574
|
+
* @public
|
|
575
|
+
*/
|
|
576
|
+
export declare namespace BotFunctionIntegrationWebhookAuthorization {
|
|
577
|
+
interface BearerMember {
|
|
578
|
+
bearer: BotFunctionIntegrationWebhookAuthorizationBearer;
|
|
579
|
+
basic?: never;
|
|
580
|
+
oauth?: never;
|
|
581
|
+
$unknown?: never;
|
|
582
|
+
}
|
|
583
|
+
interface BasicMember {
|
|
584
|
+
bearer?: never;
|
|
585
|
+
basic: BotFunctionIntegrationWebhookAuthorizationBasic;
|
|
586
|
+
oauth?: never;
|
|
587
|
+
$unknown?: never;
|
|
588
|
+
}
|
|
589
|
+
interface OauthMember {
|
|
590
|
+
bearer?: never;
|
|
591
|
+
basic?: never;
|
|
592
|
+
oauth: BotFunctionIntegrationWebhookAuthorizationOAuth;
|
|
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: BotFunctionIntegrationWebhookAuthorizationBearer) => T;
|
|
606
|
+
basic: (value: BotFunctionIntegrationWebhookAuthorizationBasic) => T;
|
|
607
|
+
oauth: (value: BotFunctionIntegrationWebhookAuthorizationOAuth) => T;
|
|
608
|
+
_: (name: string, value: any) => T;
|
|
609
|
+
}
|
|
610
|
+
const visit: <T>(value: BotFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* @public
|
|
614
|
+
*/
|
|
615
|
+
export interface BotFunctionIntegrationWebhookHeader {
|
|
616
|
+
key: string;
|
|
617
|
+
value: string;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @public
|
|
621
|
+
* @enum
|
|
622
|
+
*/
|
|
623
|
+
export declare const BotFunctionIntegrationMethod: {
|
|
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 BotFunctionIntegrationMethod = typeof BotFunctionIntegrationMethod[keyof typeof BotFunctionIntegrationMethod];
|
|
634
|
+
/**
|
|
635
|
+
* @public
|
|
636
|
+
*/
|
|
637
|
+
export interface BotFunctionIntegrationWebhook {
|
|
638
|
+
url: string;
|
|
639
|
+
method?: BotFunctionIntegrationMethod;
|
|
640
|
+
async?: boolean;
|
|
641
|
+
authorization?: BotFunctionIntegrationWebhookAuthorization;
|
|
642
|
+
headers?: (BotFunctionIntegrationWebhookHeader)[];
|
|
643
|
+
parameters?: __DocumentType;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
export type BotFunctionIntegration = BotFunctionIntegration.WebhookMember | BotFunctionIntegration.$UnknownMember;
|
|
649
|
+
/**
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
export declare namespace BotFunctionIntegration {
|
|
653
|
+
interface WebhookMember {
|
|
654
|
+
webhook: BotFunctionIntegrationWebhook;
|
|
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: BotFunctionIntegrationWebhook) => T;
|
|
666
|
+
_: (name: string, value: any) => T;
|
|
667
|
+
}
|
|
668
|
+
const visit: <T>(value: BotFunctionIntegration, visitor: Visitor<T>) => T;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
export interface BotFunctionDefinition {
|
|
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?: BotFunctionIntegration;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* @public
|
|
693
|
+
* @enum
|
|
694
|
+
*/
|
|
695
|
+
export declare const BotToolType: {
|
|
696
|
+
readonly FUNCTION: "function";
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* @public
|
|
700
|
+
*/
|
|
701
|
+
export type BotToolType = typeof BotToolType[keyof typeof BotToolType];
|
|
702
|
+
/**
|
|
703
|
+
* @public
|
|
704
|
+
*/
|
|
705
|
+
export interface BotTool {
|
|
706
|
+
type: BotToolType;
|
|
707
|
+
function?: BotFunctionDefinition;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* @public
|
|
711
|
+
*/
|
|
712
|
+
export interface BotLlmEndpoint {
|
|
713
|
+
prompt: string;
|
|
714
|
+
/**
|
|
715
|
+
* Embedded functions to use within voice session.
|
|
716
|
+
* @public
|
|
717
|
+
*/
|
|
718
|
+
embeddedTools?: (BotEmbeddedTool)[];
|
|
719
|
+
/**
|
|
720
|
+
* Custom tools to be used within voice session.
|
|
721
|
+
* @public
|
|
722
|
+
*/
|
|
723
|
+
tools?: (BotTool)[];
|
|
724
|
+
}
|
|
554
725
|
/**
|
|
555
726
|
* @public
|
|
556
727
|
*/
|
|
557
|
-
export type BotEndpoint = BotEndpoint.DialogflowCxMember | BotEndpoint.OpenAiAssistantMember | BotEndpoint.SqsMember | BotEndpoint.WebhookMember | BotEndpoint.$UnknownMember;
|
|
728
|
+
export type BotEndpoint = BotEndpoint.DialogflowCxMember | BotEndpoint.LlmMember | BotEndpoint.OpenAiAssistantMember | BotEndpoint.SqsMember | BotEndpoint.WebhookMember | BotEndpoint.$UnknownMember;
|
|
558
729
|
/**
|
|
559
730
|
* @public
|
|
560
731
|
*/
|
|
561
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
|
+
}
|
|
562
741
|
interface DialogflowCxMember {
|
|
742
|
+
llm?: never;
|
|
563
743
|
dialogflowCx: BotDialogflowCxEndpoint;
|
|
564
744
|
openAiAssistant?: never;
|
|
565
745
|
webhook?: never;
|
|
@@ -567,6 +747,7 @@ export declare namespace BotEndpoint {
|
|
|
567
747
|
$unknown?: never;
|
|
568
748
|
}
|
|
569
749
|
interface OpenAiAssistantMember {
|
|
750
|
+
llm?: never;
|
|
570
751
|
dialogflowCx?: never;
|
|
571
752
|
openAiAssistant: BotOpenAiAssistantEndpoint;
|
|
572
753
|
webhook?: never;
|
|
@@ -574,6 +755,7 @@ export declare namespace BotEndpoint {
|
|
|
574
755
|
$unknown?: never;
|
|
575
756
|
}
|
|
576
757
|
interface WebhookMember {
|
|
758
|
+
llm?: never;
|
|
577
759
|
dialogflowCx?: never;
|
|
578
760
|
openAiAssistant?: never;
|
|
579
761
|
webhook: BotWebhookEndpoint;
|
|
@@ -581,6 +763,7 @@ export declare namespace BotEndpoint {
|
|
|
581
763
|
$unknown?: never;
|
|
582
764
|
}
|
|
583
765
|
interface SqsMember {
|
|
766
|
+
llm?: never;
|
|
584
767
|
dialogflowCx?: never;
|
|
585
768
|
openAiAssistant?: never;
|
|
586
769
|
webhook?: never;
|
|
@@ -591,6 +774,7 @@ export declare namespace BotEndpoint {
|
|
|
591
774
|
* @public
|
|
592
775
|
*/
|
|
593
776
|
interface $UnknownMember {
|
|
777
|
+
llm?: never;
|
|
594
778
|
dialogflowCx?: never;
|
|
595
779
|
openAiAssistant?: never;
|
|
596
780
|
webhook?: never;
|
|
@@ -598,6 +782,7 @@ export declare namespace BotEndpoint {
|
|
|
598
782
|
$unknown: [string, any];
|
|
599
783
|
}
|
|
600
784
|
interface Visitor<T> {
|
|
785
|
+
llm: (value: BotLlmEndpoint) => T;
|
|
601
786
|
dialogflowCx: (value: BotDialogflowCxEndpoint) => T;
|
|
602
787
|
openAiAssistant: (value: BotOpenAiAssistantEndpoint) => T;
|
|
603
788
|
webhook: (value: BotWebhookEndpoint) => T;
|
|
@@ -824,22 +1009,6 @@ export interface GetUserInput {
|
|
|
824
1009
|
export interface GetUserOutput {
|
|
825
1010
|
user: User;
|
|
826
1011
|
}
|
|
827
|
-
/**
|
|
828
|
-
* @public
|
|
829
|
-
*/
|
|
830
|
-
export interface GetUserEmailNotificationsSettingsInput {
|
|
831
|
-
/**
|
|
832
|
-
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
833
|
-
* @public
|
|
834
|
-
*/
|
|
835
|
-
userId: string;
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* @public
|
|
839
|
-
*/
|
|
840
|
-
export interface GetUserEmailNotificationsSettingsOutput {
|
|
841
|
-
notifications: UserEmailNotificationsSettings;
|
|
842
|
-
}
|
|
843
1012
|
/**
|
|
844
1013
|
* @public
|
|
845
1014
|
*/
|
|
@@ -936,32 +1105,6 @@ export interface ListBotsInput {
|
|
|
936
1105
|
export interface ListBotsOutput {
|
|
937
1106
|
bots: (Bot)[];
|
|
938
1107
|
}
|
|
939
|
-
/**
|
|
940
|
-
* @public
|
|
941
|
-
*/
|
|
942
|
-
export interface PartialUpdateUserEmailNotificationsSettingsInput {
|
|
943
|
-
/**
|
|
944
|
-
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
945
|
-
* @public
|
|
946
|
-
*/
|
|
947
|
-
unread?: boolean;
|
|
948
|
-
/**
|
|
949
|
-
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
950
|
-
* @public
|
|
951
|
-
*/
|
|
952
|
-
transcription?: boolean;
|
|
953
|
-
/**
|
|
954
|
-
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
955
|
-
* @public
|
|
956
|
-
*/
|
|
957
|
-
userId: string;
|
|
958
|
-
}
|
|
959
|
-
/**
|
|
960
|
-
* @public
|
|
961
|
-
*/
|
|
962
|
-
export interface PartialUpdateUserEmailNotificationsSettingsOutput {
|
|
963
|
-
notifications: UserEmailNotificationsSettings;
|
|
964
|
-
}
|
|
965
1108
|
/**
|
|
966
1109
|
* @public
|
|
967
1110
|
*/
|
|
@@ -1127,38 +1270,6 @@ export interface QueryUsersOutput {
|
|
|
1127
1270
|
*/
|
|
1128
1271
|
users: (User)[];
|
|
1129
1272
|
}
|
|
1130
|
-
/**
|
|
1131
|
-
* @public
|
|
1132
|
-
*/
|
|
1133
|
-
export interface ToggleTranscriptionEmailNotificationsSubscriptionInput {
|
|
1134
|
-
unsubscribeToken: string;
|
|
1135
|
-
/**
|
|
1136
|
-
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
1137
|
-
* @public
|
|
1138
|
-
*/
|
|
1139
|
-
subscribe: boolean;
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* @public
|
|
1143
|
-
*/
|
|
1144
|
-
export interface ToggleTranscriptionEmailNotificationsSubscriptionOutput {
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
* @public
|
|
1148
|
-
*/
|
|
1149
|
-
export interface ToggleUnreadEmailNotificationsSubscriptionInput {
|
|
1150
|
-
unsubscribeToken: string;
|
|
1151
|
-
/**
|
|
1152
|
-
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
1153
|
-
* @public
|
|
1154
|
-
*/
|
|
1155
|
-
subscribe: boolean;
|
|
1156
|
-
}
|
|
1157
|
-
/**
|
|
1158
|
-
* @public
|
|
1159
|
-
*/
|
|
1160
|
-
export interface ToggleUnreadEmailNotificationsSubscriptionOutput {
|
|
1161
|
-
}
|
|
1162
1273
|
/**
|
|
1163
1274
|
* @public
|
|
1164
1275
|
*/
|
|
@@ -1189,32 +1300,6 @@ export interface UpdateBotCallbackInput {
|
|
|
1189
1300
|
export interface UpdateBotCallbackOutput {
|
|
1190
1301
|
callback: BotCallback;
|
|
1191
1302
|
}
|
|
1192
|
-
/**
|
|
1193
|
-
* @public
|
|
1194
|
-
*/
|
|
1195
|
-
export interface UpdateUserEmailNotificationsSettingsInput {
|
|
1196
|
-
/**
|
|
1197
|
-
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
1198
|
-
* @public
|
|
1199
|
-
*/
|
|
1200
|
-
unread?: boolean;
|
|
1201
|
-
/**
|
|
1202
|
-
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
1203
|
-
* @public
|
|
1204
|
-
*/
|
|
1205
|
-
transcription?: boolean;
|
|
1206
|
-
/**
|
|
1207
|
-
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
1208
|
-
* @public
|
|
1209
|
-
*/
|
|
1210
|
-
userId: string;
|
|
1211
|
-
}
|
|
1212
|
-
/**
|
|
1213
|
-
* @public
|
|
1214
|
-
*/
|
|
1215
|
-
export interface UpdateUserEmailNotificationsSettingsOutput {
|
|
1216
|
-
notifications: UserEmailNotificationsSettings;
|
|
1217
|
-
}
|
|
1218
1303
|
/**
|
|
1219
1304
|
* @public
|
|
1220
1305
|
*/
|