botshield-sdk 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/bin/mcp-server.js +433 -68
- package/bin/mcp-server.js.map +22 -18
- package/dist/commonjs/funcs/actions-propose-action.d.ts +1 -1
- package/dist/commonjs/funcs/actions-propose-action.js +1 -1
- package/dist/commonjs/funcs/census-get-partner-config.d.ts +18 -0
- package/dist/commonjs/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-get-partner-config.js +134 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -0
- package/dist/commonjs/funcs/census-verify-token.js +0 -12
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js +126 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.js +129 -0
- package/dist/commonjs/funcs/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js +123 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.js +0 -12
- 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 +0 -14
- 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 +0 -16
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -4
- 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.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +5 -5
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.js +6 -6
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +148 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +197 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +0 -4
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +0 -4
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js +254 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js +185 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js +163 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +0 -4
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +0 -4
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +0 -4
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +0 -4
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/actions.d.ts +1 -1
- package/dist/commonjs/sdk/actions.js +1 -1
- package/dist/commonjs/sdk/census.d.ts +7 -0
- package/dist/commonjs/sdk/census.d.ts.map +1 -1
- package/dist/commonjs/sdk/census.js +10 -0
- package/dist/commonjs/sdk/census.js.map +1 -1
- 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/commonjs/sdk/secured-accounts.d.ts +26 -0
- package/dist/commonjs/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/commonjs/sdk/secured-accounts.js +42 -0
- package/dist/commonjs/sdk/secured-accounts.js.map +1 -0
- package/dist/esm/funcs/actions-propose-action.d.ts +1 -1
- package/dist/esm/funcs/actions-propose-action.js +1 -1
- package/dist/esm/funcs/census-get-partner-config.d.ts +18 -0
- package/dist/esm/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/esm/funcs/census-get-partner-config.js +98 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -0
- package/dist/esm/funcs/census-verify-token.js +0 -12
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-get-status.js +90 -0
- package/dist/esm/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.js +93 -0
- package/dist/esm/funcs/secured-accounts-list.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.js +87 -0
- package/dist/esm/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.js +0 -12
- 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 +0 -14
- 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 +0 -16
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -4
- 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.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.d.ts +5 -5
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.js +5 -5
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +148 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js +149 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts +0 -4
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +0 -4
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/esm/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-list.js +206 -0
- package/dist/esm/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js +139 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.js +117 -0
- package/dist/esm/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +0 -4
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +0 -4
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +0 -4
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +0 -4
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/actions.d.ts +1 -1
- package/dist/esm/sdk/actions.js +1 -1
- package/dist/esm/sdk/census.d.ts +7 -0
- package/dist/esm/sdk/census.d.ts.map +1 -1
- package/dist/esm/sdk/census.js +10 -0
- package/dist/esm/sdk/census.js.map +1 -1
- 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/dist/esm/sdk/secured-accounts.d.ts +26 -0
- package/dist/esm/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/esm/sdk/secured-accounts.js +38 -0
- package/dist/esm/sdk/secured-accounts.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-propose-action.ts +1 -1
- package/src/funcs/census-get-partner-config.ts +198 -0
- package/src/funcs/census-verify-token.ts +0 -14
- package/src/funcs/secured-accounts-get-status.ts +189 -0
- package/src/funcs/secured-accounts-list.ts +194 -0
- package/src/funcs/secured-accounts-revoke.ts +185 -0
- package/src/funcs/verification-get-status.ts +0 -14
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -14
- package/src/mcp-server/cli/start/command.ts +0 -16
- package/src/mcp-server/cli/start/impl.ts +0 -6
- 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 +1 -1
- package/src/mcp-server/tools/actions-check-action-status.ts +1 -1
- package/src/mcp-server/tools/actions-propose-action.ts +1 -1
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/sdk-create-session.ts +13 -11
- package/src/models/operations/sdk-get-partner-config.ts +385 -0
- package/src/models/operations/sdk-verify-token.ts +0 -8
- package/src/models/operations/secured-accounts-list.ts +507 -0
- package/src/models/operations/secured-accounts-revoke.ts +359 -0
- package/src/models/operations/secured-accounts-status.ts +296 -0
- package/src/models/operations/verification-get-status.ts +0 -8
- package/src/models/security.ts +0 -8
- package/src/sdk/actions.ts +1 -1
- package/src/sdk/census.ts +20 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/secured-accounts.ts +69 -0
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.
|
|
47252
|
+
sdkVersion: "2.2.0",
|
|
47253
47253
|
genVersion: "2.934.1",
|
|
47254
|
-
userAgent: "speakeasy-sdk/typescript 2.
|
|
47254
|
+
userAgent: "speakeasy-sdk/typescript 2.2.0 2.934.1 2.0.0 botshield-sdk"
|
|
47255
47255
|
};
|
|
47256
47256
|
});
|
|
47257
47257
|
|
|
@@ -48747,20 +48747,6 @@ 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
48750
|
]
|
|
48765
48751
|
];
|
|
48766
48752
|
if (allowedFields) {
|
|
@@ -48913,6 +48899,13 @@ function optional3(t) {
|
|
|
48913
48899
|
t
|
|
48914
48900
|
]).optional();
|
|
48915
48901
|
}
|
|
48902
|
+
function nullable3(t) {
|
|
48903
|
+
return unionType([
|
|
48904
|
+
nullType(),
|
|
48905
|
+
undefinedType().transform(() => defaultToZeroValue(null)),
|
|
48906
|
+
t
|
|
48907
|
+
]);
|
|
48908
|
+
}
|
|
48916
48909
|
function zodDefaultToZeroValue(value) {
|
|
48917
48910
|
return anyType().transform((input, ctx) => {
|
|
48918
48911
|
if (input === undefined)
|
|
@@ -49053,15 +49046,11 @@ var init_security2 = __esm(() => {
|
|
|
49053
49046
|
init_primitives2();
|
|
49054
49047
|
Security$inboundSchema = objectType({
|
|
49055
49048
|
agentKeyAuth: optional3(string4()),
|
|
49056
|
-
agentKeyAuth1: optional3(string4())
|
|
49057
|
-
agentKeyAuth2: optional3(string4()),
|
|
49058
|
-
agentKeyAuth3: optional3(string4())
|
|
49049
|
+
agentKeyAuth1: optional3(string4())
|
|
49059
49050
|
});
|
|
49060
49051
|
Security$outboundSchema = objectType({
|
|
49061
49052
|
agentKeyAuth: stringType().optional(),
|
|
49062
|
-
agentKeyAuth1: stringType().optional()
|
|
49063
|
-
agentKeyAuth2: stringType().optional(),
|
|
49064
|
-
agentKeyAuth3: stringType().optional()
|
|
49053
|
+
agentKeyAuth1: stringType().optional()
|
|
49065
49054
|
});
|
|
49066
49055
|
});
|
|
49067
49056
|
|
|
@@ -49451,14 +49440,14 @@ var init_actions_propose = __esm(() => {
|
|
|
49451
49440
|
});
|
|
49452
49441
|
|
|
49453
49442
|
// src/models/operations/sdk-create-session.ts
|
|
49454
|
-
var
|
|
49443
|
+
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;
|
|
49455
49444
|
var init_sdk_create_session = __esm(() => {
|
|
49456
49445
|
init_v3();
|
|
49457
49446
|
init_primitives();
|
|
49458
49447
|
init_enums();
|
|
49459
49448
|
init_primitives2();
|
|
49460
49449
|
init_models();
|
|
49461
|
-
|
|
49450
|
+
SDKCreateSessionEnvironment = {
|
|
49462
49451
|
Development: "development",
|
|
49463
49452
|
Production: "production"
|
|
49464
49453
|
};
|
|
@@ -49497,15 +49486,15 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49497
49486
|
partnerUserId: "partner_user_id"
|
|
49498
49487
|
});
|
|
49499
49488
|
});
|
|
49500
|
-
|
|
49501
|
-
|
|
49489
|
+
SDKCreateSessionEnvironment$inboundSchema = inboundSchema(SDKCreateSessionEnvironment);
|
|
49490
|
+
SDKCreateSessionEnvironment$outboundSchema = outboundSchema(SDKCreateSessionEnvironment);
|
|
49502
49491
|
SDKCreateSessionOrganization$inboundSchema = objectType({
|
|
49503
49492
|
id: string4(),
|
|
49504
|
-
environment:
|
|
49493
|
+
environment: SDKCreateSessionEnvironment$inboundSchema
|
|
49505
49494
|
});
|
|
49506
49495
|
SDKCreateSessionOrganization$outboundSchema = objectType({
|
|
49507
49496
|
id: stringType(),
|
|
49508
|
-
environment:
|
|
49497
|
+
environment: SDKCreateSessionEnvironment$outboundSchema
|
|
49509
49498
|
});
|
|
49510
49499
|
SDKCreateSessionNotarizeFallbackReason$inboundSchema = nativeEnumType(SDKCreateSessionNotarizeFallbackReason);
|
|
49511
49500
|
SDKCreateSessionNotarizeFallbackReason$outboundSchema = SDKCreateSessionNotarizeFallbackReason$inboundSchema;
|
|
@@ -49773,6 +49762,102 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49773
49762
|
});
|
|
49774
49763
|
});
|
|
49775
49764
|
|
|
49765
|
+
// src/models/operations/sdk-get-partner-config.ts
|
|
49766
|
+
var SDKGetPartnerConfigEnvironment, SDKGetPartnerConfigSecurity$inboundSchema, SDKGetPartnerConfigSecurity$outboundSchema, SDKGetPartnerConfigRequest$inboundSchema, SDKGetPartnerConfigRequest$outboundSchema, Integrations$inboundSchema, Integrations$outboundSchema, SDKGetPartnerConfigEnvironment$inboundSchema, SDKGetPartnerConfigEnvironment$outboundSchema, SDKGetPartnerConfigDataData$inboundSchema, SDKGetPartnerConfigDataData$outboundSchema, SDKGetPartnerConfigData$inboundSchema, SDKGetPartnerConfigData$outboundSchema, SDKGetPartnerConfigResponse$inboundSchema, SDKGetPartnerConfigResponse$outboundSchema;
|
|
49767
|
+
var init_sdk_get_partner_config = __esm(() => {
|
|
49768
|
+
init_v3();
|
|
49769
|
+
init_primitives();
|
|
49770
|
+
init_enums();
|
|
49771
|
+
init_primitives2();
|
|
49772
|
+
init_models();
|
|
49773
|
+
SDKGetPartnerConfigEnvironment = {
|
|
49774
|
+
Test: "test",
|
|
49775
|
+
Live: "live"
|
|
49776
|
+
};
|
|
49777
|
+
SDKGetPartnerConfigSecurity$inboundSchema = objectType({
|
|
49778
|
+
apiKeyAuth: optional3(string4()),
|
|
49779
|
+
apiKeyAuth1: optional3(string4())
|
|
49780
|
+
});
|
|
49781
|
+
SDKGetPartnerConfigSecurity$outboundSchema = objectType({
|
|
49782
|
+
apiKeyAuth: stringType().optional(),
|
|
49783
|
+
apiKeyAuth1: stringType().optional()
|
|
49784
|
+
});
|
|
49785
|
+
SDKGetPartnerConfigRequest$inboundSchema = objectType({
|
|
49786
|
+
site_key: string4(),
|
|
49787
|
+
scope: optional3(string4()),
|
|
49788
|
+
gate: optional3(string4())
|
|
49789
|
+
}).transform((v) => {
|
|
49790
|
+
return remap(v, {
|
|
49791
|
+
site_key: "siteKey"
|
|
49792
|
+
});
|
|
49793
|
+
});
|
|
49794
|
+
SDKGetPartnerConfigRequest$outboundSchema = objectType({
|
|
49795
|
+
siteKey: stringType(),
|
|
49796
|
+
scope: stringType().optional(),
|
|
49797
|
+
gate: stringType().optional()
|
|
49798
|
+
}).transform((v) => {
|
|
49799
|
+
return remap(v, {
|
|
49800
|
+
siteKey: "site_key"
|
|
49801
|
+
});
|
|
49802
|
+
});
|
|
49803
|
+
Integrations$inboundSchema = objectType({
|
|
49804
|
+
enabled: optional3(boolean4()),
|
|
49805
|
+
site_key: optional3(string4()),
|
|
49806
|
+
config: optional3(recordType(anyType()))
|
|
49807
|
+
}).transform((v) => {
|
|
49808
|
+
return remap(v, {
|
|
49809
|
+
site_key: "siteKey"
|
|
49810
|
+
});
|
|
49811
|
+
});
|
|
49812
|
+
Integrations$outboundSchema = objectType({
|
|
49813
|
+
enabled: booleanType().optional(),
|
|
49814
|
+
siteKey: stringType().optional(),
|
|
49815
|
+
config: recordType(anyType()).optional()
|
|
49816
|
+
}).transform((v) => {
|
|
49817
|
+
return remap(v, {
|
|
49818
|
+
siteKey: "site_key"
|
|
49819
|
+
});
|
|
49820
|
+
});
|
|
49821
|
+
SDKGetPartnerConfigEnvironment$inboundSchema = inboundSchema(SDKGetPartnerConfigEnvironment);
|
|
49822
|
+
SDKGetPartnerConfigEnvironment$outboundSchema = outboundSchema(SDKGetPartnerConfigEnvironment);
|
|
49823
|
+
SDKGetPartnerConfigDataData$inboundSchema = objectType({
|
|
49824
|
+
integrations: recordType(lazyType(() => Integrations$inboundSchema)),
|
|
49825
|
+
environment: optional3(SDKGetPartnerConfigEnvironment$inboundSchema),
|
|
49826
|
+
notarize_enabled: optional3(boolean4()),
|
|
49827
|
+
notarize_gate: optional3(string4())
|
|
49828
|
+
}).transform((v) => {
|
|
49829
|
+
return remap(v, {
|
|
49830
|
+
notarize_enabled: "notarizeEnabled",
|
|
49831
|
+
notarize_gate: "notarizeGate"
|
|
49832
|
+
});
|
|
49833
|
+
});
|
|
49834
|
+
SDKGetPartnerConfigDataData$outboundSchema = objectType({
|
|
49835
|
+
integrations: recordType(lazyType(() => Integrations$outboundSchema)),
|
|
49836
|
+
environment: SDKGetPartnerConfigEnvironment$outboundSchema.optional(),
|
|
49837
|
+
notarizeEnabled: booleanType().optional(),
|
|
49838
|
+
notarizeGate: stringType().optional()
|
|
49839
|
+
}).transform((v) => {
|
|
49840
|
+
return remap(v, {
|
|
49841
|
+
notarizeEnabled: "notarize_enabled",
|
|
49842
|
+
notarizeGate: "notarize_gate"
|
|
49843
|
+
});
|
|
49844
|
+
});
|
|
49845
|
+
SDKGetPartnerConfigData$inboundSchema = objectType({
|
|
49846
|
+
data: optional3(lazyType(() => SDKGetPartnerConfigDataData$inboundSchema)),
|
|
49847
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
49848
|
+
});
|
|
49849
|
+
SDKGetPartnerConfigData$outboundSchema = objectType({
|
|
49850
|
+
data: lazyType(() => SDKGetPartnerConfigDataData$outboundSchema).optional(),
|
|
49851
|
+
error: ErrorBody$outboundSchema.optional()
|
|
49852
|
+
});
|
|
49853
|
+
SDKGetPartnerConfigResponse$inboundSchema = objectType({
|
|
49854
|
+
data: lazyType(() => SDKGetPartnerConfigData$inboundSchema)
|
|
49855
|
+
});
|
|
49856
|
+
SDKGetPartnerConfigResponse$outboundSchema = objectType({
|
|
49857
|
+
data: lazyType(() => SDKGetPartnerConfigData$outboundSchema)
|
|
49858
|
+
});
|
|
49859
|
+
});
|
|
49860
|
+
|
|
49776
49861
|
// src/models/operations/sdk-logout.ts
|
|
49777
49862
|
var SDKLogoutSecurity$inboundSchema, SDKLogoutSecurity$outboundSchema, SDKLogoutRequest$inboundSchema, SDKLogoutRequest$outboundSchema, SDKLogoutData$inboundSchema, SDKLogoutData$outboundSchema, SDKLogoutResponse$inboundSchema, SDKLogoutResponse$outboundSchema;
|
|
49778
49863
|
var init_sdk_logout = __esm(() => {
|
|
@@ -50098,15 +50183,11 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50098
50183
|
};
|
|
50099
50184
|
SDKVerifyTokenSecurity$inboundSchema = objectType({
|
|
50100
50185
|
apiKeyAuth: optional3(string4()),
|
|
50101
|
-
apiKeyAuth1: optional3(string4())
|
|
50102
|
-
apiKeyAuth2: optional3(string4()),
|
|
50103
|
-
apiKeyAuth3: optional3(string4())
|
|
50186
|
+
apiKeyAuth1: optional3(string4())
|
|
50104
50187
|
});
|
|
50105
50188
|
SDKVerifyTokenSecurity$outboundSchema = objectType({
|
|
50106
50189
|
apiKeyAuth: stringType().optional(),
|
|
50107
|
-
apiKeyAuth1: stringType().optional()
|
|
50108
|
-
apiKeyAuth2: stringType().optional(),
|
|
50109
|
-
apiKeyAuth3: stringType().optional()
|
|
50190
|
+
apiKeyAuth1: stringType().optional()
|
|
50110
50191
|
});
|
|
50111
50192
|
SDKVerifyTokenRequest$inboundSchema = objectType({
|
|
50112
50193
|
token: string4(),
|
|
@@ -50212,6 +50293,310 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50212
50293
|
});
|
|
50213
50294
|
});
|
|
50214
50295
|
|
|
50296
|
+
// src/models/operations/secured-accounts-list.ts
|
|
50297
|
+
var QueryParamStatus, RowStatus, UnlinkedBy, SecuredAccountsListUnlinkReason, SecuredAccountsListEnvironment, SecuredAccountsListSecurity$inboundSchema, SecuredAccountsListSecurity$outboundSchema, QueryParamStatus$inboundSchema, QueryParamStatus$outboundSchema, SecuredAccountsListRequest$inboundSchema, SecuredAccountsListRequest$outboundSchema, RowStatus$inboundSchema, RowStatus$outboundSchema, UnlinkedBy$inboundSchema, UnlinkedBy$outboundSchema, SecuredAccountsListUnlinkReason$inboundSchema, SecuredAccountsListUnlinkReason$outboundSchema, Row$inboundSchema, Row$outboundSchema, SecuredAccountsListEnvironment$inboundSchema, SecuredAccountsListEnvironment$outboundSchema, SecuredAccountsListDataData$inboundSchema, SecuredAccountsListDataData$outboundSchema, SecuredAccountsListData$inboundSchema, SecuredAccountsListData$outboundSchema, SecuredAccountsListResponse$inboundSchema, SecuredAccountsListResponse$outboundSchema;
|
|
50298
|
+
var init_secured_accounts_list = __esm(() => {
|
|
50299
|
+
init_v3();
|
|
50300
|
+
init_primitives();
|
|
50301
|
+
init_enums();
|
|
50302
|
+
init_primitives2();
|
|
50303
|
+
init_models();
|
|
50304
|
+
QueryParamStatus = {
|
|
50305
|
+
Active: "active",
|
|
50306
|
+
Unlinked: "unlinked"
|
|
50307
|
+
};
|
|
50308
|
+
RowStatus = {
|
|
50309
|
+
Active: "active",
|
|
50310
|
+
Unlinked: "unlinked"
|
|
50311
|
+
};
|
|
50312
|
+
UnlinkedBy = {
|
|
50313
|
+
Platform: "platform",
|
|
50314
|
+
Human: "human"
|
|
50315
|
+
};
|
|
50316
|
+
SecuredAccountsListUnlinkReason = {
|
|
50317
|
+
CredentialChanged: "credential_changed",
|
|
50318
|
+
Platform: "platform",
|
|
50319
|
+
Human: "human"
|
|
50320
|
+
};
|
|
50321
|
+
SecuredAccountsListEnvironment = {
|
|
50322
|
+
Development: "development",
|
|
50323
|
+
Production: "production"
|
|
50324
|
+
};
|
|
50325
|
+
SecuredAccountsListSecurity$inboundSchema = objectType({
|
|
50326
|
+
ApiKeyAuth: string4()
|
|
50327
|
+
}).transform((v) => {
|
|
50328
|
+
return remap(v, {
|
|
50329
|
+
ApiKeyAuth: "apiKeyAuth"
|
|
50330
|
+
});
|
|
50331
|
+
});
|
|
50332
|
+
SecuredAccountsListSecurity$outboundSchema = objectType({
|
|
50333
|
+
apiKeyAuth: stringType()
|
|
50334
|
+
}).transform((v) => {
|
|
50335
|
+
return remap(v, {
|
|
50336
|
+
apiKeyAuth: "ApiKeyAuth"
|
|
50337
|
+
});
|
|
50338
|
+
});
|
|
50339
|
+
QueryParamStatus$inboundSchema = nativeEnumType(QueryParamStatus);
|
|
50340
|
+
QueryParamStatus$outboundSchema = QueryParamStatus$inboundSchema;
|
|
50341
|
+
SecuredAccountsListRequest$inboundSchema = objectType({
|
|
50342
|
+
platform_user_ref: optional3(string4()),
|
|
50343
|
+
status: optional3(QueryParamStatus$inboundSchema),
|
|
50344
|
+
limit: optional3(number4()),
|
|
50345
|
+
offset: optional3(number4())
|
|
50346
|
+
}).transform((v) => {
|
|
50347
|
+
return remap(v, {
|
|
50348
|
+
platform_user_ref: "platformUserRef"
|
|
50349
|
+
});
|
|
50350
|
+
});
|
|
50351
|
+
SecuredAccountsListRequest$outboundSchema = objectType({
|
|
50352
|
+
platformUserRef: stringType().optional(),
|
|
50353
|
+
status: QueryParamStatus$outboundSchema.optional(),
|
|
50354
|
+
limit: numberType().int().optional(),
|
|
50355
|
+
offset: numberType().int().optional()
|
|
50356
|
+
}).transform((v) => {
|
|
50357
|
+
return remap(v, {
|
|
50358
|
+
platformUserRef: "platform_user_ref"
|
|
50359
|
+
});
|
|
50360
|
+
});
|
|
50361
|
+
RowStatus$inboundSchema = inboundSchema(RowStatus);
|
|
50362
|
+
RowStatus$outboundSchema = outboundSchema(RowStatus);
|
|
50363
|
+
UnlinkedBy$inboundSchema = inboundSchema(UnlinkedBy);
|
|
50364
|
+
UnlinkedBy$outboundSchema = outboundSchema(UnlinkedBy);
|
|
50365
|
+
SecuredAccountsListUnlinkReason$inboundSchema = inboundSchema(SecuredAccountsListUnlinkReason);
|
|
50366
|
+
SecuredAccountsListUnlinkReason$outboundSchema = outboundSchema(SecuredAccountsListUnlinkReason);
|
|
50367
|
+
Row$inboundSchema = objectType({
|
|
50368
|
+
handle: string4(),
|
|
50369
|
+
status: RowStatus$inboundSchema,
|
|
50370
|
+
secured_at: date4(),
|
|
50371
|
+
unlinked_at: nullable3(date4()),
|
|
50372
|
+
unlinked_by: nullable3(UnlinkedBy$inboundSchema),
|
|
50373
|
+
unlink_reason: nullable3(SecuredAccountsListUnlinkReason$inboundSchema),
|
|
50374
|
+
surface_id: nullable3(string4())
|
|
50375
|
+
}).transform((v) => {
|
|
50376
|
+
return remap(v, {
|
|
50377
|
+
secured_at: "securedAt",
|
|
50378
|
+
unlinked_at: "unlinkedAt",
|
|
50379
|
+
unlinked_by: "unlinkedBy",
|
|
50380
|
+
unlink_reason: "unlinkReason",
|
|
50381
|
+
surface_id: "surfaceId"
|
|
50382
|
+
});
|
|
50383
|
+
});
|
|
50384
|
+
Row$outboundSchema = objectType({
|
|
50385
|
+
handle: stringType(),
|
|
50386
|
+
status: RowStatus$outboundSchema,
|
|
50387
|
+
securedAt: dateType().transform((v) => v.toISOString()),
|
|
50388
|
+
unlinkedAt: nullableType(dateType().transform((v) => v.toISOString())),
|
|
50389
|
+
unlinkedBy: nullableType(UnlinkedBy$outboundSchema),
|
|
50390
|
+
unlinkReason: nullableType(SecuredAccountsListUnlinkReason$outboundSchema),
|
|
50391
|
+
surfaceId: nullableType(stringType())
|
|
50392
|
+
}).transform((v) => {
|
|
50393
|
+
return remap(v, {
|
|
50394
|
+
securedAt: "secured_at",
|
|
50395
|
+
unlinkedAt: "unlinked_at",
|
|
50396
|
+
unlinkedBy: "unlinked_by",
|
|
50397
|
+
unlinkReason: "unlink_reason",
|
|
50398
|
+
surfaceId: "surface_id"
|
|
50399
|
+
});
|
|
50400
|
+
});
|
|
50401
|
+
SecuredAccountsListEnvironment$inboundSchema = inboundSchema(SecuredAccountsListEnvironment);
|
|
50402
|
+
SecuredAccountsListEnvironment$outboundSchema = outboundSchema(SecuredAccountsListEnvironment);
|
|
50403
|
+
SecuredAccountsListDataData$inboundSchema = objectType({
|
|
50404
|
+
rows: arrayType(lazyType(() => Row$inboundSchema)),
|
|
50405
|
+
total: number4(),
|
|
50406
|
+
environment: SecuredAccountsListEnvironment$inboundSchema,
|
|
50407
|
+
limit: number4(),
|
|
50408
|
+
offset: number4()
|
|
50409
|
+
});
|
|
50410
|
+
SecuredAccountsListDataData$outboundSchema = objectType({
|
|
50411
|
+
rows: arrayType(lazyType(() => Row$outboundSchema)),
|
|
50412
|
+
total: numberType().int(),
|
|
50413
|
+
environment: SecuredAccountsListEnvironment$outboundSchema,
|
|
50414
|
+
limit: numberType().int(),
|
|
50415
|
+
offset: numberType().int()
|
|
50416
|
+
});
|
|
50417
|
+
SecuredAccountsListData$inboundSchema = objectType({
|
|
50418
|
+
data: optional3(lazyType(() => SecuredAccountsListDataData$inboundSchema)),
|
|
50419
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
50420
|
+
});
|
|
50421
|
+
SecuredAccountsListData$outboundSchema = objectType({
|
|
50422
|
+
data: lazyType(() => SecuredAccountsListDataData$outboundSchema).optional(),
|
|
50423
|
+
error: ErrorBody$outboundSchema.optional()
|
|
50424
|
+
});
|
|
50425
|
+
SecuredAccountsListResponse$inboundSchema = objectType({
|
|
50426
|
+
data: lazyType(() => SecuredAccountsListData$inboundSchema)
|
|
50427
|
+
});
|
|
50428
|
+
SecuredAccountsListResponse$outboundSchema = objectType({
|
|
50429
|
+
data: lazyType(() => SecuredAccountsListData$outboundSchema)
|
|
50430
|
+
});
|
|
50431
|
+
});
|
|
50432
|
+
|
|
50433
|
+
// src/models/operations/secured-accounts-revoke.ts
|
|
50434
|
+
var SecuredAccountsRevokeReason, SecuredAccountsRevokeUnlinkReason, SecuredAccountsRevokeSecurity$inboundSchema, SecuredAccountsRevokeSecurity$outboundSchema, SecuredAccountsRevokeReason$inboundSchema, SecuredAccountsRevokeReason$outboundSchema, SecuredAccountsRevokeRequest$inboundSchema, SecuredAccountsRevokeRequest$outboundSchema, SecuredAccountsRevokeUnlinkReason$inboundSchema, SecuredAccountsRevokeUnlinkReason$outboundSchema, SecuredAccountsRevokeDataData$inboundSchema, SecuredAccountsRevokeDataData$outboundSchema, SecuredAccountsRevokeData$inboundSchema, SecuredAccountsRevokeData$outboundSchema, SecuredAccountsRevokeResponse$inboundSchema, SecuredAccountsRevokeResponse$outboundSchema;
|
|
50435
|
+
var init_secured_accounts_revoke = __esm(() => {
|
|
50436
|
+
init_v3();
|
|
50437
|
+
init_primitives();
|
|
50438
|
+
init_enums();
|
|
50439
|
+
init_primitives2();
|
|
50440
|
+
init_models();
|
|
50441
|
+
SecuredAccountsRevokeReason = {
|
|
50442
|
+
Platform: "platform",
|
|
50443
|
+
CredentialChanged: "credential_changed"
|
|
50444
|
+
};
|
|
50445
|
+
SecuredAccountsRevokeUnlinkReason = {
|
|
50446
|
+
CredentialChanged: "credential_changed",
|
|
50447
|
+
Platform: "platform"
|
|
50448
|
+
};
|
|
50449
|
+
SecuredAccountsRevokeSecurity$inboundSchema = objectType({
|
|
50450
|
+
ApiKeyAuth: string4()
|
|
50451
|
+
}).transform((v) => {
|
|
50452
|
+
return remap(v, {
|
|
50453
|
+
ApiKeyAuth: "apiKeyAuth"
|
|
50454
|
+
});
|
|
50455
|
+
});
|
|
50456
|
+
SecuredAccountsRevokeSecurity$outboundSchema = objectType({
|
|
50457
|
+
apiKeyAuth: stringType()
|
|
50458
|
+
}).transform((v) => {
|
|
50459
|
+
return remap(v, {
|
|
50460
|
+
apiKeyAuth: "ApiKeyAuth"
|
|
50461
|
+
});
|
|
50462
|
+
});
|
|
50463
|
+
SecuredAccountsRevokeReason$inboundSchema = nativeEnumType(SecuredAccountsRevokeReason);
|
|
50464
|
+
SecuredAccountsRevokeReason$outboundSchema = SecuredAccountsRevokeReason$inboundSchema;
|
|
50465
|
+
SecuredAccountsRevokeRequest$inboundSchema = objectType({
|
|
50466
|
+
platform_user_ref: optional3(string4()),
|
|
50467
|
+
handle: optional3(string4()),
|
|
50468
|
+
reason: optional3(SecuredAccountsRevokeReason$inboundSchema)
|
|
50469
|
+
}).transform((v) => {
|
|
50470
|
+
return remap(v, {
|
|
50471
|
+
platform_user_ref: "platformUserRef"
|
|
50472
|
+
});
|
|
50473
|
+
});
|
|
50474
|
+
SecuredAccountsRevokeRequest$outboundSchema = objectType({
|
|
50475
|
+
platformUserRef: stringType().optional(),
|
|
50476
|
+
handle: stringType().optional(),
|
|
50477
|
+
reason: SecuredAccountsRevokeReason$outboundSchema.optional()
|
|
50478
|
+
}).transform((v) => {
|
|
50479
|
+
return remap(v, {
|
|
50480
|
+
platformUserRef: "platform_user_ref"
|
|
50481
|
+
});
|
|
50482
|
+
});
|
|
50483
|
+
SecuredAccountsRevokeUnlinkReason$inboundSchema = inboundSchema(SecuredAccountsRevokeUnlinkReason);
|
|
50484
|
+
SecuredAccountsRevokeUnlinkReason$outboundSchema = outboundSchema(SecuredAccountsRevokeUnlinkReason);
|
|
50485
|
+
SecuredAccountsRevokeDataData$inboundSchema = objectType({
|
|
50486
|
+
success: boolean4(),
|
|
50487
|
+
revoked: boolean4(),
|
|
50488
|
+
handle: nullable3(string4()),
|
|
50489
|
+
unlinked_at: nullable3(date4()),
|
|
50490
|
+
unlink_reason: nullable3(SecuredAccountsRevokeUnlinkReason$inboundSchema)
|
|
50491
|
+
}).transform((v) => {
|
|
50492
|
+
return remap(v, {
|
|
50493
|
+
unlinked_at: "unlinkedAt",
|
|
50494
|
+
unlink_reason: "unlinkReason"
|
|
50495
|
+
});
|
|
50496
|
+
});
|
|
50497
|
+
SecuredAccountsRevokeDataData$outboundSchema = objectType({
|
|
50498
|
+
success: booleanType(),
|
|
50499
|
+
revoked: booleanType(),
|
|
50500
|
+
handle: nullableType(stringType()),
|
|
50501
|
+
unlinkedAt: nullableType(dateType().transform((v) => v.toISOString())),
|
|
50502
|
+
unlinkReason: nullableType(SecuredAccountsRevokeUnlinkReason$outboundSchema)
|
|
50503
|
+
}).transform((v) => {
|
|
50504
|
+
return remap(v, {
|
|
50505
|
+
unlinkedAt: "unlinked_at",
|
|
50506
|
+
unlinkReason: "unlink_reason"
|
|
50507
|
+
});
|
|
50508
|
+
});
|
|
50509
|
+
SecuredAccountsRevokeData$inboundSchema = objectType({
|
|
50510
|
+
data: optional3(lazyType(() => SecuredAccountsRevokeDataData$inboundSchema)),
|
|
50511
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
50512
|
+
});
|
|
50513
|
+
SecuredAccountsRevokeData$outboundSchema = objectType({
|
|
50514
|
+
data: lazyType(() => SecuredAccountsRevokeDataData$outboundSchema).optional(),
|
|
50515
|
+
error: ErrorBody$outboundSchema.optional()
|
|
50516
|
+
});
|
|
50517
|
+
SecuredAccountsRevokeResponse$inboundSchema = objectType({
|
|
50518
|
+
data: lazyType(() => SecuredAccountsRevokeData$inboundSchema)
|
|
50519
|
+
});
|
|
50520
|
+
SecuredAccountsRevokeResponse$outboundSchema = objectType({
|
|
50521
|
+
data: lazyType(() => SecuredAccountsRevokeData$outboundSchema)
|
|
50522
|
+
});
|
|
50523
|
+
});
|
|
50524
|
+
|
|
50525
|
+
// src/models/operations/secured-accounts-status.ts
|
|
50526
|
+
var State, SecuredAccountsStatusSecurity$inboundSchema, SecuredAccountsStatusSecurity$outboundSchema, SecuredAccountsStatusRequest$inboundSchema, SecuredAccountsStatusRequest$outboundSchema, State$inboundSchema, State$outboundSchema, SecuredAccountsStatusDataData$inboundSchema, SecuredAccountsStatusDataData$outboundSchema, SecuredAccountsStatusData$inboundSchema, SecuredAccountsStatusData$outboundSchema, SecuredAccountsStatusResponse$inboundSchema, SecuredAccountsStatusResponse$outboundSchema;
|
|
50527
|
+
var init_secured_accounts_status = __esm(() => {
|
|
50528
|
+
init_v3();
|
|
50529
|
+
init_primitives();
|
|
50530
|
+
init_enums();
|
|
50531
|
+
init_primitives2();
|
|
50532
|
+
init_models();
|
|
50533
|
+
State = {
|
|
50534
|
+
None: "none",
|
|
50535
|
+
Fresh: "fresh",
|
|
50536
|
+
Stale: "stale"
|
|
50537
|
+
};
|
|
50538
|
+
SecuredAccountsStatusSecurity$inboundSchema = objectType({
|
|
50539
|
+
ApiKeyAuth: string4()
|
|
50540
|
+
}).transform((v) => {
|
|
50541
|
+
return remap(v, {
|
|
50542
|
+
ApiKeyAuth: "apiKeyAuth"
|
|
50543
|
+
});
|
|
50544
|
+
});
|
|
50545
|
+
SecuredAccountsStatusSecurity$outboundSchema = objectType({
|
|
50546
|
+
apiKeyAuth: stringType()
|
|
50547
|
+
}).transform((v) => {
|
|
50548
|
+
return remap(v, {
|
|
50549
|
+
apiKeyAuth: "ApiKeyAuth"
|
|
50550
|
+
});
|
|
50551
|
+
});
|
|
50552
|
+
SecuredAccountsStatusRequest$inboundSchema = objectType({
|
|
50553
|
+
platform_user_ref: string4()
|
|
50554
|
+
}).transform((v) => {
|
|
50555
|
+
return remap(v, {
|
|
50556
|
+
platform_user_ref: "platformUserRef"
|
|
50557
|
+
});
|
|
50558
|
+
});
|
|
50559
|
+
SecuredAccountsStatusRequest$outboundSchema = objectType({
|
|
50560
|
+
platformUserRef: stringType()
|
|
50561
|
+
}).transform((v) => {
|
|
50562
|
+
return remap(v, {
|
|
50563
|
+
platformUserRef: "platform_user_ref"
|
|
50564
|
+
});
|
|
50565
|
+
});
|
|
50566
|
+
State$inboundSchema = inboundSchema(State);
|
|
50567
|
+
State$outboundSchema = outboundSchema(State);
|
|
50568
|
+
SecuredAccountsStatusDataData$inboundSchema = objectType({
|
|
50569
|
+
state: State$inboundSchema,
|
|
50570
|
+
fresh_until: nullable3(date4())
|
|
50571
|
+
}).transform((v) => {
|
|
50572
|
+
return remap(v, {
|
|
50573
|
+
fresh_until: "freshUntil"
|
|
50574
|
+
});
|
|
50575
|
+
});
|
|
50576
|
+
SecuredAccountsStatusDataData$outboundSchema = objectType({
|
|
50577
|
+
state: State$outboundSchema,
|
|
50578
|
+
freshUntil: nullableType(dateType().transform((v) => v.toISOString()))
|
|
50579
|
+
}).transform((v) => {
|
|
50580
|
+
return remap(v, {
|
|
50581
|
+
freshUntil: "fresh_until"
|
|
50582
|
+
});
|
|
50583
|
+
});
|
|
50584
|
+
SecuredAccountsStatusData$inboundSchema = objectType({
|
|
50585
|
+
data: optional3(lazyType(() => SecuredAccountsStatusDataData$inboundSchema)),
|
|
50586
|
+
error: optional3(ErrorBody$inboundSchema)
|
|
50587
|
+
});
|
|
50588
|
+
SecuredAccountsStatusData$outboundSchema = objectType({
|
|
50589
|
+
data: lazyType(() => SecuredAccountsStatusDataData$outboundSchema).optional(),
|
|
50590
|
+
error: ErrorBody$outboundSchema.optional()
|
|
50591
|
+
});
|
|
50592
|
+
SecuredAccountsStatusResponse$inboundSchema = objectType({
|
|
50593
|
+
data: lazyType(() => SecuredAccountsStatusData$inboundSchema)
|
|
50594
|
+
});
|
|
50595
|
+
SecuredAccountsStatusResponse$outboundSchema = objectType({
|
|
50596
|
+
data: lazyType(() => SecuredAccountsStatusData$outboundSchema)
|
|
50597
|
+
});
|
|
50598
|
+
});
|
|
50599
|
+
|
|
50215
50600
|
// src/models/operations/verification-get-status.ts
|
|
50216
50601
|
var VerificationGetStatusStatus, VerificationGetStatusSDKType, VerificationGetStatusReason, VerificationGetStatusSecurity$inboundSchema, VerificationGetStatusSecurity$outboundSchema, VerificationGetStatusRequest$inboundSchema, VerificationGetStatusRequest$outboundSchema, VerificationGetStatusStatus$inboundSchema, VerificationGetStatusStatus$outboundSchema, VerificationGetStatusSDKType$inboundSchema, VerificationGetStatusSDKType$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, VerificationGetStatusReason$inboundSchema, VerificationGetStatusReason$outboundSchema, VerificationGetStatusData$inboundSchema, VerificationGetStatusData$outboundSchema, VerificationGetStatusResponse$inboundSchema, VerificationGetStatusResponse$outboundSchema;
|
|
50217
50602
|
var init_verification_get_status = __esm(() => {
|
|
@@ -50242,15 +50627,11 @@ var init_verification_get_status = __esm(() => {
|
|
|
50242
50627
|
};
|
|
50243
50628
|
VerificationGetStatusSecurity$inboundSchema = objectType({
|
|
50244
50629
|
apiKeyAuth: optional3(string4()),
|
|
50245
|
-
apiKeyAuth1: optional3(string4())
|
|
50246
|
-
apiKeyAuth2: optional3(string4()),
|
|
50247
|
-
apiKeyAuth3: optional3(string4())
|
|
50630
|
+
apiKeyAuth1: optional3(string4())
|
|
50248
50631
|
});
|
|
50249
50632
|
VerificationGetStatusSecurity$outboundSchema = objectType({
|
|
50250
50633
|
apiKeyAuth: stringType().optional(),
|
|
50251
|
-
apiKeyAuth1: stringType().optional()
|
|
50252
|
-
apiKeyAuth2: stringType().optional(),
|
|
50253
|
-
apiKeyAuth3: stringType().optional()
|
|
50634
|
+
apiKeyAuth1: stringType().optional()
|
|
50254
50635
|
});
|
|
50255
50636
|
VerificationGetStatusRequest$inboundSchema = objectType({
|
|
50256
50637
|
request_id: string4()
|
|
@@ -50389,11 +50770,15 @@ var init_operations = __esm(() => {
|
|
|
50389
50770
|
init_actions_propose();
|
|
50390
50771
|
init_sdk_create_session();
|
|
50391
50772
|
init_sdk_create_verification_link();
|
|
50773
|
+
init_sdk_get_partner_config();
|
|
50392
50774
|
init_sdk_logout();
|
|
50393
50775
|
init_sdk_revoke_verification();
|
|
50394
50776
|
init_sdk_store_signal();
|
|
50395
50777
|
init_sdk_validate_signal();
|
|
50396
50778
|
init_sdk_verify_token();
|
|
50779
|
+
init_secured_accounts_list();
|
|
50780
|
+
init_secured_accounts_revoke();
|
|
50781
|
+
init_secured_accounts_status();
|
|
50397
50782
|
init_verification_get_status();
|
|
50398
50783
|
});
|
|
50399
50784
|
|
|
@@ -50512,7 +50897,7 @@ var init_actions_cancel_action2 = __esm(() => {
|
|
|
50512
50897
|
tool$actionsCancelAction = {
|
|
50513
50898
|
name: "cancel_resolution",
|
|
50514
50899
|
description: `Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
|
|
50515
|
-
scopes: ["queue", "queue"
|
|
50900
|
+
scopes: ["queue", "queue"],
|
|
50516
50901
|
args,
|
|
50517
50902
|
tool: async (client, args2, ctx) => {
|
|
50518
50903
|
const [result, apiCall] = await actionsCancelAction(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50618,7 +51003,7 @@ var init_actions_check_action_status2 = __esm(() => {
|
|
|
50618
51003
|
tool$actionsCheckActionStatus = {
|
|
50619
51004
|
name: "check_resolution_status",
|
|
50620
51005
|
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.`,
|
|
50621
|
-
scopes: ["queue", "queue"
|
|
51006
|
+
scopes: ["queue", "queue"],
|
|
50622
51007
|
args: args2,
|
|
50623
51008
|
tool: async (client, args3, ctx) => {
|
|
50624
51009
|
const [result, apiCall] = await actionsCheckActionStatus(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50720,7 +51105,7 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50720
51105
|
tool$actionsProposeAction = {
|
|
50721
51106
|
name: "propose_resolution",
|
|
50722
51107
|
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.`,
|
|
50723
|
-
scopes: ["queue", "queue"
|
|
51108
|
+
scopes: ["queue", "queue"],
|
|
50724
51109
|
args: args3,
|
|
50725
51110
|
tool: async (client, args4, ctx) => {
|
|
50726
51111
|
const [result, apiCall] = await actionsProposeAction(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50740,7 +51125,7 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50740
51125
|
function createMCPServer(deps) {
|
|
50741
51126
|
const server = new McpServer({
|
|
50742
51127
|
name: "BotShield",
|
|
50743
|
-
version: "2.
|
|
51128
|
+
version: "2.2.0"
|
|
50744
51129
|
});
|
|
50745
51130
|
const client = new BotShieldCore({
|
|
50746
51131
|
security: deps.security,
|
|
@@ -50798,9 +51183,7 @@ async function startStdio(flags) {
|
|
|
50798
51183
|
scopes: flags.scope,
|
|
50799
51184
|
security: {
|
|
50800
51185
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50801
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50802
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50803
|
-
agentKeyAuth3: flags["agent-key-auth3"] ?? ""
|
|
51186
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50804
51187
|
},
|
|
50805
51188
|
serverURL: flags["server-url"],
|
|
50806
51189
|
serverIdx: flags["server-index"]
|
|
@@ -50822,9 +51205,7 @@ async function startSSE(flags) {
|
|
|
50822
51205
|
scopes: flags.scope,
|
|
50823
51206
|
security: {
|
|
50824
51207
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50825
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50826
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50827
|
-
agentKeyAuth3: flags["agent-key-auth3"] ?? ""
|
|
51208
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50828
51209
|
},
|
|
50829
51210
|
serverURL: flags["server-url"],
|
|
50830
51211
|
serverIdx: flags["server-index"]
|
|
@@ -53001,22 +53382,6 @@ var startCommand = buildCommand({
|
|
|
53001
53382
|
return stringType().parse(value);
|
|
53002
53383
|
}
|
|
53003
53384
|
},
|
|
53004
|
-
"agent-key-auth2": {
|
|
53005
|
-
kind: "parsed",
|
|
53006
|
-
brief: "Sets the agentKeyAuth2 auth field for the API",
|
|
53007
|
-
optional: true,
|
|
53008
|
-
parse: (value) => {
|
|
53009
|
-
return stringType().parse(value);
|
|
53010
|
-
}
|
|
53011
|
-
},
|
|
53012
|
-
"agent-key-auth3": {
|
|
53013
|
-
kind: "parsed",
|
|
53014
|
-
brief: "Sets the agentKeyAuth3 auth field for the API",
|
|
53015
|
-
optional: true,
|
|
53016
|
-
parse: (value) => {
|
|
53017
|
-
return stringType().parse(value);
|
|
53018
|
-
}
|
|
53019
|
-
},
|
|
53020
53385
|
"server-url": {
|
|
53021
53386
|
kind: "parsed",
|
|
53022
53387
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -53076,7 +53441,7 @@ var routes = buildRouteMap({
|
|
|
53076
53441
|
var app = buildApplication(routes, {
|
|
53077
53442
|
name: "mcp",
|
|
53078
53443
|
versionInfo: {
|
|
53079
|
-
currentVersion: "2.
|
|
53444
|
+
currentVersion: "2.2.0"
|
|
53080
53445
|
}
|
|
53081
53446
|
});
|
|
53082
53447
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -53084,5 +53449,5 @@ export {
|
|
|
53084
53449
|
app
|
|
53085
53450
|
};
|
|
53086
53451
|
|
|
53087
|
-
//# debugId=
|
|
53452
|
+
//# debugId=0010EADC0EADD90264756E2164756E21
|
|
53088
53453
|
//# sourceMappingURL=mcp-server.js.map
|