-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdated_openapi.yaml
More file actions
8676 lines (8618 loc) · 267 KB
/
updated_openapi.yaml
File metadata and controls
8676 lines (8618 loc) · 267 KB
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
openapi: 3.0.2
info:
version: '1'
title: Dock API
description: |
Dock provides a complete solution for creating and managing verifiable credentials on the blockchain. This includes a free trial and simple, monthly pricing. For more info about [Dock Pricing](https://www.dock.io/pricing). <br />
<br /> 1- Get your first API key after login from [Dock Console API board](https://console.api.dock.io/).
<br />2- Create the `API Key` by switching to test mode, copy and save it to enjoy `free unlimited API calls`.
<br />3- Select the right server in which you have created your API key.
<br /> 4- Now click <b>`Authorize`</b> button, and paste the API key into `accessToken (apiKey)` text box.
<br /> 5- Click again the `Authorize` button to complete authorization process. Click `Close` to execute the API calls.
servers:
- url: https://api-testnet.dock.io
description: Sandbox server (uses test data)
- url: https://api.dock.io
description: Production server (uses live data)
tags:
- name: dids
description: Operations about DIDs
- name: credentials
description: Operations about Credentials
- name: presentations
description: Operations about Presentations and Proof Requests
- name: registries
description: Operations about Registries
- name: revocationStatus
description: Operations about Revocation Status
- name: schemas
description: Operations about Schemas
- name: jobs
description: Operations about Jobs
- name: profiles
description: Operations about Profiles
- name: webhooks
description: Operations about Webhooks
- name: templates
description: Operations about Templates
- name: subaccounts
description: Operations about Subaccounts
- name: teams
description: Operations about Teams
- name: messaging
description: Operations about DIDComm messaging
- name: openid
description: Operations about OpenID
- name: iden3comm
description: Operations about iden3comm
- name: trustRegistries
description: Operations about trust registries
- name: data
description: Operations relating to your own account data
components:
securitySchemes:
rapidAPI:
type: apiKey
in: header
name: X-RapidAPI-Proxy-Secret
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
accessToken:
type: apiKey
in: header
name: DOCK-API-TOKEN
nextAuth:
type: apiKey
in: header
name: CERTS-TOKEN
schemas:
null_type:
title: "OpenAPI 3.0 null-type ref"
description: "for adding nullability to a ref"
enum: [null]
OID4VPRequestCreate:
properties:
withIdToken:
type: boolean
default: false
withRequestURI:
type: boolean
default: false
UserProfile:
required:
- image
- name
properties:
name:
type: string
image:
type: string
TrustRegistryQueryRequest:
type: object
properties:
verifierDID:
$ref: '#/components/schemas/DID'
issuerDID:
$ref: '#/components/schemas/DID'
schema:
type: string
TrustRegistryCreateRequest:
type: object
required:
- convener
- name
- description
- logoUrl
- ecosystemUrl
- governanceFramework
- governanceFrameworkVersion
properties:
convener:
$ref: '#/components/schemas/DID'
name:
type: string
description: Trust registry name
example: 'Dock Example Ecosystem'
description:
type: string
description: Trust registry description
example: 'Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.'
logoUrl:
type: string
format: uri
minimum: 8
example: https://logo.dock.io/trust-registry
ecosystemUrl:
type: string
format: uri
minimum: 8
example: https://ecosystem.dock.io
governanceFramework:
type: string
description: Trust registry governance framework
example: 'Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.'
governanceFrameworkVersion:
type: string
description: Trust registry governance framework version
example: '1.0.0'
TrustRegistryUpdateRequest:
type: object
required:
- name
- description
- logoUrl
- ecosystemUrl
- governanceFramework
- governanceFrameworkVersion
properties:
name:
type: string
description: Trust registry name
example: 'Dock Example Ecosystem'
description:
type: string
description: Trust registry description
example: 'Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.'
logoUrl:
type: string
description: Trust registry logo URL
format: uri
minimum: 8
example: https://logo.dock.io/trust-registry
ecosystemUrl:
type: string
description: Trust registry ecosystem URL
format: uri
minimum: 8
example: https://ecosystem.dock.io
governanceFramework:
type: string
description: Trust registry governance framework
example: 'Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.'
governanceFrameworkVersion:
type: string
description: Trust registry governance framework version
example: '1.0.0'
TrustRegistry:
type: object
required:
- id
- convener
- name
- description
- created
- logoUrl
- ecosystemUrl
- governanceFramework
- governanceFrameworkVersion
properties:
id:
type: string
description: Trust registry ID
example: '0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d'
convener:
$ref: '#/components/schemas/DID'
convenerName:
type: string
description: Convener name
example: 'Dock'
convenerLogoUrl:
type: string
description: Convener logo URL
example: 'https://logo.dock.io/convener'
slug:
type: string
description: Trust registry slug
example: 'dock-example-ecosystem-1'
nonce:
type: string
description: Trust registry nonce
example: '0x57aecb3863404812'
created:
type: string
format: date-time
name:
type: string
description: Trust registry name
example: 'Dock Example Ecosystem'
description:
type: string
description: Trust registry description
example: 'Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.'
logoUrl:
type: string
description: Trust registry logo URL
format: uri
minimum: 8
example: https://logo.dock.io/trust-registry
ecosystemUrl:
type: string
description: Trust registry ecosystem URL
format: uri
minimum: 8
example: https://ecosystem.dock.io
governanceFramework:
type: string
description: Trust registry governance framework
example: 'Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.'
governanceFrameworkVersion:
type: string
description: Trust registry governance framework version
example: '1.0.0'
issuerCount:
type: integer
description: Trust registry issuer count
example: 10
verifierCount:
type: integer
description: Trust registry verifier count
example: 5
TrustRegistries:
type: array
items:
$ref: '#/components/schemas/TrustRegistry'
TrustRegistryInviteAcceptRequest:
type: object
required:
- token
- did
- infoUrl
properties:
token:
type: string
description: The invite token
example: 'eyJhbGc...2VVqUw'
did:
$ref: '#/components/schemas/DID'
infoUrl:
anyOf:
- type: string
description: Trust registry participant info URL
format: uri
minimum: 8
- type: string
description: Trust registry participant info URL
enum: [""]
example: https://info.dock.io/trust-registry/participant/1234
TrustRegistryInviteRequest:
type: object
properties:
maxAge:
type: integer
description: Max age of the invite in seconds
issuerSchemas:
type: array
items:
type: string
description: Trust registry issuer schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
verifierSchemas:
type: array
items:
type: string
description: Trust registry verifier schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
TrustRegistryInviteResponse:
type: object
required:
- link
properties:
link:
type: string
description: The trust registry invite link
example: 'https://trust-registry.dock.io/ecosystems?token=eyJhbGc...2VVqUw'
TrustRegistryParticipant:
type: object
required:
- id
- name
- did
- logoUrl
properties:
id:
type: string
description: Trust registry participant ID
example: '23314808-eec6-4492-9a8a-8f32e34b8155'
name:
type: string
description: Trust registry participant name
example: 'Dock Issuer'
did:
$ref: '#/components/schemas/DID'
description:
type: string
description: Trust registry participant description
example: 'Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.'
logoUrl:
type: string
description: Trust registry participant logo URL
format: uri
minimum: 8
example: 'https://logo.dock.io/participant'
infoUrl:
anyOf:
- type: string
description: Trust registry participant info URL
format: uri
minimum: 8
- type: string
description: Trust registry participant info URL
enum: [""]
example: https://info.dock.io/trust-registry/participant/1234
status:
type: string
description: Trust registry participant status
example: 'active'
enum: [active, suspended]
role:
type: string
description: Trust registry participant role
example: 'issuer'
enum: [verifier+issuer, issuer, verifier]
created:
type: string
format: date-time
suspendedAt:
type: string
issuerSchemas:
type: array
items:
type: string
description: Trust registry participant issuer schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
verifierSchemas:
type: array
items:
type: string
description: Trust registry participant verifier schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
TrustRegistryParticipantPatch:
type: object
properties:
name:
type: string
description: Trust registry participant name
example: 'Dock Issuer'
logoUrl:
type: string
description: Trust registry participant logo URL
format: uri
minimum: 8
example: https://logo.dock.io/trust-registry-participant/1234
infoUrl:
anyOf:
- type: string
description: Trust registry participant info URL
format: uri
minimum: 8
- type: string
description: Trust registry participant info URL
enum: [""]
example: https://info.dock.io/trust-registry/participant/1234
status:
type: string
description: Trust registry participant status
example: 'active'
enum: [active, suspended]
suspendedAt:
type: string
issuerSchemas:
type: array
items:
type: string
description: Trust registry participant issuer schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
verifierSchemas:
type: array
items:
type: string
description: Trust registry participant verifier schema
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
TrustRegistryParticipantInfoPatch:
type: object
properties:
infoUrl:
anyOf:
- type: string
description: Trust registry participant info URL
format: uri
minimum: 8
- type: string
description: Trust registry participant info URL
enum: [""]
example: https://info.dock.io/trust-registry/participant/1234
TrustRegistryParticipants:
type: object
required:
- total
- list
properties:
total:
type: integer
description: Total number of participants
example: 42
list:
type: array
items:
$ref: '#/components/schemas/TrustRegistryParticipant'
TrustRegistrySchema:
type: object
required:
- id
- name
- participantCount
- topParticipants
- public
properties:
id:
type: string
description: Trust registry schema ID
example: 'https://schema.dock.io/ExampleSchema-V5-1722512884923.json'
name:
type: string
description: Trust registry schema name
example: 'Example Schema'
public:
type: boolean
description: Whether the schema is currently public (i.e. can be verified by anyone).
participantCount:
type: integer
description: How many participants have this schema assigned
example: 10
prices:
type: array
description: Prices assigned to this schema
items:
$ref: '#/components/schemas/TrustRegistrySchemaPrice'
topParticipants:
type: array
description: Top participants that have this schema assigned
items:
$ref: '#/components/schemas/TrustRegistryParticipant'
TrustRegistrySchemaPrice:
type: object
required:
- currency
- digits
properties:
currency:
type: string
description: Currency code
example: USD
digits:
description: Bigint representation of the price. Multiply by 1,000,000 to support fractional cents.
oneOf:
- type: integer
- type: string
example: 100000000
verifier:
$ref: '#/components/schemas/DID'
TrustRegistryReport:
type: object
required:
- verifierDID
- issuerDID
- schemaId
- currency
- verifierFee
- vendorFee
- created
properties:
trustRegistryId:
description: Trust registry ID
type: string
example: '0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d'
verificationId:
description: Verification ID
type: string
example: 798e9e9f-9a73-4bd3-881f-367e1d1c70ee
verificationTemplateId:
description: Verification Template ID
type: string
example: d0194072-b706-485d-bc5a-02a433641f63
isValid:
description: Was the verification successful with valid credentials
type: boolean
example: true
verifierDID:
$ref: '#/components/schemas/DID'
issuerDID:
$ref: '#/components/schemas/DID'
schemaId:
description: Schema ID
type: string
example: https://schema.dock.io/ExampleSchema-V5-1722512884923.json
currency:
description: Currency code
type: string
example: USD
verifierFee:
description: Verifier fee
type: string
example: 123456
vendorFee:
description: Vendor fee
type: string
example: 6172
created:
type: string
format: date-time
TrustRegistryReports:
type: object
required:
- total
- list
properties:
total:
type: integer
list:
type: array
items:
$ref: '#/components/schemas/TrustRegistryReport'
TrustRegistrySchemas:
type: object
required:
- total
- list
properties:
total:
type: integer
description: Total number of schemas
example: 200
list:
type: array
items:
$ref: '#/components/schemas/TrustRegistrySchema'
TrustRegistryProofTemplateAssignRequest:
type: object
required:
- id
properties:
id:
type: string
description: The proof template ID
example: a6cd414a-6eba-4241-9a9c-6f75864edbd5
TrustRegistryProofTemplates:
type: object
required:
- total
- list
properties:
total:
type: integer
description: Total number of proof templates
example: 200
list:
type: array
items:
$ref: '#/components/schemas/ProofRequest'
TrustRegistryPublic:
type: object
required:
- id
- name
- logoUrl
- ecosystemUrl
properties:
id:
type: string
description: The unique identifier for the ecosystem, usually a hash value.
example: '0xe7e0f253c5f05059904109e33fb63b104edddd7e114a8746a5faf07a944d58aa'
slug:
type: string
description: A human-readable identifier for the ecosystem, used as a URL path or reference name.
example: 'dock-ecosystem-419'
convener:
type: string
description: The DID of the convener or owner of the ecosystem, responsible for its management.
example: 'did:dock:5DTD...FKc43'
created:
type: string
format: date-time
description: The date and time when the ecosystem was created.
example: '2024-09-26T13:18:51.534Z'
name:
type: string
description: The name of the ecosystem.
example: 'Dock Ecosystem'
description:
type: string
description: A brief description of the ecosystem.
example: 'This is my new awesome ecosystem!'
logoUrl:
type: string
format: uri
minimum: 8
description: A URL pointing to the logo image of the ecosystem.
example: https://logo.dock.io/trust-registry
ecosystemUrl:
type: string
format: uri
minimum: 8
description: The main website URL of the ecosystem.
example: https://ecosystem.dock.io
governanceFramework:
type: string
description: A markdown document describing the governance framework of the ecosystem.
example: 'This is a markdown document describing my framework'
governanceFrameworkVersion:
type: string
description: The version of the governance framework.
example: '1.0.0'
participantRole:
type: string
description: The role of the participant within the ecosystem, such as 'verifier' or 'issuer'.
example: 'verifier'
participantStatus:
type: string
description: The current status of the participant in the ecosystem.
example: 'active'
participantName:
type: string
description: The name of the participant in the ecosystem.
example: 'My Convener'
participantLogoUrl:
type: string
format: uri
minimum: 8
description: A URL pointing to the logo image of the participant.
example: https://logo.com/participant
participantInfoUrl:
anyOf:
- type: string
format: uri
minimum: 8
description: A URL providing additional information about the participant.
example: https://participant.dock.io
- type: string
enum: [""]
TrustRegistryPublicList:
type: object
required:
- total
- list
properties:
total:
type: integer
list:
type: array
items:
$ref: '#/components/schemas/TrustRegistryPublic'
TrustRegistryGenericSchemaPrice:
type: object
required:
- currency
- digits
- trustRegistryId
- trustRegistryMetadata
properties:
currency:
type: string
description: Currency code
example: USD
digits:
description: Bigint representation of the price. Multiply by 1,000,000 to support fractional cents.
oneOf:
- type: integer
- type: string
example: 100000000
trustRegistryId:
description: Trust registry ID
type: string
example: '0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d'
trustRegistryMetadata:
type: object
description: Trust registry metadata
properties:
name:
type: string
description: Trust registry name
example: Example Trust Registry
logoUrl:
type: string
description: Trust registry logo URL
format: uri
minimum: 8
example: https://logo.dock.io/trust-registry
description:
type: string
description: Trust registry description
example: Example Trust Registry Description
ecosystemUrl:
type: string
description: Trust registry ecosystem URL
format: uri
minimum: 8
example: https://ecosystem.dock.io
governanceFramework:
type: string
description: Trust registry governance framework
example: Example Governance Framework
governanceFrameworkVersion:
type: string
description: Trust registry governance framework version
example: 1.0
ListOfDIDs:
description: List of DID strings
type: array
items:
type: string
TrustRegistryGenericSchemaPrices:
description: Trust registry schema prices
type: array
items:
type: object
properties:
schema:
type: string
description: The schema ID
example: https://schema.dock.io/ExampleSchema-V5-1722512884923.json
prices:
type: array
items:
$ref: '#/components/schemas/TrustRegistryGenericSchemaPrice'
TrustRegistryGenericSchemaDids:
description: Trust registry schema dids
type: array
items:
type: object
properties:
schema:
type: string
description: The schema ID
example: https://schema.dock.io/ExampleSchema-V5-1722512884923.json
dids:
type: array
items:
$ref: '#/components/schemas/DID'
CredentialIssueRequest:
type: object
required:
- credential
properties:
persist:
type: boolean
default: false
description: Whether to persist this credential in our systems, giving it its own web page and import options
example: true
password:
type: string
maxLength: 32
minLength: 4
description: Password to encrypt this credential with, required if persist is set to true
example: "securepass"
anchor:
type: boolean
default: false
description: Anchor the credential on the blockchain or not
example: false
deprecated: true
template:
type: string
format: uuid
description: The credential template UUID, only required for PDF and web rendering customization
example: ""
recipientEmail:
type: string
description: The holder's email for email distribution, optional. Not required for OpenID flows.
example: ""
algorithm:
type: string
default: ed25519
maxLength: 32
minLength: 4
description: Optional credential signing algorithm parameter, such as dockbbs. Will create valid DID key if doesn't exist already.
example: "dockbbs"
distribute:
type: boolean
default: false
description: Whether to distribute the credential or not based on subject DID or email address. Not required for OpenID flows.
example: false
format:
type: string
enum: [jsonld, jwt]
description: Optional credential format parameter, options are jsonld and jwt
example: "jsonld"
credential:
$ref: '#/components/schemas/Credential'
Error:
description: An API Error
type: object
properties:
status:
type: integer
type:
type: string
message:
type: string
Hex32:
description: 32 byte hex string. Ignoring higher base (base64) for simplicity.
type: string
minimum: 64
maximum: 64
JobStartedResult:
description: Object containing unique id of the background task and associated data. This id can be used to query the job status
properties:
id:
type: string
data:
type: object
JobId:
description: Unique id of the background task. This id can be used to query the job status
type: string
example: '900'
JobStatus:
description: Status of the job.
type: string
enum: [todo, finalized, in_progress, error]
JobDesc:
description: Description of the job including result if available
properties:
id:
$ref: '#/components/schemas/JobId'
status:
$ref: '#/components/schemas/JobStatus'
result:
type: object
DID:
description: DID as fully qualified, typically. `did:dock:`
type: string
minimum: 32
example: did:dock:xyz
NumericID:
description: A unique numeric ID
type: string
URI:
description: Valid URI
type: string
format: uri
minimum: 8
example: https://credentials.dock.io/1234
KeyType:
description: Type of public key for DID
type: string
enum:
- sr25519
- ed25519
- secp256k1
- bjj
SigType:
description: Type of signature
type: string
enum:
- Sr25519Signature2020
- Ed25519Signature2018
- EcdsaSecp256k1Signature2019
- Bls12381BBS+SignatureDock2022
- Bls12381BBS+SignatureProofDock2022
- Bls12381BBDT16MACDock2024
- Bls12381BBSSignatureDock2023
- Bls12381BBSVerificationKeyDock2023
- BJJSignature2021
ProofPurpose:
description: Purpose of credential
type: string
enum:
- assertionMethod
- authentication
Context:
description: JSON-LD context array of strings or single string
example: "https://docknetwork.github.io/vc-schemas/basic-credential.json-ld"
oneOf:
- type: array
items:
oneOf:
- type: string
- type: object
- type: string
DIDDoc:
description: A DID Document containing information about a decentralized identifier (DID) and its associated entities.
type: object
properties:
"@context":
$ref: '#/components/schemas/Context'
id:
$ref: '#/components/schemas/DID'
authentication:
type: array
description: Array of verification methods used for authentication.
items:
oneOf:
- type: object
- type: string
example:
- 'did:dock:5DEH...9Luk#keys-1'
assertionMethod:
type: array
description: Array of verification methods used for assertion.
items:
oneOf:
- type: object
- type: string
example:
- 'did:dock:5DEH...9Luk#keys-1'
capabilityInvocation:
type: array
description: Array of verification methods used for capability invocation.
items:
oneOf:
- type: object
- type: string
example:
- 'did:dock:5DEH...9Luk#keys-1'
publicKey:
type: array
description: Array of public keys associated with the DID document.
items:
type: object
properties:
id:
type: string
description: The unique identifier for the public key.
example: 'did:dock:5DEH...9Luk#keys-1'
type:
type: string
description: The type of the public key.
example: 'Sr25519VerificationKey2020'
controller:
type: string
description: The DID that controls the key.
example: 'did:dock:5DEH...9Luk'
publicKeyBase58:
type: string
description: The public key encoded in base58 format.
example: 'Cs8XUWkpkscPhEVCsUAicLqd8pL2MoGqahywfRhbtVEi'
DIDsResponse:
description: Response containing a list of DIDs
type: array
items:
type: object
properties:
id:
$ref: '#/components/schemas/DID'
did:
$ref: '#/components/schemas/DID'
type:
type: string
description: The type of DID, indicating the network or method used.
enum:
- dock
- key
- polygonid
example: 'dock'
controller:
description: The controller of the DID, who has authority over it.
$ref: '#/components/schemas/DID'
credentialCount:
type: string
description: The number of credentials issued by this DID.
example: '0'
updatedLast:
type: string
format: date-time
description: The timestamp of the last update to the DID metadata.
example: '2024-09-26T12:38:10.871Z'
profile:
description: Additional profile information associated with the DID, such as a public profile or other descriptive metadata.
type: object
nullable: true