@wfgraph/plugins 3.1.0 → 4.0.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/README.md +23 -6
- package/dist/client-B0M2Cle4.js +115 -0
- package/dist/{client-BEcFnbOB.js → client-B0dhD5OA.js} +1 -2
- package/dist/{client-DDDCNLId.js → client-BQmwEhSH.js} +1 -2
- package/dist/{client-LRwmIiPU.js → client-C32OdgmT.js} +5 -6
- package/dist/client-D3ALurAR.js +167 -0
- package/dist/config-options-BgSb_XqZ.js +101 -0
- package/dist/{errors-C4i6-DQE.js → errors-DQPf9k4I.js} +31 -24
- package/dist/index.d.ts +185 -53
- package/dist/index.js +1887 -447
- package/dist/omit-undefined-CnDMZgmp.js +6 -0
- package/dist/{test-B8I6nxMN.js → test-B5WBOt4r.js} +7 -6
- package/dist/{test-DN4ZApY4.js → test-Beetxizr.js} +2 -3
- package/dist/test-CTNffdZM.js +50 -0
- package/dist/{test-DWVpiQNl.js → test-CTWGAckT.js} +2 -3
- package/dist/{test-Dsrib2EJ.js → test-CiIt-3_x.js} +2 -3
- package/dist/{test-8wDSAiFQ.js → test-x2qD6zdE.js} +2 -3
- package/dist/ui.d.ts +11 -19
- package/dist/ui.js +119 -73
- package/package.json +15 -11
- package/skills/wfgraph-plugins/SKILL.md +106 -0
- package/dist/client-C2NIQxhb.js +0 -64
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "@wfgraph/core/plugin";
|
|
2
2
|
import { LinearClient } from "@linear/sdk";
|
|
3
|
-
|
|
4
|
-
declare const clerk: import("@wfgraph/core/plugin").Integration<{
|
|
3
|
+
export declare const clerk: import("@wfgraph/core/plugin").Integration<{
|
|
5
4
|
"get-user": {
|
|
6
5
|
readonly userId: string;
|
|
7
6
|
};
|
|
@@ -52,9 +51,7 @@ declare const clerk: import("@wfgraph/core/plugin").Integration<{
|
|
|
52
51
|
readonly deleted: boolean;
|
|
53
52
|
};
|
|
54
53
|
}>;
|
|
55
|
-
|
|
56
|
-
//#region src/linear/index.d.ts
|
|
57
|
-
declare const linear: import("@wfgraph/core/plugin").Integration<{
|
|
54
|
+
export declare const linear: import("@wfgraph/core/plugin").Integration<{
|
|
58
55
|
"create-ticket": {
|
|
59
56
|
readonly ticketTitle: string;
|
|
60
57
|
readonly ticketDescription?: string | undefined;
|
|
@@ -83,16 +80,46 @@ declare const linear: import("@wfgraph/core/plugin").Integration<{
|
|
|
83
80
|
readonly count: number;
|
|
84
81
|
};
|
|
85
82
|
}>;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
export declare const posthog: import("@wfgraph/core/plugin").Integration<{
|
|
84
|
+
"capture-event": {
|
|
85
|
+
readonly eventName: string;
|
|
86
|
+
readonly distinctId: string;
|
|
87
|
+
readonly properties?: string | undefined;
|
|
88
|
+
readonly propertiesJson?: string | undefined;
|
|
89
|
+
readonly timestamp?: string | undefined;
|
|
90
|
+
readonly personProfile?: string | undefined;
|
|
91
|
+
readonly testBehavior?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
"identify-person": {
|
|
94
|
+
readonly distinctId: string;
|
|
95
|
+
readonly setProperties?: string | undefined;
|
|
96
|
+
readonly setPropertiesJson?: string | undefined;
|
|
97
|
+
readonly setOnceProperties?: string | undefined;
|
|
98
|
+
readonly testBehavior?: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
"capture-event": {
|
|
102
|
+
readonly eventName: string;
|
|
103
|
+
readonly distinctId: string;
|
|
104
|
+
readonly eventUuid: string;
|
|
105
|
+
readonly timestamp: string;
|
|
106
|
+
readonly reasonCode?: string | null | undefined;
|
|
107
|
+
};
|
|
108
|
+
"identify-person": {
|
|
109
|
+
readonly distinctId: string;
|
|
110
|
+
readonly eventUuid: string;
|
|
111
|
+
readonly timestamp: string;
|
|
112
|
+
readonly reasonCode?: string | null | undefined;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
export declare const resend: import("@wfgraph/core/plugin").Integration<{
|
|
89
116
|
"send-email": {
|
|
90
117
|
readonly emailTo: string;
|
|
91
118
|
readonly emailSubject: string;
|
|
92
119
|
readonly emailFrom?: string | undefined;
|
|
93
120
|
readonly emailBody?: string | undefined;
|
|
94
121
|
readonly emailHtml?: string | undefined;
|
|
95
|
-
readonly emailContentMode?:
|
|
122
|
+
readonly emailContentMode?: "html" | "template" | "text" | undefined;
|
|
96
123
|
readonly emailTemplateId?: string | undefined;
|
|
97
124
|
readonly emailTemplateVariables?: string | undefined;
|
|
98
125
|
readonly emailCc?: string | undefined;
|
|
@@ -101,33 +128,71 @@ declare const resend: import("@wfgraph/core/plugin").Integration<{
|
|
|
101
128
|
readonly emailScheduledAt?: string | undefined;
|
|
102
129
|
readonly emailTopicId?: string | undefined;
|
|
103
130
|
readonly emailTags?: string | undefined;
|
|
104
|
-
readonly testBehavior?:
|
|
131
|
+
readonly testBehavior?: "log_only" | "send_to_test_email" | undefined;
|
|
105
132
|
readonly testEmailTo?: string | undefined;
|
|
106
133
|
};
|
|
134
|
+
"find-email": {
|
|
135
|
+
readonly emailId: string;
|
|
136
|
+
};
|
|
107
137
|
}, {
|
|
108
138
|
"send-email": {
|
|
109
139
|
readonly id: string;
|
|
110
140
|
readonly reasonCode?: string | null | undefined;
|
|
141
|
+
readonly tags?: {
|
|
142
|
+
readonly [x: string]: string;
|
|
143
|
+
} | undefined;
|
|
144
|
+
};
|
|
145
|
+
"find-email": {
|
|
146
|
+
readonly id: string;
|
|
147
|
+
readonly messageId: string;
|
|
148
|
+
readonly from: string;
|
|
149
|
+
readonly to: readonly string[];
|
|
150
|
+
readonly cc: readonly string[] | null;
|
|
151
|
+
readonly bcc: readonly string[] | null;
|
|
152
|
+
readonly replyTo: readonly string[] | null;
|
|
153
|
+
readonly subject: string;
|
|
154
|
+
readonly html: string | null;
|
|
155
|
+
readonly text: string | null;
|
|
156
|
+
readonly createdAt: string;
|
|
157
|
+
readonly lastEvent: string;
|
|
158
|
+
readonly scheduledAt: string | null;
|
|
159
|
+
readonly tags?: {
|
|
160
|
+
readonly [x: string]: string;
|
|
161
|
+
} | undefined;
|
|
111
162
|
};
|
|
112
163
|
}>;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
164
|
+
type SlackOptions = {
|
|
165
|
+
oauthClient?: {
|
|
166
|
+
clientId: string | undefined;
|
|
167
|
+
clientSecret: string | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
};
|
|
170
|
+
export declare const slack: (options?: SlackOptions) => import("@wfgraph/core/plugin").Integration<{
|
|
116
171
|
"send-message": {
|
|
117
172
|
readonly slackChannel: string;
|
|
118
173
|
readonly slackMessage: string;
|
|
119
174
|
readonly testBehavior?: string | undefined;
|
|
120
175
|
};
|
|
176
|
+
"reply-to-thread": {
|
|
177
|
+
readonly slackChannel: string;
|
|
178
|
+
readonly slackThreadTs: string;
|
|
179
|
+
readonly slackMessage: string;
|
|
180
|
+
readonly testBehavior?: string | undefined;
|
|
181
|
+
};
|
|
121
182
|
}, {
|
|
122
183
|
"send-message": {
|
|
123
184
|
readonly ts: string;
|
|
124
185
|
readonly channel: string;
|
|
125
186
|
readonly reasonCode?: string | null | undefined;
|
|
126
187
|
};
|
|
188
|
+
"reply-to-thread": {
|
|
189
|
+
readonly ts: string;
|
|
190
|
+
readonly channel: string;
|
|
191
|
+
readonly threadTs: string;
|
|
192
|
+
readonly reasonCode?: string | null | undefined;
|
|
193
|
+
};
|
|
127
194
|
}>;
|
|
128
|
-
|
|
129
|
-
//#region src/twilio/index.d.ts
|
|
130
|
-
declare const twilio: import("@wfgraph/core/plugin").Integration<{
|
|
195
|
+
export declare const twilio: import("@wfgraph/core/plugin").Integration<{
|
|
131
196
|
"send-sms": {
|
|
132
197
|
readonly smsTo: string;
|
|
133
198
|
readonly smsBody: string;
|
|
@@ -148,19 +213,36 @@ declare const twilio: import("@wfgraph/core/plugin").Integration<{
|
|
|
148
213
|
readonly reasonCode?: string | null | undefined;
|
|
149
214
|
};
|
|
150
215
|
}>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
216
|
+
export type BuiltInIntegrationsOptions = {
|
|
217
|
+
slack?: SlackOptions | undefined;
|
|
218
|
+
};
|
|
219
|
+
export declare const builtInIntegrations: (options?: BuiltInIntegrationsOptions) => (import("@wfgraph/core/plugin").Integration<{
|
|
220
|
+
"create-ticket": {
|
|
221
|
+
readonly ticketTitle: string;
|
|
222
|
+
readonly ticketDescription?: string | undefined;
|
|
223
|
+
};
|
|
224
|
+
"find-issues": {
|
|
225
|
+
readonly linearAssigneeId?: string | undefined;
|
|
226
|
+
readonly linearTeamId?: string | undefined;
|
|
227
|
+
readonly linearStatus?: "any" | "backlog" | "canceled" | "done" | "in_progress" | "todo" | undefined;
|
|
228
|
+
readonly linearLabel?: string | undefined;
|
|
158
229
|
};
|
|
159
230
|
}, {
|
|
160
|
-
"
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
231
|
+
"create-ticket": {
|
|
232
|
+
readonly id: string;
|
|
233
|
+
readonly url: string;
|
|
234
|
+
readonly title: string;
|
|
235
|
+
};
|
|
236
|
+
"find-issues": {
|
|
237
|
+
readonly issues: readonly {
|
|
238
|
+
readonly id: string;
|
|
239
|
+
readonly title: string;
|
|
240
|
+
readonly url: string;
|
|
241
|
+
readonly state: string;
|
|
242
|
+
readonly priority: number;
|
|
243
|
+
readonly assigneeId?: string | null | undefined;
|
|
244
|
+
}[];
|
|
245
|
+
readonly count: number;
|
|
164
246
|
};
|
|
165
247
|
}> | import("@wfgraph/core/plugin").Integration<{
|
|
166
248
|
"get-user": {
|
|
@@ -213,32 +295,35 @@ declare const builtInIntegrations: (import("@wfgraph/core/plugin").Integration<{
|
|
|
213
295
|
readonly deleted: boolean;
|
|
214
296
|
};
|
|
215
297
|
}> | import("@wfgraph/core/plugin").Integration<{
|
|
216
|
-
"
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
298
|
+
"capture-event": {
|
|
299
|
+
readonly eventName: string;
|
|
300
|
+
readonly distinctId: string;
|
|
301
|
+
readonly properties?: string | undefined;
|
|
302
|
+
readonly propertiesJson?: string | undefined;
|
|
303
|
+
readonly timestamp?: string | undefined;
|
|
304
|
+
readonly personProfile?: string | undefined;
|
|
305
|
+
readonly testBehavior?: string | undefined;
|
|
219
306
|
};
|
|
220
|
-
"
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
307
|
+
"identify-person": {
|
|
308
|
+
readonly distinctId: string;
|
|
309
|
+
readonly setProperties?: string | undefined;
|
|
310
|
+
readonly setPropertiesJson?: string | undefined;
|
|
311
|
+
readonly setOnceProperties?: string | undefined;
|
|
312
|
+
readonly testBehavior?: string | undefined;
|
|
225
313
|
};
|
|
226
314
|
}, {
|
|
227
|
-
"
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
315
|
+
"capture-event": {
|
|
316
|
+
readonly eventName: string;
|
|
317
|
+
readonly distinctId: string;
|
|
318
|
+
readonly eventUuid: string;
|
|
319
|
+
readonly timestamp: string;
|
|
320
|
+
readonly reasonCode?: string | null | undefined;
|
|
231
321
|
};
|
|
232
|
-
"
|
|
233
|
-
readonly
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
readonly state: string;
|
|
238
|
-
readonly priority: number;
|
|
239
|
-
readonly assigneeId?: string | null | undefined;
|
|
240
|
-
}[];
|
|
241
|
-
readonly count: number;
|
|
322
|
+
"identify-person": {
|
|
323
|
+
readonly distinctId: string;
|
|
324
|
+
readonly eventUuid: string;
|
|
325
|
+
readonly timestamp: string;
|
|
326
|
+
readonly reasonCode?: string | null | undefined;
|
|
242
327
|
};
|
|
243
328
|
}> | import("@wfgraph/core/plugin").Integration<{
|
|
244
329
|
"send-email": {
|
|
@@ -247,7 +332,7 @@ declare const builtInIntegrations: (import("@wfgraph/core/plugin").Integration<{
|
|
|
247
332
|
readonly emailFrom?: string | undefined;
|
|
248
333
|
readonly emailBody?: string | undefined;
|
|
249
334
|
readonly emailHtml?: string | undefined;
|
|
250
|
-
readonly emailContentMode?:
|
|
335
|
+
readonly emailContentMode?: "html" | "template" | "text" | undefined;
|
|
251
336
|
readonly emailTemplateId?: string | undefined;
|
|
252
337
|
readonly emailTemplateVariables?: string | undefined;
|
|
253
338
|
readonly emailCc?: string | undefined;
|
|
@@ -256,13 +341,61 @@ declare const builtInIntegrations: (import("@wfgraph/core/plugin").Integration<{
|
|
|
256
341
|
readonly emailScheduledAt?: string | undefined;
|
|
257
342
|
readonly emailTopicId?: string | undefined;
|
|
258
343
|
readonly emailTags?: string | undefined;
|
|
259
|
-
readonly testBehavior?:
|
|
344
|
+
readonly testBehavior?: "log_only" | "send_to_test_email" | undefined;
|
|
260
345
|
readonly testEmailTo?: string | undefined;
|
|
261
346
|
};
|
|
347
|
+
"find-email": {
|
|
348
|
+
readonly emailId: string;
|
|
349
|
+
};
|
|
262
350
|
}, {
|
|
263
351
|
"send-email": {
|
|
264
352
|
readonly id: string;
|
|
265
353
|
readonly reasonCode?: string | null | undefined;
|
|
354
|
+
readonly tags?: {
|
|
355
|
+
readonly [x: string]: string;
|
|
356
|
+
} | undefined;
|
|
357
|
+
};
|
|
358
|
+
"find-email": {
|
|
359
|
+
readonly id: string;
|
|
360
|
+
readonly messageId: string;
|
|
361
|
+
readonly from: string;
|
|
362
|
+
readonly to: readonly string[];
|
|
363
|
+
readonly cc: readonly string[] | null;
|
|
364
|
+
readonly bcc: readonly string[] | null;
|
|
365
|
+
readonly replyTo: readonly string[] | null;
|
|
366
|
+
readonly subject: string;
|
|
367
|
+
readonly html: string | null;
|
|
368
|
+
readonly text: string | null;
|
|
369
|
+
readonly createdAt: string;
|
|
370
|
+
readonly lastEvent: string;
|
|
371
|
+
readonly scheduledAt: string | null;
|
|
372
|
+
readonly tags?: {
|
|
373
|
+
readonly [x: string]: string;
|
|
374
|
+
} | undefined;
|
|
375
|
+
};
|
|
376
|
+
}> | import("@wfgraph/core/plugin").Integration<{
|
|
377
|
+
"send-message": {
|
|
378
|
+
readonly slackChannel: string;
|
|
379
|
+
readonly slackMessage: string;
|
|
380
|
+
readonly testBehavior?: string | undefined;
|
|
381
|
+
};
|
|
382
|
+
"reply-to-thread": {
|
|
383
|
+
readonly slackChannel: string;
|
|
384
|
+
readonly slackThreadTs: string;
|
|
385
|
+
readonly slackMessage: string;
|
|
386
|
+
readonly testBehavior?: string | undefined;
|
|
387
|
+
};
|
|
388
|
+
}, {
|
|
389
|
+
"send-message": {
|
|
390
|
+
readonly ts: string;
|
|
391
|
+
readonly channel: string;
|
|
392
|
+
readonly reasonCode?: string | null | undefined;
|
|
393
|
+
};
|
|
394
|
+
"reply-to-thread": {
|
|
395
|
+
readonly ts: string;
|
|
396
|
+
readonly channel: string;
|
|
397
|
+
readonly threadTs: string;
|
|
398
|
+
readonly reasonCode?: string | null | undefined;
|
|
266
399
|
};
|
|
267
400
|
}> | import("@wfgraph/core/plugin").Integration<{
|
|
268
401
|
"send-sms": {
|
|
@@ -285,5 +418,4 @@ declare const builtInIntegrations: (import("@wfgraph/core/plugin").Integration<{
|
|
|
285
418
|
readonly reasonCode?: string | null | undefined;
|
|
286
419
|
};
|
|
287
420
|
}>)[];
|
|
288
|
-
|
|
289
|
-
export { builtInIntegrations, clerk, linear, resend, slack, twilio };
|
|
421
|
+
export type { SlackOptions };
|