@keystrokehq/sendgrid 0.0.8 → 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 +5 -51
- package/dist/alerts.mjs +1 -1
- package/dist/api-keys.d.mts +6 -61
- package/dist/api-keys.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/domains.d.mts +3 -31
- package/dist/domains.mjs +1 -1
- package/dist/email-validation.d.mts +4 -41
- package/dist/email-validation.mjs +1 -1
- package/dist/{factory-BSL0D2L0.mjs → factory-7q6CQ75J.mjs} +1 -1
- package/dist/{integration-DpbPKcSF.d.mts → integration-Cj4Xzfq_.d.mts} +3 -12
- package/dist/{integration-37BovSeK.mjs → integration-DHWfpe0w.mjs} +1 -0
- package/dist/mail-send.d.mts +8 -81
- package/dist/mail-send.mjs +1 -1
- package/dist/marketing-contacts.d.mts +16 -161
- package/dist/marketing-contacts.mjs +1 -1
- package/dist/marketing-customfields.d.mts +3 -31
- package/dist/marketing-customfields.mjs +1 -1
- package/dist/marketing-lists.d.mts +7 -71
- package/dist/marketing-lists.mjs +1 -1
- package/dist/marketing-segments.d.mts +10 -101
- package/dist/marketing-segments.mjs +1 -1
- package/dist/marketing-singlesends.d.mts +14 -141
- package/dist/marketing-singlesends.mjs +1 -1
- package/dist/schemas/index.d.mts +3 -3
- package/dist/sender-identities.d.mts +6 -61
- package/dist/sender-identities.mjs +1 -1
- package/dist/senders.d.mts +5 -51
- package/dist/senders.mjs +1 -1
- package/dist/stats.d.mts +6 -52
- package/dist/stats.mjs +1 -1
- package/dist/suppressions.d.mts +31 -311
- package/dist/suppressions.mjs +1 -1
- package/dist/templates.d.mts +18 -118
- package/dist/templates.mjs +1 -1
- package/dist/user-account.d.mts +4 -41
- package/dist/user-account.mjs +1 -1
- package/dist/webhooks/event.d.mts +8 -81
- package/dist/webhooks/event.mjs +1 -1
- package/dist/webhooks/parse.d.mts +6 -61
- package/dist/webhooks/parse.mjs +1 -1
- package/package.json +4 -4
package/dist/senders.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
2
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/senders.d.ts
|
|
@@ -49,16 +48,7 @@ declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
49
48
|
}>>;
|
|
50
49
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
51
50
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strip
|
|
53
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
54
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
55
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
global: "global";
|
|
57
|
-
eu: "eu";
|
|
58
|
-
}>>;
|
|
59
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
60
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
51
|
+
}, z.core.$strip>>], undefined>;
|
|
62
52
|
declare const updateSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
63
53
|
nickname: z.ZodOptional<z.ZodString>;
|
|
64
54
|
from: z.ZodOptional<z.ZodObject<{
|
|
@@ -106,16 +96,7 @@ declare const updateSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
106
96
|
}>>;
|
|
107
97
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
108
98
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip
|
|
110
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
111
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
112
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
113
|
-
global: "global";
|
|
114
|
-
eu: "eu";
|
|
115
|
-
}>>;
|
|
116
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
117
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
99
|
+
}, z.core.$strip>>], undefined>;
|
|
119
100
|
declare const deleteSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
120
101
|
senderId: z.ZodNumber;
|
|
121
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -129,16 +110,7 @@ declare const deleteSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
129
110
|
}>>;
|
|
130
111
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
131
112
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip
|
|
133
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
134
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
135
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
136
|
-
global: "global";
|
|
137
|
-
eu: "eu";
|
|
138
|
-
}>>;
|
|
139
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
140
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
113
|
+
}, z.core.$strip>>], undefined>;
|
|
142
114
|
declare const getSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
143
115
|
senderId: z.ZodNumber;
|
|
144
116
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -171,16 +143,7 @@ declare const getSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
171
143
|
}>>;
|
|
172
144
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
173
145
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
174
|
-
}, z.core.$strip
|
|
175
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
176
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
177
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
178
|
-
global: "global";
|
|
179
|
-
eu: "eu";
|
|
180
|
-
}>>;
|
|
181
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
182
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
183
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
146
|
+
}, z.core.$strip>>], undefined>;
|
|
184
147
|
declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
185
148
|
results: z.ZodArray<z.ZodObject<{
|
|
186
149
|
id: z.ZodNumber;
|
|
@@ -213,15 +176,6 @@ declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
213
176
|
}>>;
|
|
214
177
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
215
178
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
216
|
-
}, z.core.$strip
|
|
217
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
218
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
219
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
220
|
-
global: "global";
|
|
221
|
-
eu: "eu";
|
|
222
|
-
}>>;
|
|
223
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
224
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
225
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
179
|
+
}, z.core.$strip>>], undefined>;
|
|
226
180
|
//#endregion
|
|
227
181
|
export { createSender, deleteSender, getSender, listSenders, updateSender };
|
package/dist/senders.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 { et as sendgridSenderAddressSchema, nt as sendgridSenderSchema, tt as sendgridSenderListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
4
4
|
import { z } from "zod";
|
package/dist/stats.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
2
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/stats.d.ts
|
|
@@ -43,16 +42,7 @@ declare const getGlobalEmailStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
43
42
|
}>>;
|
|
44
43
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
45
44
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip
|
|
47
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
48
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
49
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
50
|
-
global: "global";
|
|
51
|
-
eu: "eu";
|
|
52
|
-
}>>;
|
|
53
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
54
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
45
|
+
}, z.core.$strip>>], undefined>;
|
|
56
46
|
declare const getCategoryStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
57
47
|
startDate: z.ZodISODate;
|
|
58
48
|
endDate: z.ZodOptional<z.ZodISODate>;
|
|
@@ -94,23 +84,14 @@ declare const getCategoryStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
94
84
|
}>>;
|
|
95
85
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
96
86
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, z.core.$strip
|
|
98
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
99
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
100
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
101
|
-
global: "global";
|
|
102
|
-
eu: "eu";
|
|
103
|
-
}>>;
|
|
104
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
105
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
87
|
+
}, z.core.$strip>>], undefined>;
|
|
107
88
|
declare const listAutomationStats: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{
|
|
108
89
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
109
90
|
aggregatedBy: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
total: "total";
|
|
110
92
|
day: "day";
|
|
111
93
|
week: "week";
|
|
112
94
|
month: "month";
|
|
113
|
-
total: "total";
|
|
114
95
|
}>>;
|
|
115
96
|
}, z.core.$strip>>, z.ZodObject<{
|
|
116
97
|
results: z.ZodArray<z.ZodUnknown>;
|
|
@@ -124,16 +105,7 @@ declare const listAutomationStats: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
124
105
|
}>>;
|
|
125
106
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
126
107
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, z.core.$strip
|
|
128
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
129
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
130
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
131
|
-
global: "global";
|
|
132
|
-
eu: "eu";
|
|
133
|
-
}>>;
|
|
134
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
135
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
108
|
+
}, z.core.$strip>>], undefined>;
|
|
137
109
|
declare const getEngagementQualityScores: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
110
|
from: z.ZodISODate;
|
|
139
111
|
to: z.ZodISODate;
|
|
@@ -150,16 +122,7 @@ declare const getEngagementQualityScores: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
150
122
|
}>>;
|
|
151
123
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
152
124
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.core.$strip
|
|
154
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
155
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
156
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
157
|
-
global: "global";
|
|
158
|
-
eu: "eu";
|
|
159
|
-
}>>;
|
|
160
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
161
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
125
|
+
}, z.core.$strip>>], undefined>;
|
|
163
126
|
declare const listMailboxProviderStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
164
127
|
startDate: z.ZodISODate;
|
|
165
128
|
endDate: z.ZodOptional<z.ZodISODate>;
|
|
@@ -201,15 +164,6 @@ declare const listMailboxProviderStats: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
201
164
|
}>>;
|
|
202
165
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
203
166
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
204
|
-
}, z.core.$strip
|
|
205
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
206
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
207
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
208
|
-
global: "global";
|
|
209
|
-
eu: "eu";
|
|
210
|
-
}>>;
|
|
211
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
212
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
167
|
+
}, z.core.$strip>>], undefined>;
|
|
214
168
|
//#endregion
|
|
215
169
|
export { getCategoryStats, getEngagementQualityScores, getGlobalEmailStats, listAutomationStats, listMailboxProviderStats };
|
package/dist/stats.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 { n as omitUndefined } from "./shared-CQ8JFNXi.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { F as sendgridAggregationSchema, I as sendgridAutomationStatsSchema, L as sendgridCategoryStatsSchema, R as sendgridEngagementQualitySchema, z as sendgridStatBucketListSchema } from "./webhooks-CKdsIikb.mjs";
|