@proveanything/smartlinks 2.1.24 → 2.1.28

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.
@@ -131,8 +131,14 @@ export declare namespace claimSet {
131
131
  tag: ClaimSetRangeTag;
132
132
  range: ClaimSetRange;
133
133
  }>;
134
- /** The printer file (CSV text in `csv`). Carries the tags' keys: don't keep it around. */
135
- function exportFile(scope: ClaimSetScope, claimSetId: string, rangeId: string): Promise<ClaimSetRangeFile>;
134
+ /**
135
+ * The printer file (CSV text in `csv`). Carries the tags' keys: don't keep it around. A computed set's
136
+ * run downloads in parts: `from` / `to` are indexes inside the range, up to 200,000 tags a file.
137
+ */
138
+ function exportFile(scope: ClaimSetScope, claimSetId: string, rangeId: string, part?: {
139
+ from?: number;
140
+ to?: number;
141
+ }): Promise<ClaimSetRangeFile>;
136
142
  /** The manufacturer's instruction sheet: PDF (base64) or Markdown. */
137
143
  function instructions(scope: ClaimSetScope, claimSetId: string, rangeId: string, format?: 'pdf' | 'md'): Promise<ClaimSetRangeFile>;
138
144
  /** The manufacturer's file back: check it (commit false), then write the chip UIDs (commit true). */
@@ -228,9 +228,17 @@ export var claimSet;
228
228
  return put(`${rangesBase(scope, claimSetId)}/${encodeURIComponent(rangeId)}/tags/${encodeURIComponent(code)}`, params);
229
229
  }
230
230
  ranges.recordTag = recordTag;
231
- /** The printer file (CSV text in `csv`). Carries the tags' keys: don't keep it around. */
232
- async function exportFile(scope, claimSetId, rangeId) {
233
- return request(`${rangesBase(scope, claimSetId)}/${encodeURIComponent(rangeId)}/export?as=json`);
231
+ /**
232
+ * The printer file (CSV text in `csv`). Carries the tags' keys: don't keep it around. A computed set's
233
+ * run downloads in parts: `from` / `to` are indexes inside the range, up to 200,000 tags a file.
234
+ */
235
+ async function exportFile(scope, claimSetId, rangeId, part) {
236
+ const q = new URLSearchParams({ as: 'json' });
237
+ if (part && part.from !== undefined)
238
+ q.set('from', String(part.from));
239
+ if (part && part.to !== undefined)
240
+ q.set('to', String(part.to));
241
+ return request(`${rangesBase(scope, claimSetId)}/${encodeURIComponent(rangeId)}/export?${q.toString()}`);
234
242
  }
235
243
  ranges.exportFile = exportFile;
236
244
  /** The manufacturer's instruction sheet: PDF (base64) or Markdown. */
@@ -67,7 +67,7 @@ export declare namespace containers {
67
67
  *
68
68
  * @param collectionId - Collection context
69
69
  * @param params - `itemType` and `itemId` are required
70
- * @returns `{ containers: Container[] }`
70
+ * @returns `{ items, containers }`: the current membership rows and those containers
71
71
  *
72
72
  * @example
73
73
  * ```typescript
@@ -93,7 +93,7 @@ export var containers;
93
93
  *
94
94
  * @param collectionId - Collection context
95
95
  * @param params - `itemType` and `itemId` are required
96
- * @returns `{ containers: Container[] }`
96
+ * @returns `{ items, containers }`: the current membership rows and those containers
97
97
  *
98
98
  * @example
99
99
  * ```typescript
@@ -11,6 +11,8 @@ export { form } from "./form.js";
11
11
  export { authKit } from "./authKit.js";
12
12
  export { claimSet } from "./claimSet.js";
13
13
  export { partner } from "./partner.js";
14
+ export { tagCodes } from "./tagCodes.js";
15
+ export { places } from "./places.js";
14
16
  export { errors } from "./errors.js";
15
17
  export { crate } from "./crate.js";
16
18
  export { batch } from "./batch.js";
@@ -25,6 +27,7 @@ export { jobs } from "./jobs.js";
25
27
  export { segments } from "./segments.js";
26
28
  export { userGroups } from "./userGroups.js";
27
29
  export { conditions } from "./conditions.js";
30
+ export { wallet } from "./wallet.js";
28
31
  export { operations } from "./operations.js";
29
32
  export { journeys } from "./journeys.js";
30
33
  export { journeysAnalytics } from "./journeysAnalytics.js";
package/dist/api/index.js CHANGED
@@ -13,6 +13,8 @@ export { form } from "./form.js";
13
13
  export { authKit } from "./authKit.js";
14
14
  export { claimSet } from "./claimSet.js";
15
15
  export { partner } from "./partner.js";
16
+ export { tagCodes } from "./tagCodes.js";
17
+ export { places } from "./places.js";
16
18
  export { errors } from "./errors.js";
17
19
  export { crate } from "./crate.js";
18
20
  export { batch } from "./batch.js";
@@ -27,6 +29,7 @@ export { jobs } from "./jobs.js";
27
29
  export { segments } from "./segments.js";
28
30
  export { userGroups } from "./userGroups.js";
29
31
  export { conditions } from "./conditions.js";
32
+ export { wallet } from "./wallet.js";
30
33
  export { operations } from "./operations.js";
31
34
  export { journeys } from "./journeys.js";
32
35
  export { journeysAnalytics } from "./journeysAnalytics.js";
@@ -0,0 +1,16 @@
1
+ import { PlaceMoveItem, PlaceMoveResult } from "../types/index.js";
2
+ /**
3
+ * Moving things between places (docs/tag-codes.md, "Moving things"). The one way every app moves things, so a move
4
+ * made in one shows in all. Admin only.
5
+ */
6
+ export declare namespace places {
7
+ /**
8
+ * Move items (by membership), chips without an item (by membership) or containers (re-parented) into `to`, or out
9
+ * of every place with `to: null`. Each move leaves a history line on what moved. Up to 500 at a time.
10
+ */
11
+ function move(collectionId: string, params: {
12
+ to: string | null;
13
+ items: PlaceMoveItem[];
14
+ note?: string;
15
+ }): Promise<PlaceMoveResult>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import { post } from "../http.js";
2
+ /**
3
+ * Moving things between places (docs/tag-codes.md, "Moving things"). The one way every app moves things, so a move
4
+ * made in one shows in all. Admin only.
5
+ */
6
+ export var places;
7
+ (function (places) {
8
+ /**
9
+ * Move items (by membership), chips without an item (by membership) or containers (re-parented) into `to`, or out
10
+ * of every place with `to: null`. Each move leaves a history line on what moved. Up to 500 at a time.
11
+ */
12
+ async function move(collectionId, params) {
13
+ return post(`/admin/collection/${encodeURIComponent(collectionId)}/places/move`, params);
14
+ }
15
+ places.move = move;
16
+ })(places || (places = {}));
@@ -0,0 +1,17 @@
1
+ import { TagCodeRef, TagCodeAttachRequest, TagCodeState } from "../types/index.js";
2
+ /**
3
+ * Tags on a collection's things (docs/tag-codes.md): what a scanned tag is, attaching it to an asset (a proof),
4
+ * taking it off. One set of calls for every claim-set tag: printed QR (a computed set's code, bought or printed
5
+ * yourself) and NFC. Pass what was scanned (`url`) or `claimSetId` + `code`. Admin only.
6
+ */
7
+ export declare namespace tagCodes {
8
+ /** What a tag is, as far as this collection may know: free, attached here (to what), or elsewhere. */
9
+ function lookup(collectionId: string, tag: TagCodeRef): Promise<TagCodeState>;
10
+ /**
11
+ * Put a tag on an asset: its asset type (productId) and the asset itself (proofId). Refused when the tag
12
+ * belongs to another organisation, or is already on another asset (detach it first).
13
+ */
14
+ function attach(collectionId: string, params: TagCodeAttachRequest): Promise<TagCodeState>;
15
+ /** Take a tag off its asset. It stays this collection's, free to go on another. */
16
+ function detach(collectionId: string, tag: TagCodeRef): Promise<TagCodeState>;
17
+ }
@@ -0,0 +1,28 @@
1
+ import { post } from "../http.js";
2
+ /**
3
+ * Tags on a collection's things (docs/tag-codes.md): what a scanned tag is, attaching it to an asset (a proof),
4
+ * taking it off. One set of calls for every claim-set tag: printed QR (a computed set's code, bought or printed
5
+ * yourself) and NFC. Pass what was scanned (`url`) or `claimSetId` + `code`. Admin only.
6
+ */
7
+ export var tagCodes;
8
+ (function (tagCodes) {
9
+ const base = (collectionId) => `/admin/collection/${encodeURIComponent(collectionId)}/tagCodes`;
10
+ /** What a tag is, as far as this collection may know: free, attached here (to what), or elsewhere. */
11
+ async function lookup(collectionId, tag) {
12
+ return post(`${base(collectionId)}/lookup`, tag);
13
+ }
14
+ tagCodes.lookup = lookup;
15
+ /**
16
+ * Put a tag on an asset: its asset type (productId) and the asset itself (proofId). Refused when the tag
17
+ * belongs to another organisation, or is already on another asset (detach it first).
18
+ */
19
+ async function attach(collectionId, params) {
20
+ return post(`${base(collectionId)}/attach`, params);
21
+ }
22
+ tagCodes.attach = attach;
23
+ /** Take a tag off its asset. It stays this collection's, free to go on another. */
24
+ async function detach(collectionId, tag) {
25
+ return post(`${base(collectionId)}/detach`, tag);
26
+ }
27
+ tagCodes.detach = detach;
28
+ })(tagCodes || (tagCodes = {}));
@@ -0,0 +1,93 @@
1
+ import type { WalletPass, WalletPassRef, WalletPassSummary, WalletPassContent, IssueWalletPassRequest } from "../types/wallet.js";
2
+ /**
3
+ * Wallet passes: an event ticket, booking, membership card or loyalty card in the person's Apple Wallet or
4
+ * Google Wallet, branded from the site (docs/wallet-passes.md).
5
+ *
6
+ * - In a page: `wallet.addLinks(collectionId, ref)` gives the signed-in person "Add to Wallet" links for their own
7
+ * booking (`{ type: 'booking', id }`), their membership card (`{ type: 'contact', id: 'me' }`), or a pass your app
8
+ * already issued them.
9
+ * - In a server function: `ctx.sl.wallet.issue / update / void / message` (needs `sl:wallet:write`). Passes follow
10
+ * their booking: a move changes the date on the pass, a cancellation voids it.
11
+ * - Admin: list, look up by QR code at the door, issue, change, void, message.
12
+ */
13
+ export declare namespace wallet {
14
+ /**
15
+ * "Add to Wallet" links for the signed-in person's pass about `ref` (made on first ask for a booking or a
16
+ * membership card).
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const { pass } = await wallet.addLinks('coll_123', { type: 'booking', id: booking.id })
21
+ * if (pass.links.apple) appleButton.href = pass.links.apple
22
+ * if (pass.links.google) googleButton.href = pass.links.google
23
+ * ```
24
+ * @throws `SIGN_IN_REQUIRED`, `NOT_FOUND` (not theirs, or nothing issued yet), `WALLET_OFF`
25
+ */
26
+ function addLinks(collectionId: string, ref: WalletPassRef): Promise<{
27
+ ok: true;
28
+ pass: WalletPassSummary;
29
+ }>;
30
+ /** The signed-in person's active passes on this site, with their links. */
31
+ function mine(collectionId: string): Promise<{
32
+ ok: true;
33
+ passes: WalletPassSummary[];
34
+ }>;
35
+ /** Which wallets are switched on (admin). */
36
+ function status(collectionId: string): Promise<{
37
+ ok: true;
38
+ google: boolean;
39
+ apple: boolean;
40
+ }>;
41
+ /** Passes for one thing (`refType` + `refId`) or one person (`contactId`) (admin). */
42
+ function list(collectionId: string, query: {
43
+ refType?: string;
44
+ refId?: string;
45
+ contactId?: string;
46
+ includeVoided?: boolean;
47
+ }): Promise<{
48
+ ok: true;
49
+ passes: WalletPass[];
50
+ }>;
51
+ /** One pass, with its links (admin). */
52
+ function get(collectionId: string, passId: string): Promise<{
53
+ ok: true;
54
+ pass: WalletPass;
55
+ }>;
56
+ /**
57
+ * The pass whose QR this is, for checking a ticket at the door (admin). `valid` is false for a voided pass.
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * const { pass, valid } = await wallet.byCode('coll_123', scannedValue)
62
+ * ```
63
+ */
64
+ function byCode(collectionId: string, code: string): Promise<{
65
+ ok: true;
66
+ pass: WalletPass;
67
+ valid: boolean;
68
+ }>;
69
+ /** Issue a pass (admin). Issuing again for the same thing, person and kind changes the existing pass. */
70
+ function issue(collectionId: string, input: IssueWalletPassRequest): Promise<{
71
+ ok: true;
72
+ pass: WalletPass;
73
+ }>;
74
+ /** Change what a pass shows; both wallets follow (admin). */
75
+ function update(collectionId: string, passId: string, fields: Partial<Omit<WalletPassContent, "kind">>): Promise<{
76
+ ok: true;
77
+ pass: WalletPass;
78
+ }>;
79
+ /** The pass no longer counts: shown as void on the phone (admin). */
80
+ function voidPass(collectionId: string, passId: string, reason?: string): Promise<{
81
+ ok: true;
82
+ pass: WalletPass;
83
+ }>;
84
+ /** A lock-screen message on the pass (admin). */
85
+ function message(collectionId: string, passId: string, msg: {
86
+ header?: string;
87
+ body: string;
88
+ }): Promise<{
89
+ ok: true;
90
+ sent: boolean;
91
+ pass: WalletPass;
92
+ }>;
93
+ }
@@ -0,0 +1,86 @@
1
+ import { request, post, patch } from "../http.js";
2
+ /**
3
+ * Wallet passes: an event ticket, booking, membership card or loyalty card in the person's Apple Wallet or
4
+ * Google Wallet, branded from the site (docs/wallet-passes.md).
5
+ *
6
+ * - In a page: `wallet.addLinks(collectionId, ref)` gives the signed-in person "Add to Wallet" links for their own
7
+ * booking (`{ type: 'booking', id }`), their membership card (`{ type: 'contact', id: 'me' }`), or a pass your app
8
+ * already issued them.
9
+ * - In a server function: `ctx.sl.wallet.issue / update / void / message` (needs `sl:wallet:write`). Passes follow
10
+ * their booking: a move changes the date on the pass, a cancellation voids it.
11
+ * - Admin: list, look up by QR code at the door, issue, change, void, message.
12
+ */
13
+ export var wallet;
14
+ (function (wallet) {
15
+ const pub = (collectionId) => `/public/collection/${encodeURIComponent(collectionId)}/wallet`;
16
+ const adm = (collectionId) => `/admin/collection/${encodeURIComponent(collectionId)}/wallet`;
17
+ /**
18
+ * "Add to Wallet" links for the signed-in person's pass about `ref` (made on first ask for a booking or a
19
+ * membership card).
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const { pass } = await wallet.addLinks('coll_123', { type: 'booking', id: booking.id })
24
+ * if (pass.links.apple) appleButton.href = pass.links.apple
25
+ * if (pass.links.google) googleButton.href = pass.links.google
26
+ * ```
27
+ * @throws `SIGN_IN_REQUIRED`, `NOT_FOUND` (not theirs, or nothing issued yet), `WALLET_OFF`
28
+ */
29
+ async function addLinks(collectionId, ref) {
30
+ return post(`${pub(collectionId)}/links`, { ref });
31
+ }
32
+ wallet.addLinks = addLinks;
33
+ /** The signed-in person's active passes on this site, with their links. */
34
+ async function mine(collectionId) {
35
+ return request(`${pub(collectionId)}/mine`);
36
+ }
37
+ wallet.mine = mine;
38
+ /** Which wallets are switched on (admin). */
39
+ async function status(collectionId) {
40
+ return request(`${adm(collectionId)}/status`);
41
+ }
42
+ wallet.status = status;
43
+ /** Passes for one thing (`refType` + `refId`) or one person (`contactId`) (admin). */
44
+ async function list(collectionId, query) {
45
+ const qs = new URLSearchParams(Object.entries(query).filter(([, v]) => v != null).map(([k, v]) => [k, String(v)])).toString();
46
+ return request(`${adm(collectionId)}/passes${qs ? `?${qs}` : ""}`);
47
+ }
48
+ wallet.list = list;
49
+ /** One pass, with its links (admin). */
50
+ async function get(collectionId, passId) {
51
+ return request(`${adm(collectionId)}/passes/${encodeURIComponent(passId)}`);
52
+ }
53
+ wallet.get = get;
54
+ /**
55
+ * The pass whose QR this is, for checking a ticket at the door (admin). `valid` is false for a voided pass.
56
+ *
57
+ * @example
58
+ * ```typescript
59
+ * const { pass, valid } = await wallet.byCode('coll_123', scannedValue)
60
+ * ```
61
+ */
62
+ async function byCode(collectionId, code) {
63
+ return request(`${adm(collectionId)}/code/${encodeURIComponent(code)}`);
64
+ }
65
+ wallet.byCode = byCode;
66
+ /** Issue a pass (admin). Issuing again for the same thing, person and kind changes the existing pass. */
67
+ async function issue(collectionId, input) {
68
+ return post(`${adm(collectionId)}/passes`, input);
69
+ }
70
+ wallet.issue = issue;
71
+ /** Change what a pass shows; both wallets follow (admin). */
72
+ async function update(collectionId, passId, fields) {
73
+ return patch(`${adm(collectionId)}/passes/${encodeURIComponent(passId)}`, fields);
74
+ }
75
+ wallet.update = update;
76
+ /** The pass no longer counts: shown as void on the phone (admin). */
77
+ async function voidPass(collectionId, passId, reason) {
78
+ return post(`${adm(collectionId)}/passes/${encodeURIComponent(passId)}/void`, { reason });
79
+ }
80
+ wallet.voidPass = voidPass;
81
+ /** A lock-screen message on the pass (admin). */
82
+ async function message(collectionId, passId, msg) {
83
+ return post(`${adm(collectionId)}/passes/${encodeURIComponent(passId)}/message`, msg);
84
+ }
85
+ wallet.message = message;
86
+ })(wallet || (wallet = {}));
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 2.1.24 | Generated: 2026-11-19T13:27:14.982Z
3
+ Version: 2.1.28 | Generated: 2026-11-20T09:02:04.143Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -160,14 +160,17 @@ The Smartlinks SDK is organized into the following namespaces:
160
160
  - **operations** - Functions for operations operations
161
161
  - **order** - Functions for order operations
162
162
  - **partner** - Functions for partner operations
163
+ - **places** - Functions for places operations
163
164
  - **products** - Functions for products operations
164
165
  - **realtime** - Functions for realtime operations
165
166
  - **research** - Functions for research operations
166
167
  - **secrets** - Functions for secrets operations
168
+ - **tagCodes** - Functions for tagCodes operations
167
169
  - **tags** - Functions for tags operations
168
170
  - **template** - Functions for template operations
169
171
  - **translations** - Functions for translations operations
170
172
  - **userGroups** - Functions for userGroups operations
173
+ - **wallet** - Functions for wallet operations
171
174
 
172
175
  ## HTTP Utilities
173
176
 
@@ -6278,6 +6281,7 @@ interface AssignClaimSetRangeRequest {
6278
6281
  ```typescript
6279
6282
  interface AssignClaimSetRangeResponse {
6280
6283
  changed: number
6284
+ wholeRange?: boolean
6281
6285
  skipped: Array<{ code: string; index: number; reason: 'other_range' | 'has_proof' | 'assigned_elsewhere'; collectionId?: string }>
6282
6286
  range: ClaimSetRange
6283
6287
  }
@@ -6319,6 +6323,10 @@ interface PartnerClaimSet {
6319
6323
  tapDomain: string
6320
6324
  owner: { type: 'platform' | 'partner' | 'collection' | 'user'; id: string | null }
6321
6325
  codes: number
6326
+ codeSource?: 'stored' | 'computed'
6327
+ sigBits?: number
6328
+ bareCodes?: boolean
6329
+ unassignedUrl?: string | null
6322
6330
  deleted: boolean
6323
6331
  createdAt: string | null
6324
6332
  }
@@ -6342,6 +6350,47 @@ interface CreatePartnerClaimSetRequest {
6342
6350
  name: string
6343
6351
  tagType: ClaimSetTagType
6344
6352
  tapDomain?: string
6353
+ codeSource?: 'stored' | 'computed'
6354
+ sigBits?: number
6355
+ bareCodes?: boolean
6356
+ unassignedUrl?: string
6357
+ }
6358
+ ```
6359
+
6360
+ **TagCodeRef** (interface)
6361
+ ```typescript
6362
+ interface TagCodeRef {
6363
+ scan?: string
6364
+ url?: string
6365
+ claimSetId?: string
6366
+ code?: string
6367
+ tagId?: string
6368
+ }
6369
+ ```
6370
+
6371
+ **TagCodeState** (interface)
6372
+ ```typescript
6373
+ interface TagCodeState {
6374
+ kind: 'claim' | 'chip'
6375
+ claimSetId?: string
6376
+ code?: string
6377
+ url?: string
6378
+ computed?: boolean
6379
+ tagId?: string
6380
+ tagType: ClaimSetTagType | 'chip'
6381
+ status: 'free' | 'attached' | 'elsewhere'
6382
+ on?: TagCodeOn | null
6383
+ productId?: string | null
6384
+ proofId?: string | null
6385
+ }
6386
+ ```
6387
+
6388
+ **PlaceMoveResult** (interface)
6389
+ ```typescript
6390
+ interface PlaceMoveResult {
6391
+ moved: Array<{ item: PlaceMoveItem; from: string | null; to: string | null }>
6392
+ unchanged: PlaceMoveItem[]
6393
+ refused: Array<{ item: PlaceMoveItem; errorCode: string; errorText: string }>
6345
6394
  }
6346
6395
  ```
6347
6396
 
@@ -6360,6 +6409,13 @@ type ClaimSetScope = { collectionId: string }
6360
6409
 
6361
6410
  **ClaimSetImportResult** = ``
6362
6411
 
6412
+ **TagCodeOn** = ``
6413
+
6414
+ **PlaceMoveItem** (type)
6415
+ ```typescript
6416
+ type PlaceMoveItem = { productId: string; proofId: string }
6417
+ ```
6418
+
6363
6419
  ### clientLog
6364
6420
 
6365
6421
  **ClientErrorReport** (interface)
@@ -7882,6 +7938,7 @@ interface PublicListContainersResponse {
7882
7938
  **FindContainersForItemResponse** (interface)
7883
7939
  ```typescript
7884
7940
  interface FindContainersForItemResponse {
7941
+ items: ContainerItem[]
7885
7942
  containers: Container[]
7886
7943
  }
7887
7944
  ```
@@ -12200,6 +12257,92 @@ interface VariantUpdateRequest {
12200
12257
  }
12201
12258
  ```
12202
12259
 
12260
+ ### wallet
12261
+
12262
+ **WalletPassRef** (interface)
12263
+ ```typescript
12264
+ interface WalletPassRef {
12265
+ type: 'booking' | 'contact' | string
12266
+ id: string
12267
+ }
12268
+ ```
12269
+
12270
+ **WalletPassContent** (interface)
12271
+ ```typescript
12272
+ interface WalletPassContent {
12273
+ kind: WalletPassKind
12274
+ title: string
12275
+ subtitle?: string
12276
+ start?: string
12277
+ end?: string
12278
+ timezone?: string
12279
+ venue?: { name?: string; address?: string; lat?: number; lng?: number }
12280
+ holder?: string
12281
+ number?: string
12282
+ level?: string
12283
+ points?: number
12284
+ validUntil?: string
12285
+ fields?: Array<{ label: string; value: string }>
12286
+ back?: Array<{ label: string; value: string }>
12287
+ image?: string
12288
+ url?: string
12289
+ barcode?: string
12290
+ }
12291
+ ```
12292
+
12293
+ **WalletPassLinks** (interface)
12294
+ ```typescript
12295
+ interface WalletPassLinks {
12296
+ google?: string
12297
+ apple?: string
12298
+ }
12299
+ ```
12300
+
12301
+ **WalletPassSummary** (interface)
12302
+ ```typescript
12303
+ interface WalletPassSummary {
12304
+ id: string
12305
+ kind: WalletPassKind
12306
+ ref: WalletPassRef
12307
+ title?: string
12308
+ start?: string
12309
+ links: WalletPassLinks
12310
+ }
12311
+ ```
12312
+
12313
+ **WalletPass** (interface)
12314
+ ```typescript
12315
+ interface WalletPass {
12316
+ id: string
12317
+ collectionId: string
12318
+ kind: WalletPassKind
12319
+ ref: WalletPassRef
12320
+ contactId?: string | null
12321
+ status: 'active' | 'voided'
12322
+ issuedBy?: string | null
12323
+ model: WalletPassContent
12324
+ code: string
12325
+ version: number
12326
+ notice?: { header: string; body: string; at: string }
12327
+ voidReason?: string | null
12328
+ links?: WalletPassLinks
12329
+ createdAt?: string
12330
+ updatedAt?: string
12331
+ }
12332
+ ```
12333
+
12334
+ **IssueWalletPassRequest** (interface)
12335
+ ```typescript
12336
+ interface IssueWalletPassRequest {
12337
+ ref: WalletPassRef
12338
+ contactId?: string
12339
+ appId?: string
12340
+ pass: WalletPassContent
12341
+ }
12342
+ ```
12343
+
12344
+ **WalletPassKind** = `'event' | 'booking' | 'membership' | 'loyalty'`
12345
+
12203
12346
  ### widgets
12204
12347
 
12205
12348
  **NavigationRequest** (interface)
@@ -14784,6 +14927,11 @@ Find a tag across the partner's sets by its chip UID (8 or 14 hex) or its code (
14784
14927
  **tagAttempts**(partnerId: string, uid: string) → `Promise<ClientErrorEvent[]>`
14785
14928
  What phones reported about one chip (errors.report with entityType 'tag'), newest first: a tag that failed to program or register, with the host's NFC log in context. For a chip in the partner's sets, or attempts that named one of them.
14786
14929
 
14930
+ ### places
14931
+
14932
+ **move**(collectionId: string, params: { to: string | null; items: PlaceMoveItem[]; note?: string }) → `Promise<PlaceMoveResult>`
14933
+ Move items (by membership), chips without an item (by membership) or containers (re-parented) into `to`, or out of every place with `to: null`. Each move leaves a history line on what moved. Up to 500 at a time.
14934
+
14787
14935
  ### podcast
14788
14936
 
14789
14937
  **generate**(collectionId: string,
@@ -15231,6 +15379,17 @@ List the skills apps can invoke (name, description, input/output schema).
15231
15379
  **run**(collectionId: string, name: string, input: Record<string, any> = {}) → `Promise<T>`
15232
15380
  Invoke a skill by name with structured input — the app-facing verb; no prompt-shaping. POST /admin/collection/:collectionId/ai/skills/:name/run
15233
15381
 
15382
+ ### tagCodes
15383
+
15384
+ **lookup**(collectionId: string, tag: TagCodeRef) → `Promise<TagCodeState>`
15385
+ What a tag is, as far as this collection may know: free, attached here (to what), or elsewhere.
15386
+
15387
+ **attach**(collectionId: string, params: TagCodeAttachRequest) → `Promise<TagCodeState>`
15388
+ Put a tag on an asset: its asset type (productId) and the asset itself (proofId). Refused when the tag belongs to another organisation, or is already on another asset (detach it first).
15389
+
15390
+ **detach**(collectionId: string, tag: TagCodeRef) → `Promise<TagCodeState>`
15391
+ Take a tag off its asset. It stays this collection's, free to go on another.
15392
+
15234
15393
  ### tags
15235
15394
 
15236
15395
  **create**(collectionId: string,
@@ -15484,3 +15643,35 @@ Listen for voice input
15484
15643
  **speak**(text: string, options?: { voice?: string; rate?: number }) → `Promise<void>`
15485
15644
  Speak text
15486
15645
 
15646
+ ### wallet
15647
+
15648
+ **addLinks**(collectionId: string, ref: WalletPassRef) → `Promise<`
15649
+ "Add to Wallet" links for the signed-in person's pass about `ref` (made on first ask for a booking or a membership card). ```typescript const { pass } = await wallet.addLinks('coll_123', { type: 'booking', id: booking.id }) if (pass.links.apple) appleButton.href = pass.links.apple if (pass.links.google) googleButton.href = pass.links.google ```
15650
+
15651
+ **mine**(collectionId: string) → `Promise<`
15652
+ The signed-in person's active passes on this site, with their links.
15653
+
15654
+ **status**(collectionId: string) → `Promise<`
15655
+ Which wallets are switched on (admin).
15656
+
15657
+ **list**(collectionId: string, query: { refType?: string; refId?: string; contactId?: string; includeVoided?: boolean }) → `Promise<`
15658
+ Passes for one thing (`refType` + `refId`) or one person (`contactId`) (admin).
15659
+
15660
+ **get**(collectionId: string, passId: string) → `Promise<`
15661
+ One pass, with its links (admin).
15662
+
15663
+ **byCode**(collectionId: string, code: string) → `Promise<`
15664
+ The pass whose QR this is, for checking a ticket at the door (admin). `valid` is false for a voided pass. ```typescript const { pass, valid } = await wallet.byCode('coll_123', scannedValue) ```
15665
+
15666
+ **issue**(collectionId: string, input: IssueWalletPassRequest) → `Promise<`
15667
+ Issue a pass (admin). Issuing again for the same thing, person and kind changes the existing pass.
15668
+
15669
+ **update**(collectionId: string, passId: string, fields: Partial<Omit<WalletPassContent, "kind">>) → `Promise<`
15670
+ Change what a pass shows; both wallets follow (admin).
15671
+
15672
+ **voidPass**(collectionId: string, passId: string, reason?: string) → `Promise<`
15673
+ The pass no longer counts: shown as void on the phone (admin).
15674
+
15675
+ **message**(collectionId: string, passId: string, msg: { header?: string; body: string }) → `Promise<`
15676
+ A lock-screen message on the pass (admin).
15677
+