@openbkn/bkn-sdk 0.1.1-alpha.4 → 0.1.1-alpha.6
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-APJNRHLS.js → chunk-GAYXY7LP.js} +17 -4
- package/dist/chunk-GAYXY7LP.js.map +1 -0
- package/dist/cli.js +29 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-APJNRHLS.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -974,7 +974,15 @@ interface AuthStatus {
|
|
|
974
974
|
}
|
|
975
975
|
declare function status(): AuthStatus;
|
|
976
976
|
declare function currentToken(): string;
|
|
977
|
-
|
|
977
|
+
interface WhoamiResult extends JwtClaims {
|
|
978
|
+
/** Platform the active session belongs to. */
|
|
979
|
+
baseUrl?: string;
|
|
980
|
+
/** Stored user id (UUID) for the active session. */
|
|
981
|
+
userId?: string;
|
|
982
|
+
/** Resolved account/login name — what `auth login` looked up and stored. */
|
|
983
|
+
username?: string;
|
|
984
|
+
}
|
|
985
|
+
declare function whoami(): WhoamiResult;
|
|
978
986
|
interface PlatformListItem {
|
|
979
987
|
baseUrl: string;
|
|
980
988
|
userId: string;
|
|
@@ -1008,6 +1016,7 @@ declare function exportCreds(): {
|
|
|
1008
1016
|
|
|
1009
1017
|
type auth_AuthStatus = AuthStatus;
|
|
1010
1018
|
type auth_PlatformListItem = PlatformListItem;
|
|
1019
|
+
type auth_WhoamiResult = WhoamiResult;
|
|
1011
1020
|
declare const auth_attachNoAuth: typeof attachNoAuth;
|
|
1012
1021
|
declare const auth_attachToken: typeof attachToken;
|
|
1013
1022
|
declare const auth_currentToken: typeof currentToken;
|
|
@@ -1023,7 +1032,7 @@ declare const auth_userIdFromToken: typeof userIdFromToken;
|
|
|
1023
1032
|
declare const auth_usersOf: typeof usersOf;
|
|
1024
1033
|
declare const auth_whoami: typeof whoami;
|
|
1025
1034
|
declare namespace auth {
|
|
1026
|
-
export { type auth_AuthStatus as AuthStatus, type auth_PlatformListItem as PlatformListItem, auth_attachNoAuth as attachNoAuth, auth_attachToken as attachToken, auth_currentToken as currentToken, auth_deletePlatform as deletePlatform, auth_exportCreds as exportCreds, auth_hostOf as hostOf, auth_listPlatforms as listPlatforms, auth_logout as logout, auth_status as status, auth_switchUser as switchUser, auth_use as use, auth_userIdFromToken as userIdFromToken, auth_usersOf as usersOf, auth_whoami as whoami };
|
|
1035
|
+
export { type auth_AuthStatus as AuthStatus, type auth_PlatformListItem as PlatformListItem, type auth_WhoamiResult as WhoamiResult, auth_attachNoAuth as attachNoAuth, auth_attachToken as attachToken, auth_currentToken as currentToken, auth_deletePlatform as deletePlatform, auth_exportCreds as exportCreds, auth_hostOf as hostOf, auth_listPlatforms as listPlatforms, auth_logout as logout, auth_status as status, auth_switchUser as switchUser, auth_use as use, auth_userIdFromToken as userIdFromToken, auth_usersOf as usersOf, auth_whoami as whoami };
|
|
1027
1036
|
}
|
|
1028
1037
|
|
|
1029
1038
|
interface RequestInitEx {
|
package/dist/index.js
CHANGED