botshield-sdk 2.0.2 → 2.1.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 +10 -43
- package/bin/mcp-server.js +263 -500
- package/bin/mcp-server.js.map +27 -28
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -67
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +0 -66
- 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 -77
- 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 -88
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -11
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -22
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/error-body.d.ts +43 -8
- package/dist/commonjs/models/error-body.d.ts.map +1 -1
- package/dist/commonjs/models/error-body.js +51 -1
- package/dist/commonjs/models/error-body.js.map +1 -1
- package/dist/commonjs/models/operations/actions-cancel.d.ts +1 -1
- package/dist/commonjs/models/operations/actions-check-status.d.ts +6 -6
- package/dist/commonjs/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/actions-check-status.js +6 -6
- package/dist/commonjs/models/operations/actions-check-status.js.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +49 -15
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.js +37 -16
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +58 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-logout.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/commonjs/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.js +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +78 -23
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +51 -23
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +47 -26
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +30 -24
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +0 -22
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +0 -22
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/census.d.ts +1 -8
- package/dist/commonjs/sdk/census.d.ts.map +1 -1
- package/dist/commonjs/sdk/census.js +1 -11
- package/dist/commonjs/sdk/census.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -67
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/verification-get-status.js +0 -66
- 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 -77
- 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 -88
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -11
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -22
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +1 -17
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -17
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -17
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/error-body.d.ts +43 -8
- package/dist/esm/models/error-body.d.ts.map +1 -1
- package/dist/esm/models/error-body.js +48 -0
- package/dist/esm/models/error-body.js.map +1 -1
- package/dist/esm/models/operations/actions-cancel.d.ts +1 -1
- package/dist/esm/models/operations/actions-check-status.d.ts +6 -6
- package/dist/esm/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/esm/models/operations/actions-check-status.js +5 -5
- package/dist/esm/models/operations/actions-check-status.js.map +1 -1
- package/dist/esm/models/operations/actions-propose.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.d.ts +49 -15
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.js +34 -13
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +57 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-logout.d.ts +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/esm/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/esm/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/esm/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.js +5 -5
- package/dist/esm/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +78 -23
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +50 -22
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +47 -26
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +29 -23
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +0 -22
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +0 -22
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/census.d.ts +1 -8
- package/dist/esm/sdk/census.d.ts.map +1 -1
- package/dist/esm/sdk/census.js +1 -11
- package/dist/esm/sdk/census.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/census-verify-token.ts +1 -78
- package/src/funcs/verification-get-status.ts +0 -77
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -77
- package/src/mcp-server/cli/start/command.ts +0 -88
- package/src/mcp-server/cli/start/impl.ts +0 -33
- 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 -17
- package/src/mcp-server/tools/actions-check-action-status.ts +1 -17
- package/src/mcp-server/tools/actions-propose-action.ts +1 -17
- package/src/models/error-body.ts +95 -8
- package/src/models/operations/actions-cancel.ts +1 -1
- package/src/models/operations/actions-check-status.ts +18 -10
- package/src/models/operations/actions-propose.ts +1 -1
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/sdk-create-session.ts +89 -33
- package/src/models/operations/sdk-create-verification-link.ts +157 -2
- package/src/models/operations/sdk-logout.ts +1 -1
- package/src/models/operations/sdk-revoke-verification.ts +18 -6
- package/src/models/operations/sdk-store-signal.ts +1 -1
- package/src/models/operations/sdk-validate-signal.ts +16 -10
- package/src/models/operations/sdk-verify-token.ts +119 -45
- package/src/models/operations/verification-get-status.ts +73 -48
- package/src/models/security.ts +0 -44
- package/src/sdk/census.ts +1 -21
- package/dist/commonjs/funcs/census-get-partner-config.d.ts +0 -18
- package/dist/commonjs/funcs/census-get-partner-config.d.ts.map +0 -1
- package/dist/commonjs/funcs/census-get-partner-config.js +0 -210
- package/dist/commonjs/funcs/census-get-partner-config.js.map +0 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +0 -152
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +0 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +0 -205
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +0 -1
- package/dist/esm/funcs/census-get-partner-config.d.ts +0 -18
- package/dist/esm/funcs/census-get-partner-config.d.ts.map +0 -1
- package/dist/esm/funcs/census-get-partner-config.js +0 -174
- package/dist/esm/funcs/census-get-partner-config.js.map +0 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +0 -152
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +0 -1
- package/dist/esm/models/operations/sdk-get-partner-config.js +0 -157
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +0 -1
- package/src/funcs/census-get-partner-config.ts +0 -287
- package/src/models/operations/sdk-get-partner-config.ts +0 -397
package/dist/esm/sdk/census.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class Census extends ClientSDK {
|
|
|
19
19
|
* Validate a verification token
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person.
|
|
22
|
+
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person. Each attestation is for one organization (aud = its organization_id; pass `audience` to enforce it) and one check: a repeat check is flagged `replayed` and refused from 2026-11-15.
|
|
23
23
|
*/
|
|
24
24
|
verifyToken(security: operations.SDKVerifyTokenSecurity, request: operations.SDKVerifyTokenRequest, options?: RequestOptions): Promise<operations.SDKVerifyTokenResponse>;
|
|
25
25
|
/**
|
|
@@ -36,13 +36,6 @@ export declare class Census extends ClientSDK {
|
|
|
36
36
|
* Validates a signal_token and returns the real server-side bot score. One-time use, 10-minute expiry. This is the tamper-proof check.
|
|
37
37
|
*/
|
|
38
38
|
validateSignal(request: operations.SDKValidateSignalRequest, options?: RequestOptions): Promise<operations.SDKValidateSignalResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Get partner configuration
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* Returns enabled integrations (Turnstile, etc.) for a site key. Public config only — secret keys never exposed.
|
|
44
|
-
*/
|
|
45
|
-
getPartnerConfig(security: operations.SDKGetPartnerConfigSecurity, request: operations.SDKGetPartnerConfigRequest, options?: RequestOptions): Promise<operations.SDKGetPartnerConfigResponse>;
|
|
46
39
|
/**
|
|
47
40
|
* Revoke a pending verification
|
|
48
41
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"census.d.ts","sourceRoot":"","sources":["../../../src/sdk/census.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"census.d.ts","sourceRoot":"","sources":["../../../src/sdk/census.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,aAAa,CACjB,QAAQ,EAAE,UAAU,CAAC,wBAAwB,EAC7C,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAO9C;IAED;;;;;OAKG;IACG,sBAAsB,CAC1B,QAAQ,EAAE,UAAU,CAAC,iCAAiC,EACtD,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAOvD;IAED;;;;;OAKG;IACG,WAAW,CACf,QAAQ,EAAE,UAAU,CAAC,sBAAsB,EAC3C,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAO5C;IAED;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAM5C;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAM/C;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,QAAQ,EAAE,UAAU,CAAC,6BAA6B,EAClD,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAOnD;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,UAAU,CAAC,iBAAiB,EACtC,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAOvC;CACF"}
|
package/dist/esm/sdk/census.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { censusCreateSession } from "../funcs/census-create-session.js";
|
|
5
5
|
import { censusCreateVerificationLink } from "../funcs/census-create-verification-link.js";
|
|
6
|
-
import { censusGetPartnerConfig } from "../funcs/census-get-partner-config.js";
|
|
7
6
|
import { censusLogout } from "../funcs/census-logout.js";
|
|
8
7
|
import { censusRevokeVerification } from "../funcs/census-revoke-verification.js";
|
|
9
8
|
import { censusStoreSignal } from "../funcs/census-store-signal.js";
|
|
@@ -34,7 +33,7 @@ export class Census extends ClientSDK {
|
|
|
34
33
|
* Validate a verification token
|
|
35
34
|
*
|
|
36
35
|
* @remarks
|
|
37
|
-
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person.
|
|
36
|
+
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person. Each attestation is for one organization (aud = its organization_id; pass `audience` to enforce it) and one check: a repeat check is flagged `replayed` and refused from 2026-11-15.
|
|
38
37
|
*/
|
|
39
38
|
async verifyToken(security, request, options) {
|
|
40
39
|
return unwrapAsync(censusVerifyToken(this, security, request, options));
|
|
@@ -57,15 +56,6 @@ export class Census extends ClientSDK {
|
|
|
57
56
|
async validateSignal(request, options) {
|
|
58
57
|
return unwrapAsync(censusValidateSignal(this, request, options));
|
|
59
58
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Get partner configuration
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* Returns enabled integrations (Turnstile, etc.) for a site key. Public config only — secret keys never exposed.
|
|
65
|
-
*/
|
|
66
|
-
async getPartnerConfig(security, request, options) {
|
|
67
|
-
return unwrapAsync(censusGetPartnerConfig(this, security, request, options));
|
|
68
|
-
}
|
|
69
59
|
/**
|
|
70
60
|
* Revoke a pending verification
|
|
71
61
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"census.js","sourceRoot":"","sources":["../../../src/sdk/census.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"census.js","sourceRoot":"","sources":["../../../src/sdk/census.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,QAA6C,EAC7C,OAA2C,EAC3C,OAAwB,EACsB;QAC9C,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,QAAsD,EACtD,OAAoD,EACpD,OAAwB,EAC+B;QACvD,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,QAA2C,EAC3C,OAAyC,EACzC,OAAwB,EACoB;QAC5C,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAyC,EACzC,OAAwB,EACoB;QAC5C,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAA4C,EAC5C,OAAwB,EACuB;QAC/C,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,QAAkD,EAClD,OAAgD,EAChD,OAAwB,EAC2B;QACnD,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAAsC,EACtC,OAAoC,EACpC,OAAwB,EACe;QACvC,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botshield-sdk",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"author": "BotShield",
|
|
5
5
|
"description": "Official TypeScript SDK for BotShield — privacy-first human verification (passkeys, no PII) and Agents Ask approvals",
|
|
6
6
|
"homepage": "https://docs.botshield.ai",
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Validate a verification token
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person.
|
|
33
|
+
* Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, never the person. Each attestation is for one organization (aud = its organization_id; pass `audience` to enforce it) and one check: a repeat check is flagged `replayed` and refused from 2026-11-15.
|
|
34
34
|
*/
|
|
35
35
|
export function censusVerifyToken(
|
|
36
36
|
client: BotShieldCore,
|
|
@@ -130,83 +130,6 @@ async function $do(
|
|
|
130
130
|
value: security?.apiKeyAuth3,
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
|
-
[
|
|
134
|
-
{
|
|
135
|
-
fieldName: "Authorization",
|
|
136
|
-
type: "apiKey:header",
|
|
137
|
-
value: security?.apiKeyAuth4,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
[
|
|
141
|
-
{
|
|
142
|
-
fieldName: "Authorization",
|
|
143
|
-
type: "apiKey:header",
|
|
144
|
-
value: security?.apiKeyAuth5,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
[
|
|
148
|
-
{
|
|
149
|
-
fieldName: "Authorization",
|
|
150
|
-
type: "apiKey:header",
|
|
151
|
-
value: security?.apiKeyAuth6,
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
[
|
|
155
|
-
{
|
|
156
|
-
fieldName: "Authorization",
|
|
157
|
-
type: "apiKey:header",
|
|
158
|
-
value: security?.apiKeyAuth7,
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
[
|
|
162
|
-
{
|
|
163
|
-
fieldName: "Authorization",
|
|
164
|
-
type: "apiKey:header",
|
|
165
|
-
value: security?.apiKeyAuth8,
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
[
|
|
169
|
-
{
|
|
170
|
-
fieldName: "Authorization",
|
|
171
|
-
type: "apiKey:header",
|
|
172
|
-
value: security?.apiKeyAuth9,
|
|
173
|
-
},
|
|
174
|
-
],
|
|
175
|
-
[
|
|
176
|
-
{
|
|
177
|
-
fieldName: "Authorization",
|
|
178
|
-
type: "apiKey:header",
|
|
179
|
-
value: security?.apiKeyAuth10,
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
[
|
|
183
|
-
{
|
|
184
|
-
fieldName: "Authorization",
|
|
185
|
-
type: "apiKey:header",
|
|
186
|
-
value: security?.apiKeyAuth11,
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
[
|
|
190
|
-
{
|
|
191
|
-
fieldName: "Authorization",
|
|
192
|
-
type: "apiKey:header",
|
|
193
|
-
value: security?.apiKeyAuth12,
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
[
|
|
197
|
-
{
|
|
198
|
-
fieldName: "Authorization",
|
|
199
|
-
type: "apiKey:header",
|
|
200
|
-
value: security?.apiKeyAuth13,
|
|
201
|
-
},
|
|
202
|
-
],
|
|
203
|
-
[
|
|
204
|
-
{
|
|
205
|
-
fieldName: "Authorization",
|
|
206
|
-
type: "apiKey:header",
|
|
207
|
-
value: security?.apiKeyAuth14,
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
133
|
);
|
|
211
134
|
|
|
212
135
|
const context = {
|
|
@@ -134,83 +134,6 @@ async function $do(
|
|
|
134
134
|
value: security?.apiKeyAuth3,
|
|
135
135
|
},
|
|
136
136
|
],
|
|
137
|
-
[
|
|
138
|
-
{
|
|
139
|
-
fieldName: "Authorization",
|
|
140
|
-
type: "apiKey:header",
|
|
141
|
-
value: security?.apiKeyAuth4,
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
[
|
|
145
|
-
{
|
|
146
|
-
fieldName: "Authorization",
|
|
147
|
-
type: "apiKey:header",
|
|
148
|
-
value: security?.apiKeyAuth5,
|
|
149
|
-
},
|
|
150
|
-
],
|
|
151
|
-
[
|
|
152
|
-
{
|
|
153
|
-
fieldName: "Authorization",
|
|
154
|
-
type: "apiKey:header",
|
|
155
|
-
value: security?.apiKeyAuth6,
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
[
|
|
159
|
-
{
|
|
160
|
-
fieldName: "Authorization",
|
|
161
|
-
type: "apiKey:header",
|
|
162
|
-
value: security?.apiKeyAuth7,
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
[
|
|
166
|
-
{
|
|
167
|
-
fieldName: "Authorization",
|
|
168
|
-
type: "apiKey:header",
|
|
169
|
-
value: security?.apiKeyAuth8,
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
[
|
|
173
|
-
{
|
|
174
|
-
fieldName: "Authorization",
|
|
175
|
-
type: "apiKey:header",
|
|
176
|
-
value: security?.apiKeyAuth9,
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
[
|
|
180
|
-
{
|
|
181
|
-
fieldName: "Authorization",
|
|
182
|
-
type: "apiKey:header",
|
|
183
|
-
value: security?.apiKeyAuth10,
|
|
184
|
-
},
|
|
185
|
-
],
|
|
186
|
-
[
|
|
187
|
-
{
|
|
188
|
-
fieldName: "Authorization",
|
|
189
|
-
type: "apiKey:header",
|
|
190
|
-
value: security?.apiKeyAuth11,
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
[
|
|
194
|
-
{
|
|
195
|
-
fieldName: "Authorization",
|
|
196
|
-
type: "apiKey:header",
|
|
197
|
-
value: security?.apiKeyAuth12,
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
[
|
|
201
|
-
{
|
|
202
|
-
fieldName: "Authorization",
|
|
203
|
-
type: "apiKey:header",
|
|
204
|
-
value: security?.apiKeyAuth13,
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
[
|
|
208
|
-
{
|
|
209
|
-
fieldName: "Authorization",
|
|
210
|
-
type: "apiKey:header",
|
|
211
|
-
value: security?.apiKeyAuth14,
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
137
|
);
|
|
215
138
|
|
|
216
139
|
const context = {
|
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "2.0.0",
|
|
72
|
-
sdkVersion: "2.0
|
|
72
|
+
sdkVersion: "2.1.0",
|
|
73
73
|
genVersion: "2.934.1",
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 2.0
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 2.1.0 2.934.1 2.0.0 botshield-sdk",
|
|
75
75
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -275,83 +275,6 @@ export function resolveGlobalSecurity(
|
|
|
275
275
|
value: security?.agentKeyAuth3,
|
|
276
276
|
},
|
|
277
277
|
],
|
|
278
|
-
[
|
|
279
|
-
{
|
|
280
|
-
fieldName: "Authorization",
|
|
281
|
-
type: "apiKey:header",
|
|
282
|
-
value: security?.agentKeyAuth4,
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
[
|
|
286
|
-
{
|
|
287
|
-
fieldName: "Authorization",
|
|
288
|
-
type: "apiKey:header",
|
|
289
|
-
value: security?.agentKeyAuth5,
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
[
|
|
293
|
-
{
|
|
294
|
-
fieldName: "Authorization",
|
|
295
|
-
type: "apiKey:header",
|
|
296
|
-
value: security?.agentKeyAuth6,
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
[
|
|
300
|
-
{
|
|
301
|
-
fieldName: "Authorization",
|
|
302
|
-
type: "apiKey:header",
|
|
303
|
-
value: security?.agentKeyAuth7,
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
[
|
|
307
|
-
{
|
|
308
|
-
fieldName: "Authorization",
|
|
309
|
-
type: "apiKey:header",
|
|
310
|
-
value: security?.agentKeyAuth8,
|
|
311
|
-
},
|
|
312
|
-
],
|
|
313
|
-
[
|
|
314
|
-
{
|
|
315
|
-
fieldName: "Authorization",
|
|
316
|
-
type: "apiKey:header",
|
|
317
|
-
value: security?.agentKeyAuth9,
|
|
318
|
-
},
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
{
|
|
322
|
-
fieldName: "Authorization",
|
|
323
|
-
type: "apiKey:header",
|
|
324
|
-
value: security?.agentKeyAuth10,
|
|
325
|
-
},
|
|
326
|
-
],
|
|
327
|
-
[
|
|
328
|
-
{
|
|
329
|
-
fieldName: "Authorization",
|
|
330
|
-
type: "apiKey:header",
|
|
331
|
-
value: security?.agentKeyAuth11,
|
|
332
|
-
},
|
|
333
|
-
],
|
|
334
|
-
[
|
|
335
|
-
{
|
|
336
|
-
fieldName: "Authorization",
|
|
337
|
-
type: "apiKey:header",
|
|
338
|
-
value: security?.agentKeyAuth12,
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
[
|
|
342
|
-
{
|
|
343
|
-
fieldName: "Authorization",
|
|
344
|
-
type: "apiKey:header",
|
|
345
|
-
value: security?.agentKeyAuth13,
|
|
346
|
-
},
|
|
347
|
-
],
|
|
348
|
-
[
|
|
349
|
-
{
|
|
350
|
-
fieldName: "Authorization",
|
|
351
|
-
type: "apiKey:header",
|
|
352
|
-
value: security?.agentKeyAuth14,
|
|
353
|
-
},
|
|
354
|
-
],
|
|
355
278
|
];
|
|
356
279
|
|
|
357
280
|
if (allowedFields) {
|
|
@@ -75,94 +75,6 @@ export const startCommand = buildCommand({
|
|
|
75
75
|
return z.string().parse(value);
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
|
-
"agent-key-auth4": {
|
|
79
|
-
kind: "parsed",
|
|
80
|
-
brief: "Sets the agentKeyAuth4 auth field for the API",
|
|
81
|
-
optional: true,
|
|
82
|
-
parse: (value) => {
|
|
83
|
-
return z.string().parse(value);
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
"agent-key-auth5": {
|
|
87
|
-
kind: "parsed",
|
|
88
|
-
brief: "Sets the agentKeyAuth5 auth field for the API",
|
|
89
|
-
optional: true,
|
|
90
|
-
parse: (value) => {
|
|
91
|
-
return z.string().parse(value);
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
"agent-key-auth6": {
|
|
95
|
-
kind: "parsed",
|
|
96
|
-
brief: "Sets the agentKeyAuth6 auth field for the API",
|
|
97
|
-
optional: true,
|
|
98
|
-
parse: (value) => {
|
|
99
|
-
return z.string().parse(value);
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
"agent-key-auth7": {
|
|
103
|
-
kind: "parsed",
|
|
104
|
-
brief: "Sets the agentKeyAuth7 auth field for the API",
|
|
105
|
-
optional: true,
|
|
106
|
-
parse: (value) => {
|
|
107
|
-
return z.string().parse(value);
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
"agent-key-auth8": {
|
|
111
|
-
kind: "parsed",
|
|
112
|
-
brief: "Sets the agentKeyAuth8 auth field for the API",
|
|
113
|
-
optional: true,
|
|
114
|
-
parse: (value) => {
|
|
115
|
-
return z.string().parse(value);
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
"agent-key-auth9": {
|
|
119
|
-
kind: "parsed",
|
|
120
|
-
brief: "Sets the agentKeyAuth9 auth field for the API",
|
|
121
|
-
optional: true,
|
|
122
|
-
parse: (value) => {
|
|
123
|
-
return z.string().parse(value);
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
"agent-key-auth10": {
|
|
127
|
-
kind: "parsed",
|
|
128
|
-
brief: "Sets the agentKeyAuth10 auth field for the API",
|
|
129
|
-
optional: true,
|
|
130
|
-
parse: (value) => {
|
|
131
|
-
return z.string().parse(value);
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
"agent-key-auth11": {
|
|
135
|
-
kind: "parsed",
|
|
136
|
-
brief: "Sets the agentKeyAuth11 auth field for the API",
|
|
137
|
-
optional: true,
|
|
138
|
-
parse: (value) => {
|
|
139
|
-
return z.string().parse(value);
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
"agent-key-auth12": {
|
|
143
|
-
kind: "parsed",
|
|
144
|
-
brief: "Sets the agentKeyAuth12 auth field for the API",
|
|
145
|
-
optional: true,
|
|
146
|
-
parse: (value) => {
|
|
147
|
-
return z.string().parse(value);
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
"agent-key-auth13": {
|
|
151
|
-
kind: "parsed",
|
|
152
|
-
brief: "Sets the agentKeyAuth13 auth field for the API",
|
|
153
|
-
optional: true,
|
|
154
|
-
parse: (value) => {
|
|
155
|
-
return z.string().parse(value);
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
"agent-key-auth14": {
|
|
159
|
-
kind: "parsed",
|
|
160
|
-
brief: "Sets the agentKeyAuth14 auth field for the API",
|
|
161
|
-
optional: true,
|
|
162
|
-
parse: (value) => {
|
|
163
|
-
return z.string().parse(value);
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
78
|
"server-url": {
|
|
167
79
|
kind: "parsed",
|
|
168
80
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -23,17 +23,6 @@ interface StartCommandFlags {
|
|
|
23
23
|
readonly "agent-key-auth1"?: string | undefined;
|
|
24
24
|
readonly "agent-key-auth2"?: string | undefined;
|
|
25
25
|
readonly "agent-key-auth3"?: string | undefined;
|
|
26
|
-
readonly "agent-key-auth4"?: string | undefined;
|
|
27
|
-
readonly "agent-key-auth5"?: string | undefined;
|
|
28
|
-
readonly "agent-key-auth6"?: string | undefined;
|
|
29
|
-
readonly "agent-key-auth7"?: string | undefined;
|
|
30
|
-
readonly "agent-key-auth8"?: string | undefined;
|
|
31
|
-
readonly "agent-key-auth9"?: string | undefined;
|
|
32
|
-
readonly "agent-key-auth10"?: string | undefined;
|
|
33
|
-
readonly "agent-key-auth11"?: string | undefined;
|
|
34
|
-
readonly "agent-key-auth12"?: string | undefined;
|
|
35
|
-
readonly "agent-key-auth13"?: string | undefined;
|
|
36
|
-
readonly "agent-key-auth14"?: string | undefined;
|
|
37
26
|
readonly "server-url"?: string;
|
|
38
27
|
readonly "server-index"?: SDKOptions["serverIdx"];
|
|
39
28
|
readonly "log-level": ConsoleLoggerLevel;
|
|
@@ -69,17 +58,6 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
69
58
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
70
59
|
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
71
60
|
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
72
|
-
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
73
|
-
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
74
|
-
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
75
|
-
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
76
|
-
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
77
|
-
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
78
|
-
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
79
|
-
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
80
|
-
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
81
|
-
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
82
|
-
agentKeyAuth14: flags["agent-key-auth14"] ?? "",
|
|
83
61
|
},
|
|
84
62
|
serverURL: flags["server-url"],
|
|
85
63
|
serverIdx: flags["server-index"],
|
|
@@ -106,17 +84,6 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
106
84
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
107
85
|
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
108
86
|
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
109
|
-
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
110
|
-
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
111
|
-
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
112
|
-
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
113
|
-
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
114
|
-
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
115
|
-
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
116
|
-
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
117
|
-
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
118
|
-
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
119
|
-
agentKeyAuth14: flags["agent-key-auth14"] ?? "",
|
|
120
87
|
},
|
|
121
88
|
serverURL: flags["server-url"],
|
|
122
89
|
serverIdx: flags["server-index"],
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,23 +14,7 @@ export const tool$actionsCancelAction: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "cancel_resolution",
|
|
15
15
|
description:
|
|
16
16
|
`Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsCancelAction(
|
|
@@ -14,23 +14,7 @@ export const tool$actionsCheckActionStatus: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "check_resolution_status",
|
|
15
15
|
description:
|
|
16
16
|
`Poll a proposed resolution (pass wait_seconds up to 25 to long-poll). Terminal states (approved/denied) carry the signed Proof of Resolution JWT — verify against BotShield's JWKS; the request_id is the JWT jti.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsCheckActionStatus(
|
|
@@ -14,23 +14,7 @@ export const tool$actionsProposeAction: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "propose_resolution",
|
|
15
15
|
description:
|
|
16
16
|
`Propose a human-presence-gated action to a BotShield user (Agents Ask). Returns a card_id immediately; the signed Proof of Resolution arrives async via the agent's registered callback, or poll check_resolution_status.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsProposeAction(
|