@eudiplo/sdk-core 9.1.0-main.e4e29b5 → 9.1.0-main.e70bc63
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/README.md +4 -1
- package/dist/api/client/client.gen.d.mts +1 -1
- package/dist/api/client/client.gen.d.ts +1 -1
- package/dist/api/client/index.d.mts +1 -1
- package/dist/api/client/index.d.ts +1 -1
- package/dist/api/client/types.gen.d.mts +1 -1
- package/dist/api/client/types.gen.d.ts +1 -1
- package/dist/api/client.gen.d.mts +4 -3
- package/dist/api/client.gen.d.ts +4 -3
- package/dist/api/index.d.mts +143 -105
- package/dist/api/index.d.ts +143 -105
- package/dist/api/index.js +145 -111
- package/dist/api/index.mjs +122 -91
- package/dist/index.d.mts +29 -7
- package/dist/index.d.ts +29 -7
- package/dist/index.js +289 -126
- package/dist/index.mjs +265 -106
- package/dist/{types.gen-DZ4ax15r.d.mts → types.gen-CT4QCfOf.d.mts} +2 -1
- package/dist/{types.gen-DZ4ax15r.d.ts → types.gen-CT4QCfOf.d.ts} +2 -1
- package/dist/{types.gen-DDVFZeVi.d.mts → types.gen-DLUMg7N6.d.mts} +2320 -1512
- package/dist/{types.gen-DDVFZeVi.d.ts → types.gen-DLUMg7N6.d.ts} +2320 -1512
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -847,6 +847,11 @@ var authControllerGetOAuth2Token = (options) => (options.client ?? client).post(
|
|
|
847
847
|
...options.headers
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
|
+
var authControllerGetCaller = (options) => (options?.client ?? client).get({
|
|
851
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
852
|
+
url: "/api/auth/me",
|
|
853
|
+
...options
|
|
854
|
+
});
|
|
850
855
|
var tenantControllerGetTenants = (options) => (options?.client ?? client).get({
|
|
851
856
|
security: [{ scheme: "bearer", type: "http" }],
|
|
852
857
|
url: "/api/tenant",
|
|
@@ -880,6 +885,20 @@ var tenantControllerUpdateTenant = (options) => (options.client ?? client).patch
|
|
|
880
885
|
...options.headers
|
|
881
886
|
}
|
|
882
887
|
});
|
|
888
|
+
var defaultAccessKeyChainControllerGet = (options) => (options?.client ?? client).get({
|
|
889
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
890
|
+
url: "/api/key-chain/access/default",
|
|
891
|
+
...options
|
|
892
|
+
});
|
|
893
|
+
var defaultAccessKeyChainControllerSet = (options) => (options.client ?? client).put({
|
|
894
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
895
|
+
url: "/api/key-chain/access/default",
|
|
896
|
+
...options,
|
|
897
|
+
headers: {
|
|
898
|
+
"Content-Type": "application/json",
|
|
899
|
+
...options.headers
|
|
900
|
+
}
|
|
901
|
+
});
|
|
883
902
|
var auditLogControllerGetAuditLogs = (options) => (options?.client ?? client).get({
|
|
884
903
|
security: [{ scheme: "bearer", type: "http" }],
|
|
885
904
|
url: "/api/admin/audit-logs",
|
|
@@ -923,43 +942,6 @@ var clientControllerRotateClientSecret = (options) => (options.client ?? client)
|
|
|
923
942
|
url: "/api/client/{id}/rotate-secret",
|
|
924
943
|
...options
|
|
925
944
|
});
|
|
926
|
-
var registrarControllerDeleteConfig = (options) => (options?.client ?? client).delete({
|
|
927
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
928
|
-
url: "/api/registrar/config",
|
|
929
|
-
...options
|
|
930
|
-
});
|
|
931
|
-
var registrarControllerGetConfig = (options) => (options?.client ?? client).get({
|
|
932
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
933
|
-
url: "/api/registrar/config",
|
|
934
|
-
...options
|
|
935
|
-
});
|
|
936
|
-
var registrarControllerUpdateConfig = (options) => (options.client ?? client).patch({
|
|
937
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
938
|
-
url: "/api/registrar/config",
|
|
939
|
-
...options,
|
|
940
|
-
headers: {
|
|
941
|
-
"Content-Type": "application/json",
|
|
942
|
-
...options.headers
|
|
943
|
-
}
|
|
944
|
-
});
|
|
945
|
-
var registrarControllerCreateConfig = (options) => (options.client ?? client).post({
|
|
946
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
947
|
-
url: "/api/registrar/config",
|
|
948
|
-
...options,
|
|
949
|
-
headers: {
|
|
950
|
-
"Content-Type": "application/json",
|
|
951
|
-
...options.headers
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
var registrarControllerCreateAccessCertificate = (options) => (options.client ?? client).post({
|
|
955
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
956
|
-
url: "/api/registrar/access-certificate",
|
|
957
|
-
...options,
|
|
958
|
-
headers: {
|
|
959
|
-
"Content-Type": "application/json",
|
|
960
|
-
...options.headers
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
945
|
var userControllerGetUsers = (options) => (options?.client ?? client).get({
|
|
964
946
|
security: [{ scheme: "bearer", type: "http" }],
|
|
965
947
|
url: "/api/user",
|
|
@@ -1060,6 +1042,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
|
|
|
1060
1042
|
url: "/api/key-chain/{id}/export",
|
|
1061
1043
|
...options
|
|
1062
1044
|
});
|
|
1045
|
+
var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
|
|
1046
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
+
url: "/api/key-chain/{id}/csr",
|
|
1048
|
+
...options
|
|
1049
|
+
});
|
|
1063
1050
|
var keyChainControllerImport = (options) => (options.client ?? client).post({
|
|
1064
1051
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1065
1052
|
url: "/api/key-chain/import",
|
|
@@ -1181,11 +1168,6 @@ var presentationManagementControllerResolveSchemaMetadataJwt = (options) => (opt
|
|
|
1181
1168
|
...options.headers
|
|
1182
1169
|
}
|
|
1183
1170
|
});
|
|
1184
|
-
var presentationManagementControllerListSchemaMetadataCatalog = (options) => (options?.client ?? client).get({
|
|
1185
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1186
|
-
url: "/api/verifier/config/schema-metadata/catalog",
|
|
1187
|
-
...options
|
|
1188
|
-
});
|
|
1189
1171
|
var presentationManagementControllerDeleteConfiguration = (options) => (options.client ?? client).delete({
|
|
1190
1172
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1191
1173
|
url: "/api/verifier/config/{id}",
|
|
@@ -1205,11 +1187,6 @@ var presentationManagementControllerUpdateConfiguration = (options) => (options.
|
|
|
1205
1187
|
...options.headers
|
|
1206
1188
|
}
|
|
1207
1189
|
});
|
|
1208
|
-
var presentationManagementControllerReissueRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1209
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1210
|
-
url: "/api/verifier/config/{id}/registration-cert/reissue",
|
|
1211
|
-
...options
|
|
1212
|
-
});
|
|
1213
1190
|
var trustListControllerGetAllTrustLists = (options) => (options?.client ?? client).get({
|
|
1214
1191
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1215
1192
|
url: "/api/trust-list",
|
|
@@ -1273,11 +1250,49 @@ var cacheControllerClearTrustListCache = (options) => (options?.client ?? client
|
|
|
1273
1250
|
url: "/api/cache/trust-list",
|
|
1274
1251
|
...options
|
|
1275
1252
|
});
|
|
1253
|
+
var cacheControllerForgetTrustListSequenceNumbers = (options) => (options?.client ?? client).delete({
|
|
1254
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1255
|
+
url: "/api/cache/trust-list/sequence-numbers",
|
|
1256
|
+
...options
|
|
1257
|
+
});
|
|
1276
1258
|
var cacheControllerClearStatusListCache = (options) => (options?.client ?? client).delete({
|
|
1277
1259
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1278
1260
|
url: "/api/cache/status-list",
|
|
1279
1261
|
...options
|
|
1280
1262
|
});
|
|
1263
|
+
var federationTrustAnchorControllerGetAll = (options) => (options?.client ?? client).get({
|
|
1264
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1265
|
+
url: "/api/federation-trust-anchor",
|
|
1266
|
+
...options
|
|
1267
|
+
});
|
|
1268
|
+
var federationTrustAnchorControllerCreate = (options) => (options.client ?? client).post({
|
|
1269
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1270
|
+
url: "/api/federation-trust-anchor",
|
|
1271
|
+
...options,
|
|
1272
|
+
headers: {
|
|
1273
|
+
"Content-Type": "application/json",
|
|
1274
|
+
...options.headers
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
var federationTrustAnchorControllerDelete = (options) => (options.client ?? client).delete({
|
|
1278
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1279
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1280
|
+
...options
|
|
1281
|
+
});
|
|
1282
|
+
var federationTrustAnchorControllerGetById = (options) => (options.client ?? client).get({
|
|
1283
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1284
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1285
|
+
...options
|
|
1286
|
+
});
|
|
1287
|
+
var federationTrustAnchorControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1288
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1289
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1290
|
+
...options,
|
|
1291
|
+
headers: {
|
|
1292
|
+
"Content-Type": "application/json",
|
|
1293
|
+
...options.headers
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1281
1296
|
var sessionControllerGetAllSessions = (options) => (options?.client ?? client).get({
|
|
1282
1297
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1283
1298
|
url: "/api/session",
|
|
@@ -1449,122 +1464,133 @@ var issuanceConfigControllerStoreIssuanceConfiguration = (options) => (options.c
|
|
|
1449
1464
|
...options.headers
|
|
1450
1465
|
}
|
|
1451
1466
|
});
|
|
1452
|
-
var
|
|
1467
|
+
var credentialOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1453
1468
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1454
|
-
url: "/api/issuer/
|
|
1455
|
-
...options
|
|
1469
|
+
url: "/api/issuer/offer",
|
|
1470
|
+
...options,
|
|
1471
|
+
headers: {
|
|
1472
|
+
"Content-Type": "application/json",
|
|
1473
|
+
...options.headers
|
|
1474
|
+
}
|
|
1456
1475
|
});
|
|
1457
|
-
var
|
|
1476
|
+
var deferredControllerCompleteDeferred = (options) => (options.client ?? client).post({
|
|
1458
1477
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1459
|
-
url: "/api/
|
|
1478
|
+
url: "/api/issuer/deferred/{transactionId}/complete",
|
|
1460
1479
|
...options,
|
|
1461
1480
|
headers: {
|
|
1462
1481
|
"Content-Type": "application/json",
|
|
1463
1482
|
...options.headers
|
|
1464
1483
|
}
|
|
1465
1484
|
});
|
|
1466
|
-
var
|
|
1485
|
+
var deferredControllerFailDeferred = (options) => (options.client ?? client).post({
|
|
1467
1486
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1468
|
-
url: "/api/
|
|
1487
|
+
url: "/api/issuer/deferred/{transactionId}/fail",
|
|
1469
1488
|
...options,
|
|
1470
1489
|
headers: {
|
|
1471
1490
|
"Content-Type": "application/json",
|
|
1472
1491
|
...options.headers
|
|
1473
1492
|
}
|
|
1474
1493
|
});
|
|
1475
|
-
var
|
|
1494
|
+
var verifierOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1476
1495
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1477
|
-
url: "/api/
|
|
1478
|
-
...options
|
|
1496
|
+
url: "/api/verifier/offer",
|
|
1497
|
+
...options,
|
|
1498
|
+
headers: {
|
|
1499
|
+
"Content-Type": "application/json",
|
|
1500
|
+
...options.headers
|
|
1501
|
+
}
|
|
1479
1502
|
});
|
|
1480
|
-
var
|
|
1503
|
+
var oidcClientControllerList = (options) => (options?.client ?? client).get({
|
|
1481
1504
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1482
|
-
url: "/api/
|
|
1505
|
+
url: "/api/verifier/oidc-clients",
|
|
1483
1506
|
...options
|
|
1484
1507
|
});
|
|
1485
|
-
var
|
|
1508
|
+
var oidcClientControllerCreate = (options) => (options.client ?? client).post({
|
|
1486
1509
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1487
|
-
url: "/api/
|
|
1488
|
-
...options
|
|
1510
|
+
url: "/api/verifier/oidc-clients",
|
|
1511
|
+
...options,
|
|
1512
|
+
headers: {
|
|
1513
|
+
"Content-Type": "application/json",
|
|
1514
|
+
...options.headers
|
|
1515
|
+
}
|
|
1489
1516
|
});
|
|
1490
|
-
var
|
|
1517
|
+
var oidcClientControllerDelete = (options) => (options.client ?? client).delete({
|
|
1491
1518
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1492
|
-
url: "/api/
|
|
1519
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1493
1520
|
...options
|
|
1494
1521
|
});
|
|
1495
|
-
var
|
|
1522
|
+
var oidcClientControllerGet = (options) => (options.client ?? client).get({
|
|
1496
1523
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1497
|
-
url: "/api/
|
|
1524
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1498
1525
|
...options
|
|
1499
1526
|
});
|
|
1500
|
-
var
|
|
1527
|
+
var oidcClientControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1501
1528
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1502
|
-
url: "/api/
|
|
1529
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1503
1530
|
...options,
|
|
1504
1531
|
headers: {
|
|
1505
1532
|
"Content-Type": "application/json",
|
|
1506
1533
|
...options.headers
|
|
1507
1534
|
}
|
|
1508
1535
|
});
|
|
1509
|
-
var
|
|
1536
|
+
var oidcClientControllerAddSecret = (options) => (options.client ?? client).post({
|
|
1510
1537
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1511
|
-
url: "/api/
|
|
1538
|
+
url: "/api/verifier/oidc-clients/{id}/secrets",
|
|
1512
1539
|
...options
|
|
1513
1540
|
});
|
|
1514
|
-
var
|
|
1541
|
+
var oidcClientControllerDeleteSecret = (options) => (options.client ?? client).delete({
|
|
1515
1542
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1516
|
-
url: "/api/
|
|
1543
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1517
1544
|
...options
|
|
1518
1545
|
});
|
|
1519
|
-
var
|
|
1546
|
+
var oidcClientControllerUpdateSecret = (options) => (options.client ?? client).patch({
|
|
1520
1547
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1521
|
-
url: "/api/
|
|
1522
|
-
...options
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
...options
|
|
1548
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1549
|
+
...options,
|
|
1550
|
+
headers: {
|
|
1551
|
+
"Content-Type": "application/json",
|
|
1552
|
+
...options.headers
|
|
1553
|
+
}
|
|
1528
1554
|
});
|
|
1529
|
-
var
|
|
1555
|
+
var eudiHubControllerListOrganizations = (options) => (options.client ?? client).post({
|
|
1530
1556
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1531
|
-
url: "/api/
|
|
1557
|
+
url: "/api/eudi-hub/organizations",
|
|
1532
1558
|
...options,
|
|
1533
1559
|
headers: {
|
|
1534
1560
|
"Content-Type": "application/json",
|
|
1535
1561
|
...options.headers
|
|
1536
1562
|
}
|
|
1537
1563
|
});
|
|
1538
|
-
var
|
|
1564
|
+
var eudiHubControllerRequestAccessCertificate = (options) => (options.client ?? client).post({
|
|
1539
1565
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1540
|
-
url: "/api/
|
|
1566
|
+
url: "/api/eudi-hub/access-certificate",
|
|
1541
1567
|
...options,
|
|
1542
1568
|
headers: {
|
|
1543
1569
|
"Content-Type": "application/json",
|
|
1544
1570
|
...options.headers
|
|
1545
1571
|
}
|
|
1546
1572
|
});
|
|
1547
|
-
var
|
|
1573
|
+
var eudiHubControllerOrganizationDetails = (options) => (options.client ?? client).post({
|
|
1548
1574
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1549
|
-
url: "/api/
|
|
1575
|
+
url: "/api/eudi-hub/organization-details",
|
|
1550
1576
|
...options,
|
|
1551
1577
|
headers: {
|
|
1552
1578
|
"Content-Type": "application/json",
|
|
1553
1579
|
...options.headers
|
|
1554
1580
|
}
|
|
1555
1581
|
});
|
|
1556
|
-
var
|
|
1582
|
+
var eudiHubControllerRequestPresentationRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1557
1583
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1558
|
-
url: "/api/
|
|
1584
|
+
url: "/api/eudi-hub/registration-certificate/presentation",
|
|
1559
1585
|
...options,
|
|
1560
1586
|
headers: {
|
|
1561
1587
|
"Content-Type": "application/json",
|
|
1562
1588
|
...options.headers
|
|
1563
1589
|
}
|
|
1564
1590
|
});
|
|
1565
|
-
var
|
|
1591
|
+
var eudiHubControllerRequestIssuerRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1566
1592
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1567
|
-
url: "/api/
|
|
1593
|
+
url: "/api/eudi-hub/registration-certificate/issuer",
|
|
1568
1594
|
...options,
|
|
1569
1595
|
headers: {
|
|
1570
1596
|
"Content-Type": "application/json",
|
|
@@ -1636,6 +1662,11 @@ var configPortabilityControllerResourcesOfKind = (options) => (options.client ??
|
|
|
1636
1662
|
url: "/api/config-bundles/resources/{kind}",
|
|
1637
1663
|
...options
|
|
1638
1664
|
});
|
|
1665
|
+
var configPortabilityControllerExportDocument = (options) => (options.client ?? client).get({
|
|
1666
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1667
|
+
url: "/api/config-bundles/resources/{kind}/{id}/document",
|
|
1668
|
+
...options
|
|
1669
|
+
});
|
|
1639
1670
|
var configPortabilityControllerDetach = (options) => (options.client ?? client).post({
|
|
1640
1671
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1641
1672
|
url: "/api/config-bundles/resources/{kind}/{id}/detach",
|
|
@@ -2211,6 +2242,112 @@ async function submitDcApiResponse(options) {
|
|
|
2211
2242
|
return mapDcApiPresentationResult(result);
|
|
2212
2243
|
}
|
|
2213
2244
|
|
|
2245
|
+
// src/config/constraints.ts
|
|
2246
|
+
var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2247
|
+
"type",
|
|
2248
|
+
"enum",
|
|
2249
|
+
"const",
|
|
2250
|
+
"multipleOf",
|
|
2251
|
+
"maximum",
|
|
2252
|
+
"exclusiveMaximum",
|
|
2253
|
+
"minimum",
|
|
2254
|
+
"exclusiveMinimum",
|
|
2255
|
+
"maxLength",
|
|
2256
|
+
"minLength",
|
|
2257
|
+
"pattern",
|
|
2258
|
+
"maxItems",
|
|
2259
|
+
"minItems",
|
|
2260
|
+
"uniqueItems",
|
|
2261
|
+
"maxContains",
|
|
2262
|
+
"minContains",
|
|
2263
|
+
"maxProperties",
|
|
2264
|
+
"minProperties",
|
|
2265
|
+
"required",
|
|
2266
|
+
"dependentRequired",
|
|
2267
|
+
"title",
|
|
2268
|
+
"description",
|
|
2269
|
+
"default",
|
|
2270
|
+
"examples",
|
|
2271
|
+
"deprecated",
|
|
2272
|
+
"readOnly",
|
|
2273
|
+
"writeOnly",
|
|
2274
|
+
"$comment"
|
|
2275
|
+
]);
|
|
2276
|
+
var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2277
|
+
"items",
|
|
2278
|
+
"contains",
|
|
2279
|
+
"additionalProperties",
|
|
2280
|
+
"propertyNames",
|
|
2281
|
+
"not",
|
|
2282
|
+
"if",
|
|
2283
|
+
"then",
|
|
2284
|
+
"else",
|
|
2285
|
+
"unevaluatedItems",
|
|
2286
|
+
"unevaluatedProperties"
|
|
2287
|
+
]);
|
|
2288
|
+
var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
|
|
2289
|
+
var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2290
|
+
"properties",
|
|
2291
|
+
"patternProperties",
|
|
2292
|
+
"dependentSchemas"
|
|
2293
|
+
]);
|
|
2294
|
+
function isPlainObject(value) {
|
|
2295
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2296
|
+
}
|
|
2297
|
+
function pointer(path, segment) {
|
|
2298
|
+
return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
2299
|
+
}
|
|
2300
|
+
function sanitizeSchema(value, path, removed) {
|
|
2301
|
+
if (typeof value === "boolean") {
|
|
2302
|
+
return value;
|
|
2303
|
+
}
|
|
2304
|
+
if (!isPlainObject(value)) {
|
|
2305
|
+
removed.push({ pointer: path, reason: "not-a-schema" });
|
|
2306
|
+
return void 0;
|
|
2307
|
+
}
|
|
2308
|
+
const entries = [];
|
|
2309
|
+
for (const [key, child] of Object.entries(value)) {
|
|
2310
|
+
const childPath = pointer(path, key);
|
|
2311
|
+
if (VALUE_KEYWORDS.has(key)) {
|
|
2312
|
+
entries.push([key, child]);
|
|
2313
|
+
} else if (SCHEMA_KEYWORDS.has(key)) {
|
|
2314
|
+
const schema = sanitizeSchema(child, childPath, removed);
|
|
2315
|
+
if (schema !== void 0) {
|
|
2316
|
+
entries.push([key, schema]);
|
|
2317
|
+
}
|
|
2318
|
+
} else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
|
|
2319
|
+
entries.push([
|
|
2320
|
+
key,
|
|
2321
|
+
child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
|
|
2322
|
+
]);
|
|
2323
|
+
} else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
|
|
2324
|
+
entries.push([
|
|
2325
|
+
key,
|
|
2326
|
+
Object.fromEntries(
|
|
2327
|
+
Object.entries(child).map(
|
|
2328
|
+
([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
|
|
2329
|
+
).filter(([, schema]) => schema !== void 0)
|
|
2330
|
+
)
|
|
2331
|
+
]);
|
|
2332
|
+
} else {
|
|
2333
|
+
removed.push({
|
|
2334
|
+
pointer: childPath,
|
|
2335
|
+
reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
|
|
2336
|
+
});
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
return Object.fromEntries(entries);
|
|
2340
|
+
}
|
|
2341
|
+
function sanitizeConstraints(constraints) {
|
|
2342
|
+
const schema = sanitizeSchema(constraints, "", []);
|
|
2343
|
+
return isPlainObject(schema) ? schema : {};
|
|
2344
|
+
}
|
|
2345
|
+
function unsupportedConstraints(constraints) {
|
|
2346
|
+
const removed = [];
|
|
2347
|
+
sanitizeSchema(constraints, "", removed);
|
|
2348
|
+
return removed;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2214
2351
|
// src/config/derive.ts
|
|
2215
2352
|
var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
2216
2353
|
function resolveChildPath(parentPath, parentType, childPath) {
|
|
@@ -2256,8 +2393,19 @@ function segmentToKey(segment) {
|
|
|
2256
2393
|
}
|
|
2257
2394
|
return String(segment);
|
|
2258
2395
|
}
|
|
2396
|
+
function getOwn(target, key) {
|
|
2397
|
+
return Object.hasOwn(target, key) ? target[key] : void 0;
|
|
2398
|
+
}
|
|
2399
|
+
function setOwn(target, key, value) {
|
|
2400
|
+
Object.defineProperty(target, key, {
|
|
2401
|
+
value,
|
|
2402
|
+
writable: true,
|
|
2403
|
+
enumerable: true,
|
|
2404
|
+
configurable: true
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2259
2407
|
function getOrCreateChild(target, key, nextIsArray) {
|
|
2260
|
-
const current = target
|
|
2408
|
+
const current = getOwn(target, key);
|
|
2261
2409
|
if (current !== void 0) {
|
|
2262
2410
|
if (Array.isArray(current)) {
|
|
2263
2411
|
return current;
|
|
@@ -2267,7 +2415,7 @@ function getOrCreateChild(target, key, nextIsArray) {
|
|
|
2267
2415
|
}
|
|
2268
2416
|
}
|
|
2269
2417
|
const created = nextIsArray ? [] : {};
|
|
2270
|
-
target
|
|
2418
|
+
setOwn(target, key, created);
|
|
2271
2419
|
return created;
|
|
2272
2420
|
}
|
|
2273
2421
|
function setValueAtPath(target, path, value) {
|
|
@@ -2297,7 +2445,7 @@ function setValueAtPath(target, path, value) {
|
|
|
2297
2445
|
}
|
|
2298
2446
|
const key = segmentToKey(segment);
|
|
2299
2447
|
if (isLast) {
|
|
2300
|
-
cursor
|
|
2448
|
+
setOwn(cursor, key, value);
|
|
2301
2449
|
return;
|
|
2302
2450
|
}
|
|
2303
2451
|
cursor = getOrCreateChild(cursor, key, typeof next === "number");
|
|
@@ -2341,13 +2489,15 @@ function ensureSchemaNode(root, path) {
|
|
|
2341
2489
|
}
|
|
2342
2490
|
const key = segmentToKey(segment);
|
|
2343
2491
|
cursor.properties ??= {};
|
|
2344
|
-
|
|
2345
|
-
|
|
2492
|
+
let child = getOwn(cursor.properties, key);
|
|
2493
|
+
if (!child) {
|
|
2494
|
+
child = {
|
|
2346
2495
|
type: "object",
|
|
2347
2496
|
properties: {}
|
|
2348
2497
|
};
|
|
2498
|
+
setOwn(cursor.properties, key, child);
|
|
2349
2499
|
}
|
|
2350
|
-
cursor =
|
|
2500
|
+
cursor = child;
|
|
2351
2501
|
}
|
|
2352
2502
|
return cursor;
|
|
2353
2503
|
}
|
|
@@ -2355,11 +2505,12 @@ function ensureFrameNode(root, path) {
|
|
|
2355
2505
|
let cursor = root;
|
|
2356
2506
|
for (const segment of path) {
|
|
2357
2507
|
const key = segmentToKey(segment);
|
|
2358
|
-
|
|
2508
|
+
let current = getOwn(cursor, key);
|
|
2359
2509
|
if (!current || typeof current !== "object" || Array.isArray(current)) {
|
|
2360
|
-
|
|
2510
|
+
current = {};
|
|
2511
|
+
setOwn(cursor, key, current);
|
|
2361
2512
|
}
|
|
2362
|
-
cursor =
|
|
2513
|
+
cursor = current;
|
|
2363
2514
|
}
|
|
2364
2515
|
return cursor;
|
|
2365
2516
|
}
|
|
@@ -2408,7 +2559,7 @@ function buildClaimsMetadata(fields) {
|
|
|
2408
2559
|
}
|
|
2409
2560
|
function buildLeafSchema(field) {
|
|
2410
2561
|
const schema = {
|
|
2411
|
-
...field.constraints,
|
|
2562
|
+
...sanitizeConstraints(field.constraints),
|
|
2412
2563
|
type: field.type
|
|
2413
2564
|
};
|
|
2414
2565
|
const title = getDisplayTitle(field.display);
|
|
@@ -2448,8 +2599,12 @@ function buildJsonSchema(fields) {
|
|
|
2448
2599
|
}
|
|
2449
2600
|
const leafKey = segmentToKey(leafSegment ?? "");
|
|
2450
2601
|
parent.properties ??= {};
|
|
2451
|
-
const existing = parent.properties
|
|
2452
|
-
|
|
2602
|
+
const existing = getOwn(parent.properties, leafKey);
|
|
2603
|
+
setOwn(
|
|
2604
|
+
parent.properties,
|
|
2605
|
+
leafKey,
|
|
2606
|
+
existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
|
|
2607
|
+
);
|
|
2453
2608
|
if (field.mandatory) {
|
|
2454
2609
|
addRequired(parent, leafKey);
|
|
2455
2610
|
}
|
|
@@ -2462,10 +2617,14 @@ function buildClaimsByNamespace(fields) {
|
|
|
2462
2617
|
if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
|
|
2463
2618
|
continue;
|
|
2464
2619
|
}
|
|
2465
|
-
|
|
2466
|
-
byNamespace
|
|
2620
|
+
let namespaceTarget = getOwn(
|
|
2621
|
+
byNamespace,
|
|
2622
|
+
field.namespace
|
|
2623
|
+
);
|
|
2624
|
+
if (!namespaceTarget) {
|
|
2625
|
+
namespaceTarget = {};
|
|
2626
|
+
setOwn(byNamespace, field.namespace, namespaceTarget);
|
|
2467
2627
|
}
|
|
2468
|
-
const namespaceTarget = byNamespace[field.namespace];
|
|
2469
2628
|
const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
|
|
2470
2629
|
setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
|
|
2471
2630
|
}
|
|
@@ -2490,6 +2649,7 @@ exports.attributeProviderControllerGetAll = attributeProviderControllerGetAll;
|
|
|
2490
2649
|
exports.attributeProviderControllerGetById = attributeProviderControllerGetById;
|
|
2491
2650
|
exports.attributeProviderControllerUpdate = attributeProviderControllerUpdate;
|
|
2492
2651
|
exports.auditLogControllerGetAuditLogs = auditLogControllerGetAuditLogs;
|
|
2652
|
+
exports.authControllerGetCaller = authControllerGetCaller;
|
|
2493
2653
|
exports.authControllerGetOAuth2Token = authControllerGetOAuth2Token;
|
|
2494
2654
|
exports.buildClaims = buildClaims;
|
|
2495
2655
|
exports.buildClaimsByNamespace = buildClaimsByNamespace;
|
|
@@ -2499,6 +2659,7 @@ exports.buildJsonSchema = buildJsonSchema;
|
|
|
2499
2659
|
exports.cacheControllerClearAllCaches = cacheControllerClearAllCaches;
|
|
2500
2660
|
exports.cacheControllerClearStatusListCache = cacheControllerClearStatusListCache;
|
|
2501
2661
|
exports.cacheControllerClearTrustListCache = cacheControllerClearTrustListCache;
|
|
2662
|
+
exports.cacheControllerForgetTrustListSequenceNumbers = cacheControllerForgetTrustListSequenceNumbers;
|
|
2502
2663
|
exports.cacheControllerGetStats = cacheControllerGetStats;
|
|
2503
2664
|
exports.client = client;
|
|
2504
2665
|
exports.clientControllerCreateClient = clientControllerCreateClient;
|
|
@@ -2510,6 +2671,7 @@ exports.clientControllerUpdateClient = clientControllerUpdateClient;
|
|
|
2510
2671
|
exports.configPortabilityControllerAcknowledgeInterruption = configPortabilityControllerAcknowledgeInterruption;
|
|
2511
2672
|
exports.configPortabilityControllerDetach = configPortabilityControllerDetach;
|
|
2512
2673
|
exports.configPortabilityControllerExport = configPortabilityControllerExport;
|
|
2674
|
+
exports.configPortabilityControllerExportDocument = configPortabilityControllerExportDocument;
|
|
2513
2675
|
exports.configPortabilityControllerImport = configPortabilityControllerImport;
|
|
2514
2676
|
exports.configPortabilityControllerImportArchive = configPortabilityControllerImportArchive;
|
|
2515
2677
|
exports.configPortabilityControllerOperation = configPortabilityControllerOperation;
|
|
@@ -2527,15 +2689,27 @@ exports.credentialConfigControllerGetConfigs = credentialConfigControllerGetConf
|
|
|
2527
2689
|
exports.credentialConfigControllerStoreCredentialConfiguration = credentialConfigControllerStoreCredentialConfiguration;
|
|
2528
2690
|
exports.credentialConfigControllerUpdateCredentialConfiguration = credentialConfigControllerUpdateCredentialConfiguration;
|
|
2529
2691
|
exports.credentialOfferControllerGetOffer = credentialOfferControllerGetOffer;
|
|
2692
|
+
exports.defaultAccessKeyChainControllerGet = defaultAccessKeyChainControllerGet;
|
|
2693
|
+
exports.defaultAccessKeyChainControllerSet = defaultAccessKeyChainControllerSet;
|
|
2530
2694
|
exports.deferredControllerCompleteDeferred = deferredControllerCompleteDeferred;
|
|
2531
2695
|
exports.deferredControllerFailDeferred = deferredControllerFailDeferred;
|
|
2532
2696
|
exports.deriveRuntimeArtifacts = deriveRuntimeArtifacts;
|
|
2697
|
+
exports.eudiHubControllerListOrganizations = eudiHubControllerListOrganizations;
|
|
2698
|
+
exports.eudiHubControllerOrganizationDetails = eudiHubControllerOrganizationDetails;
|
|
2699
|
+
exports.eudiHubControllerRequestAccessCertificate = eudiHubControllerRequestAccessCertificate;
|
|
2700
|
+
exports.eudiHubControllerRequestIssuerRegistrationCertificate = eudiHubControllerRequestIssuerRegistrationCertificate;
|
|
2701
|
+
exports.eudiHubControllerRequestPresentationRegistrationCertificate = eudiHubControllerRequestPresentationRegistrationCertificate;
|
|
2702
|
+
exports.federationTrustAnchorControllerCreate = federationTrustAnchorControllerCreate;
|
|
2703
|
+
exports.federationTrustAnchorControllerDelete = federationTrustAnchorControllerDelete;
|
|
2704
|
+
exports.federationTrustAnchorControllerGetAll = federationTrustAnchorControllerGetAll;
|
|
2705
|
+
exports.federationTrustAnchorControllerGetById = federationTrustAnchorControllerGetById;
|
|
2706
|
+
exports.federationTrustAnchorControllerUpdate = federationTrustAnchorControllerUpdate;
|
|
2533
2707
|
exports.flattenFields = flattenFields;
|
|
2534
2708
|
exports.isDcApiAvailable = isDcApiAvailable;
|
|
2535
2709
|
exports.issuanceConfigControllerGetIssuanceConfigurations = issuanceConfigControllerGetIssuanceConfigurations;
|
|
2536
|
-
exports.issuanceConfigControllerReissueRegistrationCertificate = issuanceConfigControllerReissueRegistrationCertificate;
|
|
2537
2710
|
exports.issuanceConfigControllerStoreIssuanceConfiguration = issuanceConfigControllerStoreIssuanceConfiguration;
|
|
2538
2711
|
exports.keyChainControllerCreate = keyChainControllerCreate;
|
|
2712
|
+
exports.keyChainControllerCreateCsr = keyChainControllerCreateCsr;
|
|
2539
2713
|
exports.keyChainControllerDelete = keyChainControllerDelete;
|
|
2540
2714
|
exports.keyChainControllerDeleteTenantKmsConfig = keyChainControllerDeleteTenantKmsConfig;
|
|
2541
2715
|
exports.keyChainControllerExport = keyChainControllerExport;
|
|
@@ -2548,34 +2722,22 @@ exports.keyChainControllerImport = keyChainControllerImport;
|
|
|
2548
2722
|
exports.keyChainControllerRotate = keyChainControllerRotate;
|
|
2549
2723
|
exports.keyChainControllerUpdate = keyChainControllerUpdate;
|
|
2550
2724
|
exports.keyChainControllerUpdateTenantKmsConfig = keyChainControllerUpdateTenantKmsConfig;
|
|
2725
|
+
exports.oidcClientControllerAddSecret = oidcClientControllerAddSecret;
|
|
2726
|
+
exports.oidcClientControllerCreate = oidcClientControllerCreate;
|
|
2727
|
+
exports.oidcClientControllerDelete = oidcClientControllerDelete;
|
|
2728
|
+
exports.oidcClientControllerDeleteSecret = oidcClientControllerDeleteSecret;
|
|
2729
|
+
exports.oidcClientControllerGet = oidcClientControllerGet;
|
|
2730
|
+
exports.oidcClientControllerList = oidcClientControllerList;
|
|
2731
|
+
exports.oidcClientControllerUpdate = oidcClientControllerUpdate;
|
|
2732
|
+
exports.oidcClientControllerUpdateSecret = oidcClientControllerUpdateSecret;
|
|
2551
2733
|
exports.presentationManagementControllerConfiguration = presentationManagementControllerConfiguration;
|
|
2552
2734
|
exports.presentationManagementControllerDeleteConfiguration = presentationManagementControllerDeleteConfiguration;
|
|
2553
2735
|
exports.presentationManagementControllerGetConfiguration = presentationManagementControllerGetConfiguration;
|
|
2554
|
-
exports.presentationManagementControllerListSchemaMetadataCatalog = presentationManagementControllerListSchemaMetadataCatalog;
|
|
2555
|
-
exports.presentationManagementControllerReissueRegistrationCertificate = presentationManagementControllerReissueRegistrationCertificate;
|
|
2556
2736
|
exports.presentationManagementControllerResolveIssuerMetadata = presentationManagementControllerResolveIssuerMetadata;
|
|
2557
2737
|
exports.presentationManagementControllerResolveSchemaMetadata = presentationManagementControllerResolveSchemaMetadata;
|
|
2558
2738
|
exports.presentationManagementControllerResolveSchemaMetadataJwt = presentationManagementControllerResolveSchemaMetadataJwt;
|
|
2559
2739
|
exports.presentationManagementControllerStorePresentationConfig = presentationManagementControllerStorePresentationConfig;
|
|
2560
2740
|
exports.presentationManagementControllerUpdateConfiguration = presentationManagementControllerUpdateConfiguration;
|
|
2561
|
-
exports.registrarControllerCreateAccessCertificate = registrarControllerCreateAccessCertificate;
|
|
2562
|
-
exports.registrarControllerCreateConfig = registrarControllerCreateConfig;
|
|
2563
|
-
exports.registrarControllerDeleteConfig = registrarControllerDeleteConfig;
|
|
2564
|
-
exports.registrarControllerGetConfig = registrarControllerGetConfig;
|
|
2565
|
-
exports.registrarControllerUpdateConfig = registrarControllerUpdateConfig;
|
|
2566
|
-
exports.schemaMetadataControllerDeprecateVersion = schemaMetadataControllerDeprecateVersion;
|
|
2567
|
-
exports.schemaMetadataControllerFindAll = schemaMetadataControllerFindAll;
|
|
2568
|
-
exports.schemaMetadataControllerFindOne = schemaMetadataControllerFindOne;
|
|
2569
|
-
exports.schemaMetadataControllerGetJwt = schemaMetadataControllerGetJwt;
|
|
2570
|
-
exports.schemaMetadataControllerGetLatest = schemaMetadataControllerGetLatest;
|
|
2571
|
-
exports.schemaMetadataControllerGetMine = schemaMetadataControllerGetMine;
|
|
2572
|
-
exports.schemaMetadataControllerGetSchema = schemaMetadataControllerGetSchema;
|
|
2573
|
-
exports.schemaMetadataControllerGetVersions = schemaMetadataControllerGetVersions;
|
|
2574
|
-
exports.schemaMetadataControllerGetVocabularies = schemaMetadataControllerGetVocabularies;
|
|
2575
|
-
exports.schemaMetadataControllerPublishSchemaMetadata = schemaMetadataControllerPublishSchemaMetadata;
|
|
2576
|
-
exports.schemaMetadataControllerPublishSchemaMetadataVersion = schemaMetadataControllerPublishSchemaMetadataVersion;
|
|
2577
|
-
exports.schemaMetadataControllerRemove = schemaMetadataControllerRemove;
|
|
2578
|
-
exports.schemaMetadataControllerUpdate = schemaMetadataControllerUpdate;
|
|
2579
2741
|
exports.sessionConfigControllerGetConfig = sessionConfigControllerGetConfig;
|
|
2580
2742
|
exports.sessionConfigControllerResetConfig = sessionConfigControllerResetConfig;
|
|
2581
2743
|
exports.sessionConfigControllerUpdateConfig = sessionConfigControllerUpdateConfig;
|
|
@@ -2610,6 +2772,7 @@ exports.trustListControllerGetTrustList = trustListControllerGetTrustList;
|
|
|
2610
2772
|
exports.trustListControllerGetTrustListVersion = trustListControllerGetTrustListVersion;
|
|
2611
2773
|
exports.trustListControllerGetTrustListVersions = trustListControllerGetTrustListVersions;
|
|
2612
2774
|
exports.trustListControllerUpdateTrustList = trustListControllerUpdateTrustList;
|
|
2775
|
+
exports.unsupportedConstraints = unsupportedConstraints;
|
|
2613
2776
|
exports.userControllerCreateUser = userControllerCreateUser;
|
|
2614
2777
|
exports.userControllerDeleteUser = userControllerDeleteUser;
|
|
2615
2778
|
exports.userControllerGetUser = userControllerGetUser;
|