botshield-sdk 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -46
- package/bin/mcp-server.js +596 -468
- package/bin/mcp-server.js.map +32 -29
- package/dist/commonjs/funcs/actions-propose-action.d.ts +1 -1
- package/dist/commonjs/funcs/actions-propose-action.js +1 -1
- package/dist/commonjs/funcs/census-get-partner-config.js +2 -78
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -1
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -79
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js +126 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.js +129 -0
- package/dist/commonjs/funcs/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js +123 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.js +0 -78
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +0 -91
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -104
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -13
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -26
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -17
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/error-body.d.ts +43 -8
- package/dist/commonjs/models/error-body.d.ts.map +1 -1
- package/dist/commonjs/models/error-body.js +51 -1
- package/dist/commonjs/models/error-body.js.map +1 -1
- package/dist/commonjs/models/operations/actions-cancel.d.ts +1 -1
- package/dist/commonjs/models/operations/actions-check-status.d.ts +6 -6
- package/dist/commonjs/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/actions-check-status.js +6 -6
- package/dist/commonjs/models/operations/actions-check-status.js.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +44 -10
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.js +32 -11
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +58 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +23 -27
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +18 -26
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-logout.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/commonjs/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.js +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +78 -27
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +51 -27
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js +254 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js +185 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js +163 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +47 -30
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +30 -28
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +0 -26
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +0 -26
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/actions.d.ts +1 -1
- package/dist/commonjs/sdk/actions.js +1 -1
- package/dist/commonjs/sdk/census.d.ts +1 -1
- package/dist/commonjs/sdk/census.js +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +5 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/secured-accounts.d.ts +26 -0
- package/dist/commonjs/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/commonjs/sdk/secured-accounts.js +42 -0
- package/dist/commonjs/sdk/secured-accounts.js.map +1 -0
- package/dist/esm/funcs/actions-propose-action.d.ts +1 -1
- package/dist/esm/funcs/actions-propose-action.js +1 -1
- package/dist/esm/funcs/census-get-partner-config.js +2 -78
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -79
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-get-status.js +90 -0
- package/dist/esm/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.js +93 -0
- package/dist/esm/funcs/secured-accounts-list.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.js +87 -0
- package/dist/esm/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.js +0 -78
- package/dist/esm/funcs/verification-get-status.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +0 -91
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -104
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -13
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -26
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +1 -17
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -17
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -17
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/error-body.d.ts +43 -8
- package/dist/esm/models/error-body.d.ts.map +1 -1
- package/dist/esm/models/error-body.js +48 -0
- package/dist/esm/models/error-body.js.map +1 -1
- package/dist/esm/models/operations/actions-cancel.d.ts +1 -1
- package/dist/esm/models/operations/actions-check-status.d.ts +6 -6
- package/dist/esm/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/esm/models/operations/actions-check-status.js +5 -5
- package/dist/esm/models/operations/actions-check-status.js.map +1 -1
- package/dist/esm/models/operations/actions-propose.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.d.ts +44 -10
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.js +29 -8
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +57 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +23 -27
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.js +18 -26
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/esm/models/operations/sdk-logout.d.ts +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/esm/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/esm/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/esm/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.js +5 -5
- package/dist/esm/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +78 -27
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +50 -26
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/esm/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-list.js +206 -0
- package/dist/esm/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js +139 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.js +117 -0
- package/dist/esm/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +47 -30
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +29 -27
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +0 -26
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +0 -26
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/actions.d.ts +1 -1
- package/dist/esm/sdk/actions.js +1 -1
- package/dist/esm/sdk/census.d.ts +1 -1
- package/dist/esm/sdk/census.js +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +5 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/secured-accounts.d.ts +26 -0
- package/dist/esm/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/esm/sdk/secured-accounts.js +38 -0
- package/dist/esm/sdk/secured-accounts.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-propose-action.ts +1 -1
- package/src/funcs/census-get-partner-config.ts +2 -91
- package/src/funcs/census-verify-token.ts +1 -92
- package/src/funcs/secured-accounts-get-status.ts +189 -0
- package/src/funcs/secured-accounts-list.ts +194 -0
- package/src/funcs/secured-accounts-revoke.ts +185 -0
- package/src/funcs/verification-get-status.ts +0 -91
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -91
- package/src/mcp-server/cli/start/command.ts +0 -104
- package/src/mcp-server/cli/start/impl.ts +0 -39
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/actions-cancel-action.ts +1 -17
- package/src/mcp-server/tools/actions-check-action-status.ts +1 -17
- package/src/mcp-server/tools/actions-propose-action.ts +1 -17
- package/src/models/error-body.ts +95 -8
- package/src/models/operations/actions-cancel.ts +1 -1
- package/src/models/operations/actions-check-status.ts +18 -10
- package/src/models/operations/actions-propose.ts +1 -1
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/sdk-create-session.ts +78 -20
- package/src/models/operations/sdk-create-verification-link.ts +157 -2
- package/src/models/operations/sdk-get-partner-config.ts +41 -53
- package/src/models/operations/sdk-logout.ts +1 -1
- package/src/models/operations/sdk-revoke-verification.ts +18 -6
- package/src/models/operations/sdk-store-signal.ts +1 -1
- package/src/models/operations/sdk-validate-signal.ts +16 -10
- package/src/models/operations/sdk-verify-token.ts +119 -53
- package/src/models/operations/secured-accounts-list.ts +507 -0
- package/src/models/operations/secured-accounts-revoke.ts +359 -0
- package/src/models/operations/secured-accounts-status.ts +296 -0
- package/src/models/operations/verification-get-status.ts +73 -56
- package/src/models/security.ts +0 -52
- package/src/sdk/actions.ts +1 -1
- package/src/sdk/census.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/secured-accounts.ts +69 -0
|
@@ -15,23 +15,20 @@ import * as models from "../index.js";
|
|
|
15
15
|
export type SDKGetPartnerConfigSecurity = {
|
|
16
16
|
apiKeyAuth?: string | undefined;
|
|
17
17
|
apiKeyAuth1?: string | undefined;
|
|
18
|
-
apiKeyAuth2?: string | undefined;
|
|
19
|
-
apiKeyAuth3?: string | undefined;
|
|
20
|
-
apiKeyAuth4?: string | undefined;
|
|
21
|
-
apiKeyAuth5?: string | undefined;
|
|
22
|
-
apiKeyAuth6?: string | undefined;
|
|
23
|
-
apiKeyAuth7?: string | undefined;
|
|
24
|
-
apiKeyAuth8?: string | undefined;
|
|
25
|
-
apiKeyAuth9?: string | undefined;
|
|
26
|
-
apiKeyAuth10?: string | undefined;
|
|
27
|
-
apiKeyAuth11?: string | undefined;
|
|
28
|
-
apiKeyAuth12?: string | undefined;
|
|
29
|
-
apiKeyAuth13?: string | undefined;
|
|
30
|
-
apiKeyAuth14?: string | undefined;
|
|
31
18
|
};
|
|
32
19
|
|
|
33
20
|
export type SDKGetPartnerConfigRequest = {
|
|
34
21
|
siteKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* GA 3.0: the gate (action_name) the widget is placed on; resolves notarize_enabled for it in the site key's environment. **Deprecated (alias window, sunset 2027-01-15):** use `gate`. Accepted through the window; responses carry both. https://docs.botshield.ai/changelog/alias-window
|
|
24
|
+
*
|
|
25
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
+
*/
|
|
27
|
+
scope?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* GA 3.0: the gate (action_name) the widget is placed on; resolves notarize_enabled for it in the site key's environment.
|
|
30
|
+
*/
|
|
31
|
+
gate?: string | undefined;
|
|
35
32
|
};
|
|
36
33
|
|
|
37
34
|
export type Integrations = {
|
|
@@ -60,12 +57,20 @@ export type SDKGetPartnerConfigDataData = {
|
|
|
60
57
|
* Site key environment. Omitted when the site key is unknown or has no enabled integrations.
|
|
61
58
|
*/
|
|
62
59
|
environment?: SDKGetPartnerConfigEnvironment | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* GA 3.0: the gate's "Notarize account with BotShield" switch. The switch is the authority for the offer: the widget shows "Secure your account with BotShield" only when this is true. false when no gate is given or the gate is unknown / an Age Gate.
|
|
62
|
+
*/
|
|
63
|
+
notarizeEnabled?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* GA 3.0: the gate name that notarize_enabled is about, echoed from the request. Absent when no gate was asked; a response without it says nothing about the switch.
|
|
66
|
+
*/
|
|
67
|
+
notarizeGate?: string | undefined;
|
|
63
68
|
};
|
|
64
69
|
|
|
65
70
|
export type SDKGetPartnerConfigData = {
|
|
66
71
|
data?: SDKGetPartnerConfigDataData | undefined;
|
|
67
72
|
/**
|
|
68
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
73
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
69
74
|
*/
|
|
70
75
|
error?: models.ErrorBody | undefined;
|
|
71
76
|
};
|
|
@@ -85,37 +90,11 @@ export const SDKGetPartnerConfigSecurity$inboundSchema: z.ZodType<
|
|
|
85
90
|
> = z.object({
|
|
86
91
|
apiKeyAuth: types.optional(types.string()),
|
|
87
92
|
apiKeyAuth1: types.optional(types.string()),
|
|
88
|
-
apiKeyAuth2: types.optional(types.string()),
|
|
89
|
-
apiKeyAuth3: types.optional(types.string()),
|
|
90
|
-
apiKeyAuth4: types.optional(types.string()),
|
|
91
|
-
apiKeyAuth5: types.optional(types.string()),
|
|
92
|
-
apiKeyAuth6: types.optional(types.string()),
|
|
93
|
-
apiKeyAuth7: types.optional(types.string()),
|
|
94
|
-
apiKeyAuth8: types.optional(types.string()),
|
|
95
|
-
apiKeyAuth9: types.optional(types.string()),
|
|
96
|
-
apiKeyAuth10: types.optional(types.string()),
|
|
97
|
-
apiKeyAuth11: types.optional(types.string()),
|
|
98
|
-
apiKeyAuth12: types.optional(types.string()),
|
|
99
|
-
apiKeyAuth13: types.optional(types.string()),
|
|
100
|
-
apiKeyAuth14: types.optional(types.string()),
|
|
101
93
|
});
|
|
102
94
|
/** @internal */
|
|
103
95
|
export type SDKGetPartnerConfigSecurity$Outbound = {
|
|
104
96
|
apiKeyAuth?: string | undefined;
|
|
105
97
|
apiKeyAuth1?: string | undefined;
|
|
106
|
-
apiKeyAuth2?: string | undefined;
|
|
107
|
-
apiKeyAuth3?: string | undefined;
|
|
108
|
-
apiKeyAuth4?: string | undefined;
|
|
109
|
-
apiKeyAuth5?: string | undefined;
|
|
110
|
-
apiKeyAuth6?: string | undefined;
|
|
111
|
-
apiKeyAuth7?: string | undefined;
|
|
112
|
-
apiKeyAuth8?: string | undefined;
|
|
113
|
-
apiKeyAuth9?: string | undefined;
|
|
114
|
-
apiKeyAuth10?: string | undefined;
|
|
115
|
-
apiKeyAuth11?: string | undefined;
|
|
116
|
-
apiKeyAuth12?: string | undefined;
|
|
117
|
-
apiKeyAuth13?: string | undefined;
|
|
118
|
-
apiKeyAuth14?: string | undefined;
|
|
119
98
|
};
|
|
120
99
|
|
|
121
100
|
/** @internal */
|
|
@@ -126,19 +105,6 @@ export const SDKGetPartnerConfigSecurity$outboundSchema: z.ZodType<
|
|
|
126
105
|
> = z.object({
|
|
127
106
|
apiKeyAuth: z.string().optional(),
|
|
128
107
|
apiKeyAuth1: z.string().optional(),
|
|
129
|
-
apiKeyAuth2: z.string().optional(),
|
|
130
|
-
apiKeyAuth3: z.string().optional(),
|
|
131
|
-
apiKeyAuth4: z.string().optional(),
|
|
132
|
-
apiKeyAuth5: z.string().optional(),
|
|
133
|
-
apiKeyAuth6: z.string().optional(),
|
|
134
|
-
apiKeyAuth7: z.string().optional(),
|
|
135
|
-
apiKeyAuth8: z.string().optional(),
|
|
136
|
-
apiKeyAuth9: z.string().optional(),
|
|
137
|
-
apiKeyAuth10: z.string().optional(),
|
|
138
|
-
apiKeyAuth11: z.string().optional(),
|
|
139
|
-
apiKeyAuth12: z.string().optional(),
|
|
140
|
-
apiKeyAuth13: z.string().optional(),
|
|
141
|
-
apiKeyAuth14: z.string().optional(),
|
|
142
108
|
});
|
|
143
109
|
|
|
144
110
|
export function sdkGetPartnerConfigSecurityToJSON(
|
|
@@ -167,6 +133,8 @@ export const SDKGetPartnerConfigRequest$inboundSchema: z.ZodType<
|
|
|
167
133
|
unknown
|
|
168
134
|
> = z.object({
|
|
169
135
|
site_key: types.string(),
|
|
136
|
+
scope: types.optional(types.string()),
|
|
137
|
+
gate: types.optional(types.string()),
|
|
170
138
|
}).transform((v) => {
|
|
171
139
|
return remap$(v, {
|
|
172
140
|
"site_key": "siteKey",
|
|
@@ -175,6 +143,8 @@ export const SDKGetPartnerConfigRequest$inboundSchema: z.ZodType<
|
|
|
175
143
|
/** @internal */
|
|
176
144
|
export type SDKGetPartnerConfigRequest$Outbound = {
|
|
177
145
|
site_key: string;
|
|
146
|
+
scope?: string | undefined;
|
|
147
|
+
gate?: string | undefined;
|
|
178
148
|
};
|
|
179
149
|
|
|
180
150
|
/** @internal */
|
|
@@ -184,6 +154,8 @@ export const SDKGetPartnerConfigRequest$outboundSchema: z.ZodType<
|
|
|
184
154
|
SDKGetPartnerConfigRequest
|
|
185
155
|
> = z.object({
|
|
186
156
|
siteKey: z.string(),
|
|
157
|
+
scope: z.string().optional(),
|
|
158
|
+
gate: z.string().optional(),
|
|
187
159
|
}).transform((v) => {
|
|
188
160
|
return remap$(v, {
|
|
189
161
|
siteKey: "site_key",
|
|
@@ -277,11 +249,20 @@ export const SDKGetPartnerConfigDataData$inboundSchema: z.ZodType<
|
|
|
277
249
|
> = z.object({
|
|
278
250
|
integrations: z.record(z.lazy(() => Integrations$inboundSchema)),
|
|
279
251
|
environment: types.optional(SDKGetPartnerConfigEnvironment$inboundSchema),
|
|
252
|
+
notarize_enabled: types.optional(types.boolean()),
|
|
253
|
+
notarize_gate: types.optional(types.string()),
|
|
254
|
+
}).transform((v) => {
|
|
255
|
+
return remap$(v, {
|
|
256
|
+
"notarize_enabled": "notarizeEnabled",
|
|
257
|
+
"notarize_gate": "notarizeGate",
|
|
258
|
+
});
|
|
280
259
|
});
|
|
281
260
|
/** @internal */
|
|
282
261
|
export type SDKGetPartnerConfigDataData$Outbound = {
|
|
283
262
|
integrations: { [k: string]: Integrations$Outbound };
|
|
284
263
|
environment?: string | undefined;
|
|
264
|
+
notarize_enabled?: boolean | undefined;
|
|
265
|
+
notarize_gate?: string | undefined;
|
|
285
266
|
};
|
|
286
267
|
|
|
287
268
|
/** @internal */
|
|
@@ -292,6 +273,13 @@ export const SDKGetPartnerConfigDataData$outboundSchema: z.ZodType<
|
|
|
292
273
|
> = z.object({
|
|
293
274
|
integrations: z.record(z.lazy(() => Integrations$outboundSchema)),
|
|
294
275
|
environment: SDKGetPartnerConfigEnvironment$outboundSchema.optional(),
|
|
276
|
+
notarizeEnabled: z.boolean().optional(),
|
|
277
|
+
notarizeGate: z.string().optional(),
|
|
278
|
+
}).transform((v) => {
|
|
279
|
+
return remap$(v, {
|
|
280
|
+
notarizeEnabled: "notarize_enabled",
|
|
281
|
+
notarizeGate: "notarize_gate",
|
|
282
|
+
});
|
|
295
283
|
});
|
|
296
284
|
|
|
297
285
|
export function sdkGetPartnerConfigDataDataToJSON(
|
|
@@ -27,7 +27,7 @@ export type SDKLogoutData = {
|
|
|
27
27
|
tokenFound?: boolean | undefined;
|
|
28
28
|
revokedAt?: Date | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
30
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
31
31
|
*/
|
|
32
32
|
error?: models.ErrorBody | undefined;
|
|
33
33
|
};
|
|
@@ -14,11 +14,16 @@ export type SDKRevokeVerificationSecurity = {
|
|
|
14
14
|
apiKeyAuth: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* One of `gate` (canonical) or `scope` (deprecated alias) is required.
|
|
19
|
+
*/
|
|
17
20
|
export type SDKRevokeVerificationRequest = {
|
|
18
21
|
/**
|
|
19
|
-
* The gate's action name.
|
|
22
|
+
* The gate's action name. **Deprecated (alias window, sunset 2027-01-15):** use `gate`. Accepted through the window; responses carry both. https://docs.botshield.ai/changelog/alias-window
|
|
23
|
+
*
|
|
24
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
25
|
*/
|
|
21
|
-
scope
|
|
26
|
+
scope?: string | undefined;
|
|
22
27
|
/**
|
|
23
28
|
* **Deprecated.** Use `partner_user_id` to identify whose verification to revoke.
|
|
24
29
|
*
|
|
@@ -29,6 +34,10 @@ export type SDKRevokeVerificationRequest = {
|
|
|
29
34
|
*/
|
|
30
35
|
userEmail?: string | undefined;
|
|
31
36
|
partnerUserId?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The gate's action name.
|
|
39
|
+
*/
|
|
40
|
+
gate?: string | undefined;
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
export type SDKRevokeVerificationDataData = {
|
|
@@ -40,7 +49,7 @@ export type SDKRevokeVerificationDataData = {
|
|
|
40
49
|
export type SDKRevokeVerificationData = {
|
|
41
50
|
data?: SDKRevokeVerificationDataData | undefined;
|
|
42
51
|
/**
|
|
43
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
52
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
44
53
|
*/
|
|
45
54
|
error?: models.ErrorBody | undefined;
|
|
46
55
|
};
|
|
@@ -107,9 +116,10 @@ export const SDKRevokeVerificationRequest$inboundSchema: z.ZodType<
|
|
|
107
116
|
z.ZodTypeDef,
|
|
108
117
|
unknown
|
|
109
118
|
> = z.object({
|
|
110
|
-
scope: types.string(),
|
|
119
|
+
scope: types.optional(types.string()),
|
|
111
120
|
user_email: types.optional(types.string()),
|
|
112
121
|
partner_user_id: types.optional(types.string()),
|
|
122
|
+
gate: types.optional(types.string()),
|
|
113
123
|
}).transform((v) => {
|
|
114
124
|
return remap$(v, {
|
|
115
125
|
"user_email": "userEmail",
|
|
@@ -118,9 +128,10 @@ export const SDKRevokeVerificationRequest$inboundSchema: z.ZodType<
|
|
|
118
128
|
});
|
|
119
129
|
/** @internal */
|
|
120
130
|
export type SDKRevokeVerificationRequest$Outbound = {
|
|
121
|
-
scope
|
|
131
|
+
scope?: string | undefined;
|
|
122
132
|
user_email?: string | undefined;
|
|
123
133
|
partner_user_id?: string | undefined;
|
|
134
|
+
gate?: string | undefined;
|
|
124
135
|
};
|
|
125
136
|
|
|
126
137
|
/** @internal */
|
|
@@ -129,9 +140,10 @@ export const SDKRevokeVerificationRequest$outboundSchema: z.ZodType<
|
|
|
129
140
|
z.ZodTypeDef,
|
|
130
141
|
SDKRevokeVerificationRequest
|
|
131
142
|
> = z.object({
|
|
132
|
-
scope: z.string(),
|
|
143
|
+
scope: z.string().optional(),
|
|
133
144
|
userEmail: z.string().optional(),
|
|
134
145
|
partnerUserId: z.string().optional(),
|
|
146
|
+
gate: z.string().optional(),
|
|
135
147
|
}).transform((v) => {
|
|
136
148
|
return remap$(v, {
|
|
137
149
|
userEmail: "user_email",
|
|
@@ -36,7 +36,7 @@ export type SDKStoreSignalDataData = {
|
|
|
36
36
|
export type SDKStoreSignalData = {
|
|
37
37
|
data?: SDKStoreSignalDataData | undefined;
|
|
38
38
|
/**
|
|
39
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
39
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
40
40
|
*/
|
|
41
41
|
error?: models.ErrorBody | undefined;
|
|
42
42
|
};
|
|
@@ -20,7 +20,7 @@ export type SDKValidateSignalRequest = {
|
|
|
20
20
|
/**
|
|
21
21
|
* Present when valid is false.
|
|
22
22
|
*/
|
|
23
|
-
export const
|
|
23
|
+
export const SDKValidateSignalReason = {
|
|
24
24
|
InvalidSignalToken: "invalid_signal_token",
|
|
25
25
|
SignalTokenExpired: "signal_token_expired",
|
|
26
26
|
SignalTokenAlreadyUsed: "signal_token_already_used",
|
|
@@ -28,14 +28,14 @@ export const Reason = {
|
|
|
28
28
|
/**
|
|
29
29
|
* Present when valid is false.
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
31
|
+
export type SDKValidateSignalReason = OpenEnum<typeof SDKValidateSignalReason>;
|
|
32
32
|
|
|
33
33
|
export type SDKValidateSignalDataData = {
|
|
34
34
|
valid: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* Present when valid is false.
|
|
37
37
|
*/
|
|
38
|
-
reason?:
|
|
38
|
+
reason?: SDKValidateSignalReason | undefined;
|
|
39
39
|
score?: number | undefined;
|
|
40
40
|
edgeScore?: number | undefined;
|
|
41
41
|
clientScore?: number | undefined;
|
|
@@ -47,7 +47,7 @@ export type SDKValidateSignalDataData = {
|
|
|
47
47
|
export type SDKValidateSignalData = {
|
|
48
48
|
data?: SDKValidateSignalDataData | undefined;
|
|
49
49
|
/**
|
|
50
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
50
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
51
51
|
*/
|
|
52
52
|
error?: models.ErrorBody | undefined;
|
|
53
53
|
};
|
|
@@ -112,11 +112,17 @@ export function sdkValidateSignalRequestFromJSON(
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/** @internal */
|
|
115
|
-
export const
|
|
116
|
-
|
|
115
|
+
export const SDKValidateSignalReason$inboundSchema: z.ZodType<
|
|
116
|
+
SDKValidateSignalReason,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = openEnums.inboundSchema(SDKValidateSignalReason);
|
|
117
120
|
/** @internal */
|
|
118
|
-
export const
|
|
119
|
-
|
|
121
|
+
export const SDKValidateSignalReason$outboundSchema: z.ZodType<
|
|
122
|
+
string,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
SDKValidateSignalReason
|
|
125
|
+
> = openEnums.outboundSchema(SDKValidateSignalReason);
|
|
120
126
|
|
|
121
127
|
/** @internal */
|
|
122
128
|
export const SDKValidateSignalDataData$inboundSchema: z.ZodType<
|
|
@@ -125,7 +131,7 @@ export const SDKValidateSignalDataData$inboundSchema: z.ZodType<
|
|
|
125
131
|
unknown
|
|
126
132
|
> = z.object({
|
|
127
133
|
valid: types.boolean(),
|
|
128
|
-
reason: types.optional(
|
|
134
|
+
reason: types.optional(SDKValidateSignalReason$inboundSchema),
|
|
129
135
|
score: types.optional(types.number()),
|
|
130
136
|
edge_score: types.optional(types.number()),
|
|
131
137
|
client_score: types.optional(types.number()),
|
|
@@ -159,7 +165,7 @@ export const SDKValidateSignalDataData$outboundSchema: z.ZodType<
|
|
|
159
165
|
SDKValidateSignalDataData
|
|
160
166
|
> = z.object({
|
|
161
167
|
valid: z.boolean(),
|
|
162
|
-
reason:
|
|
168
|
+
reason: SDKValidateSignalReason$outboundSchema.optional(),
|
|
163
169
|
score: z.number().int().optional(),
|
|
164
170
|
edgeScore: z.number().int().optional(),
|
|
165
171
|
clientScore: z.number().int().optional(),
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import * as types from "../../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -13,19 +15,6 @@ import * as models from "../index.js";
|
|
|
13
15
|
export type SDKVerifyTokenSecurity = {
|
|
14
16
|
apiKeyAuth?: string | undefined;
|
|
15
17
|
apiKeyAuth1?: string | undefined;
|
|
16
|
-
apiKeyAuth2?: string | undefined;
|
|
17
|
-
apiKeyAuth3?: string | undefined;
|
|
18
|
-
apiKeyAuth4?: string | undefined;
|
|
19
|
-
apiKeyAuth5?: string | undefined;
|
|
20
|
-
apiKeyAuth6?: string | undefined;
|
|
21
|
-
apiKeyAuth7?: string | undefined;
|
|
22
|
-
apiKeyAuth8?: string | undefined;
|
|
23
|
-
apiKeyAuth9?: string | undefined;
|
|
24
|
-
apiKeyAuth10?: string | undefined;
|
|
25
|
-
apiKeyAuth11?: string | undefined;
|
|
26
|
-
apiKeyAuth12?: string | undefined;
|
|
27
|
-
apiKeyAuth13?: string | undefined;
|
|
28
|
-
apiKeyAuth14?: string | undefined;
|
|
29
18
|
};
|
|
30
19
|
|
|
31
20
|
export type SDKVerifyTokenRequest = {
|
|
@@ -33,8 +22,25 @@ export type SDKVerifyTokenRequest = {
|
|
|
33
22
|
* JWT verification receipt
|
|
34
23
|
*/
|
|
35
24
|
token: string;
|
|
25
|
+
/**
|
|
26
|
+
* Your organization id (the organization_id shown in Console settings). When given, a token issued for any other organization is rejected.
|
|
27
|
+
*/
|
|
28
|
+
audience?: string | undefined;
|
|
36
29
|
};
|
|
37
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Age Gate only, positive-only.
|
|
33
|
+
*/
|
|
34
|
+
export const AgeOver = {
|
|
35
|
+
Thirteen: 13,
|
|
36
|
+
Eighteen: 18,
|
|
37
|
+
TwentyOne: 21,
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* Age Gate only, positive-only.
|
|
41
|
+
*/
|
|
42
|
+
export type AgeOver = OpenEnum<typeof AgeOver>;
|
|
43
|
+
|
|
38
44
|
export type Claims = {
|
|
39
45
|
requestId?: string | undefined;
|
|
40
46
|
verified?: boolean | undefined;
|
|
@@ -43,8 +49,40 @@ export type Claims = {
|
|
|
43
49
|
nonce?: string | undefined;
|
|
44
50
|
issuedAt?: number | undefined;
|
|
45
51
|
expiresAt?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Age Gate only, positive-only.
|
|
54
|
+
*/
|
|
55
|
+
ageOver?: AgeOver | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* GA 3.0 Secured Accounts: an active binding exists for (your platform, platform-user-ref). Always present; false on a plain Verify Human and on tokens minted before GA 3.0.
|
|
58
|
+
*/
|
|
59
|
+
trusted?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* GA 3.0: present only when trusted. Equals the binding's linked_at.
|
|
62
|
+
*/
|
|
63
|
+
trustedSince?: Date | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* GA 3.0: present only when trusted. The pass that minted this token.
|
|
66
|
+
*/
|
|
67
|
+
lastPassAt?: Date | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The organization the token was issued for (the JWT aud claim).
|
|
70
|
+
*/
|
|
71
|
+
audience?: string | null | undefined;
|
|
46
72
|
};
|
|
47
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Present when `valid` is true. `pass` when the token records a verified human.
|
|
76
|
+
*/
|
|
77
|
+
export const SDKVerifyTokenVerdict = {
|
|
78
|
+
Pass: "pass",
|
|
79
|
+
Unavailable: "unavailable",
|
|
80
|
+
} as const;
|
|
81
|
+
/**
|
|
82
|
+
* Present when `valid` is true. `pass` when the token records a verified human.
|
|
83
|
+
*/
|
|
84
|
+
export type SDKVerifyTokenVerdict = OpenEnum<typeof SDKVerifyTokenVerdict>;
|
|
85
|
+
|
|
48
86
|
export type SDKVerifyTokenDataData = {
|
|
49
87
|
valid: boolean;
|
|
50
88
|
/**
|
|
@@ -56,12 +94,24 @@ export type SDKVerifyTokenDataData = {
|
|
|
56
94
|
*/
|
|
57
95
|
expiredAt?: Date | null | undefined;
|
|
58
96
|
claims?: Claims | null | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* true when this token was already checked once. From 2026-11-15 a second check returns valid: false (single use).
|
|
99
|
+
*/
|
|
100
|
+
replayed?: boolean | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* When repeat checks start failing (present when replayed is true).
|
|
103
|
+
*/
|
|
104
|
+
strictSingleUseFrom?: Date | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Present when `valid` is true. `pass` when the token records a verified human.
|
|
107
|
+
*/
|
|
108
|
+
verdict?: SDKVerifyTokenVerdict | undefined;
|
|
59
109
|
};
|
|
60
110
|
|
|
61
111
|
export type SDKVerifyTokenData = {
|
|
62
112
|
data?: SDKVerifyTokenDataData | undefined;
|
|
63
113
|
/**
|
|
64
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
114
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
65
115
|
*/
|
|
66
116
|
error?: models.ErrorBody | undefined;
|
|
67
117
|
};
|
|
@@ -81,37 +131,11 @@ export const SDKVerifyTokenSecurity$inboundSchema: z.ZodType<
|
|
|
81
131
|
> = z.object({
|
|
82
132
|
apiKeyAuth: types.optional(types.string()),
|
|
83
133
|
apiKeyAuth1: types.optional(types.string()),
|
|
84
|
-
apiKeyAuth2: types.optional(types.string()),
|
|
85
|
-
apiKeyAuth3: types.optional(types.string()),
|
|
86
|
-
apiKeyAuth4: types.optional(types.string()),
|
|
87
|
-
apiKeyAuth5: types.optional(types.string()),
|
|
88
|
-
apiKeyAuth6: types.optional(types.string()),
|
|
89
|
-
apiKeyAuth7: types.optional(types.string()),
|
|
90
|
-
apiKeyAuth8: types.optional(types.string()),
|
|
91
|
-
apiKeyAuth9: types.optional(types.string()),
|
|
92
|
-
apiKeyAuth10: types.optional(types.string()),
|
|
93
|
-
apiKeyAuth11: types.optional(types.string()),
|
|
94
|
-
apiKeyAuth12: types.optional(types.string()),
|
|
95
|
-
apiKeyAuth13: types.optional(types.string()),
|
|
96
|
-
apiKeyAuth14: types.optional(types.string()),
|
|
97
134
|
});
|
|
98
135
|
/** @internal */
|
|
99
136
|
export type SDKVerifyTokenSecurity$Outbound = {
|
|
100
137
|
apiKeyAuth?: string | undefined;
|
|
101
138
|
apiKeyAuth1?: string | undefined;
|
|
102
|
-
apiKeyAuth2?: string | undefined;
|
|
103
|
-
apiKeyAuth3?: string | undefined;
|
|
104
|
-
apiKeyAuth4?: string | undefined;
|
|
105
|
-
apiKeyAuth5?: string | undefined;
|
|
106
|
-
apiKeyAuth6?: string | undefined;
|
|
107
|
-
apiKeyAuth7?: string | undefined;
|
|
108
|
-
apiKeyAuth8?: string | undefined;
|
|
109
|
-
apiKeyAuth9?: string | undefined;
|
|
110
|
-
apiKeyAuth10?: string | undefined;
|
|
111
|
-
apiKeyAuth11?: string | undefined;
|
|
112
|
-
apiKeyAuth12?: string | undefined;
|
|
113
|
-
apiKeyAuth13?: string | undefined;
|
|
114
|
-
apiKeyAuth14?: string | undefined;
|
|
115
139
|
};
|
|
116
140
|
|
|
117
141
|
/** @internal */
|
|
@@ -122,19 +146,6 @@ export const SDKVerifyTokenSecurity$outboundSchema: z.ZodType<
|
|
|
122
146
|
> = z.object({
|
|
123
147
|
apiKeyAuth: z.string().optional(),
|
|
124
148
|
apiKeyAuth1: z.string().optional(),
|
|
125
|
-
apiKeyAuth2: z.string().optional(),
|
|
126
|
-
apiKeyAuth3: z.string().optional(),
|
|
127
|
-
apiKeyAuth4: z.string().optional(),
|
|
128
|
-
apiKeyAuth5: z.string().optional(),
|
|
129
|
-
apiKeyAuth6: z.string().optional(),
|
|
130
|
-
apiKeyAuth7: z.string().optional(),
|
|
131
|
-
apiKeyAuth8: z.string().optional(),
|
|
132
|
-
apiKeyAuth9: z.string().optional(),
|
|
133
|
-
apiKeyAuth10: z.string().optional(),
|
|
134
|
-
apiKeyAuth11: z.string().optional(),
|
|
135
|
-
apiKeyAuth12: z.string().optional(),
|
|
136
|
-
apiKeyAuth13: z.string().optional(),
|
|
137
|
-
apiKeyAuth14: z.string().optional(),
|
|
138
149
|
});
|
|
139
150
|
|
|
140
151
|
export function sdkVerifyTokenSecurityToJSON(
|
|
@@ -161,10 +172,12 @@ export const SDKVerifyTokenRequest$inboundSchema: z.ZodType<
|
|
|
161
172
|
unknown
|
|
162
173
|
> = z.object({
|
|
163
174
|
token: types.string(),
|
|
175
|
+
audience: types.optional(types.string()),
|
|
164
176
|
});
|
|
165
177
|
/** @internal */
|
|
166
178
|
export type SDKVerifyTokenRequest$Outbound = {
|
|
167
179
|
token: string;
|
|
180
|
+
audience?: string | undefined;
|
|
168
181
|
};
|
|
169
182
|
|
|
170
183
|
/** @internal */
|
|
@@ -174,6 +187,7 @@ export const SDKVerifyTokenRequest$outboundSchema: z.ZodType<
|
|
|
174
187
|
SDKVerifyTokenRequest
|
|
175
188
|
> = z.object({
|
|
176
189
|
token: z.string(),
|
|
190
|
+
audience: z.string().optional(),
|
|
177
191
|
});
|
|
178
192
|
|
|
179
193
|
export function sdkVerifyTokenRequestToJSON(
|
|
@@ -193,6 +207,13 @@ export function sdkVerifyTokenRequestFromJSON(
|
|
|
193
207
|
);
|
|
194
208
|
}
|
|
195
209
|
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const AgeOver$inboundSchema: z.ZodType<AgeOver, z.ZodTypeDef, unknown> =
|
|
212
|
+
openEnums.inboundSchemaInt(AgeOver);
|
|
213
|
+
/** @internal */
|
|
214
|
+
export const AgeOver$outboundSchema: z.ZodType<number, z.ZodTypeDef, AgeOver> =
|
|
215
|
+
openEnums.outboundSchemaInt(AgeOver);
|
|
216
|
+
|
|
196
217
|
/** @internal */
|
|
197
218
|
export const Claims$inboundSchema: z.ZodType<Claims, z.ZodTypeDef, unknown> = z
|
|
198
219
|
.object({
|
|
@@ -203,12 +224,20 @@ export const Claims$inboundSchema: z.ZodType<Claims, z.ZodTypeDef, unknown> = z
|
|
|
203
224
|
nonce: types.optional(types.string()),
|
|
204
225
|
issued_at: types.optional(types.number()),
|
|
205
226
|
expires_at: types.optional(types.number()),
|
|
227
|
+
age_over: types.optional(AgeOver$inboundSchema),
|
|
228
|
+
trusted: types.optional(types.boolean()),
|
|
229
|
+
trusted_since: types.optional(types.date()),
|
|
230
|
+
last_pass_at: types.optional(types.date()),
|
|
231
|
+
audience: z.nullable(types.string()).optional(),
|
|
206
232
|
}).transform((v) => {
|
|
207
233
|
return remap$(v, {
|
|
208
234
|
"request_id": "requestId",
|
|
209
235
|
"organization_id": "organizationId",
|
|
210
236
|
"issued_at": "issuedAt",
|
|
211
237
|
"expires_at": "expiresAt",
|
|
238
|
+
"age_over": "ageOver",
|
|
239
|
+
"trusted_since": "trustedSince",
|
|
240
|
+
"last_pass_at": "lastPassAt",
|
|
212
241
|
});
|
|
213
242
|
});
|
|
214
243
|
/** @internal */
|
|
@@ -220,6 +249,11 @@ export type Claims$Outbound = {
|
|
|
220
249
|
nonce?: string | undefined;
|
|
221
250
|
issued_at?: number | undefined;
|
|
222
251
|
expires_at?: number | undefined;
|
|
252
|
+
age_over?: number | undefined;
|
|
253
|
+
trusted?: boolean | undefined;
|
|
254
|
+
trusted_since?: string | undefined;
|
|
255
|
+
last_pass_at?: string | undefined;
|
|
256
|
+
audience?: string | null | undefined;
|
|
223
257
|
};
|
|
224
258
|
|
|
225
259
|
/** @internal */
|
|
@@ -235,12 +269,20 @@ export const Claims$outboundSchema: z.ZodType<
|
|
|
235
269
|
nonce: z.string().optional(),
|
|
236
270
|
issuedAt: z.number().optional(),
|
|
237
271
|
expiresAt: z.number().optional(),
|
|
272
|
+
ageOver: AgeOver$outboundSchema.optional(),
|
|
273
|
+
trusted: z.boolean().optional(),
|
|
274
|
+
trustedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
275
|
+
lastPassAt: z.date().transform(v => v.toISOString()).optional(),
|
|
276
|
+
audience: z.nullable(z.string()).optional(),
|
|
238
277
|
}).transform((v) => {
|
|
239
278
|
return remap$(v, {
|
|
240
279
|
requestId: "request_id",
|
|
241
280
|
organizationId: "organization_id",
|
|
242
281
|
issuedAt: "issued_at",
|
|
243
282
|
expiresAt: "expires_at",
|
|
283
|
+
ageOver: "age_over",
|
|
284
|
+
trustedSince: "trusted_since",
|
|
285
|
+
lastPassAt: "last_pass_at",
|
|
244
286
|
});
|
|
245
287
|
});
|
|
246
288
|
|
|
@@ -257,6 +299,19 @@ export function claimsFromJSON(
|
|
|
257
299
|
);
|
|
258
300
|
}
|
|
259
301
|
|
|
302
|
+
/** @internal */
|
|
303
|
+
export const SDKVerifyTokenVerdict$inboundSchema: z.ZodType<
|
|
304
|
+
SDKVerifyTokenVerdict,
|
|
305
|
+
z.ZodTypeDef,
|
|
306
|
+
unknown
|
|
307
|
+
> = openEnums.inboundSchema(SDKVerifyTokenVerdict);
|
|
308
|
+
/** @internal */
|
|
309
|
+
export const SDKVerifyTokenVerdict$outboundSchema: z.ZodType<
|
|
310
|
+
string,
|
|
311
|
+
z.ZodTypeDef,
|
|
312
|
+
SDKVerifyTokenVerdict
|
|
313
|
+
> = openEnums.outboundSchema(SDKVerifyTokenVerdict);
|
|
314
|
+
|
|
260
315
|
/** @internal */
|
|
261
316
|
export const SDKVerifyTokenDataData$inboundSchema: z.ZodType<
|
|
262
317
|
SDKVerifyTokenDataData,
|
|
@@ -267,9 +322,13 @@ export const SDKVerifyTokenDataData$inboundSchema: z.ZodType<
|
|
|
267
322
|
reason: types.optional(types.string()),
|
|
268
323
|
expired_at: z.nullable(types.date()).optional(),
|
|
269
324
|
claims: z.nullable(z.lazy(() => Claims$inboundSchema)).optional(),
|
|
325
|
+
replayed: types.optional(types.boolean()),
|
|
326
|
+
strict_single_use_from: types.optional(types.date()),
|
|
327
|
+
verdict: types.optional(SDKVerifyTokenVerdict$inboundSchema),
|
|
270
328
|
}).transform((v) => {
|
|
271
329
|
return remap$(v, {
|
|
272
330
|
"expired_at": "expiredAt",
|
|
331
|
+
"strict_single_use_from": "strictSingleUseFrom",
|
|
273
332
|
});
|
|
274
333
|
});
|
|
275
334
|
/** @internal */
|
|
@@ -278,6 +337,9 @@ export type SDKVerifyTokenDataData$Outbound = {
|
|
|
278
337
|
reason?: string | undefined;
|
|
279
338
|
expired_at?: string | null | undefined;
|
|
280
339
|
claims?: Claims$Outbound | null | undefined;
|
|
340
|
+
replayed?: boolean | undefined;
|
|
341
|
+
strict_single_use_from?: string | undefined;
|
|
342
|
+
verdict?: string | undefined;
|
|
281
343
|
};
|
|
282
344
|
|
|
283
345
|
/** @internal */
|
|
@@ -290,9 +352,13 @@ export const SDKVerifyTokenDataData$outboundSchema: z.ZodType<
|
|
|
290
352
|
reason: z.string().optional(),
|
|
291
353
|
expiredAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
292
354
|
claims: z.nullable(z.lazy(() => Claims$outboundSchema)).optional(),
|
|
355
|
+
replayed: z.boolean().optional(),
|
|
356
|
+
strictSingleUseFrom: z.date().transform(v => v.toISOString()).optional(),
|
|
357
|
+
verdict: SDKVerifyTokenVerdict$outboundSchema.optional(),
|
|
293
358
|
}).transform((v) => {
|
|
294
359
|
return remap$(v, {
|
|
295
360
|
expiredAt: "expired_at",
|
|
361
|
+
strictSingleUseFrom: "strict_single_use_from",
|
|
296
362
|
});
|
|
297
363
|
});
|
|
298
364
|
|