@keystrokehq/resend 0.0.8 → 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 +1 -1
- package/dist/broadcasts.d.mts +7 -7
- package/dist/broadcasts.mjs +1 -1
- 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 +1 -1
- package/dist/contacts.d.mts +11 -11
- package/dist/contacts.mjs +1 -1
- package/dist/domains.d.mts +7 -7
- package/dist/domains.mjs +1 -1
- package/dist/emails-receiving.d.mts +5 -5
- package/dist/emails-receiving.mjs +1 -1
- package/dist/emails.d.mts +9 -9
- package/dist/emails.mjs +1 -1
- 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 +1 -1
- package/dist/segments.d.mts +6 -6
- package/dist/segments.mjs +1 -1
- package/dist/templates.d.mts +8 -8
- package/dist/templates.mjs +1 -1
- package/dist/topics.d.mts +6 -6
- package/dist/topics.mjs +1 -1
- package/dist/webhooks.d.mts +6 -6
- package/dist/webhooks.mjs +1 -1
- package/package.json +5 -5
- package/dist/factory-B3VyPRsL.mjs +0 -8
- package/dist/integration-BR1nTAnU.mjs +0 -28
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resendOfficialIntegration, i as resendBundle } from "../integration-
|
|
1
|
+
import { a as resendOfficialIntegration, i as resendBundle } from "../integration-C00bEk7H.mjs";
|
|
2
2
|
export { resendBundle, resendOfficialIntegration };
|
package/dist/_official/index.mjs
CHANGED
package/dist/api-keys.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/api-keys.d.ts
|
|
6
6
|
declare const apiKeySummarySchema: z.ZodObject<{
|
|
@@ -22,7 +22,7 @@ declare const createApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
token: z.ZodString;
|
|
25
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
25
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
26
26
|
RESEND_API_KEY: z.ZodString;
|
|
27
27
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
28
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -41,7 +41,7 @@ declare const listApiKeys: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
41
41
|
name: z.ZodOptional<z.ZodString>;
|
|
42
42
|
created_at: z.ZodOptional<z.ZodString>;
|
|
43
43
|
}, z.core.$loose>>;
|
|
44
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
44
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
45
45
|
RESEND_API_KEY: z.ZodString;
|
|
46
46
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
47
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -54,7 +54,7 @@ declare const deleteApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
object: z.ZodOptional<z.ZodLiteral<"api_key">>;
|
|
55
55
|
id: z.ZodString;
|
|
56
56
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
57
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
58
58
|
RESEND_API_KEY: z.ZodString;
|
|
59
59
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
60
60
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/api-keys.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendApiKeyPermissionSchema, 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/api-keys.ts
|
package/dist/broadcasts.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/broadcasts.d.ts
|
|
6
6
|
declare const broadcastSummarySchema: z.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const createBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
86
86
|
preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
87
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
88
88
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
89
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
90
90
|
RESEND_API_KEY: z.ZodString;
|
|
91
91
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
92
92
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -119,7 +119,7 @@ declare const listBroadcasts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
119
119
|
scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
120
|
sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
121
121
|
}, z.core.$loose>>;
|
|
122
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
122
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
123
123
|
RESEND_API_KEY: z.ZodString;
|
|
124
124
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
125
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -152,7 +152,7 @@ declare const retrieveBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
152
152
|
preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
153
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
154
154
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
155
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
156
156
|
RESEND_API_KEY: z.ZodString;
|
|
157
157
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
158
158
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -199,7 +199,7 @@ declare const updateBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
199
199
|
preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
200
200
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
201
201
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
202
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
202
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
203
203
|
RESEND_API_KEY: z.ZodString;
|
|
204
204
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
205
205
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -212,7 +212,7 @@ declare const sendBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
212
212
|
}, z.core.$strip>, z.ZodObject<{
|
|
213
213
|
id: z.ZodString;
|
|
214
214
|
object: z.ZodOptional<z.ZodLiteral<"broadcast">>;
|
|
215
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
215
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
216
216
|
RESEND_API_KEY: z.ZodString;
|
|
217
217
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
218
218
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -225,7 +225,7 @@ declare const deleteBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
225
225
|
object: z.ZodOptional<z.ZodLiteral<"broadcast">>;
|
|
226
226
|
id: z.ZodString;
|
|
227
227
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
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<{
|
package/dist/broadcasts.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/broadcasts.ts
|
package/dist/client.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as ResendCredentials } from "./integration-
|
|
2
|
-
import { JsonRestClient, JsonRestRequestOptions } from "@keystrokehq/integration-authoring/http";
|
|
1
|
+
import { t as ResendCredentials } from "./integration-C00bEk7H.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/client.d.ts
|
|
5
4
|
declare const RESEND_BASE_URL = "https://api.resend.com";
|
package/dist/client.mjs
CHANGED
package/dist/connection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resendOfficialIntegration, n as resend, r as resendAuthSchema, t as ResendCredentials } from "./integration-
|
|
1
|
+
import { a as resendOfficialIntegration, n as resend, r as resendAuthSchema, t as ResendCredentials } from "./integration-C00bEk7H.mjs";
|
|
2
2
|
export { type ResendCredentials, resend, resendAuthSchema, resendOfficialIntegration };
|
package/dist/connection.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as resendOfficialIntegration, n as resendAuthSchema, t as resend } from "./integration-
|
|
1
|
+
import { i as resendOfficialIntegration, n as resendAuthSchema, t as resend } from "./integration-C5YM61yl.mjs";
|
|
2
2
|
|
|
3
3
|
export { resend, resendAuthSchema, resendOfficialIntegration };
|
|
@@ -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/contact-properties.d.ts
|
|
6
6
|
declare const contactPropertyTypeSchema: z.ZodEnum<{
|
|
@@ -43,7 +43,7 @@ declare const createContactProperty: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
43
43
|
label: z.ZodOptional<z.ZodString>;
|
|
44
44
|
created_at: z.ZodOptional<z.ZodString>;
|
|
45
45
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
46
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
47
47
|
RESEND_API_KEY: z.ZodString;
|
|
48
48
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
49
49
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -70,7 +70,7 @@ declare const listContactProperties: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
70
70
|
created_at: z.ZodOptional<z.ZodString>;
|
|
71
71
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
72
72
|
}, z.core.$loose>>;
|
|
73
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
73
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
74
74
|
RESEND_API_KEY: z.ZodString;
|
|
75
75
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
76
76
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -91,7 +91,7 @@ declare const retrieveContactProperty: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
91
91
|
label: z.ZodOptional<z.ZodString>;
|
|
92
92
|
created_at: z.ZodOptional<z.ZodString>;
|
|
93
93
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
94
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
95
95
|
RESEND_API_KEY: z.ZodString;
|
|
96
96
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
97
97
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -113,7 +113,7 @@ declare const updateContactProperty: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
113
113
|
label: z.ZodOptional<z.ZodString>;
|
|
114
114
|
created_at: z.ZodOptional<z.ZodString>;
|
|
115
115
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
116
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
117
117
|
RESEND_API_KEY: z.ZodString;
|
|
118
118
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
119
119
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -126,7 +126,7 @@ declare const deleteContactProperty: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
126
126
|
object: z.ZodOptional<z.ZodLiteral<"contact_property">>;
|
|
127
127
|
id: z.ZodString;
|
|
128
128
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
129
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
130
130
|
RESEND_API_KEY: z.ZodString;
|
|
131
131
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
132
|
}, 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/contact-properties.ts
|
package/dist/contacts.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/contacts.d.ts
|
|
6
6
|
declare const contactSummarySchema: z.ZodObject<{
|
|
@@ -47,7 +47,7 @@ declare const createContact: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
47
47
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
48
48
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
49
49
|
segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
50
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
51
51
|
RESEND_API_KEY: z.ZodString;
|
|
52
52
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
53
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -71,7 +71,7 @@ declare const listContacts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
71
71
|
created_at: z.ZodOptional<z.ZodString>;
|
|
72
72
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
73
73
|
}, z.core.$loose>>;
|
|
74
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
74
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
75
75
|
RESEND_API_KEY: z.ZodString;
|
|
76
76
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
77
77
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -90,7 +90,7 @@ declare const retrieveContact: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
90
90
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
91
91
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
92
92
|
segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
93
|
+
}, z.core.$loose>, 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<{
|
|
@@ -114,7 +114,7 @@ declare const updateContact: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
114
114
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
115
115
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
116
116
|
segment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
117
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
118
118
|
RESEND_API_KEY: z.ZodString;
|
|
119
119
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
120
120
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -127,7 +127,7 @@ declare const deleteContact: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
127
127
|
object: z.ZodOptional<z.ZodLiteral<"contact">>;
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
130
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
131
131
|
RESEND_API_KEY: z.ZodString;
|
|
132
132
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
133
133
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -137,7 +137,7 @@ declare const deleteContact: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
137
137
|
declare const addContactToSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
138
|
contact_id: z.ZodString;
|
|
139
139
|
segment_id: z.ZodString;
|
|
140
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, 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<{
|
|
@@ -147,7 +147,7 @@ declare const addContactToSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
147
147
|
declare const removeContactFromSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
148
148
|
contact_id: z.ZodString;
|
|
149
149
|
segment_id: z.ZodString;
|
|
150
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
151
151
|
RESEND_API_KEY: z.ZodString;
|
|
152
152
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
153
153
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -164,7 +164,7 @@ declare const listContactSegments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
164
164
|
name: z.ZodOptional<z.ZodString>;
|
|
165
165
|
created_at: z.ZodOptional<z.ZodString>;
|
|
166
166
|
}, z.core.$loose>>;
|
|
167
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
167
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
168
168
|
RESEND_API_KEY: z.ZodString;
|
|
169
169
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
170
170
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -181,7 +181,7 @@ declare const getContactTopics: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
181
181
|
opt_out: "opt_out";
|
|
182
182
|
}>;
|
|
183
183
|
}, z.core.$loose>>;
|
|
184
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
184
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
185
185
|
RESEND_API_KEY: z.ZodString;
|
|
186
186
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
187
187
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -205,7 +205,7 @@ declare const updateContactTopics: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
205
205
|
opt_out: "opt_out";
|
|
206
206
|
}>;
|
|
207
207
|
}, z.core.$loose>>;
|
|
208
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
208
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
209
209
|
RESEND_API_KEY: z.ZodString;
|
|
210
210
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
211
211
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/contacts.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/contacts.ts
|
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
|
|
@@ -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
|
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. */
|
|
@@ -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
|
|
@@ -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<{
|
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-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/logs.ts
|
package/dist/segments.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/segments.d.ts
|
|
6
6
|
declare const segmentSummarySchema: z.ZodObject<{
|
|
@@ -27,7 +27,7 @@ declare const createSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
27
27
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
28
28
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
29
|
contact_count: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
30
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
31
31
|
RESEND_API_KEY: z.ZodString;
|
|
32
32
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
33
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -47,7 +47,7 @@ declare const listSegments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
47
47
|
created_at: z.ZodOptional<z.ZodString>;
|
|
48
48
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, z.core.$loose>>;
|
|
50
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
50
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
51
51
|
RESEND_API_KEY: z.ZodString;
|
|
52
52
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
53
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -63,7 +63,7 @@ declare const retrieveSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
63
63
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
64
64
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
65
|
contact_count: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
66
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
67
67
|
RESEND_API_KEY: z.ZodString;
|
|
68
68
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
69
69
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -76,7 +76,7 @@ declare const deleteSegment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
76
76
|
object: z.ZodOptional<z.ZodLiteral<"segment">>;
|
|
77
77
|
id: z.ZodString;
|
|
78
78
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
79
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
80
80
|
RESEND_API_KEY: z.ZodString;
|
|
81
81
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
82
82
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -99,7 +99,7 @@ declare const listSegmentContacts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
99
99
|
unsubscribed: z.ZodOptional<z.ZodBoolean>;
|
|
100
100
|
created_at: z.ZodOptional<z.ZodString>;
|
|
101
101
|
}, z.core.$loose>>;
|
|
102
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
102
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
103
103
|
RESEND_API_KEY: z.ZodString;
|
|
104
104
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
105
105
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/segments.ts
|
package/dist/templates.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/templates.d.ts
|
|
6
6
|
declare const templateSummarySchema: z.ZodObject<{
|
|
@@ -48,7 +48,7 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
48
48
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
49
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
50
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
51
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
52
52
|
RESEND_API_KEY: z.ZodString;
|
|
53
53
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54
54
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -71,7 +71,7 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
71
71
|
created_at: z.ZodOptional<z.ZodString>;
|
|
72
72
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
73
73
|
}, z.core.$loose>>;
|
|
74
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
74
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
75
75
|
RESEND_API_KEY: z.ZodString;
|
|
76
76
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
77
77
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -93,7 +93,7 @@ declare const retrieveTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
93
93
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
94
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
95
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
96
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
97
97
|
RESEND_API_KEY: z.ZodString;
|
|
98
98
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
99
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -123,7 +123,7 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
123
123
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
124
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
125
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
126
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
127
127
|
RESEND_API_KEY: z.ZodString;
|
|
128
128
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
129
129
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -136,7 +136,7 @@ declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
136
136
|
object: z.ZodOptional<z.ZodLiteral<"template">>;
|
|
137
137
|
id: z.ZodString;
|
|
138
138
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
139
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
140
140
|
RESEND_API_KEY: z.ZodString;
|
|
141
141
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
142
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -158,7 +158,7 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
158
158
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
159
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
160
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
161
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
162
162
|
RESEND_API_KEY: z.ZodString;
|
|
163
163
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
164
164
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -180,7 +180,7 @@ declare const publishTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
180
180
|
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
181
|
from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
182
|
reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
183
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
183
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
184
184
|
RESEND_API_KEY: z.ZodString;
|
|
185
185
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
186
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-CE4vHYLx.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/templates.ts
|
package/dist/topics.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/topics.d.ts
|
|
6
6
|
declare const topicSchema: z.ZodObject<{
|
|
@@ -31,7 +31,7 @@ declare const createTopic: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
created_at: z.ZodOptional<z.ZodString>;
|
|
33
33
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
34
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
35
35
|
RESEND_API_KEY: z.ZodString;
|
|
36
36
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
37
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -56,7 +56,7 @@ declare const listTopics: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
56
56
|
created_at: z.ZodOptional<z.ZodString>;
|
|
57
57
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
58
58
|
}, z.core.$loose>>;
|
|
59
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
59
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
60
60
|
RESEND_API_KEY: z.ZodString;
|
|
61
61
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
62
62
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -75,7 +75,7 @@ declare const retrieveTopic: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
75
75
|
}>>;
|
|
76
76
|
created_at: z.ZodOptional<z.ZodString>;
|
|
77
77
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
78
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
79
79
|
RESEND_API_KEY: z.ZodString;
|
|
80
80
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
81
81
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -100,7 +100,7 @@ declare const updateTopic: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
100
100
|
}>>;
|
|
101
101
|
created_at: z.ZodOptional<z.ZodString>;
|
|
102
102
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
103
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
104
104
|
RESEND_API_KEY: z.ZodString;
|
|
105
105
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
106
106
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -113,7 +113,7 @@ declare const deleteTopic: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
113
113
|
object: z.ZodOptional<z.ZodLiteral<"topic">>;
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
116
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
117
117
|
RESEND_API_KEY: z.ZodString;
|
|
118
118
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
119
119
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/topics.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/topics.ts
|
package/dist/webhooks.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/webhooks.d.ts
|
|
6
6
|
declare const webhookSummarySchema: z.ZodObject<{
|
|
@@ -116,7 +116,7 @@ declare const createWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
116
116
|
created_at: z.ZodOptional<z.ZodString>;
|
|
117
117
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
118
118
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
119
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
120
120
|
RESEND_API_KEY: z.ZodString;
|
|
121
121
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
122
122
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -159,7 +159,7 @@ declare const listWebhooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
159
159
|
created_at: z.ZodOptional<z.ZodString>;
|
|
160
160
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
161
161
|
}, z.core.$loose>>;
|
|
162
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
162
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
163
163
|
RESEND_API_KEY: z.ZodString;
|
|
164
164
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
165
165
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -197,7 +197,7 @@ declare const retrieveWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
197
197
|
created_at: z.ZodOptional<z.ZodString>;
|
|
198
198
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
199
199
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
200
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
200
|
+
}, z.core.$loose>, 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<{
|
|
@@ -259,7 +259,7 @@ declare const updateWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
259
259
|
created_at: z.ZodOptional<z.ZodString>;
|
|
260
260
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
261
261
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
262
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
262
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
|
|
263
263
|
RESEND_API_KEY: z.ZodString;
|
|
264
264
|
RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
265
265
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -272,7 +272,7 @@ declare const deleteWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
272
272
|
object: z.ZodOptional<z.ZodLiteral<"webhook">>;
|
|
273
273
|
id: z.ZodString;
|
|
274
274
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
275
|
+
}, z.core.$loose>, 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<{
|
package/dist/webhooks.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createResendClient } from "./client.mjs";
|
|
2
2
|
import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
|
|
3
3
|
import { RESEND_WEBHOOK_EVENT_NAMES } from "./events.mjs";
|
|
4
|
-
import { t as resendOperation } from "./factory-
|
|
4
|
+
import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/webhooks.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/resend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
"LICENSE"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@keystrokehq/integration-authoring": "^0.0.8",
|
|
96
95
|
"zod": "^4.3.6"
|
|
97
96
|
},
|
|
98
97
|
"peerDependencies": {
|
|
@@ -103,9 +102,10 @@
|
|
|
103
102
|
"tsdown": "^0.20.3",
|
|
104
103
|
"typescript": "^5.9.3",
|
|
105
104
|
"vitest": "^4.0.18",
|
|
106
|
-
"@keystrokehq/core": "^0.0.
|
|
107
|
-
"@keystrokehq/
|
|
108
|
-
"@keystrokehq/
|
|
105
|
+
"@keystrokehq/core": "^0.0.12",
|
|
106
|
+
"@keystrokehq/typescript-config": "0.0.0",
|
|
107
|
+
"@keystrokehq/integration-authoring": "0.0.9",
|
|
108
|
+
"@keystrokehq/test-utils": "0.0.0"
|
|
109
109
|
},
|
|
110
110
|
"keywords": [
|
|
111
111
|
"resend",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as resend } from "./integration-BR1nTAnU.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,28 +0,0 @@
|
|
|
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
|
-
auth: resendAuthSchema,
|
|
22
|
-
proxy: { hosts: ["api.resend.com"] }
|
|
23
|
-
};
|
|
24
|
-
const resendBundle = defineOfficialIntegration(resendOfficialIntegration);
|
|
25
|
-
const resend = resendBundle.credentialSet;
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { resendOfficialIntegration as i, resendAuthSchema as n, resendBundle as r, resend as t };
|