@automate.ax/catalog 0.55.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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/catalog.d.ts +1106 -0
- package/dist/catalog.js +349 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/triggers/airtable.d.ts +62 -0
- package/dist/triggers/airtable.js +36 -0
- package/dist/triggers/asana.d.ts +65 -0
- package/dist/triggers/asana.js +39 -0
- package/dist/triggers/brevo.d.ts +111 -0
- package/dist/triggers/brevo.js +65 -0
- package/dist/triggers/core.d.ts +50 -0
- package/dist/triggers/core.js +74 -0
- package/dist/triggers/github.d.ts +228 -0
- package/dist/triggers/github.js +136 -0
- package/dist/triggers/google.d.ts +126 -0
- package/dist/triggers/google.js +143 -0
- package/dist/triggers/index.d.ts +2598 -0
- package/dist/triggers/index.js +97 -0
- package/dist/triggers/linear.d.ts +110 -0
- package/dist/triggers/linear.js +59 -0
- package/dist/triggers/microsoft.d.ts +40 -0
- package/dist/triggers/microsoft.js +60 -0
- package/dist/triggers/resend.d.ts +110 -0
- package/dist/triggers/resend.js +59 -0
- package/dist/triggers/slack.d.ts +41 -0
- package/dist/triggers/slack.js +53 -0
- package/dist/triggers/trello.d.ts +56 -0
- package/dist/triggers/trello.js +35 -0
- package/dist/triggers/vercel.d.ts +279 -0
- package/dist/triggers/vercel.js +163 -0
- package/dist/triggers/whatsapp.d.ts +65 -0
- package/dist/triggers/whatsapp.js +39 -0
- package/dist/types.d.ts +134 -0
- package/dist/types.js +59 -0
- package/package.json +70 -0
- package/src/catalog.ts +403 -0
- package/src/index.ts +68 -0
- package/src/triggers/airtable.ts +39 -0
- package/src/triggers/asana.ts +42 -0
- package/src/triggers/brevo.ts +68 -0
- package/src/triggers/core.ts +93 -0
- package/src/triggers/github.ts +142 -0
- package/src/triggers/google.ts +149 -0
- package/src/triggers/index.ts +128 -0
- package/src/triggers/linear.ts +62 -0
- package/src/triggers/microsoft.ts +65 -0
- package/src/triggers/resend.ts +62 -0
- package/src/triggers/slack.ts +58 -0
- package/src/triggers/trello.ts +38 -0
- package/src/triggers/vercel.ts +170 -0
- package/src/triggers/whatsapp.ts +42 -0
- package/src/types.ts +219 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { airtableTriggerDefinitions } from "./airtable.js";
|
|
2
|
+
import { asanaTriggerDefinitions } from "./asana.js";
|
|
3
|
+
import { brevoTriggerDefinitions } from "./brevo.js";
|
|
4
|
+
import { coreTriggerDefinitions } from "./core.js";
|
|
5
|
+
import { githubTriggerDefinitions } from "./github.js";
|
|
6
|
+
import { googleTriggerDefinitions } from "./google.js";
|
|
7
|
+
import { linearTriggerDefinitions } from "./linear.js";
|
|
8
|
+
import { microsoftTriggerDefinitions } from "./microsoft.js";
|
|
9
|
+
import { resendTriggerDefinitions } from "./resend.js";
|
|
10
|
+
import { slackTriggerDefinitions } from "./slack.js";
|
|
11
|
+
import { trelloTriggerDefinitions } from "./trello.js";
|
|
12
|
+
import { vercelTriggerDefinitions } from "./vercel.js";
|
|
13
|
+
import { whatsappTriggerDefinitions } from "./whatsapp.js";
|
|
14
|
+
import { getIntegrationService } from "../catalog.js";
|
|
15
|
+
export { getHttpTriggerEndpoint, getHttpTriggerEndpointKey, } from "./core.js";
|
|
16
|
+
/** Plain shared definitions for every public trigger type. */
|
|
17
|
+
export const triggerDefinitions = {
|
|
18
|
+
...airtableTriggerDefinitions,
|
|
19
|
+
...asanaTriggerDefinitions,
|
|
20
|
+
...brevoTriggerDefinitions,
|
|
21
|
+
...coreTriggerDefinitions,
|
|
22
|
+
...githubTriggerDefinitions,
|
|
23
|
+
...googleTriggerDefinitions,
|
|
24
|
+
...linearTriggerDefinitions,
|
|
25
|
+
...microsoftTriggerDefinitions,
|
|
26
|
+
...resendTriggerDefinitions,
|
|
27
|
+
...slackTriggerDefinitions,
|
|
28
|
+
...trelloTriggerDefinitions,
|
|
29
|
+
...vercelTriggerDefinitions,
|
|
30
|
+
...whatsappTriggerDefinitions,
|
|
31
|
+
};
|
|
32
|
+
/** Trigger definitions with inferred display names materialized. */
|
|
33
|
+
export const triggerCatalog = Object.values(triggerDefinitions).map((definition) => ({
|
|
34
|
+
...definition,
|
|
35
|
+
name: ("name" in definition ? definition.name : undefined) ??
|
|
36
|
+
inferTriggerName(definition),
|
|
37
|
+
}));
|
|
38
|
+
/**
|
|
39
|
+
* Looks up one known trigger by its stable event type.
|
|
40
|
+
*
|
|
41
|
+
* @param type - Stable public event type.
|
|
42
|
+
*/
|
|
43
|
+
export function getTriggerDefinition(type) {
|
|
44
|
+
return triggerCatalog.find((trigger) => trigger.type === type);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Resolves the display name for a stable event type.
|
|
48
|
+
*
|
|
49
|
+
* Known trigger types use their catalog name. Unknown types fall back to the
|
|
50
|
+
* same sentence-case convention used by catalog definitions.
|
|
51
|
+
*
|
|
52
|
+
* @param type - Stable event type to name.
|
|
53
|
+
*/
|
|
54
|
+
export function getTriggerName(type) {
|
|
55
|
+
return getTriggerDefinition(type)?.name ?? sentenceCase(type);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Describes one configured trigger using its shared client-safe definition.
|
|
59
|
+
*
|
|
60
|
+
* @param context - Trigger identity, configuration, and public application
|
|
61
|
+
* origin.
|
|
62
|
+
*/
|
|
63
|
+
export function getTriggerPresentation(context) {
|
|
64
|
+
const definition = getTriggerDefinition(context.eventType);
|
|
65
|
+
return {
|
|
66
|
+
details: definition?.getDetails?.(context) ?? [],
|
|
67
|
+
name: definition?.name ?? getTriggerName(context.eventType),
|
|
68
|
+
type: context.eventType,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Infers presentation copy from a trigger's stable event type.
|
|
73
|
+
*
|
|
74
|
+
* @param definition - Trigger definition to name.
|
|
75
|
+
*/
|
|
76
|
+
function inferTriggerName(definition) {
|
|
77
|
+
const [namespace = definition.type] = definition.type.split(".");
|
|
78
|
+
const inferredName = sentenceCase(definition.type);
|
|
79
|
+
const service = definition.account?.serviceId.toLowerCase() === namespace.toLowerCase()
|
|
80
|
+
? getIntegrationService(definition.account.serviceId)
|
|
81
|
+
: undefined;
|
|
82
|
+
return service
|
|
83
|
+
? inferredName.replace(sentenceCase(namespace), service.name)
|
|
84
|
+
: inferredName;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Converts a stable identifier to a sentence-cased display name.
|
|
88
|
+
*
|
|
89
|
+
* @param value - Stable identifier to format.
|
|
90
|
+
*/
|
|
91
|
+
function sentenceCase(value) {
|
|
92
|
+
const words = value
|
|
93
|
+
.replaceAll(/([a-z\d])([A-Z])/g, "$1 $2")
|
|
94
|
+
.replaceAll(/[._-]+/g, " ")
|
|
95
|
+
.toLowerCase();
|
|
96
|
+
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
97
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const linearTriggerDefinitions: {
|
|
2
|
+
readonly linearCommentCreated: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly ["read"];
|
|
6
|
+
}];
|
|
7
|
+
readonly serviceId: "linear";
|
|
8
|
+
};
|
|
9
|
+
readonly type: "linear.comment.created";
|
|
10
|
+
};
|
|
11
|
+
readonly linearCommentEvent: {
|
|
12
|
+
readonly account: {
|
|
13
|
+
readonly connectionOptions: readonly [{
|
|
14
|
+
readonly requiredScopes: readonly ["read"];
|
|
15
|
+
}];
|
|
16
|
+
readonly serviceId: "linear";
|
|
17
|
+
};
|
|
18
|
+
readonly type: "linear.comment.event";
|
|
19
|
+
};
|
|
20
|
+
readonly linearCommentRemoved: {
|
|
21
|
+
readonly account: {
|
|
22
|
+
readonly connectionOptions: readonly [{
|
|
23
|
+
readonly requiredScopes: readonly ["read"];
|
|
24
|
+
}];
|
|
25
|
+
readonly serviceId: "linear";
|
|
26
|
+
};
|
|
27
|
+
readonly type: "linear.comment.removed";
|
|
28
|
+
};
|
|
29
|
+
readonly linearCommentUpdated: {
|
|
30
|
+
readonly account: {
|
|
31
|
+
readonly connectionOptions: readonly [{
|
|
32
|
+
readonly requiredScopes: readonly ["read"];
|
|
33
|
+
}];
|
|
34
|
+
readonly serviceId: "linear";
|
|
35
|
+
};
|
|
36
|
+
readonly type: "linear.comment.updated";
|
|
37
|
+
};
|
|
38
|
+
readonly linearIssueCreated: {
|
|
39
|
+
readonly account: {
|
|
40
|
+
readonly connectionOptions: readonly [{
|
|
41
|
+
readonly requiredScopes: readonly ["read"];
|
|
42
|
+
}];
|
|
43
|
+
readonly serviceId: "linear";
|
|
44
|
+
};
|
|
45
|
+
readonly type: "linear.issue.created";
|
|
46
|
+
};
|
|
47
|
+
readonly linearIssueEvent: {
|
|
48
|
+
readonly account: {
|
|
49
|
+
readonly connectionOptions: readonly [{
|
|
50
|
+
readonly requiredScopes: readonly ["read"];
|
|
51
|
+
}];
|
|
52
|
+
readonly serviceId: "linear";
|
|
53
|
+
};
|
|
54
|
+
readonly type: "linear.issue.event";
|
|
55
|
+
};
|
|
56
|
+
readonly linearIssueRemoved: {
|
|
57
|
+
readonly account: {
|
|
58
|
+
readonly connectionOptions: readonly [{
|
|
59
|
+
readonly requiredScopes: readonly ["read"];
|
|
60
|
+
}];
|
|
61
|
+
readonly serviceId: "linear";
|
|
62
|
+
};
|
|
63
|
+
readonly type: "linear.issue.removed";
|
|
64
|
+
};
|
|
65
|
+
readonly linearIssueUpdated: {
|
|
66
|
+
readonly account: {
|
|
67
|
+
readonly connectionOptions: readonly [{
|
|
68
|
+
readonly requiredScopes: readonly ["read"];
|
|
69
|
+
}];
|
|
70
|
+
readonly serviceId: "linear";
|
|
71
|
+
};
|
|
72
|
+
readonly type: "linear.issue.updated";
|
|
73
|
+
};
|
|
74
|
+
readonly linearProjectCreated: {
|
|
75
|
+
readonly account: {
|
|
76
|
+
readonly connectionOptions: readonly [{
|
|
77
|
+
readonly requiredScopes: readonly ["read"];
|
|
78
|
+
}];
|
|
79
|
+
readonly serviceId: "linear";
|
|
80
|
+
};
|
|
81
|
+
readonly type: "linear.project.created";
|
|
82
|
+
};
|
|
83
|
+
readonly linearProjectEvent: {
|
|
84
|
+
readonly account: {
|
|
85
|
+
readonly connectionOptions: readonly [{
|
|
86
|
+
readonly requiredScopes: readonly ["read"];
|
|
87
|
+
}];
|
|
88
|
+
readonly serviceId: "linear";
|
|
89
|
+
};
|
|
90
|
+
readonly type: "linear.project.event";
|
|
91
|
+
};
|
|
92
|
+
readonly linearProjectRemoved: {
|
|
93
|
+
readonly account: {
|
|
94
|
+
readonly connectionOptions: readonly [{
|
|
95
|
+
readonly requiredScopes: readonly ["read"];
|
|
96
|
+
}];
|
|
97
|
+
readonly serviceId: "linear";
|
|
98
|
+
};
|
|
99
|
+
readonly type: "linear.project.removed";
|
|
100
|
+
};
|
|
101
|
+
readonly linearProjectUpdated: {
|
|
102
|
+
readonly account: {
|
|
103
|
+
readonly connectionOptions: readonly [{
|
|
104
|
+
readonly requiredScopes: readonly ["read"];
|
|
105
|
+
}];
|
|
106
|
+
readonly serviceId: "linear";
|
|
107
|
+
};
|
|
108
|
+
readonly type: "linear.project.updated";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { linearService } from "../catalog.js";
|
|
2
|
+
const LINEAR_ACCOUNT = {
|
|
3
|
+
connectionOptions: [
|
|
4
|
+
{
|
|
5
|
+
requiredScopes: ["read"],
|
|
6
|
+
},
|
|
7
|
+
],
|
|
8
|
+
serviceId: linearService.id,
|
|
9
|
+
};
|
|
10
|
+
export const linearTriggerDefinitions = {
|
|
11
|
+
linearCommentCreated: {
|
|
12
|
+
account: LINEAR_ACCOUNT,
|
|
13
|
+
type: "linear.comment.created",
|
|
14
|
+
},
|
|
15
|
+
linearCommentEvent: {
|
|
16
|
+
account: LINEAR_ACCOUNT,
|
|
17
|
+
type: "linear.comment.event",
|
|
18
|
+
},
|
|
19
|
+
linearCommentRemoved: {
|
|
20
|
+
account: LINEAR_ACCOUNT,
|
|
21
|
+
type: "linear.comment.removed",
|
|
22
|
+
},
|
|
23
|
+
linearCommentUpdated: {
|
|
24
|
+
account: LINEAR_ACCOUNT,
|
|
25
|
+
type: "linear.comment.updated",
|
|
26
|
+
},
|
|
27
|
+
linearIssueCreated: {
|
|
28
|
+
account: LINEAR_ACCOUNT,
|
|
29
|
+
type: "linear.issue.created",
|
|
30
|
+
},
|
|
31
|
+
linearIssueEvent: {
|
|
32
|
+
account: LINEAR_ACCOUNT,
|
|
33
|
+
type: "linear.issue.event",
|
|
34
|
+
},
|
|
35
|
+
linearIssueRemoved: {
|
|
36
|
+
account: LINEAR_ACCOUNT,
|
|
37
|
+
type: "linear.issue.removed",
|
|
38
|
+
},
|
|
39
|
+
linearIssueUpdated: {
|
|
40
|
+
account: LINEAR_ACCOUNT,
|
|
41
|
+
type: "linear.issue.updated",
|
|
42
|
+
},
|
|
43
|
+
linearProjectCreated: {
|
|
44
|
+
account: LINEAR_ACCOUNT,
|
|
45
|
+
type: "linear.project.created",
|
|
46
|
+
},
|
|
47
|
+
linearProjectEvent: {
|
|
48
|
+
account: LINEAR_ACCOUNT,
|
|
49
|
+
type: "linear.project.event",
|
|
50
|
+
},
|
|
51
|
+
linearProjectRemoved: {
|
|
52
|
+
account: LINEAR_ACCOUNT,
|
|
53
|
+
type: "linear.project.removed",
|
|
54
|
+
},
|
|
55
|
+
linearProjectUpdated: {
|
|
56
|
+
account: LINEAR_ACCOUNT,
|
|
57
|
+
type: "linear.project.updated",
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const microsoftTriggerDefinitions: {
|
|
2
|
+
readonly outlookEmailReceived: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly [{
|
|
6
|
+
readonly requirements: readonly ["Mail.ReadWrite", "Mail.Read"];
|
|
7
|
+
readonly type: "or";
|
|
8
|
+
}];
|
|
9
|
+
}];
|
|
10
|
+
readonly serviceId: "microsoft";
|
|
11
|
+
};
|
|
12
|
+
readonly type: "outlook.email.received";
|
|
13
|
+
};
|
|
14
|
+
readonly teamsChannelMessagePosted: {
|
|
15
|
+
readonly account: {
|
|
16
|
+
readonly connectionOptions: readonly [{
|
|
17
|
+
readonly requiredScopes: readonly [{
|
|
18
|
+
readonly requirements: readonly ["ChannelMessage.Read.All", "Team.ReadBasic.All", "Channel.ReadBasic.All"];
|
|
19
|
+
readonly type: "and";
|
|
20
|
+
}];
|
|
21
|
+
}];
|
|
22
|
+
readonly serviceId: "microsoft";
|
|
23
|
+
};
|
|
24
|
+
readonly name: "Microsoft Teams channel message posted";
|
|
25
|
+
readonly type: "teams.channel.message.posted";
|
|
26
|
+
};
|
|
27
|
+
readonly teamsChatMessagePosted: {
|
|
28
|
+
readonly account: {
|
|
29
|
+
readonly connectionOptions: readonly [{
|
|
30
|
+
readonly requiredScopes: readonly [{
|
|
31
|
+
readonly requirements: readonly ["Chat.ReadWrite", "Chat.Read"];
|
|
32
|
+
readonly type: "or";
|
|
33
|
+
}];
|
|
34
|
+
}];
|
|
35
|
+
readonly serviceId: "microsoft";
|
|
36
|
+
};
|
|
37
|
+
readonly name: "Microsoft Teams chat message posted";
|
|
38
|
+
readonly type: "teams.chat.message.posted";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { microsoftService } from "../catalog.js";
|
|
2
|
+
const OUTLOOK_ACCOUNT = {
|
|
3
|
+
connectionOptions: [
|
|
4
|
+
{
|
|
5
|
+
requiredScopes: [
|
|
6
|
+
{
|
|
7
|
+
requirements: ["Mail.ReadWrite", "Mail.Read"],
|
|
8
|
+
type: "or",
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
serviceId: microsoftService.id,
|
|
14
|
+
};
|
|
15
|
+
const TEAMS_CHANNEL_MESSAGE_ACCOUNT = {
|
|
16
|
+
connectionOptions: [
|
|
17
|
+
{
|
|
18
|
+
requiredScopes: [
|
|
19
|
+
{
|
|
20
|
+
requirements: [
|
|
21
|
+
"ChannelMessage.Read.All",
|
|
22
|
+
"Team.ReadBasic.All",
|
|
23
|
+
"Channel.ReadBasic.All",
|
|
24
|
+
],
|
|
25
|
+
type: "and",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
serviceId: microsoftService.id,
|
|
31
|
+
};
|
|
32
|
+
const TEAMS_CHAT_MESSAGE_ACCOUNT = {
|
|
33
|
+
connectionOptions: [
|
|
34
|
+
{
|
|
35
|
+
requiredScopes: [
|
|
36
|
+
{
|
|
37
|
+
requirements: ["Chat.ReadWrite", "Chat.Read"],
|
|
38
|
+
type: "or",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
serviceId: microsoftService.id,
|
|
44
|
+
};
|
|
45
|
+
export const microsoftTriggerDefinitions = {
|
|
46
|
+
outlookEmailReceived: {
|
|
47
|
+
account: OUTLOOK_ACCOUNT,
|
|
48
|
+
type: "outlook.email.received",
|
|
49
|
+
},
|
|
50
|
+
teamsChannelMessagePosted: {
|
|
51
|
+
account: TEAMS_CHANNEL_MESSAGE_ACCOUNT,
|
|
52
|
+
name: "Microsoft Teams channel message posted",
|
|
53
|
+
type: "teams.channel.message.posted",
|
|
54
|
+
},
|
|
55
|
+
teamsChatMessagePosted: {
|
|
56
|
+
account: TEAMS_CHAT_MESSAGE_ACCOUNT,
|
|
57
|
+
name: "Microsoft Teams chat message posted",
|
|
58
|
+
type: "teams.chat.message.posted",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const resendTriggerDefinitions: {
|
|
2
|
+
readonly resendEmailBounced: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly [];
|
|
6
|
+
}];
|
|
7
|
+
readonly serviceId: "resend";
|
|
8
|
+
};
|
|
9
|
+
readonly type: "resend.email.bounced";
|
|
10
|
+
};
|
|
11
|
+
readonly resendEmailClicked: {
|
|
12
|
+
readonly account: {
|
|
13
|
+
readonly connectionOptions: readonly [{
|
|
14
|
+
readonly requiredScopes: readonly [];
|
|
15
|
+
}];
|
|
16
|
+
readonly serviceId: "resend";
|
|
17
|
+
};
|
|
18
|
+
readonly type: "resend.email.clicked";
|
|
19
|
+
};
|
|
20
|
+
readonly resendEmailComplained: {
|
|
21
|
+
readonly account: {
|
|
22
|
+
readonly connectionOptions: readonly [{
|
|
23
|
+
readonly requiredScopes: readonly [];
|
|
24
|
+
}];
|
|
25
|
+
readonly serviceId: "resend";
|
|
26
|
+
};
|
|
27
|
+
readonly type: "resend.email.complained";
|
|
28
|
+
};
|
|
29
|
+
readonly resendEmailDelivered: {
|
|
30
|
+
readonly account: {
|
|
31
|
+
readonly connectionOptions: readonly [{
|
|
32
|
+
readonly requiredScopes: readonly [];
|
|
33
|
+
}];
|
|
34
|
+
readonly serviceId: "resend";
|
|
35
|
+
};
|
|
36
|
+
readonly type: "resend.email.delivered";
|
|
37
|
+
};
|
|
38
|
+
readonly resendEmailDeliveryDelayed: {
|
|
39
|
+
readonly account: {
|
|
40
|
+
readonly connectionOptions: readonly [{
|
|
41
|
+
readonly requiredScopes: readonly [];
|
|
42
|
+
}];
|
|
43
|
+
readonly serviceId: "resend";
|
|
44
|
+
};
|
|
45
|
+
readonly type: "resend.email.deliveryDelayed";
|
|
46
|
+
};
|
|
47
|
+
readonly resendEmailEvent: {
|
|
48
|
+
readonly account: {
|
|
49
|
+
readonly connectionOptions: readonly [{
|
|
50
|
+
readonly requiredScopes: readonly [];
|
|
51
|
+
}];
|
|
52
|
+
readonly serviceId: "resend";
|
|
53
|
+
};
|
|
54
|
+
readonly type: "resend.email.event";
|
|
55
|
+
};
|
|
56
|
+
readonly resendEmailFailed: {
|
|
57
|
+
readonly account: {
|
|
58
|
+
readonly connectionOptions: readonly [{
|
|
59
|
+
readonly requiredScopes: readonly [];
|
|
60
|
+
}];
|
|
61
|
+
readonly serviceId: "resend";
|
|
62
|
+
};
|
|
63
|
+
readonly type: "resend.email.failed";
|
|
64
|
+
};
|
|
65
|
+
readonly resendEmailOpened: {
|
|
66
|
+
readonly account: {
|
|
67
|
+
readonly connectionOptions: readonly [{
|
|
68
|
+
readonly requiredScopes: readonly [];
|
|
69
|
+
}];
|
|
70
|
+
readonly serviceId: "resend";
|
|
71
|
+
};
|
|
72
|
+
readonly type: "resend.email.opened";
|
|
73
|
+
};
|
|
74
|
+
readonly resendEmailReceived: {
|
|
75
|
+
readonly account: {
|
|
76
|
+
readonly connectionOptions: readonly [{
|
|
77
|
+
readonly requiredScopes: readonly [];
|
|
78
|
+
}];
|
|
79
|
+
readonly serviceId: "resend";
|
|
80
|
+
};
|
|
81
|
+
readonly type: "resend.email.received";
|
|
82
|
+
};
|
|
83
|
+
readonly resendEmailScheduled: {
|
|
84
|
+
readonly account: {
|
|
85
|
+
readonly connectionOptions: readonly [{
|
|
86
|
+
readonly requiredScopes: readonly [];
|
|
87
|
+
}];
|
|
88
|
+
readonly serviceId: "resend";
|
|
89
|
+
};
|
|
90
|
+
readonly type: "resend.email.scheduled";
|
|
91
|
+
};
|
|
92
|
+
readonly resendEmailSent: {
|
|
93
|
+
readonly account: {
|
|
94
|
+
readonly connectionOptions: readonly [{
|
|
95
|
+
readonly requiredScopes: readonly [];
|
|
96
|
+
}];
|
|
97
|
+
readonly serviceId: "resend";
|
|
98
|
+
};
|
|
99
|
+
readonly type: "resend.email.sent";
|
|
100
|
+
};
|
|
101
|
+
readonly resendEmailSuppressed: {
|
|
102
|
+
readonly account: {
|
|
103
|
+
readonly connectionOptions: readonly [{
|
|
104
|
+
readonly requiredScopes: readonly [];
|
|
105
|
+
}];
|
|
106
|
+
readonly serviceId: "resend";
|
|
107
|
+
};
|
|
108
|
+
readonly type: "resend.email.suppressed";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { resendService } from "../catalog.js";
|
|
2
|
+
const RESEND_ACCOUNT = {
|
|
3
|
+
connectionOptions: [
|
|
4
|
+
{
|
|
5
|
+
requiredScopes: [],
|
|
6
|
+
},
|
|
7
|
+
],
|
|
8
|
+
serviceId: resendService.id,
|
|
9
|
+
};
|
|
10
|
+
export const resendTriggerDefinitions = {
|
|
11
|
+
resendEmailBounced: {
|
|
12
|
+
account: RESEND_ACCOUNT,
|
|
13
|
+
type: "resend.email.bounced",
|
|
14
|
+
},
|
|
15
|
+
resendEmailClicked: {
|
|
16
|
+
account: RESEND_ACCOUNT,
|
|
17
|
+
type: "resend.email.clicked",
|
|
18
|
+
},
|
|
19
|
+
resendEmailComplained: {
|
|
20
|
+
account: RESEND_ACCOUNT,
|
|
21
|
+
type: "resend.email.complained",
|
|
22
|
+
},
|
|
23
|
+
resendEmailDelivered: {
|
|
24
|
+
account: RESEND_ACCOUNT,
|
|
25
|
+
type: "resend.email.delivered",
|
|
26
|
+
},
|
|
27
|
+
resendEmailDeliveryDelayed: {
|
|
28
|
+
account: RESEND_ACCOUNT,
|
|
29
|
+
type: "resend.email.deliveryDelayed",
|
|
30
|
+
},
|
|
31
|
+
resendEmailEvent: {
|
|
32
|
+
account: RESEND_ACCOUNT,
|
|
33
|
+
type: "resend.email.event",
|
|
34
|
+
},
|
|
35
|
+
resendEmailFailed: {
|
|
36
|
+
account: RESEND_ACCOUNT,
|
|
37
|
+
type: "resend.email.failed",
|
|
38
|
+
},
|
|
39
|
+
resendEmailOpened: {
|
|
40
|
+
account: RESEND_ACCOUNT,
|
|
41
|
+
type: "resend.email.opened",
|
|
42
|
+
},
|
|
43
|
+
resendEmailReceived: {
|
|
44
|
+
account: RESEND_ACCOUNT,
|
|
45
|
+
type: "resend.email.received",
|
|
46
|
+
},
|
|
47
|
+
resendEmailScheduled: {
|
|
48
|
+
account: RESEND_ACCOUNT,
|
|
49
|
+
type: "resend.email.scheduled",
|
|
50
|
+
},
|
|
51
|
+
resendEmailSent: {
|
|
52
|
+
account: RESEND_ACCOUNT,
|
|
53
|
+
type: "resend.email.sent",
|
|
54
|
+
},
|
|
55
|
+
resendEmailSuppressed: {
|
|
56
|
+
account: RESEND_ACCOUNT,
|
|
57
|
+
type: "resend.email.suppressed",
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const slackTriggerDefinitions: {
|
|
2
|
+
readonly slackAppMentioned: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly ["app_mentions:read"];
|
|
6
|
+
}];
|
|
7
|
+
readonly serviceId: "slack";
|
|
8
|
+
};
|
|
9
|
+
readonly type: "slack.app.mentioned";
|
|
10
|
+
};
|
|
11
|
+
readonly slackMessagePosted: {
|
|
12
|
+
readonly account: {
|
|
13
|
+
readonly connectionOptions: readonly [{
|
|
14
|
+
readonly requiredScopes: readonly [{
|
|
15
|
+
readonly requirements: readonly ["channels:history", "groups:history", "im:history", "mpim:history"];
|
|
16
|
+
readonly type: "and";
|
|
17
|
+
}];
|
|
18
|
+
}];
|
|
19
|
+
readonly serviceId: "slack";
|
|
20
|
+
};
|
|
21
|
+
readonly type: "slack.message.posted";
|
|
22
|
+
};
|
|
23
|
+
readonly slackReactionAdded: {
|
|
24
|
+
readonly account: {
|
|
25
|
+
readonly connectionOptions: readonly [{
|
|
26
|
+
readonly requiredScopes: readonly ["reactions:read"];
|
|
27
|
+
}];
|
|
28
|
+
readonly serviceId: "slack";
|
|
29
|
+
};
|
|
30
|
+
readonly type: "slack.reaction.added";
|
|
31
|
+
};
|
|
32
|
+
readonly slackReactionRemoved: {
|
|
33
|
+
readonly account: {
|
|
34
|
+
readonly connectionOptions: readonly [{
|
|
35
|
+
readonly requiredScopes: readonly ["reactions:read"];
|
|
36
|
+
}];
|
|
37
|
+
readonly serviceId: "slack";
|
|
38
|
+
};
|
|
39
|
+
readonly type: "slack.reaction.removed";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { slackService } from "../catalog.js";
|
|
2
|
+
const SLACK_APP_MENTION_ACCOUNT = {
|
|
3
|
+
connectionOptions: [
|
|
4
|
+
{
|
|
5
|
+
requiredScopes: ["app_mentions:read"],
|
|
6
|
+
},
|
|
7
|
+
],
|
|
8
|
+
serviceId: slackService.id,
|
|
9
|
+
};
|
|
10
|
+
const SLACK_MESSAGE_ACCOUNT = {
|
|
11
|
+
connectionOptions: [
|
|
12
|
+
{
|
|
13
|
+
requiredScopes: [
|
|
14
|
+
{
|
|
15
|
+
requirements: [
|
|
16
|
+
"channels:history",
|
|
17
|
+
"groups:history",
|
|
18
|
+
"im:history",
|
|
19
|
+
"mpim:history",
|
|
20
|
+
],
|
|
21
|
+
type: "and",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
serviceId: slackService.id,
|
|
27
|
+
};
|
|
28
|
+
const SLACK_REACTION_ACCOUNT = {
|
|
29
|
+
connectionOptions: [
|
|
30
|
+
{
|
|
31
|
+
requiredScopes: ["reactions:read"],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
serviceId: slackService.id,
|
|
35
|
+
};
|
|
36
|
+
export const slackTriggerDefinitions = {
|
|
37
|
+
slackAppMentioned: {
|
|
38
|
+
account: SLACK_APP_MENTION_ACCOUNT,
|
|
39
|
+
type: "slack.app.mentioned",
|
|
40
|
+
},
|
|
41
|
+
slackMessagePosted: {
|
|
42
|
+
account: SLACK_MESSAGE_ACCOUNT,
|
|
43
|
+
type: "slack.message.posted",
|
|
44
|
+
},
|
|
45
|
+
slackReactionAdded: {
|
|
46
|
+
account: SLACK_REACTION_ACCOUNT,
|
|
47
|
+
type: "slack.reaction.added",
|
|
48
|
+
},
|
|
49
|
+
slackReactionRemoved: {
|
|
50
|
+
account: SLACK_REACTION_ACCOUNT,
|
|
51
|
+
type: "slack.reaction.removed",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const trelloTriggerDefinitions: {
|
|
2
|
+
readonly trelloBoardEvent: {
|
|
3
|
+
readonly account: {
|
|
4
|
+
readonly connectionOptions: readonly [{
|
|
5
|
+
readonly requiredScopes: readonly [];
|
|
6
|
+
}];
|
|
7
|
+
readonly serviceId: "trello";
|
|
8
|
+
};
|
|
9
|
+
readonly type: "trello.board.event";
|
|
10
|
+
};
|
|
11
|
+
readonly trelloCardArchived: {
|
|
12
|
+
readonly account: {
|
|
13
|
+
readonly connectionOptions: readonly [{
|
|
14
|
+
readonly requiredScopes: readonly [];
|
|
15
|
+
}];
|
|
16
|
+
readonly serviceId: "trello";
|
|
17
|
+
};
|
|
18
|
+
readonly type: "trello.card.archived";
|
|
19
|
+
};
|
|
20
|
+
readonly trelloCardCommented: {
|
|
21
|
+
readonly account: {
|
|
22
|
+
readonly connectionOptions: readonly [{
|
|
23
|
+
readonly requiredScopes: readonly [];
|
|
24
|
+
}];
|
|
25
|
+
readonly serviceId: "trello";
|
|
26
|
+
};
|
|
27
|
+
readonly type: "trello.card.commented";
|
|
28
|
+
};
|
|
29
|
+
readonly trelloCardCreated: {
|
|
30
|
+
readonly account: {
|
|
31
|
+
readonly connectionOptions: readonly [{
|
|
32
|
+
readonly requiredScopes: readonly [];
|
|
33
|
+
}];
|
|
34
|
+
readonly serviceId: "trello";
|
|
35
|
+
};
|
|
36
|
+
readonly type: "trello.card.created";
|
|
37
|
+
};
|
|
38
|
+
readonly trelloCardMoved: {
|
|
39
|
+
readonly account: {
|
|
40
|
+
readonly connectionOptions: readonly [{
|
|
41
|
+
readonly requiredScopes: readonly [];
|
|
42
|
+
}];
|
|
43
|
+
readonly serviceId: "trello";
|
|
44
|
+
};
|
|
45
|
+
readonly type: "trello.card.moved";
|
|
46
|
+
};
|
|
47
|
+
readonly trelloCardUpdated: {
|
|
48
|
+
readonly account: {
|
|
49
|
+
readonly connectionOptions: readonly [{
|
|
50
|
+
readonly requiredScopes: readonly [];
|
|
51
|
+
}];
|
|
52
|
+
readonly serviceId: "trello";
|
|
53
|
+
};
|
|
54
|
+
readonly type: "trello.card.updated";
|
|
55
|
+
};
|
|
56
|
+
};
|