@frogbotai/piece-linear 0.26.0 → 0.28.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.
Files changed (49) hide show
  1. package/dist/actions/createComment.d.ts +14 -42
  2. package/dist/actions/createComment.d.ts.map +1 -1
  3. package/dist/actions/createComment.js +3 -2
  4. package/dist/actions/createComment.js.map +1 -1
  5. package/dist/actions/createIssue.d.ts +14 -68
  6. package/dist/actions/createIssue.d.ts.map +1 -1
  7. package/dist/actions/createIssue.js +3 -2
  8. package/dist/actions/createIssue.js.map +1 -1
  9. package/dist/actions/createProject.d.ts +14 -38
  10. package/dist/actions/createProject.d.ts.map +1 -1
  11. package/dist/actions/createProject.js +3 -2
  12. package/dist/actions/createProject.js.map +1 -1
  13. package/dist/actions/rawGraphqlQuery.d.ts +7 -15
  14. package/dist/actions/rawGraphqlQuery.d.ts.map +1 -1
  15. package/dist/actions/rawGraphqlQuery.js +3 -2
  16. package/dist/actions/rawGraphqlQuery.js.map +1 -1
  17. package/dist/actions/updateIssue.d.ts +14 -77
  18. package/dist/actions/updateIssue.d.ts.map +1 -1
  19. package/dist/actions/updateIssue.js +3 -2
  20. package/dist/actions/updateIssue.js.map +1 -1
  21. package/dist/actions/updateProject.d.ts +14 -45
  22. package/dist/actions/updateProject.d.ts.map +1 -1
  23. package/dist/actions/updateProject.js +3 -2
  24. package/dist/actions/updateProject.js.map +1 -1
  25. package/dist/define.d.ts +100 -0
  26. package/dist/define.d.ts.map +1 -0
  27. package/dist/define.js +3 -0
  28. package/dist/define.js.map +1 -0
  29. package/dist/index.d.ts +513 -320
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/triggers/commentCreated.d.ts +69 -10
  32. package/dist/triggers/commentCreated.d.ts.map +1 -1
  33. package/dist/triggers/issueCreated.d.ts +64 -9
  34. package/dist/triggers/issueCreated.d.ts.map +1 -1
  35. package/dist/triggers/issueRemoved.d.ts +64 -9
  36. package/dist/triggers/issueRemoved.d.ts.map +1 -1
  37. package/dist/triggers/issueUpdated.d.ts +64 -9
  38. package/dist/triggers/issueUpdated.d.ts.map +1 -1
  39. package/dist/triggers/projectCreated.d.ts +54 -7
  40. package/dist/triggers/projectCreated.d.ts.map +1 -1
  41. package/dist/triggers/projectRemoved.d.ts +54 -7
  42. package/dist/triggers/projectRemoved.d.ts.map +1 -1
  43. package/dist/triggers/projectUpdated.d.ts +69 -10
  44. package/dist/triggers/projectUpdated.d.ts.map +1 -1
  45. package/dist/triggers/webhook.d.ts +56 -8
  46. package/dist/triggers/webhook.d.ts.map +1 -1
  47. package/dist/triggers/webhook.js +3 -2
  48. package/dist/triggers/webhook.js.map +1 -1
  49. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { z } from 'zod';
2
2
  import { LinearChannelAdapter } from './adapter.js';
3
- import { createLinearClient, type Linear } from './client.js';
3
+ import { createLinearClient } from './client.js';
4
4
  export declare const linearActions: readonly ["createIssue", "updateIssue", "createProject", "updateProject", "createComment", "rawGraphqlQuery"];
5
5
  export declare const linearTriggers: readonly ["commentCreated", "issueCreated", "issueUpdated", "issueRemoved", "projectCreated", "projectUpdated", "projectRemoved"];
6
6
  export declare const linearScopes: readonly [];
@@ -20,7 +20,7 @@ export declare const linearOAuth: {
20
20
  account({ client }: {
21
21
  tokens: import("frogbot/pieces").OAuthTokens;
22
22
  client: import("@linear/sdk").LinearClient;
23
- req: import("node_modules/frogbot/dist/types/request.js").FrogBotRequest;
23
+ req: import("frogbot/pieces").FrogBotRequest;
24
24
  }): Promise<{
25
25
  id: string;
26
26
  label: string;
@@ -66,7 +66,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
66
66
  account({ client }: {
67
67
  tokens: import("frogbot/pieces").OAuthTokens;
68
68
  client: import("@linear/sdk").LinearClient;
69
- req: import("node_modules/frogbot/dist/types/request.js").FrogBotRequest;
69
+ req: import("frogbot/pieces").FrogBotRequest;
70
70
  }): Promise<{
71
71
  id: string;
72
72
  label: string;
@@ -95,367 +95,560 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
95
95
  identity({ author, client, req }: {
96
96
  author: import("chat").Author;
97
97
  client: import("@linear/sdk").LinearClient;
98
- req: import("node_modules/frogbot/dist/types/request.js").FrogBotRequest;
98
+ req: import("frogbot/pieces").FrogBotRequest;
99
99
  }): Promise<{
100
100
  collection: string;
101
101
  id: string | number;
102
102
  } | null>;
103
103
  questions: import("frogbot/pieces").PieceChannelQuestions<import("@linear/sdk").LinearClient>;
104
104
  };
105
- readonly actions: readonly [{
105
+ readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
106
+ teamId: z.ZodString;
107
+ title: z.ZodString;
108
+ description: z.ZodOptional<z.ZodString>;
109
+ stateId: z.ZodOptional<z.ZodString>;
110
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ assigneeId: z.ZodOptional<z.ZodString>;
112
+ priority: z.ZodOptional<z.ZodNumber>;
113
+ templateId: z.ZodOptional<z.ZodString>;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ success: z.ZodBoolean;
116
+ lastSyncId: z.ZodOptional<z.ZodNumber>;
117
+ }, z.core.$loose>, {
118
+ channelMode: "agent-sessions" | "comments";
119
+ webhookSecret?: string | undefined;
120
+ botUsername?: string | undefined;
121
+ }, import("@linear/sdk").LinearClient, {
122
+ [x: string]: unknown;
123
+ success: boolean;
124
+ lastSyncId?: number | undefined;
125
+ }> & {
126
+ slug: "createIssue";
127
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
128
+ teamId: z.ZodString;
129
+ issueId: z.ZodString;
130
+ title: z.ZodOptional<z.ZodString>;
131
+ description: z.ZodOptional<z.ZodString>;
132
+ stateId: z.ZodOptional<z.ZodString>;
133
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
134
+ assigneeId: z.ZodOptional<z.ZodString>;
135
+ priority: z.ZodOptional<z.ZodNumber>;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ success: z.ZodBoolean;
138
+ lastSyncId: z.ZodOptional<z.ZodNumber>;
139
+ }, z.core.$loose>, {
140
+ channelMode: "agent-sessions" | "comments";
141
+ webhookSecret?: string | undefined;
142
+ botUsername?: string | undefined;
143
+ }, import("@linear/sdk").LinearClient, {
144
+ [x: string]: unknown;
145
+ success: boolean;
146
+ lastSyncId?: number | undefined;
147
+ }> & {
148
+ slug: "updateIssue";
149
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
150
+ teamId: z.ZodString;
151
+ name: z.ZodString;
152
+ description: z.ZodOptional<z.ZodString>;
153
+ icon: z.ZodOptional<z.ZodString>;
154
+ color: z.ZodOptional<z.ZodString>;
155
+ startDate: z.ZodOptional<z.ZodString>;
156
+ targetDate: z.ZodOptional<z.ZodString>;
157
+ statusId: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ success: z.ZodBoolean;
160
+ lastSyncId: z.ZodOptional<z.ZodNumber>;
161
+ }, z.core.$loose>, {
162
+ channelMode: "agent-sessions" | "comments";
163
+ webhookSecret?: string | undefined;
164
+ botUsername?: string | undefined;
165
+ }, import("@linear/sdk").LinearClient, {
166
+ [x: string]: unknown;
167
+ success: boolean;
168
+ lastSyncId?: number | undefined;
169
+ }> & {
170
+ slug: "createProject";
171
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
172
+ teamId: z.ZodString;
173
+ projectId: z.ZodString;
174
+ name: z.ZodString;
175
+ description: z.ZodOptional<z.ZodString>;
176
+ icon: z.ZodOptional<z.ZodString>;
177
+ color: z.ZodOptional<z.ZodString>;
178
+ startDate: z.ZodOptional<z.ZodString>;
179
+ targetDate: z.ZodOptional<z.ZodString>;
180
+ statusId: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ success: z.ZodBoolean;
183
+ lastSyncId: z.ZodOptional<z.ZodNumber>;
184
+ }, z.core.$loose>, {
185
+ channelMode: "agent-sessions" | "comments";
186
+ webhookSecret?: string | undefined;
187
+ botUsername?: string | undefined;
188
+ }, import("@linear/sdk").LinearClient, {
189
+ [x: string]: unknown;
190
+ success: boolean;
191
+ lastSyncId?: number | undefined;
192
+ }> & {
193
+ slug: "updateProject";
194
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
195
+ teamId: z.ZodString;
196
+ issueId: z.ZodString;
197
+ body: z.ZodString;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ success: z.ZodBoolean;
200
+ lastSyncId: z.ZodOptional<z.ZodNumber>;
201
+ }, z.core.$loose>, {
202
+ channelMode: "agent-sessions" | "comments";
203
+ webhookSecret?: string | undefined;
204
+ botUsername?: string | undefined;
205
+ }, import("@linear/sdk").LinearClient, {
206
+ [x: string]: unknown;
207
+ success: boolean;
208
+ lastSyncId?: number | undefined;
209
+ }> & {
210
+ slug: "createComment";
211
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
212
+ query: z.ZodString;
213
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
+ }, z.core.$strip>, z.ZodUnknown, {
215
+ channelMode: "agent-sessions" | "comments";
216
+ webhookSecret?: string | undefined;
217
+ botUsername?: string | undefined;
218
+ }, import("@linear/sdk").LinearClient, unknown> & {
219
+ slug: "rawGraphqlQuery";
220
+ }];
221
+ readonly triggers: readonly [{
106
222
  slug: string;
223
+ label?: string;
107
224
  description: string;
108
225
  input: z.ZodObject<{
109
- teamId: z.ZodString;
110
- title: z.ZodString;
111
- description: z.ZodOptional<z.ZodString>;
112
- stateId: z.ZodOptional<z.ZodString>;
113
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
- assigneeId: z.ZodOptional<z.ZodString>;
115
- priority: z.ZodOptional<z.ZodNumber>;
116
- templateId: z.ZodOptional<z.ZodString>;
226
+ teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
+ authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
228
  }, z.core.$strip>;
118
- output: z.ZodObject<{
119
- success: z.ZodBoolean;
120
- lastSyncId: z.ZodOptional<z.ZodNumber>;
121
- }, z.core.$loose>;
122
- idempotent: false;
123
- options: {
124
- teamId: ({ client }: {
125
- client: Linear;
126
- }) => Promise<{
127
- label: string;
128
- value: string;
129
- }[]>;
130
- stateId: ({ client, input }: {
131
- client: Linear;
132
- input: {
133
- teamId?: string;
134
- };
135
- }) => Promise<{
136
- label: string;
137
- value: string;
138
- }[]>;
139
- labelIds: ({ client, input }: {
140
- client: Linear;
141
- input: {
142
- teamId?: string;
229
+ output?: undefined;
230
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
231
+ } & {
232
+ type: "webhook";
233
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
234
+ teamIds?: string[] | undefined;
235
+ authorIds?: string[] | undefined;
236
+ }, {
237
+ channelMode: "agent-sessions" | "comments";
238
+ webhookSecret?: string | undefined;
239
+ botUsername?: string | undefined;
240
+ }, import("@linear/sdk").LinearClient> & {
241
+ webhookUrl: string;
242
+ }): Promise<{
243
+ webhookId: string;
244
+ }>;
245
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
246
+ teamIds?: string[] | undefined;
247
+ authorIds?: string[] | undefined;
248
+ }, {
249
+ channelMode: "agent-sessions" | "comments";
250
+ webhookSecret?: string | undefined;
251
+ botUsername?: string | undefined;
252
+ }, import("@linear/sdk").LinearClient> & {
253
+ state: {
254
+ webhookId: string;
255
+ };
256
+ }): Promise<void>;
257
+ renew?: {
258
+ schedule: string;
259
+ run(args: import("frogbot/pieces").PieceRunArgs<{
260
+ teamIds?: string[] | undefined;
261
+ authorIds?: string[] | undefined;
262
+ }, {
263
+ channelMode: "agent-sessions" | "comments";
264
+ webhookSecret?: string | undefined;
265
+ botUsername?: string | undefined;
266
+ }, import("@linear/sdk").LinearClient> & {
267
+ state: {
268
+ webhookId: string;
143
269
  };
144
- }) => Promise<{
145
- label: string;
146
- value: string;
147
- }[]>;
148
- assigneeId: ({ client }: {
149
- client: Linear;
150
- }) => Promise<{
151
- label: string;
152
- value: string;
153
- }[]>;
154
- priority: ({ client }: {
155
- client: Linear;
156
- }) => Promise<{
157
- label: string;
158
- value: string;
159
- }[]>;
160
- };
161
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
162
- teamId: z.ZodString;
163
- title: z.ZodString;
164
- description: z.ZodOptional<z.ZodString>;
165
- stateId: z.ZodOptional<z.ZodString>;
166
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
- assigneeId: z.ZodOptional<z.ZodString>;
168
- priority: z.ZodOptional<z.ZodNumber>;
169
- templateId: z.ZodOptional<z.ZodString>;
170
- }, z.core.$strip>>, object, Linear>): Promise<{
171
- success: boolean;
172
- lastSyncId: number;
173
- issue: {
174
- id: string | undefined;
270
+ webhookUrl: string;
271
+ }): Promise<{
272
+ webhookId: string;
273
+ }>;
274
+ } | undefined;
275
+ run(args: import("frogbot/pieces").PieceRunArgs<{
276
+ teamIds?: string[] | undefined;
277
+ authorIds?: string[] | undefined;
278
+ }, {
279
+ channelMode: "agent-sessions" | "comments";
280
+ webhookSecret?: string | undefined;
281
+ botUsername?: string | undefined;
282
+ }, import("@linear/sdk").LinearClient> & {
283
+ state: {
284
+ webhookId: string;
175
285
  };
176
- }>;
286
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
287
+ } & {
288
+ slug: "commentCreated";
177
289
  }, {
178
290
  slug: string;
291
+ label?: string;
179
292
  description: string;
180
293
  input: z.ZodObject<{
181
294
  teamId: z.ZodString;
182
- issueId: z.ZodString;
183
- title: z.ZodOptional<z.ZodString>;
184
- description: z.ZodOptional<z.ZodString>;
185
- stateId: z.ZodOptional<z.ZodString>;
186
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
- assigneeId: z.ZodOptional<z.ZodString>;
188
- priority: z.ZodOptional<z.ZodNumber>;
189
295
  }, z.core.$strip>;
190
- output: z.ZodObject<{
191
- success: z.ZodBoolean;
192
- lastSyncId: z.ZodOptional<z.ZodNumber>;
193
- }, z.core.$loose>;
194
- idempotent: boolean;
195
- options: {
196
- teamId: ({ client }: {
197
- client: Linear;
198
- }) => Promise<{
199
- label: string;
200
- value: string;
201
- }[]>;
202
- issueId: ({ client, input }: {
203
- client: Linear;
204
- input: {
205
- teamId?: string;
206
- };
207
- }) => Promise<{
208
- label: string;
209
- value: string;
210
- }[]>;
211
- stateId: ({ client, input }: {
212
- client: Linear;
213
- input: {
214
- teamId?: string;
215
- };
216
- }) => Promise<{
217
- label: string;
218
- value: string;
219
- }[]>;
220
- labelIds: ({ client, input }: {
221
- client: Linear;
222
- input: {
223
- teamId?: string;
296
+ output?: undefined;
297
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
298
+ } & {
299
+ type: "webhook";
300
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
301
+ teamId: string;
302
+ }, {
303
+ channelMode: "agent-sessions" | "comments";
304
+ webhookSecret?: string | undefined;
305
+ botUsername?: string | undefined;
306
+ }, import("@linear/sdk").LinearClient> & {
307
+ webhookUrl: string;
308
+ }): Promise<{
309
+ webhookId: string;
310
+ }>;
311
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
312
+ teamId: string;
313
+ }, {
314
+ channelMode: "agent-sessions" | "comments";
315
+ webhookSecret?: string | undefined;
316
+ botUsername?: string | undefined;
317
+ }, import("@linear/sdk").LinearClient> & {
318
+ state: {
319
+ webhookId: string;
320
+ };
321
+ }): Promise<void>;
322
+ renew?: {
323
+ schedule: string;
324
+ run(args: import("frogbot/pieces").PieceRunArgs<{
325
+ teamId: string;
326
+ }, {
327
+ channelMode: "agent-sessions" | "comments";
328
+ webhookSecret?: string | undefined;
329
+ botUsername?: string | undefined;
330
+ }, import("@linear/sdk").LinearClient> & {
331
+ state: {
332
+ webhookId: string;
224
333
  };
225
- }) => Promise<{
226
- label: string;
227
- value: string;
228
- }[]>;
229
- assigneeId: ({ client }: {
230
- client: Linear;
231
- }) => Promise<{
232
- label: string;
233
- value: string;
234
- }[]>;
235
- priority: ({ client }: {
236
- client: Linear;
237
- }) => Promise<{
238
- label: string;
239
- value: string;
240
- }[]>;
241
- };
242
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
243
- teamId: z.ZodString;
244
- issueId: z.ZodString;
245
- title: z.ZodOptional<z.ZodString>;
246
- description: z.ZodOptional<z.ZodString>;
247
- stateId: z.ZodOptional<z.ZodString>;
248
- labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
- assigneeId: z.ZodOptional<z.ZodString>;
250
- priority: z.ZodOptional<z.ZodNumber>;
251
- }, z.core.$strip>>, object, Linear>): Promise<{
252
- success: boolean;
253
- lastSyncId: number;
254
- issue: {
255
- id: string | undefined;
334
+ webhookUrl: string;
335
+ }): Promise<{
336
+ webhookId: string;
337
+ }>;
338
+ } | undefined;
339
+ run(args: import("frogbot/pieces").PieceRunArgs<{
340
+ teamId: string;
341
+ }, {
342
+ channelMode: "agent-sessions" | "comments";
343
+ webhookSecret?: string | undefined;
344
+ botUsername?: string | undefined;
345
+ }, import("@linear/sdk").LinearClient> & {
346
+ state: {
347
+ webhookId: string;
256
348
  };
257
- }>;
349
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
350
+ } & {
351
+ slug: "issueCreated";
258
352
  }, {
259
353
  slug: string;
354
+ label?: string;
260
355
  description: string;
261
356
  input: z.ZodObject<{
262
- teamId: z.ZodString;
263
- name: z.ZodString;
264
- description: z.ZodOptional<z.ZodString>;
265
- icon: z.ZodOptional<z.ZodString>;
266
- color: z.ZodOptional<z.ZodString>;
267
- startDate: z.ZodOptional<z.ZodString>;
268
- targetDate: z.ZodOptional<z.ZodString>;
269
- statusId: z.ZodOptional<z.ZodString>;
357
+ teamId: z.ZodOptional<z.ZodString>;
270
358
  }, z.core.$strip>;
271
- output: z.ZodObject<{
272
- success: z.ZodBoolean;
273
- lastSyncId: z.ZodOptional<z.ZodNumber>;
274
- }, z.core.$loose>;
275
- idempotent: boolean;
276
- options: {
277
- teamId: ({ client }: {
278
- client: Linear;
279
- }) => Promise<{
280
- label: string;
281
- value: string;
282
- }[]>;
283
- };
284
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
285
- teamId: z.ZodString;
286
- name: z.ZodString;
287
- description: z.ZodOptional<z.ZodString>;
288
- icon: z.ZodOptional<z.ZodString>;
289
- color: z.ZodOptional<z.ZodString>;
290
- startDate: z.ZodOptional<z.ZodString>;
291
- targetDate: z.ZodOptional<z.ZodString>;
292
- statusId: z.ZodOptional<z.ZodString>;
293
- }, z.core.$strip>>, object, Linear>): Promise<{
294
- success: boolean;
295
- lastSyncId: number;
296
- project: {
297
- id: string | undefined;
298
- };
359
+ output?: undefined;
360
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
361
+ } & {
362
+ type: "webhook";
363
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
364
+ teamId?: string | undefined;
365
+ }, {
366
+ channelMode: "agent-sessions" | "comments";
367
+ webhookSecret?: string | undefined;
368
+ botUsername?: string | undefined;
369
+ }, import("@linear/sdk").LinearClient> & {
370
+ webhookUrl: string;
371
+ }): Promise<{
372
+ webhookId: string;
299
373
  }>;
374
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
375
+ teamId?: string | undefined;
376
+ }, {
377
+ channelMode: "agent-sessions" | "comments";
378
+ webhookSecret?: string | undefined;
379
+ botUsername?: string | undefined;
380
+ }, import("@linear/sdk").LinearClient> & {
381
+ state: {
382
+ webhookId: string;
383
+ };
384
+ }): Promise<void>;
385
+ renew?: {
386
+ schedule: string;
387
+ run(args: import("frogbot/pieces").PieceRunArgs<{
388
+ teamId?: string | undefined;
389
+ }, {
390
+ channelMode: "agent-sessions" | "comments";
391
+ webhookSecret?: string | undefined;
392
+ botUsername?: string | undefined;
393
+ }, import("@linear/sdk").LinearClient> & {
394
+ state: {
395
+ webhookId: string;
396
+ };
397
+ webhookUrl: string;
398
+ }): Promise<{
399
+ webhookId: string;
400
+ }>;
401
+ } | undefined;
402
+ run(args: import("frogbot/pieces").PieceRunArgs<{
403
+ teamId?: string | undefined;
404
+ }, {
405
+ channelMode: "agent-sessions" | "comments";
406
+ webhookSecret?: string | undefined;
407
+ botUsername?: string | undefined;
408
+ }, import("@linear/sdk").LinearClient> & {
409
+ state: {
410
+ webhookId: string;
411
+ };
412
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
413
+ } & {
414
+ slug: "issueUpdated";
300
415
  }, {
301
416
  slug: string;
417
+ label?: string;
302
418
  description: string;
303
419
  input: z.ZodObject<{
304
420
  teamId: z.ZodString;
305
- projectId: z.ZodString;
306
- name: z.ZodString;
307
- description: z.ZodOptional<z.ZodString>;
308
- icon: z.ZodOptional<z.ZodString>;
309
- color: z.ZodOptional<z.ZodString>;
310
- startDate: z.ZodOptional<z.ZodString>;
311
- targetDate: z.ZodOptional<z.ZodString>;
312
- statusId: z.ZodOptional<z.ZodString>;
313
421
  }, z.core.$strip>;
314
- output: z.ZodObject<{
315
- success: z.ZodBoolean;
316
- lastSyncId: z.ZodOptional<z.ZodNumber>;
317
- }, z.core.$loose>;
318
- idempotent: boolean;
319
- options: {
320
- teamId: ({ client }: {
321
- client: Linear;
322
- }) => Promise<{
323
- label: string;
324
- value: string;
325
- }[]>;
326
- projectId: ({ client }: {
327
- client: Linear;
328
- }) => Promise<{
329
- label: string;
330
- value: string;
331
- }[]>;
332
- };
333
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
334
- teamId: z.ZodString;
335
- projectId: z.ZodString;
336
- name: z.ZodString;
337
- description: z.ZodOptional<z.ZodString>;
338
- icon: z.ZodOptional<z.ZodString>;
339
- color: z.ZodOptional<z.ZodString>;
340
- startDate: z.ZodOptional<z.ZodString>;
341
- targetDate: z.ZodOptional<z.ZodString>;
342
- statusId: z.ZodOptional<z.ZodString>;
343
- }, z.core.$strip>>, object, Linear>): Promise<{
344
- success: boolean;
345
- lastSyncId: number;
346
- project: {
347
- id: string | undefined;
422
+ output?: undefined;
423
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
424
+ } & {
425
+ type: "webhook";
426
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
427
+ teamId: string;
428
+ }, {
429
+ channelMode: "agent-sessions" | "comments";
430
+ webhookSecret?: string | undefined;
431
+ botUsername?: string | undefined;
432
+ }, import("@linear/sdk").LinearClient> & {
433
+ webhookUrl: string;
434
+ }): Promise<{
435
+ webhookId: string;
436
+ }>;
437
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
438
+ teamId: string;
439
+ }, {
440
+ channelMode: "agent-sessions" | "comments";
441
+ webhookSecret?: string | undefined;
442
+ botUsername?: string | undefined;
443
+ }, import("@linear/sdk").LinearClient> & {
444
+ state: {
445
+ webhookId: string;
348
446
  };
447
+ }): Promise<void>;
448
+ renew?: {
449
+ schedule: string;
450
+ run(args: import("frogbot/pieces").PieceRunArgs<{
451
+ teamId: string;
452
+ }, {
453
+ channelMode: "agent-sessions" | "comments";
454
+ webhookSecret?: string | undefined;
455
+ botUsername?: string | undefined;
456
+ }, import("@linear/sdk").LinearClient> & {
457
+ state: {
458
+ webhookId: string;
459
+ };
460
+ webhookUrl: string;
461
+ }): Promise<{
462
+ webhookId: string;
463
+ }>;
464
+ } | undefined;
465
+ run(args: import("frogbot/pieces").PieceRunArgs<{
466
+ teamId: string;
467
+ }, {
468
+ channelMode: "agent-sessions" | "comments";
469
+ webhookSecret?: string | undefined;
470
+ botUsername?: string | undefined;
471
+ }, import("@linear/sdk").LinearClient> & {
472
+ state: {
473
+ webhookId: string;
474
+ };
475
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
476
+ } & {
477
+ slug: "issueRemoved";
478
+ }, {
479
+ slug: string;
480
+ label?: string;
481
+ description: string;
482
+ input: z.ZodObject<{}, z.core.$strip>;
483
+ output?: undefined;
484
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
485
+ } & {
486
+ type: "webhook";
487
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
488
+ channelMode: "agent-sessions" | "comments";
489
+ webhookSecret?: string | undefined;
490
+ botUsername?: string | undefined;
491
+ }, import("@linear/sdk").LinearClient> & {
492
+ webhookUrl: string;
493
+ }): Promise<{
494
+ webhookId: string;
349
495
  }>;
496
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
497
+ channelMode: "agent-sessions" | "comments";
498
+ webhookSecret?: string | undefined;
499
+ botUsername?: string | undefined;
500
+ }, import("@linear/sdk").LinearClient> & {
501
+ state: {
502
+ webhookId: string;
503
+ };
504
+ }): Promise<void>;
505
+ renew?: {
506
+ schedule: string;
507
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
508
+ channelMode: "agent-sessions" | "comments";
509
+ webhookSecret?: string | undefined;
510
+ botUsername?: string | undefined;
511
+ }, import("@linear/sdk").LinearClient> & {
512
+ state: {
513
+ webhookId: string;
514
+ };
515
+ webhookUrl: string;
516
+ }): Promise<{
517
+ webhookId: string;
518
+ }>;
519
+ } | undefined;
520
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
521
+ channelMode: "agent-sessions" | "comments";
522
+ webhookSecret?: string | undefined;
523
+ botUsername?: string | undefined;
524
+ }, import("@linear/sdk").LinearClient> & {
525
+ state: {
526
+ webhookId: string;
527
+ };
528
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
529
+ } & {
530
+ slug: "projectCreated";
350
531
  }, {
351
532
  slug: string;
533
+ label?: string;
352
534
  description: string;
353
535
  input: z.ZodObject<{
354
- teamId: z.ZodString;
355
- issueId: z.ZodString;
356
- body: z.ZodString;
536
+ teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
+ projectStatus: z.ZodOptional<z.ZodString>;
357
538
  }, z.core.$strip>;
358
- output: z.ZodObject<{
359
- success: z.ZodBoolean;
360
- lastSyncId: z.ZodOptional<z.ZodNumber>;
361
- }, z.core.$loose>;
362
- idempotent: boolean;
363
- options: {
364
- teamId: ({ client }: {
365
- client: Linear;
366
- }) => Promise<{
367
- label: string;
368
- value: string;
369
- }[]>;
370
- issueId: ({ client, input }: {
371
- client: Linear;
372
- input: {
373
- teamId?: string;
539
+ output?: undefined;
540
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
541
+ } & {
542
+ type: "webhook";
543
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
544
+ teamIds?: string[] | undefined;
545
+ projectStatus?: string | undefined;
546
+ }, {
547
+ channelMode: "agent-sessions" | "comments";
548
+ webhookSecret?: string | undefined;
549
+ botUsername?: string | undefined;
550
+ }, import("@linear/sdk").LinearClient> & {
551
+ webhookUrl: string;
552
+ }): Promise<{
553
+ webhookId: string;
554
+ }>;
555
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
556
+ teamIds?: string[] | undefined;
557
+ projectStatus?: string | undefined;
558
+ }, {
559
+ channelMode: "agent-sessions" | "comments";
560
+ webhookSecret?: string | undefined;
561
+ botUsername?: string | undefined;
562
+ }, import("@linear/sdk").LinearClient> & {
563
+ state: {
564
+ webhookId: string;
565
+ };
566
+ }): Promise<void>;
567
+ renew?: {
568
+ schedule: string;
569
+ run(args: import("frogbot/pieces").PieceRunArgs<{
570
+ teamIds?: string[] | undefined;
571
+ projectStatus?: string | undefined;
572
+ }, {
573
+ channelMode: "agent-sessions" | "comments";
574
+ webhookSecret?: string | undefined;
575
+ botUsername?: string | undefined;
576
+ }, import("@linear/sdk").LinearClient> & {
577
+ state: {
578
+ webhookId: string;
374
579
  };
375
- }) => Promise<{
376
- label: string;
377
- value: string;
378
- }[]>;
379
- };
380
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
381
- teamId: z.ZodString;
382
- issueId: z.ZodString;
383
- body: z.ZodString;
384
- }, z.core.$strip>>, object, Linear>): Promise<{
385
- success: boolean;
386
- lastSyncId: number;
387
- comment: {
388
- id: string | undefined;
580
+ webhookUrl: string;
581
+ }): Promise<{
582
+ webhookId: string;
583
+ }>;
584
+ } | undefined;
585
+ run(args: import("frogbot/pieces").PieceRunArgs<{
586
+ teamIds?: string[] | undefined;
587
+ projectStatus?: string | undefined;
588
+ }, {
589
+ channelMode: "agent-sessions" | "comments";
590
+ webhookSecret?: string | undefined;
591
+ botUsername?: string | undefined;
592
+ }, import("@linear/sdk").LinearClient> & {
593
+ state: {
594
+ webhookId: string;
389
595
  };
390
- }>;
596
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
597
+ } & {
598
+ slug: "projectUpdated";
391
599
  }, {
392
600
  slug: string;
601
+ label?: string;
393
602
  description: string;
394
- input: z.ZodObject<{
395
- query: z.ZodString;
396
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
397
- }, z.core.$strip>;
398
- output: z.ZodUnknown;
399
- idempotent: boolean;
400
- run({ client, input }: import("frogbot/pieces").PieceRunArgs<z.output<z.ZodObject<{
401
- query: z.ZodString;
402
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
403
- }, z.core.$strip>>, object, Linear>): Promise<import("@linear/sdk").LinearRawResponse<unknown>>;
603
+ input: z.ZodObject<{}, z.core.$strip>;
604
+ output?: undefined;
605
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
606
+ } & {
607
+ type: "webhook";
608
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
609
+ channelMode: "agent-sessions" | "comments";
610
+ webhookSecret?: string | undefined;
611
+ botUsername?: string | undefined;
612
+ }, import("@linear/sdk").LinearClient> & {
613
+ webhookUrl: string;
614
+ }): Promise<{
615
+ webhookId: string;
616
+ }>;
617
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
618
+ channelMode: "agent-sessions" | "comments";
619
+ webhookSecret?: string | undefined;
620
+ botUsername?: string | undefined;
621
+ }, import("@linear/sdk").LinearClient> & {
622
+ state: {
623
+ webhookId: string;
624
+ };
625
+ }): Promise<void>;
626
+ renew?: {
627
+ schedule: string;
628
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
629
+ channelMode: "agent-sessions" | "comments";
630
+ webhookSecret?: string | undefined;
631
+ botUsername?: string | undefined;
632
+ }, import("@linear/sdk").LinearClient> & {
633
+ state: {
634
+ webhookId: string;
635
+ };
636
+ webhookUrl: string;
637
+ }): Promise<{
638
+ webhookId: string;
639
+ }>;
640
+ } | undefined;
641
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
642
+ channelMode: "agent-sessions" | "comments";
643
+ webhookSecret?: string | undefined;
644
+ botUsername?: string | undefined;
645
+ }, import("@linear/sdk").LinearClient> & {
646
+ state: {
647
+ webhookId: string;
648
+ };
649
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
650
+ } & {
651
+ slug: "projectRemoved";
404
652
  }];
405
- readonly triggers: readonly [import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
406
- teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
- authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
- }, z.core.$strip>, undefined, {
409
- channelMode: "agent-sessions" | "comments";
410
- webhookSecret?: string | undefined;
411
- botUsername?: string | undefined;
412
- }, import("@linear/sdk").LinearClient, {
413
- webhookId: string;
414
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
415
- teamId: z.ZodString;
416
- }, z.core.$strip>, undefined, {
417
- channelMode: "agent-sessions" | "comments";
418
- webhookSecret?: string | undefined;
419
- botUsername?: string | undefined;
420
- }, import("@linear/sdk").LinearClient, {
421
- webhookId: string;
422
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
423
- teamId: z.ZodOptional<z.ZodString>;
424
- }, z.core.$strip>, undefined, {
425
- channelMode: "agent-sessions" | "comments";
426
- webhookSecret?: string | undefined;
427
- botUsername?: string | undefined;
428
- }, import("@linear/sdk").LinearClient, {
429
- webhookId: string;
430
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
431
- teamId: z.ZodString;
432
- }, z.core.$strip>, undefined, {
433
- channelMode: "agent-sessions" | "comments";
434
- webhookSecret?: string | undefined;
435
- botUsername?: string | undefined;
436
- }, import("@linear/sdk").LinearClient, {
437
- webhookId: string;
438
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, {
439
- channelMode: "agent-sessions" | "comments";
440
- webhookSecret?: string | undefined;
441
- botUsername?: string | undefined;
442
- }, import("@linear/sdk").LinearClient, {
443
- webhookId: string;
444
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
445
- teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
446
- projectStatus: z.ZodOptional<z.ZodString>;
447
- }, z.core.$strip>, undefined, {
448
- channelMode: "agent-sessions" | "comments";
449
- webhookSecret?: string | undefined;
450
- botUsername?: string | undefined;
451
- }, import("@linear/sdk").LinearClient, {
452
- webhookId: string;
453
- }>, import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, {
454
- channelMode: "agent-sessions" | "comments";
455
- webhookSecret?: string | undefined;
456
- botUsername?: string | undefined;
457
- }, import("@linear/sdk").LinearClient, {
458
- webhookId: string;
459
- }>];
460
653
  }>;
461
654
  //# sourceMappingURL=index.d.ts.map