@vercel/board 0.45.1 → 0.46.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.
- package/dist/{access-3udXjJAg.mjs → access-Crbvd2Dm.mjs} +2 -2
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +5 -5
- package/dist/{actors-DasGZnfb.mjs → actors-BBphaJ_G.mjs} +3 -3
- package/dist/{auth-aiOVE82-.mjs → auth-C-pFnJBA.mjs} +2 -2
- package/dist/{auth-BG_whr9_.d.mts → auth-CkNXnQno.d.mts} +1 -1
- package/dist/{backend-D6yTo8Un.d.mts → backend-D3p8gjba.d.mts} +126 -4
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-BvNqOQFL.mjs → chat-provider-1zpY6Qo_.mjs} +2 -2
- package/dist/{chat-provider-V2jnjVLq.d.mts → chat-provider-Bn33acHd.d.mts} +2 -2
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +3 -2
- package/dist/cli.mjs +6 -6
- package/dist/{commands-DewS14_P.d.mts → commands-CSZPQ38I.d.mts} +54 -0
- package/dist/{commands-CqdnjUkm.mjs → commands-D0lyo8O8.mjs} +319 -0
- package/dist/{conformance-BInS4_6b.mjs → conformance-Blzd4CXG.mjs} +972 -6
- package/dist/conformance.d.mts +6 -5
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-XVBt02Bl.mjs → engine-C_SlBihU.mjs} +15 -7
- package/dist/{errors-ZazTZh-s.mjs → errors-DZ1tbwSM.mjs} +151 -3
- package/dist/{events-D17RndlV.mjs → events-mGuhF4i5.mjs} +2 -2
- package/dist/{exports-DCxecX15.mjs → exports-DQauuHrc.mjs} +1226 -42
- package/dist/exports-DUX_Yzo7.d.mts +44 -0
- package/dist/{external-DfhN7lKK.mjs → external-BVr1Sq0y.mjs} +1 -1
- package/dist/{index-Djmr4GzQ.d.mts → index-BHXg4Xdo.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +5 -5
- package/dist/index.node.d.mts +7 -6
- package/dist/index.node.mjs +5 -4
- package/dist/inspect/app.js +215 -115
- package/dist/inspect/engine.js +5 -5
- package/dist/{inspect-CHsgnf_5.mjs → inspect-2OIjv2lW.mjs} +242 -20
- package/dist/inspect-F-b4GPXX.mjs +2 -0
- package/dist/{local-DE9vmanM.mjs → local-11FMUJrU.mjs} +1593 -60
- package/dist/{main-CF1Me3jg.mjs → main-BYmbTDgo.mjs} +1167 -24
- package/dist/{memory-DyEL0fvN.mjs → memory-CZBdVNn8.mjs} +2 -2
- package/dist/{middleware-BHHKHA9q.mjs → middleware-BKsTcMAv.mjs} +2 -2
- package/dist/{provider-BC9mPYVh.d.mts → provider-D3bfHRHA.d.mts} +119 -3
- package/dist/{routes-CkUetTO2.mjs → routes-B2HHHD_C.mjs} +246 -6
- package/dist/{routes-zm4TXKCC.d.mts → routes-NEc6w3QC.d.mts} +540 -6
- package/dist/{schemas-BhZaystC.mjs → schemas-7VFdomFB.mjs} +34 -1
- package/dist/{serve-CEMvl0EH.mjs → serve-DS2T2iWI.mjs} +4 -4
- package/dist/{server-Bmz0zqYM.mjs → server-Ch3tuK2k.mjs} +10 -10
- package/dist/{serving-BLVRrJ7P.mjs → serving-9riPNrHk.mjs} +1 -1
- package/dist/{sql-CyVcjw8x.mjs → sql-Bml29DpM.mjs} +174 -9
- package/dist/{sqlite-Con-8duk.mjs → sqlite-4C5u7-ag.mjs} +2 -2
- package/dist/{sqlite-db-BdzxtUOV.mjs → sqlite-db-eVb9v3zc.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{origin-BbwhnKrg.mjs → task-batch-BJcLiYe1.mjs} +83 -8
- package/dist/{tokens-BErYXuHZ.mjs → tokens-DPKF_cb5.mjs} +2 -2
- package/docs/01-board/01-mounting.md +1 -1
- package/docs/01-board/08-middleware.md +7 -0
- package/docs/01-board/11-tasks.md +348 -0
- package/docs/03-guides/02-inspector.md +66 -9
- package/docs/03-guides/06-sandboxed-agents.md +5 -3
- package/docs/03-guides/07-build-a-ui.md +210 -0
- package/docs/04-reference/01-cli.md +216 -8
- package/docs/04-reference/02-board.md +277 -2
- package/docs/04-reference/03-http.md +184 -10
- package/docs/04-reference/05-conformance.md +10 -7
- package/package.json +1 -1
- package/dist/exports-Gspe1eEq.d.mts +0 -4
- package/dist/inspect-C8U3A4jQ.mjs +0 -2
|
@@ -241,6 +241,7 @@ declare const boardEvents: {
|
|
|
241
241
|
n: z.ZodNumber;
|
|
242
242
|
}, z.core.$strip>>;
|
|
243
243
|
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
244
|
+
along: z.ZodOptional<z.ZodNumber>;
|
|
244
245
|
importedBy: z.ZodOptional<z.ZodString>;
|
|
245
246
|
}, z.core.$strip>;
|
|
246
247
|
/**
|
|
@@ -382,6 +383,156 @@ declare const boardEvents: {
|
|
|
382
383
|
target: z.ZodString;
|
|
383
384
|
error: z.ZodString;
|
|
384
385
|
}, z.core.$strip>;
|
|
386
|
+
/**
|
|
387
|
+
* The thread rooted at `id` is a task, and `by.principal` owns it. It waits while it has `needs`,
|
|
388
|
+
* until `task.ready` says they've all completed; with none, it's ready.
|
|
389
|
+
*/
|
|
390
|
+
'task.created': z.ZodObject<{
|
|
391
|
+
id: z.ZodNumber;
|
|
392
|
+
thread: z.ZodString;
|
|
393
|
+
needs: z.ZodArray<z.ZodNumber>;
|
|
394
|
+
for: z.ZodNullable<z.ZodString>;
|
|
395
|
+
by: z.ZodObject<{
|
|
396
|
+
actor: z.ZodString;
|
|
397
|
+
principal: z.ZodString;
|
|
398
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
/** Only actor `for` claims it now, or with null, anyone who may. */
|
|
402
|
+
'task.assigned': z.ZodObject<{
|
|
403
|
+
id: z.ZodNumber;
|
|
404
|
+
thread: z.ZodString;
|
|
405
|
+
for: z.ZodNullable<z.ZodString>;
|
|
406
|
+
by: z.ZodObject<{
|
|
407
|
+
actor: z.ZodString;
|
|
408
|
+
principal: z.ZodString;
|
|
409
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
/**
|
|
413
|
+
* It waits for `needs` now, in place of what it waited for. As from `task.created`, it waits
|
|
414
|
+
* while it has any, until `task.ready` says they've all completed, and with none it's ready. One
|
|
415
|
+
* that's held stays held.
|
|
416
|
+
*/
|
|
417
|
+
'task.needs_changed': z.ZodObject<{
|
|
418
|
+
id: z.ZodNumber;
|
|
419
|
+
thread: z.ZodString;
|
|
420
|
+
needs: z.ZodArray<z.ZodNumber>;
|
|
421
|
+
by: z.ZodObject<{
|
|
422
|
+
actor: z.ZodString;
|
|
423
|
+
principal: z.ZodString;
|
|
424
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
/** (server) Every task it needs has completed. */
|
|
428
|
+
'task.ready': z.ZodObject<{
|
|
429
|
+
id: z.ZodNumber;
|
|
430
|
+
thread: z.ZodString;
|
|
431
|
+
}, z.core.$strip>;
|
|
432
|
+
/** (server) `by` holds it until `until`. `token` is the SHA-256 of the claim's secret, hex: no view shows it. */
|
|
433
|
+
'task.claimed': z.ZodObject<{
|
|
434
|
+
id: z.ZodNumber;
|
|
435
|
+
thread: z.ZodString;
|
|
436
|
+
epoch: z.ZodNumber;
|
|
437
|
+
until: z.ZodString;
|
|
438
|
+
token: z.ZodString;
|
|
439
|
+
by: z.ZodObject<{
|
|
440
|
+
actor: z.ZodString;
|
|
441
|
+
principal: z.ZodString;
|
|
442
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
443
|
+
}, z.core.$strip>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
'task.renewed': z.ZodObject<{
|
|
446
|
+
id: z.ZodNumber;
|
|
447
|
+
thread: z.ZodString;
|
|
448
|
+
epoch: z.ZodNumber;
|
|
449
|
+
until: z.ZodString;
|
|
450
|
+
by: z.ZodObject<{
|
|
451
|
+
actor: z.ZodString;
|
|
452
|
+
principal: z.ZodString;
|
|
453
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
454
|
+
}, z.core.$strip>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
'task.released': z.ZodObject<{
|
|
457
|
+
id: z.ZodNumber;
|
|
458
|
+
thread: z.ZodString;
|
|
459
|
+
epoch: z.ZodNumber;
|
|
460
|
+
by: z.ZodObject<{
|
|
461
|
+
actor: z.ZodString;
|
|
462
|
+
principal: z.ZodString;
|
|
463
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
}, z.core.$strip>;
|
|
466
|
+
/** (server) Its lease ran out. */
|
|
467
|
+
'task.expired': z.ZodObject<{
|
|
468
|
+
id: z.ZodNumber;
|
|
469
|
+
thread: z.ZodString;
|
|
470
|
+
epoch: z.ZodNumber;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
'task.completed': z.ZodObject<{
|
|
473
|
+
id: z.ZodNumber;
|
|
474
|
+
thread: z.ZodString;
|
|
475
|
+
epoch: z.ZodNumber;
|
|
476
|
+
result: z.ZodNullable<z.ZodString>;
|
|
477
|
+
by: z.ZodObject<{
|
|
478
|
+
actor: z.ZodString;
|
|
479
|
+
principal: z.ZodString;
|
|
480
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
'task.failed': z.ZodObject<{
|
|
484
|
+
id: z.ZodNumber;
|
|
485
|
+
thread: z.ZodString;
|
|
486
|
+
epoch: z.ZodNumber;
|
|
487
|
+
reason: z.ZodString;
|
|
488
|
+
by: z.ZodObject<{
|
|
489
|
+
actor: z.ZodString;
|
|
490
|
+
principal: z.ZodString;
|
|
491
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
/** Held for a person, which ends any claim. Kind `edited` is the board's: `by` edited its root, and isn't its owner. */
|
|
495
|
+
'task.blocked': z.ZodObject<{
|
|
496
|
+
id: z.ZodNumber;
|
|
497
|
+
thread: z.ZodString;
|
|
498
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
499
|
+
reason: z.ZodString;
|
|
500
|
+
by: z.ZodObject<{
|
|
501
|
+
actor: z.ZodString;
|
|
502
|
+
principal: z.ZodString;
|
|
503
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
}, z.core.$strip>;
|
|
506
|
+
'task.unblocked': z.ZodObject<{
|
|
507
|
+
id: z.ZodNumber;
|
|
508
|
+
thread: z.ZodString;
|
|
509
|
+
by: z.ZodObject<{
|
|
510
|
+
actor: z.ZodString;
|
|
511
|
+
principal: z.ZodString;
|
|
512
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
/** Reason `deleted` when its root was. */
|
|
516
|
+
'task.canceled': z.ZodObject<{
|
|
517
|
+
id: z.ZodNumber;
|
|
518
|
+
thread: z.ZodString;
|
|
519
|
+
reason: z.ZodString;
|
|
520
|
+
by: z.ZodObject<{
|
|
521
|
+
actor: z.ZodString;
|
|
522
|
+
principal: z.ZodString;
|
|
523
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
/** A failed task is ready again. */
|
|
527
|
+
'task.reopened': z.ZodObject<{
|
|
528
|
+
id: z.ZodNumber;
|
|
529
|
+
thread: z.ZodString;
|
|
530
|
+
by: z.ZodObject<{
|
|
531
|
+
actor: z.ZodString;
|
|
532
|
+
principal: z.ZodString;
|
|
533
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
534
|
+
}, z.core.$strip>;
|
|
535
|
+
}, z.core.$strip>;
|
|
385
536
|
'actor.seen': z.ZodObject<{
|
|
386
537
|
actor: z.ZodString;
|
|
387
538
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -438,6 +589,17 @@ declare const Attachment: z.ZodObject<{
|
|
|
438
589
|
type: z.ZodString;
|
|
439
590
|
size: z.ZodNumber;
|
|
440
591
|
}, z.core.$strip>;
|
|
592
|
+
/** What a task is doing: its root's `board.task` label. */
|
|
593
|
+
declare const TaskState: z.ZodEnum<{
|
|
594
|
+
blocked: "blocked";
|
|
595
|
+
canceled: "canceled";
|
|
596
|
+
claimed: "claimed";
|
|
597
|
+
completed: "completed";
|
|
598
|
+
failed: "failed";
|
|
599
|
+
ready: "ready";
|
|
600
|
+
waiting: "waiting";
|
|
601
|
+
}>;
|
|
602
|
+
type TaskState = z.infer<typeof TaskState>;
|
|
441
603
|
type Labels = z.infer<typeof Labels>;
|
|
442
604
|
type ActorKind = z.infer<typeof ActorKind>;
|
|
443
605
|
type Author = z.infer<typeof Author>;
|
|
@@ -451,6 +613,37 @@ type Via = {
|
|
|
451
613
|
};
|
|
452
614
|
//#endregion
|
|
453
615
|
//#region src/contract/folds.d.ts
|
|
616
|
+
/**
|
|
617
|
+
* A task as the board keeps it on its root: the state the root's `board.task` label wears, and what
|
|
618
|
+
* goes with it. Views show all of it but a claim's `token`.
|
|
619
|
+
*/
|
|
620
|
+
type Task = {
|
|
621
|
+
state: TaskState;
|
|
622
|
+
/** The principal that made the thread a task. */
|
|
623
|
+
owner: string;
|
|
624
|
+
/** The actor it did that as: itself, or one of its profiles, which is held to the tasks it made. */
|
|
625
|
+
by: string;
|
|
626
|
+
/** The one actor that claims it, or null when anyone who may does. */
|
|
627
|
+
for: string | null;
|
|
628
|
+
/** The tasks it waits for, by their roots' IDs. */
|
|
629
|
+
needs: number[];
|
|
630
|
+
/** How many times it's been claimed: a claim's writes carry the epoch it was made at. */
|
|
631
|
+
epoch: number;
|
|
632
|
+
/** Who holds it, until when. `token` is the SHA-256 of the claim's secret, hex. */
|
|
633
|
+
claim: {
|
|
634
|
+
actor: string;
|
|
635
|
+
until: string;
|
|
636
|
+
token: string;
|
|
637
|
+
} | null;
|
|
638
|
+
blocked: {
|
|
639
|
+
kind: string | null;
|
|
640
|
+
reason: string;
|
|
641
|
+
} | null;
|
|
642
|
+
/** What it came to, once it's completed. */
|
|
643
|
+
result: string | null;
|
|
644
|
+
/** Why it failed or was canceled. */
|
|
645
|
+
reason: string | null;
|
|
646
|
+
};
|
|
454
647
|
type Message = {
|
|
455
648
|
id: number;
|
|
456
649
|
channel: string;
|
|
@@ -480,6 +673,8 @@ type Message = {
|
|
|
480
673
|
id: number;
|
|
481
674
|
n: number;
|
|
482
675
|
};
|
|
676
|
+
/** Set on a root that's a task. Its `state` is the root's `board.task` label too, while the root isn't deleted. */
|
|
677
|
+
task?: Task;
|
|
483
678
|
/**
|
|
484
679
|
* Set when its author couldn't read its channel, as `authorizeOwn` checks: where they can't read,
|
|
485
680
|
* it's theirs to edit and delete only then. Its event's payload says so too.
|
|
@@ -697,7 +892,10 @@ declare const MessagesQuery: z.ZodObject<{
|
|
|
697
892
|
before: z.ZodOptional<z.ZodString>;
|
|
698
893
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
699
894
|
}, z.core.$strip>;
|
|
700
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* `limit` counts threads: each thread with a matching message, by its latest reply. `before` is a page's
|
|
897
|
+
* `older`, for the threads last active before it; it pages backward, so it takes no `after`.
|
|
898
|
+
*/
|
|
701
899
|
declare const ThreadsQuery: z.ZodObject<{
|
|
702
900
|
channel: z.ZodOptional<z.ZodString>;
|
|
703
901
|
re: z.ZodOptional<z.ZodString>;
|
|
@@ -707,6 +905,7 @@ declare const ThreadsQuery: z.ZodObject<{
|
|
|
707
905
|
from: z.ZodOptional<z.ZodString>;
|
|
708
906
|
text: z.ZodOptional<z.ZodString>;
|
|
709
907
|
after: z.ZodOptional<z.ZodString>;
|
|
908
|
+
before: z.ZodOptional<z.ZodString>;
|
|
710
909
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
711
910
|
}, z.core.$strip>;
|
|
712
911
|
declare const EventsQuery: z.ZodObject<{
|
|
@@ -774,6 +973,132 @@ declare const SchedulesQuery: z.ZodObject<{
|
|
|
774
973
|
true: "true";
|
|
775
974
|
}>, z.ZodTransform<boolean, "0" | "1" | "false" | "true">>>;
|
|
776
975
|
}, z.core.$strip>;
|
|
976
|
+
/** What a claim gets when it asks for no lease, in seconds. */
|
|
977
|
+
declare const LEASE_DEFAULT_S = 900;
|
|
978
|
+
/**
|
|
979
|
+
* A new thread that's a task (`channel` and `text`, with `labels`, `noSync`, `attachments`, and an
|
|
980
|
+
* `id` as a post takes them), or the thread `re` roots made one. `needs` are the tasks it waits for,
|
|
981
|
+
* `for` the one actor of its owner's that claims it, and `claim` claims it in the same write, for
|
|
982
|
+
* `lease` seconds.
|
|
983
|
+
*/
|
|
984
|
+
declare const CreateTaskBody: z.ZodObject<{
|
|
985
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
986
|
+
re: z.ZodOptional<z.ZodString>;
|
|
987
|
+
text: z.ZodOptional<z.ZodString>;
|
|
988
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
989
|
+
noSync: z.ZodOptional<z.ZodBoolean>;
|
|
990
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
991
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
992
|
+
for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
993
|
+
claim: z.ZodOptional<z.ZodBoolean>;
|
|
994
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
995
|
+
id: z.ZodOptional<z.ZodString>;
|
|
996
|
+
}, z.core.$strip>;
|
|
997
|
+
/**
|
|
998
|
+
* Several new threads in one channel, each a task, made in one write: all of them or none. A task is
|
|
999
|
+
* what `POST /tasks` starts a thread with, less `claim`. `key` names it for the batch's others, and
|
|
1000
|
+
* `needs` takes a task's ID, or `{ key }` for one of the batch, before or after it. `id` names the
|
|
1001
|
+
* batch: a retry with it answers the same tasks. At most `TASK_BATCH_MAX` tasks, 400
|
|
1002
|
+
* `batch_too_large` past that, which a board that holds fewer in one write answers too.
|
|
1003
|
+
*/
|
|
1004
|
+
declare const CreateTasksBody: z.ZodObject<{
|
|
1005
|
+
channel: z.ZodString;
|
|
1006
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1007
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
text: z.ZodString;
|
|
1009
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1010
|
+
noSync: z.ZodOptional<z.ZodBoolean>;
|
|
1011
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1012
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1013
|
+
key: z.ZodString;
|
|
1014
|
+
}, z.core.$strict>]>>>;
|
|
1015
|
+
for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1016
|
+
}, z.core.$strip>>;
|
|
1017
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
request: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
}, z.core.$strip>;
|
|
1020
|
+
/**
|
|
1021
|
+
* `request` is a board's digest of what a batch asked for, as it was given: with it, the batch
|
|
1022
|
+
* answers only that request, and any other under the `id` is 409 `duplicate_id`.
|
|
1023
|
+
*/
|
|
1024
|
+
declare const CreatedTasksQuery: z.ZodObject<{
|
|
1025
|
+
request: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
/** Which tasks to list: open ones unless `state` says `all` or names one. A claim whose lease has run out counts as `ready`. */
|
|
1028
|
+
declare const TasksQuery: z.ZodObject<{
|
|
1029
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1031
|
+
all: "all";
|
|
1032
|
+
open: "open";
|
|
1033
|
+
}>, z.ZodEnum<{
|
|
1034
|
+
blocked: "blocked";
|
|
1035
|
+
canceled: "canceled";
|
|
1036
|
+
claimed: "claimed";
|
|
1037
|
+
completed: "completed";
|
|
1038
|
+
failed: "failed";
|
|
1039
|
+
ready: "ready";
|
|
1040
|
+
waiting: "waiting";
|
|
1041
|
+
}>]>>;
|
|
1042
|
+
label: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<readonly [string, null] | readonly [string, string[]], string>>>>>;
|
|
1043
|
+
by: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
for: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
needs: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
after: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1049
|
+
}, z.core.$strip>;
|
|
1050
|
+
declare const ClaimTaskBody: z.ZodOptional<z.ZodObject<{
|
|
1051
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
1052
|
+
}, z.core.$strip>>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Claims the oldest ready task in `channel` that has every label in `label`: one assigned to the
|
|
1055
|
+
* caller first, then an unassigned one it owns, or whose owner `from` names by ID. `wait`
|
|
1056
|
+
* holds the request up to that many seconds for one.
|
|
1057
|
+
*/
|
|
1058
|
+
declare const ClaimReadyTaskBody: z.ZodObject<{
|
|
1059
|
+
channel: z.ZodString;
|
|
1060
|
+
label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1061
|
+
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1062
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
1063
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
+
}, z.core.$strip>;
|
|
1065
|
+
declare const RenewTaskBody: z.ZodObject<{
|
|
1066
|
+
epoch: z.ZodNumber;
|
|
1067
|
+
token: z.ZodString;
|
|
1068
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
+
}, z.core.$strip>;
|
|
1070
|
+
declare const ReleaseTaskBody: z.ZodObject<{
|
|
1071
|
+
epoch: z.ZodNumber;
|
|
1072
|
+
token: z.ZodString;
|
|
1073
|
+
}, z.core.$strip>;
|
|
1074
|
+
declare const CompleteTaskBody: z.ZodObject<{
|
|
1075
|
+
epoch: z.ZodNumber;
|
|
1076
|
+
token: z.ZodString;
|
|
1077
|
+
result: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
}, z.core.$strip>;
|
|
1079
|
+
declare const FailTaskBody: z.ZodObject<{
|
|
1080
|
+
epoch: z.ZodNumber;
|
|
1081
|
+
token: z.ZodString;
|
|
1082
|
+
reason: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
|
+
/** A hold for a person. A claimed task's comes from its claim, with the claim's `epoch` and `token`. Kind `edited` is the board's own, so none asks for it. */
|
|
1085
|
+
declare const BlockTaskBody: z.ZodObject<{
|
|
1086
|
+
reason: z.ZodString;
|
|
1087
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
epoch: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
}, z.core.$strip>;
|
|
1091
|
+
/** The one actor of its owner's that claims the task, or null for anyone who may. */
|
|
1092
|
+
declare const AssignTaskBody: z.ZodObject<{
|
|
1093
|
+
for: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
/** The tasks it waits for now, in place of what it waited for: none, for a task that waits for nothing. How many it may wait for is the backend's to say. */
|
|
1096
|
+
declare const TaskNeedsBody: z.ZodObject<{
|
|
1097
|
+
needs: z.ZodArray<z.ZodString>;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
declare const CancelTaskBody: z.ZodObject<{
|
|
1100
|
+
reason: z.ZodString;
|
|
1101
|
+
}, z.core.$strip>;
|
|
777
1102
|
/**
|
|
778
1103
|
* Who a grant names, as people write it: a user by email (or, where the board can't look one up,
|
|
779
1104
|
* by ID), a project by name or ID, a repository by `owner/name`. The board resolves names and keeps
|
|
@@ -1383,6 +1708,10 @@ declare const LabelBody: z.ZodObject<{
|
|
|
1383
1708
|
unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1384
1709
|
if: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
1385
1710
|
}, z.core.$strip>;
|
|
1711
|
+
type CreateTaskInput = z.input<typeof CreateTaskBody>;
|
|
1712
|
+
type CreateTasksInput = z.input<typeof CreateTasksBody>;
|
|
1713
|
+
type TasksQueryInput = z.input<typeof TasksQuery>;
|
|
1714
|
+
type ClaimReadyTaskInput = z.input<typeof ClaimReadyTaskBody>;
|
|
1386
1715
|
type FiltersInput = z.input<typeof Filters>;
|
|
1387
1716
|
type SyncImportInput = z.input<typeof SyncImportBody>;
|
|
1388
1717
|
type SyncReceiptInput = z.input<typeof SyncReceiptBody>;
|
|
@@ -1542,6 +1871,26 @@ type SchemaView = {
|
|
|
1542
1871
|
by: string | null;
|
|
1543
1872
|
at: string | null;
|
|
1544
1873
|
};
|
|
1874
|
+
/**
|
|
1875
|
+
* A task, on its root: its state (the root's `board.task` label too), whose it is and which of its
|
|
1876
|
+
* owner's actors made it one (`by`, who changes it as its owner), what it waits for, and who holds
|
|
1877
|
+
* it until when. A claim's token shows nowhere but in the answer that made it.
|
|
1878
|
+
*/
|
|
1879
|
+
type TaskView = Omit<Task, 'needs' | 'claim'> & {
|
|
1880
|
+
/** The tasks it waits for, by their IDs. */
|
|
1881
|
+
needs: string[];
|
|
1882
|
+
/** Who holds it. One whose `until` has passed is over: the task is claimable, and `ready` once the board says so. */
|
|
1883
|
+
claim: {
|
|
1884
|
+
actor: string;
|
|
1885
|
+
until: string;
|
|
1886
|
+
} | null;
|
|
1887
|
+
};
|
|
1888
|
+
/** What a claim answers, once: `epoch` and `token` go on every write the claim makes, until `until`. */
|
|
1889
|
+
type TaskClaim = {
|
|
1890
|
+
epoch: number;
|
|
1891
|
+
token: string;
|
|
1892
|
+
until: string;
|
|
1893
|
+
};
|
|
1545
1894
|
/**
|
|
1546
1895
|
* `kind` says who wrote it: a `person` or a platform user (`external`), an agent (`profile`), or a deployment or workflow.
|
|
1547
1896
|
* `via` is who one with a profile acts through: an agent's person or project, or the principal whose sync speaks for a
|
|
@@ -1554,7 +1903,7 @@ type ActorView = Pick<Actor, 'kind' | 'handle' | 'name' | 'avatar' | 'via' | 'pl
|
|
|
1554
1903
|
verified?: true;
|
|
1555
1904
|
};
|
|
1556
1905
|
/** A message as clients see it: its IDs are refs, and `version` says which of two views of it is newer. */
|
|
1557
|
-
type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule' | 'version' | 'revision' | 'platformText'> & {
|
|
1906
|
+
type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule' | 'task' | 'version' | 'revision' | 'platformText'> & {
|
|
1558
1907
|
id: string;
|
|
1559
1908
|
/** The thread's root, or null for a root. */
|
|
1560
1909
|
re: string | null;
|
|
@@ -1573,6 +1922,8 @@ type MessageView = Omit<Message, 'id' | 're' | 'replyTo' | 'links' | 'schedule'
|
|
|
1573
1922
|
id: string;
|
|
1574
1923
|
n: number;
|
|
1575
1924
|
};
|
|
1925
|
+
/** Set on a root that's a task. */
|
|
1926
|
+
task?: TaskView;
|
|
1576
1927
|
author: ActorView | null;
|
|
1577
1928
|
/**
|
|
1578
1929
|
* The data its text carries, in order: each fence that names a schema (```json#sandbox@1), which
|
|
@@ -1592,8 +1943,8 @@ type BlockView = {
|
|
|
1592
1943
|
type LinkView = Omit<Link, 'message'> & {
|
|
1593
1944
|
message: string | null;
|
|
1594
1945
|
};
|
|
1595
|
-
/** An event's payload as clients see it: message IDs are refs. */
|
|
1596
|
-
type PayloadView<P> = { [K in keyof P]: K extends 'id' | 're' | 'replyTo' ? P[K] extends number ? string : P[K] extends number | null ? string | null : P[K] : K extends 'links' ? LinkView[] : K extends 'schedule' ? P[K] extends undefined ? undefined : {
|
|
1946
|
+
/** An event's payload as clients see it: message IDs are refs, and a claim's `token` is left out. */
|
|
1947
|
+
type PayloadView<P> = { [K in keyof P as K extends 'token' ? never : K]: K extends 'id' | 're' | 'replyTo' ? P[K] extends number ? string : P[K] extends number | null ? string | null : P[K] : K extends 'links' ? LinkView[] : K extends 'needs' ? string[] : K extends 'schedule' ? P[K] extends undefined ? undefined : {
|
|
1597
1948
|
id: string;
|
|
1598
1949
|
n: number;
|
|
1599
1950
|
} | Exclude<P[K], object> : P[K]; };
|
|
@@ -1769,6 +2120,16 @@ type ThreadSummaryView = {
|
|
|
1769
2120
|
type ThreadsPage = {
|
|
1770
2121
|
threads: ThreadSummaryView[];
|
|
1771
2122
|
cursor: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* The `before` for the threads last active before this page's, or null when there are none. A board that pages
|
|
2125
|
+
* threads backward sends it on every read without `after`; one from before it leaves it out.
|
|
2126
|
+
*/
|
|
2127
|
+
older?: string | null;
|
|
2128
|
+
};
|
|
2129
|
+
/** Tasks, oldest first, each as its thread's summary: `message.task` is the task. `cursor` reads the next page, as `after`. */
|
|
2130
|
+
type TasksPage = {
|
|
2131
|
+
tasks: ThreadSummaryView[];
|
|
2132
|
+
cursor: string;
|
|
1772
2133
|
};
|
|
1773
2134
|
type EventsPage = {
|
|
1774
2135
|
events: BoardEventView[];
|
|
@@ -1881,7 +2242,7 @@ declare const routes: {
|
|
|
1881
2242
|
readonly method: 'GET';
|
|
1882
2243
|
readonly path: '/messages/:id';
|
|
1883
2244
|
};
|
|
1884
|
-
/** Threads with a matching message, one summary each, by latest activity. */
|
|
2245
|
+
/** Threads with a matching message, one summary each, by latest activity. `before` takes a page's `older`. */
|
|
1885
2246
|
readonly threads: {
|
|
1886
2247
|
readonly method: 'GET';
|
|
1887
2248
|
readonly path: '/threads';
|
|
@@ -1894,6 +2255,7 @@ declare const routes: {
|
|
|
1894
2255
|
from: z.ZodOptional<z.ZodString>;
|
|
1895
2256
|
text: z.ZodOptional<z.ZodString>;
|
|
1896
2257
|
after: z.ZodOptional<z.ZodString>;
|
|
2258
|
+
before: z.ZodOptional<z.ZodString>;
|
|
1897
2259
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1898
2260
|
}, z.core.$strip>;
|
|
1899
2261
|
};
|
|
@@ -2018,6 +2380,178 @@ declare const routes: {
|
|
|
2018
2380
|
readonly method: 'POST';
|
|
2019
2381
|
readonly path: '/schedules/:id/cancel';
|
|
2020
2382
|
};
|
|
2383
|
+
/** Tasks, oldest first: open ones unless `state` says otherwise. */
|
|
2384
|
+
readonly tasks: {
|
|
2385
|
+
readonly method: 'GET';
|
|
2386
|
+
readonly path: '/tasks';
|
|
2387
|
+
readonly query: z.ZodObject<{
|
|
2388
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
2389
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2390
|
+
all: "all";
|
|
2391
|
+
open: "open";
|
|
2392
|
+
}>, z.ZodEnum<{
|
|
2393
|
+
blocked: "blocked";
|
|
2394
|
+
canceled: "canceled";
|
|
2395
|
+
claimed: "claimed";
|
|
2396
|
+
completed: "completed";
|
|
2397
|
+
failed: "failed";
|
|
2398
|
+
ready: "ready";
|
|
2399
|
+
waiting: "waiting";
|
|
2400
|
+
}>]>>;
|
|
2401
|
+
label: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<readonly [string, null] | readonly [string, string[]], string>>>>>;
|
|
2402
|
+
by: z.ZodOptional<z.ZodString>;
|
|
2403
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2404
|
+
for: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
needs: z.ZodOptional<z.ZodString>;
|
|
2406
|
+
after: z.ZodOptional<z.ZodString>;
|
|
2407
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2408
|
+
}, z.core.$strip>;
|
|
2409
|
+
};
|
|
2410
|
+
/** Starts a thread as a task (`post` there, and `label` for its labels), or makes the thread `re` roots one (`label` there). */
|
|
2411
|
+
readonly createTask: {
|
|
2412
|
+
readonly method: 'POST';
|
|
2413
|
+
readonly path: '/tasks';
|
|
2414
|
+
readonly body: z.ZodObject<{
|
|
2415
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
2416
|
+
re: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2419
|
+
noSync: z.ZodOptional<z.ZodBoolean>;
|
|
2420
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2421
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2422
|
+
for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2423
|
+
claim: z.ZodOptional<z.ZodBoolean>;
|
|
2424
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
2425
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
}, z.core.$strip>;
|
|
2427
|
+
};
|
|
2428
|
+
/** Starts several threads in one channel as tasks, in one write: all of them or none, and nothing shows before all have landed. */
|
|
2429
|
+
readonly createTasks: {
|
|
2430
|
+
readonly method: 'POST';
|
|
2431
|
+
readonly path: '/tasks/batch';
|
|
2432
|
+
readonly body: z.ZodObject<{
|
|
2433
|
+
channel: z.ZodString;
|
|
2434
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
2435
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
text: z.ZodString;
|
|
2437
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2438
|
+
noSync: z.ZodOptional<z.ZodBoolean>;
|
|
2439
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2440
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2441
|
+
key: z.ZodString;
|
|
2442
|
+
}, z.core.$strict>]>>>;
|
|
2443
|
+
for: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2444
|
+
}, z.core.$strip>>;
|
|
2445
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2446
|
+
request: z.ZodOptional<z.ZodString>;
|
|
2447
|
+
}, z.core.$strip>;
|
|
2448
|
+
};
|
|
2449
|
+
/** The caller's own batch made under the `id` it gave, its tasks as they are now: for telling a retry before making anything. */
|
|
2450
|
+
readonly createdTasks: {
|
|
2451
|
+
readonly method: 'GET';
|
|
2452
|
+
readonly path: '/tasks/batch/:id';
|
|
2453
|
+
readonly query: z.ZodObject<{
|
|
2454
|
+
request: z.ZodOptional<z.ZodString>;
|
|
2455
|
+
}, z.core.$strip>;
|
|
2456
|
+
};
|
|
2457
|
+
/** Claims the oldest ready task in a channel or subtree: `label` where it is. Answers `{ task: null }` when none is. */
|
|
2458
|
+
readonly claimReadyTask: {
|
|
2459
|
+
readonly method: 'POST';
|
|
2460
|
+
readonly path: '/tasks/claim';
|
|
2461
|
+
readonly body: z.ZodObject<{
|
|
2462
|
+
channel: z.ZodString;
|
|
2463
|
+
label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2464
|
+
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2465
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
2466
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
2467
|
+
}, z.core.$strip>;
|
|
2468
|
+
};
|
|
2469
|
+
/** Claims a task: `label` in its channel. Its answer's `claim` goes on what the claim does next. */
|
|
2470
|
+
readonly claimTask: {
|
|
2471
|
+
readonly method: 'POST';
|
|
2472
|
+
readonly path: '/tasks/:id/claim';
|
|
2473
|
+
readonly body: z.ZodOptional<z.ZodObject<{
|
|
2474
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
2475
|
+
}, z.core.$strip>>;
|
|
2476
|
+
};
|
|
2477
|
+
/** What a claim does, with its `epoch` and `token`: 409 `claim_lost` once it's over. */
|
|
2478
|
+
readonly renewTask: {
|
|
2479
|
+
readonly method: 'POST';
|
|
2480
|
+
readonly path: '/tasks/:id/renew';
|
|
2481
|
+
readonly body: z.ZodObject<{
|
|
2482
|
+
epoch: z.ZodNumber;
|
|
2483
|
+
token: z.ZodString;
|
|
2484
|
+
lease: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
+
}, z.core.$strip>;
|
|
2486
|
+
};
|
|
2487
|
+
readonly releaseTask: {
|
|
2488
|
+
readonly method: 'POST';
|
|
2489
|
+
readonly path: '/tasks/:id/release';
|
|
2490
|
+
readonly body: z.ZodObject<{
|
|
2491
|
+
epoch: z.ZodNumber;
|
|
2492
|
+
token: z.ZodString;
|
|
2493
|
+
}, z.core.$strip>;
|
|
2494
|
+
};
|
|
2495
|
+
readonly completeTask: {
|
|
2496
|
+
readonly method: 'POST';
|
|
2497
|
+
readonly path: '/tasks/:id/complete';
|
|
2498
|
+
readonly body: z.ZodObject<{
|
|
2499
|
+
epoch: z.ZodNumber;
|
|
2500
|
+
token: z.ZodString;
|
|
2501
|
+
result: z.ZodOptional<z.ZodString>;
|
|
2502
|
+
}, z.core.$strip>;
|
|
2503
|
+
};
|
|
2504
|
+
readonly failTask: {
|
|
2505
|
+
readonly method: 'POST';
|
|
2506
|
+
readonly path: '/tasks/:id/fail';
|
|
2507
|
+
readonly body: z.ZodObject<{
|
|
2508
|
+
epoch: z.ZodNumber;
|
|
2509
|
+
token: z.ZodString;
|
|
2510
|
+
reason: z.ZodString;
|
|
2511
|
+
}, z.core.$strip>;
|
|
2512
|
+
};
|
|
2513
|
+
/** Holds a task for a person: its claim while it's claimed, its owner or `manage` in its channel otherwise. */
|
|
2514
|
+
readonly blockTask: {
|
|
2515
|
+
readonly method: 'POST';
|
|
2516
|
+
readonly path: '/tasks/:id/block';
|
|
2517
|
+
readonly body: z.ZodObject<{
|
|
2518
|
+
reason: z.ZodString;
|
|
2519
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
2520
|
+
epoch: z.ZodOptional<z.ZodNumber>;
|
|
2521
|
+
token: z.ZodOptional<z.ZodString>;
|
|
2522
|
+
}, z.core.$strip>;
|
|
2523
|
+
};
|
|
2524
|
+
/** What a task's owner does, or `manage` in its channel. */
|
|
2525
|
+
readonly unblockTask: {
|
|
2526
|
+
readonly method: 'POST';
|
|
2527
|
+
readonly path: '/tasks/:id/unblock';
|
|
2528
|
+
};
|
|
2529
|
+
readonly reopenTask: {
|
|
2530
|
+
readonly method: 'POST';
|
|
2531
|
+
readonly path: '/tasks/:id/reopen';
|
|
2532
|
+
};
|
|
2533
|
+
readonly assignTask: {
|
|
2534
|
+
readonly method: 'POST';
|
|
2535
|
+
readonly path: '/tasks/:id/assign';
|
|
2536
|
+
readonly body: z.ZodObject<{
|
|
2537
|
+
for: z.ZodNullable<z.ZodString>;
|
|
2538
|
+
}, z.core.$strip>;
|
|
2539
|
+
};
|
|
2540
|
+
/** Replaces what a task waits for, while no one holds it and it isn't finished. */
|
|
2541
|
+
readonly setTaskNeeds: {
|
|
2542
|
+
readonly method: 'POST';
|
|
2543
|
+
readonly path: '/tasks/:id/needs';
|
|
2544
|
+
readonly body: z.ZodObject<{
|
|
2545
|
+
needs: z.ZodArray<z.ZodString>;
|
|
2546
|
+
}, z.core.$strip>;
|
|
2547
|
+
};
|
|
2548
|
+
readonly cancelTask: {
|
|
2549
|
+
readonly method: 'POST';
|
|
2550
|
+
readonly path: '/tasks/:id/cancel';
|
|
2551
|
+
readonly body: z.ZodObject<{
|
|
2552
|
+
reason: z.ZodString;
|
|
2553
|
+
}, z.core.$strip>;
|
|
2554
|
+
};
|
|
2021
2555
|
/** Listing grants needs manage at `*`; changing one, manage at each pattern its `can` names. Team owners always may. */
|
|
2022
2556
|
readonly grants: {
|
|
2023
2557
|
readonly method: 'GET';
|
|
@@ -2677,4 +3211,4 @@ declare const routes: {
|
|
|
2677
3211
|
};
|
|
2678
3212
|
type RouteName = keyof typeof routes;
|
|
2679
3213
|
//#endregion
|
|
2680
|
-
export {
|
|
3214
|
+
export { MessagesQueryInput as $, TypingBody as $t, FiltersInput as A, ExternalAuthor as An, SyncBody as At, InboxPushBody as B, SyncThreadView as Bt, EditBody as C, union as Cn, SchemaInput as Ct, ExplainQuery as D, Author as Dn, SourceMessage as Dt, EventsQueryInput as E, Attachment as En, SourceJoinBody as Et, INBOX_EVENT_ID_MAX as F, SyncFindView as Ft, LinkView as G, TasksPage as Gt, LABEL_CONDITIONS_MAX as H, TaskClaim as Ht, InboxAckBody as I, SyncImportBody as It, MatchesQuery as J, ThreadSummaryView as Jt, LinkedQuery as K, TasksQuery as Kt, InboxEntry as L, SyncImportInput as Lt, GrantCan as M, ExternalFile as Mn, SyncCopiesView as Mt, GrantInput as N, ExternalLink as Nn, SyncFindInput as Nt, Explanation as O, CAN_MAX as On, SourceRead as Ot, GrantView as P, Link as Pn, SyncFindQuery as Pt, MessagesQuery as Q, ThreadsQueryInput as Qt, InboxItem as R, SyncReceiptBody as Rt, Discovery as S, parseCan as Sn, SchemaBody as St, EventsQuery as T, ExternalCopy as Tn, SourceJoin as Tt, LEASE_DEFAULT_S as U, TaskNeedsBody as Ut, InboxQuery as V, SyncedView as Vt, LabelBody as W, TaskView as Wt, MessageView as X, ThreadsPage as Xt, Me as Y, ThreadView as Yt, MessagesPage as Z, ThreadsQuery as Zt, CreateTaskInput as _, PERMISSIONS as _n, ScheduleInput as _t, BlockTaskBody as a, routes as an, REGISTERED_WATCHERS_MAX as at, CreatedTasksQuery as b, checkGrantChange as bn, SchedulesQueryInput as bt, CanAt as c, Can as cn, RegisterBody as ct, ClaimReadyTaskBody as d, Grant as dn, ReleaseTaskBody as dt, TypingResult as en, ParsedFilters as et, ClaimReadyTaskInput as f, GrantChange as fn, RenewTaskBody as ft, CreateTaskBody as g, Level as gn, ScheduleBodyOutput as gt, CreateChannelBody as h, InvalidCan as hn, ScheduleBody as ht, AssignTaskBody as i, UploadTicket as in, PrincipalView as it, GrantBody as j, ExternalEvent as jn, SyncCopiesQuery as jt, FailTaskBody as k, Labels as kn, SourceReadQuery as kt, CancelTaskBody as l, ChannelPattern as ln, RegisterInput as lt, CompleteTaskBody as m, GrantShape as mn, RouteName as mt, ActorView as n, UpdateGrantInput as nn, PostInput as nt, BlockView as o, Access as on, ReactBody as ot, ClaimTaskBody as p, GrantChangeRefusal as pn, ResolvedSyncTarget as pt, MatchView as q, TasksQueryInput as qt, ApiError as r, UploadStartBody as rn, PrincipalInput as rt, BoardEventView as s, AccessSummary as sn, Ref as st, AckBody as t, UpdateGrantBody as tn, PostBody as tt, ChannelView as u, FULL_ACCESS as un, RegistrationView as ut, CreateTasksBody as v, Permission as vn, ScheduleView as vt, EventsPage as w, Actor as wn, SchemaView as wt, DeleteBody as x, compileAccess as xn, SchedulesQueryOutput as xt, CreateTasksInput as y, WrittenCan as yn, SchedulesQuery as yt, InboxNextQuery as z, SyncReceiptInput as zt };
|