@relyio/sdk 0.6.0 → 0.8.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 +400 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/{chunk-DY2XT7OF.cjs → chunk-72UK5U7T.cjs} +70 -60
  4. package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
  5. package/dist/{chunk-7ABNXVWL.js → chunk-QFHVF3YF.js} +1617 -404
  6. package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
  7. package/dist/{chunk-GCMQUM6N.cjs → chunk-XIE7WJV3.cjs} +1621 -407
  8. package/dist/{chunk-XJVY2CLY.js → chunk-YEJUMW4X.js} +70 -60
  9. package/dist/client/index.cjs +4 -3
  10. package/dist/client/index.d.cts +5 -4
  11. package/dist/client/index.d.ts +5 -4
  12. package/dist/client/index.js +2 -1
  13. package/dist/{index-d1Kz1e19.d.cts → define-content-type-cEGjIwT5.d.cts} +1859 -733
  14. package/dist/{index-yPbhZc6q.d.ts → define-content-type-cEGjIwT5.d.ts} +1859 -733
  15. package/dist/{define-schema-1kr2HIzN.d.cts → define-schema-BPj2srgh.d.ts} +189 -85
  16. package/dist/{define-schema-ChvAzY8H.d.ts → define-schema-DgbJ5Kwn.d.cts} +189 -85
  17. package/dist/index-B_rIWO_l.d.cts +860 -0
  18. package/dist/index-Cv4tmcrw.d.ts +860 -0
  19. package/dist/{index-Df1VsfJR.d.cts → index-DBoPPlT1.d.cts} +684 -277
  20. package/dist/{index-XqoGUaAY.d.ts → index-yRJ2IqM_.d.ts} +684 -277
  21. package/dist/index.cjs +148 -124
  22. package/dist/index.d.cts +174 -64
  23. package/dist/index.d.ts +174 -64
  24. package/dist/index.js +43 -18
  25. package/dist/schema/index.cjs +35 -35
  26. package/dist/schema/index.d.cts +13 -11
  27. package/dist/schema/index.d.ts +13 -11
  28. package/dist/schema/index.js +1 -1
  29. package/dist/types/index.d.cts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/utils/index.cjs +19 -19
  32. package/dist/utils/index.d.cts +10 -1
  33. package/dist/utils/index.d.ts +10 -1
  34. package/dist/utils/index.js +1 -1
  35. package/package.json +2 -1
  36. package/dist/define-content-type-CDB3kyeA.d.cts +0 -1173
  37. package/dist/define-content-type-CDB3kyeA.d.ts +0 -1173
package/dist/index.cjs CHANGED
@@ -2,37 +2,57 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkDY2XT7OF_cjs = require('./chunk-DY2XT7OF.cjs');
6
- var chunkGCMQUM6N_cjs = require('./chunk-GCMQUM6N.cjs');
5
+ var chunk72UK5U7T_cjs = require('./chunk-72UK5U7T.cjs');
6
+ var chunkXIE7WJV3_cjs = require('./chunk-XIE7WJV3.cjs');
7
7
  require('./chunk-LSRPMNPT.cjs');
8
8
  require('./chunk-PPA2WWOH.cjs');
9
- var chunkHT6NFRM2_cjs = require('./chunk-HT6NFRM2.cjs');
9
+ var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
10
10
  var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
11
11
 
12
12
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
13
13
 
14
- // src/config/key-kind.ts
15
- var PUBLISHABLE_KEY_PREFIX = "rly_pub_";
16
- var isPublishableKey = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((apiKey) => apiKey?.startsWith(PUBLISHABLE_KEY_PREFIX) === true, "isPublishableKey");
17
-
18
14
  // src/changes/follow.ts
19
15
  var FOLLOW_RETRY_BASE_MS = 1e3;
20
16
  var FOLLOW_RETRY_MAX_MS = 3e4;
17
+ var FOLLOW_BACK_OFF_MAX_MS = 15 * 6e4;
18
+ function stopOnUnknownAnswer(_answer) {
19
+ return { retry: false };
20
+ }
21
+ chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
21
22
  function classifyFollowFailure(error) {
22
- if (!(error instanceof chunkGCMQUM6N_cjs.SDKError) || !error.retryable) return { retry: false };
23
- const afterMs = chunkGCMQUM6N_cjs.serviceInstructedDelayMs(error, Date.now());
23
+ if (error instanceof chunkXIE7WJV3_cjs.LiveEdgeError) return liveEdgeVerdict(error);
24
+ if (!(error instanceof chunkXIE7WJV3_cjs.SDKError) || !error.retryable) return { retry: false };
25
+ const afterMs = chunkXIE7WJV3_cjs.serviceInstructedDelayMs(error, Date.now());
24
26
  return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
25
27
  }
26
28
  chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
29
+ function liveEdgeVerdict(error) {
30
+ const hint = error.retryAfterMs === void 0 ? {} : { afterMs: error.retryAfterMs };
31
+ switch (error.retry) {
32
+ case "stop": {
33
+ return { retry: false };
34
+ }
35
+ case "retry": {
36
+ return { retry: true, ...hint };
37
+ }
38
+ case "back-off": {
39
+ return { retry: true, ...hint, backOffMs: chunkXIE7WJV3_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
40
+ }
41
+ default: {
42
+ return stopOnUnknownAnswer(error.retry);
43
+ }
44
+ }
45
+ }
46
+ chunkMWMSFIWN_cjs.__name(liveEdgeVerdict, "liveEdgeVerdict");
27
47
  async function followChanges(source, options) {
28
48
  const { signal, onChange, onResync } = options;
29
49
  const classify = options.classify ?? classifyFollowFailure;
30
50
  const random = options.random ?? Math.random;
31
51
  const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
32
- if (!chunkGCMQUM6N_cjs.isAborted(signal)) options.onState?.(state);
52
+ if (!chunkXIE7WJV3_cjs.isAborted(signal)) options.onState?.(state);
33
53
  }, "report");
34
54
  const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
35
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return;
55
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return;
36
56
  await onResync(cause);
37
57
  report({ kind: "resynced", resync: cause });
38
58
  }, "resync");
@@ -41,12 +61,12 @@ async function followChanges(source, options) {
41
61
  let unanchored = false;
42
62
  let current;
43
63
  for (; ; ) {
44
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
64
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
45
65
  try {
46
66
  if (unanchored) {
47
67
  unanchored = false;
48
68
  await resync({ cause: "no-cursor" });
49
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
69
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
50
70
  }
51
71
  report({ kind: "following" });
52
72
  const open = {};
@@ -57,16 +77,19 @@ async function followChanges(source, options) {
57
77
  onExpired: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((expired) => resync({ cause: "expired", expired }), "onExpired"),
58
78
  opened: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(() => {
59
79
  if (current === open) failures = 0;
60
- }, "opened")
80
+ }, "opened"),
81
+ reached: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((cursor) => {
82
+ if (current === open) since = cursor;
83
+ }, "reached")
61
84
  });
62
85
  for await (const change of changes) {
63
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
86
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
64
87
  failures = 0;
65
88
  await onChange(change);
66
89
  since = change.cursor;
67
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
90
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
68
91
  }
69
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
92
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
70
93
  const error = new Error(
71
94
  "The change source completed without its signal aborting; a source ends only on abort and throws every other end."
72
95
  );
@@ -74,25 +97,27 @@ async function followChanges(source, options) {
74
97
  return { kind: "stopped", since, error };
75
98
  } catch (error) {
76
99
  current = void 0;
77
- if (chunkGCMQUM6N_cjs.isAborted(signal)) return { kind: "aborted", since };
100
+ if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
78
101
  const verdict = classify(error);
79
102
  if (!verdict.retry) {
80
103
  report({ kind: "stopped", error });
81
104
  return { kind: "stopped", since, error };
82
105
  }
83
106
  failures += 1;
84
- const retryInMs = retryDelayMs(failures, verdict.afterMs, random);
107
+ const retryInMs = retryDelayMs(failures, verdict, random);
85
108
  report({ kind: "reconnecting", error, retryInMs });
86
- await chunkGCMQUM6N_cjs.sleep(retryInMs, signal);
109
+ await chunkXIE7WJV3_cjs.sleep(retryInMs, signal);
87
110
  if (since === void 0) unanchored = true;
88
111
  }
89
112
  }
90
113
  }
91
114
  chunkMWMSFIWN_cjs.__name(followChanges, "followChanges");
92
- function retryDelayMs(failures, hintMs, random) {
93
- const ceiling = Math.min(FOLLOW_RETRY_BASE_MS * 2 ** (failures - 1), FOLLOW_RETRY_MAX_MS);
115
+ function retryDelayMs(failures, verdict, random) {
116
+ const { afterMs, backOffMs } = verdict;
117
+ const [base, max] = backOffMs === void 0 ? [FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS] : [2 * backOffMs, Math.max(FOLLOW_BACK_OFF_MAX_MS, 2 * backOffMs)];
118
+ const ceiling = Math.min(base * 2 ** (failures - 1), max);
94
119
  const jittered = ceiling - Math.floor(ceiling / 2 * random());
95
- return hintMs === void 0 ? jittered : Math.max(hintMs, jittered);
120
+ return afterMs === void 0 ? jittered : Math.max(afterMs, jittered);
96
121
  }
97
122
  chunkMWMSFIWN_cjs.__name(retryDelayMs, "retryDelayMs");
98
123
 
@@ -139,20 +164,20 @@ function buildLanguageSwitcher(entry, options) {
139
164
  }
140
165
  chunkMWMSFIWN_cjs.__name(buildLanguageSwitcher, "buildLanguageSwitcher");
141
166
  function getAvailableLocaleCodes(entry) {
142
- return entry._metadata?.availableLocales?.map((l) => l.code) ?? [];
167
+ return entry._metadata?.availableLocales.map((l) => l.code) ?? [];
143
168
  }
144
169
  chunkMWMSFIWN_cjs.__name(getAvailableLocaleCodes, "getAvailableLocaleCodes");
145
170
  var LOCALE_STATUS_PUBLISHED = "published";
146
171
  function getPublishedLocaleCodes(entry) {
147
- return entry._metadata?.availableLocales?.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
172
+ return entry._metadata?.availableLocales.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
148
173
  }
149
174
  chunkMWMSFIWN_cjs.__name(getPublishedLocaleCodes, "getPublishedLocaleCodes");
150
175
  function hasLocale(entry, localeCode) {
151
- return entry._metadata?.availableLocales?.some((l) => l.code === localeCode) ?? false;
176
+ return entry._metadata?.availableLocales.some((l) => l.code === localeCode) ?? false;
152
177
  }
153
178
  chunkMWMSFIWN_cjs.__name(hasLocale, "hasLocale");
154
179
  function isPublishedInLocale(entry, localeCode) {
155
- return entry._metadata?.availableLocales?.some(
180
+ return entry._metadata?.availableLocales.some(
156
181
  (l) => l.code === localeCode && l.status === LOCALE_STATUS_PUBLISHED
157
182
  ) ?? false;
158
183
  }
@@ -277,344 +302,344 @@ var VERSION = "__VERSION__";
277
302
 
278
303
  Object.defineProperty(exports, "defineAssetType", {
279
304
  enumerable: true,
280
- get: function () { return chunkDY2XT7OF_cjs.defineAssetType; }
305
+ get: function () { return chunk72UK5U7T_cjs.defineAssetType; }
281
306
  });
282
307
  Object.defineProperty(exports, "defineComponent", {
283
308
  enumerable: true,
284
- get: function () { return chunkDY2XT7OF_cjs.defineComponent; }
309
+ get: function () { return chunk72UK5U7T_cjs.defineComponent; }
285
310
  });
286
311
  Object.defineProperty(exports, "defineContentType", {
287
312
  enumerable: true,
288
- get: function () { return chunkDY2XT7OF_cjs.defineContentType; }
313
+ get: function () { return chunk72UK5U7T_cjs.defineContentType; }
289
314
  });
290
315
  Object.defineProperty(exports, "defineQuery", {
291
316
  enumerable: true,
292
- get: function () { return chunkDY2XT7OF_cjs.defineQuery; }
317
+ get: function () { return chunk72UK5U7T_cjs.defineQuery; }
293
318
  });
294
319
  Object.defineProperty(exports, "defineSchema", {
295
320
  enumerable: true,
296
- get: function () { return chunkDY2XT7OF_cjs.defineSchema; }
321
+ get: function () { return chunk72UK5U7T_cjs.defineSchema; }
297
322
  });
298
323
  Object.defineProperty(exports, "defineSettingsGroup", {
299
324
  enumerable: true,
300
- get: function () { return chunkDY2XT7OF_cjs.defineSettingsGroup; }
325
+ get: function () { return chunk72UK5U7T_cjs.defineSettingsGroup; }
301
326
  });
302
327
  Object.defineProperty(exports, "defineSingleton", {
303
328
  enumerable: true,
304
- get: function () { return chunkDY2XT7OF_cjs.defineSingleton; }
329
+ get: function () { return chunk72UK5U7T_cjs.defineSingleton; }
305
330
  });
306
331
  Object.defineProperty(exports, "defineSingletonContentType", {
307
332
  enumerable: true,
308
- get: function () { return chunkDY2XT7OF_cjs.defineSingletonContentType; }
333
+ get: function () { return chunk72UK5U7T_cjs.defineSingletonContentType; }
309
334
  });
310
335
  Object.defineProperty(exports, "fields", {
311
336
  enumerable: true,
312
- get: function () { return chunkDY2XT7OF_cjs.fields; }
337
+ get: function () { return chunk72UK5U7T_cjs.fields; }
313
338
  });
314
339
  Object.defineProperty(exports, "fieldset", {
315
340
  enumerable: true,
316
- get: function () { return chunkDY2XT7OF_cjs.fieldset; }
341
+ get: function () { return chunk72UK5U7T_cjs.fieldset; }
317
342
  });
318
343
  Object.defineProperty(exports, "AdhocQueryBuilder", {
319
344
  enumerable: true,
320
- get: function () { return chunkGCMQUM6N_cjs.AdhocQueryBuilder; }
345
+ get: function () { return chunkXIE7WJV3_cjs.AdhocQueryBuilder; }
321
346
  });
322
347
  Object.defineProperty(exports, "AdhocQueryClient", {
323
348
  enumerable: true,
324
- get: function () { return chunkGCMQUM6N_cjs.AdhocQueryClient; }
349
+ get: function () { return chunkXIE7WJV3_cjs.AdhocQueryClient; }
325
350
  });
326
351
  Object.defineProperty(exports, "AssetClient", {
327
352
  enumerable: true,
328
- get: function () { return chunkGCMQUM6N_cjs.AssetClient; }
353
+ get: function () { return chunkXIE7WJV3_cjs.AssetClient; }
329
354
  });
330
355
  Object.defineProperty(exports, "AssetFileBuilder", {
331
356
  enumerable: true,
332
- get: function () { return chunkGCMQUM6N_cjs.AssetFileBuilder; }
357
+ get: function () { return chunkXIE7WJV3_cjs.AssetFileBuilder; }
333
358
  });
334
359
  Object.defineProperty(exports, "AssetUploadBuilder", {
335
360
  enumerable: true,
336
- get: function () { return chunkGCMQUM6N_cjs.AssetUploadBuilder; }
337
- });
338
- Object.defineProperty(exports, "AuthenticationError", {
339
- enumerable: true,
340
- get: function () { return chunkGCMQUM6N_cjs.AuthenticationError; }
361
+ get: function () { return chunkXIE7WJV3_cjs.AssetUploadBuilder; }
341
362
  });
342
363
  Object.defineProperty(exports, "AuthorizationError", {
343
364
  enumerable: true,
344
- get: function () { return chunkGCMQUM6N_cjs.AuthorizationError; }
365
+ get: function () { return chunkXIE7WJV3_cjs.AuthorizationError; }
345
366
  });
346
367
  Object.defineProperty(exports, "AutocompleteBuilder", {
347
368
  enumerable: true,
348
- get: function () { return chunkGCMQUM6N_cjs.AutocompleteBuilder; }
369
+ get: function () { return chunkXIE7WJV3_cjs.AutocompleteBuilder; }
349
370
  });
350
371
  Object.defineProperty(exports, "BaseValidationError", {
351
372
  enumerable: true,
352
- get: function () { return chunkGCMQUM6N_cjs.BaseValidationError; }
373
+ get: function () { return chunkXIE7WJV3_cjs.BaseValidationError; }
353
374
  });
354
375
  Object.defineProperty(exports, "BatchBuilder", {
355
376
  enumerable: true,
356
- get: function () { return chunkGCMQUM6N_cjs.BatchBuilder; }
377
+ get: function () { return chunkXIE7WJV3_cjs.BatchBuilder; }
357
378
  });
358
379
  Object.defineProperty(exports, "BatchClient", {
359
380
  enumerable: true,
360
- get: function () { return chunkGCMQUM6N_cjs.BatchClient; }
381
+ get: function () { return chunkXIE7WJV3_cjs.BatchClient; }
361
382
  });
362
383
  Object.defineProperty(exports, "ChangesExpiredError", {
363
384
  enumerable: true,
364
- get: function () { return chunkGCMQUM6N_cjs.ChangesExpiredError; }
385
+ get: function () { return chunkXIE7WJV3_cjs.ChangesExpiredError; }
365
386
  });
366
387
  Object.defineProperty(exports, "ConnectionError", {
367
388
  enumerable: true,
368
- get: function () { return chunkGCMQUM6N_cjs.ConnectionError; }
389
+ get: function () { return chunkXIE7WJV3_cjs.ConnectionError; }
369
390
  });
370
391
  Object.defineProperty(exports, "ContentByIdBuilder", {
371
392
  enumerable: true,
372
- get: function () { return chunkGCMQUM6N_cjs.ContentByIdBuilder; }
393
+ get: function () { return chunkXIE7WJV3_cjs.ContentByIdBuilder; }
373
394
  });
374
395
  Object.defineProperty(exports, "ContentClient", {
375
396
  enumerable: true,
376
- get: function () { return chunkGCMQUM6N_cjs.ContentClient; }
397
+ get: function () { return chunkXIE7WJV3_cjs.ContentClient; }
377
398
  });
378
399
  Object.defineProperty(exports, "ContentQueryBuilder", {
379
400
  enumerable: true,
380
- get: function () { return chunkGCMQUM6N_cjs.ContentQueryBuilder; }
401
+ get: function () { return chunkXIE7WJV3_cjs.ContentQueryBuilder; }
381
402
  });
382
403
  Object.defineProperty(exports, "ErrorMapper", {
383
404
  enumerable: true,
384
- get: function () { return chunkGCMQUM6N_cjs.ErrorMapper; }
405
+ get: function () { return chunkXIE7WJV3_cjs.ErrorMapper; }
385
406
  });
386
407
  Object.defineProperty(exports, "FileUploadError", {
387
408
  enumerable: true,
388
- get: function () { return chunkGCMQUM6N_cjs.FileUploadError; }
409
+ get: function () { return chunkXIE7WJV3_cjs.FileUploadError; }
389
410
  });
390
411
  Object.defineProperty(exports, "FileValidationError", {
391
412
  enumerable: true,
392
- get: function () { return chunkGCMQUM6N_cjs.FileValidationError; }
413
+ get: function () { return chunkXIE7WJV3_cjs.FileValidationError; }
393
414
  });
394
415
  Object.defineProperty(exports, "HttpClient", {
395
416
  enumerable: true,
396
- get: function () { return chunkGCMQUM6N_cjs.HttpClient; }
417
+ get: function () { return chunkXIE7WJV3_cjs.HttpClient; }
397
418
  });
398
419
  Object.defineProperty(exports, "InvalidApiKeyError", {
399
420
  enumerable: true,
400
- get: function () { return chunkGCMQUM6N_cjs.InvalidApiKeyError; }
421
+ get: function () { return chunkXIE7WJV3_cjs.InvalidApiKeyError; }
422
+ });
423
+ Object.defineProperty(exports, "InvalidPayloadError", {
424
+ enumerable: true,
425
+ get: function () { return chunkXIE7WJV3_cjs.InvalidPayloadError; }
401
426
  });
402
- Object.defineProperty(exports, "InvalidFieldTypeError", {
427
+ Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
403
428
  enumerable: true,
404
- get: function () { return chunkGCMQUM6N_cjs.InvalidFieldTypeError; }
429
+ get: function () { return chunkXIE7WJV3_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
405
430
  });
406
- Object.defineProperty(exports, "InvalidPayloadError", {
431
+ Object.defineProperty(exports, "LiveEdgeError", {
407
432
  enumerable: true,
408
- get: function () { return chunkGCMQUM6N_cjs.InvalidPayloadError; }
433
+ get: function () { return chunkXIE7WJV3_cjs.LiveEdgeError; }
409
434
  });
410
435
  Object.defineProperty(exports, "MethodNotAllowedError", {
411
436
  enumerable: true,
412
- get: function () { return chunkGCMQUM6N_cjs.MethodNotAllowedError; }
437
+ get: function () { return chunkXIE7WJV3_cjs.MethodNotAllowedError; }
413
438
  });
414
439
  Object.defineProperty(exports, "MissingApiKeyError", {
415
440
  enumerable: true,
416
- get: function () { return chunkGCMQUM6N_cjs.MissingApiKeyError; }
441
+ get: function () { return chunkXIE7WJV3_cjs.MissingApiKeyError; }
417
442
  });
418
443
  Object.defineProperty(exports, "NetworkError", {
419
444
  enumerable: true,
420
- get: function () { return chunkGCMQUM6N_cjs.NetworkError; }
445
+ get: function () { return chunkXIE7WJV3_cjs.NetworkError; }
446
+ });
447
+ Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
448
+ enumerable: true,
449
+ get: function () { return chunkXIE7WJV3_cjs.PUBLISHABLE_KEY_PREFIX; }
421
450
  });
422
451
  Object.defineProperty(exports, "PayloadTooLargeError", {
423
452
  enumerable: true,
424
- get: function () { return chunkGCMQUM6N_cjs.PayloadTooLargeError; }
453
+ get: function () { return chunkXIE7WJV3_cjs.PayloadTooLargeError; }
425
454
  });
426
455
  Object.defineProperty(exports, "PlanFeatureUnavailableError", {
427
456
  enumerable: true,
428
- get: function () { return chunkGCMQUM6N_cjs.PlanFeatureUnavailableError; }
457
+ get: function () { return chunkXIE7WJV3_cjs.PlanFeatureUnavailableError; }
429
458
  });
430
459
  Object.defineProperty(exports, "RateLimitError", {
431
460
  enumerable: true,
432
- get: function () { return chunkGCMQUM6N_cjs.RateLimitError; }
461
+ get: function () { return chunkXIE7WJV3_cjs.RateLimitError; }
433
462
  });
434
463
  Object.defineProperty(exports, "ReadOnlyKeyError", {
435
464
  enumerable: true,
436
- get: function () { return chunkGCMQUM6N_cjs.ReadOnlyKeyError; }
437
- });
438
- Object.defineProperty(exports, "RequiredFieldError", {
439
- enumerable: true,
440
- get: function () { return chunkGCMQUM6N_cjs.RequiredFieldError; }
465
+ get: function () { return chunkXIE7WJV3_cjs.ReadOnlyKeyError; }
441
466
  });
442
467
  Object.defineProperty(exports, "ResourceConflictError", {
443
468
  enumerable: true,
444
- get: function () { return chunkGCMQUM6N_cjs.ResourceConflictError; }
469
+ get: function () { return chunkXIE7WJV3_cjs.ResourceConflictError; }
445
470
  });
446
471
  Object.defineProperty(exports, "ResourceExpiredError", {
447
472
  enumerable: true,
448
- get: function () { return chunkGCMQUM6N_cjs.ResourceExpiredError; }
473
+ get: function () { return chunkXIE7WJV3_cjs.ResourceExpiredError; }
449
474
  });
450
475
  Object.defineProperty(exports, "ResourceNotFoundError", {
451
476
  enumerable: true,
452
- get: function () { return chunkGCMQUM6N_cjs.ResourceNotFoundError; }
477
+ get: function () { return chunkXIE7WJV3_cjs.ResourceNotFoundError; }
453
478
  });
454
479
  Object.defineProperty(exports, "SDKError", {
455
480
  enumerable: true,
456
- get: function () { return chunkGCMQUM6N_cjs.SDKError; }
457
- });
458
- Object.defineProperty(exports, "SchemaValidationError", {
459
- enumerable: true,
460
- get: function () { return chunkGCMQUM6N_cjs.SchemaValidationError; }
481
+ get: function () { return chunkXIE7WJV3_cjs.SDKError; }
461
482
  });
462
483
  Object.defineProperty(exports, "SearchBuilder", {
463
484
  enumerable: true,
464
- get: function () { return chunkGCMQUM6N_cjs.SearchBuilder; }
485
+ get: function () { return chunkXIE7WJV3_cjs.SearchBuilder; }
465
486
  });
466
487
  Object.defineProperty(exports, "SearchClient", {
467
488
  enumerable: true,
468
- get: function () { return chunkGCMQUM6N_cjs.SearchClient; }
489
+ get: function () { return chunkXIE7WJV3_cjs.SearchClient; }
469
490
  });
470
491
  Object.defineProperty(exports, "ServerError", {
471
492
  enumerable: true,
472
- get: function () { return chunkGCMQUM6N_cjs.ServerError; }
493
+ get: function () { return chunkXIE7WJV3_cjs.ServerError; }
473
494
  });
474
495
  Object.defineProperty(exports, "ServiceIndeterminateError", {
475
496
  enumerable: true,
476
- get: function () { return chunkGCMQUM6N_cjs.ServiceIndeterminateError; }
497
+ get: function () { return chunkXIE7WJV3_cjs.ServiceIndeterminateError; }
477
498
  });
478
499
  Object.defineProperty(exports, "SettingsClient", {
479
500
  enumerable: true,
480
- get: function () { return chunkGCMQUM6N_cjs.SettingsClient; }
501
+ get: function () { return chunkXIE7WJV3_cjs.SettingsClient; }
481
502
  });
482
503
  Object.defineProperty(exports, "SimilarBuilder", {
483
504
  enumerable: true,
484
- get: function () { return chunkGCMQUM6N_cjs.SimilarBuilder; }
505
+ get: function () { return chunkXIE7WJV3_cjs.SimilarBuilder; }
485
506
  });
486
507
  Object.defineProperty(exports, "SingletonClient", {
487
508
  enumerable: true,
488
- get: function () { return chunkGCMQUM6N_cjs.SingletonClient; }
509
+ get: function () { return chunkXIE7WJV3_cjs.SingletonClient; }
489
510
  });
490
511
  Object.defineProperty(exports, "TimeoutError", {
491
512
  enumerable: true,
492
- get: function () { return chunkGCMQUM6N_cjs.TimeoutError; }
513
+ get: function () { return chunkXIE7WJV3_cjs.TimeoutError; }
493
514
  });
494
515
  Object.defineProperty(exports, "TransactionRolledBackError", {
495
516
  enumerable: true,
496
- get: function () { return chunkGCMQUM6N_cjs.TransactionRolledBackError; }
517
+ get: function () { return chunkXIE7WJV3_cjs.TransactionRolledBackError; }
497
518
  });
498
519
  Object.defineProperty(exports, "TypedRelyIOClient", {
499
520
  enumerable: true,
500
- get: function () { return chunkGCMQUM6N_cjs.TypedRelyIOClient; }
521
+ get: function () { return chunkXIE7WJV3_cjs.TypedRelyIOClient; }
501
522
  });
502
523
  Object.defineProperty(exports, "UnknownContractError", {
503
524
  enumerable: true,
504
- get: function () { return chunkGCMQUM6N_cjs.UnknownContractError; }
525
+ get: function () { return chunkXIE7WJV3_cjs.UnknownContractError; }
505
526
  });
506
527
  Object.defineProperty(exports, "UsageQuotaExceededError", {
507
528
  enumerable: true,
508
- get: function () { return chunkGCMQUM6N_cjs.UsageQuotaExceededError; }
529
+ get: function () { return chunkXIE7WJV3_cjs.UsageQuotaExceededError; }
509
530
  });
510
531
  Object.defineProperty(exports, "ValidationError", {
511
532
  enumerable: true,
512
- get: function () { return chunkGCMQUM6N_cjs.ValidationError; }
533
+ get: function () { return chunkXIE7WJV3_cjs.ValidationError; }
513
534
  });
514
535
  Object.defineProperty(exports, "createClient", {
515
536
  enumerable: true,
516
- get: function () { return chunkGCMQUM6N_cjs.createClient; }
537
+ get: function () { return chunkXIE7WJV3_cjs.createClient; }
517
538
  });
518
539
  Object.defineProperty(exports, "default", {
519
540
  enumerable: true,
520
- get: function () { return chunkGCMQUM6N_cjs.createClient; }
541
+ get: function () { return chunkXIE7WJV3_cjs.createClient; }
521
542
  });
522
543
  Object.defineProperty(exports, "entityTagOf", {
523
544
  enumerable: true,
524
- get: function () { return chunkGCMQUM6N_cjs.entityTagOf; }
545
+ get: function () { return chunkXIE7WJV3_cjs.entityTagOf; }
525
546
  });
526
547
  Object.defineProperty(exports, "isAssetEntry", {
527
548
  enumerable: true,
528
- get: function () { return chunkGCMQUM6N_cjs.isAssetEntry; }
549
+ get: function () { return chunkXIE7WJV3_cjs.isAssetEntry; }
550
+ });
551
+ Object.defineProperty(exports, "isPublishableKey", {
552
+ enumerable: true,
553
+ get: function () { return chunkXIE7WJV3_cjs.isPublishableKey; }
529
554
  });
530
555
  Object.defineProperty(exports, "isResourceNotFound", {
531
556
  enumerable: true,
532
- get: function () { return chunkGCMQUM6N_cjs.isResourceNotFound; }
557
+ get: function () { return chunkXIE7WJV3_cjs.isResourceNotFound; }
533
558
  });
534
559
  Object.defineProperty(exports, "matchRoute", {
535
560
  enumerable: true,
536
- get: function () { return chunkGCMQUM6N_cjs.matchRoute; }
561
+ get: function () { return chunkXIE7WJV3_cjs.matchRoute; }
537
562
  });
538
563
  Object.defineProperty(exports, "validateFile", {
539
564
  enumerable: true,
540
- get: function () { return chunkGCMQUM6N_cjs.validateFile; }
565
+ get: function () { return chunkXIE7WJV3_cjs.validateFile; }
541
566
  });
542
567
  Object.defineProperty(exports, "camelToSnake", {
543
568
  enumerable: true,
544
- get: function () { return chunkHT6NFRM2_cjs.camelToSnake; }
569
+ get: function () { return chunkTZL374LS_cjs.camelToSnake; }
545
570
  });
546
571
  Object.defineProperty(exports, "createDeferred", {
547
572
  enumerable: true,
548
- get: function () { return chunkHT6NFRM2_cjs.createDeferred; }
573
+ get: function () { return chunkTZL374LS_cjs.createDeferred; }
549
574
  });
550
575
  Object.defineProperty(exports, "debounce", {
551
576
  enumerable: true,
552
- get: function () { return chunkHT6NFRM2_cjs.debounce; }
577
+ get: function () { return chunkTZL374LS_cjs.debounce; }
553
578
  });
554
579
  Object.defineProperty(exports, "deepClone", {
555
580
  enumerable: true,
556
- get: function () { return chunkHT6NFRM2_cjs.deepClone; }
581
+ get: function () { return chunkTZL374LS_cjs.deepClone; }
557
582
  });
558
583
  Object.defineProperty(exports, "generateId", {
559
584
  enumerable: true,
560
- get: function () { return chunkHT6NFRM2_cjs.generateId; }
585
+ get: function () { return chunkTZL374LS_cjs.generateId; }
561
586
  });
562
587
  Object.defineProperty(exports, "isBrowser", {
563
588
  enumerable: true,
564
- get: function () { return chunkHT6NFRM2_cjs.isBrowser; }
589
+ get: function () { return chunkTZL374LS_cjs.isBrowser; }
565
590
  });
566
591
  Object.defineProperty(exports, "isNode", {
567
592
  enumerable: true,
568
- get: function () { return chunkHT6NFRM2_cjs.isNode; }
593
+ get: function () { return chunkTZL374LS_cjs.isNode; }
569
594
  });
570
595
  Object.defineProperty(exports, "isPlainObject", {
571
596
  enumerable: true,
572
- get: function () { return chunkHT6NFRM2_cjs.isPlainObject; }
597
+ get: function () { return chunkTZL374LS_cjs.isPlainObject; }
573
598
  });
574
599
  Object.defineProperty(exports, "isValidEmail", {
575
600
  enumerable: true,
576
- get: function () { return chunkHT6NFRM2_cjs.isValidEmail; }
601
+ get: function () { return chunkTZL374LS_cjs.isValidEmail; }
577
602
  });
578
603
  Object.defineProperty(exports, "isValidUrl", {
579
604
  enumerable: true,
580
- get: function () { return chunkHT6NFRM2_cjs.isValidUrl; }
605
+ get: function () { return chunkTZL374LS_cjs.isValidUrl; }
581
606
  });
582
607
  Object.defineProperty(exports, "mergeDeep", {
583
608
  enumerable: true,
584
- get: function () { return chunkHT6NFRM2_cjs.mergeDeep; }
609
+ get: function () { return chunkTZL374LS_cjs.mergeDeep; }
585
610
  });
586
611
  Object.defineProperty(exports, "omit", {
587
612
  enumerable: true,
588
- get: function () { return chunkHT6NFRM2_cjs.omit; }
613
+ get: function () { return chunkTZL374LS_cjs.omit; }
589
614
  });
590
615
  Object.defineProperty(exports, "pick", {
591
616
  enumerable: true,
592
- get: function () { return chunkHT6NFRM2_cjs.pick; }
617
+ get: function () { return chunkTZL374LS_cjs.pick; }
593
618
  });
594
619
  Object.defineProperty(exports, "retry", {
595
620
  enumerable: true,
596
- get: function () { return chunkHT6NFRM2_cjs.retry; }
621
+ get: function () { return chunkTZL374LS_cjs.retry; }
597
622
  });
598
623
  Object.defineProperty(exports, "sleep", {
599
624
  enumerable: true,
600
- get: function () { return chunkHT6NFRM2_cjs.sleep; }
625
+ get: function () { return chunkTZL374LS_cjs.sleep; }
601
626
  });
602
627
  Object.defineProperty(exports, "snakeToCamel", {
603
628
  enumerable: true,
604
- get: function () { return chunkHT6NFRM2_cjs.snakeToCamel; }
629
+ get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
605
630
  });
606
631
  Object.defineProperty(exports, "throttle", {
607
632
  enumerable: true,
608
- get: function () { return chunkHT6NFRM2_cjs.throttle; }
633
+ get: function () { return chunkTZL374LS_cjs.throttle; }
609
634
  });
610
635
  Object.defineProperty(exports, "toSafeString", {
611
636
  enumerable: true,
612
- get: function () { return chunkHT6NFRM2_cjs.toSafeString; }
637
+ get: function () { return chunkTZL374LS_cjs.toSafeString; }
613
638
  });
639
+ exports.FOLLOW_BACK_OFF_MAX_MS = FOLLOW_BACK_OFF_MAX_MS;
614
640
  exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
615
641
  exports.FOLLOW_RETRY_MAX_MS = FOLLOW_RETRY_MAX_MS;
616
642
  exports.IMAGE_LADDER = IMAGE_LADDER;
617
- exports.PUBLISHABLE_KEY_PREFIX = PUBLISHABLE_KEY_PREFIX;
618
643
  exports.RELYIO_CHANGE_EVENT = RELYIO_CHANGE_EVENT;
619
644
  exports.RELYIO_RESYNC_EVENT = RELYIO_RESYNC_EVENT;
620
645
  exports.VERSION = VERSION;
@@ -632,7 +657,6 @@ exports.getPublishedLocaleCodes = getPublishedLocaleCodes;
632
657
  exports.getRequestedLocale = getRequestedLocale;
633
658
  exports.hasLocale = hasLocale;
634
659
  exports.isFieldFallback = isFieldFallback;
635
- exports.isPublishableKey = isPublishableKey;
636
660
  exports.isPublishedInLocale = isPublishedInLocale;
637
661
  exports.localeHelpers = localeHelpers;
638
662
  exports.needsTranslation = needsTranslation;