@tinycloud/node-sdk 2.4.0-beta.16 → 2.4.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/{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 +5 -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 +5 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +5 -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 +5 -1
- 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
|
@@ -1186,12 +1186,13 @@ var import_sdk_core3 = require("@tinycloud/sdk-core");
|
|
|
1186
1186
|
// src/DelegatedAccess.ts
|
|
1187
1187
|
var import_sdk_core4 = require("@tinycloud/sdk-core");
|
|
1188
1188
|
var DelegatedAccess = class {
|
|
1189
|
-
constructor(session, delegation, host, invoke, telemetry) {
|
|
1189
|
+
constructor(session, delegation, host, invoke, invokeAny, telemetry) {
|
|
1190
1190
|
this.session = session;
|
|
1191
1191
|
this._delegation = delegation;
|
|
1192
1192
|
this.host = host;
|
|
1193
1193
|
this._serviceContext = new import_sdk_core4.ServiceContext({
|
|
1194
1194
|
invoke,
|
|
1195
|
+
invokeAny,
|
|
1195
1196
|
fetch: globalThis.fetch.bind(globalThis),
|
|
1196
1197
|
hosts: [host],
|
|
1197
1198
|
telemetry
|
|
@@ -2027,6 +2028,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
2027
2028
|
}
|
|
2028
2029
|
scheduleAccountRegistrySync() {
|
|
2029
2030
|
void this.withAccountRegistryRetry(async () => {
|
|
2031
|
+
void this.account.index.ensure();
|
|
2030
2032
|
await this.writeManifestRegistryRecords();
|
|
2031
2033
|
const spaces = await this.account.spaces.syncAccessible();
|
|
2032
2034
|
if (!spaces.ok) {
|
|
@@ -4689,6 +4691,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
4689
4691
|
delegation,
|
|
4690
4692
|
targetHost,
|
|
4691
4693
|
this.wasmBindings.invoke,
|
|
4694
|
+
this.wasmBindings.invokeAny,
|
|
4692
4695
|
this.config.telemetry
|
|
4693
4696
|
);
|
|
4694
4697
|
}
|
|
@@ -4754,6 +4757,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
4754
4757
|
delegation,
|
|
4755
4758
|
targetHost,
|
|
4756
4759
|
this.wasmBindings.invoke,
|
|
4760
|
+
this.wasmBindings.invokeAny,
|
|
4757
4761
|
this.config.telemetry
|
|
4758
4762
|
);
|
|
4759
4763
|
}
|