terse-types 0.1.5 → 0.1.6

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/types.d.ts CHANGED
@@ -1017,6 +1017,21 @@ export declare const agentTriggerSchema: z.ZodObject<{
1017
1017
  integrationId: z.ZodString;
1018
1018
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
1019
1019
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
1020
+ }, z.core.$strip>, z.ZodObject<{
1021
+ integrationId: z.ZodString;
1022
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
1023
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
1024
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
1025
+ }, z.core.$strip>, z.ZodObject<{
1026
+ integrationId: z.ZodString;
1027
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
1028
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
1029
+ adAccountId: z.ZodNullable<z.ZodString>;
1030
+ pageId: z.ZodNullable<z.ZodString>;
1031
+ }, z.core.$strip>, z.ZodObject<{
1032
+ integrationId: z.ZodString;
1033
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
1034
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
1020
1035
  }, z.core.$strip>]>;
1021
1036
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1022
1037
  webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1697,6 +1712,21 @@ export declare const agentOutputSchema: z.ZodObject<{
1697
1712
  integrationId: z.ZodString;
1698
1713
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
1699
1714
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
1715
+ }, z.core.$strip>, z.ZodObject<{
1716
+ integrationId: z.ZodString;
1717
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
1718
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
1719
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
1720
+ }, z.core.$strip>, z.ZodObject<{
1721
+ integrationId: z.ZodString;
1722
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
1723
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
1724
+ adAccountId: z.ZodNullable<z.ZodString>;
1725
+ pageId: z.ZodNullable<z.ZodString>;
1726
+ }, z.core.$strip>, z.ZodObject<{
1727
+ integrationId: z.ZodString;
1728
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
1729
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
1700
1730
  }, z.core.$strip>]>;
1701
1731
  }, z.core.$strip>;
1702
1732
  export type AgentOutput = z.infer<typeof agentOutputSchema>;
@@ -2378,6 +2408,21 @@ export declare const transientAgentTriggerSchema: z.ZodObject<{
2378
2408
  integrationId: z.ZodString;
2379
2409
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
2380
2410
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
2411
+ }, z.core.$strip>, z.ZodObject<{
2412
+ integrationId: z.ZodString;
2413
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
2414
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
2415
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
2416
+ }, z.core.$strip>, z.ZodObject<{
2417
+ integrationId: z.ZodString;
2418
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
2419
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
2420
+ adAccountId: z.ZodNullable<z.ZodString>;
2421
+ pageId: z.ZodNullable<z.ZodString>;
2422
+ }, z.core.$strip>, z.ZodObject<{
2423
+ integrationId: z.ZodString;
2424
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
2425
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
2381
2426
  }, z.core.$strip>]>>;
2382
2427
  configType: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
2383
2428
  }, z.core.$strip>;
@@ -3056,6 +3101,21 @@ export declare const transientAgentOutputSchema: z.ZodObject<{
3056
3101
  integrationId: z.ZodString;
3057
3102
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
3058
3103
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
3104
+ }, z.core.$strip>, z.ZodObject<{
3105
+ integrationId: z.ZodString;
3106
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
3107
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
3108
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
3109
+ }, z.core.$strip>, z.ZodObject<{
3110
+ integrationId: z.ZodString;
3111
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
3112
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
3113
+ adAccountId: z.ZodNullable<z.ZodString>;
3114
+ pageId: z.ZodNullable<z.ZodString>;
3115
+ }, z.core.$strip>, z.ZodObject<{
3116
+ integrationId: z.ZodString;
3117
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
3118
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
3059
3119
  }, z.core.$strip>]>>;
3060
3120
  configType: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
3061
3121
  }, z.core.$strip>;
@@ -3964,6 +4024,21 @@ export declare const agentSchema: z.ZodObject<{
3964
4024
  integrationId: z.ZodString;
3965
4025
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
3966
4026
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
4027
+ }, z.core.$strip>, z.ZodObject<{
4028
+ integrationId: z.ZodString;
4029
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
4030
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
4031
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
4032
+ }, z.core.$strip>, z.ZodObject<{
4033
+ integrationId: z.ZodString;
4034
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
4035
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
4036
+ adAccountId: z.ZodNullable<z.ZodString>;
4037
+ pageId: z.ZodNullable<z.ZodString>;
4038
+ }, z.core.$strip>, z.ZodObject<{
4039
+ integrationId: z.ZodString;
4040
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
4041
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
3967
4042
  }, z.core.$strip>]>;
3968
4043
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3969
4044
  webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4643,6 +4718,21 @@ export declare const agentSchema: z.ZodObject<{
4643
4718
  integrationId: z.ZodString;
4644
4719
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
4645
4720
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
4721
+ }, z.core.$strip>, z.ZodObject<{
4722
+ integrationId: z.ZodString;
4723
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
4724
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
4725
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
4726
+ }, z.core.$strip>, z.ZodObject<{
4727
+ integrationId: z.ZodString;
4728
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
4729
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
4730
+ adAccountId: z.ZodNullable<z.ZodString>;
4731
+ pageId: z.ZodNullable<z.ZodString>;
4732
+ }, z.core.$strip>, z.ZodObject<{
4733
+ integrationId: z.ZodString;
4734
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
4735
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
4646
4736
  }, z.core.$strip>]>;
4647
4737
  }, z.core.$strip>>;
4648
4738
  createdByUserId: z.ZodString;
@@ -5343,6 +5433,21 @@ export declare const agentUpdateSchema: z.ZodObject<{
5343
5433
  integrationId: z.ZodString;
5344
5434
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
5345
5435
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
5436
+ }, z.core.$strip>, z.ZodObject<{
5437
+ integrationId: z.ZodString;
5438
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
5439
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
5440
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
5441
+ }, z.core.$strip>, z.ZodObject<{
5442
+ integrationId: z.ZodString;
5443
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
5444
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
5445
+ adAccountId: z.ZodNullable<z.ZodString>;
5446
+ pageId: z.ZodNullable<z.ZodString>;
5447
+ }, z.core.$strip>, z.ZodObject<{
5448
+ integrationId: z.ZodString;
5449
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
5450
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
5346
5451
  }, z.core.$strip>]>;
5347
5452
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5348
5453
  webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6022,6 +6127,21 @@ export declare const agentUpdateSchema: z.ZodObject<{
6022
6127
  integrationId: z.ZodString;
6023
6128
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
6024
6129
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
6130
+ }, z.core.$strip>, z.ZodObject<{
6131
+ integrationId: z.ZodString;
6132
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
6133
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
6134
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
6135
+ }, z.core.$strip>, z.ZodObject<{
6136
+ integrationId: z.ZodString;
6137
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
6138
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
6139
+ adAccountId: z.ZodNullable<z.ZodString>;
6140
+ pageId: z.ZodNullable<z.ZodString>;
6141
+ }, z.core.$strip>, z.ZodObject<{
6142
+ integrationId: z.ZodString;
6143
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
6144
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
6025
6145
  }, z.core.$strip>]>;
6026
6146
  }, z.core.$strip>>>;
6027
6147
  prompt: z.ZodOptional<z.ZodObject<{
@@ -6732,6 +6852,21 @@ export declare const agentsResponseSchema: z.ZodObject<{
6732
6852
  integrationId: z.ZodString;
6733
6853
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
6734
6854
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
6855
+ }, z.core.$strip>, z.ZodObject<{
6856
+ integrationId: z.ZodString;
6857
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
6858
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
6859
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
6860
+ }, z.core.$strip>, z.ZodObject<{
6861
+ integrationId: z.ZodString;
6862
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
6863
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
6864
+ adAccountId: z.ZodNullable<z.ZodString>;
6865
+ pageId: z.ZodNullable<z.ZodString>;
6866
+ }, z.core.$strip>, z.ZodObject<{
6867
+ integrationId: z.ZodString;
6868
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
6869
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
6735
6870
  }, z.core.$strip>]>;
6736
6871
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6737
6872
  webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7411,6 +7546,21 @@ export declare const agentsResponseSchema: z.ZodObject<{
7411
7546
  integrationId: z.ZodString;
7412
7547
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
7413
7548
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
7549
+ }, z.core.$strip>, z.ZodObject<{
7550
+ integrationId: z.ZodString;
7551
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
7552
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
7553
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
7554
+ }, z.core.$strip>, z.ZodObject<{
7555
+ integrationId: z.ZodString;
7556
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
7557
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
7558
+ adAccountId: z.ZodNullable<z.ZodString>;
7559
+ pageId: z.ZodNullable<z.ZodString>;
7560
+ }, z.core.$strip>, z.ZodObject<{
7561
+ integrationId: z.ZodString;
7562
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
7563
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
7414
7564
  }, z.core.$strip>]>;
7415
7565
  }, z.core.$strip>>;
7416
7566
  createdByUserId: z.ZodString;
@@ -8124,6 +8274,21 @@ export declare const recentAgentSchema: z.ZodObject<{
8124
8274
  integrationId: z.ZodString;
8125
8275
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
8126
8276
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
8277
+ }, z.core.$strip>, z.ZodObject<{
8278
+ integrationId: z.ZodString;
8279
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
8280
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
8281
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
8282
+ }, z.core.$strip>, z.ZodObject<{
8283
+ integrationId: z.ZodString;
8284
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
8285
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
8286
+ adAccountId: z.ZodNullable<z.ZodString>;
8287
+ pageId: z.ZodNullable<z.ZodString>;
8288
+ }, z.core.$strip>, z.ZodObject<{
8289
+ integrationId: z.ZodString;
8290
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
8291
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
8127
8292
  }, z.core.$strip>]>;
8128
8293
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8129
8294
  webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8803,6 +8968,21 @@ export declare const recentAgentSchema: z.ZodObject<{
8803
8968
  integrationId: z.ZodString;
8804
8969
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
8805
8970
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
8971
+ }, z.core.$strip>, z.ZodObject<{
8972
+ integrationId: z.ZodString;
8973
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
8974
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
8975
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
8976
+ }, z.core.$strip>, z.ZodObject<{
8977
+ integrationId: z.ZodString;
8978
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
8979
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
8980
+ adAccountId: z.ZodNullable<z.ZodString>;
8981
+ pageId: z.ZodNullable<z.ZodString>;
8982
+ }, z.core.$strip>, z.ZodObject<{
8983
+ integrationId: z.ZodString;
8984
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
8985
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
8806
8986
  }, z.core.$strip>]>;
8807
8987
  }, z.core.$strip>>;
8808
8988
  createdByUserId: z.ZodString;
@@ -9303,6 +9483,17 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
9303
9483
  integrationId: z.ZodString;
9304
9484
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
9305
9485
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
9486
+ }, z.core.$strip>, z.ZodObject<{
9487
+ integrationId: z.ZodString;
9488
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
9489
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
9490
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
9491
+ }, z.core.$strip>, z.ZodObject<{
9492
+ integrationId: z.ZodString;
9493
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
9494
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
9495
+ adAccountId: z.ZodNullable<z.ZodString>;
9496
+ pageId: z.ZodNullable<z.ZodString>;
9306
9497
  }, z.core.$strip>]>>>;
9307
9498
  options: z.ZodOptional<z.ZodObject<{
9308
9499
  maxTurns: z.ZodOptional<z.ZodNumber>;
@@ -11409,6 +11600,17 @@ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
11409
11600
  integrationId: z.ZodString;
11410
11601
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
11411
11602
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
11603
+ }, z.core.$strip>, z.ZodObject<{
11604
+ integrationId: z.ZodString;
11605
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
11606
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
11607
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
11608
+ }, z.core.$strip>, z.ZodObject<{
11609
+ integrationId: z.ZodString;
11610
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
11611
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
11612
+ adAccountId: z.ZodNullable<z.ZodString>;
11613
+ pageId: z.ZodNullable<z.ZodString>;
11412
11614
  }, z.core.$strip>]>>;
11413
11615
  toolApprovals: z.ZodArray<z.ZodString>;
11414
11616
  options: z.ZodObject<{
@@ -13513,6 +13715,17 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
13513
13715
  integrationId: z.ZodString;
13514
13716
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
13515
13717
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
13718
+ }, z.core.$strip>, z.ZodObject<{
13719
+ integrationId: z.ZodString;
13720
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
13721
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
13722
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
13723
+ }, z.core.$strip>, z.ZodObject<{
13724
+ integrationId: z.ZodString;
13725
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
13726
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
13727
+ adAccountId: z.ZodNullable<z.ZodString>;
13728
+ pageId: z.ZodNullable<z.ZodString>;
13516
13729
  }, z.core.$strip>]>>;
13517
13730
  toolApprovals: z.ZodArray<z.ZodString>;
13518
13731
  options: z.ZodObject<{
@@ -13702,11 +13915,30 @@ export declare const sdkInputResponseTransportSchema: z.ZodDefault<z.ZodEnum<{
13702
13915
  poll: "poll";
13703
13916
  }>>;
13704
13917
  export type SdkInputResponseTransport = z.infer<typeof sdkInputResponseTransportSchema>;
13918
+ export declare const sdkInputRequestMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13919
+ url: z.ZodString;
13920
+ altText: z.ZodOptional<z.ZodString>;
13921
+ kind: z.ZodLiteral<"image">;
13922
+ }, z.core.$strip>, z.ZodObject<{
13923
+ url: z.ZodString;
13924
+ altText: z.ZodOptional<z.ZodString>;
13925
+ kind: z.ZodLiteral<"video">;
13926
+ }, z.core.$strip>], "kind">;
13927
+ export type SdkInputRequestMedia = z.infer<typeof sdkInputRequestMediaSchema>;
13705
13928
  export declare const sdkInputRequestRegisterBodySchema: z.ZodObject<{
13706
13929
  token: z.ZodString;
13707
13930
  runId: z.ZodString;
13708
13931
  prompt: z.ZodString;
13709
13932
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13933
+ media: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
13934
+ url: z.ZodString;
13935
+ altText: z.ZodOptional<z.ZodString>;
13936
+ kind: z.ZodLiteral<"image">;
13937
+ }, z.core.$strip>, z.ZodObject<{
13938
+ url: z.ZodString;
13939
+ altText: z.ZodOptional<z.ZodString>;
13940
+ kind: z.ZodLiteral<"video">;
13941
+ }, z.core.$strip>], "kind">>>;
13710
13942
  options: z.ZodArray<z.ZodObject<{
13711
13943
  id: z.ZodString;
13712
13944
  label: z.ZodString;
@@ -15264,6 +15496,7 @@ export declare const sdkTestRunStartRequestSchema: z.ZodObject<{
15264
15496
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
15265
15497
  formattedContent: z.ZodString;
15266
15498
  debugLog: z.ZodString;
15499
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
15267
15500
  display: z.ZodOptional<z.ZodObject<{
15268
15501
  title: z.ZodString;
15269
15502
  subtitle: z.ZodString;
@@ -17363,6 +17596,7 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
17363
17596
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
17364
17597
  formattedContent: z.ZodString;
17365
17598
  debugLog: z.ZodString;
17599
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
17366
17600
  display: z.ZodOptional<z.ZodObject<{
17367
17601
  title: z.ZodString;
17368
17602
  subtitle: z.ZodString;
@@ -20063,6 +20297,21 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
20063
20297
  integrationId: z.ZodString;
20064
20298
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.APOLLO>;
20065
20299
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.APOLLO_OUTPUT>;
20300
+ }, z.core.$strip>, z.ZodObject<{
20301
+ integrationId: z.ZodString;
20302
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GOOGLE_SEARCH_CONSOLE>;
20303
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GOOGLE_SEARCH_CONSOLE_OUTPUT>;
20304
+ siteUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
20305
+ }, z.core.$strip>, z.ZodObject<{
20306
+ integrationId: z.ZodString;
20307
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.META_ADS>;
20308
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.META_ADS_OUTPUT>;
20309
+ adAccountId: z.ZodNullable<z.ZodString>;
20310
+ pageId: z.ZodNullable<z.ZodString>;
20311
+ }, z.core.$strip>, z.ZodObject<{
20312
+ integrationId: z.ZodString;
20313
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.HIGGSFIELD>;
20314
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.HIGGSFIELD_OUTPUT>;
20066
20315
  }, z.core.$strip>]>;
20067
20316
  }, z.core.$strip>>;
20068
20317
  }, z.core.$strip>;
@@ -20179,6 +20428,7 @@ export declare const sdkSampleEventRefSchema: z.ZodObject<{
20179
20428
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
20180
20429
  formattedContent: z.ZodString;
20181
20430
  debugLog: z.ZodString;
20431
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
20182
20432
  display: z.ZodOptional<z.ZodObject<{
20183
20433
  title: z.ZodString;
20184
20434
  subtitle: z.ZodString;
@@ -22275,6 +22525,7 @@ export declare const sdkSampleEventsResponseSchema: z.ZodObject<{
22275
22525
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
22276
22526
  formattedContent: z.ZodString;
22277
22527
  debugLog: z.ZodString;
22528
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
22278
22529
  display: z.ZodOptional<z.ZodObject<{
22279
22530
  title: z.ZodString;
22280
22531
  subtitle: z.ZodString;
@@ -24375,6 +24626,7 @@ export declare const sdkHydrateSampleEventResponseSchema: z.ZodObject<{
24375
24626
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
24376
24627
  formattedContent: z.ZodString;
24377
24628
  debugLog: z.ZodString;
24629
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
24378
24630
  display: z.ZodOptional<z.ZodObject<{
24379
24631
  title: z.ZodString;
24380
24632
  subtitle: z.ZodString;
@@ -28481,6 +28733,7 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
28481
28733
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
28482
28734
  formattedContent: z.ZodString;
28483
28735
  debugLog: z.ZodString;
28736
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
28484
28737
  display: z.ZodOptional<z.ZodObject<{
28485
28738
  title: z.ZodString;
28486
28739
  subtitle: z.ZodString;
@@ -30654,6 +30907,7 @@ export declare const sdkListenForwardedEventSchema: z.ZodObject<{
30654
30907
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
30655
30908
  formattedContent: z.ZodString;
30656
30909
  debugLog: z.ZodString;
30910
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
30657
30911
  display: z.ZodOptional<z.ZodObject<{
30658
30912
  title: z.ZodString;
30659
30913
  subtitle: z.ZodString;
@@ -32745,6 +32999,7 @@ export declare const sdkListenStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodO
32745
32999
  }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
32746
33000
  formattedContent: z.ZodString;
32747
33001
  debugLog: z.ZodString;
33002
+ triggeredAt: z.ZodDefault<z.ZodISODateTime>;
32748
33003
  display: z.ZodOptional<z.ZodObject<{
32749
33004
  title: z.ZodString;
32750
33005
  subtitle: z.ZodString;
package/dist/types.js CHANGED
@@ -533,11 +533,20 @@ export const sdkInputRequestTargetSchema = z.discriminatedUnion("provider", [
533
533
  })
534
534
  ]);
535
535
  export const sdkInputResponseTransportSchema = z.enum(["suspend", "poll"]).default("suspend");
536
+ const inputRequestMediaFields = {
537
+ url: z.string().min(1).max(3000),
538
+ altText: z.string().max(2000).optional()
539
+ };
540
+ export const sdkInputRequestMediaSchema = z.discriminatedUnion("kind", [
541
+ z.object({ kind: z.literal("image"), ...inputRequestMediaFields }),
542
+ z.object({ kind: z.literal("video"), ...inputRequestMediaFields })
543
+ ]);
536
544
  export const sdkInputRequestRegisterBodySchema = z.object({
537
545
  token: z.string().min(1),
538
546
  runId: z.string().min(1),
539
547
  prompt: z.string().min(1),
540
548
  details: z.record(z.string(), z.string()).optional(),
549
+ media: z.array(sdkInputRequestMediaSchema).max(10).optional(),
541
550
  options: z.array(sdkInputRequestOptionSchema).min(1),
542
551
  via: sdkInputRequestTargetSchema,
543
552
  transport: sdkInputResponseTransportSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",
@@ -1,19 +0,0 @@
1
- /**
2
- * Collapses a single Attio value entry (or nested structure) toward primitives /
3
- * simple objects, matching the shape produced for generated Attio tool outputs.
4
- */
5
- export declare function flattenAttioLeafValue(value: unknown): unknown;
6
- /**
7
- * Flattens one attribute’s raw value (often an array of interaction rows from the REST API).
8
- * @param preferArray When true, keep all entries as an array; when false, use the first entry only.
9
- */
10
- export declare function flattenAttioAttributeValue(rawValue: unknown, preferArray: boolean): unknown;
11
- /**
12
- * Flattens `record.values` from Attio’s GET record / webhook enrichment payload.
13
- */
14
- export declare function flattenAttioRecordValues(values: Record<string, unknown>, isMultiValueAttribute: (attributeSlug: string) => boolean): Record<string, unknown>;
15
- /**
16
- * Slug-only heuristic when object attribute metadata is unavailable (e.g. Attio webhook triggers).
17
- * Prefer {@link flattenAttioRecordValues} with object-aware multi-value info from codegen when possible.
18
- */
19
- export declare function isProbablyAttioMultiValueAttributeSlug(attributeSlug: string): boolean;
@@ -1,71 +0,0 @@
1
- /** Keys Attio nests on attribute timeline entries (not the semantic payload). */
2
- const ATTIO_VALUE_METADATA_KEYS = new Set([
3
- "active_from",
4
- "active_until",
5
- "attribute_type",
6
- "created_by_actor"
7
- ]);
8
- /**
9
- * Collapses a single Attio value entry (or nested structure) toward primitives /
10
- * simple objects, matching the shape produced for generated Attio tool outputs.
11
- */
12
- export function flattenAttioLeafValue(value) {
13
- if (value === null || value === undefined)
14
- return value;
15
- if (Array.isArray(value))
16
- return value.map(entry => flattenAttioLeafValue(entry));
17
- if (typeof value !== "object")
18
- return value;
19
- const rawObject = value;
20
- if (typeof rawObject.full_name === "string")
21
- return rawObject.full_name;
22
- if (typeof rawObject.email_address === "string")
23
- return rawObject.email_address;
24
- if (typeof rawObject.domain === "string")
25
- return rawObject.domain;
26
- if (typeof rawObject.phone_number === "string")
27
- return rawObject.phone_number;
28
- if ("value" in rawObject)
29
- return flattenAttioLeafValue(rawObject.value);
30
- const dataEntries = Object.entries(rawObject).filter(([key]) => !ATTIO_VALUE_METADATA_KEYS.has(key));
31
- if (dataEntries.length === 0)
32
- return rawObject;
33
- if (dataEntries.length === 1)
34
- return flattenAttioLeafValue(dataEntries[0][1]);
35
- return Object.fromEntries(dataEntries.map(([key, entryValue]) => [key, flattenAttioLeafValue(entryValue)]));
36
- }
37
- /**
38
- * Flattens one attribute’s raw value (often an array of interaction rows from the REST API).
39
- * @param preferArray When true, keep all entries as an array; when false, use the first entry only.
40
- */
41
- export function flattenAttioAttributeValue(rawValue, preferArray) {
42
- if (!Array.isArray(rawValue))
43
- return flattenAttioLeafValue(rawValue);
44
- const flattened = rawValue.map(entry => flattenAttioLeafValue(entry)).filter(entry => entry !== undefined);
45
- return preferArray ? flattened : flattened[0];
46
- }
47
- /**
48
- * Flattens `record.values` from Attio’s GET record / webhook enrichment payload.
49
- */
50
- export function flattenAttioRecordValues(values, isMultiValueAttribute) {
51
- const flattenedValues = {};
52
- for (const [attributeSlug, rawValue] of Object.entries(values)) {
53
- flattenedValues[attributeSlug] = flattenAttioAttributeValue(rawValue, isMultiValueAttribute(attributeSlug));
54
- }
55
- return flattenedValues;
56
- }
57
- /**
58
- * Slug-only heuristic when object attribute metadata is unavailable (e.g. Attio webhook triggers).
59
- * Prefer {@link flattenAttioRecordValues} with object-aware multi-value info from codegen when possible.
60
- */
61
- export function isProbablyAttioMultiValueAttributeSlug(attributeSlug) {
62
- const slug = attributeSlug.toLowerCase();
63
- return (slug === "email_addresses" ||
64
- slug === "domains" ||
65
- slug === "phone_numbers" ||
66
- slug === "social_profiles" ||
67
- slug === "links" ||
68
- slug === "tags" ||
69
- slug.endsWith("_addresses") ||
70
- slug.endsWith("_ids"));
71
- }
File without changes
@@ -1,10 +0,0 @@
1
- import { z } from "zod";
2
- // Can be serialized a string, supports deserialization
3
- const booleanMetadataSchema = z
4
- .union([z.boolean(), z.string()])
5
- .optional()
6
- .transform(value => value === true || value === "true");
7
- export const organizationMetadataSchema = z.object({
8
- stripeCustomerId: z.string(),
9
- runExecutionBlocked: booleanMetadataSchema
10
- });