@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.
@@ -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: z.string().optional(),
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
  })