@automate.ax/catalog 0.127.2 → 0.130.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 +51 -0
- package/dist/catalog.js +31 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/triggers/discord.d.ts +56 -0
- package/dist/triggers/discord.js +30 -0
- package/dist/triggers/index.d.ts +108 -0
- package/dist/triggers/index.js +2 -0
- package/package.json +7 -1
- package/src/catalog.ts +34 -0
- package/src/index.ts +1 -0
- package/src/triggers/discord.ts +33 -0
- package/src/triggers/index.ts +2 -0
package/dist/catalog.d.ts
CHANGED
|
@@ -324,6 +324,32 @@ export declare const convexService: {
|
|
|
324
324
|
readonly name: "Convex";
|
|
325
325
|
readonly preferredConnectionMethodId: "oauth";
|
|
326
326
|
};
|
|
327
|
+
export declare const discordService: {
|
|
328
|
+
readonly connectionMethods: readonly [{
|
|
329
|
+
readonly credentialUrl: "https://discord.com/developers/applications";
|
|
330
|
+
readonly fields: readonly [{
|
|
331
|
+
readonly input: "password";
|
|
332
|
+
readonly label: "Bot token";
|
|
333
|
+
readonly name: "botToken";
|
|
334
|
+
readonly placeholder: "Paste your Discord bot token";
|
|
335
|
+
readonly required: true;
|
|
336
|
+
}];
|
|
337
|
+
readonly id: "bot-token";
|
|
338
|
+
readonly name: "Bot token";
|
|
339
|
+
readonly type: "form";
|
|
340
|
+
}];
|
|
341
|
+
readonly connectionNotice: {
|
|
342
|
+
readonly action: {
|
|
343
|
+
readonly href: "https://docs.automate.ax/reference/integrations/discord/overview";
|
|
344
|
+
readonly label: "View setup guide";
|
|
345
|
+
};
|
|
346
|
+
readonly description: "Create your own Discord application, install its bot in each server you automate, and paste the bot token here.";
|
|
347
|
+
readonly title: "Customer-managed Discord bot";
|
|
348
|
+
};
|
|
349
|
+
readonly description: "Connect a customer-managed Discord bot for server actions and signed webhook events.";
|
|
350
|
+
readonly id: "discord";
|
|
351
|
+
readonly name: "Discord";
|
|
352
|
+
};
|
|
327
353
|
export declare const deepinfraService: {
|
|
328
354
|
readonly id: "deepinfra";
|
|
329
355
|
readonly name: string;
|
|
@@ -1296,6 +1322,31 @@ export declare const integrationCatalog: readonly [{
|
|
|
1296
1322
|
readonly id: "convex";
|
|
1297
1323
|
readonly name: "Convex";
|
|
1298
1324
|
readonly preferredConnectionMethodId: "oauth";
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly connectionMethods: readonly [{
|
|
1327
|
+
readonly credentialUrl: "https://discord.com/developers/applications";
|
|
1328
|
+
readonly fields: readonly [{
|
|
1329
|
+
readonly input: "password";
|
|
1330
|
+
readonly label: "Bot token";
|
|
1331
|
+
readonly name: "botToken";
|
|
1332
|
+
readonly placeholder: "Paste your Discord bot token";
|
|
1333
|
+
readonly required: true;
|
|
1334
|
+
}];
|
|
1335
|
+
readonly id: "bot-token";
|
|
1336
|
+
readonly name: "Bot token";
|
|
1337
|
+
readonly type: "form";
|
|
1338
|
+
}];
|
|
1339
|
+
readonly connectionNotice: {
|
|
1340
|
+
readonly action: {
|
|
1341
|
+
readonly href: "https://docs.automate.ax/reference/integrations/discord/overview";
|
|
1342
|
+
readonly label: "View setup guide";
|
|
1343
|
+
};
|
|
1344
|
+
readonly description: "Create your own Discord application, install its bot in each server you automate, and paste the bot token here.";
|
|
1345
|
+
readonly title: "Customer-managed Discord bot";
|
|
1346
|
+
};
|
|
1347
|
+
readonly description: "Connect a customer-managed Discord bot for server actions and signed webhook events.";
|
|
1348
|
+
readonly id: "discord";
|
|
1349
|
+
readonly name: "Discord";
|
|
1299
1350
|
}, {
|
|
1300
1351
|
readonly id: "deepinfra";
|
|
1301
1352
|
readonly name: string;
|
package/dist/catalog.js
CHANGED
|
@@ -267,6 +267,36 @@ export const convexService = defineIntegrationService({
|
|
|
267
267
|
name: "Convex",
|
|
268
268
|
preferredConnectionMethodId: "oauth",
|
|
269
269
|
});
|
|
270
|
+
export const discordService = defineIntegrationService({
|
|
271
|
+
connectionMethods: [
|
|
272
|
+
{
|
|
273
|
+
credentialUrl: "https://discord.com/developers/applications",
|
|
274
|
+
fields: [
|
|
275
|
+
{
|
|
276
|
+
input: "password",
|
|
277
|
+
label: "Bot token",
|
|
278
|
+
name: "botToken",
|
|
279
|
+
placeholder: "Paste your Discord bot token",
|
|
280
|
+
required: true,
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
id: "bot-token",
|
|
284
|
+
name: "Bot token",
|
|
285
|
+
type: "form",
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
connectionNotice: {
|
|
289
|
+
action: {
|
|
290
|
+
href: "https://docs.automate.ax/reference/integrations/discord/overview",
|
|
291
|
+
label: "View setup guide",
|
|
292
|
+
},
|
|
293
|
+
description: "Create your own Discord application, install its bot in each server you automate, and paste the bot token here.",
|
|
294
|
+
title: "Customer-managed Discord bot",
|
|
295
|
+
},
|
|
296
|
+
description: "Connect a customer-managed Discord bot for server actions and signed webhook events.",
|
|
297
|
+
id: "discord",
|
|
298
|
+
name: "Discord",
|
|
299
|
+
});
|
|
270
300
|
export const deepinfraService = defineApiKeyService({
|
|
271
301
|
description: "Connect a DeepInfra API key.",
|
|
272
302
|
id: "deepinfra",
|
|
@@ -691,6 +721,7 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
691
721
|
codexService,
|
|
692
722
|
cohereService,
|
|
693
723
|
convexService,
|
|
724
|
+
discordService,
|
|
694
725
|
deepinfraService,
|
|
695
726
|
deepseekService,
|
|
696
727
|
firecrawlService,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, closeService, codexService, cohereService, convexService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, closeService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationConnectionDefinition, type IntegrationConnectionNotice, type IntegrationFormField, type IntegrationScopeRequirement, type IntegrationServiceDefinition, type ScopeRequirementGroup, type TriggerAccountRequirement, type TriggerDefinition, type TriggerPresentation, type TriggerPresentationContext, type TriggerPresentationDetail, type TriggerScopePresentation, type TriggerPresentationValue, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, type DashboardRunConfig, type DashboardRunEndpointOptions, type DashboardRunField, type HttpTriggerEndpointOptions, type HttpTriggerScope, type MailhookAddressOptions, type MailhookScope, type TriggerType, } from "./triggers/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, closeService, codexService, cohereService, convexService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
1
|
+
export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, axiomService, brevoService, browserbaseService, cerebrasService, chatgptService, cloudflareService, closeService, codexService, cohereService, convexService, discordService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, hubspotService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, redditService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
|
|
2
2
|
export { defineIntegrationCatalog, defineIntegrationService, integrationScope, } from "./types.js";
|
|
3
3
|
export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, } from "./triggers/index.js";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const discordTriggerDefinitions: {
|
|
2
|
+
readonly discordApplicationAuthorized: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly [];
|
|
6
|
+
}];
|
|
7
|
+
readonly serviceId: "discord";
|
|
8
|
+
};
|
|
9
|
+
readonly type: "discord.application.authorized";
|
|
10
|
+
};
|
|
11
|
+
readonly discordApplicationDeauthorized: {
|
|
12
|
+
readonly account: {
|
|
13
|
+
readonly connectionOptions: readonly [{
|
|
14
|
+
readonly requiredScopes: readonly [];
|
|
15
|
+
}];
|
|
16
|
+
readonly serviceId: "discord";
|
|
17
|
+
};
|
|
18
|
+
readonly type: "discord.application.deauthorized";
|
|
19
|
+
};
|
|
20
|
+
readonly discordEntitlementCreated: {
|
|
21
|
+
readonly account: {
|
|
22
|
+
readonly connectionOptions: readonly [{
|
|
23
|
+
readonly requiredScopes: readonly [];
|
|
24
|
+
}];
|
|
25
|
+
readonly serviceId: "discord";
|
|
26
|
+
};
|
|
27
|
+
readonly type: "discord.entitlement.created";
|
|
28
|
+
};
|
|
29
|
+
readonly discordEntitlementDeleted: {
|
|
30
|
+
readonly account: {
|
|
31
|
+
readonly connectionOptions: readonly [{
|
|
32
|
+
readonly requiredScopes: readonly [];
|
|
33
|
+
}];
|
|
34
|
+
readonly serviceId: "discord";
|
|
35
|
+
};
|
|
36
|
+
readonly type: "discord.entitlement.deleted";
|
|
37
|
+
};
|
|
38
|
+
readonly discordEntitlementUpdated: {
|
|
39
|
+
readonly account: {
|
|
40
|
+
readonly connectionOptions: readonly [{
|
|
41
|
+
readonly requiredScopes: readonly [];
|
|
42
|
+
}];
|
|
43
|
+
readonly serviceId: "discord";
|
|
44
|
+
};
|
|
45
|
+
readonly type: "discord.entitlement.updated";
|
|
46
|
+
};
|
|
47
|
+
readonly discordWebhookEvent: {
|
|
48
|
+
readonly account: {
|
|
49
|
+
readonly connectionOptions: readonly [{
|
|
50
|
+
readonly requiredScopes: readonly [];
|
|
51
|
+
}];
|
|
52
|
+
readonly serviceId: "discord";
|
|
53
|
+
};
|
|
54
|
+
readonly type: "discord.webhook.event";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const DISCORD_ACCOUNT = {
|
|
2
|
+
connectionOptions: [{ requiredScopes: [] }],
|
|
3
|
+
serviceId: "discord",
|
|
4
|
+
};
|
|
5
|
+
export const discordTriggerDefinitions = {
|
|
6
|
+
discordApplicationAuthorized: {
|
|
7
|
+
account: DISCORD_ACCOUNT,
|
|
8
|
+
type: "discord.application.authorized",
|
|
9
|
+
},
|
|
10
|
+
discordApplicationDeauthorized: {
|
|
11
|
+
account: DISCORD_ACCOUNT,
|
|
12
|
+
type: "discord.application.deauthorized",
|
|
13
|
+
},
|
|
14
|
+
discordEntitlementCreated: {
|
|
15
|
+
account: DISCORD_ACCOUNT,
|
|
16
|
+
type: "discord.entitlement.created",
|
|
17
|
+
},
|
|
18
|
+
discordEntitlementDeleted: {
|
|
19
|
+
account: DISCORD_ACCOUNT,
|
|
20
|
+
type: "discord.entitlement.deleted",
|
|
21
|
+
},
|
|
22
|
+
discordEntitlementUpdated: {
|
|
23
|
+
account: DISCORD_ACCOUNT,
|
|
24
|
+
type: "discord.entitlement.updated",
|
|
25
|
+
},
|
|
26
|
+
discordWebhookEvent: {
|
|
27
|
+
account: DISCORD_ACCOUNT,
|
|
28
|
+
type: "discord.webhook.event",
|
|
29
|
+
},
|
|
30
|
+
};
|
package/dist/triggers/index.d.ts
CHANGED
|
@@ -6126,6 +6126,60 @@ export declare const triggerDefinitions: {
|
|
|
6126
6126
|
};
|
|
6127
6127
|
readonly type: "close.task.updated";
|
|
6128
6128
|
};
|
|
6129
|
+
readonly discordApplicationAuthorized: {
|
|
6130
|
+
readonly account: {
|
|
6131
|
+
readonly connectionOptions: readonly [{
|
|
6132
|
+
readonly requiredScopes: readonly [];
|
|
6133
|
+
}];
|
|
6134
|
+
readonly serviceId: "discord";
|
|
6135
|
+
};
|
|
6136
|
+
readonly type: "discord.application.authorized";
|
|
6137
|
+
};
|
|
6138
|
+
readonly discordApplicationDeauthorized: {
|
|
6139
|
+
readonly account: {
|
|
6140
|
+
readonly connectionOptions: readonly [{
|
|
6141
|
+
readonly requiredScopes: readonly [];
|
|
6142
|
+
}];
|
|
6143
|
+
readonly serviceId: "discord";
|
|
6144
|
+
};
|
|
6145
|
+
readonly type: "discord.application.deauthorized";
|
|
6146
|
+
};
|
|
6147
|
+
readonly discordEntitlementCreated: {
|
|
6148
|
+
readonly account: {
|
|
6149
|
+
readonly connectionOptions: readonly [{
|
|
6150
|
+
readonly requiredScopes: readonly [];
|
|
6151
|
+
}];
|
|
6152
|
+
readonly serviceId: "discord";
|
|
6153
|
+
};
|
|
6154
|
+
readonly type: "discord.entitlement.created";
|
|
6155
|
+
};
|
|
6156
|
+
readonly discordEntitlementDeleted: {
|
|
6157
|
+
readonly account: {
|
|
6158
|
+
readonly connectionOptions: readonly [{
|
|
6159
|
+
readonly requiredScopes: readonly [];
|
|
6160
|
+
}];
|
|
6161
|
+
readonly serviceId: "discord";
|
|
6162
|
+
};
|
|
6163
|
+
readonly type: "discord.entitlement.deleted";
|
|
6164
|
+
};
|
|
6165
|
+
readonly discordEntitlementUpdated: {
|
|
6166
|
+
readonly account: {
|
|
6167
|
+
readonly connectionOptions: readonly [{
|
|
6168
|
+
readonly requiredScopes: readonly [];
|
|
6169
|
+
}];
|
|
6170
|
+
readonly serviceId: "discord";
|
|
6171
|
+
};
|
|
6172
|
+
readonly type: "discord.entitlement.updated";
|
|
6173
|
+
};
|
|
6174
|
+
readonly discordWebhookEvent: {
|
|
6175
|
+
readonly account: {
|
|
6176
|
+
readonly connectionOptions: readonly [{
|
|
6177
|
+
readonly requiredScopes: readonly [];
|
|
6178
|
+
}];
|
|
6179
|
+
readonly serviceId: "discord";
|
|
6180
|
+
};
|
|
6181
|
+
readonly type: "discord.webhook.event";
|
|
6182
|
+
};
|
|
6129
6183
|
readonly convexDocumentCreated: {
|
|
6130
6184
|
readonly account: {
|
|
6131
6185
|
readonly connectionOptions: readonly [{
|
|
@@ -8535,6 +8589,60 @@ export declare const triggerCatalog: ({
|
|
|
8535
8589
|
value: string;
|
|
8536
8590
|
};
|
|
8537
8591
|
type: "convex.event.received";
|
|
8592
|
+
} | {
|
|
8593
|
+
name: string;
|
|
8594
|
+
account: {
|
|
8595
|
+
readonly connectionOptions: readonly [{
|
|
8596
|
+
readonly requiredScopes: readonly [];
|
|
8597
|
+
}];
|
|
8598
|
+
readonly serviceId: "discord";
|
|
8599
|
+
};
|
|
8600
|
+
type: "discord.application.authorized";
|
|
8601
|
+
} | {
|
|
8602
|
+
name: string;
|
|
8603
|
+
account: {
|
|
8604
|
+
readonly connectionOptions: readonly [{
|
|
8605
|
+
readonly requiredScopes: readonly [];
|
|
8606
|
+
}];
|
|
8607
|
+
readonly serviceId: "discord";
|
|
8608
|
+
};
|
|
8609
|
+
type: "discord.application.deauthorized";
|
|
8610
|
+
} | {
|
|
8611
|
+
name: string;
|
|
8612
|
+
account: {
|
|
8613
|
+
readonly connectionOptions: readonly [{
|
|
8614
|
+
readonly requiredScopes: readonly [];
|
|
8615
|
+
}];
|
|
8616
|
+
readonly serviceId: "discord";
|
|
8617
|
+
};
|
|
8618
|
+
type: "discord.entitlement.created";
|
|
8619
|
+
} | {
|
|
8620
|
+
name: string;
|
|
8621
|
+
account: {
|
|
8622
|
+
readonly connectionOptions: readonly [{
|
|
8623
|
+
readonly requiredScopes: readonly [];
|
|
8624
|
+
}];
|
|
8625
|
+
readonly serviceId: "discord";
|
|
8626
|
+
};
|
|
8627
|
+
type: "discord.entitlement.deleted";
|
|
8628
|
+
} | {
|
|
8629
|
+
name: string;
|
|
8630
|
+
account: {
|
|
8631
|
+
readonly connectionOptions: readonly [{
|
|
8632
|
+
readonly requiredScopes: readonly [];
|
|
8633
|
+
}];
|
|
8634
|
+
readonly serviceId: "discord";
|
|
8635
|
+
};
|
|
8636
|
+
type: "discord.entitlement.updated";
|
|
8637
|
+
} | {
|
|
8638
|
+
name: string;
|
|
8639
|
+
account: {
|
|
8640
|
+
readonly connectionOptions: readonly [{
|
|
8641
|
+
readonly requiredScopes: readonly [];
|
|
8642
|
+
}];
|
|
8643
|
+
readonly serviceId: "discord";
|
|
8644
|
+
};
|
|
8645
|
+
type: "discord.webhook.event";
|
|
8538
8646
|
} | {
|
|
8539
8647
|
name: string;
|
|
8540
8648
|
account: {
|
package/dist/triggers/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { automateTriggerDefinitions } from "./automate.js";
|
|
|
5
5
|
import { asanaTriggerDefinitions } from "./asana.js";
|
|
6
6
|
import { brevoTriggerDefinitions } from "./brevo.js";
|
|
7
7
|
import { convexTriggerDefinitions } from "./convex.js";
|
|
8
|
+
import { discordTriggerDefinitions } from "./discord.js";
|
|
8
9
|
import { closeTriggerDefinitions } from "./close.js";
|
|
9
10
|
import { cloudflareTriggerDefinitions } from "./cloudflare.js";
|
|
10
11
|
import { coreTriggerDefinitions } from "./core.js";
|
|
@@ -35,6 +36,7 @@ export const triggerDefinitions = {
|
|
|
35
36
|
...asanaTriggerDefinitions,
|
|
36
37
|
...brevoTriggerDefinitions,
|
|
37
38
|
...convexTriggerDefinitions,
|
|
39
|
+
...discordTriggerDefinitions,
|
|
38
40
|
...closeTriggerDefinitions,
|
|
39
41
|
...cloudflareTriggerDefinitions,
|
|
40
42
|
...coreTriggerDefinitions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.130.0",
|
|
4
4
|
"description": "Shared integration service and trigger definitions for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"./triggers/brevo": "./src/triggers/brevo.ts",
|
|
29
29
|
"./triggers/cloudflare": "./src/triggers/cloudflare.ts",
|
|
30
30
|
"./triggers/convex": "./src/triggers/convex.ts",
|
|
31
|
+
"./triggers/discord": "./src/triggers/discord.ts",
|
|
31
32
|
"./triggers/close": "./src/triggers/close.ts",
|
|
32
33
|
"./triggers/core-dashboard": "./src/triggers/core-dashboard.ts",
|
|
33
34
|
"./triggers/core-http": "./src/triggers/core-http.ts",
|
|
@@ -138,6 +139,11 @@
|
|
|
138
139
|
"types": "./dist/triggers/convex.d.ts",
|
|
139
140
|
"default": "./dist/triggers/convex.js"
|
|
140
141
|
},
|
|
142
|
+
"./triggers/discord": {
|
|
143
|
+
"bun": "./src/triggers/discord.ts",
|
|
144
|
+
"types": "./dist/triggers/discord.d.ts",
|
|
145
|
+
"default": "./dist/triggers/discord.js"
|
|
146
|
+
},
|
|
141
147
|
"./triggers/close": {
|
|
142
148
|
"bun": "./src/triggers/close.ts",
|
|
143
149
|
"types": "./dist/triggers/close.d.ts",
|
package/src/catalog.ts
CHANGED
|
@@ -292,6 +292,39 @@ export const convexService = defineIntegrationService({
|
|
|
292
292
|
preferredConnectionMethodId: "oauth",
|
|
293
293
|
})
|
|
294
294
|
|
|
295
|
+
export const discordService = defineIntegrationService({
|
|
296
|
+
connectionMethods: [
|
|
297
|
+
{
|
|
298
|
+
credentialUrl: "https://discord.com/developers/applications",
|
|
299
|
+
fields: [
|
|
300
|
+
{
|
|
301
|
+
input: "password",
|
|
302
|
+
label: "Bot token",
|
|
303
|
+
name: "botToken",
|
|
304
|
+
placeholder: "Paste your Discord bot token",
|
|
305
|
+
required: true,
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
id: "bot-token",
|
|
309
|
+
name: "Bot token",
|
|
310
|
+
type: "form",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
connectionNotice: {
|
|
314
|
+
action: {
|
|
315
|
+
href: "https://docs.automate.ax/reference/integrations/discord/overview",
|
|
316
|
+
label: "View setup guide",
|
|
317
|
+
},
|
|
318
|
+
description:
|
|
319
|
+
"Create your own Discord application, install its bot in each server you automate, and paste the bot token here.",
|
|
320
|
+
title: "Customer-managed Discord bot",
|
|
321
|
+
},
|
|
322
|
+
description:
|
|
323
|
+
"Connect a customer-managed Discord bot for server actions and signed webhook events.",
|
|
324
|
+
id: "discord",
|
|
325
|
+
name: "Discord",
|
|
326
|
+
})
|
|
327
|
+
|
|
295
328
|
export const deepinfraService = defineApiKeyService({
|
|
296
329
|
description: "Connect a DeepInfra API key.",
|
|
297
330
|
id: "deepinfra",
|
|
@@ -762,6 +795,7 @@ export const integrationCatalog = defineIntegrationCatalog([
|
|
|
762
795
|
codexService,
|
|
763
796
|
cohereService,
|
|
764
797
|
convexService,
|
|
798
|
+
discordService,
|
|
765
799
|
deepinfraService,
|
|
766
800
|
deepseekService,
|
|
767
801
|
firecrawlService,
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IntegrationAccountRequirement, TriggerDefinition } from "../types"
|
|
2
|
+
|
|
3
|
+
const DISCORD_ACCOUNT = {
|
|
4
|
+
connectionOptions: [{ requiredScopes: [] }],
|
|
5
|
+
serviceId: "discord",
|
|
6
|
+
} as const satisfies IntegrationAccountRequirement
|
|
7
|
+
|
|
8
|
+
export const discordTriggerDefinitions = {
|
|
9
|
+
discordApplicationAuthorized: {
|
|
10
|
+
account: DISCORD_ACCOUNT,
|
|
11
|
+
type: "discord.application.authorized",
|
|
12
|
+
},
|
|
13
|
+
discordApplicationDeauthorized: {
|
|
14
|
+
account: DISCORD_ACCOUNT,
|
|
15
|
+
type: "discord.application.deauthorized",
|
|
16
|
+
},
|
|
17
|
+
discordEntitlementCreated: {
|
|
18
|
+
account: DISCORD_ACCOUNT,
|
|
19
|
+
type: "discord.entitlement.created",
|
|
20
|
+
},
|
|
21
|
+
discordEntitlementDeleted: {
|
|
22
|
+
account: DISCORD_ACCOUNT,
|
|
23
|
+
type: "discord.entitlement.deleted",
|
|
24
|
+
},
|
|
25
|
+
discordEntitlementUpdated: {
|
|
26
|
+
account: DISCORD_ACCOUNT,
|
|
27
|
+
type: "discord.entitlement.updated",
|
|
28
|
+
},
|
|
29
|
+
discordWebhookEvent: {
|
|
30
|
+
account: DISCORD_ACCOUNT,
|
|
31
|
+
type: "discord.webhook.event",
|
|
32
|
+
},
|
|
33
|
+
} as const satisfies Record<string, TriggerDefinition>
|
package/src/triggers/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { automateTriggerDefinitions } from "./automate"
|
|
|
5
5
|
import { asanaTriggerDefinitions } from "./asana"
|
|
6
6
|
import { brevoTriggerDefinitions } from "./brevo"
|
|
7
7
|
import { convexTriggerDefinitions } from "./convex"
|
|
8
|
+
import { discordTriggerDefinitions } from "./discord"
|
|
8
9
|
import { closeTriggerDefinitions } from "./close"
|
|
9
10
|
import { cloudflareTriggerDefinitions } from "./cloudflare"
|
|
10
11
|
import { coreTriggerDefinitions } from "./core"
|
|
@@ -59,6 +60,7 @@ export const triggerDefinitions = {
|
|
|
59
60
|
...asanaTriggerDefinitions,
|
|
60
61
|
...brevoTriggerDefinitions,
|
|
61
62
|
...convexTriggerDefinitions,
|
|
63
|
+
...discordTriggerDefinitions,
|
|
62
64
|
...closeTriggerDefinitions,
|
|
63
65
|
...cloudflareTriggerDefinitions,
|
|
64
66
|
...coreTriggerDefinitions,
|