@unito/integration-api 4.6.1 → 4.6.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.
@@ -7,19 +7,20 @@
7
7
  {
8
8
  "$ref": "https://unito.io/integration_api/webhookParsedItem.schema.json"
9
9
  },
10
- {
11
- "type": "array",
12
- "items": {
13
- "$ref": "https://unito.io/integration_api/webhookParsedItem.schema.json"
14
- }
15
- },
16
10
  {
17
11
  "$ref": "https://unito.io/integration_api/webhookItem.schema.json"
18
12
  },
19
13
  {
20
14
  "type": "array",
21
15
  "items": {
22
- "$ref": "https://unito.io/integration_api/webhookItem.schema.json"
16
+ "anyOf": [
17
+ {
18
+ "$ref": "https://unito.io/integration_api/webhookParsedItem.schema.json"
19
+ },
20
+ {
21
+ "$ref": "https://unito.io/integration_api/webhookItem.schema.json"
22
+ }
23
+ ]
23
24
  }
24
25
  }
25
26
  ]
@@ -594,5 +594,5 @@ export interface WebhookItem {
594
594
  /**
595
595
  * A WebhookParseResponsePayload describes the shape of the response on the "parse webhook" endpoint.
596
596
  */
597
- export type WebhookParseResponsePayload = WebhookParsedItem | WebhookParsedItem[] | WebhookItem | WebhookItem[];
597
+ export type WebhookParseResponsePayload = WebhookParsedItem | WebhookItem | (WebhookParsedItem | WebhookItem)[];
598
598
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",