@proveanything/smartlinks 1.16.5 → 1.16.7
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/attestations.d.ts +53 -4
- package/dist/api/attestations.js +60 -3
- package/dist/api/proof.js +3 -0
- package/dist/docs/API_SUMMARY.md +74 -2
- package/dist/docs/attestations.md +28 -0
- package/dist/docs/proof-share-grants.md +78 -5
- package/dist/openapi.yaml +152 -0
- package/dist/types/attestations.d.ts +69 -0
- package/dist/types/proof.d.ts +22 -2
- package/docs/API_SUMMARY.md +74 -2
- package/docs/attestations.md +28 -0
- package/docs/proof-share-grants.md +78 -5
- package/openapi.yaml +152 -0
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -1261,6 +1261,11 @@ paths:
|
|
|
1261
1261
|
required: false
|
|
1262
1262
|
schema:
|
|
1263
1263
|
type: string
|
|
1264
|
+
- name: moderationStatus
|
|
1265
|
+
in: query
|
|
1266
|
+
required: false
|
|
1267
|
+
schema:
|
|
1268
|
+
$ref: "#/components/schemas/AttestationModerationStatus"
|
|
1264
1269
|
- name: recordedAfter
|
|
1265
1270
|
in: query
|
|
1266
1271
|
required: false
|
|
@@ -10237,6 +10242,11 @@ paths:
|
|
|
10237
10242
|
required: false
|
|
10238
10243
|
schema:
|
|
10239
10244
|
type: string
|
|
10245
|
+
- name: moderationStatus
|
|
10246
|
+
in: query
|
|
10247
|
+
required: false
|
|
10248
|
+
schema:
|
|
10249
|
+
$ref: "#/components/schemas/AttestationModerationStatus"
|
|
10240
10250
|
- name: recordedAfter
|
|
10241
10251
|
in: query
|
|
10242
10252
|
required: false
|
|
@@ -10270,6 +10280,37 @@ paths:
|
|
|
10270
10280
|
description: Unauthorized
|
|
10271
10281
|
404:
|
|
10272
10282
|
description: Not found
|
|
10283
|
+
post:
|
|
10284
|
+
tags:
|
|
10285
|
+
- attestations
|
|
10286
|
+
summary: attestations.publicCreate
|
|
10287
|
+
operationId: attestations_publicCreate
|
|
10288
|
+
security: []
|
|
10289
|
+
parameters:
|
|
10290
|
+
- name: collectionId
|
|
10291
|
+
in: path
|
|
10292
|
+
required: true
|
|
10293
|
+
schema:
|
|
10294
|
+
type: string
|
|
10295
|
+
responses:
|
|
10296
|
+
200:
|
|
10297
|
+
description: Success
|
|
10298
|
+
content:
|
|
10299
|
+
application/json:
|
|
10300
|
+
schema:
|
|
10301
|
+
$ref: "#/components/schemas/CreateOwnerAttestationResponse"
|
|
10302
|
+
400:
|
|
10303
|
+
description: Bad request
|
|
10304
|
+
401:
|
|
10305
|
+
description: Unauthorized
|
|
10306
|
+
404:
|
|
10307
|
+
description: Not found
|
|
10308
|
+
requestBody:
|
|
10309
|
+
required: true
|
|
10310
|
+
content:
|
|
10311
|
+
application/json:
|
|
10312
|
+
schema:
|
|
10313
|
+
$ref: "#/components/schemas/OwnerAttestationInput"
|
|
10273
10314
|
/public/collection/{collectionId}/attestations/latest:
|
|
10274
10315
|
get:
|
|
10275
10316
|
tags:
|
|
@@ -10474,6 +10515,43 @@ paths:
|
|
|
10474
10515
|
description: Unauthorized
|
|
10475
10516
|
404:
|
|
10476
10517
|
description: Not found
|
|
10518
|
+
/public/collection/{collectionId}/attestations/{attestationId}/moderate:
|
|
10519
|
+
post:
|
|
10520
|
+
tags:
|
|
10521
|
+
- attestations
|
|
10522
|
+
summary: Moderate a contributed attestation (proof OWNER by identity, or collection admin).
|
|
10523
|
+
operationId: attestations_moderate
|
|
10524
|
+
security: []
|
|
10525
|
+
parameters:
|
|
10526
|
+
- name: collectionId
|
|
10527
|
+
in: path
|
|
10528
|
+
required: true
|
|
10529
|
+
schema:
|
|
10530
|
+
type: string
|
|
10531
|
+
- name: attestationId
|
|
10532
|
+
in: path
|
|
10533
|
+
required: true
|
|
10534
|
+
schema:
|
|
10535
|
+
type: string
|
|
10536
|
+
responses:
|
|
10537
|
+
200:
|
|
10538
|
+
description: Success
|
|
10539
|
+
content:
|
|
10540
|
+
application/json:
|
|
10541
|
+
schema:
|
|
10542
|
+
$ref: "#/components/schemas/ModerateAttestationResponse"
|
|
10543
|
+
400:
|
|
10544
|
+
description: Bad request
|
|
10545
|
+
401:
|
|
10546
|
+
description: Unauthorized
|
|
10547
|
+
404:
|
|
10548
|
+
description: Not found
|
|
10549
|
+
requestBody:
|
|
10550
|
+
required: true
|
|
10551
|
+
content:
|
|
10552
|
+
application/json:
|
|
10553
|
+
schema:
|
|
10554
|
+
$ref: "#/components/schemas/ModerateAttestationInput"
|
|
10477
10555
|
/public/collection/{collectionId}/comm/email/register:
|
|
10478
10556
|
post:
|
|
10479
10557
|
tags:
|
|
@@ -11084,6 +11162,11 @@ paths:
|
|
|
11084
11162
|
required: false
|
|
11085
11163
|
schema:
|
|
11086
11164
|
type: string
|
|
11165
|
+
- name: moderationStatus
|
|
11166
|
+
in: query
|
|
11167
|
+
required: false
|
|
11168
|
+
schema:
|
|
11169
|
+
$ref: "#/components/schemas/AttestationModerationStatus"
|
|
11087
11170
|
- name: recordedAfter
|
|
11088
11171
|
in: query
|
|
11089
11172
|
required: false
|
|
@@ -18689,6 +18772,10 @@ components:
|
|
|
18689
18772
|
type: string
|
|
18690
18773
|
authorId:
|
|
18691
18774
|
type: string
|
|
18775
|
+
grantId:
|
|
18776
|
+
type: string
|
|
18777
|
+
moderationStatus:
|
|
18778
|
+
$ref: "#/components/schemas/AttestationModerationStatus"
|
|
18692
18779
|
metadata:
|
|
18693
18780
|
type: object
|
|
18694
18781
|
additionalProperties: true
|
|
@@ -18782,6 +18869,58 @@ components:
|
|
|
18782
18869
|
- subjectType
|
|
18783
18870
|
- subjectId
|
|
18784
18871
|
- attestationType
|
|
18872
|
+
OwnerAttestationInput:
|
|
18873
|
+
type: object
|
|
18874
|
+
properties:
|
|
18875
|
+
subjectType:
|
|
18876
|
+
$ref: "#/components/schemas/AttestationSubjectType"
|
|
18877
|
+
subjectId:
|
|
18878
|
+
type: string
|
|
18879
|
+
attestationType:
|
|
18880
|
+
type: string
|
|
18881
|
+
recordedAt:
|
|
18882
|
+
type: string
|
|
18883
|
+
visibility:
|
|
18884
|
+
type: string
|
|
18885
|
+
enum:
|
|
18886
|
+
- public
|
|
18887
|
+
- owner
|
|
18888
|
+
value:
|
|
18889
|
+
type: object
|
|
18890
|
+
additionalProperties: true
|
|
18891
|
+
ownerData:
|
|
18892
|
+
type: object
|
|
18893
|
+
additionalProperties: true
|
|
18894
|
+
unit:
|
|
18895
|
+
type: string
|
|
18896
|
+
source:
|
|
18897
|
+
type: string
|
|
18898
|
+
metadata:
|
|
18899
|
+
type: object
|
|
18900
|
+
additionalProperties: true
|
|
18901
|
+
guestName:
|
|
18902
|
+
type: string
|
|
18903
|
+
required:
|
|
18904
|
+
- subjectType
|
|
18905
|
+
- subjectId
|
|
18906
|
+
- attestationType
|
|
18907
|
+
ModerateAttestationInput:
|
|
18908
|
+
type: object
|
|
18909
|
+
properties:
|
|
18910
|
+
decision:
|
|
18911
|
+
type: string
|
|
18912
|
+
enum:
|
|
18913
|
+
- approve
|
|
18914
|
+
- reject
|
|
18915
|
+
required:
|
|
18916
|
+
- decision
|
|
18917
|
+
ModerateAttestationResponse:
|
|
18918
|
+
type: object
|
|
18919
|
+
properties:
|
|
18920
|
+
attestation:
|
|
18921
|
+
$ref: "#/components/schemas/Attestation"
|
|
18922
|
+
required:
|
|
18923
|
+
- attestation
|
|
18785
18924
|
ListAttestationsResponse:
|
|
18786
18925
|
type: object
|
|
18787
18926
|
properties:
|
|
@@ -18791,6 +18930,13 @@ components:
|
|
|
18791
18930
|
$ref: "#/components/schemas/Attestation"
|
|
18792
18931
|
required:
|
|
18793
18932
|
- attestations
|
|
18933
|
+
CreateOwnerAttestationResponse:
|
|
18934
|
+
type: object
|
|
18935
|
+
properties:
|
|
18936
|
+
attestation:
|
|
18937
|
+
$ref: "#/components/schemas/Attestation"
|
|
18938
|
+
required:
|
|
18939
|
+
- attestation
|
|
18794
18940
|
PublicListAttestationsResponse:
|
|
18795
18941
|
type: object
|
|
18796
18942
|
properties:
|
|
@@ -18914,6 +19060,8 @@ components:
|
|
|
18914
19060
|
type: string
|
|
18915
19061
|
attestationType:
|
|
18916
19062
|
type: string
|
|
19063
|
+
moderationStatus:
|
|
19064
|
+
$ref: "#/components/schemas/AttestationModerationStatus"
|
|
18917
19065
|
recordedAfter:
|
|
18918
19066
|
type: string
|
|
18919
19067
|
recordedBefore:
|
|
@@ -25761,6 +25909,8 @@ components:
|
|
|
25761
25909
|
type: array
|
|
25762
25910
|
items:
|
|
25763
25911
|
$ref: "#/components/schemas/GrantScope"
|
|
25912
|
+
moderate:
|
|
25913
|
+
type: boolean
|
|
25764
25914
|
audience:
|
|
25765
25915
|
$ref: "#/components/schemas/GrantAudience"
|
|
25766
25916
|
createdBy:
|
|
@@ -25801,6 +25951,8 @@ components:
|
|
|
25801
25951
|
expiresAt:
|
|
25802
25952
|
type: object
|
|
25803
25953
|
additionalProperties: true
|
|
25954
|
+
moderate:
|
|
25955
|
+
type: boolean
|
|
25804
25956
|
required:
|
|
25805
25957
|
- scope
|
|
25806
25958
|
RedeemGrantOptions:
|