cdk-amazon-chime-resources
Version:

1,119 lines (1,096 loc) • 113 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
AllowMessages: () => AllowMessages,
AppInstanceAdminFilterSensitiveLog: () => AppInstanceAdminFilterSensitiveLog,
AppInstanceAdminSummaryFilterSensitiveLog: () => AppInstanceAdminSummaryFilterSensitiveLog,
AppInstanceBotFilterSensitiveLog: () => AppInstanceBotFilterSensitiveLog,
AppInstanceBotSummaryFilterSensitiveLog: () => AppInstanceBotSummaryFilterSensitiveLog,
AppInstanceFilterSensitiveLog: () => AppInstanceFilterSensitiveLog,
AppInstanceSummaryFilterSensitiveLog: () => AppInstanceSummaryFilterSensitiveLog,
AppInstanceUserEndpointFilterSensitiveLog: () => AppInstanceUserEndpointFilterSensitiveLog,
AppInstanceUserEndpointSummaryFilterSensitiveLog: () => AppInstanceUserEndpointSummaryFilterSensitiveLog,
AppInstanceUserEndpointType: () => AppInstanceUserEndpointType,
AppInstanceUserFilterSensitiveLog: () => AppInstanceUserFilterSensitiveLog,
AppInstanceUserSummaryFilterSensitiveLog: () => AppInstanceUserSummaryFilterSensitiveLog,
BadRequestException: () => BadRequestException,
ChimeSDKIdentity: () => ChimeSDKIdentity,
ChimeSDKIdentityClient: () => ChimeSDKIdentityClient,
ChimeSDKIdentityServiceException: () => ChimeSDKIdentityServiceException,
ConflictException: () => ConflictException,
CreateAppInstanceAdminCommand: () => CreateAppInstanceAdminCommand,
CreateAppInstanceAdminResponseFilterSensitiveLog: () => CreateAppInstanceAdminResponseFilterSensitiveLog,
CreateAppInstanceBotCommand: () => CreateAppInstanceBotCommand,
CreateAppInstanceBotRequestFilterSensitiveLog: () => CreateAppInstanceBotRequestFilterSensitiveLog,
CreateAppInstanceCommand: () => CreateAppInstanceCommand,
CreateAppInstanceRequestFilterSensitiveLog: () => CreateAppInstanceRequestFilterSensitiveLog,
CreateAppInstanceUserCommand: () => CreateAppInstanceUserCommand,
CreateAppInstanceUserRequestFilterSensitiveLog: () => CreateAppInstanceUserRequestFilterSensitiveLog,
DeleteAppInstanceAdminCommand: () => DeleteAppInstanceAdminCommand,
DeleteAppInstanceBotCommand: () => DeleteAppInstanceBotCommand,
DeleteAppInstanceCommand: () => DeleteAppInstanceCommand,
DeleteAppInstanceUserCommand: () => DeleteAppInstanceUserCommand,
DeregisterAppInstanceUserEndpointCommand: () => DeregisterAppInstanceUserEndpointCommand,
DescribeAppInstanceAdminCommand: () => DescribeAppInstanceAdminCommand,
DescribeAppInstanceAdminResponseFilterSensitiveLog: () => DescribeAppInstanceAdminResponseFilterSensitiveLog,
DescribeAppInstanceBotCommand: () => DescribeAppInstanceBotCommand,
DescribeAppInstanceBotResponseFilterSensitiveLog: () => DescribeAppInstanceBotResponseFilterSensitiveLog,
DescribeAppInstanceCommand: () => DescribeAppInstanceCommand,
DescribeAppInstanceResponseFilterSensitiveLog: () => DescribeAppInstanceResponseFilterSensitiveLog,
DescribeAppInstanceUserCommand: () => DescribeAppInstanceUserCommand,
DescribeAppInstanceUserEndpointCommand: () => DescribeAppInstanceUserEndpointCommand,
DescribeAppInstanceUserEndpointResponseFilterSensitiveLog: () => DescribeAppInstanceUserEndpointResponseFilterSensitiveLog,
DescribeAppInstanceUserResponseFilterSensitiveLog: () => DescribeAppInstanceUserResponseFilterSensitiveLog,
EndpointAttributesFilterSensitiveLog: () => EndpointAttributesFilterSensitiveLog,
EndpointStatus: () => EndpointStatus,
EndpointStatusReason: () => EndpointStatusReason,
ErrorCode: () => ErrorCode,
ExpirationCriterion: () => ExpirationCriterion,
ForbiddenException: () => ForbiddenException,
GetAppInstanceRetentionSettingsCommand: () => GetAppInstanceRetentionSettingsCommand,
IdentityFilterSensitiveLog: () => IdentityFilterSensitiveLog,
ListAppInstanceAdminsCommand: () => ListAppInstanceAdminsCommand,
ListAppInstanceAdminsRequestFilterSensitiveLog: () => ListAppInstanceAdminsRequestFilterSensitiveLog,
ListAppInstanceAdminsResponseFilterSensitiveLog: () => ListAppInstanceAdminsResponseFilterSensitiveLog,
ListAppInstanceBotsCommand: () => ListAppInstanceBotsCommand,
ListAppInstanceBotsRequestFilterSensitiveLog: () => ListAppInstanceBotsRequestFilterSensitiveLog,
ListAppInstanceBotsResponseFilterSensitiveLog: () => ListAppInstanceBotsResponseFilterSensitiveLog,
ListAppInstanceUserEndpointsCommand: () => ListAppInstanceUserEndpointsCommand,
ListAppInstanceUserEndpointsRequestFilterSensitiveLog: () => ListAppInstanceUserEndpointsRequestFilterSensitiveLog,
ListAppInstanceUserEndpointsResponseFilterSensitiveLog: () => ListAppInstanceUserEndpointsResponseFilterSensitiveLog,
ListAppInstanceUsersCommand: () => ListAppInstanceUsersCommand,
ListAppInstanceUsersRequestFilterSensitiveLog: () => ListAppInstanceUsersRequestFilterSensitiveLog,
ListAppInstanceUsersResponseFilterSensitiveLog: () => ListAppInstanceUsersResponseFilterSensitiveLog,
ListAppInstancesCommand: () => ListAppInstancesCommand,
ListAppInstancesRequestFilterSensitiveLog: () => ListAppInstancesRequestFilterSensitiveLog,
ListAppInstancesResponseFilterSensitiveLog: () => ListAppInstancesResponseFilterSensitiveLog,
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
NotFoundException: () => NotFoundException,
PutAppInstanceRetentionSettingsCommand: () => PutAppInstanceRetentionSettingsCommand,
PutAppInstanceUserExpirationSettingsCommand: () => PutAppInstanceUserExpirationSettingsCommand,
RegisterAppInstanceUserEndpointCommand: () => RegisterAppInstanceUserEndpointCommand,
RegisterAppInstanceUserEndpointRequestFilterSensitiveLog: () => RegisterAppInstanceUserEndpointRequestFilterSensitiveLog,
ResourceLimitExceededException: () => ResourceLimitExceededException,
RespondsTo: () => RespondsTo,
ServiceFailureException: () => ServiceFailureException,
ServiceUnavailableException: () => ServiceUnavailableException,
StandardMessages: () => StandardMessages,
TagFilterSensitiveLog: () => TagFilterSensitiveLog,
TagResourceCommand: () => TagResourceCommand,
TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
TargetedMessages: () => TargetedMessages,
ThrottledClientException: () => ThrottledClientException,
UnauthorizedClientException: () => UnauthorizedClientException,
UntagResourceCommand: () => UntagResourceCommand,
UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
UpdateAppInstanceBotCommand: () => UpdateAppInstanceBotCommand,
UpdateAppInstanceBotRequestFilterSensitiveLog: () => UpdateAppInstanceBotRequestFilterSensitiveLog,
UpdateAppInstanceCommand: () => UpdateAppInstanceCommand,
UpdateAppInstanceRequestFilterSensitiveLog: () => UpdateAppInstanceRequestFilterSensitiveLog,
UpdateAppInstanceUserCommand: () => UpdateAppInstanceUserCommand,
UpdateAppInstanceUserEndpointCommand: () => UpdateAppInstanceUserEndpointCommand,
UpdateAppInstanceUserEndpointRequestFilterSensitiveLog: () => UpdateAppInstanceUserEndpointRequestFilterSensitiveLog,
UpdateAppInstanceUserRequestFilterSensitiveLog: () => UpdateAppInstanceUserRequestFilterSensitiveLog,
__Client: () => import_smithy_client.Client,
paginateListAppInstanceAdmins: () => paginateListAppInstanceAdmins,
paginateListAppInstanceBots: () => paginateListAppInstanceBots,
paginateListAppInstanceUserEndpoints: () => paginateListAppInstanceUserEndpoints,
paginateListAppInstanceUsers: () => paginateListAppInstanceUsers,
paginateListAppInstances: () => paginateListAppInstances
});
module.exports = __toCommonJS(src_exports);
// src/ChimeSDKIdentityClient.ts
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
var import_middleware_logger = require("@aws-sdk/middleware-logger");
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
var import_config_resolver = require("@smithy/config-resolver");
var import_core = require("@smithy/core");
var import_middleware_content_length = require("@smithy/middleware-content-length");
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
var import_middleware_retry = require("@smithy/middleware-retry");
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
// src/endpoint/EndpointParameters.ts
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
return {
...options,
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
useFipsEndpoint: options.useFipsEndpoint ?? false,
defaultSigningName: "chime"
};
}, "resolveClientEndpointParameters");
var commonParams = {
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
Endpoint: { type: "builtInParams", name: "endpoint" },
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
};
// src/ChimeSDKIdentityClient.ts
var import_runtimeConfig = require("././runtimeConfig");
// src/runtimeExtensions.ts
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
var import_protocol_http = require("@smithy/protocol-http");
var import_smithy_client = require("@smithy/smithy-client");
// src/auth/httpAuthExtensionConfiguration.ts
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
let _credentials = runtimeConfig.credentials;
return {
setHttpAuthScheme(httpAuthScheme) {
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
if (index === -1) {
_httpAuthSchemes.push(httpAuthScheme);
} else {
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
}
},
httpAuthSchemes() {
return _httpAuthSchemes;
},
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
_httpAuthSchemeProvider = httpAuthSchemeProvider;
},
httpAuthSchemeProvider() {
return _httpAuthSchemeProvider;
},
setCredentials(credentials) {
_credentials = credentials;
},
credentials() {
return _credentials;
}
};
}, "getHttpAuthExtensionConfiguration");
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
return {
httpAuthSchemes: config.httpAuthSchemes(),
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
credentials: config.credentials()
};
}, "resolveHttpAuthRuntimeConfig");
// src/runtimeExtensions.ts
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
const extensionConfiguration = {
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
};
extensions.forEach((extension) => extension.configure(extensionConfiguration));
return {
...runtimeConfig,
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
};
}, "resolveRuntimeExtensions");
// src/ChimeSDKIdentityClient.ts
var _ChimeSDKIdentityClient = class _ChimeSDKIdentityClient extends import_smithy_client.Client {
constructor(...[configuration]) {
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
const _config_1 = resolveClientEndpointParameters(_config_0);
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
super(_config_8);
this.config = _config_8;
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
this.middlewareStack.use(
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultChimeSDKIdentityHttpAuthSchemeParametersProvider,
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
"aws.auth#sigv4": config.credentials
})
})
);
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
}
/**
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
*/
destroy() {
super.destroy();
}
};
__name(_ChimeSDKIdentityClient, "ChimeSDKIdentityClient");
var ChimeSDKIdentityClient = _ChimeSDKIdentityClient;
// src/ChimeSDKIdentity.ts
// src/commands/CreateAppInstanceAdminCommand.ts
var import_middleware_serde = require("@smithy/middleware-serde");
// src/models/models_0.ts
// src/models/ChimeSDKIdentityServiceException.ts
var _ChimeSDKIdentityServiceException = class _ChimeSDKIdentityServiceException extends import_smithy_client.ServiceException {
/**
* @internal
*/
constructor(options) {
super(options);
Object.setPrototypeOf(this, _ChimeSDKIdentityServiceException.prototype);
}
};
__name(_ChimeSDKIdentityServiceException, "ChimeSDKIdentityServiceException");
var ChimeSDKIdentityServiceException = _ChimeSDKIdentityServiceException;
// src/models/models_0.ts
var AllowMessages = {
ALL: "ALL",
NONE: "NONE"
};
var StandardMessages = {
ALL: "ALL",
AUTO: "AUTO",
MENTIONS: "MENTIONS",
NONE: "NONE"
};
var TargetedMessages = {
ALL: "ALL",
NONE: "NONE"
};
var RespondsTo = {
STANDARD_MESSAGES: "STANDARD_MESSAGES"
};
var ExpirationCriterion = {
CREATED_TIMESTAMP: "CREATED_TIMESTAMP"
};
var EndpointStatus = {
ACTIVE: "ACTIVE",
INACTIVE: "INACTIVE"
};
var EndpointStatusReason = {
INVALID_DEVICE_TOKEN: "INVALID_DEVICE_TOKEN",
INVALID_PINPOINT_ARN: "INVALID_PINPOINT_ARN"
};
var AppInstanceUserEndpointType = {
APNS: "APNS",
APNS_SANDBOX: "APNS_SANDBOX",
GCM: "GCM"
};
var ErrorCode = {
AccessDenied: "AccessDenied",
BadRequest: "BadRequest",
Conflict: "Conflict",
Forbidden: "Forbidden",
NotFound: "NotFound",
PhoneNumberAssociationsExist: "PhoneNumberAssociationsExist",
PreconditionFailed: "PreconditionFailed",
ResourceLimitExceeded: "ResourceLimitExceeded",
ServiceFailure: "ServiceFailure",
ServiceUnavailable: "ServiceUnavailable",
Throttled: "Throttled",
Throttling: "Throttling",
Unauthorized: "Unauthorized",
Unprocessable: "Unprocessable",
VoiceConnectorGroupAssociationsExist: "VoiceConnectorGroupAssociationsExist"
};
var _BadRequestException = class _BadRequestException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "BadRequestException",
$fault: "client",
...opts
});
this.name = "BadRequestException";
this.$fault = "client";
Object.setPrototypeOf(this, _BadRequestException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_BadRequestException, "BadRequestException");
var BadRequestException = _BadRequestException;
var _ConflictException = class _ConflictException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ConflictException",
$fault: "client",
...opts
});
this.name = "ConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, _ConflictException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ConflictException, "ConflictException");
var ConflictException = _ConflictException;
var _ForbiddenException = class _ForbiddenException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ForbiddenException",
$fault: "client",
...opts
});
this.name = "ForbiddenException";
this.$fault = "client";
Object.setPrototypeOf(this, _ForbiddenException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ForbiddenException, "ForbiddenException");
var ForbiddenException = _ForbiddenException;
var _ResourceLimitExceededException = class _ResourceLimitExceededException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ResourceLimitExceededException",
$fault: "client",
...opts
});
this.name = "ResourceLimitExceededException";
this.$fault = "client";
Object.setPrototypeOf(this, _ResourceLimitExceededException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ResourceLimitExceededException, "ResourceLimitExceededException");
var ResourceLimitExceededException = _ResourceLimitExceededException;
var _ServiceFailureException = class _ServiceFailureException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ServiceFailureException",
$fault: "server",
...opts
});
this.name = "ServiceFailureException";
this.$fault = "server";
Object.setPrototypeOf(this, _ServiceFailureException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ServiceFailureException, "ServiceFailureException");
var ServiceFailureException = _ServiceFailureException;
var _ServiceUnavailableException = class _ServiceUnavailableException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ServiceUnavailableException",
$fault: "server",
...opts
});
this.name = "ServiceUnavailableException";
this.$fault = "server";
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ServiceUnavailableException, "ServiceUnavailableException");
var ServiceUnavailableException = _ServiceUnavailableException;
var _ThrottledClientException = class _ThrottledClientException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ThrottledClientException",
$fault: "client",
...opts
});
this.name = "ThrottledClientException";
this.$fault = "client";
Object.setPrototypeOf(this, _ThrottledClientException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_ThrottledClientException, "ThrottledClientException");
var ThrottledClientException = _ThrottledClientException;
var _UnauthorizedClientException = class _UnauthorizedClientException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "UnauthorizedClientException",
$fault: "client",
...opts
});
this.name = "UnauthorizedClientException";
this.$fault = "client";
Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_UnauthorizedClientException, "UnauthorizedClientException");
var UnauthorizedClientException = _UnauthorizedClientException;
var _NotFoundException = class _NotFoundException extends ChimeSDKIdentityServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "NotFoundException",
$fault: "client",
...opts
});
this.name = "NotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, _NotFoundException.prototype);
this.Code = opts.Code;
this.Message = opts.Message;
}
};
__name(_NotFoundException, "NotFoundException");
var NotFoundException = _NotFoundException;
var AppInstanceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceFilterSensitiveLog");
var IdentityFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING }
}), "IdentityFilterSensitiveLog");
var AppInstanceAdminFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Admin && { Admin: IdentityFilterSensitiveLog(obj.Admin) }
}), "AppInstanceAdminFilterSensitiveLog");
var AppInstanceAdminSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Admin && { Admin: IdentityFilterSensitiveLog(obj.Admin) }
}), "AppInstanceAdminSummaryFilterSensitiveLog");
var AppInstanceBotFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceBotFilterSensitiveLog");
var AppInstanceBotSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceBotSummaryFilterSensitiveLog");
var AppInstanceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceSummaryFilterSensitiveLog");
var AppInstanceUserFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceUserFilterSensitiveLog");
var EndpointAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.DeviceToken && { DeviceToken: import_smithy_client.SENSITIVE_STRING },
...obj.VoipDeviceToken && { VoipDeviceToken: import_smithy_client.SENSITIVE_STRING }
}), "EndpointAttributesFilterSensitiveLog");
var AppInstanceUserEndpointFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.EndpointAttributes && { EndpointAttributes: EndpointAttributesFilterSensitiveLog(obj.EndpointAttributes) }
}), "AppInstanceUserEndpointFilterSensitiveLog");
var AppInstanceUserEndpointSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceUserEndpointSummaryFilterSensitiveLog");
var AppInstanceUserSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "AppInstanceUserSummaryFilterSensitiveLog");
var TagFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Key && { Key: import_smithy_client.SENSITIVE_STRING },
...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
}), "TagFilterSensitiveLog");
var CreateAppInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING },
...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
}), "CreateAppInstanceRequestFilterSensitiveLog");
var CreateAppInstanceAdminResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceAdmin && { AppInstanceAdmin: IdentityFilterSensitiveLog(obj.AppInstanceAdmin) }
}), "CreateAppInstanceAdminResponseFilterSensitiveLog");
var CreateAppInstanceBotRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING },
...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
}), "CreateAppInstanceBotRequestFilterSensitiveLog");
var CreateAppInstanceUserRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUserId && { AppInstanceUserId: import_smithy_client.SENSITIVE_STRING },
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING },
...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
}), "CreateAppInstanceUserRequestFilterSensitiveLog");
var DescribeAppInstanceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstance && { AppInstance: AppInstanceFilterSensitiveLog(obj.AppInstance) }
}), "DescribeAppInstanceResponseFilterSensitiveLog");
var DescribeAppInstanceAdminResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceAdmin && { AppInstanceAdmin: AppInstanceAdminFilterSensitiveLog(obj.AppInstanceAdmin) }
}), "DescribeAppInstanceAdminResponseFilterSensitiveLog");
var DescribeAppInstanceBotResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceBot && { AppInstanceBot: AppInstanceBotFilterSensitiveLog(obj.AppInstanceBot) }
}), "DescribeAppInstanceBotResponseFilterSensitiveLog");
var DescribeAppInstanceUserResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUser && { AppInstanceUser: AppInstanceUserFilterSensitiveLog(obj.AppInstanceUser) }
}), "DescribeAppInstanceUserResponseFilterSensitiveLog");
var DescribeAppInstanceUserEndpointResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUserEndpoint && {
AppInstanceUserEndpoint: AppInstanceUserEndpointFilterSensitiveLog(obj.AppInstanceUserEndpoint)
}
}), "DescribeAppInstanceUserEndpointResponseFilterSensitiveLog");
var ListAppInstanceAdminsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceAdminsRequestFilterSensitiveLog");
var ListAppInstanceAdminsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceAdmins && {
AppInstanceAdmins: obj.AppInstanceAdmins.map((item) => AppInstanceAdminSummaryFilterSensitiveLog(item))
},
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceAdminsResponseFilterSensitiveLog");
var ListAppInstanceBotsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceBotsRequestFilterSensitiveLog");
var ListAppInstanceBotsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceBots && {
AppInstanceBots: obj.AppInstanceBots.map((item) => AppInstanceBotSummaryFilterSensitiveLog(item))
},
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceBotsResponseFilterSensitiveLog");
var ListAppInstancesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstancesRequestFilterSensitiveLog");
var ListAppInstancesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstances && { AppInstances: obj.AppInstances.map((item) => AppInstanceSummaryFilterSensitiveLog(item)) },
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstancesResponseFilterSensitiveLog");
var ListAppInstanceUserEndpointsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUserArn && { AppInstanceUserArn: import_smithy_client.SENSITIVE_STRING },
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceUserEndpointsRequestFilterSensitiveLog");
var ListAppInstanceUserEndpointsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUserEndpoints && {
AppInstanceUserEndpoints: obj.AppInstanceUserEndpoints.map(
(item) => AppInstanceUserEndpointSummaryFilterSensitiveLog(item)
)
},
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceUserEndpointsResponseFilterSensitiveLog");
var ListAppInstanceUsersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceUsersRequestFilterSensitiveLog");
var ListAppInstanceUsersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUsers && {
AppInstanceUsers: obj.AppInstanceUsers.map((item) => AppInstanceUserSummaryFilterSensitiveLog(item))
},
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
}), "ListAppInstanceUsersResponseFilterSensitiveLog");
var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
}), "ListTagsForResourceResponseFilterSensitiveLog");
var RegisterAppInstanceUserEndpointRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.AppInstanceUserArn && { AppInstanceUserArn: import_smithy_client.SENSITIVE_STRING },
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.EndpointAttributes && { EndpointAttributes: EndpointAttributesFilterSensitiveLog(obj.EndpointAttributes) }
}), "RegisterAppInstanceUserEndpointRequestFilterSensitiveLog");
var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }
}), "TagResourceRequestFilterSensitiveLog");
var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.TagKeys && { TagKeys: import_smithy_client.SENSITIVE_STRING }
}), "UntagResourceRequestFilterSensitiveLog");
var UpdateAppInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "UpdateAppInstanceRequestFilterSensitiveLog");
var UpdateAppInstanceBotRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "UpdateAppInstanceBotRequestFilterSensitiveLog");
var UpdateAppInstanceUserRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
...obj.Metadata && { Metadata: import_smithy_client.SENSITIVE_STRING }
}), "UpdateAppInstanceUserRequestFilterSensitiveLog");
var UpdateAppInstanceUserEndpointRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING }
}), "UpdateAppInstanceUserEndpointRequestFilterSensitiveLog");
// src/protocols/Aws_restJson1.ts
var import_core2 = require("@aws-sdk/core");
var import_uuid = require("uuid");
var se_CreateAppInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instances");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
Metadata: [],
Name: [],
Tags: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_CreateAppInstanceCommand");
var se_CreateAppInstanceAdminCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instances/{AppInstanceArn}/admins");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AppInstanceAdminArn: []
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_CreateAppInstanceAdminCommand");
var se_CreateAppInstanceBotCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-bots");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AppInstanceArn: [],
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
Configuration: (_) => (0, import_smithy_client._json)(_),
Metadata: [],
Name: [],
Tags: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_CreateAppInstanceBotCommand");
var se_CreateAppInstanceUserCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-users");
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AppInstanceArn: [],
AppInstanceUserId: [],
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
ExpirationSettings: (_) => (0, import_smithy_client._json)(_),
Metadata: [],
Name: [],
Tags: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_CreateAppInstanceUserCommand");
var se_DeleteAppInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
b.m("DELETE").h(headers).b(body);
return b.build();
}, "se_DeleteAppInstanceCommand");
var se_DeleteAppInstanceAdminCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
b.m("DELETE").h(headers).b(body);
return b.build();
}, "se_DeleteAppInstanceAdminCommand");
var se_DeleteAppInstanceBotCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-bots/{AppInstanceBotArn}");
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
let body;
b.m("DELETE").h(headers).b(body);
return b.build();
}, "se_DeleteAppInstanceBotCommand");
var se_DeleteAppInstanceUserCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users/{AppInstanceUserArn}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
let body;
b.m("DELETE").h(headers).b(body);
return b.build();
}, "se_DeleteAppInstanceUserCommand");
var se_DeregisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
let body;
b.m("DELETE").h(headers).b(body);
return b.build();
}, "se_DeregisterAppInstanceUserEndpointCommand");
var se_DescribeAppInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_DescribeAppInstanceCommand");
var se_DescribeAppInstanceAdminCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_DescribeAppInstanceAdminCommand");
var se_DescribeAppInstanceBotCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-bots/{AppInstanceBotArn}");
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_DescribeAppInstanceBotCommand");
var se_DescribeAppInstanceUserCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users/{AppInstanceUserArn}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_DescribeAppInstanceUserCommand");
var se_DescribeAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_DescribeAppInstanceUserEndpointCommand");
var se_GetAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
b.m("GET").h(headers).b(body);
return b.build();
}, "se_GetAppInstanceRetentionSettingsCommand");
var se_ListAppInstanceAdminsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances/{AppInstanceArn}/admins");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
const query = (0, import_smithy_client.map)({
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
[_nt]: [, input[_NT]]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListAppInstanceAdminsCommand");
var se_ListAppInstanceBotsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-bots");
const query = (0, import_smithy_client.map)({
[_aia]: [, (0, import_smithy_client.expectNonNull)(input[_AIA], `AppInstanceArn`)],
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
[_nt]: [, input[_NT]]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListAppInstanceBotsCommand");
var se_ListAppInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instances");
const query = (0, import_smithy_client.map)({
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
[_nt]: [, input[_NT]]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListAppInstancesCommand");
var se_ListAppInstanceUserEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
const query = (0, import_smithy_client.map)({
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
[_nt]: [, input[_NT]]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListAppInstanceUserEndpointsCommand");
var se_ListAppInstanceUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/app-instance-users");
const query = (0, import_smithy_client.map)({
[_aia]: [, (0, import_smithy_client.expectNonNull)(input[_AIA], `AppInstanceArn`)],
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
[_nt]: [, input[_NT]]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListAppInstanceUsersCommand");
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {};
b.bp("/tags");
const query = (0, import_smithy_client.map)({
[_a]: [, (0, import_smithy_client.expectNonNull)(input[_RARN], `ResourceARN`)]
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
}, "se_ListTagsForResourceCommand");
var se_PutAppInstanceRetentionSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AppInstanceRetentionSettings: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("PUT").h(headers).b(body);
return b.build();
}, "se_PutAppInstanceRetentionSettingsCommand");
var se_PutAppInstanceUserExpirationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-users/{AppInstanceUserArn}/expiration-settings");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
ExpirationSettings: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("PUT").h(headers).b(body);
return b.build();
}, "se_PutAppInstanceUserExpirationSettingsCommand");
var se_RegisterAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
AllowMessages: [],
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
EndpointAttributes: (_) => (0, import_smithy_client._json)(_),
Name: [],
ResourceArn: [],
Type: []
})
);
b.m("POST").h(headers).b(body);
return b.build();
}, "se_RegisterAppInstanceUserEndpointCommand");
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/tags");
const query = (0, import_smithy_client.map)({
[_o]: [, "tag-resource"]
});
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
ResourceARN: [],
Tags: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("POST").h(headers).q(query).b(body);
return b.build();
}, "se_TagResourceCommand");
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/tags");
const query = (0, import_smithy_client.map)({
[_o]: [, "untag-resource"]
});
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
ResourceARN: [],
TagKeys: (_) => (0, import_smithy_client._json)(_)
})
);
b.m("POST").h(headers).q(query).b(body);
return b.build();
}, "se_UntagResourceCommand");
var se_UpdateAppInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instances/{AppInstanceArn}");
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
Metadata: [],
Name: []
})
);
b.m("PUT").h(headers).b(body);
return b.build();
}, "se_UpdateAppInstanceCommand");
var se_UpdateAppInstanceBotCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-bots/{AppInstanceBotArn}");
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
Configuration: (_) => (0, import_smithy_client._json)(_),
Metadata: [],
Name: []
})
);
b.m("PUT").h(headers).b(body);
return b.build();
}, "se_UpdateAppInstanceBotCommand");
var se_UpdateAppInstanceUserCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-users/{AppInstanceUserArn}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
let body;
body = JSON.stringify(
(0, import_smithy_client.take)(input, {
Metadata: [],
Name: []
})
);
b.m("PUT").h(headers).b(body);
return b.build();
}, "se_UpdateAppInstanceUserCommand");
var se_UpdateAppInstanceUserEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core.requestBuilder)(input, context);
const headers = {
"content-type": "application/json"
};
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
let body;
body = JSON.stringify(