/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 /.
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getOmitRetryHeadersPlugin, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultConnectParticipantHttpAuthSchemeParametersProvider = async (config, context, input) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })(), };};function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "execute-api", region: authParameters.region, }, propertiesExtractor: (config, context) => ({ signingProperties: { config, context, }, }), };}const defaultConnectParticipantHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options;};const resolveHttpAuthSchemeConfig = (config) => { const config_0 = resolveAwsSdkSigV4Config(config); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), });}; const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "execute-api", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; var version = "3.1104.0";var packageInfo = { version: version}; const k = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];const _data = { conditions: [ [c, [g]], [c, j], ["aws.partition", j, d], [e, [{ [k]: "UseFIPS" }, b]], [e, [{ [k]: "UseDualStack" }, b]], [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]], ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]] ], results: [ [a], [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [g, i], ["https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://participant.connect.{Region}.amazonaws.com", i], ["https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}", i], [a, "FIPS is enabled but this partition does not support FIPS"], ["https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "DualStack is enabled but this partition does not support DualStack"], ["https://participant.connect.{Region}.{PartitionResult#dnsSuffix}", i], [a, "Invalid Configuration: Missing Region"] ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([ -1, 1, -1, 0, 13, 3, 1, 4, r + 12, 2, 5, r + 12, 3, 8, 6, 4, 7, r + 11, 5, r + 9, r + 10, 4, 11, 9, 6, 10, r + 8, 7, r + 6, r + 7, 5, 12, r + 5, 6, r + 4, r + 5, 3, r + 1, 14, 4, r + 2, r + 3,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => { return cache.get(endpointParams, () => decideEndpoint(bdd, { endpointParams: endpointParams, logger: context.logger, }));};customEndpointFunctions.aws = awsEndpointFunctions; class ConnectParticipantServiceException extends ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, ConnectParticipantServiceException.prototype); }} class AccessDeniedException extends ConnectParticipantServiceException { name = "AccessDeniedException"; $fault = "client"; Message; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, AccessDeniedException.prototype); this.Message = opts.Message; }}class InternalServerException extends ConnectParticipantServiceException { name = "InternalServerException"; $fault = "server"; Message; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerException.prototype); this.Message = opts.Message; }}class ThrottlingException extends ConnectParticipantServiceException { name = "ThrottlingException"; $fault = "client"; Message; constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ThrottlingException.prototype); this.Message = opts.Message; }}class ValidationException extends ConnectParticipantServiceException { name = "ValidationException"; $fault = "client"; Message; constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ValidationException.prototype); this.Message = opts.Message; }}class ConflictException extends ConnectParticipantServiceException { name = "ConflictException"; $fault = "client"; Message; constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConflictException.prototype); this.Message = opts.Message; }}class ServiceQuotaExceededException extends ConnectParticipantServiceException { name = "ServiceQuotaExceededException"; $fault = "client"; Message; constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); this.Message = opts.Message; }}class ResourceNotFoundException extends ConnectParticipantServiceException { name = "ResourceNotFoundException"; $fault = "client"; Message; ResourceId; ResourceType; 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; }} const _A = "Attendee";const _ADE = "AccessDeniedException";const _AF = "AudioFeatures";const _AFU = "AudioFallbackUrl";const _AHU = "AudioHostUrl";const _AI = "AttachmentItem";const _AIt = "AttachmentId";const _AItt = "AttendeeId";const _AItta = "AttachmentIds";const _AN = "AttachmentName";const _ASIB = "AttachmentSizeInBytes";const _AT = "AbsoluteTime";const _AU = "AuthenticationUrl";const _Ac = "Actions";const _Ar = "Arn";const _At = "Attachments";const _Au = "Audio";const _C = "Content";const _CAU = "CompleteAttachmentUpload";const _CAUR = "CompleteAttachmentUploadRequest";const _CAURo = "CompleteAttachmentUploadResponse";const _CC = "ConnectionCredentials";const _CE = "ConflictException";const _CEo = "ConnectionExpiry";const _CI = "ContactId";const _CP = "ConnectParticipant";const _CPA = "CancelParticipantAuthentication";const _CPAR = "CancelParticipantAuthenticationRequest";const _CPARa = "CancelParticipantAuthenticationResponse";const _CPC = "CreateParticipantConnection";const _CPCR = "CreateParticipantConnectionRequest";const _CPCRr = "CreateParticipantConnectionResponse";const _CT = "ContentType";const _CTl = "ClientToken";const _CTo = "ConnectionToken";const _DN = "DisplayName";const _DP = "DisconnectParticipant";const _DPR = "DisconnectParticipantRequest";const _DPRi = "DisconnectParticipantResponse";const _DT = "DeliveredTimestamp";const _DV = "DescribeView";const _DVR = "DescribeViewRequest";const _DVRe = "DescribeViewResponse";const _E = "Expiry";const _EIU = "EventIngestionUrl";const _ER = "EchoReduction";const _GA = "GetAttachment";const _GAR = "GetAttachmentRequest";const _GARe = "GetAttachmentResponse";const _GAU = "GetAuthenticationUrl";const _GAUR = "GetAuthenticationUrlRequest";const _GAURe = "GetAuthenticationUrlResponse";const _GT = "GetTranscript";const _GTR = "GetTranscriptRequest";const _GTRe = "GetTranscriptResponse";const _HTI = "HeadersToInclude";const _I = "Item";const _ICI = "InitialContactId";const _IS = "InputSchema";const _ISE = "InternalServerException";const _Id = "Id";const _JT = "JoinToken";const _M = "Message";const _MF = "MeetingFeatures";const _MFC = "MeetingFeaturesConfiguration";const _MI = "MessageId";const _MIe = "MeetingId";const _MM = "MessageMetadata";const _MP = "MediaPlacement";const _MPM = "MessageProcessingMetadata";const _MPS = "MessageProcessingStatus";const _MR = "MaxResults";const _MRo = "MostRecent";const _Me = "Meeting";const _N = "Name";const _NT = "NextToken";const _PI = "ParticipantId";const _PR = "ParticipantRole";const _PT = "ParticipantToken";const _R = "Receipts";const _RCI = "RelatedContactId";const _RI = "ResourceId";const _RNFE = "ResourceNotFoundException";const _RPI = "RecipientParticipantId";const _RT = "ResourceType";const _RTe = "ReadTimestamp";const _RU = "RedirectUri";const _Re = "Receipt";const _S = "Status";const _SAU = "StartAttachmentUpload";const _SAUR = "StartAttachmentUploadRequest";const _SAURt = "StartAttachmentUploadResponse";const _SD = "ScanDirection";const _SE = "SendEvent";const _SER = "SendEventRequest";const _SERe = "SendEventResponse";const _SI = "SessionId";const _SM = "SendMessage";const _SMR = "SendMessageRequest";const _SMRe = "SendMessageResponse";const _SO = "SortOrder";const _SP = "StartPosition";const _SQEE = "ServiceQuotaExceededException";const _SU = "SignalingUrl";const _T = "Type";const _TE = "ThrottlingException";const _Te = "Template";const _Tr = "Transcript";const _U = "Url";const _UE = "UrlExpiry";const _UEIS = "UrlExpiryInSeconds";const _UM = "UploadMetadata";const _V = "View";const _VA = "ViewAction";const _VAi = "ViewActions";const _VC = "ViewContent";const _VE = "ValidationException";const _VIS = "ViewInputSchema";const _VN = "ViewName";const _VT = "ViewTemplate";const _VTi = "ViewToken";const _Ve = "Version";const _W = "Websocket";const _WRTCC = "WebRTCConnection";const _WRTCM = "WebRTCMeeting";const _WRTCMP = "WebRTCMediaPlacement";const _XAB = "X-Amz-Bearer";const _c = "client";const _e = "error";const _h = "http";const _hE = "httpError";const _hH = "httpHeader";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.connectparticipant";const _se = "server";const n0 = "com.amazonaws.connectparticipant";const _s_registry = TypeRegistry.for(_s);var ConnectParticipantServiceException$ = [-3, _s, "ConnectParticipantServiceException", 0, [], []];_s_registry.registerError(ConnectParticipantServiceException$, ConnectParticipantServiceException);const n0_registry = TypeRegistry.for(n0);var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_M], [0], 1];n0_registry.registerError(AccessDeniedException$, AccessDeniedException);var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0], 1];n0_registry.registerError(ConflictException$, ConflictException);var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_M], [0], 1];n0_registry.registerError(InternalServerException$, InternalServerException);var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M, _RI, _RT], [0, 0, 0]];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_M], [0], 1];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0], 1];n0_registry.registerError(ThrottlingException$, ThrottlingException);var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0], 1];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [ _s_registry, n0_registry,];var JoinToken = [0, n0, _JT, 8, 0];var ViewAction = [0, n0, _VA, 8, 0];var ViewInputSchema = [0, n0, _VIS, 8, 0];var ViewName = [0, n0, _VN, 8, 0];var ViewTemplate = [0, n0, _VT, 8, 0];var AttachmentItem$ = [3, n0, _AI, 0, [_CT, _AIt, _AN, _S], [0, 0, 0, 0]];var Attendee$ = [3, n0, _A, 0, [_AItt, _JT], [0, [() => JoinToken, 0]]];var AudioFeatures$ = [3, n0, _AF, 0, [_ER], [0]];var CancelParticipantAuthenticationRequest$ = [3, n0, _CPAR, 0, [_SI, _CTo], [0, [0, { [_hH]: _XAB }]], 2];var CancelParticipantAuthenticationResponse$ = [3, n0, _CPARa, 0, [], []];var CompleteAttachmentUploadRequest$ = [3, n0, _CAUR, 0, [_AItta, _CTo, _CTl], [64 | 0, [0, { [_hH]: _XAB }], [0, 4]], 2];var CompleteAttachmentUploadResponse$ = [3, n0, _CAURo, 0, [], []];var ConnectionCredentials$ = [3, n0, _CC, 0, [_CTo, _E], [0, 0]];var CreateParticipantConnectionRequest$ = [3, n0, _CPCR, 0, [_PT, _T, _CP], [[0, { [_hH]: _XAB }], 64 | 0, 2], 1];var CreateParticipantConnectionResponse$ = [3, n0, _CPCRr, 0, [_W, _CC, _WRTCC], [() => Websocket$, () => ConnectionCredentials$, [() => WebRTCConnection$, 0]]];var DescribeViewRequest$ = [3, n0, _DVR, 0, [_VTi, _CTo], [[0, 1], [0, { [_hH]: _XAB }]], 2];var DescribeViewResponse$ = [3, n0, _DVRe, 0, [_V], [[() => View$, 0]]];var DisconnectParticipantRequest$ = [3, n0, _DPR, 0, [_CTo, _CTl], [[0, { [_hH]: _XAB }], [0, 4]], 1];var DisconnectParticipantResponse$ = [3, n0, _DPRi, 0, [], []];var GetAttachmentRequest$ = [3, n0, _GAR, 0, [_AIt, _CTo, _UEIS], [0, [0, { [_hH]: _XAB }], 1], 2];var GetAttachmentResponse$ = [3, n0, _GARe, 0, [_ASIB, _U, _UE], [1, 0, 0], 1];var GetAuthenticationUrlRequest$ = [3, n0, _GAUR, 0, [_SI, _RU, _CTo], [0, 0, [0, { [_hH]: _XAB }]], 3];var GetAuthenticationUrlResponse$ = [3, n0, _GAURe, 0, [_AU], [0]];var GetTranscriptRequest$ = [3, n0, _GTR, 0, [_CTo, _CI, _MR, _NT, _SD, _SO, _SP], [[0, { [_hH]: _XAB }], 0, 1, 0, 0, 0, () => StartPosition$], 1];var GetTranscriptResponse$ = [3, n0, _GTRe, 0, [_ICI, _Tr, _NT], [0, () => Transcript, 0]];var Item$ = [3, n0, _I, 0, [_AT, _C, _CT, _Id, _T, _PI, _DN, _PR, _At, _MM, _RCI, _CI], [0, 0, 0, 0, 0, 0, 0, 0, () => Attachments, () => MessageMetadata$, 0, 0]];var MeetingFeaturesConfiguration$ = [3, n0, _MFC, 0, [_Au], [() => AudioFeatures$]];var MessageMetadata$ = [3, n0, _MM, 0, [_MI, _R, _MPS], [0, () => Receipts, 0]];var MessageProcessingMetadata$ = [3, n0, _MPM, 0, [_MPS], [0]];var Receipt$ = [3, n0, _Re, 0, [_DT, _RTe, _RPI], [0, 0, 0]];var SendEventRequest$ = [3, n0, _SER, 0, [_CT, _CTo, _C, _CTl], [0, [0, { [_hH]: _XAB }], 0, [0, 4]], 2];var SendEventResponse$ = [3, n0, _SERe, 0, [_Id, _AT], [0, 0]];var SendMessageRequest$ = [3, n0, _SMR, 0, [_CT, _C, _CTo, _CTl], [0, 0, [0, { [_hH]: _XAB }], [0, 4]], 3];var SendMessageResponse$ = [3, n0, _SMRe, 0, [_Id, _AT, _MM], [0, 0, () => MessageProcessingMetadata$]];var StartAttachmentUploadRequest$ = [3, n0, _SAUR, 0, [_CT, _ASIB, _AN, _CTo, _CTl], [0, 1, 0, [0, { [_hH]: _XAB }], [0, 4]], 4];var StartAttachmentUploadResponse$ = [3, n0, _SAURt, 0, [_AIt, _UM], [0, () => UploadMetadata$]];var StartPosition$ = [3, n0, _SP, 0, [_Id, _AT, _MRo], [0, 0, 1]];var UploadMetadata$ = [3, n0, _UM, 0, [_U, _UE, _HTI], [0, 0, 128 | 0]];var View$ = [3, n0, _V, 0, [_Id, _Ar, _N, _Ve, _C], [0, 0, [() => ViewName, 0], 1, [() => ViewContent$, 0]]];var ViewContent$ = [3, n0, _VC, 0, [_IS, _Te, _Ac], [[() => ViewInputSchema, 0], [() => ViewTemplate, 0], [() => ViewActions, 0]]];var WebRTCConnection$ = [3, n0, _WRTCC, 0, [_A, _Me], [[() => Attendee$, 0], () => WebRTCMeeting$]];var WebRTCMediaPlacement$ = [3, n0, _WRTCMP, 0, [_AHU, _AFU, _SU, _EIU], [0, 0, 0, 0]];var WebRTCMeeting$ = [3, n0, _WRTCM, 0, [_MP, _MF, _MIe], [() => WebRTCMediaPlacement$, () => MeetingFeaturesConfiguration$, 0]];var Websocket$ = [3, n0, _W, 0, [_U, _CEo], [0, 0]];var Attachments = [1, n0, _At, 0, () => AttachmentItem$];var Receipts = [1, n0, _R, 0, () => Receipt$];var Transcript = [1, n0, _Tr, 0, () => Item$];var ViewActions = [1, n0, _VAi, 0, [() => ViewAction, 0]];var CancelParticipantAuthentication$ = [9, n0, _CPA, { [_h]: ["POST", "/participant/cancel-authentication", 200] }, () => CancelParticipantAuthenticationRequest$, () => CancelParticipantAuthenticationResponse$];var CompleteAttachmentUpload$ = [9, n0, _CAU, { [_h]: ["POST", "/participant/complete-attachment-upload", 200] }, () => CompleteAttachmentUploadRequest$, () => CompleteAttachmentUploadResponse$];var CreateParticipantConnection$ = [9, n0, _CPC, { [_h]: ["POST", "/participant/connection", 200] }, () => CreateParticipantConnectionRequest$, () => CreateParticipantConnectionResponse$];var DescribeView$ = [9, n0, _DV, { [_h]: ["GET", "/participant/views/{ViewToken}", 200] }, () => DescribeViewRequest$, () => DescribeViewResponse$];var DisconnectParticipant$ = [9, n0, _DP, { [_h]: ["POST", "/participant/disconnect", 200] }, () => DisconnectParticipantRequest$, () => DisconnectParticipantResponse$];var GetAttachment$ = [9, n0, _GA, { [_h]: ["POST", "/participant/attachment", 200] }, () => GetAttachmentRequest$, () => GetAttachmentResponse$];var GetAuthenticationUrl$ = [9, n0, _GAU, { [_h]: ["POST", "/participant/authentication-url", 200] }, () => GetAuthenticationUrlRequest$, () => GetAuthenticationUrlResponse$];var GetTranscript$ = [9, n0, _GT, { [_h]: ["POST", "/participant/transcript", 200] }, () => GetTranscriptRequest$, () => GetTranscriptResponse$];var SendEvent$ = [9, n0, _SE, { [_h]: ["POST", "/participant/event", 200] }, () => SendEventRequest$, () => SendEventResponse$];var SendMessage$ = [9, n0, _SM, { [_h]: ["POST", "/participant/message", 200] }, () => SendMessageRequest$, () => SendMessageResponse$];var StartAttachmentUpload$ = [9, n0, _SAU, { [_h]: ["POST", "/participant/start-attachment-upload", 200] }, () => StartAttachmentUploadRequest$, () => StartAttachmentUploadResponse$]; const getRuntimeConfig$1 = (config) => { return { apiVersion: "2018-09-07", base64Decoder: config?.base64Decoder ?? fromBase64, base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, extensions: config?.extensions ?? [], httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultConnectParticipantHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), signer: new AwsSdkSigV4Signer(), }, ], logger: config?.logger ?? new NoOpLogger(), protocol: config?.protocol ?? AwsRestJsonProtocol, protocolSettings: config?.protocolSettings ?? { defaultNamespace: "com.amazonaws.connectparticipant", errorTypeRegistries, version: "2018-09-07", serviceTarget: "AmazonConnectParticipantServiceLambda", }, serviceId: config?.serviceId ?? "ConnectParticipant", sha256: config?.sha256 ?? Sha256, urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, utf8Encoder: config?.utf8Encoder ?? toUtf8, };}; const getRuntimeConfig = (config) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getRuntimeConfig$1(config); emitWarningIfUnsupportedVersion$1(process.version); const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger, }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config), streamCollector: config?.streamCollector ?? streamCollector, useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), };}; const getHttpAuthExtensionConfiguration = (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; }, };};const resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials(), };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class ConnectParticipantClient extends Client { config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultConnectParticipantHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} const command = makeBuilder(commonParams, "AmazonConnectParticipantServiceLambda", "ConnectParticipantClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CancelParticipantAuthenticationCommand extends command(_ep0, _mw0, "CancelParticipantAuthentication", CancelParticipantAuthentication$) {} class CompleteAttachmentUploadCommand extends command(_ep0, _mw0, "CompleteAttachmentUpload", CompleteAttachmentUpload$) {} class CreateParticipantConnectionCommand extends command(_ep0, _mw0, "CreateParticipantConnection", CreateParticipantConnection$) {} class DescribeViewCommand extends command(_ep0, _mw0, "DescribeView", DescribeView$) {} class DisconnectParticipantCommand extends command(_ep0, _mw0, "DisconnectParticipant", DisconnectParticipant$) {} class GetAttachmentCommand extends command(_ep0, _mw0, "GetAttachment", GetAttachment$) {} class GetAuthenticationUrlCommand extends command(_ep0, _mw0, "GetAuthenticationUrl", GetAuthenticationUrl$) {} class GetTranscriptCommand extends command(_ep0, _mw0, "GetTranscript", GetTranscript$) {} class SendEventCommand extends command(_ep0, _mw0, "SendEvent", SendEvent$) {} class SendMessageCommand extends command(_ep0, _mw0, "SendMessage", SendMessage$) {} class StartAttachmentUploadCommand extends command(_ep0, _mw0, "StartAttachmentUpload", StartAttachmentUpload$) {} const paginateGetTranscript = createPaginator(ConnectParticipantClient, GetTranscriptCommand, "NextToken", "NextToken", "MaxResults"); const commands = { CancelParticipantAuthenticationCommand, CompleteAttachmentUploadCommand, CreateParticipantConnectionCommand, DescribeViewCommand, DisconnectParticipantCommand, GetAttachmentCommand, GetAuthenticationUrlCommand, GetTranscriptCommand, SendEventCommand, SendMessageCommand, StartAttachmentUploadCommand,};const paginators = { paginateGetTranscript,};class ConnectParticipant extends ConnectParticipantClient {}createAggregatedClient(commands, ConnectParticipant, { paginators }); const ConnectionType = { CONNECTION_CREDENTIALS: "CONNECTION_CREDENTIALS", WEBRTC_CONNECTION: "WEBRTC_CONNECTION", WEBSOCKET: "WEBSOCKET",};const MeetingFeatureStatus = { AVAILABLE: "AVAILABLE", UNAVAILABLE: "UNAVAILABLE",};const 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",};const ScanDirection = { BACKWARD: "BACKWARD", FORWARD: "FORWARD",};const SortKey = { ASCENDING: "ASCENDING", DESCENDING: "DESCENDING",};const ArtifactStatus = { APPROVED: "APPROVED", IN_PROGRESS: "IN_PROGRESS", REJECTED: "REJECTED",};const MessageProcessingStatus = { FAILED: "FAILED", PROCESSING: "PROCESSING", REJECTED: "REJECTED",};const ParticipantRole = { AGENT: "AGENT", CUSTOMER: "CUSTOMER", CUSTOM_BOT: "CUSTOM_BOT", SUPERVISOR: "SUPERVISOR", SYSTEM: "SYSTEM",};const 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",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.ArtifactStatus = ArtifactStatus;exports.AttachmentItem$ = AttachmentItem$;exports.Attendee$ = Attendee$;exports.AudioFeatures$ = AudioFeatures$;exports.CancelParticipantAuthentication$ = CancelParticipantAuthentication$;exports.CancelParticipantAuthenticationCommand = CancelParticipantAuthenticationCommand;exports.CancelParticipantAuthenticationRequest$ = CancelParticipantAuthenticationRequest$;exports.CancelParticipantAuthenticationResponse$ = CancelParticipantAuthenticationResponse$;exports.ChatItemType = ChatItemType;exports.CompleteAttachmentUpload$ = CompleteAttachmentUpload$;exports.CompleteAttachmentUploadCommand = CompleteAttachmentUploadCommand;exports.CompleteAttachmentUploadRequest$ = CompleteAttachmentUploadRequest$;exports.CompleteAttachmentUploadResponse$ = CompleteAttachmentUploadResponse$;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.ConnectParticipant = ConnectParticipant;exports.ConnectParticipantClient = ConnectParticipantClient;exports.ConnectParticipantServiceException = ConnectParticipantServiceException;exports.ConnectParticipantServiceException$ = ConnectParticipantServiceException$;exports.ConnectionCredentials$ = ConnectionCredentials$;exports.ConnectionType = ConnectionType;exports.CreateParticipantConnection$ = CreateParticipantConnection$;exports.CreateParticipantConnectionCommand = CreateParticipantConnectionCommand;exports.CreateParticipantConnectionRequest$ = CreateParticipantConnectionRequest$;exports.CreateParticipantConnectionResponse$ = CreateParticipantConnectionResponse$;exports.DescribeView$ = DescribeView$;exports.DescribeViewCommand = DescribeViewCommand;exports.DescribeViewRequest$ = DescribeViewRequest$;exports.DescribeViewResponse$ = DescribeViewResponse$;exports.DisconnectParticipant$ = DisconnectParticipant$;exports.DisconnectParticipantCommand = DisconnectParticipantCommand;exports.DisconnectParticipantRequest$ = DisconnectParticipantRequest$;exports.DisconnectParticipantResponse$ = DisconnectParticipantResponse$;exports.GetAttachment$ = GetAttachment$;exports.GetAttachmentCommand = GetAttachmentCommand;exports.GetAttachmentRequest$ = GetAttachmentRequest$;exports.GetAttachmentResponse$ = GetAttachmentResponse$;exports.GetAuthenticationUrl$ = GetAuthenticationUrl$;exports.GetAuthenticationUrlCommand = GetAuthenticationUrlCommand;exports.GetAuthenticationUrlRequest$ = GetAuthenticationUrlRequest$;exports.GetAuthenticationUrlResponse$ = GetAuthenticationUrlResponse$;exports.GetTranscript$ = GetTranscript$;exports.GetTranscriptCommand = GetTranscriptCommand;exports.GetTranscriptRequest$ = GetTranscriptRequest$;exports.GetTranscriptResponse$ = GetTranscriptResponse$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.Item$ = Item$;exports.MeetingFeatureStatus = MeetingFeatureStatus;exports.MeetingFeaturesConfiguration$ = MeetingFeaturesConfiguration$;exports.MessageMetadata$ = MessageMetadata$;exports.MessageProcessingMetadata$ = MessageProcessingMetadata$;exports.MessageProcessingStatus = MessageProcessingStatus;exports.ParticipantRole = ParticipantRole;exports.Receipt$ = Receipt$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ResourceType = ResourceType;exports.ScanDirection = ScanDirection;exports.SendEvent$ = SendEvent$;exports.SendEventCommand = SendEventCommand;exports.SendEventRequest$ = SendEventRequest$;exports.SendEventResponse$ = SendEventResponse$;exports.SendMessage$ = SendMessage$;exports.SendMessageCommand = SendMessageCommand;exports.SendMessageRequest$ = SendMessageRequest$;exports.SendMessageResponse$ = SendMessageResponse$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.SortKey = SortKey;exports.StartAttachmentUpload$ = StartAttachmentUpload$;exports.StartAttachmentUploadCommand = StartAttachmentUploadCommand;exports.StartAttachmentUploadRequest$ = StartAttachmentUploadRequest$;exports.StartAttachmentUploadResponse$ = StartAttachmentUploadResponse$;exports.StartPosition$ = StartPosition$;exports.ThrottlingException = ThrottlingException;exports.ThrottlingException$ = ThrottlingException$;exports.UploadMetadata$ = UploadMetadata$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.View$ = View$;exports.ViewContent$ = ViewContent$;exports.WebRTCConnection$ = WebRTCConnection$;exports.WebRTCMediaPlacement$ = WebRTCMediaPlacement$;exports.WebRTCMeeting$ = WebRTCMeeting$;exports.Websocket$ = Websocket$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateGetTranscript = paginateGetTranscript;