@openbkn/bkn-sdk 0.1.1-alpha.2 → 0.1.1-alpha.3
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-5MOIXIMJ.js → chunk-APJNRHLS.js} +27 -5
- package/dist/chunk-APJNRHLS.js.map +1 -0
- package/dist/cli.js +54 -27
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5MOIXIMJ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -925,6 +925,8 @@ interface TokenConfig {
|
|
|
925
925
|
expiresAt?: string;
|
|
926
926
|
/** Skip TLS verification for this platform (saved by `auth login -k`). */
|
|
927
927
|
tlsInsecure?: boolean;
|
|
928
|
+
/** Platform has no auth stack (no bkn-safe) — requests carry no token. */
|
|
929
|
+
noAuth?: boolean;
|
|
928
930
|
/** Login name persisted at login time (fallback when JWT lacks claims). */
|
|
929
931
|
username?: string;
|
|
930
932
|
/** Human-readable name from userinfo. */
|
|
@@ -956,6 +958,13 @@ declare function attachToken(baseUrl: string, accessToken: string, opts?: {
|
|
|
956
958
|
userId: string;
|
|
957
959
|
username?: string;
|
|
958
960
|
};
|
|
961
|
+
/** Register a no-auth platform session (no token; the platform has no bkn-safe). */
|
|
962
|
+
declare function attachNoAuth(baseUrl: string, opts?: {
|
|
963
|
+
insecure?: boolean;
|
|
964
|
+
}): {
|
|
965
|
+
baseUrl: string;
|
|
966
|
+
noAuth: true;
|
|
967
|
+
};
|
|
959
968
|
interface AuthStatus {
|
|
960
969
|
baseUrl?: string;
|
|
961
970
|
userId?: string;
|
|
@@ -999,6 +1008,7 @@ declare function exportCreds(): {
|
|
|
999
1008
|
|
|
1000
1009
|
type auth_AuthStatus = AuthStatus;
|
|
1001
1010
|
type auth_PlatformListItem = PlatformListItem;
|
|
1011
|
+
declare const auth_attachNoAuth: typeof attachNoAuth;
|
|
1002
1012
|
declare const auth_attachToken: typeof attachToken;
|
|
1003
1013
|
declare const auth_currentToken: typeof currentToken;
|
|
1004
1014
|
declare const auth_deletePlatform: typeof deletePlatform;
|
|
@@ -1013,7 +1023,7 @@ declare const auth_userIdFromToken: typeof userIdFromToken;
|
|
|
1013
1023
|
declare const auth_usersOf: typeof usersOf;
|
|
1014
1024
|
declare const auth_whoami: typeof whoami;
|
|
1015
1025
|
declare namespace auth {
|
|
1016
|
-
export { type auth_AuthStatus as AuthStatus, type auth_PlatformListItem as PlatformListItem, 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 };
|
|
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 };
|
|
1017
1027
|
}
|
|
1018
1028
|
|
|
1019
1029
|
interface RequestInitEx {
|
package/dist/index.js
CHANGED