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

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