@keystrokehq/sendgrid 0.0.8 → 0.0.9
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 +6 -6
- package/dist/alerts.mjs +2 -2
- package/dist/api-keys.d.mts +7 -7
- package/dist/api-keys.mjs +2 -2
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +2 -3
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/domains.d.mts +4 -4
- package/dist/domains.mjs +2 -2
- package/dist/email-validation.d.mts +6 -6
- package/dist/email-validation.mjs +2 -2
- package/dist/{factory-BSL0D2L0.mjs → factory-CToXR1jp.mjs} +1 -2
- package/dist/integration-C9EALG65.mjs +113 -0
- package/dist/{integration-DpbPKcSF.d.mts → integration-zx-jmybs.d.mts} +3 -4
- package/dist/mail-send.d.mts +9 -9
- package/dist/mail-send.mjs +2 -2
- package/dist/marketing-contacts.d.mts +17 -17
- package/dist/marketing-contacts.mjs +2 -2
- package/dist/marketing-customfields.d.mts +4 -4
- package/dist/marketing-customfields.mjs +1 -1
- package/dist/marketing-lists.d.mts +8 -8
- package/dist/marketing-lists.mjs +2 -2
- package/dist/marketing-segments.d.mts +11 -11
- package/dist/marketing-segments.mjs +2 -2
- package/dist/marketing-singlesends.d.mts +17 -17
- package/dist/marketing-singlesends.mjs +2 -2
- package/dist/sender-identities.d.mts +7 -7
- package/dist/sender-identities.mjs +1 -1
- package/dist/senders.d.mts +6 -6
- package/dist/senders.mjs +1 -1
- package/dist/shared-BayZ0Lt6.mjs +46 -0
- package/dist/stats.d.mts +6 -6
- package/dist/stats.mjs +2 -2
- package/dist/suppressions.d.mts +32 -32
- package/dist/suppressions.mjs +2 -2
- package/dist/templates.d.mts +12 -12
- package/dist/templates.mjs +2 -2
- package/dist/user-account.d.mts +5 -5
- package/dist/user-account.mjs +1 -1
- package/dist/webhooks/event.d.mts +9 -9
- package/dist/webhooks/event.mjs +2 -2
- package/dist/webhooks/parse.d.mts +7 -7
- package/dist/webhooks/parse.mjs +2 -2
- package/package.json +4 -4
- package/dist/integration-37BovSeK.mjs +0 -23
- package/dist/shared-CQ8JFNXi.mjs +0 -13
package/dist/senders.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/senders.d.ts
|
|
6
6
|
declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const createSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
40
40
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
41
41
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
42
42
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
43
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
44
44
|
SENDGRID_API_KEY: z.ZodString;
|
|
45
45
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
46
46
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -97,7 +97,7 @@ declare const updateSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
97
97
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
98
98
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
100
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
101
101
|
SENDGRID_API_KEY: z.ZodString;
|
|
102
102
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
103
103
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -120,7 +120,7 @@ declare const deleteSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
120
120
|
senderId: z.ZodNumber;
|
|
121
121
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
122
|
success: z.ZodBoolean;
|
|
123
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
123
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
124
124
|
SENDGRID_API_KEY: z.ZodString;
|
|
125
125
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
126
126
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -162,7 +162,7 @@ declare const getSender: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
162
162
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
163
163
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
164
164
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
165
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
166
166
|
SENDGRID_API_KEY: z.ZodString;
|
|
167
167
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
168
168
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -204,7 +204,7 @@ declare const listSenders: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
204
204
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
205
205
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
206
206
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
207
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
207
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
208
208
|
SENDGRID_API_KEY: z.ZodString;
|
|
209
209
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
210
210
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
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-CToXR1jp.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,46 @@
|
|
|
1
|
+
import { Operation } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import "@keystrokehq/core/trigger";
|
|
4
|
+
|
|
5
|
+
//#region ../../packages/integration-authoring/dist/index.mjs
|
|
6
|
+
function isThenable(value) {
|
|
7
|
+
return !!value && typeof value === "object" && "then" in value && typeof value.then === "function";
|
|
8
|
+
}
|
|
9
|
+
function createErrorNormalizingProxy(target, normalizeError, path = []) {
|
|
10
|
+
return new Proxy(target, { get(obj, property, receiver) {
|
|
11
|
+
const value = Reflect.get(obj, property, receiver);
|
|
12
|
+
if (typeof value === "function") return (...args) => {
|
|
13
|
+
try {
|
|
14
|
+
const result = value.apply(obj, args);
|
|
15
|
+
if (isThenable(result)) return result.then(void 0, (error) => {
|
|
16
|
+
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
17
|
+
});
|
|
18
|
+
return result;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
if (value && typeof value === "object") return createErrorNormalizingProxy(value, normalizeError, [...path, String(property)]);
|
|
24
|
+
return value;
|
|
25
|
+
} });
|
|
26
|
+
}
|
|
27
|
+
const IntegrationConfigSchema = z.object({
|
|
28
|
+
id: z.string().min(1),
|
|
29
|
+
name: z.string().min(1),
|
|
30
|
+
description: z.string().optional()
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/shared.ts
|
|
35
|
+
function asRecord(value) {
|
|
36
|
+
return typeof value === "object" && value !== null ? value : {};
|
|
37
|
+
}
|
|
38
|
+
function stringIfPresent(value) {
|
|
39
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
40
|
+
}
|
|
41
|
+
function omitUndefined(value) {
|
|
42
|
+
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { createErrorNormalizingProxy as i, omitUndefined as n, stringIfPresent as r, asRecord as t };
|
package/dist/stats.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/stats.d.ts
|
|
6
6
|
declare const getGlobalEmailStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -34,7 +34,7 @@ declare const getGlobalEmailStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
34
34
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
35
35
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
37
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
38
38
|
SENDGRID_API_KEY: z.ZodString;
|
|
39
39
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
40
40
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -85,7 +85,7 @@ declare const getCategoryStats: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
85
85
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
86
86
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
87
87
|
}, z.core.$strip>>;
|
|
88
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
88
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
89
89
|
SENDGRID_API_KEY: z.ZodString;
|
|
90
90
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
91
91
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -115,7 +115,7 @@ declare const listAutomationStats: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
115
115
|
}, z.core.$strip>>, z.ZodObject<{
|
|
116
116
|
results: z.ZodArray<z.ZodUnknown>;
|
|
117
117
|
_metadata: z.ZodOptional<z.ZodUnknown>;
|
|
118
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
118
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
119
119
|
SENDGRID_API_KEY: z.ZodString;
|
|
120
120
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
121
121
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -141,7 +141,7 @@ declare const getEngagementQualityScores: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
141
141
|
account_id: z.ZodOptional<z.ZodString>;
|
|
142
142
|
date: z.ZodOptional<z.ZodString>;
|
|
143
143
|
metrics: z.ZodOptional<z.ZodUnknown>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
144
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
145
145
|
SENDGRID_API_KEY: z.ZodString;
|
|
146
146
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
147
147
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -192,7 +192,7 @@ declare const listMailboxProviderStats: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
192
192
|
invalid_emails: z.ZodOptional<z.ZodNumber>;
|
|
193
193
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
194
194
|
}, z.core.$strip>>;
|
|
195
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
195
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
196
196
|
SENDGRID_API_KEY: z.ZodString;
|
|
197
197
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
198
198
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
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-CToXR1jp.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-BayZ0Lt6.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";
|
package/dist/suppressions.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/suppressions.d.ts
|
|
6
6
|
declare const addGlobalSuppressions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
7
|
recipientEmails: z.ZodArray<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>, z.ZodObject<{
|
|
9
9
|
recipient_emails: z.ZodArray<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
10
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
11
11
|
SENDGRID_API_KEY: z.ZodString;
|
|
12
12
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
13
13
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -30,7 +30,7 @@ declare const deleteGlobalSuppression: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
30
30
|
email: z.ZodString;
|
|
31
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
32
32
|
success: z.ZodBoolean;
|
|
33
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
33
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
34
34
|
SENDGRID_API_KEY: z.ZodString;
|
|
35
35
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
36
36
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -54,7 +54,7 @@ declare const getGlobalSuppression: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
}, z.core.$strip>, z.ZodObject<{
|
|
55
55
|
recipient_email: z.ZodString;
|
|
56
56
|
created: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
57
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
58
58
|
SENDGRID_API_KEY: z.ZodString;
|
|
59
59
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
60
60
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -82,7 +82,7 @@ declare const listGlobalSuppressions: _keystrokehq_core0.Operation<z.ZodOptional
|
|
|
82
82
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
83
83
|
recipient_email: z.ZodString;
|
|
84
84
|
created: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
85
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
86
86
|
SENDGRID_API_KEY: z.ZodString;
|
|
87
87
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
88
88
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -111,7 +111,7 @@ declare const createSuppressionGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
111
111
|
description: z.ZodOptional<z.ZodString>;
|
|
112
112
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
unsubscribes: z.ZodOptional<z.ZodNumber>;
|
|
114
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
114
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
115
115
|
SENDGRID_API_KEY: z.ZodString;
|
|
116
116
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
117
117
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -141,7 +141,7 @@ declare const updateSuppressionGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
141
141
|
description: z.ZodOptional<z.ZodString>;
|
|
142
142
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
143
143
|
unsubscribes: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
144
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
145
145
|
SENDGRID_API_KEY: z.ZodString;
|
|
146
146
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
147
147
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -164,7 +164,7 @@ declare const deleteSuppressionGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
164
164
|
groupId: z.ZodNumber;
|
|
165
165
|
}, z.core.$strip>, z.ZodObject<{
|
|
166
166
|
success: z.ZodBoolean;
|
|
167
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
167
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
168
168
|
SENDGRID_API_KEY: z.ZodString;
|
|
169
169
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
170
170
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -189,7 +189,7 @@ declare const listSuppressionGroups: _keystrokehq_core0.Operation<z.ZodOptional<
|
|
|
189
189
|
description: z.ZodOptional<z.ZodString>;
|
|
190
190
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
191
191
|
unsubscribes: z.ZodOptional<z.ZodNumber>;
|
|
192
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
192
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
193
193
|
SENDGRID_API_KEY: z.ZodString;
|
|
194
194
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
195
195
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -216,7 +216,7 @@ declare const getSuppressionGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
216
216
|
description: z.ZodOptional<z.ZodString>;
|
|
217
217
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
218
218
|
unsubscribes: z.ZodOptional<z.ZodNumber>;
|
|
219
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
219
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
220
220
|
SENDGRID_API_KEY: z.ZodString;
|
|
221
221
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
222
222
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -240,7 +240,7 @@ declare const addSuppressionsToGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
240
240
|
recipientEmails: z.ZodArray<z.ZodString>;
|
|
241
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
242
242
|
recipient_emails: z.ZodArray<z.ZodString>;
|
|
243
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
243
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
244
244
|
SENDGRID_API_KEY: z.ZodString;
|
|
245
245
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
246
246
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -264,7 +264,7 @@ declare const deleteSuppressionFromGroup: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
264
264
|
email: z.ZodString;
|
|
265
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
266
266
|
success: z.ZodBoolean;
|
|
267
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
267
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
268
268
|
SENDGRID_API_KEY: z.ZodString;
|
|
269
269
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
270
270
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -285,7 +285,7 @@ declare const deleteSuppressionFromGroup: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
285
285
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
286
286
|
declare const listGroupSuppressions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
287
287
|
groupId: z.ZodNumber;
|
|
288
|
-
}, z.core.$strip>, z.ZodArray<z.ZodString>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
288
|
+
}, z.core.$strip>, z.ZodArray<z.ZodString>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
289
289
|
SENDGRID_API_KEY: z.ZodString;
|
|
290
290
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
291
291
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -308,7 +308,7 @@ declare const listAllSuppressions: _keystrokehq_core0.Operation<z.ZodOptional<z.
|
|
|
308
308
|
id: z.ZodOptional<z.ZodNumber>;
|
|
309
309
|
group_id: z.ZodOptional<z.ZodNumber>;
|
|
310
310
|
email: z.ZodString;
|
|
311
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
311
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
312
312
|
SENDGRID_API_KEY: z.ZodString;
|
|
313
313
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
314
314
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -334,7 +334,7 @@ declare const listGroupsForEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
334
334
|
name: z.ZodString;
|
|
335
335
|
description: z.ZodOptional<z.ZodString>;
|
|
336
336
|
suppressed: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
337
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
338
338
|
SENDGRID_API_KEY: z.ZodString;
|
|
339
339
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
340
340
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -358,7 +358,7 @@ declare const searchSuppressionsInGroup: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
358
358
|
recipientEmails: z.ZodArray<z.ZodString>;
|
|
359
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
360
|
recipient_emails: z.ZodArray<z.ZodString>;
|
|
361
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
361
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
362
362
|
SENDGRID_API_KEY: z.ZodString;
|
|
363
363
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
364
364
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -387,7 +387,7 @@ declare const listBounces: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObjec
|
|
|
387
387
|
email: z.ZodString;
|
|
388
388
|
reason: z.ZodOptional<z.ZodString>;
|
|
389
389
|
status: z.ZodOptional<z.ZodString>;
|
|
390
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
390
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
391
391
|
SENDGRID_API_KEY: z.ZodString;
|
|
392
392
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
393
393
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -413,7 +413,7 @@ declare const getBounce: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
413
413
|
email: z.ZodString;
|
|
414
414
|
reason: z.ZodOptional<z.ZodString>;
|
|
415
415
|
status: z.ZodOptional<z.ZodString>;
|
|
416
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
416
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
417
417
|
SENDGRID_API_KEY: z.ZodString;
|
|
418
418
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
419
419
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -436,7 +436,7 @@ declare const deleteBounce: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
436
436
|
email: z.ZodString;
|
|
437
437
|
}, z.core.$strip>, z.ZodObject<{
|
|
438
438
|
success: z.ZodBoolean;
|
|
439
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
439
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
440
440
|
SENDGRID_API_KEY: z.ZodString;
|
|
441
441
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
442
442
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -460,7 +460,7 @@ declare const deleteBounces: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
460
460
|
deleteAll: z.ZodOptional<z.ZodBoolean>;
|
|
461
461
|
}, z.core.$strip>, z.ZodObject<{
|
|
462
462
|
success: z.ZodBoolean;
|
|
463
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
463
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
464
464
|
SENDGRID_API_KEY: z.ZodString;
|
|
465
465
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
466
466
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -489,7 +489,7 @@ declare const listBlocks: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject
|
|
|
489
489
|
email: z.ZodString;
|
|
490
490
|
reason: z.ZodOptional<z.ZodString>;
|
|
491
491
|
status: z.ZodOptional<z.ZodString>;
|
|
492
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
492
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
493
493
|
SENDGRID_API_KEY: z.ZodString;
|
|
494
494
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
495
495
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -515,7 +515,7 @@ declare const getBlock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
515
515
|
email: z.ZodString;
|
|
516
516
|
reason: z.ZodOptional<z.ZodString>;
|
|
517
517
|
status: z.ZodOptional<z.ZodString>;
|
|
518
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
518
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
519
519
|
SENDGRID_API_KEY: z.ZodString;
|
|
520
520
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
521
521
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -538,7 +538,7 @@ declare const deleteBlock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
538
538
|
email: z.ZodString;
|
|
539
539
|
}, z.core.$strip>, z.ZodObject<{
|
|
540
540
|
success: z.ZodBoolean;
|
|
541
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
541
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
542
542
|
SENDGRID_API_KEY: z.ZodString;
|
|
543
543
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
544
544
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -562,7 +562,7 @@ declare const deleteBlocks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
562
562
|
deleteAll: z.ZodOptional<z.ZodBoolean>;
|
|
563
563
|
}, z.core.$strip>, z.ZodObject<{
|
|
564
564
|
success: z.ZodBoolean;
|
|
565
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
565
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
566
566
|
SENDGRID_API_KEY: z.ZodString;
|
|
567
567
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
568
568
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -590,7 +590,7 @@ declare const listInvalidEmails: _keystrokehq_core0.Operation<z.ZodOptional<z.Zo
|
|
|
590
590
|
created: z.ZodNumber;
|
|
591
591
|
email: z.ZodString;
|
|
592
592
|
reason: z.ZodOptional<z.ZodString>;
|
|
593
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
593
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
594
594
|
SENDGRID_API_KEY: z.ZodString;
|
|
595
595
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
596
596
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -615,7 +615,7 @@ declare const getInvalidEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
615
615
|
created: z.ZodNumber;
|
|
616
616
|
email: z.ZodString;
|
|
617
617
|
reason: z.ZodOptional<z.ZodString>;
|
|
618
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
618
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
619
619
|
SENDGRID_API_KEY: z.ZodString;
|
|
620
620
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
621
621
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -638,7 +638,7 @@ declare const deleteInvalidEmail: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
638
638
|
email: z.ZodString;
|
|
639
639
|
}, z.core.$strip>, z.ZodObject<{
|
|
640
640
|
success: z.ZodBoolean;
|
|
641
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
641
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
642
642
|
SENDGRID_API_KEY: z.ZodString;
|
|
643
643
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
644
644
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -662,7 +662,7 @@ declare const deleteInvalidEmails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
662
662
|
deleteAll: z.ZodOptional<z.ZodBoolean>;
|
|
663
663
|
}, z.core.$strip>, z.ZodObject<{
|
|
664
664
|
success: z.ZodBoolean;
|
|
665
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
665
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
666
666
|
SENDGRID_API_KEY: z.ZodString;
|
|
667
667
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
668
668
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -690,7 +690,7 @@ declare const listSpamReports: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodO
|
|
|
690
690
|
created: z.ZodNumber;
|
|
691
691
|
email: z.ZodString;
|
|
692
692
|
ip: z.ZodOptional<z.ZodString>;
|
|
693
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
693
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
694
694
|
SENDGRID_API_KEY: z.ZodString;
|
|
695
695
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
696
696
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -715,7 +715,7 @@ declare const getSpamReport: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
715
715
|
created: z.ZodNumber;
|
|
716
716
|
email: z.ZodString;
|
|
717
717
|
ip: z.ZodOptional<z.ZodString>;
|
|
718
|
-
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
718
|
+
}, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
719
719
|
SENDGRID_API_KEY: z.ZodString;
|
|
720
720
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
721
721
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -738,7 +738,7 @@ declare const deleteSpamReport: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
738
738
|
email: z.ZodString;
|
|
739
739
|
}, z.core.$strip>, z.ZodObject<{
|
|
740
740
|
success: z.ZodBoolean;
|
|
741
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
741
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
742
742
|
SENDGRID_API_KEY: z.ZodString;
|
|
743
743
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
744
744
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -762,7 +762,7 @@ declare const deleteSpamReports: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
762
762
|
deleteAll: z.ZodOptional<z.ZodBoolean>;
|
|
763
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
764
764
|
success: z.ZodBoolean;
|
|
765
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
765
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
766
766
|
SENDGRID_API_KEY: z.ZodString;
|
|
767
767
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
768
768
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
package/dist/suppressions.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-BayZ0Lt6.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { C as sendgridBounceListSchema, E as sendgridGlobalSuppressionSchema, N as sendgridSuppressionGroupListSchema, O as sendgridGroupSuppressionListSchema, P as sendgridSuppressionGroupSchema, T as sendgridGlobalSuppressionListSchema, in as sendgridEmailSchema, j as sendgridSpamReportListSchema, k as sendgridInvalidEmailListSchema, x as sendgridBlockListSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/templates.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/templates.d.ts
|
|
6
6
|
declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -32,7 +32,7 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
32
32
|
}>>;
|
|
33
33
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
35
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
36
36
|
SENDGRID_API_KEY: z.ZodString;
|
|
37
37
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
38
38
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -77,7 +77,7 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
77
77
|
}>>;
|
|
78
78
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
79
79
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
80
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
80
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
81
81
|
SENDGRID_API_KEY: z.ZodString;
|
|
82
82
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
83
83
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -100,7 +100,7 @@ declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
100
100
|
templateId: z.ZodString;
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
success: z.ZodBoolean;
|
|
103
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
103
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
104
104
|
SENDGRID_API_KEY: z.ZodString;
|
|
105
105
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
106
106
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -145,7 +145,7 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
145
145
|
}>>;
|
|
146
146
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
147
147
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
148
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
148
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
149
149
|
SENDGRID_API_KEY: z.ZodString;
|
|
150
150
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
151
151
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -189,7 +189,7 @@ declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
189
189
|
}>>;
|
|
190
190
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
191
191
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
192
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
192
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
193
193
|
SENDGRID_API_KEY: z.ZodString;
|
|
194
194
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
195
195
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -241,7 +241,7 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
|
|
|
241
241
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
242
242
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
243
243
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
244
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
244
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
245
245
|
SENDGRID_API_KEY: z.ZodString;
|
|
246
246
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
247
247
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -286,7 +286,7 @@ declare const createTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
286
286
|
design: "design";
|
|
287
287
|
}>>;
|
|
288
288
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
289
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
289
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
290
290
|
SENDGRID_API_KEY: z.ZodString;
|
|
291
291
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
292
292
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -332,7 +332,7 @@ declare const updateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
332
332
|
design: "design";
|
|
333
333
|
}>>;
|
|
334
334
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
335
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
335
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
336
336
|
SENDGRID_API_KEY: z.ZodString;
|
|
337
337
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
338
338
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -356,7 +356,7 @@ declare const deleteTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
356
356
|
versionId: z.ZodString;
|
|
357
357
|
}, z.core.$strip>, z.ZodObject<{
|
|
358
358
|
success: z.ZodBoolean;
|
|
359
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
359
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
360
360
|
SENDGRID_API_KEY: z.ZodString;
|
|
361
361
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
362
362
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -392,7 +392,7 @@ declare const getTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
392
392
|
design: "design";
|
|
393
393
|
}>>;
|
|
394
394
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
395
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
395
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
396
396
|
SENDGRID_API_KEY: z.ZodString;
|
|
397
397
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
398
398
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -428,7 +428,7 @@ declare const activateTemplateVersion: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
428
428
|
design: "design";
|
|
429
429
|
}>>;
|
|
430
430
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
431
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
431
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
432
432
|
SENDGRID_API_KEY: z.ZodString;
|
|
433
433
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
434
434
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
package/dist/templates.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
2
|
-
import { n as omitUndefined } from "./shared-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
|
+
import { n as omitUndefined } from "./shared-BayZ0Lt6.mjs";
|
|
3
3
|
import { createSendGridClient } from "./client.mjs";
|
|
4
4
|
import { _ as sendgridTemplateGenerationSchema, b as sendgridTemplateVersionSchema, on as sendgridIdSchema, v as sendgridTemplateListSchema, y as sendgridTemplateSchema } from "./webhooks-CKdsIikb.mjs";
|
|
5
5
|
import { z } from "zod";
|
package/dist/user-account.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/user-account.d.ts
|
|
6
6
|
declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -15,7 +15,7 @@ declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
15
15
|
state: z.ZodOptional<z.ZodString>;
|
|
16
16
|
website: z.ZodOptional<z.ZodString>;
|
|
17
17
|
zip: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
19
19
|
SENDGRID_API_KEY: z.ZodString;
|
|
20
20
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
21
21
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -37,7 +37,7 @@ declare const getUserProfile: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
37
37
|
declare const getAccountInfo: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
38
38
|
type: z.ZodString;
|
|
39
39
|
reputation: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
40
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
41
41
|
SENDGRID_API_KEY: z.ZodString;
|
|
42
42
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
43
43
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -58,7 +58,7 @@ declare const getAccountInfo: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodOb
|
|
|
58
58
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
59
59
|
declare const getUserScopes: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
60
60
|
scopes: z.ZodArray<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
61
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
62
62
|
SENDGRID_API_KEY: z.ZodString;
|
|
63
63
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
64
64
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -85,7 +85,7 @@ declare const getCreditBalance: _keystrokehq_core0.Operation<z.ZodOptional<z.Zod
|
|
|
85
85
|
last_reset: z.ZodOptional<z.ZodString>;
|
|
86
86
|
next_reset: z.ZodOptional<z.ZodString>;
|
|
87
87
|
reset_frequency: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
88
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
|
|
89
89
|
SENDGRID_API_KEY: z.ZodString;
|
|
90
90
|
SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
|
|
91
91
|
SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
|
package/dist/user-account.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __exportAll, t as sendgridOperation } from "./factory-
|
|
1
|
+
import { n as __exportAll, t as sendgridOperation } from "./factory-CToXR1jp.mjs";
|
|
2
2
|
import { createSendGridClient } from "./client.mjs";
|
|
3
3
|
import { f as sendgridAccountInfoSchema, g as sendgridUserProfileSchema, m as sendgridScopesSchema, p as sendgridCreditBalanceSchema } from "./webhooks-CKdsIikb.mjs";
|
|
4
4
|
import { z } from "zod";
|