@keystrokehq/resend 0.0.1 → 0.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Buster
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,2 +1,2 @@
1
- import { a as resendOfficialIntegration, i as resendBundle } from "../integration-ClH0F7x-.mjs";
1
+ import { a as resendOfficialIntegration, i as resendBundle } from "../integration-MddL4Qms.mjs";
2
2
  export { resendBundle, resendOfficialIntegration };
@@ -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<"resend", z.ZodObject<{
25
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
44
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
57
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -7,13 +7,13 @@ declare const broadcastSummarySchema: z.ZodObject<{
7
7
  id: z.ZodString;
8
8
  name: z.ZodOptional<z.ZodString>;
9
9
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
10
- sending: "sending";
10
+ failed: "failed";
11
11
  draft: "draft";
12
12
  scheduled: "scheduled";
13
13
  queued: "queued";
14
+ sending: "sending";
14
15
  sent: "sent";
15
16
  cancelled: "cancelled";
16
- failed: "failed";
17
17
  }>, z.ZodString]>>;
18
18
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
19
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -26,13 +26,13 @@ declare const broadcastDetailSchema: z.ZodObject<{
26
26
  id: z.ZodString;
27
27
  name: z.ZodOptional<z.ZodString>;
28
28
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
29
- sending: "sending";
29
+ failed: "failed";
30
30
  draft: "draft";
31
31
  scheduled: "scheduled";
32
32
  queued: "queued";
33
+ sending: "sending";
33
34
  sent: "sent";
34
35
  cancelled: "cancelled";
35
- failed: "failed";
36
36
  }>, z.ZodString]>>;
37
37
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
38
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -66,13 +66,13 @@ declare const createBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
66
66
  id: z.ZodString;
67
67
  name: z.ZodOptional<z.ZodString>;
68
68
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
69
- sending: "sending";
69
+ failed: "failed";
70
70
  draft: "draft";
71
71
  scheduled: "scheduled";
72
72
  queued: "queued";
73
+ sending: "sending";
73
74
  sent: "sent";
74
75
  cancelled: "cancelled";
75
- failed: "failed";
76
76
  }>, z.ZodString]>>;
77
77
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
78
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -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<"resend", z.ZodObject<{
89
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -104,13 +104,13 @@ declare const listBroadcasts: _keystrokehq_core0.Operation<z.ZodObject<{
104
104
  id: z.ZodString;
105
105
  name: z.ZodOptional<z.ZodString>;
106
106
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
107
- sending: "sending";
107
+ failed: "failed";
108
108
  draft: "draft";
109
109
  scheduled: "scheduled";
110
110
  queued: "queued";
111
+ sending: "sending";
111
112
  sent: "sent";
112
113
  cancelled: "cancelled";
113
- failed: "failed";
114
114
  }>, z.ZodString]>>;
115
115
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
116
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -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<"resend", z.ZodObject<{
122
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -132,13 +132,13 @@ declare const retrieveBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
132
132
  id: z.ZodString;
133
133
  name: z.ZodOptional<z.ZodString>;
134
134
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
135
- sending: "sending";
135
+ failed: "failed";
136
136
  draft: "draft";
137
137
  scheduled: "scheduled";
138
138
  queued: "queued";
139
+ sending: "sending";
139
140
  sent: "sent";
140
141
  cancelled: "cancelled";
141
- failed: "failed";
142
142
  }>, z.ZodString]>>;
143
143
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -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<"resend", z.ZodObject<{
155
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -179,13 +179,13 @@ declare const updateBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
179
179
  id: z.ZodString;
180
180
  name: z.ZodOptional<z.ZodString>;
181
181
  status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
182
- sending: "sending";
182
+ failed: "failed";
183
183
  draft: "draft";
184
184
  scheduled: "scheduled";
185
185
  queued: "queued";
186
+ sending: "sending";
186
187
  sent: "sent";
187
188
  cancelled: "cancelled";
188
- failed: "failed";
189
189
  }>, z.ZodString]>>;
190
190
  audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
191
191
  segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -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<"resend", z.ZodObject<{
202
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
215
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
228
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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/client.d.mts CHANGED
@@ -1,10 +1,10 @@
1
- import { t as ResendCredentials } from "./integration-ClH0F7x-.mjs";
1
+ import { t as ResendCredentials } from "./integration-MddL4Qms.mjs";
2
2
  import { JsonRestClient, JsonRestRequestOptions } from "@keystrokehq/integration-authoring/http";
3
3
 
4
4
  //#region src/client.d.ts
5
5
  declare const RESEND_BASE_URL = "https://api.resend.com";
6
6
  /** User-Agent Resend sees on every request. Stable across minor releases. */
7
- declare const RESEND_USER_AGENT = "keystroke-integration-resend/0.0.0";
7
+ declare const RESEND_USER_AGENT = "keystroke-resend/0.0.0";
8
8
  type ResendClient = JsonRestClient;
9
9
  type ResendRequestOptions = JsonRestRequestOptions;
10
10
  interface CreateResendClientOptions {
package/dist/client.mjs CHANGED
@@ -18,7 +18,7 @@ import { createJsonRestClient } from "@keystrokehq/integration-authoring/http";
18
18
  */
19
19
  const RESEND_BASE_URL = "https://api.resend.com";
20
20
  /** User-Agent Resend sees on every request. Stable across minor releases. */
21
- const RESEND_USER_AGENT = "keystroke-integration-resend/0.0.0";
21
+ const RESEND_USER_AGENT = "keystroke-resend/0.0.0";
22
22
  /**
23
23
  * Create a Resend API client from resolved credentials.
24
24
  *
@@ -1,2 +1,2 @@
1
- import { a as resendOfficialIntegration, n as resend, r as resendAuthSchema, t as ResendCredentials } from "./integration-ClH0F7x-.mjs";
1
+ import { a as resendOfficialIntegration, n as resend, r as resendAuthSchema, t as ResendCredentials } from "./integration-MddL4Qms.mjs";
2
2
  export { type ResendCredentials, resend, resendAuthSchema, resendOfficialIntegration };
@@ -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<"resend", z.ZodObject<{
46
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
73
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
94
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
116
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
129
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
50
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
74
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
93
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
117
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
130
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
140
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
150
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
167
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
184
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
208
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
121
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
147
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
194
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
258
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
270
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
283
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
93
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
124
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
147
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
165
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
package/dist/emails.d.mts CHANGED
@@ -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<"resend", z.ZodObject<{
140
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
173
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
200
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
228
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
240
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
252
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
275
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
293
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -33,7 +33,7 @@ declare const resendBundle: _keystrokehq_integration_authoring_official0.Officia
33
33
  RESEND_API_KEY: z.ZodString;
34
34
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35
35
  }, z.core.$strip>>;
36
- declare const resend: _keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
36
+ declare const resend: _keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
37
37
  RESEND_API_KEY: z.ZodString;
38
38
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39
39
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/logs.d.mts CHANGED
@@ -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<"resend", z.ZodObject<{
41
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
61
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
30
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
50
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
66
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
79
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
102
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
51
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
74
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
96
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
126
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
139
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
161
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
183
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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/topics.d.mts CHANGED
@@ -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<"resend", z.ZodObject<{
34
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
59
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
78
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
103
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
116
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<{
@@ -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<"resend", z.ZodObject<{
119
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
162
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
200
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
262
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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<"resend", z.ZodObject<{
275
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/resend",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -29,10 +29,6 @@
29
29
  "types": "./dist/events.d.mts",
30
30
  "default": "./dist/events.mjs"
31
31
  },
32
- "./triggers": {
33
- "types": "./dist/triggers.d.mts",
34
- "default": "./dist/triggers.mjs"
35
- },
36
32
  "./verification": {
37
33
  "types": "./dist/verification.d.mts",
38
34
  "default": "./dist/verification.mjs"
@@ -95,27 +91,18 @@
95
91
  "README.md",
96
92
  "LICENSE"
97
93
  ],
98
- "scripts": {
99
- "typecheck": "tsgo --build",
100
- "build": "tsdown",
101
- "lint": "biome check .",
102
- "test:unit": "vitest run --passWithNoTests --project unit",
103
- "prepublishOnly": "pnpm build && pnpm test:unit",
104
- "lint:fix": "biome check --write .",
105
- "test:int": "vitest run --passWithNoTests --project int"
106
- },
107
94
  "dependencies": {
108
- "@keystrokehq/integration-authoring": "^0.0.1",
109
- "@keystrokehq/core": "^0.0.5",
95
+ "@keystrokehq/core": "^0.0.7",
96
+ "@keystrokehq/integration-authoring": "^0.0.4",
110
97
  "zod": "^4.3.6"
111
98
  },
112
99
  "devDependencies": {
113
- "@types/node": "catalog:",
114
- "@keystrokehq/test-utils": "workspace:*",
115
- "@keystrokehq/typescript-config": "workspace:*",
116
- "tsdown": "catalog:",
117
- "typescript": "catalog:",
118
- "vitest": "catalog:"
100
+ "@types/node": "^22.19.11",
101
+ "tsdown": "^0.20.3",
102
+ "typescript": "^5.9.3",
103
+ "vitest": "^4.0.18",
104
+ "@keystrokehq/test-utils": "0.0.0",
105
+ "@keystrokehq/typescript-config": "0.0.0"
119
106
  },
120
107
  "keywords": [
121
108
  "resend",
@@ -133,5 +120,13 @@
133
120
  "publishConfig": {
134
121
  "access": "public",
135
122
  "registry": "https://registry.npmjs.org/"
123
+ },
124
+ "scripts": {
125
+ "typecheck": "tsgo --build",
126
+ "build": "tsdown",
127
+ "lint": "biome check .",
128
+ "test:unit": "vitest run --passWithNoTests --project unit",
129
+ "lint:fix": "biome check --write .",
130
+ "test:int": "vitest run --passWithNoTests --project int"
136
131
  }
137
- }
132
+ }
@@ -1,68 +0,0 @@
1
- import { n as resend, t as ResendCredentials } from "./integration-ClH0F7x-.mjs";
2
- import { ResendGenericWebhookEvent, ResendWebhookEventName } from "./events.mjs";
3
- import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
4
- import { BoundTrigger, WebhookRequest } from "@keystrokehq/core";
5
- import { WebhookTriggerManifest } from "@keystrokehq/core/trigger";
6
-
7
- //#region src/triggers.d.ts
8
- type ResendTriggerCredentialSets = readonly [typeof resend];
9
- type ResendWebhookBoundTrigger<TOutput = ResendGenericWebhookEvent> = BoundTrigger<ResendGenericWebhookEvent, ResendTriggerCredentialSets, WebhookTriggerManifest, TOutput, WebhookRequest>;
10
- type ResendWebhookBindingOptions<TOutput = ResendGenericWebhookEvent> = IntegrationTriggerBindingOptions<ResendGenericWebhookEvent, TOutput, WebhookRequest>;
11
- type ResendWebhookBindingSurface = <TOutput = ResendGenericWebhookEvent>(options?: ResendWebhookBindingOptions<TOutput>) => ResendWebhookBoundTrigger<TOutput>;
12
- interface ResendTriggersNamespace {
13
- readonly emailSent: ResendWebhookBindingSurface;
14
- readonly emailDelivered: ResendWebhookBindingSurface;
15
- readonly emailDeliveryDelayed: ResendWebhookBindingSurface;
16
- readonly emailBounced: ResendWebhookBindingSurface;
17
- readonly emailComplained: ResendWebhookBindingSurface;
18
- /** MPP-opens are filtered by default; pass your own `filter` to opt in. */
19
- readonly emailOpened: ResendWebhookBindingSurface;
20
- readonly emailClicked: ResendWebhookBindingSurface;
21
- readonly emailFailed: ResendWebhookBindingSurface;
22
- readonly emailReceived: ResendWebhookBindingSurface;
23
- readonly emailScheduled: ResendWebhookBindingSurface;
24
- readonly emailSuppressed: ResendWebhookBindingSurface;
25
- readonly domainCreated: ResendWebhookBindingSurface;
26
- readonly domainUpdated: ResendWebhookBindingSurface;
27
- readonly domainDeleted: ResendWebhookBindingSurface;
28
- readonly contactCreated: ResendWebhookBindingSurface;
29
- readonly contactUpdated: ResendWebhookBindingSurface;
30
- readonly contactDeleted: ResendWebhookBindingSurface;
31
- }
32
- declare const triggers: ResendTriggersNamespace;
33
- /**
34
- * Idempotently register (or update) a Resend webhook endpoint and
35
- * return its id + signing secret. Workflows that bind triggers
36
- * typically call this once to persist the `whsec_…` into the
37
- * connection credentials before a trigger can verify inbound payloads.
38
- *
39
- * Behavior:
40
- *
41
- * 1. Look up existing webhooks via `GET /webhooks`.
42
- * 2. If one already points to `endpointUrl`, reuse it. If its event
43
- * list drifted, `PATCH` to reconcile.
44
- * 3. Otherwise `POST /webhooks` with the requested events.
45
- * 4. Return `{ webhookId, signingSecret, endpointUrl, events }`.
46
- *
47
- * Does NOT mutate the vault. Callers are responsible for writing
48
- * the returned `signingSecret` into
49
- * `credentials.RESEND_WEBHOOK_SIGNING_SECRETS[webhookId]`.
50
- */
51
- interface EnsureResendWebhookParams {
52
- readonly credentials: ResendCredentials;
53
- readonly endpointUrl: string;
54
- /** Events to subscribe to. Pass `'all'` to subscribe to every event. */
55
- readonly events: 'all' | readonly ResendWebhookEventName[];
56
- readonly status?: 'enabled' | 'disabled';
57
- }
58
- interface EnsureResendWebhookResult {
59
- readonly webhookId: string;
60
- readonly signingSecret: string;
61
- readonly endpointUrl: string;
62
- readonly events: readonly ResendWebhookEventName[] | 'all';
63
- readonly created: boolean;
64
- readonly updated: boolean;
65
- }
66
- declare function ensureResendWebhook(params: EnsureResendWebhookParams): Promise<EnsureResendWebhookResult>;
67
- //#endregion
68
- export { EnsureResendWebhookParams, EnsureResendWebhookResult, ResendTriggersNamespace, ensureResendWebhook, triggers };
package/dist/triggers.mjs DELETED
@@ -1,141 +0,0 @@
1
- import { t as resend } from "./integration-BR1nTAnU.mjs";
2
- import { createResendClient } from "./client.mjs";
3
- import { RESEND_WEBHOOK_EVENT_NAMES, resendGenericWebhookEventSchema } from "./events.mjs";
4
- import { verifyResendWebhookRequest } from "./verification.mjs";
5
- import { createWebhookTriggerBindingFactory } from "@keystrokehq/integration-authoring";
6
-
7
- //#region src/triggers.ts
8
- function resolveSigningSecret(credentials) {
9
- const map = credentials.RESEND_WEBHOOK_SIGNING_SECRETS;
10
- if (map === void 0) return [];
11
- return Object.values(map);
12
- }
13
- function idempotencyFromPayload(payload) {
14
- const data = payload.data;
15
- for (const key of ["email_id", "id"]) {
16
- const value = data[key];
17
- if (typeof value === "string" && value.length > 0) return `${payload.type}:${value}`;
18
- }
19
- return `${payload.type}:unknown`;
20
- }
21
- function isAppleMppOpen(payload) {
22
- if (payload.type !== "email.opened") return false;
23
- return payload.data.is_machine_opened === true;
24
- }
25
- function defaultDefinitionFilter(eventType) {
26
- if (eventType === "email.opened") return (payload) => payload.type === eventType && !isAppleMppOpen(payload);
27
- return (payload) => payload.type === eventType;
28
- }
29
- function buildBinding(eventType) {
30
- return createWebhookTriggerBindingFactory({
31
- defaultName: `Resend ${eventType}`,
32
- defaultDescription: `Fires when Resend emits the ${eventType} webhook event.`,
33
- path: "/resend",
34
- method: "POST",
35
- payload: resendGenericWebhookEventSchema,
36
- credentialSets: [resend],
37
- verify: (request, ctx) => {
38
- const credentials = ctx.credentials.resend;
39
- const secrets = resolveSigningSecret(credentials);
40
- if (secrets.length === 0) throw new Error("Resend webhook signing secret is not configured. Populate `RESEND_WEBHOOK_SIGNING_SECRETS` on the connection (e.g. via `ensureResendWebhook`) before binding webhook triggers.");
41
- for (const signingSecret of secrets) if (verifyResendWebhookRequest({
42
- rawBody: request.rawBody,
43
- headers: request.headers,
44
- signingSecret
45
- }).ok) return;
46
- throw new Error("Invalid Resend webhook signature.");
47
- },
48
- definitionFilter: defaultDefinitionFilter(eventType),
49
- idempotencyKey: (payload) => idempotencyFromPayload(payload),
50
- response: { successStatus: 200 }
51
- });
52
- }
53
- const bindingTable = Object.fromEntries(RESEND_WEBHOOK_EVENT_NAMES.map((eventName) => [eventName, buildBinding(eventName)]));
54
- function bind(eventType) {
55
- return (options) => bindingTable[eventType](options);
56
- }
57
- const triggers = Object.freeze({
58
- emailSent: bind("email.sent"),
59
- emailDelivered: bind("email.delivered"),
60
- emailDeliveryDelayed: bind("email.delivery_delayed"),
61
- emailBounced: bind("email.bounced"),
62
- emailComplained: bind("email.complained"),
63
- emailOpened: bind("email.opened"),
64
- emailClicked: bind("email.clicked"),
65
- emailFailed: bind("email.failed"),
66
- emailReceived: bind("email.received"),
67
- emailScheduled: bind("email.scheduled"),
68
- emailSuppressed: bind("email.suppressed"),
69
- domainCreated: bind("domain.created"),
70
- domainUpdated: bind("domain.updated"),
71
- domainDeleted: bind("domain.deleted"),
72
- contactCreated: bind("contact.created"),
73
- contactUpdated: bind("contact.updated"),
74
- contactDeleted: bind("contact.deleted")
75
- });
76
- async function ensureResendWebhook(params) {
77
- const client = createResendClient(params.credentials);
78
- const existing = (await client.request({
79
- method: "GET",
80
- path: "/webhooks"
81
- })).data.find((w) => w.endpoint_url === params.endpointUrl);
82
- if (existing) {
83
- const existingEvents = new Set(existing.events ?? []);
84
- const desiredEvents = params.events === "all" ? /* @__PURE__ */ new Set() : new Set(params.events);
85
- const eventsChanged = params.events === "all" ? false : existingEvents.size !== desiredEvents.size || [...desiredEvents].some((e) => !existingEvents.has(e));
86
- const statusChanged = params.status !== void 0 && existing.status !== params.status;
87
- if (eventsChanged || statusChanged) {
88
- const secret = (await client.request({
89
- method: "PATCH",
90
- path: `/webhooks/${encodeURIComponent(existing.id)}`,
91
- body: {
92
- ...eventsChanged ? { events: params.events } : {},
93
- ...statusChanged ? { status: params.status } : {}
94
- }
95
- })).signing_secret ?? (await client.request({
96
- method: "GET",
97
- path: `/webhooks/${encodeURIComponent(existing.id)}`
98
- })).signing_secret;
99
- return {
100
- webhookId: existing.id,
101
- signingSecret: secret,
102
- endpointUrl: params.endpointUrl,
103
- events: params.events,
104
- created: false,
105
- updated: true
106
- };
107
- }
108
- const refreshed = await client.request({
109
- method: "GET",
110
- path: `/webhooks/${encodeURIComponent(existing.id)}`
111
- });
112
- return {
113
- webhookId: existing.id,
114
- signingSecret: refreshed.signing_secret,
115
- endpointUrl: params.endpointUrl,
116
- events: params.events,
117
- created: false,
118
- updated: false
119
- };
120
- }
121
- const created = await client.request({
122
- method: "POST",
123
- path: "/webhooks",
124
- body: {
125
- endpoint_url: params.endpointUrl,
126
- events: params.events,
127
- ...params.status ? { status: params.status } : {}
128
- }
129
- });
130
- return {
131
- webhookId: created.id,
132
- signingSecret: created.signing_secret,
133
- endpointUrl: params.endpointUrl,
134
- events: params.events,
135
- created: true,
136
- updated: false
137
- };
138
- }
139
-
140
- //#endregion
141
- export { ensureResendWebhook, triggers };