@twin.org/node 0.0.3-next.21 → 0.0.3-next.22
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 +13759 -1
- package/docs/changelog.md +14 -0
- package/docs/open-api/spec.json +610 -75
- package/package.json +2 -2
package/docs/open-api/spec.json
CHANGED
|
@@ -2467,6 +2467,132 @@
|
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
},
|
|
2470
|
+
"/identity/verifiable-credential/verify/document": {
|
|
2471
|
+
"post": {
|
|
2472
|
+
"operationId": "identityVerifiableCredentialVerifyDocument",
|
|
2473
|
+
"summary": "Verify an identity verifiable credential document",
|
|
2474
|
+
"tags": [
|
|
2475
|
+
"Identity"
|
|
2476
|
+
],
|
|
2477
|
+
"requestBody": {
|
|
2478
|
+
"description": "Request to verify a verifiable credential.",
|
|
2479
|
+
"required": true,
|
|
2480
|
+
"content": {
|
|
2481
|
+
"application/json": {
|
|
2482
|
+
"schema": {
|
|
2483
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredential"
|
|
2484
|
+
},
|
|
2485
|
+
"examples": {
|
|
2486
|
+
"identityVerifiableCredentialVerifyDocumentRequestExample": {
|
|
2487
|
+
"value": {
|
|
2488
|
+
"@context": [
|
|
2489
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
2490
|
+
"https://schema.org"
|
|
2491
|
+
],
|
|
2492
|
+
"id": "https://example.com/credentials/3732",
|
|
2493
|
+
"type": [
|
|
2494
|
+
"VerifiableCredential",
|
|
2495
|
+
"Person"
|
|
2496
|
+
],
|
|
2497
|
+
"credentialSubject": {
|
|
2498
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2499
|
+
"name": "Jane Doe"
|
|
2500
|
+
},
|
|
2501
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
2502
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
2503
|
+
"credentialStatus": {
|
|
2504
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
2505
|
+
"type": "BitstringStatusList",
|
|
2506
|
+
"revocationBitmapIndex": "5"
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
},
|
|
2514
|
+
"responses": {
|
|
2515
|
+
"200": {
|
|
2516
|
+
"description": "Response to verifying a verifiable credential.",
|
|
2517
|
+
"content": {
|
|
2518
|
+
"application/json": {
|
|
2519
|
+
"schema": {
|
|
2520
|
+
"$ref": "#/components/schemas/IdentityVerifiableCredentialVerifyResponse"
|
|
2521
|
+
},
|
|
2522
|
+
"examples": {
|
|
2523
|
+
"identityVerifiableCredentialVerifyResponseExample": {
|
|
2524
|
+
"value": {
|
|
2525
|
+
"revoked": false,
|
|
2526
|
+
"verifiableCredential": {
|
|
2527
|
+
"@context": [
|
|
2528
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
2529
|
+
"https://schema.org"
|
|
2530
|
+
],
|
|
2531
|
+
"id": "https://example.com/credentials/3732",
|
|
2532
|
+
"type": [
|
|
2533
|
+
"VerifiableCredential",
|
|
2534
|
+
"Person"
|
|
2535
|
+
],
|
|
2536
|
+
"credentialSubject": {
|
|
2537
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
2538
|
+
"name": "Jane Doe"
|
|
2539
|
+
},
|
|
2540
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
2541
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
2542
|
+
"credentialStatus": {
|
|
2543
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
2544
|
+
"type": "BitstringStatusList",
|
|
2545
|
+
"revocationBitmapIndex": "5"
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
"400": {
|
|
2555
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
2556
|
+
"content": {
|
|
2557
|
+
"application/json": {
|
|
2558
|
+
"schema": {
|
|
2559
|
+
"$ref": "#/components/schemas/Error"
|
|
2560
|
+
},
|
|
2561
|
+
"examples": {
|
|
2562
|
+
"exampleResponse": {
|
|
2563
|
+
"value": {
|
|
2564
|
+
"name": "GeneralError",
|
|
2565
|
+
"message": "errorMessage",
|
|
2566
|
+
"properties": {
|
|
2567
|
+
"foo": "bar"
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
"500": {
|
|
2576
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
2577
|
+
"content": {
|
|
2578
|
+
"application/json": {
|
|
2579
|
+
"schema": {
|
|
2580
|
+
"$ref": "#/components/schemas/Error"
|
|
2581
|
+
},
|
|
2582
|
+
"examples": {
|
|
2583
|
+
"exampleResponse": {
|
|
2584
|
+
"value": {
|
|
2585
|
+
"name": "InternalServerError",
|
|
2586
|
+
"message": "errorMessage"
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
},
|
|
2470
2596
|
"/identity/verifiable-credential/verify": {
|
|
2471
2597
|
"get": {
|
|
2472
2598
|
"operationId": "identityVerifiableCredentialVerify",
|
|
@@ -2486,17 +2612,6 @@
|
|
|
2486
2612
|
"example": "eyJraWQiOi...D1Z3AQ"
|
|
2487
2613
|
}
|
|
2488
2614
|
],
|
|
2489
|
-
"requestBody": {
|
|
2490
|
-
"description": "Request to verify a verifiable credential.",
|
|
2491
|
-
"required": true,
|
|
2492
|
-
"content": {
|
|
2493
|
-
"application/json": {
|
|
2494
|
-
"schema": {
|
|
2495
|
-
"$ref": "#/components/schemas/IdentityVerifiableCredentialVerifyRequest"
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
},
|
|
2500
2615
|
"responses": {
|
|
2501
2616
|
"200": {
|
|
2502
2617
|
"description": "Response to verifying a verifiable credential.",
|
|
@@ -12662,25 +12777,14 @@
|
|
|
12662
12777
|
}
|
|
12663
12778
|
}
|
|
12664
12779
|
},
|
|
12665
|
-
"/ais/
|
|
12780
|
+
"/ais/entries": {
|
|
12666
12781
|
"get": {
|
|
12667
|
-
"operationId": "
|
|
12668
|
-
"summary": "Get the entry objects
|
|
12782
|
+
"operationId": "auditableItemStreamListEntriesNoStream",
|
|
12783
|
+
"summary": "Get the entry objects for all streams",
|
|
12669
12784
|
"tags": [
|
|
12670
12785
|
"Auditable Item Stream"
|
|
12671
12786
|
],
|
|
12672
12787
|
"parameters": [
|
|
12673
|
-
{
|
|
12674
|
-
"name": "id",
|
|
12675
|
-
"description": "The id of the stream to get.",
|
|
12676
|
-
"in": "path",
|
|
12677
|
-
"required": true,
|
|
12678
|
-
"schema": {
|
|
12679
|
-
"type": "string"
|
|
12680
|
-
},
|
|
12681
|
-
"style": "simple",
|
|
12682
|
-
"example": "ais:1234567890"
|
|
12683
|
-
},
|
|
12684
12788
|
{
|
|
12685
12789
|
"name": "conditions",
|
|
12686
12790
|
"description": "The conditions to filter the stream, JSON stringified IComparator[].",
|
|
@@ -12699,6 +12803,15 @@
|
|
|
12699
12803
|
"type": "string"
|
|
12700
12804
|
}
|
|
12701
12805
|
},
|
|
12806
|
+
{
|
|
12807
|
+
"name": "verifyEntries",
|
|
12808
|
+
"description": "Should the entries be verified, defaults to false.",
|
|
12809
|
+
"in": "query",
|
|
12810
|
+
"required": false,
|
|
12811
|
+
"schema": {
|
|
12812
|
+
"type": "string"
|
|
12813
|
+
}
|
|
12814
|
+
},
|
|
12702
12815
|
{
|
|
12703
12816
|
"name": "order",
|
|
12704
12817
|
"description": "Retrieve the entries in ascending/descending time order, defaults to Ascending.",
|
|
@@ -12743,14 +12856,14 @@
|
|
|
12743
12856
|
],
|
|
12744
12857
|
"responses": {
|
|
12745
12858
|
"200": {
|
|
12746
|
-
"description": "Response to getting an auditable item stream entries
|
|
12859
|
+
"description": "Response to getting an auditable item stream entries.",
|
|
12747
12860
|
"content": {
|
|
12748
12861
|
"application/json": {
|
|
12749
12862
|
"schema": {
|
|
12750
|
-
"$ref": "https://schema.twindev.org/ais/
|
|
12863
|
+
"$ref": "https://schema.twindev.org/ais/AuditableItemStreamEntryList"
|
|
12751
12864
|
},
|
|
12752
12865
|
"examples": {
|
|
12753
|
-
"
|
|
12866
|
+
"auditableItemStreamListEntriesNoStreamResponseExample": {
|
|
12754
12867
|
"value": {
|
|
12755
12868
|
"@context": [
|
|
12756
12869
|
"https://schema.org",
|
|
@@ -12759,20 +12872,78 @@
|
|
|
12759
12872
|
],
|
|
12760
12873
|
"type": [
|
|
12761
12874
|
"ItemList",
|
|
12762
|
-
"
|
|
12875
|
+
"AuditableItemStreamEntryList"
|
|
12763
12876
|
],
|
|
12764
12877
|
"itemListElement": [
|
|
12765
12878
|
{
|
|
12766
|
-
"@context":
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12879
|
+
"@context": [
|
|
12880
|
+
"https://schema.twindev.org/ais/",
|
|
12881
|
+
"https://schema.twindev.org/common/"
|
|
12882
|
+
],
|
|
12883
|
+
"type": "AuditableItemStreamEntry",
|
|
12884
|
+
"id": "tst:1234567890",
|
|
12885
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
12886
|
+
"proofId": "0101010101010101010101010101010101010101010101010101010101010101",
|
|
12887
|
+
"index": 0,
|
|
12888
|
+
"entryObject": {
|
|
12889
|
+
"@context": "https://schema.org",
|
|
12890
|
+
"@type": "Event",
|
|
12891
|
+
"startDate": "2011-04-09T20:00:00Z",
|
|
12892
|
+
"description": "A description of the event"
|
|
12893
|
+
}
|
|
12894
|
+
}
|
|
12895
|
+
]
|
|
12896
|
+
}
|
|
12897
|
+
}
|
|
12898
|
+
}
|
|
12899
|
+
},
|
|
12900
|
+
"application/ld+json": {
|
|
12901
|
+
"schema": {
|
|
12902
|
+
"$ref": "https://schema.twindev.org/ais/AuditableItemStreamEntryList"
|
|
12903
|
+
},
|
|
12904
|
+
"examples": {
|
|
12905
|
+
"auditableItemStreamJsonLdListEntriesNoStreamResponseExample": {
|
|
12906
|
+
"value": {
|
|
12907
|
+
"@context": [
|
|
12908
|
+
"https://schema.org",
|
|
12909
|
+
"https://schema.twindev.org/ais/",
|
|
12910
|
+
"https://schema.twindev.org/common/"
|
|
12911
|
+
],
|
|
12912
|
+
"type": [
|
|
12913
|
+
"ItemList",
|
|
12914
|
+
"AuditableItemStreamEntryList"
|
|
12915
|
+
],
|
|
12916
|
+
"itemListElement": [
|
|
12917
|
+
{
|
|
12918
|
+
"@context": [
|
|
12919
|
+
"https://schema.twindev.org/ais/",
|
|
12920
|
+
"https://schema.twindev.org/common/"
|
|
12921
|
+
],
|
|
12922
|
+
"type": "AuditableItemStreamEntry",
|
|
12923
|
+
"id": "tst:1234567890",
|
|
12924
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
12925
|
+
"proofId": "0101010101010101010101010101010101010101010101010101010101010101",
|
|
12926
|
+
"index": 0,
|
|
12927
|
+
"entryObject": {
|
|
12928
|
+
"@context": "https://schema.org",
|
|
12929
|
+
"@type": "Event",
|
|
12930
|
+
"startDate": "2011-04-09T20:00:00Z",
|
|
12931
|
+
"description": "A description of the event"
|
|
12932
|
+
}
|
|
12770
12933
|
}
|
|
12771
12934
|
]
|
|
12772
12935
|
}
|
|
12773
12936
|
}
|
|
12774
12937
|
}
|
|
12775
12938
|
}
|
|
12939
|
+
},
|
|
12940
|
+
"headers": {
|
|
12941
|
+
"content-type": {
|
|
12942
|
+
"schema": {
|
|
12943
|
+
"type": "string"
|
|
12944
|
+
},
|
|
12945
|
+
"description": "e.g. application/ld+json"
|
|
12946
|
+
}
|
|
12776
12947
|
}
|
|
12777
12948
|
},
|
|
12778
12949
|
"400": {
|
|
@@ -12856,47 +13027,424 @@
|
|
|
12856
13027
|
}
|
|
12857
13028
|
}
|
|
12858
13029
|
},
|
|
12859
|
-
"/
|
|
12860
|
-
"
|
|
12861
|
-
"operationId": "
|
|
12862
|
-
"summary": "
|
|
13030
|
+
"/ais/{id}/entries/objects": {
|
|
13031
|
+
"get": {
|
|
13032
|
+
"operationId": "auditableItemStreamListEntryObjects",
|
|
13033
|
+
"summary": "Get the entry objects in a stream",
|
|
12863
13034
|
"tags": [
|
|
12864
|
-
"
|
|
13035
|
+
"Auditable Item Stream"
|
|
12865
13036
|
],
|
|
12866
13037
|
"parameters": [
|
|
12867
13038
|
{
|
|
12868
|
-
"name": "
|
|
12869
|
-
"
|
|
13039
|
+
"name": "id",
|
|
13040
|
+
"description": "The id of the stream to get.",
|
|
13041
|
+
"in": "path",
|
|
12870
13042
|
"required": true,
|
|
12871
13043
|
"schema": {
|
|
12872
13044
|
"type": "string"
|
|
12873
13045
|
},
|
|
12874
|
-
"style": "simple"
|
|
13046
|
+
"style": "simple",
|
|
13047
|
+
"example": "ais:1234567890"
|
|
12875
13048
|
},
|
|
12876
13049
|
{
|
|
12877
|
-
"name": "
|
|
12878
|
-
"
|
|
12879
|
-
"
|
|
13050
|
+
"name": "conditions",
|
|
13051
|
+
"description": "The conditions to filter the stream, JSON stringified IComparator[].",
|
|
13052
|
+
"in": "query",
|
|
13053
|
+
"required": false,
|
|
12880
13054
|
"schema": {
|
|
12881
13055
|
"type": "string"
|
|
12882
|
-
}
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
13056
|
+
}
|
|
13057
|
+
},
|
|
13058
|
+
{
|
|
13059
|
+
"name": "includeDeleted",
|
|
13060
|
+
"description": "Whether to include deleted entries, defaults to false.",
|
|
13061
|
+
"in": "query",
|
|
13062
|
+
"required": false,
|
|
13063
|
+
"schema": {
|
|
13064
|
+
"type": "string"
|
|
13065
|
+
}
|
|
13066
|
+
},
|
|
13067
|
+
{
|
|
13068
|
+
"name": "order",
|
|
13069
|
+
"description": "Retrieve the entries in ascending/descending time order, defaults to Ascending.",
|
|
13070
|
+
"in": "query",
|
|
13071
|
+
"required": false,
|
|
13072
|
+
"schema": {
|
|
13073
|
+
"$ref": "#/components/schemas/SortDirection"
|
|
13074
|
+
}
|
|
13075
|
+
},
|
|
13076
|
+
{
|
|
13077
|
+
"name": "limit",
|
|
13078
|
+
"description": "How many entries to return.",
|
|
13079
|
+
"in": "query",
|
|
13080
|
+
"required": false,
|
|
13081
|
+
"schema": {
|
|
13082
|
+
"type": "string"
|
|
13083
|
+
}
|
|
13084
|
+
},
|
|
13085
|
+
{
|
|
13086
|
+
"name": "cursor",
|
|
13087
|
+
"description": "Cursor to use for next chunk of data.",
|
|
13088
|
+
"in": "query",
|
|
13089
|
+
"required": false,
|
|
13090
|
+
"schema": {
|
|
13091
|
+
"type": "string"
|
|
13092
|
+
}
|
|
13093
|
+
},
|
|
13094
|
+
{
|
|
13095
|
+
"name": "accept",
|
|
13096
|
+
"in": "header",
|
|
13097
|
+
"required": true,
|
|
13098
|
+
"schema": {
|
|
13099
|
+
"type": "string"
|
|
13100
|
+
},
|
|
13101
|
+
"style": "simple"
|
|
13102
|
+
}
|
|
13103
|
+
],
|
|
13104
|
+
"security": [
|
|
13105
|
+
{
|
|
13106
|
+
"jwtBearerAuthScheme": []
|
|
13107
|
+
}
|
|
13108
|
+
],
|
|
13109
|
+
"responses": {
|
|
13110
|
+
"200": {
|
|
13111
|
+
"description": "Response to getting an auditable item stream entries objects.",
|
|
13112
|
+
"content": {
|
|
13113
|
+
"application/json": {
|
|
13114
|
+
"schema": {
|
|
13115
|
+
"$ref": "https://schema.twindev.org/ais/AuditableItemStreamEntryObjectList"
|
|
13116
|
+
},
|
|
13117
|
+
"examples": {
|
|
13118
|
+
"auditableItemStreamListEntryObjectsResponseExample": {
|
|
13119
|
+
"value": {
|
|
13120
|
+
"@context": [
|
|
13121
|
+
"https://schema.org",
|
|
13122
|
+
"https://schema.twindev.org/ais/",
|
|
13123
|
+
"https://schema.twindev.org/common/"
|
|
13124
|
+
],
|
|
13125
|
+
"type": [
|
|
13126
|
+
"ItemList",
|
|
13127
|
+
"AuditableItemStreamEntryObjectList"
|
|
13128
|
+
],
|
|
13129
|
+
"itemListElement": [
|
|
13130
|
+
{
|
|
13131
|
+
"@context": "https://schema.org",
|
|
13132
|
+
"@type": "Event",
|
|
13133
|
+
"startDate": "2011-04-09T20:00:00Z",
|
|
13134
|
+
"description": "A description of the event"
|
|
13135
|
+
}
|
|
13136
|
+
]
|
|
13137
|
+
}
|
|
13138
|
+
}
|
|
13139
|
+
}
|
|
13140
|
+
}
|
|
13141
|
+
}
|
|
13142
|
+
},
|
|
13143
|
+
"400": {
|
|
13144
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
13145
|
+
"content": {
|
|
13146
|
+
"application/json": {
|
|
13147
|
+
"schema": {
|
|
13148
|
+
"$ref": "#/components/schemas/Error"
|
|
13149
|
+
},
|
|
13150
|
+
"examples": {
|
|
13151
|
+
"exampleResponse": {
|
|
13152
|
+
"value": {
|
|
13153
|
+
"name": "GeneralError",
|
|
13154
|
+
"message": "errorMessage",
|
|
13155
|
+
"properties": {
|
|
13156
|
+
"foo": "bar"
|
|
13157
|
+
}
|
|
13158
|
+
}
|
|
13159
|
+
}
|
|
13160
|
+
}
|
|
13161
|
+
}
|
|
13162
|
+
}
|
|
13163
|
+
},
|
|
13164
|
+
"401": {
|
|
13165
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
13166
|
+
"content": {
|
|
13167
|
+
"application/json": {
|
|
13168
|
+
"schema": {
|
|
13169
|
+
"$ref": "#/components/schemas/Error"
|
|
13170
|
+
},
|
|
13171
|
+
"examples": {
|
|
13172
|
+
"exampleResponse": {
|
|
13173
|
+
"value": {
|
|
13174
|
+
"name": "UnauthorizedError",
|
|
13175
|
+
"message": "errorMessage"
|
|
13176
|
+
}
|
|
13177
|
+
}
|
|
13178
|
+
}
|
|
13179
|
+
}
|
|
13180
|
+
}
|
|
13181
|
+
},
|
|
13182
|
+
"404": {
|
|
13183
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
13184
|
+
"content": {
|
|
13185
|
+
"application/json": {
|
|
13186
|
+
"schema": {
|
|
13187
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
13188
|
+
},
|
|
13189
|
+
"examples": {
|
|
13190
|
+
"exampleResponse": {
|
|
13191
|
+
"value": {
|
|
13192
|
+
"name": "NotFoundError",
|
|
13193
|
+
"message": "errorMessage",
|
|
13194
|
+
"properties": {
|
|
13195
|
+
"notFoundId": "1"
|
|
13196
|
+
}
|
|
13197
|
+
}
|
|
13198
|
+
}
|
|
13199
|
+
}
|
|
13200
|
+
}
|
|
13201
|
+
}
|
|
13202
|
+
},
|
|
13203
|
+
"500": {
|
|
13204
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
13205
|
+
"content": {
|
|
13206
|
+
"application/json": {
|
|
13207
|
+
"schema": {
|
|
13208
|
+
"$ref": "#/components/schemas/Error"
|
|
13209
|
+
},
|
|
13210
|
+
"examples": {
|
|
13211
|
+
"exampleResponse": {
|
|
13212
|
+
"value": {
|
|
13213
|
+
"name": "InternalServerError",
|
|
13214
|
+
"message": "errorMessage"
|
|
13215
|
+
}
|
|
13216
|
+
}
|
|
13217
|
+
}
|
|
13218
|
+
}
|
|
13219
|
+
}
|
|
13220
|
+
}
|
|
13221
|
+
}
|
|
13222
|
+
}
|
|
13223
|
+
},
|
|
13224
|
+
"/ais/entries/objects": {
|
|
13225
|
+
"get": {
|
|
13226
|
+
"operationId": "auditableItemStreamListEntryObjectsNoStream",
|
|
13227
|
+
"summary": "Get the entry objects for all streams",
|
|
13228
|
+
"tags": [
|
|
13229
|
+
"Auditable Item Stream"
|
|
13230
|
+
],
|
|
13231
|
+
"parameters": [
|
|
13232
|
+
{
|
|
13233
|
+
"name": "conditions",
|
|
13234
|
+
"description": "The conditions to filter the stream, JSON stringified IComparator[].",
|
|
13235
|
+
"in": "query",
|
|
13236
|
+
"required": false,
|
|
13237
|
+
"schema": {
|
|
13238
|
+
"type": "string"
|
|
13239
|
+
}
|
|
13240
|
+
},
|
|
13241
|
+
{
|
|
13242
|
+
"name": "includeDeleted",
|
|
13243
|
+
"description": "Whether to include deleted entries, defaults to false.",
|
|
13244
|
+
"in": "query",
|
|
13245
|
+
"required": false,
|
|
13246
|
+
"schema": {
|
|
13247
|
+
"type": "string"
|
|
13248
|
+
}
|
|
13249
|
+
},
|
|
13250
|
+
{
|
|
13251
|
+
"name": "order",
|
|
13252
|
+
"description": "Retrieve the entries in ascending/descending time order, defaults to Ascending.",
|
|
13253
|
+
"in": "query",
|
|
13254
|
+
"required": false,
|
|
13255
|
+
"schema": {
|
|
13256
|
+
"$ref": "#/components/schemas/SortDirection"
|
|
13257
|
+
}
|
|
13258
|
+
},
|
|
13259
|
+
{
|
|
13260
|
+
"name": "limit",
|
|
13261
|
+
"description": "How many entries to return.",
|
|
13262
|
+
"in": "query",
|
|
13263
|
+
"required": false,
|
|
13264
|
+
"schema": {
|
|
13265
|
+
"type": "string"
|
|
13266
|
+
}
|
|
13267
|
+
},
|
|
13268
|
+
{
|
|
13269
|
+
"name": "cursor",
|
|
13270
|
+
"description": "Cursor to use for next chunk of data.",
|
|
13271
|
+
"in": "query",
|
|
13272
|
+
"required": false,
|
|
13273
|
+
"schema": {
|
|
13274
|
+
"type": "string"
|
|
13275
|
+
}
|
|
13276
|
+
},
|
|
13277
|
+
{
|
|
13278
|
+
"name": "accept",
|
|
13279
|
+
"in": "header",
|
|
13280
|
+
"required": true,
|
|
13281
|
+
"schema": {
|
|
13282
|
+
"type": "string"
|
|
13283
|
+
},
|
|
13284
|
+
"style": "simple"
|
|
13285
|
+
}
|
|
13286
|
+
],
|
|
13287
|
+
"security": [
|
|
13288
|
+
{
|
|
13289
|
+
"jwtBearerAuthScheme": []
|
|
13290
|
+
}
|
|
13291
|
+
],
|
|
13292
|
+
"responses": {
|
|
13293
|
+
"200": {
|
|
13294
|
+
"description": "Response to getting an auditable item stream entries objects.",
|
|
13295
|
+
"content": {
|
|
13296
|
+
"application/json": {
|
|
13297
|
+
"schema": {
|
|
13298
|
+
"$ref": "https://schema.twindev.org/ais/AuditableItemStreamEntryObjectList"
|
|
13299
|
+
},
|
|
13300
|
+
"examples": {
|
|
13301
|
+
"auditableItemStreamListEntryObjectsNoStreamResponseExample": {
|
|
13302
|
+
"value": {
|
|
13303
|
+
"@context": [
|
|
13304
|
+
"https://schema.org",
|
|
13305
|
+
"https://schema.twindev.org/ais/",
|
|
13306
|
+
"https://schema.twindev.org/common/"
|
|
13307
|
+
],
|
|
13308
|
+
"type": [
|
|
13309
|
+
"ItemList",
|
|
13310
|
+
"AuditableItemStreamEntryObjectList"
|
|
13311
|
+
],
|
|
13312
|
+
"itemListElement": [
|
|
13313
|
+
{
|
|
13314
|
+
"@context": "https://schema.org",
|
|
13315
|
+
"@type": "Event",
|
|
13316
|
+
"startDate": "2011-04-09T20:00:00Z",
|
|
13317
|
+
"description": "A description of the event"
|
|
13318
|
+
}
|
|
13319
|
+
]
|
|
13320
|
+
}
|
|
13321
|
+
}
|
|
13322
|
+
}
|
|
13323
|
+
}
|
|
13324
|
+
}
|
|
13325
|
+
},
|
|
13326
|
+
"400": {
|
|
13327
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
13328
|
+
"content": {
|
|
13329
|
+
"application/json": {
|
|
13330
|
+
"schema": {
|
|
13331
|
+
"$ref": "#/components/schemas/Error"
|
|
13332
|
+
},
|
|
13333
|
+
"examples": {
|
|
13334
|
+
"exampleResponse": {
|
|
13335
|
+
"value": {
|
|
13336
|
+
"name": "GeneralError",
|
|
13337
|
+
"message": "errorMessage",
|
|
13338
|
+
"properties": {
|
|
13339
|
+
"foo": "bar"
|
|
13340
|
+
}
|
|
13341
|
+
}
|
|
13342
|
+
}
|
|
13343
|
+
}
|
|
13344
|
+
}
|
|
13345
|
+
}
|
|
13346
|
+
},
|
|
13347
|
+
"401": {
|
|
13348
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
13349
|
+
"content": {
|
|
13350
|
+
"application/json": {
|
|
13351
|
+
"schema": {
|
|
13352
|
+
"$ref": "#/components/schemas/Error"
|
|
13353
|
+
},
|
|
13354
|
+
"examples": {
|
|
13355
|
+
"exampleResponse": {
|
|
13356
|
+
"value": {
|
|
13357
|
+
"name": "UnauthorizedError",
|
|
13358
|
+
"message": "errorMessage"
|
|
13359
|
+
}
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
13362
|
+
}
|
|
13363
|
+
}
|
|
13364
|
+
},
|
|
13365
|
+
"404": {
|
|
13366
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
13367
|
+
"content": {
|
|
13368
|
+
"application/json": {
|
|
13369
|
+
"schema": {
|
|
13370
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
13371
|
+
},
|
|
13372
|
+
"examples": {
|
|
13373
|
+
"exampleResponse": {
|
|
13374
|
+
"value": {
|
|
13375
|
+
"name": "NotFoundError",
|
|
13376
|
+
"message": "errorMessage",
|
|
13377
|
+
"properties": {
|
|
13378
|
+
"notFoundId": "1"
|
|
13379
|
+
}
|
|
13380
|
+
}
|
|
13381
|
+
}
|
|
13382
|
+
}
|
|
13383
|
+
}
|
|
13384
|
+
}
|
|
13385
|
+
},
|
|
13386
|
+
"500": {
|
|
13387
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
13388
|
+
"content": {
|
|
13389
|
+
"application/json": {
|
|
13390
|
+
"schema": {
|
|
13391
|
+
"$ref": "#/components/schemas/Error"
|
|
13392
|
+
},
|
|
13393
|
+
"examples": {
|
|
13394
|
+
"exampleResponse": {
|
|
13395
|
+
"value": {
|
|
13396
|
+
"name": "InternalServerError",
|
|
13397
|
+
"message": "errorMessage"
|
|
13398
|
+
}
|
|
13399
|
+
}
|
|
13400
|
+
}
|
|
13401
|
+
}
|
|
13402
|
+
}
|
|
13403
|
+
}
|
|
13404
|
+
}
|
|
13405
|
+
}
|
|
13406
|
+
},
|
|
13407
|
+
"/synchronised-storage/sync-changeset": {
|
|
13408
|
+
"post": {
|
|
13409
|
+
"operationId": "synchronisedStorageSyncChangeSetRequest",
|
|
13410
|
+
"summary": "Request that the node perform a sync request for a changeset.",
|
|
13411
|
+
"tags": [
|
|
13412
|
+
"Synchronised Storage"
|
|
13413
|
+
],
|
|
13414
|
+
"parameters": [
|
|
13415
|
+
{
|
|
13416
|
+
"name": "accept",
|
|
13417
|
+
"in": "header",
|
|
13418
|
+
"required": true,
|
|
13419
|
+
"schema": {
|
|
13420
|
+
"type": "string"
|
|
13421
|
+
},
|
|
13422
|
+
"style": "simple"
|
|
13423
|
+
},
|
|
13424
|
+
{
|
|
13425
|
+
"name": "authorization",
|
|
13426
|
+
"in": "header",
|
|
13427
|
+
"required": true,
|
|
13428
|
+
"schema": {
|
|
13429
|
+
"type": "string"
|
|
13430
|
+
},
|
|
13431
|
+
"style": "simple",
|
|
13432
|
+
"example": "z3V32BP9ShC...z3V32BP9ShC"
|
|
13433
|
+
}
|
|
13434
|
+
],
|
|
13435
|
+
"requestBody": {
|
|
13436
|
+
"description": "Request a trusted node to perform a sync request for a changeset.",
|
|
13437
|
+
"required": true,
|
|
13438
|
+
"content": {
|
|
13439
|
+
"application/json": {
|
|
13440
|
+
"schema": {
|
|
13441
|
+
"$ref": "#/components/schemas/SyncChangeSet"
|
|
13442
|
+
},
|
|
13443
|
+
"examples": {
|
|
13444
|
+
"synchronisedStorageSyncChangeSetRequestExample": {
|
|
13445
|
+
"value": {
|
|
13446
|
+
"@context": "https://schema.twindev.org/synchronised-storage/",
|
|
13447
|
+
"type": "ChangeSet",
|
|
12900
13448
|
"id": "0909090909090909090909090909090909090909090909090909090909090909",
|
|
12901
13449
|
"dateCreated": "2025-05-29T01:00:00.000Z",
|
|
12902
13450
|
"dateModified": "2025-05-29T01:00:00.000Z",
|
|
@@ -19784,19 +20332,6 @@
|
|
|
19784
20332
|
"additionalProperties": false,
|
|
19785
20333
|
"description": "The response payload."
|
|
19786
20334
|
},
|
|
19787
|
-
"IdentityVerifiableCredentialVerifyRequest": {
|
|
19788
|
-
"type": "object",
|
|
19789
|
-
"properties": {
|
|
19790
|
-
"credential": {
|
|
19791
|
-
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredential"
|
|
19792
|
-
}
|
|
19793
|
-
},
|
|
19794
|
-
"required": [
|
|
19795
|
-
"credential"
|
|
19796
|
-
],
|
|
19797
|
-
"additionalProperties": false,
|
|
19798
|
-
"description": "The body parameters."
|
|
19799
|
-
},
|
|
19800
20335
|
"IdentityVerifiableCredentialVerifyResponse": {
|
|
19801
20336
|
"type": "object",
|
|
19802
20337
|
"properties": {
|