@proveanything/smartlinks 3.0.0-alpha.1 → 3.0.0-alpha.3

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 (272) hide show
  1. package/README.md +741 -741
  2. package/dist/README.md +573 -573
  3. package/dist/adminCardsView.js +55 -55
  4. package/dist/api/analytics.d.ts +5 -4
  5. package/dist/api/analytics.js +5 -4
  6. package/dist/api/appConfiguration.d.ts +23 -18
  7. package/dist/api/appConfiguration.js +24 -18
  8. package/dist/api/appObjects.d.ts +54 -10
  9. package/dist/api/appObjects.js +75 -40
  10. package/dist/api/asset.d.ts +28 -22
  11. package/dist/api/asset.js +45 -56
  12. package/dist/api/attestation.d.ts +11 -3
  13. package/dist/api/attestation.js +12 -3
  14. package/dist/api/attestations.d.ts +12 -8
  15. package/dist/api/attestations.js +18 -21
  16. package/dist/api/authKit.d.ts +15 -10
  17. package/dist/api/authKit.js +17 -11
  18. package/dist/api/batch.d.ts +36 -25
  19. package/dist/api/batch.js +46 -39
  20. package/dist/api/bookings.d.ts +67 -11
  21. package/dist/api/bookings.js +82 -15
  22. package/dist/api/broadcasts.js +3 -17
  23. package/dist/api/claimSet.d.ts +26 -12
  24. package/dist/api/claimSet.js +32 -24
  25. package/dist/api/collection.d.ts +15 -10
  26. package/dist/api/collection.js +17 -11
  27. package/dist/api/comms.d.ts +12 -6
  28. package/dist/api/comms.js +12 -6
  29. package/dist/api/conditions.d.ts +7 -6
  30. package/dist/api/conditions.js +8 -6
  31. package/dist/api/contact.d.ts +6 -2
  32. package/dist/api/contact.js +25 -60
  33. package/dist/api/containers.d.ts +14 -10
  34. package/dist/api/containers.js +19 -14
  35. package/dist/api/crate.js +7 -9
  36. package/dist/api/dpp.d.ts +20 -13
  37. package/dist/api/dpp.js +23 -15
  38. package/dist/api/facets.d.ts +38 -13
  39. package/dist/api/facets.js +40 -15
  40. package/dist/api/files.d.ts +5 -2
  41. package/dist/api/files.js +7 -4
  42. package/dist/api/form.d.ts +8 -5
  43. package/dist/api/form.js +9 -5
  44. package/dist/api/index.d.ts +1 -1
  45. package/dist/api/index.js +1 -1
  46. package/dist/api/integrations.d.ts +29 -17
  47. package/dist/api/integrations.js +32 -25
  48. package/dist/api/interactions.d.ts +11 -6
  49. package/dist/api/interactions.js +14 -23
  50. package/dist/api/jobs.d.ts +16 -6
  51. package/dist/api/jobs.js +30 -20
  52. package/dist/api/journeys.js +2 -14
  53. package/dist/api/journeysAnalytics.d.ts +8 -5
  54. package/dist/api/journeysAnalytics.js +8 -5
  55. package/dist/api/knowledge.d.ts +20 -14
  56. package/dist/api/knowledge.js +22 -15
  57. package/dist/api/location.d.ts +6 -3
  58. package/dist/api/location.js +8 -22
  59. package/dist/api/lots.d.ts +9 -5
  60. package/dist/api/lots.js +22 -26
  61. package/dist/api/loyalty.d.ts +25 -16
  62. package/dist/api/loyalty.js +33 -32
  63. package/dist/api/nfc.d.ts +3 -1
  64. package/dist/api/nfc.js +3 -1
  65. package/dist/api/order.d.ts +45 -39
  66. package/dist/api/order.js +48 -65
  67. package/dist/api/partner.d.ts +17 -14
  68. package/dist/api/partner.js +21 -22
  69. package/dist/api/payments.d.ts +60 -0
  70. package/dist/api/payments.js +94 -0
  71. package/dist/api/products.d.ts +35 -12
  72. package/dist/api/products.js +36 -13
  73. package/dist/api/proof.d.ts +41 -19
  74. package/dist/api/proof.js +44 -23
  75. package/dist/api/realtime.d.ts +3 -0
  76. package/dist/api/realtime.js +10 -2
  77. package/dist/api/segments.js +3 -15
  78. package/dist/api/serviceAccounts.d.ts +8 -5
  79. package/dist/api/serviceAccounts.js +9 -6
  80. package/dist/api/shop.d.ts +7 -5
  81. package/dist/api/shop.js +13 -19
  82. package/dist/api/subscriptions.d.ts +12 -10
  83. package/dist/api/subscriptions.js +17 -25
  84. package/dist/api/tags.d.ts +23 -20
  85. package/dist/api/tags.js +40 -52
  86. package/dist/api/template.d.ts +16 -11
  87. package/dist/api/template.js +19 -13
  88. package/dist/api/translations.js +2 -12
  89. package/dist/api/userGroups.d.ts +26 -16
  90. package/dist/api/userGroups.js +43 -30
  91. package/dist/api/variant.d.ts +10 -7
  92. package/dist/api/variant.js +11 -7
  93. package/dist/api/wallet.d.ts +14 -11
  94. package/dist/api/wallet.js +15 -12
  95. package/dist/baseline.css +194 -194
  96. package/dist/dataChanged.d.ts +74 -0
  97. package/dist/dataChanged.js +162 -0
  98. package/dist/docs/API_SUMMARY.md +1443 -1409
  99. package/dist/docs/admin-cards.md +189 -189
  100. package/dist/docs/agent-tools.md +156 -156
  101. package/dist/docs/ai-tools-and-skills.md +180 -180
  102. package/dist/docs/ai.md +1721 -1721
  103. package/dist/docs/analytics.md +1 -1
  104. package/dist/docs/api-versions.md +85 -85
  105. package/dist/docs/app-data-storage.md +277 -277
  106. package/dist/docs/app-docs.md +73 -73
  107. package/dist/docs/app-manifest.md +852 -852
  108. package/dist/docs/app-objects.md +4 -4
  109. package/dist/docs/app-records-pattern.md +388 -388
  110. package/dist/docs/appConfig.md +550 -550
  111. package/dist/docs/assistant-apps.md +172 -172
  112. package/dist/docs/assistant-context.md +119 -119
  113. package/dist/docs/attestations.md +8 -8
  114. package/dist/docs/bookings.md +105 -8
  115. package/dist/docs/caching.md +32 -3
  116. package/dist/docs/comms.md +689 -689
  117. package/dist/docs/connectors.md +340 -340
  118. package/dist/docs/contact-search.md +2 -3
  119. package/dist/docs/css-baseline.md +133 -133
  120. package/dist/docs/customer-guide.md +70 -70
  121. package/dist/docs/data-changed.md +91 -0
  122. package/dist/docs/deploying-apps.md +340 -340
  123. package/dist/docs/dpp.md +115 -115
  124. package/dist/docs/entitlements.md +90 -90
  125. package/dist/docs/files.md +69 -69
  126. package/dist/docs/host-dependency-contract.md +252 -252
  127. package/dist/docs/iframe-responder.md +11 -0
  128. package/dist/docs/integrations.md +322 -322
  129. package/dist/docs/interactions.md +544 -544
  130. package/dist/docs/item-context.md +181 -181
  131. package/dist/docs/knowledge.md +105 -105
  132. package/dist/docs/lists.md +157 -114
  133. package/dist/docs/lots.md +112 -112
  134. package/dist/docs/loyalty.md +348 -348
  135. package/dist/docs/members.md +183 -183
  136. package/dist/docs/memberships.md +150 -150
  137. package/dist/docs/mobile-admin-container.md +693 -693
  138. package/dist/docs/operations.md +281 -281
  139. package/dist/docs/overview.md +487 -485
  140. package/dist/docs/payments.md +94 -0
  141. package/dist/docs/proof-comms-triggers.md +142 -142
  142. package/dist/docs/proof-ownership-transfer.md +155 -155
  143. package/dist/docs/proof-product-data-scoping.md +462 -462
  144. package/dist/docs/proof-share-grants.md +305 -305
  145. package/dist/docs/realtime.md +149 -139
  146. package/dist/docs/records-admin-pattern.md +304 -304
  147. package/dist/docs/service-accounts.md +64 -64
  148. package/dist/docs/standard-query.md +196 -187
  149. package/dist/docs/tag-codes.md +97 -97
  150. package/dist/docs/tag-ranges.md +106 -106
  151. package/dist/docs/theme-tokens.md +252 -252
  152. package/dist/docs/upgrading-to-3.md +550 -430
  153. package/dist/docs/wallet-passes.md +107 -107
  154. package/dist/docs/websites.md +123 -123
  155. package/dist/http.d.ts +6 -3
  156. package/dist/http.js +48 -19
  157. package/dist/iframeResponder.d.ts +7 -0
  158. package/dist/iframeResponder.js +10 -0
  159. package/dist/index.d.ts +2 -0
  160. package/dist/index.js +2 -0
  161. package/dist/list.d.ts +12 -0
  162. package/dist/list.js +59 -0
  163. package/dist/openapi.yaml +722 -660
  164. package/dist/testing/bookingsMemory.d.ts +29 -1
  165. package/dist/testing/bookingsMemory.js +89 -1
  166. package/dist/testing/index.js +4 -1
  167. package/dist/theme-boot.js +82 -82
  168. package/dist/theme.css +75 -75
  169. package/dist/types/analytics.d.ts +7 -3
  170. package/dist/types/appManifest.d.ts +26 -4
  171. package/dist/types/appObjects.d.ts +27 -12
  172. package/dist/types/appOptions.d.ts +2 -2
  173. package/dist/types/asset.d.ts +5 -6
  174. package/dist/types/attestations.d.ts +7 -9
  175. package/dist/types/batch.d.ts +5 -5
  176. package/dist/types/bookings.d.ts +109 -6
  177. package/dist/types/comms.d.ts +9 -5
  178. package/dist/types/contact.d.ts +7 -4
  179. package/dist/types/containers.d.ts +2 -1
  180. package/dist/types/facets.d.ts +14 -2
  181. package/dist/types/files.d.ts +3 -2
  182. package/dist/types/index.d.ts +1 -0
  183. package/dist/types/index.js +1 -0
  184. package/dist/types/integrations.d.ts +2 -1
  185. package/dist/types/interaction.d.ts +15 -7
  186. package/dist/types/jobs.d.ts +1 -1
  187. package/dist/types/journeysAnalytics.d.ts +3 -2
  188. package/dist/types/knowledge.d.ts +6 -3
  189. package/dist/types/knowledge.js +0 -1
  190. package/dist/types/list.d.ts +30 -2
  191. package/dist/types/location.d.ts +7 -2
  192. package/dist/types/location.js +0 -1
  193. package/dist/types/lots.d.ts +5 -2
  194. package/dist/types/lots.js +0 -6
  195. package/dist/types/order.d.ts +22 -20
  196. package/dist/types/payments.d.ts +101 -0
  197. package/dist/types/payments.js +5 -0
  198. package/dist/types/product.d.ts +28 -11
  199. package/dist/types/proof.d.ts +7 -8
  200. package/dist/types/realtime.d.ts +5 -1
  201. package/dist/types/tags.d.ts +5 -3
  202. package/dist/types/userGroups.d.ts +3 -3
  203. package/dist/types/userGroups.js +0 -4
  204. package/dist/version.d.ts +1 -1
  205. package/dist/version.js +1 -1
  206. package/docs/API_SUMMARY.md +1443 -1409
  207. package/docs/admin-cards.md +189 -189
  208. package/docs/agent-tools.md +156 -156
  209. package/docs/ai-tools-and-skills.md +180 -180
  210. package/docs/ai.md +1721 -1721
  211. package/docs/analytics.md +1 -1
  212. package/docs/api-versions.md +85 -85
  213. package/docs/app-data-storage.md +277 -277
  214. package/docs/app-docs.md +73 -73
  215. package/docs/app-manifest.md +852 -852
  216. package/docs/app-objects.md +4 -4
  217. package/docs/app-records-pattern.md +388 -388
  218. package/docs/appConfig.md +550 -550
  219. package/docs/assistant-apps.md +172 -172
  220. package/docs/assistant-context.md +119 -119
  221. package/docs/attestations.md +8 -8
  222. package/docs/bookings.md +105 -8
  223. package/docs/caching.md +32 -3
  224. package/docs/comms.md +689 -689
  225. package/docs/connectors.md +340 -340
  226. package/docs/contact-search.md +2 -3
  227. package/docs/css-baseline.md +133 -133
  228. package/docs/customer-guide.md +70 -70
  229. package/docs/data-changed.md +91 -0
  230. package/docs/deploying-apps.md +340 -340
  231. package/docs/dpp.md +115 -115
  232. package/docs/entitlements.md +90 -90
  233. package/docs/files.md +69 -69
  234. package/docs/host-dependency-contract.md +252 -252
  235. package/docs/iframe-responder.md +11 -0
  236. package/docs/integrations.md +322 -322
  237. package/docs/interactions.md +544 -544
  238. package/docs/item-context.md +181 -181
  239. package/docs/knowledge.md +105 -105
  240. package/docs/lists.md +157 -114
  241. package/docs/lots.md +112 -112
  242. package/docs/loyalty.md +348 -348
  243. package/docs/members.md +183 -183
  244. package/docs/memberships.md +150 -150
  245. package/docs/mobile-admin-container.md +693 -693
  246. package/docs/operations.md +281 -281
  247. package/docs/overview.md +487 -485
  248. package/docs/payments.md +94 -0
  249. package/docs/proof-comms-triggers.md +142 -142
  250. package/docs/proof-ownership-transfer.md +155 -155
  251. package/docs/proof-product-data-scoping.md +462 -462
  252. package/docs/proof-share-grants.md +305 -305
  253. package/docs/realtime.md +149 -139
  254. package/docs/service-accounts.md +64 -64
  255. package/docs/standard-query.md +196 -187
  256. package/docs/tag-codes.md +97 -97
  257. package/docs/tag-ranges.md +106 -106
  258. package/docs/theme-lookbook.v1.json +120 -120
  259. package/docs/theme-tokens.md +252 -252
  260. package/docs/upgrading-to-3.md +550 -430
  261. package/docs/wallet-passes.md +107 -107
  262. package/docs/websites.md +123 -123
  263. package/openapi.yaml +722 -660
  264. package/package.json +91 -91
  265. package/scripts/headless-check.mjs +87 -87
  266. package/scripts/lib/bare-imports.mjs +57 -57
  267. package/scripts/lib/keyed-app-data.mjs +21 -21
  268. package/scripts/lib/upgrade.mjs +708 -512
  269. package/scripts/publish.mjs +272 -272
  270. package/scripts/register-release.mjs +91 -91
  271. package/scripts/upgrade.mjs +79 -56
  272. package/upgrade/3.json +2731 -2213
@@ -28,61 +28,61 @@ export function adminCardAge(at, now = Date.now()) {
28
28
  return `${Math.round(s / 3600)} h ago`;
29
29
  return `${Math.round(s / 86400)} d ago`;
30
30
  }
31
- const CSS = `
32
- .slc-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--slc-gap,16px)}
33
- .slc-grid>*{grid-column:span 12}
34
- @media (min-width:768px){.slc-grid>.slc-size-small{grid-column:span 6}.slc-grid>.slc-size-medium,.slc-grid>.slc-size-wide{grid-column:span 12}}
35
- @media (min-width:1100px){.slc-grid>.slc-size-small{grid-column:span 3}.slc-grid>.slc-size-medium{grid-column:span 6}.slc-grid>.slc-size-wide{grid-column:span 8}}
36
- .slc-card{--_bg:var(--slc-bg,var(--sl-color-surface,#fff));--_fg:var(--slc-fg,var(--sl-color-fg,#0f172a));--_muted:var(--slc-muted,var(--sl-color-muted,#64748b));--_border:var(--slc-border,var(--sl-color-border,#e2e8f0));--_accent:var(--slc-accent,var(--sl-color-accent,#2563eb));--_ok:var(--slc-ok,var(--sl-color-success,#059669));--_warn:var(--slc-attention,#b45309);--_err:var(--slc-error,var(--sl-color-danger,#dc2626));
37
- box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-height:148px;padding:16px 18px;border:1px solid var(--_border);border-radius:var(--slc-radius,var(--sl-radius-lg,14px));background:var(--_bg);color:var(--_fg);font:inherit;position:relative}
38
- .slc-head{display:flex;align-items:center;gap:8px;min-width:0}
39
- .slc-title{margin:0;font-size:.95rem;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
40
- .slc-age{font-size:.75rem;color:var(--_muted);white-space:nowrap}
41
- .slc-refresh{all:unset;cursor:pointer;width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--_muted)}
42
- .slc-refresh:hover{background:color-mix(in srgb,var(--_muted) 12%,transparent);color:var(--_fg)}
43
- .slc-refresh:focus-visible{outline:2px solid var(--_accent)}
44
- .slc-spin{animation:slc-spin 1s linear infinite}
45
- @keyframes slc-spin{to{transform:rotate(360deg)}}
46
- .slc-valuerow{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
47
- .slc-value{font-size:2rem;line-height:1.1;font-weight:700;letter-spacing:-.02em;min-width:0;overflow-wrap:anywhere}
48
- .slc-value.slc-text{font-size:1.375rem;letter-spacing:-.01em}
49
- .slc-unit{font-size:1rem;font-weight:600;margin-left:2px;color:var(--_muted)}
50
- .slc-label{font-size:.875rem;color:var(--_muted)}
51
- .slc-trend{font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--_muted) 12%,transparent);color:var(--_muted)}
52
- .slc-trend.slc-good{background:color-mix(in srgb,var(--_ok) 14%,transparent);color:var(--_ok)}
53
- .slc-trend.slc-bad{background:color-mix(in srgb,var(--_err) 12%,transparent);color:var(--_err)}
54
- .slc-status{display:flex;align-items:flex-start;gap:8px;font-size:.875rem}
55
- .slc-dot{flex:none;width:8px;height:8px;border-radius:50%;margin-top:6px;background:var(--_muted)}
56
- .slc-tone-ok .slc-dot{background:var(--_ok)}.slc-tone-attention .slc-dot{background:var(--_warn)}.slc-tone-error .slc-dot{background:var(--_err)}
57
- .slc-progress{display:flex;flex-direction:column;gap:4px;font-size:.75rem;color:var(--_muted)}
58
- .slc-bar{height:6px;border-radius:999px;background:color-mix(in srgb,var(--_muted) 18%,transparent);overflow:hidden}
59
- .slc-bar>span{display:block;height:100%;background:var(--_accent);border-radius:inherit}
60
- .slc-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
61
- .slc-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--_border);font-size:.875rem;min-width:0}
62
- .slc-item:first-child{border-top:0}
63
- .slc-item-main{flex:1;min-width:0}
64
- .slc-item-img{width:36px;height:36px;flex:none;border-radius:8px;object-fit:cover;background:color-mix(in srgb,var(--_muted) 12%,transparent)}
65
- .slc-item-title,.slc-item-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
66
- .slc-item-sub,.slc-item-meta{color:var(--_muted);font-size:.75rem}
67
- .slc-link{all:unset;cursor:pointer}
68
- .slc-link:hover .slc-item-title{text-decoration:underline}
69
- .slc-link:focus-visible{outline:2px solid var(--_accent);border-radius:4px}
70
- .slc-empty{font-size:.875rem;color:var(--_muted)}
71
- .slc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
72
- .slc-btn{all:unset;cursor:pointer;font-size:.8125rem;font-weight:600;padding:6px 12px;border-radius:8px;border:1px solid var(--_border);color:var(--_fg)}
73
- .slc-btn:hover{background:color-mix(in srgb,var(--_muted) 10%,transparent)}
74
- .slc-btn.slc-primary{background:var(--_accent);border-color:var(--_accent);color:var(--slc-on-accent,var(--sl-color-on-accent,#fff))}
75
- .slc-btn:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}
76
- .slc-note{font-size:.75rem;color:var(--_muted)}
77
- .slc-note.slc-err{color:var(--_err)}
78
- .slc-skel{height:12px;border-radius:6px;background:color-mix(in srgb,var(--_muted) 16%,transparent);animation:slc-pulse 1.4s ease-in-out infinite}
79
- @keyframes slc-pulse{50%{opacity:.5}}
80
- .slc-todo{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:var(--slc-radius,var(--sl-radius-lg,14px));border:1px solid color-mix(in srgb,var(--slc-attention,#b45309) 35%,transparent);background:color-mix(in srgb,var(--slc-attention,#b45309) 7%,var(--slc-bg,var(--sl-color-surface,#fff)));color:var(--slc-fg,var(--sl-color-fg,#0f172a))}
81
- .slc-todo-title{margin:0 0 2px;font-size:.875rem;font-weight:600}
82
- .slc-todo-row{display:flex;align-items:center;gap:10px;font-size:.875rem}
83
- .slc-todo-row .slc-dot{margin-top:0;background:var(--slc-attention,#b45309)}
84
- .slc-todo-row.slc-tone-error .slc-dot{background:var(--slc-error,var(--sl-color-danger,#dc2626))}
85
- .slc-todo-text{flex:1;min-width:0}
31
+ const CSS = `
32
+ .slc-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--slc-gap,16px)}
33
+ .slc-grid>*{grid-column:span 12}
34
+ @media (min-width:768px){.slc-grid>.slc-size-small{grid-column:span 6}.slc-grid>.slc-size-medium,.slc-grid>.slc-size-wide{grid-column:span 12}}
35
+ @media (min-width:1100px){.slc-grid>.slc-size-small{grid-column:span 3}.slc-grid>.slc-size-medium{grid-column:span 6}.slc-grid>.slc-size-wide{grid-column:span 8}}
36
+ .slc-card{--_bg:var(--slc-bg,var(--sl-color-surface,#fff));--_fg:var(--slc-fg,var(--sl-color-fg,#0f172a));--_muted:var(--slc-muted,var(--sl-color-muted,#64748b));--_border:var(--slc-border,var(--sl-color-border,#e2e8f0));--_accent:var(--slc-accent,var(--sl-color-accent,#2563eb));--_ok:var(--slc-ok,var(--sl-color-success,#059669));--_warn:var(--slc-attention,#b45309);--_err:var(--slc-error,var(--sl-color-danger,#dc2626));
37
+ box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-height:148px;padding:16px 18px;border:1px solid var(--_border);border-radius:var(--slc-radius,var(--sl-radius-lg,14px));background:var(--_bg);color:var(--_fg);font:inherit;position:relative}
38
+ .slc-head{display:flex;align-items:center;gap:8px;min-width:0}
39
+ .slc-title{margin:0;font-size:.95rem;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
40
+ .slc-age{font-size:.75rem;color:var(--_muted);white-space:nowrap}
41
+ .slc-refresh{all:unset;cursor:pointer;width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--_muted)}
42
+ .slc-refresh:hover{background:color-mix(in srgb,var(--_muted) 12%,transparent);color:var(--_fg)}
43
+ .slc-refresh:focus-visible{outline:2px solid var(--_accent)}
44
+ .slc-spin{animation:slc-spin 1s linear infinite}
45
+ @keyframes slc-spin{to{transform:rotate(360deg)}}
46
+ .slc-valuerow{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
47
+ .slc-value{font-size:2rem;line-height:1.1;font-weight:700;letter-spacing:-.02em;min-width:0;overflow-wrap:anywhere}
48
+ .slc-value.slc-text{font-size:1.375rem;letter-spacing:-.01em}
49
+ .slc-unit{font-size:1rem;font-weight:600;margin-left:2px;color:var(--_muted)}
50
+ .slc-label{font-size:.875rem;color:var(--_muted)}
51
+ .slc-trend{font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--_muted) 12%,transparent);color:var(--_muted)}
52
+ .slc-trend.slc-good{background:color-mix(in srgb,var(--_ok) 14%,transparent);color:var(--_ok)}
53
+ .slc-trend.slc-bad{background:color-mix(in srgb,var(--_err) 12%,transparent);color:var(--_err)}
54
+ .slc-status{display:flex;align-items:flex-start;gap:8px;font-size:.875rem}
55
+ .slc-dot{flex:none;width:8px;height:8px;border-radius:50%;margin-top:6px;background:var(--_muted)}
56
+ .slc-tone-ok .slc-dot{background:var(--_ok)}.slc-tone-attention .slc-dot{background:var(--_warn)}.slc-tone-error .slc-dot{background:var(--_err)}
57
+ .slc-progress{display:flex;flex-direction:column;gap:4px;font-size:.75rem;color:var(--_muted)}
58
+ .slc-bar{height:6px;border-radius:999px;background:color-mix(in srgb,var(--_muted) 18%,transparent);overflow:hidden}
59
+ .slc-bar>span{display:block;height:100%;background:var(--_accent);border-radius:inherit}
60
+ .slc-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
61
+ .slc-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--_border);font-size:.875rem;min-width:0}
62
+ .slc-item:first-child{border-top:0}
63
+ .slc-item-main{flex:1;min-width:0}
64
+ .slc-item-img{width:36px;height:36px;flex:none;border-radius:8px;object-fit:cover;background:color-mix(in srgb,var(--_muted) 12%,transparent)}
65
+ .slc-item-title,.slc-item-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
66
+ .slc-item-sub,.slc-item-meta{color:var(--_muted);font-size:.75rem}
67
+ .slc-link{all:unset;cursor:pointer}
68
+ .slc-link:hover .slc-item-title{text-decoration:underline}
69
+ .slc-link:focus-visible{outline:2px solid var(--_accent);border-radius:4px}
70
+ .slc-empty{font-size:.875rem;color:var(--_muted)}
71
+ .slc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
72
+ .slc-btn{all:unset;cursor:pointer;font-size:.8125rem;font-weight:600;padding:6px 12px;border-radius:8px;border:1px solid var(--_border);color:var(--_fg)}
73
+ .slc-btn:hover{background:color-mix(in srgb,var(--_muted) 10%,transparent)}
74
+ .slc-btn.slc-primary{background:var(--_accent);border-color:var(--_accent);color:var(--slc-on-accent,var(--sl-color-on-accent,#fff))}
75
+ .slc-btn:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}
76
+ .slc-note{font-size:.75rem;color:var(--_muted)}
77
+ .slc-note.slc-err{color:var(--_err)}
78
+ .slc-skel{height:12px;border-radius:6px;background:color-mix(in srgb,var(--_muted) 16%,transparent);animation:slc-pulse 1.4s ease-in-out infinite}
79
+ @keyframes slc-pulse{50%{opacity:.5}}
80
+ .slc-todo{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:var(--slc-radius,var(--sl-radius-lg,14px));border:1px solid color-mix(in srgb,var(--slc-attention,#b45309) 35%,transparent);background:color-mix(in srgb,var(--slc-attention,#b45309) 7%,var(--slc-bg,var(--sl-color-surface,#fff)));color:var(--slc-fg,var(--sl-color-fg,#0f172a))}
81
+ .slc-todo-title{margin:0 0 2px;font-size:.875rem;font-weight:600}
82
+ .slc-todo-row{display:flex;align-items:center;gap:10px;font-size:.875rem}
83
+ .slc-todo-row .slc-dot{margin-top:0;background:var(--slc-attention,#b45309)}
84
+ .slc-todo-row.slc-tone-error .slc-dot{background:var(--slc-error,var(--sl-color-danger,#dc2626))}
85
+ .slc-todo-text{flex:1;min-width:0}
86
86
  `;
87
87
  let injected = false;
88
88
  /** Add the card styles to the page once (the views call it; hosts rendering on the server can too). */
@@ -40,15 +40,16 @@ export declare namespace analytics {
40
40
  function timeseries(collectionId: string, body: AnalyticsTimeseriesRequest): Promise<AnalyticsTimeseriesResponse>;
41
41
  function breakdown(collectionId: string, body: AnalyticsBreakdownRequest): Promise<AnalyticsBreakdownResponse>;
42
42
  /**
43
- * The raw events behind the reports, newest first unless `sort` says otherwise. Returns
43
+ * The raw events behind the reports, newest first unless `orderBy` says otherwise. Returns
44
44
  * `{ items, nextCursor, source, sort }`: the event rows are in `items`; `nextCursor` is `null` on
45
- * the last page. Page with `limit` and `cursor`.
45
+ * the last page. Page with `limit` and `cursor`; the time window is `from` / `to`.
46
46
  *
47
47
  * @example
48
48
  * ```typescript
49
- * let page = await analytics.admin.events(collectionId, { source: 'events', eventType: 'page_view', limit: 100 })
49
+ * const query = { source: 'events' as const, eventType: 'page_view', from: '2026-11-01T00:00:00Z', limit: 100 }
50
+ * let page = await analytics.admin.events(collectionId, { ...query, orderBy: [{ timestamp: 'asc' }] })
50
51
  * while (page.nextCursor) {
51
- * page = await analytics.admin.events(collectionId, { source: 'events', eventType: 'page_view', limit: 100, cursor: page.nextCursor })
52
+ * page = await analytics.admin.events(collectionId, { ...query, orderBy: [{ timestamp: 'asc' }], cursor: page.nextCursor })
52
53
  * }
53
54
  * ```
54
55
  */
@@ -503,15 +503,16 @@ export var analytics;
503
503
  }
504
504
  admin.breakdown = breakdown;
505
505
  /**
506
- * The raw events behind the reports, newest first unless `sort` says otherwise. Returns
506
+ * The raw events behind the reports, newest first unless `orderBy` says otherwise. Returns
507
507
  * `{ items, nextCursor, source, sort }`: the event rows are in `items`; `nextCursor` is `null` on
508
- * the last page. Page with `limit` and `cursor`.
508
+ * the last page. Page with `limit` and `cursor`; the time window is `from` / `to`.
509
509
  *
510
510
  * @example
511
511
  * ```typescript
512
- * let page = await analytics.admin.events(collectionId, { source: 'events', eventType: 'page_view', limit: 100 })
512
+ * const query = { source: 'events' as const, eventType: 'page_view', from: '2026-11-01T00:00:00Z', limit: 100 }
513
+ * let page = await analytics.admin.events(collectionId, { ...query, orderBy: [{ timestamp: 'asc' }] })
513
514
  * while (page.nextCursor) {
514
- * page = await analytics.admin.events(collectionId, { source: 'events', eventType: 'page_view', limit: 100, cursor: page.nextCursor })
515
+ * page = await analytics.admin.events(collectionId, { ...query, orderBy: [{ timestamp: 'asc' }], cursor: page.nextCursor })
515
516
  * }
516
517
  * ```
517
518
  */
@@ -1,6 +1,6 @@
1
1
  import { CollectionWidgetsResponse, GetCollectionWidgetsOptions } from "../types/appManifest.js";
2
2
  import type { AppsConfigResponse } from "../types/collection.js";
3
- import type { ListResult } from "../types/list.js";
3
+ import type { ListResult, ListOptions } from "../types/list.js";
4
4
  import type { GetWidgetInstanceOptions, WidgetInstance, WidgetInstanceSummary, SystemBlock } from "../types/appConfiguration.js";
5
5
  /**
6
6
  * Options for collection/product-scoped app configuration.
@@ -48,7 +48,7 @@ export type AppConfigOptions = {
48
48
  * });
49
49
  *
50
50
  * // Get all user's data for this app
51
- * const { items: beds } = await userAppData.list('garden-planner');
51
+ * const { items: beds } = await userAppData.list('garden-planner', { limit: 50 });
52
52
  *
53
53
  * // Get specific item
54
54
  * const bed = await userAppData.get('garden-planner', 'bed-1');
@@ -99,19 +99,21 @@ export declare namespace userAppData {
99
99
  */
100
100
  function deleteConfig(appId: string): Promise<void>;
101
101
  /**
102
- * List all user's data items for an app.
102
+ * List the user's data items for an app, a page at a time.
103
103
  *
104
104
  * @param appId - The app ID
105
- * @returns `{ items, nextCursor }`: the data items are in `items`, each with an `id` field. The list
106
- * is not paged, so `nextCursor` is always `null`.
105
+ * @param options - `limit` (50 unless you say) and `cursor`
106
+ * @returns `{ items, nextCursor }`: the data items are in `items`, each with an `id` field; pass
107
+ * `nextCursor` back as `cursor` for the next page (null on the last).
107
108
  *
108
109
  * @example
109
110
  * ```typescript
110
- * const { items: beds } = await userAppData.list('garden-planner');
111
- * // beds: [{ id: 'bed-1', name: 'Vegetables', ... }, { id: 'bed-2', ... }]
111
+ * let page = await userAppData.list('garden-planner', { limit: 50 });
112
+ * // page.items: [{ id: 'bed-1', name: 'Vegetables', ... }, { id: 'bed-2', ... }]
113
+ * while (page.nextCursor) page = await userAppData.list('garden-planner', { limit: 50, cursor: page.nextCursor });
112
114
  * ```
113
115
  */
114
- function list(appId: string): Promise<ListResult<any>>;
116
+ function list(appId: string, options?: ListOptions): Promise<ListResult<any>>;
115
117
  /**
116
118
  * Get a specific user data item by ID.
117
119
  *
@@ -286,20 +288,22 @@ export declare namespace appConfiguration {
286
288
  * visibility, ownership, or relationships, prefer `app.records`, `app.cases`,
287
289
  * or `app.threads` instead.
288
290
  *
289
- * @param opts - Options including appId and scope (collectionId, productId, etc.)
290
- * @returns `{ items, nextCursor }`: the data items are in `items`. The list is not paged, so
291
- * `nextCursor` is always `null`.
291
+ * @param opts - Options including appId and scope (collectionId, productId, etc.), plus paging:
292
+ * `limit` and `cursor`
293
+ * @returns `{ items, nextCursor, count }`: the data items are in `items`, 50 at a time unless you
294
+ * give a `limit` (at most 1000). Pass `nextCursor` back as `cursor` for the next page; `null`
295
+ * means that was the last one.
292
296
  *
293
297
  * @example
294
298
  * ```typescript
295
- * const { items } = await appConfiguration.getData({
296
- * appId: 'product-docs',
297
- * collectionId: 'my-collection',
298
- * productId: 'product-123'
299
- * });
299
+ * const scope = { appId: 'product-docs', collectionId: 'my-collection', productId: 'product-123' }
300
+ * let page = await appConfiguration.getData({ ...scope, limit: 100 });
301
+ * while (page.nextCursor) {
302
+ * page = await appConfiguration.getData({ ...scope, limit: 100, cursor: page.nextCursor });
303
+ * }
300
304
  * ```
301
305
  */
302
- function getData(opts: AppConfigOptions): Promise<ListResult<any>>;
306
+ function getData(opts: AppConfigOptions & ListOptions): Promise<ListResult<any>>;
303
307
  /**
304
308
  * Get a single keyed data item by ID within a scope.
305
309
  * This is ideal when you already know the exact ID of a simple scoped document.
@@ -375,7 +379,8 @@ export declare namespace appConfiguration {
375
379
  * @param collectionId - The collection ID
376
380
  * @param options - Optional settings (force: bypass cache)
377
381
  * @returns `{ items, nextCursor }`: one entry per app with a widget, in `items`, with its manifest
378
- * and bundle files. The list is not paged, so `nextCursor` is always `null`.
382
+ * and bundle files. It always comes back whole: there is no `limit` or `cursor`, and `nextCursor`
383
+ * is always `null`.
379
384
  * @throws ErrorResponse if the request fails
380
385
  *
381
386
  * @example
@@ -13,6 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
13
13
  import { request, post, del } from "../http.js";
14
14
  import * as cache from "../cache.js";
15
15
  import { collection as collectionApi } from "./collection.js";
16
+ import { listQuery } from "../list.js";
16
17
  function getWidgetsMap(config) {
17
18
  if (!config || typeof config !== 'object' || Array.isArray(config))
18
19
  return {};
@@ -60,7 +61,7 @@ function buildAppPath(opts, type) {
60
61
  * });
61
62
  *
62
63
  * // Get all user's data for this app
63
- * const { items: beds } = await userAppData.list('garden-planner');
64
+ * const { items: beds } = await userAppData.list('garden-planner', { limit: 50 });
64
65
  *
65
66
  * // Get specific item
66
67
  * const bed = await userAppData.get('garden-planner', 'bed-1');
@@ -124,20 +125,22 @@ export var userAppData;
124
125
  }
125
126
  userAppData.deleteConfig = deleteConfig;
126
127
  /**
127
- * List all user's data items for an app.
128
+ * List the user's data items for an app, a page at a time.
128
129
  *
129
130
  * @param appId - The app ID
130
- * @returns `{ items, nextCursor }`: the data items are in `items`, each with an `id` field. The list
131
- * is not paged, so `nextCursor` is always `null`.
131
+ * @param options - `limit` (50 unless you say) and `cursor`
132
+ * @returns `{ items, nextCursor }`: the data items are in `items`, each with an `id` field; pass
133
+ * `nextCursor` back as `cursor` for the next page (null on the last).
132
134
  *
133
135
  * @example
134
136
  * ```typescript
135
- * const { items: beds } = await userAppData.list('garden-planner');
136
- * // beds: [{ id: 'bed-1', name: 'Vegetables', ... }, { id: 'bed-2', ... }]
137
+ * let page = await userAppData.list('garden-planner', { limit: 50 });
138
+ * // page.items: [{ id: 'bed-1', name: 'Vegetables', ... }, { id: 'bed-2', ... }]
139
+ * while (page.nextCursor) page = await userAppData.list('garden-planner', { limit: 50, cursor: page.nextCursor });
137
140
  * ```
138
141
  */
139
- async function list(appId) {
140
- const path = `/public/auth/app/${encodeURIComponent(appId)}/data`;
142
+ async function list(appId, options = {}) {
143
+ const path = `/public/auth/app/${encodeURIComponent(appId)}/data${listQuery(options)}`;
141
144
  return request(path);
142
145
  }
143
146
  userAppData.list = list;
@@ -368,22 +371,24 @@ export var appConfiguration;
368
371
  * visibility, ownership, or relationships, prefer `app.records`, `app.cases`,
369
372
  * or `app.threads` instead.
370
373
  *
371
- * @param opts - Options including appId and scope (collectionId, productId, etc.)
372
- * @returns `{ items, nextCursor }`: the data items are in `items`. The list is not paged, so
373
- * `nextCursor` is always `null`.
374
+ * @param opts - Options including appId and scope (collectionId, productId, etc.), plus paging:
375
+ * `limit` and `cursor`
376
+ * @returns `{ items, nextCursor, count }`: the data items are in `items`, 50 at a time unless you
377
+ * give a `limit` (at most 1000). Pass `nextCursor` back as `cursor` for the next page; `null`
378
+ * means that was the last one.
374
379
  *
375
380
  * @example
376
381
  * ```typescript
377
- * const { items } = await appConfiguration.getData({
378
- * appId: 'product-docs',
379
- * collectionId: 'my-collection',
380
- * productId: 'product-123'
381
- * });
382
+ * const scope = { appId: 'product-docs', collectionId: 'my-collection', productId: 'product-123' }
383
+ * let page = await appConfiguration.getData({ ...scope, limit: 100 });
384
+ * while (page.nextCursor) {
385
+ * page = await appConfiguration.getData({ ...scope, limit: 100, cursor: page.nextCursor });
386
+ * }
382
387
  * ```
383
388
  */
384
389
  async function getData(opts) {
385
390
  const path = buildAppPath(opts, "data");
386
- return request(path);
391
+ return request(`${path}${listQuery({ limit: opts.limit, cursor: opts.cursor })}`);
387
392
  }
388
393
  appConfiguration.getData = getData;
389
394
  /**
@@ -477,7 +482,8 @@ export var appConfiguration;
477
482
  * @param collectionId - The collection ID
478
483
  * @param options - Optional settings (force: bypass cache)
479
484
  * @returns `{ items, nextCursor }`: one entry per app with a widget, in `items`, with its manifest
480
- * and bundle files. The list is not paged, so `nextCursor` is always `null`.
485
+ * and bundle files. It always comes back whole: there is no `limit` or `cursor`, and `nextCursor`
486
+ * is always `null`.
481
487
  * @throws ErrorResponse if the request fails
482
488
  *
483
489
  * @example
@@ -1,5 +1,5 @@
1
1
  import type { StandardQuery, QueryResult, QueryDescription } from "../types/query.js";
2
- import type { ListResult } from "../types/list.js";
2
+ import type { ListResult, ListOptions } from "../types/list.js";
3
3
  import type { AppCase, CreateCaseInput, UpdateCaseInput, AppendHistoryInput, CaseSummaryRequest, CaseSummaryResponse, CaseListQueryParams, AppThread, CreateThreadInput, UpdateThreadInput, ReplyInput, ThreadListQueryParams, AppRecord, CreateRecordInput, CreateRecordResponse, UpdateRecordInput, UpsertRecordInput, UpsertRecordResponse, MatchRecordsInput, MatchResult, BulkUpsertItem, BulkUpsertResult, BulkDeleteResult, BulkDeleteInput, RecordListQueryParams, ResolveAllParams, ResolveAllResult, PreviewRuleParams, PreviewRuleResult, AggregateRequest, AggregateResponse, RelatedResponse } from '../types/appObjects.js';
4
4
  export declare namespace app {
5
5
  /**
@@ -12,16 +12,20 @@ export declare namespace app {
12
12
  * see every entry; the public API lists public records and lists the app declares public. Hold on
13
13
  * to `version` and pass it back to get `{ unchanged: true }` when nothing changed.
14
14
  *
15
- * Returns `{ items, nextCursor, count?, version, mode }`: the entries are in `items`, already sorted.
16
- * A picker is not paged, so `nextCursor` is always `null`.
15
+ * Returns `{ items, nextCursor, count?, version, mode }`: the entries are in `items`, already sorted,
16
+ * 50 at a time unless you give a `limit` (at most 1000). Pass `nextCursor` back as `cursor` for the
17
+ * next page; `null` means that was the last one. `q` searches the entries.
17
18
  *
18
19
  * @example
19
20
  * ```typescript
20
- * const res = await app.options.get(collectionId, appId, 'type:machine', { admin: true })
21
+ * const res = await app.options.get(collectionId, appId, 'type:machine', { admin: true, limit: 200 })
21
22
  * if (!res.unchanged) { options = res.items; version = res.version }
23
+ *
24
+ * // A type too large to send whole: search it
25
+ * const found = await app.options.get(collectionId, appId, 'type:machine', { q: 'mix', limit: 20 })
22
26
  * ```
23
27
  */
24
- function get(collectionId: string, appId: string, source: string, opts?: {
28
+ function get(collectionId: string, appId: string, source: string, opts?: ListOptions & {
25
29
  q?: string;
26
30
  version?: string;
27
31
  admin?: boolean;
@@ -44,6 +48,7 @@ export declare namespace app {
44
48
  *
45
49
  * Returns `{ items, nextCursor, count }`: the cases are in `items`, `count` is how many match in
46
50
  * all, and `nextCursor` is `null` on the last page. Page with `limit` and `cursor`.
51
+ * Sort with `orderBy`. A date field (`createdAt`, `updatedAt`, `closedAt`) takes a range: `{ gte, lte }`.
47
52
  * `includeDeleted`, `contactId` and `assignedTo` are for admin calls (`admin = true`) only: the
48
53
  * public list refuses a parameter it does not read.
49
54
  *
@@ -54,6 +59,12 @@ export declare namespace app {
54
59
  * while (page.nextCursor) {
55
60
  * page = await app.cases.list(collectionId, appId, { status: 'open', limit: 50, cursor: page.nextCursor })
56
61
  * }
62
+ *
63
+ * // This month's cases, most urgent first
64
+ * await app.cases.list(collectionId, appId, {
65
+ * createdAt: { gte: '2026-11-01T00:00:00Z', lte: '2026-11-30T23:59:59Z' },
66
+ * orderBy: [{ priority: 'desc' }, { createdAt: 'asc' }],
67
+ * })
57
68
  * ```
58
69
  */
59
70
  function list(collectionId: string, appId: string, params?: CaseListQueryParams, admin?: boolean): Promise<ListResult<AppCase>>;
@@ -108,6 +119,7 @@ export declare namespace app {
108
119
  *
109
120
  * Returns `{ items, nextCursor, count }`: the threads are in `items`, `count` is how many match in
110
121
  * all, and `nextCursor` is `null` on the last page. Page with `limit` and `cursor`.
122
+ * Sort with `orderBy`. A date field (`createdAt`, `updatedAt`) takes a range: `{ gte, lte }`.
111
123
  * `includeDeleted` and `contactId` are for admin calls (`admin = true`) only: the public list
112
124
  * refuses a parameter it does not read.
113
125
  *
@@ -118,6 +130,12 @@ export declare namespace app {
118
130
  * while (page.nextCursor) {
119
131
  * page = await app.threads.list(collectionId, appId, { parentType: 'case', parentId: caseId, limit: 50, cursor: page.nextCursor })
120
132
  * }
133
+ *
134
+ * // The threads with the newest replies, started this month
135
+ * await app.threads.list(collectionId, appId, {
136
+ * createdAt: { gte: '2026-11-01T00:00:00Z' },
137
+ * orderBy: [{ lastReplyAt: 'desc' }],
138
+ * })
121
139
  * ```
122
140
  */
123
141
  function list(collectionId: string, appId: string, params?: ThreadListQueryParams, admin?: boolean): Promise<ListResult<AppThread>>;
@@ -201,6 +219,8 @@ export declare namespace app {
201
219
  *
202
220
  * Returns `{ items, nextCursor, count }`: the records are in `items`, `count` is how many match in
203
221
  * all, and `nextCursor` is `null` on the last page. Page with `limit` and `cursor`.
222
+ * Search with `q`, sort with `orderBy`. A date field (`createdAt`, `updatedAt`, `startsAt`,
223
+ * `expiresAt`) takes a range: `{ gte, lte }`.
204
224
  *
205
225
  * Public/owner callers only receive records with `status: "active"`.
206
226
  * Admin callers can query all statuses (for example `draft`/`archived`).
@@ -214,6 +234,14 @@ export declare namespace app {
214
234
  * while (page.nextCursor) {
215
235
  * page = await app.records.list(collectionId, appId, { recordType: 'tip', limit: 100, cursor: page.nextCursor })
216
236
  * }
237
+ *
238
+ * // Tips about watering, changed this month, newest change first
239
+ * await app.records.list(collectionId, appId, {
240
+ * recordType: 'tip',
241
+ * q: 'watering',
242
+ * updatedAt: { gte: '2026-11-01T00:00:00Z' },
243
+ * orderBy: [{ updatedAt: 'desc' }],
244
+ * })
217
245
  * ```
218
246
  */
219
247
  function list(collectionId: string, appId: string, params?: RecordListQueryParams, admin?: boolean): Promise<ListResult<AppRecord>>;
@@ -301,8 +329,9 @@ export declare namespace app {
301
329
  /**
302
330
  * Match records against a runtime target scope.
303
331
  * Returns `{ items, nextCursor, count, strategy }`: `items` are the records whose scope is satisfied
304
- * by the target, most specific first, and `count` is how many matched. It is not paged
305
- * (`nextCursor` is always `null`); cap the answer with `limit`.
332
+ * by the target, most specific first, and `count` is how many matched. Without a `limit` it answers
333
+ * up to 100. Give a `limit` (in `input`) to page: when there are more, pass `nextCursor` back as
334
+ * `cursor`.
306
335
  * POST /records/match
307
336
  *
308
337
  * @param admin - false for public endpoint (visibility-filtered, active-only), true for admin
@@ -315,6 +344,13 @@ export declare namespace app {
315
344
  * recordType: 'nutrition',
316
345
  * }, true);
317
346
  * const best = items[0] // the single highest-specificity nutrition record
347
+ *
348
+ * // 50 at a time
349
+ * const target = { productId: 'prod_abc' }
350
+ * let page = await app.records.match(collectionId, appId, { target, limit: 50 })
351
+ * while (page.nextCursor) {
352
+ * page = await app.records.match(collectionId, appId, { target, limit: 50, cursor: page.nextCursor })
353
+ * }
318
354
  * ```
319
355
  */
320
356
  function match(collectionId: string, appId: string, input: MatchRecordsInput, admin?: boolean): Promise<MatchResult>;
@@ -352,19 +388,27 @@ export declare namespace app {
352
388
  * Resolve every applicable record for a product context in one call.
353
389
  * Returns `{ items, nextCursor, count, context, truncated }`: `items` are the records across all
354
390
  * tiers (proof, batch, variant, product, rule, facet, collection), deduplicated and sorted by
355
- * specificity descending, each as `{ record, matchedAt, specificity }`. It is not paged
356
- * (`nextCursor` is always `null`); `truncated` says the answer was cut at `limit`.
391
+ * specificity descending, each as `{ record, matchedAt, specificity }`. Without a `limit` it answers
392
+ * up to 500. Give a `limit` (in `input`) to page: when there are more, pass `nextCursor` back as
393
+ * `cursor`.
357
394
  * POST /records/resolve-all
358
395
  *
359
396
  * @param admin - false for public (visibility-filtered, active-only), true for admin (all statuses)
360
397
  *
361
398
  * @example
362
399
  * ```ts
363
- * const { items, truncated } = await app.records.resolveAll(collectionId, appId, {
400
+ * const { items } = await app.records.resolveAll(collectionId, appId, {
364
401
  * context: { productId: 'prod_abc' },
365
402
  * recordType: 'nutrition',
366
403
  * })
367
404
  * for (const { record, matchedAt } of items) console.log(matchedAt, record.data)
405
+ *
406
+ * // 100 at a time
407
+ * const context = { productId: 'prod_abc' }
408
+ * let page = await app.records.resolveAll(collectionId, appId, { context, limit: 100 })
409
+ * while (page.nextCursor) {
410
+ * page = await app.records.resolveAll(collectionId, appId, { context, limit: 100, cursor: page.nextCursor })
411
+ * }
368
412
  * ```
369
413
  */
370
414
  function resolveAll(collectionId: string, appId: string, input: ResolveAllParams, admin?: boolean): Promise<ResolveAllResult>;