@automate.ax/catalog 0.147.1 → 0.150.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/catalog.d.ts +124 -0
- package/dist/catalog.js +72 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/triggers/index.d.ts +624 -0
- package/dist/triggers/index.js +2 -0
- package/dist/triggers/kit.d.ts +314 -0
- package/dist/triggers/kit.js +41 -0
- package/package.json +7 -1
- package/src/catalog.ts +77 -0
- package/src/index.ts +2 -0
- package/src/triggers/index.ts +2 -0
- package/src/triggers/kit.ts +49 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
export declare const kitTriggerDefinitions: {
|
|
2
|
+
readonly kitBroadcastCreated: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly connectionMethodId: "oauth";
|
|
6
|
+
readonly requiredScopes: readonly ["public"];
|
|
7
|
+
}, {
|
|
8
|
+
readonly connectionMethodId: "api-key";
|
|
9
|
+
readonly requiredScopes: readonly [];
|
|
10
|
+
}];
|
|
11
|
+
readonly serviceId: "kit";
|
|
12
|
+
};
|
|
13
|
+
readonly type: "kit.broadcast.created";
|
|
14
|
+
};
|
|
15
|
+
readonly kitBroadcastDeleted: {
|
|
16
|
+
readonly account: {
|
|
17
|
+
readonly connectionOptions: readonly [{
|
|
18
|
+
readonly connectionMethodId: "oauth";
|
|
19
|
+
readonly requiredScopes: readonly ["public"];
|
|
20
|
+
}, {
|
|
21
|
+
readonly connectionMethodId: "api-key";
|
|
22
|
+
readonly requiredScopes: readonly [];
|
|
23
|
+
}];
|
|
24
|
+
readonly serviceId: "kit";
|
|
25
|
+
};
|
|
26
|
+
readonly type: "kit.broadcast.deleted";
|
|
27
|
+
};
|
|
28
|
+
readonly kitBroadcastSent: {
|
|
29
|
+
readonly account: {
|
|
30
|
+
readonly connectionOptions: readonly [{
|
|
31
|
+
readonly connectionMethodId: "oauth";
|
|
32
|
+
readonly requiredScopes: readonly ["public"];
|
|
33
|
+
}, {
|
|
34
|
+
readonly connectionMethodId: "api-key";
|
|
35
|
+
readonly requiredScopes: readonly [];
|
|
36
|
+
}];
|
|
37
|
+
readonly serviceId: "kit";
|
|
38
|
+
};
|
|
39
|
+
readonly type: "kit.broadcast.sent";
|
|
40
|
+
};
|
|
41
|
+
readonly kitCustomFieldCreated: {
|
|
42
|
+
readonly account: {
|
|
43
|
+
readonly connectionOptions: readonly [{
|
|
44
|
+
readonly connectionMethodId: "oauth";
|
|
45
|
+
readonly requiredScopes: readonly ["public"];
|
|
46
|
+
}, {
|
|
47
|
+
readonly connectionMethodId: "api-key";
|
|
48
|
+
readonly requiredScopes: readonly [];
|
|
49
|
+
}];
|
|
50
|
+
readonly serviceId: "kit";
|
|
51
|
+
};
|
|
52
|
+
readonly type: "kit.customField.created";
|
|
53
|
+
};
|
|
54
|
+
readonly kitCustomFieldDeleted: {
|
|
55
|
+
readonly account: {
|
|
56
|
+
readonly connectionOptions: readonly [{
|
|
57
|
+
readonly connectionMethodId: "oauth";
|
|
58
|
+
readonly requiredScopes: readonly ["public"];
|
|
59
|
+
}, {
|
|
60
|
+
readonly connectionMethodId: "api-key";
|
|
61
|
+
readonly requiredScopes: readonly [];
|
|
62
|
+
}];
|
|
63
|
+
readonly serviceId: "kit";
|
|
64
|
+
};
|
|
65
|
+
readonly type: "kit.customField.deleted";
|
|
66
|
+
};
|
|
67
|
+
readonly kitEvent: {
|
|
68
|
+
readonly account: {
|
|
69
|
+
readonly connectionOptions: readonly [{
|
|
70
|
+
readonly connectionMethodId: "oauth";
|
|
71
|
+
readonly requiredScopes: readonly ["public"];
|
|
72
|
+
}, {
|
|
73
|
+
readonly connectionMethodId: "api-key";
|
|
74
|
+
readonly requiredScopes: readonly [];
|
|
75
|
+
}];
|
|
76
|
+
readonly serviceId: "kit";
|
|
77
|
+
};
|
|
78
|
+
readonly type: "kit.event";
|
|
79
|
+
};
|
|
80
|
+
readonly kitPostPublished: {
|
|
81
|
+
readonly account: {
|
|
82
|
+
readonly connectionOptions: readonly [{
|
|
83
|
+
readonly connectionMethodId: "oauth";
|
|
84
|
+
readonly requiredScopes: readonly ["public"];
|
|
85
|
+
}, {
|
|
86
|
+
readonly connectionMethodId: "api-key";
|
|
87
|
+
readonly requiredScopes: readonly [];
|
|
88
|
+
}];
|
|
89
|
+
readonly serviceId: "kit";
|
|
90
|
+
};
|
|
91
|
+
readonly type: "kit.post.published";
|
|
92
|
+
};
|
|
93
|
+
readonly kitSequenceCreated: {
|
|
94
|
+
readonly account: {
|
|
95
|
+
readonly connectionOptions: readonly [{
|
|
96
|
+
readonly connectionMethodId: "oauth";
|
|
97
|
+
readonly requiredScopes: readonly ["public"];
|
|
98
|
+
}, {
|
|
99
|
+
readonly connectionMethodId: "api-key";
|
|
100
|
+
readonly requiredScopes: readonly [];
|
|
101
|
+
}];
|
|
102
|
+
readonly serviceId: "kit";
|
|
103
|
+
};
|
|
104
|
+
readonly type: "kit.sequence.created";
|
|
105
|
+
};
|
|
106
|
+
readonly kitSequenceDeleted: {
|
|
107
|
+
readonly account: {
|
|
108
|
+
readonly connectionOptions: readonly [{
|
|
109
|
+
readonly connectionMethodId: "oauth";
|
|
110
|
+
readonly requiredScopes: readonly ["public"];
|
|
111
|
+
}, {
|
|
112
|
+
readonly connectionMethodId: "api-key";
|
|
113
|
+
readonly requiredScopes: readonly [];
|
|
114
|
+
}];
|
|
115
|
+
readonly serviceId: "kit";
|
|
116
|
+
};
|
|
117
|
+
readonly type: "kit.sequence.deleted";
|
|
118
|
+
};
|
|
119
|
+
readonly kitSequenceDisabled: {
|
|
120
|
+
readonly account: {
|
|
121
|
+
readonly connectionOptions: readonly [{
|
|
122
|
+
readonly connectionMethodId: "oauth";
|
|
123
|
+
readonly requiredScopes: readonly ["public"];
|
|
124
|
+
}, {
|
|
125
|
+
readonly connectionMethodId: "api-key";
|
|
126
|
+
readonly requiredScopes: readonly [];
|
|
127
|
+
}];
|
|
128
|
+
readonly serviceId: "kit";
|
|
129
|
+
};
|
|
130
|
+
readonly type: "kit.sequence.disabled";
|
|
131
|
+
};
|
|
132
|
+
readonly kitSequencePublished: {
|
|
133
|
+
readonly account: {
|
|
134
|
+
readonly connectionOptions: readonly [{
|
|
135
|
+
readonly connectionMethodId: "oauth";
|
|
136
|
+
readonly requiredScopes: readonly ["public"];
|
|
137
|
+
}, {
|
|
138
|
+
readonly connectionMethodId: "api-key";
|
|
139
|
+
readonly requiredScopes: readonly [];
|
|
140
|
+
}];
|
|
141
|
+
readonly serviceId: "kit";
|
|
142
|
+
};
|
|
143
|
+
readonly type: "kit.sequence.published";
|
|
144
|
+
};
|
|
145
|
+
readonly kitSubscriberActivated: {
|
|
146
|
+
readonly account: {
|
|
147
|
+
readonly connectionOptions: readonly [{
|
|
148
|
+
readonly connectionMethodId: "oauth";
|
|
149
|
+
readonly requiredScopes: readonly ["public"];
|
|
150
|
+
}, {
|
|
151
|
+
readonly connectionMethodId: "api-key";
|
|
152
|
+
readonly requiredScopes: readonly [];
|
|
153
|
+
}];
|
|
154
|
+
readonly serviceId: "kit";
|
|
155
|
+
};
|
|
156
|
+
readonly type: "kit.subscriber.activated";
|
|
157
|
+
};
|
|
158
|
+
readonly kitSubscriberAddedToSequence: {
|
|
159
|
+
readonly account: {
|
|
160
|
+
readonly connectionOptions: readonly [{
|
|
161
|
+
readonly connectionMethodId: "oauth";
|
|
162
|
+
readonly requiredScopes: readonly ["public"];
|
|
163
|
+
}, {
|
|
164
|
+
readonly connectionMethodId: "api-key";
|
|
165
|
+
readonly requiredScopes: readonly [];
|
|
166
|
+
}];
|
|
167
|
+
readonly serviceId: "kit";
|
|
168
|
+
};
|
|
169
|
+
readonly type: "kit.subscriber.addedToSequence";
|
|
170
|
+
};
|
|
171
|
+
readonly kitSubscriberBounced: {
|
|
172
|
+
readonly account: {
|
|
173
|
+
readonly connectionOptions: readonly [{
|
|
174
|
+
readonly connectionMethodId: "oauth";
|
|
175
|
+
readonly requiredScopes: readonly ["public"];
|
|
176
|
+
}, {
|
|
177
|
+
readonly connectionMethodId: "api-key";
|
|
178
|
+
readonly requiredScopes: readonly [];
|
|
179
|
+
}];
|
|
180
|
+
readonly serviceId: "kit";
|
|
181
|
+
};
|
|
182
|
+
readonly type: "kit.subscriber.bounced";
|
|
183
|
+
};
|
|
184
|
+
readonly kitSubscriberComplained: {
|
|
185
|
+
readonly account: {
|
|
186
|
+
readonly connectionOptions: readonly [{
|
|
187
|
+
readonly connectionMethodId: "oauth";
|
|
188
|
+
readonly requiredScopes: readonly ["public"];
|
|
189
|
+
}, {
|
|
190
|
+
readonly connectionMethodId: "api-key";
|
|
191
|
+
readonly requiredScopes: readonly [];
|
|
192
|
+
}];
|
|
193
|
+
readonly serviceId: "kit";
|
|
194
|
+
};
|
|
195
|
+
readonly type: "kit.subscriber.complained";
|
|
196
|
+
};
|
|
197
|
+
readonly kitSubscriberCreated: {
|
|
198
|
+
readonly account: {
|
|
199
|
+
readonly connectionOptions: readonly [{
|
|
200
|
+
readonly connectionMethodId: "oauth";
|
|
201
|
+
readonly requiredScopes: readonly ["public"];
|
|
202
|
+
}, {
|
|
203
|
+
readonly connectionMethodId: "api-key";
|
|
204
|
+
readonly requiredScopes: readonly [];
|
|
205
|
+
}];
|
|
206
|
+
readonly serviceId: "kit";
|
|
207
|
+
};
|
|
208
|
+
readonly type: "kit.subscriber.created";
|
|
209
|
+
};
|
|
210
|
+
readonly kitSubscriberCustomFieldValueUpdated: {
|
|
211
|
+
readonly account: {
|
|
212
|
+
readonly connectionOptions: readonly [{
|
|
213
|
+
readonly connectionMethodId: "oauth";
|
|
214
|
+
readonly requiredScopes: readonly ["public"];
|
|
215
|
+
}, {
|
|
216
|
+
readonly connectionMethodId: "api-key";
|
|
217
|
+
readonly requiredScopes: readonly [];
|
|
218
|
+
}];
|
|
219
|
+
readonly serviceId: "kit";
|
|
220
|
+
};
|
|
221
|
+
readonly type: "kit.subscriber.customFieldValueUpdated";
|
|
222
|
+
};
|
|
223
|
+
readonly kitSubscriberSequenceCompleted: {
|
|
224
|
+
readonly account: {
|
|
225
|
+
readonly connectionOptions: readonly [{
|
|
226
|
+
readonly connectionMethodId: "oauth";
|
|
227
|
+
readonly requiredScopes: readonly ["public"];
|
|
228
|
+
}, {
|
|
229
|
+
readonly connectionMethodId: "api-key";
|
|
230
|
+
readonly requiredScopes: readonly [];
|
|
231
|
+
}];
|
|
232
|
+
readonly serviceId: "kit";
|
|
233
|
+
};
|
|
234
|
+
readonly type: "kit.subscriber.sequenceCompleted";
|
|
235
|
+
};
|
|
236
|
+
readonly kitSubscriberSubscribedToForm: {
|
|
237
|
+
readonly account: {
|
|
238
|
+
readonly connectionOptions: readonly [{
|
|
239
|
+
readonly connectionMethodId: "oauth";
|
|
240
|
+
readonly requiredScopes: readonly ["public"];
|
|
241
|
+
}, {
|
|
242
|
+
readonly connectionMethodId: "api-key";
|
|
243
|
+
readonly requiredScopes: readonly [];
|
|
244
|
+
}];
|
|
245
|
+
readonly serviceId: "kit";
|
|
246
|
+
};
|
|
247
|
+
readonly type: "kit.subscriber.subscribedToForm";
|
|
248
|
+
};
|
|
249
|
+
readonly kitSubscriberTagAdded: {
|
|
250
|
+
readonly account: {
|
|
251
|
+
readonly connectionOptions: readonly [{
|
|
252
|
+
readonly connectionMethodId: "oauth";
|
|
253
|
+
readonly requiredScopes: readonly ["public"];
|
|
254
|
+
}, {
|
|
255
|
+
readonly connectionMethodId: "api-key";
|
|
256
|
+
readonly requiredScopes: readonly [];
|
|
257
|
+
}];
|
|
258
|
+
readonly serviceId: "kit";
|
|
259
|
+
};
|
|
260
|
+
readonly type: "kit.subscriber.tagAdded";
|
|
261
|
+
};
|
|
262
|
+
readonly kitSubscriberTagRemoved: {
|
|
263
|
+
readonly account: {
|
|
264
|
+
readonly connectionOptions: readonly [{
|
|
265
|
+
readonly connectionMethodId: "oauth";
|
|
266
|
+
readonly requiredScopes: readonly ["public"];
|
|
267
|
+
}, {
|
|
268
|
+
readonly connectionMethodId: "api-key";
|
|
269
|
+
readonly requiredScopes: readonly [];
|
|
270
|
+
}];
|
|
271
|
+
readonly serviceId: "kit";
|
|
272
|
+
};
|
|
273
|
+
readonly type: "kit.subscriber.tagRemoved";
|
|
274
|
+
};
|
|
275
|
+
readonly kitSubscriberUnsubscribed: {
|
|
276
|
+
readonly account: {
|
|
277
|
+
readonly connectionOptions: readonly [{
|
|
278
|
+
readonly connectionMethodId: "oauth";
|
|
279
|
+
readonly requiredScopes: readonly ["public"];
|
|
280
|
+
}, {
|
|
281
|
+
readonly connectionMethodId: "api-key";
|
|
282
|
+
readonly requiredScopes: readonly [];
|
|
283
|
+
}];
|
|
284
|
+
readonly serviceId: "kit";
|
|
285
|
+
};
|
|
286
|
+
readonly type: "kit.subscriber.unsubscribed";
|
|
287
|
+
};
|
|
288
|
+
readonly kitTagCreated: {
|
|
289
|
+
readonly account: {
|
|
290
|
+
readonly connectionOptions: readonly [{
|
|
291
|
+
readonly connectionMethodId: "oauth";
|
|
292
|
+
readonly requiredScopes: readonly ["public"];
|
|
293
|
+
}, {
|
|
294
|
+
readonly connectionMethodId: "api-key";
|
|
295
|
+
readonly requiredScopes: readonly [];
|
|
296
|
+
}];
|
|
297
|
+
readonly serviceId: "kit";
|
|
298
|
+
};
|
|
299
|
+
readonly type: "kit.tag.created";
|
|
300
|
+
};
|
|
301
|
+
readonly kitTagDeleted: {
|
|
302
|
+
readonly account: {
|
|
303
|
+
readonly connectionOptions: readonly [{
|
|
304
|
+
readonly connectionMethodId: "oauth";
|
|
305
|
+
readonly requiredScopes: readonly ["public"];
|
|
306
|
+
}, {
|
|
307
|
+
readonly connectionMethodId: "api-key";
|
|
308
|
+
readonly requiredScopes: readonly [];
|
|
309
|
+
}];
|
|
310
|
+
readonly serviceId: "kit";
|
|
311
|
+
};
|
|
312
|
+
readonly type: "kit.tag.deleted";
|
|
313
|
+
};
|
|
314
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const KIT_ACCOUNT = {
|
|
2
|
+
connectionOptions: [
|
|
3
|
+
{ connectionMethodId: "oauth", requiredScopes: ["public"] },
|
|
4
|
+
{ connectionMethodId: "api-key", requiredScopes: [] },
|
|
5
|
+
],
|
|
6
|
+
serviceId: "kit",
|
|
7
|
+
};
|
|
8
|
+
export const kitTriggerDefinitions = {
|
|
9
|
+
kitBroadcastCreated: definition("kit.broadcast.created"),
|
|
10
|
+
kitBroadcastDeleted: definition("kit.broadcast.deleted"),
|
|
11
|
+
kitBroadcastSent: definition("kit.broadcast.sent"),
|
|
12
|
+
kitCustomFieldCreated: definition("kit.customField.created"),
|
|
13
|
+
kitCustomFieldDeleted: definition("kit.customField.deleted"),
|
|
14
|
+
kitEvent: definition("kit.event"),
|
|
15
|
+
kitPostPublished: definition("kit.post.published"),
|
|
16
|
+
kitSequenceCreated: definition("kit.sequence.created"),
|
|
17
|
+
kitSequenceDeleted: definition("kit.sequence.deleted"),
|
|
18
|
+
kitSequenceDisabled: definition("kit.sequence.disabled"),
|
|
19
|
+
kitSequencePublished: definition("kit.sequence.published"),
|
|
20
|
+
kitSubscriberActivated: definition("kit.subscriber.activated"),
|
|
21
|
+
kitSubscriberAddedToSequence: definition("kit.subscriber.addedToSequence"),
|
|
22
|
+
kitSubscriberBounced: definition("kit.subscriber.bounced"),
|
|
23
|
+
kitSubscriberComplained: definition("kit.subscriber.complained"),
|
|
24
|
+
kitSubscriberCreated: definition("kit.subscriber.created"),
|
|
25
|
+
kitSubscriberCustomFieldValueUpdated: definition("kit.subscriber.customFieldValueUpdated"),
|
|
26
|
+
kitSubscriberSequenceCompleted: definition("kit.subscriber.sequenceCompleted"),
|
|
27
|
+
kitSubscriberSubscribedToForm: definition("kit.subscriber.subscribedToForm"),
|
|
28
|
+
kitSubscriberTagAdded: definition("kit.subscriber.tagAdded"),
|
|
29
|
+
kitSubscriberTagRemoved: definition("kit.subscriber.tagRemoved"),
|
|
30
|
+
kitSubscriberUnsubscribed: definition("kit.subscriber.unsubscribed"),
|
|
31
|
+
kitTagCreated: definition("kit.tag.created"),
|
|
32
|
+
kitTagDeleted: definition("kit.tag.deleted"),
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Builds one Kit catalog event definition.
|
|
36
|
+
*
|
|
37
|
+
* @param type Platform event type.
|
|
38
|
+
*/
|
|
39
|
+
function definition(type) {
|
|
40
|
+
return { account: KIT_ACCOUNT, type };
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.0",
|
|
4
4
|
"description": "Shared integration service and trigger definitions for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"./triggers/clickup": "./src/triggers/clickup.ts",
|
|
31
31
|
"./triggers/brevo": "./src/triggers/brevo.ts",
|
|
32
32
|
"./triggers/calcom": "./src/triggers/calcom.ts",
|
|
33
|
+
"./triggers/kit": "./src/triggers/kit.ts",
|
|
33
34
|
"./triggers/cloudflare": "./src/triggers/cloudflare.ts",
|
|
34
35
|
"./triggers/convex": "./src/triggers/convex.ts",
|
|
35
36
|
"./triggers/discord": "./src/triggers/discord.ts",
|
|
@@ -157,6 +158,11 @@
|
|
|
157
158
|
"types": "./dist/triggers/calcom.d.ts",
|
|
158
159
|
"default": "./dist/triggers/calcom.js"
|
|
159
160
|
},
|
|
161
|
+
"./triggers/kit": {
|
|
162
|
+
"bun": "./src/triggers/kit.ts",
|
|
163
|
+
"types": "./dist/triggers/kit.d.ts",
|
|
164
|
+
"default": "./dist/triggers/kit.js"
|
|
165
|
+
},
|
|
160
166
|
"./triggers/cloudflare": {
|
|
161
167
|
"bun": "./src/triggers/cloudflare.ts",
|
|
162
168
|
"types": "./dist/triggers/cloudflare.d.ts",
|
package/src/catalog.ts
CHANGED
|
@@ -577,6 +577,56 @@ export const linearService = defineIntegrationService({
|
|
|
577
577
|
preferredConnectionMethodId: "oauth",
|
|
578
578
|
})
|
|
579
579
|
|
|
580
|
+
export const krispService = defineIntegrationService({
|
|
581
|
+
connectionMethods: [
|
|
582
|
+
{
|
|
583
|
+
credentialUrl: "https://app.krisp.ai/user-settings/api",
|
|
584
|
+
fields: [
|
|
585
|
+
{
|
|
586
|
+
input: "password",
|
|
587
|
+
label: "Personal API key",
|
|
588
|
+
name: "apiKey",
|
|
589
|
+
placeholder: "krsp_u_...",
|
|
590
|
+
required: true,
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
default: true,
|
|
594
|
+
description:
|
|
595
|
+
"Use meeting, action-item, tag, profile, and import-status actions.",
|
|
596
|
+
input: "boolean",
|
|
597
|
+
label: "Read access",
|
|
598
|
+
name: "readAccess",
|
|
599
|
+
required: false,
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
default: false,
|
|
603
|
+
description: "Upload recordings for Krisp to process.",
|
|
604
|
+
input: "boolean",
|
|
605
|
+
label: "Write access",
|
|
606
|
+
name: "writeAccess",
|
|
607
|
+
required: false,
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
id: "api-key",
|
|
611
|
+
name: "Personal API key",
|
|
612
|
+
type: "form",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
connectionNotice: {
|
|
616
|
+
action: {
|
|
617
|
+
href: "https://meeting-api-docs.krisp.ai/",
|
|
618
|
+
label: "View Krisp API requirements",
|
|
619
|
+
},
|
|
620
|
+
description:
|
|
621
|
+
"Krisp Meeting Assistant API access requires a Core, Advanced, or Trial plan. Create a personal key with the access selected below.",
|
|
622
|
+
title: "Krisp plan and key required",
|
|
623
|
+
},
|
|
624
|
+
description:
|
|
625
|
+
"Connect Krisp Meeting Assistant for meetings, transcripts, notes, action items, tags, and recording imports.",
|
|
626
|
+
id: "krisp",
|
|
627
|
+
name: "Krisp",
|
|
628
|
+
})
|
|
629
|
+
|
|
580
630
|
export const jobNimbusService = defineApiKeyService({
|
|
581
631
|
credentialUrl: "https://app.jobnimbus.com/account#api",
|
|
582
632
|
description: "Connect a JobNimbus account with an API key.",
|
|
@@ -860,6 +910,31 @@ export const calcomService = defineIntegrationService({
|
|
|
860
910
|
name: "Cal.com",
|
|
861
911
|
})
|
|
862
912
|
|
|
913
|
+
export const kitService = defineIntegrationService({
|
|
914
|
+
connectionMethods: [
|
|
915
|
+
{ id: "oauth", name: "OAuth", type: "redirect" },
|
|
916
|
+
{
|
|
917
|
+
credentialUrl: "https://app.kit.com/account_settings/developer_settings",
|
|
918
|
+
fields: [
|
|
919
|
+
{
|
|
920
|
+
input: "password",
|
|
921
|
+
label: "V4 API key",
|
|
922
|
+
name: "apiKey",
|
|
923
|
+
placeholder: "kit_...",
|
|
924
|
+
required: true,
|
|
925
|
+
},
|
|
926
|
+
],
|
|
927
|
+
id: "api-key",
|
|
928
|
+
name: "V4 API key",
|
|
929
|
+
type: "form",
|
|
930
|
+
},
|
|
931
|
+
],
|
|
932
|
+
description: "Connect Kit with OAuth or a V4 API key.",
|
|
933
|
+
id: "kit",
|
|
934
|
+
name: "Kit",
|
|
935
|
+
preferredConnectionMethodId: "oauth",
|
|
936
|
+
})
|
|
937
|
+
|
|
863
938
|
export const togetheraiService = defineApiKeyService({
|
|
864
939
|
description: "Connect a Together AI API key.",
|
|
865
940
|
id: "togetherai",
|
|
@@ -971,6 +1046,8 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
971
1046
|
hubspotService,
|
|
972
1047
|
highLevelService,
|
|
973
1048
|
jobNimbusService,
|
|
1049
|
+
kitService,
|
|
1050
|
+
krispService,
|
|
974
1051
|
linearService,
|
|
975
1052
|
microsoftService,
|
|
976
1053
|
millionverifierService,
|
package/src/index.ts
CHANGED
package/src/triggers/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { githubTriggerDefinitions } from "./github"
|
|
|
17
17
|
import { googleTriggerDefinitions } from "./google"
|
|
18
18
|
import { googleAdsTriggerDefinitions } from "./google-ads"
|
|
19
19
|
import { hubspotTriggerDefinitions } from "./hubspot"
|
|
20
|
+
import { kitTriggerDefinitions } from "./kit"
|
|
20
21
|
import { linearTriggerDefinitions } from "./linear"
|
|
21
22
|
import { millionVerifierTriggerDefinitions } from "./millionverifier"
|
|
22
23
|
import { microsoftTriggerDefinitions } from "./microsoft"
|
|
@@ -83,6 +84,7 @@ export const triggerDefinitions = {
|
|
|
83
84
|
...googleTriggerDefinitions,
|
|
84
85
|
...googleAdsTriggerDefinitions,
|
|
85
86
|
...hubspotTriggerDefinitions,
|
|
87
|
+
...kitTriggerDefinitions,
|
|
86
88
|
...linearTriggerDefinitions,
|
|
87
89
|
...millionVerifierTriggerDefinitions,
|
|
88
90
|
...microsoftTriggerDefinitions,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { IntegrationAccountRequirement, TriggerDefinition } from "../types"
|
|
2
|
+
|
|
3
|
+
const KIT_ACCOUNT = {
|
|
4
|
+
connectionOptions: [
|
|
5
|
+
{ connectionMethodId: "oauth", requiredScopes: ["public"] },
|
|
6
|
+
{ connectionMethodId: "api-key", requiredScopes: [] },
|
|
7
|
+
],
|
|
8
|
+
serviceId: "kit",
|
|
9
|
+
} as const satisfies IntegrationAccountRequirement
|
|
10
|
+
|
|
11
|
+
export const kitTriggerDefinitions = {
|
|
12
|
+
kitBroadcastCreated: definition("kit.broadcast.created"),
|
|
13
|
+
kitBroadcastDeleted: definition("kit.broadcast.deleted"),
|
|
14
|
+
kitBroadcastSent: definition("kit.broadcast.sent"),
|
|
15
|
+
kitCustomFieldCreated: definition("kit.customField.created"),
|
|
16
|
+
kitCustomFieldDeleted: definition("kit.customField.deleted"),
|
|
17
|
+
kitEvent: definition("kit.event"),
|
|
18
|
+
kitPostPublished: definition("kit.post.published"),
|
|
19
|
+
kitSequenceCreated: definition("kit.sequence.created"),
|
|
20
|
+
kitSequenceDeleted: definition("kit.sequence.deleted"),
|
|
21
|
+
kitSequenceDisabled: definition("kit.sequence.disabled"),
|
|
22
|
+
kitSequencePublished: definition("kit.sequence.published"),
|
|
23
|
+
kitSubscriberActivated: definition("kit.subscriber.activated"),
|
|
24
|
+
kitSubscriberAddedToSequence: definition("kit.subscriber.addedToSequence"),
|
|
25
|
+
kitSubscriberBounced: definition("kit.subscriber.bounced"),
|
|
26
|
+
kitSubscriberComplained: definition("kit.subscriber.complained"),
|
|
27
|
+
kitSubscriberCreated: definition("kit.subscriber.created"),
|
|
28
|
+
kitSubscriberCustomFieldValueUpdated: definition(
|
|
29
|
+
"kit.subscriber.customFieldValueUpdated",
|
|
30
|
+
),
|
|
31
|
+
kitSubscriberSequenceCompleted: definition(
|
|
32
|
+
"kit.subscriber.sequenceCompleted",
|
|
33
|
+
),
|
|
34
|
+
kitSubscriberSubscribedToForm: definition("kit.subscriber.subscribedToForm"),
|
|
35
|
+
kitSubscriberTagAdded: definition("kit.subscriber.tagAdded"),
|
|
36
|
+
kitSubscriberTagRemoved: definition("kit.subscriber.tagRemoved"),
|
|
37
|
+
kitSubscriberUnsubscribed: definition("kit.subscriber.unsubscribed"),
|
|
38
|
+
kitTagCreated: definition("kit.tag.created"),
|
|
39
|
+
kitTagDeleted: definition("kit.tag.deleted"),
|
|
40
|
+
} as const satisfies Record<string, TriggerDefinition>
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Builds one Kit catalog event definition.
|
|
44
|
+
*
|
|
45
|
+
* @param type Platform event type.
|
|
46
|
+
*/
|
|
47
|
+
function definition<TType extends string>(type: TType) {
|
|
48
|
+
return { account: KIT_ACCOUNT, type } as const
|
|
49
|
+
}
|