@relyio/sdk 0.11.0 → 0.12.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 (37) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/chunk-3DRDHXLY.js +680 -0
  3. package/dist/{chunk-PO7CUR5U.cjs → chunk-3MSFWXQL.cjs} +37 -65
  4. package/dist/{chunk-4HTIU5YE.cjs → chunk-DXCVO6M5.cjs} +46 -59
  5. package/dist/chunk-FI5VIF4M.cjs +686 -0
  6. package/dist/{chunk-7GLDVHIH.js → chunk-FRJEUAAF.js} +46 -59
  7. package/dist/{chunk-2TIJLV2X.js → chunk-POEEDYFM.js} +38 -65
  8. package/dist/client/index.cjs +3 -3
  9. package/dist/client/index.d.cts +5 -4
  10. package/dist/client/index.d.ts +5 -4
  11. package/dist/client/index.js +1 -1
  12. package/dist/{define-schema-CVi8nwc7.d.ts → define-schema-DgctHlI2.d.cts} +35 -220
  13. package/dist/{define-schema-DqpipEHv.d.cts → define-schema-mrEZbY1h.d.ts} +35 -220
  14. package/dist/{define-content-type-ENAod5Ve.d.cts → include-paths-CL4gHv6I.d.cts} +1673 -734
  15. package/dist/{define-content-type-ENAod5Ve.d.ts → include-paths-CrJNTsMl.d.ts} +1673 -734
  16. package/dist/{index-C73cK2Tt.d.ts → index-B9RfZVF1.d.ts} +3 -2
  17. package/dist/{index-MLAFUuco.d.cts → index-BrvEg6-A.d.cts} +107 -46
  18. package/dist/{index-BKEAYvvz.d.ts → index-Pw0onkJe.d.ts} +107 -46
  19. package/dist/{index-BM42r4yg.d.cts → index-b-AkfTUv.d.cts} +3 -2
  20. package/dist/index.cjs +102 -85
  21. package/dist/index.d.cts +14 -10
  22. package/dist/index.d.ts +14 -10
  23. package/dist/index.js +4 -3
  24. package/dist/rich-text/index.cjs +29 -0
  25. package/dist/rich-text/index.d.cts +148 -0
  26. package/dist/rich-text/index.d.ts +148 -0
  27. package/dist/rich-text/index.js +4 -0
  28. package/dist/rich-text.d-rKmpgdGd.d.cts +200 -0
  29. package/dist/rich-text.d-rKmpgdGd.d.ts +200 -0
  30. package/dist/schema/index.cjs +34 -38
  31. package/dist/schema/index.d.cts +84 -37
  32. package/dist/schema/index.d.ts +84 -37
  33. package/dist/schema/index.js +1 -1
  34. package/dist/types/index.d.cts +3 -2
  35. package/dist/types/index.d.ts +3 -2
  36. package/package.json +8 -2
  37. package/dist/.tsbuildinfo +0 -1
package/dist/index.cjs CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkPO7CUR5U_cjs = require('./chunk-PO7CUR5U.cjs');
6
- var chunk4HTIU5YE_cjs = require('./chunk-4HTIU5YE.cjs');
5
+ var chunk3MSFWXQL_cjs = require('./chunk-3MSFWXQL.cjs');
6
+ var chunkDXCVO6M5_cjs = require('./chunk-DXCVO6M5.cjs');
7
7
  require('./chunk-LSRPMNPT.cjs');
8
8
  require('./chunk-PPA2WWOH.cjs');
9
9
  var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
10
+ var chunkFI5VIF4M_cjs = require('./chunk-FI5VIF4M.cjs');
10
11
  var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
11
12
 
12
13
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
@@ -20,9 +21,9 @@ function stopOnUnknownAnswer(_answer) {
20
21
  }
21
22
  chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
22
23
  function classifyFollowFailure(error) {
23
- if (error instanceof chunk4HTIU5YE_cjs.LiveEdgeError) return liveEdgeVerdict(error);
24
- if (!(error instanceof chunk4HTIU5YE_cjs.SDKError) || !error.retryable) return { retry: false };
25
- const afterMs = chunk4HTIU5YE_cjs.serviceInstructedDelayMs(error, Date.now());
24
+ if (error instanceof chunkDXCVO6M5_cjs.LiveEdgeError) return liveEdgeVerdict(error);
25
+ if (!(error instanceof chunkDXCVO6M5_cjs.SDKError) || !error.retryable) return { retry: false };
26
+ const afterMs = chunkDXCVO6M5_cjs.serviceInstructedDelayMs(error, Date.now());
26
27
  return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
27
28
  }
28
29
  chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
@@ -36,7 +37,7 @@ function liveEdgeVerdict(error) {
36
37
  return { retry: true, ...hint };
37
38
  }
38
39
  case "back-off": {
39
- return { retry: true, ...hint, backOffMs: chunk4HTIU5YE_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
40
+ return { retry: true, ...hint, backOffMs: chunkDXCVO6M5_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
40
41
  }
41
42
  default: {
42
43
  return stopOnUnknownAnswer(error.retry);
@@ -49,10 +50,10 @@ async function followChanges(source, options) {
49
50
  const classify = options.classify ?? classifyFollowFailure;
50
51
  const random = options.random ?? Math.random;
51
52
  const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
52
- if (!chunk4HTIU5YE_cjs.isAborted(signal)) options.onState?.(state);
53
+ if (!chunkDXCVO6M5_cjs.isAborted(signal)) options.onState?.(state);
53
54
  }, "report");
54
55
  const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
55
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return;
56
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return;
56
57
  await onResync(cause);
57
58
  report({ kind: "resynced", resync: cause });
58
59
  }, "resync");
@@ -61,12 +62,12 @@ async function followChanges(source, options) {
61
62
  let unanchored = false;
62
63
  let current;
63
64
  for (; ; ) {
64
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
65
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
65
66
  try {
66
67
  if (unanchored) {
67
68
  unanchored = false;
68
69
  await resync({ cause: "no-cursor" });
69
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
70
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
70
71
  }
71
72
  report({ kind: "following" });
72
73
  const open = {};
@@ -83,13 +84,13 @@ async function followChanges(source, options) {
83
84
  }, "reached")
84
85
  });
85
86
  for await (const change of changes) {
86
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
87
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
87
88
  failures = 0;
88
89
  await onChange(change);
89
90
  since = change.cursor;
90
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
91
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
91
92
  }
92
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
93
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
93
94
  const error = new Error(
94
95
  "The change source completed without its signal aborting; a source ends only on abort and throws every other end."
95
96
  );
@@ -97,7 +98,7 @@ async function followChanges(source, options) {
97
98
  return { kind: "stopped", since, error };
98
99
  } catch (error) {
99
100
  current = void 0;
100
- if (chunk4HTIU5YE_cjs.isAborted(signal)) return { kind: "aborted", since };
101
+ if (chunkDXCVO6M5_cjs.isAborted(signal)) return { kind: "aborted", since };
101
102
  const verdict = classify(error);
102
103
  if (!verdict.retry) {
103
104
  report({ kind: "stopped", error });
@@ -106,7 +107,7 @@ async function followChanges(source, options) {
106
107
  failures += 1;
107
108
  const retryInMs = retryDelayMs(failures, verdict, random);
108
109
  report({ kind: "reconnecting", error, retryInMs });
109
- await chunk4HTIU5YE_cjs.sleep(retryInMs, signal);
110
+ await chunkDXCVO6M5_cjs.sleep(retryInMs, signal);
110
111
  if (since === void 0) unanchored = true;
111
112
  }
112
113
  }
@@ -302,271 +303,267 @@ var VERSION = "__VERSION__";
302
303
 
303
304
  Object.defineProperty(exports, "defineAssetType", {
304
305
  enumerable: true,
305
- get: function () { return chunkPO7CUR5U_cjs.defineAssetType; }
306
- });
307
- Object.defineProperty(exports, "defineComponent", {
308
- enumerable: true,
309
- get: function () { return chunkPO7CUR5U_cjs.defineComponent; }
306
+ get: function () { return chunk3MSFWXQL_cjs.defineAssetType; }
310
307
  });
311
308
  Object.defineProperty(exports, "defineContentType", {
312
309
  enumerable: true,
313
- get: function () { return chunkPO7CUR5U_cjs.defineContentType; }
310
+ get: function () { return chunk3MSFWXQL_cjs.defineContentType; }
314
311
  });
315
312
  Object.defineProperty(exports, "defineQuery", {
316
313
  enumerable: true,
317
- get: function () { return chunkPO7CUR5U_cjs.defineQuery; }
314
+ get: function () { return chunk3MSFWXQL_cjs.defineQuery; }
318
315
  });
319
316
  Object.defineProperty(exports, "defineSchema", {
320
317
  enumerable: true,
321
- get: function () { return chunkPO7CUR5U_cjs.defineSchema; }
318
+ get: function () { return chunk3MSFWXQL_cjs.defineSchema; }
322
319
  });
323
320
  Object.defineProperty(exports, "defineSettingsGroup", {
324
321
  enumerable: true,
325
- get: function () { return chunkPO7CUR5U_cjs.defineSettingsGroup; }
322
+ get: function () { return chunk3MSFWXQL_cjs.defineSettingsGroup; }
326
323
  });
327
324
  Object.defineProperty(exports, "defineSingleton", {
328
325
  enumerable: true,
329
- get: function () { return chunkPO7CUR5U_cjs.defineSingleton; }
326
+ get: function () { return chunk3MSFWXQL_cjs.defineSingleton; }
330
327
  });
331
328
  Object.defineProperty(exports, "defineSingletonContentType", {
332
329
  enumerable: true,
333
- get: function () { return chunkPO7CUR5U_cjs.defineSingletonContentType; }
330
+ get: function () { return chunk3MSFWXQL_cjs.defineSingletonContentType; }
334
331
  });
335
332
  Object.defineProperty(exports, "fields", {
336
333
  enumerable: true,
337
- get: function () { return chunkPO7CUR5U_cjs.fields; }
334
+ get: function () { return chunk3MSFWXQL_cjs.fields; }
338
335
  });
339
336
  Object.defineProperty(exports, "fieldset", {
340
337
  enumerable: true,
341
- get: function () { return chunkPO7CUR5U_cjs.fieldset; }
338
+ get: function () { return chunk3MSFWXQL_cjs.fieldset; }
342
339
  });
343
340
  Object.defineProperty(exports, "AdhocQueryBuilder", {
344
341
  enumerable: true,
345
- get: function () { return chunk4HTIU5YE_cjs.AdhocQueryBuilder; }
342
+ get: function () { return chunkDXCVO6M5_cjs.AdhocQueryBuilder; }
346
343
  });
347
344
  Object.defineProperty(exports, "AdhocQueryClient", {
348
345
  enumerable: true,
349
- get: function () { return chunk4HTIU5YE_cjs.AdhocQueryClient; }
346
+ get: function () { return chunkDXCVO6M5_cjs.AdhocQueryClient; }
350
347
  });
351
348
  Object.defineProperty(exports, "AssetClient", {
352
349
  enumerable: true,
353
- get: function () { return chunk4HTIU5YE_cjs.AssetClient; }
350
+ get: function () { return chunkDXCVO6M5_cjs.AssetClient; }
354
351
  });
355
352
  Object.defineProperty(exports, "AssetFileBuilder", {
356
353
  enumerable: true,
357
- get: function () { return chunk4HTIU5YE_cjs.AssetFileBuilder; }
354
+ get: function () { return chunkDXCVO6M5_cjs.AssetFileBuilder; }
358
355
  });
359
356
  Object.defineProperty(exports, "AssetUploadBuilder", {
360
357
  enumerable: true,
361
- get: function () { return chunk4HTIU5YE_cjs.AssetUploadBuilder; }
358
+ get: function () { return chunkDXCVO6M5_cjs.AssetUploadBuilder; }
362
359
  });
363
360
  Object.defineProperty(exports, "AuthorizationError", {
364
361
  enumerable: true,
365
- get: function () { return chunk4HTIU5YE_cjs.AuthorizationError; }
362
+ get: function () { return chunkDXCVO6M5_cjs.AuthorizationError; }
366
363
  });
367
364
  Object.defineProperty(exports, "AutocompleteBuilder", {
368
365
  enumerable: true,
369
- get: function () { return chunk4HTIU5YE_cjs.AutocompleteBuilder; }
366
+ get: function () { return chunkDXCVO6M5_cjs.AutocompleteBuilder; }
370
367
  });
371
368
  Object.defineProperty(exports, "BaseValidationError", {
372
369
  enumerable: true,
373
- get: function () { return chunk4HTIU5YE_cjs.BaseValidationError; }
370
+ get: function () { return chunkDXCVO6M5_cjs.BaseValidationError; }
374
371
  });
375
372
  Object.defineProperty(exports, "BatchBuilder", {
376
373
  enumerable: true,
377
- get: function () { return chunk4HTIU5YE_cjs.BatchBuilder; }
374
+ get: function () { return chunkDXCVO6M5_cjs.BatchBuilder; }
378
375
  });
379
376
  Object.defineProperty(exports, "BatchClient", {
380
377
  enumerable: true,
381
- get: function () { return chunk4HTIU5YE_cjs.BatchClient; }
378
+ get: function () { return chunkDXCVO6M5_cjs.BatchClient; }
382
379
  });
383
380
  Object.defineProperty(exports, "ChangesExpiredError", {
384
381
  enumerable: true,
385
- get: function () { return chunk4HTIU5YE_cjs.ChangesExpiredError; }
382
+ get: function () { return chunkDXCVO6M5_cjs.ChangesExpiredError; }
386
383
  });
387
384
  Object.defineProperty(exports, "ConnectionError", {
388
385
  enumerable: true,
389
- get: function () { return chunk4HTIU5YE_cjs.ConnectionError; }
386
+ get: function () { return chunkDXCVO6M5_cjs.ConnectionError; }
390
387
  });
391
388
  Object.defineProperty(exports, "ContentByIdBuilder", {
392
389
  enumerable: true,
393
- get: function () { return chunk4HTIU5YE_cjs.ContentByIdBuilder; }
390
+ get: function () { return chunkDXCVO6M5_cjs.ContentByIdBuilder; }
394
391
  });
395
392
  Object.defineProperty(exports, "ContentClient", {
396
393
  enumerable: true,
397
- get: function () { return chunk4HTIU5YE_cjs.ContentClient; }
394
+ get: function () { return chunkDXCVO6M5_cjs.ContentClient; }
398
395
  });
399
396
  Object.defineProperty(exports, "ContentQueryBuilder", {
400
397
  enumerable: true,
401
- get: function () { return chunk4HTIU5YE_cjs.ContentQueryBuilder; }
398
+ get: function () { return chunkDXCVO6M5_cjs.ContentQueryBuilder; }
402
399
  });
403
400
  Object.defineProperty(exports, "ErrorMapper", {
404
401
  enumerable: true,
405
- get: function () { return chunk4HTIU5YE_cjs.ErrorMapper; }
402
+ get: function () { return chunkDXCVO6M5_cjs.ErrorMapper; }
406
403
  });
407
404
  Object.defineProperty(exports, "FileUploadError", {
408
405
  enumerable: true,
409
- get: function () { return chunk4HTIU5YE_cjs.FileUploadError; }
406
+ get: function () { return chunkDXCVO6M5_cjs.FileUploadError; }
410
407
  });
411
408
  Object.defineProperty(exports, "FileValidationError", {
412
409
  enumerable: true,
413
- get: function () { return chunk4HTIU5YE_cjs.FileValidationError; }
410
+ get: function () { return chunkDXCVO6M5_cjs.FileValidationError; }
414
411
  });
415
412
  Object.defineProperty(exports, "HttpClient", {
416
413
  enumerable: true,
417
- get: function () { return chunk4HTIU5YE_cjs.HttpClient; }
414
+ get: function () { return chunkDXCVO6M5_cjs.HttpClient; }
418
415
  });
419
416
  Object.defineProperty(exports, "InvalidApiKeyError", {
420
417
  enumerable: true,
421
- get: function () { return chunk4HTIU5YE_cjs.InvalidApiKeyError; }
418
+ get: function () { return chunkDXCVO6M5_cjs.InvalidApiKeyError; }
422
419
  });
423
420
  Object.defineProperty(exports, "InvalidPayloadError", {
424
421
  enumerable: true,
425
- get: function () { return chunk4HTIU5YE_cjs.InvalidPayloadError; }
422
+ get: function () { return chunkDXCVO6M5_cjs.InvalidPayloadError; }
426
423
  });
427
424
  Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
428
425
  enumerable: true,
429
- get: function () { return chunk4HTIU5YE_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
426
+ get: function () { return chunkDXCVO6M5_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
430
427
  });
431
428
  Object.defineProperty(exports, "LIVE_SOCKET_OPEN_TIMEOUT_MS", {
432
429
  enumerable: true,
433
- get: function () { return chunk4HTIU5YE_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
430
+ get: function () { return chunkDXCVO6M5_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
434
431
  });
435
432
  Object.defineProperty(exports, "LiveEdgeError", {
436
433
  enumerable: true,
437
- get: function () { return chunk4HTIU5YE_cjs.LiveEdgeError; }
434
+ get: function () { return chunkDXCVO6M5_cjs.LiveEdgeError; }
438
435
  });
439
436
  Object.defineProperty(exports, "MethodNotAllowedError", {
440
437
  enumerable: true,
441
- get: function () { return chunk4HTIU5YE_cjs.MethodNotAllowedError; }
438
+ get: function () { return chunkDXCVO6M5_cjs.MethodNotAllowedError; }
442
439
  });
443
440
  Object.defineProperty(exports, "MissingApiKeyError", {
444
441
  enumerable: true,
445
- get: function () { return chunk4HTIU5YE_cjs.MissingApiKeyError; }
442
+ get: function () { return chunkDXCVO6M5_cjs.MissingApiKeyError; }
446
443
  });
447
444
  Object.defineProperty(exports, "NetworkError", {
448
445
  enumerable: true,
449
- get: function () { return chunk4HTIU5YE_cjs.NetworkError; }
446
+ get: function () { return chunkDXCVO6M5_cjs.NetworkError; }
450
447
  });
451
448
  Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
452
449
  enumerable: true,
453
- get: function () { return chunk4HTIU5YE_cjs.PUBLISHABLE_KEY_PREFIX; }
450
+ get: function () { return chunkDXCVO6M5_cjs.PUBLISHABLE_KEY_PREFIX; }
454
451
  });
455
452
  Object.defineProperty(exports, "PayloadTooLargeError", {
456
453
  enumerable: true,
457
- get: function () { return chunk4HTIU5YE_cjs.PayloadTooLargeError; }
454
+ get: function () { return chunkDXCVO6M5_cjs.PayloadTooLargeError; }
458
455
  });
459
456
  Object.defineProperty(exports, "PlanFeatureUnavailableError", {
460
457
  enumerable: true,
461
- get: function () { return chunk4HTIU5YE_cjs.PlanFeatureUnavailableError; }
458
+ get: function () { return chunkDXCVO6M5_cjs.PlanFeatureUnavailableError; }
462
459
  });
463
460
  Object.defineProperty(exports, "RateLimitError", {
464
461
  enumerable: true,
465
- get: function () { return chunk4HTIU5YE_cjs.RateLimitError; }
462
+ get: function () { return chunkDXCVO6M5_cjs.RateLimitError; }
466
463
  });
467
464
  Object.defineProperty(exports, "ReadOnlyKeyError", {
468
465
  enumerable: true,
469
- get: function () { return chunk4HTIU5YE_cjs.ReadOnlyKeyError; }
466
+ get: function () { return chunkDXCVO6M5_cjs.ReadOnlyKeyError; }
470
467
  });
471
468
  Object.defineProperty(exports, "ResourceConflictError", {
472
469
  enumerable: true,
473
- get: function () { return chunk4HTIU5YE_cjs.ResourceConflictError; }
470
+ get: function () { return chunkDXCVO6M5_cjs.ResourceConflictError; }
474
471
  });
475
472
  Object.defineProperty(exports, "ResourceExpiredError", {
476
473
  enumerable: true,
477
- get: function () { return chunk4HTIU5YE_cjs.ResourceExpiredError; }
474
+ get: function () { return chunkDXCVO6M5_cjs.ResourceExpiredError; }
478
475
  });
479
476
  Object.defineProperty(exports, "ResourceNotFoundError", {
480
477
  enumerable: true,
481
- get: function () { return chunk4HTIU5YE_cjs.ResourceNotFoundError; }
478
+ get: function () { return chunkDXCVO6M5_cjs.ResourceNotFoundError; }
482
479
  });
483
480
  Object.defineProperty(exports, "SDKError", {
484
481
  enumerable: true,
485
- get: function () { return chunk4HTIU5YE_cjs.SDKError; }
482
+ get: function () { return chunkDXCVO6M5_cjs.SDKError; }
486
483
  });
487
484
  Object.defineProperty(exports, "SearchBuilder", {
488
485
  enumerable: true,
489
- get: function () { return chunk4HTIU5YE_cjs.SearchBuilder; }
486
+ get: function () { return chunkDXCVO6M5_cjs.SearchBuilder; }
490
487
  });
491
488
  Object.defineProperty(exports, "SearchClient", {
492
489
  enumerable: true,
493
- get: function () { return chunk4HTIU5YE_cjs.SearchClient; }
490
+ get: function () { return chunkDXCVO6M5_cjs.SearchClient; }
494
491
  });
495
492
  Object.defineProperty(exports, "ServerError", {
496
493
  enumerable: true,
497
- get: function () { return chunk4HTIU5YE_cjs.ServerError; }
494
+ get: function () { return chunkDXCVO6M5_cjs.ServerError; }
498
495
  });
499
496
  Object.defineProperty(exports, "ServiceIndeterminateError", {
500
497
  enumerable: true,
501
- get: function () { return chunk4HTIU5YE_cjs.ServiceIndeterminateError; }
498
+ get: function () { return chunkDXCVO6M5_cjs.ServiceIndeterminateError; }
502
499
  });
503
500
  Object.defineProperty(exports, "SettingsClient", {
504
501
  enumerable: true,
505
- get: function () { return chunk4HTIU5YE_cjs.SettingsClient; }
502
+ get: function () { return chunkDXCVO6M5_cjs.SettingsClient; }
506
503
  });
507
504
  Object.defineProperty(exports, "SimilarBuilder", {
508
505
  enumerable: true,
509
- get: function () { return chunk4HTIU5YE_cjs.SimilarBuilder; }
506
+ get: function () { return chunkDXCVO6M5_cjs.SimilarBuilder; }
510
507
  });
511
508
  Object.defineProperty(exports, "SingletonClient", {
512
509
  enumerable: true,
513
- get: function () { return chunk4HTIU5YE_cjs.SingletonClient; }
510
+ get: function () { return chunkDXCVO6M5_cjs.SingletonClient; }
514
511
  });
515
512
  Object.defineProperty(exports, "TimeoutError", {
516
513
  enumerable: true,
517
- get: function () { return chunk4HTIU5YE_cjs.TimeoutError; }
514
+ get: function () { return chunkDXCVO6M5_cjs.TimeoutError; }
518
515
  });
519
516
  Object.defineProperty(exports, "TransactionRolledBackError", {
520
517
  enumerable: true,
521
- get: function () { return chunk4HTIU5YE_cjs.TransactionRolledBackError; }
518
+ get: function () { return chunkDXCVO6M5_cjs.TransactionRolledBackError; }
522
519
  });
523
520
  Object.defineProperty(exports, "TypedRelyIOClient", {
524
521
  enumerable: true,
525
- get: function () { return chunk4HTIU5YE_cjs.TypedRelyIOClient; }
522
+ get: function () { return chunkDXCVO6M5_cjs.TypedRelyIOClient; }
526
523
  });
527
524
  Object.defineProperty(exports, "UnknownContractError", {
528
525
  enumerable: true,
529
- get: function () { return chunk4HTIU5YE_cjs.UnknownContractError; }
526
+ get: function () { return chunkDXCVO6M5_cjs.UnknownContractError; }
530
527
  });
531
528
  Object.defineProperty(exports, "UsageQuotaExceededError", {
532
529
  enumerable: true,
533
- get: function () { return chunk4HTIU5YE_cjs.UsageQuotaExceededError; }
530
+ get: function () { return chunkDXCVO6M5_cjs.UsageQuotaExceededError; }
534
531
  });
535
532
  Object.defineProperty(exports, "ValidationError", {
536
533
  enumerable: true,
537
- get: function () { return chunk4HTIU5YE_cjs.ValidationError; }
534
+ get: function () { return chunkDXCVO6M5_cjs.ValidationError; }
538
535
  });
539
536
  Object.defineProperty(exports, "createClient", {
540
537
  enumerable: true,
541
- get: function () { return chunk4HTIU5YE_cjs.createClient; }
538
+ get: function () { return chunkDXCVO6M5_cjs.createClient; }
542
539
  });
543
540
  Object.defineProperty(exports, "default", {
544
541
  enumerable: true,
545
- get: function () { return chunk4HTIU5YE_cjs.createClient; }
542
+ get: function () { return chunkDXCVO6M5_cjs.createClient; }
546
543
  });
547
544
  Object.defineProperty(exports, "entityTagOf", {
548
545
  enumerable: true,
549
- get: function () { return chunk4HTIU5YE_cjs.entityTagOf; }
546
+ get: function () { return chunkDXCVO6M5_cjs.entityTagOf; }
550
547
  });
551
548
  Object.defineProperty(exports, "isAssetEntry", {
552
549
  enumerable: true,
553
- get: function () { return chunk4HTIU5YE_cjs.isAssetEntry; }
550
+ get: function () { return chunkDXCVO6M5_cjs.isAssetEntry; }
554
551
  });
555
552
  Object.defineProperty(exports, "isPublishableKey", {
556
553
  enumerable: true,
557
- get: function () { return chunk4HTIU5YE_cjs.isPublishableKey; }
554
+ get: function () { return chunkDXCVO6M5_cjs.isPublishableKey; }
558
555
  });
559
556
  Object.defineProperty(exports, "isResourceNotFound", {
560
557
  enumerable: true,
561
- get: function () { return chunk4HTIU5YE_cjs.isResourceNotFound; }
558
+ get: function () { return chunkDXCVO6M5_cjs.isResourceNotFound; }
562
559
  });
563
560
  Object.defineProperty(exports, "matchRoute", {
564
561
  enumerable: true,
565
- get: function () { return chunk4HTIU5YE_cjs.matchRoute; }
562
+ get: function () { return chunkDXCVO6M5_cjs.matchRoute; }
566
563
  });
567
564
  Object.defineProperty(exports, "validateFile", {
568
565
  enumerable: true,
569
- get: function () { return chunk4HTIU5YE_cjs.validateFile; }
566
+ get: function () { return chunkDXCVO6M5_cjs.validateFile; }
570
567
  });
571
568
  Object.defineProperty(exports, "camelToSnake", {
572
569
  enumerable: true,
@@ -640,6 +637,26 @@ Object.defineProperty(exports, "toSafeString", {
640
637
  enumerable: true,
641
638
  get: function () { return chunkTZL374LS_cjs.toSafeString; }
642
639
  });
640
+ Object.defineProperty(exports, "RICH_TEXT_VOID_TAGS", {
641
+ enumerable: true,
642
+ get: function () { return chunkFI5VIF4M_cjs.RICH_TEXT_VOID_TAGS; }
643
+ });
644
+ Object.defineProperty(exports, "renderRichText", {
645
+ enumerable: true,
646
+ get: function () { return chunkFI5VIF4M_cjs.renderRichText; }
647
+ });
648
+ Object.defineProperty(exports, "richTextToHtml", {
649
+ enumerable: true,
650
+ get: function () { return chunkFI5VIF4M_cjs.richTextToHtml; }
651
+ });
652
+ Object.defineProperty(exports, "richTextToMarkdown", {
653
+ enumerable: true,
654
+ get: function () { return chunkFI5VIF4M_cjs.richTextToMarkdown; }
655
+ });
656
+ Object.defineProperty(exports, "safeRichTextHref", {
657
+ enumerable: true,
658
+ get: function () { return chunkFI5VIF4M_cjs.safeRichTextHref; }
659
+ });
643
660
  exports.FOLLOW_BACK_OFF_MAX_MS = FOLLOW_BACK_OFF_MAX_MS;
644
661
  exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
645
662
  exports.FOLLOW_RETRY_MAX_MS = FOLLOW_RETRY_MAX_MS;
package/dist/index.d.cts CHANGED
@@ -1,19 +1,23 @@
1
- import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-MLAFUuco.cjs';
2
- export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-MLAFUuco.cjs';
1
+ import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-BrvEg6-A.cjs';
2
+ export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-BrvEg6-A.cjs';
3
3
  export { fields } from './schema/index.cjs';
4
- import { S as SDKError, B as BaseContent } from './index-BM42r4yg.cjs';
5
- export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-BM42r4yg.cjs';
4
+ import { S as SDKError, B as BaseContent } from './index-b-AkfTUv.cjs';
5
+ export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-b-AkfTUv.cjs';
6
6
  import { VisitorRetry } from './live-visitor.js';
7
7
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.cjs';
8
- import { Q as EntryMetadata } from './define-content-type-ENAod5Ve.cjs';
9
- export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-ENAod5Ve.cjs';
10
- export { a9 as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a8 as FetchBlock, am as FilterDefinition, ai as IncludeDefinition, aw as InferQueryParams, av as InferQueryResponse, a4 as QueryConfig, a5 as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, ag as SortCondition, ab as WhereCondition, r as defineComponent, a3 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-DqpipEHv.cjs';
8
+ import { a5 as EntryMetadata } from './include-paths-CL4gHv6I.cjs';
9
+ export { J as AssetReading, al as AssetTypeConfig, am as AssetTypeDefinition, o as BaseFieldConfig, G as BlockOf, N as CheckInclude, M as CheckedIncludes, P as ContentReading, a3 as ContentTypeConfig, a4 as ContentTypeDefinition, c as FieldDefinition, a2 as FieldMember, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, a1 as Fieldset, aq as FileKindConfig, aE as FileScanConfig, aD as FileUploadConfig, aw as ImageExifConfig, ao as ImageKindConfig, av as ImageSourceConfig, au as ImageUploadConfig, Q as IncludablePaths, an as InferAssetType, a6 as InferContentType, ae as InferSingleton, ad as InferSingletonContentType, K as Keyed, a7 as LocalePublicationFields, L as LocalizationConfig, X as ReadWith, W as Reading, ag as SettingsGroupConfig, ah as SettingsGroupDefinition, Y as SettingsReading, H as ShapeValue, ab as SingletonContentTypeDefinition, ac as SingletonMetadata, Z as SingletonReading, z as UnresolvedEntry, _ as UntypedReading, ax as VariantDefinition, aA as VideoCaptionsConfig, aB as VideoDownloadConfig, ap as VideoKindConfig, az as VideoPosterConfig, ay as VideoUploadConfig, aC as VideoWatermarkConfig, ak as defineAssetType, $ as defineContentType, af as defineSettingsGroup, a9 as defineSingleton, a8 as defineSingletonContentType, a0 as fieldset } from './include-paths-CL4gHv6I.cjs';
10
+ export { RICH_TEXT_VOID_TAGS, RichTextAttributes, RichTextNodeContext, RichTextRenderable, RichTextReplaceableNode, RichTextTag, RichTextTarget, renderRichText, richTextToHtml, richTextToMarkdown, safeRichTextHref } from './rich-text/index.cjs';
11
+ export { _ as AggregateBlock, Z as FetchBlock, aa as FilterDefinition, a7 as IncludeDefinition, ak as InferQueryParams, aj as InferQueryResponse, U as QueryConfig, W as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, $ as SearchBlock, a9 as SelectMapping, a5 as SortCondition, a0 as WhereCondition, Q as defineQuery, d as defineSchema } from './define-schema-DgctHlI2.cjs';
12
+ export { R as RichTextBlock, a as RichTextCellAlignment, b as RichTextCodeBlock, c as RichTextCodeGroup, d as RichTextCodeLines, e as RichTextDivider, f as RichTextHeading, g as RichTextInline, h as RichTextLineBreak, i as RichTextLinkMark, j as RichTextList, k as RichTextListItem, l as RichTextListStyle, m as RichTextMark, n as RichTextMarkType, o as RichTextNode, p as RichTextParagraph, q as RichTextQuote, r as RichTextSpan, s as RichTextStructure, t as RichTextTable, u as RichTextTableCell, v as RichTextTableRow, w as RichTextValue } from './rich-text.d-rKmpgdGd.cjs';
11
13
  import './dev-handshake/index.cjs';
12
14
 
13
15
  /**
14
- * What a key may do is in its prefix. A RelyIO key is `rly_{scope}_v1_{entropy}_{checksum}`, and a
15
- * publishable key — the one project key that may sit in a browser (`sdk-surfaces-spec.md` decision
16
- * 29) — is scope `pub`. Its scope is in its prefix so that no stored flag can disagree with it.
16
+ * What a key may do is in its prefix. A RelyIO project key is
17
+ * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
18
+ * data, which RelyIO's edge routes by and this package never reads. A publishable key — the one
19
+ * project key that may sit in a browser (`sdk-surfaces-spec.md` decision 29) — is scope `pub`. Its
20
+ * scope is in its prefix so that no stored flag can disagree with it.
17
21
  *
18
22
  * The truth is the service's: `isPublishableApiKey` in
19
23
  * `packages/data/metadata-db/src/utils/api-key-generator.ts`, which decides whether a presented key is
package/dist/index.d.ts CHANGED
@@ -1,19 +1,23 @@
1
- import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-BKEAYvvz.js';
2
- export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-BKEAYvvz.js';
1
+ import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-Pw0onkJe.js';
2
+ export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-Pw0onkJe.js';
3
3
  export { fields } from './schema/index.js';
4
- import { S as SDKError, B as BaseContent } from './index-C73cK2Tt.js';
5
- export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-C73cK2Tt.js';
4
+ import { S as SDKError, B as BaseContent } from './index-B9RfZVF1.js';
5
+ export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-B9RfZVF1.js';
6
6
  import { VisitorRetry } from './live-visitor.js';
7
7
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.js';
8
- import { Q as EntryMetadata } from './define-content-type-ENAod5Ve.js';
9
- export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-ENAod5Ve.js';
10
- export { a9 as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a8 as FetchBlock, am as FilterDefinition, ai as IncludeDefinition, aw as InferQueryParams, av as InferQueryResponse, a4 as QueryConfig, a5 as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, ag as SortCondition, ab as WhereCondition, r as defineComponent, a3 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-CVi8nwc7.js';
8
+ import { a5 as EntryMetadata } from './include-paths-CrJNTsMl.js';
9
+ export { J as AssetReading, al as AssetTypeConfig, am as AssetTypeDefinition, o as BaseFieldConfig, G as BlockOf, N as CheckInclude, M as CheckedIncludes, P as ContentReading, a3 as ContentTypeConfig, a4 as ContentTypeDefinition, c as FieldDefinition, a2 as FieldMember, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, a1 as Fieldset, aq as FileKindConfig, aE as FileScanConfig, aD as FileUploadConfig, aw as ImageExifConfig, ao as ImageKindConfig, av as ImageSourceConfig, au as ImageUploadConfig, Q as IncludablePaths, an as InferAssetType, a6 as InferContentType, ae as InferSingleton, ad as InferSingletonContentType, K as Keyed, a7 as LocalePublicationFields, L as LocalizationConfig, X as ReadWith, W as Reading, ag as SettingsGroupConfig, ah as SettingsGroupDefinition, Y as SettingsReading, H as ShapeValue, ab as SingletonContentTypeDefinition, ac as SingletonMetadata, Z as SingletonReading, z as UnresolvedEntry, _ as UntypedReading, ax as VariantDefinition, aA as VideoCaptionsConfig, aB as VideoDownloadConfig, ap as VideoKindConfig, az as VideoPosterConfig, ay as VideoUploadConfig, aC as VideoWatermarkConfig, ak as defineAssetType, $ as defineContentType, af as defineSettingsGroup, a9 as defineSingleton, a8 as defineSingletonContentType, a0 as fieldset } from './include-paths-CrJNTsMl.js';
10
+ export { RICH_TEXT_VOID_TAGS, RichTextAttributes, RichTextNodeContext, RichTextRenderable, RichTextReplaceableNode, RichTextTag, RichTextTarget, renderRichText, richTextToHtml, richTextToMarkdown, safeRichTextHref } from './rich-text/index.js';
11
+ export { _ as AggregateBlock, Z as FetchBlock, aa as FilterDefinition, a7 as IncludeDefinition, ak as InferQueryParams, aj as InferQueryResponse, U as QueryConfig, W as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, $ as SearchBlock, a9 as SelectMapping, a5 as SortCondition, a0 as WhereCondition, Q as defineQuery, d as defineSchema } from './define-schema-mrEZbY1h.js';
12
+ export { R as RichTextBlock, a as RichTextCellAlignment, b as RichTextCodeBlock, c as RichTextCodeGroup, d as RichTextCodeLines, e as RichTextDivider, f as RichTextHeading, g as RichTextInline, h as RichTextLineBreak, i as RichTextLinkMark, j as RichTextList, k as RichTextListItem, l as RichTextListStyle, m as RichTextMark, n as RichTextMarkType, o as RichTextNode, p as RichTextParagraph, q as RichTextQuote, r as RichTextSpan, s as RichTextStructure, t as RichTextTable, u as RichTextTableCell, v as RichTextTableRow, w as RichTextValue } from './rich-text.d-rKmpgdGd.js';
11
13
  import './dev-handshake/index.js';
12
14
 
13
15
  /**
14
- * What a key may do is in its prefix. A RelyIO key is `rly_{scope}_v1_{entropy}_{checksum}`, and a
15
- * publishable key — the one project key that may sit in a browser (`sdk-surfaces-spec.md` decision
16
- * 29) — is scope `pub`. Its scope is in its prefix so that no stored flag can disagree with it.
16
+ * What a key may do is in its prefix. A RelyIO project key is
17
+ * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
18
+ * data, which RelyIO's edge routes by and this package never reads. A publishable key — the one
19
+ * project key that may sit in a browser (`sdk-surfaces-spec.md` decision 29) — is scope `pub`. Its
20
+ * scope is in its prefix so that no stored flag can disagree with it.
17
21
  *
18
22
  * The truth is the service's: `isPublishableApiKey` in
19
23
  * `packages/data/metadata-db/src/utils/api-key-generator.ts`, which decides whether a presented key is
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
- export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-2TIJLV2X.js';
2
- import { LiveEdgeError, SDKError, serviceInstructedDelayMs, VISITOR_ADMISSION_RETRY_AFTER_SECONDS, isAborted, sleep } from './chunk-7GLDVHIH.js';
3
- export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LIVE_SOCKET_OPEN_TIMEOUT_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isPublishableKey, isResourceNotFound, matchRoute, validateFile } from './chunk-7GLDVHIH.js';
1
+ export { defineAssetType, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-POEEDYFM.js';
2
+ import { LiveEdgeError, SDKError, serviceInstructedDelayMs, VISITOR_ADMISSION_RETRY_AFTER_SECONDS, isAborted, sleep } from './chunk-FRJEUAAF.js';
3
+ export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LIVE_SOCKET_OPEN_TIMEOUT_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isPublishableKey, isResourceNotFound, matchRoute, validateFile } from './chunk-FRJEUAAF.js';
4
4
  import './chunk-BBUB7C2Z.js';
5
5
  import './chunk-IY5LSKXU.js';
6
6
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-H6IBQSMM.js';
7
+ export { RICH_TEXT_VOID_TAGS, renderRichText, richTextToHtml, richTextToMarkdown, safeRichTextHref } from './chunk-3DRDHXLY.js';
7
8
  import { __name } from './chunk-XQ4QHWZE.js';
8
9
 
9
10
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var chunkFI5VIF4M_cjs = require('../chunk-FI5VIF4M.cjs');
4
+ require('../chunk-MWMSFIWN.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "RICH_TEXT_VOID_TAGS", {
9
+ enumerable: true,
10
+ get: function () { return chunkFI5VIF4M_cjs.RICH_TEXT_VOID_TAGS; }
11
+ });
12
+ Object.defineProperty(exports, "renderRichText", {
13
+ enumerable: true,
14
+ get: function () { return chunkFI5VIF4M_cjs.renderRichText; }
15
+ });
16
+ Object.defineProperty(exports, "richTextToHtml", {
17
+ enumerable: true,
18
+ get: function () { return chunkFI5VIF4M_cjs.richTextToHtml; }
19
+ });
20
+ Object.defineProperty(exports, "richTextToMarkdown", {
21
+ enumerable: true,
22
+ get: function () { return chunkFI5VIF4M_cjs.richTextToMarkdown; }
23
+ });
24
+ Object.defineProperty(exports, "safeRichTextHref", {
25
+ enumerable: true,
26
+ get: function () { return chunkFI5VIF4M_cjs.safeRichTextHref; }
27
+ });
28
+ //# sourceMappingURL=index.cjs.map
29
+ //# sourceMappingURL=index.cjs.map