@tembo-io/sdk 0.24.0 → 0.26.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 (246) hide show
  1. package/api.md +166 -24
  2. package/dist/cjs/resources/agents/agents.d.ts +70 -0
  3. package/dist/cjs/resources/agents/agents.d.ts.map +1 -1
  4. package/dist/cjs/resources/agents/agents.js.map +1 -1
  5. package/dist/cjs/resources/agents/content-revisions.d.ts +27 -0
  6. package/dist/cjs/resources/agents/content-revisions.d.ts.map +1 -1
  7. package/dist/cjs/resources/agents/runs.d.ts +16 -0
  8. package/dist/cjs/resources/agents/runs.d.ts.map +1 -1
  9. package/dist/cjs/resources/agents/schedules.d.ts +34 -0
  10. package/dist/cjs/resources/agents/schedules.d.ts.map +1 -1
  11. package/dist/cjs/resources/agents/templates.d.ts +821 -75
  12. package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
  13. package/dist/cjs/resources/agents/triggers.d.ts +1268 -4
  14. package/dist/cjs/resources/agents/triggers.d.ts.map +1 -1
  15. package/dist/cjs/resources/api-keys.d.ts +27 -3
  16. package/dist/cjs/resources/api-keys.d.ts.map +1 -1
  17. package/dist/cjs/resources/api-keys.js +3 -3
  18. package/dist/cjs/resources/api-keys.js.map +1 -1
  19. package/dist/cjs/resources/artifacts.d.ts +25 -0
  20. package/dist/cjs/resources/artifacts.d.ts.map +1 -1
  21. package/dist/cjs/resources/audit-logs.d.ts +3 -0
  22. package/dist/cjs/resources/audit-logs.d.ts.map +1 -1
  23. package/dist/cjs/resources/billing.d.ts +19 -0
  24. package/dist/cjs/resources/billing.d.ts.map +1 -1
  25. package/dist/cjs/resources/folders.d.ts +14 -0
  26. package/dist/cjs/resources/folders.d.ts.map +1 -1
  27. package/dist/cjs/resources/insights.d.ts +76 -0
  28. package/dist/cjs/resources/insights.d.ts.map +1 -1
  29. package/dist/cjs/resources/integrations/integrations.d.ts +44 -8
  30. package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -1
  31. package/dist/cjs/resources/integrations/integrations.js +6 -8
  32. package/dist/cjs/resources/integrations/integrations.js.map +1 -1
  33. package/dist/cjs/resources/integrations/providers.d.ts +2 -75
  34. package/dist/cjs/resources/integrations/providers.d.ts.map +1 -1
  35. package/dist/cjs/resources/integrations/triggers.d.ts +3 -0
  36. package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -1
  37. package/dist/cjs/resources/mcp-connections.d.ts +21 -0
  38. package/dist/cjs/resources/mcp-connections.d.ts.map +1 -1
  39. package/dist/cjs/resources/messages.d.ts +44 -0
  40. package/dist/cjs/resources/messages.d.ts.map +1 -1
  41. package/dist/cjs/resources/organizations/index.d.ts +2 -0
  42. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  43. package/dist/cjs/resources/organizations/index.js +3 -1
  44. package/dist/cjs/resources/organizations/index.js.map +1 -1
  45. package/dist/cjs/resources/organizations/members.d.ts +46 -0
  46. package/dist/cjs/resources/organizations/members.d.ts.map +1 -1
  47. package/dist/cjs/resources/organizations/organizations.d.ts +15 -2
  48. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  49. package/dist/cjs/resources/organizations/organizations.js +4 -0
  50. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  51. package/dist/cjs/resources/organizations/roles.d.ts +10 -10
  52. package/dist/cjs/resources/organizations/roles.d.ts.map +1 -1
  53. package/dist/cjs/resources/organizations/roles.js +0 -1
  54. package/dist/cjs/resources/organizations/roles.js.map +1 -1
  55. package/dist/cjs/resources/organizations/secrets.d.ts +15 -0
  56. package/dist/cjs/resources/organizations/secrets.d.ts.map +1 -1
  57. package/dist/cjs/resources/organizations/settings.d.ts +9 -0
  58. package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
  59. package/dist/cjs/resources/organizations/subscriptions.d.ts +368 -0
  60. package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
  61. package/dist/cjs/resources/organizations/teams.d.ts +247 -0
  62. package/dist/cjs/resources/organizations/teams.d.ts.map +1 -0
  63. package/dist/cjs/resources/organizations/teams.js +149 -0
  64. package/dist/cjs/resources/organizations/teams.js.map +1 -0
  65. package/dist/cjs/resources/pins.d.ts +32 -2
  66. package/dist/cjs/resources/pins.d.ts.map +1 -1
  67. package/dist/cjs/resources/projects/builds.d.ts +14 -4
  68. package/dist/cjs/resources/projects/builds.d.ts.map +1 -1
  69. package/dist/cjs/resources/projects/builds.js +3 -3
  70. package/dist/cjs/resources/projects/builds.js.map +1 -1
  71. package/dist/cjs/resources/projects/projects.d.ts +95 -18
  72. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  73. package/dist/cjs/resources/projects/projects.js +1 -6
  74. package/dist/cjs/resources/projects/projects.js.map +1 -1
  75. package/dist/cjs/resources/projects/schedules.d.ts +20 -0
  76. package/dist/cjs/resources/projects/schedules.d.ts.map +1 -1
  77. package/dist/cjs/resources/projects/snapshots.d.ts +19 -0
  78. package/dist/cjs/resources/projects/snapshots.d.ts.map +1 -1
  79. package/dist/cjs/resources/pull-requests.d.ts +22 -2
  80. package/dist/cjs/resources/pull-requests.d.ts.map +1 -1
  81. package/dist/cjs/resources/repositories.d.ts +19 -6
  82. package/dist/cjs/resources/repositories.d.ts.map +1 -1
  83. package/dist/cjs/resources/repositories.js +1 -4
  84. package/dist/cjs/resources/repositories.js.map +1 -1
  85. package/dist/cjs/resources/sessions/diffs.d.ts +43 -0
  86. package/dist/cjs/resources/sessions/diffs.d.ts.map +1 -1
  87. package/dist/cjs/resources/sessions/index.d.ts +2 -0
  88. package/dist/cjs/resources/sessions/index.d.ts.map +1 -1
  89. package/dist/cjs/resources/sessions/index.js +3 -1
  90. package/dist/cjs/resources/sessions/index.js.map +1 -1
  91. package/dist/cjs/resources/sessions/inputs.d.ts +1 -0
  92. package/dist/cjs/resources/sessions/inputs.d.ts.map +1 -1
  93. package/dist/cjs/resources/sessions/sessions.d.ts +284 -22
  94. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  95. package/dist/cjs/resources/sessions/sessions.js +9 -7
  96. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  97. package/dist/cjs/resources/sessions/shares.d.ts +141 -0
  98. package/dist/cjs/resources/sessions/shares.d.ts.map +1 -0
  99. package/dist/cjs/resources/sessions/shares.js +66 -0
  100. package/dist/cjs/resources/sessions/shares.js.map +1 -0
  101. package/dist/cjs/resources/sessions/sources.d.ts +19 -0
  102. package/dist/cjs/resources/sessions/sources.d.ts.map +1 -1
  103. package/dist/cjs/resources/skills/marketplace.d.ts +1 -0
  104. package/dist/cjs/resources/skills/marketplace.d.ts.map +1 -1
  105. package/dist/cjs/resources/skills/skills.d.ts +20 -3
  106. package/dist/cjs/resources/skills/skills.d.ts.map +1 -1
  107. package/dist/cjs/resources/skills/skills.js +3 -3
  108. package/dist/cjs/resources/skills/skills.js.map +1 -1
  109. package/dist/cjs/resources/users/connected-accounts.d.ts +6 -0
  110. package/dist/cjs/resources/users/connected-accounts.d.ts.map +1 -1
  111. package/dist/cjs/resources/users/environment-variables.d.ts +7 -0
  112. package/dist/cjs/resources/users/environment-variables.d.ts.map +1 -1
  113. package/dist/cjs/resources/users/settings.d.ts +3 -3
  114. package/dist/cjs/resources/users/settings.d.ts.map +1 -1
  115. package/dist/cjs/resources/users/settings.js +3 -3
  116. package/dist/cjs/resources/users/settings.js.map +1 -1
  117. package/dist/cjs/resources/users/subscriptions.d.ts +368 -0
  118. package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
  119. package/dist/cjs/resources/users/users.d.ts +4 -0
  120. package/dist/cjs/resources/users/users.d.ts.map +1 -1
  121. package/dist/cjs/resources/users/users.js.map +1 -1
  122. package/dist/cjs/version.d.ts +1 -1
  123. package/dist/cjs/version.js +1 -1
  124. package/dist/esm/resources/agents/agents.d.ts +70 -0
  125. package/dist/esm/resources/agents/agents.d.ts.map +1 -1
  126. package/dist/esm/resources/agents/agents.js.map +1 -1
  127. package/dist/esm/resources/agents/content-revisions.d.ts +27 -0
  128. package/dist/esm/resources/agents/content-revisions.d.ts.map +1 -1
  129. package/dist/esm/resources/agents/runs.d.ts +16 -0
  130. package/dist/esm/resources/agents/runs.d.ts.map +1 -1
  131. package/dist/esm/resources/agents/schedules.d.ts +34 -0
  132. package/dist/esm/resources/agents/schedules.d.ts.map +1 -1
  133. package/dist/esm/resources/agents/templates.d.ts +821 -75
  134. package/dist/esm/resources/agents/templates.d.ts.map +1 -1
  135. package/dist/esm/resources/agents/triggers.d.ts +1268 -4
  136. package/dist/esm/resources/agents/triggers.d.ts.map +1 -1
  137. package/dist/esm/resources/api-keys.d.ts +27 -3
  138. package/dist/esm/resources/api-keys.d.ts.map +1 -1
  139. package/dist/esm/resources/api-keys.js +3 -3
  140. package/dist/esm/resources/api-keys.js.map +1 -1
  141. package/dist/esm/resources/artifacts.d.ts +25 -0
  142. package/dist/esm/resources/artifacts.d.ts.map +1 -1
  143. package/dist/esm/resources/audit-logs.d.ts +3 -0
  144. package/dist/esm/resources/audit-logs.d.ts.map +1 -1
  145. package/dist/esm/resources/billing.d.ts +19 -0
  146. package/dist/esm/resources/billing.d.ts.map +1 -1
  147. package/dist/esm/resources/folders.d.ts +14 -0
  148. package/dist/esm/resources/folders.d.ts.map +1 -1
  149. package/dist/esm/resources/insights.d.ts +76 -0
  150. package/dist/esm/resources/insights.d.ts.map +1 -1
  151. package/dist/esm/resources/integrations/integrations.d.ts +44 -8
  152. package/dist/esm/resources/integrations/integrations.d.ts.map +1 -1
  153. package/dist/esm/resources/integrations/integrations.js +6 -8
  154. package/dist/esm/resources/integrations/integrations.js.map +1 -1
  155. package/dist/esm/resources/integrations/providers.d.ts +2 -75
  156. package/dist/esm/resources/integrations/providers.d.ts.map +1 -1
  157. package/dist/esm/resources/integrations/triggers.d.ts +3 -0
  158. package/dist/esm/resources/integrations/triggers.d.ts.map +1 -1
  159. package/dist/esm/resources/mcp-connections.d.ts +21 -0
  160. package/dist/esm/resources/mcp-connections.d.ts.map +1 -1
  161. package/dist/esm/resources/messages.d.ts +44 -0
  162. package/dist/esm/resources/messages.d.ts.map +1 -1
  163. package/dist/esm/resources/organizations/index.d.ts +2 -0
  164. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  165. package/dist/esm/resources/organizations/index.js +1 -0
  166. package/dist/esm/resources/organizations/index.js.map +1 -1
  167. package/dist/esm/resources/organizations/members.d.ts +46 -0
  168. package/dist/esm/resources/organizations/members.d.ts.map +1 -1
  169. package/dist/esm/resources/organizations/organizations.d.ts +15 -2
  170. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  171. package/dist/esm/resources/organizations/organizations.js +4 -0
  172. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  173. package/dist/esm/resources/organizations/roles.d.ts +10 -10
  174. package/dist/esm/resources/organizations/roles.d.ts.map +1 -1
  175. package/dist/esm/resources/organizations/roles.js +0 -1
  176. package/dist/esm/resources/organizations/roles.js.map +1 -1
  177. package/dist/esm/resources/organizations/secrets.d.ts +15 -0
  178. package/dist/esm/resources/organizations/secrets.d.ts.map +1 -1
  179. package/dist/esm/resources/organizations/settings.d.ts +9 -0
  180. package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
  181. package/dist/esm/resources/organizations/subscriptions.d.ts +368 -0
  182. package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
  183. package/dist/esm/resources/organizations/teams.d.ts +247 -0
  184. package/dist/esm/resources/organizations/teams.d.ts.map +1 -0
  185. package/dist/esm/resources/organizations/teams.js +145 -0
  186. package/dist/esm/resources/organizations/teams.js.map +1 -0
  187. package/dist/esm/resources/pins.d.ts +32 -2
  188. package/dist/esm/resources/pins.d.ts.map +1 -1
  189. package/dist/esm/resources/projects/builds.d.ts +14 -4
  190. package/dist/esm/resources/projects/builds.d.ts.map +1 -1
  191. package/dist/esm/resources/projects/builds.js +3 -3
  192. package/dist/esm/resources/projects/builds.js.map +1 -1
  193. package/dist/esm/resources/projects/projects.d.ts +95 -18
  194. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  195. package/dist/esm/resources/projects/projects.js +1 -6
  196. package/dist/esm/resources/projects/projects.js.map +1 -1
  197. package/dist/esm/resources/projects/schedules.d.ts +20 -0
  198. package/dist/esm/resources/projects/schedules.d.ts.map +1 -1
  199. package/dist/esm/resources/projects/snapshots.d.ts +19 -0
  200. package/dist/esm/resources/projects/snapshots.d.ts.map +1 -1
  201. package/dist/esm/resources/pull-requests.d.ts +22 -2
  202. package/dist/esm/resources/pull-requests.d.ts.map +1 -1
  203. package/dist/esm/resources/repositories.d.ts +19 -6
  204. package/dist/esm/resources/repositories.d.ts.map +1 -1
  205. package/dist/esm/resources/repositories.js +1 -4
  206. package/dist/esm/resources/repositories.js.map +1 -1
  207. package/dist/esm/resources/sessions/diffs.d.ts +43 -0
  208. package/dist/esm/resources/sessions/diffs.d.ts.map +1 -1
  209. package/dist/esm/resources/sessions/index.d.ts +2 -0
  210. package/dist/esm/resources/sessions/index.d.ts.map +1 -1
  211. package/dist/esm/resources/sessions/index.js +1 -0
  212. package/dist/esm/resources/sessions/index.js.map +1 -1
  213. package/dist/esm/resources/sessions/inputs.d.ts +1 -0
  214. package/dist/esm/resources/sessions/inputs.d.ts.map +1 -1
  215. package/dist/esm/resources/sessions/sessions.d.ts +284 -22
  216. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  217. package/dist/esm/resources/sessions/sessions.js +9 -7
  218. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  219. package/dist/esm/resources/sessions/shares.d.ts +141 -0
  220. package/dist/esm/resources/sessions/shares.d.ts.map +1 -0
  221. package/dist/esm/resources/sessions/shares.js +62 -0
  222. package/dist/esm/resources/sessions/shares.js.map +1 -0
  223. package/dist/esm/resources/sessions/sources.d.ts +19 -0
  224. package/dist/esm/resources/sessions/sources.d.ts.map +1 -1
  225. package/dist/esm/resources/skills/marketplace.d.ts +1 -0
  226. package/dist/esm/resources/skills/marketplace.d.ts.map +1 -1
  227. package/dist/esm/resources/skills/skills.d.ts +20 -3
  228. package/dist/esm/resources/skills/skills.d.ts.map +1 -1
  229. package/dist/esm/resources/skills/skills.js +3 -3
  230. package/dist/esm/resources/skills/skills.js.map +1 -1
  231. package/dist/esm/resources/users/connected-accounts.d.ts +6 -0
  232. package/dist/esm/resources/users/connected-accounts.d.ts.map +1 -1
  233. package/dist/esm/resources/users/environment-variables.d.ts +7 -0
  234. package/dist/esm/resources/users/environment-variables.d.ts.map +1 -1
  235. package/dist/esm/resources/users/settings.d.ts +3 -3
  236. package/dist/esm/resources/users/settings.d.ts.map +1 -1
  237. package/dist/esm/resources/users/settings.js +3 -3
  238. package/dist/esm/resources/users/settings.js.map +1 -1
  239. package/dist/esm/resources/users/subscriptions.d.ts +368 -0
  240. package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
  241. package/dist/esm/resources/users/users.d.ts +4 -0
  242. package/dist/esm/resources/users/users.d.ts.map +1 -1
  243. package/dist/esm/resources/users/users.js.map +1 -1
  244. package/dist/esm/version.d.ts +1 -1
  245. package/dist/esm/version.js +1 -1
  246. package/package.json +1 -1
@@ -89,6 +89,7 @@ export interface TriggerListParams {
89
89
  /**
90
90
  * Continuation cursor from the previous response nextCursor. Omit for the first page; null nextCursor means there are no more pages.
91
91
  * @format uuid
92
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
92
93
  */
93
94
  cursor?: string;
94
95
  /**
@@ -103,6 +104,7 @@ export interface TriggerListResponse {
103
104
  items: Array<TriggerListResponse.Item>;
104
105
  /**
105
106
  * @format uuid
107
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
106
108
  */
107
109
  nextCursor: string | null;
108
110
  }
@@ -110,23 +112,28 @@ export declare namespace TriggerListResponse {
110
112
  interface Item {
111
113
  /**
112
114
  * @format uuid
115
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
113
116
  */
114
117
  id: string;
115
118
  triggerName: string;
116
119
  /**
117
120
  * @format date-time
121
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
118
122
  */
119
123
  enabledAt: string | null;
120
124
  /**
121
125
  * @format date-time
126
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
122
127
  */
123
128
  createdAt: string;
124
129
  /**
125
130
  * @format date-time
131
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
126
132
  */
127
133
  updatedAt: string;
128
134
  /**
129
135
  * @format uuid
136
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
130
137
  */
131
138
  agentId: string;
132
139
  /**
@@ -136,13 +143,322 @@ export declare namespace TriggerListResponse {
136
143
  triggerDisplayName: string;
137
144
  /**
138
145
  * @format uuid
146
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
139
147
  */
140
148
  integrationId: string | null;
141
149
  integrationType: string | null;
142
150
  /**
143
151
  * Conditions that determine whether the selected integration event starts the agent. Available fields depend on the integration and event type.
144
152
  */
145
- filters: TemplatesAPI.TriggerFilters;
153
+ filters: TemplatesAPI.AtlassianIssueAddedToBoardFilters | TemplatesAPI.AtlassianIssueAssignedToUserFilters | Item.AtlassianIssueCommentCreatedFilters | TemplatesAPI.AtlassianIssueCreatedFilters | TemplatesAPI.AtlassianIssueLabelAddedFilters | TemplatesAPI.AtlassianIssueStatusChangedFilters | TemplatesAPI.AtlassianIssueUpdatedFilters | TemplatesAPI.BitbucketPullRequestOpenedFilters | TemplatesAPI.GithubCreateFilters | TemplatesAPI.GithubIssueClosedFilters | TemplatesAPI.GithubIssueCommentCreatedFilters | TemplatesAPI.GithubIssueOpenedFilters | Item.GithubPullRequestClosedFiltersOutput | Item.GithubPullRequestMergedFiltersOutput | Item.GithubPullRequestOpenedFiltersOutput | Item.GithubPullRequestReadyForReviewFiltersOutput | Item.GithubPullRequestLabeledFiltersOutput | Item.GithubPullRequestReviewRequestedFiltersOutput | Item.GithubPullRequestReviewSubmittedFiltersOutput | Item.GithubReleasePublishedFilters | Item.GithubPullRequestSynchronizeFiltersOutput | TemplatesAPI.GithubTemboPullRequestOpenedFilters | TemplatesAPI.GithubWorkflowRunFailedFilters | Item.GithubWorkflowRunCompletedFilters | TemplatesAPI.GitlabBotMergeRequestCommentFilters | TemplatesAPI.GitlabIssueClosedFilters | TemplatesAPI.GitlabIssueOpenedFilters | Item.GitlabIssueLabelAddedFilters | Item.GitlabIssueUpdatedFilters | TemplatesAPI.GitlabMergeRequestClosedFilters | TemplatesAPI.GitlabMergeRequestMergedFilters | TemplatesAPI.GitlabMergeRequestOpenedFilters | TemplatesAPI.GitlabMergeRequestUpdatedFilters | TemplatesAPI.GitlabMergeRequestReadyForReviewFilters | TemplatesAPI.GitlabPipelineFailedFilters | TemplatesAPI.GitlabRefCreatedFilters | TemplatesAPI.LinearIssueCreateFilters | TemplatesAPI.LinearIssueLabelAddedFilters | TemplatesAPI.LinearIssueStatusChangedFilters | TemplatesAPI.LinearIssueUpdatedFilters | TemplatesAPI.SentryIssueCreatedFilters | TemplatesAPI.SlackMessageReactionAddedFilters | TemplatesAPI.SlackMessageSentInChannelFilters | Item.Filters | Item.Filters2 | Item.Filters3 | Item.Filters4 | Item.Filters5 | TemplatesAPI.EmptyTriggerFilters;
154
+ }
155
+ namespace Item {
156
+ interface AtlassianIssueCommentCreatedFilters {
157
+ /**
158
+ * Only trigger if the issue is in one of the specified projects
159
+ */
160
+ projects?: Array<string>;
161
+ /**
162
+ * Only trigger if the comment was added by one of the specified users
163
+ */
164
+ commentedBy?: Array<string>;
165
+ /**
166
+ * Only trigger if the comment contains one of these substrings
167
+ */
168
+ messageContains?: Array<string>;
169
+ /**
170
+ * Only trigger if the issue has at least one of the specified labels
171
+ */
172
+ labels?: Array<string>;
173
+ [k: string]: unknown;
174
+ }
175
+ interface GithubPullRequestClosedFiltersOutput {
176
+ /**
177
+ * Enable agent for Tembo-created pull requests (enabled by default)
178
+ */
179
+ temboPrs: boolean;
180
+ /**
181
+ * Only trigger if the pull request is in one of the repositories
182
+ */
183
+ repositories?: Array<string>;
184
+ /**
185
+ * Only trigger if the pull request was opened by one of the specified users
186
+ */
187
+ openedBy?: Array<string>;
188
+ [k: string]: unknown;
189
+ }
190
+ interface GithubPullRequestMergedFiltersOutput {
191
+ /**
192
+ * Enable agent for Tembo-created pull requests (enabled by default)
193
+ */
194
+ temboPrs: boolean;
195
+ /**
196
+ * Only trigger if the pull request is in one of the repositories
197
+ */
198
+ repositories?: Array<string>;
199
+ /**
200
+ * Only trigger if the pull request was merged by one of the specified users
201
+ */
202
+ mergedBy?: Array<string>;
203
+ [k: string]: unknown;
204
+ }
205
+ interface GithubPullRequestOpenedFiltersOutput {
206
+ /**
207
+ * Enable agent for Tembo-created pull requests (enabled by default)
208
+ */
209
+ temboPrs: boolean;
210
+ /**
211
+ * Only trigger if the pull request is in one of the repositories
212
+ */
213
+ repositories?: Array<string>;
214
+ /**
215
+ * Only trigger if the pull request has at least one of the specified labels
216
+ */
217
+ labels?: Array<string>;
218
+ /**
219
+ * Only trigger if the pull request was opened by one of the specified users
220
+ */
221
+ openedBy?: Array<string>;
222
+ /**
223
+ * Only trigger if the pull request targets one of these branches
224
+ */
225
+ branches?: Array<string>;
226
+ /**
227
+ * Trigger also for draft pull requests (disabled by default)
228
+ */
229
+ draftPrs?: boolean;
230
+ [k: string]: unknown;
231
+ }
232
+ interface GithubPullRequestReadyForReviewFiltersOutput {
233
+ /**
234
+ * Enable agent for Tembo-created pull requests (enabled by default)
235
+ */
236
+ temboPrs: boolean;
237
+ /**
238
+ * Only trigger if the pull request is in one of the repositories
239
+ */
240
+ repositories?: Array<string>;
241
+ /**
242
+ * Only trigger if the pull request was opened by one of the specified users
243
+ */
244
+ openedBy?: Array<string>;
245
+ [k: string]: unknown;
246
+ }
247
+ interface GithubPullRequestLabeledFiltersOutput {
248
+ /**
249
+ * Enable agent for Tembo-created pull requests (enabled by default)
250
+ */
251
+ temboPrs: boolean;
252
+ /**
253
+ * Only trigger if the pull request is in one of the repositories
254
+ */
255
+ repositories?: Array<string>;
256
+ /**
257
+ * Only trigger when one of these labels is added
258
+ */
259
+ labels?: Array<string>;
260
+ /**
261
+ * Only trigger if the label was added by one of the specified users
262
+ */
263
+ labeledBy?: Array<string>;
264
+ [k: string]: unknown;
265
+ }
266
+ interface GithubPullRequestReviewRequestedFiltersOutput {
267
+ /**
268
+ * Enable agent for Tembo-created pull requests (enabled by default)
269
+ */
270
+ temboPrs: boolean;
271
+ /**
272
+ * Only trigger if the pull request is in one of the repositories
273
+ */
274
+ repositories?: Array<string>;
275
+ /**
276
+ * Only trigger when one of these users or team slugs is requested as a reviewer
277
+ */
278
+ reviewers?: Array<string>;
279
+ [k: string]: unknown;
280
+ }
281
+ interface GithubPullRequestReviewSubmittedFiltersOutput {
282
+ /**
283
+ * Enable agent for Tembo-created pull requests (enabled by default)
284
+ */
285
+ temboPrs: boolean;
286
+ /**
287
+ * Only trigger if the pull request is in one of the repositories
288
+ */
289
+ repositories?: Array<string>;
290
+ /**
291
+ * Only trigger for reviews with one of these states
292
+ */
293
+ reviewStates?: Array<'approved' | 'changes_requested' | 'commented'>;
294
+ /**
295
+ * Only trigger if the review was submitted by one of the specified users
296
+ */
297
+ reviewedBy?: Array<string>;
298
+ /**
299
+ * Trigger also for reviews submitted by Tembo (disabled by default). Replies Tembo posts to review threads never trigger.
300
+ */
301
+ temboReviews?: boolean;
302
+ [k: string]: unknown;
303
+ }
304
+ interface GithubReleasePublishedFilters {
305
+ /**
306
+ * Only trigger if the release is in one of the repositories
307
+ */
308
+ repositories?: Array<string>;
309
+ [k: string]: unknown;
310
+ }
311
+ interface GithubPullRequestSynchronizeFiltersOutput {
312
+ /**
313
+ * Enable agent for Tembo-created pull requests (enabled by default)
314
+ */
315
+ temboPrs: boolean;
316
+ /**
317
+ * Only trigger if the pull request is in one of the repositories
318
+ */
319
+ repositories?: Array<string>;
320
+ /**
321
+ * Only trigger if the commits were pushed by one of the specified users
322
+ */
323
+ pushedBy?: Array<string>;
324
+ /**
325
+ * Trigger even if the pull request is a draft
326
+ */
327
+ draftPrs?: boolean;
328
+ [k: string]: unknown;
329
+ }
330
+ interface GithubWorkflowRunCompletedFilters {
331
+ /**
332
+ * Only trigger if the workflow run is in one of the repositories
333
+ */
334
+ repositories?: Array<string>;
335
+ /**
336
+ * Only trigger for specific workflow names
337
+ */
338
+ workflowNames?: Array<string>;
339
+ /**
340
+ * Only trigger for specific branches
341
+ */
342
+ branches?: Array<string>;
343
+ /**
344
+ * Only trigger for these completed workflow results, such as success
345
+ */
346
+ conclusions?: Array<'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped'>;
347
+ /**
348
+ * Only trigger for these originating GitHub events; use schedule for cron runs, not push or pull_request
349
+ */
350
+ events?: Array<string>;
351
+ [k: string]: unknown;
352
+ }
353
+ interface GitlabIssueLabelAddedFilters {
354
+ /**
355
+ * Only trigger if the issue is in one of the repositories
356
+ */
357
+ repositories?: Array<string>;
358
+ /**
359
+ * Only trigger if one of the added labels matches these labels
360
+ */
361
+ labels?: Array<string>;
362
+ /**
363
+ * Only trigger if the label was added by one of the specified users
364
+ */
365
+ addedBy?: Array<string>;
366
+ [k: string]: unknown;
367
+ }
368
+ interface GitlabIssueUpdatedFilters {
369
+ /**
370
+ * Only trigger if the issue is in one of the repositories
371
+ */
372
+ repositories?: Array<string>;
373
+ /**
374
+ * Only trigger if the issue has at least one of the specified labels
375
+ */
376
+ labels?: Array<string>;
377
+ /**
378
+ * Only trigger if the issue was updated by one of the specified users
379
+ */
380
+ updatedBy?: Array<string>;
381
+ [k: string]: unknown;
382
+ }
383
+ interface Filters {
384
+ /**
385
+ * Only trigger if the page is in a space with one of these names or IDs
386
+ */
387
+ spaces?: Array<string>;
388
+ /**
389
+ * Only trigger if the page title contains one of these substrings
390
+ */
391
+ titleContains?: Array<string>;
392
+ [k: string]: unknown;
393
+ }
394
+ interface Filters2 {
395
+ /**
396
+ * Only trigger if the page is in a space with one of these names or IDs
397
+ */
398
+ spaces?: Array<string>;
399
+ /**
400
+ * Only trigger if the page title contains one of these substrings
401
+ */
402
+ titleContains?: Array<string>;
403
+ /**
404
+ * Only trigger if the page was moved from a space with one of these names or IDs
405
+ */
406
+ previousSpaces?: Array<string>;
407
+ [k: string]: unknown;
408
+ }
409
+ interface Filters3 {
410
+ /**
411
+ * Only trigger if the page is in a space with one of these names or IDs
412
+ */
413
+ spaces?: Array<string>;
414
+ /**
415
+ * Only trigger if the page title contains one of these substrings
416
+ */
417
+ titleContains?: Array<string>;
418
+ /**
419
+ * Only trigger for footer comments, inline comments, or both
420
+ */
421
+ locations?: Array<'footer' | 'inline'>;
422
+ [k: string]: unknown;
423
+ }
424
+ interface Filters4 {
425
+ /**
426
+ * Only trigger if the page is in a space with one of these names or IDs
427
+ */
428
+ spaces?: Array<string>;
429
+ /**
430
+ * Only trigger if the page title contains one of these substrings
431
+ */
432
+ titleContains?: Array<string>;
433
+ /**
434
+ * Only trigger if the added label has one of these values
435
+ */
436
+ labels?: Array<string>;
437
+ /**
438
+ * Only trigger if the comment contains one of these substrings
439
+ */
440
+ commentContains?: Array<string>;
441
+ [k: string]: unknown;
442
+ }
443
+ interface Filters5 {
444
+ /**
445
+ * Only trigger if the page is in a space with one of these names or IDs
446
+ */
447
+ spaces?: Array<string>;
448
+ /**
449
+ * Only trigger if the page title contains one of these substrings
450
+ */
451
+ titleContains?: Array<string>;
452
+ /**
453
+ * Only trigger if the removed label has one of these values
454
+ */
455
+ labels?: Array<string>;
456
+ /**
457
+ * Only trigger if the comment contains one of these substrings
458
+ */
459
+ commentContains?: Array<string>;
460
+ [k: string]: unknown;
461
+ }
146
462
  }
147
463
  }
148
464
  export interface TriggerCreateParams {
@@ -161,6 +477,7 @@ export interface TriggerCreateParams {
161
477
  /**
162
478
  * Connected integration that supplies trigger events.
163
479
  * @format uuid
480
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
164
481
  */
165
482
  integrationId?: string;
166
483
  /**
@@ -171,23 +488,28 @@ export interface TriggerCreateParams {
171
488
  export interface TriggerCreateResponse {
172
489
  /**
173
490
  * @format uuid
491
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
174
492
  */
175
493
  id: string;
176
494
  triggerName: string;
177
495
  /**
178
496
  * @format date-time
497
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
179
498
  */
180
499
  enabledAt: string | null;
181
500
  /**
182
501
  * @format date-time
502
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
183
503
  */
184
504
  createdAt: string;
185
505
  /**
186
506
  * @format date-time
507
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
187
508
  */
188
509
  updatedAt: string;
189
510
  /**
190
511
  * @format uuid
512
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
191
513
  */
192
514
  agentId: string;
193
515
  /**
@@ -197,40 +519,355 @@ export interface TriggerCreateResponse {
197
519
  triggerDisplayName: string;
198
520
  /**
199
521
  * @format uuid
522
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
200
523
  */
201
524
  integrationId: string | null;
202
525
  integrationType: string | null;
203
526
  /**
204
527
  * Conditions that determine whether the selected integration event starts the agent. Available fields depend on the integration and event type.
205
528
  */
206
- filters: TemplatesAPI.TriggerFilters;
529
+ filters: TemplatesAPI.AtlassianIssueAddedToBoardFilters | TemplatesAPI.AtlassianIssueAssignedToUserFilters | TriggerCreateResponse.AtlassianIssueCommentCreatedFilters | TemplatesAPI.AtlassianIssueCreatedFilters | TemplatesAPI.AtlassianIssueLabelAddedFilters | TemplatesAPI.AtlassianIssueStatusChangedFilters | TemplatesAPI.AtlassianIssueUpdatedFilters | TemplatesAPI.BitbucketPullRequestOpenedFilters | TemplatesAPI.GithubCreateFilters | TemplatesAPI.GithubIssueClosedFilters | TemplatesAPI.GithubIssueCommentCreatedFilters | TemplatesAPI.GithubIssueOpenedFilters | TriggerCreateResponse.GithubPullRequestClosedFiltersOutput | TriggerCreateResponse.GithubPullRequestMergedFiltersOutput | TriggerCreateResponse.GithubPullRequestOpenedFiltersOutput | TriggerCreateResponse.GithubPullRequestReadyForReviewFiltersOutput | TriggerCreateResponse.GithubPullRequestLabeledFiltersOutput | TriggerCreateResponse.GithubPullRequestReviewRequestedFiltersOutput | TriggerCreateResponse.GithubPullRequestReviewSubmittedFiltersOutput | TriggerCreateResponse.GithubReleasePublishedFilters | TriggerCreateResponse.GithubPullRequestSynchronizeFiltersOutput | TemplatesAPI.GithubTemboPullRequestOpenedFilters | TemplatesAPI.GithubWorkflowRunFailedFilters | TriggerCreateResponse.GithubWorkflowRunCompletedFilters | TemplatesAPI.GitlabBotMergeRequestCommentFilters | TemplatesAPI.GitlabIssueClosedFilters | TemplatesAPI.GitlabIssueOpenedFilters | TriggerCreateResponse.GitlabIssueLabelAddedFilters | TriggerCreateResponse.GitlabIssueUpdatedFilters | TemplatesAPI.GitlabMergeRequestClosedFilters | TemplatesAPI.GitlabMergeRequestMergedFilters | TemplatesAPI.GitlabMergeRequestOpenedFilters | TemplatesAPI.GitlabMergeRequestUpdatedFilters | TemplatesAPI.GitlabMergeRequestReadyForReviewFilters | TemplatesAPI.GitlabPipelineFailedFilters | TemplatesAPI.GitlabRefCreatedFilters | TemplatesAPI.LinearIssueCreateFilters | TemplatesAPI.LinearIssueLabelAddedFilters | TemplatesAPI.LinearIssueStatusChangedFilters | TemplatesAPI.LinearIssueUpdatedFilters | TemplatesAPI.SentryIssueCreatedFilters | TemplatesAPI.SlackMessageReactionAddedFilters | TemplatesAPI.SlackMessageSentInChannelFilters | TriggerCreateResponse.Filters | TriggerCreateResponse.Filters2 | TriggerCreateResponse.Filters3 | TriggerCreateResponse.Filters4 | TriggerCreateResponse.Filters5 | TemplatesAPI.EmptyTriggerFilters;
530
+ }
531
+ export declare namespace TriggerCreateResponse {
532
+ interface AtlassianIssueCommentCreatedFilters {
533
+ /**
534
+ * Only trigger if the issue is in one of the specified projects
535
+ */
536
+ projects?: Array<string>;
537
+ /**
538
+ * Only trigger if the comment was added by one of the specified users
539
+ */
540
+ commentedBy?: Array<string>;
541
+ /**
542
+ * Only trigger if the comment contains one of these substrings
543
+ */
544
+ messageContains?: Array<string>;
545
+ /**
546
+ * Only trigger if the issue has at least one of the specified labels
547
+ */
548
+ labels?: Array<string>;
549
+ [k: string]: unknown;
550
+ }
551
+ interface GithubPullRequestClosedFiltersOutput {
552
+ /**
553
+ * Enable agent for Tembo-created pull requests (enabled by default)
554
+ */
555
+ temboPrs: boolean;
556
+ /**
557
+ * Only trigger if the pull request is in one of the repositories
558
+ */
559
+ repositories?: Array<string>;
560
+ /**
561
+ * Only trigger if the pull request was opened by one of the specified users
562
+ */
563
+ openedBy?: Array<string>;
564
+ [k: string]: unknown;
565
+ }
566
+ interface GithubPullRequestMergedFiltersOutput {
567
+ /**
568
+ * Enable agent for Tembo-created pull requests (enabled by default)
569
+ */
570
+ temboPrs: boolean;
571
+ /**
572
+ * Only trigger if the pull request is in one of the repositories
573
+ */
574
+ repositories?: Array<string>;
575
+ /**
576
+ * Only trigger if the pull request was merged by one of the specified users
577
+ */
578
+ mergedBy?: Array<string>;
579
+ [k: string]: unknown;
580
+ }
581
+ interface GithubPullRequestOpenedFiltersOutput {
582
+ /**
583
+ * Enable agent for Tembo-created pull requests (enabled by default)
584
+ */
585
+ temboPrs: boolean;
586
+ /**
587
+ * Only trigger if the pull request is in one of the repositories
588
+ */
589
+ repositories?: Array<string>;
590
+ /**
591
+ * Only trigger if the pull request has at least one of the specified labels
592
+ */
593
+ labels?: Array<string>;
594
+ /**
595
+ * Only trigger if the pull request was opened by one of the specified users
596
+ */
597
+ openedBy?: Array<string>;
598
+ /**
599
+ * Only trigger if the pull request targets one of these branches
600
+ */
601
+ branches?: Array<string>;
602
+ /**
603
+ * Trigger also for draft pull requests (disabled by default)
604
+ */
605
+ draftPrs?: boolean;
606
+ [k: string]: unknown;
607
+ }
608
+ interface GithubPullRequestReadyForReviewFiltersOutput {
609
+ /**
610
+ * Enable agent for Tembo-created pull requests (enabled by default)
611
+ */
612
+ temboPrs: boolean;
613
+ /**
614
+ * Only trigger if the pull request is in one of the repositories
615
+ */
616
+ repositories?: Array<string>;
617
+ /**
618
+ * Only trigger if the pull request was opened by one of the specified users
619
+ */
620
+ openedBy?: Array<string>;
621
+ [k: string]: unknown;
622
+ }
623
+ interface GithubPullRequestLabeledFiltersOutput {
624
+ /**
625
+ * Enable agent for Tembo-created pull requests (enabled by default)
626
+ */
627
+ temboPrs: boolean;
628
+ /**
629
+ * Only trigger if the pull request is in one of the repositories
630
+ */
631
+ repositories?: Array<string>;
632
+ /**
633
+ * Only trigger when one of these labels is added
634
+ */
635
+ labels?: Array<string>;
636
+ /**
637
+ * Only trigger if the label was added by one of the specified users
638
+ */
639
+ labeledBy?: Array<string>;
640
+ [k: string]: unknown;
641
+ }
642
+ interface GithubPullRequestReviewRequestedFiltersOutput {
643
+ /**
644
+ * Enable agent for Tembo-created pull requests (enabled by default)
645
+ */
646
+ temboPrs: boolean;
647
+ /**
648
+ * Only trigger if the pull request is in one of the repositories
649
+ */
650
+ repositories?: Array<string>;
651
+ /**
652
+ * Only trigger when one of these users or team slugs is requested as a reviewer
653
+ */
654
+ reviewers?: Array<string>;
655
+ [k: string]: unknown;
656
+ }
657
+ interface GithubPullRequestReviewSubmittedFiltersOutput {
658
+ /**
659
+ * Enable agent for Tembo-created pull requests (enabled by default)
660
+ */
661
+ temboPrs: boolean;
662
+ /**
663
+ * Only trigger if the pull request is in one of the repositories
664
+ */
665
+ repositories?: Array<string>;
666
+ /**
667
+ * Only trigger for reviews with one of these states
668
+ */
669
+ reviewStates?: Array<'approved' | 'changes_requested' | 'commented'>;
670
+ /**
671
+ * Only trigger if the review was submitted by one of the specified users
672
+ */
673
+ reviewedBy?: Array<string>;
674
+ /**
675
+ * Trigger also for reviews submitted by Tembo (disabled by default). Replies Tembo posts to review threads never trigger.
676
+ */
677
+ temboReviews?: boolean;
678
+ [k: string]: unknown;
679
+ }
680
+ interface GithubReleasePublishedFilters {
681
+ /**
682
+ * Only trigger if the release is in one of the repositories
683
+ */
684
+ repositories?: Array<string>;
685
+ [k: string]: unknown;
686
+ }
687
+ interface GithubPullRequestSynchronizeFiltersOutput {
688
+ /**
689
+ * Enable agent for Tembo-created pull requests (enabled by default)
690
+ */
691
+ temboPrs: boolean;
692
+ /**
693
+ * Only trigger if the pull request is in one of the repositories
694
+ */
695
+ repositories?: Array<string>;
696
+ /**
697
+ * Only trigger if the commits were pushed by one of the specified users
698
+ */
699
+ pushedBy?: Array<string>;
700
+ /**
701
+ * Trigger even if the pull request is a draft
702
+ */
703
+ draftPrs?: boolean;
704
+ [k: string]: unknown;
705
+ }
706
+ interface GithubWorkflowRunCompletedFilters {
707
+ /**
708
+ * Only trigger if the workflow run is in one of the repositories
709
+ */
710
+ repositories?: Array<string>;
711
+ /**
712
+ * Only trigger for specific workflow names
713
+ */
714
+ workflowNames?: Array<string>;
715
+ /**
716
+ * Only trigger for specific branches
717
+ */
718
+ branches?: Array<string>;
719
+ /**
720
+ * Only trigger for these completed workflow results, such as success
721
+ */
722
+ conclusions?: Array<'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped'>;
723
+ /**
724
+ * Only trigger for these originating GitHub events; use schedule for cron runs, not push or pull_request
725
+ */
726
+ events?: Array<string>;
727
+ [k: string]: unknown;
728
+ }
729
+ interface GitlabIssueLabelAddedFilters {
730
+ /**
731
+ * Only trigger if the issue is in one of the repositories
732
+ */
733
+ repositories?: Array<string>;
734
+ /**
735
+ * Only trigger if one of the added labels matches these labels
736
+ */
737
+ labels?: Array<string>;
738
+ /**
739
+ * Only trigger if the label was added by one of the specified users
740
+ */
741
+ addedBy?: Array<string>;
742
+ [k: string]: unknown;
743
+ }
744
+ interface GitlabIssueUpdatedFilters {
745
+ /**
746
+ * Only trigger if the issue is in one of the repositories
747
+ */
748
+ repositories?: Array<string>;
749
+ /**
750
+ * Only trigger if the issue has at least one of the specified labels
751
+ */
752
+ labels?: Array<string>;
753
+ /**
754
+ * Only trigger if the issue was updated by one of the specified users
755
+ */
756
+ updatedBy?: Array<string>;
757
+ [k: string]: unknown;
758
+ }
759
+ interface Filters {
760
+ /**
761
+ * Only trigger if the page is in a space with one of these names or IDs
762
+ */
763
+ spaces?: Array<string>;
764
+ /**
765
+ * Only trigger if the page title contains one of these substrings
766
+ */
767
+ titleContains?: Array<string>;
768
+ [k: string]: unknown;
769
+ }
770
+ interface Filters2 {
771
+ /**
772
+ * Only trigger if the page is in a space with one of these names or IDs
773
+ */
774
+ spaces?: Array<string>;
775
+ /**
776
+ * Only trigger if the page title contains one of these substrings
777
+ */
778
+ titleContains?: Array<string>;
779
+ /**
780
+ * Only trigger if the page was moved from a space with one of these names or IDs
781
+ */
782
+ previousSpaces?: Array<string>;
783
+ [k: string]: unknown;
784
+ }
785
+ interface Filters3 {
786
+ /**
787
+ * Only trigger if the page is in a space with one of these names or IDs
788
+ */
789
+ spaces?: Array<string>;
790
+ /**
791
+ * Only trigger if the page title contains one of these substrings
792
+ */
793
+ titleContains?: Array<string>;
794
+ /**
795
+ * Only trigger for footer comments, inline comments, or both
796
+ */
797
+ locations?: Array<'footer' | 'inline'>;
798
+ [k: string]: unknown;
799
+ }
800
+ interface Filters4 {
801
+ /**
802
+ * Only trigger if the page is in a space with one of these names or IDs
803
+ */
804
+ spaces?: Array<string>;
805
+ /**
806
+ * Only trigger if the page title contains one of these substrings
807
+ */
808
+ titleContains?: Array<string>;
809
+ /**
810
+ * Only trigger if the added label has one of these values
811
+ */
812
+ labels?: Array<string>;
813
+ /**
814
+ * Only trigger if the comment contains one of these substrings
815
+ */
816
+ commentContains?: Array<string>;
817
+ [k: string]: unknown;
818
+ }
819
+ interface Filters5 {
820
+ /**
821
+ * Only trigger if the page is in a space with one of these names or IDs
822
+ */
823
+ spaces?: Array<string>;
824
+ /**
825
+ * Only trigger if the page title contains one of these substrings
826
+ */
827
+ titleContains?: Array<string>;
828
+ /**
829
+ * Only trigger if the removed label has one of these values
830
+ */
831
+ labels?: Array<string>;
832
+ /**
833
+ * Only trigger if the comment contains one of these substrings
834
+ */
835
+ commentContains?: Array<string>;
836
+ [k: string]: unknown;
837
+ }
207
838
  }
208
839
  export interface TriggerRetrieveParams {
209
840
  /**
210
841
  * @format uuid
842
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
211
843
  */
212
844
  agentId: string;
213
845
  }
214
846
  export interface TriggerRetrieveResponse {
215
847
  /**
216
848
  * @format uuid
849
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
217
850
  */
218
851
  id: string;
219
852
  triggerName: string;
220
853
  /**
221
854
  * @format date-time
855
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
222
856
  */
223
857
  enabledAt: string | null;
224
858
  /**
225
859
  * @format date-time
860
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
226
861
  */
227
862
  createdAt: string;
228
863
  /**
229
864
  * @format date-time
865
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
230
866
  */
231
867
  updatedAt: string;
232
868
  /**
233
869
  * @format uuid
870
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
234
871
  */
235
872
  agentId: string;
236
873
  /**
@@ -240,18 +877,328 @@ export interface TriggerRetrieveResponse {
240
877
  triggerDisplayName: string;
241
878
  /**
242
879
  * @format uuid
880
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
243
881
  */
244
882
  integrationId: string | null;
245
883
  integrationType: string | null;
246
884
  /**
247
885
  * Conditions that determine whether the selected integration event starts the agent. Available fields depend on the integration and event type.
248
886
  */
249
- filters: TemplatesAPI.TriggerFilters;
887
+ filters: TemplatesAPI.AtlassianIssueAddedToBoardFilters | TemplatesAPI.AtlassianIssueAssignedToUserFilters | TriggerRetrieveResponse.AtlassianIssueCommentCreatedFilters | TemplatesAPI.AtlassianIssueCreatedFilters | TemplatesAPI.AtlassianIssueLabelAddedFilters | TemplatesAPI.AtlassianIssueStatusChangedFilters | TemplatesAPI.AtlassianIssueUpdatedFilters | TemplatesAPI.BitbucketPullRequestOpenedFilters | TemplatesAPI.GithubCreateFilters | TemplatesAPI.GithubIssueClosedFilters | TemplatesAPI.GithubIssueCommentCreatedFilters | TemplatesAPI.GithubIssueOpenedFilters | TriggerRetrieveResponse.GithubPullRequestClosedFiltersOutput | TriggerRetrieveResponse.GithubPullRequestMergedFiltersOutput | TriggerRetrieveResponse.GithubPullRequestOpenedFiltersOutput | TriggerRetrieveResponse.GithubPullRequestReadyForReviewFiltersOutput | TriggerRetrieveResponse.GithubPullRequestLabeledFiltersOutput | TriggerRetrieveResponse.GithubPullRequestReviewRequestedFiltersOutput | TriggerRetrieveResponse.GithubPullRequestReviewSubmittedFiltersOutput | TriggerRetrieveResponse.GithubReleasePublishedFilters | TriggerRetrieveResponse.GithubPullRequestSynchronizeFiltersOutput | TemplatesAPI.GithubTemboPullRequestOpenedFilters | TemplatesAPI.GithubWorkflowRunFailedFilters | TriggerRetrieveResponse.GithubWorkflowRunCompletedFilters | TemplatesAPI.GitlabBotMergeRequestCommentFilters | TemplatesAPI.GitlabIssueClosedFilters | TemplatesAPI.GitlabIssueOpenedFilters | TriggerRetrieveResponse.GitlabIssueLabelAddedFilters | TriggerRetrieveResponse.GitlabIssueUpdatedFilters | TemplatesAPI.GitlabMergeRequestClosedFilters | TemplatesAPI.GitlabMergeRequestMergedFilters | TemplatesAPI.GitlabMergeRequestOpenedFilters | TemplatesAPI.GitlabMergeRequestUpdatedFilters | TemplatesAPI.GitlabMergeRequestReadyForReviewFilters | TemplatesAPI.GitlabPipelineFailedFilters | TemplatesAPI.GitlabRefCreatedFilters | TemplatesAPI.LinearIssueCreateFilters | TemplatesAPI.LinearIssueLabelAddedFilters | TemplatesAPI.LinearIssueStatusChangedFilters | TemplatesAPI.LinearIssueUpdatedFilters | TemplatesAPI.SentryIssueCreatedFilters | TemplatesAPI.SlackMessageReactionAddedFilters | TemplatesAPI.SlackMessageSentInChannelFilters | TriggerRetrieveResponse.Filters | TriggerRetrieveResponse.Filters2 | TriggerRetrieveResponse.Filters3 | TriggerRetrieveResponse.Filters4 | TriggerRetrieveResponse.Filters5 | TemplatesAPI.EmptyTriggerFilters;
888
+ }
889
+ export declare namespace TriggerRetrieveResponse {
890
+ interface AtlassianIssueCommentCreatedFilters {
891
+ /**
892
+ * Only trigger if the issue is in one of the specified projects
893
+ */
894
+ projects?: Array<string>;
895
+ /**
896
+ * Only trigger if the comment was added by one of the specified users
897
+ */
898
+ commentedBy?: Array<string>;
899
+ /**
900
+ * Only trigger if the comment contains one of these substrings
901
+ */
902
+ messageContains?: Array<string>;
903
+ /**
904
+ * Only trigger if the issue has at least one of the specified labels
905
+ */
906
+ labels?: Array<string>;
907
+ [k: string]: unknown;
908
+ }
909
+ interface GithubPullRequestClosedFiltersOutput {
910
+ /**
911
+ * Enable agent for Tembo-created pull requests (enabled by default)
912
+ */
913
+ temboPrs: boolean;
914
+ /**
915
+ * Only trigger if the pull request is in one of the repositories
916
+ */
917
+ repositories?: Array<string>;
918
+ /**
919
+ * Only trigger if the pull request was opened by one of the specified users
920
+ */
921
+ openedBy?: Array<string>;
922
+ [k: string]: unknown;
923
+ }
924
+ interface GithubPullRequestMergedFiltersOutput {
925
+ /**
926
+ * Enable agent for Tembo-created pull requests (enabled by default)
927
+ */
928
+ temboPrs: boolean;
929
+ /**
930
+ * Only trigger if the pull request is in one of the repositories
931
+ */
932
+ repositories?: Array<string>;
933
+ /**
934
+ * Only trigger if the pull request was merged by one of the specified users
935
+ */
936
+ mergedBy?: Array<string>;
937
+ [k: string]: unknown;
938
+ }
939
+ interface GithubPullRequestOpenedFiltersOutput {
940
+ /**
941
+ * Enable agent for Tembo-created pull requests (enabled by default)
942
+ */
943
+ temboPrs: boolean;
944
+ /**
945
+ * Only trigger if the pull request is in one of the repositories
946
+ */
947
+ repositories?: Array<string>;
948
+ /**
949
+ * Only trigger if the pull request has at least one of the specified labels
950
+ */
951
+ labels?: Array<string>;
952
+ /**
953
+ * Only trigger if the pull request was opened by one of the specified users
954
+ */
955
+ openedBy?: Array<string>;
956
+ /**
957
+ * Only trigger if the pull request targets one of these branches
958
+ */
959
+ branches?: Array<string>;
960
+ /**
961
+ * Trigger also for draft pull requests (disabled by default)
962
+ */
963
+ draftPrs?: boolean;
964
+ [k: string]: unknown;
965
+ }
966
+ interface GithubPullRequestReadyForReviewFiltersOutput {
967
+ /**
968
+ * Enable agent for Tembo-created pull requests (enabled by default)
969
+ */
970
+ temboPrs: boolean;
971
+ /**
972
+ * Only trigger if the pull request is in one of the repositories
973
+ */
974
+ repositories?: Array<string>;
975
+ /**
976
+ * Only trigger if the pull request was opened by one of the specified users
977
+ */
978
+ openedBy?: Array<string>;
979
+ [k: string]: unknown;
980
+ }
981
+ interface GithubPullRequestLabeledFiltersOutput {
982
+ /**
983
+ * Enable agent for Tembo-created pull requests (enabled by default)
984
+ */
985
+ temboPrs: boolean;
986
+ /**
987
+ * Only trigger if the pull request is in one of the repositories
988
+ */
989
+ repositories?: Array<string>;
990
+ /**
991
+ * Only trigger when one of these labels is added
992
+ */
993
+ labels?: Array<string>;
994
+ /**
995
+ * Only trigger if the label was added by one of the specified users
996
+ */
997
+ labeledBy?: Array<string>;
998
+ [k: string]: unknown;
999
+ }
1000
+ interface GithubPullRequestReviewRequestedFiltersOutput {
1001
+ /**
1002
+ * Enable agent for Tembo-created pull requests (enabled by default)
1003
+ */
1004
+ temboPrs: boolean;
1005
+ /**
1006
+ * Only trigger if the pull request is in one of the repositories
1007
+ */
1008
+ repositories?: Array<string>;
1009
+ /**
1010
+ * Only trigger when one of these users or team slugs is requested as a reviewer
1011
+ */
1012
+ reviewers?: Array<string>;
1013
+ [k: string]: unknown;
1014
+ }
1015
+ interface GithubPullRequestReviewSubmittedFiltersOutput {
1016
+ /**
1017
+ * Enable agent for Tembo-created pull requests (enabled by default)
1018
+ */
1019
+ temboPrs: boolean;
1020
+ /**
1021
+ * Only trigger if the pull request is in one of the repositories
1022
+ */
1023
+ repositories?: Array<string>;
1024
+ /**
1025
+ * Only trigger for reviews with one of these states
1026
+ */
1027
+ reviewStates?: Array<'approved' | 'changes_requested' | 'commented'>;
1028
+ /**
1029
+ * Only trigger if the review was submitted by one of the specified users
1030
+ */
1031
+ reviewedBy?: Array<string>;
1032
+ /**
1033
+ * Trigger also for reviews submitted by Tembo (disabled by default). Replies Tembo posts to review threads never trigger.
1034
+ */
1035
+ temboReviews?: boolean;
1036
+ [k: string]: unknown;
1037
+ }
1038
+ interface GithubReleasePublishedFilters {
1039
+ /**
1040
+ * Only trigger if the release is in one of the repositories
1041
+ */
1042
+ repositories?: Array<string>;
1043
+ [k: string]: unknown;
1044
+ }
1045
+ interface GithubPullRequestSynchronizeFiltersOutput {
1046
+ /**
1047
+ * Enable agent for Tembo-created pull requests (enabled by default)
1048
+ */
1049
+ temboPrs: boolean;
1050
+ /**
1051
+ * Only trigger if the pull request is in one of the repositories
1052
+ */
1053
+ repositories?: Array<string>;
1054
+ /**
1055
+ * Only trigger if the commits were pushed by one of the specified users
1056
+ */
1057
+ pushedBy?: Array<string>;
1058
+ /**
1059
+ * Trigger even if the pull request is a draft
1060
+ */
1061
+ draftPrs?: boolean;
1062
+ [k: string]: unknown;
1063
+ }
1064
+ interface GithubWorkflowRunCompletedFilters {
1065
+ /**
1066
+ * Only trigger if the workflow run is in one of the repositories
1067
+ */
1068
+ repositories?: Array<string>;
1069
+ /**
1070
+ * Only trigger for specific workflow names
1071
+ */
1072
+ workflowNames?: Array<string>;
1073
+ /**
1074
+ * Only trigger for specific branches
1075
+ */
1076
+ branches?: Array<string>;
1077
+ /**
1078
+ * Only trigger for these completed workflow results, such as success
1079
+ */
1080
+ conclusions?: Array<'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped'>;
1081
+ /**
1082
+ * Only trigger for these originating GitHub events; use schedule for cron runs, not push or pull_request
1083
+ */
1084
+ events?: Array<string>;
1085
+ [k: string]: unknown;
1086
+ }
1087
+ interface GitlabIssueLabelAddedFilters {
1088
+ /**
1089
+ * Only trigger if the issue is in one of the repositories
1090
+ */
1091
+ repositories?: Array<string>;
1092
+ /**
1093
+ * Only trigger if one of the added labels matches these labels
1094
+ */
1095
+ labels?: Array<string>;
1096
+ /**
1097
+ * Only trigger if the label was added by one of the specified users
1098
+ */
1099
+ addedBy?: Array<string>;
1100
+ [k: string]: unknown;
1101
+ }
1102
+ interface GitlabIssueUpdatedFilters {
1103
+ /**
1104
+ * Only trigger if the issue is in one of the repositories
1105
+ */
1106
+ repositories?: Array<string>;
1107
+ /**
1108
+ * Only trigger if the issue has at least one of the specified labels
1109
+ */
1110
+ labels?: Array<string>;
1111
+ /**
1112
+ * Only trigger if the issue was updated by one of the specified users
1113
+ */
1114
+ updatedBy?: Array<string>;
1115
+ [k: string]: unknown;
1116
+ }
1117
+ interface Filters {
1118
+ /**
1119
+ * Only trigger if the page is in a space with one of these names or IDs
1120
+ */
1121
+ spaces?: Array<string>;
1122
+ /**
1123
+ * Only trigger if the page title contains one of these substrings
1124
+ */
1125
+ titleContains?: Array<string>;
1126
+ [k: string]: unknown;
1127
+ }
1128
+ interface Filters2 {
1129
+ /**
1130
+ * Only trigger if the page is in a space with one of these names or IDs
1131
+ */
1132
+ spaces?: Array<string>;
1133
+ /**
1134
+ * Only trigger if the page title contains one of these substrings
1135
+ */
1136
+ titleContains?: Array<string>;
1137
+ /**
1138
+ * Only trigger if the page was moved from a space with one of these names or IDs
1139
+ */
1140
+ previousSpaces?: Array<string>;
1141
+ [k: string]: unknown;
1142
+ }
1143
+ interface Filters3 {
1144
+ /**
1145
+ * Only trigger if the page is in a space with one of these names or IDs
1146
+ */
1147
+ spaces?: Array<string>;
1148
+ /**
1149
+ * Only trigger if the page title contains one of these substrings
1150
+ */
1151
+ titleContains?: Array<string>;
1152
+ /**
1153
+ * Only trigger for footer comments, inline comments, or both
1154
+ */
1155
+ locations?: Array<'footer' | 'inline'>;
1156
+ [k: string]: unknown;
1157
+ }
1158
+ interface Filters4 {
1159
+ /**
1160
+ * Only trigger if the page is in a space with one of these names or IDs
1161
+ */
1162
+ spaces?: Array<string>;
1163
+ /**
1164
+ * Only trigger if the page title contains one of these substrings
1165
+ */
1166
+ titleContains?: Array<string>;
1167
+ /**
1168
+ * Only trigger if the added label has one of these values
1169
+ */
1170
+ labels?: Array<string>;
1171
+ /**
1172
+ * Only trigger if the comment contains one of these substrings
1173
+ */
1174
+ commentContains?: Array<string>;
1175
+ [k: string]: unknown;
1176
+ }
1177
+ interface Filters5 {
1178
+ /**
1179
+ * Only trigger if the page is in a space with one of these names or IDs
1180
+ */
1181
+ spaces?: Array<string>;
1182
+ /**
1183
+ * Only trigger if the page title contains one of these substrings
1184
+ */
1185
+ titleContains?: Array<string>;
1186
+ /**
1187
+ * Only trigger if the removed label has one of these values
1188
+ */
1189
+ labels?: Array<string>;
1190
+ /**
1191
+ * Only trigger if the comment contains one of these substrings
1192
+ */
1193
+ commentContains?: Array<string>;
1194
+ [k: string]: unknown;
1195
+ }
250
1196
  }
251
1197
  export interface TriggerUpdateParams {
252
1198
  /**
253
1199
  * Path param
254
1200
  * @format uuid
1201
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
255
1202
  */
256
1203
  agentId: string;
257
1204
  /**
@@ -263,6 +1210,7 @@ export interface TriggerUpdateParams {
263
1210
  /**
264
1211
  * Body param: Connected integration that supplies trigger events.
265
1212
  * @format uuid
1213
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
266
1214
  */
267
1215
  integrationId?: string;
268
1216
  /**
@@ -273,23 +1221,28 @@ export interface TriggerUpdateParams {
273
1221
  export interface TriggerUpdateResponse {
274
1222
  /**
275
1223
  * @format uuid
1224
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
276
1225
  */
277
1226
  id: string;
278
1227
  triggerName: string;
279
1228
  /**
280
1229
  * @format date-time
1230
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
281
1231
  */
282
1232
  enabledAt: string | null;
283
1233
  /**
284
1234
  * @format date-time
1235
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
285
1236
  */
286
1237
  createdAt: string;
287
1238
  /**
288
1239
  * @format date-time
1240
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
289
1241
  */
290
1242
  updatedAt: string;
291
1243
  /**
292
1244
  * @format uuid
1245
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
293
1246
  */
294
1247
  agentId: string;
295
1248
  /**
@@ -299,17 +1252,327 @@ export interface TriggerUpdateResponse {
299
1252
  triggerDisplayName: string;
300
1253
  /**
301
1254
  * @format uuid
1255
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
302
1256
  */
303
1257
  integrationId: string | null;
304
1258
  integrationType: string | null;
305
1259
  /**
306
1260
  * Conditions that determine whether the selected integration event starts the agent. Available fields depend on the integration and event type.
307
1261
  */
308
- filters: TemplatesAPI.TriggerFilters;
1262
+ filters: TemplatesAPI.AtlassianIssueAddedToBoardFilters | TemplatesAPI.AtlassianIssueAssignedToUserFilters | TriggerUpdateResponse.AtlassianIssueCommentCreatedFilters | TemplatesAPI.AtlassianIssueCreatedFilters | TemplatesAPI.AtlassianIssueLabelAddedFilters | TemplatesAPI.AtlassianIssueStatusChangedFilters | TemplatesAPI.AtlassianIssueUpdatedFilters | TemplatesAPI.BitbucketPullRequestOpenedFilters | TemplatesAPI.GithubCreateFilters | TemplatesAPI.GithubIssueClosedFilters | TemplatesAPI.GithubIssueCommentCreatedFilters | TemplatesAPI.GithubIssueOpenedFilters | TriggerUpdateResponse.GithubPullRequestClosedFiltersOutput | TriggerUpdateResponse.GithubPullRequestMergedFiltersOutput | TriggerUpdateResponse.GithubPullRequestOpenedFiltersOutput | TriggerUpdateResponse.GithubPullRequestReadyForReviewFiltersOutput | TriggerUpdateResponse.GithubPullRequestLabeledFiltersOutput | TriggerUpdateResponse.GithubPullRequestReviewRequestedFiltersOutput | TriggerUpdateResponse.GithubPullRequestReviewSubmittedFiltersOutput | TriggerUpdateResponse.GithubReleasePublishedFilters | TriggerUpdateResponse.GithubPullRequestSynchronizeFiltersOutput | TemplatesAPI.GithubTemboPullRequestOpenedFilters | TemplatesAPI.GithubWorkflowRunFailedFilters | TriggerUpdateResponse.GithubWorkflowRunCompletedFilters | TemplatesAPI.GitlabBotMergeRequestCommentFilters | TemplatesAPI.GitlabIssueClosedFilters | TemplatesAPI.GitlabIssueOpenedFilters | TriggerUpdateResponse.GitlabIssueLabelAddedFilters | TriggerUpdateResponse.GitlabIssueUpdatedFilters | TemplatesAPI.GitlabMergeRequestClosedFilters | TemplatesAPI.GitlabMergeRequestMergedFilters | TemplatesAPI.GitlabMergeRequestOpenedFilters | TemplatesAPI.GitlabMergeRequestUpdatedFilters | TemplatesAPI.GitlabMergeRequestReadyForReviewFilters | TemplatesAPI.GitlabPipelineFailedFilters | TemplatesAPI.GitlabRefCreatedFilters | TemplatesAPI.LinearIssueCreateFilters | TemplatesAPI.LinearIssueLabelAddedFilters | TemplatesAPI.LinearIssueStatusChangedFilters | TemplatesAPI.LinearIssueUpdatedFilters | TemplatesAPI.SentryIssueCreatedFilters | TemplatesAPI.SlackMessageReactionAddedFilters | TemplatesAPI.SlackMessageSentInChannelFilters | TriggerUpdateResponse.Filters | TriggerUpdateResponse.Filters2 | TriggerUpdateResponse.Filters3 | TriggerUpdateResponse.Filters4 | TriggerUpdateResponse.Filters5 | TemplatesAPI.EmptyTriggerFilters;
1263
+ }
1264
+ export declare namespace TriggerUpdateResponse {
1265
+ interface AtlassianIssueCommentCreatedFilters {
1266
+ /**
1267
+ * Only trigger if the issue is in one of the specified projects
1268
+ */
1269
+ projects?: Array<string>;
1270
+ /**
1271
+ * Only trigger if the comment was added by one of the specified users
1272
+ */
1273
+ commentedBy?: Array<string>;
1274
+ /**
1275
+ * Only trigger if the comment contains one of these substrings
1276
+ */
1277
+ messageContains?: Array<string>;
1278
+ /**
1279
+ * Only trigger if the issue has at least one of the specified labels
1280
+ */
1281
+ labels?: Array<string>;
1282
+ [k: string]: unknown;
1283
+ }
1284
+ interface GithubPullRequestClosedFiltersOutput {
1285
+ /**
1286
+ * Enable agent for Tembo-created pull requests (enabled by default)
1287
+ */
1288
+ temboPrs: boolean;
1289
+ /**
1290
+ * Only trigger if the pull request is in one of the repositories
1291
+ */
1292
+ repositories?: Array<string>;
1293
+ /**
1294
+ * Only trigger if the pull request was opened by one of the specified users
1295
+ */
1296
+ openedBy?: Array<string>;
1297
+ [k: string]: unknown;
1298
+ }
1299
+ interface GithubPullRequestMergedFiltersOutput {
1300
+ /**
1301
+ * Enable agent for Tembo-created pull requests (enabled by default)
1302
+ */
1303
+ temboPrs: boolean;
1304
+ /**
1305
+ * Only trigger if the pull request is in one of the repositories
1306
+ */
1307
+ repositories?: Array<string>;
1308
+ /**
1309
+ * Only trigger if the pull request was merged by one of the specified users
1310
+ */
1311
+ mergedBy?: Array<string>;
1312
+ [k: string]: unknown;
1313
+ }
1314
+ interface GithubPullRequestOpenedFiltersOutput {
1315
+ /**
1316
+ * Enable agent for Tembo-created pull requests (enabled by default)
1317
+ */
1318
+ temboPrs: boolean;
1319
+ /**
1320
+ * Only trigger if the pull request is in one of the repositories
1321
+ */
1322
+ repositories?: Array<string>;
1323
+ /**
1324
+ * Only trigger if the pull request has at least one of the specified labels
1325
+ */
1326
+ labels?: Array<string>;
1327
+ /**
1328
+ * Only trigger if the pull request was opened by one of the specified users
1329
+ */
1330
+ openedBy?: Array<string>;
1331
+ /**
1332
+ * Only trigger if the pull request targets one of these branches
1333
+ */
1334
+ branches?: Array<string>;
1335
+ /**
1336
+ * Trigger also for draft pull requests (disabled by default)
1337
+ */
1338
+ draftPrs?: boolean;
1339
+ [k: string]: unknown;
1340
+ }
1341
+ interface GithubPullRequestReadyForReviewFiltersOutput {
1342
+ /**
1343
+ * Enable agent for Tembo-created pull requests (enabled by default)
1344
+ */
1345
+ temboPrs: boolean;
1346
+ /**
1347
+ * Only trigger if the pull request is in one of the repositories
1348
+ */
1349
+ repositories?: Array<string>;
1350
+ /**
1351
+ * Only trigger if the pull request was opened by one of the specified users
1352
+ */
1353
+ openedBy?: Array<string>;
1354
+ [k: string]: unknown;
1355
+ }
1356
+ interface GithubPullRequestLabeledFiltersOutput {
1357
+ /**
1358
+ * Enable agent for Tembo-created pull requests (enabled by default)
1359
+ */
1360
+ temboPrs: boolean;
1361
+ /**
1362
+ * Only trigger if the pull request is in one of the repositories
1363
+ */
1364
+ repositories?: Array<string>;
1365
+ /**
1366
+ * Only trigger when one of these labels is added
1367
+ */
1368
+ labels?: Array<string>;
1369
+ /**
1370
+ * Only trigger if the label was added by one of the specified users
1371
+ */
1372
+ labeledBy?: Array<string>;
1373
+ [k: string]: unknown;
1374
+ }
1375
+ interface GithubPullRequestReviewRequestedFiltersOutput {
1376
+ /**
1377
+ * Enable agent for Tembo-created pull requests (enabled by default)
1378
+ */
1379
+ temboPrs: boolean;
1380
+ /**
1381
+ * Only trigger if the pull request is in one of the repositories
1382
+ */
1383
+ repositories?: Array<string>;
1384
+ /**
1385
+ * Only trigger when one of these users or team slugs is requested as a reviewer
1386
+ */
1387
+ reviewers?: Array<string>;
1388
+ [k: string]: unknown;
1389
+ }
1390
+ interface GithubPullRequestReviewSubmittedFiltersOutput {
1391
+ /**
1392
+ * Enable agent for Tembo-created pull requests (enabled by default)
1393
+ */
1394
+ temboPrs: boolean;
1395
+ /**
1396
+ * Only trigger if the pull request is in one of the repositories
1397
+ */
1398
+ repositories?: Array<string>;
1399
+ /**
1400
+ * Only trigger for reviews with one of these states
1401
+ */
1402
+ reviewStates?: Array<'approved' | 'changes_requested' | 'commented'>;
1403
+ /**
1404
+ * Only trigger if the review was submitted by one of the specified users
1405
+ */
1406
+ reviewedBy?: Array<string>;
1407
+ /**
1408
+ * Trigger also for reviews submitted by Tembo (disabled by default). Replies Tembo posts to review threads never trigger.
1409
+ */
1410
+ temboReviews?: boolean;
1411
+ [k: string]: unknown;
1412
+ }
1413
+ interface GithubReleasePublishedFilters {
1414
+ /**
1415
+ * Only trigger if the release is in one of the repositories
1416
+ */
1417
+ repositories?: Array<string>;
1418
+ [k: string]: unknown;
1419
+ }
1420
+ interface GithubPullRequestSynchronizeFiltersOutput {
1421
+ /**
1422
+ * Enable agent for Tembo-created pull requests (enabled by default)
1423
+ */
1424
+ temboPrs: boolean;
1425
+ /**
1426
+ * Only trigger if the pull request is in one of the repositories
1427
+ */
1428
+ repositories?: Array<string>;
1429
+ /**
1430
+ * Only trigger if the commits were pushed by one of the specified users
1431
+ */
1432
+ pushedBy?: Array<string>;
1433
+ /**
1434
+ * Trigger even if the pull request is a draft
1435
+ */
1436
+ draftPrs?: boolean;
1437
+ [k: string]: unknown;
1438
+ }
1439
+ interface GithubWorkflowRunCompletedFilters {
1440
+ /**
1441
+ * Only trigger if the workflow run is in one of the repositories
1442
+ */
1443
+ repositories?: Array<string>;
1444
+ /**
1445
+ * Only trigger for specific workflow names
1446
+ */
1447
+ workflowNames?: Array<string>;
1448
+ /**
1449
+ * Only trigger for specific branches
1450
+ */
1451
+ branches?: Array<string>;
1452
+ /**
1453
+ * Only trigger for these completed workflow results, such as success
1454
+ */
1455
+ conclusions?: Array<'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped'>;
1456
+ /**
1457
+ * Only trigger for these originating GitHub events; use schedule for cron runs, not push or pull_request
1458
+ */
1459
+ events?: Array<string>;
1460
+ [k: string]: unknown;
1461
+ }
1462
+ interface GitlabIssueLabelAddedFilters {
1463
+ /**
1464
+ * Only trigger if the issue is in one of the repositories
1465
+ */
1466
+ repositories?: Array<string>;
1467
+ /**
1468
+ * Only trigger if one of the added labels matches these labels
1469
+ */
1470
+ labels?: Array<string>;
1471
+ /**
1472
+ * Only trigger if the label was added by one of the specified users
1473
+ */
1474
+ addedBy?: Array<string>;
1475
+ [k: string]: unknown;
1476
+ }
1477
+ interface GitlabIssueUpdatedFilters {
1478
+ /**
1479
+ * Only trigger if the issue is in one of the repositories
1480
+ */
1481
+ repositories?: Array<string>;
1482
+ /**
1483
+ * Only trigger if the issue has at least one of the specified labels
1484
+ */
1485
+ labels?: Array<string>;
1486
+ /**
1487
+ * Only trigger if the issue was updated by one of the specified users
1488
+ */
1489
+ updatedBy?: Array<string>;
1490
+ [k: string]: unknown;
1491
+ }
1492
+ interface Filters {
1493
+ /**
1494
+ * Only trigger if the page is in a space with one of these names or IDs
1495
+ */
1496
+ spaces?: Array<string>;
1497
+ /**
1498
+ * Only trigger if the page title contains one of these substrings
1499
+ */
1500
+ titleContains?: Array<string>;
1501
+ [k: string]: unknown;
1502
+ }
1503
+ interface Filters2 {
1504
+ /**
1505
+ * Only trigger if the page is in a space with one of these names or IDs
1506
+ */
1507
+ spaces?: Array<string>;
1508
+ /**
1509
+ * Only trigger if the page title contains one of these substrings
1510
+ */
1511
+ titleContains?: Array<string>;
1512
+ /**
1513
+ * Only trigger if the page was moved from a space with one of these names or IDs
1514
+ */
1515
+ previousSpaces?: Array<string>;
1516
+ [k: string]: unknown;
1517
+ }
1518
+ interface Filters3 {
1519
+ /**
1520
+ * Only trigger if the page is in a space with one of these names or IDs
1521
+ */
1522
+ spaces?: Array<string>;
1523
+ /**
1524
+ * Only trigger if the page title contains one of these substrings
1525
+ */
1526
+ titleContains?: Array<string>;
1527
+ /**
1528
+ * Only trigger for footer comments, inline comments, or both
1529
+ */
1530
+ locations?: Array<'footer' | 'inline'>;
1531
+ [k: string]: unknown;
1532
+ }
1533
+ interface Filters4 {
1534
+ /**
1535
+ * Only trigger if the page is in a space with one of these names or IDs
1536
+ */
1537
+ spaces?: Array<string>;
1538
+ /**
1539
+ * Only trigger if the page title contains one of these substrings
1540
+ */
1541
+ titleContains?: Array<string>;
1542
+ /**
1543
+ * Only trigger if the added label has one of these values
1544
+ */
1545
+ labels?: Array<string>;
1546
+ /**
1547
+ * Only trigger if the comment contains one of these substrings
1548
+ */
1549
+ commentContains?: Array<string>;
1550
+ [k: string]: unknown;
1551
+ }
1552
+ interface Filters5 {
1553
+ /**
1554
+ * Only trigger if the page is in a space with one of these names or IDs
1555
+ */
1556
+ spaces?: Array<string>;
1557
+ /**
1558
+ * Only trigger if the page title contains one of these substrings
1559
+ */
1560
+ titleContains?: Array<string>;
1561
+ /**
1562
+ * Only trigger if the removed label has one of these values
1563
+ */
1564
+ labels?: Array<string>;
1565
+ /**
1566
+ * Only trigger if the comment contains one of these substrings
1567
+ */
1568
+ commentContains?: Array<string>;
1569
+ [k: string]: unknown;
1570
+ }
309
1571
  }
310
1572
  export interface TriggerDeleteParams {
311
1573
  /**
312
1574
  * @format uuid
1575
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
313
1576
  */
314
1577
  agentId: string;
315
1578
  }
@@ -317,6 +1580,7 @@ export interface TriggerDeleteResponse {
317
1580
  deleted: true;
318
1581
  /**
319
1582
  * @format uuid
1583
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
320
1584
  */
321
1585
  id: string;
322
1586
  }