@tinycloud/node-sdk 3.12.0-beta.4 → 3.12.0-beta.5
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/{NodeUserAuthorization-B_TFUlua.d.cts → NodeUserAuthorization-D41H1_c0.d.cts} +1 -0
- package/dist/{NodeUserAuthorization-B_TFUlua.d.ts → NodeUserAuthorization-D41H1_c0.d.ts} +1 -0
- package/dist/{TinyCloudNode-Brcu8QoX.d.cts → TinyCloudNode-B0pKoTaw.d.cts} +2 -2
- package/dist/{TinyCloudNode-DBJUnsMN.d.ts → TinyCloudNode-DvzCZgJX.d.ts} +2 -2
- package/dist/{authority-DQ6R1HEG.d.cts → authority-Bu8hivr-.d.cts} +1 -1
- package/dist/{authority-BFc5lesl.d.ts → authority-D9JwzD7C.d.ts} +1 -1
- package/dist/core.cjs +347 -346
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +6 -4
- package/dist/core.js.map +1 -1
- package/dist/encryption-keys.d.cts +2 -2
- package/dist/encryption-keys.d.ts +2 -2
- package/dist/index.cjs +147 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/replication/authority.d.cts +3 -3
- package/dist/replication/authority.d.ts +3 -3
- package/dist/space-hosting.d.cts +1 -1
- package/dist/space-hosting.d.ts +1 -1
- package/package.json +2 -2
|
@@ -102,6 +102,7 @@ interface OpenKeyAuthorizeTinyCloud {
|
|
|
102
102
|
interface OpenKeyBridgeInput {
|
|
103
103
|
protocolVersion: 1;
|
|
104
104
|
siwe: string;
|
|
105
|
+
/** The public session key. The bridge sends only its public members to OpenKey. */
|
|
105
106
|
jwk: Record<string, unknown>;
|
|
106
107
|
/** SDK-prepared session-key DID, for local handoff consistency only; not an OpenKey request field. */
|
|
107
108
|
readonly verificationMethod: string;
|
|
@@ -102,6 +102,7 @@ interface OpenKeyAuthorizeTinyCloud {
|
|
|
102
102
|
interface OpenKeyBridgeInput {
|
|
103
103
|
protocolVersion: 1;
|
|
104
104
|
siwe: string;
|
|
105
|
+
/** The public session key. The bridge sends only its public members to OpenKey. */
|
|
105
106
|
jwk: Record<string, unknown>;
|
|
106
107
|
/** SDK-prepared session-key DID, for local handoff consistency only; not an OpenKey request field. */
|
|
107
108
|
readonly verificationMethod: string;
|
|
@@ -3,7 +3,7 @@ import { TinyCloudSession, TelemetryConfig, ServiceContext, IKVService, ISQLServ
|
|
|
3
3
|
import { ReplicaPurgeFailedEvent, ReplicaSessionStamp } from '@tinycloud/sdk-services/kv/replication';
|
|
4
4
|
import { InvokeFunction, InvokeAnyFunction, FetchFunction, RequestSink, RequestLogReader } from '@tinycloud/sdk-services';
|
|
5
5
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
6
|
-
import { S as SpaceHosting, c as SignStrategy, a as NodeUserAuthorization, P as PreparedOpenKeyAuthorization } from './NodeUserAuthorization-
|
|
6
|
+
import { S as SpaceHosting, c as SignStrategy, a as NodeUserAuthorization, P as PreparedOpenKeyAuthorization } from './NodeUserAuthorization-D41H1_c0.cjs';
|
|
7
7
|
import { P as PortableDelegation, S as SessionGrantProof, e as VerifiedSessionGrant } from './delegation-CeOWDnBB.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -886,7 +886,7 @@ declare class TinyCloudNode {
|
|
|
886
886
|
signIn(options?: SignInOptions): Promise<void>;
|
|
887
887
|
/**
|
|
888
888
|
* Fresh OpenKey sign-in. The callback receives the SDK's original SIWE and
|
|
889
|
-
* session JWK before approval; the signed result is verified against those
|
|
889
|
+
* public session JWK before approval; the signed result is verified against those
|
|
890
890
|
* bytes before the network session or replica stamp is committed.
|
|
891
891
|
*/
|
|
892
892
|
signInWithOpenKey(authorizeFn: Parameters<NodeUserAuthorization["signInWithOpenKey"]>[0], options?: Parameters<NodeUserAuthorization["signInWithOpenKey"]>[1]): Promise<void>;
|
|
@@ -3,7 +3,7 @@ import { TinyCloudSession, TelemetryConfig, ServiceContext, IKVService, ISQLServ
|
|
|
3
3
|
import { ReplicaPurgeFailedEvent, ReplicaSessionStamp } from '@tinycloud/sdk-services/kv/replication';
|
|
4
4
|
import { InvokeFunction, InvokeAnyFunction, FetchFunction, RequestSink, RequestLogReader } from '@tinycloud/sdk-services';
|
|
5
5
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
6
|
-
import { S as SpaceHosting, c as SignStrategy, a as NodeUserAuthorization, P as PreparedOpenKeyAuthorization } from './NodeUserAuthorization-
|
|
6
|
+
import { S as SpaceHosting, c as SignStrategy, a as NodeUserAuthorization, P as PreparedOpenKeyAuthorization } from './NodeUserAuthorization-D41H1_c0.js';
|
|
7
7
|
import { P as PortableDelegation, S as SessionGrantProof, e as VerifiedSessionGrant } from './delegation-CeOWDnBB.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -886,7 +886,7 @@ declare class TinyCloudNode {
|
|
|
886
886
|
signIn(options?: SignInOptions): Promise<void>;
|
|
887
887
|
/**
|
|
888
888
|
* Fresh OpenKey sign-in. The callback receives the SDK's original SIWE and
|
|
889
|
-
* session JWK before approval; the signed result is verified against those
|
|
889
|
+
* public session JWK before approval; the signed result is verified against those
|
|
890
890
|
* bytes before the network session or replica stamp is committed.
|
|
891
891
|
*/
|
|
892
892
|
signInWithOpenKey(authorizeFn: Parameters<NodeUserAuthorization["signInWithOpenKey"]>[0], options?: Parameters<NodeUserAuthorization["signInWithOpenKey"]>[1]): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReplicationOptions, PermissionEntry, TinyCloudSession, KVReplicaStorage, ServiceContext, IWasmBindings, WasmRecapEntry } from '@tinycloud/sdk-core';
|
|
2
2
|
import { ReplicaConsentAnchor, AuthorityRefusal, ReplicationAuthority } from '@tinycloud/sdk-services';
|
|
3
3
|
import { ReplicaLocalEraseOutcome, ReplicaPurgeLocalCopyResult, ReplicaPurgeTrigger, ReplicaPurgeFailedEvent, ReplicaSessionStamp, ReplicaDenyInput } from '@tinycloud/sdk-services/kv/replication';
|
|
4
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
4
|
+
import { T as TinyCloudNode } from './TinyCloudNode-B0pKoTaw.cjs';
|
|
5
5
|
|
|
6
6
|
/** Constructor-time validation; the space-dependent secrets check runs at sign-in and open. */
|
|
7
7
|
declare function assertValidReplicationConfig(replication: (ReplicationOptions & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReplicationOptions, PermissionEntry, TinyCloudSession, KVReplicaStorage, ServiceContext, IWasmBindings, WasmRecapEntry } from '@tinycloud/sdk-core';
|
|
2
2
|
import { ReplicaConsentAnchor, AuthorityRefusal, ReplicationAuthority } from '@tinycloud/sdk-services';
|
|
3
3
|
import { ReplicaLocalEraseOutcome, ReplicaPurgeLocalCopyResult, ReplicaPurgeTrigger, ReplicaPurgeFailedEvent, ReplicaSessionStamp, ReplicaDenyInput } from '@tinycloud/sdk-services/kv/replication';
|
|
4
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
4
|
+
import { T as TinyCloudNode } from './TinyCloudNode-DvzCZgJX.js';
|
|
5
5
|
|
|
6
6
|
/** Constructor-time validation; the space-dependent secrets check runs at sign-in and open. */
|
|
7
7
|
declare function assertValidReplicationConfig(replication: (ReplicationOptions & {
|