@proveanything/smartlinks 1.0.58 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/API_SUMMARY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.0.58 | Generated: 2025-12-10T12:43:07.554Z
3
+ Version: 1.0.60 | Generated: 2025-12-10T13:55:07.921Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -1116,6 +1116,17 @@ Update a form for a collection (admin only).
1116
1116
  **remove**(collectionId: string, formId: string) → `Promise<void>`
1117
1117
  Delete a form for a collection (admin only).
1118
1118
 
1119
+ ### nfc
1120
+
1121
+ **claimTag**(data: NfcClaimTagRequest) → `Promise<NfcTagInfo>`
1122
+ Claim an NFC tag (public). POST /public/nfc/claimTag
1123
+
1124
+ **validate**(data: NfcValidateRequest) → `Promise<NfcValidateResponse>`
1125
+ Validate an NFC tag payload (public). POST /public/nfc/validate
1126
+
1127
+ **lookupTag**(tagId: string) → `Promise<NfcTagInfo[]>`
1128
+ Lookup a tag by its ID (public). GET /public/nfc/findByTag/:tagId
1129
+
1119
1130
  ### product
1120
1131
 
1121
1132
  **get**(collectionId: string,
package/dist/api/nfc.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import type { NfcValidateRequest, NfcValidateResponse, NfcTagInfo, NfcClaimTagRequest } from "../types/nfc";
2
- export declare const nfc: {
2
+ export declare namespace nfc {
3
3
  /**
4
4
  * Claim an NFC tag (public).
5
- * POST /api/va/public/nfc/claimTag
5
+ * POST /public/nfc/claimTag
6
6
  */
7
- claimTag(data: NfcClaimTagRequest): Promise<NfcTagInfo>;
7
+ function claimTag(data: NfcClaimTagRequest): Promise<NfcTagInfo>;
8
8
  /**
9
9
  * Validate an NFC tag payload (public).
10
10
  * POST /public/nfc/validate
11
11
  */
12
- validate(data: NfcValidateRequest): Promise<NfcValidateResponse>;
12
+ function validate(data: NfcValidateRequest): Promise<NfcValidateResponse>;
13
13
  /**
14
14
  * Lookup a tag by its ID (public).
15
15
  * GET /public/nfc/findByTag/:tagId
16
16
  */
17
- lookupTag(tagId: string): Promise<NfcTagInfo[]>;
18
- };
17
+ function lookupTag(tagId: string): Promise<NfcTagInfo[]>;
18
+ }
package/dist/api/nfc.js CHANGED
@@ -1,25 +1,29 @@
1
1
  // src/api/nfc.ts
2
2
  import { post, request } from "../http";
3
- export const nfc = {
3
+ export var nfc;
4
+ (function (nfc) {
4
5
  /**
5
6
  * Claim an NFC tag (public).
6
- * POST /api/va/public/nfc/claimTag
7
+ * POST /public/nfc/claimTag
7
8
  */
8
- async claimTag(data) {
9
+ async function claimTag(data) {
9
10
  return post("/public/nfc/claimTag", data);
10
- },
11
+ }
12
+ nfc.claimTag = claimTag;
11
13
  /**
12
14
  * Validate an NFC tag payload (public).
13
15
  * POST /public/nfc/validate
14
16
  */
15
- async validate(data) {
17
+ async function validate(data) {
16
18
  return post("/public/nfc/validate", data);
17
- },
19
+ }
20
+ nfc.validate = validate;
18
21
  /**
19
22
  * Lookup a tag by its ID (public).
20
23
  * GET /public/nfc/findByTag/:tagId
21
24
  */
22
- async lookupTag(tagId) {
25
+ async function lookupTag(tagId) {
23
26
  return request(`/public/nfc/findByTag/${encodeURIComponent(tagId)}`);
24
- },
25
- };
27
+ }
28
+ nfc.lookupTag = lookupTag;
29
+ })(nfc || (nfc = {}));
package/dist/api/proof.js CHANGED
@@ -46,7 +46,7 @@ export var proof;
46
46
  * PUT /public/collection/:collectionId/product/:productId/proof/:proofId
47
47
  */
48
48
  async function claim(collectionId, productId, proofId, values) {
49
- const path = `/public/collection/${encodeURIComponent(collectionId)}/product/${encodeURIComponent(productId)}/proof/${encodeURIComponent(proofId)}`;
49
+ const path = `/public/collection/${encodeURIComponent(collectionId)}/product/${encodeURIComponent(productId)}/proof/${encodeURIComponent(proofId)}/claim`;
50
50
  return put(path, values);
51
51
  }
52
52
  proof.claim = claim;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",