@automate.ax/catalog 0.161.0 → 0.163.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 CHANGED
@@ -248,7 +248,7 @@ export declare const metaAdsService: {
248
248
  readonly name: "OAuth";
249
249
  readonly type: "redirect";
250
250
  }];
251
- readonly description: "Connect Meta Ads for campaign management, reporting, audiences, leads, conversions, and events.";
251
+ readonly description: "Connect Meta Ads for campaigns, reporting, audiences, leads, conversions, Page and Instagram comments, Messenger and Instagram messages, and events.";
252
252
  readonly id: "meta-ads";
253
253
  readonly name: "Meta Ads";
254
254
  };
@@ -1548,7 +1548,7 @@ export declare const integrationCatalog: readonly [{
1548
1548
  readonly name: "OAuth";
1549
1549
  readonly type: "redirect";
1550
1550
  }];
1551
- readonly description: "Connect Meta Ads for campaign management, reporting, audiences, leads, conversions, and events.";
1551
+ readonly description: "Connect Meta Ads for campaigns, reporting, audiences, leads, conversions, Page and Instagram comments, Messenger and Instagram messages, and events.";
1552
1552
  readonly id: "meta-ads";
1553
1553
  readonly name: "Meta Ads";
1554
1554
  }, {
package/dist/catalog.js CHANGED
@@ -203,7 +203,7 @@ export const cloudflareService = defineIntegrationService({
203
203
  });
204
204
  export const metaAdsService = defineIntegrationService({
205
205
  connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
206
- description: "Connect Meta Ads for campaign management, reporting, audiences, leads, conversions, and events.",
206
+ description: "Connect Meta Ads for campaigns, reporting, audiences, leads, conversions, Page and Instagram comments, Messenger and Instagram messages, and events.",
207
207
  id: "meta-ads",
208
208
  name: "Meta Ads",
209
209
  });
@@ -2637,6 +2637,46 @@ export declare const triggerDefinitions: {
2637
2637
  };
2638
2638
  readonly type: "meta-ads.event";
2639
2639
  };
2640
+ readonly metaAdsInstagramCommentCreated: {
2641
+ readonly account: {
2642
+ readonly connectionOptions: readonly [{
2643
+ readonly connectionMethodId: "oauth";
2644
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2645
+ }];
2646
+ readonly serviceId: "meta-ads";
2647
+ };
2648
+ readonly type: "meta-ads.instagramComment.created";
2649
+ };
2650
+ readonly metaAdsInstagramMentionCreated: {
2651
+ readonly account: {
2652
+ readonly connectionOptions: readonly [{
2653
+ readonly connectionMethodId: "oauth";
2654
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2655
+ }];
2656
+ readonly serviceId: "meta-ads";
2657
+ };
2658
+ readonly type: "meta-ads.instagramMention.created";
2659
+ };
2660
+ readonly metaAdsInstagramMessageDeleted: {
2661
+ readonly account: {
2662
+ readonly connectionOptions: readonly [{
2663
+ readonly connectionMethodId: "oauth";
2664
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2665
+ }];
2666
+ readonly serviceId: "meta-ads";
2667
+ };
2668
+ readonly type: "meta-ads.instagramMessage.deleted";
2669
+ };
2670
+ readonly metaAdsInstagramMessageReceived: {
2671
+ readonly account: {
2672
+ readonly connectionOptions: readonly [{
2673
+ readonly connectionMethodId: "oauth";
2674
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2675
+ }];
2676
+ readonly serviceId: "meta-ads";
2677
+ };
2678
+ readonly type: "meta-ads.instagramMessage.received";
2679
+ };
2640
2680
  readonly metaAdsLeadCreated: {
2641
2681
  readonly account: {
2642
2682
  readonly connectionOptions: readonly [{
@@ -2647,6 +2687,16 @@ export declare const triggerDefinitions: {
2647
2687
  };
2648
2688
  readonly type: "meta-ads.lead.created";
2649
2689
  };
2690
+ readonly metaAdsMessengerMessageReceived: {
2691
+ readonly account: {
2692
+ readonly connectionOptions: readonly [{
2693
+ readonly connectionMethodId: "oauth";
2694
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2695
+ }];
2696
+ readonly serviceId: "meta-ads";
2697
+ };
2698
+ readonly type: "meta-ads.messengerMessage.received";
2699
+ };
2650
2700
  readonly metaAdsObjectCreated: {
2651
2701
  readonly account: {
2652
2702
  readonly connectionOptions: readonly [{
@@ -2667,6 +2717,16 @@ export declare const triggerDefinitions: {
2667
2717
  };
2668
2718
  readonly type: "meta-ads.object.updated";
2669
2719
  };
2720
+ readonly metaAdsPageCommentCreated: {
2721
+ readonly account: {
2722
+ readonly connectionOptions: readonly [{
2723
+ readonly connectionMethodId: "oauth";
2724
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
2725
+ }];
2726
+ readonly serviceId: "meta-ads";
2727
+ };
2728
+ readonly type: "meta-ads.pageComment.created";
2729
+ };
2670
2730
  readonly metaAdsInsightsUpdated: {
2671
2731
  readonly account: {
2672
2732
  readonly connectionOptions: readonly [{
@@ -17141,6 +17201,46 @@ export declare const triggerCatalog: ({
17141
17201
  readonly serviceId: "meta-ads";
17142
17202
  };
17143
17203
  type: "meta-ads.event";
17204
+ } | {
17205
+ name: string;
17206
+ account: {
17207
+ readonly connectionOptions: readonly [{
17208
+ readonly connectionMethodId: "oauth";
17209
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17210
+ }];
17211
+ readonly serviceId: "meta-ads";
17212
+ };
17213
+ type: "meta-ads.instagramComment.created";
17214
+ } | {
17215
+ name: string;
17216
+ account: {
17217
+ readonly connectionOptions: readonly [{
17218
+ readonly connectionMethodId: "oauth";
17219
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17220
+ }];
17221
+ readonly serviceId: "meta-ads";
17222
+ };
17223
+ type: "meta-ads.instagramMention.created";
17224
+ } | {
17225
+ name: string;
17226
+ account: {
17227
+ readonly connectionOptions: readonly [{
17228
+ readonly connectionMethodId: "oauth";
17229
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17230
+ }];
17231
+ readonly serviceId: "meta-ads";
17232
+ };
17233
+ type: "meta-ads.instagramMessage.deleted";
17234
+ } | {
17235
+ name: string;
17236
+ account: {
17237
+ readonly connectionOptions: readonly [{
17238
+ readonly connectionMethodId: "oauth";
17239
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17240
+ }];
17241
+ readonly serviceId: "meta-ads";
17242
+ };
17243
+ type: "meta-ads.instagramMessage.received";
17144
17244
  } | {
17145
17245
  name: string;
17146
17246
  account: {
@@ -17151,6 +17251,16 @@ export declare const triggerCatalog: ({
17151
17251
  readonly serviceId: "meta-ads";
17152
17252
  };
17153
17253
  type: "meta-ads.lead.created";
17254
+ } | {
17255
+ name: string;
17256
+ account: {
17257
+ readonly connectionOptions: readonly [{
17258
+ readonly connectionMethodId: "oauth";
17259
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17260
+ }];
17261
+ readonly serviceId: "meta-ads";
17262
+ };
17263
+ type: "meta-ads.messengerMessage.received";
17154
17264
  } | {
17155
17265
  name: string;
17156
17266
  account: {
@@ -17171,6 +17281,16 @@ export declare const triggerCatalog: ({
17171
17281
  readonly serviceId: "meta-ads";
17172
17282
  };
17173
17283
  type: "meta-ads.object.updated";
17284
+ } | {
17285
+ name: string;
17286
+ account: {
17287
+ readonly connectionOptions: readonly [{
17288
+ readonly connectionMethodId: "oauth";
17289
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
17290
+ }];
17291
+ readonly serviceId: "meta-ads";
17292
+ };
17293
+ type: "meta-ads.pageComment.created";
17174
17294
  } | {
17175
17295
  name: string;
17176
17296
  account: {
@@ -79,6 +79,46 @@ export declare const metaAdsTriggerDefinitions: {
79
79
  };
80
80
  readonly type: "meta-ads.event";
81
81
  };
82
+ readonly metaAdsInstagramCommentCreated: {
83
+ readonly account: {
84
+ readonly connectionOptions: readonly [{
85
+ readonly connectionMethodId: "oauth";
86
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
87
+ }];
88
+ readonly serviceId: "meta-ads";
89
+ };
90
+ readonly type: "meta-ads.instagramComment.created";
91
+ };
92
+ readonly metaAdsInstagramMentionCreated: {
93
+ readonly account: {
94
+ readonly connectionOptions: readonly [{
95
+ readonly connectionMethodId: "oauth";
96
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
97
+ }];
98
+ readonly serviceId: "meta-ads";
99
+ };
100
+ readonly type: "meta-ads.instagramMention.created";
101
+ };
102
+ readonly metaAdsInstagramMessageDeleted: {
103
+ readonly account: {
104
+ readonly connectionOptions: readonly [{
105
+ readonly connectionMethodId: "oauth";
106
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
107
+ }];
108
+ readonly serviceId: "meta-ads";
109
+ };
110
+ readonly type: "meta-ads.instagramMessage.deleted";
111
+ };
112
+ readonly metaAdsInstagramMessageReceived: {
113
+ readonly account: {
114
+ readonly connectionOptions: readonly [{
115
+ readonly connectionMethodId: "oauth";
116
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
117
+ }];
118
+ readonly serviceId: "meta-ads";
119
+ };
120
+ readonly type: "meta-ads.instagramMessage.received";
121
+ };
82
122
  readonly metaAdsLeadCreated: {
83
123
  readonly account: {
84
124
  readonly connectionOptions: readonly [{
@@ -89,6 +129,16 @@ export declare const metaAdsTriggerDefinitions: {
89
129
  };
90
130
  readonly type: "meta-ads.lead.created";
91
131
  };
132
+ readonly metaAdsMessengerMessageReceived: {
133
+ readonly account: {
134
+ readonly connectionOptions: readonly [{
135
+ readonly connectionMethodId: "oauth";
136
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
137
+ }];
138
+ readonly serviceId: "meta-ads";
139
+ };
140
+ readonly type: "meta-ads.messengerMessage.received";
141
+ };
92
142
  readonly metaAdsObjectCreated: {
93
143
  readonly account: {
94
144
  readonly connectionOptions: readonly [{
@@ -109,6 +159,16 @@ export declare const metaAdsTriggerDefinitions: {
109
159
  };
110
160
  readonly type: "meta-ads.object.updated";
111
161
  };
162
+ readonly metaAdsPageCommentCreated: {
163
+ readonly account: {
164
+ readonly connectionOptions: readonly [{
165
+ readonly connectionMethodId: "oauth";
166
+ readonly requiredScopes: readonly [import("..").ScopeRequirementGroup];
167
+ }];
168
+ readonly serviceId: "meta-ads";
169
+ };
170
+ readonly type: "meta-ads.pageComment.created";
171
+ };
112
172
  readonly metaAdsInsightsUpdated: {
113
173
  readonly account: {
114
174
  readonly connectionOptions: readonly [{
@@ -19,6 +19,26 @@ const LEAD_ACCOUNT = {
19
19
  ],
20
20
  serviceId: "meta-ads",
21
21
  };
22
+ /**
23
+ * Builds a Meta OAuth requirement for one set of Graph permissions.
24
+ *
25
+ * @param scopes - Permissions every trigger subscription needs.
26
+ */
27
+ function metaAccount(...scopes) {
28
+ return {
29
+ connectionOptions: [
30
+ {
31
+ connectionMethodId: "oauth",
32
+ requiredScopes: [integrationScope.and(...scopes)],
33
+ },
34
+ ],
35
+ serviceId: "meta-ads",
36
+ };
37
+ }
38
+ const PAGE_COMMENT_ACCOUNT = metaAccount("pages_manage_metadata", "pages_read_user_content", "pages_show_list");
39
+ const MESSENGER_ACCOUNT = metaAccount("pages_manage_metadata", "pages_messaging", "pages_show_list");
40
+ const INSTAGRAM_COMMENT_ACCOUNT = metaAccount("instagram_basic", "instagram_manage_comments", "pages_manage_metadata", "pages_read_engagement", "pages_show_list");
41
+ const INSTAGRAM_MESSAGE_ACCOUNT = metaAccount("instagram_basic", "instagram_manage_messages", "pages_manage_metadata", "pages_read_engagement", "pages_show_list");
22
42
  export const metaAdsTriggerDefinitions = {
23
43
  metaAdsAdEffectiveStatusChanged: {
24
44
  account: WEBHOOK_ACCOUNT,
@@ -49,10 +69,30 @@ export const metaAdsTriggerDefinitions = {
49
69
  type: "meta-ads.creativeFatigue.changed",
50
70
  },
51
71
  metaAdsEvent: { account: WEBHOOK_ACCOUNT, type: "meta-ads.event" },
72
+ metaAdsInstagramCommentCreated: {
73
+ account: INSTAGRAM_COMMENT_ACCOUNT,
74
+ type: "meta-ads.instagramComment.created",
75
+ },
76
+ metaAdsInstagramMentionCreated: {
77
+ account: INSTAGRAM_COMMENT_ACCOUNT,
78
+ type: "meta-ads.instagramMention.created",
79
+ },
80
+ metaAdsInstagramMessageDeleted: {
81
+ account: INSTAGRAM_MESSAGE_ACCOUNT,
82
+ type: "meta-ads.instagramMessage.deleted",
83
+ },
84
+ metaAdsInstagramMessageReceived: {
85
+ account: INSTAGRAM_MESSAGE_ACCOUNT,
86
+ type: "meta-ads.instagramMessage.received",
87
+ },
52
88
  metaAdsLeadCreated: {
53
89
  account: LEAD_ACCOUNT,
54
90
  type: "meta-ads.lead.created",
55
91
  },
92
+ metaAdsMessengerMessageReceived: {
93
+ account: MESSENGER_ACCOUNT,
94
+ type: "meta-ads.messengerMessage.received",
95
+ },
56
96
  metaAdsObjectCreated: {
57
97
  account: WEBHOOK_ACCOUNT,
58
98
  type: "meta-ads.object.created",
@@ -61,6 +101,10 @@ export const metaAdsTriggerDefinitions = {
61
101
  account: WEBHOOK_ACCOUNT,
62
102
  type: "meta-ads.object.updated",
63
103
  },
104
+ metaAdsPageCommentCreated: {
105
+ account: PAGE_COMMENT_ACCOUNT,
106
+ type: "meta-ads.pageComment.created",
107
+ },
64
108
  metaAdsInsightsUpdated: {
65
109
  account: WEBHOOK_ACCOUNT,
66
110
  type: "meta-ads.insights.updated",
package/package.json CHANGED
@@ -1,17 +1,9 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.161.0",
3
+ "version": "0.163.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/zachsents/automate.ax.git",
9
- "directory": "packages/catalog"
10
- },
11
- "homepage": "https://automate.ax",
12
- "bugs": {
13
- "url": "https://github.com/zachsents/automate.ax/issues"
14
- },
6
+ "homepage": "https://docs.automate.ax",
15
7
  "type": "module",
16
8
  "publishConfig": {
17
9
  "access": "public"
package/src/catalog.ts CHANGED
@@ -226,7 +226,7 @@ export const cloudflareService = defineIntegrationService({
226
226
  export const metaAdsService = defineIntegrationService({
227
227
  connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
228
228
  description:
229
- "Connect Meta Ads for campaign management, reporting, audiences, leads, conversions, and events.",
229
+ "Connect Meta Ads for campaigns, reporting, audiences, leads, conversions, Page and Instagram comments, Messenger and Instagram messages, and events.",
230
230
  id: "meta-ads",
231
231
  name: "Meta Ads",
232
232
  })
@@ -28,6 +28,51 @@ const LEAD_ACCOUNT = {
28
28
  serviceId: "meta-ads",
29
29
  } as const satisfies IntegrationAccountRequirement
30
30
 
31
+ /**
32
+ * Builds a Meta OAuth requirement for one set of Graph permissions.
33
+ *
34
+ * @param scopes - Permissions every trigger subscription needs.
35
+ */
36
+ function metaAccount(...scopes: string[]) {
37
+ return {
38
+ connectionOptions: [
39
+ {
40
+ connectionMethodId: "oauth",
41
+ requiredScopes: [integrationScope.and(...scopes)],
42
+ },
43
+ ],
44
+ serviceId: "meta-ads",
45
+ } as const satisfies IntegrationAccountRequirement
46
+ }
47
+
48
+ const PAGE_COMMENT_ACCOUNT = metaAccount(
49
+ "pages_manage_metadata",
50
+ "pages_read_user_content",
51
+ "pages_show_list",
52
+ )
53
+
54
+ const MESSENGER_ACCOUNT = metaAccount(
55
+ "pages_manage_metadata",
56
+ "pages_messaging",
57
+ "pages_show_list",
58
+ )
59
+
60
+ const INSTAGRAM_COMMENT_ACCOUNT = metaAccount(
61
+ "instagram_basic",
62
+ "instagram_manage_comments",
63
+ "pages_manage_metadata",
64
+ "pages_read_engagement",
65
+ "pages_show_list",
66
+ )
67
+
68
+ const INSTAGRAM_MESSAGE_ACCOUNT = metaAccount(
69
+ "instagram_basic",
70
+ "instagram_manage_messages",
71
+ "pages_manage_metadata",
72
+ "pages_read_engagement",
73
+ "pages_show_list",
74
+ )
75
+
31
76
  export const metaAdsTriggerDefinitions = {
32
77
  metaAdsAdEffectiveStatusChanged: {
33
78
  account: WEBHOOK_ACCOUNT,
@@ -58,10 +103,30 @@ export const metaAdsTriggerDefinitions = {
58
103
  type: "meta-ads.creativeFatigue.changed",
59
104
  },
60
105
  metaAdsEvent: { account: WEBHOOK_ACCOUNT, type: "meta-ads.event" },
106
+ metaAdsInstagramCommentCreated: {
107
+ account: INSTAGRAM_COMMENT_ACCOUNT,
108
+ type: "meta-ads.instagramComment.created",
109
+ },
110
+ metaAdsInstagramMentionCreated: {
111
+ account: INSTAGRAM_COMMENT_ACCOUNT,
112
+ type: "meta-ads.instagramMention.created",
113
+ },
114
+ metaAdsInstagramMessageDeleted: {
115
+ account: INSTAGRAM_MESSAGE_ACCOUNT,
116
+ type: "meta-ads.instagramMessage.deleted",
117
+ },
118
+ metaAdsInstagramMessageReceived: {
119
+ account: INSTAGRAM_MESSAGE_ACCOUNT,
120
+ type: "meta-ads.instagramMessage.received",
121
+ },
61
122
  metaAdsLeadCreated: {
62
123
  account: LEAD_ACCOUNT,
63
124
  type: "meta-ads.lead.created",
64
125
  },
126
+ metaAdsMessengerMessageReceived: {
127
+ account: MESSENGER_ACCOUNT,
128
+ type: "meta-ads.messengerMessage.received",
129
+ },
65
130
  metaAdsObjectCreated: {
66
131
  account: WEBHOOK_ACCOUNT,
67
132
  type: "meta-ads.object.created",
@@ -70,6 +135,10 @@ export const metaAdsTriggerDefinitions = {
70
135
  account: WEBHOOK_ACCOUNT,
71
136
  type: "meta-ads.object.updated",
72
137
  },
138
+ metaAdsPageCommentCreated: {
139
+ account: PAGE_COMMENT_ACCOUNT,
140
+ type: "meta-ads.pageComment.created",
141
+ },
73
142
  metaAdsInsightsUpdated: {
74
143
  account: WEBHOOK_ACCOUNT,
75
144
  type: "meta-ads.insights.updated",