@openbkn/bkn-sdk 0.1.1-alpha.2 → 0.1.1-alpha.4

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
@@ -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
@@ -19,7 +19,7 @@ import {
19
19
  toolboxes,
20
20
  trace,
21
21
  vega
22
- } from "./chunk-5MOIXIMJ.js";
22
+ } from "./chunk-APJNRHLS.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.2",
3
+ "version": "0.1.1-alpha.4",
4
4
  "description": "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@clack/prompts": "^0.9.1",
43
+ "@openbkn/bkn-sdk": "^0.1.1-alpha.3",
43
44
  "chalk": "^5.4.1",
44
45
  "commander": "^13.1.0",
45
46
  "csv-parse": "^6.2.1",