@tinycloud/sdk-core 3.8.0-beta.3 → 3.8.0-beta.5

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.
@@ -1649,17 +1649,17 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
1649
1649
  /** Issue a terminal delegation: the node refuses onward delegation. Default `false`. */
1650
1650
  disableSubDelegation: z.ZodOptional<z.ZodBoolean>;
1651
1651
  }, "strip", z.ZodTypeAny, {
1652
+ abilities: Record<string, Record<string, string[]>>;
1652
1653
  session: ServiceSession;
1653
1654
  spaceId: string;
1654
1655
  delegateDID: string;
1655
- abilities: Record<string, Record<string, string[]>>;
1656
1656
  expirationSecs: number;
1657
1657
  disableSubDelegation?: boolean | undefined;
1658
1658
  notBeforeSecs?: number | undefined;
1659
1659
  }, {
1660
+ abilities: Record<string, Record<string, string[]>>;
1660
1661
  spaceId: string;
1661
1662
  delegateDID: string;
1662
- abilities: Record<string, Record<string, string[]>>;
1663
1663
  expirationSecs: number;
1664
1664
  session?: unknown;
1665
1665
  disableSubDelegation?: boolean | undefined;
@@ -1826,8 +1826,16 @@ declare class DelegationManager {
1826
1826
  * exposing delegation metadata.
1827
1827
  */
1828
1828
  status(cid: string): Promise<Result<DelegationStatus>>;
1829
- /** Query lifecycle-complete delegation history for the authenticated account. */
1830
- query(options?: AccountDelegationQueryOptions): Promise<Result<AccountDelegationPage>>;
1829
+ /**
1830
+ * Query lifecycle-complete delegation history for the authenticated account.
1831
+ *
1832
+ * `scope.spaces` lists the spaces to sign `tinycloud.delegation/list` for, in order. Omitted, the
1833
+ * account space is tried, then the session's own space. A caller that knows which of them the session
1834
+ * holds passes only those; an empty list sends nothing and answers PERMISSION_DENIED.
1835
+ */
1836
+ query(options?: AccountDelegationQueryOptions, scope?: {
1837
+ readonly spaces?: readonly string[];
1838
+ }): Promise<Result<AccountDelegationPage>>;
1831
1839
  /**
1832
1840
  * Gets the full delegation chain for a given delegation.
1833
1841
  *
@@ -1649,17 +1649,17 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
1649
1649
  /** Issue a terminal delegation: the node refuses onward delegation. Default `false`. */
1650
1650
  disableSubDelegation: z.ZodOptional<z.ZodBoolean>;
1651
1651
  }, "strip", z.ZodTypeAny, {
1652
+ abilities: Record<string, Record<string, string[]>>;
1652
1653
  session: ServiceSession;
1653
1654
  spaceId: string;
1654
1655
  delegateDID: string;
1655
- abilities: Record<string, Record<string, string[]>>;
1656
1656
  expirationSecs: number;
1657
1657
  disableSubDelegation?: boolean | undefined;
1658
1658
  notBeforeSecs?: number | undefined;
1659
1659
  }, {
1660
+ abilities: Record<string, Record<string, string[]>>;
1660
1661
  spaceId: string;
1661
1662
  delegateDID: string;
1662
- abilities: Record<string, Record<string, string[]>>;
1663
1663
  expirationSecs: number;
1664
1664
  session?: unknown;
1665
1665
  disableSubDelegation?: boolean | undefined;
@@ -1826,8 +1826,16 @@ declare class DelegationManager {
1826
1826
  * exposing delegation metadata.
1827
1827
  */
1828
1828
  status(cid: string): Promise<Result<DelegationStatus>>;
1829
- /** Query lifecycle-complete delegation history for the authenticated account. */
1830
- query(options?: AccountDelegationQueryOptions): Promise<Result<AccountDelegationPage>>;
1829
+ /**
1830
+ * Query lifecycle-complete delegation history for the authenticated account.
1831
+ *
1832
+ * `scope.spaces` lists the spaces to sign `tinycloud.delegation/list` for, in order. Omitted, the
1833
+ * account space is tried, then the session's own space. A caller that knows which of them the session
1834
+ * holds passes only those; an empty list sends nothing and answers PERMISSION_DENIED.
1835
+ */
1836
+ query(options?: AccountDelegationQueryOptions, scope?: {
1837
+ readonly spaces?: readonly string[];
1838
+ }): Promise<Result<AccountDelegationPage>>;
1831
1839
  /**
1832
1840
  * Gets the full delegation chain for a given delegation.
1833
1841
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/sdk-core",
3
- "version": "3.8.0-beta.3",
3
+ "version": "3.8.0-beta.5",
4
4
  "description": "Core TinyCloud SDK - shared interfaces and TinyCloud class",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",