@tinycloud/sdk-core 3.8.0-beta.4 → 3.8.0-beta.9
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/delegations/index.cjs +9 -3
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +2 -2
- package/dist/delegations/index.d.ts +2 -2
- package/dist/delegations/index.js +9 -3
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/{recipient-types.schema-DqmBZT3l.d.cts → recipient-types.schema-D7lM-5Jo.d.cts} +10 -2
- package/dist/{recipient-types.schema-DqmBZT3l.d.ts → recipient-types.schema-D7lM-5Jo.d.ts} +10 -2
- package/package.json +2 -2
|
@@ -813,8 +813,14 @@ var DelegationManager = class {
|
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
/**
|
|
817
|
-
|
|
816
|
+
/**
|
|
817
|
+
* Query lifecycle-complete delegation history for the authenticated account.
|
|
818
|
+
*
|
|
819
|
+
* `scope.spaces` lists the spaces to sign `tinycloud.delegation/list` for, in order. Omitted, the
|
|
820
|
+
* account space is tried, then the session's own space. A caller that knows which of them the session
|
|
821
|
+
* holds passes only those; an empty list sends nothing and answers PERMISSION_DENIED.
|
|
822
|
+
*/
|
|
823
|
+
async query(options = {}, scope = {}) {
|
|
818
824
|
const validated = AccountDelegationQueryOptionsSchema.safeParse(options);
|
|
819
825
|
if (!validated.success) {
|
|
820
826
|
return {
|
|
@@ -848,7 +854,7 @@ var DelegationManager = class {
|
|
|
848
854
|
}
|
|
849
855
|
try {
|
|
850
856
|
let response;
|
|
851
|
-
for (const spaceId of
|
|
857
|
+
for (const spaceId of new Set(scope.spaces ?? [accountSpaceId, this.session.spaceId])) {
|
|
852
858
|
const headers = Object.fromEntries(new Headers(this.invokeAny(this.session, [{
|
|
853
859
|
spaceId,
|
|
854
860
|
service: "delegation",
|