@proveanything/smartlinks 1.0.4 → 1.0.6

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 (67) hide show
  1. package/dist/api/appConfiguration.d.ts +11 -0
  2. package/dist/api/appConfiguration.js +17 -0
  3. package/dist/api/asset.d.ts +9 -0
  4. package/dist/api/asset.js +40 -0
  5. package/dist/api/collection.d.ts +10 -0
  6. package/dist/api/collection.js +16 -0
  7. package/dist/api/index.d.ts +5 -0
  8. package/dist/api/index.js +7 -0
  9. package/dist/api/product.d.ts +18 -0
  10. package/dist/api/product.js +28 -0
  11. package/dist/api/proof.d.ts +11 -0
  12. package/dist/api/proof.js +17 -0
  13. package/dist/http.d.ts +18 -0
  14. package/dist/http.js +54 -0
  15. package/dist/index.d.ts +3 -113
  16. package/dist/index.js +5 -105
  17. package/dist/types/appConfiguration.d.ts +11 -0
  18. package/dist/types/appConfiguration.js +1 -0
  19. package/dist/types/asset.d.ts +8 -0
  20. package/dist/types/asset.js +1 -0
  21. package/dist/types/collection.d.ts +13 -0
  22. package/dist/types/collection.js +1 -0
  23. package/dist/types/error.d.ts +9 -0
  24. package/dist/types/error.js +1 -0
  25. package/dist/types/index.d.ts +6 -0
  26. package/dist/types/index.js +8 -0
  27. package/dist/types/product.d.ts +13 -0
  28. package/dist/types/product.js +1 -0
  29. package/dist/types/proof.d.ts +19 -0
  30. package/dist/types/proof.js +1 -0
  31. package/docs/assets/navigation.js +1 -1
  32. package/docs/assets/search.js +1 -1
  33. package/docs/documentation.json +1092 -279
  34. package/docs/functions/appConfiguration.get.html +1 -1
  35. package/docs/functions/asset.getAllForCollection.html +1 -0
  36. package/docs/functions/asset.getAllForProduct.html +1 -0
  37. package/docs/functions/asset.getAllForProof.html +1 -0
  38. package/docs/functions/asset.getForCollection.html +1 -0
  39. package/docs/functions/asset.getForProduct.html +1 -0
  40. package/docs/functions/asset.getForProof.html +1 -0
  41. package/docs/functions/collection.get.html +1 -1
  42. package/docs/functions/initializeApi.html +1 -1
  43. package/docs/functions/product.get.html +1 -1
  44. package/docs/functions/product.getAll.html +1 -1
  45. package/docs/functions/proof.get.html +1 -1
  46. package/docs/functions/request.html +1 -1
  47. package/docs/index.html +50 -29
  48. package/docs/interfaces/AppConfigurationResponse.html +4 -4
  49. package/docs/interfaces/AssetResponse.html +5 -0
  50. package/docs/interfaces/CollectionResponse.html +5 -5
  51. package/docs/interfaces/ErrorResponse.html +3 -3
  52. package/docs/interfaces/ProductResponse.html +5 -5
  53. package/docs/interfaces/ProofResponse.html +8 -8
  54. package/docs/modules/appConfiguration.html +1 -1
  55. package/docs/modules/asset.html +7 -0
  56. package/docs/modules/collection.html +1 -1
  57. package/docs/modules/product.html +1 -1
  58. package/docs/modules/proof.html +1 -1
  59. package/docs/modules.html +2 -0
  60. package/examples/browser-demo.html +20 -9
  61. package/examples/node-demo.ts +18 -10
  62. package/examples/react-demo.tsx +29 -15
  63. package/package.json +1 -1
  64. package/src/api/asset.ts +60 -0
  65. package/src/api/index.ts +1 -0
  66. package/src/types/asset.ts +9 -0
  67. package/src/types/index.ts +1 -0
@@ -22,85 +22,571 @@
22
22
  {
23
23
  "fileName": "api/appConfiguration.ts",
24
24
  "line": 13,
25
+ "character": 24,
26
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/appConfiguration.ts#L13"
27
+ }
28
+ ],
29
+ "signatures": [
30
+ {
31
+ "id": 31,
32
+ "name": "get",
33
+ "variant": "signature",
34
+ "kind": 4096,
35
+ "flags": {},
36
+ "comment": {
37
+ "summary": [
38
+ {
39
+ "kind": "text",
40
+ "text": "Retrieves a single App Configuration by Collection ID and App ID."
41
+ }
42
+ ],
43
+ "blockTags": [
44
+ {
45
+ "tag": "@returns",
46
+ "content": [
47
+ {
48
+ "kind": "text",
49
+ "text": "Promise resolving to an AppConfigurationResponse object"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "tag": "@throws",
55
+ "content": [
56
+ {
57
+ "kind": "text",
58
+ "text": "ErrorResponse if the request fails"
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ },
64
+ "sources": [
65
+ {
66
+ "fileName": "api/appConfiguration.ts",
67
+ "line": 13,
68
+ "character": 24,
69
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/appConfiguration.ts#L13"
70
+ }
71
+ ],
72
+ "parameters": [
73
+ {
74
+ "id": 32,
75
+ "name": "collectionId",
76
+ "variant": "param",
77
+ "kind": 32768,
78
+ "flags": {},
79
+ "comment": {
80
+ "summary": [
81
+ {
82
+ "kind": "text",
83
+ "text": "– Identifier of the parent collection"
84
+ }
85
+ ]
86
+ },
87
+ "type": {
88
+ "type": "intrinsic",
89
+ "name": "string"
90
+ }
91
+ },
92
+ {
93
+ "id": 33,
94
+ "name": "appId",
95
+ "variant": "param",
96
+ "kind": 32768,
97
+ "flags": {},
98
+ "comment": {
99
+ "summary": [
100
+ {
101
+ "kind": "text",
102
+ "text": "– Identifier of the app configuration"
103
+ }
104
+ ]
105
+ },
106
+ "type": {
107
+ "type": "intrinsic",
108
+ "name": "string"
109
+ }
110
+ }
111
+ ],
112
+ "type": {
113
+ "type": "reference",
114
+ "target": {
115
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
116
+ "qualifiedName": "Promise"
117
+ },
118
+ "typeArguments": [
119
+ {
120
+ "type": "reference",
121
+ "target": 79,
122
+ "name": "AppConfigurationResponse",
123
+ "package": "@proveanything/smartlinks"
124
+ }
125
+ ],
126
+ "name": "Promise",
127
+ "package": "typescript"
128
+ }
129
+ }
130
+ ]
131
+ }
132
+ ],
133
+ "groups": [
134
+ {
135
+ "title": "Functions",
136
+ "children": [
137
+ 30
138
+ ]
139
+ }
140
+ ],
141
+ "sources": [
142
+ {
143
+ "fileName": "api/appConfiguration.ts",
144
+ "line": 5,
145
+ "character": 17,
146
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/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
+ }
169
+ ],
170
+ "signatures": [
171
+ {
172
+ "id": 40,
173
+ "name": "getAllForCollection",
174
+ "variant": "signature",
175
+ "kind": 4096,
176
+ "flags": {},
177
+ "sources": [
178
+ {
179
+ "fileName": "api/asset.ts",
180
+ "line": 14,
181
+ "character": 24
182
+ }
183
+ ],
184
+ "parameters": [
185
+ {
186
+ "id": 41,
187
+ "name": "collectionId",
188
+ "variant": "param",
189
+ "kind": 32768,
190
+ "flags": {},
191
+ "type": {
192
+ "type": "intrinsic",
193
+ "name": "string"
194
+ }
195
+ }
196
+ ],
197
+ "type": {
198
+ "type": "reference",
199
+ "target": {
200
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
201
+ "qualifiedName": "Promise"
202
+ },
203
+ "typeArguments": [
204
+ {
205
+ "type": "array",
206
+ "elementType": {
207
+ "type": "reference",
208
+ "target": 86,
209
+ "name": "AssetResponse",
210
+ "package": "@proveanything/smartlinks"
211
+ }
212
+ }
213
+ ],
214
+ "name": "Promise",
215
+ "package": "typescript"
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "id": 47,
222
+ "name": "getAllForProduct",
223
+ "variant": "declaration",
224
+ "kind": 64,
225
+ "flags": {},
226
+ "sources": [
227
+ {
228
+ "fileName": "api/asset.ts",
229
+ "line": 31,
230
+ "character": 24
231
+ }
232
+ ],
233
+ "signatures": [
234
+ {
235
+ "id": 48,
236
+ "name": "getAllForProduct",
237
+ "variant": "signature",
238
+ "kind": 4096,
239
+ "flags": {},
240
+ "sources": [
241
+ {
242
+ "fileName": "api/asset.ts",
243
+ "line": 31,
244
+ "character": 24
245
+ }
246
+ ],
247
+ "parameters": [
248
+ {
249
+ "id": 49,
250
+ "name": "collectionId",
251
+ "variant": "param",
252
+ "kind": 32768,
253
+ "flags": {},
254
+ "type": {
255
+ "type": "intrinsic",
256
+ "name": "string"
257
+ }
258
+ },
259
+ {
260
+ "id": 50,
261
+ "name": "productId",
262
+ "variant": "param",
263
+ "kind": 32768,
264
+ "flags": {},
265
+ "type": {
266
+ "type": "intrinsic",
267
+ "name": "string"
268
+ }
269
+ }
270
+ ],
271
+ "type": {
272
+ "type": "reference",
273
+ "target": {
274
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
275
+ "qualifiedName": "Promise"
276
+ },
277
+ "typeArguments": [
278
+ {
279
+ "type": "array",
280
+ "elementType": {
281
+ "type": "reference",
282
+ "target": 86,
283
+ "name": "AssetResponse",
284
+ "package": "@proveanything/smartlinks"
285
+ }
286
+ }
287
+ ],
288
+ "name": "Promise",
289
+ "package": "typescript"
290
+ }
291
+ }
292
+ ]
293
+ },
294
+ {
295
+ "id": 56,
296
+ "name": "getAllForProof",
297
+ "variant": "declaration",
298
+ "kind": 64,
299
+ "flags": {},
300
+ "sources": [
301
+ {
302
+ "fileName": "api/asset.ts",
303
+ "line": 49,
304
+ "character": 24
305
+ }
306
+ ],
307
+ "signatures": [
308
+ {
309
+ "id": 57,
310
+ "name": "getAllForProof",
311
+ "variant": "signature",
312
+ "kind": 4096,
313
+ "flags": {},
314
+ "sources": [
315
+ {
316
+ "fileName": "api/asset.ts",
317
+ "line": 49,
318
+ "character": 24
319
+ }
320
+ ],
321
+ "parameters": [
322
+ {
323
+ "id": 58,
324
+ "name": "collectionId",
325
+ "variant": "param",
326
+ "kind": 32768,
327
+ "flags": {},
328
+ "type": {
329
+ "type": "intrinsic",
330
+ "name": "string"
331
+ }
332
+ },
333
+ {
334
+ "id": 59,
335
+ "name": "proofId",
336
+ "variant": "param",
337
+ "kind": 32768,
338
+ "flags": {},
339
+ "type": {
340
+ "type": "intrinsic",
341
+ "name": "string"
342
+ }
343
+ },
344
+ {
345
+ "id": 60,
346
+ "name": "appId",
347
+ "variant": "param",
348
+ "kind": 32768,
349
+ "flags": {
350
+ "isOptional": true
351
+ },
352
+ "type": {
353
+ "type": "intrinsic",
354
+ "name": "string"
355
+ }
356
+ }
357
+ ],
358
+ "type": {
359
+ "type": "reference",
360
+ "target": {
361
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
362
+ "qualifiedName": "Promise"
363
+ },
364
+ "typeArguments": [
365
+ {
366
+ "type": "array",
367
+ "elementType": {
368
+ "type": "reference",
369
+ "target": 86,
370
+ "name": "AssetResponse",
371
+ "package": "@proveanything/smartlinks"
372
+ }
373
+ }
374
+ ],
375
+ "name": "Promise",
376
+ "package": "typescript"
377
+ }
378
+ }
379
+ ]
380
+ },
381
+ {
382
+ "id": 35,
383
+ "name": "getForCollection",
384
+ "variant": "declaration",
385
+ "kind": 64,
386
+ "flags": {},
387
+ "sources": [
388
+ {
389
+ "fileName": "api/asset.ts",
390
+ "line": 6,
391
+ "character": 24
392
+ }
393
+ ],
394
+ "signatures": [
395
+ {
396
+ "id": 36,
397
+ "name": "getForCollection",
398
+ "variant": "signature",
399
+ "kind": 4096,
400
+ "flags": {},
401
+ "sources": [
402
+ {
403
+ "fileName": "api/asset.ts",
404
+ "line": 6,
405
+ "character": 24
406
+ }
407
+ ],
408
+ "parameters": [
409
+ {
410
+ "id": 37,
411
+ "name": "collectionId",
412
+ "variant": "param",
413
+ "kind": 32768,
414
+ "flags": {},
415
+ "type": {
416
+ "type": "intrinsic",
417
+ "name": "string"
418
+ }
419
+ },
420
+ {
421
+ "id": 38,
422
+ "name": "assetId",
423
+ "variant": "param",
424
+ "kind": 32768,
425
+ "flags": {},
426
+ "type": {
427
+ "type": "intrinsic",
428
+ "name": "string"
429
+ }
430
+ }
431
+ ],
432
+ "type": {
433
+ "type": "reference",
434
+ "target": {
435
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
436
+ "qualifiedName": "Promise"
437
+ },
438
+ "typeArguments": [
439
+ {
440
+ "type": "reference",
441
+ "target": 86,
442
+ "name": "AssetResponse",
443
+ "package": "@proveanything/smartlinks"
444
+ }
445
+ ],
446
+ "name": "Promise",
447
+ "package": "typescript"
448
+ }
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "id": 42,
454
+ "name": "getForProduct",
455
+ "variant": "declaration",
456
+ "kind": 64,
457
+ "flags": {},
458
+ "sources": [
459
+ {
460
+ "fileName": "api/asset.ts",
461
+ "line": 22,
25
462
  "character": 24
26
463
  }
27
464
  ],
28
465
  "signatures": [
29
466
  {
30
- "id": 31,
31
- "name": "get",
467
+ "id": 43,
468
+ "name": "getForProduct",
32
469
  "variant": "signature",
33
470
  "kind": 4096,
34
471
  "flags": {},
35
- "comment": {
36
- "summary": [
37
- {
38
- "kind": "text",
39
- "text": "Retrieves a single App Configuration by Collection ID and App ID."
472
+ "sources": [
473
+ {
474
+ "fileName": "api/asset.ts",
475
+ "line": 22,
476
+ "character": 24
477
+ }
478
+ ],
479
+ "parameters": [
480
+ {
481
+ "id": 44,
482
+ "name": "collectionId",
483
+ "variant": "param",
484
+ "kind": 32768,
485
+ "flags": {},
486
+ "type": {
487
+ "type": "intrinsic",
488
+ "name": "string"
40
489
  }
41
- ],
42
- "blockTags": [
43
- {
44
- "tag": "@returns",
45
- "content": [
46
- {
47
- "kind": "text",
48
- "text": "Promise resolving to an AppConfigurationResponse object"
49
- }
50
- ]
51
- },
490
+ },
491
+ {
492
+ "id": 45,
493
+ "name": "productId",
494
+ "variant": "param",
495
+ "kind": 32768,
496
+ "flags": {},
497
+ "type": {
498
+ "type": "intrinsic",
499
+ "name": "string"
500
+ }
501
+ },
502
+ {
503
+ "id": 46,
504
+ "name": "assetId",
505
+ "variant": "param",
506
+ "kind": 32768,
507
+ "flags": {},
508
+ "type": {
509
+ "type": "intrinsic",
510
+ "name": "string"
511
+ }
512
+ }
513
+ ],
514
+ "type": {
515
+ "type": "reference",
516
+ "target": {
517
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
518
+ "qualifiedName": "Promise"
519
+ },
520
+ "typeArguments": [
52
521
  {
53
- "tag": "@throws",
54
- "content": [
55
- {
56
- "kind": "text",
57
- "text": "ErrorResponse if the request fails"
58
- }
59
- ]
522
+ "type": "reference",
523
+ "target": 86,
524
+ "name": "AssetResponse",
525
+ "package": "@proveanything/smartlinks"
60
526
  }
61
- ]
62
- },
527
+ ],
528
+ "name": "Promise",
529
+ "package": "typescript"
530
+ }
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "id": 51,
536
+ "name": "getForProof",
537
+ "variant": "declaration",
538
+ "kind": 64,
539
+ "flags": {},
540
+ "sources": [
541
+ {
542
+ "fileName": "api/asset.ts",
543
+ "line": 40,
544
+ "character": 24
545
+ }
546
+ ],
547
+ "signatures": [
548
+ {
549
+ "id": 52,
550
+ "name": "getForProof",
551
+ "variant": "signature",
552
+ "kind": 4096,
553
+ "flags": {},
63
554
  "sources": [
64
555
  {
65
- "fileName": "api/appConfiguration.ts",
66
- "line": 13,
556
+ "fileName": "api/asset.ts",
557
+ "line": 40,
67
558
  "character": 24
68
559
  }
69
560
  ],
70
561
  "parameters": [
71
562
  {
72
- "id": 32,
563
+ "id": 53,
73
564
  "name": "collectionId",
74
565
  "variant": "param",
75
566
  "kind": 32768,
76
567
  "flags": {},
77
- "comment": {
78
- "summary": [
79
- {
80
- "kind": "text",
81
- "text": "– Identifier of the parent collection"
82
- }
83
- ]
84
- },
85
568
  "type": {
86
569
  "type": "intrinsic",
87
570
  "name": "string"
88
571
  }
89
572
  },
90
573
  {
91
- "id": 33,
92
- "name": "appId",
574
+ "id": 54,
575
+ "name": "proofId",
576
+ "variant": "param",
577
+ "kind": 32768,
578
+ "flags": {},
579
+ "type": {
580
+ "type": "intrinsic",
581
+ "name": "string"
582
+ }
583
+ },
584
+ {
585
+ "id": 55,
586
+ "name": "assetId",
93
587
  "variant": "param",
94
588
  "kind": 32768,
95
589
  "flags": {},
96
- "comment": {
97
- "summary": [
98
- {
99
- "kind": "text",
100
- "text": "– Identifier of the app configuration"
101
- }
102
- ]
103
- },
104
590
  "type": {
105
591
  "type": "intrinsic",
106
592
  "name": "string"
@@ -116,8 +602,8 @@
116
602
  "typeArguments": [
117
603
  {
118
604
  "type": "reference",
119
- "target": 52,
120
- "name": "AppConfigurationResponse",
605
+ "target": 86,
606
+ "name": "AssetResponse",
121
607
  "package": "@proveanything/smartlinks"
122
608
  }
123
609
  ],
@@ -132,14 +618,19 @@
132
618
  {
133
619
  "title": "Functions",
134
620
  "children": [
135
- 30
621
+ 39,
622
+ 47,
623
+ 56,
624
+ 35,
625
+ 42,
626
+ 51
136
627
  ]
137
628
  }
138
629
  ],
139
630
  "sources": [
140
631
  {
141
- "fileName": "api/appConfiguration.ts",
142
- "line": 5,
632
+ "fileName": "api/asset.ts",
633
+ "line": 4,
143
634
  "character": 17
144
635
  }
145
636
  ]
@@ -161,7 +652,8 @@
161
652
  {
162
653
  "fileName": "api/collection.ts",
163
654
  "line": 12,
164
- "character": 24
655
+ "character": 24,
656
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/collection.ts#L12"
165
657
  }
166
658
  ],
167
659
  "signatures": [
@@ -203,7 +695,8 @@
203
695
  {
204
696
  "fileName": "api/collection.ts",
205
697
  "line": 12,
206
- "character": 24
698
+ "character": 24,
699
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/collection.ts#L12"
207
700
  }
208
701
  ],
209
702
  "parameters": [
@@ -236,7 +729,7 @@
236
729
  "typeArguments": [
237
730
  {
238
731
  "type": "reference",
239
- "target": 34,
732
+ "target": 61,
240
733
  "name": "CollectionResponse",
241
734
  "package": "@proveanything/smartlinks"
242
735
  }
@@ -260,7 +753,8 @@
260
753
  {
261
754
  "fileName": "api/collection.ts",
262
755
  "line": 5,
263
- "character": 17
756
+ "character": 17,
757
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/collection.ts#L5"
264
758
  }
265
759
  ]
266
760
  },
@@ -281,7 +775,8 @@
281
775
  {
282
776
  "fileName": "api/product.ts",
283
777
  "line": 13,
284
- "character": 24
778
+ "character": 24,
779
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/product.ts#L13"
285
780
  }
286
781
  ],
287
782
  "signatures": [
@@ -323,7 +818,8 @@
323
818
  {
324
819
  "fileName": "api/product.ts",
325
820
  "line": 13,
326
- "character": 24
821
+ "character": 24,
822
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/product.ts#L13"
327
823
  }
328
824
  ],
329
825
  "parameters": [
@@ -375,7 +871,7 @@
375
871
  "typeArguments": [
376
872
  {
377
873
  "type": "reference",
378
- "target": 39,
874
+ "target": 66,
379
875
  "name": "ProductResponse",
380
876
  "package": "@proveanything/smartlinks"
381
877
  }
@@ -396,7 +892,8 @@
396
892
  {
397
893
  "fileName": "api/product.ts",
398
894
  "line": 29,
399
- "character": 24
895
+ "character": 24,
896
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/product.ts#L29"
400
897
  }
401
898
  ],
402
899
  "signatures": [
@@ -438,7 +935,8 @@
438
935
  {
439
936
  "fileName": "api/product.ts",
440
937
  "line": 29,
441
- "character": 24
938
+ "character": 24,
939
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/product.ts#L29"
442
940
  }
443
941
  ],
444
942
  "parameters": [
@@ -473,7 +971,7 @@
473
971
  "type": "array",
474
972
  "elementType": {
475
973
  "type": "reference",
476
- "target": 39,
974
+ "target": 66,
477
975
  "name": "ProductResponse",
478
976
  "package": "@proveanything/smartlinks"
479
977
  }
@@ -499,7 +997,8 @@
499
997
  {
500
998
  "fileName": "api/product.ts",
501
999
  "line": 5,
502
- "character": 17
1000
+ "character": 17,
1001
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/product.ts#L5"
503
1002
  }
504
1003
  ]
505
1004
  },
@@ -520,7 +1019,8 @@
520
1019
  {
521
1020
  "fileName": "api/proof.ts",
522
1021
  "line": 13,
523
- "character": 24
1022
+ "character": 24,
1023
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/proof.ts#L13"
524
1024
  }
525
1025
  ],
526
1026
  "signatures": [
@@ -562,7 +1062,8 @@
562
1062
  {
563
1063
  "fileName": "api/proof.ts",
564
1064
  "line": 13,
565
- "character": 24
1065
+ "character": 24,
1066
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/proof.ts#L13"
566
1067
  }
567
1068
  ],
568
1069
  "parameters": [
@@ -614,7 +1115,7 @@
614
1115
  "typeArguments": [
615
1116
  {
616
1117
  "type": "reference",
617
- "target": 44,
1118
+ "target": 71,
618
1119
  "name": "ProofResponse",
619
1120
  "package": "@proveanything/smartlinks"
620
1121
  }
@@ -638,12 +1139,13 @@
638
1139
  {
639
1140
  "fileName": "api/proof.ts",
640
1141
  "line": 5,
641
- "character": 17
1142
+ "character": 17,
1143
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/api/proof.ts#L5"
642
1144
  }
643
1145
  ]
644
1146
  },
645
1147
  {
646
- "id": 52,
1148
+ "id": 79,
647
1149
  "name": "AppConfigurationResponse",
648
1150
  "variant": "declaration",
649
1151
  "kind": 256,
@@ -658,7 +1160,7 @@
658
1160
  },
659
1161
  "children": [
660
1162
  {
661
- "id": 53,
1163
+ "id": 80,
662
1164
  "name": "id",
663
1165
  "variant": "declaration",
664
1166
  "kind": 1024,
@@ -675,6 +1177,131 @@
675
1177
  {
676
1178
  "fileName": "types/appConfiguration.ts",
677
1179
  "line": 7,
1180
+ "character": 2,
1181
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/appConfiguration.ts#L7"
1182
+ }
1183
+ ],
1184
+ "type": {
1185
+ "type": "intrinsic",
1186
+ "name": "string"
1187
+ }
1188
+ },
1189
+ {
1190
+ "id": 81,
1191
+ "name": "name",
1192
+ "variant": "declaration",
1193
+ "kind": 1024,
1194
+ "flags": {},
1195
+ "comment": {
1196
+ "summary": [
1197
+ {
1198
+ "kind": "text",
1199
+ "text": "Name of the app configuration"
1200
+ }
1201
+ ]
1202
+ },
1203
+ "sources": [
1204
+ {
1205
+ "fileName": "types/appConfiguration.ts",
1206
+ "line": 9,
1207
+ "character": 2,
1208
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/appConfiguration.ts#L9"
1209
+ }
1210
+ ],
1211
+ "type": {
1212
+ "type": "intrinsic",
1213
+ "name": "string"
1214
+ }
1215
+ },
1216
+ {
1217
+ "id": 82,
1218
+ "name": "settings",
1219
+ "variant": "declaration",
1220
+ "kind": 1024,
1221
+ "flags": {
1222
+ "isOptional": true
1223
+ },
1224
+ "comment": {
1225
+ "summary": [
1226
+ {
1227
+ "kind": "text",
1228
+ "text": "Key-value pairs representing configuration settings"
1229
+ }
1230
+ ]
1231
+ },
1232
+ "sources": [
1233
+ {
1234
+ "fileName": "types/appConfiguration.ts",
1235
+ "line": 11,
1236
+ "character": 2,
1237
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/appConfiguration.ts#L11"
1238
+ }
1239
+ ],
1240
+ "type": {
1241
+ "type": "reference",
1242
+ "target": {
1243
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
1244
+ "qualifiedName": "Record"
1245
+ },
1246
+ "typeArguments": [
1247
+ {
1248
+ "type": "intrinsic",
1249
+ "name": "string"
1250
+ },
1251
+ {
1252
+ "type": "intrinsic",
1253
+ "name": "any"
1254
+ }
1255
+ ],
1256
+ "name": "Record",
1257
+ "package": "typescript"
1258
+ }
1259
+ }
1260
+ ],
1261
+ "groups": [
1262
+ {
1263
+ "title": "Properties",
1264
+ "children": [
1265
+ 80,
1266
+ 81,
1267
+ 82
1268
+ ]
1269
+ }
1270
+ ],
1271
+ "sources": [
1272
+ {
1273
+ "fileName": "types/appConfiguration.ts",
1274
+ "line": 5,
1275
+ "character": 17,
1276
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/appConfiguration.ts#L5"
1277
+ }
1278
+ ]
1279
+ },
1280
+ {
1281
+ "id": 86,
1282
+ "name": "AssetResponse",
1283
+ "variant": "declaration",
1284
+ "kind": 256,
1285
+ "flags": {},
1286
+ "comment": {
1287
+ "summary": [
1288
+ {
1289
+ "kind": "text",
1290
+ "text": "Represents an Asset object."
1291
+ }
1292
+ ]
1293
+ },
1294
+ "children": [
1295
+ {
1296
+ "id": 87,
1297
+ "name": "id",
1298
+ "variant": "declaration",
1299
+ "kind": 1024,
1300
+ "flags": {},
1301
+ "sources": [
1302
+ {
1303
+ "fileName": "types/asset.ts",
1304
+ "line": 5,
678
1305
  "character": 2
679
1306
  }
680
1307
  ],
@@ -684,23 +1311,15 @@
684
1311
  }
685
1312
  },
686
1313
  {
687
- "id": 54,
1314
+ "id": 88,
688
1315
  "name": "name",
689
1316
  "variant": "declaration",
690
1317
  "kind": 1024,
691
1318
  "flags": {},
692
- "comment": {
693
- "summary": [
694
- {
695
- "kind": "text",
696
- "text": "Name of the app configuration"
697
- }
698
- ]
699
- },
700
1319
  "sources": [
701
1320
  {
702
- "fileName": "types/appConfiguration.ts",
703
- "line": 9,
1321
+ "fileName": "types/asset.ts",
1322
+ "line": 6,
704
1323
  "character": 2
705
1324
  }
706
1325
  ],
@@ -710,46 +1329,21 @@
710
1329
  }
711
1330
  },
712
1331
  {
713
- "id": 55,
714
- "name": "settings",
1332
+ "id": 89,
1333
+ "name": "url",
715
1334
  "variant": "declaration",
716
1335
  "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
- },
1336
+ "flags": {},
728
1337
  "sources": [
729
1338
  {
730
- "fileName": "types/appConfiguration.ts",
731
- "line": 11,
1339
+ "fileName": "types/asset.ts",
1340
+ "line": 7,
732
1341
  "character": 2
733
1342
  }
734
1343
  ],
735
1344
  "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"
1345
+ "type": "intrinsic",
1346
+ "name": "string"
753
1347
  }
754
1348
  }
755
1349
  ],
@@ -757,22 +1351,22 @@
757
1351
  {
758
1352
  "title": "Properties",
759
1353
  "children": [
760
- 53,
761
- 54,
762
- 55
1354
+ 87,
1355
+ 88,
1356
+ 89
763
1357
  ]
764
1358
  }
765
1359
  ],
766
1360
  "sources": [
767
1361
  {
768
- "fileName": "types/appConfiguration.ts",
769
- "line": 5,
1362
+ "fileName": "types/asset.ts",
1363
+ "line": 4,
770
1364
  "character": 17
771
1365
  }
772
1366
  ]
773
1367
  },
774
1368
  {
775
- "id": 34,
1369
+ "id": 61,
776
1370
  "name": "CollectionResponse",
777
1371
  "variant": "declaration",
778
1372
  "kind": 256,
@@ -787,7 +1381,7 @@
787
1381
  },
788
1382
  "children": [
789
1383
  {
790
- "id": 35,
1384
+ "id": 62,
791
1385
  "name": "id",
792
1386
  "variant": "declaration",
793
1387
  "kind": 1024,
@@ -804,7 +1398,8 @@
804
1398
  {
805
1399
  "fileName": "types/collection.ts",
806
1400
  "line": 7,
807
- "character": 2
1401
+ "character": 2,
1402
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/collection.ts#L7"
808
1403
  }
809
1404
  ],
810
1405
  "type": {
@@ -813,7 +1408,7 @@
813
1408
  }
814
1409
  },
815
1410
  {
816
- "id": 38,
1411
+ "id": 65,
817
1412
  "name": "logoImage",
818
1413
  "variant": "declaration",
819
1414
  "kind": 1024,
@@ -830,7 +1425,8 @@
830
1425
  {
831
1426
  "fileName": "types/collection.ts",
832
1427
  "line": 13,
833
- "character": 2
1428
+ "character": 2,
1429
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/collection.ts#L13"
834
1430
  }
835
1431
  ],
836
1432
  "type": {
@@ -839,7 +1435,7 @@
839
1435
  }
840
1436
  },
841
1437
  {
842
- "id": 36,
1438
+ "id": 63,
843
1439
  "name": "name",
844
1440
  "variant": "declaration",
845
1441
  "kind": 1024,
@@ -856,7 +1452,8 @@
856
1452
  {
857
1453
  "fileName": "types/collection.ts",
858
1454
  "line": 9,
859
- "character": 2
1455
+ "character": 2,
1456
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/collection.ts#L9"
860
1457
  }
861
1458
  ],
862
1459
  "type": {
@@ -865,7 +1462,7 @@
865
1462
  }
866
1463
  },
867
1464
  {
868
- "id": 37,
1465
+ "id": 64,
869
1466
  "name": "title",
870
1467
  "variant": "declaration",
871
1468
  "kind": 1024,
@@ -882,7 +1479,8 @@
882
1479
  {
883
1480
  "fileName": "types/collection.ts",
884
1481
  "line": 11,
885
- "character": 2
1482
+ "character": 2,
1483
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/collection.ts#L11"
886
1484
  }
887
1485
  ],
888
1486
  "type": {
@@ -895,10 +1493,10 @@
895
1493
  {
896
1494
  "title": "Properties",
897
1495
  "children": [
898
- 35,
899
- 38,
900
- 36,
901
- 37
1496
+ 62,
1497
+ 65,
1498
+ 63,
1499
+ 64
902
1500
  ]
903
1501
  }
904
1502
  ],
@@ -906,12 +1504,13 @@
906
1504
  {
907
1505
  "fileName": "types/collection.ts",
908
1506
  "line": 5,
909
- "character": 17
1507
+ "character": 17,
1508
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/collection.ts#L5"
910
1509
  }
911
1510
  ]
912
1511
  },
913
1512
  {
914
- "id": 56,
1513
+ "id": 83,
915
1514
  "name": "ErrorResponse",
916
1515
  "variant": "declaration",
917
1516
  "kind": 256,
@@ -926,7 +1525,7 @@
926
1525
  },
927
1526
  "children": [
928
1527
  {
929
- "id": 57,
1528
+ "id": 84,
930
1529
  "name": "code",
931
1530
  "variant": "declaration",
932
1531
  "kind": 1024,
@@ -943,7 +1542,8 @@
943
1542
  {
944
1543
  "fileName": "types/error.ts",
945
1544
  "line": 7,
946
- "character": 2
1545
+ "character": 2,
1546
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/error.ts#L7"
947
1547
  }
948
1548
  ],
949
1549
  "type": {
@@ -952,7 +1552,7 @@
952
1552
  }
953
1553
  },
954
1554
  {
955
- "id": 58,
1555
+ "id": 85,
956
1556
  "name": "message",
957
1557
  "variant": "declaration",
958
1558
  "kind": 1024,
@@ -969,7 +1569,8 @@
969
1569
  {
970
1570
  "fileName": "types/error.ts",
971
1571
  "line": 9,
972
- "character": 2
1572
+ "character": 2,
1573
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/error.ts#L9"
973
1574
  }
974
1575
  ],
975
1576
  "type": {
@@ -982,8 +1583,8 @@
982
1583
  {
983
1584
  "title": "Properties",
984
1585
  "children": [
985
- 57,
986
- 58
1586
+ 84,
1587
+ 85
987
1588
  ]
988
1589
  }
989
1590
  ],
@@ -991,12 +1592,13 @@
991
1592
  {
992
1593
  "fileName": "types/error.ts",
993
1594
  "line": 5,
994
- "character": 17
1595
+ "character": 17,
1596
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/error.ts#L5"
995
1597
  }
996
1598
  ]
997
1599
  },
998
1600
  {
999
- "id": 39,
1601
+ "id": 66,
1000
1602
  "name": "ProductResponse",
1001
1603
  "variant": "declaration",
1002
1604
  "kind": 256,
@@ -1011,7 +1613,7 @@
1011
1613
  },
1012
1614
  "children": [
1013
1615
  {
1014
- "id": 42,
1616
+ "id": 69,
1015
1617
  "name": "description",
1016
1618
  "variant": "declaration",
1017
1619
  "kind": 1024,
@@ -1028,7 +1630,8 @@
1028
1630
  {
1029
1631
  "fileName": "types/product.ts",
1030
1632
  "line": 11,
1031
- "character": 2
1633
+ "character": 2,
1634
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/product.ts#L11"
1032
1635
  }
1033
1636
  ],
1034
1637
  "type": {
@@ -1037,7 +1640,7 @@
1037
1640
  }
1038
1641
  },
1039
1642
  {
1040
- "id": 43,
1643
+ "id": 70,
1041
1644
  "name": "heroImage",
1042
1645
  "variant": "declaration",
1043
1646
  "kind": 1024,
@@ -1054,7 +1657,8 @@
1054
1657
  {
1055
1658
  "fileName": "types/product.ts",
1056
1659
  "line": 13,
1057
- "character": 2
1660
+ "character": 2,
1661
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/product.ts#L13"
1058
1662
  }
1059
1663
  ],
1060
1664
  "type": {
@@ -1063,7 +1667,7 @@
1063
1667
  }
1064
1668
  },
1065
1669
  {
1066
- "id": 40,
1670
+ "id": 67,
1067
1671
  "name": "id",
1068
1672
  "variant": "declaration",
1069
1673
  "kind": 1024,
@@ -1080,7 +1684,8 @@
1080
1684
  {
1081
1685
  "fileName": "types/product.ts",
1082
1686
  "line": 7,
1083
- "character": 2
1687
+ "character": 2,
1688
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/product.ts#L7"
1084
1689
  }
1085
1690
  ],
1086
1691
  "type": {
@@ -1089,7 +1694,7 @@
1089
1694
  }
1090
1695
  },
1091
1696
  {
1092
- "id": 41,
1697
+ "id": 68,
1093
1698
  "name": "name",
1094
1699
  "variant": "declaration",
1095
1700
  "kind": 1024,
@@ -1106,7 +1711,8 @@
1106
1711
  {
1107
1712
  "fileName": "types/product.ts",
1108
1713
  "line": 9,
1109
- "character": 2
1714
+ "character": 2,
1715
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/product.ts#L9"
1110
1716
  }
1111
1717
  ],
1112
1718
  "type": {
@@ -1119,10 +1725,10 @@
1119
1725
  {
1120
1726
  "title": "Properties",
1121
1727
  "children": [
1122
- 42,
1123
- 43,
1124
- 40,
1125
- 41
1728
+ 69,
1729
+ 70,
1730
+ 67,
1731
+ 68
1126
1732
  ]
1127
1733
  }
1128
1734
  ],
@@ -1130,12 +1736,13 @@
1130
1736
  {
1131
1737
  "fileName": "types/product.ts",
1132
1738
  "line": 5,
1133
- "character": 17
1739
+ "character": 17,
1740
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/product.ts#L5"
1134
1741
  }
1135
1742
  ]
1136
1743
  },
1137
1744
  {
1138
- "id": 44,
1745
+ "id": 71,
1139
1746
  "name": "ProofResponse",
1140
1747
  "variant": "declaration",
1141
1748
  "kind": 256,
@@ -1150,7 +1757,7 @@
1150
1757
  },
1151
1758
  "children": [
1152
1759
  {
1153
- "id": 45,
1760
+ "id": 72,
1154
1761
  "name": "collectionId",
1155
1762
  "variant": "declaration",
1156
1763
  "kind": 1024,
@@ -1167,7 +1774,8 @@
1167
1774
  {
1168
1775
  "fileName": "types/proof.ts",
1169
1776
  "line": 7,
1170
- "character": 2
1777
+ "character": 2,
1778
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L7"
1171
1779
  }
1172
1780
  ],
1173
1781
  "type": {
@@ -1176,7 +1784,7 @@
1176
1784
  }
1177
1785
  },
1178
1786
  {
1179
- "id": 46,
1787
+ "id": 73,
1180
1788
  "name": "createdAt",
1181
1789
  "variant": "declaration",
1182
1790
  "kind": 1024,
@@ -1193,7 +1801,8 @@
1193
1801
  {
1194
1802
  "fileName": "types/proof.ts",
1195
1803
  "line": 9,
1196
- "character": 2
1804
+ "character": 2,
1805
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L9"
1197
1806
  }
1198
1807
  ],
1199
1808
  "type": {
@@ -1202,7 +1811,7 @@
1202
1811
  }
1203
1812
  },
1204
1813
  {
1205
- "id": 47,
1814
+ "id": 74,
1206
1815
  "name": "id",
1207
1816
  "variant": "declaration",
1208
1817
  "kind": 1024,
@@ -1219,7 +1828,8 @@
1219
1828
  {
1220
1829
  "fileName": "types/proof.ts",
1221
1830
  "line": 11,
1222
- "character": 2
1831
+ "character": 2,
1832
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L11"
1223
1833
  }
1224
1834
  ],
1225
1835
  "type": {
@@ -1228,7 +1838,7 @@
1228
1838
  }
1229
1839
  },
1230
1840
  {
1231
- "id": 48,
1841
+ "id": 75,
1232
1842
  "name": "productId",
1233
1843
  "variant": "declaration",
1234
1844
  "kind": 1024,
@@ -1245,7 +1855,8 @@
1245
1855
  {
1246
1856
  "fileName": "types/proof.ts",
1247
1857
  "line": 13,
1248
- "character": 2
1858
+ "character": 2,
1859
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L13"
1249
1860
  }
1250
1861
  ],
1251
1862
  "type": {
@@ -1254,7 +1865,7 @@
1254
1865
  }
1255
1866
  },
1256
1867
  {
1257
- "id": 49,
1868
+ "id": 76,
1258
1869
  "name": "tokenId",
1259
1870
  "variant": "declaration",
1260
1871
  "kind": 1024,
@@ -1271,7 +1882,8 @@
1271
1882
  {
1272
1883
  "fileName": "types/proof.ts",
1273
1884
  "line": 15,
1274
- "character": 2
1885
+ "character": 2,
1886
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L15"
1275
1887
  }
1276
1888
  ],
1277
1889
  "type": {
@@ -1280,7 +1892,7 @@
1280
1892
  }
1281
1893
  },
1282
1894
  {
1283
- "id": 50,
1895
+ "id": 77,
1284
1896
  "name": "userId",
1285
1897
  "variant": "declaration",
1286
1898
  "kind": 1024,
@@ -1297,7 +1909,8 @@
1297
1909
  {
1298
1910
  "fileName": "types/proof.ts",
1299
1911
  "line": 17,
1300
- "character": 2
1912
+ "character": 2,
1913
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L17"
1301
1914
  }
1302
1915
  ],
1303
1916
  "type": {
@@ -1306,7 +1919,7 @@
1306
1919
  }
1307
1920
  },
1308
1921
  {
1309
- "id": 51,
1922
+ "id": 78,
1310
1923
  "name": "values",
1311
1924
  "variant": "declaration",
1312
1925
  "kind": 1024,
@@ -1323,7 +1936,8 @@
1323
1936
  {
1324
1937
  "fileName": "types/proof.ts",
1325
1938
  "line": 19,
1326
- "character": 2
1939
+ "character": 2,
1940
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L19"
1327
1941
  }
1328
1942
  ],
1329
1943
  "type": {
@@ -1351,13 +1965,13 @@
1351
1965
  {
1352
1966
  "title": "Properties",
1353
1967
  "children": [
1354
- 45,
1355
- 46,
1356
- 47,
1357
- 48,
1358
- 49,
1359
- 50,
1360
- 51
1968
+ 72,
1969
+ 73,
1970
+ 74,
1971
+ 75,
1972
+ 76,
1973
+ 77,
1974
+ 78
1361
1975
  ]
1362
1976
  }
1363
1977
  ],
@@ -1365,7 +1979,8 @@
1365
1979
  {
1366
1980
  "fileName": "types/proof.ts",
1367
1981
  "line": 5,
1368
- "character": 17
1982
+ "character": 17,
1983
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/types/proof.ts#L5"
1369
1984
  }
1370
1985
  ]
1371
1986
  },
@@ -1379,7 +1994,8 @@
1379
1994
  {
1380
1995
  "fileName": "http.ts",
1381
1996
  "line": 17,
1382
- "character": 16
1997
+ "character": 16,
1998
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L17"
1383
1999
  }
1384
2000
  ],
1385
2001
  "signatures": [
@@ -1401,7 +2017,8 @@
1401
2017
  {
1402
2018
  "fileName": "http.ts",
1403
2019
  "line": 17,
1404
- "character": 16
2020
+ "character": 16,
2021
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L17"
1405
2022
  }
1406
2023
  ],
1407
2024
  "parameters": [
@@ -1440,7 +2057,8 @@
1440
2057
  {
1441
2058
  "fileName": "http.ts",
1442
2059
  "line": 19,
1443
- "character": 2
2060
+ "character": 2,
2061
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L19"
1444
2062
  }
1445
2063
  ],
1446
2064
  "type": {
@@ -1466,7 +2084,8 @@
1466
2084
  {
1467
2085
  "fileName": "http.ts",
1468
2086
  "line": 18,
1469
- "character": 2
2087
+ "character": 2,
2088
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L18"
1470
2089
  }
1471
2090
  ],
1472
2091
  "type": {
@@ -1494,7 +2113,8 @@
1494
2113
  {
1495
2114
  "fileName": "http.ts",
1496
2115
  "line": 20,
1497
- "character": 2
2116
+ "character": 2,
2117
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L20"
1498
2118
  }
1499
2119
  ],
1500
2120
  "type": {
@@ -1517,7 +2137,8 @@
1517
2137
  {
1518
2138
  "fileName": "http.ts",
1519
2139
  "line": 17,
1520
- "character": 39
2140
+ "character": 39,
2141
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L17"
1521
2142
  }
1522
2143
  ]
1523
2144
  }
@@ -1541,7 +2162,8 @@
1541
2162
  {
1542
2163
  "fileName": "http.ts",
1543
2164
  "line": 32,
1544
- "character": 22
2165
+ "character": 22,
2166
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L32"
1545
2167
  }
1546
2168
  ],
1547
2169
  "signatures": [
@@ -1563,7 +2185,8 @@
1563
2185
  {
1564
2186
  "fileName": "http.ts",
1565
2187
  "line": 32,
1566
- "character": 22
2188
+ "character": 22,
2189
+ "url": "https://github.com/Prove-Anything/smartlinks/blob/800312bb071a4ca6ad8b4e24462661f669c0b9a1/src/http.ts#L32"
1567
2190
  }
1568
2191
  ],
1569
2192
  "typeParameter": [
@@ -1615,6 +2238,7 @@
1615
2238
  "title": "Namespaces",
1616
2239
  "children": [
1617
2240
  29,
2241
+ 34,
1618
2242
  12,
1619
2243
  16,
1620
2244
  24
@@ -1623,11 +2247,12 @@
1623
2247
  {
1624
2248
  "title": "Interfaces",
1625
2249
  "children": [
1626
- 52,
1627
- 34,
1628
- 56,
1629
- 39,
1630
- 44
2250
+ 79,
2251
+ 86,
2252
+ 61,
2253
+ 83,
2254
+ 66,
2255
+ 71
1631
2256
  ]
1632
2257
  },
1633
2258
  {
@@ -1642,7 +2267,7 @@
1642
2267
  "readme": [
1643
2268
  {
1644
2269
  "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"
2270
+ "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
2271
  },
1647
2272
  {
1648
2273
  "kind": "code",
@@ -1654,23 +2279,15 @@
1654
2279
  },
1655
2280
  {
1656
2281
  "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`"
2282
+ "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
2283
  },
1667
2284
  {
1668
2285
  "kind": "text",
1669
- "text": "\n\n"
2286
+ "text": "\n\n## API Reference\n\n### Initialization\n\n"
1670
2287
  },
1671
2288
  {
1672
2289
  "kind": "code",
1673
- "text": "```ts\nconstructor(baseURL: string, apiKey?: string)\n```"
2290
+ "text": "```ts\ninitializeApi(options: { baseURL: string; apiKey?: string; bearerToken?: string }): void\n```"
1674
2291
  },
1675
2292
  {
1676
2293
  "kind": "text",
@@ -1698,12 +2315,36 @@
1698
2315
  },
1699
2316
  {
1700
2317
  "kind": "text",
1701
- "text": ". \n - "
2318
+ "text": ".\n - "
1702
2319
  },
1703
2320
  {
1704
2321
  "kind": "code",
1705
2322
  "text": "`apiKey`"
1706
2323
  },
2324
+ {
2325
+ "kind": "text",
2326
+ "text": " ("
2327
+ },
2328
+ {
2329
+ "kind": "code",
2330
+ "text": "`string`"
2331
+ },
2332
+ {
2333
+ "kind": "text",
2334
+ "text": ", optional): Your API key for the "
2335
+ },
2336
+ {
2337
+ "kind": "code",
2338
+ "text": "`X-API-Key`"
2339
+ },
2340
+ {
2341
+ "kind": "text",
2342
+ "text": " header.\n - "
2343
+ },
2344
+ {
2345
+ "kind": "code",
2346
+ "text": "`bearerToken`"
2347
+ },
1707
2348
  {
1708
2349
  "kind": "text",
1709
2350
  "text": " ("
@@ -1714,19 +2355,27 @@
1714
2355
  },
1715
2356
  {
1716
2357
  "kind": "text",
1717
- "text": ", optional): Your Bearer token. If omitted, requests will be sent without an "
2358
+ "text": ", optional): Your Bearer token for the "
1718
2359
  },
1719
2360
  {
1720
2361
  "kind": "code",
1721
- "text": "`Authorization`"
2362
+ "text": "`AUTHORIZATION`"
2363
+ },
2364
+ {
2365
+ "kind": "text",
2366
+ "text": " header.\n\nAll subsequent calls to the API functions will use these settings.\n\n---\n\n### Namespace: "
2367
+ },
2368
+ {
2369
+ "kind": "code",
2370
+ "text": "`collection`"
1722
2371
  },
1723
2372
  {
1724
2373
  "kind": "text",
1725
- "text": " header.\n\n---\n\n#### "
2374
+ "text": "\n\n#### "
1726
2375
  },
1727
2376
  {
1728
2377
  "kind": "code",
1729
- "text": "`getCollection(collectionId: string): Promise<CollectionResponse>`"
2378
+ "text": "`collection.get(collectionId: string): Promise<CollectionResponse>`"
1730
2379
  },
1731
2380
  {
1732
2381
  "kind": "text",
@@ -1774,15 +2423,23 @@
1774
2423
  },
1775
2424
  {
1776
2425
  "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 ```"
2426
+ "text": "```ts\n const coll = await collection.get(\"abc123\");\n console.log(\"Fetched collection:\", coll.title);\n ```"
2427
+ },
2428
+ {
2429
+ "kind": "text",
2430
+ "text": "\n\n---\n\n### Namespace: "
2431
+ },
2432
+ {
2433
+ "kind": "code",
2434
+ "text": "`product`"
1778
2435
  },
1779
2436
  {
1780
2437
  "kind": "text",
1781
- "text": "\n\n---\n\n#### "
2438
+ "text": "\n\n#### "
1782
2439
  },
1783
2440
  {
1784
2441
  "kind": "code",
1785
- "text": "`getProductItem(collectionId: string, productId: string): Promise<ProductResponse>`"
2442
+ "text": "`product.get(collectionId: string, productId: string): Promise<ProductResponse>`"
1786
2443
  },
1787
2444
  {
1788
2445
  "kind": "text",
@@ -1810,7 +2467,7 @@
1810
2467
  },
1811
2468
  {
1812
2469
  "kind": "text",
1813
- "text": " ("
2470
+ "text": " ("
1814
2471
  },
1815
2472
  {
1816
2473
  "kind": "code",
@@ -1846,19 +2503,27 @@
1846
2503
  },
1847
2504
  {
1848
2505
  "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 ```"
2506
+ "text": "```ts\n const prod = await product.get(\"abc123\", \"prod789\");\n console.log(\"Fetched product:\", prod.name);\n ```"
2507
+ },
2508
+ {
2509
+ "kind": "text",
2510
+ "text": "\n\n---\n\n### Namespace: "
2511
+ },
2512
+ {
2513
+ "kind": "code",
2514
+ "text": "`proof`"
1850
2515
  },
1851
2516
  {
1852
2517
  "kind": "text",
1853
- "text": "\n\n---\n\n#### "
2518
+ "text": "\n\n#### "
1854
2519
  },
1855
2520
  {
1856
2521
  "kind": "code",
1857
- "text": "`getAppConfiguration(collectionId: string, appId: string): Promise<AppConfigurationResponse>`"
2522
+ "text": "`proof.get(collectionId: string, proofId: string): Promise<ProofResponse>`"
1858
2523
  },
1859
2524
  {
1860
2525
  "kind": "text",
1861
- "text": "\n\nFetches a single app configuration within a collection.\n\n- **Parameters:**\n - "
2526
+ "text": "\n\nFetches a single proof by collection ID and proof ID.\n\n- **Parameters:**\n - "
1862
2527
  },
1863
2528
  {
1864
2529
  "kind": "code",
@@ -1878,11 +2543,11 @@
1878
2543
  },
1879
2544
  {
1880
2545
  "kind": "code",
1881
- "text": "`appId`"
2546
+ "text": "`proofId`"
1882
2547
  },
1883
2548
  {
1884
2549
  "kind": "text",
1885
- "text": " ("
2550
+ "text": " ("
1886
2551
  },
1887
2552
  {
1888
2553
  "kind": "code",
@@ -1890,7 +2555,7 @@
1890
2555
  },
1891
2556
  {
1892
2557
  "kind": "text",
1893
- "text": ", required): The app configuration’s ID.\n- **Returns:** \n A "
2558
+ "text": ", required): The proof’s ID.\n- **Returns:** \n A "
1894
2559
  },
1895
2560
  {
1896
2561
  "kind": "code",
@@ -1898,11 +2563,11 @@
1898
2563
  },
1899
2564
  {
1900
2565
  "kind": "text",
1901
- "text": " that resolves to an "
2566
+ "text": " that resolves to a "
1902
2567
  },
1903
2568
  {
1904
2569
  "kind": "code",
1905
- "text": "`AppConfigurationResponse`"
2570
+ "text": "`ProofResponse`"
1906
2571
  },
1907
2572
  {
1908
2573
  "kind": "text",
@@ -1910,7 +2575,7 @@
1910
2575
  },
1911
2576
  {
1912
2577
  "kind": "code",
1913
- "text": "```ts\n export interface AppConfigurationResponse {\n id: string;\n name: string;\n settings?: Record<string, any>;\n }\n ```"
2578
+ "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
2579
  },
1915
2580
  {
1916
2581
  "kind": "text",
@@ -1918,139 +2583,163 @@
1918
2583
  },
1919
2584
  {
1920
2585
  "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 ```"
2586
+ "text": "```ts\n const prf = await proof.get(\"abc123\", \"proof456\");\n console.log(\"Fetched proof:\", prf.id);\n ```"
1922
2587
  },
1923
2588
  {
1924
2589
  "kind": "text",
1925
- "text": "\n\n---\n\n## Authentication\n\nAll endpoints require a Bearer token passed in the "
2590
+ "text": "\n\n---\n\n### Namespace: "
1926
2591
  },
1927
2592
  {
1928
2593
  "kind": "code",
1929
- "text": "`AUTHORIZATION`"
2594
+ "text": "`appConfiguration`"
1930
2595
  },
1931
2596
  {
1932
2597
  "kind": "text",
1933
- "text": " header. When instantiating "
2598
+ "text": "\n\n#### "
1934
2599
  },
1935
2600
  {
1936
2601
  "kind": "code",
1937
- "text": "`ApiClient`"
2602
+ "text": "`appConfiguration.get(collectionId: string, appId: string): Promise<AppConfigurationResponse>`"
1938
2603
  },
1939
2604
  {
1940
2605
  "kind": "text",
1941
- "text": ", optionally supply your token:\n\n"
2606
+ "text": "\n\nFetches a single app configuration by collection ID and app ID.\n\n- **Parameters:**\n - "
1942
2607
  },
1943
2608
  {
1944
2609
  "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```"
2610
+ "text": "`collectionId`"
1946
2611
  },
1947
2612
  {
1948
2613
  "kind": "text",
1949
- "text": "\n\nIf "
2614
+ "text": " ("
1950
2615
  },
1951
2616
  {
1952
2617
  "kind": "code",
1953
- "text": "`apiKey`"
2618
+ "text": "`string`"
1954
2619
  },
1955
2620
  {
1956
2621
  "kind": "text",
1957
- "text": " is omitted, requests will be sent without an "
2622
+ "text": ", required): The parent collection’s ID.\n - "
1958
2623
  },
1959
2624
  {
1960
2625
  "kind": "code",
1961
- "text": "`Authorization`"
2626
+ "text": "`appId`"
1962
2627
  },
1963
2628
  {
1964
2629
  "kind": "text",
1965
- "text": " header, which may cause a "
2630
+ "text": " ("
1966
2631
  },
1967
2632
  {
1968
2633
  "kind": "code",
1969
- "text": "`401 Unauthorized`"
2634
+ "text": "`string`"
1970
2635
  },
1971
2636
  {
1972
2637
  "kind": "text",
1973
- "text": " for protected endpoints.\n\n## Error Handling\n\nAll methods throw an "
2638
+ "text": ", required): The app configuration’s ID.\n- **Returns:** \n A "
1974
2639
  },
1975
2640
  {
1976
2641
  "kind": "code",
1977
- "text": "`Error`"
2642
+ "text": "`Promise`"
2643
+ },
2644
+ {
2645
+ "kind": "text",
2646
+ "text": " that resolves to an "
2647
+ },
2648
+ {
2649
+ "kind": "code",
2650
+ "text": "`AppConfigurationResponse`"
2651
+ },
2652
+ {
2653
+ "kind": "text",
2654
+ "text": " object:\n\n "
2655
+ },
2656
+ {
2657
+ "kind": "code",
2658
+ "text": "```ts\n export interface AppConfigurationResponse {\n id: string;\n name: string;\n settings?: Record<string, any>;\n }\n ```"
2659
+ },
2660
+ {
2661
+ "kind": "text",
2662
+ "text": "\n\n- **Example:**\n "
2663
+ },
2664
+ {
2665
+ "kind": "code",
2666
+ "text": "```ts\n const cfg = await appConfiguration.get(\"abc123\", \"app789\");\n console.log(\"Fetched app configuration:\", cfg.name);\n ```"
1978
2667
  },
1979
2668
  {
1980
2669
  "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"
2670
+ "text": "\n\n---\n\n## Error Handling\n\nAll methods throw an "
1982
2671
  },
1983
2672
  {
1984
2673
  "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```"
2674
+ "text": "`Error`"
1986
2675
  },
1987
2676
  {
1988
2677
  "kind": "text",
1989
- "text": "\n\n## Examples\n\nSee the **examples/** folder for complete, runnable samples:\n\n- ["
2678
+ "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
2679
  },
1991
2680
  {
1992
2681
  "kind": "code",
1993
- "text": "`examples/node-demo.ts`"
2682
+ "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
2683
  },
1995
2684
  {
1996
2685
  "kind": "text",
1997
- "text": "](examples/node-demo.ts) \n- ["
2686
+ "text": "\n\n---\n\n## Types\n\nYou can import any of the response interfaces directly:\n\n"
1998
2687
  },
1999
2688
  {
2000
2689
  "kind": "code",
2001
- "text": "`examples/browser-demo.html`"
2690
+ "text": "```ts\nimport {\n CollectionResponse,\n ProductResponse,\n ProofResponse,\n AppConfigurationResponse,\n} from \"@proveanything/smartlinks/types\";\n```"
2002
2691
  },
2003
2692
  {
2004
2693
  "kind": "text",
2005
- "text": "](examples/browser-demo.html) \n- ["
2694
+ "text": "\n\n---\n\n## Changelog\n\n### 1.0.0\n\n- Initial release:\n - "
2006
2695
  },
2007
2696
  {
2008
2697
  "kind": "code",
2009
- "text": "`examples/react-demo.tsx`"
2698
+ "text": "`initializeApi`"
2010
2699
  },
2011
2700
  {
2012
2701
  "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 ["
2702
+ "text": " function to configure baseURL and auth.\n - Namespaced modules:\n - "
2014
2703
  },
2015
2704
  {
2016
2705
  "kind": "code",
2017
- "text": "`openapi.yaml`"
2706
+ "text": "`collection.get(collectionId)`"
2018
2707
  },
2019
2708
  {
2020
2709
  "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 - "
2710
+ "text": "\n - "
2022
2711
  },
2023
2712
  {
2024
2713
  "kind": "code",
2025
- "text": "`ApiClient`"
2714
+ "text": "`product.get(collectionId, productId)`"
2026
2715
  },
2027
2716
  {
2028
2717
  "kind": "text",
2029
- "text": " class with "
2718
+ "text": "\n - "
2030
2719
  },
2031
2720
  {
2032
2721
  "kind": "code",
2033
- "text": "`getCollection`"
2722
+ "text": "`proof.get(collectionId, proofId)`"
2034
2723
  },
2035
2724
  {
2036
2725
  "kind": "text",
2037
- "text": ", "
2726
+ "text": "\n - "
2038
2727
  },
2039
2728
  {
2040
2729
  "kind": "code",
2041
- "text": "`getProductItem`"
2730
+ "text": "`appConfiguration.get(collectionId, appId)`"
2042
2731
  },
2043
2732
  {
2044
2733
  "kind": "text",
2045
- "text": ", and "
2734
+ "text": "\n - Full TypeScript typings and JSDoc.\n - Browser/Node fetch support via "
2046
2735
  },
2047
2736
  {
2048
2737
  "kind": "code",
2049
- "text": "`getAppConfiguration`"
2738
+ "text": "`cross-fetch`"
2050
2739
  },
2051
2740
  {
2052
2741
  "kind": "text",
2053
- "text": " methods. \n - Full TypeScript typings and JSDoc. \n - Browser/Node fetch support. \n - Error handling via thrown "
2742
+ "text": ".\n - Error handling via thrown "
2054
2743
  },
2055
2744
  {
2056
2745
  "kind": "code",
@@ -2199,104 +2888,228 @@
2199
2888
  "qualifiedName": "appId"
2200
2889
  },
2201
2890
  "34": {
2891
+ "sourceFileName": "src/api/asset.ts",
2892
+ "qualifiedName": "asset"
2893
+ },
2894
+ "35": {
2895
+ "sourceFileName": "src/api/asset.ts",
2896
+ "qualifiedName": "asset.getForCollection"
2897
+ },
2898
+ "36": {
2899
+ "sourceFileName": "src/api/asset.ts",
2900
+ "qualifiedName": "asset.getForCollection"
2901
+ },
2902
+ "37": {
2903
+ "sourceFileName": "src/api/asset.ts",
2904
+ "qualifiedName": "collectionId"
2905
+ },
2906
+ "38": {
2907
+ "sourceFileName": "src/api/asset.ts",
2908
+ "qualifiedName": "assetId"
2909
+ },
2910
+ "39": {
2911
+ "sourceFileName": "src/api/asset.ts",
2912
+ "qualifiedName": "asset.getAllForCollection"
2913
+ },
2914
+ "40": {
2915
+ "sourceFileName": "src/api/asset.ts",
2916
+ "qualifiedName": "asset.getAllForCollection"
2917
+ },
2918
+ "41": {
2919
+ "sourceFileName": "src/api/asset.ts",
2920
+ "qualifiedName": "collectionId"
2921
+ },
2922
+ "42": {
2923
+ "sourceFileName": "src/api/asset.ts",
2924
+ "qualifiedName": "asset.getForProduct"
2925
+ },
2926
+ "43": {
2927
+ "sourceFileName": "src/api/asset.ts",
2928
+ "qualifiedName": "asset.getForProduct"
2929
+ },
2930
+ "44": {
2931
+ "sourceFileName": "src/api/asset.ts",
2932
+ "qualifiedName": "collectionId"
2933
+ },
2934
+ "45": {
2935
+ "sourceFileName": "src/api/asset.ts",
2936
+ "qualifiedName": "productId"
2937
+ },
2938
+ "46": {
2939
+ "sourceFileName": "src/api/asset.ts",
2940
+ "qualifiedName": "assetId"
2941
+ },
2942
+ "47": {
2943
+ "sourceFileName": "src/api/asset.ts",
2944
+ "qualifiedName": "asset.getAllForProduct"
2945
+ },
2946
+ "48": {
2947
+ "sourceFileName": "src/api/asset.ts",
2948
+ "qualifiedName": "asset.getAllForProduct"
2949
+ },
2950
+ "49": {
2951
+ "sourceFileName": "src/api/asset.ts",
2952
+ "qualifiedName": "collectionId"
2953
+ },
2954
+ "50": {
2955
+ "sourceFileName": "src/api/asset.ts",
2956
+ "qualifiedName": "productId"
2957
+ },
2958
+ "51": {
2959
+ "sourceFileName": "src/api/asset.ts",
2960
+ "qualifiedName": "asset.getForProof"
2961
+ },
2962
+ "52": {
2963
+ "sourceFileName": "src/api/asset.ts",
2964
+ "qualifiedName": "asset.getForProof"
2965
+ },
2966
+ "53": {
2967
+ "sourceFileName": "src/api/asset.ts",
2968
+ "qualifiedName": "collectionId"
2969
+ },
2970
+ "54": {
2971
+ "sourceFileName": "src/api/asset.ts",
2972
+ "qualifiedName": "proofId"
2973
+ },
2974
+ "55": {
2975
+ "sourceFileName": "src/api/asset.ts",
2976
+ "qualifiedName": "assetId"
2977
+ },
2978
+ "56": {
2979
+ "sourceFileName": "src/api/asset.ts",
2980
+ "qualifiedName": "asset.getAllForProof"
2981
+ },
2982
+ "57": {
2983
+ "sourceFileName": "src/api/asset.ts",
2984
+ "qualifiedName": "asset.getAllForProof"
2985
+ },
2986
+ "58": {
2987
+ "sourceFileName": "src/api/asset.ts",
2988
+ "qualifiedName": "collectionId"
2989
+ },
2990
+ "59": {
2991
+ "sourceFileName": "src/api/asset.ts",
2992
+ "qualifiedName": "proofId"
2993
+ },
2994
+ "60": {
2995
+ "sourceFileName": "src/api/asset.ts",
2996
+ "qualifiedName": "appId"
2997
+ },
2998
+ "61": {
2202
2999
  "sourceFileName": "src/types/collection.ts",
2203
3000
  "qualifiedName": "CollectionResponse"
2204
3001
  },
2205
- "35": {
3002
+ "62": {
2206
3003
  "sourceFileName": "src/types/collection.ts",
2207
3004
  "qualifiedName": "CollectionResponse.id"
2208
3005
  },
2209
- "36": {
3006
+ "63": {
2210
3007
  "sourceFileName": "src/types/collection.ts",
2211
3008
  "qualifiedName": "CollectionResponse.name"
2212
3009
  },
2213
- "37": {
3010
+ "64": {
2214
3011
  "sourceFileName": "src/types/collection.ts",
2215
3012
  "qualifiedName": "CollectionResponse.title"
2216
3013
  },
2217
- "38": {
3014
+ "65": {
2218
3015
  "sourceFileName": "src/types/collection.ts",
2219
3016
  "qualifiedName": "CollectionResponse.logoImage"
2220
3017
  },
2221
- "39": {
3018
+ "66": {
2222
3019
  "sourceFileName": "src/types/product.ts",
2223
3020
  "qualifiedName": "ProductResponse"
2224
3021
  },
2225
- "40": {
3022
+ "67": {
2226
3023
  "sourceFileName": "src/types/product.ts",
2227
3024
  "qualifiedName": "ProductResponse.id"
2228
3025
  },
2229
- "41": {
3026
+ "68": {
2230
3027
  "sourceFileName": "src/types/product.ts",
2231
3028
  "qualifiedName": "ProductResponse.name"
2232
3029
  },
2233
- "42": {
3030
+ "69": {
2234
3031
  "sourceFileName": "src/types/product.ts",
2235
3032
  "qualifiedName": "ProductResponse.description"
2236
3033
  },
2237
- "43": {
3034
+ "70": {
2238
3035
  "sourceFileName": "src/types/product.ts",
2239
3036
  "qualifiedName": "ProductResponse.heroImage"
2240
3037
  },
2241
- "44": {
3038
+ "71": {
2242
3039
  "sourceFileName": "src/types/proof.ts",
2243
3040
  "qualifiedName": "ProofResponse"
2244
3041
  },
2245
- "45": {
3042
+ "72": {
2246
3043
  "sourceFileName": "src/types/proof.ts",
2247
3044
  "qualifiedName": "ProofResponse.collectionId"
2248
3045
  },
2249
- "46": {
3046
+ "73": {
2250
3047
  "sourceFileName": "src/types/proof.ts",
2251
3048
  "qualifiedName": "ProofResponse.createdAt"
2252
3049
  },
2253
- "47": {
3050
+ "74": {
2254
3051
  "sourceFileName": "src/types/proof.ts",
2255
3052
  "qualifiedName": "ProofResponse.id"
2256
3053
  },
2257
- "48": {
3054
+ "75": {
2258
3055
  "sourceFileName": "src/types/proof.ts",
2259
3056
  "qualifiedName": "ProofResponse.productId"
2260
3057
  },
2261
- "49": {
3058
+ "76": {
2262
3059
  "sourceFileName": "src/types/proof.ts",
2263
3060
  "qualifiedName": "ProofResponse.tokenId"
2264
3061
  },
2265
- "50": {
3062
+ "77": {
2266
3063
  "sourceFileName": "src/types/proof.ts",
2267
3064
  "qualifiedName": "ProofResponse.userId"
2268
3065
  },
2269
- "51": {
3066
+ "78": {
2270
3067
  "sourceFileName": "src/types/proof.ts",
2271
3068
  "qualifiedName": "ProofResponse.values"
2272
3069
  },
2273
- "52": {
3070
+ "79": {
2274
3071
  "sourceFileName": "src/types/appConfiguration.ts",
2275
3072
  "qualifiedName": "AppConfigurationResponse"
2276
3073
  },
2277
- "53": {
3074
+ "80": {
2278
3075
  "sourceFileName": "src/types/appConfiguration.ts",
2279
3076
  "qualifiedName": "AppConfigurationResponse.id"
2280
3077
  },
2281
- "54": {
3078
+ "81": {
2282
3079
  "sourceFileName": "src/types/appConfiguration.ts",
2283
3080
  "qualifiedName": "AppConfigurationResponse.name"
2284
3081
  },
2285
- "55": {
3082
+ "82": {
2286
3083
  "sourceFileName": "src/types/appConfiguration.ts",
2287
3084
  "qualifiedName": "AppConfigurationResponse.settings"
2288
3085
  },
2289
- "56": {
3086
+ "83": {
2290
3087
  "sourceFileName": "src/types/error.ts",
2291
3088
  "qualifiedName": "ErrorResponse"
2292
3089
  },
2293
- "57": {
3090
+ "84": {
2294
3091
  "sourceFileName": "src/types/error.ts",
2295
3092
  "qualifiedName": "ErrorResponse.code"
2296
3093
  },
2297
- "58": {
3094
+ "85": {
2298
3095
  "sourceFileName": "src/types/error.ts",
2299
3096
  "qualifiedName": "ErrorResponse.message"
3097
+ },
3098
+ "86": {
3099
+ "sourceFileName": "src/types/asset.ts",
3100
+ "qualifiedName": "AssetResponse"
3101
+ },
3102
+ "87": {
3103
+ "sourceFileName": "src/types/asset.ts",
3104
+ "qualifiedName": "AssetResponse.id"
3105
+ },
3106
+ "88": {
3107
+ "sourceFileName": "src/types/asset.ts",
3108
+ "qualifiedName": "AssetResponse.name"
3109
+ },
3110
+ "89": {
3111
+ "sourceFileName": "src/types/asset.ts",
3112
+ "qualifiedName": "AssetResponse.url"
2300
3113
  }
2301
3114
  }
2302
3115
  }