@tinycloud/sdk-services 3.1.0-beta.2 → 3.1.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/index.d.cts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { a as IServiceContext, c as InvokeFunction, d as InvokeAnyFunction, F as FetchFunction, S as ServiceSession, e as RetryPolicy, T as TelemetryConfig, I as IService, E as EventHandler, b as ServiceError, R as Result, P as PermissionHint, f as StorageQuotaInfo } from './types-qwMmB7qB.cjs';
2
2
  export { g as ErrorCode, h as ErrorCodes, 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, s as TelemetryEventHandler, t as TelemetryEvents, u as TelemetrySpanEvent, v as defaultRetryPolicy, w as err, x as ok, y as serviceError } from './types-qwMmB7qB.cjs';
3
3
  import { z } from 'zod';
4
- import { B as BaseService } from './BaseService-BhpVpA9b.cjs';
4
+ import { B as BaseService } from './BaseService-C8zRy0ww.cjs';
5
+ export { a as BaseServiceOptions, R as RequestSignal, S as ServiceConstructor, b as ServiceRegistration } from './BaseService-C8zRy0ww.cjs';
5
6
  import { IKVService } from './kv/index.cjs';
6
7
  export { DEFAULT_SIGNED_READ_URL_EXPIRY_MS, IPrefixedKVService, KVAction, KVActionType, KVBatchPutItem, KVBatchPutOptions, KVBatchPutResponse, KVBatchReadResponse, KVCreateSignedReadUrlOptions, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, KVSignedReadUrlResponse, PrefixedKVService } from './kv/index.cjs';
7
8
  export { BatchOptions, BatchResponse, DatabaseHandle, ExecuteOptions, ExecuteResponse, IDatabaseHandle, ISQLMigrations, ISQLService, QueryOptions, QueryResponse, SQLAction, SQLActionType, SQLMigrations, SQLService, SQLServiceConfig, SqlMigration, SqlMigrationApplyOptions, SqlMigrationApplyResponse, SqlStatement, SqlValue } from './sql/index.cjs';
@@ -1050,8 +1051,11 @@ declare function authExpiredError(service: string): ServiceError;
1050
1051
  declare function networkError(service: string, message: string, cause?: Error): ServiceError;
1051
1052
  /**
1052
1053
  * Create a service error for timeouts.
1054
+ *
1055
+ * @param timeoutMs - The configured timeout that elapsed, when known
1056
+ * @param cause - The underlying timeout error, when known
1053
1057
  */
1054
- declare function timeoutError(service: string): ServiceError;
1058
+ declare function timeoutError(service: string, timeoutMs?: number, cause?: Error): ServiceError;
1055
1059
  /**
1056
1060
  * Create a service error for aborted requests.
1057
1061
  */
@@ -1083,6 +1087,24 @@ declare function authUnauthorizedError(service: string, message: string, meta?:
1083
1087
  * - `"other"`: a non-authorization HTTP error status (4xx/5xx).
1084
1088
  */
1085
1089
  type AuthorizationVerdict = "unauthenticated" | "forbidden" | "other";
1090
+ /**
1091
+ * Parse a canonical TinyCloud resource, keeping nested space names intact.
1092
+ * The first registered service segment is authoritative: a later matching
1093
+ * segment in the path cannot turn a different service into grant advice.
1094
+ */
1095
+ declare function parseCapabilityResource(resource: string, service: string): {
1096
+ space: string;
1097
+ path: string;
1098
+ } | undefined;
1099
+ /**
1100
+ * Return a grantable missing capability only when typed authorization evidence
1101
+ * and both safe, service-matched capability fields are present. Status alone,
1102
+ * message text, wildcard actions and unrecognized actions cannot grant scope.
1103
+ */
1104
+ declare function validatedCapabilityOf(error: unknown): {
1105
+ resource: string;
1106
+ requiredAction: string;
1107
+ } | undefined;
1086
1108
  /**
1087
1109
  * Classify an error from its typed HTTP error status (`status`, `statusCode`,
1088
1110
  * or `meta.status`, 4xx/5xx only) and `AUTH_UNAUTHORIZED` code, following the
@@ -1140,41 +1162,6 @@ declare function wrapError(service: string, error: unknown, defaultCode?: string
1140
1162
  */
1141
1163
  declare function errorResult(error: ServiceError): Result<never, ServiceError>;
1142
1164
 
1143
- /**
1144
- * Base Service Types
1145
- *
1146
- * Types specific to the base service infrastructure.
1147
- */
1148
-
1149
- /**
1150
- * Service constructor type for registration.
1151
- * Used by the SDK to instantiate services.
1152
- */
1153
- interface ServiceConstructor<TConfig = Record<string, unknown>, TService extends IService = IService> {
1154
- /** Service identifier used for registration */
1155
- readonly serviceName: string;
1156
- /** Create a new instance of the service */
1157
- new (config?: TConfig): TService;
1158
- }
1159
- /**
1160
- * Service registration entry.
1161
- */
1162
- interface ServiceRegistration {
1163
- /** The service class constructor */
1164
- constructor: ServiceConstructor;
1165
- /** Configuration for this service instance */
1166
- config?: Record<string, unknown>;
1167
- }
1168
- /**
1169
- * Options for base service operations.
1170
- */
1171
- interface BaseServiceOptions {
1172
- /** Override the default timeout for this operation */
1173
- timeout?: number;
1174
- /** Custom abort signal for this operation */
1175
- signal?: AbortSignal;
1176
- }
1177
-
1178
1165
  /**
1179
1166
  * DuckDB Service Types
1180
1167
  *
@@ -1190,7 +1177,10 @@ interface DuckDbServiceConfig {
1190
1177
  */
1191
1178
  defaultDatabase?: string;
1192
1179
  /**
1193
- * Default timeout in milliseconds for DuckDB operations.
1180
+ * Timeout in milliseconds for each DuckDB request, including reading the
1181
+ * response body. When it elapses the request is aborted and the operation
1182
+ * returns an `ErrorCodes.TIMEOUT` error. Unset (the default), `0`, or
1183
+ * `Infinity` means no timeout.
1194
1184
  */
1195
1185
  timeout?: number;
1196
1186
  /** Allow additional config properties */
@@ -2297,4 +2287,4 @@ declare class SecretsService implements ISecretsService {
2297
2287
  listAll(): Promise<Result<SecretCatalogEntry[], SecretsError>>;
2298
2288
  }
2299
2289
 
2300
- export { type AuthorizationVerdict, BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DecryptCapabilityProof, 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, EventHandler, 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, IEncryptionService, type IHooksService, IKVService, type ISecretsService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type ParsedSecretCatalogKey, PermissionHint, type QuotaConfig, type QuotaStatus, type ResolvedSecretPath, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, SECRET_NAME_RE, STORAGE_FULL_MESSAGE, STORAGE_WRITE_TOO_LARGE_MESSAGE, type SchemaInfo, type SecretCatalogEntry, type SecretPayload, type SecretScopeOptions, type SecretsError, SecretsService, 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, TelemetryConfig, TelemetrySpanEventSchema, type TelemetrySpanEventType, type TinyCloudDebugEnableOptions, type TinyCloudDebugEvent, type TinyCloudDebugLevel, TinyCloudDebugLogger, type TinyCloudDebugTimer, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, type VaultListPage, type VaultNetworkReadResult, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, authorizationVerdictOf, canonicalizeSecretScope, clearTinyCloudDebugLogs, createKVResponseSchema, createResultSchema, createVaultCrypto, disableTinyCloudDebug, enableTinyCloudDebug, errorResult, getTinyCloudDebugLogs, installTinyCloudDebugGlobals, isStorageFullError, networkError, notFoundError, parseAuthError, parsePermissionHint, parsePermissionHintFromErrorText, parseSecretCatalogKey, parseStorageQuotaBytes, permissionDeniedError, resolveSecretListPrefix, resolveSecretPath, storageLimitReachedError, storageQuotaExceededError, storageRejectionError, timeoutError, tinyCloudDebugLogger, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, validateTelemetrySpanEvent, wrapError };
2290
+ export { type AuthorizationVerdict, BaseService, type ColumnInfo, type DataVaultConfig, DataVaultService, DecryptCapabilityProof, 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, EventHandler, 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, IEncryptionService, type IHooksService, IKVService, type ISecretsService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type ParsedSecretCatalogKey, PermissionHint, type QuotaConfig, type QuotaStatus, type ResolvedSecretPath, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, SECRET_NAME_RE, STORAGE_FULL_MESSAGE, STORAGE_WRITE_TOO_LARGE_MESSAGE, type SchemaInfo, type SecretCatalogEntry, type SecretPayload, type SecretScopeOptions, type SecretsError, SecretsService, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type SubscribeOptions, type TableInfo, TelemetryConfig, TelemetrySpanEventSchema, type TelemetrySpanEventType, type TinyCloudDebugEnableOptions, type TinyCloudDebugEvent, type TinyCloudDebugLevel, TinyCloudDebugLogger, type TinyCloudDebugTimer, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, type VaultListPage, type VaultNetworkReadResult, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, authorizationVerdictOf, canonicalizeSecretScope, clearTinyCloudDebugLogs, createKVResponseSchema, createResultSchema, createVaultCrypto, disableTinyCloudDebug, enableTinyCloudDebug, errorResult, getTinyCloudDebugLogs, installTinyCloudDebugGlobals, isStorageFullError, networkError, notFoundError, parseAuthError, parseCapabilityResource, parsePermissionHint, parsePermissionHintFromErrorText, parseSecretCatalogKey, parseStorageQuotaBytes, permissionDeniedError, resolveSecretListPrefix, resolveSecretPath, storageLimitReachedError, storageQuotaExceededError, storageRejectionError, timeoutError, tinyCloudDebugLogger, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, validateTelemetrySpanEvent, validatedCapabilityOf, wrapError };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { a as IServiceContext, c as InvokeFunction, d as InvokeAnyFunction, F as FetchFunction, S as ServiceSession, e as RetryPolicy, T as TelemetryConfig, I as IService, E as EventHandler, b as ServiceError, R as Result, P as PermissionHint, f as StorageQuotaInfo } from './types-qwMmB7qB.js';
2
2
  export { g as ErrorCode, h as ErrorCodes, 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, s as TelemetryEventHandler, t as TelemetryEvents, u as TelemetrySpanEvent, v as defaultRetryPolicy, w as err, x as ok, y as serviceError } from './types-qwMmB7qB.js';
3
3
  import { z } from 'zod';
4
- import { B as BaseService } from './BaseService-CuV-ZVPs.js';
4
+ import { B as BaseService } from './BaseService-DU-lE-Qx.js';
5
+ export { a as BaseServiceOptions, R as RequestSignal, S as ServiceConstructor, b as ServiceRegistration } from './BaseService-DU-lE-Qx.js';
5
6
  import { IKVService } from './kv/index.js';
6
7
  export { DEFAULT_SIGNED_READ_URL_EXPIRY_MS, IPrefixedKVService, KVAction, KVActionType, KVBatchPutItem, KVBatchPutOptions, KVBatchPutResponse, KVBatchReadResponse, KVCreateSignedReadUrlOptions, KVDeleteOptions, KVGetOptions, KVHeadOptions, KVListOptions, KVListResponse, KVPutOptions, KVResponse, KVResponseHeaders, KVService, KVServiceConfig, KVSignedReadUrlResponse, PrefixedKVService } from './kv/index.js';
7
8
  export { BatchOptions, BatchResponse, DatabaseHandle, ExecuteOptions, ExecuteResponse, IDatabaseHandle, ISQLMigrations, ISQLService, QueryOptions, QueryResponse, SQLAction, SQLActionType, SQLMigrations, SQLService, SQLServiceConfig, SqlMigration, SqlMigrationApplyOptions, SqlMigrationApplyResponse, SqlStatement, SqlValue } from './sql/index.js';
@@ -1050,8 +1051,11 @@ declare function authExpiredError(service: string): ServiceError;
1050
1051
  declare function networkError(service: string, message: string, cause?: Error): ServiceError;
1051
1052
  /**
1052
1053
  * Create a service error for timeouts.
1054
+ *
1055
+ * @param timeoutMs - The configured timeout that elapsed, when known
1056
+ * @param cause - The underlying timeout error, when known
1053
1057
  */
1054
- declare function timeoutError(service: string): ServiceError;
1058
+ declare function timeoutError(service: string, timeoutMs?: number, cause?: Error): ServiceError;
1055
1059
  /**
1056
1060
  * Create a service error for aborted requests.
1057
1061
  */
@@ -1083,6 +1087,24 @@ declare function authUnauthorizedError(service: string, message: string, meta?:
1083
1087
  * - `"other"`: a non-authorization HTTP error status (4xx/5xx).
1084
1088
  */
1085
1089
  type AuthorizationVerdict = "unauthenticated" | "forbidden" | "other";
1090
+ /**
1091
+ * Parse a canonical TinyCloud resource, keeping nested space names intact.
1092
+ * The first registered service segment is authoritative: a later matching
1093
+ * segment in the path cannot turn a different service into grant advice.
1094
+ */
1095
+ declare function parseCapabilityResource(resource: string, service: string): {
1096
+ space: string;
1097
+ path: string;
1098
+ } | undefined;
1099
+ /**
1100
+ * Return a grantable missing capability only when typed authorization evidence
1101
+ * and both safe, service-matched capability fields are present. Status alone,
1102
+ * message text, wildcard actions and unrecognized actions cannot grant scope.
1103
+ */
1104
+ declare function validatedCapabilityOf(error: unknown): {
1105
+ resource: string;
1106
+ requiredAction: string;
1107
+ } | undefined;
1086
1108
  /**
1087
1109
  * Classify an error from its typed HTTP error status (`status`, `statusCode`,
1088
1110
  * or `meta.status`, 4xx/5xx only) and `AUTH_UNAUTHORIZED` code, following the
@@ -1140,41 +1162,6 @@ declare function wrapError(service: string, error: unknown, defaultCode?: string
1140
1162
  */
1141
1163
  declare function errorResult(error: ServiceError): Result<never, ServiceError>;
1142
1164
 
1143
- /**
1144
- * Base Service Types
1145
- *
1146
- * Types specific to the base service infrastructure.
1147
- */
1148
-
1149
- /**
1150
- * Service constructor type for registration.
1151
- * Used by the SDK to instantiate services.
1152
- */
1153
- interface ServiceConstructor<TConfig = Record<string, unknown>, TService extends IService = IService> {
1154
- /** Service identifier used for registration */
1155
- readonly serviceName: string;
1156
- /** Create a new instance of the service */
1157
- new (config?: TConfig): TService;
1158
- }
1159
- /**
1160
- * Service registration entry.
1161
- */
1162
- interface ServiceRegistration {
1163
- /** The service class constructor */
1164
- constructor: ServiceConstructor;
1165
- /** Configuration for this service instance */
1166
- config?: Record<string, unknown>;
1167
- }
1168
- /**
1169
- * Options for base service operations.
1170
- */
1171
- interface BaseServiceOptions {
1172
- /** Override the default timeout for this operation */
1173
- timeout?: number;
1174
- /** Custom abort signal for this operation */
1175
- signal?: AbortSignal;
1176
- }
1177
-
1178
1165
  /**
1179
1166
  * DuckDB Service Types
1180
1167
  *
@@ -1190,7 +1177,10 @@ interface DuckDbServiceConfig {
1190
1177
  */
1191
1178
  defaultDatabase?: string;
1192
1179
  /**
1193
- * Default timeout in milliseconds for DuckDB operations.
1180
+ * Timeout in milliseconds for each DuckDB request, including reading the
1181
+ * response body. When it elapses the request is aborted and the operation
1182
+ * returns an `ErrorCodes.TIMEOUT` error. Unset (the default), `0`, or
1183
+ * `Infinity` means no timeout.
1194
1184
  */
1195
1185
  timeout?: number;
1196
1186
  /** Allow additional config properties */
@@ -2297,4 +2287,4 @@ declare class SecretsService implements ISecretsService {
2297
2287
  listAll(): Promise<Result<SecretCatalogEntry[], SecretsError>>;
2298
2288
  }
2299
2289
 
2300
- export { type AuthorizationVerdict, BaseService, type BaseServiceOptions, type ColumnInfo, type DataVaultConfig, DataVaultService, DecryptCapabilityProof, 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, EventHandler, 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, IEncryptionService, type IHooksService, IKVService, type ISecretsService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type ParsedSecretCatalogKey, PermissionHint, type QuotaConfig, type QuotaStatus, type ResolvedSecretPath, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, SECRET_NAME_RE, STORAGE_FULL_MESSAGE, STORAGE_WRITE_TOO_LARGE_MESSAGE, type SchemaInfo, type SecretCatalogEntry, type SecretPayload, type SecretScopeOptions, type SecretsError, SecretsService, 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, TelemetryConfig, TelemetrySpanEventSchema, type TelemetrySpanEventType, type TinyCloudDebugEnableOptions, type TinyCloudDebugEvent, type TinyCloudDebugLevel, TinyCloudDebugLogger, type TinyCloudDebugTimer, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, type VaultListPage, type VaultNetworkReadResult, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, authorizationVerdictOf, canonicalizeSecretScope, clearTinyCloudDebugLogs, createKVResponseSchema, createResultSchema, createVaultCrypto, disableTinyCloudDebug, enableTinyCloudDebug, errorResult, getTinyCloudDebugLogs, installTinyCloudDebugGlobals, isStorageFullError, networkError, notFoundError, parseAuthError, parsePermissionHint, parsePermissionHintFromErrorText, parseSecretCatalogKey, parseStorageQuotaBytes, permissionDeniedError, resolveSecretListPrefix, resolveSecretPath, storageLimitReachedError, storageQuotaExceededError, storageRejectionError, timeoutError, tinyCloudDebugLogger, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, validateTelemetrySpanEvent, wrapError };
2290
+ export { type AuthorizationVerdict, BaseService, type ColumnInfo, type DataVaultConfig, DataVaultService, DecryptCapabilityProof, 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, EventHandler, 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, IEncryptionService, type IHooksService, IKVService, type ISecretsService, IService, IServiceContext, InvokeAnyFunction, InvokeFunction, KVListResponseSchema, type KVListResponseType, KVListResultSchema, type KVListResultType, KVResponseHeadersSchema, type KVResponseHeadersType, type ParsedSecretCatalogKey, PermissionHint, type QuotaConfig, type QuotaStatus, type ResolvedSecretPath, Result, RetryPolicy, RetryPolicySchema, type RetryPolicyType, SECRET_NAME_RE, STORAGE_FULL_MESSAGE, STORAGE_WRITE_TOO_LARGE_MESSAGE, type SchemaInfo, type SecretCatalogEntry, type SecretPayload, type SecretScopeOptions, type SecretsError, SecretsService, ServiceContext, type ServiceContextConfig, ServiceError, ServiceErrorEventSchema, type ServiceErrorEventType, ServiceErrorSchema, type ServiceErrorType, ServiceRequestEventSchema, type ServiceRequestEventType, ServiceResponseEventSchema, type ServiceResponseEventType, ServiceRetryEventSchema, type ServiceRetryEventType, ServiceSession, ServiceSessionSchema, type ServiceSessionType, StorageQuotaInfo, type SubscribeOptions, type TableInfo, TelemetryConfig, TelemetrySpanEventSchema, type TelemetrySpanEventType, type TinyCloudDebugEnableOptions, type TinyCloudDebugEvent, type TinyCloudDebugLevel, TinyCloudDebugLogger, type TinyCloudDebugTimer, TinyCloudQuota, type ValidationError, type VaultCrypto, type VaultEntry, type VaultError, type VaultGetOptions, type VaultGrantOptions, VaultHeaders, type VaultListOptions, type VaultListPage, type VaultNetworkReadResult, VaultPublicSpaceKVActions, type VaultPutOptions, type ViewInfo, type WasmVaultFunctions, abortedError, authExpiredError, authRequiredError, authUnauthorizedError, authorizationVerdictOf, canonicalizeSecretScope, clearTinyCloudDebugLogs, createKVResponseSchema, createResultSchema, createVaultCrypto, disableTinyCloudDebug, enableTinyCloudDebug, errorResult, getTinyCloudDebugLogs, installTinyCloudDebugGlobals, isStorageFullError, networkError, notFoundError, parseAuthError, parseCapabilityResource, parsePermissionHint, parsePermissionHintFromErrorText, parseSecretCatalogKey, parseStorageQuotaBytes, permissionDeniedError, resolveSecretListPrefix, resolveSecretPath, storageLimitReachedError, storageQuotaExceededError, storageRejectionError, timeoutError, tinyCloudDebugLogger, validateKVListResponse, validateKVResponseHeaders, validateRetryPolicy, validateServiceError, validateServiceRequestEvent, validateServiceResponseEvent, validateServiceSession, validateTelemetrySpanEvent, validatedCapabilityOf, wrapError };