@mossbear/protocol 0.1.0-alpha.117 → 0.1.0-alpha.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/bundles.d.ts +13 -39
  2. package/dist/bundles.d.ts.map +1 -1
  3. package/dist/bundles.js +12 -29
  4. package/dist/bundles.js.map +1 -1
  5. package/dist/bundles.test.js +5 -3
  6. package/dist/bundles.test.js.map +1 -1
  7. package/dist/comments.d.ts +0 -9
  8. package/dist/comments.d.ts.map +1 -1
  9. package/dist/comments.js +0 -8
  10. package/dist/comments.js.map +1 -1
  11. package/dist/frameDocument.d.ts +6 -3
  12. package/dist/frameDocument.d.ts.map +1 -1
  13. package/dist/frameDocument.js +66 -4
  14. package/dist/frameDocument.js.map +1 -1
  15. package/dist/frameDocument.test.js +4 -0
  16. package/dist/frameDocument.test.js.map +1 -1
  17. package/dist/guideImport.d.ts +5 -5
  18. package/dist/guideImport.d.ts.map +1 -1
  19. package/dist/guideImport.js +4 -6
  20. package/dist/guideImport.js.map +1 -1
  21. package/dist/guideImport.test.js +1 -0
  22. package/dist/guideImport.test.js.map +1 -1
  23. package/dist/guideSnapshot.d.ts +0 -3
  24. package/dist/guideSnapshot.d.ts.map +1 -1
  25. package/dist/guideSnapshot.js +0 -1
  26. package/dist/guideSnapshot.js.map +1 -1
  27. package/dist/index.d.ts +0 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +0 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/photos.d.ts +2 -24
  32. package/dist/photos.d.ts.map +1 -1
  33. package/dist/photos.js +1 -24
  34. package/dist/photos.js.map +1 -1
  35. package/dist/photos.test.js +16 -17
  36. package/dist/photos.test.js.map +1 -1
  37. package/dist/schemas.d.ts +87 -308
  38. package/dist/schemas.d.ts.map +1 -1
  39. package/dist/schemas.js +39 -60
  40. package/dist/schemas.js.map +1 -1
  41. package/dist/schemas.test.js +50 -55
  42. package/dist/schemas.test.js.map +1 -1
  43. package/dist/types.d.ts +4 -2
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/types.js.map +1 -1
  46. package/dist/whatSyncs.d.ts.map +1 -1
  47. package/dist/whatSyncs.js +0 -4
  48. package/dist/whatSyncs.js.map +1 -1
  49. package/dist/whatSyncs.test.js +1 -4
  50. package/dist/whatSyncs.test.js.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/steeringOverTime.d.ts +0 -30
  53. package/dist/steeringOverTime.d.ts.map +0 -1
  54. package/dist/steeringOverTime.js +0 -19
  55. package/dist/steeringOverTime.js.map +0 -1
package/dist/schemas.d.ts CHANGED
@@ -277,14 +277,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
277
277
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
278
278
  /** Set when the item is a photo: its stored parts, never their bytes. */
279
279
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
280
- readonly parts: v.ArraySchema<v.ObjectSchema<{
281
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
282
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
283
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
284
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
285
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
286
- }, undefined>, undefined>;
287
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
280
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
288
281
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
289
282
  readonly parts: v.ArraySchema<v.ObjectSchema<{
290
283
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -302,10 +295,10 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
302
295
  width: number;
303
296
  height: number;
304
297
  }[];
305
- }[], 1, undefined>]>, undefined>;
298
+ }[], 1, undefined>]>;
306
299
  }, undefined>, undefined>, undefined>;
307
300
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
308
- readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
301
+ readonly version: v.NumberSchema<undefined>;
309
302
  /**
310
303
  * The guide a **derived** item belongs to — its evaluation criteria, or a
311
304
  * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
@@ -546,14 +539,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
546
539
  content: string | null;
547
540
  description?: string | null | undefined;
548
541
  asset?: {
549
- parts: {
550
- role: "original" | "display" | "thumb";
551
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
552
- bytes: number;
553
- width: number;
554
- height: number;
555
- }[];
556
- images?: {
542
+ images: {
557
543
  id?: string | undefined;
558
544
  parts: {
559
545
  role: "original" | "display" | "thumb";
@@ -562,10 +548,10 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
562
548
  width: number;
563
549
  height: number;
564
550
  }[];
565
- }[] | undefined;
551
+ }[];
566
552
  } | null | undefined;
567
553
  origin?: string | null | undefined;
568
- version?: number | undefined;
554
+ version: number;
569
555
  guideId?: string | null | undefined;
570
556
  executable?: boolean | undefined;
571
557
  root?: "project" | "global" | null | undefined;
@@ -638,14 +624,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
638
624
  content: string | null;
639
625
  description?: string | null | undefined;
640
626
  asset?: {
641
- parts: {
642
- role: "original" | "display" | "thumb";
643
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
644
- bytes: number;
645
- width: number;
646
- height: number;
647
- }[];
648
- images?: {
627
+ images: {
649
628
  id?: string | undefined;
650
629
  parts: {
651
630
  role: "original" | "display" | "thumb";
@@ -654,10 +633,10 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
654
633
  width: number;
655
634
  height: number;
656
635
  }[];
657
- }[] | undefined;
636
+ }[];
658
637
  } | null | undefined;
659
638
  origin?: string | null | undefined;
660
- version?: number | undefined;
639
+ version: number;
661
640
  guideId?: string | null | undefined;
662
641
  executable?: boolean | undefined;
663
642
  root?: "project" | "global" | null | undefined;
@@ -764,14 +743,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
764
743
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
765
744
  /** Set when the item is a photo: its stored parts, never their bytes. */
766
745
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
767
- readonly parts: v.ArraySchema<v.ObjectSchema<{
768
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
769
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
770
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
771
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
772
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
773
- }, undefined>, undefined>;
774
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
746
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
775
747
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
776
748
  readonly parts: v.ArraySchema<v.ObjectSchema<{
777
749
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -789,10 +761,10 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
789
761
  width: number;
790
762
  height: number;
791
763
  }[];
792
- }[], 1, undefined>]>, undefined>;
764
+ }[], 1, undefined>]>;
793
765
  }, undefined>, undefined>, undefined>;
794
766
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
795
- readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
767
+ readonly version: v.NumberSchema<undefined>;
796
768
  /**
797
769
  * The guide a **derived** item belongs to — its evaluation criteria, or a
798
770
  * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
@@ -1033,14 +1005,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
1033
1005
  content: string | null;
1034
1006
  description?: string | null | undefined;
1035
1007
  asset?: {
1036
- parts: {
1037
- role: "original" | "display" | "thumb";
1038
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1039
- bytes: number;
1040
- width: number;
1041
- height: number;
1042
- }[];
1043
- images?: {
1008
+ images: {
1044
1009
  id?: string | undefined;
1045
1010
  parts: {
1046
1011
  role: "original" | "display" | "thumb";
@@ -1049,10 +1014,10 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
1049
1014
  width: number;
1050
1015
  height: number;
1051
1016
  }[];
1052
- }[] | undefined;
1017
+ }[];
1053
1018
  } | null | undefined;
1054
1019
  origin?: string | null | undefined;
1055
- version?: number | undefined;
1020
+ version: number;
1056
1021
  guideId?: string | null | undefined;
1057
1022
  executable?: boolean | undefined;
1058
1023
  root?: "project" | "global" | null | undefined;
@@ -1125,14 +1090,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
1125
1090
  content: string | null;
1126
1091
  description?: string | null | undefined;
1127
1092
  asset?: {
1128
- parts: {
1129
- role: "original" | "display" | "thumb";
1130
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1131
- bytes: number;
1132
- width: number;
1133
- height: number;
1134
- }[];
1135
- images?: {
1093
+ images: {
1136
1094
  id?: string | undefined;
1137
1095
  parts: {
1138
1096
  role: "original" | "display" | "thumb";
@@ -1141,10 +1099,10 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
1141
1099
  width: number;
1142
1100
  height: number;
1143
1101
  }[];
1144
- }[] | undefined;
1102
+ }[];
1145
1103
  } | null | undefined;
1146
1104
  origin?: string | null | undefined;
1147
- version?: number | undefined;
1105
+ version: number;
1148
1106
  guideId?: string | null | undefined;
1149
1107
  executable?: boolean | undefined;
1150
1108
  root?: "project" | "global" | null | undefined;
@@ -1269,14 +1227,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1269
1227
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1270
1228
  /** Set when the item is a photo: its stored parts, never their bytes. */
1271
1229
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1272
- readonly parts: v.ArraySchema<v.ObjectSchema<{
1273
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1274
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1275
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1276
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1277
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1278
- }, undefined>, undefined>;
1279
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1230
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1280
1231
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1281
1232
  readonly parts: v.ArraySchema<v.ObjectSchema<{
1282
1233
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -1294,10 +1245,10 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1294
1245
  width: number;
1295
1246
  height: number;
1296
1247
  }[];
1297
- }[], 1, undefined>]>, undefined>;
1248
+ }[], 1, undefined>]>;
1298
1249
  }, undefined>, undefined>, undefined>;
1299
1250
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1300
- readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1251
+ readonly version: v.NumberSchema<undefined>;
1301
1252
  /**
1302
1253
  * The guide a **derived** item belongs to — its evaluation criteria, or a
1303
1254
  * skill's member files (`subscription-delivery-target-plan.md` → slice 4).
@@ -1538,14 +1489,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1538
1489
  content: string | null;
1539
1490
  description?: string | null | undefined;
1540
1491
  asset?: {
1541
- parts: {
1542
- role: "original" | "display" | "thumb";
1543
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1544
- bytes: number;
1545
- width: number;
1546
- height: number;
1547
- }[];
1548
- images?: {
1492
+ images: {
1549
1493
  id?: string | undefined;
1550
1494
  parts: {
1551
1495
  role: "original" | "display" | "thumb";
@@ -1554,10 +1498,10 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1554
1498
  width: number;
1555
1499
  height: number;
1556
1500
  }[];
1557
- }[] | undefined;
1501
+ }[];
1558
1502
  } | null | undefined;
1559
1503
  origin?: string | null | undefined;
1560
- version?: number | undefined;
1504
+ version: number;
1561
1505
  guideId?: string | null | undefined;
1562
1506
  executable?: boolean | undefined;
1563
1507
  root?: "project" | "global" | null | undefined;
@@ -1630,14 +1574,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1630
1574
  content: string | null;
1631
1575
  description?: string | null | undefined;
1632
1576
  asset?: {
1633
- parts: {
1634
- role: "original" | "display" | "thumb";
1635
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1636
- bytes: number;
1637
- width: number;
1638
- height: number;
1639
- }[];
1640
- images?: {
1577
+ images: {
1641
1578
  id?: string | undefined;
1642
1579
  parts: {
1643
1580
  role: "original" | "display" | "thumb";
@@ -1646,10 +1583,10 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1646
1583
  width: number;
1647
1584
  height: number;
1648
1585
  }[];
1649
- }[] | undefined;
1586
+ }[];
1650
1587
  } | null | undefined;
1651
1588
  origin?: string | null | undefined;
1652
- version?: number | undefined;
1589
+ version: number;
1653
1590
  guideId?: string | null | undefined;
1654
1591
  executable?: boolean | undefined;
1655
1592
  root?: "project" | "global" | null | undefined;
@@ -1719,12 +1656,8 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
1719
1656
  readonly endMarker: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1720
1657
  readonly note: v.StringSchema<undefined>;
1721
1658
  }, undefined>, undefined>, undefined>;
1722
- /**
1723
- * On a paged read (one that sent `after`): the cursor for the next page, or
1724
- * `null` after the last. Absent on an unpaged read, and from a server that
1725
- * predates paging — which is how a reader tells the two apart.
1726
- */
1727
- readonly next: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1659
+ /** The cursor for the next page, or `null` after the last. */
1660
+ readonly next: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1728
1661
  }, undefined>;
1729
1662
  export declare const CaptureIdSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, "id must be at least 8 characters">, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must contain only letters, digits, underscore, dot or hyphen">]>;
1730
1663
  export declare const CaptureRequestSchema: v.ObjectSchema<{
@@ -1741,7 +1674,7 @@ export declare const CaptureRequestSchema: v.ObjectSchema<{
1741
1674
  * dashboard composer.
1742
1675
  */
1743
1676
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 8, "id must be at least 8 characters">, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must contain only letters, digits, underscore, dot or hyphen">]>, undefined>;
1744
- readonly bundleId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1677
+ readonly bundleId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1745
1678
  readonly contentType: v.PicklistSchema<("content" | "asset")[], undefined>;
1746
1679
  readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>;
1747
1680
  readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
@@ -1762,14 +1695,7 @@ export declare const CapturedItemSchema: v.ObjectSchema<{
1762
1695
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1763
1696
  /** Set when the item is a photo: its stored parts, never their bytes. */
1764
1697
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1765
- readonly parts: v.ArraySchema<v.ObjectSchema<{
1766
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1767
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1768
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1769
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1770
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1771
- }, undefined>, undefined>;
1772
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1698
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1773
1699
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1774
1700
  readonly parts: v.ArraySchema<v.ObjectSchema<{
1775
1701
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -1787,7 +1713,7 @@ export declare const CapturedItemSchema: v.ObjectSchema<{
1787
1713
  width: number;
1788
1714
  height: number;
1789
1715
  }[];
1790
- }[], 1, undefined>]>, undefined>;
1716
+ }[], 1, undefined>]>;
1791
1717
  }, undefined>, undefined>, undefined>;
1792
1718
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1793
1719
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -1805,14 +1731,7 @@ export declare const CaptureResponseSchema: v.ObjectSchema<{
1805
1731
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1806
1732
  /** Set when the item is a photo: its stored parts, never their bytes. */
1807
1733
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1808
- readonly parts: v.ArraySchema<v.ObjectSchema<{
1809
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1810
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1811
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1812
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1813
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1814
- }, undefined>, undefined>;
1815
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1734
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1816
1735
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1817
1736
  readonly parts: v.ArraySchema<v.ObjectSchema<{
1818
1737
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -1830,7 +1749,7 @@ export declare const CaptureResponseSchema: v.ObjectSchema<{
1830
1749
  width: number;
1831
1750
  height: number;
1832
1751
  }[];
1833
- }[], 1, undefined>]>, undefined>;
1752
+ }[], 1, undefined>]>;
1834
1753
  }, undefined>, undefined>, undefined>;
1835
1754
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1836
1755
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -1858,14 +1777,7 @@ export declare const BeginPhotoUploadResponseSchema: v.VariantSchema<"state", [v
1858
1777
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1859
1778
  /** Set when the item is a photo: its stored parts, never their bytes. */
1860
1779
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1861
- readonly parts: v.ArraySchema<v.ObjectSchema<{
1862
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1863
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1864
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1865
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1866
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1867
- }, undefined>, undefined>;
1868
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1780
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1869
1781
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1870
1782
  readonly parts: v.ArraySchema<v.ObjectSchema<{
1871
1783
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -1883,7 +1795,7 @@ export declare const BeginPhotoUploadResponseSchema: v.VariantSchema<"state", [v
1883
1795
  width: number;
1884
1796
  height: number;
1885
1797
  }[];
1886
- }[], 1, undefined>]>, undefined>;
1798
+ }[], 1, undefined>]>;
1887
1799
  }, undefined>, undefined>, undefined>;
1888
1800
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1889
1801
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -2134,14 +2046,7 @@ export declare const ArtifactSchema: v.ObjectSchema<{
2134
2046
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
2135
2047
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
2136
2048
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2137
- readonly parts: v.ArraySchema<v.ObjectSchema<{
2138
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
2139
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
2140
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2141
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2142
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2143
- }, undefined>, undefined>;
2144
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2049
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2145
2050
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
2146
2051
  readonly parts: v.ArraySchema<v.ObjectSchema<{
2147
2052
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -2159,7 +2064,7 @@ export declare const ArtifactSchema: v.ObjectSchema<{
2159
2064
  width: number;
2160
2065
  height: number;
2161
2066
  }[];
2162
- }[], 1, undefined>]>, undefined>;
2067
+ }[], 1, undefined>]>;
2163
2068
  }, undefined>, undefined>, undefined>;
2164
2069
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
2165
2070
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -2321,14 +2226,7 @@ export declare const ArtifactMetadataSchema: v.StrictObjectSchema<Omit<{
2321
2226
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
2322
2227
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
2323
2228
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2324
- readonly parts: v.ArraySchema<v.ObjectSchema<{
2325
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
2326
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
2327
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2328
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2329
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2330
- }, undefined>, undefined>;
2331
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2229
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2332
2230
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
2333
2231
  readonly parts: v.ArraySchema<v.ObjectSchema<{
2334
2232
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -2346,7 +2244,7 @@ export declare const ArtifactMetadataSchema: v.StrictObjectSchema<Omit<{
2346
2244
  width: number;
2347
2245
  height: number;
2348
2246
  }[];
2349
- }[], 1, undefined>]>, undefined>;
2247
+ }[], 1, undefined>]>;
2350
2248
  }, undefined>, undefined>, undefined>;
2351
2249
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
2352
2250
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -3296,14 +3194,7 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
3296
3194
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
3297
3195
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
3298
3196
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3299
- readonly parts: v.ArraySchema<v.ObjectSchema<{
3300
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3301
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3302
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3303
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3304
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3305
- }, undefined>, undefined>;
3306
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3197
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3307
3198
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
3308
3199
  readonly parts: v.ArraySchema<v.ObjectSchema<{
3309
3200
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -3321,7 +3212,7 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
3321
3212
  width: number;
3322
3213
  height: number;
3323
3214
  }[];
3324
- }[], 1, undefined>]>, undefined>;
3215
+ }[], 1, undefined>]>;
3325
3216
  }, undefined>, undefined>, undefined>;
3326
3217
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
3327
3218
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -3522,14 +3413,7 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
3522
3413
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
3523
3414
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
3524
3415
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3525
- readonly parts: v.ArraySchema<v.ObjectSchema<{
3526
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3527
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3528
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3529
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3530
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3531
- }, undefined>, undefined>;
3532
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3416
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3533
3417
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
3534
3418
  readonly parts: v.ArraySchema<v.ObjectSchema<{
3535
3419
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -3547,7 +3431,7 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
3547
3431
  width: number;
3548
3432
  height: number;
3549
3433
  }[];
3550
- }[], 1, undefined>]>, undefined>;
3434
+ }[], 1, undefined>]>;
3551
3435
  }, undefined>, undefined>, undefined>;
3552
3436
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
3553
3437
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -3710,14 +3594,7 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
3710
3594
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
3711
3595
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
3712
3596
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3713
- readonly parts: v.ArraySchema<v.ObjectSchema<{
3714
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3715
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3716
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3717
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3718
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3719
- }, undefined>, undefined>;
3720
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3597
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3721
3598
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
3722
3599
  readonly parts: v.ArraySchema<v.ObjectSchema<{
3723
3600
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -3735,7 +3612,7 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
3735
3612
  width: number;
3736
3613
  height: number;
3737
3614
  }[];
3738
- }[], 1, undefined>]>, undefined>;
3615
+ }[], 1, undefined>]>;
3739
3616
  }, undefined>, undefined>, undefined>;
3740
3617
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
3741
3618
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -3917,8 +3794,6 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
3917
3794
  readonly comments: v.OptionalSchema<v.LiteralSchema<"none", undefined>, undefined>;
3918
3795
  /** Omit bodies and comments without fetching external source bytes. */
3919
3796
  readonly view: v.OptionalSchema<v.LiteralSchema<"metadata", undefined>, undefined>;
3920
- /** The CLI release asking, so thread replies reach only one that renders them. */
3921
- readonly cli: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
3922
3797
  }, undefined>, v.CheckAction<{
3923
3798
  inbox?: "true" | "false" | undefined;
3924
3799
  trash?: "true" | "false" | undefined;
@@ -3929,7 +3804,6 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
3929
3804
  cursor?: string | undefined;
3930
3805
  comments?: "none" | undefined;
3931
3806
  view?: "metadata" | undefined;
3932
- cli?: string | undefined;
3933
3807
  }, "The inbox holds only unfiled captures, so inbox and bundle cannot be combined.">, v.CheckAction<{
3934
3808
  inbox?: "true" | "false" | undefined;
3935
3809
  trash?: "true" | "false" | undefined;
@@ -3940,7 +3814,6 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
3940
3814
  cursor?: string | undefined;
3941
3815
  comments?: "none" | undefined;
3942
3816
  view?: "metadata" | undefined;
3943
- cli?: string | undefined;
3944
3817
  }, "Trash and Inbox cannot be combined.">, v.TransformAction<{
3945
3818
  inbox?: "true" | "false" | undefined;
3946
3819
  trash?: "true" | "false" | undefined;
@@ -3951,7 +3824,6 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
3951
3824
  cursor?: string | undefined;
3952
3825
  comments?: "none" | undefined;
3953
3826
  view?: "metadata" | undefined;
3954
- cli?: string | undefined;
3955
3827
  }, {
3956
3828
  inbox: boolean;
3957
3829
  trash: boolean;
@@ -3962,7 +3834,6 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
3962
3834
  cursor?: string | undefined;
3963
3835
  comments?: "none" | undefined;
3964
3836
  view?: "metadata" | undefined;
3965
- cli?: string | undefined;
3966
3837
  }>]>;
3967
3838
  export type ListArtifactsQuery = v.InferOutput<typeof ListArtifactsQuerySchema>;
3968
3839
  /**
@@ -3979,14 +3850,7 @@ export declare const ListArtifactsResponseSchema: v.ObjectSchema<{
3979
3850
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
3980
3851
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
3981
3852
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3982
- readonly parts: v.ArraySchema<v.ObjectSchema<{
3983
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3984
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3985
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3986
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3987
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3988
- }, undefined>, undefined>;
3989
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3853
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
3990
3854
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
3991
3855
  readonly parts: v.ArraySchema<v.ObjectSchema<{
3992
3856
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -4004,7 +3868,7 @@ export declare const ListArtifactsResponseSchema: v.ObjectSchema<{
4004
3868
  width: number;
4005
3869
  height: number;
4006
3870
  }[];
4007
- }[], 1, undefined>]>, undefined>;
3871
+ }[], 1, undefined>]>;
4008
3872
  }, undefined>, undefined>, undefined>;
4009
3873
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4010
3874
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -4177,14 +4041,7 @@ export declare const ListArtifactMetadataResponseSchema: v.ObjectSchema<{
4177
4041
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
4178
4042
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
4179
4043
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4180
- readonly parts: v.ArraySchema<v.ObjectSchema<{
4181
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4182
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4183
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4184
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4185
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4186
- }, undefined>, undefined>;
4187
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4044
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4188
4045
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4189
4046
  readonly parts: v.ArraySchema<v.ObjectSchema<{
4190
4047
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -4202,7 +4059,7 @@ export declare const ListArtifactMetadataResponseSchema: v.ObjectSchema<{
4202
4059
  width: number;
4203
4060
  height: number;
4204
4061
  }[];
4205
- }[], 1, undefined>]>, undefined>;
4062
+ }[], 1, undefined>]>;
4206
4063
  }, undefined>, undefined>, undefined>;
4207
4064
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4208
4065
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -4537,14 +4394,7 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
4537
4394
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
4538
4395
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
4539
4396
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4540
- readonly parts: v.ArraySchema<v.ObjectSchema<{
4541
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4542
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4543
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4544
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4545
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4546
- }, undefined>, undefined>;
4547
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4397
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4548
4398
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4549
4399
  readonly parts: v.ArraySchema<v.ObjectSchema<{
4550
4400
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -4562,7 +4412,7 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
4562
4412
  width: number;
4563
4413
  height: number;
4564
4414
  }[];
4565
- }[], 1, undefined>]>, undefined>;
4415
+ }[], 1, undefined>]>;
4566
4416
  }, undefined>, undefined>, undefined>;
4567
4417
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4568
4418
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -4715,6 +4565,24 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
4715
4565
  readonly updatedAt: v.StringSchema<undefined>;
4716
4566
  }, undefined>;
4717
4567
  }, undefined>;
4568
+ /** What an agent can pin: an artifact or a bundle. Sessions pin from the dashboard. */
4569
+ export declare const PinTargetTypeSchema: v.PicklistSchema<["artifact", "bundle"], undefined>;
4570
+ /**
4571
+ * `POST /api/v1/pins`: `pinned: true` pins the target in the caller's own
4572
+ * sidebar, after their last pin; `false` unpins it. Either is a state, so a
4573
+ * repeat changes nothing.
4574
+ */
4575
+ export declare const PinRequestSchema: v.StrictObjectSchema<{
4576
+ readonly targetType: v.PicklistSchema<["artifact", "bundle"], undefined>;
4577
+ readonly targetId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
4578
+ readonly pinned: v.BooleanSchema<undefined>;
4579
+ }, undefined>;
4580
+ /** The target and whether it is pinned now. */
4581
+ export declare const PinResponseSchema: v.ObjectSchema<{
4582
+ readonly targetType: v.PicklistSchema<["artifact", "bundle"], undefined>;
4583
+ readonly targetId: v.StringSchema<undefined>;
4584
+ readonly pinned: v.BooleanSchema<undefined>;
4585
+ }, undefined>;
4718
4586
  /** The artifact after Delete, `state: 'deleted'`. */
4719
4587
  export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
4720
4588
  readonly deleted: v.LiteralSchema<true, undefined>;
@@ -4727,14 +4595,7 @@ export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
4727
4595
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
4728
4596
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
4729
4597
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4730
- readonly parts: v.ArraySchema<v.ObjectSchema<{
4731
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4732
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4733
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4734
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4735
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4736
- }, undefined>, undefined>;
4737
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4598
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4738
4599
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4739
4600
  readonly parts: v.ArraySchema<v.ObjectSchema<{
4740
4601
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -4752,7 +4613,7 @@ export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
4752
4613
  width: number;
4753
4614
  height: number;
4754
4615
  }[];
4755
- }[], 1, undefined>]>, undefined>;
4616
+ }[], 1, undefined>]>;
4756
4617
  }, undefined>, undefined>, undefined>;
4757
4618
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4758
4619
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -4916,14 +4777,7 @@ export declare const WithdrawArtifactResponseSchema: v.ObjectSchema<{
4916
4777
  readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
4917
4778
  /** Set when the artifact is a photo: its stored parts, never their bytes. */
4918
4779
  readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4919
- readonly parts: v.ArraySchema<v.ObjectSchema<{
4920
- readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4921
- readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4922
- readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4923
- readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4924
- readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4925
- }, undefined>, undefined>;
4926
- readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4780
+ readonly images: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4927
4781
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4928
4782
  readonly parts: v.ArraySchema<v.ObjectSchema<{
4929
4783
  readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
@@ -4941,7 +4795,7 @@ export declare const WithdrawArtifactResponseSchema: v.ObjectSchema<{
4941
4795
  width: number;
4942
4796
  height: number;
4943
4797
  }[];
4944
- }[], 1, undefined>]>, undefined>;
4798
+ }[], 1, undefined>]>;
4945
4799
  }, undefined>, undefined>, undefined>;
4946
4800
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4947
4801
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
@@ -5667,21 +5521,9 @@ export declare const DashboardSyncActionSchema: v.ObjectSchema<{
5667
5521
  readonly assistantText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>, v.CheckAction<string, "narration must not contain a code block — code is stripped structurally on the client before upload">]>, undefined>;
5668
5522
  }, undefined>, undefined>;
5669
5523
  }, undefined>;
5670
- export declare const DashboardGuideSuggestionSchema: v.ObjectSchema<{
5671
- readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5672
- readonly content: v.StringSchema<undefined>;
5673
- readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5674
- readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
5675
- readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
5676
- readonly agentSessionId: v.StringSchema<undefined>;
5677
- readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5678
- readonly summary: v.StringSchema<undefined>;
5679
- }, undefined>], undefined>, undefined>, undefined>;
5680
- readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "dismissed"], undefined>, undefined>;
5681
- }, undefined>;
5682
5524
  /** Max number of actions accepted in a single `POST /api/sync` request. */
5683
5525
  export declare const MAX_SYNC_ACTIONS_BATCH = 500;
5684
- /** Max number of guideSuggestions/runUsage entries per sync request. */
5526
+ /** Max number of runUsage/skillUsage entries per sync request. */
5685
5527
  export declare const MAX_SYNC_AUX_BATCH = 100;
5686
5528
  /**
5687
5529
  * Where the checkout stood when a session closed — the git head the `SessionEnd`
@@ -5704,8 +5546,7 @@ export declare const MAX_SYNC_AUX_BATCH = 100;
5704
5546
  * There is deliberately no `prNumber` here. It is the one part of the anchor
5705
5547
  * that is not free: no environment variable in a real cloud agent session names
5706
5548
  * a PR (checked 2026-08-22 — see the spec's Open questions), so a wire field
5707
- * for it would be protocol surface no producer ever fills. `sessions.pr_number`
5708
- * exists as a reserved column; the wire waits for a mechanism.
5549
+ * for it would be protocol surface no producer ever fills.
5709
5550
  *
5710
5551
  * Not a per-action field and not a per-session map: it describes the machine
5711
5552
  * and the checkout at one instant, the way `RuleFileManifestSchema` does, and
@@ -5914,29 +5755,6 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
5914
5755
  assistantText?: string | undefined;
5915
5756
  } | undefined;
5916
5757
  }[], 500, undefined>]>, undefined>;
5917
- readonly guideSuggestions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
5918
- readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5919
- readonly content: v.StringSchema<undefined>;
5920
- readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5921
- readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
5922
- readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
5923
- readonly agentSessionId: v.StringSchema<undefined>;
5924
- readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5925
- readonly summary: v.StringSchema<undefined>;
5926
- }, undefined>], undefined>, undefined>, undefined>;
5927
- readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "dismissed"], undefined>, undefined>;
5928
- }, undefined>, undefined>, v.MaxLengthAction<{
5929
- id?: string | undefined;
5930
- content: string;
5931
- reasoning?: string | undefined;
5932
- triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
5933
- sourceActionIds?: (string | {
5934
- agentSessionId: string;
5935
- timestamp?: string | undefined;
5936
- summary: string;
5937
- })[] | undefined;
5938
- status?: "pending" | "accepted" | "dismissed" | undefined;
5939
- }[], 100, undefined>]>, undefined>;
5940
5758
  readonly runUsage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
5941
5759
  readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5942
5760
  readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -6354,11 +6172,6 @@ export declare const ArtifactFeedbackQuerySchema: v.ObjectSchema<{
6354
6172
  * correction drafted for one repo is withheld, as on the comments read.
6355
6173
  */
6356
6174
  readonly project: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
6357
- /**
6358
- * The release asking. Replies on a thread are sent only to one that renders
6359
- * threads; without it the page is roots only, as it was.
6360
- */
6361
- readonly cli: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
6362
6175
  }, undefined>;
6363
6176
  export type ArtifactFeedbackQuery = v.InferOutput<typeof ArtifactFeedbackQuerySchema>;
6364
6177
  /**
@@ -6542,7 +6355,7 @@ export type ArtifactFeedbackResponse = v.InferOutput<typeof ArtifactFeedbackResp
6542
6355
  /**
6543
6356
  * `POST /api/v1/artifacts/feedback` body: several artifacts read at once, each
6544
6357
  * paged as `GET .../:id/feedback` pages it (`cursor` is that artifact's own
6545
- * `nextCursor`). `project` and `cli` mean what they mean on the single read.
6358
+ * `nextCursor`). `project` means what it means on the single read.
6546
6359
  */
6547
6360
  export declare const ArtifactFeedbackBatchRequestSchema: v.ObjectSchema<{
6548
6361
  readonly artifacts: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
@@ -6556,7 +6369,6 @@ export declare const ArtifactFeedbackBatchRequestSchema: v.ObjectSchema<{
6556
6369
  cursor?: string | undefined;
6557
6370
  }[], 25, undefined>]>;
6558
6371
  readonly project: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
6559
- readonly cli: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
6560
6372
  }, undefined>;
6561
6373
  export type ArtifactFeedbackBatchRequest = v.InferOutput<typeof ArtifactFeedbackBatchRequestSchema>;
6562
6374
  /**
@@ -6758,14 +6570,7 @@ export declare function parseContextItemsResponse(data: unknown): {
6758
6570
  content: string | null;
6759
6571
  description?: string | null | undefined;
6760
6572
  asset?: {
6761
- parts: {
6762
- role: "original" | "display" | "thumb";
6763
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6764
- bytes: number;
6765
- width: number;
6766
- height: number;
6767
- }[];
6768
- images?: {
6573
+ images: {
6769
6574
  id?: string | undefined;
6770
6575
  parts: {
6771
6576
  role: "original" | "display" | "thumb";
@@ -6774,10 +6579,10 @@ export declare function parseContextItemsResponse(data: unknown): {
6774
6579
  width: number;
6775
6580
  height: number;
6776
6581
  }[];
6777
- }[] | undefined;
6582
+ }[];
6778
6583
  } | null | undefined;
6779
6584
  origin?: string | null | undefined;
6780
- version?: number | undefined;
6585
+ version: number;
6781
6586
  guideId?: string | null | undefined;
6782
6587
  executable?: boolean | undefined;
6783
6588
  root?: "project" | "global" | null | undefined;
@@ -6860,14 +6665,7 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
6860
6665
  content: string | null;
6861
6666
  description?: string | null | undefined;
6862
6667
  asset?: {
6863
- parts: {
6864
- role: "original" | "display" | "thumb";
6865
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6866
- bytes: number;
6867
- width: number;
6868
- height: number;
6869
- }[];
6870
- images?: {
6668
+ images: {
6871
6669
  id?: string | undefined;
6872
6670
  parts: {
6873
6671
  role: "original" | "display" | "thumb";
@@ -6876,10 +6674,10 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
6876
6674
  width: number;
6877
6675
  height: number;
6878
6676
  }[];
6879
- }[] | undefined;
6677
+ }[];
6880
6678
  } | null | undefined;
6881
6679
  origin?: string | null | undefined;
6882
- version?: number | undefined;
6680
+ version: number;
6883
6681
  guideId?: string | null | undefined;
6884
6682
  executable?: boolean | undefined;
6885
6683
  root?: "project" | "global" | null | undefined;
@@ -6949,11 +6747,11 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
6949
6747
  endMarker: string;
6950
6748
  note: string;
6951
6749
  } | null | undefined;
6952
- next?: string | null | undefined;
6750
+ next: string | null;
6953
6751
  };
6954
6752
  export declare function parseCaptureRequest(data: unknown): {
6955
6753
  id?: string | undefined;
6956
- bundleId?: string | null | undefined;
6754
+ bundleId: string | null;
6957
6755
  contentType: "content" | "asset";
6958
6756
  content: string;
6959
6757
  name?: string | undefined;
@@ -6968,14 +6766,7 @@ export declare function parseCaptureResponse(data: unknown): {
6968
6766
  format: string | null;
6969
6767
  content: string | null;
6970
6768
  asset?: {
6971
- parts: {
6972
- role: "original" | "display" | "thumb";
6973
- mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6974
- bytes: number;
6975
- width: number;
6976
- height: number;
6977
- }[];
6978
- images?: {
6769
+ images: {
6979
6770
  id?: string | undefined;
6980
6771
  parts: {
6981
6772
  role: "original" | "display" | "thumb";
@@ -6984,7 +6775,7 @@ export declare function parseCaptureResponse(data: unknown): {
6984
6775
  width: number;
6985
6776
  height: number;
6986
6777
  }[];
6987
- }[] | undefined;
6778
+ }[];
6988
6779
  } | null | undefined;
6989
6780
  source?: string | null | undefined;
6990
6781
  version?: number | undefined;
@@ -7028,18 +6819,6 @@ export declare function parseDashboardSyncRequest(data: unknown): {
7028
6819
  assistantText?: string | undefined;
7029
6820
  } | undefined;
7030
6821
  }[] | undefined;
7031
- guideSuggestions?: {
7032
- id?: string | undefined;
7033
- content: string;
7034
- reasoning?: string | undefined;
7035
- triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
7036
- sourceActionIds?: (string | {
7037
- agentSessionId: string;
7038
- timestamp?: string | undefined;
7039
- summary: string;
7040
- })[] | undefined;
7041
- status?: "pending" | "accepted" | "dismissed" | undefined;
7042
- }[] | undefined;
7043
6822
  runUsage?: {
7044
6823
  sessionId?: string | undefined;
7045
6824
  agentSessionId: string;