@qqbrowser/openclaw-qbot 0.10.19 → 0.10.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +11 -17
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +147 -99
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/errors.js +25 -40
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +27 -31
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +40 -44
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +6 -9
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +22 -26
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +688 -315
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeGuardrailChecksCommand.js +16 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +50 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +204 -16
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +18 -18
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +21 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -51
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +21 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +7 -9
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +3 -5
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-websocket/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/middleware-websocket/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
- package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
- package/node_modules/@nodable/entities/package.json +4 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
- package/node_modules/@nodable/entities/src/index.js +1 -1
- package/node_modules/@slack/oauth/node_modules/@slack/web-api/dist/chat-stream.js +8 -0
- package/node_modules/@slack/oauth/node_modules/@slack/web-api/package.json +1 -1
- package/node_modules/@slack/socket-mode/node_modules/@slack/web-api/dist/chat-stream.js +8 -0
- package/node_modules/@slack/socket-mode/node_modules/@slack/web-api/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
- package/node_modules/@smithy/core/package.json +18 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +10 -10
- package/node_modules/axios/dist/axios.js +350 -134
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/browser/axios.cjs +355 -90
- package/node_modules/axios/dist/esm/axios.js +355 -90
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/node/axios.cjs +399 -104
- package/node_modules/axios/index.d.cts +2 -0
- package/node_modules/axios/lib/adapters/fetch.js +113 -37
- package/node_modules/axios/lib/adapters/http.js +132 -43
- package/node_modules/axios/lib/core/Axios.js +3 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +10 -7
- package/node_modules/axios/lib/core/buildFullPath.js +29 -1
- package/node_modules/axios/lib/core/mergeConfig.js +34 -0
- package/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +5 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +16 -11
- package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -3
- package/node_modules/axios/lib/helpers/resolveConfig.js +5 -3
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +33 -1
- package/node_modules/axios/lib/helpers/toFormData.js +40 -10
- package/node_modules/axios/lib/utils.js +75 -11
- package/node_modules/axios/package.json +1 -1
- package/node_modules/body-parser/index.js +4 -20
- package/node_modules/body-parser/lib/read.js +17 -17
- package/node_modules/body-parser/lib/types/json.js +60 -32
- package/node_modules/body-parser/lib/types/raw.js +3 -3
- package/node_modules/body-parser/lib/types/text.js +3 -3
- package/node_modules/body-parser/lib/types/urlencoded.js +16 -20
- package/node_modules/body-parser/lib/utils.js +18 -16
- package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/body-parser/package.json +23 -10
- package/node_modules/form-data/lib/form_data.js +14 -2
- package/node_modules/form-data/package.json +7 -7
- package/node_modules/protobufjs/dist/light/protobuf.js +145 -188
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.js +33 -76
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.js +165 -208
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/package.json +2 -3
- package/node_modules/protobufjs/src/util/minimal.js +0 -3
- package/package.json +1 -1
- package/skills/qqbrowser-skill/SKILL.md +90 -8
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
31f67e08d29d8e4ff19cc4cdd4e8ea43978a0991d9037e897a1784390ea9d47d
|
package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const client_1 = require("@smithy/core/client");
|
|
7
|
-
const defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } = require("@smithy/core");
|
|
3
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
4
|
+
exports.defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
8
5
|
return {
|
|
9
|
-
operation:
|
|
10
|
-
region: await
|
|
6
|
+
operation: getSmithyContext(context).operation,
|
|
7
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
11
8
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
9
|
})(),
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
|
-
exports.defaultBedrockRuntimeHttpAuthSchemeParametersProvider = defaultBedrockRuntimeHttpAuthSchemeParametersProvider;
|
|
16
12
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
13
|
return {
|
|
18
14
|
schemeId: "aws.auth#sigv4",
|
|
@@ -41,7 +37,7 @@ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
|
41
37
|
}),
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
|
-
|
|
40
|
+
exports.defaultBedrockRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
45
41
|
const options = [];
|
|
46
42
|
switch (authParameters.operation) {
|
|
47
43
|
default: {
|
|
@@ -51,13 +47,11 @@ const defaultBedrockRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
|
51
47
|
}
|
|
52
48
|
return options;
|
|
53
49
|
};
|
|
54
|
-
exports.
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
50
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
52
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
58
53
|
return Object.assign(config_0, {
|
|
59
|
-
authSchemePreference:
|
|
54
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
60
55
|
token,
|
|
61
56
|
});
|
|
62
57
|
};
|
|
63
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
4
|
+
const { resolveWebSocketConfig, getWebSocketPlugin } = require("@aws-sdk/middleware-websocket");
|
|
5
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
6
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
7
|
+
exports.$Command = Command;
|
|
8
|
+
exports.__Client = Client;
|
|
9
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
10
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
11
|
+
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
12
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
13
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
14
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
15
|
+
const { resolveHttpAuthSchemeConfig, defaultBedrockRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
16
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
17
|
+
const { ApplyGuardrail$, Converse$, ConverseStream$, CountTokens$, GetAsyncInvoke$, InvokeGuardrailChecks$, InvokeModel$, InvokeModelWithBidirectionalStream$, InvokeModelWithResponseStream$, ListAsyncInvokes$, StartAsyncInvoke$ } = require("./schemas/schemas_0");
|
|
18
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
19
|
+
__exportStar(require("./models/errors"), exports);
|
|
20
|
+
const { BedrockRuntimeServiceException } = require("./models/BedrockRuntimeServiceException");
|
|
21
|
+
exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException;
|
|
19
22
|
|
|
20
23
|
const resolveClientEndpointParameters = (options) => {
|
|
21
24
|
return Object.assign(options, {
|
|
@@ -79,79 +82,79 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
82
|
-
const extensionConfiguration = Object.assign(
|
|
85
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
83
86
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
84
|
-
return Object.assign(runtimeConfig,
|
|
87
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
85
88
|
};
|
|
86
89
|
|
|
87
|
-
class BedrockRuntimeClient extends
|
|
90
|
+
class BedrockRuntimeClient extends Client {
|
|
88
91
|
config;
|
|
89
92
|
constructor(...[configuration]) {
|
|
90
|
-
const _config_0 =
|
|
93
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
91
94
|
super(_config_0);
|
|
92
95
|
this.initConfig = _config_0;
|
|
93
96
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
94
|
-
const _config_2 =
|
|
95
|
-
const _config_3 =
|
|
96
|
-
const _config_4 =
|
|
97
|
-
const _config_5 =
|
|
98
|
-
const _config_6 =
|
|
99
|
-
const _config_7 =
|
|
100
|
-
const _config_8 =
|
|
101
|
-
const _config_9 =
|
|
102
|
-
const _config_10 =
|
|
97
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
98
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
99
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
100
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
101
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
102
|
+
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
103
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
104
|
+
const _config_9 = resolveEventStreamConfig(_config_8);
|
|
105
|
+
const _config_10 = resolveWebSocketConfig(_config_9);
|
|
103
106
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
104
107
|
this.config = _config_11;
|
|
105
|
-
this.middlewareStack.use(
|
|
106
|
-
this.middlewareStack.use(
|
|
107
|
-
this.middlewareStack.use(
|
|
108
|
-
this.middlewareStack.use(
|
|
109
|
-
this.middlewareStack.use(
|
|
110
|
-
this.middlewareStack.use(
|
|
111
|
-
this.middlewareStack.use(
|
|
112
|
-
this.middlewareStack.use(
|
|
113
|
-
httpAuthSchemeParametersProvider:
|
|
114
|
-
identityProviderConfigProvider: async (config) => new
|
|
108
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
109
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
110
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
111
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
112
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
113
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
114
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
115
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
116
|
+
httpAuthSchemeParametersProvider: defaultBedrockRuntimeHttpAuthSchemeParametersProvider,
|
|
117
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
115
118
|
"aws.auth#sigv4": config.credentials,
|
|
116
119
|
"smithy.api#httpBearerAuth": config.token,
|
|
117
120
|
}),
|
|
118
121
|
}));
|
|
119
|
-
this.middlewareStack.use(
|
|
122
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
120
123
|
}
|
|
121
124
|
destroy() {
|
|
122
125
|
super.destroy();
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
class ApplyGuardrailCommand extends
|
|
129
|
+
class ApplyGuardrailCommand extends Command
|
|
127
130
|
.classBuilder()
|
|
128
131
|
.ep(commonParams)
|
|
129
132
|
.m(function (Command, cs, config, o) {
|
|
130
|
-
return [
|
|
133
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
131
134
|
})
|
|
132
135
|
.s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
|
|
133
136
|
.n("BedrockRuntimeClient", "ApplyGuardrailCommand")
|
|
134
|
-
.sc(
|
|
137
|
+
.sc(ApplyGuardrail$)
|
|
135
138
|
.build() {
|
|
136
139
|
}
|
|
137
140
|
|
|
138
|
-
class ConverseCommand extends
|
|
141
|
+
class ConverseCommand extends Command
|
|
139
142
|
.classBuilder()
|
|
140
143
|
.ep(commonParams)
|
|
141
144
|
.m(function (Command, cs, config, o) {
|
|
142
|
-
return [
|
|
145
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
143
146
|
})
|
|
144
147
|
.s("AmazonBedrockFrontendService", "Converse", {})
|
|
145
148
|
.n("BedrockRuntimeClient", "ConverseCommand")
|
|
146
|
-
.sc(
|
|
149
|
+
.sc(Converse$)
|
|
147
150
|
.build() {
|
|
148
151
|
}
|
|
149
152
|
|
|
150
|
-
class ConverseStreamCommand extends
|
|
153
|
+
class ConverseStreamCommand extends Command
|
|
151
154
|
.classBuilder()
|
|
152
155
|
.ep(commonParams)
|
|
153
156
|
.m(function (Command, cs, config, o) {
|
|
154
|
-
return [
|
|
157
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
155
158
|
})
|
|
156
159
|
.s("AmazonBedrockFrontendService", "ConverseStream", {
|
|
157
160
|
eventStream: {
|
|
@@ -159,54 +162,66 @@ class ConverseStreamCommand extends client.Command
|
|
|
159
162
|
},
|
|
160
163
|
})
|
|
161
164
|
.n("BedrockRuntimeClient", "ConverseStreamCommand")
|
|
162
|
-
.sc(
|
|
165
|
+
.sc(ConverseStream$)
|
|
163
166
|
.build() {
|
|
164
167
|
}
|
|
165
168
|
|
|
166
|
-
class CountTokensCommand extends
|
|
169
|
+
class CountTokensCommand extends Command
|
|
167
170
|
.classBuilder()
|
|
168
171
|
.ep(commonParams)
|
|
169
172
|
.m(function (Command, cs, config, o) {
|
|
170
|
-
return [
|
|
173
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
171
174
|
})
|
|
172
175
|
.s("AmazonBedrockFrontendService", "CountTokens", {})
|
|
173
176
|
.n("BedrockRuntimeClient", "CountTokensCommand")
|
|
174
|
-
.sc(
|
|
177
|
+
.sc(CountTokens$)
|
|
175
178
|
.build() {
|
|
176
179
|
}
|
|
177
180
|
|
|
178
|
-
class GetAsyncInvokeCommand extends
|
|
181
|
+
class GetAsyncInvokeCommand extends Command
|
|
179
182
|
.classBuilder()
|
|
180
183
|
.ep(commonParams)
|
|
181
184
|
.m(function (Command, cs, config, o) {
|
|
182
|
-
return [
|
|
185
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
183
186
|
})
|
|
184
187
|
.s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
|
|
185
188
|
.n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
|
|
186
|
-
.sc(
|
|
189
|
+
.sc(GetAsyncInvoke$)
|
|
190
|
+
.build() {
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
class InvokeGuardrailChecksCommand extends Command
|
|
194
|
+
.classBuilder()
|
|
195
|
+
.ep(commonParams)
|
|
196
|
+
.m(function (Command, cs, config, o) {
|
|
197
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
198
|
+
})
|
|
199
|
+
.s("AmazonBedrockFrontendService", "InvokeGuardrailChecks", {})
|
|
200
|
+
.n("BedrockRuntimeClient", "InvokeGuardrailChecksCommand")
|
|
201
|
+
.sc(InvokeGuardrailChecks$)
|
|
187
202
|
.build() {
|
|
188
203
|
}
|
|
189
204
|
|
|
190
|
-
class InvokeModelCommand extends
|
|
205
|
+
class InvokeModelCommand extends Command
|
|
191
206
|
.classBuilder()
|
|
192
207
|
.ep(commonParams)
|
|
193
208
|
.m(function (Command, cs, config, o) {
|
|
194
|
-
return [
|
|
209
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
195
210
|
})
|
|
196
211
|
.s("AmazonBedrockFrontendService", "InvokeModel", {})
|
|
197
212
|
.n("BedrockRuntimeClient", "InvokeModelCommand")
|
|
198
|
-
.sc(
|
|
213
|
+
.sc(InvokeModel$)
|
|
199
214
|
.build() {
|
|
200
215
|
}
|
|
201
216
|
|
|
202
|
-
class InvokeModelWithBidirectionalStreamCommand extends
|
|
217
|
+
class InvokeModelWithBidirectionalStreamCommand extends Command
|
|
203
218
|
.classBuilder()
|
|
204
219
|
.ep(commonParams)
|
|
205
220
|
.m(function (Command, cs, config, o) {
|
|
206
221
|
return [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
223
|
+
getEventStreamPlugin(config),
|
|
224
|
+
getWebSocketPlugin(config, {
|
|
210
225
|
headerPrefix: 'x-amz-bedrock-',
|
|
211
226
|
}),
|
|
212
227
|
];
|
|
@@ -218,15 +233,15 @@ class InvokeModelWithBidirectionalStreamCommand extends client.Command
|
|
|
218
233
|
},
|
|
219
234
|
})
|
|
220
235
|
.n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand")
|
|
221
|
-
.sc(
|
|
236
|
+
.sc(InvokeModelWithBidirectionalStream$)
|
|
222
237
|
.build() {
|
|
223
238
|
}
|
|
224
239
|
|
|
225
|
-
class InvokeModelWithResponseStreamCommand extends
|
|
240
|
+
class InvokeModelWithResponseStreamCommand extends Command
|
|
226
241
|
.classBuilder()
|
|
227
242
|
.ep(commonParams)
|
|
228
243
|
.m(function (Command, cs, config, o) {
|
|
229
|
-
return [
|
|
244
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
230
245
|
})
|
|
231
246
|
.s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
|
|
232
247
|
eventStream: {
|
|
@@ -234,35 +249,35 @@ class InvokeModelWithResponseStreamCommand extends client.Command
|
|
|
234
249
|
},
|
|
235
250
|
})
|
|
236
251
|
.n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
|
|
237
|
-
.sc(
|
|
252
|
+
.sc(InvokeModelWithResponseStream$)
|
|
238
253
|
.build() {
|
|
239
254
|
}
|
|
240
255
|
|
|
241
|
-
class ListAsyncInvokesCommand extends
|
|
256
|
+
class ListAsyncInvokesCommand extends Command
|
|
242
257
|
.classBuilder()
|
|
243
258
|
.ep(commonParams)
|
|
244
259
|
.m(function (Command, cs, config, o) {
|
|
245
|
-
return [
|
|
260
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
246
261
|
})
|
|
247
262
|
.s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
|
|
248
263
|
.n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
|
|
249
|
-
.sc(
|
|
264
|
+
.sc(ListAsyncInvokes$)
|
|
250
265
|
.build() {
|
|
251
266
|
}
|
|
252
267
|
|
|
253
|
-
class StartAsyncInvokeCommand extends
|
|
268
|
+
class StartAsyncInvokeCommand extends Command
|
|
254
269
|
.classBuilder()
|
|
255
270
|
.ep(commonParams)
|
|
256
271
|
.m(function (Command, cs, config, o) {
|
|
257
|
-
return [
|
|
272
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
258
273
|
})
|
|
259
274
|
.s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
|
|
260
275
|
.n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
|
|
261
|
-
.sc(
|
|
276
|
+
.sc(StartAsyncInvoke$)
|
|
262
277
|
.build() {
|
|
263
278
|
}
|
|
264
279
|
|
|
265
|
-
const paginateListAsyncInvokes =
|
|
280
|
+
const paginateListAsyncInvokes = createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
|
|
266
281
|
|
|
267
282
|
const commands = {
|
|
268
283
|
ApplyGuardrailCommand,
|
|
@@ -270,6 +285,7 @@ const commands = {
|
|
|
270
285
|
ConverseStreamCommand,
|
|
271
286
|
CountTokensCommand,
|
|
272
287
|
GetAsyncInvokeCommand,
|
|
288
|
+
InvokeGuardrailChecksCommand,
|
|
273
289
|
InvokeModelCommand,
|
|
274
290
|
InvokeModelWithBidirectionalStreamCommand,
|
|
275
291
|
InvokeModelWithResponseStreamCommand,
|
|
@@ -281,7 +297,7 @@ const paginators = {
|
|
|
281
297
|
};
|
|
282
298
|
class BedrockRuntime extends BedrockRuntimeClient {
|
|
283
299
|
}
|
|
284
|
-
|
|
300
|
+
createAggregatedClient(commands, BedrockRuntime, { paginators });
|
|
285
301
|
|
|
286
302
|
const AsyncInvokeStatus = {
|
|
287
303
|
COMPLETED: "Completed",
|
|
@@ -413,6 +429,56 @@ const GuardrailWordPolicyAction = {
|
|
|
413
429
|
const GuardrailManagedWordType = {
|
|
414
430
|
PROFANITY: "PROFANITY",
|
|
415
431
|
};
|
|
432
|
+
const GuardrailChecksContentFilterCategory = {
|
|
433
|
+
HATE: "HATE",
|
|
434
|
+
INSULTS: "INSULTS",
|
|
435
|
+
MISCONDUCT: "MISCONDUCT",
|
|
436
|
+
SEXUAL: "SEXUAL",
|
|
437
|
+
VIOLENCE: "VIOLENCE",
|
|
438
|
+
};
|
|
439
|
+
const GuardrailChecksPromptAttackCategory = {
|
|
440
|
+
JAILBREAK: "JAILBREAK",
|
|
441
|
+
PROMPT_INJECTION: "PROMPT_INJECTION",
|
|
442
|
+
PROMPT_LEAKAGE: "PROMPT_LEAKAGE",
|
|
443
|
+
};
|
|
444
|
+
const GuardrailChecksSensitiveInformationEntityType = {
|
|
445
|
+
ADDRESS: "ADDRESS",
|
|
446
|
+
AGE: "AGE",
|
|
447
|
+
AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
|
|
448
|
+
AWS_SECRET_KEY: "AWS_SECRET_KEY",
|
|
449
|
+
CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
|
|
450
|
+
CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
|
|
451
|
+
CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
|
|
452
|
+
CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
|
|
453
|
+
CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
|
|
454
|
+
DRIVER_ID: "DRIVER_ID",
|
|
455
|
+
EMAIL: "EMAIL",
|
|
456
|
+
INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
|
|
457
|
+
IP_ADDRESS: "IP_ADDRESS",
|
|
458
|
+
LICENSE_PLATE: "LICENSE_PLATE",
|
|
459
|
+
MAC_ADDRESS: "MAC_ADDRESS",
|
|
460
|
+
NAME: "NAME",
|
|
461
|
+
PASSWORD: "PASSWORD",
|
|
462
|
+
PHONE: "PHONE",
|
|
463
|
+
PIN: "PIN",
|
|
464
|
+
SWIFT_CODE: "SWIFT_CODE",
|
|
465
|
+
UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
|
|
466
|
+
UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
|
|
467
|
+
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
468
|
+
URL: "URL",
|
|
469
|
+
USERNAME: "USERNAME",
|
|
470
|
+
US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
|
|
471
|
+
US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
|
|
472
|
+
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
|
|
473
|
+
US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
|
|
474
|
+
US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
|
|
475
|
+
VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER",
|
|
476
|
+
};
|
|
477
|
+
const GuardrailChecksRole = {
|
|
478
|
+
ASSISTANT: "assistant",
|
|
479
|
+
SYSTEM: "system",
|
|
480
|
+
USER: "user",
|
|
481
|
+
};
|
|
416
482
|
const GuardrailTrace = {
|
|
417
483
|
DISABLED: "disabled",
|
|
418
484
|
ENABLED: "enabled",
|
|
@@ -525,9 +591,6 @@ const Trace = {
|
|
|
525
591
|
ENABLED_FULL: "ENABLED_FULL",
|
|
526
592
|
};
|
|
527
593
|
|
|
528
|
-
exports.$Command = client.Command;
|
|
529
|
-
exports.__Client = client.Client;
|
|
530
|
-
exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException.BedrockRuntimeServiceException;
|
|
531
594
|
exports.ApplyGuardrailCommand = ApplyGuardrailCommand;
|
|
532
595
|
exports.AsyncInvokeStatus = AsyncInvokeStatus;
|
|
533
596
|
exports.AudioFormat = AudioFormat;
|
|
@@ -543,6 +606,10 @@ exports.DocumentFormat = DocumentFormat;
|
|
|
543
606
|
exports.GetAsyncInvokeCommand = GetAsyncInvokeCommand;
|
|
544
607
|
exports.GuardrailAction = GuardrailAction;
|
|
545
608
|
exports.GuardrailAutomatedReasoningLogicWarningType = GuardrailAutomatedReasoningLogicWarningType;
|
|
609
|
+
exports.GuardrailChecksContentFilterCategory = GuardrailChecksContentFilterCategory;
|
|
610
|
+
exports.GuardrailChecksPromptAttackCategory = GuardrailChecksPromptAttackCategory;
|
|
611
|
+
exports.GuardrailChecksRole = GuardrailChecksRole;
|
|
612
|
+
exports.GuardrailChecksSensitiveInformationEntityType = GuardrailChecksSensitiveInformationEntityType;
|
|
546
613
|
exports.GuardrailContentFilterConfidence = GuardrailContentFilterConfidence;
|
|
547
614
|
exports.GuardrailContentFilterStrength = GuardrailContentFilterStrength;
|
|
548
615
|
exports.GuardrailContentFilterType = GuardrailContentFilterType;
|
|
@@ -566,6 +633,7 @@ exports.GuardrailTopicType = GuardrailTopicType;
|
|
|
566
633
|
exports.GuardrailTrace = GuardrailTrace;
|
|
567
634
|
exports.GuardrailWordPolicyAction = GuardrailWordPolicyAction;
|
|
568
635
|
exports.ImageFormat = ImageFormat;
|
|
636
|
+
exports.InvokeGuardrailChecksCommand = InvokeGuardrailChecksCommand;
|
|
569
637
|
exports.InvokeModelCommand = InvokeModelCommand;
|
|
570
638
|
exports.InvokeModelWithBidirectionalStreamCommand = InvokeModelWithBidirectionalStreamCommand;
|
|
571
639
|
exports.InvokeModelWithResponseStreamCommand = InvokeModelWithResponseStreamCommand;
|
|
@@ -582,23 +650,3 @@ exports.ToolUseType = ToolUseType;
|
|
|
582
650
|
exports.Trace = Trace;
|
|
583
651
|
exports.VideoFormat = VideoFormat;
|
|
584
652
|
exports.paginateListAsyncInvokes = paginateListAsyncInvokes;
|
|
585
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
586
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
587
|
-
Object.defineProperty(exports, '__proto__', {
|
|
588
|
-
enumerable: true,
|
|
589
|
-
value: schemas_0['__proto__']
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
593
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
594
|
-
});
|
|
595
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
596
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
597
|
-
Object.defineProperty(exports, '__proto__', {
|
|
598
|
-
enumerable: true,
|
|
599
|
-
value: errors['__proto__']
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
Object.keys(errors).forEach(function (k) {
|
|
603
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
604
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.BedrockRuntimeServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class BedrockRuntimeServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.BedrockRuntimeServiceException = class BedrockRuntimeServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException;
|
|
8
|
+
};
|