@keystrokehq/resend 0.0.9 → 0.0.16-integration-id-canonicalization.0

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 (57) hide show
  1. package/README.md +41 -145
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +3 -0
  4. package/dist/emails-DNEKKuhw.mjs +590 -0
  5. package/dist/index.d.mts +4 -1
  6. package/dist/index.mjs +5 -1
  7. package/dist/operations/index.d.mts +2 -0
  8. package/dist/operations/index.mjs +3 -0
  9. package/dist/resend.credential-set-BVQIXE4k.mjs +18 -0
  10. package/dist/resend.credential-set-CO_XYnvV.d.mts +16 -0
  11. package/dist/schemas/index.d.mts +1292 -0
  12. package/dist/schemas/index.mjs +3 -0
  13. package/dist/verify-resend-domain.operation-BusUhEql.d.mts +1818 -0
  14. package/dist/verify-resend-domain.operation-ClVQJYPC.mjs +1481 -0
  15. package/package.json +11 -75
  16. package/dist/_official/index.d.mts +0 -2
  17. package/dist/_official/index.mjs +0 -3
  18. package/dist/_runtime/index.d.mts +0 -1
  19. package/dist/_runtime/index.mjs +0 -1
  20. package/dist/api-keys.d.mts +0 -67
  21. package/dist/api-keys.mjs +0 -90
  22. package/dist/broadcasts.d.mts +0 -238
  23. package/dist/broadcasts.mjs +0 -178
  24. package/dist/client.d.mts +0 -26
  25. package/dist/client.mjs +0 -40
  26. package/dist/connection.d.mts +0 -2
  27. package/dist/connection.mjs +0 -3
  28. package/dist/contact-properties.d.mts +0 -139
  29. package/dist/contact-properties.mjs +0 -115
  30. package/dist/contacts.d.mts +0 -218
  31. package/dist/contacts.mjs +0 -225
  32. package/dist/domains.d.mts +0 -293
  33. package/dist/domains.mjs +0 -160
  34. package/dist/emails-receiving.d.mts +0 -177
  35. package/dist/emails-receiving.mjs +0 -114
  36. package/dist/emails.d.mts +0 -307
  37. package/dist/emails.mjs +0 -241
  38. package/dist/events.d.mts +0 -571
  39. package/dist/events.mjs +0 -178
  40. package/dist/factory-CE4vHYLx.mjs +0 -7
  41. package/dist/http-BLe4ICIc.mjs +0 -84
  42. package/dist/integration-C00bEk7H.d.mts +0 -48
  43. package/dist/integration-C5YM61yl.mjs +0 -118
  44. package/dist/logs.d.mts +0 -71
  45. package/dist/logs.mjs +0 -61
  46. package/dist/schemas.d.mts +0 -77
  47. package/dist/schemas.mjs +0 -68
  48. package/dist/segments.d.mts +0 -112
  49. package/dist/segments.mjs +0 -120
  50. package/dist/templates.d.mts +0 -193
  51. package/dist/templates.mjs +0 -151
  52. package/dist/topics.d.mts +0 -125
  53. package/dist/topics.mjs +0 -113
  54. package/dist/verification.d.mts +0 -49
  55. package/dist/verification.mjs +0 -139
  56. package/dist/webhooks.d.mts +0 -285
  57. package/dist/webhooks.mjs +0 -124
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/resend",
3
- "version": "0.0.9",
3
+ "version": "0.0.16-integration-id-canonicalization.0",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -9,81 +9,17 @@
9
9
  "types": "./dist/index.d.mts",
10
10
  "default": "./dist/index.mjs"
11
11
  },
12
- "./connection": {
13
- "types": "./dist/connection.d.mts",
14
- "default": "./dist/connection.mjs"
12
+ "./credential-sets": {
13
+ "types": "./dist/credential-sets/index.d.mts",
14
+ "default": "./dist/credential-sets/index.mjs"
15
15
  },
16
- "./client": {
17
- "types": "./dist/client.d.mts",
18
- "default": "./dist/client.mjs"
16
+ "./operations": {
17
+ "types": "./dist/operations/index.d.mts",
18
+ "default": "./dist/operations/index.mjs"
19
19
  },
20
20
  "./schemas": {
21
- "types": "./dist/schemas.d.mts",
22
- "default": "./dist/schemas.mjs"
23
- },
24
- "./_official": {
25
- "types": "./dist/_official/index.d.mts",
26
- "default": "./dist/_official/index.mjs"
27
- },
28
- "./events": {
29
- "types": "./dist/events.d.mts",
30
- "default": "./dist/events.mjs"
31
- },
32
- "./verification": {
33
- "types": "./dist/verification.d.mts",
34
- "default": "./dist/verification.mjs"
35
- },
36
- "./emails": {
37
- "types": "./dist/emails.d.mts",
38
- "default": "./dist/emails.mjs"
39
- },
40
- "./emails-receiving": {
41
- "types": "./dist/emails-receiving.d.mts",
42
- "default": "./dist/emails-receiving.mjs"
43
- },
44
- "./templates": {
45
- "types": "./dist/templates.d.mts",
46
- "default": "./dist/templates.mjs"
47
- },
48
- "./broadcasts": {
49
- "types": "./dist/broadcasts.d.mts",
50
- "default": "./dist/broadcasts.mjs"
51
- },
52
- "./contacts": {
53
- "types": "./dist/contacts.d.mts",
54
- "default": "./dist/contacts.mjs"
55
- },
56
- "./contact-properties": {
57
- "types": "./dist/contact-properties.d.mts",
58
- "default": "./dist/contact-properties.mjs"
59
- },
60
- "./segments": {
61
- "types": "./dist/segments.d.mts",
62
- "default": "./dist/segments.mjs"
63
- },
64
- "./topics": {
65
- "types": "./dist/topics.d.mts",
66
- "default": "./dist/topics.mjs"
67
- },
68
- "./domains": {
69
- "types": "./dist/domains.d.mts",
70
- "default": "./dist/domains.mjs"
71
- },
72
- "./api-keys": {
73
- "types": "./dist/api-keys.d.mts",
74
- "default": "./dist/api-keys.mjs"
75
- },
76
- "./webhooks": {
77
- "types": "./dist/webhooks.d.mts",
78
- "default": "./dist/webhooks.mjs"
79
- },
80
- "./logs": {
81
- "types": "./dist/logs.d.mts",
82
- "default": "./dist/logs.mjs"
83
- },
84
- "./_runtime": {
85
- "types": "./dist/_runtime/index.d.mts",
86
- "default": "./dist/_runtime/index.mjs"
21
+ "types": "./dist/schemas/index.d.mts",
22
+ "default": "./dist/schemas/index.mjs"
87
23
  }
88
24
  },
89
25
  "files": [
@@ -103,9 +39,9 @@
103
39
  "typescript": "^5.9.3",
104
40
  "vitest": "^4.0.18",
105
41
  "@keystrokehq/core": "^0.0.12",
42
+ "@keystrokehq/test-utils": "0.0.0",
106
43
  "@keystrokehq/typescript-config": "0.0.0",
107
- "@keystrokehq/integration-authoring": "0.0.9",
108
- "@keystrokehq/test-utils": "0.0.0"
44
+ "@keystrokehq/integration-authoring": "0.0.9"
109
45
  },
110
46
  "keywords": [
111
47
  "resend",
@@ -1,2 +0,0 @@
1
- import { a as resendOfficialIntegration, i as resendBundle } from "../integration-C00bEk7H.mjs";
2
- export { resendBundle, resendOfficialIntegration };
@@ -1,3 +0,0 @@
1
- import { i as resendOfficialIntegration, r as resendBundle } from "../integration-C5YM61yl.mjs";
2
-
3
- export { resendBundle, resendOfficialIntegration };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,67 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/api-keys.d.ts
6
- declare const apiKeySummarySchema: z.ZodObject<{
7
- id: z.ZodString;
8
- name: z.ZodOptional<z.ZodString>;
9
- created_at: z.ZodOptional<z.ZodString>;
10
- }, z.core.$loose>;
11
- declare const apiKeyCreatedSchema: z.ZodObject<{
12
- id: z.ZodString;
13
- token: z.ZodString;
14
- }, z.core.$loose>;
15
- declare const createApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
16
- name: z.ZodString;
17
- permission: z.ZodDefault<z.ZodEnum<{
18
- full_access: "full_access";
19
- sending_access: "sending_access";
20
- }>>;
21
- domain_id: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>, z.ZodObject<{
23
- id: z.ZodString;
24
- token: z.ZodString;
25
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
26
- RESEND_API_KEY: z.ZodString;
27
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
- RESEND_API_KEY: z.ZodString;
30
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
32
- declare const listApiKeys: _keystrokehq_core0.Operation<z.ZodObject<{
33
- limit: z.ZodOptional<z.ZodNumber>;
34
- after: z.ZodOptional<z.ZodString>;
35
- before: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strip>, z.ZodObject<{
37
- object: z.ZodLiteral<"list">;
38
- has_more: z.ZodBoolean;
39
- data: z.ZodArray<z.ZodObject<{
40
- id: z.ZodString;
41
- name: z.ZodOptional<z.ZodString>;
42
- created_at: z.ZodOptional<z.ZodString>;
43
- }, z.core.$loose>>;
44
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
45
- RESEND_API_KEY: z.ZodString;
46
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
47
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
48
- RESEND_API_KEY: z.ZodString;
49
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50
- }, z.core.$strip>>[] | undefined>], undefined>;
51
- declare const deleteApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
52
- id: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- object: z.ZodOptional<z.ZodLiteral<"api_key">>;
55
- id: z.ZodString;
56
- deleted: z.ZodOptional<z.ZodBoolean>;
57
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
58
- RESEND_API_KEY: z.ZodString;
59
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
60
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
61
- RESEND_API_KEY: z.ZodString;
62
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
- }, z.core.$strip>>[] | undefined>], undefined>;
64
- type ResendApiKeySummary = z.infer<typeof apiKeySummarySchema>;
65
- type ResendApiKeyCreated = z.infer<typeof apiKeyCreatedSchema>;
66
- //#endregion
67
- export { ResendApiKeyCreated, ResendApiKeySummary, createApiKey, deleteApiKey, listApiKeys };
package/dist/api-keys.mjs DELETED
@@ -1,90 +0,0 @@
1
- import { createResendClient } from "./client.mjs";
2
- import { paginationQuerySchema, resendApiKeyPermissionSchema, resendListEnvelope } from "./schemas.mjs";
3
- import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
4
- import { z } from "zod";
5
-
6
- //#region src/api-keys.ts
7
- /**
8
- * resend/api-keys.ts
9
- *
10
- * Operations backing the Resend `/api-keys` endpoints.
11
- * PLAN.md § 6.4: 3 operations (create, list, delete).
12
- *
13
- * Resend's API does not expose GET-by-id or PATCH for API keys today,
14
- * so those are intentionally absent rather than faked.
15
- *
16
- * Permission tiers (verified against
17
- * <https://resend.com/docs/api-reference/api-keys/create-api-key>):
18
- *
19
- * - `full_access` — every endpoint
20
- * - `sending_access` — send emails only; optionally pinned to one
21
- * `domain_id`
22
- *
23
- * PLAN.md § 6.4 initially speculated a third `sending_only` tier;
24
- * that is not a distinct tier — it is `sending_access` + `domain_id`.
25
- * See IMPLEMENTATION_NOTES.md § 7 correction #2.
26
- */
27
- const apiKeySummarySchema = z.object({
28
- id: z.string(),
29
- name: z.string().optional(),
30
- created_at: z.string().optional()
31
- }).passthrough();
32
- const apiKeyCreatedSchema = z.object({
33
- id: z.string(),
34
- token: z.string()
35
- }).passthrough();
36
- const listApiKeysResponseSchema = resendListEnvelope(apiKeySummarySchema);
37
- const createApiKey = resendOperation({
38
- id: "resend.create-resend-api-key",
39
- name: "Create Resend API Key",
40
- description: "Create a new API key. The cleartext token is returned once — store it immediately; Resend cannot retrieve it again.",
41
- input: z.object({
42
- name: z.string().min(1).max(50),
43
- permission: resendApiKeyPermissionSchema.default("full_access"),
44
- domain_id: z.string().min(1).optional().describe("When set with permission=sending_access, restricts the key to sending from a single verified domain.")
45
- }),
46
- output: apiKeyCreatedSchema,
47
- needsApproval: true,
48
- run: async (input, credentials) => {
49
- return createResendClient(credentials).request({
50
- method: "POST",
51
- path: "/api-keys",
52
- body: input
53
- });
54
- }
55
- });
56
- const listApiKeys = resendOperation({
57
- id: "resend.list-resend-api-keys",
58
- name: "List Resend API Keys",
59
- description: "List API keys for the authenticated team.",
60
- input: paginationQuerySchema,
61
- output: listApiKeysResponseSchema,
62
- run: async (input, credentials) => {
63
- return createResendClient(credentials).request({
64
- method: "GET",
65
- path: "/api-keys",
66
- query: input
67
- });
68
- }
69
- });
70
- const deleteApiKey = resendOperation({
71
- id: "resend.delete-resend-api-key",
72
- name: "Delete Resend API Key",
73
- description: "Delete (revoke) an API key.",
74
- input: z.object({ id: z.string().min(1) }),
75
- output: z.object({
76
- object: z.literal("api_key").optional(),
77
- id: z.string(),
78
- deleted: z.boolean().optional()
79
- }).passthrough(),
80
- needsApproval: true,
81
- run: async (input, credentials) => {
82
- return createResendClient(credentials).request({
83
- method: "DELETE",
84
- path: `/api-keys/${encodeURIComponent(input.id)}`
85
- });
86
- }
87
- });
88
-
89
- //#endregion
90
- export { createApiKey, deleteApiKey, listApiKeys };
@@ -1,238 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/broadcasts.d.ts
6
- declare const broadcastSummarySchema: z.ZodObject<{
7
- id: z.ZodString;
8
- name: z.ZodOptional<z.ZodString>;
9
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
10
- failed: "failed";
11
- draft: "draft";
12
- scheduled: "scheduled";
13
- queued: "queued";
14
- sending: "sending";
15
- sent: "sent";
16
- cancelled: "cancelled";
17
- }>, z.ZodString]>>;
18
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
- created_at: z.ZodOptional<z.ZodString>;
21
- updated_at: z.ZodOptional<z.ZodString>;
22
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
- }, z.core.$loose>;
25
- declare const broadcastDetailSchema: z.ZodObject<{
26
- id: z.ZodString;
27
- name: z.ZodOptional<z.ZodString>;
28
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
29
- failed: "failed";
30
- draft: "draft";
31
- scheduled: "scheduled";
32
- queued: "queued";
33
- sending: "sending";
34
- sent: "sent";
35
- cancelled: "cancelled";
36
- }>, z.ZodString]>>;
37
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
- created_at: z.ZodOptional<z.ZodString>;
40
- updated_at: z.ZodOptional<z.ZodString>;
41
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
- from: z.ZodOptional<z.ZodString>;
44
- subject: z.ZodOptional<z.ZodString>;
45
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46
- preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
- html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
- }, z.core.$loose>;
50
- declare const createBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
51
- name: z.ZodOptional<z.ZodString>;
52
- from: z.ZodOptional<z.ZodString>;
53
- subject: z.ZodOptional<z.ZodString>;
54
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
55
- preview_text: z.ZodOptional<z.ZodString>;
56
- html: z.ZodOptional<z.ZodString>;
57
- text: z.ZodOptional<z.ZodString>;
58
- template: z.ZodOptional<z.ZodObject<{
59
- id: z.ZodString;
60
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
61
- }, z.core.$strip>>;
62
- audience_id: z.ZodOptional<z.ZodString>;
63
- segment_id: z.ZodOptional<z.ZodString>;
64
- scheduled_at: z.ZodOptional<z.ZodString>;
65
- }, z.core.$strip>, z.ZodObject<{
66
- id: z.ZodString;
67
- name: z.ZodOptional<z.ZodString>;
68
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
69
- failed: "failed";
70
- draft: "draft";
71
- scheduled: "scheduled";
72
- queued: "queued";
73
- sending: "sending";
74
- sent: "sent";
75
- cancelled: "cancelled";
76
- }>, z.ZodString]>>;
77
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
79
- created_at: z.ZodOptional<z.ZodString>;
80
- updated_at: z.ZodOptional<z.ZodString>;
81
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
83
- from: z.ZodOptional<z.ZodString>;
84
- subject: z.ZodOptional<z.ZodString>;
85
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
86
- preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
- html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
88
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
90
- RESEND_API_KEY: z.ZodString;
91
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
93
- RESEND_API_KEY: z.ZodString;
94
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
95
- }, z.core.$strip>>[] | undefined>], undefined>;
96
- declare const listBroadcasts: _keystrokehq_core0.Operation<z.ZodObject<{
97
- limit: z.ZodOptional<z.ZodNumber>;
98
- after: z.ZodOptional<z.ZodString>;
99
- before: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strip>, z.ZodObject<{
101
- object: z.ZodLiteral<"list">;
102
- has_more: z.ZodBoolean;
103
- data: z.ZodArray<z.ZodObject<{
104
- id: z.ZodString;
105
- name: z.ZodOptional<z.ZodString>;
106
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
107
- failed: "failed";
108
- draft: "draft";
109
- scheduled: "scheduled";
110
- queued: "queued";
111
- sending: "sending";
112
- sent: "sent";
113
- cancelled: "cancelled";
114
- }>, z.ZodString]>>;
115
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
- created_at: z.ZodOptional<z.ZodString>;
118
- updated_at: z.ZodOptional<z.ZodString>;
119
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
120
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
- }, z.core.$loose>>;
122
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
123
- RESEND_API_KEY: z.ZodString;
124
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
125
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
126
- RESEND_API_KEY: z.ZodString;
127
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
- }, z.core.$strip>>[] | undefined>], undefined>;
129
- declare const retrieveBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
130
- id: z.ZodString;
131
- }, z.core.$strip>, z.ZodObject<{
132
- id: z.ZodString;
133
- name: z.ZodOptional<z.ZodString>;
134
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
135
- failed: "failed";
136
- draft: "draft";
137
- scheduled: "scheduled";
138
- queued: "queued";
139
- sending: "sending";
140
- sent: "sent";
141
- cancelled: "cancelled";
142
- }>, z.ZodString]>>;
143
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
- created_at: z.ZodOptional<z.ZodString>;
146
- updated_at: z.ZodOptional<z.ZodString>;
147
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
148
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
- from: z.ZodOptional<z.ZodString>;
150
- subject: z.ZodOptional<z.ZodString>;
151
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
152
- preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
- html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
154
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
156
- RESEND_API_KEY: z.ZodString;
157
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
158
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
159
- RESEND_API_KEY: z.ZodString;
160
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
161
- }, z.core.$strip>>[] | undefined>], undefined>;
162
- declare const updateBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
163
- id: z.ZodString;
164
- name: z.ZodOptional<z.ZodString>;
165
- from: z.ZodOptional<z.ZodString>;
166
- subject: z.ZodOptional<z.ZodString>;
167
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
168
- preview_text: z.ZodOptional<z.ZodString>;
169
- html: z.ZodOptional<z.ZodString>;
170
- text: z.ZodOptional<z.ZodString>;
171
- template: z.ZodOptional<z.ZodObject<{
172
- id: z.ZodString;
173
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
174
- }, z.core.$strip>>;
175
- segment_id: z.ZodOptional<z.ZodString>;
176
- audience_id: z.ZodOptional<z.ZodString>;
177
- scheduled_at: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strip>, z.ZodObject<{
179
- id: z.ZodString;
180
- name: z.ZodOptional<z.ZodString>;
181
- status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
182
- failed: "failed";
183
- draft: "draft";
184
- scheduled: "scheduled";
185
- queued: "queued";
186
- sending: "sending";
187
- sent: "sent";
188
- cancelled: "cancelled";
189
- }>, z.ZodString]>>;
190
- audience_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
191
- segment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
192
- created_at: z.ZodOptional<z.ZodString>;
193
- updated_at: z.ZodOptional<z.ZodString>;
194
- scheduled_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
195
- sent_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
196
- from: z.ZodOptional<z.ZodString>;
197
- subject: z.ZodOptional<z.ZodString>;
198
- reply_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
199
- preview_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
200
- html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
201
- text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
202
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
203
- RESEND_API_KEY: z.ZodString;
204
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
205
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
206
- RESEND_API_KEY: z.ZodString;
207
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
208
- }, z.core.$strip>>[] | undefined>], undefined>;
209
- declare const sendBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
210
- id: z.ZodString;
211
- scheduled_at: z.ZodOptional<z.ZodString>;
212
- }, z.core.$strip>, z.ZodObject<{
213
- id: z.ZodString;
214
- object: z.ZodOptional<z.ZodLiteral<"broadcast">>;
215
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
216
- RESEND_API_KEY: z.ZodString;
217
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
218
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
219
- RESEND_API_KEY: z.ZodString;
220
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
- }, z.core.$strip>>[] | undefined>], undefined>;
222
- declare const deleteBroadcast: _keystrokehq_core0.Operation<z.ZodObject<{
223
- id: z.ZodString;
224
- }, z.core.$strip>, z.ZodObject<{
225
- object: z.ZodOptional<z.ZodLiteral<"broadcast">>;
226
- id: z.ZodString;
227
- deleted: z.ZodOptional<z.ZodBoolean>;
228
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
229
- RESEND_API_KEY: z.ZodString;
230
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
231
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
232
- RESEND_API_KEY: z.ZodString;
233
- RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
234
- }, z.core.$strip>>[] | undefined>], undefined>;
235
- type ResendBroadcastSummary = z.infer<typeof broadcastSummarySchema>;
236
- type ResendBroadcastDetail = z.infer<typeof broadcastDetailSchema>;
237
- //#endregion
238
- export { ResendBroadcastDetail, ResendBroadcastSummary, createBroadcast, deleteBroadcast, listBroadcasts, retrieveBroadcast, sendBroadcast, updateBroadcast };