@proveanything/smartlinks 1.0.5 → 1.0.7

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/dist/api/asset.d.ts +21 -0
  2. package/dist/api/asset.js +100 -0
  3. package/dist/api/index.d.ts +1 -0
  4. package/dist/api/index.js +1 -0
  5. package/dist/http.d.ts +11 -0
  6. package/dist/http.js +47 -0
  7. package/dist/types/asset.d.ts +8 -0
  8. package/dist/types/asset.js +1 -0
  9. package/dist/types/index.d.ts +1 -0
  10. package/dist/types/index.js +1 -0
  11. package/docs/assets/navigation.js +1 -1
  12. package/docs/assets/search.js +1 -1
  13. package/docs/documentation.json +1395 -234
  14. package/docs/functions/appConfiguration.get.html +1 -1
  15. package/docs/functions/asset.getAllForCollection.html +1 -0
  16. package/docs/functions/asset.getAllForProduct.html +1 -0
  17. package/docs/functions/asset.getAllForProof.html +1 -0
  18. package/docs/functions/asset.getForCollection.html +1 -0
  19. package/docs/functions/asset.getForProduct.html +1 -0
  20. package/docs/functions/asset.getForProof.html +1 -0
  21. package/docs/functions/asset.uploadAsset.html +10 -0
  22. package/docs/functions/collection.get.html +1 -1
  23. package/docs/functions/initializeApi.html +1 -1
  24. package/docs/functions/product.get.html +1 -1
  25. package/docs/functions/product.getAll.html +1 -1
  26. package/docs/functions/proof.get.html +1 -1
  27. package/docs/functions/request.html +1 -1
  28. package/docs/index.html +50 -29
  29. package/docs/interfaces/AppConfigurationResponse.html +4 -4
  30. package/docs/interfaces/AssetResponse.html +5 -0
  31. package/docs/interfaces/CollectionResponse.html +5 -5
  32. package/docs/interfaces/ErrorResponse.html +3 -3
  33. package/docs/interfaces/ProductResponse.html +5 -5
  34. package/docs/interfaces/ProofResponse.html +8 -8
  35. package/docs/modules/appConfiguration.html +1 -1
  36. package/docs/modules/asset.html +8 -0
  37. package/docs/modules/collection.html +1 -1
  38. package/docs/modules/product.html +1 -1
  39. package/docs/modules/proof.html +1 -1
  40. package/docs/modules.html +2 -0
  41. package/examples/browser-demo.html +20 -9
  42. package/examples/node-demo.ts +18 -10
  43. package/examples/react-demo.tsx +29 -15
  44. package/package.json +1 -1
  45. package/src/api/asset.ts +133 -0
  46. package/src/api/index.ts +1 -0
  47. package/src/http.ts +54 -0
  48. package/src/types/asset.ts +9 -0
  49. package/src/types/index.ts +1 -0
@@ -22,7 +22,8 @@
22
22
  {
23
23
  "fileName": "api/appConfiguration.ts",
24
24
  "line": 13,
25
- "character": 24
25
+ "character": 24,
26
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/appConfiguration.ts#L13"
26
27
  }
27
28
  ],
28
29
  "signatures": [
@@ -64,7 +65,8 @@
64
65
  {
65
66
  "fileName": "api/appConfiguration.ts",
66
67
  "line": 13,
67
- "character": 24
68
+ "character": 24,
69
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/appConfiguration.ts#L13"
68
70
  }
69
71
  ],
70
72
  "parameters": [
@@ -116,7 +118,7 @@
116
118
  "typeArguments": [
117
119
  {
118
120
  "type": "reference",
119
- "target": 52,
121
+ "target": 92,
120
122
  "name": "AppConfigurationResponse",
121
123
  "package": "@proveanything/smartlinks"
122
124
  }
@@ -140,7 +142,788 @@
140
142
  {
141
143
  "fileName": "api/appConfiguration.ts",
142
144
  "line": 5,
143
- "character": 17
145
+ "character": 17,
146
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/appConfiguration.ts#L5"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "id": 34,
152
+ "name": "asset",
153
+ "variant": "declaration",
154
+ "kind": 4,
155
+ "flags": {},
156
+ "children": [
157
+ {
158
+ "id": 39,
159
+ "name": "getAllForCollection",
160
+ "variant": "declaration",
161
+ "kind": 64,
162
+ "flags": {},
163
+ "sources": [
164
+ {
165
+ "fileName": "api/asset.ts",
166
+ "line": 14,
167
+ "character": 24,
168
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L14"
169
+ }
170
+ ],
171
+ "signatures": [
172
+ {
173
+ "id": 40,
174
+ "name": "getAllForCollection",
175
+ "variant": "signature",
176
+ "kind": 4096,
177
+ "flags": {},
178
+ "sources": [
179
+ {
180
+ "fileName": "api/asset.ts",
181
+ "line": 14,
182
+ "character": 24,
183
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L14"
184
+ }
185
+ ],
186
+ "parameters": [
187
+ {
188
+ "id": 41,
189
+ "name": "collectionId",
190
+ "variant": "param",
191
+ "kind": 32768,
192
+ "flags": {},
193
+ "type": {
194
+ "type": "intrinsic",
195
+ "name": "string"
196
+ }
197
+ }
198
+ ],
199
+ "type": {
200
+ "type": "reference",
201
+ "target": {
202
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
203
+ "qualifiedName": "Promise"
204
+ },
205
+ "typeArguments": [
206
+ {
207
+ "type": "array",
208
+ "elementType": {
209
+ "type": "reference",
210
+ "target": 99,
211
+ "name": "AssetResponse",
212
+ "package": "@proveanything/smartlinks"
213
+ }
214
+ }
215
+ ],
216
+ "name": "Promise",
217
+ "package": "typescript"
218
+ }
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "id": 47,
224
+ "name": "getAllForProduct",
225
+ "variant": "declaration",
226
+ "kind": 64,
227
+ "flags": {},
228
+ "sources": [
229
+ {
230
+ "fileName": "api/asset.ts",
231
+ "line": 31,
232
+ "character": 24,
233
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L31"
234
+ }
235
+ ],
236
+ "signatures": [
237
+ {
238
+ "id": 48,
239
+ "name": "getAllForProduct",
240
+ "variant": "signature",
241
+ "kind": 4096,
242
+ "flags": {},
243
+ "sources": [
244
+ {
245
+ "fileName": "api/asset.ts",
246
+ "line": 31,
247
+ "character": 24,
248
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L31"
249
+ }
250
+ ],
251
+ "parameters": [
252
+ {
253
+ "id": 49,
254
+ "name": "collectionId",
255
+ "variant": "param",
256
+ "kind": 32768,
257
+ "flags": {},
258
+ "type": {
259
+ "type": "intrinsic",
260
+ "name": "string"
261
+ }
262
+ },
263
+ {
264
+ "id": 50,
265
+ "name": "productId",
266
+ "variant": "param",
267
+ "kind": 32768,
268
+ "flags": {},
269
+ "type": {
270
+ "type": "intrinsic",
271
+ "name": "string"
272
+ }
273
+ }
274
+ ],
275
+ "type": {
276
+ "type": "reference",
277
+ "target": {
278
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
279
+ "qualifiedName": "Promise"
280
+ },
281
+ "typeArguments": [
282
+ {
283
+ "type": "array",
284
+ "elementType": {
285
+ "type": "reference",
286
+ "target": 99,
287
+ "name": "AssetResponse",
288
+ "package": "@proveanything/smartlinks"
289
+ }
290
+ }
291
+ ],
292
+ "name": "Promise",
293
+ "package": "typescript"
294
+ }
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "id": 57,
300
+ "name": "getAllForProof",
301
+ "variant": "declaration",
302
+ "kind": 64,
303
+ "flags": {},
304
+ "sources": [
305
+ {
306
+ "fileName": "api/asset.ts",
307
+ "line": 50,
308
+ "character": 24,
309
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L50"
310
+ }
311
+ ],
312
+ "signatures": [
313
+ {
314
+ "id": 58,
315
+ "name": "getAllForProof",
316
+ "variant": "signature",
317
+ "kind": 4096,
318
+ "flags": {},
319
+ "sources": [
320
+ {
321
+ "fileName": "api/asset.ts",
322
+ "line": 50,
323
+ "character": 24,
324
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L50"
325
+ }
326
+ ],
327
+ "parameters": [
328
+ {
329
+ "id": 59,
330
+ "name": "collectionId",
331
+ "variant": "param",
332
+ "kind": 32768,
333
+ "flags": {},
334
+ "type": {
335
+ "type": "intrinsic",
336
+ "name": "string"
337
+ }
338
+ },
339
+ {
340
+ "id": 60,
341
+ "name": "productId",
342
+ "variant": "param",
343
+ "kind": 32768,
344
+ "flags": {},
345
+ "type": {
346
+ "type": "intrinsic",
347
+ "name": "string"
348
+ }
349
+ },
350
+ {
351
+ "id": 61,
352
+ "name": "proofId",
353
+ "variant": "param",
354
+ "kind": 32768,
355
+ "flags": {},
356
+ "type": {
357
+ "type": "intrinsic",
358
+ "name": "string"
359
+ }
360
+ },
361
+ {
362
+ "id": 62,
363
+ "name": "appId",
364
+ "variant": "param",
365
+ "kind": 32768,
366
+ "flags": {
367
+ "isOptional": true
368
+ },
369
+ "type": {
370
+ "type": "intrinsic",
371
+ "name": "string"
372
+ }
373
+ }
374
+ ],
375
+ "type": {
376
+ "type": "reference",
377
+ "target": {
378
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
379
+ "qualifiedName": "Promise"
380
+ },
381
+ "typeArguments": [
382
+ {
383
+ "type": "array",
384
+ "elementType": {
385
+ "type": "reference",
386
+ "target": 99,
387
+ "name": "AssetResponse",
388
+ "package": "@proveanything/smartlinks"
389
+ }
390
+ }
391
+ ],
392
+ "name": "Promise",
393
+ "package": "typescript"
394
+ }
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "id": 35,
400
+ "name": "getForCollection",
401
+ "variant": "declaration",
402
+ "kind": 64,
403
+ "flags": {},
404
+ "sources": [
405
+ {
406
+ "fileName": "api/asset.ts",
407
+ "line": 6,
408
+ "character": 24,
409
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L6"
410
+ }
411
+ ],
412
+ "signatures": [
413
+ {
414
+ "id": 36,
415
+ "name": "getForCollection",
416
+ "variant": "signature",
417
+ "kind": 4096,
418
+ "flags": {},
419
+ "sources": [
420
+ {
421
+ "fileName": "api/asset.ts",
422
+ "line": 6,
423
+ "character": 24,
424
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L6"
425
+ }
426
+ ],
427
+ "parameters": [
428
+ {
429
+ "id": 37,
430
+ "name": "collectionId",
431
+ "variant": "param",
432
+ "kind": 32768,
433
+ "flags": {},
434
+ "type": {
435
+ "type": "intrinsic",
436
+ "name": "string"
437
+ }
438
+ },
439
+ {
440
+ "id": 38,
441
+ "name": "assetId",
442
+ "variant": "param",
443
+ "kind": 32768,
444
+ "flags": {},
445
+ "type": {
446
+ "type": "intrinsic",
447
+ "name": "string"
448
+ }
449
+ }
450
+ ],
451
+ "type": {
452
+ "type": "reference",
453
+ "target": {
454
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
455
+ "qualifiedName": "Promise"
456
+ },
457
+ "typeArguments": [
458
+ {
459
+ "type": "reference",
460
+ "target": 99,
461
+ "name": "AssetResponse",
462
+ "package": "@proveanything/smartlinks"
463
+ }
464
+ ],
465
+ "name": "Promise",
466
+ "package": "typescript"
467
+ }
468
+ }
469
+ ]
470
+ },
471
+ {
472
+ "id": 42,
473
+ "name": "getForProduct",
474
+ "variant": "declaration",
475
+ "kind": 64,
476
+ "flags": {},
477
+ "sources": [
478
+ {
479
+ "fileName": "api/asset.ts",
480
+ "line": 22,
481
+ "character": 24,
482
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L22"
483
+ }
484
+ ],
485
+ "signatures": [
486
+ {
487
+ "id": 43,
488
+ "name": "getForProduct",
489
+ "variant": "signature",
490
+ "kind": 4096,
491
+ "flags": {},
492
+ "sources": [
493
+ {
494
+ "fileName": "api/asset.ts",
495
+ "line": 22,
496
+ "character": 24,
497
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L22"
498
+ }
499
+ ],
500
+ "parameters": [
501
+ {
502
+ "id": 44,
503
+ "name": "collectionId",
504
+ "variant": "param",
505
+ "kind": 32768,
506
+ "flags": {},
507
+ "type": {
508
+ "type": "intrinsic",
509
+ "name": "string"
510
+ }
511
+ },
512
+ {
513
+ "id": 45,
514
+ "name": "productId",
515
+ "variant": "param",
516
+ "kind": 32768,
517
+ "flags": {},
518
+ "type": {
519
+ "type": "intrinsic",
520
+ "name": "string"
521
+ }
522
+ },
523
+ {
524
+ "id": 46,
525
+ "name": "assetId",
526
+ "variant": "param",
527
+ "kind": 32768,
528
+ "flags": {},
529
+ "type": {
530
+ "type": "intrinsic",
531
+ "name": "string"
532
+ }
533
+ }
534
+ ],
535
+ "type": {
536
+ "type": "reference",
537
+ "target": {
538
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
539
+ "qualifiedName": "Promise"
540
+ },
541
+ "typeArguments": [
542
+ {
543
+ "type": "reference",
544
+ "target": 99,
545
+ "name": "AssetResponse",
546
+ "package": "@proveanything/smartlinks"
547
+ }
548
+ ],
549
+ "name": "Promise",
550
+ "package": "typescript"
551
+ }
552
+ }
553
+ ]
554
+ },
555
+ {
556
+ "id": 51,
557
+ "name": "getForProof",
558
+ "variant": "declaration",
559
+ "kind": 64,
560
+ "flags": {},
561
+ "sources": [
562
+ {
563
+ "fileName": "api/asset.ts",
564
+ "line": 40,
565
+ "character": 24,
566
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L40"
567
+ }
568
+ ],
569
+ "signatures": [
570
+ {
571
+ "id": 52,
572
+ "name": "getForProof",
573
+ "variant": "signature",
574
+ "kind": 4096,
575
+ "flags": {},
576
+ "sources": [
577
+ {
578
+ "fileName": "api/asset.ts",
579
+ "line": 40,
580
+ "character": 24,
581
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L40"
582
+ }
583
+ ],
584
+ "parameters": [
585
+ {
586
+ "id": 53,
587
+ "name": "collectionId",
588
+ "variant": "param",
589
+ "kind": 32768,
590
+ "flags": {},
591
+ "type": {
592
+ "type": "intrinsic",
593
+ "name": "string"
594
+ }
595
+ },
596
+ {
597
+ "id": 54,
598
+ "name": "productId",
599
+ "variant": "param",
600
+ "kind": 32768,
601
+ "flags": {},
602
+ "type": {
603
+ "type": "intrinsic",
604
+ "name": "string"
605
+ }
606
+ },
607
+ {
608
+ "id": 55,
609
+ "name": "proofId",
610
+ "variant": "param",
611
+ "kind": 32768,
612
+ "flags": {},
613
+ "type": {
614
+ "type": "intrinsic",
615
+ "name": "string"
616
+ }
617
+ },
618
+ {
619
+ "id": 56,
620
+ "name": "assetId",
621
+ "variant": "param",
622
+ "kind": 32768,
623
+ "flags": {},
624
+ "type": {
625
+ "type": "intrinsic",
626
+ "name": "string"
627
+ }
628
+ }
629
+ ],
630
+ "type": {
631
+ "type": "reference",
632
+ "target": {
633
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
634
+ "qualifiedName": "Promise"
635
+ },
636
+ "typeArguments": [
637
+ {
638
+ "type": "reference",
639
+ "target": 99,
640
+ "name": "AssetResponse",
641
+ "package": "@proveanything/smartlinks"
642
+ }
643
+ ],
644
+ "name": "Promise",
645
+ "package": "typescript"
646
+ }
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "id": 63,
652
+ "name": "uploadAsset",
653
+ "variant": "declaration",
654
+ "kind": 64,
655
+ "flags": {},
656
+ "sources": [
657
+ {
658
+ "fileName": "api/asset.ts",
659
+ "line": 74,
660
+ "character": 24,
661
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L74"
662
+ }
663
+ ],
664
+ "signatures": [
665
+ {
666
+ "id": 64,
667
+ "name": "uploadAsset",
668
+ "variant": "signature",
669
+ "kind": 4096,
670
+ "flags": {},
671
+ "comment": {
672
+ "summary": [
673
+ {
674
+ "kind": "text",
675
+ "text": "Uploads an asset file to a proof, with optional extraData as JSON.\r\nSupports progress reporting via onProgress callback (browser only)."
676
+ }
677
+ ],
678
+ "blockTags": [
679
+ {
680
+ "tag": "@returns",
681
+ "content": [
682
+ {
683
+ "kind": "text",
684
+ "text": "Promise resolving to an AssetResponse object"
685
+ }
686
+ ]
687
+ }
688
+ ]
689
+ },
690
+ "sources": [
691
+ {
692
+ "fileName": "api/asset.ts",
693
+ "line": 74,
694
+ "character": 24,
695
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L74"
696
+ }
697
+ ],
698
+ "parameters": [
699
+ {
700
+ "id": 65,
701
+ "name": "collectionId",
702
+ "variant": "param",
703
+ "kind": 32768,
704
+ "flags": {},
705
+ "comment": {
706
+ "summary": [
707
+ {
708
+ "kind": "text",
709
+ "text": "The collection ID"
710
+ }
711
+ ]
712
+ },
713
+ "type": {
714
+ "type": "intrinsic",
715
+ "name": "string"
716
+ }
717
+ },
718
+ {
719
+ "id": 66,
720
+ "name": "productId",
721
+ "variant": "param",
722
+ "kind": 32768,
723
+ "flags": {},
724
+ "comment": {
725
+ "summary": [
726
+ {
727
+ "kind": "text",
728
+ "text": "The product ID"
729
+ }
730
+ ]
731
+ },
732
+ "type": {
733
+ "type": "intrinsic",
734
+ "name": "string"
735
+ }
736
+ },
737
+ {
738
+ "id": 67,
739
+ "name": "proofId",
740
+ "variant": "param",
741
+ "kind": 32768,
742
+ "flags": {},
743
+ "comment": {
744
+ "summary": [
745
+ {
746
+ "kind": "text",
747
+ "text": "The proof ID"
748
+ }
749
+ ]
750
+ },
751
+ "type": {
752
+ "type": "intrinsic",
753
+ "name": "string"
754
+ }
755
+ },
756
+ {
757
+ "id": 68,
758
+ "name": "file",
759
+ "variant": "param",
760
+ "kind": 32768,
761
+ "flags": {},
762
+ "comment": {
763
+ "summary": [
764
+ {
765
+ "kind": "text",
766
+ "text": "The file to upload"
767
+ }
768
+ ]
769
+ },
770
+ "type": {
771
+ "type": "reference",
772
+ "target": {
773
+ "sourceFileName": "node_modules/typescript/lib/lib.dom.d.ts",
774
+ "qualifiedName": "File"
775
+ },
776
+ "name": "File",
777
+ "package": "typescript"
778
+ }
779
+ },
780
+ {
781
+ "id": 69,
782
+ "name": "extraData",
783
+ "variant": "param",
784
+ "kind": 32768,
785
+ "flags": {
786
+ "isOptional": true
787
+ },
788
+ "comment": {
789
+ "summary": [
790
+ {
791
+ "kind": "text",
792
+ "text": "Arbitrary extra data to include (will be stringified as JSON)"
793
+ }
794
+ ]
795
+ },
796
+ "type": {
797
+ "type": "reference",
798
+ "target": {
799
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
800
+ "qualifiedName": "Record"
801
+ },
802
+ "typeArguments": [
803
+ {
804
+ "type": "intrinsic",
805
+ "name": "string"
806
+ },
807
+ {
808
+ "type": "intrinsic",
809
+ "name": "any"
810
+ }
811
+ ],
812
+ "name": "Record",
813
+ "package": "typescript"
814
+ }
815
+ },
816
+ {
817
+ "id": 70,
818
+ "name": "onProgress",
819
+ "variant": "param",
820
+ "kind": 32768,
821
+ "flags": {
822
+ "isOptional": true
823
+ },
824
+ "comment": {
825
+ "summary": [
826
+ {
827
+ "kind": "text",
828
+ "text": "Optional callback for upload progress (0-100)"
829
+ }
830
+ ]
831
+ },
832
+ "type": {
833
+ "type": "reflection",
834
+ "declaration": {
835
+ "id": 71,
836
+ "name": "__type",
837
+ "variant": "declaration",
838
+ "kind": 65536,
839
+ "flags": {},
840
+ "sources": [
841
+ {
842
+ "fileName": "api/asset.ts",
843
+ "line": 80,
844
+ "character": 17,
845
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L80"
846
+ }
847
+ ],
848
+ "signatures": [
849
+ {
850
+ "id": 72,
851
+ "name": "__type",
852
+ "variant": "signature",
853
+ "kind": 4096,
854
+ "flags": {},
855
+ "sources": [
856
+ {
857
+ "fileName": "api/asset.ts",
858
+ "line": 80,
859
+ "character": 17,
860
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L80"
861
+ }
862
+ ],
863
+ "parameters": [
864
+ {
865
+ "id": 73,
866
+ "name": "percent",
867
+ "variant": "param",
868
+ "kind": 32768,
869
+ "flags": {},
870
+ "type": {
871
+ "type": "intrinsic",
872
+ "name": "number"
873
+ }
874
+ }
875
+ ],
876
+ "type": {
877
+ "type": "intrinsic",
878
+ "name": "void"
879
+ }
880
+ }
881
+ ]
882
+ }
883
+ }
884
+ }
885
+ ],
886
+ "type": {
887
+ "type": "reference",
888
+ "target": {
889
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
890
+ "qualifiedName": "Promise"
891
+ },
892
+ "typeArguments": [
893
+ {
894
+ "type": "reference",
895
+ "target": 99,
896
+ "name": "AssetResponse",
897
+ "package": "@proveanything/smartlinks"
898
+ }
899
+ ],
900
+ "name": "Promise",
901
+ "package": "typescript"
902
+ }
903
+ }
904
+ ]
905
+ }
906
+ ],
907
+ "groups": [
908
+ {
909
+ "title": "Functions",
910
+ "children": [
911
+ 39,
912
+ 47,
913
+ 57,
914
+ 35,
915
+ 42,
916
+ 51,
917
+ 63
918
+ ]
919
+ }
920
+ ],
921
+ "sources": [
922
+ {
923
+ "fileName": "api/asset.ts",
924
+ "line": 4,
925
+ "character": 17,
926
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/asset.ts#L4"
144
927
  }
145
928
  ]
146
929
  },
@@ -161,7 +944,8 @@
161
944
  {
162
945
  "fileName": "api/collection.ts",
163
946
  "line": 12,
164
- "character": 24
947
+ "character": 24,
948
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/collection.ts#L12"
165
949
  }
166
950
  ],
167
951
  "signatures": [
@@ -203,7 +987,8 @@
203
987
  {
204
988
  "fileName": "api/collection.ts",
205
989
  "line": 12,
206
- "character": 24
990
+ "character": 24,
991
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/collection.ts#L12"
207
992
  }
208
993
  ],
209
994
  "parameters": [
@@ -236,7 +1021,7 @@
236
1021
  "typeArguments": [
237
1022
  {
238
1023
  "type": "reference",
239
- "target": 34,
1024
+ "target": 74,
240
1025
  "name": "CollectionResponse",
241
1026
  "package": "@proveanything/smartlinks"
242
1027
  }
@@ -260,7 +1045,8 @@
260
1045
  {
261
1046
  "fileName": "api/collection.ts",
262
1047
  "line": 5,
263
- "character": 17
1048
+ "character": 17,
1049
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/collection.ts#L5"
264
1050
  }
265
1051
  ]
266
1052
  },
@@ -281,7 +1067,8 @@
281
1067
  {
282
1068
  "fileName": "api/product.ts",
283
1069
  "line": 13,
284
- "character": 24
1070
+ "character": 24,
1071
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/product.ts#L13"
285
1072
  }
286
1073
  ],
287
1074
  "signatures": [
@@ -323,7 +1110,8 @@
323
1110
  {
324
1111
  "fileName": "api/product.ts",
325
1112
  "line": 13,
326
- "character": 24
1113
+ "character": 24,
1114
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/product.ts#L13"
327
1115
  }
328
1116
  ],
329
1117
  "parameters": [
@@ -375,7 +1163,7 @@
375
1163
  "typeArguments": [
376
1164
  {
377
1165
  "type": "reference",
378
- "target": 39,
1166
+ "target": 79,
379
1167
  "name": "ProductResponse",
380
1168
  "package": "@proveanything/smartlinks"
381
1169
  }
@@ -396,7 +1184,8 @@
396
1184
  {
397
1185
  "fileName": "api/product.ts",
398
1186
  "line": 29,
399
- "character": 24
1187
+ "character": 24,
1188
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/product.ts#L29"
400
1189
  }
401
1190
  ],
402
1191
  "signatures": [
@@ -438,7 +1227,8 @@
438
1227
  {
439
1228
  "fileName": "api/product.ts",
440
1229
  "line": 29,
441
- "character": 24
1230
+ "character": 24,
1231
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/product.ts#L29"
442
1232
  }
443
1233
  ],
444
1234
  "parameters": [
@@ -473,7 +1263,7 @@
473
1263
  "type": "array",
474
1264
  "elementType": {
475
1265
  "type": "reference",
476
- "target": 39,
1266
+ "target": 79,
477
1267
  "name": "ProductResponse",
478
1268
  "package": "@proveanything/smartlinks"
479
1269
  }
@@ -499,7 +1289,8 @@
499
1289
  {
500
1290
  "fileName": "api/product.ts",
501
1291
  "line": 5,
502
- "character": 17
1292
+ "character": 17,
1293
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/product.ts#L5"
503
1294
  }
504
1295
  ]
505
1296
  },
@@ -520,7 +1311,8 @@
520
1311
  {
521
1312
  "fileName": "api/proof.ts",
522
1313
  "line": 13,
523
- "character": 24
1314
+ "character": 24,
1315
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/proof.ts#L13"
524
1316
  }
525
1317
  ],
526
1318
  "signatures": [
@@ -562,7 +1354,8 @@
562
1354
  {
563
1355
  "fileName": "api/proof.ts",
564
1356
  "line": 13,
565
- "character": 24
1357
+ "character": 24,
1358
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/proof.ts#L13"
566
1359
  }
567
1360
  ],
568
1361
  "parameters": [
@@ -614,7 +1407,7 @@
614
1407
  "typeArguments": [
615
1408
  {
616
1409
  "type": "reference",
617
- "target": 44,
1410
+ "target": 84,
618
1411
  "name": "ProofResponse",
619
1412
  "package": "@proveanything/smartlinks"
620
1413
  }
@@ -638,12 +1431,13 @@
638
1431
  {
639
1432
  "fileName": "api/proof.ts",
640
1433
  "line": 5,
641
- "character": 17
1434
+ "character": 17,
1435
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/api/proof.ts#L5"
642
1436
  }
643
1437
  ]
644
1438
  },
645
1439
  {
646
- "id": 52,
1440
+ "id": 92,
647
1441
  "name": "AppConfigurationResponse",
648
1442
  "variant": "declaration",
649
1443
  "kind": 256,
@@ -658,7 +1452,7 @@
658
1452
  },
659
1453
  "children": [
660
1454
  {
661
- "id": 53,
1455
+ "id": 93,
662
1456
  "name": "id",
663
1457
  "variant": "declaration",
664
1458
  "kind": 1024,
@@ -675,7 +1469,133 @@
675
1469
  {
676
1470
  "fileName": "types/appConfiguration.ts",
677
1471
  "line": 7,
678
- "character": 2
1472
+ "character": 2,
1473
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/appConfiguration.ts#L7"
1474
+ }
1475
+ ],
1476
+ "type": {
1477
+ "type": "intrinsic",
1478
+ "name": "string"
1479
+ }
1480
+ },
1481
+ {
1482
+ "id": 94,
1483
+ "name": "name",
1484
+ "variant": "declaration",
1485
+ "kind": 1024,
1486
+ "flags": {},
1487
+ "comment": {
1488
+ "summary": [
1489
+ {
1490
+ "kind": "text",
1491
+ "text": "Name of the app configuration"
1492
+ }
1493
+ ]
1494
+ },
1495
+ "sources": [
1496
+ {
1497
+ "fileName": "types/appConfiguration.ts",
1498
+ "line": 9,
1499
+ "character": 2,
1500
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/appConfiguration.ts#L9"
1501
+ }
1502
+ ],
1503
+ "type": {
1504
+ "type": "intrinsic",
1505
+ "name": "string"
1506
+ }
1507
+ },
1508
+ {
1509
+ "id": 95,
1510
+ "name": "settings",
1511
+ "variant": "declaration",
1512
+ "kind": 1024,
1513
+ "flags": {
1514
+ "isOptional": true
1515
+ },
1516
+ "comment": {
1517
+ "summary": [
1518
+ {
1519
+ "kind": "text",
1520
+ "text": "Key-value pairs representing configuration settings"
1521
+ }
1522
+ ]
1523
+ },
1524
+ "sources": [
1525
+ {
1526
+ "fileName": "types/appConfiguration.ts",
1527
+ "line": 11,
1528
+ "character": 2,
1529
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/appConfiguration.ts#L11"
1530
+ }
1531
+ ],
1532
+ "type": {
1533
+ "type": "reference",
1534
+ "target": {
1535
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
1536
+ "qualifiedName": "Record"
1537
+ },
1538
+ "typeArguments": [
1539
+ {
1540
+ "type": "intrinsic",
1541
+ "name": "string"
1542
+ },
1543
+ {
1544
+ "type": "intrinsic",
1545
+ "name": "any"
1546
+ }
1547
+ ],
1548
+ "name": "Record",
1549
+ "package": "typescript"
1550
+ }
1551
+ }
1552
+ ],
1553
+ "groups": [
1554
+ {
1555
+ "title": "Properties",
1556
+ "children": [
1557
+ 93,
1558
+ 94,
1559
+ 95
1560
+ ]
1561
+ }
1562
+ ],
1563
+ "sources": [
1564
+ {
1565
+ "fileName": "types/appConfiguration.ts",
1566
+ "line": 5,
1567
+ "character": 17,
1568
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/appConfiguration.ts#L5"
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ "id": 99,
1574
+ "name": "AssetResponse",
1575
+ "variant": "declaration",
1576
+ "kind": 256,
1577
+ "flags": {},
1578
+ "comment": {
1579
+ "summary": [
1580
+ {
1581
+ "kind": "text",
1582
+ "text": "Represents an Asset object."
1583
+ }
1584
+ ]
1585
+ },
1586
+ "children": [
1587
+ {
1588
+ "id": 100,
1589
+ "name": "id",
1590
+ "variant": "declaration",
1591
+ "kind": 1024,
1592
+ "flags": {},
1593
+ "sources": [
1594
+ {
1595
+ "fileName": "types/asset.ts",
1596
+ "line": 5,
1597
+ "character": 2,
1598
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/asset.ts#L5"
679
1599
  }
680
1600
  ],
681
1601
  "type": {
@@ -684,24 +1604,17 @@
684
1604
  }
685
1605
  },
686
1606
  {
687
- "id": 54,
1607
+ "id": 101,
688
1608
  "name": "name",
689
1609
  "variant": "declaration",
690
1610
  "kind": 1024,
691
1611
  "flags": {},
692
- "comment": {
693
- "summary": [
694
- {
695
- "kind": "text",
696
- "text": "Name of the app configuration"
697
- }
698
- ]
699
- },
700
1612
  "sources": [
701
1613
  {
702
- "fileName": "types/appConfiguration.ts",
703
- "line": 9,
704
- "character": 2
1614
+ "fileName": "types/asset.ts",
1615
+ "line": 6,
1616
+ "character": 2,
1617
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/asset.ts#L6"
705
1618
  }
706
1619
  ],
707
1620
  "type": {
@@ -710,46 +1623,22 @@
710
1623
  }
711
1624
  },
712
1625
  {
713
- "id": 55,
714
- "name": "settings",
1626
+ "id": 102,
1627
+ "name": "url",
715
1628
  "variant": "declaration",
716
1629
  "kind": 1024,
717
- "flags": {
718
- "isOptional": true
719
- },
720
- "comment": {
721
- "summary": [
722
- {
723
- "kind": "text",
724
- "text": "Key-value pairs representing configuration settings"
725
- }
726
- ]
727
- },
1630
+ "flags": {},
728
1631
  "sources": [
729
1632
  {
730
- "fileName": "types/appConfiguration.ts",
731
- "line": 11,
732
- "character": 2
1633
+ "fileName": "types/asset.ts",
1634
+ "line": 7,
1635
+ "character": 2,
1636
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/asset.ts#L7"
733
1637
  }
734
1638
  ],
735
1639
  "type": {
736
- "type": "reference",
737
- "target": {
738
- "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
739
- "qualifiedName": "Record"
740
- },
741
- "typeArguments": [
742
- {
743
- "type": "intrinsic",
744
- "name": "string"
745
- },
746
- {
747
- "type": "intrinsic",
748
- "name": "any"
749
- }
750
- ],
751
- "name": "Record",
752
- "package": "typescript"
1640
+ "type": "intrinsic",
1641
+ "name": "string"
753
1642
  }
754
1643
  }
755
1644
  ],
@@ -757,22 +1646,23 @@
757
1646
  {
758
1647
  "title": "Properties",
759
1648
  "children": [
760
- 53,
761
- 54,
762
- 55
1649
+ 100,
1650
+ 101,
1651
+ 102
763
1652
  ]
764
1653
  }
765
1654
  ],
766
1655
  "sources": [
767
1656
  {
768
- "fileName": "types/appConfiguration.ts",
769
- "line": 5,
770
- "character": 17
1657
+ "fileName": "types/asset.ts",
1658
+ "line": 4,
1659
+ "character": 17,
1660
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/asset.ts#L4"
771
1661
  }
772
1662
  ]
773
1663
  },
774
1664
  {
775
- "id": 34,
1665
+ "id": 74,
776
1666
  "name": "CollectionResponse",
777
1667
  "variant": "declaration",
778
1668
  "kind": 256,
@@ -787,7 +1677,7 @@
787
1677
  },
788
1678
  "children": [
789
1679
  {
790
- "id": 35,
1680
+ "id": 75,
791
1681
  "name": "id",
792
1682
  "variant": "declaration",
793
1683
  "kind": 1024,
@@ -804,7 +1694,8 @@
804
1694
  {
805
1695
  "fileName": "types/collection.ts",
806
1696
  "line": 7,
807
- "character": 2
1697
+ "character": 2,
1698
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/collection.ts#L7"
808
1699
  }
809
1700
  ],
810
1701
  "type": {
@@ -813,7 +1704,7 @@
813
1704
  }
814
1705
  },
815
1706
  {
816
- "id": 38,
1707
+ "id": 78,
817
1708
  "name": "logoImage",
818
1709
  "variant": "declaration",
819
1710
  "kind": 1024,
@@ -830,7 +1721,8 @@
830
1721
  {
831
1722
  "fileName": "types/collection.ts",
832
1723
  "line": 13,
833
- "character": 2
1724
+ "character": 2,
1725
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/collection.ts#L13"
834
1726
  }
835
1727
  ],
836
1728
  "type": {
@@ -839,7 +1731,7 @@
839
1731
  }
840
1732
  },
841
1733
  {
842
- "id": 36,
1734
+ "id": 76,
843
1735
  "name": "name",
844
1736
  "variant": "declaration",
845
1737
  "kind": 1024,
@@ -856,7 +1748,8 @@
856
1748
  {
857
1749
  "fileName": "types/collection.ts",
858
1750
  "line": 9,
859
- "character": 2
1751
+ "character": 2,
1752
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/collection.ts#L9"
860
1753
  }
861
1754
  ],
862
1755
  "type": {
@@ -865,7 +1758,7 @@
865
1758
  }
866
1759
  },
867
1760
  {
868
- "id": 37,
1761
+ "id": 77,
869
1762
  "name": "title",
870
1763
  "variant": "declaration",
871
1764
  "kind": 1024,
@@ -882,7 +1775,8 @@
882
1775
  {
883
1776
  "fileName": "types/collection.ts",
884
1777
  "line": 11,
885
- "character": 2
1778
+ "character": 2,
1779
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/collection.ts#L11"
886
1780
  }
887
1781
  ],
888
1782
  "type": {
@@ -895,10 +1789,10 @@
895
1789
  {
896
1790
  "title": "Properties",
897
1791
  "children": [
898
- 35,
899
- 38,
900
- 36,
901
- 37
1792
+ 75,
1793
+ 78,
1794
+ 76,
1795
+ 77
902
1796
  ]
903
1797
  }
904
1798
  ],
@@ -906,12 +1800,13 @@
906
1800
  {
907
1801
  "fileName": "types/collection.ts",
908
1802
  "line": 5,
909
- "character": 17
1803
+ "character": 17,
1804
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/collection.ts#L5"
910
1805
  }
911
1806
  ]
912
1807
  },
913
1808
  {
914
- "id": 56,
1809
+ "id": 96,
915
1810
  "name": "ErrorResponse",
916
1811
  "variant": "declaration",
917
1812
  "kind": 256,
@@ -926,7 +1821,7 @@
926
1821
  },
927
1822
  "children": [
928
1823
  {
929
- "id": 57,
1824
+ "id": 97,
930
1825
  "name": "code",
931
1826
  "variant": "declaration",
932
1827
  "kind": 1024,
@@ -943,7 +1838,8 @@
943
1838
  {
944
1839
  "fileName": "types/error.ts",
945
1840
  "line": 7,
946
- "character": 2
1841
+ "character": 2,
1842
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/error.ts#L7"
947
1843
  }
948
1844
  ],
949
1845
  "type": {
@@ -952,7 +1848,7 @@
952
1848
  }
953
1849
  },
954
1850
  {
955
- "id": 58,
1851
+ "id": 98,
956
1852
  "name": "message",
957
1853
  "variant": "declaration",
958
1854
  "kind": 1024,
@@ -969,7 +1865,8 @@
969
1865
  {
970
1866
  "fileName": "types/error.ts",
971
1867
  "line": 9,
972
- "character": 2
1868
+ "character": 2,
1869
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/error.ts#L9"
973
1870
  }
974
1871
  ],
975
1872
  "type": {
@@ -982,8 +1879,8 @@
982
1879
  {
983
1880
  "title": "Properties",
984
1881
  "children": [
985
- 57,
986
- 58
1882
+ 97,
1883
+ 98
987
1884
  ]
988
1885
  }
989
1886
  ],
@@ -991,12 +1888,13 @@
991
1888
  {
992
1889
  "fileName": "types/error.ts",
993
1890
  "line": 5,
994
- "character": 17
1891
+ "character": 17,
1892
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/error.ts#L5"
995
1893
  }
996
1894
  ]
997
1895
  },
998
1896
  {
999
- "id": 39,
1897
+ "id": 79,
1000
1898
  "name": "ProductResponse",
1001
1899
  "variant": "declaration",
1002
1900
  "kind": 256,
@@ -1011,7 +1909,7 @@
1011
1909
  },
1012
1910
  "children": [
1013
1911
  {
1014
- "id": 42,
1912
+ "id": 82,
1015
1913
  "name": "description",
1016
1914
  "variant": "declaration",
1017
1915
  "kind": 1024,
@@ -1028,7 +1926,8 @@
1028
1926
  {
1029
1927
  "fileName": "types/product.ts",
1030
1928
  "line": 11,
1031
- "character": 2
1929
+ "character": 2,
1930
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/product.ts#L11"
1032
1931
  }
1033
1932
  ],
1034
1933
  "type": {
@@ -1037,7 +1936,7 @@
1037
1936
  }
1038
1937
  },
1039
1938
  {
1040
- "id": 43,
1939
+ "id": 83,
1041
1940
  "name": "heroImage",
1042
1941
  "variant": "declaration",
1043
1942
  "kind": 1024,
@@ -1054,7 +1953,8 @@
1054
1953
  {
1055
1954
  "fileName": "types/product.ts",
1056
1955
  "line": 13,
1057
- "character": 2
1956
+ "character": 2,
1957
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/product.ts#L13"
1058
1958
  }
1059
1959
  ],
1060
1960
  "type": {
@@ -1063,7 +1963,7 @@
1063
1963
  }
1064
1964
  },
1065
1965
  {
1066
- "id": 40,
1966
+ "id": 80,
1067
1967
  "name": "id",
1068
1968
  "variant": "declaration",
1069
1969
  "kind": 1024,
@@ -1080,7 +1980,8 @@
1080
1980
  {
1081
1981
  "fileName": "types/product.ts",
1082
1982
  "line": 7,
1083
- "character": 2
1983
+ "character": 2,
1984
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/product.ts#L7"
1084
1985
  }
1085
1986
  ],
1086
1987
  "type": {
@@ -1089,7 +1990,7 @@
1089
1990
  }
1090
1991
  },
1091
1992
  {
1092
- "id": 41,
1993
+ "id": 81,
1093
1994
  "name": "name",
1094
1995
  "variant": "declaration",
1095
1996
  "kind": 1024,
@@ -1106,7 +2007,8 @@
1106
2007
  {
1107
2008
  "fileName": "types/product.ts",
1108
2009
  "line": 9,
1109
- "character": 2
2010
+ "character": 2,
2011
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/product.ts#L9"
1110
2012
  }
1111
2013
  ],
1112
2014
  "type": {
@@ -1119,10 +2021,10 @@
1119
2021
  {
1120
2022
  "title": "Properties",
1121
2023
  "children": [
1122
- 42,
1123
- 43,
1124
- 40,
1125
- 41
2024
+ 82,
2025
+ 83,
2026
+ 80,
2027
+ 81
1126
2028
  ]
1127
2029
  }
1128
2030
  ],
@@ -1130,12 +2032,13 @@
1130
2032
  {
1131
2033
  "fileName": "types/product.ts",
1132
2034
  "line": 5,
1133
- "character": 17
2035
+ "character": 17,
2036
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/product.ts#L5"
1134
2037
  }
1135
2038
  ]
1136
2039
  },
1137
2040
  {
1138
- "id": 44,
2041
+ "id": 84,
1139
2042
  "name": "ProofResponse",
1140
2043
  "variant": "declaration",
1141
2044
  "kind": 256,
@@ -1150,7 +2053,7 @@
1150
2053
  },
1151
2054
  "children": [
1152
2055
  {
1153
- "id": 45,
2056
+ "id": 85,
1154
2057
  "name": "collectionId",
1155
2058
  "variant": "declaration",
1156
2059
  "kind": 1024,
@@ -1167,7 +2070,8 @@
1167
2070
  {
1168
2071
  "fileName": "types/proof.ts",
1169
2072
  "line": 7,
1170
- "character": 2
2073
+ "character": 2,
2074
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L7"
1171
2075
  }
1172
2076
  ],
1173
2077
  "type": {
@@ -1176,7 +2080,7 @@
1176
2080
  }
1177
2081
  },
1178
2082
  {
1179
- "id": 46,
2083
+ "id": 86,
1180
2084
  "name": "createdAt",
1181
2085
  "variant": "declaration",
1182
2086
  "kind": 1024,
@@ -1193,7 +2097,8 @@
1193
2097
  {
1194
2098
  "fileName": "types/proof.ts",
1195
2099
  "line": 9,
1196
- "character": 2
2100
+ "character": 2,
2101
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L9"
1197
2102
  }
1198
2103
  ],
1199
2104
  "type": {
@@ -1202,7 +2107,7 @@
1202
2107
  }
1203
2108
  },
1204
2109
  {
1205
- "id": 47,
2110
+ "id": 87,
1206
2111
  "name": "id",
1207
2112
  "variant": "declaration",
1208
2113
  "kind": 1024,
@@ -1219,7 +2124,8 @@
1219
2124
  {
1220
2125
  "fileName": "types/proof.ts",
1221
2126
  "line": 11,
1222
- "character": 2
2127
+ "character": 2,
2128
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L11"
1223
2129
  }
1224
2130
  ],
1225
2131
  "type": {
@@ -1228,7 +2134,7 @@
1228
2134
  }
1229
2135
  },
1230
2136
  {
1231
- "id": 48,
2137
+ "id": 88,
1232
2138
  "name": "productId",
1233
2139
  "variant": "declaration",
1234
2140
  "kind": 1024,
@@ -1245,7 +2151,8 @@
1245
2151
  {
1246
2152
  "fileName": "types/proof.ts",
1247
2153
  "line": 13,
1248
- "character": 2
2154
+ "character": 2,
2155
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L13"
1249
2156
  }
1250
2157
  ],
1251
2158
  "type": {
@@ -1254,7 +2161,7 @@
1254
2161
  }
1255
2162
  },
1256
2163
  {
1257
- "id": 49,
2164
+ "id": 89,
1258
2165
  "name": "tokenId",
1259
2166
  "variant": "declaration",
1260
2167
  "kind": 1024,
@@ -1271,7 +2178,8 @@
1271
2178
  {
1272
2179
  "fileName": "types/proof.ts",
1273
2180
  "line": 15,
1274
- "character": 2
2181
+ "character": 2,
2182
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L15"
1275
2183
  }
1276
2184
  ],
1277
2185
  "type": {
@@ -1280,7 +2188,7 @@
1280
2188
  }
1281
2189
  },
1282
2190
  {
1283
- "id": 50,
2191
+ "id": 90,
1284
2192
  "name": "userId",
1285
2193
  "variant": "declaration",
1286
2194
  "kind": 1024,
@@ -1297,7 +2205,8 @@
1297
2205
  {
1298
2206
  "fileName": "types/proof.ts",
1299
2207
  "line": 17,
1300
- "character": 2
2208
+ "character": 2,
2209
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L17"
1301
2210
  }
1302
2211
  ],
1303
2212
  "type": {
@@ -1306,7 +2215,7 @@
1306
2215
  }
1307
2216
  },
1308
2217
  {
1309
- "id": 51,
2218
+ "id": 91,
1310
2219
  "name": "values",
1311
2220
  "variant": "declaration",
1312
2221
  "kind": 1024,
@@ -1323,7 +2232,8 @@
1323
2232
  {
1324
2233
  "fileName": "types/proof.ts",
1325
2234
  "line": 19,
1326
- "character": 2
2235
+ "character": 2,
2236
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L19"
1327
2237
  }
1328
2238
  ],
1329
2239
  "type": {
@@ -1351,13 +2261,13 @@
1351
2261
  {
1352
2262
  "title": "Properties",
1353
2263
  "children": [
1354
- 45,
1355
- 46,
1356
- 47,
1357
- 48,
1358
- 49,
1359
- 50,
1360
- 51
2264
+ 85,
2265
+ 86,
2266
+ 87,
2267
+ 88,
2268
+ 89,
2269
+ 90,
2270
+ 91
1361
2271
  ]
1362
2272
  }
1363
2273
  ],
@@ -1365,7 +2275,8 @@
1365
2275
  {
1366
2276
  "fileName": "types/proof.ts",
1367
2277
  "line": 5,
1368
- "character": 17
2278
+ "character": 17,
2279
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/types/proof.ts#L5"
1369
2280
  }
1370
2281
  ]
1371
2282
  },
@@ -1379,7 +2290,8 @@
1379
2290
  {
1380
2291
  "fileName": "http.ts",
1381
2292
  "line": 17,
1382
- "character": 16
2293
+ "character": 16,
2294
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L17"
1383
2295
  }
1384
2296
  ],
1385
2297
  "signatures": [
@@ -1401,7 +2313,8 @@
1401
2313
  {
1402
2314
  "fileName": "http.ts",
1403
2315
  "line": 17,
1404
- "character": 16
2316
+ "character": 16,
2317
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L17"
1405
2318
  }
1406
2319
  ],
1407
2320
  "parameters": [
@@ -1440,7 +2353,8 @@
1440
2353
  {
1441
2354
  "fileName": "http.ts",
1442
2355
  "line": 19,
1443
- "character": 2
2356
+ "character": 2,
2357
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L19"
1444
2358
  }
1445
2359
  ],
1446
2360
  "type": {
@@ -1466,7 +2380,8 @@
1466
2380
  {
1467
2381
  "fileName": "http.ts",
1468
2382
  "line": 18,
1469
- "character": 2
2383
+ "character": 2,
2384
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L18"
1470
2385
  }
1471
2386
  ],
1472
2387
  "type": {
@@ -1494,7 +2409,8 @@
1494
2409
  {
1495
2410
  "fileName": "http.ts",
1496
2411
  "line": 20,
1497
- "character": 2
2412
+ "character": 2,
2413
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L20"
1498
2414
  }
1499
2415
  ],
1500
2416
  "type": {
@@ -1517,7 +2433,8 @@
1517
2433
  {
1518
2434
  "fileName": "http.ts",
1519
2435
  "line": 17,
1520
- "character": 39
2436
+ "character": 39,
2437
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L17"
1521
2438
  }
1522
2439
  ]
1523
2440
  }
@@ -1541,7 +2458,8 @@
1541
2458
  {
1542
2459
  "fileName": "http.ts",
1543
2460
  "line": 32,
1544
- "character": 22
2461
+ "character": 22,
2462
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L32"
1545
2463
  }
1546
2464
  ],
1547
2465
  "signatures": [
@@ -1563,7 +2481,8 @@
1563
2481
  {
1564
2482
  "fileName": "http.ts",
1565
2483
  "line": 32,
1566
- "character": 22
2484
+ "character": 22,
2485
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/4a4aa523c93fa66ecc60b57bab64267bc2383b71/src/http.ts#L32"
1567
2486
  }
1568
2487
  ],
1569
2488
  "typeParameter": [
@@ -1615,6 +2534,7 @@
1615
2534
  "title": "Namespaces",
1616
2535
  "children": [
1617
2536
  29,
2537
+ 34,
1618
2538
  12,
1619
2539
  16,
1620
2540
  24
@@ -1623,11 +2543,12 @@
1623
2543
  {
1624
2544
  "title": "Interfaces",
1625
2545
  "children": [
1626
- 52,
1627
- 34,
1628
- 56,
1629
- 39,
1630
- 44
2546
+ 92,
2547
+ 99,
2548
+ 74,
2549
+ 96,
2550
+ 79,
2551
+ 84
1631
2552
  ]
1632
2553
  },
1633
2554
  {
@@ -1642,7 +2563,7 @@
1642
2563
  "readme": [
1643
2564
  {
1644
2565
  "kind": "text",
1645
- "text": "# @proveanything/smartlinks\n\nAn official JavaScript/TypeScript client SDK for the Smartlinks API. This package provides a simple wrapper around the Smartlinks REST endpoints, allowing you to fetch Collection, Product, and App Configuration data in both browser and Node.js environments.\n\n## Installation\n\n"
2566
+ "text": "# @proveanything/smartlinks\n\nAn official JavaScript/TypeScript client SDK for the Smartlinks API. This package provides simple, namespaced functions to fetch Collection, Product, Proof, and App Configuration data in both browser and Node.js environments.\n\n## Installation\n\n"
1646
2567
  },
1647
2568
  {
1648
2569
  "kind": "code",
@@ -1654,23 +2575,15 @@
1654
2575
  },
1655
2576
  {
1656
2577
  "kind": "code",
1657
- "text": "```ts\nimport { ApiClient, CollectionResponse, ProductResponse } from \"@proveanything/smartlinks\";\n\nasync function main() {\n // Instantiate the client (no apiKey needed for public endpoints, but shown here for reference)\n const client = new ApiClient(\"https://smartlinks.app/api/v1\", \"YOUR_API_KEY_HERE\");\n\n try {\n // Fetch a collection by ID\n const collection: CollectionResponse = await client.getCollection(\"abc123\");\n console.log(\"Collection:\", collection);\n\n // Fetch a product item by collection ID & product ID\n const product: ProductResponse = await client.getProductItem(\"abc123\", \"prod789\");\n console.log(\"Product Item:\", product);\n } catch (err) {\n console.error(\"Error fetching data:\", err);\n }\n}\n\nmain();\n```"
1658
- },
1659
- {
1660
- "kind": "text",
1661
- "text": "\n\n## API Reference\n\n### Class: "
1662
- },
1663
- {
1664
- "kind": "code",
1665
- "text": "`ApiClient`"
2578
+ "text": "```ts\nimport {\n initializeApi,\n collection,\n product,\n proof,\n appConfiguration,\n} from \"@proveanything/smartlinks\";\n\nasync function main() {\n // Initialize once (provide base URL and optional API key/bearer token)\n initializeApi({\n baseURL: \"https://smartlinks.app/api/v1\",\n apiKey: \"YOUR_API_KEY_HERE\", // optional\n bearerToken: \"YOUR_BEARER_TOKEN\", // optional\n });\n\n try {\n // Fetch a collection by ID\n const coll = await collection.get(\"abc123\");\n console.log(\"Collection:\", coll);\n\n // Fetch a product item by collection ID & product ID\n const prod = await product.get(\"abc123\", \"prod789\");\n console.log(\"Product Item:\", prod);\n\n // Fetch a proof by collection ID & proof ID\n const prf = await proof.get(\"abc123\", \"proof456\");\n console.log(\"Proof:\", prf);\n\n // Fetch an app configuration by collection ID & app ID\n const cfg = await appConfiguration.get(\"abc123\", \"app789\");\n console.log(\"App Configuration:\", cfg);\n } catch (err) {\n console.error(\"Error fetching data:\", err);\n }\n}\n\nmain();\n```"
1666
2579
  },
1667
2580
  {
1668
2581
  "kind": "text",
1669
- "text": "\n\n"
2582
+ "text": "\n\n## API Reference\n\n### Initialization\n\n"
1670
2583
  },
1671
2584
  {
1672
2585
  "kind": "code",
1673
- "text": "```ts\nconstructor(baseURL: string, apiKey?: string)\n```"
2586
+ "text": "```ts\ninitializeApi(options: { baseURL: string; apiKey?: string; bearerToken?: string }): void\n```"
1674
2587
  },
1675
2588
  {
1676
2589
  "kind": "text",
@@ -1698,12 +2611,36 @@
1698
2611
  },
1699
2612
  {
1700
2613
  "kind": "text",
1701
- "text": ". \n - "
2614
+ "text": ".\n - "
1702
2615
  },
1703
2616
  {
1704
2617
  "kind": "code",
1705
2618
  "text": "`apiKey`"
1706
2619
  },
2620
+ {
2621
+ "kind": "text",
2622
+ "text": " ("
2623
+ },
2624
+ {
2625
+ "kind": "code",
2626
+ "text": "`string`"
2627
+ },
2628
+ {
2629
+ "kind": "text",
2630
+ "text": ", optional): Your API key for the "
2631
+ },
2632
+ {
2633
+ "kind": "code",
2634
+ "text": "`X-API-Key`"
2635
+ },
2636
+ {
2637
+ "kind": "text",
2638
+ "text": " header.\n - "
2639
+ },
2640
+ {
2641
+ "kind": "code",
2642
+ "text": "`bearerToken`"
2643
+ },
1707
2644
  {
1708
2645
  "kind": "text",
1709
2646
  "text": " ("
@@ -1714,19 +2651,27 @@
1714
2651
  },
1715
2652
  {
1716
2653
  "kind": "text",
1717
- "text": ", optional): Your Bearer token. If omitted, requests will be sent without an "
2654
+ "text": ", optional): Your Bearer token for the "
2655
+ },
2656
+ {
2657
+ "kind": "code",
2658
+ "text": "`AUTHORIZATION`"
2659
+ },
2660
+ {
2661
+ "kind": "text",
2662
+ "text": " header.\n\nAll subsequent calls to the API functions will use these settings.\n\n---\n\n### Namespace: "
1718
2663
  },
1719
2664
  {
1720
2665
  "kind": "code",
1721
- "text": "`Authorization`"
2666
+ "text": "`collection`"
1722
2667
  },
1723
2668
  {
1724
2669
  "kind": "text",
1725
- "text": " header.\n\n---\n\n#### "
2670
+ "text": "\n\n#### "
1726
2671
  },
1727
2672
  {
1728
2673
  "kind": "code",
1729
- "text": "`getCollection(collectionId: string): Promise<CollectionResponse>`"
2674
+ "text": "`collection.get(collectionId: string): Promise<CollectionResponse>`"
1730
2675
  },
1731
2676
  {
1732
2677
  "kind": "text",
@@ -1774,15 +2719,23 @@
1774
2719
  },
1775
2720
  {
1776
2721
  "kind": "code",
1777
- "text": "```ts\n const client = new ApiClient(\"https://smartlinks.app/api/v1\", \"YOUR_API_KEY\");\n const collection = await client.getCollection(\"abc123\");\n console.log(\"Fetched collection:\", collection);\n ```"
2722
+ "text": "```ts\n const coll = await collection.get(\"abc123\");\n console.log(\"Fetched collection:\", coll.title);\n ```"
2723
+ },
2724
+ {
2725
+ "kind": "text",
2726
+ "text": "\n\n---\n\n### Namespace: "
2727
+ },
2728
+ {
2729
+ "kind": "code",
2730
+ "text": "`product`"
1778
2731
  },
1779
2732
  {
1780
2733
  "kind": "text",
1781
- "text": "\n\n---\n\n#### "
2734
+ "text": "\n\n#### "
1782
2735
  },
1783
2736
  {
1784
2737
  "kind": "code",
1785
- "text": "`getProductItem(collectionId: string, productId: string): Promise<ProductResponse>`"
2738
+ "text": "`product.get(collectionId: string, productId: string): Promise<ProductResponse>`"
1786
2739
  },
1787
2740
  {
1788
2741
  "kind": "text",
@@ -1810,7 +2763,7 @@
1810
2763
  },
1811
2764
  {
1812
2765
  "kind": "text",
1813
- "text": " ("
2766
+ "text": " ("
1814
2767
  },
1815
2768
  {
1816
2769
  "kind": "code",
@@ -1846,19 +2799,27 @@
1846
2799
  },
1847
2800
  {
1848
2801
  "kind": "code",
1849
- "text": "```ts\n const client = new ApiClient(\"https://smartlinks.app/api/v1\", \"YOUR_API_KEY\");\n const product = await client.getProductItem(\"abc123\", \"prod789\");\n console.log(\"Fetched product:\", product);\n ```"
2802
+ "text": "```ts\n const prod = await product.get(\"abc123\", \"prod789\");\n console.log(\"Fetched product:\", prod.name);\n ```"
2803
+ },
2804
+ {
2805
+ "kind": "text",
2806
+ "text": "\n\n---\n\n### Namespace: "
2807
+ },
2808
+ {
2809
+ "kind": "code",
2810
+ "text": "`proof`"
1850
2811
  },
1851
2812
  {
1852
2813
  "kind": "text",
1853
- "text": "\n\n---\n\n#### "
2814
+ "text": "\n\n#### "
1854
2815
  },
1855
2816
  {
1856
2817
  "kind": "code",
1857
- "text": "`getAppConfiguration(collectionId: string, appId: string): Promise<AppConfigurationResponse>`"
2818
+ "text": "`proof.get(collectionId: string, proofId: string): Promise<ProofResponse>`"
1858
2819
  },
1859
2820
  {
1860
2821
  "kind": "text",
1861
- "text": "\n\nFetches a single app configuration within a collection.\n\n- **Parameters:**\n - "
2822
+ "text": "\n\nFetches a single proof by collection ID and proof ID.\n\n- **Parameters:**\n - "
1862
2823
  },
1863
2824
  {
1864
2825
  "kind": "code",
@@ -1878,11 +2839,11 @@
1878
2839
  },
1879
2840
  {
1880
2841
  "kind": "code",
1881
- "text": "`appId`"
2842
+ "text": "`proofId`"
1882
2843
  },
1883
2844
  {
1884
2845
  "kind": "text",
1885
- "text": " ("
2846
+ "text": " ("
1886
2847
  },
1887
2848
  {
1888
2849
  "kind": "code",
@@ -1890,7 +2851,7 @@
1890
2851
  },
1891
2852
  {
1892
2853
  "kind": "text",
1893
- "text": ", required): The app configuration’s ID.\n- **Returns:** \n A "
2854
+ "text": ", required): The proof’s ID.\n- **Returns:** \n A "
1894
2855
  },
1895
2856
  {
1896
2857
  "kind": "code",
@@ -1898,11 +2859,11 @@
1898
2859
  },
1899
2860
  {
1900
2861
  "kind": "text",
1901
- "text": " that resolves to an "
2862
+ "text": " that resolves to a "
1902
2863
  },
1903
2864
  {
1904
2865
  "kind": "code",
1905
- "text": "`AppConfigurationResponse`"
2866
+ "text": "`ProofResponse`"
1906
2867
  },
1907
2868
  {
1908
2869
  "kind": "text",
@@ -1910,7 +2871,7 @@
1910
2871
  },
1911
2872
  {
1912
2873
  "kind": "code",
1913
- "text": "```ts\n export interface AppConfigurationResponse {\n id: string;\n name: string;\n settings?: Record<string, any>;\n }\n ```"
2874
+ "text": "```ts\n export interface ProofResponse {\n collectionId: string;\n createdAt: string;\n id: string;\n productId: string;\n tokenId: string;\n userId: string;\n values: Record<string, any>;\n }\n ```"
1914
2875
  },
1915
2876
  {
1916
2877
  "kind": "text",
@@ -1918,139 +2879,163 @@
1918
2879
  },
1919
2880
  {
1920
2881
  "kind": "code",
1921
- "text": "```ts\n const client = new ApiClient(\"https://smartlinks.app/api/v1\", \"YOUR_API_KEY\");\n const config = await client.getAppConfiguration(\"abc123\", \"app456\");\n console.log(\"Fetched app configuration:\", config);\n ```"
2882
+ "text": "```ts\n const prf = await proof.get(\"abc123\", \"proof456\");\n console.log(\"Fetched proof:\", prf.id);\n ```"
1922
2883
  },
1923
2884
  {
1924
2885
  "kind": "text",
1925
- "text": "\n\n---\n\n## Authentication\n\nAll endpoints require a Bearer token passed in the "
2886
+ "text": "\n\n---\n\n### Namespace: "
1926
2887
  },
1927
2888
  {
1928
2889
  "kind": "code",
1929
- "text": "`AUTHORIZATION`"
2890
+ "text": "`appConfiguration`"
1930
2891
  },
1931
2892
  {
1932
2893
  "kind": "text",
1933
- "text": " header. When instantiating "
2894
+ "text": "\n\n#### "
1934
2895
  },
1935
2896
  {
1936
2897
  "kind": "code",
1937
- "text": "`ApiClient`"
2898
+ "text": "`appConfiguration.get(collectionId: string, appId: string): Promise<AppConfigurationResponse>`"
1938
2899
  },
1939
2900
  {
1940
2901
  "kind": "text",
1941
- "text": ", optionally supply your token:\n\n"
2902
+ "text": "\n\nFetches a single app configuration by collection ID and app ID.\n\n- **Parameters:**\n - "
1942
2903
  },
1943
2904
  {
1944
2905
  "kind": "code",
1945
- "text": "```ts\nimport { ApiClient } from \"@proveanything/smartlinks\";\n\nconst apiKey = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\";\nconst client = new ApiClient(\"https://smartlinks.app/api/v1\", apiKey);\n```"
2906
+ "text": "`collectionId`"
1946
2907
  },
1947
2908
  {
1948
2909
  "kind": "text",
1949
- "text": "\n\nIf "
2910
+ "text": " ("
1950
2911
  },
1951
2912
  {
1952
2913
  "kind": "code",
1953
- "text": "`apiKey`"
2914
+ "text": "`string`"
1954
2915
  },
1955
2916
  {
1956
2917
  "kind": "text",
1957
- "text": " is omitted, requests will be sent without an "
2918
+ "text": ", required): The parent collection’s ID.\n - "
1958
2919
  },
1959
2920
  {
1960
2921
  "kind": "code",
1961
- "text": "`Authorization`"
2922
+ "text": "`appId`"
1962
2923
  },
1963
2924
  {
1964
2925
  "kind": "text",
1965
- "text": " header, which may cause a "
2926
+ "text": " ("
1966
2927
  },
1967
2928
  {
1968
2929
  "kind": "code",
1969
- "text": "`401 Unauthorized`"
2930
+ "text": "`string`"
1970
2931
  },
1971
2932
  {
1972
2933
  "kind": "text",
1973
- "text": " for protected endpoints.\n\n## Error Handling\n\nAll methods throw an "
2934
+ "text": ", required): The app configuration’s ID.\n- **Returns:** \n A "
1974
2935
  },
1975
2936
  {
1976
2937
  "kind": "code",
1977
- "text": "`Error`"
2938
+ "text": "`Promise`"
2939
+ },
2940
+ {
2941
+ "kind": "text",
2942
+ "text": " that resolves to an "
2943
+ },
2944
+ {
2945
+ "kind": "code",
2946
+ "text": "`AppConfigurationResponse`"
2947
+ },
2948
+ {
2949
+ "kind": "text",
2950
+ "text": " object:\n\n "
2951
+ },
2952
+ {
2953
+ "kind": "code",
2954
+ "text": "```ts\n export interface AppConfigurationResponse {\n id: string;\n name: string;\n settings?: Record<string, any>;\n }\n ```"
2955
+ },
2956
+ {
2957
+ "kind": "text",
2958
+ "text": "\n\n- **Example:**\n "
2959
+ },
2960
+ {
2961
+ "kind": "code",
2962
+ "text": "```ts\n const cfg = await appConfiguration.get(\"abc123\", \"app789\");\n console.log(\"Fetched app configuration:\", cfg.name);\n ```"
1978
2963
  },
1979
2964
  {
1980
2965
  "kind": "text",
1981
- "text": " when the server responds with a non-2xx status. The thrown error message includes the numeric error code and message from the API. Example:\n\n"
2966
+ "text": "\n\n---\n\n## Error Handling\n\nAll methods throw an "
1982
2967
  },
1983
2968
  {
1984
2969
  "kind": "code",
1985
- "text": "```ts\nimport { ApiClient } from \"@proveanything/smartlinks\";\n\nasync function fetchData() {\n const client = new ApiClient(\"https://smartlinks.app/api/v1\", \"INVALID_KEY\");\n\n try {\n await client.getCollection(\"nonexistent\");\n } catch (err) {\n // err.message might be: \"Error 401: Unauthorized\" or \"Error 404: Not Found\"\n console.error(\"Request failed:\", err);\n }\n}\n\nfetchData();\n```"
2970
+ "text": "`Error`"
1986
2971
  },
1987
2972
  {
1988
2973
  "kind": "text",
1989
- "text": "\n\n## Examples\n\nSee the **examples/** folder for complete, runnable samples:\n\n- ["
2974
+ "text": " when the server responds with a non-2xx status. The thrown error message will include the numeric error code and message from the API. Example:\n\n"
1990
2975
  },
1991
2976
  {
1992
2977
  "kind": "code",
1993
- "text": "`examples/node-demo.ts`"
2978
+ "text": "```ts\nimport { product } from \"@proveanything/smartlinks\";\n\nasync function fetchProduct() {\n try {\n await product.get(\"abc123\", \"invalidProdId\");\n } catch (err) {\n // err.message might be: \"Error 404: Not Found\"\n console.error(\"Request failed:\", err);\n }\n}\n\nfetchProduct();\n```"
1994
2979
  },
1995
2980
  {
1996
2981
  "kind": "text",
1997
- "text": "](examples/node-demo.ts) \n- ["
2982
+ "text": "\n\n---\n\n## Types\n\nYou can import any of the response interfaces directly:\n\n"
1998
2983
  },
1999
2984
  {
2000
2985
  "kind": "code",
2001
- "text": "`examples/browser-demo.html`"
2986
+ "text": "```ts\nimport {\n CollectionResponse,\n ProductResponse,\n ProofResponse,\n AppConfigurationResponse,\n} from \"@proveanything/smartlinks/types\";\n```"
2002
2987
  },
2003
2988
  {
2004
2989
  "kind": "text",
2005
- "text": "](examples/browser-demo.html) \n- ["
2990
+ "text": "\n\n---\n\n## Changelog\n\n### 1.0.0\n\n- Initial release:\n - "
2006
2991
  },
2007
2992
  {
2008
2993
  "kind": "code",
2009
- "text": "`examples/react-demo.tsx`"
2994
+ "text": "`initializeApi`"
2010
2995
  },
2011
2996
  {
2012
2997
  "kind": "text",
2013
- "text": "](examples/react-demo.tsx) \n\n## OpenAPI Specification\n\nThis SDK is generated and maintained according to the [Smartlinks OpenAPI 3.0 specification](openapi.yaml). \nYou can find the full API contract in ["
2998
+ "text": " function to configure baseURL and auth.\n - Namespaced modules:\n - "
2014
2999
  },
2015
3000
  {
2016
3001
  "kind": "code",
2017
- "text": "`openapi.yaml`"
3002
+ "text": "`collection.get(collectionId)`"
2018
3003
  },
2019
3004
  {
2020
3005
  "kind": "text",
2021
- "text": "](openapi.yaml) at the root of this package.\n\n## Changelog\n\n### 1.0.0\n\n- Initial release: \n - "
3006
+ "text": "\n - "
2022
3007
  },
2023
3008
  {
2024
3009
  "kind": "code",
2025
- "text": "`ApiClient`"
3010
+ "text": "`product.get(collectionId, productId)`"
2026
3011
  },
2027
3012
  {
2028
3013
  "kind": "text",
2029
- "text": " class with "
3014
+ "text": "\n - "
2030
3015
  },
2031
3016
  {
2032
3017
  "kind": "code",
2033
- "text": "`getCollection`"
3018
+ "text": "`proof.get(collectionId, proofId)`"
2034
3019
  },
2035
3020
  {
2036
3021
  "kind": "text",
2037
- "text": ", "
3022
+ "text": "\n - "
2038
3023
  },
2039
3024
  {
2040
3025
  "kind": "code",
2041
- "text": "`getProductItem`"
3026
+ "text": "`appConfiguration.get(collectionId, appId)`"
2042
3027
  },
2043
3028
  {
2044
3029
  "kind": "text",
2045
- "text": ", and "
3030
+ "text": "\n - Full TypeScript typings and JSDoc.\n - Browser/Node fetch support via "
2046
3031
  },
2047
3032
  {
2048
3033
  "kind": "code",
2049
- "text": "`getAppConfiguration`"
3034
+ "text": "`cross-fetch`"
2050
3035
  },
2051
3036
  {
2052
3037
  "kind": "text",
2053
- "text": " methods. \n - Full TypeScript typings and JSDoc. \n - Browser/Node fetch support. \n - Error handling via thrown "
3038
+ "text": ".\n - Error handling via thrown "
2054
3039
  },
2055
3040
  {
2056
3041
  "kind": "code",
@@ -2199,104 +3184,280 @@
2199
3184
  "qualifiedName": "appId"
2200
3185
  },
2201
3186
  "34": {
3187
+ "sourceFileName": "src/api/asset.ts",
3188
+ "qualifiedName": "asset"
3189
+ },
3190
+ "35": {
3191
+ "sourceFileName": "src/api/asset.ts",
3192
+ "qualifiedName": "asset.getForCollection"
3193
+ },
3194
+ "36": {
3195
+ "sourceFileName": "src/api/asset.ts",
3196
+ "qualifiedName": "asset.getForCollection"
3197
+ },
3198
+ "37": {
3199
+ "sourceFileName": "src/api/asset.ts",
3200
+ "qualifiedName": "collectionId"
3201
+ },
3202
+ "38": {
3203
+ "sourceFileName": "src/api/asset.ts",
3204
+ "qualifiedName": "assetId"
3205
+ },
3206
+ "39": {
3207
+ "sourceFileName": "src/api/asset.ts",
3208
+ "qualifiedName": "asset.getAllForCollection"
3209
+ },
3210
+ "40": {
3211
+ "sourceFileName": "src/api/asset.ts",
3212
+ "qualifiedName": "asset.getAllForCollection"
3213
+ },
3214
+ "41": {
3215
+ "sourceFileName": "src/api/asset.ts",
3216
+ "qualifiedName": "collectionId"
3217
+ },
3218
+ "42": {
3219
+ "sourceFileName": "src/api/asset.ts",
3220
+ "qualifiedName": "asset.getForProduct"
3221
+ },
3222
+ "43": {
3223
+ "sourceFileName": "src/api/asset.ts",
3224
+ "qualifiedName": "asset.getForProduct"
3225
+ },
3226
+ "44": {
3227
+ "sourceFileName": "src/api/asset.ts",
3228
+ "qualifiedName": "collectionId"
3229
+ },
3230
+ "45": {
3231
+ "sourceFileName": "src/api/asset.ts",
3232
+ "qualifiedName": "productId"
3233
+ },
3234
+ "46": {
3235
+ "sourceFileName": "src/api/asset.ts",
3236
+ "qualifiedName": "assetId"
3237
+ },
3238
+ "47": {
3239
+ "sourceFileName": "src/api/asset.ts",
3240
+ "qualifiedName": "asset.getAllForProduct"
3241
+ },
3242
+ "48": {
3243
+ "sourceFileName": "src/api/asset.ts",
3244
+ "qualifiedName": "asset.getAllForProduct"
3245
+ },
3246
+ "49": {
3247
+ "sourceFileName": "src/api/asset.ts",
3248
+ "qualifiedName": "collectionId"
3249
+ },
3250
+ "50": {
3251
+ "sourceFileName": "src/api/asset.ts",
3252
+ "qualifiedName": "productId"
3253
+ },
3254
+ "51": {
3255
+ "sourceFileName": "src/api/asset.ts",
3256
+ "qualifiedName": "asset.getForProof"
3257
+ },
3258
+ "52": {
3259
+ "sourceFileName": "src/api/asset.ts",
3260
+ "qualifiedName": "asset.getForProof"
3261
+ },
3262
+ "53": {
3263
+ "sourceFileName": "src/api/asset.ts",
3264
+ "qualifiedName": "collectionId"
3265
+ },
3266
+ "54": {
3267
+ "sourceFileName": "src/api/asset.ts",
3268
+ "qualifiedName": "productId"
3269
+ },
3270
+ "55": {
3271
+ "sourceFileName": "src/api/asset.ts",
3272
+ "qualifiedName": "proofId"
3273
+ },
3274
+ "56": {
3275
+ "sourceFileName": "src/api/asset.ts",
3276
+ "qualifiedName": "assetId"
3277
+ },
3278
+ "57": {
3279
+ "sourceFileName": "src/api/asset.ts",
3280
+ "qualifiedName": "asset.getAllForProof"
3281
+ },
3282
+ "58": {
3283
+ "sourceFileName": "src/api/asset.ts",
3284
+ "qualifiedName": "asset.getAllForProof"
3285
+ },
3286
+ "59": {
3287
+ "sourceFileName": "src/api/asset.ts",
3288
+ "qualifiedName": "collectionId"
3289
+ },
3290
+ "60": {
3291
+ "sourceFileName": "src/api/asset.ts",
3292
+ "qualifiedName": "productId"
3293
+ },
3294
+ "61": {
3295
+ "sourceFileName": "src/api/asset.ts",
3296
+ "qualifiedName": "proofId"
3297
+ },
3298
+ "62": {
3299
+ "sourceFileName": "src/api/asset.ts",
3300
+ "qualifiedName": "appId"
3301
+ },
3302
+ "63": {
3303
+ "sourceFileName": "src/api/asset.ts",
3304
+ "qualifiedName": "asset.uploadAsset"
3305
+ },
3306
+ "64": {
3307
+ "sourceFileName": "src/api/asset.ts",
3308
+ "qualifiedName": "asset.uploadAsset"
3309
+ },
3310
+ "65": {
3311
+ "sourceFileName": "src/api/asset.ts",
3312
+ "qualifiedName": "collectionId"
3313
+ },
3314
+ "66": {
3315
+ "sourceFileName": "src/api/asset.ts",
3316
+ "qualifiedName": "productId"
3317
+ },
3318
+ "67": {
3319
+ "sourceFileName": "src/api/asset.ts",
3320
+ "qualifiedName": "proofId"
3321
+ },
3322
+ "68": {
3323
+ "sourceFileName": "src/api/asset.ts",
3324
+ "qualifiedName": "file"
3325
+ },
3326
+ "69": {
3327
+ "sourceFileName": "src/api/asset.ts",
3328
+ "qualifiedName": "extraData"
3329
+ },
3330
+ "70": {
3331
+ "sourceFileName": "src/api/asset.ts",
3332
+ "qualifiedName": "onProgress"
3333
+ },
3334
+ "71": {
3335
+ "sourceFileName": "src/api/asset.ts",
3336
+ "qualifiedName": "__type"
3337
+ },
3338
+ "72": {
3339
+ "sourceFileName": "src/api/asset.ts",
3340
+ "qualifiedName": "__type"
3341
+ },
3342
+ "73": {
3343
+ "sourceFileName": "src/api/asset.ts",
3344
+ "qualifiedName": "percent"
3345
+ },
3346
+ "74": {
2202
3347
  "sourceFileName": "src/types/collection.ts",
2203
3348
  "qualifiedName": "CollectionResponse"
2204
3349
  },
2205
- "35": {
3350
+ "75": {
2206
3351
  "sourceFileName": "src/types/collection.ts",
2207
3352
  "qualifiedName": "CollectionResponse.id"
2208
3353
  },
2209
- "36": {
3354
+ "76": {
2210
3355
  "sourceFileName": "src/types/collection.ts",
2211
3356
  "qualifiedName": "CollectionResponse.name"
2212
3357
  },
2213
- "37": {
3358
+ "77": {
2214
3359
  "sourceFileName": "src/types/collection.ts",
2215
3360
  "qualifiedName": "CollectionResponse.title"
2216
3361
  },
2217
- "38": {
3362
+ "78": {
2218
3363
  "sourceFileName": "src/types/collection.ts",
2219
3364
  "qualifiedName": "CollectionResponse.logoImage"
2220
3365
  },
2221
- "39": {
3366
+ "79": {
2222
3367
  "sourceFileName": "src/types/product.ts",
2223
3368
  "qualifiedName": "ProductResponse"
2224
3369
  },
2225
- "40": {
3370
+ "80": {
2226
3371
  "sourceFileName": "src/types/product.ts",
2227
3372
  "qualifiedName": "ProductResponse.id"
2228
3373
  },
2229
- "41": {
3374
+ "81": {
2230
3375
  "sourceFileName": "src/types/product.ts",
2231
3376
  "qualifiedName": "ProductResponse.name"
2232
3377
  },
2233
- "42": {
3378
+ "82": {
2234
3379
  "sourceFileName": "src/types/product.ts",
2235
3380
  "qualifiedName": "ProductResponse.description"
2236
3381
  },
2237
- "43": {
3382
+ "83": {
2238
3383
  "sourceFileName": "src/types/product.ts",
2239
3384
  "qualifiedName": "ProductResponse.heroImage"
2240
3385
  },
2241
- "44": {
3386
+ "84": {
2242
3387
  "sourceFileName": "src/types/proof.ts",
2243
3388
  "qualifiedName": "ProofResponse"
2244
3389
  },
2245
- "45": {
3390
+ "85": {
2246
3391
  "sourceFileName": "src/types/proof.ts",
2247
3392
  "qualifiedName": "ProofResponse.collectionId"
2248
3393
  },
2249
- "46": {
3394
+ "86": {
2250
3395
  "sourceFileName": "src/types/proof.ts",
2251
3396
  "qualifiedName": "ProofResponse.createdAt"
2252
3397
  },
2253
- "47": {
3398
+ "87": {
2254
3399
  "sourceFileName": "src/types/proof.ts",
2255
3400
  "qualifiedName": "ProofResponse.id"
2256
3401
  },
2257
- "48": {
3402
+ "88": {
2258
3403
  "sourceFileName": "src/types/proof.ts",
2259
3404
  "qualifiedName": "ProofResponse.productId"
2260
3405
  },
2261
- "49": {
3406
+ "89": {
2262
3407
  "sourceFileName": "src/types/proof.ts",
2263
3408
  "qualifiedName": "ProofResponse.tokenId"
2264
3409
  },
2265
- "50": {
3410
+ "90": {
2266
3411
  "sourceFileName": "src/types/proof.ts",
2267
3412
  "qualifiedName": "ProofResponse.userId"
2268
3413
  },
2269
- "51": {
3414
+ "91": {
2270
3415
  "sourceFileName": "src/types/proof.ts",
2271
3416
  "qualifiedName": "ProofResponse.values"
2272
3417
  },
2273
- "52": {
3418
+ "92": {
2274
3419
  "sourceFileName": "src/types/appConfiguration.ts",
2275
3420
  "qualifiedName": "AppConfigurationResponse"
2276
3421
  },
2277
- "53": {
3422
+ "93": {
2278
3423
  "sourceFileName": "src/types/appConfiguration.ts",
2279
3424
  "qualifiedName": "AppConfigurationResponse.id"
2280
3425
  },
2281
- "54": {
3426
+ "94": {
2282
3427
  "sourceFileName": "src/types/appConfiguration.ts",
2283
3428
  "qualifiedName": "AppConfigurationResponse.name"
2284
3429
  },
2285
- "55": {
3430
+ "95": {
2286
3431
  "sourceFileName": "src/types/appConfiguration.ts",
2287
3432
  "qualifiedName": "AppConfigurationResponse.settings"
2288
3433
  },
2289
- "56": {
3434
+ "96": {
2290
3435
  "sourceFileName": "src/types/error.ts",
2291
3436
  "qualifiedName": "ErrorResponse"
2292
3437
  },
2293
- "57": {
3438
+ "97": {
2294
3439
  "sourceFileName": "src/types/error.ts",
2295
3440
  "qualifiedName": "ErrorResponse.code"
2296
3441
  },
2297
- "58": {
3442
+ "98": {
2298
3443
  "sourceFileName": "src/types/error.ts",
2299
3444
  "qualifiedName": "ErrorResponse.message"
3445
+ },
3446
+ "99": {
3447
+ "sourceFileName": "src/types/asset.ts",
3448
+ "qualifiedName": "AssetResponse"
3449
+ },
3450
+ "100": {
3451
+ "sourceFileName": "src/types/asset.ts",
3452
+ "qualifiedName": "AssetResponse.id"
3453
+ },
3454
+ "101": {
3455
+ "sourceFileName": "src/types/asset.ts",
3456
+ "qualifiedName": "AssetResponse.name"
3457
+ },
3458
+ "102": {
3459
+ "sourceFileName": "src/types/asset.ts",
3460
+ "qualifiedName": "AssetResponse.url"
2300
3461
  }
2301
3462
  }
2302
3463
  }