@wildix/xbees-users-client 1.3.2 → 3.1.1
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 +3 -3
- package/dist-cjs/UsersClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +81 -0
- package/dist-cjs/commands/BatchGetUsersCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +10 -11
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +10 -11
- package/dist-cjs/commands/ChangeUserEmailCommand.js +10 -11
- package/dist-cjs/commands/CreateAnonymousSessionCommand.js +10 -11
- package/dist-cjs/commands/CreateBotApiKeyCommand.js +10 -11
- package/dist-cjs/commands/CreateBotCommand.js +10 -11
- package/dist-cjs/commands/CreateSystemBotCommand.js +10 -11
- package/dist-cjs/commands/DeleteBotApiKeyCommand.js +10 -11
- package/dist-cjs/commands/DeleteBotCommand.js +10 -11
- package/dist-cjs/commands/GetAccountCommand.js +10 -11
- package/dist-cjs/commands/GetAppVersionCommand.js +10 -11
- package/dist-cjs/commands/GetBotCallbackCommand.js +10 -11
- package/dist-cjs/commands/GetBotCommand.js +10 -11
- package/dist-cjs/commands/GetUserCommand.js +10 -11
- package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkSuggestionCommand.js +10 -11
- package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +10 -11
- package/dist-cjs/commands/IntelligenceSearchCommand.js +10 -11
- package/dist-cjs/commands/InviteCommand.js +10 -11
- package/dist-cjs/commands/LinkIdentityCommand.js +10 -11
- package/dist-cjs/commands/ListBotApiKeysCommand.js +10 -11
- package/dist-cjs/commands/ListBotsCommand.js +10 -11
- package/dist-cjs/commands/ListIdentitiesCommand.js +10 -11
- package/dist-cjs/commands/ListWorkspacesCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/QueryColleaguesCommand.js +10 -11
- package/dist-cjs/commands/QueryUserCommand.js +10 -11
- package/dist-cjs/commands/QueryUsersCommand.js +10 -11
- package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +10 -11
- package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +10 -11
- package/dist-cjs/commands/UnlinkIdentityCommand.js +10 -11
- package/dist-cjs/commands/UnlinkWorkspaceCommand.js +10 -11
- package/dist-cjs/commands/UpdateAccountCommand.js +10 -11
- package/dist-cjs/commands/UpdateBotCallbackCommand.js +10 -11
- package/dist-cjs/commands/UpdateBotCommand.js +10 -11
- package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +10 -11
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +10 -11
- package/dist-cjs/commands/UploadPictureCommand.js +10 -11
- package/dist-cjs/commands/UploadPictureV1Command.js +10 -11
- package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +10 -11
- package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +10 -11
- package/dist-cjs/commands/VerifyIdentityCommand.js +10 -11
- package/dist-cjs/commands/index.js +4 -4
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/UsersServiceException.js +3 -3
- package/dist-cjs/models/enums.js +86 -0
- package/dist-cjs/models/errors.js +225 -0
- package/dist-cjs/models/models_0.js +0 -400
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +35 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1463 -0
- package/dist-es/Users.js +10 -10
- package/dist-es/UsersClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +75 -0
- package/dist-es/commands/BatchGetUsersCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +9 -10
- package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +9 -10
- package/dist-es/commands/ChangeUserEmailCommand.js +9 -10
- package/dist-es/commands/CreateAnonymousSessionCommand.js +9 -10
- package/dist-es/commands/CreateBotApiKeyCommand.js +9 -10
- package/dist-es/commands/CreateBotCommand.js +9 -10
- package/dist-es/commands/CreateSystemBotCommand.js +9 -10
- package/dist-es/commands/DeleteBotApiKeyCommand.js +9 -10
- package/dist-es/commands/DeleteBotCommand.js +9 -10
- package/dist-es/commands/GetAccountCommand.js +9 -10
- package/dist-es/commands/GetAppVersionCommand.js +9 -10
- package/dist-es/commands/GetBotCallbackCommand.js +9 -10
- package/dist-es/commands/GetBotCommand.js +9 -10
- package/dist-es/commands/GetUserCommand.js +9 -10
- package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkDataCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkSuggestionCommand.js +9 -10
- package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +9 -10
- package/dist-es/commands/IntelligenceSearchCommand.js +9 -10
- package/dist-es/commands/InviteCommand.js +9 -10
- package/dist-es/commands/LinkIdentityCommand.js +9 -10
- package/dist-es/commands/ListBotApiKeysCommand.js +9 -10
- package/dist-es/commands/ListBotsCommand.js +9 -10
- package/dist-es/commands/ListIdentitiesCommand.js +9 -10
- package/dist-es/commands/ListWorkspacesCommand.js +9 -10
- package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/QueryColleaguesCommand.js +9 -10
- package/dist-es/commands/QueryUserCommand.js +9 -10
- package/dist-es/commands/QueryUsersCommand.js +9 -10
- package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +9 -10
- package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +9 -10
- package/dist-es/commands/UnlinkIdentityCommand.js +9 -10
- package/dist-es/commands/UnlinkWorkspaceCommand.js +9 -10
- package/dist-es/commands/UpdateAccountCommand.js +9 -10
- package/dist-es/commands/UpdateBotCallbackCommand.js +9 -10
- package/dist-es/commands/UpdateBotCommand.js +9 -10
- package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +9 -10
- package/dist-es/commands/UpdateWorkspaceCommand.js +9 -10
- package/dist-es/commands/UploadPictureCommand.js +9 -10
- package/dist-es/commands/UploadPictureV1Command.js +9 -10
- package/dist-es/commands/VerifyBotSecretKeyCommand.js +9 -10
- package/dist-es/commands/VerifyBotSecretKeyV1Command.js +9 -10
- package/dist-es/commands/VerifyIdentityCommand.js +9 -10
- package/dist-es/commands/index.js +4 -4
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/UsersServiceException.js +1 -1
- package/dist-es/models/enums.js +83 -0
- package/dist-es/models/errors.js +205 -0
- package/dist-es/models/models_0.js +1 -382
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +29 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1456 -0
- package/dist-types/Users.d.ts +46 -46
- package/dist-types/UsersClient.d.ts +75 -57
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/BatchGetUsersCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +11 -7
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +11 -7
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +11 -7
- package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +11 -7
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -7
- package/dist-types/commands/CreateBotCommand.d.ts +11 -7
- package/dist-types/commands/CreateSystemBotCommand.d.ts +11 -7
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +11 -7
- package/dist-types/commands/DeleteBotCommand.d.ts +11 -7
- package/dist-types/commands/GetAccountCommand.d.ts +11 -7
- package/dist-types/commands/GetAppVersionCommand.d.ts +11 -7
- package/dist-types/commands/GetBotCallbackCommand.d.ts +11 -7
- package/dist-types/commands/GetBotCommand.d.ts +11 -7
- package/dist-types/commands/GetUserCommand.d.ts +11 -7
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +11 -7
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +11 -7
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +11 -7
- package/dist-types/commands/InviteCommand.d.ts +11 -7
- package/dist-types/commands/LinkIdentityCommand.d.ts +11 -7
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +11 -7
- package/dist-types/commands/ListBotsCommand.d.ts +11 -7
- package/dist-types/commands/ListIdentitiesCommand.d.ts +11 -7
- package/dist-types/commands/ListWorkspacesCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/QueryColleaguesCommand.d.ts +11 -7
- package/dist-types/commands/QueryUserCommand.d.ts +11 -7
- package/dist-types/commands/QueryUsersCommand.d.ts +11 -7
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +11 -7
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +11 -7
- package/dist-types/commands/UnlinkIdentityCommand.d.ts +11 -7
- package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +11 -7
- package/dist-types/commands/UpdateAccountCommand.d.ts +11 -7
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +11 -7
- package/dist-types/commands/UpdateBotCommand.d.ts +11 -7
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +11 -7
- package/dist-types/commands/UploadPictureCommand.d.ts +11 -7
- package/dist-types/commands/UploadPictureV1Command.d.ts +12 -8
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +11 -7
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +11 -7
- package/dist-types/commands/VerifyIdentityCommand.d.ts +11 -7
- package/dist-types/commands/index.d.ts +4 -4
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/UsersServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +196 -0
- package/dist-types/models/errors.d.ts +189 -0
- package/dist-types/models/models_0.d.ts +75 -435
- package/dist-types/runtimeConfig.browser.d.ts +39 -16
- package/dist-types/runtimeConfig.d.ts +38 -15
- package/dist-types/runtimeConfig.native.d.ts +40 -17
- package/dist-types/runtimeConfig.shared.d.ts +24 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +217 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1915
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1821
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -407
|
@@ -1,382 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class ForbiddenException extends __BaseException {
|
|
3
|
-
name = "ForbiddenException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ForbiddenException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class ValidationException extends __BaseException {
|
|
15
|
-
name = "ValidationException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ValidationException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export const PbxLicenseType = {
|
|
27
|
-
BASIC: "basic",
|
|
28
|
-
BUSINESS: "business",
|
|
29
|
-
ESSENTIAL: "essential",
|
|
30
|
-
PREMIUM: "premium",
|
|
31
|
-
WIZYCONF: "wizyconf",
|
|
32
|
-
};
|
|
33
|
-
export const PbxColleagueRole = {
|
|
34
|
-
ADMIN: "admin",
|
|
35
|
-
FAX: "fax",
|
|
36
|
-
PARK_ORBIT: "park_orbit",
|
|
37
|
-
ROOM: "room",
|
|
38
|
-
USER: "user",
|
|
39
|
-
};
|
|
40
|
-
export const GetPbxColleaguesDir = {
|
|
41
|
-
ASC: "asc",
|
|
42
|
-
DESC: "desc",
|
|
43
|
-
};
|
|
44
|
-
export const PbxColleaguesQueryField = {
|
|
45
|
-
DEPARTMENT: "department",
|
|
46
|
-
DIALPLAN: "dialplan",
|
|
47
|
-
EMAIL: "email",
|
|
48
|
-
EXTENSION: "extension",
|
|
49
|
-
FAX_DIALPLAN: "faxDialplan",
|
|
50
|
-
GROUP_DN: "groupDn",
|
|
51
|
-
ID: "id",
|
|
52
|
-
LANGUAGE: "language",
|
|
53
|
-
LICENSE_TYPE: "licenseType",
|
|
54
|
-
LOGIN: "login",
|
|
55
|
-
MOBILE_PHONE: "mobilePhone",
|
|
56
|
-
NAME: "name",
|
|
57
|
-
OFFICE_PHONE: "officePhone",
|
|
58
|
-
PBX_DN: "pbxDn",
|
|
59
|
-
PICTURE: "picture",
|
|
60
|
-
ROLE: "role",
|
|
61
|
-
SOURCE_ID: "sourceId",
|
|
62
|
-
};
|
|
63
|
-
export const PbxColleaguesSearchStrategy = {
|
|
64
|
-
CONTAIN: "contain",
|
|
65
|
-
STARTS_WITH: "startsWith",
|
|
66
|
-
};
|
|
67
|
-
export class ChannelNotFoundException extends __BaseException {
|
|
68
|
-
name = "ChannelNotFoundException";
|
|
69
|
-
$fault = "client";
|
|
70
|
-
constructor(opts) {
|
|
71
|
-
super({
|
|
72
|
-
name: "ChannelNotFoundException",
|
|
73
|
-
$fault: "client",
|
|
74
|
-
...opts
|
|
75
|
-
});
|
|
76
|
-
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export class WidgetNotFoundException extends __BaseException {
|
|
80
|
-
name = "WidgetNotFoundException";
|
|
81
|
-
$fault = "client";
|
|
82
|
-
constructor(opts) {
|
|
83
|
-
super({
|
|
84
|
-
name: "WidgetNotFoundException",
|
|
85
|
-
$fault: "client",
|
|
86
|
-
...opts
|
|
87
|
-
});
|
|
88
|
-
Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
export class AccountNotFoundException extends __BaseException {
|
|
92
|
-
name = "AccountNotFoundException";
|
|
93
|
-
$fault = "client";
|
|
94
|
-
constructor(opts) {
|
|
95
|
-
super({
|
|
96
|
-
name: "AccountNotFoundException",
|
|
97
|
-
$fault: "client",
|
|
98
|
-
...opts
|
|
99
|
-
});
|
|
100
|
-
Object.setPrototypeOf(this, AccountNotFoundException.prototype);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
export var AnonymousEntryContext;
|
|
104
|
-
(function (AnonymousEntryContext) {
|
|
105
|
-
AnonymousEntryContext.visit = (value, visitor) => {
|
|
106
|
-
if (value.widgetId !== undefined)
|
|
107
|
-
return visitor.widgetId(value.widgetId);
|
|
108
|
-
if (value.channelId !== undefined)
|
|
109
|
-
return visitor.channelId(value.channelId);
|
|
110
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
111
|
-
};
|
|
112
|
-
})(AnonymousEntryContext || (AnonymousEntryContext = {}));
|
|
113
|
-
export const AppType = {
|
|
114
|
-
COLLABORATION: "collaboration",
|
|
115
|
-
X_BEES: "x-bees",
|
|
116
|
-
X_HOPPERS: "x-hoppers",
|
|
117
|
-
};
|
|
118
|
-
export const BotAccess = {
|
|
119
|
-
EVERYBODY: "EVERYBODY",
|
|
120
|
-
ORGANIZATION: "ORGANIZATION",
|
|
121
|
-
};
|
|
122
|
-
export const BotIntegrationType = {
|
|
123
|
-
DIALOGFLOW_CX: "DIALOGFLOW_CX",
|
|
124
|
-
LLM: "LLM",
|
|
125
|
-
OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT",
|
|
126
|
-
SQS: "SQS",
|
|
127
|
-
WEBHOOK: "WEBHOOK",
|
|
128
|
-
};
|
|
129
|
-
export class BotApiKeyNotFoundException extends __BaseException {
|
|
130
|
-
name = "BotApiKeyNotFoundException";
|
|
131
|
-
$fault = "client";
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "BotApiKeyNotFoundException",
|
|
135
|
-
$fault: "client",
|
|
136
|
-
...opts
|
|
137
|
-
});
|
|
138
|
-
Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
export var BotToolAnnotation;
|
|
142
|
-
(function (BotToolAnnotation) {
|
|
143
|
-
BotToolAnnotation.visit = (value, visitor) => {
|
|
144
|
-
if (value.tag !== undefined)
|
|
145
|
-
return visitor.tag(value.tag);
|
|
146
|
-
if (value.comment !== undefined)
|
|
147
|
-
return visitor.comment(value.comment);
|
|
148
|
-
if (value.variables !== undefined)
|
|
149
|
-
return visitor.variables(value.variables);
|
|
150
|
-
if (value.result !== undefined)
|
|
151
|
-
return visitor.result(value.result);
|
|
152
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
153
|
-
};
|
|
154
|
-
})(BotToolAnnotation || (BotToolAnnotation = {}));
|
|
155
|
-
export const BotCapabilityToolPipelineType = {
|
|
156
|
-
ASYNC_REQUEST: "async_request",
|
|
157
|
-
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
158
|
-
BLOCKING_REQUEST: "blocking_request",
|
|
159
|
-
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
160
|
-
};
|
|
161
|
-
export var BotToolVariableHandler;
|
|
162
|
-
(function (BotToolVariableHandler) {
|
|
163
|
-
BotToolVariableHandler.visit = (value, visitor) => {
|
|
164
|
-
if (value.auto !== undefined)
|
|
165
|
-
return visitor.auto(value.auto);
|
|
166
|
-
if (value.guided !== undefined)
|
|
167
|
-
return visitor.guided(value.guided);
|
|
168
|
-
if (value.predefined !== undefined)
|
|
169
|
-
return visitor.predefined(value.predefined);
|
|
170
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
171
|
-
};
|
|
172
|
-
})(BotToolVariableHandler || (BotToolVariableHandler = {}));
|
|
173
|
-
export var BotCapability;
|
|
174
|
-
(function (BotCapability) {
|
|
175
|
-
BotCapability.visit = (value, visitor) => {
|
|
176
|
-
if (value.tool !== undefined)
|
|
177
|
-
return visitor.tool(value.tool);
|
|
178
|
-
if (value.kb !== undefined)
|
|
179
|
-
return visitor.kb(value.kb);
|
|
180
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
181
|
-
};
|
|
182
|
-
})(BotCapability || (BotCapability = {}));
|
|
183
|
-
export const BotLlmEmbeddedToolType = {
|
|
184
|
-
DELEGATE: "DELEGATE",
|
|
185
|
-
HANDOVER: "HANDOVER",
|
|
186
|
-
SUGGESTIONS: "SUGGESTIONS",
|
|
187
|
-
};
|
|
188
|
-
export var BotLlmFunctionIntegrationWebhookAuthorization;
|
|
189
|
-
(function (BotLlmFunctionIntegrationWebhookAuthorization) {
|
|
190
|
-
BotLlmFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
|
|
191
|
-
if (value.bearer !== undefined)
|
|
192
|
-
return visitor.bearer(value.bearer);
|
|
193
|
-
if (value.basic !== undefined)
|
|
194
|
-
return visitor.basic(value.basic);
|
|
195
|
-
if (value.oauth !== undefined)
|
|
196
|
-
return visitor.oauth(value.oauth);
|
|
197
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
198
|
-
};
|
|
199
|
-
})(BotLlmFunctionIntegrationWebhookAuthorization || (BotLlmFunctionIntegrationWebhookAuthorization = {}));
|
|
200
|
-
export const BotLlmFunctionIntegrationMethod = {
|
|
201
|
-
DELETE: "delete",
|
|
202
|
-
GET: "get",
|
|
203
|
-
PATCH: "patch",
|
|
204
|
-
POST: "post",
|
|
205
|
-
PUT: "put",
|
|
206
|
-
};
|
|
207
|
-
export var BotLlmFunctionIntegration;
|
|
208
|
-
(function (BotLlmFunctionIntegration) {
|
|
209
|
-
BotLlmFunctionIntegration.visit = (value, visitor) => {
|
|
210
|
-
if (value.webhook !== undefined)
|
|
211
|
-
return visitor.webhook(value.webhook);
|
|
212
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
213
|
-
};
|
|
214
|
-
})(BotLlmFunctionIntegration || (BotLlmFunctionIntegration = {}));
|
|
215
|
-
export const BotLlmToolType = {
|
|
216
|
-
FUNCTION: "function",
|
|
217
|
-
};
|
|
218
|
-
export var BotEndpoint;
|
|
219
|
-
(function (BotEndpoint) {
|
|
220
|
-
BotEndpoint.visit = (value, visitor) => {
|
|
221
|
-
if (value.llm !== undefined)
|
|
222
|
-
return visitor.llm(value.llm);
|
|
223
|
-
if (value.dialogflowCx !== undefined)
|
|
224
|
-
return visitor.dialogflowCx(value.dialogflowCx);
|
|
225
|
-
if (value.openAiAssistant !== undefined)
|
|
226
|
-
return visitor.openAiAssistant(value.openAiAssistant);
|
|
227
|
-
if (value.webhook !== undefined)
|
|
228
|
-
return visitor.webhook(value.webhook);
|
|
229
|
-
if (value.sqs !== undefined)
|
|
230
|
-
return visitor.sqs(value.sqs);
|
|
231
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
232
|
-
};
|
|
233
|
-
})(BotEndpoint || (BotEndpoint = {}));
|
|
234
|
-
export class BotNotFoundException extends __BaseException {
|
|
235
|
-
name = "BotNotFoundException";
|
|
236
|
-
$fault = "client";
|
|
237
|
-
constructor(opts) {
|
|
238
|
-
super({
|
|
239
|
-
name: "BotNotFoundException",
|
|
240
|
-
$fault: "client",
|
|
241
|
-
...opts
|
|
242
|
-
});
|
|
243
|
-
Object.setPrototypeOf(this, BotNotFoundException.prototype);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
export class BotSecretKeyNotValidException extends __BaseException {
|
|
247
|
-
name = "BotSecretKeyNotValidException";
|
|
248
|
-
$fault = "client";
|
|
249
|
-
constructor(opts) {
|
|
250
|
-
super({
|
|
251
|
-
name: "BotSecretKeyNotValidException",
|
|
252
|
-
$fault: "client",
|
|
253
|
-
...opts
|
|
254
|
-
});
|
|
255
|
-
Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
export class CannotRemovePrimaryIdentityException extends __BaseException {
|
|
259
|
-
name = "CannotRemovePrimaryIdentityException";
|
|
260
|
-
$fault = "client";
|
|
261
|
-
constructor(opts) {
|
|
262
|
-
super({
|
|
263
|
-
name: "CannotRemovePrimaryIdentityException",
|
|
264
|
-
$fault: "client",
|
|
265
|
-
...opts
|
|
266
|
-
});
|
|
267
|
-
Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
export class CannotUnbindDefaultWorkspaceException extends __BaseException {
|
|
271
|
-
name = "CannotUnbindDefaultWorkspaceException";
|
|
272
|
-
$fault = "client";
|
|
273
|
-
constructor(opts) {
|
|
274
|
-
super({
|
|
275
|
-
name: "CannotUnbindDefaultWorkspaceException",
|
|
276
|
-
$fault: "client",
|
|
277
|
-
...opts
|
|
278
|
-
});
|
|
279
|
-
Object.setPrototypeOf(this, CannotUnbindDefaultWorkspaceException.prototype);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
export class UserCompanyNotValidException extends __BaseException {
|
|
283
|
-
name = "UserCompanyNotValidException";
|
|
284
|
-
$fault = "client";
|
|
285
|
-
constructor(opts) {
|
|
286
|
-
super({
|
|
287
|
-
name: "UserCompanyNotValidException",
|
|
288
|
-
$fault: "client",
|
|
289
|
-
...opts
|
|
290
|
-
});
|
|
291
|
-
Object.setPrototypeOf(this, UserCompanyNotValidException.prototype);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
export class UserNotFoundException extends __BaseException {
|
|
295
|
-
name = "UserNotFoundException";
|
|
296
|
-
$fault = "client";
|
|
297
|
-
constructor(opts) {
|
|
298
|
-
super({
|
|
299
|
-
name: "UserNotFoundException",
|
|
300
|
-
$fault: "client",
|
|
301
|
-
...opts
|
|
302
|
-
});
|
|
303
|
-
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
export class PublicAccessIsRestrictedException extends __BaseException {
|
|
307
|
-
name = "PublicAccessIsRestrictedException";
|
|
308
|
-
$fault = "client";
|
|
309
|
-
constructor(opts) {
|
|
310
|
-
super({
|
|
311
|
-
name: "PublicAccessIsRestrictedException",
|
|
312
|
-
$fault: "client",
|
|
313
|
-
...opts
|
|
314
|
-
});
|
|
315
|
-
Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
export const WorkspaceType = {
|
|
319
|
-
PERSONAL: "personal",
|
|
320
|
-
SUPPORT: "support",
|
|
321
|
-
WORK: "work",
|
|
322
|
-
};
|
|
323
|
-
export class IdentityAlreadyLinkedException extends __BaseException {
|
|
324
|
-
name = "IdentityAlreadyLinkedException";
|
|
325
|
-
$fault = "client";
|
|
326
|
-
constructor(opts) {
|
|
327
|
-
super({
|
|
328
|
-
name: "IdentityAlreadyLinkedException",
|
|
329
|
-
$fault: "client",
|
|
330
|
-
...opts
|
|
331
|
-
});
|
|
332
|
-
Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
export class IdentityNotFoundException extends __BaseException {
|
|
336
|
-
name = "IdentityNotFoundException";
|
|
337
|
-
$fault = "client";
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "IdentityNotFoundException",
|
|
341
|
-
$fault: "client",
|
|
342
|
-
...opts
|
|
343
|
-
});
|
|
344
|
-
Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
export var UserQuery;
|
|
348
|
-
(function (UserQuery) {
|
|
349
|
-
UserQuery.visit = (value, visitor) => {
|
|
350
|
-
if (value.id !== undefined)
|
|
351
|
-
return visitor.id(value.id);
|
|
352
|
-
if (value.email !== undefined)
|
|
353
|
-
return visitor.email(value.email);
|
|
354
|
-
if (value.phone !== undefined)
|
|
355
|
-
return visitor.phone(value.phone);
|
|
356
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
357
|
-
};
|
|
358
|
-
})(UserQuery || (UserQuery = {}));
|
|
359
|
-
export class UserQueryPredicateNotMetException extends __BaseException {
|
|
360
|
-
name = "UserQueryPredicateNotMetException";
|
|
361
|
-
$fault = "client";
|
|
362
|
-
constructor(opts) {
|
|
363
|
-
super({
|
|
364
|
-
name: "UserQueryPredicateNotMetException",
|
|
365
|
-
$fault: "client",
|
|
366
|
-
...opts
|
|
367
|
-
});
|
|
368
|
-
Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
export class WorkspaceNotFoundException extends __BaseException {
|
|
372
|
-
name = "WorkspaceNotFoundException";
|
|
373
|
-
$fault = "client";
|
|
374
|
-
constructor(opts) {
|
|
375
|
-
super({
|
|
376
|
-
name: "WorkspaceNotFoundException",
|
|
377
|
-
$fault: "client",
|
|
378
|
-
...opts
|
|
379
|
-
});
|
|
380
|
-
Object.setPrototypeOf(this, WorkspaceNotFoundException.prototype);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { createDefaultUserAgentProvider } from "@aws-sdk/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
|
+
import { loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
|
+
import { resolveDefaultsModeConfig } from "@smithy/core/config";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
8
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
9
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
10
10
|
export const getRuntimeConfig = (config) => {
|
|
11
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
12
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
@@ -17,7 +17,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
17
17
|
runtime: "browser",
|
|
18
18
|
defaultsMode,
|
|
19
19
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
|
|
21
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
2
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/core/client";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
4
|
+
import { loadConfig as loadNodeConfig, resolveDefaultsModeConfig } from "@smithy/core/config";
|
|
5
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
6
|
+
import { calculateBodyLength, Hash } from "@smithy/core/serde";
|
|
7
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
9
8
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
12
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
13
9
|
export const getRuntimeConfig = (config) => {
|
|
14
10
|
emitWarningIfUnsupportedVersion(process.version);
|
|
15
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
12
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
13
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
+
const loaderConfig = {
|
|
15
|
+
profile: config?.profile,
|
|
16
|
+
logger: clientSharedValues.logger,
|
|
17
|
+
};
|
|
18
18
|
return {
|
|
19
19
|
...clientSharedValues,
|
|
20
20
|
...config,
|
|
21
21
|
runtime: "node",
|
|
22
22
|
defaultsMode,
|
|
23
23
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
26
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
-
retryMode: config?.retryMode ??
|
|
27
|
+
retryMode: config?.retryMode ??
|
|
28
|
+
loadNodeConfig({
|
|
29
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
30
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
31
|
+
}, config),
|
|
28
32
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
29
33
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS,
|
|
34
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
31
35
|
};
|
|
32
36
|
};
|
|
@@ -1,15 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import { HttpBearerAuthSigner, NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
4
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
5
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
6
|
+
import { defaultUsersHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
5
9
|
export const getRuntimeConfig = (config) => {
|
|
6
10
|
return {
|
|
7
11
|
apiVersion: "2018-05-10",
|
|
8
12
|
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
9
13
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
10
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
11
16
|
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultUsersHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
22
|
+
signer: new HttpBearerAuthSigner(),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
schemeId: "smithy.api#noAuth",
|
|
26
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
27
|
+
signer: new NoAuthSigner(),
|
|
28
|
+
},
|
|
29
|
+
],
|
|
12
30
|
logger: config?.logger ?? new NoOpLogger(),
|
|
31
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
32
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
33
|
+
defaultNamespace: "wildix.xbees.users",
|
|
34
|
+
errorTypeRegistries,
|
|
35
|
+
version: "2018-05-10",
|
|
36
|
+
serviceTarget: "Users",
|
|
37
|
+
},
|
|
13
38
|
urlParser: config?.urlParser ?? parseUrl,
|
|
14
39
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
15
40
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
3
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
3
4
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
|
-
const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig));
|
|
5
|
-
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
6
|
-
return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration));
|
|
5
|
+
const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
6
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
7
|
+
return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
7
8
|
};
|