@relyio/sdk 0.18.0 → 0.20.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 (58) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/automations/index.cjs +18 -17
  3. package/dist/automations/index.d.cts +2 -1307
  4. package/dist/automations/index.d.ts +2 -1307
  5. package/dist/automations/index.js +3 -2
  6. package/dist/{chunk-ZAMAR3X2.cjs → chunk-5F3YYPLZ.cjs} +11249 -10771
  7. package/dist/{chunk-ZO6QDYJG.cjs → chunk-5WGMIQBH.cjs} +2 -2
  8. package/dist/{chunk-LSI26ZN2.cjs → chunk-DBYMG6MQ.cjs} +5 -5
  9. package/dist/{chunk-W2A4OTCI.js → chunk-EQUZNVAR.js} +2 -2
  10. package/dist/{chunk-IFKF72VJ.cjs → chunk-K66MBRI4.cjs} +147 -71
  11. package/dist/{chunk-ZHTJ7GXH.js → chunk-L42C4G2S.js} +106 -31
  12. package/dist/{chunk-EDE2H37D.js → chunk-OUR7OUUZ.js} +174 -12
  13. package/dist/{chunk-W7JFHSFM.js → chunk-PZCDJFMA.js} +11249 -10772
  14. package/dist/{chunk-SHSK7UUY.cjs → chunk-UO2QRYKV.cjs} +177 -11
  15. package/dist/{chunk-R6E4HE7R.js → chunk-W2GRVXDG.js} +3 -3
  16. package/dist/client/index.cjs +5 -5
  17. package/dist/client/index.d.cts +4 -4
  18. package/dist/client/index.d.ts +4 -4
  19. package/dist/client/index.js +3 -3
  20. package/dist/{define-content-type-NEQDrvdq.d.cts → define-content-type-C2HnCYYX.d.cts} +1324 -156
  21. package/dist/{define-content-type-fb-WCD5e.d.ts → define-content-type-CVLUusfx.d.ts} +1324 -156
  22. package/dist/dev-handshake/index.cjs +8 -8
  23. package/dist/dev-handshake/index.d.cts +1 -1
  24. package/dist/dev-handshake/index.d.ts +1 -1
  25. package/dist/dev-handshake/index.js +1 -1
  26. package/dist/extensions/index.cjs +26 -6
  27. package/dist/extensions/index.d.cts +3 -791
  28. package/dist/extensions/index.d.ts +3 -791
  29. package/dist/extensions/index.js +24 -4
  30. package/dist/functions/index.cjs +7 -4
  31. package/dist/functions/index.d.cts +2 -4
  32. package/dist/functions/index.d.ts +2 -4
  33. package/dist/functions/index.js +5 -2
  34. package/dist/{index-DwHcL6x5.d.cts → index-BLVNMYUU.d.cts} +142 -79
  35. package/dist/{index-C4LqrNd1.d.ts → index-BY1xU93u.d.ts} +1 -1
  36. package/dist/{index-Dnmt_UOo.d.cts → index-Cmup6HJY.d.cts} +1 -1
  37. package/dist/index-D1fiaQlK.d.ts +2284 -0
  38. package/dist/index-DImzg3ew.d.cts +2284 -0
  39. package/dist/{index-M3luH06A.d.ts → index-IjSyBr8f.d.ts} +142 -79
  40. package/dist/index.cjs +89 -85
  41. package/dist/index.d.cts +64 -15
  42. package/dist/index.d.ts +64 -15
  43. package/dist/index.js +5 -5
  44. package/dist/preview/index.cjs +3 -3
  45. package/dist/preview/index.js +1 -1
  46. package/dist/rich-text/index.d.cts +2 -2
  47. package/dist/rich-text/index.d.ts +2 -2
  48. package/dist/schema/index.cjs +41 -40
  49. package/dist/schema/index.d.cts +948 -118
  50. package/dist/schema/index.d.ts +948 -118
  51. package/dist/schema/index.js +2 -1
  52. package/dist/types/index.d.cts +1 -1
  53. package/dist/types/index.d.ts +1 -1
  54. package/package.json +5 -5
  55. package/dist/define-schema-DZhtvLiK.d.cts +0 -846
  56. package/dist/define-schema-Dlwh6l_J.d.ts +0 -846
  57. package/dist/register-B53i97A9.d.ts +0 -677
  58. package/dist/register-BYCs0FpF.d.cts +0 -677
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 chunkK66MBRI4_cjs = require('./chunk-K66MBRI4.cjs');
9
9
  var chunkM7MWNV3Q_cjs = require('./chunk-M7MWNV3Q.cjs');
10
- require('./chunk-ZO6QDYJG.cjs');
10
+ require('./chunk-5WGMIQBH.cjs');
11
11
  require('./chunk-7I3SC7SV.cjs');
12
- var chunkSHSK7UUY_cjs = require('./chunk-SHSK7UUY.cjs');
12
+ var chunkUO2QRYKV_cjs = require('./chunk-UO2QRYKV.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 chunkK66MBRI4_cjs.LiveEdgeError) return liveEdgeVerdict(error);
27
+ if (!(error instanceof chunkK66MBRI4_cjs.SDKError) || !error.retryable) return { retry: false };
28
+ const afterMs = chunkK66MBRI4_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: chunkUO2QRYKV_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 (!chunkK66MBRI4_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 (chunkK66MBRI4_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 (chunkK66MBRI4_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 (chunkK66MBRI4_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 (chunkK66MBRI4_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 (chunkK66MBRI4_cjs.isAborted(signal)) return { kind: "aborted", since };
94
94
  }
95
- if (chunkIFKF72VJ_cjs.isAborted(signal)) return { kind: "aborted", since };
95
+ if (chunkK66MBRI4_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 (chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_cjs.DefaultRetryPolicy; }
399
+ });
400
+ Object.defineProperty(exports, "EndUserTokenInvalidError", {
401
+ enumerable: true,
402
+ get: function () { return chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_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 chunkK66MBRI4_cjs.versionCheckOf; }
599
603
  });
600
604
  Object.defineProperty(exports, "camelToSnake", {
601
605
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,12 +1,11 @@
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';
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';
1
+ import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-BLVNMYUU.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-BLVNMYUU.cjs';
3
+ export { A as AnySchemaDefinition, c as ApiMethod, b as ApiPath, d as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, v as RecordBatchOperation, w as RecordBatchOperationResult, x as RecordBatchOptions, y as RecordBatchResult, z as RecordBatchTarget, j as RecordCallOptions, C as RecordConditionValue, k as RecordFacetBucket, l as RecordFileBytes, n as RecordFileUploadOptions, o as RecordList, p as RecordListOptions, q as RecordMetadata, s as RecordReadOptions, t as RecordUpdateOptions, h as RecordsClient, R as Register, a as RegisteredSchema, f as RetryPolicy, g as RetryableRequest, e as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, u as refusedOperationOf, r as retryPolicyFor } from './index-DImzg3ew.cjs';
4
+ export { AggregateBlock, AnyQueryParameters, DeclaredParameters, FetchBlock, FilterDefinition, IncludeDefinition, InferQueryParams, InferQueryResponse, InferRecordType, QueryConfig, QueryDefinition, QueryParameterValue, RecordFieldsOf, RecordUpdateFieldsOf, RecordWriteFieldsOf, SchemaAssetTypeNames, SchemaConfig, SchemaContentTypeNames, SchemaDefinition, SchemaEntry, SchemaEntryOf, SchemaLocaleCodes, SchemaQueryNames, SchemaSettingsGroupNames, SchemaSingletonNames, SearchBlock, SelectMapping, SortCondition, WhereCondition, defineQuery, defineSchema, fields } from './schema/index.cjs';
5
+ import { d3 as SDKError, bi as EntryMetadata } from './define-content-type-C2HnCYYX.cjs';
6
+ export { be as AnyDeclaredFieldset, cZ as ApiResponse, d8 as AssetFileBlock, aU as AssetReading, bw as AssetServedBlocks, aA as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, aS as BlockOf, dB as CacheConfig, dE as CacheStrategy, aW as CheckInclude, aV as CheckedIncludes, aX as ContentReading, at 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, bd as DeclaredFieldset, dG as Environment, j as FieldDefinition, am as FieldMember, dw as FieldOptions, k as FieldRule, aO as FieldSchemaContext, l as FieldType, m as FieldUIConfig, aP as FieldValue, an as FieldValues, bc as Fieldset, bz as FileKindConfig, bN as FileScanConfig, ar as FileUpload, bM as FileUploadConfig, bF as ImageExifConfig, bx as ImageKindConfig, bE as ImageSourceConfig, bD as ImageUploadConfig, aY as IncludablePaths, bv as InferAssetEntry, bu as InferAssetType, aB as InferContentType, cG as InferJsonSchema, bn as InferSingleton, dK as InvalidPayloadError, cH as JsonFieldValue, cI as JsonSchema, cJ as JsonValue, aR as Keyed, bt as KeyedAssetTypeConfig, bg as KeyedContentTypeConfig, K as KeyedEnumConfig, o as KeyedField, p as KeyedFieldOptions, bf as KeyedFieldsetConfig, bp as KeyedSettingsGroupConfig, bl as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, bj as LocalePublicationFields, u as LocalizationConfig, v as Localized, w as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, a_ as ReadWith, aZ as Reading, dy as RealtimeEvent, dx as RealtimeEventType, aq as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, cX as RetryConfig, dk as RevisedContent, av as SettingsGroupDefinition, a$ as SettingsReading, aT as ShapeValue, ds as SingletonContent, au as SingletonContentTypeDefinition, bm as SingletonMetadata, b0 as SingletonReading, dz as SubscriptionOptions, aQ as UnresolvedEntry, b1 as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bG as VariantDefinition, bJ as VideoCaptionsConfig, bK as VideoDownloadConfig, by as VideoKindConfig, bI as VideoPosterConfig, bH as VideoUploadConfig, bL as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, _ as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, bs as defineAssetType, ba as defineContentType, b2 as defineLocale, bo as defineSettingsGroup, bk as defineSingleton, bb as fieldset } from './define-content-type-C2HnCYYX.cjs';
8
7
  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';
8
+ 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-Cmup6HJY.cjs';
10
9
  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
10
  import './dev-handshake/index.cjs';
12
11
 
@@ -25,6 +24,40 @@ declare const FUNCTION_RUN_FAILURES: readonly ['threw', 'exceeded-cpu', 'exceede
25
24
  /** Why a run ended without an answer: one of {@link FUNCTION_RUN_FAILURES}. */
26
25
  type FunctionRunFailure$1 = (typeof FUNCTION_RUN_FAILURES)[number];
27
26
 
27
+ /**
28
+ * The End-user token a request carries, read **one** way wherever it is read (spec 4, REL-3880).
29
+ *
30
+ * A customer's app sends the token its identity provider minted for the person signed in to it in
31
+ * `X-RelyIO-End-User`, beside its key. `apps/services/api` verifies it against the Environment's
32
+ * identity source and answers as that End user; `apps/edge/api` never looks up or stores a response
33
+ * to a request that carries it (`edge-delivery-spec.md`'s withhold list), since that response is one
34
+ * person's. Both read the header here, so "carries a token" is one rule for the cache and the origin:
35
+ * a request the edge passed through as an End user's is one origin answers as an End user's.
36
+ *
37
+ * - The header is matched case-insensitively and its value trimmed. A value that is blank once
38
+ * trimmed is **no token**: the request is the key's alone, as without the header.
39
+ * - It never carries the key, and the key's headers never carry it: `X-API-Key` keeps meaning the
40
+ * key, and `Authorization: Bearer` keeps meaning the key when it is alone (`./credential.ts`).
41
+ *
42
+ * Its refusal is `END_USER_TOKEN_INVALID` (401) with `details.reason`, one of
43
+ * {@link END_USER_TOKEN_REFUSAL_REASONS}.
44
+ */
45
+
46
+ /**
47
+ * Why an End user's token was refused, as `END_USER_TOKEN_INVALID`'s `details.reason`:
48
+ *
49
+ * - `missing` — the call needs one and carried none: a publishable key's call of a Function declaring
50
+ * `endUsers: 'required'` (spec 4, REL-3892).
51
+ * - `no-identity-source` — the Environment the request is answered in has no identity source: its
52
+ * Project uses no identity Extension, or has no Connection of it for the Environment (nor, for
53
+ * Preview, for Production).
54
+ * - the rest — the verifier's (`@relyio/auth/end-users`): the token is malformed, signed with an
55
+ * algorithm RelyIO does not take, from another issuer, by a key the issuer does not publish, with a
56
+ * signature that does not verify, for another audience, expired, not yet valid, or naming no subject.
57
+ */
58
+ 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'];
59
+ type EndUserTokenRefusalReason = (typeof END_USER_TOKEN_REFUSAL_REASONS)[number];
60
+
28
61
  /**
29
62
  * What a key may do is in its prefix. A RelyIO project key is
30
63
  * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
@@ -351,10 +384,10 @@ declare class ConnectionError extends SDKError {
351
384
  * `details.reason: 'expired'`.
352
385
  *
353
386
  * `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.
387
+ * vocabulary's 401 codes are `MISSING_API_KEY`, `INVALID_API_KEY` and — since
388
+ * spec 4 — `END_USER_TOKEN_INVALID`, and the mapper throws `MissingApiKeyError`,
389
+ * `InvalidApiKeyError` and `EndUserTokenInvalidError` for them — so a generic
390
+ * 401 class has no refusal left to stand for, and nothing constructs it.
358
391
  */
359
392
  declare class AuthorizationError extends SDKError {
360
393
  readonly code = "AUTHORIZATION_ERROR";
@@ -368,6 +401,19 @@ declare class InvalidApiKeyError extends SDKError {
368
401
  constructor(message?: string, cause?: Error, context?: Record<string, unknown>);
369
402
  getUserMessage(): string;
370
403
  }
404
+ /**
405
+ * The End user's token the request carried was refused (spec 4, REL-3863): `reason` says why —
406
+ * `expired`, `wrong-audience`, `missing` for a call that needs one, and the rest of
407
+ * `END_USER_TOKEN_REFUSAL_REASONS`. Caught by class, an app signs the shopper in again rather than
408
+ * reading its key as bad.
409
+ */
410
+ declare class EndUserTokenInvalidError extends SDKError {
411
+ readonly reason: EndUserTokenRefusalReason | undefined;
412
+ readonly code = "END_USER_TOKEN_INVALID";
413
+ readonly retryable = false;
414
+ constructor(message: string, reason: EndUserTokenRefusalReason | undefined, context?: Record<string, unknown>);
415
+ getUserMessage(): string;
416
+ }
371
417
 
372
418
  /**
373
419
  * One class per contract code that had none.
@@ -402,8 +448,11 @@ declare class ReadOnlyKeyError extends SDKError {
402
448
  getUserMessage(): string;
403
449
  }
404
450
  /**
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.
451
+ * `PUBLISHABLE_KEY_REFUSED` — a publishable key writing a Record with no End user's token, uploading
452
+ * a Record's File, or calling a Function that does not declare `endUsers` (REL-3771). A browser
453
+ * writes a Record only for a signed-in End user, as the type's write Policy allows (spec 4,
454
+ * REL-3884), and calls a Function only when it opts in (REL-3892): send their token, declare
455
+ * `endUsers` on the Function, or call from your server with a secret key.
407
456
  */
408
457
  declare class PublishableKeyRefusedError extends SDKError {
409
458
  readonly code = "PUBLISHABLE_KEY_REFUSED";
@@ -1062,4 +1111,4 @@ declare function snapToLadder(value: number): number;
1062
1111
 
1063
1112
  declare const VERSION = "__VERSION__";
1064
1113
 
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 };
1114
+ 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 };