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
|
@@ -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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SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,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"}
|
|
@@ -113,6 +113,7 @@ export const Row$inboundSchema = z
|
|
|
113
113
|
unlinked_by: types.nullable(UnlinkedBy$inboundSchema),
|
|
114
114
|
unlink_reason: types.nullable(SecuredAccountsListUnlinkReason$inboundSchema),
|
|
115
115
|
surface_id: types.nullable(types.string()),
|
|
116
|
+
paused: types.boolean(),
|
|
116
117
|
}).transform((v) => {
|
|
117
118
|
return remap$(v, {
|
|
118
119
|
"secured_at": "securedAt",
|
|
@@ -132,6 +133,7 @@ export const Row$outboundSchema = z
|
|
|
132
133
|
unlinkedBy: z.nullable(UnlinkedBy$outboundSchema),
|
|
133
134
|
unlinkReason: z.nullable(SecuredAccountsListUnlinkReason$outboundSchema),
|
|
134
135
|
surfaceId: z.nullable(z.string()),
|
|
136
|
+
paused: z.boolean(),
|
|
135
137
|
}).transform((v) => {
|
|
136
138
|
return remap$(v, {
|
|
137
139
|
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,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAMtC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAyBX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,+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,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE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O,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AAAA,CACH"}
|
|
@@ -24,6 +24,10 @@ export type SecuredAccountsStatusDataData = {
|
|
|
24
24
|
* When recent presence lapses (in the past when `stale`); null when `none`.
|
|
25
25
|
*/
|
|
26
26
|
freshUntil: Date | null;
|
|
27
|
+
/**
|
|
28
|
+
* 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. null when it can't be read; false when there is no live account.
|
|
29
|
+
*/
|
|
30
|
+
paused?: boolean | null | undefined;
|
|
27
31
|
};
|
|
28
32
|
export type SecuredAccountsStatusData = {
|
|
29
33
|
data?: SecuredAccountsStatusDataData | undefined;
|
|
@@ -68,6 +72,7 @@ export declare const SecuredAccountsStatusDataData$inboundSchema: z.ZodType<Secu
|
|
|
68
72
|
export type SecuredAccountsStatusDataData$Outbound = {
|
|
69
73
|
state: string;
|
|
70
74
|
fresh_until: string | null;
|
|
75
|
+
paused?: boolean | null | undefined;
|
|
71
76
|
};
|
|
72
77
|
/** @internal */
|
|
73
78
|
export declare const SecuredAccountsStatusDataData$outboundSchema: z.ZodType<SecuredAccountsStatusDataData$Outbound, z.ZodTypeDef, SecuredAccountsStatusDataData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-accounts-status.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-status.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,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,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"secured-accounts-status.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-status.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,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,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,S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AkB,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAIzB,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AACD,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE;AAED,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,IAAI,EAAE,kCAAkC,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAG7B,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AACD,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -64,6 +64,7 @@ export const SecuredAccountsStatusState$outboundSchema = openEnums.outboundSchem
|
|
|
64
64
|
export const SecuredAccountsStatusDataData$inboundSchema = z.object({
|
|
65
65
|
state: SecuredAccountsStatusState$inboundSchema,
|
|
66
66
|
fresh_until: types.nullable(types.date()),
|
|
67
|
+
paused: z.nullable(types.boolean()).optional(),
|
|
67
68
|
}).transform((v) => {
|
|
68
69
|
return remap$(v, {
|
|
69
70
|
"fresh_until": "freshUntil",
|
|
@@ -73,6 +74,7 @@ export const SecuredAccountsStatusDataData$inboundSchema = z.object({
|
|
|
73
74
|
export const SecuredAccountsStatusDataData$outboundSchema = z.object({
|
|
74
75
|
state: SecuredAccountsStatusState$outboundSchema,
|
|
75
76
|
freshUntil: z.nullable(z.date().transform(v => v.toISOString())),
|
|
77
|
+
paused: z.nullable(z.boolean()).optional(),
|
|
76
78
|
}).transform((v) => {
|
|
77
79
|
return remap$(v, {
|
|
78
80
|
freshUntil: "fresh_until",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-accounts-status.js","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAatC,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;
|
|
1
|
+
{"version":3,"file":"secured-accounts-status.js","sourceRoot":"","sources":["../../../../src/models/operations/secured-accounts-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAatC,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,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CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AAAA,CACH"}
|
|
@@ -10,7 +10,7 @@ export type VerificationGetStatusSecurity = {
|
|
|
10
10
|
export type VerificationGetStatusRequest = {
|
|
11
11
|
requestId: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `read_secret` create-verification-link returned for a request started with your site key. Without it such a request's `verification_token` / `signed_token` are never returned. A request your server started reads them with your secret key (`Authorization: Bearer bs_…`) instead. A passkey sign-in's answer is never returned here (use signin/confirm).
|
|
14
14
|
*/
|
|
15
15
|
xBotShieldRequestSecret?: string | undefined;
|
|
16
16
|
};
|
|
@@ -142,7 +142,7 @@ export declare const VerificationGetStatusGateType: {
|
|
|
142
142
|
*/
|
|
143
143
|
export type VerificationGetStatusGateType = OpenEnum<typeof VerificationGetStatusGateType>;
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* Where the link stands on this request. Null on a plain check and on a link from before 4.0. A pass whose link is not live carries no destination.
|
|
146
146
|
*/
|
|
147
147
|
export declare const LinkState: {
|
|
148
148
|
readonly Pending: "pending";
|
|
@@ -151,7 +151,7 @@ export declare const LinkState: {
|
|
|
151
151
|
readonly Refused: "refused";
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Where the link stands on this request. Null on a plain check and on a link from before 4.0. A pass whose link is not live carries no destination.
|
|
155
155
|
*/
|
|
156
156
|
export type LinkState = OpenEnum<typeof LinkState>;
|
|
157
157
|
export type VerificationGetStatusData = {
|
|
@@ -239,15 +239,15 @@ export type VerificationGetStatusData = {
|
|
|
239
239
|
*/
|
|
240
240
|
ageSource?: string | null | undefined;
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* Where the link stands on this request. Null on a plain check and on a link from before 4.0. A pass whose link is not live carries no destination.
|
|
243
243
|
*/
|
|
244
244
|
linkState?: LinkState | null | undefined;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* When a pending link expires (24 hours after the tap). Null unless `link_state` is `pending`.
|
|
247
247
|
*/
|
|
248
248
|
linkExpiresAt?: Date | null | undefined;
|
|
249
249
|
/**
|
|
250
|
-
*
|
|
250
|
+
* `link_pending` while the link waits for your server.
|
|
251
251
|
*/
|
|
252
252
|
linkCode?: string | undefined;
|
|
253
253
|
linkMessage?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export const VerificationGetStatusGateType = {
|
|
|
53
53
|
Age: "age",
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Where the link stands on this request. Null on a plain check and on a link from before 4.0. A pass whose link is not live carries no destination.
|
|
57
57
|
*/
|
|
58
58
|
export const LinkState = {
|
|
59
59
|
Pending: "pending",
|
package/dist/esm/sdk/census.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class Census extends ClientSDK {
|
|
|
21
21
|
* Validate a verification token
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* 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.
|
|
24
|
+
* 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.
|
|
25
25
|
*/
|
|
26
26
|
verifyToken(security: operations.SDKVerifyTokenSecurity, request: operations.SDKVerifyTokenRequest, options?: RequestOptions): Promise<operations.SDKVerifyTokenResponse>;
|
|
27
27
|
/**
|
|
@@ -60,14 +60,14 @@ export declare class Census extends ClientSDK {
|
|
|
60
60
|
* Confirm a pending link
|
|
61
61
|
*
|
|
62
62
|
* @remarks
|
|
63
|
-
*
|
|
63
|
+
* 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.
|
|
64
64
|
*/
|
|
65
65
|
confirmLink(security: operations.SDKConfirmLinkSecurity, request: operations.SDKConfirmLinkRequest, options?: RequestOptions): Promise<operations.SDKConfirmLinkResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Send a request to verify by phone number
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
*
|
|
70
|
+
* 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.
|
|
71
71
|
*/
|
|
72
72
|
sendByNumber(security: operations.SDKSendByNumberSecurity, request: operations.SDKSendByNumberRequest, options?: RequestOptions): Promise<operations.SDKSendByNumberResponse>;
|
|
73
73
|
}
|
package/dist/esm/sdk/census.js
CHANGED
|
@@ -38,7 +38,7 @@ export class Census extends ClientSDK {
|
|
|
38
38
|
* Validate a verification token
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* 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.
|
|
41
|
+
* 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.
|
|
42
42
|
*/
|
|
43
43
|
async verifyToken(security, request, options) {
|
|
44
44
|
return unwrapAsync(censusVerifyToken(this, security, request, options));
|
|
@@ -89,7 +89,7 @@ export class Census extends ClientSDK {
|
|
|
89
89
|
* Confirm a pending link
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
*
|
|
92
|
+
* 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.
|
|
93
93
|
*/
|
|
94
94
|
async confirmLink(security, request, options) {
|
|
95
95
|
return unwrapAsync(censusConfirmLink(this, security, request, options));
|
|
@@ -98,7 +98,7 @@ export class Census extends ClientSDK {
|
|
|
98
98
|
* Send a request to verify by phone number
|
|
99
99
|
*
|
|
100
100
|
* @remarks
|
|
101
|
-
*
|
|
101
|
+
* 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.
|
|
102
102
|
*/
|
|
103
103
|
async sendByNumber(security, request, options) {
|
|
104
104
|
return unwrapAsync(censusSendByNumber(this, security, request, options));
|
|
@@ -5,7 +5,7 @@ export declare class Verification extends ClientSDK {
|
|
|
5
5
|
* Check verification status
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* 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"`.
|
|
8
|
+
* 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.
|
|
9
9
|
*/
|
|
10
10
|
getStatus(security: operations.VerificationGetStatusSecurity, request: operations.VerificationGetStatusRequest, options?: RequestOptions): Promise<operations.VerificationGetStatusResponse>;
|
|
11
11
|
}
|
|
@@ -9,7 +9,7 @@ export class Verification extends ClientSDK {
|
|
|
9
9
|
* Check verification status
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* 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"`.
|
|
12
|
+
* 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.
|
|
13
13
|
*/
|
|
14
14
|
async getStatus(security, request, options) {
|
|
15
15
|
return unwrapAsync(verificationGetStatus(this, security, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botshield-sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
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",
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Confirm a pending link
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* 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.
|
|
33
33
|
*/
|
|
34
34
|
export function censusConfirmLink(
|
|
35
35
|
client: BotShieldCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Send a request to verify by phone number
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* 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.
|
|
34
34
|
*/
|
|
35
35
|
export function censusSendByNumber(
|
|
36
36
|
client: BotShieldCore,
|
|
@@ -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. 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.
|
|
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 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.
|
|
34
34
|
*/
|
|
35
35
|
export function censusVerifyToken(
|
|
36
36
|
client: BotShieldCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Check verification status
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* 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"`.
|
|
33
|
+
* 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.
|
|
34
34
|
*/
|
|
35
35
|
export function verificationGetStatus(
|
|
36
36
|
client: BotShieldCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -12,21 +12,11 @@ import { Params, pathToFunc } from "./url.js";
|
|
|
12
12
|
* Production (default)
|
|
13
13
|
*/
|
|
14
14
|
export const ServerProduction = "production";
|
|
15
|
-
/**
|
|
16
|
-
* Staging
|
|
17
|
-
*/
|
|
18
|
-
export const ServerStaging = "staging";
|
|
19
|
-
/**
|
|
20
|
-
* Local development
|
|
21
|
-
*/
|
|
22
|
-
export const ServerLocal = "local";
|
|
23
15
|
/**
|
|
24
16
|
* Contains the list of servers available to the SDK
|
|
25
17
|
*/
|
|
26
18
|
export const ServerList = {
|
|
27
19
|
[ServerProduction]: "https://api.botshield.ai/operations",
|
|
28
|
-
[ServerStaging]: "https://wg-staging.botshield.ai/operations",
|
|
29
|
-
[ServerLocal]: "http://localhost:9991/operations",
|
|
30
20
|
} as const;
|
|
31
21
|
|
|
32
22
|
export type SDKOptions = {
|
|
@@ -73,7 +63,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
63
|
export const SDK_METADATA = {
|
|
74
64
|
language: "typescript",
|
|
75
65
|
openapiDocVersion: "2.0.0",
|
|
76
|
-
sdkVersion: "4.0.
|
|
66
|
+
sdkVersion: "4.0.3",
|
|
77
67
|
genVersion: "2.934.1",
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 4.0.
|
|
68
|
+
userAgent: "speakeasy-sdk/typescript 4.0.3 2.934.1 2.0.0 botshield-sdk",
|
|
79
69
|
} as const;
|