@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.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,11 +883,35 @@ 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",
|
|
884
903
|
...options
|
|
885
904
|
});
|
|
905
|
+
var auditLogControllerSearchAuditLogs = (options) => (options?.client ?? client).get({
|
|
906
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
907
|
+
url: "/api/admin/audit-logs/search",
|
|
908
|
+
...options
|
|
909
|
+
});
|
|
910
|
+
var auditLogControllerGetRetention = (options) => (options?.client ?? client).get({
|
|
911
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
912
|
+
url: "/api/admin/audit-logs/retention",
|
|
913
|
+
...options
|
|
914
|
+
});
|
|
886
915
|
var clientControllerGetClients = (options) => (options?.client ?? client).get({
|
|
887
916
|
security: [{ scheme: "bearer", type: "http" }],
|
|
888
917
|
url: "/api/client",
|
|
@@ -921,52 +950,6 @@ var clientControllerRotateClientSecret = (options) => (options.client ?? client)
|
|
|
921
950
|
url: "/api/client/{id}/rotate-secret",
|
|
922
951
|
...options
|
|
923
952
|
});
|
|
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
|
-
var registrarControllerCreateAccessKeyChain = (options) => (options.client ?? client).post({
|
|
962
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
963
|
-
url: "/api/registrar/access-key-chain",
|
|
964
|
-
...options,
|
|
965
|
-
headers: {
|
|
966
|
-
"Content-Type": "application/json",
|
|
967
|
-
...options.headers
|
|
968
|
-
}
|
|
969
|
-
});
|
|
970
953
|
var userControllerGetUsers = (options) => (options?.client ?? client).get({
|
|
971
954
|
security: [{ scheme: "bearer", type: "http" }],
|
|
972
955
|
url: "/api/user",
|
|
@@ -1067,6 +1050,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
|
|
|
1067
1050
|
url: "/api/key-chain/{id}/export",
|
|
1068
1051
|
...options
|
|
1069
1052
|
});
|
|
1053
|
+
var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
|
|
1054
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1055
|
+
url: "/api/key-chain/{id}/csr",
|
|
1056
|
+
...options
|
|
1057
|
+
});
|
|
1070
1058
|
var keyChainControllerImport = (options) => (options.client ?? client).post({
|
|
1071
1059
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1072
1060
|
url: "/api/key-chain/import",
|
|
@@ -1188,11 +1176,6 @@ var presentationManagementControllerResolveSchemaMetadataJwt = (options) => (opt
|
|
|
1188
1176
|
...options.headers
|
|
1189
1177
|
}
|
|
1190
1178
|
});
|
|
1191
|
-
var presentationManagementControllerListSchemaMetadataCatalog = (options) => (options?.client ?? client).get({
|
|
1192
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1193
|
-
url: "/api/verifier/config/schema-metadata/catalog",
|
|
1194
|
-
...options
|
|
1195
|
-
});
|
|
1196
1179
|
var presentationManagementControllerDeleteConfiguration = (options) => (options.client ?? client).delete({
|
|
1197
1180
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1198
1181
|
url: "/api/verifier/config/{id}",
|
|
@@ -1212,11 +1195,6 @@ var presentationManagementControllerUpdateConfiguration = (options) => (options.
|
|
|
1212
1195
|
...options.headers
|
|
1213
1196
|
}
|
|
1214
1197
|
});
|
|
1215
|
-
var presentationManagementControllerReissueRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1216
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1217
|
-
url: "/api/verifier/config/{id}/registration-cert/reissue",
|
|
1218
|
-
...options
|
|
1219
|
-
});
|
|
1220
1198
|
var trustListControllerGetAllTrustLists = (options) => (options?.client ?? client).get({
|
|
1221
1199
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1222
1200
|
url: "/api/trust-list",
|
|
@@ -1280,6 +1258,11 @@ var cacheControllerClearTrustListCache = (options) => (options?.client ?? client
|
|
|
1280
1258
|
url: "/api/cache/trust-list",
|
|
1281
1259
|
...options
|
|
1282
1260
|
});
|
|
1261
|
+
var cacheControllerForgetTrustListSequenceNumbers = (options) => (options?.client ?? client).delete({
|
|
1262
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1263
|
+
url: "/api/cache/trust-list/sequence-numbers",
|
|
1264
|
+
...options
|
|
1265
|
+
});
|
|
1283
1266
|
var cacheControllerClearStatusListCache = (options) => (options?.client ?? client).delete({
|
|
1284
1267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1285
1268
|
url: "/api/cache/status-list",
|
|
@@ -1489,122 +1472,133 @@ var issuanceConfigControllerStoreIssuanceConfiguration = (options) => (options.c
|
|
|
1489
1472
|
...options.headers
|
|
1490
1473
|
}
|
|
1491
1474
|
});
|
|
1492
|
-
var
|
|
1475
|
+
var credentialOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1493
1476
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1494
|
-
url: "/api/issuer/
|
|
1495
|
-
...options
|
|
1477
|
+
url: "/api/issuer/offer",
|
|
1478
|
+
...options,
|
|
1479
|
+
headers: {
|
|
1480
|
+
"Content-Type": "application/json",
|
|
1481
|
+
...options.headers
|
|
1482
|
+
}
|
|
1496
1483
|
});
|
|
1497
|
-
var
|
|
1484
|
+
var deferredControllerCompleteDeferred = (options) => (options.client ?? client).post({
|
|
1498
1485
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1499
|
-
url: "/api/
|
|
1486
|
+
url: "/api/issuer/deferred/{transactionId}/complete",
|
|
1500
1487
|
...options,
|
|
1501
1488
|
headers: {
|
|
1502
1489
|
"Content-Type": "application/json",
|
|
1503
1490
|
...options.headers
|
|
1504
1491
|
}
|
|
1505
1492
|
});
|
|
1506
|
-
var
|
|
1493
|
+
var deferredControllerFailDeferred = (options) => (options.client ?? client).post({
|
|
1507
1494
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1508
|
-
url: "/api/
|
|
1495
|
+
url: "/api/issuer/deferred/{transactionId}/fail",
|
|
1509
1496
|
...options,
|
|
1510
1497
|
headers: {
|
|
1511
1498
|
"Content-Type": "application/json",
|
|
1512
1499
|
...options.headers
|
|
1513
1500
|
}
|
|
1514
1501
|
});
|
|
1515
|
-
var
|
|
1502
|
+
var verifierOfferControllerGetOffer = (options) => (options.client ?? client).post({
|
|
1516
1503
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1517
|
-
url: "/api/
|
|
1518
|
-
...options
|
|
1504
|
+
url: "/api/verifier/offer",
|
|
1505
|
+
...options,
|
|
1506
|
+
headers: {
|
|
1507
|
+
"Content-Type": "application/json",
|
|
1508
|
+
...options.headers
|
|
1509
|
+
}
|
|
1519
1510
|
});
|
|
1520
|
-
var
|
|
1511
|
+
var oidcClientControllerList = (options) => (options?.client ?? client).get({
|
|
1521
1512
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1522
|
-
url: "/api/
|
|
1513
|
+
url: "/api/verifier/oidc-clients",
|
|
1523
1514
|
...options
|
|
1524
1515
|
});
|
|
1525
|
-
var
|
|
1516
|
+
var oidcClientControllerCreate = (options) => (options.client ?? client).post({
|
|
1526
1517
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1527
|
-
url: "/api/
|
|
1528
|
-
...options
|
|
1518
|
+
url: "/api/verifier/oidc-clients",
|
|
1519
|
+
...options,
|
|
1520
|
+
headers: {
|
|
1521
|
+
"Content-Type": "application/json",
|
|
1522
|
+
...options.headers
|
|
1523
|
+
}
|
|
1529
1524
|
});
|
|
1530
|
-
var
|
|
1525
|
+
var oidcClientControllerDelete = (options) => (options.client ?? client).delete({
|
|
1531
1526
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1532
|
-
url: "/api/
|
|
1527
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1533
1528
|
...options
|
|
1534
1529
|
});
|
|
1535
|
-
var
|
|
1530
|
+
var oidcClientControllerGet = (options) => (options.client ?? client).get({
|
|
1536
1531
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1537
|
-
url: "/api/
|
|
1532
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1538
1533
|
...options
|
|
1539
1534
|
});
|
|
1540
|
-
var
|
|
1535
|
+
var oidcClientControllerUpdate = (options) => (options.client ?? client).patch({
|
|
1541
1536
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1542
|
-
url: "/api/
|
|
1537
|
+
url: "/api/verifier/oidc-clients/{id}",
|
|
1543
1538
|
...options,
|
|
1544
1539
|
headers: {
|
|
1545
1540
|
"Content-Type": "application/json",
|
|
1546
1541
|
...options.headers
|
|
1547
1542
|
}
|
|
1548
1543
|
});
|
|
1549
|
-
var
|
|
1544
|
+
var oidcClientControllerAddSecret = (options) => (options.client ?? client).post({
|
|
1550
1545
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1551
|
-
url: "/api/
|
|
1546
|
+
url: "/api/verifier/oidc-clients/{id}/secrets",
|
|
1552
1547
|
...options
|
|
1553
1548
|
});
|
|
1554
|
-
var
|
|
1549
|
+
var oidcClientControllerDeleteSecret = (options) => (options.client ?? client).delete({
|
|
1555
1550
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1556
|
-
url: "/api/
|
|
1551
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1557
1552
|
...options
|
|
1558
1553
|
});
|
|
1559
|
-
var
|
|
1554
|
+
var oidcClientControllerUpdateSecret = (options) => (options.client ?? client).patch({
|
|
1560
1555
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1561
|
-
url: "/api/
|
|
1562
|
-
...options
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
...options
|
|
1556
|
+
url: "/api/verifier/oidc-clients/{id}/secrets/{secretId}",
|
|
1557
|
+
...options,
|
|
1558
|
+
headers: {
|
|
1559
|
+
"Content-Type": "application/json",
|
|
1560
|
+
...options.headers
|
|
1561
|
+
}
|
|
1568
1562
|
});
|
|
1569
|
-
var
|
|
1563
|
+
var eudiHubControllerListOrganizations = (options) => (options.client ?? client).post({
|
|
1570
1564
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1571
|
-
url: "/api/
|
|
1565
|
+
url: "/api/eudi-hub/organizations",
|
|
1572
1566
|
...options,
|
|
1573
1567
|
headers: {
|
|
1574
1568
|
"Content-Type": "application/json",
|
|
1575
1569
|
...options.headers
|
|
1576
1570
|
}
|
|
1577
1571
|
});
|
|
1578
|
-
var
|
|
1572
|
+
var eudiHubControllerRequestAccessCertificate = (options) => (options.client ?? client).post({
|
|
1579
1573
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1580
|
-
url: "/api/
|
|
1574
|
+
url: "/api/eudi-hub/access-certificate",
|
|
1581
1575
|
...options,
|
|
1582
1576
|
headers: {
|
|
1583
1577
|
"Content-Type": "application/json",
|
|
1584
1578
|
...options.headers
|
|
1585
1579
|
}
|
|
1586
1580
|
});
|
|
1587
|
-
var
|
|
1581
|
+
var eudiHubControllerOrganizationDetails = (options) => (options.client ?? client).post({
|
|
1588
1582
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1589
|
-
url: "/api/
|
|
1583
|
+
url: "/api/eudi-hub/organization-details",
|
|
1590
1584
|
...options,
|
|
1591
1585
|
headers: {
|
|
1592
1586
|
"Content-Type": "application/json",
|
|
1593
1587
|
...options.headers
|
|
1594
1588
|
}
|
|
1595
1589
|
});
|
|
1596
|
-
var
|
|
1590
|
+
var eudiHubControllerRequestPresentationRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1597
1591
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1598
|
-
url: "/api/
|
|
1592
|
+
url: "/api/eudi-hub/registration-certificate/presentation",
|
|
1599
1593
|
...options,
|
|
1600
1594
|
headers: {
|
|
1601
1595
|
"Content-Type": "application/json",
|
|
1602
1596
|
...options.headers
|
|
1603
1597
|
}
|
|
1604
1598
|
});
|
|
1605
|
-
var
|
|
1599
|
+
var eudiHubControllerRequestIssuerRegistrationCertificate = (options) => (options.client ?? client).post({
|
|
1606
1600
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1607
|
-
url: "/api/
|
|
1601
|
+
url: "/api/eudi-hub/registration-certificate/issuer",
|
|
1608
1602
|
...options,
|
|
1609
1603
|
headers: {
|
|
1610
1604
|
"Content-Type": "application/json",
|
|
@@ -2256,6 +2250,112 @@ async function submitDcApiResponse(options) {
|
|
|
2256
2250
|
return mapDcApiPresentationResult(result);
|
|
2257
2251
|
}
|
|
2258
2252
|
|
|
2253
|
+
// src/config/constraints.ts
|
|
2254
|
+
var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2255
|
+
"type",
|
|
2256
|
+
"enum",
|
|
2257
|
+
"const",
|
|
2258
|
+
"multipleOf",
|
|
2259
|
+
"maximum",
|
|
2260
|
+
"exclusiveMaximum",
|
|
2261
|
+
"minimum",
|
|
2262
|
+
"exclusiveMinimum",
|
|
2263
|
+
"maxLength",
|
|
2264
|
+
"minLength",
|
|
2265
|
+
"pattern",
|
|
2266
|
+
"maxItems",
|
|
2267
|
+
"minItems",
|
|
2268
|
+
"uniqueItems",
|
|
2269
|
+
"maxContains",
|
|
2270
|
+
"minContains",
|
|
2271
|
+
"maxProperties",
|
|
2272
|
+
"minProperties",
|
|
2273
|
+
"required",
|
|
2274
|
+
"dependentRequired",
|
|
2275
|
+
"title",
|
|
2276
|
+
"description",
|
|
2277
|
+
"default",
|
|
2278
|
+
"examples",
|
|
2279
|
+
"deprecated",
|
|
2280
|
+
"readOnly",
|
|
2281
|
+
"writeOnly",
|
|
2282
|
+
"$comment"
|
|
2283
|
+
]);
|
|
2284
|
+
var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2285
|
+
"items",
|
|
2286
|
+
"contains",
|
|
2287
|
+
"additionalProperties",
|
|
2288
|
+
"propertyNames",
|
|
2289
|
+
"not",
|
|
2290
|
+
"if",
|
|
2291
|
+
"then",
|
|
2292
|
+
"else",
|
|
2293
|
+
"unevaluatedItems",
|
|
2294
|
+
"unevaluatedProperties"
|
|
2295
|
+
]);
|
|
2296
|
+
var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
|
|
2297
|
+
var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2298
|
+
"properties",
|
|
2299
|
+
"patternProperties",
|
|
2300
|
+
"dependentSchemas"
|
|
2301
|
+
]);
|
|
2302
|
+
function isPlainObject(value) {
|
|
2303
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2304
|
+
}
|
|
2305
|
+
function pointer(path, segment) {
|
|
2306
|
+
return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
2307
|
+
}
|
|
2308
|
+
function sanitizeSchema(value, path, removed) {
|
|
2309
|
+
if (typeof value === "boolean") {
|
|
2310
|
+
return value;
|
|
2311
|
+
}
|
|
2312
|
+
if (!isPlainObject(value)) {
|
|
2313
|
+
removed.push({ pointer: path, reason: "not-a-schema" });
|
|
2314
|
+
return void 0;
|
|
2315
|
+
}
|
|
2316
|
+
const entries = [];
|
|
2317
|
+
for (const [key, child] of Object.entries(value)) {
|
|
2318
|
+
const childPath = pointer(path, key);
|
|
2319
|
+
if (VALUE_KEYWORDS.has(key)) {
|
|
2320
|
+
entries.push([key, child]);
|
|
2321
|
+
} else if (SCHEMA_KEYWORDS.has(key)) {
|
|
2322
|
+
const schema = sanitizeSchema(child, childPath, removed);
|
|
2323
|
+
if (schema !== void 0) {
|
|
2324
|
+
entries.push([key, schema]);
|
|
2325
|
+
}
|
|
2326
|
+
} else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
|
|
2327
|
+
entries.push([
|
|
2328
|
+
key,
|
|
2329
|
+
child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
|
|
2330
|
+
]);
|
|
2331
|
+
} else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
|
|
2332
|
+
entries.push([
|
|
2333
|
+
key,
|
|
2334
|
+
Object.fromEntries(
|
|
2335
|
+
Object.entries(child).map(
|
|
2336
|
+
([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
|
|
2337
|
+
).filter(([, schema]) => schema !== void 0)
|
|
2338
|
+
)
|
|
2339
|
+
]);
|
|
2340
|
+
} else {
|
|
2341
|
+
removed.push({
|
|
2342
|
+
pointer: childPath,
|
|
2343
|
+
reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
return Object.fromEntries(entries);
|
|
2348
|
+
}
|
|
2349
|
+
function sanitizeConstraints(constraints) {
|
|
2350
|
+
const schema = sanitizeSchema(constraints, "", []);
|
|
2351
|
+
return isPlainObject(schema) ? schema : {};
|
|
2352
|
+
}
|
|
2353
|
+
function unsupportedConstraints(constraints) {
|
|
2354
|
+
const removed = [];
|
|
2355
|
+
sanitizeSchema(constraints, "", removed);
|
|
2356
|
+
return removed;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2259
2359
|
// src/config/derive.ts
|
|
2260
2360
|
var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
2261
2361
|
function resolveChildPath(parentPath, parentType, childPath) {
|
|
@@ -2301,8 +2401,19 @@ function segmentToKey(segment) {
|
|
|
2301
2401
|
}
|
|
2302
2402
|
return String(segment);
|
|
2303
2403
|
}
|
|
2404
|
+
function getOwn(target, key) {
|
|
2405
|
+
return Object.hasOwn(target, key) ? target[key] : void 0;
|
|
2406
|
+
}
|
|
2407
|
+
function setOwn(target, key, value) {
|
|
2408
|
+
Object.defineProperty(target, key, {
|
|
2409
|
+
value,
|
|
2410
|
+
writable: true,
|
|
2411
|
+
enumerable: true,
|
|
2412
|
+
configurable: true
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2304
2415
|
function getOrCreateChild(target, key, nextIsArray) {
|
|
2305
|
-
const current = target
|
|
2416
|
+
const current = getOwn(target, key);
|
|
2306
2417
|
if (current !== void 0) {
|
|
2307
2418
|
if (Array.isArray(current)) {
|
|
2308
2419
|
return current;
|
|
@@ -2312,7 +2423,7 @@ function getOrCreateChild(target, key, nextIsArray) {
|
|
|
2312
2423
|
}
|
|
2313
2424
|
}
|
|
2314
2425
|
const created = nextIsArray ? [] : {};
|
|
2315
|
-
target
|
|
2426
|
+
setOwn(target, key, created);
|
|
2316
2427
|
return created;
|
|
2317
2428
|
}
|
|
2318
2429
|
function setValueAtPath(target, path, value) {
|
|
@@ -2342,7 +2453,7 @@ function setValueAtPath(target, path, value) {
|
|
|
2342
2453
|
}
|
|
2343
2454
|
const key = segmentToKey(segment);
|
|
2344
2455
|
if (isLast) {
|
|
2345
|
-
cursor
|
|
2456
|
+
setOwn(cursor, key, value);
|
|
2346
2457
|
return;
|
|
2347
2458
|
}
|
|
2348
2459
|
cursor = getOrCreateChild(cursor, key, typeof next === "number");
|
|
@@ -2386,13 +2497,15 @@ function ensureSchemaNode(root, path) {
|
|
|
2386
2497
|
}
|
|
2387
2498
|
const key = segmentToKey(segment);
|
|
2388
2499
|
cursor.properties ??= {};
|
|
2389
|
-
|
|
2390
|
-
|
|
2500
|
+
let child = getOwn(cursor.properties, key);
|
|
2501
|
+
if (!child) {
|
|
2502
|
+
child = {
|
|
2391
2503
|
type: "object",
|
|
2392
2504
|
properties: {}
|
|
2393
2505
|
};
|
|
2506
|
+
setOwn(cursor.properties, key, child);
|
|
2394
2507
|
}
|
|
2395
|
-
cursor =
|
|
2508
|
+
cursor = child;
|
|
2396
2509
|
}
|
|
2397
2510
|
return cursor;
|
|
2398
2511
|
}
|
|
@@ -2400,11 +2513,12 @@ function ensureFrameNode(root, path) {
|
|
|
2400
2513
|
let cursor = root;
|
|
2401
2514
|
for (const segment of path) {
|
|
2402
2515
|
const key = segmentToKey(segment);
|
|
2403
|
-
|
|
2516
|
+
let current = getOwn(cursor, key);
|
|
2404
2517
|
if (!current || typeof current !== "object" || Array.isArray(current)) {
|
|
2405
|
-
|
|
2518
|
+
current = {};
|
|
2519
|
+
setOwn(cursor, key, current);
|
|
2406
2520
|
}
|
|
2407
|
-
cursor =
|
|
2521
|
+
cursor = current;
|
|
2408
2522
|
}
|
|
2409
2523
|
return cursor;
|
|
2410
2524
|
}
|
|
@@ -2453,7 +2567,7 @@ function buildClaimsMetadata(fields) {
|
|
|
2453
2567
|
}
|
|
2454
2568
|
function buildLeafSchema(field) {
|
|
2455
2569
|
const schema = {
|
|
2456
|
-
...field.constraints,
|
|
2570
|
+
...sanitizeConstraints(field.constraints),
|
|
2457
2571
|
type: field.type
|
|
2458
2572
|
};
|
|
2459
2573
|
const title = getDisplayTitle(field.display);
|
|
@@ -2493,8 +2607,12 @@ function buildJsonSchema(fields) {
|
|
|
2493
2607
|
}
|
|
2494
2608
|
const leafKey = segmentToKey(leafSegment ?? "");
|
|
2495
2609
|
parent.properties ??= {};
|
|
2496
|
-
const existing = parent.properties
|
|
2497
|
-
|
|
2610
|
+
const existing = getOwn(parent.properties, leafKey);
|
|
2611
|
+
setOwn(
|
|
2612
|
+
parent.properties,
|
|
2613
|
+
leafKey,
|
|
2614
|
+
existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
|
|
2615
|
+
);
|
|
2498
2616
|
if (field.mandatory) {
|
|
2499
2617
|
addRequired(parent, leafKey);
|
|
2500
2618
|
}
|
|
@@ -2507,10 +2625,14 @@ function buildClaimsByNamespace(fields) {
|
|
|
2507
2625
|
if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
|
|
2508
2626
|
continue;
|
|
2509
2627
|
}
|
|
2510
|
-
|
|
2511
|
-
byNamespace
|
|
2628
|
+
let namespaceTarget = getOwn(
|
|
2629
|
+
byNamespace,
|
|
2630
|
+
field.namespace
|
|
2631
|
+
);
|
|
2632
|
+
if (!namespaceTarget) {
|
|
2633
|
+
namespaceTarget = {};
|
|
2634
|
+
setOwn(byNamespace, field.namespace, namespaceTarget);
|
|
2512
2635
|
}
|
|
2513
|
-
const namespaceTarget = byNamespace[field.namespace];
|
|
2514
2636
|
const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
|
|
2515
2637
|
setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
|
|
2516
2638
|
}
|
|
@@ -2526,6 +2648,6 @@ function deriveRuntimeArtifacts(fields) {
|
|
|
2526
2648
|
};
|
|
2527
2649
|
}
|
|
2528
2650
|
|
|
2529
|
-
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, configPortabilityControllerExportDocument, configPortabilityControllerImport, configPortabilityControllerImportArchive, configPortabilityControllerOperation, configPortabilityControllerOperations, configPortabilityControllerPlan, configPortabilityControllerPlanArchive, configPortabilityControllerPlanReattach, configPortabilityControllerReattach, configPortabilityControllerResources, configPortabilityControllerResourcesOfKind, configPortabilityControllerUpgrade, credentialConfigControllerDeleteIssuanceConfiguration, credentialConfigControllerGetConfigById, credentialConfigControllerGetConfigs, credentialConfigControllerStoreCredentialConfiguration, credentialConfigControllerUpdateCredentialConfiguration, credentialOfferControllerGetOffer, deferredControllerCompleteDeferred, deferredControllerFailDeferred, deriveRuntimeArtifacts, federationTrustAnchorControllerCreate, federationTrustAnchorControllerDelete, federationTrustAnchorControllerGetAll, federationTrustAnchorControllerGetById, federationTrustAnchorControllerUpdate, flattenFields, isDcApiAvailable, issuanceConfigControllerGetIssuanceConfigurations,
|
|
2651
|
+
export { EudiploClient, appControllerGetFrontendConfig, appControllerGetVersion, attributeProviderControllerCreate, attributeProviderControllerDelete, attributeProviderControllerGetAll, attributeProviderControllerGetById, attributeProviderControllerUpdate, auditLogControllerGetAuditLogs, auditLogControllerGetRetention, auditLogControllerSearchAuditLogs, 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 };
|
|
2530
2652
|
//# sourceMappingURL=index.mjs.map
|
|
2531
2653
|
//# 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 };
|