@tinycloud/node-sdk 2.4.0-beta.17 → 2.4.0-beta.19
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-BX7hRUSI.d.cts → core-CqDbExtv.d.cts} +2 -2
- package/dist/{core-BX7hRUSI.d.ts → core-CqDbExtv.d.ts} +2 -2
- package/dist/core.cjs +18 -1
- 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 +19 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +18 -1
- 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 +19 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, PermissionEntry, TelemetryConfig, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, AccountService, IDataVaultService, IEncryptionService, NetworkDescriptor, ISecretsService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISpace, ISharingService, CreateDelegationParams, DelegationResult, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { InvokeFunction } from '@tinycloud/sdk-services';
|
|
3
|
+
import { InvokeFunction, InvokeAnyFunction } from '@tinycloud/sdk-services';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* In-memory session storage for Node.js.
|
|
@@ -673,7 +673,7 @@ declare class DelegatedAccess {
|
|
|
673
673
|
private _sql;
|
|
674
674
|
private _duckdb;
|
|
675
675
|
private _hooks;
|
|
676
|
-
constructor(session: TinyCloudSession, delegation: PortableDelegation, host: string, invoke: InvokeFunction, telemetry?: TelemetryConfig);
|
|
676
|
+
constructor(session: TinyCloudSession, delegation: PortableDelegation, host: string, invoke: InvokeFunction, invokeAny?: InvokeAnyFunction, telemetry?: TelemetryConfig);
|
|
677
677
|
/**
|
|
678
678
|
* Get the delegation this access was created from.
|
|
679
679
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISessionStorage, PersistedSessionData, AutoSignStrategy, AutoRejectStrategy, CallbackStrategy, IUserAuthorization, ISigner, ISpaceCreationHandler, IWasmBindings, SiweConfig, Manifest, ComposedManifestRequest, ClientSession, TinyCloudSession, Extension, SignInOptions, Delegation, DelegatedResource, PermissionEntry, TelemetryConfig, IKVService, ISQLService, IDuckDbService, IHooksService, INotificationHandler, IENSResolver, AccountService, IDataVaultService, IEncryptionService, NetworkDescriptor, ISecretsService, ICapabilityKeyRegistry, DelegationManager, ISpaceService, ISpace, ISharingService, CreateDelegationParams, DelegationResult, ResolvedDelegate, KeyProvider, ISessionManager, JWK } from '@tinycloud/sdk-core';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { InvokeFunction } from '@tinycloud/sdk-services';
|
|
3
|
+
import { InvokeFunction, InvokeAnyFunction } from '@tinycloud/sdk-services';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* In-memory session storage for Node.js.
|
|
@@ -673,7 +673,7 @@ declare class DelegatedAccess {
|
|
|
673
673
|
private _sql;
|
|
674
674
|
private _duckdb;
|
|
675
675
|
private _hooks;
|
|
676
|
-
constructor(session: TinyCloudSession, delegation: PortableDelegation, host: string, invoke: InvokeFunction, telemetry?: TelemetryConfig);
|
|
676
|
+
constructor(session: TinyCloudSession, delegation: PortableDelegation, host: string, invoke: InvokeFunction, invokeAny?: InvokeAnyFunction, telemetry?: TelemetryConfig);
|
|
677
677
|
/**
|
|
678
678
|
* Get the delegation this access was created from.
|
|
679
679
|
*/
|
package/dist/core.cjs
CHANGED
|
@@ -68,6 +68,7 @@ __export(core_exports, {
|
|
|
68
68
|
SpaceErrorCodes: () => import_sdk_core17.SpaceErrorCodes,
|
|
69
69
|
SpaceService: () => import_sdk_core17.SpaceService,
|
|
70
70
|
TinyCloud: () => import_sdk_core8.TinyCloud,
|
|
71
|
+
TinyCloudDebugLogger: () => import_sdk_core9.TinyCloudDebugLogger,
|
|
71
72
|
TinyCloudNode: () => TinyCloudNode,
|
|
72
73
|
UnsupportedFeatureError: () => import_sdk_core18.UnsupportedFeatureError,
|
|
73
74
|
VAULT_PERMISSION_SERVICE: () => import_sdk_core10.VAULT_PERMISSION_SERVICE,
|
|
@@ -83,6 +84,7 @@ __export(core_exports, {
|
|
|
83
84
|
canonicalizeNetworkId: () => import_sdk_core9.canonicalizeNetworkId,
|
|
84
85
|
canonicalizeSecretScope: () => import_sdk_core14.canonicalizeSecretScope,
|
|
85
86
|
checkNodeInfo: () => import_sdk_core18.checkNodeInfo,
|
|
87
|
+
clearTinyCloudDebugLogs: () => import_sdk_core9.clearTinyCloudDebugLogs,
|
|
86
88
|
composeManifestRequest: () => import_sdk_core10.composeManifestRequest,
|
|
87
89
|
createCapabilityKeyRegistry: () => import_sdk_core16.createCapabilityKeyRegistry,
|
|
88
90
|
createSharingService: () => import_sdk_core15.createSharingService,
|
|
@@ -94,9 +96,13 @@ __export(core_exports, {
|
|
|
94
96
|
deserializeDelegation: () => deserializeDelegation,
|
|
95
97
|
didCacheKey: () => import_sdk_core9.didCacheKey,
|
|
96
98
|
didEquals: () => import_sdk_core9.didEquals,
|
|
99
|
+
disableTinyCloudDebug: () => import_sdk_core9.disableTinyCloudDebug,
|
|
100
|
+
enableTinyCloudDebug: () => import_sdk_core9.enableTinyCloudDebug,
|
|
97
101
|
expandActionShortNames: () => import_sdk_core10.expandActionShortNames,
|
|
98
102
|
expandPermissionEntries: () => import_sdk_core10.expandPermissionEntries,
|
|
99
103
|
expandPermissionEntry: () => import_sdk_core10.expandPermissionEntry,
|
|
104
|
+
getTinyCloudDebugLogs: () => import_sdk_core9.getTinyCloudDebugLogs,
|
|
105
|
+
installTinyCloudDebugGlobals: () => import_sdk_core9.installTinyCloudDebugGlobals,
|
|
100
106
|
isCapabilitySubset: () => import_sdk_core10.isCapabilitySubset,
|
|
101
107
|
isEvmAddress: () => import_sdk_core9.isEvmAddress,
|
|
102
108
|
loadManifest: () => import_sdk_core10.loadManifest,
|
|
@@ -114,6 +120,7 @@ __export(core_exports, {
|
|
|
114
120
|
resolveSecretPath: () => import_sdk_core14.resolveSecretPath,
|
|
115
121
|
resourceCapabilitiesToSpaceAbilitiesMap: () => import_sdk_core10.resourceCapabilitiesToSpaceAbilitiesMap,
|
|
116
122
|
serializeDelegation: () => serializeDelegation,
|
|
123
|
+
tinyCloudDebugLogger: () => import_sdk_core9.tinyCloudDebugLogger,
|
|
117
124
|
validateManifest: () => import_sdk_core10.validateManifest
|
|
118
125
|
});
|
|
119
126
|
module.exports = __toCommonJS(core_exports);
|
|
@@ -1186,12 +1193,13 @@ var import_sdk_core3 = require("@tinycloud/sdk-core");
|
|
|
1186
1193
|
// src/DelegatedAccess.ts
|
|
1187
1194
|
var import_sdk_core4 = require("@tinycloud/sdk-core");
|
|
1188
1195
|
var DelegatedAccess = class {
|
|
1189
|
-
constructor(session, delegation, host, invoke, telemetry) {
|
|
1196
|
+
constructor(session, delegation, host, invoke, invokeAny, telemetry) {
|
|
1190
1197
|
this.session = session;
|
|
1191
1198
|
this._delegation = delegation;
|
|
1192
1199
|
this.host = host;
|
|
1193
1200
|
this._serviceContext = new import_sdk_core4.ServiceContext({
|
|
1194
1201
|
invoke,
|
|
1202
|
+
invokeAny,
|
|
1195
1203
|
fetch: globalThis.fetch.bind(globalThis),
|
|
1196
1204
|
hosts: [host],
|
|
1197
1205
|
telemetry
|
|
@@ -4690,6 +4698,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
4690
4698
|
delegation,
|
|
4691
4699
|
targetHost,
|
|
4692
4700
|
this.wasmBindings.invoke,
|
|
4701
|
+
this.wasmBindings.invokeAny,
|
|
4693
4702
|
this.config.telemetry
|
|
4694
4703
|
);
|
|
4695
4704
|
}
|
|
@@ -4755,6 +4764,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
4755
4764
|
delegation,
|
|
4756
4765
|
targetHost,
|
|
4757
4766
|
this.wasmBindings.invoke,
|
|
4767
|
+
this.wasmBindings.invokeAny,
|
|
4758
4768
|
this.config.telemetry
|
|
4759
4769
|
);
|
|
4760
4770
|
}
|
|
@@ -4929,6 +4939,7 @@ var import_sdk_core19 = require("@tinycloud/sdk-core");
|
|
|
4929
4939
|
SpaceErrorCodes,
|
|
4930
4940
|
SpaceService,
|
|
4931
4941
|
TinyCloud,
|
|
4942
|
+
TinyCloudDebugLogger,
|
|
4932
4943
|
TinyCloudNode,
|
|
4933
4944
|
UnsupportedFeatureError,
|
|
4934
4945
|
VAULT_PERMISSION_SERVICE,
|
|
@@ -4944,6 +4955,7 @@ var import_sdk_core19 = require("@tinycloud/sdk-core");
|
|
|
4944
4955
|
canonicalizeNetworkId,
|
|
4945
4956
|
canonicalizeSecretScope,
|
|
4946
4957
|
checkNodeInfo,
|
|
4958
|
+
clearTinyCloudDebugLogs,
|
|
4947
4959
|
composeManifestRequest,
|
|
4948
4960
|
createCapabilityKeyRegistry,
|
|
4949
4961
|
createSharingService,
|
|
@@ -4955,9 +4967,13 @@ var import_sdk_core19 = require("@tinycloud/sdk-core");
|
|
|
4955
4967
|
deserializeDelegation,
|
|
4956
4968
|
didCacheKey,
|
|
4957
4969
|
didEquals,
|
|
4970
|
+
disableTinyCloudDebug,
|
|
4971
|
+
enableTinyCloudDebug,
|
|
4958
4972
|
expandActionShortNames,
|
|
4959
4973
|
expandPermissionEntries,
|
|
4960
4974
|
expandPermissionEntry,
|
|
4975
|
+
getTinyCloudDebugLogs,
|
|
4976
|
+
installTinyCloudDebugGlobals,
|
|
4961
4977
|
isCapabilitySubset,
|
|
4962
4978
|
isEvmAddress,
|
|
4963
4979
|
loadManifest,
|
|
@@ -4975,6 +4991,7 @@ var import_sdk_core19 = require("@tinycloud/sdk-core");
|
|
|
4975
4991
|
resolveSecretPath,
|
|
4976
4992
|
resourceCapabilitiesToSpaceAbilitiesMap,
|
|
4977
4993
|
serializeDelegation,
|
|
4994
|
+
tinyCloudDebugLogger,
|
|
4978
4995
|
validateManifest
|
|
4979
4996
|
});
|
|
4980
4997
|
//# sourceMappingURL=core.cjs.map
|