@automate.ax/integration-contracts 0.99.5 → 0.102.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.
@@ -135,11 +135,11 @@ export const RESEND_EMAIL_SCHEMA = RESEND_EMAIL_WIRE_SCHEMA.transform(
135
135
 
136
136
  export const RESEND_ATTACHMENT_WIRE_SCHEMA = z.object({
137
137
  content_disposition: z.enum(["attachment", "inline"]).nullable(),
138
- content_id: z.string(),
138
+ content_id: z.string().optional(),
139
139
  content_type: z.string(),
140
140
  download_url: z.url(),
141
141
  expires_at: z.string(),
142
- filename: z.string().nullable(),
142
+ filename: z.string().nullable().optional(),
143
143
  id: z.string(),
144
144
  size: z.number().int().nonnegative(),
145
145
  })
@@ -151,14 +151,16 @@ export const RESEND_ATTACHMENT_SCHEMA = RESEND_ATTACHMENT_WIRE_SCHEMA.transform(
151
151
  content_type: contentType,
152
152
  download_url: downloadUrl,
153
153
  expires_at: expiresAt,
154
+ filename,
154
155
  ...attachment
155
156
  }) => ({
156
157
  ...attachment,
157
158
  contentDisposition,
158
- contentId,
159
+ ...(contentId === undefined ? {} : { contentId }),
159
160
  contentType,
160
161
  downloadUrl,
161
162
  expiresAt,
163
+ ...(filename === undefined ? {} : { filename }),
162
164
  }),
163
165
  )
164
166
 
package/src/triggers.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { airtableTriggerContracts } from "./airtable"
2
+ import type { automateTriggerContracts } from "./automate"
2
3
  import type { asanaTriggerContracts } from "./asana"
3
4
  import type { brevoTriggerContracts } from "./brevo"
4
5
  import type { convexTriggerContracts } from "./convex"
@@ -22,6 +23,7 @@ import type { whatsappTriggerContracts } from "./whatsapp"
22
23
  import type { z } from "zod"
23
24
 
24
25
  export type TriggerContractMap = typeof airtableTriggerContracts &
26
+ typeof automateTriggerContracts &
25
27
  typeof asanaTriggerContracts &
26
28
  typeof brevoTriggerContracts &
27
29
  typeof convexTriggerContracts &