@eudiplo/sdk-core 9.1.0-main.ea0dcd8 → 9.1.0-main.ecb11e8
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 +117 -105
- package/dist/api/index.d.ts +117 -105
- package/dist/api/index.js +113 -121
- package/dist/api/index.mjs +94 -100
- package/dist/index.d.mts +29 -7
- package/dist/index.d.ts +29 -7
- package/dist/index.js +257 -136
- package/dist/index.mjs +237 -115
- 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-CUQHFJx0.d.mts → types.gen-CgeSVka2.d.mts} +1759 -1608
- package/dist/{types.gen-CUQHFJx0.d.ts → types.gen-CgeSVka2.d.ts} +1759 -1608
- 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,11 +885,35 @@ 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",
|
|
886
905
|
...options
|
|
887
906
|
});
|
|
907
|
+
var auditLogControllerSearchAuditLogs = (options) => (options?.client ?? client).get({
|
|
908
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
909
|
+
url: "/api/admin/audit-logs/search",
|
|
910
|
+
...options
|
|
911
|
+
});
|
|
912
|
+
var auditLogControllerGetRetention = (options) => (options?.client ?? client).get({
|
|
913
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
914
|
+
url: "/api/admin/audit-logs/retention",
|
|
915
|
+
...options
|
|
916
|
+
});
|
|
888
917
|
var clientControllerGetClients = (options) => (options?.client ?? client).get({
|
|
889
918
|
security: [{ scheme: "bearer", type: "http" }],
|
|
890
919
|
url: "/api/client",
|
|
@@ -923,52 +952,6 @@ var clientControllerRotateClientSecret = (options) => (options.client ?? client)
|
|
|
923
952
|
url: "/api/client/{id}/rotate-secret",
|
|
924
953
|
...options
|
|
925
954
|
});
|
|
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
|
-
var registrarControllerCreateAccessKeyChain = (options) => (options.client ?? client).post({
|
|
964
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
965
|
-
url: "/api/registrar/access-key-chain",
|
|
966
|
-
...options,
|
|
967
|
-
headers: {
|
|
968
|
-
"Content-Type": "application/json",
|
|
969
|
-
...options.headers
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
955
|
var userControllerGetUsers = (options) => (options?.client ?? client).get({
|
|
973
956
|
security: [{ scheme: "bearer", type: "http" }],
|
|
974
957
|
url: "/api/user",
|
|
@@ -1069,6 +1052,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
|
|
|
1069
1052
|
url: "/api/key-chain/{id}/export",
|
|
1070
1053
|
...options
|
|
1071
1054
|
});
|
|
1055
|
+
var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
|
|
1056
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1057
|
+
url: "/api/key-chain/{id}/csr",
|
|
1058
|
+
...options
|
|
1059
|
+
});
|
|
1072
1060
|
var keyChainControllerImport = (options) => (options.client ?? client).post({
|
|
1073
1061
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1074
1062
|
url: "/api/key-chain/import",
|
|
@@ -1190,11 +1178,6 @@ var presentationManagementControllerResolveSchemaMetadataJwt = (options) => (opt
|
|
|
1190
1178
|
...options.headers
|
|
1191
1179
|
}
|
|
1192
1180
|
});
|
|
1193
|
-
var presentationManagementControllerListSchemaMetadataCatalog = (options) => (options?.client ?? client).get({
|
|
1194
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1195
|
-
url: "/api/verifier/config/schema-metadata/catalog",
|
|
1196
|
-
...options
|
|
1197
|
-
});
|
|
1198
1181
|
var presentationManagementControllerDeleteConfiguration = (options) => (options.client ?? client).delete({
|
|
1199
1182
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1200
1183
|
url: "/api/verifier/config/{id}",
|
|
@@ -1214,11 +1197,6 @@ var presentationManagementControllerUpdateConfiguration = (options) => (options.
|
|
|
1214
1197
|
...options.headers
|
|
1215
1198
|
}
|
|
1216
1199
|
});
|
|
1217
|
-
var presentationManagementControllerReissueRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1218
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1219
|
-
url: "/api/verifier/config/{id}/registration-cert/reissue",
|
|
1220
|
-
...options
|
|
1221
|
-
});
|
|
1222
1200
|
var trustListControllerGetAllTrustLists = (options) => (options?.client ?? client).get({
|
|
1223
1201
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1224
1202
|
url: "/api/trust-list",
|
|
@@ -1282,6 +1260,11 @@ var cacheControllerClearTrustListCache = (options) => (options?.client ?? client
|
|
|
1282
1260
|
url: "/api/cache/trust-list",
|
|
1283
1261
|
...options
|
|
1284
1262
|
});
|
|
1263
|
+
var cacheControllerForgetTrustListSequenceNumbers = (options) => (options?.client ?? client).delete({
|
|
1264
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1265
|
+
url: "/api/cache/trust-list/sequence-numbers",
|
|
1266
|
+
...options
|
|
1267
|
+
});
|
|
1285
1268
|
var cacheControllerClearStatusListCache = (options) => (options?.client ?? client).delete({
|
|
1286
1269
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1287
1270
|
url: "/api/cache/status-list",
|
|
@@ -1491,122 +1474,133 @@ var issuanceConfigControllerStoreIssuanceConfiguration = (options) => (options.c
|
|
|
1491
1474
|
...options.headers
|
|
1492
1475
|
}
|
|
1493
1476
|
});
|
|
1494
|
-
var
|
|
1477
|
+
var credentialOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1495
1478
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1496
|
-
url: "/api/issuer/
|
|
1497
|
-
...options
|
|
1479
|
+
url: "/api/issuer/offer",
|
|
1480
|
+
...options,
|
|
1481
|
+
headers: {
|
|
1482
|
+
"Content-Type": "application/json",
|
|
1483
|
+
...options.headers
|
|
1484
|
+
}
|
|
1498
1485
|
});
|
|
1499
|
-
var
|
|
1486
|
+
var deferredControllerCompleteDeferred = (options) => (options.client ?? client).post({
|
|
1500
1487
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1501
|
-
url: "/api/
|
|
1488
|
+
url: "/api/issuer/deferred/{transactionId}/complete",
|
|
1502
1489
|
...options,
|
|
1503
1490
|
headers: {
|
|
1504
1491
|
"Content-Type": "application/json",
|
|
1505
1492
|
...options.headers
|
|
1506
1493
|
}
|
|
1507
1494
|
});
|
|
1508
|
-
var
|
|
1495
|
+
var deferredControllerFailDeferred = (options) => (options.client ?? client).post({
|
|
1509
1496
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1510
|
-
url: "/api/
|
|
1497
|
+
url: "/api/issuer/deferred/{transactionId}/fail",
|
|
1511
1498
|
...options,
|
|
1512
1499
|
headers: {
|
|
1513
1500
|
"Content-Type": "application/json",
|
|
1514
1501
|
...options.headers
|
|
1515
1502
|
}
|
|
1516
1503
|
});
|
|
1517
|
-
var
|
|
1504
|
+
var verifierOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1518
1505
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1519
|
-
url: "/api/
|
|
1520
|
-
...options
|
|
1506
|
+
url: "/api/verifier/offer",
|
|
1507
|
+
...options,
|
|
1508
|
+
headers: {
|
|
1509
|
+
"Content-Type": "application/json",
|
|
1510
|
+
...options.headers
|
|
1511
|
+
}
|
|
1521
1512
|
});
|
|
1522
|
-
var
|
|
1513
|
+
var oidcClientControllerList = (options) => (options?.client ?? client).get({
|
|
1523
1514
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1524
|
-
url: "/api/
|
|
1515
|
+
url: "/api/verifier/oidc-clients",
|
|
1525
1516
|
...options
|
|
1526
1517
|
});
|
|
1527
|
-
var
|
|
1518
|
+
var oidcClientControllerCreate = (options) => (options.client ?? client).post({
|
|
1528
1519
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1529
|
-
url: "/api/
|
|
1530
|
-
...options
|
|
1520
|
+
url: "/api/verifier/oidc-clients",
|
|
1521
|
+
...options,
|
|
1522
|
+
headers: {
|
|
1523
|
+
"Content-Type": "application/json",
|
|
1524
|
+
...options.headers
|
|
1525
|
+
}
|
|
1531
1526
|
});
|
|
1532
|
-
var
|
|
1527
|
+
var oidcClientControllerDelete = (options) => (options.client ?? client).delete({
|
|
1533
1528
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1534
|
-
url: "/api/
|
|
1529
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1535
1530
|
...options
|
|
1536
1531
|
});
|
|
1537
|
-
var
|
|
1532
|
+
var oidcClientControllerGet = (options) => (options.client ?? client).get({
|
|
1538
1533
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1539
|
-
url: "/api/
|
|
1534
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1540
1535
|
...options
|
|
1541
1536
|
});
|
|
1542
|
-
var
|
|
1537
|
+
var oidcClientControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1543
1538
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1544
|
-
url: "/api/
|
|
1539
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1545
1540
|
...options,
|
|
1546
1541
|
headers: {
|
|
1547
1542
|
"Content-Type": "application/json",
|
|
1548
1543
|
...options.headers
|
|
1549
1544
|
}
|
|
1550
1545
|
});
|
|
1551
|
-
var
|
|
1546
|
+
var oidcClientControllerAddSecret = (options) => (options.client ?? client).post({
|
|
1552
1547
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1553
|
-
url: "/api/
|
|
1548
|
+
url: "/api/verifier/oidc-clients/{id}/secrets",
|
|
1554
1549
|
...options
|
|
1555
1550
|
});
|
|
1556
|
-
var
|
|
1551
|
+
var oidcClientControllerDeleteSecret = (options) => (options.client ?? client).delete({
|
|
1557
1552
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1558
|
-
url: "/api/
|
|
1553
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1559
1554
|
...options
|
|
1560
1555
|
});
|
|
1561
|
-
var
|
|
1556
|
+
var oidcClientControllerUpdateSecret = (options) => (options.client ?? client).patch({
|
|
1562
1557
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1563
|
-
url: "/api/
|
|
1564
|
-
...options
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
...options
|
|
1558
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1559
|
+
...options,
|
|
1560
|
+
headers: {
|
|
1561
|
+
"Content-Type": "application/json",
|
|
1562
|
+
...options.headers
|
|
1563
|
+
}
|
|
1570
1564
|
});
|
|
1571
|
-
var
|
|
1565
|
+
var eudiHubControllerListOrganizations = (options) => (options.client ?? client).post({
|
|
1572
1566
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1573
|
-
url: "/api/
|
|
1567
|
+
url: "/api/eudi-hub/organizations",
|
|
1574
1568
|
...options,
|
|
1575
1569
|
headers: {
|
|
1576
1570
|
"Content-Type": "application/json",
|
|
1577
1571
|
...options.headers
|
|
1578
1572
|
}
|
|
1579
1573
|
});
|
|
1580
|
-
var
|
|
1574
|
+
var eudiHubControllerRequestAccessCertificate = (options) => (options.client ?? client).post({
|
|
1581
1575
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1582
|
-
url: "/api/
|
|
1576
|
+
url: "/api/eudi-hub/access-certificate",
|
|
1583
1577
|
...options,
|
|
1584
1578
|
headers: {
|
|
1585
1579
|
"Content-Type": "application/json",
|
|
1586
1580
|
...options.headers
|
|
1587
1581
|
}
|
|
1588
1582
|
});
|
|
1589
|
-
var
|
|
1583
|
+
var eudiHubControllerOrganizationDetails = (options) => (options.client ?? client).post({
|
|
1590
1584
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1591
|
-
url: "/api/
|
|
1585
|
+
url: "/api/eudi-hub/organization-details",
|
|
1592
1586
|
...options,
|
|
1593
1587
|
headers: {
|
|
1594
1588
|
"Content-Type": "application/json",
|
|
1595
1589
|
...options.headers
|
|
1596
1590
|
}
|
|
1597
1591
|
});
|
|
1598
|
-
var
|
|
1592
|
+
var eudiHubControllerRequestPresentationRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1599
1593
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1600
|
-
url: "/api/
|
|
1594
|
+
url: "/api/eudi-hub/registration-certificate/presentation",
|
|
1601
1595
|
...options,
|
|
1602
1596
|
headers: {
|
|
1603
1597
|
"Content-Type": "application/json",
|
|
1604
1598
|
...options.headers
|
|
1605
1599
|
}
|
|
1606
1600
|
});
|
|
1607
|
-
var
|
|
1601
|
+
var eudiHubControllerRequestIssuerRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1608
1602
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1609
|
-
url: "/api/
|
|
1603
|
+
url: "/api/eudi-hub/registration-certificate/issuer",
|
|
1610
1604
|
...options,
|
|
1611
1605
|
headers: {
|
|
1612
1606
|
"Content-Type": "application/json",
|
|
@@ -2258,6 +2252,112 @@ async function submitDcApiResponse(options) {
|
|
|
2258
2252
|
return mapDcApiPresentationResult(result);
|
|
2259
2253
|
}
|
|
2260
2254
|
|
|
2255
|
+
// src/config/constraints.ts
|
|
2256
|
+
var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2257
|
+
"type",
|
|
2258
|
+
"enum",
|
|
2259
|
+
"const",
|
|
2260
|
+
"multipleOf",
|
|
2261
|
+
"maximum",
|
|
2262
|
+
"exclusiveMaximum",
|
|
2263
|
+
"minimum",
|
|
2264
|
+
"exclusiveMinimum",
|
|
2265
|
+
"maxLength",
|
|
2266
|
+
"minLength",
|
|
2267
|
+
"pattern",
|
|
2268
|
+
"maxItems",
|
|
2269
|
+
"minItems",
|
|
2270
|
+
"uniqueItems",
|
|
2271
|
+
"maxContains",
|
|
2272
|
+
"minContains",
|
|
2273
|
+
"maxProperties",
|
|
2274
|
+
"minProperties",
|
|
2275
|
+
"required",
|
|
2276
|
+
"dependentRequired",
|
|
2277
|
+
"title",
|
|
2278
|
+
"description",
|
|
2279
|
+
"default",
|
|
2280
|
+
"examples",
|
|
2281
|
+
"deprecated",
|
|
2282
|
+
"readOnly",
|
|
2283
|
+
"writeOnly",
|
|
2284
|
+
"$comment"
|
|
2285
|
+
]);
|
|
2286
|
+
var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2287
|
+
"items",
|
|
2288
|
+
"contains",
|
|
2289
|
+
"additionalProperties",
|
|
2290
|
+
"propertyNames",
|
|
2291
|
+
"not",
|
|
2292
|
+
"if",
|
|
2293
|
+
"then",
|
|
2294
|
+
"else",
|
|
2295
|
+
"unevaluatedItems",
|
|
2296
|
+
"unevaluatedProperties"
|
|
2297
|
+
]);
|
|
2298
|
+
var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
|
|
2299
|
+
var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2300
|
+
"properties",
|
|
2301
|
+
"patternProperties",
|
|
2302
|
+
"dependentSchemas"
|
|
2303
|
+
]);
|
|
2304
|
+
function isPlainObject(value) {
|
|
2305
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2306
|
+
}
|
|
2307
|
+
function pointer(path, segment) {
|
|
2308
|
+
return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
2309
|
+
}
|
|
2310
|
+
function sanitizeSchema(value, path, removed) {
|
|
2311
|
+
if (typeof value === "boolean") {
|
|
2312
|
+
return value;
|
|
2313
|
+
}
|
|
2314
|
+
if (!isPlainObject(value)) {
|
|
2315
|
+
removed.push({ pointer: path, reason: "not-a-schema" });
|
|
2316
|
+
return void 0;
|
|
2317
|
+
}
|
|
2318
|
+
const entries = [];
|
|
2319
|
+
for (const [key, child] of Object.entries(value)) {
|
|
2320
|
+
const childPath = pointer(path, key);
|
|
2321
|
+
if (VALUE_KEYWORDS.has(key)) {
|
|
2322
|
+
entries.push([key, child]);
|
|
2323
|
+
} else if (SCHEMA_KEYWORDS.has(key)) {
|
|
2324
|
+
const schema = sanitizeSchema(child, childPath, removed);
|
|
2325
|
+
if (schema !== void 0) {
|
|
2326
|
+
entries.push([key, schema]);
|
|
2327
|
+
}
|
|
2328
|
+
} else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
|
|
2329
|
+
entries.push([
|
|
2330
|
+
key,
|
|
2331
|
+
child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
|
|
2332
|
+
]);
|
|
2333
|
+
} else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
|
|
2334
|
+
entries.push([
|
|
2335
|
+
key,
|
|
2336
|
+
Object.fromEntries(
|
|
2337
|
+
Object.entries(child).map(
|
|
2338
|
+
([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
|
|
2339
|
+
).filter(([, schema]) => schema !== void 0)
|
|
2340
|
+
)
|
|
2341
|
+
]);
|
|
2342
|
+
} else {
|
|
2343
|
+
removed.push({
|
|
2344
|
+
pointer: childPath,
|
|
2345
|
+
reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
return Object.fromEntries(entries);
|
|
2350
|
+
}
|
|
2351
|
+
function sanitizeConstraints(constraints) {
|
|
2352
|
+
const schema = sanitizeSchema(constraints, "", []);
|
|
2353
|
+
return isPlainObject(schema) ? schema : {};
|
|
2354
|
+
}
|
|
2355
|
+
function unsupportedConstraints(constraints) {
|
|
2356
|
+
const removed = [];
|
|
2357
|
+
sanitizeSchema(constraints, "", removed);
|
|
2358
|
+
return removed;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2261
2361
|
// src/config/derive.ts
|
|
2262
2362
|
var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
2263
2363
|
function resolveChildPath(parentPath, parentType, childPath) {
|
|
@@ -2303,8 +2403,19 @@ function segmentToKey(segment) {
|
|
|
2303
2403
|
}
|
|
2304
2404
|
return String(segment);
|
|
2305
2405
|
}
|
|
2406
|
+
function getOwn(target, key) {
|
|
2407
|
+
return Object.hasOwn(target, key) ? target[key] : void 0;
|
|
2408
|
+
}
|
|
2409
|
+
function setOwn(target, key, value) {
|
|
2410
|
+
Object.defineProperty(target, key, {
|
|
2411
|
+
value,
|
|
2412
|
+
writable: true,
|
|
2413
|
+
enumerable: true,
|
|
2414
|
+
configurable: true
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2306
2417
|
function getOrCreateChild(target, key, nextIsArray) {
|
|
2307
|
-
const current = target
|
|
2418
|
+
const current = getOwn(target, key);
|
|
2308
2419
|
if (current !== void 0) {
|
|
2309
2420
|
if (Array.isArray(current)) {
|
|
2310
2421
|
return current;
|
|
@@ -2314,7 +2425,7 @@ function getOrCreateChild(target, key, nextIsArray) {
|
|
|
2314
2425
|
}
|
|
2315
2426
|
}
|
|
2316
2427
|
const created = nextIsArray ? [] : {};
|
|
2317
|
-
target
|
|
2428
|
+
setOwn(target, key, created);
|
|
2318
2429
|
return created;
|
|
2319
2430
|
}
|
|
2320
2431
|
function setValueAtPath(target, path, value) {
|
|
@@ -2344,7 +2455,7 @@ function setValueAtPath(target, path, value) {
|
|
|
2344
2455
|
}
|
|
2345
2456
|
const key = segmentToKey(segment);
|
|
2346
2457
|
if (isLast) {
|
|
2347
|
-
cursor
|
|
2458
|
+
setOwn(cursor, key, value);
|
|
2348
2459
|
return;
|
|
2349
2460
|
}
|
|
2350
2461
|
cursor = getOrCreateChild(cursor, key, typeof next === "number");
|
|
@@ -2388,13 +2499,15 @@ function ensureSchemaNode(root, path) {
|
|
|
2388
2499
|
}
|
|
2389
2500
|
const key = segmentToKey(segment);
|
|
2390
2501
|
cursor.properties ??= {};
|
|
2391
|
-
|
|
2392
|
-
|
|
2502
|
+
let child = getOwn(cursor.properties, key);
|
|
2503
|
+
if (!child) {
|
|
2504
|
+
child = {
|
|
2393
2505
|
type: "object",
|
|
2394
2506
|
properties: {}
|
|
2395
2507
|
};
|
|
2508
|
+
setOwn(cursor.properties, key, child);
|
|
2396
2509
|
}
|
|
2397
|
-
cursor =
|
|
2510
|
+
cursor = child;
|
|
2398
2511
|
}
|
|
2399
2512
|
return cursor;
|
|
2400
2513
|
}
|
|
@@ -2402,11 +2515,12 @@ function ensureFrameNode(root, path) {
|
|
|
2402
2515
|
let cursor = root;
|
|
2403
2516
|
for (const segment of path) {
|
|
2404
2517
|
const key = segmentToKey(segment);
|
|
2405
|
-
|
|
2518
|
+
let current = getOwn(cursor, key);
|
|
2406
2519
|
if (!current || typeof current !== "object" || Array.isArray(current)) {
|
|
2407
|
-
|
|
2520
|
+
current = {};
|
|
2521
|
+
setOwn(cursor, key, current);
|
|
2408
2522
|
}
|
|
2409
|
-
cursor =
|
|
2523
|
+
cursor = current;
|
|
2410
2524
|
}
|
|
2411
2525
|
return cursor;
|
|
2412
2526
|
}
|
|
@@ -2455,7 +2569,7 @@ function buildClaimsMetadata(fields) {
|
|
|
2455
2569
|
}
|
|
2456
2570
|
function buildLeafSchema(field) {
|
|
2457
2571
|
const schema = {
|
|
2458
|
-
...field.constraints,
|
|
2572
|
+
...sanitizeConstraints(field.constraints),
|
|
2459
2573
|
type: field.type
|
|
2460
2574
|
};
|
|
2461
2575
|
const title = getDisplayTitle(field.display);
|
|
@@ -2495,8 +2609,12 @@ function buildJsonSchema(fields) {
|
|
|
2495
2609
|
}
|
|
2496
2610
|
const leafKey = segmentToKey(leafSegment ?? "");
|
|
2497
2611
|
parent.properties ??= {};
|
|
2498
|
-
const existing = parent.properties
|
|
2499
|
-
|
|
2612
|
+
const existing = getOwn(parent.properties, leafKey);
|
|
2613
|
+
setOwn(
|
|
2614
|
+
parent.properties,
|
|
2615
|
+
leafKey,
|
|
2616
|
+
existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
|
|
2617
|
+
);
|
|
2500
2618
|
if (field.mandatory) {
|
|
2501
2619
|
addRequired(parent, leafKey);
|
|
2502
2620
|
}
|
|
@@ -2509,10 +2627,14 @@ function buildClaimsByNamespace(fields) {
|
|
|
2509
2627
|
if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
|
|
2510
2628
|
continue;
|
|
2511
2629
|
}
|
|
2512
|
-
|
|
2513
|
-
byNamespace
|
|
2630
|
+
let namespaceTarget = getOwn(
|
|
2631
|
+
byNamespace,
|
|
2632
|
+
field.namespace
|
|
2633
|
+
);
|
|
2634
|
+
if (!namespaceTarget) {
|
|
2635
|
+
namespaceTarget = {};
|
|
2636
|
+
setOwn(byNamespace, field.namespace, namespaceTarget);
|
|
2514
2637
|
}
|
|
2515
|
-
const namespaceTarget = byNamespace[field.namespace];
|
|
2516
2638
|
const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
|
|
2517
2639
|
setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
|
|
2518
2640
|
}
|
|
@@ -2537,6 +2659,9 @@ exports.attributeProviderControllerGetAll = attributeProviderControllerGetAll;
|
|
|
2537
2659
|
exports.attributeProviderControllerGetById = attributeProviderControllerGetById;
|
|
2538
2660
|
exports.attributeProviderControllerUpdate = attributeProviderControllerUpdate;
|
|
2539
2661
|
exports.auditLogControllerGetAuditLogs = auditLogControllerGetAuditLogs;
|
|
2662
|
+
exports.auditLogControllerGetRetention = auditLogControllerGetRetention;
|
|
2663
|
+
exports.auditLogControllerSearchAuditLogs = auditLogControllerSearchAuditLogs;
|
|
2664
|
+
exports.authControllerGetCaller = authControllerGetCaller;
|
|
2540
2665
|
exports.authControllerGetOAuth2Token = authControllerGetOAuth2Token;
|
|
2541
2666
|
exports.buildClaims = buildClaims;
|
|
2542
2667
|
exports.buildClaimsByNamespace = buildClaimsByNamespace;
|
|
@@ -2546,6 +2671,7 @@ exports.buildJsonSchema = buildJsonSchema;
|
|
|
2546
2671
|
exports.cacheControllerClearAllCaches = cacheControllerClearAllCaches;
|
|
2547
2672
|
exports.cacheControllerClearStatusListCache = cacheControllerClearStatusListCache;
|
|
2548
2673
|
exports.cacheControllerClearTrustListCache = cacheControllerClearTrustListCache;
|
|
2674
|
+
exports.cacheControllerForgetTrustListSequenceNumbers = cacheControllerForgetTrustListSequenceNumbers;
|
|
2549
2675
|
exports.cacheControllerGetStats = cacheControllerGetStats;
|
|
2550
2676
|
exports.client = client;
|
|
2551
2677
|
exports.clientControllerCreateClient = clientControllerCreateClient;
|
|
@@ -2575,9 +2701,16 @@ exports.credentialConfigControllerGetConfigs = credentialConfigControllerGetConf
|
|
|
2575
2701
|
exports.credentialConfigControllerStoreCredentialConfiguration = credentialConfigControllerStoreCredentialConfiguration;
|
|
2576
2702
|
exports.credentialConfigControllerUpdateCredentialConfiguration = credentialConfigControllerUpdateCredentialConfiguration;
|
|
2577
2703
|
exports.credentialOfferControllerGetOffer = credentialOfferControllerGetOffer;
|
|
2704
|
+
exports.defaultAccessKeyChainControllerGet = defaultAccessKeyChainControllerGet;
|
|
2705
|
+
exports.defaultAccessKeyChainControllerSet = defaultAccessKeyChainControllerSet;
|
|
2578
2706
|
exports.deferredControllerCompleteDeferred = deferredControllerCompleteDeferred;
|
|
2579
2707
|
exports.deferredControllerFailDeferred = deferredControllerFailDeferred;
|
|
2580
2708
|
exports.deriveRuntimeArtifacts = deriveRuntimeArtifacts;
|
|
2709
|
+
exports.eudiHubControllerListOrganizations = eudiHubControllerListOrganizations;
|
|
2710
|
+
exports.eudiHubControllerOrganizationDetails = eudiHubControllerOrganizationDetails;
|
|
2711
|
+
exports.eudiHubControllerRequestAccessCertificate = eudiHubControllerRequestAccessCertificate;
|
|
2712
|
+
exports.eudiHubControllerRequestIssuerRegistrationCertificate = eudiHubControllerRequestIssuerRegistrationCertificate;
|
|
2713
|
+
exports.eudiHubControllerRequestPresentationRegistrationCertificate = eudiHubControllerRequestPresentationRegistrationCertificate;
|
|
2581
2714
|
exports.federationTrustAnchorControllerCreate = federationTrustAnchorControllerCreate;
|
|
2582
2715
|
exports.federationTrustAnchorControllerDelete = federationTrustAnchorControllerDelete;
|
|
2583
2716
|
exports.federationTrustAnchorControllerGetAll = federationTrustAnchorControllerGetAll;
|
|
@@ -2586,9 +2719,9 @@ exports.federationTrustAnchorControllerUpdate = federationTrustAnchorControllerU
|
|
|
2586
2719
|
exports.flattenFields = flattenFields;
|
|
2587
2720
|
exports.isDcApiAvailable = isDcApiAvailable;
|
|
2588
2721
|
exports.issuanceConfigControllerGetIssuanceConfigurations = issuanceConfigControllerGetIssuanceConfigurations;
|
|
2589
|
-
exports.issuanceConfigControllerReissueRegistrationCertificate = issuanceConfigControllerReissueRegistrationCertificate;
|
|
2590
2722
|
exports.issuanceConfigControllerStoreIssuanceConfiguration = issuanceConfigControllerStoreIssuanceConfiguration;
|
|
2591
2723
|
exports.keyChainControllerCreate = keyChainControllerCreate;
|
|
2724
|
+
exports.keyChainControllerCreateCsr = keyChainControllerCreateCsr;
|
|
2592
2725
|
exports.keyChainControllerDelete = keyChainControllerDelete;
|
|
2593
2726
|
exports.keyChainControllerDeleteTenantKmsConfig = keyChainControllerDeleteTenantKmsConfig;
|
|
2594
2727
|
exports.keyChainControllerExport = keyChainControllerExport;
|
|
@@ -2601,35 +2734,22 @@ exports.keyChainControllerImport = keyChainControllerImport;
|
|
|
2601
2734
|
exports.keyChainControllerRotate = keyChainControllerRotate;
|
|
2602
2735
|
exports.keyChainControllerUpdate = keyChainControllerUpdate;
|
|
2603
2736
|
exports.keyChainControllerUpdateTenantKmsConfig = keyChainControllerUpdateTenantKmsConfig;
|
|
2737
|
+
exports.oidcClientControllerAddSecret = oidcClientControllerAddSecret;
|
|
2738
|
+
exports.oidcClientControllerCreate = oidcClientControllerCreate;
|
|
2739
|
+
exports.oidcClientControllerDelete = oidcClientControllerDelete;
|
|
2740
|
+
exports.oidcClientControllerDeleteSecret = oidcClientControllerDeleteSecret;
|
|
2741
|
+
exports.oidcClientControllerGet = oidcClientControllerGet;
|
|
2742
|
+
exports.oidcClientControllerList = oidcClientControllerList;
|
|
2743
|
+
exports.oidcClientControllerUpdate = oidcClientControllerUpdate;
|
|
2744
|
+
exports.oidcClientControllerUpdateSecret = oidcClientControllerUpdateSecret;
|
|
2604
2745
|
exports.presentationManagementControllerConfiguration = presentationManagementControllerConfiguration;
|
|
2605
2746
|
exports.presentationManagementControllerDeleteConfiguration = presentationManagementControllerDeleteConfiguration;
|
|
2606
2747
|
exports.presentationManagementControllerGetConfiguration = presentationManagementControllerGetConfiguration;
|
|
2607
|
-
exports.presentationManagementControllerListSchemaMetadataCatalog = presentationManagementControllerListSchemaMetadataCatalog;
|
|
2608
|
-
exports.presentationManagementControllerReissueRegistrationCertificate = presentationManagementControllerReissueRegistrationCertificate;
|
|
2609
2748
|
exports.presentationManagementControllerResolveIssuerMetadata = presentationManagementControllerResolveIssuerMetadata;
|
|
2610
2749
|
exports.presentationManagementControllerResolveSchemaMetadata = presentationManagementControllerResolveSchemaMetadata;
|
|
2611
2750
|
exports.presentationManagementControllerResolveSchemaMetadataJwt = presentationManagementControllerResolveSchemaMetadataJwt;
|
|
2612
2751
|
exports.presentationManagementControllerStorePresentationConfig = presentationManagementControllerStorePresentationConfig;
|
|
2613
2752
|
exports.presentationManagementControllerUpdateConfiguration = presentationManagementControllerUpdateConfiguration;
|
|
2614
|
-
exports.registrarControllerCreateAccessCertificate = registrarControllerCreateAccessCertificate;
|
|
2615
|
-
exports.registrarControllerCreateAccessKeyChain = registrarControllerCreateAccessKeyChain;
|
|
2616
|
-
exports.registrarControllerCreateConfig = registrarControllerCreateConfig;
|
|
2617
|
-
exports.registrarControllerDeleteConfig = registrarControllerDeleteConfig;
|
|
2618
|
-
exports.registrarControllerGetConfig = registrarControllerGetConfig;
|
|
2619
|
-
exports.registrarControllerUpdateConfig = registrarControllerUpdateConfig;
|
|
2620
|
-
exports.schemaMetadataControllerDeprecateVersion = schemaMetadataControllerDeprecateVersion;
|
|
2621
|
-
exports.schemaMetadataControllerFindAll = schemaMetadataControllerFindAll;
|
|
2622
|
-
exports.schemaMetadataControllerFindOne = schemaMetadataControllerFindOne;
|
|
2623
|
-
exports.schemaMetadataControllerGetJwt = schemaMetadataControllerGetJwt;
|
|
2624
|
-
exports.schemaMetadataControllerGetLatest = schemaMetadataControllerGetLatest;
|
|
2625
|
-
exports.schemaMetadataControllerGetMine = schemaMetadataControllerGetMine;
|
|
2626
|
-
exports.schemaMetadataControllerGetSchema = schemaMetadataControllerGetSchema;
|
|
2627
|
-
exports.schemaMetadataControllerGetVersions = schemaMetadataControllerGetVersions;
|
|
2628
|
-
exports.schemaMetadataControllerGetVocabularies = schemaMetadataControllerGetVocabularies;
|
|
2629
|
-
exports.schemaMetadataControllerPublishSchemaMetadata = schemaMetadataControllerPublishSchemaMetadata;
|
|
2630
|
-
exports.schemaMetadataControllerPublishSchemaMetadataVersion = schemaMetadataControllerPublishSchemaMetadataVersion;
|
|
2631
|
-
exports.schemaMetadataControllerRemove = schemaMetadataControllerRemove;
|
|
2632
|
-
exports.schemaMetadataControllerUpdate = schemaMetadataControllerUpdate;
|
|
2633
2753
|
exports.sessionConfigControllerGetConfig = sessionConfigControllerGetConfig;
|
|
2634
2754
|
exports.sessionConfigControllerResetConfig = sessionConfigControllerResetConfig;
|
|
2635
2755
|
exports.sessionConfigControllerUpdateConfig = sessionConfigControllerUpdateConfig;
|
|
@@ -2664,6 +2784,7 @@ exports.trustListControllerGetTrustList = trustListControllerGetTrustList;
|
|
|
2664
2784
|
exports.trustListControllerGetTrustListVersion = trustListControllerGetTrustListVersion;
|
|
2665
2785
|
exports.trustListControllerGetTrustListVersions = trustListControllerGetTrustListVersions;
|
|
2666
2786
|
exports.trustListControllerUpdateTrustList = trustListControllerUpdateTrustList;
|
|
2787
|
+
exports.unsupportedConstraints = unsupportedConstraints;
|
|
2667
2788
|
exports.userControllerCreateUser = userControllerCreateUser;
|
|
2668
2789
|
exports.userControllerDeleteUser = userControllerDeleteUser;
|
|
2669
2790
|
exports.userControllerGetUser = userControllerGetUser;
|