terse-types 0.1.5 → 0.1.7

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.
@@ -42,6 +42,11 @@ export declare const ApiRoutes: {
42
42
  CALLBACK: string;
43
43
  DELETE_INTEGRATION: string;
44
44
  };
45
+ GOOGLE_SEARCH_CONSOLE: {
46
+ INTEGRATIONS: string;
47
+ CALLBACK: string;
48
+ SITES: string;
49
+ };
45
50
  NOTION: {
46
51
  INTEGRATIONS: string;
47
52
  OAUTH_CALLBACK: string;
@@ -98,6 +103,15 @@ export declare const ApiRoutes: {
98
103
  INTEGRATIONS: string;
99
104
  TEMPLATES: string;
100
105
  };
106
+ HIGGSFIELD: {
107
+ INTEGRATIONS: string;
108
+ };
109
+ META_ADS: {
110
+ INTEGRATIONS: string;
111
+ OAUTH_CALLBACK: string;
112
+ AD_ACCOUNTS: string;
113
+ PAGES: string;
114
+ };
101
115
  APOLLO: {
102
116
  INTEGRATIONS: string;
103
117
  };
@@ -42,6 +42,11 @@
42
42
  "CALLBACK": "/gmail/callback",
43
43
  "DELETE_INTEGRATION": "/gmail/delete-integration"
44
44
  },
45
+ "GOOGLE_SEARCH_CONSOLE": {
46
+ "INTEGRATIONS": "/google-search-console/integrations",
47
+ "CALLBACK": "/google-search-console/callback",
48
+ "SITES": "/google-search-console/sites"
49
+ },
45
50
  "NOTION": {
46
51
  "INTEGRATIONS": "/notion/integrations",
47
52
  "OAUTH_CALLBACK": "/notion/oauth/callback",
@@ -98,6 +103,15 @@
98
103
  "INTEGRATIONS": "/resend/integrations",
99
104
  "TEMPLATES": "/resend/templates"
100
105
  },
106
+ "HIGGSFIELD": {
107
+ "INTEGRATIONS": "/higgsfield/integrations"
108
+ },
109
+ "META_ADS": {
110
+ "INTEGRATIONS": "/meta-ads/integrations",
111
+ "OAUTH_CALLBACK": "/meta-ads/oauth/callback",
112
+ "AD_ACCOUNTS": "/meta-ads/integrations/:integrationId/adaccounts",
113
+ "PAGES": "/meta-ads/integrations/:integrationId/pages"
114
+ },
101
115
  "APOLLO": {
102
116
  "INTEGRATIONS": "/apollo/integrations"
103
117
  },
package/dist/Configs.d.ts CHANGED
@@ -27,7 +27,10 @@ export declare enum ConfigType {
27
27
  WEBMONITOR = "webmonitor",
28
28
  HEY_REACH_INPUT = "hey_reach_input",
29
29
  RESEND_OUTPUT = "resend_output",
30
- APOLLO_OUTPUT = "apollo_output"
30
+ APOLLO_OUTPUT = "apollo_output",
31
+ GOOGLE_SEARCH_CONSOLE_OUTPUT = "google_search_console_output",
32
+ META_ADS_OUTPUT = "meta_ads_output",
33
+ HIGGSFIELD_OUTPUT = "higgsfield_output"
31
34
  }
32
35
  export declare const configTypeEnum: z.ZodEnum<typeof ConfigType>;
33
36
  export declare const frequencyUnitSchema: z.ZodEnum<{
@@ -244,6 +247,22 @@ export declare const ResendOutputConfigMetadata: {
244
247
  readonly isInput: false;
245
248
  readonly isOutput: true;
246
249
  };
250
+ export declare const HiggsfieldOutputConfigMetadata: {
251
+ readonly configType: ConfigType.HIGGSFIELD_OUTPUT;
252
+ readonly name: "Higgsfield";
253
+ readonly description: "Generate ad creative images and animate them into video with Higgsfield";
254
+ readonly integrationType: IntegrationType.HIGGSFIELD;
255
+ readonly isInput: false;
256
+ readonly isOutput: true;
257
+ };
258
+ export declare const MetaAdsOutputConfigMetadata: {
259
+ readonly configType: ConfigType.META_ADS_OUTPUT;
260
+ readonly name: "Meta Ads";
261
+ readonly description: "Read ad performance, sync custom audiences, and send offline conversions to Meta Ads";
262
+ readonly integrationType: IntegrationType.META_ADS;
263
+ readonly isInput: false;
264
+ readonly isOutput: true;
265
+ };
247
266
  export declare const ApolloOutputConfigMetadata: {
248
267
  readonly configType: ConfigType.APOLLO_OUTPUT;
249
268
  readonly name: "Apollo";
@@ -252,6 +271,14 @@ export declare const ApolloOutputConfigMetadata: {
252
271
  readonly isInput: false;
253
272
  readonly isOutput: true;
254
273
  };
274
+ export declare const GoogleSearchConsoleOutputConfigMetadata: {
275
+ readonly configType: ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT;
276
+ readonly name: "Google Search Console";
277
+ readonly description: "Read Search Analytics and manage sites and sitemaps";
278
+ readonly integrationType: IntegrationType.GOOGLE_SEARCH_CONSOLE;
279
+ readonly isInput: false;
280
+ readonly isOutput: true;
281
+ };
255
282
  export type ConfigDetailsMap = Record<ConfigType, ConfigDetails>;
256
283
  export declare const CONFIG_DETAILS: ConfigDetailsMap;
257
284
  export declare const SlackEventType: {
@@ -272,6 +299,7 @@ export declare const GitHubEventType: {
272
299
  readonly PR_CLOSED: "pull_request.closed";
273
300
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
274
301
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
302
+ readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
275
303
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
276
304
  };
277
305
  export declare const gitHubEventTypeSchema: z.ZodEnum<{
@@ -281,6 +309,7 @@ export declare const gitHubEventTypeSchema: z.ZodEnum<{
281
309
  readonly PR_CLOSED: "pull_request.closed";
282
310
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
283
311
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
312
+ readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
284
313
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
285
314
  }>;
286
315
  export type GitHubEventType = z.infer<typeof gitHubEventTypeSchema>;
@@ -542,6 +571,20 @@ export declare class NotionConfig extends BaseConfigInstance<IntegrationType.NOT
542
571
  isComplete(): boolean;
543
572
  formatForAgent(): string;
544
573
  }
574
+ export declare const GoogleSearchConsoleConfigSchema: z.ZodObject<{
575
+ integrationId: z.ZodString;
576
+ integrationType: z.ZodLiteral<IntegrationType.GOOGLE_SEARCH_CONSOLE>;
577
+ configType: z.ZodLiteral<ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
578
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
579
+ }, z.core.$strip>;
580
+ export type GoogleSearchConsoleConfigData = z.infer<typeof GoogleSearchConsoleConfigSchema>;
581
+ export type GoogleSearchConsoleConfigInstance = GoogleSearchConsoleConfigData & ConfigBehavior;
582
+ export declare class GoogleSearchConsoleOutputConfig extends BaseConfigInstance<IntegrationType.GOOGLE_SEARCH_CONSOLE, ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT> implements GoogleSearchConsoleConfigInstance {
583
+ siteUrls: string[];
584
+ constructor(integrationId: string, siteUrls?: string[]);
585
+ isComplete(): boolean;
586
+ formatForAgent(): string;
587
+ }
545
588
  export declare const LinearInputConfigSchema: z.ZodObject<{
546
589
  integrationId: z.ZodString;
547
590
  integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
@@ -594,6 +637,7 @@ export declare const GitHubConfigSchema: z.ZodObject<{
594
637
  readonly PR_CLOSED: "pull_request.closed";
595
638
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
596
639
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
640
+ readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
597
641
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
598
642
  }>>>;
599
643
  }, z.core.$strip>;
@@ -1395,6 +1439,34 @@ export declare class ResendOutputConfig extends BaseConfigInstance<IntegrationTy
1395
1439
  isComplete(): boolean;
1396
1440
  formatForAgent(): string;
1397
1441
  }
1442
+ export declare const HiggsfieldOutputConfigSchema: z.ZodObject<{
1443
+ integrationId: z.ZodString;
1444
+ integrationType: z.ZodLiteral<IntegrationType.HIGGSFIELD>;
1445
+ configType: z.ZodLiteral<ConfigType.HIGGSFIELD_OUTPUT>;
1446
+ }, z.core.$strip>;
1447
+ export type HiggsfieldOutputConfigData = z.infer<typeof HiggsfieldOutputConfigSchema>;
1448
+ export type HiggsfieldOutputConfigInstance = HiggsfieldOutputConfigData & ConfigBehavior;
1449
+ export declare class HiggsfieldOutputConfig extends BaseConfigInstance<IntegrationType.HIGGSFIELD, ConfigType.HIGGSFIELD_OUTPUT> implements HiggsfieldOutputConfigInstance {
1450
+ constructor(integrationId: string);
1451
+ isComplete(): boolean;
1452
+ formatForAgent(): string;
1453
+ }
1454
+ export declare const MetaAdsOutputConfigSchema: z.ZodObject<{
1455
+ integrationId: z.ZodString;
1456
+ integrationType: z.ZodLiteral<IntegrationType.META_ADS>;
1457
+ configType: z.ZodLiteral<ConfigType.META_ADS_OUTPUT>;
1458
+ adAccountId: z.ZodNullable<z.ZodString>;
1459
+ pageId: z.ZodNullable<z.ZodString>;
1460
+ }, z.core.$strip>;
1461
+ export type MetaAdsOutputConfigData = z.infer<typeof MetaAdsOutputConfigSchema>;
1462
+ export type MetaAdsOutputConfigInstance = MetaAdsOutputConfigData & ConfigBehavior;
1463
+ export declare class MetaAdsOutputConfig extends BaseConfigInstance<IntegrationType.META_ADS, ConfigType.META_ADS_OUTPUT> implements MetaAdsOutputConfigInstance {
1464
+ adAccountId: string | null;
1465
+ pageId: string | null;
1466
+ constructor(integrationId: string, adAccountId?: string | null, pageId?: string | null);
1467
+ isComplete(): boolean;
1468
+ formatForAgent(): string;
1469
+ }
1398
1470
  export declare const ApolloOutputConfigSchema: z.ZodObject<{
1399
1471
  integrationId: z.ZodString;
1400
1472
  integrationType: z.ZodLiteral<IntegrationType.APOLLO>;
@@ -1538,6 +1610,7 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
1538
1610
  readonly PR_CLOSED: "pull_request.closed";
1539
1611
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1540
1612
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1613
+ readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1541
1614
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1542
1615
  }>>>;
1543
1616
  }, z.core.$strip>, z.ZodObject<{
@@ -2135,6 +2208,21 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
2135
2208
  integrationId: z.ZodString;
2136
2209
  integrationType: z.ZodLiteral<IntegrationType.APOLLO>;
2137
2210
  configType: z.ZodLiteral<ConfigType.APOLLO_OUTPUT>;
2211
+ }, z.core.$strip>, z.ZodObject<{
2212
+ integrationId: z.ZodString;
2213
+ integrationType: z.ZodLiteral<IntegrationType.GOOGLE_SEARCH_CONSOLE>;
2214
+ configType: z.ZodLiteral<ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
2215
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
2216
+ }, z.core.$strip>, z.ZodObject<{
2217
+ integrationId: z.ZodString;
2218
+ integrationType: z.ZodLiteral<IntegrationType.META_ADS>;
2219
+ configType: z.ZodLiteral<ConfigType.META_ADS_OUTPUT>;
2220
+ adAccountId: z.ZodNullable<z.ZodString>;
2221
+ pageId: z.ZodNullable<z.ZodString>;
2222
+ }, z.core.$strip>, z.ZodObject<{
2223
+ integrationId: z.ZodString;
2224
+ integrationType: z.ZodLiteral<IntegrationType.HIGGSFIELD>;
2225
+ configType: z.ZodLiteral<ConfigType.HIGGSFIELD_OUTPUT>;
2138
2226
  }, z.core.$strip>]>;
2139
2227
  export type ConfigData = z.infer<typeof configDataSchema>;
2140
2228
  /** Configs that can serve as triggers (event sources). */
@@ -2181,6 +2269,7 @@ export declare const triggerConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
2181
2269
  readonly PR_CLOSED: "pull_request.closed";
2182
2270
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
2183
2271
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
2272
+ readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
2184
2273
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
2185
2274
  }>>>;
2186
2275
  }, z.core.$strip>, z.ZodObject<{
@@ -2813,6 +2902,17 @@ export declare const skillConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
2813
2902
  integrationId: z.ZodString;
2814
2903
  integrationType: z.ZodLiteral<IntegrationType.APOLLO>;
2815
2904
  configType: z.ZodLiteral<ConfigType.APOLLO_OUTPUT>;
2905
+ }, z.core.$strip>, z.ZodObject<{
2906
+ integrationId: z.ZodString;
2907
+ integrationType: z.ZodLiteral<IntegrationType.GOOGLE_SEARCH_CONSOLE>;
2908
+ configType: z.ZodLiteral<ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
2909
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
2910
+ }, z.core.$strip>, z.ZodObject<{
2911
+ integrationId: z.ZodString;
2912
+ integrationType: z.ZodLiteral<IntegrationType.META_ADS>;
2913
+ configType: z.ZodLiteral<ConfigType.META_ADS_OUTPUT>;
2914
+ adAccountId: z.ZodNullable<z.ZodString>;
2915
+ pageId: z.ZodNullable<z.ZodString>;
2816
2916
  }, z.core.$strip>]>;
2817
2917
  export type SkillConfigData = z.infer<typeof skillConfigDataSchema>;
2818
2918
  export declare function isConfigComplete(config: ConfigData | undefined): boolean;
@@ -2845,6 +2945,9 @@ export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
2845
2945
  [ConfigType.HEY_REACH_INPUT]: typeof HeyReachInputConfig;
2846
2946
  [ConfigType.RESEND_OUTPUT]: typeof ResendOutputConfig;
2847
2947
  [ConfigType.APOLLO_OUTPUT]: typeof ApolloOutputConfig;
2948
+ [ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT]: typeof GoogleSearchConsoleOutputConfig;
2949
+ [ConfigType.META_ADS_OUTPUT]: typeof MetaAdsOutputConfig;
2950
+ [ConfigType.HIGGSFIELD_OUTPUT]: typeof HiggsfieldOutputConfig;
2848
2951
  }>;
2849
2952
  export declare const CONFIG_METADATA: ConfigMetadataMap;
2850
2953
  export {};
package/dist/Configs.js CHANGED
@@ -29,6 +29,9 @@ export var ConfigType;
29
29
  ConfigType["HEY_REACH_INPUT"] = "hey_reach_input";
30
30
  ConfigType["RESEND_OUTPUT"] = "resend_output";
31
31
  ConfigType["APOLLO_OUTPUT"] = "apollo_output";
32
+ ConfigType["GOOGLE_SEARCH_CONSOLE_OUTPUT"] = "google_search_console_output";
33
+ ConfigType["META_ADS_OUTPUT"] = "meta_ads_output";
34
+ ConfigType["HIGGSFIELD_OUTPUT"] = "higgsfield_output";
32
35
  })(ConfigType || (ConfigType = {}));
33
36
  export const configTypeEnum = z.enum(ConfigType);
34
37
  export const frequencyUnitSchema = z.enum(["hour", "day", "week"]);
@@ -233,6 +236,22 @@ export const ResendOutputConfigMetadata = {
233
236
  isInput: false,
234
237
  isOutput: true
235
238
  };
239
+ export const HiggsfieldOutputConfigMetadata = {
240
+ configType: ConfigType.HIGGSFIELD_OUTPUT,
241
+ name: "Higgsfield",
242
+ description: "Generate ad creative images and animate them into video with Higgsfield",
243
+ integrationType: IntegrationType.HIGGSFIELD,
244
+ isInput: false,
245
+ isOutput: true
246
+ };
247
+ export const MetaAdsOutputConfigMetadata = {
248
+ configType: ConfigType.META_ADS_OUTPUT,
249
+ name: "Meta Ads",
250
+ description: "Read ad performance, sync custom audiences, and send offline conversions to Meta Ads",
251
+ integrationType: IntegrationType.META_ADS,
252
+ isInput: false,
253
+ isOutput: true
254
+ };
236
255
  export const ApolloOutputConfigMetadata = {
237
256
  configType: ConfigType.APOLLO_OUTPUT,
238
257
  name: "Apollo",
@@ -241,6 +260,14 @@ export const ApolloOutputConfigMetadata = {
241
260
  isInput: false,
242
261
  isOutput: true
243
262
  };
263
+ export const GoogleSearchConsoleOutputConfigMetadata = {
264
+ configType: ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT,
265
+ name: "Google Search Console",
266
+ description: "Read Search Analytics and manage sites and sitemaps",
267
+ integrationType: IntegrationType.GOOGLE_SEARCH_CONSOLE,
268
+ isInput: false,
269
+ isOutput: true
270
+ };
244
271
  export const CONFIG_DETAILS = {
245
272
  [ConfigType.GMAIL]: GmailConfigMetadata,
246
273
  [ConfigType.GMAIL_OUTPUT]: GmailOutputConfigMetadata,
@@ -267,7 +294,10 @@ export const CONFIG_DETAILS = {
267
294
  [ConfigType.WEBMONITOR]: WebMonitorConfigMetadata,
268
295
  [ConfigType.HEY_REACH_INPUT]: HeyReachInputConfigMetadata,
269
296
  [ConfigType.RESEND_OUTPUT]: ResendOutputConfigMetadata,
270
- [ConfigType.APOLLO_OUTPUT]: ApolloOutputConfigMetadata
297
+ [ConfigType.APOLLO_OUTPUT]: ApolloOutputConfigMetadata,
298
+ [ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT]: GoogleSearchConsoleOutputConfigMetadata,
299
+ [ConfigType.META_ADS_OUTPUT]: MetaAdsOutputConfigMetadata,
300
+ [ConfigType.HIGGSFIELD_OUTPUT]: HiggsfieldOutputConfigMetadata
271
301
  };
272
302
  // MARK: Event Types — specific events within each integration trigger
273
303
  export const SlackEventType = {
@@ -283,6 +313,7 @@ export const GitHubEventType = {
283
313
  PR_CLOSED: "pull_request.closed",
284
314
  PR_SYNCHRONIZE: "pull_request.synchronize",
285
315
  PR_COMMENT_CREATED: "pull_request.comment.created",
316
+ PR_COMMENT_EDITED: "pull_request.comment.edited",
286
317
  ISSUE_COMMENT_CREATED: "issue_comment.created"
287
318
  };
288
319
  export const gitHubEventTypeSchema = z.enum(GitHubEventType);
@@ -546,6 +577,24 @@ export class NotionConfig extends BaseConfigInstance {
546
577
  return parts.join("\n");
547
578
  }
548
579
  }
580
+ export const GoogleSearchConsoleConfigSchema = ConfigInstanceSchema.extend({
581
+ integrationType: z.literal(IntegrationType.GOOGLE_SEARCH_CONSOLE),
582
+ configType: z.literal(ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT),
583
+ siteUrls: z.array(z.string()).default([])
584
+ });
585
+ export class GoogleSearchConsoleOutputConfig extends BaseConfigInstance {
586
+ siteUrls;
587
+ constructor(integrationId, siteUrls = []) {
588
+ super(integrationId, IntegrationType.GOOGLE_SEARCH_CONSOLE, ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT);
589
+ this.siteUrls = siteUrls;
590
+ }
591
+ isComplete() {
592
+ return (this.siteUrls?.length ?? 0) > 0;
593
+ }
594
+ formatForAgent() {
595
+ return `Type: Google Search Console\nIntegration ID: ${this.integrationId}\nAllowed properties: ${this.siteUrls.join(", ")}`;
596
+ }
597
+ }
549
598
  export const LinearInputConfigSchema = ConfigInstanceSchema.extend({
550
599
  integrationType: z.literal(IntegrationType.LINEAR),
551
600
  configType: z.literal(ConfigType.LINEAR_INPUT),
@@ -957,6 +1006,49 @@ export class ResendOutputConfig extends BaseConfigInstance {
957
1006
  return `Type: Resend Output\nIntegration ID: ${this.integrationId}`;
958
1007
  }
959
1008
  }
1009
+ export const HiggsfieldOutputConfigSchema = ConfigInstanceSchema.extend({
1010
+ integrationType: z.literal(IntegrationType.HIGGSFIELD),
1011
+ configType: z.literal(ConfigType.HIGGSFIELD_OUTPUT)
1012
+ });
1013
+ export class HiggsfieldOutputConfig extends BaseConfigInstance {
1014
+ constructor(integrationId) {
1015
+ super(integrationId, IntegrationType.HIGGSFIELD, ConfigType.HIGGSFIELD_OUTPUT);
1016
+ }
1017
+ isComplete() {
1018
+ return !!this.integrationId;
1019
+ }
1020
+ formatForAgent() {
1021
+ return `Type: Higgsfield Output\nIntegration ID: ${this.integrationId}`;
1022
+ }
1023
+ }
1024
+ export const MetaAdsOutputConfigSchema = ConfigInstanceSchema.extend({
1025
+ integrationType: z.literal(IntegrationType.META_ADS),
1026
+ configType: z.literal(ConfigType.META_ADS_OUTPUT),
1027
+ adAccountId: z.string().nullable(),
1028
+ pageId: z.string().nullable()
1029
+ });
1030
+ export class MetaAdsOutputConfig extends BaseConfigInstance {
1031
+ adAccountId;
1032
+ pageId;
1033
+ constructor(integrationId, adAccountId = null, pageId = null) {
1034
+ super(integrationId, IntegrationType.META_ADS, ConfigType.META_ADS_OUTPUT);
1035
+ this.adAccountId = adAccountId;
1036
+ this.pageId = pageId;
1037
+ }
1038
+ isComplete() {
1039
+ return !!this.integrationId;
1040
+ }
1041
+ formatForAgent() {
1042
+ const parts = [`Type: Meta Ads Output`, `Integration ID: ${this.integrationId}`];
1043
+ if (this.adAccountId) {
1044
+ parts.push(`Ad Account: ${this.adAccountId}`);
1045
+ }
1046
+ if (this.pageId) {
1047
+ parts.push(`Page: ${this.pageId}`);
1048
+ }
1049
+ return parts.join("\n");
1050
+ }
1051
+ }
960
1052
  export const ApolloOutputConfigSchema = ConfigInstanceSchema.extend({
961
1053
  integrationType: z.literal(IntegrationType.APOLLO),
962
1054
  configType: z.literal(ConfigType.APOLLO_OUTPUT)
@@ -1089,7 +1181,10 @@ export const configDataSchema = z.union([
1089
1181
  WebMonitorConfigSchema,
1090
1182
  HeyReachInputConfigSchema,
1091
1183
  ResendOutputConfigSchema,
1092
- ApolloOutputConfigSchema
1184
+ ApolloOutputConfigSchema,
1185
+ GoogleSearchConsoleConfigSchema,
1186
+ MetaAdsOutputConfigSchema,
1187
+ HiggsfieldOutputConfigSchema
1093
1188
  ]);
1094
1189
  /** Configs that can serve as triggers (event sources). */
1095
1190
  export const triggerConfigDataSchema = z.union([
@@ -1122,7 +1217,9 @@ export const skillConfigDataSchema = z.union([
1122
1217
  AttioOutputConfigSchema,
1123
1218
  SnowflakeOutputConfigSchema,
1124
1219
  ResendOutputConfigSchema,
1125
- ApolloOutputConfigSchema
1220
+ ApolloOutputConfigSchema,
1221
+ GoogleSearchConsoleConfigSchema,
1222
+ MetaAdsOutputConfigSchema
1126
1223
  ]);
1127
1224
  export function isConfigComplete(config) {
1128
1225
  if (!config) {
@@ -1145,12 +1242,16 @@ export function isConfigComplete(config) {
1145
1242
  return !!(config.channelId || (config.userIds?.length ?? 0) > 0 || config.listenToUserDms);
1146
1243
  case ConfigType.NOTION:
1147
1244
  return (config.databaseIds?.length ?? 0) > 0 || (config.pageIds?.length ?? 0) > 0;
1245
+ case ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT:
1246
+ return (config.siteUrls?.length ?? 0) > 0;
1148
1247
  case ConfigType.LINEAR_OUTPUT:
1149
1248
  case ConfigType.DATADOG:
1150
1249
  case ConfigType.WORKOS_OUTPUT:
1151
1250
  case ConfigType.SNOWFLAKE_OUTPUT:
1152
1251
  case ConfigType.RESEND_OUTPUT:
1153
1252
  case ConfigType.APOLLO_OUTPUT:
1253
+ case ConfigType.META_ADS_OUTPUT:
1254
+ case ConfigType.HIGGSFIELD_OUTPUT:
1154
1255
  return !!config.integrationId;
1155
1256
  case ConfigType.GITHUB:
1156
1257
  return (config.repositoryIds?.length ?? 0) > 0;
@@ -1209,6 +1310,8 @@ export function formatConfigForAgent(config) {
1209
1310
  return `Type: Gmail Output\nIntegration ID: ${config.integrationId}`;
1210
1311
  case ConfigType.GMAIL_DRAFT_OUTPUT:
1211
1312
  return `Type: Gmail Draft Output\nIntegration ID: ${config.integrationId}`;
1313
+ case ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT:
1314
+ return `Type: Google Search Console\nIntegration ID: ${config.integrationId}\nAllowed properties: ${config.siteUrls.join(", ")}`;
1212
1315
  case ConfigType.NOTION: {
1213
1316
  const parts = [`Type: Notion`, `Integration ID: ${config.integrationId}`];
1214
1317
  const dbIds = config.databaseIds ?? [];
@@ -1318,6 +1421,16 @@ export function formatConfigForAgent(config) {
1318
1421
  return `Type: Resend Output\nIntegration ID: ${config.integrationId}`;
1319
1422
  case ConfigType.APOLLO_OUTPUT:
1320
1423
  return `Type: Apollo Output\nIntegration ID: ${config.integrationId}`;
1424
+ case ConfigType.HIGGSFIELD_OUTPUT:
1425
+ return `Type: Higgsfield Output\nIntegration ID: ${config.integrationId}`;
1426
+ case ConfigType.META_ADS_OUTPUT: {
1427
+ const parts = [`Type: Meta Ads Output`, `Integration ID: ${config.integrationId}`];
1428
+ if (config.adAccountId)
1429
+ parts.push(`Ad Account: ${config.adAccountId}`);
1430
+ if (config.pageId)
1431
+ parts.push(`Page: ${config.pageId}`);
1432
+ return parts.join("\n");
1433
+ }
1321
1434
  case ConfigType.WEBHOOK_INPUT:
1322
1435
  return "Type: Webhook Trigger";
1323
1436
  case ConfigType.WEBMONITOR: {
@@ -1360,5 +1473,8 @@ export const CONFIG_METADATA = {
1360
1473
  [ConfigType.WEBMONITOR]: WebMonitorConfig,
1361
1474
  [ConfigType.HEY_REACH_INPUT]: HeyReachInputConfig,
1362
1475
  [ConfigType.RESEND_OUTPUT]: ResendOutputConfig,
1363
- [ConfigType.APOLLO_OUTPUT]: ApolloOutputConfig
1476
+ [ConfigType.APOLLO_OUTPUT]: ApolloOutputConfig,
1477
+ [ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT]: GoogleSearchConsoleOutputConfig,
1478
+ [ConfigType.META_ADS_OUTPUT]: MetaAdsOutputConfig,
1479
+ [ConfigType.HIGGSFIELD_OUTPUT]: HiggsfieldOutputConfig
1364
1480
  };
@@ -17,7 +17,10 @@ export declare enum IntegrationType {
17
17
  ATTIO = "attio",
18
18
  SNOWFLAKE = "snowflake",
19
19
  WEBHOOK = "webhook",
20
- WEBMONITOR = "webmonitor"
20
+ WEBMONITOR = "webmonitor",
21
+ GOOGLE_SEARCH_CONSOLE = "google_search_console",
22
+ META_ADS = "meta_ads",
23
+ HIGGSFIELD = "higgsfield"
21
24
  }
22
25
  export declare const integrationTypeEnum: z.ZodEnum<typeof IntegrationType>;
23
26
  export declare const BUILT_IN_INTEGRATION_TYPES: readonly [IntegrationType.TERSE, IntegrationType.CRON_JOB, IntegrationType.WEBHOOK, IntegrationType.WEBMONITOR];
@@ -40,6 +43,13 @@ export declare const GmailIntegrationMetadata: {
40
43
  readonly isInput: true;
41
44
  readonly isOutput: false;
42
45
  };
46
+ export declare const GoogleSearchConsoleIntegrationMetadata: {
47
+ readonly type: IntegrationType.GOOGLE_SEARCH_CONSOLE;
48
+ readonly name: "Google Search Console";
49
+ readonly description: "Read Search Analytics and manage sites and sitemaps";
50
+ readonly isInput: false;
51
+ readonly isOutput: true;
52
+ };
43
53
  export declare const NotionIntegrationMetadata: {
44
54
  readonly type: IntegrationType.NOTION;
45
55
  readonly name: "Notion";
@@ -145,6 +155,13 @@ export declare const HeyReachIntegrationMetadata: {
145
155
  readonly isInput: true;
146
156
  readonly isOutput: false;
147
157
  };
158
+ export declare const MetaAdsIntegrationMetadata: {
159
+ readonly type: IntegrationType.META_ADS;
160
+ readonly name: "Meta Ads";
161
+ readonly description: "Read ad performance, sync custom audiences, and send offline conversions to Meta Ads";
162
+ readonly isInput: false;
163
+ readonly isOutput: true;
164
+ };
148
165
  export declare const ResendIntegrationMetadata: {
149
166
  readonly type: IntegrationType.RESEND;
150
167
  readonly name: "Resend";
@@ -152,6 +169,13 @@ export declare const ResendIntegrationMetadata: {
152
169
  readonly isInput: false;
153
170
  readonly isOutput: true;
154
171
  };
172
+ export declare const HiggsfieldIntegrationMetadata: {
173
+ readonly type: IntegrationType.HIGGSFIELD;
174
+ readonly name: "Higgsfield";
175
+ readonly description: "Generate ad creative images and animate them into video with Higgsfield";
176
+ readonly isInput: false;
177
+ readonly isOutput: true;
178
+ };
155
179
  export declare const ApolloIntegrationMetadata: {
156
180
  readonly type: IntegrationType.APOLLO;
157
181
  readonly name: "Apollo";
@@ -177,6 +201,7 @@ export declare const InstallationOptionsSchemas: {
177
201
  isBotUser: z.ZodBoolean;
178
202
  }, z.core.$strict>;
179
203
  readonly gmail: z.ZodObject<{}, z.core.$strict>;
204
+ readonly google_search_console: z.ZodObject<{}, z.core.$strict>;
180
205
  readonly notion: z.ZodObject<{}, z.core.$strict>;
181
206
  readonly linear: z.ZodObject<{}, z.core.$strict>;
182
207
  readonly github: z.ZodObject<{}, z.core.$strict>;
@@ -193,6 +218,8 @@ export declare const InstallationOptionsSchemas: {
193
218
  readonly hey_reach: z.ZodObject<{}, z.core.$strict>;
194
219
  readonly resend: z.ZodObject<{}, z.core.$strict>;
195
220
  readonly apollo: z.ZodObject<{}, z.core.$strict>;
221
+ readonly meta_ads: z.ZodObject<{}, z.core.$strict>;
222
+ readonly higgsfield: z.ZodObject<{}, z.core.$strict>;
196
223
  };
197
224
  export type InstallationOptionsFor<T extends IntegrationType> = z.infer<(typeof InstallationOptionsSchemas)[T]>;
198
225
  export declare const SlackIntegrationSchema: z.ZodObject<{
@@ -209,6 +236,40 @@ export declare const GmailIntegrationSchema: z.ZodObject<{
209
236
  watchExpiration: z.ZodOptional<z.ZodDate>;
210
237
  }, z.core.$strip>;
211
238
  export type GmailIntegration = z.infer<typeof GmailIntegrationSchema>;
239
+ export declare const GoogleSearchConsoleIntegrationSchema: z.ZodObject<{
240
+ id: z.ZodString;
241
+ email: z.ZodEmail;
242
+ googleAccountId: z.ZodString;
243
+ }, z.core.$strip>;
244
+ export type GoogleSearchConsoleIntegration = z.infer<typeof GoogleSearchConsoleIntegrationSchema>;
245
+ export declare const googleSearchConsolePermissionLevelSchema: z.ZodEnum<{
246
+ siteFullUser: "siteFullUser";
247
+ siteOwner: "siteOwner";
248
+ siteRestrictedUser: "siteRestrictedUser";
249
+ siteUnverifiedUser: "siteUnverifiedUser";
250
+ }>;
251
+ export declare const googleSearchConsoleSiteSchema: z.ZodObject<{
252
+ siteUrl: z.ZodString;
253
+ permissionLevel: z.ZodEnum<{
254
+ siteFullUser: "siteFullUser";
255
+ siteOwner: "siteOwner";
256
+ siteRestrictedUser: "siteRestrictedUser";
257
+ siteUnverifiedUser: "siteUnverifiedUser";
258
+ }>;
259
+ }, z.core.$strip>;
260
+ export type GoogleSearchConsoleSite = z.infer<typeof googleSearchConsoleSiteSchema>;
261
+ export declare const googleSearchConsoleSitesResponseSchema: z.ZodObject<{
262
+ sites: z.ZodArray<z.ZodObject<{
263
+ siteUrl: z.ZodString;
264
+ permissionLevel: z.ZodEnum<{
265
+ siteFullUser: "siteFullUser";
266
+ siteOwner: "siteOwner";
267
+ siteRestrictedUser: "siteRestrictedUser";
268
+ siteUnverifiedUser: "siteUnverifiedUser";
269
+ }>;
270
+ }, z.core.$strip>>;
271
+ }, z.core.$strip>;
272
+ export type GoogleSearchConsoleSitesResponse = z.infer<typeof googleSearchConsoleSitesResponseSchema>;
212
273
  export declare const NotionIntegrationSchema: z.ZodObject<{
213
274
  id: z.ZodString;
214
275
  workspaceId: z.ZodOptional<z.ZodString>;
@@ -240,6 +301,10 @@ export declare const ResendIntegrationSchema: z.ZodObject<{
240
301
  id: z.ZodString;
241
302
  }, z.core.$strip>;
242
303
  export type ResendIntegration = z.infer<typeof ResendIntegrationSchema>;
304
+ export declare const HiggsfieldIntegrationSchema: z.ZodObject<{
305
+ id: z.ZodString;
306
+ }, z.core.$strip>;
307
+ export type HiggsfieldIntegration = z.infer<typeof HiggsfieldIntegrationSchema>;
243
308
  export declare const ApolloIntegrationSchema: z.ZodObject<{
244
309
  id: z.ZodString;
245
310
  }, z.core.$strip>;
@@ -302,6 +367,19 @@ export declare const SnowflakeIntegrationSchema: z.ZodObject<{
302
367
  schemaName: z.ZodOptional<z.ZodString>;
303
368
  }, z.core.$strip>;
304
369
  export type SnowflakeIntegration = z.infer<typeof SnowflakeIntegrationSchema>;
370
+ export declare const MetaAdsIntegrationSchema: z.ZodObject<{
371
+ id: z.ZodString;
372
+ accountName: z.ZodOptional<z.ZodString>;
373
+ }, z.core.$strip>;
374
+ export type MetaAdsIntegration = z.infer<typeof MetaAdsIntegrationSchema>;
375
+ export declare const MetaAdsAdAccountSchema: z.ZodObject<{
376
+ id: z.ZodString;
377
+ accountId: z.ZodString;
378
+ name: z.ZodString;
379
+ currency: z.ZodOptional<z.ZodString>;
380
+ accountStatus: z.ZodOptional<z.ZodNumber>;
381
+ }, z.core.$strip>;
382
+ export type MetaAdsAdAccount = z.infer<typeof MetaAdsAdAccountSchema>;
305
383
  export declare const CliIntegrationDisplayStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
306
384
  status: z.ZodLiteral<"not_connected">;
307
385
  }, z.core.$strip>, z.ZodObject<{