@keystrokehq/sendgrid 0.0.7 → 0.0.9
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/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/alerts.d.mts +6 -6
- package/dist/alerts.mjs +7 -7
- package/dist/api-keys.d.mts +7 -7
- package/dist/api-keys.mjs +8 -8
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +2 -3
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/domains.d.mts +4 -4
- package/dist/domains.mjs +5 -5
- package/dist/email-validation.d.mts +6 -6
- package/dist/email-validation.mjs +6 -6
- package/dist/{factory-BSL0D2L0.mjs → factory-CToXR1jp.mjs} +1 -2
- package/dist/integration-C9EALG65.mjs +113 -0
- package/dist/{integration-DpbPKcSF.d.mts → integration-zx-jmybs.d.mts} +3 -4
- package/dist/mail-send.d.mts +9 -9
- package/dist/mail-send.mjs +10 -10
- package/dist/marketing-contacts.d.mts +17 -17
- package/dist/marketing-contacts.mjs +18 -18
- package/dist/marketing-customfields.d.mts +4 -4
- package/dist/marketing-customfields.mjs +4 -4
- package/dist/marketing-lists.d.mts +8 -8
- package/dist/marketing-lists.mjs +9 -9
- package/dist/marketing-segments.d.mts +11 -11
- package/dist/marketing-segments.mjs +12 -12
- package/dist/marketing-singlesends.d.mts +17 -17
- package/dist/marketing-singlesends.mjs +16 -16
- package/dist/sender-identities.d.mts +7 -7
- package/dist/sender-identities.mjs +7 -7
- package/dist/senders.d.mts +6 -6
- package/dist/senders.mjs +6 -6
- package/dist/shared-BayZ0Lt6.mjs +46 -0
- package/dist/stats.d.mts +7 -7
- package/dist/stats.mjs +7 -7
- package/dist/suppressions.d.mts +32 -32
- package/dist/suppressions.mjs +33 -33
- package/dist/templates.d.mts +12 -12
- package/dist/templates.mjs +13 -13
- package/dist/user-account.d.mts +5 -5
- package/dist/user-account.mjs +5 -5
- package/dist/webhooks/event.d.mts +9 -9
- package/dist/webhooks/event.mjs +10 -10
- package/dist/webhooks/parse.d.mts +7 -7
- package/dist/webhooks/parse.mjs +8 -8
- package/package.json +4 -4
- package/dist/integration-37BovSeK.mjs +0 -23
- package/dist/shared-CQ8JFNXi.mjs +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/marketing-segments.d.ts
|
|
6
6
|
declare const createSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -22,7 +22,7 @@ declare const createSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
22
22
|
query_validation: z.ZodOptional<z.ZodString>;
|
|
23
23
|
error_message: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
25
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
25
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
26
26
|
SENDGRID_API_KEY: z.ZodString;
|
|
27
27
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
28
28
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -60,7 +60,7 @@ declare const updateSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
60
60
|
query_validation: z.ZodOptional<z.ZodString>;
|
|
61
61
|
error_message: z.ZodOptional<z.ZodString>;
|
|
62
62
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
63
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
63
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
64
64
|
SENDGRID_API_KEY: z.ZodString;
|
|
65
65
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
66
66
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -83,7 +83,7 @@ declare const deleteSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
83
83
|
segmentId: z.ZodString;
|
|
84
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
85
|
success: z.ZodBoolean;
|
|
86
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
86
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
87
87
|
SENDGRID_API_KEY: z.ZodString;
|
|
88
88
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
89
89
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -122,7 +122,7 @@ declare const listSegments: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObje
|
|
|
122
122
|
error_message: z.ZodOptional<z.ZodString>;
|
|
123
123
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
124
124
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
125
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
125
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
126
126
|
SENDGRID_API_KEY: z.ZodString;
|
|
127
127
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
128
128
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -159,7 +159,7 @@ declare const getSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
159
159
|
query_validation: z.ZodOptional<z.ZodString>;
|
|
160
160
|
error_message: z.ZodOptional<z.ZodString>;
|
|
161
161
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
162
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
162
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
163
163
|
SENDGRID_API_KEY: z.ZodString;
|
|
164
164
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
165
165
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -195,7 +195,7 @@ declare const refreshSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
195
195
|
query_validation: z.ZodOptional<z.ZodString>;
|
|
196
196
|
error_message: z.ZodOptional<z.ZodString>;
|
|
197
197
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
198
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
198
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
199
199
|
SENDGRID_API_KEY: z.ZodString;
|
|
200
200
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
201
201
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -233,7 +233,7 @@ declare const filterSegmentsByParents: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
233
233
|
error_message: z.ZodOptional<z.ZodString>;
|
|
234
234
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
235
235
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
236
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
236
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
237
237
|
SENDGRID_API_KEY: z.ZodString;
|
|
238
238
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
239
239
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -271,7 +271,7 @@ declare const createLegacySegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
271
271
|
query_validation: z.ZodOptional<z.ZodString>;
|
|
272
272
|
error_message: z.ZodOptional<z.ZodString>;
|
|
273
273
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
274
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
274
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
275
275
|
SENDGRID_API_KEY: z.ZodString;
|
|
276
276
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
277
277
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -294,7 +294,7 @@ declare const deleteLegacySegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
294
294
|
segmentId: z.ZodString;
|
|
295
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
296
296
|
success: z.ZodBoolean;
|
|
297
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
297
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
298
298
|
SENDGRID_API_KEY: z.ZodString;
|
|
299
299
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
300
300
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -317,7 +317,7 @@ declare const removeSegmentWithoutContacts: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
317
317
|
segmentId: z.ZodString;
|
|
318
318
|
}, z.core.$strip>, z.ZodObject<{
|
|
319
319
|
success: z.ZodBoolean;
|
|
320
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
320
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
321
321
|
SENDGRID_API_KEY: z.ZodString;
|
|
322
322
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
323
323
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-BayZ0Lt6.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { at as sendgridSegmentListSchema, on as sendgridIdSchema, ot as sendgridSegmentSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -30,7 +30,7 @@ function mapSegmentBody(body) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
const createSegment = sendgridOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "sendgrid.create-segment",
|
|
34
34
|
name: "Create Segment",
|
|
35
35
|
description: "Create a Marketing Segments v2.0 segment.",
|
|
36
36
|
input: segmentBody,
|
|
@@ -45,7 +45,7 @@ const createSegment = sendgridOperation({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
const updateSegment = sendgridOperation({
|
|
48
|
-
id: "
|
|
48
|
+
id: "sendgrid.update-segment",
|
|
49
49
|
name: "Update Segment",
|
|
50
50
|
description: "Update a v2.0 segment.",
|
|
51
51
|
input: z.object({
|
|
@@ -67,7 +67,7 @@ const updateSegment = sendgridOperation({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const deleteSegment = sendgridOperation({
|
|
70
|
-
id: "
|
|
70
|
+
id: "sendgrid.delete-segment",
|
|
71
71
|
name: "Delete Segment",
|
|
72
72
|
description: "Delete a v2.0 segment. Contacts remain.",
|
|
73
73
|
input: z.object({ segmentId: sendgridIdSchema }),
|
|
@@ -79,7 +79,7 @@ const deleteSegment = sendgridOperation({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
const listSegments = sendgridOperation({
|
|
82
|
-
id: "
|
|
82
|
+
id: "sendgrid.list-segments",
|
|
83
83
|
name: "List Segments",
|
|
84
84
|
description: "List v2.0 segments. Filter by parent list IDs.",
|
|
85
85
|
input: z.object({
|
|
@@ -96,7 +96,7 @@ const listSegments = sendgridOperation({
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
const getSegment = sendgridOperation({
|
|
99
|
-
id: "
|
|
99
|
+
id: "sendgrid.get-segment",
|
|
100
100
|
name: "Get Segment",
|
|
101
101
|
description: "Retrieve a v2.0 segment by ID.",
|
|
102
102
|
input: z.object({
|
|
@@ -110,7 +110,7 @@ const getSegment = sendgridOperation({
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
const refreshSegment = sendgridOperation({
|
|
113
|
-
id: "
|
|
113
|
+
id: "sendgrid.refresh-segment",
|
|
114
114
|
name: "Refresh Segment",
|
|
115
115
|
description: "Manually refresh a v2.0 segment to re-evaluate its membership.",
|
|
116
116
|
input: z.object({ segmentId: sendgridIdSchema }),
|
|
@@ -122,7 +122,7 @@ const refreshSegment = sendgridOperation({
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
const filterSegmentsByParents = sendgridOperation({
|
|
125
|
-
id: "
|
|
125
|
+
id: "sendgrid.filter-segments-by-parent-ids",
|
|
126
126
|
name: "Filter Segments by Parent List IDs",
|
|
127
127
|
description: "List segments whose parent list matches any of the given IDs.",
|
|
128
128
|
input: z.object({ parentListIds: z.array(sendgridIdSchema).min(1) }),
|
|
@@ -133,7 +133,7 @@ const filterSegmentsByParents = sendgridOperation({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
const createLegacySegment = sendgridOperation({
|
|
136
|
-
id: "
|
|
136
|
+
id: "sendgrid.create-legacy-marketing-segment",
|
|
137
137
|
name: "Create Marketing Segment (v1 engine)",
|
|
138
138
|
description: "Create a segment using the v1 engine. Kept because some accounts still run v1; new code should prefer `createSegment`.",
|
|
139
139
|
input: segmentBody,
|
|
@@ -148,7 +148,7 @@ const createLegacySegment = sendgridOperation({
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
const deleteLegacySegment = sendgridOperation({
|
|
151
|
-
id: "
|
|
151
|
+
id: "sendgrid.delete-legacy-marketing-segment",
|
|
152
152
|
name: "Delete Marketing Segment (v1 engine)",
|
|
153
153
|
description: "Delete a v1-engine segment.",
|
|
154
154
|
input: z.object({ segmentId: sendgridIdSchema }),
|
|
@@ -160,7 +160,7 @@ const deleteLegacySegment = sendgridOperation({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const removeSegmentWithoutContacts = sendgridOperation({
|
|
163
|
-
id: "
|
|
163
|
+
id: "sendgrid.remove-segment-without-affecting-contacts",
|
|
164
164
|
name: "Remove Segment Without Affecting Contacts",
|
|
165
165
|
description: "Delete a v2.0 segment without removing any contacts.",
|
|
166
166
|
input: z.object({ segmentId: sendgridIdSchema }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/marketing-singlesends.d.ts
|
|
6
6
|
declare const createSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -62,7 +62,7 @@ declare const createSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
62
62
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
63
63
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
64
64
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
65
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
65
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
66
66
|
SENDGRID_API_KEY: z.ZodString;
|
|
67
67
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
68
68
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -141,7 +141,7 @@ declare const updateSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
141
141
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
142
142
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
143
143
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
144
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
145
145
|
SENDGRID_API_KEY: z.ZodString;
|
|
146
146
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
147
147
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -198,7 +198,7 @@ declare const duplicateSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
198
198
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
199
199
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
200
200
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
201
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
201
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
202
202
|
SENDGRID_API_KEY: z.ZodString;
|
|
203
203
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
204
204
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -221,7 +221,7 @@ declare const deleteSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
221
221
|
id: z.ZodString;
|
|
222
222
|
}, z.core.$strip>, z.ZodObject<{
|
|
223
223
|
success: z.ZodBoolean;
|
|
224
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
224
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
225
225
|
SENDGRID_API_KEY: z.ZodString;
|
|
226
226
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
227
227
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -244,7 +244,7 @@ declare const bulkDeleteSingleSends: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
244
244
|
ids: z.ZodArray<z.ZodString>;
|
|
245
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
246
246
|
success: z.ZodBoolean;
|
|
247
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
247
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
248
248
|
SENDGRID_API_KEY: z.ZodString;
|
|
249
249
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
250
250
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -300,7 +300,7 @@ declare const getSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
300
300
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
301
301
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
302
302
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
303
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
303
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
304
304
|
SENDGRID_API_KEY: z.ZodString;
|
|
305
305
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
306
306
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -359,7 +359,7 @@ declare const listSingleSends: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodO
|
|
|
359
359
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
360
360
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
361
361
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
362
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
362
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
363
363
|
SENDGRID_API_KEY: z.ZodString;
|
|
364
364
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
365
365
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -426,7 +426,7 @@ declare const searchSingleSends: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
426
426
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
427
427
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
428
428
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
429
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
429
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
430
430
|
SENDGRID_API_KEY: z.ZodString;
|
|
431
431
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
432
432
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -484,7 +484,7 @@ declare const scheduleSingleSend: _keystrokehq_core0.Operation<z.ZodIntersection
|
|
|
484
484
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
485
485
|
created_at: z.ZodOptional<z.ZodISODateTime>;
|
|
486
486
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
487
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
487
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
488
488
|
SENDGRID_API_KEY: z.ZodString;
|
|
489
489
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
490
490
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -507,7 +507,7 @@ declare const unscheduleSingleSend: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
507
507
|
id: z.ZodString;
|
|
508
508
|
}, z.core.$strip>, z.ZodObject<{
|
|
509
509
|
success: z.ZodBoolean;
|
|
510
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
510
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
511
511
|
SENDGRID_API_KEY: z.ZodString;
|
|
512
512
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
513
513
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -536,7 +536,7 @@ declare const sendTestMarketingEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
536
536
|
from_address: z.ZodOptional<z.ZodString>;
|
|
537
537
|
}, z.core.$strip>, z.ZodObject<{
|
|
538
538
|
success: z.ZodBoolean;
|
|
539
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
539
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
540
540
|
SENDGRID_API_KEY: z.ZodString;
|
|
541
541
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
542
542
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -557,10 +557,10 @@ declare const sendTestMarketingEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
557
557
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
558
558
|
declare const listSingleSendStats: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{
|
|
559
559
|
aggregatedBy: z.ZodOptional<z.ZodEnum<{
|
|
560
|
-
total: "total";
|
|
561
560
|
day: "day";
|
|
562
561
|
week: "week";
|
|
563
562
|
month: "month";
|
|
563
|
+
total: "total";
|
|
564
564
|
}>>;
|
|
565
565
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
566
566
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -569,7 +569,7 @@ declare const listSingleSendStats: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
569
569
|
aggregation: z.ZodOptional<z.ZodString>;
|
|
570
570
|
stats: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
571
571
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
572
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
572
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
573
573
|
SENDGRID_API_KEY: z.ZodString;
|
|
574
574
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
575
575
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -591,16 +591,16 @@ declare const listSingleSendStats: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
591
591
|
declare const getSingleSendStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
592
592
|
id: z.ZodString;
|
|
593
593
|
aggregatedBy: z.ZodOptional<z.ZodEnum<{
|
|
594
|
-
total: "total";
|
|
595
594
|
day: "day";
|
|
596
595
|
week: "week";
|
|
597
596
|
month: "month";
|
|
597
|
+
total: "total";
|
|
598
598
|
}>>;
|
|
599
599
|
}, z.core.$strip>, z.ZodObject<{
|
|
600
600
|
id: z.ZodString;
|
|
601
601
|
aggregation: z.ZodOptional<z.ZodString>;
|
|
602
602
|
stats: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
603
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
603
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
604
604
|
SENDGRID_API_KEY: z.ZodString;
|
|
605
605
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
606
606
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -625,7 +625,7 @@ declare const getSingleSendClickStats: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
625
625
|
id: z.ZodString;
|
|
626
626
|
aggregation: z.ZodOptional<z.ZodString>;
|
|
627
627
|
stats: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
628
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
628
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
629
629
|
SENDGRID_API_KEY: z.ZodString;
|
|
630
630
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
631
631
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-BayZ0Lt6.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { $ as sendgridSingleSendTestInputSchema, G as sendgridSingleSendListSchema, J as sendgridSingleSendSearchInputSchema, K as sendgridSingleSendScheduleInputSchema, U as sendgridSingleSendClicksSchema, W as sendgridSingleSendEmailConfigSchema, X as sendgridSingleSendStatsListSchema, Y as sendgridSingleSendSendToSchema, Z as sendgridSingleSendStatsSchema, on as sendgridIdSchema, q as sendgridSingleSendSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -44,7 +44,7 @@ function mapSingleSendBody(input) {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const createSingleSend = sendgridOperation({
|
|
47
|
-
id: "
|
|
47
|
+
id: "sendgrid.create-single-send",
|
|
48
48
|
name: "Create Single Send",
|
|
49
49
|
description: "Create a marketing Single Send campaign.",
|
|
50
50
|
input: singleSendBody,
|
|
@@ -59,7 +59,7 @@ const createSingleSend = sendgridOperation({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
const updateSingleSend = sendgridOperation({
|
|
62
|
-
id: "
|
|
62
|
+
id: "sendgrid.update-single-send",
|
|
63
63
|
name: "Update Single Send",
|
|
64
64
|
description: "Update a Single Send campaign.",
|
|
65
65
|
input: singleSendBody.partial().extend({ id: sendgridIdSchema }),
|
|
@@ -80,7 +80,7 @@ const updateSingleSend = sendgridOperation({
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
const duplicateSingleSend = sendgridOperation({
|
|
83
|
-
id: "
|
|
83
|
+
id: "sendgrid.duplicate-single-send",
|
|
84
84
|
name: "Duplicate Single Send",
|
|
85
85
|
description: "Duplicate a Single Send campaign.",
|
|
86
86
|
input: z.object({
|
|
@@ -98,7 +98,7 @@ const duplicateSingleSend = sendgridOperation({
|
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
const deleteSingleSend = sendgridOperation({
|
|
101
|
-
id: "
|
|
101
|
+
id: "sendgrid.delete-single-send",
|
|
102
102
|
name: "Delete Single Send",
|
|
103
103
|
description: "Delete a Single Send by ID.",
|
|
104
104
|
input: z.object({ id: sendgridIdSchema }),
|
|
@@ -110,7 +110,7 @@ const deleteSingleSend = sendgridOperation({
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
const bulkDeleteSingleSends = sendgridOperation({
|
|
113
|
-
id: "
|
|
113
|
+
id: "sendgrid.bulk-delete-single-sends",
|
|
114
114
|
name: "Bulk Delete Single Sends",
|
|
115
115
|
description: "Delete multiple Single Sends at once.",
|
|
116
116
|
input: z.object({ ids: z.array(sendgridIdSchema).min(1).max(100) }),
|
|
@@ -125,7 +125,7 @@ const bulkDeleteSingleSends = sendgridOperation({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
const getSingleSend = sendgridOperation({
|
|
128
|
-
id: "
|
|
128
|
+
id: "sendgrid.get-single-send",
|
|
129
129
|
name: "Get Single Send",
|
|
130
130
|
description: "Retrieve a Single Send by ID.",
|
|
131
131
|
input: z.object({ id: sendgridIdSchema }),
|
|
@@ -136,7 +136,7 @@ const getSingleSend = sendgridOperation({
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
const listSingleSends = sendgridOperation({
|
|
139
|
-
id: "
|
|
139
|
+
id: "sendgrid.list-single-sends",
|
|
140
140
|
name: "List Single Sends",
|
|
141
141
|
description: "List all Single Sends on the account.",
|
|
142
142
|
input: z.object({
|
|
@@ -153,7 +153,7 @@ const listSingleSends = sendgridOperation({
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
const searchSingleSends = sendgridOperation({
|
|
156
|
-
id: "
|
|
156
|
+
id: "sendgrid.search-single-sends",
|
|
157
157
|
name: "Search Single Sends",
|
|
158
158
|
description: "Search Single Sends by name, status, or categories.",
|
|
159
159
|
input: sendgridSingleSendSearchInputSchema,
|
|
@@ -171,7 +171,7 @@ const searchSingleSends = sendgridOperation({
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
const scheduleSingleSend = sendgridOperation({
|
|
174
|
-
id: "
|
|
174
|
+
id: "sendgrid.schedule-single-send",
|
|
175
175
|
name: "Schedule Single Send",
|
|
176
176
|
description: "Schedule a Single Send for future delivery (pass `send_at: \"now\"` to send immediately).",
|
|
177
177
|
input: z.object({ id: sendgridIdSchema }).and(sendgridSingleSendScheduleInputSchema),
|
|
@@ -186,7 +186,7 @@ const scheduleSingleSend = sendgridOperation({
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
const unscheduleSingleSend = sendgridOperation({
|
|
189
|
-
id: "
|
|
189
|
+
id: "sendgrid.unschedule-single-send",
|
|
190
190
|
name: "Unschedule Single Send",
|
|
191
191
|
description: "Cancel a scheduled Single Send delivery.",
|
|
192
192
|
input: z.object({ id: sendgridIdSchema }),
|
|
@@ -198,7 +198,7 @@ const unscheduleSingleSend = sendgridOperation({
|
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
const sendTestMarketingEmail = sendgridOperation({
|
|
201
|
-
id: "
|
|
201
|
+
id: "sendgrid.send-test-marketing-email",
|
|
202
202
|
name: "Send Test Marketing Email",
|
|
203
203
|
description: "Send a Marketing Campaigns test email to the given recipients.",
|
|
204
204
|
input: sendgridSingleSendTestInputSchema,
|
|
@@ -221,7 +221,7 @@ const sendTestMarketingEmail = sendgridOperation({
|
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const listSingleSendStats = sendgridOperation({
|
|
224
|
-
id: "
|
|
224
|
+
id: "sendgrid.list-single-send-stats",
|
|
225
225
|
name: "List All Single Send Stats",
|
|
226
226
|
description: "Return aggregated engagement stats across all Single Sends.",
|
|
227
227
|
input: z.object({
|
|
@@ -243,7 +243,7 @@ const listSingleSendStats = sendgridOperation({
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
const getSingleSendStats = sendgridOperation({
|
|
246
|
-
id: "
|
|
246
|
+
id: "sendgrid.get-single-send-stats",
|
|
247
247
|
name: "Get Single Send Stats",
|
|
248
248
|
description: "Return engagement stats for a single Single Send.",
|
|
249
249
|
input: z.object({
|
|
@@ -262,7 +262,7 @@ const getSingleSendStats = sendgridOperation({
|
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
const getSingleSendClickStats = sendgridOperation({
|
|
265
|
-
id: "
|
|
265
|
+
id: "sendgrid.get-single-send-click-stats",
|
|
266
266
|
name: "Get Single Send Click Tracking Stats",
|
|
267
267
|
description: "Return click-tracking breakdown for a Single Send.",
|
|
268
268
|
input: z.object({ id: sendgridIdSchema }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/sender-identities.d.ts
|
|
6
6
|
declare const createSenderIdentity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -30,7 +30,7 @@ declare const createSenderIdentity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
30
30
|
country: z.ZodOptional<z.ZodString>;
|
|
31
31
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
33
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
34
34
|
SENDGRID_API_KEY: z.ZodString;
|
|
35
35
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
36
36
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -77,7 +77,7 @@ declare const updateSenderIdentity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
77
77
|
country: z.ZodOptional<z.ZodString>;
|
|
78
78
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
79
79
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
80
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
81
81
|
SENDGRID_API_KEY: z.ZodString;
|
|
82
82
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
83
83
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -100,7 +100,7 @@ declare const deleteSenderIdentity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
100
100
|
id: z.ZodNumber;
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
success: z.ZodBoolean;
|
|
103
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
103
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
104
104
|
SENDGRID_API_KEY: z.ZodString;
|
|
105
105
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
106
106
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -136,7 +136,7 @@ declare const getSenderIdentity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
136
136
|
country: z.ZodOptional<z.ZodString>;
|
|
137
137
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
138
138
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
139
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
140
140
|
SENDGRID_API_KEY: z.ZodString;
|
|
141
141
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
142
142
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -172,7 +172,7 @@ declare const listSenderIdentities: _keystrokehq_core0.Operation<z.ZodOptional<z
|
|
|
172
172
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
173
173
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
174
174
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
175
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
175
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
176
176
|
SENDGRID_API_KEY: z.ZodString;
|
|
177
177
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
178
178
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -195,7 +195,7 @@ declare const resendSenderIdentityVerification: _keystrokehq_core0.Operation<z.Z
|
|
|
195
195
|
id: z.ZodNumber;
|
|
196
196
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
197
|
success: z.ZodBoolean;
|
|
198
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
198
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
199
199
|
SENDGRID_API_KEY: z.ZodString;
|
|
200
200
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
201
201
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
2
|
import { createSendGridClient } from "./client.mjs";
|
|
3
3
|
import { in as sendgridEmailSchema, it as sendgridVerifiedSenderSchema, rt as sendgridVerifiedSenderListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -27,7 +27,7 @@ const verifiedSenderInput = z.object({
|
|
|
27
27
|
country: z.string().optional()
|
|
28
28
|
});
|
|
29
29
|
const createSenderIdentity = sendgridOperation({
|
|
30
|
-
id: "
|
|
30
|
+
id: "sendgrid.create-sender-identity",
|
|
31
31
|
name: "Create Verified Sender Identity",
|
|
32
32
|
description: "Create a verified sender identity. SendGrid emails a verification link to `from_email`.",
|
|
33
33
|
input: verifiedSenderInput,
|
|
@@ -42,7 +42,7 @@ const createSenderIdentity = sendgridOperation({
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const updateSenderIdentity = sendgridOperation({
|
|
45
|
-
id: "
|
|
45
|
+
id: "sendgrid.update-sender-identity",
|
|
46
46
|
name: "Update Verified Sender Identity",
|
|
47
47
|
description: "Update a verified sender identity.",
|
|
48
48
|
input: verifiedSenderInput.partial().extend({ id: verifiedSenderId }),
|
|
@@ -59,7 +59,7 @@ const updateSenderIdentity = sendgridOperation({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
const deleteSenderIdentity = sendgridOperation({
|
|
62
|
-
id: "
|
|
62
|
+
id: "sendgrid.delete-sender-identity",
|
|
63
63
|
name: "Delete Verified Sender Identity",
|
|
64
64
|
description: "Delete a verified sender identity.",
|
|
65
65
|
input: z.object({ id: verifiedSenderId }),
|
|
@@ -71,7 +71,7 @@ const deleteSenderIdentity = sendgridOperation({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
const getSenderIdentity = sendgridOperation({
|
|
74
|
-
id: "
|
|
74
|
+
id: "sendgrid.get-sender-identity",
|
|
75
75
|
name: "Get Verified Sender Identity",
|
|
76
76
|
description: "Retrieve a verified sender identity by ID.",
|
|
77
77
|
input: z.object({ id: verifiedSenderId }),
|
|
@@ -82,7 +82,7 @@ const getSenderIdentity = sendgridOperation({
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
const listSenderIdentities = sendgridOperation({
|
|
85
|
-
id: "
|
|
85
|
+
id: "sendgrid.list-sender-identities",
|
|
86
86
|
name: "List Verified Sender Identities",
|
|
87
87
|
description: "List all verified sender identities.",
|
|
88
88
|
input: z.object({}).optional(),
|
|
@@ -93,7 +93,7 @@ const listSenderIdentities = sendgridOperation({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
const resendSenderIdentityVerification = sendgridOperation({
|
|
96
|
-
id: "
|
|
96
|
+
id: "sendgrid.resend-sender-identity-verification",
|
|
97
97
|
name: "Resend Sender Identity Verification",
|
|
98
98
|
description: "Resend the verification email for a pending sender identity.",
|
|
99
99
|
input: z.object({ id: verifiedSenderId }),
|
package/dist/senders.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/senders.d.ts
|
|
6
6
|
declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
40
40
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
41
41
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
42
42
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
43
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
44
44
|
SENDGRID_API_KEY: z.ZodString;
|
|
45
45
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
46
46
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -97,7 +97,7 @@ declare const updateSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
97
97
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
98
98
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
100
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
101
101
|
SENDGRID_API_KEY: z.ZodString;
|
|
102
102
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
103
103
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -120,7 +120,7 @@ declare const deleteSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
120
120
|
senderId: z.ZodNumber;
|
|
121
121
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
122
|
success: z.ZodBoolean;
|
|
123
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
123
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
124
124
|
SENDGRID_API_KEY: z.ZodString;
|
|
125
125
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
126
126
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -162,7 +162,7 @@ declare const getSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
162
162
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
163
163
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
164
164
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
165
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
166
166
|
SENDGRID_API_KEY: z.ZodString;
|
|
167
167
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
168
168
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -204,7 +204,7 @@ declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
204
204
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
205
205
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
206
206
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
207
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
207
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
208
208
|
SENDGRID_API_KEY: z.ZodString;
|
|
209
209
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
210
210
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|