telnyx 7.30.0 → 7.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +22 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-gateways/agent-gateways.d.mts +360 -0
  12. package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
  13. package/resources/agent-gateways/agent-gateways.d.ts +360 -0
  14. package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
  15. package/resources/agent-gateways/agent-gateways.js +140 -0
  16. package/resources/agent-gateways/agent-gateways.js.map +1 -0
  17. package/resources/agent-gateways/agent-gateways.mjs +135 -0
  18. package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
  19. package/resources/agent-gateways/apis.d.mts +300 -0
  20. package/resources/agent-gateways/apis.d.mts.map +1 -0
  21. package/resources/agent-gateways/apis.d.ts +300 -0
  22. package/resources/agent-gateways/apis.d.ts.map +1 -0
  23. package/resources/agent-gateways/apis.js +89 -0
  24. package/resources/agent-gateways/apis.js.map +1 -0
  25. package/resources/agent-gateways/apis.mjs +85 -0
  26. package/resources/agent-gateways/apis.mjs.map +1 -0
  27. package/resources/agent-gateways/guardrails.d.mts +210 -0
  28. package/resources/agent-gateways/guardrails.d.mts.map +1 -0
  29. package/resources/agent-gateways/guardrails.d.ts +210 -0
  30. package/resources/agent-gateways/guardrails.d.ts.map +1 -0
  31. package/resources/agent-gateways/guardrails.js +96 -0
  32. package/resources/agent-gateways/guardrails.js.map +1 -0
  33. package/resources/agent-gateways/guardrails.mjs +92 -0
  34. package/resources/agent-gateways/guardrails.mjs.map +1 -0
  35. package/resources/agent-gateways/index.d.mts +9 -0
  36. package/resources/agent-gateways/index.d.mts.map +1 -0
  37. package/resources/agent-gateways/index.d.ts +9 -0
  38. package/resources/agent-gateways/index.d.ts.map +1 -0
  39. package/resources/agent-gateways/index.js +21 -0
  40. package/resources/agent-gateways/index.js.map +1 -0
  41. package/resources/agent-gateways/index.mjs +10 -0
  42. package/resources/agent-gateways/index.mjs.map +1 -0
  43. package/resources/agent-gateways/keys/index.d.mts +3 -0
  44. package/resources/agent-gateways/keys/index.d.mts.map +1 -0
  45. package/resources/agent-gateways/keys/index.d.ts +3 -0
  46. package/resources/agent-gateways/keys/index.d.ts.map +1 -0
  47. package/resources/agent-gateways/keys/index.js +9 -0
  48. package/resources/agent-gateways/keys/index.js.map +1 -0
  49. package/resources/agent-gateways/keys/index.mjs +4 -0
  50. package/resources/agent-gateways/keys/index.mjs.map +1 -0
  51. package/resources/agent-gateways/keys/keys.d.mts +329 -0
  52. package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
  53. package/resources/agent-gateways/keys/keys.d.ts +329 -0
  54. package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
  55. package/resources/agent-gateways/keys/keys.js +99 -0
  56. package/resources/agent-gateways/keys/keys.js.map +1 -0
  57. package/resources/agent-gateways/keys/keys.mjs +94 -0
  58. package/resources/agent-gateways/keys/keys.mjs.map +1 -0
  59. package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
  60. package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
  61. package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
  62. package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
  63. package/resources/agent-gateways/keys/tool-permissions.js +62 -0
  64. package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
  65. package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
  66. package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
  67. package/resources/agent-gateways/keys.d.mts +2 -0
  68. package/resources/agent-gateways/keys.d.mts.map +1 -0
  69. package/resources/agent-gateways/keys.d.ts +2 -0
  70. package/resources/agent-gateways/keys.d.ts.map +1 -0
  71. package/resources/agent-gateways/keys.js +6 -0
  72. package/resources/agent-gateways/keys.js.map +1 -0
  73. package/resources/agent-gateways/keys.mjs +3 -0
  74. package/resources/agent-gateways/keys.mjs.map +1 -0
  75. package/resources/agent-gateways/mcp-servers.d.mts +246 -0
  76. package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
  77. package/resources/agent-gateways/mcp-servers.d.ts +246 -0
  78. package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
  79. package/resources/agent-gateways/mcp-servers.js +97 -0
  80. package/resources/agent-gateways/mcp-servers.js.map +1 -0
  81. package/resources/agent-gateways/mcp-servers.mjs +93 -0
  82. package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
  83. package/resources/agent-gateways/policies.d.mts +266 -0
  84. package/resources/agent-gateways/policies.d.mts.map +1 -0
  85. package/resources/agent-gateways/policies.d.ts +266 -0
  86. package/resources/agent-gateways/policies.d.ts.map +1 -0
  87. package/resources/agent-gateways/policies.js +97 -0
  88. package/resources/agent-gateways/policies.js.map +1 -0
  89. package/resources/agent-gateways/policies.mjs +93 -0
  90. package/resources/agent-gateways/policies.mjs.map +1 -0
  91. package/resources/agent-gateways/policy-attachments.d.mts +123 -0
  92. package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
  93. package/resources/agent-gateways/policy-attachments.d.ts +123 -0
  94. package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
  95. package/resources/agent-gateways/policy-attachments.js +63 -0
  96. package/resources/agent-gateways/policy-attachments.js.map +1 -0
  97. package/resources/agent-gateways/policy-attachments.mjs +59 -0
  98. package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
  99. package/resources/agent-gateways/teams/index.d.mts +3 -0
  100. package/resources/agent-gateways/teams/index.d.mts.map +1 -0
  101. package/resources/agent-gateways/teams/index.d.ts +3 -0
  102. package/resources/agent-gateways/teams/index.d.ts.map +1 -0
  103. package/resources/agent-gateways/teams/index.js +9 -0
  104. package/resources/agent-gateways/teams/index.js.map +1 -0
  105. package/resources/agent-gateways/teams/index.mjs +4 -0
  106. package/resources/agent-gateways/teams/index.mjs.map +1 -0
  107. package/resources/agent-gateways/teams/teams.d.mts +210 -0
  108. package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
  109. package/resources/agent-gateways/teams/teams.d.ts +210 -0
  110. package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
  111. package/resources/agent-gateways/teams/teams.js +98 -0
  112. package/resources/agent-gateways/teams/teams.js.map +1 -0
  113. package/resources/agent-gateways/teams/teams.mjs +93 -0
  114. package/resources/agent-gateways/teams/teams.mjs.map +1 -0
  115. package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
  116. package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
  117. package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
  118. package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
  119. package/resources/agent-gateways/teams/tool-permissions.js +62 -0
  120. package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
  121. package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
  122. package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
  123. package/resources/agent-gateways/teams.d.mts +2 -0
  124. package/resources/agent-gateways/teams.d.mts.map +1 -0
  125. package/resources/agent-gateways/teams.d.ts +2 -0
  126. package/resources/agent-gateways/teams.d.ts.map +1 -0
  127. package/resources/agent-gateways/teams.js +6 -0
  128. package/resources/agent-gateways/teams.js.map +1 -0
  129. package/resources/agent-gateways/teams.mjs +3 -0
  130. package/resources/agent-gateways/teams.mjs.map +1 -0
  131. package/resources/agent-gateways.d.mts +2 -0
  132. package/resources/agent-gateways.d.mts.map +1 -0
  133. package/resources/agent-gateways.d.ts +2 -0
  134. package/resources/agent-gateways.d.ts.map +1 -0
  135. package/resources/agent-gateways.js +6 -0
  136. package/resources/agent-gateways.js.map +1 -0
  137. package/resources/agent-gateways.mjs +3 -0
  138. package/resources/agent-gateways.mjs.map +1 -0
  139. package/resources/ai/assistants/assistants.d.mts +23 -9
  140. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  141. package/resources/ai/assistants/assistants.d.ts +23 -9
  142. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  143. package/resources/ai/assistants/assistants.js.map +1 -1
  144. package/resources/ai/assistants/assistants.mjs.map +1 -1
  145. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  146. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  147. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  148. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  149. package/resources/ai/memory/namespaces/index.js.map +1 -1
  150. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  151. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  152. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  153. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  154. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  155. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  156. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  157. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  158. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  159. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  160. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  161. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  162. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  163. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +20 -2
  164. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  165. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +20 -2
  166. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  167. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  168. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  169. package/resources/calendar-connections/calendar-connections.d.mts +380 -0
  170. package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
  171. package/resources/calendar-connections/calendar-connections.d.ts +380 -0
  172. package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
  173. package/resources/calendar-connections/calendar-connections.js +102 -0
  174. package/resources/calendar-connections/calendar-connections.js.map +1 -0
  175. package/resources/calendar-connections/calendar-connections.mjs +97 -0
  176. package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
  177. package/resources/calendar-connections/index.d.mts +3 -0
  178. package/resources/calendar-connections/index.d.mts.map +1 -0
  179. package/resources/calendar-connections/index.d.ts +3 -0
  180. package/resources/calendar-connections/index.d.ts.map +1 -0
  181. package/resources/calendar-connections/index.js +9 -0
  182. package/resources/calendar-connections/index.js.map +1 -0
  183. package/resources/calendar-connections/index.mjs +4 -0
  184. package/resources/calendar-connections/index.mjs.map +1 -0
  185. package/resources/calendar-connections/meetings.d.mts +149 -0
  186. package/resources/calendar-connections/meetings.d.mts.map +1 -0
  187. package/resources/calendar-connections/meetings.d.ts +149 -0
  188. package/resources/calendar-connections/meetings.d.ts.map +1 -0
  189. package/resources/calendar-connections/meetings.js +47 -0
  190. package/resources/calendar-connections/meetings.js.map +1 -0
  191. package/resources/calendar-connections/meetings.mjs +43 -0
  192. package/resources/calendar-connections/meetings.mjs.map +1 -0
  193. package/resources/calendar-connections.d.mts +2 -0
  194. package/resources/calendar-connections.d.mts.map +1 -0
  195. package/resources/calendar-connections.d.ts +2 -0
  196. package/resources/calendar-connections.d.ts.map +1 -0
  197. package/resources/calendar-connections.js +6 -0
  198. package/resources/calendar-connections.js.map +1 -0
  199. package/resources/calendar-connections.mjs +3 -0
  200. package/resources/calendar-connections.mjs.map +1 -0
  201. package/resources/calls/actions.d.mts +11 -5
  202. package/resources/calls/actions.d.mts.map +1 -1
  203. package/resources/calls/actions.d.ts +11 -5
  204. package/resources/calls/actions.d.ts.map +1 -1
  205. package/resources/calls/calls.d.mts +4 -4
  206. package/resources/calls/calls.d.mts.map +1 -1
  207. package/resources/calls/calls.d.ts +4 -4
  208. package/resources/calls/calls.d.ts.map +1 -1
  209. package/resources/calls/calls.js.map +1 -1
  210. package/resources/calls/calls.mjs.map +1 -1
  211. package/resources/calls/index.d.mts +1 -1
  212. package/resources/calls/index.d.mts.map +1 -1
  213. package/resources/calls/index.d.ts +1 -1
  214. package/resources/calls/index.d.ts.map +1 -1
  215. package/resources/calls/index.js.map +1 -1
  216. package/resources/calls/index.mjs.map +1 -1
  217. package/resources/conferences/actions.d.mts +1 -1
  218. package/resources/conferences/actions.d.mts.map +1 -1
  219. package/resources/conferences/actions.d.ts +1 -1
  220. package/resources/conferences/actions.d.ts.map +1 -1
  221. package/resources/index.d.mts +6 -2
  222. package/resources/index.d.mts.map +1 -1
  223. package/resources/index.d.ts +6 -2
  224. package/resources/index.d.ts.map +1 -1
  225. package/resources/index.js +13 -4
  226. package/resources/index.js.map +1 -1
  227. package/resources/index.mjs +4 -0
  228. package/resources/index.mjs.map +1 -1
  229. package/resources/meeting-bot/calendar.d.mts +34 -0
  230. package/resources/meeting-bot/calendar.d.mts.map +1 -0
  231. package/resources/meeting-bot/calendar.d.ts +34 -0
  232. package/resources/meeting-bot/calendar.d.ts.map +1 -0
  233. package/resources/meeting-bot/calendar.js +26 -0
  234. package/resources/meeting-bot/calendar.js.map +1 -0
  235. package/resources/meeting-bot/calendar.mjs +22 -0
  236. package/resources/meeting-bot/calendar.mjs.map +1 -0
  237. package/resources/meeting-bot/index.d.mts +3 -0
  238. package/resources/meeting-bot/index.d.mts.map +1 -0
  239. package/resources/meeting-bot/index.d.ts +3 -0
  240. package/resources/meeting-bot/index.d.ts.map +1 -0
  241. package/resources/meeting-bot/index.js +9 -0
  242. package/resources/meeting-bot/index.js.map +1 -0
  243. package/resources/meeting-bot/index.mjs +4 -0
  244. package/resources/meeting-bot/index.mjs.map +1 -0
  245. package/resources/meeting-bot/meeting-bot.d.mts +10 -0
  246. package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
  247. package/resources/meeting-bot/meeting-bot.d.ts +10 -0
  248. package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
  249. package/resources/meeting-bot/meeting-bot.js +17 -0
  250. package/resources/meeting-bot/meeting-bot.js.map +1 -0
  251. package/resources/meeting-bot/meeting-bot.mjs +12 -0
  252. package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
  253. package/resources/meeting-bot.d.mts +2 -0
  254. package/resources/meeting-bot.d.mts.map +1 -0
  255. package/resources/meeting-bot.d.ts +2 -0
  256. package/resources/meeting-bot.d.ts.map +1 -0
  257. package/resources/meeting-bot.js +6 -0
  258. package/resources/meeting-bot.js.map +1 -0
  259. package/resources/meeting-bot.mjs +3 -0
  260. package/resources/meeting-bot.mjs.map +1 -0
  261. package/resources/meeting-sessions/actions.d.mts +17 -11
  262. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  263. package/resources/meeting-sessions/actions.d.ts +17 -11
  264. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  265. package/resources/meeting-sessions/actions.js +14 -10
  266. package/resources/meeting-sessions/actions.js.map +1 -1
  267. package/resources/meeting-sessions/actions.mjs +14 -10
  268. package/resources/meeting-sessions/actions.mjs.map +1 -1
  269. package/resources/meeting-sessions/artifacts.d.mts +8 -7
  270. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  271. package/resources/meeting-sessions/artifacts.d.ts +8 -7
  272. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  273. package/resources/meeting-sessions/artifacts.js +8 -7
  274. package/resources/meeting-sessions/artifacts.js.map +1 -1
  275. package/resources/meeting-sessions/artifacts.mjs +8 -7
  276. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  277. package/resources/meeting-sessions/index.d.mts +1 -1
  278. package/resources/meeting-sessions/index.d.mts.map +1 -1
  279. package/resources/meeting-sessions/index.d.ts +1 -1
  280. package/resources/meeting-sessions/index.d.ts.map +1 -1
  281. package/resources/meeting-sessions/index.js.map +1 -1
  282. package/resources/meeting-sessions/index.mjs.map +1 -1
  283. package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
  284. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  285. package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
  286. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  287. package/resources/meeting-sessions/meeting-sessions.js +53 -21
  288. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  289. package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
  290. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  291. package/resources/text-to-speech/text-to-speech.d.mts +45 -5
  292. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  293. package/resources/text-to-speech/text-to-speech.d.ts +45 -5
  294. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  295. package/resources/text-to-speech/text-to-speech.js +8 -2
  296. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  297. package/resources/text-to-speech/text-to-speech.mjs +8 -2
  298. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  299. package/resources/user-profile.d.mts +284 -0
  300. package/resources/user-profile.d.mts.map +1 -0
  301. package/resources/user-profile.d.ts +284 -0
  302. package/resources/user-profile.d.ts.map +1 -0
  303. package/resources/user-profile.js +42 -0
  304. package/resources/user-profile.js.map +1 -0
  305. package/resources/user-profile.mjs +38 -0
  306. package/resources/user-profile.mjs.map +1 -0
  307. package/resources/webhooks.d.mts +129 -3
  308. package/resources/webhooks.d.mts.map +1 -1
  309. package/resources/webhooks.d.ts +129 -3
  310. package/resources/webhooks.d.ts.map +1 -1
  311. package/src/client.ts +90 -0
  312. package/src/resources/agent-gateways/agent-gateways.ts +605 -0
  313. package/src/resources/agent-gateways/apis.ts +388 -0
  314. package/src/resources/agent-gateways/guardrails.ts +304 -0
  315. package/src/resources/agent-gateways/index.ts +87 -0
  316. package/src/resources/agent-gateways/keys/index.ts +20 -0
  317. package/src/resources/agent-gateways/keys/keys.ts +437 -0
  318. package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
  319. package/src/resources/agent-gateways/keys.ts +3 -0
  320. package/src/resources/agent-gateways/mcp-servers.ts +328 -0
  321. package/src/resources/agent-gateways/policies.ts +348 -0
  322. package/src/resources/agent-gateways/policy-attachments.ts +167 -0
  323. package/src/resources/agent-gateways/teams/index.ts +16 -0
  324. package/src/resources/agent-gateways/teams/teams.ts +282 -0
  325. package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
  326. package/src/resources/agent-gateways/teams.ts +3 -0
  327. package/src/resources/agent-gateways.ts +3 -0
  328. package/src/resources/ai/assistants/assistants.ts +24 -9
  329. package/src/resources/ai/memory/namespaces/index.ts +1 -0
  330. package/src/resources/ai/memory/namespaces/namespaces.ts +2 -0
  331. package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
  332. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +24 -1
  333. package/src/resources/calendar-connections/calendar-connections.ts +486 -0
  334. package/src/resources/calendar-connections/index.ts +21 -0
  335. package/src/resources/calendar-connections/meetings.ts +205 -0
  336. package/src/resources/calendar-connections.ts +3 -0
  337. package/src/resources/calls/actions.ts +16 -4
  338. package/src/resources/calls/calls.ts +6 -2
  339. package/src/resources/calls/index.ts +1 -0
  340. package/src/resources/conferences/actions.ts +2 -1
  341. package/src/resources/index.ts +36 -0
  342. package/src/resources/meeting-bot/calendar.ts +54 -0
  343. package/src/resources/meeting-bot/index.ts +8 -0
  344. package/src/resources/meeting-bot/meeting-bot.ts +23 -0
  345. package/src/resources/meeting-bot.ts +3 -0
  346. package/src/resources/meeting-sessions/actions.ts +17 -11
  347. package/src/resources/meeting-sessions/artifacts.ts +8 -7
  348. package/src/resources/meeting-sessions/index.ts +4 -0
  349. package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
  350. package/src/resources/text-to-speech/text-to-speech.ts +81 -5
  351. package/src/resources/user-profile.ts +357 -0
  352. package/src/resources/webhooks.ts +216 -0
  353. package/src/version.ts +1 -1
  354. package/version.d.mts +1 -1
  355. package/version.d.ts +1 -1
  356. package/version.js +1 -1
  357. package/version.mjs +1 -1
@@ -0,0 +1,388 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ /**
9
+ * REST APIs on an instance, served to agents as tools.
10
+ */
11
+ export class APIs extends APIResource {
12
+ /**
13
+ * Lists the REST APIs the instance serves as tools, without their credentials. The
14
+ * instance must be `ready`; otherwise the request answers `409`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const apis = await client.agentGateways.apis.list(
19
+ * '32ce035d-3165-4031-b1a7-a7c0c259590a',
20
+ * );
21
+ * ```
22
+ */
23
+ list(instanceID: string, options?: RequestOptions): APIPromise<APIListResponse> {
24
+ return this._client.get(path`/agent_gateways/${instanceID}/apis`, options);
25
+ }
26
+
27
+ /**
28
+ * Adds a REST API by its OpenAPI description. Each operation becomes a tool at
29
+ * `{gateway_url}/mcp`, named with the API's `name`, a hyphen, and the lowercased
30
+ * `operationId`. A description the gateway cannot fetch yields an API with no
31
+ * tools. The instance must be `ready`; otherwise the request answers `409`.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const agentGatewayAPIResponse =
36
+ * await client.agentGateways.apis.create(
37
+ * '32ce035d-3165-4031-b1a7-a7c0c259590a',
38
+ * {
39
+ * name: 'petstore',
40
+ * spec_url:
41
+ * 'https://petstore3.swagger.io/api/v3/openapi.json',
42
+ * base_url: 'https://petstore3.swagger.io/api/v3',
43
+ * open_to_every_key: true,
44
+ * },
45
+ * );
46
+ * ```
47
+ */
48
+ create(
49
+ instanceID: string,
50
+ body: APICreateParams,
51
+ options?: RequestOptions,
52
+ ): APIPromise<AgentGatewayAPIResponse> {
53
+ return this._client.post(path`/agent_gateways/${instanceID}/apis`, { body, ...options });
54
+ }
55
+
56
+ /**
57
+ * Removes an API and returns it as it was. An MCP server's `id` answers `404`. The
58
+ * instance must be `ready`; otherwise the request answers `409`.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const agentGatewayAPIResponse =
63
+ * await client.agentGateways.apis.delete(
64
+ * 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
65
+ * { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
66
+ * );
67
+ * ```
68
+ */
69
+ delete(
70
+ apiID: string,
71
+ params: APIDeleteParams,
72
+ options?: RequestOptions,
73
+ ): APIPromise<AgentGatewayAPIResponse> {
74
+ const { instance_id } = params;
75
+ return this._client.delete(path`/agent_gateways/${instance_id}/apis/${apiID}`, options);
76
+ }
77
+
78
+ /**
79
+ * Changes an API's settings. A field left out stays as it is, `"base_url": null`
80
+ * clears the base URL, and `auth` is replaced whole. The instance must be `ready`;
81
+ * otherwise the request answers `409`.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const agentGatewayAPIResponse =
86
+ * await client.agentGateways.apis.update(
87
+ * 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
88
+ * {
89
+ * instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
90
+ * tools: ['findpetsbystatus', 'getpetbyid'],
91
+ * },
92
+ * );
93
+ * ```
94
+ */
95
+ update(
96
+ apiID: string,
97
+ params: APIUpdateParams,
98
+ options?: RequestOptions,
99
+ ): APIPromise<AgentGatewayAPIResponse> {
100
+ const { instance_id, ...body } = params;
101
+ return this._client.patch(path`/agent_gateways/${instance_id}/apis/${apiID}`, { body, ...options });
102
+ }
103
+ }
104
+
105
+ export interface AgentGatewayAPI {
106
+ /**
107
+ * Identifies the API.
108
+ */
109
+ id: string;
110
+
111
+ /**
112
+ * The server's outbound authentication method. Credentials are never returned.
113
+ */
114
+ auth: AgentGatewayShownAuth;
115
+
116
+ /**
117
+ * Where the gateway sends the API's requests. `null` takes the description's first
118
+ * `servers` entry.
119
+ */
120
+ base_url: string | null;
121
+
122
+ created_at: string | null;
123
+
124
+ /**
125
+ * Headers copied from the agent's request, by name.
126
+ */
127
+ forwarded_headers: Array<string>;
128
+
129
+ /**
130
+ * A name for the API, unique on the instance across MCP servers and APIs,
131
+ * regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes the
132
+ * API's tools with it and a hyphen.
133
+ */
134
+ name: string;
135
+
136
+ /**
137
+ * `true` lets every key on the instance use the server, granted or not.
138
+ */
139
+ open_to_every_key: boolean;
140
+
141
+ /**
142
+ * The URL of the API's OpenAPI description.
143
+ */
144
+ spec_url: string;
145
+
146
+ /**
147
+ * Headers sent on every request.
148
+ */
149
+ static_headers: { [key: string]: string };
150
+
151
+ /**
152
+ * The operations the API exposes as tools, by tool name. `[]` exposes every
153
+ * operation.
154
+ */
155
+ tools: Array<string>;
156
+
157
+ updated_at: string | null;
158
+ }
159
+
160
+ export interface AgentGatewayAPIResponse {
161
+ data: AgentGatewayAPI;
162
+ }
163
+
164
+ /**
165
+ * The gateway sends no credential.
166
+ */
167
+ export interface AgentGatewayNoAuth {
168
+ type?: 'none';
169
+ }
170
+
171
+ /**
172
+ * The gateway gets its own access token with the `client_credentials` grant and
173
+ * sends it as a bearer token on every request, renewing it before it expires. The
174
+ * client ID and secret are write-only.
175
+ */
176
+ export interface AgentGatewayOAuthClientCredentials {
177
+ client_id: string;
178
+
179
+ client_secret: string;
180
+
181
+ /**
182
+ * The OAuth provider's token endpoint.
183
+ */
184
+ token_url: string;
185
+
186
+ type: 'oauth_client_credentials';
187
+
188
+ /**
189
+ * The token's audience, sent in the token request.
190
+ */
191
+ audience?: string | null;
192
+
193
+ /**
194
+ * Whether the client ID and secret go in the token request's body or as HTTP Basic
195
+ * authentication.
196
+ */
197
+ credentials_in?: 'body' | 'basic';
198
+
199
+ /**
200
+ * The resource the token is for, sent in the token request.
201
+ */
202
+ resource?: string | null;
203
+
204
+ /**
205
+ * The scopes to request.
206
+ */
207
+ scopes?: Array<string>;
208
+ }
209
+
210
+ /**
211
+ * The gateway forwards the agent's own `Authorization` header to the server
212
+ * unchanged.
213
+ */
214
+ export interface AgentGatewayPassthroughAuth {
215
+ type?: 'passthrough';
216
+ }
217
+
218
+ /**
219
+ * The server's outbound authentication method. Credentials are never returned.
220
+ */
221
+ export interface AgentGatewayShownAuth {
222
+ /**
223
+ * The method's `type`.
224
+ */
225
+ type: string;
226
+ }
227
+
228
+ /**
229
+ * A static credential the gateway sends on every request. Write-only: responses
230
+ * show its `type` only.
231
+ */
232
+ export interface AgentGatewayStaticAuth {
233
+ /**
234
+ * How the credential is sent: `api_key` as `X-API-Key: <value>`, `bearer_token` as
235
+ * `Authorization: Bearer <value>`, `basic` as
236
+ * `Authorization: Basic <base64 of value>` with `value` in the form
237
+ * `user:password`, `token` as `Authorization: token <value>`, and `authorization`
238
+ * as `Authorization: <value>`.
239
+ */
240
+ type: 'api_key' | 'bearer_token' | 'basic' | 'token' | 'authorization';
241
+
242
+ /**
243
+ * The credential.
244
+ */
245
+ value: string;
246
+
247
+ /**
248
+ * A header name that replaces `X-API-Key` or `Authorization`.
249
+ */
250
+ header?: string | null;
251
+ }
252
+
253
+ export interface APIListResponse {
254
+ data: Array<AgentGatewayAPI>;
255
+ }
256
+
257
+ export interface APICreateParams {
258
+ /**
259
+ * A name for the API, unique on the instance across MCP servers and APIs,
260
+ * regardless of case. Up to 100 letters, digits, `_`, and `.`. The gateway
261
+ * prefixes the API's tools with it and a hyphen.
262
+ */
263
+ name: string;
264
+
265
+ /**
266
+ * The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1, or Swagger
267
+ * 2.0.
268
+ */
269
+ spec_url: string;
270
+
271
+ /**
272
+ * How the gateway authenticates to the API. AWS Signature Version 4 is for MCP
273
+ * servers only. Replaced whole on an update.
274
+ */
275
+ auth?:
276
+ | AgentGatewayNoAuth
277
+ | AgentGatewayStaticAuth
278
+ | AgentGatewayOAuthClientCredentials
279
+ | AgentGatewayPassthroughAuth;
280
+
281
+ /**
282
+ * Where the gateway sends the API's requests. Without it, the gateway takes the
283
+ * description's first `servers` entry.
284
+ */
285
+ base_url?: string | null;
286
+
287
+ /**
288
+ * Headers copied from the agent's request, by name.
289
+ */
290
+ forwarded_headers?: Array<string>;
291
+
292
+ /**
293
+ * `true` lets every key on the instance use the server, granted or not.
294
+ */
295
+ open_to_every_key?: boolean;
296
+
297
+ /**
298
+ * Headers sent on every request.
299
+ */
300
+ static_headers?: { [key: string]: string };
301
+
302
+ /**
303
+ * The operations the API exposes as tools, by tool name. `[]` exposes every
304
+ * operation.
305
+ */
306
+ tools?: Array<string>;
307
+ }
308
+
309
+ export interface APIDeleteParams {
310
+ /**
311
+ * The Agent Gateway's `id`.
312
+ */
313
+ instance_id: string;
314
+ }
315
+
316
+ export interface APIUpdateParams {
317
+ /**
318
+ * Path param: The Agent Gateway's `id`.
319
+ */
320
+ instance_id: string;
321
+
322
+ /**
323
+ * Body param: How the gateway authenticates to the API. AWS Signature Version 4 is
324
+ * for MCP servers only. Replaced whole on an update.
325
+ */
326
+ auth?:
327
+ | AgentGatewayNoAuth
328
+ | AgentGatewayStaticAuth
329
+ | AgentGatewayOAuthClientCredentials
330
+ | AgentGatewayPassthroughAuth;
331
+
332
+ /**
333
+ * Body param: Where the gateway sends the API's requests. Without it, the gateway
334
+ * takes the description's first `servers` entry.
335
+ */
336
+ base_url?: string | null;
337
+
338
+ /**
339
+ * Body param: Headers copied from the agent's request, by name.
340
+ */
341
+ forwarded_headers?: Array<string>;
342
+
343
+ /**
344
+ * Body param: A name for the API, unique on the instance across MCP servers and
345
+ * APIs, regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes
346
+ * the API's tools with it and a hyphen.
347
+ */
348
+ name?: string;
349
+
350
+ /**
351
+ * Body param: `true` lets every key on the instance use the server, granted or
352
+ * not.
353
+ */
354
+ open_to_every_key?: boolean;
355
+
356
+ /**
357
+ * Body param: The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1,
358
+ * or Swagger 2.0.
359
+ */
360
+ spec_url?: string;
361
+
362
+ /**
363
+ * Body param: Headers sent on every request.
364
+ */
365
+ static_headers?: { [key: string]: string };
366
+
367
+ /**
368
+ * Body param: The operations the API exposes as tools, by tool name. `[]` exposes
369
+ * every operation.
370
+ */
371
+ tools?: Array<string>;
372
+ }
373
+
374
+ export declare namespace APIs {
375
+ export {
376
+ type AgentGatewayAPI as AgentGatewayAPI,
377
+ type AgentGatewayAPIResponse as AgentGatewayAPIResponse,
378
+ type AgentGatewayNoAuth as AgentGatewayNoAuth,
379
+ type AgentGatewayOAuthClientCredentials as AgentGatewayOAuthClientCredentials,
380
+ type AgentGatewayPassthroughAuth as AgentGatewayPassthroughAuth,
381
+ type AgentGatewayShownAuth as AgentGatewayShownAuth,
382
+ type AgentGatewayStaticAuth as AgentGatewayStaticAuth,
383
+ type APIListResponse as APIListResponse,
384
+ type APICreateParams as APICreateParams,
385
+ type APIDeleteParams as APIDeleteParams,
386
+ type APIUpdateParams as APIUpdateParams,
387
+ };
388
+ }
@@ -0,0 +1,304 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ /**
9
+ * Checks an instance runs on model and tool requests.
10
+ */
11
+ export class Guardrails extends APIResource {
12
+ /**
13
+ * Lists the instance's guardrails, without their secrets. The instance must be
14
+ * `ready`; otherwise the request answers `409`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const guardrails =
19
+ * await client.agentGateways.guardrails.list(
20
+ * '32ce035d-3165-4031-b1a7-a7c0c259590a',
21
+ * );
22
+ * ```
23
+ */
24
+ list(instanceID: string, options?: RequestOptions): APIPromise<GuardrailListResponse> {
25
+ return this._client.get(path`/agent_gateways/${instanceID}/guardrails`, options);
26
+ }
27
+
28
+ /**
29
+ * Adds a check the instance runs on model and tool requests. It runs on every
30
+ * request when `always_on`, and otherwise on the requests that name it in
31
+ * `guardrails`. The instance must be `ready`; otherwise the request answers `409`.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const agentGatewayGuardrailResponse =
36
+ * await client.agentGateways.guardrails.create(
37
+ * '32ce035d-3165-4031-b1a7-a7c0c259590a',
38
+ * {
39
+ * modes: ['before_request'],
40
+ * name: 'mask-pii',
41
+ * type: 'content_filter',
42
+ * settings: {
43
+ * patterns: [
44
+ * { name: 'us_ssn', action: 'mask' },
45
+ * { name: 'email', action: 'mask' },
46
+ * ],
47
+ * },
48
+ * },
49
+ * );
50
+ * ```
51
+ */
52
+ create(
53
+ instanceID: string,
54
+ body: GuardrailCreateParams,
55
+ options?: RequestOptions,
56
+ ): APIPromise<AgentGatewayGuardrailResponse> {
57
+ return this._client.post(path`/agent_gateways/${instanceID}/guardrails`, { body, ...options });
58
+ }
59
+
60
+ /**
61
+ * Removes a guardrail and returns it as it was. The instance must be `ready`;
62
+ * otherwise the request answers `409`.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const agentGatewayGuardrailResponse =
67
+ * await client.agentGateways.guardrails.delete(
68
+ * '9645e556-6532-4341-8cab-21b58cdef529',
69
+ * { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
70
+ * );
71
+ * ```
72
+ */
73
+ delete(
74
+ guardrailID: string,
75
+ params: GuardrailDeleteParams,
76
+ options?: RequestOptions,
77
+ ): APIPromise<AgentGatewayGuardrailResponse> {
78
+ const { instance_id } = params;
79
+ return this._client.delete(path`/agent_gateways/${instance_id}/guardrails/${guardrailID}`, options);
80
+ }
81
+
82
+ /**
83
+ * Changes a guardrail's `name`, `modes`, `always_on`, or `settings`. `settings` is
84
+ * replaced whole, secrets included. The `type` cannot change. The instance must be
85
+ * `ready`; otherwise the request answers `409`.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const agentGatewayGuardrailResponse =
90
+ * await client.agentGateways.guardrails.update(
91
+ * '9645e556-6532-4341-8cab-21b58cdef529',
92
+ * {
93
+ * instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
94
+ * always_on: true,
95
+ * },
96
+ * );
97
+ * ```
98
+ */
99
+ update(
100
+ guardrailID: string,
101
+ params: GuardrailUpdateParams,
102
+ options?: RequestOptions,
103
+ ): APIPromise<AgentGatewayGuardrailResponse> {
104
+ const { instance_id, ...body } = params;
105
+ return this._client.patch(path`/agent_gateways/${instance_id}/guardrails/${guardrailID}`, {
106
+ body,
107
+ ...options,
108
+ });
109
+ }
110
+ }
111
+
112
+ export interface AgentGatewayGuardrail {
113
+ /**
114
+ * Identifies the guardrail.
115
+ */
116
+ id: string;
117
+
118
+ /**
119
+ * Whether it runs on every request.
120
+ */
121
+ always_on: boolean;
122
+
123
+ created_at: string | null;
124
+
125
+ /**
126
+ * When the guardrail runs.
127
+ */
128
+ modes: Array<
129
+ | 'before_request'
130
+ | 'during_request'
131
+ | 'after_request'
132
+ | 'logging_only'
133
+ | 'before_tool_request'
134
+ | 'during_tool_request'
135
+ | 'after_tool_request'
136
+ >;
137
+
138
+ /**
139
+ * What a request names in its `guardrails` field.
140
+ */
141
+ name: string;
142
+
143
+ /**
144
+ * The type's settings. `content_filter`: `patterns` (prebuilt patterns by name,
145
+ * such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories` (such as
146
+ * `prompt_injection`), each with an `action` of `block` or `mask`.
147
+ * `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
148
+ * `argument_patterns`), a `default` decision, and `on_denied` (`block` or
149
+ * `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
150
+ * (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
151
+ * `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
152
+ * `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
153
+ * `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
154
+ * `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
155
+ * `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
156
+ * `endpoint`, `severity` (0 to 7). Provider secrets are write-only. Responses
157
+ * leave the secrets out.
158
+ */
159
+ settings: { [key: string]: unknown };
160
+
161
+ type:
162
+ | 'content_filter'
163
+ | 'tool_permission'
164
+ | 'model_judge'
165
+ | 'custom_code'
166
+ | 'lakera'
167
+ | 'presidio'
168
+ | 'bedrock'
169
+ | 'azure_content_safety';
170
+
171
+ updated_at: string | null;
172
+ }
173
+
174
+ export interface AgentGatewayGuardrailResponse {
175
+ data: AgentGatewayGuardrail;
176
+ }
177
+
178
+ export interface GuardrailListResponse {
179
+ data: Array<AgentGatewayGuardrail>;
180
+ }
181
+
182
+ export interface GuardrailCreateParams {
183
+ /**
184
+ * When the guardrail runs. Each type runs in some modes only.
185
+ */
186
+ modes: Array<
187
+ | 'before_request'
188
+ | 'during_request'
189
+ | 'after_request'
190
+ | 'logging_only'
191
+ | 'before_tool_request'
192
+ | 'during_tool_request'
193
+ | 'after_tool_request'
194
+ >;
195
+
196
+ /**
197
+ * A name, unique on the instance. A request names it in its `guardrails` field.
198
+ */
199
+ name: string;
200
+
201
+ /**
202
+ * The kind of check. It cannot change after create.
203
+ */
204
+ type:
205
+ | 'content_filter'
206
+ | 'tool_permission'
207
+ | 'model_judge'
208
+ | 'custom_code'
209
+ | 'lakera'
210
+ | 'presidio'
211
+ | 'bedrock'
212
+ | 'azure_content_safety';
213
+
214
+ /**
215
+ * `true` runs the guardrail on every request, and a request cannot turn it off.
216
+ * `false` runs it on the requests that name it.
217
+ */
218
+ always_on?: boolean;
219
+
220
+ /**
221
+ * The type's settings. `content_filter`: `patterns` (prebuilt patterns by `name`,
222
+ * such as `us_ssn` or `email`), `regexes` (each a `name`, which tags masked
223
+ * matches, and a `pattern`), `keywords` (each a `keyword`), and `categories` (each
224
+ * a `name`), each entry with an `action` of `block` or `mask`. `tool_permission`:
225
+ * `rules` (`id`, `tool_name`, `tool_type`, `decision`, `argument_patterns`), a
226
+ * `default` decision, and `on_denied` (`block` or `rewrite`). `model_judge`: a
227
+ * `model` on the instance and weighted `criteria` (`name`, `description`,
228
+ * `weight`, the weights summing to 100). `custom_code`: `code` defining
229
+ * `apply_guardrail(inputs, request_data, input_type)`. `lakera`: `api_key`,
230
+ * `project_id`, `api_base`. `presidio`: `analyzer_url`, `anonymizer_url`,
231
+ * `entities` (entity name to `block` or `mask`), `language`. `bedrock`:
232
+ * `guardrail_id`, `version`, `region`, and `access_key_id` with
233
+ * `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
234
+ * `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
235
+ */
236
+ settings?: { [key: string]: unknown };
237
+ }
238
+
239
+ export interface GuardrailDeleteParams {
240
+ /**
241
+ * The Agent Gateway's `id`.
242
+ */
243
+ instance_id: string;
244
+ }
245
+
246
+ export interface GuardrailUpdateParams {
247
+ /**
248
+ * Path param: The Agent Gateway's `id`.
249
+ */
250
+ instance_id: string;
251
+
252
+ /**
253
+ * Body param: `true` runs the guardrail on every request, and a request cannot
254
+ * turn it off. `false` runs it on the requests that name it.
255
+ */
256
+ always_on?: boolean;
257
+
258
+ /**
259
+ * Body param: When the guardrail runs. Each type runs in some modes only.
260
+ */
261
+ modes?: Array<
262
+ | 'before_request'
263
+ | 'during_request'
264
+ | 'after_request'
265
+ | 'logging_only'
266
+ | 'before_tool_request'
267
+ | 'during_tool_request'
268
+ | 'after_tool_request'
269
+ >;
270
+
271
+ /**
272
+ * Body param: A name, unique on the instance. A request names it in its
273
+ * `guardrails` field.
274
+ */
275
+ name?: string;
276
+
277
+ /**
278
+ * Body param: The type's settings. `content_filter`: `patterns` (prebuilt patterns
279
+ * by name, such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories`
280
+ * (such as `prompt_injection`), each with an `action` of `block` or `mask`.
281
+ * `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
282
+ * `argument_patterns`), a `default` decision, and `on_denied` (`block` or
283
+ * `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
284
+ * (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
285
+ * `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
286
+ * `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
287
+ * `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
288
+ * `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
289
+ * `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
290
+ * `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
291
+ */
292
+ settings?: { [key: string]: unknown };
293
+ }
294
+
295
+ export declare namespace Guardrails {
296
+ export {
297
+ type AgentGatewayGuardrail as AgentGatewayGuardrail,
298
+ type AgentGatewayGuardrailResponse as AgentGatewayGuardrailResponse,
299
+ type GuardrailListResponse as GuardrailListResponse,
300
+ type GuardrailCreateParams as GuardrailCreateParams,
301
+ type GuardrailDeleteParams as GuardrailDeleteParams,
302
+ type GuardrailUpdateParams as GuardrailUpdateParams,
303
+ };
304
+ }