@proveanything/smartlinks 1.0.14 → 1.0.17
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/README.md +7341 -230
- package/build-docs.ts +69 -0
- package/dist/api/appConfiguration.d.ts +20 -9
- package/dist/api/appConfiguration.js +85 -11
- package/dist/api/auth.d.ts +3 -4
- package/dist/api/claimSet.d.ts +14 -0
- package/dist/api/claimSet.js +24 -0
- package/dist/api/collection.d.ts +9 -1
- package/dist/api/collection.js +16 -2
- package/dist/api/form.d.ts +34 -0
- package/dist/api/form.js +58 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/build-docs.js +61 -0
- package/dist/http.d.ts +12 -3
- package/dist/http.js +29 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/docs/README.md +7469 -0
- package/docs/assets/highlight.css +12 -33
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/documentation.json +4719 -1986
- package/docs/functions/appConfiguration.deleteConfig.html +1 -0
- package/docs/functions/appConfiguration.deleteDataItem.html +1 -0
- package/docs/functions/appConfiguration.getConfig.html +1 -0
- package/docs/functions/appConfiguration.getData.html +1 -0
- package/docs/functions/appConfiguration.getDataItem.html +1 -0
- package/docs/functions/appConfiguration.setConfig.html +1 -0
- package/docs/functions/appConfiguration.setDataItem.html +1 -0
- package/docs/functions/asset.getForCollection.html +1 -1
- package/docs/functions/asset.getForProduct.html +1 -1
- package/docs/functions/asset.getForProof.html +1 -1
- package/docs/functions/asset.listForCollection.html +1 -1
- package/docs/functions/asset.listForProduct.html +1 -1
- package/docs/functions/asset.listForProof.html +1 -1
- package/docs/functions/asset.uploadAsset.html +1 -1
- package/docs/functions/attestation.create.html +2 -2
- package/docs/functions/attestation.get.html +2 -2
- package/docs/functions/attestation.list.html +2 -2
- package/docs/functions/attestation.remove.html +1 -1
- package/docs/functions/attestation.update.html +2 -2
- package/docs/functions/auth.getAccount.html +2 -2
- package/docs/functions/auth.login.html +2 -2
- package/docs/functions/auth.logout.html +1 -1
- package/docs/functions/auth.verifyToken.html +2 -2
- package/docs/functions/claimSet.assignClaims.html +4 -0
- package/docs/functions/claimSet.updateClaimData.html +4 -0
- package/docs/functions/collection.get.html +3 -2
- package/docs/functions/collection.list.html +5 -0
- package/docs/functions/form.create.html +4 -0
- package/docs/functions/form.get.html +5 -0
- package/docs/functions/form.list.html +4 -0
- package/docs/functions/form.remove.html +4 -0
- package/docs/functions/form.update.html +5 -0
- package/docs/functions/initializeApi.html +2 -4
- package/docs/functions/product.get.html +1 -1
- package/docs/functions/product.list.html +1 -1
- package/docs/functions/proof.get.html +1 -1
- package/docs/functions/proof.list.html +1 -1
- package/docs/functions/request.html +1 -1
- package/docs/functions/sendCustomProxyMessage.html +5 -0
- package/docs/index.html +4 -112
- package/docs/interfaces/AppConfigurationResponse.html +4 -4
- package/docs/interfaces/AssetResponse.html +2 -2
- package/docs/interfaces/AttestationCreateRequest.html +4 -0
- package/docs/interfaces/AttestationResponse.html +7 -0
- package/docs/interfaces/AttestationUpdateRequest.html +3 -0
- package/docs/interfaces/CollectionResponse.html +5 -5
- package/docs/interfaces/ErrorResponse.html +3 -3
- package/docs/interfaces/ProductResponse.html +5 -5
- package/docs/interfaces/ProofResponse.html +8 -8
- package/docs/modules/appConfiguration.html +7 -1
- package/docs/modules/asset.html +1 -1
- package/docs/modules/attestation.html +1 -1
- package/docs/modules/auth.html +1 -1
- package/docs/modules/claimSet.html +3 -0
- package/docs/modules/collection.html +2 -1
- package/docs/modules/form.html +6 -0
- package/docs/modules/product.html +1 -1
- package/docs/modules/proof.html +1 -1
- package/docs/modules.html +10 -0
- package/docs/types/AccountInfoResponse.html +1 -0
- package/docs/types/AppConfigOptions.html +1 -0
- package/docs/types/LoginResponse.html +1 -0
- package/docs/types/VerifyTokenResponse.html +1 -0
- package/package.json +5 -2
- package/src/api/appConfiguration.ts +99 -17
- package/src/api/auth.ts +3 -3
- package/src/api/claimSet.ts +23 -0
- package/src/api/collection.ts +17 -3
- package/src/api/form.ts +57 -0
- package/src/api/index.ts +2 -0
- package/src/http.ts +32 -5
- package/src/index.ts +14 -1
- package/temp-docs/.nojekyll +1 -0
- package/temp-docs/README.md +7254 -0
- package/temp-docs/interfaces/AppConfigurationResponse.md +45 -0
- package/temp-docs/interfaces/AssetResponse.md +39 -0
- package/temp-docs/interfaces/AttestationCreateRequest.md +37 -0
- package/temp-docs/interfaces/AttestationResponse.md +70 -0
- package/temp-docs/interfaces/AttestationUpdateRequest.md +26 -0
- package/temp-docs/interfaces/CollectionResponse.md +58 -0
- package/temp-docs/interfaces/ErrorResponse.md +32 -0
- package/temp-docs/interfaces/ProductResponse.md +58 -0
- package/temp-docs/interfaces/ProofResponse.md +97 -0
- package/temp-docs/modules/appConfiguration.md +151 -0
- package/temp-docs/modules/asset.md +171 -0
- package/temp-docs/modules/attestation.md +134 -0
- package/temp-docs/modules/auth.md +88 -0
- package/temp-docs/modules/claimSet.md +52 -0
- package/temp-docs/modules/collection.md +63 -0
- package/temp-docs/modules/form.md +126 -0
- package/temp-docs/modules/product.md +63 -0
- package/temp-docs/modules/proof.md +57 -0
- package/temp-docs/modules.md +210 -0
- package/docs/functions/appConfiguration.get.html +0 -6
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Represents an App Configuration object.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [id](AppConfigurationResponse.md#id)
|
|
8
|
+
- [name](AppConfigurationResponse.md#name)
|
|
9
|
+
- [settings](AppConfigurationResponse.md#settings)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### id
|
|
14
|
+
|
|
15
|
+
• **id**: `string`
|
|
16
|
+
|
|
17
|
+
Unique identifier for the app configuration
|
|
18
|
+
|
|
19
|
+
#### Defined in
|
|
20
|
+
|
|
21
|
+
[types/appConfiguration.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/appConfiguration.ts#L7)
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### name
|
|
26
|
+
|
|
27
|
+
• **name**: `string`
|
|
28
|
+
|
|
29
|
+
Name of the app configuration
|
|
30
|
+
|
|
31
|
+
#### Defined in
|
|
32
|
+
|
|
33
|
+
[types/appConfiguration.ts:9](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/appConfiguration.ts#L9)
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
### settings
|
|
38
|
+
|
|
39
|
+
• `Optional` **settings**: `Record`\<`string`, `any`\>
|
|
40
|
+
|
|
41
|
+
Key-value pairs representing configuration settings
|
|
42
|
+
|
|
43
|
+
#### Defined in
|
|
44
|
+
|
|
45
|
+
[types/appConfiguration.ts:11](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/appConfiguration.ts#L11)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Represents an Asset object.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [id](AssetResponse.md#id)
|
|
8
|
+
- [name](AssetResponse.md#name)
|
|
9
|
+
- [url](AssetResponse.md#url)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### id
|
|
14
|
+
|
|
15
|
+
• **id**: `string`
|
|
16
|
+
|
|
17
|
+
#### Defined in
|
|
18
|
+
|
|
19
|
+
[types/asset.ts:5](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/asset.ts#L5)
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### name
|
|
24
|
+
|
|
25
|
+
• **name**: `string`
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[types/asset.ts:6](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/asset.ts#L6)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### url
|
|
34
|
+
|
|
35
|
+
• **url**: `string`
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[types/asset.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/asset.ts#L7)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## Table of contents
|
|
2
|
+
|
|
3
|
+
### Properties
|
|
4
|
+
|
|
5
|
+
- [private](AttestationCreateRequest.md#private)
|
|
6
|
+
- [proof](AttestationCreateRequest.md#proof)
|
|
7
|
+
- [public](AttestationCreateRequest.md#public)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### private
|
|
12
|
+
|
|
13
|
+
• **private**: `Record`\<`string`, `any`\>
|
|
14
|
+
|
|
15
|
+
#### Defined in
|
|
16
|
+
|
|
17
|
+
[types/attestation.ts:12](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L12)
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### proof
|
|
22
|
+
|
|
23
|
+
• **proof**: `Record`\<`string`, `any`\>
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[types/attestation.ts:13](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L13)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### public
|
|
32
|
+
|
|
33
|
+
• **public**: `Record`\<`string`, `any`\>
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[types/attestation.ts:11](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L11)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
## Table of contents
|
|
2
|
+
|
|
3
|
+
### Properties
|
|
4
|
+
|
|
5
|
+
- [createdAt](AttestationResponse.md#createdat)
|
|
6
|
+
- [id](AttestationResponse.md#id)
|
|
7
|
+
- [private](AttestationResponse.md#private)
|
|
8
|
+
- [proof](AttestationResponse.md#proof)
|
|
9
|
+
- [public](AttestationResponse.md#public)
|
|
10
|
+
- [updatedAt](AttestationResponse.md#updatedat)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### createdAt
|
|
15
|
+
|
|
16
|
+
• **createdAt**: `string`
|
|
17
|
+
|
|
18
|
+
#### Defined in
|
|
19
|
+
|
|
20
|
+
[types/attestation.ts:3](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L3)
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### id
|
|
25
|
+
|
|
26
|
+
• **id**: `string`
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[types/attestation.ts:2](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L2)
|
|
31
|
+
|
|
32
|
+
___
|
|
33
|
+
|
|
34
|
+
### private
|
|
35
|
+
|
|
36
|
+
• **private**: `Record`\<`string`, `any`\>
|
|
37
|
+
|
|
38
|
+
#### Defined in
|
|
39
|
+
|
|
40
|
+
[types/attestation.ts:6](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L6)
|
|
41
|
+
|
|
42
|
+
___
|
|
43
|
+
|
|
44
|
+
### proof
|
|
45
|
+
|
|
46
|
+
• **proof**: `Record`\<`string`, `any`\>
|
|
47
|
+
|
|
48
|
+
#### Defined in
|
|
49
|
+
|
|
50
|
+
[types/attestation.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L7)
|
|
51
|
+
|
|
52
|
+
___
|
|
53
|
+
|
|
54
|
+
### public
|
|
55
|
+
|
|
56
|
+
• **public**: `Record`\<`string`, `any`\>
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[types/attestation.ts:5](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L5)
|
|
61
|
+
|
|
62
|
+
___
|
|
63
|
+
|
|
64
|
+
### updatedAt
|
|
65
|
+
|
|
66
|
+
• **updatedAt**: `string`
|
|
67
|
+
|
|
68
|
+
#### Defined in
|
|
69
|
+
|
|
70
|
+
[types/attestation.ts:4](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L4)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Table of contents
|
|
2
|
+
|
|
3
|
+
### Properties
|
|
4
|
+
|
|
5
|
+
- [data](AttestationUpdateRequest.md#data)
|
|
6
|
+
- [type](AttestationUpdateRequest.md#type)
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
### data
|
|
11
|
+
|
|
12
|
+
• `Optional` **data**: `Record`\<`string`, `any`\>
|
|
13
|
+
|
|
14
|
+
#### Defined in
|
|
15
|
+
|
|
16
|
+
[types/attestation.ts:18](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L18)
|
|
17
|
+
|
|
18
|
+
___
|
|
19
|
+
|
|
20
|
+
### type
|
|
21
|
+
|
|
22
|
+
• `Optional` **type**: `string`
|
|
23
|
+
|
|
24
|
+
#### Defined in
|
|
25
|
+
|
|
26
|
+
[types/attestation.ts:17](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/attestation.ts#L17)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Represents a Collection object.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [id](CollectionResponse.md#id)
|
|
8
|
+
- [logoImage](CollectionResponse.md#logoimage)
|
|
9
|
+
- [name](CollectionResponse.md#name)
|
|
10
|
+
- [title](CollectionResponse.md#title)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### id
|
|
15
|
+
|
|
16
|
+
• **id**: `string`
|
|
17
|
+
|
|
18
|
+
Unique identifier for the collection
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[types/collection.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/collection.ts#L7)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### logoImage
|
|
27
|
+
|
|
28
|
+
• **logoImage**: `string`
|
|
29
|
+
|
|
30
|
+
URL to the collection’s logo image
|
|
31
|
+
|
|
32
|
+
#### Defined in
|
|
33
|
+
|
|
34
|
+
[types/collection.ts:13](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/collection.ts#L13)
|
|
35
|
+
|
|
36
|
+
___
|
|
37
|
+
|
|
38
|
+
### name
|
|
39
|
+
|
|
40
|
+
• **name**: `string`
|
|
41
|
+
|
|
42
|
+
Machine-readable name of the collection
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[types/collection.ts:9](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/collection.ts#L9)
|
|
47
|
+
|
|
48
|
+
___
|
|
49
|
+
|
|
50
|
+
### title
|
|
51
|
+
|
|
52
|
+
• **title**: `string`
|
|
53
|
+
|
|
54
|
+
Human-readable title of the collection
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[types/collection.ts:11](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/collection.ts#L11)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Represents a standardized error response.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [code](ErrorResponse.md#code)
|
|
8
|
+
- [message](ErrorResponse.md#message)
|
|
9
|
+
|
|
10
|
+
## Properties
|
|
11
|
+
|
|
12
|
+
### code
|
|
13
|
+
|
|
14
|
+
• **code**: `number`
|
|
15
|
+
|
|
16
|
+
Numeric error code
|
|
17
|
+
|
|
18
|
+
#### Defined in
|
|
19
|
+
|
|
20
|
+
[types/error.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/error.ts#L7)
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### message
|
|
25
|
+
|
|
26
|
+
• **message**: `string`
|
|
27
|
+
|
|
28
|
+
Human-readable error message
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[types/error.ts:9](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/error.ts#L9)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Represents a Product Item object.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [description](ProductResponse.md#description)
|
|
8
|
+
- [heroImage](ProductResponse.md#heroimage)
|
|
9
|
+
- [id](ProductResponse.md#id)
|
|
10
|
+
- [name](ProductResponse.md#name)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### description
|
|
15
|
+
|
|
16
|
+
• **description**: `string`
|
|
17
|
+
|
|
18
|
+
Detailed description of the product
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[types/product.ts:11](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/product.ts#L11)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### heroImage
|
|
27
|
+
|
|
28
|
+
• **heroImage**: `string`
|
|
29
|
+
|
|
30
|
+
URL to the product’s hero image
|
|
31
|
+
|
|
32
|
+
#### Defined in
|
|
33
|
+
|
|
34
|
+
[types/product.ts:13](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/product.ts#L13)
|
|
35
|
+
|
|
36
|
+
___
|
|
37
|
+
|
|
38
|
+
### id
|
|
39
|
+
|
|
40
|
+
• **id**: `string`
|
|
41
|
+
|
|
42
|
+
Unique identifier for the product
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[types/product.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/product.ts#L7)
|
|
47
|
+
|
|
48
|
+
___
|
|
49
|
+
|
|
50
|
+
### name
|
|
51
|
+
|
|
52
|
+
• **name**: `string`
|
|
53
|
+
|
|
54
|
+
Name of the product
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[types/product.ts:9](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/product.ts#L9)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Represents a Proof object.
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
### Properties
|
|
6
|
+
|
|
7
|
+
- [collectionId](ProofResponse.md#collectionid)
|
|
8
|
+
- [createdAt](ProofResponse.md#createdat)
|
|
9
|
+
- [id](ProofResponse.md#id)
|
|
10
|
+
- [productId](ProofResponse.md#productid)
|
|
11
|
+
- [tokenId](ProofResponse.md#tokenid)
|
|
12
|
+
- [userId](ProofResponse.md#userid)
|
|
13
|
+
- [values](ProofResponse.md#values)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### collectionId
|
|
18
|
+
|
|
19
|
+
• **collectionId**: `string`
|
|
20
|
+
|
|
21
|
+
Unique identifier for the collection
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[types/proof.ts:7](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L7)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### createdAt
|
|
30
|
+
|
|
31
|
+
• **createdAt**: `string`
|
|
32
|
+
|
|
33
|
+
Creation timestamp
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[types/proof.ts:9](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L9)
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### id
|
|
42
|
+
|
|
43
|
+
• **id**: `string`
|
|
44
|
+
|
|
45
|
+
Unique identifier for the proof
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[types/proof.ts:11](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L11)
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### productId
|
|
54
|
+
|
|
55
|
+
• **productId**: `string`
|
|
56
|
+
|
|
57
|
+
Unique identifier for the product
|
|
58
|
+
|
|
59
|
+
#### Defined in
|
|
60
|
+
|
|
61
|
+
[types/proof.ts:13](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L13)
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### tokenId
|
|
66
|
+
|
|
67
|
+
• **tokenId**: `string`
|
|
68
|
+
|
|
69
|
+
Unique identifier for the token
|
|
70
|
+
|
|
71
|
+
#### Defined in
|
|
72
|
+
|
|
73
|
+
[types/proof.ts:15](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L15)
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### userId
|
|
78
|
+
|
|
79
|
+
• **userId**: `string`
|
|
80
|
+
|
|
81
|
+
Unique identifier for the user
|
|
82
|
+
|
|
83
|
+
#### Defined in
|
|
84
|
+
|
|
85
|
+
[types/proof.ts:17](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L17)
|
|
86
|
+
|
|
87
|
+
___
|
|
88
|
+
|
|
89
|
+
### values
|
|
90
|
+
|
|
91
|
+
• **values**: `Record`\<`string`, `any`\>
|
|
92
|
+
|
|
93
|
+
Arbitrary key-value pairs for proof values
|
|
94
|
+
|
|
95
|
+
#### Defined in
|
|
96
|
+
|
|
97
|
+
[types/proof.ts:19](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/types/proof.ts#L19)
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
## Table of contents
|
|
2
|
+
|
|
3
|
+
### Functions
|
|
4
|
+
|
|
5
|
+
- [deleteConfig](appConfiguration.md#deleteconfig)
|
|
6
|
+
- [deleteDataItem](appConfiguration.md#deletedataitem)
|
|
7
|
+
- [getConfig](appConfiguration.md#getconfig)
|
|
8
|
+
- [getData](appConfiguration.md#getdata)
|
|
9
|
+
- [getDataItem](appConfiguration.md#getdataitem)
|
|
10
|
+
- [setConfig](appConfiguration.md#setconfig)
|
|
11
|
+
- [setDataItem](appConfiguration.md#setdataitem)
|
|
12
|
+
|
|
13
|
+
## Functions
|
|
14
|
+
|
|
15
|
+
### deleteConfig
|
|
16
|
+
|
|
17
|
+
▸ **deleteConfig**(`opts`): `Promise`\<`void`\>
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
| Name | Type |
|
|
22
|
+
| :------ | :------ |
|
|
23
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<`void`\>
|
|
28
|
+
|
|
29
|
+
#### Defined in
|
|
30
|
+
|
|
31
|
+
[api/appConfiguration.ts:74](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L74)
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### deleteDataItem
|
|
36
|
+
|
|
37
|
+
▸ **deleteDataItem**(`opts`): `Promise`\<`void`\>
|
|
38
|
+
|
|
39
|
+
#### Parameters
|
|
40
|
+
|
|
41
|
+
| Name | Type |
|
|
42
|
+
| :------ | :------ |
|
|
43
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
`Promise`\<`void`\>
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[api/appConfiguration.ts:99](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L99)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### getConfig
|
|
56
|
+
|
|
57
|
+
▸ **getConfig**(`opts`): `Promise`\<`any`\>
|
|
58
|
+
|
|
59
|
+
#### Parameters
|
|
60
|
+
|
|
61
|
+
| Name | Type |
|
|
62
|
+
| :------ | :------ |
|
|
63
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
64
|
+
|
|
65
|
+
#### Returns
|
|
66
|
+
|
|
67
|
+
`Promise`\<`any`\>
|
|
68
|
+
|
|
69
|
+
#### Defined in
|
|
70
|
+
|
|
71
|
+
[api/appConfiguration.ts:62](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L62)
|
|
72
|
+
|
|
73
|
+
___
|
|
74
|
+
|
|
75
|
+
### getData
|
|
76
|
+
|
|
77
|
+
▸ **getData**(`opts`): `Promise`\<`any`[]\>
|
|
78
|
+
|
|
79
|
+
#### Parameters
|
|
80
|
+
|
|
81
|
+
| Name | Type |
|
|
82
|
+
| :------ | :------ |
|
|
83
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
84
|
+
|
|
85
|
+
#### Returns
|
|
86
|
+
|
|
87
|
+
`Promise`\<`any`[]\>
|
|
88
|
+
|
|
89
|
+
#### Defined in
|
|
90
|
+
|
|
91
|
+
[api/appConfiguration.ts:80](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L80)
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### getDataItem
|
|
96
|
+
|
|
97
|
+
▸ **getDataItem**(`opts`): `Promise`\<`any`\>
|
|
98
|
+
|
|
99
|
+
#### Parameters
|
|
100
|
+
|
|
101
|
+
| Name | Type |
|
|
102
|
+
| :------ | :------ |
|
|
103
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
104
|
+
|
|
105
|
+
#### Returns
|
|
106
|
+
|
|
107
|
+
`Promise`\<`any`\>
|
|
108
|
+
|
|
109
|
+
#### Defined in
|
|
110
|
+
|
|
111
|
+
[api/appConfiguration.ts:86](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L86)
|
|
112
|
+
|
|
113
|
+
___
|
|
114
|
+
|
|
115
|
+
### setConfig
|
|
116
|
+
|
|
117
|
+
▸ **setConfig**(`opts`): `Promise`\<`any`\>
|
|
118
|
+
|
|
119
|
+
#### Parameters
|
|
120
|
+
|
|
121
|
+
| Name | Type |
|
|
122
|
+
| :------ | :------ |
|
|
123
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
124
|
+
|
|
125
|
+
#### Returns
|
|
126
|
+
|
|
127
|
+
`Promise`\<`any`\>
|
|
128
|
+
|
|
129
|
+
#### Defined in
|
|
130
|
+
|
|
131
|
+
[api/appConfiguration.ts:68](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L68)
|
|
132
|
+
|
|
133
|
+
___
|
|
134
|
+
|
|
135
|
+
### setDataItem
|
|
136
|
+
|
|
137
|
+
▸ **setDataItem**(`opts`): `Promise`\<`any`\>
|
|
138
|
+
|
|
139
|
+
#### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type |
|
|
142
|
+
| :------ | :------ |
|
|
143
|
+
| `opts` | [`AppConfigOptions`](../modules.md#appconfigoptions) |
|
|
144
|
+
|
|
145
|
+
#### Returns
|
|
146
|
+
|
|
147
|
+
`Promise`\<`any`\>
|
|
148
|
+
|
|
149
|
+
#### Defined in
|
|
150
|
+
|
|
151
|
+
[api/appConfiguration.ts:93](https://github.com/Prove-Anything/smartlinks/blob/2322afa091763cbb81ba4db4b90e49b576099120/src/api/appConfiguration.ts#L93)
|