@keystrokehq/resend 0.0.7 → 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/logs.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createResendClient } from "./client.mjs";
2
2
  import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
3
- import { t as resendOperation } from "./factory-B3VyPRsL.mjs";
3
+ import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/logs.ts
@@ -30,7 +30,7 @@ const logDetailSchema = logSummarySchema.extend({
30
30
  }).passthrough();
31
31
  const listLogsResponseSchema = resendListEnvelope(logSummarySchema);
32
32
  const listLogs = resendOperation({
33
- id: "list_resend_logs",
33
+ id: "resend.list-resend-logs",
34
34
  name: "List Resend Logs",
35
35
  description: "List API request logs. Plan-gated.",
36
36
  input: paginationQuerySchema,
@@ -44,7 +44,7 @@ const listLogs = resendOperation({
44
44
  }
45
45
  });
46
46
  const retrieveLog = resendOperation({
47
- id: "retrieve_resend_log",
47
+ id: "resend.retrieve-resend-log",
48
48
  name: "Retrieve Resend Log",
49
49
  description: "Retrieve a single API request log with full request and response bodies.",
50
50
  input: z.object({ id: z.string().min(1) }),
@@ -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/segments.d.ts
6
6
  declare const segmentSummarySchema: z.ZodObject<{
@@ -27,7 +27,7 @@ declare const createSegment: _keystrokehq_core0.Operation<z.ZodObject<{
27
27
  updated_at: z.ZodOptional<z.ZodString>;
28
28
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
29
  contact_count: z.ZodOptional<z.ZodNumber>;
30
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
30
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
31
31
  RESEND_API_KEY: z.ZodString;
32
32
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
33
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -47,7 +47,7 @@ declare const listSegments: _keystrokehq_core0.Operation<z.ZodObject<{
47
47
  created_at: z.ZodOptional<z.ZodString>;
48
48
  updated_at: z.ZodOptional<z.ZodString>;
49
49
  }, z.core.$loose>>;
50
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
50
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
51
51
  RESEND_API_KEY: z.ZodString;
52
52
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
53
53
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -63,7 +63,7 @@ declare const retrieveSegment: _keystrokehq_core0.Operation<z.ZodObject<{
63
63
  updated_at: z.ZodOptional<z.ZodString>;
64
64
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
65
  contact_count: z.ZodOptional<z.ZodNumber>;
66
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
66
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
67
67
  RESEND_API_KEY: z.ZodString;
68
68
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
69
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -76,7 +76,7 @@ declare const deleteSegment: _keystrokehq_core0.Operation<z.ZodObject<{
76
76
  object: z.ZodOptional<z.ZodLiteral<"segment">>;
77
77
  id: z.ZodString;
78
78
  deleted: z.ZodOptional<z.ZodBoolean>;
79
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
79
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
80
80
  RESEND_API_KEY: z.ZodString;
81
81
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
82
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -99,7 +99,7 @@ declare const listSegmentContacts: _keystrokehq_core0.Operation<z.ZodObject<{
99
99
  unsubscribed: z.ZodOptional<z.ZodBoolean>;
100
100
  created_at: z.ZodOptional<z.ZodString>;
101
101
  }, z.core.$loose>>;
102
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
102
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
103
103
  RESEND_API_KEY: z.ZodString;
104
104
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
105
105
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/segments.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createResendClient } from "./client.mjs";
2
2
  import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
3
- import { t as resendOperation } from "./factory-B3VyPRsL.mjs";
3
+ import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/segments.ts
@@ -38,7 +38,7 @@ const contactInSegmentSchema = z.object({
38
38
  const listSegmentsResponseSchema = resendListEnvelope(segmentSummarySchema);
39
39
  const listSegmentContactsResponseSchema = resendListEnvelope(contactInSegmentSchema);
40
40
  const createSegment = resendOperation({
41
- id: "create_resend_segment",
41
+ id: "resend.create-resend-segment",
42
42
  name: "Create Resend Segment",
43
43
  description: "Create a new segment. The filter DSL is provider-native JSON.",
44
44
  input: z.object({
@@ -56,7 +56,7 @@ const createSegment = resendOperation({
56
56
  }
57
57
  });
58
58
  const listSegments = resendOperation({
59
- id: "list_resend_segments",
59
+ id: "resend.list-resend-segments",
60
60
  name: "List Resend Segments",
61
61
  description: "Retrieve a cursor-paginated list of segments.",
62
62
  input: paginationQuerySchema,
@@ -70,7 +70,7 @@ const listSegments = resendOperation({
70
70
  }
71
71
  });
72
72
  const retrieveSegment = resendOperation({
73
- id: "retrieve_resend_segment",
73
+ id: "resend.retrieve-resend-segment",
74
74
  name: "Retrieve Resend Segment",
75
75
  description: "Retrieve a single segment by id.",
76
76
  input: z.object({ id: z.string().min(1) }),
@@ -83,7 +83,7 @@ const retrieveSegment = resendOperation({
83
83
  }
84
84
  });
85
85
  const deleteSegment = resendOperation({
86
- id: "delete_resend_segment",
86
+ id: "resend.delete-resend-segment",
87
87
  name: "Delete Resend Segment",
88
88
  description: "Delete a segment.",
89
89
  input: z.object({ id: z.string().min(1) }),
@@ -101,7 +101,7 @@ const deleteSegment = resendOperation({
101
101
  }
102
102
  });
103
103
  const listSegmentContacts = resendOperation({
104
- id: "list_resend_segment_contacts",
104
+ id: "resend.list-resend-segment-contacts",
105
105
  name: "List Resend Segment Contacts",
106
106
  description: "List the contacts in a segment.",
107
107
  input: paginationQuerySchema.extend({ segment_id: z.string().min(1) }),
@@ -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 templateSummarySchema: z.ZodObject<{
@@ -48,7 +48,7 @@ declare const createTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
48
48
  variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
49
  from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
50
  reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
51
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
52
52
  RESEND_API_KEY: z.ZodString;
53
53
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
54
54
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -71,7 +71,7 @@ declare const listTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
71
71
  created_at: z.ZodOptional<z.ZodString>;
72
72
  updated_at: z.ZodOptional<z.ZodString>;
73
73
  }, z.core.$loose>>;
74
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
74
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
75
75
  RESEND_API_KEY: z.ZodString;
76
76
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
77
77
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -93,7 +93,7 @@ declare const retrieveTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
93
93
  variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
94
  from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
95
95
  reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
96
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
97
97
  RESEND_API_KEY: z.ZodString;
98
98
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
99
99
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -123,7 +123,7 @@ declare const updateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
123
123
  variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
124
  from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
125
  reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
126
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
126
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
127
127
  RESEND_API_KEY: z.ZodString;
128
128
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
129
129
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -136,7 +136,7 @@ declare const deleteTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
136
136
  object: z.ZodOptional<z.ZodLiteral<"template">>;
137
137
  id: z.ZodString;
138
138
  deleted: z.ZodOptional<z.ZodBoolean>;
139
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
139
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
140
140
  RESEND_API_KEY: z.ZodString;
141
141
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
142
142
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -158,7 +158,7 @@ declare const duplicateTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
158
158
  variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
159
  from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
160
  reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
161
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
161
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
162
162
  RESEND_API_KEY: z.ZodString;
163
163
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
164
164
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -180,7 +180,7 @@ declare const publishTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
180
180
  variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
181
  from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
182
182
  reply_to: z.ZodNullable<z.ZodOptional<z.ZodString>>;
183
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
183
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
184
184
  RESEND_API_KEY: z.ZodString;
185
185
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
186
186
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { createResendClient } from "./client.mjs";
2
2
  import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
3
- import { t as resendOperation } from "./factory-B3VyPRsL.mjs";
3
+ import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/templates.ts
@@ -43,7 +43,7 @@ const templateWriteFieldsSchema = z.object({
43
43
  alias: z.string().optional()
44
44
  });
45
45
  const createTemplate = resendOperation({
46
- id: "create_resend_template",
46
+ id: "resend.create-resend-template",
47
47
  name: "Create Resend Template",
48
48
  description: "Create a new email template (draft).",
49
49
  input: templateWriteFieldsSchema,
@@ -58,7 +58,7 @@ const createTemplate = resendOperation({
58
58
  }
59
59
  });
60
60
  const listTemplates = resendOperation({
61
- id: "list_resend_templates",
61
+ id: "resend.list-resend-templates",
62
62
  name: "List Resend Templates",
63
63
  description: "Retrieve a cursor-paginated list of templates.",
64
64
  input: paginationQuerySchema,
@@ -72,7 +72,7 @@ const listTemplates = resendOperation({
72
72
  }
73
73
  });
74
74
  const retrieveTemplate = resendOperation({
75
- id: "retrieve_resend_template",
75
+ id: "resend.retrieve-resend-template",
76
76
  name: "Retrieve Resend Template",
77
77
  description: "Retrieve a single template by id or alias.",
78
78
  input: z.object({ id: z.string().min(1) }),
@@ -85,7 +85,7 @@ const retrieveTemplate = resendOperation({
85
85
  }
86
86
  });
87
87
  const updateTemplate = resendOperation({
88
- id: "update_resend_template",
88
+ id: "resend.update-resend-template",
89
89
  name: "Update Resend Template",
90
90
  description: "Update an existing template. Produces a new draft version.",
91
91
  input: templateWriteFieldsSchema.partial().extend({ id: z.string().min(1) }),
@@ -101,7 +101,7 @@ const updateTemplate = resendOperation({
101
101
  }
102
102
  });
103
103
  const deleteTemplate = resendOperation({
104
- id: "delete_resend_template",
104
+ id: "resend.delete-resend-template",
105
105
  name: "Delete Resend Template",
106
106
  description: "Delete an existing template.",
107
107
  input: z.object({ id: z.string().min(1) }),
@@ -119,7 +119,7 @@ const deleteTemplate = resendOperation({
119
119
  }
120
120
  });
121
121
  const duplicateTemplate = resendOperation({
122
- id: "duplicate_resend_template",
122
+ id: "resend.duplicate-resend-template",
123
123
  name: "Duplicate Resend Template",
124
124
  description: "Duplicate an existing template.",
125
125
  input: z.object({ id: z.string().min(1) }),
@@ -133,7 +133,7 @@ const duplicateTemplate = resendOperation({
133
133
  }
134
134
  });
135
135
  const publishTemplate = resendOperation({
136
- id: "publish_resend_template",
136
+ id: "resend.publish-resend-template",
137
137
  name: "Publish Resend Template",
138
138
  description: "Publish a draft template so it can be referenced from sendEmail.",
139
139
  input: z.object({ id: z.string().min(1) }),
package/dist/topics.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/topics.d.ts
6
6
  declare const topicSchema: z.ZodObject<{
@@ -31,7 +31,7 @@ declare const createTopic: _keystrokehq_core0.Operation<z.ZodObject<{
31
31
  }>>;
32
32
  created_at: z.ZodOptional<z.ZodString>;
33
33
  updated_at: z.ZodOptional<z.ZodString>;
34
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
34
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
35
35
  RESEND_API_KEY: z.ZodString;
36
36
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37
37
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -56,7 +56,7 @@ declare const listTopics: _keystrokehq_core0.Operation<z.ZodObject<{
56
56
  created_at: z.ZodOptional<z.ZodString>;
57
57
  updated_at: z.ZodOptional<z.ZodString>;
58
58
  }, z.core.$loose>>;
59
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
59
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
60
60
  RESEND_API_KEY: z.ZodString;
61
61
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
62
62
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -75,7 +75,7 @@ declare const retrieveTopic: _keystrokehq_core0.Operation<z.ZodObject<{
75
75
  }>>;
76
76
  created_at: z.ZodOptional<z.ZodString>;
77
77
  updated_at: z.ZodOptional<z.ZodString>;
78
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
78
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
79
79
  RESEND_API_KEY: z.ZodString;
80
80
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
81
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -100,7 +100,7 @@ declare const updateTopic: _keystrokehq_core0.Operation<z.ZodObject<{
100
100
  }>>;
101
101
  created_at: z.ZodOptional<z.ZodString>;
102
102
  updated_at: z.ZodOptional<z.ZodString>;
103
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
103
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
104
104
  RESEND_API_KEY: z.ZodString;
105
105
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
106
106
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -113,7 +113,7 @@ declare const deleteTopic: _keystrokehq_core0.Operation<z.ZodObject<{
113
113
  object: z.ZodOptional<z.ZodLiteral<"topic">>;
114
114
  id: z.ZodString;
115
115
  deleted: z.ZodOptional<z.ZodBoolean>;
116
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
116
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
117
117
  RESEND_API_KEY: z.ZodString;
118
118
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
119
119
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/topics.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createResendClient } from "./client.mjs";
2
2
  import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
3
- import { t as resendOperation } from "./factory-B3VyPRsL.mjs";
3
+ import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/topics.ts
@@ -24,7 +24,7 @@ const topicSchema = z.object({
24
24
  }).passthrough();
25
25
  const listTopicsResponseSchema = resendListEnvelope(topicSchema);
26
26
  const createTopic = resendOperation({
27
- id: "create_resend_topic",
27
+ id: "resend.create-resend-topic",
28
28
  name: "Create Resend Topic",
29
29
  description: "Create a new subscription topic.",
30
30
  input: z.object({
@@ -43,7 +43,7 @@ const createTopic = resendOperation({
43
43
  }
44
44
  });
45
45
  const listTopics = resendOperation({
46
- id: "list_resend_topics",
46
+ id: "resend.list-resend-topics",
47
47
  name: "List Resend Topics",
48
48
  description: "Retrieve a cursor-paginated list of topics.",
49
49
  input: paginationQuerySchema,
@@ -57,7 +57,7 @@ const listTopics = resendOperation({
57
57
  }
58
58
  });
59
59
  const retrieveTopic = resendOperation({
60
- id: "retrieve_resend_topic",
60
+ id: "resend.retrieve-resend-topic",
61
61
  name: "Retrieve Resend Topic",
62
62
  description: "Retrieve a single topic by id.",
63
63
  input: z.object({ id: z.string().min(1) }),
@@ -70,7 +70,7 @@ const retrieveTopic = resendOperation({
70
70
  }
71
71
  });
72
72
  const updateTopic = resendOperation({
73
- id: "update_resend_topic",
73
+ id: "resend.update-resend-topic",
74
74
  name: "Update Resend Topic",
75
75
  description: "Update an existing topic.",
76
76
  input: z.object({
@@ -91,7 +91,7 @@ const updateTopic = resendOperation({
91
91
  }
92
92
  });
93
93
  const deleteTopic = resendOperation({
94
- id: "delete_resend_topic",
94
+ id: "resend.delete-resend-topic",
95
95
  name: "Delete Resend Topic",
96
96
  description: "Delete a topic.",
97
97
  input: z.object({ id: z.string().min(1) }),
@@ -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.d.ts
6
6
  declare const webhookSummarySchema: z.ZodObject<{
@@ -116,7 +116,7 @@ declare const createWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
116
116
  created_at: z.ZodOptional<z.ZodString>;
117
117
  updated_at: z.ZodOptional<z.ZodString>;
118
118
  signing_secret: z.ZodOptional<z.ZodString>;
119
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
119
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
120
120
  RESEND_API_KEY: z.ZodString;
121
121
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
122
122
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -159,7 +159,7 @@ declare const listWebhooks: _keystrokehq_core0.Operation<z.ZodObject<{
159
159
  created_at: z.ZodOptional<z.ZodString>;
160
160
  updated_at: z.ZodOptional<z.ZodString>;
161
161
  }, z.core.$loose>>;
162
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
162
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
163
163
  RESEND_API_KEY: z.ZodString;
164
164
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
165
165
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -197,7 +197,7 @@ declare const retrieveWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
197
197
  created_at: z.ZodOptional<z.ZodString>;
198
198
  updated_at: z.ZodOptional<z.ZodString>;
199
199
  signing_secret: z.ZodOptional<z.ZodString>;
200
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
200
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
201
201
  RESEND_API_KEY: z.ZodString;
202
202
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
203
203
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -259,7 +259,7 @@ declare const updateWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
259
259
  created_at: z.ZodOptional<z.ZodString>;
260
260
  updated_at: z.ZodOptional<z.ZodString>;
261
261
  signing_secret: z.ZodOptional<z.ZodString>;
262
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
262
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
263
263
  RESEND_API_KEY: z.ZodString;
264
264
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
265
265
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -272,7 +272,7 @@ declare const deleteWebhook: _keystrokehq_core0.Operation<z.ZodObject<{
272
272
  object: z.ZodOptional<z.ZodLiteral<"webhook">>;
273
273
  id: z.ZodString;
274
274
  deleted: z.ZodOptional<z.ZodBoolean>;
275
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:resend", z.ZodObject<{
275
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"resend", z.ZodObject<{
276
276
  RESEND_API_KEY: z.ZodString;
277
277
  RESEND_WEBHOOK_SIGNING_SECRETS: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
278
278
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/webhooks.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createResendClient } from "./client.mjs";
2
2
  import { paginationQuerySchema, resendListEnvelope } from "./schemas.mjs";
3
3
  import { RESEND_WEBHOOK_EVENT_NAMES } from "./events.mjs";
4
- import { t as resendOperation } from "./factory-B3VyPRsL.mjs";
4
+ import { t as resendOperation } from "./factory-CE4vHYLx.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/webhooks.ts
@@ -35,7 +35,7 @@ const webhookSummarySchema = z.object({
35
35
  const webhookDetailSchema = webhookSummarySchema.extend({ signing_secret: z.string().regex(/^whsec_/).optional() }).passthrough();
36
36
  const listWebhooksResponseSchema = resendListEnvelope(webhookSummarySchema);
37
37
  const createWebhook = resendOperation({
38
- id: "create_resend_webhook",
38
+ id: "resend.create-resend-webhook",
39
39
  name: "Create Resend Webhook",
40
40
  description: "Register a webhook endpoint. Response includes the Svix signing secret (whsec_…); store it securely.",
41
41
  input: z.object({
@@ -54,7 +54,7 @@ const createWebhook = resendOperation({
54
54
  }
55
55
  });
56
56
  const listWebhooks = resendOperation({
57
- id: "list_resend_webhooks",
57
+ id: "resend.list-resend-webhooks",
58
58
  name: "List Resend Webhooks",
59
59
  description: "List registered webhook endpoints.",
60
60
  input: paginationQuerySchema,
@@ -68,7 +68,7 @@ const listWebhooks = resendOperation({
68
68
  }
69
69
  });
70
70
  const retrieveWebhook = resendOperation({
71
- id: "retrieve_resend_webhook",
71
+ id: "resend.retrieve-resend-webhook",
72
72
  name: "Retrieve Resend Webhook",
73
73
  description: "Retrieve a webhook endpoint, including its signing secret.",
74
74
  input: z.object({ id: z.string().min(1) }),
@@ -81,7 +81,7 @@ const retrieveWebhook = resendOperation({
81
81
  }
82
82
  });
83
83
  const updateWebhook = resendOperation({
84
- id: "update_resend_webhook",
84
+ id: "resend.update-resend-webhook",
85
85
  name: "Update Resend Webhook",
86
86
  description: "Update a webhook endpoint. Does NOT rotate the signing secret — cutover via create+delete for rotation.",
87
87
  input: z.object({
@@ -102,7 +102,7 @@ const updateWebhook = resendOperation({
102
102
  }
103
103
  });
104
104
  const deleteWebhook = resendOperation({
105
- id: "delete_resend_webhook",
105
+ id: "resend.delete-resend-webhook",
106
106
  name: "Delete Resend Webhook",
107
107
  description: "Delete a webhook endpoint.",
108
108
  input: z.object({ id: z.string().min(1) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/resend",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -92,7 +92,6 @@
92
92
  "LICENSE"
93
93
  ],
94
94
  "dependencies": {
95
- "@keystrokehq/integration-authoring": "^0.0.7",
96
95
  "zod": "^4.3.6"
97
96
  },
98
97
  "peerDependencies": {
@@ -103,9 +102,10 @@
103
102
  "tsdown": "^0.20.3",
104
103
  "typescript": "^5.9.3",
105
104
  "vitest": "^4.0.18",
106
- "@keystrokehq/core": "^0.0.8",
107
- "@keystrokehq/test-utils": "0.0.0",
108
- "@keystrokehq/typescript-config": "0.0.0"
105
+ "@keystrokehq/core": "^0.0.12",
106
+ "@keystrokehq/typescript-config": "0.0.0",
107
+ "@keystrokehq/integration-authoring": "0.0.9",
108
+ "@keystrokehq/test-utils": "0.0.0"
109
109
  },
110
110
  "keywords": [
111
111
  "resend",
@@ -1,8 +0,0 @@
1
- import { t as resend } from "./integration-BR1nTAnU.mjs";
2
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
-
4
- //#region src/factory.ts
5
- const resendOperation = createOfficialOperationFactory(resend);
6
-
7
- //#endregion
8
- export { resendOperation as t };
@@ -1,28 +0,0 @@
1
- import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
-
4
- //#region src/integration.ts
5
- const resendAuthSchema = z.object({
6
- RESEND_API_KEY: z.string().min(1).regex(/^re_/, "Resend API keys start with \"re_\"."),
7
- RESEND_WEBHOOK_SIGNING_SECRETS: z.record(z.string().min(1), z.string().regex(/^whsec_/, "Svix signing secrets start with \"whsec_\".")).optional()
8
- });
9
- /**
10
- * Resend integration — manual API-key auth.
11
- *
12
- * All requests use `Authorization: Bearer re_…`. A mandatory
13
- * `User-Agent` header is attached by the client. Optional
14
- * webhook signing secrets are stored per-endpoint so webhook
15
- * triggers can verify inbound Svix-signed payloads.
16
- */
17
- const resendOfficialIntegration = {
18
- id: "resend",
19
- name: "Resend",
20
- description: "Resend transactional + receiving + broadcast email, contacts, segments, templates, domains, and Svix-signed webhook helpers.",
21
- auth: resendAuthSchema,
22
- proxy: { hosts: ["api.resend.com"] }
23
- };
24
- const resendBundle = defineOfficialIntegration(resendOfficialIntegration);
25
- const resend = resendBundle.credentialSet;
26
-
27
- //#endregion
28
- export { resendOfficialIntegration as i, resendAuthSchema as n, resendBundle as r, resend as t };