File Explorer

/var/runtime/node_modules/@aws-sdk/client-s3vectors/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.js41.7 KB · 1225 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, 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 defaultS3VectorsHttpAuthSchemeParametersProvider = 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: "s3vectors",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultS3VectorsHttpAuthSchemeProvider = (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, {        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "s3vectors",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },}; var version = "3.1104.0";var packageInfo = {	version: version}; const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];const _data = {    conditions: [        [a, [b]],        [a, c],        ["aws.partition", c, "PartitionResult"],        ["booleanEquals", [{ ref: "UseFIPS" }, true]]    ],    results: [        [-1],        [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],        [b, {}],        ["https://s3vectors-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],        ["https://s3vectors.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],        [-1, "Invalid Configuration: Missing Region"]    ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([    -1, 1, -1,    0, 6, 3,    1, 4, r + 5,    2, 5, r + 5,    3, r + 3, r + 4,    3, r + 1, r + 2,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({    size: 50,    params: ["Endpoint", "Region", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => {    return cache.get(endpointParams, () => decideEndpoint(bdd, {        endpointParams: endpointParams,        logger: context.logger,    }));};customEndpointFunctions.aws = awsEndpointFunctions; class S3VectorsServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, S3VectorsServiceException.prototype);    }} class AccessDeniedException extends S3VectorsServiceException {    name = "AccessDeniedException";    $fault = "client";    constructor(opts) {        super({            name: "AccessDeniedException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, AccessDeniedException.prototype);    }}class ConflictException extends S3VectorsServiceException {    name = "ConflictException";    $fault = "client";    constructor(opts) {        super({            name: "ConflictException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ConflictException.prototype);    }}class InternalServerException extends S3VectorsServiceException {    name = "InternalServerException";    $fault = "server";    $retryable = {};    constructor(opts) {        super({            name: "InternalServerException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerException.prototype);    }}class NotFoundException extends S3VectorsServiceException {    name = "NotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "NotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, NotFoundException.prototype);    }}class RequestTimeoutException extends S3VectorsServiceException {    name = "RequestTimeoutException";    $fault = "client";    $retryable = {};    constructor(opts) {        super({            name: "RequestTimeoutException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, RequestTimeoutException.prototype);    }}class ServiceQuotaExceededException extends S3VectorsServiceException {    name = "ServiceQuotaExceededException";    $fault = "client";    constructor(opts) {        super({            name: "ServiceQuotaExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);    }}class ServiceUnavailableException extends S3VectorsServiceException {    name = "ServiceUnavailableException";    $fault = "server";    $retryable = {};    constructor(opts) {        super({            name: "ServiceUnavailableException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, ServiceUnavailableException.prototype);    }}class TooManyRequestsException extends S3VectorsServiceException {    name = "TooManyRequestsException";    $fault = "client";    $retryable = {        throttling: true,    };    constructor(opts) {        super({            name: "TooManyRequestsException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, TooManyRequestsException.prototype);    }}class ValidationException extends S3VectorsServiceException {    name = "ValidationException";    $fault = "client";    fieldList;    constructor(opts) {        super({            name: "ValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ValidationException.prototype);        this.fieldList = opts.fieldList;    }}class KmsDisabledException extends S3VectorsServiceException {    name = "KmsDisabledException";    $fault = "client";    constructor(opts) {        super({            name: "KmsDisabledException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, KmsDisabledException.prototype);    }}class KmsInvalidKeyUsageException extends S3VectorsServiceException {    name = "KmsInvalidKeyUsageException";    $fault = "client";    constructor(opts) {        super({            name: "KmsInvalidKeyUsageException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);    }}class KmsInvalidStateException extends S3VectorsServiceException {    name = "KmsInvalidStateException";    $fault = "client";    constructor(opts) {        super({            name: "KmsInvalidStateException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, KmsInvalidStateException.prototype);    }}class KmsNotFoundException extends S3VectorsServiceException {    name = "KmsNotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "KmsNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, KmsNotFoundException.prototype);    }} const _ADE = "AccessDeniedException";const _CE = "ConflictException";const _CI = "CreateIndex";const _CII = "CreateIndexInput";const _CIO = "CreateIndexOutput";const _CVB = "CreateVectorBucket";const _CVBI = "CreateVectorBucketInput";const _CVBO = "CreateVectorBucketOutput";const _DI = "DeleteIndex";const _DII = "DeleteIndexInput";const _DIO = "DeleteIndexOutput";const _DV = "DeleteVectors";const _DVB = "DeleteVectorBucket";const _DVBI = "DeleteVectorBucketInput";const _DVBO = "DeleteVectorBucketOutput";const _DVBP = "DeleteVectorBucketPolicy";const _DVBPI = "DeleteVectorBucketPolicyInput";const _DVBPO = "DeleteVectorBucketPolicyOutput";const _DVI = "DeleteVectorsInput";const _DVO = "DeleteVectorsOutput";const _EC = "EncryptionConfiguration";const _GI = "GetIndex";const _GII = "GetIndexInput";const _GIO = "GetIndexOutput";const _GOV = "GetOutputVector";const _GV = "GetVectors";const _GVB = "GetVectorBucket";const _GVBI = "GetVectorBucketInput";const _GVBO = "GetVectorBucketOutput";const _GVBP = "GetVectorBucketPolicy";const _GVBPI = "GetVectorBucketPolicyInput";const _GVBPO = "GetVectorBucketPolicyOutput";const _GVI = "GetVectorsInput";const _GVO = "GetVectorsOutput";const _GVOL = "GetVectorsOutputList";const _I = "Index";const _IS = "IndexSummary";const _ISE = "InternalServerException";const _KDE = "KmsDisabledException";const _KIKUE = "KmsInvalidKeyUsageException";const _KISE = "KmsInvalidStateException";const _KNFE = "KmsNotFoundException";const _LI = "ListIndexes";const _LII = "ListIndexesInput";const _LIO = "ListIndexesOutput";const _LIOL = "ListIndexesOutputList";const _LOV = "ListOutputVector";const _LTFR = "ListTagsForResource";const _LTFRI = "ListTagsForResourceInput";const _LTFRO = "ListTagsForResourceOutput";const _LV = "ListVectors";const _LVB = "ListVectorBuckets";const _LVBI = "ListVectorBucketsInput";const _LVBO = "ListVectorBucketsOutput";const _LVBOL = "ListVectorBucketsOutputList";const _LVI = "ListVectorsInput";const _LVO = "ListVectorsOutput";const _LVOL = "ListVectorsOutputList";const _MC = "MetadataConfiguration";const _NFE = "NotFoundException";const _PIV = "PutInputVector";const _PV = "PutVectors";const _PVBP = "PutVectorBucketPolicy";const _PVBPI = "PutVectorBucketPolicyInput";const _PVBPO = "PutVectorBucketPolicyOutput";const _PVI = "PutVectorsInput";const _PVIL = "PutVectorsInputList";const _PVO = "PutVectorsOutput";const _QOV = "QueryOutputVector";const _QV = "QueryVectors";const _QVI = "QueryVectorsInput";const _QVO = "QueryVectorsOutput";const _QVOL = "QueryVectorsOutputList";const _RTE = "RequestTimeoutException";const _SQEE = "ServiceQuotaExceededException";const _SUE = "ServiceUnavailableException";const _TMRE = "TooManyRequestsException";const _TR = "TagResource";const _TRI = "TagResourceInput";const _TRO = "TagResourceOutput";const _UR = "UntagResource";const _URI = "UntagResourceInput";const _URO = "UntagResourceOutput";const _VB = "VectorBucket";const _VBS = "VectorBucketSummary";const _VD = "VectorData";const _VE = "ValidationException";const _VEF = "ValidationExceptionField";const _VEFL = "ValidationExceptionFieldList";const _c = "client";const _cT = "creationTime";const _d = "dimension";const _dM = "distanceMetric";const _dT = "dataType";const _da = "data";const _di = "distance";const _e = "error";const _eC = "encryptionConfiguration";const _f = "filter";const _fL = "fieldList";const _fl = "float32";const _h = "http";const _hE = "httpError";const _hQ = "httpQuery";const _i = "index";const _iA = "indexArn";const _iN = "indexName";const _in = "indexes";const _k = "keys";const _kKA = "kmsKeyArn";const _ke = "key";const _m = "message";const _mC = "metadataConfiguration";const _mR = "maxResults";const _me = "metadata";const _nFMK = "nonFilterableMetadataKeys";const _nT = "nextToken";const _p = "policy";const _pa = "path";const _pr = "prefix";const _qV = "queryVector";const _rA = "resourceArn";const _rD = "returnData";const _rDe = "returnDistance";const _rM = "returnMetadata";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.s3vectors";const _sC = "segmentCount";const _sI = "segmentIndex";const _sT = "sseType";const _se = "server";const _t = "tags";const _tK = "topK";const _tKa = "tagKeys";const _v = "vectors";const _vB = "vectorBucket";const _vBA = "vectorBucketArn";const _vBN = "vectorBucketName";const _vBe = "vectorBuckets";const n0 = "com.amazonaws.s3vectors";const _s_registry = TypeRegistry.for(_s);var S3VectorsServiceException$ = [-3, _s, "S3VectorsServiceException", 0, [], []];_s_registry.registerError(S3VectorsServiceException$, S3VectorsServiceException);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 KmsDisabledException$ = [-3, n0, _KDE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(KmsDisabledException$, KmsDisabledException);var KmsInvalidKeyUsageException$ = [-3, n0, _KIKUE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(KmsInvalidKeyUsageException$, KmsInvalidKeyUsageException);var KmsInvalidStateException$ = [-3, n0, _KISE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(KmsInvalidStateException$, KmsInvalidStateException);var KmsNotFoundException$ = [-3, n0, _KNFE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(KmsNotFoundException$, KmsNotFoundException);var NotFoundException$ = [-3, n0, _NFE,    { [_e]: _c, [_hE]: 404 },    [_m],    [0], 1];n0_registry.registerError(NotFoundException$, NotFoundException);var RequestTimeoutException$ = [-3, n0, _RTE,    { [_e]: _c, [_hE]: 408 },    [_m],    [0], 1];n0_registry.registerError(RequestTimeoutException$, RequestTimeoutException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE,    { [_e]: _c, [_hE]: 402 },    [_m],    [0], 1];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ServiceUnavailableException$ = [-3, n0, _SUE,    { [_e]: _se, [_hE]: 503 },    [_m],    [0], 1];n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);var TooManyRequestsException$ = [-3, n0, _TMRE,    { [_e]: _c, [_hE]: 429 },    [_m],    [0], 1];n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);var ValidationException$ = [-3, n0, _VE,    { [_e]: _c },    [_m, _fL],    [0, () => ValidationExceptionFieldList], 1];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var CreateIndexInput$ = [3, n0, _CII,    0,    [_iN, _dT, _d, _dM, _vBN, _vBA, _mC, _eC, _t],    [0, 0, 1, 0, 0, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$, 128 | 0], 4];var CreateIndexOutput$ = [3, n0, _CIO,    0,    [_iA],    [0], 1];var CreateVectorBucketInput$ = [3, n0, _CVBI,    0,    [_vBN, _eC, _t],    [0, () => EncryptionConfiguration$, 128 | 0], 1];var CreateVectorBucketOutput$ = [3, n0, _CVBO,    0,    [_vBA],    [0], 1];var DeleteIndexInput$ = [3, n0, _DII,    0,    [_vBN, _iN, _iA],    [0, 0, 0]];var DeleteIndexOutput$ = [3, n0, _DIO,    0,    [],    []];var DeleteVectorBucketInput$ = [3, n0, _DVBI,    0,    [_vBN, _vBA],    [0, 0]];var DeleteVectorBucketOutput$ = [3, n0, _DVBO,    0,    [],    []];var DeleteVectorBucketPolicyInput$ = [3, n0, _DVBPI,    0,    [_vBN, _vBA],    [0, 0]];var DeleteVectorBucketPolicyOutput$ = [3, n0, _DVBPO,    0,    [],    []];var DeleteVectorsInput$ = [3, n0, _DVI,    0,    [_k, _vBN, _iN, _iA],    [64 | 0, 0, 0, 0], 1];var DeleteVectorsOutput$ = [3, n0, _DVO,    0,    [],    []];var EncryptionConfiguration$ = [3, n0, _EC,    0,    [_sT, _kKA],    [0, 0]];var GetIndexInput$ = [3, n0, _GII,    0,    [_vBN, _iN, _iA],    [0, 0, 0]];var GetIndexOutput$ = [3, n0, _GIO,    0,    [_i],    [() => Index$], 1];var GetOutputVector$ = [3, n0, _GOV,    0,    [_ke, _da, _me],    [0, () => VectorData$, 15], 1];var GetVectorBucketInput$ = [3, n0, _GVBI,    0,    [_vBN, _vBA],    [0, 0]];var GetVectorBucketOutput$ = [3, n0, _GVBO,    0,    [_vB],    [() => VectorBucket$], 1];var GetVectorBucketPolicyInput$ = [3, n0, _GVBPI,    0,    [_vBN, _vBA],    [0, 0]];var GetVectorBucketPolicyOutput$ = [3, n0, _GVBPO,    0,    [_p],    [0]];var GetVectorsInput$ = [3, n0, _GVI,    0,    [_k, _vBN, _iN, _iA, _rD, _rM],    [64 | 0, 0, 0, 0, 2, 2], 1];var GetVectorsOutput$ = [3, n0, _GVO,    0,    [_v],    [() => GetVectorsOutputList], 1];var Index$ = [3, n0, _I,    0,    [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC, _eC],    [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration$, () => EncryptionConfiguration$], 7];var IndexSummary$ = [3, n0, _IS,    0,    [_vBN, _iN, _iA, _cT],    [0, 0, 0, 4], 4];var ListIndexesInput$ = [3, n0, _LII,    0,    [_vBN, _vBA, _mR, _nT, _pr],    [0, 0, 1, 0, 0]];var ListIndexesOutput$ = [3, n0, _LIO,    0,    [_in, _nT],    [() => ListIndexesOutputList, 0], 1];var ListOutputVector$ = [3, n0, _LOV,    0,    [_ke, _da, _me],    [0, () => VectorData$, 15], 1];var ListTagsForResourceInput$ = [3, n0, _LTFRI,    0,    [_rA],    [[0, 1]], 1];var ListTagsForResourceOutput$ = [3, n0, _LTFRO,    0,    [_t],    [128 | 0], 1];var ListVectorBucketsInput$ = [3, n0, _LVBI,    0,    [_mR, _nT, _pr],    [1, 0, 0]];var ListVectorBucketsOutput$ = [3, n0, _LVBO,    0,    [_vBe, _nT],    [() => ListVectorBucketsOutputList, 0], 1];var ListVectorsInput$ = [3, n0, _LVI,    0,    [_vBN, _iN, _iA, _mR, _nT, _sC, _sI, _rD, _rM],    [0, 0, 0, 1, 0, 1, 1, 2, 2]];var ListVectorsOutput$ = [3, n0, _LVO,    0,    [_v, _nT],    [() => ListVectorsOutputList, 0], 1];var MetadataConfiguration$ = [3, n0, _MC,    0,    [_nFMK],    [64 | 0], 1];var PutInputVector$ = [3, n0, _PIV,    0,    [_ke, _da, _me],    [0, () => VectorData$, 15], 2];var PutVectorBucketPolicyInput$ = [3, n0, _PVBPI,    0,    [_p, _vBN, _vBA],    [0, 0, 0], 1];var PutVectorBucketPolicyOutput$ = [3, n0, _PVBPO,    0,    [],    []];var PutVectorsInput$ = [3, n0, _PVI,    0,    [_v, _vBN, _iN, _iA],    [() => PutVectorsInputList, 0, 0, 0], 1];var PutVectorsOutput$ = [3, n0, _PVO,    0,    [],    []];var QueryOutputVector$ = [3, n0, _QOV,    0,    [_ke, _di, _me],    [0, 1, 15], 1];var QueryVectorsInput$ = [3, n0, _QVI,    0,    [_tK, _qV, _vBN, _iN, _iA, _f, _rM, _rDe, _nT],    [1, () => VectorData$, 0, 0, 0, 15, 2, 2, 0], 2];var QueryVectorsOutput$ = [3, n0, _QVO,    0,    [_v, _dM, _nT],    [() => QueryVectorsOutputList, 0, 0], 2];var TagResourceInput$ = [3, n0, _TRI,    0,    [_rA, _t],    [[0, 1], 128 | 0], 2];var TagResourceOutput$ = [3, n0, _TRO,    0,    [],    []];var UntagResourceInput$ = [3, n0, _URI,    0,    [_rA, _tKa],    [[0, 1], [64 | 0, { [_hQ]: _tKa }]], 2];var UntagResourceOutput$ = [3, n0, _URO,    0,    [],    []];var ValidationExceptionField$ = [3, n0, _VEF,    0,    [_pa, _m],    [0, 0], 2];var VectorBucket$ = [3, n0, _VB,    0,    [_vBN, _vBA, _cT, _eC],    [0, 0, 4, () => EncryptionConfiguration$], 3];var VectorBucketSummary$ = [3, n0, _VBS,    0,    [_vBN, _vBA, _cT],    [0, 0, 4], 3];var GetVectorsOutputList = [1, n0, _GVOL,    0, () => GetOutputVector$];var ListIndexesOutputList = [1, n0, _LIOL,    0, () => IndexSummary$];var ListVectorBucketsOutputList = [1, n0, _LVBOL,    0, () => VectorBucketSummary$];var ListVectorsOutputList = [1, n0, _LVOL,    0, () => ListOutputVector$];var PutVectorsInputList = [1, n0, _PVIL,    0, () => PutInputVector$];var QueryVectorsOutputList = [1, n0, _QVOL,    0, () => QueryOutputVector$];var ValidationExceptionFieldList = [1, n0, _VEFL,    0, () => ValidationExceptionField$];var VectorData$ = [4, n0, _VD,    0,    [_fl],    [64 | 1]];var CreateIndex$ = [9, n0, _CI,    { [_h]: ["POST", "/CreateIndex", 200] }, () => CreateIndexInput$, () => CreateIndexOutput$];var CreateVectorBucket$ = [9, n0, _CVB,    { [_h]: ["POST", "/CreateVectorBucket", 200] }, () => CreateVectorBucketInput$, () => CreateVectorBucketOutput$];var DeleteIndex$ = [9, n0, _DI,    { [_h]: ["POST", "/DeleteIndex", 200] }, () => DeleteIndexInput$, () => DeleteIndexOutput$];var DeleteVectorBucket$ = [9, n0, _DVB,    { [_h]: ["POST", "/DeleteVectorBucket", 200] }, () => DeleteVectorBucketInput$, () => DeleteVectorBucketOutput$];var DeleteVectorBucketPolicy$ = [9, n0, _DVBP,    { [_h]: ["POST", "/DeleteVectorBucketPolicy", 200] }, () => DeleteVectorBucketPolicyInput$, () => DeleteVectorBucketPolicyOutput$];var DeleteVectors$ = [9, n0, _DV,    { [_h]: ["POST", "/DeleteVectors", 200] }, () => DeleteVectorsInput$, () => DeleteVectorsOutput$];var GetIndex$ = [9, n0, _GI,    { [_h]: ["POST", "/GetIndex", 200] }, () => GetIndexInput$, () => GetIndexOutput$];var GetVectorBucket$ = [9, n0, _GVB,    { [_h]: ["POST", "/GetVectorBucket", 200] }, () => GetVectorBucketInput$, () => GetVectorBucketOutput$];var GetVectorBucketPolicy$ = [9, n0, _GVBP,    { [_h]: ["POST", "/GetVectorBucketPolicy", 200] }, () => GetVectorBucketPolicyInput$, () => GetVectorBucketPolicyOutput$];var GetVectors$ = [9, n0, _GV,    { [_h]: ["POST", "/GetVectors", 200] }, () => GetVectorsInput$, () => GetVectorsOutput$];var ListIndexes$ = [9, n0, _LI,    { [_h]: ["POST", "/ListIndexes", 200] }, () => ListIndexesInput$, () => ListIndexesOutput$];var ListTagsForResource$ = [9, n0, _LTFR,    { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$];var ListVectorBuckets$ = [9, n0, _LVB,    { [_h]: ["POST", "/ListVectorBuckets", 200] }, () => ListVectorBucketsInput$, () => ListVectorBucketsOutput$];var ListVectors$ = [9, n0, _LV,    { [_h]: ["POST", "/ListVectors", 200] }, () => ListVectorsInput$, () => ListVectorsOutput$];var PutVectorBucketPolicy$ = [9, n0, _PVBP,    { [_h]: ["POST", "/PutVectorBucketPolicy", 200] }, () => PutVectorBucketPolicyInput$, () => PutVectorBucketPolicyOutput$];var PutVectors$ = [9, n0, _PV,    { [_h]: ["POST", "/PutVectors", 200] }, () => PutVectorsInput$, () => PutVectorsOutput$];var QueryVectors$ = [9, n0, _QV,    { [_h]: ["POST", "/QueryVectors", 200] }, () => QueryVectorsInput$, () => QueryVectorsOutput$];var TagResource$ = [9, n0, _TR,    { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$];var UntagResource$ = [9, n0, _UR,    { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2025-07-15",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultS3VectorsHttpAuthSchemeProvider,        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.s3vectors",            errorTypeRegistries,            version: "2025-07-15",            serviceTarget: "S3Vectors",        },        serviceId: config?.serviceId ?? "S3Vectors",        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 S3VectorsClient 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: defaultS3VectorsHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "S3Vectors", "S3VectorsClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateIndexCommand extends command(_ep0, _mw0, "CreateIndex", CreateIndex$) {} class CreateVectorBucketCommand extends command(_ep0, _mw0, "CreateVectorBucket", CreateVectorBucket$) {} class DeleteIndexCommand extends command(_ep0, _mw0, "DeleteIndex", DeleteIndex$) {} class DeleteVectorBucketCommand extends command(_ep0, _mw0, "DeleteVectorBucket", DeleteVectorBucket$) {} class DeleteVectorBucketPolicyCommand extends command(_ep0, _mw0, "DeleteVectorBucketPolicy", DeleteVectorBucketPolicy$) {} class DeleteVectorsCommand extends command(_ep0, _mw0, "DeleteVectors", DeleteVectors$) {} class GetIndexCommand extends command(_ep0, _mw0, "GetIndex", GetIndex$) {} class GetVectorBucketCommand extends command(_ep0, _mw0, "GetVectorBucket", GetVectorBucket$) {} class GetVectorBucketPolicyCommand extends command(_ep0, _mw0, "GetVectorBucketPolicy", GetVectorBucketPolicy$) {} class GetVectorsCommand extends command(_ep0, _mw0, "GetVectors", GetVectors$) {} class ListIndexesCommand extends command(_ep0, _mw0, "ListIndexes", ListIndexes$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class ListVectorBucketsCommand extends command(_ep0, _mw0, "ListVectorBuckets", ListVectorBuckets$) {} class ListVectorsCommand extends command(_ep0, _mw0, "ListVectors", ListVectors$) {} class PutVectorBucketPolicyCommand extends command(_ep0, _mw0, "PutVectorBucketPolicy", PutVectorBucketPolicy$) {} class PutVectorsCommand extends command(_ep0, _mw0, "PutVectors", PutVectors$) {} class QueryVectorsCommand extends command(_ep0, _mw0, "QueryVectors", QueryVectors$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} const paginateListIndexes = createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults"); const paginateListVectorBuckets = createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults"); const paginateListVectors = createPaginator(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults"); const paginateQueryVectors = createPaginator(S3VectorsClient, QueryVectorsCommand, "nextToken", "nextToken", ""); const commands = {    CreateIndexCommand,    CreateVectorBucketCommand,    DeleteIndexCommand,    DeleteVectorBucketCommand,    DeleteVectorBucketPolicyCommand,    DeleteVectorsCommand,    GetIndexCommand,    GetVectorBucketCommand,    GetVectorBucketPolicyCommand,    GetVectorsCommand,    ListIndexesCommand,    ListTagsForResourceCommand,    ListVectorBucketsCommand,    ListVectorsCommand,    PutVectorBucketPolicyCommand,    PutVectorsCommand,    QueryVectorsCommand,    TagResourceCommand,    UntagResourceCommand,};const paginators = {    paginateListIndexes,    paginateListVectorBuckets,    paginateListVectors,    paginateQueryVectors,};class S3Vectors extends S3VectorsClient {}createAggregatedClient(commands, S3Vectors, { paginators }); const DataType = {    FLOAT32: "float32",};const DistanceMetric = {    COSINE: "cosine",    EUCLIDEAN: "euclidean",};const SseType = {    AES256: "AES256",    AWS_KMS: "aws:kms",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateIndex$ = CreateIndex$;exports.CreateIndexCommand = CreateIndexCommand;exports.CreateIndexInput$ = CreateIndexInput$;exports.CreateIndexOutput$ = CreateIndexOutput$;exports.CreateVectorBucket$ = CreateVectorBucket$;exports.CreateVectorBucketCommand = CreateVectorBucketCommand;exports.CreateVectorBucketInput$ = CreateVectorBucketInput$;exports.CreateVectorBucketOutput$ = CreateVectorBucketOutput$;exports.DataType = DataType;exports.DeleteIndex$ = DeleteIndex$;exports.DeleteIndexCommand = DeleteIndexCommand;exports.DeleteIndexInput$ = DeleteIndexInput$;exports.DeleteIndexOutput$ = DeleteIndexOutput$;exports.DeleteVectorBucket$ = DeleteVectorBucket$;exports.DeleteVectorBucketCommand = DeleteVectorBucketCommand;exports.DeleteVectorBucketInput$ = DeleteVectorBucketInput$;exports.DeleteVectorBucketOutput$ = DeleteVectorBucketOutput$;exports.DeleteVectorBucketPolicy$ = DeleteVectorBucketPolicy$;exports.DeleteVectorBucketPolicyCommand = DeleteVectorBucketPolicyCommand;exports.DeleteVectorBucketPolicyInput$ = DeleteVectorBucketPolicyInput$;exports.DeleteVectorBucketPolicyOutput$ = DeleteVectorBucketPolicyOutput$;exports.DeleteVectors$ = DeleteVectors$;exports.DeleteVectorsCommand = DeleteVectorsCommand;exports.DeleteVectorsInput$ = DeleteVectorsInput$;exports.DeleteVectorsOutput$ = DeleteVectorsOutput$;exports.DistanceMetric = DistanceMetric;exports.EncryptionConfiguration$ = EncryptionConfiguration$;exports.GetIndex$ = GetIndex$;exports.GetIndexCommand = GetIndexCommand;exports.GetIndexInput$ = GetIndexInput$;exports.GetIndexOutput$ = GetIndexOutput$;exports.GetOutputVector$ = GetOutputVector$;exports.GetVectorBucket$ = GetVectorBucket$;exports.GetVectorBucketCommand = GetVectorBucketCommand;exports.GetVectorBucketInput$ = GetVectorBucketInput$;exports.GetVectorBucketOutput$ = GetVectorBucketOutput$;exports.GetVectorBucketPolicy$ = GetVectorBucketPolicy$;exports.GetVectorBucketPolicyCommand = GetVectorBucketPolicyCommand;exports.GetVectorBucketPolicyInput$ = GetVectorBucketPolicyInput$;exports.GetVectorBucketPolicyOutput$ = GetVectorBucketPolicyOutput$;exports.GetVectors$ = GetVectors$;exports.GetVectorsCommand = GetVectorsCommand;exports.GetVectorsInput$ = GetVectorsInput$;exports.GetVectorsOutput$ = GetVectorsOutput$;exports.Index$ = Index$;exports.IndexSummary$ = IndexSummary$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.KmsDisabledException = KmsDisabledException;exports.KmsDisabledException$ = KmsDisabledException$;exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException;exports.KmsInvalidKeyUsageException$ = KmsInvalidKeyUsageException$;exports.KmsInvalidStateException = KmsInvalidStateException;exports.KmsInvalidStateException$ = KmsInvalidStateException$;exports.KmsNotFoundException = KmsNotFoundException;exports.KmsNotFoundException$ = KmsNotFoundException$;exports.ListIndexes$ = ListIndexes$;exports.ListIndexesCommand = ListIndexesCommand;exports.ListIndexesInput$ = ListIndexesInput$;exports.ListIndexesOutput$ = ListIndexesOutput$;exports.ListOutputVector$ = ListOutputVector$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;exports.ListVectorBuckets$ = ListVectorBuckets$;exports.ListVectorBucketsCommand = ListVectorBucketsCommand;exports.ListVectorBucketsInput$ = ListVectorBucketsInput$;exports.ListVectorBucketsOutput$ = ListVectorBucketsOutput$;exports.ListVectors$ = ListVectors$;exports.ListVectorsCommand = ListVectorsCommand;exports.ListVectorsInput$ = ListVectorsInput$;exports.ListVectorsOutput$ = ListVectorsOutput$;exports.MetadataConfiguration$ = MetadataConfiguration$;exports.NotFoundException = NotFoundException;exports.NotFoundException$ = NotFoundException$;exports.PutInputVector$ = PutInputVector$;exports.PutVectorBucketPolicy$ = PutVectorBucketPolicy$;exports.PutVectorBucketPolicyCommand = PutVectorBucketPolicyCommand;exports.PutVectorBucketPolicyInput$ = PutVectorBucketPolicyInput$;exports.PutVectorBucketPolicyOutput$ = PutVectorBucketPolicyOutput$;exports.PutVectors$ = PutVectors$;exports.PutVectorsCommand = PutVectorsCommand;exports.PutVectorsInput$ = PutVectorsInput$;exports.PutVectorsOutput$ = PutVectorsOutput$;exports.QueryOutputVector$ = QueryOutputVector$;exports.QueryVectors$ = QueryVectors$;exports.QueryVectorsCommand = QueryVectorsCommand;exports.QueryVectorsInput$ = QueryVectorsInput$;exports.QueryVectorsOutput$ = QueryVectorsOutput$;exports.RequestTimeoutException = RequestTimeoutException;exports.RequestTimeoutException$ = RequestTimeoutException$;exports.S3Vectors = S3Vectors;exports.S3VectorsClient = S3VectorsClient;exports.S3VectorsServiceException = S3VectorsServiceException;exports.S3VectorsServiceException$ = S3VectorsServiceException$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.ServiceUnavailableException = ServiceUnavailableException;exports.ServiceUnavailableException$ = ServiceUnavailableException$;exports.SseType = SseType;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceInput$ = TagResourceInput$;exports.TagResourceOutput$ = TagResourceOutput$;exports.TooManyRequestsException = TooManyRequestsException;exports.TooManyRequestsException$ = TooManyRequestsException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceInput$ = UntagResourceInput$;exports.UntagResourceOutput$ = UntagResourceOutput$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.ValidationExceptionField$ = ValidationExceptionField$;exports.VectorBucket$ = VectorBucket$;exports.VectorBucketSummary$ = VectorBucketSummary$;exports.VectorData$ = VectorData$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListIndexes = paginateListIndexes;exports.paginateListVectorBuckets = paginateListVectorBuckets;exports.paginateListVectors = paginateListVectors;exports.paginateQueryVectors = paginateQueryVectors;