@frogbotai/piece-linear 0.27.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 +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQ7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,aAAa,+GAOhB,CAAC;AACX,eAAO,MAAM,cAAc,mIAQjB,CAAC;AACX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;CAsByC,CAAC;AAqClE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAlElB,CAAC;;;;;;;;;0BAAD,CAAC;;;;;;;;;;;;;;;;;;;qEAhB8B,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgBvC,CAAC;;;;;;;;;0BAAD,CAAC;;;;;;;;;0BAAD,CAAC;;;;;;;;;;;;;;;;;;;qE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBvB,CAAC"}
@@ -1,12 +1,71 @@
1
1
  import { z } from 'zod';
2
- export declare const commentCreated: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
3
- teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
- authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
- }, z.core.$strip>, undefined, {
6
- channelMode: "agent-sessions" | "comments";
7
- webhookSecret?: string | undefined;
8
- botUsername?: string | undefined;
9
- }, import("@linear/sdk").LinearClient, {
10
- webhookId: string;
11
- }>;
2
+ export declare const commentCreated: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{
7
+ teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ }, z.core.$strip>;
10
+ output?: undefined;
11
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
12
+ } & {
13
+ type: "webhook";
14
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
15
+ teamIds?: string[] | undefined;
16
+ authorIds?: string[] | undefined;
17
+ }, {
18
+ channelMode: "agent-sessions" | "comments";
19
+ webhookSecret?: string | undefined;
20
+ botUsername?: string | undefined;
21
+ }, import("@linear/sdk").LinearClient> & {
22
+ webhookUrl: string;
23
+ }): Promise<{
24
+ webhookId: string;
25
+ }>;
26
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
27
+ teamIds?: string[] | undefined;
28
+ authorIds?: string[] | undefined;
29
+ }, {
30
+ channelMode: "agent-sessions" | "comments";
31
+ webhookSecret?: string | undefined;
32
+ botUsername?: string | undefined;
33
+ }, import("@linear/sdk").LinearClient> & {
34
+ state: {
35
+ webhookId: string;
36
+ };
37
+ }): Promise<void>;
38
+ renew?: {
39
+ schedule: string;
40
+ run(args: import("frogbot/pieces").PieceRunArgs<{
41
+ teamIds?: string[] | undefined;
42
+ authorIds?: string[] | undefined;
43
+ }, {
44
+ channelMode: "agent-sessions" | "comments";
45
+ webhookSecret?: string | undefined;
46
+ botUsername?: string | undefined;
47
+ }, import("@linear/sdk").LinearClient> & {
48
+ state: {
49
+ webhookId: string;
50
+ };
51
+ webhookUrl: string;
52
+ }): Promise<{
53
+ webhookId: string;
54
+ }>;
55
+ } | undefined;
56
+ run(args: import("frogbot/pieces").PieceRunArgs<{
57
+ teamIds?: string[] | undefined;
58
+ authorIds?: string[] | undefined;
59
+ }, {
60
+ channelMode: "agent-sessions" | "comments";
61
+ webhookSecret?: string | undefined;
62
+ botUsername?: string | undefined;
63
+ }, import("@linear/sdk").LinearClient> & {
64
+ state: {
65
+ webhookId: string;
66
+ };
67
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
68
+ } & {
69
+ slug: "commentCreated";
70
+ };
12
71
  //# sourceMappingURL=commentCreated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commentCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/commentCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;EAczB,CAAC"}
1
+ {"version":3,"file":"commentCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/commentCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAczB,CAAC"}
@@ -1,11 +1,66 @@
1
1
  import { z } from 'zod';
2
- export declare const issueCreated: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
3
- teamId: z.ZodString;
4
- }, z.core.$strip>, undefined, {
5
- channelMode: "agent-sessions" | "comments";
6
- webhookSecret?: string | undefined;
7
- botUsername?: string | undefined;
8
- }, import("@linear/sdk").LinearClient, {
9
- webhookId: string;
10
- }>;
2
+ export declare const issueCreated: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{
7
+ teamId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ output?: undefined;
10
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
11
+ } & {
12
+ type: "webhook";
13
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
14
+ teamId: string;
15
+ }, {
16
+ channelMode: "agent-sessions" | "comments";
17
+ webhookSecret?: string | undefined;
18
+ botUsername?: string | undefined;
19
+ }, import("@linear/sdk").LinearClient> & {
20
+ webhookUrl: string;
21
+ }): Promise<{
22
+ webhookId: string;
23
+ }>;
24
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
25
+ teamId: string;
26
+ }, {
27
+ channelMode: "agent-sessions" | "comments";
28
+ webhookSecret?: string | undefined;
29
+ botUsername?: string | undefined;
30
+ }, import("@linear/sdk").LinearClient> & {
31
+ state: {
32
+ webhookId: string;
33
+ };
34
+ }): Promise<void>;
35
+ renew?: {
36
+ schedule: string;
37
+ run(args: import("frogbot/pieces").PieceRunArgs<{
38
+ teamId: string;
39
+ }, {
40
+ channelMode: "agent-sessions" | "comments";
41
+ webhookSecret?: string | undefined;
42
+ botUsername?: string | undefined;
43
+ }, import("@linear/sdk").LinearClient> & {
44
+ state: {
45
+ webhookId: string;
46
+ };
47
+ webhookUrl: string;
48
+ }): Promise<{
49
+ webhookId: string;
50
+ }>;
51
+ } | undefined;
52
+ run(args: import("frogbot/pieces").PieceRunArgs<{
53
+ teamId: string;
54
+ }, {
55
+ channelMode: "agent-sessions" | "comments";
56
+ webhookSecret?: string | undefined;
57
+ botUsername?: string | undefined;
58
+ }, import("@linear/sdk").LinearClient> & {
59
+ state: {
60
+ webhookId: string;
61
+ };
62
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
63
+ } & {
64
+ slug: "issueCreated";
65
+ };
11
66
  //# sourceMappingURL=issueCreated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issueCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/issueCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;EAKvB,CAAC"}
1
+ {"version":3,"file":"issueCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/issueCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvB,CAAC"}
@@ -1,11 +1,66 @@
1
1
  import { z } from 'zod';
2
- export declare const issueRemoved: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
3
- teamId: z.ZodString;
4
- }, z.core.$strip>, undefined, {
5
- channelMode: "agent-sessions" | "comments";
6
- webhookSecret?: string | undefined;
7
- botUsername?: string | undefined;
8
- }, import("@linear/sdk").LinearClient, {
9
- webhookId: string;
10
- }>;
2
+ export declare const issueRemoved: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{
7
+ teamId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ output?: undefined;
10
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
11
+ } & {
12
+ type: "webhook";
13
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
14
+ teamId: string;
15
+ }, {
16
+ channelMode: "agent-sessions" | "comments";
17
+ webhookSecret?: string | undefined;
18
+ botUsername?: string | undefined;
19
+ }, import("@linear/sdk").LinearClient> & {
20
+ webhookUrl: string;
21
+ }): Promise<{
22
+ webhookId: string;
23
+ }>;
24
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
25
+ teamId: string;
26
+ }, {
27
+ channelMode: "agent-sessions" | "comments";
28
+ webhookSecret?: string | undefined;
29
+ botUsername?: string | undefined;
30
+ }, import("@linear/sdk").LinearClient> & {
31
+ state: {
32
+ webhookId: string;
33
+ };
34
+ }): Promise<void>;
35
+ renew?: {
36
+ schedule: string;
37
+ run(args: import("frogbot/pieces").PieceRunArgs<{
38
+ teamId: string;
39
+ }, {
40
+ channelMode: "agent-sessions" | "comments";
41
+ webhookSecret?: string | undefined;
42
+ botUsername?: string | undefined;
43
+ }, import("@linear/sdk").LinearClient> & {
44
+ state: {
45
+ webhookId: string;
46
+ };
47
+ webhookUrl: string;
48
+ }): Promise<{
49
+ webhookId: string;
50
+ }>;
51
+ } | undefined;
52
+ run(args: import("frogbot/pieces").PieceRunArgs<{
53
+ teamId: string;
54
+ }, {
55
+ channelMode: "agent-sessions" | "comments";
56
+ webhookSecret?: string | undefined;
57
+ botUsername?: string | undefined;
58
+ }, import("@linear/sdk").LinearClient> & {
59
+ state: {
60
+ webhookId: string;
61
+ };
62
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
63
+ } & {
64
+ slug: "issueRemoved";
65
+ };
11
66
  //# sourceMappingURL=issueRemoved.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issueRemoved.d.ts","sourceRoot":"","sources":["../../src/triggers/issueRemoved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;EAKvB,CAAC"}
1
+ {"version":3,"file":"issueRemoved.d.ts","sourceRoot":"","sources":["../../src/triggers/issueRemoved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvB,CAAC"}
@@ -1,11 +1,66 @@
1
1
  import { z } from 'zod';
2
- export declare const issueUpdated: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
3
- teamId: z.ZodOptional<z.ZodString>;
4
- }, z.core.$strip>, undefined, {
5
- channelMode: "agent-sessions" | "comments";
6
- webhookSecret?: string | undefined;
7
- botUsername?: string | undefined;
8
- }, import("@linear/sdk").LinearClient, {
9
- webhookId: string;
10
- }>;
2
+ export declare const issueUpdated: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{
7
+ teamId: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ output?: undefined;
10
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
11
+ } & {
12
+ type: "webhook";
13
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<{
14
+ teamId?: string | undefined;
15
+ }, {
16
+ channelMode: "agent-sessions" | "comments";
17
+ webhookSecret?: string | undefined;
18
+ botUsername?: string | undefined;
19
+ }, import("@linear/sdk").LinearClient> & {
20
+ webhookUrl: string;
21
+ }): Promise<{
22
+ webhookId: string;
23
+ }>;
24
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<{
25
+ teamId?: string | undefined;
26
+ }, {
27
+ channelMode: "agent-sessions" | "comments";
28
+ webhookSecret?: string | undefined;
29
+ botUsername?: string | undefined;
30
+ }, import("@linear/sdk").LinearClient> & {
31
+ state: {
32
+ webhookId: string;
33
+ };
34
+ }): Promise<void>;
35
+ renew?: {
36
+ schedule: string;
37
+ run(args: import("frogbot/pieces").PieceRunArgs<{
38
+ teamId?: string | undefined;
39
+ }, {
40
+ channelMode: "agent-sessions" | "comments";
41
+ webhookSecret?: string | undefined;
42
+ botUsername?: string | undefined;
43
+ }, import("@linear/sdk").LinearClient> & {
44
+ state: {
45
+ webhookId: string;
46
+ };
47
+ webhookUrl: string;
48
+ }): Promise<{
49
+ webhookId: string;
50
+ }>;
51
+ } | undefined;
52
+ run(args: import("frogbot/pieces").PieceRunArgs<{
53
+ teamId?: string | undefined;
54
+ }, {
55
+ channelMode: "agent-sessions" | "comments";
56
+ webhookSecret?: string | undefined;
57
+ botUsername?: string | undefined;
58
+ }, import("@linear/sdk").LinearClient> & {
59
+ state: {
60
+ webhookId: string;
61
+ };
62
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
63
+ } & {
64
+ slug: "issueUpdated";
65
+ };
11
66
  //# sourceMappingURL=issueUpdated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issueUpdated.d.ts","sourceRoot":"","sources":["../../src/triggers/issueUpdated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;EAKvB,CAAC"}
1
+ {"version":3,"file":"issueUpdated.d.ts","sourceRoot":"","sources":["../../src/triggers/issueUpdated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvB,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from 'zod';
2
- export declare const projectCreated: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, {
3
- channelMode: "agent-sessions" | "comments";
4
- webhookSecret?: string | undefined;
5
- botUsername?: string | undefined;
6
- }, import("@linear/sdk").LinearClient, {
7
- webhookId: string;
8
- }>;
2
+ export declare const projectCreated: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{}, z.core.$strip>;
7
+ output?: undefined;
8
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
9
+ } & {
10
+ type: "webhook";
11
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
12
+ channelMode: "agent-sessions" | "comments";
13
+ webhookSecret?: string | undefined;
14
+ botUsername?: string | undefined;
15
+ }, import("@linear/sdk").LinearClient> & {
16
+ webhookUrl: string;
17
+ }): Promise<{
18
+ webhookId: string;
19
+ }>;
20
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
21
+ channelMode: "agent-sessions" | "comments";
22
+ webhookSecret?: string | undefined;
23
+ botUsername?: string | undefined;
24
+ }, import("@linear/sdk").LinearClient> & {
25
+ state: {
26
+ webhookId: string;
27
+ };
28
+ }): Promise<void>;
29
+ renew?: {
30
+ schedule: string;
31
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
32
+ channelMode: "agent-sessions" | "comments";
33
+ webhookSecret?: string | undefined;
34
+ botUsername?: string | undefined;
35
+ }, import("@linear/sdk").LinearClient> & {
36
+ state: {
37
+ webhookId: string;
38
+ };
39
+ webhookUrl: string;
40
+ }): Promise<{
41
+ webhookId: string;
42
+ }>;
43
+ } | undefined;
44
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
45
+ channelMode: "agent-sessions" | "comments";
46
+ webhookSecret?: string | undefined;
47
+ botUsername?: string | undefined;
48
+ }, import("@linear/sdk").LinearClient> & {
49
+ state: {
50
+ webhookId: string;
51
+ };
52
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
53
+ } & {
54
+ slug: "projectCreated";
55
+ };
9
56
  //# sourceMappingURL=projectCreated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projectCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/projectCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;EAKzB,CAAC"}
1
+ {"version":3,"file":"projectCreated.d.ts","sourceRoot":"","sources":["../../src/triggers/projectCreated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzB,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from 'zod';
2
- export declare const projectRemoved: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{}, z.core.$strip>, undefined, {
3
- channelMode: "agent-sessions" | "comments";
4
- webhookSecret?: string | undefined;
5
- botUsername?: string | undefined;
6
- }, import("@linear/sdk").LinearClient, {
7
- webhookId: string;
8
- }>;
2
+ export declare const projectRemoved: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{}, z.core.$strip>;
7
+ output?: undefined;
8
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
9
+ } & {
10
+ type: "webhook";
11
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
12
+ channelMode: "agent-sessions" | "comments";
13
+ webhookSecret?: string | undefined;
14
+ botUsername?: string | undefined;
15
+ }, import("@linear/sdk").LinearClient> & {
16
+ webhookUrl: string;
17
+ }): Promise<{
18
+ webhookId: string;
19
+ }>;
20
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
21
+ channelMode: "agent-sessions" | "comments";
22
+ webhookSecret?: string | undefined;
23
+ botUsername?: string | undefined;
24
+ }, import("@linear/sdk").LinearClient> & {
25
+ state: {
26
+ webhookId: string;
27
+ };
28
+ }): Promise<void>;
29
+ renew?: {
30
+ schedule: string;
31
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
32
+ channelMode: "agent-sessions" | "comments";
33
+ webhookSecret?: string | undefined;
34
+ botUsername?: string | undefined;
35
+ }, import("@linear/sdk").LinearClient> & {
36
+ state: {
37
+ webhookId: string;
38
+ };
39
+ webhookUrl: string;
40
+ }): Promise<{
41
+ webhookId: string;
42
+ }>;
43
+ } | undefined;
44
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, {
45
+ channelMode: "agent-sessions" | "comments";
46
+ webhookSecret?: string | undefined;
47
+ botUsername?: string | undefined;
48
+ }, import("@linear/sdk").LinearClient> & {
49
+ state: {
50
+ webhookId: string;
51
+ };
52
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
53
+ } & {
54
+ slug: "projectRemoved";
55
+ };
9
56
  //# sourceMappingURL=projectRemoved.d.ts.map
@@ -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;;;;;;EAKzB,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"}
@@ -1,12 +1,71 @@
1
1
  import { z } from 'zod';
2
- export declare const projectUpdated: import("frogbot/pieces").PieceWebhookTrigger<z.ZodObject<{
3
- teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
- projectStatus: z.ZodOptional<z.ZodString>;
5
- }, z.core.$strip>, undefined, {
6
- channelMode: "agent-sessions" | "comments";
7
- webhookSecret?: string | undefined;
8
- botUsername?: string | undefined;
9
- }, import("@linear/sdk").LinearClient, {
10
- webhookId: string;
11
- }>;
2
+ export declare const projectUpdated: {
3
+ slug: string;
4
+ label?: string;
5
+ description: string;
6
+ input: z.ZodObject<{
7
+ teamIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ projectStatus: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ output?: undefined;
11
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
12
+ } & {
13
+ type: "webhook";
14
+ onEnable(args: import("frogbot/pieces").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> & {
22
+ webhookUrl: string;
23
+ }): Promise<{
24
+ webhookId: string;
25
+ }>;
26
+ onDisable(args: import("frogbot/pieces").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> & {
34
+ state: {
35
+ webhookId: string;
36
+ };
37
+ }): Promise<void>;
38
+ renew?: {
39
+ schedule: string;
40
+ run(args: import("frogbot/pieces").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> & {
48
+ state: {
49
+ webhookId: string;
50
+ };
51
+ webhookUrl: string;
52
+ }): Promise<{
53
+ webhookId: string;
54
+ }>;
55
+ } | undefined;
56
+ run(args: import("frogbot/pieces").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> & {
64
+ state: {
65
+ webhookId: string;
66
+ };
67
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
68
+ } & {
69
+ slug: "projectUpdated";
70
+ };
12
71
  //# sourceMappingURL=projectUpdated.d.ts.map
@@ -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;;;;;;;;;EAYzB,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"}
@@ -1,7 +1,4 @@
1
- import { type PieceWebhookTrigger } from 'frogbot/pieces';
2
1
  import type { z } from 'zod';
3
- import type { Linear } from '../client.js';
4
- import type { LinearOptions } from '../config.js';
5
2
  type Delivery = {
6
3
  action?: string;
7
4
  type?: string;
@@ -21,14 +18,65 @@ type Delivery = {
21
18
  statusId?: string;
22
19
  };
23
20
  };
24
- export declare function webhookTrigger<TInput extends z.ZodType>({ slug, action, resourceType, input, matches, }: {
25
- slug: string;
21
+ export declare function webhookTrigger<const TSlug extends string, TInput extends z.ZodType>({ slug, action, resourceType, input, matches, }: {
22
+ slug: TSlug;
26
23
  action: string;
27
24
  resourceType: 'Comment' | 'Issue' | 'Project';
28
25
  input: TInput;
29
26
  matches?: (delivery: Delivery, input: z.output<TInput>) => boolean;
30
- }): PieceWebhookTrigger<TInput, undefined, LinearOptions, Linear, {
31
- webhookId: string;
32
- }>;
27
+ }): {
28
+ slug: string;
29
+ label?: string;
30
+ description: string;
31
+ input: TInput;
32
+ output?: undefined;
33
+ sample?: import("frogbot/pieces").PieceJSON | undefined;
34
+ } & {
35
+ type: "webhook";
36
+ onEnable(args: import("frogbot/pieces").PieceRunArgs<z.core.output<TInput>, {
37
+ channelMode: "agent-sessions" | "comments";
38
+ webhookSecret?: string | undefined;
39
+ botUsername?: string | undefined;
40
+ }, import("@linear/sdk").LinearClient> & {
41
+ webhookUrl: string;
42
+ }): Promise<{
43
+ webhookId: string;
44
+ }>;
45
+ onDisable(args: import("frogbot/pieces").PieceRunArgs<z.core.output<TInput>, {
46
+ channelMode: "agent-sessions" | "comments";
47
+ webhookSecret?: string | undefined;
48
+ botUsername?: string | undefined;
49
+ }, import("@linear/sdk").LinearClient> & {
50
+ state: {
51
+ webhookId: string;
52
+ };
53
+ }): Promise<void>;
54
+ renew?: {
55
+ schedule: string;
56
+ run(args: import("frogbot/pieces").PieceRunArgs<z.core.output<TInput>, {
57
+ channelMode: "agent-sessions" | "comments";
58
+ webhookSecret?: string | undefined;
59
+ botUsername?: string | undefined;
60
+ }, import("@linear/sdk").LinearClient> & {
61
+ state: {
62
+ webhookId: string;
63
+ };
64
+ webhookUrl: string;
65
+ }): Promise<{
66
+ webhookId: string;
67
+ }>;
68
+ } | undefined;
69
+ run(args: import("frogbot/pieces").PieceRunArgs<z.core.output<TInput>, {
70
+ channelMode: "agent-sessions" | "comments";
71
+ webhookSecret?: string | undefined;
72
+ botUsername?: string | undefined;
73
+ }, import("@linear/sdk").LinearClient> & {
74
+ state: {
75
+ webhookId: string;
76
+ };
77
+ }): Promise<import("frogbot/pieces").TriggerEvent<import("frogbot/pieces").PieceJSON>[]>;
78
+ } & {
79
+ slug: TSlug;
80
+ };
33
81
  export {};
34
82
  //# sourceMappingURL=webhook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/triggers/webhook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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