@uniformdev/next-app-router 20.72.3-alpha.14 → 20.72.3-alpha.23

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/cache.js CHANGED
@@ -418,6 +418,7 @@ var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cann
418
418
  var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
419
419
  var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
420
420
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
421
+ var UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE = "Bearer token not valid or expired";
421
422
  var ApiClientError = class _ApiClientError extends Error {
422
423
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
423
424
  super(
@@ -433,6 +434,12 @@ var ApiClientError = class _ApiClientError extends Error {
433
434
  Object.setPrototypeOf(this, _ApiClientError.prototype);
434
435
  }
435
436
  };
437
+ var BearerTokenNotValidOrExpiredError = class _BearerTokenNotValidOrExpiredError extends ApiClientError {
438
+ constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
439
+ super(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId);
440
+ Object.setPrototypeOf(this, _BearerTokenNotValidOrExpiredError.prototype);
441
+ }
442
+ };
436
443
  var ApiClient = class _ApiClient {
437
444
  constructor(options) {
438
445
  __publicField2(this, "options");
@@ -466,7 +473,7 @@ var ApiClient = class _ApiClient {
466
473
  }
467
474
  async apiClientWithResponse(fetchUri, options) {
468
475
  return this.options.limitPolicy(async () => {
469
- var _a;
476
+ var _a, _b;
470
477
  const coreHeaders = this.options.apiKey ? {
471
478
  "x-api-key": this.options.apiKey
472
479
  } : {
@@ -502,9 +509,19 @@ var ApiClient = class _ApiClient {
502
509
  } catch (e) {
503
510
  message = `General error`;
504
511
  }
512
+ if (apiResponse.status === 401 && message === UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE) {
513
+ throw new BearerTokenNotValidOrExpiredError(
514
+ message,
515
+ (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
516
+ fetchUri.toString(),
517
+ apiResponse.status,
518
+ apiResponse.statusText,
519
+ _ApiClient.getRequestId(apiResponse)
520
+ );
521
+ }
505
522
  throw new ApiClientError(
506
523
  message,
507
- (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
524
+ (_b = options == null ? void 0 : options.method) != null ? _b : "GET",
508
525
  fetchUri.toString(),
509
526
  apiResponse.status,
510
527
  apiResponse.statusText,
@@ -1443,48 +1460,6 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
1443
1460
  _baseUrl = /* @__PURE__ */ new WeakMap();
1444
1461
  __privateAdd3(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
1445
1462
  var _url22;
1446
- var _NotificationsClient = class _NotificationsClient2 extends ApiClient {
1447
- constructor(options) {
1448
- super(options);
1449
- }
1450
- /**
1451
- * Lists notifications for the current user.
1452
- *
1453
- * @deprecated This API is experimental and may change without notice.
1454
- */
1455
- async list(options) {
1456
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22), options);
1457
- return await this.apiClient(fetchUri);
1458
- }
1459
- /**
1460
- * Creates a notification for one or more recipients.
1461
- *
1462
- * @deprecated This API is experimental and may change without notice.
1463
- */
1464
- async create(body) {
1465
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22));
1466
- return await this.apiClient(fetchUri, {
1467
- method: "POST",
1468
- body: JSON.stringify(body)
1469
- });
1470
- }
1471
- /**
1472
- * Updates the read state of the current user's notifications.
1473
- *
1474
- * @deprecated This API is experimental and may change without notice.
1475
- */
1476
- async setReadState(body) {
1477
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22));
1478
- await this.apiClient(fetchUri, {
1479
- method: "PATCH",
1480
- body: JSON.stringify(body),
1481
- expectNoContent: true
1482
- });
1483
- }
1484
- };
1485
- _url22 = /* @__PURE__ */ new WeakMap();
1486
- __privateAdd3(_NotificationsClient, _url22, "/api/v1/notifications");
1487
- var _url32;
1488
1463
  var _projectsUrl;
1489
1464
  var _ProjectClient = class _ProjectClient2 extends ApiClient {
1490
1465
  constructor(options) {
@@ -1492,7 +1467,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1492
1467
  }
1493
1468
  /** Fetches single Project */
1494
1469
  async get(options) {
1495
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32), { ...options });
1470
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22), { ...options });
1496
1471
  return await this.apiClient(fetchUri);
1497
1472
  }
1498
1473
  /**
@@ -1510,7 +1485,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1510
1485
  }
1511
1486
  /** Updates or creates (based on id) a Project */
1512
1487
  async save(body) {
1513
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32));
1488
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
1514
1489
  return await this.apiClient(fetchUri, {
1515
1490
  method: "PUT",
1516
1491
  body: JSON.stringify({ ...body })
@@ -1522,7 +1497,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1522
1497
  }
1523
1498
  /** Deletes a Project */
1524
1499
  async remove(body) {
1525
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32));
1500
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
1526
1501
  await this.apiClient(fetchUri, {
1527
1502
  method: "DELETE",
1528
1503
  body: JSON.stringify({ ...body }),
@@ -1534,9 +1509,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1534
1509
  return this.remove(body);
1535
1510
  }
1536
1511
  };
1537
- _url32 = /* @__PURE__ */ new WeakMap();
1512
+ _url22 = /* @__PURE__ */ new WeakMap();
1538
1513
  _projectsUrl = /* @__PURE__ */ new WeakMap();
1539
- __privateAdd3(_ProjectClient, _url32, "/api/v1/project");
1514
+ __privateAdd3(_ProjectClient, _url22, "/api/v1/project");
1540
1515
  __privateAdd3(_ProjectClient, _projectsUrl, "/api/v1/projects");
1541
1516
  var ROUTE_URL = "/api/v1/route";
1542
1517
  var RouteClient = class extends ApiClient {
package/dist/cache.mjs CHANGED
@@ -405,6 +405,7 @@ var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cann
405
405
  var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
406
406
  var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
407
407
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
408
+ var UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE = "Bearer token not valid or expired";
408
409
  var ApiClientError = class _ApiClientError extends Error {
409
410
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
410
411
  super(
@@ -420,6 +421,12 @@ var ApiClientError = class _ApiClientError extends Error {
420
421
  Object.setPrototypeOf(this, _ApiClientError.prototype);
421
422
  }
422
423
  };
424
+ var BearerTokenNotValidOrExpiredError = class _BearerTokenNotValidOrExpiredError extends ApiClientError {
425
+ constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
426
+ super(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId);
427
+ Object.setPrototypeOf(this, _BearerTokenNotValidOrExpiredError.prototype);
428
+ }
429
+ };
423
430
  var ApiClient = class _ApiClient {
424
431
  constructor(options) {
425
432
  __publicField2(this, "options");
@@ -453,7 +460,7 @@ var ApiClient = class _ApiClient {
453
460
  }
454
461
  async apiClientWithResponse(fetchUri, options) {
455
462
  return this.options.limitPolicy(async () => {
456
- var _a;
463
+ var _a, _b;
457
464
  const coreHeaders = this.options.apiKey ? {
458
465
  "x-api-key": this.options.apiKey
459
466
  } : {
@@ -489,9 +496,19 @@ var ApiClient = class _ApiClient {
489
496
  } catch (e) {
490
497
  message = `General error`;
491
498
  }
499
+ if (apiResponse.status === 401 && message === UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE) {
500
+ throw new BearerTokenNotValidOrExpiredError(
501
+ message,
502
+ (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
503
+ fetchUri.toString(),
504
+ apiResponse.status,
505
+ apiResponse.statusText,
506
+ _ApiClient.getRequestId(apiResponse)
507
+ );
508
+ }
492
509
  throw new ApiClientError(
493
510
  message,
494
- (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
511
+ (_b = options == null ? void 0 : options.method) != null ? _b : "GET",
495
512
  fetchUri.toString(),
496
513
  apiResponse.status,
497
514
  apiResponse.statusText,
@@ -1430,48 +1447,6 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
1430
1447
  _baseUrl = /* @__PURE__ */ new WeakMap();
1431
1448
  __privateAdd3(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
1432
1449
  var _url22;
1433
- var _NotificationsClient = class _NotificationsClient2 extends ApiClient {
1434
- constructor(options) {
1435
- super(options);
1436
- }
1437
- /**
1438
- * Lists notifications for the current user.
1439
- *
1440
- * @deprecated This API is experimental and may change without notice.
1441
- */
1442
- async list(options) {
1443
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22), options);
1444
- return await this.apiClient(fetchUri);
1445
- }
1446
- /**
1447
- * Creates a notification for one or more recipients.
1448
- *
1449
- * @deprecated This API is experimental and may change without notice.
1450
- */
1451
- async create(body) {
1452
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22));
1453
- return await this.apiClient(fetchUri, {
1454
- method: "POST",
1455
- body: JSON.stringify(body)
1456
- });
1457
- }
1458
- /**
1459
- * Updates the read state of the current user's notifications.
1460
- *
1461
- * @deprecated This API is experimental and may change without notice.
1462
- */
1463
- async setReadState(body) {
1464
- const fetchUri = this.createUrl(__privateGet3(_NotificationsClient2, _url22));
1465
- await this.apiClient(fetchUri, {
1466
- method: "PATCH",
1467
- body: JSON.stringify(body),
1468
- expectNoContent: true
1469
- });
1470
- }
1471
- };
1472
- _url22 = /* @__PURE__ */ new WeakMap();
1473
- __privateAdd3(_NotificationsClient, _url22, "/api/v1/notifications");
1474
- var _url32;
1475
1450
  var _projectsUrl;
1476
1451
  var _ProjectClient = class _ProjectClient2 extends ApiClient {
1477
1452
  constructor(options) {
@@ -1479,7 +1454,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1479
1454
  }
1480
1455
  /** Fetches single Project */
1481
1456
  async get(options) {
1482
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32), { ...options });
1457
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22), { ...options });
1483
1458
  return await this.apiClient(fetchUri);
1484
1459
  }
1485
1460
  /**
@@ -1497,7 +1472,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1497
1472
  }
1498
1473
  /** Updates or creates (based on id) a Project */
1499
1474
  async save(body) {
1500
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32));
1475
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
1501
1476
  return await this.apiClient(fetchUri, {
1502
1477
  method: "PUT",
1503
1478
  body: JSON.stringify({ ...body })
@@ -1509,7 +1484,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1509
1484
  }
1510
1485
  /** Deletes a Project */
1511
1486
  async remove(body) {
1512
- const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url32));
1487
+ const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
1513
1488
  await this.apiClient(fetchUri, {
1514
1489
  method: "DELETE",
1515
1490
  body: JSON.stringify({ ...body }),
@@ -1521,9 +1496,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
1521
1496
  return this.remove(body);
1522
1497
  }
1523
1498
  };
1524
- _url32 = /* @__PURE__ */ new WeakMap();
1499
+ _url22 = /* @__PURE__ */ new WeakMap();
1525
1500
  _projectsUrl = /* @__PURE__ */ new WeakMap();
1526
- __privateAdd3(_ProjectClient, _url32, "/api/v1/project");
1501
+ __privateAdd3(_ProjectClient, _url22, "/api/v1/project");
1527
1502
  __privateAdd3(_ProjectClient, _projectsUrl, "/api/v1/projects");
1528
1503
  var ROUTE_URL = "/api/v1/route";
1529
1504
  var RouteClient = class extends ApiClient {
package/dist/component.js CHANGED
@@ -225,6 +225,7 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
225
225
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
226
226
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
227
227
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
228
+ var UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE = "Bearer token not valid or expired";
228
229
  var ApiClientError = class _ApiClientError extends Error {
229
230
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
230
231
  super(
@@ -240,6 +241,12 @@ var ApiClientError = class _ApiClientError extends Error {
240
241
  Object.setPrototypeOf(this, _ApiClientError.prototype);
241
242
  }
242
243
  };
244
+ var BearerTokenNotValidOrExpiredError = class _BearerTokenNotValidOrExpiredError extends ApiClientError {
245
+ constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
246
+ super(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId);
247
+ Object.setPrototypeOf(this, _BearerTokenNotValidOrExpiredError.prototype);
248
+ }
249
+ };
243
250
  var ApiClient = class _ApiClient {
244
251
  constructor(options) {
245
252
  __publicField(this, "options");
@@ -273,7 +280,7 @@ var ApiClient = class _ApiClient {
273
280
  }
274
281
  async apiClientWithResponse(fetchUri, options) {
275
282
  return this.options.limitPolicy(async () => {
276
- var _a;
283
+ var _a, _b;
277
284
  const coreHeaders = this.options.apiKey ? {
278
285
  "x-api-key": this.options.apiKey
279
286
  } : {
@@ -309,9 +316,19 @@ var ApiClient = class _ApiClient {
309
316
  } catch (e) {
310
317
  message = `General error`;
311
318
  }
319
+ if (apiResponse.status === 401 && message === UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE) {
320
+ throw new BearerTokenNotValidOrExpiredError(
321
+ message,
322
+ (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
323
+ fetchUri.toString(),
324
+ apiResponse.status,
325
+ apiResponse.statusText,
326
+ _ApiClient.getRequestId(apiResponse)
327
+ );
328
+ }
312
329
  throw new ApiClientError(
313
330
  message,
314
- (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
331
+ (_b = options == null ? void 0 : options.method) != null ? _b : "GET",
315
332
  fetchUri.toString(),
316
333
  apiResponse.status,
317
334
  apiResponse.statusText,
@@ -861,48 +878,6 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
861
878
  _baseUrl = /* @__PURE__ */ new WeakMap();
862
879
  __privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
863
880
  var _url22;
864
- var _NotificationsClient = class _NotificationsClient2 extends ApiClient {
865
- constructor(options) {
866
- super(options);
867
- }
868
- /**
869
- * Lists notifications for the current user.
870
- *
871
- * @deprecated This API is experimental and may change without notice.
872
- */
873
- async list(options) {
874
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22), options);
875
- return await this.apiClient(fetchUri);
876
- }
877
- /**
878
- * Creates a notification for one or more recipients.
879
- *
880
- * @deprecated This API is experimental and may change without notice.
881
- */
882
- async create(body) {
883
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22));
884
- return await this.apiClient(fetchUri, {
885
- method: "POST",
886
- body: JSON.stringify(body)
887
- });
888
- }
889
- /**
890
- * Updates the read state of the current user's notifications.
891
- *
892
- * @deprecated This API is experimental and may change without notice.
893
- */
894
- async setReadState(body) {
895
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22));
896
- await this.apiClient(fetchUri, {
897
- method: "PATCH",
898
- body: JSON.stringify(body),
899
- expectNoContent: true
900
- });
901
- }
902
- };
903
- _url22 = /* @__PURE__ */ new WeakMap();
904
- __privateAdd2(_NotificationsClient, _url22, "/api/v1/notifications");
905
- var _url32;
906
881
  var _projectsUrl;
907
882
  var _ProjectClient = class _ProjectClient2 extends ApiClient {
908
883
  constructor(options) {
@@ -910,7 +885,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
910
885
  }
911
886
  /** Fetches single Project */
912
887
  async get(options) {
913
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32), { ...options });
888
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
914
889
  return await this.apiClient(fetchUri);
915
890
  }
916
891
  /**
@@ -928,7 +903,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
928
903
  }
929
904
  /** Updates or creates (based on id) a Project */
930
905
  async save(body) {
931
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32));
906
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
932
907
  return await this.apiClient(fetchUri, {
933
908
  method: "PUT",
934
909
  body: JSON.stringify({ ...body })
@@ -940,7 +915,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
940
915
  }
941
916
  /** Deletes a Project */
942
917
  async remove(body) {
943
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32));
918
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
944
919
  await this.apiClient(fetchUri, {
945
920
  method: "DELETE",
946
921
  body: JSON.stringify({ ...body }),
@@ -952,9 +927,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
952
927
  return this.remove(body);
953
928
  }
954
929
  };
955
- _url32 = /* @__PURE__ */ new WeakMap();
930
+ _url22 = /* @__PURE__ */ new WeakMap();
956
931
  _projectsUrl = /* @__PURE__ */ new WeakMap();
957
- __privateAdd2(_ProjectClient, _url32, "/api/v1/project");
932
+ __privateAdd2(_ProjectClient, _url22, "/api/v1/project");
958
933
  __privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
959
934
  var ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
960
935
  var ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
@@ -210,6 +210,7 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
210
210
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
211
211
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
212
212
  var defaultLimitPolicy = (0, import_p_limit.default)(6);
213
+ var UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE = "Bearer token not valid or expired";
213
214
  var ApiClientError = class _ApiClientError extends Error {
214
215
  constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
215
216
  super(
@@ -225,6 +226,12 @@ var ApiClientError = class _ApiClientError extends Error {
225
226
  Object.setPrototypeOf(this, _ApiClientError.prototype);
226
227
  }
227
228
  };
229
+ var BearerTokenNotValidOrExpiredError = class _BearerTokenNotValidOrExpiredError extends ApiClientError {
230
+ constructor(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId) {
231
+ super(errorMessage, fetchMethod, fetchUri, statusCode, statusText, requestId);
232
+ Object.setPrototypeOf(this, _BearerTokenNotValidOrExpiredError.prototype);
233
+ }
234
+ };
228
235
  var ApiClient = class _ApiClient {
229
236
  constructor(options) {
230
237
  __publicField(this, "options");
@@ -258,7 +265,7 @@ var ApiClient = class _ApiClient {
258
265
  }
259
266
  async apiClientWithResponse(fetchUri, options) {
260
267
  return this.options.limitPolicy(async () => {
261
- var _a;
268
+ var _a, _b;
262
269
  const coreHeaders = this.options.apiKey ? {
263
270
  "x-api-key": this.options.apiKey
264
271
  } : {
@@ -294,9 +301,19 @@ var ApiClient = class _ApiClient {
294
301
  } catch (e) {
295
302
  message = `General error`;
296
303
  }
304
+ if (apiResponse.status === 401 && message === UNIFORM_BEARER_TOKEN_NOT_VALID_OR_EXPIRED_MESSAGE) {
305
+ throw new BearerTokenNotValidOrExpiredError(
306
+ message,
307
+ (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
308
+ fetchUri.toString(),
309
+ apiResponse.status,
310
+ apiResponse.statusText,
311
+ _ApiClient.getRequestId(apiResponse)
312
+ );
313
+ }
297
314
  throw new ApiClientError(
298
315
  message,
299
- (_a = options == null ? void 0 : options.method) != null ? _a : "GET",
316
+ (_b = options == null ? void 0 : options.method) != null ? _b : "GET",
300
317
  fetchUri.toString(),
301
318
  apiResponse.status,
302
319
  apiResponse.statusText,
@@ -846,48 +863,6 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
846
863
  _baseUrl = /* @__PURE__ */ new WeakMap();
847
864
  __privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
848
865
  var _url22;
849
- var _NotificationsClient = class _NotificationsClient2 extends ApiClient {
850
- constructor(options) {
851
- super(options);
852
- }
853
- /**
854
- * Lists notifications for the current user.
855
- *
856
- * @deprecated This API is experimental and may change without notice.
857
- */
858
- async list(options) {
859
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22), options);
860
- return await this.apiClient(fetchUri);
861
- }
862
- /**
863
- * Creates a notification for one or more recipients.
864
- *
865
- * @deprecated This API is experimental and may change without notice.
866
- */
867
- async create(body) {
868
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22));
869
- return await this.apiClient(fetchUri, {
870
- method: "POST",
871
- body: JSON.stringify(body)
872
- });
873
- }
874
- /**
875
- * Updates the read state of the current user's notifications.
876
- *
877
- * @deprecated This API is experimental and may change without notice.
878
- */
879
- async setReadState(body) {
880
- const fetchUri = this.createUrl(__privateGet2(_NotificationsClient2, _url22));
881
- await this.apiClient(fetchUri, {
882
- method: "PATCH",
883
- body: JSON.stringify(body),
884
- expectNoContent: true
885
- });
886
- }
887
- };
888
- _url22 = /* @__PURE__ */ new WeakMap();
889
- __privateAdd2(_NotificationsClient, _url22, "/api/v1/notifications");
890
- var _url32;
891
866
  var _projectsUrl;
892
867
  var _ProjectClient = class _ProjectClient2 extends ApiClient {
893
868
  constructor(options) {
@@ -895,7 +870,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
895
870
  }
896
871
  /** Fetches single Project */
897
872
  async get(options) {
898
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32), { ...options });
873
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
899
874
  return await this.apiClient(fetchUri);
900
875
  }
901
876
  /**
@@ -913,7 +888,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
913
888
  }
914
889
  /** Updates or creates (based on id) a Project */
915
890
  async save(body) {
916
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32));
891
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
917
892
  return await this.apiClient(fetchUri, {
918
893
  method: "PUT",
919
894
  body: JSON.stringify({ ...body })
@@ -925,7 +900,7 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
925
900
  }
926
901
  /** Deletes a Project */
927
902
  async remove(body) {
928
- const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url32));
903
+ const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
929
904
  await this.apiClient(fetchUri, {
930
905
  method: "DELETE",
931
906
  body: JSON.stringify({ ...body }),
@@ -937,9 +912,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
937
912
  return this.remove(body);
938
913
  }
939
914
  };
940
- _url32 = /* @__PURE__ */ new WeakMap();
915
+ _url22 = /* @__PURE__ */ new WeakMap();
941
916
  _projectsUrl = /* @__PURE__ */ new WeakMap();
942
- __privateAdd2(_ProjectClient, _url32, "/api/v1/project");
917
+ __privateAdd2(_ProjectClient, _url22, "/api/v1/project");
943
918
  __privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
944
919
  var ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
945
920
  var ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";