@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.
Files changed (49) hide show
  1. package/dist/_official/index.d.mts +1 -1
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/alerts.d.mts +6 -6
  4. package/dist/alerts.mjs +2 -2
  5. package/dist/api-keys.d.mts +7 -7
  6. package/dist/api-keys.mjs +2 -2
  7. package/dist/client.d.mts +1 -1
  8. package/dist/client.mjs +2 -3
  9. package/dist/connection.d.mts +1 -1
  10. package/dist/connection.mjs +1 -1
  11. package/dist/domains.d.mts +4 -4
  12. package/dist/domains.mjs +2 -2
  13. package/dist/email-validation.d.mts +6 -6
  14. package/dist/email-validation.mjs +2 -2
  15. package/dist/{factory-BSL0D2L0.mjs → factory-CToXR1jp.mjs} +1 -2
  16. package/dist/integration-C9EALG65.mjs +113 -0
  17. package/dist/{integration-DpbPKcSF.d.mts → integration-zx-jmybs.d.mts} +3 -4
  18. package/dist/mail-send.d.mts +9 -9
  19. package/dist/mail-send.mjs +2 -2
  20. package/dist/marketing-contacts.d.mts +17 -17
  21. package/dist/marketing-contacts.mjs +2 -2
  22. package/dist/marketing-customfields.d.mts +4 -4
  23. package/dist/marketing-customfields.mjs +1 -1
  24. package/dist/marketing-lists.d.mts +8 -8
  25. package/dist/marketing-lists.mjs +2 -2
  26. package/dist/marketing-segments.d.mts +11 -11
  27. package/dist/marketing-segments.mjs +2 -2
  28. package/dist/marketing-singlesends.d.mts +17 -17
  29. package/dist/marketing-singlesends.mjs +2 -2
  30. package/dist/sender-identities.d.mts +7 -7
  31. package/dist/sender-identities.mjs +1 -1
  32. package/dist/senders.d.mts +6 -6
  33. package/dist/senders.mjs +1 -1
  34. package/dist/shared-BayZ0Lt6.mjs +46 -0
  35. package/dist/stats.d.mts +6 -6
  36. package/dist/stats.mjs +2 -2
  37. package/dist/suppressions.d.mts +32 -32
  38. package/dist/suppressions.mjs +2 -2
  39. package/dist/templates.d.mts +12 -12
  40. package/dist/templates.mjs +2 -2
  41. package/dist/user-account.d.mts +5 -5
  42. package/dist/user-account.mjs +1 -1
  43. package/dist/webhooks/event.d.mts +9 -9
  44. package/dist/webhooks/event.mjs +2 -2
  45. package/dist/webhooks/parse.d.mts +7 -7
  46. package/dist/webhooks/parse.mjs +2 -2
  47. package/package.json +4 -4
  48. package/dist/integration-37BovSeK.mjs +0 -23
  49. package/dist/shared-CQ8JFNXi.mjs +0 -13
@@ -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/webhooks/event.d.ts
6
6
  declare const createEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -39,7 +39,7 @@ declare const createEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
39
39
  dropped: z.ZodOptional<z.ZodBoolean>;
40
40
  oauth_client_id: z.ZodOptional<z.ZodString>;
41
41
  oauth_token_url: z.ZodOptional<z.ZodString>;
42
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
42
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
43
43
  SENDGRID_API_KEY: z.ZodString;
44
44
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
45
45
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -95,7 +95,7 @@ declare const updateEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
95
95
  dropped: z.ZodOptional<z.ZodBoolean>;
96
96
  oauth_client_id: z.ZodOptional<z.ZodString>;
97
97
  oauth_token_url: z.ZodOptional<z.ZodString>;
98
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
98
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
99
99
  SENDGRID_API_KEY: z.ZodString;
100
100
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
101
101
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -118,7 +118,7 @@ declare const deleteEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
118
118
  webhookId: z.ZodString;
119
119
  }, z.core.$strip>, z.ZodObject<{
120
120
  success: z.ZodBoolean;
121
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
121
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
122
122
  SENDGRID_API_KEY: z.ZodString;
123
123
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
124
124
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -158,7 +158,7 @@ declare const listEventWebhooks: _keystrokehq_core0.Operation<z.ZodOptional<z.Zo
158
158
  oauth_client_id: z.ZodOptional<z.ZodString>;
159
159
  oauth_token_url: z.ZodOptional<z.ZodString>;
160
160
  }, z.core.$catchall<z.ZodUnknown>>>;
161
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
161
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
162
162
  SENDGRID_API_KEY: z.ZodString;
163
163
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
164
164
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -197,7 +197,7 @@ declare const getEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
197
197
  dropped: z.ZodOptional<z.ZodBoolean>;
198
198
  oauth_client_id: z.ZodOptional<z.ZodString>;
199
199
  oauth_token_url: z.ZodOptional<z.ZodString>;
200
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
200
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
201
201
  SENDGRID_API_KEY: z.ZodString;
202
202
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
203
203
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -218,7 +218,7 @@ declare const getEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
218
218
  }, z.core.$strip>>[] | undefined>], undefined>;
219
219
  declare const getSignedPublicKey: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
220
220
  public_key: z.ZodString;
221
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
221
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
222
222
  SENDGRID_API_KEY: z.ZodString;
223
223
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
224
224
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -241,7 +241,7 @@ declare const toggleWebhookSignature: _keystrokehq_core0.Operation<z.ZodObject<{
241
241
  enabled: z.ZodBoolean;
242
242
  }, z.core.$strip>, z.ZodObject<{
243
243
  enabled: z.ZodBoolean;
244
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
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<{
@@ -264,7 +264,7 @@ declare const testEventWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
264
264
  url: z.ZodString;
265
265
  }, z.core.$strip>, z.ZodObject<{
266
266
  success: z.ZodBoolean;
267
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
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<{
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, t as sendgridOperation } from "../factory-BSL0D2L0.mjs";
2
- import { n as omitUndefined } from "../shared-CQ8JFNXi.mjs";
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 { d as sendgridSignedPublicKeySchema, i as sendgridEventWebhookSettingsSchema, n as sendgridEventWebhookListSchema, u as sendgridSignatureToggleSchema } from "../webhooks-CKdsIikb.mjs";
5
5
  import { z } from "zod";
@@ -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/webhooks/parse.d.ts
6
6
  declare const createParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -13,7 +13,7 @@ declare const createParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
13
13
  hostname: z.ZodString;
14
14
  spam_check: z.ZodOptional<z.ZodBoolean>;
15
15
  send_raw: z.ZodOptional<z.ZodBoolean>;
16
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
16
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
17
17
  SENDGRID_API_KEY: z.ZodString;
18
18
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
19
19
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -42,7 +42,7 @@ declare const updateParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
42
42
  hostname: z.ZodString;
43
43
  spam_check: z.ZodOptional<z.ZodBoolean>;
44
44
  send_raw: z.ZodOptional<z.ZodBoolean>;
45
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
45
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
46
46
  SENDGRID_API_KEY: z.ZodString;
47
47
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
48
48
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -65,7 +65,7 @@ declare const deleteParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
65
65
  hostname: z.ZodString;
66
66
  }, z.core.$strip>, z.ZodObject<{
67
67
  success: z.ZodBoolean;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
68
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
69
69
  SENDGRID_API_KEY: z.ZodString;
70
70
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
71
71
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -91,7 +91,7 @@ declare const listParseSettings: _keystrokehq_core0.Operation<z.ZodOptional<z.Zo
91
91
  spam_check: z.ZodOptional<z.ZodBoolean>;
92
92
  send_raw: z.ZodOptional<z.ZodBoolean>;
93
93
  }, z.core.$catchall<z.ZodUnknown>>>;
94
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
94
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
95
95
  SENDGRID_API_KEY: z.ZodString;
96
96
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
97
97
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -117,7 +117,7 @@ declare const getParseSetting: _keystrokehq_core0.Operation<z.ZodObject<{
117
117
  hostname: z.ZodString;
118
118
  spam_check: z.ZodOptional<z.ZodBoolean>;
119
119
  send_raw: z.ZodOptional<z.ZodBoolean>;
120
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
120
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
121
121
  SENDGRID_API_KEY: z.ZodString;
122
122
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
123
123
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -149,7 +149,7 @@ declare const getParseStats: _keystrokehq_core0.Operation<z.ZodOptional<z.ZodObj
149
149
  }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
150
150
  date: z.ZodString;
151
151
  stats: z.ZodArray<z.ZodUnknown>;
152
- }, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sendgrid", z.ZodObject<{
152
+ }, z.core.$catchall<z.ZodUnknown>>>, readonly [_keystrokehq_core0.CredentialSet<"sendgrid", z.ZodObject<{
153
153
  SENDGRID_API_KEY: z.ZodString;
154
154
  SENDGRID_SUBUSER: z.ZodOptional<z.ZodString>;
155
155
  SENDGRID_ACCOUNT_REGION: z.ZodDefault<z.ZodEnum<{
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, t as sendgridOperation } from "../factory-BSL0D2L0.mjs";
2
- import { n as omitUndefined } from "../shared-CQ8JFNXi.mjs";
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 { l as sendgridParseStatsSchema, o as sendgridParseSettingListSchema, s as sendgridParseSettingSchema } from "../webhooks-CKdsIikb.mjs";
5
5
  import { z } from "zod";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/sendgrid",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -116,7 +116,6 @@
116
116
  "LICENSE"
117
117
  ],
118
118
  "dependencies": {
119
- "@keystrokehq/integration-authoring": "^0.0.8",
120
119
  "zod": "^4.3.6"
121
120
  },
122
121
  "peerDependencies": {
@@ -127,9 +126,10 @@
127
126
  "tsdown": "^0.20.3",
128
127
  "typescript": "^5.9.3",
129
128
  "vitest": "^4.0.18",
130
- "@keystrokehq/core": "^0.0.8",
129
+ "@keystrokehq/core": "^0.0.12",
130
+ "@keystrokehq/typescript-config": "0.0.0",
131
131
  "@keystrokehq/test-utils": "0.0.0",
132
- "@keystrokehq/typescript-config": "0.0.0"
132
+ "@keystrokehq/integration-authoring": "0.0.9"
133
133
  },
134
134
  "keywords": [
135
135
  "sendgrid",
@@ -1,23 +0,0 @@
1
- import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
-
4
- //#region src/integration.ts
5
- const sendgridAuthSchema = z.object({
6
- SENDGRID_API_KEY: z.string().min(1).regex(/^SG\./u, "SendGrid API keys start with \"SG.\""),
7
- SENDGRID_SUBUSER: z.string().min(1).optional(),
8
- SENDGRID_ACCOUNT_REGION: z.enum(["global", "eu"]).default("global"),
9
- SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY: z.string().min(1).optional(),
10
- SENDGRID_INBOUND_PARSE_TOKEN: z.string().min(1).optional()
11
- });
12
- const sendgridOfficialIntegration = {
13
- id: "sendgrid",
14
- name: "SendGrid",
15
- description: "SendGrid (Twilio) transactional + marketing email, templates, contacts, lists, segments, deliverability, and webhook helpers for Keystroke workflows",
16
- auth: sendgridAuthSchema,
17
- proxy: { hosts: ["api.sendgrid.com", "api.eu.sendgrid.com"] }
18
- };
19
- const sendgridBundle = defineOfficialIntegration(sendgridOfficialIntegration);
20
- const sendgrid = sendgridBundle.credentialSet;
21
-
22
- //#endregion
23
- export { sendgridBundle as n, sendgridOfficialIntegration as r, sendgrid as t };
@@ -1,13 +0,0 @@
1
- //#region src/shared.ts
2
- function asRecord(value) {
3
- return typeof value === "object" && value !== null ? value : {};
4
- }
5
- function stringIfPresent(value) {
6
- return typeof value === "string" && value.length > 0 ? value : void 0;
7
- }
8
- function omitUndefined(value) {
9
- return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
10
- }
11
-
12
- //#endregion
13
- export { omitUndefined as n, stringIfPresent as r, asRecord as t };