@keystrokehq/resend 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/api-keys.mjs CHANGED
@@ -35,7 +35,7 @@ const apiKeyCreatedSchema = z.object({
35
35
  }).passthrough();
36
36
  const listApiKeysResponseSchema = resendListEnvelope(apiKeySummarySchema);
37
37
  const createApiKey = resendOperation({
38
- id: "create_resend_api_key",
38
+ id: "resend.create-resend-api-key",
39
39
  name: "Create Resend API Key",
40
40
  description: "Create a new API key. The cleartext token is returned once — store it immediately; Resend cannot retrieve it again.",
41
41
  input: z.object({
@@ -54,7 +54,7 @@ const createApiKey = resendOperation({
54
54
  }
55
55
  });
56
56
  const listApiKeys = resendOperation({
57
- id: "list_resend_api_keys",
57
+ id: "resend.list-resend-api-keys",
58
58
  name: "List Resend API Keys",
59
59
  description: "List API keys for the authenticated team.",
60
60
  input: paginationQuerySchema,
@@ -68,7 +68,7 @@ const listApiKeys = resendOperation({
68
68
  }
69
69
  });
70
70
  const deleteApiKey = resendOperation({
71
- id: "delete_resend_api_key",
71
+ id: "resend.delete-resend-api-key",
72
72
  name: "Delete Resend API Key",
73
73
  description: "Delete (revoke) an API key.",
74
74
  input: z.object({ id: z.string().min(1) }),
@@ -7,13 +7,13 @@ declare const broadcastSummarySchema: z.ZodObject<{
7
7
  id: z.ZodString;
8
8
  name: z.ZodOptional<z.ZodString>;
9
9
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
10
+ failed: "failed";
10
11
  draft: "draft";
11
12
  scheduled: "scheduled";
12
13
  queued: "queued";
13
14
  sending: "sending";
14
15
  sent: "sent";
15
16
  cancelled: "cancelled";
16
- failed: "failed";
17
17
  }>, z.ZodString]>>;
18
18
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
19
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -26,13 +26,13 @@ declare const broadcastDetailSchema: z.ZodObject<{
26
26
  id: z.ZodString;
27
27
  name: z.ZodOptional<z.ZodString>;
28
28
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
29
+ failed: "failed";
29
30
  draft: "draft";
30
31
  scheduled: "scheduled";
31
32
  queued: "queued";
32
33
  sending: "sending";
33
34
  sent: "sent";
34
35
  cancelled: "cancelled";
35
- failed: "failed";
36
36
  }>, z.ZodString]>>;
37
37
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
38
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -66,13 +66,13 @@ declare const createBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
66
66
  id: z.ZodString;
67
67
  name: z.ZodOptional<z.ZodString>;
68
68
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
69
+ failed: "failed";
69
70
  draft: "draft";
70
71
  scheduled: "scheduled";
71
72
  queued: "queued";
72
73
  sending: "sending";
73
74
  sent: "sent";
74
75
  cancelled: "cancelled";
75
- failed: "failed";
76
76
  }>, z.ZodString]>>;
77
77
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
78
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -104,13 +104,13 @@ declare const listBroadcasts: _keystrokehq_core0.Operation<z.ZodObject<{
104
104
  id: z.ZodString;
105
105
  name: z.ZodOptional<z.ZodString>;
106
106
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
107
+ failed: "failed";
107
108
  draft: "draft";
108
109
  scheduled: "scheduled";
109
110
  queued: "queued";
110
111
  sending: "sending";
111
112
  sent: "sent";
112
113
  cancelled: "cancelled";
113
- failed: "failed";
114
114
  }>, z.ZodString]>>;
115
115
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
116
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -132,13 +132,13 @@ declare const retrieveBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
132
132
  id: z.ZodString;
133
133
  name: z.ZodOptional<z.ZodString>;
134
134
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
135
+ failed: "failed";
135
136
  draft: "draft";
136
137
  scheduled: "scheduled";
137
138
  queued: "queued";
138
139
  sending: "sending";
139
140
  sent: "sent";
140
141
  cancelled: "cancelled";
141
- failed: "failed";
142
142
  }>, z.ZodString]>>;
143
143
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -179,13 +179,13 @@ declare const updateBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
179
179
  id: z.ZodString;
180
180
  name: z.ZodOptional<z.ZodString>;
181
181
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
182
+ failed: "failed";
182
183
  draft: "draft";
183
184
  scheduled: "scheduled";
184
185
  queued: "queued";
185
186
  sending: "sending";
186
187
  sent: "sent";
187
188
  cancelled: "cancelled";
188
- failed: "failed";
189
189
  }>, z.ZodString]>>;
190
190
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
191
191
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -60,7 +60,7 @@ const broadcastCreateInputSchema = z.object({
60
60
  scheduled_at: z.string().optional()
61
61
  }).refine((b) => b.audience_id !== void 0 || b.segment_id !== void 0, { message: "Broadcast requires either `segment_id` or `audience_id`." });
62
62
  const createBroadcast = resendOperation({
63
- id: "create_resend_broadcast",
63
+ id: "resend.create-resend-broadcast",
64
64
  name: "Create Resend Broadcast",
65
65
  description: "Create a draft broadcast targeting a segment (or legacy audience).",
66
66
  input: broadcastCreateInputSchema,
@@ -75,7 +75,7 @@ const createBroadcast = resendOperation({
75
75
  }
76
76
  });
77
77
  const listBroadcasts = resendOperation({
78
- id: "list_resend_broadcasts",
78
+ id: "resend.list-resend-broadcasts",
79
79
  name: "List Resend Broadcasts",
80
80
  description: "List broadcasts, optionally cursor-paginated.",
81
81
  input: paginationQuerySchema,
@@ -89,7 +89,7 @@ const listBroadcasts = resendOperation({
89
89
  }
90
90
  });
91
91
  const retrieveBroadcast = resendOperation({
92
- id: "retrieve_resend_broadcast",
92
+ id: "resend.retrieve-resend-broadcast",
93
93
  name: "Retrieve Resend Broadcast",
94
94
  description: "Retrieve a single broadcast by id.",
95
95
  input: z.object({ id: z.string().min(1) }),
@@ -102,7 +102,7 @@ const retrieveBroadcast = resendOperation({
102
102
  }
103
103
  });
104
104
  const updateBroadcast = resendOperation({
105
- id: "update_resend_broadcast",
105
+ id: "resend.update-resend-broadcast",
106
106
  name: "Update Resend Broadcast",
107
107
  description: "Update a draft broadcast. Ignored once the broadcast has started sending.",
108
108
  input: z.object({
@@ -134,7 +134,7 @@ const updateBroadcast = resendOperation({
134
134
  }
135
135
  });
136
136
  const sendBroadcast = resendOperation({
137
- id: "send_resend_broadcast",
137
+ id: "resend.send-resend-broadcast",
138
138
  name: "Send Resend Broadcast",
139
139
  description: "Start sending a draft broadcast. Optionally schedule it for later.",
140
140
  input: z.object({
@@ -156,7 +156,7 @@ const sendBroadcast = resendOperation({
156
156
  }
157
157
  });
158
158
  const deleteBroadcast = resendOperation({
159
- id: "delete_resend_broadcast",
159
+ id: "resend.delete-resend-broadcast",
160
160
  name: "Delete Resend Broadcast",
161
161
  description: "Delete a broadcast.",
162
162
  input: z.object({ id: z.string().min(1) }),
@@ -28,7 +28,7 @@ const contactPropertySchema = z.object({
28
28
  }).passthrough();
29
29
  const listContactPropertiesResponseSchema = resendListEnvelope(contactPropertySchema);
30
30
  const createContactProperty = resendOperation({
31
- id: "create_resend_contact_property",
31
+ id: "resend.create-resend-contact-property",
32
32
  name: "Create Resend Contact Property",
33
33
  description: "Create a custom contact property.",
34
34
  input: z.object({
@@ -47,7 +47,7 @@ const createContactProperty = resendOperation({
47
47
  }
48
48
  });
49
49
  const listContactProperties = resendOperation({
50
- id: "list_resend_contact_properties",
50
+ id: "resend.list-resend-contact-properties",
51
51
  name: "List Resend Contact Properties",
52
52
  description: "List all custom contact properties.",
53
53
  input: paginationQuerySchema,
@@ -61,7 +61,7 @@ const listContactProperties = resendOperation({
61
61
  }
62
62
  });
63
63
  const retrieveContactProperty = resendOperation({
64
- id: "retrieve_resend_contact_property",
64
+ id: "resend.retrieve-resend-contact-property",
65
65
  name: "Retrieve Resend Contact Property",
66
66
  description: "Retrieve a single contact property by id.",
67
67
  input: z.object({ id: z.string().min(1) }),
@@ -74,7 +74,7 @@ const retrieveContactProperty = resendOperation({
74
74
  }
75
75
  });
76
76
  const updateContactProperty = resendOperation({
77
- id: "update_resend_contact_property",
77
+ id: "resend.update-resend-contact-property",
78
78
  name: "Update Resend Contact Property",
79
79
  description: "Update a contact property (label only; key and type are immutable).",
80
80
  input: z.object({
@@ -93,7 +93,7 @@ const updateContactProperty = resendOperation({
93
93
  }
94
94
  });
95
95
  const deleteContactProperty = resendOperation({
96
- id: "delete_resend_contact_property",
96
+ id: "resend.delete-resend-contact-property",
97
97
  name: "Delete Resend Contact Property",
98
98
  description: "Delete a contact property.",
99
99
  input: z.object({ id: z.string().min(1) }),
package/dist/contacts.mjs CHANGED
@@ -51,7 +51,7 @@ const contactTopicsResponseSchema = z.object({ data: z.array(z.object({
51
51
  status: topicSubscriptionStateSchema
52
52
  }).passthrough()) }).passthrough();
53
53
  const createContact = resendOperation({
54
- id: "create_resend_contact",
54
+ id: "resend.create-resend-contact",
55
55
  name: "Create Resend Contact",
56
56
  description: "Create a contact.",
57
57
  input: z.object({
@@ -74,7 +74,7 @@ const createContact = resendOperation({
74
74
  }
75
75
  });
76
76
  const listContacts = resendOperation({
77
- id: "list_resend_contacts",
77
+ id: "resend.list-resend-contacts",
78
78
  name: "List Resend Contacts",
79
79
  description: "List contacts, optionally filtered by segment.",
80
80
  input: paginationQuerySchema.extend({ segment_id: z.string().min(1).optional() }),
@@ -88,7 +88,7 @@ const listContacts = resendOperation({
88
88
  }
89
89
  });
90
90
  const retrieveContact = resendOperation({
91
- id: "retrieve_resend_contact",
91
+ id: "resend.retrieve-resend-contact",
92
92
  name: "Retrieve Resend Contact",
93
93
  description: "Retrieve a contact by id or email.",
94
94
  input: z.object({ id: z.string().min(1) }),
@@ -101,7 +101,7 @@ const retrieveContact = resendOperation({
101
101
  }
102
102
  });
103
103
  const updateContact = resendOperation({
104
- id: "update_resend_contact",
104
+ id: "resend.update-resend-contact",
105
105
  name: "Update Resend Contact",
106
106
  description: "Update an existing contact.",
107
107
  input: z.object({
@@ -124,7 +124,7 @@ const updateContact = resendOperation({
124
124
  }
125
125
  });
126
126
  const deleteContact = resendOperation({
127
- id: "delete_resend_contact",
127
+ id: "resend.delete-resend-contact",
128
128
  name: "Delete Resend Contact",
129
129
  description: "Delete a contact.",
130
130
  input: z.object({ id: z.string().min(1) }),
@@ -142,7 +142,7 @@ const deleteContact = resendOperation({
142
142
  }
143
143
  });
144
144
  const addContactToSegment = resendOperation({
145
- id: "add_resend_contact_to_segment",
145
+ id: "resend.add-resend-contact-to-segment",
146
146
  name: "Add Resend Contact to Segment",
147
147
  description: "Add a contact to a segment.",
148
148
  input: z.object({
@@ -159,7 +159,7 @@ const addContactToSegment = resendOperation({
159
159
  }
160
160
  });
161
161
  const removeContactFromSegment = resendOperation({
162
- id: "remove_resend_contact_from_segment",
162
+ id: "resend.remove-resend-contact-from-segment",
163
163
  name: "Remove Resend Contact from Segment",
164
164
  description: "Remove a contact from a segment.",
165
165
  input: z.object({
@@ -176,7 +176,7 @@ const removeContactFromSegment = resendOperation({
176
176
  }
177
177
  });
178
178
  const listContactSegments = resendOperation({
179
- id: "list_resend_contact_segments",
179
+ id: "resend.list-resend-contact-segments",
180
180
  name: "List Resend Contact Segments",
181
181
  description: "List segments a contact belongs to.",
182
182
  input: z.object({ contact_id: z.string().min(1) }),
@@ -189,7 +189,7 @@ const listContactSegments = resendOperation({
189
189
  }
190
190
  });
191
191
  const getContactTopics = resendOperation({
192
- id: "get_resend_contact_topics",
192
+ id: "resend.get-resend-contact-topics",
193
193
  name: "Get Resend Contact Topics",
194
194
  description: "List topic subscriptions for a contact.",
195
195
  input: z.object({ contact_id: z.string().min(1) }),
@@ -202,7 +202,7 @@ const getContactTopics = resendOperation({
202
202
  }
203
203
  });
204
204
  const updateContactTopics = resendOperation({
205
- id: "update_resend_contact_topics",
205
+ id: "resend.update-resend-contact-topics",
206
206
  name: "Update Resend Contact Topics",
207
207
  description: "Update topic subscriptions for a contact.",
208
208
  input: z.object({
package/dist/domains.mjs CHANGED
@@ -47,7 +47,7 @@ const domainDetailSchema = domainSummarySchema.extend({
47
47
  }).passthrough();
48
48
  const listDomainsResponseSchema = resendListEnvelope(domainSummarySchema);
49
49
  const createDomain = resendOperation({
50
- id: "create_resend_domain",
50
+ id: "resend.create-resend-domain",
51
51
  name: "Create Resend Domain",
52
52
  description: "Register a new sending or receiving domain.",
53
53
  input: z.object({
@@ -71,7 +71,7 @@ const createDomain = resendOperation({
71
71
  }
72
72
  });
73
73
  const listDomains = resendOperation({
74
- id: "list_resend_domains",
74
+ id: "resend.list-resend-domains",
75
75
  name: "List Resend Domains",
76
76
  description: "Retrieve a list of domains.",
77
77
  input: paginationQuerySchema,
@@ -85,7 +85,7 @@ const listDomains = resendOperation({
85
85
  }
86
86
  });
87
87
  const retrieveDomain = resendOperation({
88
- id: "retrieve_resend_domain",
88
+ id: "resend.retrieve-resend-domain",
89
89
  name: "Retrieve Resend Domain",
90
90
  description: "Retrieve a domain by id, including DNS records.",
91
91
  input: z.object({ id: z.string().min(1) }),
@@ -98,7 +98,7 @@ const retrieveDomain = resendOperation({
98
98
  }
99
99
  });
100
100
  const updateDomain = resendOperation({
101
- id: "update_resend_domain",
101
+ id: "resend.update-resend-domain",
102
102
  name: "Update Resend Domain",
103
103
  description: "Update tracking, TLS, or receiving settings on a domain.",
104
104
  input: z.object({
@@ -121,7 +121,7 @@ const updateDomain = resendOperation({
121
121
  }
122
122
  });
123
123
  const verifyDomain = resendOperation({
124
- id: "verify_resend_domain",
124
+ id: "resend.verify-resend-domain",
125
125
  name: "Verify Resend Domain",
126
126
  description: "Trigger DNS verification on a domain.",
127
127
  input: z.object({ id: z.string().min(1) }),
@@ -138,7 +138,7 @@ const verifyDomain = resendOperation({
138
138
  }
139
139
  });
140
140
  const deleteDomain = resendOperation({
141
- id: "delete_resend_domain",
141
+ id: "resend.delete-resend-domain",
142
142
  name: "Delete Resend Domain",
143
143
  description: "Delete a domain.",
144
144
  input: z.object({ id: z.string().min(1) }),
@@ -52,7 +52,7 @@ const receivedEmailDetailSchema = receivedEmailSummarySchema.extend({
52
52
  const listReceivedEmailsResponseSchema = resendListEnvelope(receivedEmailSummarySchema);
53
53
  const listReceivedAttachmentsResponseSchema = resendListEnvelope(receivedAttachmentSummarySchema);
54
54
  const listReceivedEmails = resendOperation({
55
- id: "list_resend_received_emails",
55
+ id: "resend.list-resend-received-emails",
56
56
  name: "List Resend Received Emails",
57
57
  description: "List inbound (received) emails for the authenticated team.",
58
58
  input: paginationQuerySchema,
@@ -66,7 +66,7 @@ const listReceivedEmails = resendOperation({
66
66
  }
67
67
  });
68
68
  const retrieveReceivedEmail = resendOperation({
69
- id: "retrieve_resend_received_email",
69
+ id: "resend.retrieve-resend-received-email",
70
70
  name: "Retrieve Resend Received Email",
71
71
  description: "Retrieve a single received email with its body, headers, and attachment metadata.",
72
72
  input: z.object({ id: z.string().min(1) }),
@@ -79,7 +79,7 @@ const retrieveReceivedEmail = resendOperation({
79
79
  }
80
80
  });
81
81
  const listReceivedAttachments = resendOperation({
82
- id: "list_resend_received_email_attachments",
82
+ id: "resend.list-resend-received-email-attachments",
83
83
  name: "List Resend Received Email Attachments",
84
84
  description: "List attachments on a single received email.",
85
85
  input: paginationQuerySchema.extend({ email_id: z.string().min(1) }),
@@ -94,7 +94,7 @@ const listReceivedAttachments = resendOperation({
94
94
  }
95
95
  });
96
96
  const retrieveReceivedAttachment = resendOperation({
97
- id: "retrieve_resend_received_email_attachment",
97
+ id: "resend.retrieve-resend-received-email-attachment",
98
98
  name: "Retrieve Resend Received Email Attachment",
99
99
  description: "Retrieve a single attachment from a received email. Response includes a time-limited signed URL for the binary body.",
100
100
  input: z.object({
package/dist/emails.d.mts CHANGED
@@ -25,7 +25,7 @@ declare const sendEmailInputSchema: z.ZodObject<{
25
25
  }, z.core.$strip>>;
26
26
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  filename: z.ZodString;
28
- content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
28
+ content: z.ZodOptional<z.ZodString>;
29
29
  path: z.ZodOptional<z.ZodString>;
30
30
  content_type: z.ZodOptional<z.ZodString>;
31
31
  content_id: z.ZodOptional<z.ZodString>;
@@ -128,7 +128,7 @@ declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
128
128
  }, z.core.$strip>>;
129
129
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
130
  filename: z.ZodString;
131
- content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
131
+ content: z.ZodOptional<z.ZodString>;
132
132
  path: z.ZodOptional<z.ZodString>;
133
133
  content_type: z.ZodOptional<z.ZodString>;
134
134
  content_id: z.ZodOptional<z.ZodString>;
package/dist/emails.mjs CHANGED
@@ -25,10 +25,10 @@ import { z } from "zod";
25
25
  */
26
26
  /** A single recipient or an array (max 50 per Resend docs). */
27
27
  const recipientsSchema = z.union([z.string().min(1), z.array(z.string().min(1)).min(1).max(50)]);
28
- /** Email attachment. Exactly one of `content` or `path` must be provided. */
28
+ /** Email attachment. Exactly one of base64/string `content` or remote `path` must be provided. */
29
29
  const attachmentSchema = z.object({
30
30
  filename: z.string().min(1),
31
- content: z.union([z.string(), z.instanceof(Uint8Array)]).optional(),
31
+ content: z.string().optional(),
32
32
  path: z.string().optional(),
33
33
  content_type: z.string().optional(),
34
34
  content_id: z.string().optional()
@@ -110,7 +110,7 @@ const attachmentDetailSchema = attachmentSummarySchema.extend({ url: z.string().
110
110
  const listEmailsResponseSchema = resendListEnvelope(emailSummarySchema);
111
111
  const listAttachmentsResponseSchema = resendListEnvelope(attachmentSummarySchema);
112
112
  const sendEmail = resendOperation({
113
- id: "send_resend_email",
113
+ id: "resend.send-resend-email",
114
114
  name: "Send Resend Email",
115
115
  description: "Send a single transactional email via Resend.",
116
116
  input: sendEmailInputSchema,
@@ -127,7 +127,7 @@ const sendEmail = resendOperation({
127
127
  }
128
128
  });
129
129
  const sendBatchEmails = resendOperation({
130
- id: "send_resend_batch_emails",
130
+ id: "resend.send-resend-batch-emails",
131
131
  name: "Send Resend Batch Emails",
132
132
  description: "Send up to 100 transactional emails in a single Resend API call.",
133
133
  input: batchSendInputSchema,
@@ -143,7 +143,7 @@ const sendBatchEmails = resendOperation({
143
143
  }
144
144
  });
145
145
  const listSentEmails = resendOperation({
146
- id: "list_resend_sent_emails",
146
+ id: "resend.list-resend-sent-emails",
147
147
  name: "List Resend Sent Emails",
148
148
  description: "Retrieve a cursor-paginated list of emails your team has sent.",
149
149
  input: paginationQuerySchema,
@@ -157,7 +157,7 @@ const listSentEmails = resendOperation({
157
157
  }
158
158
  });
159
159
  const retrieveEmail = resendOperation({
160
- id: "retrieve_resend_email",
160
+ id: "resend.retrieve-resend-email",
161
161
  name: "Retrieve Resend Email",
162
162
  description: "Retrieve a single sent email by its id.",
163
163
  input: z.object({ id: z.string().min(1) }),
@@ -170,7 +170,7 @@ const retrieveEmail = resendOperation({
170
170
  }
171
171
  });
172
172
  const updateScheduledEmail = resendOperation({
173
- id: "update_resend_scheduled_email",
173
+ id: "resend.update-resend-scheduled-email",
174
174
  name: "Update Resend Scheduled Email",
175
175
  description: "Update a scheduled email before it is sent. Typically used to move `scheduled_at`.",
176
176
  input: z.object({
@@ -189,7 +189,7 @@ const updateScheduledEmail = resendOperation({
189
189
  }
190
190
  });
191
191
  const cancelScheduledEmail = resendOperation({
192
- id: "cancel_resend_scheduled_email",
192
+ id: "resend.cancel-resend-scheduled-email",
193
193
  name: "Cancel Resend Scheduled Email",
194
194
  description: "Cancel a scheduled email before it is sent.",
195
195
  input: z.object({ id: z.string().min(1) }),
@@ -206,7 +206,7 @@ const cancelScheduledEmail = resendOperation({
206
206
  }
207
207
  });
208
208
  const listSentAttachments = resendOperation({
209
- id: "list_resend_sent_email_attachments",
209
+ id: "resend.list-resend-sent-email-attachments",
210
210
  name: "List Resend Sent Email Attachments",
211
211
  description: "List attachments that were sent with a given email.",
212
212
  input: paginationQuerySchema.extend({ email_id: z.string().min(1) }),
@@ -221,7 +221,7 @@ const listSentAttachments = resendOperation({
221
221
  }
222
222
  });
223
223
  const retrieveSentAttachment = resendOperation({
224
- id: "retrieve_resend_sent_email_attachment",
224
+ id: "resend.retrieve-resend-sent-email-attachment",
225
225
  name: "Retrieve Resend Sent Email Attachment",
226
226
  description: "Retrieve a single attachment from a sent email. Response includes a time-limited signed URL for the binary body.",
227
227
  input: z.object({
package/dist/logs.mjs CHANGED
@@ -30,7 +30,7 @@ const logDetailSchema = logSummarySchema.extend({
30
30
  }).passthrough();
31
31
  const listLogsResponseSchema = resendListEnvelope(logSummarySchema);
32
32
  const listLogs = resendOperation({
33
- id: "list_resend_logs",
33
+ id: "resend.list-resend-logs",
34
34
  name: "List Resend Logs",
35
35
  description: "List API request logs. Plan-gated.",
36
36
  input: paginationQuerySchema,
@@ -44,7 +44,7 @@ const listLogs = resendOperation({
44
44
  }
45
45
  });
46
46
  const retrieveLog = resendOperation({
47
- id: "retrieve_resend_log",
47
+ id: "resend.retrieve-resend-log",
48
48
  name: "Retrieve Resend Log",
49
49
  description: "Retrieve a single API request log with full request and response bodies.",
50
50
  input: z.object({ id: z.string().min(1) }),
package/dist/segments.mjs CHANGED
@@ -38,7 +38,7 @@ const contactInSegmentSchema = z.object({
38
38
  const listSegmentsResponseSchema = resendListEnvelope(segmentSummarySchema);
39
39
  const listSegmentContactsResponseSchema = resendListEnvelope(contactInSegmentSchema);
40
40
  const createSegment = resendOperation({
41
- id: "create_resend_segment",
41
+ id: "resend.create-resend-segment",
42
42
  name: "Create Resend Segment",
43
43
  description: "Create a new segment. The filter DSL is provider-native JSON.",
44
44
  input: z.object({
@@ -56,7 +56,7 @@ const createSegment = resendOperation({
56
56
  }
57
57
  });
58
58
  const listSegments = resendOperation({
59
- id: "list_resend_segments",
59
+ id: "resend.list-resend-segments",
60
60
  name: "List Resend Segments",
61
61
  description: "Retrieve a cursor-paginated list of segments.",
62
62
  input: paginationQuerySchema,
@@ -70,7 +70,7 @@ const listSegments = resendOperation({
70
70
  }
71
71
  });
72
72
  const retrieveSegment = resendOperation({
73
- id: "retrieve_resend_segment",
73
+ id: "resend.retrieve-resend-segment",
74
74
  name: "Retrieve Resend Segment",
75
75
  description: "Retrieve a single segment by id.",
76
76
  input: z.object({ id: z.string().min(1) }),
@@ -83,7 +83,7 @@ const retrieveSegment = resendOperation({
83
83
  }
84
84
  });
85
85
  const deleteSegment = resendOperation({
86
- id: "delete_resend_segment",
86
+ id: "resend.delete-resend-segment",
87
87
  name: "Delete Resend Segment",
88
88
  description: "Delete a segment.",
89
89
  input: z.object({ id: z.string().min(1) }),
@@ -101,7 +101,7 @@ const deleteSegment = resendOperation({
101
101
  }
102
102
  });
103
103
  const listSegmentContacts = resendOperation({
104
- id: "list_resend_segment_contacts",
104
+ id: "resend.list-resend-segment-contacts",
105
105
  name: "List Resend Segment Contacts",
106
106
  description: "List the contacts in a segment.",
107
107
  input: paginationQuerySchema.extend({ segment_id: z.string().min(1) }),
@@ -43,7 +43,7 @@ const templateWriteFieldsSchema = z.object({
43
43
  alias: z.string().optional()
44
44
  });
45
45
  const createTemplate = resendOperation({
46
- id: "create_resend_template",
46
+ id: "resend.create-resend-template",
47
47
  name: "Create Resend Template",
48
48
  description: "Create a new email template (draft).",
49
49
  input: templateWriteFieldsSchema,
@@ -58,7 +58,7 @@ const createTemplate = resendOperation({
58
58
  }
59
59
  });
60
60
  const listTemplates = resendOperation({
61
- id: "list_resend_templates",
61
+ id: "resend.list-resend-templates",
62
62
  name: "List Resend Templates",
63
63
  description: "Retrieve a cursor-paginated list of templates.",
64
64
  input: paginationQuerySchema,
@@ -72,7 +72,7 @@ const listTemplates = resendOperation({
72
72
  }
73
73
  });
74
74
  const retrieveTemplate = resendOperation({
75
- id: "retrieve_resend_template",
75
+ id: "resend.retrieve-resend-template",
76
76
  name: "Retrieve Resend Template",
77
77
  description: "Retrieve a single template by id or alias.",
78
78
  input: z.object({ id: z.string().min(1) }),
@@ -85,7 +85,7 @@ const retrieveTemplate = resendOperation({
85
85
  }
86
86
  });
87
87
  const updateTemplate = resendOperation({
88
- id: "update_resend_template",
88
+ id: "resend.update-resend-template",
89
89
  name: "Update Resend Template",
90
90
  description: "Update an existing template. Produces a new draft version.",
91
91
  input: templateWriteFieldsSchema.partial().extend({ id: z.string().min(1) }),
@@ -101,7 +101,7 @@ const updateTemplate = resendOperation({
101
101
  }
102
102
  });
103
103
  const deleteTemplate = resendOperation({
104
- id: "delete_resend_template",
104
+ id: "resend.delete-resend-template",
105
105
  name: "Delete Resend Template",
106
106
  description: "Delete an existing template.",
107
107
  input: z.object({ id: z.string().min(1) }),
@@ -119,7 +119,7 @@ const deleteTemplate = resendOperation({
119
119
  }
120
120
  });
121
121
  const duplicateTemplate = resendOperation({
122
- id: "duplicate_resend_template",
122
+ id: "resend.duplicate-resend-template",
123
123
  name: "Duplicate Resend Template",
124
124
  description: "Duplicate an existing template.",
125
125
  input: z.object({ id: z.string().min(1) }),
@@ -133,7 +133,7 @@ const duplicateTemplate = resendOperation({
133
133
  }
134
134
  });
135
135
  const publishTemplate = resendOperation({
136
- id: "publish_resend_template",
136
+ id: "resend.publish-resend-template",
137
137
  name: "Publish Resend Template",
138
138
  description: "Publish a draft template so it can be referenced from sendEmail.",
139
139
  input: z.object({ id: z.string().min(1) }),
package/dist/topics.mjs CHANGED
@@ -24,7 +24,7 @@ const topicSchema = z.object({
24
24
  }).passthrough();
25
25
  const listTopicsResponseSchema = resendListEnvelope(topicSchema);
26
26
  const createTopic = resendOperation({
27
- id: "create_resend_topic",
27
+ id: "resend.create-resend-topic",
28
28
  name: "Create Resend Topic",
29
29
  description: "Create a new subscription topic.",
30
30
  input: z.object({
@@ -43,7 +43,7 @@ const createTopic = resendOperation({
43
43
  }
44
44
  });
45
45
  const listTopics = resendOperation({
46
- id: "list_resend_topics",
46
+ id: "resend.list-resend-topics",
47
47
  name: "List Resend Topics",
48
48
  description: "Retrieve a cursor-paginated list of topics.",
49
49
  input: paginationQuerySchema,
@@ -57,7 +57,7 @@ const listTopics = resendOperation({
57
57
  }
58
58
  });
59
59
  const retrieveTopic = resendOperation({
60
- id: "retrieve_resend_topic",
60
+ id: "resend.retrieve-resend-topic",
61
61
  name: "Retrieve Resend Topic",
62
62
  description: "Retrieve a single topic by id.",
63
63
  input: z.object({ id: z.string().min(1) }),
@@ -70,7 +70,7 @@ const retrieveTopic = resendOperation({
70
70
  }
71
71
  });
72
72
  const updateTopic = resendOperation({
73
- id: "update_resend_topic",
73
+ id: "resend.update-resend-topic",
74
74
  name: "Update Resend Topic",
75
75
  description: "Update an existing topic.",
76
76
  input: z.object({
@@ -91,7 +91,7 @@ const updateTopic = resendOperation({
91
91
  }
92
92
  });
93
93
  const deleteTopic = resendOperation({
94
- id: "delete_resend_topic",
94
+ id: "resend.delete-resend-topic",
95
95
  name: "Delete Resend Topic",
96
96
  description: "Delete a topic.",
97
97
  input: z.object({ id: z.string().min(1) }),
package/dist/webhooks.mjs CHANGED
@@ -35,7 +35,7 @@ const webhookSummarySchema = z.object({
35
35
  const webhookDetailSchema = webhookSummarySchema.extend({ signing_secret: z.string().regex(/^whsec_/).optional() }).passthrough();
36
36
  const listWebhooksResponseSchema = resendListEnvelope(webhookSummarySchema);
37
37
  const createWebhook = resendOperation({
38
- id: "create_resend_webhook",
38
+ id: "resend.create-resend-webhook",
39
39
  name: "Create Resend Webhook",
40
40
  description: "Register a webhook endpoint. Response includes the Svix signing secret (whsec_…); store it securely.",
41
41
  input: z.object({
@@ -54,7 +54,7 @@ const createWebhook = resendOperation({
54
54
  }
55
55
  });
56
56
  const listWebhooks = resendOperation({
57
- id: "list_resend_webhooks",
57
+ id: "resend.list-resend-webhooks",
58
58
  name: "List Resend Webhooks",
59
59
  description: "List registered webhook endpoints.",
60
60
  input: paginationQuerySchema,
@@ -68,7 +68,7 @@ const listWebhooks = resendOperation({
68
68
  }
69
69
  });
70
70
  const retrieveWebhook = resendOperation({
71
- id: "retrieve_resend_webhook",
71
+ id: "resend.retrieve-resend-webhook",
72
72
  name: "Retrieve Resend Webhook",
73
73
  description: "Retrieve a webhook endpoint, including its signing secret.",
74
74
  input: z.object({ id: z.string().min(1) }),
@@ -81,7 +81,7 @@ const retrieveWebhook = resendOperation({
81
81
  }
82
82
  });
83
83
  const updateWebhook = resendOperation({
84
- id: "update_resend_webhook",
84
+ id: "resend.update-resend-webhook",
85
85
  name: "Update Resend Webhook",
86
86
  description: "Update a webhook endpoint. Does NOT rotate the signing secret — cutover via create+delete for rotation.",
87
87
  input: z.object({
@@ -102,7 +102,7 @@ const updateWebhook = resendOperation({
102
102
  }
103
103
  });
104
104
  const deleteWebhook = resendOperation({
105
- id: "delete_resend_webhook",
105
+ id: "resend.delete-resend-webhook",
106
106
  name: "Delete Resend Webhook",
107
107
  description: "Delete a webhook endpoint.",
108
108
  input: z.object({ id: z.string().min(1) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/resend",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -92,7 +92,7 @@
92
92
  "LICENSE"
93
93
  ],
94
94
  "dependencies": {
95
- "@keystrokehq/integration-authoring": "^0.0.7",
95
+ "@keystrokehq/integration-authoring": "^0.0.8",
96
96
  "zod": "^4.3.6"
97
97
  },
98
98
  "peerDependencies": {