@proveanything/smartlinks 1.0.29 → 1.0.31

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 (49) hide show
  1. package/API_SUMMARY.md +771 -213
  2. package/README.md +13109 -0
  3. package/dist/api/appRecord.d.ts +6 -0
  4. package/dist/api/appRecord.js +29 -0
  5. package/dist/api/auth.d.ts +12 -0
  6. package/dist/api/auth.js +18 -0
  7. package/dist/api/index.d.ts +1 -0
  8. package/dist/api/index.js +1 -0
  9. package/dist/http.d.ts +5 -3
  10. package/dist/http.js +5 -3
  11. package/package.json +19 -3
  12. package/build-docs.ts +0 -69
  13. package/debug.log +0 -6
  14. package/examples/browser-demo.html +0 -43
  15. package/examples/node-demo.ts +0 -50
  16. package/examples/react-demo.tsx +0 -58
  17. package/generate-api-summary.js +0 -279
  18. package/generate-api-summary.ts +0 -83
  19. package/openapi.yaml +0 -130
  20. package/scripts/copy-docs.js +0 -11
  21. package/src/api/appConfiguration.ts +0 -104
  22. package/src/api/asset.ts +0 -133
  23. package/src/api/attestation.ts +0 -69
  24. package/src/api/auth.ts +0 -103
  25. package/src/api/batch.ts +0 -173
  26. package/src/api/claimSet.ts +0 -131
  27. package/src/api/collection.ts +0 -117
  28. package/src/api/crate.ts +0 -43
  29. package/src/api/form.ts +0 -57
  30. package/src/api/index.ts +0 -14
  31. package/src/api/product.ts +0 -128
  32. package/src/api/proof.ts +0 -32
  33. package/src/api/serialNumber.ts +0 -0
  34. package/src/api/variant.ts +0 -173
  35. package/src/http.ts +0 -363
  36. package/src/index.ts +0 -29
  37. package/src/types/appConfiguration.ts +0 -12
  38. package/src/types/asset.ts +0 -9
  39. package/src/types/attestation.ts +0 -19
  40. package/src/types/batch.ts +0 -15
  41. package/src/types/collection.ts +0 -68
  42. package/src/types/error.ts +0 -10
  43. package/src/types/index.ts +0 -11
  44. package/src/types/product.ts +0 -33
  45. package/src/types/proof.ts +0 -20
  46. package/src/types/serialNumber.ts +0 -0
  47. package/src/types/variant.ts +0 -15
  48. package/tsconfig.json +0 -15
  49. package/typedoc.json +0 -18
package/API_SUMMARY.md CHANGED
@@ -2,6 +2,67 @@
2
2
 
3
3
  This is a concise summary of all available API functions and types.
4
4
 
5
+ ## API Namespaces
6
+
7
+ The Smartlinks SDK is organized into the following namespaces:
8
+
9
+ - **appConfiguration** - Application configuration and settings management
10
+ - **appRecord** - Functions for appRecord operations
11
+ - **asset** - File upload and asset management for collections, products, and proofs
12
+ - **attestation** - Digital attestations and verification for products
13
+ - **auth** - Authentication, login, and user account management
14
+ - **batch** - Product batch management and tracking
15
+ - **claimSet** - Claim creation, management, and verification
16
+ - **collection** - Collection CRUD operations and management
17
+ - **crate** - Container/crate management for organizing products
18
+ - **form** - Dynamic form creation and submission
19
+ - **product** - Product CRUD operations and management within collections
20
+ - **proof** - Product proof retrieval and validation
21
+ - **serialNumber** - Functions for serialNumber operations
22
+ - **variant** - Product variant management and tracking
23
+
24
+ ## HTTP Utilities
25
+
26
+ Core HTTP functions for API configuration and communication:
27
+
28
+ **initializeApi**(options: {
29
+ baseURL: string
30
+ apiKey?: string
31
+ bearerToken?: string
32
+ proxyMode?: boolean
33
+ }) → `void`
34
+ Call this once (e.g. at app startup) to configure baseURL/auth.
35
+
36
+ **setBearerToken**(token: string | undefined) → `void`
37
+ Allows setting the bearerToken at runtime (e.g. after login/logout).
38
+
39
+ **request**(path: string) → `Promise<T>`
40
+ Internal helper that performs a GET request to \`\${baseURL}\${path}\`, injecting headers for apiKey or bearerToken if present. Returns the parsed JSON as T, or throws an Error.
41
+
42
+ **post**(path: string,
43
+ body: any,
44
+ extraHeaders?: Record<string, string>) → `Promise<T>`
45
+ Internal helper that performs a POST request to `${baseURL}${path}`, injecting headers for apiKey or bearerToken if present. If body is FormData, Content-Type is not set. Returns the parsed JSON as T, or throws an Error.
46
+
47
+ **put**(path: string,
48
+ body: any,
49
+ extraHeaders?: Record<string, string>) → `Promise<T>`
50
+ Internal helper that performs a PUT request to `${baseURL}${path}`, injecting headers for apiKey or bearerToken if present. If body is FormData, Content-Type is not set. Returns the parsed JSON as T, or throws an Error.
51
+
52
+ **requestWithOptions**(path: string,
53
+ options: RequestInit) → `Promise<T>`
54
+ Internal helper that performs a request to `${baseURL}${path}` with custom options, injecting headers for apiKey or bearerToken if present. Returns the parsed JSON as T, or throws an Error.
55
+
56
+ **del**(path: string,
57
+ extraHeaders?: Record<string, string>) → `Promise<T>`
58
+ Internal helper that performs a DELETE request to `${baseURL}${path}`, injecting headers for apiKey or bearerToken if present. Returns the parsed JSON as T, or throws an Error.
59
+
60
+ **getApiHeaders**() → `Record<string, string>`
61
+ Returns the common headers used for API requests, including apiKey and bearerToken if set.
62
+
63
+ **sendCustomProxyMessage**(request: string, params: any) → `Promise<T>`
64
+ Sends a custom proxy message to the parent Smartlinks application when running in an iframe. This function is used to communicate with the parent window when the SDK is embedded in an iframe and proxyMode is enabled. It sends a message to the parent and waits for a response.
65
+
5
66
  ## Types
6
67
 
7
68
  ### appConfiguration
@@ -9,9 +70,9 @@ This is a concise summary of all available API functions and types.
9
70
  **AppConfigurationResponse** (interface)
10
71
  ```typescript
11
72
  interface AppConfigurationResponse {
12
- id: string;
13
- name: string;
14
- settings?: Record<string, any>;
73
+ id: string
74
+ name: string
75
+ settings?: Record<string, any>
15
76
  }
16
77
  ```
17
78
 
@@ -20,9 +81,9 @@ interface AppConfigurationResponse {
20
81
  **AssetResponse** (interface)
21
82
  ```typescript
22
83
  interface AssetResponse {
23
- id: string;
24
- name: string;
25
- url: string;
84
+ id: string
85
+ name: string
86
+ url: string
26
87
  }
27
88
  ```
28
89
 
@@ -31,29 +92,29 @@ interface AssetResponse {
31
92
  **AttestationResponse** (interface)
32
93
  ```typescript
33
94
  interface AttestationResponse {
34
- id: string;
35
- createdAt: string;
36
- updatedAt: string;
37
- public: Record<string, any>;
38
- private: Record<string, any>;
39
- proof: Record<string, any>;
95
+ id: string
96
+ createdAt: string
97
+ updatedAt: string
98
+ public: Record<string, any>
99
+ private: Record<string, any>
100
+ proof: Record<string, any>
40
101
  }
41
102
  ```
42
103
 
43
104
  **AttestationCreateRequest** (interface)
44
105
  ```typescript
45
106
  interface AttestationCreateRequest {
46
- public: Record<string, any>;
47
- private: Record<string, any>;
48
- proof: Record<string, any>;
107
+ public: Record<string, any>
108
+ private: Record<string, any>
109
+ proof: Record<string, any>
49
110
  }
50
111
  ```
51
112
 
52
113
  **AttestationUpdateRequest** (interface)
53
114
  ```typescript
54
115
  interface AttestationUpdateRequest {
55
- type?: string;
56
- data?: Record<string, any>;
116
+ type?: string
117
+ data?: Record<string, any>
57
118
  }
58
119
  ```
59
120
 
@@ -70,42 +131,43 @@ interface AttestationUpdateRequest {
70
131
  **CollectionResponse** (interface)
71
132
  ```typescript
72
133
  interface CollectionResponse {
73
- id: string;
74
- title: string;
75
- description: string;
134
+ id: string
135
+ title: string
136
+ description: string
76
137
  headerImage?: {
77
- url: string;
78
- thumbnails: {
79
- x100: string;
80
- x200: string;
81
- x512: string;
82
- };
83
- };
138
+ url: string
139
+ thumbnails: {
140
+ x100: string
141
+ x200: string
142
+ x512: string
143
+ }
144
+ }
84
145
  logoImage?: {
85
- url: string;
86
- thumbnails: {
87
- x100: string;
88
- x200: string;
89
- x512: string;
90
- };
91
- };
146
+ url: string
147
+ thumbnails: {
148
+ x100: string
149
+ x200: string
150
+ x512: string
151
+ }
152
+ }
92
153
  loaderImage?: {
93
- overwriteName: string;
94
- name: string;
95
- type: string;
96
- url: string;
97
- };
154
+ overwriteName: string
155
+ name: string
156
+ type: string
157
+ url: string
158
+ }
98
159
  languages?: {
99
- code: string;
100
- lang: string;
101
- supported: boolean;
102
- };
160
+ code: string
161
+ lang: string
162
+ supported: boolean
163
+ }[],
103
164
  roles: {
104
- };
105
- groupTags?: string[];
106
- redirectUrl?: string;
107
- shortId: string;
108
- dark?: boolean;
165
+ [userId: string]: string
166
+ }
167
+ groupTags?: string[]
168
+ redirectUrl?: string
169
+ shortId: string,
170
+ dark?: boolean
109
171
  }
110
172
  ```
111
173
 
@@ -114,8 +176,8 @@ interface CollectionResponse {
114
176
  **ErrorResponse** (interface)
115
177
  ```typescript
116
178
  interface ErrorResponse {
117
- code: number;
118
- message: string;
179
+ code: number
180
+ message: string
119
181
  }
120
182
  ```
121
183
 
@@ -124,22 +186,24 @@ interface ErrorResponse {
124
186
  **ProductResponse** (interface)
125
187
  ```typescript
126
188
  interface ProductResponse {
127
- id: string;
128
- name: string;
129
- collectionId: string;
130
- description: string;
189
+ id: string
190
+ name: string
191
+ collectionId: string
192
+ description: string
131
193
  heroImage: {
132
- url: string;
133
- thumbnails: {
134
- x100: string;
135
- x200: string;
136
- x512: string;
137
- };
138
- };
194
+ url: string
195
+ thumbnails: {
196
+ x100: string
197
+ x200: string
198
+ x512: string
199
+ }
200
+ }
139
201
  groupTags: {
140
- };
202
+ [tagName: string]: boolean
203
+ }
141
204
  data: {
142
- };
205
+ [key: string]: any
206
+ }
143
207
  }
144
208
  ```
145
209
 
@@ -148,13 +212,13 @@ interface ProductResponse {
148
212
  **ProofResponse** (interface)
149
213
  ```typescript
150
214
  interface ProofResponse {
151
- collectionId: string;
152
- createdAt: string;
153
- id: string;
154
- productId: string;
155
- tokenId: string;
156
- userId: string;
157
- values: Record<string, any>;
215
+ collectionId: string
216
+ createdAt: string
217
+ id: string
218
+ productId: string
219
+ tokenId: string
220
+ userId: string
221
+ values: Record<string, any>
158
222
  }
159
223
  ```
160
224
 
@@ -166,247 +230,741 @@ interface ProofResponse {
166
230
 
167
231
  **VariantUpdateRequest** = `any`
168
232
 
233
+ **AppConfigOptions** = `{
234
+ appId: string
235
+ collectionId?: string
236
+ productId?: string
237
+ variantId?: string
238
+ batchId?: string
239
+ itemId?: string
240
+ user?: boolean
241
+ userData?: boolean
242
+ admin?: boolean
243
+ config?: any
244
+ data?: any
245
+ }`
246
+
247
+ ### auth
248
+
249
+ **LoginResponse** = `{
250
+ id: string
251
+ name: string
252
+ email: string
253
+ bearerToken: string
254
+ account: Record<string, any>
255
+ }`
256
+
257
+ **VerifyTokenResponse** = `{
258
+ valid: boolean
259
+ id?: string
260
+ name?: string
261
+ email?: string
262
+ account?: Record<string, any>
263
+ }`
264
+
265
+ **AccountInfoResponse** = `{
266
+ jwtToken: string;
267
+ jwtExpiry: number;
268
+ accessType: string;
269
+ analyticsCode: string;
270
+ analyticsId: string;
271
+ auth_time: number;
272
+ baseCollectionId: string;
273
+ clientType: string;
274
+ email: string;
275
+ email_verified: boolean;
276
+ features: {
277
+ actionLogger: boolean;
278
+ adminCollections: boolean;
279
+ adminApps: boolean;
280
+ apiKeys: boolean;
281
+ adminUsers: boolean;
282
+ [key: string]: boolean;
283
+ };
284
+ iat: number;
285
+ id: string;
286
+ iss: string;
287
+ location: string | null;
288
+ name: string;
289
+ picture: string;
290
+ sites: {
291
+ [siteName: string]: boolean;
292
+ };
293
+ sub: string;
294
+ uid: string;
295
+ user_id: string;
296
+ whitelabel: {
297
+ [key: string]: any;
298
+ }
299
+ }`
300
+
169
301
  ## API Functions
170
302
 
171
303
  ### appConfiguration
172
304
 
173
- **getConfig**(opts: AppConfigOptions) → `any`
305
+ **getConfig**(opts: AppConfigOptions) → `Promise<any>`
306
+
307
+ **setConfig**(opts: AppConfigOptions) → `Promise<any>`
308
+
309
+ **deleteConfig**(opts: AppConfigOptions) → `Promise<void>`
310
+
311
+ **getData**(opts: AppConfigOptions) → `Promise<any[]>`
312
+
313
+ **getDataItem**(opts: AppConfigOptions) → `Promise<any>`
314
+
315
+ **setDataItem**(opts: AppConfigOptions) → `Promise<any>`
316
+
317
+ **deleteDataItem**(opts: AppConfigOptions) → `Promise<void>`
318
+
319
+ **getConfig**(opts: AppConfigOptions) → `Promise<any>`
320
+
321
+ **setConfig**(opts: AppConfigOptions) → `Promise<any>`
322
+
323
+ **deleteConfig**(opts: AppConfigOptions) → `Promise<void>`
324
+
325
+ **getData**(opts: AppConfigOptions) → `Promise<any[]>`
326
+
327
+ **getDataItem**(opts: AppConfigOptions) → `Promise<any>`
328
+
329
+ **setDataItem**(opts: AppConfigOptions) → `Promise<any>`
330
+
331
+ **deleteDataItem**(opts: AppConfigOptions) → `Promise<void>`
174
332
 
175
- **setConfig**(opts: AppConfigOptions) → `any`
333
+ ### appRecord
176
334
 
177
- **deleteConfig**(opts: AppConfigOptions) → `void`
335
+ **get**(collectionId: string, appId: string) → `Promise<any>`
178
336
 
179
- **getData**(opts: AppConfigOptions) → `any[]`
337
+ **create**(collectionId: string, appId: string, data: any) → `Promise<any>`
180
338
 
181
- **getDataItem**(opts: AppConfigOptions) → `any`
339
+ **update**(collectionId: string, appId: string, data: any) → `Promise<any>`
182
340
 
183
- **setDataItem**(opts: AppConfigOptions) → `any`
341
+ **remove**(collectionId: string, appId: string) → `Promise<void>`
184
342
 
185
- **deleteDataItem**(opts: AppConfigOptions) → `void`
343
+ **get**(collectionId: string, appId: string) → `Promise<any>`
344
+
345
+ **create**(collectionId: string, appId: string, data: any) → `Promise<any>`
346
+
347
+ **update**(collectionId: string, appId: string, data: any) → `Promise<any>`
348
+
349
+ **remove**(collectionId: string, appId: string) → `Promise<void>`
186
350
 
187
351
  ### asset
188
352
 
189
- **getForCollection**(collectionId: string, assetId: string) → `AssetResponse`
353
+ **getForCollection**(collectionId: string,
354
+ assetId: string) → `Promise<AssetResponse>`
190
355
 
191
- **listForCollection**(collectionId: string) → `AssetResponse[]`
356
+ **listForCollection**(collectionId: string) → `Promise<AssetResponse[]>`
192
357
 
193
- **getForProduct**(collectionId: string, productId: string, assetId: string) → `AssetResponse`
358
+ **getForProduct**(collectionId: string,
359
+ productId: string,
360
+ assetId: string) → `Promise<AssetResponse>`
194
361
 
195
- **listForProduct**(collectionId: string, productId: string) → `AssetResponse[]`
362
+ **listForProduct**(collectionId: string,
363
+ productId: string) → `Promise<AssetResponse[]>`
196
364
 
197
- **getForProof**(collectionId: string, productId: string, proofId: string, assetId: string) → `AssetResponse`
365
+ **getForProof**(collectionId: string,
366
+ productId: string,
367
+ proofId: string,
368
+ assetId: string) → `Promise<AssetResponse>`
198
369
 
199
- **listForProof**(collectionId: string, productId: string, proofId: string, appId?: string) → `AssetResponse[]`
370
+ **listForProof**(collectionId: string,
371
+ productId: string,
372
+ proofId: string,
373
+ appId?: string) → `Promise<AssetResponse[]>`
200
374
 
201
- **uploadAsset**(collectionId: string, productId: string, proofId: string, file: File, extraData?: Record<string, any>, onProgress?: (percent: number) => void) → `AssetResponse`
202
- Uploads an asset file to a proof, with optional extraData as JSON. Supports progress reporting via onProgress callback (browser only). @param collectionId - The collection ID @param productId - The product ID @param proofId - The proof ID @param file - The file to upload @param extraData - Arbitrary extra data to include (will be stringified as JSON) @param onProgress - Optional callback for upload progress (0-100) @returns Promise resolving to an AssetResponse object
375
+ **uploadAsset**(collectionId: string,
376
+ productId: string,
377
+ proofId: string,
378
+ file: File,
379
+ extraData?: Record<string, any>,
380
+ onProgress?: (percent: number) → `void`
381
+ Uploads an asset file to a proof, with optional extraData as JSON. Supports progress reporting via onProgress callback (browser only).
203
382
 
204
- ### attestation
383
+ **getForCollection**(collectionId: string,
384
+ assetId: string) → `Promise<AssetResponse>`
205
385
 
206
- **list**(collectionId: string, productId: string, proofId: string) → `AttestationResponse[]`
207
- List all attestations for a proof.
386
+ **listForCollection**(collectionId: string) → `Promise<AssetResponse[]>`
208
387
 
209
- **get**(collectionId: string, productId: string, proofId: string, attestationId: string) → `AttestationResponse`
210
- List all attestations for a proof.
388
+ **getForProduct**(collectionId: string,
389
+ productId: string,
390
+ assetId: string) → `Promise<AssetResponse>`
211
391
 
212
- **create**(collectionId: string, productId: string, proofId: string, data: AttestationCreateRequest) → `AttestationResponse`
213
- List all attestations for a proof.
392
+ **listForProduct**(collectionId: string,
393
+ productId: string) `Promise<AssetResponse[]>`
394
+
395
+ **getForProof**(collectionId: string,
396
+ productId: string,
397
+ proofId: string,
398
+ assetId: string) → `Promise<AssetResponse>`
399
+
400
+ **listForProof**(collectionId: string,
401
+ productId: string,
402
+ proofId: string,
403
+ appId?: string) → `Promise<AssetResponse[]>`
214
404
 
215
- **update**(collectionId: string, productId: string, proofId: string, attestationId: string, data: AttestationUpdateRequest) → `AttestationResponse`
405
+ **uploadAsset**(collectionId: string,
406
+ productId: string,
407
+ proofId: string,
408
+ file: File,
409
+ extraData?: Record<string, any>,
410
+ onProgress?: (percent: number) → `void`
411
+ Uploads an asset file to a proof, with optional extraData as JSON. Supports progress reporting via onProgress callback (browser only).
412
+
413
+ ### attestation
414
+
415
+ **list**(collectionId: string,
416
+ productId: string,
417
+ proofId: string) → `Promise<AttestationResponse[]>`
216
418
  List all attestations for a proof.
217
419
 
218
- **remove**(collectionId: string, productId: string, proofId: string, attestationId: string) → `void`
420
+ **get**(collectionId: string,
421
+ productId: string,
422
+ proofId: string,
423
+ attestationId: string) → `Promise<AttestationResponse>`
424
+ Get a single attestation by ID.
425
+
426
+ **create**(collectionId: string,
427
+ productId: string,
428
+ proofId: string,
429
+ data: AttestationCreateRequest) → `Promise<AttestationResponse>`
430
+ Create a new attestation for a proof.
431
+
432
+ **update**(collectionId: string,
433
+ productId: string,
434
+ proofId: string,
435
+ attestationId: string,
436
+ data: AttestationUpdateRequest) → `Promise<AttestationResponse>`
437
+ Update an attestation.
438
+
439
+ **remove**(collectionId: string,
440
+ productId: string,
441
+ proofId: string,
442
+ attestationId: string) → `Promise<void>`
443
+ Delete an attestation.
444
+
445
+ **list**(collectionId: string,
446
+ productId: string,
447
+ proofId: string) → `Promise<AttestationResponse[]>`
219
448
  List all attestations for a proof.
220
449
 
450
+ **get**(collectionId: string,
451
+ productId: string,
452
+ proofId: string,
453
+ attestationId: string) → `Promise<AttestationResponse>`
454
+ Get a single attestation by ID.
455
+
456
+ **create**(collectionId: string,
457
+ productId: string,
458
+ proofId: string,
459
+ data: AttestationCreateRequest) → `Promise<AttestationResponse>`
460
+ Create a new attestation for a proof.
461
+
462
+ **update**(collectionId: string,
463
+ productId: string,
464
+ proofId: string,
465
+ attestationId: string,
466
+ data: AttestationUpdateRequest) → `Promise<AttestationResponse>`
467
+ Update an attestation.
468
+
469
+ **remove**(collectionId: string,
470
+ productId: string,
471
+ proofId: string,
472
+ attestationId: string) → `Promise<void>`
473
+ Delete an attestation.
474
+
221
475
  ### auth
222
476
 
223
- **login**(email: string, password: string) → `LoginResponse`
477
+ **login**(email: string, password: string) → `Promise<LoginResponse>`
224
478
  Login with email and password. Sets the bearerToken for subsequent API calls.
225
479
 
226
- **verifyToken**(token?: string) → `VerifyTokenResponse`
227
- Login with email and password. Sets the bearerToken for subsequent API calls.
480
+ **logout**() → `void`
481
+ Logout (clears bearerToken for future API calls).
482
+
483
+ **verifyToken**(token?: string) → `Promise<VerifyTokenResponse>`
484
+ Verifies the current bearerToken (or a provided token). Returns user/account info if valid.
485
+
486
+ **requestAdminJWT**(collectionId: string) → `Promise<VerifyTokenResponse>`
487
+ Requests an admin JWT for the current user and a specific collection Returns JWT if valid.
488
+
489
+ **requestPublicJWT**(collectionId: string, productId: string, proofId: string) → `Promise<VerifyTokenResponse>`
490
+ Requests a JWT for the current user and a specific collection/product/proof Validates if the user has access to the resource, and returns a JWT
228
491
 
229
- **getAccount**() → `AccountInfoResponse`
492
+ **getAccount**() → `Promise<AccountInfoResponse>`
493
+ Gets current account information for the logged in user. Returns user, owner, account, and location objects.
494
+
495
+ **login**(email: string, password: string) → `Promise<LoginResponse>`
230
496
  Login with email and password. Sets the bearerToken for subsequent API calls.
231
497
 
498
+ **logout**() → `void`
499
+ Logout (clears bearerToken for future API calls).
500
+
501
+ **verifyToken**(token?: string) → `Promise<VerifyTokenResponse>`
502
+ Verifies the current bearerToken (or a provided token). Returns user/account info if valid.
503
+
504
+ **requestAdminJWT**(collectionId: string) → `Promise<VerifyTokenResponse>`
505
+ Requests an admin JWT for the current user and a specific collection Returns JWT if valid.
506
+
507
+ **requestPublicJWT**(collectionId: string, productId: string, proofId: string) → `Promise<VerifyTokenResponse>`
508
+ Requests a JWT for the current user and a specific collection/product/proof Validates if the user has access to the resource, and returns a JWT
509
+
510
+ **getAccount**() → `Promise<AccountInfoResponse>`
511
+ Gets current account information for the logged in user. Returns user, owner, account, and location objects.
512
+
232
513
  ### batch
233
514
 
234
- **get**(collectionId: string, productId: string, batchId: string) → `BatchResponse`
235
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
515
+ **get**(collectionId: string,
516
+ productId: string,
517
+ batchId: string) → `Promise<BatchResponse>`
518
+ Get a single batch by ID for a collection and product (admin only).
519
+
520
+ **list**(collectionId: string,
521
+ productId: string) → `Promise<BatchResponse[]>`
522
+ List all batches for a collection and product (admin only).
523
+
524
+ **create**(collectionId: string,
525
+ productId: string,
526
+ data: BatchCreateRequest) → `Promise<BatchResponse>`
527
+ Create a new batch for a collection and product (admin only).
528
+
529
+ **update**(collectionId: string,
530
+ productId: string,
531
+ batchId: string,
532
+ data: BatchUpdateRequest) → `Promise<BatchResponse>`
533
+ Update a batch for a collection and product (admin only).
534
+
535
+ **remove**(collectionId: string,
536
+ productId: string,
537
+ batchId: string) → `Promise<void>`
538
+ Delete a batch for a collection and product (admin only).
539
+
540
+ **getPublic**(collectionId: string,
541
+ productId: string,
542
+ batchId: string) → `Promise<BatchResponse>`
543
+ Get a single batch by ID for a collection and product (public endpoint).
544
+
545
+ **getSN**(collectionId: string,
546
+ productId: string,
547
+ batchId: string,
548
+ startIndex: number = 0,
549
+ count: number = 10) → `Promise<any>`
550
+ Get serial numbers for a batch (admin only).
551
+
552
+ **lookupSN**(collectionId: string,
553
+ productId: string,
554
+ batchId: string,
555
+ codeId: string) → `Promise<any>`
556
+ Look up a serial number by code for a batch (admin only).
557
+
558
+ **get**(collectionId: string,
559
+ productId: string,
560
+ batchId: string) → `Promise<BatchResponse>`
561
+ Get a single batch by ID for a collection and product (admin only).
562
+
563
+ **list**(collectionId: string,
564
+ productId: string) → `Promise<BatchResponse[]>`
565
+ List all batches for a collection and product (admin only).
566
+
567
+ **create**(collectionId: string,
568
+ productId: string,
569
+ data: BatchCreateRequest) → `Promise<BatchResponse>`
570
+ Create a new batch for a collection and product (admin only).
571
+
572
+ **update**(collectionId: string,
573
+ productId: string,
574
+ batchId: string,
575
+ data: BatchUpdateRequest) → `Promise<BatchResponse>`
576
+ Update a batch for a collection and product (admin only).
577
+
578
+ **remove**(collectionId: string,
579
+ productId: string,
580
+ batchId: string) → `Promise<void>`
581
+ Delete a batch for a collection and product (admin only).
582
+
583
+ **getPublic**(collectionId: string,
584
+ productId: string,
585
+ batchId: string) → `Promise<BatchResponse>`
586
+ Get a single batch by ID for a collection and product (public endpoint).
587
+
588
+ **getSN**(collectionId: string,
589
+ productId: string,
590
+ batchId: string,
591
+ startIndex: number = 0,
592
+ count: number = 10) → `Promise<any>`
593
+ Get serial numbers for a batch (admin only).
594
+
595
+ **lookupSN**(collectionId: string,
596
+ productId: string,
597
+ batchId: string,
598
+ codeId: string) → `Promise<any>`
599
+ Look up a serial number by code for a batch (admin only).
600
+
601
+ ### claimSet
236
602
 
237
- **list**(collectionId: string, productId: string) → `BatchResponse[]`
238
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
603
+ **getAllForCollection**(collectionId: string) → `Promise<any[]>`
604
+ Get all claim sets for a collection.
239
605
 
240
- **create**(collectionId: string, productId: string, data: BatchCreateRequest) → `BatchResponse`
241
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
606
+ **getForCollection**(collectionId: string, claimSetId: string) → `Promise<any>`
607
+ Get a specific claim set for a collection.
242
608
 
243
- **update**(collectionId: string, productId: string, batchId: string, data: BatchUpdateRequest) → `BatchResponse`
244
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
609
+ **getAllTags**(collectionId: string, claimSetId: string) → `Promise<any[]>`
610
+ Get all tags for a claim set.
245
611
 
246
- **remove**(collectionId: string, productId: string, batchId: string) → `void`
247
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
612
+ **getReport**(collectionId: string, claimSetId: string) → `Promise<any>`
613
+ Get a report for a claim set.
248
614
 
249
- **getPublic**(collectionId: string, productId: string, batchId: string) → `BatchResponse`
250
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
615
+ **getAssignedTags**(collectionId: string, claimSetId: string) → `Promise<any>`
616
+ Get assigned tags for a claim set.
251
617
 
252
- **getSN**(collectionId: string, productId: string, batchId: string, startIndex: number = 0, count: number = 10) → `any`
253
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
618
+ **getTagSummary**(collectionId: string) → `Promise<any>`
619
+ Get tag summary for a collection.
254
620
 
255
- **lookupSN**(collectionId: string, productId: string, batchId: string, codeId: string) → `any`
256
- Get a single batch by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param batchId - Identifier of the batch @returns Promise resolving to a BatchResponse object @throws ErrorResponse if the request fails
621
+ **tagQuery**(collectionId: string, data: any) → `Promise<any>`
622
+ Perform a tag query for a collection.
257
623
 
258
- ### claimSet
624
+ **createForCollection**(collectionId: string, params: any) → `Promise<any>`
625
+ Create a new claim set for a collection.
259
626
 
260
- **getAllForCollection**(collectionId: string) → `any[]`
261
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
627
+ **updateForCollection**(collectionId: string, params: any) → `Promise<any>`
628
+ Update a claim set for a collection.
262
629
 
263
- **getForCollection**(collectionId: string, claimSetId: string) → `any`
264
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
630
+ **makeClaim**(collectionId: string, params: any) → `Promise<any>`
631
+ Make a claim for a claim set.
265
632
 
266
- **getAllTags**(collectionId: string, claimSetId: string) → `any[]`
267
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
633
+ **assignClaims**(collectionId: string, data: any) → `Promise<any>`
634
+ Assign claims to a claim set.
268
635
 
269
- **getReport**(collectionId: string, claimSetId: string) → `any`
270
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
636
+ **updateClaimData**(collectionId: string, data: any) → `Promise<any>`
637
+ Update claim data for a collection.
271
638
 
272
- **getAssignedTags**(collectionId: string, claimSetId: string) → `any`
273
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
639
+ **getAllForCollection**(collectionId: string) → `Promise<any[]>`
640
+ Get all claim sets for a collection.
274
641
 
275
- **getTagSummary**(collectionId: string) → `any`
276
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
642
+ **getForCollection**(collectionId: string, claimSetId: string) → `Promise<any>`
643
+ Get a specific claim set for a collection.
277
644
 
278
- **tagQuery**(collectionId: string, data: any) → `any`
279
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
645
+ **getAllTags**(collectionId: string, claimSetId: string) → `Promise<any[]>`
646
+ Get all tags for a claim set.
280
647
 
281
- **createForCollection**(collectionId: string, params: any) → `any`
282
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
648
+ **getReport**(collectionId: string, claimSetId: string) → `Promise<any>`
649
+ Get a report for a claim set.
283
650
 
284
- **updateForCollection**(collectionId: string, params: any) → `any`
285
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
651
+ **getAssignedTags**(collectionId: string, claimSetId: string) → `Promise<any>`
652
+ Get assigned tags for a claim set.
286
653
 
287
- **makeClaim**(collectionId: string, params: any) → `any`
288
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
654
+ **getTagSummary**(collectionId: string) → `Promise<any>`
655
+ Get tag summary for a collection.
289
656
 
290
- **assignClaims**(collectionId: string, data: any) → `any`
291
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
657
+ **tagQuery**(collectionId: string, data: any) → `Promise<any>`
658
+ Perform a tag query for a collection.
292
659
 
293
- **updateClaimData**(collectionId: string, data: any) → `any`
294
- Get all claim sets for a collection. @param collectionId – The collection identifier @returns Promise resolving to an array of claim sets
660
+ **createForCollection**(collectionId: string, params: any) → `Promise<any>`
661
+ Create a new claim set for a collection.
662
+
663
+ **updateForCollection**(collectionId: string, params: any) → `Promise<any>`
664
+ Update a claim set for a collection.
665
+
666
+ **makeClaim**(collectionId: string, params: any) → `Promise<any>`
667
+ Make a claim for a claim set.
668
+
669
+ **assignClaims**(collectionId: string, data: any) → `Promise<any>`
670
+ Assign claims to a claim set.
671
+
672
+ **updateClaimData**(collectionId: string, data: any) → `Promise<any>`
673
+ Update claim data for a collection.
295
674
 
296
675
  ### collection
297
676
 
298
- **get**(collectionId: string, admin?: boolean) → `CollectionResponse`
299
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
677
+ **get**(collectionId: string, admin?: boolean) → `Promise<CollectionResponse>`
678
+ Retrieves a single Collection by its ID.
300
679
 
301
- **list**(admin?: boolean) → `CollectionResponse[]`
302
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
680
+ **list**(admin?: boolean) → `Promise<CollectionResponse[]>`
681
+ Retrieves all Collections.
303
682
 
304
- **create**(data: any) → `CollectionResponse`
305
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
683
+ **create**(data: any) → `Promise<CollectionResponse>`
684
+ Create a new collection (admin only).
306
685
 
307
- **update**(collectionId: string, data: any) → `CollectionResponse`
308
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
686
+ **update**(collectionId: string, data: any) → `Promise<CollectionResponse>`
687
+ Update a collection (admin only).
309
688
 
310
- **remove**(collectionId: string) → `void`
311
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
689
+ **remove**(collectionId: string) → `Promise<void>`
690
+ Delete a collection (admin only).
312
691
 
313
- **getSN**(collectionId: string, startIndex: number = 0, count: number = 10) → `any`
314
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
692
+ **getSN**(collectionId: string,
693
+ startIndex: number = 0,
694
+ count: number = 10) → `Promise<any>`
695
+ Get serial numbers for a collection (admin only).
315
696
 
316
- **lookupSN**(collectionId: string, codeId: string) → `any`
317
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
697
+ **lookupSN**(collectionId: string,
698
+ codeId: string) `Promise<any>`
699
+ Look up a serial number by code for a collection (admin only).
318
700
 
319
- **assignSN**(collectionId: string, codeId: string, value: any) → `any`
320
- Retrieves a single Collection by its ID. @param collectionId – Identifier of the collection @param admin – If true, fetches from the admin endpoint @returns Promise resolving to a CollectionResponse object @throws ErrorResponse if the request fails
701
+ **assignSN**(collectionId: string,
702
+ codeId: string,
703
+ value: any) → `Promise<any>`
704
+ Assign a value to a serial number for a collection (admin only).
321
705
 
322
- ### crate
706
+ **get**(collectionId: string, admin?: boolean) → `Promise<CollectionResponse>`
707
+ Retrieves a single Collection by its ID.
323
708
 
324
- **get**(collectionId: string, crateId: string) → `any`
325
- Get a single crate by ID for a collection (admin only).
709
+ **list**(admin?: boolean) → `Promise<CollectionResponse[]>`
710
+ Retrieves all Collections.
326
711
 
327
- **list**(collectionId: string) → `any[]`
328
- Get a single crate by ID for a collection (admin only).
712
+ **create**(data: any) → `Promise<CollectionResponse>`
713
+ Create a new collection (admin only).
329
714
 
330
- **create**(collectionId: string, data: any) → `any`
331
- Get a single crate by ID for a collection (admin only).
715
+ **update**(collectionId: string, data: any) → `Promise<CollectionResponse>`
716
+ Update a collection (admin only).
332
717
 
333
- **update**(collectionId: string, crateId: string, data: any) → `any`
334
- Get a single crate by ID for a collection (admin only).
718
+ **remove**(collectionId: string) → `Promise<void>`
719
+ Delete a collection (admin only).
335
720
 
336
- **remove**(collectionId: string, crateId: string) → `void`
721
+ **getSN**(collectionId: string,
722
+ startIndex: number = 0,
723
+ count: number = 10) → `Promise<any>`
724
+ Get serial numbers for a collection (admin only).
725
+
726
+ **lookupSN**(collectionId: string,
727
+ codeId: string) → `Promise<any>`
728
+ Look up a serial number by code for a collection (admin only).
729
+
730
+ **assignSN**(collectionId: string,
731
+ codeId: string,
732
+ value: any) → `Promise<any>`
733
+ Assign a value to a serial number for a collection (admin only).
734
+
735
+ ### crate
736
+
737
+ **get**(collectionId: string, crateId: string) → `Promise<any>`
337
738
  Get a single crate by ID for a collection (admin only).
338
739
 
339
- ### form
740
+ **list**(collectionId: string) → `Promise<any[]>`
741
+ List all crates for a collection (admin only).
340
742
 
341
- **get**(collectionId: string, formId: string, admin?: boolean) → `any`
342
- Get a single form by ID for a collection. @param collectionId – The collection identifier @param formId – The form identifier @param admin – If true, use admin endpoint; otherwise, use public
743
+ **create**(collectionId: string, data: any) → `Promise<any>`
744
+ Create a new crate for a collection (admin only).
343
745
 
344
- **list**(collectionId: string, admin?: boolean) → `any[]`
345
- Get a single form by ID for a collection. @param collectionId – The collection identifier @param formId – The form identifier @param admin – If true, use admin endpoint; otherwise, use public
746
+ **update**(collectionId: string, crateId: string, data: any) → `Promise<any>`
747
+ Update a crate for a collection (admin only).
346
748
 
347
- **create**(collectionId: string, data: any) → `any`
348
- Get a single form by ID for a collection. @param collectionId – The collection identifier @param formId – The form identifier @param admin – If true, use admin endpoint; otherwise, use public
749
+ **remove**(collectionId: string, crateId: string) → `Promise<void>`
750
+ Delete a crate for a collection (admin only).
349
751
 
350
- **update**(collectionId: string, formId: string, data: any) → `any`
351
- Get a single form by ID for a collection. @param collectionId – The collection identifier @param formId – The form identifier @param admin – If true, use admin endpoint; otherwise, use public
752
+ **get**(collectionId: string, crateId: string) → `Promise<any>`
753
+ Get a single crate by ID for a collection (admin only).
352
754
 
353
- **remove**(collectionId: string, formId: string) → `void`
354
- Get a single form by ID for a collection. @param collectionId – The collection identifier @param formId – The form identifier @param admin – If true, use admin endpoint; otherwise, use public
755
+ **list**(collectionId: string) → `Promise<any[]>`
756
+ List all crates for a collection (admin only).
355
757
 
356
- ### product
758
+ **create**(collectionId: string, data: any) → `Promise<any>`
759
+ Create a new crate for a collection (admin only).
357
760
 
358
- **get**(collectionId: string, productId: string, admin?: boolean) → `ProductResponse`
359
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
761
+ **update**(collectionId: string, crateId: string, data: any) → `Promise<any>`
762
+ Update a crate for a collection (admin only).
360
763
 
361
- **list**(collectionId: string, admin?: boolean) → `ProductResponse[]`
362
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
764
+ **remove**(collectionId: string, crateId: string) → `Promise<void>`
765
+ Delete a crate for a collection (admin only).
363
766
 
364
- **create**(collectionId: string, data: any) → `ProductResponse`
365
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin – If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
767
+ ### form
366
768
 
367
- **update**(collectionId: string, productId: string, data: any) → `ProductResponse`
368
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin – If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
769
+ **get**(collectionId: string, formId: string, admin?: boolean) → `Promise<any>`
770
+ Get a single form by ID for a collection.
369
771
 
370
- **remove**(collectionId: string, productId: string) → `void`
371
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin – If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
772
+ **list**(collectionId: string, admin?: boolean) → `Promise<any[]>`
773
+ List all forms for a collection.
372
774
 
373
- **getSN**(collectionId: string, productId: string, startIndex: number = 0, count: number = 10) → `any`
374
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
775
+ **create**(collectionId: string, data: any) → `Promise<any>`
776
+ Create a new form for a collection (admin only).
375
777
 
376
- **lookupSN**(collectionId: string, productId: string, codeId: string) → `any`
377
- Retrieves a single Product Item by Collection ID and Product ID. @param collectionId – Identifier of the parent collection @param productId – Identifier of the product item @param admin If true, use admin endpoint; otherwise, use public @returns Promise resolving to a ProductResponse object @throws ErrorResponse if the request fails
778
+ **update**(collectionId: string, formId: string, data: any) → `Promise<any>`
779
+ Update a form for a collection (admin only).
378
780
 
379
- ### proof
781
+ **remove**(collectionId: string, formId: string) → `Promise<void>`
782
+ Delete a form for a collection (admin only).
380
783
 
381
- **get**(collectionId: string, proofId: string) → `ProofResponse`
382
- Retrieves a single Proof by Collection ID and Proof ID. @param collectionId – Identifier of the parent collection @param proofId – Identifier of the proof @returns Promise resolving to a ProofResponse object @throws ErrorResponse if the request fails
784
+ **get**(collectionId: string, formId: string, admin?: boolean) → `Promise<any>`
785
+ Get a single form by ID for a collection.
383
786
 
384
- **list**(collectionId: string) → `ProofResponse[]`
385
- Retrieves a single Proof by Collection ID and Proof ID. @param collectionId – Identifier of the parent collection @param proofId – Identifier of the proof @returns Promise resolving to a ProofResponse object @throws ErrorResponse if the request fails
787
+ **list**(collectionId: string, admin?: boolean) → `Promise<any[]>`
788
+ List all forms for a collection.
386
789
 
387
- ### variant
790
+ **create**(collectionId: string, data: any) → `Promise<any>`
791
+ Create a new form for a collection (admin only).
792
+
793
+ **update**(collectionId: string, formId: string, data: any) → `Promise<any>`
794
+ Update a form for a collection (admin only).
795
+
796
+ **remove**(collectionId: string, formId: string) → `Promise<void>`
797
+ Delete a form for a collection (admin only).
388
798
 
389
- **get**(collectionId: string, productId: string, variantId: string) → `VariantResponse`
390
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
799
+ ### product
800
+
801
+ **get**(collectionId: string,
802
+ productId: string,
803
+ admin?: boolean) → `Promise<ProductResponse>`
804
+ Retrieves a single Product Item by Collection ID and Product ID.
805
+
806
+ **list**(collectionId: string,
807
+ admin?: boolean) → `Promise<ProductResponse[]>`
808
+ List all Product Items for a Collection.
809
+
810
+ **create**(collectionId: string,
811
+ data: any) → `Promise<ProductResponse>`
812
+ Create a new product for a collection (admin only).
813
+
814
+ **update**(collectionId: string,
815
+ productId: string,
816
+ data: any) → `Promise<ProductResponse>`
817
+ Update a product for a collection (admin only).
818
+
819
+ **remove**(collectionId: string,
820
+ productId: string) → `Promise<void>`
821
+ Delete a product for a collection (admin only).
822
+
823
+ **getSN**(collectionId: string,
824
+ productId: string,
825
+ startIndex: number = 0,
826
+ count: number = 10) → `Promise<any>`
827
+ Get serial numbers for a product (admin only).
828
+
829
+ **lookupSN**(collectionId: string,
830
+ productId: string,
831
+ codeId: string) → `Promise<any>`
832
+ Look up a serial number by code for a product (admin only).
833
+
834
+ **get**(collectionId: string,
835
+ productId: string,
836
+ admin?: boolean) → `Promise<ProductResponse>`
837
+ Retrieves a single Product Item by Collection ID and Product ID.
838
+
839
+ **list**(collectionId: string,
840
+ admin?: boolean) → `Promise<ProductResponse[]>`
841
+ List all Product Items for a Collection.
842
+
843
+ **create**(collectionId: string,
844
+ data: any) → `Promise<ProductResponse>`
845
+ Create a new product for a collection (admin only).
846
+
847
+ **update**(collectionId: string,
848
+ productId: string,
849
+ data: any) → `Promise<ProductResponse>`
850
+ Update a product for a collection (admin only).
851
+
852
+ **remove**(collectionId: string,
853
+ productId: string) → `Promise<void>`
854
+ Delete a product for a collection (admin only).
855
+
856
+ **getSN**(collectionId: string,
857
+ productId: string,
858
+ startIndex: number = 0,
859
+ count: number = 10) → `Promise<any>`
860
+ Get serial numbers for a product (admin only).
861
+
862
+ **lookupSN**(collectionId: string,
863
+ productId: string,
864
+ codeId: string) → `Promise<any>`
865
+ Look up a serial number by code for a product (admin only).
391
866
 
392
- **list**(collectionId: string, productId: string) → `VariantResponse[]`
393
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
867
+ ### proof
394
868
 
395
- **create**(collectionId: string, productId: string, data: VariantCreateRequest) → `VariantResponse`
396
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
869
+ **get**(collectionId: string,
870
+ proofId: string) `Promise<ProofResponse>`
871
+ Retrieves a single Proof by Collection ID and Proof ID.
397
872
 
398
- **update**(collectionId: string, productId: string, variantId: string, data: VariantUpdateRequest) → `VariantResponse`
399
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
873
+ **list**(collectionId: string) → `Promise<ProofResponse[]>`
874
+ List all Proofs for a Collection.
400
875
 
401
- **remove**(collectionId: string, productId: string, variantId: string) → `void`
402
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
876
+ **get**(collectionId: string,
877
+ proofId: string) `Promise<ProofResponse>`
878
+ Retrieves a single Proof by Collection ID and Proof ID.
403
879
 
404
- **getPublic**(collectionId: string, productId: string, variantId: string) → `VariantResponse`
405
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
880
+ **list**(collectionId: string) → `Promise<ProofResponse[]>`
881
+ List all Proofs for a Collection.
406
882
 
407
- **getSN**(collectionId: string, productId: string, variantId: string, startIndex: number = 0, count: number = 10) → `any`
408
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
883
+ ### variant
409
884
 
410
- **lookupSN**(collectionId: string, productId: string, variantId: string, codeId: string) → `any`
411
- Get a single variant by ID for a collection and product (admin only). @param collectionId - Identifier of the parent collection @param productId - Identifier of the parent product @param variantId - Identifier of the variant @returns Promise resolving to a VariantResponse object @throws ErrorResponse if the request fails
885
+ **get**(collectionId: string,
886
+ productId: string,
887
+ variantId: string) → `Promise<VariantResponse>`
888
+ Get a single variant by ID for a collection and product (admin only).
889
+
890
+ **list**(collectionId: string,
891
+ productId: string) → `Promise<VariantResponse[]>`
892
+ List all variants for a collection and product (admin only).
893
+
894
+ **create**(collectionId: string,
895
+ productId: string,
896
+ data: VariantCreateRequest) → `Promise<VariantResponse>`
897
+ Create a new variant for a collection and product (admin only).
898
+
899
+ **update**(collectionId: string,
900
+ productId: string,
901
+ variantId: string,
902
+ data: VariantUpdateRequest) → `Promise<VariantResponse>`
903
+ Update a variant for a collection and product (admin only).
904
+
905
+ **remove**(collectionId: string,
906
+ productId: string,
907
+ variantId: string) → `Promise<void>`
908
+ Delete a variant for a collection and product (admin only).
909
+
910
+ **getPublic**(collectionId: string,
911
+ productId: string,
912
+ variantId: string) → `Promise<VariantResponse>`
913
+ Get a single variant by ID for a collection and product (public endpoint).
914
+
915
+ **getSN**(collectionId: string,
916
+ productId: string,
917
+ variantId: string,
918
+ startIndex: number = 0,
919
+ count: number = 10) → `Promise<any>`
920
+ Get serial numbers for a variant (admin only).
921
+
922
+ **lookupSN**(collectionId: string,
923
+ productId: string,
924
+ variantId: string,
925
+ codeId: string) → `Promise<any>`
926
+ Look up a serial number by code for a variant (admin only).
927
+
928
+ **get**(collectionId: string,
929
+ productId: string,
930
+ variantId: string) → `Promise<VariantResponse>`
931
+ Get a single variant by ID for a collection and product (admin only).
932
+
933
+ **list**(collectionId: string,
934
+ productId: string) → `Promise<VariantResponse[]>`
935
+ List all variants for a collection and product (admin only).
936
+
937
+ **create**(collectionId: string,
938
+ productId: string,
939
+ data: VariantCreateRequest) → `Promise<VariantResponse>`
940
+ Create a new variant for a collection and product (admin only).
941
+
942
+ **update**(collectionId: string,
943
+ productId: string,
944
+ variantId: string,
945
+ data: VariantUpdateRequest) → `Promise<VariantResponse>`
946
+ Update a variant for a collection and product (admin only).
947
+
948
+ **remove**(collectionId: string,
949
+ productId: string,
950
+ variantId: string) → `Promise<void>`
951
+ Delete a variant for a collection and product (admin only).
952
+
953
+ **getPublic**(collectionId: string,
954
+ productId: string,
955
+ variantId: string) → `Promise<VariantResponse>`
956
+ Get a single variant by ID for a collection and product (public endpoint).
957
+
958
+ **getSN**(collectionId: string,
959
+ productId: string,
960
+ variantId: string,
961
+ startIndex: number = 0,
962
+ count: number = 10) → `Promise<any>`
963
+ Get serial numbers for a variant (admin only).
964
+
965
+ **lookupSN**(collectionId: string,
966
+ productId: string,
967
+ variantId: string,
968
+ codeId: string) → `Promise<any>`
969
+ Look up a serial number by code for a variant (admin only).
412
970