@tinycloud/node-sdk 2.7.0-beta.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{core-D_KNrE_y.d.cts → core-aXks8jFT.d.cts} +4 -1
- package/dist/{core-D_KNrE_y.d.ts → core-aXks8jFT.d.ts} +4 -1
- 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.map +1 -1
- package/dist/index.cjs +5 -1
- 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 +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -631,8 +631,11 @@ interface DelegationAuthority {
|
|
|
631
631
|
*/
|
|
632
632
|
interface RuntimeDelegationActivator {
|
|
633
633
|
readonly sessionDid: string;
|
|
634
|
+
readonly did?: string;
|
|
635
|
+
readonly isSessionOnly?: boolean;
|
|
634
636
|
computeDelegationCid(authorization: string): string;
|
|
635
637
|
useRuntimeDelegation(delegation: PortableDelegation): Promise<void>;
|
|
638
|
+
useDelegation?(delegation: PortableDelegation): Promise<unknown>;
|
|
636
639
|
getRuntimePermissionDelegations(): PortableDelegation[];
|
|
637
640
|
}
|
|
638
641
|
/** The installed authority returned by {@link activateValidatedRuntimeDelegation}. */
|
|
@@ -658,7 +661,7 @@ interface ValidatedRuntimeDelegation {
|
|
|
658
661
|
* invokes {@link TinyCloudNode.useRuntimeDelegation}. The node activation call
|
|
659
662
|
* remains the authority and delegation-chain validation boundary.
|
|
660
663
|
*/
|
|
661
|
-
declare function activateValidatedRuntimeDelegation(node: RuntimeDelegationActivator
|
|
664
|
+
declare function activateValidatedRuntimeDelegation(node: RuntimeDelegationActivator, delegation: PortableDelegation, options: {
|
|
662
665
|
host: string;
|
|
663
666
|
}): Promise<ValidatedRuntimeDelegation>;
|
|
664
667
|
/**
|
|
@@ -631,8 +631,11 @@ interface DelegationAuthority {
|
|
|
631
631
|
*/
|
|
632
632
|
interface RuntimeDelegationActivator {
|
|
633
633
|
readonly sessionDid: string;
|
|
634
|
+
readonly did?: string;
|
|
635
|
+
readonly isSessionOnly?: boolean;
|
|
634
636
|
computeDelegationCid(authorization: string): string;
|
|
635
637
|
useRuntimeDelegation(delegation: PortableDelegation): Promise<void>;
|
|
638
|
+
useDelegation?(delegation: PortableDelegation): Promise<unknown>;
|
|
636
639
|
getRuntimePermissionDelegations(): PortableDelegation[];
|
|
637
640
|
}
|
|
638
641
|
/** The installed authority returned by {@link activateValidatedRuntimeDelegation}. */
|
|
@@ -658,7 +661,7 @@ interface ValidatedRuntimeDelegation {
|
|
|
658
661
|
* invokes {@link TinyCloudNode.useRuntimeDelegation}. The node activation call
|
|
659
662
|
* remains the authority and delegation-chain validation boundary.
|
|
660
663
|
*/
|
|
661
|
-
declare function activateValidatedRuntimeDelegation(node: RuntimeDelegationActivator
|
|
664
|
+
declare function activateValidatedRuntimeDelegation(node: RuntimeDelegationActivator, delegation: PortableDelegation, options: {
|
|
662
665
|
host: string;
|
|
663
666
|
}): Promise<ValidatedRuntimeDelegation>;
|
|
664
667
|
/**
|