@frogbotai/piece-linear 0.38.0 → 0.40.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.
- package/dist/adapter.d.ts +1 -0
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +4 -0
- package/dist/adapter.js.map +1 -1
- package/dist/define.d.ts +106 -40
- package/dist/define.d.ts.map +1 -1
- package/dist/index.d.ts +445 -188
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers/commentCreated.d.ts +70 -32
- package/dist/triggers/commentCreated.d.ts.map +1 -1
- package/dist/triggers/issueCreated.d.ts +65 -28
- package/dist/triggers/issueCreated.d.ts.map +1 -1
- package/dist/triggers/issueRemoved.d.ts +65 -28
- package/dist/triggers/issueRemoved.d.ts.map +1 -1
- package/dist/triggers/issueUpdated.d.ts +65 -28
- package/dist/triggers/issueUpdated.d.ts.map +1 -1
- package/dist/triggers/projectCreated.d.ts +55 -20
- package/dist/triggers/projectCreated.d.ts.map +1 -1
- package/dist/triggers/projectRemoved.d.ts +55 -20
- package/dist/triggers/projectRemoved.d.ts.map +1 -1
- package/dist/triggers/projectUpdated.d.ts +70 -32
- package/dist/triggers/projectUpdated.d.ts.map +1 -1
- package/dist/triggers/webhook.d.ts +55 -20
- package/dist/triggers/webhook.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -8,31 +8,46 @@ export declare const projectRemoved: {
|
|
|
8
8
|
sample?: import("frogbot").PieceJSON | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
type: "webhook";
|
|
11
|
-
onEnable(args:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
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:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
|
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:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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;SA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,CAAC,CAAC,OAAO,EAAE,EACnF,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,KAAK,EACL,OAAO,GACR,EAAE;IACD,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,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.
|
|
3
|
+
"version": "0.40.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.
|
|
32
|
+
"frogbot": "0.40.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "6.0.3",
|
|
36
|
-
"frogbot": "0.
|
|
36
|
+
"frogbot": "0.40.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|