@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.mjs
CHANGED
|
@@ -845,6 +845,11 @@ var authControllerGetOAuth2Token = (options) => (options.client ?? client).post(
|
|
|
845
845
|
...options.headers
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
|
+
var authControllerGetCaller = (options) => (options?.client ?? client).get({
|
|
849
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
850
|
+
url: "/api/auth/me",
|
|
851
|
+
...options
|
|
852
|
+
});
|
|
848
853
|
var tenantControllerGetTenants = (options) => (options?.client ?? client).get({
|
|
849
854
|
security: [{ scheme: "bearer", type: "http" }],
|
|
850
855
|
url: "/api/tenant",
|
|
@@ -878,6 +883,20 @@ var tenantControllerUpdateTenant = (options) => (options.client ?? client).patch
|
|
|
878
883
|
...options.headers
|
|
879
884
|
}
|
|
880
885
|
});
|
|
886
|
+
var defaultAccessKeyChainControllerGet = (options) => (options?.client ?? client).get({
|
|
887
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
888
|
+
url: "/api/key-chain/access/default",
|
|
889
|
+
...options
|
|
890
|
+
});
|
|
891
|
+
var defaultAccessKeyChainControllerSet = (options) => (options.client ?? client).put({
|
|
892
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
893
|
+
url: "/api/key-chain/access/default",
|
|
894
|
+
...options,
|
|
895
|
+
headers: {
|
|
896
|
+
"Content-Type": "application/json",
|
|
897
|
+
...options.headers
|
|
898
|
+
}
|
|
899
|
+
});
|
|
881
900
|
var auditLogControllerGetAuditLogs = (options) => (options?.client ?? client).get({
|
|
882
901
|
security: [{ scheme: "bearer", type: "http" }],
|
|
883
902
|
url: "/api/admin/audit-logs",
|
|
@@ -921,43 +940,6 @@ var clientControllerRotateClientSecret = (options) => (options.client ?? client)
|
|
|
921
940
|
url: "/api/client/{id}/rotate-secret",
|
|
922
941
|
...options
|
|
923
942
|
});
|
|
924
|
-
var registrarControllerDeleteConfig = (options) => (options?.client ?? client).delete({
|
|
925
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
926
|
-
url: "/api/registrar/config",
|
|
927
|
-
...options
|
|
928
|
-
});
|
|
929
|
-
var registrarControllerGetConfig = (options) => (options?.client ?? client).get({
|
|
930
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
931
|
-
url: "/api/registrar/config",
|
|
932
|
-
...options
|
|
933
|
-
});
|
|
934
|
-
var registrarControllerUpdateConfig = (options) => (options.client ?? client).patch({
|
|
935
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
936
|
-
url: "/api/registrar/config",
|
|
937
|
-
...options,
|
|
938
|
-
headers: {
|
|
939
|
-
"Content-Type": "application/json",
|
|
940
|
-
...options.headers
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
var registrarControllerCreateConfig = (options) => (options.client ?? client).post({
|
|
944
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
945
|
-
url: "/api/registrar/config",
|
|
946
|
-
...options,
|
|
947
|
-
headers: {
|
|
948
|
-
"Content-Type": "application/json",
|
|
949
|
-
...options.headers
|
|
950
|
-
}
|
|
951
|
-
});
|
|
952
|
-
var registrarControllerCreateAccessCertificate = (options) => (options.client ?? client).post({
|
|
953
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
954
|
-
url: "/api/registrar/access-certificate",
|
|
955
|
-
...options,
|
|
956
|
-
headers: {
|
|
957
|
-
"Content-Type": "application/json",
|
|
958
|
-
...options.headers
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
943
|
var userControllerGetUsers = (options) => (options?.client ?? client).get({
|
|
962
944
|
security: [{ scheme: "bearer", type: "http" }],
|
|
963
945
|
url: "/api/user",
|
|
@@ -1058,6 +1040,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
|
|
|
1058
1040
|
url: "/api/key-chain/{id}/export",
|
|
1059
1041
|
...options
|
|
1060
1042
|
});
|
|
1043
|
+
var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
|
|
1044
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1045
|
+
url: "/api/key-chain/{id}/csr",
|
|
1046
|
+
...options
|
|
1047
|
+
});
|
|
1061
1048
|
var keyChainControllerImport = (options) => (options.client ?? client).post({
|
|
1062
1049
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1063
1050
|
url: "/api/key-chain/import",
|
|
@@ -1179,11 +1166,6 @@ var presentationManagementControllerResolveSchemaMetadataJwt = (options) => (opt
|
|
|
1179
1166
|
...options.headers
|
|
1180
1167
|
}
|
|
1181
1168
|
});
|
|
1182
|
-
var presentationManagementControllerListSchemaMetadataCatalog = (options) => (options?.client ?? client).get({
|
|
1183
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1184
|
-
url: "/api/verifier/config/schema-metadata/catalog",
|
|
1185
|
-
...options
|
|
1186
|
-
});
|
|
1187
1169
|
var presentationManagementControllerDeleteConfiguration = (options) => (options.client ?? client).delete({
|
|
1188
1170
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1189
1171
|
url: "/api/verifier/config/{id}",
|
|
@@ -1203,11 +1185,6 @@ var presentationManagementControllerUpdateConfiguration = (options) => (options.
|
|
|
1203
1185
|
...options.headers
|
|
1204
1186
|
}
|
|
1205
1187
|
});
|
|
1206
|
-
var presentationManagementControllerReissueRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1207
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1208
|
-
url: "/api/verifier/config/{id}/registration-cert/reissue",
|
|
1209
|
-
...options
|
|
1210
|
-
});
|
|
1211
1188
|
var trustListControllerGetAllTrustLists = (options) => (options?.client ?? client).get({
|
|
1212
1189
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1213
1190
|
url: "/api/trust-list",
|
|
@@ -1271,11 +1248,49 @@ var cacheControllerClearTrustListCache = (options) => (options?.client ?? client
|
|
|
1271
1248
|
url: "/api/cache/trust-list",
|
|
1272
1249
|
...options
|
|
1273
1250
|
});
|
|
1251
|
+
var cacheControllerForgetTrustListSequenceNumbers = (options) => (options?.client ?? client).delete({
|
|
1252
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1253
|
+
url: "/api/cache/trust-list/sequence-numbers",
|
|
1254
|
+
...options
|
|
1255
|
+
});
|
|
1274
1256
|
var cacheControllerClearStatusListCache = (options) => (options?.client ?? client).delete({
|
|
1275
1257
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1276
1258
|
url: "/api/cache/status-list",
|
|
1277
1259
|
...options
|
|
1278
1260
|
});
|
|
1261
|
+
var federationTrustAnchorControllerGetAll = (options) => (options?.client ?? client).get({
|
|
1262
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1263
|
+
url: "/api/federation-trust-anchor",
|
|
1264
|
+
...options
|
|
1265
|
+
});
|
|
1266
|
+
var federationTrustAnchorControllerCreate = (options) => (options.client ?? client).post({
|
|
1267
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1268
|
+
url: "/api/federation-trust-anchor",
|
|
1269
|
+
...options,
|
|
1270
|
+
headers: {
|
|
1271
|
+
"Content-Type": "application/json",
|
|
1272
|
+
...options.headers
|
|
1273
|
+
}
|
|
1274
|
+
});
|
|
1275
|
+
var federationTrustAnchorControllerDelete = (options) => (options.client ?? client).delete({
|
|
1276
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1277
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1278
|
+
...options
|
|
1279
|
+
});
|
|
1280
|
+
var federationTrustAnchorControllerGetById = (options) => (options.client ?? client).get({
|
|
1281
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1282
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1283
|
+
...options
|
|
1284
|
+
});
|
|
1285
|
+
var federationTrustAnchorControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1286
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1287
|
+
url: "/api/federation-trust-anchor/{id}",
|
|
1288
|
+
...options,
|
|
1289
|
+
headers: {
|
|
1290
|
+
"Content-Type": "application/json",
|
|
1291
|
+
...options.headers
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1279
1294
|
var sessionControllerGetAllSessions = (options) => (options?.client ?? client).get({
|
|
1280
1295
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1281
1296
|
url: "/api/session",
|
|
@@ -1447,122 +1462,133 @@ var issuanceConfigControllerStoreIssuanceConfiguration = (options) => (options.c
|
|
|
1447
1462
|
...options.headers
|
|
1448
1463
|
}
|
|
1449
1464
|
});
|
|
1450
|
-
var
|
|
1465
|
+
var credentialOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1451
1466
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1452
|
-
url: "/api/issuer/
|
|
1453
|
-
...options
|
|
1467
|
+
url: "/api/issuer/offer",
|
|
1468
|
+
...options,
|
|
1469
|
+
headers: {
|
|
1470
|
+
"Content-Type": "application/json",
|
|
1471
|
+
...options.headers
|
|
1472
|
+
}
|
|
1454
1473
|
});
|
|
1455
|
-
var
|
|
1474
|
+
var deferredControllerCompleteDeferred = (options) => (options.client ?? client).post({
|
|
1456
1475
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1457
|
-
url: "/api/
|
|
1476
|
+
url: "/api/issuer/deferred/{transactionId}/complete",
|
|
1458
1477
|
...options,
|
|
1459
1478
|
headers: {
|
|
1460
1479
|
"Content-Type": "application/json",
|
|
1461
1480
|
...options.headers
|
|
1462
1481
|
}
|
|
1463
1482
|
});
|
|
1464
|
-
var
|
|
1483
|
+
var deferredControllerFailDeferred = (options) => (options.client ?? client).post({
|
|
1465
1484
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1466
|
-
url: "/api/
|
|
1485
|
+
url: "/api/issuer/deferred/{transactionId}/fail",
|
|
1467
1486
|
...options,
|
|
1468
1487
|
headers: {
|
|
1469
1488
|
"Content-Type": "application/json",
|
|
1470
1489
|
...options.headers
|
|
1471
1490
|
}
|
|
1472
1491
|
});
|
|
1473
|
-
var
|
|
1492
|
+
var verifierOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1474
1493
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1475
|
-
url: "/api/
|
|
1476
|
-
...options
|
|
1494
|
+
url: "/api/verifier/offer",
|
|
1495
|
+
...options,
|
|
1496
|
+
headers: {
|
|
1497
|
+
"Content-Type": "application/json",
|
|
1498
|
+
...options.headers
|
|
1499
|
+
}
|
|
1477
1500
|
});
|
|
1478
|
-
var
|
|
1501
|
+
var oidcClientControllerList = (options) => (options?.client ?? client).get({
|
|
1479
1502
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1480
|
-
url: "/api/
|
|
1503
|
+
url: "/api/verifier/oidc-clients",
|
|
1481
1504
|
...options
|
|
1482
1505
|
});
|
|
1483
|
-
var
|
|
1506
|
+
var oidcClientControllerCreate = (options) => (options.client ?? client).post({
|
|
1484
1507
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1485
|
-
url: "/api/
|
|
1486
|
-
...options
|
|
1508
|
+
url: "/api/verifier/oidc-clients",
|
|
1509
|
+
...options,
|
|
1510
|
+
headers: {
|
|
1511
|
+
"Content-Type": "application/json",
|
|
1512
|
+
...options.headers
|
|
1513
|
+
}
|
|
1487
1514
|
});
|
|
1488
|
-
var
|
|
1515
|
+
var oidcClientControllerDelete = (options) => (options.client ?? client).delete({
|
|
1489
1516
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1490
|
-
url: "/api/
|
|
1517
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1491
1518
|
...options
|
|
1492
1519
|
});
|
|
1493
|
-
var
|
|
1520
|
+
var oidcClientControllerGet = (options) => (options.client ?? client).get({
|
|
1494
1521
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1495
|
-
url: "/api/
|
|
1522
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1496
1523
|
...options
|
|
1497
1524
|
});
|
|
1498
|
-
var
|
|
1525
|
+
var oidcClientControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1499
1526
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1500
|
-
url: "/api/
|
|
1527
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1501
1528
|
...options,
|
|
1502
1529
|
headers: {
|
|
1503
1530
|
"Content-Type": "application/json",
|
|
1504
1531
|
...options.headers
|
|
1505
1532
|
}
|
|
1506
1533
|
});
|
|
1507
|
-
var
|
|
1534
|
+
var oidcClientControllerAddSecret = (options) => (options.client ?? client).post({
|
|
1508
1535
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1509
|
-
url: "/api/
|
|
1536
|
+
url: "/api/verifier/oidc-clients/{id}/secrets",
|
|
1510
1537
|
...options
|
|
1511
1538
|
});
|
|
1512
|
-
var
|
|
1539
|
+
var oidcClientControllerDeleteSecret = (options) => (options.client ?? client).delete({
|
|
1513
1540
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1514
|
-
url: "/api/
|
|
1541
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1515
1542
|
...options
|
|
1516
1543
|
});
|
|
1517
|
-
var
|
|
1544
|
+
var oidcClientControllerUpdateSecret = (options) => (options.client ?? client).patch({
|
|
1518
1545
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1519
|
-
url: "/api/
|
|
1520
|
-
...options
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
...options
|
|
1546
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1547
|
+
...options,
|
|
1548
|
+
headers: {
|
|
1549
|
+
"Content-Type": "application/json",
|
|
1550
|
+
...options.headers
|
|
1551
|
+
}
|
|
1526
1552
|
});
|
|
1527
|
-
var
|
|
1553
|
+
var eudiHubControllerListOrganizations = (options) => (options.client ?? client).post({
|
|
1528
1554
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1529
|
-
url: "/api/
|
|
1555
|
+
url: "/api/eudi-hub/organizations",
|
|
1530
1556
|
...options,
|
|
1531
1557
|
headers: {
|
|
1532
1558
|
"Content-Type": "application/json",
|
|
1533
1559
|
...options.headers
|
|
1534
1560
|
}
|
|
1535
1561
|
});
|
|
1536
|
-
var
|
|
1562
|
+
var eudiHubControllerRequestAccessCertificate = (options) => (options.client ?? client).post({
|
|
1537
1563
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1538
|
-
url: "/api/
|
|
1564
|
+
url: "/api/eudi-hub/access-certificate",
|
|
1539
1565
|
...options,
|
|
1540
1566
|
headers: {
|
|
1541
1567
|
"Content-Type": "application/json",
|
|
1542
1568
|
...options.headers
|
|
1543
1569
|
}
|
|
1544
1570
|
});
|
|
1545
|
-
var
|
|
1571
|
+
var eudiHubControllerOrganizationDetails = (options) => (options.client ?? client).post({
|
|
1546
1572
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1547
|
-
url: "/api/
|
|
1573
|
+
url: "/api/eudi-hub/organization-details",
|
|
1548
1574
|
...options,
|
|
1549
1575
|
headers: {
|
|
1550
1576
|
"Content-Type": "application/json",
|
|
1551
1577
|
...options.headers
|
|
1552
1578
|
}
|
|
1553
1579
|
});
|
|
1554
|
-
var
|
|
1580
|
+
var eudiHubControllerRequestPresentationRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1555
1581
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1556
|
-
url: "/api/
|
|
1582
|
+
url: "/api/eudi-hub/registration-certificate/presentation",
|
|
1557
1583
|
...options,
|
|
1558
1584
|
headers: {
|
|
1559
1585
|
"Content-Type": "application/json",
|
|
1560
1586
|
...options.headers
|
|
1561
1587
|
}
|
|
1562
1588
|
});
|
|
1563
|
-
var
|
|
1589
|
+
var eudiHubControllerRequestIssuerRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1564
1590
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1565
|
-
url: "/api/
|
|
1591
|
+
url: "/api/eudi-hub/registration-certificate/issuer",
|
|
1566
1592
|
...options,
|
|
1567
1593
|
headers: {
|
|
1568
1594
|
"Content-Type": "application/json",
|
|
@@ -1634,6 +1660,11 @@ var configPortabilityControllerResourcesOfKind = (options) => (options.client ??
|
|
|
1634
1660
|
url: "/api/config-bundles/resources/{kind}",
|
|
1635
1661
|
...options
|
|
1636
1662
|
});
|
|
1663
|
+
var configPortabilityControllerExportDocument = (options) => (options.client ?? client).get({
|
|
1664
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1665
|
+
url: "/api/config-bundles/resources/{kind}/{id}/document",
|
|
1666
|
+
...options
|
|
1667
|
+
});
|
|
1637
1668
|
var configPortabilityControllerDetach = (options) => (options.client ?? client).post({
|
|
1638
1669
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1639
1670
|
url: "/api/config-bundles/resources/{kind}/{id}/detach",
|
|
@@ -2209,6 +2240,112 @@ async function submitDcApiResponse(options) {
|
|
|
2209
2240
|
return mapDcApiPresentationResult(result);
|
|
2210
2241
|
}
|
|
2211
2242
|
|
|
2243
|
+
// src/config/constraints.ts
|
|
2244
|
+
var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2245
|
+
"type",
|
|
2246
|
+
"enum",
|
|
2247
|
+
"const",
|
|
2248
|
+
"multipleOf",
|
|
2249
|
+
"maximum",
|
|
2250
|
+
"exclusiveMaximum",
|
|
2251
|
+
"minimum",
|
|
2252
|
+
"exclusiveMinimum",
|
|
2253
|
+
"maxLength",
|
|
2254
|
+
"minLength",
|
|
2255
|
+
"pattern",
|
|
2256
|
+
"maxItems",
|
|
2257
|
+
"minItems",
|
|
2258
|
+
"uniqueItems",
|
|
2259
|
+
"maxContains",
|
|
2260
|
+
"minContains",
|
|
2261
|
+
"maxProperties",
|
|
2262
|
+
"minProperties",
|
|
2263
|
+
"required",
|
|
2264
|
+
"dependentRequired",
|
|
2265
|
+
"title",
|
|
2266
|
+
"description",
|
|
2267
|
+
"default",
|
|
2268
|
+
"examples",
|
|
2269
|
+
"deprecated",
|
|
2270
|
+
"readOnly",
|
|
2271
|
+
"writeOnly",
|
|
2272
|
+
"$comment"
|
|
2273
|
+
]);
|
|
2274
|
+
var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2275
|
+
"items",
|
|
2276
|
+
"contains",
|
|
2277
|
+
"additionalProperties",
|
|
2278
|
+
"propertyNames",
|
|
2279
|
+
"not",
|
|
2280
|
+
"if",
|
|
2281
|
+
"then",
|
|
2282
|
+
"else",
|
|
2283
|
+
"unevaluatedItems",
|
|
2284
|
+
"unevaluatedProperties"
|
|
2285
|
+
]);
|
|
2286
|
+
var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
|
|
2287
|
+
var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2288
|
+
"properties",
|
|
2289
|
+
"patternProperties",
|
|
2290
|
+
"dependentSchemas"
|
|
2291
|
+
]);
|
|
2292
|
+
function isPlainObject(value) {
|
|
2293
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2294
|
+
}
|
|
2295
|
+
function pointer(path, segment) {
|
|
2296
|
+
return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
2297
|
+
}
|
|
2298
|
+
function sanitizeSchema(value, path, removed) {
|
|
2299
|
+
if (typeof value === "boolean") {
|
|
2300
|
+
return value;
|
|
2301
|
+
}
|
|
2302
|
+
if (!isPlainObject(value)) {
|
|
2303
|
+
removed.push({ pointer: path, reason: "not-a-schema" });
|
|
2304
|
+
return void 0;
|
|
2305
|
+
}
|
|
2306
|
+
const entries = [];
|
|
2307
|
+
for (const [key, child] of Object.entries(value)) {
|
|
2308
|
+
const childPath = pointer(path, key);
|
|
2309
|
+
if (VALUE_KEYWORDS.has(key)) {
|
|
2310
|
+
entries.push([key, child]);
|
|
2311
|
+
} else if (SCHEMA_KEYWORDS.has(key)) {
|
|
2312
|
+
const schema = sanitizeSchema(child, childPath, removed);
|
|
2313
|
+
if (schema !== void 0) {
|
|
2314
|
+
entries.push([key, schema]);
|
|
2315
|
+
}
|
|
2316
|
+
} else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
|
|
2317
|
+
entries.push([
|
|
2318
|
+
key,
|
|
2319
|
+
child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
|
|
2320
|
+
]);
|
|
2321
|
+
} else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
|
|
2322
|
+
entries.push([
|
|
2323
|
+
key,
|
|
2324
|
+
Object.fromEntries(
|
|
2325
|
+
Object.entries(child).map(
|
|
2326
|
+
([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
|
|
2327
|
+
).filter(([, schema]) => schema !== void 0)
|
|
2328
|
+
)
|
|
2329
|
+
]);
|
|
2330
|
+
} else {
|
|
2331
|
+
removed.push({
|
|
2332
|
+
pointer: childPath,
|
|
2333
|
+
reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
return Object.fromEntries(entries);
|
|
2338
|
+
}
|
|
2339
|
+
function sanitizeConstraints(constraints) {
|
|
2340
|
+
const schema = sanitizeSchema(constraints, "", []);
|
|
2341
|
+
return isPlainObject(schema) ? schema : {};
|
|
2342
|
+
}
|
|
2343
|
+
function unsupportedConstraints(constraints) {
|
|
2344
|
+
const removed = [];
|
|
2345
|
+
sanitizeSchema(constraints, "", removed);
|
|
2346
|
+
return removed;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2212
2349
|
// src/config/derive.ts
|
|
2213
2350
|
var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
2214
2351
|
function resolveChildPath(parentPath, parentType, childPath) {
|
|
@@ -2254,8 +2391,19 @@ function segmentToKey(segment) {
|
|
|
2254
2391
|
}
|
|
2255
2392
|
return String(segment);
|
|
2256
2393
|
}
|
|
2394
|
+
function getOwn(target, key) {
|
|
2395
|
+
return Object.hasOwn(target, key) ? target[key] : void 0;
|
|
2396
|
+
}
|
|
2397
|
+
function setOwn(target, key, value) {
|
|
2398
|
+
Object.defineProperty(target, key, {
|
|
2399
|
+
value,
|
|
2400
|
+
writable: true,
|
|
2401
|
+
enumerable: true,
|
|
2402
|
+
configurable: true
|
|
2403
|
+
});
|
|
2404
|
+
}
|
|
2257
2405
|
function getOrCreateChild(target, key, nextIsArray) {
|
|
2258
|
-
const current = target
|
|
2406
|
+
const current = getOwn(target, key);
|
|
2259
2407
|
if (current !== void 0) {
|
|
2260
2408
|
if (Array.isArray(current)) {
|
|
2261
2409
|
return current;
|
|
@@ -2265,7 +2413,7 @@ function getOrCreateChild(target, key, nextIsArray) {
|
|
|
2265
2413
|
}
|
|
2266
2414
|
}
|
|
2267
2415
|
const created = nextIsArray ? [] : {};
|
|
2268
|
-
target
|
|
2416
|
+
setOwn(target, key, created);
|
|
2269
2417
|
return created;
|
|
2270
2418
|
}
|
|
2271
2419
|
function setValueAtPath(target, path, value) {
|
|
@@ -2295,7 +2443,7 @@ function setValueAtPath(target, path, value) {
|
|
|
2295
2443
|
}
|
|
2296
2444
|
const key = segmentToKey(segment);
|
|
2297
2445
|
if (isLast) {
|
|
2298
|
-
cursor
|
|
2446
|
+
setOwn(cursor, key, value);
|
|
2299
2447
|
return;
|
|
2300
2448
|
}
|
|
2301
2449
|
cursor = getOrCreateChild(cursor, key, typeof next === "number");
|
|
@@ -2339,13 +2487,15 @@ function ensureSchemaNode(root, path) {
|
|
|
2339
2487
|
}
|
|
2340
2488
|
const key = segmentToKey(segment);
|
|
2341
2489
|
cursor.properties ??= {};
|
|
2342
|
-
|
|
2343
|
-
|
|
2490
|
+
let child = getOwn(cursor.properties, key);
|
|
2491
|
+
if (!child) {
|
|
2492
|
+
child = {
|
|
2344
2493
|
type: "object",
|
|
2345
2494
|
properties: {}
|
|
2346
2495
|
};
|
|
2496
|
+
setOwn(cursor.properties, key, child);
|
|
2347
2497
|
}
|
|
2348
|
-
cursor =
|
|
2498
|
+
cursor = child;
|
|
2349
2499
|
}
|
|
2350
2500
|
return cursor;
|
|
2351
2501
|
}
|
|
@@ -2353,11 +2503,12 @@ function ensureFrameNode(root, path) {
|
|
|
2353
2503
|
let cursor = root;
|
|
2354
2504
|
for (const segment of path) {
|
|
2355
2505
|
const key = segmentToKey(segment);
|
|
2356
|
-
|
|
2506
|
+
let current = getOwn(cursor, key);
|
|
2357
2507
|
if (!current || typeof current !== "object" || Array.isArray(current)) {
|
|
2358
|
-
|
|
2508
|
+
current = {};
|
|
2509
|
+
setOwn(cursor, key, current);
|
|
2359
2510
|
}
|
|
2360
|
-
cursor =
|
|
2511
|
+
cursor = current;
|
|
2361
2512
|
}
|
|
2362
2513
|
return cursor;
|
|
2363
2514
|
}
|
|
@@ -2406,7 +2557,7 @@ function buildClaimsMetadata(fields) {
|
|
|
2406
2557
|
}
|
|
2407
2558
|
function buildLeafSchema(field) {
|
|
2408
2559
|
const schema = {
|
|
2409
|
-
...field.constraints,
|
|
2560
|
+
...sanitizeConstraints(field.constraints),
|
|
2410
2561
|
type: field.type
|
|
2411
2562
|
};
|
|
2412
2563
|
const title = getDisplayTitle(field.display);
|
|
@@ -2446,8 +2597,12 @@ function buildJsonSchema(fields) {
|
|
|
2446
2597
|
}
|
|
2447
2598
|
const leafKey = segmentToKey(leafSegment ?? "");
|
|
2448
2599
|
parent.properties ??= {};
|
|
2449
|
-
const existing = parent.properties
|
|
2450
|
-
|
|
2600
|
+
const existing = getOwn(parent.properties, leafKey);
|
|
2601
|
+
setOwn(
|
|
2602
|
+
parent.properties,
|
|
2603
|
+
leafKey,
|
|
2604
|
+
existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
|
|
2605
|
+
);
|
|
2451
2606
|
if (field.mandatory) {
|
|
2452
2607
|
addRequired(parent, leafKey);
|
|
2453
2608
|
}
|
|
@@ -2460,10 +2615,14 @@ function buildClaimsByNamespace(fields) {
|
|
|
2460
2615
|
if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
|
|
2461
2616
|
continue;
|
|
2462
2617
|
}
|
|
2463
|
-
|
|
2464
|
-
byNamespace
|
|
2618
|
+
let namespaceTarget = getOwn(
|
|
2619
|
+
byNamespace,
|
|
2620
|
+
field.namespace
|
|
2621
|
+
);
|
|
2622
|
+
if (!namespaceTarget) {
|
|
2623
|
+
namespaceTarget = {};
|
|
2624
|
+
setOwn(byNamespace, field.namespace, namespaceTarget);
|
|
2465
2625
|
}
|
|
2466
|
-
const namespaceTarget = byNamespace[field.namespace];
|
|
2467
2626
|
const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
|
|
2468
2627
|
setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
|
|
2469
2628
|
}
|
|
@@ -2479,6 +2638,6 @@ function deriveRuntimeArtifacts(fields) {
|
|
|
2479
2638
|
};
|
|
2480
2639
|
}
|
|
2481
2640
|
|
|
2482
|
-
export { EudiploClient, appControllerGetFrontendConfig, appControllerGetVersion, attributeProviderControllerCreate, attributeProviderControllerDelete, attributeProviderControllerGetAll, attributeProviderControllerGetById, attributeProviderControllerUpdate, auditLogControllerGetAuditLogs, authControllerGetOAuth2Token, buildClaims, buildClaimsByNamespace, buildClaimsMetadata, buildDisclosureFrame, buildJsonSchema, cacheControllerClearAllCaches, cacheControllerClearStatusListCache, cacheControllerClearTrustListCache, cacheControllerGetStats, client, clientControllerCreateClient, clientControllerDeleteClient, clientControllerGetClient, clientControllerGetClients, clientControllerRotateClientSecret, clientControllerUpdateClient, configPortabilityControllerAcknowledgeInterruption, configPortabilityControllerDetach, configPortabilityControllerExport, configPortabilityControllerImport, configPortabilityControllerImportArchive, configPortabilityControllerOperation, configPortabilityControllerOperations, configPortabilityControllerPlan, configPortabilityControllerPlanArchive, configPortabilityControllerPlanReattach, configPortabilityControllerReattach, configPortabilityControllerResources, configPortabilityControllerResourcesOfKind, configPortabilityControllerUpgrade, credentialConfigControllerDeleteIssuanceConfiguration, credentialConfigControllerGetConfigById, credentialConfigControllerGetConfigs, credentialConfigControllerStoreCredentialConfiguration, credentialConfigControllerUpdateCredentialConfiguration, credentialOfferControllerGetOffer,
|
|
2641
|
+
export { EudiploClient, appControllerGetFrontendConfig, appControllerGetVersion, attributeProviderControllerCreate, attributeProviderControllerDelete, attributeProviderControllerGetAll, attributeProviderControllerGetById, attributeProviderControllerUpdate, auditLogControllerGetAuditLogs, authControllerGetCaller, authControllerGetOAuth2Token, buildClaims, buildClaimsByNamespace, buildClaimsMetadata, buildDisclosureFrame, buildJsonSchema, cacheControllerClearAllCaches, cacheControllerClearStatusListCache, cacheControllerClearTrustListCache, cacheControllerForgetTrustListSequenceNumbers, cacheControllerGetStats, client, clientControllerCreateClient, clientControllerDeleteClient, clientControllerGetClient, clientControllerGetClients, clientControllerRotateClientSecret, clientControllerUpdateClient, configPortabilityControllerAcknowledgeInterruption, configPortabilityControllerDetach, configPortabilityControllerExport, configPortabilityControllerExportDocument, configPortabilityControllerImport, configPortabilityControllerImportArchive, configPortabilityControllerOperation, configPortabilityControllerOperations, configPortabilityControllerPlan, configPortabilityControllerPlanArchive, configPortabilityControllerPlanReattach, configPortabilityControllerReattach, configPortabilityControllerResources, configPortabilityControllerResourcesOfKind, configPortabilityControllerUpgrade, credentialConfigControllerDeleteIssuanceConfiguration, credentialConfigControllerGetConfigById, credentialConfigControllerGetConfigs, credentialConfigControllerStoreCredentialConfiguration, credentialConfigControllerUpdateCredentialConfiguration, credentialOfferControllerGetOffer, defaultAccessKeyChainControllerGet, defaultAccessKeyChainControllerSet, deferredControllerCompleteDeferred, deferredControllerFailDeferred, deriveRuntimeArtifacts, eudiHubControllerListOrganizations, eudiHubControllerOrganizationDetails, eudiHubControllerRequestAccessCertificate, eudiHubControllerRequestIssuerRegistrationCertificate, eudiHubControllerRequestPresentationRegistrationCertificate, federationTrustAnchorControllerCreate, federationTrustAnchorControllerDelete, federationTrustAnchorControllerGetAll, federationTrustAnchorControllerGetById, federationTrustAnchorControllerUpdate, flattenFields, isDcApiAvailable, issuanceConfigControllerGetIssuanceConfigurations, issuanceConfigControllerStoreIssuanceConfiguration, keyChainControllerCreate, keyChainControllerCreateCsr, keyChainControllerDelete, keyChainControllerDeleteTenantKmsConfig, keyChainControllerExport, keyChainControllerGetAll, keyChainControllerGetById, keyChainControllerGetProviders, keyChainControllerGetProvidersHealth, keyChainControllerGetTenantKmsConfig, keyChainControllerImport, keyChainControllerRotate, keyChainControllerUpdate, keyChainControllerUpdateTenantKmsConfig, oidcClientControllerAddSecret, oidcClientControllerCreate, oidcClientControllerDelete, oidcClientControllerDeleteSecret, oidcClientControllerGet, oidcClientControllerList, oidcClientControllerUpdate, oidcClientControllerUpdateSecret, presentationManagementControllerConfiguration, presentationManagementControllerDeleteConfiguration, presentationManagementControllerGetConfiguration, presentationManagementControllerResolveIssuerMetadata, presentationManagementControllerResolveSchemaMetadata, presentationManagementControllerResolveSchemaMetadataJwt, presentationManagementControllerStorePresentationConfig, presentationManagementControllerUpdateConfiguration, sessionConfigControllerGetConfig, sessionConfigControllerResetConfig, sessionConfigControllerUpdateConfig, sessionControllerCancel, sessionControllerDeleteSession, sessionControllerGetAllSessions, sessionControllerGetCredentialStatus, sessionControllerGetSession, sessionControllerGetSessionLogs, sessionControllerGetSessionStats, sessionControllerRevokeAll, sessionEventsControllerSubscribeToSessionEvents, statusListConfigControllerGetConfig, statusListConfigControllerResetConfig, statusListConfigControllerUpdateConfig, statusListManagementControllerCreateList, statusListManagementControllerDeleteList, statusListManagementControllerGetList, statusListManagementControllerGetLists, statusListManagementControllerUpdateList, storageControllerUpload, tenantControllerDeleteTenant, tenantControllerGetTenant, tenantControllerGetTenants, tenantControllerInitTenant, tenantControllerUpdateTenant, trustListControllerCreateTrustList, trustListControllerDeleteTrustList, trustListControllerExportTrustList, trustListControllerGetAllTrustLists, trustListControllerGetTrustList, trustListControllerGetTrustListVersion, trustListControllerGetTrustListVersions, trustListControllerUpdateTrustList, unsupportedConstraints, userControllerCreateUser, userControllerDeleteUser, userControllerGetUser, userControllerGetUsers, userControllerUpdateUser, verifierOfferControllerGetOffer, webhookEndpointControllerCreate, webhookEndpointControllerDelete, webhookEndpointControllerGetAll, webhookEndpointControllerGetById, webhookEndpointControllerUpdate };
|
|
2483
2642
|
//# sourceMappingURL=index.mjs.map
|
|
2484
2643
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -344,4 +344,5 @@ interface TDataShape {
|
|
|
344
344
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
345
345
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
346
346
|
|
|
347
|
-
export {
|
|
347
|
+
export { createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
|
|
348
|
+
export type { Auth as A, Config as C, Options as O, QuerySerializerOptions as Q, RequestOptions as R, ServerSentEventsResult as S, TDataShape as T, Client as a, ClientOptions as b, ClientMeta as c, CreateClientConfig as d, RequestResult as e, ResolvedRequestOptions as f, ResponseStyle as g };
|
|
@@ -344,4 +344,5 @@ interface TDataShape {
|
|
|
344
344
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
345
345
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
346
346
|
|
|
347
|
-
export {
|
|
347
|
+
export { createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
|
|
348
|
+
export type { Auth as A, Config as C, Options as O, QuerySerializerOptions as Q, RequestOptions as R, ServerSentEventsResult as S, TDataShape as T, Client as a, ClientOptions as b, ClientMeta as c, CreateClientConfig as d, RequestResult as e, ResolvedRequestOptions as f, ResponseStyle as g };
|