@keystrokehq/resend 0.0.9 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/api-keys.d.mts +7 -17
- package/dist/api-keys.mjs +1 -1
- package/dist/broadcasts.d.mts +13 -32
- package/dist/broadcasts.mjs +1 -1
- package/dist/client.d.mts +2 -1
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/contact-properties.d.mts +11 -27
- package/dist/contact-properties.mjs +1 -1
- package/dist/contacts.d.mts +21 -52
- package/dist/contacts.mjs +1 -1
- package/dist/domains.d.mts +13 -32
- package/dist/domains.mjs +1 -1
- package/dist/emails-receiving.d.mts +9 -22
- package/dist/emails-receiving.mjs +1 -1
- package/dist/emails.d.mts +17 -42
- package/dist/emails.mjs +1 -1
- package/dist/factory-C91g4Zm2.mjs +8 -0
- package/dist/{integration-C00bEk7H.d.mts → integration-DEgw-tXs.d.mts} +6 -8
- package/dist/integration-DXosbRPM.mjs +29 -0
- package/dist/logs.d.mts +5 -12
- package/dist/logs.mjs +1 -1
- package/dist/segments.d.mts +11 -27
- package/dist/segments.mjs +1 -1
- package/dist/templates.d.mts +15 -37
- package/dist/templates.mjs +1 -1
- package/dist/topics.d.mts +11 -27
- package/dist/topics.mjs +1 -1
- package/dist/webhooks.d.mts +11 -27
- package/dist/webhooks.mjs +1 -1
- package/package.json +6 -6
- package/dist/factory-CE4vHYLx.mjs +0 -7
- package/dist/http-BLe4ICIc.mjs +0 -84
- package/dist/integration-C5YM61yl.mjs +0 -118
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/emails-receiving.d.ts
|
|
6
5
|
declare const receivedAttachmentSummarySchema: z.ZodObject<{
|
|
@@ -90,13 +89,10 @@ declare const listReceivedEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
90
89
|
size: z.ZodOptional<z.ZodNumber>;
|
|
91
90
|
}, z.core.$loose>>>;
|
|
92
91
|
}, z.core.$loose>>;
|
|
93
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
92
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
94
93
|
RESEND_API_KEY: z.ZodString;
|
|
95
94
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
96
|
-
}, z.core.$strip
|
|
97
|
-
RESEND_API_KEY: z.ZodString;
|
|
98
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
95
|
+
}, z.core.$strip>>], undefined>;
|
|
100
96
|
declare const retrieveReceivedEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
101
97
|
id: z.ZodString;
|
|
102
98
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -121,13 +117,10 @@ declare const retrieveReceivedEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
121
117
|
html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
118
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
119
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
124
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
125
|
-
RESEND_API_KEY: z.ZodString;
|
|
126
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
127
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
120
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
128
121
|
RESEND_API_KEY: z.ZodString;
|
|
129
122
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
130
|
-
}, z.core.$strip>>
|
|
123
|
+
}, z.core.$strip>>], undefined>;
|
|
131
124
|
declare const listReceivedAttachments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
132
125
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
133
126
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -144,13 +137,10 @@ declare const listReceivedAttachments: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
144
137
|
content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
138
|
size: z.ZodOptional<z.ZodNumber>;
|
|
146
139
|
}, z.core.$loose>>;
|
|
147
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
148
|
-
RESEND_API_KEY: z.ZodString;
|
|
149
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
140
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
151
141
|
RESEND_API_KEY: z.ZodString;
|
|
152
142
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
153
|
-
}, z.core.$strip>>
|
|
143
|
+
}, z.core.$strip>>], undefined>;
|
|
154
144
|
declare const retrieveReceivedAttachment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
155
145
|
email_id: z.ZodString;
|
|
156
146
|
attachment_id: z.ZodString;
|
|
@@ -162,13 +152,10 @@ declare const retrieveReceivedAttachment: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
162
152
|
content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
153
|
size: z.ZodOptional<z.ZodNumber>;
|
|
164
154
|
url: z.ZodOptional<z.ZodString>;
|
|
165
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
166
|
-
RESEND_API_KEY: z.ZodString;
|
|
167
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
168
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
155
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
169
156
|
RESEND_API_KEY: z.ZodString;
|
|
170
157
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
171
|
-
}, z.core.$strip>>
|
|
158
|
+
}, z.core.$strip>>], undefined>;
|
|
172
159
|
type ResendReceivedEmailSummary = z.infer<typeof receivedEmailSummarySchema>;
|
|
173
160
|
type ResendReceivedEmailDetail = z.infer<typeof receivedEmailDetailSchema>;
|
|
174
161
|
type ResendReceivedAttachmentSummary = z.infer<typeof receivedAttachmentSummarySchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-C91g4Zm2.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/emails-receiving.ts
|
package/dist/emails.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/emails.d.ts
|
|
6
5
|
/** Input accepted by `sendEmail`. Includes attachments + scheduling. */
|
|
@@ -137,13 +136,10 @@ declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
137
136
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
138
137
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
138
|
id: z.ZodString;
|
|
140
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
139
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
141
140
|
RESEND_API_KEY: z.ZodString;
|
|
142
141
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
143
|
-
}, z.core.$strip
|
|
144
|
-
RESEND_API_KEY: z.ZodString;
|
|
145
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
142
|
+
}, z.core.$strip>>], undefined>;
|
|
147
143
|
declare const sendBatchEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
148
144
|
emails: z.ZodArray<z.ZodObject<{
|
|
149
145
|
from: z.ZodString;
|
|
@@ -170,13 +166,10 @@ declare const sendBatchEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
170
166
|
data: z.ZodArray<z.ZodObject<{
|
|
171
167
|
id: z.ZodString;
|
|
172
168
|
}, z.core.$strip>>;
|
|
173
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
169
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
174
170
|
RESEND_API_KEY: z.ZodString;
|
|
175
171
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
-
}, z.core.$strip
|
|
177
|
-
RESEND_API_KEY: z.ZodString;
|
|
178
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
172
|
+
}, z.core.$strip>>], undefined>;
|
|
180
173
|
declare const listSentEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
181
174
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
182
175
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -197,13 +190,10 @@ declare const listSentEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
197
190
|
last_event: z.ZodOptional<z.ZodString>;
|
|
198
191
|
scheduled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
192
|
}, z.core.$loose>>;
|
|
200
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
201
|
-
RESEND_API_KEY: z.ZodString;
|
|
202
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
203
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
193
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
204
194
|
RESEND_API_KEY: z.ZodString;
|
|
205
195
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
206
|
-
}, z.core.$strip>>
|
|
196
|
+
}, z.core.$strip>>], undefined>;
|
|
207
197
|
declare const retrieveEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
208
198
|
id: z.ZodString;
|
|
209
199
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -225,37 +215,28 @@ declare const retrieveEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
225
215
|
name: z.ZodString;
|
|
226
216
|
value: z.ZodString;
|
|
227
217
|
}, z.core.$strip>>>;
|
|
228
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
229
|
-
RESEND_API_KEY: z.ZodString;
|
|
230
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
231
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
218
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
232
219
|
RESEND_API_KEY: z.ZodString;
|
|
233
220
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
234
|
-
}, z.core.$strip>>
|
|
221
|
+
}, z.core.$strip>>], undefined>;
|
|
235
222
|
declare const updateScheduledEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
236
223
|
id: z.ZodString;
|
|
237
224
|
scheduled_at: z.ZodOptional<z.ZodString>;
|
|
238
225
|
}, z.core.$strip>, z.ZodObject<{
|
|
239
226
|
id: z.ZodString;
|
|
240
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
241
|
-
RESEND_API_KEY: z.ZodString;
|
|
242
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
243
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
227
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
244
228
|
RESEND_API_KEY: z.ZodString;
|
|
245
229
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
246
|
-
}, z.core.$strip>>
|
|
230
|
+
}, z.core.$strip>>], undefined>;
|
|
247
231
|
declare const cancelScheduledEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
248
232
|
id: z.ZodString;
|
|
249
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
250
234
|
object: z.ZodOptional<z.ZodLiteral<"email">>;
|
|
251
235
|
id: z.ZodString;
|
|
252
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
253
|
-
RESEND_API_KEY: z.ZodString;
|
|
254
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
255
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
236
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
256
237
|
RESEND_API_KEY: z.ZodString;
|
|
257
238
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
258
|
-
}, z.core.$strip>>
|
|
239
|
+
}, z.core.$strip>>], undefined>;
|
|
259
240
|
declare const listSentAttachments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
260
241
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
261
242
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -272,13 +253,10 @@ declare const listSentAttachments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
272
253
|
content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
273
254
|
size: z.ZodOptional<z.ZodNumber>;
|
|
274
255
|
}, z.core.$loose>>;
|
|
275
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
256
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
276
257
|
RESEND_API_KEY: z.ZodString;
|
|
277
258
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
|
-
}, z.core.$strip
|
|
279
|
-
RESEND_API_KEY: z.ZodString;
|
|
280
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
281
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
259
|
+
}, z.core.$strip>>], undefined>;
|
|
282
260
|
declare const retrieveSentAttachment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
283
261
|
email_id: z.ZodString;
|
|
284
262
|
attachment_id: z.ZodString;
|
|
@@ -290,13 +268,10 @@ declare const retrieveSentAttachment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
290
268
|
content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
291
269
|
size: z.ZodOptional<z.ZodNumber>;
|
|
292
270
|
url: z.ZodOptional<z.ZodString>;
|
|
293
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
294
|
-
RESEND_API_KEY: z.ZodString;
|
|
295
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
296
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
271
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
297
272
|
RESEND_API_KEY: z.ZodString;
|
|
298
273
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
|
-
}, z.core.$strip>>
|
|
274
|
+
}, z.core.$strip>>], undefined>;
|
|
300
275
|
type ResendSendEmailInput = z.infer<typeof sendEmailInputSchema>;
|
|
301
276
|
type ResendBatchSendInput = z.infer<typeof batchSendInputSchema>;
|
|
302
277
|
type ResendEmailSummary = z.infer<typeof emailSummarySchema>;
|
package/dist/emails.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-C91g4Zm2.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/emails.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as resend } from "./integration-DXosbRPM.mjs";
|
|
2
|
+
import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
|
|
3
|
+
|
|
4
|
+
//#region src/factory.ts
|
|
5
|
+
const resendOperation = createOfficialOperationFactory(resend);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { resendOperation as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
5
|
|
|
6
6
|
//#region src/integration.d.ts
|
|
@@ -20,6 +20,7 @@ declare const resendOfficialIntegration: {
|
|
|
20
20
|
id: "resend";
|
|
21
21
|
name: string;
|
|
22
22
|
description: string;
|
|
23
|
+
credentialType: "manual";
|
|
23
24
|
auth: z.ZodObject<{
|
|
24
25
|
RESEND_API_KEY: z.ZodString;
|
|
25
26
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -28,17 +29,14 @@ declare const resendOfficialIntegration: {
|
|
|
28
29
|
hosts: string[];
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
|
-
declare const resendBundle:
|
|
32
|
+
declare const resendBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"resend", z.ZodObject<{
|
|
32
33
|
RESEND_API_KEY: z.ZodString;
|
|
33
34
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34
35
|
}, z.core.$strip>>;
|
|
35
|
-
declare const resend: _keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
36
|
+
declare const resend: _keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
36
37
|
RESEND_API_KEY: z.ZodString;
|
|
37
38
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
|
-
}, z.core.$strip
|
|
39
|
-
RESEND_API_KEY: z.ZodString;
|
|
40
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41
|
-
}, z.core.$strip>>[] | undefined>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
42
40
|
/**
|
|
43
41
|
* Credentials injected into operations.
|
|
44
42
|
* Derived from the integration definition.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/integration.ts
|
|
5
|
+
const resendAuthSchema = z.object({
|
|
6
|
+
RESEND_API_KEY: z.string().min(1).regex(/^re_/, "Resend API keys start with \"re_\"."),
|
|
7
|
+
RESEND_WEBHOOK_SIGNING_SECRETS: z.record(z.string().min(1), z.string().regex(/^whsec_/, "Svix signing secrets start with \"whsec_\".")).optional()
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Resend integration — manual API-key auth.
|
|
11
|
+
*
|
|
12
|
+
* All requests use `Authorization: Bearer re_…`. A mandatory
|
|
13
|
+
* `User-Agent` header is attached by the client. Optional
|
|
14
|
+
* webhook signing secrets are stored per-endpoint so webhook
|
|
15
|
+
* triggers can verify inbound Svix-signed payloads.
|
|
16
|
+
*/
|
|
17
|
+
const resendOfficialIntegration = {
|
|
18
|
+
id: "resend",
|
|
19
|
+
name: "Resend",
|
|
20
|
+
description: "Resend transactional + receiving + broadcast email, contacts, segments, templates, domains, and Svix-signed webhook helpers.",
|
|
21
|
+
credentialType: "manual",
|
|
22
|
+
auth: resendAuthSchema,
|
|
23
|
+
proxy: { hosts: ["api.resend.com"] }
|
|
24
|
+
};
|
|
25
|
+
const resendBundle = defineOfficialIntegration(resendOfficialIntegration);
|
|
26
|
+
const resend = resendBundle.credentialSet;
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { resendOfficialIntegration as i, resendAuthSchema as n, resendBundle as r, resend as t };
|
package/dist/logs.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/logs.d.ts
|
|
6
5
|
declare const logSummarySchema: z.ZodObject<{
|
|
@@ -38,13 +37,10 @@ declare const listLogs: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
37
|
status: z.ZodOptional<z.ZodNumber>;
|
|
39
38
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
40
39
|
}, z.core.$loose>>;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
42
|
-
RESEND_API_KEY: z.ZodString;
|
|
43
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
40
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
45
41
|
RESEND_API_KEY: z.ZodString;
|
|
46
42
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>>
|
|
43
|
+
}, z.core.$strip>>], undefined>;
|
|
48
44
|
declare const retrieveLog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
49
45
|
id: z.ZodString;
|
|
50
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -58,13 +54,10 @@ declare const retrieveLog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
58
54
|
response_body: z.ZodOptional<z.ZodUnknown>;
|
|
59
55
|
request_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
60
56
|
response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
61
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
62
|
-
RESEND_API_KEY: z.ZodString;
|
|
63
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
57
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
65
58
|
RESEND_API_KEY: z.ZodString;
|
|
66
59
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
-
}, z.core.$strip>>
|
|
60
|
+
}, z.core.$strip>>], undefined>;
|
|
68
61
|
type ResendLogSummary = z.infer<typeof logSummarySchema>;
|
|
69
62
|
type ResendLogDetail = z.infer<typeof logDetailSchema>;
|
|
70
63
|
//#endregion
|
package/dist/logs.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-C91g4Zm2.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/logs.ts
|
package/dist/segments.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/segments.d.ts
|
|
6
5
|
declare const segmentSummarySchema: z.ZodObject<{
|
|
@@ -27,13 +26,10 @@ declare const createSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
27
26
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
28
27
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
28
|
contact_count: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
31
|
-
RESEND_API_KEY: z.ZodString;
|
|
32
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
29
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
34
30
|
RESEND_API_KEY: z.ZodString;
|
|
35
31
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>
|
|
32
|
+
}, z.core.$strip>>], undefined>;
|
|
37
33
|
declare const listSegments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
38
34
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
39
35
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -47,13 +43,10 @@ declare const listSegments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
47
43
|
created_at: z.ZodOptional<z.ZodString>;
|
|
48
44
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
49
45
|
}, z.core.$loose>>;
|
|
50
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
51
|
-
RESEND_API_KEY: z.ZodString;
|
|
52
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
46
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
54
47
|
RESEND_API_KEY: z.ZodString;
|
|
55
48
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
56
|
-
}, z.core.$strip>>
|
|
49
|
+
}, z.core.$strip>>], undefined>;
|
|
57
50
|
declare const retrieveSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
58
51
|
id: z.ZodString;
|
|
59
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -63,26 +56,20 @@ declare const retrieveSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
63
56
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
64
57
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
58
|
contact_count: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
59
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
67
60
|
RESEND_API_KEY: z.ZodString;
|
|
68
61
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
69
|
-
}, z.core.$strip
|
|
70
|
-
RESEND_API_KEY: z.ZodString;
|
|
71
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
72
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
62
|
+
}, z.core.$strip>>], undefined>;
|
|
73
63
|
declare const deleteSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
74
64
|
id: z.ZodString;
|
|
75
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
66
|
object: z.ZodOptional<z.ZodLiteral<"segment">>;
|
|
77
67
|
id: z.ZodString;
|
|
78
68
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
80
|
-
RESEND_API_KEY: z.ZodString;
|
|
81
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
82
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
69
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
83
70
|
RESEND_API_KEY: z.ZodString;
|
|
84
71
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
|
-
}, z.core.$strip>>
|
|
72
|
+
}, z.core.$strip>>], undefined>;
|
|
86
73
|
declare const listSegmentContacts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
87
74
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
88
75
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -99,13 +86,10 @@ declare const listSegmentContacts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
99
86
|
unsubscribed: z.ZodOptional<z.ZodBoolean>;
|
|
100
87
|
created_at: z.ZodOptional<z.ZodString>;
|
|
101
88
|
}, z.core.$loose>>;
|
|
102
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
103
|
-
RESEND_API_KEY: z.ZodString;
|
|
104
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
105
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
89
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
106
90
|
RESEND_API_KEY: z.ZodString;
|
|
107
91
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
108
|
-
}, z.core.$strip>>
|
|
92
|
+
}, z.core.$strip>>], undefined>;
|
|
109
93
|
type ResendSegmentSummary = z.infer<typeof segmentSummarySchema>;
|
|
110
94
|
type ResendSegmentDetail = z.infer<typeof segmentDetailSchema>;
|
|
111
95
|
//#endregion
|
package/dist/segments.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-C91g4Zm2.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/segments.ts
|
package/dist/templates.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/templates.d.ts
|
|
6
5
|
declare const templateSummarySchema: z.ZodObject<{
|
|
@@ -48,13 +47,10 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
48
47
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
48
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
49
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
52
|
-
RESEND_API_KEY: z.ZodString;
|
|
53
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
50
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
55
51
|
RESEND_API_KEY: z.ZodString;
|
|
56
52
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
57
|
-
}, z.core.$strip>>
|
|
53
|
+
}, z.core.$strip>>], undefined>;
|
|
58
54
|
declare const listTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
59
55
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
60
56
|
after: z.ZodOptional<z.ZodString>;
|
|
@@ -71,13 +67,10 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
71
67
|
created_at: z.ZodOptional<z.ZodString>;
|
|
72
68
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
73
69
|
}, z.core.$loose>>;
|
|
74
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
70
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
75
71
|
RESEND_API_KEY: z.ZodString;
|
|
76
72
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
77
|
-
}, z.core.$strip
|
|
78
|
-
RESEND_API_KEY: z.ZodString;
|
|
79
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
80
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
73
|
+
}, z.core.$strip>>], undefined>;
|
|
81
74
|
declare const retrieveTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
82
75
|
id: z.ZodString;
|
|
83
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -93,13 +86,10 @@ declare const retrieveTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
93
86
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
87
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
88
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
97
|
-
RESEND_API_KEY: z.ZodString;
|
|
98
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
89
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
100
90
|
RESEND_API_KEY: z.ZodString;
|
|
101
91
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
102
|
-
}, z.core.$strip>>
|
|
92
|
+
}, z.core.$strip>>], undefined>;
|
|
103
93
|
declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
104
94
|
name: z.ZodOptional<z.ZodString>;
|
|
105
95
|
subject: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -123,26 +113,20 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
123
113
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
114
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
115
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
116
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
127
117
|
RESEND_API_KEY: z.ZodString;
|
|
128
118
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
129
|
-
}, z.core.$strip
|
|
130
|
-
RESEND_API_KEY: z.ZodString;
|
|
131
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
|
+
}, z.core.$strip>>], undefined>;
|
|
133
120
|
declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
134
121
|
id: z.ZodString;
|
|
135
122
|
}, z.core.$strip>, z.ZodObject<{
|
|
136
123
|
object: z.ZodOptional<z.ZodLiteral<"template">>;
|
|
137
124
|
id: z.ZodString;
|
|
138
125
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
140
|
-
RESEND_API_KEY: z.ZodString;
|
|
141
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
126
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
143
127
|
RESEND_API_KEY: z.ZodString;
|
|
144
128
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
145
|
-
}, z.core.$strip>>
|
|
129
|
+
}, z.core.$strip>>], undefined>;
|
|
146
130
|
declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
147
131
|
id: z.ZodString;
|
|
148
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -158,13 +142,10 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
158
142
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
143
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
144
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
145
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
162
146
|
RESEND_API_KEY: z.ZodString;
|
|
163
147
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
164
|
-
}, z.core.$strip
|
|
165
|
-
RESEND_API_KEY: z.ZodString;
|
|
166
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
167
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
148
|
+
}, z.core.$strip>>], undefined>;
|
|
168
149
|
declare const publishTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
169
150
|
id: z.ZodString;
|
|
170
151
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -180,13 +161,10 @@ declare const publishTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
180
161
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
162
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
163
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
183
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
184
|
-
RESEND_API_KEY: z.ZodString;
|
|
185
|
-
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
164
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
|
|
187
165
|
RESEND_API_KEY: z.ZodString;
|
|
188
166
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
189
|
-
}, z.core.$strip>>
|
|
167
|
+
}, z.core.$strip>>], undefined>;
|
|
190
168
|
type ResendTemplateSummary = z.infer<typeof templateSummarySchema>;
|
|
191
169
|
type ResendTemplateDetail = z.infer<typeof templateDetailSchema>;
|
|
192
170
|
//#endregion
|
package/dist/templates.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-C91g4Zm2.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/templates.ts
|