botshield-sdk 2.0.0 → 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 +80 -17
- package/bin/mcp-server.js +393 -30
- package/bin/mcp-server.js.map +17 -17
- package/dist/commonjs/funcs/census-create-session.d.ts +1 -1
- package/dist/commonjs/funcs/census-create-session.js +1 -1
- package/dist/commonjs/funcs/census-create-verification-link.js +1 -1
- package/dist/commonjs/funcs/census-create-verification-link.js.map +1 -1
- package/dist/commonjs/funcs/census-get-partner-config.js +72 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -1
- package/dist/commonjs/funcs/census-logout.d.ts +1 -1
- package/dist/commonjs/funcs/census-logout.js +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +72 -0
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +72 -0
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts +10 -9
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +29 -13
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +84 -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 +96 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +12 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +24 -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-create-verification-link.d.ts +13 -3
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +4 -4
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +24 -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 +24 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +24 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +24 -0
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +34 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +28 -0
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +24 -0
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +24 -0
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/census.d.ts +2 -2
- package/dist/commonjs/sdk/census.js +2 -2
- package/dist/esm/funcs/census-create-session.d.ts +1 -1
- package/dist/esm/funcs/census-create-session.js +1 -1
- package/dist/esm/funcs/census-create-verification-link.js +1 -1
- package/dist/esm/funcs/census-create-verification-link.js.map +1 -1
- package/dist/esm/funcs/census-get-partner-config.js +72 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -1
- package/dist/esm/funcs/census-logout.d.ts +1 -1
- package/dist/esm/funcs/census-logout.js +1 -1
- package/dist/esm/funcs/census-verify-token.js +72 -0
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/verification-get-status.js +72 -0
- package/dist/esm/funcs/verification-get-status.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts +10 -9
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +29 -13
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +84 -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 +96 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +12 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +24 -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-create-verification-link.d.ts +13 -3
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +4 -4
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +24 -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 +24 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +24 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +24 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +34 -0
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +28 -0
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +24 -0
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +24 -0
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/census.d.ts +2 -2
- package/dist/esm/sdk/census.js +2 -2
- package/jsr.json +1 -1
- package/package.json +17 -2
- package/src/funcs/census-create-session.ts +1 -1
- package/src/funcs/census-create-verification-link.ts +1 -1
- package/src/funcs/census-get-partner-config.ts +84 -0
- package/src/funcs/census-logout.ts +1 -1
- package/src/funcs/census-verify-token.ts +84 -0
- package/src/funcs/verification-get-status.ts +84 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/lib/security.ts +84 -0
- package/src/mcp-server/cli/start/command.ts +96 -0
- package/src/mcp-server/cli/start/impl.ts +36 -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-create-verification-link.ts +17 -7
- package/src/models/operations/sdk-get-partner-config.ts +48 -0
- package/src/models/operations/sdk-verify-token.ts +48 -0
- package/src/models/operations/verification-get-status.ts +58 -0
- package/src/models/security.ts +48 -0
- package/src/sdk/census.ts +2 -2
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.
|
|
47253
|
-
genVersion: "2.
|
|
47254
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
47252
|
+
sdkVersion: "2.0.2",
|
|
47253
|
+
genVersion: "2.934.1",
|
|
47254
|
+
userAgent: "speakeasy-sdk/typescript 2.0.2 2.934.1 2.0.0 botshield-sdk"
|
|
47255
47255
|
};
|
|
47256
47256
|
});
|
|
47257
47257
|
|
|
@@ -47348,6 +47348,19 @@ function isPlainObject3(value) {
|
|
|
47348
47348
|
var init_primitives = () => {};
|
|
47349
47349
|
|
|
47350
47350
|
// src/lib/encodings.ts
|
|
47351
|
+
function encodeKeyChars(v, charEncoding) {
|
|
47352
|
+
return encodeChars(v, charEncoding === "percentExceptReserved" ? "percent" : charEncoding);
|
|
47353
|
+
}
|
|
47354
|
+
function encodeChars(v, charEncoding) {
|
|
47355
|
+
switch (charEncoding) {
|
|
47356
|
+
case "percent":
|
|
47357
|
+
return encodeURIComponent(v);
|
|
47358
|
+
case "percentExceptReserved":
|
|
47359
|
+
return encodeURIComponent(v).replace(reservedEscapes, (m) => decodeURIComponent(m));
|
|
47360
|
+
default:
|
|
47361
|
+
return v;
|
|
47362
|
+
}
|
|
47363
|
+
}
|
|
47351
47364
|
function formEncoder(sep) {
|
|
47352
47365
|
return (key, value, options) => {
|
|
47353
47366
|
let out = "";
|
|
@@ -47356,7 +47369,7 @@ function formEncoder(sep) {
|
|
|
47356
47369
|
return;
|
|
47357
47370
|
}
|
|
47358
47371
|
const encodeString = (v) => {
|
|
47359
|
-
return options?.charEncoding
|
|
47372
|
+
return encodeChars(v, options?.charEncoding);
|
|
47360
47373
|
};
|
|
47361
47374
|
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
47362
47375
|
const encodedSep = encodeString(sep);
|
|
@@ -47377,7 +47390,7 @@ function formEncoder(sep) {
|
|
|
47377
47390
|
if (encValue == null) {
|
|
47378
47391
|
return;
|
|
47379
47392
|
}
|
|
47380
|
-
tmp = `${
|
|
47393
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
47381
47394
|
if (!tmp || tmp === "=") {
|
|
47382
47395
|
return;
|
|
47383
47396
|
}
|
|
@@ -47401,7 +47414,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
47401
47414
|
}
|
|
47402
47415
|
let out = "";
|
|
47403
47416
|
const encodeString = (v) => {
|
|
47404
|
-
return options?.charEncoding
|
|
47417
|
+
return encodeChars(v, options?.charEncoding);
|
|
47405
47418
|
};
|
|
47406
47419
|
if (!isPlainObject3(value)) {
|
|
47407
47420
|
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
@@ -47418,7 +47431,7 @@ function encodeDeepObjectObject(key, value, options) {
|
|
|
47418
47431
|
}
|
|
47419
47432
|
const pairs = Array.isArray(cv) ? cv : [cv];
|
|
47420
47433
|
const encoded = mapDefined(pairs, (v) => {
|
|
47421
|
-
return `${
|
|
47434
|
+
return `${encodeKeyChars(pk, options?.charEncoding)}=${encodeString(serializeValue(v))}`;
|
|
47422
47435
|
})?.join("&");
|
|
47423
47436
|
out += encoded == null ? "" : `&${encoded}`;
|
|
47424
47437
|
});
|
|
@@ -47429,10 +47442,10 @@ function encodeJSON(key, value, options) {
|
|
|
47429
47442
|
return;
|
|
47430
47443
|
}
|
|
47431
47444
|
const encodeString = (v) => {
|
|
47432
|
-
return options?.charEncoding
|
|
47445
|
+
return encodeChars(v, options?.charEncoding);
|
|
47433
47446
|
};
|
|
47434
47447
|
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
47435
|
-
return options?.explode ? encVal : `${
|
|
47448
|
+
return options?.explode ? encVal : `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
|
|
47436
47449
|
}
|
|
47437
47450
|
function explode(key, value) {
|
|
47438
47451
|
if (Array.isArray(value)) {
|
|
@@ -47514,7 +47527,7 @@ function queryEncoder(f) {
|
|
|
47514
47527
|
};
|
|
47515
47528
|
return bulkEncode;
|
|
47516
47529
|
}
|
|
47517
|
-
var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
47530
|
+
var EncodingError, reservedEscapes, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
|
|
47518
47531
|
var init_encodings = __esm(() => {
|
|
47519
47532
|
init_base64();
|
|
47520
47533
|
init_primitives();
|
|
@@ -47524,6 +47537,7 @@ var init_encodings = __esm(() => {
|
|
|
47524
47537
|
this.name = "EncodingError";
|
|
47525
47538
|
}
|
|
47526
47539
|
};
|
|
47540
|
+
reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
|
|
47527
47541
|
encodeForm = formEncoder(",");
|
|
47528
47542
|
encodeSpaceDelimited = formEncoder(" ");
|
|
47529
47543
|
encodePipeDelimited = formEncoder("|");
|
|
@@ -48740,6 +48754,90 @@ function resolveGlobalSecurity(security, allowedFields) {
|
|
|
48740
48754
|
type: "apiKey:header",
|
|
48741
48755
|
value: security?.agentKeyAuth2
|
|
48742
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
|
+
}
|
|
48743
48841
|
]
|
|
48744
48842
|
];
|
|
48745
48843
|
if (allowedFields) {
|
|
@@ -48970,12 +49068,36 @@ var init_security2 = __esm(() => {
|
|
|
48970
49068
|
Security$inboundSchema = objectType({
|
|
48971
49069
|
agentKeyAuth: optional3(string4()),
|
|
48972
49070
|
agentKeyAuth1: optional3(string4()),
|
|
48973
|
-
agentKeyAuth2: 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())
|
|
48974
49084
|
});
|
|
48975
49085
|
Security$outboundSchema = objectType({
|
|
48976
49086
|
agentKeyAuth: stringType().optional(),
|
|
48977
49087
|
agentKeyAuth1: stringType().optional(),
|
|
48978
|
-
agentKeyAuth2: 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()
|
|
48979
49101
|
});
|
|
48980
49102
|
});
|
|
48981
49103
|
|
|
@@ -49509,17 +49631,17 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49509
49631
|
Private: "private"
|
|
49510
49632
|
};
|
|
49511
49633
|
SDKCreateVerificationLinkSecurity$inboundSchema = objectType({
|
|
49512
|
-
|
|
49634
|
+
GrantTokenAuth: string4()
|
|
49513
49635
|
}).transform((v) => {
|
|
49514
49636
|
return remap(v, {
|
|
49515
|
-
|
|
49637
|
+
GrantTokenAuth: "grantTokenAuth"
|
|
49516
49638
|
});
|
|
49517
49639
|
});
|
|
49518
49640
|
SDKCreateVerificationLinkSecurity$outboundSchema = objectType({
|
|
49519
|
-
|
|
49641
|
+
grantTokenAuth: stringType()
|
|
49520
49642
|
}).transform((v) => {
|
|
49521
49643
|
return remap(v, {
|
|
49522
|
-
|
|
49644
|
+
grantTokenAuth: "GrantTokenAuth"
|
|
49523
49645
|
});
|
|
49524
49646
|
});
|
|
49525
49647
|
SDKTypeRequest$inboundSchema = nativeEnumType(SDKTypeRequest);
|
|
@@ -49661,12 +49783,36 @@ var init_sdk_get_partner_config = __esm(() => {
|
|
|
49661
49783
|
SDKGetPartnerConfigSecurity$inboundSchema = objectType({
|
|
49662
49784
|
apiKeyAuth: optional3(string4()),
|
|
49663
49785
|
apiKeyAuth1: optional3(string4()),
|
|
49664
|
-
apiKeyAuth2: 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())
|
|
49665
49799
|
});
|
|
49666
49800
|
SDKGetPartnerConfigSecurity$outboundSchema = objectType({
|
|
49667
49801
|
apiKeyAuth: stringType().optional(),
|
|
49668
49802
|
apiKeyAuth1: stringType().optional(),
|
|
49669
|
-
apiKeyAuth2: 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()
|
|
49670
49816
|
});
|
|
49671
49817
|
SDKGetPartnerConfigRequest$inboundSchema = objectType({
|
|
49672
49818
|
site_key: string4()
|
|
@@ -50040,12 +50186,36 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50040
50186
|
SDKVerifyTokenSecurity$inboundSchema = objectType({
|
|
50041
50187
|
apiKeyAuth: optional3(string4()),
|
|
50042
50188
|
apiKeyAuth1: optional3(string4()),
|
|
50043
|
-
apiKeyAuth2: 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())
|
|
50044
50202
|
});
|
|
50045
50203
|
SDKVerifyTokenSecurity$outboundSchema = objectType({
|
|
50046
50204
|
apiKeyAuth: stringType().optional(),
|
|
50047
50205
|
apiKeyAuth1: stringType().optional(),
|
|
50048
|
-
apiKeyAuth2: 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()
|
|
50049
50219
|
});
|
|
50050
50220
|
SDKVerifyTokenRequest$inboundSchema = objectType({
|
|
50051
50221
|
token: string4()
|
|
@@ -50132,6 +50302,7 @@ var init_verification_get_status = __esm(() => {
|
|
|
50132
50302
|
VerificationGetStatusStatus = {
|
|
50133
50303
|
Pending: "pending",
|
|
50134
50304
|
Completed: "completed",
|
|
50305
|
+
Pass: "pass",
|
|
50135
50306
|
Expired: "expired",
|
|
50136
50307
|
Failed: "failed",
|
|
50137
50308
|
NotFound: "not_found",
|
|
@@ -50144,12 +50315,36 @@ var init_verification_get_status = __esm(() => {
|
|
|
50144
50315
|
VerificationGetStatusSecurity$inboundSchema = objectType({
|
|
50145
50316
|
apiKeyAuth: optional3(string4()),
|
|
50146
50317
|
apiKeyAuth1: optional3(string4()),
|
|
50147
|
-
apiKeyAuth2: 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())
|
|
50148
50331
|
});
|
|
50149
50332
|
VerificationGetStatusSecurity$outboundSchema = objectType({
|
|
50150
50333
|
apiKeyAuth: stringType().optional(),
|
|
50151
50334
|
apiKeyAuth1: stringType().optional(),
|
|
50152
|
-
apiKeyAuth2: 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,
|
|
@@ -50683,7 +50926,19 @@ async function startStdio(flags) {
|
|
|
50683
50926
|
security: {
|
|
50684
50927
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50685
50928
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50686
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? ""
|
|
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"] ?? ""
|
|
50687
50942
|
},
|
|
50688
50943
|
serverURL: flags["server-url"],
|
|
50689
50944
|
serverIdx: flags["server-index"]
|
|
@@ -50706,7 +50961,19 @@ async function startSSE(flags) {
|
|
|
50706
50961
|
security: {
|
|
50707
50962
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50708
50963
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50709
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? ""
|
|
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"] ?? ""
|
|
50710
50977
|
},
|
|
50711
50978
|
serverURL: flags["server-url"],
|
|
50712
50979
|
serverIdx: flags["server-index"]
|
|
@@ -52891,6 +53158,102 @@ var startCommand = buildCommand({
|
|
|
52891
53158
|
return stringType().parse(value);
|
|
52892
53159
|
}
|
|
52893
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
|
+
},
|
|
52894
53257
|
"server-url": {
|
|
52895
53258
|
kind: "parsed",
|
|
52896
53259
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -52950,7 +53313,7 @@ var routes = buildRouteMap({
|
|
|
52950
53313
|
var app = buildApplication(routes, {
|
|
52951
53314
|
name: "mcp",
|
|
52952
53315
|
versionInfo: {
|
|
52953
|
-
currentVersion: "2.0.
|
|
53316
|
+
currentVersion: "2.0.2"
|
|
52954
53317
|
}
|
|
52955
53318
|
});
|
|
52956
53319
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -52958,5 +53321,5 @@ export {
|
|
|
52958
53321
|
app
|
|
52959
53322
|
};
|
|
52960
53323
|
|
|
52961
|
-
//# debugId=
|
|
53324
|
+
//# debugId=99B9DBCC90AEA76B64756E2164756E21
|
|
52962
53325
|
//# sourceMappingURL=mcp-server.js.map
|