@tinycloud/node-sdk 2.2.0-beta.6 → 2.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/{core-DdMPUB5s.d.cts → core-C3s0bgRe.d.cts} +14 -1
- package/dist/{core-DdMPUB5s.d.ts → core-C3s0bgRe.d.ts} +14 -1
- package/dist/core.cjs +348 -155
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +254 -58
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +351 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +255 -58
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, IDataVaultService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISharingService, CreateDelegationParams, DelegationResult, PermissionEntry, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
1
|
+
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, IDataVaultService, ISecretsService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISpace, ISharingService, CreateDelegationParams, DelegationResult, PermissionEntry, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { InvokeFunction } from '@tinycloud/sdk-services';
|
|
4
4
|
|
|
@@ -770,6 +770,8 @@ declare class TinyCloudNode {
|
|
|
770
770
|
private _duckdb?;
|
|
771
771
|
private _hooks?;
|
|
772
772
|
private _vault?;
|
|
773
|
+
private _baseSecrets?;
|
|
774
|
+
private _secrets?;
|
|
773
775
|
/** Cached public KV with proper delegation (set by ensurePublicSpace) */
|
|
774
776
|
private _publicKV?;
|
|
775
777
|
/** Session key ID - always available */
|
|
@@ -949,6 +951,8 @@ declare class TinyCloudNode {
|
|
|
949
951
|
* @internal
|
|
950
952
|
*/
|
|
951
953
|
private initializeServices;
|
|
954
|
+
private createSpaceScopedKVService;
|
|
955
|
+
private createVaultService;
|
|
952
956
|
/**
|
|
953
957
|
* Initialize the v2 delegation system services.
|
|
954
958
|
* @internal
|
|
@@ -1006,6 +1010,11 @@ declare class TinyCloudNode {
|
|
|
1006
1010
|
* Call `vault.unlock(signer)` after signIn() to derive encryption keys.
|
|
1007
1011
|
*/
|
|
1008
1012
|
get vault(): IDataVaultService;
|
|
1013
|
+
/**
|
|
1014
|
+
* App-facing secrets API backed by the `secrets` space vault.
|
|
1015
|
+
*/
|
|
1016
|
+
get secrets(): ISecretsService;
|
|
1017
|
+
private getBaseSecrets;
|
|
1009
1018
|
/**
|
|
1010
1019
|
* Hooks write stream subscription API.
|
|
1011
1020
|
*/
|
|
@@ -1108,6 +1117,10 @@ declare class TinyCloudNode {
|
|
|
1108
1117
|
* @see spaces
|
|
1109
1118
|
*/
|
|
1110
1119
|
get spaceService(): ISpaceService;
|
|
1120
|
+
/**
|
|
1121
|
+
* Get a Space object by short name or full URI.
|
|
1122
|
+
*/
|
|
1123
|
+
space(nameOrUri: string): ISpace;
|
|
1111
1124
|
/**
|
|
1112
1125
|
* Get the SharingService for creating and receiving v2 sharing links.
|
|
1113
1126
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, IDataVaultService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISharingService, CreateDelegationParams, DelegationResult, PermissionEntry, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
1
|
+
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, IDataVaultService, ISecretsService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISpace, ISharingService, CreateDelegationParams, DelegationResult, PermissionEntry, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { InvokeFunction } from '@tinycloud/sdk-services';
|
|
4
4
|
|
|
@@ -770,6 +770,8 @@ declare class TinyCloudNode {
|
|
|
770
770
|
private _duckdb?;
|
|
771
771
|
private _hooks?;
|
|
772
772
|
private _vault?;
|
|
773
|
+
private _baseSecrets?;
|
|
774
|
+
private _secrets?;
|
|
773
775
|
/** Cached public KV with proper delegation (set by ensurePublicSpace) */
|
|
774
776
|
private _publicKV?;
|
|
775
777
|
/** Session key ID - always available */
|
|
@@ -949,6 +951,8 @@ declare class TinyCloudNode {
|
|
|
949
951
|
* @internal
|
|
950
952
|
*/
|
|
951
953
|
private initializeServices;
|
|
954
|
+
private createSpaceScopedKVService;
|
|
955
|
+
private createVaultService;
|
|
952
956
|
/**
|
|
953
957
|
* Initialize the v2 delegation system services.
|
|
954
958
|
* @internal
|
|
@@ -1006,6 +1010,11 @@ declare class TinyCloudNode {
|
|
|
1006
1010
|
* Call `vault.unlock(signer)` after signIn() to derive encryption keys.
|
|
1007
1011
|
*/
|
|
1008
1012
|
get vault(): IDataVaultService;
|
|
1013
|
+
/**
|
|
1014
|
+
* App-facing secrets API backed by the `secrets` space vault.
|
|
1015
|
+
*/
|
|
1016
|
+
get secrets(): ISecretsService;
|
|
1017
|
+
private getBaseSecrets;
|
|
1009
1018
|
/**
|
|
1010
1019
|
* Hooks write stream subscription API.
|
|
1011
1020
|
*/
|
|
@@ -1108,6 +1117,10 @@ declare class TinyCloudNode {
|
|
|
1108
1117
|
* @see spaces
|
|
1109
1118
|
*/
|
|
1110
1119
|
get spaceService(): ISpaceService;
|
|
1120
|
+
/**
|
|
1121
|
+
* Get a Space object by short name or full URI.
|
|
1122
|
+
*/
|
|
1123
|
+
space(nameOrUri: string): ISpace;
|
|
1111
1124
|
/**
|
|
1112
1125
|
* Get the SharingService for creating and receiving v2 sharing links.
|
|
1113
1126
|
*
|