File Explorer

/proc/2/root/var/runtime/node_modules/@aws-sdk/client-elementalinference/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 /.

index.js38.5 KB · 1098 lines
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, createWaiter, checkExceptions, WaiterState, 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, 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 defaultElementalInferenceHttpAuthSchemeParametersProvider = 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: "elemental-inference",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultElementalInferenceHttpAuthSchemeProvider = (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: "elemental-inference",    });};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]]    ],    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://elemental-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],        ["https://elemental-inference-fips.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "FIPS is enabled but this partition does not support FIPS"],        ["https://elemental-inference.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "DualStack is enabled but this partition does not support DualStack"],        ["https://elemental-inference.{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, 12, 3,    1, 4, r + 11,    2, 5, r + 11,    3, 8, 6,    4, 7, r + 10,    5, r + 8, r + 9,    4, 10, 9,    6, r + 6, r + 7,    5, 11, r + 5,    6, r + 4, r + 5,    3, r + 1, 13,    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 ElementalInferenceServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, ElementalInferenceServiceException.prototype);    }} class AccessDeniedException extends ElementalInferenceServiceException {    name = "AccessDeniedException";    $fault = "client";    constructor(opts) {        super({            name: "AccessDeniedException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, AccessDeniedException.prototype);    }}class ConflictException extends ElementalInferenceServiceException {    name = "ConflictException";    $fault = "client";    $retryable = {};    constructor(opts) {        super({            name: "ConflictException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ConflictException.prototype);    }}class InternalServerErrorException extends ElementalInferenceServiceException {    name = "InternalServerErrorException";    $fault = "server";    $retryable = {};    constructor(opts) {        super({            name: "InternalServerErrorException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerErrorException.prototype);    }}class ResourceNotFoundException extends ElementalInferenceServiceException {    name = "ResourceNotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "ResourceNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ResourceNotFoundException.prototype);    }}class ServiceQuotaExceededException extends ElementalInferenceServiceException {    name = "ServiceQuotaExceededException";    $fault = "client";    constructor(opts) {        super({            name: "ServiceQuotaExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);    }}class TooManyRequestException extends ElementalInferenceServiceException {    name = "TooManyRequestException";    $fault = "client";    $retryable = {};    constructor(opts) {        super({            name: "TooManyRequestException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, TooManyRequestException.prototype);    }}class ValidationException extends ElementalInferenceServiceException {    name = "ValidationException";    $fault = "client";    constructor(opts) {        super({            name: "ValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ValidationException.prototype);    }} const _ADE = "AccessDeniedException";const _AF = "AssociateFeed";const _AFR = "AssociateFeedRequest";const _AFRs = "AssociateFeedResponse";const _AR = "AspectRatio";const _CC = "ClippingConfig";const _CCr = "CroppingConfig";const _CD = "CreateDictionary";const _CDR = "CreateDictionaryRequest";const _CDRr = "CreateDictionaryResponse";const _CE = "ConflictException";const _CF = "CreateFeed";const _CFR = "CreateFeedRequest";const _CFRr = "CreateFeedResponse";const _CO = "CreateOutput";const _COL = "CreateOutputList";const _DD = "DeleteDictionary";const _DDR = "DeleteDictionaryRequest";const _DDRe = "DeleteDictionaryResponse";const _DF = "DeleteFeed";const _DFR = "DeleteFeedRequest";const _DFRe = "DeleteFeedResponse";const _DFRi = "DisassociateFeedRequest";const _DFRis = "DisassociateFeedResponse";const _DFi = "DisassociateFeed";const _DS = "DictionarySummary";const _DSL = "DictionarySummaryList";const _EDE = "ExportDictionaryEntries";const _EDER = "ExportDictionaryEntriesRequest";const _EDERx = "ExportDictionaryEntriesResponse";const _FA = "FeedAssociation";const _FS = "FeedSummary";const _FSL = "FeedSummaryList";const _GD = "GetDictionary";const _GDR = "GetDictionaryRequest";const _GDRe = "GetDictionaryResponse";const _GF = "GetFeed";const _GFR = "GetFeedRequest";const _GFRe = "GetFeedResponse";const _GO = "GetOutput";const _GOL = "GetOutputList";const _ISEE = "InternalServerErrorException";const _LD = "ListDictionaries";const _LDR = "ListDictionariesRequest";const _LDRi = "ListDictionariesResponse";const _LF = "ListFeeds";const _LFR = "ListFeedsRequest";const _LFRi = "ListFeedsResponse";const _LTFR = "ListTagsForResource";const _LTFRR = "ListTagsForResourceRequest";const _LTFRRi = "ListTagsForResourceResponse";const _OC = "OutputConfig";const _RNFE = "ResourceNotFoundException";const _SC = "SubtitlingConfig";const _SQEE = "ServiceQuotaExceededException";const _TG = "TemplateGroup";const _TGL = "TemplateGroupList";const _TMRE = "TooManyRequestException";const _TR = "TagResource";const _TRR = "TagResourceRequest";const _UD = "UpdateDictionary";const _UDR = "UpdateDictionaryRequest";const _UDRp = "UpdateDictionaryResponse";const _UF = "UpdateFeed";const _UFR = "UpdateFeedRequest";const _UFRp = "UpdateFeedResponse";const _UO = "UpdateOutput";const _UOL = "UpdateOutputList";const _UR = "UntagResource";const _URR = "UntagResourceRequest";const _VE = "ValidationException";const _a = "arn";const _aR = "aspectRatio";const _aRA = "accessRoleArn";const _aRN = "associatedResourceName";const _as = "association";const _c = "client";const _cM = "callbackMetadata";const _cl = "clipping";const _cr = "cropping";const _d = "description";const _dE = "dataEndpoints";const _dR = "dryRun";const _di = "dictionaries";const _dic = "dictionary";const _e = "error";const _en = "entries";const _f = "feeds";const _fA = "fromAssociation";const _h = "height";const _hE = "httpError";const _hQ = "httpQuery";const _ht = "http";const _i = "id";const _l = "language";const _m = "message";const _mR = "maxResults";const _n = "name";const _nT = "nextToken";const _o = "outputs";const _oC = "outputConfig";const _pF = "profanityFilter";const _r = "references";const _rA = "resourceArn";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.elementalinference";const _se = "server";const _st = "status";const _su = "subtitling";const _t = "tags";const _tG = "templateGroups";const _tK = "tagKeys";const _tU = "templateUris";const _w = "width";const n0 = "com.amazonaws.elementalinference";const _s_registry = TypeRegistry.for(_s);var ElementalInferenceServiceException$ = [-3, _s, "ElementalInferenceServiceException", 0, [], []];_s_registry.registerError(ElementalInferenceServiceException$, ElementalInferenceServiceException);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 InternalServerErrorException$ = [-3, n0, _ISEE,    { [_e]: _se, [_hE]: 500 },    [_m],    [0], 1];n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);var ResourceNotFoundException$ = [-3, n0, _RNFE,    { [_e]: _c, [_hE]: 404 },    [_m],    [0], 1];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE,    { [_e]: _c, [_hE]: 402 },    [_m],    [0], 1];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var TooManyRequestException$ = [-3, n0, _TMRE,    { [_e]: _c, [_hE]: 429 },    [_m],    [0], 1];n0_registry.registerError(TooManyRequestException$, TooManyRequestException);var ValidationException$ = [-3, n0, _VE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var AspectRatio$ = [3, n0, _AR,    0,    [_w, _h],    [1, 1], 2];var AssociateFeedRequest$ = [3, n0, _AFR,    0,    [_i, _o, _aRN, _dR],    [[0, 1], () => CreateOutputList, [0, 4], 2], 2];var AssociateFeedResponse$ = [3, n0, _AFRs,    0,    [_a, _i],    [0, 0], 2];var ClippingConfig$ = [3, n0, _CC,    0,    [_cM],    [0]];var CreateDictionaryRequest$ = [3, n0, _CDR,    0,    [_n, _l, _en, _t],    [0, 0, 0, 128 | 0], 2];var CreateDictionaryResponse$ = [3, n0, _CDRr,    0,    [_n, _a, _i, _l, _st, _r, _t],    [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5];var CreateFeedRequest$ = [3, n0, _CFR,    0,    [_n, _o, _aRA, _t],    [0, () => CreateOutputList, 0, 128 | 0], 2];var CreateFeedResponse$ = [3, n0, _CFRr,    0,    [_a, _n, _i, _dE, _o, _st, _as, _t],    [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6];var CreateOutput$ = [3, n0, _CO,    0,    [_n, _oC, _st, _d],    [0, () => OutputConfig$, 0, 0], 3];var CroppingConfig$ = [3, n0, _CCr,    0,    [_tG],    [() => TemplateGroupList]];var DeleteDictionaryRequest$ = [3, n0, _DDR,    0,    [_i],    [[0, 1]], 1];var DeleteDictionaryResponse$ = [3, n0, _DDRe,    0,    [_a, _i, _st],    [0, 0, 0], 3];var DeleteFeedRequest$ = [3, n0, _DFR,    0,    [_i],    [[0, 1]], 1];var DeleteFeedResponse$ = [3, n0, _DFRe,    0,    [_a, _i, _st],    [0, 0, 0], 3];var DictionarySummary$ = [3, n0, _DS,    0,    [_a, _i, _n, _l, _st],    [0, 0, 0, 0, 0], 5];var DisassociateFeedRequest$ = [3, n0, _DFRi,    0,    [_i, _aRN, _dR],    [[0, 1], [0, 4], 2], 1];var DisassociateFeedResponse$ = [3, n0, _DFRis,    0,    [_a, _i],    [0, 0], 2];var ExportDictionaryEntriesRequest$ = [3, n0, _EDER,    0,    [_i],    [[0, 1]], 1];var ExportDictionaryEntriesResponse$ = [3, n0, _EDERx,    0,    [_en],    [0]];var FeedAssociation$ = [3, n0, _FA,    0,    [_aRN],    [0], 1];var FeedSummary$ = [3, n0, _FS,    0,    [_a, _i, _n, _st, _as],    [0, 0, 0, 0, () => FeedAssociation$], 4];var GetDictionaryRequest$ = [3, n0, _GDR,    0,    [_i],    [[0, 1]], 1];var GetDictionaryResponse$ = [3, n0, _GDRe,    0,    [_n, _a, _i, _l, _st, _r, _t],    [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5];var GetFeedRequest$ = [3, n0, _GFR,    0,    [_i],    [[0, 1]], 1];var GetFeedResponse$ = [3, n0, _GFRe,    0,    [_a, _n, _i, _dE, _o, _st, _as, _t],    [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6];var GetOutput$ = [3, n0, _GO,    0,    [_n, _oC, _st, _d, _fA],    [0, () => OutputConfig$, 0, 0, 2], 3];var ListDictionariesRequest$ = [3, n0, _LDR,    0,    [_mR, _nT],    [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]];var ListDictionariesResponse$ = [3, n0, _LDRi,    0,    [_di, _nT],    [() => DictionarySummaryList, 0], 1];var ListFeedsRequest$ = [3, n0, _LFR,    0,    [_mR, _nT],    [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]];var ListFeedsResponse$ = [3, n0, _LFRi,    0,    [_f, _nT],    [() => FeedSummaryList, 0], 1];var ListTagsForResourceRequest$ = [3, n0, _LTFRR,    0,    [_rA],    [[0, 1]], 1];var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,    0,    [_t],    [128 | 0]];var SubtitlingConfig$ = [3, n0, _SC,    0,    [_l, _aR, _dic, _pF],    [0, () => AspectRatio$, 0, 0], 1];var TagResourceRequest$ = [3, n0, _TRR,    0,    [_rA, _t],    [[0, 1], 128 | 0], 2];var TemplateGroup$ = [3, n0, _TG,    0,    [_n, _tU],    [0, 64 | 0], 2];var UntagResourceRequest$ = [3, n0, _URR,    0,    [_rA, _tK],    [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UpdateDictionaryRequest$ = [3, n0, _UDR,    0,    [_i, _n, _l, _en],    [[0, 1], 0, 0, 0], 1];var UpdateDictionaryResponse$ = [3, n0, _UDRp,    0,    [_n, _a, _i, _l, _st, _r, _t],    [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5];var UpdateFeedRequest$ = [3, n0, _UFR,    0,    [_n, _i, _o, _aRA],    [0, [0, 1], () => UpdateOutputList, 0], 3];var UpdateFeedResponse$ = [3, n0, _UFRp,    0,    [_a, _n, _i, _dE, _o, _st, _as, _t],    [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6];var UpdateOutput$ = [3, n0, _UO,    0,    [_n, _oC, _st, _d, _fA],    [0, () => OutputConfig$, 0, 0, 2], 3];var __Unit = "unit";var CreateOutputList = [1, n0, _COL,    0, () => CreateOutput$];var DictionarySummaryList = [1, n0, _DSL,    0, () => DictionarySummary$];var FeedSummaryList = [1, n0, _FSL,    0, () => FeedSummary$];var GetOutputList = [1, n0, _GOL,    0, () => GetOutput$];var TemplateGroupList = [1, n0, _TGL,    0, () => TemplateGroup$];var UpdateOutputList = [1, n0, _UOL,    0, () => UpdateOutput$];var OutputConfig$ = [4, n0, _OC,    0,    [_cr, _cl, _su],    [() => CroppingConfig$, () => ClippingConfig$, () => SubtitlingConfig$]];var AssociateFeed$ = [9, n0, _AF,    { [_ht]: ["POST", "/v1/feed/{id}/associate", 200] }, () => AssociateFeedRequest$, () => AssociateFeedResponse$];var CreateDictionary$ = [9, n0, _CD,    { [_ht]: ["POST", "/v1/dictionary", 202] }, () => CreateDictionaryRequest$, () => CreateDictionaryResponse$];var CreateFeed$ = [9, n0, _CF,    { [_ht]: ["POST", "/v1/feed", 202] }, () => CreateFeedRequest$, () => CreateFeedResponse$];var DeleteDictionary$ = [9, n0, _DD,    { [_ht]: ["DELETE", "/v1/dictionary/{id}", 202] }, () => DeleteDictionaryRequest$, () => DeleteDictionaryResponse$];var DeleteFeed$ = [9, n0, _DF,    { [_ht]: ["DELETE", "/v1/feed/{id}", 202] }, () => DeleteFeedRequest$, () => DeleteFeedResponse$];var DisassociateFeed$ = [9, n0, _DFi,    { [_ht]: ["POST", "/v1/feed/{id}/disassociate", 200] }, () => DisassociateFeedRequest$, () => DisassociateFeedResponse$];var ExportDictionaryEntries$ = [9, n0, _EDE,    { [_ht]: ["GET", "/v1/dictionary/{id}/entries/export", 200] }, () => ExportDictionaryEntriesRequest$, () => ExportDictionaryEntriesResponse$];var GetDictionary$ = [9, n0, _GD,    { [_ht]: ["GET", "/v1/dictionary/{id}", 200] }, () => GetDictionaryRequest$, () => GetDictionaryResponse$];var GetFeed$ = [9, n0, _GF,    { [_ht]: ["GET", "/v1/feed/{id}", 200] }, () => GetFeedRequest$, () => GetFeedResponse$];var ListDictionaries$ = [9, n0, _LD,    { [_ht]: ["GET", "/v1/dictionaries", 200] }, () => ListDictionariesRequest$, () => ListDictionariesResponse$];var ListFeeds$ = [9, n0, _LF,    { [_ht]: ["GET", "/v1/feeds", 200] }, () => ListFeedsRequest$, () => ListFeedsResponse$];var ListTagsForResource$ = [9, n0, _LTFR,    { [_ht]: ["GET", "/v1/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$];var TagResource$ = [9, n0, _TR,    { [_ht]: ["POST", "/v1/tags/{resourceArn}", 204] }, () => TagResourceRequest$, () => __Unit];var UntagResource$ = [9, n0, _UR,    { [_ht]: ["DELETE", "/v1/tags/{resourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit];var UpdateDictionary$ = [9, n0, _UD,    { [_ht]: ["PATCH", "/v1/dictionary/{id}", 200] }, () => UpdateDictionaryRequest$, () => UpdateDictionaryResponse$];var UpdateFeed$ = [9, n0, _UF,    { [_ht]: ["PUT", "/v1/feed/{id}", 200] }, () => UpdateFeedRequest$, () => UpdateFeedResponse$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2018-11-14",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultElementalInferenceHttpAuthSchemeProvider,        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.elementalinference",            errorTypeRegistries,            version: "2018-11-14",            serviceTarget: "ElementalInference",        },        serviceId: config?.serviceId ?? "ElementalInference",        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 ElementalInferenceClient 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(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: defaultElementalInferenceHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "ElementalInference", "ElementalInferenceClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class AssociateFeedCommand extends command(_ep0, _mw0, "AssociateFeed", AssociateFeed$) {} class CreateDictionaryCommand extends command(_ep0, _mw0, "CreateDictionary", CreateDictionary$) {} class CreateFeedCommand extends command(_ep0, _mw0, "CreateFeed", CreateFeed$) {} class DeleteDictionaryCommand extends command(_ep0, _mw0, "DeleteDictionary", DeleteDictionary$) {} class DeleteFeedCommand extends command(_ep0, _mw0, "DeleteFeed", DeleteFeed$) {} class DisassociateFeedCommand extends command(_ep0, _mw0, "DisassociateFeed", DisassociateFeed$) {} class ExportDictionaryEntriesCommand extends command(_ep0, _mw0, "ExportDictionaryEntries", ExportDictionaryEntries$) {} class GetDictionaryCommand extends command(_ep0, _mw0, "GetDictionary", GetDictionary$) {} class GetFeedCommand extends command(_ep0, _mw0, "GetFeed", GetFeed$) {} class ListDictionariesCommand extends command(_ep0, _mw0, "ListDictionaries", ListDictionaries$) {} class ListFeedsCommand extends command(_ep0, _mw0, "ListFeeds", ListFeeds$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateDictionaryCommand extends command(_ep0, _mw0, "UpdateDictionary", UpdateDictionary$) {} class UpdateFeedCommand extends command(_ep0, _mw0, "UpdateFeed", UpdateFeed$) {} const paginateListDictionaries = createPaginator(ElementalInferenceClient, ListDictionariesCommand, "nextToken", "nextToken", "maxResults"); const paginateListFeeds = createPaginator(ElementalInferenceClient, ListFeedsCommand, "nextToken", "nextToken", "maxResults"); const checkState = async (client, input) => {    let reason;    try {        let result = await client.send(new GetFeedCommand(input));        reason = result;        try {            const returnComparator = () => {                return result.status;            };            if (returnComparator() === "DELETED") {                return { state: WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.status;            };            if (returnComparator() === "DELETING") {                return { state: WaiterState.RETRY, reason };            }        }        catch (e) { }    }    catch (exception) {        reason = exception;        if (exception.name === "ResourceNotFoundException") {            return { state: WaiterState.SUCCESS, reason };        }        if (exception.name === "InternalServerErrorException") {            return { state: WaiterState.RETRY, reason };        }        if (exception.name === "TooManyRequestException") {            return { state: WaiterState.RETRY, reason };        }    }    return { state: WaiterState.RETRY, reason };};const waitForFeedDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 3, maxDelay: 120 };    return createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilFeedDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 3, maxDelay: 120 };    const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);    return checkExceptions(result);}; const commands = {    AssociateFeedCommand,    CreateDictionaryCommand,    CreateFeedCommand,    DeleteDictionaryCommand,    DeleteFeedCommand,    DisassociateFeedCommand,    ExportDictionaryEntriesCommand,    GetDictionaryCommand,    GetFeedCommand,    ListDictionariesCommand,    ListFeedsCommand,    ListTagsForResourceCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateDictionaryCommand,    UpdateFeedCommand,};const paginators = {    paginateListDictionaries,    paginateListFeeds,};const waiters = {    waitUntilFeedDeleted,};class ElementalInference extends ElementalInferenceClient {}createAggregatedClient(commands, ElementalInference, { paginators, waiters }); const TranscriptionLanguage = {    DEU: "deu",    ENG: "eng",    ENG_AU: "eng-au",    ENG_GB: "eng-gb",    ENG_US: "eng-us",    FRA: "fra",    ITA: "ita",    POR: "por",    SPA: "spa",};const ProfanityFilterMode = {    CENSOR: "CENSOR",    DISABLED: "DISABLED",    DROP: "DROP",};const OutputStatus = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const DictionaryLanguage = {    DEU: "deu",    ENG: "eng",    FRA: "fra",    ITA: "ita",    POR: "por",    SPA: "spa",};const DictionaryStatus = {    AVAILABLE: "AVAILABLE",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",    REFERENCED: "REFERENCED",};const FeedStatus = {    ACTIVE: "ACTIVE",    ARCHIVED: "ARCHIVED",    AVAILABLE: "AVAILABLE",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",    UPDATING: "UPDATING",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.AspectRatio$ = AspectRatio$;exports.AssociateFeed$ = AssociateFeed$;exports.AssociateFeedCommand = AssociateFeedCommand;exports.AssociateFeedRequest$ = AssociateFeedRequest$;exports.AssociateFeedResponse$ = AssociateFeedResponse$;exports.ClippingConfig$ = ClippingConfig$;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateDictionary$ = CreateDictionary$;exports.CreateDictionaryCommand = CreateDictionaryCommand;exports.CreateDictionaryRequest$ = CreateDictionaryRequest$;exports.CreateDictionaryResponse$ = CreateDictionaryResponse$;exports.CreateFeed$ = CreateFeed$;exports.CreateFeedCommand = CreateFeedCommand;exports.CreateFeedRequest$ = CreateFeedRequest$;exports.CreateFeedResponse$ = CreateFeedResponse$;exports.CreateOutput$ = CreateOutput$;exports.CroppingConfig$ = CroppingConfig$;exports.DeleteDictionary$ = DeleteDictionary$;exports.DeleteDictionaryCommand = DeleteDictionaryCommand;exports.DeleteDictionaryRequest$ = DeleteDictionaryRequest$;exports.DeleteDictionaryResponse$ = DeleteDictionaryResponse$;exports.DeleteFeed$ = DeleteFeed$;exports.DeleteFeedCommand = DeleteFeedCommand;exports.DeleteFeedRequest$ = DeleteFeedRequest$;exports.DeleteFeedResponse$ = DeleteFeedResponse$;exports.DictionaryLanguage = DictionaryLanguage;exports.DictionaryStatus = DictionaryStatus;exports.DictionarySummary$ = DictionarySummary$;exports.DisassociateFeed$ = DisassociateFeed$;exports.DisassociateFeedCommand = DisassociateFeedCommand;exports.DisassociateFeedRequest$ = DisassociateFeedRequest$;exports.DisassociateFeedResponse$ = DisassociateFeedResponse$;exports.ElementalInference = ElementalInference;exports.ElementalInferenceClient = ElementalInferenceClient;exports.ElementalInferenceServiceException = ElementalInferenceServiceException;exports.ElementalInferenceServiceException$ = ElementalInferenceServiceException$;exports.ExportDictionaryEntries$ = ExportDictionaryEntries$;exports.ExportDictionaryEntriesCommand = ExportDictionaryEntriesCommand;exports.ExportDictionaryEntriesRequest$ = ExportDictionaryEntriesRequest$;exports.ExportDictionaryEntriesResponse$ = ExportDictionaryEntriesResponse$;exports.FeedAssociation$ = FeedAssociation$;exports.FeedStatus = FeedStatus;exports.FeedSummary$ = FeedSummary$;exports.GetDictionary$ = GetDictionary$;exports.GetDictionaryCommand = GetDictionaryCommand;exports.GetDictionaryRequest$ = GetDictionaryRequest$;exports.GetDictionaryResponse$ = GetDictionaryResponse$;exports.GetFeed$ = GetFeed$;exports.GetFeedCommand = GetFeedCommand;exports.GetFeedRequest$ = GetFeedRequest$;exports.GetFeedResponse$ = GetFeedResponse$;exports.GetOutput$ = GetOutput$;exports.InternalServerErrorException = InternalServerErrorException;exports.InternalServerErrorException$ = InternalServerErrorException$;exports.ListDictionaries$ = ListDictionaries$;exports.ListDictionariesCommand = ListDictionariesCommand;exports.ListDictionariesRequest$ = ListDictionariesRequest$;exports.ListDictionariesResponse$ = ListDictionariesResponse$;exports.ListFeeds$ = ListFeeds$;exports.ListFeedsCommand = ListFeedsCommand;exports.ListFeedsRequest$ = ListFeedsRequest$;exports.ListFeedsResponse$ = ListFeedsResponse$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;exports.OutputConfig$ = OutputConfig$;exports.OutputStatus = OutputStatus;exports.ProfanityFilterMode = ProfanityFilterMode;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.SubtitlingConfig$ = SubtitlingConfig$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceRequest$ = TagResourceRequest$;exports.TemplateGroup$ = TemplateGroup$;exports.TooManyRequestException = TooManyRequestException;exports.TooManyRequestException$ = TooManyRequestException$;exports.TranscriptionLanguage = TranscriptionLanguage;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceRequest$ = UntagResourceRequest$;exports.UpdateDictionary$ = UpdateDictionary$;exports.UpdateDictionaryCommand = UpdateDictionaryCommand;exports.UpdateDictionaryRequest$ = UpdateDictionaryRequest$;exports.UpdateDictionaryResponse$ = UpdateDictionaryResponse$;exports.UpdateFeed$ = UpdateFeed$;exports.UpdateFeedCommand = UpdateFeedCommand;exports.UpdateFeedRequest$ = UpdateFeedRequest$;exports.UpdateFeedResponse$ = UpdateFeedResponse$;exports.UpdateOutput$ = UpdateOutput$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListDictionaries = paginateListDictionaries;exports.paginateListFeeds = paginateListFeeds;exports.waitForFeedDeleted = waitForFeedDeleted;exports.waitUntilFeedDeleted = waitUntilFeedDeleted;