@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.103.0",
3
+ "version": "0.103.2",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@automate.ax/codec": "0.103.0",
52
+ "@automate.ax/codec": "0.103.2",
53
53
  "@cfworker/json-schema": "^4.1.1",
54
54
  "@googleapis/calendar": "^15.0.0",
55
55
  "@googleapis/forms": "^6.0.1",
@@ -76,7 +76,7 @@ const RESEND_FAILED_SCHEMA = z
76
76
 
77
77
  const RESEND_EMAIL_SUPPRESSED_SCHEMA = z
78
78
  .looseObject({
79
- diagnosticCode: z.string().array().optional(),
79
+ diagnosticCode: z.string().nullable().array().optional(),
80
80
  message: z.string(),
81
81
  reason: z.string().optional(),
82
82
  type: z.string(),
@@ -252,13 +252,17 @@ const SLACK_PROVIDER_PINNED_INFO_SCHEMA = z
252
252
  pinned_ts: z.number(),
253
253
  })
254
254
  .catchall(z.json())
255
+ const SLACK_PROVIDER_PIN_COUNT_SCHEMA = z.union([
256
+ z.number().int().nonnegative(),
257
+ z.string().regex(/^\d+$/u),
258
+ ])
255
259
  const SLACK_PROVIDER_PIN_EVENT_BASE_SCHEMA = z
256
260
  .object({
257
261
  channel_id: z.string(),
258
262
  event_ts: SLACK_EVENT_TIMESTAMP_SCHEMA,
259
263
  item: SLACK_PROVIDER_PIN_ITEM_SCHEMA,
260
264
  item_user: z.string().optional(),
261
- pin_count: z.string().optional(),
265
+ pin_count: SLACK_PROVIDER_PIN_COUNT_SCHEMA.optional(),
262
266
  pinned_info: SLACK_PROVIDER_PINNED_INFO_SCHEMA.optional(),
263
267
  user: z.string(),
264
268
  })