@relyio/sdk 0.18.0 → 0.19.0

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/automations/index.cjs +18 -17
  3. package/dist/automations/index.d.cts +289 -8
  4. package/dist/automations/index.d.ts +289 -8
  5. package/dist/automations/index.js +3 -2
  6. package/dist/{chunk-ZHTJ7GXH.js → chunk-356SF5Y2.js} +84 -26
  7. package/dist/{chunk-ZAMAR3X2.cjs → chunk-5F3YYPLZ.cjs} +11249 -10771
  8. package/dist/{chunk-LSI26ZN2.cjs → chunk-DBYMG6MQ.cjs} +5 -5
  9. package/dist/{chunk-SHSK7UUY.cjs → chunk-NN45CSPZ.cjs} +177 -11
  10. package/dist/{chunk-IFKF72VJ.cjs → chunk-P23G5NXD.cjs} +122 -63
  11. package/dist/{chunk-W7JFHSFM.js → chunk-PZCDJFMA.js} +11249 -10772
  12. package/dist/{chunk-EDE2H37D.js → chunk-T7LGREB3.js} +174 -12
  13. package/dist/{chunk-R6E4HE7R.js → chunk-W2GRVXDG.js} +3 -3
  14. package/dist/client/index.cjs +4 -4
  15. package/dist/client/index.d.cts +4 -4
  16. package/dist/client/index.d.ts +4 -4
  17. package/dist/client/index.js +2 -2
  18. package/dist/{define-content-type-NEQDrvdq.d.cts → define-content-type-BZ6X8GvL.d.cts} +1324 -156
  19. package/dist/{define-content-type-fb-WCD5e.d.ts → define-content-type-C12jh8cY.d.ts} +1324 -156
  20. package/dist/{define-schema-Dlwh6l_J.d.ts → define-schema-BPlZl4a2.d.cts} +104 -3
  21. package/dist/{define-schema-DZhtvLiK.d.cts → define-schema-CK7TtYot.d.ts} +104 -3
  22. package/dist/extensions/index.cjs +26 -6
  23. package/dist/extensions/index.d.cts +5 -791
  24. package/dist/extensions/index.d.ts +5 -791
  25. package/dist/extensions/index.js +24 -4
  26. package/dist/functions/index.cjs +7 -4
  27. package/dist/functions/index.d.cts +4 -4
  28. package/dist/functions/index.d.ts +4 -4
  29. package/dist/functions/index.js +5 -2
  30. package/dist/{index-M3luH06A.d.ts → index-BxNnlc5D.d.ts} +91 -73
  31. package/dist/{index-C4LqrNd1.d.ts → index-C-MymZTe.d.ts} +1 -1
  32. package/dist/{index-DwHcL6x5.d.cts → index-D5jyIeQ5.d.cts} +91 -73
  33. package/dist/{index-Dnmt_UOo.d.cts → index-DN0l8RHw.d.cts} +1 -1
  34. package/dist/index.cjs +88 -84
  35. package/dist/index.d.cts +64 -14
  36. package/dist/index.d.ts +64 -14
  37. package/dist/index.js +4 -4
  38. package/dist/preview/index.cjs +3 -3
  39. package/dist/preview/index.js +1 -1
  40. package/dist/{register-B53i97A9.d.ts → register-BiMQKVp-.d.ts} +24 -8
  41. package/dist/{register-BYCs0FpF.d.cts → register-DeMsaurp.d.cts} +24 -8
  42. package/dist/rich-text/index.d.cts +2 -2
  43. package/dist/rich-text/index.d.ts +2 -2
  44. package/dist/schema/index.cjs +41 -40
  45. package/dist/schema/index.d.cts +7 -120
  46. package/dist/schema/index.d.ts +7 -120
  47. package/dist/schema/index.js +2 -1
  48. package/dist/types/index.d.cts +1 -1
  49. package/dist/types/index.d.ts +1 -1
  50. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('./chunk-PPA2WWOH.cjs');
6
6
  var chunk2SPPU2WG_cjs = require('./chunk-2SPPU2WG.cjs');
7
- var chunkZAMAR3X2_cjs = require('./chunk-ZAMAR3X2.cjs');
8
- var chunkIFKF72VJ_cjs = require('./chunk-IFKF72VJ.cjs');
7
+ var chunk5F3YYPLZ_cjs = require('./chunk-5F3YYPLZ.cjs');
8
+ var chunkP23G5NXD_cjs = require('./chunk-P23G5NXD.cjs');
9
9
  var chunkM7MWNV3Q_cjs = require('./chunk-M7MWNV3Q.cjs');
10
10
  require('./chunk-ZO6QDYJG.cjs');
11
11
  require('./chunk-7I3SC7SV.cjs');
12
- var chunkSHSK7UUY_cjs = require('./chunk-SHSK7UUY.cjs');
12
+ var chunkNN45CSPZ_cjs = require('./chunk-NN45CSPZ.cjs');
13
13
  var chunkL6DXCKVQ_cjs = require('./chunk-L6DXCKVQ.cjs');
14
14
 
15
15
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
@@ -23,9 +23,9 @@ function stopOnUnknownAnswer(_answer) {
23
23
  }
24
24
  chunkL6DXCKVQ_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
25
25
  function classifyFollowFailure(error) {
26
- if (error instanceof chunkIFKF72VJ_cjs.LiveEdgeError) return liveEdgeVerdict(error);
27
- if (!(error instanceof chunkIFKF72VJ_cjs.SDKError) || !error.retryable) return { retry: false };
28
- const afterMs = chunkIFKF72VJ_cjs.serviceInstructedDelayMs(error, Date.now());
26
+ if (error instanceof chunkP23G5NXD_cjs.LiveEdgeError) return liveEdgeVerdict(error);
27
+ if (!(error instanceof chunkP23G5NXD_cjs.SDKError) || !error.retryable) return { retry: false };
28
+ const afterMs = chunkP23G5NXD_cjs.serviceInstructedDelayMs(error, Date.now());
29
29
  return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
30
30
  }
31
31
  chunkL6DXCKVQ_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
@@ -39,7 +39,7 @@ function liveEdgeVerdict(error) {
39
39
  return { retry: true, ...hint };
40
40
  }
41
41
  case "back-off": {
42
- return { retry: true, ...hint, backOffMs: chunkSHSK7UUY_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
42
+ return { retry: true, ...hint, backOffMs: chunkNN45CSPZ_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
43
43
  }
44
44
  default: {
45
45
  return stopOnUnknownAnswer(error.retry);
@@ -52,10 +52,10 @@ async function followChanges(source, options) {
52
52
  const classify = options.classify ?? classifyFollowFailure;
53
53
  const random = options.random ?? Math.random;
54
54
  const report = /* @__PURE__ */ chunkL6DXCKVQ_cjs.__name((state) => {
55
- if (!chunkIFKF72VJ_cjs.isAborted(signal)) options.onState?.(state);
55
+ if (!chunkP23G5NXD_cjs.isAborted(signal)) options.onState?.(state);
56
56
  }, "report");
57
57
  const resync = /* @__PURE__ */ chunkL6DXCKVQ_cjs.__name(async (cause) => {
58
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return;
58
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return;
59
59
  await onResync(cause);
60
60
  report({ kind: "resynced", resync: cause });
61
61
  }, "resync");
@@ -64,12 +64,12 @@ async function followChanges(source, options) {
64
64
  let unanchored = false;
65
65
  let current;
66
66
  for (; ; ) {
67
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
67
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
68
68
  try {
69
69
  if (unanchored) {
70
70
  unanchored = false;
71
71
  await resync({ cause: "no-cursor" });
72
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
72
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
73
73
  }
74
74
  report({ kind: "following" });
75
75
  const open = {};
@@ -86,13 +86,13 @@ async function followChanges(source, options) {
86
86
  }, "reached")
87
87
  });
88
88
  for await (const change of changes) {
89
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
89
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
90
90
  failures = 0;
91
91
  await onChange(change);
92
92
  since = change.cursor;
93
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
93
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
94
94
  }
95
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
95
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
96
96
  const error = new Error(
97
97
  "The change source completed without its signal aborting; a source ends only on abort and throws every other end."
98
98
  );
@@ -100,7 +100,7 @@ async function followChanges(source, options) {
100
100
  return { kind: "stopped", since, error };
101
101
  } catch (error) {
102
102
  current = void 0;
103
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
103
+ if (chunkP23G5NXD_cjs.isAborted(signal)) return { kind: "aborted", since };
104
104
  const verdict = classify(error);
105
105
  if (!verdict.retry) {
106
106
  report({ kind: "stopped", error });
@@ -109,7 +109,7 @@ async function followChanges(source, options) {
109
109
  failures += 1;
110
110
  const retryInMs = retryDelayMs(failures, verdict, random);
111
111
  report({ kind: "reconnecting", error, retryInMs });
112
- await chunkIFKF72VJ_cjs.sleep(retryInMs, signal);
112
+ await chunkP23G5NXD_cjs.sleep(retryInMs, signal);
113
113
  if (since === void 0) unanchored = true;
114
114
  }
115
115
  }
@@ -327,275 +327,279 @@ Object.defineProperty(exports, "safeRichTextHref", {
327
327
  });
328
328
  Object.defineProperty(exports, "defineAssetType", {
329
329
  enumerable: true,
330
- get: function () { return chunkZAMAR3X2_cjs.defineAssetType; }
330
+ get: function () { return chunk5F3YYPLZ_cjs.defineAssetType; }
331
331
  });
332
332
  Object.defineProperty(exports, "defineContentType", {
333
333
  enumerable: true,
334
- get: function () { return chunkZAMAR3X2_cjs.defineContentType; }
334
+ get: function () { return chunk5F3YYPLZ_cjs.defineContentType; }
335
335
  });
336
336
  Object.defineProperty(exports, "defineLocale", {
337
337
  enumerable: true,
338
- get: function () { return chunkZAMAR3X2_cjs.defineLocale; }
338
+ get: function () { return chunk5F3YYPLZ_cjs.defineLocale; }
339
339
  });
340
340
  Object.defineProperty(exports, "defineQuery", {
341
341
  enumerable: true,
342
- get: function () { return chunkZAMAR3X2_cjs.defineQuery; }
342
+ get: function () { return chunk5F3YYPLZ_cjs.defineQuery; }
343
343
  });
344
344
  Object.defineProperty(exports, "defineSchema", {
345
345
  enumerable: true,
346
- get: function () { return chunkZAMAR3X2_cjs.defineSchema; }
346
+ get: function () { return chunk5F3YYPLZ_cjs.defineSchema; }
347
347
  });
348
348
  Object.defineProperty(exports, "defineSettingsGroup", {
349
349
  enumerable: true,
350
- get: function () { return chunkZAMAR3X2_cjs.defineSettingsGroup; }
350
+ get: function () { return chunk5F3YYPLZ_cjs.defineSettingsGroup; }
351
351
  });
352
352
  Object.defineProperty(exports, "defineSingleton", {
353
353
  enumerable: true,
354
- get: function () { return chunkZAMAR3X2_cjs.defineSingleton; }
354
+ get: function () { return chunk5F3YYPLZ_cjs.defineSingleton; }
355
355
  });
356
356
  Object.defineProperty(exports, "fields", {
357
357
  enumerable: true,
358
- get: function () { return chunkZAMAR3X2_cjs.fields; }
358
+ get: function () { return chunk5F3YYPLZ_cjs.fields; }
359
359
  });
360
360
  Object.defineProperty(exports, "fieldset", {
361
361
  enumerable: true,
362
- get: function () { return chunkZAMAR3X2_cjs.fieldset; }
362
+ get: function () { return chunk5F3YYPLZ_cjs.fieldset; }
363
363
  });
364
364
  Object.defineProperty(exports, "AssetClient", {
365
365
  enumerable: true,
366
- get: function () { return chunkIFKF72VJ_cjs.AssetClient; }
366
+ get: function () { return chunkP23G5NXD_cjs.AssetClient; }
367
367
  });
368
368
  Object.defineProperty(exports, "AssetFileBuilder", {
369
369
  enumerable: true,
370
- get: function () { return chunkIFKF72VJ_cjs.AssetFileBuilder; }
370
+ get: function () { return chunkP23G5NXD_cjs.AssetFileBuilder; }
371
371
  });
372
372
  Object.defineProperty(exports, "AssetUploadBuilder", {
373
373
  enumerable: true,
374
- get: function () { return chunkIFKF72VJ_cjs.AssetUploadBuilder; }
374
+ get: function () { return chunkP23G5NXD_cjs.AssetUploadBuilder; }
375
375
  });
376
376
  Object.defineProperty(exports, "AuthorizationError", {
377
377
  enumerable: true,
378
- get: function () { return chunkIFKF72VJ_cjs.AuthorizationError; }
378
+ get: function () { return chunkP23G5NXD_cjs.AuthorizationError; }
379
379
  });
380
380
  Object.defineProperty(exports, "BaseValidationError", {
381
381
  enumerable: true,
382
- get: function () { return chunkIFKF72VJ_cjs.BaseValidationError; }
382
+ get: function () { return chunkP23G5NXD_cjs.BaseValidationError; }
383
383
  });
384
384
  Object.defineProperty(exports, "ChangesExpiredError", {
385
385
  enumerable: true,
386
- get: function () { return chunkIFKF72VJ_cjs.ChangesExpiredError; }
386
+ get: function () { return chunkP23G5NXD_cjs.ChangesExpiredError; }
387
387
  });
388
388
  Object.defineProperty(exports, "ConnectionError", {
389
389
  enumerable: true,
390
- get: function () { return chunkIFKF72VJ_cjs.ConnectionError; }
390
+ get: function () { return chunkP23G5NXD_cjs.ConnectionError; }
391
391
  });
392
392
  Object.defineProperty(exports, "ContentClient", {
393
393
  enumerable: true,
394
- get: function () { return chunkIFKF72VJ_cjs.ContentClient; }
394
+ get: function () { return chunkP23G5NXD_cjs.ContentClient; }
395
395
  });
396
396
  Object.defineProperty(exports, "DefaultRetryPolicy", {
397
397
  enumerable: true,
398
- get: function () { return chunkIFKF72VJ_cjs.DefaultRetryPolicy; }
398
+ get: function () { return chunkP23G5NXD_cjs.DefaultRetryPolicy; }
399
+ });
400
+ Object.defineProperty(exports, "EndUserTokenInvalidError", {
401
+ enumerable: true,
402
+ get: function () { return chunkP23G5NXD_cjs.EndUserTokenInvalidError; }
399
403
  });
400
404
  Object.defineProperty(exports, "ErrorMapper", {
401
405
  enumerable: true,
402
- get: function () { return chunkIFKF72VJ_cjs.ErrorMapper; }
406
+ get: function () { return chunkP23G5NXD_cjs.ErrorMapper; }
403
407
  });
404
408
  Object.defineProperty(exports, "FileUploadError", {
405
409
  enumerable: true,
406
- get: function () { return chunkIFKF72VJ_cjs.FileUploadError; }
410
+ get: function () { return chunkP23G5NXD_cjs.FileUploadError; }
407
411
  });
408
412
  Object.defineProperty(exports, "FileValidationError", {
409
413
  enumerable: true,
410
- get: function () { return chunkIFKF72VJ_cjs.FileValidationError; }
414
+ get: function () { return chunkP23G5NXD_cjs.FileValidationError; }
411
415
  });
412
416
  Object.defineProperty(exports, "FunctionContainersBusyError", {
413
417
  enumerable: true,
414
- get: function () { return chunkIFKF72VJ_cjs.FunctionContainersBusyError; }
418
+ get: function () { return chunkP23G5NXD_cjs.FunctionContainersBusyError; }
415
419
  });
416
420
  Object.defineProperty(exports, "FunctionRunFailedError", {
417
421
  enumerable: true,
418
- get: function () { return chunkIFKF72VJ_cjs.FunctionRunFailedError; }
422
+ get: function () { return chunkP23G5NXD_cjs.FunctionRunFailedError; }
419
423
  });
420
424
  Object.defineProperty(exports, "FunctionRunTimedOutError", {
421
425
  enumerable: true,
422
- get: function () { return chunkIFKF72VJ_cjs.FunctionRunTimedOutError; }
426
+ get: function () { return chunkP23G5NXD_cjs.FunctionRunTimedOutError; }
423
427
  });
424
428
  Object.defineProperty(exports, "HttpClient", {
425
429
  enumerable: true,
426
- get: function () { return chunkIFKF72VJ_cjs.HttpClient; }
430
+ get: function () { return chunkP23G5NXD_cjs.HttpClient; }
427
431
  });
428
432
  Object.defineProperty(exports, "InvalidApiKeyError", {
429
433
  enumerable: true,
430
- get: function () { return chunkIFKF72VJ_cjs.InvalidApiKeyError; }
434
+ get: function () { return chunkP23G5NXD_cjs.InvalidApiKeyError; }
431
435
  });
432
436
  Object.defineProperty(exports, "InvalidPayloadError", {
433
437
  enumerable: true,
434
- get: function () { return chunkIFKF72VJ_cjs.InvalidPayloadError; }
438
+ get: function () { return chunkP23G5NXD_cjs.InvalidPayloadError; }
435
439
  });
436
440
  Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
437
441
  enumerable: true,
438
- get: function () { return chunkIFKF72VJ_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
442
+ get: function () { return chunkP23G5NXD_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
439
443
  });
440
444
  Object.defineProperty(exports, "LIVE_SOCKET_OPEN_TIMEOUT_MS", {
441
445
  enumerable: true,
442
- get: function () { return chunkIFKF72VJ_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
446
+ get: function () { return chunkP23G5NXD_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
443
447
  });
444
448
  Object.defineProperty(exports, "LiveEdgeError", {
445
449
  enumerable: true,
446
- get: function () { return chunkIFKF72VJ_cjs.LiveEdgeError; }
450
+ get: function () { return chunkP23G5NXD_cjs.LiveEdgeError; }
447
451
  });
448
452
  Object.defineProperty(exports, "MethodNotAllowedError", {
449
453
  enumerable: true,
450
- get: function () { return chunkIFKF72VJ_cjs.MethodNotAllowedError; }
454
+ get: function () { return chunkP23G5NXD_cjs.MethodNotAllowedError; }
451
455
  });
452
456
  Object.defineProperty(exports, "MissingApiKeyError", {
453
457
  enumerable: true,
454
- get: function () { return chunkIFKF72VJ_cjs.MissingApiKeyError; }
458
+ get: function () { return chunkP23G5NXD_cjs.MissingApiKeyError; }
455
459
  });
456
460
  Object.defineProperty(exports, "NetworkError", {
457
461
  enumerable: true,
458
- get: function () { return chunkIFKF72VJ_cjs.NetworkError; }
462
+ get: function () { return chunkP23G5NXD_cjs.NetworkError; }
459
463
  });
460
464
  Object.defineProperty(exports, "PREVIEW_KEY_PREFIX", {
461
465
  enumerable: true,
462
- get: function () { return chunkIFKF72VJ_cjs.PREVIEW_KEY_PREFIX; }
466
+ get: function () { return chunkP23G5NXD_cjs.PREVIEW_KEY_PREFIX; }
463
467
  });
464
468
  Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
465
469
  enumerable: true,
466
- get: function () { return chunkIFKF72VJ_cjs.PUBLISHABLE_KEY_PREFIX; }
470
+ get: function () { return chunkP23G5NXD_cjs.PUBLISHABLE_KEY_PREFIX; }
467
471
  });
468
472
  Object.defineProperty(exports, "PayloadTooLargeError", {
469
473
  enumerable: true,
470
- get: function () { return chunkIFKF72VJ_cjs.PayloadTooLargeError; }
474
+ get: function () { return chunkP23G5NXD_cjs.PayloadTooLargeError; }
471
475
  });
472
476
  Object.defineProperty(exports, "PlanFeatureUnavailableError", {
473
477
  enumerable: true,
474
- get: function () { return chunkIFKF72VJ_cjs.PlanFeatureUnavailableError; }
478
+ get: function () { return chunkP23G5NXD_cjs.PlanFeatureUnavailableError; }
475
479
  });
476
480
  Object.defineProperty(exports, "PublishableKeyRefusedError", {
477
481
  enumerable: true,
478
- get: function () { return chunkIFKF72VJ_cjs.PublishableKeyRefusedError; }
482
+ get: function () { return chunkP23G5NXD_cjs.PublishableKeyRefusedError; }
479
483
  });
480
484
  Object.defineProperty(exports, "RateLimitError", {
481
485
  enumerable: true,
482
- get: function () { return chunkIFKF72VJ_cjs.RateLimitError; }
486
+ get: function () { return chunkP23G5NXD_cjs.RateLimitError; }
483
487
  });
484
488
  Object.defineProperty(exports, "ReadOnlyKeyError", {
485
489
  enumerable: true,
486
- get: function () { return chunkIFKF72VJ_cjs.ReadOnlyKeyError; }
490
+ get: function () { return chunkP23G5NXD_cjs.ReadOnlyKeyError; }
487
491
  });
488
492
  Object.defineProperty(exports, "RecordsClient", {
489
493
  enumerable: true,
490
- get: function () { return chunkIFKF72VJ_cjs.RecordsClient; }
494
+ get: function () { return chunkP23G5NXD_cjs.RecordsClient; }
491
495
  });
492
496
  Object.defineProperty(exports, "ResourceConflictError", {
493
497
  enumerable: true,
494
- get: function () { return chunkIFKF72VJ_cjs.ResourceConflictError; }
498
+ get: function () { return chunkP23G5NXD_cjs.ResourceConflictError; }
495
499
  });
496
500
  Object.defineProperty(exports, "ResourceExpiredError", {
497
501
  enumerable: true,
498
- get: function () { return chunkIFKF72VJ_cjs.ResourceExpiredError; }
502
+ get: function () { return chunkP23G5NXD_cjs.ResourceExpiredError; }
499
503
  });
500
504
  Object.defineProperty(exports, "ResourceNotFoundError", {
501
505
  enumerable: true,
502
- get: function () { return chunkIFKF72VJ_cjs.ResourceNotFoundError; }
506
+ get: function () { return chunkP23G5NXD_cjs.ResourceNotFoundError; }
503
507
  });
504
508
  Object.defineProperty(exports, "SDKError", {
505
509
  enumerable: true,
506
- get: function () { return chunkIFKF72VJ_cjs.SDKError; }
510
+ get: function () { return chunkP23G5NXD_cjs.SDKError; }
507
511
  });
508
512
  Object.defineProperty(exports, "ServerError", {
509
513
  enumerable: true,
510
- get: function () { return chunkIFKF72VJ_cjs.ServerError; }
514
+ get: function () { return chunkP23G5NXD_cjs.ServerError; }
511
515
  });
512
516
  Object.defineProperty(exports, "ServiceIndeterminateError", {
513
517
  enumerable: true,
514
- get: function () { return chunkIFKF72VJ_cjs.ServiceIndeterminateError; }
518
+ get: function () { return chunkP23G5NXD_cjs.ServiceIndeterminateError; }
515
519
  });
516
520
  Object.defineProperty(exports, "SettingsClient", {
517
521
  enumerable: true,
518
- get: function () { return chunkIFKF72VJ_cjs.SettingsClient; }
522
+ get: function () { return chunkP23G5NXD_cjs.SettingsClient; }
519
523
  });
520
524
  Object.defineProperty(exports, "SingletonClient", {
521
525
  enumerable: true,
522
- get: function () { return chunkIFKF72VJ_cjs.SingletonClient; }
526
+ get: function () { return chunkP23G5NXD_cjs.SingletonClient; }
523
527
  });
524
528
  Object.defineProperty(exports, "TimeoutError", {
525
529
  enumerable: true,
526
- get: function () { return chunkIFKF72VJ_cjs.TimeoutError; }
530
+ get: function () { return chunkP23G5NXD_cjs.TimeoutError; }
527
531
  });
528
532
  Object.defineProperty(exports, "TransactionRolledBackError", {
529
533
  enumerable: true,
530
- get: function () { return chunkIFKF72VJ_cjs.TransactionRolledBackError; }
534
+ get: function () { return chunkP23G5NXD_cjs.TransactionRolledBackError; }
531
535
  });
532
536
  Object.defineProperty(exports, "TypedRelyIOClient", {
533
537
  enumerable: true,
534
- get: function () { return chunkIFKF72VJ_cjs.TypedRelyIOClient; }
538
+ get: function () { return chunkP23G5NXD_cjs.TypedRelyIOClient; }
535
539
  });
536
540
  Object.defineProperty(exports, "UnknownContractError", {
537
541
  enumerable: true,
538
- get: function () { return chunkIFKF72VJ_cjs.UnknownContractError; }
542
+ get: function () { return chunkP23G5NXD_cjs.UnknownContractError; }
539
543
  });
540
544
  Object.defineProperty(exports, "UsageQuotaExceededError", {
541
545
  enumerable: true,
542
- get: function () { return chunkIFKF72VJ_cjs.UsageQuotaExceededError; }
546
+ get: function () { return chunkP23G5NXD_cjs.UsageQuotaExceededError; }
543
547
  });
544
548
  Object.defineProperty(exports, "ValidationError", {
545
549
  enumerable: true,
546
- get: function () { return chunkIFKF72VJ_cjs.ValidationError; }
550
+ get: function () { return chunkP23G5NXD_cjs.ValidationError; }
547
551
  });
548
552
  Object.defineProperty(exports, "createClient", {
549
553
  enumerable: true,
550
- get: function () { return chunkIFKF72VJ_cjs.createClient; }
554
+ get: function () { return chunkP23G5NXD_cjs.createClient; }
551
555
  });
552
556
  Object.defineProperty(exports, "default", {
553
557
  enumerable: true,
554
- get: function () { return chunkIFKF72VJ_cjs.createClient; }
558
+ get: function () { return chunkP23G5NXD_cjs.createClient; }
555
559
  });
556
560
  Object.defineProperty(exports, "isAssetEntry", {
557
561
  enumerable: true,
558
- get: function () { return chunkIFKF72VJ_cjs.isAssetEntry; }
562
+ get: function () { return chunkP23G5NXD_cjs.isAssetEntry; }
559
563
  });
560
564
  Object.defineProperty(exports, "isMissingEntry", {
561
565
  enumerable: true,
562
- get: function () { return chunkIFKF72VJ_cjs.isMissingEntry; }
566
+ get: function () { return chunkP23G5NXD_cjs.isMissingEntry; }
563
567
  });
564
568
  Object.defineProperty(exports, "isPreviewKey", {
565
569
  enumerable: true,
566
- get: function () { return chunkIFKF72VJ_cjs.isPreviewKey; }
570
+ get: function () { return chunkP23G5NXD_cjs.isPreviewKey; }
567
571
  });
568
572
  Object.defineProperty(exports, "isPublishableKey", {
569
573
  enumerable: true,
570
- get: function () { return chunkIFKF72VJ_cjs.isPublishableKey; }
574
+ get: function () { return chunkP23G5NXD_cjs.isPublishableKey; }
571
575
  });
572
576
  Object.defineProperty(exports, "isReplaySafe", {
573
577
  enumerable: true,
574
- get: function () { return chunkIFKF72VJ_cjs.isReplaySafe; }
578
+ get: function () { return chunkP23G5NXD_cjs.isReplaySafe; }
575
579
  });
576
580
  Object.defineProperty(exports, "isResourceNotFound", {
577
581
  enumerable: true,
578
- get: function () { return chunkIFKF72VJ_cjs.isResourceNotFound; }
582
+ get: function () { return chunkP23G5NXD_cjs.isResourceNotFound; }
579
583
  });
580
584
  Object.defineProperty(exports, "matchRoute", {
581
585
  enumerable: true,
582
- get: function () { return chunkIFKF72VJ_cjs.matchRoute; }
586
+ get: function () { return chunkP23G5NXD_cjs.matchRoute; }
583
587
  });
584
588
  Object.defineProperty(exports, "refusedOperationOf", {
585
589
  enumerable: true,
586
- get: function () { return chunkIFKF72VJ_cjs.refusedOperationOf; }
590
+ get: function () { return chunkP23G5NXD_cjs.refusedOperationOf; }
587
591
  });
588
592
  Object.defineProperty(exports, "retryPolicyFor", {
589
593
  enumerable: true,
590
- get: function () { return chunkIFKF72VJ_cjs.retryPolicyFor; }
594
+ get: function () { return chunkP23G5NXD_cjs.retryPolicyFor; }
591
595
  });
592
596
  Object.defineProperty(exports, "validateFile", {
593
597
  enumerable: true,
594
- get: function () { return chunkIFKF72VJ_cjs.validateFile; }
598
+ get: function () { return chunkP23G5NXD_cjs.validateFile; }
595
599
  });
596
600
  Object.defineProperty(exports, "versionCheckOf", {
597
601
  enumerable: true,
598
- get: function () { return chunkIFKF72VJ_cjs.versionCheckOf; }
602
+ get: function () { return chunkP23G5NXD_cjs.versionCheckOf; }
599
603
  });
600
604
  Object.defineProperty(exports, "camelToSnake", {
601
605
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-DwHcL6x5.cjs';
2
- export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-DwHcL6x5.cjs';
3
- export { A as AnySchemaDefinition, f as ApiMethod, e as ApiPath, g as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, y as RecordBatchOperation, z as RecordBatchOperationResult, C as RecordBatchOptions, b as RecordBatchResult, a as RecordBatchTarget, n as RecordCallOptions, c as RecordConditionValue, o as RecordFacetBucket, p as RecordFileBytes, q as RecordFileUploadOptions, s as RecordList, t as RecordListOptions, u as RecordMetadata, v as RecordReadOptions, w as RecordUpdateOptions, l as RecordsClient, d as Register, R as RegisteredSchema, j as RetryPolicy, k as RetryableRequest, h as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, x as refusedOperationOf, r as retryPolicyFor } from './register-BYCs0FpF.cjs';
1
+ import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-D5jyIeQ5.cjs';
2
+ export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-D5jyIeQ5.cjs';
3
+ export { A as AnySchemaDefinition, f as ApiMethod, e as ApiPath, g as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, y as RecordBatchOperation, z as RecordBatchOperationResult, C as RecordBatchOptions, b as RecordBatchResult, a as RecordBatchTarget, n as RecordCallOptions, d as RecordConditionValue, o as RecordFacetBucket, p as RecordFileBytes, q as RecordFileUploadOptions, s as RecordList, t as RecordListOptions, u as RecordMetadata, v as RecordReadOptions, w as RecordUpdateOptions, l as RecordsClient, c as Register, R as RegisteredSchema, j as RetryPolicy, k as RetryableRequest, h as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, x as refusedOperationOf, r as retryPolicyFor } from './register-DeMsaurp.cjs';
4
4
  export { fields } from './schema/index.cjs';
5
- import { cJ as SDKError, aU as EntryMetadata } from './define-content-type-NEQDrvdq.cjs';
6
- export { aP as AnyDeclaredFieldset, cI as ApiResponse, cO as AssetFileBlock, as as AssetReading, ba as AssetServedBlocks, b7 as AssetTypeDefinition, cP as AssetUrls, cQ as BaseContent, B as BaseFieldConfig, cS as BaseSettingsGroup, cR as BaseSingleton, dl as BaseValidationError, aq as BlockOf, de as CacheConfig, dh as CacheStrategy, au as CheckInclude, at as CheckedIncludes, av as ContentReading, aT as ContentTypeDefinition, d7 as ContentTypeSchema, d2 as ContentVersion, d3 as ContentVersionRow, cY as CreateInput, cZ as CreatedContent, d6 as CustomQuery, cX as DateOnlyOperator, df as DebugConfig, aO as DeclaredFieldset, dj as Environment, m as FieldDefinition, aR as FieldMember, d9 as FieldOptions, n as FieldRule, am as FieldSchemaContext, o as FieldType, p as FieldUIConfig, an as FieldValue, F as FieldValues, aN as Fieldset, bd as FileKindConfig, br as FileScanConfig, b as FileUpload, bq as FileUploadConfig, bj as ImageExifConfig, bb as ImageKindConfig, bi as ImageSourceConfig, bh as ImageUploadConfig, aw as IncludablePaths, b9 as InferAssetEntry, b8 as InferAssetType, aV as InferContentType, cr as InferJsonSchema, a$ as InferSingleton, dn as InvalidPayloadError, cs as JsonFieldValue, ct as JsonSchema, cu as JsonValue, ap as Keyed, b6 as KeyedAssetTypeConfig, aS as KeyedContentTypeConfig, r as KeyedEnumConfig, s as KeyedField, t as KeyedFieldOptions, aQ as KeyedFieldsetConfig, b1 as KeyedSettingsGroupConfig, aY as KeyedSingletonConfig, cM as LiveWebSocket, cN as LiveWebSocketConstructor, aW as LocalePublicationFields, w as LocalizationConfig, x as Localized, y as LocalizedDetails, di as LogLevel, N as NeverUniqueFieldConfig, dd as PerformanceMetrics, ay as ReadWith, ax as Reading, db as RealtimeEvent, da as RealtimeEventType, cv as RecordFile, cK as RelyIOConfig, cL as RelyIOConfigUpdate, dg as RequestConfig, d1 as RestoredContent, cG as RetryConfig, c_ as RevisedContent, b2 as SettingsGroupDefinition, az as SettingsReading, ar as ShapeValue, d5 as SingletonContent, aZ as SingletonContentTypeDefinition, a_ as SingletonMetadata, aA as SingletonReading, dc as SubscriptionOptions, ao as UnresolvedEntry, aB as UntypedReading, d4 as UpdateInput, dm as ValidationError, d8 as ValidationRule, dk as ValidationViolation, bk as VariantDefinition, bn as VideoCaptionsConfig, bo as VideoDownloadConfig, bc as VideoKindConfig, bm as VideoPosterConfig, bl as VideoUploadConfig, bp as VideoWatermarkConfig, cV as WhereClause, cU as WhereFieldCondition, cW as WhereOperator, cT as WhereScalar, $ as WidgetOptions, d0 as WrittenSettingsGroup, c$ as WrittenSingleton, b5 as defineAssetType, aL as defineContentType, aC as defineLocale, b0 as defineSettingsGroup, aX as defineSingleton, aM as fieldset } from './define-content-type-NEQDrvdq.cjs';
7
- export { v as AggregateBlock, $ as AnyQueryParameters, a0 as DeclaredParameters, u as FetchBlock, J as FilterDefinition, D as IncludeDefinition, Z as InferQueryParams, Y as InferQueryResponse, I as InferRecordType, Q as QueryConfig, s as QueryDefinition, _ as QueryParameterValue, q as RecordFieldsOf, d as RecordUpdateFieldsOf, R as RecordWriteFieldsOf, k as SchemaAssetTypeNames, f as SchemaConfig, a as SchemaContentTypeNames, g as SchemaDefinition, b as SchemaEntry, l as SchemaEntryOf, c as SchemaLocaleCodes, i as SchemaQueryNames, j as SchemaSettingsGroupNames, h as SchemaSingletonNames, w as SearchBlock, G as SelectMapping, B as SortCondition, W as WhereCondition, r as defineQuery, e as defineSchema } from './define-schema-DZhtvLiK.cjs';
5
+ import { d3 as SDKError, aW as EntryMetadata } from './define-content-type-BZ6X8GvL.cjs';
6
+ export { aQ as AnyDeclaredFieldset, d2 as ApiResponse, d8 as AssetFileBlock, at as AssetReading, bc as AssetServedBlocks, b9 as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, ar as BlockOf, dB as CacheConfig, dE as CacheStrategy, av as CheckInclude, au as CheckedIncludes, aw as ContentReading, aV as ContentTypeDefinition, du as ContentTypeSchema, dp as ContentVersion, dq as ContentVersionRow, di as CreateInput, dj as CreatedContent, dt as CustomQuery, dh as DateOnlyOperator, dC as DebugConfig, aP as DeclaredFieldset, dG as Environment, i as FieldDefinition, aS as FieldMember, dw as FieldOptions, j as FieldRule, al as FieldSchemaContext, k as FieldType, l as FieldUIConfig, am as FieldValue, an as FieldValues, aO as Fieldset, bf as FileKindConfig, bt as FileScanConfig, cx as FileUpload, bs as FileUploadConfig, bl as ImageExifConfig, bd as ImageKindConfig, bk as ImageSourceConfig, bj as ImageUploadConfig, ax as IncludablePaths, bb as InferAssetEntry, ba as InferAssetType, aX as InferContentType, ct as InferJsonSchema, b1 as InferSingleton, dK as InvalidPayloadError, cu as JsonFieldValue, cv as JsonSchema, cw as JsonValue, aq as Keyed, b8 as KeyedAssetTypeConfig, aT as KeyedContentTypeConfig, K as KeyedEnumConfig, n as KeyedField, o as KeyedFieldOptions, aR as KeyedFieldsetConfig, b3 as KeyedSettingsGroupConfig, a_ as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, aY as LocalePublicationFields, t as LocalizationConfig, u as Localized, v as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, az as ReadWith, ay as Reading, dy as RealtimeEvent, dx as RealtimeEventType, cy as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, d0 as RetryConfig, dk as RevisedContent, b4 as SettingsGroupDefinition, aA as SettingsReading, as as ShapeValue, ds as SingletonContent, a$ as SingletonContentTypeDefinition, b0 as SingletonMetadata, aB as SingletonReading, dz as SubscriptionOptions, ap as UnresolvedEntry, aC as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bm as VariantDefinition, bp as VideoCaptionsConfig, bq as VideoDownloadConfig, be as VideoKindConfig, bo as VideoPosterConfig, bn as VideoUploadConfig, br as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, Z as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, b7 as defineAssetType, aM as defineContentType, aD as defineLocale, b2 as defineSettingsGroup, aZ as defineSingleton, aN as fieldset } from './define-content-type-BZ6X8GvL.cjs';
7
+ export { y as AggregateBlock, a6 as AnyQueryParameters, a7 as DeclaredParameters, x as FetchBlock, U as FilterDefinition, L as IncludeDefinition, a4 as InferQueryParams, a3 as InferQueryResponse, I as InferRecordType, Q as QueryConfig, u as QueryDefinition, a5 as QueryParameterValue, o as RecordFieldsOf, q as RecordUpdateFieldsOf, r as RecordWriteFieldsOf, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, j as SchemaEntry, k as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, z as SearchBlock, T as SelectMapping, G as SortCondition, B as WhereCondition, t as defineQuery, d as defineSchema } from './define-schema-BPlZl4a2.cjs';
8
8
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.cjs';
9
- export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-Dnmt_UOo.cjs';
9
+ export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-DN0l8RHw.cjs';
10
10
  export { e as RichTextBlock, f as RichTextCellAlignment, g as RichTextCodeBlock, h as RichTextCodeGroup, i as RichTextCodeLines, j as RichTextDivider, d as RichTextEntryLinkMark, k as RichTextHeading, l as RichTextInline, m as RichTextLineBreak, n as RichTextLinkMark, o as RichTextList, p as RichTextListItem, q as RichTextListStyle, r as RichTextMark, s as RichTextMarkType, t as RichTextNode, u as RichTextParagraph, v as RichTextQuote, w as RichTextSpan, x as RichTextStructure, y as RichTextTable, z as RichTextTableCell, B as RichTextTableRow, b as RichTextValue } from './rich-text.d-BWc-5gX1.cjs';
11
11
  import './dev-handshake/index.cjs';
12
12
 
@@ -25,6 +25,40 @@ declare const FUNCTION_RUN_FAILURES: readonly ['threw', 'exceeded-cpu', 'exceede
25
25
  /** Why a run ended without an answer: one of {@link FUNCTION_RUN_FAILURES}. */
26
26
  type FunctionRunFailure$1 = (typeof FUNCTION_RUN_FAILURES)[number];
27
27
 
28
+ /**
29
+ * The End-user token a request carries, read **one** way wherever it is read (spec 4, REL-3880).
30
+ *
31
+ * A customer's app sends the token its identity provider minted for the person signed in to it in
32
+ * `X-RelyIO-End-User`, beside its key. `apps/services/api` verifies it against the Environment's
33
+ * identity source and answers as that End user; `apps/edge/api` never looks up or stores a response
34
+ * to a request that carries it (`edge-delivery-spec.md`'s withhold list), since that response is one
35
+ * person's. Both read the header here, so "carries a token" is one rule for the cache and the origin:
36
+ * a request the edge passed through as an End user's is one origin answers as an End user's.
37
+ *
38
+ * - The header is matched case-insensitively and its value trimmed. A value that is blank once
39
+ * trimmed is **no token**: the request is the key's alone, as without the header.
40
+ * - It never carries the key, and the key's headers never carry it: `X-API-Key` keeps meaning the
41
+ * key, and `Authorization: Bearer` keeps meaning the key when it is alone (`./credential.ts`).
42
+ *
43
+ * Its refusal is `END_USER_TOKEN_INVALID` (401) with `details.reason`, one of
44
+ * {@link END_USER_TOKEN_REFUSAL_REASONS}.
45
+ */
46
+
47
+ /**
48
+ * Why an End user's token was refused, as `END_USER_TOKEN_INVALID`'s `details.reason`:
49
+ *
50
+ * - `missing` — the call needs one and carried none: a publishable key's call of a Function declaring
51
+ * `endUsers: 'required'` (spec 4, REL-3892).
52
+ * - `no-identity-source` — the Environment the request is answered in has no identity source: its
53
+ * Project uses no identity Extension, or has no Connection of it for the Environment (nor, for
54
+ * Preview, for Production).
55
+ * - the rest — the verifier's (`@relyio/auth/end-users`): the token is malformed, signed with an
56
+ * algorithm RelyIO does not take, from another issuer, by a key the issuer does not publish, with a
57
+ * signature that does not verify, for another audience, expired, not yet valid, or naming no subject.
58
+ */
59
+ declare const END_USER_TOKEN_REFUSAL_REASONS: readonly ['missing', 'no-identity-source', 'malformed', 'unsupported-algorithm', 'wrong-issuer', 'unknown-key', 'bad-signature', 'wrong-audience', 'expired', 'not-yet-valid', 'missing-subject'];
60
+ type EndUserTokenRefusalReason = (typeof END_USER_TOKEN_REFUSAL_REASONS)[number];
61
+
28
62
  /**
29
63
  * What a key may do is in its prefix. A RelyIO project key is
30
64
  * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
@@ -351,10 +385,10 @@ declare class ConnectionError extends SDKError {
351
385
  * `details.reason: 'expired'`.
352
386
  *
353
387
  * `AuthenticationError` was deleted by REL-1471 for the same reason. The
354
- * vocabulary's two 401 codes are `MISSING_API_KEY` and `INVALID_API_KEY`, and
355
- * the mapper throws `MissingApiKeyError` and `InvalidApiKeyError` for them —
356
- * so a generic 401 class had no refusal left to stand for, and nothing
357
- * constructed it.
388
+ * vocabulary's 401 codes are `MISSING_API_KEY`, `INVALID_API_KEY` and — since
389
+ * spec 4 — `END_USER_TOKEN_INVALID`, and the mapper throws `MissingApiKeyError`,
390
+ * `InvalidApiKeyError` and `EndUserTokenInvalidError` for them — so a generic
391
+ * 401 class has no refusal left to stand for, and nothing constructs it.
358
392
  */
359
393
  declare class AuthorizationError extends SDKError {
360
394
  readonly code = "AUTHORIZATION_ERROR";
@@ -368,6 +402,19 @@ declare class InvalidApiKeyError extends SDKError {
368
402
  constructor(message?: string, cause?: Error, context?: Record<string, unknown>);
369
403
  getUserMessage(): string;
370
404
  }
405
+ /**
406
+ * The End user's token the request carried was refused (spec 4, REL-3863): `reason` says why —
407
+ * `expired`, `wrong-audience`, `missing` for a call that needs one, and the rest of
408
+ * `END_USER_TOKEN_REFUSAL_REASONS`. Caught by class, an app signs the shopper in again rather than
409
+ * reading its key as bad.
410
+ */
411
+ declare class EndUserTokenInvalidError extends SDKError {
412
+ readonly reason: EndUserTokenRefusalReason | undefined;
413
+ readonly code = "END_USER_TOKEN_INVALID";
414
+ readonly retryable = false;
415
+ constructor(message: string, reason: EndUserTokenRefusalReason | undefined, context?: Record<string, unknown>);
416
+ getUserMessage(): string;
417
+ }
371
418
 
372
419
  /**
373
420
  * One class per contract code that had none.
@@ -402,8 +449,11 @@ declare class ReadOnlyKeyError extends SDKError {
402
449
  getUserMessage(): string;
403
450
  }
404
451
  /**
405
- * `PUBLISHABLE_KEY_REFUSED` — a publishable key on a Record route (REL-3771). A browser reads none
406
- * of an app's data: send the call from your server or a Function with a secret key.
452
+ * `PUBLISHABLE_KEY_REFUSED` — a publishable key writing a Record with no End user's token, uploading
453
+ * a Record's File, or calling a Function that does not declare `endUsers` (REL-3771). A browser
454
+ * writes a Record only for a signed-in End user, as the type's write Policy allows (spec 4,
455
+ * REL-3884), and calls a Function only when it opts in (REL-3892): send their token, declare
456
+ * `endUsers` on the Function, or call from your server with a secret key.
407
457
  */
408
458
  declare class PublishableKeyRefusedError extends SDKError {
409
459
  readonly code = "PUBLISHABLE_KEY_REFUSED";
@@ -1062,4 +1112,4 @@ declare function snapToLadder(value: number): number;
1062
1112
 
1063
1113
  declare const VERSION = "__VERSION__";
1064
1114
 
1065
- export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, FunctionContainersBusyError, FunctionRunFailedError, type FunctionRunFailure, FunctionRunTimedOutError, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, PublishableKeyRefusedError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };
1115
+ export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EndUserTokenInvalidError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, FunctionContainersBusyError, FunctionRunFailedError, type FunctionRunFailure, FunctionRunTimedOutError, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, PublishableKeyRefusedError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };