@semiont/graph 0.5.26 → 0.5.28
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/{chunk-GPJBZ6EG.js → chunk-2FPUYYXX.js} +9 -1
- package/dist/chunk-2FPUYYXX.js.map +1 -0
- package/dist/{chunk-Y62BMZ25.js → chunk-52FQCX5M.js} +18 -6
- package/dist/chunk-52FQCX5M.js.map +1 -0
- package/dist/{chunk-RKAR27K2.js → chunk-MO34K2LQ.js} +119 -28
- package/dist/chunk-MO34K2LQ.js.map +1 -0
- package/dist/{chunk-JWG64MVA.js → chunk-RUKYB5L4.js} +6 -6
- package/dist/{chunk-JWG64MVA.js.map → chunk-RUKYB5L4.js.map} +1 -1
- package/dist/{chunk-YYVVWLB2.js → chunk-TKWHSSPF.js} +35 -16
- package/dist/chunk-TKWHSSPF.js.map +1 -0
- package/dist/{chunk-RRZDPP7Z.js → chunk-X77CPJUJ.js} +2 -2
- package/dist/{chunk-UKT6IXAM.js → chunk-XTHXGGIJ.js} +3 -3
- package/dist/{chunk-RBRHTAJN.js → chunk-ZPM4D2XD.js} +14 -5
- package/dist/chunk-ZPM4D2XD.js.map +1 -0
- package/dist/{dist-es-BGEPUOPB.js → dist-es-AET2QNVA.js} +21 -21
- package/dist/dist-es-AET2QNVA.js.map +1 -0
- package/dist/{dist-es-TLOL2VHU.js → dist-es-BSJRQ6XP.js} +7 -7
- package/dist/{dist-es-BUTLC2YS.js → dist-es-C2VXNLLU.js} +13 -13
- package/dist/{dist-es-M72B762W.js → dist-es-FTEZAK7G.js} +5 -5
- package/dist/{dist-es-NGG7JHEH.js → dist-es-FV5JDCUX.js} +4 -4
- package/dist/{dist-es-WLYFLMD3.js → dist-es-IS4IC3TZ.js} +5 -5
- package/dist/{dist-es-ILOZ33QI.js → dist-es-ISXX5KU4.js} +5 -5
- package/dist/{dist-es-WS6NDSQ5.js → dist-es-RR4OU64S.js} +5 -5
- package/dist/{dist-es-LN4LZWKV.js → dist-es-V7467ELV.js} +3 -3
- package/dist/{event-streams-2HBIXE6X.js → event-streams-UU2VASBU.js} +36 -27
- package/dist/event-streams-UU2VASBU.js.map +1 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +233 -342
- package/dist/index.js.map +1 -1
- package/dist/{loadSso-GOLDOL76.js → loadSso-SCNBGUAS.js} +8 -8
- package/dist/{signin-TS4P2IEW.js → signin-6CO4ELBM.js} +8 -8
- package/dist/{sso-oidc-QHNBBLAM.js → sso-oidc-NYPIZEZ2.js} +8 -8
- package/dist/{sts-ZKQ7LNEG.js → sts-7LYERIMP.js} +8 -8
- package/package.json +6 -6
- package/dist/chunk-GPJBZ6EG.js.map +0 -1
- package/dist/chunk-RBRHTAJN.js.map +0 -1
- package/dist/chunk-RKAR27K2.js.map +0 -1
- package/dist/chunk-Y62BMZ25.js.map +0 -1
- package/dist/chunk-YYVVWLB2.js.map +0 -1
- package/dist/dist-es-BGEPUOPB.js.map +0 -1
- package/dist/event-streams-2HBIXE6X.js.map +0 -1
- /package/dist/{chunk-RRZDPP7Z.js.map → chunk-X77CPJUJ.js.map} +0 -0
- /package/dist/{chunk-UKT6IXAM.js.map → chunk-XTHXGGIJ.js.map} +0 -0
- /package/dist/{dist-es-TLOL2VHU.js.map → dist-es-BSJRQ6XP.js.map} +0 -0
- /package/dist/{dist-es-BUTLC2YS.js.map → dist-es-C2VXNLLU.js.map} +0 -0
- /package/dist/{dist-es-M72B762W.js.map → dist-es-FTEZAK7G.js.map} +0 -0
- /package/dist/{dist-es-NGG7JHEH.js.map → dist-es-FV5JDCUX.js.map} +0 -0
- /package/dist/{dist-es-WLYFLMD3.js.map → dist-es-IS4IC3TZ.js.map} +0 -0
- /package/dist/{dist-es-ILOZ33QI.js.map → dist-es-ISXX5KU4.js.map} +0 -0
- /package/dist/{dist-es-WS6NDSQ5.js.map → dist-es-RR4OU64S.js.map} +0 -0
- /package/dist/{dist-es-LN4LZWKV.js.map → dist-es-V7467ELV.js.map} +0 -0
- /package/dist/{loadSso-GOLDOL76.js.map → loadSso-SCNBGUAS.js.map} +0 -0
- /package/dist/{signin-TS4P2IEW.js.map → signin-6CO4ELBM.js.map} +0 -0
- /package/dist/{sso-oidc-QHNBBLAM.js.map → sso-oidc-NYPIZEZ2.js.map} +0 -0
- /package/dist/{sts-ZKQ7LNEG.js.map → sts-7LYERIMP.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialsProviderError,
|
|
6
6
|
TokenProviderError,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
getSSOTokenFromFile,
|
|
10
10
|
loadSsoSessionData,
|
|
11
11
|
parseKnownFiles
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TKWHSSPF.js";
|
|
13
|
+
import "./chunk-2FPUYYXX.js";
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
16
16
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
@@ -21,7 +21,7 @@ var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the
|
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
23
23
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
24
|
-
const { SSOOIDCClient } = await import("./sso-oidc-
|
|
24
|
+
const { SSOOIDCClient } = await import("./sso-oidc-NYPIZEZ2.js");
|
|
25
25
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
26
26
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
27
27
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -33,7 +33,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
33
33
|
|
|
34
34
|
// ../../node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
35
35
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
36
|
-
const { CreateTokenCommand } = await import("./sso-oidc-
|
|
36
|
+
const { CreateTokenCommand } = await import("./sso-oidc-NYPIZEZ2.js");
|
|
37
37
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
38
38
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
39
39
|
clientId: ssoToken.clientId,
|
|
@@ -181,7 +181,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
const { accessToken } = token;
|
|
184
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-
|
|
184
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-SCNBGUAS.js");
|
|
185
185
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
186
186
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
187
187
|
region: clientConfig?.region ?? ssoRegion,
|
|
@@ -314,4 +314,4 @@ export {
|
|
|
314
314
|
isSsoProfile,
|
|
315
315
|
validateSsoProfile
|
|
316
316
|
};
|
|
317
|
-
//# sourceMappingURL=dist-es-
|
|
317
|
+
//# sourceMappingURL=dist-es-BSJRQ6XP.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialsProviderError,
|
|
6
6
|
chain,
|
|
7
7
|
getProfileName,
|
|
8
8
|
parseKnownFiles
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TKWHSSPF.js";
|
|
10
|
+
import "./chunk-2FPUYYXX.js";
|
|
11
11
|
|
|
12
12
|
// ../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
13
13
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
14
14
|
const sourceProvidersMap = {
|
|
15
15
|
EcsContainer: async (options) => {
|
|
16
|
-
const { fromHttp } = await import("./dist-es-
|
|
17
|
-
const { fromContainerMetadata } = await import("./dist-es-
|
|
16
|
+
const { fromHttp } = await import("./dist-es-FTEZAK7G.js");
|
|
17
|
+
const { fromContainerMetadata } = await import("./dist-es-V7467ELV.js");
|
|
18
18
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
19
19
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
20
20
|
},
|
|
21
21
|
Ec2InstanceMetadata: async (options) => {
|
|
22
22
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
23
|
-
const { fromInstanceMetadata } = await import("./dist-es-
|
|
23
|
+
const { fromInstanceMetadata } = await import("./dist-es-V7467ELV.js");
|
|
24
24
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
25
25
|
},
|
|
26
26
|
Environment: async (options) => {
|
|
27
27
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
28
|
-
const { fromEnv } = await import("./dist-es-
|
|
28
|
+
const { fromEnv } = await import("./dist-es-ISXX5KU4.js");
|
|
29
29
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -60,7 +60,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, caller
|
|
|
60
60
|
const profileData = profiles[profileName];
|
|
61
61
|
const { source_profile, region } = profileData;
|
|
62
62
|
if (!options.roleAssumer) {
|
|
63
|
-
const { getDefaultRoleAssumer } = await import("./sts-
|
|
63
|
+
const { getDefaultRoleAssumer } = await import("./sts-7LYERIMP.js");
|
|
64
64
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
65
65
|
...options.clientConfig,
|
|
66
66
|
credentialProviderLogger: options.logger,
|
|
@@ -109,7 +109,7 @@ var isLoginProfile = (data) => {
|
|
|
109
109
|
return Boolean(data && data.login_session);
|
|
110
110
|
};
|
|
111
111
|
var resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
112
|
-
const { fromLoginCredentials } = await import("./dist-es-
|
|
112
|
+
const { fromLoginCredentials } = await import("./dist-es-IS4IC3TZ.js");
|
|
113
113
|
const credentials = await fromLoginCredentials({
|
|
114
114
|
...options,
|
|
115
115
|
profile: profileName
|
|
@@ -120,7 +120,7 @@ var resolveLoginCredentials = async (profileName, options, callerClientConfig) =
|
|
|
120
120
|
// ../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
121
121
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
122
122
|
var resolveProcessCredentials = async (options, profile) => {
|
|
123
|
-
const { fromProcess } = await import("./dist-es-
|
|
123
|
+
const { fromProcess } = await import("./dist-es-FV5JDCUX.js");
|
|
124
124
|
const credentials = await fromProcess({
|
|
125
125
|
...options,
|
|
126
126
|
profile
|
|
@@ -130,7 +130,7 @@ var resolveProcessCredentials = async (options, profile) => {
|
|
|
130
130
|
|
|
131
131
|
// ../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
132
132
|
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
133
|
-
const { fromSSO } = await import("./dist-es-
|
|
133
|
+
const { fromSSO } = await import("./dist-es-BSJRQ6XP.js");
|
|
134
134
|
return fromSSO({
|
|
135
135
|
profile,
|
|
136
136
|
logger: options.logger,
|
|
@@ -165,7 +165,7 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
165
165
|
// ../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
166
166
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
167
167
|
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
168
|
-
const { fromTokenFile } = await import("./dist-es-
|
|
168
|
+
const { fromTokenFile } = await import("./dist-es-RR4OU64S.js");
|
|
169
169
|
const credentials = await fromTokenFile({
|
|
170
170
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
171
171
|
roleArn: profile.role_arn,
|
|
@@ -217,4 +217,4 @@ var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
217
217
|
export {
|
|
218
218
|
fromIni
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=dist-es-
|
|
220
|
+
//# sourceMappingURL=dist-es-C2VXNLLU.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-52FQCX5M.js";
|
|
4
4
|
import {
|
|
5
5
|
setCredentialFeature
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
7
7
|
import {
|
|
8
8
|
CredentialsProviderError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TKWHSSPF.js";
|
|
10
10
|
import {
|
|
11
11
|
HttpRequest,
|
|
12
12
|
parseRfc3339DateTime,
|
|
13
13
|
sdkStreamMixin
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2FPUYYXX.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
17
17
|
import fs from "fs/promises";
|
|
@@ -172,4 +172,4 @@ var validateToken = (token) => {
|
|
|
172
172
|
export {
|
|
173
173
|
fromHttp
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=dist-es-
|
|
175
|
+
//# sourceMappingURL=dist-es-FTEZAK7G.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialsProviderError,
|
|
6
6
|
externalDataInterceptor,
|
|
7
7
|
getProfileName,
|
|
8
8
|
parseKnownFiles
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TKWHSSPF.js";
|
|
10
|
+
import "./chunk-2FPUYYXX.js";
|
|
11
11
|
|
|
12
12
|
// ../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
13
13
|
import { exec } from "child_process";
|
|
@@ -84,4 +84,4 @@ var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
84
84
|
export {
|
|
85
85
|
fromProcess
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=dist-es-
|
|
87
|
+
//# sourceMappingURL=dist-es-FV5JDCUX.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialsProviderError,
|
|
6
6
|
getProfileName,
|
|
7
7
|
parseKnownFiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TKWHSSPF.js";
|
|
9
9
|
import {
|
|
10
10
|
HttpRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FPUYYXX.js";
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
14
14
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
@@ -64,7 +64,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
64
64
|
if (freshExpiry - Date.now() > _LoginCredentialsFetcher.REFRESH_THRESHOLD) {
|
|
65
65
|
return this.toCredentials(freshToken.accessToken);
|
|
66
66
|
}
|
|
67
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-
|
|
67
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-6CO4ELBM.js");
|
|
68
68
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
69
69
|
const isH2 = (requestHandler2) => {
|
|
70
70
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -291,4 +291,4 @@ var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
|
291
291
|
export {
|
|
292
292
|
fromLoginCredentials
|
|
293
293
|
};
|
|
294
|
-
//# sourceMappingURL=dist-es-
|
|
294
|
+
//# sourceMappingURL=dist-es-IS4IC3TZ.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
ENV_SECRET,
|
|
7
7
|
ENV_SESSION,
|
|
8
8
|
fromEnv
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XTHXGGIJ.js";
|
|
10
|
+
import "./chunk-ZPM4D2XD.js";
|
|
11
|
+
import "./chunk-TKWHSSPF.js";
|
|
12
|
+
import "./chunk-2FPUYYXX.js";
|
|
13
13
|
export {
|
|
14
14
|
ENV_ACCOUNT_ID,
|
|
15
15
|
ENV_CREDENTIAL_SCOPE,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
ENV_SESSION,
|
|
20
20
|
fromEnv
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=dist-es-
|
|
22
|
+
//# sourceMappingURL=dist-es-ISXX5KU4.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPM4D2XD.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialsProviderError,
|
|
6
6
|
externalDataInterceptor
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TKWHSSPF.js";
|
|
8
|
+
import "./chunk-2FPUYYXX.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
11
11
|
import { readFileSync } from "fs";
|
|
@@ -16,7 +16,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
16
16
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
17
17
|
let { roleAssumerWithWebIdentity } = init;
|
|
18
18
|
if (!roleAssumerWithWebIdentity) {
|
|
19
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-
|
|
19
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-7LYERIMP.js");
|
|
20
20
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
21
21
|
...init.clientConfig,
|
|
22
22
|
credentialProviderLogger: init.logger,
|
|
@@ -66,4 +66,4 @@ export {
|
|
|
66
66
|
fromTokenFile,
|
|
67
67
|
fromWebToken
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=dist-es-
|
|
69
|
+
//# sourceMappingURL=dist-es-RR4OU64S.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
CredentialsProviderError,
|
|
3
3
|
ProviderError,
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TKWHSSPF.js";
|
|
6
6
|
import {
|
|
7
7
|
parseUrl
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2FPUYYXX.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
11
11
|
var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string";
|
|
@@ -374,4 +374,4 @@ export {
|
|
|
374
374
|
httpRequest,
|
|
375
375
|
providerConfigFromInit
|
|
376
376
|
};
|
|
377
|
-
//# sourceMappingURL=dist-es-
|
|
377
|
+
//# sourceMappingURL=dist-es-V7467ELV.js.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Crc32Node
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X77CPJUJ.js";
|
|
4
4
|
import {
|
|
5
5
|
TypeRegistry,
|
|
6
6
|
fromHex,
|
|
7
7
|
fromUtf8,
|
|
8
|
+
hasOwn,
|
|
8
9
|
toHex,
|
|
9
10
|
toUtf8
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FPUYYXX.js";
|
|
11
12
|
|
|
12
13
|
// ../../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js
|
|
13
14
|
var Int64 = class _Int64 {
|
|
@@ -64,7 +65,9 @@ var HeaderMarshaller = class {
|
|
|
64
65
|
}
|
|
65
66
|
format(headers) {
|
|
66
67
|
const chunks = [];
|
|
67
|
-
for (const headerName
|
|
68
|
+
for (const headerName in headers) {
|
|
69
|
+
if (!hasOwn(headers, headerName))
|
|
70
|
+
continue;
|
|
68
71
|
const bytes = this.fromUtf8(headerName);
|
|
69
72
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
70
73
|
}
|
|
@@ -79,27 +82,27 @@ var HeaderMarshaller = class {
|
|
|
79
82
|
formatHeaderValue(header) {
|
|
80
83
|
switch (header.type) {
|
|
81
84
|
case "boolean":
|
|
82
|
-
return Uint8Array.from([header.value ?
|
|
85
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
83
86
|
case "byte":
|
|
84
|
-
return Uint8Array.from([
|
|
87
|
+
return Uint8Array.from([2, header.value]);
|
|
85
88
|
case "short":
|
|
86
89
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
87
|
-
shortView.setUint8(0,
|
|
90
|
+
shortView.setUint8(0, 3);
|
|
88
91
|
shortView.setInt16(1, header.value, false);
|
|
89
92
|
return new Uint8Array(shortView.buffer);
|
|
90
93
|
case "integer":
|
|
91
94
|
const intView = new DataView(new ArrayBuffer(5));
|
|
92
|
-
intView.setUint8(0,
|
|
95
|
+
intView.setUint8(0, 4);
|
|
93
96
|
intView.setInt32(1, header.value, false);
|
|
94
97
|
return new Uint8Array(intView.buffer);
|
|
95
98
|
case "long":
|
|
96
99
|
const longBytes = new Uint8Array(9);
|
|
97
|
-
longBytes[0] =
|
|
100
|
+
longBytes[0] = 5;
|
|
98
101
|
longBytes.set(header.value.bytes, 1);
|
|
99
102
|
return longBytes;
|
|
100
103
|
case "binary":
|
|
101
104
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
102
|
-
binView.setUint8(0,
|
|
105
|
+
binView.setUint8(0, 6);
|
|
103
106
|
binView.setUint16(1, header.value.byteLength, false);
|
|
104
107
|
const binBytes = new Uint8Array(binView.buffer);
|
|
105
108
|
binBytes.set(header.value, 3);
|
|
@@ -107,14 +110,14 @@ var HeaderMarshaller = class {
|
|
|
107
110
|
case "string":
|
|
108
111
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
109
112
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
110
|
-
strView.setUint8(0,
|
|
113
|
+
strView.setUint8(0, 7);
|
|
111
114
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
112
115
|
const strBytes = new Uint8Array(strView.buffer);
|
|
113
116
|
strBytes.set(utf8Bytes, 3);
|
|
114
117
|
return strBytes;
|
|
115
118
|
case "timestamp":
|
|
116
119
|
const tsBytes = new Uint8Array(9);
|
|
117
|
-
tsBytes[0] =
|
|
120
|
+
tsBytes[0] = 8;
|
|
118
121
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
119
122
|
return tsBytes;
|
|
120
123
|
case "uuid":
|
|
@@ -122,7 +125,7 @@ var HeaderMarshaller = class {
|
|
|
122
125
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
123
126
|
}
|
|
124
127
|
const uuidBytes = new Uint8Array(17);
|
|
125
|
-
uuidBytes[0] =
|
|
128
|
+
uuidBytes[0] = 9;
|
|
126
129
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
127
130
|
return uuidBytes;
|
|
128
131
|
}
|
|
@@ -135,46 +138,46 @@ var HeaderMarshaller = class {
|
|
|
135
138
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
136
139
|
position += nameLength;
|
|
137
140
|
switch (headers.getUint8(position++)) {
|
|
138
|
-
case
|
|
141
|
+
case 0:
|
|
139
142
|
out[name] = {
|
|
140
143
|
type: BOOLEAN_TAG,
|
|
141
144
|
value: true
|
|
142
145
|
};
|
|
143
146
|
break;
|
|
144
|
-
case
|
|
147
|
+
case 1:
|
|
145
148
|
out[name] = {
|
|
146
149
|
type: BOOLEAN_TAG,
|
|
147
150
|
value: false
|
|
148
151
|
};
|
|
149
152
|
break;
|
|
150
|
-
case
|
|
153
|
+
case 2:
|
|
151
154
|
out[name] = {
|
|
152
155
|
type: BYTE_TAG,
|
|
153
156
|
value: headers.getInt8(position++)
|
|
154
157
|
};
|
|
155
158
|
break;
|
|
156
|
-
case
|
|
159
|
+
case 3:
|
|
157
160
|
out[name] = {
|
|
158
161
|
type: SHORT_TAG,
|
|
159
162
|
value: headers.getInt16(position, false)
|
|
160
163
|
};
|
|
161
164
|
position += 2;
|
|
162
165
|
break;
|
|
163
|
-
case
|
|
166
|
+
case 4:
|
|
164
167
|
out[name] = {
|
|
165
168
|
type: INT_TAG,
|
|
166
169
|
value: headers.getInt32(position, false)
|
|
167
170
|
};
|
|
168
171
|
position += 4;
|
|
169
172
|
break;
|
|
170
|
-
case
|
|
173
|
+
case 5:
|
|
171
174
|
out[name] = {
|
|
172
175
|
type: LONG_TAG,
|
|
173
176
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
|
|
174
177
|
};
|
|
175
178
|
position += 8;
|
|
176
179
|
break;
|
|
177
|
-
case
|
|
180
|
+
case 6:
|
|
178
181
|
const binaryLength = headers.getUint16(position, false);
|
|
179
182
|
position += 2;
|
|
180
183
|
out[name] = {
|
|
@@ -183,7 +186,7 @@ var HeaderMarshaller = class {
|
|
|
183
186
|
};
|
|
184
187
|
position += binaryLength;
|
|
185
188
|
break;
|
|
186
|
-
case
|
|
189
|
+
case 7:
|
|
187
190
|
const stringLength = headers.getUint16(position, false);
|
|
188
191
|
position += 2;
|
|
189
192
|
out[name] = {
|
|
@@ -192,14 +195,14 @@ var HeaderMarshaller = class {
|
|
|
192
195
|
};
|
|
193
196
|
position += stringLength;
|
|
194
197
|
break;
|
|
195
|
-
case
|
|
198
|
+
case 8:
|
|
196
199
|
out[name] = {
|
|
197
200
|
type: TIMESTAMP_TAG,
|
|
198
201
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
|
|
199
202
|
};
|
|
200
203
|
position += 8;
|
|
201
204
|
break;
|
|
202
|
-
case
|
|
205
|
+
case 9:
|
|
203
206
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
204
207
|
position += 16;
|
|
205
208
|
out[name] = {
|
|
@@ -644,7 +647,7 @@ var EventStreamSerde = class {
|
|
|
644
647
|
this.defaultContentType = defaultContentType;
|
|
645
648
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
646
649
|
}
|
|
647
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
|
|
650
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType }) {
|
|
648
651
|
const marshaller = this.marshaller;
|
|
649
652
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
650
653
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -655,7 +658,7 @@ var EventStreamSerde = class {
|
|
|
655
658
|
async *[Symbol.asyncIterator]() {
|
|
656
659
|
if (initialRequest) {
|
|
657
660
|
const headers = {
|
|
658
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
661
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
659
662
|
":message-type": { type: "string", value: "event" },
|
|
660
663
|
":content-type": { type: "string", value: defaultContentType }
|
|
661
664
|
};
|
|
@@ -681,6 +684,8 @@ var EventStreamSerde = class {
|
|
|
681
684
|
}
|
|
682
685
|
let unionMember = "";
|
|
683
686
|
for (const key in event) {
|
|
687
|
+
if (!hasOwn(event, key))
|
|
688
|
+
continue;
|
|
684
689
|
if (key !== "__type") {
|
|
685
690
|
unionMember = key;
|
|
686
691
|
break;
|
|
@@ -699,7 +704,7 @@ var EventStreamSerde = class {
|
|
|
699
704
|
};
|
|
700
705
|
});
|
|
701
706
|
}
|
|
702
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
|
|
707
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType }) {
|
|
703
708
|
const marshaller = this.marshaller;
|
|
704
709
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
705
710
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -708,13 +713,15 @@ var EventStreamSerde = class {
|
|
|
708
713
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
709
714
|
let unionMember = "";
|
|
710
715
|
for (const key in event) {
|
|
716
|
+
if (!hasOwn(event, key))
|
|
717
|
+
continue;
|
|
711
718
|
if (key !== "__type") {
|
|
712
719
|
unionMember = key;
|
|
713
720
|
break;
|
|
714
721
|
}
|
|
715
722
|
}
|
|
716
723
|
const body = event[unionMember].body;
|
|
717
|
-
if (unionMember === "initial-response") {
|
|
724
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
718
725
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
719
726
|
delete dataObject[eventStreamMember];
|
|
720
727
|
return {
|
|
@@ -775,6 +782,8 @@ var EventStreamSerde = class {
|
|
|
775
782
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
776
783
|
}
|
|
777
784
|
for (const key in firstEvent.value) {
|
|
785
|
+
if (!hasOwn(firstEvent.value, key))
|
|
786
|
+
continue;
|
|
778
787
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
779
788
|
}
|
|
780
789
|
}
|
|
@@ -909,4 +918,4 @@ export {
|
|
|
909
918
|
resolveEventStreamSerdeConfig,
|
|
910
919
|
eventStreamSerdeProvider as universalEventStreamSerdeProvider
|
|
911
920
|
};
|
|
912
|
-
//# sourceMappingURL=event-streams-
|
|
921
|
+
//# sourceMappingURL=event-streams-UU2VASBU.js.map
|