@frogbotai/piece-linear 0.39.0 → 0.41.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.
@@ -8,31 +8,46 @@ export declare const projectRemoved: {
8
8
  sample?: import("frogbot").PieceJSON | undefined;
9
9
  } & {
10
10
  type: "webhook";
11
- onEnable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
12
- channelMode: "agent-sessions" | "comments";
13
- webhookSecret?: string | undefined;
14
- botUsername?: string | undefined;
15
- }, import("@linear/sdk").LinearClient> & {
11
+ onEnable(args: {
12
+ input: Record<string, never>;
13
+ client: import("@linear/sdk").LinearClient;
14
+ options: {
15
+ channelMode: "agent-sessions" | "comments";
16
+ webhookSecret?: string | undefined;
17
+ botUsername?: string | undefined;
18
+ };
19
+ req: import("frogbot").FrogBotRequest;
20
+ } & {
16
21
  webhookUrl: string;
17
22
  }): Promise<{
18
23
  webhookId: string;
19
24
  }>;
20
- onDisable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
21
- channelMode: "agent-sessions" | "comments";
22
- webhookSecret?: string | undefined;
23
- botUsername?: string | undefined;
24
- }, import("@linear/sdk").LinearClient> & {
25
+ onDisable(args: {
26
+ input: Record<string, never>;
27
+ client: import("@linear/sdk").LinearClient;
28
+ options: {
29
+ channelMode: "agent-sessions" | "comments";
30
+ webhookSecret?: string | undefined;
31
+ botUsername?: string | undefined;
32
+ };
33
+ req: import("frogbot").FrogBotRequest;
34
+ } & {
25
35
  state: {
26
36
  webhookId: string;
27
37
  };
28
38
  }): Promise<void>;
29
39
  renew?: {
30
40
  schedule: string;
31
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
32
- channelMode: "agent-sessions" | "comments";
33
- webhookSecret?: string | undefined;
34
- botUsername?: string | undefined;
35
- }, import("@linear/sdk").LinearClient> & {
41
+ run(args: {
42
+ input: Record<string, never>;
43
+ client: import("@linear/sdk").LinearClient;
44
+ options: {
45
+ channelMode: "agent-sessions" | "comments";
46
+ webhookSecret?: string | undefined;
47
+ botUsername?: string | undefined;
48
+ };
49
+ req: import("frogbot").FrogBotRequest;
50
+ } & {
36
51
  state: {
37
52
  webhookId: string;
38
53
  };
@@ -41,15 +56,35 @@ export declare const projectRemoved: {
41
56
  webhookId: string;
42
57
  }>;
43
58
  } | undefined;
44
- run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
45
- channelMode: "agent-sessions" | "comments";
46
- webhookSecret?: string | undefined;
47
- botUsername?: string | undefined;
48
- }, import("@linear/sdk").LinearClient> & {
59
+ run(args: {
60
+ input: Record<string, never>;
61
+ client: import("@linear/sdk").LinearClient;
62
+ options: {
63
+ channelMode: "agent-sessions" | "comments";
64
+ webhookSecret?: string | undefined;
65
+ botUsername?: string | undefined;
66
+ };
67
+ req: import("frogbot").FrogBotRequest;
68
+ } & {
49
69
  state: {
50
70
  webhookId: string;
51
71
  };
52
72
  }): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
73
+ reply?(args: {
74
+ input: Record<string, never>;
75
+ client: import("@linear/sdk").LinearClient;
76
+ options: {
77
+ channelMode: "agent-sessions" | "comments";
78
+ webhookSecret?: string | undefined;
79
+ botUsername?: string | undefined;
80
+ };
81
+ req: import("frogbot").FrogBotRequest;
82
+ } & {
83
+ state: {
84
+ webhookId: string;
85
+ };
86
+ events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
87
+ }): Response | Promise<Response>;
53
88
  } & {
54
89
  slug: "projectRemoved";
55
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"projectRemoved.d.ts","sourceRoot":"","sources":["../../src/triggers/projectRemoved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzB,CAAC"}
1
+ {"version":3,"file":"projectRemoved.d.ts","sourceRoot":"","sources":["../../src/triggers/projectRemoved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzB,CAAC"}
@@ -11,40 +11,55 @@ export declare const projectUpdated: {
11
11
  sample?: import("frogbot").PieceJSON | undefined;
12
12
  } & {
13
13
  type: "webhook";
14
- onEnable(args: import("frogbot").PieceRunArgs<{
15
- teamIds?: string[] | undefined;
16
- projectStatus?: string | undefined;
17
- }, {
18
- channelMode: "agent-sessions" | "comments";
19
- webhookSecret?: string | undefined;
20
- botUsername?: string | undefined;
21
- }, import("@linear/sdk").LinearClient> & {
14
+ onEnable(args: {
15
+ input: {
16
+ teamIds?: string[] | undefined;
17
+ projectStatus?: string | undefined;
18
+ };
19
+ client: import("@linear/sdk").LinearClient;
20
+ options: {
21
+ channelMode: "agent-sessions" | "comments";
22
+ webhookSecret?: string | undefined;
23
+ botUsername?: string | undefined;
24
+ };
25
+ req: import("frogbot").FrogBotRequest;
26
+ } & {
22
27
  webhookUrl: string;
23
28
  }): Promise<{
24
29
  webhookId: string;
25
30
  }>;
26
- onDisable(args: import("frogbot").PieceRunArgs<{
27
- teamIds?: string[] | undefined;
28
- projectStatus?: string | undefined;
29
- }, {
30
- channelMode: "agent-sessions" | "comments";
31
- webhookSecret?: string | undefined;
32
- botUsername?: string | undefined;
33
- }, import("@linear/sdk").LinearClient> & {
31
+ onDisable(args: {
32
+ input: {
33
+ teamIds?: string[] | undefined;
34
+ projectStatus?: string | undefined;
35
+ };
36
+ client: import("@linear/sdk").LinearClient;
37
+ options: {
38
+ channelMode: "agent-sessions" | "comments";
39
+ webhookSecret?: string | undefined;
40
+ botUsername?: string | undefined;
41
+ };
42
+ req: import("frogbot").FrogBotRequest;
43
+ } & {
34
44
  state: {
35
45
  webhookId: string;
36
46
  };
37
47
  }): Promise<void>;
38
48
  renew?: {
39
49
  schedule: string;
40
- run(args: import("frogbot").PieceRunArgs<{
41
- teamIds?: string[] | undefined;
42
- projectStatus?: string | undefined;
43
- }, {
44
- channelMode: "agent-sessions" | "comments";
45
- webhookSecret?: string | undefined;
46
- botUsername?: string | undefined;
47
- }, import("@linear/sdk").LinearClient> & {
50
+ run(args: {
51
+ input: {
52
+ teamIds?: string[] | undefined;
53
+ projectStatus?: string | undefined;
54
+ };
55
+ client: import("@linear/sdk").LinearClient;
56
+ options: {
57
+ channelMode: "agent-sessions" | "comments";
58
+ webhookSecret?: string | undefined;
59
+ botUsername?: string | undefined;
60
+ };
61
+ req: import("frogbot").FrogBotRequest;
62
+ } & {
48
63
  state: {
49
64
  webhookId: string;
50
65
  };
@@ -53,18 +68,41 @@ export declare const projectUpdated: {
53
68
  webhookId: string;
54
69
  }>;
55
70
  } | undefined;
56
- run(args: import("frogbot").PieceRunArgs<{
57
- teamIds?: string[] | undefined;
58
- projectStatus?: string | undefined;
59
- }, {
60
- channelMode: "agent-sessions" | "comments";
61
- webhookSecret?: string | undefined;
62
- botUsername?: string | undefined;
63
- }, import("@linear/sdk").LinearClient> & {
71
+ run(args: {
72
+ input: {
73
+ teamIds?: string[] | undefined;
74
+ projectStatus?: string | undefined;
75
+ };
76
+ client: import("@linear/sdk").LinearClient;
77
+ options: {
78
+ channelMode: "agent-sessions" | "comments";
79
+ webhookSecret?: string | undefined;
80
+ botUsername?: string | undefined;
81
+ };
82
+ req: import("frogbot").FrogBotRequest;
83
+ } & {
64
84
  state: {
65
85
  webhookId: string;
66
86
  };
67
87
  }): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
88
+ reply?(args: {
89
+ input: {
90
+ teamIds?: string[] | undefined;
91
+ projectStatus?: string | undefined;
92
+ };
93
+ client: import("@linear/sdk").LinearClient;
94
+ options: {
95
+ channelMode: "agent-sessions" | "comments";
96
+ webhookSecret?: string | undefined;
97
+ botUsername?: string | undefined;
98
+ };
99
+ req: import("frogbot").FrogBotRequest;
100
+ } & {
101
+ state: {
102
+ webhookId: string;
103
+ };
104
+ events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
105
+ }): Response | Promise<Response>;
68
106
  } & {
69
107
  slug: "projectUpdated";
70
108
  };
@@ -1 +1 @@
1
- {"version":3,"file":"projectUpdated.d.ts","sourceRoot":"","sources":["../../src/triggers/projectUpdated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC"}
1
+ {"version":3,"file":"projectUpdated.d.ts","sourceRoot":"","sources":["../../src/triggers/projectUpdated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC"}
@@ -33,31 +33,46 @@ export declare function webhookTrigger<const TSlug extends string, TInput extend
33
33
  sample?: import("frogbot").PieceJSON | undefined;
34
34
  } & {
35
35
  type: "webhook";
36
- onEnable(args: import("frogbot").PieceRunArgs<z.core.output<TInput>, {
37
- channelMode: "agent-sessions" | "comments";
38
- webhookSecret?: string | undefined;
39
- botUsername?: string | undefined;
40
- }, import("@linear/sdk").LinearClient> & {
36
+ onEnable(args: {
37
+ input: z.core.output<TInput>;
38
+ client: import("@linear/sdk").LinearClient;
39
+ options: {
40
+ channelMode: "agent-sessions" | "comments";
41
+ webhookSecret?: string | undefined;
42
+ botUsername?: string | undefined;
43
+ };
44
+ req: import("frogbot").FrogBotRequest;
45
+ } & {
41
46
  webhookUrl: string;
42
47
  }): Promise<{
43
48
  webhookId: string;
44
49
  }>;
45
- onDisable(args: import("frogbot").PieceRunArgs<z.core.output<TInput>, {
46
- channelMode: "agent-sessions" | "comments";
47
- webhookSecret?: string | undefined;
48
- botUsername?: string | undefined;
49
- }, import("@linear/sdk").LinearClient> & {
50
+ onDisable(args: {
51
+ input: z.core.output<TInput>;
52
+ client: import("@linear/sdk").LinearClient;
53
+ options: {
54
+ channelMode: "agent-sessions" | "comments";
55
+ webhookSecret?: string | undefined;
56
+ botUsername?: string | undefined;
57
+ };
58
+ req: import("frogbot").FrogBotRequest;
59
+ } & {
50
60
  state: {
51
61
  webhookId: string;
52
62
  };
53
63
  }): Promise<void>;
54
64
  renew?: {
55
65
  schedule: string;
56
- run(args: import("frogbot").PieceRunArgs<z.core.output<TInput>, {
57
- channelMode: "agent-sessions" | "comments";
58
- webhookSecret?: string | undefined;
59
- botUsername?: string | undefined;
60
- }, import("@linear/sdk").LinearClient> & {
66
+ run(args: {
67
+ input: z.core.output<TInput>;
68
+ client: import("@linear/sdk").LinearClient;
69
+ options: {
70
+ channelMode: "agent-sessions" | "comments";
71
+ webhookSecret?: string | undefined;
72
+ botUsername?: string | undefined;
73
+ };
74
+ req: import("frogbot").FrogBotRequest;
75
+ } & {
61
76
  state: {
62
77
  webhookId: string;
63
78
  };
@@ -66,15 +81,35 @@ export declare function webhookTrigger<const TSlug extends string, TInput extend
66
81
  webhookId: string;
67
82
  }>;
68
83
  } | undefined;
69
- run(args: import("frogbot").PieceRunArgs<z.core.output<TInput>, {
70
- channelMode: "agent-sessions" | "comments";
71
- webhookSecret?: string | undefined;
72
- botUsername?: string | undefined;
73
- }, import("@linear/sdk").LinearClient> & {
84
+ run(args: {
85
+ input: z.core.output<TInput>;
86
+ client: import("@linear/sdk").LinearClient;
87
+ options: {
88
+ channelMode: "agent-sessions" | "comments";
89
+ webhookSecret?: string | undefined;
90
+ botUsername?: string | undefined;
91
+ };
92
+ req: import("frogbot").FrogBotRequest;
93
+ } & {
74
94
  state: {
75
95
  webhookId: string;
76
96
  };
77
97
  }): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
98
+ reply?(args: {
99
+ input: z.core.output<TInput>;
100
+ client: import("@linear/sdk").LinearClient;
101
+ options: {
102
+ channelMode: "agent-sessions" | "comments";
103
+ webhookSecret?: string | undefined;
104
+ botUsername?: string | undefined;
105
+ };
106
+ req: import("frogbot").FrogBotRequest;
107
+ } & {
108
+ state: {
109
+ webhookId: string;
110
+ };
111
+ events: import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[];
112
+ }): Response | Promise<Response>;
78
113
  } & {
79
114
  slug: TSlug;
80
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/triggers/webhook.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,KAAK,QAAQ,GAAG;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE;gBAAE,EAAE,CAAC,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAC;QACnC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,MAAM,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,CAAC;IACF,WAAW,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,SAAS,CAAC,CAAC,OAAO,EAAE,EACnF,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,KAAK,EACL,OAAO,GACR,EAAE;IACD,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EA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,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;CACpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-linear",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "description": "Linear tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -29,11 +29,11 @@
29
29
  "zod": "^4.3.6"
30
30
  },
31
31
  "peerDependencies": {
32
- "frogbot": "0.39.0"
32
+ "frogbot": "0.41.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "6.0.3",
36
- "frogbot": "0.39.0"
36
+ "frogbot": "0.41.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"