@peers-app/peers-sdk 0.19.8 → 0.19.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.
@@ -40,6 +40,16 @@ export declare const rpcServerCalls: {
40
40
  setUserIdAndSecretKey: (userId: string, secretKey: string) => Promise<void>;
41
41
  getUserId: () => Promise<string | undefined>;
42
42
  encryptData: (value: string, groupId?: string) => Promise<string>;
43
+ /**
44
+ * Decrypt (if secret) and copy a persistent variable's value to the system clipboard
45
+ * entirely on the server/main process. The plaintext is never returned to the caller,
46
+ * so secret values are never exposed to the UI. On desktop, secret values are
47
+ * automatically cleared from the clipboard after a short delay.
48
+ */
49
+ copyPvarValueToClipboard: (persistentVarId: string, groupId?: string) => Promise<{
50
+ success: boolean;
51
+ error?: string;
52
+ }>;
43
53
  logout: () => Promise<void>;
44
54
  tableMethodCall: (dataContextId: string, tableName: string, methodName: string, ...args: any[]) => Promise<any>;
45
55
  getFileContents: (fileId: string, encoding?: BufferEncoding) => Promise<string>;
package/dist/rpc-types.js CHANGED
@@ -21,6 +21,13 @@ exports.rpcServerCalls = {
21
21
  setUserIdAndSecretKey: rpcStub("setUserIdAndSecretKey"),
22
22
  getUserId: rpcStub("getUserId"),
23
23
  encryptData: rpcStub("encryptData"),
24
+ /**
25
+ * Decrypt (if secret) and copy a persistent variable's value to the system clipboard
26
+ * entirely on the server/main process. The plaintext is never returned to the caller,
27
+ * so secret values are never exposed to the UI. On desktop, secret values are
28
+ * automatically cleared from the clipboard after a short delay.
29
+ */
30
+ copyPvarValueToClipboard: rpcStub("copyPvarValueToClipboard"),
24
31
  logout: rpcStub("logout"),
25
32
  tableMethodCall: rpcStub("tableMethodCall"),
26
33
  // TODO lock this down so not all code can get any file contents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peers-app/peers-sdk",
3
- "version": "0.19.8",
3
+ "version": "0.19.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/peers-app/peers-sdk.git"