@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as sendgridOfficialIntegration, r as sendgridBundle } from "../integration-
|
|
1
|
+
import { i as sendgridOfficialIntegration, r as sendgridBundle } from "../integration-Cj4Xzfq_.mjs";
|
|
2
2
|
export { sendgridBundle, sendgridOfficialIntegration };
|
package/dist/_official/index.mjs
CHANGED
package/dist/alerts.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/alerts.d.ts
|
|
6
5
|
declare const createAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -30,7 +29,7 @@ declare const createAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
30
29
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
31
30
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
32
31
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
32
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
34
33
|
SENDGRID_API_KEY: z.ZodString;
|
|
35
34
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
36
35
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -39,16 +38,7 @@ declare const createAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
39
38
|
}>>;
|
|
40
39
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
41
40
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, z.core.$strip
|
|
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>>[] | undefined>], undefined>;
|
|
41
|
+
}, z.core.$strip>>], undefined>;
|
|
52
42
|
declare const updateAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
53
43
|
type: z.ZodOptional<z.ZodEnum<{
|
|
54
44
|
usage_limit: "usage_limit";
|
|
@@ -77,7 +67,7 @@ declare const updateAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
77
67
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
78
68
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
79
69
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
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 updateAlert: _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 deleteAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
100
81
|
alertId: z.ZodNumber;
|
|
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 deleteAlert: _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 getAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
123
95
|
alertId: z.ZodNumber;
|
|
124
96
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -136,7 +108,7 @@ declare const getAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
136
108
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
137
109
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
138
110
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
111
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
140
112
|
SENDGRID_API_KEY: z.ZodString;
|
|
141
113
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
142
114
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -145,16 +117,7 @@ declare const getAlert: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
145
117
|
}>>;
|
|
146
118
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
147
119
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
148
|
-
}, z.core.$strip
|
|
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>>[] | undefined>], undefined>;
|
|
120
|
+
}, z.core.$strip>>], undefined>;
|
|
158
121
|
declare const listAlerts: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
159
122
|
id: z.ZodNumber;
|
|
160
123
|
type: z.ZodEnum<{
|
|
@@ -170,16 +133,7 @@ declare const listAlerts: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject
|
|
|
170
133
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
171
134
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
172
135
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
174
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
175
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
176
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
177
|
-
global: "global";
|
|
178
|
-
eu: "eu";
|
|
179
|
-
}>>;
|
|
180
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
181
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
136
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
183
137
|
SENDGRID_API_KEY: z.ZodString;
|
|
184
138
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
185
139
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -188,6 +142,6 @@ declare const listAlerts: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject
|
|
|
188
142
|
}>>;
|
|
189
143
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
190
144
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>>
|
|
145
|
+
}, z.core.$strip>>], undefined>;
|
|
192
146
|
//#endregion
|
|
193
147
|
export { createAlert, deleteAlert, getAlert, listAlerts, updateAlert };
|
package/dist/alerts.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 { $t as sendgridAlertFrequencySchema, en as sendgridAlertListSchema, in as sendgridEmailSchema, nn as sendgridAlertTypeSchema, tn as sendgridAlertSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/api-keys.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/api-keys.d.ts
|
|
6
5
|
declare const createApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -11,7 +10,7 @@ declare const createApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
11
10
|
name: z.ZodString;
|
|
12
11
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
12
|
api_key: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
13
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
15
14
|
SENDGRID_API_KEY: z.ZodString;
|
|
16
15
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
17
16
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -20,23 +19,14 @@ declare const createApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
20
19
|
}>>;
|
|
21
20
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
22
21
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip
|
|
24
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
25
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
26
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
global: "global";
|
|
28
|
-
eu: "eu";
|
|
29
|
-
}>>;
|
|
30
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
31
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
22
|
+
}, z.core.$strip>>], undefined>;
|
|
33
23
|
declare const listApiKeys: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
34
24
|
result: z.ZodArray<z.ZodObject<{
|
|
35
25
|
api_key_id: z.ZodString;
|
|
36
26
|
name: z.ZodString;
|
|
37
27
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
28
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
39
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
29
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
40
30
|
SENDGRID_API_KEY: z.ZodString;
|
|
41
31
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
42
32
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -45,32 +35,14 @@ declare const listApiKeys: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
45
35
|
}>>;
|
|
46
36
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
47
37
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip
|
|
49
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
50
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
51
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
52
|
-
global: "global";
|
|
53
|
-
eu: "eu";
|
|
54
|
-
}>>;
|
|
55
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
56
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
38
|
+
}, z.core.$strip>>], undefined>;
|
|
58
39
|
declare const getApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
59
40
|
apiKeyId: z.ZodString;
|
|
60
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
61
42
|
api_key_id: z.ZodString;
|
|
62
43
|
name: z.ZodString;
|
|
63
44
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
65
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
66
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
67
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
68
|
-
global: "global";
|
|
69
|
-
eu: "eu";
|
|
70
|
-
}>>;
|
|
71
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
72
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
73
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
45
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
74
46
|
SENDGRID_API_KEY: z.ZodString;
|
|
75
47
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
76
48
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -79,7 +51,7 @@ declare const getApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
79
51
|
}>>;
|
|
80
52
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
81
53
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>>
|
|
54
|
+
}, z.core.$strip>>], undefined>;
|
|
83
55
|
declare const updateApiKeyName: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
84
56
|
apiKeyId: z.ZodString;
|
|
85
57
|
name: z.ZodString;
|
|
@@ -87,7 +59,7 @@ declare const updateApiKeyName: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
87
59
|
api_key_id: z.ZodString;
|
|
88
60
|
name: z.ZodString;
|
|
89
61
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
62
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
91
63
|
SENDGRID_API_KEY: z.ZodString;
|
|
92
64
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
93
65
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -96,16 +68,7 @@ declare const updateApiKeyName: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
96
68
|
}>>;
|
|
97
69
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
98
70
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$strip
|
|
100
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
101
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
102
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
103
|
-
global: "global";
|
|
104
|
-
eu: "eu";
|
|
105
|
-
}>>;
|
|
106
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
107
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
108
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
71
|
+
}, z.core.$strip>>], undefined>;
|
|
109
72
|
declare const updateApiKeyNameAndScopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
110
73
|
apiKeyId: z.ZodString;
|
|
111
74
|
name: z.ZodString;
|
|
@@ -114,7 +77,7 @@ declare const updateApiKeyNameAndScopes: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
114
77
|
api_key_id: z.ZodString;
|
|
115
78
|
name: z.ZodString;
|
|
116
79
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
80
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
118
81
|
SENDGRID_API_KEY: z.ZodString;
|
|
119
82
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
120
83
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -123,30 +86,12 @@ declare const updateApiKeyNameAndScopes: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
123
86
|
}>>;
|
|
124
87
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
125
88
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, z.core.$strip
|
|
127
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
128
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
129
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
130
|
-
global: "global";
|
|
131
|
-
eu: "eu";
|
|
132
|
-
}>>;
|
|
133
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
134
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
89
|
+
}, z.core.$strip>>], undefined>;
|
|
136
90
|
declare const deleteApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
137
91
|
apiKeyId: z.ZodString;
|
|
138
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
93
|
success: z.ZodBoolean;
|
|
140
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
141
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
142
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
143
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
144
|
-
global: "global";
|
|
145
|
-
eu: "eu";
|
|
146
|
-
}>>;
|
|
147
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
148
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
149
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
94
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
150
95
|
SENDGRID_API_KEY: z.ZodString;
|
|
151
96
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
152
97
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -155,6 +100,6 @@ declare const deleteApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
155
100
|
}>>;
|
|
156
101
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
157
102
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
158
|
-
}, z.core.$strip>>
|
|
103
|
+
}, z.core.$strip>>], undefined>;
|
|
159
104
|
//#endregion
|
|
160
105
|
export { createApiKey, deleteApiKey, getApiKey, listApiKeys, updateApiKeyName, updateApiKeyNameAndScopes };
|
package/dist/api-keys.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 { Qt as sendgridApiKeyWithKeySchema, Xt as sendgridApiKeySchema, Yt as sendgridApiKeyListSchema, on as sendgridIdSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { t as sendgrid } from "./integration-
|
|
2
|
-
import {
|
|
1
|
+
import { t as sendgrid } from "./integration-DHWfpe0w.mjs";
|
|
2
|
+
import { r as stringIfPresent, t as asRecord } from "./shared-CQ8JFNXi.mjs";
|
|
3
3
|
import { CredentialRevokedError } from "@keystrokehq/core/errors";
|
|
4
|
+
import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
|
|
4
5
|
|
|
5
6
|
//#region src/client.ts
|
|
6
7
|
const SENDGRID_GLOBAL_BASE = "https://api.sendgrid.com/v3";
|
package/dist/connection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as sendgridOfficialIntegration, n as sendgrid, t as SendGridCredentials } from "./integration-
|
|
1
|
+
import { i as sendgridOfficialIntegration, n as sendgrid, t as SendGridCredentials } from "./integration-Cj4Xzfq_.mjs";
|
|
2
2
|
export { type SendGridCredentials, sendgrid, sendgridOfficialIntegration };
|
package/dist/connection.mjs
CHANGED
package/dist/domains.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/domains.d.ts
|
|
6
5
|
declare const listAuthenticatedDomains: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{
|
|
@@ -27,7 +26,7 @@ declare const listAuthenticatedDomains: _keystrokehq_core0.Operation<z.ZodOption
|
|
|
27
26
|
host: z.ZodOptional<z.ZodString>;
|
|
28
27
|
data: z.ZodOptional<z.ZodString>;
|
|
29
28
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
30
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
29
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
31
30
|
SENDGRID_API_KEY: z.ZodString;
|
|
32
31
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
33
32
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -36,16 +35,7 @@ declare const listAuthenticatedDomains: _keystrokehq_core0.Operation<z.ZodOption
|
|
|
36
35
|
}>>;
|
|
37
36
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
38
37
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip
|
|
40
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
41
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
42
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
43
|
-
global: "global";
|
|
44
|
-
eu: "eu";
|
|
45
|
-
}>>;
|
|
46
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
47
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
38
|
+
}, z.core.$strip>>], undefined>;
|
|
49
39
|
declare const getAuthenticatedDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
50
40
|
domainId: z.ZodNumber;
|
|
51
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -66,16 +56,7 @@ declare const getAuthenticatedDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
66
56
|
host: z.ZodOptional<z.ZodString>;
|
|
67
57
|
data: z.ZodOptional<z.ZodString>;
|
|
68
58
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
69
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
70
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
71
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
72
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
73
|
-
global: "global";
|
|
74
|
-
eu: "eu";
|
|
75
|
-
}>>;
|
|
76
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
77
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
59
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
79
60
|
SENDGRID_API_KEY: z.ZodString;
|
|
80
61
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
81
62
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -84,23 +65,14 @@ declare const getAuthenticatedDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
84
65
|
}>>;
|
|
85
66
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
86
67
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>>
|
|
68
|
+
}, z.core.$strip>>], undefined>;
|
|
88
69
|
declare const validateAuthenticatedDomain: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
89
70
|
domainId: z.ZodNumber;
|
|
90
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
91
72
|
id: z.ZodNumber;
|
|
92
73
|
valid: z.ZodBoolean;
|
|
93
74
|
validation_results: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
-
}, z.core.$catchall<z.ZodUnknown>>, 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<{
|
|
75
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
104
76
|
SENDGRID_API_KEY: z.ZodString;
|
|
105
77
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
106
78
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -109,6 +81,6 @@ declare const validateAuthenticatedDomain: _keystrokehq_core0.Operation<z.ZodObj
|
|
|
109
81
|
}>>;
|
|
110
82
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
111
83
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$strip>>
|
|
84
|
+
}, z.core.$strip>>], undefined>;
|
|
113
85
|
//#endregion
|
|
114
86
|
export { getAuthenticatedDomain, listAuthenticatedDomains, validateAuthenticatedDomain };
|
package/dist/domains.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 { At as sendgridAuthenticatedDomainListSchema, Nt as sendgridDomainValidateResultSchema, jt as sendgridAuthenticatedDomainSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -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/email-validation.d.ts
|
|
6
5
|
declare const validateEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -22,16 +21,7 @@ declare const validateEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
22
21
|
source: z.ZodOptional<z.ZodString>;
|
|
23
22
|
ip_address: z.ZodOptional<z.ZodString>;
|
|
24
23
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
25
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", 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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
24
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
35
25
|
SENDGRID_API_KEY: z.ZodString;
|
|
36
26
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
37
27
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -40,7 +30,7 @@ declare const validateEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
40
30
|
}>>;
|
|
41
31
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
42
32
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strip>>
|
|
33
|
+
}, z.core.$strip>>], undefined>;
|
|
44
34
|
declare const listBulkEmailValidationJobs: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
45
35
|
result: z.ZodArray<z.ZodObject<{
|
|
46
36
|
id: z.ZodString;
|
|
@@ -51,16 +41,7 @@ declare const listBulkEmailValidationJobs: _keystrokehq_core0.Operation<z.ZodOpt
|
|
|
51
41
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
52
42
|
submitted_at: z.ZodOptional<z.ZodString>;
|
|
53
43
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
54
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", 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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
64
45
|
SENDGRID_API_KEY: z.ZodString;
|
|
65
46
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
66
47
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -69,7 +50,7 @@ declare const listBulkEmailValidationJobs: _keystrokehq_core0.Operation<z.ZodOpt
|
|
|
69
50
|
}>>;
|
|
70
51
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
71
52
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strip>>
|
|
53
|
+
}, z.core.$strip>>], undefined>;
|
|
73
54
|
declare const getBulkEmailValidationJob: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
74
55
|
jobId: z.ZodString;
|
|
75
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -80,7 +61,7 @@ declare const getBulkEmailValidationJob: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
80
61
|
started_at: z.ZodOptional<z.ZodString>;
|
|
81
62
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
82
63
|
submitted_at: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
64
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
84
65
|
SENDGRID_API_KEY: z.ZodString;
|
|
85
66
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
86
67
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -89,20 +70,11 @@ declare const getBulkEmailValidationJob: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
89
70
|
}>>;
|
|
90
71
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
91
72
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, z.core.$strip
|
|
93
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
94
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
95
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
96
|
-
global: "global";
|
|
97
|
-
eu: "eu";
|
|
98
|
-
}>>;
|
|
99
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
100
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
73
|
+
}, z.core.$strip>>], undefined>;
|
|
102
74
|
declare const createBulkEmailValidationPresignedUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
103
75
|
fileType: z.ZodDefault<z.ZodEnum<{
|
|
104
|
-
zip: "zip";
|
|
105
76
|
csv: "csv";
|
|
77
|
+
zip: "zip";
|
|
106
78
|
}>>;
|
|
107
79
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
80
|
job_id: z.ZodString;
|
|
@@ -111,16 +83,7 @@ declare const createBulkEmailValidationPresignedUrl: _keystrokehq_core0.Operatio
|
|
|
111
83
|
header: z.ZodString;
|
|
112
84
|
value: z.ZodString;
|
|
113
85
|
}, z.core.$strip>>;
|
|
114
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
115
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
116
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
117
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
118
|
-
global: "global";
|
|
119
|
-
eu: "eu";
|
|
120
|
-
}>>;
|
|
121
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
122
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
86
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
124
87
|
SENDGRID_API_KEY: z.ZodString;
|
|
125
88
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
126
89
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -129,6 +92,6 @@ declare const createBulkEmailValidationPresignedUrl: _keystrokehq_core0.Operatio
|
|
|
129
92
|
}>>;
|
|
130
93
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
131
94
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>>
|
|
95
|
+
}, z.core.$strip>>], undefined>;
|
|
133
96
|
//#endregion
|
|
134
97
|
export { createBulkEmailValidationPresignedUrl, getBulkEmailValidationJob, listBulkEmailValidationJobs, validateEmail };
|
|
@@ -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 { Dt as sendgridEmailValidationResponseSchema, Et as sendgridBulkEmailValidationPresignedUrlSchema, Tt as sendgridBulkEmailValidationJobSchema, in as sendgridEmailSchema, on as sendgridIdSchema, wt as sendgridBulkEmailValidationJobListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as sendgrid } from "./integration-DHWfpe0w.mjs";
|
|
2
|
+
import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
|
|
2
3
|
|
|
3
4
|
//#region \0rolldown/runtime.js
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
5
|
|
|
6
6
|
//#region src/integration.d.ts
|
|
@@ -8,6 +8,7 @@ declare const sendgridOfficialIntegration: {
|
|
|
8
8
|
id: "sendgrid";
|
|
9
9
|
name: string;
|
|
10
10
|
description: string;
|
|
11
|
+
credentialType: "manual";
|
|
11
12
|
auth: z.ZodObject<{
|
|
12
13
|
SENDGRID_API_KEY: z.ZodString;
|
|
13
14
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
@@ -22,7 +23,7 @@ declare const sendgridOfficialIntegration: {
|
|
|
22
23
|
hosts: string[];
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
|
-
declare const sendgridBundle:
|
|
26
|
+
declare const sendgridBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"sendgrid", z.ZodObject<{
|
|
26
27
|
SENDGRID_API_KEY: z.ZodString;
|
|
27
28
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
28
29
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -32,7 +33,7 @@ declare const sendgridBundle: undefined<"sendgrid", z.ZodObject<{
|
|
|
32
33
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
33
34
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
34
35
|
}, z.core.$strip>>;
|
|
35
|
-
declare const sendgrid: _keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
36
|
+
declare const sendgrid: _keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
|
|
36
37
|
SENDGRID_API_KEY: z.ZodString;
|
|
37
38
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
38
39
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -41,16 +42,7 @@ declare const sendgrid: _keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject
|
|
|
41
42
|
}>>;
|
|
42
43
|
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
43
44
|
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip
|
|
45
|
-
SENDGRID_API_KEY: z.ZodString;
|
|
46
|
-
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
47
|
-
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
48
|
-
global: "global";
|
|
49
|
-
eu: "eu";
|
|
50
|
-
}>>;
|
|
51
|
-
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.ZodOptional<z.ZodString>;
|
|
52
|
-
SENDGRID_INBOUND_PARSE_TOKEN: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>>[] | undefined>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
54
46
|
type SendGridCredentials = InferCredentialSetAuth<typeof sendgrid>;
|
|
55
47
|
//#endregion
|
|
56
48
|
export { sendgridOfficialIntegration as i, sendgrid as n, sendgridBundle as r, SendGridCredentials as t };
|