@mossbear/protocol 0.1.0-alpha.96 → 0.1.0-alpha.98

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
@@ -415,12 +415,6 @@ export declare const GuideImportAliasForkSchema: v.ObjectSchema<{
415
415
  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>]>;
416
416
  }, undefined>;
417
417
  export type GuideImportAliasFork = v.InferOutput<typeof GuideImportAliasForkSchema>;
418
- export declare const RawGuideFileDeletionSchema: v.ObjectSchema<{
419
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
420
- readonly format: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
421
- }, undefined>;
422
- /** Max number of deletions accepted in a single `POST /api/rules/deletions` request. */
423
- export declare const MAX_RULE_DELETIONS_BATCH = 500;
424
418
  /**
425
419
  * One guide to stop delivering, addressed the way the **import** route already
426
420
  * resolves an existing guide: `(root, path)` plus the envelope's checkout and
@@ -510,9 +504,6 @@ export declare function parseRuleUnlinkRequest(data: unknown): {
510
504
  repoId?: string | undefined;
511
505
  projectId?: string | undefined;
512
506
  };
513
- export declare const RuleDeletionsRequestSchema: v.ObjectSchema<{
514
- readonly deletions: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.MaxLengthAction<unknown[], 500, undefined>]>;
515
- }, undefined>;
516
507
  /**
517
508
  * The sentence a caller gets back when a display name carries a character that
518
509
  * cannot be seen. It is written for the person who typed the name, not for the
@@ -1445,6 +1436,16 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1445
1436
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1446
1437
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1447
1438
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1439
+ /** Set when the item is a photo: its stored parts, never their bytes. */
1440
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1441
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
1442
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1443
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1444
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1445
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1446
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1447
+ }, undefined>, undefined>;
1448
+ }, undefined>, undefined>, undefined>;
1448
1449
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1449
1450
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1450
1451
  /**
@@ -1615,7 +1616,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1615
1616
  } | undefined;
1616
1617
  body: string;
1617
1618
  finding?: {
1618
- tier: "observed" | "usage" | "practice";
1619
+ tier: "usage" | "observed" | "practice";
1619
1620
  tierLine: string;
1620
1621
  blindSpot: string;
1621
1622
  prediction: string | null;
@@ -1725,6 +1726,15 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1725
1726
  role: string | null;
1726
1727
  format: string | null;
1727
1728
  content: string | null;
1729
+ asset?: {
1730
+ parts: {
1731
+ role: "original" | "display" | "thumb";
1732
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1733
+ bytes: number;
1734
+ width: number;
1735
+ height: number;
1736
+ }[];
1737
+ } | null | undefined;
1728
1738
  origin?: string | null | undefined;
1729
1739
  version?: number | undefined;
1730
1740
  guideId?: string | null | undefined;
@@ -1749,7 +1759,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1749
1759
  } | undefined;
1750
1760
  body: string;
1751
1761
  finding?: {
1752
- tier: "observed" | "usage" | "practice";
1762
+ tier: "usage" | "observed" | "practice";
1753
1763
  tierLine: string;
1754
1764
  blindSpot: string;
1755
1765
  prediction: string | null;
@@ -1783,6 +1793,15 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1783
1793
  role: string | null;
1784
1794
  format: string | null;
1785
1795
  content: string | null;
1796
+ asset?: {
1797
+ parts: {
1798
+ role: "original" | "display" | "thumb";
1799
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1800
+ bytes: number;
1801
+ width: number;
1802
+ height: number;
1803
+ }[];
1804
+ } | null | undefined;
1786
1805
  origin?: string | null | undefined;
1787
1806
  version?: number | undefined;
1788
1807
  guideId?: string | null | undefined;
@@ -1807,7 +1826,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1807
1826
  } | undefined;
1808
1827
  body: string;
1809
1828
  finding?: {
1810
- tier: "observed" | "usage" | "practice";
1829
+ tier: "usage" | "observed" | "practice";
1811
1830
  tierLine: string;
1812
1831
  blindSpot: string;
1813
1832
  prediction: string | null;
@@ -1868,6 +1887,16 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
1868
1887
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1869
1888
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1870
1889
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1890
+ /** Set when the item is a photo: its stored parts, never their bytes. */
1891
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1892
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
1893
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1894
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1895
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1896
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1897
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1898
+ }, undefined>, undefined>;
1899
+ }, undefined>, undefined>, undefined>;
1871
1900
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1872
1901
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1873
1902
  /**
@@ -2038,7 +2067,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2038
2067
  } | undefined;
2039
2068
  body: string;
2040
2069
  finding?: {
2041
- tier: "observed" | "usage" | "practice";
2070
+ tier: "usage" | "observed" | "practice";
2042
2071
  tierLine: string;
2043
2072
  blindSpot: string;
2044
2073
  prediction: string | null;
@@ -2148,6 +2177,15 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2148
2177
  role: string | null;
2149
2178
  format: string | null;
2150
2179
  content: string | null;
2180
+ asset?: {
2181
+ parts: {
2182
+ role: "original" | "display" | "thumb";
2183
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2184
+ bytes: number;
2185
+ width: number;
2186
+ height: number;
2187
+ }[];
2188
+ } | null | undefined;
2151
2189
  origin?: string | null | undefined;
2152
2190
  version?: number | undefined;
2153
2191
  guideId?: string | null | undefined;
@@ -2172,7 +2210,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2172
2210
  } | undefined;
2173
2211
  body: string;
2174
2212
  finding?: {
2175
- tier: "observed" | "usage" | "practice";
2213
+ tier: "usage" | "observed" | "practice";
2176
2214
  tierLine: string;
2177
2215
  blindSpot: string;
2178
2216
  prediction: string | null;
@@ -2206,6 +2244,15 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2206
2244
  role: string | null;
2207
2245
  format: string | null;
2208
2246
  content: string | null;
2247
+ asset?: {
2248
+ parts: {
2249
+ role: "original" | "display" | "thumb";
2250
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2251
+ bytes: number;
2252
+ width: number;
2253
+ height: number;
2254
+ }[];
2255
+ } | null | undefined;
2209
2256
  origin?: string | null | undefined;
2210
2257
  version?: number | undefined;
2211
2258
  guideId?: string | null | undefined;
@@ -2230,7 +2277,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2230
2277
  } | undefined;
2231
2278
  body: string;
2232
2279
  finding?: {
2233
- tier: "observed" | "usage" | "practice";
2280
+ tier: "usage" | "observed" | "practice";
2234
2281
  tierLine: string;
2235
2282
  blindSpot: string;
2236
2283
  prediction: string | null;
@@ -2307,6 +2354,16 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2307
2354
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2308
2355
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2309
2356
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2357
+ /** Set when the item is a photo: its stored parts, never their bytes. */
2358
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2359
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
2360
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
2361
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
2362
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2363
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2364
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2365
+ }, undefined>, undefined>;
2366
+ }, undefined>, undefined>, undefined>;
2310
2367
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2311
2368
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2312
2369
  /**
@@ -2477,7 +2534,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2477
2534
  } | undefined;
2478
2535
  body: string;
2479
2536
  finding?: {
2480
- tier: "observed" | "usage" | "practice";
2537
+ tier: "usage" | "observed" | "practice";
2481
2538
  tierLine: string;
2482
2539
  blindSpot: string;
2483
2540
  prediction: string | null;
@@ -2587,6 +2644,15 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2587
2644
  role: string | null;
2588
2645
  format: string | null;
2589
2646
  content: string | null;
2647
+ asset?: {
2648
+ parts: {
2649
+ role: "original" | "display" | "thumb";
2650
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2651
+ bytes: number;
2652
+ width: number;
2653
+ height: number;
2654
+ }[];
2655
+ } | null | undefined;
2590
2656
  origin?: string | null | undefined;
2591
2657
  version?: number | undefined;
2592
2658
  guideId?: string | null | undefined;
@@ -2611,7 +2677,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2611
2677
  } | undefined;
2612
2678
  body: string;
2613
2679
  finding?: {
2614
- tier: "observed" | "usage" | "practice";
2680
+ tier: "usage" | "observed" | "practice";
2615
2681
  tierLine: string;
2616
2682
  blindSpot: string;
2617
2683
  prediction: string | null;
@@ -2645,6 +2711,15 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2645
2711
  role: string | null;
2646
2712
  format: string | null;
2647
2713
  content: string | null;
2714
+ asset?: {
2715
+ parts: {
2716
+ role: "original" | "display" | "thumb";
2717
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2718
+ bytes: number;
2719
+ width: number;
2720
+ height: number;
2721
+ }[];
2722
+ } | null | undefined;
2648
2723
  origin?: string | null | undefined;
2649
2724
  version?: number | undefined;
2650
2725
  guideId?: string | null | undefined;
@@ -2669,7 +2744,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2669
2744
  } | undefined;
2670
2745
  body: string;
2671
2746
  finding?: {
2672
- tier: "observed" | "usage" | "practice";
2747
+ tier: "usage" | "observed" | "practice";
2673
2748
  tierLine: string;
2674
2749
  blindSpot: string;
2675
2750
  prediction: string | null;
@@ -3381,6 +3456,16 @@ export declare const InboxItemSchema: v.ObjectSchema<{
3381
3456
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3382
3457
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3383
3458
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3459
+ /** Set when the item is a photo: its stored parts, never their bytes. */
3460
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3461
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
3462
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3463
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3464
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3465
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3466
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3467
+ }, undefined>, undefined>;
3468
+ }, undefined>, undefined>, undefined>;
3384
3469
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3385
3470
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3386
3471
  readonly capturedAt: v.StringSchema<undefined>;
@@ -3395,6 +3480,16 @@ export declare const InboxCaptureResponseSchema: v.ObjectSchema<{
3395
3480
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3396
3481
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3397
3482
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3483
+ /** Set when the item is a photo: its stored parts, never their bytes. */
3484
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3485
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
3486
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3487
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3488
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3489
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3490
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3491
+ }, undefined>, undefined>;
3492
+ }, undefined>, undefined>, undefined>;
3398
3493
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3399
3494
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3400
3495
  readonly capturedAt: v.StringSchema<undefined>;
@@ -3410,12 +3505,57 @@ export declare const InboxListResponseSchema: v.ObjectSchema<{
3410
3505
  readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3411
3506
  readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3412
3507
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3508
+ /** Set when the item is a photo: its stored parts, never their bytes. */
3509
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3510
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
3511
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3512
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3513
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3514
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3515
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3516
+ }, undefined>, undefined>;
3517
+ }, undefined>, undefined>, undefined>;
3413
3518
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3414
3519
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3415
3520
  readonly capturedAt: v.StringSchema<undefined>;
3416
3521
  readonly updatedAt: v.StringSchema<undefined>;
3417
3522
  }, undefined>, undefined>;
3418
3523
  }, undefined>;
3524
+ /**
3525
+ * `POST /api/v1/context/inbox/assets`: the attempt to stage parts into, or —
3526
+ * for a begin replayed after the capture committed — the item it became.
3527
+ */
3528
+ export declare const BeginPhotoUploadResponseSchema: v.VariantSchema<"state", [v.ObjectSchema<{
3529
+ readonly state: v.LiteralSchema<"reserved", undefined>;
3530
+ readonly attemptId: v.StringSchema<undefined>;
3531
+ readonly expiresAt: v.StringSchema<undefined>;
3532
+ }, undefined>, v.ObjectSchema<{
3533
+ readonly state: v.LiteralSchema<"committed", undefined>;
3534
+ readonly item: v.ObjectSchema<{
3535
+ readonly id: v.StringSchema<undefined>;
3536
+ readonly type: v.PicklistSchema<string[], undefined>;
3537
+ readonly name: v.StringSchema<undefined>;
3538
+ /** The stored pair, as {@link ContextItemSchema} carries it. */
3539
+ readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3540
+ readonly format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3541
+ readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3542
+ /** Set when the item is a photo: its stored parts, never their bytes. */
3543
+ readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3544
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
3545
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
3546
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
3547
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3548
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3549
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3550
+ }, undefined>, undefined>;
3551
+ }, undefined>, undefined>, undefined>;
3552
+ readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3553
+ readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3554
+ readonly capturedAt: v.StringSchema<undefined>;
3555
+ readonly updatedAt: v.StringSchema<undefined>;
3556
+ }, undefined>;
3557
+ }, undefined>], undefined>;
3558
+ export type BeginPhotoUploadResponse = v.InferOutput<typeof BeginPhotoUploadResponseSchema>;
3419
3559
  /** Max number of ids accepted in a single `POST /api/v1/context/inbox/archive` request. */
3420
3560
  export declare const MAX_INBOX_ARCHIVE_BATCH = 500;
3421
3561
  export declare const InboxArchiveRequestSchema: v.ObjectSchema<{
@@ -3646,6 +3786,12 @@ export declare const ArtifactSchema: v.ObjectSchema<{
3646
3786
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
3647
3787
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
3648
3788
  readonly capture: v.BooleanSchema<undefined>;
3789
+ /**
3790
+ * When a capture was marked done, which takes it out of the inbox and nothing
3791
+ * else: a processed artifact is still `state: 'live'`. Null while it waits;
3792
+ * absent from servers that predate processing.
3793
+ */
3794
+ readonly processedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3649
3795
  /** Null for binary content, which is not served inline. */
3650
3796
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3651
3797
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -3795,7 +3941,7 @@ export declare const ArtifactSchema: v.ObjectSchema<{
3795
3941
  } | undefined;
3796
3942
  body: string;
3797
3943
  finding?: {
3798
- tier: "observed" | "usage" | "practice";
3944
+ tier: "usage" | "observed" | "practice";
3799
3945
  tierLine: string;
3800
3946
  blindSpot: string;
3801
3947
  prediction: string | null;
@@ -3984,6 +4130,8 @@ export declare const CreateArtifactRequestSchema: v.StrictObjectSchema<{
3984
4130
  * them records none.
3985
4131
  */
3986
4132
  export declare const UpdateArtifactRequestSchema: v.StrictObjectSchema<{
4133
+ /** Dashboard autosave boundary; omitted retains every ordinary edit. */
4134
+ readonly checkpoint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3987
4135
  readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 524288 bytes">]>;
3988
4136
  readonly expectedVersion: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
3989
4137
  readonly sources: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -4143,6 +4291,15 @@ export declare const RemoveArtifactRequestSchema: v.StrictObjectSchema<{
4143
4291
  export declare const ArchiveArtifactRequestSchema: v.StrictObjectSchema<{
4144
4292
  readonly projectId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4145
4293
  }, undefined>;
4294
+ /**
4295
+ * Restore an archived artifact. The same optional checkout claim as archive:
4296
+ * an artifact a repository publishes, or one held by a bundle a repository
4297
+ * homes, is restored only from that checkout. The claim identifies the
4298
+ * checkout and grants no access of its own.
4299
+ */
4300
+ export declare const RestoreArtifactRequestSchema: v.StrictObjectSchema<{
4301
+ readonly projectId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4302
+ }, undefined>;
4146
4303
  /**
4147
4304
  * `GET .../history` query. Integer strings only: `2abc` is not 2. `limit` is
4148
4305
  * bounded and `before` is a positive safe integer version cursor.
@@ -4180,6 +4337,12 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
4180
4337
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4181
4338
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4182
4339
  readonly capture: v.BooleanSchema<undefined>;
4340
+ /**
4341
+ * When a capture was marked done, which takes it out of the inbox and nothing
4342
+ * else: a processed artifact is still `state: 'live'`. Null while it waits;
4343
+ * absent from servers that predate processing.
4344
+ */
4345
+ readonly processedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4183
4346
  /** Null for binary content, which is not served inline. */
4184
4347
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4185
4348
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -4329,7 +4492,7 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
4329
4492
  } | undefined;
4330
4493
  body: string;
4331
4494
  finding?: {
4332
- tier: "observed" | "usage" | "practice";
4495
+ tier: "usage" | "observed" | "practice";
4333
4496
  tierLine: string;
4334
4497
  blindSpot: string;
4335
4498
  prediction: string | null;
@@ -4374,6 +4537,12 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
4374
4537
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4375
4538
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4376
4539
  readonly capture: v.BooleanSchema<undefined>;
4540
+ /**
4541
+ * When a capture was marked done, which takes it out of the inbox and nothing
4542
+ * else: a processed artifact is still `state: 'live'`. Null while it waits;
4543
+ * absent from servers that predate processing.
4544
+ */
4545
+ readonly processedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4377
4546
  /** Null for binary content, which is not served inline. */
4378
4547
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4379
4548
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -4523,7 +4692,7 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
4523
4692
  } | undefined;
4524
4693
  body: string;
4525
4694
  finding?: {
4526
- tier: "observed" | "usage" | "practice";
4695
+ tier: "usage" | "observed" | "practice";
4527
4696
  tierLine: string;
4528
4697
  blindSpot: string;
4529
4698
  prediction: string | null;
@@ -4555,6 +4724,12 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
4555
4724
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4556
4725
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4557
4726
  readonly capture: v.BooleanSchema<undefined>;
4727
+ /**
4728
+ * When a capture was marked done, which takes it out of the inbox and nothing
4729
+ * else: a processed artifact is still `state: 'live'`. Null while it waits;
4730
+ * absent from servers that predate processing.
4731
+ */
4732
+ readonly processedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4558
4733
  /** Null for binary content, which is not served inline. */
4559
4734
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4560
4735
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -4704,7 +4879,7 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
4704
4879
  } | undefined;
4705
4880
  body: string;
4706
4881
  finding?: {
4707
- tier: "observed" | "usage" | "practice";
4882
+ tier: "usage" | "observed" | "practice";
4708
4883
  tierLine: string;
4709
4884
  blindSpot: string;
4710
4885
  prediction: string | null;
@@ -4737,6 +4912,12 @@ export declare const RemoveArtifactResponseSchema: v.ObjectSchema<{
4737
4912
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4738
4913
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4739
4914
  readonly capture: v.BooleanSchema<undefined>;
4915
+ /**
4916
+ * When a capture was marked done, which takes it out of the inbox and nothing
4917
+ * else: a processed artifact is still `state: 'live'`. Null while it waits;
4918
+ * absent from servers that predate processing.
4919
+ */
4920
+ readonly processedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4740
4921
  /** Null for binary content, which is not served inline. */
4741
4922
  readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4742
4923
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -4886,7 +5067,7 @@ export declare const RemoveArtifactResponseSchema: v.ObjectSchema<{
4886
5067
  } | undefined;
4887
5068
  body: string;
4888
5069
  finding?: {
4889
- tier: "observed" | "usage" | "practice";
5070
+ tier: "usage" | "observed" | "practice";
4890
5071
  tierLine: string;
4891
5072
  blindSpot: string;
4892
5073
  prediction: string | null;
@@ -8689,10 +8870,6 @@ export declare function parseGuideMemberFilesResponse(data: unknown): {
8689
8870
  contentHash: string;
8690
8871
  }[];
8691
8872
  };
8692
- export declare function parseRawGuideFileDeletion(data: unknown): {
8693
- path: string;
8694
- format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
8695
- };
8696
8873
  export declare function parseBundleListResponse(data: unknown): {
8697
8874
  bundles: {
8698
8875
  id: string;
@@ -8810,6 +8987,15 @@ export declare function parseContextItemsResponse(data: unknown): {
8810
8987
  role: string | null;
8811
8988
  format: string | null;
8812
8989
  content: string | null;
8990
+ asset?: {
8991
+ parts: {
8992
+ role: "original" | "display" | "thumb";
8993
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
8994
+ bytes: number;
8995
+ width: number;
8996
+ height: number;
8997
+ }[];
8998
+ } | null | undefined;
8813
8999
  origin?: string | null | undefined;
8814
9000
  version?: number | undefined;
8815
9001
  guideId?: string | null | undefined;
@@ -8834,7 +9020,7 @@ export declare function parseContextItemsResponse(data: unknown): {
8834
9020
  } | undefined;
8835
9021
  body: string;
8836
9022
  finding?: {
8837
- tier: "observed" | "usage" | "practice";
9023
+ tier: "usage" | "observed" | "practice";
8838
9024
  tierLine: string;
8839
9025
  blindSpot: string;
8840
9026
  prediction: string | null;
@@ -8877,6 +9063,15 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
8877
9063
  role: string | null;
8878
9064
  format: string | null;
8879
9065
  content: string | null;
9066
+ asset?: {
9067
+ parts: {
9068
+ role: "original" | "display" | "thumb";
9069
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
9070
+ bytes: number;
9071
+ width: number;
9072
+ height: number;
9073
+ }[];
9074
+ } | null | undefined;
8880
9075
  origin?: string | null | undefined;
8881
9076
  version?: number | undefined;
8882
9077
  guideId?: string | null | undefined;
@@ -8901,7 +9096,7 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
8901
9096
  } | undefined;
8902
9097
  body: string;
8903
9098
  finding?: {
8904
- tier: "observed" | "usage" | "practice";
9099
+ tier: "usage" | "observed" | "practice";
8905
9100
  tierLine: string;
8906
9101
  blindSpot: string;
8907
9102
  prediction: string | null;
@@ -8951,6 +9146,15 @@ export declare function parseInboxCaptureResponse(data: unknown): {
8951
9146
  role: string | null;
8952
9147
  format: string | null;
8953
9148
  content: string | null;
9149
+ asset?: {
9150
+ parts: {
9151
+ role: "original" | "display" | "thumb";
9152
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
9153
+ bytes: number;
9154
+ width: number;
9155
+ height: number;
9156
+ }[];
9157
+ } | null | undefined;
8954
9158
  source?: string | null | undefined;
8955
9159
  version?: number | undefined;
8956
9160
  capturedAt: string;
@@ -8965,6 +9169,15 @@ export declare function parseInboxListResponse(data: unknown): {
8965
9169
  role: string | null;
8966
9170
  format: string | null;
8967
9171
  content: string | null;
9172
+ asset?: {
9173
+ parts: {
9174
+ role: "original" | "display" | "thumb";
9175
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
9176
+ bytes: number;
9177
+ width: number;
9178
+ height: number;
9179
+ }[];
9180
+ } | null | undefined;
8968
9181
  source?: string | null | undefined;
8969
9182
  version?: number | undefined;
8970
9183
  capturedAt: string;
@@ -9254,7 +9467,7 @@ export declare function parseItemCommentsResponse(data: unknown): {
9254
9467
  } | undefined;
9255
9468
  body: string;
9256
9469
  finding?: {
9257
- tier: "observed" | "usage" | "practice";
9470
+ tier: "usage" | "observed" | "practice";
9258
9471
  tierLine: string;
9259
9472
  blindSpot: string;
9260
9473
  prediction: string | null;
@@ -9283,7 +9496,7 @@ export declare function parseCommentEvidenceResponse(data: unknown): {
9283
9496
  commentId: string;
9284
9497
  itemName: string;
9285
9498
  itemPath: string | null;
9286
- tier: "observed" | "usage" | "practice";
9499
+ tier: "usage" | "observed" | "practice";
9287
9500
  tierLine: string;
9288
9501
  blindSpot: string;
9289
9502
  claim: string;