@proveanything/smartlinks 1.15.15 → 1.15.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/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:
@@ -17731,6 +17815,8 @@ components:
17731
17815
  type: string
17732
17816
  admin:
17733
17817
  type: boolean
17818
+ signal:
17819
+ $ref: "#/components/schemas/AbortSignal"
17734
17820
  required:
17735
17821
  - file
17736
17822
  UploadFromUrlOptions:
@@ -17996,6 +18082,39 @@ components:
17996
18082
  - collectionId
17997
18083
  - tokenId
17998
18084
  - file
18085
+ CreateResumableUploadOptions:
18086
+ type: object
18087
+ properties:
18088
+ file:
18089
+ $ref: "#/components/schemas/File"
18090
+ name:
18091
+ type: string
18092
+ metadata:
18093
+ type: object
18094
+ additionalProperties: true
18095
+ appId:
18096
+ type: string
18097
+ admin:
18098
+ type: boolean
18099
+ token:
18100
+ type: string
18101
+ required:
18102
+ - file
18103
+ ResumableStartOptions:
18104
+ type: object
18105
+ properties:
18106
+ signal:
18107
+ $ref: "#/components/schemas/AbortSignal"
18108
+ ResumableUploadHandle:
18109
+ type: object
18110
+ properties:
18111
+ id:
18112
+ type: string
18113
+ size:
18114
+ type: number
18115
+ required:
18116
+ - id
18117
+ - size
17999
18118
  AttestationResponse:
18000
18119
  type: object
18001
18120
  properties:
@@ -24830,6 +24949,80 @@ components:
24830
24949
  $ref: "#/components/schemas/ProofFieldDef"
24831
24950
  required:
24832
24951
  - fields
24952
+ GrantAudience:
24953
+ type: object
24954
+ properties:
24955
+ kind:
24956
+ type: string
24957
+ enum:
24958
+ - public_link
24959
+ - named
24960
+ email:
24961
+ type: string
24962
+ userId:
24963
+ type: string
24964
+ required:
24965
+ - kind
24966
+ ProofGrant:
24967
+ type: object
24968
+ properties:
24969
+ grantId:
24970
+ type: string
24971
+ proofId:
24972
+ type: string
24973
+ productId:
24974
+ type: string
24975
+ scope:
24976
+ type: array
24977
+ items:
24978
+ $ref: "#/components/schemas/GrantScope"
24979
+ audience:
24980
+ $ref: "#/components/schemas/GrantAudience"
24981
+ createdBy:
24982
+ type: string
24983
+ expiresAt:
24984
+ type: string
24985
+ revokedAt:
24986
+ type: string
24987
+ redeemedBy:
24988
+ type: object
24989
+ additionalProperties: true
24990
+ redeemCount:
24991
+ type: number
24992
+ createdAt:
24993
+ type: string
24994
+ updatedAt:
24995
+ type: string
24996
+ token:
24997
+ type: string
24998
+ required:
24999
+ - grantId
25000
+ - proofId
25001
+ - scope
25002
+ - audience
25003
+ - createdBy
25004
+ - redeemCount
25005
+ - createdAt
25006
+ - updatedAt
25007
+ CreateGrantOptions:
25008
+ type: object
25009
+ properties:
25010
+ scope:
25011
+ type: array
25012
+ items:
25013
+ $ref: "#/components/schemas/GrantScope"
25014
+ audience:
25015
+ $ref: "#/components/schemas/GrantAudience"
25016
+ expiresAt:
25017
+ type: object
25018
+ additionalProperties: true
25019
+ required:
25020
+ - scope
25021
+ RedeemGrantOptions:
25022
+ type: object
25023
+ properties:
25024
+ guestName:
25025
+ type: string
24833
25026
  ProofResponse:
24834
25027
  type: object
24835
25028
  additionalProperties: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.15.15",
3
+ "version": "1.15.17",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",