@haex-space/vault-sdk 3.6.0 → 3.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.
@@ -1,6 +1,6 @@
1
1
  import * as nuxt_app from 'nuxt/app';
2
2
  import { ShallowRef } from 'vue';
3
- import { H as HaexVaultSdk } from '../client-DnCZ3KyI.mjs';
3
+ import { H as HaexVaultSdk } from '../client-Dn4AbXbT.mjs';
4
4
  import { A as ApplicationContext } from '../types-DQZCRfC-.mjs';
5
5
  import 'drizzle-orm/sqlite-proxy';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as nuxt_app from 'nuxt/app';
2
2
  import { ShallowRef } from 'vue';
3
- import { H as HaexVaultSdk } from '../client-uuhuCPDu.js';
3
+ import { H as HaexVaultSdk } from '../client-DH4Km77u.js';
4
4
  import { A as ApplicationContext } from '../types-DQZCRfC-.js';
5
5
  import 'drizzle-orm/sqlite-proxy';
6
6
 
@@ -262,6 +262,8 @@ var SPACE_COMMANDS = {
262
262
  unassign: "extension_space_unassign",
263
263
  /** Get space assignments for a table */
264
264
  getAssignments: "extension_space_get_assignments",
265
+ /** Get members of a shared space */
266
+ getMembers: "extension_space_get_members",
265
267
  /** List all spaces the user is a member of (with decrypted names) */
266
268
  list: "extension_space_list"};
267
269
 
@@ -1219,6 +1221,13 @@ var SpacesAPI = class {
1219
1221
  async listSpacesAsync() {
1220
1222
  return this.client.request(SPACE_COMMANDS.list);
1221
1223
  }
1224
+ /**
1225
+ * List members of a shared space (DID + label), flagging the current user.
1226
+ * Used to resolve assignment authors to names and to detect own vs shared-in content.
1227
+ */
1228
+ async getMembersAsync(spaceId) {
1229
+ return this.client.request(SPACE_COMMANDS.getMembers, { spaceId });
1230
+ }
1222
1231
  };
1223
1232
 
1224
1233
  // src/api/shell.ts