@korso/shepherd-ui 0.4.0 → 0.5.1

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
@@ -246,16 +245,19 @@ declare const ListMembersResponse: z.ZodObject<{
246
245
  accountId: z.ZodString;
247
246
  displayName: z.ZodNullable<z.ZodString>;
248
247
  githubLogin: z.ZodNullable<z.ZodString>;
248
+ email: z.ZodNullable<z.ZodString>;
249
249
  avatarUrl: z.ZodNullable<z.ZodString>;
250
250
  role: z.ZodEnum<["admin", "member"]>;
251
251
  }, "strip", z.ZodTypeAny, {
252
252
  role: "admin" | "member";
253
+ email: string | null;
253
254
  accountId: string;
254
255
  displayName: string | null;
255
256
  githubLogin: string | null;
256
257
  avatarUrl: string | null;
257
258
  }, {
258
259
  role: "admin" | "member";
260
+ email: string | null;
259
261
  accountId: string;
260
262
  displayName: string | null;
261
263
  githubLogin: string | null;
@@ -264,6 +266,7 @@ declare const ListMembersResponse: z.ZodObject<{
264
266
  }, "strip", z.ZodTypeAny, {
265
267
  members: {
266
268
  role: "admin" | "member";
269
+ email: string | null;
267
270
  accountId: string;
268
271
  displayName: string | null;
269
272
  githubLogin: string | null;
@@ -272,6 +275,7 @@ declare const ListMembersResponse: z.ZodObject<{
272
275
  }, {
273
276
  members: {
274
277
  role: "admin" | "member";
278
+ email: string | null;
275
279
  accountId: string;
276
280
  displayName: string | null;
277
281
  githubLogin: string | null;
@@ -370,16 +374,19 @@ declare const MemberSummary: z.ZodObject<{
370
374
  accountId: z.ZodString;
371
375
  displayName: z.ZodNullable<z.ZodString>;
372
376
  githubLogin: z.ZodNullable<z.ZodString>;
377
+ email: z.ZodNullable<z.ZodString>;
373
378
  avatarUrl: z.ZodNullable<z.ZodString>;
374
379
  role: z.ZodEnum<["admin", "member"]>;
375
380
  }, "strip", z.ZodTypeAny, {
376
381
  role: "admin" | "member";
382
+ email: string | null;
377
383
  accountId: string;
378
384
  displayName: string | null;
379
385
  githubLogin: string | null;
380
386
  avatarUrl: string | null;
381
387
  }, {
382
388
  role: "admin" | "member";
389
+ email: string | null;
383
390
  accountId: string;
384
391
  displayName: string | null;
385
392
  githubLogin: string | null;
@@ -469,6 +476,12 @@ export declare interface ShepherdClient {
469
476
  listTokens(workspaceId: string): Promise<ListTokensResponseT>;
470
477
  /** DELETE (revoke) a token by id. */
471
478
  revokeToken(workspaceId: string, tokenId: string): Promise<void>;
479
+ /** POST a new account-scoped agent token; the raw `shp_` value is returned exactly once. */
480
+ mintAccountToken(body: MintTokenRequestT): Promise<MintTokenResponseT>;
481
+ /** GET the caller's account-scoped token metadata (never the raw token). */
482
+ listAccountTokens(): Promise<ListTokensResponseT>;
483
+ /** DELETE (revoke) an account-scoped token by id. */
484
+ revokeAccountToken(id: string): Promise<void>;
472
485
  /** POST a new invite code for the workspace (admin only). */
473
486
  createInvite(workspaceId: string, body: CreateInviteRequestT): Promise<InviteResponseT>;
474
487
  /** POST a one-time-use invite emailed directly to an address (admin only). */