@vercel/board 0.34.0 → 0.35.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.
Files changed (54) hide show
  1. package/dist/{access-CdBcYPQH.mjs → access-BsP0hvcC.mjs} +1 -1
  2. package/dist/access.d.mts +2 -2
  3. package/dist/access.mjs +4 -4
  4. package/dist/{actors-MrIEr9LI.mjs → actors-DFOpTw89.mjs} +2 -2
  5. package/dist/{auth-aaoKt5DK.d.mts → auth-C21V0EK1.d.mts} +1 -1
  6. package/dist/{auth-DjoJygbG.mjs → auth-CrjXLgOb.mjs} +2 -2
  7. package/dist/{backend-u1sVvybh.d.mts → backend-D21q8mdm.d.mts} +3 -3
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-De0iDnUB.d.mts → chat-provider-DmZCmBkb.d.mts} +2 -2
  11. package/dist/cli-commands.d.mts +1 -1
  12. package/dist/cli-commands.mjs +1 -1
  13. package/dist/cli-embedded.d.mts +2 -2
  14. package/dist/cli-embedded.mjs +1 -1
  15. package/dist/cli.mjs +5 -5
  16. package/dist/{commands-BkVMdXP1.d.mts → commands-BorACIFS.d.mts} +173 -0
  17. package/dist/{commands-B8oZEByR.mjs → commands-CENWob9m.mjs} +322 -26
  18. package/dist/{conformance-gqYBkXFS.mjs → conformance-CKrwglzA.mjs} +480 -87
  19. package/dist/conformance.d.mts +20 -2
  20. package/dist/conformance.mjs +1 -1
  21. package/dist/{engine-rtOVWsiF.mjs → engine-wN7quvbU.mjs} +2 -2
  22. package/dist/{errors-D8ifv16L.mjs → errors-rYDxZEuN.mjs} +98 -4
  23. package/dist/exports-BxljH73E.d.mts +4 -0
  24. package/dist/{exports-Bx2dGpzr.mjs → exports-GIRJm2Ja.mjs} +87 -22
  25. package/dist/{index-D6mK0Ial.d.mts → index-LREsSZb2.d.mts} +2 -2
  26. package/dist/index.d.mts +6 -6
  27. package/dist/index.mjs +4 -4
  28. package/dist/index.node.d.mts +6 -6
  29. package/dist/index.node.mjs +3 -3
  30. package/dist/inspect/app.js +32 -32
  31. package/dist/{local-CPz22MQ8.mjs → local-yKwdgukb.mjs} +6 -6
  32. package/dist/{main-DScDKwQN.mjs → main-DjokcEAL.mjs} +406 -23
  33. package/dist/{middleware-BjYpk4yq.mjs → middleware-BxgizazV.mjs} +1 -1
  34. package/dist/{provider-hB8QNrwm.d.mts → provider-DEOfc4Ls.d.mts} +21 -3
  35. package/dist/{routes-De4W6lEs.d.mts → routes-BpKdMvgX.d.mts} +19 -8
  36. package/dist/{serve-B1noQRkn.mjs → serve-CJ8hauK2.mjs} +4 -4
  37. package/dist/{server-Ov6GBJ8j.mjs → server-CtaTtyhw.mjs} +6 -6
  38. package/dist/{serving-2s7lqSBS.mjs → serving-6_bhBNAW.mjs} +1 -1
  39. package/dist/sync-chat-sdk.d.mts +2 -2
  40. package/dist/sync-github.d.mts +2 -2
  41. package/dist/sync-linear.d.mts +3 -3
  42. package/dist/sync-slack.d.mts +3 -3
  43. package/dist/sync.d.mts +2 -2
  44. package/dist/{targets-aMdbp84G.mjs → targets-n2i2ZOWI.mjs} +9 -5
  45. package/dist/{tokens-LHLrnV_P.mjs → tokens-Dn4cPZIr.mjs} +2 -2
  46. package/docs/01-board/01-mounting.md +7 -2
  47. package/docs/01-board/09-access.md +31 -0
  48. package/docs/03-guides/03-ci.md +4 -2
  49. package/docs/04-reference/01-cli.md +98 -14
  50. package/docs/04-reference/02-board.md +23 -3
  51. package/docs/04-reference/03-http.md +1 -1
  52. package/docs/04-reference/05-conformance.md +31 -5
  53. package/package.json +1 -1
  54. package/dist/exports-uwRl5qIj.d.mts +0 -4
@@ -207,9 +207,182 @@ const options = {
207
207
  },
208
208
  can: {
209
209
  type: "string",
210
+ multiple: true,
210
211
  value: "scope",
211
212
  description: "what it may do (default: *=read,post,react,label)"
212
213
  },
214
+ user: {
215
+ type: "string",
216
+ multiple: true,
217
+ value: "email",
218
+ description: "a person on the team"
219
+ },
220
+ project: {
221
+ type: "string",
222
+ multiple: true,
223
+ value: "name|id",
224
+ description: "a project's deployments"
225
+ },
226
+ github: {
227
+ type: "string",
228
+ multiple: true,
229
+ value: "owner/repo",
230
+ description: "GitHub Actions' runs in a repository"
231
+ },
232
+ oidc: {
233
+ type: "string",
234
+ multiple: true,
235
+ value: "issuer",
236
+ description: "an issuer's tokens, by its URL"
237
+ },
238
+ "all-users": {
239
+ type: "boolean",
240
+ description: "every person on the team"
241
+ },
242
+ "all-projects": {
243
+ type: "boolean",
244
+ description: "every project's deployments on the team"
245
+ },
246
+ app: {
247
+ type: "string",
248
+ multiple: true,
249
+ value: "slug|id",
250
+ description: "an app installed on the team"
251
+ },
252
+ "all-apps": {
253
+ type: "boolean",
254
+ description: "every app installed on the team"
255
+ },
256
+ everyone: {
257
+ type: "boolean",
258
+ description: "everyone let in some other way, and no one new"
259
+ },
260
+ environment: {
261
+ type: "string",
262
+ multiple: true,
263
+ value: "envs",
264
+ description: "where its --project runs"
265
+ },
266
+ workflow: {
267
+ type: "string",
268
+ multiple: true,
269
+ value: "file",
270
+ description: "its --github's workflow, e.g. ci.yml"
271
+ },
272
+ branch: {
273
+ type: "string",
274
+ multiple: true,
275
+ value: "branch",
276
+ description: "its --github's branch"
277
+ },
278
+ event: {
279
+ type: "string",
280
+ multiple: true,
281
+ value: "event",
282
+ description: "its --github's event, e.g. push"
283
+ },
284
+ claim: {
285
+ type: "string",
286
+ multiple: true,
287
+ value: "k=v",
288
+ description: "a claim its --oidc's tokens carry"
289
+ },
290
+ "add-user": {
291
+ type: "string",
292
+ multiple: true,
293
+ value: "email",
294
+ description: "add a person"
295
+ },
296
+ "add-project": {
297
+ type: "string",
298
+ multiple: true,
299
+ value: "name|id",
300
+ description: "add a project's deployments"
301
+ },
302
+ "add-github": {
303
+ type: "string",
304
+ multiple: true,
305
+ value: "owner/repo",
306
+ description: "add a repository's runs"
307
+ },
308
+ "add-oidc": {
309
+ type: "string",
310
+ multiple: true,
311
+ value: "issuer",
312
+ description: "add an issuer's tokens"
313
+ },
314
+ "add-all-users": {
315
+ type: "boolean",
316
+ description: "add every person on the team"
317
+ },
318
+ "add-all-projects": {
319
+ type: "boolean",
320
+ description: "add every project on the team"
321
+ },
322
+ "add-app": {
323
+ type: "string",
324
+ multiple: true,
325
+ value: "slug|id",
326
+ description: "add an app"
327
+ },
328
+ "add-all-apps": {
329
+ type: "boolean",
330
+ description: "add every app on the team"
331
+ },
332
+ "add-everyone": {
333
+ type: "boolean",
334
+ description: "add everyone something else lets in"
335
+ },
336
+ "remove-user": {
337
+ type: "string",
338
+ multiple: true,
339
+ value: "email",
340
+ description: "remove a person"
341
+ },
342
+ "remove-project": {
343
+ type: "string",
344
+ multiple: true,
345
+ value: "name|id",
346
+ description: "remove a project, whatever its environments"
347
+ },
348
+ "remove-github": {
349
+ type: "string",
350
+ multiple: true,
351
+ value: "owner/repo",
352
+ description: "remove a repository's runs"
353
+ },
354
+ "remove-oidc": {
355
+ type: "string",
356
+ multiple: true,
357
+ value: "issuer",
358
+ description: "remove an issuer's tokens"
359
+ },
360
+ "remove-all-users": {
361
+ type: "boolean",
362
+ description: "remove every person on the team"
363
+ },
364
+ "remove-all-projects": {
365
+ type: "boolean",
366
+ description: "remove every project on the team"
367
+ },
368
+ "remove-app": {
369
+ type: "string",
370
+ multiple: true,
371
+ value: "slug|id",
372
+ description: "remove an app"
373
+ },
374
+ "remove-all-apps": {
375
+ type: "boolean",
376
+ description: "remove every app on the team"
377
+ },
378
+ "remove-everyone": {
379
+ type: "boolean",
380
+ description: "remove everyone"
381
+ },
382
+ private: {
383
+ type: "boolean",
384
+ description: "closed to everyone but you, in the same write"
385
+ },
213
386
  profile: {
214
387
  type: "string",
215
388
  value: "name",
@@ -375,7 +548,7 @@ const commands = [
375
548
  {
376
549
  group: "the board",
377
550
  name: "grants",
378
- description: "who may do what where: people, projects, and workflows, and what each grant lets them do",
551
+ description: "who may do what where, grant by grant",
379
552
  arguments: [],
380
553
  options: [],
381
554
  runsWithoutSubcommand: true,
@@ -383,30 +556,150 @@ const commands = [
383
556
  name: "list the grants",
384
557
  value: "grants"
385
558
  }],
386
- subcommands: [{
387
- name: "list",
388
- default: true,
389
- description: "the board's grants",
390
- arguments: [],
391
- options: [],
392
- examples: [{
393
- name: "list the grants",
394
- value: "grants list"
395
- }]
396
- }, {
397
- name: "revoke",
398
- description: "stop letting them in",
399
- arguments: [{
400
- name: "grant",
401
- required: true,
402
- description: "its ID, as grants shows it (g3)"
403
- }],
404
- options: [],
405
- examples: [{
406
- name: "revoke a grant",
407
- value: "grants revoke g3"
408
- }]
409
- }]
559
+ subcommands: [
560
+ {
561
+ name: "list",
562
+ default: true,
563
+ description: "the board's grants",
564
+ arguments: [],
565
+ options: [],
566
+ examples: [{
567
+ name: "list the grants",
568
+ value: "grants list"
569
+ }]
570
+ },
571
+ {
572
+ name: "create",
573
+ description: "let principals do what --can says, where it says",
574
+ arguments: [],
575
+ options: [
576
+ ...[
577
+ "user",
578
+ "project",
579
+ "github",
580
+ "oidc",
581
+ "app",
582
+ "all-users",
583
+ "all-projects",
584
+ "all-apps",
585
+ "everyone"
586
+ ].map((name) => option(name)),
587
+ option("environment", "where its --project runs (default: production)"),
588
+ ...[
589
+ "workflow",
590
+ "branch",
591
+ "event",
592
+ "claim"
593
+ ].map((name) => option(name)),
594
+ option("can", "what they may do, repeated: perms, all, or none", "pattern=perms")
595
+ ],
596
+ examples: [
597
+ {
598
+ name: "close security/ to everyone",
599
+ value: "grants create --everyone --can 'security/=none'"
600
+ },
601
+ {
602
+ name: "and let two people in",
603
+ value: "grants create --user alice@acme.com --user bob@acme.com --can 'security/=all'"
604
+ },
605
+ {
606
+ name: "a project's production and previews",
607
+ value: "grants create --project sec --environment production,preview --can 'security/=read,post'"
608
+ },
609
+ {
610
+ name: "two repositories' workflows",
611
+ value: "grants create --github acme/web --workflow ci.yml --branch main --github acme/api --workflow deploy.yml --can 'ci/=post'"
612
+ },
613
+ {
614
+ name: "another issuer's tokens",
615
+ value: "grants create --oidc https://gitlab.com --claim project_id=42 --can 'ci/=post'"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ name: "update",
621
+ description: "add or remove principals, or replace its --can",
622
+ arguments: [{
623
+ name: "grant",
624
+ required: true,
625
+ description: "its ID, as grants shows it (g3)"
626
+ }],
627
+ options: [...[
628
+ "add-user",
629
+ "add-project",
630
+ "add-github",
631
+ "add-oidc",
632
+ "add-app",
633
+ "add-all-users",
634
+ "add-all-projects",
635
+ "add-all-apps",
636
+ "add-everyone",
637
+ "remove-user",
638
+ "remove-project",
639
+ "remove-github",
640
+ "remove-oidc",
641
+ "remove-app",
642
+ "remove-all-users",
643
+ "remove-all-projects",
644
+ "remove-all-apps",
645
+ "remove-everyone",
646
+ "environment",
647
+ "workflow",
648
+ "branch",
649
+ "event",
650
+ "claim"
651
+ ].map((name) => option(name)), option("can", "replaces what it lets them do", "pattern=perms")],
652
+ examples: [{
653
+ name: "let another person in",
654
+ value: "grants update g4 --add-user carol@acme.com"
655
+ }, {
656
+ name: "drop a project, and narrow it",
657
+ value: "grants update g5 --remove-project sec --can 'security/=read'"
658
+ }]
659
+ },
660
+ {
661
+ name: "explain",
662
+ description: "which grant decides a channel, for you or anyone",
663
+ arguments: [{
664
+ name: "channel",
665
+ required: true,
666
+ description: "a channel, such as security/incidents"
667
+ }],
668
+ options: [...[
669
+ "user",
670
+ "project",
671
+ "github",
672
+ "oidc",
673
+ "app",
674
+ "environment",
675
+ "workflow",
676
+ "branch",
677
+ "event",
678
+ "claim"
679
+ ].map((name) => option(name))],
680
+ examples: [{
681
+ name: "what you may do in a channel",
682
+ value: "grants explain security/incidents"
683
+ }, {
684
+ name: "what someone else may",
685
+ value: "grants explain --user bob@acme.com security/incidents"
686
+ }]
687
+ },
688
+ {
689
+ name: "revoke",
690
+ description: "stop letting them in",
691
+ arguments: [{
692
+ name: "grant",
693
+ required: true,
694
+ description: "its ID, as grants shows it (g3)"
695
+ }],
696
+ options: [],
697
+ examples: [{
698
+ name: "revoke a grant",
699
+ value: "grants revoke g3"
700
+ }]
701
+ }
702
+ ]
410
703
  },
411
704
  {
412
705
  group: "the board",
@@ -437,10 +730,13 @@ const commands = [
437
730
  required: true,
438
731
  description: "its path, such as dev/alerts"
439
732
  }],
440
- options: [],
733
+ options: [option("private")],
441
734
  examples: [{
442
735
  name: "make a channel for alerts",
443
736
  value: "channels create dev/alerts"
737
+ }, {
738
+ name: "one only you can see, until you grant others",
739
+ value: "channels create security --private"
444
740
  }]
445
741
  }]
446
742
  },