@keystrokehq/sendgrid 0.0.7 → 0.0.8

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/alerts.mjs CHANGED
@@ -28,7 +28,7 @@ function mapAlertInput(input) {
28
28
  });
29
29
  }
30
30
  const createAlert = sendgridOperation({
31
- id: "create_alert",
31
+ id: "sendgrid.create-alert",
32
32
  name: "Create Alert",
33
33
  description: "Create a stats-notification or usage-limit alert.",
34
34
  input: alertInput,
@@ -43,7 +43,7 @@ const createAlert = sendgridOperation({
43
43
  }
44
44
  });
45
45
  const updateAlert = sendgridOperation({
46
- id: "update_alert",
46
+ id: "sendgrid.update-alert",
47
47
  name: "Update Alert",
48
48
  description: "Update an alert.",
49
49
  input: alertInput.partial().extend({ alertId }),
@@ -63,7 +63,7 @@ const updateAlert = sendgridOperation({
63
63
  }
64
64
  });
65
65
  const deleteAlert = sendgridOperation({
66
- id: "delete_alert",
66
+ id: "sendgrid.delete-alert",
67
67
  name: "Delete Alert",
68
68
  description: "Delete an alert.",
69
69
  input: z.object({ alertId }),
@@ -75,7 +75,7 @@ const deleteAlert = sendgridOperation({
75
75
  }
76
76
  });
77
77
  const getAlert = sendgridOperation({
78
- id: "get_alert",
78
+ id: "sendgrid.get-alert",
79
79
  name: "Get Alert",
80
80
  description: "Retrieve a single alert by ID.",
81
81
  input: z.object({ alertId }),
@@ -86,7 +86,7 @@ const getAlert = sendgridOperation({
86
86
  }
87
87
  });
88
88
  const listAlerts = sendgridOperation({
89
- id: "list_alerts",
89
+ id: "sendgrid.list-alerts",
90
90
  name: "List Alerts",
91
91
  description: "List all configured alerts.",
92
92
  input: z.object({}).optional(),
package/dist/api-keys.mjs CHANGED
@@ -14,7 +14,7 @@ var api_keys_exports = /* @__PURE__ */ __exportAll({
14
14
  updateApiKeyNameAndScopes: () => updateApiKeyNameAndScopes
15
15
  });
16
16
  const createApiKey = sendgridOperation({
17
- id: "create_api_key",
17
+ id: "sendgrid.create-api-key",
18
18
  name: "Create API Key",
19
19
  description: "Create a new SendGrid API key. Returns the full key value only at creation time — store it safely.",
20
20
  input: z.object({
@@ -35,7 +35,7 @@ const createApiKey = sendgridOperation({
35
35
  }
36
36
  });
37
37
  const listApiKeys = sendgridOperation({
38
- id: "list_api_keys",
38
+ id: "sendgrid.list-api-keys",
39
39
  name: "List API Keys",
40
40
  description: "List all API keys on the account (values are not returned).",
41
41
  input: z.object({}).optional(),
@@ -46,7 +46,7 @@ const listApiKeys = sendgridOperation({
46
46
  }
47
47
  });
48
48
  const getApiKey = sendgridOperation({
49
- id: "get_api_key",
49
+ id: "sendgrid.get-api-key",
50
50
  name: "Get API Key",
51
51
  description: "Retrieve an API key record by ID (the secret value is never returned).",
52
52
  input: z.object({ apiKeyId: sendgridIdSchema }),
@@ -57,7 +57,7 @@ const getApiKey = sendgridOperation({
57
57
  }
58
58
  });
59
59
  const updateApiKeyName = sendgridOperation({
60
- id: "update_api_key_name",
60
+ id: "sendgrid.update-api-key-name",
61
61
  name: "Update API Key Name",
62
62
  description: "Rename an API key without changing its scopes.",
63
63
  input: z.object({
@@ -75,7 +75,7 @@ const updateApiKeyName = sendgridOperation({
75
75
  }
76
76
  });
77
77
  const updateApiKeyNameAndScopes = sendgridOperation({
78
- id: "update_api_key_name_and_scopes",
78
+ id: "sendgrid.update-api-key-name-and-scopes",
79
79
  name: "Update API Key Name and Scopes",
80
80
  description: "Update an API key by replacing the full set of scopes.",
81
81
  input: z.object({
@@ -97,7 +97,7 @@ const updateApiKeyNameAndScopes = sendgridOperation({
97
97
  }
98
98
  });
99
99
  const deleteApiKey = sendgridOperation({
100
- id: "delete_api_key",
100
+ id: "sendgrid.delete-api-key",
101
101
  name: "Delete API Key",
102
102
  description: "Delete (revoke) an API key.",
103
103
  input: z.object({ apiKeyId: sendgridIdSchema }),
package/dist/domains.mjs CHANGED
@@ -12,7 +12,7 @@ var domains_exports = /* @__PURE__ */ __exportAll({
12
12
  });
13
13
  const domainId = z.number().int().positive();
14
14
  const listAuthenticatedDomains = sendgridOperation({
15
- id: "list_authenticated_domains",
15
+ id: "sendgrid.list-authenticated-domains",
16
16
  name: "List Authenticated Domains",
17
17
  description: "List all domains set up for Sender Authentication.",
18
18
  input: z.object({
@@ -35,7 +35,7 @@ const listAuthenticatedDomains = sendgridOperation({
35
35
  }
36
36
  });
37
37
  const getAuthenticatedDomain = sendgridOperation({
38
- id: "get_authenticated_domain",
38
+ id: "sendgrid.get-authenticated-domain",
39
39
  name: "Get Authenticated Domain",
40
40
  description: "Retrieve a single authenticated-domain record including its DNS rows.",
41
41
  input: z.object({ domainId }),
@@ -46,7 +46,7 @@ const getAuthenticatedDomain = sendgridOperation({
46
46
  }
47
47
  });
48
48
  const validateAuthenticatedDomain = sendgridOperation({
49
- id: "validate_authenticated_domain",
49
+ id: "sendgrid.validate-authenticated-domain",
50
50
  name: "Validate Authenticated Domain",
51
51
  description: "Ask SendGrid to re-check the DNS records of an authenticated domain.",
52
52
  input: z.object({ domainId }),
@@ -12,7 +12,7 @@ var email_validation_exports = /* @__PURE__ */ __exportAll({
12
12
  validateEmail: () => validateEmail
13
13
  });
14
14
  const validateEmail = sendgridOperation({
15
- id: "validate_email",
15
+ id: "sendgrid.validate-email",
16
16
  name: "Validate Email",
17
17
  description: "Validate a single email address using SendGrid Email Validation. Requires the Email Validation add-on.",
18
18
  input: z.object({
@@ -32,7 +32,7 @@ const validateEmail = sendgridOperation({
32
32
  }
33
33
  });
34
34
  const listBulkEmailValidationJobs = sendgridOperation({
35
- id: "list_bulk_email_validation_jobs",
35
+ id: "sendgrid.list-bulk-email-validation-jobs",
36
36
  name: "List Bulk Email Validation Jobs",
37
37
  description: "List bulk email validation jobs.",
38
38
  input: z.object({}).optional(),
@@ -43,7 +43,7 @@ const listBulkEmailValidationJobs = sendgridOperation({
43
43
  }
44
44
  });
45
45
  const getBulkEmailValidationJob = sendgridOperation({
46
- id: "get_bulk_email_validation_job",
46
+ id: "sendgrid.get-bulk-email-validation-job",
47
47
  name: "Get Bulk Email Validation Job",
48
48
  description: "Retrieve status and results for a bulk validation job.",
49
49
  input: z.object({ jobId: sendgridIdSchema }),
@@ -54,7 +54,7 @@ const getBulkEmailValidationJob = sendgridOperation({
54
54
  }
55
55
  });
56
56
  const createBulkEmailValidationPresignedUrl = sendgridOperation({
57
- id: "create_bulk_email_validation_presigned_url",
57
+ id: "sendgrid.create-bulk-email-validation-presigned-url",
58
58
  name: "Create Bulk Email Validation Upload URL",
59
59
  description: "Allocate a presigned upload URL for a bulk email-validation CSV.",
60
60
  input: z.object({ fileType: z.enum(["csv", "zip"]).default("csv") }),
@@ -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 }),
@@ -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 }),
@@ -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 }),
@@ -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({
@@ -30,7 +30,7 @@ function mapSegmentBody(body) {
30
30
  });
31
31
  }
32
32
  const createSegment = sendgridOperation({
33
- id: "create_segment",
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: "update_segment",
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: "delete_segment",
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: "list_segments",
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: "get_segment",
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: "refresh_segment",
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: "filter_segments_by_parent_ids",
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: "create_legacy_marketing_segment",
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: "delete_legacy_marketing_segment",
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: "remove_segment_without_affecting_contacts",
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 }),
@@ -44,7 +44,7 @@ function mapSingleSendBody(input) {
44
44
  });
45
45
  }
46
46
  const createSingleSend = sendgridOperation({
47
- id: "create_single_send",
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: "update_single_send",
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: "duplicate_single_send",
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: "delete_single_send",
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: "bulk_delete_single_sends",
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: "get_single_send",
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: "list_single_sends",
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: "search_single_sends",
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: "schedule_single_send",
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: "unschedule_single_send",
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: "send_test_marketing_email",
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: "list_single_send_stats",
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: "get_single_send_stats",
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: "get_single_send_click_stats",
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 }),