@mossbear/protocol 0.1.0-alpha.39 → 0.1.0-alpha.41

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/schemas.d.ts CHANGED
@@ -329,6 +329,29 @@ export declare const GuideImportResultSchema: v.ObjectSchema<{
329
329
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
330
330
  }, undefined>;
331
331
  export type GuideImportResult = v.InferOutput<typeof GuideImportResultSchema>;
332
+ /** Max alias sets one import response reports as divergent. */
333
+ export declare const MAX_GUIDE_IMPORT_DIVERGENCES = 64;
334
+ /**
335
+ * An alias set the server found in one import but **did not** collapse, because
336
+ * the files do not hold the same rules
337
+ * (`alias-instruction-file-identity-plan.md` → second addendum,
338
+ * 2026-09-03).
339
+ *
340
+ * Reporting rather than refusing is the whole point. An identical
341
+ * `AGENTS.md`/`CLAUDE.md` pair becomes one guide; a divergent one imports as
342
+ * two guides exactly as it does today, and this names the paths so the user can
343
+ * see the drift the product would otherwise have kept silent. Nothing about the
344
+ * import fails, and nothing the user does today stops working.
345
+ *
346
+ * `paths` carries every path in the set this request saw, in the order the
347
+ * server ranks them — so the first is the one that would have kept the body had
348
+ * they matched.
349
+ */
350
+ export declare const GuideImportDivergenceSchema: v.ObjectSchema<{
351
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
352
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, v.MinLengthAction<string[], 2, undefined>]>;
353
+ }, undefined>;
354
+ export type GuideImportDivergence = v.InferOutput<typeof GuideImportDivergenceSchema>;
332
355
  export declare const RawGuideFileDeletionSchema: v.ObjectSchema<{
333
356
  readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
334
357
  readonly format: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
@@ -409,6 +432,18 @@ export declare const BundleSchema: v.ObjectSchema<{
409
432
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
410
433
  readonly name: v.StringSchema<undefined>;
411
434
  readonly createdAt: v.StringSchema<undefined>;
435
+ /**
436
+ * The project id of the repo that owns this bundle's items, when one claims it
437
+ * (`subscription-delivery-target-plan.md` → slice 3). Absent is the ordinary
438
+ * case: a bundle with no home is edited wherever its owner likes.
439
+ *
440
+ * A home makes the named checkout the only writer — a PR there is the review
441
+ * — and every other writer, the dashboard included, is refused by name.
442
+ *
443
+ * Optional rather than nullable so a CLI built before this field parses a new
444
+ * server's listing unchanged.
445
+ */
446
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
412
447
  }, undefined>;
413
448
  export declare const BundleListResponseSchema: v.ObjectSchema<{
414
449
  readonly bundles: v.ArraySchema<v.ObjectSchema<{
@@ -416,6 +451,18 @@ export declare const BundleListResponseSchema: v.ObjectSchema<{
416
451
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
417
452
  readonly name: v.StringSchema<undefined>;
418
453
  readonly createdAt: v.StringSchema<undefined>;
454
+ /**
455
+ * The project id of the repo that owns this bundle's items, when one claims it
456
+ * (`subscription-delivery-target-plan.md` → slice 3). Absent is the ordinary
457
+ * case: a bundle with no home is edited wherever its owner likes.
458
+ *
459
+ * A home makes the named checkout the only writer — a PR there is the review
460
+ * — and every other writer, the dashboard included, is refused by name.
461
+ *
462
+ * Optional rather than nullable so a CLI built before this field parses a new
463
+ * server's listing unchanged.
464
+ */
465
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
419
466
  }, undefined>, undefined>;
420
467
  }, undefined>;
421
468
  /**
@@ -460,12 +507,61 @@ export type WorkspaceListResponse = v.InferOutput<typeof WorkspaceListResponseSc
460
507
  * must not say they are. Raised by Codex on #735.
461
508
  */
462
509
  export declare const SubscriptionScopeSchema: v.PicklistSchema<["repo", "user"], undefined>;
510
+ /**
511
+ * Where a subscription's items are delivered, independent of where their source
512
+ * lives (`subscription-delivery-target-plan.md` → slice 2).
513
+ *
514
+ * - `repo` — land at the item's path in the checkout doing the sync, under the
515
+ * same git-owned write rule every project item obeys.
516
+ * - `global` — land in the machine-global namespace, unattended.
517
+ *
518
+ * **Absent is not a third value.** A subscription that names no target routes on
519
+ * the item's own `root`, which is what every subscription meant before this
520
+ * field existed — so the column and the config key are both nullable and the
521
+ * default bundle keeps behaving exactly as it does today.
522
+ */
523
+ export declare const DeliverTargetSchema: v.PicklistSchema<["repo", "global"], undefined>;
463
524
  export declare const ResolvedSubscriptionSchema: v.ObjectSchema<{
464
525
  readonly id: v.StringSchema<undefined>;
465
526
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
466
527
  readonly name: v.StringSchema<undefined>;
467
528
  /** Every scope that names this bundle. Never empty; may hold both. */
468
529
  readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["repo", "user"], undefined>, undefined>, v.MinLengthAction<("repo" | "user")[], 1, undefined>]>;
530
+ /**
531
+ * The **account** subscription's delivery target, when there is an account
532
+ * subscription and it names one.
533
+ *
534
+ * Only the account side, and deliberately so: the repo side's target lives in
535
+ * the committed `.mossbear/config.json` on the caller's own disk, which the
536
+ * server cannot read — the same asymmetry that makes this endpoint a round
537
+ * trip at all. Echoing a value the caller just sent would make the server look
538
+ * like the authority on a fact it does not hold. The caller pairs this with
539
+ * its own committed `deliver` to build the per-scope target set
540
+ * (`packages/cli/src/docs/delivery.ts` → `deliveryBundles`).
541
+ *
542
+ * Optional rather than nullable so a CLI built before this field parses a new
543
+ * server's response unchanged, and a new CLI reads an old server's response as
544
+ * "names no target" — which is the absent-field default either way.
545
+ */
546
+ readonly deliver: v.OptionalSchema<v.PicklistSchema<["repo", "global"], undefined>, undefined>;
547
+ /**
548
+ * The bundle's home repo, when one claims it. Sent on every resolved
549
+ * subscription regardless of scope, because it is a property of the *bundle*
550
+ * rather than of either subscription — unlike `deliver`, which each scope
551
+ * answers for itself.
552
+ */
553
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
554
+ /**
555
+ * Guide ids the **account** subscription has switched off for this subscriber
556
+ * (`subscription-delivery-target-plan.md` → slice 4).
557
+ *
558
+ * Account-scoped and nowhere else: a repo subscription is a committed file
559
+ * shared by everyone who clones it, so a mute there would be one member
560
+ * deciding for the team. A muted guide leaves the desired delivery list, and
561
+ * the global namespace prunes it once no repo still refers to it — repo by
562
+ * repo, as each syncs, because the referrer record is machine-local repo ids.
563
+ */
564
+ readonly muted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
469
565
  }, undefined>;
470
566
  /**
471
567
  * The ids a repo's committed config names. Sent rather than looked up, because
@@ -492,6 +588,41 @@ export declare const ResolveSubscriptionsResponseSchema: v.ObjectSchema<{
492
588
  readonly name: v.StringSchema<undefined>;
493
589
  /** Every scope that names this bundle. Never empty; may hold both. */
494
590
  readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["repo", "user"], undefined>, undefined>, v.MinLengthAction<("repo" | "user")[], 1, undefined>]>;
591
+ /**
592
+ * The **account** subscription's delivery target, when there is an account
593
+ * subscription and it names one.
594
+ *
595
+ * Only the account side, and deliberately so: the repo side's target lives in
596
+ * the committed `.mossbear/config.json` on the caller's own disk, which the
597
+ * server cannot read — the same asymmetry that makes this endpoint a round
598
+ * trip at all. Echoing a value the caller just sent would make the server look
599
+ * like the authority on a fact it does not hold. The caller pairs this with
600
+ * its own committed `deliver` to build the per-scope target set
601
+ * (`packages/cli/src/docs/delivery.ts` → `deliveryBundles`).
602
+ *
603
+ * Optional rather than nullable so a CLI built before this field parses a new
604
+ * server's response unchanged, and a new CLI reads an old server's response as
605
+ * "names no target" — which is the absent-field default either way.
606
+ */
607
+ readonly deliver: v.OptionalSchema<v.PicklistSchema<["repo", "global"], undefined>, undefined>;
608
+ /**
609
+ * The bundle's home repo, when one claims it. Sent on every resolved
610
+ * subscription regardless of scope, because it is a property of the *bundle*
611
+ * rather than of either subscription — unlike `deliver`, which each scope
612
+ * answers for itself.
613
+ */
614
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
615
+ /**
616
+ * Guide ids the **account** subscription has switched off for this subscriber
617
+ * (`subscription-delivery-target-plan.md` → slice 4).
618
+ *
619
+ * Account-scoped and nowhere else: a repo subscription is a committed file
620
+ * shared by everyone who clones it, so a mute there would be one member
621
+ * deciding for the team. A muted guide leaves the desired delivery list, and
622
+ * the global namespace prunes it once no repo still refers to it — repo by
623
+ * repo, as each syncs, because the referrer record is machine-local repo ids.
624
+ */
625
+ readonly muted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
495
626
  }, undefined>, undefined>;
496
627
  /**
497
628
  * Committed ids the caller cannot see. **Reported, never dropped** — the line
@@ -502,6 +633,57 @@ export declare const ResolveSubscriptionsResponseSchema: v.ObjectSchema<{
502
633
  readonly id: v.StringSchema<undefined>;
503
634
  }, undefined>, undefined>;
504
635
  }, undefined>;
636
+ /**
637
+ * Subscribe the calling account to a bundle it can see, or change the delivery
638
+ * target of a subscription it already has.
639
+ *
640
+ * **The product path to a non-default bundle** (`subscription-delivery-target-plan.md`
641
+ * → slice 2). Before this, the only insert into `user_bundle_subscriptions` was
642
+ * the one that mints an account's own capture bundle, so an account could not
643
+ * subscribe to anything else without a hand-written row.
644
+ *
645
+ * Idempotent by the table's composite key: subscribing twice is one
646
+ * subscription, and a second call carrying a different `deliver` updates it
647
+ * rather than failing.
648
+ */
649
+ /** No account should be able to make one sync unboundedly expensive. */
650
+ export declare const MAX_MUTED_GUIDE_IDS = 1000;
651
+ export declare const SubscribeBundleRequestSchema: v.ObjectSchema<{
652
+ readonly bundleId: v.StringSchema<undefined>;
653
+ /**
654
+ * Where this account's subscription delivers. **Three states, and all three
655
+ * are reachable**: a value sets the target, an explicit `null` clears it back
656
+ * to "route on the item's root", and omitting the field leaves whatever is
657
+ * stored.
658
+ *
659
+ * The first shipped version made omission clear the target, so that "route on
660
+ * the item's root" would stay reachable. It made a bare re-subscribe — the
661
+ * commonest call there is — silently reset routing the caller never mentioned:
662
+ * `mossbear pull <bundle> --account` a second time would wipe a target set the
663
+ * first time, and print a success line saying nothing about it. Found by the
664
+ * automated reviewer on #1246. A nullable field reaches the same state without
665
+ * making silence mean a write.
666
+ */
667
+ readonly deliver: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["repo", "global"], undefined>, undefined>, undefined>;
668
+ /**
669
+ * The guide ids to switch off for this subscriber — the whole set, replacing
670
+ * whatever is stored. `[]` unmutes everything, and omitting the field leaves
671
+ * the stored set alone.
672
+ *
673
+ * The same three states as `deliver` above, reached the same way: an explicit
674
+ * empty clears, and silence never means a write. So changing a delivery target
675
+ * cannot unmute anything, and muting cannot move a target.
676
+ */
677
+ readonly muted: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 1000, undefined>]>, undefined>;
678
+ }, undefined>;
679
+ export declare const SubscribeBundleResponseSchema: v.ObjectSchema<{
680
+ readonly bundleId: v.StringSchema<undefined>;
681
+ /** False when the subscription was already there and only its target moved. */
682
+ readonly created: v.BooleanSchema<undefined>;
683
+ readonly deliver: v.OptionalSchema<v.PicklistSchema<["repo", "global"], undefined>, undefined>;
684
+ /** The stored mute set after this write. Omitted when nothing is muted. */
685
+ readonly muted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
686
+ }, undefined>;
505
687
  export declare const CreateBundleRequestSchema: v.ObjectSchema<{
506
688
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
507
689
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
@@ -512,6 +694,18 @@ export declare const CreateBundleResponseSchema: v.ObjectSchema<{
512
694
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
513
695
  readonly name: v.StringSchema<undefined>;
514
696
  readonly createdAt: v.StringSchema<undefined>;
697
+ /**
698
+ * The project id of the repo that owns this bundle's items, when one claims it
699
+ * (`subscription-delivery-target-plan.md` → slice 3). Absent is the ordinary
700
+ * case: a bundle with no home is edited wherever its owner likes.
701
+ *
702
+ * A home makes the named checkout the only writer — a PR there is the review
703
+ * — and every other writer, the dashboard included, is refused by name.
704
+ *
705
+ * Optional rather than nullable so a CLI built before this field parses a new
706
+ * server's listing unchanged.
707
+ */
708
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
515
709
  }, undefined>;
516
710
  }, undefined>;
517
711
  export declare const BundleMemberTypeSchema: v.PicklistSchema<readonly ["guide_file", "guide"], undefined>;
@@ -525,15 +719,42 @@ export declare const AttachBundleMemberResponseSchema: v.ObjectSchema<{
525
719
  export declare const DetachBundleMemberResponseSchema: v.ObjectSchema<{
526
720
  readonly detached: v.BooleanSchema<undefined>;
527
721
  }, undefined>;
528
- export declare const RenameBundleRequestSchema: v.ObjectSchema<{
529
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
530
- }, undefined>;
531
- export declare const RenameBundleResponseSchema: v.ObjectSchema<{
722
+ /**
723
+ * What `PATCH /api/v1/context/bundles/:id` may change: the display name, the
724
+ * home repo, or both. The slug stays immutable — repos address a bundle by id
725
+ * and name it by slug, so a slug change would rename a folder in every
726
+ * subscriber's checkout (`context-bundle-authoring-plan.md` → D14).
727
+ *
728
+ * Both fields optional, with a check that at least one is present: a body that
729
+ * changes nothing is a request the caller did not mean to send, and answering it
730
+ * 200 would hide a client bug. `home: null` clears the claim, which is how a
731
+ * repo hands a bundle back — distinct from omitting the field, which leaves it.
732
+ */
733
+ export declare const UpdateBundleRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
734
+ readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
735
+ readonly home: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
736
+ }, undefined>, v.CheckAction<{
737
+ name?: string | undefined;
738
+ home?: string | null | undefined;
739
+ }, "name or home is required">]>;
740
+ export declare const UpdateBundleResponseSchema: v.ObjectSchema<{
532
741
  readonly bundle: v.ObjectSchema<{
533
742
  readonly id: v.StringSchema<undefined>;
534
743
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
535
744
  readonly name: v.StringSchema<undefined>;
536
745
  readonly createdAt: v.StringSchema<undefined>;
746
+ /**
747
+ * The project id of the repo that owns this bundle's items, when one claims it
748
+ * (`subscription-delivery-target-plan.md` → slice 3). Absent is the ordinary
749
+ * case: a bundle with no home is edited wherever its owner likes.
750
+ *
751
+ * A home makes the named checkout the only writer — a PR there is the review
752
+ * — and every other writer, the dashboard included, is refused by name.
753
+ *
754
+ * Optional rather than nullable so a CLI built before this field parses a new
755
+ * server's listing unchanged.
756
+ */
757
+ readonly home: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
537
758
  }, undefined>;
538
759
  }, undefined>;
539
760
  export declare const DeleteBundleResponseSchema: v.ObjectSchema<{
@@ -544,6 +765,23 @@ export declare const PushContentTypeSchema: v.PicklistSchema<("document" | "refe
544
765
  export declare const InboxContentTypeSchema: v.PicklistSchema<("document" | "reference" | "asset")[], undefined>;
545
766
  /** Max serialized size (UTF-8 bytes) of a pushed or captured item's content. */
546
767
  export declare const MAX_CONTEXT_CONTENT_BYTES: number;
768
+ /**
769
+ * Max alias paths one guide reports. Three root instruction files and two
770
+ * skills directories are the whole population today
771
+ * (`packages/protocol/src/aliasPaths.ts`); the cap is a wire bound, not a
772
+ * product limit, and exists so a corrupt row cannot make one item unbounded.
773
+ */
774
+ export declare const MAX_GUIDE_ALIASES = 8;
775
+ /**
776
+ * One `(root, path)` a guide is *also* held at. Same two fields, same
777
+ * narrowing, as the item's own scope pair — an alias is a projection target,
778
+ * not a second kind of location.
779
+ */
780
+ export declare const GuideAliasSchema: v.ObjectSchema<{
781
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
782
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
783
+ }, undefined>;
784
+ export type GuideAlias = v.InferOutput<typeof GuideAliasSchema>;
547
785
  export declare const ContextItemSchema: v.ObjectSchema<{
548
786
  readonly id: v.StringSchema<undefined>;
549
787
  readonly type: v.PicklistSchema<string[], undefined>;
@@ -552,9 +790,30 @@ export declare const ContextItemSchema: v.ObjectSchema<{
552
790
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
553
791
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
554
792
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
793
+ /**
794
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
795
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
796
+ *
797
+ * Absent on everything else, including a guide itself: a guide member is
798
+ * addressed by the guide's own id, so `id` already answers this for it.
799
+ *
800
+ * It exists because derived items have no bundle membership and no id of their
801
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
802
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
803
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
804
+ * broken half-skill on disk, which is worse than not muting at all.
805
+ */
806
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
555
807
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
556
808
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
557
809
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
810
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
811
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
812
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
813
+ }, undefined>, undefined>, v.MaxLengthAction<{
814
+ root: "project" | "global";
815
+ path: string;
816
+ }[], 8, undefined>]>, undefined>;
558
817
  readonly updatedAt: v.StringSchema<undefined>;
559
818
  }, undefined>;
560
819
  export declare const ContextItemsResponseSchema: v.ObjectSchema<{
@@ -566,9 +825,30 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
566
825
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
567
826
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
568
827
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
828
+ /**
829
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
830
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
831
+ *
832
+ * Absent on everything else, including a guide itself: a guide member is
833
+ * addressed by the guide's own id, so `id` already answers this for it.
834
+ *
835
+ * It exists because derived items have no bundle membership and no id of their
836
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
837
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
838
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
839
+ * broken half-skill on disk, which is worse than not muting at all.
840
+ */
841
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
569
842
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
570
843
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
571
844
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
845
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
846
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
847
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
848
+ }, undefined>, undefined>, v.MaxLengthAction<{
849
+ root: "project" | "global";
850
+ path: string;
851
+ }[], 8, undefined>]>, undefined>;
572
852
  readonly updatedAt: v.StringSchema<undefined>;
573
853
  }, undefined>, undefined>;
574
854
  }, undefined>;
@@ -590,6 +870,18 @@ export declare const PushContextRequestSchema: v.ObjectSchema<{
590
870
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
591
871
  readonly sourceItemIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
592
872
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
873
+ /**
874
+ * The committed `project.id` of the checkout this write comes from, when it
875
+ * has one (`subscription-delivery-target-plan.md` → slice 3).
876
+ *
877
+ * Only a bundle that claims a home reads it, and then only to answer one
878
+ * question: is this write coming from the repo that owns these items? A
879
+ * request that declares nothing — every dashboard edit — is not the home repo
880
+ * and is refused by name. Declaring an id grants nothing on its own: an
881
+ * unclaimed bundle ignores the field entirely, and the caller must already be
882
+ * a member of the bundle's workspace to reach this route at all.
883
+ */
884
+ readonly projectId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
593
885
  }, undefined>;
594
886
  export declare const PushContextResponseSchema: v.ObjectSchema<{
595
887
  readonly item: v.ObjectSchema<{
@@ -600,9 +892,30 @@ export declare const PushContextResponseSchema: v.ObjectSchema<{
600
892
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
601
893
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
602
894
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
895
+ /**
896
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
897
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
898
+ *
899
+ * Absent on everything else, including a guide itself: a guide member is
900
+ * addressed by the guide's own id, so `id` already answers this for it.
901
+ *
902
+ * It exists because derived items have no bundle membership and no id of their
903
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
904
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
905
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
906
+ * broken half-skill on disk, which is worse than not muting at all.
907
+ */
908
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
603
909
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
604
910
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
605
911
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
912
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
913
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
914
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
915
+ }, undefined>, undefined>, v.MaxLengthAction<{
916
+ root: "project" | "global";
917
+ path: string;
918
+ }[], 8, undefined>]>, undefined>;
606
919
  readonly updatedAt: v.StringSchema<undefined>;
607
920
  }, undefined>;
608
921
  readonly created: v.BooleanSchema<undefined>;
@@ -612,6 +925,13 @@ export declare const UpdateContextItemRequestSchema: v.ObjectSchema<{
612
925
  readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
613
926
  readonly content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 524288 bytes">]>, undefined>;
614
927
  readonly expectedVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
928
+ /**
929
+ * The committed `project.id` of the checkout this write comes from — same
930
+ * meaning and same one use as on `PushContextRequestSchema`: a bundle that
931
+ * claims a home accepts writes only from that repo, and a request declaring
932
+ * nothing is not it.
933
+ */
934
+ readonly projectId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
615
935
  readonly sourceItemIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
616
936
  }, undefined>;
617
937
  export declare const UpdateContextItemResponseSchema: v.ObjectSchema<{
@@ -623,9 +943,30 @@ export declare const UpdateContextItemResponseSchema: v.ObjectSchema<{
623
943
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
624
944
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
625
945
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
946
+ /**
947
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
948
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
949
+ *
950
+ * Absent on everything else, including a guide itself: a guide member is
951
+ * addressed by the guide's own id, so `id` already answers this for it.
952
+ *
953
+ * It exists because derived items have no bundle membership and no id of their
954
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
955
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
956
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
957
+ * broken half-skill on disk, which is worse than not muting at all.
958
+ */
959
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
626
960
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
627
961
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
628
962
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
963
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
964
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
965
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
966
+ }, undefined>, undefined>, v.MaxLengthAction<{
967
+ root: "project" | "global";
968
+ path: string;
969
+ }[], 8, undefined>]>, undefined>;
629
970
  readonly updatedAt: v.StringSchema<undefined>;
630
971
  }, undefined>;
631
972
  readonly updated: v.BooleanSchema<undefined>;
@@ -635,6 +976,13 @@ export declare const UpdateContextItemBodySchema: Omit<v.ObjectSchema<{
635
976
  readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
636
977
  readonly content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 524288 bytes">]>, undefined>;
637
978
  readonly expectedVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
979
+ /**
980
+ * The committed `project.id` of the checkout this write comes from — same
981
+ * meaning and same one use as on `PushContextRequestSchema`: a bundle that
982
+ * claims a home accepts writes only from that repo, and a request declaring
983
+ * nothing is not it.
984
+ */
985
+ readonly projectId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
638
986
  readonly sourceItemIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
639
987
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
640
988
  readonly entries: Omit<{
@@ -642,22 +990,32 @@ export declare const UpdateContextItemBodySchema: Omit<v.ObjectSchema<{
642
990
  readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
643
991
  readonly content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 524288 bytes">]>, undefined>;
644
992
  readonly expectedVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
993
+ /**
994
+ * The committed `project.id` of the checkout this write comes from — same
995
+ * meaning and same one use as on `PushContextRequestSchema`: a bundle that
996
+ * claims a home accepts writes only from that repo, and a request declaring
997
+ * nothing is not it.
998
+ */
999
+ readonly projectId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
645
1000
  readonly sourceItemIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
646
1001
  }, "itemId">;
647
1002
  readonly "~standard": v.StandardProps<{
648
1003
  content?: string | undefined;
649
1004
  expectedVersion?: number | undefined;
1005
+ projectId?: string | undefined;
650
1006
  name?: string | undefined;
651
1007
  sourceItemIds?: string[] | undefined;
652
1008
  }, {
653
1009
  content?: string | undefined;
654
1010
  expectedVersion?: number | undefined;
1011
+ projectId?: string | undefined;
655
1012
  name?: string | undefined;
656
1013
  sourceItemIds?: string[] | undefined;
657
1014
  }>;
658
1015
  readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
659
1016
  content?: string | undefined;
660
1017
  expectedVersion?: number | undefined;
1018
+ projectId?: string | undefined;
661
1019
  name?: string | undefined;
662
1020
  sourceItemIds?: string[] | undefined;
663
1021
  }, v.StringIssue | v.MinLengthIssue<string, 1> | v.CheckIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.ArrayIssue | v.ObjectIssue | v.MinValueIssue<number, 1> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string[], 100>>;
@@ -665,12 +1023,14 @@ export declare const UpdateContextItemBodySchema: Omit<v.ObjectSchema<{
665
1023
  readonly input: {
666
1024
  content?: string | undefined;
667
1025
  expectedVersion?: number | undefined;
1026
+ projectId?: string | undefined;
668
1027
  name?: string | undefined;
669
1028
  sourceItemIds?: string[] | undefined;
670
1029
  };
671
1030
  readonly output: {
672
1031
  content?: string | undefined;
673
1032
  expectedVersion?: number | undefined;
1033
+ projectId?: string | undefined;
674
1034
  name?: string | undefined;
675
1035
  sourceItemIds?: string[] | undefined;
676
1036
  };
@@ -687,9 +1047,30 @@ export declare const ContextItemResponseSchema: v.ObjectSchema<{
687
1047
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
688
1048
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
689
1049
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1050
+ /**
1051
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
1052
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
1053
+ *
1054
+ * Absent on everything else, including a guide itself: a guide member is
1055
+ * addressed by the guide's own id, so `id` already answers this for it.
1056
+ *
1057
+ * It exists because derived items have no bundle membership and no id of their
1058
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
1059
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
1060
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
1061
+ * broken half-skill on disk, which is worse than not muting at all.
1062
+ */
1063
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
690
1064
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
691
1065
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
692
1066
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1067
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1068
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
1069
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
1070
+ }, undefined>, undefined>, v.MaxLengthAction<{
1071
+ root: "project" | "global";
1072
+ path: string;
1073
+ }[], 8, undefined>]>, undefined>;
693
1074
  readonly updatedAt: v.StringSchema<undefined>;
694
1075
  }, undefined>;
695
1076
  }, undefined>;
@@ -703,9 +1084,30 @@ export declare const ArchiveContextItemResponseSchema: v.ObjectSchema<{
703
1084
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
704
1085
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
705
1086
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1087
+ /**
1088
+ * The guide a **derived** item belongs to — its evaluation criteria, or a
1089
+ * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
1090
+ *
1091
+ * Absent on everything else, including a guide itself: a guide member is
1092
+ * addressed by the guide's own id, so `id` already answers this for it.
1093
+ *
1094
+ * It exists because derived items have no bundle membership and no id of their
1095
+ * guide's — they are `guide_files` rows attached by `guide_id` — so a rule
1096
+ * expressed over guide ids (a subscriber's mute) cannot reach them from the
1097
+ * item alone. Muting a skill and still delivering its `scripts/` would leave a
1098
+ * broken half-skill on disk, which is worse than not muting at all.
1099
+ */
1100
+ readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
706
1101
  readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
707
1102
  readonly path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>, undefined>, undefined>;
708
1103
  readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1104
+ readonly aliases: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1105
+ readonly root: v.PicklistSchema<["project", "global"], undefined>;
1106
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">]>;
1107
+ }, undefined>, undefined>, v.MaxLengthAction<{
1108
+ root: "project" | "global";
1109
+ path: string;
1110
+ }[], 8, undefined>]>, undefined>;
709
1111
  readonly updatedAt: v.StringSchema<undefined>;
710
1112
  }, undefined>;
711
1113
  }, undefined>;
@@ -2234,6 +2636,7 @@ export declare function parseBundle(data: unknown): {
2234
2636
  slug: string;
2235
2637
  name: string;
2236
2638
  createdAt: string;
2639
+ home?: string | undefined;
2237
2640
  };
2238
2641
  export declare function parseBundleListResponse(data: unknown): {
2239
2642
  bundles: {
@@ -2241,6 +2644,7 @@ export declare function parseBundleListResponse(data: unknown): {
2241
2644
  slug: string;
2242
2645
  name: string;
2243
2646
  createdAt: string;
2647
+ home?: string | undefined;
2244
2648
  }[];
2245
2649
  };
2246
2650
  export declare function parseWorkspaceListResponse(data: unknown): {
@@ -2262,6 +2666,7 @@ export declare function parseCreateBundleResponse(data: unknown): {
2262
2666
  slug: string;
2263
2667
  name: string;
2264
2668
  createdAt: string;
2669
+ home?: string | undefined;
2265
2670
  };
2266
2671
  };
2267
2672
  export declare function parseAttachBundleMemberRequest(data: unknown): {
@@ -2274,6 +2679,17 @@ export declare function parseAttachBundleMemberResponse(data: unknown): {
2274
2679
  export declare function parseDetachBundleMemberResponse(data: unknown): {
2275
2680
  detached: boolean;
2276
2681
  };
2682
+ export declare function parseSubscribeBundleRequest(data: unknown): {
2683
+ bundleId: string;
2684
+ deliver?: "global" | "repo" | null | undefined;
2685
+ muted?: string[] | undefined;
2686
+ };
2687
+ export declare function parseSubscribeBundleResponse(data: unknown): {
2688
+ bundleId: string;
2689
+ created: boolean;
2690
+ deliver?: "global" | "repo" | undefined;
2691
+ muted?: string[] | undefined;
2692
+ };
2277
2693
  export declare function parseResolveSubscriptionsRequest(data: unknown): {
2278
2694
  repoBundleIds: string[];
2279
2695
  };
@@ -2283,20 +2699,25 @@ export declare function parseResolveSubscriptionsResponse(data: unknown): {
2283
2699
  slug: string;
2284
2700
  name: string;
2285
2701
  scopes: ("repo" | "user")[];
2702
+ deliver?: "global" | "repo" | undefined;
2703
+ home?: string | undefined;
2704
+ muted?: string[] | undefined;
2286
2705
  }[];
2287
2706
  unresolved: {
2288
2707
  id: string;
2289
2708
  }[];
2290
2709
  };
2291
- export declare function parseRenameBundleRequest(data: unknown): {
2292
- name: string;
2710
+ export declare function parseUpdateBundleRequest(data: unknown): {
2711
+ name?: string | undefined;
2712
+ home?: string | null | undefined;
2293
2713
  };
2294
- export declare function parseRenameBundleResponse(data: unknown): {
2714
+ export declare function parseUpdateBundleResponse(data: unknown): {
2295
2715
  bundle: {
2296
2716
  id: string;
2297
2717
  slug: string;
2298
2718
  name: string;
2299
2719
  createdAt: string;
2720
+ home?: string | undefined;
2300
2721
  };
2301
2722
  };
2302
2723
  export declare function parseDeleteBundleResponse(data: unknown): {
@@ -2310,9 +2731,14 @@ export declare function parseContextItem(data: unknown): {
2310
2731
  content: string | null;
2311
2732
  origin?: string | null | undefined;
2312
2733
  version?: number | undefined;
2734
+ guideId?: string | null | undefined;
2313
2735
  root?: "project" | "global" | null | undefined;
2314
2736
  path?: string | null | undefined;
2315
2737
  projectId?: string | null | undefined;
2738
+ aliases?: {
2739
+ root: "project" | "global";
2740
+ path: string;
2741
+ }[] | undefined;
2316
2742
  updatedAt: string;
2317
2743
  };
2318
2744
  export declare function parseContextItemsResponse(data: unknown): {
@@ -2324,9 +2750,14 @@ export declare function parseContextItemsResponse(data: unknown): {
2324
2750
  content: string | null;
2325
2751
  origin?: string | null | undefined;
2326
2752
  version?: number | undefined;
2753
+ guideId?: string | null | undefined;
2327
2754
  root?: "project" | "global" | null | undefined;
2328
2755
  path?: string | null | undefined;
2329
2756
  projectId?: string | null | undefined;
2757
+ aliases?: {
2758
+ root: "project" | "global";
2759
+ path: string;
2760
+ }[] | undefined;
2330
2761
  updatedAt: string;
2331
2762
  }[];
2332
2763
  };
@@ -2338,6 +2769,7 @@ export declare function parsePushContextRequest(data: unknown): {
2338
2769
  origin?: string | null | undefined;
2339
2770
  sourceItemIds?: string[] | undefined;
2340
2771
  path?: string | null | undefined;
2772
+ projectId?: string | undefined;
2341
2773
  };
2342
2774
  export declare function parsePushContextResponse(data: unknown): {
2343
2775
  item: {
@@ -2348,9 +2780,14 @@ export declare function parsePushContextResponse(data: unknown): {
2348
2780
  content: string | null;
2349
2781
  origin?: string | null | undefined;
2350
2782
  version?: number | undefined;
2783
+ guideId?: string | null | undefined;
2351
2784
  root?: "project" | "global" | null | undefined;
2352
2785
  path?: string | null | undefined;
2353
2786
  projectId?: string | null | undefined;
2787
+ aliases?: {
2788
+ root: "project" | "global";
2789
+ path: string;
2790
+ }[] | undefined;
2354
2791
  updatedAt: string;
2355
2792
  };
2356
2793
  created: boolean;
@@ -2360,6 +2797,7 @@ export declare function parseUpdateContextItemRequest(data: unknown): {
2360
2797
  name?: string | undefined;
2361
2798
  content?: string | undefined;
2362
2799
  expectedVersion?: number | undefined;
2800
+ projectId?: string | undefined;
2363
2801
  sourceItemIds?: string[] | undefined;
2364
2802
  };
2365
2803
  export declare function parseUpdateContextItemResponse(data: unknown): {
@@ -2371,9 +2809,14 @@ export declare function parseUpdateContextItemResponse(data: unknown): {
2371
2809
  content: string | null;
2372
2810
  origin?: string | null | undefined;
2373
2811
  version?: number | undefined;
2812
+ guideId?: string | null | undefined;
2374
2813
  root?: "project" | "global" | null | undefined;
2375
2814
  path?: string | null | undefined;
2376
2815
  projectId?: string | null | undefined;
2816
+ aliases?: {
2817
+ root: "project" | "global";
2818
+ path: string;
2819
+ }[] | undefined;
2377
2820
  updatedAt: string;
2378
2821
  };
2379
2822
  updated: boolean;
@@ -2381,6 +2824,7 @@ export declare function parseUpdateContextItemResponse(data: unknown): {
2381
2824
  export declare function parseUpdateContextItemBody(data: unknown): {
2382
2825
  content?: string | undefined;
2383
2826
  expectedVersion?: number | undefined;
2827
+ projectId?: string | undefined;
2384
2828
  name?: string | undefined;
2385
2829
  sourceItemIds?: string[] | undefined;
2386
2830
  };
@@ -2393,9 +2837,14 @@ export declare function parseContextItemResponse(data: unknown): {
2393
2837
  content: string | null;
2394
2838
  origin?: string | null | undefined;
2395
2839
  version?: number | undefined;
2840
+ guideId?: string | null | undefined;
2396
2841
  root?: "project" | "global" | null | undefined;
2397
2842
  path?: string | null | undefined;
2398
2843
  projectId?: string | null | undefined;
2844
+ aliases?: {
2845
+ root: "project" | "global";
2846
+ path: string;
2847
+ }[] | undefined;
2399
2848
  updatedAt: string;
2400
2849
  };
2401
2850
  };
@@ -2409,9 +2858,14 @@ export declare function parseArchiveContextItemResponse(data: unknown): {
2409
2858
  content: string | null;
2410
2859
  origin?: string | null | undefined;
2411
2860
  version?: number | undefined;
2861
+ guideId?: string | null | undefined;
2412
2862
  root?: "project" | "global" | null | undefined;
2413
2863
  path?: string | null | undefined;
2414
2864
  projectId?: string | null | undefined;
2865
+ aliases?: {
2866
+ root: "project" | "global";
2867
+ path: string;
2868
+ }[] | undefined;
2415
2869
  updatedAt: string;
2416
2870
  };
2417
2871
  };