@eudiplo/sdk-core 9.1.0-main.ea0dcd8 → 9.1.0-main.f4735f2

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/dist/index.js CHANGED
@@ -880,6 +880,20 @@ var tenantControllerUpdateTenant = (options) => (options.client ?? client).patch
880
880
  ...options.headers
881
881
  }
882
882
  });
883
+ var defaultAccessKeyChainControllerGet = (options) => (options?.client ?? client).get({
884
+ security: [{ scheme: "bearer", type: "http" }],
885
+ url: "/api/key-chain/access/default",
886
+ ...options
887
+ });
888
+ var defaultAccessKeyChainControllerSet = (options) => (options.client ?? client).put({
889
+ security: [{ scheme: "bearer", type: "http" }],
890
+ url: "/api/key-chain/access/default",
891
+ ...options,
892
+ headers: {
893
+ "Content-Type": "application/json",
894
+ ...options.headers
895
+ }
896
+ });
883
897
  var auditLogControllerGetAuditLogs = (options) => (options?.client ?? client).get({
884
898
  security: [{ scheme: "bearer", type: "http" }],
885
899
  url: "/api/admin/audit-logs",
@@ -1069,6 +1083,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
1069
1083
  url: "/api/key-chain/{id}/export",
1070
1084
  ...options
1071
1085
  });
1086
+ var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
1087
+ security: [{ scheme: "bearer", type: "http" }],
1088
+ url: "/api/key-chain/{id}/csr",
1089
+ ...options
1090
+ });
1072
1091
  var keyChainControllerImport = (options) => (options.client ?? client).post({
1073
1092
  security: [{ scheme: "bearer", type: "http" }],
1074
1093
  url: "/api/key-chain/import",
@@ -2258,6 +2277,112 @@ async function submitDcApiResponse(options) {
2258
2277
  return mapDcApiPresentationResult(result);
2259
2278
  }
2260
2279
 
2280
+ // src/config/constraints.ts
2281
+ var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
2282
+ "type",
2283
+ "enum",
2284
+ "const",
2285
+ "multipleOf",
2286
+ "maximum",
2287
+ "exclusiveMaximum",
2288
+ "minimum",
2289
+ "exclusiveMinimum",
2290
+ "maxLength",
2291
+ "minLength",
2292
+ "pattern",
2293
+ "maxItems",
2294
+ "minItems",
2295
+ "uniqueItems",
2296
+ "maxContains",
2297
+ "minContains",
2298
+ "maxProperties",
2299
+ "minProperties",
2300
+ "required",
2301
+ "dependentRequired",
2302
+ "title",
2303
+ "description",
2304
+ "default",
2305
+ "examples",
2306
+ "deprecated",
2307
+ "readOnly",
2308
+ "writeOnly",
2309
+ "$comment"
2310
+ ]);
2311
+ var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
2312
+ "items",
2313
+ "contains",
2314
+ "additionalProperties",
2315
+ "propertyNames",
2316
+ "not",
2317
+ "if",
2318
+ "then",
2319
+ "else",
2320
+ "unevaluatedItems",
2321
+ "unevaluatedProperties"
2322
+ ]);
2323
+ var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
2324
+ var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
2325
+ "properties",
2326
+ "patternProperties",
2327
+ "dependentSchemas"
2328
+ ]);
2329
+ function isPlainObject(value) {
2330
+ return typeof value === "object" && value !== null && !Array.isArray(value);
2331
+ }
2332
+ function pointer(path, segment) {
2333
+ return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
2334
+ }
2335
+ function sanitizeSchema(value, path, removed) {
2336
+ if (typeof value === "boolean") {
2337
+ return value;
2338
+ }
2339
+ if (!isPlainObject(value)) {
2340
+ removed.push({ pointer: path, reason: "not-a-schema" });
2341
+ return void 0;
2342
+ }
2343
+ const entries = [];
2344
+ for (const [key, child] of Object.entries(value)) {
2345
+ const childPath = pointer(path, key);
2346
+ if (VALUE_KEYWORDS.has(key)) {
2347
+ entries.push([key, child]);
2348
+ } else if (SCHEMA_KEYWORDS.has(key)) {
2349
+ const schema = sanitizeSchema(child, childPath, removed);
2350
+ if (schema !== void 0) {
2351
+ entries.push([key, schema]);
2352
+ }
2353
+ } else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
2354
+ entries.push([
2355
+ key,
2356
+ child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
2357
+ ]);
2358
+ } else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
2359
+ entries.push([
2360
+ key,
2361
+ Object.fromEntries(
2362
+ Object.entries(child).map(
2363
+ ([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
2364
+ ).filter(([, schema]) => schema !== void 0)
2365
+ )
2366
+ ]);
2367
+ } else {
2368
+ removed.push({
2369
+ pointer: childPath,
2370
+ reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
2371
+ });
2372
+ }
2373
+ }
2374
+ return Object.fromEntries(entries);
2375
+ }
2376
+ function sanitizeConstraints(constraints) {
2377
+ const schema = sanitizeSchema(constraints, "", []);
2378
+ return isPlainObject(schema) ? schema : {};
2379
+ }
2380
+ function unsupportedConstraints(constraints) {
2381
+ const removed = [];
2382
+ sanitizeSchema(constraints, "", removed);
2383
+ return removed;
2384
+ }
2385
+
2261
2386
  // src/config/derive.ts
2262
2387
  var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
2263
2388
  function resolveChildPath(parentPath, parentType, childPath) {
@@ -2303,8 +2428,19 @@ function segmentToKey(segment) {
2303
2428
  }
2304
2429
  return String(segment);
2305
2430
  }
2431
+ function getOwn(target, key) {
2432
+ return Object.hasOwn(target, key) ? target[key] : void 0;
2433
+ }
2434
+ function setOwn(target, key, value) {
2435
+ Object.defineProperty(target, key, {
2436
+ value,
2437
+ writable: true,
2438
+ enumerable: true,
2439
+ configurable: true
2440
+ });
2441
+ }
2306
2442
  function getOrCreateChild(target, key, nextIsArray) {
2307
- const current = target[key];
2443
+ const current = getOwn(target, key);
2308
2444
  if (current !== void 0) {
2309
2445
  if (Array.isArray(current)) {
2310
2446
  return current;
@@ -2314,7 +2450,7 @@ function getOrCreateChild(target, key, nextIsArray) {
2314
2450
  }
2315
2451
  }
2316
2452
  const created = nextIsArray ? [] : {};
2317
- target[key] = created;
2453
+ setOwn(target, key, created);
2318
2454
  return created;
2319
2455
  }
2320
2456
  function setValueAtPath(target, path, value) {
@@ -2344,7 +2480,7 @@ function setValueAtPath(target, path, value) {
2344
2480
  }
2345
2481
  const key = segmentToKey(segment);
2346
2482
  if (isLast) {
2347
- cursor[key] = value;
2483
+ setOwn(cursor, key, value);
2348
2484
  return;
2349
2485
  }
2350
2486
  cursor = getOrCreateChild(cursor, key, typeof next === "number");
@@ -2388,13 +2524,15 @@ function ensureSchemaNode(root, path) {
2388
2524
  }
2389
2525
  const key = segmentToKey(segment);
2390
2526
  cursor.properties ??= {};
2391
- if (!cursor.properties[key]) {
2392
- cursor.properties[key] = {
2527
+ let child = getOwn(cursor.properties, key);
2528
+ if (!child) {
2529
+ child = {
2393
2530
  type: "object",
2394
2531
  properties: {}
2395
2532
  };
2533
+ setOwn(cursor.properties, key, child);
2396
2534
  }
2397
- cursor = cursor.properties[key];
2535
+ cursor = child;
2398
2536
  }
2399
2537
  return cursor;
2400
2538
  }
@@ -2402,11 +2540,12 @@ function ensureFrameNode(root, path) {
2402
2540
  let cursor = root;
2403
2541
  for (const segment of path) {
2404
2542
  const key = segmentToKey(segment);
2405
- const current = cursor[key];
2543
+ let current = getOwn(cursor, key);
2406
2544
  if (!current || typeof current !== "object" || Array.isArray(current)) {
2407
- cursor[key] = {};
2545
+ current = {};
2546
+ setOwn(cursor, key, current);
2408
2547
  }
2409
- cursor = cursor[key];
2548
+ cursor = current;
2410
2549
  }
2411
2550
  return cursor;
2412
2551
  }
@@ -2455,7 +2594,7 @@ function buildClaimsMetadata(fields) {
2455
2594
  }
2456
2595
  function buildLeafSchema(field) {
2457
2596
  const schema = {
2458
- ...field.constraints,
2597
+ ...sanitizeConstraints(field.constraints),
2459
2598
  type: field.type
2460
2599
  };
2461
2600
  const title = getDisplayTitle(field.display);
@@ -2495,8 +2634,12 @@ function buildJsonSchema(fields) {
2495
2634
  }
2496
2635
  const leafKey = segmentToKey(leafSegment ?? "");
2497
2636
  parent.properties ??= {};
2498
- const existing = parent.properties[leafKey];
2499
- parent.properties[leafKey] = existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema;
2637
+ const existing = getOwn(parent.properties, leafKey);
2638
+ setOwn(
2639
+ parent.properties,
2640
+ leafKey,
2641
+ existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
2642
+ );
2500
2643
  if (field.mandatory) {
2501
2644
  addRequired(parent, leafKey);
2502
2645
  }
@@ -2509,10 +2652,14 @@ function buildClaimsByNamespace(fields) {
2509
2652
  if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
2510
2653
  continue;
2511
2654
  }
2512
- if (!byNamespace[field.namespace]) {
2513
- byNamespace[field.namespace] = {};
2655
+ let namespaceTarget = getOwn(
2656
+ byNamespace,
2657
+ field.namespace
2658
+ );
2659
+ if (!namespaceTarget) {
2660
+ namespaceTarget = {};
2661
+ setOwn(byNamespace, field.namespace, namespaceTarget);
2514
2662
  }
2515
- const namespaceTarget = byNamespace[field.namespace];
2516
2663
  const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
2517
2664
  setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
2518
2665
  }
@@ -2575,6 +2722,8 @@ exports.credentialConfigControllerGetConfigs = credentialConfigControllerGetConf
2575
2722
  exports.credentialConfigControllerStoreCredentialConfiguration = credentialConfigControllerStoreCredentialConfiguration;
2576
2723
  exports.credentialConfigControllerUpdateCredentialConfiguration = credentialConfigControllerUpdateCredentialConfiguration;
2577
2724
  exports.credentialOfferControllerGetOffer = credentialOfferControllerGetOffer;
2725
+ exports.defaultAccessKeyChainControllerGet = defaultAccessKeyChainControllerGet;
2726
+ exports.defaultAccessKeyChainControllerSet = defaultAccessKeyChainControllerSet;
2578
2727
  exports.deferredControllerCompleteDeferred = deferredControllerCompleteDeferred;
2579
2728
  exports.deferredControllerFailDeferred = deferredControllerFailDeferred;
2580
2729
  exports.deriveRuntimeArtifacts = deriveRuntimeArtifacts;
@@ -2589,6 +2738,7 @@ exports.issuanceConfigControllerGetIssuanceConfigurations = issuanceConfigContro
2589
2738
  exports.issuanceConfigControllerReissueRegistrationCertificate = issuanceConfigControllerReissueRegistrationCertificate;
2590
2739
  exports.issuanceConfigControllerStoreIssuanceConfiguration = issuanceConfigControllerStoreIssuanceConfiguration;
2591
2740
  exports.keyChainControllerCreate = keyChainControllerCreate;
2741
+ exports.keyChainControllerCreateCsr = keyChainControllerCreateCsr;
2592
2742
  exports.keyChainControllerDelete = keyChainControllerDelete;
2593
2743
  exports.keyChainControllerDeleteTenantKmsConfig = keyChainControllerDeleteTenantKmsConfig;
2594
2744
  exports.keyChainControllerExport = keyChainControllerExport;
@@ -2664,6 +2814,7 @@ exports.trustListControllerGetTrustList = trustListControllerGetTrustList;
2664
2814
  exports.trustListControllerGetTrustListVersion = trustListControllerGetTrustListVersion;
2665
2815
  exports.trustListControllerGetTrustListVersions = trustListControllerGetTrustListVersions;
2666
2816
  exports.trustListControllerUpdateTrustList = trustListControllerUpdateTrustList;
2817
+ exports.unsupportedConstraints = unsupportedConstraints;
2667
2818
  exports.userControllerCreateUser = userControllerCreateUser;
2668
2819
  exports.userControllerDeleteUser = userControllerDeleteUser;
2669
2820
  exports.userControllerGetUser = userControllerGetUser;
package/dist/index.mjs CHANGED
@@ -878,6 +878,20 @@ var tenantControllerUpdateTenant = (options) => (options.client ?? client).patch
878
878
  ...options.headers
879
879
  }
880
880
  });
881
+ var defaultAccessKeyChainControllerGet = (options) => (options?.client ?? client).get({
882
+ security: [{ scheme: "bearer", type: "http" }],
883
+ url: "/api/key-chain/access/default",
884
+ ...options
885
+ });
886
+ var defaultAccessKeyChainControllerSet = (options) => (options.client ?? client).put({
887
+ security: [{ scheme: "bearer", type: "http" }],
888
+ url: "/api/key-chain/access/default",
889
+ ...options,
890
+ headers: {
891
+ "Content-Type": "application/json",
892
+ ...options.headers
893
+ }
894
+ });
881
895
  var auditLogControllerGetAuditLogs = (options) => (options?.client ?? client).get({
882
896
  security: [{ scheme: "bearer", type: "http" }],
883
897
  url: "/api/admin/audit-logs",
@@ -1067,6 +1081,11 @@ var keyChainControllerExport = (options) => (options.client ?? client).get({
1067
1081
  url: "/api/key-chain/{id}/export",
1068
1082
  ...options
1069
1083
  });
1084
+ var keyChainControllerCreateCsr = (options) => (options.client ?? client).get({
1085
+ security: [{ scheme: "bearer", type: "http" }],
1086
+ url: "/api/key-chain/{id}/csr",
1087
+ ...options
1088
+ });
1070
1089
  var keyChainControllerImport = (options) => (options.client ?? client).post({
1071
1090
  security: [{ scheme: "bearer", type: "http" }],
1072
1091
  url: "/api/key-chain/import",
@@ -2256,6 +2275,112 @@ async function submitDcApiResponse(options) {
2256
2275
  return mapDcApiPresentationResult(result);
2257
2276
  }
2258
2277
 
2278
+ // src/config/constraints.ts
2279
+ var VALUE_KEYWORDS = /* @__PURE__ */ new Set([
2280
+ "type",
2281
+ "enum",
2282
+ "const",
2283
+ "multipleOf",
2284
+ "maximum",
2285
+ "exclusiveMaximum",
2286
+ "minimum",
2287
+ "exclusiveMinimum",
2288
+ "maxLength",
2289
+ "minLength",
2290
+ "pattern",
2291
+ "maxItems",
2292
+ "minItems",
2293
+ "uniqueItems",
2294
+ "maxContains",
2295
+ "minContains",
2296
+ "maxProperties",
2297
+ "minProperties",
2298
+ "required",
2299
+ "dependentRequired",
2300
+ "title",
2301
+ "description",
2302
+ "default",
2303
+ "examples",
2304
+ "deprecated",
2305
+ "readOnly",
2306
+ "writeOnly",
2307
+ "$comment"
2308
+ ]);
2309
+ var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
2310
+ "items",
2311
+ "contains",
2312
+ "additionalProperties",
2313
+ "propertyNames",
2314
+ "not",
2315
+ "if",
2316
+ "then",
2317
+ "else",
2318
+ "unevaluatedItems",
2319
+ "unevaluatedProperties"
2320
+ ]);
2321
+ var SCHEMA_LIST_KEYWORDS = /* @__PURE__ */ new Set(["prefixItems", "allOf", "anyOf", "oneOf"]);
2322
+ var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
2323
+ "properties",
2324
+ "patternProperties",
2325
+ "dependentSchemas"
2326
+ ]);
2327
+ function isPlainObject(value) {
2328
+ return typeof value === "object" && value !== null && !Array.isArray(value);
2329
+ }
2330
+ function pointer(path, segment) {
2331
+ return `${path}/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`;
2332
+ }
2333
+ function sanitizeSchema(value, path, removed) {
2334
+ if (typeof value === "boolean") {
2335
+ return value;
2336
+ }
2337
+ if (!isPlainObject(value)) {
2338
+ removed.push({ pointer: path, reason: "not-a-schema" });
2339
+ return void 0;
2340
+ }
2341
+ const entries = [];
2342
+ for (const [key, child] of Object.entries(value)) {
2343
+ const childPath = pointer(path, key);
2344
+ if (VALUE_KEYWORDS.has(key)) {
2345
+ entries.push([key, child]);
2346
+ } else if (SCHEMA_KEYWORDS.has(key)) {
2347
+ const schema = sanitizeSchema(child, childPath, removed);
2348
+ if (schema !== void 0) {
2349
+ entries.push([key, schema]);
2350
+ }
2351
+ } else if (SCHEMA_LIST_KEYWORDS.has(key) && Array.isArray(child)) {
2352
+ entries.push([
2353
+ key,
2354
+ child.map((schema, index) => sanitizeSchema(schema, pointer(childPath, index), removed)).filter((schema) => schema !== void 0)
2355
+ ]);
2356
+ } else if (SCHEMA_MAP_KEYWORDS.has(key) && isPlainObject(child)) {
2357
+ entries.push([
2358
+ key,
2359
+ Object.fromEntries(
2360
+ Object.entries(child).map(
2361
+ ([name, schema]) => [name, sanitizeSchema(schema, pointer(childPath, name), removed)]
2362
+ ).filter(([, schema]) => schema !== void 0)
2363
+ )
2364
+ ]);
2365
+ } else {
2366
+ removed.push({
2367
+ pointer: childPath,
2368
+ reason: SCHEMA_LIST_KEYWORDS.has(key) ? "not-a-list" : SCHEMA_MAP_KEYWORDS.has(key) ? "not-a-map" : "unknown-keyword"
2369
+ });
2370
+ }
2371
+ }
2372
+ return Object.fromEntries(entries);
2373
+ }
2374
+ function sanitizeConstraints(constraints) {
2375
+ const schema = sanitizeSchema(constraints, "", []);
2376
+ return isPlainObject(schema) ? schema : {};
2377
+ }
2378
+ function unsupportedConstraints(constraints) {
2379
+ const removed = [];
2380
+ sanitizeSchema(constraints, "", removed);
2381
+ return removed;
2382
+ }
2383
+
2259
2384
  // src/config/derive.ts
2260
2385
  var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
2261
2386
  function resolveChildPath(parentPath, parentType, childPath) {
@@ -2301,8 +2426,19 @@ function segmentToKey(segment) {
2301
2426
  }
2302
2427
  return String(segment);
2303
2428
  }
2429
+ function getOwn(target, key) {
2430
+ return Object.hasOwn(target, key) ? target[key] : void 0;
2431
+ }
2432
+ function setOwn(target, key, value) {
2433
+ Object.defineProperty(target, key, {
2434
+ value,
2435
+ writable: true,
2436
+ enumerable: true,
2437
+ configurable: true
2438
+ });
2439
+ }
2304
2440
  function getOrCreateChild(target, key, nextIsArray) {
2305
- const current = target[key];
2441
+ const current = getOwn(target, key);
2306
2442
  if (current !== void 0) {
2307
2443
  if (Array.isArray(current)) {
2308
2444
  return current;
@@ -2312,7 +2448,7 @@ function getOrCreateChild(target, key, nextIsArray) {
2312
2448
  }
2313
2449
  }
2314
2450
  const created = nextIsArray ? [] : {};
2315
- target[key] = created;
2451
+ setOwn(target, key, created);
2316
2452
  return created;
2317
2453
  }
2318
2454
  function setValueAtPath(target, path, value) {
@@ -2342,7 +2478,7 @@ function setValueAtPath(target, path, value) {
2342
2478
  }
2343
2479
  const key = segmentToKey(segment);
2344
2480
  if (isLast) {
2345
- cursor[key] = value;
2481
+ setOwn(cursor, key, value);
2346
2482
  return;
2347
2483
  }
2348
2484
  cursor = getOrCreateChild(cursor, key, typeof next === "number");
@@ -2386,13 +2522,15 @@ function ensureSchemaNode(root, path) {
2386
2522
  }
2387
2523
  const key = segmentToKey(segment);
2388
2524
  cursor.properties ??= {};
2389
- if (!cursor.properties[key]) {
2390
- cursor.properties[key] = {
2525
+ let child = getOwn(cursor.properties, key);
2526
+ if (!child) {
2527
+ child = {
2391
2528
  type: "object",
2392
2529
  properties: {}
2393
2530
  };
2531
+ setOwn(cursor.properties, key, child);
2394
2532
  }
2395
- cursor = cursor.properties[key];
2533
+ cursor = child;
2396
2534
  }
2397
2535
  return cursor;
2398
2536
  }
@@ -2400,11 +2538,12 @@ function ensureFrameNode(root, path) {
2400
2538
  let cursor = root;
2401
2539
  for (const segment of path) {
2402
2540
  const key = segmentToKey(segment);
2403
- const current = cursor[key];
2541
+ let current = getOwn(cursor, key);
2404
2542
  if (!current || typeof current !== "object" || Array.isArray(current)) {
2405
- cursor[key] = {};
2543
+ current = {};
2544
+ setOwn(cursor, key, current);
2406
2545
  }
2407
- cursor = cursor[key];
2546
+ cursor = current;
2408
2547
  }
2409
2548
  return cursor;
2410
2549
  }
@@ -2453,7 +2592,7 @@ function buildClaimsMetadata(fields) {
2453
2592
  }
2454
2593
  function buildLeafSchema(field) {
2455
2594
  const schema = {
2456
- ...field.constraints,
2595
+ ...sanitizeConstraints(field.constraints),
2457
2596
  type: field.type
2458
2597
  };
2459
2598
  const title = getDisplayTitle(field.display);
@@ -2493,8 +2632,12 @@ function buildJsonSchema(fields) {
2493
2632
  }
2494
2633
  const leafKey = segmentToKey(leafSegment ?? "");
2495
2634
  parent.properties ??= {};
2496
- const existing = parent.properties[leafKey];
2497
- parent.properties[leafKey] = existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema;
2635
+ const existing = getOwn(parent.properties, leafKey);
2636
+ setOwn(
2637
+ parent.properties,
2638
+ leafKey,
2639
+ existing && typeof existing === "object" && !Array.isArray(existing) ? mergeLeafSchema(existing, leafSchema) : leafSchema
2640
+ );
2498
2641
  if (field.mandatory) {
2499
2642
  addRequired(parent, leafKey);
2500
2643
  }
@@ -2507,10 +2650,14 @@ function buildClaimsByNamespace(fields) {
2507
2650
  if (!field.namespace || !Object.prototype.hasOwnProperty.call(field, "defaultValue")) {
2508
2651
  continue;
2509
2652
  }
2510
- if (!byNamespace[field.namespace]) {
2511
- byNamespace[field.namespace] = {};
2653
+ let namespaceTarget = getOwn(
2654
+ byNamespace,
2655
+ field.namespace
2656
+ );
2657
+ if (!namespaceTarget) {
2658
+ namespaceTarget = {};
2659
+ setOwn(byNamespace, field.namespace, namespaceTarget);
2512
2660
  }
2513
- const namespaceTarget = byNamespace[field.namespace];
2514
2661
  const normalizedPath = field.path.length > 0 && segmentToKey(field.path[0] ?? "") === field.namespace ? field.path.slice(1) : field.path;
2515
2662
  setValueAtPath(namespaceTarget, normalizedPath, field.defaultValue);
2516
2663
  }
@@ -2526,6 +2673,6 @@ function deriveRuntimeArtifacts(fields) {
2526
2673
  };
2527
2674
  }
2528
2675
 
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, issuanceConfigControllerReissueRegistrationCertificate, issuanceConfigControllerStoreIssuanceConfiguration, keyChainControllerCreate, keyChainControllerDelete, keyChainControllerDeleteTenantKmsConfig, keyChainControllerExport, keyChainControllerGetAll, keyChainControllerGetById, keyChainControllerGetProviders, keyChainControllerGetProvidersHealth, keyChainControllerGetTenantKmsConfig, keyChainControllerImport, keyChainControllerRotate, keyChainControllerUpdate, keyChainControllerUpdateTenantKmsConfig, presentationManagementControllerConfiguration, presentationManagementControllerDeleteConfiguration, presentationManagementControllerGetConfiguration, presentationManagementControllerListSchemaMetadataCatalog, presentationManagementControllerReissueRegistrationCertificate, presentationManagementControllerResolveIssuerMetadata, presentationManagementControllerResolveSchemaMetadata, presentationManagementControllerResolveSchemaMetadataJwt, presentationManagementControllerStorePresentationConfig, presentationManagementControllerUpdateConfiguration, registrarControllerCreateAccessCertificate, registrarControllerCreateAccessKeyChain, registrarControllerCreateConfig, registrarControllerDeleteConfig, registrarControllerGetConfig, registrarControllerUpdateConfig, schemaMetadataControllerDeprecateVersion, schemaMetadataControllerFindAll, schemaMetadataControllerFindOne, schemaMetadataControllerGetJwt, schemaMetadataControllerGetLatest, schemaMetadataControllerGetMine, schemaMetadataControllerGetSchema, schemaMetadataControllerGetVersions, schemaMetadataControllerGetVocabularies, schemaMetadataControllerPublishSchemaMetadata, schemaMetadataControllerPublishSchemaMetadataVersion, schemaMetadataControllerRemove, schemaMetadataControllerUpdate, 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, userControllerCreateUser, userControllerDeleteUser, userControllerGetUser, userControllerGetUsers, userControllerUpdateUser, verifierOfferControllerGetOffer, webhookEndpointControllerCreate, webhookEndpointControllerDelete, webhookEndpointControllerGetAll, webhookEndpointControllerGetById, webhookEndpointControllerUpdate };
2676
+ 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, defaultAccessKeyChainControllerGet, defaultAccessKeyChainControllerSet, deferredControllerCompleteDeferred, deferredControllerFailDeferred, deriveRuntimeArtifacts, federationTrustAnchorControllerCreate, federationTrustAnchorControllerDelete, federationTrustAnchorControllerGetAll, federationTrustAnchorControllerGetById, federationTrustAnchorControllerUpdate, flattenFields, isDcApiAvailable, issuanceConfigControllerGetIssuanceConfigurations, issuanceConfigControllerReissueRegistrationCertificate, issuanceConfigControllerStoreIssuanceConfiguration, keyChainControllerCreate, keyChainControllerCreateCsr, keyChainControllerDelete, keyChainControllerDeleteTenantKmsConfig, keyChainControllerExport, keyChainControllerGetAll, keyChainControllerGetById, keyChainControllerGetProviders, keyChainControllerGetProvidersHealth, keyChainControllerGetTenantKmsConfig, keyChainControllerImport, keyChainControllerRotate, keyChainControllerUpdate, keyChainControllerUpdateTenantKmsConfig, presentationManagementControllerConfiguration, presentationManagementControllerDeleteConfiguration, presentationManagementControllerGetConfiguration, presentationManagementControllerListSchemaMetadataCatalog, presentationManagementControllerReissueRegistrationCertificate, presentationManagementControllerResolveIssuerMetadata, presentationManagementControllerResolveSchemaMetadata, presentationManagementControllerResolveSchemaMetadataJwt, presentationManagementControllerStorePresentationConfig, presentationManagementControllerUpdateConfiguration, registrarControllerCreateAccessCertificate, registrarControllerCreateAccessKeyChain, registrarControllerCreateConfig, registrarControllerDeleteConfig, registrarControllerGetConfig, registrarControllerUpdateConfig, schemaMetadataControllerDeprecateVersion, schemaMetadataControllerFindAll, schemaMetadataControllerFindOne, schemaMetadataControllerGetJwt, schemaMetadataControllerGetLatest, schemaMetadataControllerGetMine, schemaMetadataControllerGetSchema, schemaMetadataControllerGetVersions, schemaMetadataControllerGetVocabularies, schemaMetadataControllerPublishSchemaMetadata, schemaMetadataControllerPublishSchemaMetadataVersion, schemaMetadataControllerRemove, schemaMetadataControllerUpdate, 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
2677
  //# sourceMappingURL=index.mjs.map
2531
2678
  //# 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 { type Auth as A, type Config as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type ServerSentEventsResult as S, type TDataShape as T, type Client as a, type ClientOptions as b, type ClientMeta as c, type CreateClientConfig as d, type RequestResult as e, type ResolvedRequestOptions as f, type ResponseStyle as g, createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
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 { type Auth as A, type Config as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type ServerSentEventsResult as S, type TDataShape as T, type Client as a, type ClientOptions as b, type ClientMeta as c, type CreateClientConfig as d, type RequestResult as e, type ResolvedRequestOptions as f, type ResponseStyle as g, createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
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 };