@automate.ax/integration-contracts 0.75.0 → 0.77.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.
Files changed (144) hide show
  1. package/dist/airtable/api.js +1 -1
  2. package/dist/airtable/index.d.ts +1 -1
  3. package/dist/airtable/index.js +1 -1
  4. package/dist/airtable/schemas.d.ts +1 -1
  5. package/dist/airtable/schemas.js +1 -1
  6. package/dist/asana/api.d.ts +1 -1
  7. package/dist/asana/api.js +1 -1
  8. package/dist/asana/index.d.ts +1 -1
  9. package/dist/asana/index.js +1 -1
  10. package/dist/asana/schemas.d.ts +1 -1
  11. package/dist/asana/schemas.js +1 -1
  12. package/dist/brevo/api.d.ts +1 -1
  13. package/dist/brevo/api.js +1 -1
  14. package/dist/brevo/index.d.ts +1 -1
  15. package/dist/brevo/index.js +1 -1
  16. package/dist/brevo/schemas.d.ts +1 -1
  17. package/dist/brevo/schemas.js +1 -1
  18. package/dist/github/index.d.ts +1 -1
  19. package/dist/github/index.js +1 -1
  20. package/dist/github/schemas.d.ts +1 -1
  21. package/dist/github/schemas.js +1 -1
  22. package/dist/gmail/gmail.d.ts +1 -1
  23. package/dist/gmail/gmail.js +4 -3
  24. package/dist/gmail/index.d.ts +1 -1
  25. package/dist/gmail/index.js +1 -1
  26. package/dist/gmail/schemas.d.ts +417 -5
  27. package/dist/gmail/schemas.js +107 -3
  28. package/dist/google-calendar/event-schemas.d.ts +1 -1
  29. package/dist/google-calendar/event-schemas.js +1 -1
  30. package/dist/google-calendar/google-calendar.d.ts +1 -1
  31. package/dist/google-calendar/google-calendar.js +1 -1
  32. package/dist/google-calendar/index.d.ts +1 -1
  33. package/dist/google-calendar/index.js +1 -1
  34. package/dist/google-calendar/schemas.d.ts +1 -1
  35. package/dist/google-calendar/schemas.js +1 -1
  36. package/dist/google-forms/event-schemas.d.ts +1 -1
  37. package/dist/google-forms/event-schemas.js +1 -1
  38. package/dist/google-forms/google-forms.d.ts +1 -1
  39. package/dist/google-forms/google-forms.js +1 -1
  40. package/dist/google-forms/index.d.ts +1 -1
  41. package/dist/google-forms/index.js +1 -1
  42. package/dist/google-forms/schemas.d.ts +1 -1
  43. package/dist/google-forms/schemas.js +1 -1
  44. package/dist/google-meet/google-meet.d.ts +173 -0
  45. package/dist/google-meet/google-meet.js +371 -0
  46. package/dist/google-meet/index.d.ts +295 -0
  47. package/dist/google-meet/index.js +87 -0
  48. package/dist/google-meet/schemas.d.ts +269 -0
  49. package/dist/google-meet/schemas.js +197 -0
  50. package/dist/linear/api.d.ts +1 -1
  51. package/dist/linear/api.js +1 -1
  52. package/dist/linear/index.d.ts +1 -1
  53. package/dist/linear/index.js +1 -1
  54. package/dist/linear/schemas.d.ts +91 -1
  55. package/dist/linear/schemas.js +64 -1
  56. package/dist/outlook/graph.d.ts +1 -1
  57. package/dist/outlook/graph.js +1 -1
  58. package/dist/outlook/index.d.ts +2 -2
  59. package/dist/outlook/index.js +1 -1
  60. package/dist/outlook/schemas.d.ts +7 -7
  61. package/dist/outlook/schemas.js +1 -1
  62. package/dist/resend/index.d.ts +1 -1
  63. package/dist/resend/index.js +1 -1
  64. package/dist/resend/schemas.d.ts +1 -1
  65. package/dist/resend/schemas.js +1 -1
  66. package/dist/slack/index.d.ts +1 -1
  67. package/dist/slack/index.js +1 -1
  68. package/dist/slack/schemas.d.ts +1 -1
  69. package/dist/slack/schemas.js +1 -1
  70. package/dist/teams/graph.d.ts +1 -1
  71. package/dist/teams/graph.js +1 -1
  72. package/dist/teams/index.d.ts +1 -1
  73. package/dist/teams/index.js +1 -1
  74. package/dist/teams/schemas.d.ts +1 -1
  75. package/dist/teams/schemas.js +1 -1
  76. package/dist/trello/api.d.ts +1 -1
  77. package/dist/trello/api.js +1 -1
  78. package/dist/trello/event-schemas.d.ts +1 -1
  79. package/dist/trello/event-schemas.js +1 -1
  80. package/dist/trello/index.d.ts +1 -1
  81. package/dist/trello/index.js +1 -1
  82. package/dist/trello/schemas.d.ts +1 -1
  83. package/dist/trello/schemas.js +1 -1
  84. package/dist/triggers.d.ts +2 -1
  85. package/dist/triggers.js +2 -0
  86. package/dist/vercel/index.d.ts +1 -1
  87. package/dist/vercel/index.js +1 -1
  88. package/dist/vercel/schemas.d.ts +1 -1
  89. package/dist/vercel/schemas.js +1 -1
  90. package/dist/whatsapp/api.d.ts +1 -1
  91. package/dist/whatsapp/api.js +1 -1
  92. package/dist/whatsapp/index.d.ts +1 -1
  93. package/dist/whatsapp/index.js +1 -1
  94. package/dist/whatsapp/schemas.d.ts +1 -1
  95. package/dist/whatsapp/schemas.js +1 -1
  96. package/package.json +11 -5
  97. package/src/airtable/api.ts +1 -1
  98. package/src/airtable/index.ts +1 -1
  99. package/src/airtable/schemas.ts +1 -1
  100. package/src/asana/api.ts +1 -1
  101. package/src/asana/index.ts +1 -1
  102. package/src/asana/schemas.ts +1 -1
  103. package/src/brevo/api.ts +1 -1
  104. package/src/brevo/index.ts +1 -1
  105. package/src/brevo/schemas.ts +1 -1
  106. package/src/github/index.ts +1 -1
  107. package/src/github/schemas.ts +1 -1
  108. package/src/gmail/gmail.ts +4 -3
  109. package/src/gmail/index.ts +1 -1
  110. package/src/gmail/schemas.ts +107 -3
  111. package/src/google-calendar/event-schemas.ts +1 -1
  112. package/src/google-calendar/google-calendar.ts +1 -1
  113. package/src/google-calendar/index.ts +1 -1
  114. package/src/google-calendar/schemas.ts +1 -1
  115. package/src/google-forms/event-schemas.ts +1 -1
  116. package/src/google-forms/google-forms.ts +1 -1
  117. package/src/google-forms/index.ts +1 -1
  118. package/src/google-forms/schemas.ts +1 -1
  119. package/src/google-meet/google-meet.ts +445 -0
  120. package/src/google-meet/index.ts +117 -0
  121. package/src/google-meet/schemas.ts +274 -0
  122. package/src/linear/api.ts +1 -1
  123. package/src/linear/index.ts +1 -1
  124. package/src/linear/schemas.ts +84 -1
  125. package/src/outlook/graph.ts +1 -1
  126. package/src/outlook/index.ts +1 -1
  127. package/src/outlook/schemas.ts +1 -1
  128. package/src/resend/index.ts +1 -1
  129. package/src/resend/schemas.ts +1 -1
  130. package/src/slack/index.ts +1 -1
  131. package/src/slack/schemas.ts +1 -1
  132. package/src/teams/graph.ts +1 -1
  133. package/src/teams/index.ts +1 -1
  134. package/src/teams/schemas.ts +1 -1
  135. package/src/trello/api.ts +1 -1
  136. package/src/trello/event-schemas.ts +1 -1
  137. package/src/trello/index.ts +1 -1
  138. package/src/trello/schemas.ts +1 -1
  139. package/src/triggers.ts +3 -0
  140. package/src/vercel/index.ts +1 -1
  141. package/src/vercel/schemas.ts +1 -1
  142. package/src/whatsapp/api.ts +1 -1
  143. package/src/whatsapp/index.ts +1 -1
  144. package/src/whatsapp/schemas.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.75.0",
3
+ "version": "0.77.0",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,6 +24,7 @@
24
24
  "./gmail": "./src/gmail/index.ts",
25
25
  "./google-calendar": "./src/google-calendar/index.ts",
26
26
  "./google-forms": "./src/google-forms/index.ts",
27
+ "./google-meet": "./src/google-meet/index.ts",
27
28
  "./github": "./src/github/index.ts",
28
29
  "./linear": "./src/linear/index.ts",
29
30
  "./outlook": "./src/outlook/index.ts",
@@ -41,10 +42,11 @@
41
42
  }
42
43
  },
43
44
  "dependencies": {
44
- "@automate.ax/codec": "0.75.0",
45
+ "@automate.ax/codec": "0.77.0",
45
46
  "@googleapis/calendar": "^15.0.0",
46
47
  "@googleapis/forms": "^6.0.1",
47
48
  "@googleapis/gmail": "^12.0.0",
49
+ "@googleapis/meet": "^5.0.0",
48
50
  "@octokit/openapi-webhooks-types": "^12.1.0",
49
51
  "@octokit/rest": "^22.0.1",
50
52
  "html-to-text": "^10.0.0",
@@ -60,7 +62,6 @@
60
62
  "@types/nodemailer": "^8.0.1",
61
63
  "@typescript/native": "npm:typescript@^7.0.2",
62
64
  "@zachsents/oxlint-config": "^0.4.1",
63
- "concurrently": "^10.0.4",
64
65
  "eslint": "^9.39.5",
65
66
  "oxlint": "^1.76.0",
66
67
  "oxlint-tsgolint": "^7.0.2001",
@@ -68,8 +69,8 @@
68
69
  },
69
70
  "scripts": {
70
71
  "typecheck": "tsc --noEmit",
71
- "lint": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware\" \"bun --bun eslint .\"",
72
- "lint:fix": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware --fix --fix-suggestions\" \"bun --bun eslint . --fix\"",
72
+ "lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
73
+ "lint:fix": "oxlint --type-aware --threads=2 --fix --fix-suggestions && bun --bun eslint . --fix --cache --cache-strategy content",
73
74
  "check": "bun run typecheck && bun run lint",
74
75
  "build": "zshy",
75
76
  "prepublishOnly": "bun run check && bun run build"
@@ -115,6 +116,11 @@
115
116
  "types": "./dist/google-forms/index.d.ts",
116
117
  "default": "./dist/google-forms/index.js"
117
118
  },
119
+ "./google-meet": {
120
+ "bun": "./src/google-meet/index.ts",
121
+ "types": "./dist/google-meet/index.d.ts",
122
+ "default": "./dist/google-meet/index.js"
123
+ },
118
124
  "./github": {
119
125
  "bun": "./src/github/index.ts",
120
126
  "types": "./dist/github/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const AIRTABLE_API_ORIGIN = "https://api.airtable.com/v0/"
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import {
3
3
  AIRTABLE_RECORD_CREATED_EVENT_SCHEMA,
4
4
  AIRTABLE_RECORD_DELETED_EVENT_SCHEMA,
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  const AIRTABLE_FIELDS_BY_ID_SCHEMA = z.record(z.string(), z.json())
4
4
  const AIRTABLE_ACTION_METADATA_SCHEMA = z
package/src/asana/api.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { JsonObject } from "type-fest"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  const ASANA_API_BASE_URL = "https://app.asana.com/api/1.0"
5
5
  const ASANA_SECRET_SCHEMA = z.object({
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import {
3
3
  ASANA_COMMENT_ADDED_EVENT_SCHEMA,
4
4
  ASANA_EVENT_SCHEMA,
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const ASANA_RESOURCE_SCHEMA = z.object({
4
4
  /** Stable Asana globally unique identifier. */
package/src/brevo/api.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  const BREVO_API_BASE_URL = "https://api.brevo.com/v3/"
4
4
  const BREVO_API_ORIGIN = new URL(BREVO_API_BASE_URL).origin
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import {
3
3
  BREVO_EMAIL_BLOCKED_EVENT_SCHEMA,
4
4
  BREVO_EMAIL_CLICKED_EVENT_SCHEMA,
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const BREVO_TRANSACTIONAL_EVENT_TYPES = [
4
4
  "blocked",
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import {
3
3
  GITHUB_ISSUE_CLOSED_EVENT_SCHEMA,
4
4
  GITHUB_ISSUE_EVENT_SCHEMA,
@@ -1,7 +1,7 @@
1
1
  import type { Encodable } from "@automate.ax/codec"
2
2
  import type { webhooks } from "@octokit/openapi-webhooks-types"
3
3
  import type { Octokit } from "@octokit/rest"
4
- import { z } from "zod"
4
+ import * as z from "zod"
5
5
 
6
6
  const GITHUB_EVENT_BASE_SCHEMA = z.looseObject({
7
7
  installation: z.looseObject({ id: z.number().int().positive() }),
@@ -6,10 +6,11 @@ import PostalMime, {
6
6
  type Address,
7
7
  type Attachment,
8
8
  } from "postal-mime"
9
- import { z } from "zod"
9
+ import * as z from "zod"
10
10
  import {
11
11
  ATTACHMENT_INPUT_SCHEMA,
12
12
  DRAFT_IDENTIFIER_SCHEMA,
13
+ LABEL_COLOR_SCHEMA,
13
14
  LABEL_SCHEMA,
14
15
  MAILBOX_SCHEMA,
15
16
  MESSAGE_METADATA_SCHEMA,
@@ -483,10 +484,10 @@ export function toGmailLabel(
483
484
  return {
484
485
  ...(label.color?.backgroundColor &&
485
486
  label.color.textColor && {
486
- color: {
487
+ color: LABEL_COLOR_SCHEMA.parse({
487
488
  backgroundColor: label.color.backgroundColor,
488
489
  textColor: label.color.textColor,
489
- },
490
+ }),
490
491
  }),
491
492
  labelId: label.id,
492
493
  labelListVisibility: label.labelListVisibility
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import { LABEL_CHANGE_SCHEMA, MESSAGE_SCHEMA } from "./schemas"
3
3
 
4
4
  export * from "./gmail"
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const PRIORITY_SCHEMA = z.enum(["high", "normal", "low"])
4
4
  const DISPOSITION_SCHEMA = z.enum(["attachment", "inline"])
@@ -9,13 +9,117 @@ export const LABEL_LIST_VISIBILITY_SCHEMA = z.enum([
9
9
  ])
10
10
  export const MESSAGE_LIST_VISIBILITY_SCHEMA = z.enum(["hide", "show"])
11
11
  const LABEL_TYPE_SCHEMA = z.enum(["system", "user"])
12
+ const LABEL_COLOR_VALUE_SCHEMA = z.enum([
13
+ "#000000",
14
+ "#434343",
15
+ "#666666",
16
+ "#999999",
17
+ "#cccccc",
18
+ "#efefef",
19
+ "#f3f3f3",
20
+ "#ffffff",
21
+ "#fb4c2f",
22
+ "#ffad47",
23
+ "#fad165",
24
+ "#16a766",
25
+ "#43d692",
26
+ "#4a86e8",
27
+ "#a479e2",
28
+ "#f691b3",
29
+ "#f6c5be",
30
+ "#ffe6c7",
31
+ "#fef1d1",
32
+ "#b9e4d0",
33
+ "#c6f3de",
34
+ "#c9daf8",
35
+ "#e4d7f5",
36
+ "#fcdee8",
37
+ "#efa093",
38
+ "#ffd6a2",
39
+ "#fce8b3",
40
+ "#89d3b2",
41
+ "#a0eac9",
42
+ "#a4c2f4",
43
+ "#d0bcf1",
44
+ "#fbc8d9",
45
+ "#e66550",
46
+ "#ffbc6b",
47
+ "#fcda83",
48
+ "#44b984",
49
+ "#68dfa9",
50
+ "#6d9eeb",
51
+ "#b694e8",
52
+ "#f7a7c0",
53
+ "#cc3a21",
54
+ "#eaa041",
55
+ "#f2c960",
56
+ "#149e60",
57
+ "#3dc789",
58
+ "#3c78d8",
59
+ "#8e63ce",
60
+ "#e07798",
61
+ "#ac2b16",
62
+ "#cf8933",
63
+ "#d5ae49",
64
+ "#0b804b",
65
+ "#2a9c68",
66
+ "#285bac",
67
+ "#653e9b",
68
+ "#b65775",
69
+ "#822111",
70
+ "#a46a21",
71
+ "#aa8831",
72
+ "#076239",
73
+ "#1a764d",
74
+ "#1c4587",
75
+ "#41236d",
76
+ "#83334c",
77
+ "#464646",
78
+ "#e7e7e7",
79
+ "#0d3472",
80
+ "#b6cff5",
81
+ "#0d3b44",
82
+ "#98d7e4",
83
+ "#3d188e",
84
+ "#e3d7ff",
85
+ "#711a36",
86
+ "#fbd3e0",
87
+ "#8a1c0a",
88
+ "#f2b2a8",
89
+ "#7a2e0b",
90
+ "#ffc8af",
91
+ "#7a4706",
92
+ "#ffdeb5",
93
+ "#594c05",
94
+ "#fbe983",
95
+ "#684e07",
96
+ "#fdedc1",
97
+ "#0b4f30",
98
+ "#b3efd3",
99
+ "#04502e",
100
+ "#a2dcc1",
101
+ "#c2c2c2",
102
+ "#4986e7",
103
+ "#2da2bb",
104
+ "#b99aff",
105
+ "#994a64",
106
+ "#f691b2",
107
+ "#ff7537",
108
+ "#ffad46",
109
+ "#662e37",
110
+ "#ebdbde",
111
+ "#cca6ac",
112
+ "#094228",
113
+ "#42d692",
114
+ "#16a765",
115
+ ])
12
116
  export const HEADERS_SCHEMA = z.record(z.string(), z.string())
13
117
  export const LABEL_COLOR_SCHEMA = z.object({
14
118
  /** Hex background color selected from Gmail's supported palette. */
15
- backgroundColor: z.string().min(1),
119
+ backgroundColor: LABEL_COLOR_VALUE_SCHEMA,
16
120
 
17
121
  /** Hex text color selected from Gmail's supported palette. */
18
- textColor: z.string().min(1),
122
+ textColor: LABEL_COLOR_VALUE_SCHEMA,
19
123
  })
20
124
  export const MAILBOX_SCHEMA = z.object({
21
125
  /** RFC 5322 email address. */
@@ -1,5 +1,5 @@
1
1
  import { CALENDAR_EVENT_SCHEMA } from "./schemas"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA = z.object({
5
5
  /** Calendar that previously contained the event. */
@@ -1,6 +1,6 @@
1
1
  import { Buffer } from "node:buffer"
2
2
  import { auth, calendar, type calendar_v3 } from "@googleapis/calendar"
3
- import { z } from "zod"
3
+ import * as z from "zod"
4
4
  import {
5
5
  ACL_PAGE_SCHEMA,
6
6
  ACL_RULE_SCHEMA,
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import { GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA } from "./event-schemas"
3
3
  import { CALENDAR_EVENT_SCHEMA } from "./schemas"
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const CALENDAR_REFERENCE_SCHEMA = z.string().trim().min(1)
4
4
  export const EVENT_REFERENCE_SCHEMA = z.string().trim().min(1)
@@ -1,5 +1,5 @@
1
1
  import { FORM_SCHEMA } from "./schemas"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const GOOGLE_FORMS_NOTIFICATION_SCHEMA = z.object({
5
5
  /** Provider event category that caused the notification. */
@@ -1,5 +1,5 @@
1
1
  import { auth, forms, type forms_v1 } from "@googleapis/forms"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
  import {
4
4
  EMAIL_COLLECTION_TYPE_SCHEMA,
5
5
  FORM_ITEM_INPUT_SCHEMA,
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
  import { GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA } from "./event-schemas"
3
3
  import { FORM_RESPONSE_SCHEMA } from "./schemas"
4
4
 
@@ -1,5 +1,5 @@
1
1
  import type { forms_v1 } from "@googleapis/forms"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const FORM_REFERENCE_SCHEMA = z.string().trim().min(1)
5
5
  export const ITEM_REFERENCE_SCHEMA = z.union([