terse-types 0.0.75 → 0.0.77
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/ApiRouteBuilder.d.ts +5 -0
- package/dist/ApiRoutes.json +6 -1
- package/dist/Configs.d.ts +31 -1
- package/dist/Configs.js +35 -4
- package/dist/Integrations.d.ts +53 -4
- package/dist/Integrations.js +34 -4
- package/dist/InvalidationKeys.d.ts +1 -0
- package/dist/InvalidationKeys.js +1 -0
- package/dist/Tools.d.ts +128 -0
- package/dist/Tools.js +26 -1
- package/dist/types.d.ts +67 -0
- package/dist/types.js +3 -1
- package/package.json +1 -1
|
@@ -94,6 +94,10 @@ export declare const ApiRoutes: {
|
|
|
94
94
|
INTEGRATIONS: string;
|
|
95
95
|
CAMPAIGNS: string;
|
|
96
96
|
};
|
|
97
|
+
RESEND: {
|
|
98
|
+
INTEGRATIONS: string;
|
|
99
|
+
TEMPLATES: string;
|
|
100
|
+
};
|
|
97
101
|
AGENTS: {
|
|
98
102
|
LIST: string;
|
|
99
103
|
RECENT: string;
|
|
@@ -119,6 +123,7 @@ export declare const ApiRoutes: {
|
|
|
119
123
|
LIST: string;
|
|
120
124
|
DISCONNECT_BY_TYPE: string;
|
|
121
125
|
ACTIVE: string;
|
|
126
|
+
CONNECTIONS_BY_TYPE: string;
|
|
122
127
|
};
|
|
123
128
|
NOTIFICATION_DESTINATIONS: {
|
|
124
129
|
LIST: string;
|
package/dist/ApiRoutes.json
CHANGED
|
@@ -94,6 +94,10 @@
|
|
|
94
94
|
"INTEGRATIONS": "/heyreach/integrations",
|
|
95
95
|
"CAMPAIGNS": "/heyreach/campaigns"
|
|
96
96
|
},
|
|
97
|
+
"RESEND": {
|
|
98
|
+
"INTEGRATIONS": "/resend/integrations",
|
|
99
|
+
"TEMPLATES": "/resend/templates"
|
|
100
|
+
},
|
|
97
101
|
"AGENTS": {
|
|
98
102
|
"LIST": "/agents",
|
|
99
103
|
"RECENT": "/agents/recent",
|
|
@@ -118,7 +122,8 @@
|
|
|
118
122
|
"INSTALLATION_DETAILS_BY_TYPE": "/integrations/:integrationType/installation-details",
|
|
119
123
|
"LIST": "/integrations",
|
|
120
124
|
"DISCONNECT_BY_TYPE": "/integrations/:integrationType/disconnect",
|
|
121
|
-
"ACTIVE": "/integrations/active"
|
|
125
|
+
"ACTIVE": "/integrations/active",
|
|
126
|
+
"CONNECTIONS_BY_TYPE": "/integrations/:integrationType/connections"
|
|
122
127
|
},
|
|
123
128
|
"NOTIFICATION_DESTINATIONS": {
|
|
124
129
|
"LIST": "/notification-destinations",
|
package/dist/Configs.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export declare enum ConfigType {
|
|
|
24
24
|
SNOWFLAKE_OUTPUT = "snowflake_output",
|
|
25
25
|
WEBHOOK_INPUT = "webhook_input",
|
|
26
26
|
WEBMONITOR = "webmonitor",
|
|
27
|
-
HEY_REACH_INPUT = "hey_reach_input"
|
|
27
|
+
HEY_REACH_INPUT = "hey_reach_input",
|
|
28
|
+
RESEND_OUTPUT = "resend_output"
|
|
28
29
|
}
|
|
29
30
|
export declare const configTypeEnum: z.ZodEnum<typeof ConfigType>;
|
|
30
31
|
export declare const frequencyUnitSchema: z.ZodEnum<{
|
|
@@ -233,6 +234,14 @@ export declare const HeyReachInputConfigMetadata: {
|
|
|
233
234
|
readonly isInput: true;
|
|
234
235
|
readonly isOutput: false;
|
|
235
236
|
};
|
|
237
|
+
export declare const ResendOutputConfigMetadata: {
|
|
238
|
+
readonly configType: ConfigType.RESEND_OUTPUT;
|
|
239
|
+
readonly name: "Resend";
|
|
240
|
+
readonly description: "Send transactional email using published Resend templates";
|
|
241
|
+
readonly integrationType: IntegrationType.RESEND;
|
|
242
|
+
readonly isInput: false;
|
|
243
|
+
readonly isOutput: true;
|
|
244
|
+
};
|
|
236
245
|
export type ConfigDetailsMap = Record<ConfigType, ConfigDetails>;
|
|
237
246
|
export declare const CONFIG_DETAILS: ConfigDetailsMap;
|
|
238
247
|
export declare const SlackEventType: {
|
|
@@ -939,6 +948,18 @@ export declare class SnowflakeOutputConfig extends BaseConfigInstance<Integratio
|
|
|
939
948
|
isComplete(): boolean;
|
|
940
949
|
formatForAgent(): string;
|
|
941
950
|
}
|
|
951
|
+
export declare const ResendOutputConfigSchema: z.ZodObject<{
|
|
952
|
+
integrationId: z.ZodString;
|
|
953
|
+
integrationType: z.ZodLiteral<IntegrationType.RESEND>;
|
|
954
|
+
configType: z.ZodLiteral<ConfigType.RESEND_OUTPUT>;
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
export type ResendOutputConfigData = z.infer<typeof ResendOutputConfigSchema>;
|
|
957
|
+
export type ResendOutputConfigInstance = ResendOutputConfigData & ConfigBehavior;
|
|
958
|
+
export declare class ResendOutputConfig extends BaseConfigInstance<IntegrationType.RESEND, ConfigType.RESEND_OUTPUT> implements ResendOutputConfigInstance {
|
|
959
|
+
constructor(integrationId: string);
|
|
960
|
+
isComplete(): boolean;
|
|
961
|
+
formatForAgent(): string;
|
|
962
|
+
}
|
|
942
963
|
export declare const WebhookInputConfigSchema: z.ZodObject<{
|
|
943
964
|
integrationId: z.ZodLiteral<"system">;
|
|
944
965
|
integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
|
|
@@ -1237,6 +1258,10 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1237
1258
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
1238
1259
|
}>;
|
|
1239
1260
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1261
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1262
|
+
integrationId: z.ZodString;
|
|
1263
|
+
integrationType: z.ZodLiteral<IntegrationType.RESEND>;
|
|
1264
|
+
configType: z.ZodLiteral<ConfigType.RESEND_OUTPUT>;
|
|
1240
1265
|
}, z.core.$strip>]>;
|
|
1241
1266
|
export type ConfigData = z.infer<typeof configDataSchema>;
|
|
1242
1267
|
/** Configs that can serve as triggers (event sources). */
|
|
@@ -1485,6 +1510,10 @@ export declare const skillConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1485
1510
|
integrationId: z.ZodString;
|
|
1486
1511
|
integrationType: z.ZodLiteral<IntegrationType.SNOWFLAKE>;
|
|
1487
1512
|
configType: z.ZodLiteral<ConfigType.SNOWFLAKE_OUTPUT>;
|
|
1513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1514
|
+
integrationId: z.ZodString;
|
|
1515
|
+
integrationType: z.ZodLiteral<IntegrationType.RESEND>;
|
|
1516
|
+
configType: z.ZodLiteral<ConfigType.RESEND_OUTPUT>;
|
|
1488
1517
|
}, z.core.$strip>]>;
|
|
1489
1518
|
export type SkillConfigData = z.infer<typeof skillConfigDataSchema>;
|
|
1490
1519
|
export declare function isConfigComplete(config: ConfigData | undefined): boolean;
|
|
@@ -1515,6 +1544,7 @@ export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
|
|
|
1515
1544
|
[ConfigType.WEBHOOK_INPUT]: typeof WebhookInputConfig;
|
|
1516
1545
|
[ConfigType.WEBMONITOR]: typeof WebMonitorConfig;
|
|
1517
1546
|
[ConfigType.HEY_REACH_INPUT]: typeof HeyReachInputConfig;
|
|
1547
|
+
[ConfigType.RESEND_OUTPUT]: typeof ResendOutputConfig;
|
|
1518
1548
|
}>;
|
|
1519
1549
|
export declare const CONFIG_METADATA: ConfigMetadataMap;
|
|
1520
1550
|
export {};
|
package/dist/Configs.js
CHANGED
|
@@ -26,6 +26,7 @@ export var ConfigType;
|
|
|
26
26
|
ConfigType["WEBHOOK_INPUT"] = "webhook_input";
|
|
27
27
|
ConfigType["WEBMONITOR"] = "webmonitor";
|
|
28
28
|
ConfigType["HEY_REACH_INPUT"] = "hey_reach_input";
|
|
29
|
+
ConfigType["RESEND_OUTPUT"] = "resend_output";
|
|
29
30
|
})(ConfigType || (ConfigType = {}));
|
|
30
31
|
export const configTypeEnum = z.enum(ConfigType);
|
|
31
32
|
export const frequencyUnitSchema = z.enum(["hour", "day", "week"]);
|
|
@@ -222,6 +223,14 @@ export const HeyReachInputConfigMetadata = {
|
|
|
222
223
|
isInput: true,
|
|
223
224
|
isOutput: false
|
|
224
225
|
};
|
|
226
|
+
export const ResendOutputConfigMetadata = {
|
|
227
|
+
configType: ConfigType.RESEND_OUTPUT,
|
|
228
|
+
name: "Resend",
|
|
229
|
+
description: "Send transactional email using published Resend templates",
|
|
230
|
+
integrationType: IntegrationType.RESEND,
|
|
231
|
+
isInput: false,
|
|
232
|
+
isOutput: true
|
|
233
|
+
};
|
|
225
234
|
export const CONFIG_DETAILS = {
|
|
226
235
|
[ConfigType.GMAIL]: GmailConfigMetadata,
|
|
227
236
|
[ConfigType.GMAIL_OUTPUT]: GmailOutputConfigMetadata,
|
|
@@ -246,7 +255,8 @@ export const CONFIG_DETAILS = {
|
|
|
246
255
|
[ConfigType.SNOWFLAKE_OUTPUT]: SnowflakeOutputConfigMetadata,
|
|
247
256
|
[ConfigType.WEBHOOK_INPUT]: WebhookInputConfigMetadata,
|
|
248
257
|
[ConfigType.WEBMONITOR]: WebMonitorConfigMetadata,
|
|
249
|
-
[ConfigType.HEY_REACH_INPUT]: HeyReachInputConfigMetadata
|
|
258
|
+
[ConfigType.HEY_REACH_INPUT]: HeyReachInputConfigMetadata,
|
|
259
|
+
[ConfigType.RESEND_OUTPUT]: ResendOutputConfigMetadata
|
|
250
260
|
};
|
|
251
261
|
// MARK: Event Types — specific events within each integration trigger
|
|
252
262
|
export const SlackEventType = {
|
|
@@ -917,6 +927,21 @@ export class SnowflakeOutputConfig extends BaseConfigInstance {
|
|
|
917
927
|
return parts.join("\n");
|
|
918
928
|
}
|
|
919
929
|
}
|
|
930
|
+
export const ResendOutputConfigSchema = ConfigInstanceSchema.extend({
|
|
931
|
+
integrationType: z.literal(IntegrationType.RESEND),
|
|
932
|
+
configType: z.literal(ConfigType.RESEND_OUTPUT)
|
|
933
|
+
});
|
|
934
|
+
export class ResendOutputConfig extends BaseConfigInstance {
|
|
935
|
+
constructor(integrationId) {
|
|
936
|
+
super(integrationId, IntegrationType.RESEND, ConfigType.RESEND_OUTPUT);
|
|
937
|
+
}
|
|
938
|
+
isComplete() {
|
|
939
|
+
return !!this.integrationId;
|
|
940
|
+
}
|
|
941
|
+
formatForAgent() {
|
|
942
|
+
return `Type: Resend Output\nIntegration ID: ${this.integrationId}`;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
920
945
|
export const WebhookInputConfigSchema = ConfigInstanceSchema.extend({
|
|
921
946
|
integrationId: z.literal("system"),
|
|
922
947
|
integrationType: z.literal(IntegrationType.WEBHOOK),
|
|
@@ -1032,7 +1057,8 @@ export const configDataSchema = z.union([
|
|
|
1032
1057
|
SnowflakeOutputConfigSchema,
|
|
1033
1058
|
WebhookInputConfigSchema,
|
|
1034
1059
|
WebMonitorConfigSchema,
|
|
1035
|
-
HeyReachInputConfigSchema
|
|
1060
|
+
HeyReachInputConfigSchema,
|
|
1061
|
+
ResendOutputConfigSchema
|
|
1036
1062
|
]);
|
|
1037
1063
|
/** Configs that can serve as triggers (event sources). */
|
|
1038
1064
|
export const triggerConfigDataSchema = z.union([
|
|
@@ -1063,7 +1089,8 @@ export const skillConfigDataSchema = z.union([
|
|
|
1063
1089
|
MemoryConfigSchema,
|
|
1064
1090
|
WorkOSOutputConfigSchema,
|
|
1065
1091
|
AttioOutputConfigSchema,
|
|
1066
|
-
SnowflakeOutputConfigSchema
|
|
1092
|
+
SnowflakeOutputConfigSchema,
|
|
1093
|
+
ResendOutputConfigSchema
|
|
1067
1094
|
]);
|
|
1068
1095
|
export function isConfigComplete(config) {
|
|
1069
1096
|
if (!config) {
|
|
@@ -1090,6 +1117,7 @@ export function isConfigComplete(config) {
|
|
|
1090
1117
|
case ConfigType.DATADOG:
|
|
1091
1118
|
case ConfigType.WORKOS_OUTPUT:
|
|
1092
1119
|
case ConfigType.SNOWFLAKE_OUTPUT:
|
|
1120
|
+
case ConfigType.RESEND_OUTPUT:
|
|
1093
1121
|
return !!config.integrationId;
|
|
1094
1122
|
case ConfigType.GITHUB:
|
|
1095
1123
|
return (config.repositoryIds?.length ?? 0) > 0;
|
|
@@ -1253,6 +1281,8 @@ export function formatConfigForAgent(config) {
|
|
|
1253
1281
|
}
|
|
1254
1282
|
case ConfigType.SNOWFLAKE_OUTPUT:
|
|
1255
1283
|
return `Type: Snowflake Output\nIntegration ID: ${config.integrationId}`;
|
|
1284
|
+
case ConfigType.RESEND_OUTPUT:
|
|
1285
|
+
return `Type: Resend Output\nIntegration ID: ${config.integrationId}`;
|
|
1256
1286
|
case ConfigType.WEBHOOK_INPUT:
|
|
1257
1287
|
return "Type: Webhook Trigger";
|
|
1258
1288
|
case ConfigType.WEBMONITOR: {
|
|
@@ -1293,5 +1323,6 @@ export const CONFIG_METADATA = {
|
|
|
1293
1323
|
[ConfigType.SNOWFLAKE_OUTPUT]: SnowflakeOutputConfig,
|
|
1294
1324
|
[ConfigType.WEBHOOK_INPUT]: WebhookInputConfig,
|
|
1295
1325
|
[ConfigType.WEBMONITOR]: WebMonitorConfig,
|
|
1296
|
-
[ConfigType.HEY_REACH_INPUT]: HeyReachInputConfig
|
|
1326
|
+
[ConfigType.HEY_REACH_INPUT]: HeyReachInputConfig,
|
|
1327
|
+
[ConfigType.RESEND_OUTPUT]: ResendOutputConfig
|
|
1297
1328
|
};
|
package/dist/Integrations.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
export declare enum IntegrationType {
|
|
3
3
|
GITHUB = "github",
|
|
4
4
|
HEY_REACH = "hey_reach",
|
|
5
|
+
RESEND = "resend",
|
|
5
6
|
GMAIL = "gmail",
|
|
6
7
|
LINEAR = "linear",
|
|
7
8
|
SLACK = "slack",
|
|
@@ -137,6 +138,13 @@ export declare const HeyReachIntegrationMetadata: {
|
|
|
137
138
|
readonly isInput: true;
|
|
138
139
|
readonly isOutput: false;
|
|
139
140
|
};
|
|
141
|
+
export declare const ResendIntegrationMetadata: {
|
|
142
|
+
readonly type: IntegrationType.RESEND;
|
|
143
|
+
readonly name: "Resend";
|
|
144
|
+
readonly description: "Send transactional email using published Resend templates";
|
|
145
|
+
readonly isInput: false;
|
|
146
|
+
readonly isOutput: true;
|
|
147
|
+
};
|
|
140
148
|
export type IntegrationMetadataMap = Record<IntegrationType, IntegrationDetails>;
|
|
141
149
|
export declare const INTEGRATION_METADATA: IntegrationMetadataMap;
|
|
142
150
|
export declare const IntegrationInstanceSchema: z.ZodObject<{
|
|
@@ -169,6 +177,7 @@ export declare const InstallationOptionsSchemas: {
|
|
|
169
177
|
readonly webhook: z.ZodObject<{}, z.core.$strict>;
|
|
170
178
|
readonly webmonitor: z.ZodObject<{}, z.core.$strict>;
|
|
171
179
|
readonly hey_reach: z.ZodObject<{}, z.core.$strict>;
|
|
180
|
+
readonly resend: z.ZodObject<{}, z.core.$strict>;
|
|
172
181
|
};
|
|
173
182
|
export type InstallationOptionsFor<T extends IntegrationType> = z.infer<(typeof InstallationOptionsSchemas)[T]>;
|
|
174
183
|
export declare const SlackIntegrationSchema: z.ZodObject<{
|
|
@@ -212,6 +221,34 @@ export declare const HeyReachIntegrationSchema: z.ZodObject<{
|
|
|
212
221
|
id: z.ZodString;
|
|
213
222
|
}, z.core.$strip>;
|
|
214
223
|
export type HeyReachIntegration = z.infer<typeof HeyReachIntegrationSchema>;
|
|
224
|
+
export declare const ResendIntegrationSchema: z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type ResendIntegration = z.infer<typeof ResendIntegrationSchema>;
|
|
228
|
+
export declare const ResendTemplateVariableSchema: z.ZodObject<{
|
|
229
|
+
key: z.ZodString;
|
|
230
|
+
type: z.ZodEnum<{
|
|
231
|
+
string: "string";
|
|
232
|
+
number: "number";
|
|
233
|
+
}>;
|
|
234
|
+
fallbackValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type ResendTemplateVariable = z.infer<typeof ResendTemplateVariableSchema>;
|
|
237
|
+
export declare const ResendTemplateSchema: z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
alias: z.ZodNullable<z.ZodString>;
|
|
240
|
+
name: z.ZodString;
|
|
241
|
+
status: z.ZodString;
|
|
242
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
243
|
+
key: z.ZodString;
|
|
244
|
+
type: z.ZodEnum<{
|
|
245
|
+
string: "string";
|
|
246
|
+
number: "number";
|
|
247
|
+
}>;
|
|
248
|
+
fallbackValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export type ResendTemplate = z.infer<typeof ResendTemplateSchema>;
|
|
215
252
|
export declare const LaunchDarklyIntegrationSchema: z.ZodObject<{
|
|
216
253
|
id: z.ZodString;
|
|
217
254
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -250,8 +287,8 @@ export declare const CliIntegrationDisplayStateSchema: z.ZodDiscriminatedUnion<[
|
|
|
250
287
|
status: z.ZodLiteral<"not_connected">;
|
|
251
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
289
|
status: z.ZodLiteral<"connected">;
|
|
253
|
-
|
|
254
|
-
|
|
290
|
+
connectionLabel: z.ZodString;
|
|
291
|
+
connectionName: z.ZodString;
|
|
255
292
|
integrationId: z.ZodString;
|
|
256
293
|
}, z.core.$strip>], "status">;
|
|
257
294
|
export type CliIntegrationDisplayState = z.infer<typeof CliIntegrationDisplayStateSchema>;
|
|
@@ -262,9 +299,21 @@ export declare const IntegrationWithStatusSchema: z.ZodObject<{
|
|
|
262
299
|
status: z.ZodLiteral<"not_connected">;
|
|
263
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
264
301
|
status: z.ZodLiteral<"connected">;
|
|
265
|
-
|
|
266
|
-
|
|
302
|
+
connectionLabel: z.ZodString;
|
|
303
|
+
connectionName: z.ZodString;
|
|
267
304
|
integrationId: z.ZodString;
|
|
268
305
|
}, z.core.$strip>], "status">;
|
|
269
306
|
}, z.core.$strip>;
|
|
270
307
|
export type IntegrationWithStatus = z.infer<typeof IntegrationWithStatusSchema>;
|
|
308
|
+
export declare const IntegrationConnectionSchema: z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
name: z.ZodString;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
export type IntegrationConnection = z.infer<typeof IntegrationConnectionSchema>;
|
|
313
|
+
export declare const IntegrationConnectionsResponseSchema: z.ZodObject<{
|
|
314
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
315
|
+
id: z.ZodString;
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export type IntegrationConnectionsResponse = z.infer<typeof IntegrationConnectionsResponseSchema>;
|
package/dist/Integrations.js
CHANGED
|
@@ -4,6 +4,7 @@ export var IntegrationType;
|
|
|
4
4
|
(function (IntegrationType) {
|
|
5
5
|
IntegrationType["GITHUB"] = "github";
|
|
6
6
|
IntegrationType["HEY_REACH"] = "hey_reach";
|
|
7
|
+
IntegrationType["RESEND"] = "resend";
|
|
7
8
|
IntegrationType["GMAIL"] = "gmail";
|
|
8
9
|
IntegrationType["LINEAR"] = "linear";
|
|
9
10
|
IntegrationType["SLACK"] = "slack";
|
|
@@ -133,6 +134,13 @@ export const HeyReachIntegrationMetadata = {
|
|
|
133
134
|
isInput: true,
|
|
134
135
|
isOutput: false
|
|
135
136
|
};
|
|
137
|
+
export const ResendIntegrationMetadata = {
|
|
138
|
+
type: IntegrationType.RESEND,
|
|
139
|
+
name: "Resend",
|
|
140
|
+
description: "Send transactional email using published Resend templates",
|
|
141
|
+
isInput: false,
|
|
142
|
+
isOutput: true
|
|
143
|
+
};
|
|
136
144
|
export const INTEGRATION_METADATA = {
|
|
137
145
|
[IntegrationType.GMAIL]: GmailIntegrationMetadata,
|
|
138
146
|
[IntegrationType.NOTION]: NotionIntegrationMetadata,
|
|
@@ -149,7 +157,8 @@ export const INTEGRATION_METADATA = {
|
|
|
149
157
|
[IntegrationType.SNOWFLAKE]: SnowflakeIntegrationMetadata,
|
|
150
158
|
[IntegrationType.WEBHOOK]: WebhookIntegrationMetadata,
|
|
151
159
|
[IntegrationType.WEBMONITOR]: WebMonitorIntegrationMetadata,
|
|
152
|
-
[IntegrationType.HEY_REACH]: HeyReachIntegrationMetadata
|
|
160
|
+
[IntegrationType.HEY_REACH]: HeyReachIntegrationMetadata,
|
|
161
|
+
[IntegrationType.RESEND]: ResendIntegrationMetadata
|
|
153
162
|
};
|
|
154
163
|
// MARK: Integration Details
|
|
155
164
|
export const IntegrationInstanceSchema = z.object({
|
|
@@ -179,7 +188,8 @@ export const InstallationOptionsSchemas = {
|
|
|
179
188
|
[IntegrationType.SNOWFLAKE]: NoInstallationOptionsSchema,
|
|
180
189
|
[IntegrationType.WEBHOOK]: NoInstallationOptionsSchema,
|
|
181
190
|
[IntegrationType.WEBMONITOR]: NoInstallationOptionsSchema,
|
|
182
|
-
[IntegrationType.HEY_REACH]: NoInstallationOptionsSchema
|
|
191
|
+
[IntegrationType.HEY_REACH]: NoInstallationOptionsSchema,
|
|
192
|
+
[IntegrationType.RESEND]: NoInstallationOptionsSchema
|
|
183
193
|
};
|
|
184
194
|
export const SlackIntegrationSchema = IntegrationInstanceSchema.extend({
|
|
185
195
|
teamId: z.string().optional(),
|
|
@@ -207,6 +217,19 @@ export const PosthogIntegrationSchema = IntegrationInstanceSchema.extend({
|
|
|
207
217
|
orgName: z.string().optional()
|
|
208
218
|
});
|
|
209
219
|
export const HeyReachIntegrationSchema = IntegrationInstanceSchema;
|
|
220
|
+
export const ResendIntegrationSchema = IntegrationInstanceSchema;
|
|
221
|
+
export const ResendTemplateVariableSchema = z.object({
|
|
222
|
+
key: z.string(),
|
|
223
|
+
type: z.enum(["string", "number"]),
|
|
224
|
+
fallbackValue: z.union([z.string(), z.number()]).nullable()
|
|
225
|
+
});
|
|
226
|
+
export const ResendTemplateSchema = z.object({
|
|
227
|
+
id: z.string(),
|
|
228
|
+
alias: z.string().nullable(),
|
|
229
|
+
name: z.string(),
|
|
230
|
+
status: z.string(),
|
|
231
|
+
variables: z.array(ResendTemplateVariableSchema)
|
|
232
|
+
});
|
|
210
233
|
export const LaunchDarklyIntegrationSchema = IntegrationInstanceSchema.extend({
|
|
211
234
|
email: z.email().optional(),
|
|
212
235
|
tokenName: z.string().optional()
|
|
@@ -234,8 +257,8 @@ export const CliIntegrationDisplayStateSchema = z.discriminatedUnion("status", [
|
|
|
234
257
|
}),
|
|
235
258
|
z.object({
|
|
236
259
|
status: z.literal("connected"),
|
|
237
|
-
|
|
238
|
-
|
|
260
|
+
connectionLabel: z.string(),
|
|
261
|
+
connectionName: z.string(),
|
|
239
262
|
integrationId: z.string()
|
|
240
263
|
})
|
|
241
264
|
]);
|
|
@@ -244,3 +267,10 @@ export const IntegrationWithStatusSchema = z.object({
|
|
|
244
267
|
isActive: z.boolean(),
|
|
245
268
|
cliDisplayState: CliIntegrationDisplayStateSchema
|
|
246
269
|
});
|
|
270
|
+
export const IntegrationConnectionSchema = z.object({
|
|
271
|
+
id: z.string(),
|
|
272
|
+
name: z.string()
|
|
273
|
+
});
|
|
274
|
+
export const IntegrationConnectionsResponseSchema = z.object({
|
|
275
|
+
connections: z.array(IntegrationConnectionSchema)
|
|
276
|
+
});
|
|
@@ -27,6 +27,7 @@ export declare const workosIntegrationsKey: () => readonly [string];
|
|
|
27
27
|
export declare const attioIntegrationsKey: () => readonly [string];
|
|
28
28
|
export declare const snowflakeIntegrationsKey: () => readonly [string];
|
|
29
29
|
export declare const heyReachIntegrationsKey: () => readonly [string];
|
|
30
|
+
export declare const resendIntegrationsKey: () => readonly [string];
|
|
30
31
|
export declare const attioObjectsKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
|
|
31
32
|
export declare const allRunHistoryKey: (params?: GetRunHistoryParams) => readonly [string, string] | readonly [string];
|
|
32
33
|
export declare const runHistoryKey: (agentId: string, params?: GetRunHistoryParams) => readonly [string, string, string] | readonly [string, string];
|
package/dist/InvalidationKeys.js
CHANGED
|
@@ -73,6 +73,7 @@ export const snowflakeIntegrationsKey = () => {
|
|
|
73
73
|
export const heyReachIntegrationsKey = () => {
|
|
74
74
|
return ["heyReachIntegrations"];
|
|
75
75
|
};
|
|
76
|
+
export const resendIntegrationsKey = () => ["resendIntegrations"];
|
|
76
77
|
export const attioObjectsKey = (integrationId) => {
|
|
77
78
|
if (!integrationId) {
|
|
78
79
|
return null;
|
package/dist/Tools.d.ts
CHANGED
|
@@ -8863,6 +8863,90 @@ export declare const memoryTool: {
|
|
|
8863
8863
|
result: z.ZodString;
|
|
8864
8864
|
}, z.core.$strip>;
|
|
8865
8865
|
};
|
|
8866
|
+
export declare const resendSendTemplateInputSchema: z.ZodObject<{
|
|
8867
|
+
integrationId: z.ZodString;
|
|
8868
|
+
templateId: z.ZodString;
|
|
8869
|
+
to: z.ZodArray<z.ZodEmail>;
|
|
8870
|
+
variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
8871
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8872
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8873
|
+
replyTo: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
8874
|
+
cc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
8875
|
+
bcc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
8876
|
+
idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8877
|
+
}, z.core.$strip>;
|
|
8878
|
+
export declare const resendSendTemplateOutputSchema: z.ZodObject<{
|
|
8879
|
+
success: z.ZodBoolean;
|
|
8880
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8881
|
+
action: z.ZodString;
|
|
8882
|
+
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
8883
|
+
target: z.ZodString;
|
|
8884
|
+
details: z.ZodString;
|
|
8885
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8886
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
8887
|
+
type: z.ZodEnum<{
|
|
8888
|
+
error: "error";
|
|
8889
|
+
approve: "approve";
|
|
8890
|
+
create: "create";
|
|
8891
|
+
update: "update";
|
|
8892
|
+
delete: "delete";
|
|
8893
|
+
read: "read";
|
|
8894
|
+
}>;
|
|
8895
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
8896
|
+
output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8897
|
+
output_item_id: z.ZodString;
|
|
8898
|
+
output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
8899
|
+
}, z.core.$strip>>>;
|
|
8900
|
+
}, z.core.$strip>>>;
|
|
8901
|
+
emailId: z.ZodString;
|
|
8902
|
+
templateId: z.ZodString;
|
|
8903
|
+
to: z.ZodArray<z.ZodString>;
|
|
8904
|
+
summary: z.ZodString;
|
|
8905
|
+
}, z.core.$strip>;
|
|
8906
|
+
export declare const resendSendTemplateTool: {
|
|
8907
|
+
name: "resend_send_template";
|
|
8908
|
+
description: string;
|
|
8909
|
+
inputSchema: z.ZodObject<{
|
|
8910
|
+
integrationId: z.ZodString;
|
|
8911
|
+
templateId: z.ZodString;
|
|
8912
|
+
to: z.ZodArray<z.ZodEmail>;
|
|
8913
|
+
variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
8914
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8915
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8916
|
+
replyTo: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
8917
|
+
cc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
8918
|
+
bcc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
8919
|
+
idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8920
|
+
}, z.core.$strip>;
|
|
8921
|
+
outputSchema: z.ZodObject<{
|
|
8922
|
+
success: z.ZodBoolean;
|
|
8923
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8924
|
+
action: z.ZodString;
|
|
8925
|
+
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
8926
|
+
target: z.ZodString;
|
|
8927
|
+
details: z.ZodString;
|
|
8928
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8929
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
8930
|
+
type: z.ZodEnum<{
|
|
8931
|
+
error: "error";
|
|
8932
|
+
approve: "approve";
|
|
8933
|
+
create: "create";
|
|
8934
|
+
update: "update";
|
|
8935
|
+
delete: "delete";
|
|
8936
|
+
read: "read";
|
|
8937
|
+
}>;
|
|
8938
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
8939
|
+
output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8940
|
+
output_item_id: z.ZodString;
|
|
8941
|
+
output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
8942
|
+
}, z.core.$strip>>>;
|
|
8943
|
+
}, z.core.$strip>>>;
|
|
8944
|
+
emailId: z.ZodString;
|
|
8945
|
+
templateId: z.ZodString;
|
|
8946
|
+
to: z.ZodArray<z.ZodString>;
|
|
8947
|
+
summary: z.ZodString;
|
|
8948
|
+
}, z.core.$strip>;
|
|
8949
|
+
};
|
|
8866
8950
|
export declare const ToolDefinitions: {
|
|
8867
8951
|
readonly linear_create_ticket: {
|
|
8868
8952
|
name: "linear_create_ticket";
|
|
@@ -14387,6 +14471,50 @@ export declare const ToolDefinitions: {
|
|
|
14387
14471
|
result: z.ZodString;
|
|
14388
14472
|
}, z.core.$strip>;
|
|
14389
14473
|
};
|
|
14474
|
+
readonly resend_send_template: {
|
|
14475
|
+
name: "resend_send_template";
|
|
14476
|
+
description: string;
|
|
14477
|
+
inputSchema: z.ZodObject<{
|
|
14478
|
+
integrationId: z.ZodString;
|
|
14479
|
+
templateId: z.ZodString;
|
|
14480
|
+
to: z.ZodArray<z.ZodEmail>;
|
|
14481
|
+
variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
14482
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14483
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14484
|
+
replyTo: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
14485
|
+
cc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
14486
|
+
bcc: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEmail>>>;
|
|
14487
|
+
idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14488
|
+
}, z.core.$strip>;
|
|
14489
|
+
outputSchema: z.ZodObject<{
|
|
14490
|
+
success: z.ZodBoolean;
|
|
14491
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14492
|
+
action: z.ZodString;
|
|
14493
|
+
integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
14494
|
+
target: z.ZodString;
|
|
14495
|
+
details: z.ZodString;
|
|
14496
|
+
url: z.ZodOptional<z.ZodString>;
|
|
14497
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
14498
|
+
type: z.ZodEnum<{
|
|
14499
|
+
error: "error";
|
|
14500
|
+
approve: "approve";
|
|
14501
|
+
create: "create";
|
|
14502
|
+
update: "update";
|
|
14503
|
+
delete: "delete";
|
|
14504
|
+
read: "read";
|
|
14505
|
+
}>;
|
|
14506
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
14507
|
+
output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14508
|
+
output_item_id: z.ZodString;
|
|
14509
|
+
output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
14510
|
+
}, z.core.$strip>>>;
|
|
14511
|
+
}, z.core.$strip>>>;
|
|
14512
|
+
emailId: z.ZodString;
|
|
14513
|
+
templateId: z.ZodString;
|
|
14514
|
+
to: z.ZodArray<z.ZodString>;
|
|
14515
|
+
summary: z.ZodString;
|
|
14516
|
+
}, z.core.$strip>;
|
|
14517
|
+
};
|
|
14390
14518
|
};
|
|
14391
14519
|
export type ToolName = keyof typeof ToolDefinitions;
|
|
14392
14520
|
export type ToolDefinitionByName<TName extends ToolName> = (typeof ToolDefinitions)[TName];
|
package/dist/Tools.js
CHANGED
|
@@ -2792,6 +2792,30 @@ export const memoryTool = defineTool({
|
|
|
2792
2792
|
inputSchema: memoryInputSchema,
|
|
2793
2793
|
outputSchema: memoryOutputSchema
|
|
2794
2794
|
});
|
|
2795
|
+
export const resendSendTemplateInputSchema = z.object({
|
|
2796
|
+
integrationId: z.string().describe("Connected Resend integration ID"),
|
|
2797
|
+
templateId: z.string().describe("Published template ID or alias"),
|
|
2798
|
+
to: z.array(z.email()).min(1).max(50).describe("Recipient email addresses"),
|
|
2799
|
+
variables: z.record(z.string(), z.union([z.string(), z.number()])).describe("Template variables keyed exactly as defined by the template"),
|
|
2800
|
+
from: z.string().nullable().optional().describe("Optional sender override; omit when the template defines one"),
|
|
2801
|
+
subject: z.string().nullable().optional().describe("Optional subject override; omit when the template defines one"),
|
|
2802
|
+
replyTo: z.email().nullable().optional().describe("Optional reply-to override"),
|
|
2803
|
+
cc: z.array(z.email()).nullable().optional().describe("Optional CC recipients"),
|
|
2804
|
+
bcc: z.array(z.email()).nullable().optional().describe("Optional BCC recipients"),
|
|
2805
|
+
idempotencyKey: z.string().max(256).nullable().optional().describe("Optional idempotency key, retained by Resend for 24 hours")
|
|
2806
|
+
});
|
|
2807
|
+
export const resendSendTemplateOutputSchema = toolOutputBaseSchema.extend({
|
|
2808
|
+
emailId: z.string(),
|
|
2809
|
+
templateId: z.string(),
|
|
2810
|
+
to: z.array(z.string()),
|
|
2811
|
+
summary: z.string()
|
|
2812
|
+
});
|
|
2813
|
+
export const resendSendTemplateTool = defineTool({
|
|
2814
|
+
name: "resend_send_template",
|
|
2815
|
+
description: "Send a published Resend email template. Supply every required template variable without a fallback value.",
|
|
2816
|
+
inputSchema: resendSendTemplateInputSchema,
|
|
2817
|
+
outputSchema: resendSendTemplateOutputSchema
|
|
2818
|
+
});
|
|
2795
2819
|
export const ToolDefinitions = {
|
|
2796
2820
|
[linearCreateTicketTool.name]: linearCreateTicketTool,
|
|
2797
2821
|
[linearUpdateTicketTool.name]: linearUpdateTicketTool,
|
|
@@ -2873,7 +2897,8 @@ export const ToolDefinitions = {
|
|
|
2873
2897
|
[webExtractTool.name]: webExtractTool,
|
|
2874
2898
|
[webResearchTool.name]: webResearchTool,
|
|
2875
2899
|
[imageEditTool.name]: imageEditTool,
|
|
2876
|
-
[memoryTool.name]: memoryTool
|
|
2900
|
+
[memoryTool.name]: memoryTool,
|
|
2901
|
+
[resendSendTemplateTool.name]: resendSendTemplateTool
|
|
2877
2902
|
};
|
|
2878
2903
|
export const toolsWithIntegrationId = new Set(Object.entries(ToolDefinitions)
|
|
2879
2904
|
.filter(([, def]) => {
|
package/dist/types.d.ts
CHANGED
|
@@ -587,6 +587,10 @@ export declare const agentTriggerSchema: z.ZodObject<{
|
|
|
587
587
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
588
588
|
}>;
|
|
589
589
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
integrationId: z.ZodString;
|
|
592
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
593
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
590
594
|
}, z.core.$strip>]>;
|
|
591
595
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
592
596
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -837,6 +841,10 @@ export declare const agentOutputSchema: z.ZodObject<{
|
|
|
837
841
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
838
842
|
}>;
|
|
839
843
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
845
|
+
integrationId: z.ZodString;
|
|
846
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
847
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
840
848
|
}, z.core.$strip>]>;
|
|
841
849
|
}, z.core.$strip>;
|
|
842
850
|
export type AgentOutput = z.infer<typeof agentOutputSchema>;
|
|
@@ -1088,6 +1096,10 @@ export declare const transientAgentTriggerSchema: z.ZodObject<{
|
|
|
1088
1096
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
1089
1097
|
}>;
|
|
1090
1098
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1099
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1100
|
+
integrationId: z.ZodString;
|
|
1101
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
1102
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
1091
1103
|
}, z.core.$strip>]>>;
|
|
1092
1104
|
configType: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
1093
1105
|
}, z.core.$strip>;
|
|
@@ -1336,6 +1348,10 @@ export declare const transientAgentOutputSchema: z.ZodObject<{
|
|
|
1336
1348
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
1337
1349
|
}>;
|
|
1338
1350
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1352
|
+
integrationId: z.ZodString;
|
|
1353
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
1354
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
1339
1355
|
}, z.core.$strip>]>>;
|
|
1340
1356
|
configType: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
|
|
1341
1357
|
}, z.core.$strip>;
|
|
@@ -1814,6 +1830,10 @@ export declare const agentSchema: z.ZodObject<{
|
|
|
1814
1830
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
1815
1831
|
}>;
|
|
1816
1832
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1833
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1834
|
+
integrationId: z.ZodString;
|
|
1835
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
1836
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
1817
1837
|
}, z.core.$strip>]>;
|
|
1818
1838
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1819
1839
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2063,6 +2083,10 @@ export declare const agentSchema: z.ZodObject<{
|
|
|
2063
2083
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
2064
2084
|
}>;
|
|
2065
2085
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2086
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2087
|
+
integrationId: z.ZodString;
|
|
2088
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
2089
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
2066
2090
|
}, z.core.$strip>]>;
|
|
2067
2091
|
}, z.core.$strip>>;
|
|
2068
2092
|
createdByUserId: z.ZodString;
|
|
@@ -2333,6 +2357,10 @@ export declare const agentUpdateSchema: z.ZodObject<{
|
|
|
2333
2357
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
2334
2358
|
}>;
|
|
2335
2359
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2361
|
+
integrationId: z.ZodString;
|
|
2362
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
2363
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
2336
2364
|
}, z.core.$strip>]>;
|
|
2337
2365
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2338
2366
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2582,6 +2610,10 @@ export declare const agentUpdateSchema: z.ZodObject<{
|
|
|
2582
2610
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
2583
2611
|
}>;
|
|
2584
2612
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2614
|
+
integrationId: z.ZodString;
|
|
2615
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
2616
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
2585
2617
|
}, z.core.$strip>]>;
|
|
2586
2618
|
}, z.core.$strip>>>;
|
|
2587
2619
|
prompt: z.ZodOptional<z.ZodObject<{
|
|
@@ -2862,6 +2894,10 @@ export declare const agentsResponseSchema: z.ZodObject<{
|
|
|
2862
2894
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
2863
2895
|
}>;
|
|
2864
2896
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2897
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2898
|
+
integrationId: z.ZodString;
|
|
2899
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
2900
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
2865
2901
|
}, z.core.$strip>]>;
|
|
2866
2902
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2867
2903
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3111,6 +3147,10 @@ export declare const agentsResponseSchema: z.ZodObject<{
|
|
|
3111
3147
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
3112
3148
|
}>;
|
|
3113
3149
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3151
|
+
integrationId: z.ZodString;
|
|
3152
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
3153
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
3114
3154
|
}, z.core.$strip>]>;
|
|
3115
3155
|
}, z.core.$strip>>;
|
|
3116
3156
|
createdByUserId: z.ZodString;
|
|
@@ -3394,6 +3434,10 @@ export declare const recentAgentSchema: z.ZodObject<{
|
|
|
3394
3434
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
3395
3435
|
}>;
|
|
3396
3436
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3437
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3438
|
+
integrationId: z.ZodString;
|
|
3439
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
3440
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
3397
3441
|
}, z.core.$strip>]>;
|
|
3398
3442
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3399
3443
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3643,6 +3687,10 @@ export declare const recentAgentSchema: z.ZodObject<{
|
|
|
3643
3687
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
3644
3688
|
}>;
|
|
3645
3689
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3691
|
+
integrationId: z.ZodString;
|
|
3692
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
3693
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
3646
3694
|
}, z.core.$strip>]>;
|
|
3647
3695
|
}, z.core.$strip>>;
|
|
3648
3696
|
createdByUserId: z.ZodString;
|
|
@@ -4135,6 +4183,10 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
|
|
|
4135
4183
|
integrationId: z.ZodString;
|
|
4136
4184
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
|
|
4137
4185
|
configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
|
|
4186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4187
|
+
integrationId: z.ZodString;
|
|
4188
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
4189
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
4138
4190
|
}, z.core.$strip>]>>>;
|
|
4139
4191
|
options: z.ZodOptional<z.ZodObject<{
|
|
4140
4192
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6233,6 +6285,10 @@ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
|
|
|
6233
6285
|
integrationId: z.ZodString;
|
|
6234
6286
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
|
|
6235
6287
|
configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
|
|
6288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6289
|
+
integrationId: z.ZodString;
|
|
6290
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
6291
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
6236
6292
|
}, z.core.$strip>]>>;
|
|
6237
6293
|
toolApprovals: z.ZodArray<z.ZodString>;
|
|
6238
6294
|
options: z.ZodObject<{
|
|
@@ -8329,6 +8385,10 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
|
|
|
8329
8385
|
integrationId: z.ZodString;
|
|
8330
8386
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
|
|
8331
8387
|
configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
|
|
8388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8389
|
+
integrationId: z.ZodString;
|
|
8390
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
8391
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
8332
8392
|
}, z.core.$strip>]>>;
|
|
8333
8393
|
toolApprovals: z.ZodArray<z.ZodString>;
|
|
8334
8394
|
options: z.ZodObject<{
|
|
@@ -8645,11 +8705,14 @@ export declare const projectSecretsImportResponseSchema: z.ZodObject<{
|
|
|
8645
8705
|
updated: z.ZodArray<z.ZodString>;
|
|
8646
8706
|
}, z.core.$strip>;
|
|
8647
8707
|
export type ProjectSecretsImportResponse = z.infer<typeof projectSecretsImportResponseSchema>;
|
|
8708
|
+
export declare const projectConnectionsSchema: z.ZodRecord<z.ZodEnum<typeof import("./Integrations.js").IntegrationType> & z.core.$partial, z.ZodString>;
|
|
8709
|
+
export type ProjectConnections = z.infer<typeof projectConnectionsSchema>;
|
|
8648
8710
|
export declare const terseProjectConfigSchema: z.ZodObject<{
|
|
8649
8711
|
projectId: z.ZodString;
|
|
8650
8712
|
name: z.ZodString;
|
|
8651
8713
|
selfHosted: z.ZodOptional<z.ZodBoolean>;
|
|
8652
8714
|
remoteServerUrl: z.ZodOptional<z.ZodString>;
|
|
8715
|
+
connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("./Integrations.js").IntegrationType> & z.core.$partial, z.ZodString>>;
|
|
8653
8716
|
}, z.core.$strip>;
|
|
8654
8717
|
export type TerseProjectConfig = z.infer<typeof terseProjectConfigSchema>;
|
|
8655
8718
|
export declare const sdkDeployJobSchema: z.ZodObject<{
|
|
@@ -13600,6 +13663,10 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
|
|
|
13600
13663
|
readonly LEAD_TAG_UPDATED: "LEAD_TAG_UPDATED";
|
|
13601
13664
|
}>;
|
|
13602
13665
|
campaignIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13667
|
+
integrationId: z.ZodString;
|
|
13668
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.RESEND>;
|
|
13669
|
+
configType: z.ZodLiteral<import("./Configs.js").ConfigType.RESEND_OUTPUT>;
|
|
13603
13670
|
}, z.core.$strip>]>;
|
|
13604
13671
|
}, z.core.$strip>>;
|
|
13605
13672
|
}, z.core.$strip>;
|
package/dist/types.js
CHANGED
|
@@ -637,11 +637,13 @@ export const projectSecretsImportResponseSchema = z.object({
|
|
|
637
637
|
added: z.array(z.string()),
|
|
638
638
|
updated: z.array(z.string())
|
|
639
639
|
});
|
|
640
|
+
export const projectConnectionsSchema = z.partialRecord(integrationTypeEnum, z.string().min(1).describe("Connection ID (integrationId) this project generates against"));
|
|
640
641
|
export const terseProjectConfigSchema = z.object({
|
|
641
642
|
projectId: z.string().min(1),
|
|
642
643
|
name: z.string().min(1),
|
|
643
644
|
selfHosted: z.boolean().optional(),
|
|
644
|
-
remoteServerUrl: z.string().optional()
|
|
645
|
+
remoteServerUrl: z.string().optional(),
|
|
646
|
+
connections: projectConnectionsSchema.optional()
|
|
645
647
|
});
|
|
646
648
|
export const sdkDeployJobSchema = z.object({
|
|
647
649
|
jobName: z.string(),
|