@tinycloud/node-sdk 3.3.0-beta.23 → 3.3.0-beta.25
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/{TinyCloudNode-Dxdmw48u.d.cts → TinyCloudNode-DeV-L_14.d.cts} +5 -1
- package/dist/{TinyCloudNode-Dxdmw48u.d.ts → TinyCloudNode-DeV-L_14.d.ts} +5 -1
- package/dist/{authority-DVbN0Tqt.d.cts → authority-BO2VqGnD.d.cts} +1 -1
- package/dist/{authority-CT9_mApq.d.ts → authority-CtsxSAoP.d.ts} +1 -1
- package/dist/core.cjs +40 -17
- 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 +44 -20
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +40 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -20
- package/dist/index.js.map +1 -1
- package/dist/replication/authority.d.cts +2 -2
- package/dist/replication/authority.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISigner, Bytes, IWasmBindings, PersistedSessionProof, ISessionManager } from '@tinycloud/sdk-core';
|
|
2
2
|
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, AccountApplication, AccountApplicationListOptions, AccountApplicationRegisterOptions, AccountDelegation, AccountDelegationListOptions, AccountDelegationPage, AccountDelegationQueryOptions, AccountDelegationRecord, AccountDelegationResource, AccountDelegationRevokeOptions, AccountIndexEnsureResult, AccountIndexRebuildResult, AccountIndexStatus, AccountIndexedReadOptions, AccountService, AccountServiceConfig, AccountSpace, AccountSpaceListOptions, AccountStatus, AuthorityRefusal, AutoApproveSpaceCreationHandler, AutoRejectStrategy, AutoSignStrategy, BatchOptions, BatchResponse, BuildCanonicalDecryptRequestInput, BuildDecryptFactsInput, BuildDecryptInvocationInput, BuiltDecryptInvocation, CallbackStrategy, CanonicalAddress, CanonicalDecryptRequest, CanonicalJson, CanonicalParsedNetworkId, CapabilityEntry, CapabilityKeyRegistry, CapabilityKeyRegistryErrorCode, CapabilityKeyRegistryErrorCodes, CaveatedDelegationUnsupportedError, ClientSession, ColumnInfo, ComposeManifestOptions, ComposedManifestRequest, CreateDelegationParams, DECRYPT_ACTION, DECRYPT_FACT_TYPE, DECRYPT_RESULT_TYPE, DEFAULT_ENCRYPTION_ALG, DEFAULT_KEY_VERSION, DEFAULT_MANIFEST_SPACE, DEFAULT_MANIFEST_VERSION, DEFAULT_SIGNED_READ_URL_EXPIRY_MS, DataVaultConfig, DataVaultService, DatabaseHandle, DecryptCapabilityProof, DecryptEnvelopeOptions, DecryptInvocationFact, DecryptInvocationSigner, DecryptRequestBody, DecryptResponseBody, DecryptTransport, DecryptTransportResponseError, DelegateReceivedShareParams, DelegatedShareAccess, Delegation, DelegationChain, DelegationChainV2, DelegationDirection, DelegationError, DelegationErrorCode, DelegationErrorCodes, DelegationFilters, DelegationManager, DelegationManagerConfig, DelegationRecord, DelegationResult, DelegationRevocationReceipt, DidCacheKeyOptions, DidEqualsOptions, DiscoverNetworkInput, DiscoveredNetwork, DiscoverySource, DuckDbAction, DuckDbActionType, DuckDbBatchOptions, DuckDbBatchResponse, DuckDbDatabaseHandle, DuckDbExecuteOptions, DuckDbExecuteResponse, DuckDbOptions, DuckDbQueryOptions, DuckDbQueryResponse, DuckDbService, DuckDbServiceConfig, DuckDbStatement, DuckDbValue, ENCRYPTION_NETWORK_URN_PREFIX, ENCRYPTION_SERVICE, ENCRYPTION_SERVICE_SHORT, ENVELOPE_VERSION, EncodedShareData, EncryptToNetworkInput, EncryptToNetworkOptions, EncryptToNetworkResult, EncryptionCrypto, EncryptionError, EncryptionErrorInput, EncryptionService, EncryptionServiceConfig, ExecuteOptions, ExecuteResponse, Extension, FetchFunction, GenerateShareParams, HookEvent, HookServiceName, HookStreamEvent, HookSubscription, HookWebhookListOptions, HookWebhookRecord, HookWebhookRegistration, HookWebhookScope, HookWebhookUnregisterOptions, HooksService, HooksServiceConfig, ICapabilityKeyRegistry, IDataVaultService, IDatabaseHandle, IDuckDbDatabaseHandle, IDuckDbService, IENSResolver, IEncryptionService, IHooksService, IKVService, INotificationHandler, IPrefixedKVService, ISQLService, ISecretsService, ISessionManager, ISessionStorage, ISharingService, ISigner, ISpace, ISpaceCreationHandler, ISpaceScopedDelegations, ISpaceScopedSharing, ISpaceService, IStorageService, IUserAuthorization, IWasmBindings, IdentityParseError, IngestOptions, InlineEncryptedEnvelope, InvokeFunction, JWK, KVBatchReadResponse, KVCreateSignedReadUrlOptions, KVListPage, KVReadThrough, KVReplicaHandle, KVReplicaSpec, KVReplicaStorage, KVReplicationController, KVReplicationDeps, KVResponse, KVService, KVServiceConfig, KVSignedReadUrlResponse, KeyInfo, KeyProvider, KeyType, LocalGetResult, LocalListResult, LocalReadMeta, LocalReplicaStatus, LocalSyncResult, MAX_SECRET_SCOPE_LENGTH, Manifest, ManifestDefaults, ManifestRegistryRecord, ManifestSecretActions, ManifestValidationError, NETWORK_NAME_PATTERN, NetworkDescriptor, NetworkIdError, NodeDescriptorFetcher, OpenKeyCallbackStrategy, OpenKeySigningRequestBody, OpenKeySigningResponseBody, OpenKeySigningStrategyOptions, OwnerDelegationPermission, ParsedNetworkId, ParsedSecretCatalogKey, PendingWriteRecord, PendingWriteState, PendingWriteStore, PermissionEntry, PermissionNotInManifestError, PersistedSessionData, PinnedKey, PkhDidParts, PrefixedKVService, ProtocolMismatchError, PurgeTarget, QueryOptions, QueryResponse, RandomReceiverKeyInput, ReceiveOptions, ReceiverKeyPair, ReceiverKeySigner, RegisterBatchSuccess, RegisterPolicyV3Input, RegisterPolicyV3Receipt, ReplicaAuthorityState, ReplicaCoverage, ReplicaDevice, ReplicaGatedHandle, ReplicaGrantInfo, ReplicaInspectedStatus, ReplicaState, ReplicaStatusEntry, ReplicationAuthority, ReplicationControl, ReplicationEvent, ReplicationIdentity, ReplicationOptions, ReplicationPurgeReport, ReplicationReason, ReplicationScheduler, ResolvedCapabilities, ResolvedDelegate, ResolvedReplicationOptions, ResolvedSecretPath, ResourceCapability, SECRET_NAME_RE, SECRET_SCOPE_RE, SQLAction, SQLActionType, SQLService, SQLServiceConfig, STORAGE_FULL_MESSAGE, STORAGE_MANAGE_URL, STORAGE_WRITE_TOO_LARGE_MESSAGE, SchemaInfo, SecretCatalogEntry, SecretPayload, SecretPutOptions, SecretScopeOptions, SecretsError, SecretsService, ServiceContext, ServiceContextConfig, ServiceSession, SessionExpiredError, ShareAccess, ShareLink, ShareLinkData, ShareSchema, SharingService, SharingServiceConfig, SignCallback, SignInOptions, SignRequest, SignResponse, SignedReceiverKeyInput, SilentNotificationHandler, Space, SpaceAbilitiesMap, SpaceConfig, SpaceCreationContext, SpaceErrorCode, SpaceErrorCodes, SpaceInfo, SpaceOwnership, SpaceService, SpaceServiceConfig, SqlStatement, SqlValue, StorageAccountUsage, StorageFullEvent, StorageStatus, StorageStatusOptions, StorageUsage, StorageUsageState, StoredDelegationChain, SubscribeOptions, TC832_RESERVED_SCOPES, TableInfo, TelemetryConfig, TelemetryEventHandler, TinyCloud, TinyCloudConfig, TinyCloudDebugEnableOptions, TinyCloudDebugEvent, TinyCloudDebugLevel, TinyCloudDebugLogger, TinyCloudDebugTimer, TinyCloudSession, UnsupportedFeatureError, VAULT_PERMISSION_SERVICE, VaultCrypto, VaultEntry, VaultError, VaultGetOptions, VaultGrantOptions, VaultHeaders, VaultListOptions, VaultNetworkReadResult, VaultPublicSpaceKVActions, VaultPutOptions, VerifyDecryptResponseInput, VersionCheckError, ViewInfo, WasmVaultFunctions, WellKnownDescriptorFetcher, addressStorageKey, appSecretScope, buildCanonicalDecryptRequest, buildDecryptAttenuation, buildDecryptFacts, buildDecryptInvocation, buildNetworkId, buildSpaceUri, canonicalHashHex, canonicalSignedResponse, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeEncryptionJson, canonicalizeNetworkId, canonicalizeSecretScope, checkDecryptInvocationInput, checkNodeInfo, clearTinyCloudDebugLogs, composeManifestRequest, createCapabilityKeyRegistry, createOpenKeyCallbackSigningStrategy, createSharingService, createSpaceService, createVaultCrypto, decryptEnvelopeWithKey, defaultSpaceCreationHandler, deriveSignedReceiverKey, didCacheKey, didEquals, disableTinyCloudDebug, discoverNetwork, enableTinyCloudDebug, encryptToNetwork, encryptionBase64Decode, encryptionBase64Encode, encryptionError, encryptionUtf8Decode, encryptionUtf8Encode, ensureNetworkUsableForDecrypt, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, generateRandomReceiverKey, getTinyCloudDebugLogs, hexDecode, hexEncode, installTinyCloudDebugGlobals, isCapabilitySubset, isEvmAddress, isNetworkId, isStorageFullError, loadManifest, makePkhSpaceId, makePublicSpaceId, networkDiscoveryKey, openWrappedKey, parseCanonicalNetworkId, parseExpiry, parseNetworkId, parsePkhDid, parseSecretCatalogKey, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveManifest, resolveSecretListPrefix, resolveSecretPath, resourceCapabilitiesToSpaceAbilitiesMap, storageUsageState, tinyCloudDebugLogger, validateEnvelope, validateManifest, verifyDecryptResponse } from '@tinycloud/sdk-core';
|
|
3
3
|
export { F as FileSessionStorage, M as MemorySessionStorage, W as WasmKeyProvider, a as WasmKeyProviderConfig, c as createWasmKeyProvider } from './WasmKeyProvider-5Ee7fcAw.cjs';
|
|
4
|
-
export { A as ACCEPTED_MARKER_VERSIONS, a as AuthDelegationArtifact, b as AuthRequestArtifact, B as BOOTSTRAP_COMPLETION_MARKER_KEY, c as BOOTSTRAP_COMPLETION_MARKER_VERSION, d as BootstrapCompletionMarker, e as BootstrapWarning, C as CompactRuntimeDelegationInput, f as CreateOwnerDelegationParams, D as DelegateToOptions, g as DelegateToResult, h as DelegatedAccess, i as DelegationAuthority, E as EnsureEncryptionNetworkOptions, I as InvalidRestoredSessionError, N as NodeEventEmitterStrategy, j as NodeUserAuthorization, k as NodeUserAuthorizationAuthorizeFn, l as NodeUserAuthorizationConfig, O as OpenKeyAuthorizationResultV1, m as OpenKeyAuthorizeInput, n as OpenKeyAuthorizeTinyCloud, o as OpenKeyBridgeInput, p as OwnerDelegationReceipt, P as PortableDelegation, R as RUNTIME_DELEGATION_REJECTIONS, q as RestorableSession, r as RuntimeDelegationActivator, s as RuntimeDelegationRejectedError, t as RuntimeDelegationRejection, u as RuntimePermissionGrantOptions, S as SecretPermissionHint, v as SecretReadInput, w as SecretReadResult, x as SessionGrantProof, y as SignStrategy, T as TinyCloudNode, z as TinyCloudNodeConfig, U as UnifiedOwnerRootInput, F as UnifiedOwnerRootReceipt, G as UnsupportedSessionRestoreError, V as ValidatedRuntimeDelegation, H as VerifiedSessionGrant, J as activateCompactRuntimeDelegation, K as activateValidatedRuntimeDelegation, L as defaultSignStrategy, M as deserializeDelegation, Q as grantAuthRequest, W as serializeDelegation, X as signedCompactUcanExpiry, Y as siweRuntimeDelegation, Z as wireOpenKeyAuthorize } from './TinyCloudNode-
|
|
4
|
+
export { A as ACCEPTED_MARKER_VERSIONS, a as AuthDelegationArtifact, b as AuthRequestArtifact, B as BOOTSTRAP_COMPLETION_MARKER_KEY, c as BOOTSTRAP_COMPLETION_MARKER_VERSION, d as BootstrapCompletionMarker, e as BootstrapWarning, C as CompactRuntimeDelegationInput, f as CreateOwnerDelegationParams, D as DelegateToOptions, g as DelegateToResult, h as DelegatedAccess, i as DelegationAuthority, E as EnsureEncryptionNetworkOptions, I as InvalidRestoredSessionError, N as NodeEventEmitterStrategy, j as NodeUserAuthorization, k as NodeUserAuthorizationAuthorizeFn, l as NodeUserAuthorizationConfig, O as OpenKeyAuthorizationResultV1, m as OpenKeyAuthorizeInput, n as OpenKeyAuthorizeTinyCloud, o as OpenKeyBridgeInput, p as OwnerDelegationReceipt, P as PortableDelegation, R as RUNTIME_DELEGATION_REJECTIONS, q as RestorableSession, r as RuntimeDelegationActivator, s as RuntimeDelegationRejectedError, t as RuntimeDelegationRejection, u as RuntimePermissionGrantOptions, S as SecretPermissionHint, v as SecretReadInput, w as SecretReadResult, x as SessionGrantProof, y as SignStrategy, T as TinyCloudNode, z as TinyCloudNodeConfig, U as UnifiedOwnerRootInput, F as UnifiedOwnerRootReceipt, G as UnsupportedSessionRestoreError, V as ValidatedRuntimeDelegation, H as VerifiedSessionGrant, J as activateCompactRuntimeDelegation, K as activateValidatedRuntimeDelegation, L as defaultSignStrategy, M as deserializeDelegation, Q as grantAuthRequest, W as serializeDelegation, X as signedCompactUcanExpiry, Y as siweRuntimeDelegation, Z as wireOpenKeyAuthorize } from './TinyCloudNode-DeV-L_14.cjs';
|
|
5
5
|
import { invoke, invokeAny, computeCid, prepareSession, completeSessionSetup, ensureEip55, makeSpaceId, createDelegation, parseRecapFromSiwe, parseVerifiedRecapFromSiwe, generateHostSIWEMessage, siweToDelegationHeaders, protocolVersion, vault_encrypt, vault_decrypt, vault_derive_key, vault_x25519_from_seed, vault_x25519_dh, vault_random_bytes, vault_sha256 } from '@tinycloud/node-sdk-wasm';
|
|
6
6
|
import { KVReplicaStorage } from '@tinycloud/sdk-services';
|
|
7
7
|
import { ProfileReplicaPurge } from '@tinycloud/sdk-services/kv/replication';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISigner, Bytes, IWasmBindings, PersistedSessionProof, ISessionManager } from '@tinycloud/sdk-core';
|
|
2
2
|
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, AccountApplication, AccountApplicationListOptions, AccountApplicationRegisterOptions, AccountDelegation, AccountDelegationListOptions, AccountDelegationPage, AccountDelegationQueryOptions, AccountDelegationRecord, AccountDelegationResource, AccountDelegationRevokeOptions, AccountIndexEnsureResult, AccountIndexRebuildResult, AccountIndexStatus, AccountIndexedReadOptions, AccountService, AccountServiceConfig, AccountSpace, AccountSpaceListOptions, AccountStatus, AuthorityRefusal, AutoApproveSpaceCreationHandler, AutoRejectStrategy, AutoSignStrategy, BatchOptions, BatchResponse, BuildCanonicalDecryptRequestInput, BuildDecryptFactsInput, BuildDecryptInvocationInput, BuiltDecryptInvocation, CallbackStrategy, CanonicalAddress, CanonicalDecryptRequest, CanonicalJson, CanonicalParsedNetworkId, CapabilityEntry, CapabilityKeyRegistry, CapabilityKeyRegistryErrorCode, CapabilityKeyRegistryErrorCodes, CaveatedDelegationUnsupportedError, ClientSession, ColumnInfo, ComposeManifestOptions, ComposedManifestRequest, CreateDelegationParams, DECRYPT_ACTION, DECRYPT_FACT_TYPE, DECRYPT_RESULT_TYPE, DEFAULT_ENCRYPTION_ALG, DEFAULT_KEY_VERSION, DEFAULT_MANIFEST_SPACE, DEFAULT_MANIFEST_VERSION, DEFAULT_SIGNED_READ_URL_EXPIRY_MS, DataVaultConfig, DataVaultService, DatabaseHandle, DecryptCapabilityProof, DecryptEnvelopeOptions, DecryptInvocationFact, DecryptInvocationSigner, DecryptRequestBody, DecryptResponseBody, DecryptTransport, DecryptTransportResponseError, DelegateReceivedShareParams, DelegatedShareAccess, Delegation, DelegationChain, DelegationChainV2, DelegationDirection, DelegationError, DelegationErrorCode, DelegationErrorCodes, DelegationFilters, DelegationManager, DelegationManagerConfig, DelegationRecord, DelegationResult, DelegationRevocationReceipt, DidCacheKeyOptions, DidEqualsOptions, DiscoverNetworkInput, DiscoveredNetwork, DiscoverySource, DuckDbAction, DuckDbActionType, DuckDbBatchOptions, DuckDbBatchResponse, DuckDbDatabaseHandle, DuckDbExecuteOptions, DuckDbExecuteResponse, DuckDbOptions, DuckDbQueryOptions, DuckDbQueryResponse, DuckDbService, DuckDbServiceConfig, DuckDbStatement, DuckDbValue, ENCRYPTION_NETWORK_URN_PREFIX, ENCRYPTION_SERVICE, ENCRYPTION_SERVICE_SHORT, ENVELOPE_VERSION, EncodedShareData, EncryptToNetworkInput, EncryptToNetworkOptions, EncryptToNetworkResult, EncryptionCrypto, EncryptionError, EncryptionErrorInput, EncryptionService, EncryptionServiceConfig, ExecuteOptions, ExecuteResponse, Extension, FetchFunction, GenerateShareParams, HookEvent, HookServiceName, HookStreamEvent, HookSubscription, HookWebhookListOptions, HookWebhookRecord, HookWebhookRegistration, HookWebhookScope, HookWebhookUnregisterOptions, HooksService, HooksServiceConfig, ICapabilityKeyRegistry, IDataVaultService, IDatabaseHandle, IDuckDbDatabaseHandle, IDuckDbService, IENSResolver, IEncryptionService, IHooksService, IKVService, INotificationHandler, IPrefixedKVService, ISQLService, ISecretsService, ISessionManager, ISessionStorage, ISharingService, ISigner, ISpace, ISpaceCreationHandler, ISpaceScopedDelegations, ISpaceScopedSharing, ISpaceService, IStorageService, IUserAuthorization, IWasmBindings, IdentityParseError, IngestOptions, InlineEncryptedEnvelope, InvokeFunction, JWK, KVBatchReadResponse, KVCreateSignedReadUrlOptions, KVListPage, KVReadThrough, KVReplicaHandle, KVReplicaSpec, KVReplicaStorage, KVReplicationController, KVReplicationDeps, KVResponse, KVService, KVServiceConfig, KVSignedReadUrlResponse, KeyInfo, KeyProvider, KeyType, LocalGetResult, LocalListResult, LocalReadMeta, LocalReplicaStatus, LocalSyncResult, MAX_SECRET_SCOPE_LENGTH, Manifest, ManifestDefaults, ManifestRegistryRecord, ManifestSecretActions, ManifestValidationError, NETWORK_NAME_PATTERN, NetworkDescriptor, NetworkIdError, NodeDescriptorFetcher, OpenKeyCallbackStrategy, OpenKeySigningRequestBody, OpenKeySigningResponseBody, OpenKeySigningStrategyOptions, OwnerDelegationPermission, ParsedNetworkId, ParsedSecretCatalogKey, PendingWriteRecord, PendingWriteState, PendingWriteStore, PermissionEntry, PermissionNotInManifestError, PersistedSessionData, PinnedKey, PkhDidParts, PrefixedKVService, ProtocolMismatchError, PurgeTarget, QueryOptions, QueryResponse, RandomReceiverKeyInput, ReceiveOptions, ReceiverKeyPair, ReceiverKeySigner, RegisterBatchSuccess, RegisterPolicyV3Input, RegisterPolicyV3Receipt, ReplicaAuthorityState, ReplicaCoverage, ReplicaDevice, ReplicaGatedHandle, ReplicaGrantInfo, ReplicaInspectedStatus, ReplicaState, ReplicaStatusEntry, ReplicationAuthority, ReplicationControl, ReplicationEvent, ReplicationIdentity, ReplicationOptions, ReplicationPurgeReport, ReplicationReason, ReplicationScheduler, ResolvedCapabilities, ResolvedDelegate, ResolvedReplicationOptions, ResolvedSecretPath, ResourceCapability, SECRET_NAME_RE, SECRET_SCOPE_RE, SQLAction, SQLActionType, SQLService, SQLServiceConfig, STORAGE_FULL_MESSAGE, STORAGE_MANAGE_URL, STORAGE_WRITE_TOO_LARGE_MESSAGE, SchemaInfo, SecretCatalogEntry, SecretPayload, SecretPutOptions, SecretScopeOptions, SecretsError, SecretsService, ServiceContext, ServiceContextConfig, ServiceSession, SessionExpiredError, ShareAccess, ShareLink, ShareLinkData, ShareSchema, SharingService, SharingServiceConfig, SignCallback, SignInOptions, SignRequest, SignResponse, SignedReceiverKeyInput, SilentNotificationHandler, Space, SpaceAbilitiesMap, SpaceConfig, SpaceCreationContext, SpaceErrorCode, SpaceErrorCodes, SpaceInfo, SpaceOwnership, SpaceService, SpaceServiceConfig, SqlStatement, SqlValue, StorageAccountUsage, StorageFullEvent, StorageStatus, StorageStatusOptions, StorageUsage, StorageUsageState, StoredDelegationChain, SubscribeOptions, TC832_RESERVED_SCOPES, TableInfo, TelemetryConfig, TelemetryEventHandler, TinyCloud, TinyCloudConfig, TinyCloudDebugEnableOptions, TinyCloudDebugEvent, TinyCloudDebugLevel, TinyCloudDebugLogger, TinyCloudDebugTimer, TinyCloudSession, UnsupportedFeatureError, VAULT_PERMISSION_SERVICE, VaultCrypto, VaultEntry, VaultError, VaultGetOptions, VaultGrantOptions, VaultHeaders, VaultListOptions, VaultNetworkReadResult, VaultPublicSpaceKVActions, VaultPutOptions, VerifyDecryptResponseInput, VersionCheckError, ViewInfo, WasmVaultFunctions, WellKnownDescriptorFetcher, addressStorageKey, appSecretScope, buildCanonicalDecryptRequest, buildDecryptAttenuation, buildDecryptFacts, buildDecryptInvocation, buildNetworkId, buildSpaceUri, canonicalHashHex, canonicalSignedResponse, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeEncryptionJson, canonicalizeNetworkId, canonicalizeSecretScope, checkDecryptInvocationInput, checkNodeInfo, clearTinyCloudDebugLogs, composeManifestRequest, createCapabilityKeyRegistry, createOpenKeyCallbackSigningStrategy, createSharingService, createSpaceService, createVaultCrypto, decryptEnvelopeWithKey, defaultSpaceCreationHandler, deriveSignedReceiverKey, didCacheKey, didEquals, disableTinyCloudDebug, discoverNetwork, enableTinyCloudDebug, encryptToNetwork, encryptionBase64Decode, encryptionBase64Encode, encryptionError, encryptionUtf8Decode, encryptionUtf8Encode, ensureNetworkUsableForDecrypt, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, generateRandomReceiverKey, getTinyCloudDebugLogs, hexDecode, hexEncode, installTinyCloudDebugGlobals, isCapabilitySubset, isEvmAddress, isNetworkId, isStorageFullError, loadManifest, makePkhSpaceId, makePublicSpaceId, networkDiscoveryKey, openWrappedKey, parseCanonicalNetworkId, parseExpiry, parseNetworkId, parsePkhDid, parseSecretCatalogKey, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveManifest, resolveSecretListPrefix, resolveSecretPath, resourceCapabilitiesToSpaceAbilitiesMap, storageUsageState, tinyCloudDebugLogger, validateEnvelope, validateManifest, verifyDecryptResponse } from '@tinycloud/sdk-core';
|
|
3
3
|
export { F as FileSessionStorage, M as MemorySessionStorage, W as WasmKeyProvider, a as WasmKeyProviderConfig, c as createWasmKeyProvider } from './WasmKeyProvider-5Ee7fcAw.js';
|
|
4
|
-
export { A as ACCEPTED_MARKER_VERSIONS, a as AuthDelegationArtifact, b as AuthRequestArtifact, B as BOOTSTRAP_COMPLETION_MARKER_KEY, c as BOOTSTRAP_COMPLETION_MARKER_VERSION, d as BootstrapCompletionMarker, e as BootstrapWarning, C as CompactRuntimeDelegationInput, f as CreateOwnerDelegationParams, D as DelegateToOptions, g as DelegateToResult, h as DelegatedAccess, i as DelegationAuthority, E as EnsureEncryptionNetworkOptions, I as InvalidRestoredSessionError, N as NodeEventEmitterStrategy, j as NodeUserAuthorization, k as NodeUserAuthorizationAuthorizeFn, l as NodeUserAuthorizationConfig, O as OpenKeyAuthorizationResultV1, m as OpenKeyAuthorizeInput, n as OpenKeyAuthorizeTinyCloud, o as OpenKeyBridgeInput, p as OwnerDelegationReceipt, P as PortableDelegation, R as RUNTIME_DELEGATION_REJECTIONS, q as RestorableSession, r as RuntimeDelegationActivator, s as RuntimeDelegationRejectedError, t as RuntimeDelegationRejection, u as RuntimePermissionGrantOptions, S as SecretPermissionHint, v as SecretReadInput, w as SecretReadResult, x as SessionGrantProof, y as SignStrategy, T as TinyCloudNode, z as TinyCloudNodeConfig, U as UnifiedOwnerRootInput, F as UnifiedOwnerRootReceipt, G as UnsupportedSessionRestoreError, V as ValidatedRuntimeDelegation, H as VerifiedSessionGrant, J as activateCompactRuntimeDelegation, K as activateValidatedRuntimeDelegation, L as defaultSignStrategy, M as deserializeDelegation, Q as grantAuthRequest, W as serializeDelegation, X as signedCompactUcanExpiry, Y as siweRuntimeDelegation, Z as wireOpenKeyAuthorize } from './TinyCloudNode-
|
|
4
|
+
export { A as ACCEPTED_MARKER_VERSIONS, a as AuthDelegationArtifact, b as AuthRequestArtifact, B as BOOTSTRAP_COMPLETION_MARKER_KEY, c as BOOTSTRAP_COMPLETION_MARKER_VERSION, d as BootstrapCompletionMarker, e as BootstrapWarning, C as CompactRuntimeDelegationInput, f as CreateOwnerDelegationParams, D as DelegateToOptions, g as DelegateToResult, h as DelegatedAccess, i as DelegationAuthority, E as EnsureEncryptionNetworkOptions, I as InvalidRestoredSessionError, N as NodeEventEmitterStrategy, j as NodeUserAuthorization, k as NodeUserAuthorizationAuthorizeFn, l as NodeUserAuthorizationConfig, O as OpenKeyAuthorizationResultV1, m as OpenKeyAuthorizeInput, n as OpenKeyAuthorizeTinyCloud, o as OpenKeyBridgeInput, p as OwnerDelegationReceipt, P as PortableDelegation, R as RUNTIME_DELEGATION_REJECTIONS, q as RestorableSession, r as RuntimeDelegationActivator, s as RuntimeDelegationRejectedError, t as RuntimeDelegationRejection, u as RuntimePermissionGrantOptions, S as SecretPermissionHint, v as SecretReadInput, w as SecretReadResult, x as SessionGrantProof, y as SignStrategy, T as TinyCloudNode, z as TinyCloudNodeConfig, U as UnifiedOwnerRootInput, F as UnifiedOwnerRootReceipt, G as UnsupportedSessionRestoreError, V as ValidatedRuntimeDelegation, H as VerifiedSessionGrant, J as activateCompactRuntimeDelegation, K as activateValidatedRuntimeDelegation, L as defaultSignStrategy, M as deserializeDelegation, Q as grantAuthRequest, W as serializeDelegation, X as signedCompactUcanExpiry, Y as siweRuntimeDelegation, Z as wireOpenKeyAuthorize } from './TinyCloudNode-DeV-L_14.js';
|
|
5
5
|
import { invoke, invokeAny, computeCid, prepareSession, completeSessionSetup, ensureEip55, makeSpaceId, createDelegation, parseRecapFromSiwe, parseVerifiedRecapFromSiwe, generateHostSIWEMessage, siweToDelegationHeaders, protocolVersion, vault_encrypt, vault_decrypt, vault_derive_key, vault_x25519_from_seed, vault_x25519_dh, vault_random_bytes, vault_sha256 } from '@tinycloud/node-sdk-wasm';
|
|
6
6
|
import { KVReplicaStorage } from '@tinycloud/sdk-services';
|
|
7
7
|
import { ProfileReplicaPurge } from '@tinycloud/sdk-services/kv/replication';
|
package/dist/index.js
CHANGED
|
@@ -18579,7 +18579,8 @@ import {
|
|
|
18579
18579
|
serviceError
|
|
18580
18580
|
} from "@tinycloud/sdk-core";
|
|
18581
18581
|
import {
|
|
18582
|
-
parsePermissionHint
|
|
18582
|
+
parsePermissionHint,
|
|
18583
|
+
tinyCloudDebugLogger
|
|
18583
18584
|
} from "@tinycloud/sdk-services";
|
|
18584
18585
|
|
|
18585
18586
|
// src/authorization/NodeUserAuthorization.ts
|
|
@@ -21800,7 +21801,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
21800
21801
|
invoke: config.invoke,
|
|
21801
21802
|
fetch: config.fetch ?? globalThis.fetch.bind(globalThis),
|
|
21802
21803
|
hosts: config.hosts,
|
|
21803
|
-
telemetry: this.config.telemetry
|
|
21804
|
+
telemetry: this.config.telemetry,
|
|
21805
|
+
retryPolicy: this.config.retryPolicy
|
|
21804
21806
|
}));
|
|
21805
21807
|
kvContext.setSession(config.session);
|
|
21806
21808
|
kvService.initialize(kvContext);
|
|
@@ -21851,7 +21853,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
21851
21853
|
});
|
|
21852
21854
|
this.tc = new TinyCloud(this.auth, {
|
|
21853
21855
|
invokeAny: this.invokeAnyWithRuntimePermissions,
|
|
21854
|
-
telemetry: config.telemetry
|
|
21856
|
+
telemetry: config.telemetry,
|
|
21857
|
+
retryPolicy: config.retryPolicy
|
|
21855
21858
|
});
|
|
21856
21859
|
}
|
|
21857
21860
|
shouldUseBootstrapSignInRequest(config) {
|
|
@@ -22213,7 +22216,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
22213
22216
|
this.auth = oldAuth;
|
|
22214
22217
|
this.tc = this.auth ? new TinyCloud(this.auth, {
|
|
22215
22218
|
invokeAny: this.invokeAnyWithRuntimePermissions,
|
|
22216
|
-
telemetry: this.config.telemetry
|
|
22219
|
+
telemetry: this.config.telemetry,
|
|
22220
|
+
retryPolicy: this.config.retryPolicy
|
|
22217
22221
|
}) : null;
|
|
22218
22222
|
this._capabilityRegistry = new CapabilityKeyRegistry();
|
|
22219
22223
|
this._keyProvider = new WasmKeyProvider({ sessionManager: this.sessionManager });
|
|
@@ -22864,7 +22868,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
22864
22868
|
invokeAny: context.invokeAny,
|
|
22865
22869
|
fetch: context.fetch,
|
|
22866
22870
|
hosts: context.hosts,
|
|
22867
|
-
telemetry: this.config.telemetry
|
|
22871
|
+
telemetry: this.config.telemetry,
|
|
22872
|
+
retryPolicy: this.config.retryPolicy
|
|
22868
22873
|
}));
|
|
22869
22874
|
scoped.setOperationAbortSignal(signal);
|
|
22870
22875
|
scoped.setSession({ ...session, spaceId });
|
|
@@ -22911,6 +22916,10 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
22911
22916
|
return;
|
|
22912
22917
|
}
|
|
22913
22918
|
if (!this.currentSessionCoversAccountRegistry()) {
|
|
22919
|
+
if (!_TinyCloudNode.accountRegistrySkipLogged) {
|
|
22920
|
+
_TinyCloudNode.accountRegistrySkipLogged = true;
|
|
22921
|
+
tinyCloudDebugLogger.log("registry.skip");
|
|
22922
|
+
}
|
|
22914
22923
|
return;
|
|
22915
22924
|
}
|
|
22916
22925
|
const controller = new AbortController();
|
|
@@ -22926,7 +22935,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
22926
22935
|
invokeAny: sharedContext.invokeAny,
|
|
22927
22936
|
fetch: sharedContext.fetch,
|
|
22928
22937
|
hosts: sharedContext.hosts,
|
|
22929
|
-
telemetry: this.config.telemetry
|
|
22938
|
+
telemetry: this.config.telemetry,
|
|
22939
|
+
retryPolicy: this.config.retryPolicy
|
|
22930
22940
|
}));
|
|
22931
22941
|
context.setOperationAbortSignal(controller.signal);
|
|
22932
22942
|
const current = this.currentTinyCloudSession();
|
|
@@ -23768,7 +23778,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
23768
23778
|
const graph = this.createServiceGraphLifetime();
|
|
23769
23779
|
const core = this.auth ? new TinyCloud(this.auth, {
|
|
23770
23780
|
invokeAny: graph.invokeAny,
|
|
23771
|
-
telemetry: this.config.telemetry
|
|
23781
|
+
telemetry: this.config.telemetry,
|
|
23782
|
+
retryPolicy: this.config.retryPolicy
|
|
23772
23783
|
}) : null;
|
|
23773
23784
|
if (core) {
|
|
23774
23785
|
core.initializeServices(graph.invoke, [input.host], graph.fetch);
|
|
@@ -23780,7 +23791,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
23780
23791
|
invokeAny: graph.invokeAny,
|
|
23781
23792
|
fetch: graph.fetch,
|
|
23782
23793
|
hosts: [input.host],
|
|
23783
|
-
telemetry: this.config.telemetry
|
|
23794
|
+
telemetry: this.config.telemetry,
|
|
23795
|
+
retryPolicy: this.config.retryPolicy
|
|
23784
23796
|
}));
|
|
23785
23797
|
const kv = new KVService2({});
|
|
23786
23798
|
kv.initialize(serviceContext);
|
|
@@ -23866,7 +23878,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
23866
23878
|
invoke: config.invoke,
|
|
23867
23879
|
fetch: config.fetch ?? globalThis.fetch.bind(globalThis),
|
|
23868
23880
|
hosts: config.hosts,
|
|
23869
|
-
telemetry: this.config.telemetry
|
|
23881
|
+
telemetry: this.config.telemetry,
|
|
23882
|
+
retryPolicy: this.config.retryPolicy
|
|
23870
23883
|
}));
|
|
23871
23884
|
context.setSession(config.session);
|
|
23872
23885
|
service.initialize(context);
|
|
@@ -23906,7 +23919,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
23906
23919
|
invokeAny: graph.invokeAny,
|
|
23907
23920
|
fetch: graph.fetch,
|
|
23908
23921
|
hosts: [input.host],
|
|
23909
|
-
telemetry: this.config.telemetry
|
|
23922
|
+
telemetry: this.config.telemetry,
|
|
23923
|
+
retryPolicy: this.config.retryPolicy
|
|
23910
23924
|
}));
|
|
23911
23925
|
context.setSession({ ...input.serviceSession, spaceId });
|
|
23912
23926
|
scopedKv.initialize(context);
|
|
@@ -23921,7 +23935,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
23921
23935
|
invokeAny: graph.invokeAny,
|
|
23922
23936
|
fetch: graph.fetch,
|
|
23923
23937
|
hosts: [input.host],
|
|
23924
|
-
telemetry: this.config.telemetry
|
|
23938
|
+
telemetry: this.config.telemetry,
|
|
23939
|
+
retryPolicy: this.config.retryPolicy
|
|
23925
23940
|
}));
|
|
23926
23941
|
context.setSession({ ...input.serviceSession, spaceId });
|
|
23927
23942
|
scopedKv.initialize(context);
|
|
@@ -24233,7 +24248,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24233
24248
|
});
|
|
24234
24249
|
this.tc = new TinyCloud(this.auth, {
|
|
24235
24250
|
invokeAny: this.invokeAnyWithRuntimePermissions,
|
|
24236
|
-
telemetry: this.config.telemetry
|
|
24251
|
+
telemetry: this.config.telemetry,
|
|
24252
|
+
retryPolicy: this.config.retryPolicy
|
|
24237
24253
|
});
|
|
24238
24254
|
this.config.prefix = prefix;
|
|
24239
24255
|
}
|
|
@@ -24293,7 +24309,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24293
24309
|
});
|
|
24294
24310
|
this.tc = new TinyCloud(this.auth, {
|
|
24295
24311
|
invokeAny: this.invokeAnyWithRuntimePermissions,
|
|
24296
|
-
telemetry: this.config.telemetry
|
|
24312
|
+
telemetry: this.config.telemetry,
|
|
24313
|
+
retryPolicy: this.config.retryPolicy
|
|
24297
24314
|
});
|
|
24298
24315
|
this.config.prefix = prefix;
|
|
24299
24316
|
}
|
|
@@ -24317,7 +24334,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24317
24334
|
invokeAny: this._serviceGraph.invokeAny,
|
|
24318
24335
|
fetch: this._serviceGraph.fetch,
|
|
24319
24336
|
hosts: [this.config.host],
|
|
24320
|
-
telemetry: this.config.telemetry
|
|
24337
|
+
telemetry: this.config.telemetry,
|
|
24338
|
+
retryPolicy: this.config.retryPolicy
|
|
24321
24339
|
}));
|
|
24322
24340
|
this._kv = new KVService2({});
|
|
24323
24341
|
this._kv.initialize(this._serviceContext);
|
|
@@ -24364,7 +24382,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24364
24382
|
invokeAny: this._serviceContext.invokeAny,
|
|
24365
24383
|
fetch: this._serviceContext.fetch,
|
|
24366
24384
|
hosts: this._serviceContext.hosts,
|
|
24367
|
-
telemetry: this.config.telemetry
|
|
24385
|
+
telemetry: this.config.telemetry,
|
|
24386
|
+
retryPolicy: this.config.retryPolicy
|
|
24368
24387
|
}));
|
|
24369
24388
|
const session = this._serviceContext.session;
|
|
24370
24389
|
if (session) {
|
|
@@ -24831,7 +24850,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24831
24850
|
invoke: config.invoke,
|
|
24832
24851
|
fetch: config.fetch ?? graph.fetch,
|
|
24833
24852
|
hosts: config.hosts,
|
|
24834
|
-
telemetry: this.config.telemetry
|
|
24853
|
+
telemetry: this.config.telemetry,
|
|
24854
|
+
retryPolicy: this.config.retryPolicy
|
|
24835
24855
|
}));
|
|
24836
24856
|
context.setSession(config.session);
|
|
24837
24857
|
service.initialize(context);
|
|
@@ -25152,7 +25172,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25152
25172
|
invokeAny: this._serviceContext.invokeAny,
|
|
25153
25173
|
fetch: this._serviceContext.fetch,
|
|
25154
25174
|
hosts: this._serviceContext.hosts,
|
|
25155
|
-
telemetry: this.config.telemetry
|
|
25175
|
+
telemetry: this.config.telemetry,
|
|
25176
|
+
retryPolicy: this.config.retryPolicy
|
|
25156
25177
|
}));
|
|
25157
25178
|
spaceScopedContext.setSession({ ...this._serviceContext.session, spaceId });
|
|
25158
25179
|
sql.initialize(spaceScopedContext);
|
|
@@ -25970,7 +25991,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25970
25991
|
invoke: this._serviceGraph.invoke,
|
|
25971
25992
|
fetch: this._serviceGraph.fetch,
|
|
25972
25993
|
hosts: this._serviceContext.hosts,
|
|
25973
|
-
telemetry: this.config.telemetry
|
|
25994
|
+
telemetry: this.config.telemetry,
|
|
25995
|
+
retryPolicy: this.config.retryPolicy
|
|
25974
25996
|
}));
|
|
25975
25997
|
publicContext.setSession({
|
|
25976
25998
|
delegationHeader: delegationSession.delegationHeader,
|
|
@@ -27462,6 +27484,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
27462
27484
|
};
|
|
27463
27485
|
}
|
|
27464
27486
|
};
|
|
27487
|
+
/** Set once per process: the registry sync was skipped for want of account access. */
|
|
27488
|
+
_TinyCloudNode.accountRegistrySkipLogged = false;
|
|
27465
27489
|
// ===========================================================================
|
|
27466
27490
|
// Capability-chain delegation (spec: .claude/specs/capability-chain.md)
|
|
27467
27491
|
// ===========================================================================
|
|
@@ -27516,7 +27540,7 @@ import {
|
|
|
27516
27540
|
principalDidEquals as principalDidEquals4,
|
|
27517
27541
|
parseCanonicalNetworkId,
|
|
27518
27542
|
TinyCloudDebugLogger,
|
|
27519
|
-
tinyCloudDebugLogger,
|
|
27543
|
+
tinyCloudDebugLogger as tinyCloudDebugLogger2,
|
|
27520
27544
|
enableTinyCloudDebug,
|
|
27521
27545
|
disableTinyCloudDebug,
|
|
27522
27546
|
getTinyCloudDebugLogs,
|
|
@@ -30445,7 +30469,7 @@ export {
|
|
|
30445
30469
|
siweRuntimeDelegation,
|
|
30446
30470
|
sqliteReplicaStorage,
|
|
30447
30471
|
storageUsageState,
|
|
30448
|
-
tinyCloudDebugLogger,
|
|
30472
|
+
tinyCloudDebugLogger2 as tinyCloudDebugLogger,
|
|
30449
30473
|
validateEnvelope,
|
|
30450
30474
|
validateManifest,
|
|
30451
30475
|
verifyDecryptResponse,
|