@persistmemory/sdk 0.4.1 → 0.5.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/index.js CHANGED
@@ -1313,6 +1313,31 @@ var Agent = class {
1313
1313
  options
1314
1314
  );
1315
1315
  }
1316
+ /**
1317
+ * A Space's requests — what the project has in flight and what came back,
1318
+ * whoever raised it and whichever machine answered. For an editor or owner
1319
+ * of the Space; a viewer, and anybody not in it, is answered 404.
1320
+ */
1321
+ async spaceRequests(spaceId, options) {
1322
+ return this.#http.get(
1323
+ `/api/v1/agent/spaces/${encodeURIComponent(spaceId)}/requests`,
1324
+ void 0,
1325
+ options
1326
+ );
1327
+ }
1328
+ /**
1329
+ * Shares one of your own machines into a Space, so the Space's editors can
1330
+ * ask it for files and commands. Every such ask waits for you, the
1331
+ * machine's owner, whatever your own approval settings say. Session
1332
+ * credentials only.
1333
+ */
1334
+ async shareMachine(args, options) {
1335
+ return this.#http.post("/api/v1/agent/connections/share", args, options);
1336
+ }
1337
+ /** Takes a machine back out of a Space. Requests already answered stay answered. */
1338
+ async unshareMachine(args, options) {
1339
+ return this.#http.delete("/api/v1/agent/connections/share", args, options);
1340
+ }
1316
1341
  };
1317
1342
 
1318
1343
  // src/client.ts