/proc/4/root/var/runtime/node_modules/@aws-sdk/client-connectparticipant/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"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.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, ArtifactStatus: () => ArtifactStatus, AttendeeFilterSensitiveLog: () => AttendeeFilterSensitiveLog, CancelParticipantAuthenticationCommand: () => CancelParticipantAuthenticationCommand, ChatItemType: () => ChatItemType, CompleteAttachmentUploadCommand: () => CompleteAttachmentUploadCommand, ConflictException: () => ConflictException, ConnectParticipant: () => ConnectParticipant, ConnectParticipantClient: () => ConnectParticipantClient, ConnectParticipantServiceException: () => ConnectParticipantServiceException, ConnectionType: () => ConnectionType, CreateParticipantConnectionCommand: () => CreateParticipantConnectionCommand, CreateParticipantConnectionResponseFilterSensitiveLog: () => CreateParticipantConnectionResponseFilterSensitiveLog, DescribeViewCommand: () => DescribeViewCommand, DescribeViewResponseFilterSensitiveLog: () => DescribeViewResponseFilterSensitiveLog, DisconnectParticipantCommand: () => DisconnectParticipantCommand, GetAttachmentCommand: () => GetAttachmentCommand, GetAuthenticationUrlCommand: () => GetAuthenticationUrlCommand, GetTranscriptCommand: () => GetTranscriptCommand, InternalServerException: () => InternalServerException, MeetingFeatureStatus: () => MeetingFeatureStatus, ParticipantRole: () => ParticipantRole, ResourceNotFoundException: () => ResourceNotFoundException, ResourceType: () => ResourceType, ScanDirection: () => ScanDirection, SendEventCommand: () => SendEventCommand, SendMessageCommand: () => SendMessageCommand, ServiceQuotaExceededException: () => ServiceQuotaExceededException, SortKey: () => SortKey, StartAttachmentUploadCommand: () => StartAttachmentUploadCommand, ThrottlingException: () => ThrottlingException, ValidationException: () => ValidationException, ViewContentFilterSensitiveLog: () => ViewContentFilterSensitiveLog, ViewFilterSensitiveLog: () => ViewFilterSensitiveLog, WebRTCConnectionFilterSensitiveLog: () => WebRTCConnectionFilterSensitiveLog, __Client: () => import_smithy_client.Client, paginateGetTranscript: () => paginateGetTranscript});module.exports = __toCommonJS(index_exports); // src/ConnectParticipantClient.tsvar 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.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "execute-api" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/ConnectParticipantClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar 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.tsvar 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.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/ConnectParticipantClient.tsvar ConnectParticipantClient = class extends import_smithy_client.Client { static { __name(this, "ConnectParticipantClient"); } /** * The resolved configuration of ConnectParticipantClient class. This is resolved and normalized from the {@link ConnectParticipantClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; 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?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getOmitRetryHeadersPlugin)(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.defaultConnectParticipantHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); 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(); }}; // src/ConnectParticipant.ts // src/commands/CancelParticipantAuthenticationCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var import_uuid = require("uuid"); // src/models/ConnectParticipantServiceException.ts var ConnectParticipantServiceException = class _ConnectParticipantServiceException extends import_smithy_client.ServiceException { static { __name(this, "ConnectParticipantServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _ConnectParticipantServiceException.prototype); }}; // src/models/models_0.ts var AccessDeniedException = class _AccessDeniedException extends ConnectParticipantServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); this.Message = opts.Message; }};var InternalServerException = class _InternalServerException extends ConnectParticipantServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; Message; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.Message = opts.Message; }};var ThrottlingException = class _ThrottlingException extends ConnectParticipantServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); this.Message = opts.Message; }};var ValidationException = class _ValidationException extends ConnectParticipantServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.Message = opts.Message; }};var ConflictException = class _ConflictException extends ConnectParticipantServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.Message = opts.Message; }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectParticipantServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.Message = opts.Message; }};var ConnectionType = { CONNECTION_CREDENTIALS: "CONNECTION_CREDENTIALS", WEBRTC_CONNECTION: "WEBRTC_CONNECTION", WEBSOCKET: "WEBSOCKET"};var MeetingFeatureStatus = { AVAILABLE: "AVAILABLE", UNAVAILABLE: "UNAVAILABLE"};var ResourceType = { CONTACT: "CONTACT", CONTACT_FLOW: "CONTACT_FLOW", HIERARCHY_GROUP: "HIERARCHY_GROUP", HIERARCHY_LEVEL: "HIERARCHY_LEVEL", INSTANCE: "INSTANCE", PARTICIPANT: "PARTICIPANT", PHONE_NUMBER: "PHONE_NUMBER", USER: "USER"};var ResourceNotFoundException = class _ResourceNotFoundException extends ConnectParticipantServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; Message; /** * <p>The identifier of the resource.</p> * @public */ ResourceId; /** * <p>The type of Amazon Connect resource.</p> * @public */ ResourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.Message = opts.Message; this.ResourceId = opts.ResourceId; this.ResourceType = opts.ResourceType; }};var ScanDirection = { BACKWARD: "BACKWARD", FORWARD: "FORWARD"};var SortKey = { ASCENDING: "ASCENDING", DESCENDING: "DESCENDING"};var ArtifactStatus = { APPROVED: "APPROVED", IN_PROGRESS: "IN_PROGRESS", REJECTED: "REJECTED"};var ParticipantRole = { AGENT: "AGENT", CUSTOMER: "CUSTOMER", CUSTOM_BOT: "CUSTOM_BOT", SUPERVISOR: "SUPERVISOR", SYSTEM: "SYSTEM"};var ChatItemType = { ATTACHMENT: "ATTACHMENT", CHAT_ENDED: "CHAT_ENDED", CONNECTION_ACK: "CONNECTION_ACK", EVENT: "EVENT", MESSAGE: "MESSAGE", MESSAGE_DELIVERED: "MESSAGE_DELIVERED", MESSAGE_READ: "MESSAGE_READ", PARTICIPANT_JOINED: "PARTICIPANT_JOINED", PARTICIPANT_LEFT: "PARTICIPANT_LEFT", TRANSFER_FAILED: "TRANSFER_FAILED", TRANSFER_SUCCEEDED: "TRANSFER_SUCCEEDED", TYPING: "TYPING"};var AttendeeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.JoinToken && { JoinToken: import_smithy_client.SENSITIVE_STRING }}), "AttendeeFilterSensitiveLog");var WebRTCConnectionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Attendee && { Attendee: AttendeeFilterSensitiveLog(obj.Attendee) }}), "WebRTCConnectionFilterSensitiveLog");var CreateParticipantConnectionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.WebRTCConnection && { WebRTCConnection: WebRTCConnectionFilterSensitiveLog(obj.WebRTCConnection) }}), "CreateParticipantConnectionResponseFilterSensitiveLog");var ViewContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.InputSchema && { InputSchema: import_smithy_client.SENSITIVE_STRING }, ...obj.Template && { Template: import_smithy_client.SENSITIVE_STRING }, ...obj.Actions && { Actions: import_smithy_client.SENSITIVE_STRING }}), "ViewContentFilterSensitiveLog");var ViewFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING }, ...obj.Content && { Content: ViewContentFilterSensitiveLog(obj.Content) }}), "ViewFilterSensitiveLog");var DescribeViewResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.View && { View: ViewFilterSensitiveLog(obj.View) }}), "DescribeViewResponseFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar se_CancelParticipantAuthenticationCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/cancel-authentication"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { SessionId: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CancelParticipantAuthenticationCommand");var se_CompleteAttachmentUploadCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/complete-attachment-upload"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { AttachmentIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AttachmentIds"), ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CompleteAttachmentUploadCommand");var se_CreateParticipantConnectionCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_PT] }); b.bp("/participant/connection"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ConnectParticipant: [], Type: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Type") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateParticipantConnectionCommand");var se_DescribeViewCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { [_xab]: input[_CT] }); b.bp("/participant/views/{ViewToken}"); b.p("ViewToken", () => input.ViewToken, "{ViewToken}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_DescribeViewCommand");var se_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/disconnect"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_DisconnectParticipantCommand");var se_GetAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/attachment"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { AttachmentId: [], UrlExpiryInSeconds: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetAttachmentCommand");var se_GetAuthenticationUrlCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/authentication-url"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { RedirectUri: [], SessionId: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetAuthenticationUrlCommand");var se_GetTranscriptCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/transcript"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ContactId: [], MaxResults: [], NextToken: [], ScanDirection: [], SortOrder: [], StartPosition: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "StartPosition") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetTranscriptCommand");var se_SendEventCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/event"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], Content: [], ContentType: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_SendEventCommand");var se_SendMessageCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/message"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], Content: [], ContentType: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_SendMessageCommand");var se_StartAttachmentUploadCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, { "content-type": "application/json", [_xab]: input[_CT] }); b.bp("/participant/start-attachment-upload"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { AttachmentName: [], AttachmentSizeInBytes: [], ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], ContentType: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_StartAttachmentUploadCommand");var de_CancelParticipantAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_CancelParticipantAuthenticationCommand");var de_CompleteAttachmentUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_CompleteAttachmentUploadCommand");var de_CreateParticipantConnectionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { ConnectionCredentials: import_smithy_client._json, WebRTCConnection: import_smithy_client._json, Websocket: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_CreateParticipantConnectionCommand");var de_DescribeViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { View: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_DescribeViewCommand");var de_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_DisconnectParticipantCommand");var de_GetAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { AttachmentSizeInBytes: import_smithy_client.expectLong, Url: import_smithy_client.expectString, UrlExpiry: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetAttachmentCommand");var de_GetAuthenticationUrlCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { AuthenticationUrl: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetAuthenticationUrlCommand");var de_GetTranscriptCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { InitialContactId: import_smithy_client.expectString, NextToken: import_smithy_client.expectString, Transcript: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetTranscriptCommand");var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { AbsoluteTime: import_smithy_client.expectString, Id: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_SendEventCommand");var de_SendMessageCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { AbsoluteTime: import_smithy_client.expectString, Id: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_SendMessageCommand");var de_StartAttachmentUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { AttachmentId: import_smithy_client.expectString, UploadMetadata: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_StartAttachmentUploadCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.connectparticipant#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.connectparticipant#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.connectparticipant#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.connectparticipant#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.connectparticipant#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.connectparticipant#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.connectparticipant#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectParticipantServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString, ResourceId: import_smithy_client.expectString, ResourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _CT = "ConnectionToken";var _PT = "ParticipantToken";var _xab = "x-amz-bearer"; // src/commands/CancelParticipantAuthenticationCommand.tsvar CancelParticipantAuthenticationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "CancelParticipantAuthentication", {}).n("ConnectParticipantClient", "CancelParticipantAuthenticationCommand").f(void 0, void 0).ser(se_CancelParticipantAuthenticationCommand).de(de_CancelParticipantAuthenticationCommand).build() { static { __name(this, "CancelParticipantAuthenticationCommand"); }}; // src/commands/CompleteAttachmentUploadCommand.ts var CompleteAttachmentUploadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "CompleteAttachmentUpload", {}).n("ConnectParticipantClient", "CompleteAttachmentUploadCommand").f(void 0, void 0).ser(se_CompleteAttachmentUploadCommand).de(de_CompleteAttachmentUploadCommand).build() { static { __name(this, "CompleteAttachmentUploadCommand"); }}; // src/commands/CreateParticipantConnectionCommand.ts var CreateParticipantConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "CreateParticipantConnection", {}).n("ConnectParticipantClient", "CreateParticipantConnectionCommand").f(void 0, CreateParticipantConnectionResponseFilterSensitiveLog).ser(se_CreateParticipantConnectionCommand).de(de_CreateParticipantConnectionCommand).build() { static { __name(this, "CreateParticipantConnectionCommand"); }}; // src/commands/DescribeViewCommand.ts var DescribeViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "DescribeView", {}).n("ConnectParticipantClient", "DescribeViewCommand").f(void 0, DescribeViewResponseFilterSensitiveLog).ser(se_DescribeViewCommand).de(de_DescribeViewCommand).build() { static { __name(this, "DescribeViewCommand"); }}; // src/commands/DisconnectParticipantCommand.ts var DisconnectParticipantCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "DisconnectParticipant", {}).n("ConnectParticipantClient", "DisconnectParticipantCommand").f(void 0, void 0).ser(se_DisconnectParticipantCommand).de(de_DisconnectParticipantCommand).build() { static { __name(this, "DisconnectParticipantCommand"); }}; // src/commands/GetAttachmentCommand.ts var GetAttachmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "GetAttachment", {}).n("ConnectParticipantClient", "GetAttachmentCommand").f(void 0, void 0).ser(se_GetAttachmentCommand).de(de_GetAttachmentCommand).build() { static { __name(this, "GetAttachmentCommand"); }}; // src/commands/GetAuthenticationUrlCommand.ts var GetAuthenticationUrlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "GetAuthenticationUrl", {}).n("ConnectParticipantClient", "GetAuthenticationUrlCommand").f(void 0, void 0).ser(se_GetAuthenticationUrlCommand).de(de_GetAuthenticationUrlCommand).build() { static { __name(this, "GetAuthenticationUrlCommand"); }}; // src/commands/GetTranscriptCommand.ts var GetTranscriptCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "GetTranscript", {}).n("ConnectParticipantClient", "GetTranscriptCommand").f(void 0, void 0).ser(se_GetTranscriptCommand).de(de_GetTranscriptCommand).build() { static { __name(this, "GetTranscriptCommand"); }}; // src/commands/SendEventCommand.ts var SendEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "SendEvent", {}).n("ConnectParticipantClient", "SendEventCommand").f(void 0, void 0).ser(se_SendEventCommand).de(de_SendEventCommand).build() { static { __name(this, "SendEventCommand"); }}; // src/commands/SendMessageCommand.ts var SendMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "SendMessage", {}).n("ConnectParticipantClient", "SendMessageCommand").f(void 0, void 0).ser(se_SendMessageCommand).de(de_SendMessageCommand).build() { static { __name(this, "SendMessageCommand"); }}; // src/commands/StartAttachmentUploadCommand.ts var StartAttachmentUploadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AmazonConnectParticipantServiceLambda", "StartAttachmentUpload", {}).n("ConnectParticipantClient", "StartAttachmentUploadCommand").f(void 0, void 0).ser(se_StartAttachmentUploadCommand).de(de_StartAttachmentUploadCommand).build() { static { __name(this, "StartAttachmentUploadCommand"); }}; // src/ConnectParticipant.tsvar commands = { CancelParticipantAuthenticationCommand, CompleteAttachmentUploadCommand, CreateParticipantConnectionCommand, DescribeViewCommand, DisconnectParticipantCommand, GetAttachmentCommand, GetAuthenticationUrlCommand, GetTranscriptCommand, SendEventCommand, SendMessageCommand, StartAttachmentUploadCommand};var ConnectParticipant = class extends ConnectParticipantClient { static { __name(this, "ConnectParticipant"); }};(0, import_smithy_client.createAggregatedClient)(commands, ConnectParticipant); // src/pagination/GetTranscriptPaginator.ts var paginateGetTranscript = (0, import_core.createPaginator)(ConnectParticipantClient, GetTranscriptCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { ConnectParticipantServiceException, __Client, ConnectParticipantClient, ConnectParticipant, $Command, CancelParticipantAuthenticationCommand, CompleteAttachmentUploadCommand, CreateParticipantConnectionCommand, DescribeViewCommand, DisconnectParticipantCommand, GetAttachmentCommand, GetAuthenticationUrlCommand, GetTranscriptCommand, SendEventCommand, SendMessageCommand, StartAttachmentUploadCommand, paginateGetTranscript, AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ConflictException, ServiceQuotaExceededException, ConnectionType, MeetingFeatureStatus, ResourceType, ResourceNotFoundException, ScanDirection, SortKey, ArtifactStatus, ParticipantRole, ChatItemType, AttendeeFilterSensitiveLog, WebRTCConnectionFilterSensitiveLog, CreateParticipantConnectionResponseFilterSensitiveLog, ViewContentFilterSensitiveLog, ViewFilterSensitiveLog, DescribeViewResponseFilterSensitiveLog});