@mossbear/protocol 0.1.0-alpha.117 → 0.1.0-alpha.118
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/guideSnapshot.d.ts +0 -3
- package/dist/guideSnapshot.d.ts.map +1 -1
- package/dist/guideSnapshot.js +0 -1
- package/dist/guideSnapshot.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/photos.d.ts +56 -1
- package/dist/photos.d.ts.map +1 -1
- package/dist/photos.js +13 -1
- package/dist/photos.js.map +1 -1
- package/dist/photos.test.js +8 -1
- package/dist/photos.test.js.map +1 -1
- package/dist/schemas.d.ts +302 -68
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +3 -3
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.test.js +2 -3
- package/dist/schemas.test.js.map +1 -1
- package/package.json +1 -1
- package/dist/steeringOverTime.d.ts +0 -30
- package/dist/steeringOverTime.d.ts.map +0 -1
- package/dist/steeringOverTime.js +0 -19
- package/dist/steeringOverTime.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -276,14 +276,14 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
276
276
|
*/
|
|
277
277
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
278
278
|
/** Set when the item is a photo: its stored parts, never their bytes. */
|
|
279
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
280
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
279
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
280
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
281
281
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
282
282
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
283
283
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
284
284
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
285
285
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
286
|
-
}, undefined>, undefined>;
|
|
286
|
+
}, undefined>, undefined>, undefined>;
|
|
287
287
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
288
288
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
289
289
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -303,7 +303,25 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
303
303
|
height: number;
|
|
304
304
|
}[];
|
|
305
305
|
}[], 1, undefined>]>, undefined>;
|
|
306
|
-
}, undefined>,
|
|
306
|
+
}, undefined>, v.CheckAction<{
|
|
307
|
+
parts?: {
|
|
308
|
+
role: "original" | "display" | "thumb";
|
|
309
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
310
|
+
bytes: number;
|
|
311
|
+
width: number;
|
|
312
|
+
height: number;
|
|
313
|
+
}[] | undefined;
|
|
314
|
+
images?: {
|
|
315
|
+
id?: string | undefined;
|
|
316
|
+
parts: {
|
|
317
|
+
role: "original" | "display" | "thumb";
|
|
318
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
319
|
+
bytes: number;
|
|
320
|
+
width: number;
|
|
321
|
+
height: number;
|
|
322
|
+
}[];
|
|
323
|
+
}[] | undefined;
|
|
324
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
307
325
|
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
308
326
|
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
309
327
|
/**
|
|
@@ -546,13 +564,13 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
546
564
|
content: string | null;
|
|
547
565
|
description?: string | null | undefined;
|
|
548
566
|
asset?: {
|
|
549
|
-
parts
|
|
567
|
+
parts?: {
|
|
550
568
|
role: "original" | "display" | "thumb";
|
|
551
569
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
552
570
|
bytes: number;
|
|
553
571
|
width: number;
|
|
554
572
|
height: number;
|
|
555
|
-
}[];
|
|
573
|
+
}[] | undefined;
|
|
556
574
|
images?: {
|
|
557
575
|
id?: string | undefined;
|
|
558
576
|
parts: {
|
|
@@ -638,13 +656,13 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
638
656
|
content: string | null;
|
|
639
657
|
description?: string | null | undefined;
|
|
640
658
|
asset?: {
|
|
641
|
-
parts
|
|
659
|
+
parts?: {
|
|
642
660
|
role: "original" | "display" | "thumb";
|
|
643
661
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
644
662
|
bytes: number;
|
|
645
663
|
width: number;
|
|
646
664
|
height: number;
|
|
647
|
-
}[];
|
|
665
|
+
}[] | undefined;
|
|
648
666
|
images?: {
|
|
649
667
|
id?: string | undefined;
|
|
650
668
|
parts: {
|
|
@@ -763,14 +781,14 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
763
781
|
*/
|
|
764
782
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
765
783
|
/** Set when the item is a photo: its stored parts, never their bytes. */
|
|
766
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
767
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
784
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
785
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
768
786
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
769
787
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
770
788
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
771
789
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
772
790
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
773
|
-
}, undefined>, undefined>;
|
|
791
|
+
}, undefined>, undefined>, undefined>;
|
|
774
792
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
775
793
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
776
794
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -790,7 +808,25 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
790
808
|
height: number;
|
|
791
809
|
}[];
|
|
792
810
|
}[], 1, undefined>]>, undefined>;
|
|
793
|
-
}, undefined>,
|
|
811
|
+
}, undefined>, v.CheckAction<{
|
|
812
|
+
parts?: {
|
|
813
|
+
role: "original" | "display" | "thumb";
|
|
814
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
815
|
+
bytes: number;
|
|
816
|
+
width: number;
|
|
817
|
+
height: number;
|
|
818
|
+
}[] | undefined;
|
|
819
|
+
images?: {
|
|
820
|
+
id?: string | undefined;
|
|
821
|
+
parts: {
|
|
822
|
+
role: "original" | "display" | "thumb";
|
|
823
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
824
|
+
bytes: number;
|
|
825
|
+
width: number;
|
|
826
|
+
height: number;
|
|
827
|
+
}[];
|
|
828
|
+
}[] | undefined;
|
|
829
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
794
830
|
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
795
831
|
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
796
832
|
/**
|
|
@@ -1033,13 +1069,13 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1033
1069
|
content: string | null;
|
|
1034
1070
|
description?: string | null | undefined;
|
|
1035
1071
|
asset?: {
|
|
1036
|
-
parts
|
|
1072
|
+
parts?: {
|
|
1037
1073
|
role: "original" | "display" | "thumb";
|
|
1038
1074
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1039
1075
|
bytes: number;
|
|
1040
1076
|
width: number;
|
|
1041
1077
|
height: number;
|
|
1042
|
-
}[];
|
|
1078
|
+
}[] | undefined;
|
|
1043
1079
|
images?: {
|
|
1044
1080
|
id?: string | undefined;
|
|
1045
1081
|
parts: {
|
|
@@ -1125,13 +1161,13 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1125
1161
|
content: string | null;
|
|
1126
1162
|
description?: string | null | undefined;
|
|
1127
1163
|
asset?: {
|
|
1128
|
-
parts
|
|
1164
|
+
parts?: {
|
|
1129
1165
|
role: "original" | "display" | "thumb";
|
|
1130
1166
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1131
1167
|
bytes: number;
|
|
1132
1168
|
width: number;
|
|
1133
1169
|
height: number;
|
|
1134
|
-
}[];
|
|
1170
|
+
}[] | undefined;
|
|
1135
1171
|
images?: {
|
|
1136
1172
|
id?: string | undefined;
|
|
1137
1173
|
parts: {
|
|
@@ -1268,14 +1304,14 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
1268
1304
|
*/
|
|
1269
1305
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1270
1306
|
/** Set when the item is a photo: its stored parts, never their bytes. */
|
|
1271
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1272
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
1307
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1308
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1273
1309
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
1274
1310
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
1275
1311
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1276
1312
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1277
1313
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1278
|
-
}, undefined>, undefined>;
|
|
1314
|
+
}, undefined>, undefined>, undefined>;
|
|
1279
1315
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1280
1316
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1281
1317
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1295,7 +1331,25 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
1295
1331
|
height: number;
|
|
1296
1332
|
}[];
|
|
1297
1333
|
}[], 1, undefined>]>, undefined>;
|
|
1298
|
-
}, undefined>,
|
|
1334
|
+
}, undefined>, v.CheckAction<{
|
|
1335
|
+
parts?: {
|
|
1336
|
+
role: "original" | "display" | "thumb";
|
|
1337
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1338
|
+
bytes: number;
|
|
1339
|
+
width: number;
|
|
1340
|
+
height: number;
|
|
1341
|
+
}[] | undefined;
|
|
1342
|
+
images?: {
|
|
1343
|
+
id?: string | undefined;
|
|
1344
|
+
parts: {
|
|
1345
|
+
role: "original" | "display" | "thumb";
|
|
1346
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1347
|
+
bytes: number;
|
|
1348
|
+
width: number;
|
|
1349
|
+
height: number;
|
|
1350
|
+
}[];
|
|
1351
|
+
}[] | undefined;
|
|
1352
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
1299
1353
|
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1300
1354
|
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1301
1355
|
/**
|
|
@@ -1538,13 +1592,13 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
1538
1592
|
content: string | null;
|
|
1539
1593
|
description?: string | null | undefined;
|
|
1540
1594
|
asset?: {
|
|
1541
|
-
parts
|
|
1595
|
+
parts?: {
|
|
1542
1596
|
role: "original" | "display" | "thumb";
|
|
1543
1597
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1544
1598
|
bytes: number;
|
|
1545
1599
|
width: number;
|
|
1546
1600
|
height: number;
|
|
1547
|
-
}[];
|
|
1601
|
+
}[] | undefined;
|
|
1548
1602
|
images?: {
|
|
1549
1603
|
id?: string | undefined;
|
|
1550
1604
|
parts: {
|
|
@@ -1630,13 +1684,13 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
1630
1684
|
content: string | null;
|
|
1631
1685
|
description?: string | null | undefined;
|
|
1632
1686
|
asset?: {
|
|
1633
|
-
parts
|
|
1687
|
+
parts?: {
|
|
1634
1688
|
role: "original" | "display" | "thumb";
|
|
1635
1689
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
1636
1690
|
bytes: number;
|
|
1637
1691
|
width: number;
|
|
1638
1692
|
height: number;
|
|
1639
|
-
}[];
|
|
1693
|
+
}[] | undefined;
|
|
1640
1694
|
images?: {
|
|
1641
1695
|
id?: string | undefined;
|
|
1642
1696
|
parts: {
|
|
@@ -2133,14 +2187,14 @@ export declare const ArtifactSchema: v.ObjectSchema<{
|
|
|
2133
2187
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
2134
2188
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
2135
2189
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
2136
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2137
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
2190
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2191
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2138
2192
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
2139
2193
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
2140
2194
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2141
2195
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2142
2196
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2143
|
-
}, undefined>, undefined>;
|
|
2197
|
+
}, undefined>, undefined>, undefined>;
|
|
2144
2198
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
2145
2199
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
2146
2200
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -2160,7 +2214,25 @@ export declare const ArtifactSchema: v.ObjectSchema<{
|
|
|
2160
2214
|
height: number;
|
|
2161
2215
|
}[];
|
|
2162
2216
|
}[], 1, undefined>]>, undefined>;
|
|
2163
|
-
}, undefined>,
|
|
2217
|
+
}, undefined>, v.CheckAction<{
|
|
2218
|
+
parts?: {
|
|
2219
|
+
role: "original" | "display" | "thumb";
|
|
2220
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
2221
|
+
bytes: number;
|
|
2222
|
+
width: number;
|
|
2223
|
+
height: number;
|
|
2224
|
+
}[] | undefined;
|
|
2225
|
+
images?: {
|
|
2226
|
+
id?: string | undefined;
|
|
2227
|
+
parts: {
|
|
2228
|
+
role: "original" | "display" | "thumb";
|
|
2229
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
2230
|
+
bytes: number;
|
|
2231
|
+
width: number;
|
|
2232
|
+
height: number;
|
|
2233
|
+
}[];
|
|
2234
|
+
}[] | undefined;
|
|
2235
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
2164
2236
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
2165
2237
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2166
2238
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -2320,14 +2392,14 @@ export declare const ArtifactMetadataSchema: v.StrictObjectSchema<Omit<{
|
|
|
2320
2392
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
2321
2393
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
2322
2394
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
2323
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2324
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
2395
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2396
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2325
2397
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
2326
2398
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
2327
2399
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2328
2400
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2329
2401
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2330
|
-
}, undefined>, undefined>;
|
|
2402
|
+
}, undefined>, undefined>, undefined>;
|
|
2331
2403
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
2332
2404
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
2333
2405
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -2347,7 +2419,25 @@ export declare const ArtifactMetadataSchema: v.StrictObjectSchema<Omit<{
|
|
|
2347
2419
|
height: number;
|
|
2348
2420
|
}[];
|
|
2349
2421
|
}[], 1, undefined>]>, undefined>;
|
|
2350
|
-
}, undefined>,
|
|
2422
|
+
}, undefined>, v.CheckAction<{
|
|
2423
|
+
parts?: {
|
|
2424
|
+
role: "original" | "display" | "thumb";
|
|
2425
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
2426
|
+
bytes: number;
|
|
2427
|
+
width: number;
|
|
2428
|
+
height: number;
|
|
2429
|
+
}[] | undefined;
|
|
2430
|
+
images?: {
|
|
2431
|
+
id?: string | undefined;
|
|
2432
|
+
parts: {
|
|
2433
|
+
role: "original" | "display" | "thumb";
|
|
2434
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
2435
|
+
bytes: number;
|
|
2436
|
+
width: number;
|
|
2437
|
+
height: number;
|
|
2438
|
+
}[];
|
|
2439
|
+
}[] | undefined;
|
|
2440
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
2351
2441
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
2352
2442
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2353
2443
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -3295,14 +3385,14 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3295
3385
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
3296
3386
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
3297
3387
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
3298
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3299
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
3388
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3389
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3300
3390
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
3301
3391
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
3302
3392
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3303
3393
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3304
3394
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3305
|
-
}, undefined>, undefined>;
|
|
3395
|
+
}, undefined>, undefined>, undefined>;
|
|
3306
3396
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
3307
3397
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
3308
3398
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -3322,7 +3412,25 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3322
3412
|
height: number;
|
|
3323
3413
|
}[];
|
|
3324
3414
|
}[], 1, undefined>]>, undefined>;
|
|
3325
|
-
}, undefined>,
|
|
3415
|
+
}, undefined>, v.CheckAction<{
|
|
3416
|
+
parts?: {
|
|
3417
|
+
role: "original" | "display" | "thumb";
|
|
3418
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3419
|
+
bytes: number;
|
|
3420
|
+
width: number;
|
|
3421
|
+
height: number;
|
|
3422
|
+
}[] | undefined;
|
|
3423
|
+
images?: {
|
|
3424
|
+
id?: string | undefined;
|
|
3425
|
+
parts: {
|
|
3426
|
+
role: "original" | "display" | "thumb";
|
|
3427
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3428
|
+
bytes: number;
|
|
3429
|
+
width: number;
|
|
3430
|
+
height: number;
|
|
3431
|
+
}[];
|
|
3432
|
+
}[] | undefined;
|
|
3433
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
3326
3434
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
3327
3435
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3328
3436
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -3521,14 +3629,14 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3521
3629
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
3522
3630
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
3523
3631
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
3524
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3525
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
3632
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3633
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3526
3634
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
3527
3635
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
3528
3636
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3529
3637
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3530
3638
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3531
|
-
}, undefined>, undefined>;
|
|
3639
|
+
}, undefined>, undefined>, undefined>;
|
|
3532
3640
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
3533
3641
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
3534
3642
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -3548,7 +3656,25 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3548
3656
|
height: number;
|
|
3549
3657
|
}[];
|
|
3550
3658
|
}[], 1, undefined>]>, undefined>;
|
|
3551
|
-
}, undefined>,
|
|
3659
|
+
}, undefined>, v.CheckAction<{
|
|
3660
|
+
parts?: {
|
|
3661
|
+
role: "original" | "display" | "thumb";
|
|
3662
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3663
|
+
bytes: number;
|
|
3664
|
+
width: number;
|
|
3665
|
+
height: number;
|
|
3666
|
+
}[] | undefined;
|
|
3667
|
+
images?: {
|
|
3668
|
+
id?: string | undefined;
|
|
3669
|
+
parts: {
|
|
3670
|
+
role: "original" | "display" | "thumb";
|
|
3671
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3672
|
+
bytes: number;
|
|
3673
|
+
width: number;
|
|
3674
|
+
height: number;
|
|
3675
|
+
}[];
|
|
3676
|
+
}[] | undefined;
|
|
3677
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
3552
3678
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
3553
3679
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3554
3680
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -3709,14 +3835,14 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3709
3835
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
3710
3836
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
3711
3837
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
3712
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3713
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
3838
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3839
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3714
3840
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
3715
3841
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
3716
3842
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3717
3843
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3718
3844
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3719
|
-
}, undefined>, undefined>;
|
|
3845
|
+
}, undefined>, undefined>, undefined>;
|
|
3720
3846
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
3721
3847
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
3722
3848
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -3736,7 +3862,25 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3736
3862
|
height: number;
|
|
3737
3863
|
}[];
|
|
3738
3864
|
}[], 1, undefined>]>, undefined>;
|
|
3739
|
-
}, undefined>,
|
|
3865
|
+
}, undefined>, v.CheckAction<{
|
|
3866
|
+
parts?: {
|
|
3867
|
+
role: "original" | "display" | "thumb";
|
|
3868
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3869
|
+
bytes: number;
|
|
3870
|
+
width: number;
|
|
3871
|
+
height: number;
|
|
3872
|
+
}[] | undefined;
|
|
3873
|
+
images?: {
|
|
3874
|
+
id?: string | undefined;
|
|
3875
|
+
parts: {
|
|
3876
|
+
role: "original" | "display" | "thumb";
|
|
3877
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
3878
|
+
bytes: number;
|
|
3879
|
+
width: number;
|
|
3880
|
+
height: number;
|
|
3881
|
+
}[];
|
|
3882
|
+
}[] | undefined;
|
|
3883
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
3740
3884
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
3741
3885
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3742
3886
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -3978,14 +4122,14 @@ export declare const ListArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
3978
4122
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
3979
4123
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
3980
4124
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
3981
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3982
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
4125
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4126
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3983
4127
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
3984
4128
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
3985
4129
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3986
4130
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3987
4131
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
3988
|
-
}, undefined>, undefined>;
|
|
4132
|
+
}, undefined>, undefined>, undefined>;
|
|
3989
4133
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
3990
4134
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
3991
4135
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4005,7 +4149,25 @@ export declare const ListArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
4005
4149
|
height: number;
|
|
4006
4150
|
}[];
|
|
4007
4151
|
}[], 1, undefined>]>, undefined>;
|
|
4008
|
-
}, undefined>,
|
|
4152
|
+
}, undefined>, v.CheckAction<{
|
|
4153
|
+
parts?: {
|
|
4154
|
+
role: "original" | "display" | "thumb";
|
|
4155
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4156
|
+
bytes: number;
|
|
4157
|
+
width: number;
|
|
4158
|
+
height: number;
|
|
4159
|
+
}[] | undefined;
|
|
4160
|
+
images?: {
|
|
4161
|
+
id?: string | undefined;
|
|
4162
|
+
parts: {
|
|
4163
|
+
role: "original" | "display" | "thumb";
|
|
4164
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4165
|
+
bytes: number;
|
|
4166
|
+
width: number;
|
|
4167
|
+
height: number;
|
|
4168
|
+
}[];
|
|
4169
|
+
}[] | undefined;
|
|
4170
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
4009
4171
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
4010
4172
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4011
4173
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -4176,14 +4338,14 @@ export declare const ListArtifactMetadataResponseSchema: v.ObjectSchema<{
|
|
|
4176
4338
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
4177
4339
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
4178
4340
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
4179
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
4180
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
4341
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4342
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4181
4343
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
4182
4344
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
4183
4345
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4184
4346
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4185
4347
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4186
|
-
}, undefined>, undefined>;
|
|
4348
|
+
}, undefined>, undefined>, undefined>;
|
|
4187
4349
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
4188
4350
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
4189
4351
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4203,7 +4365,25 @@ export declare const ListArtifactMetadataResponseSchema: v.ObjectSchema<{
|
|
|
4203
4365
|
height: number;
|
|
4204
4366
|
}[];
|
|
4205
4367
|
}[], 1, undefined>]>, undefined>;
|
|
4206
|
-
}, undefined>,
|
|
4368
|
+
}, undefined>, v.CheckAction<{
|
|
4369
|
+
parts?: {
|
|
4370
|
+
role: "original" | "display" | "thumb";
|
|
4371
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4372
|
+
bytes: number;
|
|
4373
|
+
width: number;
|
|
4374
|
+
height: number;
|
|
4375
|
+
}[] | undefined;
|
|
4376
|
+
images?: {
|
|
4377
|
+
id?: string | undefined;
|
|
4378
|
+
parts: {
|
|
4379
|
+
role: "original" | "display" | "thumb";
|
|
4380
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4381
|
+
bytes: number;
|
|
4382
|
+
width: number;
|
|
4383
|
+
height: number;
|
|
4384
|
+
}[];
|
|
4385
|
+
}[] | undefined;
|
|
4386
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
4207
4387
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
4208
4388
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4209
4389
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -4536,14 +4716,14 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
|
|
|
4536
4716
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
4537
4717
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
4538
4718
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
4539
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
4540
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
4719
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4720
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4541
4721
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
4542
4722
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
4543
4723
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4544
4724
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4545
4725
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4546
|
-
}, undefined>, undefined>;
|
|
4726
|
+
}, undefined>, undefined>, undefined>;
|
|
4547
4727
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
4548
4728
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
4549
4729
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4563,7 +4743,25 @@ export declare const MarkDoneResponseSchema: v.ObjectSchema<{
|
|
|
4563
4743
|
height: number;
|
|
4564
4744
|
}[];
|
|
4565
4745
|
}[], 1, undefined>]>, undefined>;
|
|
4566
|
-
}, undefined>,
|
|
4746
|
+
}, undefined>, v.CheckAction<{
|
|
4747
|
+
parts?: {
|
|
4748
|
+
role: "original" | "display" | "thumb";
|
|
4749
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4750
|
+
bytes: number;
|
|
4751
|
+
width: number;
|
|
4752
|
+
height: number;
|
|
4753
|
+
}[] | undefined;
|
|
4754
|
+
images?: {
|
|
4755
|
+
id?: string | undefined;
|
|
4756
|
+
parts: {
|
|
4757
|
+
role: "original" | "display" | "thumb";
|
|
4758
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4759
|
+
bytes: number;
|
|
4760
|
+
width: number;
|
|
4761
|
+
height: number;
|
|
4762
|
+
}[];
|
|
4763
|
+
}[] | undefined;
|
|
4764
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
4567
4765
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
4568
4766
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4569
4767
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -4726,14 +4924,14 @@ export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4726
4924
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
4727
4925
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
4728
4926
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
4729
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
4730
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
4927
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4928
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4731
4929
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
4732
4930
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
4733
4931
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4734
4932
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4735
4933
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4736
|
-
}, undefined>, undefined>;
|
|
4934
|
+
}, undefined>, undefined>, undefined>;
|
|
4737
4935
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
4738
4936
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
4739
4937
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4753,7 +4951,25 @@ export declare const DeleteArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4753
4951
|
height: number;
|
|
4754
4952
|
}[];
|
|
4755
4953
|
}[], 1, undefined>]>, undefined>;
|
|
4756
|
-
}, undefined>,
|
|
4954
|
+
}, undefined>, v.CheckAction<{
|
|
4955
|
+
parts?: {
|
|
4956
|
+
role: "original" | "display" | "thumb";
|
|
4957
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4958
|
+
bytes: number;
|
|
4959
|
+
width: number;
|
|
4960
|
+
height: number;
|
|
4961
|
+
}[] | undefined;
|
|
4962
|
+
images?: {
|
|
4963
|
+
id?: string | undefined;
|
|
4964
|
+
parts: {
|
|
4965
|
+
role: "original" | "display" | "thumb";
|
|
4966
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
4967
|
+
bytes: number;
|
|
4968
|
+
width: number;
|
|
4969
|
+
height: number;
|
|
4970
|
+
}[];
|
|
4971
|
+
}[] | undefined;
|
|
4972
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
4757
4973
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
4758
4974
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4759
4975
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -4915,14 +5131,14 @@ export declare const WithdrawArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4915
5131
|
/** What the artifact is, as a reader names it: {@link artifactKindOf}. */
|
|
4916
5132
|
readonly kind: v.PicklistSchema<readonly ["markdown", "html", "code", "photo", "file", "guide"], undefined>;
|
|
4917
5133
|
/** Set when the artifact is a photo: its stored parts, never their bytes. */
|
|
4918
|
-
readonly asset: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
4919
|
-
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
5134
|
+
readonly asset: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
5135
|
+
readonly parts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4920
5136
|
readonly role: v.PicklistSchema<readonly ["original", "display", "thumb"], undefined>;
|
|
4921
5137
|
readonly mediaType: v.PicklistSchema<readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/heic", "image/heif"], undefined>;
|
|
4922
5138
|
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4923
5139
|
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4924
5140
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4925
|
-
}, undefined>, undefined>;
|
|
5141
|
+
}, undefined>, undefined>, undefined>;
|
|
4926
5142
|
readonly images: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
4927
5143
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
4928
5144
|
readonly parts: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4942,7 +5158,25 @@ export declare const WithdrawArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4942
5158
|
height: number;
|
|
4943
5159
|
}[];
|
|
4944
5160
|
}[], 1, undefined>]>, undefined>;
|
|
4945
|
-
}, undefined>,
|
|
5161
|
+
}, undefined>, v.CheckAction<{
|
|
5162
|
+
parts?: {
|
|
5163
|
+
role: "original" | "display" | "thumb";
|
|
5164
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
5165
|
+
bytes: number;
|
|
5166
|
+
width: number;
|
|
5167
|
+
height: number;
|
|
5168
|
+
}[] | undefined;
|
|
5169
|
+
images?: {
|
|
5170
|
+
id?: string | undefined;
|
|
5171
|
+
parts: {
|
|
5172
|
+
role: "original" | "display" | "thumb";
|
|
5173
|
+
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
5174
|
+
bytes: number;
|
|
5175
|
+
width: number;
|
|
5176
|
+
height: number;
|
|
5177
|
+
}[];
|
|
5178
|
+
}[] | undefined;
|
|
5179
|
+
}, "A photo asset needs images">]>, undefined>, undefined>;
|
|
4946
5180
|
/** Monotonic content version; echo it back as `expectedVersion` to update. */
|
|
4947
5181
|
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
4948
5182
|
readonly state: v.PicklistSchema<["live", "deleted", "removed"], undefined>;
|
|
@@ -6758,13 +6992,13 @@ export declare function parseContextItemsResponse(data: unknown): {
|
|
|
6758
6992
|
content: string | null;
|
|
6759
6993
|
description?: string | null | undefined;
|
|
6760
6994
|
asset?: {
|
|
6761
|
-
parts
|
|
6995
|
+
parts?: {
|
|
6762
6996
|
role: "original" | "display" | "thumb";
|
|
6763
6997
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
6764
6998
|
bytes: number;
|
|
6765
6999
|
width: number;
|
|
6766
7000
|
height: number;
|
|
6767
|
-
}[];
|
|
7001
|
+
}[] | undefined;
|
|
6768
7002
|
images?: {
|
|
6769
7003
|
id?: string | undefined;
|
|
6770
7004
|
parts: {
|
|
@@ -6860,13 +7094,13 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
|
|
|
6860
7094
|
content: string | null;
|
|
6861
7095
|
description?: string | null | undefined;
|
|
6862
7096
|
asset?: {
|
|
6863
|
-
parts
|
|
7097
|
+
parts?: {
|
|
6864
7098
|
role: "original" | "display" | "thumb";
|
|
6865
7099
|
mediaType: "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif";
|
|
6866
7100
|
bytes: number;
|
|
6867
7101
|
width: number;
|
|
6868
7102
|
height: number;
|
|
6869
|
-
}[];
|
|
7103
|
+
}[] | undefined;
|
|
6870
7104
|
images?: {
|
|
6871
7105
|
id?: string | undefined;
|
|
6872
7106
|
parts: {
|