@korso/shepherd-ui 0.4.0 → 0.5.0

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.
@@ -18,10 +18,9 @@ export declare interface ConfigPanelProps {
18
18
  onLeft?: () => void;
19
19
  }
20
20
 
21
- export declare function ConnectAgent({ workspaceId, hubUrl }: ConnectAgentProps): JSX_2.Element;
21
+ export declare function ConnectAgent({ hubUrl }: ConnectAgentProps): JSX_2.Element;
22
22
 
23
23
  export declare interface ConnectAgentProps {
24
- workspaceId: string;
25
24
  /**
26
25
  * The DIRECT Hub URL the agent connects to (public Cloud Run URL when hosted).
27
26
  * Defaults to the dashboard client's baseUrl, which is correct for self-host
@@ -469,6 +468,12 @@ export declare interface ShepherdClient {
469
468
  listTokens(workspaceId: string): Promise<ListTokensResponseT>;
470
469
  /** DELETE (revoke) a token by id. */
471
470
  revokeToken(workspaceId: string, tokenId: string): Promise<void>;
471
+ /** POST a new account-scoped agent token; the raw `shp_` value is returned exactly once. */
472
+ mintAccountToken(body: MintTokenRequestT): Promise<MintTokenResponseT>;
473
+ /** GET the caller's account-scoped token metadata (never the raw token). */
474
+ listAccountTokens(): Promise<ListTokensResponseT>;
475
+ /** DELETE (revoke) an account-scoped token by id. */
476
+ revokeAccountToken(id: string): Promise<void>;
472
477
  /** POST a new invite code for the workspace (admin only). */
473
478
  createInvite(workspaceId: string, body: CreateInviteRequestT): Promise<InviteResponseT>;
474
479
  /** POST a one-time-use invite emailed directly to an address (admin only). */