@tinycloud/sdk-core 2.2.0-beta.1 → 2.2.0-beta.10

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { InvokeFunction, InvokeAnyFunction, ServiceError, Result as Result$1, ServiceSession, FetchFunction, ServiceConstructor, RetryPolicy, IServiceContext, IService, IKVService, ISQLService, IDuckDbService, IHooksService, IDataVaultService } from '@tinycloud/sdk-services';
3
- export { BatchOptions, BatchResponse, ColumnInfo, DataVaultConfig, DataVaultService, DatabaseHandle, DuckDbAction, DuckDbActionType, DuckDbBatchOptions, DuckDbBatchResponse, DuckDbDatabaseHandle, DuckDbExecuteOptions, DuckDbExecuteResponse, DuckDbOptions, DuckDbQueryOptions, DuckDbQueryResponse, DuckDbService, DuckDbServiceConfig, DuckDbStatement, DuckDbValue, ErrorCode, ErrorCodes, ExecuteOptions, ExecuteResponse, FetchFunction, HookEvent, HookServiceName, HookStreamEvent, HookSubscription, HookWebhookListOptions, HookWebhookRecord, HookWebhookRegistration, HookWebhookScope, HookWebhookUnregisterOptions, HooksService, HooksServiceConfig, IDataVaultService, IDatabaseHandle, IDuckDbDatabaseHandle, IDuckDbService, IHooksService, IKVService, IPrefixedKVService, ISQLService, IService, IServiceContext, InvokeAnyEntry, InvokeAnyFunction, InvokeFunction, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, PrefixedKVService, QueryOptions, QueryResponse, Result, RetryPolicy, SQLAction, SQLActionType, SQLService, SQLServiceConfig, SchemaInfo, ServiceContext, ServiceContextConfig, ServiceError, ServiceSession, SqlStatement, SqlValue, SubscribeOptions, TableInfo, VaultCrypto, VaultEntry, VaultError, VaultGetOptions, VaultGrantOptions, VaultHeaders, VaultListOptions, VaultPublicSpaceKVActions, VaultPutOptions, ViewInfo, WasmVaultFunctions, createVaultCrypto, defaultRetryPolicy, err, ok, serviceError } from '@tinycloud/sdk-services';
3
+ export { BatchOptions, BatchResponse, ColumnInfo, DataVaultConfig, DataVaultService, DatabaseHandle, DuckDbAction, DuckDbActionType, DuckDbBatchOptions, DuckDbBatchResponse, DuckDbDatabaseHandle, DuckDbExecuteOptions, DuckDbExecuteResponse, DuckDbOptions, DuckDbQueryOptions, DuckDbQueryResponse, DuckDbService, DuckDbServiceConfig, DuckDbStatement, DuckDbValue, ErrorCode, ErrorCodes, ExecuteOptions, ExecuteResponse, FetchFunction, HookEvent, HookServiceName, HookStreamEvent, HookSubscription, HookWebhookListOptions, HookWebhookRecord, HookWebhookRegistration, HookWebhookScope, HookWebhookUnregisterOptions, HooksService, HooksServiceConfig, IDataVaultService, IDatabaseHandle, IDuckDbDatabaseHandle, IDuckDbService, IHooksService, IKVService, IPrefixedKVService, ISQLService, ISecretsService, IService, IServiceContext, InvokeAnyEntry, InvokeAnyFunction, InvokeFunction, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, PrefixedKVService, QueryOptions, QueryResponse, ResolvedSecretPath, Result, RetryPolicy, SECRET_NAME_RE, SQLAction, SQLActionType, SQLService, SQLServiceConfig, SchemaInfo, SecretPayload, SecretScopeOptions, SecretsError, SecretsService, ServiceContext, ServiceContextConfig, ServiceError, ServiceSession, SqlStatement, SqlValue, SubscribeOptions, TableInfo, VaultCrypto, VaultEntry, VaultError, VaultGetOptions, VaultGrantOptions, VaultHeaders, VaultListOptions, VaultPublicSpaceKVActions, VaultPutOptions, ViewInfo, WasmVaultFunctions, canonicalizeSecretScope, createVaultCrypto, defaultRetryPolicy, err, ok, resolveSecretPath, serviceError } from '@tinycloud/sdk-services';
4
4
  export { SiweMessage } from 'siwe';
5
5
 
6
6
  /**
@@ -200,8 +200,9 @@ interface IENSResolver {
200
200
  * in their `manifest.json` and the shape we compare against when performing
201
201
  * the capability-subset derivability check in the delegation flow.
202
202
  *
203
- * `service` uses the long form (e.g. `"tinycloud.kv"`, `"tinycloud.sql"`)
204
- * which matches the ability-namespace half of the full action URN.
203
+ * `service` uses the long form (e.g. `"tinycloud.kv"`, `"tinycloud.sql"`).
204
+ * `"tinycloud.vault"` is an SDK-only shorthand that expands to the KV
205
+ * resources the vault service uses; it is never encoded as a recap service.
205
206
  */
206
207
  interface PermissionEntry {
207
208
  /** Service namespace, e.g. "tinycloud.kv", "tinycloud.sql", "tinycloud.duckdb", "tinycloud.capabilities". */
@@ -229,12 +230,21 @@ interface PermissionEntry {
229
230
  /** User/agent-facing context for why this permission is requested. */
230
231
  description?: string;
231
232
  }
233
+ type ManifestSecretActions = true | string | string[] | {
234
+ /** Actual vault secret name. Defaults to the manifest object key. */
235
+ name?: string;
236
+ /** Optional scoped secret namespace. Omit for global secrets. */
237
+ scope?: string;
238
+ actions?: string | string[];
239
+ expiry?: string;
240
+ description?: string;
241
+ };
232
242
  /**
233
243
  * The valid values for `Manifest.defaults`.
234
244
  *
235
245
  * - `false` → no auto-included permissions
236
246
  * - `true` → standard tier (KV + SQL read/write + capabilities:read)
237
- * - `"admin"` → standard + SQL ddl + capabilities:admin
247
+ * - `"admin"` → standard + SQL ddl
238
248
  * - `"all"` → everything the SDK supports (including DuckDB)
239
249
  *
240
250
  * Unknown string values silently fall back to `true`. Values are normalized
@@ -281,6 +291,11 @@ interface Manifest {
281
291
  * DuckDB (opt-in), or `skipPrefix: true` entries.
282
292
  */
283
293
  permissions?: PermissionEntry[];
294
+ /**
295
+ * Secret name shorthand. Entries resolve to encrypted vault KV resources in
296
+ * the `secrets` space.
297
+ */
298
+ secrets?: Record<string, ManifestSecretActions>;
284
299
  }
285
300
  /**
286
301
  * A resolved permission entry with fully-expanded paths and action URNs.
@@ -384,6 +399,8 @@ declare const DEFAULT_MANIFEST_SPACE = "applications";
384
399
  declare const ACCOUNT_REGISTRY_SPACE = "account";
385
400
  /** Account-space KV prefix used for installed-application registry records. */
386
401
  declare const ACCOUNT_REGISTRY_PATH = "applications/";
402
+ /** SDK-only permission service for encrypted vault resources. */
403
+ declare const VAULT_PERMISSION_SERVICE = "tinycloud.vault";
387
404
  /**
388
405
  * Known services and their short-form (recap URI) names. The TinyCloud
389
406
  * node encodes the recap resource URI with the short service name, while
@@ -414,6 +431,22 @@ declare function parseExpiry(duration: string): number;
414
431
  * → `["tinycloud.kv/get"]` (passed through unchanged)
415
432
  */
416
433
  declare function expandActionShortNames(service: string, actions: readonly string[]): string[];
434
+ /**
435
+ * Expand SDK virtual permission services into concrete recap-capable services.
436
+ *
437
+ * Today this handles `"tinycloud.vault"`, which is backed by KV resources:
438
+ * - read/get: `keys/<path>` + `vault/<path>` with `tinycloud.kv/get`
439
+ * - write/put: `keys/<path>` + `vault/<path>` with `tinycloud.kv/put`
440
+ * - delete/del: `keys/<path>` + `vault/<path>` with `tinycloud.kv/del`
441
+ * - list: `vault/<path>` with `tinycloud.kv/list`
442
+ * - head: `vault/<path>` with `tinycloud.kv/get`
443
+ * - metadata: `vault/<path>` with `tinycloud.kv/metadata`
444
+ */
445
+ declare function expandPermissionEntry(entry: PermissionEntry): PermissionEntry[];
446
+ /**
447
+ * Expand a list of permission entries using {@link expandPermissionEntry}.
448
+ */
449
+ declare function expandPermissionEntries(entries: readonly PermissionEntry[]): PermissionEntry[];
417
450
  /**
418
451
  * Apply the manifest prefix to a permission path per the spec rules.
419
452
  *
@@ -2033,15 +2066,15 @@ declare const SpaceInfoSchema: z.ZodObject<{
2033
2066
  type: "owned" | "delegated";
2034
2067
  id: string;
2035
2068
  owner: string;
2036
- expiresAt?: Date | undefined;
2037
2069
  name?: string | undefined;
2070
+ expiresAt?: Date | undefined;
2038
2071
  permissions?: string[] | undefined;
2039
2072
  }, {
2040
2073
  type: "owned" | "delegated";
2041
2074
  id: string;
2042
2075
  owner: string;
2043
- expiresAt?: Date | undefined;
2044
2076
  name?: string | undefined;
2077
+ expiresAt?: Date | undefined;
2045
2078
  permissions?: string[] | undefined;
2046
2079
  }>;
2047
2080
  type SpaceInfo = z.infer<typeof SpaceInfoSchema>;
@@ -2318,14 +2351,14 @@ declare const DelegatedResourceSchema: z.ZodObject<{
2318
2351
  actions: z.ZodArray<z.ZodString, "many">;
2319
2352
  }, "strip", z.ZodTypeAny, {
2320
2353
  path: string;
2321
- service: string;
2322
- space: string;
2323
2354
  actions: string[];
2355
+ space: string;
2356
+ service: string;
2324
2357
  }, {
2325
2358
  path: string;
2326
- service: string;
2327
- space: string;
2328
2359
  actions: string[];
2360
+ space: string;
2361
+ service: string;
2329
2362
  }>;
2330
2363
  type DelegatedResource = z.infer<typeof DelegatedResourceSchema>;
2331
2364
  /**
@@ -2416,21 +2449,21 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
2416
2449
  actions: z.ZodArray<z.ZodString, "many">;
2417
2450
  }, "strip", z.ZodTypeAny, {
2418
2451
  path: string;
2419
- service: string;
2420
- space: string;
2421
2452
  actions: string[];
2453
+ space: string;
2454
+ service: string;
2422
2455
  }, {
2423
2456
  path: string;
2424
- service: string;
2425
- space: string;
2426
2457
  actions: string[];
2458
+ space: string;
2459
+ service: string;
2427
2460
  }>, "many">;
2428
2461
  }, "strip", z.ZodTypeAny, {
2429
2462
  resources: {
2430
2463
  path: string;
2431
- service: string;
2432
- space: string;
2433
2464
  actions: string[];
2465
+ space: string;
2466
+ service: string;
2434
2467
  }[];
2435
2468
  expiry: Date;
2436
2469
  delegation: string;
@@ -2439,9 +2472,9 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
2439
2472
  }, {
2440
2473
  resources: {
2441
2474
  path: string;
2442
- service: string;
2443
- space: string;
2444
2475
  actions: string[];
2476
+ space: string;
2477
+ service: string;
2445
2478
  }[];
2446
2479
  expiry: Date;
2447
2480
  delegation: string;
@@ -4013,6 +4046,10 @@ interface ISpace {
4013
4046
  * KV operations scoped to this space.
4014
4047
  */
4015
4048
  readonly kv: IKVService;
4049
+ /**
4050
+ * Data Vault operations scoped to this space.
4051
+ */
4052
+ readonly vault: IDataVaultService;
4016
4053
  /**
4017
4054
  * Delegation operations scoped to this space.
4018
4055
  */
@@ -4042,6 +4079,10 @@ interface SpaceConfig {
4042
4079
  * Factory function to create a space-scoped KV service.
4043
4080
  */
4044
4081
  createKV: (spaceId: string) => IKVService;
4082
+ /**
4083
+ * Factory function to create a space-scoped Data Vault service.
4084
+ */
4085
+ createVault: (spaceId: string) => IDataVaultService;
4045
4086
  /**
4046
4087
  * Factory function to create space-scoped delegations.
4047
4088
  */
@@ -4081,6 +4122,7 @@ declare class Space implements ISpace {
4081
4122
  private readonly _id;
4082
4123
  private readonly _name;
4083
4124
  private readonly _kv;
4125
+ private readonly _vault;
4084
4126
  private readonly _delegations;
4085
4127
  private readonly _sharing;
4086
4128
  private readonly _getInfo;
@@ -4102,6 +4144,10 @@ declare class Space implements ISpace {
4102
4144
  * KV operations scoped to this space.
4103
4145
  */
4104
4146
  get kv(): IKVService;
4147
+ /**
4148
+ * Data Vault operations scoped to this space.
4149
+ */
4150
+ get vault(): IDataVaultService;
4105
4151
  /**
4106
4152
  * Delegation operations scoped to this space.
4107
4153
  */
@@ -4177,6 +4223,8 @@ interface SpaceServiceConfig {
4177
4223
  capabilityRegistry?: ICapabilityKeyRegistry;
4178
4224
  /** Factory function to create a space-scoped KV service */
4179
4225
  createKVService?: (spaceId: string) => IKVService;
4226
+ /** Factory function to create a space-scoped Data Vault service */
4227
+ createVaultService?: (spaceId: string) => IDataVaultService;
4180
4228
  /** User's PKH DID (derived from address or provided explicitly) */
4181
4229
  userDid?: string;
4182
4230
  /** Optional SharingService for v2 sharing links (client-side) */
@@ -4303,6 +4351,7 @@ declare class SpaceService implements ISpaceService {
4303
4351
  private fetchFn;
4304
4352
  private capabilityRegistry?;
4305
4353
  private createKVServiceFn?;
4354
+ private createVaultServiceFn?;
4306
4355
  private _userDid?;
4307
4356
  private sharingService?;
4308
4357
  private createDelegationFn?;
@@ -4385,6 +4434,10 @@ declare class SpaceService implements ISpaceService {
4385
4434
  * Create a space-scoped KV service.
4386
4435
  */
4387
4436
  private createSpaceScopedKV;
4437
+ /**
4438
+ * Create a space-scoped Data Vault service.
4439
+ */
4440
+ private createSpaceScopedVault;
4388
4441
  /**
4389
4442
  * Create space-scoped delegation operations.
4390
4443
  */
@@ -4437,4 +4490,103 @@ interface NodeInfo {
4437
4490
  }
4438
4491
  declare function checkNodeInfo(host: string, sdkProtocol: number, fetchFn?: typeof globalThis.fetch): Promise<NodeInfo>;
4439
4492
 
4440
- export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CapabilityEntry, CapabilityKeyRegistry, type CapabilityKeyRegistryErrorCode, CapabilityKeyRegistryErrorCodes, type ClientSession, ClientSessionSchema, type ComposeManifestOptions, type ComposedManifestRequest, type CreateDelegationFunction, type CreateDelegationParams, type CreateDelegationWasmParams, type CreateDelegationWasmResult, DEFAULT_DEFAULTS, DEFAULT_EXPIRY, DEFAULT_MANIFEST_SPACE, DEFAULT_MANIFEST_VERSION, type DelegatedResource, type Delegation, type DelegationApiResponse, type DelegationChain, type DelegationChainV2, type DelegationDirection, type DelegationError, type DelegationErrorCode, DelegationErrorCodes, type DelegationFilters, DelegationManager, type DelegationManagerConfig, type DelegationRecord, type Result as DelegationResult, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type Extension, type GenerateShareParams, type ICapabilityKeyRegistry, type IENSResolver, type INotificationHandler, type ISessionManager, type ISessionStorage, type ISharingService, type ISigner, type ISpace, type ISpaceCreationHandler, type ISpaceScopedDelegations, type ISpaceScopedSharing, type ISpaceService, type IUserAuthorization, type IWasmBindings, type IngestOptions, type JWK, type KeyInfo, type KeyProvider, type KeyType, type Manifest, type ManifestDefaults, type ManifestRegistryRecord, ManifestValidationError, type NodeInfo, type ParseRecapFromSiwe, type PartialSiweMessage, type PermissionEntry, PermissionNotInManifestError, type PersistedSessionData, type PersistedTinyCloudSession, ProtocolMismatchError, type ReceiveOptions, type ResolvedCapabilities, type ResolvedDelegate, type ResourceCapability, SERVICE_LONG_TO_SHORT, SERVICE_SHORT_TO_LONG, type ServerHost, SessionExpiredError, type ShareAccess, type ShareLink, type ShareLinkData, type ShareSchema, SharingService, type SharingServiceConfig, type SignCallback, type SignInOptions, type SignRequest, type SignResponse, type SignStrategy, SilentNotificationHandler, type SiweConfig, SiweConfigSchema, Space, type SpaceAbilitiesMap, type SpaceConfig, type SpaceCreationContext, type SpaceDelegationParams, type SpaceErrorCode, SpaceErrorCodes, type SpaceHostResult, type SpaceInfo, type SpaceOwnership, SpaceService, type SpaceServiceConfig, type StoredDelegationChain, type SubsetCheckResult, TinyCloud, type TinyCloudConfig, type TinyCloudSession, UnsupportedFeatureError, type UserAuthorizationConfig, type ValidationError, VersionCheckError, type WasmRecapEntry, activateSessionWithHost, applyPrefix, buildSpaceUri, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, expandActionShortNames, fetchPeerId, isCapabilitySubset, loadManifest, makePublicSpaceId, manifestAbilitiesUnion, normalizeDefaults, parseExpiry, parseRecapCapabilities, parseSpaceUri, resolveManifest, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, submitHostDelegation, validateClientSession, validateManifest, validatePersistedSessionData };
4493
+ /**
4494
+ * TinyCloud location registry helpers.
4495
+ *
4496
+ * The registry maps a DID to one or more multiaddrs. Registry records are
4497
+ * signed by the DID subject; centralized storage is only a discovery cache.
4498
+ */
4499
+ interface LocationRecordPayload {
4500
+ version: 1;
4501
+ subject: string;
4502
+ multiaddrs: string[];
4503
+ updated_at: string;
4504
+ sequence: number;
4505
+ }
4506
+ interface LocationRecord extends LocationRecordPayload {
4507
+ signature: string;
4508
+ }
4509
+ type LocationSource = "explicit" | "blockchain" | "centralized" | "fallback";
4510
+ declare const DEFAULT_TINYCLOUD_LOCATION_REGISTRY_URL = "https://registry.tinycloud.xyz";
4511
+ declare const DEFAULT_TINYCLOUD_FALLBACK_HOST = "https://node.tinycloud.xyz";
4512
+ interface LocationCandidate {
4513
+ source: LocationSource;
4514
+ multiaddrs: string[];
4515
+ record?: LocationRecord;
4516
+ }
4517
+ interface LocationResolutionAttempt {
4518
+ source: LocationSource;
4519
+ candidate?: LocationCandidate;
4520
+ error?: Error;
4521
+ }
4522
+ interface ResolvedCloudLocation {
4523
+ subject: string;
4524
+ source: LocationSource;
4525
+ multiaddrs: string[];
4526
+ record?: LocationRecord;
4527
+ attempts: LocationResolutionAttempt[];
4528
+ resolvedAt: string;
4529
+ }
4530
+ interface ResolveCloudLocationOptions {
4531
+ /** Highest-priority location supplied directly by the caller. */
4532
+ explicitMultiaddrs?: string[];
4533
+ /** Optional blockchain resolver adapter. */
4534
+ blockchain?: (subject: string) => Promise<LocationCandidateInput | null | undefined>;
4535
+ /** Centralized location registry base URL, e.g. https://registry.tinycloud.xyz. */
4536
+ centralizedRegistryUrl?: string;
4537
+ /** Lowest-priority fallback location. */
4538
+ fallbackMultiaddrs?: string[];
4539
+ /** Custom fetch implementation. Defaults to globalThis.fetch. */
4540
+ fetch?: typeof fetch;
4541
+ /** Verify centralized/blockchain record signatures. Default true. */
4542
+ verifyRecords?: boolean;
4543
+ }
4544
+ interface ResolvedTinyCloudHosts {
4545
+ hosts: string[];
4546
+ location: ResolvedCloudLocation;
4547
+ }
4548
+ interface ResolveTinyCloudHostsOptions {
4549
+ /** Highest-priority TinyCloud HTTP host URLs or multiaddrs supplied directly. */
4550
+ explicitHosts?: string[];
4551
+ /** Optional blockchain resolver adapter. */
4552
+ blockchain?: ResolveCloudLocationOptions["blockchain"];
4553
+ /** Centralized location registry URL. Default https://registry.tinycloud.xyz. */
4554
+ registryUrl?: string | null;
4555
+ /** Lowest-priority fallback HTTP host URLs or multiaddrs. Default hosted TinyCloud node. */
4556
+ fallbackHosts?: string[] | null;
4557
+ /** Custom fetch implementation. Defaults to globalThis.fetch. */
4558
+ fetch?: typeof fetch;
4559
+ /** Verify centralized/blockchain record signatures. Default true. */
4560
+ verifyRecords?: boolean;
4561
+ }
4562
+ type LocationCandidateInput = string[] | LocationRecord | {
4563
+ multiaddrs: string[];
4564
+ record?: LocationRecord;
4565
+ };
4566
+ type LocationRecordSigner = {
4567
+ type: "did:pkh";
4568
+ signMessage(message: string): Promise<string>;
4569
+ } | {
4570
+ type: "did:key";
4571
+ signBytes(bytes: Uint8Array): Promise<Uint8Array>;
4572
+ };
4573
+ declare class LocationRecordValidationError extends Error {
4574
+ constructor(message: string);
4575
+ }
4576
+ declare class CloudLocationResolutionError extends Error {
4577
+ readonly attempts: LocationResolutionAttempt[];
4578
+ constructor(subject: string, attempts: LocationResolutionAttempt[]);
4579
+ }
4580
+ declare function locationPayloadForRecord(record: LocationRecord): LocationRecordPayload;
4581
+ declare function canonicalLocationPayload(payload: LocationRecordPayload): string;
4582
+ declare function signLocationRecord(payload: LocationRecordPayload, signer: LocationRecordSigner): Promise<LocationRecord>;
4583
+ declare function validateLocationRecordPayload(input: unknown): LocationRecordPayload;
4584
+ declare function validateLocationRecord(input: unknown): LocationRecord;
4585
+ declare function verifyLocationRecord(input: LocationRecord): Promise<boolean>;
4586
+ declare function fetchLocationRecord(registryUrl: string, subject: string, fetchFn?: typeof fetch): Promise<LocationRecord | null>;
4587
+ declare function resolveCloudLocation(subject: string, options?: ResolveCloudLocationOptions): Promise<ResolvedCloudLocation>;
4588
+ declare function resolveTinyCloudHosts(subject: string, options?: ResolveTinyCloudHostsOptions): Promise<ResolvedTinyCloudHosts>;
4589
+ declare function multiaddrToHttpUrl(input: string): string;
4590
+ declare function httpUrlToMultiaddr(input: string): string;
4591
+
4592
+ export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CapabilityEntry, CapabilityKeyRegistry, type CapabilityKeyRegistryErrorCode, CapabilityKeyRegistryErrorCodes, type ClientSession, ClientSessionSchema, CloudLocationResolutionError, type ComposeManifestOptions, type ComposedManifestRequest, type CreateDelegationFunction, type CreateDelegationParams, type CreateDelegationWasmParams, type CreateDelegationWasmResult, DEFAULT_DEFAULTS, DEFAULT_EXPIRY, DEFAULT_MANIFEST_SPACE, DEFAULT_MANIFEST_VERSION, DEFAULT_TINYCLOUD_FALLBACK_HOST, DEFAULT_TINYCLOUD_LOCATION_REGISTRY_URL, type DelegatedResource, type Delegation, type DelegationApiResponse, type DelegationChain, type DelegationChainV2, type DelegationDirection, type DelegationError, type DelegationErrorCode, DelegationErrorCodes, type DelegationFilters, DelegationManager, type DelegationManagerConfig, type DelegationRecord, type Result as DelegationResult, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type Extension, type GenerateShareParams, type ICapabilityKeyRegistry, type IENSResolver, type INotificationHandler, type ISessionManager, type ISessionStorage, type ISharingService, type ISigner, type ISpace, type ISpaceCreationHandler, type ISpaceScopedDelegations, type ISpaceScopedSharing, type ISpaceService, type IUserAuthorization, type IWasmBindings, type IngestOptions, type JWK, type KeyInfo, type KeyProvider, type KeyType, type LocationCandidate, type LocationCandidateInput, type LocationRecord, type LocationRecordPayload, type LocationRecordSigner, LocationRecordValidationError, type LocationResolutionAttempt, type LocationSource, type Manifest, type ManifestDefaults, type ManifestRegistryRecord, type ManifestSecretActions, ManifestValidationError, type NodeInfo, type ParseRecapFromSiwe, type PartialSiweMessage, type PermissionEntry, PermissionNotInManifestError, type PersistedSessionData, type PersistedTinyCloudSession, ProtocolMismatchError, type ReceiveOptions, type ResolveCloudLocationOptions, type ResolveTinyCloudHostsOptions, type ResolvedCapabilities, type ResolvedCloudLocation, type ResolvedDelegate, type ResolvedTinyCloudHosts, type ResourceCapability, SERVICE_LONG_TO_SHORT, SERVICE_SHORT_TO_LONG, type ServerHost, SessionExpiredError, type ShareAccess, type ShareLink, type ShareLinkData, type ShareSchema, SharingService, type SharingServiceConfig, type SignCallback, type SignInOptions, type SignRequest, type SignResponse, type SignStrategy, SilentNotificationHandler, type SiweConfig, SiweConfigSchema, Space, type SpaceAbilitiesMap, type SpaceConfig, type SpaceCreationContext, type SpaceDelegationParams, type SpaceErrorCode, SpaceErrorCodes, type SpaceHostResult, type SpaceInfo, type SpaceOwnership, SpaceService, type SpaceServiceConfig, type StoredDelegationChain, type SubsetCheckResult, TinyCloud, type TinyCloudConfig, type TinyCloudSession, UnsupportedFeatureError, type UserAuthorizationConfig, VAULT_PERMISSION_SERVICE, type ValidationError, VersionCheckError, type WasmRecapEntry, activateSessionWithHost, applyPrefix, buildSpaceUri, canonicalLocationPayload, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, fetchLocationRecord, fetchPeerId, httpUrlToMultiaddr, isCapabilitySubset, loadManifest, locationPayloadForRecord, makePublicSpaceId, manifestAbilitiesUnion, multiaddrToHttpUrl, normalizeDefaults, parseExpiry, parseRecapCapabilities, parseSpaceUri, resolveCloudLocation, resolveManifest, resolveTinyCloudHosts, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, signLocationRecord, submitHostDelegation, validateClientSession, validateLocationRecord, validateLocationRecordPayload, validateManifest, validatePersistedSessionData, verifyLocationRecord };