@tinycloud/sdk-services 3.8.0-beta.1 → 3.8.0-beta.18
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-DO7vZ67k.d.ts → BaseService-Ma2MwJAd.d.ts} +1 -1
- package/dist/{BaseService-D-29xShG.d.cts → BaseService-O0iyuFLk.d.cts} +1 -1
- package/dist/IHooksService-4QNODVy6.d.cts +120 -0
- package/dist/IHooksService-CvTpJbQD.d.ts +120 -0
- package/dist/ISQLService-Aly1CBsW.d.ts +242 -0
- package/dist/ISQLService-BOgWzHLT.d.cts +242 -0
- package/dist/context.d.cts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/encryption/index.cjs +80 -7
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +23 -11
- package/dist/encryption/index.d.ts +23 -11
- package/dist/encryption/index.js +79 -7
- package/dist/encryption/index.js.map +1 -1
- package/dist/encryption/named-keys.cjs.map +1 -1
- package/dist/encryption/named-keys.d.cts +2 -2
- package/dist/encryption/named-keys.d.ts +2 -2
- package/dist/encryption/named-keys.js.map +1 -1
- package/dist/encryption/resource.cjs.map +1 -1
- package/dist/encryption/resource.js.map +1 -1
- package/dist/feed/index.cjs +787 -0
- package/dist/feed/index.cjs.map +1 -0
- package/dist/feed/index.d.cts +176 -0
- package/dist/feed/index.d.ts +176 -0
- package/dist/feed/index.js +739 -0
- package/dist/feed/index.js.map +1 -0
- package/dist/index.cjs +131 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -116
- package/dist/index.d.ts +16 -116
- package/dist/index.js +130 -15
- 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.map +1 -1
- package/dist/kv/index.d.cts +4 -4
- package/dist/kv/index.d.ts +4 -4
- package/dist/kv/index.js.map +1 -1
- package/dist/kv/replication/index.cjs +1 -0
- 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 +1 -0
- package/dist/kv/replication/index.js.map +1 -1
- package/dist/{scope-Cg00IaWk.d.ts → scope-BZr0QwxX.d.ts} +78 -3
- package/dist/{scope-Cjo4O0uO.d.cts → scope-DEgc9f-W.d.cts} +78 -3
- package/dist/sql/index.cjs +21 -6
- package/dist/sql/index.cjs.map +1 -1
- package/dist/sql/index.d.cts +6 -236
- package/dist/sql/index.d.ts +6 -236
- package/dist/sql/index.js +21 -6
- package/dist/sql/index.js.map +1 -1
- package/dist/telemetry/requestLog.d.cts +1 -1
- package/dist/telemetry/requestLog.d.ts +1 -1
- package/dist/{types-BGRzS1ob.d.ts → types-Bf91gup6.d.ts} +7 -2
- package/dist/{types-DAOyIbXu.d.cts → types-CSd0RYir.d.cts} +1 -1
- package/dist/{types-DAOyIbXu.d.ts → types-CSd0RYir.d.ts} +1 -1
- package/dist/{types-B_rbS4XE.d.cts → types-D4XbIfFJ.d.cts} +7 -2
- package/package.json +6 -1
|
@@ -404,4 +404,4 @@ declare function serviceError(code: string, message: string, service: string, op
|
|
|
404
404
|
meta?: Record<string, unknown>;
|
|
405
405
|
}): ServiceError;
|
|
406
406
|
|
|
407
|
-
export { type EventHandler as E, type FetchFunction as F, type IServiceContext as I, type PermissionHint as P, type RetryPolicy as R, type ServiceSession as S, type TelemetryConfig as T, type InvokeFunction as a, type InvokeAnyFunction as b, type IService as c, type FetchRequestInit as d, type FetchResponse as e, type
|
|
407
|
+
export { type EventHandler as E, type FetchFunction as F, type IServiceContext as I, type PermissionHint as P, type RetryPolicy as R, type ServiceSession as S, type TelemetryConfig as T, type InvokeFunction as a, type InvokeAnyFunction as b, type IService as c, type FetchRequestInit as d, type FetchResponse as e, type Result as f, type ServiceError as g, type ServiceHeaders as h, type RetryStats as i, type StorageQuotaInfo as j, type ErrorCode as k, ErrorCodes as l, type InvocationFact as m, type InvocationFacts as n, type InvokeAnyEntry as o, type ServiceErrorEvent as p, type ServiceRequestEvent as q, type ServiceResponseEvent as r, type ServiceRetryEvent as s, type TelemetryEventHandler as t, TelemetryEvents as u, type TelemetrySpanEvent as v, defaultRetryPolicy as w, err as x, ok as y, serviceError as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PermissionHint } from './types-
|
|
1
|
+
import { P as PermissionHint } from './types-CSd0RYir.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Canonical JSON serialization and content hashing for TinyCloud
|
|
@@ -78,10 +78,11 @@ declare const DECRYPT_ACTION: "tinycloud.encryption/decrypt";
|
|
|
78
78
|
* them.
|
|
79
79
|
*/
|
|
80
80
|
interface InlineEncryptedEnvelope {
|
|
81
|
-
/** Schema version. */
|
|
82
81
|
v: typeof ENVELOPE_VERSION;
|
|
83
82
|
/** Network id URN. */
|
|
84
83
|
networkId: string;
|
|
84
|
+
/** Exact named-key path; absent on network-root v1 envelopes. */
|
|
85
|
+
keyPath?: string;
|
|
85
86
|
/** Ciphersuite identifier. */
|
|
86
87
|
alg: string;
|
|
87
88
|
/** Network key version that was used to wrap the symmetric key. */
|
|
@@ -132,6 +133,8 @@ interface DecryptRequestBody {
|
|
|
132
133
|
type: typeof DECRYPT_FACT_TYPE;
|
|
133
134
|
targetNode: string;
|
|
134
135
|
networkId: string;
|
|
136
|
+
/** Exact named-key path for path-scoped decrypt, absent for root keys. */
|
|
137
|
+
keyPath?: string;
|
|
135
138
|
alg: string;
|
|
136
139
|
keyVersion: number;
|
|
137
140
|
/** Base64-encoded wrapped symmetric key from the envelope. */
|
|
@@ -173,6 +176,8 @@ interface DecryptInvocationFact {
|
|
|
173
176
|
type: typeof DECRYPT_FACT_TYPE;
|
|
174
177
|
targetNode: string;
|
|
175
178
|
networkId: string;
|
|
179
|
+
/** Exact named-key path for path-scoped decrypt, absent for root keys. */
|
|
180
|
+
keyPath?: string;
|
|
176
181
|
bodyHash: string;
|
|
177
182
|
encryptedSymmetricKeyHash: string;
|
|
178
183
|
receiverPublicKeyHash: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/sdk-services",
|
|
3
|
-
"version": "3.8.0-beta.
|
|
3
|
+
"version": "3.8.0-beta.18",
|
|
4
4
|
"description": "TinyCloud SDK Services - Platform-agnostic service implementations",
|
|
5
5
|
"author": "TinyCloud, Inc.",
|
|
6
6
|
"license": "EGPL",
|
|
@@ -101,6 +101,11 @@
|
|
|
101
101
|
"default": "./dist/kv/replication/index.cjs"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
+
"./feed": {
|
|
105
|
+
"types": "./dist/feed/index.d.ts",
|
|
106
|
+
"import": "./dist/feed/index.js",
|
|
107
|
+
"require": "./dist/feed/index.cjs"
|
|
108
|
+
},
|
|
104
109
|
"./sql": {
|
|
105
110
|
"types": "./dist/sql/index.d.ts",
|
|
106
111
|
"import": "./dist/sql/index.js",
|