@frogbotai/piece-linear 0.29.0 → 0.31.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/actions/createComment.d.ts +1 -1
- package/dist/actions/createComment.d.ts.map +1 -1
- package/dist/actions/createComment.js +23 -7
- package/dist/actions/createComment.js.map +1 -1
- package/dist/actions/createIssue.d.ts +1 -1
- package/dist/actions/createIssue.d.ts.map +1 -1
- package/dist/actions/createIssue.js +12 -6
- package/dist/actions/createIssue.js.map +1 -1
- package/dist/actions/createProject.d.ts +1 -1
- package/dist/actions/createProject.d.ts.map +1 -1
- package/dist/actions/createProject.js +20 -7
- package/dist/actions/createProject.js.map +1 -1
- package/dist/actions/options.d.ts.map +1 -1
- package/dist/actions/options.js +35 -18
- package/dist/actions/options.js.map +1 -1
- package/dist/actions/rawGraphqlQuery.d.ts +1 -1
- package/dist/actions/rawGraphqlQuery.js +4 -3
- package/dist/actions/rawGraphqlQuery.js.map +1 -1
- package/dist/actions/updateIssue.d.ts +1 -1
- package/dist/actions/updateIssue.d.ts.map +1 -1
- package/dist/actions/updateIssue.js +12 -6
- package/dist/actions/updateIssue.js.map +1 -1
- package/dist/actions/updateProject.d.ts +1 -1
- package/dist/actions/updateProject.d.ts.map +1 -1
- package/dist/actions/updateProject.js +21 -7
- package/dist/actions/updateProject.js.map +1 -1
- package/dist/adapter.js +6 -3
- package/dist/adapter.js.map +1 -1
- package/dist/client.js +6 -3
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +29 -17
- package/dist/config.js.map +1 -1
- package/dist/define.d.ts +15 -15
- package/dist/define.js +1 -0
- package/dist/define.js.map +1 -1
- package/dist/index.d.ts +59 -61
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -32
- package/dist/index.js.map +1 -1
- package/dist/questions/elicitation.js +45 -34
- package/dist/questions/elicitation.js.map +1 -1
- package/dist/questions/index.js +2 -1
- package/dist/questions/index.js.map +1 -1
- package/dist/questions/linearThread.js +8 -6
- package/dist/questions/linearThread.js.map +1 -1
- package/dist/questions/notify.js +23 -10
- package/dist/questions/notify.js.map +1 -1
- package/dist/questions/parse.d.ts.map +1 -1
- package/dist/questions/parse.js +118 -61
- package/dist/questions/parse.js.map +1 -1
- package/dist/questions/render.js +23 -5
- package/dist/questions/render.js.map +1 -1
- package/dist/questions/settled.js +4 -4
- package/dist/questions/settled.js.map +1 -1
- package/dist/questions/supports.js +2 -1
- package/dist/questions/supports.js.map +1 -1
- package/dist/triggers/commentCreated.d.ts +6 -6
- package/dist/triggers/commentCreated.js +3 -6
- package/dist/triggers/commentCreated.js.map +1 -1
- package/dist/triggers/issueCreated.d.ts +6 -6
- package/dist/triggers/issueCreated.js +4 -1
- package/dist/triggers/issueCreated.js.map +1 -1
- package/dist/triggers/issueRemoved.d.ts +6 -6
- package/dist/triggers/issueRemoved.js +4 -1
- package/dist/triggers/issueRemoved.js.map +1 -1
- package/dist/triggers/issueUpdated.d.ts +6 -6
- package/dist/triggers/issueUpdated.js +4 -1
- package/dist/triggers/issueUpdated.js.map +1 -1
- package/dist/triggers/projectCreated.d.ts +6 -6
- package/dist/triggers/projectCreated.js +2 -1
- package/dist/triggers/projectCreated.js.map +1 -1
- package/dist/triggers/projectRemoved.d.ts +6 -6
- package/dist/triggers/projectRemoved.js +2 -1
- package/dist/triggers/projectRemoved.js.map +1 -1
- package/dist/triggers/projectUpdated.d.ts +6 -6
- package/dist/triggers/projectUpdated.js +3 -4
- package/dist/triggers/projectUpdated.js.map +1 -1
- package/dist/triggers/webhook.d.ts +6 -6
- package/dist/triggers/webhook.d.ts.map +1 -1
- package/dist/triggers/webhook.js +24 -24
- package/dist/triggers/webhook.js.map +1 -1
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js +11 -17
- package/dist/webhook.js.map +1 -1
- package/package.json +4 -4
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"names":["z","linearApiKeyAuth","object","apiKey","string","min","meta","label","secret","linearAccessTokenAuth","accessToken","linearAuth","extend","shape","partial","pipe","union","linearOptions","webhookSecret","optional","channelMode","enum","default","botUsername","teamId"],"mappings":"AAAA,SAASA,CAAC,QAAQ,MAAM;AAExB,MAAMC,mBAAmBD,EAAEE,MAAM,CAAC;IAChCC,QAAQH,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,IAAI,CAAC;QAAEC,OAAO;QAAWC,QAAQ;IAAK;AAClE;AAEA,MAAMC,wBAAwBT,EAAEE,MAAM,CAAC;IACrCQ,aAAaV,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,IAAI,CAAC;QAAEC,OAAO;QAAsBC,QAAQ;IAAK;AAClF;AAEA,OAAO,MAAMG,aAAaV,iBACvBW,MAAM,CAACH,sBAAsBI,KAAK,EAClCC,OAAO,GACPC,IAAI,CAACf,EAAEgB,KAAK,CAAC;IAACf;IAAkBQ;CAAsB,GAAG;AAE5D,OAAO,MAAMQ,gBAAgBjB,EAAEE,MAAM,CAAC;IACpCgB,eAAelB,EACZI,MAAM,GACNC,GAAG,CAAC,GACJC,IAAI,CAAC;QAAEC,OAAO;QAA0BC,QAAQ;IAAK,GACrDW,QAAQ;IACXC,aAAapB,EACVqB,IAAI,CAAC;QAAC;QAAkB;KAAW,EACnCC,OAAO,CAAC,kBACRhB,IAAI,CAAC;QAAEC,OAAO;IAAe;IAChCgB,aAAavB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGc,QAAQ,GAAGb,IAAI,CAAC;QAAEC,OAAO;IAAe;AACzE,GAAG;AAIH,OAAO,MAAMiB,SAASxB,EAAEI,MAAM,GAAGE,IAAI,CAAC;IAAEC,OAAO;AAAO,GAAG","file":"config.js"}
|
package/dist/define.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot
|
|
1
|
+
export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot").PieceActionDefinition<TInput, TOutput, {
|
|
2
2
|
channelMode: "agent-sessions" | "comments";
|
|
3
3
|
webhookSecret?: string | undefined;
|
|
4
4
|
botUsername?: string | undefined;
|
|
5
5
|
}, import("@linear/sdk").LinearClient, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
6
6
|
slug: TSlug;
|
|
7
|
-
} : never) => import("frogbot
|
|
7
|
+
} : never) => import("frogbot").PieceActionDefinition<TInput, TOutput, {
|
|
8
8
|
channelMode: "agent-sessions" | "comments";
|
|
9
9
|
webhookSecret?: string | undefined;
|
|
10
10
|
botUsername?: string | undefined;
|
|
11
11
|
}, import("@linear/sdk").LinearClient, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
12
12
|
slug: TSlug;
|
|
13
|
-
}, defineWebhookTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TState extends import("frogbot
|
|
13
|
+
}, defineWebhookTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TState extends import("frogbot").PieceResult = import("frogbot").PieceJSON>(trigger: {
|
|
14
14
|
slug: string;
|
|
15
15
|
label?: string;
|
|
16
16
|
description: string;
|
|
17
17
|
input: TInput;
|
|
18
18
|
output?: TOutput | undefined;
|
|
19
|
-
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot
|
|
19
|
+
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
type: "webhook";
|
|
22
|
-
onEnable(args: import("frogbot
|
|
22
|
+
onEnable(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
23
23
|
channelMode: "agent-sessions" | "comments";
|
|
24
24
|
webhookSecret?: string | undefined;
|
|
25
25
|
botUsername?: string | undefined;
|
|
26
26
|
}, import("@linear/sdk").LinearClient> & {
|
|
27
27
|
webhookUrl: string;
|
|
28
28
|
}): Promise<TState>;
|
|
29
|
-
onDisable(args: import("frogbot
|
|
29
|
+
onDisable(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
30
30
|
channelMode: "agent-sessions" | "comments";
|
|
31
31
|
webhookSecret?: string | undefined;
|
|
32
32
|
botUsername?: string | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
35
35
|
}): Promise<void>;
|
|
36
36
|
renew?: {
|
|
37
37
|
schedule: string;
|
|
38
|
-
run(args: import("frogbot
|
|
38
|
+
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
39
39
|
channelMode: "agent-sessions" | "comments";
|
|
40
40
|
webhookSecret?: string | undefined;
|
|
41
41
|
botUsername?: string | undefined;
|
|
@@ -44,13 +44,13 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
44
44
|
webhookUrl: string;
|
|
45
45
|
}): Promise<TState>;
|
|
46
46
|
} | undefined;
|
|
47
|
-
run(args: import("frogbot
|
|
47
|
+
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
48
48
|
channelMode: "agent-sessions" | "comments";
|
|
49
49
|
webhookSecret?: string | undefined;
|
|
50
50
|
botUsername?: string | undefined;
|
|
51
51
|
}, import("@linear/sdk").LinearClient> & {
|
|
52
52
|
state: TState;
|
|
53
|
-
}): Promise<import("frogbot
|
|
53
|
+
}): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
|
|
54
54
|
} & {
|
|
55
55
|
slug: TSlug;
|
|
56
56
|
}) => {
|
|
@@ -59,17 +59,17 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
59
59
|
description: string;
|
|
60
60
|
input: TInput;
|
|
61
61
|
output?: TOutput | undefined;
|
|
62
|
-
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot
|
|
62
|
+
sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON) | undefined;
|
|
63
63
|
} & {
|
|
64
64
|
type: "webhook";
|
|
65
|
-
onEnable(args: import("frogbot
|
|
65
|
+
onEnable(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
66
66
|
channelMode: "agent-sessions" | "comments";
|
|
67
67
|
webhookSecret?: string | undefined;
|
|
68
68
|
botUsername?: string | undefined;
|
|
69
69
|
}, import("@linear/sdk").LinearClient> & {
|
|
70
70
|
webhookUrl: string;
|
|
71
71
|
}): Promise<TState>;
|
|
72
|
-
onDisable(args: import("frogbot
|
|
72
|
+
onDisable(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
73
73
|
channelMode: "agent-sessions" | "comments";
|
|
74
74
|
webhookSecret?: string | undefined;
|
|
75
75
|
botUsername?: string | undefined;
|
|
@@ -78,7 +78,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
78
78
|
}): Promise<void>;
|
|
79
79
|
renew?: {
|
|
80
80
|
schedule: string;
|
|
81
|
-
run(args: import("frogbot
|
|
81
|
+
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
82
82
|
channelMode: "agent-sessions" | "comments";
|
|
83
83
|
webhookSecret?: string | undefined;
|
|
84
84
|
botUsername?: string | undefined;
|
|
@@ -87,13 +87,13 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
87
87
|
webhookUrl: string;
|
|
88
88
|
}): Promise<TState>;
|
|
89
89
|
} | undefined;
|
|
90
|
-
run(args: import("frogbot
|
|
90
|
+
run(args: import("frogbot").PieceRunArgs<import("zod").infer<TInput>, {
|
|
91
91
|
channelMode: "agent-sessions" | "comments";
|
|
92
92
|
webhookSecret?: string | undefined;
|
|
93
93
|
botUsername?: string | undefined;
|
|
94
94
|
}, import("@linear/sdk").LinearClient> & {
|
|
95
95
|
state: TState;
|
|
96
|
-
}): Promise<import("frogbot
|
|
96
|
+
}): Promise<import("frogbot").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot").PieceJSON>[]>;
|
|
97
97
|
} & {
|
|
98
98
|
slug: TSlug;
|
|
99
99
|
};
|
package/dist/define.js
CHANGED
package/dist/define.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","defineWebhookTrigger"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAKpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,oBAAoB,EAAE,GAAGF,qBAA4C","file":"define.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypedUser } from 'frogbot';
|
|
1
2
|
import type { z } from 'zod';
|
|
2
3
|
import { LinearChannelAdapter } from './adapter.js';
|
|
3
4
|
import { createLinearClient } from './client.js';
|
|
@@ -13,21 +14,21 @@ export declare const linearOAuth: {
|
|
|
13
14
|
actor: string;
|
|
14
15
|
};
|
|
15
16
|
toAuth({ tokens }: {
|
|
16
|
-
tokens: import("frogbot
|
|
17
|
+
tokens: import("frogbot").OAuthTokens;
|
|
17
18
|
}): {
|
|
18
19
|
accessToken: string;
|
|
19
20
|
};
|
|
20
21
|
account({ client }: {
|
|
21
|
-
tokens: import("frogbot
|
|
22
|
+
tokens: import("frogbot").OAuthTokens;
|
|
22
23
|
client: import("@linear/sdk").LinearClient;
|
|
23
|
-
req: import("frogbot
|
|
24
|
+
req: import("frogbot").FrogBotRequest;
|
|
24
25
|
}): Promise<{
|
|
25
26
|
id: string;
|
|
26
27
|
label: string;
|
|
27
28
|
email: string;
|
|
28
29
|
}>;
|
|
29
30
|
};
|
|
30
|
-
export declare const createLinear: import("frogbot
|
|
31
|
+
export declare const createLinear: import("frogbot").PieceFactory<{
|
|
31
32
|
readonly slug: "linear";
|
|
32
33
|
readonly label: "Linear";
|
|
33
34
|
readonly admin: {
|
|
@@ -59,14 +60,14 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
59
60
|
actor: string;
|
|
60
61
|
};
|
|
61
62
|
toAuth({ tokens }: {
|
|
62
|
-
tokens: import("frogbot
|
|
63
|
+
tokens: import("frogbot").OAuthTokens;
|
|
63
64
|
}): {
|
|
64
65
|
accessToken: string;
|
|
65
66
|
};
|
|
66
67
|
account({ client }: {
|
|
67
|
-
tokens: import("frogbot
|
|
68
|
+
tokens: import("frogbot").OAuthTokens;
|
|
68
69
|
client: import("@linear/sdk").LinearClient;
|
|
69
|
-
req: import("frogbot
|
|
70
|
+
req: import("frogbot").FrogBotRequest;
|
|
70
71
|
}): Promise<{
|
|
71
72
|
id: string;
|
|
72
73
|
label: string;
|
|
@@ -74,7 +75,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
74
75
|
}>;
|
|
75
76
|
};
|
|
76
77
|
readonly client: typeof createLinearClient;
|
|
77
|
-
readonly webhook: import("frogbot
|
|
78
|
+
readonly webhook: import("frogbot").PieceWebhook<{
|
|
78
79
|
channelMode: "agent-sessions" | "comments";
|
|
79
80
|
webhookSecret?: string | undefined;
|
|
80
81
|
botUsername?: string | undefined;
|
|
@@ -95,14 +96,11 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
95
96
|
identity({ author, client, req }: {
|
|
96
97
|
author: import("chat").Author;
|
|
97
98
|
client: import("@linear/sdk").LinearClient;
|
|
98
|
-
req: import("frogbot
|
|
99
|
-
}): Promise<
|
|
100
|
-
collection: string;
|
|
101
|
-
id: string | number;
|
|
102
|
-
} | null>;
|
|
99
|
+
req: import("frogbot").FrogBotRequest;
|
|
100
|
+
}): Promise<TypedUser | null>;
|
|
103
101
|
questions: import("frogbot/pieces").PieceChannelQuestions<import("@linear/sdk").LinearClient>;
|
|
104
102
|
};
|
|
105
|
-
readonly actions: readonly [import("frogbot
|
|
103
|
+
readonly actions: readonly [import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
106
104
|
teamId: z.ZodString;
|
|
107
105
|
title: z.ZodString;
|
|
108
106
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -124,7 +122,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
124
122
|
lastSyncId?: number | undefined;
|
|
125
123
|
}> & {
|
|
126
124
|
slug: "createIssue";
|
|
127
|
-
}, import("frogbot
|
|
125
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
128
126
|
teamId: z.ZodString;
|
|
129
127
|
issueId: z.ZodString;
|
|
130
128
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -146,7 +144,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
146
144
|
lastSyncId?: number | undefined;
|
|
147
145
|
}> & {
|
|
148
146
|
slug: "updateIssue";
|
|
149
|
-
}, import("frogbot
|
|
147
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
150
148
|
teamId: z.ZodString;
|
|
151
149
|
name: z.ZodString;
|
|
152
150
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -168,7 +166,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
168
166
|
lastSyncId?: number | undefined;
|
|
169
167
|
}> & {
|
|
170
168
|
slug: "createProject";
|
|
171
|
-
}, import("frogbot
|
|
169
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
172
170
|
teamId: z.ZodString;
|
|
173
171
|
projectId: z.ZodString;
|
|
174
172
|
name: z.ZodString;
|
|
@@ -191,7 +189,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
191
189
|
lastSyncId?: number | undefined;
|
|
192
190
|
}> & {
|
|
193
191
|
slug: "updateProject";
|
|
194
|
-
}, import("frogbot
|
|
192
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
195
193
|
teamId: z.ZodString;
|
|
196
194
|
issueId: z.ZodString;
|
|
197
195
|
body: z.ZodString;
|
|
@@ -208,7 +206,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
208
206
|
lastSyncId?: number | undefined;
|
|
209
207
|
}> & {
|
|
210
208
|
slug: "createComment";
|
|
211
|
-
}, import("frogbot
|
|
209
|
+
}, import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
212
210
|
query: z.ZodString;
|
|
213
211
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
212
|
}, z.core.$strip>, z.ZodUnknown, {
|
|
@@ -227,10 +225,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
227
225
|
authorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
226
|
}, z.core.$strip>;
|
|
229
227
|
output?: undefined;
|
|
230
|
-
sample?: import("frogbot
|
|
228
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
231
229
|
} & {
|
|
232
230
|
type: "webhook";
|
|
233
|
-
onEnable(args: import("frogbot
|
|
231
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
234
232
|
teamIds?: string[] | undefined;
|
|
235
233
|
authorIds?: string[] | undefined;
|
|
236
234
|
}, {
|
|
@@ -242,7 +240,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
242
240
|
}): Promise<{
|
|
243
241
|
webhookId: string;
|
|
244
242
|
}>;
|
|
245
|
-
onDisable(args: import("frogbot
|
|
243
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
246
244
|
teamIds?: string[] | undefined;
|
|
247
245
|
authorIds?: string[] | undefined;
|
|
248
246
|
}, {
|
|
@@ -256,7 +254,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
256
254
|
}): Promise<void>;
|
|
257
255
|
renew?: {
|
|
258
256
|
schedule: string;
|
|
259
|
-
run(args: import("frogbot
|
|
257
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
260
258
|
teamIds?: string[] | undefined;
|
|
261
259
|
authorIds?: string[] | undefined;
|
|
262
260
|
}, {
|
|
@@ -272,7 +270,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
272
270
|
webhookId: string;
|
|
273
271
|
}>;
|
|
274
272
|
} | undefined;
|
|
275
|
-
run(args: import("frogbot
|
|
273
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
276
274
|
teamIds?: string[] | undefined;
|
|
277
275
|
authorIds?: string[] | undefined;
|
|
278
276
|
}, {
|
|
@@ -283,7 +281,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
283
281
|
state: {
|
|
284
282
|
webhookId: string;
|
|
285
283
|
};
|
|
286
|
-
}): Promise<import("frogbot
|
|
284
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
287
285
|
} & {
|
|
288
286
|
slug: "commentCreated";
|
|
289
287
|
}, {
|
|
@@ -294,10 +292,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
294
292
|
teamId: z.ZodString;
|
|
295
293
|
}, z.core.$strip>;
|
|
296
294
|
output?: undefined;
|
|
297
|
-
sample?: import("frogbot
|
|
295
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
298
296
|
} & {
|
|
299
297
|
type: "webhook";
|
|
300
|
-
onEnable(args: import("frogbot
|
|
298
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
301
299
|
teamId: string;
|
|
302
300
|
}, {
|
|
303
301
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -308,7 +306,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
308
306
|
}): Promise<{
|
|
309
307
|
webhookId: string;
|
|
310
308
|
}>;
|
|
311
|
-
onDisable(args: import("frogbot
|
|
309
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
312
310
|
teamId: string;
|
|
313
311
|
}, {
|
|
314
312
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -321,7 +319,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
321
319
|
}): Promise<void>;
|
|
322
320
|
renew?: {
|
|
323
321
|
schedule: string;
|
|
324
|
-
run(args: import("frogbot
|
|
322
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
325
323
|
teamId: string;
|
|
326
324
|
}, {
|
|
327
325
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -336,7 +334,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
336
334
|
webhookId: string;
|
|
337
335
|
}>;
|
|
338
336
|
} | undefined;
|
|
339
|
-
run(args: import("frogbot
|
|
337
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
340
338
|
teamId: string;
|
|
341
339
|
}, {
|
|
342
340
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -346,7 +344,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
346
344
|
state: {
|
|
347
345
|
webhookId: string;
|
|
348
346
|
};
|
|
349
|
-
}): Promise<import("frogbot
|
|
347
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
350
348
|
} & {
|
|
351
349
|
slug: "issueCreated";
|
|
352
350
|
}, {
|
|
@@ -357,10 +355,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
357
355
|
teamId: z.ZodOptional<z.ZodString>;
|
|
358
356
|
}, z.core.$strip>;
|
|
359
357
|
output?: undefined;
|
|
360
|
-
sample?: import("frogbot
|
|
358
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
361
359
|
} & {
|
|
362
360
|
type: "webhook";
|
|
363
|
-
onEnable(args: import("frogbot
|
|
361
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
364
362
|
teamId?: string | undefined;
|
|
365
363
|
}, {
|
|
366
364
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -371,7 +369,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
371
369
|
}): Promise<{
|
|
372
370
|
webhookId: string;
|
|
373
371
|
}>;
|
|
374
|
-
onDisable(args: import("frogbot
|
|
372
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
375
373
|
teamId?: string | undefined;
|
|
376
374
|
}, {
|
|
377
375
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -384,7 +382,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
384
382
|
}): Promise<void>;
|
|
385
383
|
renew?: {
|
|
386
384
|
schedule: string;
|
|
387
|
-
run(args: import("frogbot
|
|
385
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
388
386
|
teamId?: string | undefined;
|
|
389
387
|
}, {
|
|
390
388
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -399,7 +397,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
399
397
|
webhookId: string;
|
|
400
398
|
}>;
|
|
401
399
|
} | undefined;
|
|
402
|
-
run(args: import("frogbot
|
|
400
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
403
401
|
teamId?: string | undefined;
|
|
404
402
|
}, {
|
|
405
403
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -409,7 +407,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
409
407
|
state: {
|
|
410
408
|
webhookId: string;
|
|
411
409
|
};
|
|
412
|
-
}): Promise<import("frogbot
|
|
410
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
413
411
|
} & {
|
|
414
412
|
slug: "issueUpdated";
|
|
415
413
|
}, {
|
|
@@ -420,10 +418,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
420
418
|
teamId: z.ZodString;
|
|
421
419
|
}, z.core.$strip>;
|
|
422
420
|
output?: undefined;
|
|
423
|
-
sample?: import("frogbot
|
|
421
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
424
422
|
} & {
|
|
425
423
|
type: "webhook";
|
|
426
|
-
onEnable(args: import("frogbot
|
|
424
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
427
425
|
teamId: string;
|
|
428
426
|
}, {
|
|
429
427
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -434,7 +432,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
434
432
|
}): Promise<{
|
|
435
433
|
webhookId: string;
|
|
436
434
|
}>;
|
|
437
|
-
onDisable(args: import("frogbot
|
|
435
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
438
436
|
teamId: string;
|
|
439
437
|
}, {
|
|
440
438
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -447,7 +445,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
447
445
|
}): Promise<void>;
|
|
448
446
|
renew?: {
|
|
449
447
|
schedule: string;
|
|
450
|
-
run(args: import("frogbot
|
|
448
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
451
449
|
teamId: string;
|
|
452
450
|
}, {
|
|
453
451
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -462,7 +460,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
462
460
|
webhookId: string;
|
|
463
461
|
}>;
|
|
464
462
|
} | undefined;
|
|
465
|
-
run(args: import("frogbot
|
|
463
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
466
464
|
teamId: string;
|
|
467
465
|
}, {
|
|
468
466
|
channelMode: "agent-sessions" | "comments";
|
|
@@ -472,7 +470,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
472
470
|
state: {
|
|
473
471
|
webhookId: string;
|
|
474
472
|
};
|
|
475
|
-
}): Promise<import("frogbot
|
|
473
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
476
474
|
} & {
|
|
477
475
|
slug: "issueRemoved";
|
|
478
476
|
}, {
|
|
@@ -481,10 +479,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
481
479
|
description: string;
|
|
482
480
|
input: z.ZodObject<{}, z.core.$strip>;
|
|
483
481
|
output?: undefined;
|
|
484
|
-
sample?: import("frogbot
|
|
482
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
485
483
|
} & {
|
|
486
484
|
type: "webhook";
|
|
487
|
-
onEnable(args: import("frogbot
|
|
485
|
+
onEnable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
488
486
|
channelMode: "agent-sessions" | "comments";
|
|
489
487
|
webhookSecret?: string | undefined;
|
|
490
488
|
botUsername?: string | undefined;
|
|
@@ -493,7 +491,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
493
491
|
}): Promise<{
|
|
494
492
|
webhookId: string;
|
|
495
493
|
}>;
|
|
496
|
-
onDisable(args: import("frogbot
|
|
494
|
+
onDisable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
497
495
|
channelMode: "agent-sessions" | "comments";
|
|
498
496
|
webhookSecret?: string | undefined;
|
|
499
497
|
botUsername?: string | undefined;
|
|
@@ -504,7 +502,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
504
502
|
}): Promise<void>;
|
|
505
503
|
renew?: {
|
|
506
504
|
schedule: string;
|
|
507
|
-
run(args: import("frogbot
|
|
505
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
508
506
|
channelMode: "agent-sessions" | "comments";
|
|
509
507
|
webhookSecret?: string | undefined;
|
|
510
508
|
botUsername?: string | undefined;
|
|
@@ -517,7 +515,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
517
515
|
webhookId: string;
|
|
518
516
|
}>;
|
|
519
517
|
} | undefined;
|
|
520
|
-
run(args: import("frogbot
|
|
518
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
521
519
|
channelMode: "agent-sessions" | "comments";
|
|
522
520
|
webhookSecret?: string | undefined;
|
|
523
521
|
botUsername?: string | undefined;
|
|
@@ -525,7 +523,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
525
523
|
state: {
|
|
526
524
|
webhookId: string;
|
|
527
525
|
};
|
|
528
|
-
}): Promise<import("frogbot
|
|
526
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
529
527
|
} & {
|
|
530
528
|
slug: "projectCreated";
|
|
531
529
|
}, {
|
|
@@ -537,10 +535,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
537
535
|
projectStatus: z.ZodOptional<z.ZodString>;
|
|
538
536
|
}, z.core.$strip>;
|
|
539
537
|
output?: undefined;
|
|
540
|
-
sample?: import("frogbot
|
|
538
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
541
539
|
} & {
|
|
542
540
|
type: "webhook";
|
|
543
|
-
onEnable(args: import("frogbot
|
|
541
|
+
onEnable(args: import("frogbot").PieceRunArgs<{
|
|
544
542
|
teamIds?: string[] | undefined;
|
|
545
543
|
projectStatus?: string | undefined;
|
|
546
544
|
}, {
|
|
@@ -552,7 +550,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
552
550
|
}): Promise<{
|
|
553
551
|
webhookId: string;
|
|
554
552
|
}>;
|
|
555
|
-
onDisable(args: import("frogbot
|
|
553
|
+
onDisable(args: import("frogbot").PieceRunArgs<{
|
|
556
554
|
teamIds?: string[] | undefined;
|
|
557
555
|
projectStatus?: string | undefined;
|
|
558
556
|
}, {
|
|
@@ -566,7 +564,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
566
564
|
}): Promise<void>;
|
|
567
565
|
renew?: {
|
|
568
566
|
schedule: string;
|
|
569
|
-
run(args: import("frogbot
|
|
567
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
570
568
|
teamIds?: string[] | undefined;
|
|
571
569
|
projectStatus?: string | undefined;
|
|
572
570
|
}, {
|
|
@@ -582,7 +580,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
582
580
|
webhookId: string;
|
|
583
581
|
}>;
|
|
584
582
|
} | undefined;
|
|
585
|
-
run(args: import("frogbot
|
|
583
|
+
run(args: import("frogbot").PieceRunArgs<{
|
|
586
584
|
teamIds?: string[] | undefined;
|
|
587
585
|
projectStatus?: string | undefined;
|
|
588
586
|
}, {
|
|
@@ -593,7 +591,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
593
591
|
state: {
|
|
594
592
|
webhookId: string;
|
|
595
593
|
};
|
|
596
|
-
}): Promise<import("frogbot
|
|
594
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
597
595
|
} & {
|
|
598
596
|
slug: "projectUpdated";
|
|
599
597
|
}, {
|
|
@@ -602,10 +600,10 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
602
600
|
description: string;
|
|
603
601
|
input: z.ZodObject<{}, z.core.$strip>;
|
|
604
602
|
output?: undefined;
|
|
605
|
-
sample?: import("frogbot
|
|
603
|
+
sample?: import("frogbot").PieceJSON | undefined;
|
|
606
604
|
} & {
|
|
607
605
|
type: "webhook";
|
|
608
|
-
onEnable(args: import("frogbot
|
|
606
|
+
onEnable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
609
607
|
channelMode: "agent-sessions" | "comments";
|
|
610
608
|
webhookSecret?: string | undefined;
|
|
611
609
|
botUsername?: string | undefined;
|
|
@@ -614,7 +612,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
614
612
|
}): Promise<{
|
|
615
613
|
webhookId: string;
|
|
616
614
|
}>;
|
|
617
|
-
onDisable(args: import("frogbot
|
|
615
|
+
onDisable(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
618
616
|
channelMode: "agent-sessions" | "comments";
|
|
619
617
|
webhookSecret?: string | undefined;
|
|
620
618
|
botUsername?: string | undefined;
|
|
@@ -625,7 +623,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
625
623
|
}): Promise<void>;
|
|
626
624
|
renew?: {
|
|
627
625
|
schedule: string;
|
|
628
|
-
run(args: import("frogbot
|
|
626
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
629
627
|
channelMode: "agent-sessions" | "comments";
|
|
630
628
|
webhookSecret?: string | undefined;
|
|
631
629
|
botUsername?: string | undefined;
|
|
@@ -638,7 +636,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
638
636
|
webhookId: string;
|
|
639
637
|
}>;
|
|
640
638
|
} | undefined;
|
|
641
|
-
run(args: import("frogbot
|
|
639
|
+
run(args: import("frogbot").PieceRunArgs<Record<string, never>, {
|
|
642
640
|
channelMode: "agent-sessions" | "comments";
|
|
643
641
|
webhookSecret?: string | undefined;
|
|
644
642
|
botUsername?: string | undefined;
|
|
@@ -646,7 +644,7 @@ export declare const createLinear: import("frogbot/pieces").PieceFactory<{
|
|
|
646
644
|
state: {
|
|
647
645
|
webhookId: string;
|
|
648
646
|
};
|
|
649
|
-
}): Promise<import("frogbot
|
|
647
|
+
}): Promise<import("frogbot").TriggerEvent<import("frogbot").PieceJSON>[]>;
|
|
650
648
|
} & {
|
|
651
649
|
slug: "projectRemoved";
|
|
652
650
|
}];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAOzC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQ7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,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;AA0BlE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAXkB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkClE,CAAC"}
|