@awsesh/core 1.0.0-beta.202601300847 → 1.0.0-beta.202605041018
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/client.d.ts +1 -1
- package/client.test.d.ts +1 -0
- package/credentials.test.d.ts +1 -0
- package/index.d.ts +1 -1
- package/index.js +5 -4
- package/index.test.d.ts +1 -0
- package/package.json +1 -1
- package/sessions.test.d.ts +1 -0
- package/storage.test.d.ts +1 -0
- package/types.d.ts +1 -0
- package/workflow.test.d.ts +1 -0
package/client.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export declare class AWSClient {
|
|
|
11
11
|
getRoleCredentials(accessToken: string, accountId: string, roleName: string): Promise<RoleCredentials>;
|
|
12
12
|
getRegion(): string;
|
|
13
13
|
getDashboardURL(startUrl: string): string;
|
|
14
|
-
getAccountURL(accountId: string,
|
|
14
|
+
getAccountURL(accountId: string, startUrl: string, roleName: string): string;
|
|
15
15
|
}
|
package/client.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function createAwsesh(options: AwseshOptions): {
|
|
|
20
20
|
listRoles: (session: SSOSession, token: string, accountId: string) => Promise<string[]>;
|
|
21
21
|
getCredentials: (session: SSOSession, token: string, accountId: string, roleName: string) => Promise<RoleCredentials>;
|
|
22
22
|
getDashboardUrl: (session: SSOSession) => string;
|
|
23
|
-
getAccountUrl: (session: SSOSession, accountId: string,
|
|
23
|
+
getAccountUrl: (session: SSOSession, accountId: string, _token: string, roleName: string) => string;
|
|
24
24
|
};
|
|
25
25
|
tokens: {
|
|
26
26
|
get: (startUrl: string) => Promise<TokenCache | undefined>;
|
package/index.js
CHANGED
|
@@ -19963,7 +19963,7 @@ class AWSClient {
|
|
|
19963
19963
|
const portalUrl = startUrl.replace(/\/start\/?$/, "");
|
|
19964
19964
|
return `${portalUrl}/start/#/?tab=accounts`;
|
|
19965
19965
|
}
|
|
19966
|
-
getAccountURL(accountId,
|
|
19966
|
+
getAccountURL(accountId, startUrl, roleName) {
|
|
19967
19967
|
const portalUrl = startUrl.replace(/\/start\/?$/, "");
|
|
19968
19968
|
return `${portalUrl}/start/#/console?account_id=${accountId}&role_name=${roleName}`;
|
|
19969
19969
|
}
|
|
@@ -20234,9 +20234,9 @@ function createAwsesh(options) {
|
|
|
20234
20234
|
const client = new AWSClient(session.ssoRegion);
|
|
20235
20235
|
return client.getDashboardURL(session.startUrl);
|
|
20236
20236
|
},
|
|
20237
|
-
getAccountUrl: (session, accountId,
|
|
20237
|
+
getAccountUrl: (session, accountId, _token, roleName) => {
|
|
20238
20238
|
const client = new AWSClient(session.ssoRegion);
|
|
20239
|
-
return client.getAccountURL(accountId,
|
|
20239
|
+
return client.getAccountURL(accountId, session.startUrl, roleName);
|
|
20240
20240
|
}
|
|
20241
20241
|
},
|
|
20242
20242
|
tokens: {
|
|
@@ -20493,7 +20493,8 @@ function createAwsesh(options) {
|
|
|
20493
20493
|
roleName,
|
|
20494
20494
|
sessionName,
|
|
20495
20495
|
expiration: credentials.expiration.toISOString(),
|
|
20496
|
-
isDefault
|
|
20496
|
+
isDefault,
|
|
20497
|
+
region
|
|
20497
20498
|
}
|
|
20498
20499
|
];
|
|
20499
20500
|
});
|
package/index.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|