botshield-sdk 2.0.2 → 2.2.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 (275) hide show
  1. package/README.md +18 -46
  2. package/bin/mcp-server.js +596 -468
  3. package/bin/mcp-server.js.map +32 -29
  4. package/dist/commonjs/funcs/actions-propose-action.d.ts +1 -1
  5. package/dist/commonjs/funcs/actions-propose-action.js +1 -1
  6. package/dist/commonjs/funcs/census-get-partner-config.js +2 -78
  7. package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -1
  8. package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
  9. package/dist/commonjs/funcs/census-verify-token.js +1 -79
  10. package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
  11. package/dist/commonjs/funcs/secured-accounts-get-status.d.ts +18 -0
  12. package/dist/commonjs/funcs/secured-accounts-get-status.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/secured-accounts-get-status.js +126 -0
  14. package/dist/commonjs/funcs/secured-accounts-get-status.js.map +1 -0
  15. package/dist/commonjs/funcs/secured-accounts-list.d.ts +18 -0
  16. package/dist/commonjs/funcs/secured-accounts-list.d.ts.map +1 -0
  17. package/dist/commonjs/funcs/secured-accounts-list.js +129 -0
  18. package/dist/commonjs/funcs/secured-accounts-list.js.map +1 -0
  19. package/dist/commonjs/funcs/secured-accounts-revoke.d.ts +18 -0
  20. package/dist/commonjs/funcs/secured-accounts-revoke.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/secured-accounts-revoke.js +123 -0
  22. package/dist/commonjs/funcs/secured-accounts-revoke.js.map +1 -0
  23. package/dist/commonjs/funcs/verification-get-status.js +0 -78
  24. package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
  25. package/dist/commonjs/lib/config.d.ts +2 -2
  26. package/dist/commonjs/lib/config.js +2 -2
  27. package/dist/commonjs/lib/security.d.ts.map +1 -1
  28. package/dist/commonjs/lib/security.js +0 -91
  29. package/dist/commonjs/lib/security.js.map +1 -1
  30. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/cli/start/command.js +0 -104
  32. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  33. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -13
  34. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  35. package/dist/commonjs/mcp-server/cli/start/impl.js +0 -26
  36. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  37. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  38. package/dist/commonjs/mcp-server/server.js +1 -1
  39. package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
  40. package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +1 -17
  41. package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
  42. package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
  43. package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -17
  44. package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
  45. package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
  46. package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -17
  47. package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
  48. package/dist/commonjs/models/error-body.d.ts +43 -8
  49. package/dist/commonjs/models/error-body.d.ts.map +1 -1
  50. package/dist/commonjs/models/error-body.js +51 -1
  51. package/dist/commonjs/models/error-body.js.map +1 -1
  52. package/dist/commonjs/models/operations/actions-cancel.d.ts +1 -1
  53. package/dist/commonjs/models/operations/actions-check-status.d.ts +6 -6
  54. package/dist/commonjs/models/operations/actions-check-status.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/actions-check-status.js +6 -6
  56. package/dist/commonjs/models/operations/actions-check-status.js.map +1 -1
  57. package/dist/commonjs/models/operations/actions-propose.d.ts +1 -1
  58. package/dist/commonjs/models/operations/index.d.ts +3 -0
  59. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/index.js +3 -0
  61. package/dist/commonjs/models/operations/index.js.map +1 -1
  62. package/dist/commonjs/models/operations/sdk-create-session.d.ts +44 -10
  63. package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/sdk-create-session.js +32 -11
  65. package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
  66. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +96 -2
  67. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/sdk-create-verification-link.js +58 -1
  69. package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
  70. package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +23 -27
  71. package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/sdk-get-partner-config.js +18 -26
  73. package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -1
  74. package/dist/commonjs/models/operations/sdk-logout.d.ts +1 -1
  75. package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts +14 -4
  76. package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts.map +1 -1
  77. package/dist/commonjs/models/operations/sdk-revoke-verification.js +4 -2
  78. package/dist/commonjs/models/operations/sdk-revoke-verification.js.map +1 -1
  79. package/dist/commonjs/models/operations/sdk-store-signal.d.ts +1 -1
  80. package/dist/commonjs/models/operations/sdk-validate-signal.d.ts +6 -6
  81. package/dist/commonjs/models/operations/sdk-validate-signal.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/sdk-validate-signal.js +6 -6
  83. package/dist/commonjs/models/operations/sdk-validate-signal.js.map +1 -1
  84. package/dist/commonjs/models/operations/sdk-verify-token.d.ts +78 -27
  85. package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/sdk-verify-token.js +51 -27
  87. package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
  88. package/dist/commonjs/models/operations/secured-accounts-list.d.ts +212 -0
  89. package/dist/commonjs/models/operations/secured-accounts-list.d.ts.map +1 -0
  90. package/dist/commonjs/models/operations/secured-accounts-list.js +254 -0
  91. package/dist/commonjs/models/operations/secured-accounts-list.js.map +1 -0
  92. package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts +130 -0
  93. package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts.map +1 -0
  94. package/dist/commonjs/models/operations/secured-accounts-revoke.js +185 -0
  95. package/dist/commonjs/models/operations/secured-accounts-revoke.js.map +1 -0
  96. package/dist/commonjs/models/operations/secured-accounts-status.d.ts +97 -0
  97. package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -0
  98. package/dist/commonjs/models/operations/secured-accounts-status.js +163 -0
  99. package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -0
  100. package/dist/commonjs/models/operations/verification-get-status.d.ts +47 -30
  101. package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/verification-get-status.js +30 -28
  103. package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
  104. package/dist/commonjs/models/security.d.ts +0 -26
  105. package/dist/commonjs/models/security.d.ts.map +1 -1
  106. package/dist/commonjs/models/security.js +0 -26
  107. package/dist/commonjs/models/security.js.map +1 -1
  108. package/dist/commonjs/sdk/actions.d.ts +1 -1
  109. package/dist/commonjs/sdk/actions.js +1 -1
  110. package/dist/commonjs/sdk/census.d.ts +1 -1
  111. package/dist/commonjs/sdk/census.js +1 -1
  112. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  113. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  114. package/dist/commonjs/sdk/sdk.js +5 -0
  115. package/dist/commonjs/sdk/sdk.js.map +1 -1
  116. package/dist/commonjs/sdk/secured-accounts.d.ts +26 -0
  117. package/dist/commonjs/sdk/secured-accounts.d.ts.map +1 -0
  118. package/dist/commonjs/sdk/secured-accounts.js +42 -0
  119. package/dist/commonjs/sdk/secured-accounts.js.map +1 -0
  120. package/dist/esm/funcs/actions-propose-action.d.ts +1 -1
  121. package/dist/esm/funcs/actions-propose-action.js +1 -1
  122. package/dist/esm/funcs/census-get-partner-config.js +2 -78
  123. package/dist/esm/funcs/census-get-partner-config.js.map +1 -1
  124. package/dist/esm/funcs/census-verify-token.d.ts +1 -1
  125. package/dist/esm/funcs/census-verify-token.js +1 -79
  126. package/dist/esm/funcs/census-verify-token.js.map +1 -1
  127. package/dist/esm/funcs/secured-accounts-get-status.d.ts +18 -0
  128. package/dist/esm/funcs/secured-accounts-get-status.d.ts.map +1 -0
  129. package/dist/esm/funcs/secured-accounts-get-status.js +90 -0
  130. package/dist/esm/funcs/secured-accounts-get-status.js.map +1 -0
  131. package/dist/esm/funcs/secured-accounts-list.d.ts +18 -0
  132. package/dist/esm/funcs/secured-accounts-list.d.ts.map +1 -0
  133. package/dist/esm/funcs/secured-accounts-list.js +93 -0
  134. package/dist/esm/funcs/secured-accounts-list.js.map +1 -0
  135. package/dist/esm/funcs/secured-accounts-revoke.d.ts +18 -0
  136. package/dist/esm/funcs/secured-accounts-revoke.d.ts.map +1 -0
  137. package/dist/esm/funcs/secured-accounts-revoke.js +87 -0
  138. package/dist/esm/funcs/secured-accounts-revoke.js.map +1 -0
  139. package/dist/esm/funcs/verification-get-status.js +0 -78
  140. package/dist/esm/funcs/verification-get-status.js.map +1 -1
  141. package/dist/esm/lib/config.d.ts +2 -2
  142. package/dist/esm/lib/config.js +2 -2
  143. package/dist/esm/lib/security.d.ts.map +1 -1
  144. package/dist/esm/lib/security.js +0 -91
  145. package/dist/esm/lib/security.js.map +1 -1
  146. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  147. package/dist/esm/mcp-server/cli/start/command.js +0 -104
  148. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  149. package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -13
  150. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  151. package/dist/esm/mcp-server/cli/start/impl.js +0 -26
  152. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  153. package/dist/esm/mcp-server/mcp-server.js +1 -1
  154. package/dist/esm/mcp-server/server.js +1 -1
  155. package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
  156. package/dist/esm/mcp-server/tools/actions-cancel-action.js +1 -17
  157. package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
  158. package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
  159. package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -17
  160. package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
  161. package/dist/esm/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
  162. package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -17
  163. package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
  164. package/dist/esm/models/error-body.d.ts +43 -8
  165. package/dist/esm/models/error-body.d.ts.map +1 -1
  166. package/dist/esm/models/error-body.js +48 -0
  167. package/dist/esm/models/error-body.js.map +1 -1
  168. package/dist/esm/models/operations/actions-cancel.d.ts +1 -1
  169. package/dist/esm/models/operations/actions-check-status.d.ts +6 -6
  170. package/dist/esm/models/operations/actions-check-status.d.ts.map +1 -1
  171. package/dist/esm/models/operations/actions-check-status.js +5 -5
  172. package/dist/esm/models/operations/actions-check-status.js.map +1 -1
  173. package/dist/esm/models/operations/actions-propose.d.ts +1 -1
  174. package/dist/esm/models/operations/index.d.ts +3 -0
  175. package/dist/esm/models/operations/index.d.ts.map +1 -1
  176. package/dist/esm/models/operations/index.js +3 -0
  177. package/dist/esm/models/operations/index.js.map +1 -1
  178. package/dist/esm/models/operations/sdk-create-session.d.ts +44 -10
  179. package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
  180. package/dist/esm/models/operations/sdk-create-session.js +29 -8
  181. package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
  182. package/dist/esm/models/operations/sdk-create-verification-link.d.ts +96 -2
  183. package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  184. package/dist/esm/models/operations/sdk-create-verification-link.js +57 -0
  185. package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
  186. package/dist/esm/models/operations/sdk-get-partner-config.d.ts +23 -27
  187. package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -1
  188. package/dist/esm/models/operations/sdk-get-partner-config.js +18 -26
  189. package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -1
  190. package/dist/esm/models/operations/sdk-logout.d.ts +1 -1
  191. package/dist/esm/models/operations/sdk-revoke-verification.d.ts +14 -4
  192. package/dist/esm/models/operations/sdk-revoke-verification.d.ts.map +1 -1
  193. package/dist/esm/models/operations/sdk-revoke-verification.js +4 -2
  194. package/dist/esm/models/operations/sdk-revoke-verification.js.map +1 -1
  195. package/dist/esm/models/operations/sdk-store-signal.d.ts +1 -1
  196. package/dist/esm/models/operations/sdk-validate-signal.d.ts +6 -6
  197. package/dist/esm/models/operations/sdk-validate-signal.d.ts.map +1 -1
  198. package/dist/esm/models/operations/sdk-validate-signal.js +5 -5
  199. package/dist/esm/models/operations/sdk-validate-signal.js.map +1 -1
  200. package/dist/esm/models/operations/sdk-verify-token.d.ts +78 -27
  201. package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
  202. package/dist/esm/models/operations/sdk-verify-token.js +50 -26
  203. package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
  204. package/dist/esm/models/operations/secured-accounts-list.d.ts +212 -0
  205. package/dist/esm/models/operations/secured-accounts-list.d.ts.map +1 -0
  206. package/dist/esm/models/operations/secured-accounts-list.js +206 -0
  207. package/dist/esm/models/operations/secured-accounts-list.js.map +1 -0
  208. package/dist/esm/models/operations/secured-accounts-revoke.d.ts +130 -0
  209. package/dist/esm/models/operations/secured-accounts-revoke.d.ts.map +1 -0
  210. package/dist/esm/models/operations/secured-accounts-revoke.js +139 -0
  211. package/dist/esm/models/operations/secured-accounts-revoke.js.map +1 -0
  212. package/dist/esm/models/operations/secured-accounts-status.d.ts +97 -0
  213. package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -0
  214. package/dist/esm/models/operations/secured-accounts-status.js +117 -0
  215. package/dist/esm/models/operations/secured-accounts-status.js.map +1 -0
  216. package/dist/esm/models/operations/verification-get-status.d.ts +47 -30
  217. package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
  218. package/dist/esm/models/operations/verification-get-status.js +29 -27
  219. package/dist/esm/models/operations/verification-get-status.js.map +1 -1
  220. package/dist/esm/models/security.d.ts +0 -26
  221. package/dist/esm/models/security.d.ts.map +1 -1
  222. package/dist/esm/models/security.js +0 -26
  223. package/dist/esm/models/security.js.map +1 -1
  224. package/dist/esm/sdk/actions.d.ts +1 -1
  225. package/dist/esm/sdk/actions.js +1 -1
  226. package/dist/esm/sdk/census.d.ts +1 -1
  227. package/dist/esm/sdk/census.js +1 -1
  228. package/dist/esm/sdk/sdk.d.ts +3 -0
  229. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  230. package/dist/esm/sdk/sdk.js +5 -0
  231. package/dist/esm/sdk/sdk.js.map +1 -1
  232. package/dist/esm/sdk/secured-accounts.d.ts +26 -0
  233. package/dist/esm/sdk/secured-accounts.d.ts.map +1 -0
  234. package/dist/esm/sdk/secured-accounts.js +38 -0
  235. package/dist/esm/sdk/secured-accounts.js.map +1 -0
  236. package/jsr.json +1 -1
  237. package/package.json +1 -1
  238. package/src/funcs/actions-propose-action.ts +1 -1
  239. package/src/funcs/census-get-partner-config.ts +2 -91
  240. package/src/funcs/census-verify-token.ts +1 -92
  241. package/src/funcs/secured-accounts-get-status.ts +189 -0
  242. package/src/funcs/secured-accounts-list.ts +194 -0
  243. package/src/funcs/secured-accounts-revoke.ts +185 -0
  244. package/src/funcs/verification-get-status.ts +0 -91
  245. package/src/lib/config.ts +2 -2
  246. package/src/lib/security.ts +0 -91
  247. package/src/mcp-server/cli/start/command.ts +0 -104
  248. package/src/mcp-server/cli/start/impl.ts +0 -39
  249. package/src/mcp-server/mcp-server.ts +1 -1
  250. package/src/mcp-server/server.ts +1 -1
  251. package/src/mcp-server/tools/actions-cancel-action.ts +1 -17
  252. package/src/mcp-server/tools/actions-check-action-status.ts +1 -17
  253. package/src/mcp-server/tools/actions-propose-action.ts +1 -17
  254. package/src/models/error-body.ts +95 -8
  255. package/src/models/operations/actions-cancel.ts +1 -1
  256. package/src/models/operations/actions-check-status.ts +18 -10
  257. package/src/models/operations/actions-propose.ts +1 -1
  258. package/src/models/operations/index.ts +3 -0
  259. package/src/models/operations/sdk-create-session.ts +78 -20
  260. package/src/models/operations/sdk-create-verification-link.ts +157 -2
  261. package/src/models/operations/sdk-get-partner-config.ts +41 -53
  262. package/src/models/operations/sdk-logout.ts +1 -1
  263. package/src/models/operations/sdk-revoke-verification.ts +18 -6
  264. package/src/models/operations/sdk-store-signal.ts +1 -1
  265. package/src/models/operations/sdk-validate-signal.ts +16 -10
  266. package/src/models/operations/sdk-verify-token.ts +119 -53
  267. package/src/models/operations/secured-accounts-list.ts +507 -0
  268. package/src/models/operations/secured-accounts-revoke.ts +359 -0
  269. package/src/models/operations/secured-accounts-status.ts +296 -0
  270. package/src/models/operations/verification-get-status.ts +73 -56
  271. package/src/models/security.ts +0 -52
  272. package/src/sdk/actions.ts +1 -1
  273. package/src/sdk/census.ts +1 -1
  274. package/src/sdk/sdk.ts +6 -0
  275. package/src/sdk/secured-accounts.ts +69 -0
@@ -120,97 +120,6 @@ async function $do(
120
120
  value: security?.apiKeyAuth1,
121
121
  },
122
122
  ],
123
- [
124
- {
125
- fieldName: "Authorization",
126
- type: "apiKey:header",
127
- value: security?.apiKeyAuth2,
128
- },
129
- ],
130
- [
131
- {
132
- fieldName: "Authorization",
133
- type: "apiKey:header",
134
- value: security?.apiKeyAuth3,
135
- },
136
- ],
137
- [
138
- {
139
- fieldName: "Authorization",
140
- type: "apiKey:header",
141
- value: security?.apiKeyAuth4,
142
- },
143
- ],
144
- [
145
- {
146
- fieldName: "Authorization",
147
- type: "apiKey:header",
148
- value: security?.apiKeyAuth5,
149
- },
150
- ],
151
- [
152
- {
153
- fieldName: "Authorization",
154
- type: "apiKey:header",
155
- value: security?.apiKeyAuth6,
156
- },
157
- ],
158
- [
159
- {
160
- fieldName: "Authorization",
161
- type: "apiKey:header",
162
- value: security?.apiKeyAuth7,
163
- },
164
- ],
165
- [
166
- {
167
- fieldName: "Authorization",
168
- type: "apiKey:header",
169
- value: security?.apiKeyAuth8,
170
- },
171
- ],
172
- [
173
- {
174
- fieldName: "Authorization",
175
- type: "apiKey:header",
176
- value: security?.apiKeyAuth9,
177
- },
178
- ],
179
- [
180
- {
181
- fieldName: "Authorization",
182
- type: "apiKey:header",
183
- value: security?.apiKeyAuth10,
184
- },
185
- ],
186
- [
187
- {
188
- fieldName: "Authorization",
189
- type: "apiKey:header",
190
- value: security?.apiKeyAuth11,
191
- },
192
- ],
193
- [
194
- {
195
- fieldName: "Authorization",
196
- type: "apiKey:header",
197
- value: security?.apiKeyAuth12,
198
- },
199
- ],
200
- [
201
- {
202
- fieldName: "Authorization",
203
- type: "apiKey:header",
204
- value: security?.apiKeyAuth13,
205
- },
206
- ],
207
- [
208
- {
209
- fieldName: "Authorization",
210
- type: "apiKey:header",
211
- value: security?.apiKeyAuth14,
212
- },
213
- ],
214
123
  );
215
124
 
216
125
  const context = {
package/src/lib/config.ts CHANGED
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "2.0.0",
72
- sdkVersion: "2.0.2",
72
+ sdkVersion: "2.2.0",
73
73
  genVersion: "2.934.1",
74
- userAgent: "speakeasy-sdk/typescript 2.0.2 2.934.1 2.0.0 botshield-sdk",
74
+ userAgent: "speakeasy-sdk/typescript 2.2.0 2.934.1 2.0.0 botshield-sdk",
75
75
  } as const;
@@ -261,97 +261,6 @@ export function resolveGlobalSecurity(
261
261
  value: security?.agentKeyAuth1,
262
262
  },
263
263
  ],
264
- [
265
- {
266
- fieldName: "Authorization",
267
- type: "apiKey:header",
268
- value: security?.agentKeyAuth2,
269
- },
270
- ],
271
- [
272
- {
273
- fieldName: "Authorization",
274
- type: "apiKey:header",
275
- value: security?.agentKeyAuth3,
276
- },
277
- ],
278
- [
279
- {
280
- fieldName: "Authorization",
281
- type: "apiKey:header",
282
- value: security?.agentKeyAuth4,
283
- },
284
- ],
285
- [
286
- {
287
- fieldName: "Authorization",
288
- type: "apiKey:header",
289
- value: security?.agentKeyAuth5,
290
- },
291
- ],
292
- [
293
- {
294
- fieldName: "Authorization",
295
- type: "apiKey:header",
296
- value: security?.agentKeyAuth6,
297
- },
298
- ],
299
- [
300
- {
301
- fieldName: "Authorization",
302
- type: "apiKey:header",
303
- value: security?.agentKeyAuth7,
304
- },
305
- ],
306
- [
307
- {
308
- fieldName: "Authorization",
309
- type: "apiKey:header",
310
- value: security?.agentKeyAuth8,
311
- },
312
- ],
313
- [
314
- {
315
- fieldName: "Authorization",
316
- type: "apiKey:header",
317
- value: security?.agentKeyAuth9,
318
- },
319
- ],
320
- [
321
- {
322
- fieldName: "Authorization",
323
- type: "apiKey:header",
324
- value: security?.agentKeyAuth10,
325
- },
326
- ],
327
- [
328
- {
329
- fieldName: "Authorization",
330
- type: "apiKey:header",
331
- value: security?.agentKeyAuth11,
332
- },
333
- ],
334
- [
335
- {
336
- fieldName: "Authorization",
337
- type: "apiKey:header",
338
- value: security?.agentKeyAuth12,
339
- },
340
- ],
341
- [
342
- {
343
- fieldName: "Authorization",
344
- type: "apiKey:header",
345
- value: security?.agentKeyAuth13,
346
- },
347
- ],
348
- [
349
- {
350
- fieldName: "Authorization",
351
- type: "apiKey:header",
352
- value: security?.agentKeyAuth14,
353
- },
354
- ],
355
264
  ];
356
265
 
357
266
  if (allowedFields) {
@@ -59,110 +59,6 @@ export const startCommand = buildCommand({
59
59
  return z.string().parse(value);
60
60
  },
61
61
  },
62
- "agent-key-auth2": {
63
- kind: "parsed",
64
- brief: "Sets the agentKeyAuth2 auth field for the API",
65
- optional: true,
66
- parse: (value) => {
67
- return z.string().parse(value);
68
- },
69
- },
70
- "agent-key-auth3": {
71
- kind: "parsed",
72
- brief: "Sets the agentKeyAuth3 auth field for the API",
73
- optional: true,
74
- parse: (value) => {
75
- return z.string().parse(value);
76
- },
77
- },
78
- "agent-key-auth4": {
79
- kind: "parsed",
80
- brief: "Sets the agentKeyAuth4 auth field for the API",
81
- optional: true,
82
- parse: (value) => {
83
- return z.string().parse(value);
84
- },
85
- },
86
- "agent-key-auth5": {
87
- kind: "parsed",
88
- brief: "Sets the agentKeyAuth5 auth field for the API",
89
- optional: true,
90
- parse: (value) => {
91
- return z.string().parse(value);
92
- },
93
- },
94
- "agent-key-auth6": {
95
- kind: "parsed",
96
- brief: "Sets the agentKeyAuth6 auth field for the API",
97
- optional: true,
98
- parse: (value) => {
99
- return z.string().parse(value);
100
- },
101
- },
102
- "agent-key-auth7": {
103
- kind: "parsed",
104
- brief: "Sets the agentKeyAuth7 auth field for the API",
105
- optional: true,
106
- parse: (value) => {
107
- return z.string().parse(value);
108
- },
109
- },
110
- "agent-key-auth8": {
111
- kind: "parsed",
112
- brief: "Sets the agentKeyAuth8 auth field for the API",
113
- optional: true,
114
- parse: (value) => {
115
- return z.string().parse(value);
116
- },
117
- },
118
- "agent-key-auth9": {
119
- kind: "parsed",
120
- brief: "Sets the agentKeyAuth9 auth field for the API",
121
- optional: true,
122
- parse: (value) => {
123
- return z.string().parse(value);
124
- },
125
- },
126
- "agent-key-auth10": {
127
- kind: "parsed",
128
- brief: "Sets the agentKeyAuth10 auth field for the API",
129
- optional: true,
130
- parse: (value) => {
131
- return z.string().parse(value);
132
- },
133
- },
134
- "agent-key-auth11": {
135
- kind: "parsed",
136
- brief: "Sets the agentKeyAuth11 auth field for the API",
137
- optional: true,
138
- parse: (value) => {
139
- return z.string().parse(value);
140
- },
141
- },
142
- "agent-key-auth12": {
143
- kind: "parsed",
144
- brief: "Sets the agentKeyAuth12 auth field for the API",
145
- optional: true,
146
- parse: (value) => {
147
- return z.string().parse(value);
148
- },
149
- },
150
- "agent-key-auth13": {
151
- kind: "parsed",
152
- brief: "Sets the agentKeyAuth13 auth field for the API",
153
- optional: true,
154
- parse: (value) => {
155
- return z.string().parse(value);
156
- },
157
- },
158
- "agent-key-auth14": {
159
- kind: "parsed",
160
- brief: "Sets the agentKeyAuth14 auth field for the API",
161
- optional: true,
162
- parse: (value) => {
163
- return z.string().parse(value);
164
- },
165
- },
166
62
  "server-url": {
167
63
  kind: "parsed",
168
64
  brief: "Overrides the default server URL used by the SDK",
@@ -21,19 +21,6 @@ interface StartCommandFlags {
21
21
  readonly scope?: MCPScope[];
22
22
  readonly "agent-key-auth"?: string | undefined;
23
23
  readonly "agent-key-auth1"?: string | undefined;
24
- readonly "agent-key-auth2"?: string | undefined;
25
- readonly "agent-key-auth3"?: string | undefined;
26
- readonly "agent-key-auth4"?: string | undefined;
27
- readonly "agent-key-auth5"?: string | undefined;
28
- readonly "agent-key-auth6"?: string | undefined;
29
- readonly "agent-key-auth7"?: string | undefined;
30
- readonly "agent-key-auth8"?: string | undefined;
31
- readonly "agent-key-auth9"?: string | undefined;
32
- readonly "agent-key-auth10"?: string | undefined;
33
- readonly "agent-key-auth11"?: string | undefined;
34
- readonly "agent-key-auth12"?: string | undefined;
35
- readonly "agent-key-auth13"?: string | undefined;
36
- readonly "agent-key-auth14"?: string | undefined;
37
24
  readonly "server-url"?: string;
38
25
  readonly "server-index"?: SDKOptions["serverIdx"];
39
26
  readonly "log-level": ConsoleLoggerLevel;
@@ -67,19 +54,6 @@ async function startStdio(flags: StartCommandFlags) {
67
54
  security: {
68
55
  agentKeyAuth: flags["agent-key-auth"] ?? "",
69
56
  agentKeyAuth1: flags["agent-key-auth1"] ?? "",
70
- agentKeyAuth2: flags["agent-key-auth2"] ?? "",
71
- agentKeyAuth3: flags["agent-key-auth3"] ?? "",
72
- agentKeyAuth4: flags["agent-key-auth4"] ?? "",
73
- agentKeyAuth5: flags["agent-key-auth5"] ?? "",
74
- agentKeyAuth6: flags["agent-key-auth6"] ?? "",
75
- agentKeyAuth7: flags["agent-key-auth7"] ?? "",
76
- agentKeyAuth8: flags["agent-key-auth8"] ?? "",
77
- agentKeyAuth9: flags["agent-key-auth9"] ?? "",
78
- agentKeyAuth10: flags["agent-key-auth10"] ?? "",
79
- agentKeyAuth11: flags["agent-key-auth11"] ?? "",
80
- agentKeyAuth12: flags["agent-key-auth12"] ?? "",
81
- agentKeyAuth13: flags["agent-key-auth13"] ?? "",
82
- agentKeyAuth14: flags["agent-key-auth14"] ?? "",
83
57
  },
84
58
  serverURL: flags["server-url"],
85
59
  serverIdx: flags["server-index"],
@@ -104,19 +78,6 @@ async function startSSE(flags: StartCommandFlags) {
104
78
  security: {
105
79
  agentKeyAuth: flags["agent-key-auth"] ?? "",
106
80
  agentKeyAuth1: flags["agent-key-auth1"] ?? "",
107
- agentKeyAuth2: flags["agent-key-auth2"] ?? "",
108
- agentKeyAuth3: flags["agent-key-auth3"] ?? "",
109
- agentKeyAuth4: flags["agent-key-auth4"] ?? "",
110
- agentKeyAuth5: flags["agent-key-auth5"] ?? "",
111
- agentKeyAuth6: flags["agent-key-auth6"] ?? "",
112
- agentKeyAuth7: flags["agent-key-auth7"] ?? "",
113
- agentKeyAuth8: flags["agent-key-auth8"] ?? "",
114
- agentKeyAuth9: flags["agent-key-auth9"] ?? "",
115
- agentKeyAuth10: flags["agent-key-auth10"] ?? "",
116
- agentKeyAuth11: flags["agent-key-auth11"] ?? "",
117
- agentKeyAuth12: flags["agent-key-auth12"] ?? "",
118
- agentKeyAuth13: flags["agent-key-auth13"] ?? "",
119
- agentKeyAuth14: flags["agent-key-auth14"] ?? "",
120
81
  },
121
82
  serverURL: flags["server-url"],
122
83
  serverIdx: flags["server-index"],
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "2.0.2",
22
+ currentVersion: "2.2.0",
23
23
  },
24
24
  });
25
25
 
@@ -27,7 +27,7 @@ export function createMCPServer(deps: {
27
27
  }) {
28
28
  const server = new McpServer({
29
29
  name: "BotShield",
30
- version: "2.0.2",
30
+ version: "2.2.0",
31
31
  });
32
32
 
33
33
  const client = new BotShieldCore({
@@ -14,23 +14,7 @@ export const tool$actionsCancelAction: ToolDefinition<typeof args> = {
14
14
  name: "cancel_resolution",
15
15
  description:
16
16
  `Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
17
- scopes: [
18
- "queue",
19
- "queue",
20
- "queue",
21
- "queue",
22
- "queue",
23
- "queue",
24
- "queue",
25
- "queue",
26
- "queue",
27
- "queue",
28
- "queue",
29
- "queue",
30
- "queue",
31
- "queue",
32
- "queue",
33
- ],
17
+ scopes: ["queue", "queue"],
34
18
  args,
35
19
  tool: async (client, args, ctx) => {
36
20
  const [result, apiCall] = await actionsCancelAction(
@@ -14,23 +14,7 @@ export const tool$actionsCheckActionStatus: ToolDefinition<typeof args> = {
14
14
  name: "check_resolution_status",
15
15
  description:
16
16
  `Poll a proposed resolution (pass wait_seconds up to 25 to long-poll). Terminal states (approved/denied) carry the signed Proof of Resolution JWT — verify against BotShield's JWKS; the request_id is the JWT jti.`,
17
- scopes: [
18
- "queue",
19
- "queue",
20
- "queue",
21
- "queue",
22
- "queue",
23
- "queue",
24
- "queue",
25
- "queue",
26
- "queue",
27
- "queue",
28
- "queue",
29
- "queue",
30
- "queue",
31
- "queue",
32
- "queue",
33
- ],
17
+ scopes: ["queue", "queue"],
34
18
  args,
35
19
  tool: async (client, args, ctx) => {
36
20
  const [result, apiCall] = await actionsCheckActionStatus(
@@ -14,23 +14,7 @@ export const tool$actionsProposeAction: ToolDefinition<typeof args> = {
14
14
  name: "propose_resolution",
15
15
  description:
16
16
  `Propose a human-presence-gated action to a BotShield user (Agents Ask). Returns a card_id immediately; the signed Proof of Resolution arrives async via the agent's registered callback, or poll check_resolution_status.`,
17
- scopes: [
18
- "queue",
19
- "queue",
20
- "queue",
21
- "queue",
22
- "queue",
23
- "queue",
24
- "queue",
25
- "queue",
26
- "queue",
27
- "queue",
28
- "queue",
29
- "queue",
30
- "queue",
31
- "queue",
32
- "queue",
33
- ],
17
+ scopes: ["queue", "queue"],
34
18
  args,
35
19
  tool: async (client, args, ctx) => {
36
20
  const [result, apiCall] = await actionsProposeAction(
@@ -5,35 +5,50 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
8
10
  import { Result as SafeParseResult } from "../types/fp.js";
9
11
  import * as types from "../types/primitives.js";
10
12
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
11
13
 
12
14
  export type Violation = {
15
+ source?: string | undefined;
13
16
  type?: string | undefined;
14
17
  path?: string | undefined;
15
18
  severity?: string | undefined;
19
+ value?: any | undefined;
20
+ explanation?: string | undefined;
21
+ fix?: string | undefined;
16
22
  };
17
23
 
24
+ export const Reason = {
25
+ Rate: "rate",
26
+ Concurrent: "concurrent",
27
+ } as const;
28
+ export type Reason = OpenEnum<typeof Reason>;
29
+
30
+ export type Limits = {};
31
+
18
32
  /**
19
- * Handler error. Arrives inside data.error with HTTP 200 — check for it before reading the result.
33
+ * Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
20
34
  */
21
35
  export type ErrorBody = {
22
36
  message: string;
23
- /**
24
- * The HTTP status the error stands for (401, 403, 404, 409, 422, 500, 502).
25
- */
26
37
  statusCode: number;
27
38
  /**
28
- * Machine code when present, e.g. ttl_below_floor, ttl_above_ceiling.
39
+ * `ttl_below_floor`, `ttl_above_ceiling`, `trust_layer_rejected`, `trust_layer_unavailable`, `gate_required`, `alias_retired`, `RATE_LIMITED`.
29
40
  */
30
41
  code?: string | undefined;
31
42
  minTtlSeconds?: number | undefined;
32
43
  maxTtlSeconds?: number | undefined;
33
- /**
34
- * Adaptive Card TRUST-layer rejections (statusCode 422).
35
- */
44
+ retryable?: boolean | undefined;
45
+ nextStep?: string | undefined;
36
46
  violations?: Array<Violation> | undefined;
47
+ reason?: Reason | undefined;
48
+ bucket?: string | undefined;
49
+ retryIn?: number | undefined;
50
+ limits?: Limits | undefined;
51
+ upgradeUrl?: string | undefined;
37
52
  };
38
53
 
39
54
  /** @internal */
@@ -42,15 +57,23 @@ export const Violation$inboundSchema: z.ZodType<
42
57
  z.ZodTypeDef,
43
58
  unknown
44
59
  > = z.object({
60
+ source: types.optional(types.string()),
45
61
  type: types.optional(types.string()),
46
62
  path: types.optional(types.string()),
47
63
  severity: types.optional(types.string()),
64
+ value: types.optional(z.any()),
65
+ explanation: types.optional(types.string()),
66
+ fix: types.optional(types.string()),
48
67
  });
49
68
  /** @internal */
50
69
  export type Violation$Outbound = {
70
+ source?: string | undefined;
51
71
  type?: string | undefined;
52
72
  path?: string | undefined;
53
73
  severity?: string | undefined;
74
+ value?: any | undefined;
75
+ explanation?: string | undefined;
76
+ fix?: string | undefined;
54
77
  };
55
78
 
56
79
  /** @internal */
@@ -59,9 +82,13 @@ export const Violation$outboundSchema: z.ZodType<
59
82
  z.ZodTypeDef,
60
83
  Violation
61
84
  > = z.object({
85
+ source: z.string().optional(),
62
86
  type: z.string().optional(),
63
87
  path: z.string().optional(),
64
88
  severity: z.string().optional(),
89
+ value: z.any().optional(),
90
+ explanation: z.string().optional(),
91
+ fix: z.string().optional(),
65
92
  });
66
93
 
67
94
  export function violationToJSON(violation: Violation): string {
@@ -77,6 +104,39 @@ export function violationFromJSON(
77
104
  );
78
105
  }
79
106
 
107
+ /** @internal */
108
+ export const Reason$inboundSchema: z.ZodType<Reason, z.ZodTypeDef, unknown> =
109
+ openEnums.inboundSchema(Reason);
110
+ /** @internal */
111
+ export const Reason$outboundSchema: z.ZodType<string, z.ZodTypeDef, Reason> =
112
+ openEnums.outboundSchema(Reason);
113
+
114
+ /** @internal */
115
+ export const Limits$inboundSchema: z.ZodType<Limits, z.ZodTypeDef, unknown> = z
116
+ .object({});
117
+ /** @internal */
118
+ export type Limits$Outbound = {};
119
+
120
+ /** @internal */
121
+ export const Limits$outboundSchema: z.ZodType<
122
+ Limits$Outbound,
123
+ z.ZodTypeDef,
124
+ Limits
125
+ > = z.object({});
126
+
127
+ export function limitsToJSON(limits: Limits): string {
128
+ return JSON.stringify(Limits$outboundSchema.parse(limits));
129
+ }
130
+ export function limitsFromJSON(
131
+ jsonString: string,
132
+ ): SafeParseResult<Limits, SDKValidationError> {
133
+ return safeParse(
134
+ jsonString,
135
+ (x) => Limits$inboundSchema.parse(JSON.parse(x)),
136
+ `Failed to parse 'Limits' from JSON`,
137
+ );
138
+ }
139
+
80
140
  /** @internal */
81
141
  export const ErrorBody$inboundSchema: z.ZodType<
82
142
  ErrorBody,
@@ -88,11 +148,21 @@ export const ErrorBody$inboundSchema: z.ZodType<
88
148
  code: types.optional(types.string()),
89
149
  min_ttl_seconds: types.optional(types.number()),
90
150
  max_ttl_seconds: types.optional(types.number()),
151
+ retryable: types.optional(types.boolean()),
152
+ next_step: types.optional(types.string()),
91
153
  violations: types.optional(z.array(z.lazy(() => Violation$inboundSchema))),
154
+ reason: types.optional(Reason$inboundSchema),
155
+ bucket: types.optional(types.string()),
156
+ retry_in: types.optional(types.number()),
157
+ limits: types.optional(z.lazy(() => Limits$inboundSchema)),
158
+ upgrade_url: types.optional(types.string()),
92
159
  }).transform((v) => {
93
160
  return remap$(v, {
94
161
  "min_ttl_seconds": "minTtlSeconds",
95
162
  "max_ttl_seconds": "maxTtlSeconds",
163
+ "next_step": "nextStep",
164
+ "retry_in": "retryIn",
165
+ "upgrade_url": "upgradeUrl",
96
166
  });
97
167
  });
98
168
  /** @internal */
@@ -102,7 +172,14 @@ export type ErrorBody$Outbound = {
102
172
  code?: string | undefined;
103
173
  min_ttl_seconds?: number | undefined;
104
174
  max_ttl_seconds?: number | undefined;
175
+ retryable?: boolean | undefined;
176
+ next_step?: string | undefined;
105
177
  violations?: Array<Violation$Outbound> | undefined;
178
+ reason?: string | undefined;
179
+ bucket?: string | undefined;
180
+ retry_in?: number | undefined;
181
+ limits?: Limits$Outbound | undefined;
182
+ upgrade_url?: string | undefined;
106
183
  };
107
184
 
108
185
  /** @internal */
@@ -116,11 +193,21 @@ export const ErrorBody$outboundSchema: z.ZodType<
116
193
  code: z.string().optional(),
117
194
  minTtlSeconds: z.number().int().optional(),
118
195
  maxTtlSeconds: z.number().int().optional(),
196
+ retryable: z.boolean().optional(),
197
+ nextStep: z.string().optional(),
119
198
  violations: z.array(z.lazy(() => Violation$outboundSchema)).optional(),
199
+ reason: Reason$outboundSchema.optional(),
200
+ bucket: z.string().optional(),
201
+ retryIn: z.number().int().optional(),
202
+ limits: z.lazy(() => Limits$outboundSchema).optional(),
203
+ upgradeUrl: z.string().optional(),
120
204
  }).transform((v) => {
121
205
  return remap$(v, {
122
206
  minTtlSeconds: "min_ttl_seconds",
123
207
  maxTtlSeconds: "max_ttl_seconds",
208
+ nextStep: "next_step",
209
+ retryIn: "retry_in",
210
+ upgradeUrl: "upgrade_url",
124
211
  });
125
212
  });
126
213
 
@@ -54,7 +54,7 @@ export type ActionsCancelDataData = {
54
54
  export type ActionsCancelData = {
55
55
  data?: ActionsCancelDataData | undefined;
56
56
  /**
57
- * Handler error. Arrives inside data.error with HTTP 200 — check for it before reading the result.
57
+ * Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
58
58
  */
59
59
  error?: models.ErrorBody | undefined;
60
60
  };