@tinycloud/node-sdk 3.2.0-beta.0 → 3.2.0-beta.1
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/{core-AEx5vAa8.d.cts → core-C7-YdUWg.d.cts} +11 -1
- package/dist/{core-AEx5vAa8.d.ts → core-C7-YdUWg.d.ts} +11 -1
- package/dist/core.cjs +5830 -5812
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +5814 -5796
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +7274 -7254
- 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 +7392 -7373
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -892,6 +892,14 @@ declare class RuntimeDelegationRejectedError extends Error {
|
|
|
892
892
|
readonly reason: RuntimeDelegationRejection;
|
|
893
893
|
constructor(reason: RuntimeDelegationRejection, message: string);
|
|
894
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* The expiry a compact UCAN authorization signs: its payload's `exp`. Reads
|
|
897
|
+
* the bytes the issuer's signature covers without verifying that signature,
|
|
898
|
+
* which the node does. `undefined` when `authorization` is not a compact UCAN
|
|
899
|
+
* or its payload has no finite numeric `exp`; then no local expiry decision
|
|
900
|
+
* can be made (activation refuses such a UCAN).
|
|
901
|
+
*/
|
|
902
|
+
declare function signedCompactUcanExpiry(authorization: string): Date | undefined;
|
|
895
903
|
/**
|
|
896
904
|
* CID-bind and activate one runtime delegation.
|
|
897
905
|
*
|
|
@@ -1677,6 +1685,8 @@ declare class TinyCloudNode {
|
|
|
1677
1685
|
* This is used by the CLI to restore a session that was created via the
|
|
1678
1686
|
* browser-based delegation flow (OpenKey `/delegate` page). Instead of
|
|
1679
1687
|
* signing in with a private key, it injects the delegation data directly.
|
|
1688
|
+
* A session without persisted SIWE proof is also refused locally once its
|
|
1689
|
+
* compact UCAN's signed expiry has passed, before host resolution.
|
|
1680
1690
|
*
|
|
1681
1691
|
* @param sessionData - The stored delegation data from the browser flow
|
|
1682
1692
|
*/
|
|
@@ -2566,4 +2576,4 @@ declare class WasmKeyProvider implements KeyProvider {
|
|
|
2566
2576
|
*/
|
|
2567
2577
|
declare function createWasmKeyProvider(sessionManager: SessionManagerWithListing): WasmKeyProvider;
|
|
2568
2578
|
|
|
2569
|
-
export { ACCEPTED_MARKER_VERSIONS as A, BOOTSTRAP_COMPLETION_MARKER_KEY as B, type CompactRuntimeDelegationInput as C, type DelegateToOptions as D, type EnsureEncryptionNetworkOptions as E, FileSessionStorage as F, activateValidatedRuntimeDelegation as G, createWasmKeyProvider as H, InvalidRestoredSessionError as I, defaultSignStrategy as J, deserializeDelegation as K, grantAuthRequest as L, MemorySessionStorage as M, type NodeEventEmitterStrategy as N, type OwnerDelegationReceipt as O, type PortableDelegation as P, serializeDelegation as Q, RUNTIME_DELEGATION_REJECTIONS as R, type SecretPermissionHint as S, TinyCloudNode as T, type UnifiedOwnerRootInput as U, type ValidatedRuntimeDelegation as V, WasmKeyProvider as W, type AuthDelegationArtifact as a, type AuthRequestArtifact as b, BOOTSTRAP_COMPLETION_MARKER_VERSION as c, type BootstrapCompletionMarker as d, type BootstrapWarning as e, type CreateOwnerDelegationParams as f, type DelegateToResult as g, DelegatedAccess as h, type DelegationAuthority as i, NodeUserAuthorization as j, type NodeUserAuthorizationConfig as k, type RestorableSession as l, type RuntimeDelegationActivator as m, RuntimeDelegationRejectedError as n, type RuntimeDelegationRejection as o, type RuntimePermissionGrantOptions as p, type SecretReadInput as q, type SecretReadResult as r, type SessionGrantProof as s, type SignStrategy as t, type TinyCloudNodeConfig as u, type UnifiedOwnerRootReceipt as v, UnsupportedSessionRestoreError as w, type VerifiedSessionGrant as x, type WasmKeyProviderConfig as y, activateCompactRuntimeDelegation as z };
|
|
2579
|
+
export { ACCEPTED_MARKER_VERSIONS as A, BOOTSTRAP_COMPLETION_MARKER_KEY as B, type CompactRuntimeDelegationInput as C, type DelegateToOptions as D, type EnsureEncryptionNetworkOptions as E, FileSessionStorage as F, activateValidatedRuntimeDelegation as G, createWasmKeyProvider as H, InvalidRestoredSessionError as I, defaultSignStrategy as J, deserializeDelegation as K, grantAuthRequest as L, MemorySessionStorage as M, type NodeEventEmitterStrategy as N, type OwnerDelegationReceipt as O, type PortableDelegation as P, serializeDelegation as Q, RUNTIME_DELEGATION_REJECTIONS as R, type SecretPermissionHint as S, TinyCloudNode as T, type UnifiedOwnerRootInput as U, type ValidatedRuntimeDelegation as V, WasmKeyProvider as W, signedCompactUcanExpiry as X, type AuthDelegationArtifact as a, type AuthRequestArtifact as b, BOOTSTRAP_COMPLETION_MARKER_VERSION as c, type BootstrapCompletionMarker as d, type BootstrapWarning as e, type CreateOwnerDelegationParams as f, type DelegateToResult as g, DelegatedAccess as h, type DelegationAuthority as i, NodeUserAuthorization as j, type NodeUserAuthorizationConfig as k, type RestorableSession as l, type RuntimeDelegationActivator as m, RuntimeDelegationRejectedError as n, type RuntimeDelegationRejection as o, type RuntimePermissionGrantOptions as p, type SecretReadInput as q, type SecretReadResult as r, type SessionGrantProof as s, type SignStrategy as t, type TinyCloudNodeConfig as u, type UnifiedOwnerRootReceipt as v, UnsupportedSessionRestoreError as w, type VerifiedSessionGrant as x, type WasmKeyProviderConfig as y, activateCompactRuntimeDelegation as z };
|
|
@@ -892,6 +892,14 @@ declare class RuntimeDelegationRejectedError extends Error {
|
|
|
892
892
|
readonly reason: RuntimeDelegationRejection;
|
|
893
893
|
constructor(reason: RuntimeDelegationRejection, message: string);
|
|
894
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* The expiry a compact UCAN authorization signs: its payload's `exp`. Reads
|
|
897
|
+
* the bytes the issuer's signature covers without verifying that signature,
|
|
898
|
+
* which the node does. `undefined` when `authorization` is not a compact UCAN
|
|
899
|
+
* or its payload has no finite numeric `exp`; then no local expiry decision
|
|
900
|
+
* can be made (activation refuses such a UCAN).
|
|
901
|
+
*/
|
|
902
|
+
declare function signedCompactUcanExpiry(authorization: string): Date | undefined;
|
|
895
903
|
/**
|
|
896
904
|
* CID-bind and activate one runtime delegation.
|
|
897
905
|
*
|
|
@@ -1677,6 +1685,8 @@ declare class TinyCloudNode {
|
|
|
1677
1685
|
* This is used by the CLI to restore a session that was created via the
|
|
1678
1686
|
* browser-based delegation flow (OpenKey `/delegate` page). Instead of
|
|
1679
1687
|
* signing in with a private key, it injects the delegation data directly.
|
|
1688
|
+
* A session without persisted SIWE proof is also refused locally once its
|
|
1689
|
+
* compact UCAN's signed expiry has passed, before host resolution.
|
|
1680
1690
|
*
|
|
1681
1691
|
* @param sessionData - The stored delegation data from the browser flow
|
|
1682
1692
|
*/
|
|
@@ -2566,4 +2576,4 @@ declare class WasmKeyProvider implements KeyProvider {
|
|
|
2566
2576
|
*/
|
|
2567
2577
|
declare function createWasmKeyProvider(sessionManager: SessionManagerWithListing): WasmKeyProvider;
|
|
2568
2578
|
|
|
2569
|
-
export { ACCEPTED_MARKER_VERSIONS as A, BOOTSTRAP_COMPLETION_MARKER_KEY as B, type CompactRuntimeDelegationInput as C, type DelegateToOptions as D, type EnsureEncryptionNetworkOptions as E, FileSessionStorage as F, activateValidatedRuntimeDelegation as G, createWasmKeyProvider as H, InvalidRestoredSessionError as I, defaultSignStrategy as J, deserializeDelegation as K, grantAuthRequest as L, MemorySessionStorage as M, type NodeEventEmitterStrategy as N, type OwnerDelegationReceipt as O, type PortableDelegation as P, serializeDelegation as Q, RUNTIME_DELEGATION_REJECTIONS as R, type SecretPermissionHint as S, TinyCloudNode as T, type UnifiedOwnerRootInput as U, type ValidatedRuntimeDelegation as V, WasmKeyProvider as W, type AuthDelegationArtifact as a, type AuthRequestArtifact as b, BOOTSTRAP_COMPLETION_MARKER_VERSION as c, type BootstrapCompletionMarker as d, type BootstrapWarning as e, type CreateOwnerDelegationParams as f, type DelegateToResult as g, DelegatedAccess as h, type DelegationAuthority as i, NodeUserAuthorization as j, type NodeUserAuthorizationConfig as k, type RestorableSession as l, type RuntimeDelegationActivator as m, RuntimeDelegationRejectedError as n, type RuntimeDelegationRejection as o, type RuntimePermissionGrantOptions as p, type SecretReadInput as q, type SecretReadResult as r, type SessionGrantProof as s, type SignStrategy as t, type TinyCloudNodeConfig as u, type UnifiedOwnerRootReceipt as v, UnsupportedSessionRestoreError as w, type VerifiedSessionGrant as x, type WasmKeyProviderConfig as y, activateCompactRuntimeDelegation as z };
|
|
2579
|
+
export { ACCEPTED_MARKER_VERSIONS as A, BOOTSTRAP_COMPLETION_MARKER_KEY as B, type CompactRuntimeDelegationInput as C, type DelegateToOptions as D, type EnsureEncryptionNetworkOptions as E, FileSessionStorage as F, activateValidatedRuntimeDelegation as G, createWasmKeyProvider as H, InvalidRestoredSessionError as I, defaultSignStrategy as J, deserializeDelegation as K, grantAuthRequest as L, MemorySessionStorage as M, type NodeEventEmitterStrategy as N, type OwnerDelegationReceipt as O, type PortableDelegation as P, serializeDelegation as Q, RUNTIME_DELEGATION_REJECTIONS as R, type SecretPermissionHint as S, TinyCloudNode as T, type UnifiedOwnerRootInput as U, type ValidatedRuntimeDelegation as V, WasmKeyProvider as W, signedCompactUcanExpiry as X, type AuthDelegationArtifact as a, type AuthRequestArtifact as b, BOOTSTRAP_COMPLETION_MARKER_VERSION as c, type BootstrapCompletionMarker as d, type BootstrapWarning as e, type CreateOwnerDelegationParams as f, type DelegateToResult as g, DelegatedAccess as h, type DelegationAuthority as i, NodeUserAuthorization as j, type NodeUserAuthorizationConfig as k, type RestorableSession as l, type RuntimeDelegationActivator as m, RuntimeDelegationRejectedError as n, type RuntimeDelegationRejection as o, type RuntimePermissionGrantOptions as p, type SecretReadInput as q, type SecretReadResult as r, type SessionGrantProof as s, type SignStrategy as t, type TinyCloudNodeConfig as u, type UnifiedOwnerRootReceipt as v, UnsupportedSessionRestoreError as w, type VerifiedSessionGrant as x, type WasmKeyProviderConfig as y, activateCompactRuntimeDelegation as z };
|