@keystrokehq/resend 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/api-keys.d.mts +4 -4
- package/dist/api-keys.mjs +4 -4
- package/dist/broadcasts.d.mts +13 -13
- package/dist/broadcasts.mjs +7 -7
- package/dist/client.d.mts +1 -2
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/contact-properties.d.mts +6 -6
- package/dist/contact-properties.mjs +6 -6
- package/dist/contacts.d.mts +11 -11
- package/dist/contacts.mjs +11 -11
- package/dist/domains.d.mts +7 -7
- package/dist/domains.mjs +7 -7
- package/dist/emails-receiving.d.mts +5 -5
- package/dist/emails-receiving.mjs +5 -5
- package/dist/emails.d.mts +11 -11
- package/dist/emails.mjs +11 -11
- package/dist/factory-CE4vHYLx.mjs +7 -0
- package/dist/http-BLe4ICIc.mjs +84 -0
- package/dist/{integration-MddL4Qms.d.mts → integration-C00bEk7H.d.mts} +3 -4
- package/dist/integration-C5YM61yl.mjs +118 -0
- package/dist/logs.d.mts +3 -3
- package/dist/logs.mjs +3 -3
- package/dist/segments.d.mts +6 -6
- package/dist/segments.mjs +6 -6
- package/dist/templates.d.mts +8 -8
- package/dist/templates.mjs +8 -8
- package/dist/topics.d.mts +6 -6
- package/dist/topics.mjs +6 -6
- package/dist/webhooks.d.mts +6 -6
- package/dist/webhooks.mjs +6 -6
- package/package.json +5 -5
- package/dist/factory-B3VyPRsL.mjs +0 -8
- package/dist/integration-BR1nTAnU.mjs +0 -28
|
@@ -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
|
|
@@ -35,7 +35,7 @@ const apiKeyCreatedSchema = z.object({
|
|
|
35
35
|
}).passthrough();
|
|
36
36
|
const listApiKeysResponseSchema = resendListEnvelope(apiKeySummarySchema);
|
|
37
37
|
const createApiKey = resendOperation({
|
|
38
|
-
id: "
|
|
38
|
+
id: "resend.create-resend-api-key",
|
|
39
39
|
name: "Create Resend API Key",
|
|
40
40
|
description: "Create a new API key. The cleartext token is returned once — store it immediately; Resend cannot retrieve it again.",
|
|
41
41
|
input: z.object({
|
|
@@ -54,7 +54,7 @@ const createApiKey = resendOperation({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const listApiKeys = resendOperation({
|
|
57
|
-
id: "
|
|
57
|
+
id: "resend.list-resend-api-keys",
|
|
58
58
|
name: "List Resend API Keys",
|
|
59
59
|
description: "List API keys for the authenticated team.",
|
|
60
60
|
input: paginationQuerySchema,
|
|
@@ -68,7 +68,7 @@ const listApiKeys = resendOperation({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
const deleteApiKey = resendOperation({
|
|
71
|
-
id: "
|
|
71
|
+
id: "resend.delete-resend-api-key",
|
|
72
72
|
name: "Delete Resend API Key",
|
|
73
73
|
description: "Delete (revoke) an API key.",
|
|
74
74
|
input: z.object({ id: z.string().min(1) }),
|
package/dist/broadcasts.d.mts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
name: z.ZodOptional<z.ZodString>;
|
|
9
9
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
10
11
|
draft: "draft";
|
|
11
12
|
scheduled: "scheduled";
|
|
12
13
|
queued: "queued";
|
|
13
14
|
sending: "sending";
|
|
14
15
|
sent: "sent";
|
|
15
16
|
cancelled: "cancelled";
|
|
16
|
-
failed: "failed";
|
|
17
17
|
}>, z.ZodString]>>;
|
|
18
18
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -26,13 +26,13 @@ declare const broadcastDetailSchema: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
name: z.ZodOptional<z.ZodString>;
|
|
28
28
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
29
|
+
failed: "failed";
|
|
29
30
|
draft: "draft";
|
|
30
31
|
scheduled: "scheduled";
|
|
31
32
|
queued: "queued";
|
|
32
33
|
sending: "sending";
|
|
33
34
|
sent: "sent";
|
|
34
35
|
cancelled: "cancelled";
|
|
35
|
-
failed: "failed";
|
|
36
36
|
}>, z.ZodString]>>;
|
|
37
37
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
38
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -66,13 +66,13 @@ declare const createBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
66
66
|
id: z.ZodString;
|
|
67
67
|
name: z.ZodOptional<z.ZodString>;
|
|
68
68
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
69
|
+
failed: "failed";
|
|
69
70
|
draft: "draft";
|
|
70
71
|
scheduled: "scheduled";
|
|
71
72
|
queued: "queued";
|
|
72
73
|
sending: "sending";
|
|
73
74
|
sent: "sent";
|
|
74
75
|
cancelled: "cancelled";
|
|
75
|
-
failed: "failed";
|
|
76
76
|
}>, z.ZodString]>>;
|
|
77
77
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
78
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -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<{
|
|
@@ -104,13 +104,13 @@ declare const listBroadcasts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
104
104
|
id: z.ZodString;
|
|
105
105
|
name: z.ZodOptional<z.ZodString>;
|
|
106
106
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
107
|
+
failed: "failed";
|
|
107
108
|
draft: "draft";
|
|
108
109
|
scheduled: "scheduled";
|
|
109
110
|
queued: "queued";
|
|
110
111
|
sending: "sending";
|
|
111
112
|
sent: "sent";
|
|
112
113
|
cancelled: "cancelled";
|
|
113
|
-
failed: "failed";
|
|
114
114
|
}>, z.ZodString]>>;
|
|
115
115
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
116
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -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<{
|
|
@@ -132,13 +132,13 @@ declare const retrieveBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
132
132
|
id: z.ZodString;
|
|
133
133
|
name: z.ZodOptional<z.ZodString>;
|
|
134
134
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
135
|
+
failed: "failed";
|
|
135
136
|
draft: "draft";
|
|
136
137
|
scheduled: "scheduled";
|
|
137
138
|
queued: "queued";
|
|
138
139
|
sending: "sending";
|
|
139
140
|
sent: "sent";
|
|
140
141
|
cancelled: "cancelled";
|
|
141
|
-
failed: "failed";
|
|
142
142
|
}>, z.ZodString]>>;
|
|
143
143
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
144
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -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<{
|
|
@@ -179,13 +179,13 @@ declare const updateBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
179
179
|
id: z.ZodString;
|
|
180
180
|
name: z.ZodOptional<z.ZodString>;
|
|
181
181
|
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
182
|
+
failed: "failed";
|
|
182
183
|
draft: "draft";
|
|
183
184
|
scheduled: "scheduled";
|
|
184
185
|
queued: "queued";
|
|
185
186
|
sending: "sending";
|
|
186
187
|
sent: "sent";
|
|
187
188
|
cancelled: "cancelled";
|
|
188
|
-
failed: "failed";
|
|
189
189
|
}>, z.ZodString]>>;
|
|
190
190
|
audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
191
|
segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -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
|
|
@@ -60,7 +60,7 @@ const broadcastCreateInputSchema = z.object({
|
|
|
60
60
|
scheduled_at: z.string().optional()
|
|
61
61
|
}).refine((b) => b.audience_id !== void 0 || b.segment_id !== void 0, { message: "Broadcast requires either `segment_id` or `audience_id`." });
|
|
62
62
|
const createBroadcast = resendOperation({
|
|
63
|
-
id: "
|
|
63
|
+
id: "resend.create-resend-broadcast",
|
|
64
64
|
name: "Create Resend Broadcast",
|
|
65
65
|
description: "Create a draft broadcast targeting a segment (or legacy audience).",
|
|
66
66
|
input: broadcastCreateInputSchema,
|
|
@@ -75,7 +75,7 @@ const createBroadcast = resendOperation({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
const listBroadcasts = resendOperation({
|
|
78
|
-
id: "
|
|
78
|
+
id: "resend.list-resend-broadcasts",
|
|
79
79
|
name: "List Resend Broadcasts",
|
|
80
80
|
description: "List broadcasts, optionally cursor-paginated.",
|
|
81
81
|
input: paginationQuerySchema,
|
|
@@ -89,7 +89,7 @@ const listBroadcasts = resendOperation({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
const retrieveBroadcast = resendOperation({
|
|
92
|
-
id: "
|
|
92
|
+
id: "resend.retrieve-resend-broadcast",
|
|
93
93
|
name: "Retrieve Resend Broadcast",
|
|
94
94
|
description: "Retrieve a single broadcast by id.",
|
|
95
95
|
input: z.object({ id: z.string().min(1) }),
|
|
@@ -102,7 +102,7 @@ const retrieveBroadcast = resendOperation({
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
const updateBroadcast = resendOperation({
|
|
105
|
-
id: "
|
|
105
|
+
id: "resend.update-resend-broadcast",
|
|
106
106
|
name: "Update Resend Broadcast",
|
|
107
107
|
description: "Update a draft broadcast. Ignored once the broadcast has started sending.",
|
|
108
108
|
input: z.object({
|
|
@@ -134,7 +134,7 @@ const updateBroadcast = resendOperation({
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
const sendBroadcast = resendOperation({
|
|
137
|
-
id: "
|
|
137
|
+
id: "resend.send-resend-broadcast",
|
|
138
138
|
name: "Send Resend Broadcast",
|
|
139
139
|
description: "Start sending a draft broadcast. Optionally schedule it for later.",
|
|
140
140
|
input: z.object({
|
|
@@ -156,7 +156,7 @@ const sendBroadcast = resendOperation({
|
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
const deleteBroadcast = resendOperation({
|
|
159
|
-
id: "
|
|
159
|
+
id: "resend.delete-resend-broadcast",
|
|
160
160
|
name: "Delete Resend Broadcast",
|
|
161
161
|
description: "Delete a broadcast.",
|
|
162
162
|
input: z.object({ id: z.string().min(1) }),
|
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
|
|
@@ -28,7 +28,7 @@ const contactPropertySchema = z.object({
|
|
|
28
28
|
}).passthrough();
|
|
29
29
|
const listContactPropertiesResponseSchema = resendListEnvelope(contactPropertySchema);
|
|
30
30
|
const createContactProperty = resendOperation({
|
|
31
|
-
id: "
|
|
31
|
+
id: "resend.create-resend-contact-property",
|
|
32
32
|
name: "Create Resend Contact Property",
|
|
33
33
|
description: "Create a custom contact property.",
|
|
34
34
|
input: z.object({
|
|
@@ -47,7 +47,7 @@ const createContactProperty = resendOperation({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const listContactProperties = resendOperation({
|
|
50
|
-
id: "
|
|
50
|
+
id: "resend.list-resend-contact-properties",
|
|
51
51
|
name: "List Resend Contact Properties",
|
|
52
52
|
description: "List all custom contact properties.",
|
|
53
53
|
input: paginationQuerySchema,
|
|
@@ -61,7 +61,7 @@ const listContactProperties = resendOperation({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
const retrieveContactProperty = resendOperation({
|
|
64
|
-
id: "
|
|
64
|
+
id: "resend.retrieve-resend-contact-property",
|
|
65
65
|
name: "Retrieve Resend Contact Property",
|
|
66
66
|
description: "Retrieve a single contact property by id.",
|
|
67
67
|
input: z.object({ id: z.string().min(1) }),
|
|
@@ -74,7 +74,7 @@ const retrieveContactProperty = resendOperation({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const updateContactProperty = resendOperation({
|
|
77
|
-
id: "
|
|
77
|
+
id: "resend.update-resend-contact-property",
|
|
78
78
|
name: "Update Resend Contact Property",
|
|
79
79
|
description: "Update a contact property (label only; key and type are immutable).",
|
|
80
80
|
input: z.object({
|
|
@@ -93,7 +93,7 @@ const updateContactProperty = resendOperation({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
const deleteContactProperty = resendOperation({
|
|
96
|
-
id: "
|
|
96
|
+
id: "resend.delete-resend-contact-property",
|
|
97
97
|
name: "Delete Resend Contact Property",
|
|
98
98
|
description: "Delete a contact property.",
|
|
99
99
|
input: z.object({ id: z.string().min(1) }),
|
package/dist/contacts.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
|
|
@@ -51,7 +51,7 @@ const contactTopicsResponseSchema = z.object({ data: z.array(z.object({
|
|
|
51
51
|
status: topicSubscriptionStateSchema
|
|
52
52
|
}).passthrough()) }).passthrough();
|
|
53
53
|
const createContact = resendOperation({
|
|
54
|
-
id: "
|
|
54
|
+
id: "resend.create-resend-contact",
|
|
55
55
|
name: "Create Resend Contact",
|
|
56
56
|
description: "Create a contact.",
|
|
57
57
|
input: z.object({
|
|
@@ -74,7 +74,7 @@ const createContact = resendOperation({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const listContacts = resendOperation({
|
|
77
|
-
id: "
|
|
77
|
+
id: "resend.list-resend-contacts",
|
|
78
78
|
name: "List Resend Contacts",
|
|
79
79
|
description: "List contacts, optionally filtered by segment.",
|
|
80
80
|
input: paginationQuerySchema.extend({ segment_id: z.string().min(1).optional() }),
|
|
@@ -88,7 +88,7 @@ const listContacts = resendOperation({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const retrieveContact = resendOperation({
|
|
91
|
-
id: "
|
|
91
|
+
id: "resend.retrieve-resend-contact",
|
|
92
92
|
name: "Retrieve Resend Contact",
|
|
93
93
|
description: "Retrieve a contact by id or email.",
|
|
94
94
|
input: z.object({ id: z.string().min(1) }),
|
|
@@ -101,7 +101,7 @@ const retrieveContact = resendOperation({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
const updateContact = resendOperation({
|
|
104
|
-
id: "
|
|
104
|
+
id: "resend.update-resend-contact",
|
|
105
105
|
name: "Update Resend Contact",
|
|
106
106
|
description: "Update an existing contact.",
|
|
107
107
|
input: z.object({
|
|
@@ -124,7 +124,7 @@ const updateContact = resendOperation({
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
const deleteContact = resendOperation({
|
|
127
|
-
id: "
|
|
127
|
+
id: "resend.delete-resend-contact",
|
|
128
128
|
name: "Delete Resend Contact",
|
|
129
129
|
description: "Delete a contact.",
|
|
130
130
|
input: z.object({ id: z.string().min(1) }),
|
|
@@ -142,7 +142,7 @@ const deleteContact = resendOperation({
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
const addContactToSegment = resendOperation({
|
|
145
|
-
id: "
|
|
145
|
+
id: "resend.add-resend-contact-to-segment",
|
|
146
146
|
name: "Add Resend Contact to Segment",
|
|
147
147
|
description: "Add a contact to a segment.",
|
|
148
148
|
input: z.object({
|
|
@@ -159,7 +159,7 @@ const addContactToSegment = resendOperation({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const removeContactFromSegment = resendOperation({
|
|
162
|
-
id: "
|
|
162
|
+
id: "resend.remove-resend-contact-from-segment",
|
|
163
163
|
name: "Remove Resend Contact from Segment",
|
|
164
164
|
description: "Remove a contact from a segment.",
|
|
165
165
|
input: z.object({
|
|
@@ -176,7 +176,7 @@ const removeContactFromSegment = resendOperation({
|
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
const listContactSegments = resendOperation({
|
|
179
|
-
id: "
|
|
179
|
+
id: "resend.list-resend-contact-segments",
|
|
180
180
|
name: "List Resend Contact Segments",
|
|
181
181
|
description: "List segments a contact belongs to.",
|
|
182
182
|
input: z.object({ contact_id: z.string().min(1) }),
|
|
@@ -189,7 +189,7 @@ const listContactSegments = resendOperation({
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
const getContactTopics = resendOperation({
|
|
192
|
-
id: "
|
|
192
|
+
id: "resend.get-resend-contact-topics",
|
|
193
193
|
name: "Get Resend Contact Topics",
|
|
194
194
|
description: "List topic subscriptions for a contact.",
|
|
195
195
|
input: z.object({ contact_id: z.string().min(1) }),
|
|
@@ -202,7 +202,7 @@ const getContactTopics = resendOperation({
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
const updateContactTopics = resendOperation({
|
|
205
|
-
id: "
|
|
205
|
+
id: "resend.update-resend-contact-topics",
|
|
206
206
|
name: "Update Resend Contact Topics",
|
|
207
207
|
description: "Update topic subscriptions for a contact.",
|
|
208
208
|
input: z.object({
|