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