@mossbear/protocol 0.1.0-alpha.112 → 0.1.0-alpha.114

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 (40) hide show
  1. package/dist/artifact.test.js +6 -1
  2. package/dist/artifact.test.js.map +1 -1
  3. package/dist/deliverableSkillMembers.d.ts +24 -0
  4. package/dist/deliverableSkillMembers.d.ts.map +1 -0
  5. package/dist/deliverableSkillMembers.js +39 -0
  6. package/dist/deliverableSkillMembers.js.map +1 -0
  7. package/dist/deliverableSkillMembers.test.d.ts +2 -0
  8. package/dist/deliverableSkillMembers.test.d.ts.map +1 -0
  9. package/dist/deliverableSkillMembers.test.js +32 -0
  10. package/dist/deliverableSkillMembers.test.js.map +1 -0
  11. package/dist/frameDocument.d.ts.map +1 -1
  12. package/dist/frameDocument.js +10 -8
  13. package/dist/frameDocument.js.map +1 -1
  14. package/dist/frameDocument.test.js +7 -0
  15. package/dist/frameDocument.test.js.map +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/photos.d.ts +93 -6
  21. package/dist/photos.d.ts.map +1 -1
  22. package/dist/photos.js +73 -5
  23. package/dist/photos.js.map +1 -1
  24. package/dist/photos.test.d.ts +2 -0
  25. package/dist/photos.test.d.ts.map +1 -0
  26. package/dist/photos.test.js +71 -0
  27. package/dist/photos.test.js.map +1 -0
  28. package/dist/schemas.d.ts +595 -30
  29. package/dist/schemas.d.ts.map +1 -1
  30. package/dist/schemas.js +89 -34
  31. package/dist/schemas.js.map +1 -1
  32. package/dist/schemas.test.js +1 -19
  33. package/dist/schemas.test.js.map +1 -1
  34. package/dist/types.d.ts +1 -3
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/types.js.map +1 -1
  37. package/dist/whatSyncs.d.ts.map +1 -1
  38. package/dist/whatSyncs.js +6 -2
  39. package/dist/whatSyncs.js.map +1 -1
  40. package/package.json +1 -1
package/dist/schemas.d.ts CHANGED
@@ -231,28 +231,6 @@ export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.Obj
231
231
  expectedVersion?: number | undefined;
232
232
  skippedMemberPaths?: string[] | undefined;
233
233
  }, "member paths must be unique (case-insensitive)">]>;
234
- export declare const GuideMemberFileSchema: v.ObjectSchema<{
235
- readonly path: v.SchemaWithPipe<readonly [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">]>, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
236
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
237
- readonly contentHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
238
- }, undefined>;
239
- export declare const GuideMemberFilesResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
240
- readonly memberFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
241
- readonly path: v.SchemaWithPipe<readonly [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">]>, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
242
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
243
- readonly contentHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
244
- }, undefined>, undefined>, v.MaxLengthAction<{
245
- path: string;
246
- content: string;
247
- contentHash: string;
248
- }[], 64, undefined>]>;
249
- }, undefined>, v.CheckAction<{
250
- memberFiles: {
251
- path: string;
252
- content: string;
253
- contentHash: string;
254
- }[];
255
- }, "member file paths must be unique (case-insensitive)">]>;
256
234
  /** Max number of rules accepted in a single `POST /api/rules/import` request. */
257
235
  export declare const MAX_RULES_IMPORT_BATCH = 100;
258
236
  /** Opaque checkout digest shared by run logs, manifests, and `runs.repo_id`. */
@@ -1725,6 +1703,25 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
1725
1703
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1726
1704
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1727
1705
  }, undefined>, undefined>;
1706
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1707
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1708
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
1709
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
1710
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
1711
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1712
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1713
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
1714
+ }, undefined>, undefined>;
1715
+ }, undefined>, undefined>, v.MinLengthAction<{
1716
+ id?: string | undefined;
1717
+ parts: {
1718
+ role: "original" | "display" | "thumb";
1719
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
1720
+ bytes: number;
1721
+ width: number;
1722
+ height: number;
1723
+ }[];
1724
+ }[], 1, undefined>]>, undefined>;
1728
1725
  }, undefined>, undefined>, undefined>;
1729
1726
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1730
1727
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -2077,6 +2074,16 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
2077
2074
  width: number;
2078
2075
  height: number;
2079
2076
  }[];
2077
+ images?: {
2078
+ id?: string | undefined;
2079
+ parts: {
2080
+ role: "original" | "display" | "thumb";
2081
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2082
+ bytes: number;
2083
+ width: number;
2084
+ height: number;
2085
+ }[];
2086
+ }[] | undefined;
2080
2087
  } | null | undefined;
2081
2088
  origin?: string | null | undefined;
2082
2089
  version?: number | undefined;
@@ -2159,6 +2166,16 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
2159
2166
  width: number;
2160
2167
  height: number;
2161
2168
  }[];
2169
+ images?: {
2170
+ id?: string | undefined;
2171
+ parts: {
2172
+ role: "original" | "display" | "thumb";
2173
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2174
+ bytes: number;
2175
+ width: number;
2176
+ height: number;
2177
+ }[];
2178
+ }[] | undefined;
2162
2179
  } | null | undefined;
2163
2180
  origin?: string | null | undefined;
2164
2181
  version?: number | undefined;
@@ -2275,6 +2292,25 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2275
2292
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2276
2293
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2277
2294
  }, undefined>, undefined>;
2295
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2296
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
2297
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
2298
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
2299
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
2300
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2301
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2302
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2303
+ }, undefined>, undefined>;
2304
+ }, undefined>, undefined>, v.MinLengthAction<{
2305
+ id?: string | undefined;
2306
+ parts: {
2307
+ role: "original" | "display" | "thumb";
2308
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2309
+ bytes: number;
2310
+ width: number;
2311
+ height: number;
2312
+ }[];
2313
+ }[], 1, undefined>]>, undefined>;
2278
2314
  }, undefined>, undefined>, undefined>;
2279
2315
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2280
2316
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -2627,6 +2663,16 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2627
2663
  width: number;
2628
2664
  height: number;
2629
2665
  }[];
2666
+ images?: {
2667
+ id?: string | undefined;
2668
+ parts: {
2669
+ role: "original" | "display" | "thumb";
2670
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2671
+ bytes: number;
2672
+ width: number;
2673
+ height: number;
2674
+ }[];
2675
+ }[] | undefined;
2630
2676
  } | null | undefined;
2631
2677
  origin?: string | null | undefined;
2632
2678
  version?: number | undefined;
@@ -2709,6 +2755,16 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
2709
2755
  width: number;
2710
2756
  height: number;
2711
2757
  }[];
2758
+ images?: {
2759
+ id?: string | undefined;
2760
+ parts: {
2761
+ role: "original" | "display" | "thumb";
2762
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2763
+ bytes: number;
2764
+ width: number;
2765
+ height: number;
2766
+ }[];
2767
+ }[] | undefined;
2712
2768
  } | null | undefined;
2713
2769
  origin?: string | null | undefined;
2714
2770
  version?: number | undefined;
@@ -2843,6 +2899,25 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
2843
2899
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2844
2900
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2845
2901
  }, undefined>, undefined>;
2902
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2903
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
2904
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
2905
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
2906
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
2907
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2908
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2909
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
2910
+ }, undefined>, undefined>;
2911
+ }, undefined>, undefined>, v.MinLengthAction<{
2912
+ id?: string | undefined;
2913
+ parts: {
2914
+ role: "original" | "display" | "thumb";
2915
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
2916
+ bytes: number;
2917
+ width: number;
2918
+ height: number;
2919
+ }[];
2920
+ }[], 1, undefined>]>, undefined>;
2846
2921
  }, undefined>, undefined>, undefined>;
2847
2922
  readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2848
2923
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -3195,6 +3270,16 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
3195
3270
  width: number;
3196
3271
  height: number;
3197
3272
  }[];
3273
+ images?: {
3274
+ id?: string | undefined;
3275
+ parts: {
3276
+ role: "original" | "display" | "thumb";
3277
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
3278
+ bytes: number;
3279
+ width: number;
3280
+ height: number;
3281
+ }[];
3282
+ }[] | undefined;
3198
3283
  } | null | undefined;
3199
3284
  origin?: string | null | undefined;
3200
3285
  version?: number | undefined;
@@ -3277,6 +3362,16 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
3277
3362
  width: number;
3278
3363
  height: number;
3279
3364
  }[];
3365
+ images?: {
3366
+ id?: string | undefined;
3367
+ parts: {
3368
+ role: "original" | "display" | "thumb";
3369
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
3370
+ bytes: number;
3371
+ width: number;
3372
+ height: number;
3373
+ }[];
3374
+ }[] | undefined;
3280
3375
  } | null | undefined;
3281
3376
  origin?: string | null | undefined;
3282
3377
  version?: number | undefined;
@@ -3365,6 +3460,18 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
3365
3460
  * losing the tail silently.
3366
3461
  */
3367
3462
  export declare const MAX_COMMENT_BUNDLE_IDS = 100;
3463
+ /**
3464
+ * The agent session behind a comment, a reply or a resolution note, as the
3465
+ * caller's harness reported it. Stored on the row so the reply is named after
3466
+ * that session; it is the caller's claim, read only among its own comments.
3467
+ */
3468
+ export declare const AgentIdentitySchema: v.ObjectSchema<{
3469
+ readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
3470
+ readonly harness: v.PicklistSchema<["claude_code", "codex", "antigravity", "opencode"], undefined>;
3471
+ /** The agent's own statement of its model, when it knows it. */
3472
+ readonly model: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
3473
+ readonly cliVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
3474
+ }, undefined>;
3368
3475
  /**
3369
3476
  * `POST /api/v1/context/comments/resolve`: close one open comment and leave the
3370
3477
  * agent's note as a reply in its thread.
@@ -3393,6 +3500,18 @@ export declare const ResolveItemCommentRequestSchema: v.ObjectSchema<{
3393
3500
  readonly projectId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "projectId must contain only letters, digits, underscore, dot or hyphen">]>, undefined>;
3394
3501
  /** The CLI's version, so a draft resolves only for a client that marks drafts. */
3395
3502
  readonly cliVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
3503
+ /**
3504
+ * The agent session resolving it, stored on the note so the thread names
3505
+ * who closed it. Optional: releases before it was sent resolve without one,
3506
+ * and their notes read as an unnamed agent.
3507
+ */
3508
+ readonly agent: v.OptionalSchema<v.ObjectSchema<{
3509
+ readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
3510
+ readonly harness: v.PicklistSchema<["claude_code", "codex", "antigravity", "opencode"], undefined>;
3511
+ /** The agent's own statement of its model, when it knows it. */
3512
+ readonly model: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
3513
+ readonly cliVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
3514
+ }, undefined>, undefined>;
3396
3515
  }, undefined>;
3397
3516
  export type ResolveItemCommentRequest = v.InferInput<typeof ResolveItemCommentRequestSchema>;
3398
3517
  /** A resolve the server carried out. Every refusal is an error response instead. */
@@ -4235,6 +4354,25 @@ export declare const CapturedItemSchema: v.ObjectSchema<{
4235
4354
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4236
4355
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4237
4356
  }, undefined>, undefined>;
4357
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4358
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4359
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
4360
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4361
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4362
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4363
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4364
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4365
+ }, undefined>, undefined>;
4366
+ }, undefined>, undefined>, v.MinLengthAction<{
4367
+ id?: string | undefined;
4368
+ parts: {
4369
+ role: "original" | "display" | "thumb";
4370
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
4371
+ bytes: number;
4372
+ width: number;
4373
+ height: number;
4374
+ }[];
4375
+ }[], 1, undefined>]>, undefined>;
4238
4376
  }, undefined>, undefined>, undefined>;
4239
4377
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4240
4378
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -4259,6 +4397,25 @@ export declare const CaptureResponseSchema: v.ObjectSchema<{
4259
4397
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4260
4398
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4261
4399
  }, undefined>, undefined>;
4400
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4401
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4402
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
4403
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4404
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4405
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4406
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4407
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4408
+ }, undefined>, undefined>;
4409
+ }, undefined>, undefined>, v.MinLengthAction<{
4410
+ id?: string | undefined;
4411
+ parts: {
4412
+ role: "original" | "display" | "thumb";
4413
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
4414
+ bytes: number;
4415
+ width: number;
4416
+ height: number;
4417
+ }[];
4418
+ }[], 1, undefined>]>, undefined>;
4262
4419
  }, undefined>, undefined>, undefined>;
4263
4420
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4264
4421
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -4293,6 +4450,25 @@ export declare const BeginPhotoUploadResponseSchema: v.VariantSchema<"state", [v
4293
4450
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4294
4451
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4295
4452
  }, undefined>, undefined>;
4453
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4454
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4455
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
4456
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4457
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4458
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4459
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4460
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4461
+ }, undefined>, undefined>;
4462
+ }, undefined>, undefined>, v.MinLengthAction<{
4463
+ id?: string | undefined;
4464
+ parts: {
4465
+ role: "original" | "display" | "thumb";
4466
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
4467
+ bytes: number;
4468
+ width: number;
4469
+ height: number;
4470
+ }[];
4471
+ }[], 1, undefined>]>, undefined>;
4296
4472
  }, undefined>, undefined>, undefined>;
4297
4473
  readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4298
4474
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -4550,10 +4726,39 @@ export declare const ArtifactSchema: v.ObjectSchema<{
4550
4726
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4551
4727
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4552
4728
  }, undefined>, undefined>;
4729
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
4730
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
4731
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
4732
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
4733
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
4734
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4735
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4736
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4737
+ }, undefined>, undefined>;
4738
+ }, undefined>, undefined>, v.MinLengthAction<{
4739
+ id?: string | undefined;
4740
+ parts: {
4741
+ role: "original" | "display" | "thumb";
4742
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
4743
+ bytes: number;
4744
+ width: number;
4745
+ height: number;
4746
+ }[];
4747
+ }[], 1, undefined>]>, undefined>;
4553
4748
  }, undefined>, undefined>, undefined>;
4554
4749
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4555
4750
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4556
4751
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
4752
+ /** Personal read facts; optional for servers predating these fields. */
4753
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4754
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
4755
+ /** Only memberships the credential may read. */
4756
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4757
+ /** The caller's page views, never other people's or agent fetches. */
4758
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
4759
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
4760
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4761
+ }, undefined>, undefined>;
4557
4762
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4558
4763
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4559
4764
  readonly capture: v.BooleanSchema<undefined>;
@@ -4810,10 +5015,39 @@ export declare const ArtifactMetadataSchema: v.StrictObjectSchema<Omit<{
4810
5015
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4811
5016
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4812
5017
  }, undefined>, undefined>;
5018
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
5019
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
5020
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
5021
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
5022
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
5023
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5024
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5025
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5026
+ }, undefined>, undefined>;
5027
+ }, undefined>, undefined>, v.MinLengthAction<{
5028
+ id?: string | undefined;
5029
+ parts: {
5030
+ role: "original" | "display" | "thumb";
5031
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
5032
+ bytes: number;
5033
+ width: number;
5034
+ height: number;
5035
+ }[];
5036
+ }[], 1, undefined>]>, undefined>;
4813
5037
  }, undefined>, undefined>, undefined>;
4814
5038
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
4815
5039
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
4816
5040
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
5041
+ /** Personal read facts; optional for servers predating these fields. */
5042
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5043
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
5044
+ /** Only memberships the credential may read. */
5045
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5046
+ /** The caller's page views, never other people's or agent fetches. */
5047
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
5048
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
5049
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5050
+ }, undefined>, undefined>;
4817
5051
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4818
5052
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
4819
5053
  readonly capture: v.BooleanSchema<undefined>;
@@ -5224,6 +5458,17 @@ export declare const ResolveIdentitiesResponseSchema: v.ObjectSchema<{
5224
5458
  }, undefined>, undefined>;
5225
5459
  }, undefined>, undefined>;
5226
5460
  }, undefined>;
5461
+ /**
5462
+ * The optional body of `POST /api/v1/artifacts/:id/copy`. The client sends the
5463
+ * copy's name already localized (`MossbearTemplateCopyButton`); a request with
5464
+ * no name keeps the source's. The bound is `MAX_ARTIFACT_NAME_CHARS`, the same
5465
+ * limit `ArtifactNameSchema` applies on create. Unlike create, this schema trims
5466
+ * the name first, so a blank name is refused here.
5467
+ */
5468
+ export declare const CopyArtifactRequestSchema: v.StrictObjectSchema<{
5469
+ readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
5470
+ }, undefined>;
5471
+ export type CopyArtifactRequest = v.InferOutput<typeof CopyArtifactRequestSchema>;
5227
5472
  export declare const CreateArtifactRequestSchema: v.StrictObjectSchema<{
5228
5473
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
5229
5474
  readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>;
@@ -5847,10 +6092,39 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
5847
6092
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5848
6093
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5849
6094
  }, undefined>, undefined>;
6095
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
6096
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
6097
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
6098
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
6099
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
6100
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6101
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6102
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6103
+ }, undefined>, undefined>;
6104
+ }, undefined>, undefined>, v.MinLengthAction<{
6105
+ id?: string | undefined;
6106
+ parts: {
6107
+ role: "original" | "display" | "thumb";
6108
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6109
+ bytes: number;
6110
+ width: number;
6111
+ height: number;
6112
+ }[];
6113
+ }[], 1, undefined>]>, undefined>;
5850
6114
  }, undefined>, undefined>, undefined>;
5851
6115
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
5852
6116
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
5853
6117
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
6118
+ /** Personal read facts; optional for servers predating these fields. */
6119
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6120
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6121
+ /** Only memberships the credential may read. */
6122
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6123
+ /** The caller's page views, never other people's or agent fetches. */
6124
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
6125
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
6126
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6127
+ }, undefined>, undefined>;
5854
6128
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5855
6129
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
5856
6130
  readonly capture: v.BooleanSchema<undefined>;
@@ -6146,10 +6420,39 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
6146
6420
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6147
6421
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6148
6422
  }, undefined>, undefined>;
6423
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
6424
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
6425
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
6426
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
6427
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
6428
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6429
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6430
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6431
+ }, undefined>, undefined>;
6432
+ }, undefined>, undefined>, v.MinLengthAction<{
6433
+ id?: string | undefined;
6434
+ parts: {
6435
+ role: "original" | "display" | "thumb";
6436
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6437
+ bytes: number;
6438
+ width: number;
6439
+ height: number;
6440
+ }[];
6441
+ }[], 1, undefined>]>, undefined>;
6149
6442
  }, undefined>, undefined>, undefined>;
6150
6443
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
6151
6444
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6152
6445
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
6446
+ /** Personal read facts; optional for servers predating these fields. */
6447
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6448
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6449
+ /** Only memberships the credential may read. */
6450
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6451
+ /** The caller's page views, never other people's or agent fetches. */
6452
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
6453
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
6454
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6455
+ }, undefined>, undefined>;
6153
6456
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6154
6457
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
6155
6458
  readonly capture: v.BooleanSchema<undefined>;
@@ -6407,10 +6710,39 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
6407
6710
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6408
6711
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6409
6712
  }, undefined>, undefined>;
6713
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
6714
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
6715
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
6716
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
6717
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
6718
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6719
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6720
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6721
+ }, undefined>, undefined>;
6722
+ }, undefined>, undefined>, v.MinLengthAction<{
6723
+ id?: string | undefined;
6724
+ parts: {
6725
+ role: "original" | "display" | "thumb";
6726
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
6727
+ bytes: number;
6728
+ width: number;
6729
+ height: number;
6730
+ }[];
6731
+ }[], 1, undefined>]>, undefined>;
6410
6732
  }, undefined>, undefined>, undefined>;
6411
6733
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
6412
6734
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6413
6735
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
6736
+ /** Personal read facts; optional for servers predating these fields. */
6737
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6738
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6739
+ /** Only memberships the credential may read. */
6740
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6741
+ /** The caller's page views, never other people's or agent fetches. */
6742
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
6743
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
6744
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6745
+ }, undefined>, undefined>;
6414
6746
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6415
6747
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
6416
6748
  readonly capture: v.BooleanSchema<undefined>;
@@ -6671,6 +7003,7 @@ export declare const DEFAULT_LIST_ARTIFACTS_LIMIT = 100;
6671
7003
  */
6672
7004
  export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
6673
7005
  readonly inbox: v.OptionalSchema<v.PicklistSchema<["true", "false"], "inbox must be true or false">, undefined>;
7006
+ readonly trash: v.OptionalSchema<v.PicklistSchema<["true", "false"], undefined>, undefined>;
6674
7007
  readonly bundle: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>;
6675
7008
  readonly kind: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>, v.ArraySchema<v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], `kind must be one of ${string}`>, undefined>, v.MinLengthAction<("markdown" | "guide" | "html" | "code" | "photo" | "file")[], 1, undefined>]>, undefined>;
6676
7009
  readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "since must be an ISO timestamp">]>, undefined>;
@@ -6683,6 +7016,18 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
6683
7016
  readonly cli: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
6684
7017
  }, undefined>, v.CheckAction<{
6685
7018
  inbox?: "true" | "false" | undefined;
7019
+ trash?: "true" | "false" | undefined;
7020
+ bundle?: string | undefined;
7021
+ kind?: ("markdown" | "guide" | "html" | "code" | "photo" | "file")[] | undefined;
7022
+ since?: string | undefined;
7023
+ limit: number;
7024
+ cursor?: string | undefined;
7025
+ comments?: "none" | undefined;
7026
+ view?: "metadata" | undefined;
7027
+ cli?: string | undefined;
7028
+ }, "The inbox holds only unfiled captures, so inbox and bundle cannot be combined.">, v.CheckAction<{
7029
+ inbox?: "true" | "false" | undefined;
7030
+ trash?: "true" | "false" | undefined;
6686
7031
  bundle?: string | undefined;
6687
7032
  kind?: ("markdown" | "guide" | "html" | "code" | "photo" | "file")[] | undefined;
6688
7033
  since?: string | undefined;
@@ -6691,8 +7036,9 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
6691
7036
  comments?: "none" | undefined;
6692
7037
  view?: "metadata" | undefined;
6693
7038
  cli?: string | undefined;
6694
- }, "The inbox holds only unfiled captures, so inbox and bundle cannot be combined.">, v.TransformAction<{
7039
+ }, "Trash and Inbox cannot be combined.">, v.TransformAction<{
6695
7040
  inbox?: "true" | "false" | undefined;
7041
+ trash?: "true" | "false" | undefined;
6696
7042
  bundle?: string | undefined;
6697
7043
  kind?: ("markdown" | "guide" | "html" | "code" | "photo" | "file")[] | undefined;
6698
7044
  since?: string | undefined;
@@ -6703,6 +7049,7 @@ export declare const ListArtifactsQuerySchema: v.SchemaWithPipe<readonly [v.Obje
6703
7049
  cli?: string | undefined;
6704
7050
  }, {
6705
7051
  inbox: boolean;
7052
+ trash: boolean;
6706
7053
  bundle?: string | undefined;
6707
7054
  kind?: ("markdown" | "guide" | "html" | "code" | "photo" | "file")[] | undefined;
6708
7055
  since?: string | undefined;
@@ -6734,10 +7081,39 @@ export declare const ListArtifactsResponseSchema: v.ObjectSchema<{
6734
7081
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6735
7082
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6736
7083
  }, undefined>, undefined>;
7084
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
7085
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
7086
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
7087
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
7088
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
7089
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7090
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7091
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7092
+ }, undefined>, undefined>;
7093
+ }, undefined>, undefined>, v.MinLengthAction<{
7094
+ id?: string | undefined;
7095
+ parts: {
7096
+ role: "original" | "display" | "thumb";
7097
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
7098
+ bytes: number;
7099
+ width: number;
7100
+ height: number;
7101
+ }[];
7102
+ }[], 1, undefined>]>, undefined>;
6737
7103
  }, undefined>, undefined>, undefined>;
6738
7104
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
6739
7105
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
6740
7106
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
7107
+ /** Personal read facts; optional for servers predating these fields. */
7108
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
7109
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
7110
+ /** Only memberships the credential may read. */
7111
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
7112
+ /** The caller's page views, never other people's or agent fetches. */
7113
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
7114
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7115
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7116
+ }, undefined>, undefined>;
6741
7117
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6742
7118
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
6743
7119
  readonly capture: v.BooleanSchema<undefined>;
@@ -7005,10 +7381,39 @@ export declare const ListArtifactMetadataResponseSchema: v.ObjectSchema<{
7005
7381
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7006
7382
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7007
7383
  }, undefined>, undefined>;
7384
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
7385
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
7386
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
7387
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
7388
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
7389
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7390
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7391
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7392
+ }, undefined>, undefined>;
7393
+ }, undefined>, undefined>, v.MinLengthAction<{
7394
+ id?: string | undefined;
7395
+ parts: {
7396
+ role: "original" | "display" | "thumb";
7397
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
7398
+ bytes: number;
7399
+ width: number;
7400
+ height: number;
7401
+ }[];
7402
+ }[], 1, undefined>]>, undefined>;
7008
7403
  }, undefined>, undefined>, undefined>;
7009
7404
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
7010
7405
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7011
7406
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
7407
+ /** Personal read facts; optional for servers predating these fields. */
7408
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
7409
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
7410
+ /** Only memberships the credential may read. */
7411
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
7412
+ /** The caller's page views, never other people's or agent fetches. */
7413
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
7414
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7415
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7416
+ }, undefined>, undefined>;
7012
7417
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7013
7418
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
7014
7419
  readonly capture: v.BooleanSchema<undefined>;
@@ -7438,10 +7843,39 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
7438
7843
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7439
7844
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7440
7845
  }, undefined>, undefined>;
7846
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
7847
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
7848
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
7849
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
7850
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
7851
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7852
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7853
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7854
+ }, undefined>, undefined>;
7855
+ }, undefined>, undefined>, v.MinLengthAction<{
7856
+ id?: string | undefined;
7857
+ parts: {
7858
+ role: "original" | "display" | "thumb";
7859
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
7860
+ bytes: number;
7861
+ width: number;
7862
+ height: number;
7863
+ }[];
7864
+ }[], 1, undefined>]>, undefined>;
7441
7865
  }, undefined>, undefined>, undefined>;
7442
7866
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
7443
7867
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7444
7868
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
7869
+ /** Personal read facts; optional for servers predating these fields. */
7870
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
7871
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
7872
+ /** Only memberships the credential may read. */
7873
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
7874
+ /** The caller's page views, never other people's or agent fetches. */
7875
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
7876
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7877
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7878
+ }, undefined>, undefined>;
7445
7879
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7446
7880
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
7447
7881
  readonly capture: v.BooleanSchema<undefined>;
@@ -7701,10 +8135,39 @@ export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
7701
8135
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7702
8136
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7703
8137
  }, undefined>, undefined>;
8138
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
8139
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
8140
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
8141
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
8142
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
8143
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8144
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8145
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8146
+ }, undefined>, undefined>;
8147
+ }, undefined>, undefined>, v.MinLengthAction<{
8148
+ id?: string | undefined;
8149
+ parts: {
8150
+ role: "original" | "display" | "thumb";
8151
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
8152
+ bytes: number;
8153
+ width: number;
8154
+ height: number;
8155
+ }[];
8156
+ }[], 1, undefined>]>, undefined>;
7704
8157
  }, undefined>, undefined>, undefined>;
7705
8158
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
7706
8159
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7707
8160
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
8161
+ /** Personal read facts; optional for servers predating these fields. */
8162
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
8163
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
8164
+ /** Only memberships the credential may read. */
8165
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
8166
+ /** The caller's page views, never other people's or agent fetches. */
8167
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
8168
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8169
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8170
+ }, undefined>, undefined>;
7708
8171
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7709
8172
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
7710
8173
  readonly capture: v.BooleanSchema<undefined>;
@@ -7963,10 +8426,39 @@ export declare const WithdrawArtifactResponseSchema: v.ObjectSchema<{
7963
8426
  readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7964
8427
  readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7965
8428
  }, undefined>, undefined>;
8429
+ readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
8430
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
8431
+ readonly parts: v.ArraySchema<v.ObjectSchema<{
8432
+ readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
8433
+ readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
8434
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8435
+ readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8436
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
8437
+ }, undefined>, undefined>;
8438
+ }, undefined>, undefined>, v.MinLengthAction<{
8439
+ id?: string | undefined;
8440
+ parts: {
8441
+ role: "original" | "display" | "thumb";
8442
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
8443
+ bytes: number;
8444
+ width: number;
8445
+ height: number;
8446
+ }[];
8447
+ }[], 1, undefined>]>, undefined>;
7966
8448
  }, undefined>, undefined>, undefined>;
7967
8449
  /** Monotonic content version; echo it back as `expectedVersion` to update. */
7968
8450
  readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
7969
8451
  readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
8452
+ /** Personal read facts; optional for servers predating these fields. */
8453
+ readonly deletedAt: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
8454
+ readonly pinned: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
8455
+ /** Only memberships the credential may read. */
8456
+ readonly bundles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
8457
+ /** The caller's page views, never other people's or agent fetches. */
8458
+ readonly views: v.OptionalSchema<v.ObjectSchema<{
8459
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
8460
+ readonly lastViewedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8461
+ }, undefined>, undefined>;
7970
8462
  readonly workspaceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7971
8463
  /** True for a deliberate capture (Inbox). Not derivable from filing state. */
7972
8464
  readonly capture: v.BooleanSchema<undefined>;
@@ -8507,6 +8999,11 @@ export declare const SKILL_LOAD_ACTION_TYPE = "skill_load";
8507
8999
  * two gradeable actions.
8508
9000
  */
8509
9001
  export declare const SKILL_MEMBER_READ_ACTION_TYPE = "skill_member_read";
9002
+ /**
9003
+ * A placed file opened by a shell command. The command is the gradeable action;
9004
+ * this id-only row records artifact-read evidence without grading it twice.
9005
+ */
9006
+ export declare const SHELL_FILE_READ_ACTION_TYPE = "shell_file_read";
8510
9007
  /**
8511
9008
  * A machine-shaped label for *why* a tool call failed — `ENOENT`, `TimeoutError`,
8512
9009
  * `permission_denied`.
@@ -8673,6 +9170,17 @@ export declare const DashboardSkillUsageSchema: v.ObjectSchema<{
8673
9170
  }, undefined>, undefined>;
8674
9171
  }, undefined>;
8675
9172
  export declare const MAX_ACTION_FILE_PATH_LENGTH = 1024;
9173
+ /**
9174
+ * A file's path relative to the root of the repository it sits in, as the CLI
9175
+ * records it beside an action's own path: POSIX separators, no leading `/`, no
9176
+ * drive letter, and no empty, `.` or `..` segment, so it can never name a
9177
+ * place outside the repository or carry a machine's checkout location.
9178
+ *
9179
+ * The CLI produces only this shape; the check is here because the server
9180
+ * groups sessions by it, and a value that escaped the repository would group
9181
+ * under an area that does not exist.
9182
+ */
9183
+ export declare const ActionRepoPathSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 1024, undefined>, v.RegexAction<string, "repoPath must not contain control or format characters, or backslashes">, v.CheckAction<string, "repoPath must be relative to the repository root, with no empty, . or .. segment">]>;
8676
9184
  export declare const DashboardSyncActionSchema: v.ObjectSchema<{
8677
9185
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>, undefined>;
8678
9186
  readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -8700,6 +9208,15 @@ export declare const DashboardSyncActionSchema: v.ObjectSchema<{
8700
9208
  * change the uploader's own number.
8701
9209
  */
8702
9210
  readonly itemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>]>, undefined>;
9211
+ /**
9212
+ * The file's path relative to its repository root, when the path the action
9213
+ * names lies inside the git repository the session ran in. Sent beside
9214
+ * `filePaths`, never instead of it: that one is the path as the harness gave
9215
+ * it, usually absolute, and this one is where the file sits in the repo, so
9216
+ * sessions on different machines can be grouped by the area they worked in.
9217
+ * Computed by the CLI, the one place that knows the repository root.
9218
+ */
9219
+ readonly repoPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 1024, undefined>, v.RegexAction<string, "repoPath must not contain control or format characters, or backslashes">, v.CheckAction<string, "repoPath must be relative to the repository root, with no empty, . or .. segment">]>, undefined>;
8703
9220
  readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
8704
9221
  readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
8705
9222
  readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -8977,6 +9494,15 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
8977
9494
  * change the uploader's own number.
8978
9495
  */
8979
9496
  readonly itemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>]>, undefined>;
9497
+ /**
9498
+ * The file's path relative to its repository root, when the path the action
9499
+ * names lies inside the git repository the session ran in. Sent beside
9500
+ * `filePaths`, never instead of it: that one is the path as the harness gave
9501
+ * it, usually absolute, and this one is where the file sits in the repo, so
9502
+ * sessions on different machines can be grouped by the area they worked in.
9503
+ * Computed by the CLI, the one place that knows the repository root.
9504
+ */
9505
+ readonly repoPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 1024, undefined>, v.RegexAction<string, "repoPath must not contain control or format characters, or backslashes">, v.CheckAction<string, "repoPath must be relative to the repository root, with no empty, . or .. segment">]>, undefined>;
8980
9506
  readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
8981
9507
  readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
8982
9508
  readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -9039,6 +9565,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
9039
9565
  summary: string;
9040
9566
  filePaths?: string[] | undefined;
9041
9567
  itemId?: string | undefined;
9568
+ repoPath?: string | undefined;
9042
9569
  verdict?: "aligned" | "unguided" | "misaligned" | undefined;
9043
9570
  gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
9044
9571
  guideIds?: string[] | undefined;
@@ -9355,6 +9882,8 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
9355
9882
  * action a read tool would have produced.
9356
9883
  */
9357
9884
  readonly memberReads: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
9885
+ /** Artifact ids for supported shell reads, resolved locally; no operand path uploads. */
9886
+ readonly shellReadItemIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
9358
9887
  /**
9359
9888
  * The artifact placed at each path this entry read, keyed by the path as the
9360
9889
  * entry records it (`filePath`, or one of `memberReads`). Resolved by the hook
@@ -9364,6 +9893,16 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
9364
9893
  * `itemId`.
9365
9894
  */
9366
9895
  readonly itemIds: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
9896
+ /**
9897
+ * `filePath` relative to the root of the git repository the call ran in, when
9898
+ * it lies inside it. Absent for a path outside the repository, for a folder
9899
+ * that is not a git repository, and for the repository root itself. Sent as
9900
+ * the action's `repoPath` only when it passes `ActionRepoPathSchema`.
9901
+ *
9902
+ * A plain string here, not that schema: a run log line that failed to parse
9903
+ * would lose the whole action, and a bad path should lose only the path.
9904
+ */
9905
+ readonly repoPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
9367
9906
  /**
9368
9907
  * Where this session's transcript lives on *this machine*, as the agent
9369
9908
  * itself reported it.
@@ -12199,13 +12738,6 @@ export declare function parseRawGuideFilePayload(data: unknown): {
12199
12738
  expectedVersion?: number | undefined;
12200
12739
  skippedMemberPaths?: string[] | undefined;
12201
12740
  };
12202
- export declare function parseGuideMemberFilesResponse(data: unknown): {
12203
- memberFiles: {
12204
- path: string;
12205
- content: string;
12206
- contentHash: string;
12207
- }[];
12208
- };
12209
12741
  export declare function parseBundleListResponse(data: unknown): {
12210
12742
  bundles: {
12211
12743
  home?: string | undefined;
@@ -12364,6 +12896,16 @@ export declare function parseContextItemsResponse(data: unknown): {
12364
12896
  width: number;
12365
12897
  height: number;
12366
12898
  }[];
12899
+ images?: {
12900
+ id?: string | undefined;
12901
+ parts: {
12902
+ role: "original" | "display" | "thumb";
12903
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
12904
+ bytes: number;
12905
+ width: number;
12906
+ height: number;
12907
+ }[];
12908
+ }[] | undefined;
12367
12909
  } | null | undefined;
12368
12910
  origin?: string | null | undefined;
12369
12911
  version?: number | undefined;
@@ -12456,6 +12998,16 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
12456
12998
  width: number;
12457
12999
  height: number;
12458
13000
  }[];
13001
+ images?: {
13002
+ id?: string | undefined;
13003
+ parts: {
13004
+ role: "original" | "display" | "thumb";
13005
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
13006
+ bytes: number;
13007
+ width: number;
13008
+ height: number;
13009
+ }[];
13010
+ }[] | undefined;
12459
13011
  } | null | undefined;
12460
13012
  origin?: string | null | undefined;
12461
13013
  version?: number | undefined;
@@ -12554,6 +13106,16 @@ export declare function parseCaptureResponse(data: unknown): {
12554
13106
  width: number;
12555
13107
  height: number;
12556
13108
  }[];
13109
+ images?: {
13110
+ id?: string | undefined;
13111
+ parts: {
13112
+ role: "original" | "display" | "thumb";
13113
+ mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
13114
+ bytes: number;
13115
+ width: number;
13116
+ height: number;
13117
+ }[];
13118
+ }[] | undefined;
12557
13119
  } | null | undefined;
12558
13120
  source?: string | null | undefined;
12559
13121
  version?: number | undefined;
@@ -12583,6 +13145,7 @@ export declare function parseDashboardSyncRequest(data: unknown): {
12583
13145
  summary: string;
12584
13146
  filePaths?: string[] | undefined;
12585
13147
  itemId?: string | undefined;
13148
+ repoPath?: string | undefined;
12586
13149
  verdict?: "aligned" | "unguided" | "misaligned" | undefined;
12587
13150
  gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
12588
13151
  guideIds?: string[] | undefined;
@@ -12687,9 +13250,11 @@ export declare function parseActionEntry(data: unknown): {
12687
13250
  path?: string | undefined;
12688
13251
  }[] | undefined;
12689
13252
  memberReads?: string[] | undefined;
13253
+ shellReadItemIds?: string[] | undefined;
12690
13254
  itemIds?: {
12691
13255
  [x: string]: string;
12692
13256
  } | undefined;
13257
+ repoPath?: string | undefined;
12693
13258
  transcriptPath?: string | undefined;
12694
13259
  repoId?: string | undefined;
12695
13260
  projectId?: string | undefined;