@tinycloud/sdk-services 3.2.0-beta.3 → 3.2.0-beta.7
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.
- package/dist/{BaseService-BDQXjWMx.d.cts → BaseService-4wwJq1Gn.d.cts} +1 -1
- package/dist/{BaseService-Di_hVfUV.d.ts → BaseService-BGr2slUz.d.ts} +1 -1
- package/dist/encryption/index.cjs +5 -1
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/index.js +5 -1
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +190 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +157 -6
- package/dist/index.d.ts +157 -6
- package/dist/index.js +184 -11
- package/dist/index.js.map +1 -1
- package/dist/internal/decrypt-transport-response-error.d.cts +1 -1
- package/dist/internal/decrypt-transport-response-error.d.ts +1 -1
- package/dist/kv/index.cjs +56 -11
- package/dist/kv/index.cjs.map +1 -1
- package/dist/kv/index.d.cts +5 -4
- package/dist/kv/index.d.ts +5 -4
- package/dist/kv/index.js +56 -11
- package/dist/kv/index.js.map +1 -1
- package/dist/kv/replication/index.cjs +44 -19
- package/dist/kv/replication/index.cjs.map +1 -1
- package/dist/kv/replication/index.d.cts +4 -3
- package/dist/kv/replication/index.d.ts +4 -3
- package/dist/kv/replication/index.js +44 -19
- package/dist/kv/replication/index.js.map +1 -1
- package/dist/kv/replication/prefix.cjs +43 -0
- package/dist/kv/replication/prefix.cjs.map +1 -0
- package/dist/kv/replication/prefix.d.cts +6 -0
- package/dist/kv/replication/prefix.d.ts +6 -0
- package/dist/kv/replication/prefix.js +17 -0
- package/dist/kv/replication/prefix.js.map +1 -0
- package/dist/{scope-BmLxwyl-.d.ts → scope-CoKKmMiI.d.ts} +5 -5
- package/dist/{scope-D855kRDx.d.cts → scope-D7wmjbMH.d.cts} +5 -5
- package/dist/sql/index.cjs +44 -2
- package/dist/sql/index.cjs.map +1 -1
- package/dist/sql/index.d.cts +2 -2
- package/dist/sql/index.d.ts +2 -2
- package/dist/sql/index.js +44 -2
- package/dist/sql/index.js.map +1 -1
- package/dist/{types-7A5rHWRY.d.cts → types-D-9A3Sut.d.cts} +6 -0
- package/dist/{types-7A5rHWRY.d.ts → types-D-9A3Sut.d.ts} +6 -0
- package/package.json +14 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseService } from '../BaseService-
|
|
2
|
-
import { P as PermissionHint, I as IService, R as Result } from '../types-
|
|
1
|
+
import { B as BaseService } from '../BaseService-4wwJq1Gn.cjs';
|
|
2
|
+
import { P as PermissionHint, I as IService, R as Result } from '../types-D-9A3Sut.cjs';
|
|
3
3
|
export { DecryptTransportResponseError } from '@tinycloud/sdk-services/internal/decrypt-transport-response-error';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseService } from '../BaseService-
|
|
2
|
-
import { P as PermissionHint, I as IService, R as Result } from '../types-
|
|
1
|
+
import { B as BaseService } from '../BaseService-BGr2slUz.js';
|
|
2
|
+
import { P as PermissionHint, I as IService, R as Result } from '../types-D-9A3Sut.js';
|
|
3
3
|
export { DecryptTransportResponseError } from '@tinycloud/sdk-services/internal/decrypt-transport-response-error';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/encryption/index.js
CHANGED
|
@@ -36,6 +36,8 @@ var ErrorCodes = {
|
|
|
36
36
|
// Storage quota errors
|
|
37
37
|
STORAGE_QUOTA_EXCEEDED: "STORAGE_QUOTA_EXCEEDED",
|
|
38
38
|
STORAGE_LIMIT_REACHED: "STORAGE_LIMIT_REACHED",
|
|
39
|
+
/** The node answered the usage read without usage numbers (it predates the read). */
|
|
40
|
+
STORAGE_STATUS_UNAVAILABLE: "STORAGE_STATUS_UNAVAILABLE",
|
|
39
41
|
// DuckDB-specific errors
|
|
40
42
|
DUCKDB_ERROR: "DUCKDB_ERROR",
|
|
41
43
|
DUCKDB_PERMISSION_DENIED: "DUCKDB_PERMISSION_DENIED",
|
|
@@ -65,7 +67,9 @@ var TelemetryEvents = {
|
|
|
65
67
|
REPLICATION_WRITE: "replication.write",
|
|
66
68
|
REPLICATION_SYNC: "replication.sync",
|
|
67
69
|
REPLICATION_STATE: "replication.state",
|
|
68
|
-
REPLICATION_DIVERGENCE: "replication.divergence"
|
|
70
|
+
REPLICATION_DIVERGENCE: "replication.divergence",
|
|
71
|
+
/** Emitted once, on the first write rejected because storage is full. */
|
|
72
|
+
STORAGE_FULL: "storage.full"
|
|
69
73
|
};
|
|
70
74
|
function err(error) {
|
|
71
75
|
return { ok: false, error };
|