botshield-sdk 2.2.1 → 2.3.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.
- package/README.md +15 -7
- package/bin/mcp-server.js +422 -87
- package/bin/mcp-server.js.map +20 -15
- package/dist/commonjs/funcs/inline-passkey-complete.d.ts +20 -0
- package/dist/commonjs/funcs/inline-passkey-complete.d.ts.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-complete.js +116 -0
- package/dist/commonjs/funcs/inline-passkey-complete.js.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.d.ts +20 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.d.ts.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.js +116 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +20 -4
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +22 -18
- package/dist/commonjs/lib/config.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 +4 -3
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
- 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.d.ts +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +2 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/error-body.d.ts +6 -1
- package/dist/commonjs/models/error-body.d.ts.map +1 -1
- package/dist/commonjs/models/error-body.js +2 -0
- package/dist/commonjs/models/error-body.js.map +1 -1
- package/dist/commonjs/models/gate-human-verified-event.d.ts +93 -0
- package/dist/commonjs/models/gate-human-verified-event.d.ts.map +1 -0
- package/dist/commonjs/models/gate-human-verified-event.js +119 -0
- package/dist/commonjs/models/gate-human-verified-event.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/inline-passkey-assertion.d.ts +66 -0
- package/dist/commonjs/models/inline-passkey-assertion.d.ts.map +1 -0
- package/dist/commonjs/models/inline-passkey-assertion.js +98 -0
- package/dist/commonjs/models/inline-passkey-assertion.js.map +1 -0
- package/dist/commonjs/models/inline-passkey-request-options.d.ts +78 -0
- package/dist/commonjs/models/inline-passkey-request-options.d.ts.map +1 -0
- package/dist/commonjs/models/inline-passkey-request-options.js +107 -0
- package/dist/commonjs/models/inline-passkey-request-options.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts +7 -1
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request-status.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/request-passkey-complete.d.ts +107 -0
- package/dist/commonjs/models/operations/request-passkey-complete.d.ts.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-complete.js +141 -0
- package/dist/commonjs/models/operations/request-passkey-complete.js.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-options.d.ts +178 -0
- package/dist/commonjs/models/operations/request-passkey-options.d.ts.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-options.js +193 -0
- package/dist/commonjs/models/operations/request-passkey-options.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +47 -20
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +38 -17
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/sdk/inline-passkey.d.ts +23 -0
- package/dist/commonjs/sdk/inline-passkey.d.ts.map +1 -0
- package/dist/commonjs/sdk/inline-passkey.js +36 -0
- package/dist/commonjs/sdk/inline-passkey.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +5 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/inline-passkey-complete.d.ts +20 -0
- package/dist/esm/funcs/inline-passkey-complete.d.ts.map +1 -0
- package/dist/esm/funcs/inline-passkey-complete.js +80 -0
- package/dist/esm/funcs/inline-passkey-complete.js.map +1 -0
- package/dist/esm/funcs/inline-passkey-get-options.d.ts +20 -0
- package/dist/esm/funcs/inline-passkey-get-options.d.ts.map +1 -0
- package/dist/esm/funcs/inline-passkey-get-options.js +80 -0
- package/dist/esm/funcs/inline-passkey-get-options.js.map +1 -0
- package/dist/esm/lib/config.d.ts +20 -4
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +21 -17
- package/dist/esm/lib/config.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 +5 -4
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -2
- 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.d.ts +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +2 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/error-body.d.ts +6 -1
- package/dist/esm/models/error-body.d.ts.map +1 -1
- package/dist/esm/models/error-body.js +2 -0
- package/dist/esm/models/error-body.js.map +1 -1
- package/dist/esm/models/gate-human-verified-event.d.ts +93 -0
- package/dist/esm/models/gate-human-verified-event.d.ts.map +1 -0
- package/dist/esm/models/gate-human-verified-event.js +81 -0
- package/dist/esm/models/gate-human-verified-event.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/inline-passkey-assertion.d.ts +66 -0
- package/dist/esm/models/inline-passkey-assertion.d.ts.map +1 -0
- package/dist/esm/models/inline-passkey-assertion.js +58 -0
- package/dist/esm/models/inline-passkey-assertion.js.map +1 -0
- package/dist/esm/models/inline-passkey-request-options.d.ts +78 -0
- package/dist/esm/models/inline-passkey-request-options.d.ts.map +1 -0
- package/dist/esm/models/inline-passkey-request-options.js +67 -0
- package/dist/esm/models/inline-passkey-request-options.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts +7 -1
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-request-status.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-request.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/request-passkey-complete.d.ts +107 -0
- package/dist/esm/models/operations/request-passkey-complete.d.ts.map +1 -0
- package/dist/esm/models/operations/request-passkey-complete.js +97 -0
- package/dist/esm/models/operations/request-passkey-complete.js.map +1 -0
- package/dist/esm/models/operations/request-passkey-options.d.ts +178 -0
- package/dist/esm/models/operations/request-passkey-options.d.ts.map +1 -0
- package/dist/esm/models/operations/request-passkey-options.js +149 -0
- package/dist/esm/models/operations/request-passkey-options.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +47 -20
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +37 -16
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/sdk/inline-passkey.d.ts +23 -0
- package/dist/esm/sdk/inline-passkey.d.ts.map +1 -0
- package/dist/esm/sdk/inline-passkey.js +32 -0
- package/dist/esm/sdk/inline-passkey.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +5 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/inline-passkey-complete.ts +172 -0
- package/src/funcs/inline-passkey-get-options.ts +172 -0
- package/src/lib/config.ts +22 -18
- package/src/mcp-server/cli/start/command.ts +5 -4
- package/src/mcp-server/cli/start/impl.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/models/error-body.ts +8 -1
- package/src/models/gate-human-verified-event.ts +181 -0
- package/src/models/index.ts +3 -0
- package/src/models/inline-passkey-assertion.ts +147 -0
- package/src/models/inline-passkey-request-options.ts +175 -0
- package/src/models/operations/gates-api-actions-request-status.ts +7 -1
- package/src/models/operations/gates-api-actions-request.ts +1 -1
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/request-passkey-complete.ts +272 -0
- package/src/models/operations/request-passkey-options.ts +372 -0
- package/src/models/operations/verification-get-status.ts +85 -34
- package/src/sdk/inline-passkey.ts +49 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -3877,6 +3877,55 @@ var init_v3 = __esm(() => {
|
|
|
3877
3877
|
init_external();
|
|
3878
3878
|
});
|
|
3879
3879
|
|
|
3880
|
+
// src/lib/url.ts
|
|
3881
|
+
function pathToFunc(pathPattern, options) {
|
|
3882
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
3883
|
+
return function buildURLPath(params = {}) {
|
|
3884
|
+
return pathPattern.replace(paramRE, function(_, placeholder) {
|
|
3885
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
3886
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
3887
|
+
}
|
|
3888
|
+
const value = params[placeholder];
|
|
3889
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
3890
|
+
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
3891
|
+
}
|
|
3892
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
|
|
3893
|
+
}).replace(/^\/+/, "");
|
|
3894
|
+
};
|
|
3895
|
+
}
|
|
3896
|
+
var hasOwn;
|
|
3897
|
+
var init_url = __esm(() => {
|
|
3898
|
+
hasOwn = Object.prototype.hasOwnProperty;
|
|
3899
|
+
});
|
|
3900
|
+
|
|
3901
|
+
// src/lib/config.ts
|
|
3902
|
+
function serverURLFromOptions(options) {
|
|
3903
|
+
let serverURL = options.serverURL;
|
|
3904
|
+
const params = {};
|
|
3905
|
+
if (!serverURL) {
|
|
3906
|
+
const server = options.server ?? ServerProduction;
|
|
3907
|
+
serverURL = ServerList[server] || "";
|
|
3908
|
+
}
|
|
3909
|
+
const u = pathToFunc(serverURL)(params);
|
|
3910
|
+
return new URL(u);
|
|
3911
|
+
}
|
|
3912
|
+
var ServerProduction = "production", ServerStaging = "staging", ServerLocal = "local", ServerList, SDK_METADATA;
|
|
3913
|
+
var init_config = __esm(() => {
|
|
3914
|
+
init_url();
|
|
3915
|
+
ServerList = {
|
|
3916
|
+
[ServerProduction]: "https://api.botshield.ai/operations",
|
|
3917
|
+
[ServerStaging]: "https://wg-staging.botshield.ai/operations",
|
|
3918
|
+
[ServerLocal]: "http://localhost:9991/operations"
|
|
3919
|
+
};
|
|
3920
|
+
SDK_METADATA = {
|
|
3921
|
+
language: "typescript",
|
|
3922
|
+
openapiDocVersion: "2.0.0",
|
|
3923
|
+
sdkVersion: "2.3.0",
|
|
3924
|
+
genVersion: "2.934.1",
|
|
3925
|
+
userAgent: "speakeasy-sdk/typescript 2.3.0 2.934.1 2.0.0 botshield-sdk"
|
|
3926
|
+
};
|
|
3927
|
+
});
|
|
3928
|
+
|
|
3880
3929
|
// src/mcp-server/console-logger.ts
|
|
3881
3930
|
function createConsoleLogger(level) {
|
|
3882
3931
|
const min = consoleLoggerLevels.indexOf(level);
|
|
@@ -11081,10 +11130,10 @@ var require_bom_handling = __commonJS((exports) => {
|
|
|
11081
11130
|
|
|
11082
11131
|
// node_modules/raw-body/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
11083
11132
|
var require_merge_exports = __commonJS((exports, module) => {
|
|
11084
|
-
var
|
|
11133
|
+
var hasOwn2 = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
11085
11134
|
function mergeModules(target, module2) {
|
|
11086
11135
|
for (var key in module2) {
|
|
11087
|
-
if (
|
|
11136
|
+
if (hasOwn2(module2, key)) {
|
|
11088
11137
|
target[key] = module2[key];
|
|
11089
11138
|
}
|
|
11090
11139
|
}
|
|
@@ -28892,11 +28941,11 @@ var require_object_inspect = __commonJS((exports, module) => {
|
|
|
28892
28941
|
} catch (e) {}
|
|
28893
28942
|
return false;
|
|
28894
28943
|
}
|
|
28895
|
-
var
|
|
28944
|
+
var hasOwn2 = Object.prototype.hasOwnProperty || function(key) {
|
|
28896
28945
|
return key in this;
|
|
28897
28946
|
};
|
|
28898
28947
|
function has(obj, key) {
|
|
28899
|
-
return
|
|
28948
|
+
return hasOwn2.call(obj, key);
|
|
28900
28949
|
}
|
|
28901
28950
|
function toStr(obj) {
|
|
28902
28951
|
return objectToString.call(obj);
|
|
@@ -29761,7 +29810,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
29761
29810
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
29762
29811
|
};
|
|
29763
29812
|
var bind = require_function_bind();
|
|
29764
|
-
var
|
|
29813
|
+
var hasOwn2 = require_hasown();
|
|
29765
29814
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
29766
29815
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
29767
29816
|
var $replace = bind.call($call, String.prototype.replace);
|
|
@@ -29786,11 +29835,11 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
29786
29835
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
29787
29836
|
var intrinsicName = name;
|
|
29788
29837
|
var alias;
|
|
29789
|
-
if (
|
|
29838
|
+
if (hasOwn2(LEGACY_ALIASES, intrinsicName)) {
|
|
29790
29839
|
alias = LEGACY_ALIASES[intrinsicName];
|
|
29791
29840
|
intrinsicName = "%" + alias[0] + "%";
|
|
29792
29841
|
}
|
|
29793
|
-
if (
|
|
29842
|
+
if (hasOwn2(INTRINSICS, intrinsicName)) {
|
|
29794
29843
|
var value = INTRINSICS[intrinsicName];
|
|
29795
29844
|
if (value === needsEval) {
|
|
29796
29845
|
value = doEval(intrinsicName);
|
|
@@ -29839,7 +29888,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
29839
29888
|
}
|
|
29840
29889
|
intrinsicBaseName += "." + part;
|
|
29841
29890
|
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
29842
|
-
if (
|
|
29891
|
+
if (hasOwn2(INTRINSICS, intrinsicRealName)) {
|
|
29843
29892
|
value = INTRINSICS[intrinsicRealName];
|
|
29844
29893
|
} else if (value != null) {
|
|
29845
29894
|
if (!(part in value)) {
|
|
@@ -29857,7 +29906,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
29857
29906
|
value = value[part];
|
|
29858
29907
|
}
|
|
29859
29908
|
} else {
|
|
29860
|
-
isOwn =
|
|
29909
|
+
isOwn = hasOwn2(value, part);
|
|
29861
29910
|
value = value[part];
|
|
29862
29911
|
}
|
|
29863
29912
|
if (isOwn && !skipFurtherCaching) {
|
|
@@ -47204,57 +47253,6 @@ var init_base64 = __esm(() => {
|
|
|
47204
47253
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
47205
47254
|
});
|
|
47206
47255
|
|
|
47207
|
-
// src/lib/url.ts
|
|
47208
|
-
function pathToFunc(pathPattern, options) {
|
|
47209
|
-
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
47210
|
-
return function buildURLPath(params = {}) {
|
|
47211
|
-
return pathPattern.replace(paramRE, function(_, placeholder) {
|
|
47212
|
-
if (!hasOwn.call(params, placeholder)) {
|
|
47213
|
-
throw new Error(`Parameter '${placeholder}' is required`);
|
|
47214
|
-
}
|
|
47215
|
-
const value = params[placeholder];
|
|
47216
|
-
if (typeof value !== "string" && typeof value !== "number") {
|
|
47217
|
-
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
47218
|
-
}
|
|
47219
|
-
return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
|
|
47220
|
-
}).replace(/^\/+/, "");
|
|
47221
|
-
};
|
|
47222
|
-
}
|
|
47223
|
-
var hasOwn;
|
|
47224
|
-
var init_url = __esm(() => {
|
|
47225
|
-
hasOwn = Object.prototype.hasOwnProperty;
|
|
47226
|
-
});
|
|
47227
|
-
|
|
47228
|
-
// src/lib/config.ts
|
|
47229
|
-
function serverURLFromOptions(options) {
|
|
47230
|
-
let serverURL = options.serverURL;
|
|
47231
|
-
const params = {};
|
|
47232
|
-
if (!serverURL) {
|
|
47233
|
-
const serverIdx = options.serverIdx ?? 0;
|
|
47234
|
-
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
47235
|
-
throw new Error(`Invalid server index ${serverIdx}`);
|
|
47236
|
-
}
|
|
47237
|
-
serverURL = ServerList[serverIdx] || "";
|
|
47238
|
-
}
|
|
47239
|
-
const u = pathToFunc(serverURL)(params);
|
|
47240
|
-
return new URL(u);
|
|
47241
|
-
}
|
|
47242
|
-
var ServerList, SDK_METADATA;
|
|
47243
|
-
var init_config = __esm(() => {
|
|
47244
|
-
init_url();
|
|
47245
|
-
ServerList = [
|
|
47246
|
-
"http://localhost:9991/operations",
|
|
47247
|
-
"https://api.botshield.ai/operations"
|
|
47248
|
-
];
|
|
47249
|
-
SDK_METADATA = {
|
|
47250
|
-
language: "typescript",
|
|
47251
|
-
openapiDocVersion: "2.0.0",
|
|
47252
|
-
sdkVersion: "2.2.1",
|
|
47253
|
-
genVersion: "2.934.1",
|
|
47254
|
-
userAgent: "speakeasy-sdk/typescript 2.2.1 2.934.1 2.0.0 botshield-sdk"
|
|
47255
|
-
};
|
|
47256
|
-
});
|
|
47257
|
-
|
|
47258
47256
|
// src/lib/primitives.ts
|
|
47259
47257
|
function remap(inp, mappings) {
|
|
47260
47258
|
let out = {};
|
|
@@ -49027,7 +49025,8 @@ var init_error_body = __esm(() => {
|
|
|
49027
49025
|
bucket: optional3(string4()),
|
|
49028
49026
|
retry_in: optional3(number4()),
|
|
49029
49027
|
limits: optional3(lazyType(() => Limits$inboundSchema)),
|
|
49030
|
-
upgrade_url: optional3(string4())
|
|
49028
|
+
upgrade_url: optional3(string4()),
|
|
49029
|
+
url: optional3(string4())
|
|
49031
49030
|
}).transform((v) => {
|
|
49032
49031
|
return remap(v, {
|
|
49033
49032
|
min_ttl_seconds: "minTtlSeconds",
|
|
@@ -49050,7 +49049,8 @@ var init_error_body = __esm(() => {
|
|
|
49050
49049
|
bucket: stringType().optional(),
|
|
49051
49050
|
retryIn: numberType().int().optional(),
|
|
49052
49051
|
limits: lazyType(() => Limits$outboundSchema).optional(),
|
|
49053
|
-
upgradeUrl: stringType().optional()
|
|
49052
|
+
upgradeUrl: stringType().optional(),
|
|
49053
|
+
url: stringType().optional()
|
|
49054
49054
|
}).transform((v) => {
|
|
49055
49055
|
return remap(v, {
|
|
49056
49056
|
minTtlSeconds: "min_ttl_seconds",
|
|
@@ -49077,6 +49077,72 @@ var init_error_response = __esm(() => {
|
|
|
49077
49077
|
});
|
|
49078
49078
|
});
|
|
49079
49079
|
|
|
49080
|
+
// src/models/gate-human-verified-event.ts
|
|
49081
|
+
var GateHumanVerifiedEventType, Verdict, GateHumanVerifiedEventEnvironment, GateHumanVerifiedEventType$inboundSchema, GateHumanVerifiedEventType$outboundSchema, Verdict$inboundSchema, Verdict$outboundSchema, GateHumanVerifiedEventEnvironment$inboundSchema, GateHumanVerifiedEventEnvironment$outboundSchema, GateHumanVerifiedEvent$inboundSchema, GateHumanVerifiedEvent$outboundSchema;
|
|
49082
|
+
var init_gate_human_verified_event = __esm(() => {
|
|
49083
|
+
init_v3();
|
|
49084
|
+
init_primitives();
|
|
49085
|
+
init_primitives2();
|
|
49086
|
+
GateHumanVerifiedEventType = {
|
|
49087
|
+
GateHumanVerified: "gate.human_verified"
|
|
49088
|
+
};
|
|
49089
|
+
Verdict = {
|
|
49090
|
+
Pass: "pass"
|
|
49091
|
+
};
|
|
49092
|
+
GateHumanVerifiedEventEnvironment = {
|
|
49093
|
+
Development: "development",
|
|
49094
|
+
Production: "production"
|
|
49095
|
+
};
|
|
49096
|
+
GateHumanVerifiedEventType$inboundSchema = nativeEnumType(GateHumanVerifiedEventType);
|
|
49097
|
+
GateHumanVerifiedEventType$outboundSchema = GateHumanVerifiedEventType$inboundSchema;
|
|
49098
|
+
Verdict$inboundSchema = nativeEnumType(Verdict);
|
|
49099
|
+
Verdict$outboundSchema = Verdict$inboundSchema;
|
|
49100
|
+
GateHumanVerifiedEventEnvironment$inboundSchema = nativeEnumType(GateHumanVerifiedEventEnvironment);
|
|
49101
|
+
GateHumanVerifiedEventEnvironment$outboundSchema = GateHumanVerifiedEventEnvironment$inboundSchema;
|
|
49102
|
+
GateHumanVerifiedEvent$inboundSchema = objectType({
|
|
49103
|
+
type: GateHumanVerifiedEventType$inboundSchema,
|
|
49104
|
+
event_id: string4(),
|
|
49105
|
+
request_id: string4(),
|
|
49106
|
+
verified_at: date4(),
|
|
49107
|
+
verdict: Verdict$inboundSchema,
|
|
49108
|
+
trusted: boolean4(),
|
|
49109
|
+
first_time: boolean4(),
|
|
49110
|
+
handle: optional3(string4()),
|
|
49111
|
+
environment: GateHumanVerifiedEventEnvironment$inboundSchema,
|
|
49112
|
+
product: optional3(string4()),
|
|
49113
|
+
act: optional3(string4()),
|
|
49114
|
+
metadata: optional3(recordType(anyType()))
|
|
49115
|
+
}).transform((v) => {
|
|
49116
|
+
return remap(v, {
|
|
49117
|
+
event_id: "eventId",
|
|
49118
|
+
request_id: "requestId",
|
|
49119
|
+
verified_at: "verifiedAt",
|
|
49120
|
+
first_time: "firstTime"
|
|
49121
|
+
});
|
|
49122
|
+
});
|
|
49123
|
+
GateHumanVerifiedEvent$outboundSchema = objectType({
|
|
49124
|
+
type: GateHumanVerifiedEventType$outboundSchema,
|
|
49125
|
+
eventId: stringType(),
|
|
49126
|
+
requestId: stringType(),
|
|
49127
|
+
verifiedAt: dateType().transform((v) => v.toISOString()),
|
|
49128
|
+
verdict: Verdict$outboundSchema,
|
|
49129
|
+
trusted: booleanType(),
|
|
49130
|
+
firstTime: booleanType(),
|
|
49131
|
+
handle: stringType().optional(),
|
|
49132
|
+
environment: GateHumanVerifiedEventEnvironment$outboundSchema,
|
|
49133
|
+
product: stringType().optional(),
|
|
49134
|
+
act: stringType().optional(),
|
|
49135
|
+
metadata: recordType(anyType()).optional()
|
|
49136
|
+
}).transform((v) => {
|
|
49137
|
+
return remap(v, {
|
|
49138
|
+
eventId: "event_id",
|
|
49139
|
+
requestId: "request_id",
|
|
49140
|
+
verifiedAt: "verified_at",
|
|
49141
|
+
firstTime: "first_time"
|
|
49142
|
+
});
|
|
49143
|
+
});
|
|
49144
|
+
});
|
|
49145
|
+
|
|
49080
49146
|
// src/models/gate-schedule.ts
|
|
49081
49147
|
var GateSchedule$inboundSchema, GateSchedule$outboundSchema;
|
|
49082
49148
|
var init_gate_schedule = __esm(() => {
|
|
@@ -49333,6 +49399,92 @@ var init_gates_api_error = __esm(() => {
|
|
|
49333
49399
|
});
|
|
49334
49400
|
});
|
|
49335
49401
|
|
|
49402
|
+
// src/models/inline-passkey-assertion.ts
|
|
49403
|
+
var InlinePasskeyAssertionType, InlinePasskeyAssertionType$inboundSchema, InlinePasskeyAssertionType$outboundSchema, ResponseT$inboundSchema, ResponseT$outboundSchema, InlinePasskeyAssertion$inboundSchema, InlinePasskeyAssertion$outboundSchema;
|
|
49404
|
+
var init_inline_passkey_assertion = __esm(() => {
|
|
49405
|
+
init_v3();
|
|
49406
|
+
init_primitives2();
|
|
49407
|
+
InlinePasskeyAssertionType = {
|
|
49408
|
+
PublicKey: "public-key"
|
|
49409
|
+
};
|
|
49410
|
+
InlinePasskeyAssertionType$inboundSchema = nativeEnumType(InlinePasskeyAssertionType);
|
|
49411
|
+
InlinePasskeyAssertionType$outboundSchema = InlinePasskeyAssertionType$inboundSchema;
|
|
49412
|
+
ResponseT$inboundSchema = objectType({
|
|
49413
|
+
clientDataJSON: string4(),
|
|
49414
|
+
authenticatorData: string4(),
|
|
49415
|
+
signature: string4(),
|
|
49416
|
+
userHandle: optional3(string4())
|
|
49417
|
+
}).catchall(anyType());
|
|
49418
|
+
ResponseT$outboundSchema = objectType({
|
|
49419
|
+
clientDataJSON: stringType(),
|
|
49420
|
+
authenticatorData: stringType(),
|
|
49421
|
+
signature: stringType(),
|
|
49422
|
+
userHandle: stringType().optional()
|
|
49423
|
+
}).catchall(anyType());
|
|
49424
|
+
InlinePasskeyAssertion$inboundSchema = objectType({
|
|
49425
|
+
id: string4(),
|
|
49426
|
+
rawId: string4(),
|
|
49427
|
+
type: InlinePasskeyAssertionType$inboundSchema,
|
|
49428
|
+
authenticatorAttachment: optional3(string4()),
|
|
49429
|
+
clientExtensionResults: optional3(recordType(anyType())),
|
|
49430
|
+
response: lazyType(() => ResponseT$inboundSchema)
|
|
49431
|
+
}).catchall(anyType());
|
|
49432
|
+
InlinePasskeyAssertion$outboundSchema = objectType({
|
|
49433
|
+
id: stringType(),
|
|
49434
|
+
rawId: stringType(),
|
|
49435
|
+
type: InlinePasskeyAssertionType$outboundSchema,
|
|
49436
|
+
authenticatorAttachment: stringType().optional(),
|
|
49437
|
+
clientExtensionResults: recordType(anyType()).optional(),
|
|
49438
|
+
response: lazyType(() => ResponseT$outboundSchema)
|
|
49439
|
+
}).catchall(anyType());
|
|
49440
|
+
});
|
|
49441
|
+
|
|
49442
|
+
// src/models/inline-passkey-request-options.ts
|
|
49443
|
+
var InlinePasskeyRequestOptionsType, UserVerification, InlinePasskeyRequestOptionsType$inboundSchema, InlinePasskeyRequestOptionsType$outboundSchema, AllowCredential$inboundSchema, AllowCredential$outboundSchema, UserVerification$inboundSchema, UserVerification$outboundSchema, InlinePasskeyRequestOptions$inboundSchema, InlinePasskeyRequestOptions$outboundSchema;
|
|
49444
|
+
var init_inline_passkey_request_options = __esm(() => {
|
|
49445
|
+
init_v3();
|
|
49446
|
+
init_enums();
|
|
49447
|
+
init_primitives2();
|
|
49448
|
+
InlinePasskeyRequestOptionsType = {
|
|
49449
|
+
PublicKey: "public-key"
|
|
49450
|
+
};
|
|
49451
|
+
UserVerification = {
|
|
49452
|
+
Required: "required",
|
|
49453
|
+
Preferred: "preferred",
|
|
49454
|
+
Discouraged: "discouraged"
|
|
49455
|
+
};
|
|
49456
|
+
InlinePasskeyRequestOptionsType$inboundSchema = nativeEnumType(InlinePasskeyRequestOptionsType);
|
|
49457
|
+
InlinePasskeyRequestOptionsType$outboundSchema = InlinePasskeyRequestOptionsType$inboundSchema;
|
|
49458
|
+
AllowCredential$inboundSchema = objectType({
|
|
49459
|
+
id: string4(),
|
|
49460
|
+
type: InlinePasskeyRequestOptionsType$inboundSchema,
|
|
49461
|
+
transports: optional3(arrayType(string4()))
|
|
49462
|
+
});
|
|
49463
|
+
AllowCredential$outboundSchema = objectType({
|
|
49464
|
+
id: stringType(),
|
|
49465
|
+
type: InlinePasskeyRequestOptionsType$outboundSchema,
|
|
49466
|
+
transports: arrayType(stringType()).optional()
|
|
49467
|
+
});
|
|
49468
|
+
UserVerification$inboundSchema = inboundSchema(UserVerification);
|
|
49469
|
+
UserVerification$outboundSchema = outboundSchema(UserVerification);
|
|
49470
|
+
InlinePasskeyRequestOptions$inboundSchema = objectType({
|
|
49471
|
+
challenge: string4(),
|
|
49472
|
+
allowCredentials: optional3(arrayType(lazyType(() => AllowCredential$inboundSchema))),
|
|
49473
|
+
timeout: optional3(number4()),
|
|
49474
|
+
userVerification: optional3(UserVerification$inboundSchema),
|
|
49475
|
+
rpId: optional3(string4()),
|
|
49476
|
+
extensions: optional3(recordType(anyType()))
|
|
49477
|
+
}).catchall(anyType());
|
|
49478
|
+
InlinePasskeyRequestOptions$outboundSchema = objectType({
|
|
49479
|
+
challenge: stringType(),
|
|
49480
|
+
allowCredentials: arrayType(lazyType(() => AllowCredential$outboundSchema)).optional(),
|
|
49481
|
+
timeout: numberType().int().optional(),
|
|
49482
|
+
userVerification: UserVerification$outboundSchema.optional(),
|
|
49483
|
+
rpId: stringType().optional(),
|
|
49484
|
+
extensions: recordType(anyType()).optional()
|
|
49485
|
+
}).catchall(anyType());
|
|
49486
|
+
});
|
|
49487
|
+
|
|
49336
49488
|
// src/models/invalid-input-error.ts
|
|
49337
49489
|
var InvalidInputErrorError$inboundSchema, InvalidInputErrorError$outboundSchema;
|
|
49338
49490
|
var init_invalid_input_error = __esm(() => {
|
|
@@ -49370,10 +49522,13 @@ var init_models = __esm(() => {
|
|
|
49370
49522
|
init_bot_shield_action();
|
|
49371
49523
|
init_error_body();
|
|
49372
49524
|
init_error_response();
|
|
49525
|
+
init_gate_human_verified_event();
|
|
49373
49526
|
init_gate_policy_doc();
|
|
49374
49527
|
init_gate_schedule();
|
|
49375
49528
|
init_gate();
|
|
49376
49529
|
init_gates_api_error();
|
|
49530
|
+
init_inline_passkey_assertion();
|
|
49531
|
+
init_inline_passkey_request_options();
|
|
49377
49532
|
init_invalid_input_error();
|
|
49378
49533
|
init_passes_per_person();
|
|
49379
49534
|
init_security2();
|
|
@@ -50517,6 +50672,162 @@ var init_gates_api_list = __esm(() => {
|
|
|
50517
50672
|
});
|
|
50518
50673
|
});
|
|
50519
50674
|
|
|
50675
|
+
// src/models/operations/request-passkey-complete.ts
|
|
50676
|
+
var RequestPasskeyCompleteOutcome, RequestPasskeyCompleteRequest$inboundSchema, RequestPasskeyCompleteRequest$outboundSchema, RequestPasskeyCompleteOutcome$inboundSchema, RequestPasskeyCompleteOutcome$outboundSchema, RequestPasskeyCompleteDataData$inboundSchema, RequestPasskeyCompleteDataData$outboundSchema, RequestPasskeyCompleteData$inboundSchema, RequestPasskeyCompleteData$outboundSchema, RequestPasskeyCompleteResponse$inboundSchema, RequestPasskeyCompleteResponse$outboundSchema;
|
|
50677
|
+
var init_request_passkey_complete = __esm(() => {
|
|
50678
|
+
init_v3();
|
|
50679
|
+
init_primitives();
|
|
50680
|
+
init_enums();
|
|
50681
|
+
init_primitives2();
|
|
50682
|
+
init_models();
|
|
50683
|
+
RequestPasskeyCompleteOutcome = {
|
|
50684
|
+
Verified: "verified",
|
|
50685
|
+
WrongIdentity: "wrong_identity",
|
|
50686
|
+
Expired: "expired",
|
|
50687
|
+
Failed: "failed"
|
|
50688
|
+
};
|
|
50689
|
+
RequestPasskeyCompleteRequest$inboundSchema = objectType({
|
|
50690
|
+
request_id: string4(),
|
|
50691
|
+
challenge_id: string4(),
|
|
50692
|
+
response: InlinePasskeyAssertion$inboundSchema
|
|
50693
|
+
}).transform((v) => {
|
|
50694
|
+
return remap(v, {
|
|
50695
|
+
request_id: "requestId",
|
|
50696
|
+
challenge_id: "challengeId"
|
|
50697
|
+
});
|
|
50698
|
+
});
|
|
50699
|
+
RequestPasskeyCompleteRequest$outboundSchema = objectType({
|
|
50700
|
+
requestId: stringType(),
|
|
50701
|
+
challengeId: stringType(),
|
|
50702
|
+
response: InlinePasskeyAssertion$outboundSchema
|
|
50703
|
+
}).transform((v) => {
|
|
50704
|
+
return remap(v, {
|
|
50705
|
+
requestId: "request_id",
|
|
50706
|
+
challengeId: "challenge_id"
|
|
50707
|
+
});
|
|
50708
|
+
});
|
|
50709
|
+
RequestPasskeyCompleteOutcome$inboundSchema = inboundSchema(RequestPasskeyCompleteOutcome);
|
|
50710
|
+
RequestPasskeyCompleteOutcome$outboundSchema = outboundSchema(RequestPasskeyCompleteOutcome);
|
|
50711
|
+
RequestPasskeyCompleteDataData$inboundSchema = objectType({
|
|
50712
|
+
outcome: RequestPasskeyCompleteOutcome$inboundSchema,
|
|
50713
|
+
code: optional3(string4())
|
|
50714
|
+
});
|
|
50715
|
+
RequestPasskeyCompleteDataData$outboundSchema = objectType({
|
|
50716
|
+
outcome: RequestPasskeyCompleteOutcome$outboundSchema,
|
|
50717
|
+
code: stringType().optional()
|
|
50718
|
+
});
|
|
50719
|
+
RequestPasskeyCompleteData$inboundSchema = objectType({
|
|
50720
|
+
data: optional3(lazyType(() => RequestPasskeyCompleteDataData$inboundSchema)),
|
|
50721
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
50722
|
+
});
|
|
50723
|
+
RequestPasskeyCompleteData$outboundSchema = objectType({
|
|
50724
|
+
data: lazyType(() => RequestPasskeyCompleteDataData$outboundSchema).optional(),
|
|
50725
|
+
error: ErrorBody$outboundSchema.optional()
|
|
50726
|
+
});
|
|
50727
|
+
RequestPasskeyCompleteResponse$inboundSchema = objectType({
|
|
50728
|
+
data: lazyType(() => RequestPasskeyCompleteData$inboundSchema)
|
|
50729
|
+
});
|
|
50730
|
+
RequestPasskeyCompleteResponse$outboundSchema = objectType({
|
|
50731
|
+
data: lazyType(() => RequestPasskeyCompleteData$outboundSchema)
|
|
50732
|
+
});
|
|
50733
|
+
});
|
|
50734
|
+
|
|
50735
|
+
// src/models/operations/request-passkey-options.ts
|
|
50736
|
+
var Fallback, RequestPasskeyOptionsReason, RequestPasskeyOptionsOutcome, Code, RequestPasskeyOptionsRequest$inboundSchema, RequestPasskeyOptionsRequest$outboundSchema, Fallback$inboundSchema, Fallback$outboundSchema, RequestPasskeyOptionsReason$inboundSchema, RequestPasskeyOptionsReason$outboundSchema, RequestPasskeyOptionsOutcome$inboundSchema, RequestPasskeyOptionsOutcome$outboundSchema, Code$inboundSchema, Code$outboundSchema, DataApp$inboundSchema, DataApp$outboundSchema, RequestPasskeyOptionsData$inboundSchema, RequestPasskeyOptionsData$outboundSchema, RequestPasskeyOptionsResponse$inboundSchema, RequestPasskeyOptionsResponse$outboundSchema;
|
|
50737
|
+
var init_request_passkey_options = __esm(() => {
|
|
50738
|
+
init_v3();
|
|
50739
|
+
init_primitives();
|
|
50740
|
+
init_enums();
|
|
50741
|
+
init_primitives2();
|
|
50742
|
+
init_models();
|
|
50743
|
+
Fallback = {
|
|
50744
|
+
App: "app"
|
|
50745
|
+
};
|
|
50746
|
+
RequestPasskeyOptionsReason = {
|
|
50747
|
+
NotLinked: "not_linked",
|
|
50748
|
+
NoPasskey: "no_passkey"
|
|
50749
|
+
};
|
|
50750
|
+
RequestPasskeyOptionsOutcome = {
|
|
50751
|
+
Expired: "expired",
|
|
50752
|
+
Failed: "failed"
|
|
50753
|
+
};
|
|
50754
|
+
Code = {
|
|
50755
|
+
UnknownRequest: "unknown_request",
|
|
50756
|
+
RequestClosed: "request_closed",
|
|
50757
|
+
RequestExpired: "request_expired"
|
|
50758
|
+
};
|
|
50759
|
+
RequestPasskeyOptionsRequest$inboundSchema = objectType({
|
|
50760
|
+
request_id: string4()
|
|
50761
|
+
}).transform((v) => {
|
|
50762
|
+
return remap(v, {
|
|
50763
|
+
request_id: "requestId"
|
|
50764
|
+
});
|
|
50765
|
+
});
|
|
50766
|
+
RequestPasskeyOptionsRequest$outboundSchema = objectType({
|
|
50767
|
+
requestId: stringType()
|
|
50768
|
+
}).transform((v) => {
|
|
50769
|
+
return remap(v, {
|
|
50770
|
+
requestId: "request_id"
|
|
50771
|
+
});
|
|
50772
|
+
});
|
|
50773
|
+
Fallback$inboundSchema = nativeEnumType(Fallback);
|
|
50774
|
+
Fallback$outboundSchema = Fallback$inboundSchema;
|
|
50775
|
+
RequestPasskeyOptionsReason$inboundSchema = inboundSchema(RequestPasskeyOptionsReason);
|
|
50776
|
+
RequestPasskeyOptionsReason$outboundSchema = outboundSchema(RequestPasskeyOptionsReason);
|
|
50777
|
+
RequestPasskeyOptionsOutcome$inboundSchema = inboundSchema(RequestPasskeyOptionsOutcome);
|
|
50778
|
+
RequestPasskeyOptionsOutcome$outboundSchema = outboundSchema(RequestPasskeyOptionsOutcome);
|
|
50779
|
+
Code$inboundSchema = inboundSchema(Code);
|
|
50780
|
+
Code$outboundSchema = outboundSchema(Code);
|
|
50781
|
+
DataApp$inboundSchema = objectType({
|
|
50782
|
+
options: optional3(InlinePasskeyRequestOptions$inboundSchema),
|
|
50783
|
+
challenge_id: optional3(string4()),
|
|
50784
|
+
expires_at: optional3(date4()),
|
|
50785
|
+
fallback: optional3(Fallback$inboundSchema),
|
|
50786
|
+
reason: optional3(RequestPasskeyOptionsReason$inboundSchema),
|
|
50787
|
+
url: optional3(string4()),
|
|
50788
|
+
setup_url: optional3(string4()),
|
|
50789
|
+
outcome: optional3(RequestPasskeyOptionsOutcome$inboundSchema),
|
|
50790
|
+
code: optional3(Code$inboundSchema)
|
|
50791
|
+
}).transform((v) => {
|
|
50792
|
+
return remap(v, {
|
|
50793
|
+
challenge_id: "challengeId",
|
|
50794
|
+
expires_at: "expiresAt",
|
|
50795
|
+
setup_url: "setupUrl"
|
|
50796
|
+
});
|
|
50797
|
+
});
|
|
50798
|
+
DataApp$outboundSchema = objectType({
|
|
50799
|
+
options: InlinePasskeyRequestOptions$outboundSchema.optional(),
|
|
50800
|
+
challengeId: stringType().optional(),
|
|
50801
|
+
expiresAt: dateType().transform((v) => v.toISOString()).optional(),
|
|
50802
|
+
fallback: Fallback$outboundSchema.optional(),
|
|
50803
|
+
reason: RequestPasskeyOptionsReason$outboundSchema.optional(),
|
|
50804
|
+
url: stringType().optional(),
|
|
50805
|
+
setupUrl: stringType().optional(),
|
|
50806
|
+
outcome: RequestPasskeyOptionsOutcome$outboundSchema.optional(),
|
|
50807
|
+
code: Code$outboundSchema.optional()
|
|
50808
|
+
}).transform((v) => {
|
|
50809
|
+
return remap(v, {
|
|
50810
|
+
challengeId: "challenge_id",
|
|
50811
|
+
expiresAt: "expires_at",
|
|
50812
|
+
setupUrl: "setup_url"
|
|
50813
|
+
});
|
|
50814
|
+
});
|
|
50815
|
+
RequestPasskeyOptionsData$inboundSchema = objectType({
|
|
50816
|
+
data: optional3(lazyType(() => DataApp$inboundSchema)),
|
|
50817
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
50818
|
+
});
|
|
50819
|
+
RequestPasskeyOptionsData$outboundSchema = objectType({
|
|
50820
|
+
data: lazyType(() => DataApp$outboundSchema).optional(),
|
|
50821
|
+
error: ErrorBody$outboundSchema.optional()
|
|
50822
|
+
});
|
|
50823
|
+
RequestPasskeyOptionsResponse$inboundSchema = objectType({
|
|
50824
|
+
data: lazyType(() => RequestPasskeyOptionsData$inboundSchema)
|
|
50825
|
+
});
|
|
50826
|
+
RequestPasskeyOptionsResponse$outboundSchema = objectType({
|
|
50827
|
+
data: lazyType(() => RequestPasskeyOptionsData$outboundSchema)
|
|
50828
|
+
});
|
|
50829
|
+
});
|
|
50830
|
+
|
|
50520
50831
|
// src/models/operations/sdk-create-session.ts
|
|
50521
50832
|
var SDKCreateSessionEnvironment, SDKCreateSessionNotarizeFallbackReason, SDKCreateSessionSecurity$inboundSchema, SDKCreateSessionSecurity$outboundSchema, SDKCreateSessionRequest$inboundSchema, SDKCreateSessionRequest$outboundSchema, SDKCreateSessionEnvironment$inboundSchema, SDKCreateSessionEnvironment$outboundSchema, SDKCreateSessionOrganization$inboundSchema, SDKCreateSessionOrganization$outboundSchema, SDKCreateSessionNotarizeFallbackReason$inboundSchema, SDKCreateSessionNotarizeFallbackReason$outboundSchema, DataNotarizeRequiresUserRef$inboundSchema, DataNotarizeRequiresUserRef$outboundSchema, SDKCreateSessionData$inboundSchema, SDKCreateSessionData$outboundSchema, SDKCreateSessionResponse$inboundSchema, SDKCreateSessionResponse$outboundSchema;
|
|
50522
50833
|
var init_sdk_create_session = __esm(() => {
|
|
@@ -51680,7 +51991,7 @@ var init_secured_accounts_status = __esm(() => {
|
|
|
51680
51991
|
});
|
|
51681
51992
|
|
|
51682
51993
|
// src/models/operations/verification-get-status.ts
|
|
51683
|
-
var VerificationGetStatusStatus, VerificationGetStatusSDKType,
|
|
51994
|
+
var VerificationGetStatusStatus, VerificationGetStatusSDKType, VerificationGetStatusPreset, Link, VerificationGetStatusState, VerificationGetStatusGateType, VerificationGetStatusSecurity$inboundSchema, VerificationGetStatusSecurity$outboundSchema, VerificationGetStatusRequest$inboundSchema, VerificationGetStatusRequest$outboundSchema, VerificationGetStatusStatus$inboundSchema, VerificationGetStatusStatus$outboundSchema, VerificationGetStatusSDKType$inboundSchema, VerificationGetStatusSDKType$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, VerificationGetStatusPreset$inboundSchema, VerificationGetStatusPreset$outboundSchema, Link$inboundSchema, Link$outboundSchema, VerificationGetStatusState$inboundSchema, VerificationGetStatusState$outboundSchema, Gate$inboundSchema2, Gate$outboundSchema2, VerificationGetStatusAction$inboundSchema, VerificationGetStatusAction$outboundSchema, VerificationGetStatusGateType$inboundSchema, VerificationGetStatusGateType$outboundSchema, VerificationGetStatusData$inboundSchema, VerificationGetStatusData$outboundSchema, VerificationGetStatusResponse$inboundSchema, VerificationGetStatusResponse$outboundSchema;
|
|
51684
51995
|
var init_verification_get_status = __esm(() => {
|
|
51685
51996
|
init_v3();
|
|
51686
51997
|
init_primitives();
|
|
@@ -51700,13 +52011,6 @@ var init_verification_get_status = __esm(() => {
|
|
|
51700
52011
|
Signal: "signal",
|
|
51701
52012
|
Presence: "presence"
|
|
51702
52013
|
};
|
|
51703
|
-
VerificationGetStatusReason = {
|
|
51704
|
-
AlreadyTrusted: "already_trusted",
|
|
51705
|
-
RebindRequiresPriorId: "rebind_requires_prior_id",
|
|
51706
|
-
PassLimitReached: "pass_limit_reached",
|
|
51707
|
-
RealDaysNotMet: "real_days_not_met",
|
|
51708
|
-
Unavailable: "unavailable"
|
|
51709
|
-
};
|
|
51710
52014
|
VerificationGetStatusPreset = {
|
|
51711
52015
|
Presale: "presale",
|
|
51712
52016
|
Promo: "promo",
|
|
@@ -51725,6 +52029,10 @@ var init_verification_get_status = __esm(() => {
|
|
|
51725
52029
|
Open: "open",
|
|
51726
52030
|
Closed: "closed"
|
|
51727
52031
|
};
|
|
52032
|
+
VerificationGetStatusGateType = {
|
|
52033
|
+
Human: "human",
|
|
52034
|
+
Age: "age"
|
|
52035
|
+
};
|
|
51728
52036
|
VerificationGetStatusSecurity$inboundSchema = objectType({
|
|
51729
52037
|
apiKeyAuth: optional3(string4()),
|
|
51730
52038
|
apiKeyAuth1: optional3(string4())
|
|
@@ -51777,8 +52085,6 @@ var init_verification_get_status = __esm(() => {
|
|
|
51777
52085
|
parentRequestId: "parent_request_id"
|
|
51778
52086
|
});
|
|
51779
52087
|
});
|
|
51780
|
-
VerificationGetStatusReason$inboundSchema = inboundSchema(VerificationGetStatusReason);
|
|
51781
|
-
VerificationGetStatusReason$outboundSchema = outboundSchema(VerificationGetStatusReason);
|
|
51782
52088
|
VerificationGetStatusPreset$inboundSchema = inboundSchema(VerificationGetStatusPreset);
|
|
51783
52089
|
VerificationGetStatusPreset$outboundSchema = outboundSchema(VerificationGetStatusPreset);
|
|
51784
52090
|
Link$inboundSchema = inboundSchema(Link);
|
|
@@ -51851,6 +52157,8 @@ var init_verification_get_status = __esm(() => {
|
|
|
51851
52157
|
label: nullableType(stringType()),
|
|
51852
52158
|
linked: nullableType(booleanType())
|
|
51853
52159
|
});
|
|
52160
|
+
VerificationGetStatusGateType$inboundSchema = inboundSchema(VerificationGetStatusGateType);
|
|
52161
|
+
VerificationGetStatusGateType$outboundSchema = outboundSchema(VerificationGetStatusGateType);
|
|
51854
52162
|
VerificationGetStatusData$inboundSchema = objectType({
|
|
51855
52163
|
found: optional3(boolean4()),
|
|
51856
52164
|
status: optional3(VerificationGetStatusStatus$inboundSchema),
|
|
@@ -51868,13 +52176,19 @@ var init_verification_get_status = __esm(() => {
|
|
|
51868
52176
|
metadata: nullableType(lazyType(() => Metadata$inboundSchema)).optional(),
|
|
51869
52177
|
message: optional3(string4()),
|
|
51870
52178
|
error: optional3(ErrorBody$inboundSchema),
|
|
51871
|
-
reason: nullableType(
|
|
52179
|
+
reason: nullableType(string4()).optional(),
|
|
51872
52180
|
trusted: nullableType(boolean4()).optional(),
|
|
51873
52181
|
first_time: nullableType(boolean4()).optional(),
|
|
51874
52182
|
notarize: optional3(boolean4()),
|
|
51875
52183
|
organization_name: nullableType(string4()).optional(),
|
|
51876
52184
|
gate: nullableType(lazyType(() => Gate$inboundSchema2)).optional(),
|
|
51877
|
-
action: nullableType(lazyType(() => VerificationGetStatusAction$inboundSchema)).optional()
|
|
52185
|
+
action: nullableType(lazyType(() => VerificationGetStatusAction$inboundSchema)).optional(),
|
|
52186
|
+
organization_mark_url: nullableType(string4()).optional(),
|
|
52187
|
+
match_number: nullableType(number4()).optional(),
|
|
52188
|
+
gate_type: optional3(VerificationGetStatusGateType$inboundSchema),
|
|
52189
|
+
age_threshold: nullableType(number4()).optional(),
|
|
52190
|
+
age_verdict: nullableType(string4()).optional(),
|
|
52191
|
+
age_source: nullableType(string4()).optional()
|
|
51878
52192
|
}).transform((v) => {
|
|
51879
52193
|
return remap(v, {
|
|
51880
52194
|
request_id: "requestId",
|
|
@@ -51888,7 +52202,13 @@ var init_verification_get_status = __esm(() => {
|
|
|
51888
52202
|
sdk_type: "sdkType",
|
|
51889
52203
|
presence_address: "presenceAddress",
|
|
51890
52204
|
first_time: "firstTime",
|
|
51891
|
-
organization_name: "organizationName"
|
|
52205
|
+
organization_name: "organizationName",
|
|
52206
|
+
organization_mark_url: "organizationMarkUrl",
|
|
52207
|
+
match_number: "matchNumber",
|
|
52208
|
+
gate_type: "gateType",
|
|
52209
|
+
age_threshold: "ageThreshold",
|
|
52210
|
+
age_verdict: "ageVerdict",
|
|
52211
|
+
age_source: "ageSource"
|
|
51892
52212
|
});
|
|
51893
52213
|
});
|
|
51894
52214
|
VerificationGetStatusData$outboundSchema = objectType({
|
|
@@ -51908,13 +52228,19 @@ var init_verification_get_status = __esm(() => {
|
|
|
51908
52228
|
metadata: nullableType(lazyType(() => Metadata$outboundSchema)).optional(),
|
|
51909
52229
|
message: stringType().optional(),
|
|
51910
52230
|
error: ErrorBody$outboundSchema.optional(),
|
|
51911
|
-
reason: nullableType(
|
|
52231
|
+
reason: nullableType(stringType()).optional(),
|
|
51912
52232
|
trusted: nullableType(booleanType()).optional(),
|
|
51913
52233
|
firstTime: nullableType(booleanType()).optional(),
|
|
51914
52234
|
notarize: booleanType().optional(),
|
|
51915
52235
|
organizationName: nullableType(stringType()).optional(),
|
|
51916
52236
|
gate: nullableType(lazyType(() => Gate$outboundSchema2)).optional(),
|
|
51917
|
-
action: nullableType(lazyType(() => VerificationGetStatusAction$outboundSchema)).optional()
|
|
52237
|
+
action: nullableType(lazyType(() => VerificationGetStatusAction$outboundSchema)).optional(),
|
|
52238
|
+
organizationMarkUrl: nullableType(stringType()).optional(),
|
|
52239
|
+
matchNumber: nullableType(numberType().int()).optional(),
|
|
52240
|
+
gateType: VerificationGetStatusGateType$outboundSchema.optional(),
|
|
52241
|
+
ageThreshold: nullableType(numberType().int()).optional(),
|
|
52242
|
+
ageVerdict: nullableType(stringType()).optional(),
|
|
52243
|
+
ageSource: nullableType(stringType()).optional()
|
|
51918
52244
|
}).transform((v) => {
|
|
51919
52245
|
return remap(v, {
|
|
51920
52246
|
requestId: "request_id",
|
|
@@ -51928,7 +52254,13 @@ var init_verification_get_status = __esm(() => {
|
|
|
51928
52254
|
sdkType: "sdk_type",
|
|
51929
52255
|
presenceAddress: "presence_address",
|
|
51930
52256
|
firstTime: "first_time",
|
|
51931
|
-
organizationName: "organization_name"
|
|
52257
|
+
organizationName: "organization_name",
|
|
52258
|
+
organizationMarkUrl: "organization_mark_url",
|
|
52259
|
+
matchNumber: "match_number",
|
|
52260
|
+
gateType: "gate_type",
|
|
52261
|
+
ageThreshold: "age_threshold",
|
|
52262
|
+
ageVerdict: "age_verdict",
|
|
52263
|
+
ageSource: "age_source"
|
|
51932
52264
|
});
|
|
51933
52265
|
});
|
|
51934
52266
|
VerificationGetStatusResponse$inboundSchema = objectType({
|
|
@@ -51956,6 +52288,8 @@ var init_operations = __esm(() => {
|
|
|
51956
52288
|
init_gates_api_extend();
|
|
51957
52289
|
init_gates_api_get();
|
|
51958
52290
|
init_gates_api_list();
|
|
52291
|
+
init_request_passkey_complete();
|
|
52292
|
+
init_request_passkey_options();
|
|
51959
52293
|
init_sdk_create_session();
|
|
51960
52294
|
init_sdk_create_verification_link();
|
|
51961
52295
|
init_sdk_get_partner_config();
|
|
@@ -52313,12 +52647,12 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
52313
52647
|
function createMCPServer(deps) {
|
|
52314
52648
|
const server = new McpServer({
|
|
52315
52649
|
name: "BotShield",
|
|
52316
|
-
version: "2.
|
|
52650
|
+
version: "2.3.0"
|
|
52317
52651
|
});
|
|
52318
52652
|
const client = new BotShieldCore({
|
|
52319
52653
|
security: deps.security,
|
|
52320
52654
|
serverURL: deps.serverURL,
|
|
52321
|
-
|
|
52655
|
+
server: deps.server
|
|
52322
52656
|
});
|
|
52323
52657
|
const scopes = new Set(deps.scopes);
|
|
52324
52658
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
@@ -52374,7 +52708,7 @@ async function startStdio(flags) {
|
|
|
52374
52708
|
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
52375
52709
|
},
|
|
52376
52710
|
serverURL: flags["server-url"],
|
|
52377
|
-
|
|
52711
|
+
server: flags.server
|
|
52378
52712
|
});
|
|
52379
52713
|
await server.connect(transport);
|
|
52380
52714
|
const abort = async () => {
|
|
@@ -52396,7 +52730,7 @@ async function startSSE(flags) {
|
|
|
52396
52730
|
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
52397
52731
|
},
|
|
52398
52732
|
serverURL: flags["server-url"],
|
|
52399
|
-
|
|
52733
|
+
server: flags.server
|
|
52400
52734
|
});
|
|
52401
52735
|
let transport;
|
|
52402
52736
|
const controller = new AbortController;
|
|
@@ -54511,6 +54845,7 @@ function buildContext(process2) {
|
|
|
54511
54845
|
|
|
54512
54846
|
// src/mcp-server/cli/start/command.ts
|
|
54513
54847
|
init_v3();
|
|
54848
|
+
init_config();
|
|
54514
54849
|
init_console_logger();
|
|
54515
54850
|
|
|
54516
54851
|
// src/mcp-server/scopes.ts
|
|
@@ -54576,11 +54911,11 @@ var startCommand = buildCommand({
|
|
|
54576
54911
|
optional: true,
|
|
54577
54912
|
parse: (value) => new URL(value).toString()
|
|
54578
54913
|
},
|
|
54579
|
-
|
|
54580
|
-
kind: "
|
|
54914
|
+
server: {
|
|
54915
|
+
kind: "enum",
|
|
54581
54916
|
brief: "Selects a predefined server used by the SDK",
|
|
54582
54917
|
optional: true,
|
|
54583
|
-
|
|
54918
|
+
values: Object.keys(ServerList)
|
|
54584
54919
|
},
|
|
54585
54920
|
"log-level": {
|
|
54586
54921
|
kind: "enum",
|
|
@@ -54629,7 +54964,7 @@ var routes = buildRouteMap({
|
|
|
54629
54964
|
var app = buildApplication(routes, {
|
|
54630
54965
|
name: "mcp",
|
|
54631
54966
|
versionInfo: {
|
|
54632
|
-
currentVersion: "2.
|
|
54967
|
+
currentVersion: "2.3.0"
|
|
54633
54968
|
}
|
|
54634
54969
|
});
|
|
54635
54970
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -54637,5 +54972,5 @@ export {
|
|
|
54637
54972
|
app
|
|
54638
54973
|
};
|
|
54639
54974
|
|
|
54640
|
-
//# debugId=
|
|
54975
|
+
//# debugId=C57611CDCE598E2464756E2164756E21
|
|
54641
54976
|
//# sourceMappingURL=mcp-server.js.map
|