@keystrokehq/sendgrid 0.0.1
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/README.md +225 -0
- package/dist/_official/index.d.mts +2 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +2 -0
- package/dist/_runtime/index.mjs +3 -0
- package/dist/alerts.d.mts +193 -0
- package/dist/alerts.mjs +101 -0
- package/dist/api-keys.d.mts +160 -0
- package/dist/api-keys.mjs +113 -0
- package/dist/client.d.mts +73 -0
- package/dist/client.mjs +261 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/domains.d.mts +114 -0
- package/dist/domains.mjs +62 -0
- package/dist/email-validation.d.mts +134 -0
- package/dist/email-validation.mjs +73 -0
- package/dist/events.d.mts +69 -0
- package/dist/events.mjs +28 -0
- package/dist/factory-BSL0D2L0.mjs +25 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-37BovSeK.mjs +23 -0
- package/dist/integration-CmJ2TILG.d.mts +57 -0
- package/dist/mail-send.d.mts +315 -0
- package/dist/mail-send.mjs +218 -0
- package/dist/marketing-contacts.d.mts +607 -0
- package/dist/marketing-contacts.mjs +277 -0
- package/dist/marketing-customfields.d.mts +94 -0
- package/dist/marketing-customfields.mjs +70 -0
- package/dist/marketing-lists.d.mts +184 -0
- package/dist/marketing-lists.mjs +130 -0
- package/dist/marketing-segments.d.mts +340 -0
- package/dist/marketing-segments.mjs +179 -0
- package/dist/marketing-singlesends.d.mts +648 -0
- package/dist/marketing-singlesends.mjs +277 -0
- package/dist/operations.d.mts +25 -0
- package/dist/operations.mjs +69 -0
- package/dist/schemas/index.d.mts +1395 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/sender-identities.d.mts +218 -0
- package/dist/sender-identities.mjs +109 -0
- package/dist/senders.d.mts +227 -0
- package/dist/senders.mjs +83 -0
- package/dist/shared-CQ8JFNXi.mjs +13 -0
- package/dist/stats.d.mts +215 -0
- package/dist/stats.mjs +107 -0
- package/dist/suppressions.d.mts +785 -0
- package/dist/suppressions.mjs +539 -0
- package/dist/templates.d.mts +451 -0
- package/dist/templates.mjs +238 -0
- package/dist/triggers.d.mts +35 -0
- package/dist/triggers.mjs +98 -0
- package/dist/user-account.d.mts +108 -0
- package/dist/user-account.mjs +59 -0
- package/dist/verification.d.mts +67 -0
- package/dist/verification.mjs +72 -0
- package/dist/webhooks/event.d.mts +287 -0
- package/dist/webhooks/event.mjs +147 -0
- package/dist/webhooks/parse.d.mts +172 -0
- package/dist/webhooks/parse.mjs +125 -0
- package/dist/webhooks-CKdsIikb.mjs +735 -0
- package/package.json +162 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
|
+
|
|
5
|
+
//#region src/webhooks/event.d.ts
|
|
6
|
+
declare const createEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
url: z.ZodString;
|
|
10
|
+
group_resubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
delivered: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
group_unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
spam_report: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
bounce: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
processed: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
click: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
dropped: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
oauth_client_id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
oauth_client_secret: z.ZodOptional<z.ZodString>;
|
|
23
|
+
oauth_token_url: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
27
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
url: z.ZodOptional<z.ZodString>;
|
|
29
|
+
group_resubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
delivered: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
group_unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
spam_report: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
bounce: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
processed: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
click: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
dropped: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
oauth_client_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
oauth_token_url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
43
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
44
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
45
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
global: "global";
|
|
47
|
+
eu: "eu";
|
|
48
|
+
}>>;
|
|
49
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
50
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
52
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
53
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
54
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
55
|
+
global: "global";
|
|
56
|
+
eu: "eu";
|
|
57
|
+
}>>;
|
|
58
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
59
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
61
|
+
declare const updateEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
62
|
+
friendly_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
63
|
+
enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
64
|
+
url: z.ZodOptional<z.ZodString>;
|
|
65
|
+
group_resubscribe: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
66
|
+
delivered: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
group_unsubscribe: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
68
|
+
spam_report: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
+
bounce: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
70
|
+
deferred: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
unsubscribe: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
72
|
+
processed: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
73
|
+
open: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
74
|
+
click: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
75
|
+
dropped: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
76
|
+
oauth_client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
77
|
+
oauth_client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
oauth_token_url: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
webhookId: z.ZodString;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
83
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
url: z.ZodOptional<z.ZodString>;
|
|
85
|
+
group_resubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
delivered: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
group_unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
spam_report: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
bounce: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
processed: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
click: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
dropped: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
oauth_client_id: z.ZodOptional<z.ZodString>;
|
|
97
|
+
oauth_token_url: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
99
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
100
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
101
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
102
|
+
global: "global";
|
|
103
|
+
eu: "eu";
|
|
104
|
+
}>>;
|
|
105
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
106
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
108
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
109
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
110
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
111
|
+
global: "global";
|
|
112
|
+
eu: "eu";
|
|
113
|
+
}>>;
|
|
114
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
115
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
117
|
+
declare const deleteEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
118
|
+
webhookId: z.ZodString;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
success: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
122
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
123
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
124
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
125
|
+
global: "global";
|
|
126
|
+
eu: "eu";
|
|
127
|
+
}>>;
|
|
128
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
129
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
131
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
132
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
133
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
134
|
+
global: "global";
|
|
135
|
+
eu: "eu";
|
|
136
|
+
}>>;
|
|
137
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
138
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
140
|
+
declare const listEventWebhooks: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
141
|
+
max_allowed: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
143
|
+
id: z.ZodOptional<z.ZodString>;
|
|
144
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
145
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
url: z.ZodOptional<z.ZodString>;
|
|
147
|
+
group_resubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
delivered: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
group_unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
spam_report: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
bounce: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
processed: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
click: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
dropped: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
oauth_client_id: z.ZodOptional<z.ZodString>;
|
|
159
|
+
oauth_token_url: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
161
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
162
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
163
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
164
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
165
|
+
global: "global";
|
|
166
|
+
eu: "eu";
|
|
167
|
+
}>>;
|
|
168
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
169
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
171
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
172
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
173
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
174
|
+
global: "global";
|
|
175
|
+
eu: "eu";
|
|
176
|
+
}>>;
|
|
177
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
178
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
180
|
+
declare const getEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
181
|
+
webhookId: z.ZodString;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
id: z.ZodOptional<z.ZodString>;
|
|
184
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
185
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
url: z.ZodOptional<z.ZodString>;
|
|
187
|
+
group_resubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
delivered: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
group_unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
spam_report: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
bounce: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
unsubscribe: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
processed: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
click: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
dropped: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
oauth_client_id: z.ZodOptional<z.ZodString>;
|
|
199
|
+
oauth_token_url: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
201
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
202
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
203
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
global: "global";
|
|
205
|
+
eu: "eu";
|
|
206
|
+
}>>;
|
|
207
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
208
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
210
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
211
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
212
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
213
|
+
global: "global";
|
|
214
|
+
eu: "eu";
|
|
215
|
+
}>>;
|
|
216
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
217
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
219
|
+
declare const getSignedPublicKey: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
220
|
+
public_key: z.ZodString;
|
|
221
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
222
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
223
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
224
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
225
|
+
global: "global";
|
|
226
|
+
eu: "eu";
|
|
227
|
+
}>>;
|
|
228
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
229
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
231
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
232
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
233
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
234
|
+
global: "global";
|
|
235
|
+
eu: "eu";
|
|
236
|
+
}>>;
|
|
237
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
238
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
240
|
+
declare const toggleWebhookSignature: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
241
|
+
enabled: z.ZodBoolean;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
enabled: z.ZodBoolean;
|
|
244
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
245
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
246
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
247
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
248
|
+
global: "global";
|
|
249
|
+
eu: "eu";
|
|
250
|
+
}>>;
|
|
251
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
252
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
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>;
|
|
263
|
+
declare const testEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
264
|
+
url: z.ZodString;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
success: z.ZodBoolean;
|
|
267
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
268
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
269
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
270
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
271
|
+
global: "global";
|
|
272
|
+
eu: "eu";
|
|
273
|
+
}>>;
|
|
274
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
275
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
277
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
278
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
279
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
280
|
+
global: "global";
|
|
281
|
+
eu: "eu";
|
|
282
|
+
}>>;
|
|
283
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
284
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
286
|
+
//#endregion
|
|
287
|
+
export { createEventWebhook, deleteEventWebhook, getEventWebhook, getSignedPublicKey, listEventWebhooks, testEventWebhook, toggleWebhookSignature, updateEventWebhook };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "../factory-BSL0D2L0.mjs";
|
|
2
|
+
import { n as omitUndefined } from "../shared-CQ8JFNXi.mjs";
|
|
3
|
+
import { createSendGridClient } from "../client.mjs";
|
|
4
|
+
import { d as sendgridSignedPublicKeySchema, i as sendgridEventWebhookSettingsSchema, n as sendgridEventWebhookListSchema, u as sendgridSignatureToggleSchema } from "../webhooks-CKdsIikb.mjs";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
7
|
+
//#region src/webhooks/event.ts
|
|
8
|
+
var event_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
createEventWebhook: () => createEventWebhook,
|
|
10
|
+
deleteEventWebhook: () => deleteEventWebhook,
|
|
11
|
+
getEventWebhook: () => getEventWebhook,
|
|
12
|
+
getSignedPublicKey: () => getSignedPublicKey,
|
|
13
|
+
listEventWebhooks: () => listEventWebhooks,
|
|
14
|
+
testEventWebhook: () => testEventWebhook,
|
|
15
|
+
toggleWebhookSignature: () => toggleWebhookSignature,
|
|
16
|
+
updateEventWebhook: () => updateEventWebhook
|
|
17
|
+
});
|
|
18
|
+
const webhookId = z.string().min(1);
|
|
19
|
+
const eventWebhookInputSchema = z.object({
|
|
20
|
+
friendly_name: z.string().optional(),
|
|
21
|
+
enabled: z.boolean().optional(),
|
|
22
|
+
url: z.string().url(),
|
|
23
|
+
group_resubscribe: z.boolean().optional(),
|
|
24
|
+
delivered: z.boolean().optional(),
|
|
25
|
+
group_unsubscribe: z.boolean().optional(),
|
|
26
|
+
spam_report: z.boolean().optional(),
|
|
27
|
+
bounce: z.boolean().optional(),
|
|
28
|
+
deferred: z.boolean().optional(),
|
|
29
|
+
unsubscribe: z.boolean().optional(),
|
|
30
|
+
processed: z.boolean().optional(),
|
|
31
|
+
open: z.boolean().optional(),
|
|
32
|
+
click: z.boolean().optional(),
|
|
33
|
+
dropped: z.boolean().optional(),
|
|
34
|
+
oauth_client_id: z.string().optional(),
|
|
35
|
+
oauth_client_secret: z.string().optional(),
|
|
36
|
+
oauth_token_url: z.string().optional()
|
|
37
|
+
});
|
|
38
|
+
const createEventWebhook = sendgridOperation({
|
|
39
|
+
id: "create_event_webhook",
|
|
40
|
+
name: "Create Event Webhook",
|
|
41
|
+
description: "Register a new Event Webhook endpoint.",
|
|
42
|
+
input: eventWebhookInputSchema,
|
|
43
|
+
output: sendgridEventWebhookSettingsSchema,
|
|
44
|
+
needsApproval: true,
|
|
45
|
+
run: async (input, credentials) => {
|
|
46
|
+
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings", {
|
|
47
|
+
method: "POST",
|
|
48
|
+
body: omitUndefined(input)
|
|
49
|
+
});
|
|
50
|
+
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const updateEventWebhook = sendgridOperation({
|
|
54
|
+
id: "update_event_webhook",
|
|
55
|
+
name: "Update Event Webhook",
|
|
56
|
+
description: "Update an Event Webhook endpoint.",
|
|
57
|
+
input: eventWebhookInputSchema.partial().extend({ webhookId }),
|
|
58
|
+
output: sendgridEventWebhookSettingsSchema,
|
|
59
|
+
needsApproval: true,
|
|
60
|
+
run: async (input, credentials) => {
|
|
61
|
+
const client = createSendGridClient(credentials);
|
|
62
|
+
const { webhookId: id, ...rest } = input;
|
|
63
|
+
const response = await client.request(`/user/webhooks/event/settings/${encodeURIComponent(id)}`, {
|
|
64
|
+
method: "PATCH",
|
|
65
|
+
body: omitUndefined(rest)
|
|
66
|
+
});
|
|
67
|
+
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const deleteEventWebhook = sendgridOperation({
|
|
71
|
+
id: "delete_event_webhook",
|
|
72
|
+
name: "Delete Event Webhook",
|
|
73
|
+
description: "Delete an Event Webhook endpoint.",
|
|
74
|
+
input: z.object({ webhookId }),
|
|
75
|
+
output: z.object({ success: z.boolean() }),
|
|
76
|
+
needsApproval: true,
|
|
77
|
+
run: async (input, credentials) => {
|
|
78
|
+
await createSendGridClient(credentials).request(`/user/webhooks/event/settings/${encodeURIComponent(input.webhookId)}`, { method: "DELETE" });
|
|
79
|
+
return { success: true };
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const listEventWebhooks = sendgridOperation({
|
|
83
|
+
id: "list_event_webhooks",
|
|
84
|
+
name: "List Event Webhooks",
|
|
85
|
+
description: "List all Event Webhook endpoints configured on the account.",
|
|
86
|
+
input: z.object({}).optional(),
|
|
87
|
+
output: sendgridEventWebhookListSchema,
|
|
88
|
+
run: async (_input, credentials) => {
|
|
89
|
+
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/all");
|
|
90
|
+
return sendgridEventWebhookListSchema.parse(response ?? { webhooks: [] });
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const getEventWebhook = sendgridOperation({
|
|
94
|
+
id: "get_event_webhook",
|
|
95
|
+
name: "Get Event Webhook",
|
|
96
|
+
description: "Retrieve a single Event Webhook endpoint by ID.",
|
|
97
|
+
input: z.object({ webhookId }),
|
|
98
|
+
output: sendgridEventWebhookSettingsSchema,
|
|
99
|
+
run: async (input, credentials) => {
|
|
100
|
+
const response = await createSendGridClient(credentials).request(`/user/webhooks/event/settings/${encodeURIComponent(input.webhookId)}`);
|
|
101
|
+
return sendgridEventWebhookSettingsSchema.parse(response);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
const getSignedPublicKey = sendgridOperation({
|
|
105
|
+
id: "get_signed_public_key",
|
|
106
|
+
name: "Get Signed Event Webhook Public Key",
|
|
107
|
+
description: "Retrieve the Ed25519 public key used to verify signed Event Webhook POSTs. Cache + rotate on `toggle_webhook_signature`.",
|
|
108
|
+
input: z.object({}).optional(),
|
|
109
|
+
output: sendgridSignedPublicKeySchema,
|
|
110
|
+
run: async (_input, credentials) => {
|
|
111
|
+
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/signed");
|
|
112
|
+
return sendgridSignedPublicKeySchema.parse(response);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
const toggleWebhookSignature = sendgridOperation({
|
|
116
|
+
id: "toggle_webhook_signature",
|
|
117
|
+
name: "Toggle Webhook Signature",
|
|
118
|
+
description: "Enable or disable Ed25519 signing on Event Webhook deliveries.",
|
|
119
|
+
input: z.object({ enabled: z.boolean() }),
|
|
120
|
+
output: sendgridSignatureToggleSchema,
|
|
121
|
+
needsApproval: true,
|
|
122
|
+
run: async (input, credentials) => {
|
|
123
|
+
const response = await createSendGridClient(credentials).request("/user/webhooks/event/settings/signed", {
|
|
124
|
+
method: "PATCH",
|
|
125
|
+
body: { enabled: input.enabled }
|
|
126
|
+
});
|
|
127
|
+
return sendgridSignatureToggleSchema.parse(response);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const testEventWebhook = sendgridOperation({
|
|
131
|
+
id: "test_event_webhook",
|
|
132
|
+
name: "Test Event Webhook",
|
|
133
|
+
description: "Ask SendGrid to POST a test payload to the configured Event Webhook URL.",
|
|
134
|
+
input: z.object({ url: z.string().url() }),
|
|
135
|
+
output: z.object({ success: z.boolean() }),
|
|
136
|
+
needsApproval: true,
|
|
137
|
+
run: async (input, credentials) => {
|
|
138
|
+
await createSendGridClient(credentials).request("/user/webhooks/event/test", {
|
|
139
|
+
method: "POST",
|
|
140
|
+
body: { url: input.url }
|
|
141
|
+
});
|
|
142
|
+
return { success: true };
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
export { createEventWebhook, deleteEventWebhook, getEventWebhook, getSignedPublicKey, listEventWebhooks, event_exports as t, testEventWebhook, toggleWebhookSignature, updateEventWebhook };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
|
+
|
|
5
|
+
//#region src/webhooks/parse.d.ts
|
|
6
|
+
declare const createParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
hostname: z.ZodString;
|
|
9
|
+
spamCheck: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
sendRaw: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
hostname: z.ZodString;
|
|
14
|
+
spam_check: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
send_raw: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
17
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
18
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
19
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
20
|
+
global: "global";
|
|
21
|
+
eu: "eu";
|
|
22
|
+
}>>;
|
|
23
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
24
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
26
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
27
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
28
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
global: "global";
|
|
30
|
+
eu: "eu";
|
|
31
|
+
}>>;
|
|
32
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
33
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
35
|
+
declare const updateParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
+
url: z.ZodOptional<z.ZodString>;
|
|
37
|
+
spamCheck: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
38
|
+
sendRaw: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
39
|
+
hostname: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
hostname: z.ZodString;
|
|
43
|
+
spam_check: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
send_raw: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
46
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
47
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
48
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
49
|
+
global: "global";
|
|
50
|
+
eu: "eu";
|
|
51
|
+
}>>;
|
|
52
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
53
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
55
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
56
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
57
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
58
|
+
global: "global";
|
|
59
|
+
eu: "eu";
|
|
60
|
+
}>>;
|
|
61
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
62
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
64
|
+
declare const deleteParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
65
|
+
hostname: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
success: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
69
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
70
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
71
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
72
|
+
global: "global";
|
|
73
|
+
eu: "eu";
|
|
74
|
+
}>>;
|
|
75
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
76
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
78
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
79
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
80
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
global: "global";
|
|
82
|
+
eu: "eu";
|
|
83
|
+
}>>;
|
|
84
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
85
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
87
|
+
declare const listParseSettings: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
88
|
+
result: z.ZodArray<z.ZodObject<{
|
|
89
|
+
url: z.ZodOptional<z.ZodString>;
|
|
90
|
+
hostname: z.ZodString;
|
|
91
|
+
spam_check: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
send_raw: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
94
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
95
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
96
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
97
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
98
|
+
global: "global";
|
|
99
|
+
eu: "eu";
|
|
100
|
+
}>>;
|
|
101
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
102
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>>[] | undefined>], undefined>;
|
|
113
|
+
declare const getParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
114
|
+
hostname: z.ZodString;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
url: z.ZodOptional<z.ZodString>;
|
|
117
|
+
hostname: z.ZodString;
|
|
118
|
+
spam_check: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
send_raw: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
121
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
122
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
123
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
124
|
+
global: "global";
|
|
125
|
+
eu: "eu";
|
|
126
|
+
}>>;
|
|
127
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
128
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
130
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
131
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
132
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
133
|
+
global: "global";
|
|
134
|
+
eu: "eu";
|
|
135
|
+
}>>;
|
|
136
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
137
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
139
|
+
declare const getParseStats: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{
|
|
140
|
+
startDate: z.ZodOptional<z.ZodISODate>;
|
|
141
|
+
endDate: z.ZodOptional<z.ZodISODate>;
|
|
142
|
+
aggregatedBy: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
day: "day";
|
|
144
|
+
week: "week";
|
|
145
|
+
month: "month";
|
|
146
|
+
}>>;
|
|
147
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
150
|
+
date: z.ZodString;
|
|
151
|
+
stats: z.ZodArray<z.ZodUnknown>;
|
|
152
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
153
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
154
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
155
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
global: "global";
|
|
157
|
+
eu: "eu";
|
|
158
|
+
}>>;
|
|
159
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
160
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
162
|
+
SENDGRID_API_KEY: z.ZodString;
|
|
163
|
+
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
164
|
+
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
165
|
+
global: "global";
|
|
166
|
+
eu: "eu";
|
|
167
|
+
}>>;
|
|
168
|
+
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
169
|
+
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
171
|
+
//#endregion
|
|
172
|
+
export { createParseSetting, deleteParseSetting, getParseSetting, getParseStats, listParseSettings, updateParseSetting };
|