botshield-sdk 2.0.1 → 2.0.2
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.
- package/LICENSE +21 -0
- package/README.md +76 -10
- package/bin/mcp-server.js +391 -18
- package/bin/mcp-server.js.map +15 -15
- package/dist/commonjs/funcs/census-get-partner-config.js +78 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +78 -0
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +78 -0
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +91 -0
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +104 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +13 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +26 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +17 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +17 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +17 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +26 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +26 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +26 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +26 -0
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +26 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +26 -0
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +26 -0
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +26 -0
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/esm/funcs/census-get-partner-config.js +78 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.js +78 -0
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/verification-get-status.js +78 -0
- package/dist/esm/funcs/verification-get-status.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +91 -0
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +104 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +13 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +26 -0
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +17 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +17 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +17 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +26 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.js +26 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +26 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +26 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +26 -0
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +26 -0
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +26 -0
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +26 -0
- package/dist/esm/models/security.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +16 -1
- package/src/funcs/census-get-partner-config.ts +91 -0
- package/src/funcs/census-verify-token.ts +91 -0
- package/src/funcs/verification-get-status.ts +91 -0
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +91 -0
- package/src/mcp-server/cli/start/command.ts +104 -0
- package/src/mcp-server/cli/start/impl.ts +39 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/actions-cancel-action.ts +17 -1
- package/src/mcp-server/tools/actions-check-action-status.ts +17 -1
- package/src/mcp-server/tools/actions-propose-action.ts +17 -1
- package/src/models/operations/sdk-get-partner-config.ts +52 -0
- package/src/models/operations/sdk-verify-token.ts +52 -0
- package/src/models/operations/verification-get-status.ts +52 -0
- package/src/models/security.ts +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BotShield, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
# botshield-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official TypeScript SDK for **[BotShield](https://botshield.ai)** — privacy-first human verification. A visitor proves a real person is present with the passkey already on their phone; your site learns only that the check passed. No PII, no CAPTCHA, no birthdates.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/botshield-sdk)
|
|
6
|
+
[](https://docs.botshield.ai)
|
|
7
|
+
[](./LICENSE)
|
|
5
8
|
[](https://www.speakeasy.com/?utm_source=botshield-sdk&utm_campaign=typescript)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
9
|
|
|
10
|
+
**Links:** [Website](https://botshield.ai) · [Documentation](https://docs.botshield.ai) · [API reference](https://docs.botshield.ai/api-reference/overview) · [Developer Console](https://console.botshield.ai) (free plan, 1 gate) · [Live demos](https://demo.botshield.ai) · [Feedback & roadmap](https://github.com/Bot-Shield/feedback)
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
## Quickstart
|
|
13
|
+
|
|
14
|
+
Most integrations need only the browser widget. Get a site key in the [Console](https://console.botshield.ai), then:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<script src="https://cdn.botshield.ai/sdk.js"></script>
|
|
18
|
+
|
|
19
|
+
<botshield-verify
|
|
20
|
+
site-key="pk_live_…"
|
|
21
|
+
scope="checkout"
|
|
22
|
+
checkout-label="Complete purchase">
|
|
23
|
+
</botshield-verify>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
document.querySelector('botshield-verify')
|
|
27
|
+
.addEventListener('botshield:success', (e) => {
|
|
28
|
+
// e.detail.token — hand it to your server and confirm it there
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
On your server, confirm the token with this SDK (`census.verifyToken`) before trusting it. Gates, age checks, Trusted Accounts and Agents Ask are configured in the Console and documented at [docs.botshield.ai](https://docs.botshield.ai): [BotShield Gate](https://docs.botshield.ai/gate/overview) · [Trusted Accounts](https://docs.botshield.ai/trusted-accounts/overview) · [Agents Ask](https://docs.botshield.ai/agents-ask/overview).
|
|
34
|
+
|
|
35
|
+
> [!NOTE]
|
|
36
|
+
> The SDK is generated from the BotShield OpenAPI spec by Speakeasy. Everything below this line is the generated reference.
|
|
11
37
|
|
|
12
38
|
<!-- Start Summary [summary] -->
|
|
13
39
|
## Summary
|
|
@@ -29,6 +55,7 @@ BotShield API: Human presence verification protocol.
|
|
|
29
55
|
## Table of Contents
|
|
30
56
|
<!-- $toc-max-depth=2 -->
|
|
31
57
|
* [botshield-sdk](#botshield-sdk)
|
|
58
|
+
* [Quickstart](#quickstart)
|
|
32
59
|
* [SDK Installation](#sdk-installation)
|
|
33
60
|
* [Requirements](#requirements)
|
|
34
61
|
* [SDK Example Usage](#sdk-example-usage)
|
|
@@ -101,7 +128,20 @@ Add the following server definition to your `claude_desktop_config.json` file:
|
|
|
101
128
|
"--",
|
|
102
129
|
"mcp", "start",
|
|
103
130
|
"--agent-key-auth", "...",
|
|
104
|
-
"--agent-key-auth1", "..."
|
|
131
|
+
"--agent-key-auth1", "...",
|
|
132
|
+
"--agent-key-auth2", "...",
|
|
133
|
+
"--agent-key-auth3", "...",
|
|
134
|
+
"--agent-key-auth4", "...",
|
|
135
|
+
"--agent-key-auth5", "...",
|
|
136
|
+
"--agent-key-auth6", "...",
|
|
137
|
+
"--agent-key-auth7", "...",
|
|
138
|
+
"--agent-key-auth8", "...",
|
|
139
|
+
"--agent-key-auth9", "...",
|
|
140
|
+
"--agent-key-auth10", "...",
|
|
141
|
+
"--agent-key-auth11", "...",
|
|
142
|
+
"--agent-key-auth12", "...",
|
|
143
|
+
"--agent-key-auth13", "...",
|
|
144
|
+
"--agent-key-auth14", "..."
|
|
105
145
|
]
|
|
106
146
|
}
|
|
107
147
|
}
|
|
@@ -125,7 +165,20 @@ Create a `.cursor/mcp.json` file in your project root with the following content
|
|
|
125
165
|
"--",
|
|
126
166
|
"mcp", "start",
|
|
127
167
|
"--agent-key-auth", "...",
|
|
128
|
-
"--agent-key-auth1", "..."
|
|
168
|
+
"--agent-key-auth1", "...",
|
|
169
|
+
"--agent-key-auth2", "...",
|
|
170
|
+
"--agent-key-auth3", "...",
|
|
171
|
+
"--agent-key-auth4", "...",
|
|
172
|
+
"--agent-key-auth5", "...",
|
|
173
|
+
"--agent-key-auth6", "...",
|
|
174
|
+
"--agent-key-auth7", "...",
|
|
175
|
+
"--agent-key-auth8", "...",
|
|
176
|
+
"--agent-key-auth9", "...",
|
|
177
|
+
"--agent-key-auth10", "...",
|
|
178
|
+
"--agent-key-auth11", "...",
|
|
179
|
+
"--agent-key-auth12", "...",
|
|
180
|
+
"--agent-key-auth13", "...",
|
|
181
|
+
"--agent-key-auth14", "..."
|
|
129
182
|
]
|
|
130
183
|
}
|
|
131
184
|
}
|
|
@@ -201,10 +254,23 @@ run();
|
|
|
201
254
|
|
|
202
255
|
This SDK supports the following security schemes globally:
|
|
203
256
|
|
|
204
|
-
| Name
|
|
205
|
-
|
|
|
206
|
-
| `agentKeyAuth`
|
|
207
|
-
| `agentKeyAuth1`
|
|
257
|
+
| Name | Type | Scheme |
|
|
258
|
+
| ---------------- | ------ | ------- |
|
|
259
|
+
| `agentKeyAuth` | apiKey | API key |
|
|
260
|
+
| `agentKeyAuth1` | apiKey | API key |
|
|
261
|
+
| `agentKeyAuth2` | apiKey | API key |
|
|
262
|
+
| `agentKeyAuth3` | apiKey | API key |
|
|
263
|
+
| `agentKeyAuth4` | apiKey | API key |
|
|
264
|
+
| `agentKeyAuth5` | apiKey | API key |
|
|
265
|
+
| `agentKeyAuth6` | apiKey | API key |
|
|
266
|
+
| `agentKeyAuth7` | apiKey | API key |
|
|
267
|
+
| `agentKeyAuth8` | apiKey | API key |
|
|
268
|
+
| `agentKeyAuth9` | apiKey | API key |
|
|
269
|
+
| `agentKeyAuth10` | apiKey | API key |
|
|
270
|
+
| `agentKeyAuth11` | apiKey | API key |
|
|
271
|
+
| `agentKeyAuth12` | apiKey | API key |
|
|
272
|
+
| `agentKeyAuth13` | apiKey | API key |
|
|
273
|
+
| `agentKeyAuth14` | apiKey | API key |
|
|
208
274
|
|
|
209
275
|
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
|
|
210
276
|
```typescript
|
package/bin/mcp-server.js
CHANGED
|
@@ -47249,9 +47249,9 @@ var init_config = __esm(() => {
|
|
|
47249
47249
|
SDK_METADATA = {
|
|
47250
47250
|
language: "typescript",
|
|
47251
47251
|
openapiDocVersion: "2.0.0",
|
|
47252
|
-
sdkVersion: "2.0.
|
|
47252
|
+
sdkVersion: "2.0.2",
|
|
47253
47253
|
genVersion: "2.934.1",
|
|
47254
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
47254
|
+
userAgent: "speakeasy-sdk/typescript 2.0.2 2.934.1 2.0.0 botshield-sdk"
|
|
47255
47255
|
};
|
|
47256
47256
|
});
|
|
47257
47257
|
|
|
@@ -48747,6 +48747,97 @@ function resolveGlobalSecurity(security, allowedFields) {
|
|
|
48747
48747
|
type: "apiKey:header",
|
|
48748
48748
|
value: security?.agentKeyAuth1
|
|
48749
48749
|
}
|
|
48750
|
+
],
|
|
48751
|
+
[
|
|
48752
|
+
{
|
|
48753
|
+
fieldName: "Authorization",
|
|
48754
|
+
type: "apiKey:header",
|
|
48755
|
+
value: security?.agentKeyAuth2
|
|
48756
|
+
}
|
|
48757
|
+
],
|
|
48758
|
+
[
|
|
48759
|
+
{
|
|
48760
|
+
fieldName: "Authorization",
|
|
48761
|
+
type: "apiKey:header",
|
|
48762
|
+
value: security?.agentKeyAuth3
|
|
48763
|
+
}
|
|
48764
|
+
],
|
|
48765
|
+
[
|
|
48766
|
+
{
|
|
48767
|
+
fieldName: "Authorization",
|
|
48768
|
+
type: "apiKey:header",
|
|
48769
|
+
value: security?.agentKeyAuth4
|
|
48770
|
+
}
|
|
48771
|
+
],
|
|
48772
|
+
[
|
|
48773
|
+
{
|
|
48774
|
+
fieldName: "Authorization",
|
|
48775
|
+
type: "apiKey:header",
|
|
48776
|
+
value: security?.agentKeyAuth5
|
|
48777
|
+
}
|
|
48778
|
+
],
|
|
48779
|
+
[
|
|
48780
|
+
{
|
|
48781
|
+
fieldName: "Authorization",
|
|
48782
|
+
type: "apiKey:header",
|
|
48783
|
+
value: security?.agentKeyAuth6
|
|
48784
|
+
}
|
|
48785
|
+
],
|
|
48786
|
+
[
|
|
48787
|
+
{
|
|
48788
|
+
fieldName: "Authorization",
|
|
48789
|
+
type: "apiKey:header",
|
|
48790
|
+
value: security?.agentKeyAuth7
|
|
48791
|
+
}
|
|
48792
|
+
],
|
|
48793
|
+
[
|
|
48794
|
+
{
|
|
48795
|
+
fieldName: "Authorization",
|
|
48796
|
+
type: "apiKey:header",
|
|
48797
|
+
value: security?.agentKeyAuth8
|
|
48798
|
+
}
|
|
48799
|
+
],
|
|
48800
|
+
[
|
|
48801
|
+
{
|
|
48802
|
+
fieldName: "Authorization",
|
|
48803
|
+
type: "apiKey:header",
|
|
48804
|
+
value: security?.agentKeyAuth9
|
|
48805
|
+
}
|
|
48806
|
+
],
|
|
48807
|
+
[
|
|
48808
|
+
{
|
|
48809
|
+
fieldName: "Authorization",
|
|
48810
|
+
type: "apiKey:header",
|
|
48811
|
+
value: security?.agentKeyAuth10
|
|
48812
|
+
}
|
|
48813
|
+
],
|
|
48814
|
+
[
|
|
48815
|
+
{
|
|
48816
|
+
fieldName: "Authorization",
|
|
48817
|
+
type: "apiKey:header",
|
|
48818
|
+
value: security?.agentKeyAuth11
|
|
48819
|
+
}
|
|
48820
|
+
],
|
|
48821
|
+
[
|
|
48822
|
+
{
|
|
48823
|
+
fieldName: "Authorization",
|
|
48824
|
+
type: "apiKey:header",
|
|
48825
|
+
value: security?.agentKeyAuth12
|
|
48826
|
+
}
|
|
48827
|
+
],
|
|
48828
|
+
[
|
|
48829
|
+
{
|
|
48830
|
+
fieldName: "Authorization",
|
|
48831
|
+
type: "apiKey:header",
|
|
48832
|
+
value: security?.agentKeyAuth13
|
|
48833
|
+
}
|
|
48834
|
+
],
|
|
48835
|
+
[
|
|
48836
|
+
{
|
|
48837
|
+
fieldName: "Authorization",
|
|
48838
|
+
type: "apiKey:header",
|
|
48839
|
+
value: security?.agentKeyAuth14
|
|
48840
|
+
}
|
|
48750
48841
|
]
|
|
48751
48842
|
];
|
|
48752
48843
|
if (allowedFields) {
|
|
@@ -48976,11 +49067,37 @@ var init_security2 = __esm(() => {
|
|
|
48976
49067
|
init_primitives2();
|
|
48977
49068
|
Security$inboundSchema = objectType({
|
|
48978
49069
|
agentKeyAuth: optional3(string4()),
|
|
48979
|
-
agentKeyAuth1: optional3(string4())
|
|
49070
|
+
agentKeyAuth1: optional3(string4()),
|
|
49071
|
+
agentKeyAuth2: optional3(string4()),
|
|
49072
|
+
agentKeyAuth3: optional3(string4()),
|
|
49073
|
+
agentKeyAuth4: optional3(string4()),
|
|
49074
|
+
agentKeyAuth5: optional3(string4()),
|
|
49075
|
+
agentKeyAuth6: optional3(string4()),
|
|
49076
|
+
agentKeyAuth7: optional3(string4()),
|
|
49077
|
+
agentKeyAuth8: optional3(string4()),
|
|
49078
|
+
agentKeyAuth9: optional3(string4()),
|
|
49079
|
+
agentKeyAuth10: optional3(string4()),
|
|
49080
|
+
agentKeyAuth11: optional3(string4()),
|
|
49081
|
+
agentKeyAuth12: optional3(string4()),
|
|
49082
|
+
agentKeyAuth13: optional3(string4()),
|
|
49083
|
+
agentKeyAuth14: optional3(string4())
|
|
48980
49084
|
});
|
|
48981
49085
|
Security$outboundSchema = objectType({
|
|
48982
49086
|
agentKeyAuth: stringType().optional(),
|
|
48983
|
-
agentKeyAuth1: stringType().optional()
|
|
49087
|
+
agentKeyAuth1: stringType().optional(),
|
|
49088
|
+
agentKeyAuth2: stringType().optional(),
|
|
49089
|
+
agentKeyAuth3: stringType().optional(),
|
|
49090
|
+
agentKeyAuth4: stringType().optional(),
|
|
49091
|
+
agentKeyAuth5: stringType().optional(),
|
|
49092
|
+
agentKeyAuth6: stringType().optional(),
|
|
49093
|
+
agentKeyAuth7: stringType().optional(),
|
|
49094
|
+
agentKeyAuth8: stringType().optional(),
|
|
49095
|
+
agentKeyAuth9: stringType().optional(),
|
|
49096
|
+
agentKeyAuth10: stringType().optional(),
|
|
49097
|
+
agentKeyAuth11: stringType().optional(),
|
|
49098
|
+
agentKeyAuth12: stringType().optional(),
|
|
49099
|
+
agentKeyAuth13: stringType().optional(),
|
|
49100
|
+
agentKeyAuth14: stringType().optional()
|
|
48984
49101
|
});
|
|
48985
49102
|
});
|
|
48986
49103
|
|
|
@@ -49665,11 +49782,37 @@ var init_sdk_get_partner_config = __esm(() => {
|
|
|
49665
49782
|
};
|
|
49666
49783
|
SDKGetPartnerConfigSecurity$inboundSchema = objectType({
|
|
49667
49784
|
apiKeyAuth: optional3(string4()),
|
|
49668
|
-
apiKeyAuth1: optional3(string4())
|
|
49785
|
+
apiKeyAuth1: optional3(string4()),
|
|
49786
|
+
apiKeyAuth2: optional3(string4()),
|
|
49787
|
+
apiKeyAuth3: optional3(string4()),
|
|
49788
|
+
apiKeyAuth4: optional3(string4()),
|
|
49789
|
+
apiKeyAuth5: optional3(string4()),
|
|
49790
|
+
apiKeyAuth6: optional3(string4()),
|
|
49791
|
+
apiKeyAuth7: optional3(string4()),
|
|
49792
|
+
apiKeyAuth8: optional3(string4()),
|
|
49793
|
+
apiKeyAuth9: optional3(string4()),
|
|
49794
|
+
apiKeyAuth10: optional3(string4()),
|
|
49795
|
+
apiKeyAuth11: optional3(string4()),
|
|
49796
|
+
apiKeyAuth12: optional3(string4()),
|
|
49797
|
+
apiKeyAuth13: optional3(string4()),
|
|
49798
|
+
apiKeyAuth14: optional3(string4())
|
|
49669
49799
|
});
|
|
49670
49800
|
SDKGetPartnerConfigSecurity$outboundSchema = objectType({
|
|
49671
49801
|
apiKeyAuth: stringType().optional(),
|
|
49672
|
-
apiKeyAuth1: stringType().optional()
|
|
49802
|
+
apiKeyAuth1: stringType().optional(),
|
|
49803
|
+
apiKeyAuth2: stringType().optional(),
|
|
49804
|
+
apiKeyAuth3: stringType().optional(),
|
|
49805
|
+
apiKeyAuth4: stringType().optional(),
|
|
49806
|
+
apiKeyAuth5: stringType().optional(),
|
|
49807
|
+
apiKeyAuth6: stringType().optional(),
|
|
49808
|
+
apiKeyAuth7: stringType().optional(),
|
|
49809
|
+
apiKeyAuth8: stringType().optional(),
|
|
49810
|
+
apiKeyAuth9: stringType().optional(),
|
|
49811
|
+
apiKeyAuth10: stringType().optional(),
|
|
49812
|
+
apiKeyAuth11: stringType().optional(),
|
|
49813
|
+
apiKeyAuth12: stringType().optional(),
|
|
49814
|
+
apiKeyAuth13: stringType().optional(),
|
|
49815
|
+
apiKeyAuth14: stringType().optional()
|
|
49673
49816
|
});
|
|
49674
49817
|
SDKGetPartnerConfigRequest$inboundSchema = objectType({
|
|
49675
49818
|
site_key: string4()
|
|
@@ -50042,11 +50185,37 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50042
50185
|
init_models();
|
|
50043
50186
|
SDKVerifyTokenSecurity$inboundSchema = objectType({
|
|
50044
50187
|
apiKeyAuth: optional3(string4()),
|
|
50045
|
-
apiKeyAuth1: optional3(string4())
|
|
50188
|
+
apiKeyAuth1: optional3(string4()),
|
|
50189
|
+
apiKeyAuth2: optional3(string4()),
|
|
50190
|
+
apiKeyAuth3: optional3(string4()),
|
|
50191
|
+
apiKeyAuth4: optional3(string4()),
|
|
50192
|
+
apiKeyAuth5: optional3(string4()),
|
|
50193
|
+
apiKeyAuth6: optional3(string4()),
|
|
50194
|
+
apiKeyAuth7: optional3(string4()),
|
|
50195
|
+
apiKeyAuth8: optional3(string4()),
|
|
50196
|
+
apiKeyAuth9: optional3(string4()),
|
|
50197
|
+
apiKeyAuth10: optional3(string4()),
|
|
50198
|
+
apiKeyAuth11: optional3(string4()),
|
|
50199
|
+
apiKeyAuth12: optional3(string4()),
|
|
50200
|
+
apiKeyAuth13: optional3(string4()),
|
|
50201
|
+
apiKeyAuth14: optional3(string4())
|
|
50046
50202
|
});
|
|
50047
50203
|
SDKVerifyTokenSecurity$outboundSchema = objectType({
|
|
50048
50204
|
apiKeyAuth: stringType().optional(),
|
|
50049
|
-
apiKeyAuth1: stringType().optional()
|
|
50205
|
+
apiKeyAuth1: stringType().optional(),
|
|
50206
|
+
apiKeyAuth2: stringType().optional(),
|
|
50207
|
+
apiKeyAuth3: stringType().optional(),
|
|
50208
|
+
apiKeyAuth4: stringType().optional(),
|
|
50209
|
+
apiKeyAuth5: stringType().optional(),
|
|
50210
|
+
apiKeyAuth6: stringType().optional(),
|
|
50211
|
+
apiKeyAuth7: stringType().optional(),
|
|
50212
|
+
apiKeyAuth8: stringType().optional(),
|
|
50213
|
+
apiKeyAuth9: stringType().optional(),
|
|
50214
|
+
apiKeyAuth10: stringType().optional(),
|
|
50215
|
+
apiKeyAuth11: stringType().optional(),
|
|
50216
|
+
apiKeyAuth12: stringType().optional(),
|
|
50217
|
+
apiKeyAuth13: stringType().optional(),
|
|
50218
|
+
apiKeyAuth14: stringType().optional()
|
|
50050
50219
|
});
|
|
50051
50220
|
SDKVerifyTokenRequest$inboundSchema = objectType({
|
|
50052
50221
|
token: string4()
|
|
@@ -50145,11 +50314,37 @@ var init_verification_get_status = __esm(() => {
|
|
|
50145
50314
|
};
|
|
50146
50315
|
VerificationGetStatusSecurity$inboundSchema = objectType({
|
|
50147
50316
|
apiKeyAuth: optional3(string4()),
|
|
50148
|
-
apiKeyAuth1: optional3(string4())
|
|
50317
|
+
apiKeyAuth1: optional3(string4()),
|
|
50318
|
+
apiKeyAuth2: optional3(string4()),
|
|
50319
|
+
apiKeyAuth3: optional3(string4()),
|
|
50320
|
+
apiKeyAuth4: optional3(string4()),
|
|
50321
|
+
apiKeyAuth5: optional3(string4()),
|
|
50322
|
+
apiKeyAuth6: optional3(string4()),
|
|
50323
|
+
apiKeyAuth7: optional3(string4()),
|
|
50324
|
+
apiKeyAuth8: optional3(string4()),
|
|
50325
|
+
apiKeyAuth9: optional3(string4()),
|
|
50326
|
+
apiKeyAuth10: optional3(string4()),
|
|
50327
|
+
apiKeyAuth11: optional3(string4()),
|
|
50328
|
+
apiKeyAuth12: optional3(string4()),
|
|
50329
|
+
apiKeyAuth13: optional3(string4()),
|
|
50330
|
+
apiKeyAuth14: optional3(string4())
|
|
50149
50331
|
});
|
|
50150
50332
|
VerificationGetStatusSecurity$outboundSchema = objectType({
|
|
50151
50333
|
apiKeyAuth: stringType().optional(),
|
|
50152
|
-
apiKeyAuth1: stringType().optional()
|
|
50334
|
+
apiKeyAuth1: stringType().optional(),
|
|
50335
|
+
apiKeyAuth2: stringType().optional(),
|
|
50336
|
+
apiKeyAuth3: stringType().optional(),
|
|
50337
|
+
apiKeyAuth4: stringType().optional(),
|
|
50338
|
+
apiKeyAuth5: stringType().optional(),
|
|
50339
|
+
apiKeyAuth6: stringType().optional(),
|
|
50340
|
+
apiKeyAuth7: stringType().optional(),
|
|
50341
|
+
apiKeyAuth8: stringType().optional(),
|
|
50342
|
+
apiKeyAuth9: stringType().optional(),
|
|
50343
|
+
apiKeyAuth10: stringType().optional(),
|
|
50344
|
+
apiKeyAuth11: stringType().optional(),
|
|
50345
|
+
apiKeyAuth12: stringType().optional(),
|
|
50346
|
+
apiKeyAuth13: stringType().optional(),
|
|
50347
|
+
apiKeyAuth14: stringType().optional()
|
|
50153
50348
|
});
|
|
50154
50349
|
VerificationGetStatusRequest$inboundSchema = objectType({
|
|
50155
50350
|
request_id: string4()
|
|
@@ -50396,7 +50591,23 @@ var init_actions_cancel_action2 = __esm(() => {
|
|
|
50396
50591
|
tool$actionsCancelAction = {
|
|
50397
50592
|
name: "cancel_resolution",
|
|
50398
50593
|
description: `Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
|
|
50399
|
-
scopes: [
|
|
50594
|
+
scopes: [
|
|
50595
|
+
"queue",
|
|
50596
|
+
"queue",
|
|
50597
|
+
"queue",
|
|
50598
|
+
"queue",
|
|
50599
|
+
"queue",
|
|
50600
|
+
"queue",
|
|
50601
|
+
"queue",
|
|
50602
|
+
"queue",
|
|
50603
|
+
"queue",
|
|
50604
|
+
"queue",
|
|
50605
|
+
"queue",
|
|
50606
|
+
"queue",
|
|
50607
|
+
"queue",
|
|
50608
|
+
"queue",
|
|
50609
|
+
"queue"
|
|
50610
|
+
],
|
|
50400
50611
|
args,
|
|
50401
50612
|
tool: async (client, args2, ctx) => {
|
|
50402
50613
|
const [result, apiCall] = await actionsCancelAction(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50502,7 +50713,23 @@ var init_actions_check_action_status2 = __esm(() => {
|
|
|
50502
50713
|
tool$actionsCheckActionStatus = {
|
|
50503
50714
|
name: "check_resolution_status",
|
|
50504
50715
|
description: `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.`,
|
|
50505
|
-
scopes: [
|
|
50716
|
+
scopes: [
|
|
50717
|
+
"queue",
|
|
50718
|
+
"queue",
|
|
50719
|
+
"queue",
|
|
50720
|
+
"queue",
|
|
50721
|
+
"queue",
|
|
50722
|
+
"queue",
|
|
50723
|
+
"queue",
|
|
50724
|
+
"queue",
|
|
50725
|
+
"queue",
|
|
50726
|
+
"queue",
|
|
50727
|
+
"queue",
|
|
50728
|
+
"queue",
|
|
50729
|
+
"queue",
|
|
50730
|
+
"queue",
|
|
50731
|
+
"queue"
|
|
50732
|
+
],
|
|
50506
50733
|
args: args2,
|
|
50507
50734
|
tool: async (client, args3, ctx) => {
|
|
50508
50735
|
const [result, apiCall] = await actionsCheckActionStatus(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50604,7 +50831,23 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50604
50831
|
tool$actionsProposeAction = {
|
|
50605
50832
|
name: "propose_resolution",
|
|
50606
50833
|
description: `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.`,
|
|
50607
|
-
scopes: [
|
|
50834
|
+
scopes: [
|
|
50835
|
+
"queue",
|
|
50836
|
+
"queue",
|
|
50837
|
+
"queue",
|
|
50838
|
+
"queue",
|
|
50839
|
+
"queue",
|
|
50840
|
+
"queue",
|
|
50841
|
+
"queue",
|
|
50842
|
+
"queue",
|
|
50843
|
+
"queue",
|
|
50844
|
+
"queue",
|
|
50845
|
+
"queue",
|
|
50846
|
+
"queue",
|
|
50847
|
+
"queue",
|
|
50848
|
+
"queue",
|
|
50849
|
+
"queue"
|
|
50850
|
+
],
|
|
50608
50851
|
args: args3,
|
|
50609
50852
|
tool: async (client, args4, ctx) => {
|
|
50610
50853
|
const [result, apiCall] = await actionsProposeAction(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50624,7 +50867,7 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50624
50867
|
function createMCPServer(deps) {
|
|
50625
50868
|
const server = new McpServer({
|
|
50626
50869
|
name: "BotShield",
|
|
50627
|
-
version: "2.0.
|
|
50870
|
+
version: "2.0.2"
|
|
50628
50871
|
});
|
|
50629
50872
|
const client = new BotShieldCore({
|
|
50630
50873
|
security: deps.security,
|
|
@@ -50682,7 +50925,20 @@ async function startStdio(flags) {
|
|
|
50682
50925
|
scopes: flags.scope,
|
|
50683
50926
|
security: {
|
|
50684
50927
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50685
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50928
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50929
|
+
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50930
|
+
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
50931
|
+
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
50932
|
+
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
50933
|
+
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
50934
|
+
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
50935
|
+
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
50936
|
+
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
50937
|
+
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
50938
|
+
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
50939
|
+
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
50940
|
+
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
50941
|
+
agentKeyAuth14: flags["agent-key-auth14"] ?? ""
|
|
50686
50942
|
},
|
|
50687
50943
|
serverURL: flags["server-url"],
|
|
50688
50944
|
serverIdx: flags["server-index"]
|
|
@@ -50704,7 +50960,20 @@ async function startSSE(flags) {
|
|
|
50704
50960
|
scopes: flags.scope,
|
|
50705
50961
|
security: {
|
|
50706
50962
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50707
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50963
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50964
|
+
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50965
|
+
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
50966
|
+
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
50967
|
+
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
50968
|
+
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
50969
|
+
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
50970
|
+
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
50971
|
+
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
50972
|
+
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
50973
|
+
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
50974
|
+
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
50975
|
+
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
50976
|
+
agentKeyAuth14: flags["agent-key-auth14"] ?? ""
|
|
50708
50977
|
},
|
|
50709
50978
|
serverURL: flags["server-url"],
|
|
50710
50979
|
serverIdx: flags["server-index"]
|
|
@@ -52881,6 +53150,110 @@ var startCommand = buildCommand({
|
|
|
52881
53150
|
return stringType().parse(value);
|
|
52882
53151
|
}
|
|
52883
53152
|
},
|
|
53153
|
+
"agent-key-auth2": {
|
|
53154
|
+
kind: "parsed",
|
|
53155
|
+
brief: "Sets the agentKeyAuth2 auth field for the API",
|
|
53156
|
+
optional: true,
|
|
53157
|
+
parse: (value) => {
|
|
53158
|
+
return stringType().parse(value);
|
|
53159
|
+
}
|
|
53160
|
+
},
|
|
53161
|
+
"agent-key-auth3": {
|
|
53162
|
+
kind: "parsed",
|
|
53163
|
+
brief: "Sets the agentKeyAuth3 auth field for the API",
|
|
53164
|
+
optional: true,
|
|
53165
|
+
parse: (value) => {
|
|
53166
|
+
return stringType().parse(value);
|
|
53167
|
+
}
|
|
53168
|
+
},
|
|
53169
|
+
"agent-key-auth4": {
|
|
53170
|
+
kind: "parsed",
|
|
53171
|
+
brief: "Sets the agentKeyAuth4 auth field for the API",
|
|
53172
|
+
optional: true,
|
|
53173
|
+
parse: (value) => {
|
|
53174
|
+
return stringType().parse(value);
|
|
53175
|
+
}
|
|
53176
|
+
},
|
|
53177
|
+
"agent-key-auth5": {
|
|
53178
|
+
kind: "parsed",
|
|
53179
|
+
brief: "Sets the agentKeyAuth5 auth field for the API",
|
|
53180
|
+
optional: true,
|
|
53181
|
+
parse: (value) => {
|
|
53182
|
+
return stringType().parse(value);
|
|
53183
|
+
}
|
|
53184
|
+
},
|
|
53185
|
+
"agent-key-auth6": {
|
|
53186
|
+
kind: "parsed",
|
|
53187
|
+
brief: "Sets the agentKeyAuth6 auth field for the API",
|
|
53188
|
+
optional: true,
|
|
53189
|
+
parse: (value) => {
|
|
53190
|
+
return stringType().parse(value);
|
|
53191
|
+
}
|
|
53192
|
+
},
|
|
53193
|
+
"agent-key-auth7": {
|
|
53194
|
+
kind: "parsed",
|
|
53195
|
+
brief: "Sets the agentKeyAuth7 auth field for the API",
|
|
53196
|
+
optional: true,
|
|
53197
|
+
parse: (value) => {
|
|
53198
|
+
return stringType().parse(value);
|
|
53199
|
+
}
|
|
53200
|
+
},
|
|
53201
|
+
"agent-key-auth8": {
|
|
53202
|
+
kind: "parsed",
|
|
53203
|
+
brief: "Sets the agentKeyAuth8 auth field for the API",
|
|
53204
|
+
optional: true,
|
|
53205
|
+
parse: (value) => {
|
|
53206
|
+
return stringType().parse(value);
|
|
53207
|
+
}
|
|
53208
|
+
},
|
|
53209
|
+
"agent-key-auth9": {
|
|
53210
|
+
kind: "parsed",
|
|
53211
|
+
brief: "Sets the agentKeyAuth9 auth field for the API",
|
|
53212
|
+
optional: true,
|
|
53213
|
+
parse: (value) => {
|
|
53214
|
+
return stringType().parse(value);
|
|
53215
|
+
}
|
|
53216
|
+
},
|
|
53217
|
+
"agent-key-auth10": {
|
|
53218
|
+
kind: "parsed",
|
|
53219
|
+
brief: "Sets the agentKeyAuth10 auth field for the API",
|
|
53220
|
+
optional: true,
|
|
53221
|
+
parse: (value) => {
|
|
53222
|
+
return stringType().parse(value);
|
|
53223
|
+
}
|
|
53224
|
+
},
|
|
53225
|
+
"agent-key-auth11": {
|
|
53226
|
+
kind: "parsed",
|
|
53227
|
+
brief: "Sets the agentKeyAuth11 auth field for the API",
|
|
53228
|
+
optional: true,
|
|
53229
|
+
parse: (value) => {
|
|
53230
|
+
return stringType().parse(value);
|
|
53231
|
+
}
|
|
53232
|
+
},
|
|
53233
|
+
"agent-key-auth12": {
|
|
53234
|
+
kind: "parsed",
|
|
53235
|
+
brief: "Sets the agentKeyAuth12 auth field for the API",
|
|
53236
|
+
optional: true,
|
|
53237
|
+
parse: (value) => {
|
|
53238
|
+
return stringType().parse(value);
|
|
53239
|
+
}
|
|
53240
|
+
},
|
|
53241
|
+
"agent-key-auth13": {
|
|
53242
|
+
kind: "parsed",
|
|
53243
|
+
brief: "Sets the agentKeyAuth13 auth field for the API",
|
|
53244
|
+
optional: true,
|
|
53245
|
+
parse: (value) => {
|
|
53246
|
+
return stringType().parse(value);
|
|
53247
|
+
}
|
|
53248
|
+
},
|
|
53249
|
+
"agent-key-auth14": {
|
|
53250
|
+
kind: "parsed",
|
|
53251
|
+
brief: "Sets the agentKeyAuth14 auth field for the API",
|
|
53252
|
+
optional: true,
|
|
53253
|
+
parse: (value) => {
|
|
53254
|
+
return stringType().parse(value);
|
|
53255
|
+
}
|
|
53256
|
+
},
|
|
52884
53257
|
"server-url": {
|
|
52885
53258
|
kind: "parsed",
|
|
52886
53259
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -52940,7 +53313,7 @@ var routes = buildRouteMap({
|
|
|
52940
53313
|
var app = buildApplication(routes, {
|
|
52941
53314
|
name: "mcp",
|
|
52942
53315
|
versionInfo: {
|
|
52943
|
-
currentVersion: "2.0.
|
|
53316
|
+
currentVersion: "2.0.2"
|
|
52944
53317
|
}
|
|
52945
53318
|
});
|
|
52946
53319
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -52948,5 +53321,5 @@ export {
|
|
|
52948
53321
|
app
|
|
52949
53322
|
};
|
|
52950
53323
|
|
|
52951
|
-
//# debugId=
|
|
53324
|
+
//# debugId=99B9DBCC90AEA76B64756E2164756E21
|
|
52952
53325
|
//# sourceMappingURL=mcp-server.js.map
|