@tinycloud/sdk-core 2.4.0-beta.6 → 2.4.0-beta.8
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.cjs +336 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +336 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -4255,6 +4255,8 @@ interface SpaceServiceConfig {
|
|
|
4255
4255
|
* Required for space.delegations.create() to work.
|
|
4256
4256
|
*/
|
|
4257
4257
|
createDelegation?: CreateDelegationFunction;
|
|
4258
|
+
/** Optional best-effort hook after the SDK discovers or creates a space. */
|
|
4259
|
+
onSpaceRegistered?: (space: SpaceInfo) => void | Promise<void>;
|
|
4258
4260
|
}
|
|
4259
4261
|
/**
|
|
4260
4262
|
* Interface for SpaceService.
|
|
@@ -4375,6 +4377,7 @@ declare class SpaceService implements ISpaceService {
|
|
|
4375
4377
|
private _userDid?;
|
|
4376
4378
|
private sharingService?;
|
|
4377
4379
|
private createDelegationFn?;
|
|
4380
|
+
private onSpaceRegisteredFn?;
|
|
4378
4381
|
/** Cache of created Space objects */
|
|
4379
4382
|
private spaceCache;
|
|
4380
4383
|
/** Cache of space info */
|
|
@@ -4432,6 +4435,7 @@ declare class SpaceService implements ISpaceService {
|
|
|
4432
4435
|
* @param name - The name for the new space
|
|
4433
4436
|
*/
|
|
4434
4437
|
create(name: string): Promise<Result$1<SpaceInfo, ServiceError>>;
|
|
4438
|
+
private notifySpaceRegistered;
|
|
4435
4439
|
/**
|
|
4436
4440
|
* Get a Space object by name or full URI.
|
|
4437
4441
|
*
|
|
@@ -4484,6 +4488,18 @@ interface AccountApplication {
|
|
|
4484
4488
|
updatedAt?: string;
|
|
4485
4489
|
name?: string;
|
|
4486
4490
|
description?: string;
|
|
4491
|
+
manifestHash?: string;
|
|
4492
|
+
}
|
|
4493
|
+
interface AccountSpace {
|
|
4494
|
+
spaceId: string;
|
|
4495
|
+
name: string;
|
|
4496
|
+
ownerDid: string;
|
|
4497
|
+
type: "owned" | "delegated" | "discovered";
|
|
4498
|
+
permissions: string[];
|
|
4499
|
+
status: "active" | "archived";
|
|
4500
|
+
registeredAt?: string;
|
|
4501
|
+
updatedAt?: string;
|
|
4502
|
+
expiresAt?: Date;
|
|
4487
4503
|
}
|
|
4488
4504
|
interface AccountDelegation {
|
|
4489
4505
|
cid: string;
|
|
@@ -4505,12 +4521,14 @@ interface AccountStatus {
|
|
|
4505
4521
|
primarySpaceId?: string;
|
|
4506
4522
|
accountSpaceId?: string;
|
|
4507
4523
|
applications: number;
|
|
4524
|
+
spaces: number;
|
|
4508
4525
|
grantedDelegations: number;
|
|
4509
4526
|
receivedDelegations: number;
|
|
4510
4527
|
}
|
|
4511
4528
|
interface AccountIndexRebuildResult {
|
|
4512
4529
|
database: string;
|
|
4513
4530
|
applications: number;
|
|
4531
|
+
spaces: number;
|
|
4514
4532
|
delegations: number;
|
|
4515
4533
|
syncedAt: string;
|
|
4516
4534
|
}
|
|
@@ -4541,6 +4559,13 @@ declare class AccountService {
|
|
|
4541
4559
|
register: (manifest: Manifest | Manifest[]) => Promise<Result$1<AccountApplication>>;
|
|
4542
4560
|
remove: (appId: string) => Promise<Result$1<void>>;
|
|
4543
4561
|
};
|
|
4562
|
+
readonly spaces: {
|
|
4563
|
+
list: () => Promise<Result$1<AccountSpace[]>>;
|
|
4564
|
+
get: (spaceId: string) => Promise<Result$1<AccountSpace>>;
|
|
4565
|
+
register: (space: SpaceInfo | AccountSpace) => Promise<Result$1<AccountSpace>>;
|
|
4566
|
+
syncAccessible: () => Promise<Result$1<AccountSpace[]>>;
|
|
4567
|
+
remove: (spaceId: string) => Promise<Result$1<void>>;
|
|
4568
|
+
};
|
|
4544
4569
|
readonly delegations: {
|
|
4545
4570
|
list: (options?: AccountDelegationListOptions) => Promise<Result$1<AccountDelegation[]>>;
|
|
4546
4571
|
revoke: (options: AccountDelegationRevokeOptions) => Promise<Result$1<void>>;
|
|
@@ -4550,15 +4575,32 @@ declare class AccountService {
|
|
|
4550
4575
|
applications: {
|
|
4551
4576
|
list: () => Promise<Result$1<AccountApplication[]>>;
|
|
4552
4577
|
};
|
|
4578
|
+
spaces: {
|
|
4579
|
+
list: () => Promise<Result$1<AccountSpace[]>>;
|
|
4580
|
+
};
|
|
4553
4581
|
delegations: {
|
|
4554
4582
|
list: (options?: AccountDelegationListOptions) => Promise<Result$1<AccountDelegation[]>>;
|
|
4555
4583
|
};
|
|
4556
4584
|
query: <T = Record<string, unknown>>(sql: string, params?: SqlValue[]) => Promise<Result$1<QueryResponse<T>>>;
|
|
4585
|
+
status: () => Promise<Result$1<AccountIndexStatus>>;
|
|
4557
4586
|
};
|
|
4558
4587
|
private accountKV;
|
|
4559
4588
|
private accountDb;
|
|
4589
|
+
private indexHasApplicationHash;
|
|
4590
|
+
private upsertApplicationIndex;
|
|
4591
|
+
private deleteApplicationIndex;
|
|
4592
|
+
private upsertSpaceIndex;
|
|
4593
|
+
private deleteSpaceIndex;
|
|
4560
4594
|
private resolveSpace;
|
|
4561
4595
|
}
|
|
4596
|
+
interface AccountIndexStatus {
|
|
4597
|
+
database: string;
|
|
4598
|
+
sources: Array<{
|
|
4599
|
+
source: string;
|
|
4600
|
+
syncedAt: string;
|
|
4601
|
+
count: number;
|
|
4602
|
+
}>;
|
|
4603
|
+
}
|
|
4562
4604
|
|
|
4563
4605
|
/**
|
|
4564
4606
|
* Shared space utilities for TinyCloud.
|
|
@@ -4779,4 +4821,4 @@ declare const EXPIRY: {
|
|
|
4779
4821
|
declare const DEFAULT_SIGNED_READ_URL_EXPIRY_MS: number;
|
|
4780
4822
|
type ExpiryTier = keyof typeof EXPIRY;
|
|
4781
4823
|
|
|
4782
|
-
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, type AccountApplication, type AccountDelegation, type AccountDelegationListOptions, type AccountDelegationRevokeOptions, type AccountIndexRebuildResult, AccountService, type AccountServiceConfig, type AccountStatus, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CanonicalAddress, type CanonicalParsedNetworkId, 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_SIGNED_READ_URL_EXPIRY_MS, 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 DidCacheKeyOptions, type DidEqualsOptions, ENCRYPTION_MANIFEST_SPACE, ENCRYPTION_PERMISSION_SERVICE, EXPIRY, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type ExpiryTier, 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, IdentityParseError, 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, type PkhDidParts, 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, addressStorageKey, applyPrefix, buildSpaceUri, canonicalLocationPayload, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeNetworkId, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, didCacheKey, didEquals, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, fetchLocationRecord, fetchPeerId, httpUrlToMultiaddr, isCapabilitySubset, isEvmAddress, loadManifest, locationPayloadForRecord, makePkhSpaceId, makePublicSpaceId, manifestAbilitiesUnion, multiaddrToHttpUrl, normalizeDefaults, parseCanonicalNetworkId, parseExpiry, parsePkhDid, parseRecapCapabilities, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveCloudLocation, resolveManifest, resolveTinyCloudHosts, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, signLocationRecord, submitHostDelegation, validateClientSession, validateLocationRecord, validateLocationRecordPayload, validateManifest, validatePersistedSessionData, verifyDidKeyEd25519Signature, verifyLocationRecord };
|
|
4824
|
+
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, type AccountApplication, type AccountDelegation, type AccountDelegationListOptions, type AccountDelegationRevokeOptions, type AccountIndexRebuildResult, type AccountIndexStatus, AccountService, type AccountServiceConfig, type AccountSpace, type AccountStatus, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CanonicalAddress, type CanonicalParsedNetworkId, 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_SIGNED_READ_URL_EXPIRY_MS, 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 DidCacheKeyOptions, type DidEqualsOptions, ENCRYPTION_MANIFEST_SPACE, ENCRYPTION_PERMISSION_SERVICE, EXPIRY, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type ExpiryTier, 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, IdentityParseError, 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, type PkhDidParts, 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, addressStorageKey, applyPrefix, buildSpaceUri, canonicalLocationPayload, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeNetworkId, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, didCacheKey, didEquals, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, fetchLocationRecord, fetchPeerId, httpUrlToMultiaddr, isCapabilitySubset, isEvmAddress, loadManifest, locationPayloadForRecord, makePkhSpaceId, makePublicSpaceId, manifestAbilitiesUnion, multiaddrToHttpUrl, normalizeDefaults, parseCanonicalNetworkId, parseExpiry, parsePkhDid, parseRecapCapabilities, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveCloudLocation, resolveManifest, resolveTinyCloudHosts, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, signLocationRecord, submitHostDelegation, validateClientSession, validateLocationRecord, validateLocationRecordPayload, validateManifest, validatePersistedSessionData, verifyDidKeyEd25519Signature, verifyLocationRecord };
|
package/dist/index.d.ts
CHANGED
|
@@ -4255,6 +4255,8 @@ interface SpaceServiceConfig {
|
|
|
4255
4255
|
* Required for space.delegations.create() to work.
|
|
4256
4256
|
*/
|
|
4257
4257
|
createDelegation?: CreateDelegationFunction;
|
|
4258
|
+
/** Optional best-effort hook after the SDK discovers or creates a space. */
|
|
4259
|
+
onSpaceRegistered?: (space: SpaceInfo) => void | Promise<void>;
|
|
4258
4260
|
}
|
|
4259
4261
|
/**
|
|
4260
4262
|
* Interface for SpaceService.
|
|
@@ -4375,6 +4377,7 @@ declare class SpaceService implements ISpaceService {
|
|
|
4375
4377
|
private _userDid?;
|
|
4376
4378
|
private sharingService?;
|
|
4377
4379
|
private createDelegationFn?;
|
|
4380
|
+
private onSpaceRegisteredFn?;
|
|
4378
4381
|
/** Cache of created Space objects */
|
|
4379
4382
|
private spaceCache;
|
|
4380
4383
|
/** Cache of space info */
|
|
@@ -4432,6 +4435,7 @@ declare class SpaceService implements ISpaceService {
|
|
|
4432
4435
|
* @param name - The name for the new space
|
|
4433
4436
|
*/
|
|
4434
4437
|
create(name: string): Promise<Result$1<SpaceInfo, ServiceError>>;
|
|
4438
|
+
private notifySpaceRegistered;
|
|
4435
4439
|
/**
|
|
4436
4440
|
* Get a Space object by name or full URI.
|
|
4437
4441
|
*
|
|
@@ -4484,6 +4488,18 @@ interface AccountApplication {
|
|
|
4484
4488
|
updatedAt?: string;
|
|
4485
4489
|
name?: string;
|
|
4486
4490
|
description?: string;
|
|
4491
|
+
manifestHash?: string;
|
|
4492
|
+
}
|
|
4493
|
+
interface AccountSpace {
|
|
4494
|
+
spaceId: string;
|
|
4495
|
+
name: string;
|
|
4496
|
+
ownerDid: string;
|
|
4497
|
+
type: "owned" | "delegated" | "discovered";
|
|
4498
|
+
permissions: string[];
|
|
4499
|
+
status: "active" | "archived";
|
|
4500
|
+
registeredAt?: string;
|
|
4501
|
+
updatedAt?: string;
|
|
4502
|
+
expiresAt?: Date;
|
|
4487
4503
|
}
|
|
4488
4504
|
interface AccountDelegation {
|
|
4489
4505
|
cid: string;
|
|
@@ -4505,12 +4521,14 @@ interface AccountStatus {
|
|
|
4505
4521
|
primarySpaceId?: string;
|
|
4506
4522
|
accountSpaceId?: string;
|
|
4507
4523
|
applications: number;
|
|
4524
|
+
spaces: number;
|
|
4508
4525
|
grantedDelegations: number;
|
|
4509
4526
|
receivedDelegations: number;
|
|
4510
4527
|
}
|
|
4511
4528
|
interface AccountIndexRebuildResult {
|
|
4512
4529
|
database: string;
|
|
4513
4530
|
applications: number;
|
|
4531
|
+
spaces: number;
|
|
4514
4532
|
delegations: number;
|
|
4515
4533
|
syncedAt: string;
|
|
4516
4534
|
}
|
|
@@ -4541,6 +4559,13 @@ declare class AccountService {
|
|
|
4541
4559
|
register: (manifest: Manifest | Manifest[]) => Promise<Result$1<AccountApplication>>;
|
|
4542
4560
|
remove: (appId: string) => Promise<Result$1<void>>;
|
|
4543
4561
|
};
|
|
4562
|
+
readonly spaces: {
|
|
4563
|
+
list: () => Promise<Result$1<AccountSpace[]>>;
|
|
4564
|
+
get: (spaceId: string) => Promise<Result$1<AccountSpace>>;
|
|
4565
|
+
register: (space: SpaceInfo | AccountSpace) => Promise<Result$1<AccountSpace>>;
|
|
4566
|
+
syncAccessible: () => Promise<Result$1<AccountSpace[]>>;
|
|
4567
|
+
remove: (spaceId: string) => Promise<Result$1<void>>;
|
|
4568
|
+
};
|
|
4544
4569
|
readonly delegations: {
|
|
4545
4570
|
list: (options?: AccountDelegationListOptions) => Promise<Result$1<AccountDelegation[]>>;
|
|
4546
4571
|
revoke: (options: AccountDelegationRevokeOptions) => Promise<Result$1<void>>;
|
|
@@ -4550,15 +4575,32 @@ declare class AccountService {
|
|
|
4550
4575
|
applications: {
|
|
4551
4576
|
list: () => Promise<Result$1<AccountApplication[]>>;
|
|
4552
4577
|
};
|
|
4578
|
+
spaces: {
|
|
4579
|
+
list: () => Promise<Result$1<AccountSpace[]>>;
|
|
4580
|
+
};
|
|
4553
4581
|
delegations: {
|
|
4554
4582
|
list: (options?: AccountDelegationListOptions) => Promise<Result$1<AccountDelegation[]>>;
|
|
4555
4583
|
};
|
|
4556
4584
|
query: <T = Record<string, unknown>>(sql: string, params?: SqlValue[]) => Promise<Result$1<QueryResponse<T>>>;
|
|
4585
|
+
status: () => Promise<Result$1<AccountIndexStatus>>;
|
|
4557
4586
|
};
|
|
4558
4587
|
private accountKV;
|
|
4559
4588
|
private accountDb;
|
|
4589
|
+
private indexHasApplicationHash;
|
|
4590
|
+
private upsertApplicationIndex;
|
|
4591
|
+
private deleteApplicationIndex;
|
|
4592
|
+
private upsertSpaceIndex;
|
|
4593
|
+
private deleteSpaceIndex;
|
|
4560
4594
|
private resolveSpace;
|
|
4561
4595
|
}
|
|
4596
|
+
interface AccountIndexStatus {
|
|
4597
|
+
database: string;
|
|
4598
|
+
sources: Array<{
|
|
4599
|
+
source: string;
|
|
4600
|
+
syncedAt: string;
|
|
4601
|
+
count: number;
|
|
4602
|
+
}>;
|
|
4603
|
+
}
|
|
4562
4604
|
|
|
4563
4605
|
/**
|
|
4564
4606
|
* Shared space utilities for TinyCloud.
|
|
@@ -4779,4 +4821,4 @@ declare const EXPIRY: {
|
|
|
4779
4821
|
declare const DEFAULT_SIGNED_READ_URL_EXPIRY_MS: number;
|
|
4780
4822
|
type ExpiryTier = keyof typeof EXPIRY;
|
|
4781
4823
|
|
|
4782
|
-
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, type AccountApplication, type AccountDelegation, type AccountDelegationListOptions, type AccountDelegationRevokeOptions, type AccountIndexRebuildResult, AccountService, type AccountServiceConfig, type AccountStatus, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CanonicalAddress, type CanonicalParsedNetworkId, 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_SIGNED_READ_URL_EXPIRY_MS, 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 DidCacheKeyOptions, type DidEqualsOptions, ENCRYPTION_MANIFEST_SPACE, ENCRYPTION_PERMISSION_SERVICE, EXPIRY, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type ExpiryTier, 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, IdentityParseError, 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, type PkhDidParts, 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, addressStorageKey, applyPrefix, buildSpaceUri, canonicalLocationPayload, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeNetworkId, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, didCacheKey, didEquals, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, fetchLocationRecord, fetchPeerId, httpUrlToMultiaddr, isCapabilitySubset, isEvmAddress, loadManifest, locationPayloadForRecord, makePkhSpaceId, makePublicSpaceId, manifestAbilitiesUnion, multiaddrToHttpUrl, normalizeDefaults, parseCanonicalNetworkId, parseExpiry, parsePkhDid, parseRecapCapabilities, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveCloudLocation, resolveManifest, resolveTinyCloudHosts, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, signLocationRecord, submitHostDelegation, validateClientSession, validateLocationRecord, validateLocationRecordPayload, validateManifest, validatePersistedSessionData, verifyDidKeyEd25519Signature, verifyLocationRecord };
|
|
4824
|
+
export { ACCOUNT_REGISTRY_PATH, ACCOUNT_REGISTRY_SPACE, type AbilitiesMap, type AccountApplication, type AccountDelegation, type AccountDelegationListOptions, type AccountDelegationRevokeOptions, type AccountIndexRebuildResult, type AccountIndexStatus, AccountService, type AccountServiceConfig, type AccountSpace, type AccountStatus, AutoApproveSpaceCreationHandler, type AutoRejectStrategy, type AutoSignStrategy, type Bytes, type CallbackStrategy, type CanonicalAddress, type CanonicalParsedNetworkId, 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_SIGNED_READ_URL_EXPIRY_MS, 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 DidCacheKeyOptions, type DidEqualsOptions, ENCRYPTION_MANIFEST_SPACE, ENCRYPTION_PERMISSION_SERVICE, EXPIRY, type EncodedShareData, type EnsData, EnsDataSchema, type EventEmitterStrategy, type ExpiryTier, 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, IdentityParseError, 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, type PkhDidParts, 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, addressStorageKey, applyPrefix, buildSpaceUri, canonicalLocationPayload, canonicalizeAddress, canonicalizeDid, canonicalizeDidUrl, canonicalizeNetworkId, checkNodeInfo, composeManifestRequest, createCapabilityKeyRegistry, createSharingService, createSpaceService, defaultSignStrategy, defaultSpaceCreationHandler, didCacheKey, didEquals, expandActionShortNames, expandPermissionEntries, expandPermissionEntry, fetchLocationRecord, fetchPeerId, httpUrlToMultiaddr, isCapabilitySubset, isEvmAddress, loadManifest, locationPayloadForRecord, makePkhSpaceId, makePublicSpaceId, manifestAbilitiesUnion, multiaddrToHttpUrl, normalizeDefaults, parseCanonicalNetworkId, parseExpiry, parsePkhDid, parseRecapCapabilities, parseSpaceUri, pkhDid, principalDid, principalDidEquals, resolveCloudLocation, resolveManifest, resolveTinyCloudHosts, resourceCapabilitiesToAbilitiesMap, resourceCapabilitiesToSpaceAbilitiesMap, signLocationRecord, submitHostDelegation, validateClientSession, validateLocationRecord, validateLocationRecordPayload, validateManifest, validatePersistedSessionData, verifyDidKeyEd25519Signature, verifyLocationRecord };
|