@twin.org/node 0.0.3-next.33 → 0.0.3-next.34
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/locales/en.json +32 -12
- package/docs/changelog.md +211 -197
- package/docs/deployment-ec2.md +1 -1
- package/docs/open-api/spec.json +690 -643
- package/docs/usage.md +6 -0
- package/package.json +2 -2
package/docs/open-api/spec.json
CHANGED
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"name": "Info",
|
|
20
20
|
"description": "Information endpoints for the REST server."
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Health",
|
|
24
|
+
"description": "Health endpoints for the REST server."
|
|
25
|
+
},
|
|
22
26
|
{
|
|
23
27
|
"name": "Authentication",
|
|
24
28
|
"description": "Authentication endpoints for the REST server."
|
|
@@ -123,34 +127,72 @@
|
|
|
123
127
|
"paths": {
|
|
124
128
|
"/": {
|
|
125
129
|
"get": {
|
|
126
|
-
"operationId": "
|
|
127
|
-
"summary": "Get the
|
|
130
|
+
"operationId": "serverHealth",
|
|
131
|
+
"summary": "Get the health for the server",
|
|
128
132
|
"tags": [
|
|
129
|
-
"
|
|
133
|
+
"Health"
|
|
130
134
|
],
|
|
131
135
|
"responses": {
|
|
132
136
|
"200": {
|
|
133
|
-
"description": "The
|
|
137
|
+
"description": "The health of the server.",
|
|
134
138
|
"content": {
|
|
135
|
-
"
|
|
139
|
+
"application/json": {
|
|
136
140
|
"schema": {
|
|
137
|
-
"$ref": "#/components/schemas/
|
|
141
|
+
"$ref": "#/components/schemas/ServerHealthResponse"
|
|
138
142
|
},
|
|
139
143
|
"examples": {
|
|
140
|
-
"
|
|
141
|
-
"summary": "The response for the
|
|
142
|
-
"value":
|
|
144
|
+
"healthResponseOK": {
|
|
145
|
+
"summary": "The response for the health request.",
|
|
146
|
+
"value": {
|
|
147
|
+
"status": "ok",
|
|
148
|
+
"components": [
|
|
149
|
+
{
|
|
150
|
+
"name": "Database",
|
|
151
|
+
"status": "ok"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "Storage",
|
|
155
|
+
"status": "ok"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"healthResponseWarning": {
|
|
161
|
+
"summary": "The response for the health request with warnings.",
|
|
162
|
+
"value": {
|
|
163
|
+
"status": "warning",
|
|
164
|
+
"components": [
|
|
165
|
+
{
|
|
166
|
+
"name": "Database",
|
|
167
|
+
"status": "warning",
|
|
168
|
+
"description": "slowRunning"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "Storage",
|
|
172
|
+
"status": "ok"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"healthResponseError": {
|
|
178
|
+
"summary": "The response for the health request with errors.",
|
|
179
|
+
"value": {
|
|
180
|
+
"status": "error",
|
|
181
|
+
"components": [
|
|
182
|
+
{
|
|
183
|
+
"name": "Database",
|
|
184
|
+
"status": "ok"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "Storage",
|
|
188
|
+
"status": "error",
|
|
189
|
+
"description": "storageFull"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
143
193
|
}
|
|
144
194
|
}
|
|
145
195
|
}
|
|
146
|
-
},
|
|
147
|
-
"headers": {
|
|
148
|
-
"content-type": {
|
|
149
|
-
"schema": {
|
|
150
|
-
"type": "string"
|
|
151
|
-
},
|
|
152
|
-
"description": "e.g. text/plain"
|
|
153
|
-
}
|
|
154
196
|
}
|
|
155
197
|
},
|
|
156
198
|
"400": {
|
|
@@ -342,11 +384,11 @@
|
|
|
342
384
|
"examples": {
|
|
343
385
|
"livezResponseOK": {
|
|
344
386
|
"summary": "The response for the liveness request.",
|
|
345
|
-
"value": "
|
|
387
|
+
"value": "alive"
|
|
346
388
|
},
|
|
347
389
|
"livezResponseFailure": {
|
|
348
390
|
"summary": "The response for the liveness request with errors.",
|
|
349
|
-
"value": "
|
|
391
|
+
"value": "dead"
|
|
350
392
|
}
|
|
351
393
|
}
|
|
352
394
|
}
|
|
@@ -402,74 +444,40 @@
|
|
|
402
444
|
}
|
|
403
445
|
}
|
|
404
446
|
},
|
|
405
|
-
"/
|
|
447
|
+
"/readyz": {
|
|
406
448
|
"get": {
|
|
407
|
-
"operationId": "
|
|
408
|
-
"summary": "Get the
|
|
449
|
+
"operationId": "serverReadyz",
|
|
450
|
+
"summary": "Get the readyz status for the server",
|
|
409
451
|
"tags": [
|
|
410
452
|
"Info"
|
|
411
453
|
],
|
|
412
454
|
"responses": {
|
|
413
455
|
"200": {
|
|
414
|
-
"description": "The
|
|
456
|
+
"description": "The readyz of the server.",
|
|
415
457
|
"content": {
|
|
416
|
-
"
|
|
458
|
+
"text/plain": {
|
|
417
459
|
"schema": {
|
|
418
|
-
"$ref": "#/components/schemas/
|
|
460
|
+
"$ref": "#/components/schemas/ServerReadyzResponse"
|
|
419
461
|
},
|
|
420
462
|
"examples": {
|
|
421
|
-
"
|
|
422
|
-
"summary": "The response for the
|
|
423
|
-
"value":
|
|
424
|
-
"status": "ok",
|
|
425
|
-
"components": [
|
|
426
|
-
{
|
|
427
|
-
"name": "Database",
|
|
428
|
-
"status": "ok"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"name": "Storage",
|
|
432
|
-
"status": "ok"
|
|
433
|
-
}
|
|
434
|
-
]
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
"healthResponseWarning": {
|
|
438
|
-
"summary": "The response for the health request with warnings.",
|
|
439
|
-
"value": {
|
|
440
|
-
"status": "warning",
|
|
441
|
-
"components": [
|
|
442
|
-
{
|
|
443
|
-
"name": "Database",
|
|
444
|
-
"status": "warning",
|
|
445
|
-
"details": "The database is running slow."
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"name": "Storage",
|
|
449
|
-
"status": "ok"
|
|
450
|
-
}
|
|
451
|
-
]
|
|
452
|
-
}
|
|
463
|
+
"readyzResponseOK": {
|
|
464
|
+
"summary": "The response for the readiness request.",
|
|
465
|
+
"value": "ready"
|
|
453
466
|
},
|
|
454
|
-
"
|
|
455
|
-
"summary": "The response for the
|
|
456
|
-
"value":
|
|
457
|
-
"status": "error",
|
|
458
|
-
"components": [
|
|
459
|
-
{
|
|
460
|
-
"name": "Database",
|
|
461
|
-
"status": "ok"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"name": "Storage",
|
|
465
|
-
"status": "error",
|
|
466
|
-
"details": "The storage is full."
|
|
467
|
-
}
|
|
468
|
-
]
|
|
469
|
-
}
|
|
467
|
+
"readyzResponseFailure": {
|
|
468
|
+
"summary": "The response for the readiness request with errors.",
|
|
469
|
+
"value": "not ready"
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
+
},
|
|
474
|
+
"headers": {
|
|
475
|
+
"content-type": {
|
|
476
|
+
"schema": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
},
|
|
479
|
+
"description": "e.g. text/plain"
|
|
480
|
+
}
|
|
473
481
|
}
|
|
474
482
|
},
|
|
475
483
|
"400": {
|
|
@@ -691,24 +699,31 @@
|
|
|
691
699
|
}
|
|
692
700
|
},
|
|
693
701
|
"/authentication/logout": {
|
|
694
|
-
"
|
|
702
|
+
"post": {
|
|
695
703
|
"operationId": "authenticationLogout",
|
|
696
704
|
"summary": "Logout from the server",
|
|
697
705
|
"tags": [
|
|
698
706
|
"Authentication"
|
|
699
707
|
],
|
|
700
|
-
"
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
708
|
+
"requestBody": {
|
|
709
|
+
"description": "Perform a logout on the auth token.",
|
|
710
|
+
"required": true,
|
|
711
|
+
"content": {
|
|
712
|
+
"application/json": {
|
|
713
|
+
"schema": {
|
|
714
|
+
"$ref": "#/components/schemas/LogoutRequest"
|
|
715
|
+
},
|
|
716
|
+
"examples": {
|
|
717
|
+
"logoutRequestExample": {
|
|
718
|
+
"summary": "The request to logout from the server.",
|
|
719
|
+
"value": {
|
|
720
|
+
"token": "eyJhbGciOiJIU...sw5c"
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
710
725
|
}
|
|
711
|
-
|
|
726
|
+
},
|
|
712
727
|
"responses": {
|
|
713
728
|
"204": {
|
|
714
729
|
"description": "The rest request ended in success with no data."
|
|
@@ -756,29 +771,36 @@
|
|
|
756
771
|
}
|
|
757
772
|
},
|
|
758
773
|
"/authentication/refresh": {
|
|
759
|
-
"
|
|
774
|
+
"post": {
|
|
760
775
|
"operationId": "authenticationRefreshToken",
|
|
761
776
|
"summary": "Refresh an authentication token",
|
|
762
777
|
"tags": [
|
|
763
778
|
"Authentication"
|
|
764
779
|
],
|
|
765
|
-
"parameters": [
|
|
766
|
-
{
|
|
767
|
-
"name": "token",
|
|
768
|
-
"description": "The token to refresh, if it uses a mechanism with public access.",
|
|
769
|
-
"in": "query",
|
|
770
|
-
"required": false,
|
|
771
|
-
"schema": {
|
|
772
|
-
"type": "string"
|
|
773
|
-
},
|
|
774
|
-
"example": "eyJhbGciOiJIU...sw5c"
|
|
775
|
-
}
|
|
776
|
-
],
|
|
777
780
|
"security": [
|
|
778
781
|
{
|
|
779
782
|
"jwtBearerAuthScheme": []
|
|
780
783
|
}
|
|
781
784
|
],
|
|
785
|
+
"requestBody": {
|
|
786
|
+
"description": "Perform a refresh of the auth token.",
|
|
787
|
+
"required": true,
|
|
788
|
+
"content": {
|
|
789
|
+
"application/json": {
|
|
790
|
+
"schema": {
|
|
791
|
+
"$ref": "#/components/schemas/RefreshTokenRequest"
|
|
792
|
+
},
|
|
793
|
+
"examples": {
|
|
794
|
+
"refreshTokenRequestExample": {
|
|
795
|
+
"summary": "The request to refresh an auth token.",
|
|
796
|
+
"value": {
|
|
797
|
+
"token": "eyJhbGciOiJIU...sw5c"
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
782
804
|
"responses": {
|
|
783
805
|
"200": {
|
|
784
806
|
"description": "Response from a refresh on the auth token.",
|
|
@@ -2624,35 +2646,24 @@
|
|
|
2624
2646
|
}
|
|
2625
2647
|
}
|
|
2626
2648
|
},
|
|
2627
|
-
"/identity/{identity}/
|
|
2649
|
+
"/identity/{identity}/alias": {
|
|
2628
2650
|
"post": {
|
|
2629
|
-
"operationId": "
|
|
2630
|
-
"summary": "
|
|
2651
|
+
"operationId": "identityAlsoKnownAsCreate",
|
|
2652
|
+
"summary": "Add an alias to the alsoKnownAs property on the document",
|
|
2631
2653
|
"tags": [
|
|
2632
2654
|
"Identity"
|
|
2633
2655
|
],
|
|
2634
2656
|
"parameters": [
|
|
2635
2657
|
{
|
|
2636
2658
|
"name": "identity",
|
|
2637
|
-
"description": "The identity to create the
|
|
2638
|
-
"in": "path",
|
|
2639
|
-
"required": true,
|
|
2640
|
-
"schema": {
|
|
2641
|
-
"type": "string"
|
|
2642
|
-
},
|
|
2643
|
-
"style": "simple",
|
|
2644
|
-
"example": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a"
|
|
2645
|
-
},
|
|
2646
|
-
{
|
|
2647
|
-
"name": "verificationMethodId",
|
|
2648
|
-
"description": "The verification method id to use.",
|
|
2659
|
+
"description": "The identity to create the alias for.",
|
|
2649
2660
|
"in": "path",
|
|
2650
2661
|
"required": true,
|
|
2651
2662
|
"schema": {
|
|
2652
2663
|
"type": "string"
|
|
2653
2664
|
},
|
|
2654
2665
|
"style": "simple",
|
|
2655
|
-
"example": "
|
|
2666
|
+
"example": "did:iota:tst:0xe3088ba9aa8c28e1d139708a14e8c0fdff11ee8223baac4aa5bcf3321e4bfc6a"
|
|
2656
2667
|
}
|
|
2657
2668
|
],
|
|
2658
2669
|
"security": [
|
|
@@ -2661,24 +2672,17 @@
|
|
|
2661
2672
|
}
|
|
2662
2673
|
],
|
|
2663
2674
|
"requestBody": {
|
|
2664
|
-
"description": "Request to create
|
|
2675
|
+
"description": "Request to create an alias for an identity.",
|
|
2665
2676
|
"required": true,
|
|
2666
2677
|
"content": {
|
|
2667
2678
|
"application/json": {
|
|
2668
2679
|
"schema": {
|
|
2669
|
-
"$ref": "#/components/schemas/
|
|
2680
|
+
"$ref": "#/components/schemas/IdentityAlsoKnownAsCreateRequest"
|
|
2670
2681
|
},
|
|
2671
2682
|
"examples": {
|
|
2672
|
-
"
|
|
2683
|
+
"identityAlsoKnownAsCreateRequestExample": {
|
|
2673
2684
|
"value": {
|
|
2674
|
-
"
|
|
2675
|
-
"subject": {
|
|
2676
|
-
"@context": "https://schema.org",
|
|
2677
|
-
"@type": "Person",
|
|
2678
|
-
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2679
|
-
"name": "Jane Doe"
|
|
2680
|
-
},
|
|
2681
|
-
"revocationIndex": 5
|
|
2685
|
+
"alias": "did:example:123"
|
|
2682
2686
|
}
|
|
2683
2687
|
}
|
|
2684
2688
|
}
|
|
@@ -2686,44 +2690,8 @@
|
|
|
2686
2690
|
}
|
|
2687
2691
|
},
|
|
2688
2692
|
"responses": {
|
|
2689
|
-
"
|
|
2690
|
-
"description": "
|
|
2691
|
-
"content": {
|
|
2692
|
-
"application/json": {
|
|
2693
|
-
"schema": {
|
|
2694
|
-
"$ref": "#/components/schemas/IdentityVerifiableCredentialCreateResponse"
|
|
2695
|
-
},
|
|
2696
|
-
"examples": {
|
|
2697
|
-
"identityVerifiableCredentialCreateResponseExample": {
|
|
2698
|
-
"value": {
|
|
2699
|
-
"verifiableCredential": {
|
|
2700
|
-
"@context": [
|
|
2701
|
-
"https://www.w3.org/2018/credentials/v1",
|
|
2702
|
-
"https://schema.org"
|
|
2703
|
-
],
|
|
2704
|
-
"id": "https://example.com/credentials/3732",
|
|
2705
|
-
"type": [
|
|
2706
|
-
"VerifiableCredential",
|
|
2707
|
-
"Person"
|
|
2708
|
-
],
|
|
2709
|
-
"credentialSubject": {
|
|
2710
|
-
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2711
|
-
"name": "Jane Doe"
|
|
2712
|
-
},
|
|
2713
|
-
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
2714
|
-
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
2715
|
-
"credentialStatus": {
|
|
2716
|
-
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
2717
|
-
"type": "BitstringStatusList",
|
|
2718
|
-
"revocationBitmapIndex": "5"
|
|
2719
|
-
}
|
|
2720
|
-
},
|
|
2721
|
-
"jwt": "eyJraWQiOi...D1Z3AQ"
|
|
2722
|
-
}
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2693
|
+
"204": {
|
|
2694
|
+
"description": "The rest request ended in success with no data."
|
|
2727
2695
|
},
|
|
2728
2696
|
"400": {
|
|
2729
2697
|
"description": "The server cannot process the request, see the content for more details.",
|
|
@@ -2785,26 +2753,287 @@
|
|
|
2785
2753
|
}
|
|
2786
2754
|
}
|
|
2787
2755
|
},
|
|
2788
|
-
"/identity/
|
|
2789
|
-
"
|
|
2790
|
-
"operationId": "
|
|
2791
|
-
"summary": "
|
|
2756
|
+
"/identity/{identity}/alias/{alias}": {
|
|
2757
|
+
"delete": {
|
|
2758
|
+
"operationId": "identityAlsoKnownAsRemove",
|
|
2759
|
+
"summary": "Remove an alias from the alsoKnownAs property on the document",
|
|
2792
2760
|
"tags": [
|
|
2793
2761
|
"Identity"
|
|
2794
2762
|
],
|
|
2795
|
-
"
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
"
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2763
|
+
"parameters": [
|
|
2764
|
+
{
|
|
2765
|
+
"name": "identity",
|
|
2766
|
+
"description": "The identity to remove the alias from.",
|
|
2767
|
+
"in": "path",
|
|
2768
|
+
"required": true,
|
|
2769
|
+
"schema": {
|
|
2770
|
+
"type": "string"
|
|
2771
|
+
},
|
|
2772
|
+
"style": "simple",
|
|
2773
|
+
"example": "did:iota:tst:0xe3088ba9aa8c28e1d139708a14e8c0fdff11ee8223baac4aa5bcf3321e4bfc6a"
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"name": "alias",
|
|
2777
|
+
"description": "The alias to remove.",
|
|
2778
|
+
"in": "path",
|
|
2779
|
+
"required": true,
|
|
2780
|
+
"schema": {
|
|
2781
|
+
"type": "string"
|
|
2782
|
+
},
|
|
2783
|
+
"style": "simple",
|
|
2784
|
+
"example": "did:example:123"
|
|
2785
|
+
}
|
|
2786
|
+
],
|
|
2787
|
+
"security": [
|
|
2788
|
+
{
|
|
2789
|
+
"jwtBearerAuthScheme": []
|
|
2790
|
+
}
|
|
2791
|
+
],
|
|
2792
|
+
"responses": {
|
|
2793
|
+
"204": {
|
|
2794
|
+
"description": "The rest request ended in success with no data."
|
|
2795
|
+
},
|
|
2796
|
+
"400": {
|
|
2797
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
2798
|
+
"content": {
|
|
2799
|
+
"application/json": {
|
|
2800
|
+
"schema": {
|
|
2801
|
+
"$ref": "#/components/schemas/Error"
|
|
2802
|
+
},
|
|
2803
|
+
"examples": {
|
|
2804
|
+
"exampleResponse": {
|
|
2805
|
+
"value": {
|
|
2806
|
+
"name": "GeneralError",
|
|
2807
|
+
"message": "errorMessage",
|
|
2808
|
+
"properties": {
|
|
2809
|
+
"foo": "bar"
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"401": {
|
|
2818
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
2819
|
+
"content": {
|
|
2820
|
+
"application/json": {
|
|
2821
|
+
"schema": {
|
|
2822
|
+
"$ref": "#/components/schemas/Error"
|
|
2823
|
+
},
|
|
2824
|
+
"examples": {
|
|
2825
|
+
"exampleResponse": {
|
|
2826
|
+
"value": {
|
|
2827
|
+
"name": "UnauthorizedError",
|
|
2828
|
+
"message": "errorMessage"
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
},
|
|
2835
|
+
"500": {
|
|
2836
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
2837
|
+
"content": {
|
|
2838
|
+
"application/json": {
|
|
2839
|
+
"schema": {
|
|
2840
|
+
"$ref": "#/components/schemas/Error"
|
|
2841
|
+
},
|
|
2842
|
+
"examples": {
|
|
2843
|
+
"exampleResponse": {
|
|
2844
|
+
"value": {
|
|
2845
|
+
"name": "InternalServerError",
|
|
2846
|
+
"message": "errorMessage"
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
},
|
|
2856
|
+
"/identity/{identity}/verifiable-credential/{verificationMethodId}": {
|
|
2857
|
+
"post": {
|
|
2858
|
+
"operationId": "identityVerifiableCredentialCreate",
|
|
2859
|
+
"summary": "Create an identity verifiable credential",
|
|
2860
|
+
"tags": [
|
|
2861
|
+
"Identity"
|
|
2862
|
+
],
|
|
2863
|
+
"parameters": [
|
|
2864
|
+
{
|
|
2865
|
+
"name": "identity",
|
|
2866
|
+
"description": "The identity to create the verification credential for.",
|
|
2867
|
+
"in": "path",
|
|
2868
|
+
"required": true,
|
|
2869
|
+
"schema": {
|
|
2870
|
+
"type": "string"
|
|
2871
|
+
},
|
|
2872
|
+
"style": "simple",
|
|
2873
|
+
"example": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a"
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"name": "verificationMethodId",
|
|
2877
|
+
"description": "The verification method id to use.",
|
|
2878
|
+
"in": "path",
|
|
2879
|
+
"required": true,
|
|
2880
|
+
"schema": {
|
|
2881
|
+
"type": "string"
|
|
2882
|
+
},
|
|
2883
|
+
"style": "simple",
|
|
2884
|
+
"example": "my-assertion"
|
|
2885
|
+
}
|
|
2886
|
+
],
|
|
2887
|
+
"security": [
|
|
2888
|
+
{
|
|
2889
|
+
"jwtBearerAuthScheme": []
|
|
2890
|
+
}
|
|
2891
|
+
],
|
|
2892
|
+
"requestBody": {
|
|
2893
|
+
"description": "Request to create a verifiable credential.",
|
|
2894
|
+
"required": true,
|
|
2895
|
+
"content": {
|
|
2896
|
+
"application/json": {
|
|
2897
|
+
"schema": {
|
|
2898
|
+
"$ref": "#/components/schemas/IdentityVerifiableCredentialCreateRequest"
|
|
2899
|
+
},
|
|
2900
|
+
"examples": {
|
|
2901
|
+
"identityVerifiableCredentialCreateRequestExample": {
|
|
2902
|
+
"value": {
|
|
2903
|
+
"credentialId": "https://example.com/credentials/3732",
|
|
2904
|
+
"subject": {
|
|
2905
|
+
"@context": "https://schema.org",
|
|
2906
|
+
"@type": "Person",
|
|
2907
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2908
|
+
"name": "Jane Doe"
|
|
2909
|
+
},
|
|
2910
|
+
"revocationIndex": 5
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
},
|
|
2917
|
+
"responses": {
|
|
2918
|
+
"200": {
|
|
2919
|
+
"description": "Response to creating a verifiable credential.",
|
|
2920
|
+
"content": {
|
|
2921
|
+
"application/json": {
|
|
2922
|
+
"schema": {
|
|
2923
|
+
"$ref": "#/components/schemas/IdentityVerifiableCredentialCreateResponse"
|
|
2924
|
+
},
|
|
2925
|
+
"examples": {
|
|
2926
|
+
"identityVerifiableCredentialCreateResponseExample": {
|
|
2927
|
+
"value": {
|
|
2928
|
+
"verifiableCredential": {
|
|
2929
|
+
"@context": [
|
|
2930
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
2931
|
+
"https://schema.org"
|
|
2932
|
+
],
|
|
2933
|
+
"id": "https://example.com/credentials/3732",
|
|
2934
|
+
"type": [
|
|
2935
|
+
"VerifiableCredential",
|
|
2936
|
+
"Person"
|
|
2937
|
+
],
|
|
2938
|
+
"credentialSubject": {
|
|
2939
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2940
|
+
"name": "Jane Doe"
|
|
2941
|
+
},
|
|
2942
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
2943
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
2944
|
+
"credentialStatus": {
|
|
2945
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
2946
|
+
"type": "BitstringStatusList",
|
|
2947
|
+
"revocationBitmapIndex": "5"
|
|
2948
|
+
}
|
|
2949
|
+
},
|
|
2950
|
+
"jwt": "eyJraWQiOi...D1Z3AQ"
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
"400": {
|
|
2958
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
2959
|
+
"content": {
|
|
2960
|
+
"application/json": {
|
|
2961
|
+
"schema": {
|
|
2962
|
+
"$ref": "#/components/schemas/Error"
|
|
2963
|
+
},
|
|
2964
|
+
"examples": {
|
|
2965
|
+
"exampleResponse": {
|
|
2966
|
+
"value": {
|
|
2967
|
+
"name": "GeneralError",
|
|
2968
|
+
"message": "errorMessage",
|
|
2969
|
+
"properties": {
|
|
2970
|
+
"foo": "bar"
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"401": {
|
|
2979
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
2980
|
+
"content": {
|
|
2981
|
+
"application/json": {
|
|
2982
|
+
"schema": {
|
|
2983
|
+
"$ref": "#/components/schemas/Error"
|
|
2984
|
+
},
|
|
2985
|
+
"examples": {
|
|
2986
|
+
"exampleResponse": {
|
|
2987
|
+
"value": {
|
|
2988
|
+
"name": "UnauthorizedError",
|
|
2989
|
+
"message": "errorMessage"
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
},
|
|
2996
|
+
"500": {
|
|
2997
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
2998
|
+
"content": {
|
|
2999
|
+
"application/json": {
|
|
3000
|
+
"schema": {
|
|
3001
|
+
"$ref": "#/components/schemas/Error"
|
|
3002
|
+
},
|
|
3003
|
+
"examples": {
|
|
3004
|
+
"exampleResponse": {
|
|
3005
|
+
"value": {
|
|
3006
|
+
"name": "InternalServerError",
|
|
3007
|
+
"message": "errorMessage"
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3017
|
+
"/identity/verifiable-credential/verify/document": {
|
|
3018
|
+
"post": {
|
|
3019
|
+
"operationId": "identityVerifiableCredentialVerifyDocument",
|
|
3020
|
+
"summary": "Verify an identity verifiable credential document",
|
|
3021
|
+
"tags": [
|
|
3022
|
+
"Identity"
|
|
3023
|
+
],
|
|
3024
|
+
"requestBody": {
|
|
3025
|
+
"description": "Request to verify a verifiable credential.",
|
|
3026
|
+
"required": true,
|
|
3027
|
+
"content": {
|
|
3028
|
+
"application/json": {
|
|
3029
|
+
"schema": {
|
|
3030
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredential"
|
|
3031
|
+
},
|
|
3032
|
+
"examples": {
|
|
3033
|
+
"identityVerifiableCredentialVerifyDocumentRequestExample": {
|
|
3034
|
+
"value": {
|
|
3035
|
+
"@context": [
|
|
3036
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
2808
3037
|
"https://schema.org"
|
|
2809
3038
|
],
|
|
2810
3039
|
"id": "https://example.com/credentials/3732",
|
|
@@ -3212,56 +3441,206 @@
|
|
|
3212
3441
|
}
|
|
3213
3442
|
}
|
|
3214
3443
|
},
|
|
3215
|
-
"/identity/{identity}/verifiable-presentation/{verificationMethodId}": {
|
|
3444
|
+
"/identity/{identity}/verifiable-presentation/{verificationMethodId}": {
|
|
3445
|
+
"post": {
|
|
3446
|
+
"operationId": "identityVerifiablePresentationCreate",
|
|
3447
|
+
"summary": "Create an identity verifiable presentation",
|
|
3448
|
+
"tags": [
|
|
3449
|
+
"Identity"
|
|
3450
|
+
],
|
|
3451
|
+
"parameters": [
|
|
3452
|
+
{
|
|
3453
|
+
"name": "identity",
|
|
3454
|
+
"description": "The identity to create the verification presentation for.",
|
|
3455
|
+
"in": "path",
|
|
3456
|
+
"required": true,
|
|
3457
|
+
"schema": {
|
|
3458
|
+
"type": "string"
|
|
3459
|
+
},
|
|
3460
|
+
"style": "simple",
|
|
3461
|
+
"example": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"name": "verificationMethodId",
|
|
3465
|
+
"description": "The verification method id to use.",
|
|
3466
|
+
"in": "path",
|
|
3467
|
+
"required": true,
|
|
3468
|
+
"schema": {
|
|
3469
|
+
"type": "string"
|
|
3470
|
+
},
|
|
3471
|
+
"style": "simple",
|
|
3472
|
+
"example": "my-assertion"
|
|
3473
|
+
}
|
|
3474
|
+
],
|
|
3475
|
+
"security": [
|
|
3476
|
+
{
|
|
3477
|
+
"jwtBearerAuthScheme": []
|
|
3478
|
+
}
|
|
3479
|
+
],
|
|
3480
|
+
"requestBody": {
|
|
3481
|
+
"description": "Request to create a verifiable presentation.",
|
|
3482
|
+
"required": true,
|
|
3483
|
+
"content": {
|
|
3484
|
+
"application/json": {
|
|
3485
|
+
"schema": {
|
|
3486
|
+
"$ref": "#/components/schemas/IdentityVerifiablePresentationCreateRequest"
|
|
3487
|
+
},
|
|
3488
|
+
"examples": {
|
|
3489
|
+
"identityVerifiablePresentationCreateRequestExample": {
|
|
3490
|
+
"value": {
|
|
3491
|
+
"presentationId": "https://example.com/presentation/3732",
|
|
3492
|
+
"verifiableCredentials": [
|
|
3493
|
+
"eyJraWQiOi...D1Z3AQ"
|
|
3494
|
+
]
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
},
|
|
3501
|
+
"responses": {
|
|
3502
|
+
"200": {
|
|
3503
|
+
"description": "Response to creating a verifiable presentation.",
|
|
3504
|
+
"content": {
|
|
3505
|
+
"application/json": {
|
|
3506
|
+
"schema": {
|
|
3507
|
+
"$ref": "#/components/schemas/IdentityVerifiablePresentationCreateResponse"
|
|
3508
|
+
},
|
|
3509
|
+
"examples": {
|
|
3510
|
+
"IIdentityVerifiablePresentationCreateResponseExample": {
|
|
3511
|
+
"value": {
|
|
3512
|
+
"verifiablePresentation": {
|
|
3513
|
+
"@context": [
|
|
3514
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
3515
|
+
"https://schema.org"
|
|
3516
|
+
],
|
|
3517
|
+
"id": "presentationId",
|
|
3518
|
+
"type": [
|
|
3519
|
+
"VerifiablePresentation",
|
|
3520
|
+
"Person"
|
|
3521
|
+
],
|
|
3522
|
+
"verifiableCredential": [
|
|
3523
|
+
"eyJraWQiOi...D1Z3AQ"
|
|
3524
|
+
],
|
|
3525
|
+
"holder": "did:entity-storage:0xcea318e06e89f3fb4048160770effd84d0cfa5801fee13dfa6f9413a00429cec"
|
|
3526
|
+
},
|
|
3527
|
+
"jwt": "eyJraWQiOi...D1Z3AQ"
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
"400": {
|
|
3535
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
3536
|
+
"content": {
|
|
3537
|
+
"application/json": {
|
|
3538
|
+
"schema": {
|
|
3539
|
+
"$ref": "#/components/schemas/Error"
|
|
3540
|
+
},
|
|
3541
|
+
"examples": {
|
|
3542
|
+
"exampleResponse": {
|
|
3543
|
+
"value": {
|
|
3544
|
+
"name": "GeneralError",
|
|
3545
|
+
"message": "errorMessage",
|
|
3546
|
+
"properties": {
|
|
3547
|
+
"foo": "bar"
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
},
|
|
3555
|
+
"401": {
|
|
3556
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
3557
|
+
"content": {
|
|
3558
|
+
"application/json": {
|
|
3559
|
+
"schema": {
|
|
3560
|
+
"$ref": "#/components/schemas/Error"
|
|
3561
|
+
},
|
|
3562
|
+
"examples": {
|
|
3563
|
+
"exampleResponse": {
|
|
3564
|
+
"value": {
|
|
3565
|
+
"name": "UnauthorizedError",
|
|
3566
|
+
"message": "errorMessage"
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
},
|
|
3573
|
+
"500": {
|
|
3574
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3575
|
+
"content": {
|
|
3576
|
+
"application/json": {
|
|
3577
|
+
"schema": {
|
|
3578
|
+
"$ref": "#/components/schemas/Error"
|
|
3579
|
+
},
|
|
3580
|
+
"examples": {
|
|
3581
|
+
"exampleResponse": {
|
|
3582
|
+
"value": {
|
|
3583
|
+
"name": "InternalServerError",
|
|
3584
|
+
"message": "errorMessage"
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3594
|
+
"/identity/verifiable-presentation/verify/document": {
|
|
3216
3595
|
"post": {
|
|
3217
|
-
"operationId": "
|
|
3218
|
-
"summary": "
|
|
3596
|
+
"operationId": "identityVerifiablePresentationVerifyDocument",
|
|
3597
|
+
"summary": "Verify an identity verifiable presentation document",
|
|
3219
3598
|
"tags": [
|
|
3220
3599
|
"Identity"
|
|
3221
3600
|
],
|
|
3222
|
-
"parameters": [
|
|
3223
|
-
{
|
|
3224
|
-
"name": "identity",
|
|
3225
|
-
"description": "The identity to create the verification presentation for.",
|
|
3226
|
-
"in": "path",
|
|
3227
|
-
"required": true,
|
|
3228
|
-
"schema": {
|
|
3229
|
-
"type": "string"
|
|
3230
|
-
},
|
|
3231
|
-
"style": "simple",
|
|
3232
|
-
"example": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a"
|
|
3233
|
-
},
|
|
3234
|
-
{
|
|
3235
|
-
"name": "verificationMethodId",
|
|
3236
|
-
"description": "The verification method id to use.",
|
|
3237
|
-
"in": "path",
|
|
3238
|
-
"required": true,
|
|
3239
|
-
"schema": {
|
|
3240
|
-
"type": "string"
|
|
3241
|
-
},
|
|
3242
|
-
"style": "simple",
|
|
3243
|
-
"example": "my-assertion"
|
|
3244
|
-
}
|
|
3245
|
-
],
|
|
3246
|
-
"security": [
|
|
3247
|
-
{
|
|
3248
|
-
"jwtBearerAuthScheme": []
|
|
3249
|
-
}
|
|
3250
|
-
],
|
|
3251
3601
|
"requestBody": {
|
|
3252
|
-
"description": "Request to
|
|
3602
|
+
"description": "Request to verify a verifiable presentation.",
|
|
3253
3603
|
"required": true,
|
|
3254
3604
|
"content": {
|
|
3255
3605
|
"application/json": {
|
|
3256
3606
|
"schema": {
|
|
3257
|
-
"$ref": "
|
|
3607
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiablePresentation"
|
|
3258
3608
|
},
|
|
3259
3609
|
"examples": {
|
|
3260
|
-
"
|
|
3610
|
+
"identityVerifiablePresentationVerifyDocumentRequestExample": {
|
|
3261
3611
|
"value": {
|
|
3262
|
-
"
|
|
3263
|
-
|
|
3264
|
-
"
|
|
3612
|
+
"@context": [
|
|
3613
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
3614
|
+
"https://schema.org"
|
|
3615
|
+
],
|
|
3616
|
+
"id": "https://example.com/credentials/3732",
|
|
3617
|
+
"type": [
|
|
3618
|
+
"VerifiableCredential",
|
|
3619
|
+
"Person"
|
|
3620
|
+
],
|
|
3621
|
+
"verifiableCredential": [
|
|
3622
|
+
{
|
|
3623
|
+
"@context": [
|
|
3624
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
3625
|
+
"https://schema.org"
|
|
3626
|
+
],
|
|
3627
|
+
"id": "https://example.com/credentials/3732",
|
|
3628
|
+
"type": [
|
|
3629
|
+
"VerifiableCredential",
|
|
3630
|
+
"Person"
|
|
3631
|
+
],
|
|
3632
|
+
"credentialSubject": {
|
|
3633
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
3634
|
+
"name": "Jane Doe"
|
|
3635
|
+
},
|
|
3636
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
3637
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
3638
|
+
"credentialStatus": {
|
|
3639
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
3640
|
+
"type": "BitstringStatusList",
|
|
3641
|
+
"revocationBitmapIndex": "5"
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3265
3644
|
]
|
|
3266
3645
|
}
|
|
3267
3646
|
}
|
|
@@ -3271,15 +3650,16 @@
|
|
|
3271
3650
|
},
|
|
3272
3651
|
"responses": {
|
|
3273
3652
|
"200": {
|
|
3274
|
-
"description": "Response to
|
|
3653
|
+
"description": "Response to verifying a verifiable presentation.",
|
|
3275
3654
|
"content": {
|
|
3276
3655
|
"application/json": {
|
|
3277
3656
|
"schema": {
|
|
3278
|
-
"$ref": "#/components/schemas/
|
|
3657
|
+
"$ref": "#/components/schemas/IdentityVerifiablePresentationVerifyResponse"
|
|
3279
3658
|
},
|
|
3280
3659
|
"examples": {
|
|
3281
|
-
"
|
|
3660
|
+
"identityVerifiablePresentationVerifyResponseExample": {
|
|
3282
3661
|
"value": {
|
|
3662
|
+
"revoked": false,
|
|
3283
3663
|
"verifiablePresentation": {
|
|
3284
3664
|
"@context": [
|
|
3285
3665
|
"https://www.w3.org/2018/credentials/v1",
|
|
@@ -3294,8 +3674,7 @@
|
|
|
3294
3674
|
"eyJraWQiOi...D1Z3AQ"
|
|
3295
3675
|
],
|
|
3296
3676
|
"holder": "did:entity-storage:0xcea318e06e89f3fb4048160770effd84d0cfa5801fee13dfa6f9413a00429cec"
|
|
3297
|
-
}
|
|
3298
|
-
"jwt": "eyJraWQiOi...D1Z3AQ"
|
|
3677
|
+
}
|
|
3299
3678
|
}
|
|
3300
3679
|
}
|
|
3301
3680
|
}
|
|
@@ -3323,24 +3702,6 @@
|
|
|
3323
3702
|
}
|
|
3324
3703
|
}
|
|
3325
3704
|
},
|
|
3326
|
-
"401": {
|
|
3327
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
3328
|
-
"content": {
|
|
3329
|
-
"application/json": {
|
|
3330
|
-
"schema": {
|
|
3331
|
-
"$ref": "#/components/schemas/Error"
|
|
3332
|
-
},
|
|
3333
|
-
"examples": {
|
|
3334
|
-
"exampleResponse": {
|
|
3335
|
-
"value": {
|
|
3336
|
-
"name": "UnauthorizedError",
|
|
3337
|
-
"message": "errorMessage"
|
|
3338
|
-
}
|
|
3339
|
-
}
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
}
|
|
3343
|
-
},
|
|
3344
3705
|
"500": {
|
|
3345
3706
|
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3346
3707
|
"content": {
|
|
@@ -16587,24 +16948,6 @@
|
|
|
16587
16948
|
}
|
|
16588
16949
|
]
|
|
16589
16950
|
}
|
|
16590
|
-
},
|
|
16591
|
-
"papCreateEcosystemPolicyRequestExample": {
|
|
16592
|
-
"value": {
|
|
16593
|
-
"@context": [
|
|
16594
|
-
"http://www.w3.org/ns/odrl.jsonld",
|
|
16595
|
-
"https://schema.twindev.org/odrl/v1/"
|
|
16596
|
-
],
|
|
16597
|
-
"@type": "EcosystemPolicy",
|
|
16598
|
-
"profile": "https://schema.twindev.org/odrl/v1/profile",
|
|
16599
|
-
"assigner": "did:example:publisher",
|
|
16600
|
-
"obligation": [
|
|
16601
|
-
{
|
|
16602
|
-
"action": "inform",
|
|
16603
|
-
"assignee": "did:example:border-agency",
|
|
16604
|
-
"target": "urn:twin:asset:consignment:*"
|
|
16605
|
-
}
|
|
16606
|
-
]
|
|
16607
|
-
}
|
|
16608
16951
|
}
|
|
16609
16952
|
}
|
|
16610
16953
|
}
|
|
@@ -17496,123 +17839,6 @@
|
|
|
17496
17839
|
}
|
|
17497
17840
|
}
|
|
17498
17841
|
},
|
|
17499
|
-
"/rights-management/policy/admin/ecosystem-policy/{id}": {
|
|
17500
|
-
"get": {
|
|
17501
|
-
"operationId": "papGetEcosystemPolicy",
|
|
17502
|
-
"summary": "Get an ecosystem policy",
|
|
17503
|
-
"tags": [
|
|
17504
|
-
"Policy Administration Point"
|
|
17505
|
-
],
|
|
17506
|
-
"parameters": [
|
|
17507
|
-
{
|
|
17508
|
-
"name": "id",
|
|
17509
|
-
"description": "The ID of the ecosystem policy to get.",
|
|
17510
|
-
"in": "path",
|
|
17511
|
-
"required": true,
|
|
17512
|
-
"schema": {
|
|
17513
|
-
"type": "string"
|
|
17514
|
-
},
|
|
17515
|
-
"style": "simple",
|
|
17516
|
-
"example": "urn:rights-management:abc123def456"
|
|
17517
|
-
}
|
|
17518
|
-
],
|
|
17519
|
-
"security": [
|
|
17520
|
-
{
|
|
17521
|
-
"jwtBearerAuthScheme": []
|
|
17522
|
-
}
|
|
17523
|
-
],
|
|
17524
|
-
"responses": {
|
|
17525
|
-
"200": {
|
|
17526
|
-
"description": "The response structure for getting an ecosystem policy.",
|
|
17527
|
-
"content": {
|
|
17528
|
-
"application/json": {
|
|
17529
|
-
"schema": {
|
|
17530
|
-
"$ref": "#/components/schemas/RightsManagementEcosystemPolicy"
|
|
17531
|
-
},
|
|
17532
|
-
"examples": {
|
|
17533
|
-
"papGetEcosystemPolicyResponseExample": {
|
|
17534
|
-
"value": {
|
|
17535
|
-
"@context": [
|
|
17536
|
-
"http://www.w3.org/ns/odrl.jsonld",
|
|
17537
|
-
"https://schema.twindev.org/odrl/v1/"
|
|
17538
|
-
],
|
|
17539
|
-
"@type": "EcosystemPolicy",
|
|
17540
|
-
"@id": "urn:rights-management:abc123def456",
|
|
17541
|
-
"profile": "https://schema.twindev.org/odrl/v1/profile",
|
|
17542
|
-
"assigner": "did:example:publisher",
|
|
17543
|
-
"obligation": [
|
|
17544
|
-
{
|
|
17545
|
-
"action": "inform",
|
|
17546
|
-
"assignee": "did:example:border-agency",
|
|
17547
|
-
"target": "urn:twin:asset:consignment:abc123"
|
|
17548
|
-
}
|
|
17549
|
-
]
|
|
17550
|
-
}
|
|
17551
|
-
}
|
|
17552
|
-
}
|
|
17553
|
-
}
|
|
17554
|
-
}
|
|
17555
|
-
},
|
|
17556
|
-
"400": {
|
|
17557
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
17558
|
-
"content": {
|
|
17559
|
-
"application/json": {
|
|
17560
|
-
"schema": {
|
|
17561
|
-
"$ref": "#/components/schemas/Error"
|
|
17562
|
-
},
|
|
17563
|
-
"examples": {
|
|
17564
|
-
"exampleResponse": {
|
|
17565
|
-
"value": {
|
|
17566
|
-
"name": "GeneralError",
|
|
17567
|
-
"message": "errorMessage",
|
|
17568
|
-
"properties": {
|
|
17569
|
-
"foo": "bar"
|
|
17570
|
-
}
|
|
17571
|
-
}
|
|
17572
|
-
}
|
|
17573
|
-
}
|
|
17574
|
-
}
|
|
17575
|
-
}
|
|
17576
|
-
},
|
|
17577
|
-
"401": {
|
|
17578
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
17579
|
-
"content": {
|
|
17580
|
-
"application/json": {
|
|
17581
|
-
"schema": {
|
|
17582
|
-
"$ref": "#/components/schemas/Error"
|
|
17583
|
-
},
|
|
17584
|
-
"examples": {
|
|
17585
|
-
"exampleResponse": {
|
|
17586
|
-
"value": {
|
|
17587
|
-
"name": "UnauthorizedError",
|
|
17588
|
-
"message": "errorMessage"
|
|
17589
|
-
}
|
|
17590
|
-
}
|
|
17591
|
-
}
|
|
17592
|
-
}
|
|
17593
|
-
}
|
|
17594
|
-
},
|
|
17595
|
-
"500": {
|
|
17596
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
17597
|
-
"content": {
|
|
17598
|
-
"application/json": {
|
|
17599
|
-
"schema": {
|
|
17600
|
-
"$ref": "#/components/schemas/Error"
|
|
17601
|
-
},
|
|
17602
|
-
"examples": {
|
|
17603
|
-
"exampleResponse": {
|
|
17604
|
-
"value": {
|
|
17605
|
-
"name": "InternalServerError",
|
|
17606
|
-
"message": "errorMessage"
|
|
17607
|
-
}
|
|
17608
|
-
}
|
|
17609
|
-
}
|
|
17610
|
-
}
|
|
17611
|
-
}
|
|
17612
|
-
}
|
|
17613
|
-
}
|
|
17614
|
-
}
|
|
17615
|
-
},
|
|
17616
17842
|
"/rights-management/negotiations/{id}": {
|
|
17617
17843
|
"get": {
|
|
17618
17844
|
"operationId": "pnpGetNegotiation",
|
|
@@ -20183,7 +20409,7 @@
|
|
|
20183
20409
|
},
|
|
20184
20410
|
"message": {
|
|
20185
20411
|
"type": "string",
|
|
20186
|
-
"description": "The message for the error."
|
|
20412
|
+
"description": "The message for the error as an i18n key."
|
|
20187
20413
|
},
|
|
20188
20414
|
"source": {
|
|
20189
20415
|
"type": "string",
|
|
@@ -20253,43 +20479,37 @@
|
|
|
20253
20479
|
],
|
|
20254
20480
|
"description": "Transfer Process (DSP compliant) with current state, or error."
|
|
20255
20481
|
},
|
|
20256
|
-
"
|
|
20257
|
-
"description": "
|
|
20482
|
+
"Health": {
|
|
20483
|
+
"description": "Provides health information for a component.",
|
|
20258
20484
|
"type": "object",
|
|
20259
20485
|
"properties": {
|
|
20260
20486
|
"name": {
|
|
20261
20487
|
"type": "string",
|
|
20262
20488
|
"description": "The name of the component."
|
|
20263
20489
|
},
|
|
20490
|
+
"description": {
|
|
20491
|
+
"type": "string",
|
|
20492
|
+
"description": "The description of the component as an i18n key."
|
|
20493
|
+
},
|
|
20494
|
+
"isChild": {
|
|
20495
|
+
"type": "boolean",
|
|
20496
|
+
"description": "Whether this entry is a child of another entry, the parent entry will report the overall status of the component."
|
|
20497
|
+
},
|
|
20264
20498
|
"status": {
|
|
20265
20499
|
"$ref": "#/components/schemas/HealthStatus"
|
|
20266
20500
|
},
|
|
20267
20501
|
"details": {
|
|
20268
20502
|
"type": "string",
|
|
20269
|
-
"description": "The details for the status."
|
|
20270
|
-
}
|
|
20271
|
-
},
|
|
20272
|
-
"required": [
|
|
20273
|
-
"name",
|
|
20274
|
-
"status"
|
|
20275
|
-
]
|
|
20276
|
-
},
|
|
20277
|
-
"HealthInfo": {
|
|
20278
|
-
"description": "The status of the server.",
|
|
20279
|
-
"type": "object",
|
|
20280
|
-
"properties": {
|
|
20281
|
-
"status": {
|
|
20282
|
-
"$ref": "#/components/schemas/HealthStatus"
|
|
20503
|
+
"description": "The details for the status if there are further details to provide as an i18n key."
|
|
20283
20504
|
},
|
|
20284
|
-
"
|
|
20285
|
-
"type": "
|
|
20286
|
-
"
|
|
20287
|
-
|
|
20288
|
-
},
|
|
20289
|
-
"description": "The status of the components."
|
|
20505
|
+
"properties": {
|
|
20506
|
+
"type": "object",
|
|
20507
|
+
"additionalProperties": {},
|
|
20508
|
+
"description": "Properties to substitute in the i18n key for the details."
|
|
20290
20509
|
}
|
|
20291
20510
|
},
|
|
20292
20511
|
"required": [
|
|
20512
|
+
"name",
|
|
20293
20513
|
"status"
|
|
20294
20514
|
]
|
|
20295
20515
|
},
|
|
@@ -20310,6 +20530,19 @@
|
|
|
20310
20530
|
}
|
|
20311
20531
|
]
|
|
20312
20532
|
},
|
|
20533
|
+
"IdentityAlsoKnownAsCreateRequest": {
|
|
20534
|
+
"type": "object",
|
|
20535
|
+
"properties": {
|
|
20536
|
+
"alias": {
|
|
20537
|
+
"type": "string",
|
|
20538
|
+
"description": "The alias to create for the identity."
|
|
20539
|
+
}
|
|
20540
|
+
},
|
|
20541
|
+
"required": [
|
|
20542
|
+
"alias"
|
|
20543
|
+
],
|
|
20544
|
+
"description": "The data for the request."
|
|
20545
|
+
},
|
|
20313
20546
|
"IdentityCreateRequest": {
|
|
20314
20547
|
"type": "object",
|
|
20315
20548
|
"properties": {
|
|
@@ -20757,6 +20990,16 @@
|
|
|
20757
20990
|
],
|
|
20758
20991
|
"description": "The login response details."
|
|
20759
20992
|
},
|
|
20993
|
+
"LogoutRequest": {
|
|
20994
|
+
"type": "object",
|
|
20995
|
+
"properties": {
|
|
20996
|
+
"token": {
|
|
20997
|
+
"type": "string",
|
|
20998
|
+
"description": "The token to logout, if it uses a mechanism with public access."
|
|
20999
|
+
}
|
|
21000
|
+
},
|
|
21001
|
+
"description": "The logout token details."
|
|
21002
|
+
},
|
|
20760
21003
|
"MetricType": {
|
|
20761
21004
|
"description": "The types of metrics.",
|
|
20762
21005
|
"anyOf": [
|
|
@@ -21195,7 +21438,7 @@
|
|
|
21195
21438
|
"description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
21196
21439
|
},
|
|
21197
21440
|
"@type": {
|
|
21198
|
-
"$ref": "
|
|
21441
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicyType"
|
|
21199
21442
|
},
|
|
21200
21443
|
"@id": {
|
|
21201
21444
|
"type": "string",
|
|
@@ -21267,6 +21510,10 @@
|
|
|
21267
21510
|
"type": "string",
|
|
21268
21511
|
"description": "The public origin of the server that initiated or received this negotiation.\nUsed to construct callback URLs in subsequent async messages."
|
|
21269
21512
|
},
|
|
21513
|
+
"tenantId": {
|
|
21514
|
+
"type": "string",
|
|
21515
|
+
"description": "The tenant id this negotiation belongs to."
|
|
21516
|
+
},
|
|
21270
21517
|
"organizationIdentity": {
|
|
21271
21518
|
"type": "string",
|
|
21272
21519
|
"description": "Organization identity to be used when sending trust payloads."
|
|
@@ -21340,6 +21587,16 @@
|
|
|
21340
21587
|
"organizationIdentity"
|
|
21341
21588
|
]
|
|
21342
21589
|
},
|
|
21590
|
+
"RefreshTokenRequest": {
|
|
21591
|
+
"type": "object",
|
|
21592
|
+
"properties": {
|
|
21593
|
+
"token": {
|
|
21594
|
+
"type": "string",
|
|
21595
|
+
"description": "The token to refresh, if it uses a mechanism with public access."
|
|
21596
|
+
}
|
|
21597
|
+
},
|
|
21598
|
+
"description": "The refresh token details."
|
|
21599
|
+
},
|
|
21343
21600
|
"RefreshTokenResponse": {
|
|
21344
21601
|
"type": "object",
|
|
21345
21602
|
"properties": {
|
|
@@ -21364,223 +21621,8 @@
|
|
|
21364
21621
|
],
|
|
21365
21622
|
"description": "Transfer Process (DSP compliant) with state REQUESTED, or error."
|
|
21366
21623
|
},
|
|
21367
|
-
"RightsManagementEcosystemPolicy": {
|
|
21368
|
-
"description": "TWIN EcosystemPolicy in DSP storage shape.\n\nCombines the DSP wire-format requirements (mandatory `@id`, no `uid`) from\n`IDataspaceProtocolPolicy` with a narrowed `@type` discriminant so that callers\ncan rely on the type at compile time without any `as unknown as` cast.\n\nDefined as an intersection type (rather than `extends IDataspaceProtocolPolicy`)\nso that the narrowed `\"@type\": \"EcosystemPolicy\"` can override the base\n`\"@type\": OdrlPolicyType` without a TS2430 extends-incompatibility error.\n`\"EcosystemPolicy\"` is a TWIN extension — not in the W3C ODRL `OdrlPolicyType`\nenum — so the interface hierarchy cannot express this narrowing directly.\n\nLives in `rights-management-models` (not `standards-dataspace-protocol`) because\nEcosystemPolicy is a TWIN platform extension — not a DSP specification concept —\nand `standards-dataspace-protocol` should remain a pure standards mirror.",
|
|
21369
|
-
"type": "object",
|
|
21370
|
-
"properties": {
|
|
21371
|
-
"@context": {
|
|
21372
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType"
|
|
21373
|
-
},
|
|
21374
|
-
"profile": {
|
|
21375
|
-
"anyOf": [
|
|
21376
|
-
{
|
|
21377
|
-
"type": "string"
|
|
21378
|
-
},
|
|
21379
|
-
{
|
|
21380
|
-
"type": "array",
|
|
21381
|
-
"items": {
|
|
21382
|
-
"type": "string"
|
|
21383
|
-
}
|
|
21384
|
-
}
|
|
21385
|
-
],
|
|
21386
|
-
"description": "The profile(s) this policy conforms to.\nIRIs identifying the ODRL Profile(s)."
|
|
21387
|
-
},
|
|
21388
|
-
"assigner": {
|
|
21389
|
-
"anyOf": [
|
|
21390
|
-
{
|
|
21391
|
-
"type": "string"
|
|
21392
|
-
},
|
|
21393
|
-
{
|
|
21394
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
21395
|
-
},
|
|
21396
|
-
{
|
|
21397
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
21398
|
-
},
|
|
21399
|
-
{
|
|
21400
|
-
"type": "array",
|
|
21401
|
-
"items": {
|
|
21402
|
-
"anyOf": [
|
|
21403
|
-
{
|
|
21404
|
-
"type": "string"
|
|
21405
|
-
},
|
|
21406
|
-
{
|
|
21407
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
21408
|
-
},
|
|
21409
|
-
{
|
|
21410
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
21411
|
-
}
|
|
21412
|
-
]
|
|
21413
|
-
}
|
|
21414
|
-
}
|
|
21415
|
-
],
|
|
21416
|
-
"description": "The assigner of the policy.\nApplies to all rules unless overridden at rule level."
|
|
21417
|
-
},
|
|
21418
|
-
"assignee": {
|
|
21419
|
-
"anyOf": [
|
|
21420
|
-
{
|
|
21421
|
-
"type": "string"
|
|
21422
|
-
},
|
|
21423
|
-
{
|
|
21424
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
21425
|
-
},
|
|
21426
|
-
{
|
|
21427
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
21428
|
-
},
|
|
21429
|
-
{
|
|
21430
|
-
"type": "array",
|
|
21431
|
-
"items": {
|
|
21432
|
-
"anyOf": [
|
|
21433
|
-
{
|
|
21434
|
-
"type": "string"
|
|
21435
|
-
},
|
|
21436
|
-
{
|
|
21437
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
21438
|
-
},
|
|
21439
|
-
{
|
|
21440
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
21441
|
-
}
|
|
21442
|
-
]
|
|
21443
|
-
}
|
|
21444
|
-
}
|
|
21445
|
-
],
|
|
21446
|
-
"description": "The assignee of the policy.\nApplies to all rules unless overridden at rule level."
|
|
21447
|
-
},
|
|
21448
|
-
"target": {
|
|
21449
|
-
"anyOf": [
|
|
21450
|
-
{
|
|
21451
|
-
"type": "string"
|
|
21452
|
-
},
|
|
21453
|
-
{
|
|
21454
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
21455
|
-
},
|
|
21456
|
-
{
|
|
21457
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
21458
|
-
},
|
|
21459
|
-
{
|
|
21460
|
-
"type": "array",
|
|
21461
|
-
"items": {
|
|
21462
|
-
"anyOf": [
|
|
21463
|
-
{
|
|
21464
|
-
"type": "string"
|
|
21465
|
-
},
|
|
21466
|
-
{
|
|
21467
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
21468
|
-
},
|
|
21469
|
-
{
|
|
21470
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
21471
|
-
}
|
|
21472
|
-
]
|
|
21473
|
-
}
|
|
21474
|
-
}
|
|
21475
|
-
],
|
|
21476
|
-
"description": "The target asset for the rule."
|
|
21477
|
-
},
|
|
21478
|
-
"action": {
|
|
21479
|
-
"anyOf": [
|
|
21480
|
-
{
|
|
21481
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
21482
|
-
},
|
|
21483
|
-
{
|
|
21484
|
-
"type": "string"
|
|
21485
|
-
},
|
|
21486
|
-
{
|
|
21487
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
21488
|
-
},
|
|
21489
|
-
{
|
|
21490
|
-
"type": "array",
|
|
21491
|
-
"items": {
|
|
21492
|
-
"anyOf": [
|
|
21493
|
-
{
|
|
21494
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
|
|
21495
|
-
},
|
|
21496
|
-
{
|
|
21497
|
-
"type": "string"
|
|
21498
|
-
},
|
|
21499
|
-
{
|
|
21500
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
21501
|
-
}
|
|
21502
|
-
]
|
|
21503
|
-
}
|
|
21504
|
-
}
|
|
21505
|
-
],
|
|
21506
|
-
"description": "The action associated with the rule."
|
|
21507
|
-
},
|
|
21508
|
-
"inheritFrom": {
|
|
21509
|
-
"anyOf": [
|
|
21510
|
-
{
|
|
21511
|
-
"type": "string"
|
|
21512
|
-
},
|
|
21513
|
-
{
|
|
21514
|
-
"type": "array",
|
|
21515
|
-
"items": {
|
|
21516
|
-
"type": "string"
|
|
21517
|
-
}
|
|
21518
|
-
}
|
|
21519
|
-
],
|
|
21520
|
-
"description": "The parent policy(ies) this policy inherits from.\nIRIs identifying the parent Policy(ies)."
|
|
21521
|
-
},
|
|
21522
|
-
"conflict": {
|
|
21523
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlConflictStrategyType"
|
|
21524
|
-
},
|
|
21525
|
-
"permission": {
|
|
21526
|
-
"anyOf": [
|
|
21527
|
-
{
|
|
21528
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
21529
|
-
},
|
|
21530
|
-
{
|
|
21531
|
-
"type": "array",
|
|
21532
|
-
"items": {
|
|
21533
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
21534
|
-
}
|
|
21535
|
-
}
|
|
21536
|
-
],
|
|
21537
|
-
"description": "The permissions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
21538
|
-
},
|
|
21539
|
-
"prohibition": {
|
|
21540
|
-
"anyOf": [
|
|
21541
|
-
{
|
|
21542
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
21543
|
-
},
|
|
21544
|
-
{
|
|
21545
|
-
"type": "array",
|
|
21546
|
-
"items": {
|
|
21547
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
21548
|
-
}
|
|
21549
|
-
}
|
|
21550
|
-
],
|
|
21551
|
-
"description": "The prohibitions in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
21552
|
-
},
|
|
21553
|
-
"obligation": {
|
|
21554
|
-
"anyOf": [
|
|
21555
|
-
{
|
|
21556
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
21557
|
-
},
|
|
21558
|
-
{
|
|
21559
|
-
"type": "array",
|
|
21560
|
-
"items": {
|
|
21561
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
21562
|
-
}
|
|
21563
|
-
}
|
|
21564
|
-
],
|
|
21565
|
-
"description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present."
|
|
21566
|
-
},
|
|
21567
|
-
"@id": {
|
|
21568
|
-
"type": "string",
|
|
21569
|
-
"description": "Unique identifier for the policy."
|
|
21570
|
-
},
|
|
21571
|
-
"@type": {
|
|
21572
|
-
"const": "EcosystemPolicy",
|
|
21573
|
-
"description": "The type must be \"EcosystemPolicy\"."
|
|
21574
|
-
}
|
|
21575
|
-
},
|
|
21576
|
-
"required": [
|
|
21577
|
-
"@context",
|
|
21578
|
-
"@id",
|
|
21579
|
-
"@type"
|
|
21580
|
-
]
|
|
21581
|
-
},
|
|
21582
21624
|
"RightsManagementPolicy": {
|
|
21583
|
-
"description": "Base type for any ODRL policy stored and managed by the TWIN rights-management PAP
|
|
21625
|
+
"description": "Base type for any ODRL policy stored and managed by the TWIN rights-management PAP.",
|
|
21584
21626
|
"type": "object",
|
|
21585
21627
|
"properties": {
|
|
21586
21628
|
"@context": {
|
|
@@ -21784,7 +21826,7 @@
|
|
|
21784
21826
|
"description": "Unique identifier for the policy."
|
|
21785
21827
|
},
|
|
21786
21828
|
"@type": {
|
|
21787
|
-
"$ref": "
|
|
21829
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicyType"
|
|
21788
21830
|
}
|
|
21789
21831
|
},
|
|
21790
21832
|
"required": [
|
|
@@ -21793,27 +21835,6 @@
|
|
|
21793
21835
|
"@type"
|
|
21794
21836
|
]
|
|
21795
21837
|
},
|
|
21796
|
-
"RightsManagementPolicyType": {
|
|
21797
|
-
"description": "TWIN rights-management policy types.",
|
|
21798
|
-
"anyOf": [
|
|
21799
|
-
{
|
|
21800
|
-
"const": "EcosystemPolicy",
|
|
21801
|
-
"description": "EcosystemPolicy type.\nA TWIN platform-level governance policy that carries obligations for data events.\nNot a bilateral contract — does not participate in DSP negotiation."
|
|
21802
|
-
},
|
|
21803
|
-
{
|
|
21804
|
-
"const": "Policy"
|
|
21805
|
-
},
|
|
21806
|
-
{
|
|
21807
|
-
"const": "Set"
|
|
21808
|
-
},
|
|
21809
|
-
{
|
|
21810
|
-
"const": "Offer"
|
|
21811
|
-
},
|
|
21812
|
-
{
|
|
21813
|
-
"const": "Agreement"
|
|
21814
|
-
}
|
|
21815
|
-
]
|
|
21816
|
-
},
|
|
21817
21838
|
"Rule": {
|
|
21818
21839
|
"description": "Rule defining how to extract data from an object.",
|
|
21819
21840
|
"type": "object",
|
|
@@ -21872,6 +21893,25 @@
|
|
|
21872
21893
|
},
|
|
21873
21894
|
"description": "The favicon for the server."
|
|
21874
21895
|
},
|
|
21896
|
+
"ServerHealthResponse": {
|
|
21897
|
+
"type": "object",
|
|
21898
|
+
"properties": {
|
|
21899
|
+
"status": {
|
|
21900
|
+
"$ref": "#/components/schemas/HealthStatus"
|
|
21901
|
+
},
|
|
21902
|
+
"components": {
|
|
21903
|
+
"type": "array",
|
|
21904
|
+
"items": {
|
|
21905
|
+
"$ref": "#/components/schemas/Health"
|
|
21906
|
+
}
|
|
21907
|
+
}
|
|
21908
|
+
},
|
|
21909
|
+
"required": [
|
|
21910
|
+
"status",
|
|
21911
|
+
"components"
|
|
21912
|
+
],
|
|
21913
|
+
"description": "The health for the server."
|
|
21914
|
+
},
|
|
21875
21915
|
"ServerInfo": {
|
|
21876
21916
|
"description": "The information about the server.",
|
|
21877
21917
|
"type": "object",
|
|
@@ -21893,17 +21933,24 @@
|
|
|
21893
21933
|
"ServerLivezResponse": {
|
|
21894
21934
|
"anyOf": [
|
|
21895
21935
|
{
|
|
21896
|
-
"const": "
|
|
21936
|
+
"const": "alive"
|
|
21897
21937
|
},
|
|
21898
21938
|
{
|
|
21899
|
-
"const": "
|
|
21939
|
+
"const": "dead"
|
|
21900
21940
|
}
|
|
21901
21941
|
],
|
|
21902
21942
|
"description": "The livez information for the server."
|
|
21903
21943
|
},
|
|
21904
|
-
"
|
|
21905
|
-
"
|
|
21906
|
-
|
|
21944
|
+
"ServerReadyzResponse": {
|
|
21945
|
+
"anyOf": [
|
|
21946
|
+
{
|
|
21947
|
+
"const": "ready"
|
|
21948
|
+
},
|
|
21949
|
+
{
|
|
21950
|
+
"const": "not ready"
|
|
21951
|
+
}
|
|
21952
|
+
],
|
|
21953
|
+
"description": "The readyz information for the server."
|
|
21907
21954
|
},
|
|
21908
21955
|
"ServerSpecResponse": {
|
|
21909
21956
|
"description": "The spec for the server."
|