@plotday/tool-gmail 0.6.2 → 0.6.3

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.
Files changed (2) hide show
  1. package/dist/gmail.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/gmail.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ActivityLink, Serializable, type SyncUpdate, Tool, type ToolBuilder } from "@plotday/twister";
1
+ import { type ActivityLink, type NewActivityWithNotes, Serializable, Tool, type ToolBuilder } from "@plotday/twister";
2
2
  import { type MessageChannel, type MessageSyncOptions, type MessagingAuth, type MessagingTool } from "@plotday/twister/common/messaging";
3
3
  import { type Callback } from "@plotday/twister/tools/callbacks";
4
4
  import { type Authorization, Integrations } from "@plotday/twister/tools/integrations";
@@ -73,7 +73,7 @@ export declare class Gmail extends Tool<Gmail> implements MessagingTool {
73
73
  requestAuth<TArgs extends Serializable[], TCallback extends (auth: MessagingAuth, ...args: TArgs) => any>(callback: TCallback, ...extraArgs: TArgs): Promise<ActivityLink>;
74
74
  private getApi;
75
75
  getChannels(authToken: string): Promise<MessageChannel[]>;
76
- startSync<TArgs extends Serializable[], TCallback extends (syncUpdate: SyncUpdate, ...args: TArgs) => any>(options: {
76
+ startSync<TArgs extends Serializable[], TCallback extends (thread: NewActivityWithNotes, ...args: TArgs) => any>(options: {
77
77
  authToken: string;
78
78
  channelId: string;
79
79
  } & MessageSyncOptions, callback: TCallback, ...extraArgs: TArgs): Promise<void>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Sync with Gmail inbox and messages",
5
5
  "author": "Plot <team@plot.day> (https://plot.day)",
6
6
  "license": "MIT",
7
- "version": "0.6.2",
7
+ "version": "0.6.3",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@plotday/twister": "^0.30.0"
24
+ "@plotday/twister": "^0.31.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typescript": "^5.9.3"