@tinycloud/sdk-services 3.2.6-beta.4 → 3.3.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-1Ug6y7DC.d.cts → BaseService-Cc6Ueicm.d.cts} +1 -1
- package/dist/{BaseService-Bn07Vudy.d.ts → BaseService-DOdXd7sr.d.ts} +1 -1
- package/dist/encryption/index.cjs +8 -0
- 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 +8 -0
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +94 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -6
- package/dist/index.d.ts +29 -6
- package/dist/index.js +93 -57
- 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 +66 -21
- package/dist/kv/index.cjs.map +1 -1
- package/dist/kv/index.d.cts +4 -4
- package/dist/kv/index.d.ts +4 -4
- package/dist/kv/index.js +66 -21
- package/dist/kv/index.js.map +1 -1
- package/dist/kv/replication/grantPolicy.cjs +82 -0
- package/dist/kv/replication/grantPolicy.cjs.map +1 -0
- package/dist/kv/replication/grantPolicy.d.cts +19 -0
- package/dist/kv/replication/grantPolicy.d.ts +19 -0
- package/dist/kv/replication/grantPolicy.js +50 -0
- package/dist/kv/replication/grantPolicy.js.map +1 -0
- package/dist/kv/replication/index.cjs +571 -128
- package/dist/kv/replication/index.cjs.map +1 -1
- package/dist/kv/replication/index.d.cts +3 -3
- package/dist/kv/replication/index.d.ts +3 -3
- package/dist/kv/replication/index.js +571 -128
- package/dist/kv/replication/index.js.map +1 -1
- package/dist/{scope-BnyVPZ5E.d.ts → scope-B-m6cKH-.d.ts} +310 -7
- package/dist/{scope-CQ5kmHlt.d.cts → scope-B7oeKdLM.d.cts} +310 -7
- package/dist/sql/index.cjs +70 -36
- 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 +70 -36
- package/dist/sql/index.js.map +1 -1
- package/dist/{types-gmdUiorz.d.cts → types-BjH0ZtGy.d.cts} +6 -0
- package/dist/{types-gmdUiorz.d.ts → types-BjH0ZtGy.d.ts} +6 -0
- package/package.json +16 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-
|
|
1
|
+
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-BjH0ZtGy.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-
|
|
1
|
+
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-BjH0ZtGy.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Base Service Types
|
|
@@ -80,6 +80,14 @@ var ErrorCodes = {
|
|
|
80
80
|
ABORTED: "ABORTED",
|
|
81
81
|
INVALID_INPUT: "INVALID_INPUT",
|
|
82
82
|
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
83
|
+
// Node retry signals (tinycloud-node #347). `meta.retryable` says whether a
|
|
84
|
+
// retry is safe; `meta.retryAfterMs` carries the node's Retry-After.
|
|
85
|
+
/** HTTP 503 `sql_busy:<stage>` / `unavailable_retryable`: nothing was applied; retry after `meta.retryAfterMs`. */
|
|
86
|
+
NODE_BUSY: "NODE_BUSY",
|
|
87
|
+
/** HTTP 503 `request_timeout`: the node's deadline passed before any write began; nothing was applied. */
|
|
88
|
+
REQUEST_TIMEOUT: "REQUEST_TIMEOUT",
|
|
89
|
+
/** HTTP 500 `outcome_unknown`: a write may have been applied; read back before retrying a non-idempotent operation. */
|
|
90
|
+
OUTCOME_UNKNOWN: "OUTCOME_UNKNOWN",
|
|
83
91
|
// KV-specific errors
|
|
84
92
|
KV_NOT_FOUND: "KV_NOT_FOUND",
|
|
85
93
|
KV_WRITE_FAILED: "KV_WRITE_FAILED",
|