@proveanything/smartlinks 1.0.39 → 1.0.41

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.
package/API_SUMMARY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.0.39 | Generated: 2025-10-07T14:54:51.574Z
3
+ Version: 1.0.41 | Generated: 2025-11-16T09:32:15.868Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -121,6 +121,21 @@ interface AttestationUpdateRequest {
121
121
  }
122
122
  ```
123
123
 
124
+ ### auth
125
+
126
+ **UserAccountRegistrationRequest** (type)
127
+ ```typescript
128
+ type UserAccountRegistrationRequest = {
129
+ name: string
130
+ email?: string
131
+ phone?: string
132
+ password?: string
133
+ sendAccountConfirmation?: boolean
134
+ collectionId?: string,
135
+ tokenType?: 'bearer' | 'firebase'
136
+ }
137
+ ```
138
+
124
139
  ### batch
125
140
 
126
141
  **BatchResponse** = `any`
@@ -271,7 +286,7 @@ interface ProofResponse {
271
286
 
272
287
  **VariantUpdateRequest** = `any`
273
288
 
274
- ### ai
289
+ ### ai (api)
275
290
 
276
291
  **AIGenerateContentRequest** (interface)
277
292
  ```typescript
@@ -317,7 +332,11 @@ interface AISearchPhotosPhoto {
317
332
  }
318
333
  ```
319
334
 
320
- **AppConfigOptions** = `{
335
+ ### appConfiguration (api)
336
+
337
+ **AppConfigOptions** (type)
338
+ ```typescript
339
+ type AppConfigOptions = {
321
340
  appId: string
322
341
  collectionId?: string
323
342
  productId?: string
@@ -329,27 +348,36 @@ interface AISearchPhotosPhoto {
329
348
  admin?: boolean
330
349
  config?: any
331
350
  data?: any
332
- }`
351
+ }
352
+ ```
333
353
 
334
- ### auth
354
+ ### auth (api)
335
355
 
336
- **LoginResponse** = `{
356
+ **LoginResponse** (type)
357
+ ```typescript
358
+ type LoginResponse = {
337
359
  id: string
338
360
  name: string
339
361
  email: string
340
362
  bearerToken: string
341
363
  account: Record<string, any>
342
- }`
364
+ }
365
+ ```
343
366
 
344
- **VerifyTokenResponse** = `{
367
+ **VerifyTokenResponse** (type)
368
+ ```typescript
369
+ type VerifyTokenResponse = {
345
370
  valid: boolean
346
371
  id?: string
347
372
  name?: string
348
373
  email?: string
349
374
  account?: Record<string, any>
350
- }`
375
+ }
376
+ ```
351
377
 
352
- **AccountInfoResponse** = `{
378
+ **AccountInfoResponse** (type)
379
+ ```typescript
380
+ type AccountInfoResponse = {
353
381
  accessType: string;
354
382
  analyticsCode: string;
355
383
  analyticsId: string;
@@ -381,7 +409,8 @@ interface AISearchPhotosPhoto {
381
409
  whitelabel: {
382
410
  [key: string]: any;
383
411
  }
384
- }`
412
+ }
413
+ ```
385
414
 
386
415
  ## API Functions
387
416
 
@@ -408,27 +437,6 @@ Create or warm a cache for AI (admin)
408
437
  **postChat**(collectionId: string, params: any, admin: boolean = true) → `Promise<any>`
409
438
  Post a chat message to the AI (admin or public)
410
439
 
411
- **generateContent**(collectionId: string,
412
- params: AIGenerateContentRequest,
413
- admin: boolean = true) → `Promise<any>`
414
- Generate text/content via AI (admin)
415
-
416
- **generateImage**(collectionId: string, params: AIGenerateImageRequest) → `Promise<any>`
417
- Generate an image via AI (admin)
418
-
419
- **searchPhotos**(collectionId: string,
420
- params: AISearchPhotosRequest) → `Promise<AISearchPhotosPhoto[]>`
421
- Search stock photos or similar via AI (admin)
422
-
423
- **uploadFile**(collectionId: string, params: any) → `Promise<any>`
424
- Upload a file for AI usage (admin). Pass FormData for binary uploads.
425
-
426
- **createCache**(collectionId: string, params: any) → `Promise<any>`
427
- Create or warm a cache for AI (admin)
428
-
429
- **postChat**(collectionId: string, params: any, admin: boolean = true) → `Promise<any>`
430
- Post a chat message to the AI (admin or public)
431
-
432
440
  ### appConfiguration
433
441
 
434
442
  **getConfig**(opts: AppConfigOptions) → `Promise<any>`
@@ -445,20 +453,6 @@ Post a chat message to the AI (admin or public)
445
453
 
446
454
  **deleteDataItem**(opts: AppConfigOptions) → `Promise<void>`
447
455
 
448
- **getConfig**(opts: AppConfigOptions) → `Promise<any>`
449
-
450
- **setConfig**(opts: AppConfigOptions) → `Promise<any>`
451
-
452
- **deleteConfig**(opts: AppConfigOptions) → `Promise<void>`
453
-
454
- **getData**(opts: AppConfigOptions) → `Promise<any[]>`
455
-
456
- **getDataItem**(opts: AppConfigOptions) → `Promise<any>`
457
-
458
- **setDataItem**(opts: AppConfigOptions) → `Promise<any>`
459
-
460
- **deleteDataItem**(opts: AppConfigOptions) → `Promise<void>`
461
-
462
456
  ### appRecord
463
457
 
464
458
  **get**(collectionId: string, appId: string) → `Promise<any>`
@@ -469,14 +463,6 @@ Post a chat message to the AI (admin or public)
469
463
 
470
464
  **remove**(collectionId: string, appId: string) → `Promise<void>`
471
465
 
472
- **get**(collectionId: string, appId: string) → `Promise<any>`
473
-
474
- **create**(collectionId: string, appId: string, data: any) → `Promise<any>`
475
-
476
- **update**(collectionId: string, appId: string, data: any) → `Promise<any>`
477
-
478
- **remove**(collectionId: string, appId: string) → `Promise<void>`
479
-
480
466
  ### asset
481
467
 
482
468
  **getForCollection**(collectionId: string,
@@ -509,36 +495,6 @@ Post a chat message to the AI (admin or public)
509
495
  onProgress?: (percent: number) → `void`
510
496
  Uploads an asset file to a proof, with optional extraData as JSON. Supports progress reporting via onProgress callback (browser only).
511
497
 
512
- **getForCollection**(collectionId: string,
513
- assetId: string) → `Promise<AssetResponse>`
514
-
515
- **listForCollection**(collectionId: string) → `Promise<AssetResponse[]>`
516
-
517
- **getForProduct**(collectionId: string,
518
- productId: string,
519
- assetId: string) → `Promise<AssetResponse>`
520
-
521
- **listForProduct**(collectionId: string,
522
- productId: string) → `Promise<AssetResponse[]>`
523
-
524
- **getForProof**(collectionId: string,
525
- productId: string,
526
- proofId: string,
527
- assetId: string) → `Promise<AssetResponse>`
528
-
529
- **listForProof**(collectionId: string,
530
- productId: string,
531
- proofId: string,
532
- appId?: string) → `Promise<AssetResponse[]>`
533
-
534
- **uploadAsset**(collectionId: string,
535
- productId: string,
536
- proofId: string,
537
- file: File,
538
- extraData?: Record<string, any>,
539
- onProgress?: (percent: number) → `void`
540
- Uploads an asset file to a proof, with optional extraData as JSON. Supports progress reporting via onProgress callback (browser only).
541
-
542
498
  ### attestation
543
499
 
544
500
  **list**(collectionId: string,
@@ -571,36 +527,6 @@ Update an attestation.
571
527
  attestationId: string) → `Promise<void>`
572
528
  Delete an attestation.
573
529
 
574
- **list**(collectionId: string,
575
- productId: string,
576
- proofId: string) → `Promise<AttestationResponse[]>`
577
- List all attestations for a proof.
578
-
579
- **get**(collectionId: string,
580
- productId: string,
581
- proofId: string,
582
- attestationId: string) → `Promise<AttestationResponse>`
583
- Get a single attestation by ID.
584
-
585
- **create**(collectionId: string,
586
- productId: string,
587
- proofId: string,
588
- data: AttestationCreateRequest) → `Promise<AttestationResponse>`
589
- Create a new attestation for a proof.
590
-
591
- **update**(collectionId: string,
592
- productId: string,
593
- proofId: string,
594
- attestationId: string,
595
- data: AttestationUpdateRequest) → `Promise<AttestationResponse>`
596
- Update an attestation.
597
-
598
- **remove**(collectionId: string,
599
- productId: string,
600
- proofId: string,
601
- attestationId: string) → `Promise<void>`
602
- Delete an attestation.
603
-
604
530
  ### auth
605
531
 
606
532
  **login**(email: string, password: string) → `Promise<LoginResponse>`
@@ -618,31 +544,8 @@ Requests an admin JWT for the current user and a specific collection Returns JWT
618
544
  **requestPublicJWT**(collectionId: string, productId: string, proofId: string) → `Promise<string>`
619
545
  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
620
546
 
621
- **getUserToken**(opts?: {
622
- email?: string
623
- collectionId?: string
624
- userId?: string
625
- expiry?: string
626
- }) → `Promise<`
627
- Admin: Get a user bearer token (impersonation/automation). POST /admin/auth/userToken All fields are optional; at least one identifier should be provided.
628
-
629
- **getAccount**() → `Promise<AccountInfoResponse>`
630
- Gets current account information for the logged in user. Returns user, owner, account, and location objects.
631
-
632
- **login**(email: string, password: string) → `Promise<LoginResponse>`
633
- Login with email and password. Sets the bearerToken for subsequent API calls.
634
-
635
- **logout**() → `void`
636
- Logout (clears bearerToken for future API calls).
637
-
638
- **verifyToken**(token?: string) → `Promise<VerifyTokenResponse>`
639
- Verifies the current bearerToken (or a provided token). Returns user/account info if valid.
640
-
641
- **requestAdminJWT**(collectionId: string) → `Promise<string>`
642
- Requests an admin JWT for the current user and a specific collection Returns JWT if valid.
643
-
644
- **requestPublicJWT**(collectionId: string, productId: string, proofId: string) → `Promise<string>`
645
- 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
547
+ **registerUser**(user: UserAccountRegistrationRequest) → `Promise<LoginResponse>`
548
+ Tries to register a new user account. Can return a bearer token, or a Firebase token
646
549
 
647
550
  **getUserToken**(opts?: {
648
551
  email?: string
@@ -700,49 +603,6 @@ Get serial numbers for a batch (admin only).
700
603
  codeId: string) → `Promise<any>`
701
604
  Look up a serial number by code for a batch (admin only).
702
605
 
703
- **get**(collectionId: string,
704
- productId: string,
705
- batchId: string) → `Promise<BatchResponse>`
706
- Get a single batch by ID for a collection and product (admin only).
707
-
708
- **list**(collectionId: string,
709
- productId: string) → `Promise<BatchResponse[]>`
710
- List all batches for a collection and product (admin only).
711
-
712
- **create**(collectionId: string,
713
- productId: string,
714
- data: BatchCreateRequest) → `Promise<BatchResponse>`
715
- Create a new batch for a collection and product (admin only).
716
-
717
- **update**(collectionId: string,
718
- productId: string,
719
- batchId: string,
720
- data: BatchUpdateRequest) → `Promise<BatchResponse>`
721
- Update a batch for a collection and product (admin only).
722
-
723
- **remove**(collectionId: string,
724
- productId: string,
725
- batchId: string) → `Promise<void>`
726
- Delete a batch for a collection and product (admin only).
727
-
728
- **getPublic**(collectionId: string,
729
- productId: string,
730
- batchId: string) → `Promise<BatchResponse>`
731
- Get a single batch by ID for a collection and product (public endpoint).
732
-
733
- **getSN**(collectionId: string,
734
- productId: string,
735
- batchId: string,
736
- startIndex: number = 0,
737
- count: number = 10) → `Promise<any>`
738
- Get serial numbers for a batch (admin only).
739
-
740
- **lookupSN**(collectionId: string,
741
- productId: string,
742
- batchId: string,
743
- codeId: string) → `Promise<any>`
744
- Look up a serial number by code for a batch (admin only).
745
-
746
606
  ### claimSet
747
607
 
748
608
  **getAllForCollection**(collectionId: string) → `Promise<any[]>`
@@ -781,42 +641,6 @@ Assign claims to a claim set. { id: string, // claim set id (required)
781
641
  **updateClaimData**(collectionId: string, data: UpdateClaimDataRequest) → `Promise<any>`
782
642
  Update claim data for a collection.
783
643
 
784
- **getAllForCollection**(collectionId: string) → `Promise<any[]>`
785
- Get all claim sets for a collection.
786
-
787
- **getForCollection**(collectionId: string, claimSetId: string) → `Promise<any>`
788
- Get a specific claim set for a collection.
789
-
790
- **getAllTags**(collectionId: string, claimSetId: string) → `Promise<any[]>`
791
- Get all tags for a claim set.
792
-
793
- **getReport**(collectionId: string, claimSetId: string) → `Promise<any>`
794
- Get a report for a claim set.
795
-
796
- **getAssignedTags**(collectionId: string, claimSetId: string) → `Promise<any>`
797
- Get assigned tags for a claim set.
798
-
799
- **getTagSummary**(collectionId: string) → `Promise<any>`
800
- Get tag summary for a collection.
801
-
802
- **tagQuery**(collectionId: string, data: any) → `Promise<any>`
803
- Perform a tag query for a collection.
804
-
805
- **createForCollection**(collectionId: string, params: any) → `Promise<any>`
806
- Create a new claim set for a collection.
807
-
808
- **updateForCollection**(collectionId: string, params: any) → `Promise<any>`
809
- Update a claim set for a collection.
810
-
811
- **makeClaim**(collectionId: string, params: any) → `Promise<any>`
812
- Make a claim for a claim set.
813
-
814
- **assignClaims**(collectionId: string, data: AssignClaimsRequest) → `Promise<any>`
815
- Assign claims to a claim set. { id: string, // claim set id (required) collectionId: string,// required productId: string, // required batchId?: string, // optional start?: number, // optional bulk range start end?: number, // optional bulk range end codeId?: string, // optional single code data?: { [k: string]: any } // optional claim key/values }
816
-
817
- **updateClaimData**(collectionId: string, data: UpdateClaimDataRequest) → `Promise<any>`
818
- Update claim data for a collection.
819
-
820
644
  ### collection
821
645
 
822
646
  **get**(collectionId: string, admin?: boolean) → `Promise<CollectionResponse>`
@@ -854,41 +678,6 @@ Look up a serial number by code for a collection (admin only).
854
678
  value: any) → `Promise<any>`
855
679
  Assign a value to a serial number for a collection (admin only).
856
680
 
857
- **get**(collectionId: string, admin?: boolean) → `Promise<CollectionResponse>`
858
- Retrieves a single Collection by its ID.
859
-
860
- **list**(admin?: boolean) → `Promise<CollectionResponse[]>`
861
- Retrieves all Collections.
862
-
863
- **getShortId**(shortId: string) → `Promise<CollectionResponse>`
864
- Retrieve a collection by its shortId (public endpoint).
865
-
866
- **getSettings**(collectionId: string, settingGroup: string) → `Promise<any>`
867
- Retrieve a specific settings group for a collection (public endpoint).
868
-
869
- **create**(data: any) → `Promise<CollectionResponse>`
870
- Create a new collection (admin only).
871
-
872
- **update**(collectionId: string, data: any) → `Promise<CollectionResponse>`
873
- Update a collection (admin only).
874
-
875
- **remove**(collectionId: string) → `Promise<void>`
876
- Delete a collection (admin only).
877
-
878
- **getSN**(collectionId: string,
879
- startIndex: number = 0,
880
- count: number = 10) → `Promise<any>`
881
- Get serial numbers for a collection (admin only).
882
-
883
- **lookupSN**(collectionId: string,
884
- codeId: string) → `Promise<any>`
885
- Look up a serial number by code for a collection (admin only).
886
-
887
- **assignSN**(collectionId: string,
888
- codeId: string,
889
- value: any) → `Promise<any>`
890
- Assign a value to a serial number for a collection (admin only).
891
-
892
681
  ### crate
893
682
 
894
683
  **get**(collectionId: string, crateId: string) → `Promise<any>`
@@ -906,21 +695,6 @@ Update a crate for a collection (admin only).
906
695
  **remove**(collectionId: string, crateId: string) → `Promise<void>`
907
696
  Delete a crate for a collection (admin only).
908
697
 
909
- **get**(collectionId: string, crateId: string) → `Promise<any>`
910
- Get a single crate by ID for a collection (admin only).
911
-
912
- **list**(collectionId: string) → `Promise<any[]>`
913
- List all crates for a collection (admin only).
914
-
915
- **create**(collectionId: string, data: any) → `Promise<any>`
916
- Create a new crate for a collection (admin only).
917
-
918
- **update**(collectionId: string, crateId: string, data: any) → `Promise<any>`
919
- Update a crate for a collection (admin only).
920
-
921
- **remove**(collectionId: string, crateId: string) → `Promise<void>`
922
- Delete a crate for a collection (admin only).
923
-
924
698
  ### form
925
699
 
926
700
  **get**(collectionId: string, formId: string, admin?: boolean) → `Promise<any>`
@@ -938,21 +712,6 @@ Update a form for a collection (admin only).
938
712
  **remove**(collectionId: string, formId: string) → `Promise<void>`
939
713
  Delete a form for a collection (admin only).
940
714
 
941
- **get**(collectionId: string, formId: string, admin?: boolean) → `Promise<any>`
942
- Get a single form by ID for a collection.
943
-
944
- **list**(collectionId: string, admin?: boolean) → `Promise<any[]>`
945
- List all forms for a collection.
946
-
947
- **create**(collectionId: string, data: any) → `Promise<any>`
948
- Create a new form for a collection (admin only).
949
-
950
- **update**(collectionId: string, formId: string, data: any) → `Promise<any>`
951
- Update a form for a collection (admin only).
952
-
953
- **remove**(collectionId: string, formId: string) → `Promise<void>`
954
- Delete a form for a collection (admin only).
955
-
956
715
  ### product
957
716
 
958
717
  **get**(collectionId: string,
@@ -988,48 +747,17 @@ Get serial numbers for a product (admin only).
988
747
  codeId: string) → `Promise<any>`
989
748
  Look up a serial number by code for a product (admin only).
990
749
 
991
- **get**(collectionId: string,
992
- productId: string,
993
- admin?: boolean) → `Promise<ProductResponse>`
994
- Retrieves a single Product Item by Collection ID and Product ID.
995
-
996
- **list**(collectionId: string,
997
- admin?: boolean) → `Promise<ProductResponse[]>`
998
- List all Product Items for a Collection.
999
-
1000
- **create**(collectionId: string,
1001
- data: ProductCreateRequest) → `Promise<ProductResponse>`
1002
- Create a new product for a collection (admin only). The `data` payload follows the same shape as ProductResponse minus `id` and `collectionId`.
1003
-
1004
- **update**(collectionId: string,
1005
- productId: string,
1006
- data: ProductUpdateRequest) → `Promise<ProductResponse>`
1007
- Update a product for a collection (admin only). The `data` payload is a partial of ProductResponse minus `id` and `collectionId`.
1008
-
1009
- **remove**(collectionId: string,
1010
- productId: string) → `Promise<void>`
1011
- Delete a product for a collection (admin only).
1012
-
1013
- **getSN**(collectionId: string,
1014
- productId: string,
1015
- startIndex: number = 0,
1016
- count: number = 10) → `Promise<any>`
1017
- Get serial numbers for a product (admin only).
1018
-
1019
- **lookupSN**(collectionId: string,
1020
- productId: string,
1021
- codeId: string) → `Promise<any>`
1022
- Look up a serial number by code for a product (admin only).
1023
-
1024
750
  ### proof
1025
751
 
1026
752
  **get**(collectionId: string,
1027
753
  productId: string,
1028
754
  proofId: string,
1029
- admin?: boolean) → `Promise<ProofResponse>`
755
+ admin?: boolean,
756
+ include?: string[]) → `Promise<ProofResponse>`
1030
757
  Retrieves a single Proof by Collection ID, Product ID, and Proof ID. Both public and admin endpoints now include productId in the path.
1031
758
 
1032
- **list**(collectionId: string) → `Promise<ProofResponse[]>`
759
+ **list**(collectionId: string,
760
+ include?: string[]) → `Promise<ProofResponse[]>`
1033
761
  List all Proofs for a Collection.
1034
762
 
1035
763
  **create**(collectionId: string,
@@ -1043,48 +771,11 @@ Create a proof for a product (admin only). POST /admin/collection/:collectionId/
1043
771
  values: any) → `Promise<ProofResponse>`
1044
772
  Update a proof for a product (admin only). PUT /admin/collection/:collectionId/product/:productId/proof/:proofId
1045
773
 
1046
- **remove**(collectionId: string,
1047
- productId: string,
1048
- proofId: string) → `Promise<void>`
1049
- Delete a proof for a product (admin only). DELETE /admin/collection/:collectionId/product/:productId/proof/:proofId
1050
-
1051
- **getByUser**(collectionId: string,
1052
- userId: string) → `Promise<ProofResponse[]>`
1053
- Get proofs for a user in a collection (admin only). GET /admin/collection/:collectionId/proof/findByUser/:userId
1054
-
1055
- **getByProduct**(collectionId: string,
1056
- productId: string) → `Promise<ProofResponse[]>`
1057
- Get proofs for a product (admin only). GET /admin/collection/:collectionId/product/:productId/proof
1058
-
1059
- **findByProduct**(collectionId: string,
1060
- productId: string,
1061
- query: any) → `Promise<ProofResponse[]>`
1062
- Find proofs for a product (admin only). POST /admin/collection/:collectionId/product/:productId/proof/find
1063
-
1064
- **getByBatch**(collectionId: string,
1065
- productId: string,
1066
- batchId: string) → `Promise<ProofResponse[]>`
1067
- Get proofs for a batch (admin only). GET /admin/collection/:collectionId/product/:productId/batch/:batchId/proof
1068
-
1069
- **get**(collectionId: string,
1070
- productId: string,
1071
- proofId: string,
1072
- admin?: boolean) → `Promise<ProofResponse>`
1073
- Retrieves a single Proof by Collection ID, Product ID, and Proof ID. Both public and admin endpoints now include productId in the path.
1074
-
1075
- **list**(collectionId: string) → `Promise<ProofResponse[]>`
1076
- List all Proofs for a Collection.
1077
-
1078
- **create**(collectionId: string,
1079
- productId: string,
1080
- values: any) → `Promise<ProofResponse>`
1081
- Create a proof for a product (admin only). POST /admin/collection/:collectionId/product/:productId/proof
1082
-
1083
- **update**(collectionId: string,
774
+ **claim**(collectionId: string,
1084
775
  productId: string,
1085
776
  proofId: string,
1086
777
  values: any) → `Promise<ProofResponse>`
1087
- Update a proof for a product (admin only). PUT /admin/collection/:collectionId/product/:productId/proof/:proofId
778
+ Claim a proof for a product. PUT /public/collection/:collectionId/product/:productId/proof/:proofId
1088
779
 
1089
780
  **remove**(collectionId: string,
1090
781
  productId: string,
@@ -1154,46 +845,3 @@ Get serial numbers for a variant (admin only).
1154
845
  codeId: string) → `Promise<any>`
1155
846
  Look up a serial number by code for a variant (admin only).
1156
847
 
1157
- **get**(collectionId: string,
1158
- productId: string,
1159
- variantId: string) → `Promise<VariantResponse>`
1160
- Get a single variant by ID for a collection and product (admin only).
1161
-
1162
- **list**(collectionId: string,
1163
- productId: string) → `Promise<VariantResponse[]>`
1164
- List all variants for a collection and product (admin only).
1165
-
1166
- **create**(collectionId: string,
1167
- productId: string,
1168
- data: VariantCreateRequest) → `Promise<VariantResponse>`
1169
- Create a new variant for a collection and product (admin only).
1170
-
1171
- **update**(collectionId: string,
1172
- productId: string,
1173
- variantId: string,
1174
- data: VariantUpdateRequest) → `Promise<VariantResponse>`
1175
- Update a variant for a collection and product (admin only).
1176
-
1177
- **remove**(collectionId: string,
1178
- productId: string,
1179
- variantId: string) → `Promise<void>`
1180
- Delete a variant for a collection and product (admin only).
1181
-
1182
- **getPublic**(collectionId: string,
1183
- productId: string,
1184
- variantId: string) → `Promise<VariantResponse>`
1185
- Get a single variant by ID for a collection and product (public endpoint).
1186
-
1187
- **getSN**(collectionId: string,
1188
- productId: string,
1189
- variantId: string,
1190
- startIndex: number = 0,
1191
- count: number = 10) → `Promise<any>`
1192
- Get serial numbers for a variant (admin only).
1193
-
1194
- **lookupSN**(collectionId: string,
1195
- productId: string,
1196
- variantId: string,
1197
- codeId: string) → `Promise<any>`
1198
- Look up a serial number by code for a variant (admin only).
1199
-