Newer
Older
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"info": {
"title": "Agent",
"description": "Agent API",
"version": "1.0",
"contact": {}
},
"tags": [],
"servers": [],
"components": {
"securitySchemes": {
"bearer": {
"scheme": "bearer",
"bearerFormat": "JWT",
"type": "http"
},
"basic": {
"type": "http",
"scheme": "basic"
}
},
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
"CreateInvitationResponseDto": {
"type": "object",
"properties": {
"invitationUrl": {
"type": "string",
"description": "Example of long invitation url",
"example": "http://0.0.0.0:8001?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIzYWExNGIzNC04YTk5LTQxY2UtYTY3NC1jODUxYmVhMTIxMWEiLCJsYWJlbCI6IkRFeGNWYXNkX0FHRU5UXzQ1IiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMCIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHA6Ly8wLjAuMC4wOjgwMDEiLCJ0eXBlIjoiZGlkLWNvbW11bmljYXRpb24iLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3VFcHllc1pNa3k0a1BpQzhEOEplZERlcm55YTFuaTREMUF3ZmdnWWt6YmR4Il0sInJvdXRpbmdLZXlzIjpbXX1dfQ"
},
"shortInvitationUrl": {
"type": "string",
"example": "http://0.0.0.0:8001/invitations/85a7c179-122b-4d2d-9a86-d92ad31cef2b"
},
"outOfBandId": {
"type": "string",
"example": "85a7c179-122b-4d2d-9a86-d92ad31cef2b"
},
"role": {
"example": "sender",
"enum": [
"sender",
"receiver"
],
"type": "string"
},
"state": {
"example": "Done",
"enum": [
"initial",
"await-response",
"prepare-response",
"done"
],
"type": "string"
},
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
}
},
"CreateInvitationRequestDto": {
"type": "object",
"properties": {
"goal": {
"type": "string"
},
"label": {
"type": "string"
},
"alias": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"multiUseInvitation": {
"type": "boolean"
"AcceptInvitationRequestDto": {
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
"type": "object",
"properties": {
"invitationUrl": {
"type": "string",
"description": "Example of long invitation url",
"example": "http://0.0.0.0:8001?oob=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvb3V0LW9mLWJhbmQvMS4xL2ludml0YXRpb24iLCJAaWQiOiIzYWExNGIzNC04YTk5LTQxY2UtYTY3NC1jODUxYmVhMTIxMWEiLCJsYWJlbCI6IkRFeGNWYXNkX0FHRU5UXzQ1IiwiYWNjZXB0IjpbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwiaGFuZHNoYWtlX3Byb3RvY29scyI6WyJodHRwczovL2RpZGNvbW0ub3JnL2RpZGV4Y2hhbmdlLzEuMCIsImh0dHBzOi8vZGlkY29tbS5vcmcvY29ubmVjdGlvbnMvMS4wIl0sInNlcnZpY2VzIjpbeyJpZCI6IiNpbmxpbmUtMCIsInNlcnZpY2VFbmRwb2ludCI6Imh0dHA6Ly8wLjAuMC4wOjgwMDEiLCJ0eXBlIjoiZGlkLWNvbW11bmljYXRpb24iLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3VFcHllc1pNa3k0a1BpQzhEOEplZERlcm55YTFuaTREMUF3ZmdnWWt6YmR4Il0sInJvdXRpbmdLZXlzIjpbXX1dfQ"
},
"shortInvitationUrl": {
"type": "string",
"example": "http://0.0.0.0:8001/invitations/85a7c179-122b-4d2d-9a86-d92ad31cef2b"
}
},
"required": [
"invitationUrl",
"shortInvitationUrl"
]
},
"ConnectionRecordDto": {
"type": "object",
"properties": {
"state": {
"enum": [
"start",
"invitation-sent",
"invitation-received",
"request-sent",
"request-received",
"response-sent",
"response-received",
"abandoned",
"completed"
],
"type": "string"
},
"connectionName": {
"type": "string"
},
"alias": {
"type": "string"
},
"did": {
"type": "string"
},
"invitationDid": {
"type": "string"
},
"outOfBandId": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"BaseRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
}
},
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
"CreateSchemaRequestDto": {
"type": "object",
"properties": {
"name": {
"type": "string",
"example": "my test schema"
},
"attributes": {
"example": [
"first_name, last_name"
],
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string",
"example": "1.0.2",
"pattern": "/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/"
}
},
"required": [
"name",
"attributes",
"version"
]
},
"SchemaRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
"name": {
"type": "string"
},
"attributes": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string"
},
"issuerId": {
"type": "string"
},
"methodName": {
"type": "string"
}
},
"required": [
"name",
"attributes",
]
},
"IdReqDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"CreddefRecordDto": {
"type": "object",
"properties": {
"type": "string"
}
},
"required": [
"schemaId",
"issuerId",
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
]
},
"CreateCredentialDefinitionRequestDto": {
"type": "object",
"properties": {
"schemaId": {
"type": "string"
},
"tag": {
"type": "string"
}
},
"required": [
"schemaId",
"tag"
]
},
"OfferCredentialAttributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
]
},
"OfferCredentialRequestDto": {
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"example": "6464b521-005a-4379-91e0-a3692b31cafd"
},
"credentialDefinitionId": {
"type": "string"
},
"attributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OfferCredentialAttributes"
}
}
},
"required": [
"credentialDefinitionId",
"attributes"
]
},
"CredentialRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
"state": {
"enum": [
"proposal-sent",
"proposal-received",
"offer-sent",
"offer-received",
"declined",
"request-sent",
"request-received",
"credential-issued",
"credential-received",
"done",
"abandoned"
],
"type": "string"
},
"credentialRecordType": {
"type": "string"
},
"connectionId": {
"type": "string"
},
"attributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OfferCredentialAttributes"
}
},
"tags": {
"type": "object"
}
},
"required": [
"state",
"credentialRecordType",
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
]
},
"CredentialOfferResponseDto": {
"type": "object",
"properties": {
"credentialUrl": {
"type": "string",
"nullable": true
},
"shortCredentialUrl": {
"type": "string",
"nullable": true
},
"credentialRecord": {
"$ref": "#/components/schemas/CredentialRecordDto"
}
},
"required": [
"credentialUrl",
"shortCredentialUrl",
"credentialRecord"
]
},
"CredentialFormatDataDto": {
"type": "object",
"properties": {
"proposalAttributes": {
"type": "array",
"items": {
"type": "object"
}
},
"offerAttributes": {
"type": "array",
"items": {
"type": "object"
}
},
"anoncredsProposal": {
"type": "object"
},
"anoncredsOffer": {
"type": "object"
},
"anoncredsRequest": {
"type": "object"
},
"anoncredsCredential": {
"type": "object"
}
}
},
"AcceptCredentialDto": {
"type": "object",
"properties": {
"credentialId": {
"type": "string"
},
"credentialUrl": {
"type": "string"
}
},
"required": [
"credentialId",
"credentialUrl"
]
},
"MakeBasicMessageRequestDto": {
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"example": "6464b521-005a-4379-91e0-a3692b31cafd"
},
"type": "string",
"example": "hello world"
}
},
"required": [
"connectionId",
]
},
"MessageRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
"connectionId": {
"type": "string",
"example": "6464b521-005a-4379-91e0-a3692b31cafd"
},
"role": {
"enum": [
"sender",
"receiver"
],
"type": "string"
},
"sentTime": {
"type": "string"
},
"from": {
"type": "string",
"example": "example-ocm-name"
},
"to": {
"type": "string",
"example": "example-ocm-name"
},
"content": {
"type": "string",
"example": "hello world"
}
},
"required": [
"connectionId",
"role",
"sentTime",
]
},
"ProofRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
"connectionId": {
"type": "string"
},
"state": {
"enum": [
"proposal-sent",
"proposal-received",
"request-sent",
"request-received",
"presentation-sent",
"presentation-received",
"declined",
"abandoned",
"done"
],
"type": "string"
},
"tags": {
"type": "object"
}
},
"required": [
"state",
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
]
},
"ProofFormatDataDto": {
"type": "object",
"properties": {
"anoncredsProposal": {
"type": "object"
},
"anoncredsRequest": {
"type": "object"
},
"anoncredsPresentation": {
"type": "object"
}
}
},
"RequestProofAttribute": {
"type": "object",
"properties": {
"attributeName": {
"type": "string"
},
"credentialDefinitionId": {
"type": "string"
},
"schemaId": {
"type": "string"
}
},
"required": [
"attributeName",
"credentialDefinitionId",
"schemaId"
]
},
"RequestProofDto": {
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"example": "6464b521-005a-4379-91e0-a3692b31cafd"
},
"attributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RequestProofAttribute"
}
}
},
"required": [
"attributes"
]
},
"RequestProofResponseDto": {
"type": "object",
"properties": {
"proofUrl": {
"type": "string",
"nullable": true
},
"shortProofUrl": {
"type": "string",
"nullable": true
},
"proofRecord": {
"$ref": "#/components/schemas/ProofRecordDto"
}
},
"required": [
"proofUrl",
"shortProofUrl",
"proofRecord"
]
},
"AcceptProofDto": {
"type": "object",
"properties": {
"proofId": {
"type": "string"
},
"proofUrl": {
"type": "string"
}
},
"required": [
"proofId",
"proofUrl"
]
},
"DidRecordDto": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
"did": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"created",
"received"
]
},
"method": {
"type": "string"
},
"tags": {
"type": "object"
}
},
"required": [
"did",
"role",
"method",
"tags"
]