@proveanything/smartlinks 3.0.0-alpha.0 → 3.0.0-alpha.2

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 (149) hide show
  1. package/README.md +7 -7
  2. package/dist/api/analytics.d.ts +5 -4
  3. package/dist/api/analytics.js +5 -4
  4. package/dist/api/appConfiguration.d.ts +23 -18
  5. package/dist/api/appConfiguration.js +24 -18
  6. package/dist/api/appObjects.d.ts +54 -10
  7. package/dist/api/appObjects.js +75 -40
  8. package/dist/api/asset.d.ts +28 -22
  9. package/dist/api/asset.js +45 -56
  10. package/dist/api/attestation.d.ts +11 -3
  11. package/dist/api/attestation.js +12 -3
  12. package/dist/api/attestations.d.ts +12 -8
  13. package/dist/api/attestations.js +18 -21
  14. package/dist/api/authKit.d.ts +15 -10
  15. package/dist/api/authKit.js +17 -11
  16. package/dist/api/batch.d.ts +36 -25
  17. package/dist/api/batch.js +46 -39
  18. package/dist/api/bookings.d.ts +18 -9
  19. package/dist/api/bookings.js +23 -13
  20. package/dist/api/broadcasts.js +3 -17
  21. package/dist/api/claimSet.d.ts +26 -12
  22. package/dist/api/claimSet.js +32 -24
  23. package/dist/api/collection.d.ts +15 -10
  24. package/dist/api/collection.js +17 -11
  25. package/dist/api/comms.d.ts +12 -6
  26. package/dist/api/comms.js +12 -6
  27. package/dist/api/conditions.d.ts +7 -6
  28. package/dist/api/conditions.js +8 -6
  29. package/dist/api/contact.d.ts +6 -2
  30. package/dist/api/contact.js +25 -60
  31. package/dist/api/containers.d.ts +14 -10
  32. package/dist/api/containers.js +19 -14
  33. package/dist/api/crate.js +7 -9
  34. package/dist/api/dpp.d.ts +20 -13
  35. package/dist/api/dpp.js +23 -15
  36. package/dist/api/facets.d.ts +38 -13
  37. package/dist/api/facets.js +40 -15
  38. package/dist/api/files.d.ts +5 -2
  39. package/dist/api/files.js +7 -4
  40. package/dist/api/form.d.ts +8 -5
  41. package/dist/api/form.js +9 -5
  42. package/dist/api/index.d.ts +0 -1
  43. package/dist/api/index.js +0 -1
  44. package/dist/api/integrations.d.ts +29 -17
  45. package/dist/api/integrations.js +32 -25
  46. package/dist/api/interactions.d.ts +11 -6
  47. package/dist/api/interactions.js +14 -23
  48. package/dist/api/jobs.d.ts +16 -6
  49. package/dist/api/jobs.js +30 -20
  50. package/dist/api/journeys.js +2 -14
  51. package/dist/api/journeysAnalytics.d.ts +8 -5
  52. package/dist/api/journeysAnalytics.js +8 -5
  53. package/dist/api/knowledge.d.ts +20 -14
  54. package/dist/api/knowledge.js +22 -15
  55. package/dist/api/location.d.ts +6 -3
  56. package/dist/api/location.js +8 -22
  57. package/dist/api/lots.d.ts +9 -5
  58. package/dist/api/lots.js +22 -26
  59. package/dist/api/loyalty.d.ts +25 -16
  60. package/dist/api/loyalty.js +33 -32
  61. package/dist/api/nfc.d.ts +3 -1
  62. package/dist/api/nfc.js +3 -1
  63. package/dist/api/order.d.ts +45 -39
  64. package/dist/api/order.js +48 -65
  65. package/dist/api/partner.d.ts +17 -14
  66. package/dist/api/partner.js +21 -22
  67. package/dist/api/products.d.ts +35 -12
  68. package/dist/api/products.js +36 -13
  69. package/dist/api/proof.d.ts +41 -19
  70. package/dist/api/proof.js +44 -23
  71. package/dist/api/segments.js +3 -15
  72. package/dist/api/serviceAccounts.d.ts +8 -5
  73. package/dist/api/serviceAccounts.js +9 -6
  74. package/dist/api/shop.d.ts +7 -5
  75. package/dist/api/shop.js +13 -19
  76. package/dist/api/subscriptions.d.ts +12 -10
  77. package/dist/api/subscriptions.js +17 -25
  78. package/dist/api/tags.d.ts +23 -20
  79. package/dist/api/tags.js +40 -52
  80. package/dist/api/template.d.ts +16 -11
  81. package/dist/api/template.js +19 -13
  82. package/dist/api/translations.js +2 -12
  83. package/dist/api/userGroups.d.ts +26 -16
  84. package/dist/api/userGroups.js +43 -30
  85. package/dist/api/variant.d.ts +10 -7
  86. package/dist/api/variant.js +11 -7
  87. package/dist/api/wallet.d.ts +14 -11
  88. package/dist/api/wallet.js +15 -12
  89. package/dist/docs/API_SUMMARY.md +289 -483
  90. package/dist/docs/ai.md +15 -15
  91. package/dist/docs/analytics.md +1 -1
  92. package/dist/docs/app-objects.md +4 -4
  93. package/dist/docs/attestations.md +8 -8
  94. package/dist/docs/contact-search.md +2 -3
  95. package/dist/docs/i18n.md +46 -292
  96. package/dist/docs/knowledge.md +3 -3
  97. package/dist/docs/lists.md +58 -15
  98. package/dist/docs/upgrading-to-3.md +238 -136
  99. package/dist/i18n.d.ts +14 -2
  100. package/dist/i18n.js +23 -6
  101. package/dist/list.d.ts +12 -0
  102. package/dist/list.js +59 -0
  103. package/dist/openapi.yaml +301 -662
  104. package/dist/types/analytics.d.ts +7 -3
  105. package/dist/types/appObjects.d.ts +27 -12
  106. package/dist/types/appOptions.d.ts +2 -2
  107. package/dist/types/asset.d.ts +5 -6
  108. package/dist/types/attestations.d.ts +7 -9
  109. package/dist/types/batch.d.ts +5 -5
  110. package/dist/types/bookings.d.ts +10 -5
  111. package/dist/types/comms.d.ts +9 -5
  112. package/dist/types/contact.d.ts +7 -4
  113. package/dist/types/containers.d.ts +2 -1
  114. package/dist/types/facets.d.ts +14 -2
  115. package/dist/types/files.d.ts +3 -2
  116. package/dist/types/integrations.d.ts +2 -1
  117. package/dist/types/interaction.d.ts +15 -7
  118. package/dist/types/jobs.d.ts +1 -1
  119. package/dist/types/journeysAnalytics.d.ts +3 -2
  120. package/dist/types/knowledge.d.ts +6 -3
  121. package/dist/types/knowledge.js +0 -1
  122. package/dist/types/list.d.ts +30 -2
  123. package/dist/types/location.d.ts +7 -2
  124. package/dist/types/location.js +0 -1
  125. package/dist/types/lots.d.ts +5 -2
  126. package/dist/types/lots.js +0 -6
  127. package/dist/types/order.d.ts +22 -20
  128. package/dist/types/product.d.ts +28 -11
  129. package/dist/types/proof.d.ts +7 -8
  130. package/dist/types/tags.d.ts +5 -3
  131. package/dist/types/userGroups.d.ts +3 -3
  132. package/dist/types/userGroups.js +0 -4
  133. package/dist/version.d.ts +1 -1
  134. package/dist/version.js +1 -1
  135. package/docs/API_SUMMARY.md +289 -483
  136. package/docs/ai.md +15 -15
  137. package/docs/analytics.md +1 -1
  138. package/docs/app-objects.md +4 -4
  139. package/docs/attestations.md +8 -8
  140. package/docs/contact-search.md +2 -3
  141. package/docs/i18n.md +46 -292
  142. package/docs/knowledge.md +3 -3
  143. package/docs/lists.md +58 -15
  144. package/docs/upgrading-to-3.md +238 -136
  145. package/openapi.yaml +301 -662
  146. package/package.json +91 -91
  147. package/scripts/lib/upgrade.mjs +216 -60
  148. package/scripts/upgrade.mjs +33 -10
  149. package/upgrade/3.json +2731 -2213
package/docs/lists.md CHANGED
@@ -24,7 +24,8 @@ const { items, nextCursor } = await tags.list('coll_123', { limit: 100 })
24
24
 
25
25
  ## Paging
26
26
 
27
- Two options, the same on every list that pages: `limit` (how many) and `cursor` (where to carry on).
27
+ Two options, the same on every list: `limit` (how many) and `cursor` (where to carry on). A list returns
28
+ 50 items unless you ask for another number, and each list has its own maximum.
28
29
 
29
30
  ```typescript
30
31
  let cursor: string | undefined
@@ -37,8 +38,10 @@ do {
37
38
 
38
39
  - A cursor is opaque. Don't build one, read one, or keep one for later: use the one the last page gave you.
39
40
  - A cursor that isn't one the list gave out is refused with `400 INVALID_CURSOR`.
40
- - A list that isn't paged returns everything, with `nextCursor: null`. Its function takes no `limit` or
41
- `cursor`.
41
+ - **`items` is one page, not everything.** If you need them all, follow `nextCursor` or use `all` (below).
42
+ - The one exception is a small fixed set: a page's widgets, the facet definitions, config fields, the
43
+ connectors that exist. Those always come back whole. Their functions take no `limit` or `cursor`, and
44
+ `nextCursor` is always `null`.
42
45
 
43
46
  ### Walking every page
44
47
 
@@ -52,15 +55,18 @@ for await (const c of each((cursor) => contact.list('coll_123', { limit: 100, cu
52
55
  }
53
56
 
54
57
  const everyTag = await all((cursor) => tags.list('coll_123', { cursor }))
58
+ const variants = await all((cursor) => variant.list('coll_123', 'prod_1', { limit: 200, cursor }))
55
59
  ```
56
60
 
61
+ A bigger `limit` means fewer round trips when you want everything.
62
+
57
63
  `all` stops at 10,000 items so a mistake can't fetch a whole database. Raise it on purpose when you mean
58
64
  to: `all(page, { max: 50000 })`.
59
65
 
60
66
  ## `count`
61
67
 
62
- `count` is the total number of items that match, not the number on this page. It's there where the server
63
- already knows it, and absent where counting would cost a scan.
68
+ `count` is the total number of items that match, not the number on this page. Most lists give it. It is
69
+ absent where counting would cost a scan, and on a list that only ever returns "the newest N".
64
70
 
65
71
  ```typescript
66
72
  const { items, count } = await app.records.list('coll_123', 'my-app', { limit: 20 })
@@ -75,25 +81,57 @@ When you need a count and the list doesn't give one, use the [standard query](st
75
81
  A few lists say more than the list, and those fields sit beside `items`:
76
82
 
77
83
  ```typescript
78
- const { items, mode } = await knowledge.search('coll_123', { query: 'how do I descale' })
84
+ const { items, mode } = await knowledge.search('coll_123', { q: 'how do I descale' })
79
85
  const { items: pairs, scanned } = await contact.findDuplicates('coll_123')
80
86
  ```
81
87
 
82
88
  Each function's return type names them.
83
89
 
84
- ## Options a list doesn't read are refused
90
+ ## The same words on every list
85
91
 
86
- A list refuses a query option it doesn't read, with `400 UNKNOWN_PARAMETER`, the options that do exist,
87
- and the nearest match:
92
+ Where a list can search, sort, filter by date or bring related things along, it uses the same option as
93
+ every other list that can. Each function's options say which of these it has.
88
94
 
95
+ | To | Option | Example |
96
+ |---|---|---|
97
+ | Search | `q` | `{ q: 'oak' }` |
98
+ | Sort | `orderBy` | `{ orderBy: [{ createdAt: 'desc' }, { name: 'asc' }] }` |
99
+ | Filter on a date field | the field, with `gte` and `lte` | `{ createdAt: { gte: '2026-11-01T00:00:00Z', lte: new Date() } }` |
100
+ | Give the time window of a log or a schedule | `from`, `to` | `{ from: '2026-11-01T00:00:00Z', to: '2026-12-01T00:00:00Z' }` |
101
+ | Bring related things along | `expand` | `{ expand: ['items'] }` |
102
+
103
+ ```typescript
104
+ import { app, contact, order } from '@proveanything/smartlinks'
105
+
106
+ const open = await app.cases.list('coll_123', 'support', {
107
+ status: 'open',
108
+ orderBy: [{ priority: 'desc' }, { createdAt: 'asc' }],
109
+ createdAt: { gte: '2026-11-01T00:00:00Z' },
110
+ })
111
+ const recent = await contact.search({ collectionId: 'coll_123', q: 'jo', createdAt: { gte: lastWeek } })
112
+ const withItems = await order.list('coll_123', { expand: ['items'] })
89
113
  ```
90
- This list has no "serach" parameter. Did you mean "search"?
91
- ```
92
114
 
93
- So a mistyped filter is an error you see, not a filter that silently does nothing. The same applies to an
94
- admin-only option passed on a public list (for example `includeDeleted`).
115
+ - **Dates** are a full date and time (ISO 8601) or a `Date`. A date with no time means midnight UTC at the
116
+ start of that day, so for "to the end of the 30th" give the 30th at 23:59:59, or the 1st with `from`/`to`.
117
+ - **`gte` and `lte` include the moment you give.**
118
+ - **`from` and `to`** belong to lists that are a log or a schedule (events, messages sent, jobs, bookings
119
+ and slots): one time window for the whole list, not a filter on a named field.
120
+ - **Sorting** is by the fields the list names. Asking for another is refused, with the ones it has.
121
+
122
+ ## What a list can't do, it says
123
+
124
+ Nothing is silently ignored. A list answers `400` and says what it does take when you send:
95
125
 
96
- ## Filtering, sorting and counting
126
+ - an option it doesn't read (`UNKNOWN_PARAMETER`, with the options that exist and the nearest match);
127
+ - the older spelling of one of the words above (`UNKNOWN_PARAMETER`: `This list has no "search" parameter. Use "q".`);
128
+ - a field it can't sort by, a related thing it doesn't know, or a value that isn't a date (`INVALID_PARAMETER`);
129
+ - `limit` or `cursor` on a fixed set (`UNKNOWN_PARAMETER`: `This list is always returned whole`);
130
+ - an admin-only option on a public list (for example `includeDeleted`).
131
+
132
+ So a mistyped filter is an error you see, not a filter that silently does nothing.
133
+
134
+ ## Filtering, sorting and counting beyond that
97
135
 
98
136
  Lists take the few filters each one always took. For anything richer (several conditions, sorting on any
99
137
  field, counts, totals, following links to related records) use the [standard query](standard-query.md):
@@ -111,4 +149,9 @@ SmartLinks-Version: 2027-01
111
149
  { "items": [ … ], "nextCursor": "eyJvIjoyMDB9", "count": 1240 }
112
150
  ```
113
151
 
114
- For a list that is a `POST` (a search or a query), `limit` and `cursor` go at the top level of the body.
152
+ For a list that is a `POST` (a search or a query), `limit`, `cursor` and the words above go at the top level
153
+ of the body. In an address the words are written like this:
154
+
155
+ ```
156
+ ?q=oak&orderBy=createdAt:desc,name:asc&createdAt[gte]=2026-11-01T00:00:00Z&expand=items,facets
157
+ ```
@@ -25,17 +25,42 @@ that file; this page explains it.
25
25
 
26
26
  ## How to move an app
27
27
 
28
- 1. Set the dependency to `^3` and install. Update `@proveanything/smartlinks-utils-ui` and
29
- `@proveanything/smartlinks-auth-ui` to their SDK 3 versions if the app uses them.
30
- 2. Run `npx smartlinks-upgrade`. It shows what it can change by itself and lists every other place that
31
- needs changing, with file and line. `npx smartlinks-upgrade --write` makes the mechanical changes.
32
- 3. Work through its list with the sections below.
33
- 4. Type-check. What's left is a compile error: a removed name, a list used as an array, an option that
34
- no longer exists.
35
- 5. Search for the things neither can see (see [What the compiler won't catch](#what-the-compiler-wont-catch)).
36
- 6. Build, run `npx smartlinks-doctor`, and try each screen that lists something.
37
-
38
- Apps built in Forge move with the **Move to SDK 3** upgrade step, which follows these steps.
28
+ Set the dependency to `^3` and install. Update `@proveanything/smartlinks-utils-ui` and
29
+ `@proveanything/smartlinks-auth-ui` to their SDK 3 versions if the app uses them. Then run
30
+ `npx smartlinks-upgrade`: it shows the move as five passes, with every place left in each.
31
+
32
+ **Do the passes in order, one at a time. A pass is finished when its check passes, not when it looks
33
+ finished.** Different kinds of change fail in different ways, and the ones nothing complains about are
34
+ the ones that get missed when everything is done in one go.
35
+
36
+ | | Pass | What it is | Finished when |
37
+ |---|---|---|---|
38
+ | 1 | `automatic` | The renames and dropped arguments the script makes itself | `npx smartlinks-upgrade --write` has run |
39
+ | 2 | `replace` | Calls that no longer exist, and options that went. Each needs a decision | `npx smartlinks-upgrade --check replace` finds nothing |
40
+ | 3 | `lists` | Every list returns `{ items, nextCursor, count? }` and takes the standard words | the app type-checks, and `--check lists` finds nothing |
41
+ | 4 | `pages` | A list that used to return everything now returns one page: all of them, or a page? | `--check pages` finds nothing |
42
+ | 5 | `errors` | Error codes compared as text, the SDK read from `window` | `--check errors` finds nothing |
43
+
44
+ Then build, run `npx smartlinks-doctor`, run the app's own tests, and try each screen that lists
45
+ something.
46
+
47
+ `--check` exits 0 when nothing is left and 2 when something is, so a script or an agent can use it as a
48
+ gate. `--check pages` (or any pass) prints only that pass's places.
49
+
50
+ **Pass 4 is the one to take slowly.** Nothing else catches it: code that reads `.items` from a list that
51
+ used to return everything compiles, runs, and is wrong once there are more than 50. The script counts a
52
+ call as decided when it says how many it wants (`limit`), follows the pages (`cursor`, or it sits inside
53
+ `all()` / `each()`), or carries a note from a person:
54
+
55
+ ```typescript
56
+ // sl-upgrade: ok the picker shows the first few on purpose
57
+ const { items } = await lots.list(collectionId)
58
+ ```
59
+
60
+ The same note settles a place in pass 5 that is right as it is. It never excuses a call that no longer
61
+ exists.
62
+
63
+ Apps built in Forge move with the **Move to SDK 3** upgrade step, which goes through these passes.
39
64
 
40
65
  ### What `smartlinks-upgrade` does
41
66
 
@@ -43,11 +68,11 @@ It reads `upgrade/3.json` and your source, and finds SDK calls by what a name is
43
68
  it's spelled: `product.get(…)` only counts where `product` is the SDK's (an import, `SL.product`, or a
44
69
  name taken from one of those). A variable of your own called `product` is never touched.
45
70
 
46
- | It changes (with `--write`) | It lists for you |
71
+ | It changes (with `--write`) | It lists for you, by pass |
47
72
  |---|---|
48
- | Calls that only changed name: `product.get` → `products.get`, with the import | Every call to a list whose result changed, and whether it passes `offset` or `page` |
49
- | Renamed types, with their imports | Every removed call, with what replaces it |
50
- | The argument that went from `collection.list` and `authKit.list` | Options that went |
73
+ | Calls that only changed name: `product.get` → `products.get`, `jobs.listJobs` → `jobs.list`, with the import | Every removed call, with what replaces it, and options that went |
74
+ | Renamed types, with their imports | Every call to a list whose result changed, and any option it passes that is gone |
75
+ | The argument that went from `collection.list` and `authKit.list` | Every call to a list that used to return everything, until it is decided |
51
76
  | `sharedDependencies` in the manifest, to `v8` | Error codes compared with a dotted or camel-case string |
52
77
  | | Old `attestation` writes, to leave alone |
53
78
 
@@ -69,7 +94,7 @@ const page = await app.records.list(collectionId, appId) // { data, pa
69
94
  // SDK 3: one shape
70
95
  const { items } = await tags.list(collectionId)
71
96
  const { items, nextCursor } = await order.list(collectionId, { limit: 50 })
72
- const { items } = await products.list(collectionId)
97
+ const { items, nextCursor } = await products.list(collectionId) // the first 50, not all of them
73
98
  const { items, count } = await app.records.list(collectionId, appId)
74
99
  ```
75
100
 
@@ -97,8 +122,67 @@ const everyTag = await all((cursor) => tags.list(collectionId, { cursor }))
97
122
  for await (const t of each((cursor) => tags.list(collectionId, { cursor }))) { /* … */ }
98
123
  ```
99
124
 
100
- A list that was never paged still isn't: it returns everything in `items` with `nextCursor: null`, and
101
- its function takes no `limit` or `cursor`. More in [Lists](lists.md).
125
+ ### A list is one page now, even where it used to be everything
126
+
127
+ This is the change most likely to break an app quietly. In SDK 2 many lists returned everything in one
128
+ answer: products, variants, batches, the proofs of a product, forms, templates, lots, claim sets, the
129
+ members of a group, an app's config items. In SDK 3 every list returns **50 items unless you pass
130
+ `limit`**, and `nextCursor` says whether there are more.
131
+
132
+ ```typescript
133
+ // SDK 2: every variant of the product
134
+ const variants = await variant.list(collectionId, productId)
135
+
136
+ // SDK 3, when you need them all (to filter, count, look one up, fill a picker)
137
+ const variants = await all((cursor) => variant.list(collectionId, productId, { limit: 200, cursor }))
138
+
139
+ // SDK 3, when you show a page
140
+ const { items, nextCursor } = await variant.list(collectionId, productId, { limit: 20 })
141
+ ```
142
+
143
+ The upgrade report marks every such call **"used to return everything"**, and the table at the end of
144
+ this guide marks them "one page now". Code that only reads `.items` compiles and runs, and is wrong
145
+ once there are more than 50.
146
+
147
+ The exception is a small fixed set: a page's widgets, the facet definitions, config fields, the
148
+ connectors that exist, a look-up by ids. Those always come back whole, with `nextCursor: null`, and
149
+ their functions take no `limit` or `cursor` (the API refuses them). More in [Lists](lists.md).
150
+
151
+ ### One word for search, sort, dates and related things
152
+
153
+ Where a list can do one of these, it now says it the same way as every other list. The older spelling
154
+ is gone from the types, and the API refuses it by name (`This list has no "search" parameter. Use "q".`).
155
+
156
+ | To | SDK 2 (varied by list) | SDK 3 |
157
+ |---|---|---|
158
+ | Search | `search`, `query`, `query.search` | `q` |
159
+ | Sort | `sort: 'createdAt:desc'`, `sort` + `order`, `sortBy` + `sortOrder`, `order: 'ASC'` | `orderBy: [{ createdAt: 'desc' }]` |
160
+ | Filter on a date field | `createdFrom` / `createdTo`, `recordedAfter` / `recordedBefore`, `query.createdAfter` / `Before`, `createdAt: 'gte:…'` | `createdAt: { gte, lte }` (the field's own name) |
161
+ | Bring related things along | `includeItems: true`, `expandFacets`, `includes: ['assets']`, `include` | `expand: ['items']` |
162
+ | Time window of a log or schedule | `from` / `to` (`since` on the error log) | `from` / `to` |
163
+
164
+ ```typescript
165
+ // SDK 2
166
+ await app.cases.list(c, appId, { sort: '-createdAt', createdAt: 'gte:2026-11-01' })
167
+ await products.query(c, { query: { search: 'oak', updatedAfter: since }, sort: [{ field: 'name', direction: 'asc' }] })
168
+ await order.list(c, { includeItems: true })
169
+ await knowledge.publicSearch(c, { query: 'descale', k: 3 })
170
+
171
+ // SDK 3
172
+ await app.cases.list(c, appId, { orderBy: [{ createdAt: 'desc' }], createdAt: { gte: '2026-11-01T00:00:00Z' } })
173
+ await products.query(c, { q: 'oak', updatedAt: { gte: since }, orderBy: [{ name: 'asc' }] })
174
+ await order.list(c, { expand: ['items'] })
175
+ await knowledge.publicSearch(c, { q: 'descale', limit: 3 })
176
+ ```
177
+
178
+ Three things to watch:
179
+
180
+ - **A bare sort field used to mean descending** on app records, cases, threads and bookings
181
+ (`sort: 'createdAt'` was newest first). `orderBy` always says the direction.
182
+ - **A date is a full date and time.** A plain date, a `gte:` prefix or an operator the list doesn't have
183
+ used to be ignored without a word; now it is refused. `gte` and `lte` include the moment you give.
184
+ - **A list sorts by the fields it names** and brings along the things it names; anything else is refused,
185
+ with the ones it has. The option types list them.
102
186
 
103
187
  **A common pattern to fix while you're here:** fetching a whole list and filtering or counting it in the
104
188
  browser. That worked on small collections and falls over on large ones. Ask the server instead, with the
@@ -132,6 +216,10 @@ Everything marked `@deprecated` in SDK 2 is removed, except the old `attestation
132
216
  | `product.update` | `products.update` | |
133
217
  | `product.updateClaimWindow` | `products.updateClaimWindow` | |
134
218
  | `ScannerEventSubscriber` | `AdminMobileEventCallback` | |
219
+ | `async.enqueueAsyncJob` | `jobs.enqueue` | The `async` namespace is gone: starting and following a job live in `jobs` with listing them. |
220
+ | `async.getAsyncJobStatus` | `jobs.status` | |
221
+ | `jobs.listJobs` | `jobs.list` | Then treat it as a list: `jobs.list` returns ListResult<Job>. |
222
+ | `jobs.getJob` | `jobs.get` | |
135
223
 
136
224
  **Removed** (no like-for-like call):
137
225
 
@@ -180,6 +268,18 @@ longer have them.
180
268
  | `facets.publicList` | `includeValues` | The list never read it. Read a facet's values with `facets.publicListValues`. |
181
269
  | `interactions.publicMyInteractions` | `scope` | The server never read it. |
182
270
  | `lots.publicList` | `includeDeleted` | Admin only: use `lots.list`. |
271
+ | `attestations.summary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
272
+ | `attestations.summary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
273
+ | `attestations.publicSummary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
274
+ | `attestations.publicSummary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
275
+ | `attestations.treeSummary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
276
+ | `attestations.treeSummary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
277
+ | `attestations.publicTreeSummary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
278
+ | `attestations.publicTreeSummary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
279
+ | `attestations.publicContainerSummary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
280
+ | `attestations.publicContainerSummary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
281
+ | `attestations.publicContainerTreeSummary` | `recordedAfter` | Now `recordedAt: { gte: … }`, the same range the attestation lists take. |
282
+ | `attestations.publicContainerTreeSummary` | `recordedBefore` | Now `recordedAt: { lte: … }`, the same range the attestation lists take. |
183
283
  <!-- upgrade-table:options:end -->
184
284
 
185
285
  ## Errors
@@ -256,6 +356,8 @@ Search for these by hand (or let the Forge step do it):
256
356
  - A list result typed `any` (JavaScript files, `as any`, untyped hooks): `.length`, `.map`, `.filter`
257
357
  on the result itself instead of on `.items`.
258
358
  - React Query (or other) caches keyed on `offset` or `page`: key on the cursor.
359
+ - A list that used to return everything, read as if it still does (`const { items } = await x.list(…)`
360
+ with no `limit`, `cursor` or `all`). It compiles. The upgrade report marks each one.
259
361
  - An options object passed to both the admin and the public form of a list.
260
362
  - `window.SL` used directly in a v8 build.
261
363
 
@@ -277,154 +379,154 @@ Search for these by hand (or let the Forge step do it):
277
379
 
278
380
  | Function | SDK 2 returned | SDK 3 returns | Options |
279
381
  |---|---|---|---|
280
- | `adminCards.list` | `{ cards, hidden, layout }` | `ListResult<AdminCard> & { hidden, layout }` | |
281
- | `ai.agent.listTools` | `AgentToolsResponse { tools }` | `ListResult<AgentToolDefinition>` | |
282
- | `ai.skills.list` | `SkillsListResponse { skills }` | `ListResult<SkillDescriptor>` | |
283
- | `analytics.admin.events` | `{ source, limit, offset, sort, count, rows }` | `ListResult<Record<string, any>> & { source, sort }` | no `offset`; now `cursor` |
284
- | `app.cases.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppCase>` | no `offset`; now `cursor` |
285
- | `app.options.get` | `{ items, version, mode, total? } | { unchanged: true, version }` | `(ListResult<AppOption> & { version, mode }) | { unchanged: true, version }` | |
286
- | `app.records.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppRecord>` | no `offset`; now `cursor` |
287
- | `app.records.match` | `{ data, total, strategy }` | `ListResult<MatchEntry> & { strategy }` | |
288
- | `app.records.resolveAll` | `{ records, total, context, truncated }` | `ListResult<ResolveAllEntry> & { context, truncated }` | |
289
- | `app.threads.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppThread>` | no `offset`; now `cursor` |
290
- | `appConfiguration.getData` | `any[]` | `ListResult<any>` | |
291
- | `appConfiguration.getWidgets` | `{ apps }` | `ListResult<CollectionAppWidget>` | |
292
- | `asset.list` | `Asset[]` | `ListResult<Asset>` | no `offset` |
293
- | `asset.listAdmin` | `AdminListAssetsResponse { data, total, limit, offset }` | `ListResult<Asset>` | no `offset`; now `cursor` |
294
- | `asset.listForCollection` | `Asset[]` | `ListResult<Asset>` | |
295
- | `asset.listForProduct` | `Asset[]` | `ListResult<Asset>` | |
296
- | `asset.listForProof` | `Asset[]` | `ListResult<Asset>` | |
297
- | `attestation.list` | `AttestationResponse[]` | `ListResult<AttestationResponse>` | |
298
- | `attestations.list` | `{ attestations }` | `ListResult<Attestation>` | no `offset`; now `cursor` |
299
- | `attestations.publicContainerList` | `{ attestations, audience }` | `ListResult<Attestation> & { audience }` | no `offset`; now `cursor` |
300
- | `attestations.publicList` | `{ attestations, audience }` | `ListResult<Attestation> & { audience }` | no `offset`; now `cursor` |
301
- | `authKit.list` | `AuthKitConfig[]` | `ListResult<AuthKitConfig>` | |
302
- | `authKit.listTrustedDevices` | `{ devices: TrustedDevice[] }` | `ListResult<TrustedDevice>` | |
303
- | `batch.getBatchTags` | `BatchTag[]` | `ListResult<BatchTag>` | |
304
- | `batch.list` | `BatchResponse[]` | `ListResult<BatchResponse>` | |
305
- | `batch.searchInCollection` | `BatchResponse[]` | `ListResult<BatchResponse>` | |
382
+ | `adminCards.list` | `{ cards, hidden, layout }` | `ListResult<AdminCard> & { hidden, layout }` | always whole |
383
+ | `ai.agent.listTools` | `AgentToolsResponse { tools }` | `ListResult<AgentToolDefinition>` | always whole |
384
+ | `ai.skills.list` | `SkillsListResponse { skills }` | `ListResult<SkillDescriptor>` | always whole |
385
+ | `analytics.admin.events` | `{ source, limit, offset, sort, count, rows }` | `ListResult<Record<string, any>> & { source, sort }` | no `offset`, `sort`; now `cursor`, `orderBy` |
386
+ | `app.cases.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppCase>` | no `offset`, `sort`; now `cursor`, `orderBy` |
387
+ | `app.options.get` | `{ items, version, mode, total? } | { unchanged: true, version }` | `(ListResult<AppOption> & { version, mode }) | { unchanged: true, version }` | now `limit`, `cursor`; **one page now** |
388
+ | `app.records.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppRecord>` | no `offset`, `sort`; now `cursor`, `orderBy` |
389
+ | `app.records.match` | `{ data, total, strategy }` | `ListResult<MatchEntry> & { strategy }` | now `cursor`, `limit` |
390
+ | `app.records.resolveAll` | `{ records, total, context, truncated }` | `ListResult<ResolveAllEntry> & { context, truncated }` | now `cursor`, `limit` |
391
+ | `app.threads.list` | `{ data, pagination: { total, limit, offset, hasMore } }` | `ListResult<AppThread>` | no `offset`, `sort`; now `cursor`, `orderBy` |
392
+ | `appConfiguration.getData` | `any[]` | `ListResult<any>` | now `limit`, `cursor`; **one page now** |
393
+ | `appConfiguration.getWidgets` | `{ apps }` | `ListResult<CollectionAppWidget>` | always whole |
394
+ | `asset.list` | `Asset[]` | `ListResult<Asset>` | no `offset`; now `cursor`, `limit`; **one page now** |
395
+ | `asset.listAdmin` | `AdminListAssetsResponse { data, total, limit, offset }` | `ListResult<Asset>` | no `offset`, `sort`, `order`; now `cursor`, `orderBy` |
396
+ | `asset.listForCollection` | `Asset[]` | `ListResult<Asset>` | now `limit`, `cursor`; **one page now** |
397
+ | `asset.listForProduct` | `Asset[]` | `ListResult<Asset>` | now `limit`, `cursor`; **one page now** |
398
+ | `asset.listForProof` | `Asset[]` | `ListResult<Asset>` | now `limit`, `cursor`; **one page now** |
399
+ | `attestation.list` | `AttestationResponse[]` | `ListResult<AttestationResponse>` | now `limit`, `cursor`; **one page now** |
400
+ | `attestations.list` | `{ attestations }` | `ListResult<Attestation>` | no `offset`, `recordedAfter`, `recordedBefore`; now `cursor`, `recordedAt` |
401
+ | `attestations.publicContainerList` | `{ attestations, audience }` | `ListResult<Attestation> & { audience }` | no `offset`, `recordedAfter`, `recordedBefore`; now `cursor`, `recordedAt` |
402
+ | `attestations.publicList` | `{ attestations, audience }` | `ListResult<Attestation> & { audience }` | no `offset`, `recordedAfter`, `recordedBefore`; now `cursor`, `recordedAt` |
403
+ | `authKit.list` | `AuthKitConfig[]` | `ListResult<AuthKitConfig>` | now `limit`, `cursor`; **one page now** |
404
+ | `authKit.listTrustedDevices` | `{ devices: TrustedDevice[] }` | `ListResult<TrustedDevice>` | now `limit`, `cursor`; **one page now** |
405
+ | `batch.getBatchTags` | `BatchTag[]` | `ListResult<BatchTag>` | now `limit`, `cursor`; **one page now** |
406
+ | `batch.list` | `BatchResponse[]` | `ListResult<BatchResponse>` | now `limit`, `cursor`; **one page now** |
407
+ | `batch.searchInCollection` | `BatchResponse[]` | `ListResult<BatchResponse>` | no `search`; now `q`, `cursor`, `limit` |
306
408
  | `bookings.blocks.list` | `PaginatedResponse<BookingAllocation>` | `ListResult<BookingAllocation> (with count)` | no `offset`; now `cursor` |
307
- | `bookings.list` | `PaginatedResponse<Booking> = { data, pagination: { total, limit, offset, hasMore } }` | `ListResult<Booking> (with count)` | no `offset`; now `cursor` |
308
- | `bookings.mine` | `PaginatedResponse<Booking>` | `ListResult<Booking> (with count)` | no `offset`; now `cursor` |
309
- | `bookings.slots.list` | `PaginatedResponse<BookingSlot>` | `ListResult<BookingSlot> (with count)` | no `offset`; now `cursor` |
409
+ | `bookings.list` | `PaginatedResponse<Booking> = { data, pagination: { total, limit, offset, hasMore } }` | `ListResult<Booking> (with count)` | no `offset`, `sort`; now `cursor`, `orderBy` |
410
+ | `bookings.mine` | `PaginatedResponse<Booking>` | `ListResult<Booking> (with count)` | no `offset`, `sort`; now `cursor`, `orderBy` |
411
+ | `bookings.slots.list` | `PaginatedResponse<BookingSlot>` | `ListResult<BookingSlot> (with count)` | no `offset`, `sort`; now `cursor`, `orderBy` |
310
412
  | `broadcasts.list` | `BroadcastList = { items, limit, offset }` | `ListResult<BroadcastRecord>` | no `offset`; now `cursor` |
311
413
  | `broadcasts.recipients` | `{ items, total, limit, offset, note? }` | `ListResult<Recipient> & { note?: string } (with count)` | no `offset`; now `cursor` |
312
- | `claimSet.getAll` | `any[]` | `ListResult<any>` | |
313
- | `claimSet.getAssignedTags` | `any (the claim set with its tags in tags)` | `ListResult<any> & Record<string, any>` | |
314
- | `claimSet.ranges.list` | `ClaimSetRange[]` | `ListResult<ClaimSetRange>` | |
414
+ | `claimSet.getAll` | `any[]` | `ListResult<any>` | now `limit`, `cursor`; **one page now** |
415
+ | `claimSet.getAssignedTags` | `any (the claim set with its tags in tags)` | `ListResult<any> & Record<string, any>` | now `limit`, `cursor`; **one page now** |
416
+ | `claimSet.ranges.list` | `ClaimSetRange[]` | `ListResult<ClaimSetRange>` | now `limit`, `cursor`; **one page now** |
315
417
  | `claimSet.ranges.tags` | `ClaimSetRangeTagsPage { tags, next }` | `ListResult<ClaimSetRangeTag>` | no `from`; now `cursor` |
316
- | `collection.getUsers` | `CollectionUser[]` | `ListResult<CollectionUser>` | |
317
- | `collection.list` | `CollectionResponse[]` | `ListResult<CollectionResponse>` | |
318
- | `comms.listMethods` | `{ ok: true, methods: CommMethod[] }` | `ListResult<CommMethod>` | |
319
- | `comms.queryByUser` | `CommunicationEvent[]` | `ListResult<CommunicationEvent>` | |
320
- | `comms.queryRecipientIds` | `RecipientId[]` | `ListResult<RecipientId>` | |
321
- | `conditions.list` | `SavedCondition[]` | `ListResult<SavedCondition>` | |
322
- | `config.getFields` | `FieldDefinition[]` | `ListResult<FieldDefinition>` | |
323
- | `config.getProofTypes` | `ProofTypeDefinition[]` | `ListResult<ProofTypeDefinition>` | |
418
+ | `collection.getUsers` | `CollectionUser[]` | `ListResult<CollectionUser>` | now `limit`, `cursor`; **one page now** |
419
+ | `collection.list` | `CollectionResponse[]` | `ListResult<CollectionResponse>` | now `limit`, `cursor`; **one page now** |
420
+ | `comms.listMethods` | `{ ok: true, methods: CommMethod[] }` | `ListResult<CommMethod>` | always whole |
421
+ | `comms.queryByUser` | `CommunicationEvent[]` | `ListResult<CommunicationEvent>` | now `cursor`, `limit` |
422
+ | `comms.queryRecipientIds` | `RecipientId[]` | `ListResult<RecipientId>` | now `cursor`, `limit` |
423
+ | `conditions.list` | `SavedCondition[]` | `ListResult<SavedCondition>` | now `limit`, `cursor`; **one page now** |
424
+ | `config.getFields` | `FieldDefinition[]` | `ListResult<FieldDefinition>` | always whole |
425
+ | `config.getProofTypes` | `ProofTypeDefinition[]` | `ListResult<ProofTypeDefinition>` | always whole |
324
426
  | `contact.findDuplicates` | `{ pairs, scanned, more }` | `ListResult<ContactDuplicatePair> & { scanned: number }` | no `offset`; now `cursor` |
325
427
  | `contact.list` | `ContactListResponse = { items, limit, offset }` | `ListResult<Contact>` | no `offset`; now `cursor` |
326
- | `contact.search` | `ContactSearchResponse = { items, limit, offset }` | `ListResult<Contact>` | no `offset`; now `cursor` |
327
- | `containers.findForItem` | `{ items: ContainerItem[], containers: Container[] }` | `ListResult<ContainerItem> & { containers: Container[] }` | |
428
+ | `contact.search` | `ContactSearchResponse = { items, limit, offset }` | `ListResult<Contact>` | no `offset`, `createdFrom`, `createdTo`; now `cursor`, `createdAt` |
429
+ | `containers.findForItem` | `{ items: ContainerItem[], containers: Container[] }` | `ListResult<ContainerItem> & { containers: Container[] }` | now `limit`, `cursor`; **one page now** |
328
430
  | `containers.list` | `ListContainersResponse = { containers, limit, offset }` | `ListResult<Container>` | no `offset`; now `cursor` |
329
431
  | `containers.listItems` | `ContainerItemsResponse = { items, limit, offset }` | `ListResult<ContainerItem>` | no `offset`; now `cursor` |
330
432
  | `containers.publicList` | `PublicListContainersResponse = { containers }` | `ListResult<Container>` | no `offset`; now `cursor` |
331
- | `containers.publicListItems` | `ContainerItemsResponse = { items, limit, offset }` | `ListResult<ContainerItem>` | no `limit`, `offset` |
433
+ | `containers.publicListItems` | `ContainerItemsResponse = { items, limit, offset }` | `ListResult<ContainerItem>` | no `limit`, `offset`; now `limit`, `cursor`; **one page now** |
332
434
  | `crate.list` | `ListCratesResponse = { items, hasMore, lastId }` | `ListResult<Crate>` | no `startAfter`; now `cursor` |
333
- | `dpp.groups` | `DppGroup[] (the function unwrapped { groups })` | `ListResult<DppGroup>` | |
435
+ | `dpp.groups` | `DppGroup[] (the function unwrapped { groups })` | `ListResult<DppGroup>` | always whole |
334
436
  | `dpp.passports.list` | `DppPassport[] (unwrapped { passports })` | `ListResult<DppPassport>` | no `offset`; now `cursor` |
335
- | `dpp.passports.versions` | `DppPassportVersion[] (unwrapped { versions })` | `ListResult<DppPassportVersion>` | |
336
- | `dpp.registry.list` | `DppRegistry[] (unwrapped { registries })` | `ListResult<DppRegistry>` | |
337
- | `dpp.tasks.list` | `DppTask[] (unwrapped { tasks })` | `ListResult<DppTask>` | |
338
- | `facets.list` | `FacetListResponse = { items }` | `ListResult<FacetDefinition>` | |
339
- | `facets.listValues` | `FacetValueListResponse = { facet, items }` | `ListResult<FacetValue> & { facet: FacetDefinition }` | |
340
- | `facets.namespaces` | `FacetNamespaceListResponse = { namespaces: string[] }` | `ListResult<string>` | |
341
- | `facets.publicList` | `FacetListResponse = { items }` | `ListResult<FacetDefinition>` | |
342
- | `facets.publicListValues` | `FacetValueListResponse = { facet, items }` | `ListResult<FacetValue> & { facet: FacetDefinition }` | |
343
- | `facets.publicNamespaces` | `FacetNamespaceListResponse = { namespaces: string[] }` | `ListResult<string>` | |
344
- | `facets.publicQuery` | `FacetQueryResponse = { items, buckets, meta? }` | `ListResult<{ facet, values }> & { buckets: FacetBucket[], meta? }` | |
345
- | `facets.query` | `FacetQueryResponse = { items, buckets, meta? }` | `ListResult<{ facet, values }> & { buckets: FacetBucket[], meta? }` | |
346
- | `files.list` | `{ ok: true, files: FileRecord[] }` | `ListResult<FileRecord>` | |
347
- | `form.list` | `any[]` | `ListResult<any>` | |
348
- | `integrations.listConnectorActions` | `{ actions }` | `ListResult<{ name, title, description?, visibility, input?, output? }>` | |
349
- | `integrations.listConnectors` | `{ connectors }` | `ListResult<InstalledConnector>` | |
350
- | `integrations.listEntityRuns` | `{ runs, nextCursor? }` | `ListResult<FlowRun>` | |
437
+ | `dpp.passports.versions` | `DppPassportVersion[] (unwrapped { versions })` | `ListResult<DppPassportVersion>` | now `limit`, `cursor`; **one page now** |
438
+ | `dpp.registry.list` | `DppRegistry[] (unwrapped { registries })` | `ListResult<DppRegistry>` | always whole |
439
+ | `dpp.tasks.list` | `DppTask[] (unwrapped { tasks })` | `ListResult<DppTask>` | now `limit`, `cursor`; **one page now** |
440
+ | `facets.list` | `FacetListResponse = { items }` | `ListResult<FacetDefinition>` | always whole |
441
+ | `facets.listValues` | `FacetValueListResponse = { facet, items }` | `ListResult<FacetValue> & { facet: FacetDefinition }` | now `limit`, `cursor`; **one page now** |
442
+ | `facets.namespaces` | `FacetNamespaceListResponse = { namespaces: string[] }` | `ListResult<string>` | always whole |
443
+ | `facets.publicList` | `FacetListResponse = { items }` | `ListResult<FacetDefinition>` | always whole |
444
+ | `facets.publicListValues` | `FacetValueListResponse = { facet, items }` | `ListResult<FacetValue> & { facet: FacetDefinition }` | now `limit`, `cursor`; **one page now** |
445
+ | `facets.publicNamespaces` | `FacetNamespaceListResponse = { namespaces: string[] }` | `ListResult<string>` | always whole |
446
+ | `facets.publicQuery` | `FacetQueryResponse = { items, buckets, meta? }` | `ListResult<{ facet, values }> & { buckets: FacetBucket[], meta? }` | no `query.search`, `query.createdAfter`, `query.createdBefore`, `query.updatedAfter`, `query.updatedBefore`; now `q`, `createdAt`, `updatedAt`; always whole |
447
+ | `facets.query` | `FacetQueryResponse = { items, buckets, meta? }` | `ListResult<{ facet, values }> & { buckets: FacetBucket[], meta? }` | no `query.search`, `query.createdAfter`, `query.createdBefore`, `query.updatedAfter`, `query.updatedBefore`; now `q`, `createdAt`, `updatedAt`; always whole |
448
+ | `files.list` | `{ ok: true, files: FileRecord[] }` | `ListResult<FileRecord>` | now `cursor`, `limit` |
449
+ | `form.list` | `any[]` | `ListResult<any>` | now `limit`, `cursor`; **one page now** |
450
+ | `integrations.listConnectorActions` | `{ actions }` | `ListResult<{ name, title, description?, visibility, input?, output? }>` | always whole |
451
+ | `integrations.listConnectors` | `{ connectors }` | `ListResult<InstalledConnector>` | always whole |
452
+ | `integrations.listEntityRuns` | `{ runs, nextCursor? }` | `ListResult<FlowRun>` | now `cursor`, `limit` |
351
453
  | `integrations.listFailed` | `{ direction, items, nextCursor }` | `ListResult<FailedRecord> & { direction: FlowDirection }` | |
352
- | `integrations.listFlows` | `{ flows }` | `ListResult<IntegrationFlow>` | |
353
- | `integrations.listRecordTypes` | `{ recordTypes }` | `ListResult<RecordTypeInfo>` | |
454
+ | `integrations.listFlows` | `{ flows }` | `ListResult<IntegrationFlow>` | now `limit`, `cursor`; **one page now** |
455
+ | `integrations.listRecordTypes` | `{ recordTypes }` | `ListResult<RecordTypeInfo>` | always whole |
354
456
  | `integrations.listRunItems` | `{ items, nextCursor? }` | `ListResult<FlowRunItem>` | |
355
457
  | `integrations.listRuns` | `{ runs, nextCursor? }` | `ListResult<FlowRun>` | |
356
458
  | `interactions.list` | `{ items, limit, offset }` | `ListResult<InteractionTypeRecord>` | no `offset`; now `cursor` |
357
459
  | `interactions.publicList` | `{ items, limit, offset }` | `ListResult<InteractionTypeRecord>` | no `offset`; now `cursor` |
358
- | `interactions.publicMyInteractions` | `InteractionEventRow[]` | `ListResult<InteractionEventRow>` | |
359
- | `interactions.query` | `InteractionEventRow[]` | `ListResult<InteractionEventRow>` | |
360
- | `jobs.listJobs` | `{ items, limit, offset }` | `ListResult<Job>` | no `offset`; now `cursor` |
460
+ | `interactions.publicMyInteractions` | `InteractionEventRow[]` | `ListResult<InteractionEventRow>` | now `cursor`, `limit` |
461
+ | `interactions.query` | `InteractionEventRow[]` | `ListResult<InteractionEventRow>` | no `order`, `include`; now `cursor`, `orderBy`, `expand`, `limit` |
462
+ | `jobs.list` | `{ items, limit, offset }` | `ListResult<Job>` | no `offset`; now `cursor` |
361
463
  | `journeys.list` | `{ items, limit, offset }` | `ListResult<JourneyRecord>` | no `offset`; now `cursor` |
362
- | `journeysAnalytics.recipients` | `string[]` | `ListResult<string>` | |
363
- | `knowledge.listSets` | `KnowledgeSet[]` | `ListResult<KnowledgeSet>` | |
364
- | `knowledge.listSources` | `KnowledgeSource[]` | `ListResult<KnowledgeSource>` | |
365
- | `knowledge.publicSearch` | `KnowledgeSearchResponse { query, results, mode }` | `ListResult<KnowledgeSearchResult> & Pick<KnowledgeSearchResponse, 'query' | 'mode'>` | |
366
- | `knowledge.search` | `{ query, results, mode }` | `ListResult<KnowledgeSearchResult> & { query, mode }` | |
367
- | `location.search` | `{ items, count }` | `ListResult<Location>` | |
368
- | `lots.list` | `Lot[] (the SDK unwrapped { lots })` | `ListResult<Lot>` | |
464
+ | `journeysAnalytics.recipients` | `string[]` | `ListResult<string>` | now `cursor`, `limit` |
465
+ | `knowledge.listSets` | `KnowledgeSet[]` | `ListResult<KnowledgeSet>` | now `limit`, `cursor`; **one page now** |
466
+ | `knowledge.listSources` | `KnowledgeSource[]` | `ListResult<KnowledgeSource>` | now `limit`, `cursor`; **one page now** |
467
+ | `knowledge.publicSearch` | `KnowledgeSearchResponse { query, results, mode }` | `ListResult<KnowledgeSearchResult> & Pick<KnowledgeSearchResponse, 'query' | 'mode'>` | no `query`, `k`; now `q`, `limit`, `cursor` |
468
+ | `knowledge.search` | `{ query, results, mode }` | `ListResult<KnowledgeSearchResult> & { query, mode }` | no `query`, `k`; now `q`, `limit`, `cursor` |
469
+ | `location.search` | `{ items, count }` | `ListResult<Location>` | no `sort`; now `cursor`, `orderBy`, `limit` |
470
+ | `lots.list` | `Lot[] (the SDK unwrapped { lots })` | `ListResult<Lot>` | no `search`; now `limit`, `cursor`, `q`; **one page now** |
369
471
  | `lots.listProducts` | `{ products, total, page, limit }` | `ListResult<LotProductSummary>` | no `page`; now `cursor` |
370
- | `lots.publicList` | `Lot[] (the SDK unwrapped { lots })` | `ListResult<Lot>` | |
472
+ | `lots.publicList` | `Lot[] (the SDK unwrapped { lots })` | `ListResult<Lot>` | no `search`; now `limit`, `cursor`, `q`; **one page now** |
371
473
  | `lots.publicListProducts` | `{ products, total, page, limit }` | `ListResult<LotProductSummary>` | no `page`; now `cursor` |
372
474
  | `loyalty.getMemberHistory` | `{ items, limit, offset }` | `ListResult<LoyaltyTransaction>` | no `offset`; now `cursor` |
373
- | `loyalty.list` | `LoyaltyScheme[]` | `ListResult<LoyaltyScheme>` | |
374
- | `loyalty.listEarningRules` | `LoyaltyEarningRule[]` | `ListResult<LoyaltyEarningRule>` | |
475
+ | `loyalty.list` | `LoyaltyScheme[]` | `ListResult<LoyaltyScheme>` | now `limit`, `cursor`; **one page now** |
476
+ | `loyalty.listEarningRules` | `LoyaltyEarningRule[]` | `ListResult<LoyaltyEarningRule>` | now `limit`, `cursor`; **one page now** |
375
477
  | `loyalty.listMembers` | `{ items, limit, offset }` | `ListResult<LoyaltyMember>` | no `offset`; now `cursor` |
376
- | `loyalty.publicGetMe` | `LoyaltySchemeWithMembership[]` | `ListResult<LoyaltySchemeWithMembership>` | |
478
+ | `loyalty.publicGetMe` | `LoyaltySchemeWithMembership[]` | `ListResult<LoyaltySchemeWithMembership>` | now `limit`, `cursor`; **one page now** |
377
479
  | `loyalty.publicGetMineHistory` | `{ items, limit, offset }` | `ListResult<LoyaltyTransaction>` | no `offset`; now `cursor` |
378
- | `loyalty.publicList` | `LoyaltyScheme[]` | `ListResult<LoyaltyScheme>` | |
379
- | `loyalty.publicListEarningRules` | `LoyaltyEarningRule[]` | `ListResult<LoyaltyEarningRule>` | |
380
- | `nfc.lookupTag` | `NfcTagInfo[]` | `ListResult<NfcTagInfo>` | |
480
+ | `loyalty.publicList` | `LoyaltyScheme[]` | `ListResult<LoyaltyScheme>` | now `limit`, `cursor`; **one page now** |
481
+ | `loyalty.publicListEarningRules` | `LoyaltyEarningRule[]` | `ListResult<LoyaltyEarningRule>` | now `limit`, `cursor`; **one page now** |
482
+ | `nfc.lookupTag` | `NfcTagInfo[]` | `ListResult<NfcTagInfo>` | always whole |
381
483
  | `order.getItems` | `{ items, limit, offset }` | `ListResult<OrderItem>` | no `offset`; now `cursor` |
382
- | `order.getLocationHistory` | `{ orderRef, orderId, locations, count }` | `ListResult<LocationScan> & { orderRef: string; orderId: string }` | |
383
- | `order.getTimeline` | `{ orderRef, orderId, timeline, count }` | `ListResult<TagScanEvent> & { orderRef: string; orderId: string }` | |
384
- | `order.list` | `{ orders, limit, offset }` | `ListResult<Order>` | no `offset`; now `cursor` |
385
- | `order.query` | `{ orders, limit, offset }` | `ListResult<Order>` | no `offset`; now `cursor` |
386
- | `partner.claimSets` | `PartnerClaimSet[]` | `ListResult<PartnerClaimSet>` | |
387
- | `partner.list` | `Partner[]` | `ListResult<Partner>` | |
388
- | `partner.lookupTags` | `PartnerTagHit[]` | `ListResult<PartnerTagHit>` | |
389
- | `partner.tagAttempts` | `ClientErrorEvent[]` | `ListResult<ClientErrorEvent>` | |
390
- | `products.list` | `ProductResponse[]` | `ListResult<ProductResponse>` | |
391
- | `products.listAssets` | `unknown` | `ListResult<AssetResponse>` | |
392
- | `products.query` | `{ items, page: { limit, offset, returned, total, hasMore, nextCursor }, meta }` | `ListResult<ProductResponse> & { meta?: ProductQueryMeta }` | no `page.limit`, `page.offset`, `page.cursor`; now `limit`, `cursor` |
393
- | `proof.findByProduct` | `ProofResponse[]` | `ListResult<ProofResponse>` | no `lastCursor`, `page`, `perPage`; now `limit` |
394
- | `proof.getByBatch` | `ProofResponse[]` | `ListResult<ProofResponse>` | |
395
- | `proof.getByProduct` | `ProofResponse[]` | `ListResult<ProofResponse>` | |
396
- | `proof.getByUser` | `ProofResponse[]` | `ListResult<ProofResponse>` | |
397
- | `proof.list` | `ProofResponse[]` | `ListResult<ProofResponse>` | |
398
- | `proof.listGrants` | `ProofGrant[]` | `ListResult<ProofGrant>` | |
399
- | `secrets.list` | `SecretList { secrets }` | `ListResult<SecretMeta>` | |
400
- | `secrets.listOwn` | `SecretList { secrets }` | `ListResult<SecretMeta>` | |
484
+ | `order.getLocationHistory` | `{ orderRef, orderId, locations, count }` | `ListResult<LocationScan> & { orderRef: string; orderId: string }` | now `cursor`, `limit` |
485
+ | `order.getTimeline` | `{ orderRef, orderId, timeline, count }` | `ListResult<TagScanEvent> & { orderRef: string; orderId: string }` | now `cursor`, `limit` |
486
+ | `order.list` | `{ orders, limit, offset }` | `ListResult<Order>` | no `offset`, `includeItems`; now `cursor`, `expand` |
487
+ | `order.query` | `{ orders, limit, offset }` | `ListResult<Order>` | no `offset`, `query.sortBy`, `query.sortOrder`, `query.createdAfter`, `query.createdBefore`, `query.updatedAfter`, `query.updatedBefore`, `includeItems`; now `cursor`, `orderBy`, `createdAt`, `updatedAt`, `expand` |
488
+ | `partner.claimSets` | `PartnerClaimSet[]` | `ListResult<PartnerClaimSet>` | now `limit`, `cursor`; **one page now** |
489
+ | `partner.list` | `Partner[]` | `ListResult<Partner>` | now `limit`, `cursor`; **one page now** |
490
+ | `partner.lookupTags` | `PartnerTagHit[]` | `ListResult<PartnerTagHit>` | always whole |
491
+ | `partner.tagAttempts` | `ClientErrorEvent[]` | `ListResult<ClientErrorEvent>` | now `limit`, `cursor` |
492
+ | `products.list` | `ProductResponse[]` | `ListResult<ProductResponse>` | now `limit`, `cursor`, `expand`; **one page now** |
493
+ | `products.listAssets` | `unknown` | `ListResult<AssetResponse>` | now `limit`, `cursor`; **one page now** |
494
+ | `products.query` | `{ items, page: { limit, offset, returned, total, hasMore, nextCursor }, meta }` | `ListResult<ProductResponse> & { meta?: ProductQueryMeta }` | no `page.limit`, `page.offset`, `page.cursor`, `query.search`, `sort`, `query.createdAfter`, `query.createdBefore`, `query.updatedAfter`, `query.updatedBefore`; now `limit`, `cursor`, `q`, `orderBy`, `createdAt`, `updatedAt`, `expand` |
495
+ | `proof.findByProduct` | `ProofResponse[]` | `ListResult<ProofResponse>` | no `lastCursor`, `page`, `perPage`, `includes`; now `limit`, `cursor`, `expand` |
496
+ | `proof.getByBatch` | `ProofResponse[]` | `ListResult<ProofResponse>` | now `limit`, `cursor`; **one page now** |
497
+ | `proof.getByProduct` | `ProofResponse[]` | `ListResult<ProofResponse>` | now `limit`, `cursor`; **one page now** |
498
+ | `proof.getByUser` | `ProofResponse[]` | `ListResult<ProofResponse>` | now `limit`, `cursor`; **one page now** |
499
+ | `proof.list` | `ProofResponse[]` | `ListResult<ProofResponse>` | no `include`; now `limit`, `cursor`, `expand`; **one page now** |
500
+ | `proof.listGrants` | `ProofGrant[]` | `ListResult<ProofGrant>` | now `limit`, `cursor`; **one page now** |
501
+ | `secrets.list` | `SecretList { secrets }` | `ListResult<SecretMeta>` | always whole |
502
+ | `secrets.listOwn` | `SecretList { secrets }` | `ListResult<SecretMeta>` | always whole |
401
503
  | `segments.list` | `{ items, limit, offset }` | `ListResult<SegmentRecord>` | no `offset`; now `cursor` |
402
504
  | `segments.recipients` | `{ items, limit, offset, total, note? }` | `ListResult<Recipient> & { note?: string }` | no `offset`; now `cursor` |
403
- | `serviceAccounts.list` | `{ serviceAccounts, access }` | `ListResult<ServiceAccount> & { access: ServiceAccountAccess[] }` | |
505
+ | `serviceAccounts.list` | `{ serviceAccounts, access }` | `ListResult<ServiceAccount> & { access: ServiceAccountAccess[] }` | now `limit`, `cursor`; **one page now** |
404
506
  | `shop.admin.listOrders` | `{ items, total, limit, offset }` | `ListResult<ShopAdminOrder>` | no `offset`; now `cursor` |
405
507
  | `shop.admin.listPrices` | `{ items, total, limit, offset }` | `ListResult<ShopPrice>` | no `offset`; now `cursor` |
406
508
  | `shop.myOrders` | `{ items, total, limit, offset }` | `ListResult<ShopBuyerOrder>` | no `offset`; now `cursor` |
407
- | `shop.products` | `{ currency, items }` | `ListResult<ShopProduct> & { currency: string }` | |
509
+ | `shop.products` | `{ currency, items }` | `ListResult<ShopProduct> & { currency: string }` | now `limit`, `cursor`; **one page now** |
408
510
  | `subscriptions.admin.list` | `{ items, total, limit, offset }` | `ListResult<Membership>` | no `offset`; now `cursor` |
409
511
  | `subscriptions.admin.listPlans` | `{ items, total, limit, offset }` | `ListResult<PlanWithPrices>` | no `offset`; now `cursor` |
410
- | `subscriptions.mine` | `MySubscription[]` | `ListResult<MySubscription>` | |
411
- | `subscriptions.plans` | `PublicPlan[]` | `ListResult<PublicPlan>` | |
412
- | `tags.byRef` | `{ tags }` | `ListResult<Tag>` | |
512
+ | `subscriptions.mine` | `MySubscription[]` | `ListResult<MySubscription>` | now `limit`, `cursor`; **one page now** |
513
+ | `subscriptions.plans` | `PublicPlan[]` | `ListResult<PublicPlan>` | now `limit`, `cursor`; **one page now** |
514
+ | `tags.byRef` | `{ tags }` | `ListResult<Tag>` | now `limit`, `cursor`; **one page now** |
413
515
  | `tags.list` | `{ tags, limit, offset }` | `ListResult<Tag>` | no `offset`; now `cursor` |
414
- | `tags.lookupTags` | `{ count, tags, embedded }` | `ListResult<Tag> & { count: number; embedded: TagEmbedded }` | |
415
- | `tags.lookupTagsQuery` | `{ count, tags, embedded }` | `ListResult<Tag> & { count: number; embedded: TagEmbedded }` | |
416
- | `tags.publicByRef` | `{ tags, embedded }` | `ListResult<Tag> & { embedded: TagEmbedded }` | |
417
- | `tags.publicByRefPost` | `{ tags, embedded }` | `ListResult<Tag> & { embedded: TagEmbedded }` | |
418
- | `template.getAll` | `Template[]` | `ListResult<Template>` | |
419
- | `template.getAllowed` | `TemplatePublic[]` | `ListResult<TemplatePublic>` | |
420
- | `template.getAllowedGlobal` | `TemplatePublic[]` | `ListResult<TemplatePublic>` | |
516
+ | `tags.lookupTags` | `{ count, tags, embedded }` | `ListResult<Tag> & { count: number; embedded: TagEmbedded }` | always whole |
517
+ | `tags.lookupTagsQuery` | `{ count, tags, embedded }` | `ListResult<Tag> & { count: number; embedded: TagEmbedded }` | always whole |
518
+ | `tags.publicByRef` | `{ tags, embedded }` | `ListResult<Tag> & { embedded: TagEmbedded }` | now `limit`, `cursor`; **one page now** |
519
+ | `tags.publicByRefPost` | `{ tags, embedded }` | `ListResult<Tag> & { embedded: TagEmbedded }` | now `limit`, `cursor`; **one page now** |
520
+ | `template.getAll` | `Template[]` | `ListResult<Template>` | now `limit`, `cursor`; **one page now** |
521
+ | `template.getAllowed` | `TemplatePublic[]` | `ListResult<TemplatePublic>` | now `limit`, `cursor`; **one page now** |
522
+ | `template.getAllowedGlobal` | `TemplatePublic[]` | `ListResult<TemplatePublic>` | now `limit`, `cursor`; **one page now** |
421
523
  | `translations.list` | `{ items, total?, limit?, offset? }` | `ListResult<TranslationRecord>` | no `offset`; now `cursor` |
422
- | `userAppData.list` | `any[]` | `ListResult<any>` | |
423
- | `userGroups.history` | `UserGroupChange[]` | `ListResult<UserGroupChange>` | |
424
- | `userGroups.list` | `UserGroup[]` | `ListResult<UserGroup>` | |
425
- | `userGroups.members` | `UserGroupMember[]` | `ListResult<UserGroupMember>` | |
426
- | `userGroups.ofUser` | `UserGroupRef[]` | `ListResult<UserGroupRef>` | |
427
- | `variant.list` | `VariantResponse[]` | `ListResult<VariantResponse>` | |
428
- | `wallet.list` | `{ ok: true, passes }` | `ListResult<WalletPass>` | |
429
- | `wallet.mine` | `{ ok: true, passes }` | `ListResult<WalletPassSummary>` | |
524
+ | `userAppData.list` | `any[]` | `ListResult<any>` | now `limit`, `cursor`; **one page now** |
525
+ | `userGroups.history` | `UserGroupChange[]` | `ListResult<UserGroupChange>` | now `cursor`, `limit` |
526
+ | `userGroups.list` | `UserGroup[]` | `ListResult<UserGroup>` | now `limit`, `cursor`; **one page now** |
527
+ | `userGroups.members` | `UserGroupMember[]` | `ListResult<UserGroupMember>` | now `limit`, `cursor`; **one page now** |
528
+ | `userGroups.ofUser` | `UserGroupRef[]` | `ListResult<UserGroupRef>` | now `limit`, `cursor`; **one page now** |
529
+ | `variant.list` | `VariantResponse[]` | `ListResult<VariantResponse>` | now `limit`, `cursor`; **one page now** |
530
+ | `wallet.list` | `{ ok: true, passes }` | `ListResult<WalletPass>` | now `limit`, `cursor`; **one page now** |
531
+ | `wallet.mine` | `{ ok: true, passes }` | `ListResult<WalletPassSummary>` | now `limit`, `cursor`; **one page now** |
430
532
  <!-- upgrade-table:lists:end -->