@arbium/enterprise-agent-connect 0.0.0-stage → 0.1.2-dev.75145ef

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 (322) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +269 -2
  3. package/dist/connectors/dell-techdirect/connector.json +39 -0
  4. package/dist/connectors/dell-techdirect/index.d.ts +8 -0
  5. package/dist/connectors/dell-techdirect/index.js +7 -0
  6. package/dist/connectors/dell-techdirect/index.js.map +1 -0
  7. package/dist/connectors/dell-techdirect/tools.d.ts +2 -0
  8. package/dist/connectors/dell-techdirect/tools.js +49 -0
  9. package/dist/connectors/dell-techdirect/tools.js.map +1 -0
  10. package/dist/connectors/dell-techdirect/vendor.d.ts +6 -0
  11. package/dist/connectors/dell-techdirect/vendor.js +57 -0
  12. package/dist/connectors/dell-techdirect/vendor.js.map +1 -0
  13. package/dist/connectors/dynamics-365/connector.json +228 -0
  14. package/dist/connectors/dynamics-365/index.d.ts +8 -0
  15. package/dist/connectors/dynamics-365/index.js +10 -0
  16. package/dist/connectors/dynamics-365/index.js.map +1 -0
  17. package/dist/connectors/dynamics-365/tools.d.ts +35 -0
  18. package/dist/connectors/dynamics-365/tools.js +806 -0
  19. package/dist/connectors/dynamics-365/tools.js.map +1 -0
  20. package/dist/connectors/dynamics-365/vendor.d.ts +9 -0
  21. package/dist/connectors/dynamics-365/vendor.js +110 -0
  22. package/dist/connectors/dynamics-365/vendor.js.map +1 -0
  23. package/dist/connectors/entra/connector.json +85 -0
  24. package/dist/connectors/entra/index.d.ts +2 -0
  25. package/dist/connectors/entra/index.js +4 -0
  26. package/dist/connectors/entra/index.js.map +1 -0
  27. package/dist/connectors/entra/tools.d.ts +14 -0
  28. package/dist/connectors/entra/tools.js +262 -0
  29. package/dist/connectors/entra/tools.js.map +1 -0
  30. package/dist/connectors/fedex/connector.json +118 -0
  31. package/dist/connectors/fedex/index.d.ts +8 -0
  32. package/dist/connectors/fedex/index.js +7 -0
  33. package/dist/connectors/fedex/index.js.map +1 -0
  34. package/dist/connectors/fedex/tools.d.ts +3 -0
  35. package/dist/connectors/fedex/tools.js +152 -0
  36. package/dist/connectors/fedex/tools.js.map +1 -0
  37. package/dist/connectors/fedex/vendor.d.ts +7 -0
  38. package/dist/connectors/fedex/vendor.js +98 -0
  39. package/dist/connectors/fedex/vendor.js.map +1 -0
  40. package/dist/connectors/gong/connector.json +127 -0
  41. package/dist/connectors/gong/index.d.ts +8 -0
  42. package/dist/connectors/gong/index.js +7 -0
  43. package/dist/connectors/gong/index.js.map +1 -0
  44. package/dist/connectors/gong/tools.d.ts +8 -0
  45. package/dist/connectors/gong/tools.js +424 -0
  46. package/dist/connectors/gong/tools.js.map +1 -0
  47. package/dist/connectors/gong/vendor.d.ts +4 -0
  48. package/dist/connectors/gong/vendor.js +89 -0
  49. package/dist/connectors/gong/vendor.js.map +1 -0
  50. package/dist/connectors/http/index.d.ts +34 -0
  51. package/dist/connectors/http/index.js +325 -0
  52. package/dist/connectors/http/index.js.map +1 -0
  53. package/dist/connectors/intune/connector.json +106 -0
  54. package/dist/connectors/intune/index.d.ts +2 -0
  55. package/dist/connectors/intune/index.js +4 -0
  56. package/dist/connectors/intune/index.js.map +1 -0
  57. package/dist/connectors/intune/tools.d.ts +12 -0
  58. package/dist/connectors/intune/tools.js +416 -0
  59. package/dist/connectors/intune/tools.js.map +1 -0
  60. package/dist/connectors/jamf/connector.json +182 -0
  61. package/dist/connectors/jamf/index.d.ts +8 -0
  62. package/dist/connectors/jamf/index.js +7 -0
  63. package/dist/connectors/jamf/index.js.map +1 -0
  64. package/dist/connectors/jamf/tools.d.ts +7 -0
  65. package/dist/connectors/jamf/tools.js +659 -0
  66. package/dist/connectors/jamf/tools.js.map +1 -0
  67. package/dist/connectors/jamf/vendor.d.ts +5 -0
  68. package/dist/connectors/jamf/vendor.js +70 -0
  69. package/dist/connectors/jamf/vendor.js.map +1 -0
  70. package/dist/connectors/jira/connector.json +272 -0
  71. package/dist/connectors/jira/index.d.ts +8 -0
  72. package/dist/connectors/jira/index.js +7 -0
  73. package/dist/connectors/jira/index.js.map +1 -0
  74. package/dist/connectors/jira/jql.d.ts +4 -0
  75. package/dist/connectors/jira/jql.js +67 -0
  76. package/dist/connectors/jira/jql.js.map +1 -0
  77. package/dist/connectors/jira/tools.d.ts +3 -0
  78. package/dist/connectors/jira/tools.js +464 -0
  79. package/dist/connectors/jira/tools.js.map +1 -0
  80. package/dist/connectors/jira/vendor.d.ts +3 -0
  81. package/dist/connectors/jira/vendor.js +100 -0
  82. package/dist/connectors/jira/vendor.js.map +1 -0
  83. package/dist/connectors/microsoft/client.d.ts +66 -0
  84. package/dist/connectors/microsoft/client.js +452 -0
  85. package/dist/connectors/microsoft/client.js.map +1 -0
  86. package/dist/connectors/microsoft/provider.json +118 -0
  87. package/dist/connectors/netsuite/connector.json +317 -0
  88. package/dist/connectors/netsuite/index.d.ts +8 -0
  89. package/dist/connectors/netsuite/index.js +7 -0
  90. package/dist/connectors/netsuite/index.js.map +1 -0
  91. package/dist/connectors/netsuite/tools.d.ts +24 -0
  92. package/dist/connectors/netsuite/tools.js +447 -0
  93. package/dist/connectors/netsuite/tools.js.map +1 -0
  94. package/dist/connectors/netsuite/vendor.d.ts +26 -0
  95. package/dist/connectors/netsuite/vendor.js +247 -0
  96. package/dist/connectors/netsuite/vendor.js.map +1 -0
  97. package/dist/connectors/odata/index.d.ts +33 -0
  98. package/dist/connectors/odata/index.js +460 -0
  99. package/dist/connectors/odata/index.js.map +1 -0
  100. package/dist/connectors/okta/connector.json +194 -0
  101. package/dist/connectors/okta/index.d.ts +8 -0
  102. package/dist/connectors/okta/index.js +7 -0
  103. package/dist/connectors/okta/index.js.map +1 -0
  104. package/dist/connectors/okta/tools.d.ts +6 -0
  105. package/dist/connectors/okta/tools.js +429 -0
  106. package/dist/connectors/okta/tools.js.map +1 -0
  107. package/dist/connectors/okta/vendor.d.ts +14 -0
  108. package/dist/connectors/okta/vendor.js +204 -0
  109. package/dist/connectors/okta/vendor.js.map +1 -0
  110. package/dist/connectors/outlook-calendar/connector.json +136 -0
  111. package/dist/connectors/outlook-calendar/index.d.ts +2 -0
  112. package/dist/connectors/outlook-calendar/index.js +4 -0
  113. package/dist/connectors/outlook-calendar/index.js.map +1 -0
  114. package/dist/connectors/outlook-calendar/tools.d.ts +65 -0
  115. package/dist/connectors/outlook-calendar/tools.js +398 -0
  116. package/dist/connectors/outlook-calendar/tools.js.map +1 -0
  117. package/dist/connectors/outlook-mail/connector.json +154 -0
  118. package/dist/connectors/outlook-mail/index.d.ts +2 -0
  119. package/dist/connectors/outlook-mail/index.js +4 -0
  120. package/dist/connectors/outlook-mail/index.js.map +1 -0
  121. package/dist/connectors/outlook-mail/tools.d.ts +8 -0
  122. package/dist/connectors/outlook-mail/tools.js +236 -0
  123. package/dist/connectors/outlook-mail/tools.js.map +1 -0
  124. package/dist/connectors/salesforce/connector.json +122 -0
  125. package/dist/connectors/salesforce/index.d.ts +8 -0
  126. package/dist/connectors/salesforce/index.js +7 -0
  127. package/dist/connectors/salesforce/index.js.map +1 -0
  128. package/dist/connectors/salesforce/soql.d.ts +3 -0
  129. package/dist/connectors/salesforce/soql.js +60 -0
  130. package/dist/connectors/salesforce/soql.js.map +1 -0
  131. package/dist/connectors/salesforce/tools.d.ts +9 -0
  132. package/dist/connectors/salesforce/tools.js +234 -0
  133. package/dist/connectors/salesforce/tools.js.map +1 -0
  134. package/dist/connectors/salesforce/vendor.d.ts +3 -0
  135. package/dist/connectors/salesforce/vendor.js +113 -0
  136. package/dist/connectors/salesforce/vendor.js.map +1 -0
  137. package/dist/connectors/sap-s4hana/connector.json +264 -0
  138. package/dist/connectors/sap-s4hana/index.d.ts +8 -0
  139. package/dist/connectors/sap-s4hana/index.js +7 -0
  140. package/dist/connectors/sap-s4hana/index.js.map +1 -0
  141. package/dist/connectors/sap-s4hana/tools.d.ts +4 -0
  142. package/dist/connectors/sap-s4hana/tools.js +761 -0
  143. package/dist/connectors/sap-s4hana/tools.js.map +1 -0
  144. package/dist/connectors/sap-s4hana/vendor.d.ts +5 -0
  145. package/dist/connectors/sap-s4hana/vendor.js +176 -0
  146. package/dist/connectors/sap-s4hana/vendor.js.map +1 -0
  147. package/dist/connectors/servicenow/connector.json +228 -0
  148. package/dist/connectors/servicenow/index.d.ts +8 -0
  149. package/dist/connectors/servicenow/index.js +7 -0
  150. package/dist/connectors/servicenow/index.js.map +1 -0
  151. package/dist/connectors/servicenow/tools.d.ts +4 -0
  152. package/dist/connectors/servicenow/tools.js +884 -0
  153. package/dist/connectors/servicenow/tools.js.map +1 -0
  154. package/dist/connectors/servicenow/vendor.d.ts +3 -0
  155. package/dist/connectors/servicenow/vendor.js +106 -0
  156. package/dist/connectors/servicenow/vendor.js.map +1 -0
  157. package/dist/connectors/sharepoint-files/connector.json +194 -0
  158. package/dist/connectors/sharepoint-files/excel.d.ts +16 -0
  159. package/dist/connectors/sharepoint-files/excel.js +300 -0
  160. package/dist/connectors/sharepoint-files/excel.js.map +1 -0
  161. package/dist/connectors/sharepoint-files/index.d.ts +8 -0
  162. package/dist/connectors/sharepoint-files/index.js +12 -0
  163. package/dist/connectors/sharepoint-files/index.js.map +1 -0
  164. package/dist/connectors/sharepoint-files/tools.d.ts +52 -0
  165. package/dist/connectors/sharepoint-files/tools.js +365 -0
  166. package/dist/connectors/sharepoint-files/tools.js.map +1 -0
  167. package/dist/connectors/sharepoint-files/vendor.d.ts +11 -0
  168. package/dist/connectors/sharepoint-files/vendor.js +167 -0
  169. package/dist/connectors/sharepoint-files/vendor.js.map +1 -0
  170. package/dist/connectors/slack/connector.json +148 -0
  171. package/dist/connectors/slack/index.d.ts +8 -0
  172. package/dist/connectors/slack/index.js +7 -0
  173. package/dist/connectors/slack/index.js.map +1 -0
  174. package/dist/connectors/slack/tools.d.ts +3 -0
  175. package/dist/connectors/slack/tools.js +355 -0
  176. package/dist/connectors/slack/tools.js.map +1 -0
  177. package/dist/connectors/slack/vendor.d.ts +17 -0
  178. package/dist/connectors/slack/vendor.js +189 -0
  179. package/dist/connectors/slack/vendor.js.map +1 -0
  180. package/dist/connectors/soap/index.d.ts +16 -0
  181. package/dist/connectors/soap/index.js +248 -0
  182. package/dist/connectors/soap/index.js.map +1 -0
  183. package/dist/connectors/soap/xml.d.ts +12 -0
  184. package/dist/connectors/soap/xml.js +126 -0
  185. package/dist/connectors/soap/xml.js.map +1 -0
  186. package/dist/connectors/sql/engines.d.ts +58 -0
  187. package/dist/connectors/sql/engines.js +292 -0
  188. package/dist/connectors/sql/engines.js.map +1 -0
  189. package/dist/connectors/sql/index.d.ts +16 -0
  190. package/dist/connectors/sql/index.js +214 -0
  191. package/dist/connectors/sql/index.js.map +1 -0
  192. package/dist/connectors/teams/connector.json +298 -0
  193. package/dist/connectors/teams/index.d.ts +2 -0
  194. package/dist/connectors/teams/index.js +5 -0
  195. package/dist/connectors/teams/index.js.map +1 -0
  196. package/dist/connectors/teams/tools.d.ts +7 -0
  197. package/dist/connectors/teams/tools.js +392 -0
  198. package/dist/connectors/teams/tools.js.map +1 -0
  199. package/dist/connectors/workday/connector.json +188 -0
  200. package/dist/connectors/workday/index.d.ts +8 -0
  201. package/dist/connectors/workday/index.js +7 -0
  202. package/dist/connectors/workday/index.js.map +1 -0
  203. package/dist/connectors/workday/tools.d.ts +33 -0
  204. package/dist/connectors/workday/tools.js +410 -0
  205. package/dist/connectors/workday/tools.js.map +1 -0
  206. package/dist/connectors/workday/vendor.d.ts +18 -0
  207. package/dist/connectors/workday/vendor.js +199 -0
  208. package/dist/connectors/workday/vendor.js.map +1 -0
  209. package/dist/packages/connector-kit/src/branding.d.ts +57 -0
  210. package/dist/packages/connector-kit/src/branding.js +102 -0
  211. package/dist/packages/connector-kit/src/branding.js.map +1 -0
  212. package/dist/packages/connector-kit/src/certificate.d.ts +19 -0
  213. package/dist/packages/connector-kit/src/certificate.js +84 -0
  214. package/dist/packages/connector-kit/src/certificate.js.map +1 -0
  215. package/dist/packages/connector-kit/src/common.d.ts +36 -0
  216. package/dist/packages/connector-kit/src/common.js +110 -0
  217. package/dist/packages/connector-kit/src/common.js.map +1 -0
  218. package/dist/packages/connector-kit/src/connector.d.ts +1356 -0
  219. package/dist/packages/connector-kit/src/connector.js +1073 -0
  220. package/dist/packages/connector-kit/src/connector.js.map +1 -0
  221. package/dist/packages/connector-kit/src/fetch.d.ts +6 -0
  222. package/dist/packages/connector-kit/src/fetch.js +44 -0
  223. package/dist/packages/connector-kit/src/fetch.js.map +1 -0
  224. package/dist/packages/connector-kit/src/index.d.ts +5 -0
  225. package/dist/packages/connector-kit/src/index.js +6 -0
  226. package/dist/packages/connector-kit/src/index.js.map +1 -0
  227. package/dist/packages/connector-kit/src/oauth.d.ts +15 -0
  228. package/dist/packages/connector-kit/src/oauth.js +98 -0
  229. package/dist/packages/connector-kit/src/oauth.js.map +1 -0
  230. package/dist/packages/connector-kit/src/types.d.ts +87 -0
  231. package/dist/packages/connector-kit/src/types.js +20 -0
  232. package/dist/packages/connector-kit/src/types.js.map +1 -0
  233. package/dist/packages/server/migrations/0001_tables.sql +268 -0
  234. package/dist/packages/server/migrations/0002_organizations.sql +72 -0
  235. package/dist/packages/server/migrations/0003_drop_unused.sql +3 -0
  236. package/dist/packages/server/migrations/0004_trigger_runners.sql +15 -0
  237. package/dist/packages/server/migrations/0005_run_runner.sql +3 -0
  238. package/dist/packages/server/migrations/0006_approvals.sql +36 -0
  239. package/dist/packages/server/migrations/0007_app_events.sql +110 -0
  240. package/dist/packages/server/migrations/rollback/to-legacy.sql +90 -0
  241. package/dist/packages/server/src/api.d.ts +3730 -0
  242. package/dist/packages/server/src/api.js +820 -0
  243. package/dist/packages/server/src/api.js.map +1 -0
  244. package/dist/packages/server/src/app.d.ts +23 -0
  245. package/dist/packages/server/src/app.js +467 -0
  246. package/dist/packages/server/src/app.js.map +1 -0
  247. package/dist/packages/server/src/builtin.d.ts +5 -0
  248. package/dist/packages/server/src/builtin.js +42 -0
  249. package/dist/packages/server/src/builtin.js.map +1 -0
  250. package/dist/packages/server/src/consent.d.ts +27 -0
  251. package/dist/packages/server/src/consent.js +36 -0
  252. package/dist/packages/server/src/consent.js.map +1 -0
  253. package/dist/packages/server/src/events/admin.d.ts +156 -0
  254. package/dist/packages/server/src/events/admin.js +255 -0
  255. package/dist/packages/server/src/events/admin.js.map +1 -0
  256. package/dist/packages/server/src/events/deliver.d.ts +43 -0
  257. package/dist/packages/server/src/events/deliver.js +129 -0
  258. package/dist/packages/server/src/events/deliver.js.map +1 -0
  259. package/dist/packages/server/src/events/runtime.d.ts +28 -0
  260. package/dist/packages/server/src/events/runtime.js +404 -0
  261. package/dist/packages/server/src/events/runtime.js.map +1 -0
  262. package/dist/packages/server/src/events/store.d.ts +172 -0
  263. package/dist/packages/server/src/events/store.js +275 -0
  264. package/dist/packages/server/src/events/store.js.map +1 -0
  265. package/dist/packages/server/src/index.d.ts +40 -0
  266. package/dist/packages/server/src/index.js +186 -0
  267. package/dist/packages/server/src/index.js.map +1 -0
  268. package/dist/packages/server/src/migrate.d.ts +11 -0
  269. package/dist/packages/server/src/migrate.js +134 -0
  270. package/dist/packages/server/src/migrate.js.map +1 -0
  271. package/dist/packages/server/src/openapi.d.ts +4 -0
  272. package/dist/packages/server/src/openapi.js +101 -0
  273. package/dist/packages/server/src/openapi.js.map +1 -0
  274. package/dist/packages/server/src/queue.d.ts +10 -0
  275. package/dist/packages/server/src/queue.js +45 -0
  276. package/dist/packages/server/src/queue.js.map +1 -0
  277. package/dist/packages/server/src/secrets.d.ts +19 -0
  278. package/dist/packages/server/src/secrets.js +76 -0
  279. package/dist/packages/server/src/secrets.js.map +1 -0
  280. package/dist/packages/server/src/server.d.ts +1 -0
  281. package/dist/packages/server/src/server.js +82 -0
  282. package/dist/packages/server/src/server.js.map +1 -0
  283. package/dist/packages/server/src/service.d.ts +767 -0
  284. package/dist/packages/server/src/service.js +924 -0
  285. package/dist/packages/server/src/service.js.map +1 -0
  286. package/dist/packages/server/src/store.d.ts +157 -0
  287. package/dist/packages/server/src/store.js +415 -0
  288. package/dist/packages/server/src/store.js.map +1 -0
  289. package/dist/packages/server/src/teams/activity.d.ts +123 -0
  290. package/dist/packages/server/src/teams/activity.js +188 -0
  291. package/dist/packages/server/src/teams/activity.js.map +1 -0
  292. package/dist/packages/server/src/teams/admin.d.ts +335 -0
  293. package/dist/packages/server/src/teams/admin.js +699 -0
  294. package/dist/packages/server/src/teams/admin.js.map +1 -0
  295. package/dist/packages/server/src/teams/approval.d.ts +57 -0
  296. package/dist/packages/server/src/teams/approval.js +118 -0
  297. package/dist/packages/server/src/teams/approval.js.map +1 -0
  298. package/dist/packages/server/src/teams/bot.d.ts +25 -0
  299. package/dist/packages/server/src/teams/bot.js +124 -0
  300. package/dist/packages/server/src/teams/bot.js.map +1 -0
  301. package/dist/packages/server/src/teams/claude.d.ts +46 -0
  302. package/dist/packages/server/src/teams/claude.js +165 -0
  303. package/dist/packages/server/src/teams/claude.js.map +1 -0
  304. package/dist/packages/server/src/teams/jwt.d.ts +17 -0
  305. package/dist/packages/server/src/teams/jwt.js +121 -0
  306. package/dist/packages/server/src/teams/jwt.js.map +1 -0
  307. package/dist/packages/server/src/teams/package.d.ts +79 -0
  308. package/dist/packages/server/src/teams/package.js +319 -0
  309. package/dist/packages/server/src/teams/package.js.map +1 -0
  310. package/dist/packages/server/src/teams/provision.d.ts +84 -0
  311. package/dist/packages/server/src/teams/provision.js +505 -0
  312. package/dist/packages/server/src/teams/provision.js.map +1 -0
  313. package/dist/packages/server/src/teams/runner.d.ts +80 -0
  314. package/dist/packages/server/src/teams/runner.js +187 -0
  315. package/dist/packages/server/src/teams/runner.js.map +1 -0
  316. package/dist/packages/server/src/teams/runtime.d.ts +91 -0
  317. package/dist/packages/server/src/teams/runtime.js +679 -0
  318. package/dist/packages/server/src/teams/runtime.js.map +1 -0
  319. package/dist/packages/server/src/teams/store.d.ts +233 -0
  320. package/dist/packages/server/src/teams/store.js +507 -0
  321. package/dist/packages/server/src/teams/store.js.map +1 -0
  322. package/package.json +68 -4
@@ -0,0 +1,3730 @@
1
+ import { z } from "zod";
2
+ export declare const schemas: {
3
+ Error: z.ZodObject<{
4
+ error: z.ZodString;
5
+ }, z.core.$strict>;
6
+ Organization: z.ZodObject<{
7
+ id: z.ZodGUID;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ createdAt: z.ZodString;
10
+ }, z.core.$strict>;
11
+ Connector: z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ description: z.ZodString;
15
+ logo: z.ZodString;
16
+ identity: z.ZodString;
17
+ signsInAs: z.ZodOptional<z.ZodEnum<{
18
+ agentBot: "agentBot";
19
+ }>>;
20
+ provider: z.ZodOptional<z.ZodString>;
21
+ order: z.ZodOptional<z.ZodNumber>;
22
+ connectionKind: z.ZodEnum<{
23
+ guided: "guided";
24
+ }>;
25
+ accountKey: z.ZodString;
26
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ setup: z.ZodArray<z.ZodObject<{
28
+ title: z.ZodString;
29
+ body: z.ZodString;
30
+ link: z.ZodOptional<z.ZodObject<{
31
+ label: z.ZodString;
32
+ href: z.ZodURL;
33
+ }, z.core.$strict>>;
34
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ shell: z.ZodOptional<z.ZodEnum<{
36
+ bash: "bash";
37
+ powershell: "powershell";
38
+ }>>;
39
+ permissions: z.ZodOptional<z.ZodBoolean>;
40
+ certificate: z.ZodOptional<z.ZodBoolean>;
41
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
43
+ siteRole: z.ZodOptional<z.ZodEnum<{
44
+ read: "read";
45
+ write: "write";
46
+ }>>;
47
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
48
+ confirm: z.ZodOptional<z.ZodString>;
49
+ live: z.ZodOptional<z.ZodString>;
50
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ label: z.ZodString;
53
+ help: z.ZodOptional<z.ZodString>;
54
+ placeholder: z.ZodOptional<z.ZodString>;
55
+ pattern: z.ZodString;
56
+ }, z.core.$strict>>>;
57
+ option: z.ZodOptional<z.ZodObject<{
58
+ field: z.ZodString;
59
+ value: z.ZodString;
60
+ }, z.core.$strict>>;
61
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
+ }, z.core.$strict>>;
63
+ afterConnect: z.ZodArray<z.ZodObject<{
64
+ title: z.ZodString;
65
+ body: z.ZodString;
66
+ link: z.ZodOptional<z.ZodObject<{
67
+ label: z.ZodString;
68
+ href: z.ZodURL;
69
+ }, z.core.$strict>>;
70
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ shell: z.ZodOptional<z.ZodEnum<{
72
+ bash: "bash";
73
+ powershell: "powershell";
74
+ }>>;
75
+ permissions: z.ZodOptional<z.ZodBoolean>;
76
+ certificate: z.ZodOptional<z.ZodBoolean>;
77
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
79
+ siteRole: z.ZodOptional<z.ZodEnum<{
80
+ read: "read";
81
+ write: "write";
82
+ }>>;
83
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
84
+ confirm: z.ZodOptional<z.ZodString>;
85
+ live: z.ZodOptional<z.ZodString>;
86
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ label: z.ZodString;
89
+ help: z.ZodOptional<z.ZodString>;
90
+ placeholder: z.ZodOptional<z.ZodString>;
91
+ pattern: z.ZodString;
92
+ }, z.core.$strict>>>;
93
+ option: z.ZodOptional<z.ZodObject<{
94
+ field: z.ZodString;
95
+ value: z.ZodString;
96
+ }, z.core.$strict>>;
97
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ }, z.core.$strict>>;
99
+ fields: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ label: z.ZodString;
102
+ help: z.ZodOptional<z.ZodString>;
103
+ placeholder: z.ZodOptional<z.ZodString>;
104
+ secret: z.ZodBoolean;
105
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
106
+ value: z.ZodString;
107
+ label: z.ZodString;
108
+ description: z.ZodString;
109
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ }, z.core.$strict>>>;
111
+ requires: z.ZodOptional<z.ZodObject<{
112
+ field: z.ZodString;
113
+ value: z.ZodString;
114
+ }, z.core.$strict>>;
115
+ optional: z.ZodDefault<z.ZodBoolean>;
116
+ }, z.core.$strict>>;
117
+ capabilities: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ label: z.ZodString;
120
+ description: z.ZodString;
121
+ required: z.ZodDefault<z.ZodBoolean>;
122
+ destructive: z.ZodDefault<z.ZodBoolean>;
123
+ costs: z.ZodOptional<z.ZodBoolean>;
124
+ scopes: z.ZodArray<z.ZodString>;
125
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ permissions: z.ZodArray<z.ZodString>;
127
+ fill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
+ note: z.ZodOptional<z.ZodString>;
129
+ forbidden: z.ZodOptional<z.ZodString>;
130
+ claudeKey: z.ZodOptional<z.ZodBoolean>;
131
+ tools: z.ZodArray<z.ZodString>;
132
+ }, z.core.$strict>>;
133
+ limits: z.ZodArray<z.ZodObject<{
134
+ id: z.ZodString;
135
+ label: z.ZodString;
136
+ help: z.ZodString;
137
+ kind: z.ZodEnum<{
138
+ text: "text";
139
+ map: "map";
140
+ list: "list";
141
+ }>;
142
+ required: z.ZodBoolean;
143
+ pattern: z.ZodOptional<z.ZodString>;
144
+ keys: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strict>>;
146
+ siteAccess: z.ZodOptional<z.ZodObject<{
147
+ grant: z.ZodArray<z.ZodObject<{
148
+ title: z.ZodString;
149
+ body: z.ZodString;
150
+ link: z.ZodOptional<z.ZodObject<{
151
+ label: z.ZodString;
152
+ href: z.ZodURL;
153
+ }, z.core.$strict>>;
154
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ shell: z.ZodOptional<z.ZodEnum<{
156
+ bash: "bash";
157
+ powershell: "powershell";
158
+ }>>;
159
+ permissions: z.ZodOptional<z.ZodBoolean>;
160
+ certificate: z.ZodOptional<z.ZodBoolean>;
161
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
163
+ siteRole: z.ZodOptional<z.ZodEnum<{
164
+ read: "read";
165
+ write: "write";
166
+ }>>;
167
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
168
+ confirm: z.ZodOptional<z.ZodString>;
169
+ live: z.ZodOptional<z.ZodString>;
170
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
171
+ id: z.ZodString;
172
+ label: z.ZodString;
173
+ help: z.ZodOptional<z.ZodString>;
174
+ placeholder: z.ZodOptional<z.ZodString>;
175
+ pattern: z.ZodString;
176
+ }, z.core.$strict>>>;
177
+ option: z.ZodOptional<z.ZodObject<{
178
+ field: z.ZodString;
179
+ value: z.ZodString;
180
+ }, z.core.$strict>>;
181
+ }, z.core.$strict>>;
182
+ request: z.ZodString;
183
+ write: z.ZodDefault<z.ZodArray<z.ZodString>>;
184
+ }, z.core.$strict>>;
185
+ agentAccess: z.ZodOptional<z.ZodObject<{
186
+ limit: z.ZodString;
187
+ label: z.ZodString;
188
+ path: z.ZodString;
189
+ granted: z.ZodString;
190
+ notGranted: z.ZodString;
191
+ notFound: z.ZodString;
192
+ probes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
193
+ method: z.ZodEnum<{
194
+ GET: "GET";
195
+ POST: "POST";
196
+ PATCH: "PATCH";
197
+ }>;
198
+ path: z.ZodString;
199
+ body: z.ZodOptional<z.ZodUnknown>;
200
+ allowed: z.ZodArray<z.ZodNumber>;
201
+ }, z.core.$strict>>>;
202
+ missing: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strict>>;
204
+ verify: z.ZodUnion<readonly [z.ZodObject<{
205
+ method: z.ZodEnum<{
206
+ GET: "GET";
207
+ POST: "POST";
208
+ }>;
209
+ path: z.ZodString;
210
+ label: z.ZodString;
211
+ show: z.ZodString;
212
+ name: z.ZodOptional<z.ZodString>;
213
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
214
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
215
+ ifEmpty: z.ZodOptional<z.ZodString>;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ label: z.ZodString;
218
+ check: z.ZodString;
219
+ ifEmpty: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>]>;
221
+ discover: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
222
+ method: z.ZodEnum<{
223
+ GET: "GET";
224
+ POST: "POST";
225
+ }>;
226
+ path: z.ZodString;
227
+ label: z.ZodString;
228
+ show: z.ZodString;
229
+ name: z.ZodOptional<z.ZodString>;
230
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
231
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
232
+ ifEmpty: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ label: z.ZodString;
235
+ check: z.ZodString;
236
+ ifEmpty: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>]>>;
238
+ revoke: z.ZodString;
239
+ http: z.ZodOptional<z.ZodObject<{
240
+ baseUrl: z.ZodURL;
241
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ type: z.ZodLiteral<"header">;
243
+ header: z.ZodString;
244
+ value: z.ZodString;
245
+ prefix: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strict>, z.ZodObject<{
247
+ type: z.ZodLiteral<"bearer">;
248
+ token: z.ZodString;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ type: z.ZodLiteral<"basic">;
251
+ username: z.ZodString;
252
+ password: z.ZodString;
253
+ }, z.core.$strict>, z.ZodObject<{
254
+ type: z.ZodLiteral<"oauth2">;
255
+ tokenUrl: z.ZodURL;
256
+ clientId: z.ZodString;
257
+ clientSecret: z.ZodString;
258
+ scope: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"query">;
261
+ param: z.ZodString;
262
+ value: z.ZodString;
263
+ }, z.core.$strict>], "type">;
264
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
265
+ tools: z.ZodArray<z.ZodObject<{
266
+ name: z.ZodString;
267
+ description: z.ZodString;
268
+ method: z.ZodEnum<{
269
+ GET: "GET";
270
+ POST: "POST";
271
+ PUT: "PUT";
272
+ PATCH: "PATCH";
273
+ DELETE: "DELETE";
274
+ }>;
275
+ path: z.ZodString;
276
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
277
+ type: z.ZodEnum<{
278
+ string: "string";
279
+ number: "number";
280
+ boolean: "boolean";
281
+ array: "array";
282
+ integer: "integer";
283
+ }>;
284
+ description: z.ZodString;
285
+ in: z.ZodEnum<{
286
+ body: "body";
287
+ path: "path";
288
+ query: "query";
289
+ }>;
290
+ name: z.ZodOptional<z.ZodString>;
291
+ required: z.ZodDefault<z.ZodBoolean>;
292
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
293
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
294
+ items: z.ZodOptional<z.ZodEnum<{
295
+ string: "string";
296
+ number: "number";
297
+ boolean: "boolean";
298
+ integer: "integer";
299
+ }>>;
300
+ join: z.ZodOptional<z.ZodString>;
301
+ limit: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strict>>>;
303
+ destructive: z.ZodDefault<z.ZodBoolean>;
304
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
305
+ field: z.ZodString;
306
+ limit: z.ZodString;
307
+ }, z.core.$strict>>>;
308
+ result: z.ZodOptional<z.ZodObject<{
309
+ items: z.ZodOptional<z.ZodString>;
310
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
+ }, z.core.$strict>>;
312
+ paging: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
313
+ param: z.ZodString;
314
+ body: z.ZodString;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ param: z.ZodString;
317
+ header: z.ZodString;
318
+ }, z.core.$strict>, z.ZodObject<{
319
+ param: z.ZodString;
320
+ link: z.ZodLiteral<true>;
321
+ }, z.core.$strict>]>>;
322
+ }, z.core.$strict>>;
323
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
324
+ }, z.core.$strict>>;
325
+ soap: z.ZodOptional<z.ZodObject<{
326
+ endpoint: z.ZodURL;
327
+ version: z.ZodDefault<z.ZodEnum<{
328
+ 1.1: "1.1";
329
+ 1.2: "1.2";
330
+ }>>;
331
+ namespaces: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
332
+ auth: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
333
+ type: z.ZodLiteral<"header">;
334
+ header: z.ZodString;
335
+ value: z.ZodString;
336
+ prefix: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ type: z.ZodLiteral<"bearer">;
339
+ token: z.ZodString;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ type: z.ZodLiteral<"basic">;
342
+ username: z.ZodString;
343
+ password: z.ZodString;
344
+ }, z.core.$strict>], "type">>;
345
+ wsSecurity: z.ZodOptional<z.ZodObject<{
346
+ username: z.ZodString;
347
+ password: z.ZodString;
348
+ digest: z.ZodDefault<z.ZodBoolean>;
349
+ }, z.core.$strict>>;
350
+ verify: z.ZodOptional<z.ZodObject<{
351
+ tool: z.ZodString;
352
+ args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
353
+ show: z.ZodString;
354
+ }, z.core.$strict>>;
355
+ tools: z.ZodArray<z.ZodObject<{
356
+ name: z.ZodString;
357
+ description: z.ZodString;
358
+ operation: z.ZodString;
359
+ soapAction: z.ZodOptional<z.ZodString>;
360
+ body: z.ZodString;
361
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
362
+ type: z.ZodEnum<{
363
+ string: "string";
364
+ number: "number";
365
+ boolean: "boolean";
366
+ integer: "integer";
367
+ }>;
368
+ description: z.ZodString;
369
+ required: z.ZodDefault<z.ZodBoolean>;
370
+ limit: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strict>>>;
372
+ result: z.ZodOptional<z.ZodString>;
373
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ readOnly: z.ZodDefault<z.ZodBoolean>;
375
+ destructive: z.ZodDefault<z.ZodBoolean>;
376
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
377
+ field: z.ZodString;
378
+ limit: z.ZodString;
379
+ }, z.core.$strict>>>;
380
+ }, z.core.$strict>>;
381
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
382
+ }, z.core.$strict>>;
383
+ odata: z.ZodOptional<z.ZodObject<{
384
+ serviceRoot: z.ZodURL;
385
+ version: z.ZodEnum<{
386
+ 2: "2";
387
+ 4: "4";
388
+ }>;
389
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ type: z.ZodLiteral<"header">;
391
+ header: z.ZodString;
392
+ value: z.ZodString;
393
+ prefix: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strict>, z.ZodObject<{
395
+ type: z.ZodLiteral<"bearer">;
396
+ token: z.ZodString;
397
+ }, z.core.$strict>, z.ZodObject<{
398
+ type: z.ZodLiteral<"basic">;
399
+ username: z.ZodString;
400
+ password: z.ZodString;
401
+ }, z.core.$strict>, z.ZodObject<{
402
+ type: z.ZodLiteral<"oauth2">;
403
+ tokenUrl: z.ZodURL;
404
+ clientId: z.ZodString;
405
+ clientSecret: z.ZodString;
406
+ scope: z.ZodOptional<z.ZodString>;
407
+ }, z.core.$strict>, z.ZodObject<{
408
+ type: z.ZodLiteral<"query">;
409
+ param: z.ZodString;
410
+ value: z.ZodString;
411
+ }, z.core.$strict>], "type">;
412
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
413
+ csrf: z.ZodDefault<z.ZodBoolean>;
414
+ paging: z.ZodDefault<z.ZodEnum<{
415
+ skip: "skip";
416
+ server: "server";
417
+ }>>;
418
+ tools: z.ZodArray<z.ZodObject<{
419
+ name: z.ZodString;
420
+ description: z.ZodString;
421
+ kind: z.ZodEnum<{
422
+ function: "function";
423
+ list: "list";
424
+ get: "get";
425
+ create: "create";
426
+ update: "update";
427
+ action: "action";
428
+ }>;
429
+ entitySet: z.ZodOptional<z.ZodString>;
430
+ function: z.ZodOptional<z.ZodString>;
431
+ key: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
432
+ type: z.ZodEnum<{
433
+ string: "string";
434
+ number: "number";
435
+ boolean: "boolean";
436
+ guid: "guid";
437
+ integer: "integer";
438
+ decimal: "decimal";
439
+ datetime: "datetime";
440
+ datetimeoffset: "datetimeoffset";
441
+ }>;
442
+ description: z.ZodString;
443
+ property: z.ZodOptional<z.ZodString>;
444
+ required: z.ZodOptional<z.ZodBoolean>;
445
+ limit: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strict>>>;
447
+ filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
448
+ type: z.ZodEnum<{
449
+ string: "string";
450
+ number: "number";
451
+ boolean: "boolean";
452
+ guid: "guid";
453
+ integer: "integer";
454
+ decimal: "decimal";
455
+ datetime: "datetime";
456
+ datetimeoffset: "datetimeoffset";
457
+ }>;
458
+ description: z.ZodString;
459
+ property: z.ZodOptional<z.ZodString>;
460
+ required: z.ZodOptional<z.ZodBoolean>;
461
+ limit: z.ZodOptional<z.ZodString>;
462
+ op: z.ZodDefault<z.ZodEnum<{
463
+ eq: "eq";
464
+ ne: "ne";
465
+ gt: "gt";
466
+ ge: "ge";
467
+ lt: "lt";
468
+ le: "le";
469
+ contains: "contains";
470
+ startswith: "startswith";
471
+ }>>;
472
+ }, z.core.$strict>>>;
473
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
474
+ type: z.ZodEnum<{
475
+ string: "string";
476
+ number: "number";
477
+ boolean: "boolean";
478
+ guid: "guid";
479
+ integer: "integer";
480
+ decimal: "decimal";
481
+ datetime: "datetime";
482
+ datetimeoffset: "datetimeoffset";
483
+ }>;
484
+ description: z.ZodString;
485
+ property: z.ZodOptional<z.ZodString>;
486
+ required: z.ZodOptional<z.ZodBoolean>;
487
+ limit: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strict>>>;
489
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
490
+ type: z.ZodEnum<{
491
+ string: "string";
492
+ number: "number";
493
+ boolean: "boolean";
494
+ guid: "guid";
495
+ integer: "integer";
496
+ decimal: "decimal";
497
+ datetime: "datetime";
498
+ datetimeoffset: "datetimeoffset";
499
+ }>;
500
+ description: z.ZodString;
501
+ property: z.ZodOptional<z.ZodString>;
502
+ required: z.ZodOptional<z.ZodBoolean>;
503
+ limit: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$strict>>>;
505
+ select: z.ZodDefault<z.ZodArray<z.ZodString>>;
506
+ orderBy: z.ZodOptional<z.ZodString>;
507
+ top: z.ZodDefault<z.ZodNumber>;
508
+ destructive: z.ZodDefault<z.ZodBoolean>;
509
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
510
+ field: z.ZodString;
511
+ limit: z.ZodString;
512
+ }, z.core.$strict>>>;
513
+ }, z.core.$strict>>;
514
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
515
+ }, z.core.$strict>>;
516
+ sql: z.ZodOptional<z.ZodObject<{
517
+ engine: z.ZodEnum<{
518
+ postgres: "postgres";
519
+ sqlserver: "sqlserver";
520
+ mysql: "mysql";
521
+ oracle: "oracle";
522
+ }>;
523
+ host: z.ZodString;
524
+ port: z.ZodOptional<z.ZodNumber>;
525
+ database: z.ZodString;
526
+ auth: z.ZodObject<{
527
+ user: z.ZodString;
528
+ password: z.ZodString;
529
+ }, z.core.$strict>;
530
+ tls: z.ZodDefault<z.ZodEnum<{
531
+ verify: "verify";
532
+ insecure: "insecure";
533
+ off: "off";
534
+ }>>;
535
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
536
+ maxRows: z.ZodDefault<z.ZodNumber>;
537
+ tools: z.ZodArray<z.ZodObject<{
538
+ name: z.ZodString;
539
+ description: z.ZodString;
540
+ sql: z.ZodString;
541
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
542
+ type: z.ZodEnum<{
543
+ string: "string";
544
+ number: "number";
545
+ boolean: "boolean";
546
+ integer: "integer";
547
+ }>;
548
+ description: z.ZodString;
549
+ required: z.ZodDefault<z.ZodBoolean>;
550
+ limit: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strict>>>;
552
+ write: z.ZodDefault<z.ZodBoolean>;
553
+ destructive: z.ZodDefault<z.ZodBoolean>;
554
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
555
+ column: z.ZodString;
556
+ limit: z.ZodString;
557
+ }, z.core.$strict>>>;
558
+ }, z.core.$strict>>;
559
+ }, z.core.$strict>>;
560
+ events: z.ZodOptional<z.ZodObject<{
561
+ types: z.ZodArray<z.ZodObject<{
562
+ id: z.ZodString;
563
+ label: z.ZodString;
564
+ }, z.core.$strict>>;
565
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
566
+ limits: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
567
+ webhook: z.ZodOptional<z.ZodObject<{
568
+ verify: z.ZodDiscriminatedUnion<[z.ZodObject<{
569
+ type: z.ZodLiteral<"hmac-sha256">;
570
+ header: z.ZodString;
571
+ prefix: z.ZodDefault<z.ZodString>;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ type: z.ZodLiteral<"token">;
574
+ header: z.ZodString;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ type: z.ZodLiteral<"none">;
577
+ }, z.core.$strict>], "type">;
578
+ allowInsecure: z.ZodDefault<z.ZodBoolean>;
579
+ type: z.ZodUnion<readonly [z.ZodObject<{
580
+ field: z.ZodString;
581
+ }, z.core.$strict>, z.ZodObject<{
582
+ header: z.ZodString;
583
+ }, z.core.$strict>]>;
584
+ deliveryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
585
+ field: z.ZodString;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ header: z.ZodString;
588
+ }, z.core.$strict>]>>;
589
+ timestamp: z.ZodOptional<z.ZodObject<{
590
+ at: z.ZodUnion<readonly [z.ZodObject<{
591
+ field: z.ZodString;
592
+ }, z.core.$strict>, z.ZodObject<{
593
+ header: z.ZodString;
594
+ }, z.core.$strict>]>;
595
+ unit: z.ZodEnum<{
596
+ s: "s";
597
+ ms: "ms";
598
+ iso: "iso";
599
+ }>;
600
+ toleranceSeconds: z.ZodDefault<z.ZodNumber>;
601
+ }, z.core.$strict>>;
602
+ setup: z.ZodArray<z.ZodObject<{
603
+ title: z.ZodString;
604
+ body: z.ZodString;
605
+ link: z.ZodOptional<z.ZodObject<{
606
+ label: z.ZodString;
607
+ href: z.ZodURL;
608
+ }, z.core.$strict>>;
609
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
610
+ shell: z.ZodOptional<z.ZodEnum<{
611
+ bash: "bash";
612
+ powershell: "powershell";
613
+ }>>;
614
+ permissions: z.ZodOptional<z.ZodBoolean>;
615
+ certificate: z.ZodOptional<z.ZodBoolean>;
616
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
617
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
618
+ siteRole: z.ZodOptional<z.ZodEnum<{
619
+ read: "read";
620
+ write: "write";
621
+ }>>;
622
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
623
+ confirm: z.ZodOptional<z.ZodString>;
624
+ live: z.ZodOptional<z.ZodString>;
625
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
626
+ id: z.ZodString;
627
+ label: z.ZodString;
628
+ help: z.ZodOptional<z.ZodString>;
629
+ placeholder: z.ZodOptional<z.ZodString>;
630
+ pattern: z.ZodString;
631
+ }, z.core.$strict>>>;
632
+ option: z.ZodOptional<z.ZodObject<{
633
+ field: z.ZodString;
634
+ value: z.ZodString;
635
+ }, z.core.$strict>>;
636
+ }, z.core.$strict>>;
637
+ register: z.ZodOptional<z.ZodObject<{
638
+ method: z.ZodEnum<{
639
+ GET: "GET";
640
+ POST: "POST";
641
+ PUT: "PUT";
642
+ }>;
643
+ path: z.ZodString;
644
+ body: z.ZodOptional<z.ZodUnknown>;
645
+ location: z.ZodString;
646
+ }, z.core.$strict>>;
647
+ }, z.core.$strict>>;
648
+ self: z.ZodOptional<z.ZodObject<{
649
+ request: z.ZodObject<{
650
+ method: z.ZodEnum<{
651
+ GET: "GET";
652
+ POST: "POST";
653
+ PUT: "PUT";
654
+ }>;
655
+ path: z.ZodString;
656
+ body: z.ZodOptional<z.ZodUnknown>;
657
+ }, z.core.$strict>;
658
+ id: z.ZodString;
659
+ fields: z.ZodArray<z.ZodString>;
660
+ }, z.core.$strict>>;
661
+ poll: z.ZodOptional<z.ZodObject<{
662
+ request: z.ZodObject<{
663
+ method: z.ZodEnum<{
664
+ GET: "GET";
665
+ POST: "POST";
666
+ PUT: "PUT";
667
+ }>;
668
+ path: z.ZodString;
669
+ body: z.ZodOptional<z.ZodUnknown>;
670
+ }, z.core.$strict>;
671
+ filter: z.ZodOptional<z.ZodString>;
672
+ items: z.ZodString;
673
+ wrap: z.ZodOptional<z.ZodString>;
674
+ cursor: z.ZodString;
675
+ deliveryId: z.ZodArray<z.ZodString>;
676
+ types: z.ZodArray<z.ZodObject<{
677
+ type: z.ZodString;
678
+ since: z.ZodOptional<z.ZodString>;
679
+ }, z.core.$strict>>;
680
+ }, z.core.$strict>>;
681
+ }, z.core.$strict>>;
682
+ }, z.core.$strict>;
683
+ Branding: z.ZodObject<{
684
+ productName: z.ZodDefault<z.ZodString>;
685
+ logoUrl: z.ZodOptional<z.ZodURL>;
686
+ resourcePrefix: z.ZodDefault<z.ZodString>;
687
+ microsoft: z.ZodDefault<z.ZodObject<{
688
+ appName: z.ZodDefault<z.ZodString>;
689
+ mailboxGroup: z.ZodDefault<z.ZodString>;
690
+ mailboxGroupAlias: z.ZodDefault<z.ZodString>;
691
+ botRole: z.ZodDefault<z.ZodString>;
692
+ }, z.core.$strict>>;
693
+ teams: z.ZodDefault<z.ZodObject<{
694
+ resourceGroup: z.ZodDefault<z.ZodString>;
695
+ developer: z.ZodOptional<z.ZodObject<{
696
+ name: z.ZodString;
697
+ websiteUrl: z.ZodURL;
698
+ privacyUrl: z.ZodURL;
699
+ termsOfUseUrl: z.ZodURL;
700
+ }, z.core.$strict>>;
701
+ }, z.core.$strict>>;
702
+ }, z.core.$strict>;
703
+ Provider: z.ZodObject<{
704
+ id: z.ZodString;
705
+ name: z.ZodString;
706
+ logo: z.ZodString;
707
+ identity: z.ZodString;
708
+ sharedIdentity: z.ZodOptional<z.ZodString>;
709
+ accountKey: z.ZodString;
710
+ principalKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
711
+ certificate: z.ZodBoolean;
712
+ setup: z.ZodArray<z.ZodObject<{
713
+ title: z.ZodString;
714
+ body: z.ZodString;
715
+ link: z.ZodOptional<z.ZodObject<{
716
+ label: z.ZodString;
717
+ href: z.ZodURL;
718
+ }, z.core.$strict>>;
719
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
720
+ shell: z.ZodOptional<z.ZodEnum<{
721
+ bash: "bash";
722
+ powershell: "powershell";
723
+ }>>;
724
+ permissions: z.ZodOptional<z.ZodBoolean>;
725
+ certificate: z.ZodOptional<z.ZodBoolean>;
726
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
727
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
728
+ siteRole: z.ZodOptional<z.ZodEnum<{
729
+ read: "read";
730
+ write: "write";
731
+ }>>;
732
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
733
+ confirm: z.ZodOptional<z.ZodString>;
734
+ live: z.ZodOptional<z.ZodString>;
735
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
736
+ id: z.ZodString;
737
+ label: z.ZodString;
738
+ help: z.ZodOptional<z.ZodString>;
739
+ placeholder: z.ZodOptional<z.ZodString>;
740
+ pattern: z.ZodString;
741
+ }, z.core.$strict>>>;
742
+ option: z.ZodOptional<z.ZodObject<{
743
+ field: z.ZodString;
744
+ value: z.ZodString;
745
+ }, z.core.$strict>>;
746
+ }, z.core.$strict>>;
747
+ fields: z.ZodArray<z.ZodObject<{
748
+ id: z.ZodString;
749
+ label: z.ZodString;
750
+ help: z.ZodOptional<z.ZodString>;
751
+ placeholder: z.ZodOptional<z.ZodString>;
752
+ secret: z.ZodBoolean;
753
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
754
+ value: z.ZodString;
755
+ label: z.ZodString;
756
+ description: z.ZodString;
757
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
758
+ }, z.core.$strict>>>;
759
+ requires: z.ZodOptional<z.ZodObject<{
760
+ field: z.ZodString;
761
+ value: z.ZodString;
762
+ }, z.core.$strict>>;
763
+ optional: z.ZodDefault<z.ZodBoolean>;
764
+ }, z.core.$strict>>;
765
+ addAgent: z.ZodDefault<z.ZodArray<z.ZodObject<{
766
+ title: z.ZodString;
767
+ body: z.ZodString;
768
+ link: z.ZodOptional<z.ZodObject<{
769
+ label: z.ZodString;
770
+ href: z.ZodURL;
771
+ }, z.core.$strict>>;
772
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
773
+ shell: z.ZodOptional<z.ZodEnum<{
774
+ bash: "bash";
775
+ powershell: "powershell";
776
+ }>>;
777
+ permissions: z.ZodOptional<z.ZodBoolean>;
778
+ certificate: z.ZodOptional<z.ZodBoolean>;
779
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
780
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
781
+ siteRole: z.ZodOptional<z.ZodEnum<{
782
+ read: "read";
783
+ write: "write";
784
+ }>>;
785
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
786
+ confirm: z.ZodOptional<z.ZodString>;
787
+ live: z.ZodOptional<z.ZodString>;
788
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
+ id: z.ZodString;
790
+ label: z.ZodString;
791
+ help: z.ZodOptional<z.ZodString>;
792
+ placeholder: z.ZodOptional<z.ZodString>;
793
+ pattern: z.ZodString;
794
+ }, z.core.$strict>>>;
795
+ option: z.ZodOptional<z.ZodObject<{
796
+ field: z.ZodString;
797
+ value: z.ZodString;
798
+ }, z.core.$strict>>;
799
+ apps: z.ZodArray<z.ZodString>;
800
+ }, z.core.$strict>>>;
801
+ revoke: z.ZodString;
802
+ approval: z.ZodBoolean;
803
+ }, z.core.$strict>;
804
+ ProviderConnection: z.ZodObject<{
805
+ id: z.ZodString;
806
+ organizationId: z.ZodString;
807
+ provider: z.ZodString;
808
+ status: z.ZodEnum<{
809
+ connected: "connected";
810
+ needs_reconnect: "needs_reconnect";
811
+ pending: "pending";
812
+ }>;
813
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
814
+ accountLabel: z.ZodNullable<z.ZodString>;
815
+ connectedBy: z.ZodNullable<z.ZodString>;
816
+ connectedAt: z.ZodString;
817
+ checkedAt: z.ZodString;
818
+ certificate: z.ZodNullable<z.ZodObject<{
819
+ thumbprint: z.ZodString;
820
+ expiresAt: z.ZodString;
821
+ }, z.core.$strict>>;
822
+ nextCertificate: z.ZodNullable<z.ZodObject<{
823
+ thumbprint: z.ZodString;
824
+ expiresAt: z.ZodString;
825
+ }, z.core.$strict>>;
826
+ apps: z.ZodArray<z.ZodString>;
827
+ }, z.core.$strict>;
828
+ Connection: z.ZodObject<{
829
+ id: z.ZodString;
830
+ organizationId: z.ZodString;
831
+ connectorId: z.ZodString;
832
+ providerId: z.ZodNullable<z.ZodString>;
833
+ capabilities: z.ZodArray<z.ZodString>;
834
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
835
+ status: z.ZodEnum<{
836
+ connected: "connected";
837
+ needs_reconnect: "needs_reconnect";
838
+ }>;
839
+ accountLabel: z.ZodNullable<z.ZodString>;
840
+ connectedBy: z.ZodNullable<z.ZodString>;
841
+ connectedAt: z.ZodString;
842
+ checkedAt: z.ZodString;
843
+ }, z.core.$strict>;
844
+ Check: z.ZodObject<{
845
+ label: z.ZodString;
846
+ values: z.ZodArray<z.ZodString>;
847
+ warning: z.ZodOptional<z.ZodString>;
848
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
849
+ }, z.core.$strict>;
850
+ CheckOutcome: z.ZodUnion<readonly [z.ZodObject<{
851
+ ok: z.ZodLiteral<true>;
852
+ checks: z.ZodArray<z.ZodObject<{
853
+ label: z.ZodString;
854
+ values: z.ZodArray<z.ZodString>;
855
+ warning: z.ZodOptional<z.ZodString>;
856
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
857
+ }, z.core.$strict>>;
858
+ }, z.core.$strict>, z.ZodObject<{
859
+ ok: z.ZodLiteral<false>;
860
+ error: z.ZodString;
861
+ }, z.core.$strict>]>;
862
+ SignInCheck: z.ZodUnion<readonly [z.ZodObject<{
863
+ ok: z.ZodLiteral<true>;
864
+ }, z.core.$strict>, z.ZodObject<{
865
+ ok: z.ZodLiteral<false>;
866
+ error: z.ZodString;
867
+ }, z.core.$strict>]>;
868
+ ConnectResult: z.ZodObject<{
869
+ connection: z.ZodObject<{
870
+ id: z.ZodString;
871
+ organizationId: z.ZodString;
872
+ connectorId: z.ZodString;
873
+ providerId: z.ZodNullable<z.ZodString>;
874
+ capabilities: z.ZodArray<z.ZodString>;
875
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
876
+ status: z.ZodEnum<{
877
+ connected: "connected";
878
+ needs_reconnect: "needs_reconnect";
879
+ }>;
880
+ accountLabel: z.ZodNullable<z.ZodString>;
881
+ connectedBy: z.ZodNullable<z.ZodString>;
882
+ connectedAt: z.ZodString;
883
+ checkedAt: z.ZodString;
884
+ }, z.core.$strict>;
885
+ checks: z.ZodArray<z.ZodObject<{
886
+ label: z.ZodString;
887
+ values: z.ZodArray<z.ZodString>;
888
+ warning: z.ZodOptional<z.ZodString>;
889
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
890
+ }, z.core.$strict>>;
891
+ }, z.core.$strict>;
892
+ SignIn: z.ZodObject<{
893
+ url: z.ZodString;
894
+ nonce: z.ZodString;
895
+ }, z.core.$strict>;
896
+ SiteAccess: z.ZodObject<{
897
+ site: z.ZodString;
898
+ status: z.ZodEnum<{
899
+ granted: "granted";
900
+ not_granted: "not_granted";
901
+ not_found: "not_found";
902
+ failed: "failed";
903
+ }>;
904
+ name: z.ZodNullable<z.ZodString>;
905
+ message: z.ZodString;
906
+ }, z.core.$strict>;
907
+ AgentAccess: z.ZodObject<{
908
+ value: z.ZodString;
909
+ status: z.ZodEnum<{
910
+ granted: "granted";
911
+ not_granted: "not_granted";
912
+ not_found: "not_found";
913
+ failed: "failed";
914
+ }>;
915
+ message: z.ZodString;
916
+ }, z.core.$strict>;
917
+ Limits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
918
+ Grant: z.ZodObject<{
919
+ agentId: z.ZodString;
920
+ connectorId: z.ZodString;
921
+ capabilities: z.ZodArray<z.ZodString>;
922
+ limits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
923
+ updatedAt: z.ZodString;
924
+ }, z.core.$strict>;
925
+ NewAgent: z.ZodObject<{
926
+ id: z.ZodString;
927
+ organizationId: z.ZodString;
928
+ name: z.ZodString;
929
+ status: z.ZodEnum<{
930
+ active: "active";
931
+ disabled: "disabled";
932
+ }>;
933
+ createdBy: z.ZodNullable<z.ZodString>;
934
+ createdAt: z.ZodString;
935
+ }, z.core.$strict>;
936
+ Agent: z.ZodObject<{
937
+ lastUsedAt: z.ZodNullable<z.ZodString>;
938
+ grants: z.ZodArray<z.ZodObject<{
939
+ agentId: z.ZodString;
940
+ connectorId: z.ZodString;
941
+ capabilities: z.ZodArray<z.ZodString>;
942
+ limits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
943
+ updatedAt: z.ZodString;
944
+ }, z.core.$strict>>;
945
+ id: z.ZodString;
946
+ organizationId: z.ZodString;
947
+ name: z.ZodString;
948
+ status: z.ZodEnum<{
949
+ active: "active";
950
+ disabled: "disabled";
951
+ }>;
952
+ createdBy: z.ZodNullable<z.ZodString>;
953
+ createdAt: z.ZodString;
954
+ }, z.core.$strict>;
955
+ AuditRow: z.ZodObject<{
956
+ at: z.ZodString;
957
+ agentId: z.ZodNullable<z.ZodString>;
958
+ agentName: z.ZodNullable<z.ZodString>;
959
+ connectorId: z.ZodString;
960
+ tool: z.ZodString;
961
+ target: z.ZodNullable<z.ZodString>;
962
+ decision: z.ZodEnum<{
963
+ failed: "failed";
964
+ allowed: "allowed";
965
+ denied: "denied";
966
+ }>;
967
+ reason: z.ZodNullable<z.ZodString>;
968
+ vendorStatus: z.ZodNullable<z.ZodNumber>;
969
+ }, z.core.$strict>;
970
+ Confirmed: z.ZodObject<{
971
+ step: z.ZodString;
972
+ by: z.ZodString;
973
+ at: z.ZodString;
974
+ }, z.core.$strict>;
975
+ LiveCheck: z.ZodObject<{
976
+ state: z.ZodEnum<{
977
+ done: "done";
978
+ todo: "todo";
979
+ failing: "failing";
980
+ }>;
981
+ message: z.ZodString;
982
+ }, z.core.$strict>;
983
+ TeamsBotRecord: z.ZodObject<{
984
+ id: z.ZodString;
985
+ organizationId: z.ZodString;
986
+ agentId: z.ZodString;
987
+ botAppId: z.ZodNullable<z.ZodString>;
988
+ teamsAppId: z.ZodString;
989
+ tenantId: z.ZodString;
990
+ displayName: z.ZodString;
991
+ manifestVersion: z.ZodNumber;
992
+ status: z.ZodEnum<{
993
+ connected: "connected";
994
+ needs_reconnect: "needs_reconnect";
995
+ awaiting_setup: "awaiting_setup";
996
+ }>;
997
+ createdBy: z.ZodNullable<z.ZodString>;
998
+ createdAt: z.ZodString;
999
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
1000
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
1001
+ certificate: z.ZodNullable<z.ZodObject<{
1002
+ thumbprint: z.ZodString;
1003
+ expiresAt: z.ZodString;
1004
+ }, z.core.$strict>>;
1005
+ nextCertificate: z.ZodNullable<z.ZodObject<{
1006
+ thumbprint: z.ZodString;
1007
+ expiresAt: z.ZodString;
1008
+ }, z.core.$strict>>;
1009
+ madeByService: z.ZodBoolean;
1010
+ publishedVersion: z.ZodNullable<z.ZodString>;
1011
+ packageVersion: z.ZodString;
1012
+ }, z.core.$strict>;
1013
+ TeamsPlace: z.ZodObject<{
1014
+ kind: z.ZodEnum<{
1015
+ personal: "personal";
1016
+ groupChat: "groupChat";
1017
+ team: "team";
1018
+ }>;
1019
+ name: z.ZodNullable<z.ZodString>;
1020
+ id: z.ZodString;
1021
+ conversationId: z.ZodString;
1022
+ }, z.core.$strict>;
1023
+ TeamsBot: z.ZodObject<{
1024
+ messagingEndpoint: z.ZodNullable<z.ZodString>;
1025
+ mcpUrl: z.ZodNullable<z.ZodString>;
1026
+ installedIn: z.ZodArray<z.ZodObject<{
1027
+ kind: z.ZodEnum<{
1028
+ personal: "personal";
1029
+ groupChat: "groupChat";
1030
+ team: "team";
1031
+ }>;
1032
+ name: z.ZodNullable<z.ZodString>;
1033
+ id: z.ZodString;
1034
+ conversationId: z.ZodString;
1035
+ }, z.core.$strict>>;
1036
+ id: z.ZodString;
1037
+ organizationId: z.ZodString;
1038
+ agentId: z.ZodString;
1039
+ botAppId: z.ZodNullable<z.ZodString>;
1040
+ teamsAppId: z.ZodString;
1041
+ tenantId: z.ZodString;
1042
+ displayName: z.ZodString;
1043
+ manifestVersion: z.ZodNumber;
1044
+ status: z.ZodEnum<{
1045
+ connected: "connected";
1046
+ needs_reconnect: "needs_reconnect";
1047
+ awaiting_setup: "awaiting_setup";
1048
+ }>;
1049
+ createdBy: z.ZodNullable<z.ZodString>;
1050
+ createdAt: z.ZodString;
1051
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
1052
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
1053
+ certificate: z.ZodNullable<z.ZodObject<{
1054
+ thumbprint: z.ZodString;
1055
+ expiresAt: z.ZodString;
1056
+ }, z.core.$strict>>;
1057
+ nextCertificate: z.ZodNullable<z.ZodObject<{
1058
+ thumbprint: z.ZodString;
1059
+ expiresAt: z.ZodString;
1060
+ }, z.core.$strict>>;
1061
+ madeByService: z.ZodBoolean;
1062
+ publishedVersion: z.ZodNullable<z.ZodString>;
1063
+ packageVersion: z.ZodString;
1064
+ }, z.core.$strict>;
1065
+ AddStep: z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ label: z.ZodString;
1068
+ state: z.ZodEnum<{
1069
+ failed: "failed";
1070
+ done: "done";
1071
+ waiting: "waiting";
1072
+ todo: "todo";
1073
+ }>;
1074
+ message: z.ZodOptional<z.ZodString>;
1075
+ }, z.core.$strict>;
1076
+ InstallTarget: z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ name: z.ZodString;
1079
+ detail: z.ZodNullable<z.ZodString>;
1080
+ }, z.core.$strict>;
1081
+ TeamsTrigger: z.ZodObject<{
1082
+ agentId: z.ZodString;
1083
+ enabled: z.ZodBoolean;
1084
+ runner: z.ZodString;
1085
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1086
+ hasSigningSecret: z.ZodBoolean;
1087
+ managedAgentId: z.ZodNullable<z.ZodString>;
1088
+ environmentId: z.ZodNullable<z.ZodString>;
1089
+ vaultIds: z.ZodArray<z.ZodString>;
1090
+ budgetCents: z.ZodNumber;
1091
+ maxRunsPerHour: z.ZodNumber;
1092
+ maxCentsPerDay: z.ZodNumber;
1093
+ maxConcurrent: z.ZodNumber;
1094
+ replyMode: z.ZodEnum<{
1095
+ mentions: "mentions";
1096
+ all: "all";
1097
+ }>;
1098
+ allowedTeams: z.ZodArray<z.ZodString>;
1099
+ allowedPeople: z.ZodArray<z.ZodString>;
1100
+ anyoneInOrganization: z.ZodBoolean;
1101
+ updatedBy: z.ZodNullable<z.ZodString>;
1102
+ updatedAt: z.ZodString;
1103
+ }, z.core.$strict>;
1104
+ TeamsRun: z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ agentId: z.ZodString;
1107
+ botId: z.ZodString;
1108
+ conversationId: z.ZodString;
1109
+ threadId: z.ZodString;
1110
+ triggerActivityId: z.ZodString;
1111
+ runner: z.ZodString;
1112
+ sessionId: z.ZodNullable<z.ZodString>;
1113
+ state: z.ZodEnum<{
1114
+ failed: "failed";
1115
+ running: "running";
1116
+ idle: "idle";
1117
+ starting: "starting";
1118
+ ended: "ended";
1119
+ no_reply: "no_reply";
1120
+ }>;
1121
+ error: z.ZodNullable<z.ZodString>;
1122
+ note: z.ZodNullable<z.ZodString>;
1123
+ requestedBy: z.ZodNullable<z.ZodString>;
1124
+ replyCount: z.ZodNumber;
1125
+ repliedAt: z.ZodNullable<z.ZodString>;
1126
+ costCents: z.ZodNullable<z.ZodNumber>;
1127
+ turns: z.ZodNumber;
1128
+ startedAt: z.ZodString;
1129
+ finishedAt: z.ZodNullable<z.ZodString>;
1130
+ replyTokenAt: z.ZodString;
1131
+ }, z.core.$strict>;
1132
+ EventSubscription: z.ZodObject<{
1133
+ id: z.ZodString;
1134
+ connectorId: z.ZodString;
1135
+ source: z.ZodEnum<{
1136
+ webhook: "webhook";
1137
+ poll: "poll";
1138
+ }>;
1139
+ filter: z.ZodString;
1140
+ intervalSeconds: z.ZodNumber;
1141
+ cursor: z.ZodNullable<z.ZodString>;
1142
+ polledAt: z.ZodNullable<z.ZodString>;
1143
+ lastError: z.ZodNullable<z.ZodString>;
1144
+ registered: z.ZodNullable<z.ZodString>;
1145
+ url: z.ZodNullable<z.ZodString>;
1146
+ createdBy: z.ZodString;
1147
+ createdAt: z.ZodString;
1148
+ }, z.core.$strict>;
1149
+ EventSubscribed: z.ZodObject<{
1150
+ subscription: z.ZodObject<{
1151
+ id: z.ZodString;
1152
+ connectorId: z.ZodString;
1153
+ source: z.ZodEnum<{
1154
+ webhook: "webhook";
1155
+ poll: "poll";
1156
+ }>;
1157
+ filter: z.ZodString;
1158
+ intervalSeconds: z.ZodNumber;
1159
+ cursor: z.ZodNullable<z.ZodString>;
1160
+ polledAt: z.ZodNullable<z.ZodString>;
1161
+ lastError: z.ZodNullable<z.ZodString>;
1162
+ registered: z.ZodNullable<z.ZodString>;
1163
+ url: z.ZodNullable<z.ZodString>;
1164
+ createdBy: z.ZodString;
1165
+ createdAt: z.ZodString;
1166
+ }, z.core.$strict>;
1167
+ secret: z.ZodNullable<z.ZodString>;
1168
+ setup: z.ZodArray<z.ZodObject<{
1169
+ title: z.ZodString;
1170
+ body: z.ZodString;
1171
+ link: z.ZodOptional<z.ZodObject<{
1172
+ label: z.ZodString;
1173
+ href: z.ZodURL;
1174
+ }, z.core.$strict>>;
1175
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1176
+ shell: z.ZodOptional<z.ZodEnum<{
1177
+ bash: "bash";
1178
+ powershell: "powershell";
1179
+ }>>;
1180
+ permissions: z.ZodOptional<z.ZodBoolean>;
1181
+ certificate: z.ZodOptional<z.ZodBoolean>;
1182
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
1183
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
1184
+ siteRole: z.ZodOptional<z.ZodEnum<{
1185
+ read: "read";
1186
+ write: "write";
1187
+ }>>;
1188
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
1189
+ confirm: z.ZodOptional<z.ZodString>;
1190
+ live: z.ZodOptional<z.ZodString>;
1191
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ label: z.ZodString;
1194
+ help: z.ZodOptional<z.ZodString>;
1195
+ placeholder: z.ZodOptional<z.ZodString>;
1196
+ pattern: z.ZodString;
1197
+ }, z.core.$strict>>>;
1198
+ option: z.ZodOptional<z.ZodObject<{
1199
+ field: z.ZodString;
1200
+ value: z.ZodString;
1201
+ }, z.core.$strict>>;
1202
+ }, z.core.$strict>>;
1203
+ registration: z.ZodNullable<z.ZodObject<{
1204
+ ok: z.ZodBoolean;
1205
+ message: z.ZodString;
1206
+ }, z.core.$strict>>;
1207
+ }, z.core.$strict>;
1208
+ EventTrigger: z.ZodObject<{
1209
+ id: z.ZodString;
1210
+ agentId: z.ZodString;
1211
+ connectorId: z.ZodString;
1212
+ enabled: z.ZodBoolean;
1213
+ eventTypes: z.ZodArray<z.ZodString>;
1214
+ conditions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1215
+ field: z.ZodString;
1216
+ in: z.ZodArray<z.ZodString>;
1217
+ }, z.core.$strict>, z.ZodObject<{
1218
+ field: z.ZodString;
1219
+ notIn: z.ZodArray<z.ZodString>;
1220
+ }, z.core.$strict>]>>;
1221
+ prompt: z.ZodString;
1222
+ runner: z.ZodString;
1223
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1224
+ hasSigningSecret: z.ZodBoolean;
1225
+ managedAgentId: z.ZodNullable<z.ZodString>;
1226
+ environmentId: z.ZodNullable<z.ZodString>;
1227
+ vaultIds: z.ZodArray<z.ZodString>;
1228
+ budgetCents: z.ZodNumber;
1229
+ maxRunsPerHour: z.ZodNumber;
1230
+ maxCentsPerDay: z.ZodNumber;
1231
+ maxConcurrent: z.ZodNumber;
1232
+ updatedBy: z.ZodNullable<z.ZodString>;
1233
+ updatedAt: z.ZodString;
1234
+ }, z.core.$strict>;
1235
+ EventRun: z.ZodObject<{
1236
+ id: z.ZodString;
1237
+ agentId: z.ZodString;
1238
+ triggerId: z.ZodString;
1239
+ connectorId: z.ZodString;
1240
+ eventType: z.ZodString;
1241
+ deliveryId: z.ZodString;
1242
+ runner: z.ZodString;
1243
+ sessionId: z.ZodNullable<z.ZodString>;
1244
+ state: z.ZodEnum<{
1245
+ failed: "failed";
1246
+ running: "running";
1247
+ starting: "starting";
1248
+ ended: "ended";
1249
+ }>;
1250
+ error: z.ZodNullable<z.ZodString>;
1251
+ costCents: z.ZodNullable<z.ZodNumber>;
1252
+ startedAt: z.ZodString;
1253
+ finishedAt: z.ZodNullable<z.ZodString>;
1254
+ }, z.core.$strict>;
1255
+ ClaudeKey: z.ZodUnion<readonly [z.ZodObject<{
1256
+ set: z.ZodLiteral<false>;
1257
+ }, z.core.$strict>, z.ZodObject<{
1258
+ set: z.ZodLiteral<true>;
1259
+ ending: z.ZodString;
1260
+ by: z.ZodNullable<z.ZodString>;
1261
+ at: z.ZodString;
1262
+ }, z.core.$strict>]>;
1263
+ ClaudeKeySaved: z.ZodObject<{
1264
+ set: z.ZodLiteral<true>;
1265
+ ending: z.ZodString;
1266
+ by: z.ZodNullable<z.ZodString>;
1267
+ at: z.ZodString;
1268
+ agents: z.ZodArray<z.ZodObject<{
1269
+ id: z.ZodString;
1270
+ name: z.ZodString;
1271
+ }, z.core.$strict>>;
1272
+ }, z.core.$strict>;
1273
+ ClaudeAgent: z.ZodObject<{
1274
+ id: z.ZodString;
1275
+ name: z.ZodString;
1276
+ }, z.core.$strict>;
1277
+ Ok: z.ZodObject<{
1278
+ ok: z.ZodLiteral<true>;
1279
+ }, z.core.$strict>;
1280
+ };
1281
+ /** A route's answer: a JSON shape, a file of this content type, or no body (null). */
1282
+ export type Answer = z.ZodType | {
1283
+ file: string;
1284
+ } | null;
1285
+ export type RouteSpec = {
1286
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1287
+ /** Parameters: {org} and {agent} are uuids, {app}, {provider} and {step} ids. */
1288
+ path: `/${string}`;
1289
+ summary: string;
1290
+ query?: Record<string, string>;
1291
+ body?: z.ZodType;
1292
+ responses: Record<number, Answer>;
1293
+ /** Served only where Teams is set up. */
1294
+ teams?: true;
1295
+ /** Served only where app events are set up. */
1296
+ events?: true;
1297
+ };
1298
+ export declare const PARAMS: {
1299
+ readonly org: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
1300
+ readonly agent: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
1301
+ readonly app: "[a-z0-9-]+";
1302
+ readonly provider: "[a-z0-9-]+";
1303
+ readonly step: "[a-z0-9-]+";
1304
+ readonly subscription: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
1305
+ };
1306
+ /** Every admin route, by the client method that calls it. */
1307
+ export declare const routes: {
1308
+ readonly listOrganizations: {
1309
+ readonly method: "GET";
1310
+ readonly path: "/orgs";
1311
+ readonly summary: "The organizations";
1312
+ readonly responses: {
1313
+ readonly 200: z.ZodArray<z.ZodObject<{
1314
+ id: z.ZodGUID;
1315
+ name: z.ZodNullable<z.ZodString>;
1316
+ createdAt: z.ZodString;
1317
+ }, z.core.$strict>>;
1318
+ };
1319
+ };
1320
+ readonly createOrganization: {
1321
+ readonly method: "POST";
1322
+ readonly path: "/orgs";
1323
+ readonly summary: "Makes an organization; its id is made here";
1324
+ readonly body: z.ZodObject<{
1325
+ name: z.ZodString;
1326
+ }, z.core.$strip>;
1327
+ readonly responses: {
1328
+ readonly 201: z.ZodObject<{
1329
+ id: z.ZodGUID;
1330
+ name: z.ZodNullable<z.ZodString>;
1331
+ createdAt: z.ZodString;
1332
+ }, z.core.$strict>;
1333
+ };
1334
+ };
1335
+ readonly getOrganization: {
1336
+ readonly method: "GET";
1337
+ readonly path: "/orgs/{org}";
1338
+ readonly summary: "One organization";
1339
+ readonly responses: {
1340
+ readonly 404: z.ZodObject<{
1341
+ error: z.ZodString;
1342
+ }, z.core.$strict>;
1343
+ readonly 200: z.ZodObject<{
1344
+ id: z.ZodGUID;
1345
+ name: z.ZodNullable<z.ZodString>;
1346
+ createdAt: z.ZodString;
1347
+ }, z.core.$strict>;
1348
+ };
1349
+ };
1350
+ readonly ensureOrganization: {
1351
+ readonly method: "PUT";
1352
+ readonly path: "/orgs/{org}";
1353
+ readonly summary: "Makes the organization with this id if missing, and names it when a name is given";
1354
+ readonly body: z.ZodObject<{
1355
+ name: z.ZodOptional<z.ZodString>;
1356
+ }, z.core.$strip>;
1357
+ readonly responses: {
1358
+ readonly 200: z.ZodObject<{
1359
+ id: z.ZodGUID;
1360
+ name: z.ZodNullable<z.ZodString>;
1361
+ createdAt: z.ZodString;
1362
+ }, z.core.$strict>;
1363
+ };
1364
+ };
1365
+ readonly branding: {
1366
+ readonly method: "GET";
1367
+ readonly path: "/branding";
1368
+ readonly summary: "The deployment's names and logo, for a UI to show";
1369
+ readonly responses: {
1370
+ readonly 200: z.ZodObject<{
1371
+ productName: z.ZodDefault<z.ZodString>;
1372
+ logoUrl: z.ZodOptional<z.ZodURL>;
1373
+ resourcePrefix: z.ZodDefault<z.ZodString>;
1374
+ microsoft: z.ZodDefault<z.ZodObject<{
1375
+ appName: z.ZodDefault<z.ZodString>;
1376
+ mailboxGroup: z.ZodDefault<z.ZodString>;
1377
+ mailboxGroupAlias: z.ZodDefault<z.ZodString>;
1378
+ botRole: z.ZodDefault<z.ZodString>;
1379
+ }, z.core.$strict>>;
1380
+ teams: z.ZodDefault<z.ZodObject<{
1381
+ resourceGroup: z.ZodDefault<z.ZodString>;
1382
+ developer: z.ZodOptional<z.ZodObject<{
1383
+ name: z.ZodString;
1384
+ websiteUrl: z.ZodURL;
1385
+ privacyUrl: z.ZodURL;
1386
+ termsOfUseUrl: z.ZodURL;
1387
+ }, z.core.$strict>>;
1388
+ }, z.core.$strict>>;
1389
+ }, z.core.$strict>;
1390
+ };
1391
+ };
1392
+ readonly connectors: {
1393
+ readonly method: "GET";
1394
+ readonly path: "/connectors";
1395
+ readonly summary: "The apps agents can use";
1396
+ readonly responses: {
1397
+ readonly 200: z.ZodArray<z.ZodObject<{
1398
+ id: z.ZodString;
1399
+ name: z.ZodString;
1400
+ description: z.ZodString;
1401
+ logo: z.ZodString;
1402
+ identity: z.ZodString;
1403
+ signsInAs: z.ZodOptional<z.ZodEnum<{
1404
+ agentBot: "agentBot";
1405
+ }>>;
1406
+ provider: z.ZodOptional<z.ZodString>;
1407
+ order: z.ZodOptional<z.ZodNumber>;
1408
+ connectionKind: z.ZodEnum<{
1409
+ guided: "guided";
1410
+ }>;
1411
+ accountKey: z.ZodString;
1412
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1413
+ setup: z.ZodArray<z.ZodObject<{
1414
+ title: z.ZodString;
1415
+ body: z.ZodString;
1416
+ link: z.ZodOptional<z.ZodObject<{
1417
+ label: z.ZodString;
1418
+ href: z.ZodURL;
1419
+ }, z.core.$strict>>;
1420
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1421
+ shell: z.ZodOptional<z.ZodEnum<{
1422
+ bash: "bash";
1423
+ powershell: "powershell";
1424
+ }>>;
1425
+ permissions: z.ZodOptional<z.ZodBoolean>;
1426
+ certificate: z.ZodOptional<z.ZodBoolean>;
1427
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
1428
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
1429
+ siteRole: z.ZodOptional<z.ZodEnum<{
1430
+ read: "read";
1431
+ write: "write";
1432
+ }>>;
1433
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
1434
+ confirm: z.ZodOptional<z.ZodString>;
1435
+ live: z.ZodOptional<z.ZodString>;
1436
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1437
+ id: z.ZodString;
1438
+ label: z.ZodString;
1439
+ help: z.ZodOptional<z.ZodString>;
1440
+ placeholder: z.ZodOptional<z.ZodString>;
1441
+ pattern: z.ZodString;
1442
+ }, z.core.$strict>>>;
1443
+ option: z.ZodOptional<z.ZodObject<{
1444
+ field: z.ZodString;
1445
+ value: z.ZodString;
1446
+ }, z.core.$strict>>;
1447
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
1448
+ }, z.core.$strict>>;
1449
+ afterConnect: z.ZodArray<z.ZodObject<{
1450
+ title: z.ZodString;
1451
+ body: z.ZodString;
1452
+ link: z.ZodOptional<z.ZodObject<{
1453
+ label: z.ZodString;
1454
+ href: z.ZodURL;
1455
+ }, z.core.$strict>>;
1456
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1457
+ shell: z.ZodOptional<z.ZodEnum<{
1458
+ bash: "bash";
1459
+ powershell: "powershell";
1460
+ }>>;
1461
+ permissions: z.ZodOptional<z.ZodBoolean>;
1462
+ certificate: z.ZodOptional<z.ZodBoolean>;
1463
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
1464
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
1465
+ siteRole: z.ZodOptional<z.ZodEnum<{
1466
+ read: "read";
1467
+ write: "write";
1468
+ }>>;
1469
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
1470
+ confirm: z.ZodOptional<z.ZodString>;
1471
+ live: z.ZodOptional<z.ZodString>;
1472
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ label: z.ZodString;
1475
+ help: z.ZodOptional<z.ZodString>;
1476
+ placeholder: z.ZodOptional<z.ZodString>;
1477
+ pattern: z.ZodString;
1478
+ }, z.core.$strict>>>;
1479
+ option: z.ZodOptional<z.ZodObject<{
1480
+ field: z.ZodString;
1481
+ value: z.ZodString;
1482
+ }, z.core.$strict>>;
1483
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
1484
+ }, z.core.$strict>>;
1485
+ fields: z.ZodArray<z.ZodObject<{
1486
+ id: z.ZodString;
1487
+ label: z.ZodString;
1488
+ help: z.ZodOptional<z.ZodString>;
1489
+ placeholder: z.ZodOptional<z.ZodString>;
1490
+ secret: z.ZodBoolean;
1491
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1492
+ value: z.ZodString;
1493
+ label: z.ZodString;
1494
+ description: z.ZodString;
1495
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1496
+ }, z.core.$strict>>>;
1497
+ requires: z.ZodOptional<z.ZodObject<{
1498
+ field: z.ZodString;
1499
+ value: z.ZodString;
1500
+ }, z.core.$strict>>;
1501
+ optional: z.ZodDefault<z.ZodBoolean>;
1502
+ }, z.core.$strict>>;
1503
+ capabilities: z.ZodArray<z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ label: z.ZodString;
1506
+ description: z.ZodString;
1507
+ required: z.ZodDefault<z.ZodBoolean>;
1508
+ destructive: z.ZodDefault<z.ZodBoolean>;
1509
+ costs: z.ZodOptional<z.ZodBoolean>;
1510
+ scopes: z.ZodArray<z.ZodString>;
1511
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1512
+ permissions: z.ZodArray<z.ZodString>;
1513
+ fill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1514
+ note: z.ZodOptional<z.ZodString>;
1515
+ forbidden: z.ZodOptional<z.ZodString>;
1516
+ claudeKey: z.ZodOptional<z.ZodBoolean>;
1517
+ tools: z.ZodArray<z.ZodString>;
1518
+ }, z.core.$strict>>;
1519
+ limits: z.ZodArray<z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ label: z.ZodString;
1522
+ help: z.ZodString;
1523
+ kind: z.ZodEnum<{
1524
+ text: "text";
1525
+ map: "map";
1526
+ list: "list";
1527
+ }>;
1528
+ required: z.ZodBoolean;
1529
+ pattern: z.ZodOptional<z.ZodString>;
1530
+ keys: z.ZodOptional<z.ZodString>;
1531
+ }, z.core.$strict>>;
1532
+ siteAccess: z.ZodOptional<z.ZodObject<{
1533
+ grant: z.ZodArray<z.ZodObject<{
1534
+ title: z.ZodString;
1535
+ body: z.ZodString;
1536
+ link: z.ZodOptional<z.ZodObject<{
1537
+ label: z.ZodString;
1538
+ href: z.ZodURL;
1539
+ }, z.core.$strict>>;
1540
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1541
+ shell: z.ZodOptional<z.ZodEnum<{
1542
+ bash: "bash";
1543
+ powershell: "powershell";
1544
+ }>>;
1545
+ permissions: z.ZodOptional<z.ZodBoolean>;
1546
+ certificate: z.ZodOptional<z.ZodBoolean>;
1547
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
1548
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
1549
+ siteRole: z.ZodOptional<z.ZodEnum<{
1550
+ read: "read";
1551
+ write: "write";
1552
+ }>>;
1553
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
1554
+ confirm: z.ZodOptional<z.ZodString>;
1555
+ live: z.ZodOptional<z.ZodString>;
1556
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1557
+ id: z.ZodString;
1558
+ label: z.ZodString;
1559
+ help: z.ZodOptional<z.ZodString>;
1560
+ placeholder: z.ZodOptional<z.ZodString>;
1561
+ pattern: z.ZodString;
1562
+ }, z.core.$strict>>>;
1563
+ option: z.ZodOptional<z.ZodObject<{
1564
+ field: z.ZodString;
1565
+ value: z.ZodString;
1566
+ }, z.core.$strict>>;
1567
+ }, z.core.$strict>>;
1568
+ request: z.ZodString;
1569
+ write: z.ZodDefault<z.ZodArray<z.ZodString>>;
1570
+ }, z.core.$strict>>;
1571
+ agentAccess: z.ZodOptional<z.ZodObject<{
1572
+ limit: z.ZodString;
1573
+ label: z.ZodString;
1574
+ path: z.ZodString;
1575
+ granted: z.ZodString;
1576
+ notGranted: z.ZodString;
1577
+ notFound: z.ZodString;
1578
+ probes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1579
+ method: z.ZodEnum<{
1580
+ GET: "GET";
1581
+ POST: "POST";
1582
+ PATCH: "PATCH";
1583
+ }>;
1584
+ path: z.ZodString;
1585
+ body: z.ZodOptional<z.ZodUnknown>;
1586
+ allowed: z.ZodArray<z.ZodNumber>;
1587
+ }, z.core.$strict>>>;
1588
+ missing: z.ZodOptional<z.ZodString>;
1589
+ }, z.core.$strict>>;
1590
+ verify: z.ZodUnion<readonly [z.ZodObject<{
1591
+ method: z.ZodEnum<{
1592
+ GET: "GET";
1593
+ POST: "POST";
1594
+ }>;
1595
+ path: z.ZodString;
1596
+ label: z.ZodString;
1597
+ show: z.ZodString;
1598
+ name: z.ZodOptional<z.ZodString>;
1599
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1600
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1601
+ ifEmpty: z.ZodOptional<z.ZodString>;
1602
+ }, z.core.$strict>, z.ZodObject<{
1603
+ label: z.ZodString;
1604
+ check: z.ZodString;
1605
+ ifEmpty: z.ZodOptional<z.ZodString>;
1606
+ }, z.core.$strict>]>;
1607
+ discover: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1608
+ method: z.ZodEnum<{
1609
+ GET: "GET";
1610
+ POST: "POST";
1611
+ }>;
1612
+ path: z.ZodString;
1613
+ label: z.ZodString;
1614
+ show: z.ZodString;
1615
+ name: z.ZodOptional<z.ZodString>;
1616
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1617
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1618
+ ifEmpty: z.ZodOptional<z.ZodString>;
1619
+ }, z.core.$strict>, z.ZodObject<{
1620
+ label: z.ZodString;
1621
+ check: z.ZodString;
1622
+ ifEmpty: z.ZodOptional<z.ZodString>;
1623
+ }, z.core.$strict>]>>;
1624
+ revoke: z.ZodString;
1625
+ http: z.ZodOptional<z.ZodObject<{
1626
+ baseUrl: z.ZodURL;
1627
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1628
+ type: z.ZodLiteral<"header">;
1629
+ header: z.ZodString;
1630
+ value: z.ZodString;
1631
+ prefix: z.ZodOptional<z.ZodString>;
1632
+ }, z.core.$strict>, z.ZodObject<{
1633
+ type: z.ZodLiteral<"bearer">;
1634
+ token: z.ZodString;
1635
+ }, z.core.$strict>, z.ZodObject<{
1636
+ type: z.ZodLiteral<"basic">;
1637
+ username: z.ZodString;
1638
+ password: z.ZodString;
1639
+ }, z.core.$strict>, z.ZodObject<{
1640
+ type: z.ZodLiteral<"oauth2">;
1641
+ tokenUrl: z.ZodURL;
1642
+ clientId: z.ZodString;
1643
+ clientSecret: z.ZodString;
1644
+ scope: z.ZodOptional<z.ZodString>;
1645
+ }, z.core.$strict>, z.ZodObject<{
1646
+ type: z.ZodLiteral<"query">;
1647
+ param: z.ZodString;
1648
+ value: z.ZodString;
1649
+ }, z.core.$strict>], "type">;
1650
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1651
+ tools: z.ZodArray<z.ZodObject<{
1652
+ name: z.ZodString;
1653
+ description: z.ZodString;
1654
+ method: z.ZodEnum<{
1655
+ GET: "GET";
1656
+ POST: "POST";
1657
+ PUT: "PUT";
1658
+ PATCH: "PATCH";
1659
+ DELETE: "DELETE";
1660
+ }>;
1661
+ path: z.ZodString;
1662
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1663
+ type: z.ZodEnum<{
1664
+ string: "string";
1665
+ number: "number";
1666
+ boolean: "boolean";
1667
+ array: "array";
1668
+ integer: "integer";
1669
+ }>;
1670
+ description: z.ZodString;
1671
+ in: z.ZodEnum<{
1672
+ body: "body";
1673
+ path: "path";
1674
+ query: "query";
1675
+ }>;
1676
+ name: z.ZodOptional<z.ZodString>;
1677
+ required: z.ZodDefault<z.ZodBoolean>;
1678
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
1679
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1680
+ items: z.ZodOptional<z.ZodEnum<{
1681
+ string: "string";
1682
+ number: "number";
1683
+ boolean: "boolean";
1684
+ integer: "integer";
1685
+ }>>;
1686
+ join: z.ZodOptional<z.ZodString>;
1687
+ limit: z.ZodOptional<z.ZodString>;
1688
+ }, z.core.$strict>>>;
1689
+ destructive: z.ZodDefault<z.ZodBoolean>;
1690
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1691
+ field: z.ZodString;
1692
+ limit: z.ZodString;
1693
+ }, z.core.$strict>>>;
1694
+ result: z.ZodOptional<z.ZodObject<{
1695
+ items: z.ZodOptional<z.ZodString>;
1696
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1697
+ }, z.core.$strict>>;
1698
+ paging: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1699
+ param: z.ZodString;
1700
+ body: z.ZodString;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ param: z.ZodString;
1703
+ header: z.ZodString;
1704
+ }, z.core.$strict>, z.ZodObject<{
1705
+ param: z.ZodString;
1706
+ link: z.ZodLiteral<true>;
1707
+ }, z.core.$strict>]>>;
1708
+ }, z.core.$strict>>;
1709
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
1710
+ }, z.core.$strict>>;
1711
+ soap: z.ZodOptional<z.ZodObject<{
1712
+ endpoint: z.ZodURL;
1713
+ version: z.ZodDefault<z.ZodEnum<{
1714
+ 1.1: "1.1";
1715
+ 1.2: "1.2";
1716
+ }>>;
1717
+ namespaces: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1718
+ auth: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1719
+ type: z.ZodLiteral<"header">;
1720
+ header: z.ZodString;
1721
+ value: z.ZodString;
1722
+ prefix: z.ZodOptional<z.ZodString>;
1723
+ }, z.core.$strict>, z.ZodObject<{
1724
+ type: z.ZodLiteral<"bearer">;
1725
+ token: z.ZodString;
1726
+ }, z.core.$strict>, z.ZodObject<{
1727
+ type: z.ZodLiteral<"basic">;
1728
+ username: z.ZodString;
1729
+ password: z.ZodString;
1730
+ }, z.core.$strict>], "type">>;
1731
+ wsSecurity: z.ZodOptional<z.ZodObject<{
1732
+ username: z.ZodString;
1733
+ password: z.ZodString;
1734
+ digest: z.ZodDefault<z.ZodBoolean>;
1735
+ }, z.core.$strict>>;
1736
+ verify: z.ZodOptional<z.ZodObject<{
1737
+ tool: z.ZodString;
1738
+ args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1739
+ show: z.ZodString;
1740
+ }, z.core.$strict>>;
1741
+ tools: z.ZodArray<z.ZodObject<{
1742
+ name: z.ZodString;
1743
+ description: z.ZodString;
1744
+ operation: z.ZodString;
1745
+ soapAction: z.ZodOptional<z.ZodString>;
1746
+ body: z.ZodString;
1747
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1748
+ type: z.ZodEnum<{
1749
+ string: "string";
1750
+ number: "number";
1751
+ boolean: "boolean";
1752
+ integer: "integer";
1753
+ }>;
1754
+ description: z.ZodString;
1755
+ required: z.ZodDefault<z.ZodBoolean>;
1756
+ limit: z.ZodOptional<z.ZodString>;
1757
+ }, z.core.$strict>>>;
1758
+ result: z.ZodOptional<z.ZodString>;
1759
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1760
+ readOnly: z.ZodDefault<z.ZodBoolean>;
1761
+ destructive: z.ZodDefault<z.ZodBoolean>;
1762
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1763
+ field: z.ZodString;
1764
+ limit: z.ZodString;
1765
+ }, z.core.$strict>>>;
1766
+ }, z.core.$strict>>;
1767
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
1768
+ }, z.core.$strict>>;
1769
+ odata: z.ZodOptional<z.ZodObject<{
1770
+ serviceRoot: z.ZodURL;
1771
+ version: z.ZodEnum<{
1772
+ 2: "2";
1773
+ 4: "4";
1774
+ }>;
1775
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1776
+ type: z.ZodLiteral<"header">;
1777
+ header: z.ZodString;
1778
+ value: z.ZodString;
1779
+ prefix: z.ZodOptional<z.ZodString>;
1780
+ }, z.core.$strict>, z.ZodObject<{
1781
+ type: z.ZodLiteral<"bearer">;
1782
+ token: z.ZodString;
1783
+ }, z.core.$strict>, z.ZodObject<{
1784
+ type: z.ZodLiteral<"basic">;
1785
+ username: z.ZodString;
1786
+ password: z.ZodString;
1787
+ }, z.core.$strict>, z.ZodObject<{
1788
+ type: z.ZodLiteral<"oauth2">;
1789
+ tokenUrl: z.ZodURL;
1790
+ clientId: z.ZodString;
1791
+ clientSecret: z.ZodString;
1792
+ scope: z.ZodOptional<z.ZodString>;
1793
+ }, z.core.$strict>, z.ZodObject<{
1794
+ type: z.ZodLiteral<"query">;
1795
+ param: z.ZodString;
1796
+ value: z.ZodString;
1797
+ }, z.core.$strict>], "type">;
1798
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1799
+ csrf: z.ZodDefault<z.ZodBoolean>;
1800
+ paging: z.ZodDefault<z.ZodEnum<{
1801
+ skip: "skip";
1802
+ server: "server";
1803
+ }>>;
1804
+ tools: z.ZodArray<z.ZodObject<{
1805
+ name: z.ZodString;
1806
+ description: z.ZodString;
1807
+ kind: z.ZodEnum<{
1808
+ function: "function";
1809
+ list: "list";
1810
+ get: "get";
1811
+ create: "create";
1812
+ update: "update";
1813
+ action: "action";
1814
+ }>;
1815
+ entitySet: z.ZodOptional<z.ZodString>;
1816
+ function: z.ZodOptional<z.ZodString>;
1817
+ key: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1818
+ type: z.ZodEnum<{
1819
+ string: "string";
1820
+ number: "number";
1821
+ boolean: "boolean";
1822
+ guid: "guid";
1823
+ integer: "integer";
1824
+ decimal: "decimal";
1825
+ datetime: "datetime";
1826
+ datetimeoffset: "datetimeoffset";
1827
+ }>;
1828
+ description: z.ZodString;
1829
+ property: z.ZodOptional<z.ZodString>;
1830
+ required: z.ZodOptional<z.ZodBoolean>;
1831
+ limit: z.ZodOptional<z.ZodString>;
1832
+ }, z.core.$strict>>>;
1833
+ filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1834
+ type: z.ZodEnum<{
1835
+ string: "string";
1836
+ number: "number";
1837
+ boolean: "boolean";
1838
+ guid: "guid";
1839
+ integer: "integer";
1840
+ decimal: "decimal";
1841
+ datetime: "datetime";
1842
+ datetimeoffset: "datetimeoffset";
1843
+ }>;
1844
+ description: z.ZodString;
1845
+ property: z.ZodOptional<z.ZodString>;
1846
+ required: z.ZodOptional<z.ZodBoolean>;
1847
+ limit: z.ZodOptional<z.ZodString>;
1848
+ op: z.ZodDefault<z.ZodEnum<{
1849
+ eq: "eq";
1850
+ ne: "ne";
1851
+ gt: "gt";
1852
+ ge: "ge";
1853
+ lt: "lt";
1854
+ le: "le";
1855
+ contains: "contains";
1856
+ startswith: "startswith";
1857
+ }>>;
1858
+ }, z.core.$strict>>>;
1859
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1860
+ type: z.ZodEnum<{
1861
+ string: "string";
1862
+ number: "number";
1863
+ boolean: "boolean";
1864
+ guid: "guid";
1865
+ integer: "integer";
1866
+ decimal: "decimal";
1867
+ datetime: "datetime";
1868
+ datetimeoffset: "datetimeoffset";
1869
+ }>;
1870
+ description: z.ZodString;
1871
+ property: z.ZodOptional<z.ZodString>;
1872
+ required: z.ZodOptional<z.ZodBoolean>;
1873
+ limit: z.ZodOptional<z.ZodString>;
1874
+ }, z.core.$strict>>>;
1875
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1876
+ type: z.ZodEnum<{
1877
+ string: "string";
1878
+ number: "number";
1879
+ boolean: "boolean";
1880
+ guid: "guid";
1881
+ integer: "integer";
1882
+ decimal: "decimal";
1883
+ datetime: "datetime";
1884
+ datetimeoffset: "datetimeoffset";
1885
+ }>;
1886
+ description: z.ZodString;
1887
+ property: z.ZodOptional<z.ZodString>;
1888
+ required: z.ZodOptional<z.ZodBoolean>;
1889
+ limit: z.ZodOptional<z.ZodString>;
1890
+ }, z.core.$strict>>>;
1891
+ select: z.ZodDefault<z.ZodArray<z.ZodString>>;
1892
+ orderBy: z.ZodOptional<z.ZodString>;
1893
+ top: z.ZodDefault<z.ZodNumber>;
1894
+ destructive: z.ZodDefault<z.ZodBoolean>;
1895
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1896
+ field: z.ZodString;
1897
+ limit: z.ZodString;
1898
+ }, z.core.$strict>>>;
1899
+ }, z.core.$strict>>;
1900
+ allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
1901
+ }, z.core.$strict>>;
1902
+ sql: z.ZodOptional<z.ZodObject<{
1903
+ engine: z.ZodEnum<{
1904
+ postgres: "postgres";
1905
+ sqlserver: "sqlserver";
1906
+ mysql: "mysql";
1907
+ oracle: "oracle";
1908
+ }>;
1909
+ host: z.ZodString;
1910
+ port: z.ZodOptional<z.ZodNumber>;
1911
+ database: z.ZodString;
1912
+ auth: z.ZodObject<{
1913
+ user: z.ZodString;
1914
+ password: z.ZodString;
1915
+ }, z.core.$strict>;
1916
+ tls: z.ZodDefault<z.ZodEnum<{
1917
+ verify: "verify";
1918
+ insecure: "insecure";
1919
+ off: "off";
1920
+ }>>;
1921
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1922
+ maxRows: z.ZodDefault<z.ZodNumber>;
1923
+ tools: z.ZodArray<z.ZodObject<{
1924
+ name: z.ZodString;
1925
+ description: z.ZodString;
1926
+ sql: z.ZodString;
1927
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1928
+ type: z.ZodEnum<{
1929
+ string: "string";
1930
+ number: "number";
1931
+ boolean: "boolean";
1932
+ integer: "integer";
1933
+ }>;
1934
+ description: z.ZodString;
1935
+ required: z.ZodDefault<z.ZodBoolean>;
1936
+ limit: z.ZodOptional<z.ZodString>;
1937
+ }, z.core.$strict>>>;
1938
+ write: z.ZodDefault<z.ZodBoolean>;
1939
+ destructive: z.ZodDefault<z.ZodBoolean>;
1940
+ answerLimits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1941
+ column: z.ZodString;
1942
+ limit: z.ZodString;
1943
+ }, z.core.$strict>>>;
1944
+ }, z.core.$strict>>;
1945
+ }, z.core.$strict>>;
1946
+ events: z.ZodOptional<z.ZodObject<{
1947
+ types: z.ZodArray<z.ZodObject<{
1948
+ id: z.ZodString;
1949
+ label: z.ZodString;
1950
+ }, z.core.$strict>>;
1951
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
1952
+ limits: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1953
+ webhook: z.ZodOptional<z.ZodObject<{
1954
+ verify: z.ZodDiscriminatedUnion<[z.ZodObject<{
1955
+ type: z.ZodLiteral<"hmac-sha256">;
1956
+ header: z.ZodString;
1957
+ prefix: z.ZodDefault<z.ZodString>;
1958
+ }, z.core.$strict>, z.ZodObject<{
1959
+ type: z.ZodLiteral<"token">;
1960
+ header: z.ZodString;
1961
+ }, z.core.$strict>, z.ZodObject<{
1962
+ type: z.ZodLiteral<"none">;
1963
+ }, z.core.$strict>], "type">;
1964
+ allowInsecure: z.ZodDefault<z.ZodBoolean>;
1965
+ type: z.ZodUnion<readonly [z.ZodObject<{
1966
+ field: z.ZodString;
1967
+ }, z.core.$strict>, z.ZodObject<{
1968
+ header: z.ZodString;
1969
+ }, z.core.$strict>]>;
1970
+ deliveryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1971
+ field: z.ZodString;
1972
+ }, z.core.$strict>, z.ZodObject<{
1973
+ header: z.ZodString;
1974
+ }, z.core.$strict>]>>;
1975
+ timestamp: z.ZodOptional<z.ZodObject<{
1976
+ at: z.ZodUnion<readonly [z.ZodObject<{
1977
+ field: z.ZodString;
1978
+ }, z.core.$strict>, z.ZodObject<{
1979
+ header: z.ZodString;
1980
+ }, z.core.$strict>]>;
1981
+ unit: z.ZodEnum<{
1982
+ s: "s";
1983
+ ms: "ms";
1984
+ iso: "iso";
1985
+ }>;
1986
+ toleranceSeconds: z.ZodDefault<z.ZodNumber>;
1987
+ }, z.core.$strict>>;
1988
+ setup: z.ZodArray<z.ZodObject<{
1989
+ title: z.ZodString;
1990
+ body: z.ZodString;
1991
+ link: z.ZodOptional<z.ZodObject<{
1992
+ label: z.ZodString;
1993
+ href: z.ZodURL;
1994
+ }, z.core.$strict>>;
1995
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1996
+ shell: z.ZodOptional<z.ZodEnum<{
1997
+ bash: "bash";
1998
+ powershell: "powershell";
1999
+ }>>;
2000
+ permissions: z.ZodOptional<z.ZodBoolean>;
2001
+ certificate: z.ZodOptional<z.ZodBoolean>;
2002
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
2003
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
2004
+ siteRole: z.ZodOptional<z.ZodEnum<{
2005
+ read: "read";
2006
+ write: "write";
2007
+ }>>;
2008
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
2009
+ confirm: z.ZodOptional<z.ZodString>;
2010
+ live: z.ZodOptional<z.ZodString>;
2011
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2012
+ id: z.ZodString;
2013
+ label: z.ZodString;
2014
+ help: z.ZodOptional<z.ZodString>;
2015
+ placeholder: z.ZodOptional<z.ZodString>;
2016
+ pattern: z.ZodString;
2017
+ }, z.core.$strict>>>;
2018
+ option: z.ZodOptional<z.ZodObject<{
2019
+ field: z.ZodString;
2020
+ value: z.ZodString;
2021
+ }, z.core.$strict>>;
2022
+ }, z.core.$strict>>;
2023
+ register: z.ZodOptional<z.ZodObject<{
2024
+ method: z.ZodEnum<{
2025
+ GET: "GET";
2026
+ POST: "POST";
2027
+ PUT: "PUT";
2028
+ }>;
2029
+ path: z.ZodString;
2030
+ body: z.ZodOptional<z.ZodUnknown>;
2031
+ location: z.ZodString;
2032
+ }, z.core.$strict>>;
2033
+ }, z.core.$strict>>;
2034
+ self: z.ZodOptional<z.ZodObject<{
2035
+ request: z.ZodObject<{
2036
+ method: z.ZodEnum<{
2037
+ GET: "GET";
2038
+ POST: "POST";
2039
+ PUT: "PUT";
2040
+ }>;
2041
+ path: z.ZodString;
2042
+ body: z.ZodOptional<z.ZodUnknown>;
2043
+ }, z.core.$strict>;
2044
+ id: z.ZodString;
2045
+ fields: z.ZodArray<z.ZodString>;
2046
+ }, z.core.$strict>>;
2047
+ poll: z.ZodOptional<z.ZodObject<{
2048
+ request: z.ZodObject<{
2049
+ method: z.ZodEnum<{
2050
+ GET: "GET";
2051
+ POST: "POST";
2052
+ PUT: "PUT";
2053
+ }>;
2054
+ path: z.ZodString;
2055
+ body: z.ZodOptional<z.ZodUnknown>;
2056
+ }, z.core.$strict>;
2057
+ filter: z.ZodOptional<z.ZodString>;
2058
+ items: z.ZodString;
2059
+ wrap: z.ZodOptional<z.ZodString>;
2060
+ cursor: z.ZodString;
2061
+ deliveryId: z.ZodArray<z.ZodString>;
2062
+ types: z.ZodArray<z.ZodObject<{
2063
+ type: z.ZodString;
2064
+ since: z.ZodOptional<z.ZodString>;
2065
+ }, z.core.$strict>>;
2066
+ }, z.core.$strict>>;
2067
+ }, z.core.$strict>>;
2068
+ }, z.core.$strict>>;
2069
+ };
2070
+ };
2071
+ readonly providers: {
2072
+ readonly method: "GET";
2073
+ readonly path: "/providers";
2074
+ readonly summary: "The sign-ins several apps share";
2075
+ readonly responses: {
2076
+ readonly 200: z.ZodArray<z.ZodObject<{
2077
+ id: z.ZodString;
2078
+ name: z.ZodString;
2079
+ logo: z.ZodString;
2080
+ identity: z.ZodString;
2081
+ sharedIdentity: z.ZodOptional<z.ZodString>;
2082
+ accountKey: z.ZodString;
2083
+ principalKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
2084
+ certificate: z.ZodBoolean;
2085
+ setup: z.ZodArray<z.ZodObject<{
2086
+ title: z.ZodString;
2087
+ body: z.ZodString;
2088
+ link: z.ZodOptional<z.ZodObject<{
2089
+ label: z.ZodString;
2090
+ href: z.ZodURL;
2091
+ }, z.core.$strict>>;
2092
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
2093
+ shell: z.ZodOptional<z.ZodEnum<{
2094
+ bash: "bash";
2095
+ powershell: "powershell";
2096
+ }>>;
2097
+ permissions: z.ZodOptional<z.ZodBoolean>;
2098
+ certificate: z.ZodOptional<z.ZodBoolean>;
2099
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
2100
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
2101
+ siteRole: z.ZodOptional<z.ZodEnum<{
2102
+ read: "read";
2103
+ write: "write";
2104
+ }>>;
2105
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
2106
+ confirm: z.ZodOptional<z.ZodString>;
2107
+ live: z.ZodOptional<z.ZodString>;
2108
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2109
+ id: z.ZodString;
2110
+ label: z.ZodString;
2111
+ help: z.ZodOptional<z.ZodString>;
2112
+ placeholder: z.ZodOptional<z.ZodString>;
2113
+ pattern: z.ZodString;
2114
+ }, z.core.$strict>>>;
2115
+ option: z.ZodOptional<z.ZodObject<{
2116
+ field: z.ZodString;
2117
+ value: z.ZodString;
2118
+ }, z.core.$strict>>;
2119
+ }, z.core.$strict>>;
2120
+ fields: z.ZodArray<z.ZodObject<{
2121
+ id: z.ZodString;
2122
+ label: z.ZodString;
2123
+ help: z.ZodOptional<z.ZodString>;
2124
+ placeholder: z.ZodOptional<z.ZodString>;
2125
+ secret: z.ZodBoolean;
2126
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2127
+ value: z.ZodString;
2128
+ label: z.ZodString;
2129
+ description: z.ZodString;
2130
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2131
+ }, z.core.$strict>>>;
2132
+ requires: z.ZodOptional<z.ZodObject<{
2133
+ field: z.ZodString;
2134
+ value: z.ZodString;
2135
+ }, z.core.$strict>>;
2136
+ optional: z.ZodDefault<z.ZodBoolean>;
2137
+ }, z.core.$strict>>;
2138
+ addAgent: z.ZodDefault<z.ZodArray<z.ZodObject<{
2139
+ title: z.ZodString;
2140
+ body: z.ZodString;
2141
+ link: z.ZodOptional<z.ZodObject<{
2142
+ label: z.ZodString;
2143
+ href: z.ZodURL;
2144
+ }, z.core.$strict>>;
2145
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
2146
+ shell: z.ZodOptional<z.ZodEnum<{
2147
+ bash: "bash";
2148
+ powershell: "powershell";
2149
+ }>>;
2150
+ permissions: z.ZodOptional<z.ZodBoolean>;
2151
+ certificate: z.ZodOptional<z.ZodBoolean>;
2152
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
2153
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
2154
+ siteRole: z.ZodOptional<z.ZodEnum<{
2155
+ read: "read";
2156
+ write: "write";
2157
+ }>>;
2158
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
2159
+ confirm: z.ZodOptional<z.ZodString>;
2160
+ live: z.ZodOptional<z.ZodString>;
2161
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2162
+ id: z.ZodString;
2163
+ label: z.ZodString;
2164
+ help: z.ZodOptional<z.ZodString>;
2165
+ placeholder: z.ZodOptional<z.ZodString>;
2166
+ pattern: z.ZodString;
2167
+ }, z.core.$strict>>>;
2168
+ option: z.ZodOptional<z.ZodObject<{
2169
+ field: z.ZodString;
2170
+ value: z.ZodString;
2171
+ }, z.core.$strict>>;
2172
+ apps: z.ZodArray<z.ZodString>;
2173
+ }, z.core.$strict>>>;
2174
+ revoke: z.ZodString;
2175
+ approval: z.ZodBoolean;
2176
+ }, z.core.$strict>>;
2177
+ };
2178
+ };
2179
+ readonly providerConnections: {
2180
+ readonly method: "GET";
2181
+ readonly path: "/orgs/{org}/providers";
2182
+ readonly summary: "The organization's provider connections";
2183
+ readonly responses: {
2184
+ readonly 200: z.ZodArray<z.ZodObject<{
2185
+ id: z.ZodString;
2186
+ organizationId: z.ZodString;
2187
+ provider: z.ZodString;
2188
+ status: z.ZodEnum<{
2189
+ connected: "connected";
2190
+ needs_reconnect: "needs_reconnect";
2191
+ pending: "pending";
2192
+ }>;
2193
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2194
+ accountLabel: z.ZodNullable<z.ZodString>;
2195
+ connectedBy: z.ZodNullable<z.ZodString>;
2196
+ connectedAt: z.ZodString;
2197
+ checkedAt: z.ZodString;
2198
+ certificate: z.ZodNullable<z.ZodObject<{
2199
+ thumbprint: z.ZodString;
2200
+ expiresAt: z.ZodString;
2201
+ }, z.core.$strict>>;
2202
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2203
+ thumbprint: z.ZodString;
2204
+ expiresAt: z.ZodString;
2205
+ }, z.core.$strict>>;
2206
+ apps: z.ZodArray<z.ZodString>;
2207
+ }, z.core.$strict>>;
2208
+ };
2209
+ };
2210
+ readonly connectProvider: {
2211
+ readonly method: "PUT";
2212
+ readonly path: "/orgs/{org}/providers/{provider}";
2213
+ readonly summary: "Connects a provider, proving the sign-in first";
2214
+ readonly body: z.ZodObject<{
2215
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2216
+ connectedBy: z.ZodString;
2217
+ }, z.core.$strip>;
2218
+ readonly responses: {
2219
+ readonly 200: z.ZodObject<{
2220
+ id: z.ZodString;
2221
+ organizationId: z.ZodString;
2222
+ provider: z.ZodString;
2223
+ status: z.ZodEnum<{
2224
+ connected: "connected";
2225
+ needs_reconnect: "needs_reconnect";
2226
+ pending: "pending";
2227
+ }>;
2228
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2229
+ accountLabel: z.ZodNullable<z.ZodString>;
2230
+ connectedBy: z.ZodNullable<z.ZodString>;
2231
+ connectedAt: z.ZodString;
2232
+ checkedAt: z.ZodString;
2233
+ certificate: z.ZodNullable<z.ZodObject<{
2234
+ thumbprint: z.ZodString;
2235
+ expiresAt: z.ZodString;
2236
+ }, z.core.$strict>>;
2237
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2238
+ thumbprint: z.ZodString;
2239
+ expiresAt: z.ZodString;
2240
+ }, z.core.$strict>>;
2241
+ apps: z.ZodArray<z.ZodString>;
2242
+ }, z.core.$strict>;
2243
+ };
2244
+ };
2245
+ readonly disconnectProvider: {
2246
+ readonly method: "DELETE";
2247
+ readonly path: "/orgs/{org}/providers/{provider}";
2248
+ readonly summary: "Disconnects a provider and every app signing in through it";
2249
+ readonly body: z.ZodObject<{
2250
+ by: z.ZodString;
2251
+ }, z.core.$strip>;
2252
+ readonly responses: {
2253
+ readonly 404: z.ZodObject<{
2254
+ error: z.ZodString;
2255
+ }, z.core.$strict>;
2256
+ readonly 204: null;
2257
+ };
2258
+ };
2259
+ readonly checkProvider: {
2260
+ readonly method: "POST";
2261
+ readonly path: "/orgs/{org}/providers/{provider}/check";
2262
+ readonly summary: "Signs in again";
2263
+ readonly responses: {
2264
+ readonly 404: z.ZodObject<{
2265
+ error: z.ZodString;
2266
+ }, z.core.$strict>;
2267
+ readonly 200: z.ZodUnion<readonly [z.ZodObject<{
2268
+ ok: z.ZodLiteral<true>;
2269
+ }, z.core.$strict>, z.ZodObject<{
2270
+ ok: z.ZodLiteral<false>;
2271
+ error: z.ZodString;
2272
+ }, z.core.$strict>]>;
2273
+ };
2274
+ };
2275
+ readonly newCertificate: {
2276
+ readonly method: "POST";
2277
+ readonly path: "/orgs/{org}/providers/{provider}/certificate";
2278
+ readonly summary: "Before connecting, the certificate to upload; after, one to rotate to";
2279
+ readonly body: z.ZodObject<{
2280
+ by: z.ZodString;
2281
+ }, z.core.$strip>;
2282
+ readonly responses: {
2283
+ readonly 200: z.ZodObject<{
2284
+ id: z.ZodString;
2285
+ organizationId: z.ZodString;
2286
+ provider: z.ZodString;
2287
+ status: z.ZodEnum<{
2288
+ connected: "connected";
2289
+ needs_reconnect: "needs_reconnect";
2290
+ pending: "pending";
2291
+ }>;
2292
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2293
+ accountLabel: z.ZodNullable<z.ZodString>;
2294
+ connectedBy: z.ZodNullable<z.ZodString>;
2295
+ connectedAt: z.ZodString;
2296
+ checkedAt: z.ZodString;
2297
+ certificate: z.ZodNullable<z.ZodObject<{
2298
+ thumbprint: z.ZodString;
2299
+ expiresAt: z.ZodString;
2300
+ }, z.core.$strict>>;
2301
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2302
+ thumbprint: z.ZodString;
2303
+ expiresAt: z.ZodString;
2304
+ }, z.core.$strict>>;
2305
+ apps: z.ZodArray<z.ZodString>;
2306
+ }, z.core.$strict>;
2307
+ };
2308
+ };
2309
+ readonly activateCertificate: {
2310
+ readonly method: "POST";
2311
+ readonly path: "/orgs/{org}/providers/{provider}/certificate/activate";
2312
+ readonly summary: "Signs in with the new certificate and, if that works, switches to it";
2313
+ readonly body: z.ZodObject<{
2314
+ by: z.ZodString;
2315
+ }, z.core.$strip>;
2316
+ readonly responses: {
2317
+ readonly 200: z.ZodObject<{
2318
+ id: z.ZodString;
2319
+ organizationId: z.ZodString;
2320
+ provider: z.ZodString;
2321
+ status: z.ZodEnum<{
2322
+ connected: "connected";
2323
+ needs_reconnect: "needs_reconnect";
2324
+ pending: "pending";
2325
+ }>;
2326
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2327
+ accountLabel: z.ZodNullable<z.ZodString>;
2328
+ connectedBy: z.ZodNullable<z.ZodString>;
2329
+ connectedAt: z.ZodString;
2330
+ checkedAt: z.ZodString;
2331
+ certificate: z.ZodNullable<z.ZodObject<{
2332
+ thumbprint: z.ZodString;
2333
+ expiresAt: z.ZodString;
2334
+ }, z.core.$strict>>;
2335
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2336
+ thumbprint: z.ZodString;
2337
+ expiresAt: z.ZodString;
2338
+ }, z.core.$strict>>;
2339
+ apps: z.ZodArray<z.ZodString>;
2340
+ }, z.core.$strict>;
2341
+ };
2342
+ };
2343
+ readonly setProviderSettings: {
2344
+ readonly method: "PUT";
2345
+ readonly path: "/orgs/{org}/providers/{provider}/settings";
2346
+ readonly summary: "Values the provider's apps ask for in their steps";
2347
+ readonly body: z.ZodObject<{
2348
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
2349
+ by: z.ZodString;
2350
+ }, z.core.$strip>;
2351
+ readonly responses: {
2352
+ readonly 200: z.ZodObject<{
2353
+ settings: z.ZodRecord<z.ZodString, z.ZodString>;
2354
+ }, z.core.$strict>;
2355
+ };
2356
+ };
2357
+ readonly confirmed: {
2358
+ readonly method: "GET";
2359
+ readonly path: "/orgs/{org}/confirmed";
2360
+ readonly summary: "Setup steps an admin marked done";
2361
+ readonly responses: {
2362
+ readonly 200: z.ZodArray<z.ZodObject<{
2363
+ step: z.ZodString;
2364
+ by: z.ZodString;
2365
+ at: z.ZodString;
2366
+ }, z.core.$strict>>;
2367
+ };
2368
+ };
2369
+ readonly confirm: {
2370
+ readonly method: "PUT";
2371
+ readonly path: "/orgs/{org}/confirmed/{step}";
2372
+ readonly summary: "Marks a setup step done";
2373
+ readonly body: z.ZodObject<{
2374
+ by: z.ZodString;
2375
+ }, z.core.$strip>;
2376
+ readonly responses: {
2377
+ readonly 204: null;
2378
+ };
2379
+ };
2380
+ readonly unconfirm: {
2381
+ readonly method: "DELETE";
2382
+ readonly path: "/orgs/{org}/confirmed/{step}";
2383
+ readonly summary: "Marks a setup step not done";
2384
+ readonly body: z.ZodObject<{
2385
+ by: z.ZodString;
2386
+ }, z.core.$strip>;
2387
+ readonly responses: {
2388
+ readonly 204: null;
2389
+ };
2390
+ };
2391
+ readonly connections: {
2392
+ readonly method: "GET";
2393
+ readonly path: "/orgs/{org}/connections";
2394
+ readonly summary: "The organization's apps that are on";
2395
+ readonly responses: {
2396
+ readonly 200: z.ZodArray<z.ZodObject<{
2397
+ id: z.ZodString;
2398
+ organizationId: z.ZodString;
2399
+ connectorId: z.ZodString;
2400
+ providerId: z.ZodNullable<z.ZodString>;
2401
+ capabilities: z.ZodArray<z.ZodString>;
2402
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2403
+ status: z.ZodEnum<{
2404
+ connected: "connected";
2405
+ needs_reconnect: "needs_reconnect";
2406
+ }>;
2407
+ accountLabel: z.ZodNullable<z.ZodString>;
2408
+ connectedBy: z.ZodNullable<z.ZodString>;
2409
+ connectedAt: z.ZodString;
2410
+ checkedAt: z.ZodString;
2411
+ }, z.core.$strict>>;
2412
+ };
2413
+ };
2414
+ readonly connect: {
2415
+ readonly method: "PUT";
2416
+ readonly path: "/orgs/{org}/connections/{app}";
2417
+ readonly summary: "Turns an app on, checking it before saving";
2418
+ readonly body: z.ZodObject<{
2419
+ capabilities: z.ZodArray<z.ZodString>;
2420
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2421
+ connectedBy: z.ZodString;
2422
+ }, z.core.$strip>;
2423
+ readonly responses: {
2424
+ readonly 200: z.ZodObject<{
2425
+ connection: z.ZodObject<{
2426
+ id: z.ZodString;
2427
+ organizationId: z.ZodString;
2428
+ connectorId: z.ZodString;
2429
+ providerId: z.ZodNullable<z.ZodString>;
2430
+ capabilities: z.ZodArray<z.ZodString>;
2431
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2432
+ status: z.ZodEnum<{
2433
+ connected: "connected";
2434
+ needs_reconnect: "needs_reconnect";
2435
+ }>;
2436
+ accountLabel: z.ZodNullable<z.ZodString>;
2437
+ connectedBy: z.ZodNullable<z.ZodString>;
2438
+ connectedAt: z.ZodString;
2439
+ checkedAt: z.ZodString;
2440
+ }, z.core.$strict>;
2441
+ checks: z.ZodArray<z.ZodObject<{
2442
+ label: z.ZodString;
2443
+ values: z.ZodArray<z.ZodString>;
2444
+ warning: z.ZodOptional<z.ZodString>;
2445
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2446
+ }, z.core.$strict>>;
2447
+ }, z.core.$strict>;
2448
+ };
2449
+ };
2450
+ readonly setCeiling: {
2451
+ readonly method: "PATCH";
2452
+ readonly path: "/orgs/{org}/connections/{app}";
2453
+ readonly summary: "The most any agent may do in the app";
2454
+ readonly body: z.ZodObject<{
2455
+ capabilities: z.ZodArray<z.ZodString>;
2456
+ by: z.ZodString;
2457
+ }, z.core.$strip>;
2458
+ readonly responses: {
2459
+ readonly 404: z.ZodObject<{
2460
+ error: z.ZodString;
2461
+ }, z.core.$strict>;
2462
+ readonly 204: null;
2463
+ };
2464
+ };
2465
+ readonly disconnect: {
2466
+ readonly method: "DELETE";
2467
+ readonly path: "/orgs/{org}/connections/{app}";
2468
+ readonly summary: "Turns an app off";
2469
+ readonly body: z.ZodObject<{
2470
+ by: z.ZodString;
2471
+ }, z.core.$strip>;
2472
+ readonly responses: {
2473
+ readonly 404: z.ZodObject<{
2474
+ error: z.ZodString;
2475
+ }, z.core.$strict>;
2476
+ readonly 204: null;
2477
+ };
2478
+ };
2479
+ readonly startConsent: {
2480
+ readonly method: "POST";
2481
+ readonly path: "/orgs/{org}/connections/{app}/consent";
2482
+ readonly summary: "Where the admin approves the shared app";
2483
+ readonly body: z.ZodObject<{
2484
+ capabilities: z.ZodArray<z.ZodString>;
2485
+ redirectUri: z.ZodURL;
2486
+ }, z.core.$strip>;
2487
+ readonly responses: {
2488
+ readonly 200: z.ZodObject<{
2489
+ url: z.ZodString;
2490
+ nonce: z.ZodString;
2491
+ }, z.core.$strict>;
2492
+ };
2493
+ };
2494
+ readonly finishConsent: {
2495
+ readonly method: "POST";
2496
+ readonly path: "/orgs/{org}/connections/{app}/consent/callback";
2497
+ readonly summary: string;
2498
+ readonly body: z.ZodObject<{
2499
+ state: z.ZodString;
2500
+ nonce: z.ZodString;
2501
+ params: z.ZodRecord<z.ZodString, z.ZodString>;
2502
+ connectedBy: z.ZodString;
2503
+ }, z.core.$strip>;
2504
+ readonly responses: {
2505
+ readonly 200: z.ZodUnion<readonly [z.ZodObject<{
2506
+ redirect: z.ZodString;
2507
+ }, z.core.$strict>, z.ZodObject<{
2508
+ provider: z.ZodObject<{
2509
+ id: z.ZodString;
2510
+ organizationId: z.ZodString;
2511
+ provider: z.ZodString;
2512
+ status: z.ZodEnum<{
2513
+ connected: "connected";
2514
+ needs_reconnect: "needs_reconnect";
2515
+ pending: "pending";
2516
+ }>;
2517
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2518
+ accountLabel: z.ZodNullable<z.ZodString>;
2519
+ connectedBy: z.ZodNullable<z.ZodString>;
2520
+ connectedAt: z.ZodString;
2521
+ checkedAt: z.ZodString;
2522
+ certificate: z.ZodNullable<z.ZodObject<{
2523
+ thumbprint: z.ZodString;
2524
+ expiresAt: z.ZodString;
2525
+ }, z.core.$strict>>;
2526
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2527
+ thumbprint: z.ZodString;
2528
+ expiresAt: z.ZodString;
2529
+ }, z.core.$strict>>;
2530
+ apps: z.ZodArray<z.ZodString>;
2531
+ }, z.core.$strict>;
2532
+ }, z.core.$strict>, z.ZodObject<{
2533
+ connection: z.ZodObject<{
2534
+ id: z.ZodString;
2535
+ organizationId: z.ZodString;
2536
+ connectorId: z.ZodString;
2537
+ providerId: z.ZodNullable<z.ZodString>;
2538
+ capabilities: z.ZodArray<z.ZodString>;
2539
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
2540
+ status: z.ZodEnum<{
2541
+ connected: "connected";
2542
+ needs_reconnect: "needs_reconnect";
2543
+ }>;
2544
+ accountLabel: z.ZodNullable<z.ZodString>;
2545
+ connectedBy: z.ZodNullable<z.ZodString>;
2546
+ connectedAt: z.ZodString;
2547
+ checkedAt: z.ZodString;
2548
+ }, z.core.$strict>;
2549
+ checks: z.ZodArray<z.ZodObject<{
2550
+ label: z.ZodString;
2551
+ values: z.ZodArray<z.ZodString>;
2552
+ warning: z.ZodOptional<z.ZodString>;
2553
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2554
+ }, z.core.$strict>>;
2555
+ }, z.core.$strict>]>;
2556
+ };
2557
+ };
2558
+ readonly check: {
2559
+ readonly method: "POST";
2560
+ readonly path: "/orgs/{org}/connections/{app}/check";
2561
+ readonly summary: string;
2562
+ readonly query: {
2563
+ readonly record: "false: read only";
2564
+ };
2565
+ readonly body: z.ZodOptional<z.ZodObject<{
2566
+ by: z.ZodString;
2567
+ }, z.core.$strip>>;
2568
+ readonly responses: {
2569
+ readonly 404: z.ZodObject<{
2570
+ error: z.ZodString;
2571
+ }, z.core.$strict>;
2572
+ readonly 200: z.ZodUnion<readonly [z.ZodObject<{
2573
+ ok: z.ZodLiteral<true>;
2574
+ checks: z.ZodArray<z.ZodObject<{
2575
+ label: z.ZodString;
2576
+ values: z.ZodArray<z.ZodString>;
2577
+ warning: z.ZodOptional<z.ZodString>;
2578
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2579
+ }, z.core.$strict>>;
2580
+ }, z.core.$strict>, z.ZodObject<{
2581
+ ok: z.ZodLiteral<false>;
2582
+ error: z.ZodString;
2583
+ }, z.core.$strict>]>;
2584
+ };
2585
+ };
2586
+ readonly setSites: {
2587
+ readonly method: "PUT";
2588
+ readonly path: "/orgs/{org}/connections/{app}/sites";
2589
+ readonly summary: "The sites added to the app, the whole list at once";
2590
+ readonly body: z.ZodObject<{
2591
+ sites: z.ZodArray<z.ZodString>;
2592
+ by: z.ZodString;
2593
+ }, z.core.$strip>;
2594
+ readonly responses: {
2595
+ readonly 200: z.ZodObject<{
2596
+ sites: z.ZodArray<z.ZodString>;
2597
+ }, z.core.$strict>;
2598
+ };
2599
+ };
2600
+ readonly checkSites: {
2601
+ readonly method: "POST";
2602
+ readonly path: "/orgs/{org}/connections/{app}/sites/check";
2603
+ readonly summary: "Whether the app can open each added site, or just `site`";
2604
+ readonly body: z.ZodObject<{
2605
+ site: z.ZodOptional<z.ZodString>;
2606
+ }, z.core.$strip>;
2607
+ readonly responses: {
2608
+ readonly 200: z.ZodObject<{
2609
+ sites: z.ZodArray<z.ZodObject<{
2610
+ site: z.ZodString;
2611
+ status: z.ZodEnum<{
2612
+ granted: "granted";
2613
+ not_granted: "not_granted";
2614
+ not_found: "not_found";
2615
+ failed: "failed";
2616
+ }>;
2617
+ name: z.ZodNullable<z.ZodString>;
2618
+ message: z.ZodString;
2619
+ }, z.core.$strict>>;
2620
+ }, z.core.$strict>;
2621
+ };
2622
+ };
2623
+ readonly agentAccess: {
2624
+ readonly method: "POST";
2625
+ readonly path: "/orgs/{org}/connections/{app}/agent-access";
2626
+ readonly summary: "Whether the app can reach one agent's own address yet";
2627
+ readonly body: z.ZodObject<{
2628
+ value: z.ZodString;
2629
+ by: z.ZodString;
2630
+ }, z.core.$strip>;
2631
+ readonly responses: {
2632
+ readonly 200: z.ZodObject<{
2633
+ value: z.ZodString;
2634
+ status: z.ZodEnum<{
2635
+ granted: "granted";
2636
+ not_granted: "not_granted";
2637
+ not_found: "not_found";
2638
+ failed: "failed";
2639
+ }>;
2640
+ message: z.ZodString;
2641
+ }, z.core.$strict>;
2642
+ };
2643
+ };
2644
+ readonly agents: {
2645
+ readonly method: "GET";
2646
+ readonly path: "/orgs/{org}/agents";
2647
+ readonly summary: "The organization's agents (API keys) and their grants";
2648
+ readonly responses: {
2649
+ readonly 200: z.ZodArray<z.ZodObject<{
2650
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2651
+ grants: z.ZodArray<z.ZodObject<{
2652
+ agentId: z.ZodString;
2653
+ connectorId: z.ZodString;
2654
+ capabilities: z.ZodArray<z.ZodString>;
2655
+ limits: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2656
+ updatedAt: z.ZodString;
2657
+ }, z.core.$strict>>;
2658
+ id: z.ZodString;
2659
+ organizationId: z.ZodString;
2660
+ name: z.ZodString;
2661
+ status: z.ZodEnum<{
2662
+ active: "active";
2663
+ disabled: "disabled";
2664
+ }>;
2665
+ createdBy: z.ZodNullable<z.ZodString>;
2666
+ createdAt: z.ZodString;
2667
+ }, z.core.$strict>>;
2668
+ };
2669
+ };
2670
+ readonly createAgent: {
2671
+ readonly method: "POST";
2672
+ readonly path: "/orgs/{org}/agents";
2673
+ readonly summary: "Makes an agent; its key is returned this once";
2674
+ readonly body: z.ZodObject<{
2675
+ name: z.ZodString;
2676
+ createdBy: z.ZodString;
2677
+ }, z.core.$strip>;
2678
+ readonly responses: {
2679
+ readonly 201: z.ZodObject<{
2680
+ agent: z.ZodObject<{
2681
+ id: z.ZodString;
2682
+ organizationId: z.ZodString;
2683
+ name: z.ZodString;
2684
+ status: z.ZodEnum<{
2685
+ active: "active";
2686
+ disabled: "disabled";
2687
+ }>;
2688
+ createdBy: z.ZodNullable<z.ZodString>;
2689
+ createdAt: z.ZodString;
2690
+ }, z.core.$strict>;
2691
+ key: z.ZodString;
2692
+ }, z.core.$strict>;
2693
+ readonly 409: z.ZodObject<{
2694
+ error: z.ZodString;
2695
+ }, z.core.$strict>;
2696
+ };
2697
+ };
2698
+ readonly setAgentStatus: {
2699
+ readonly method: "PATCH";
2700
+ readonly path: "/orgs/{org}/agents/{agent}";
2701
+ readonly summary: "Turns an agent's key on or off";
2702
+ readonly body: z.ZodObject<{
2703
+ status: z.ZodEnum<{
2704
+ active: "active";
2705
+ disabled: "disabled";
2706
+ }>;
2707
+ by: z.ZodString;
2708
+ }, z.core.$strip>;
2709
+ readonly responses: {
2710
+ readonly 404: z.ZodObject<{
2711
+ error: z.ZodString;
2712
+ }, z.core.$strict>;
2713
+ readonly 204: null;
2714
+ };
2715
+ };
2716
+ readonly deleteAgent: {
2717
+ readonly method: "DELETE";
2718
+ readonly path: "/orgs/{org}/agents/{agent}";
2719
+ readonly summary: "Deletes an agent";
2720
+ readonly body: z.ZodObject<{
2721
+ by: z.ZodString;
2722
+ }, z.core.$strip>;
2723
+ readonly responses: {
2724
+ readonly 404: z.ZodObject<{
2725
+ error: z.ZodString;
2726
+ }, z.core.$strict>;
2727
+ readonly 204: null;
2728
+ };
2729
+ };
2730
+ readonly newKey: {
2731
+ readonly method: "POST";
2732
+ readonly path: "/orgs/{org}/agents/{agent}/key";
2733
+ readonly summary: "Replaces an agent's key; the new one is returned this once";
2734
+ readonly body: z.ZodObject<{
2735
+ by: z.ZodString;
2736
+ }, z.core.$strip>;
2737
+ readonly responses: {
2738
+ readonly 404: z.ZodObject<{
2739
+ error: z.ZodString;
2740
+ }, z.core.$strict>;
2741
+ readonly 200: z.ZodObject<{
2742
+ key: z.ZodString;
2743
+ }, z.core.$strict>;
2744
+ };
2745
+ };
2746
+ readonly setGrant: {
2747
+ readonly method: "PUT";
2748
+ readonly path: "/orgs/{org}/agents/{agent}/grants/{app}";
2749
+ readonly summary: "What the agent may do in one app";
2750
+ readonly body: z.ZodObject<{
2751
+ capabilities: z.ZodArray<z.ZodString>;
2752
+ limits: z.ZodOptional<z.ZodUnknown>;
2753
+ by: z.ZodString;
2754
+ }, z.core.$strip>;
2755
+ readonly responses: {
2756
+ readonly 404: z.ZodObject<{
2757
+ error: z.ZodString;
2758
+ }, z.core.$strict>;
2759
+ readonly 204: null;
2760
+ };
2761
+ };
2762
+ readonly removeGrant: {
2763
+ readonly method: "DELETE";
2764
+ readonly path: "/orgs/{org}/agents/{agent}/grants/{app}";
2765
+ readonly summary: "Takes one app away from the agent";
2766
+ readonly body: z.ZodObject<{
2767
+ by: z.ZodString;
2768
+ }, z.core.$strip>;
2769
+ readonly responses: {
2770
+ readonly 404: z.ZodObject<{
2771
+ error: z.ZodString;
2772
+ }, z.core.$strict>;
2773
+ readonly 204: null;
2774
+ };
2775
+ };
2776
+ readonly audit: {
2777
+ readonly method: "GET";
2778
+ readonly path: "/orgs/{org}/audit";
2779
+ readonly summary: "Recent requests and admin changes, newest first";
2780
+ readonly query: {
2781
+ readonly limit: "1 to 500, default 50";
2782
+ readonly agent: "an agent id";
2783
+ readonly app: "an app id";
2784
+ };
2785
+ readonly responses: {
2786
+ readonly 200: z.ZodArray<z.ZodObject<{
2787
+ at: z.ZodString;
2788
+ agentId: z.ZodNullable<z.ZodString>;
2789
+ agentName: z.ZodNullable<z.ZodString>;
2790
+ connectorId: z.ZodString;
2791
+ tool: z.ZodString;
2792
+ target: z.ZodNullable<z.ZodString>;
2793
+ decision: z.ZodEnum<{
2794
+ failed: "failed";
2795
+ allowed: "allowed";
2796
+ denied: "denied";
2797
+ }>;
2798
+ reason: z.ZodNullable<z.ZodString>;
2799
+ vendorStatus: z.ZodNullable<z.ZodNumber>;
2800
+ }, z.core.$strict>>;
2801
+ };
2802
+ };
2803
+ readonly teamsBots: {
2804
+ readonly method: "GET";
2805
+ readonly path: "/orgs/{org}/teams/bots";
2806
+ readonly summary: "Each agent's Teams bot";
2807
+ readonly responses: {
2808
+ readonly 200: z.ZodArray<z.ZodObject<{
2809
+ messagingEndpoint: z.ZodNullable<z.ZodString>;
2810
+ mcpUrl: z.ZodNullable<z.ZodString>;
2811
+ installedIn: z.ZodArray<z.ZodObject<{
2812
+ kind: z.ZodEnum<{
2813
+ personal: "personal";
2814
+ groupChat: "groupChat";
2815
+ team: "team";
2816
+ }>;
2817
+ name: z.ZodNullable<z.ZodString>;
2818
+ id: z.ZodString;
2819
+ conversationId: z.ZodString;
2820
+ }, z.core.$strict>>;
2821
+ id: z.ZodString;
2822
+ organizationId: z.ZodString;
2823
+ agentId: z.ZodString;
2824
+ botAppId: z.ZodNullable<z.ZodString>;
2825
+ teamsAppId: z.ZodString;
2826
+ tenantId: z.ZodString;
2827
+ displayName: z.ZodString;
2828
+ manifestVersion: z.ZodNumber;
2829
+ status: z.ZodEnum<{
2830
+ connected: "connected";
2831
+ needs_reconnect: "needs_reconnect";
2832
+ awaiting_setup: "awaiting_setup";
2833
+ }>;
2834
+ createdBy: z.ZodNullable<z.ZodString>;
2835
+ createdAt: z.ZodString;
2836
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
2837
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
2838
+ certificate: z.ZodNullable<z.ZodObject<{
2839
+ thumbprint: z.ZodString;
2840
+ expiresAt: z.ZodString;
2841
+ }, z.core.$strict>>;
2842
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2843
+ thumbprint: z.ZodString;
2844
+ expiresAt: z.ZodString;
2845
+ }, z.core.$strict>>;
2846
+ madeByService: z.ZodBoolean;
2847
+ publishedVersion: z.ZodNullable<z.ZodString>;
2848
+ packageVersion: z.ZodString;
2849
+ }, z.core.$strict>>;
2850
+ };
2851
+ readonly teams: true;
2852
+ };
2853
+ readonly teamsSetupState: {
2854
+ readonly method: "GET";
2855
+ readonly path: "/orgs/{org}/teams/setup";
2856
+ readonly summary: "The Teams page's set-up-once steps, checked live";
2857
+ readonly responses: {
2858
+ readonly 200: z.ZodRecord<z.ZodString, z.ZodObject<{
2859
+ state: z.ZodEnum<{
2860
+ done: "done";
2861
+ todo: "todo";
2862
+ failing: "failing";
2863
+ }>;
2864
+ message: z.ZodString;
2865
+ }, z.core.$strict>>;
2866
+ };
2867
+ readonly teams: true;
2868
+ };
2869
+ readonly finishTeamsPublish: {
2870
+ readonly method: "POST";
2871
+ readonly path: "/orgs/{org}/teams/publish/callback";
2872
+ readonly summary: "The publishing sign-in came back: publishes the bot's package";
2873
+ readonly body: z.ZodObject<{
2874
+ params: z.ZodRecord<z.ZodString, z.ZodString>;
2875
+ state: z.ZodString;
2876
+ nonce: z.ZodString;
2877
+ by: z.ZodString;
2878
+ }, z.core.$strip>;
2879
+ readonly responses: {
2880
+ readonly 200: z.ZodObject<{
2881
+ agentId: z.ZodString;
2882
+ version: z.ZodString;
2883
+ changed: z.ZodBoolean;
2884
+ }, z.core.$strict>;
2885
+ };
2886
+ readonly teams: true;
2887
+ };
2888
+ readonly createTeamsBot: {
2889
+ readonly method: "POST";
2890
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot";
2891
+ readonly summary: "Makes the agent's bot's key pair, for the setup script";
2892
+ readonly body: z.ZodObject<{
2893
+ displayName: z.ZodString;
2894
+ by: z.ZodString;
2895
+ }, z.core.$strip>;
2896
+ readonly responses: {
2897
+ readonly 200: z.ZodObject<{
2898
+ id: z.ZodString;
2899
+ organizationId: z.ZodString;
2900
+ agentId: z.ZodString;
2901
+ botAppId: z.ZodNullable<z.ZodString>;
2902
+ teamsAppId: z.ZodString;
2903
+ tenantId: z.ZodString;
2904
+ displayName: z.ZodString;
2905
+ manifestVersion: z.ZodNumber;
2906
+ status: z.ZodEnum<{
2907
+ connected: "connected";
2908
+ needs_reconnect: "needs_reconnect";
2909
+ awaiting_setup: "awaiting_setup";
2910
+ }>;
2911
+ createdBy: z.ZodNullable<z.ZodString>;
2912
+ createdAt: z.ZodString;
2913
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
2914
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
2915
+ certificate: z.ZodNullable<z.ZodObject<{
2916
+ thumbprint: z.ZodString;
2917
+ expiresAt: z.ZodString;
2918
+ }, z.core.$strict>>;
2919
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2920
+ thumbprint: z.ZodString;
2921
+ expiresAt: z.ZodString;
2922
+ }, z.core.$strict>>;
2923
+ madeByService: z.ZodBoolean;
2924
+ publishedVersion: z.ZodNullable<z.ZodString>;
2925
+ packageVersion: z.ZodString;
2926
+ }, z.core.$strict>;
2927
+ };
2928
+ readonly teams: true;
2929
+ };
2930
+ readonly connectTeamsBot: {
2931
+ readonly method: "PUT";
2932
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot";
2933
+ readonly summary: "Proves the application ID the setup script printed by signing in as it";
2934
+ readonly body: z.ZodObject<{
2935
+ botAppId: z.ZodString;
2936
+ by: z.ZodString;
2937
+ }, z.core.$strip>;
2938
+ readonly responses: {
2939
+ readonly 200: z.ZodObject<{
2940
+ id: z.ZodString;
2941
+ organizationId: z.ZodString;
2942
+ agentId: z.ZodString;
2943
+ botAppId: z.ZodNullable<z.ZodString>;
2944
+ teamsAppId: z.ZodString;
2945
+ tenantId: z.ZodString;
2946
+ displayName: z.ZodString;
2947
+ manifestVersion: z.ZodNumber;
2948
+ status: z.ZodEnum<{
2949
+ connected: "connected";
2950
+ needs_reconnect: "needs_reconnect";
2951
+ awaiting_setup: "awaiting_setup";
2952
+ }>;
2953
+ createdBy: z.ZodNullable<z.ZodString>;
2954
+ createdAt: z.ZodString;
2955
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
2956
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
2957
+ certificate: z.ZodNullable<z.ZodObject<{
2958
+ thumbprint: z.ZodString;
2959
+ expiresAt: z.ZodString;
2960
+ }, z.core.$strict>>;
2961
+ nextCertificate: z.ZodNullable<z.ZodObject<{
2962
+ thumbprint: z.ZodString;
2963
+ expiresAt: z.ZodString;
2964
+ }, z.core.$strict>>;
2965
+ madeByService: z.ZodBoolean;
2966
+ publishedVersion: z.ZodNullable<z.ZodString>;
2967
+ packageVersion: z.ZodString;
2968
+ }, z.core.$strict>;
2969
+ };
2970
+ readonly teams: true;
2971
+ };
2972
+ readonly removeTeamsBot: {
2973
+ readonly method: "DELETE";
2974
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot";
2975
+ readonly summary: string;
2976
+ readonly body: z.ZodObject<{
2977
+ by: z.ZodString;
2978
+ }, z.core.$strip>;
2979
+ readonly responses: {
2980
+ readonly 404: z.ZodObject<{
2981
+ error: z.ZodString;
2982
+ }, z.core.$strict>;
2983
+ readonly 200: z.ZodObject<{
2984
+ removal: z.ZodString;
2985
+ failed: z.ZodArray<z.ZodString>;
2986
+ }, z.core.$strict>;
2987
+ };
2988
+ readonly teams: true;
2989
+ };
2990
+ readonly addToTeams: {
2991
+ readonly method: "POST";
2992
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/add";
2993
+ readonly summary: "Makes the agent's bot in the tenant, each part only if missing";
2994
+ readonly body: z.ZodObject<{
2995
+ displayName: z.ZodString;
2996
+ by: z.ZodString;
2997
+ }, z.core.$strip>;
2998
+ readonly responses: {
2999
+ readonly 200: z.ZodObject<{
3000
+ steps: z.ZodArray<z.ZodObject<{
3001
+ id: z.ZodString;
3002
+ label: z.ZodString;
3003
+ state: z.ZodEnum<{
3004
+ failed: "failed";
3005
+ done: "done";
3006
+ waiting: "waiting";
3007
+ todo: "todo";
3008
+ }>;
3009
+ message: z.ZodOptional<z.ZodString>;
3010
+ }, z.core.$strict>>;
3011
+ bot: z.ZodObject<{
3012
+ id: z.ZodString;
3013
+ organizationId: z.ZodString;
3014
+ agentId: z.ZodString;
3015
+ botAppId: z.ZodNullable<z.ZodString>;
3016
+ teamsAppId: z.ZodString;
3017
+ tenantId: z.ZodString;
3018
+ displayName: z.ZodString;
3019
+ manifestVersion: z.ZodNumber;
3020
+ status: z.ZodEnum<{
3021
+ connected: "connected";
3022
+ needs_reconnect: "needs_reconnect";
3023
+ awaiting_setup: "awaiting_setup";
3024
+ }>;
3025
+ createdBy: z.ZodNullable<z.ZodString>;
3026
+ createdAt: z.ZodString;
3027
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
3028
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
3029
+ certificate: z.ZodNullable<z.ZodObject<{
3030
+ thumbprint: z.ZodString;
3031
+ expiresAt: z.ZodString;
3032
+ }, z.core.$strict>>;
3033
+ nextCertificate: z.ZodNullable<z.ZodObject<{
3034
+ thumbprint: z.ZodString;
3035
+ expiresAt: z.ZodString;
3036
+ }, z.core.$strict>>;
3037
+ madeByService: z.ZodBoolean;
3038
+ publishedVersion: z.ZodNullable<z.ZodString>;
3039
+ packageVersion: z.ZodString;
3040
+ }, z.core.$strict>;
3041
+ }, z.core.$strict>;
3042
+ };
3043
+ readonly teams: true;
3044
+ };
3045
+ readonly startTeamsPublish: {
3046
+ readonly method: "POST";
3047
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/publish";
3048
+ readonly summary: "Where the administrator signs in to publish the bot";
3049
+ readonly body: z.ZodObject<{
3050
+ redirectUri: z.ZodURL;
3051
+ }, z.core.$strip>;
3052
+ readonly responses: {
3053
+ readonly 200: z.ZodObject<{
3054
+ url: z.ZodString;
3055
+ nonce: z.ZodString;
3056
+ }, z.core.$strict>;
3057
+ };
3058
+ readonly teams: true;
3059
+ };
3060
+ readonly teamsTargets: {
3061
+ readonly method: "GET";
3062
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/targets";
3063
+ readonly summary: "Teams or people to add the bot to, matching `q`";
3064
+ readonly query: {
3065
+ readonly kind: "team or person";
3066
+ readonly q: "what the admin typed";
3067
+ };
3068
+ readonly responses: {
3069
+ readonly 200: z.ZodArray<z.ZodObject<{
3070
+ id: z.ZodString;
3071
+ name: z.ZodString;
3072
+ detail: z.ZodNullable<z.ZodString>;
3073
+ }, z.core.$strict>>;
3074
+ };
3075
+ readonly teams: true;
3076
+ };
3077
+ readonly installTeamsBot: {
3078
+ readonly method: "POST";
3079
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/install";
3080
+ readonly summary: "Adds the published bot to a team, a group chat or a person";
3081
+ readonly body: z.ZodObject<{
3082
+ kind: z.ZodEnum<{
3083
+ team: "team";
3084
+ chat: "chat";
3085
+ person: "person";
3086
+ }>;
3087
+ id: z.ZodString;
3088
+ by: z.ZodString;
3089
+ }, z.core.$strip>;
3090
+ readonly responses: {
3091
+ readonly 200: z.ZodObject<{
3092
+ result: z.ZodEnum<{
3093
+ added: "added";
3094
+ already: "already";
3095
+ }>;
3096
+ }, z.core.$strict>;
3097
+ };
3098
+ readonly teams: true;
3099
+ };
3100
+ readonly teamsKit: {
3101
+ readonly method: "GET";
3102
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/kit";
3103
+ readonly summary: "The bot's setup script";
3104
+ readonly responses: {
3105
+ readonly 200: {
3106
+ readonly file: "text/plain";
3107
+ };
3108
+ };
3109
+ readonly teams: true;
3110
+ };
3111
+ readonly checkTeamsBot: {
3112
+ readonly method: "POST";
3113
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/check";
3114
+ readonly summary: "Signs in as the bot again";
3115
+ readonly responses: {
3116
+ readonly 200: z.ZodUnion<readonly [z.ZodObject<{
3117
+ ok: z.ZodLiteral<true>;
3118
+ }, z.core.$strict>, z.ZodObject<{
3119
+ ok: z.ZodLiteral<false>;
3120
+ error: z.ZodString;
3121
+ }, z.core.$strict>]>;
3122
+ };
3123
+ readonly teams: true;
3124
+ };
3125
+ readonly teamsTest: {
3126
+ readonly method: "POST";
3127
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/test";
3128
+ readonly summary: "A test message from the bot in one place it was added to";
3129
+ readonly body: z.ZodObject<{
3130
+ conversationId: z.ZodString;
3131
+ by: z.ZodString;
3132
+ }, z.core.$strip>;
3133
+ readonly responses: {
3134
+ readonly 200: z.ZodObject<{
3135
+ ok: z.ZodLiteral<true>;
3136
+ }, z.core.$strict>;
3137
+ };
3138
+ readonly teams: true;
3139
+ };
3140
+ readonly teamsCertificate: {
3141
+ readonly method: "GET";
3142
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/certificate";
3143
+ readonly summary: "The bot certificate's public half";
3144
+ readonly responses: {
3145
+ readonly 200: {
3146
+ readonly file: "application/x-pem-file";
3147
+ };
3148
+ };
3149
+ readonly teams: true;
3150
+ };
3151
+ readonly teamsPackage: {
3152
+ readonly method: "GET";
3153
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/package";
3154
+ readonly summary: "The bot's Teams app package";
3155
+ readonly responses: {
3156
+ readonly 200: {
3157
+ readonly file: "application/zip";
3158
+ };
3159
+ };
3160
+ readonly teams: true;
3161
+ };
3162
+ readonly newTeamsCertificate: {
3163
+ readonly method: "POST";
3164
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/certificate";
3165
+ readonly summary: "A certificate for the bot to rotate to";
3166
+ readonly body: z.ZodObject<{
3167
+ by: z.ZodString;
3168
+ }, z.core.$strip>;
3169
+ readonly responses: {
3170
+ readonly 200: z.ZodObject<{
3171
+ bot: z.ZodObject<{
3172
+ id: z.ZodString;
3173
+ organizationId: z.ZodString;
3174
+ agentId: z.ZodString;
3175
+ botAppId: z.ZodNullable<z.ZodString>;
3176
+ teamsAppId: z.ZodString;
3177
+ tenantId: z.ZodString;
3178
+ displayName: z.ZodString;
3179
+ manifestVersion: z.ZodNumber;
3180
+ status: z.ZodEnum<{
3181
+ connected: "connected";
3182
+ needs_reconnect: "needs_reconnect";
3183
+ awaiting_setup: "awaiting_setup";
3184
+ }>;
3185
+ createdBy: z.ZodNullable<z.ZodString>;
3186
+ createdAt: z.ZodString;
3187
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
3188
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
3189
+ certificate: z.ZodNullable<z.ZodObject<{
3190
+ thumbprint: z.ZodString;
3191
+ expiresAt: z.ZodString;
3192
+ }, z.core.$strict>>;
3193
+ nextCertificate: z.ZodNullable<z.ZodObject<{
3194
+ thumbprint: z.ZodString;
3195
+ expiresAt: z.ZodString;
3196
+ }, z.core.$strict>>;
3197
+ madeByService: z.ZodBoolean;
3198
+ publishedVersion: z.ZodNullable<z.ZodString>;
3199
+ packageVersion: z.ZodString;
3200
+ }, z.core.$strict>;
3201
+ command: z.ZodNullable<z.ZodString>;
3202
+ certificate: z.ZodString;
3203
+ }, z.core.$strict>;
3204
+ };
3205
+ readonly teams: true;
3206
+ };
3207
+ readonly activateTeamsCertificate: {
3208
+ readonly method: "POST";
3209
+ readonly path: "/orgs/{org}/agents/{agent}/teams-bot/certificate/activate";
3210
+ readonly summary: "Signs in with the bot's new certificate and, if that works, switches to it";
3211
+ readonly body: z.ZodObject<{
3212
+ by: z.ZodString;
3213
+ }, z.core.$strip>;
3214
+ readonly responses: {
3215
+ readonly 200: z.ZodObject<{
3216
+ id: z.ZodString;
3217
+ organizationId: z.ZodString;
3218
+ agentId: z.ZodString;
3219
+ botAppId: z.ZodNullable<z.ZodString>;
3220
+ teamsAppId: z.ZodString;
3221
+ tenantId: z.ZodString;
3222
+ displayName: z.ZodString;
3223
+ manifestVersion: z.ZodNumber;
3224
+ status: z.ZodEnum<{
3225
+ connected: "connected";
3226
+ needs_reconnect: "needs_reconnect";
3227
+ awaiting_setup: "awaiting_setup";
3228
+ }>;
3229
+ createdBy: z.ZodNullable<z.ZodString>;
3230
+ createdAt: z.ZodString;
3231
+ lastRefusedAt: z.ZodNullable<z.ZodString>;
3232
+ lastRefusedReason: z.ZodNullable<z.ZodString>;
3233
+ certificate: z.ZodNullable<z.ZodObject<{
3234
+ thumbprint: z.ZodString;
3235
+ expiresAt: z.ZodString;
3236
+ }, z.core.$strict>>;
3237
+ nextCertificate: z.ZodNullable<z.ZodObject<{
3238
+ thumbprint: z.ZodString;
3239
+ expiresAt: z.ZodString;
3240
+ }, z.core.$strict>>;
3241
+ madeByService: z.ZodBoolean;
3242
+ publishedVersion: z.ZodNullable<z.ZodString>;
3243
+ packageVersion: z.ZodString;
3244
+ }, z.core.$strict>;
3245
+ };
3246
+ readonly teams: true;
3247
+ };
3248
+ readonly teamsTrigger: {
3249
+ readonly method: "GET";
3250
+ readonly path: "/orgs/{org}/agents/{agent}/teams-trigger";
3251
+ readonly summary: "How the agent answers in Teams";
3252
+ readonly responses: {
3253
+ readonly 404: z.ZodObject<{
3254
+ error: z.ZodString;
3255
+ }, z.core.$strict>;
3256
+ readonly 200: z.ZodObject<{
3257
+ agentId: z.ZodString;
3258
+ enabled: z.ZodBoolean;
3259
+ runner: z.ZodString;
3260
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3261
+ hasSigningSecret: z.ZodBoolean;
3262
+ managedAgentId: z.ZodNullable<z.ZodString>;
3263
+ environmentId: z.ZodNullable<z.ZodString>;
3264
+ vaultIds: z.ZodArray<z.ZodString>;
3265
+ budgetCents: z.ZodNumber;
3266
+ maxRunsPerHour: z.ZodNumber;
3267
+ maxCentsPerDay: z.ZodNumber;
3268
+ maxConcurrent: z.ZodNumber;
3269
+ replyMode: z.ZodEnum<{
3270
+ mentions: "mentions";
3271
+ all: "all";
3272
+ }>;
3273
+ allowedTeams: z.ZodArray<z.ZodString>;
3274
+ allowedPeople: z.ZodArray<z.ZodString>;
3275
+ anyoneInOrganization: z.ZodBoolean;
3276
+ updatedBy: z.ZodNullable<z.ZodString>;
3277
+ updatedAt: z.ZodString;
3278
+ }, z.core.$strict>;
3279
+ };
3280
+ readonly teams: true;
3281
+ };
3282
+ readonly setTeamsTrigger: {
3283
+ readonly method: "PUT";
3284
+ readonly path: "/orgs/{org}/agents/{agent}/teams-trigger";
3285
+ readonly summary: "Sets how the agent answers in Teams, checked by its runner first";
3286
+ readonly body: z.ZodObject<{
3287
+ enabled: z.ZodBoolean;
3288
+ runner: z.ZodDefault<z.ZodString>;
3289
+ managedAgentId: z.ZodOptional<z.ZodString>;
3290
+ environmentId: z.ZodOptional<z.ZodString>;
3291
+ vaultIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3292
+ budgetCents: z.ZodNumber;
3293
+ maxRunsPerHour: z.ZodDefault<z.ZodNumber>;
3294
+ maxCentsPerDay: z.ZodDefault<z.ZodNumber>;
3295
+ maxConcurrent: z.ZodDefault<z.ZodNumber>;
3296
+ replyMode: z.ZodDefault<z.ZodEnum<{
3297
+ mentions: "mentions";
3298
+ all: "all";
3299
+ }>>;
3300
+ allowedTeams: z.ZodDefault<z.ZodArray<z.ZodString>>;
3301
+ allowedPeople: z.ZodDefault<z.ZodArray<z.ZodString>>;
3302
+ settings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3303
+ signingSecret: z.ZodOptional<z.ZodString>;
3304
+ anyoneInOrganization: z.ZodDefault<z.ZodBoolean>;
3305
+ by: z.ZodString;
3306
+ }, z.core.$strip>;
3307
+ readonly responses: {
3308
+ readonly 200: z.ZodObject<{
3309
+ agentId: z.ZodString;
3310
+ enabled: z.ZodBoolean;
3311
+ runner: z.ZodString;
3312
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3313
+ hasSigningSecret: z.ZodBoolean;
3314
+ managedAgentId: z.ZodNullable<z.ZodString>;
3315
+ environmentId: z.ZodNullable<z.ZodString>;
3316
+ vaultIds: z.ZodArray<z.ZodString>;
3317
+ budgetCents: z.ZodNumber;
3318
+ maxRunsPerHour: z.ZodNumber;
3319
+ maxCentsPerDay: z.ZodNumber;
3320
+ maxConcurrent: z.ZodNumber;
3321
+ replyMode: z.ZodEnum<{
3322
+ mentions: "mentions";
3323
+ all: "all";
3324
+ }>;
3325
+ allowedTeams: z.ZodArray<z.ZodString>;
3326
+ allowedPeople: z.ZodArray<z.ZodString>;
3327
+ anyoneInOrganization: z.ZodBoolean;
3328
+ updatedBy: z.ZodNullable<z.ZodString>;
3329
+ updatedAt: z.ZodString;
3330
+ }, z.core.$strict>;
3331
+ };
3332
+ readonly teams: true;
3333
+ };
3334
+ readonly teamsRuns: {
3335
+ readonly method: "GET";
3336
+ readonly path: "/orgs/{org}/agents/{agent}/teams-runs";
3337
+ readonly summary: "The agent's recent answers in Teams, newest first";
3338
+ readonly query: {
3339
+ readonly limit: "1 to 200, default 20";
3340
+ };
3341
+ readonly responses: {
3342
+ readonly 200: z.ZodArray<z.ZodObject<{
3343
+ id: z.ZodString;
3344
+ agentId: z.ZodString;
3345
+ botId: z.ZodString;
3346
+ conversationId: z.ZodString;
3347
+ threadId: z.ZodString;
3348
+ triggerActivityId: z.ZodString;
3349
+ runner: z.ZodString;
3350
+ sessionId: z.ZodNullable<z.ZodString>;
3351
+ state: z.ZodEnum<{
3352
+ failed: "failed";
3353
+ running: "running";
3354
+ idle: "idle";
3355
+ starting: "starting";
3356
+ ended: "ended";
3357
+ no_reply: "no_reply";
3358
+ }>;
3359
+ error: z.ZodNullable<z.ZodString>;
3360
+ note: z.ZodNullable<z.ZodString>;
3361
+ requestedBy: z.ZodNullable<z.ZodString>;
3362
+ replyCount: z.ZodNumber;
3363
+ repliedAt: z.ZodNullable<z.ZodString>;
3364
+ costCents: z.ZodNullable<z.ZodNumber>;
3365
+ turns: z.ZodNumber;
3366
+ startedAt: z.ZodString;
3367
+ finishedAt: z.ZodNullable<z.ZodString>;
3368
+ replyTokenAt: z.ZodString;
3369
+ }, z.core.$strict>>;
3370
+ };
3371
+ readonly teams: true;
3372
+ };
3373
+ readonly eventSubscriptions: {
3374
+ readonly method: "GET";
3375
+ readonly path: "/orgs/{org}/event-subscriptions";
3376
+ readonly summary: "The apps whose events reach this organization, by webhook or by polling";
3377
+ readonly responses: {
3378
+ readonly 200: z.ZodArray<z.ZodObject<{
3379
+ id: z.ZodString;
3380
+ connectorId: z.ZodString;
3381
+ source: z.ZodEnum<{
3382
+ webhook: "webhook";
3383
+ poll: "poll";
3384
+ }>;
3385
+ filter: z.ZodString;
3386
+ intervalSeconds: z.ZodNumber;
3387
+ cursor: z.ZodNullable<z.ZodString>;
3388
+ polledAt: z.ZodNullable<z.ZodString>;
3389
+ lastError: z.ZodNullable<z.ZodString>;
3390
+ registered: z.ZodNullable<z.ZodString>;
3391
+ url: z.ZodNullable<z.ZodString>;
3392
+ createdBy: z.ZodString;
3393
+ createdAt: z.ZodString;
3394
+ }, z.core.$strict>>;
3395
+ };
3396
+ readonly events: true;
3397
+ };
3398
+ readonly subscribeEvents: {
3399
+ readonly method: "POST";
3400
+ readonly path: "/orgs/{org}/event-subscriptions";
3401
+ readonly summary: string;
3402
+ readonly body: z.ZodObject<{
3403
+ app: z.ZodString;
3404
+ source: z.ZodEnum<{
3405
+ webhook: "webhook";
3406
+ poll: "poll";
3407
+ }>;
3408
+ filter: z.ZodDefault<z.ZodString>;
3409
+ intervalSeconds: z.ZodDefault<z.ZodNumber>;
3410
+ register: z.ZodDefault<z.ZodBoolean>;
3411
+ by: z.ZodString;
3412
+ }, z.core.$strip>;
3413
+ readonly responses: {
3414
+ readonly 200: z.ZodObject<{
3415
+ subscription: z.ZodObject<{
3416
+ id: z.ZodString;
3417
+ connectorId: z.ZodString;
3418
+ source: z.ZodEnum<{
3419
+ webhook: "webhook";
3420
+ poll: "poll";
3421
+ }>;
3422
+ filter: z.ZodString;
3423
+ intervalSeconds: z.ZodNumber;
3424
+ cursor: z.ZodNullable<z.ZodString>;
3425
+ polledAt: z.ZodNullable<z.ZodString>;
3426
+ lastError: z.ZodNullable<z.ZodString>;
3427
+ registered: z.ZodNullable<z.ZodString>;
3428
+ url: z.ZodNullable<z.ZodString>;
3429
+ createdBy: z.ZodString;
3430
+ createdAt: z.ZodString;
3431
+ }, z.core.$strict>;
3432
+ secret: z.ZodNullable<z.ZodString>;
3433
+ setup: z.ZodArray<z.ZodObject<{
3434
+ title: z.ZodString;
3435
+ body: z.ZodString;
3436
+ link: z.ZodOptional<z.ZodObject<{
3437
+ label: z.ZodString;
3438
+ href: z.ZodURL;
3439
+ }, z.core.$strict>>;
3440
+ copy: z.ZodOptional<z.ZodArray<z.ZodString>>;
3441
+ shell: z.ZodOptional<z.ZodEnum<{
3442
+ bash: "bash";
3443
+ powershell: "powershell";
3444
+ }>>;
3445
+ permissions: z.ZodOptional<z.ZodBoolean>;
3446
+ certificate: z.ZodOptional<z.ZodBoolean>;
3447
+ click: z.ZodOptional<z.ZodArray<z.ZodString>>;
3448
+ clickUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
3449
+ siteRole: z.ZodOptional<z.ZodEnum<{
3450
+ read: "read";
3451
+ write: "write";
3452
+ }>>;
3453
+ agentCheck: z.ZodOptional<z.ZodBoolean>;
3454
+ confirm: z.ZodOptional<z.ZodString>;
3455
+ live: z.ZodOptional<z.ZodString>;
3456
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3457
+ id: z.ZodString;
3458
+ label: z.ZodString;
3459
+ help: z.ZodOptional<z.ZodString>;
3460
+ placeholder: z.ZodOptional<z.ZodString>;
3461
+ pattern: z.ZodString;
3462
+ }, z.core.$strict>>>;
3463
+ option: z.ZodOptional<z.ZodObject<{
3464
+ field: z.ZodString;
3465
+ value: z.ZodString;
3466
+ }, z.core.$strict>>;
3467
+ }, z.core.$strict>>;
3468
+ registration: z.ZodNullable<z.ZodObject<{
3469
+ ok: z.ZodBoolean;
3470
+ message: z.ZodString;
3471
+ }, z.core.$strict>>;
3472
+ }, z.core.$strict>;
3473
+ };
3474
+ readonly events: true;
3475
+ };
3476
+ readonly rotateEventSecret: {
3477
+ readonly method: "POST";
3478
+ readonly path: "/orgs/{org}/event-subscriptions/{subscription}/secret";
3479
+ readonly summary: "A new secret for a webhook, shown once; the old one stops working at once";
3480
+ readonly body: z.ZodObject<{
3481
+ by: z.ZodString;
3482
+ }, z.core.$strip>;
3483
+ readonly responses: {
3484
+ readonly 404: z.ZodObject<{
3485
+ error: z.ZodString;
3486
+ }, z.core.$strict>;
3487
+ readonly 200: z.ZodObject<{
3488
+ subscription: z.ZodObject<{
3489
+ id: z.ZodString;
3490
+ connectorId: z.ZodString;
3491
+ source: z.ZodEnum<{
3492
+ webhook: "webhook";
3493
+ poll: "poll";
3494
+ }>;
3495
+ filter: z.ZodString;
3496
+ intervalSeconds: z.ZodNumber;
3497
+ cursor: z.ZodNullable<z.ZodString>;
3498
+ polledAt: z.ZodNullable<z.ZodString>;
3499
+ lastError: z.ZodNullable<z.ZodString>;
3500
+ registered: z.ZodNullable<z.ZodString>;
3501
+ url: z.ZodNullable<z.ZodString>;
3502
+ createdBy: z.ZodString;
3503
+ createdAt: z.ZodString;
3504
+ }, z.core.$strict>;
3505
+ secret: z.ZodString;
3506
+ }, z.core.$strict>;
3507
+ };
3508
+ readonly events: true;
3509
+ };
3510
+ readonly unsubscribeEvents: {
3511
+ readonly method: "DELETE";
3512
+ readonly path: "/orgs/{org}/event-subscriptions/{subscription}";
3513
+ readonly summary: "Stops receiving an app's events (remove the webhook in the app too)";
3514
+ readonly body: z.ZodObject<{
3515
+ by: z.ZodString;
3516
+ }, z.core.$strip>;
3517
+ readonly responses: {
3518
+ readonly 404: z.ZodObject<{
3519
+ error: z.ZodString;
3520
+ }, z.core.$strict>;
3521
+ readonly 204: null;
3522
+ };
3523
+ readonly events: true;
3524
+ };
3525
+ readonly eventTriggers: {
3526
+ readonly method: "GET";
3527
+ readonly path: "/orgs/{org}/agents/{agent}/event-triggers";
3528
+ readonly summary: "The app events that start the agent";
3529
+ readonly responses: {
3530
+ readonly 200: z.ZodArray<z.ZodObject<{
3531
+ id: z.ZodString;
3532
+ agentId: z.ZodString;
3533
+ connectorId: z.ZodString;
3534
+ enabled: z.ZodBoolean;
3535
+ eventTypes: z.ZodArray<z.ZodString>;
3536
+ conditions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3537
+ field: z.ZodString;
3538
+ in: z.ZodArray<z.ZodString>;
3539
+ }, z.core.$strict>, z.ZodObject<{
3540
+ field: z.ZodString;
3541
+ notIn: z.ZodArray<z.ZodString>;
3542
+ }, z.core.$strict>]>>;
3543
+ prompt: z.ZodString;
3544
+ runner: z.ZodString;
3545
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3546
+ hasSigningSecret: z.ZodBoolean;
3547
+ managedAgentId: z.ZodNullable<z.ZodString>;
3548
+ environmentId: z.ZodNullable<z.ZodString>;
3549
+ vaultIds: z.ZodArray<z.ZodString>;
3550
+ budgetCents: z.ZodNumber;
3551
+ maxRunsPerHour: z.ZodNumber;
3552
+ maxCentsPerDay: z.ZodNumber;
3553
+ maxConcurrent: z.ZodNumber;
3554
+ updatedBy: z.ZodNullable<z.ZodString>;
3555
+ updatedAt: z.ZodString;
3556
+ }, z.core.$strict>>;
3557
+ };
3558
+ readonly events: true;
3559
+ };
3560
+ readonly setEventTrigger: {
3561
+ readonly method: "PUT";
3562
+ readonly path: "/orgs/{org}/agents/{agent}/event-triggers/{app}";
3563
+ readonly summary: "Sets which of an app's events start the agent and how, checked by its runner first";
3564
+ readonly body: z.ZodObject<{
3565
+ enabled: z.ZodBoolean;
3566
+ eventTypes: z.ZodArray<z.ZodString>;
3567
+ conditions: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3568
+ field: z.ZodString;
3569
+ in: z.ZodArray<z.ZodString>;
3570
+ }, z.core.$strict>, z.ZodObject<{
3571
+ field: z.ZodString;
3572
+ notIn: z.ZodArray<z.ZodString>;
3573
+ }, z.core.$strict>]>>>;
3574
+ prompt: z.ZodString;
3575
+ runner: z.ZodDefault<z.ZodString>;
3576
+ managedAgentId: z.ZodOptional<z.ZodString>;
3577
+ environmentId: z.ZodOptional<z.ZodString>;
3578
+ vaultIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3579
+ settings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3580
+ signingSecret: z.ZodOptional<z.ZodString>;
3581
+ budgetCents: z.ZodNumber;
3582
+ maxRunsPerHour: z.ZodDefault<z.ZodNumber>;
3583
+ maxCentsPerDay: z.ZodDefault<z.ZodNumber>;
3584
+ maxConcurrent: z.ZodDefault<z.ZodNumber>;
3585
+ by: z.ZodString;
3586
+ }, z.core.$strip>;
3587
+ readonly responses: {
3588
+ readonly 200: z.ZodObject<{
3589
+ id: z.ZodString;
3590
+ agentId: z.ZodString;
3591
+ connectorId: z.ZodString;
3592
+ enabled: z.ZodBoolean;
3593
+ eventTypes: z.ZodArray<z.ZodString>;
3594
+ conditions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3595
+ field: z.ZodString;
3596
+ in: z.ZodArray<z.ZodString>;
3597
+ }, z.core.$strict>, z.ZodObject<{
3598
+ field: z.ZodString;
3599
+ notIn: z.ZodArray<z.ZodString>;
3600
+ }, z.core.$strict>]>>;
3601
+ prompt: z.ZodString;
3602
+ runner: z.ZodString;
3603
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3604
+ hasSigningSecret: z.ZodBoolean;
3605
+ managedAgentId: z.ZodNullable<z.ZodString>;
3606
+ environmentId: z.ZodNullable<z.ZodString>;
3607
+ vaultIds: z.ZodArray<z.ZodString>;
3608
+ budgetCents: z.ZodNumber;
3609
+ maxRunsPerHour: z.ZodNumber;
3610
+ maxCentsPerDay: z.ZodNumber;
3611
+ maxConcurrent: z.ZodNumber;
3612
+ updatedBy: z.ZodNullable<z.ZodString>;
3613
+ updatedAt: z.ZodString;
3614
+ }, z.core.$strict>;
3615
+ };
3616
+ readonly events: true;
3617
+ };
3618
+ readonly removeEventTrigger: {
3619
+ readonly method: "DELETE";
3620
+ readonly path: "/orgs/{org}/agents/{agent}/event-triggers/{app}";
3621
+ readonly summary: "Stops an app's events starting the agent, stopping its live runs";
3622
+ readonly body: z.ZodObject<{
3623
+ by: z.ZodString;
3624
+ }, z.core.$strip>;
3625
+ readonly responses: {
3626
+ readonly 404: z.ZodObject<{
3627
+ error: z.ZodString;
3628
+ }, z.core.$strict>;
3629
+ readonly 204: null;
3630
+ };
3631
+ readonly events: true;
3632
+ };
3633
+ readonly eventRuns: {
3634
+ readonly method: "GET";
3635
+ readonly path: "/orgs/{org}/agents/{agent}/event-runs";
3636
+ readonly summary: "The agent's recent runs started by app events, newest first";
3637
+ readonly query: {
3638
+ readonly limit: "1 to 200, default 20";
3639
+ };
3640
+ readonly responses: {
3641
+ readonly 200: z.ZodArray<z.ZodObject<{
3642
+ id: z.ZodString;
3643
+ agentId: z.ZodString;
3644
+ triggerId: z.ZodString;
3645
+ connectorId: z.ZodString;
3646
+ eventType: z.ZodString;
3647
+ deliveryId: z.ZodString;
3648
+ runner: z.ZodString;
3649
+ sessionId: z.ZodNullable<z.ZodString>;
3650
+ state: z.ZodEnum<{
3651
+ failed: "failed";
3652
+ running: "running";
3653
+ starting: "starting";
3654
+ ended: "ended";
3655
+ }>;
3656
+ error: z.ZodNullable<z.ZodString>;
3657
+ costCents: z.ZodNullable<z.ZodNumber>;
3658
+ startedAt: z.ZodString;
3659
+ finishedAt: z.ZodNullable<z.ZodString>;
3660
+ }, z.core.$strict>>;
3661
+ };
3662
+ readonly events: true;
3663
+ };
3664
+ readonly claudeKey: {
3665
+ readonly method: "GET";
3666
+ readonly path: "/orgs/{org}/claude-key";
3667
+ readonly summary: "The organization's Claude API key, by its last four characters";
3668
+ readonly responses: {
3669
+ readonly 200: z.ZodUnion<readonly [z.ZodObject<{
3670
+ set: z.ZodLiteral<false>;
3671
+ }, z.core.$strict>, z.ZodObject<{
3672
+ set: z.ZodLiteral<true>;
3673
+ ending: z.ZodString;
3674
+ by: z.ZodNullable<z.ZodString>;
3675
+ at: z.ZodString;
3676
+ }, z.core.$strict>]>;
3677
+ };
3678
+ readonly teams: true;
3679
+ };
3680
+ readonly setClaudeKey: {
3681
+ readonly method: "PUT";
3682
+ readonly path: "/orgs/{org}/claude-key";
3683
+ readonly summary: "Saves the organization's Claude API key, proven by listing its agents";
3684
+ readonly body: z.ZodObject<{
3685
+ apiKey: z.ZodString;
3686
+ by: z.ZodString;
3687
+ }, z.core.$strip>;
3688
+ readonly responses: {
3689
+ readonly 200: z.ZodObject<{
3690
+ set: z.ZodLiteral<true>;
3691
+ ending: z.ZodString;
3692
+ by: z.ZodNullable<z.ZodString>;
3693
+ at: z.ZodString;
3694
+ agents: z.ZodArray<z.ZodObject<{
3695
+ id: z.ZodString;
3696
+ name: z.ZodString;
3697
+ }, z.core.$strict>>;
3698
+ }, z.core.$strict>;
3699
+ };
3700
+ readonly teams: true;
3701
+ };
3702
+ readonly removeClaudeKey: {
3703
+ readonly method: "DELETE";
3704
+ readonly path: "/orgs/{org}/claude-key";
3705
+ readonly summary: "Removes the organization's Claude API key";
3706
+ readonly body: z.ZodObject<{
3707
+ by: z.ZodString;
3708
+ }, z.core.$strip>;
3709
+ readonly responses: {
3710
+ readonly 404: z.ZodObject<{
3711
+ error: z.ZodString;
3712
+ }, z.core.$strict>;
3713
+ readonly 204: null;
3714
+ };
3715
+ readonly teams: true;
3716
+ };
3717
+ readonly claudeAgents: {
3718
+ readonly method: "GET";
3719
+ readonly path: "/orgs/{org}/claude-key/agents";
3720
+ readonly summary: "The Claude Managed Agents the organization's key can use";
3721
+ readonly responses: {
3722
+ readonly 200: z.ZodArray<z.ZodObject<{
3723
+ id: z.ZodString;
3724
+ name: z.ZodString;
3725
+ }, z.core.$strict>>;
3726
+ };
3727
+ readonly teams: true;
3728
+ };
3729
+ };
3730
+ export type Routes = typeof routes;