@40rty/ams-sdk 0.4.4 → 0.5.1

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.
@@ -95,20 +95,20 @@ export declare const ProductReviewHighlightSchema: z.ZodObject<{
95
95
  rating: number;
96
96
  author: string;
97
97
  title?: string | undefined;
98
+ mark?: string | undefined;
98
99
  verified?: boolean | undefined;
99
100
  writtenFor?: string | undefined;
100
101
  highlight?: string | undefined;
101
- mark?: string | undefined;
102
102
  }, {
103
103
  date: string;
104
104
  content: string;
105
105
  rating: number;
106
106
  author: string;
107
107
  title?: string | undefined;
108
+ mark?: string | undefined;
108
109
  verified?: boolean | undefined;
109
110
  writtenFor?: string | undefined;
110
111
  highlight?: string | undefined;
111
- mark?: string | undefined;
112
112
  }>;
113
113
  export type ProductReviewHighlight = z.infer<typeof ProductReviewHighlightSchema>;
114
114
  /** Average + total, always over a product's FULL review set. */
@@ -220,21 +220,26 @@ export declare const ProductReviewDataSchema: z.ZodObject<{
220
220
  rating: number;
221
221
  author: string;
222
222
  title?: string | undefined;
223
+ mark?: string | undefined;
223
224
  verified?: boolean | undefined;
224
225
  writtenFor?: string | undefined;
225
226
  highlight?: string | undefined;
226
- mark?: string | undefined;
227
227
  }, {
228
228
  date: string;
229
229
  content: string;
230
230
  rating: number;
231
231
  author: string;
232
232
  title?: string | undefined;
233
+ mark?: string | undefined;
233
234
  verified?: boolean | undefined;
234
235
  writtenFor?: string | undefined;
235
236
  highlight?: string | undefined;
236
- mark?: string | undefined;
237
237
  }>, "many">>;
238
+ /**
239
+ * True when the review provider could not be read and nothing is indexed —
240
+ * the empty lists mean "not loaded", NOT "this product has no reviews".
241
+ */
242
+ unavailable: z.ZodOptional<z.ZodBoolean>;
238
243
  }, "strip", z.ZodTypeAny, {
239
244
  id: string;
240
245
  reviews: {
@@ -257,13 +262,15 @@ export declare const ProductReviewDataSchema: z.ZodObject<{
257
262
  rating: number;
258
263
  author: string;
259
264
  title?: string | undefined;
265
+ mark?: string | undefined;
260
266
  verified?: boolean | undefined;
261
267
  writtenFor?: string | undefined;
262
268
  highlight?: string | undefined;
263
- mark?: string | undefined;
264
269
  }[];
270
+ unavailable?: boolean | undefined;
265
271
  }, {
266
272
  id: string;
273
+ unavailable?: boolean | undefined;
267
274
  reviews?: {
268
275
  date: string;
269
276
  content: string;
@@ -284,10 +291,10 @@ export declare const ProductReviewDataSchema: z.ZodObject<{
284
291
  rating: number;
285
292
  author: string;
286
293
  title?: string | undefined;
294
+ mark?: string | undefined;
287
295
  verified?: boolean | undefined;
288
296
  writtenFor?: string | undefined;
289
297
  highlight?: string | undefined;
290
- mark?: string | undefined;
291
298
  }[] | undefined;
292
299
  }>;
293
300
  export type ProductReviewData = z.infer<typeof ProductReviewDataSchema>;
@@ -386,21 +393,26 @@ export declare const ProductReviewPayloadSchema: z.ZodObject<Omit<{
386
393
  rating: number;
387
394
  author: string;
388
395
  title?: string | undefined;
396
+ mark?: string | undefined;
389
397
  verified?: boolean | undefined;
390
398
  writtenFor?: string | undefined;
391
399
  highlight?: string | undefined;
392
- mark?: string | undefined;
393
400
  }, {
394
401
  date: string;
395
402
  content: string;
396
403
  rating: number;
397
404
  author: string;
398
405
  title?: string | undefined;
406
+ mark?: string | undefined;
399
407
  verified?: boolean | undefined;
400
408
  writtenFor?: string | undefined;
401
409
  highlight?: string | undefined;
402
- mark?: string | undefined;
403
410
  }>, "many">>;
411
+ /**
412
+ * True when the review provider could not be read and nothing is indexed —
413
+ * the empty lists mean "not loaded", NOT "this product has no reviews".
414
+ */
415
+ unavailable: z.ZodOptional<z.ZodBoolean>;
404
416
  }, "id">, "strip", z.ZodTypeAny, {
405
417
  reviews: {
406
418
  date: string;
@@ -422,12 +434,14 @@ export declare const ProductReviewPayloadSchema: z.ZodObject<Omit<{
422
434
  rating: number;
423
435
  author: string;
424
436
  title?: string | undefined;
437
+ mark?: string | undefined;
425
438
  verified?: boolean | undefined;
426
439
  writtenFor?: string | undefined;
427
440
  highlight?: string | undefined;
428
- mark?: string | undefined;
429
441
  }[];
442
+ unavailable?: boolean | undefined;
430
443
  }, {
444
+ unavailable?: boolean | undefined;
431
445
  reviews?: {
432
446
  date: string;
433
447
  content: string;
@@ -448,10 +462,10 @@ export declare const ProductReviewPayloadSchema: z.ZodObject<Omit<{
448
462
  rating: number;
449
463
  author: string;
450
464
  title?: string | undefined;
465
+ mark?: string | undefined;
451
466
  verified?: boolean | undefined;
452
467
  writtenFor?: string | undefined;
453
468
  highlight?: string | undefined;
454
- mark?: string | undefined;
455
469
  }[] | undefined;
456
470
  }>;
457
471
  export type ProductReviewPayload = z.infer<typeof ProductReviewPayloadSchema>;
@@ -1390,6 +1390,7 @@ export declare const HOST_MODULES: {
1390
1390
  label: zod.ZodString;
1391
1391
  version: zod.ZodString;
1392
1392
  description: zod.ZodOptional<zod.ZodString>;
1393
+ builtWithSdk: zod.ZodOptional<zod.ZodString>;
1393
1394
  catalog: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1394
1395
  type: zod.ZodString;
1395
1396
  propsSchema: zod.ZodOptional<zod.ZodType<spacestation.WireSchema, zod.ZodTypeDef, spacestation.WireSchema>>;
@@ -1500,6 +1501,106 @@ export declare const HOST_MODULES: {
1500
1501
  }, {
1501
1502
  themeClass: string;
1502
1503
  }>>;
1504
+ mark: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
1505
+ square: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1506
+ type: zod.ZodEnum<["svg", "png"]>;
1507
+ data: zod.ZodString;
1508
+ }, "strict", zod.ZodTypeAny, {
1509
+ type: "svg" | "png";
1510
+ data: string;
1511
+ }, {
1512
+ type: "svg" | "png";
1513
+ data: string;
1514
+ }>, zod.ZodObject<{
1515
+ type: zod.ZodEnum<["svg", "png"]>;
1516
+ sha256: zod.ZodString;
1517
+ }, "strict", zod.ZodTypeAny, {
1518
+ type: "svg" | "png";
1519
+ sha256: string;
1520
+ }, {
1521
+ type: "svg" | "png";
1522
+ sha256: string;
1523
+ }>]>>;
1524
+ wordmark: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1525
+ type: zod.ZodEnum<["svg", "png"]>;
1526
+ data: zod.ZodString;
1527
+ }, "strict", zod.ZodTypeAny, {
1528
+ type: "svg" | "png";
1529
+ data: string;
1530
+ }, {
1531
+ type: "svg" | "png";
1532
+ data: string;
1533
+ }>, zod.ZodObject<{
1534
+ type: zod.ZodEnum<["svg", "png"]>;
1535
+ sha256: zod.ZodString;
1536
+ }, "strict", zod.ZodTypeAny, {
1537
+ type: "svg" | "png";
1538
+ sha256: string;
1539
+ }, {
1540
+ type: "svg" | "png";
1541
+ sha256: string;
1542
+ }>]>>;
1543
+ }, "strict", zod.ZodTypeAny, {
1544
+ square?: {
1545
+ type: "svg" | "png";
1546
+ data: string;
1547
+ } | {
1548
+ type: "svg" | "png";
1549
+ sha256: string;
1550
+ } | undefined;
1551
+ wordmark?: {
1552
+ type: "svg" | "png";
1553
+ data: string;
1554
+ } | {
1555
+ type: "svg" | "png";
1556
+ sha256: string;
1557
+ } | undefined;
1558
+ }, {
1559
+ square?: {
1560
+ type: "svg" | "png";
1561
+ data: string;
1562
+ } | {
1563
+ type: "svg" | "png";
1564
+ sha256: string;
1565
+ } | undefined;
1566
+ wordmark?: {
1567
+ type: "svg" | "png";
1568
+ data: string;
1569
+ } | {
1570
+ type: "svg" | "png";
1571
+ sha256: string;
1572
+ } | undefined;
1573
+ }>, {
1574
+ square?: {
1575
+ type: "svg" | "png";
1576
+ data: string;
1577
+ } | {
1578
+ type: "svg" | "png";
1579
+ sha256: string;
1580
+ } | undefined;
1581
+ wordmark?: {
1582
+ type: "svg" | "png";
1583
+ data: string;
1584
+ } | {
1585
+ type: "svg" | "png";
1586
+ sha256: string;
1587
+ } | undefined;
1588
+ }, {
1589
+ square?: {
1590
+ type: "svg" | "png";
1591
+ data: string;
1592
+ } | {
1593
+ type: "svg" | "png";
1594
+ sha256: string;
1595
+ } | undefined;
1596
+ wordmark?: {
1597
+ type: "svg" | "png";
1598
+ data: string;
1599
+ } | {
1600
+ type: "svg" | "png";
1601
+ sha256: string;
1602
+ } | undefined;
1603
+ }>>;
1503
1604
  seedLayout: zod.ZodOptional<zod.ZodObject<{
1504
1605
  root: zod.ZodString;
1505
1606
  aliases: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -1607,6 +1708,7 @@ export declare const HOST_MODULES: {
1607
1708
  manifests: Record<string, string>;
1608
1709
  config?: Record<string, unknown> | undefined;
1609
1710
  description?: string | undefined;
1711
+ builtWithSdk?: string | undefined;
1610
1712
  bundle?: {
1611
1713
  js: string;
1612
1714
  css: string;
@@ -1615,6 +1717,22 @@ export declare const HOST_MODULES: {
1615
1717
  theme?: {
1616
1718
  themeClass: string;
1617
1719
  } | undefined;
1720
+ mark?: {
1721
+ square?: {
1722
+ type: "svg" | "png";
1723
+ data: string;
1724
+ } | {
1725
+ type: "svg" | "png";
1726
+ sha256: string;
1727
+ } | undefined;
1728
+ wordmark?: {
1729
+ type: "svg" | "png";
1730
+ data: string;
1731
+ } | {
1732
+ type: "svg" | "png";
1733
+ sha256: string;
1734
+ } | undefined;
1735
+ } | undefined;
1618
1736
  seedLayout?: {
1619
1737
  root: string;
1620
1738
  elements: Record<string, {
@@ -1671,6 +1789,7 @@ export declare const HOST_MODULES: {
1671
1789
  manifests: Record<string, string>;
1672
1790
  config?: Record<string, unknown> | undefined;
1673
1791
  description?: string | undefined;
1792
+ builtWithSdk?: string | undefined;
1674
1793
  bundle?: {
1675
1794
  js: string;
1676
1795
  css: string;
@@ -1679,6 +1798,22 @@ export declare const HOST_MODULES: {
1679
1798
  theme?: {
1680
1799
  themeClass: string;
1681
1800
  } | undefined;
1801
+ mark?: {
1802
+ square?: {
1803
+ type: "svg" | "png";
1804
+ data: string;
1805
+ } | {
1806
+ type: "svg" | "png";
1807
+ sha256: string;
1808
+ } | undefined;
1809
+ wordmark?: {
1810
+ type: "svg" | "png";
1811
+ data: string;
1812
+ } | {
1813
+ type: "svg" | "png";
1814
+ sha256: string;
1815
+ } | undefined;
1816
+ } | undefined;
1682
1817
  seedLayout?: {
1683
1818
  root: string;
1684
1819
  elements: Record<string, {
@@ -1706,6 +1841,192 @@ export declare const HOST_MODULES: {
1706
1841
  isDraftSource: typeof spacestation.isDraftSource;
1707
1842
  releasePreviewSourceId: typeof spacestation.releasePreviewSourceId;
1708
1843
  parseReleasePreview: typeof spacestation.parseReleasePreview;
1844
+ SDK_VERSION_PATTERN: RegExp;
1845
+ SdkVersionSchema: zod.ZodString;
1846
+ OLDEST_SUPPORTED_SDK: "0.3.0";
1847
+ SDK_SHIMS: {
1848
+ readonly legacyCanvasActions: {
1849
+ readonly below: "0.4.0";
1850
+ };
1851
+ };
1852
+ compareSdkVersions: typeof spacestation.compareSdkVersions;
1853
+ sdkShimsFor: typeof spacestation.sdkShimsFor;
1854
+ sdkWindowProblem: typeof spacestation.sdkWindowProblem;
1855
+ PackageBundleRefSchema: zod.ZodObject<{
1856
+ sourceId: zod.ZodString;
1857
+ js: zod.ZodString;
1858
+ css: zod.ZodString;
1859
+ label: zod.ZodString;
1860
+ version: zod.ZodString;
1861
+ builtWithSdk: zod.ZodOptional<zod.ZodString>;
1862
+ }, "strip", zod.ZodTypeAny, {
1863
+ label: string;
1864
+ sourceId: string;
1865
+ version: string;
1866
+ js: string;
1867
+ css: string;
1868
+ builtWithSdk?: string | undefined;
1869
+ }, {
1870
+ label: string;
1871
+ sourceId: string;
1872
+ version: string;
1873
+ js: string;
1874
+ css: string;
1875
+ builtWithSdk?: string | undefined;
1876
+ }>;
1877
+ BRAND_MARK_TYPES: readonly ["svg", "png"];
1878
+ BRAND_MARK_SLOTS: readonly ["square", "wordmark"];
1879
+ BRAND_MARK_MAX_BYTES: number;
1880
+ BrandMarkSchema: zod.ZodEffects<zod.ZodObject<{
1881
+ square: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1882
+ type: zod.ZodEnum<["svg", "png"]>;
1883
+ data: zod.ZodString;
1884
+ }, "strict", zod.ZodTypeAny, {
1885
+ type: "svg" | "png";
1886
+ data: string;
1887
+ }, {
1888
+ type: "svg" | "png";
1889
+ data: string;
1890
+ }>, zod.ZodObject<{
1891
+ type: zod.ZodEnum<["svg", "png"]>;
1892
+ sha256: zod.ZodString;
1893
+ }, "strict", zod.ZodTypeAny, {
1894
+ type: "svg" | "png";
1895
+ sha256: string;
1896
+ }, {
1897
+ type: "svg" | "png";
1898
+ sha256: string;
1899
+ }>]>>;
1900
+ wordmark: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1901
+ type: zod.ZodEnum<["svg", "png"]>;
1902
+ data: zod.ZodString;
1903
+ }, "strict", zod.ZodTypeAny, {
1904
+ type: "svg" | "png";
1905
+ data: string;
1906
+ }, {
1907
+ type: "svg" | "png";
1908
+ data: string;
1909
+ }>, zod.ZodObject<{
1910
+ type: zod.ZodEnum<["svg", "png"]>;
1911
+ sha256: zod.ZodString;
1912
+ }, "strict", zod.ZodTypeAny, {
1913
+ type: "svg" | "png";
1914
+ sha256: string;
1915
+ }, {
1916
+ type: "svg" | "png";
1917
+ sha256: string;
1918
+ }>]>>;
1919
+ }, "strict", zod.ZodTypeAny, {
1920
+ square?: {
1921
+ type: "svg" | "png";
1922
+ data: string;
1923
+ } | {
1924
+ type: "svg" | "png";
1925
+ sha256: string;
1926
+ } | undefined;
1927
+ wordmark?: {
1928
+ type: "svg" | "png";
1929
+ data: string;
1930
+ } | {
1931
+ type: "svg" | "png";
1932
+ sha256: string;
1933
+ } | undefined;
1934
+ }, {
1935
+ square?: {
1936
+ type: "svg" | "png";
1937
+ data: string;
1938
+ } | {
1939
+ type: "svg" | "png";
1940
+ sha256: string;
1941
+ } | undefined;
1942
+ wordmark?: {
1943
+ type: "svg" | "png";
1944
+ data: string;
1945
+ } | {
1946
+ type: "svg" | "png";
1947
+ sha256: string;
1948
+ } | undefined;
1949
+ }>, {
1950
+ square?: {
1951
+ type: "svg" | "png";
1952
+ data: string;
1953
+ } | {
1954
+ type: "svg" | "png";
1955
+ sha256: string;
1956
+ } | undefined;
1957
+ wordmark?: {
1958
+ type: "svg" | "png";
1959
+ data: string;
1960
+ } | {
1961
+ type: "svg" | "png";
1962
+ sha256: string;
1963
+ } | undefined;
1964
+ }, {
1965
+ square?: {
1966
+ type: "svg" | "png";
1967
+ data: string;
1968
+ } | {
1969
+ type: "svg" | "png";
1970
+ sha256: string;
1971
+ } | undefined;
1972
+ wordmark?: {
1973
+ type: "svg" | "png";
1974
+ data: string;
1975
+ } | {
1976
+ type: "svg" | "png";
1977
+ sha256: string;
1978
+ } | undefined;
1979
+ }>;
1980
+ BrandMarkImageSchema: zod.ZodObject<{
1981
+ src: zod.ZodString;
1982
+ type: zod.ZodEnum<["svg", "png"]>;
1983
+ }, "strict", zod.ZodTypeAny, {
1984
+ type: "svg" | "png";
1985
+ src: string;
1986
+ }, {
1987
+ type: "svg" | "png";
1988
+ src: string;
1989
+ }>;
1990
+ SpaceBrandMarkSchema: zod.ZodObject<{
1991
+ square: zod.ZodNullable<zod.ZodObject<{
1992
+ src: zod.ZodString;
1993
+ type: zod.ZodEnum<["svg", "png"]>;
1994
+ }, "strict", zod.ZodTypeAny, {
1995
+ type: "svg" | "png";
1996
+ src: string;
1997
+ }, {
1998
+ type: "svg" | "png";
1999
+ src: string;
2000
+ }>>;
2001
+ wordmark: zod.ZodNullable<zod.ZodObject<{
2002
+ src: zod.ZodString;
2003
+ type: zod.ZodEnum<["svg", "png"]>;
2004
+ }, "strict", zod.ZodTypeAny, {
2005
+ type: "svg" | "png";
2006
+ src: string;
2007
+ }, {
2008
+ type: "svg" | "png";
2009
+ src: string;
2010
+ }>>;
2011
+ }, "strict", zod.ZodTypeAny, {
2012
+ square: {
2013
+ type: "svg" | "png";
2014
+ src: string;
2015
+ } | null;
2016
+ wordmark: {
2017
+ type: "svg" | "png";
2018
+ src: string;
2019
+ } | null;
2020
+ }, {
2021
+ square: {
2022
+ type: "svg" | "png";
2023
+ src: string;
2024
+ } | null;
2025
+ wordmark: {
2026
+ type: "svg" | "png";
2027
+ src: string;
2028
+ } | null;
2029
+ }>;
1709
2030
  LateBoundValueSchema: zod.ZodObject<{
1710
2031
  fact: zod.ZodLiteral<true>;
1711
2032
  }, "strip", zod.ZodTypeAny, {
@@ -2074,6 +2395,11 @@ export declare const HOST_MODULES: {
2074
2395
  REFERRER_HOST_PARAM: "referrer_host";
2075
2396
  arrivalFromParams: typeof spacestation.arrivalFromParams;
2076
2397
  arrivalToParams: typeof spacestation.arrivalToParams;
2398
+ SOCKET_TICKET_PARAM: "ticket";
2399
+ WIRE_PROTOCOL_VERSION: 1;
2400
+ MIN_WIRE_PROTOCOL_VERSION: 1;
2401
+ WIRE_PROTOCOL_PARAM: "protocol";
2402
+ WIRE_PROTOCOL_UNSUPPORTED_CLOSE: 4426;
2077
2403
  AttributeDefSchema: zod.ZodType<spacestation.AttributeDef, zod.ZodTypeDef, spacestation.AttributeDef>;
2078
2404
  AttributeScopeBucketSchema: zod.ZodObject<{
2079
2405
  scope: zod.ZodString;
@@ -5638,20 +5964,20 @@ export declare const HOST_MODULES: {
5638
5964
  rating: number;
5639
5965
  author: string;
5640
5966
  title?: string | undefined;
5967
+ mark?: string | undefined;
5641
5968
  verified?: boolean | undefined;
5642
5969
  writtenFor?: string | undefined;
5643
5970
  highlight?: string | undefined;
5644
- mark?: string | undefined;
5645
5971
  }, {
5646
5972
  date: string;
5647
5973
  content: string;
5648
5974
  rating: number;
5649
5975
  author: string;
5650
5976
  title?: string | undefined;
5977
+ mark?: string | undefined;
5651
5978
  verified?: boolean | undefined;
5652
5979
  writtenFor?: string | undefined;
5653
5980
  highlight?: string | undefined;
5654
- mark?: string | undefined;
5655
5981
  }>;
5656
5982
  ReviewAggregateSchema: zod.ZodObject<{
5657
5983
  value: zod.ZodNumber;
@@ -5718,21 +6044,22 @@ export declare const HOST_MODULES: {
5718
6044
  rating: number;
5719
6045
  author: string;
5720
6046
  title?: string | undefined;
6047
+ mark?: string | undefined;
5721
6048
  verified?: boolean | undefined;
5722
6049
  writtenFor?: string | undefined;
5723
6050
  highlight?: string | undefined;
5724
- mark?: string | undefined;
5725
6051
  }, {
5726
6052
  date: string;
5727
6053
  content: string;
5728
6054
  rating: number;
5729
6055
  author: string;
5730
6056
  title?: string | undefined;
6057
+ mark?: string | undefined;
5731
6058
  verified?: boolean | undefined;
5732
6059
  writtenFor?: string | undefined;
5733
6060
  highlight?: string | undefined;
5734
- mark?: string | undefined;
5735
6061
  }>, "many">>;
6062
+ unavailable: zod.ZodOptional<zod.ZodBoolean>;
5736
6063
  }, "strip", zod.ZodTypeAny, {
5737
6064
  id: string;
5738
6065
  reviews: {
@@ -5755,13 +6082,15 @@ export declare const HOST_MODULES: {
5755
6082
  rating: number;
5756
6083
  author: string;
5757
6084
  title?: string | undefined;
6085
+ mark?: string | undefined;
5758
6086
  verified?: boolean | undefined;
5759
6087
  writtenFor?: string | undefined;
5760
6088
  highlight?: string | undefined;
5761
- mark?: string | undefined;
5762
6089
  }[];
6090
+ unavailable?: boolean | undefined;
5763
6091
  }, {
5764
6092
  id: string;
6093
+ unavailable?: boolean | undefined;
5765
6094
  reviews?: {
5766
6095
  date: string;
5767
6096
  content: string;
@@ -5782,10 +6111,10 @@ export declare const HOST_MODULES: {
5782
6111
  rating: number;
5783
6112
  author: string;
5784
6113
  title?: string | undefined;
6114
+ mark?: string | undefined;
5785
6115
  verified?: boolean | undefined;
5786
6116
  writtenFor?: string | undefined;
5787
6117
  highlight?: string | undefined;
5788
- mark?: string | undefined;
5789
6118
  }[] | undefined;
5790
6119
  }>;
5791
6120
  ProductReviewPayloadSchema: zod.ZodObject<Omit<{
@@ -5843,21 +6172,22 @@ export declare const HOST_MODULES: {
5843
6172
  rating: number;
5844
6173
  author: string;
5845
6174
  title?: string | undefined;
6175
+ mark?: string | undefined;
5846
6176
  verified?: boolean | undefined;
5847
6177
  writtenFor?: string | undefined;
5848
6178
  highlight?: string | undefined;
5849
- mark?: string | undefined;
5850
6179
  }, {
5851
6180
  date: string;
5852
6181
  content: string;
5853
6182
  rating: number;
5854
6183
  author: string;
5855
6184
  title?: string | undefined;
6185
+ mark?: string | undefined;
5856
6186
  verified?: boolean | undefined;
5857
6187
  writtenFor?: string | undefined;
5858
6188
  highlight?: string | undefined;
5859
- mark?: string | undefined;
5860
6189
  }>, "many">>;
6190
+ unavailable: zod.ZodOptional<zod.ZodBoolean>;
5861
6191
  }, "id">, "strip", zod.ZodTypeAny, {
5862
6192
  reviews: {
5863
6193
  date: string;
@@ -5879,12 +6209,14 @@ export declare const HOST_MODULES: {
5879
6209
  rating: number;
5880
6210
  author: string;
5881
6211
  title?: string | undefined;
6212
+ mark?: string | undefined;
5882
6213
  verified?: boolean | undefined;
5883
6214
  writtenFor?: string | undefined;
5884
6215
  highlight?: string | undefined;
5885
- mark?: string | undefined;
5886
6216
  }[];
6217
+ unavailable?: boolean | undefined;
5887
6218
  }, {
6219
+ unavailable?: boolean | undefined;
5888
6220
  reviews?: {
5889
6221
  date: string;
5890
6222
  content: string;
@@ -5905,10 +6237,10 @@ export declare const HOST_MODULES: {
5905
6237
  rating: number;
5906
6238
  author: string;
5907
6239
  title?: string | undefined;
6240
+ mark?: string | undefined;
5908
6241
  verified?: boolean | undefined;
5909
6242
  writtenFor?: string | undefined;
5910
6243
  highlight?: string | undefined;
5911
- mark?: string | undefined;
5912
6244
  }[] | undefined;
5913
6245
  }>;
5914
6246
  };
@@ -5,7 +5,9 @@
5
5
  * Transport: upload-on-attach → reference. The bytes are uploaded to storage
6
6
  * the moment the visitor attaches the file; only this lightweight `AttachmentRef`
7
7
  * rides the `prompt` signal, so send-time / TTFT stays clean. The agent resolves
8
- * the bytes at turn start and inlines them as image/file parts.
8
+ * the bytes at turn start BY `id`, from storage under its own session, and
9
+ * inlines them as image/file parts. It never fetches `url`: that came from the
10
+ * visitor, and fetching it made the server an SSRF proxy.
9
11
  *
10
12
  * One home for the allow-list: both the composer (accept attribute + client
11
13
  * pre-check), the upload endpoint (server validation), and any agent-side guard
@@ -26,12 +28,13 @@ export declare function isImageAttachment(mime: string): boolean;
26
28
  * A stored attachment, returned by `POST /sessions/:id/attachments` and carried
27
29
  * on the `prompt` signal payload (`attachments: AttachmentRef[]`).
28
30
  *
29
- * `url` is a fetchable location for the bytes (Supabase Storage). The agent
30
- * fetches it at turn start; the composer never renders `url` for image previews
31
+ * `id` is what the server resolves the bytes by. `url` is a signed Supabase
32
+ * Storage link handed back to the uploader and kept on the wire for engines
33
+ * that already parse it; no server reads it, and the composer never renders it
31
34
  * (it shows the local object URL it already holds).
32
35
  */
33
36
  export interface AttachmentRef {
34
- /** Server-minted id, unique within the session. */
37
+ /** Server-minted UUID, unique within the session — the storage key under it. */
35
38
  id: string;
36
39
  /** Validated MIME type — always one of `ALLOWED_ATTACHMENT_TYPES`. */
37
40
  mimeType: string;
@@ -39,7 +42,7 @@ export interface AttachmentRef {
39
42
  name: string;
40
43
  /** Byte length — within `MAX_ATTACHMENT_BYTES`. */
41
44
  size: number;
42
- /** Fetchable bytes location (Supabase Storage public/signed URL). */
45
+ /** Signed Supabase Storage URL for the uploader. Never fetched server-side. */
43
46
  url: string;
44
47
  }
45
48
  export declare const AttachmentRefSchema: z.ZodObject<{