@openbkn/bkn-sdk 0.1.1-alpha.5 → 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/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
- declare function whoami(): JwtClaims;
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
@@ -19,7 +19,7 @@ import {
19
19
  toolboxes,
20
20
  trace,
21
21
  vega
22
- } from "./chunk-67GKXAWG.js";
22
+ } from "./chunk-GAYXY7LP.js";
23
23
  export {
24
24
  DEFAULT_BUSINESS_DOMAIN,
25
25
  DEFAULT_LIST_LIMIT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbkn/bkn-sdk",
3
- "version": "0.1.1-alpha.5",
3
+ "version": "0.1.1-alpha.6",
4
4
  "description": "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",