@tinycloud/sdk-services 2.0.3 → 2.1.0-beta.0

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.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IServiceContext, a as InvokeFunction, F as FetchFunction, S as ServiceSession, R as RetryPolicy, b as IService, c as ServiceError, d as Result, B as BaseService, e as StorageQuotaInfo } from './BaseService-D9BFm_rV.cjs';
2
- export { E as ErrorCode, f as ErrorCodes, g as EventHandler, h as FetchRequestInit, i as FetchResponse, j as InvocationFact, k as InvocationFacts, l as ServiceErrorEvent, m as ServiceHeaders, n as ServiceRequestEvent, o as ServiceResponseEvent, p as ServiceRetryEvent, T as TelemetryEvents, q as defaultRetryPolicy, r as err, s as ok, t as serviceError } from './BaseService-D9BFm_rV.cjs';
1
+ import { I as IServiceContext, a as InvokeFunction, b as InvokeAnyFunction, F as FetchFunction, S as ServiceSession, R as RetryPolicy, c as IService, d as ServiceError, e as Result, B as BaseService, f as StorageQuotaInfo } from './BaseService-BiS6HRwE.cjs';
2
+ export { E as ErrorCode, g as ErrorCodes, h as EventHandler, i as FetchRequestInit, j as FetchResponse, k as InvocationFact, l as InvocationFacts, m as InvokeAnyEntry, n as ServiceErrorEvent, o as ServiceHeaders, p as ServiceRequestEvent, q as ServiceResponseEvent, r as ServiceRetryEvent, T as TelemetryEvents, s as defaultRetryPolicy, t as err, u as ok, v as serviceError } from './BaseService-BiS6HRwE.cjs';
3
3
  import { z } from 'zod';
4
4
  import { IKVService } from './kv/index.cjs';
5
5
  export { IPrefixedKVService, KVAction, KVActionType, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, PrefixedKVService } from './kv/index.cjs';
@@ -732,6 +732,8 @@ type EventHandler = (data: unknown) => void;
732
732
  interface ServiceContextConfig {
733
733
  /** Function to invoke WASM operations */
734
734
  invoke: InvokeFunction;
735
+ /** Optional function to mint a single authorization header for multiple capabilities */
736
+ invokeAny?: InvokeAnyFunction;
735
737
  /** Function to make HTTP requests (defaults to globalThis.fetch) */
736
738
  fetch?: FetchFunction;
737
739
  /** List of TinyCloud host URLs */
@@ -768,6 +770,7 @@ declare class ServiceContext implements IServiceContext {
768
770
  private _eventHandlers;
769
771
  private _abortController;
770
772
  private readonly _invoke;
773
+ private readonly _invokeAny?;
771
774
  private readonly _fetch;
772
775
  private readonly _hosts;
773
776
  private readonly _retryPolicy;
@@ -790,6 +793,10 @@ declare class ServiceContext implements IServiceContext {
790
793
  * Get the invoke function for WASM operations.
791
794
  */
792
795
  get invoke(): InvokeFunction;
796
+ /**
797
+ * Get the multi-resource invoke function when available.
798
+ */
799
+ get invokeAny(): InvokeAnyFunction | undefined;
793
800
  /**
794
801
  * Get the fetch function for HTTP requests.
795
802
  */
@@ -1247,6 +1254,96 @@ declare class DuckDbDatabaseHandle implements IDuckDbDatabaseHandle {
1247
1254
  import(data: Uint8Array, options?: DuckDbOptions): Promise<Result<void>>;
1248
1255
  }
1249
1256
 
1257
+ type HookServiceName = "kv" | "sql" | "duckdb";
1258
+ interface HookSubscription {
1259
+ space: string;
1260
+ service: HookServiceName;
1261
+ pathPrefix?: string;
1262
+ abilities?: string[];
1263
+ }
1264
+ interface HookWebhookScope {
1265
+ space: string;
1266
+ service: HookServiceName;
1267
+ pathPrefix?: string;
1268
+ abilities?: string[];
1269
+ }
1270
+ interface HookWebhookRegistration extends HookWebhookScope {
1271
+ callbackUrl: string;
1272
+ secret: string;
1273
+ }
1274
+ interface HookWebhookRecord extends HookWebhookScope {
1275
+ id: string;
1276
+ subscriberDid?: string;
1277
+ callbackUrl: string;
1278
+ active: boolean;
1279
+ createdAt: string;
1280
+ }
1281
+ interface HookWebhookListOptions {
1282
+ space?: string;
1283
+ service?: HookServiceName;
1284
+ pathPrefix?: string;
1285
+ }
1286
+ interface HookWebhookUnregisterOptions {
1287
+ target?: HookWebhookScope;
1288
+ }
1289
+ interface HookEvent {
1290
+ type: "write";
1291
+ id: string;
1292
+ space: string;
1293
+ service: string;
1294
+ ability: string;
1295
+ path?: string;
1296
+ actor: string;
1297
+ epoch: string;
1298
+ eventIndex: number;
1299
+ timestamp: string;
1300
+ }
1301
+ interface HookStreamEvent {
1302
+ event: string;
1303
+ data: string;
1304
+ id?: string;
1305
+ }
1306
+ interface SubscribeOptions {
1307
+ ttlSeconds?: number;
1308
+ signal?: AbortSignal;
1309
+ }
1310
+ interface HooksServiceConfig extends Record<string, unknown> {
1311
+ host?: string;
1312
+ }
1313
+
1314
+ interface IHooksService {
1315
+ subscribe(subscriptions: HookSubscription[], options?: SubscribeOptions): AsyncIterable<HookEvent>;
1316
+ register(webhook: HookWebhookRegistration): Promise<Result<HookWebhookRecord>>;
1317
+ list(options?: HookWebhookListOptions): Promise<Result<HookWebhookRecord[]>>;
1318
+ unregister(id: string, options?: HookWebhookUnregisterOptions): Promise<Result<void>>;
1319
+ }
1320
+
1321
+ declare class HooksService extends BaseService implements IHooksService {
1322
+ static readonly serviceName = "hooks";
1323
+ protected _config: HooksServiceConfig;
1324
+ private readonly _subscribers;
1325
+ private _sharedStreamTask?;
1326
+ private _sharedStreamAbort?;
1327
+ private _refreshChain;
1328
+ private _activeSignature;
1329
+ constructor(config?: HooksServiceConfig);
1330
+ get config(): HooksServiceConfig;
1331
+ private get host();
1332
+ subscribe(subscriptions: HookSubscription[], options?: SubscribeOptions): AsyncIterable<HookEvent>;
1333
+ register(webhook: HookWebhookRegistration): Promise<Result<HookWebhookRecord>>;
1334
+ list(options?: HookWebhookListOptions): Promise<Result<HookWebhookRecord[]>>;
1335
+ unregister(id: string, options?: HookWebhookUnregisterOptions): Promise<Result<void>>;
1336
+ private scheduleSharedStreamRefresh;
1337
+ private refreshSharedStream;
1338
+ private collectSharedStreamState;
1339
+ private runSharedStream;
1340
+ private abortSharedStream;
1341
+ private createHookHeaders;
1342
+ private mintHookTicket;
1343
+ private openHookStream;
1344
+ private createInvokeHeaders;
1345
+ }
1346
+
1250
1347
  interface QuotaConfig {
1251
1348
  /** Called when a storage quota error is detected (402/413) */
1252
1349
  onUpgradeRequired?: (info: StorageQuotaInfo) => void;
@@ -1840,4 +1937,4 @@ interface WasmVaultFunctions {
1840
1937
  }
1841
1938
  declare function createVaultCrypto(wasm: WasmVaultFunctions): VaultCrypto;
1842
1939
 
1843
- export { BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DuckDbAction, type DuckDbActionType, type DuckDbBatchOptions, type BatchResponse as DuckDbBatchResponse, DuckDbDatabaseHandle, type DuckDbExecuteOptions, type ExecuteResponse as DuckDbExecuteResponse, type DuckDbOptions, type DuckDbQueryOptions, type QueryResponse as DuckDbQueryResponse, DuckDbService, type DuckDbServiceConfig, type DuckDbStatement, type DuckDbValue, FetchFunction, GenericKVResponseSchema, type GenericKVResponseType, GenericResultSchema, type IDataVaultService, type IDuckDbDatabaseHandle, type IDuckDbService, IKVService, IService, IServiceContext, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type QuotaConfig, type QuotaStatus, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, type SchemaInfo, type ServiceConstructor, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, type ServiceRegistration, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type TableInfo, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, createKVResponseSchema, createResultSchema, createVaultCrypto, errorResult, networkError, notFoundError, parseAuthError, permissionDeniedError, storageLimitReachedError, storageQuotaExceededError, timeoutError, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, wrapError };
1940
+ export { BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DuckDbAction, type DuckDbActionType, type DuckDbBatchOptions, type BatchResponse as DuckDbBatchResponse, DuckDbDatabaseHandle, type DuckDbExecuteOptions, type ExecuteResponse as DuckDbExecuteResponse, type DuckDbOptions, type DuckDbQueryOptions, type QueryResponse as DuckDbQueryResponse, DuckDbService, type DuckDbServiceConfig, type DuckDbStatement, type DuckDbValue, FetchFunction, GenericKVResponseSchema, type GenericKVResponseType, GenericResultSchema, type HookEvent, type HookServiceName, type HookStreamEvent, type HookSubscription, type HookWebhookListOptions, type HookWebhookRecord, type HookWebhookRegistration, type HookWebhookScope, type HookWebhookUnregisterOptions, HooksService, type HooksServiceConfig, type IDataVaultService, type IDuckDbDatabaseHandle, type IDuckDbService, type IHooksService, IKVService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type QuotaConfig, type QuotaStatus, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, type SchemaInfo, type ServiceConstructor, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, type ServiceRegistration, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type SubscribeOptions, type TableInfo, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, createKVResponseSchema, createResultSchema, createVaultCrypto, errorResult, networkError, notFoundError, parseAuthError, permissionDeniedError, storageLimitReachedError, storageQuotaExceededError, timeoutError, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, wrapError };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IServiceContext, a as InvokeFunction, F as FetchFunction, S as ServiceSession, R as RetryPolicy, b as IService, c as ServiceError, d as Result, B as BaseService, e as StorageQuotaInfo } from './BaseService-D9BFm_rV.js';
2
- export { E as ErrorCode, f as ErrorCodes, g as EventHandler, h as FetchRequestInit, i as FetchResponse, j as InvocationFact, k as InvocationFacts, l as ServiceErrorEvent, m as ServiceHeaders, n as ServiceRequestEvent, o as ServiceResponseEvent, p as ServiceRetryEvent, T as TelemetryEvents, q as defaultRetryPolicy, r as err, s as ok, t as serviceError } from './BaseService-D9BFm_rV.js';
1
+ import { I as IServiceContext, a as InvokeFunction, b as InvokeAnyFunction, F as FetchFunction, S as ServiceSession, R as RetryPolicy, c as IService, d as ServiceError, e as Result, B as BaseService, f as StorageQuotaInfo } from './BaseService-BiS6HRwE.js';
2
+ export { E as ErrorCode, g as ErrorCodes, h as EventHandler, i as FetchRequestInit, j as FetchResponse, k as InvocationFact, l as InvocationFacts, m as InvokeAnyEntry, n as ServiceErrorEvent, o as ServiceHeaders, p as ServiceRequestEvent, q as ServiceResponseEvent, r as ServiceRetryEvent, T as TelemetryEvents, s as defaultRetryPolicy, t as err, u as ok, v as serviceError } from './BaseService-BiS6HRwE.js';
3
3
  import { z } from 'zod';
4
4
  import { IKVService } from './kv/index.js';
5
5
  export { IPrefixedKVService, KVAction, KVActionType, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, PrefixedKVService } from './kv/index.js';
@@ -732,6 +732,8 @@ type EventHandler = (data: unknown) => void;
732
732
  interface ServiceContextConfig {
733
733
  /** Function to invoke WASM operations */
734
734
  invoke: InvokeFunction;
735
+ /** Optional function to mint a single authorization header for multiple capabilities */
736
+ invokeAny?: InvokeAnyFunction;
735
737
  /** Function to make HTTP requests (defaults to globalThis.fetch) */
736
738
  fetch?: FetchFunction;
737
739
  /** List of TinyCloud host URLs */
@@ -768,6 +770,7 @@ declare class ServiceContext implements IServiceContext {
768
770
  private _eventHandlers;
769
771
  private _abortController;
770
772
  private readonly _invoke;
773
+ private readonly _invokeAny?;
771
774
  private readonly _fetch;
772
775
  private readonly _hosts;
773
776
  private readonly _retryPolicy;
@@ -790,6 +793,10 @@ declare class ServiceContext implements IServiceContext {
790
793
  * Get the invoke function for WASM operations.
791
794
  */
792
795
  get invoke(): InvokeFunction;
796
+ /**
797
+ * Get the multi-resource invoke function when available.
798
+ */
799
+ get invokeAny(): InvokeAnyFunction | undefined;
793
800
  /**
794
801
  * Get the fetch function for HTTP requests.
795
802
  */
@@ -1247,6 +1254,96 @@ declare class DuckDbDatabaseHandle implements IDuckDbDatabaseHandle {
1247
1254
  import(data: Uint8Array, options?: DuckDbOptions): Promise<Result<void>>;
1248
1255
  }
1249
1256
 
1257
+ type HookServiceName = "kv" | "sql" | "duckdb";
1258
+ interface HookSubscription {
1259
+ space: string;
1260
+ service: HookServiceName;
1261
+ pathPrefix?: string;
1262
+ abilities?: string[];
1263
+ }
1264
+ interface HookWebhookScope {
1265
+ space: string;
1266
+ service: HookServiceName;
1267
+ pathPrefix?: string;
1268
+ abilities?: string[];
1269
+ }
1270
+ interface HookWebhookRegistration extends HookWebhookScope {
1271
+ callbackUrl: string;
1272
+ secret: string;
1273
+ }
1274
+ interface HookWebhookRecord extends HookWebhookScope {
1275
+ id: string;
1276
+ subscriberDid?: string;
1277
+ callbackUrl: string;
1278
+ active: boolean;
1279
+ createdAt: string;
1280
+ }
1281
+ interface HookWebhookListOptions {
1282
+ space?: string;
1283
+ service?: HookServiceName;
1284
+ pathPrefix?: string;
1285
+ }
1286
+ interface HookWebhookUnregisterOptions {
1287
+ target?: HookWebhookScope;
1288
+ }
1289
+ interface HookEvent {
1290
+ type: "write";
1291
+ id: string;
1292
+ space: string;
1293
+ service: string;
1294
+ ability: string;
1295
+ path?: string;
1296
+ actor: string;
1297
+ epoch: string;
1298
+ eventIndex: number;
1299
+ timestamp: string;
1300
+ }
1301
+ interface HookStreamEvent {
1302
+ event: string;
1303
+ data: string;
1304
+ id?: string;
1305
+ }
1306
+ interface SubscribeOptions {
1307
+ ttlSeconds?: number;
1308
+ signal?: AbortSignal;
1309
+ }
1310
+ interface HooksServiceConfig extends Record<string, unknown> {
1311
+ host?: string;
1312
+ }
1313
+
1314
+ interface IHooksService {
1315
+ subscribe(subscriptions: HookSubscription[], options?: SubscribeOptions): AsyncIterable<HookEvent>;
1316
+ register(webhook: HookWebhookRegistration): Promise<Result<HookWebhookRecord>>;
1317
+ list(options?: HookWebhookListOptions): Promise<Result<HookWebhookRecord[]>>;
1318
+ unregister(id: string, options?: HookWebhookUnregisterOptions): Promise<Result<void>>;
1319
+ }
1320
+
1321
+ declare class HooksService extends BaseService implements IHooksService {
1322
+ static readonly serviceName = "hooks";
1323
+ protected _config: HooksServiceConfig;
1324
+ private readonly _subscribers;
1325
+ private _sharedStreamTask?;
1326
+ private _sharedStreamAbort?;
1327
+ private _refreshChain;
1328
+ private _activeSignature;
1329
+ constructor(config?: HooksServiceConfig);
1330
+ get config(): HooksServiceConfig;
1331
+ private get host();
1332
+ subscribe(subscriptions: HookSubscription[], options?: SubscribeOptions): AsyncIterable<HookEvent>;
1333
+ register(webhook: HookWebhookRegistration): Promise<Result<HookWebhookRecord>>;
1334
+ list(options?: HookWebhookListOptions): Promise<Result<HookWebhookRecord[]>>;
1335
+ unregister(id: string, options?: HookWebhookUnregisterOptions): Promise<Result<void>>;
1336
+ private scheduleSharedStreamRefresh;
1337
+ private refreshSharedStream;
1338
+ private collectSharedStreamState;
1339
+ private runSharedStream;
1340
+ private abortSharedStream;
1341
+ private createHookHeaders;
1342
+ private mintHookTicket;
1343
+ private openHookStream;
1344
+ private createInvokeHeaders;
1345
+ }
1346
+
1250
1347
  interface QuotaConfig {
1251
1348
  /** Called when a storage quota error is detected (402/413) */
1252
1349
  onUpgradeRequired?: (info: StorageQuotaInfo) => void;
@@ -1840,4 +1937,4 @@ interface WasmVaultFunctions {
1840
1937
  }
1841
1938
  declare function createVaultCrypto(wasm: WasmVaultFunctions): VaultCrypto;
1842
1939
 
1843
- export { BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DuckDbAction, type DuckDbActionType, type DuckDbBatchOptions, type BatchResponse as DuckDbBatchResponse, DuckDbDatabaseHandle, type DuckDbExecuteOptions, type ExecuteResponse as DuckDbExecuteResponse, type DuckDbOptions, type DuckDbQueryOptions, type QueryResponse as DuckDbQueryResponse, DuckDbService, type DuckDbServiceConfig, type DuckDbStatement, type DuckDbValue, FetchFunction, GenericKVResponseSchema, type GenericKVResponseType, GenericResultSchema, type IDataVaultService, type IDuckDbDatabaseHandle, type IDuckDbService, IKVService, IService, IServiceContext, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type QuotaConfig, type QuotaStatus, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, type SchemaInfo, type ServiceConstructor, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, type ServiceRegistration, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type TableInfo, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, createKVResponseSchema, createResultSchema, createVaultCrypto, errorResult, networkError, notFoundError, parseAuthError, permissionDeniedError, storageLimitReachedError, storageQuotaExceededError, timeoutError, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, wrapError };
1940
+ export { BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DuckDbAction, type DuckDbActionType, type DuckDbBatchOptions, type BatchResponse as DuckDbBatchResponse, DuckDbDatabaseHandle, type DuckDbExecuteOptions, type ExecuteResponse as DuckDbExecuteResponse, type DuckDbOptions, type DuckDbQueryOptions, type QueryResponse as DuckDbQueryResponse, DuckDbService, type DuckDbServiceConfig, type DuckDbStatement, type DuckDbValue, FetchFunction, GenericKVResponseSchema, type GenericKVResponseType, GenericResultSchema, type HookEvent, type HookServiceName, type HookStreamEvent, type HookSubscription, type HookWebhookListOptions, type HookWebhookRecord, type HookWebhookRegistration, type HookWebhookScope, type HookWebhookUnregisterOptions, HooksService, type HooksServiceConfig, type IDataVaultService, type IDuckDbDatabaseHandle, type IDuckDbService, type IHooksService, IKVService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type QuotaConfig, type QuotaStatus, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, type SchemaInfo, type ServiceConstructor, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, type ServiceRegistration, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type SubscribeOptions, type TableInfo, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, createKVResponseSchema, createResultSchema, createVaultCrypto, errorResult, networkError, notFoundError, parseAuthError, permissionDeniedError, storageLimitReachedError, storageQuotaExceededError, timeoutError, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, wrapError };