@automate.ax/catalog 0.124.0 → 0.125.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
@@ -64,6 +64,24 @@ export declare const apolloService: {
64
64
  readonly name: "Apollo";
65
65
  readonly preferredConnectionMethodId: "oauth";
66
66
  };
67
+ export declare const apifyService: {
68
+ readonly connectionMethods: readonly [{
69
+ readonly credentialUrl: "https://console.apify.com/settings/integrations";
70
+ readonly fields: readonly [{
71
+ readonly input: "password";
72
+ readonly label: "API token";
73
+ readonly name: "apiKey";
74
+ readonly placeholder: "apify_api_...";
75
+ readonly required: true;
76
+ }];
77
+ readonly id: "api-token";
78
+ readonly name: "API token";
79
+ readonly type: "form";
80
+ }];
81
+ readonly description: "Connect an Apify account with an API token.";
82
+ readonly id: "apify";
83
+ readonly name: "Apify";
84
+ };
67
85
  export declare const asanaService: {
68
86
  readonly connectionMethods: readonly [{
69
87
  readonly id: "oauth";
@@ -995,6 +1013,23 @@ export declare const integrationCatalog: readonly [{
995
1013
  readonly id: "apollo";
996
1014
  readonly name: "Apollo";
997
1015
  readonly preferredConnectionMethodId: "oauth";
1016
+ }, {
1017
+ readonly connectionMethods: readonly [{
1018
+ readonly credentialUrl: "https://console.apify.com/settings/integrations";
1019
+ readonly fields: readonly [{
1020
+ readonly input: "password";
1021
+ readonly label: "API token";
1022
+ readonly name: "apiKey";
1023
+ readonly placeholder: "apify_api_...";
1024
+ readonly required: true;
1025
+ }];
1026
+ readonly id: "api-token";
1027
+ readonly name: "API token";
1028
+ readonly type: "form";
1029
+ }];
1030
+ readonly description: "Connect an Apify account with an API token.";
1031
+ readonly id: "apify";
1032
+ readonly name: "Apify";
998
1033
  }, {
999
1034
  readonly connectionMethods: readonly [{
1000
1035
  readonly id: "oauth";
package/dist/catalog.js CHANGED
@@ -50,6 +50,28 @@ export const apolloService = defineIntegrationService({
50
50
  name: "Apollo",
51
51
  preferredConnectionMethodId: "oauth",
52
52
  });
53
+ export const apifyService = defineIntegrationService({
54
+ connectionMethods: [
55
+ {
56
+ credentialUrl: "https://console.apify.com/settings/integrations",
57
+ fields: [
58
+ {
59
+ input: "password",
60
+ label: "API token",
61
+ name: "apiKey",
62
+ placeholder: "apify_api_...",
63
+ required: true,
64
+ },
65
+ ],
66
+ id: "api-token",
67
+ name: "API token",
68
+ type: "form",
69
+ },
70
+ ],
71
+ description: "Connect an Apify account with an API token.",
72
+ id: "apify",
73
+ name: "Apify",
74
+ });
53
75
  export const asanaService = defineIntegrationService({
54
76
  connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
55
77
  description: "Connect an Asana account.",
@@ -620,6 +642,7 @@ export const integrationCatalog = defineIntegrationCatalog([
620
642
  airtableService,
621
643
  anthropicService,
622
644
  apolloService,
645
+ apifyService,
623
646
  asanaService,
624
647
  automateService,
625
648
  brevoService,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { airtableService, anthropicService, apolloService, asanaService, automateService, 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, 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, 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, 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, asanaService, automateService, 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, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, } from "./catalog.js";
1
+ export { airtableService, anthropicService, apolloService, apifyService, asanaService, automateService, 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, 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,132 @@
1
+ export declare const apifyTriggerDefinitions: {
2
+ readonly apifyActorBuildAborted: {
3
+ readonly account: {
4
+ readonly connectionOptions: readonly [{
5
+ readonly connectionMethodId: "api-token";
6
+ readonly requiredScopes: readonly [];
7
+ }];
8
+ readonly serviceId: "apify";
9
+ };
10
+ readonly type: "apify.actorBuild.aborted";
11
+ };
12
+ readonly apifyActorBuildCreated: {
13
+ readonly account: {
14
+ readonly connectionOptions: readonly [{
15
+ readonly connectionMethodId: "api-token";
16
+ readonly requiredScopes: readonly [];
17
+ }];
18
+ readonly serviceId: "apify";
19
+ };
20
+ readonly type: "apify.actorBuild.created";
21
+ };
22
+ readonly apifyActorBuildEvent: {
23
+ readonly account: {
24
+ readonly connectionOptions: readonly [{
25
+ readonly connectionMethodId: "api-token";
26
+ readonly requiredScopes: readonly [];
27
+ }];
28
+ readonly serviceId: "apify";
29
+ };
30
+ readonly type: "apify.actorBuild.event";
31
+ };
32
+ readonly apifyActorBuildFailed: {
33
+ readonly account: {
34
+ readonly connectionOptions: readonly [{
35
+ readonly connectionMethodId: "api-token";
36
+ readonly requiredScopes: readonly [];
37
+ }];
38
+ readonly serviceId: "apify";
39
+ };
40
+ readonly type: "apify.actorBuild.failed";
41
+ };
42
+ readonly apifyActorBuildSucceeded: {
43
+ readonly account: {
44
+ readonly connectionOptions: readonly [{
45
+ readonly connectionMethodId: "api-token";
46
+ readonly requiredScopes: readonly [];
47
+ }];
48
+ readonly serviceId: "apify";
49
+ };
50
+ readonly type: "apify.actorBuild.succeeded";
51
+ };
52
+ readonly apifyActorBuildTimedOut: {
53
+ readonly account: {
54
+ readonly connectionOptions: readonly [{
55
+ readonly connectionMethodId: "api-token";
56
+ readonly requiredScopes: readonly [];
57
+ }];
58
+ readonly serviceId: "apify";
59
+ };
60
+ readonly type: "apify.actorBuild.timedOut";
61
+ };
62
+ readonly apifyActorRunAborted: {
63
+ readonly account: {
64
+ readonly connectionOptions: readonly [{
65
+ readonly connectionMethodId: "api-token";
66
+ readonly requiredScopes: readonly [];
67
+ }];
68
+ readonly serviceId: "apify";
69
+ };
70
+ readonly type: "apify.actorRun.aborted";
71
+ };
72
+ readonly apifyActorRunCreated: {
73
+ readonly account: {
74
+ readonly connectionOptions: readonly [{
75
+ readonly connectionMethodId: "api-token";
76
+ readonly requiredScopes: readonly [];
77
+ }];
78
+ readonly serviceId: "apify";
79
+ };
80
+ readonly type: "apify.actorRun.created";
81
+ };
82
+ readonly apifyActorRunEvent: {
83
+ readonly account: {
84
+ readonly connectionOptions: readonly [{
85
+ readonly connectionMethodId: "api-token";
86
+ readonly requiredScopes: readonly [];
87
+ }];
88
+ readonly serviceId: "apify";
89
+ };
90
+ readonly type: "apify.actorRun.event";
91
+ };
92
+ readonly apifyActorRunFailed: {
93
+ readonly account: {
94
+ readonly connectionOptions: readonly [{
95
+ readonly connectionMethodId: "api-token";
96
+ readonly requiredScopes: readonly [];
97
+ }];
98
+ readonly serviceId: "apify";
99
+ };
100
+ readonly type: "apify.actorRun.failed";
101
+ };
102
+ readonly apifyActorRunResurrected: {
103
+ readonly account: {
104
+ readonly connectionOptions: readonly [{
105
+ readonly connectionMethodId: "api-token";
106
+ readonly requiredScopes: readonly [];
107
+ }];
108
+ readonly serviceId: "apify";
109
+ };
110
+ readonly type: "apify.actorRun.resurrected";
111
+ };
112
+ readonly apifyActorRunSucceeded: {
113
+ readonly account: {
114
+ readonly connectionOptions: readonly [{
115
+ readonly connectionMethodId: "api-token";
116
+ readonly requiredScopes: readonly [];
117
+ }];
118
+ readonly serviceId: "apify";
119
+ };
120
+ readonly type: "apify.actorRun.succeeded";
121
+ };
122
+ readonly apifyActorRunTimedOut: {
123
+ readonly account: {
124
+ readonly connectionOptions: readonly [{
125
+ readonly connectionMethodId: "api-token";
126
+ readonly requiredScopes: readonly [];
127
+ }];
128
+ readonly serviceId: "apify";
129
+ };
130
+ readonly type: "apify.actorRun.timedOut";
131
+ };
132
+ };
@@ -0,0 +1,27 @@
1
+ const APIFY_ACCOUNT = {
2
+ connectionOptions: [{ connectionMethodId: "api-token", requiredScopes: [] }],
3
+ serviceId: "apify",
4
+ };
5
+ export const apifyTriggerDefinitions = {
6
+ apifyActorBuildAborted: apifyTrigger("apify.actorBuild.aborted"),
7
+ apifyActorBuildCreated: apifyTrigger("apify.actorBuild.created"),
8
+ apifyActorBuildEvent: apifyTrigger("apify.actorBuild.event"),
9
+ apifyActorBuildFailed: apifyTrigger("apify.actorBuild.failed"),
10
+ apifyActorBuildSucceeded: apifyTrigger("apify.actorBuild.succeeded"),
11
+ apifyActorBuildTimedOut: apifyTrigger("apify.actorBuild.timedOut"),
12
+ apifyActorRunAborted: apifyTrigger("apify.actorRun.aborted"),
13
+ apifyActorRunCreated: apifyTrigger("apify.actorRun.created"),
14
+ apifyActorRunEvent: apifyTrigger("apify.actorRun.event"),
15
+ apifyActorRunFailed: apifyTrigger("apify.actorRun.failed"),
16
+ apifyActorRunResurrected: apifyTrigger("apify.actorRun.resurrected"),
17
+ apifyActorRunSucceeded: apifyTrigger("apify.actorRun.succeeded"),
18
+ apifyActorRunTimedOut: apifyTrigger("apify.actorRun.timedOut"),
19
+ };
20
+ /**
21
+ * Creates one Apify trigger definition with its shared account requirement.
22
+ *
23
+ * @param type - Registered Apify event type.
24
+ */
25
+ function apifyTrigger(type) {
26
+ return { account: APIFY_ACCOUNT, type };
27
+ }
@@ -7153,6 +7153,136 @@ export declare const triggerDefinitions: {
7153
7153
  readonly account: import("..").IntegrationAccountRequirement<"airtable">;
7154
7154
  readonly type: "airtable.table.updated";
7155
7155
  };
7156
+ readonly apifyActorBuildAborted: {
7157
+ readonly account: {
7158
+ readonly connectionOptions: readonly [{
7159
+ readonly connectionMethodId: "api-token";
7160
+ readonly requiredScopes: readonly [];
7161
+ }];
7162
+ readonly serviceId: "apify";
7163
+ };
7164
+ readonly type: "apify.actorBuild.aborted";
7165
+ };
7166
+ readonly apifyActorBuildCreated: {
7167
+ readonly account: {
7168
+ readonly connectionOptions: readonly [{
7169
+ readonly connectionMethodId: "api-token";
7170
+ readonly requiredScopes: readonly [];
7171
+ }];
7172
+ readonly serviceId: "apify";
7173
+ };
7174
+ readonly type: "apify.actorBuild.created";
7175
+ };
7176
+ readonly apifyActorBuildEvent: {
7177
+ readonly account: {
7178
+ readonly connectionOptions: readonly [{
7179
+ readonly connectionMethodId: "api-token";
7180
+ readonly requiredScopes: readonly [];
7181
+ }];
7182
+ readonly serviceId: "apify";
7183
+ };
7184
+ readonly type: "apify.actorBuild.event";
7185
+ };
7186
+ readonly apifyActorBuildFailed: {
7187
+ readonly account: {
7188
+ readonly connectionOptions: readonly [{
7189
+ readonly connectionMethodId: "api-token";
7190
+ readonly requiredScopes: readonly [];
7191
+ }];
7192
+ readonly serviceId: "apify";
7193
+ };
7194
+ readonly type: "apify.actorBuild.failed";
7195
+ };
7196
+ readonly apifyActorBuildSucceeded: {
7197
+ readonly account: {
7198
+ readonly connectionOptions: readonly [{
7199
+ readonly connectionMethodId: "api-token";
7200
+ readonly requiredScopes: readonly [];
7201
+ }];
7202
+ readonly serviceId: "apify";
7203
+ };
7204
+ readonly type: "apify.actorBuild.succeeded";
7205
+ };
7206
+ readonly apifyActorBuildTimedOut: {
7207
+ readonly account: {
7208
+ readonly connectionOptions: readonly [{
7209
+ readonly connectionMethodId: "api-token";
7210
+ readonly requiredScopes: readonly [];
7211
+ }];
7212
+ readonly serviceId: "apify";
7213
+ };
7214
+ readonly type: "apify.actorBuild.timedOut";
7215
+ };
7216
+ readonly apifyActorRunAborted: {
7217
+ readonly account: {
7218
+ readonly connectionOptions: readonly [{
7219
+ readonly connectionMethodId: "api-token";
7220
+ readonly requiredScopes: readonly [];
7221
+ }];
7222
+ readonly serviceId: "apify";
7223
+ };
7224
+ readonly type: "apify.actorRun.aborted";
7225
+ };
7226
+ readonly apifyActorRunCreated: {
7227
+ readonly account: {
7228
+ readonly connectionOptions: readonly [{
7229
+ readonly connectionMethodId: "api-token";
7230
+ readonly requiredScopes: readonly [];
7231
+ }];
7232
+ readonly serviceId: "apify";
7233
+ };
7234
+ readonly type: "apify.actorRun.created";
7235
+ };
7236
+ readonly apifyActorRunEvent: {
7237
+ readonly account: {
7238
+ readonly connectionOptions: readonly [{
7239
+ readonly connectionMethodId: "api-token";
7240
+ readonly requiredScopes: readonly [];
7241
+ }];
7242
+ readonly serviceId: "apify";
7243
+ };
7244
+ readonly type: "apify.actorRun.event";
7245
+ };
7246
+ readonly apifyActorRunFailed: {
7247
+ readonly account: {
7248
+ readonly connectionOptions: readonly [{
7249
+ readonly connectionMethodId: "api-token";
7250
+ readonly requiredScopes: readonly [];
7251
+ }];
7252
+ readonly serviceId: "apify";
7253
+ };
7254
+ readonly type: "apify.actorRun.failed";
7255
+ };
7256
+ readonly apifyActorRunResurrected: {
7257
+ readonly account: {
7258
+ readonly connectionOptions: readonly [{
7259
+ readonly connectionMethodId: "api-token";
7260
+ readonly requiredScopes: readonly [];
7261
+ }];
7262
+ readonly serviceId: "apify";
7263
+ };
7264
+ readonly type: "apify.actorRun.resurrected";
7265
+ };
7266
+ readonly apifyActorRunSucceeded: {
7267
+ readonly account: {
7268
+ readonly connectionOptions: readonly [{
7269
+ readonly connectionMethodId: "api-token";
7270
+ readonly requiredScopes: readonly [];
7271
+ }];
7272
+ readonly serviceId: "apify";
7273
+ };
7274
+ readonly type: "apify.actorRun.succeeded";
7275
+ };
7276
+ readonly apifyActorRunTimedOut: {
7277
+ readonly account: {
7278
+ readonly connectionOptions: readonly [{
7279
+ readonly connectionMethodId: "api-token";
7280
+ readonly requiredScopes: readonly [];
7281
+ }];
7282
+ readonly serviceId: "apify";
7283
+ };
7284
+ readonly type: "apify.actorRun.timedOut";
7285
+ };
7156
7286
  };
7157
7287
  /** Trigger definitions with inferred display names materialized. */
7158
7288
  export declare const triggerCatalog: ({
@@ -7203,6 +7333,136 @@ export declare const triggerCatalog: ({
7203
7333
  name: string;
7204
7334
  account: import("..").IntegrationAccountRequirement<"airtable">;
7205
7335
  type: "airtable.table.updated";
7336
+ } | {
7337
+ name: string;
7338
+ account: {
7339
+ readonly connectionOptions: readonly [{
7340
+ readonly connectionMethodId: "api-token";
7341
+ readonly requiredScopes: readonly [];
7342
+ }];
7343
+ readonly serviceId: "apify";
7344
+ };
7345
+ type: "apify.actorBuild.aborted";
7346
+ } | {
7347
+ name: string;
7348
+ account: {
7349
+ readonly connectionOptions: readonly [{
7350
+ readonly connectionMethodId: "api-token";
7351
+ readonly requiredScopes: readonly [];
7352
+ }];
7353
+ readonly serviceId: "apify";
7354
+ };
7355
+ type: "apify.actorBuild.created";
7356
+ } | {
7357
+ name: string;
7358
+ account: {
7359
+ readonly connectionOptions: readonly [{
7360
+ readonly connectionMethodId: "api-token";
7361
+ readonly requiredScopes: readonly [];
7362
+ }];
7363
+ readonly serviceId: "apify";
7364
+ };
7365
+ type: "apify.actorBuild.event";
7366
+ } | {
7367
+ name: string;
7368
+ account: {
7369
+ readonly connectionOptions: readonly [{
7370
+ readonly connectionMethodId: "api-token";
7371
+ readonly requiredScopes: readonly [];
7372
+ }];
7373
+ readonly serviceId: "apify";
7374
+ };
7375
+ type: "apify.actorBuild.failed";
7376
+ } | {
7377
+ name: string;
7378
+ account: {
7379
+ readonly connectionOptions: readonly [{
7380
+ readonly connectionMethodId: "api-token";
7381
+ readonly requiredScopes: readonly [];
7382
+ }];
7383
+ readonly serviceId: "apify";
7384
+ };
7385
+ type: "apify.actorBuild.succeeded";
7386
+ } | {
7387
+ name: string;
7388
+ account: {
7389
+ readonly connectionOptions: readonly [{
7390
+ readonly connectionMethodId: "api-token";
7391
+ readonly requiredScopes: readonly [];
7392
+ }];
7393
+ readonly serviceId: "apify";
7394
+ };
7395
+ type: "apify.actorBuild.timedOut";
7396
+ } | {
7397
+ name: string;
7398
+ account: {
7399
+ readonly connectionOptions: readonly [{
7400
+ readonly connectionMethodId: "api-token";
7401
+ readonly requiredScopes: readonly [];
7402
+ }];
7403
+ readonly serviceId: "apify";
7404
+ };
7405
+ type: "apify.actorRun.aborted";
7406
+ } | {
7407
+ name: string;
7408
+ account: {
7409
+ readonly connectionOptions: readonly [{
7410
+ readonly connectionMethodId: "api-token";
7411
+ readonly requiredScopes: readonly [];
7412
+ }];
7413
+ readonly serviceId: "apify";
7414
+ };
7415
+ type: "apify.actorRun.created";
7416
+ } | {
7417
+ name: string;
7418
+ account: {
7419
+ readonly connectionOptions: readonly [{
7420
+ readonly connectionMethodId: "api-token";
7421
+ readonly requiredScopes: readonly [];
7422
+ }];
7423
+ readonly serviceId: "apify";
7424
+ };
7425
+ type: "apify.actorRun.event";
7426
+ } | {
7427
+ name: string;
7428
+ account: {
7429
+ readonly connectionOptions: readonly [{
7430
+ readonly connectionMethodId: "api-token";
7431
+ readonly requiredScopes: readonly [];
7432
+ }];
7433
+ readonly serviceId: "apify";
7434
+ };
7435
+ type: "apify.actorRun.failed";
7436
+ } | {
7437
+ name: string;
7438
+ account: {
7439
+ readonly connectionOptions: readonly [{
7440
+ readonly connectionMethodId: "api-token";
7441
+ readonly requiredScopes: readonly [];
7442
+ }];
7443
+ readonly serviceId: "apify";
7444
+ };
7445
+ type: "apify.actorRun.resurrected";
7446
+ } | {
7447
+ name: string;
7448
+ account: {
7449
+ readonly connectionOptions: readonly [{
7450
+ readonly connectionMethodId: "api-token";
7451
+ readonly requiredScopes: readonly [];
7452
+ }];
7453
+ readonly serviceId: "apify";
7454
+ };
7455
+ type: "apify.actorRun.succeeded";
7456
+ } | {
7457
+ name: string;
7458
+ account: {
7459
+ readonly connectionOptions: readonly [{
7460
+ readonly connectionMethodId: "api-token";
7461
+ readonly requiredScopes: readonly [];
7462
+ }];
7463
+ readonly serviceId: "apify";
7464
+ };
7465
+ type: "apify.actorRun.timedOut";
7206
7466
  } | {
7207
7467
  name: string;
7208
7468
  account: {
@@ -1,4 +1,5 @@
1
1
  import { airtableTriggerDefinitions } from "./airtable.js";
2
+ import { apifyTriggerDefinitions } from "./apify.js";
2
3
  import { automateTriggerDefinitions } from "./automate.js";
3
4
  import { asanaTriggerDefinitions } from "./asana.js";
4
5
  import { brevoTriggerDefinitions } from "./brevo.js";
@@ -25,6 +26,7 @@ import { getIntegrationService } from "../catalog.js";
25
26
  export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, PLATFORM_EMAIL_DOMAIN, DASHBOARD_RUN_CONFIG_SCHEMA, } from "./core.js";
26
27
  /** Plain shared definitions for every public trigger type. */
27
28
  export const triggerDefinitions = {
29
+ ...apifyTriggerDefinitions,
28
30
  ...airtableTriggerDefinitions,
29
31
  ...automateTriggerDefinitions,
30
32
  ...asanaTriggerDefinitions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.124.0",
3
+ "version": "0.125.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,6 +20,7 @@
20
20
  "exports": {
21
21
  ".": "./src/index.ts",
22
22
  "./authoring": "./src/authoring.ts",
23
+ "./triggers/apify": "./src/triggers/apify.ts",
23
24
  "./triggers/airtable": "./src/triggers/airtable.ts",
24
25
  "./triggers/automate": "./src/triggers/automate.ts",
25
26
  "./triggers/asana": "./src/triggers/asana.ts",
@@ -95,6 +96,11 @@
95
96
  "types": "./dist/authoring.d.ts",
96
97
  "default": "./dist/authoring.js"
97
98
  },
99
+ "./triggers/apify": {
100
+ "bun": "./src/triggers/apify.ts",
101
+ "types": "./dist/triggers/apify.d.ts",
102
+ "default": "./dist/triggers/apify.js"
103
+ },
98
104
  "./triggers/airtable": {
99
105
  "bun": "./src/triggers/airtable.ts",
100
106
  "types": "./dist/triggers/airtable.d.ts",
package/src/catalog.ts CHANGED
@@ -56,6 +56,29 @@ export const apolloService = defineIntegrationService({
56
56
  preferredConnectionMethodId: "oauth",
57
57
  })
58
58
 
59
+ export const apifyService = defineIntegrationService({
60
+ connectionMethods: [
61
+ {
62
+ credentialUrl: "https://console.apify.com/settings/integrations",
63
+ fields: [
64
+ {
65
+ input: "password",
66
+ label: "API token",
67
+ name: "apiKey",
68
+ placeholder: "apify_api_...",
69
+ required: true,
70
+ },
71
+ ],
72
+ id: "api-token",
73
+ name: "API token",
74
+ type: "form",
75
+ },
76
+ ],
77
+ description: "Connect an Apify account with an API token.",
78
+ id: "apify",
79
+ name: "Apify",
80
+ })
81
+
59
82
  export const asanaService = defineIntegrationService({
60
83
  connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
61
84
  description: "Connect an Asana account.",
@@ -686,6 +709,7 @@ export const integrationCatalog = defineIntegrationCatalog([
686
709
  airtableService,
687
710
  anthropicService,
688
711
  apolloService,
712
+ apifyService,
689
713
  asanaService,
690
714
  automateService,
691
715
  brevoService,
package/src/index.ts CHANGED
@@ -2,6 +2,7 @@ export {
2
2
  airtableService,
3
3
  anthropicService,
4
4
  apolloService,
5
+ apifyService,
5
6
  asanaService,
6
7
  automateService,
7
8
  brevoService,
@@ -0,0 +1,31 @@
1
+ import type { IntegrationAccountRequirement, TriggerDefinition } from "../types"
2
+
3
+ const APIFY_ACCOUNT = {
4
+ connectionOptions: [{ connectionMethodId: "api-token", requiredScopes: [] }],
5
+ serviceId: "apify",
6
+ } as const satisfies IntegrationAccountRequirement
7
+
8
+ export const apifyTriggerDefinitions = {
9
+ apifyActorBuildAborted: apifyTrigger("apify.actorBuild.aborted"),
10
+ apifyActorBuildCreated: apifyTrigger("apify.actorBuild.created"),
11
+ apifyActorBuildEvent: apifyTrigger("apify.actorBuild.event"),
12
+ apifyActorBuildFailed: apifyTrigger("apify.actorBuild.failed"),
13
+ apifyActorBuildSucceeded: apifyTrigger("apify.actorBuild.succeeded"),
14
+ apifyActorBuildTimedOut: apifyTrigger("apify.actorBuild.timedOut"),
15
+ apifyActorRunAborted: apifyTrigger("apify.actorRun.aborted"),
16
+ apifyActorRunCreated: apifyTrigger("apify.actorRun.created"),
17
+ apifyActorRunEvent: apifyTrigger("apify.actorRun.event"),
18
+ apifyActorRunFailed: apifyTrigger("apify.actorRun.failed"),
19
+ apifyActorRunResurrected: apifyTrigger("apify.actorRun.resurrected"),
20
+ apifyActorRunSucceeded: apifyTrigger("apify.actorRun.succeeded"),
21
+ apifyActorRunTimedOut: apifyTrigger("apify.actorRun.timedOut"),
22
+ } as const satisfies Record<string, TriggerDefinition>
23
+
24
+ /**
25
+ * Creates one Apify trigger definition with its shared account requirement.
26
+ *
27
+ * @param type - Registered Apify event type.
28
+ */
29
+ function apifyTrigger<const TType extends string>(type: TType) {
30
+ return { account: APIFY_ACCOUNT, type } as const
31
+ }
@@ -1,4 +1,5 @@
1
1
  import { airtableTriggerDefinitions } from "./airtable"
2
+ import { apifyTriggerDefinitions } from "./apify"
2
3
  import { automateTriggerDefinitions } from "./automate"
3
4
  import { asanaTriggerDefinitions } from "./asana"
4
5
  import { brevoTriggerDefinitions } from "./brevo"
@@ -49,6 +50,7 @@ export {
49
50
 
50
51
  /** Plain shared definitions for every public trigger type. */
51
52
  export const triggerDefinitions = {
53
+ ...apifyTriggerDefinitions,
52
54
  ...airtableTriggerDefinitions,
53
55
  ...automateTriggerDefinitions,
54
56
  ...asanaTriggerDefinitions,