forked from TBD54566975/ssi-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
4416 lines (4416 loc) · 132 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
definitions:
credential.CredentialSchema:
properties:
digestSRI:
type: string
id:
type: string
type:
type: string
required:
- id
- type
type: object
credential.CredentialSubject:
additionalProperties: {}
type: object
credential.Prohibition:
properties:
action:
items:
type: string
type: array
assignee:
type: string
assigner:
type: string
target:
type: string
type: object
credential.RefreshService:
properties:
id:
type: string
type:
type: string
required:
- id
- type
type: object
credential.TermsOfUse:
properties:
id:
type: string
profile:
type: string
prohibition:
items:
$ref: '#/definitions/credential.Prohibition'
type: array
type:
type: string
type: object
credential.VerifiableCredential:
properties:
'@context':
description: Either a string or set of strings
credentialSchema:
$ref: '#/definitions/credential.CredentialSchema'
credentialStatus: {}
credentialSubject:
allOf:
- $ref: '#/definitions/credential.CredentialSubject'
description: This is where the subject's ID *may* be present
evidence:
items: {}
type: array
expirationDate:
type: string
id:
type: string
issuanceDate:
description: https://www.w3.org/TR/xmlschema11-2/#dateTimes
type: string
issuer:
description: either a URI or an object containing an `id` property.
proof:
description: |-
For embedded proof support
Proof is a digital signature over a credential https://www.w3.org/TR/2021/REC-vc-data-model-20211109/#proofs-signatures
refreshService:
$ref: '#/definitions/credential.RefreshService'
termsOfUse:
items:
$ref: '#/definitions/credential.TermsOfUse'
type: array
type:
description: Either a string or a set of strings https://www.w3.org/TR/2021/REC-vc-data-model-20211109/#types
required:
- '@context'
- credentialSubject
- issuanceDate
- issuer
- type
type: object
credential.VerifiablePresentation:
properties:
'@context':
description: Either a string or set of strings
holder:
type: string
id:
type: string
presentation_submission:
description: an optional field as a part of https://identity.foundation/presentation-exchange/#embed-targets
proof: {}
type: {}
verifiableCredential:
description: Verifiable credential could be our object model, a JWT, or any
other valid credential representation
items: {}
type: array
required:
- type
type: object
crypto.KeyType:
enum:
- Ed25519
- X25519
- secp256k1
- secp256k1-ECDSA
- P-224
- P-256
- P-384
- P-521
- RSA
- BLS12381G1
- BLS12381G2
- Dilithium2
- Dilithium3
- Dilithium5
type: string
x-enum-varnames:
- Ed25519
- X25519
- SECP256k1
- SECP256k1ECDSA
- P224
- P256
- P384
- P521
- RSA
- BLS12381G1
- BLS12381G2
- Dilithium2
- Dilithium3
- Dilithium5
crypto.SignatureAlgorithm:
enum:
- EdDSA
- ES256K
- ES256
- ES384
- PS256
- Dilithium2
- Dilithium3
- Dilithium5
type: string
x-enum-varnames:
- EdDSA
- ES256K
- ES256
- ES384
- PS256
- Dilithium2Sig
- Dilithium3Sig
- Dilithium5Sig
did.Document:
properties:
'@context': {}
alsoKnownAs:
type: string
assertionMethod:
items: {}
type: array
authentication:
items: {}
type: array
capabilityDelegation:
items: {}
type: array
capabilityInvocation:
items: {}
type: array
controller:
type: string
id:
description: |-
As per https://www.w3.org/TR/did-core/#did-subject intermediate representations of DID Documents do not
require an ID property. The provided test vectors demonstrate IRs. As such, the property is optional.
type: string
keyAgreement:
items: {}
type: array
service:
items:
$ref: '#/definitions/github_com_TBD54566975_ssi-sdk_did.Service'
type: array
verificationMethod:
items:
$ref: '#/definitions/did.VerificationMethod'
type: array
type: object
did.Method:
enum:
- key
- peer
- pkh
- web
- ion
- jwk
type: string
x-enum-varnames:
- KeyMethod
- PeerMethod
- PKHMethod
- WebMethod
- IONMethod
- JWKMethod
did.PublicKeyPurpose:
enum:
- authentication
- assertionMethod
- capabilityInvocation
- capabilityDelegation
- keyAgreement
type: string
x-enum-varnames:
- Authentication
- AssertionMethod
- CapabilityInvocation
- CapabilityDelegation
- KeyAgreement
did.VerificationMethod:
properties:
blockchainAccountId:
description: for PKH DIDs - https://github.com/w3c-ccg/did-pkh/blob/90b28ad3c18d63822a8aab3c752302aa64fc9382/did-pkh-method-draft.md
type: string
controller:
type: string
id:
type: string
publicKeyBase58:
type: string
publicKeyJwk:
allOf:
- $ref: '#/definitions/jwx.PublicKeyJWK'
description: must conform to https://datatracker.ietf.org/doc/html/rfc7517
publicKeyMultibase:
description: https://datatracker.ietf.org/doc/html/draft-multiformats-multibase-03
type: string
type:
type: string
required:
- controller
- id
- type
type: object
exchange.ClaimFormat:
properties:
jwt:
$ref: '#/definitions/exchange.JWTType'
jwt_vc:
$ref: '#/definitions/exchange.JWTType'
jwt_vp:
$ref: '#/definitions/exchange.JWTType'
ldp:
$ref: '#/definitions/exchange.LDPType'
ldp_vc:
$ref: '#/definitions/exchange.LDPType'
ldp_vp:
$ref: '#/definitions/exchange.LDPType'
type: object
exchange.Constraints:
properties:
fields:
items:
$ref: '#/definitions/exchange.Field'
type: array
is_holder:
items:
$ref: '#/definitions/exchange.RelationalConstraint'
type: array
limit_disclosure:
$ref: '#/definitions/exchange.Preference'
same_subject:
items:
$ref: '#/definitions/exchange.RelationalConstraint'
type: array
statuses:
allOf:
- $ref: '#/definitions/exchange.CredentialStatus'
description: https://identity.foundation/presentation-exchange/#credential-status-constraint-feature
subject_is_issuer:
allOf:
- $ref: '#/definitions/exchange.Preference'
description: https://identity.foundation/presentation-exchange/#relational-constraint-feature
type: object
exchange.CredentialStatus:
properties:
active:
properties:
directive:
$ref: '#/definitions/exchange.Preference'
type: object
revoked:
properties:
directive:
$ref: '#/definitions/exchange.Preference'
type: object
suspended:
properties:
directive:
$ref: '#/definitions/exchange.Preference'
type: object
type: object
exchange.Field:
properties:
filter:
$ref: '#/definitions/exchange.Filter'
id:
type: string
intent_to_retain:
description: https://identity.foundation/presentation-exchange/spec/v2.0.0/#retention-feature
type: boolean
name:
type: string
optional:
type: boolean
path:
items:
type: string
type: array
predicate:
allOf:
- $ref: '#/definitions/exchange.Preference'
description: |-
If a predicate property is present, filter must be too
https://identity.foundation/presentation-exchange/#predicate-feature
purpose:
type: string
required:
- path
type: object
exchange.Filter:
properties:
additionalProperties:
type: boolean
allOf: {}
const: {}
enum:
items: {}
type: array
exclusiveMaximum: {}
exclusiveMinimum: {}
format:
type: string
maxLength:
type: integer
maximum: {}
minLength:
type: integer
minimum: {}
not: {}
oneOf: {}
pattern:
type: string
properties: {}
required:
items:
type: string
type: array
type:
type: string
type: object
exchange.InputDescriptor:
properties:
constraints:
$ref: '#/definitions/exchange.Constraints'
format:
$ref: '#/definitions/exchange.ClaimFormat'
group:
description: Must match a grouping strings listed in the `from` values of
a submission requirement rule
items:
type: string
type: array
id:
description: Must be unique within the Presentation Definition
type: string
name:
type: string
purpose:
description: Purpose for which claim's data is being requested
type: string
required:
- constraints
- id
type: object
exchange.JWTType:
properties:
alg:
items:
$ref: '#/definitions/crypto.SignatureAlgorithm'
type: array
required:
- alg
type: object
exchange.LDPType:
properties:
proof_type:
items:
type: string
type: array
required:
- proof_type
type: object
exchange.Preference:
enum:
- required
- preferred
- allowed
- disallowed
type: string
x-enum-varnames:
- Required
- Preferred
- Allowed
- Disallowed
exchange.PresentationDefinition:
properties:
format:
$ref: '#/definitions/exchange.ClaimFormat'
frame:
description: https://identity.foundation/presentation-exchange/#json-ld-framing-feature
id:
type: string
input_descriptors:
items:
$ref: '#/definitions/exchange.InputDescriptor'
type: array
name:
type: string
purpose:
type: string
submission_requirements:
items:
$ref: '#/definitions/exchange.SubmissionRequirement'
type: array
required:
- id
- input_descriptors
type: object
exchange.PresentationSubmission:
properties:
definition_id:
type: string
descriptor_map:
items:
$ref: '#/definitions/exchange.SubmissionDescriptor'
type: array
id:
type: string
required:
- definition_id
- descriptor_map
- id
type: object
exchange.RelationalConstraint:
properties:
directive:
$ref: '#/definitions/exchange.Preference'
field_id:
items:
type: string
type: array
required:
- directive
- field_id
type: object
exchange.Selection:
enum:
- all
- pick
type: string
x-enum-varnames:
- All
- Pick
exchange.SubmissionDescriptor:
properties:
format:
type: string
id:
description: Must match the `id` property of the corresponding input descriptor
type: string
path:
type: string
path_nested:
$ref: '#/definitions/exchange.SubmissionDescriptor'
required:
- format
- id
- path
type: object
exchange.SubmissionRequirement:
properties:
count:
minimum: 1
type: integer
from:
type: string
from_nested:
items:
$ref: '#/definitions/exchange.SubmissionRequirement'
type: array
max:
type: integer
min:
type: integer
name:
type: string
purpose:
type: string
rule:
$ref: '#/definitions/exchange.Selection'
required:
- rule
type: object
github_com_TBD54566975_ssi-sdk_did.Service:
properties:
accept:
items:
type: string
type: array
id:
type: string
routingKeys:
items:
type: string
type: array
serviceEndpoint:
description: |-
A string, map, or set composed of one or more strings and/or maps
All string values must be valid URIs
type:
type: string
required:
- id
- serviceEndpoint
- type
type: object
github_com_tbd54566975_ssi-service_internal_credential.Container:
properties:
credential:
allOf:
- $ref: '#/definitions/credential.VerifiableCredential'
description: |-
Verifiable Credential in the `application/vc+ld+json` format. The credential is secured with an external proof
using JWS. In other words, the `proof` field is not present. See `credentialJwt` for the secured Verifiable
Credential.
credentialJwt:
description: |-
JWT representation of `credential`, secured with an external proof. Verification can be done according to
`fullyQualifiedVerificationMethodId`.
type: string
fullyQualifiedVerificationMethodId:
description: |-
Fully qualified verification method ID that can be used to verify the credential. For example
`did:ion:EiDpQBo_nEfuLVeppgmPVQNEhtrnZLWFsB9ziZUuaKCJ3Q#83526c36-136c-423b-a57a-f190b83ae531`.
type: string
id:
description: |-
UUID assigned by the ssi-service. For example, 48958871-6a6d-4a25-889f-88c9c6835780. The `credential.id`
value will be a URL that can be dereferenced, which includes this ID.
type: string
revoked:
description: Whether this credential is currently revoked.
type: boolean
suspended:
description: Whether this credential is currently suspended.
type: boolean
type: object
github_com_tbd54566975_ssi-service_pkg_service_credential.Status:
properties:
id:
description: ID of the credentials whose status this object represents.
type: string
revoked:
type: boolean
suspended:
type: boolean
required:
- revoked
- suspended
type: object
github_com_tbd54566975_ssi-service_pkg_service_did.CreateIONDIDOptions:
properties:
jwsPublicKeys:
description: |-
List of JSON Web Signatures serialized using compact serialization. The payload must be a JSON object that
represents a publicKey object. Such object must follow the schema described in step 3 of
https://identity.foundation/sidetree/spec/#add-public-keys. The payload must be signed
with the private key associated with the `publicKeyJwk` that will be added in the DID document.
The input will be parsed and verified, and the payload will be used to add public keys to the DID document in the
same way in which the `add-public-keys` patch action adds keys (see https://identity.foundation/sidetree/spec/#add-public-keys).
items:
type: string
type: array
serviceEndpoints:
description: Services to add to the DID document that will be created.
items:
$ref: '#/definitions/github_com_TBD54566975_ssi-sdk_did.Service'
type: array
type: object
github_com_tbd54566975_ssi-service_pkg_service_framework.Status:
properties:
message:
description: When `status` is `"not_ready"`, message contains an explanation
of why it's not ready.
type: string
status:
allOf:
- $ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_framework.StatusState'
description: Enum of the status.
type: object
github_com_tbd54566975_ssi-service_pkg_service_framework.StatusState:
enum:
- ready
- not_ready
type: string
x-enum-varnames:
- StatusReady
- StatusNotReady
github_com_tbd54566975_ssi-service_pkg_service_issuance.ClaimTemplates:
additionalProperties: {}
type: object
github_com_tbd54566975_ssi-service_pkg_service_issuance.CredentialTemplate:
properties:
credentialInputDescriptor:
description: |-
Optional.
When present, it's the ID of the input descriptor in the application. Corresponds to one of the
PresentationDefinition.InputDescriptors[].ID in the credential manifest. When creating a credential, the base
data will be populated from the provided submission that matches this ID.
When absent, there will be no base data for the credentials created. Additionally, no JSON path strings in
ClaimTemplates.Data will be resolved.
type: string
data:
allOf:
- $ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_issuance.ClaimTemplates'
description: |-
Data that will be used to determine credential claims.
Values may be json path like strings, or any other JSON primitive. Each entry will be used to come up with a
claim about the credentialSubject in the credential that will be issued.
expiry:
allOf:
- $ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_issuance.TimeLike'
description: Parameter to determine the expiry of the credential.
id:
description: ID corresponding to an OutputDescriptor.ID from the manifest.
type: string
revocable:
description: Whether the credentials created should be revocable.
type: boolean
schema:
description: ID of the CredentialSchema to be used for the issued credential.
type: string
type: object
github_com_tbd54566975_ssi-service_pkg_service_issuance.Template:
properties:
credentialManifest:
description: ID of the credential manifest that this template corresponds
to.
type: string
credentials:
description: Info required to create a credential from a credential application.
items:
$ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_issuance.CredentialTemplate'
type: array
id:
description: ID of this template.
type: string
issuer:
description: ID of the issuer that will be issuing the credentials.
type: string
verificationMethodId:
description: |-
The id of the verificationMethod (see https://www.w3.org/TR/did-core/#verification-methods) who's privateKey is
stored in ssi-service. The verificationMethod must be part of the did document associated with `issuer`.
The private key associated with the verificationMethod's publicKey will be used to sign the credentials.
example: did:key:z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3#z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3
type: string
required:
- credentialManifest
- issuer
- verificationMethodId
type: object
github_com_tbd54566975_ssi-service_pkg_service_issuance.TimeLike:
properties:
duration:
allOf:
- $ref: '#/definitions/time.Duration'
description: For a fixed offset from when it was issued.
time:
description: For fixed time in the future.
type: string
type: object
github_com_tbd54566975_ssi-service_pkg_service_manifest_model.CredentialOverride:
properties:
data:
additionalProperties: {}
description: Data that will be used to determine credential claims.
type: object
expiry:
description: Parameter to determine the expiry of the credential.
type: string
revocable:
description: Whether the credentials created should be revocable.
type: boolean
type: object
github_com_tbd54566975_ssi-service_pkg_service_manifest_model.Request:
properties:
audience:
description: Audience as defined in https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.3.
items:
type: string
type: array
callbackUrl:
description: |-
The URL that the presenter should be submitting the presentation submission to.
Optional.
example: https://example.com
type: string
credentialManifestJwt:
description: |-
CredentialManifestJWT is a JWT token with a "presentation_definition" claim and an optional "callbackUrl" claim
within it. The value of the field named "presentation_definition.id" matches PresentationDefinitionID.
This is an output only field.
type: string
expiration:
description: Expiration as defined in https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.4
type: string
id:
description: |-
ID for this request. It matches the "jti" claim in the JWT.
This is an output only field.
type: string
issuerId:
description: DID of the issuer of this presentation definition.
type: string
manifestId:
description: ID of the credential manifest used for this request.
type: string
verificationMethodId:
description: |-
The id of the verificationMethod (see https://www.w3.org/TR/did-core/#verification-methods) who's privateKey is
stored in ssi-service. The verificationMethod must be part of the did document associated with `issuer`.
The private key associated with the verificationMethod's publicKey will be used to sign the JWT.
example: did:key:z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3#z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3
type: string
required:
- issuerId
- manifestId
- verificationMethodId
type: object
github_com_tbd54566975_ssi-service_pkg_service_presentation_model.Request:
properties:
audience:
description: Audience as defined in https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.3.
items:
type: string
type: array
callbackUrl:
description: |-
The URL that the presenter should be submitting the presentation submission to.
Optional.
example: https://example.com
type: string
expiration:
description: Expiration as defined in https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.4
type: string
id:
description: |-
ID for this request. It matches the "jti" claim in the JWT.
This is an output only field.
type: string
issuerId:
description: DID of the issuer of this presentation definition.
type: string
presentationDefinitionId:
description: ID of the presentation definition used for this request.
type: string
presentationRequestJwt:
description: |-
PresentationDefinitionJWT is a JWT token with a "presentation_definition" claim and an optional "callbackUrl" claim
within it. The value of the field named "presentation_definition.id" matches PresentationDefinitionID.
This is an output only field.
type: string
verificationMethodId:
description: |-
The id of the verificationMethod (see https://www.w3.org/TR/did-core/#verification-methods) who's privateKey is
stored in ssi-service. The verificationMethod must be part of the did document associated with `issuer`.
The private key associated with the verificationMethod's publicKey will be used to sign the JWT.
example: did:key:z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3#z6MkkZDjunoN4gyPMx5TSy7Mfzw22D2RZQZUcx46bii53Ex3
type: string
required:
- issuerId
- presentationDefinitionId
- verificationMethodId
type: object
github_com_tbd54566975_ssi-service_pkg_service_presentation_model.Submission:
properties:
reason:
description: The reason why the submission was approved or denied.
type: string
status:
description: One of {`pending`, `approved`, `denied`, `cancelled`}.
type: string
verifiablePresentation:
allOf:
- $ref: '#/definitions/credential.VerifiablePresentation'
description: The verifiable presentation containing the presentation_submission
along with the credentials presented.
required:
- status
type: object
github_com_tbd54566975_ssi-service_pkg_service_webhook.GetSupportedNounsResponse:
properties:
nouns:
items:
$ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_webhook.Noun'
type: array
type: object
github_com_tbd54566975_ssi-service_pkg_service_webhook.GetSupportedVerbsResponse:
properties:
verbs:
items:
$ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_webhook.Verb'
type: array
type: object
github_com_tbd54566975_ssi-service_pkg_service_webhook.Noun:
enum:
- Credential
- DID
- Manifest
- SchemaID
- Presentation
- Application
- Submission
type: string
x-enum-varnames:
- Credential
- DID
- Manifest
- Schema
- Presentation
- Application
- Submission
github_com_tbd54566975_ssi-service_pkg_service_webhook.Verb:
enum:
- BatchCreate
- Create
- Delete
type: string
x-enum-varnames:
- BatchCreate
- Create
- Delete
github_com_tbd54566975_ssi-service_pkg_service_webhook.Webhook:
properties:
noun:
$ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_webhook.Noun'
urls:
items:
type: string
type: array
verb:
$ref: '#/definitions/github_com_tbd54566975_ssi-service_pkg_service_webhook.Verb'
required:
- noun
- urls
- verb
type: object
github_com_tbd54566975_ssi-service_pkg_service_well-known.VerifyDIDConfigurationRequest:
properties:
origin:
description: |-
Represents an origin to fetch the DID Configuration Resource from. Must be serialized as described in https://html.spec.whatwg.org/multipage/browsers.html#origin.
The `scheme` MUST be `https`.
example: https://example.com
type: string
required:
- origin
type: object
github_com_tbd54566975_ssi-service_pkg_service_well-known.VerifyDIDConfigurationResponse:
properties:
didConfiguration:
description: The configuration that was fetched from the origin's well known
location.
type: string
reason:
description: When Verified == false, the reason why it wasn't verified.
type: string
verified:
description: Whether the DIDConfiguration was verified.
type: boolean
type: object
ion.PublicKey:
properties:
id:
type: string
publicKeyJwk:
$ref: '#/definitions/jwx.PublicKeyJWK'
purposes:
items:
$ref: '#/definitions/did.PublicKeyPurpose'
type: array
type:
type: string
type: object
jwx.PublicKeyJWK:
properties:
alg:
type: string
crv:
type: string
e:
type: string
key_ops:
type: string
kid:
type: string
kty:
type: string
"n":
type: string
use:
type: string
x:
type: string
"y":
type: string
required:
- kty
type: object
manifest.CredentialApplication:
properties:
applicant:
type: string
format:
$ref: '#/definitions/exchange.ClaimFormat'
id:
type: string
manifest_id:
type: string
presentation_submission:
allOf:
- $ref: '#/definitions/exchange.PresentationSubmission'
description: Must be present if the corresponding manifest contains a presentation_definition
spec_version:
type: string
required:
- applicant
- format
- id
- manifest_id
- spec_version
type: object
manifest.CredentialManifest:
properties:
description:
type: string
format:
$ref: '#/definitions/exchange.ClaimFormat'
id:
type: string
issuer:
$ref: '#/definitions/manifest.Issuer'
name:
type: string
output_descriptors:
items:
$ref: '#/definitions/manifest.OutputDescriptor'
type: array
presentation_definition:
$ref: '#/definitions/exchange.PresentationDefinition'
spec_version:
type: string
required:
- id
- issuer
- output_descriptors
- spec_version
type: object
manifest.CredentialResponse:
properties:
applicant:
type: string
application_id:
type: string
denial: