@tinycloud/node-sdk 3.2.6-beta.6 → 3.3.0-beta.11

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 (43) hide show
  1. package/dist/{WasmKeyProvider-DEdSyQ0I.d.cts → TinyCloudNode-CcNh20QX.d.cts} +181 -286
  2. package/dist/{WasmKeyProvider-DEdSyQ0I.d.ts → TinyCloudNode-CcNh20QX.d.ts} +181 -286
  3. package/dist/WasmKeyProvider-5Ee7fcAw.d.cts +217 -0
  4. package/dist/WasmKeyProvider-5Ee7fcAw.d.ts +217 -0
  5. package/dist/authority-Cwotwza3.d.cts +118 -0
  6. package/dist/authority-D_u9a7Wl.d.ts +118 -0
  7. package/dist/core.cjs +401 -168
  8. package/dist/core.cjs.map +1 -1
  9. package/dist/core.d.cts +37 -4
  10. package/dist/core.d.ts +37 -4
  11. package/dist/core.js +408 -176
  12. package/dist/core.js.map +1 -1
  13. package/dist/gated-network-BEF2XSTC.d.cts +16 -0
  14. package/dist/gated-network-BEF2XSTC.d.ts +16 -0
  15. package/dist/index.cjs +2735 -545
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +35 -89
  18. package/dist/index.d.ts +35 -89
  19. package/dist/index.js +2730 -545
  20. package/dist/index.js.map +1 -1
  21. package/dist/replication/authority.cjs +153 -15
  22. package/dist/replication/authority.cjs.map +1 -1
  23. package/dist/replication/authority.d.cts +4 -1
  24. package/dist/replication/authority.d.ts +4 -1
  25. package/dist/replication/authority.js +147 -14
  26. package/dist/replication/authority.js.map +1 -1
  27. package/dist/replication/gated-network.cjs +90 -0
  28. package/dist/replication/gated-network.cjs.map +1 -0
  29. package/dist/replication/gated-network.d.cts +2 -0
  30. package/dist/replication/gated-network.d.ts +2 -0
  31. package/dist/replication/gated-network.js +65 -0
  32. package/dist/replication/gated-network.js.map +1 -0
  33. package/dist/replication/runtime.cjs +84 -6
  34. package/dist/replication/runtime.cjs.map +1 -1
  35. package/dist/replication/runtime.d.cts +2 -1
  36. package/dist/replication/runtime.d.ts +2 -1
  37. package/dist/replication/runtime.js +84 -6
  38. package/dist/replication/runtime.js.map +1 -1
  39. package/dist/{runtime-B5P5SRpC.d.ts → runtime-D1o9Eybt.d.cts} +14 -3
  40. package/dist/{runtime-B5P5SRpC.d.cts → runtime-v62FzQHz.d.ts} +14 -3
  41. package/package.json +14 -4
  42. package/dist/authority-DDGtccBK.d.cts +0 -96
  43. package/dist/authority-DDGtccBK.d.ts +0 -96
@@ -0,0 +1,16 @@
1
+ import { ReplicationEvent, KVReadThrough } from '@tinycloud/sdk-services';
2
+
3
+ /** Loaded only after a refused restore. No replica storage, authority, or worker access. */
4
+ declare function createGatedNetworkReadThrough(input: {
5
+ space: string;
6
+ prefixes: readonly string[];
7
+ now: () => number;
8
+ emit: (event: ReplicationEvent) => void;
9
+ }): KVReadThrough;
10
+
11
+ declare const __gated_network_createGatedNetworkReadThrough: typeof createGatedNetworkReadThrough;
12
+ declare namespace __gated_network {
13
+ export { __gated_network_createGatedNetworkReadThrough as createGatedNetworkReadThrough };
14
+ }
15
+
16
+ export { __gated_network as _, createGatedNetworkReadThrough as c };
@@ -0,0 +1,16 @@
1
+ import { ReplicationEvent, KVReadThrough } from '@tinycloud/sdk-services';
2
+
3
+ /** Loaded only after a refused restore. No replica storage, authority, or worker access. */
4
+ declare function createGatedNetworkReadThrough(input: {
5
+ space: string;
6
+ prefixes: readonly string[];
7
+ now: () => number;
8
+ emit: (event: ReplicationEvent) => void;
9
+ }): KVReadThrough;
10
+
11
+ declare const __gated_network_createGatedNetworkReadThrough: typeof createGatedNetworkReadThrough;
12
+ declare namespace __gated_network {
13
+ export { __gated_network_createGatedNetworkReadThrough as createGatedNetworkReadThrough };
14
+ }
15
+
16
+ export { __gated_network as _, createGatedNetworkReadThrough as c };