@relyio/sdk 0.13.0 → 0.15.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 (36) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/dist/{chunk-DEDIJKHY.cjs → chunk-3BHDGUNS.cjs} +1554 -3250
  3. package/dist/{chunk-3NPPMGB6.js → chunk-5UMY6CS4.js} +2 -2
  4. package/dist/{chunk-EW23SZPX.js → chunk-PCFTJLEP.js} +540 -262
  5. package/dist/{chunk-6NGJXLOR.js → chunk-PXA5ONIU.js} +1553 -3240
  6. package/dist/{chunk-Z6GLWSSD.cjs → chunk-RSHMA4KT.cjs} +2 -2
  7. package/dist/{chunk-FOSM4LMM.cjs → chunk-X4KSS7PP.cjs} +539 -262
  8. package/dist/client/index.cjs +3 -3
  9. package/dist/client/index.d.cts +3 -3
  10. package/dist/client/index.d.ts +3 -3
  11. package/dist/client/index.js +1 -1
  12. package/dist/{include-paths-Bs5FhNw2.d.cts → define-content-type-B2gQZkTy.d.cts} +3697 -2585
  13. package/dist/{include-paths-Cb7iPCW2.d.ts → define-content-type-Ds5rCAYl.d.ts} +3697 -2585
  14. package/dist/{define-schema-sWJ8Zn7C.d.cts → define-schema-Cm_5y3ei.d.cts} +238 -356
  15. package/dist/{define-schema-UHViXKiv.d.ts → define-schema-CxpIYFFR.d.ts} +238 -356
  16. package/dist/index-DQ7eTUPQ.d.ts +3090 -0
  17. package/dist/{index--_u1nPHv.d.cts → index-DY64WjZM.d.cts} +2 -2
  18. package/dist/{index-8DozAWsA.d.ts → index-Db3_tmYf.d.ts} +2 -2
  19. package/dist/index-F0UuHpRj.d.cts +3090 -0
  20. package/dist/index.cjs +90 -130
  21. package/dist/index.d.cts +16 -23
  22. package/dist/index.d.ts +16 -23
  23. package/dist/index.js +4 -4
  24. package/dist/rich-text/index.cjs +11 -11
  25. package/dist/rich-text/index.d.cts +2 -2
  26. package/dist/rich-text/index.d.ts +2 -2
  27. package/dist/rich-text/index.js +1 -1
  28. package/dist/schema/index.cjs +33 -37
  29. package/dist/schema/index.d.cts +33 -18
  30. package/dist/schema/index.d.ts +33 -18
  31. package/dist/schema/index.js +1 -1
  32. package/dist/types/index.d.cts +1 -1
  33. package/dist/types/index.d.ts +1 -1
  34. package/package.json +2 -2
  35. package/dist/index-BT0L8xJj.d.cts +0 -3717
  36. package/dist/index-CPjJ25R4.d.ts +0 -3717
package/dist/index.cjs CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkFOSM4LMM_cjs = require('./chunk-FOSM4LMM.cjs');
6
- var chunkDEDIJKHY_cjs = require('./chunk-DEDIJKHY.cjs');
5
+ var chunkX4KSS7PP_cjs = require('./chunk-X4KSS7PP.cjs');
6
+ var chunk3BHDGUNS_cjs = require('./chunk-3BHDGUNS.cjs');
7
7
  require('./chunk-LSRPMNPT.cjs');
8
8
  require('./chunk-PPA2WWOH.cjs');
9
9
  var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
10
- var chunkZ6GLWSSD_cjs = require('./chunk-Z6GLWSSD.cjs');
10
+ var chunkRSHMA4KT_cjs = require('./chunk-RSHMA4KT.cjs');
11
11
  var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
12
12
 
13
13
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
@@ -21,9 +21,9 @@ function stopOnUnknownAnswer(_answer) {
21
21
  }
22
22
  chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
23
23
  function classifyFollowFailure(error) {
24
- if (error instanceof chunkDEDIJKHY_cjs.LiveEdgeError) return liveEdgeVerdict(error);
25
- if (!(error instanceof chunkDEDIJKHY_cjs.SDKError) || !error.retryable) return { retry: false };
26
- const afterMs = chunkDEDIJKHY_cjs.serviceInstructedDelayMs(error, Date.now());
24
+ if (error instanceof chunk3BHDGUNS_cjs.LiveEdgeError) return liveEdgeVerdict(error);
25
+ if (!(error instanceof chunk3BHDGUNS_cjs.SDKError) || !error.retryable) return { retry: false };
26
+ const afterMs = chunk3BHDGUNS_cjs.serviceInstructedDelayMs(error, Date.now());
27
27
  return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
28
28
  }
29
29
  chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
@@ -37,7 +37,7 @@ function liveEdgeVerdict(error) {
37
37
  return { retry: true, ...hint };
38
38
  }
39
39
  case "back-off": {
40
- return { retry: true, ...hint, backOffMs: chunkDEDIJKHY_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
40
+ return { retry: true, ...hint, backOffMs: chunk3BHDGUNS_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
41
41
  }
42
42
  default: {
43
43
  return stopOnUnknownAnswer(error.retry);
@@ -50,10 +50,10 @@ async function followChanges(source, options) {
50
50
  const classify = options.classify ?? classifyFollowFailure;
51
51
  const random = options.random ?? Math.random;
52
52
  const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
53
- if (!chunkDEDIJKHY_cjs.isAborted(signal)) options.onState?.(state);
53
+ if (!chunk3BHDGUNS_cjs.isAborted(signal)) options.onState?.(state);
54
54
  }, "report");
55
55
  const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
56
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return;
56
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return;
57
57
  await onResync(cause);
58
58
  report({ kind: "resynced", resync: cause });
59
59
  }, "resync");
@@ -62,12 +62,12 @@ async function followChanges(source, options) {
62
62
  let unanchored = false;
63
63
  let current;
64
64
  for (; ; ) {
65
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
65
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
66
66
  try {
67
67
  if (unanchored) {
68
68
  unanchored = false;
69
69
  await resync({ cause: "no-cursor" });
70
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
70
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
71
71
  }
72
72
  report({ kind: "following" });
73
73
  const open = {};
@@ -84,13 +84,13 @@ async function followChanges(source, options) {
84
84
  }, "reached")
85
85
  });
86
86
  for await (const change of changes) {
87
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
87
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
88
88
  failures = 0;
89
89
  await onChange(change);
90
90
  since = change.cursor;
91
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
91
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
92
92
  }
93
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
93
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
94
94
  const error = new Error(
95
95
  "The change source completed without its signal aborting; a source ends only on abort and throws every other end."
96
96
  );
@@ -98,7 +98,7 @@ async function followChanges(source, options) {
98
98
  return { kind: "stopped", since, error };
99
99
  } catch (error) {
100
100
  current = void 0;
101
- if (chunkDEDIJKHY_cjs.isAborted(signal)) return { kind: "aborted", since };
101
+ if (chunk3BHDGUNS_cjs.isAborted(signal)) return { kind: "aborted", since };
102
102
  const verdict = classify(error);
103
103
  if (!verdict.retry) {
104
104
  report({ kind: "stopped", error });
@@ -107,7 +107,7 @@ async function followChanges(source, options) {
107
107
  failures += 1;
108
108
  const retryInMs = retryDelayMs(failures, verdict, random);
109
109
  report({ kind: "reconnecting", error, retryInMs });
110
- await chunkDEDIJKHY_cjs.sleep(retryInMs, signal);
110
+ await chunk3BHDGUNS_cjs.sleep(retryInMs, signal);
111
111
  if (since === void 0) unanchored = true;
112
112
  }
113
113
  }
@@ -279,267 +279,227 @@ var VERSION = "__VERSION__";
279
279
 
280
280
  Object.defineProperty(exports, "defineAssetType", {
281
281
  enumerable: true,
282
- get: function () { return chunkFOSM4LMM_cjs.defineAssetType; }
282
+ get: function () { return chunkX4KSS7PP_cjs.defineAssetType; }
283
283
  });
284
284
  Object.defineProperty(exports, "defineContentType", {
285
285
  enumerable: true,
286
- get: function () { return chunkFOSM4LMM_cjs.defineContentType; }
286
+ get: function () { return chunkX4KSS7PP_cjs.defineContentType; }
287
287
  });
288
288
  Object.defineProperty(exports, "defineQuery", {
289
289
  enumerable: true,
290
- get: function () { return chunkFOSM4LMM_cjs.defineQuery; }
290
+ get: function () { return chunkX4KSS7PP_cjs.defineQuery; }
291
291
  });
292
292
  Object.defineProperty(exports, "defineSchema", {
293
293
  enumerable: true,
294
- get: function () { return chunkFOSM4LMM_cjs.defineSchema; }
294
+ get: function () { return chunkX4KSS7PP_cjs.defineSchema; }
295
295
  });
296
296
  Object.defineProperty(exports, "defineSettingsGroup", {
297
297
  enumerable: true,
298
- get: function () { return chunkFOSM4LMM_cjs.defineSettingsGroup; }
298
+ get: function () { return chunkX4KSS7PP_cjs.defineSettingsGroup; }
299
299
  });
300
300
  Object.defineProperty(exports, "defineSingleton", {
301
301
  enumerable: true,
302
- get: function () { return chunkFOSM4LMM_cjs.defineSingleton; }
303
- });
304
- Object.defineProperty(exports, "defineSingletonContentType", {
305
- enumerable: true,
306
- get: function () { return chunkFOSM4LMM_cjs.defineSingletonContentType; }
302
+ get: function () { return chunkX4KSS7PP_cjs.defineSingleton; }
307
303
  });
308
304
  Object.defineProperty(exports, "fields", {
309
305
  enumerable: true,
310
- get: function () { return chunkFOSM4LMM_cjs.fields; }
306
+ get: function () { return chunkX4KSS7PP_cjs.fields; }
311
307
  });
312
308
  Object.defineProperty(exports, "fieldset", {
313
309
  enumerable: true,
314
- get: function () { return chunkFOSM4LMM_cjs.fieldset; }
315
- });
316
- Object.defineProperty(exports, "AdhocQueryBuilder", {
317
- enumerable: true,
318
- get: function () { return chunkDEDIJKHY_cjs.AdhocQueryBuilder; }
319
- });
320
- Object.defineProperty(exports, "AdhocQueryClient", {
321
- enumerable: true,
322
- get: function () { return chunkDEDIJKHY_cjs.AdhocQueryClient; }
310
+ get: function () { return chunkX4KSS7PP_cjs.fieldset; }
323
311
  });
324
312
  Object.defineProperty(exports, "AssetClient", {
325
313
  enumerable: true,
326
- get: function () { return chunkDEDIJKHY_cjs.AssetClient; }
314
+ get: function () { return chunk3BHDGUNS_cjs.AssetClient; }
327
315
  });
328
316
  Object.defineProperty(exports, "AssetFileBuilder", {
329
317
  enumerable: true,
330
- get: function () { return chunkDEDIJKHY_cjs.AssetFileBuilder; }
318
+ get: function () { return chunk3BHDGUNS_cjs.AssetFileBuilder; }
331
319
  });
332
320
  Object.defineProperty(exports, "AssetUploadBuilder", {
333
321
  enumerable: true,
334
- get: function () { return chunkDEDIJKHY_cjs.AssetUploadBuilder; }
322
+ get: function () { return chunk3BHDGUNS_cjs.AssetUploadBuilder; }
335
323
  });
336
324
  Object.defineProperty(exports, "AuthorizationError", {
337
325
  enumerable: true,
338
- get: function () { return chunkDEDIJKHY_cjs.AuthorizationError; }
339
- });
340
- Object.defineProperty(exports, "AutocompleteBuilder", {
341
- enumerable: true,
342
- get: function () { return chunkDEDIJKHY_cjs.AutocompleteBuilder; }
326
+ get: function () { return chunk3BHDGUNS_cjs.AuthorizationError; }
343
327
  });
344
328
  Object.defineProperty(exports, "BaseValidationError", {
345
329
  enumerable: true,
346
- get: function () { return chunkDEDIJKHY_cjs.BaseValidationError; }
347
- });
348
- Object.defineProperty(exports, "BatchBuilder", {
349
- enumerable: true,
350
- get: function () { return chunkDEDIJKHY_cjs.BatchBuilder; }
351
- });
352
- Object.defineProperty(exports, "BatchClient", {
353
- enumerable: true,
354
- get: function () { return chunkDEDIJKHY_cjs.BatchClient; }
330
+ get: function () { return chunk3BHDGUNS_cjs.BaseValidationError; }
355
331
  });
356
332
  Object.defineProperty(exports, "ChangesExpiredError", {
357
333
  enumerable: true,
358
- get: function () { return chunkDEDIJKHY_cjs.ChangesExpiredError; }
334
+ get: function () { return chunk3BHDGUNS_cjs.ChangesExpiredError; }
359
335
  });
360
336
  Object.defineProperty(exports, "ConnectionError", {
361
337
  enumerable: true,
362
- get: function () { return chunkDEDIJKHY_cjs.ConnectionError; }
363
- });
364
- Object.defineProperty(exports, "ContentByIdBuilder", {
365
- enumerable: true,
366
- get: function () { return chunkDEDIJKHY_cjs.ContentByIdBuilder; }
338
+ get: function () { return chunk3BHDGUNS_cjs.ConnectionError; }
367
339
  });
368
340
  Object.defineProperty(exports, "ContentClient", {
369
341
  enumerable: true,
370
- get: function () { return chunkDEDIJKHY_cjs.ContentClient; }
371
- });
372
- Object.defineProperty(exports, "ContentQueryBuilder", {
373
- enumerable: true,
374
- get: function () { return chunkDEDIJKHY_cjs.ContentQueryBuilder; }
342
+ get: function () { return chunk3BHDGUNS_cjs.ContentClient; }
375
343
  });
376
344
  Object.defineProperty(exports, "ErrorMapper", {
377
345
  enumerable: true,
378
- get: function () { return chunkDEDIJKHY_cjs.ErrorMapper; }
346
+ get: function () { return chunk3BHDGUNS_cjs.ErrorMapper; }
379
347
  });
380
348
  Object.defineProperty(exports, "FileUploadError", {
381
349
  enumerable: true,
382
- get: function () { return chunkDEDIJKHY_cjs.FileUploadError; }
350
+ get: function () { return chunk3BHDGUNS_cjs.FileUploadError; }
383
351
  });
384
352
  Object.defineProperty(exports, "FileValidationError", {
385
353
  enumerable: true,
386
- get: function () { return chunkDEDIJKHY_cjs.FileValidationError; }
354
+ get: function () { return chunk3BHDGUNS_cjs.FileValidationError; }
387
355
  });
388
356
  Object.defineProperty(exports, "HttpClient", {
389
357
  enumerable: true,
390
- get: function () { return chunkDEDIJKHY_cjs.HttpClient; }
358
+ get: function () { return chunk3BHDGUNS_cjs.HttpClient; }
391
359
  });
392
360
  Object.defineProperty(exports, "InvalidApiKeyError", {
393
361
  enumerable: true,
394
- get: function () { return chunkDEDIJKHY_cjs.InvalidApiKeyError; }
362
+ get: function () { return chunk3BHDGUNS_cjs.InvalidApiKeyError; }
395
363
  });
396
364
  Object.defineProperty(exports, "InvalidPayloadError", {
397
365
  enumerable: true,
398
- get: function () { return chunkDEDIJKHY_cjs.InvalidPayloadError; }
366
+ get: function () { return chunk3BHDGUNS_cjs.InvalidPayloadError; }
399
367
  });
400
368
  Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
401
369
  enumerable: true,
402
- get: function () { return chunkDEDIJKHY_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
370
+ get: function () { return chunk3BHDGUNS_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
403
371
  });
404
372
  Object.defineProperty(exports, "LIVE_SOCKET_OPEN_TIMEOUT_MS", {
405
373
  enumerable: true,
406
- get: function () { return chunkDEDIJKHY_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
374
+ get: function () { return chunk3BHDGUNS_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
407
375
  });
408
376
  Object.defineProperty(exports, "LiveEdgeError", {
409
377
  enumerable: true,
410
- get: function () { return chunkDEDIJKHY_cjs.LiveEdgeError; }
378
+ get: function () { return chunk3BHDGUNS_cjs.LiveEdgeError; }
411
379
  });
412
380
  Object.defineProperty(exports, "MethodNotAllowedError", {
413
381
  enumerable: true,
414
- get: function () { return chunkDEDIJKHY_cjs.MethodNotAllowedError; }
382
+ get: function () { return chunk3BHDGUNS_cjs.MethodNotAllowedError; }
415
383
  });
416
384
  Object.defineProperty(exports, "MissingApiKeyError", {
417
385
  enumerable: true,
418
- get: function () { return chunkDEDIJKHY_cjs.MissingApiKeyError; }
386
+ get: function () { return chunk3BHDGUNS_cjs.MissingApiKeyError; }
419
387
  });
420
388
  Object.defineProperty(exports, "NetworkError", {
421
389
  enumerable: true,
422
- get: function () { return chunkDEDIJKHY_cjs.NetworkError; }
390
+ get: function () { return chunk3BHDGUNS_cjs.NetworkError; }
423
391
  });
424
392
  Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
425
393
  enumerable: true,
426
- get: function () { return chunkDEDIJKHY_cjs.PUBLISHABLE_KEY_PREFIX; }
394
+ get: function () { return chunk3BHDGUNS_cjs.PUBLISHABLE_KEY_PREFIX; }
427
395
  });
428
396
  Object.defineProperty(exports, "PayloadTooLargeError", {
429
397
  enumerable: true,
430
- get: function () { return chunkDEDIJKHY_cjs.PayloadTooLargeError; }
398
+ get: function () { return chunk3BHDGUNS_cjs.PayloadTooLargeError; }
431
399
  });
432
400
  Object.defineProperty(exports, "PlanFeatureUnavailableError", {
433
401
  enumerable: true,
434
- get: function () { return chunkDEDIJKHY_cjs.PlanFeatureUnavailableError; }
402
+ get: function () { return chunk3BHDGUNS_cjs.PlanFeatureUnavailableError; }
435
403
  });
436
404
  Object.defineProperty(exports, "RateLimitError", {
437
405
  enumerable: true,
438
- get: function () { return chunkDEDIJKHY_cjs.RateLimitError; }
406
+ get: function () { return chunk3BHDGUNS_cjs.RateLimitError; }
439
407
  });
440
408
  Object.defineProperty(exports, "ReadOnlyKeyError", {
441
409
  enumerable: true,
442
- get: function () { return chunkDEDIJKHY_cjs.ReadOnlyKeyError; }
410
+ get: function () { return chunk3BHDGUNS_cjs.ReadOnlyKeyError; }
443
411
  });
444
412
  Object.defineProperty(exports, "ResourceConflictError", {
445
413
  enumerable: true,
446
- get: function () { return chunkDEDIJKHY_cjs.ResourceConflictError; }
414
+ get: function () { return chunk3BHDGUNS_cjs.ResourceConflictError; }
447
415
  });
448
416
  Object.defineProperty(exports, "ResourceExpiredError", {
449
417
  enumerable: true,
450
- get: function () { return chunkDEDIJKHY_cjs.ResourceExpiredError; }
418
+ get: function () { return chunk3BHDGUNS_cjs.ResourceExpiredError; }
451
419
  });
452
420
  Object.defineProperty(exports, "ResourceNotFoundError", {
453
421
  enumerable: true,
454
- get: function () { return chunkDEDIJKHY_cjs.ResourceNotFoundError; }
422
+ get: function () { return chunk3BHDGUNS_cjs.ResourceNotFoundError; }
455
423
  });
456
424
  Object.defineProperty(exports, "SDKError", {
457
425
  enumerable: true,
458
- get: function () { return chunkDEDIJKHY_cjs.SDKError; }
459
- });
460
- Object.defineProperty(exports, "SearchBuilder", {
461
- enumerable: true,
462
- get: function () { return chunkDEDIJKHY_cjs.SearchBuilder; }
463
- });
464
- Object.defineProperty(exports, "SearchClient", {
465
- enumerable: true,
466
- get: function () { return chunkDEDIJKHY_cjs.SearchClient; }
426
+ get: function () { return chunk3BHDGUNS_cjs.SDKError; }
467
427
  });
468
428
  Object.defineProperty(exports, "ServerError", {
469
429
  enumerable: true,
470
- get: function () { return chunkDEDIJKHY_cjs.ServerError; }
430
+ get: function () { return chunk3BHDGUNS_cjs.ServerError; }
471
431
  });
472
432
  Object.defineProperty(exports, "ServiceIndeterminateError", {
473
433
  enumerable: true,
474
- get: function () { return chunkDEDIJKHY_cjs.ServiceIndeterminateError; }
434
+ get: function () { return chunk3BHDGUNS_cjs.ServiceIndeterminateError; }
475
435
  });
476
436
  Object.defineProperty(exports, "SettingsClient", {
477
437
  enumerable: true,
478
- get: function () { return chunkDEDIJKHY_cjs.SettingsClient; }
479
- });
480
- Object.defineProperty(exports, "SimilarBuilder", {
481
- enumerable: true,
482
- get: function () { return chunkDEDIJKHY_cjs.SimilarBuilder; }
438
+ get: function () { return chunk3BHDGUNS_cjs.SettingsClient; }
483
439
  });
484
440
  Object.defineProperty(exports, "SingletonClient", {
485
441
  enumerable: true,
486
- get: function () { return chunkDEDIJKHY_cjs.SingletonClient; }
442
+ get: function () { return chunk3BHDGUNS_cjs.SingletonClient; }
487
443
  });
488
444
  Object.defineProperty(exports, "TimeoutError", {
489
445
  enumerable: true,
490
- get: function () { return chunkDEDIJKHY_cjs.TimeoutError; }
446
+ get: function () { return chunk3BHDGUNS_cjs.TimeoutError; }
491
447
  });
492
448
  Object.defineProperty(exports, "TransactionRolledBackError", {
493
449
  enumerable: true,
494
- get: function () { return chunkDEDIJKHY_cjs.TransactionRolledBackError; }
450
+ get: function () { return chunk3BHDGUNS_cjs.TransactionRolledBackError; }
495
451
  });
496
452
  Object.defineProperty(exports, "TypedRelyIOClient", {
497
453
  enumerable: true,
498
- get: function () { return chunkDEDIJKHY_cjs.TypedRelyIOClient; }
454
+ get: function () { return chunk3BHDGUNS_cjs.TypedRelyIOClient; }
499
455
  });
500
456
  Object.defineProperty(exports, "UnknownContractError", {
501
457
  enumerable: true,
502
- get: function () { return chunkDEDIJKHY_cjs.UnknownContractError; }
458
+ get: function () { return chunk3BHDGUNS_cjs.UnknownContractError; }
503
459
  });
504
460
  Object.defineProperty(exports, "UsageQuotaExceededError", {
505
461
  enumerable: true,
506
- get: function () { return chunkDEDIJKHY_cjs.UsageQuotaExceededError; }
462
+ get: function () { return chunk3BHDGUNS_cjs.UsageQuotaExceededError; }
507
463
  });
508
464
  Object.defineProperty(exports, "ValidationError", {
509
465
  enumerable: true,
510
- get: function () { return chunkDEDIJKHY_cjs.ValidationError; }
466
+ get: function () { return chunk3BHDGUNS_cjs.ValidationError; }
511
467
  });
512
468
  Object.defineProperty(exports, "createClient", {
513
469
  enumerable: true,
514
- get: function () { return chunkDEDIJKHY_cjs.createClient; }
470
+ get: function () { return chunk3BHDGUNS_cjs.createClient; }
515
471
  });
516
472
  Object.defineProperty(exports, "default", {
517
473
  enumerable: true,
518
- get: function () { return chunkDEDIJKHY_cjs.createClient; }
474
+ get: function () { return chunk3BHDGUNS_cjs.createClient; }
519
475
  });
520
- Object.defineProperty(exports, "entityTagOf", {
476
+ Object.defineProperty(exports, "isAssetEntry", {
521
477
  enumerable: true,
522
- get: function () { return chunkDEDIJKHY_cjs.entityTagOf; }
478
+ get: function () { return chunk3BHDGUNS_cjs.isAssetEntry; }
523
479
  });
524
- Object.defineProperty(exports, "isAssetEntry", {
480
+ Object.defineProperty(exports, "isMissingEntry", {
525
481
  enumerable: true,
526
- get: function () { return chunkDEDIJKHY_cjs.isAssetEntry; }
482
+ get: function () { return chunk3BHDGUNS_cjs.isMissingEntry; }
527
483
  });
528
484
  Object.defineProperty(exports, "isPublishableKey", {
529
485
  enumerable: true,
530
- get: function () { return chunkDEDIJKHY_cjs.isPublishableKey; }
486
+ get: function () { return chunk3BHDGUNS_cjs.isPublishableKey; }
531
487
  });
532
488
  Object.defineProperty(exports, "isResourceNotFound", {
533
489
  enumerable: true,
534
- get: function () { return chunkDEDIJKHY_cjs.isResourceNotFound; }
490
+ get: function () { return chunk3BHDGUNS_cjs.isResourceNotFound; }
535
491
  });
536
492
  Object.defineProperty(exports, "matchRoute", {
537
493
  enumerable: true,
538
- get: function () { return chunkDEDIJKHY_cjs.matchRoute; }
494
+ get: function () { return chunk3BHDGUNS_cjs.matchRoute; }
539
495
  });
540
496
  Object.defineProperty(exports, "validateFile", {
541
497
  enumerable: true,
542
- get: function () { return chunkDEDIJKHY_cjs.validateFile; }
498
+ get: function () { return chunk3BHDGUNS_cjs.validateFile; }
499
+ });
500
+ Object.defineProperty(exports, "versionCheckOf", {
501
+ enumerable: true,
502
+ get: function () { return chunk3BHDGUNS_cjs.versionCheckOf; }
543
503
  });
544
504
  Object.defineProperty(exports, "camelToSnake", {
545
505
  enumerable: true,
@@ -615,55 +575,55 @@ Object.defineProperty(exports, "toSafeString", {
615
575
  });
616
576
  Object.defineProperty(exports, "RICH_TEXT_VOID_TAGS", {
617
577
  enumerable: true,
618
- get: function () { return chunkZ6GLWSSD_cjs.RICH_TEXT_VOID_TAGS; }
578
+ get: function () { return chunkRSHMA4KT_cjs.RICH_TEXT_VOID_TAGS; }
619
579
  });
620
580
  Object.defineProperty(exports, "entryHeadingAnchors", {
621
581
  enumerable: true,
622
- get: function () { return chunkZ6GLWSSD_cjs.entryHeadingAnchors; }
582
+ get: function () { return chunkRSHMA4KT_cjs.entryHeadingAnchors; }
623
583
  });
624
584
  Object.defineProperty(exports, "escapeHtml", {
625
585
  enumerable: true,
626
- get: function () { return chunkZ6GLWSSD_cjs.escapeHtml; }
586
+ get: function () { return chunkRSHMA4KT_cjs.escapeHtml; }
627
587
  });
628
588
  Object.defineProperty(exports, "formatKeyPath", {
629
589
  enumerable: true,
630
- get: function () { return chunkZ6GLWSSD_cjs.formatKeyPath; }
590
+ get: function () { return chunkRSHMA4KT_cjs.formatKeyPath; }
631
591
  });
632
592
  Object.defineProperty(exports, "isDeclaredRichTextNode", {
633
593
  enumerable: true,
634
- get: function () { return chunkZ6GLWSSD_cjs.isDeclaredRichTextNode; }
594
+ get: function () { return chunkRSHMA4KT_cjs.isDeclaredRichTextNode; }
635
595
  });
636
596
  Object.defineProperty(exports, "parseKeyPath", {
637
597
  enumerable: true,
638
- get: function () { return chunkZ6GLWSSD_cjs.parseKeyPath; }
598
+ get: function () { return chunkRSHMA4KT_cjs.parseKeyPath; }
639
599
  });
640
600
  Object.defineProperty(exports, "relyioField", {
641
601
  enumerable: true,
642
- get: function () { return chunkZ6GLWSSD_cjs.relyioField; }
602
+ get: function () { return chunkRSHMA4KT_cjs.relyioField; }
643
603
  });
644
604
  Object.defineProperty(exports, "renderRichText", {
645
605
  enumerable: true,
646
- get: function () { return chunkZ6GLWSSD_cjs.renderRichText; }
606
+ get: function () { return chunkRSHMA4KT_cjs.renderRichText; }
647
607
  });
648
608
  Object.defineProperty(exports, "richTextHeadingAnchors", {
649
609
  enumerable: true,
650
- get: function () { return chunkZ6GLWSSD_cjs.richTextHeadingAnchors; }
610
+ get: function () { return chunkRSHMA4KT_cjs.richTextHeadingAnchors; }
651
611
  });
652
612
  Object.defineProperty(exports, "richTextHeadingSlug", {
653
613
  enumerable: true,
654
- get: function () { return chunkZ6GLWSSD_cjs.richTextHeadingSlug; }
614
+ get: function () { return chunkRSHMA4KT_cjs.richTextHeadingSlug; }
655
615
  });
656
616
  Object.defineProperty(exports, "richTextToHtml", {
657
617
  enumerable: true,
658
- get: function () { return chunkZ6GLWSSD_cjs.richTextToHtml; }
618
+ get: function () { return chunkRSHMA4KT_cjs.richTextToHtml; }
659
619
  });
660
620
  Object.defineProperty(exports, "richTextToMarkdown", {
661
621
  enumerable: true,
662
- get: function () { return chunkZ6GLWSSD_cjs.richTextToMarkdown; }
622
+ get: function () { return chunkRSHMA4KT_cjs.richTextToMarkdown; }
663
623
  });
664
624
  Object.defineProperty(exports, "safeRichTextHref", {
665
625
  enumerable: true,
666
- get: function () { return chunkZ6GLWSSD_cjs.safeRichTextHref; }
626
+ get: function () { return chunkRSHMA4KT_cjs.safeRichTextHref; }
667
627
  });
668
628
  exports.FOLLOW_BACK_OFF_MAX_MS = FOLLOW_BACK_OFF_MAX_MS;
669
629
  exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-BT0L8xJj.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, ao as AssetEntryResponse, ag as AssetFileBuilder, am as AssetFileExtracted, ah as AssetUploadBuilder, 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, as as ConfirmInput, at as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, aw as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aG as FileErrorCode, ak as FileStatus, an as FileStatusResult, aI as FileUploadError, aH as FileUploadErrorCode, aK as FileValidationConstraints, aJ 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, ay as MultipartCreateResult, az as MultipartPart, aA as MultipartTarget, ap as PopulatedAssetReference, aq as PresignInput, ar as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, au as ResolveUrlInput, av as ResolveUrlResult, aD as ResourceConflictError, aE as ResourceExpiredError, aC 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, aB as UploadProgress, ax as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aF as isResourceNotFound, aL as validateFile } from './index-BT0L8xJj.cjs';
1
+ import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-F0UuHpRj.cjs';
2
+ export { i as ActiveSandbox, aI as AdhocQuery, aJ as AdhocRecord, aG as AggregateMetric, A as AnySchemaDefinition, m as ApiMethod, l as ApiPath, n as ApiSuccessBody, aR as AssetClient, a_ as AssetEntryResponse, aS as AssetFileBuilder, aY as AssetFileExtracted, b7 as AssetPlacement, aT as AssetUploadBuilder, aV as AssetVisibility, ai as AutocompleteOptions, ad as AutocompleteResponse, ac as AutocompleteSuggestion, ay as BatchBody, az as BatchCreate, aC as BatchDelete, aF as BatchDeleteTarget, at as BatchOperationResult, aB as BatchReplace, av as BatchResponse, aD as BatchSingletonWrite, au as BatchSummary, aE as BatchTarget, aA as BatchUpdate, aw as BatchWrite, ax as BatchWriteOptions, s as ChangesHeadOptions, t as ChangesOptions, U as ChildrenListOptions, Q as ChildrenOptions, e as ClientDefaults, f as ClientSchema, b2 as ConfirmInput, b3 as ConfirmResult, y as ContentClient, b6 as CreateAssetOptions, z as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, J as DocumentFields, V as DocumentReadOptions, K as DocumentVersion, N as DocumentVersionsOptions, O as DocumentWriteOptions, X as EntryList, E as EntryPlacement, B as EntryWriteOptions, F as FeedChange, Y as FieldKey, aX as FileBackend, bj as FileErrorCode, aW as FileStatus, aZ as FileStatusResult, bl as FileUploadError, bk as FileUploadErrorCode, bn as FileValidationConstraints, bm as FileValidationError, Z as FreshOption, _ as GetOptions, H as Health, j as HttpClient, u as LIVE_KEEPALIVE_INTERVAL_MS, w as LIVE_SOCKET_OPEN_TIMEOUT_MS, $ as ListAllOptions, a0 as ListOptions, x as LiveChangesOptions, L as LocaleCodeOf, a1 as LocaleOption, M as MatchRouteOptions, ba as MultipartCreateResult, bb as MultipartPart, bc as MultipartTarget, aK as NamedQueryOptions, aL as NamedQueryParams, a2 as Paging, a$ as PopulatedAssetReference, b0 as PresignInput, b1 as PresignResult, P as Project, aM as QueryAggregate, aN as QueryAnswer, aO as QueryCall, aH as QueryMetadata, aP as QueryName, aQ as QueryTypeName, a3 as ReadAs, q as ReadEntry, a4 as ReadLocale, R as Register, h as RegisteredSchema, b4 as ResolveUrlInput, b5 as ResolveUrlResult, bf as ResourceConflictError, bg as ResourceExpiredError, be as ResourceNotFoundError, r as RetryableWriteOptions, p as RouteMatch, S as SandboxState, ah as SearchEntry, aj as SearchFacet, ak as SearchFieldKey, al as SearchHighlight, aa as SearchHitMetadata, am as SearchOptions, an as SearchPage, ab as SearchResponse, a9 as SearchResultItem, ao as SearchScope, ap as SearchSelected, aq as SearchSortOption, ag as SearchTypeName, ar as SearchWhere, k as SendOptions, I as SettingsClient, as as SimilarOptions, af as SimilarResponse, ae as SimilarResult, G as SingletonClient, a5 as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b8 as UpdateAssetOptions, bd as UploadProgress, a6 as VersionOptions, b9 as WaitUntilReadyOptions, W as Wire, a7 as WrittenReadScope, a8 as WrittenSort, c as createClient, c as default, aU as isAssetEntry, bi as isMissingEntry, bh as isResourceNotFound, o as matchRoute, bo as validateFile, v as versionCheckOf } from './index-F0UuHpRj.cjs';
3
3
  export { fields } from './schema/index.cjs';
4
- import { bx as SDKError, ap as EntryMetadata } from './include-paths-Bs5FhNw2.cjs';
5
- export { bD as ApiMethod, bC as ApiPath, ca as ApiResponse, bE as ApiSuccessBody, bJ as AssetFileBlock, a9 as AssetReading, aJ as AssetServedBlocks, aF as AssetTypeConfig, aG as AssetTypeDefinition, bK as AssetUrls, bL as BaseContent, B as BaseFieldConfig, cg as BaseValidationError, a7 as BlockOf, c6 as CacheConfig, cc as CacheStrategy, ab as CheckInclude, aa as CheckedIncludes, bX as ContentQueryResult, ac as ContentReading, an as ContentTypeConfig, ao as ContentTypeDefinition, b_ as ContentTypeSchema, bT as CreateInput, bZ as CustomQuery, bQ as DateOnlyOperator, c8 as DebugConfig, ce as Environment, g as FieldDefinition, am as FieldMember, c1 as FieldOptions, h as FieldRule, a1 as FieldSchemaContext, i as FieldType, b$ as FieldTypeName, j as FieldUIConfig, a2 as FieldValue, a3 as FieldValues, al as Fieldset, aM as FileKindConfig, a_ as FileScanConfig, aZ as FileUploadConfig, aS as ImageExifConfig, aK as ImageKindConfig, aR as ImageSourceConfig, aQ as ImageUploadConfig, ad as IncludablePaths, aI as InferAssetEntry, aH as InferAssetType, aq as InferContentType, bt as InferJsonSchema, ay as InferSingleton, ax as InferSingletonContentType, ci as InvalidPayloadError, bu as JsonFieldValue, bv as JsonSchema, bw as JsonValue, a6 as Keyed, bA as LiveWebSocket, bB as LiveWebSocketConstructor, ar as LocalePublicationFields, k as LocalizationConfig, cd as LogLevel, bI as MatchRouteOptions, c5 as PerformanceMetrics, bS as QueryOptions, af as ReadWith, ae as Reading, c7 as RealtimeConfig, c3 as RealtimeEvent, c2 as RealtimeEventType, by as RelyIOConfig, bz as RelyIOConfigUpdate, c9 as RequestConfig, bV as RestoredContent, cb as RetryConfig, bU as RevisedContent, bH as RouteMatch, aA as SettingsGroupConfig, aB as SettingsGroupDefinition, ag as SettingsReading, a8 as ShapeValue, bY as SingletonContent, av as SingletonContentTypeDefinition, aw as SingletonMetadata, ah as SingletonReading, bR as SortOptions, c4 as SubscriptionOptions, a5 as UnresolvedEntry, ai as UntypedReading, bW as UpdateInput, ch as ValidationError, c0 as ValidationRule, cf as ValidationViolation, aT as VariantDefinition, aW as VideoCaptionsConfig, aX as VideoDownloadConfig, aL as VideoKindConfig, aV as VideoPosterConfig, aU as VideoUploadConfig, aY as VideoWatermarkConfig, bO as WhereClause, bN as WhereFieldCondition, bP as WhereOperator, bM as WhereScalar, bF as Wire, aE as defineAssetType, aj as defineContentType, az as defineSettingsGroup, at as defineSingleton, as as defineSingletonContentType, ak as fieldset, bG as matchRoute } from './include-paths-Bs5FhNw2.cjs';
4
+ import { cl as SDKError, aM as EntryMetadata } from './define-content-type-B2gQZkTy.cjs';
5
+ export { aH as AnyDeclaredFieldset, cS as ApiResponse, cq as AssetFileBlock, ak as AssetReading, b2 as AssetServedBlocks, a$ as AssetTypeDefinition, cr as AssetUrls, cs as BaseContent, B as BaseFieldConfig, cu as BaseSettingsGroup, ct as BaseSingleton, cY as BaseValidationError, ai as BlockOf, cO as CacheConfig, cU as CacheStrategy, am as CheckInclude, al as CheckedIncludes, an as ContentReading, aL as ContentTypeDefinition, cG as ContentTypeSchema, cA as CreateInput, cF as CustomQuery, cz as DateOnlyOperator, cQ as DebugConfig, aG as DeclaredFieldset, cW as Environment, h as FieldDefinition, aJ as FieldMember, cJ as FieldOptions, i as FieldRule, ac as FieldSchemaContext, j as FieldType, cH as FieldTypeName, k as FieldUIConfig, ad as FieldValue, ae as FieldValues, aF as Fieldset, b5 as FileKindConfig, bj as FileScanConfig, bi as FileUploadConfig, bb as ImageExifConfig, b3 as ImageKindConfig, ba as ImageSourceConfig, b9 as ImageUploadConfig, ao as IncludablePaths, b1 as InferAssetEntry, b0 as InferAssetType, aN as InferContentType, ca as InferJsonSchema, aT as InferSingleton, c_ as InvalidPayloadError, cb as JsonFieldValue, cc as JsonSchema, cd as JsonValue, ah as Keyed, a_ as KeyedAssetTypeConfig, aK as KeyedContentTypeConfig, K as KeyedEnumConfig, l as KeyedField, m as KeyedFieldOptions, aI as KeyedFieldsetConfig, aV as KeyedSettingsGroupConfig, aQ as KeyedSingletonConfig, co as LiveWebSocket, cp as LiveWebSocketConstructor, aO as LocalePublicationFields, r as LocalizationConfig, s as Localized, t as LocalizedDetails, cV as LogLevel, cN as PerformanceMetrics, aq as ReadWith, ap as Reading, cP as RealtimeConfig, cL as RealtimeEvent, cK as RealtimeEventType, cm as RelyIOConfig, cn as RelyIOConfigUpdate, cR as RequestConfig, cC as RestoredContent, cT as RetryConfig, cB as RevisedContent, aW as SettingsGroupDefinition, ar as SettingsReading, aj as ShapeValue, cE as SingletonContent, aR as SingletonContentTypeDefinition, aS as SingletonMetadata, as as SingletonReading, cM as SubscriptionOptions, ag as UnresolvedEntry, at as UntypedReading, cD as UpdateInput, cZ as ValidationError, cI as ValidationRule, cX as ValidationViolation, bc as VariantDefinition, bf as VideoCaptionsConfig, bg as VideoDownloadConfig, b4 as VideoKindConfig, be as VideoPosterConfig, bd as VideoUploadConfig, bh as VideoWatermarkConfig, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, W as WidgetOptions, aZ as defineAssetType, aD as defineContentType, aU as defineSettingsGroup, aP as defineSingleton, aE as fieldset } from './define-content-type-B2gQZkTy.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
- 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--_u1nPHv.cjs';
9
- export { I as AggregateBlock, H as FetchBlock, Z as FilterDefinition, V as IncludeDefinition, a7 as InferQueryParams, a6 as InferQueryResponse, Q as QueryConfig, D 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, J as SearchBlock, Y as SelectMapping, P as SortCondition, W as WhereCondition, C as defineQuery, d as defineSchema } from './define-schema-sWJ8Zn7C.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-DY64WjZM.cjs';
9
+ export { A as AggregateBlock, L as AnyQueryParameters, M as DeclaredParameters, n as FetchBlock, w as FilterDefinition, I as IncludeDefinition, J as InferQueryParams, G as InferQueryResponse, Q as QueryConfig, l as QueryDefinition, K as QueryParameterValue, 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, o as SearchBlock, v as SelectMapping, s as SortCondition, W as WhereCondition, k as defineQuery, d as defineSchema } from './define-schema-Cm_5y3ei.cjs';
10
10
  export { e as RichTextBlock, f as RichTextCellAlignment, g as RichTextCodeBlock, h as RichTextCodeGroup, i as RichTextCodeLines, j as RichTextDivider, d as RichTextEntryLinkMark, k as RichTextHeading, l as RichTextInline, m as RichTextLineBreak, n as RichTextLinkMark, o as RichTextList, p as RichTextListItem, q as RichTextListStyle, r as RichTextMark, s as RichTextMarkType, t as RichTextNode, u as RichTextParagraph, v as RichTextQuote, w as RichTextSpan, x as RichTextStructure, y as RichTextTable, z as RichTextTableCell, B as RichTextTableRow, b as RichTextValue } from './rich-text.d-BWc-5gX1.cjs';
11
11
  import './dev-handshake/index.cjs';
12
12
 
@@ -685,10 +685,7 @@ interface TranslationCompleteness {
685
685
  *
686
686
  * @example
687
687
  * ```typescript
688
- * const product = await client.content('product')
689
- * .findById('prod_123')
690
- * .locale('de-DE')
691
- * .execute()
688
+ * const product = await client.content('product').get('prod_123', { locale: 'de-DE' })
692
689
  *
693
690
  * if (localeHelpers.needsTranslation(product)) {
694
691
  * showTranslationBadge()
@@ -774,10 +771,7 @@ declare function estimateTranslationCompleteness(entry: LocalizedEntry, localize
774
771
  *
775
772
  * @example
776
773
  * ```typescript
777
- * const entry = await client.content('product')
778
- * .findById('prod_123')
779
- * .allLocales()
780
- * .execute()
774
+ * const entry = await client.content('product').get('prod_123', { locale: '*' })
781
775
  *
782
776
  * const spanishTitle = localeHelpers.getLocalizedField(entry, 'title', 'es-ES')
783
777
  * ```
@@ -950,19 +944,18 @@ declare function snapToLadder(value: number): number;
950
944
  * ```typescript
951
945
  * import { createClient, defineSchema, defineContentType, fields } from '@relyio/sdk'
952
946
  *
953
- * const product = defineContentType('product', {
954
- * displayName: 'Product',
955
- * fields: [
956
- * fields.shortText('title', { config: { required: true } }),
957
- * fields.decimal('price', { config: { min: 0, decimalPlaces: 2 } }),
958
- * ]
947
+ * const product = defineContentType({
948
+ * fields: {
949
+ * title: fields.shortText({ required: true }),
950
+ * price: fields.decimal({ min: 0, decimalPlaces: 2 }),
951
+ * },
959
952
  * })
960
953
  *
961
954
  * const schema = defineSchema({ contentTypes: { product } })
962
955
  * const client = createClient({ apiKey: '...', schema })
963
956
  *
964
957
  * // Full autocomplete for content types and fields!
965
- * const products = await client.content('product').query().execute()
958
+ * const { data: products } = await client.content('product').list({ sort: { price: 'asc' } })
966
959
  * ```
967
960
  *
968
961
  * @example Without schema (dynamic usage)
@@ -972,8 +965,8 @@ declare function snapToLadder(value: number): number;
972
965
  * const client = createClient({ apiKey: '...' })
973
966
  *
974
967
  * // Works dynamically without type checking
975
- * const products = await client.content('product').query().execute()
976
- * const results = await client.search('wireless').in('product').execute()
968
+ * const { data: products } = await client.content('product').list()
969
+ * const results = await client.search('wireless', { contentType: 'product' })
977
970
  * ```
978
971
  */
979
972