@automate.ax/integration-contracts 0.103.0 → 0.103.2
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/resend/index.d.ts +6 -6
- package/dist/resend/schemas.d.ts +10 -10
- package/dist/resend/schemas.js +1 -1
- package/dist/slack/event-schemas.d.ts +158 -158
- package/dist/slack/event-schemas.js +5 -1
- package/dist/slack/index.d.ts +80 -80
- package/package.json +2 -2
- package/src/resend/schemas.ts +1 -1
- package/src/slack/event-schemas.ts +5 -1
|
@@ -217,13 +217,17 @@ const SLACK_PROVIDER_PINNED_INFO_SCHEMA = z
|
|
|
217
217
|
pinned_ts: z.number(),
|
|
218
218
|
})
|
|
219
219
|
.catchall(z.json());
|
|
220
|
+
const SLACK_PROVIDER_PIN_COUNT_SCHEMA = z.union([
|
|
221
|
+
z.number().int().nonnegative(),
|
|
222
|
+
z.string().regex(/^\d+$/u),
|
|
223
|
+
]);
|
|
220
224
|
const SLACK_PROVIDER_PIN_EVENT_BASE_SCHEMA = z
|
|
221
225
|
.object({
|
|
222
226
|
channel_id: z.string(),
|
|
223
227
|
event_ts: SLACK_EVENT_TIMESTAMP_SCHEMA,
|
|
224
228
|
item: SLACK_PROVIDER_PIN_ITEM_SCHEMA,
|
|
225
229
|
item_user: z.string().optional(),
|
|
226
|
-
pin_count:
|
|
230
|
+
pin_count: SLACK_PROVIDER_PIN_COUNT_SCHEMA.optional(),
|
|
227
231
|
pinned_info: SLACK_PROVIDER_PINNED_INFO_SCHEMA.optional(),
|
|
228
232
|
user: z.string(),
|
|
229
233
|
})
|