@40rty/ams-sdk 0.4.3 → 0.5.0

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>;
@@ -1500,6 +1500,106 @@ export declare const HOST_MODULES: {
1500
1500
  }, {
1501
1501
  themeClass: string;
1502
1502
  }>>;
1503
+ mark: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
1504
+ square: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1505
+ type: zod.ZodEnum<["svg", "png"]>;
1506
+ data: zod.ZodString;
1507
+ }, "strict", zod.ZodTypeAny, {
1508
+ type: "svg" | "png";
1509
+ data: string;
1510
+ }, {
1511
+ type: "svg" | "png";
1512
+ data: string;
1513
+ }>, zod.ZodObject<{
1514
+ type: zod.ZodEnum<["svg", "png"]>;
1515
+ sha256: zod.ZodString;
1516
+ }, "strict", zod.ZodTypeAny, {
1517
+ type: "svg" | "png";
1518
+ sha256: string;
1519
+ }, {
1520
+ type: "svg" | "png";
1521
+ sha256: string;
1522
+ }>]>>;
1523
+ wordmark: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1524
+ type: zod.ZodEnum<["svg", "png"]>;
1525
+ data: zod.ZodString;
1526
+ }, "strict", zod.ZodTypeAny, {
1527
+ type: "svg" | "png";
1528
+ data: string;
1529
+ }, {
1530
+ type: "svg" | "png";
1531
+ data: string;
1532
+ }>, zod.ZodObject<{
1533
+ type: zod.ZodEnum<["svg", "png"]>;
1534
+ sha256: zod.ZodString;
1535
+ }, "strict", zod.ZodTypeAny, {
1536
+ type: "svg" | "png";
1537
+ sha256: string;
1538
+ }, {
1539
+ type: "svg" | "png";
1540
+ sha256: string;
1541
+ }>]>>;
1542
+ }, "strict", zod.ZodTypeAny, {
1543
+ square?: {
1544
+ type: "svg" | "png";
1545
+ data: string;
1546
+ } | {
1547
+ type: "svg" | "png";
1548
+ sha256: string;
1549
+ } | undefined;
1550
+ wordmark?: {
1551
+ type: "svg" | "png";
1552
+ data: string;
1553
+ } | {
1554
+ type: "svg" | "png";
1555
+ sha256: string;
1556
+ } | undefined;
1557
+ }, {
1558
+ square?: {
1559
+ type: "svg" | "png";
1560
+ data: string;
1561
+ } | {
1562
+ type: "svg" | "png";
1563
+ sha256: string;
1564
+ } | undefined;
1565
+ wordmark?: {
1566
+ type: "svg" | "png";
1567
+ data: string;
1568
+ } | {
1569
+ type: "svg" | "png";
1570
+ sha256: string;
1571
+ } | undefined;
1572
+ }>, {
1573
+ square?: {
1574
+ type: "svg" | "png";
1575
+ data: string;
1576
+ } | {
1577
+ type: "svg" | "png";
1578
+ sha256: string;
1579
+ } | undefined;
1580
+ wordmark?: {
1581
+ type: "svg" | "png";
1582
+ data: string;
1583
+ } | {
1584
+ type: "svg" | "png";
1585
+ sha256: string;
1586
+ } | undefined;
1587
+ }, {
1588
+ square?: {
1589
+ type: "svg" | "png";
1590
+ data: string;
1591
+ } | {
1592
+ type: "svg" | "png";
1593
+ sha256: string;
1594
+ } | undefined;
1595
+ wordmark?: {
1596
+ type: "svg" | "png";
1597
+ data: string;
1598
+ } | {
1599
+ type: "svg" | "png";
1600
+ sha256: string;
1601
+ } | undefined;
1602
+ }>>;
1503
1603
  seedLayout: zod.ZodOptional<zod.ZodObject<{
1504
1604
  root: zod.ZodString;
1505
1605
  aliases: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -1615,6 +1715,22 @@ export declare const HOST_MODULES: {
1615
1715
  theme?: {
1616
1716
  themeClass: string;
1617
1717
  } | undefined;
1718
+ mark?: {
1719
+ square?: {
1720
+ type: "svg" | "png";
1721
+ data: string;
1722
+ } | {
1723
+ type: "svg" | "png";
1724
+ sha256: string;
1725
+ } | undefined;
1726
+ wordmark?: {
1727
+ type: "svg" | "png";
1728
+ data: string;
1729
+ } | {
1730
+ type: "svg" | "png";
1731
+ sha256: string;
1732
+ } | undefined;
1733
+ } | undefined;
1618
1734
  seedLayout?: {
1619
1735
  root: string;
1620
1736
  elements: Record<string, {
@@ -1679,6 +1795,22 @@ export declare const HOST_MODULES: {
1679
1795
  theme?: {
1680
1796
  themeClass: string;
1681
1797
  } | undefined;
1798
+ mark?: {
1799
+ square?: {
1800
+ type: "svg" | "png";
1801
+ data: string;
1802
+ } | {
1803
+ type: "svg" | "png";
1804
+ sha256: string;
1805
+ } | undefined;
1806
+ wordmark?: {
1807
+ type: "svg" | "png";
1808
+ data: string;
1809
+ } | {
1810
+ type: "svg" | "png";
1811
+ sha256: string;
1812
+ } | undefined;
1813
+ } | undefined;
1682
1814
  seedLayout?: {
1683
1815
  root: string;
1684
1816
  elements: Record<string, {
@@ -1706,6 +1838,159 @@ export declare const HOST_MODULES: {
1706
1838
  isDraftSource: typeof spacestation.isDraftSource;
1707
1839
  releasePreviewSourceId: typeof spacestation.releasePreviewSourceId;
1708
1840
  parseReleasePreview: typeof spacestation.parseReleasePreview;
1841
+ BRAND_MARK_TYPES: readonly ["svg", "png"];
1842
+ BRAND_MARK_SLOTS: readonly ["square", "wordmark"];
1843
+ BRAND_MARK_MAX_BYTES: number;
1844
+ BrandMarkSchema: zod.ZodEffects<zod.ZodObject<{
1845
+ square: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1846
+ type: zod.ZodEnum<["svg", "png"]>;
1847
+ data: zod.ZodString;
1848
+ }, "strict", zod.ZodTypeAny, {
1849
+ type: "svg" | "png";
1850
+ data: string;
1851
+ }, {
1852
+ type: "svg" | "png";
1853
+ data: string;
1854
+ }>, zod.ZodObject<{
1855
+ type: zod.ZodEnum<["svg", "png"]>;
1856
+ sha256: zod.ZodString;
1857
+ }, "strict", zod.ZodTypeAny, {
1858
+ type: "svg" | "png";
1859
+ sha256: string;
1860
+ }, {
1861
+ type: "svg" | "png";
1862
+ sha256: string;
1863
+ }>]>>;
1864
+ wordmark: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1865
+ type: zod.ZodEnum<["svg", "png"]>;
1866
+ data: zod.ZodString;
1867
+ }, "strict", zod.ZodTypeAny, {
1868
+ type: "svg" | "png";
1869
+ data: string;
1870
+ }, {
1871
+ type: "svg" | "png";
1872
+ data: string;
1873
+ }>, zod.ZodObject<{
1874
+ type: zod.ZodEnum<["svg", "png"]>;
1875
+ sha256: zod.ZodString;
1876
+ }, "strict", zod.ZodTypeAny, {
1877
+ type: "svg" | "png";
1878
+ sha256: string;
1879
+ }, {
1880
+ type: "svg" | "png";
1881
+ sha256: string;
1882
+ }>]>>;
1883
+ }, "strict", zod.ZodTypeAny, {
1884
+ square?: {
1885
+ type: "svg" | "png";
1886
+ data: string;
1887
+ } | {
1888
+ type: "svg" | "png";
1889
+ sha256: string;
1890
+ } | undefined;
1891
+ wordmark?: {
1892
+ type: "svg" | "png";
1893
+ data: string;
1894
+ } | {
1895
+ type: "svg" | "png";
1896
+ sha256: string;
1897
+ } | undefined;
1898
+ }, {
1899
+ square?: {
1900
+ type: "svg" | "png";
1901
+ data: string;
1902
+ } | {
1903
+ type: "svg" | "png";
1904
+ sha256: string;
1905
+ } | undefined;
1906
+ wordmark?: {
1907
+ type: "svg" | "png";
1908
+ data: string;
1909
+ } | {
1910
+ type: "svg" | "png";
1911
+ sha256: string;
1912
+ } | undefined;
1913
+ }>, {
1914
+ square?: {
1915
+ type: "svg" | "png";
1916
+ data: string;
1917
+ } | {
1918
+ type: "svg" | "png";
1919
+ sha256: string;
1920
+ } | undefined;
1921
+ wordmark?: {
1922
+ type: "svg" | "png";
1923
+ data: string;
1924
+ } | {
1925
+ type: "svg" | "png";
1926
+ sha256: string;
1927
+ } | undefined;
1928
+ }, {
1929
+ square?: {
1930
+ type: "svg" | "png";
1931
+ data: string;
1932
+ } | {
1933
+ type: "svg" | "png";
1934
+ sha256: string;
1935
+ } | undefined;
1936
+ wordmark?: {
1937
+ type: "svg" | "png";
1938
+ data: string;
1939
+ } | {
1940
+ type: "svg" | "png";
1941
+ sha256: string;
1942
+ } | undefined;
1943
+ }>;
1944
+ BrandMarkImageSchema: zod.ZodObject<{
1945
+ src: zod.ZodString;
1946
+ type: zod.ZodEnum<["svg", "png"]>;
1947
+ }, "strict", zod.ZodTypeAny, {
1948
+ type: "svg" | "png";
1949
+ src: string;
1950
+ }, {
1951
+ type: "svg" | "png";
1952
+ src: string;
1953
+ }>;
1954
+ SpaceBrandMarkSchema: zod.ZodObject<{
1955
+ square: zod.ZodNullable<zod.ZodObject<{
1956
+ src: zod.ZodString;
1957
+ type: zod.ZodEnum<["svg", "png"]>;
1958
+ }, "strict", zod.ZodTypeAny, {
1959
+ type: "svg" | "png";
1960
+ src: string;
1961
+ }, {
1962
+ type: "svg" | "png";
1963
+ src: string;
1964
+ }>>;
1965
+ wordmark: zod.ZodNullable<zod.ZodObject<{
1966
+ src: zod.ZodString;
1967
+ type: zod.ZodEnum<["svg", "png"]>;
1968
+ }, "strict", zod.ZodTypeAny, {
1969
+ type: "svg" | "png";
1970
+ src: string;
1971
+ }, {
1972
+ type: "svg" | "png";
1973
+ src: string;
1974
+ }>>;
1975
+ }, "strict", zod.ZodTypeAny, {
1976
+ square: {
1977
+ type: "svg" | "png";
1978
+ src: string;
1979
+ } | null;
1980
+ wordmark: {
1981
+ type: "svg" | "png";
1982
+ src: string;
1983
+ } | null;
1984
+ }, {
1985
+ square: {
1986
+ type: "svg" | "png";
1987
+ src: string;
1988
+ } | null;
1989
+ wordmark: {
1990
+ type: "svg" | "png";
1991
+ src: string;
1992
+ } | null;
1993
+ }>;
1709
1994
  LateBoundValueSchema: zod.ZodObject<{
1710
1995
  fact: zod.ZodLiteral<true>;
1711
1996
  }, "strip", zod.ZodTypeAny, {
@@ -5638,20 +5923,20 @@ export declare const HOST_MODULES: {
5638
5923
  rating: number;
5639
5924
  author: string;
5640
5925
  title?: string | undefined;
5926
+ mark?: string | undefined;
5641
5927
  verified?: boolean | undefined;
5642
5928
  writtenFor?: string | undefined;
5643
5929
  highlight?: string | undefined;
5644
- mark?: string | undefined;
5645
5930
  }, {
5646
5931
  date: string;
5647
5932
  content: string;
5648
5933
  rating: number;
5649
5934
  author: string;
5650
5935
  title?: string | undefined;
5936
+ mark?: string | undefined;
5651
5937
  verified?: boolean | undefined;
5652
5938
  writtenFor?: string | undefined;
5653
5939
  highlight?: string | undefined;
5654
- mark?: string | undefined;
5655
5940
  }>;
5656
5941
  ReviewAggregateSchema: zod.ZodObject<{
5657
5942
  value: zod.ZodNumber;
@@ -5718,21 +6003,22 @@ export declare const HOST_MODULES: {
5718
6003
  rating: number;
5719
6004
  author: string;
5720
6005
  title?: string | undefined;
6006
+ mark?: string | undefined;
5721
6007
  verified?: boolean | undefined;
5722
6008
  writtenFor?: string | undefined;
5723
6009
  highlight?: string | undefined;
5724
- mark?: string | undefined;
5725
6010
  }, {
5726
6011
  date: string;
5727
6012
  content: string;
5728
6013
  rating: number;
5729
6014
  author: string;
5730
6015
  title?: string | undefined;
6016
+ mark?: string | undefined;
5731
6017
  verified?: boolean | undefined;
5732
6018
  writtenFor?: string | undefined;
5733
6019
  highlight?: string | undefined;
5734
- mark?: string | undefined;
5735
6020
  }>, "many">>;
6021
+ unavailable: zod.ZodOptional<zod.ZodBoolean>;
5736
6022
  }, "strip", zod.ZodTypeAny, {
5737
6023
  id: string;
5738
6024
  reviews: {
@@ -5755,13 +6041,15 @@ export declare const HOST_MODULES: {
5755
6041
  rating: number;
5756
6042
  author: string;
5757
6043
  title?: string | undefined;
6044
+ mark?: string | undefined;
5758
6045
  verified?: boolean | undefined;
5759
6046
  writtenFor?: string | undefined;
5760
6047
  highlight?: string | undefined;
5761
- mark?: string | undefined;
5762
6048
  }[];
6049
+ unavailable?: boolean | undefined;
5763
6050
  }, {
5764
6051
  id: string;
6052
+ unavailable?: boolean | undefined;
5765
6053
  reviews?: {
5766
6054
  date: string;
5767
6055
  content: string;
@@ -5782,10 +6070,10 @@ export declare const HOST_MODULES: {
5782
6070
  rating: number;
5783
6071
  author: string;
5784
6072
  title?: string | undefined;
6073
+ mark?: string | undefined;
5785
6074
  verified?: boolean | undefined;
5786
6075
  writtenFor?: string | undefined;
5787
6076
  highlight?: string | undefined;
5788
- mark?: string | undefined;
5789
6077
  }[] | undefined;
5790
6078
  }>;
5791
6079
  ProductReviewPayloadSchema: zod.ZodObject<Omit<{
@@ -5843,21 +6131,22 @@ export declare const HOST_MODULES: {
5843
6131
  rating: number;
5844
6132
  author: string;
5845
6133
  title?: string | undefined;
6134
+ mark?: string | undefined;
5846
6135
  verified?: boolean | undefined;
5847
6136
  writtenFor?: string | undefined;
5848
6137
  highlight?: string | undefined;
5849
- mark?: string | undefined;
5850
6138
  }, {
5851
6139
  date: string;
5852
6140
  content: string;
5853
6141
  rating: number;
5854
6142
  author: string;
5855
6143
  title?: string | undefined;
6144
+ mark?: string | undefined;
5856
6145
  verified?: boolean | undefined;
5857
6146
  writtenFor?: string | undefined;
5858
6147
  highlight?: string | undefined;
5859
- mark?: string | undefined;
5860
6148
  }>, "many">>;
6149
+ unavailable: zod.ZodOptional<zod.ZodBoolean>;
5861
6150
  }, "id">, "strip", zod.ZodTypeAny, {
5862
6151
  reviews: {
5863
6152
  date: string;
@@ -5879,12 +6168,14 @@ export declare const HOST_MODULES: {
5879
6168
  rating: number;
5880
6169
  author: string;
5881
6170
  title?: string | undefined;
6171
+ mark?: string | undefined;
5882
6172
  verified?: boolean | undefined;
5883
6173
  writtenFor?: string | undefined;
5884
6174
  highlight?: string | undefined;
5885
- mark?: string | undefined;
5886
6175
  }[];
6176
+ unavailable?: boolean | undefined;
5887
6177
  }, {
6178
+ unavailable?: boolean | undefined;
5888
6179
  reviews?: {
5889
6180
  date: string;
5890
6181
  content: string;
@@ -5905,10 +6196,10 @@ export declare const HOST_MODULES: {
5905
6196
  rating: number;
5906
6197
  author: string;
5907
6198
  title?: string | undefined;
6199
+ mark?: string | undefined;
5908
6200
  verified?: boolean | undefined;
5909
6201
  writtenFor?: string | undefined;
5910
6202
  highlight?: string | undefined;
5911
- mark?: string | undefined;
5912
6203
  }[] | undefined;
5913
6204
  }>;
5914
6205
  };
@@ -1,4 +1,4 @@
1
- import type { TurnAsk } from '../../../../spacestation/src/index';
1
+ import type { SuggestionAction, TurnAsk } from '../../../../spacestation/src/index';
2
2
  import { type ConversationPresence } from './use-conversation-presence';
3
3
  /** Where the live turn is: not running, still thinking (the page is untouched), or composing the page. */
4
4
  export type ConversationPhase = 'idle' | 'thinking' | 'composing';
@@ -52,6 +52,14 @@ export interface ConversationPage {
52
52
  presence: ConversationPresence;
53
53
  /** Send one of `turn.ask`'s answers as the visitor's reply. */
54
54
  reply: (answer: string) => void;
55
+ /**
56
+ * The agent's follow-ups for the newest settled turn — the next moves a page
57
+ * can offer IN the page, under its answer. Empty while a turn runs, on an
58
+ * older turn, and on the welcome page. Chips without a label are dropped.
59
+ */
60
+ followUps: SuggestionAction[];
61
+ /** Take a follow-up — the same dispatch a composer chip makes. */
62
+ followUp: (action: SuggestionAction) => void;
55
63
  goHome: () => void;
56
64
  startOver: () => void;
57
65
  }