@psnext/slingcli 2.5.20260602-4 → 2.5.20260607-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-cjs/index.js +12 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
- package/node_modules/@aws-sdk/core/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
- 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/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-websocket/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
- 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/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +45 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +827 -140
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +32 -12
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +13 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +15 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +9 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +19 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +47 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +72 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +28 -20
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +2 -30
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +71 -30
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/trust-manager.js +130 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +54 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/index.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +3 -12
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/trust-selector.js +86 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +40 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +55 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/git.js +54 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/open-browser.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -12
- package/node_modules/@earendil-works/pi-coding-agent/package.json +5 -4
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +3 -0
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +3 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +7 -9
- package/node_modules/google-auth-library/build/src/auth/gdchclient.d.ts +47 -0
- package/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
- package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +5 -4
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +18 -1
- package/node_modules/google-auth-library/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/build/src/index.js +4 -1
- package/node_modules/google-auth-library/package.json +2 -4
- package/node_modules/semver/classes/semver.js +19 -2
- package/node_modules/semver/package.json +1 -1
- package/node_modules/undici/lib/global.js +1 -1
- package/node_modules/undici/lib/handler/unwrap-handler.js +6 -0
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/dispatcher.d.ts +2 -0
- package/package.json +6 -6
- package/slingshot/index.js +275 -273
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
CHANGED
|
@@ -46,92 +46,92 @@ const _s_registry = TypeRegistry.for(_s);
|
|
|
46
46
|
export var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
47
47
|
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
48
48
|
const n0_registry = TypeRegistry.for(n0);
|
|
49
|
-
export var AccessDeniedException$ = [
|
|
50
|
-
-3,
|
|
51
|
-
n0,
|
|
52
|
-
_ADE,
|
|
49
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
53
50
|
{ [_e]: _c, [_hE]: 400 },
|
|
54
51
|
[_e, _r, _ed],
|
|
55
|
-
[0, 0, 0]
|
|
52
|
+
[0, 0, 0]
|
|
56
53
|
];
|
|
57
54
|
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
58
|
-
export var AuthorizationPendingException$ = [
|
|
59
|
-
-3,
|
|
60
|
-
n0,
|
|
61
|
-
_APE,
|
|
55
|
+
export var AuthorizationPendingException$ = [-3, n0, _APE,
|
|
62
56
|
{ [_e]: _c, [_hE]: 400 },
|
|
63
57
|
[_e, _ed],
|
|
64
|
-
[0, 0]
|
|
58
|
+
[0, 0]
|
|
65
59
|
];
|
|
66
60
|
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
67
|
-
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
61
|
+
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
62
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
63
|
+
[_e, _ed],
|
|
64
|
+
[0, 0]
|
|
65
|
+
];
|
|
68
66
|
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
69
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
67
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
68
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
69
|
+
[_e, _ed],
|
|
70
|
+
[0, 0]
|
|
71
|
+
];
|
|
70
72
|
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
71
|
-
export var InvalidClientException$ = [-3, n0, _ICE,
|
|
73
|
+
export var InvalidClientException$ = [-3, n0, _ICE,
|
|
74
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
75
|
+
[_e, _ed],
|
|
76
|
+
[0, 0]
|
|
77
|
+
];
|
|
72
78
|
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
73
|
-
export var InvalidGrantException$ = [-3, n0, _IGE,
|
|
79
|
+
export var InvalidGrantException$ = [-3, n0, _IGE,
|
|
80
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
81
|
+
[_e, _ed],
|
|
82
|
+
[0, 0]
|
|
83
|
+
];
|
|
74
84
|
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
75
|
-
export var InvalidRequestException$ = [
|
|
76
|
-
-3,
|
|
77
|
-
n0,
|
|
78
|
-
_IRE,
|
|
85
|
+
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
79
86
|
{ [_e]: _c, [_hE]: 400 },
|
|
80
87
|
[_e, _r, _ed],
|
|
81
|
-
[0, 0, 0]
|
|
88
|
+
[0, 0, 0]
|
|
82
89
|
];
|
|
83
90
|
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
84
|
-
export var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
91
|
+
export var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
92
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
93
|
+
[_e, _ed],
|
|
94
|
+
[0, 0]
|
|
95
|
+
];
|
|
85
96
|
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
86
|
-
export var SlowDownException$ = [-3, n0, _SDE,
|
|
97
|
+
export var SlowDownException$ = [-3, n0, _SDE,
|
|
98
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
99
|
+
[_e, _ed],
|
|
100
|
+
[0, 0]
|
|
101
|
+
];
|
|
87
102
|
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
88
|
-
export var UnauthorizedClientException$ = [
|
|
89
|
-
-3,
|
|
90
|
-
n0,
|
|
91
|
-
_UCE,
|
|
103
|
+
export var UnauthorizedClientException$ = [-3, n0, _UCE,
|
|
92
104
|
{ [_e]: _c, [_hE]: 400 },
|
|
93
105
|
[_e, _ed],
|
|
94
|
-
[0, 0]
|
|
106
|
+
[0, 0]
|
|
95
107
|
];
|
|
96
108
|
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
97
|
-
export var UnsupportedGrantTypeException$ = [
|
|
98
|
-
-3,
|
|
99
|
-
n0,
|
|
100
|
-
_UGTE,
|
|
109
|
+
export var UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
|
|
101
110
|
{ [_e]: _c, [_hE]: 400 },
|
|
102
111
|
[_e, _ed],
|
|
103
|
-
[0, 0]
|
|
112
|
+
[0, 0]
|
|
104
113
|
];
|
|
105
114
|
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
106
|
-
export const errorTypeRegistries = [
|
|
115
|
+
export const errorTypeRegistries = [
|
|
116
|
+
_s_registry,
|
|
117
|
+
n0_registry,
|
|
118
|
+
];
|
|
107
119
|
var AccessToken = [0, n0, _AT, 8, 0];
|
|
108
120
|
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
109
121
|
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
110
122
|
var IdToken = [0, n0, _IT, 8, 0];
|
|
111
123
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
112
|
-
export var CreateTokenRequest$ = [
|
|
113
|
-
3,
|
|
114
|
-
n0,
|
|
115
|
-
_CTR,
|
|
124
|
+
export var CreateTokenRequest$ = [3, n0, _CTR,
|
|
116
125
|
0,
|
|
117
126
|
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
118
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
119
|
-
3,
|
|
127
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3
|
|
120
128
|
];
|
|
121
|
-
export var CreateTokenResponse$ = [
|
|
122
|
-
3,
|
|
123
|
-
n0,
|
|
124
|
-
_CTRr,
|
|
129
|
+
export var CreateTokenResponse$ = [3, n0, _CTRr,
|
|
125
130
|
0,
|
|
126
131
|
[_aT, _tT, _eI, _rT, _iT],
|
|
127
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
132
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
128
133
|
];
|
|
129
134
|
var Scopes = 64 | 0;
|
|
130
|
-
export var CreateToken$ = [
|
|
131
|
-
|
|
132
|
-
n0,
|
|
133
|
-
_CT,
|
|
134
|
-
{ [_h]: ["POST", "/token", 200] },
|
|
135
|
-
() => CreateTokenRequest$,
|
|
136
|
-
() => CreateTokenResponse$,
|
|
135
|
+
export var CreateToken$ = [9, n0, _CT,
|
|
136
|
+
{ [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
|
|
137
137
|
];
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
|
+
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
3
|
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
4
4
|
import { resolveParams } from "@smithy/core/endpoints";
|
|
@@ -19,10 +19,9 @@ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSc
|
|
|
19
19
|
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
20
|
return {
|
|
21
21
|
operation: getSmithyContext(context).operation,
|
|
22
|
-
region:
|
|
23
|
-
(
|
|
24
|
-
|
|
25
|
-
})(),
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
23
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
24
|
+
})(),
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
export const defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity
|
|
1
|
+
import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers";
|
|
2
2
|
import { STSClient } from "./STSClient";
|
|
3
3
|
const getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
4
4
|
if (!customizations)
|
|
@@ -27,7 +27,7 @@ const _data = {
|
|
|
27
27
|
[f, [m, "ap-southeast-1"]],
|
|
28
28
|
[f, [m, "ap-northeast-1"]],
|
|
29
29
|
[f, [m, "ap-southeast-2"]],
|
|
30
|
-
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]]
|
|
30
|
+
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]]
|
|
31
31
|
],
|
|
32
32
|
results: [
|
|
33
33
|
[a],
|
|
@@ -44,104 +44,42 @@ const _data = {
|
|
|
44
44
|
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
45
45
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
46
46
|
[k, o],
|
|
47
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
48
|
-
]
|
|
47
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
48
|
+
]
|
|
49
49
|
};
|
|
50
50
|
const root = 2;
|
|
51
51
|
const r = 100_000_000;
|
|
52
52
|
const nodes = new Int32Array([
|
|
53
|
-
-1,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
1,
|
|
60
|
-
|
|
61
|
-
r +
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
r +
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
r + 1,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
r +
|
|
77
|
-
|
|
78
|
-
r +
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
r +
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
r + 1,
|
|
85
|
-
12,
|
|
86
|
-
12,
|
|
87
|
-
r + 1,
|
|
88
|
-
13,
|
|
89
|
-
13,
|
|
90
|
-
r + 1,
|
|
91
|
-
14,
|
|
92
|
-
14,
|
|
93
|
-
r + 1,
|
|
94
|
-
15,
|
|
95
|
-
15,
|
|
96
|
-
r + 1,
|
|
97
|
-
16,
|
|
98
|
-
16,
|
|
99
|
-
r + 1,
|
|
100
|
-
17,
|
|
101
|
-
17,
|
|
102
|
-
r + 1,
|
|
103
|
-
18,
|
|
104
|
-
18,
|
|
105
|
-
r + 1,
|
|
106
|
-
19,
|
|
107
|
-
19,
|
|
108
|
-
r + 1,
|
|
109
|
-
20,
|
|
110
|
-
20,
|
|
111
|
-
r + 1,
|
|
112
|
-
21,
|
|
113
|
-
21,
|
|
114
|
-
r + 1,
|
|
115
|
-
22,
|
|
116
|
-
22,
|
|
117
|
-
r + 1,
|
|
118
|
-
23,
|
|
119
|
-
23,
|
|
120
|
-
r + 1,
|
|
121
|
-
r + 2,
|
|
122
|
-
8,
|
|
123
|
-
r + 11,
|
|
124
|
-
r + 12,
|
|
125
|
-
4,
|
|
126
|
-
28,
|
|
127
|
-
26,
|
|
128
|
-
9,
|
|
129
|
-
27,
|
|
130
|
-
r + 10,
|
|
131
|
-
24,
|
|
132
|
-
r + 8,
|
|
133
|
-
r + 9,
|
|
134
|
-
8,
|
|
135
|
-
29,
|
|
136
|
-
r + 7,
|
|
137
|
-
9,
|
|
138
|
-
r + 6,
|
|
139
|
-
r + 7,
|
|
140
|
-
3,
|
|
141
|
-
r + 3,
|
|
142
|
-
31,
|
|
143
|
-
4,
|
|
144
|
-
r + 4,
|
|
145
|
-
r + 5,
|
|
53
|
+
-1, 1, -1,
|
|
54
|
+
0, 30, 3,
|
|
55
|
+
1, 4, r + 14,
|
|
56
|
+
2, 5, r + 14,
|
|
57
|
+
3, 25, 6,
|
|
58
|
+
4, 24, 7,
|
|
59
|
+
5, r + 1, 8,
|
|
60
|
+
6, 9, r + 13,
|
|
61
|
+
7, r + 1, 10,
|
|
62
|
+
10, r + 1, 11,
|
|
63
|
+
11, r + 1, 12,
|
|
64
|
+
12, r + 1, 13,
|
|
65
|
+
13, r + 1, 14,
|
|
66
|
+
14, r + 1, 15,
|
|
67
|
+
15, r + 1, 16,
|
|
68
|
+
16, r + 1, 17,
|
|
69
|
+
17, r + 1, 18,
|
|
70
|
+
18, r + 1, 19,
|
|
71
|
+
19, r + 1, 20,
|
|
72
|
+
20, r + 1, 21,
|
|
73
|
+
21, r + 1, 22,
|
|
74
|
+
22, r + 1, 23,
|
|
75
|
+
23, r + 1, r + 2,
|
|
76
|
+
8, r + 11, r + 12,
|
|
77
|
+
4, 28, 26,
|
|
78
|
+
9, 27, r + 10,
|
|
79
|
+
24, r + 8, r + 9,
|
|
80
|
+
8, 29, r + 7,
|
|
81
|
+
9, r + 6, r + 7,
|
|
82
|
+
3, r + 3, 31,
|
|
83
|
+
4, r + 4, r + 5,
|
|
146
84
|
]);
|
|
147
85
|
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js
CHANGED
|
@@ -18,8 +18,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
18
|
defaultsMode,
|
|
19
19
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
22
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
22
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
24
23
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
25
24
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -25,13 +25,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
25
25
|
defaultsMode,
|
|
26
26
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
29
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
31
30
|
{
|
|
32
31
|
schemeId: "aws.auth#sigv4",
|
|
33
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
|
34
|
-
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
32
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
35
33
|
signer: new AwsSdkSigV4Signer(),
|
|
36
34
|
},
|
|
37
35
|
{
|
|
@@ -46,8 +44,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
46
44
|
},
|
|
47
45
|
],
|
|
48
46
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
49
|
-
region: config?.region ??
|
|
50
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
47
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
51
48
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
52
49
|
retryMode: config?.retryMode ??
|
|
53
50
|
loadNodeConfig({
|
|
@@ -64,129 +64,112 @@ const _s_registry = TypeRegistry.for(_s);
|
|
|
64
64
|
export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
65
65
|
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
66
66
|
const n0_registry = TypeRegistry.for(n0);
|
|
67
|
-
export var ExpiredTokenException$ = [
|
|
68
|
-
-3,
|
|
69
|
-
n0,
|
|
70
|
-
_ETE,
|
|
67
|
+
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
71
68
|
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
72
69
|
[_m],
|
|
73
|
-
[0]
|
|
70
|
+
[0]
|
|
74
71
|
];
|
|
75
72
|
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
76
|
-
export var IDPCommunicationErrorException$ = [
|
|
77
|
-
-3,
|
|
78
|
-
n0,
|
|
79
|
-
_IDPCEE,
|
|
73
|
+
export var IDPCommunicationErrorException$ = [-3, n0, _IDPCEE,
|
|
80
74
|
{ [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
|
|
81
75
|
[_m],
|
|
82
|
-
[0]
|
|
76
|
+
[0]
|
|
83
77
|
];
|
|
84
78
|
n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
|
85
|
-
export var IDPRejectedClaimException$ = [
|
|
86
|
-
-3,
|
|
87
|
-
n0,
|
|
88
|
-
_IDPRCE,
|
|
79
|
+
export var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
89
80
|
{ [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
|
|
90
81
|
[_m],
|
|
91
|
-
[0]
|
|
82
|
+
[0]
|
|
92
83
|
];
|
|
93
84
|
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
94
|
-
export var InvalidIdentityTokenException$ = [
|
|
95
|
-
-3,
|
|
96
|
-
n0,
|
|
97
|
-
_IITE,
|
|
85
|
+
export var InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
98
86
|
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
99
87
|
[_m],
|
|
100
|
-
[0]
|
|
88
|
+
[0]
|
|
101
89
|
];
|
|
102
90
|
n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
|
103
|
-
export var MalformedPolicyDocumentException$ = [
|
|
104
|
-
-3,
|
|
105
|
-
n0,
|
|
106
|
-
_MPDE,
|
|
91
|
+
export var MalformedPolicyDocumentException$ = [-3, n0, _MPDE,
|
|
107
92
|
{ [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
|
|
108
93
|
[_m],
|
|
109
|
-
[0]
|
|
94
|
+
[0]
|
|
110
95
|
];
|
|
111
96
|
n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
|
112
|
-
export var PackedPolicyTooLargeException$ = [
|
|
113
|
-
-3,
|
|
114
|
-
n0,
|
|
115
|
-
_PPTLE,
|
|
97
|
+
export var PackedPolicyTooLargeException$ = [-3, n0, _PPTLE,
|
|
116
98
|
{ [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
|
|
117
99
|
[_m],
|
|
118
|
-
[0]
|
|
100
|
+
[0]
|
|
119
101
|
];
|
|
120
102
|
n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
|
121
|
-
export var RegionDisabledException$ = [
|
|
122
|
-
-3,
|
|
123
|
-
n0,
|
|
124
|
-
_RDE,
|
|
103
|
+
export var RegionDisabledException$ = [-3, n0, _RDE,
|
|
125
104
|
{ [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
|
126
105
|
[_m],
|
|
127
|
-
[0]
|
|
106
|
+
[0]
|
|
128
107
|
];
|
|
129
108
|
n0_registry.registerError(RegionDisabledException$, RegionDisabledException);
|
|
130
|
-
export const errorTypeRegistries = [
|
|
109
|
+
export const errorTypeRegistries = [
|
|
110
|
+
_s_registry,
|
|
111
|
+
n0_registry,
|
|
112
|
+
];
|
|
131
113
|
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
132
114
|
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
133
|
-
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
115
|
+
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
116
|
+
0,
|
|
117
|
+
[_ARI, _A],
|
|
118
|
+
[0, 0], 2
|
|
119
|
+
];
|
|
120
|
+
export var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
138
121
|
0,
|
|
139
122
|
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
140
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
|
|
141
|
-
2,
|
|
123
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
142
124
|
];
|
|
143
|
-
export var AssumeRoleResponse$ = [
|
|
144
|
-
3,
|
|
145
|
-
n0,
|
|
146
|
-
_ARRs,
|
|
125
|
+
export var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
147
126
|
0,
|
|
148
127
|
[_C, _ARU, _PPS, _SI],
|
|
149
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
128
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
150
129
|
];
|
|
151
|
-
export var AssumeRoleWithWebIdentityRequest$ = [
|
|
152
|
-
3,
|
|
153
|
-
n0,
|
|
154
|
-
_ARWWIR,
|
|
130
|
+
export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
155
131
|
0,
|
|
156
132
|
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
157
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
|
|
158
|
-
3,
|
|
133
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
159
134
|
];
|
|
160
|
-
export var AssumeRoleWithWebIdentityResponse$ = [
|
|
161
|
-
3,
|
|
162
|
-
n0,
|
|
163
|
-
_ARWWIRs,
|
|
135
|
+
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
164
136
|
0,
|
|
165
137
|
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
166
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
138
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
167
139
|
];
|
|
168
|
-
export var Credentials$ = [
|
|
169
|
-
3,
|
|
170
|
-
n0,
|
|
171
|
-
_C,
|
|
140
|
+
export var Credentials$ = [3, n0, _C,
|
|
172
141
|
0,
|
|
173
142
|
[_AKI, _SAK, _ST, _E],
|
|
174
|
-
[0, [() => accessKeySecretType, 0], 0, 4],
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var
|
|
182
|
-
var tagKeyListType = 64 | 0;
|
|
183
|
-
var tagListType = [1, n0, _tLT, 0, () => Tag$];
|
|
184
|
-
export var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
|
|
185
|
-
export var AssumeRoleWithWebIdentity$ = [
|
|
186
|
-
9,
|
|
187
|
-
n0,
|
|
188
|
-
_ARWWI,
|
|
143
|
+
[0, [() => accessKeySecretType, 0], 0, 4], 4
|
|
144
|
+
];
|
|
145
|
+
export var PolicyDescriptorType$ = [3, n0, _PDT,
|
|
146
|
+
0,
|
|
147
|
+
[_a],
|
|
148
|
+
[0]
|
|
149
|
+
];
|
|
150
|
+
export var ProvidedContext$ = [3, n0, _PCr,
|
|
189
151
|
0,
|
|
190
|
-
|
|
191
|
-
|
|
152
|
+
[_PAr, _CA],
|
|
153
|
+
[0, 0]
|
|
154
|
+
];
|
|
155
|
+
export var Tag$ = [3, n0, _Ta,
|
|
156
|
+
0,
|
|
157
|
+
[_K, _V],
|
|
158
|
+
[0, 0], 2
|
|
159
|
+
];
|
|
160
|
+
var policyDescriptorListType = [1, n0, _pDLT,
|
|
161
|
+
0, () => PolicyDescriptorType$
|
|
162
|
+
];
|
|
163
|
+
var ProvidedContextsListType = [1, n0, _PCLT,
|
|
164
|
+
0, () => ProvidedContext$
|
|
165
|
+
];
|
|
166
|
+
var tagKeyListType = 64 | 0;
|
|
167
|
+
var tagListType = [1, n0, _tLT,
|
|
168
|
+
0, () => Tag$
|
|
169
|
+
];
|
|
170
|
+
export var AssumeRole$ = [9, n0, _AR,
|
|
171
|
+
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
172
|
+
];
|
|
173
|
+
export var AssumeRoleWithWebIdentity$ = [9, n0, _ARWWI,
|
|
174
|
+
0, () => AssumeRoleWithWebIdentityRequest$, () => AssumeRoleWithWebIdentityResponse$
|
|
192
175
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var node_https = require('node:https');
|
|
4
3
|
var protocols = require('@smithy/core/protocols');
|
|
4
|
+
var node_https = require('node:https');
|
|
5
5
|
var node_stream = require('node:stream');
|
|
6
6
|
var http2 = require('node:http2');
|
|
7
7
|
|
|
@@ -414,7 +414,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
414
414
|
socketAcquisitionWarningTimeout,
|
|
415
415
|
throwOnRequestTimeout,
|
|
416
416
|
httpAgentProvider: async () => {
|
|
417
|
-
const
|
|
417
|
+
const node_http = await import('node:http');
|
|
418
|
+
const { Agent, request } = node_http.default ?? node_http;
|
|
418
419
|
hRequest = request;
|
|
419
420
|
hAgent = Agent;
|
|
420
421
|
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
@@ -666,6 +667,7 @@ class NodeHttp2ConnectionManager {
|
|
|
666
667
|
}
|
|
667
668
|
}
|
|
668
669
|
|
|
670
|
+
const { constants } = http2;
|
|
669
671
|
class NodeHttp2Handler {
|
|
670
672
|
config;
|
|
671
673
|
configProvider;
|
|
@@ -760,8 +762,8 @@ class NodeHttp2Handler {
|
|
|
760
762
|
}
|
|
761
763
|
const clientHttp2Stream = session.request({
|
|
762
764
|
...request.headers,
|
|
763
|
-
[
|
|
764
|
-
[
|
|
765
|
+
[constants.HTTP2_HEADER_PATH]: path,
|
|
766
|
+
[constants.HTTP2_HEADER_METHOD]: method,
|
|
765
767
|
});
|
|
766
768
|
if (effectiveRequestTimeout) {
|
|
767
769
|
clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Agent as hsAgent, request as hsRequest } from "node:https";
|
|
2
1
|
import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
|
|
3
2
|
import { buildAbortError } from "./build-abort-error";
|
|
4
3
|
import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
|
|
5
4
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
5
|
+
import { node_https } from "./node-https";
|
|
6
6
|
import { setConnectionTimeout } from "./set-connection-timeout";
|
|
7
7
|
import { setRequestTimeout } from "./set-request-timeout";
|
|
8
8
|
import { setSocketKeepAlive } from "./set-socket-keep-alive";
|
|
@@ -107,7 +107,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
107
107
|
const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false;
|
|
108
108
|
let agent = isSSL ? config.httpsAgent : config.httpAgent;
|
|
109
109
|
if (expectContinue && !this.externalAgent) {
|
|
110
|
-
agent = new (isSSL ?
|
|
110
|
+
agent = new (isSSL ? node_https.Agent : hAgent)({
|
|
111
111
|
keepAlive: false,
|
|
112
112
|
maxSockets: Infinity,
|
|
113
113
|
});
|
|
@@ -145,7 +145,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
145
145
|
agent,
|
|
146
146
|
auth,
|
|
147
147
|
};
|
|
148
|
-
const requestFunc = isSSL ?
|
|
148
|
+
const requestFunc = isSSL ? node_https.request : hRequest;
|
|
149
149
|
const req = requestFunc(nodeHttpsOptions, (res) => {
|
|
150
150
|
const httpResponse = new HttpResponse({
|
|
151
151
|
statusCode: res.statusCode || -1,
|
|
@@ -218,7 +218,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
218
218
|
socketAcquisitionWarningTimeout,
|
|
219
219
|
throwOnRequestTimeout,
|
|
220
220
|
httpAgentProvider: async () => {
|
|
221
|
-
const
|
|
221
|
+
const node_http = await import("node:http");
|
|
222
|
+
const { Agent, request } = node_http.default ?? node_http;
|
|
222
223
|
hRequest = request;
|
|
223
224
|
hAgent = Agent;
|
|
224
225
|
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
@@ -228,11 +229,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
228
229
|
return new hAgent({ keepAlive, maxSockets, ...httpAgent });
|
|
229
230
|
},
|
|
230
231
|
httpsAgent: (() => {
|
|
231
|
-
if (httpsAgent instanceof
|
|
232
|
+
if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
|
|
232
233
|
this.externalAgent = true;
|
|
233
234
|
return httpsAgent;
|
|
234
235
|
}
|
|
235
|
-
return new
|
|
236
|
+
return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
236
237
|
})(),
|
|
237
238
|
logger,
|
|
238
239
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { constants } from "node:http2";
|
|
2
1
|
import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
|
|
3
2
|
import { buildAbortError } from "./build-abort-error";
|
|
4
3
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
4
|
+
import { node_http2 } from "./node-http2";
|
|
5
5
|
import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
|
|
6
6
|
import { writeRequestBody } from "./write-request-body";
|
|
7
|
+
const { constants } = node_http2;
|
|
7
8
|
export class NodeHttp2Handler {
|
|
8
9
|
config;
|
|
9
10
|
configProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Agent as hAgentType } from "node:http";
|
|
2
|
-
import { Agent as
|
|
2
|
+
import type { Agent as hsAgentType } from "node:https";
|
|
3
3
|
import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
|
|
4
4
|
import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
|
|
5
5
|
export { NodeHttpHandlerOptions };
|
|
@@ -35,7 +35,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
|
|
|
35
35
|
* @param logger - channel for the warning.
|
|
36
36
|
* @returns timestamp of last emitted warning.
|
|
37
37
|
*/
|
|
38
|
-
static checkSocketUsage(agent: hAgentType |
|
|
38
|
+
static checkSocketUsage(agent: hAgentType | hsAgentType, socketWarningTimestamp: number, logger?: Logger): number;
|
|
39
39
|
constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
|
|
40
40
|
destroy(): void;
|
|
41
41
|
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
|