@frogbotai/piece-linear 0.27.0 → 0.29.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 +14 -42
- package/dist/actions/createComment.d.ts.map +1 -1
- package/dist/actions/createComment.js +3 -2
- package/dist/actions/createComment.js.map +1 -1
- package/dist/actions/createIssue.d.ts +14 -68
- package/dist/actions/createIssue.d.ts.map +1 -1
- package/dist/actions/createIssue.js +3 -2
- package/dist/actions/createIssue.js.map +1 -1
- package/dist/actions/createProject.d.ts +14 -38
- package/dist/actions/createProject.d.ts.map +1 -1
- package/dist/actions/createProject.js +3 -2
- package/dist/actions/createProject.js.map +1 -1
- package/dist/actions/rawGraphqlQuery.d.ts +7 -15
- package/dist/actions/rawGraphqlQuery.d.ts.map +1 -1
- package/dist/actions/rawGraphqlQuery.js +3 -2
- package/dist/actions/rawGraphqlQuery.js.map +1 -1
- package/dist/actions/updateIssue.d.ts +14 -77
- package/dist/actions/updateIssue.d.ts.map +1 -1
- package/dist/actions/updateIssue.js +3 -2
- package/dist/actions/updateIssue.js.map +1 -1
- package/dist/actions/updateProject.d.ts +14 -45
- package/dist/actions/updateProject.d.ts.map +1 -1
- package/dist/actions/updateProject.js +3 -2
- package/dist/actions/updateProject.js.map +1 -1
- package/dist/define.d.ts +100 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +513 -320
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers/commentCreated.d.ts +69 -10
- package/dist/triggers/commentCreated.d.ts.map +1 -1
- package/dist/triggers/issueCreated.d.ts +64 -9
- package/dist/triggers/issueCreated.d.ts.map +1 -1
- package/dist/triggers/issueRemoved.d.ts +64 -9
- package/dist/triggers/issueRemoved.d.ts.map +1 -1
- package/dist/triggers/issueUpdated.d.ts +64 -9
- package/dist/triggers/issueUpdated.d.ts.map +1 -1
- package/dist/triggers/projectCreated.d.ts +54 -7
- package/dist/triggers/projectCreated.d.ts.map +1 -1
- package/dist/triggers/projectRemoved.d.ts +54 -7
- package/dist/triggers/projectRemoved.d.ts.map +1 -1
- package/dist/triggers/projectUpdated.d.ts +69 -10
- package/dist/triggers/projectUpdated.d.ts.map +1 -1
- package/dist/triggers/webhook.d.ts +56 -8
- package/dist/triggers/webhook.d.ts.map +1 -1
- package/dist/triggers/webhook.js +3 -2
- package/dist/triggers/webhook.js.map +1 -1
- package/package.json +3 -3
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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/pieces").PieceActionDefinition<TInput, TOutput, {
|
|
2
|
+
channelMode: "agent-sessions" | "comments";
|
|
3
|
+
webhookSecret?: string | undefined;
|
|
4
|
+
botUsername?: string | undefined;
|
|
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
|
+
slug: TSlug;
|
|
7
|
+
} : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, {
|
|
8
|
+
channelMode: "agent-sessions" | "comments";
|
|
9
|
+
webhookSecret?: string | undefined;
|
|
10
|
+
botUsername?: string | undefined;
|
|
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
|
+
slug: TSlug;
|
|
13
|
+
}, defineWebhookTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TState extends import("frogbot/pieces").PieceResult = import("frogbot/pieces").PieceJSON>(trigger: {
|
|
14
|
+
slug: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
description: string;
|
|
17
|
+
input: TInput;
|
|
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/pieces").PieceJSON) | undefined;
|
|
20
|
+
} & {
|
|
21
|
+
type: "webhook";
|
|
22
|
+
onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
23
|
+
channelMode: "agent-sessions" | "comments";
|
|
24
|
+
webhookSecret?: string | undefined;
|
|
25
|
+
botUsername?: string | undefined;
|
|
26
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
27
|
+
webhookUrl: string;
|
|
28
|
+
}): Promise<TState>;
|
|
29
|
+
onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
30
|
+
channelMode: "agent-sessions" | "comments";
|
|
31
|
+
webhookSecret?: string | undefined;
|
|
32
|
+
botUsername?: string | undefined;
|
|
33
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
34
|
+
state: TState;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
renew?: {
|
|
37
|
+
schedule: string;
|
|
38
|
+
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
39
|
+
channelMode: "agent-sessions" | "comments";
|
|
40
|
+
webhookSecret?: string | undefined;
|
|
41
|
+
botUsername?: string | undefined;
|
|
42
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
43
|
+
state: TState;
|
|
44
|
+
webhookUrl: string;
|
|
45
|
+
}): Promise<TState>;
|
|
46
|
+
} | undefined;
|
|
47
|
+
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
48
|
+
channelMode: "agent-sessions" | "comments";
|
|
49
|
+
webhookSecret?: string | undefined;
|
|
50
|
+
botUsername?: string | undefined;
|
|
51
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
52
|
+
state: TState;
|
|
53
|
+
}): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
|
|
54
|
+
} & {
|
|
55
|
+
slug: TSlug;
|
|
56
|
+
}) => {
|
|
57
|
+
slug: string;
|
|
58
|
+
label?: string;
|
|
59
|
+
description: string;
|
|
60
|
+
input: TInput;
|
|
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/pieces").PieceJSON) | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
type: "webhook";
|
|
65
|
+
onEnable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
66
|
+
channelMode: "agent-sessions" | "comments";
|
|
67
|
+
webhookSecret?: string | undefined;
|
|
68
|
+
botUsername?: string | undefined;
|
|
69
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
70
|
+
webhookUrl: string;
|
|
71
|
+
}): Promise<TState>;
|
|
72
|
+
onDisable(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
73
|
+
channelMode: "agent-sessions" | "comments";
|
|
74
|
+
webhookSecret?: string | undefined;
|
|
75
|
+
botUsername?: string | undefined;
|
|
76
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
77
|
+
state: TState;
|
|
78
|
+
}): Promise<void>;
|
|
79
|
+
renew?: {
|
|
80
|
+
schedule: string;
|
|
81
|
+
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
82
|
+
channelMode: "agent-sessions" | "comments";
|
|
83
|
+
webhookSecret?: string | undefined;
|
|
84
|
+
botUsername?: string | undefined;
|
|
85
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
86
|
+
state: TState;
|
|
87
|
+
webhookUrl: string;
|
|
88
|
+
}): Promise<TState>;
|
|
89
|
+
} | undefined;
|
|
90
|
+
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, {
|
|
91
|
+
channelMode: "agent-sessions" | "comments";
|
|
92
|
+
webhookSecret?: string | undefined;
|
|
93
|
+
botUsername?: string | undefined;
|
|
94
|
+
}, import("@linear/sdk").LinearClient> & {
|
|
95
|
+
state: TState;
|
|
96
|
+
}): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
|
|
97
|
+
} & {
|
|
98
|
+
slug: TSlug;
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,YAAY;;;;;;;;;;;;GAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAC"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKpD,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,kBAAkB,EAAyB,CAAC"}
|