@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/senders.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/senders.d.ts
|
|
6
5
|
declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -40,7 +39,7 @@ declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
40
39
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
41
40
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
42
41
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
42
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
44
43
|
SENDGRID_API_KEY: z.ZodString;
|
|
45
44
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
46
45
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -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<{
|
|
@@ -97,7 +87,7 @@ declare const updateSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
97
87
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
98
88
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
99
89
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
90
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
101
91
|
SENDGRID_API_KEY: z.ZodString;
|
|
102
92
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
103
93
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -106,30 +96,12 @@ 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<{
|
|
122
103
|
success: z.ZodBoolean;
|
|
123
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
124
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
125
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
126
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
127
|
-
global: "global";
|
|
128
|
-
eu: "eu";
|
|
129
|
-
}>>;
|
|
130
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
131
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
104
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
133
105
|
SENDGRID_API_KEY: z.ZodString;
|
|
134
106
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
135
107
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -138,7 +110,7 @@ declare const deleteSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
138
110
|
}>>;
|
|
139
111
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
140
112
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, z.core.$strip>>
|
|
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<{
|
|
@@ -162,7 +134,7 @@ declare const getSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
162
134
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
163
135
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
164
136
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
137
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
166
138
|
SENDGRID_API_KEY: z.ZodString;
|
|
167
139
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
168
140
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -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;
|
|
@@ -204,16 +167,7 @@ declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
204
167
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
205
168
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
206
169
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
207
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
208
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
209
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
210
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
211
|
-
global: "global";
|
|
212
|
-
eu: "eu";
|
|
213
|
-
}>>;
|
|
214
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
215
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
216
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
170
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
217
171
|
SENDGRID_API_KEY: z.ZodString;
|
|
218
172
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
219
173
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -222,6 +176,6 @@ declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
222
176
|
}>>;
|
|
223
177
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
224
178
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
225
|
-
}, z.core.$strip>>
|
|
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";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/shared.ts
|
|
2
|
+
function asRecord(value) {
|
|
3
|
+
return typeof value === "object" && value !== null ? value : {};
|
|
4
|
+
}
|
|
5
|
+
function stringIfPresent(value) {
|
|
6
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
7
|
+
}
|
|
8
|
+
function omitUndefined(value) {
|
|
9
|
+
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { omitUndefined as n, stringIfPresent as r, asRecord as t };
|
package/dist/stats.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/stats.d.ts
|
|
6
5
|
declare const getGlobalEmailStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -34,7 +33,7 @@ declare const getGlobalEmailStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
34
33
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
35
34
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
36
35
|
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
36
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
38
37
|
SENDGRID_API_KEY: z.ZodString;
|
|
39
38
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
40
39
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -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>;
|
|
@@ -85,16 +75,7 @@ declare const getCategoryStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
85
75
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
86
76
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
87
77
|
}, z.core.$strip>>;
|
|
88
|
-
}, z.core.$strip>>, 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<{
|
|
78
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
98
79
|
SENDGRID_API_KEY: z.ZodString;
|
|
99
80
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
100
81
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -103,28 +84,19 @@ declare const getCategoryStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
103
84
|
}>>;
|
|
104
85
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
105
86
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>>
|
|
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>;
|
|
117
98
|
_metadata: z.ZodOptional<z.ZodUnknown>;
|
|
118
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
119
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
120
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
121
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
122
|
-
global: "global";
|
|
123
|
-
eu: "eu";
|
|
124
|
-
}>>;
|
|
125
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
126
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
99
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
128
100
|
SENDGRID_API_KEY: z.ZodString;
|
|
129
101
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
130
102
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -133,7 +105,7 @@ declare const listAutomationStats: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
133
105
|
}>>;
|
|
134
106
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
135
107
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>>
|
|
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;
|
|
@@ -141,16 +113,7 @@ declare const getEngagementQualityScores: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
141
113
|
account_id: z.ZodOptional<z.ZodString>;
|
|
142
114
|
date: z.ZodOptional<z.ZodString>;
|
|
143
115
|
metrics: z.ZodOptional<z.ZodUnknown>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
145
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
146
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
147
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
148
|
-
global: "global";
|
|
149
|
-
eu: "eu";
|
|
150
|
-
}>>;
|
|
151
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
152
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
116
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
154
117
|
SENDGRID_API_KEY: z.ZodString;
|
|
155
118
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
156
119
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -159,7 +122,7 @@ declare const getEngagementQualityScores: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
159
122
|
}>>;
|
|
160
123
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
161
124
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.core.$strip>>
|
|
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>;
|
|
@@ -192,16 +155,7 @@ declare const listMailboxProviderStats: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
192
155
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
193
156
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
194
157
|
}, z.core.$strip>>;
|
|
195
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
196
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
197
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
198
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
199
|
-
global: "global";
|
|
200
|
-
eu: "eu";
|
|
201
|
-
}>>;
|
|
202
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
203
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
204
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
158
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
205
159
|
SENDGRID_API_KEY: z.ZodString;
|
|
206
160
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
207
161
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -210,6 +164,6 @@ declare const listMailboxProviderStats: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
210
164
|
}>>;
|
|
211
165
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
212
166
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>>
|
|
167
|
+
}, z.core.$strip>>], undefined>;
|
|
214
168
|
//#endregion
|
|
215
169
|
export { getCategoryStats, getEngagementQualityScores, getGlobalEmailStats, listAutomationStats, listMailboxProviderStats };
|
package/dist/stats.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 { F as sendgridAggregationSchema, I as sendgridAutomationStatsSchema, L as sendgridCategoryStatsSchema, R as sendgridEngagementQualitySchema, z as sendgridStatBucketListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|