@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.
Files changed (49) hide show
  1. package/dist/_official/index.d.mts +1 -1
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/alerts.d.mts +6 -6
  4. package/dist/alerts.mjs +7 -7
  5. package/dist/api-keys.d.mts +7 -7
  6. package/dist/api-keys.mjs +8 -8
  7. package/dist/client.d.mts +1 -1
  8. package/dist/client.mjs +2 -3
  9. package/dist/connection.d.mts +1 -1
  10. package/dist/connection.mjs +1 -1
  11. package/dist/domains.d.mts +4 -4
  12. package/dist/domains.mjs +5 -5
  13. package/dist/email-validation.d.mts +6 -6
  14. package/dist/email-validation.mjs +6 -6
  15. package/dist/{factory-BSL0D2L0.mjs → factory-CToXR1jp.mjs} +1 -2
  16. package/dist/integration-C9EALG65.mjs +113 -0
  17. package/dist/{integration-DpbPKcSF.d.mts → integration-zx-jmybs.d.mts} +3 -4
  18. package/dist/mail-send.d.mts +9 -9
  19. package/dist/mail-send.mjs +10 -10
  20. package/dist/marketing-contacts.d.mts +17 -17
  21. package/dist/marketing-contacts.mjs +18 -18
  22. package/dist/marketing-customfields.d.mts +4 -4
  23. package/dist/marketing-customfields.mjs +4 -4
  24. package/dist/marketing-lists.d.mts +8 -8
  25. package/dist/marketing-lists.mjs +9 -9
  26. package/dist/marketing-segments.d.mts +11 -11
  27. package/dist/marketing-segments.mjs +12 -12
  28. package/dist/marketing-singlesends.d.mts +17 -17
  29. package/dist/marketing-singlesends.mjs +16 -16
  30. package/dist/sender-identities.d.mts +7 -7
  31. package/dist/sender-identities.mjs +7 -7
  32. package/dist/senders.d.mts +6 -6
  33. package/dist/senders.mjs +6 -6
  34. package/dist/shared-BayZ0Lt6.mjs +46 -0
  35. package/dist/stats.d.mts +7 -7
  36. package/dist/stats.mjs +7 -7
  37. package/dist/suppressions.d.mts +32 -32
  38. package/dist/suppressions.mjs +33 -33
  39. package/dist/templates.d.mts +12 -12
  40. package/dist/templates.mjs +13 -13
  41. package/dist/user-account.d.mts +5 -5
  42. package/dist/user-account.mjs +5 -5
  43. package/dist/webhooks/event.d.mts +9 -9
  44. package/dist/webhooks/event.mjs +10 -10
  45. package/dist/webhooks/parse.d.mts +7 -7
  46. package/dist/webhooks/parse.mjs +8 -8
  47. package/package.json +4 -4
  48. package/dist/integration-37BovSeK.mjs +0 -23
  49. 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/mail-send.d.ts
6
6
  declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -115,7 +115,7 @@ declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
115
115
  }, z.core.$strip>, z.ZodObject<{
116
116
  messageId: z.ZodOptional<z.ZodString>;
117
117
  accepted: z.ZodBoolean;
118
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
118
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
119
119
  SENDGRID_API_KEY: z.ZodString;
120
120
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
121
121
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -136,7 +136,7 @@ declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
136
136
  }, z.core.$strip>>[] | undefined>], undefined>;
137
137
  declare const createBatchId: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
138
138
  batch_id: z.ZodString;
139
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
139
+ }, z.core.$strip>, 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<{
@@ -159,7 +159,7 @@ declare const validateBatchId: _keystrokehq_core0.Operation<z.ZodObject<{
159
159
  batchId: z.ZodString;
160
160
  }, z.core.$strip>, z.ZodObject<{
161
161
  batch_id: z.ZodString;
162
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
162
+ }, z.core.$strip>, 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<{
@@ -190,7 +190,7 @@ declare const cancelOrPauseScheduledSend: _keystrokehq_core0.Operation<z.ZodObje
190
190
  cancel: "cancel";
191
191
  pause: "pause";
192
192
  }>>;
193
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
193
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
194
194
  SENDGRID_API_KEY: z.ZodString;
195
195
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
196
196
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -217,7 +217,7 @@ declare const updateScheduledSend: _keystrokehq_core0.Operation<z.ZodObject<{
217
217
  }>;
218
218
  }, z.core.$strip>, z.ZodObject<{
219
219
  success: z.ZodBoolean;
220
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
220
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
221
221
  SENDGRID_API_KEY: z.ZodString;
222
222
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
223
223
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -240,7 +240,7 @@ declare const deleteScheduledSend: _keystrokehq_core0.Operation<z.ZodObject<{
240
240
  batchId: z.ZodString;
241
241
  }, z.core.$strip>, z.ZodObject<{
242
242
  success: z.ZodBoolean;
243
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
243
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
244
244
  SENDGRID_API_KEY: z.ZodString;
245
245
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
246
246
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -265,7 +265,7 @@ declare const listScheduledSends: _keystrokehq_core0.Operation<z.ZodOptional<z.Z
265
265
  cancel: "cancel";
266
266
  pause: "pause";
267
267
  }>>;
268
- }, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
268
+ }, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
269
269
  SENDGRID_API_KEY: z.ZodString;
270
270
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
271
271
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -292,7 +292,7 @@ declare const getScheduledSend: _keystrokehq_core0.Operation<z.ZodObject<{
292
292
  cancel: "cancel";
293
293
  pause: "pause";
294
294
  }>>;
295
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
295
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
296
296
  SENDGRID_API_KEY: z.ZodString;
297
297
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
298
298
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, t as sendgridOperation } from "./factory-BSL0D2L0.mjs";
2
- import { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
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 { _t as sendgridScheduledSendSchema, ft as sendgridMailSendInputSchema, gt as sendgridScheduledSendListSchema, lt as sendgridBatchIdSchema, on as sendgridIdSchema, pt as sendgridMailSendResultSchema, vt as sendgridScheduledSendStatusSchema } from "./webhooks-CKdsIikb.mjs";
5
5
  import { z } from "zod";
@@ -100,7 +100,7 @@ function mapMailSendInput(input) {
100
100
  });
101
101
  }
102
102
  const sendEmail = sendgridOperation({
103
- id: "send_email",
103
+ id: "sendgrid.send-email",
104
104
  name: "Send Email",
105
105
  description: "Send a transactional email via SendGrid (v3 Mail Send). Supports personalizations, dynamic templates, attachments, categories, custom args, sandbox mode, scheduled `send_at`, batch IDs, and ASM.",
106
106
  input: sendgridMailSendInputSchema,
@@ -118,7 +118,7 @@ const sendEmail = sendgridOperation({
118
118
  }
119
119
  });
120
120
  const createBatchId = sendgridOperation({
121
- id: "create_batch_id",
121
+ id: "sendgrid.create-batch-id",
122
122
  name: "Create Batch ID",
123
123
  description: "Mint a new batch ID. Use the returned ID as `batchId` on subsequent Mail Send calls to later cancel or pause all messages in the batch.",
124
124
  input: z.object({}).optional(),
@@ -130,7 +130,7 @@ const createBatchId = sendgridOperation({
130
130
  }
131
131
  });
132
132
  const validateBatchId = sendgridOperation({
133
- id: "validate_batch_id",
133
+ id: "sendgrid.validate-batch-id",
134
134
  name: "Validate Batch ID",
135
135
  description: "Confirm a batch ID exists and is usable.",
136
136
  input: z.object({ batchId: sendgridIdSchema }),
@@ -141,7 +141,7 @@ const validateBatchId = sendgridOperation({
141
141
  }
142
142
  });
143
143
  const cancelOrPauseScheduledSend = sendgridOperation({
144
- id: "cancel_or_pause_scheduled_send",
144
+ id: "sendgrid.cancel-or-pause-scheduled-send",
145
145
  name: "Cancel or Pause Scheduled Send",
146
146
  description: "Mark a batch ID as `cancel` or `pause`. Applies to all messages with that batch ID scheduled in the future.",
147
147
  input: z.object({
@@ -162,7 +162,7 @@ const cancelOrPauseScheduledSend = sendgridOperation({
162
162
  }
163
163
  });
164
164
  const updateScheduledSend = sendgridOperation({
165
- id: "update_scheduled_send",
165
+ id: "sendgrid.update-scheduled-send",
166
166
  name: "Update Scheduled Send",
167
167
  description: "Toggle a scheduled batch between `cancel` and `pause`.",
168
168
  input: z.object({
@@ -180,7 +180,7 @@ const updateScheduledSend = sendgridOperation({
180
180
  }
181
181
  });
182
182
  const deleteScheduledSend = sendgridOperation({
183
- id: "delete_scheduled_send",
183
+ id: "sendgrid.delete-scheduled-send",
184
184
  name: "Delete Cancellation or Pause from Scheduled Send",
185
185
  description: "Remove the cancellation or pause on a scheduled batch ID, allowing messages to send on schedule again.",
186
186
  input: z.object({ batchId: sendgridIdSchema }),
@@ -192,7 +192,7 @@ const deleteScheduledSend = sendgridOperation({
192
192
  }
193
193
  });
194
194
  const listScheduledSends = sendgridOperation({
195
- id: "list_scheduled_sends",
195
+ id: "sendgrid.list-scheduled-sends",
196
196
  name: "List Scheduled Sends",
197
197
  description: "Retrieve all scheduled batches currently paused or cancelled.",
198
198
  input: z.object({}).optional(),
@@ -203,7 +203,7 @@ const listScheduledSends = sendgridOperation({
203
203
  }
204
204
  });
205
205
  const getScheduledSend = sendgridOperation({
206
- id: "get_scheduled_send",
206
+ id: "sendgrid.get-scheduled-send",
207
207
  name: "Get Scheduled Send",
208
208
  description: "Retrieve the current `cancel`/`pause` state of a batch ID.",
209
209
  input: z.object({ batchId: 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-contacts.d.ts
6
6
  declare const upsertContacts: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -25,7 +25,7 @@ declare const upsertContacts: _keystrokehq_core0.Operation<z.ZodObject<{
25
25
  }, z.core.$strip>>;
26
26
  }, z.core.$strip>, z.ZodObject<{
27
27
  job_id: z.ZodString;
28
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
28
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
29
29
  SENDGRID_API_KEY: z.ZodString;
30
30
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
31
31
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -49,7 +49,7 @@ declare const deleteContacts: _keystrokehq_core0.Operation<z.ZodObject<{
49
49
  deleteAllContacts: z.ZodOptional<z.ZodBoolean>;
50
50
  }, z.core.$strip>, z.ZodObject<{
51
51
  job_id: z.ZodString;
52
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
52
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
53
53
  SENDGRID_API_KEY: z.ZodString;
54
54
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
55
55
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -91,7 +91,7 @@ declare const getContact: _keystrokehq_core0.Operation<z.ZodObject<{
91
91
  created_at: z.ZodOptional<z.ZodISODateTime>;
92
92
  updated_at: z.ZodOptional<z.ZodISODateTime>;
93
93
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
94
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
95
95
  SENDGRID_API_KEY: z.ZodString;
96
96
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
97
97
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -135,7 +135,7 @@ declare const getContactsByIds: _keystrokehq_core0.Operation<z.ZodObject<{
135
135
  updated_at: z.ZodOptional<z.ZodISODateTime>;
136
136
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
137
  }, z.core.$catchall<z.ZodUnknown>>>;
138
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
138
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
139
139
  SENDGRID_API_KEY: z.ZodString;
140
140
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
141
141
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -180,7 +180,7 @@ declare const getContactsByEmails: _keystrokehq_core0.Operation<z.ZodObject<{
180
180
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
181
  }, z.core.$catchall<z.ZodUnknown>>>;
182
182
  contact_count: z.ZodOptional<z.ZodNumber>;
183
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
183
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
184
184
  SENDGRID_API_KEY: z.ZodString;
185
185
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
186
186
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -231,7 +231,7 @@ declare const getContactsByIdentifiers: _keystrokehq_core0.Operation<z.ZodObject
231
231
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
232
  }, z.core.$catchall<z.ZodUnknown>>>;
233
233
  contact_count: z.ZodOptional<z.ZodNumber>;
234
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
234
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
235
235
  SENDGRID_API_KEY: z.ZodString;
236
236
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
237
237
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -274,7 +274,7 @@ declare const getContactSample: _keystrokehq_core0.Operation<z.ZodOptional<z.Zod
274
274
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
275
  }, z.core.$catchall<z.ZodUnknown>>>;
276
276
  contact_count: z.ZodOptional<z.ZodNumber>;
277
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
277
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
278
278
  SENDGRID_API_KEY: z.ZodString;
279
279
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
280
280
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -296,7 +296,7 @@ declare const getContactSample: _keystrokehq_core0.Operation<z.ZodOptional<z.Zod
296
296
  declare const getContactCount: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
297
297
  contact_count: z.ZodNumber;
298
298
  billable_count: z.ZodOptional<z.ZodNumber>;
299
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
299
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
300
300
  SENDGRID_API_KEY: z.ZodString;
301
301
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
302
302
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -341,7 +341,7 @@ declare const searchContacts: _keystrokehq_core0.Operation<z.ZodObject<{
341
341
  list_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
342
  }, z.core.$catchall<z.ZodUnknown>>>;
343
343
  contact_count: z.ZodOptional<z.ZodNumber>;
344
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
344
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
345
345
  SENDGRID_API_KEY: z.ZodString;
346
346
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
347
347
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -385,7 +385,7 @@ declare const createContactImport: _keystrokehq_core0.Operation<z.ZodObject<{
385
385
  header: z.ZodString;
386
386
  value: z.ZodString;
387
387
  }, z.core.$strip>>>;
388
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
388
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
389
389
  SENDGRID_API_KEY: z.ZodString;
390
390
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
391
391
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -425,7 +425,7 @@ declare const getContactImportStatus: _keystrokehq_core0.Operation<z.ZodObject<{
425
425
  header: z.ZodString;
426
426
  value: z.ZodString;
427
427
  }, z.core.$strip>>>;
428
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
428
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
429
429
  SENDGRID_API_KEY: z.ZodString;
430
430
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
431
431
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -465,7 +465,7 @@ declare const createContactExport: _keystrokehq_core0.Operation<z.ZodObject<{
465
465
  urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
466
466
  message: z.ZodOptional<z.ZodString>;
467
467
  expires_at: z.ZodOptional<z.ZodString>;
468
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
468
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
469
469
  SENDGRID_API_KEY: z.ZodString;
470
470
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
471
471
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -494,7 +494,7 @@ declare const getContactExportStatus: _keystrokehq_core0.Operation<z.ZodObject<{
494
494
  urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
495
495
  message: z.ZodOptional<z.ZodString>;
496
496
  expires_at: z.ZodOptional<z.ZodString>;
497
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
497
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
498
498
  SENDGRID_API_KEY: z.ZodString;
499
499
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
500
500
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -523,7 +523,7 @@ declare const listContactExports: _keystrokehq_core0.Operation<z.ZodOptional<z.Z
523
523
  message: z.ZodOptional<z.ZodString>;
524
524
  expires_at: z.ZodOptional<z.ZodString>;
525
525
  }, z.core.$catchall<z.ZodUnknown>>>;
526
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
526
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
527
527
  SENDGRID_API_KEY: z.ZodString;
528
528
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
529
529
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -561,7 +561,7 @@ declare const listFieldDefinitions: _keystrokehq_core0.Operation<z.ZodOptional<z
561
561
  Date: "Date";
562
562
  }>;
563
563
  }, z.core.$catchall<z.ZodUnknown>>>>;
564
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
564
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
565
565
  SENDGRID_API_KEY: z.ZodString;
566
566
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
567
567
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -584,7 +584,7 @@ declare const deleteContactIdentifier: _keystrokehq_core0.Operation<z.ZodObject<
584
584
  identifierId: z.ZodString;
585
585
  }, z.core.$strip>, z.ZodObject<{
586
586
  success: z.ZodBoolean;
587
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
587
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
588
588
  SENDGRID_API_KEY: z.ZodString;
589
589
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
590
590
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, t as sendgridOperation } from "./factory-BSL0D2L0.mjs";
2
- import { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
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 { Bt as sendgridContactExportSchema, Gt as sendgridContactSearchResultSchema, Ht as sendgridContactImportSchema, It as sendgridContactBatchResultSchema, Jt as sendgridUpsertContactsResultSchema, Kt as sendgridFieldDefinitionListSchema, Lt as sendgridContactCountSchema, Rt as sendgridContactDeleteResultSchema, Ut as sendgridContactInputSchema, Wt as sendgridContactSchema, in as sendgridEmailSchema, on as sendgridIdSchema, zt as sendgridContactExportListSchema } from "./webhooks-CKdsIikb.mjs";
5
5
  import { z } from "zod";
@@ -25,7 +25,7 @@ var marketing_contacts_exports = /* @__PURE__ */ __exportAll({
25
25
  });
26
26
  const contactIdsSchema = z.array(sendgridIdSchema).min(1).max(100);
27
27
  const upsertContacts = sendgridOperation({
28
- id: "upsert_contacts",
28
+ id: "sendgrid.upsert-contacts",
29
29
  name: "Add or Update Contacts",
30
30
  description: "Upsert up to 30,000 contacts in Marketing Contacts v3. Returns a job ID; processing is asynchronous.",
31
31
  input: z.object({
@@ -46,7 +46,7 @@ const upsertContacts = sendgridOperation({
46
46
  }
47
47
  });
48
48
  const deleteContacts = sendgridOperation({
49
- id: "delete_contacts",
49
+ id: "sendgrid.delete-contacts",
50
50
  name: "Delete Contacts",
51
51
  description: "Delete contacts by ID. Set `deleteAllContacts` to wipe every contact in the account.",
52
52
  input: z.object({
@@ -67,7 +67,7 @@ const deleteContacts = sendgridOperation({
67
67
  }
68
68
  });
69
69
  const getContact = sendgridOperation({
70
- id: "get_contact",
70
+ id: "sendgrid.get-contact",
71
71
  name: "Get Contact by ID",
72
72
  description: "Retrieve a single contact by its SendGrid contact ID.",
73
73
  input: z.object({ contactId: sendgridIdSchema }),
@@ -78,7 +78,7 @@ const getContact = sendgridOperation({
78
78
  }
79
79
  });
80
80
  const getContactsByIds = sendgridOperation({
81
- id: "get_contacts_by_ids",
81
+ id: "sendgrid.get-contacts-by-ids",
82
82
  name: "Get Batched Contacts by IDs",
83
83
  description: "Fetch up to 100 contacts in a single batched request.",
84
84
  input: z.object({ ids: contactIdsSchema }),
@@ -92,7 +92,7 @@ const getContactsByIds = sendgridOperation({
92
92
  }
93
93
  });
94
94
  const getContactsByEmails = sendgridOperation({
95
- id: "get_contacts_by_emails",
95
+ id: "sendgrid.get-contacts-by-emails",
96
96
  name: "Get Contacts by Email Addresses",
97
97
  description: "Find contacts by email (up to 100 per request).",
98
98
  input: z.object({ emails: z.array(sendgridEmailSchema).min(1).max(100) }),
@@ -106,7 +106,7 @@ const getContactsByEmails = sendgridOperation({
106
106
  }
107
107
  });
108
108
  const getContactsByIdentifiers = sendgridOperation({
109
- id: "get_contacts_by_identifiers",
109
+ id: "sendgrid.get-contacts-by-identifiers",
110
110
  name: "Get Contacts by Identifiers",
111
111
  description: "Find contacts by alternate identifiers (e.g. phone, WhatsApp).",
112
112
  input: z.object({
@@ -131,7 +131,7 @@ const getContactsByIdentifiers = sendgridOperation({
131
131
  }
132
132
  });
133
133
  const getContactSample = sendgridOperation({
134
- id: "get_contact_sample",
134
+ id: "sendgrid.get-contact-sample",
135
135
  name: "Get Sample Contacts",
136
136
  description: "Return up to 50 sample contacts for inspection (not a full list).",
137
137
  input: z.object({}).optional(),
@@ -142,7 +142,7 @@ const getContactSample = sendgridOperation({
142
142
  }
143
143
  });
144
144
  const getContactCount = sendgridOperation({
145
- id: "get_contact_count",
145
+ id: "sendgrid.get-contact-count",
146
146
  name: "Get Total Contact Count",
147
147
  description: "Return the total + billable contact count for the account.",
148
148
  input: z.object({}).optional(),
@@ -153,7 +153,7 @@ const getContactCount = sendgridOperation({
153
153
  }
154
154
  });
155
155
  const searchContacts = sendgridOperation({
156
- id: "search_contacts",
156
+ id: "sendgrid.search-contacts",
157
157
  name: "Search Contacts",
158
158
  description: "Search contacts using a SQL-like `query` expression. Example: `email LIKE '%@example.com' AND last_name = 'Smith'`.",
159
159
  input: z.object({ query: z.string().min(1) }),
@@ -167,7 +167,7 @@ const searchContacts = sendgridOperation({
167
167
  }
168
168
  });
169
169
  const createContactImport = sendgridOperation({
170
- id: "create_contact_import",
170
+ id: "sendgrid.create-contact-import",
171
171
  name: "Create Contact Import",
172
172
  description: "Create a contact-import job. Returns presigned upload details you then PUT a CSV to.",
173
173
  input: z.object({
@@ -190,7 +190,7 @@ const createContactImport = sendgridOperation({
190
190
  }
191
191
  });
192
192
  const getContactImportStatus = sendgridOperation({
193
- id: "get_contact_import_status",
193
+ id: "sendgrid.get-contact-import-status",
194
194
  name: "Get Contact Import Status",
195
195
  description: "Retrieve status for a contact-import job.",
196
196
  input: z.object({ importId: sendgridIdSchema }),
@@ -201,7 +201,7 @@ const getContactImportStatus = sendgridOperation({
201
201
  }
202
202
  });
203
203
  const createContactExport = sendgridOperation({
204
- id: "create_contact_export",
204
+ id: "sendgrid.create-contact-export",
205
205
  name: "Create Contact Export",
206
206
  description: "Create a contact-export job. Returns a job ID you poll for CSV URLs.",
207
207
  input: z.object({
@@ -228,7 +228,7 @@ const createContactExport = sendgridOperation({
228
228
  }
229
229
  });
230
230
  const getContactExportStatus = sendgridOperation({
231
- id: "get_contact_export_status",
231
+ id: "sendgrid.get-contact-export-status",
232
232
  name: "Get Contact Export Status",
233
233
  description: "Retrieve status (and signed CSV URLs when ready) for a contact-export job.",
234
234
  input: z.object({ exportId: sendgridIdSchema }),
@@ -239,7 +239,7 @@ const getContactExportStatus = sendgridOperation({
239
239
  }
240
240
  });
241
241
  const listContactExports = sendgridOperation({
242
- id: "list_contact_exports",
242
+ id: "sendgrid.list-contact-exports",
243
243
  name: "List Existing Contact Exports",
244
244
  description: "List all contact-export jobs.",
245
245
  input: z.object({}).optional(),
@@ -250,7 +250,7 @@ const listContactExports = sendgridOperation({
250
250
  }
251
251
  });
252
252
  const listFieldDefinitions = sendgridOperation({
253
- id: "list_field_definitions",
253
+ id: "sendgrid.list-field-definitions",
254
254
  name: "List Custom and Reserved Fields",
255
255
  description: "Return all custom and reserved Marketing Contacts field definitions.",
256
256
  input: z.object({}).optional(),
@@ -261,7 +261,7 @@ const listFieldDefinitions = sendgridOperation({
261
261
  }
262
262
  });
263
263
  const deleteContactIdentifier = sendgridOperation({
264
- id: "delete_contact_identifier",
264
+ id: "sendgrid.delete-contact-identifier",
265
265
  name: "Delete Contact Identifier",
266
266
  description: "Remove an alternate identifier (phone, external id, whatsapp, etc.) from a contact.",
267
267
  input: z.object({ identifierId: 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-customfields.d.ts
6
6
  declare const createCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -18,7 +18,7 @@ declare const createCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
18
18
  Number: "Number";
19
19
  Date: "Date";
20
20
  }>;
21
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
21
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
22
22
  SENDGRID_API_KEY: z.ZodString;
23
23
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
24
24
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -48,7 +48,7 @@ declare const updateCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
48
48
  Number: "Number";
49
49
  Date: "Date";
50
50
  }>;
51
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
51
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
52
52
  SENDGRID_API_KEY: z.ZodString;
53
53
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
54
54
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -71,7 +71,7 @@ declare const deleteCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
71
71
  fieldId: z.ZodString;
72
72
  }, z.core.$strip>, z.ZodObject<{
73
73
  success: z.ZodBoolean;
74
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
74
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
75
75
  SENDGRID_API_KEY: z.ZodString;
76
76
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
77
77
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -1,4 +1,4 @@
1
- import { n as __exportAll, t as sendgridOperation } from "./factory-BSL0D2L0.mjs";
1
+ import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
2
2
  import { createSendGridClient } from "./client.mjs";
3
3
  import { Pt as sendgridCustomFieldDefinitionSchema, on as sendgridIdSchema } from "./webhooks-CKdsIikb.mjs";
4
4
  import { z } from "zod";
@@ -15,7 +15,7 @@ const fieldType = z.enum([
15
15
  "Date"
16
16
  ]);
17
17
  const createCustomField = sendgridOperation({
18
- id: "create_custom_field",
18
+ id: "sendgrid.create-custom-field",
19
19
  name: "Create Custom Field",
20
20
  description: "Create a Marketing Contacts custom field definition.",
21
21
  input: z.object({
@@ -36,7 +36,7 @@ const createCustomField = sendgridOperation({
36
36
  }
37
37
  });
38
38
  const updateCustomField = sendgridOperation({
39
- id: "update_custom_field",
39
+ id: "sendgrid.update-custom-field",
40
40
  name: "Update Custom Field",
41
41
  description: "Rename a Marketing Contacts custom field.",
42
42
  input: z.object({
@@ -54,7 +54,7 @@ const updateCustomField = sendgridOperation({
54
54
  }
55
55
  });
56
56
  const deleteCustomField = sendgridOperation({
57
- id: "delete_custom_field",
57
+ id: "sendgrid.delete-custom-field",
58
58
  name: "Delete Custom Field",
59
59
  description: "Delete a Marketing Contacts custom field definition.",
60
60
  input: z.object({ fieldId: 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-lists.d.ts
6
6
  declare const createList: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -9,7 +9,7 @@ declare const createList: _keystrokehq_core0.Operation<z.ZodObject<{
9
9
  id: z.ZodString;
10
10
  name: z.ZodString;
11
11
  contact_count: z.ZodOptional<z.ZodNumber>;
12
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
12
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
13
13
  SENDGRID_API_KEY: z.ZodString;
14
14
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
15
15
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -35,7 +35,7 @@ declare const updateList: _keystrokehq_core0.Operation<z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  name: z.ZodString;
37
37
  contact_count: z.ZodOptional<z.ZodNumber>;
38
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
38
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
39
39
  SENDGRID_API_KEY: z.ZodString;
40
40
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
41
41
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -63,7 +63,7 @@ declare const listMarketingLists: _keystrokehq_core0.Operation<z.ZodOptional<z.Z
63
63
  name: z.ZodString;
64
64
  contact_count: z.ZodOptional<z.ZodNumber>;
65
65
  }, z.core.$catchall<z.ZodUnknown>>>;
66
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
66
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
67
67
  SENDGRID_API_KEY: z.ZodString;
68
68
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
69
69
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -89,7 +89,7 @@ declare const getList: _keystrokehq_core0.Operation<z.ZodObject<{
89
89
  id: z.ZodString;
90
90
  name: z.ZodString;
91
91
  contact_count: z.ZodOptional<z.ZodNumber>;
92
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
92
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
93
93
  SENDGRID_API_KEY: z.ZodString;
94
94
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
95
95
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -113,7 +113,7 @@ declare const getListContactCount: _keystrokehq_core0.Operation<z.ZodObject<{
113
113
  }, z.core.$strip>, z.ZodObject<{
114
114
  contact_count: z.ZodNumber;
115
115
  billable_count: z.ZodOptional<z.ZodNumber>;
116
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
116
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
117
117
  SENDGRID_API_KEY: z.ZodString;
118
118
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
119
119
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -137,7 +137,7 @@ declare const removeContactsFromList: _keystrokehq_core0.Operation<z.ZodObject<{
137
137
  contactIds: z.ZodArray<z.ZodString>;
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  job_id: z.ZodString;
140
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
140
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
141
141
  SENDGRID_API_KEY: z.ZodString;
142
142
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
143
143
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -161,7 +161,7 @@ declare const deleteList: _keystrokehq_core0.Operation<z.ZodObject<{
161
161
  deleteContacts: z.ZodOptional<z.ZodBoolean>;
162
162
  }, z.core.$strip>, z.ZodObject<{
163
163
  success: z.ZodBoolean;
164
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
164
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
165
165
  SENDGRID_API_KEY: z.ZodString;
166
166
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
167
167
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, t as sendgridOperation } from "./factory-BSL0D2L0.mjs";
2
- import { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
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 { Ct as sendgridListSchema, St as sendgridListRemoveContactsResultSchema, bt as sendgridListCollectionSchema, on as sendgridIdSchema, xt as sendgridListContactCountSchema } from "./webhooks-CKdsIikb.mjs";
5
5
  import { z } from "zod";
@@ -15,7 +15,7 @@ var marketing_lists_exports = /* @__PURE__ */ __exportAll({
15
15
  updateList: () => updateList
16
16
  });
17
17
  const createList = sendgridOperation({
18
- id: "create_list",
18
+ id: "sendgrid.create-list",
19
19
  name: "Create Marketing List",
20
20
  description: "Create a new v3 marketing list.",
21
21
  input: z.object({ name: z.string().min(1) }),
@@ -30,7 +30,7 @@ const createList = sendgridOperation({
30
30
  }
31
31
  });
32
32
  const updateList = sendgridOperation({
33
- id: "update_list",
33
+ id: "sendgrid.update-list",
34
34
  name: "Update Marketing List",
35
35
  description: "Rename a v3 marketing list.",
36
36
  input: z.object({
@@ -48,7 +48,7 @@ const updateList = sendgridOperation({
48
48
  }
49
49
  });
50
50
  const listMarketingLists = sendgridOperation({
51
- id: "list_marketing_lists",
51
+ id: "sendgrid.list-marketing-lists",
52
52
  name: "List Marketing Lists",
53
53
  description: "List all v3 marketing lists.",
54
54
  input: z.object({
@@ -65,7 +65,7 @@ const listMarketingLists = sendgridOperation({
65
65
  }
66
66
  });
67
67
  const getList = sendgridOperation({
68
- id: "get_list",
68
+ id: "sendgrid.get-list",
69
69
  name: "Get Marketing List",
70
70
  description: "Retrieve a v3 marketing list by ID.",
71
71
  input: z.object({
@@ -79,7 +79,7 @@ const getList = sendgridOperation({
79
79
  }
80
80
  });
81
81
  const getListContactCount = sendgridOperation({
82
- id: "get_list_contact_count",
82
+ id: "sendgrid.get-list-contact-count",
83
83
  name: "Get List Contact Count",
84
84
  description: "Return the number of contacts on a marketing list.",
85
85
  input: z.object({ listId: sendgridIdSchema }),
@@ -90,7 +90,7 @@ const getListContactCount = sendgridOperation({
90
90
  }
91
91
  });
92
92
  const removeContactsFromList = sendgridOperation({
93
- id: "remove_contacts_from_list",
93
+ id: "sendgrid.remove-contacts-from-list",
94
94
  name: "Remove Contacts from List",
95
95
  description: "Remove the given contact IDs from a list. Contacts remain in the account (use deleteContacts to purge).",
96
96
  input: z.object({
@@ -108,7 +108,7 @@ const removeContactsFromList = sendgridOperation({
108
108
  }
109
109
  });
110
110
  const deleteList = sendgridOperation({
111
- id: "delete_list",
111
+ id: "sendgrid.delete-list",
112
112
  name: "Delete Marketing List",
113
113
  description: "Delete a marketing list. Set `deleteContacts: true` to also delete contacts only on this list.",
114
114
  input: z.object({