@proveanything/smartlinks 1.15.16 → 1.15.18
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 +8 -0
- package/dist/api/appObjects.d.ts +6 -0
- package/dist/api/appObjects.js +10 -0
- package/dist/api/navigation.js +3 -2
- package/dist/api/proof.d.ts +19 -1
- package/dist/api/proof.js +44 -0
- package/dist/docs/API_SUMMARY.md +90 -1
- package/dist/docs/app-objects.md +65 -0
- package/dist/docs/assets.md +81 -0
- package/dist/docs/proof-share-grants.md +232 -0
- package/dist/http.d.ts +19 -0
- package/dist/http.js +49 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +231 -0
- package/dist/types/appObjects.d.ts +14 -0
- package/dist/types/navigation.d.ts +5 -0
- package/dist/types/proof.d.ts +55 -0
- package/docs/API_SUMMARY.md +90 -1
- package/docs/app-objects.md +65 -0
- package/docs/assets.md +81 -0
- package/docs/proof-share-grants.md +232 -0
- package/openapi.yaml +231 -0
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -12183,6 +12183,90 @@ paths:
|
|
|
12183
12183
|
application/json:
|
|
12184
12184
|
schema:
|
|
12185
12185
|
$ref: "#/components/schemas/ProofClaimRequest"
|
|
12186
|
+
/public/collection/{collectionId}/product/{productId}/proof/{proofId}/grant/redeem:
|
|
12187
|
+
post:
|
|
12188
|
+
tags:
|
|
12189
|
+
- proof
|
|
12190
|
+
summary: Redeem a grant token (anonymous or signed-in).
|
|
12191
|
+
operationId: proof_redeemGrant
|
|
12192
|
+
security: []
|
|
12193
|
+
parameters:
|
|
12194
|
+
- name: collectionId
|
|
12195
|
+
in: path
|
|
12196
|
+
required: true
|
|
12197
|
+
schema:
|
|
12198
|
+
type: string
|
|
12199
|
+
- name: productId
|
|
12200
|
+
in: path
|
|
12201
|
+
required: true
|
|
12202
|
+
schema:
|
|
12203
|
+
type: string
|
|
12204
|
+
- name: proofId
|
|
12205
|
+
in: path
|
|
12206
|
+
required: true
|
|
12207
|
+
schema:
|
|
12208
|
+
type: string
|
|
12209
|
+
responses:
|
|
12210
|
+
200:
|
|
12211
|
+
description: Success
|
|
12212
|
+
content:
|
|
12213
|
+
application/json:
|
|
12214
|
+
schema:
|
|
12215
|
+
$ref: "#/components/schemas/RedeemGrantResult"
|
|
12216
|
+
400:
|
|
12217
|
+
description: Bad request
|
|
12218
|
+
401:
|
|
12219
|
+
description: Unauthorized
|
|
12220
|
+
404:
|
|
12221
|
+
description: Not found
|
|
12222
|
+
requestBody:
|
|
12223
|
+
required: true
|
|
12224
|
+
content:
|
|
12225
|
+
application/json:
|
|
12226
|
+
schema:
|
|
12227
|
+
$ref: "#/components/schemas/RedeemGrantOptions"
|
|
12228
|
+
/public/collection/{collectionId}/product/{productId}/proof/{proofId}/grant/{grantId}:
|
|
12229
|
+
delete:
|
|
12230
|
+
tags:
|
|
12231
|
+
- proof
|
|
12232
|
+
summary: Revoke a grant by id (owner / collection admin only).
|
|
12233
|
+
operationId: proof_revokeGrant
|
|
12234
|
+
security: []
|
|
12235
|
+
parameters:
|
|
12236
|
+
- name: collectionId
|
|
12237
|
+
in: path
|
|
12238
|
+
required: true
|
|
12239
|
+
schema:
|
|
12240
|
+
type: string
|
|
12241
|
+
- name: productId
|
|
12242
|
+
in: path
|
|
12243
|
+
required: true
|
|
12244
|
+
schema:
|
|
12245
|
+
type: string
|
|
12246
|
+
- name: proofId
|
|
12247
|
+
in: path
|
|
12248
|
+
required: true
|
|
12249
|
+
schema:
|
|
12250
|
+
type: string
|
|
12251
|
+
- name: grantId
|
|
12252
|
+
in: path
|
|
12253
|
+
required: true
|
|
12254
|
+
schema:
|
|
12255
|
+
type: string
|
|
12256
|
+
responses:
|
|
12257
|
+
200:
|
|
12258
|
+
description: Success
|
|
12259
|
+
content:
|
|
12260
|
+
application/json:
|
|
12261
|
+
schema:
|
|
12262
|
+
type: object
|
|
12263
|
+
additionalProperties: true
|
|
12264
|
+
400:
|
|
12265
|
+
description: Bad request
|
|
12266
|
+
401:
|
|
12267
|
+
description: Unauthorized
|
|
12268
|
+
404:
|
|
12269
|
+
description: Not found
|
|
12186
12270
|
/public/collection/{collectionId}/products/{productId}/createClaim:
|
|
12187
12271
|
post:
|
|
12188
12272
|
tags:
|
|
@@ -13857,6 +13941,23 @@ paths:
|
|
|
13857
13941
|
required: false
|
|
13858
13942
|
schema:
|
|
13859
13943
|
type: string
|
|
13944
|
+
- name: parentIds
|
|
13945
|
+
in: query
|
|
13946
|
+
required: false
|
|
13947
|
+
schema:
|
|
13948
|
+
type: array
|
|
13949
|
+
items:
|
|
13950
|
+
type: string
|
|
13951
|
+
- name: proofId
|
|
13952
|
+
in: query
|
|
13953
|
+
required: false
|
|
13954
|
+
schema:
|
|
13955
|
+
type: string
|
|
13956
|
+
- name: productId
|
|
13957
|
+
in: query
|
|
13958
|
+
required: false
|
|
13959
|
+
schema:
|
|
13960
|
+
type: string
|
|
13860
13961
|
- name: tag
|
|
13861
13962
|
in: query
|
|
13862
13963
|
required: false
|
|
@@ -14098,6 +14199,52 @@ paths:
|
|
|
14098
14199
|
application/json:
|
|
14099
14200
|
schema:
|
|
14100
14201
|
$ref: "#/components/schemas/ReplyInput"
|
|
14202
|
+
/{zone}/collection/{collectionId}/app/{appId}/threads/{threadId}/reply/{replyId}:
|
|
14203
|
+
delete:
|
|
14204
|
+
tags:
|
|
14205
|
+
- threads
|
|
14206
|
+
summary: Delete a single reply from a thread by its reply id (moderation).
|
|
14207
|
+
operationId: threads_deleteReply
|
|
14208
|
+
security: []
|
|
14209
|
+
parameters:
|
|
14210
|
+
- name: zone
|
|
14211
|
+
in: path
|
|
14212
|
+
required: true
|
|
14213
|
+
schema:
|
|
14214
|
+
type: string
|
|
14215
|
+
- name: collectionId
|
|
14216
|
+
in: path
|
|
14217
|
+
required: true
|
|
14218
|
+
schema:
|
|
14219
|
+
type: string
|
|
14220
|
+
- name: appId
|
|
14221
|
+
in: path
|
|
14222
|
+
required: true
|
|
14223
|
+
schema:
|
|
14224
|
+
type: string
|
|
14225
|
+
- name: threadId
|
|
14226
|
+
in: path
|
|
14227
|
+
required: true
|
|
14228
|
+
schema:
|
|
14229
|
+
type: string
|
|
14230
|
+
- name: replyId
|
|
14231
|
+
in: path
|
|
14232
|
+
required: true
|
|
14233
|
+
schema:
|
|
14234
|
+
type: string
|
|
14235
|
+
responses:
|
|
14236
|
+
200:
|
|
14237
|
+
description: Success
|
|
14238
|
+
content:
|
|
14239
|
+
application/json:
|
|
14240
|
+
schema:
|
|
14241
|
+
$ref: "#/components/schemas/AppThread"
|
|
14242
|
+
400:
|
|
14243
|
+
description: Bad request
|
|
14244
|
+
401:
|
|
14245
|
+
description: Unauthorized
|
|
14246
|
+
404:
|
|
14247
|
+
description: Not found
|
|
14101
14248
|
components:
|
|
14102
14249
|
securitySchemes:
|
|
14103
14250
|
bearerAuth:
|
|
@@ -16883,6 +17030,8 @@ components:
|
|
|
16883
17030
|
admin:
|
|
16884
17031
|
type: object
|
|
16885
17032
|
additionalProperties: true
|
|
17033
|
+
firstReply:
|
|
17034
|
+
$ref: "#/components/schemas/ReplyInput"
|
|
16886
17035
|
UpdateThreadInput:
|
|
16887
17036
|
type: object
|
|
16888
17037
|
properties:
|
|
@@ -16928,6 +17077,14 @@ components:
|
|
|
16928
17077
|
type: string
|
|
16929
17078
|
parentId:
|
|
16930
17079
|
type: string
|
|
17080
|
+
parentIds:
|
|
17081
|
+
type: array
|
|
17082
|
+
items:
|
|
17083
|
+
type: string
|
|
17084
|
+
proofId:
|
|
17085
|
+
type: string
|
|
17086
|
+
productId:
|
|
17087
|
+
type: string
|
|
16931
17088
|
tag:
|
|
16932
17089
|
type: string
|
|
16933
17090
|
contactId:
|
|
@@ -24865,6 +25022,80 @@ components:
|
|
|
24865
25022
|
$ref: "#/components/schemas/ProofFieldDef"
|
|
24866
25023
|
required:
|
|
24867
25024
|
- fields
|
|
25025
|
+
GrantAudience:
|
|
25026
|
+
type: object
|
|
25027
|
+
properties:
|
|
25028
|
+
kind:
|
|
25029
|
+
type: string
|
|
25030
|
+
enum:
|
|
25031
|
+
- public_link
|
|
25032
|
+
- named
|
|
25033
|
+
email:
|
|
25034
|
+
type: string
|
|
25035
|
+
userId:
|
|
25036
|
+
type: string
|
|
25037
|
+
required:
|
|
25038
|
+
- kind
|
|
25039
|
+
ProofGrant:
|
|
25040
|
+
type: object
|
|
25041
|
+
properties:
|
|
25042
|
+
grantId:
|
|
25043
|
+
type: string
|
|
25044
|
+
proofId:
|
|
25045
|
+
type: string
|
|
25046
|
+
productId:
|
|
25047
|
+
type: string
|
|
25048
|
+
scope:
|
|
25049
|
+
type: array
|
|
25050
|
+
items:
|
|
25051
|
+
$ref: "#/components/schemas/GrantScope"
|
|
25052
|
+
audience:
|
|
25053
|
+
$ref: "#/components/schemas/GrantAudience"
|
|
25054
|
+
createdBy:
|
|
25055
|
+
type: string
|
|
25056
|
+
expiresAt:
|
|
25057
|
+
type: string
|
|
25058
|
+
revokedAt:
|
|
25059
|
+
type: string
|
|
25060
|
+
redeemedBy:
|
|
25061
|
+
type: object
|
|
25062
|
+
additionalProperties: true
|
|
25063
|
+
redeemCount:
|
|
25064
|
+
type: number
|
|
25065
|
+
createdAt:
|
|
25066
|
+
type: string
|
|
25067
|
+
updatedAt:
|
|
25068
|
+
type: string
|
|
25069
|
+
token:
|
|
25070
|
+
type: string
|
|
25071
|
+
required:
|
|
25072
|
+
- grantId
|
|
25073
|
+
- proofId
|
|
25074
|
+
- scope
|
|
25075
|
+
- audience
|
|
25076
|
+
- createdBy
|
|
25077
|
+
- redeemCount
|
|
25078
|
+
- createdAt
|
|
25079
|
+
- updatedAt
|
|
25080
|
+
CreateGrantOptions:
|
|
25081
|
+
type: object
|
|
25082
|
+
properties:
|
|
25083
|
+
scope:
|
|
25084
|
+
type: array
|
|
25085
|
+
items:
|
|
25086
|
+
$ref: "#/components/schemas/GrantScope"
|
|
25087
|
+
audience:
|
|
25088
|
+
$ref: "#/components/schemas/GrantAudience"
|
|
25089
|
+
expiresAt:
|
|
25090
|
+
type: object
|
|
25091
|
+
additionalProperties: true
|
|
25092
|
+
required:
|
|
25093
|
+
- scope
|
|
25094
|
+
RedeemGrantOptions:
|
|
25095
|
+
type: object
|
|
25096
|
+
properties:
|
|
25097
|
+
guestName:
|
|
25098
|
+
type: string
|
|
24868
25099
|
ProofResponse:
|
|
24869
25100
|
type: object
|
|
24870
25101
|
additionalProperties: true
|