@tinycloud/sdk-services 3.2.0-beta.5 → 3.2.0-beta.8

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 (39) hide show
  1. package/dist/{BaseService-BDQXjWMx.d.cts → BaseService-4wwJq1Gn.d.cts} +1 -1
  2. package/dist/{BaseService-Di_hVfUV.d.ts → BaseService-BGr2slUz.d.ts} +1 -1
  3. package/dist/encryption/index.cjs +5 -1
  4. package/dist/encryption/index.cjs.map +1 -1
  5. package/dist/encryption/index.d.cts +2 -2
  6. package/dist/encryption/index.d.ts +2 -2
  7. package/dist/encryption/index.js +5 -1
  8. package/dist/encryption/index.js.map +1 -1
  9. package/dist/index.cjs +180 -9
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +156 -6
  12. package/dist/index.d.ts +156 -6
  13. package/dist/index.js +174 -9
  14. package/dist/index.js.map +1 -1
  15. package/dist/internal/decrypt-transport-response-error.d.cts +1 -1
  16. package/dist/internal/decrypt-transport-response-error.d.ts +1 -1
  17. package/dist/kv/index.cjs +42 -3
  18. package/dist/kv/index.cjs.map +1 -1
  19. package/dist/kv/index.d.cts +4 -4
  20. package/dist/kv/index.d.ts +4 -4
  21. package/dist/kv/index.js +42 -3
  22. package/dist/kv/index.js.map +1 -1
  23. package/dist/kv/replication/index.cjs +2 -0
  24. package/dist/kv/replication/index.cjs.map +1 -1
  25. package/dist/kv/replication/index.d.cts +3 -3
  26. package/dist/kv/replication/index.d.ts +3 -3
  27. package/dist/kv/replication/index.js +2 -0
  28. package/dist/kv/replication/index.js.map +1 -1
  29. package/dist/{scope-BKge7zDT.d.ts → scope-CoKKmMiI.d.ts} +1 -1
  30. package/dist/{scope-C05VVAXH.d.cts → scope-D7wmjbMH.d.cts} +1 -1
  31. package/dist/sql/index.cjs +44 -2
  32. package/dist/sql/index.cjs.map +1 -1
  33. package/dist/sql/index.d.cts +2 -2
  34. package/dist/sql/index.d.ts +2 -2
  35. package/dist/sql/index.js +44 -2
  36. package/dist/sql/index.js.map +1 -1
  37. package/dist/{types-7A5rHWRY.d.cts → types-D-9A3Sut.d.cts} +6 -0
  38. package/dist/{types-7A5rHWRY.d.ts → types-D-9A3Sut.d.ts} +6 -0
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.cjs';
1
+ import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-D-9A3Sut.cjs';
2
2
 
3
3
  /**
4
4
  * Base Service Types
@@ -1,4 +1,4 @@
1
- import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.js';
1
+ import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-D-9A3Sut.js';
2
2
 
3
3
  /**
4
4
  * Base Service Types
@@ -102,6 +102,8 @@ var ErrorCodes = {
102
102
  // Storage quota errors
103
103
  STORAGE_QUOTA_EXCEEDED: "STORAGE_QUOTA_EXCEEDED",
104
104
  STORAGE_LIMIT_REACHED: "STORAGE_LIMIT_REACHED",
105
+ /** The node answered the usage read without usage numbers (it predates the read). */
106
+ STORAGE_STATUS_UNAVAILABLE: "STORAGE_STATUS_UNAVAILABLE",
105
107
  // DuckDB-specific errors
106
108
  DUCKDB_ERROR: "DUCKDB_ERROR",
107
109
  DUCKDB_PERMISSION_DENIED: "DUCKDB_PERMISSION_DENIED",
@@ -131,7 +133,9 @@ var TelemetryEvents = {
131
133
  REPLICATION_WRITE: "replication.write",
132
134
  REPLICATION_SYNC: "replication.sync",
133
135
  REPLICATION_STATE: "replication.state",
134
- REPLICATION_DIVERGENCE: "replication.divergence"
136
+ REPLICATION_DIVERGENCE: "replication.divergence",
137
+ /** Emitted once, on the first write rejected because storage is full. */
138
+ STORAGE_FULL: "storage.full"
135
139
  };
136
140
  function err(error) {
137
141
  return { ok: false, error };