@keystrokehq/resend 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/api-keys.d.mts +4 -4
- package/dist/api-keys.mjs +4 -4
- package/dist/broadcasts.d.mts +13 -13
- package/dist/broadcasts.mjs +7 -7
- package/dist/client.d.mts +1 -2
- 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 +6 -6
- package/dist/contact-properties.mjs +6 -6
- package/dist/contacts.d.mts +11 -11
- package/dist/contacts.mjs +11 -11
- package/dist/domains.d.mts +7 -7
- package/dist/domains.mjs +7 -7
- package/dist/emails-receiving.d.mts +5 -5
- package/dist/emails-receiving.mjs +5 -5
- package/dist/emails.d.mts +11 -11
- package/dist/emails.mjs +11 -11
- package/dist/factory-CE4vHYLx.mjs +7 -0
- package/dist/http-BLe4ICIc.mjs +84 -0
- package/dist/{integration-MddL4Qms.d.mts → integration-C00bEk7H.d.mts} +3 -4
- package/dist/integration-C5YM61yl.mjs +118 -0
- package/dist/logs.d.mts +3 -3
- package/dist/logs.mjs +3 -3
- package/dist/segments.d.mts +6 -6
- package/dist/segments.mjs +6 -6
- package/dist/templates.d.mts +8 -8
- package/dist/templates.mjs +8 -8
- package/dist/topics.d.mts +6 -6
- package/dist/topics.mjs +6 -6
- package/dist/webhooks.d.mts +6 -6
- package/dist/webhooks.mjs +6 -6
- package/package.json +5 -5
- package/dist/factory-B3VyPRsL.mjs +0 -8
- package/dist/integration-BR1nTAnU.mjs +0 -28
package/dist/domains.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/domains.d.ts
|
|
6
6
|
declare const domainSummarySchema: z.ZodObject<{
|
|
@@ -118,7 +118,7 @@ declare const createDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
118
118
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
119
119
|
status: z.ZodOptional<z.ZodString>;
|
|
120
120
|
}, z.core.$loose>>>;
|
|
121
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
121
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
122
122
|
RESEND_API_KEY: z.ZodString;
|
|
123
123
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
124
124
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -144,7 +144,7 @@ declare const listDomains: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
144
144
|
status: z.ZodOptional<z.ZodString>;
|
|
145
145
|
created_at: z.ZodOptional<z.ZodString>;
|
|
146
146
|
}, z.core.$loose>>;
|
|
147
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
147
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
148
148
|
RESEND_API_KEY: z.ZodString;
|
|
149
149
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
150
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -191,7 +191,7 @@ declare const retrieveDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
191
191
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
192
192
|
status: z.ZodOptional<z.ZodString>;
|
|
193
193
|
}, z.core.$loose>>>;
|
|
194
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
194
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
195
195
|
RESEND_API_KEY: z.ZodString;
|
|
196
196
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
197
197
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -255,7 +255,7 @@ declare const updateDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
255
255
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
256
256
|
status: z.ZodOptional<z.ZodString>;
|
|
257
257
|
}, z.core.$loose>>>;
|
|
258
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
258
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
259
259
|
RESEND_API_KEY: z.ZodString;
|
|
260
260
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
261
261
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -267,7 +267,7 @@ declare const verifyDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
267
267
|
}, z.core.$strip>, z.ZodObject<{
|
|
268
268
|
id: z.ZodString;
|
|
269
269
|
object: z.ZodOptional<z.ZodLiteral<"domain">>;
|
|
270
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
270
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
271
271
|
RESEND_API_KEY: z.ZodString;
|
|
272
272
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
273
273
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -280,7 +280,7 @@ declare const deleteDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
280
280
|
object: z.ZodOptional<z.ZodLiteral<"domain">>;
|
|
281
281
|
id: z.ZodString;
|
|
282
282
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
283
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
284
284
|
RESEND_API_KEY: z.ZodString;
|
|
285
285
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
286
286
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/domains.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendCapabilityStateSchema, resendListEnvelope, resendRegionSchema, resendTlsPolicySchema } from "./schemas.mjs";
|
|
3
|
-
import { t as resendOperation } from "./factory-
|
|
3
|
+
import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/domains.ts
|
|
@@ -47,7 +47,7 @@ const domainDetailSchema = domainSummarySchema.extend({
|
|
|
47
47
|
}).passthrough();
|
|
48
48
|
const listDomainsResponseSchema = resendListEnvelope(domainSummarySchema);
|
|
49
49
|
const createDomain = resendOperation({
|
|
50
|
-
id: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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) }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/emails-receiving.d.ts
|
|
6
6
|
declare const receivedAttachmentSummarySchema: z.ZodObject<{
|
|
@@ -90,7 +90,7 @@ declare const listReceivedEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
90
90
|
size: z.ZodOptional<z.ZodNumber>;
|
|
91
91
|
}, z.core.$loose>>>;
|
|
92
92
|
}, z.core.$loose>>;
|
|
93
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
93
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
94
94
|
RESEND_API_KEY: z.ZodString;
|
|
95
95
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
96
96
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -121,7 +121,7 @@ declare const retrieveReceivedEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
121
121
|
html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
122
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
123
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
124
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
124
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
125
125
|
RESEND_API_KEY: z.ZodString;
|
|
126
126
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
127
127
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -144,7 +144,7 @@ declare const listReceivedAttachments: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
144
144
|
content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
145
|
size: z.ZodOptional<z.ZodNumber>;
|
|
146
146
|
}, z.core.$loose>>;
|
|
147
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
147
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
148
148
|
RESEND_API_KEY: z.ZodString;
|
|
149
149
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
150
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -162,7 +162,7 @@ declare const retrieveReceivedAttachment: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
162
162
|
content_disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
163
|
size: z.ZodOptional<z.ZodNumber>;
|
|
164
164
|
url: z.ZodOptional<z.ZodString>;
|
|
165
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
165
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
166
166
|
RESEND_API_KEY: z.ZodString;
|
|
167
167
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
168
168
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -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-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/emails-receiving.ts
|
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/emails.d.ts
|
|
6
6
|
/** Input accepted by `sendEmail`. Includes attachments + scheduling. */
|
|
@@ -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.
|
|
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.
|
|
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>;
|
|
@@ -137,7 +137,7 @@ declare const sendEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
137
137
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
id: z.ZodString;
|
|
140
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
140
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
141
141
|
RESEND_API_KEY: z.ZodString;
|
|
142
142
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
143
143
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -170,7 +170,7 @@ declare const sendBatchEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
170
170
|
data: z.ZodArray<z.ZodObject<{
|
|
171
171
|
id: z.ZodString;
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
173
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
174
174
|
RESEND_API_KEY: z.ZodString;
|
|
175
175
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
176
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -197,7 +197,7 @@ declare const listSentEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
197
197
|
last_event: z.ZodOptional<z.ZodString>;
|
|
198
198
|
scheduled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
199
|
}, z.core.$loose>>;
|
|
200
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
200
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
201
201
|
RESEND_API_KEY: z.ZodString;
|
|
202
202
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
203
203
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -225,7 +225,7 @@ declare const retrieveEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
225
225
|
name: z.ZodString;
|
|
226
226
|
value: z.ZodString;
|
|
227
227
|
}, z.core.$strip>>>;
|
|
228
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
228
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
229
229
|
RESEND_API_KEY: z.ZodString;
|
|
230
230
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
231
231
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -237,7 +237,7 @@ declare const updateScheduledEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
237
237
|
scheduled_at: z.ZodOptional<z.ZodString>;
|
|
238
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
239
239
|
id: z.ZodString;
|
|
240
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
240
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
241
241
|
RESEND_API_KEY: z.ZodString;
|
|
242
242
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
243
243
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -249,7 +249,7 @@ declare const cancelScheduledEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
249
249
|
}, z.core.$strip>, z.ZodObject<{
|
|
250
250
|
object: z.ZodOptional<z.ZodLiteral<"email">>;
|
|
251
251
|
id: z.ZodString;
|
|
252
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
252
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
253
253
|
RESEND_API_KEY: z.ZodString;
|
|
254
254
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
255
255
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -272,7 +272,7 @@ declare const listSentAttachments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
272
272
|
content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
273
273
|
size: z.ZodOptional<z.ZodNumber>;
|
|
274
274
|
}, z.core.$loose>>;
|
|
275
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
275
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
276
276
|
RESEND_API_KEY: z.ZodString;
|
|
277
277
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
278
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -290,7 +290,7 @@ declare const retrieveSentAttachment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
290
290
|
content_disposition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
291
291
|
size: z.ZodOptional<z.ZodNumber>;
|
|
292
292
|
url: z.ZodOptional<z.ZodString>;
|
|
293
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
293
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
294
294
|
RESEND_API_KEY: z.ZodString;
|
|
295
295
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
296
296
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/emails.ts
|
|
@@ -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.
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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({
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//#region ../../packages/integration-authoring/dist/http.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Typed error thrown by `createJsonRestClient` for non-2xx responses.
|
|
4
|
+
*
|
|
5
|
+
* Includes the full HTTP status, status text, response headers, raw body
|
|
6
|
+
* string, and request URL/method so callers can make structured decisions
|
|
7
|
+
* (retry on 5xx, map 401/403 to `CredentialRevokedError`, read
|
|
8
|
+
* `Retry-After`, etc.) instead of parsing error messages.
|
|
9
|
+
*/
|
|
10
|
+
var JsonRestError = class extends Error {
|
|
11
|
+
name = "JsonRestError";
|
|
12
|
+
status;
|
|
13
|
+
statusText;
|
|
14
|
+
body;
|
|
15
|
+
headers;
|
|
16
|
+
url;
|
|
17
|
+
method;
|
|
18
|
+
constructor(init) {
|
|
19
|
+
super(`${init.errorPrefix}: ${init.status} ${init.statusText}${init.body ? ` — ${init.body}` : ""}`);
|
|
20
|
+
this.status = init.status;
|
|
21
|
+
this.statusText = init.statusText;
|
|
22
|
+
this.body = init.body;
|
|
23
|
+
this.headers = init.headers;
|
|
24
|
+
this.url = init.url;
|
|
25
|
+
this.method = init.method;
|
|
26
|
+
}
|
|
27
|
+
/** True for 401 and 403 responses (auth / permission failures). */
|
|
28
|
+
static isAuthError(error) {
|
|
29
|
+
return isJsonRestError(error) && (error.status === 401 || error.status === 403);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Structural type guard for `JsonRestError`. Tolerates cross-realm errors by
|
|
34
|
+
* checking the `name` property instead of relying on `instanceof`.
|
|
35
|
+
*/
|
|
36
|
+
function isJsonRestError(error) {
|
|
37
|
+
if (!error || typeof error !== "object") return false;
|
|
38
|
+
const candidate = error;
|
|
39
|
+
return candidate.name === "JsonRestError" && typeof candidate.status === "number" && typeof candidate.body === "string";
|
|
40
|
+
}
|
|
41
|
+
function buildQueryString(query) {
|
|
42
|
+
if (!query) return "";
|
|
43
|
+
const params = new URLSearchParams();
|
|
44
|
+
for (const [key, value] of Object.entries(query)) if (value !== void 0 && value !== null) params.set(key, String(value));
|
|
45
|
+
const qs = params.toString();
|
|
46
|
+
return qs ? `?${qs}` : "";
|
|
47
|
+
}
|
|
48
|
+
function createJsonRestClient(config) {
|
|
49
|
+
const fetchImpl = config.fetchImpl ?? fetch;
|
|
50
|
+
const request = async (options) => {
|
|
51
|
+
const { method, path, body, query, headers: requestHeaders } = options;
|
|
52
|
+
const url = `${config.baseUrl}${path}${buildQueryString(query)}`;
|
|
53
|
+
const headers = {
|
|
54
|
+
Accept: "application/json",
|
|
55
|
+
...config.defaultHeaders,
|
|
56
|
+
...config.authHeaders(),
|
|
57
|
+
...requestHeaders
|
|
58
|
+
};
|
|
59
|
+
if (body !== void 0) headers["Content-Type"] ??= "application/json";
|
|
60
|
+
const response = await fetchImpl(url, {
|
|
61
|
+
method,
|
|
62
|
+
headers,
|
|
63
|
+
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
64
|
+
});
|
|
65
|
+
if (!response.ok) {
|
|
66
|
+
const errorBody = await response.text().catch(() => "");
|
|
67
|
+
throw new JsonRestError({
|
|
68
|
+
errorPrefix: config.errorPrefix,
|
|
69
|
+
status: response.status,
|
|
70
|
+
statusText: response.statusText,
|
|
71
|
+
body: errorBody,
|
|
72
|
+
headers: response.headers,
|
|
73
|
+
url,
|
|
74
|
+
method
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (response.status === 204) return;
|
|
78
|
+
return await response.json();
|
|
79
|
+
};
|
|
80
|
+
return { request };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { createJsonRestClient as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
6
5
|
|
|
7
6
|
//#region src/integration.d.ts
|
|
8
7
|
declare const resendAuthSchema: z.ZodObject<{
|
|
@@ -29,11 +28,11 @@ declare const resendOfficialIntegration: {
|
|
|
29
28
|
hosts: string[];
|
|
30
29
|
};
|
|
31
30
|
};
|
|
32
|
-
declare const resendBundle:
|
|
31
|
+
declare const resendBundle: undefined<"resend", z.ZodObject<{
|
|
33
32
|
RESEND_API_KEY: z.ZodString;
|
|
34
33
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35
34
|
}, z.core.$strip>>;
|
|
36
|
-
declare const resend: _keystrokehq_core0.CredentialSet<"
|
|
35
|
+
declare const resend: _keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
37
36
|
RESEND_API_KEY: z.ZodString;
|
|
38
37
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
38
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CredentialSet, Operation } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
5
|
+
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
6
|
+
function getRegistry() {
|
|
7
|
+
const globalStore = globalThis;
|
|
8
|
+
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
return globalStore[REGISTRY_KEY];
|
|
10
|
+
}
|
|
11
|
+
function registerOfficialOperation(operation, metadata) {
|
|
12
|
+
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
17
|
+
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
18
|
+
function stripOfficialCredentialSetIdPrefix(id) {
|
|
19
|
+
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates a factory for Keystroke-official integration operations.
|
|
23
|
+
*
|
|
24
|
+
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
25
|
+
* operation factory, while registering official metadata for builder/runtime
|
|
26
|
+
* operation metadata.
|
|
27
|
+
*/
|
|
28
|
+
function createOfficialOperationFactory(credentialSet) {
|
|
29
|
+
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
30
|
+
return (config) => {
|
|
31
|
+
const wrappedRun = async (input, ctx) => {
|
|
32
|
+
const creds = ctx.credentials[credentialSet.id];
|
|
33
|
+
return config.run(input, creds);
|
|
34
|
+
};
|
|
35
|
+
const operation = new Operation({
|
|
36
|
+
id: config.id,
|
|
37
|
+
name: config.name,
|
|
38
|
+
description: config.description,
|
|
39
|
+
input: config.input,
|
|
40
|
+
output: config.output,
|
|
41
|
+
credentialSets: [credentialSet],
|
|
42
|
+
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
43
|
+
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
44
|
+
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
45
|
+
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
46
|
+
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
47
|
+
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
48
|
+
run: wrappedRun
|
|
49
|
+
});
|
|
50
|
+
registerOfficialOperation(operation, { integrationId });
|
|
51
|
+
return operation;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates an official integration bundle from a single config object.
|
|
56
|
+
*
|
|
57
|
+
* - Creates the public `CredentialSet` internally.
|
|
58
|
+
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
59
|
+
*/
|
|
60
|
+
function defineOfficialIntegration(config) {
|
|
61
|
+
const internalCredentialSets = config.internal ?? {};
|
|
62
|
+
const allInternalCredentialSets = [
|
|
63
|
+
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
64
|
+
...internalCredentialSets.providerAppVariants ?? [],
|
|
65
|
+
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
66
|
+
...internalCredentialSets.other ?? []
|
|
67
|
+
];
|
|
68
|
+
const credentialSet = new CredentialSet({
|
|
69
|
+
id: config.id,
|
|
70
|
+
name: config.name,
|
|
71
|
+
description: config.description,
|
|
72
|
+
auth: config.auth,
|
|
73
|
+
...config.connections ? { connections: config.connections } : {},
|
|
74
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
75
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
76
|
+
});
|
|
77
|
+
return Object.freeze({
|
|
78
|
+
integration: {
|
|
79
|
+
id: config.id,
|
|
80
|
+
name: config.name,
|
|
81
|
+
...config.description !== void 0 ? { description: config.description } : {},
|
|
82
|
+
auth: config.auth,
|
|
83
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
84
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
85
|
+
...config.connections ? { connections: config.connections } : {}
|
|
86
|
+
},
|
|
87
|
+
credentialSet,
|
|
88
|
+
internalCredentialSets,
|
|
89
|
+
allInternalCredentialSets
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/integration.ts
|
|
95
|
+
const resendAuthSchema = z.object({
|
|
96
|
+
RESEND_API_KEY: z.string().min(1).regex(/^re_/, "Resend API keys start with \"re_\"."),
|
|
97
|
+
RESEND_WEBHOOK_SIGNING_SECRETS: z.record(z.string().min(1), z.string().regex(/^whsec_/, "Svix signing secrets start with \"whsec_\".")).optional()
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Resend integration — manual API-key auth.
|
|
101
|
+
*
|
|
102
|
+
* All requests use `Authorization: Bearer re_…`. A mandatory
|
|
103
|
+
* `User-Agent` header is attached by the client. Optional
|
|
104
|
+
* webhook signing secrets are stored per-endpoint so webhook
|
|
105
|
+
* triggers can verify inbound Svix-signed payloads.
|
|
106
|
+
*/
|
|
107
|
+
const resendOfficialIntegration = {
|
|
108
|
+
id: "resend",
|
|
109
|
+
name: "Resend",
|
|
110
|
+
description: "Resend transactional + receiving + broadcast email, contacts, segments, templates, domains, and Svix-signed webhook helpers.",
|
|
111
|
+
auth: resendAuthSchema,
|
|
112
|
+
proxy: { hosts: ["api.resend.com"] }
|
|
113
|
+
};
|
|
114
|
+
const resendBundle = defineOfficialIntegration(resendOfficialIntegration);
|
|
115
|
+
const resend = resendBundle.credentialSet;
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { createOfficialOperationFactory as a, resendOfficialIntegration as i, resendAuthSchema as n, resendBundle as r, resend as t };
|
package/dist/logs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/logs.d.ts
|
|
6
6
|
declare const logSummarySchema: z.ZodObject<{
|
|
@@ -38,7 +38,7 @@ declare const listLogs: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
38
|
status: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
}, z.core.$loose>>;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
41
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
42
42
|
RESEND_API_KEY: z.ZodString;
|
|
43
43
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
44
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -58,7 +58,7 @@ declare const retrieveLog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
58
58
|
response_body: z.ZodOptional<z.ZodUnknown>;
|
|
59
59
|
request_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
60
60
|
response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
61
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
61
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
62
62
|
RESEND_API_KEY: z.ZodString;
|
|
63
63
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
64
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|