@keystrokehq/sendgrid 0.0.9 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/alerts.d.mts +11 -57
- package/dist/alerts.mjs +2 -2
- package/dist/api-keys.d.mts +13 -68
- package/dist/api-keys.mjs +2 -2
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +3 -2
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/domains.d.mts +7 -35
- package/dist/domains.mjs +2 -2
- package/dist/email-validation.d.mts +10 -47
- package/dist/email-validation.mjs +2 -2
- package/dist/{factory-CToXR1jp.mjs → factory-7q6CQ75J.mjs} +2 -1
- package/dist/{integration-zx-jmybs.d.mts → integration-Cj4Xzfq_.d.mts} +6 -14
- package/dist/integration-DHWfpe0w.mjs +24 -0
- package/dist/mail-send.d.mts +17 -90
- package/dist/mail-send.mjs +2 -2
- package/dist/marketing-contacts.d.mts +33 -178
- package/dist/marketing-contacts.mjs +2 -2
- package/dist/marketing-customfields.d.mts +7 -35
- package/dist/marketing-customfields.mjs +1 -1
- package/dist/marketing-lists.d.mts +15 -79
- package/dist/marketing-lists.mjs +2 -2
- package/dist/marketing-segments.d.mts +21 -112
- package/dist/marketing-segments.mjs +2 -2
- package/dist/marketing-singlesends.d.mts +31 -158
- package/dist/marketing-singlesends.mjs +2 -2
- package/dist/schemas/index.d.mts +3 -3
- package/dist/sender-identities.d.mts +13 -68
- package/dist/sender-identities.mjs +1 -1
- package/dist/senders.d.mts +11 -57
- package/dist/senders.mjs +1 -1
- package/dist/shared-CQ8JFNXi.mjs +13 -0
- package/dist/stats.d.mts +12 -58
- package/dist/stats.mjs +2 -2
- package/dist/suppressions.d.mts +63 -343
- package/dist/suppressions.mjs +2 -2
- package/dist/templates.d.mts +30 -130
- package/dist/templates.mjs +2 -2
- package/dist/user-account.d.mts +9 -46
- package/dist/user-account.mjs +1 -1
- package/dist/webhooks/event.d.mts +17 -90
- package/dist/webhooks/event.mjs +2 -2
- package/dist/webhooks/parse.d.mts +13 -68
- package/dist/webhooks/parse.mjs +2 -2
- package/package.json +5 -5
- package/dist/integration-C9EALG65.mjs +0 -113
- package/dist/shared-BayZ0Lt6.mjs +0 -46
package/dist/suppressions.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-7q6CQ75J.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { C as sendgridBounceListSchema, E as sendgridGlobalSuppressionSchema, N as sendgridSuppressionGroupListSchema, O as sendgridGroupSuppressionListSchema, P as sendgridSuppressionGroupSchema, T as sendgridGlobalSuppressionListSchema, in as sendgridEmailSchema, j as sendgridSpamReportListSchema, k as sendgridInvalidEmailListSchema, x as sendgridBlockListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/templates.d.mts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/templates.d.ts
|
|
6
5
|
declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
6
|
name: z.ZodString;
|
|
8
7
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
dynamic: "dynamic";
|
|
10
8
|
legacy: "legacy";
|
|
9
|
+
dynamic: "dynamic";
|
|
11
10
|
}>>;
|
|
12
11
|
}, z.core.$strip>, z.ZodObject<{
|
|
13
12
|
id: z.ZodString;
|
|
14
13
|
name: z.ZodString;
|
|
15
14
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
dynamic: "dynamic";
|
|
17
15
|
legacy: "legacy";
|
|
16
|
+
dynamic: "dynamic";
|
|
18
17
|
}>>;
|
|
19
18
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
20
19
|
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -32,16 +31,7 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
32
31
|
}>>;
|
|
33
32
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
34
33
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
36
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
37
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
38
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
39
|
-
global: "global";
|
|
40
|
-
eu: "eu";
|
|
41
|
-
}>>;
|
|
42
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
43
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
34
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
45
35
|
SENDGRID_API_KEY: z.ZodString;
|
|
46
36
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
47
37
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -50,7 +40,7 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
50
40
|
}>>;
|
|
51
41
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
52
42
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>>
|
|
43
|
+
}, z.core.$strip>>], undefined>;
|
|
54
44
|
declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
55
45
|
templateId: z.ZodString;
|
|
56
46
|
name: z.ZodString;
|
|
@@ -58,8 +48,8 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
58
48
|
id: z.ZodString;
|
|
59
49
|
name: z.ZodString;
|
|
60
50
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
dynamic: "dynamic";
|
|
62
51
|
legacy: "legacy";
|
|
52
|
+
dynamic: "dynamic";
|
|
63
53
|
}>>;
|
|
64
54
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
65
55
|
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -77,7 +67,7 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
77
67
|
}>>;
|
|
78
68
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
79
69
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
80
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
70
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
81
71
|
SENDGRID_API_KEY: z.ZodString;
|
|
82
72
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
83
73
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -86,30 +76,12 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
86
76
|
}>>;
|
|
87
77
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
88
78
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strip
|
|
90
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
91
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
92
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
93
|
-
global: "global";
|
|
94
|
-
eu: "eu";
|
|
95
|
-
}>>;
|
|
96
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
97
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
79
|
+
}, z.core.$strip>>], undefined>;
|
|
99
80
|
declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
100
81
|
templateId: z.ZodString;
|
|
101
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
83
|
success: z.ZodBoolean;
|
|
103
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
104
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
105
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
106
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
global: "global";
|
|
108
|
-
eu: "eu";
|
|
109
|
-
}>>;
|
|
110
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
111
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
84
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
113
85
|
SENDGRID_API_KEY: z.ZodString;
|
|
114
86
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
115
87
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -118,7 +90,7 @@ declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
118
90
|
}>>;
|
|
119
91
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
120
92
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
121
|
-
}, z.core.$strip>>
|
|
93
|
+
}, z.core.$strip>>], undefined>;
|
|
122
94
|
declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
123
95
|
templateId: z.ZodString;
|
|
124
96
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -126,8 +98,8 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
126
98
|
id: z.ZodString;
|
|
127
99
|
name: z.ZodString;
|
|
128
100
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
129
|
-
dynamic: "dynamic";
|
|
130
101
|
legacy: "legacy";
|
|
102
|
+
dynamic: "dynamic";
|
|
131
103
|
}>>;
|
|
132
104
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
133
105
|
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -145,16 +117,7 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
145
117
|
}>>;
|
|
146
118
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
147
119
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
148
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
149
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
150
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
151
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
152
|
-
global: "global";
|
|
153
|
-
eu: "eu";
|
|
154
|
-
}>>;
|
|
155
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
156
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
157
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
120
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
158
121
|
SENDGRID_API_KEY: z.ZodString;
|
|
159
122
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
160
123
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -163,15 +126,15 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
163
126
|
}>>;
|
|
164
127
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
165
128
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>>
|
|
129
|
+
}, z.core.$strip>>], undefined>;
|
|
167
130
|
declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
131
|
templateId: z.ZodString;
|
|
169
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
133
|
id: z.ZodString;
|
|
171
134
|
name: z.ZodString;
|
|
172
135
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
173
|
-
dynamic: "dynamic";
|
|
174
136
|
legacy: "legacy";
|
|
137
|
+
dynamic: "dynamic";
|
|
175
138
|
}>>;
|
|
176
139
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
177
140
|
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -189,16 +152,7 @@ declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
189
152
|
}>>;
|
|
190
153
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
191
154
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
192
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
193
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
194
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
195
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
196
|
-
global: "global";
|
|
197
|
-
eu: "eu";
|
|
198
|
-
}>>;
|
|
199
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
200
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
201
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
155
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
202
156
|
SENDGRID_API_KEY: z.ZodString;
|
|
203
157
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
204
158
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -207,11 +161,11 @@ declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
207
161
|
}>>;
|
|
208
162
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
209
163
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
210
|
-
}, z.core.$strip>>
|
|
164
|
+
}, z.core.$strip>>], undefined>;
|
|
211
165
|
declare const listTemplates: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{
|
|
212
166
|
generations: z.ZodOptional<z.ZodEnum<{
|
|
213
|
-
dynamic: "dynamic";
|
|
214
167
|
legacy: "legacy";
|
|
168
|
+
dynamic: "dynamic";
|
|
215
169
|
"legacy,dynamic": "legacy,dynamic";
|
|
216
170
|
}>>;
|
|
217
171
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -221,8 +175,8 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
|
|
|
221
175
|
id: z.ZodString;
|
|
222
176
|
name: z.ZodString;
|
|
223
177
|
generation: z.ZodOptional<z.ZodEnum<{
|
|
224
|
-
dynamic: "dynamic";
|
|
225
178
|
legacy: "legacy";
|
|
179
|
+
dynamic: "dynamic";
|
|
226
180
|
}>>;
|
|
227
181
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
228
182
|
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -241,7 +195,7 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
|
|
|
241
195
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
242
196
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
243
197
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
244
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
198
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
245
199
|
SENDGRID_API_KEY: z.ZodString;
|
|
246
200
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
247
201
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -250,16 +204,7 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
|
|
|
250
204
|
}>>;
|
|
251
205
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
252
206
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
253
|
-
}, z.core.$strip
|
|
254
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
255
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
256
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
257
|
-
global: "global";
|
|
258
|
-
eu: "eu";
|
|
259
|
-
}>>;
|
|
260
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
261
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
262
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
207
|
+
}, z.core.$strip>>], undefined>;
|
|
263
208
|
declare const createTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
264
209
|
templateId: z.ZodString;
|
|
265
210
|
name: z.ZodString;
|
|
@@ -286,16 +231,7 @@ declare const createTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
286
231
|
design: "design";
|
|
287
232
|
}>>;
|
|
288
233
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
289
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
290
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
291
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
292
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
293
|
-
global: "global";
|
|
294
|
-
eu: "eu";
|
|
295
|
-
}>>;
|
|
296
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
297
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
234
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
299
235
|
SENDGRID_API_KEY: z.ZodString;
|
|
300
236
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
301
237
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -304,7 +240,7 @@ declare const createTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
304
240
|
}>>;
|
|
305
241
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
306
242
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
307
|
-
}, z.core.$strip>>
|
|
243
|
+
}, z.core.$strip>>], undefined>;
|
|
308
244
|
declare const updateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
309
245
|
templateId: z.ZodString;
|
|
310
246
|
versionId: z.ZodString;
|
|
@@ -332,16 +268,7 @@ declare const updateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
332
268
|
design: "design";
|
|
333
269
|
}>>;
|
|
334
270
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
335
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
336
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
337
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
338
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
339
|
-
global: "global";
|
|
340
|
-
eu: "eu";
|
|
341
|
-
}>>;
|
|
342
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
343
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
344
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
271
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
345
272
|
SENDGRID_API_KEY: z.ZodString;
|
|
346
273
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
347
274
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -350,13 +277,13 @@ declare const updateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
350
277
|
}>>;
|
|
351
278
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
352
279
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
353
|
-
}, z.core.$strip>>
|
|
280
|
+
}, z.core.$strip>>], undefined>;
|
|
354
281
|
declare const deleteTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
355
282
|
templateId: z.ZodString;
|
|
356
283
|
versionId: z.ZodString;
|
|
357
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
358
285
|
success: z.ZodBoolean;
|
|
359
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
286
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
360
287
|
SENDGRID_API_KEY: z.ZodString;
|
|
361
288
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
362
289
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -365,16 +292,7 @@ declare const deleteTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
365
292
|
}>>;
|
|
366
293
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
367
294
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
368
|
-
}, z.core.$strip
|
|
369
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
370
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
371
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
372
|
-
global: "global";
|
|
373
|
-
eu: "eu";
|
|
374
|
-
}>>;
|
|
375
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
376
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
377
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
295
|
+
}, z.core.$strip>>], undefined>;
|
|
378
296
|
declare const getTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
379
297
|
templateId: z.ZodString;
|
|
380
298
|
versionId: z.ZodString;
|
|
@@ -392,16 +310,7 @@ declare const getTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
392
310
|
design: "design";
|
|
393
311
|
}>>;
|
|
394
312
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
395
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
396
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
397
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
398
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
399
|
-
global: "global";
|
|
400
|
-
eu: "eu";
|
|
401
|
-
}>>;
|
|
402
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
403
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
404
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
313
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
405
314
|
SENDGRID_API_KEY: z.ZodString;
|
|
406
315
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
407
316
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -410,7 +319,7 @@ declare const getTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
410
319
|
}>>;
|
|
411
320
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
412
321
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
413
|
-
}, z.core.$strip>>
|
|
322
|
+
}, z.core.$strip>>], undefined>;
|
|
414
323
|
declare const activateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
415
324
|
templateId: z.ZodString;
|
|
416
325
|
versionId: z.ZodString;
|
|
@@ -428,16 +337,7 @@ declare const activateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
428
337
|
design: "design";
|
|
429
338
|
}>>;
|
|
430
339
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
431
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
432
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
433
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
434
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
435
|
-
global: "global";
|
|
436
|
-
eu: "eu";
|
|
437
|
-
}>>;
|
|
438
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
439
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
440
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
340
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
441
341
|
SENDGRID_API_KEY: z.ZodString;
|
|
442
342
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
443
343
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -446,6 +346,6 @@ declare const activateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
446
346
|
}>>;
|
|
447
347
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
448
348
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
449
|
-
}, z.core.$strip>>
|
|
349
|
+
}, z.core.$strip>>], undefined>;
|
|
450
350
|
//#endregion
|
|
451
351
|
export { activateTemplateVersion, createTemplate, createTemplateVersion, deleteTemplate, deleteTemplateVersion, duplicateTemplate, getTemplate, getTemplateVersion, listTemplates, updateTemplate, updateTemplateVersion };
|
package/dist/templates.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-7q6CQ75J.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { _ as sendgridTemplateGenerationSchema, b as sendgridTemplateVersionSchema, on as sendgridIdSchema, v as sendgridTemplateListSchema, y as sendgridTemplateSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/user-account.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/user-account.d.ts
|
|
6
5
|
declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -15,7 +14,7 @@ declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
15
14
|
state: z.ZodOptional<z.ZodString>;
|
|
16
15
|
website: z.ZodOptional<z.ZodString>;
|
|
17
16
|
zip: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
17
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
19
18
|
SENDGRID_API_KEY: z.ZodString;
|
|
20
19
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
21
20
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -24,29 +23,11 @@ declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
24
23
|
}>>;
|
|
25
24
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
26
25
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip
|
|
28
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
29
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
30
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
31
|
-
global: "global";
|
|
32
|
-
eu: "eu";
|
|
33
|
-
}>>;
|
|
34
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
35
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
26
|
+
}, z.core.$strip>>], undefined>;
|
|
37
27
|
declare const getAccountInfo: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
38
28
|
type: z.ZodString;
|
|
39
29
|
reputation: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
41
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
42
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
43
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
44
|
-
global: "global";
|
|
45
|
-
eu: "eu";
|
|
46
|
-
}>>;
|
|
47
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
48
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
49
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
30
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
50
31
|
SENDGRID_API_KEY: z.ZodString;
|
|
51
32
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
52
33
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -55,19 +36,10 @@ declare const getAccountInfo: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
55
36
|
}>>;
|
|
56
37
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
57
38
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$strip>>
|
|
39
|
+
}, z.core.$strip>>], undefined>;
|
|
59
40
|
declare const getUserScopes: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
60
41
|
scopes: z.ZodArray<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
62
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
63
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
64
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
65
|
-
global: "global";
|
|
66
|
-
eu: "eu";
|
|
67
|
-
}>>;
|
|
68
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
69
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
42
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
71
43
|
SENDGRID_API_KEY: z.ZodString;
|
|
72
44
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
73
45
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -76,7 +48,7 @@ declare const getUserScopes: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
|
|
|
76
48
|
}>>;
|
|
77
49
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
78
50
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>>
|
|
51
|
+
}, z.core.$strip>>], undefined>;
|
|
80
52
|
declare const getCreditBalance: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
81
53
|
remain: z.ZodOptional<z.ZodNumber>;
|
|
82
54
|
total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -85,16 +57,7 @@ declare const getCreditBalance: _keystrokehq_core0.Operation<z.ZodOptional<z.Zod
|
|
|
85
57
|
last_reset: z.ZodOptional<z.ZodString>;
|
|
86
58
|
next_reset: z.ZodOptional<z.ZodString>;
|
|
87
59
|
reset_frequency: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
89
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
90
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
91
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
92
|
-
global: "global";
|
|
93
|
-
eu: "eu";
|
|
94
|
-
}>>;
|
|
95
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
96
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
98
61
|
SENDGRID_API_KEY: z.ZodString;
|
|
99
62
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
100
63
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -103,6 +66,6 @@ declare const getCreditBalance: _keystrokehq_core0.Operation<z.ZodOptional<z.Zod
|
|
|
103
66
|
}>>;
|
|
104
67
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
105
68
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>>
|
|
69
|
+
}, z.core.$strip>>], undefined>;
|
|
107
70
|
//#endregion
|
|
108
71
|
export { getAccountInfo, getCreditBalance, getUserProfile, getUserScopes };
|
package/dist/user-account.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-7q6CQ75J.mjs";
|
|
2
2
|
import { createSendGridClient } from "./client.mjs";
|
|
3
3
|
import { f as sendgridAccountInfoSchema, g as sendgridUserProfileSchema, m as sendgridScopesSchema, p as sendgridCreditBalanceSchema } from "./webhooks-CKdsIikb.mjs";
|
|
4
4
|
import { z } from "zod";
|