@proveanything/smartlinks 1.0.1 → 1.0.3

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 (37) hide show
  1. package/README.md +6 -6
  2. package/docs/assets/navigation.js +1 -1
  3. package/docs/assets/search.js +1 -1
  4. package/docs/documentation.json +970 -448
  5. package/docs/functions/appConfiguration.get.html +6 -0
  6. package/docs/functions/collection.get.html +5 -0
  7. package/docs/functions/initializeApi.html +5 -0
  8. package/docs/functions/product.get.html +6 -0
  9. package/docs/functions/product.getAll.html +5 -0
  10. package/docs/functions/proof.get.html +6 -0
  11. package/docs/functions/request.html +4 -0
  12. package/docs/index.html +6 -6
  13. package/docs/interfaces/AppConfigurationResponse.html +4 -4
  14. package/docs/interfaces/CollectionResponse.html +5 -5
  15. package/docs/interfaces/ErrorResponse.html +3 -3
  16. package/docs/interfaces/ProductResponse.html +5 -5
  17. package/docs/interfaces/ProofResponse.html +16 -0
  18. package/docs/modules/appConfiguration.html +2 -0
  19. package/docs/modules/collection.html +2 -0
  20. package/docs/modules/product.html +3 -0
  21. package/docs/modules/proof.html +2 -0
  22. package/docs/modules.html +7 -1
  23. package/package.json +5 -1
  24. package/src/api/appConfiguration.ts +22 -0
  25. package/src/api/collection.ts +16 -0
  26. package/src/api/index.ts +6 -0
  27. package/src/api/product.ts +35 -0
  28. package/src/api/proof.ts +22 -0
  29. package/src/http.ts +64 -0
  30. package/src/index.ts +5 -170
  31. package/src/types/appConfiguration.ts +12 -0
  32. package/src/types/collection.ts +14 -0
  33. package/src/types/error.ts +10 -0
  34. package/src/types/index.ts +8 -0
  35. package/src/types/product.ts +14 -0
  36. package/src/types/proof.ts +20 -0
  37. package/docs/classes/ApiClient.html +0 -35
@@ -6,54 +6,55 @@
6
6
  "flags": {},
7
7
  "children": [
8
8
  {
9
- "id": 18,
10
- "name": "ApiClient",
9
+ "id": 29,
10
+ "name": "appConfiguration",
11
11
  "variant": "declaration",
12
- "kind": 128,
12
+ "kind": 4,
13
13
  "flags": {},
14
- "comment": {
15
- "summary": [
16
- {
17
- "kind": "text",
18
- "text": "ApiClient for the Smartlinks API.\nSupports both browser (native fetch) and Node (using cross-fetch)."
19
- }
20
- ]
21
- },
22
14
  "children": [
23
15
  {
24
- "id": 19,
25
- "name": "constructor",
16
+ "id": 30,
17
+ "name": "get",
26
18
  "variant": "declaration",
27
- "kind": 512,
19
+ "kind": 64,
28
20
  "flags": {},
29
21
  "sources": [
30
22
  {
31
- "fileName": "index.ts",
32
- "line": 97,
33
- "character": 2
23
+ "fileName": "api/appConfiguration.ts",
24
+ "line": 13,
25
+ "character": 24
34
26
  }
35
27
  ],
36
28
  "signatures": [
37
29
  {
38
- "id": 20,
39
- "name": "new ApiClient",
30
+ "id": 31,
31
+ "name": "get",
40
32
  "variant": "signature",
41
- "kind": 16384,
33
+ "kind": 4096,
42
34
  "flags": {},
43
35
  "comment": {
44
36
  "summary": [
45
37
  {
46
38
  "kind": "text",
47
- "text": "Creates an instance of ApiClient."
39
+ "text": "Retrieves a single App Configuration by Collection ID and App ID."
48
40
  }
49
41
  ],
50
42
  "blockTags": [
51
43
  {
52
- "tag": "@example",
44
+ "tag": "@returns",
45
+ "content": [
46
+ {
47
+ "kind": "text",
48
+ "text": "Promise resolving to an AppConfigurationResponse object"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "tag": "@throws",
53
54
  "content": [
54
55
  {
55
- "kind": "code",
56
- "text": "```ts\n// With both API key and bearer token\nconst client = new ApiClient(\n 'https://smartlinks.app/api/v1',\n 'your-api-key',\n 'your-bearer-token'\n);\n\n// With only API key\nconst client = new ApiClient(\n 'https://smartlinks.app/api/v1',\n 'your-api-key'\n);\n\n// With only bearer token\nconst client = new ApiClient(\n 'https://smartlinks.app/api/v1',\n undefined,\n 'your-bearer-token'\n);\n```"
56
+ "kind": "text",
57
+ "text": "ErrorResponse if the request fails"
57
58
  }
58
59
  ]
59
60
  }
@@ -61,15 +62,15 @@
61
62
  },
62
63
  "sources": [
63
64
  {
64
- "fileName": "index.ts",
65
- "line": 97,
66
- "character": 2
65
+ "fileName": "api/appConfiguration.ts",
66
+ "line": 13,
67
+ "character": 24
67
68
  }
68
69
  ],
69
70
  "parameters": [
70
71
  {
71
- "id": 21,
72
- "name": "baseURL",
72
+ "id": 32,
73
+ "name": "collectionId",
73
74
  "variant": "param",
74
75
  "kind": 32768,
75
76
  "flags": {},
@@ -77,28 +78,7 @@
77
78
  "summary": [
78
79
  {
79
80
  "kind": "text",
80
- "text": "The base URL of the Smartlinks API (e.g., https://smartlinks.app/api/v1)"
81
- }
82
- ]
83
- },
84
- "type": {
85
- "type": "intrinsic",
86
- "name": "string"
87
- }
88
- },
89
- {
90
- "id": 22,
91
- "name": "apiKey",
92
- "variant": "param",
93
- "kind": 32768,
94
- "flags": {
95
- "isOptional": true
96
- },
97
- "comment": {
98
- "summary": [
99
- {
100
- "kind": "text",
101
- "text": "(Optional) API key for X-API-Key header"
81
+ "text": " Identifier of the parent collection"
102
82
  }
103
83
  ]
104
84
  },
@@ -108,18 +88,16 @@
108
88
  }
109
89
  },
110
90
  {
111
- "id": 23,
112
- "name": "bearerToken",
91
+ "id": 33,
92
+ "name": "appId",
113
93
  "variant": "param",
114
94
  "kind": 32768,
115
- "flags": {
116
- "isOptional": true
117
- },
95
+ "flags": {},
118
96
  "comment": {
119
97
  "summary": [
120
98
  {
121
99
  "kind": "text",
122
- "text": "(Optional) Bearer token for AUTHORIZATION header"
100
+ "text": " Identifier of the app configuration"
123
101
  }
124
102
  ]
125
103
  },
@@ -131,94 +109,65 @@
131
109
  ],
132
110
  "type": {
133
111
  "type": "reference",
134
- "target": 18,
135
- "name": "ApiClient",
136
- "package": "@proveanything/smartlinks"
112
+ "target": {
113
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
114
+ "qualifiedName": "Promise"
115
+ },
116
+ "typeArguments": [
117
+ {
118
+ "type": "reference",
119
+ "target": 52,
120
+ "name": "AppConfigurationResponse",
121
+ "package": "@proveanything/smartlinks"
122
+ }
123
+ ],
124
+ "name": "Promise",
125
+ "package": "typescript"
137
126
  }
138
127
  }
139
128
  ]
140
- },
141
- {
142
- "id": 25,
143
- "name": "apiKey",
144
- "variant": "declaration",
145
- "kind": 1024,
146
- "flags": {
147
- "isPrivate": true,
148
- "isOptional": true
149
- },
150
- "sources": [
151
- {
152
- "fileName": "index.ts",
153
- "line": 67,
154
- "character": 10
155
- }
156
- ],
157
- "type": {
158
- "type": "intrinsic",
159
- "name": "string"
160
- }
161
- },
129
+ }
130
+ ],
131
+ "groups": [
162
132
  {
163
- "id": 24,
164
- "name": "baseURL",
165
- "variant": "declaration",
166
- "kind": 1024,
167
- "flags": {
168
- "isPrivate": true
169
- },
170
- "sources": [
171
- {
172
- "fileName": "index.ts",
173
- "line": 66,
174
- "character": 10
175
- }
176
- ],
177
- "type": {
178
- "type": "intrinsic",
179
- "name": "string"
180
- }
181
- },
133
+ "title": "Functions",
134
+ "children": [
135
+ 30
136
+ ]
137
+ }
138
+ ],
139
+ "sources": [
182
140
  {
183
- "id": 26,
184
- "name": "bearerToken",
185
- "variant": "declaration",
186
- "kind": 1024,
187
- "flags": {
188
- "isPrivate": true,
189
- "isOptional": true
190
- },
191
- "sources": [
192
- {
193
- "fileName": "index.ts",
194
- "line": 68,
195
- "character": 10
196
- }
197
- ],
198
- "type": {
199
- "type": "intrinsic",
200
- "name": "string"
201
- }
202
- },
141
+ "fileName": "api/appConfiguration.ts",
142
+ "line": 5,
143
+ "character": 17
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "id": 12,
149
+ "name": "collection",
150
+ "variant": "declaration",
151
+ "kind": 4,
152
+ "flags": {},
153
+ "children": [
203
154
  {
204
- "id": 34,
205
- "name": "getAppConfiguration",
155
+ "id": 13,
156
+ "name": "get",
206
157
  "variant": "declaration",
207
- "kind": 2048,
208
- "flags": {
209
- "isPublic": true
210
- },
158
+ "kind": 64,
159
+ "flags": {},
211
160
  "sources": [
212
161
  {
213
- "fileName": "index.ts",
214
- "line": 133,
215
- "character": 15
162
+ "fileName": "api/collection.ts",
163
+ "line": 12,
164
+ "character": 24
216
165
  }
217
166
  ],
218
167
  "signatures": [
219
168
  {
220
- "id": 35,
221
- "name": "getAppConfiguration",
169
+ "id": 14,
170
+ "name": "get",
222
171
  "variant": "signature",
223
172
  "kind": 4096,
224
173
  "flags": {},
@@ -226,7 +175,7 @@
226
175
  "summary": [
227
176
  {
228
177
  "kind": "text",
229
- "text": "Retrieves a single App Configuration by Collection ID and App ID."
178
+ "text": "Retrieves a single Collection by its ID."
230
179
  }
231
180
  ],
232
181
  "blockTags": [
@@ -235,7 +184,7 @@
235
184
  "content": [
236
185
  {
237
186
  "kind": "text",
238
- "text": "Promise resolving to an AppConfigurationResponse object"
187
+ "text": "Promise resolving to a CollectionResponse object"
239
188
  }
240
189
  ]
241
190
  },
@@ -252,14 +201,14 @@
252
201
  },
253
202
  "sources": [
254
203
  {
255
- "fileName": "index.ts",
256
- "line": 133,
257
- "character": 15
204
+ "fileName": "api/collection.ts",
205
+ "line": 12,
206
+ "character": 24
258
207
  }
259
208
  ],
260
209
  "parameters": [
261
210
  {
262
- "id": 36,
211
+ "id": 15,
263
212
  "name": "collectionId",
264
213
  "variant": "param",
265
214
  "kind": 32768,
@@ -268,26 +217,7 @@
268
217
  "summary": [
269
218
  {
270
219
  "kind": "text",
271
- "text": "Identifier of the parent collection"
272
- }
273
- ]
274
- },
275
- "type": {
276
- "type": "intrinsic",
277
- "name": "string"
278
- }
279
- },
280
- {
281
- "id": 37,
282
- "name": "appId",
283
- "variant": "param",
284
- "kind": 32768,
285
- "flags": {},
286
- "comment": {
287
- "summary": [
288
- {
289
- "kind": "text",
290
- "text": "Identifier of the app configuration"
220
+ "text": "Identifier of the collection"
291
221
  }
292
222
  ]
293
223
  },
@@ -306,8 +236,8 @@
306
236
  "typeArguments": [
307
237
  {
308
238
  "type": "reference",
309
- "target": 11,
310
- "name": "AppConfigurationResponse",
239
+ "target": 34,
240
+ "name": "CollectionResponse",
311
241
  "package": "@proveanything/smartlinks"
312
242
  }
313
243
  ],
@@ -316,26 +246,48 @@
316
246
  }
317
247
  }
318
248
  ]
319
- },
249
+ }
250
+ ],
251
+ "groups": [
252
+ {
253
+ "title": "Functions",
254
+ "children": [
255
+ 13
256
+ ]
257
+ }
258
+ ],
259
+ "sources": [
260
+ {
261
+ "fileName": "api/collection.ts",
262
+ "line": 5,
263
+ "character": 17
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "id": 16,
269
+ "name": "product",
270
+ "variant": "declaration",
271
+ "kind": 4,
272
+ "flags": {},
273
+ "children": [
320
274
  {
321
- "id": 27,
322
- "name": "getCollection",
275
+ "id": 17,
276
+ "name": "get",
323
277
  "variant": "declaration",
324
- "kind": 2048,
325
- "flags": {
326
- "isPublic": true
327
- },
278
+ "kind": 64,
279
+ "flags": {},
328
280
  "sources": [
329
281
  {
330
- "fileName": "index.ts",
331
- "line": 109,
332
- "character": 15
282
+ "fileName": "api/product.ts",
283
+ "line": 13,
284
+ "character": 24
333
285
  }
334
286
  ],
335
287
  "signatures": [
336
288
  {
337
- "id": 28,
338
- "name": "getCollection",
289
+ "id": 18,
290
+ "name": "get",
339
291
  "variant": "signature",
340
292
  "kind": 4096,
341
293
  "flags": {},
@@ -343,7 +295,7 @@
343
295
  "summary": [
344
296
  {
345
297
  "kind": "text",
346
- "text": "Retrieves a single Collection by its ID."
298
+ "text": "Retrieves a single Product Item by Collection ID and Product ID."
347
299
  }
348
300
  ],
349
301
  "blockTags": [
@@ -352,7 +304,7 @@
352
304
  "content": [
353
305
  {
354
306
  "kind": "text",
355
- "text": "Promise resolving to a CollectionResponse object"
307
+ "text": "Promise resolving to a ProductResponse object"
356
308
  }
357
309
  ]
358
310
  },
@@ -369,14 +321,14 @@
369
321
  },
370
322
  "sources": [
371
323
  {
372
- "fileName": "index.ts",
373
- "line": 109,
374
- "character": 15
324
+ "fileName": "api/product.ts",
325
+ "line": 13,
326
+ "character": 24
375
327
  }
376
328
  ],
377
329
  "parameters": [
378
330
  {
379
- "id": 29,
331
+ "id": 19,
380
332
  "name": "collectionId",
381
333
  "variant": "param",
382
334
  "kind": 32768,
@@ -385,7 +337,26 @@
385
337
  "summary": [
386
338
  {
387
339
  "kind": "text",
388
- "text": "Identifier of the collection"
340
+ "text": "Identifier of the parent collection"
341
+ }
342
+ ]
343
+ },
344
+ "type": {
345
+ "type": "intrinsic",
346
+ "name": "string"
347
+ }
348
+ },
349
+ {
350
+ "id": 20,
351
+ "name": "productId",
352
+ "variant": "param",
353
+ "kind": 32768,
354
+ "flags": {},
355
+ "comment": {
356
+ "summary": [
357
+ {
358
+ "kind": "text",
359
+ "text": "– Identifier of the product item"
389
360
  }
390
361
  ]
391
362
  },
@@ -404,8 +375,8 @@
404
375
  "typeArguments": [
405
376
  {
406
377
  "type": "reference",
407
- "target": 1,
408
- "name": "CollectionResponse",
378
+ "target": 39,
379
+ "name": "ProductResponse",
409
380
  "package": "@proveanything/smartlinks"
410
381
  }
411
382
  ],
@@ -416,24 +387,22 @@
416
387
  ]
417
388
  },
418
389
  {
419
- "id": 30,
420
- "name": "getProductItem",
390
+ "id": 21,
391
+ "name": "getAll",
421
392
  "variant": "declaration",
422
- "kind": 2048,
423
- "flags": {
424
- "isPublic": true
425
- },
393
+ "kind": 64,
394
+ "flags": {},
426
395
  "sources": [
427
396
  {
428
- "fileName": "index.ts",
429
- "line": 121,
430
- "character": 15
397
+ "fileName": "api/product.ts",
398
+ "line": 29,
399
+ "character": 24
431
400
  }
432
401
  ],
433
402
  "signatures": [
434
403
  {
435
- "id": 31,
436
- "name": "getProductItem",
404
+ "id": 22,
405
+ "name": "getAll",
437
406
  "variant": "signature",
438
407
  "kind": 4096,
439
408
  "flags": {},
@@ -441,7 +410,7 @@
441
410
  "summary": [
442
411
  {
443
412
  "kind": "text",
444
- "text": "Retrieves a single Product Item by Collection ID and Product ID."
413
+ "text": "Retrieves all Product Items for a Collection."
445
414
  }
446
415
  ],
447
416
  "blockTags": [
@@ -450,7 +419,7 @@
450
419
  "content": [
451
420
  {
452
421
  "kind": "text",
453
- "text": "Promise resolving to a ProductResponse object"
422
+ "text": "Promise resolving to an array of ProductResponse objects"
454
423
  }
455
424
  ]
456
425
  },
@@ -467,14 +436,14 @@
467
436
  },
468
437
  "sources": [
469
438
  {
470
- "fileName": "index.ts",
471
- "line": 121,
472
- "character": 15
439
+ "fileName": "api/product.ts",
440
+ "line": 29,
441
+ "character": 24
473
442
  }
474
443
  ],
475
444
  "parameters": [
476
445
  {
477
- "id": 32,
446
+ "id": 23,
478
447
  "name": "collectionId",
479
448
  "variant": "param",
480
449
  "kind": 32768,
@@ -483,26 +452,7 @@
483
452
  "summary": [
484
453
  {
485
454
  "kind": "text",
486
- "text": "Identifier of the parent collection"
487
- }
488
- ]
489
- },
490
- "type": {
491
- "type": "intrinsic",
492
- "name": "string"
493
- }
494
- },
495
- {
496
- "id": 33,
497
- "name": "productId",
498
- "variant": "param",
499
- "kind": 32768,
500
- "flags": {},
501
- "comment": {
502
- "summary": [
503
- {
504
- "kind": "text",
505
- "text": "Identifier of the product item"
455
+ "text": "Identifier of the parent collection"
506
456
  }
507
457
  ]
508
458
  },
@@ -520,10 +470,13 @@
520
470
  },
521
471
  "typeArguments": [
522
472
  {
523
- "type": "reference",
524
- "target": 6,
525
- "name": "ProductResponse",
526
- "package": "@proveanything/smartlinks"
473
+ "type": "array",
474
+ "elementType": {
475
+ "type": "reference",
476
+ "target": 39,
477
+ "name": "ProductResponse",
478
+ "package": "@proveanything/smartlinks"
479
+ }
527
480
  }
528
481
  ],
529
482
  "name": "Promise",
@@ -531,26 +484,49 @@
531
484
  }
532
485
  }
533
486
  ]
534
- },
487
+ }
488
+ ],
489
+ "groups": [
535
490
  {
536
- "id": 38,
537
- "name": "request",
491
+ "title": "Functions",
492
+ "children": [
493
+ 17,
494
+ 21
495
+ ]
496
+ }
497
+ ],
498
+ "sources": [
499
+ {
500
+ "fileName": "api/product.ts",
501
+ "line": 5,
502
+ "character": 17
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ "id": 24,
508
+ "name": "proof",
509
+ "variant": "declaration",
510
+ "kind": 4,
511
+ "flags": {},
512
+ "children": [
513
+ {
514
+ "id": 25,
515
+ "name": "get",
538
516
  "variant": "declaration",
539
- "kind": 2048,
540
- "flags": {
541
- "isPrivate": true
542
- },
517
+ "kind": 64,
518
+ "flags": {},
543
519
  "sources": [
544
520
  {
545
- "fileName": "index.ts",
546
- "line": 144,
547
- "character": 16
521
+ "fileName": "api/proof.ts",
522
+ "line": 13,
523
+ "character": 24
548
524
  }
549
525
  ],
550
526
  "signatures": [
551
527
  {
552
- "id": 39,
553
- "name": "request",
528
+ "id": 26,
529
+ "name": "get",
554
530
  "variant": "signature",
555
531
  "kind": 4096,
556
532
  "flags": {},
@@ -558,7 +534,7 @@
558
534
  "summary": [
559
535
  {
560
536
  "kind": "text",
561
- "text": "Internal helper to perform a GET request and parse JSON."
537
+ "text": "Retrieves a single Proof by Collection ID and Proof ID."
562
538
  }
563
539
  ],
564
540
  "blockTags": [
@@ -567,7 +543,7 @@
567
543
  "content": [
568
544
  {
569
545
  "kind": "text",
570
- "text": "Promise resolving to the parsed JSON of type T"
546
+ "text": "Promise resolving to a ProofResponse object"
571
547
  }
572
548
  ]
573
549
  },
@@ -576,7 +552,7 @@
576
552
  "content": [
577
553
  {
578
554
  "kind": "text",
579
- "text": "Error if network error or a non-2xx response is returned"
555
+ "text": "ErrorResponse if the request fails"
580
556
  }
581
557
  ]
582
558
  }
@@ -584,24 +560,34 @@
584
560
  },
585
561
  "sources": [
586
562
  {
587
- "fileName": "index.ts",
588
- "line": 144,
589
- "character": 16
590
- }
591
- ],
592
- "typeParameter": [
593
- {
594
- "id": 40,
595
- "name": "T",
596
- "variant": "typeParam",
597
- "kind": 131072,
598
- "flags": {}
563
+ "fileName": "api/proof.ts",
564
+ "line": 13,
565
+ "character": 24
599
566
  }
600
567
  ],
601
568
  "parameters": [
602
569
  {
603
- "id": 41,
604
- "name": "path",
570
+ "id": 27,
571
+ "name": "collectionId",
572
+ "variant": "param",
573
+ "kind": 32768,
574
+ "flags": {},
575
+ "comment": {
576
+ "summary": [
577
+ {
578
+ "kind": "text",
579
+ "text": "– Identifier of the parent collection"
580
+ }
581
+ ]
582
+ },
583
+ "type": {
584
+ "type": "intrinsic",
585
+ "name": "string"
586
+ }
587
+ },
588
+ {
589
+ "id": 28,
590
+ "name": "proofId",
605
591
  "variant": "param",
606
592
  "kind": 32768,
607
593
  "flags": {},
@@ -609,7 +595,7 @@
609
595
  "summary": [
610
596
  {
611
597
  "kind": "text",
612
- "text": "The path (relative to baseURL) to request"
598
+ "text": " Identifier of the proof"
613
599
  }
614
600
  ]
615
601
  },
@@ -628,10 +614,9 @@
628
614
  "typeArguments": [
629
615
  {
630
616
  "type": "reference",
631
- "target": 40,
632
- "name": "T",
633
- "package": "@proveanything/smartlinks",
634
- "refersToTypeParameter": true
617
+ "target": 44,
618
+ "name": "ProofResponse",
619
+ "package": "@proveanything/smartlinks"
635
620
  }
636
621
  ],
637
622
  "name": "Promise",
@@ -643,39 +628,22 @@
643
628
  ],
644
629
  "groups": [
645
630
  {
646
- "title": "Constructors",
647
- "children": [
648
- 19
649
- ]
650
- },
651
- {
652
- "title": "Properties",
653
- "children": [
654
- 25,
655
- 24,
656
- 26
657
- ]
658
- },
659
- {
660
- "title": "Methods",
631
+ "title": "Functions",
661
632
  "children": [
662
- 34,
663
- 27,
664
- 30,
665
- 38
633
+ 25
666
634
  ]
667
635
  }
668
636
  ],
669
637
  "sources": [
670
638
  {
671
- "fileName": "index.ts",
672
- "line": 65,
673
- "character": 13
639
+ "fileName": "api/proof.ts",
640
+ "line": 5,
641
+ "character": 17
674
642
  }
675
643
  ]
676
644
  },
677
645
  {
678
- "id": 11,
646
+ "id": 52,
679
647
  "name": "AppConfigurationResponse",
680
648
  "variant": "declaration",
681
649
  "kind": 256,
@@ -690,7 +658,7 @@
690
658
  },
691
659
  "children": [
692
660
  {
693
- "id": 12,
661
+ "id": 53,
694
662
  "name": "id",
695
663
  "variant": "declaration",
696
664
  "kind": 1024,
@@ -705,8 +673,8 @@
705
673
  },
706
674
  "sources": [
707
675
  {
708
- "fileName": "index.ts",
709
- "line": 40,
676
+ "fileName": "types/appConfiguration.ts",
677
+ "line": 7,
710
678
  "character": 2
711
679
  }
712
680
  ],
@@ -716,7 +684,7 @@
716
684
  }
717
685
  },
718
686
  {
719
- "id": 13,
687
+ "id": 54,
720
688
  "name": "name",
721
689
  "variant": "declaration",
722
690
  "kind": 1024,
@@ -731,8 +699,8 @@
731
699
  },
732
700
  "sources": [
733
701
  {
734
- "fileName": "index.ts",
735
- "line": 42,
702
+ "fileName": "types/appConfiguration.ts",
703
+ "line": 9,
736
704
  "character": 2
737
705
  }
738
706
  ],
@@ -742,7 +710,7 @@
742
710
  }
743
711
  },
744
712
  {
745
- "id": 14,
713
+ "id": 55,
746
714
  "name": "settings",
747
715
  "variant": "declaration",
748
716
  "kind": 1024,
@@ -753,14 +721,14 @@
753
721
  "summary": [
754
722
  {
755
723
  "kind": "text",
756
- "text": "Keyvalue pairs representing configuration settings"
724
+ "text": "Key-value pairs representing configuration settings"
757
725
  }
758
726
  ]
759
727
  },
760
728
  "sources": [
761
729
  {
762
- "fileName": "index.ts",
763
- "line": 44,
730
+ "fileName": "types/appConfiguration.ts",
731
+ "line": 11,
764
732
  "character": 2
765
733
  }
766
734
  ],
@@ -789,22 +757,22 @@
789
757
  {
790
758
  "title": "Properties",
791
759
  "children": [
792
- 12,
793
- 13,
794
- 14
760
+ 53,
761
+ 54,
762
+ 55
795
763
  ]
796
764
  }
797
765
  ],
798
766
  "sources": [
799
767
  {
800
- "fileName": "index.ts",
801
- "line": 38,
768
+ "fileName": "types/appConfiguration.ts",
769
+ "line": 5,
802
770
  "character": 17
803
771
  }
804
772
  ]
805
773
  },
806
774
  {
807
- "id": 1,
775
+ "id": 34,
808
776
  "name": "CollectionResponse",
809
777
  "variant": "declaration",
810
778
  "kind": 256,
@@ -819,7 +787,7 @@
819
787
  },
820
788
  "children": [
821
789
  {
822
- "id": 2,
790
+ "id": 35,
823
791
  "name": "id",
824
792
  "variant": "declaration",
825
793
  "kind": 1024,
@@ -834,8 +802,8 @@
834
802
  },
835
803
  "sources": [
836
804
  {
837
- "fileName": "index.ts",
838
- "line": 12,
805
+ "fileName": "types/collection.ts",
806
+ "line": 7,
839
807
  "character": 2
840
808
  }
841
809
  ],
@@ -845,7 +813,7 @@
845
813
  }
846
814
  },
847
815
  {
848
- "id": 5,
816
+ "id": 38,
849
817
  "name": "logoImage",
850
818
  "variant": "declaration",
851
819
  "kind": 1024,
@@ -860,8 +828,8 @@
860
828
  },
861
829
  "sources": [
862
830
  {
863
- "fileName": "index.ts",
864
- "line": 18,
831
+ "fileName": "types/collection.ts",
832
+ "line": 13,
865
833
  "character": 2
866
834
  }
867
835
  ],
@@ -871,7 +839,7 @@
871
839
  }
872
840
  },
873
841
  {
874
- "id": 3,
842
+ "id": 36,
875
843
  "name": "name",
876
844
  "variant": "declaration",
877
845
  "kind": 1024,
@@ -880,14 +848,14 @@
880
848
  "summary": [
881
849
  {
882
850
  "kind": "text",
883
- "text": "Machinereadable name of the collection"
851
+ "text": "Machine-readable name of the collection"
884
852
  }
885
853
  ]
886
854
  },
887
855
  "sources": [
888
856
  {
889
- "fileName": "index.ts",
890
- "line": 14,
857
+ "fileName": "types/collection.ts",
858
+ "line": 9,
891
859
  "character": 2
892
860
  }
893
861
  ],
@@ -897,7 +865,7 @@
897
865
  }
898
866
  },
899
867
  {
900
- "id": 4,
868
+ "id": 37,
901
869
  "name": "title",
902
870
  "variant": "declaration",
903
871
  "kind": 1024,
@@ -906,14 +874,14 @@
906
874
  "summary": [
907
875
  {
908
876
  "kind": "text",
909
- "text": "Humanreadable title of the collection"
877
+ "text": "Human-readable title of the collection"
910
878
  }
911
879
  ]
912
880
  },
913
881
  "sources": [
914
882
  {
915
- "fileName": "index.ts",
916
- "line": 16,
883
+ "fileName": "types/collection.ts",
884
+ "line": 11,
917
885
  "character": 2
918
886
  }
919
887
  ],
@@ -927,23 +895,23 @@
927
895
  {
928
896
  "title": "Properties",
929
897
  "children": [
930
- 2,
931
- 5,
932
- 3,
933
- 4
898
+ 35,
899
+ 38,
900
+ 36,
901
+ 37
934
902
  ]
935
903
  }
936
904
  ],
937
905
  "sources": [
938
906
  {
939
- "fileName": "index.ts",
940
- "line": 10,
907
+ "fileName": "types/collection.ts",
908
+ "line": 5,
941
909
  "character": 17
942
910
  }
943
911
  ]
944
912
  },
945
913
  {
946
- "id": 15,
914
+ "id": 56,
947
915
  "name": "ErrorResponse",
948
916
  "variant": "declaration",
949
917
  "kind": 256,
@@ -958,7 +926,7 @@
958
926
  },
959
927
  "children": [
960
928
  {
961
- "id": 16,
929
+ "id": 57,
962
930
  "name": "code",
963
931
  "variant": "declaration",
964
932
  "kind": 1024,
@@ -973,8 +941,8 @@
973
941
  },
974
942
  "sources": [
975
943
  {
976
- "fileName": "index.ts",
977
- "line": 52,
944
+ "fileName": "types/error.ts",
945
+ "line": 7,
978
946
  "character": 2
979
947
  }
980
948
  ],
@@ -984,7 +952,7 @@
984
952
  }
985
953
  },
986
954
  {
987
- "id": 17,
955
+ "id": 58,
988
956
  "name": "message",
989
957
  "variant": "declaration",
990
958
  "kind": 1024,
@@ -993,14 +961,14 @@
993
961
  "summary": [
994
962
  {
995
963
  "kind": "text",
996
- "text": "Humanreadable error message"
964
+ "text": "Human-readable error message"
997
965
  }
998
966
  ]
999
967
  },
1000
968
  "sources": [
1001
969
  {
1002
- "fileName": "index.ts",
1003
- "line": 54,
970
+ "fileName": "types/error.ts",
971
+ "line": 9,
1004
972
  "character": 2
1005
973
  }
1006
974
  ],
@@ -1014,21 +982,21 @@
1014
982
  {
1015
983
  "title": "Properties",
1016
984
  "children": [
1017
- 16,
1018
- 17
985
+ 57,
986
+ 58
1019
987
  ]
1020
988
  }
1021
989
  ],
1022
990
  "sources": [
1023
991
  {
1024
- "fileName": "index.ts",
1025
- "line": 50,
992
+ "fileName": "types/error.ts",
993
+ "line": 5,
1026
994
  "character": 17
1027
995
  }
1028
996
  ]
1029
997
  },
1030
998
  {
1031
- "id": 6,
999
+ "id": 39,
1032
1000
  "name": "ProductResponse",
1033
1001
  "variant": "declaration",
1034
1002
  "kind": 256,
@@ -1039,12 +1007,203 @@
1039
1007
  "kind": "text",
1040
1008
  "text": "Represents a Product Item object."
1041
1009
  }
1042
- ]
1043
- },
1044
- "children": [
1010
+ ]
1011
+ },
1012
+ "children": [
1013
+ {
1014
+ "id": 42,
1015
+ "name": "description",
1016
+ "variant": "declaration",
1017
+ "kind": 1024,
1018
+ "flags": {},
1019
+ "comment": {
1020
+ "summary": [
1021
+ {
1022
+ "kind": "text",
1023
+ "text": "Detailed description of the product"
1024
+ }
1025
+ ]
1026
+ },
1027
+ "sources": [
1028
+ {
1029
+ "fileName": "types/product.ts",
1030
+ "line": 11,
1031
+ "character": 2
1032
+ }
1033
+ ],
1034
+ "type": {
1035
+ "type": "intrinsic",
1036
+ "name": "string"
1037
+ }
1038
+ },
1039
+ {
1040
+ "id": 43,
1041
+ "name": "heroImage",
1042
+ "variant": "declaration",
1043
+ "kind": 1024,
1044
+ "flags": {},
1045
+ "comment": {
1046
+ "summary": [
1047
+ {
1048
+ "kind": "text",
1049
+ "text": "URL to the product’s hero image"
1050
+ }
1051
+ ]
1052
+ },
1053
+ "sources": [
1054
+ {
1055
+ "fileName": "types/product.ts",
1056
+ "line": 13,
1057
+ "character": 2
1058
+ }
1059
+ ],
1060
+ "type": {
1061
+ "type": "intrinsic",
1062
+ "name": "string"
1063
+ }
1064
+ },
1065
+ {
1066
+ "id": 40,
1067
+ "name": "id",
1068
+ "variant": "declaration",
1069
+ "kind": 1024,
1070
+ "flags": {},
1071
+ "comment": {
1072
+ "summary": [
1073
+ {
1074
+ "kind": "text",
1075
+ "text": "Unique identifier for the product"
1076
+ }
1077
+ ]
1078
+ },
1079
+ "sources": [
1080
+ {
1081
+ "fileName": "types/product.ts",
1082
+ "line": 7,
1083
+ "character": 2
1084
+ }
1085
+ ],
1086
+ "type": {
1087
+ "type": "intrinsic",
1088
+ "name": "string"
1089
+ }
1090
+ },
1091
+ {
1092
+ "id": 41,
1093
+ "name": "name",
1094
+ "variant": "declaration",
1095
+ "kind": 1024,
1096
+ "flags": {},
1097
+ "comment": {
1098
+ "summary": [
1099
+ {
1100
+ "kind": "text",
1101
+ "text": "Name of the product"
1102
+ }
1103
+ ]
1104
+ },
1105
+ "sources": [
1106
+ {
1107
+ "fileName": "types/product.ts",
1108
+ "line": 9,
1109
+ "character": 2
1110
+ }
1111
+ ],
1112
+ "type": {
1113
+ "type": "intrinsic",
1114
+ "name": "string"
1115
+ }
1116
+ }
1117
+ ],
1118
+ "groups": [
1119
+ {
1120
+ "title": "Properties",
1121
+ "children": [
1122
+ 42,
1123
+ 43,
1124
+ 40,
1125
+ 41
1126
+ ]
1127
+ }
1128
+ ],
1129
+ "sources": [
1130
+ {
1131
+ "fileName": "types/product.ts",
1132
+ "line": 5,
1133
+ "character": 17
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "id": 44,
1139
+ "name": "ProofResponse",
1140
+ "variant": "declaration",
1141
+ "kind": 256,
1142
+ "flags": {},
1143
+ "comment": {
1144
+ "summary": [
1145
+ {
1146
+ "kind": "text",
1147
+ "text": "Represents a Proof object."
1148
+ }
1149
+ ]
1150
+ },
1151
+ "children": [
1152
+ {
1153
+ "id": 45,
1154
+ "name": "collectionId",
1155
+ "variant": "declaration",
1156
+ "kind": 1024,
1157
+ "flags": {},
1158
+ "comment": {
1159
+ "summary": [
1160
+ {
1161
+ "kind": "text",
1162
+ "text": "Unique identifier for the collection"
1163
+ }
1164
+ ]
1165
+ },
1166
+ "sources": [
1167
+ {
1168
+ "fileName": "types/proof.ts",
1169
+ "line": 7,
1170
+ "character": 2
1171
+ }
1172
+ ],
1173
+ "type": {
1174
+ "type": "intrinsic",
1175
+ "name": "string"
1176
+ }
1177
+ },
1178
+ {
1179
+ "id": 46,
1180
+ "name": "createdAt",
1181
+ "variant": "declaration",
1182
+ "kind": 1024,
1183
+ "flags": {},
1184
+ "comment": {
1185
+ "summary": [
1186
+ {
1187
+ "kind": "text",
1188
+ "text": "Creation timestamp"
1189
+ }
1190
+ ]
1191
+ },
1192
+ "sources": [
1193
+ {
1194
+ "fileName": "types/proof.ts",
1195
+ "line": 9,
1196
+ "character": 2
1197
+ }
1198
+ ],
1199
+ "type": {
1200
+ "type": "intrinsic",
1201
+ "name": "string"
1202
+ }
1203
+ },
1045
1204
  {
1046
- "id": 9,
1047
- "name": "description",
1205
+ "id": 47,
1206
+ "name": "id",
1048
1207
  "variant": "declaration",
1049
1208
  "kind": 1024,
1050
1209
  "flags": {},
@@ -1052,14 +1211,14 @@
1052
1211
  "summary": [
1053
1212
  {
1054
1213
  "kind": "text",
1055
- "text": "Detailed description of the product"
1214
+ "text": "Unique identifier for the proof"
1056
1215
  }
1057
1216
  ]
1058
1217
  },
1059
1218
  "sources": [
1060
1219
  {
1061
- "fileName": "index.ts",
1062
- "line": 30,
1220
+ "fileName": "types/proof.ts",
1221
+ "line": 11,
1063
1222
  "character": 2
1064
1223
  }
1065
1224
  ],
@@ -1069,8 +1228,8 @@
1069
1228
  }
1070
1229
  },
1071
1230
  {
1072
- "id": 10,
1073
- "name": "heroImage",
1231
+ "id": 48,
1232
+ "name": "productId",
1074
1233
  "variant": "declaration",
1075
1234
  "kind": 1024,
1076
1235
  "flags": {},
@@ -1078,14 +1237,14 @@
1078
1237
  "summary": [
1079
1238
  {
1080
1239
  "kind": "text",
1081
- "text": "URL to the product’s hero image"
1240
+ "text": "Unique identifier for the product"
1082
1241
  }
1083
1242
  ]
1084
1243
  },
1085
1244
  "sources": [
1086
1245
  {
1087
- "fileName": "index.ts",
1088
- "line": 32,
1246
+ "fileName": "types/proof.ts",
1247
+ "line": 13,
1089
1248
  "character": 2
1090
1249
  }
1091
1250
  ],
@@ -1095,8 +1254,8 @@
1095
1254
  }
1096
1255
  },
1097
1256
  {
1098
- "id": 7,
1099
- "name": "id",
1257
+ "id": 49,
1258
+ "name": "tokenId",
1100
1259
  "variant": "declaration",
1101
1260
  "kind": 1024,
1102
1261
  "flags": {},
@@ -1104,14 +1263,14 @@
1104
1263
  "summary": [
1105
1264
  {
1106
1265
  "kind": "text",
1107
- "text": "Unique identifier for the product"
1266
+ "text": "Unique identifier for the token"
1108
1267
  }
1109
1268
  ]
1110
1269
  },
1111
1270
  "sources": [
1112
1271
  {
1113
- "fileName": "index.ts",
1114
- "line": 26,
1272
+ "fileName": "types/proof.ts",
1273
+ "line": 15,
1115
1274
  "character": 2
1116
1275
  }
1117
1276
  ],
@@ -1121,8 +1280,8 @@
1121
1280
  }
1122
1281
  },
1123
1282
  {
1124
- "id": 8,
1125
- "name": "name",
1283
+ "id": 50,
1284
+ "name": "userId",
1126
1285
  "variant": "declaration",
1127
1286
  "kind": 1024,
1128
1287
  "flags": {},
@@ -1130,14 +1289,14 @@
1130
1289
  "summary": [
1131
1290
  {
1132
1291
  "kind": "text",
1133
- "text": "Name of the product"
1292
+ "text": "Unique identifier for the user"
1134
1293
  }
1135
1294
  ]
1136
1295
  },
1137
1296
  "sources": [
1138
1297
  {
1139
- "fileName": "index.ts",
1140
- "line": 28,
1298
+ "fileName": "types/proof.ts",
1299
+ "line": 17,
1141
1300
  "character": 2
1142
1301
  }
1143
1302
  ],
@@ -1145,42 +1304,337 @@
1145
1304
  "type": "intrinsic",
1146
1305
  "name": "string"
1147
1306
  }
1307
+ },
1308
+ {
1309
+ "id": 51,
1310
+ "name": "values",
1311
+ "variant": "declaration",
1312
+ "kind": 1024,
1313
+ "flags": {},
1314
+ "comment": {
1315
+ "summary": [
1316
+ {
1317
+ "kind": "text",
1318
+ "text": "Arbitrary key-value pairs for proof values"
1319
+ }
1320
+ ]
1321
+ },
1322
+ "sources": [
1323
+ {
1324
+ "fileName": "types/proof.ts",
1325
+ "line": 19,
1326
+ "character": 2
1327
+ }
1328
+ ],
1329
+ "type": {
1330
+ "type": "reference",
1331
+ "target": {
1332
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
1333
+ "qualifiedName": "Record"
1334
+ },
1335
+ "typeArguments": [
1336
+ {
1337
+ "type": "intrinsic",
1338
+ "name": "string"
1339
+ },
1340
+ {
1341
+ "type": "intrinsic",
1342
+ "name": "any"
1343
+ }
1344
+ ],
1345
+ "name": "Record",
1346
+ "package": "typescript"
1347
+ }
1148
1348
  }
1149
1349
  ],
1150
1350
  "groups": [
1151
1351
  {
1152
1352
  "title": "Properties",
1153
1353
  "children": [
1154
- 9,
1155
- 10,
1156
- 7,
1157
- 8
1354
+ 45,
1355
+ 46,
1356
+ 47,
1357
+ 48,
1358
+ 49,
1359
+ 50,
1360
+ 51
1158
1361
  ]
1159
1362
  }
1160
1363
  ],
1161
1364
  "sources": [
1162
1365
  {
1163
- "fileName": "index.ts",
1164
- "line": 24,
1366
+ "fileName": "types/proof.ts",
1367
+ "line": 5,
1165
1368
  "character": 17
1166
1369
  }
1167
1370
  ]
1371
+ },
1372
+ {
1373
+ "id": 1,
1374
+ "name": "initializeApi",
1375
+ "variant": "declaration",
1376
+ "kind": 64,
1377
+ "flags": {},
1378
+ "sources": [
1379
+ {
1380
+ "fileName": "http.ts",
1381
+ "line": 17,
1382
+ "character": 16
1383
+ }
1384
+ ],
1385
+ "signatures": [
1386
+ {
1387
+ "id": 2,
1388
+ "name": "initializeApi",
1389
+ "variant": "signature",
1390
+ "kind": 4096,
1391
+ "flags": {},
1392
+ "comment": {
1393
+ "summary": [
1394
+ {
1395
+ "kind": "text",
1396
+ "text": "Call this once (e.g. at app startup) to configure baseURL/auth."
1397
+ }
1398
+ ]
1399
+ },
1400
+ "sources": [
1401
+ {
1402
+ "fileName": "http.ts",
1403
+ "line": 17,
1404
+ "character": 16
1405
+ }
1406
+ ],
1407
+ "parameters": [
1408
+ {
1409
+ "id": 3,
1410
+ "name": "options",
1411
+ "variant": "param",
1412
+ "kind": 32768,
1413
+ "flags": {},
1414
+ "type": {
1415
+ "type": "reflection",
1416
+ "declaration": {
1417
+ "id": 4,
1418
+ "name": "__type",
1419
+ "variant": "declaration",
1420
+ "kind": 65536,
1421
+ "flags": {},
1422
+ "children": [
1423
+ {
1424
+ "id": 6,
1425
+ "name": "apiKey",
1426
+ "variant": "declaration",
1427
+ "kind": 1024,
1428
+ "flags": {
1429
+ "isOptional": true
1430
+ },
1431
+ "comment": {
1432
+ "summary": [
1433
+ {
1434
+ "kind": "text",
1435
+ "text": "(Optional) API key for X-API-Key header"
1436
+ }
1437
+ ]
1438
+ },
1439
+ "sources": [
1440
+ {
1441
+ "fileName": "http.ts",
1442
+ "line": 19,
1443
+ "character": 2
1444
+ }
1445
+ ],
1446
+ "type": {
1447
+ "type": "intrinsic",
1448
+ "name": "string"
1449
+ }
1450
+ },
1451
+ {
1452
+ "id": 5,
1453
+ "name": "baseURL",
1454
+ "variant": "declaration",
1455
+ "kind": 1024,
1456
+ "flags": {},
1457
+ "comment": {
1458
+ "summary": [
1459
+ {
1460
+ "kind": "text",
1461
+ "text": "The root URL of the Smartlinks API (e.g. \"https://smartlinks.app/api/v1\")"
1462
+ }
1463
+ ]
1464
+ },
1465
+ "sources": [
1466
+ {
1467
+ "fileName": "http.ts",
1468
+ "line": 18,
1469
+ "character": 2
1470
+ }
1471
+ ],
1472
+ "type": {
1473
+ "type": "intrinsic",
1474
+ "name": "string"
1475
+ }
1476
+ },
1477
+ {
1478
+ "id": 7,
1479
+ "name": "bearerToken",
1480
+ "variant": "declaration",
1481
+ "kind": 1024,
1482
+ "flags": {
1483
+ "isOptional": true
1484
+ },
1485
+ "comment": {
1486
+ "summary": [
1487
+ {
1488
+ "kind": "text",
1489
+ "text": "(Optional) Bearer token for AUTHORIZATION header"
1490
+ }
1491
+ ]
1492
+ },
1493
+ "sources": [
1494
+ {
1495
+ "fileName": "http.ts",
1496
+ "line": 20,
1497
+ "character": 2
1498
+ }
1499
+ ],
1500
+ "type": {
1501
+ "type": "intrinsic",
1502
+ "name": "string"
1503
+ }
1504
+ }
1505
+ ],
1506
+ "groups": [
1507
+ {
1508
+ "title": "Properties",
1509
+ "children": [
1510
+ 6,
1511
+ 5,
1512
+ 7
1513
+ ]
1514
+ }
1515
+ ],
1516
+ "sources": [
1517
+ {
1518
+ "fileName": "http.ts",
1519
+ "line": 17,
1520
+ "character": 39
1521
+ }
1522
+ ]
1523
+ }
1524
+ }
1525
+ }
1526
+ ],
1527
+ "type": {
1528
+ "type": "intrinsic",
1529
+ "name": "void"
1530
+ }
1531
+ }
1532
+ ]
1533
+ },
1534
+ {
1535
+ "id": 8,
1536
+ "name": "request",
1537
+ "variant": "declaration",
1538
+ "kind": 64,
1539
+ "flags": {},
1540
+ "sources": [
1541
+ {
1542
+ "fileName": "http.ts",
1543
+ "line": 32,
1544
+ "character": 22
1545
+ }
1546
+ ],
1547
+ "signatures": [
1548
+ {
1549
+ "id": 9,
1550
+ "name": "request",
1551
+ "variant": "signature",
1552
+ "kind": 4096,
1553
+ "flags": {},
1554
+ "comment": {
1555
+ "summary": [
1556
+ {
1557
+ "kind": "text",
1558
+ "text": "Internal helper that performs a GET request to `\\${baseURL}\\${path}`, \ninjecting headers for apiKey or bearerToken if present. \nReturns the parsed JSON as T, or throws an Error."
1559
+ }
1560
+ ]
1561
+ },
1562
+ "sources": [
1563
+ {
1564
+ "fileName": "http.ts",
1565
+ "line": 32,
1566
+ "character": 22
1567
+ }
1568
+ ],
1569
+ "typeParameter": [
1570
+ {
1571
+ "id": 10,
1572
+ "name": "T",
1573
+ "variant": "typeParam",
1574
+ "kind": 131072,
1575
+ "flags": {}
1576
+ }
1577
+ ],
1578
+ "parameters": [
1579
+ {
1580
+ "id": 11,
1581
+ "name": "path",
1582
+ "variant": "param",
1583
+ "kind": 32768,
1584
+ "flags": {},
1585
+ "type": {
1586
+ "type": "intrinsic",
1587
+ "name": "string"
1588
+ }
1589
+ }
1590
+ ],
1591
+ "type": {
1592
+ "type": "reference",
1593
+ "target": {
1594
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
1595
+ "qualifiedName": "Promise"
1596
+ },
1597
+ "typeArguments": [
1598
+ {
1599
+ "type": "reference",
1600
+ "target": 10,
1601
+ "name": "T",
1602
+ "package": "@proveanything/smartlinks",
1603
+ "refersToTypeParameter": true
1604
+ }
1605
+ ],
1606
+ "name": "Promise",
1607
+ "package": "typescript"
1608
+ }
1609
+ }
1610
+ ]
1168
1611
  }
1169
1612
  ],
1170
1613
  "groups": [
1171
1614
  {
1172
- "title": "Classes",
1615
+ "title": "Namespaces",
1173
1616
  "children": [
1174
- 18
1617
+ 29,
1618
+ 12,
1619
+ 16,
1620
+ 24
1175
1621
  ]
1176
1622
  },
1177
1623
  {
1178
1624
  "title": "Interfaces",
1179
1625
  "children": [
1180
- 11,
1626
+ 52,
1627
+ 34,
1628
+ 56,
1629
+ 39,
1630
+ 44
1631
+ ]
1632
+ },
1633
+ {
1634
+ "title": "Functions",
1635
+ "children": [
1181
1636
  1,
1182
- 15,
1183
- 6
1637
+ 8
1184
1638
  ]
1185
1639
  }
1186
1640
  ],
@@ -1188,11 +1642,11 @@
1188
1642
  "readme": [
1189
1643
  {
1190
1644
  "kind": "text",
1191
- "text": "# @smartlinks/sdk\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"
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"
1192
1646
  },
1193
1647
  {
1194
1648
  "kind": "code",
1195
- "text": "```bash\nnpm install @smartlinks/sdk\n# or\nyarn add @smartlinks/sdk\n```"
1649
+ "text": "```bash\nnpm install @proveanything/smartlinks\n# or\nyarn add @proveanything/smartlinks\n```"
1196
1650
  },
1197
1651
  {
1198
1652
  "kind": "text",
@@ -1200,7 +1654,7 @@
1200
1654
  },
1201
1655
  {
1202
1656
  "kind": "code",
1203
- "text": "```ts\nimport { ApiClient, CollectionResponse, ProductResponse } from \"@smartlinks/sdk\";\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```"
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```"
1204
1658
  },
1205
1659
  {
1206
1660
  "kind": "text",
@@ -1488,7 +1942,7 @@
1488
1942
  },
1489
1943
  {
1490
1944
  "kind": "code",
1491
- "text": "```ts\nimport { ApiClient } from \"@smartlinks/sdk\";\n\nconst apiKey = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\";\nconst client = new ApiClient(\"https://smartlinks.app/api/v1\", apiKey);\n```"
1945
+ "text": "```ts\nimport { ApiClient } from \"@proveanything/smartlinks\";\n\nconst apiKey = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\";\nconst client = new ApiClient(\"https://smartlinks.app/api/v1\", apiKey);\n```"
1492
1946
  },
1493
1947
  {
1494
1948
  "kind": "text",
@@ -1528,7 +1982,7 @@
1528
1982
  },
1529
1983
  {
1530
1984
  "kind": "code",
1531
- "text": "```ts\nimport { ApiClient } from \"@smartlinks/sdk\";\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```"
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```"
1532
1986
  },
1533
1987
  {
1534
1988
  "kind": "text",
@@ -1613,168 +2067,236 @@
1613
2067
  "qualifiedName": ""
1614
2068
  },
1615
2069
  "1": {
1616
- "sourceFileName": "src/index.ts",
1617
- "qualifiedName": "CollectionResponse"
2070
+ "sourceFileName": "src/http.ts",
2071
+ "qualifiedName": "initializeApi"
1618
2072
  },
1619
2073
  "2": {
1620
- "sourceFileName": "src/index.ts",
1621
- "qualifiedName": "CollectionResponse.id"
2074
+ "sourceFileName": "src/http.ts",
2075
+ "qualifiedName": "initializeApi"
1622
2076
  },
1623
2077
  "3": {
1624
- "sourceFileName": "src/index.ts",
1625
- "qualifiedName": "CollectionResponse.name"
2078
+ "sourceFileName": "src/http.ts",
2079
+ "qualifiedName": "options"
1626
2080
  },
1627
2081
  "4": {
1628
- "sourceFileName": "src/index.ts",
1629
- "qualifiedName": "CollectionResponse.title"
2082
+ "sourceFileName": "src/http.ts",
2083
+ "qualifiedName": "__type"
1630
2084
  },
1631
2085
  "5": {
1632
- "sourceFileName": "src/index.ts",
1633
- "qualifiedName": "CollectionResponse.logoImage"
2086
+ "sourceFileName": "src/http.ts",
2087
+ "qualifiedName": "__type.baseURL"
1634
2088
  },
1635
2089
  "6": {
1636
- "sourceFileName": "src/index.ts",
1637
- "qualifiedName": "ProductResponse"
2090
+ "sourceFileName": "src/http.ts",
2091
+ "qualifiedName": "__type.apiKey"
1638
2092
  },
1639
2093
  "7": {
1640
- "sourceFileName": "src/index.ts",
1641
- "qualifiedName": "ProductResponse.id"
2094
+ "sourceFileName": "src/http.ts",
2095
+ "qualifiedName": "__type.bearerToken"
1642
2096
  },
1643
2097
  "8": {
1644
- "sourceFileName": "src/index.ts",
1645
- "qualifiedName": "ProductResponse.name"
2098
+ "sourceFileName": "src/http.ts",
2099
+ "qualifiedName": "request"
1646
2100
  },
1647
2101
  "9": {
1648
- "sourceFileName": "src/index.ts",
1649
- "qualifiedName": "ProductResponse.description"
2102
+ "sourceFileName": "src/http.ts",
2103
+ "qualifiedName": "request"
1650
2104
  },
1651
2105
  "10": {
1652
- "sourceFileName": "src/index.ts",
1653
- "qualifiedName": "ProductResponse.heroImage"
2106
+ "sourceFileName": "src/http.ts",
2107
+ "qualifiedName": "T"
1654
2108
  },
1655
2109
  "11": {
1656
- "sourceFileName": "src/index.ts",
1657
- "qualifiedName": "AppConfigurationResponse"
2110
+ "sourceFileName": "src/http.ts",
2111
+ "qualifiedName": "path"
1658
2112
  },
1659
2113
  "12": {
1660
- "sourceFileName": "src/index.ts",
1661
- "qualifiedName": "AppConfigurationResponse.id"
2114
+ "sourceFileName": "src/api/collection.ts",
2115
+ "qualifiedName": "collection"
1662
2116
  },
1663
2117
  "13": {
1664
- "sourceFileName": "src/index.ts",
1665
- "qualifiedName": "AppConfigurationResponse.name"
2118
+ "sourceFileName": "src/api/collection.ts",
2119
+ "qualifiedName": "collection.get"
1666
2120
  },
1667
2121
  "14": {
1668
- "sourceFileName": "src/index.ts",
1669
- "qualifiedName": "AppConfigurationResponse.settings"
2122
+ "sourceFileName": "src/api/collection.ts",
2123
+ "qualifiedName": "collection.get"
1670
2124
  },
1671
2125
  "15": {
1672
- "sourceFileName": "src/index.ts",
1673
- "qualifiedName": "ErrorResponse"
2126
+ "sourceFileName": "src/api/collection.ts",
2127
+ "qualifiedName": "collectionId"
1674
2128
  },
1675
2129
  "16": {
1676
- "sourceFileName": "src/index.ts",
1677
- "qualifiedName": "ErrorResponse.code"
2130
+ "sourceFileName": "src/api/product.ts",
2131
+ "qualifiedName": "product"
1678
2132
  },
1679
2133
  "17": {
1680
- "sourceFileName": "src/index.ts",
1681
- "qualifiedName": "ErrorResponse.message"
2134
+ "sourceFileName": "src/api/product.ts",
2135
+ "qualifiedName": "product.get"
1682
2136
  },
1683
2137
  "18": {
1684
- "sourceFileName": "src/index.ts",
1685
- "qualifiedName": "ApiClient"
2138
+ "sourceFileName": "src/api/product.ts",
2139
+ "qualifiedName": "product.get"
1686
2140
  },
1687
2141
  "19": {
1688
- "sourceFileName": "src/index.ts",
1689
- "qualifiedName": "ApiClient.__constructor"
2142
+ "sourceFileName": "src/api/product.ts",
2143
+ "qualifiedName": "collectionId"
1690
2144
  },
1691
2145
  "20": {
1692
- "sourceFileName": "src/index.ts",
1693
- "qualifiedName": "ApiClient"
2146
+ "sourceFileName": "src/api/product.ts",
2147
+ "qualifiedName": "productId"
1694
2148
  },
1695
2149
  "21": {
1696
- "sourceFileName": "src/index.ts",
1697
- "qualifiedName": "baseURL"
2150
+ "sourceFileName": "src/api/product.ts",
2151
+ "qualifiedName": "product.getAll"
1698
2152
  },
1699
2153
  "22": {
1700
- "sourceFileName": "src/index.ts",
1701
- "qualifiedName": "apiKey"
2154
+ "sourceFileName": "src/api/product.ts",
2155
+ "qualifiedName": "product.getAll"
1702
2156
  },
1703
2157
  "23": {
1704
- "sourceFileName": "src/index.ts",
1705
- "qualifiedName": "bearerToken"
2158
+ "sourceFileName": "src/api/product.ts",
2159
+ "qualifiedName": "collectionId"
1706
2160
  },
1707
2161
  "24": {
1708
- "sourceFileName": "src/index.ts",
1709
- "qualifiedName": "ApiClient.baseURL"
2162
+ "sourceFileName": "src/api/proof.ts",
2163
+ "qualifiedName": "proof"
1710
2164
  },
1711
2165
  "25": {
1712
- "sourceFileName": "src/index.ts",
1713
- "qualifiedName": "ApiClient.apiKey"
2166
+ "sourceFileName": "src/api/proof.ts",
2167
+ "qualifiedName": "proof.get"
1714
2168
  },
1715
2169
  "26": {
1716
- "sourceFileName": "src/index.ts",
1717
- "qualifiedName": "ApiClient.bearerToken"
2170
+ "sourceFileName": "src/api/proof.ts",
2171
+ "qualifiedName": "proof.get"
1718
2172
  },
1719
2173
  "27": {
1720
- "sourceFileName": "src/index.ts",
1721
- "qualifiedName": "ApiClient.getCollection"
2174
+ "sourceFileName": "src/api/proof.ts",
2175
+ "qualifiedName": "collectionId"
1722
2176
  },
1723
2177
  "28": {
1724
- "sourceFileName": "src/index.ts",
1725
- "qualifiedName": "ApiClient.getCollection"
2178
+ "sourceFileName": "src/api/proof.ts",
2179
+ "qualifiedName": "proofId"
1726
2180
  },
1727
2181
  "29": {
1728
- "sourceFileName": "src/index.ts",
1729
- "qualifiedName": "collectionId"
2182
+ "sourceFileName": "src/api/appConfiguration.ts",
2183
+ "qualifiedName": "appConfiguration"
1730
2184
  },
1731
2185
  "30": {
1732
- "sourceFileName": "src/index.ts",
1733
- "qualifiedName": "ApiClient.getProductItem"
2186
+ "sourceFileName": "src/api/appConfiguration.ts",
2187
+ "qualifiedName": "appConfiguration.get"
1734
2188
  },
1735
2189
  "31": {
1736
- "sourceFileName": "src/index.ts",
1737
- "qualifiedName": "ApiClient.getProductItem"
2190
+ "sourceFileName": "src/api/appConfiguration.ts",
2191
+ "qualifiedName": "appConfiguration.get"
1738
2192
  },
1739
2193
  "32": {
1740
- "sourceFileName": "src/index.ts",
2194
+ "sourceFileName": "src/api/appConfiguration.ts",
1741
2195
  "qualifiedName": "collectionId"
1742
2196
  },
1743
2197
  "33": {
1744
- "sourceFileName": "src/index.ts",
1745
- "qualifiedName": "productId"
2198
+ "sourceFileName": "src/api/appConfiguration.ts",
2199
+ "qualifiedName": "appId"
1746
2200
  },
1747
2201
  "34": {
1748
- "sourceFileName": "src/index.ts",
1749
- "qualifiedName": "ApiClient.getAppConfiguration"
2202
+ "sourceFileName": "src/types/collection.ts",
2203
+ "qualifiedName": "CollectionResponse"
1750
2204
  },
1751
2205
  "35": {
1752
- "sourceFileName": "src/index.ts",
1753
- "qualifiedName": "ApiClient.getAppConfiguration"
2206
+ "sourceFileName": "src/types/collection.ts",
2207
+ "qualifiedName": "CollectionResponse.id"
1754
2208
  },
1755
2209
  "36": {
1756
- "sourceFileName": "src/index.ts",
1757
- "qualifiedName": "collectionId"
2210
+ "sourceFileName": "src/types/collection.ts",
2211
+ "qualifiedName": "CollectionResponse.name"
1758
2212
  },
1759
2213
  "37": {
1760
- "sourceFileName": "src/index.ts",
1761
- "qualifiedName": "appId"
2214
+ "sourceFileName": "src/types/collection.ts",
2215
+ "qualifiedName": "CollectionResponse.title"
1762
2216
  },
1763
2217
  "38": {
1764
- "sourceFileName": "src/index.ts",
1765
- "qualifiedName": "ApiClient.request"
2218
+ "sourceFileName": "src/types/collection.ts",
2219
+ "qualifiedName": "CollectionResponse.logoImage"
1766
2220
  },
1767
2221
  "39": {
1768
- "sourceFileName": "src/index.ts",
1769
- "qualifiedName": "ApiClient.request"
2222
+ "sourceFileName": "src/types/product.ts",
2223
+ "qualifiedName": "ProductResponse"
1770
2224
  },
1771
2225
  "40": {
1772
- "sourceFileName": "src/index.ts",
1773
- "qualifiedName": "T"
2226
+ "sourceFileName": "src/types/product.ts",
2227
+ "qualifiedName": "ProductResponse.id"
1774
2228
  },
1775
2229
  "41": {
1776
- "sourceFileName": "src/index.ts",
1777
- "qualifiedName": "path"
2230
+ "sourceFileName": "src/types/product.ts",
2231
+ "qualifiedName": "ProductResponse.name"
2232
+ },
2233
+ "42": {
2234
+ "sourceFileName": "src/types/product.ts",
2235
+ "qualifiedName": "ProductResponse.description"
2236
+ },
2237
+ "43": {
2238
+ "sourceFileName": "src/types/product.ts",
2239
+ "qualifiedName": "ProductResponse.heroImage"
2240
+ },
2241
+ "44": {
2242
+ "sourceFileName": "src/types/proof.ts",
2243
+ "qualifiedName": "ProofResponse"
2244
+ },
2245
+ "45": {
2246
+ "sourceFileName": "src/types/proof.ts",
2247
+ "qualifiedName": "ProofResponse.collectionId"
2248
+ },
2249
+ "46": {
2250
+ "sourceFileName": "src/types/proof.ts",
2251
+ "qualifiedName": "ProofResponse.createdAt"
2252
+ },
2253
+ "47": {
2254
+ "sourceFileName": "src/types/proof.ts",
2255
+ "qualifiedName": "ProofResponse.id"
2256
+ },
2257
+ "48": {
2258
+ "sourceFileName": "src/types/proof.ts",
2259
+ "qualifiedName": "ProofResponse.productId"
2260
+ },
2261
+ "49": {
2262
+ "sourceFileName": "src/types/proof.ts",
2263
+ "qualifiedName": "ProofResponse.tokenId"
2264
+ },
2265
+ "50": {
2266
+ "sourceFileName": "src/types/proof.ts",
2267
+ "qualifiedName": "ProofResponse.userId"
2268
+ },
2269
+ "51": {
2270
+ "sourceFileName": "src/types/proof.ts",
2271
+ "qualifiedName": "ProofResponse.values"
2272
+ },
2273
+ "52": {
2274
+ "sourceFileName": "src/types/appConfiguration.ts",
2275
+ "qualifiedName": "AppConfigurationResponse"
2276
+ },
2277
+ "53": {
2278
+ "sourceFileName": "src/types/appConfiguration.ts",
2279
+ "qualifiedName": "AppConfigurationResponse.id"
2280
+ },
2281
+ "54": {
2282
+ "sourceFileName": "src/types/appConfiguration.ts",
2283
+ "qualifiedName": "AppConfigurationResponse.name"
2284
+ },
2285
+ "55": {
2286
+ "sourceFileName": "src/types/appConfiguration.ts",
2287
+ "qualifiedName": "AppConfigurationResponse.settings"
2288
+ },
2289
+ "56": {
2290
+ "sourceFileName": "src/types/error.ts",
2291
+ "qualifiedName": "ErrorResponse"
2292
+ },
2293
+ "57": {
2294
+ "sourceFileName": "src/types/error.ts",
2295
+ "qualifiedName": "ErrorResponse.code"
2296
+ },
2297
+ "58": {
2298
+ "sourceFileName": "src/types/error.ts",
2299
+ "qualifiedName": "ErrorResponse.message"
1778
2300
  }
1779
2301
  }
1780
2302
  }