botshield-sdk 4.0.1 → 4.0.3
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 +3 -5
- package/bin/mcp-server.js +15 -13
- package/bin/mcp-server.js.map +19 -19
- package/dist/commonjs/funcs/census-confirm-link.d.ts +1 -1
- package/dist/commonjs/funcs/census-confirm-link.js +1 -1
- package/dist/commonjs/funcs/census-send-by-number.d.ts +1 -1
- package/dist/commonjs/funcs/census-send-by-number.js +1 -1
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -1
- package/dist/commonjs/funcs/verification-get-status.d.ts +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -12
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -13
- package/dist/commonjs/lib/config.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/models/bot-shield-action.d.ts +7 -7
- package/dist/commonjs/models/bot-shield-action.js +1 -1
- package/dist/commonjs/models/error-body.d.ts +1 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-create.d.ts +2 -2
- package/dist/commonjs/models/operations/gates-api-actions-list.d.ts +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +2 -2
- package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-update.d.ts +2 -2
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +2 -2
- package/dist/commonjs/models/operations/sdk-send-by-number.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +7 -7
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts +5 -0
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-list.js +2 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts +5 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-status.js +2 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +6 -6
- package/dist/commonjs/models/operations/verification-get-status.js +1 -1
- package/dist/commonjs/sdk/census.d.ts +3 -3
- package/dist/commonjs/sdk/census.js +3 -3
- package/dist/commonjs/sdk/verification.d.ts +1 -1
- package/dist/commonjs/sdk/verification.js +1 -1
- package/dist/esm/funcs/census-confirm-link.d.ts +1 -1
- package/dist/esm/funcs/census-confirm-link.js +1 -1
- package/dist/esm/funcs/census-send-by-number.d.ts +1 -1
- package/dist/esm/funcs/census-send-by-number.js +1 -1
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -1
- package/dist/esm/funcs/verification-get-status.d.ts +1 -1
- package/dist/esm/funcs/verification-get-status.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -12
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +2 -12
- package/dist/esm/lib/config.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/models/bot-shield-action.d.ts +7 -7
- package/dist/esm/models/bot-shield-action.js +1 -1
- package/dist/esm/models/error-body.d.ts +1 -1
- package/dist/esm/models/operations/actions-propose.d.ts +1 -1
- package/dist/esm/models/operations/gates-api-actions-create.d.ts +2 -2
- package/dist/esm/models/operations/gates-api-actions-list.d.ts +1 -1
- package/dist/esm/models/operations/gates-api-actions-request.d.ts +2 -2
- package/dist/esm/models/operations/gates-api-actions-set-state.d.ts +1 -1
- package/dist/esm/models/operations/gates-api-actions-update.d.ts +2 -2
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +2 -2
- package/dist/esm/models/operations/sdk-send-by-number.d.ts +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +7 -7
- package/dist/esm/models/operations/secured-accounts-list.d.ts +5 -0
- package/dist/esm/models/operations/secured-accounts-list.d.ts.map +1 -1
- package/dist/esm/models/operations/secured-accounts-list.js +2 -0
- package/dist/esm/models/operations/secured-accounts-list.js.map +1 -1
- package/dist/esm/models/operations/secured-accounts-status.d.ts +5 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -1
- package/dist/esm/models/operations/secured-accounts-status.js +2 -0
- package/dist/esm/models/operations/secured-accounts-status.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +6 -6
- package/dist/esm/models/operations/verification-get-status.js +1 -1
- package/dist/esm/sdk/census.d.ts +3 -3
- package/dist/esm/sdk/census.js +3 -3
- package/dist/esm/sdk/verification.d.ts +1 -1
- package/dist/esm/sdk/verification.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/census-confirm-link.ts +1 -1
- package/src/funcs/census-send-by-number.ts +1 -1
- package/src/funcs/census-verify-token.ts +1 -1
- package/src/funcs/verification-get-status.ts +1 -1
- package/src/lib/config.ts +2 -12
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/bot-shield-action.ts +7 -7
- package/src/models/error-body.ts +1 -1
- package/src/models/operations/actions-propose.ts +1 -1
- package/src/models/operations/gates-api-actions-create.ts +2 -2
- package/src/models/operations/gates-api-actions-list.ts +1 -1
- package/src/models/operations/gates-api-actions-request.ts +2 -2
- package/src/models/operations/gates-api-actions-set-state.ts +1 -1
- package/src/models/operations/gates-api-actions-update.ts +2 -2
- package/src/models/operations/sdk-create-verification-link.ts +2 -2
- package/src/models/operations/sdk-send-by-number.ts +1 -1
- package/src/models/operations/sdk-verify-token.ts +7 -7
- package/src/models/operations/secured-accounts-list.ts +7 -0
- package/src/models/operations/secured-accounts-status.ts +7 -0
- package/src/models/operations/verification-get-status.ts +6 -6
- package/src/sdk/census.ts +3 -3
- package/src/sdk/verification.ts +1 -1
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* Confirm a pending link
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
*
|
|
14
|
+
* On a key with “Pending until your server confirms” on, a link waits after the person's tap (account.link_pending). Confirm it from your server with your SECRET key, sending the account your own session shows. The same account makes the link live (account.link_live, account.secured) and returns the finished token on this response only. Another account is refused and the waiting link is dropped. A link not confirmed within 24 hours expires. You can also confirm by passing `partner_user_ref` to sdk/verify-token with your secret key.
|
|
15
15
|
*/
|
|
16
16
|
export declare function censusConfirmLink(client: BotShieldCore, security: operations.SDKConfirmLinkSecurity, request: operations.SDKConfirmLinkRequest, options?: RequestOptions): APIPromise<Result<operations.SDKConfirmLinkResponse, BotShieldError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=census-confirm-link.d.ts.map
|
|
@@ -50,7 +50,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
50
50
|
* Confirm a pending link
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* On a key with “Pending until your server confirms” on, a link waits after the person's tap (account.link_pending). Confirm it from your server with your SECRET key, sending the account your own session shows. The same account makes the link live (account.link_live, account.secured) and returns the finished token on this response only. Another account is refused and the waiting link is dropped. A link not confirmed within 24 hours expires. You can also confirm by passing `partner_user_ref` to sdk/verify-token with your secret key.
|
|
54
54
|
*/
|
|
55
55
|
function censusConfirmLink(client, security, request, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, security, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Send a request to verify by phone number
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* From your server, with your SECRET key, send a request to verify to the person whose BotShield ID carries this phone number. BotShield keeps none of your customer data: the number is used once and is not stored, logged or returned. The answer is the same whether or not anyone holds the number: status `sent`, the request id, its expiry and a two-digit `match_number` — show it to your customer; they pick it in the BotShield app before their passkey. Outcomes arrive as webhooks (or verification/status with this key): verified, declined, or expired. A person who has not linked your company first sees an introduction from you; your request can be answered only after they allow it. Production sends need a verified business. Limits: a cap per key per hour and on unanswered sends per company.
|
|
16
16
|
*/
|
|
17
17
|
export declare function censusSendByNumber(client: BotShieldCore, security: operations.SDKSendByNumberSecurity, request: operations.SDKSendByNumberRequest, options?: RequestOptions): APIPromise<Result<operations.SDKSendByNumberResponse, errors.ErrorResponse | BotShieldError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=census-send-by-number.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Send a request to verify by phone number
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
54
|
+
* From your server, with your SECRET key, send a request to verify to the person whose BotShield ID carries this phone number. BotShield keeps none of your customer data: the number is used once and is not stored, logged or returned. The answer is the same whether or not anyone holds the number: status `sent`, the request id, its expiry and a two-digit `match_number` — show it to your customer; they pick it in the BotShield app before their passkey. Outcomes arrive as webhooks (or verification/status with this key): verified, declined, or expired. A person who has not linked your company first sees an introduction from you; your request can be answered only after they allow it. Production sends need a verified business. Limits: a cap per key per hour and on unanswered sends per company.
|
|
55
55
|
*/
|
|
56
56
|
function censusSendByNumber(client, security, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, security, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Validate a verification token
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* 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 refused (`valid: false`, `replayed: true`). Check it once, on your server. Each token names its `kind` (`verification` or `action`) and the `environment` it was issued in. A token of any other kind is refused, and when you call with your secret key (`Authorization: Bearer bs_…`) a token from the other environment is refused (a development token never passes a production check). A refused token is not spent.
|
|
15
|
+
* 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 refused (`valid: false`, `replayed: true`). Check it once, on your server. Each token names its `kind` (`verification` or `action`) and the `environment` it was issued in. A token of any other kind is refused, and when you call with your secret key (`Authorization: Bearer bs_…`) a token from the other environment is refused (a development token never passes a production check). A refused token is not spent. The check needs your secret key (`Authorization: Bearer bs_…`); without it the answer is `valid: false, code: secret_key_required` and the token is not spent. Send `expected_request_id` (the request your server made) and a token for any other request is refused (`code: request_mismatch`), unspent. A passkey sign-in's token is refused here: redeem a sign-in with signin/confirm.
|
|
16
16
|
*/
|
|
17
17
|
export declare function censusVerifyToken(client: BotShieldCore, security: operations.SDKVerifyTokenSecurity, request: operations.SDKVerifyTokenRequest, options?: RequestOptions): APIPromise<Result<operations.SDKVerifyTokenResponse, errors.InvalidInputError | errors.ErrorResponse | BotShieldError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=census-verify-token.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Validate a verification token
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* 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 refused (`valid: false`, `replayed: true`). Check it once, on your server. Each token names its `kind` (`verification` or `action`) and the `environment` it was issued in. A token of any other kind is refused, and when you call with your secret key (`Authorization: Bearer bs_…`) a token from the other environment is refused (a development token never passes a production check). A refused token is not spent.
|
|
54
|
+
* 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 refused (`valid: false`, `replayed: true`). Check it once, on your server. Each token names its `kind` (`verification` or `action`) and the `environment` it was issued in. A token of any other kind is refused, and when you call with your secret key (`Authorization: Bearer bs_…`) a token from the other environment is refused (a development token never passes a production check). A refused token is not spent. The check needs your secret key (`Authorization: Bearer bs_…`); without it the answer is `valid: false, code: secret_key_required` and the token is not spent. Send `expected_request_id` (the request your server made) and a token for any other request is refused (`code: request_mismatch`), unspent. A passkey sign-in's token is refused here: redeem a sign-in with signin/confirm.
|
|
55
55
|
*/
|
|
56
56
|
function censusVerifyToken(client, security, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, security, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Check verification status
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Poll a verification request. Carries the signed attestation on completion and NO identity — no user_email, partner_user_id, auth_mode, or botshield_user_id ever cross this boundary. Called without a key, it is rate-limited per client address (a page polling every 2 seconds stays well inside it); over the limit the call is refused with HTTP 403 and `errors[0].code = "RATE_LIMITED"`.
|
|
15
|
+
* Poll a verification request. Carries the signed attestation on completion and NO identity — no user_email, partner_user_id, auth_mode, or botshield_user_id ever cross this boundary. Called without a key, it is rate-limited per client address (a page polling every 2 seconds stays well inside it); over the limit the call is refused with HTTP 403 and `errors[0].code = "RATE_LIMITED"`. Knowing the request id is not enough to read the finished tokens. A request started with a site key returns them only with its `read_secret` (`X-BotShield-Request-Secret`); a request your server started, only to your secret key. A passkey sign-in's tokens are never returned here.
|
|
16
16
|
*/
|
|
17
17
|
export declare function verificationGetStatus(client: BotShieldCore, security: operations.VerificationGetStatusSecurity, request: operations.VerificationGetStatusRequest, options?: RequestOptions): APIPromise<Result<operations.VerificationGetStatusResponse, errors.InvalidInputError | errors.ErrorResponse | BotShieldError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=verification-get-status.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Check verification status
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Poll a verification request. Carries the signed attestation on completion and NO identity — no user_email, partner_user_id, auth_mode, or botshield_user_id ever cross this boundary. Called without a key, it is rate-limited per client address (a page polling every 2 seconds stays well inside it); over the limit the call is refused with HTTP 403 and `errors[0].code = "RATE_LIMITED"`.
|
|
54
|
+
* Poll a verification request. Carries the signed attestation on completion and NO identity — no user_email, partner_user_id, auth_mode, or botshield_user_id ever cross this boundary. Called without a key, it is rate-limited per client address (a page polling every 2 seconds stays well inside it); over the limit the call is refused with HTTP 403 and `errors[0].code = "RATE_LIMITED"`. Knowing the request id is not enough to read the finished tokens. A request started with a site key returns them only with its `read_secret` (`X-BotShield-Request-Secret`); a request your server started, only to your secret key. A passkey sign-in's tokens are never returned here.
|
|
55
55
|
*/
|
|
56
56
|
function verificationGetStatus(client, security, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, security, request, options));
|
|
@@ -6,21 +6,11 @@ import { RetryConfig } from "./retries.js";
|
|
|
6
6
|
* Production (default)
|
|
7
7
|
*/
|
|
8
8
|
export declare const ServerProduction = "production";
|
|
9
|
-
/**
|
|
10
|
-
* Staging
|
|
11
|
-
*/
|
|
12
|
-
export declare const ServerStaging = "staging";
|
|
13
|
-
/**
|
|
14
|
-
* Local development
|
|
15
|
-
*/
|
|
16
|
-
export declare const ServerLocal = "local";
|
|
17
9
|
/**
|
|
18
10
|
* Contains the list of servers available to the SDK
|
|
19
11
|
*/
|
|
20
12
|
export declare const ServerList: {
|
|
21
13
|
readonly production: "https://api.botshield.ai/operations";
|
|
22
|
-
readonly staging: "https://wg-staging.botshield.ai/operations";
|
|
23
|
-
readonly local: "http://localhost:9991/operations";
|
|
24
14
|
};
|
|
25
15
|
export type SDKOptions = {
|
|
26
16
|
/**
|
|
@@ -51,8 +41,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
51
41
|
export declare const SDK_METADATA: {
|
|
52
42
|
readonly language: "typescript";
|
|
53
43
|
readonly openapiDocVersion: "2.0.0";
|
|
54
|
-
readonly sdkVersion: "4.0.
|
|
44
|
+
readonly sdkVersion: "4.0.3";
|
|
55
45
|
readonly genVersion: "2.934.1";
|
|
56
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.0.
|
|
46
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.0.3 2.934.1 2.0.0 botshield-sdk";
|
|
57
47
|
};
|
|
58
48
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C;;GAEG;AACH,eAAO,MAAM,UAAU;;CAEb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,UAAU,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAYpE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -3,28 +3,18 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SDK_METADATA = exports.ServerList = exports.
|
|
6
|
+
exports.SDK_METADATA = exports.ServerList = exports.ServerProduction = void 0;
|
|
7
7
|
exports.serverURLFromOptions = serverURLFromOptions;
|
|
8
8
|
const url_js_1 = require("./url.js");
|
|
9
9
|
/**
|
|
10
10
|
* Production (default)
|
|
11
11
|
*/
|
|
12
12
|
exports.ServerProduction = "production";
|
|
13
|
-
/**
|
|
14
|
-
* Staging
|
|
15
|
-
*/
|
|
16
|
-
exports.ServerStaging = "staging";
|
|
17
|
-
/**
|
|
18
|
-
* Local development
|
|
19
|
-
*/
|
|
20
|
-
exports.ServerLocal = "local";
|
|
21
13
|
/**
|
|
22
14
|
* Contains the list of servers available to the SDK
|
|
23
15
|
*/
|
|
24
16
|
exports.ServerList = {
|
|
25
17
|
[exports.ServerProduction]: "https://api.botshield.ai/operations",
|
|
26
|
-
[exports.ServerStaging]: "https://wg-staging.botshield.ai/operations",
|
|
27
|
-
[exports.ServerLocal]: "http://localhost:9991/operations",
|
|
28
18
|
};
|
|
29
19
|
function serverURLFromOptions(options) {
|
|
30
20
|
let serverURL = options.serverURL;
|
|
@@ -39,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
39
29
|
exports.SDK_METADATA = {
|
|
40
30
|
language: "typescript",
|
|
41
31
|
openapiDocVersion: "2.0.0",
|
|
42
|
-
sdkVersion: "4.0.
|
|
32
|
+
sdkVersion: "4.0.3",
|
|
43
33
|
genVersion: "2.934.1",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 4.0.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 4.0.3 2.934.1 2.0.0 botshield-sdk",
|
|
45
35
|
};
|
|
46
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAMH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAC7C;;GAEG;AACU,QAAA,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAMH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAC7C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,CAAC,QAAA,gBAAgB,CAAC,EAAE,qCAAqC;CACjD,CAAC;AA6BX,8BAAqC,OAAmB,EAAc;IACpE,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,QAAA,gBAAgB,CAAC;QAClD,SAAS,GAAG,QAAA,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "4.0.
|
|
25
|
+
currentVersion: "4.0.3",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -15,7 +15,7 @@ const actions_propose_action_js_1 = require("./tools/actions-propose-action.js")
|
|
|
15
15
|
function createMCPServer(deps) {
|
|
16
16
|
const server = new mcp_js_1.McpServer({
|
|
17
17
|
name: "BotShield",
|
|
18
|
-
version: "4.0.
|
|
18
|
+
version: "4.0.3",
|
|
19
19
|
});
|
|
20
20
|
const client = new core_js_1.BotShieldCore({
|
|
21
21
|
security: deps.security,
|
|
@@ -19,7 +19,7 @@ export declare const BotShieldActionEnvironment: {
|
|
|
19
19
|
};
|
|
20
20
|
export type BotShieldActionEnvironment = OpenEnum<typeof BotShieldActionEnvironment>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* `action` (a BotShield Action), `recovery` (your one Recovery Action: only your customer starts it, from the Recover Account with BotShield button) or `signin` (your one Sign-on Action: only signin/request starts it). Recovery and Sign-on Actions are placed in the Console; no `act`, server ask, send by number or staff send reaches them (`action_is_recovery` / `action_is_signin`). `action` on an engine before 4.0.
|
|
23
23
|
*/
|
|
24
24
|
export declare const BotShieldActionKind: {
|
|
25
25
|
readonly Action: "action";
|
|
@@ -27,7 +27,7 @@ export declare const BotShieldActionKind: {
|
|
|
27
27
|
readonly Signin: "signin";
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* `action` (a BotShield Action), `recovery` (your one Recovery Action: only your customer starts it, from the Recover Account with BotShield button) or `signin` (your one Sign-on Action: only signin/request starts it). Recovery and Sign-on Actions are placed in the Console; no `act`, server ask, send by number or staff send reaches them (`action_is_recovery` / `action_is_signin`). `action` on an engine before 4.0.
|
|
31
31
|
*/
|
|
32
32
|
export type BotShieldActionKind = OpenEnum<typeof BotShieldActionKind>;
|
|
33
33
|
/**
|
|
@@ -59,23 +59,23 @@ export type BotShieldAction = {
|
|
|
59
59
|
*/
|
|
60
60
|
staffCanSend?: boolean | undefined;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* `action` (a BotShield Action), `recovery` (your one Recovery Action: only your customer starts it, from the Recover Account with BotShield button) or `signin` (your one Sign-on Action: only signin/request starts it). Recovery and Sign-on Actions are placed in the Console; no `act`, server ask, send by number or staff send reaches them (`action_is_recovery` / `action_is_signin`). `action` on an engine before 4.0.
|
|
63
63
|
*/
|
|
64
64
|
kind?: BotShieldActionKind | undefined;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* On a Sign-on Action, whether BotShield's own QR may finish a sign-in (default off: your page's passkey only). Always false on other kinds.
|
|
67
67
|
*/
|
|
68
68
|
signinQr?: boolean | undefined;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* A Recovery Action's new landing address while it waits to take effect (24 hours in Production; every admin is told). `where_url` is the address in effect until then.
|
|
71
71
|
*/
|
|
72
72
|
pendingWhereUrl?: string | null | undefined;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* When `pending_where_url` takes effect.
|
|
75
75
|
*/
|
|
76
76
|
pendingWhereUrlAt?: Date | null | undefined;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* High-value. It starts only from your customer's signed-in session (your server naming the account by your own reference); by phone number or by staff it is refused (`action_requires_signed_in`). Set with `highValue` on create or update.
|
|
79
79
|
*/
|
|
80
80
|
highValue?: boolean | undefined;
|
|
81
81
|
};
|
|
@@ -56,7 +56,7 @@ exports.BotShieldActionEnvironment = {
|
|
|
56
56
|
Production: "production",
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* `action` (a BotShield Action), `recovery` (your one Recovery Action: only your customer starts it, from the Recover Account with BotShield button) or `signin` (your one Sign-on Action: only signin/request starts it). Recovery and Sign-on Actions are placed in the Console; no `act`, server ask, send by number or staff send reaches them (`action_is_recovery` / `action_is_signin`). `action` on an engine before 4.0.
|
|
60
60
|
*/
|
|
61
61
|
exports.BotShieldActionKind = {
|
|
62
62
|
Action: "action",
|
|
@@ -24,7 +24,7 @@ export type ErrorBody = {
|
|
|
24
24
|
message: string;
|
|
25
25
|
statusCode: number;
|
|
26
26
|
/**
|
|
27
|
-
* `ttl_below_floor`, `ttl_above_ceiling`, `trust_layer_rejected`, `trust_layer_unavailable`, `gate_required`, `alias_retired`, `RATE_LIMITED`, `inline_not_for_age_gate`, `act_label_has_link`, and in
|
|
27
|
+
* `ttl_below_floor`, `ttl_above_ceiling`, `trust_layer_rejected`, `trust_layer_unavailable`, `gate_required`, `alias_retired`, `RATE_LIMITED`, `inline_not_for_age_gate`, `act_label_has_link`, and in `link_requires_server_session`, `account_override_refused`, `action_is_recovery`, `action_is_signin`, `invalid_key`, `recovery_code_invalid`, `handle_invalid`, `signin_not_set_up`, `not_verified`, `account_paused`, `signin_unknown`, `signin_pending`, `signin_refused`, `signin_expired`, `signin_used`, `signin_wrong_account`, `unavailable`.
|
|
28
28
|
*/
|
|
29
29
|
code?: string | undefined;
|
|
30
30
|
minTtlSeconds?: number | undefined;
|
|
@@ -51,7 +51,7 @@ export type ActionsProposeRequest = {
|
|
|
51
51
|
*/
|
|
52
52
|
userEmail?: string | undefined;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The person's phone number, in place of `opaque_id` / `botshield_user_id` / `user_email` (never together with them). Used for one lookup, then dropped: never stored, logged or sent in a webhook. The answer is the same whether or not anyone holds the number. Show the returned `match_number` to the person; they pick it in the app before approving. A person not yet linked to your company gets an introduction first, never the card; the ask is held and becomes the card if they allow. An ask nobody answers reads `queued`, then `expired`. Production needs a verified business.
|
|
55
55
|
*/
|
|
56
56
|
phoneNumber?: string | undefined;
|
|
57
57
|
action: ActionsProposeAction;
|
|
@@ -23,7 +23,7 @@ export type GatesApiActionsCreateRequest = {
|
|
|
23
23
|
*/
|
|
24
24
|
staffCanSend?: boolean | undefined;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* High-value. It starts only from your customer's signed-in session (your server naming the account by your own reference). It is refused by phone number and for staff sends (`action_requires_signed_in`).
|
|
27
27
|
*/
|
|
28
28
|
highValue?: boolean | undefined;
|
|
29
29
|
};
|
|
@@ -41,7 +41,7 @@ export type GatesApiActionsCreateData = {
|
|
|
41
41
|
error?: models.GatesApiError | undefined;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
|
-
* The placed action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_key_taken` (409), `not_migrated` (503 — `staffCanSend` is not available yet), `internal` (500).
|
|
44
|
+
* The placed action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_key_taken` (409), `not_migrated` (503 — `staffCanSend` is not available yet), `internal` (500). Each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
45
45
|
*/
|
|
46
46
|
export type GatesApiActionsCreateResponse = {
|
|
47
47
|
data: GatesApiActionsCreateData;
|
|
@@ -16,7 +16,7 @@ export type GatesApiActionsListData = {
|
|
|
16
16
|
error?: models.GatesApiError | undefined;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Actions. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `internal` (500). Each action carries `staff_can_send`.
|
|
19
|
+
* Actions. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `internal` (500). Each action carries `staff_can_send`. Each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
20
20
|
*/
|
|
21
21
|
export type GatesApiActionsListResponse = {
|
|
22
22
|
data: GatesApiActionsListData;
|
|
@@ -32,7 +32,7 @@ export type GatesApiActionsRequestRequest = {
|
|
|
32
32
|
*/
|
|
33
33
|
partnerUserRef?: string | undefined;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* The person's phone number, in place of `partner_user_ref` (exactly one of the two). Used for one lookup, then dropped: never stored, logged or sent in a webhook. The answer is the same whether or not anyone holds the number. Show the returned `match_number` to the person; they pick it in the app before approving. A person not yet linked to your company gets an introduction first, never the card; the ask is held and becomes the card if they allow. An ask nobody answers reads `queued`, then `expired`. Production needs a verified business.
|
|
36
36
|
*/
|
|
37
37
|
phoneNumber?: string | undefined;
|
|
38
38
|
/**
|
|
@@ -73,7 +73,7 @@ export type GatesApiActionsRequestData = {
|
|
|
73
73
|
error?: models.GatesApiError | undefined;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
|
-
* Queued. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401), `gates_scope_required` (403), `org_not_found` (404), `action_invalid` (400), `action_not_found` (404), `action_off` (404), `agent_not_found` (404), `not_linked` (409 — the person isn't linked to your company), `details_invalid` (400), `agent_removed_by_person` (409 — the person removed this agent), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone, so they must confirm this account with BotShield again from your signed-in page before anything can be sent to them; nothing is counted or sent), `request_id_reused` (409 — also when the same request_id is sent with other terms), `too_many_open_requests` (429 — this person already has 5 of your requests waiting; carries `retry_after_seconds`), `daily_request_limit` (429 — 50 requests to this person in 24 hours; carries `retry_after_seconds`), `request_limit_unavailable` (503 — the request could not be counted, so it was not sent; retry), `one_addressee_required` (400 — send exactly one of partner_user_ref and phone_number), `phone_invalid` (400), `org_not_verified` (403 — by phone number in production), `send_rate_limited` (429 — asks by phone number per key per hour), `unanswered_limit_reached` (429 — too many unanswered asks by phone number in 24 hours), `unavailable` (503), `internal` (500).
|
|
76
|
+
* Queued. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401), `gates_scope_required` (403), `org_not_found` (404), `action_invalid` (400), `action_not_found` (404), `action_off` (404), `agent_not_found` (404), `not_linked` (409 — the person isn't linked to your company), `details_invalid` (400), `agent_removed_by_person` (409 — the person removed this agent), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone, so they must confirm this account with BotShield again from your signed-in page before anything can be sent to them; nothing is counted or sent), `request_id_reused` (409 — also when the same request_id is sent with other terms), `too_many_open_requests` (429 — this person already has 5 of your requests waiting; carries `retry_after_seconds`), `daily_request_limit` (429 — 50 requests to this person in 24 hours; carries `retry_after_seconds`), `request_limit_unavailable` (503 — the request could not be counted, so it was not sent; retry), `one_addressee_required` (400 — send exactly one of partner_user_ref and phone_number), `phone_invalid` (400), `org_not_verified` (403 — by phone number in production), `send_rate_limited` (429 — asks by phone number per key per hour), `unanswered_limit_reached` (429 — too many unanswered asks by phone number in 24 hours), `unavailable` (503), `internal` (500). `action_is_recovery` / `action_is_signin` (404 — that act is your Recovery Action or Sign-on Action, which no request starts).
|
|
77
77
|
*/
|
|
78
78
|
export type GatesApiActionsRequestResponse = {
|
|
79
79
|
data: GatesApiActionsRequestData;
|
|
@@ -32,7 +32,7 @@ export type GatesApiActionsSetStateData = {
|
|
|
32
32
|
error?: models.GatesApiError | undefined;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_not_found` (404), `internal` (500). Each action carries `staff_can_send`.
|
|
35
|
+
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_not_found` (404), `internal` (500). Each action carries `staff_can_send`. Each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
36
36
|
*/
|
|
37
37
|
export type GatesApiActionsSetStateResponse = {
|
|
38
38
|
data: GatesApiActionsSetStateData;
|
|
@@ -19,7 +19,7 @@ export type GatesApiActionsUpdateRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
staffCanSend?: boolean | undefined;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* High-value. It starts only from your customer's signed-in session (your server naming the account by your own reference). It is refused by phone number and for staff sends (`action_requires_signed_in`).
|
|
23
23
|
*/
|
|
24
24
|
highValue?: boolean | undefined;
|
|
25
25
|
};
|
|
@@ -37,7 +37,7 @@ export type GatesApiActionsUpdateData = {
|
|
|
37
37
|
error?: models.GatesApiError | undefined;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `nothing_to_change` (400), `action_not_found` (404), `not_migrated` (503), `internal` (500).
|
|
40
|
+
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `nothing_to_change` (400), `action_not_found` (404), `not_migrated` (503), `internal` (500). Each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
41
41
|
*/
|
|
42
42
|
export type GatesApiActionsUpdateResponse = {
|
|
43
43
|
data: GatesApiActionsUpdateData;
|
|
@@ -165,7 +165,7 @@ export type SDKCreateVerificationLinkNotarizeFallbackReason = OpenEnum<typeof SD
|
|
|
165
165
|
export type SDKCreateVerificationLinkDataData = {
|
|
166
166
|
requestId: string;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Only on a request started with your site key (`pk_…`, a page's grant). The one secret that reads this request's answer: send it as `X-BotShield-Request-Secret` to verification/status, which returns the finished tokens only with it. Returned once, here; BotShield keeps only its hash. A request your server started with its secret key has none (its tokens go to that key).
|
|
169
169
|
*/
|
|
170
170
|
readSecret?: string | undefined;
|
|
171
171
|
deepLink: string;
|
|
@@ -231,7 +231,7 @@ export type SDKCreateVerificationLinkData = {
|
|
|
231
231
|
error?: models.ErrorBody | undefined;
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
234
|
-
* Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification). BotShield Actions and linking codes (`data.error.code`): `act_label_without_act` (400), `act_label_has_link` (400 — `act_label` may not contain a link, a domain or a URI scheme), `action_not_a_gate` (400), `action_invalid` (400 — act malformed), `action_not_found` (400 — no action with that key here), `action_off` (409), `action_requires_user_ref` (400), `link_requires_user_ref` (400 — the gate's policy is `link: required` and no partner_user_ref was sent), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone; only the link ceremony (`notarize`) can be started for this partner_user_ref until they confirm the account again from your signed-in page). A development key over its limit: `RATE_LIMITED`.
|
|
234
|
+
* Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification). BotShield Actions and linking codes (`data.error.code`): `act_label_without_act` (400), `act_label_has_link` (400 — `act_label` may not contain a link, a domain or a URI scheme), `action_not_a_gate` (400), `action_invalid` (400 — act malformed), `action_not_found` (400 — no action with that key here), `action_off` (409), `action_requires_user_ref` (400), `link_requires_user_ref` (400 — the gate's policy is `link: required` and no partner_user_ref was sent), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone; only the link ceremony (`notarize`) can be started for this partner_user_ref until they confirm the account again from your signed-in page). A development key over its limit: `RATE_LIMITED`. `link_requires_server_session` (403 — a request on a site-key grant that would write a NEW link: a `notarize` ceremony, or an `act` on an account not linked here yet; open the session from your server with your secret key, naming the signed-in customer), `account_override_refused` (403 — `partner_user_ref` names a different account from the one the session names), `action_is_recovery` / `action_is_signin` (400 — that `act` is your Recovery Action or your Sign-on Action, which no request starts), and 503 when BotShield could not tell whether the account is already linked (nothing was written; retry).
|
|
235
235
|
*/
|
|
236
236
|
export type SDKCreateVerificationLinkResponse = {
|
|
237
237
|
data: SDKCreateVerificationLinkData;
|
|
@@ -43,7 +43,7 @@ export type SDKSendByNumberData = {
|
|
|
43
43
|
error?: SDKSendByNumberError | undefined;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* Result. NOTE: handler errors arrive here (HTTP 200) as data.error — codes: secret_key_required · invalid_key · phone_invalid · action_invalid · action_not_found · action_off · act_label_has_link · org_not_verified · send_rate_limited · unanswered_limit_reached · unavailable.
|
|
46
|
+
* Result. NOTE: handler errors arrive here (HTTP 200) as data.error — codes: secret_key_required · invalid_key · phone_invalid · action_invalid · action_not_found · action_off · act_label_has_link · org_not_verified · send_rate_limited · unanswered_limit_reached · unavailable. Action_is_recovery · action_is_signin (400 — your Recovery Action and Sign-on Action are never sent).
|
|
47
47
|
*/
|
|
48
48
|
export type SDKSendByNumberResponse = {
|
|
49
49
|
data?: SDKSendByNumberData | undefined;
|
|
@@ -17,11 +17,11 @@ export type SDKVerifyTokenRequest = {
|
|
|
17
17
|
*/
|
|
18
18
|
audience?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* With your secret key, on a token whose link is pending, this confirms the link (same as sdk/confirm-link). The answer's `link` says whether it went live.
|
|
21
21
|
*/
|
|
22
22
|
partnerUserRef?: string | undefined;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The request YOUR server made for this attempt. When given, a token for any other request is refused (`valid: false`, `code: request_mismatch`) and is not spent.
|
|
25
25
|
*/
|
|
26
26
|
expectedRequestId?: string | undefined;
|
|
27
27
|
};
|
|
@@ -100,11 +100,11 @@ export type Claims = {
|
|
|
100
100
|
*/
|
|
101
101
|
environment?: SDKVerifyTokenEnvironment | null | undefined;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Present for 72 hours after this verified account was recovered with Recover Account with BotShield: when it was recovered. Only when `trusted` is true.
|
|
104
104
|
*/
|
|
105
105
|
recoveredAt?: Date | undefined;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Where the link stood for this token: `pending`, `live`, `expired` or `refused`. Absent on a plain check.
|
|
108
108
|
*/
|
|
109
109
|
linkState?: string | undefined;
|
|
110
110
|
};
|
|
@@ -126,7 +126,7 @@ export declare const SDKVerifyTokenState: {
|
|
|
126
126
|
};
|
|
127
127
|
export type SDKVerifyTokenState = OpenEnum<typeof SDKVerifyTokenState>;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Present only on a token whose link waited for your server. `pending`: not confirmed (send your secret key and `partner_user_ref`, or call sdk/confirm-link). `live` with `confirmed: true`: this check confirmed it. `not_live`: the confirm was refused (`code`).
|
|
130
130
|
*/
|
|
131
131
|
export type SDKVerifyTokenLink = {
|
|
132
132
|
state?: SDKVerifyTokenState | undefined;
|
|
@@ -146,7 +146,7 @@ export type SDKVerifyTokenDataData = {
|
|
|
146
146
|
*/
|
|
147
147
|
reason?: string | undefined;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* On some refusals (`valid: false`), a code beside `reason`: `secret_key_required` (called without your secret key; the token was not spent), `request_mismatch` (the token is for another request than `expected_request_id`; not spent).
|
|
150
150
|
*/
|
|
151
151
|
code?: string | undefined;
|
|
152
152
|
/**
|
|
@@ -163,7 +163,7 @@ export type SDKVerifyTokenDataData = {
|
|
|
163
163
|
*/
|
|
164
164
|
verdict?: SDKVerifyTokenVerdict | undefined;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Present only on a token whose link waited for your server. `pending`: not confirmed (send your secret key and `partner_user_ref`, or call sdk/confirm-link). `live` with `confirmed: true`: this check confirmed it. `not_live`: the confirm was refused (`code`).
|
|
167
167
|
*/
|
|
168
168
|
link?: SDKVerifyTokenLink | undefined;
|
|
169
169
|
};
|
|
@@ -77,6 +77,10 @@ export type Row = {
|
|
|
77
77
|
* The Link with BotShield ID surface the account was secured through; null when it was secured at a Gate.
|
|
78
78
|
*/
|
|
79
79
|
surfaceId: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* True while the person's number changed without approval from another phone: this account answers nothing (refusals say account_reconfirm_required) until your signed-in link ceremony completes again. Never true for an unlinked account.
|
|
82
|
+
*/
|
|
83
|
+
paused: boolean;
|
|
80
84
|
};
|
|
81
85
|
/**
|
|
82
86
|
* Your API key's environment.
|
|
@@ -165,6 +169,7 @@ export type Row$Outbound = {
|
|
|
165
169
|
unlinked_by: string | null;
|
|
166
170
|
unlink_reason: string | null;
|
|
167
171
|
surface_id: string | null;
|
|
172
|
+
paused: boolean;
|
|
168
173
|
};
|
|
169
174
|
/** @internal */
|
|
170
175
|
export declare const Row$outboundSchema: z.ZodType<Row$Outbound, z.ZodTypeDef, Row>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-accounts-list.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;CAIlC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,YAAY,EAAE,+BAA+B,GAAG,IAAI,CAAC;IACrD;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"secured-accounts-list.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OA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AC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAIvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AACD,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,gCAAgC,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAG3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -161,6 +161,7 @@ exports.Row$inboundSchema = z
|
|
|
161
161
|
unlinked_by: types.nullable(exports.UnlinkedBy$inboundSchema),
|
|
162
162
|
unlink_reason: types.nullable(exports.SecuredAccountsListUnlinkReason$inboundSchema),
|
|
163
163
|
surface_id: types.nullable(types.string()),
|
|
164
|
+
paused: types.boolean(),
|
|
164
165
|
}).transform((v) => {
|
|
165
166
|
return (0, primitives_js_1.remap)(v, {
|
|
166
167
|
"secured_at": "securedAt",
|
|
@@ -180,6 +181,7 @@ exports.Row$outboundSchema = z
|
|
|
180
181
|
unlinkedBy: z.nullable(exports.UnlinkedBy$outboundSchema),
|
|
181
182
|
unlinkReason: z.nullable(exports.SecuredAccountsListUnlinkReason$outboundSchema),
|
|
182
183
|
surfaceId: z.nullable(z.string()),
|
|
184
|
+
paused: z.boolean(),
|
|
183
185
|
}).transform((v) => {
|
|
184
186
|
return (0, primitives_js_1.remap)(v, {
|
|
185
187
|
securedAt: "secured_at",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-accounts-list.js","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-list.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,CAAC,mCAAe;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,MAAY,SAAS,iDAA6B;AAGlD,MAAY,KAAK,sDAAkC;AAEnD,MAAY,MAAM,wCAAoB;AAMtC;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAyBE,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX;;GAEG;AACU,QAAA,+BAA+B,GAAG;IAC7C,iBAAiB,EAAE,oBAAoB;IACvC,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;
|
|
1
|
+
{"version":3,"file":"secured-accounts-list.js","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-list.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,CAAC,mCAAe;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,MAAY,SAAS,iDAA6B;AAGlD,MAAY,KAAK,sDAAkC;AAEnD,MAAY,MAAM,wCAAoB;AAMtC;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC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