@proveanything/smartlinks 2.1.23 → 2.1.27
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/dist/api/claimSet.d.ts +8 -2
- package/dist/api/claimSet.js +11 -3
- package/dist/api/containers.d.ts +1 -1
- package/dist/api/containers.js +1 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/places.d.ts +16 -0
- package/dist/api/places.js +16 -0
- package/dist/api/tagCodes.d.ts +17 -0
- package/dist/api/tagCodes.js +28 -0
- package/dist/docs/API_SUMMARY.md +94 -1
- package/dist/docs/app-docs.md +73 -0
- package/dist/docs/app-manifest.md +20 -0
- package/dist/docs/i18n.md +68 -1
- package/dist/docs/tag-codes.md +97 -0
- package/dist/i18n.d.ts +49 -0
- package/dist/i18n.js +298 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/openapi.yaml +204 -0
- package/dist/types/appManifest.d.ts +29 -0
- package/dist/types/claimSet.d.ts +106 -1
- package/dist/types/containers.d.ts +2 -0
- package/docs/API_SUMMARY.md +94 -1
- package/docs/app-docs.md +73 -0
- package/docs/app-manifest.md +20 -0
- package/docs/i18n.md +68 -1
- package/docs/tag-codes.md +97 -0
- package/openapi.yaml +204 -0
- package/package.json +87 -87
package/openapi.yaml
CHANGED
|
@@ -106,6 +106,8 @@ tags:
|
|
|
106
106
|
description: Order records and line items.
|
|
107
107
|
- name: partner
|
|
108
108
|
description: partner API
|
|
109
|
+
- name: places
|
|
110
|
+
description: places API
|
|
109
111
|
- name: product
|
|
110
112
|
description: Single product operations.
|
|
111
113
|
- name: products
|
|
@@ -7262,6 +7264,40 @@ paths:
|
|
|
7262
7264
|
description: Unauthorized
|
|
7263
7265
|
404:
|
|
7264
7266
|
description: Not found
|
|
7267
|
+
/admin/collection/{collectionId}/places/move:
|
|
7268
|
+
post:
|
|
7269
|
+
tags:
|
|
7270
|
+
- places
|
|
7271
|
+
summary: "Move items (by membership), chips without an item (by membership) or containers (re-parented) into `to`, or out of every place with `to: null`."
|
|
7272
|
+
operationId: places_move
|
|
7273
|
+
security:
|
|
7274
|
+
- bearerAuth: []
|
|
7275
|
+
parameters:
|
|
7276
|
+
- name: collectionId
|
|
7277
|
+
in: path
|
|
7278
|
+
required: true
|
|
7279
|
+
schema:
|
|
7280
|
+
type: string
|
|
7281
|
+
responses:
|
|
7282
|
+
200:
|
|
7283
|
+
description: Success
|
|
7284
|
+
content:
|
|
7285
|
+
application/json:
|
|
7286
|
+
schema:
|
|
7287
|
+
$ref: "#/components/schemas/PlaceMoveResult"
|
|
7288
|
+
400:
|
|
7289
|
+
description: Bad request
|
|
7290
|
+
401:
|
|
7291
|
+
description: Unauthorized
|
|
7292
|
+
404:
|
|
7293
|
+
description: Not found
|
|
7294
|
+
requestBody:
|
|
7295
|
+
required: true
|
|
7296
|
+
content:
|
|
7297
|
+
application/json:
|
|
7298
|
+
schema:
|
|
7299
|
+
type: object
|
|
7300
|
+
additionalProperties: true
|
|
7265
7301
|
/admin/collection/{collectionId}/product:
|
|
7266
7302
|
post:
|
|
7267
7303
|
tags:
|
|
@@ -15670,6 +15706,16 @@ paths:
|
|
|
15670
15706
|
required: true
|
|
15671
15707
|
schema:
|
|
15672
15708
|
type: string
|
|
15709
|
+
- name: from
|
|
15710
|
+
in: query
|
|
15711
|
+
required: false
|
|
15712
|
+
schema:
|
|
15713
|
+
type: string
|
|
15714
|
+
- name: to
|
|
15715
|
+
in: query
|
|
15716
|
+
required: false
|
|
15717
|
+
schema:
|
|
15718
|
+
type: string
|
|
15673
15719
|
responses:
|
|
15674
15720
|
200:
|
|
15675
15721
|
description: Success
|
|
@@ -22097,6 +22143,8 @@ components:
|
|
|
22097
22143
|
$ref: "#/components/schemas/AppConnectorDeclaration"
|
|
22098
22144
|
assistant:
|
|
22099
22145
|
$ref: "#/components/schemas/AppAssistantDeclaration"
|
|
22146
|
+
docs:
|
|
22147
|
+
$ref: "#/components/schemas/AppDocsDeclaration"
|
|
22100
22148
|
required:
|
|
22101
22149
|
- name
|
|
22102
22150
|
- version
|
|
@@ -22104,6 +22152,31 @@ components:
|
|
|
22104
22152
|
- function
|
|
22105
22153
|
- files
|
|
22106
22154
|
- components
|
|
22155
|
+
AppDocsPage:
|
|
22156
|
+
type: object
|
|
22157
|
+
properties:
|
|
22158
|
+
file:
|
|
22159
|
+
type: string
|
|
22160
|
+
title:
|
|
22161
|
+
type: string
|
|
22162
|
+
description:
|
|
22163
|
+
type: string
|
|
22164
|
+
audience:
|
|
22165
|
+
$ref: "#/components/schemas/AppDocsAudience"
|
|
22166
|
+
required:
|
|
22167
|
+
- file
|
|
22168
|
+
- title
|
|
22169
|
+
AppDocsDeclaration:
|
|
22170
|
+
type: object
|
|
22171
|
+
properties:
|
|
22172
|
+
pages:
|
|
22173
|
+
type: array
|
|
22174
|
+
items:
|
|
22175
|
+
$ref: "#/components/schemas/AppDocsPage"
|
|
22176
|
+
listed:
|
|
22177
|
+
type: boolean
|
|
22178
|
+
required:
|
|
22179
|
+
- pages
|
|
22107
22180
|
AppAssistantFile:
|
|
22108
22181
|
type: object
|
|
22109
22182
|
properties:
|
|
@@ -22593,6 +22666,13 @@ components:
|
|
|
22593
22666
|
ServerFunctionMessageResult:
|
|
22594
22667
|
type: object
|
|
22595
22668
|
additionalProperties: true
|
|
22669
|
+
AppDocsAudience:
|
|
22670
|
+
type: string
|
|
22671
|
+
enum:
|
|
22672
|
+
- team
|
|
22673
|
+
- admin
|
|
22674
|
+
- customer
|
|
22675
|
+
- developer
|
|
22596
22676
|
PaginatedResponse:
|
|
22597
22677
|
type: object
|
|
22598
22678
|
properties:
|
|
@@ -27600,6 +27680,8 @@ components:
|
|
|
27600
27680
|
properties:
|
|
27601
27681
|
changed:
|
|
27602
27682
|
type: number
|
|
27683
|
+
wholeRange:
|
|
27684
|
+
type: boolean
|
|
27603
27685
|
skipped:
|
|
27604
27686
|
type: array
|
|
27605
27687
|
items:
|
|
@@ -27688,6 +27770,17 @@ components:
|
|
|
27688
27770
|
additionalProperties: true
|
|
27689
27771
|
codes:
|
|
27690
27772
|
type: number
|
|
27773
|
+
codeSource:
|
|
27774
|
+
type: string
|
|
27775
|
+
enum:
|
|
27776
|
+
- stored
|
|
27777
|
+
- computed
|
|
27778
|
+
sigBits:
|
|
27779
|
+
type: number
|
|
27780
|
+
bareCodes:
|
|
27781
|
+
type: boolean
|
|
27782
|
+
unassignedUrl:
|
|
27783
|
+
type: string
|
|
27691
27784
|
deleted:
|
|
27692
27785
|
type: boolean
|
|
27693
27786
|
createdAt:
|
|
@@ -27733,9 +27826,104 @@ components:
|
|
|
27733
27826
|
$ref: "#/components/schemas/ClaimSetTagType"
|
|
27734
27827
|
tapDomain:
|
|
27735
27828
|
type: string
|
|
27829
|
+
codeSource:
|
|
27830
|
+
type: string
|
|
27831
|
+
enum:
|
|
27832
|
+
- stored
|
|
27833
|
+
- computed
|
|
27834
|
+
sigBits:
|
|
27835
|
+
type: number
|
|
27836
|
+
bareCodes:
|
|
27837
|
+
type: boolean
|
|
27838
|
+
unassignedUrl:
|
|
27839
|
+
type: string
|
|
27736
27840
|
required:
|
|
27737
27841
|
- name
|
|
27738
27842
|
- tagType
|
|
27843
|
+
TagCodeRef:
|
|
27844
|
+
type: object
|
|
27845
|
+
properties:
|
|
27846
|
+
scan:
|
|
27847
|
+
type: string
|
|
27848
|
+
url:
|
|
27849
|
+
type: string
|
|
27850
|
+
claimSetId:
|
|
27851
|
+
type: string
|
|
27852
|
+
code:
|
|
27853
|
+
type: string
|
|
27854
|
+
tagId:
|
|
27855
|
+
type: string
|
|
27856
|
+
TagCodeAttachRequest:
|
|
27857
|
+
type: object
|
|
27858
|
+
properties:
|
|
27859
|
+
productId:
|
|
27860
|
+
type: string
|
|
27861
|
+
proofId:
|
|
27862
|
+
type: string
|
|
27863
|
+
containerId:
|
|
27864
|
+
type: string
|
|
27865
|
+
container:
|
|
27866
|
+
type: object
|
|
27867
|
+
additionalProperties: true
|
|
27868
|
+
TagCodeState:
|
|
27869
|
+
type: object
|
|
27870
|
+
properties:
|
|
27871
|
+
kind:
|
|
27872
|
+
type: string
|
|
27873
|
+
enum:
|
|
27874
|
+
- claim
|
|
27875
|
+
- chip
|
|
27876
|
+
claimSetId:
|
|
27877
|
+
type: string
|
|
27878
|
+
code:
|
|
27879
|
+
type: string
|
|
27880
|
+
url:
|
|
27881
|
+
type: string
|
|
27882
|
+
computed:
|
|
27883
|
+
type: boolean
|
|
27884
|
+
tagId:
|
|
27885
|
+
type: string
|
|
27886
|
+
tagType:
|
|
27887
|
+
type: string
|
|
27888
|
+
enum:
|
|
27889
|
+
- chip
|
|
27890
|
+
status:
|
|
27891
|
+
type: string
|
|
27892
|
+
enum:
|
|
27893
|
+
- free
|
|
27894
|
+
- attached
|
|
27895
|
+
- elsewhere
|
|
27896
|
+
on:
|
|
27897
|
+
$ref: "#/components/schemas/TagCodeOn"
|
|
27898
|
+
productId:
|
|
27899
|
+
type: string
|
|
27900
|
+
proofId:
|
|
27901
|
+
type: string
|
|
27902
|
+
required:
|
|
27903
|
+
- kind
|
|
27904
|
+
- tagType
|
|
27905
|
+
- status
|
|
27906
|
+
PlaceMoveResult:
|
|
27907
|
+
type: object
|
|
27908
|
+
properties:
|
|
27909
|
+
moved:
|
|
27910
|
+
type: array
|
|
27911
|
+
items:
|
|
27912
|
+
type: object
|
|
27913
|
+
additionalProperties: true
|
|
27914
|
+
unchanged:
|
|
27915
|
+
type: array
|
|
27916
|
+
items:
|
|
27917
|
+
$ref: "#/components/schemas/PlaceMoveItem"
|
|
27918
|
+
refused:
|
|
27919
|
+
type: array
|
|
27920
|
+
items:
|
|
27921
|
+
type: object
|
|
27922
|
+
additionalProperties: true
|
|
27923
|
+
required:
|
|
27924
|
+
- moved
|
|
27925
|
+
- unchanged
|
|
27926
|
+
- refused
|
|
27739
27927
|
ClaimSetScope:
|
|
27740
27928
|
type: object
|
|
27741
27929
|
properties:
|
|
@@ -27743,6 +27931,14 @@ components:
|
|
|
27743
27931
|
type: string
|
|
27744
27932
|
required:
|
|
27745
27933
|
- collectionId
|
|
27934
|
+
PlaceMoveItem:
|
|
27935
|
+
type: object
|
|
27936
|
+
properties:
|
|
27937
|
+
productId:
|
|
27938
|
+
type: object
|
|
27939
|
+
additionalProperties: true
|
|
27940
|
+
required:
|
|
27941
|
+
- productId
|
|
27746
27942
|
ClaimSetTagType:
|
|
27747
27943
|
type: string
|
|
27748
27944
|
enum:
|
|
@@ -27781,6 +27977,9 @@ components:
|
|
|
27781
27977
|
- duplicate_uid
|
|
27782
27978
|
- uid_in_use
|
|
27783
27979
|
- uid_conflict
|
|
27980
|
+
TagCodeOn:
|
|
27981
|
+
type: object
|
|
27982
|
+
additionalProperties: true
|
|
27784
27983
|
ClientErrorReport:
|
|
27785
27984
|
type: object
|
|
27786
27985
|
properties:
|
|
@@ -29637,11 +29836,16 @@ components:
|
|
|
29637
29836
|
FindContainersForItemResponse:
|
|
29638
29837
|
type: object
|
|
29639
29838
|
properties:
|
|
29839
|
+
items:
|
|
29840
|
+
type: array
|
|
29841
|
+
items:
|
|
29842
|
+
$ref: "#/components/schemas/ContainerItem"
|
|
29640
29843
|
containers:
|
|
29641
29844
|
type: array
|
|
29642
29845
|
items:
|
|
29643
29846
|
$ref: "#/components/schemas/Container"
|
|
29644
29847
|
required:
|
|
29848
|
+
- items
|
|
29645
29849
|
- containers
|
|
29646
29850
|
ContainerItemsResponse:
|
|
29647
29851
|
type: object
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@proveanything/smartlinks",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js",
|
|
12
|
-
"default": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./testing": {
|
|
15
|
-
"types": "./dist/testing/index.d.ts",
|
|
16
|
-
"import": "./dist/testing/index.js",
|
|
17
|
-
"default": "./dist/testing/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./*": {
|
|
20
|
-
"types": "./dist/*.d.ts",
|
|
21
|
-
"import": "./dist/*.js",
|
|
22
|
-
"default": "./dist/*.js"
|
|
23
|
-
},
|
|
24
|
-
"./baseline.css": "./dist/baseline.css",
|
|
25
|
-
"./baseline.classes.json": "./dist/baseline.classes.json",
|
|
26
|
-
"./theme.css": "./dist/theme.css",
|
|
27
|
-
"./theme-boot.js": "./dist/theme-boot.js",
|
|
28
|
-
"./package.json": "./package.json"
|
|
29
|
-
},
|
|
30
|
-
"bin": {
|
|
31
|
-
"smartlinks-register-release": "scripts/register-release.mjs",
|
|
32
|
-
"smartlinks-publish": "scripts/publish.mjs",
|
|
33
|
-
"smartlinks-doctor": "scripts/doctor.mjs",
|
|
34
|
-
"smartlinks-headless": "scripts/headless-check.mjs"
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist/",
|
|
38
|
-
"docs/",
|
|
39
|
-
"scripts/register-release.mjs",
|
|
40
|
-
"scripts/publish.mjs",
|
|
41
|
-
"scripts/doctor.mjs",
|
|
42
|
-
"scripts/headless-check.mjs",
|
|
43
|
-
"scripts/lib/",
|
|
44
|
-
"openapi.yaml",
|
|
45
|
-
"README.md"
|
|
46
|
-
],
|
|
47
|
-
"scripts": {
|
|
48
|
-
"test": "node test/run.cjs",
|
|
49
|
-
"build": "tsc && node scripts/fix-esm-extensions.mjs && node generate-api-summary.cjs && node generate-openapi.cjs && node scripts/copy-docs-to-dist.cjs && node scripts/build-baseline.mjs",
|
|
50
|
-
"docs": "typedoc",
|
|
51
|
-
"docs:summary": "node generate-api-summary.cjs",
|
|
52
|
-
"docs:openapi": "node generate-openapi.cjs",
|
|
53
|
-
"docs:openapi:lint": "npx --yes @redocly/cli@latest lint openapi.yaml",
|
|
54
|
-
"docs:openapi:check": "node generate-openapi.cjs && npx --yes @redocly/cli@latest lint openapi.yaml",
|
|
55
|
-
"build:docs": "tsc build-docs.ts --outDir dist && node dist/build-docs.js",
|
|
56
|
-
"prepublishOnly": "npm run build"
|
|
57
|
-
},
|
|
58
|
-
"keywords": [
|
|
59
|
-
"smartlinks",
|
|
60
|
-
"api",
|
|
61
|
-
"authentication",
|
|
62
|
-
"traceability",
|
|
63
|
-
"blockchain",
|
|
64
|
-
"typescript",
|
|
65
|
-
"sdk"
|
|
66
|
-
],
|
|
67
|
-
"author": "Glenn Shoosmith",
|
|
68
|
-
"license": "MIT",
|
|
69
|
-
"publishConfig": {
|
|
70
|
-
"access": "public"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"cross-fetch": "^3.1.5",
|
|
74
|
-
"es-module-lexer": "^1.7.0"
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"ts-node": "^10.9.1",
|
|
78
|
-
"typedoc": "^0.25.13",
|
|
79
|
-
"typedoc-plugin-markdown": "^3.17.1",
|
|
80
|
-
"typescript": "^4.9.0"
|
|
81
|
-
},
|
|
82
|
-
"repository": {
|
|
83
|
-
"type": "git",
|
|
84
|
-
"url": "https://github.com/Prove-Anything/smartlinks.git"
|
|
85
|
-
},
|
|
86
|
-
"homepage": "https://smartlinks.app"
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@proveanything/smartlinks",
|
|
3
|
+
"version": "2.1.27",
|
|
4
|
+
"description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./testing": {
|
|
15
|
+
"types": "./dist/testing/index.d.ts",
|
|
16
|
+
"import": "./dist/testing/index.js",
|
|
17
|
+
"default": "./dist/testing/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./*": {
|
|
20
|
+
"types": "./dist/*.d.ts",
|
|
21
|
+
"import": "./dist/*.js",
|
|
22
|
+
"default": "./dist/*.js"
|
|
23
|
+
},
|
|
24
|
+
"./baseline.css": "./dist/baseline.css",
|
|
25
|
+
"./baseline.classes.json": "./dist/baseline.classes.json",
|
|
26
|
+
"./theme.css": "./dist/theme.css",
|
|
27
|
+
"./theme-boot.js": "./dist/theme-boot.js",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"smartlinks-register-release": "scripts/register-release.mjs",
|
|
32
|
+
"smartlinks-publish": "scripts/publish.mjs",
|
|
33
|
+
"smartlinks-doctor": "scripts/doctor.mjs",
|
|
34
|
+
"smartlinks-headless": "scripts/headless-check.mjs"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/",
|
|
38
|
+
"docs/",
|
|
39
|
+
"scripts/register-release.mjs",
|
|
40
|
+
"scripts/publish.mjs",
|
|
41
|
+
"scripts/doctor.mjs",
|
|
42
|
+
"scripts/headless-check.mjs",
|
|
43
|
+
"scripts/lib/",
|
|
44
|
+
"openapi.yaml",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test": "node test/run.cjs",
|
|
49
|
+
"build": "tsc && node scripts/fix-esm-extensions.mjs && node generate-api-summary.cjs && node generate-openapi.cjs && node scripts/copy-docs-to-dist.cjs && node scripts/build-baseline.mjs",
|
|
50
|
+
"docs": "typedoc",
|
|
51
|
+
"docs:summary": "node generate-api-summary.cjs",
|
|
52
|
+
"docs:openapi": "node generate-openapi.cjs",
|
|
53
|
+
"docs:openapi:lint": "npx --yes @redocly/cli@latest lint openapi.yaml",
|
|
54
|
+
"docs:openapi:check": "node generate-openapi.cjs && npx --yes @redocly/cli@latest lint openapi.yaml",
|
|
55
|
+
"build:docs": "tsc build-docs.ts --outDir dist && node dist/build-docs.js",
|
|
56
|
+
"prepublishOnly": "npm run build"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"smartlinks",
|
|
60
|
+
"api",
|
|
61
|
+
"authentication",
|
|
62
|
+
"traceability",
|
|
63
|
+
"blockchain",
|
|
64
|
+
"typescript",
|
|
65
|
+
"sdk"
|
|
66
|
+
],
|
|
67
|
+
"author": "Glenn Shoosmith",
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"cross-fetch": "^3.1.5",
|
|
74
|
+
"es-module-lexer": "^1.7.0"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"ts-node": "^10.9.1",
|
|
78
|
+
"typedoc": "^0.25.13",
|
|
79
|
+
"typedoc-plugin-markdown": "^3.17.1",
|
|
80
|
+
"typescript": "^4.9.0"
|
|
81
|
+
},
|
|
82
|
+
"repository": {
|
|
83
|
+
"type": "git",
|
|
84
|
+
"url": "https://github.com/Prove-Anything/smartlinks.git"
|
|
85
|
+
},
|
|
86
|
+
"homepage": "https://smartlinks.app"
|
|
87
|
+
}
|