@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 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, _accessToken: string, startUrl: string, roleName: string): string;
14
+ getAccountURL(accountId: string, startUrl: string, roleName: string): string;
15
15
  }
@@ -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, token: string, roleName: string) => 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, _accessToken, startUrl, roleName) {
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, token, roleName) => {
20237
+ getAccountUrl: (session, accountId, _token, roleName) => {
20238
20238
  const client = new AWSClient(session.ssoRegion);
20239
- return client.getAccountURL(accountId, token, session.startUrl, roleName);
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
  });
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsesh/core",
3
- "version": "1.0.0-beta.202601300847",
3
+ "version": "1.0.0-beta.202605041018",
4
4
  "description": "AWS SSO session management SDK",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/types.d.ts CHANGED
@@ -63,6 +63,7 @@ export interface ActiveCredential {
63
63
  sessionName: string;
64
64
  expiration: string;
65
65
  isDefault: boolean;
66
+ region?: string;
66
67
  }
67
68
  export interface LastSetCredential {
68
69
  profileName: string;
@@ -0,0 +1 @@
1
+ export {};