@psnext/slingcli 3.0.20260814-1 → 3.0.20260820-2
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/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +5 -9
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +5 -9
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +23 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +23 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +9 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +19 -19
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/package.json +3 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +9 -9
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +9 -9
- package/node_modules/@smithy/signature-v4/package.json +4 -12
- package/node_modules/@smithy/types/package.json +2 -10
- package/node_modules/hono/dist/cjs/client/utils.js +1 -1
- package/node_modules/hono/dist/cjs/context.js +4 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
- package/node_modules/hono/dist/client/utils.js +1 -1
- package/node_modules/hono/dist/context.js +4 -0
- package/node_modules/hono/dist/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/middleware/etag/index.js +2 -2
- package/node_modules/hono/dist/middleware/pretty-json/index.js +3 -1
- package/node_modules/hono/dist/router/linear-router/router.js +7 -2
- package/node_modules/hono/dist/router/pattern-router/router.js +3 -9
- package/node_modules/hono/dist/router/trie-router/node.js +43 -67
- package/node_modules/hono/dist/router/trie-router/router.js +3 -11
- package/node_modules/hono/dist/types/context.d.ts +4 -0
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +1 -2
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +0 -1
- package/node_modules/hono/dist/utils/ipaddr.js +5 -3
- package/node_modules/hono/package.json +1 -1
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -3
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +4 -3
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +4 -3
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +4 -3
- package/node_modules/jose/dist/types/types.d.ts +4 -2
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +7 -3
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +6 -2
- package/node_modules/jose/package.json +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +294 -281
|
@@ -1,83 +1,59 @@
|
|
|
1
1
|
import { STSClientConfig } from "./STSClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
3
|
-
runtime: string;
|
|
4
|
-
requestHandler:
|
|
5
|
-
| import("@smithy/types").NodeHttpHandlerOptions
|
|
6
|
-
| import("@smithy/types").FetchHttpHandlerOptions
|
|
7
|
-
| Record<string, unknown>
|
|
8
|
-
| import("@smithy/core/protocols").HttpHandler<any>
|
|
9
|
-
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
10
3
|
cacheMiddleware?: boolean;
|
|
11
|
-
protocol:
|
|
12
|
-
| import("@smithy/types").ClientProtocol<any, any>
|
|
13
|
-
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
14
|
-
| typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
|
|
15
|
-
protocolSettings: {
|
|
16
|
-
defaultNamespace?: string;
|
|
17
|
-
[setting: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
apiVersion: string;
|
|
20
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
21
|
-
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
-
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector: (
|
|
24
|
-
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
25
|
-
) => Promise<Uint8Array>;
|
|
26
|
-
base64Decoder: import("@smithy/types").Decoder;
|
|
27
|
-
base64Encoder: (_input: Uint8Array | string) => string;
|
|
28
|
-
utf8Decoder: import("@smithy/types").Decoder;
|
|
29
|
-
utf8Encoder: (input: Uint8Array | string) => string;
|
|
30
|
-
disableHostPrefix: boolean;
|
|
31
|
-
serviceId: string;
|
|
32
|
-
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
33
|
-
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
34
|
-
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
35
|
-
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
36
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
37
|
-
profile?: string;
|
|
38
|
-
defaultUserAgentProvider: (
|
|
39
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
40
|
-
) => Promise<import("@smithy/types").UserAgent>;
|
|
41
|
-
credentialDefaultProvider:
|
|
42
|
-
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
43
|
-
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
44
|
-
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
45
|
-
retryMode: string | import("@smithy/types").Provider<string>;
|
|
46
|
-
logger: import("@smithy/types").Logger;
|
|
47
|
-
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
48
|
-
defaultsMode:
|
|
49
|
-
| import("@smithy/core/client").DefaultsMode
|
|
50
|
-
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
|
|
51
4
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
52
5
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
53
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
54
6
|
endpoint?:
|
|
55
7
|
| ((
|
|
56
8
|
| string
|
|
57
9
|
| import("@smithy/types").Endpoint
|
|
58
|
-
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
59
10
|
| import("@smithy/types").EndpointV2
|
|
11
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
60
12
|
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
61
13
|
) &
|
|
62
14
|
(
|
|
63
15
|
| string
|
|
64
|
-
| import("@smithy/types").Provider<string>
|
|
65
16
|
| import("@smithy/types").Endpoint
|
|
66
|
-
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
67
17
|
| import("@smithy/types").EndpointV2
|
|
18
|
+
| import("@smithy/types").Provider<string>
|
|
19
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
68
20
|
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
69
21
|
))
|
|
70
22
|
| undefined;
|
|
23
|
+
tls?: boolean;
|
|
24
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
25
|
+
serviceConfiguredEndpoint?: never;
|
|
26
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
27
|
+
sigv4aSigningRegionSet?:
|
|
28
|
+
| string[]
|
|
29
|
+
| undefined
|
|
30
|
+
| import("@smithy/types").Provider<string[] | undefined>;
|
|
31
|
+
credentials?:
|
|
32
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
33
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
34
|
+
signer?:
|
|
35
|
+
| import("@smithy/types").RequestSigner
|
|
36
|
+
| ((
|
|
37
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
38
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
39
|
+
signingEscapePath?: boolean;
|
|
40
|
+
systemClockOffset?: number;
|
|
41
|
+
signingRegion?: string;
|
|
42
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
43
|
+
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
44
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
apiVersion: string;
|
|
46
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
47
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
48
|
+
disableHostPrefix: boolean;
|
|
71
49
|
endpointProvider: (
|
|
72
|
-
|
|
50
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
73
51
|
context?: {
|
|
74
52
|
logger?: import("@smithy/types").Logger;
|
|
75
53
|
},
|
|
76
54
|
) => import("@smithy/types").EndpointV2;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
serviceConfiguredEndpoint?: never;
|
|
80
|
-
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
55
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
56
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
81
57
|
httpAuthSchemes:
|
|
82
58
|
| import("@smithy/types").HttpAuthScheme[]
|
|
83
59
|
| (
|
|
@@ -100,28 +76,50 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
100
76
|
signer: import("@smithy/core").NoAuthSigner;
|
|
101
77
|
}
|
|
102
78
|
)[];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
| import("@smithy/types")
|
|
106
|
-
| import("@smithy/types")
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
signingRegion?: string;
|
|
79
|
+
logger: import("@smithy/types").Logger;
|
|
80
|
+
protocol:
|
|
81
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
82
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
83
|
+
| typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
|
|
84
|
+
protocolSettings: {
|
|
85
|
+
[setting: string]: unknown;
|
|
86
|
+
defaultNamespace?: string;
|
|
87
|
+
};
|
|
88
|
+
serviceId: string;
|
|
89
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
115
90
|
signerConstructor:
|
|
116
91
|
| (new (
|
|
117
92
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
118
93
|
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
119
94
|
) => import("@smithy/types").RequestSigner)
|
|
120
95
|
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
96
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
97
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
98
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
99
|
+
profile?: string;
|
|
100
|
+
defaultsMode:
|
|
101
|
+
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>
|
|
102
|
+
| import("@smithy/core/client").DefaultsMode;
|
|
103
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
104
|
+
credentialDefaultProvider:
|
|
105
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
106
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
107
|
+
defaultUserAgentProvider: (
|
|
108
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
109
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
110
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
111
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
112
|
+
requestHandler:
|
|
113
|
+
| import("@smithy/fetch-http-handler").FetchHttpHandler
|
|
114
|
+
| import("@smithy/types").FetchHttpHandlerOptions
|
|
115
|
+
| import("@smithy/types").NodeHttpHandlerOptions
|
|
116
|
+
| Record<string, unknown>
|
|
117
|
+
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
118
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
119
|
+
streamCollector: (
|
|
120
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
121
|
+
) => Promise<Uint8Array>;
|
|
122
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
123
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
124
|
+
runtime: string;
|
|
127
125
|
};
|
|
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
10
10
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
11
11
|
disableHostPrefix: boolean;
|
|
12
12
|
endpointProvider: (
|
|
13
|
-
|
|
13
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
14
14
|
context?: {
|
|
15
15
|
logger?: import("@smithy/types").Logger;
|
|
16
16
|
},
|
|
@@ -41,8 +41,8 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
41
41
|
)[];
|
|
42
42
|
logger: import("@smithy/types").Logger;
|
|
43
43
|
protocol:
|
|
44
|
-
| import("@smithy/types")
|
|
45
|
-
| import("@smithy/types")
|
|
44
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
45
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
46
46
|
| typeof AwsQueryProtocol;
|
|
47
47
|
protocolSettings: {
|
|
48
48
|
[setting: string]: unknown;
|
|
@@ -64,7 +64,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
|
|
|
64
64
|
* @returns the input if it is an HttpHandler of any class,
|
|
65
65
|
* or instantiates a new instance of this handler.
|
|
66
66
|
*/
|
|
67
|
-
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any
|
|
67
|
+
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): NodeHttp2Handler | HttpHandler<any>;
|
|
68
68
|
constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
|
|
69
69
|
destroy(): void;
|
|
70
70
|
handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
|
|
@@ -64,7 +64,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
|
|
|
64
64
|
* @returns the input if it is an HttpHandler of any class,
|
|
65
65
|
* or instantiates a new instance of this handler.
|
|
66
66
|
*/
|
|
67
|
-
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any
|
|
67
|
+
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): NodeHttp2Handler | HttpHandler<any>;
|
|
68
68
|
constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
|
|
69
69
|
destroy(): void;
|
|
70
70
|
handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
|
package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.2",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,20 +39,16 @@
|
|
|
39
39
|
"test:watch": "yarn g:vitest watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@smithy/core": "^3.33.
|
|
43
|
-
"@smithy/types": "^4.17.
|
|
42
|
+
"@smithy/core": "^3.33.2",
|
|
43
|
+
"@smithy/types": "^4.17.2",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@smithy/abort-controller": "^4.4.
|
|
47
|
+
"@smithy/abort-controller": "^4.4.2",
|
|
48
48
|
"@types/node": "^18.11.9",
|
|
49
49
|
"concurrently": "7.0.0",
|
|
50
50
|
"downlevel-dts": "0.10.1",
|
|
51
|
-
"premove": "4.0.0"
|
|
52
|
-
"typedoc": "0.23.23"
|
|
53
|
-
},
|
|
54
|
-
"typedoc": {
|
|
55
|
-
"entryPoint": "src/index.ts"
|
|
51
|
+
"premove": "4.0.0"
|
|
56
52
|
},
|
|
57
53
|
"engines": {
|
|
58
54
|
"node": ">=18.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.43",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"test:watch": "yarn g:vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/core": "^3.977.
|
|
104
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
105
|
-
"@aws-sdk/types": "^3.974.
|
|
103
|
+
"@aws-sdk/core": "^3.977.8",
|
|
104
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.45",
|
|
105
|
+
"@aws-sdk/types": "^3.974.4",
|
|
106
106
|
"@smithy/core": "^3.31.1",
|
|
107
107
|
"@smithy/fetch-http-handler": "^5.6.13",
|
|
108
108
|
"@smithy/node-http-handler": "^4.9.13",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"concurrently": "7.0.0",
|
|
114
114
|
"downlevel-dts": "0.10.1",
|
|
115
115
|
"premove": "4.0.0",
|
|
116
|
-
"typescript": "~
|
|
116
|
+
"typescript": "~7.0.2"
|
|
117
117
|
},
|
|
118
118
|
"engines": {
|
|
119
119
|
"node": ">=20.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.45",
|
|
4
4
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test:browser": "yarn build:browser && yarn g:vitest run -c vitest.config.browser.mts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@aws-sdk/types": "^3.974.
|
|
45
|
+
"@aws-sdk/types": "^3.974.4",
|
|
46
46
|
"@smithy/signature-v4": "^5.6.12",
|
|
47
47
|
"@smithy/types": "^4.16.1",
|
|
48
48
|
"tslib": "^2.6.2"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"concurrently": "7.0.0",
|
|
53
53
|
"downlevel-dts": "0.10.1",
|
|
54
54
|
"premove": "4.0.0",
|
|
55
|
-
"typescript": "~
|
|
55
|
+
"typescript": "~7.0.2"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=20.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.4",
|
|
4
4
|
"description": "Types for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/types",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"concurrently": "7.0.0",
|
|
50
50
|
"downlevel-dts": "0.10.1",
|
|
51
51
|
"premove": "4.0.0",
|
|
52
|
-
"typescript": "~
|
|
52
|
+
"typescript": "~7.0.2"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=20.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-locate-window",
|
|
3
|
-
"version": "3.965.
|
|
3
|
+
"version": "3.965.10",
|
|
4
4
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/util-locate-window",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"concurrently": "7.0.0",
|
|
47
47
|
"downlevel-dts": "0.10.1",
|
|
48
48
|
"premove": "4.0.0",
|
|
49
|
-
"typescript": "~
|
|
49
|
+
"typescript": "~7.0.2"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=20.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.39",
|
|
4
4
|
"description": "XML utilities for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"concurrently": "7.0.0",
|
|
56
56
|
"downlevel-dts": "0.10.1",
|
|
57
57
|
"premove": "4.0.0",
|
|
58
|
-
"typescript": "~
|
|
58
|
+
"typescript": "~7.0.2"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=20.0.0"
|
|
@@ -2187,10 +2187,9 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
2187
2187
|
this.serializer.write(15, {});
|
|
2188
2188
|
request.body = this.serializer.flush();
|
|
2189
2189
|
}
|
|
2190
|
-
|
|
2190
|
+
if (request.body instanceof Uint8Array) {
|
|
2191
2191
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
2192
2192
|
}
|
|
2193
|
-
catch (ignored) { }
|
|
2194
2193
|
}
|
|
2195
2194
|
const { service, operation } = getSmithyContext(context);
|
|
2196
2195
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -70,27 +70,27 @@ class HeaderMarshaller {
|
|
|
70
70
|
formatHeaderValue(header) {
|
|
71
71
|
switch (header.type) {
|
|
72
72
|
case "boolean":
|
|
73
|
-
return Uint8Array.from([header.value ?
|
|
73
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
74
74
|
case "byte":
|
|
75
|
-
return Uint8Array.from([
|
|
75
|
+
return Uint8Array.from([2, header.value]);
|
|
76
76
|
case "short":
|
|
77
77
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
78
|
-
shortView.setUint8(0,
|
|
78
|
+
shortView.setUint8(0, 3);
|
|
79
79
|
shortView.setInt16(1, header.value, false);
|
|
80
80
|
return new Uint8Array(shortView.buffer);
|
|
81
81
|
case "integer":
|
|
82
82
|
const intView = new DataView(new ArrayBuffer(5));
|
|
83
|
-
intView.setUint8(0,
|
|
83
|
+
intView.setUint8(0, 4);
|
|
84
84
|
intView.setInt32(1, header.value, false);
|
|
85
85
|
return new Uint8Array(intView.buffer);
|
|
86
86
|
case "long":
|
|
87
87
|
const longBytes = new Uint8Array(9);
|
|
88
|
-
longBytes[0] =
|
|
88
|
+
longBytes[0] = 5;
|
|
89
89
|
longBytes.set(header.value.bytes, 1);
|
|
90
90
|
return longBytes;
|
|
91
91
|
case "binary":
|
|
92
92
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
93
|
-
binView.setUint8(0,
|
|
93
|
+
binView.setUint8(0, 6);
|
|
94
94
|
binView.setUint16(1, header.value.byteLength, false);
|
|
95
95
|
const binBytes = new Uint8Array(binView.buffer);
|
|
96
96
|
binBytes.set(header.value, 3);
|
|
@@ -98,14 +98,14 @@ class HeaderMarshaller {
|
|
|
98
98
|
case "string":
|
|
99
99
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
100
100
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
101
|
-
strView.setUint8(0,
|
|
101
|
+
strView.setUint8(0, 7);
|
|
102
102
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
103
103
|
const strBytes = new Uint8Array(strView.buffer);
|
|
104
104
|
strBytes.set(utf8Bytes, 3);
|
|
105
105
|
return strBytes;
|
|
106
106
|
case "timestamp":
|
|
107
107
|
const tsBytes = new Uint8Array(9);
|
|
108
|
-
tsBytes[0] =
|
|
108
|
+
tsBytes[0] = 8;
|
|
109
109
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
110
110
|
return tsBytes;
|
|
111
111
|
case "uuid":
|
|
@@ -113,7 +113,7 @@ class HeaderMarshaller {
|
|
|
113
113
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
114
114
|
}
|
|
115
115
|
const uuidBytes = new Uint8Array(17);
|
|
116
|
-
uuidBytes[0] =
|
|
116
|
+
uuidBytes[0] = 9;
|
|
117
117
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
118
118
|
return uuidBytes;
|
|
119
119
|
}
|
|
@@ -126,46 +126,46 @@ class HeaderMarshaller {
|
|
|
126
126
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
127
127
|
position += nameLength;
|
|
128
128
|
switch (headers.getUint8(position++)) {
|
|
129
|
-
case
|
|
129
|
+
case 0:
|
|
130
130
|
out[name] = {
|
|
131
131
|
type: BOOLEAN_TAG,
|
|
132
132
|
value: true,
|
|
133
133
|
};
|
|
134
134
|
break;
|
|
135
|
-
case
|
|
135
|
+
case 1:
|
|
136
136
|
out[name] = {
|
|
137
137
|
type: BOOLEAN_TAG,
|
|
138
138
|
value: false,
|
|
139
139
|
};
|
|
140
140
|
break;
|
|
141
|
-
case
|
|
141
|
+
case 2:
|
|
142
142
|
out[name] = {
|
|
143
143
|
type: BYTE_TAG,
|
|
144
144
|
value: headers.getInt8(position++),
|
|
145
145
|
};
|
|
146
146
|
break;
|
|
147
|
-
case
|
|
147
|
+
case 3:
|
|
148
148
|
out[name] = {
|
|
149
149
|
type: SHORT_TAG,
|
|
150
150
|
value: headers.getInt16(position, false),
|
|
151
151
|
};
|
|
152
152
|
position += 2;
|
|
153
153
|
break;
|
|
154
|
-
case
|
|
154
|
+
case 4:
|
|
155
155
|
out[name] = {
|
|
156
156
|
type: INT_TAG,
|
|
157
157
|
value: headers.getInt32(position, false),
|
|
158
158
|
};
|
|
159
159
|
position += 4;
|
|
160
160
|
break;
|
|
161
|
-
case
|
|
161
|
+
case 5:
|
|
162
162
|
out[name] = {
|
|
163
163
|
type: LONG_TAG,
|
|
164
164
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
165
165
|
};
|
|
166
166
|
position += 8;
|
|
167
167
|
break;
|
|
168
|
-
case
|
|
168
|
+
case 6:
|
|
169
169
|
const binaryLength = headers.getUint16(position, false);
|
|
170
170
|
position += 2;
|
|
171
171
|
out[name] = {
|
|
@@ -174,7 +174,7 @@ class HeaderMarshaller {
|
|
|
174
174
|
};
|
|
175
175
|
position += binaryLength;
|
|
176
176
|
break;
|
|
177
|
-
case
|
|
177
|
+
case 7:
|
|
178
178
|
const stringLength = headers.getUint16(position, false);
|
|
179
179
|
position += 2;
|
|
180
180
|
out[name] = {
|
|
@@ -183,14 +183,14 @@ class HeaderMarshaller {
|
|
|
183
183
|
};
|
|
184
184
|
position += stringLength;
|
|
185
185
|
break;
|
|
186
|
-
case
|
|
186
|
+
case 8:
|
|
187
187
|
out[name] = {
|
|
188
188
|
type: TIMESTAMP_TAG,
|
|
189
189
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
190
190
|
};
|
|
191
191
|
position += 8;
|
|
192
192
|
break;
|
|
193
|
-
case
|
|
193
|
+
case 9:
|
|
194
194
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
195
195
|
position += 16;
|
|
196
196
|
out[name] = {
|
|
@@ -601,7 +601,7 @@ class EventStreamSerde {
|
|
|
601
601
|
this.defaultContentType = defaultContentType;
|
|
602
602
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
603
603
|
}
|
|
604
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
|
|
604
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }) {
|
|
605
605
|
const marshaller = this.marshaller;
|
|
606
606
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
607
607
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -612,7 +612,7 @@ class EventStreamSerde {
|
|
|
612
612
|
async *[Symbol.asyncIterator]() {
|
|
613
613
|
if (initialRequest) {
|
|
614
614
|
const headers = {
|
|
615
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
615
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
616
616
|
":message-type": { type: "string", value: "event" },
|
|
617
617
|
":content-type": { type: "string", value: defaultContentType },
|
|
618
618
|
};
|
|
@@ -656,7 +656,7 @@ class EventStreamSerde {
|
|
|
656
656
|
};
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
|
|
659
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }) {
|
|
660
660
|
const marshaller = this.marshaller;
|
|
661
661
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
662
662
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -671,7 +671,7 @@ class EventStreamSerde {
|
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
const body = event[unionMember].body;
|
|
674
|
-
if (unionMember === "initial-response") {
|
|
674
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
675
675
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
676
676
|
delete dataObject[eventStreamMember];
|
|
677
677
|
return {
|