@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.
@@ -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 | TinyCloudNode, delegation: PortableDelegation, options: {
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 | TinyCloudNode, delegation: PortableDelegation, options: {
664
+ declare function activateValidatedRuntimeDelegation(node: RuntimeDelegationActivator, delegation: PortableDelegation, options: {
662
665
  host: string;
663
666
  }): Promise<ValidatedRuntimeDelegation>;
664
667
  /**