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
|
@@ -34,14 +34,16 @@ export type ActionsCheckStatusStatus = OpenEnum<
|
|
|
34
34
|
/**
|
|
35
35
|
* null until status is approved or denied.
|
|
36
36
|
*/
|
|
37
|
-
export const
|
|
37
|
+
export const ActionsCheckStatusVerdict = {
|
|
38
38
|
Approve: "approve",
|
|
39
39
|
Denied: "denied",
|
|
40
40
|
} as const;
|
|
41
41
|
/**
|
|
42
42
|
* null until status is approved or denied.
|
|
43
43
|
*/
|
|
44
|
-
export type
|
|
44
|
+
export type ActionsCheckStatusVerdict = OpenEnum<
|
|
45
|
+
typeof ActionsCheckStatusVerdict
|
|
46
|
+
>;
|
|
45
47
|
|
|
46
48
|
export type ActionsCheckStatusDataData = {
|
|
47
49
|
status: ActionsCheckStatusStatus;
|
|
@@ -55,7 +57,7 @@ export type ActionsCheckStatusDataData = {
|
|
|
55
57
|
/**
|
|
56
58
|
* null until status is approved or denied.
|
|
57
59
|
*/
|
|
58
|
-
verdict?:
|
|
60
|
+
verdict?: ActionsCheckStatusVerdict | null | undefined;
|
|
59
61
|
/**
|
|
60
62
|
* Whether the callback webhook has been confirmed delivered.
|
|
61
63
|
*/
|
|
@@ -66,7 +68,7 @@ export type ActionsCheckStatusDataData = {
|
|
|
66
68
|
export type ActionsCheckStatusData = {
|
|
67
69
|
data?: ActionsCheckStatusDataData | undefined;
|
|
68
70
|
/**
|
|
69
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
71
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
70
72
|
*/
|
|
71
73
|
error?: models.ErrorBody | undefined;
|
|
72
74
|
};
|
|
@@ -144,11 +146,17 @@ export const ActionsCheckStatusStatus$outboundSchema: z.ZodType<
|
|
|
144
146
|
> = openEnums.outboundSchema(ActionsCheckStatusStatus);
|
|
145
147
|
|
|
146
148
|
/** @internal */
|
|
147
|
-
export const
|
|
148
|
-
|
|
149
|
+
export const ActionsCheckStatusVerdict$inboundSchema: z.ZodType<
|
|
150
|
+
ActionsCheckStatusVerdict,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
unknown
|
|
153
|
+
> = openEnums.inboundSchema(ActionsCheckStatusVerdict);
|
|
149
154
|
/** @internal */
|
|
150
|
-
export const
|
|
151
|
-
|
|
155
|
+
export const ActionsCheckStatusVerdict$outboundSchema: z.ZodType<
|
|
156
|
+
string,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
ActionsCheckStatusVerdict
|
|
159
|
+
> = openEnums.outboundSchema(ActionsCheckStatusVerdict);
|
|
152
160
|
|
|
153
161
|
/** @internal */
|
|
154
162
|
export const ActionsCheckStatusDataData$inboundSchema: z.ZodType<
|
|
@@ -161,7 +169,7 @@ export const ActionsCheckStatusDataData$inboundSchema: z.ZodType<
|
|
|
161
169
|
resolved_at: z.nullable(types.date()).optional(),
|
|
162
170
|
ceremony_id: z.nullable(types.string()).optional(),
|
|
163
171
|
resolution_jwt: z.nullable(types.string()).optional(),
|
|
164
|
-
verdict: z.nullable(
|
|
172
|
+
verdict: z.nullable(ActionsCheckStatusVerdict$inboundSchema).optional(),
|
|
165
173
|
delivered: types.optional(types.boolean()),
|
|
166
174
|
callback_attempts: types.optional(types.number()),
|
|
167
175
|
}).transform((v) => {
|
|
@@ -196,7 +204,7 @@ export const ActionsCheckStatusDataData$outboundSchema: z.ZodType<
|
|
|
196
204
|
resolvedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
197
205
|
ceremonyId: z.nullable(z.string()).optional(),
|
|
198
206
|
resolutionJwt: z.nullable(z.string()).optional(),
|
|
199
|
-
verdict: z.nullable(
|
|
207
|
+
verdict: z.nullable(ActionsCheckStatusVerdict$outboundSchema).optional(),
|
|
200
208
|
delivered: z.boolean().optional(),
|
|
201
209
|
callbackAttempts: z.number().int().optional(),
|
|
202
210
|
}).transform((v) => {
|
|
@@ -106,7 +106,7 @@ export type ActionsProposeDataData = {
|
|
|
106
106
|
export type ActionsProposeData = {
|
|
107
107
|
data?: ActionsProposeDataData | undefined;
|
|
108
108
|
/**
|
|
109
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
109
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
110
110
|
*/
|
|
111
111
|
error?: models.ErrorBody | undefined;
|
|
112
112
|
};
|
|
@@ -13,4 +13,7 @@ export * from "./sdk-revoke-verification.js";
|
|
|
13
13
|
export * from "./sdk-store-signal.js";
|
|
14
14
|
export * from "./sdk-validate-signal.js";
|
|
15
15
|
export * from "./sdk-verify-token.js";
|
|
16
|
+
export * from "./secured-accounts-list.js";
|
|
17
|
+
export * from "./secured-accounts-revoke.js";
|
|
18
|
+
export * from "./secured-accounts-status.js";
|
|
16
19
|
export * from "./verification-get-status.js";
|
|
@@ -6,7 +6,7 @@ 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
8
|
import * as openEnums from "../../types/enums.js";
|
|
9
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import * as types from "../../types/primitives.js";
|
|
12
12
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
@@ -22,6 +22,10 @@ export type SDKCreateSessionRequest = {
|
|
|
22
22
|
*/
|
|
23
23
|
partnerUserId?: string | undefined;
|
|
24
24
|
metadata?: { [k: string]: any } | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* GA 3.0: request a notarize ceremony ("Secure your account with BotShield") for this window. A request, not a decision: the gate's Console switch (Notarize account with BotShield) is the authority and is applied when the verification link is minted. Requires partner_user_id; without it the field is ignored and the response carries notarize_fallback_reason = notarize_requires_user_ref.
|
|
27
|
+
*/
|
|
28
|
+
notarize?: boolean | undefined;
|
|
25
29
|
};
|
|
26
30
|
|
|
27
31
|
/**
|
|
@@ -46,7 +50,20 @@ export type SDKCreateSessionOrganization = {
|
|
|
46
50
|
environment: SDKCreateSessionEnvironment;
|
|
47
51
|
};
|
|
48
52
|
|
|
49
|
-
|
|
53
|
+
/**
|
|
54
|
+
* GA 3.0: present when notarize was requested but could not be applied.
|
|
55
|
+
*/
|
|
56
|
+
export const SDKCreateSessionNotarizeFallbackReason = {
|
|
57
|
+
NotarizeRequiresUserRef: "notarize_requires_user_ref",
|
|
58
|
+
} as const;
|
|
59
|
+
/**
|
|
60
|
+
* GA 3.0: present when notarize was requested but could not be applied.
|
|
61
|
+
*/
|
|
62
|
+
export type SDKCreateSessionNotarizeFallbackReason = ClosedEnum<
|
|
63
|
+
typeof SDKCreateSessionNotarizeFallbackReason
|
|
64
|
+
>;
|
|
65
|
+
|
|
66
|
+
export type DataNotarizeRequiresUserRef = {
|
|
50
67
|
/**
|
|
51
68
|
* Canonical grant token (Bearer bss_*)
|
|
52
69
|
*/
|
|
@@ -60,12 +77,24 @@ export type SDKCreateSessionDataData = {
|
|
|
60
77
|
expiresAt: Date;
|
|
61
78
|
expiresInSeconds: number;
|
|
62
79
|
organization: SDKCreateSessionOrganization;
|
|
80
|
+
/**
|
|
81
|
+
* GA 3.0 Secured Accounts: true when an active Secured Account binding exists for (your platform, platform-user-ref). The widget skips the "Link BotShield ID" chip when true.
|
|
82
|
+
*/
|
|
83
|
+
trusted?: boolean | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* GA 3.0: this window requests a notarize ceremony. The decision is made at sdk/create-verification-link, where the gate's Console switch is applied.
|
|
86
|
+
*/
|
|
87
|
+
notarize?: boolean | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* GA 3.0: present when notarize was requested but could not be applied.
|
|
90
|
+
*/
|
|
91
|
+
notarizeFallbackReason?: SDKCreateSessionNotarizeFallbackReason | undefined;
|
|
63
92
|
};
|
|
64
93
|
|
|
65
94
|
export type SDKCreateSessionData = {
|
|
66
|
-
data?:
|
|
95
|
+
data?: DataNotarizeRequiresUserRef | undefined;
|
|
67
96
|
/**
|
|
68
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
97
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
69
98
|
*/
|
|
70
99
|
error?: models.ErrorBody | undefined;
|
|
71
100
|
};
|
|
@@ -132,6 +161,7 @@ export const SDKCreateSessionRequest$inboundSchema: z.ZodType<
|
|
|
132
161
|
> = z.object({
|
|
133
162
|
partner_user_id: types.optional(types.string()),
|
|
134
163
|
metadata: types.optional(z.record(z.any())),
|
|
164
|
+
notarize: types.optional(types.boolean()),
|
|
135
165
|
}).transform((v) => {
|
|
136
166
|
return remap$(v, {
|
|
137
167
|
"partner_user_id": "partnerUserId",
|
|
@@ -141,6 +171,7 @@ export const SDKCreateSessionRequest$inboundSchema: z.ZodType<
|
|
|
141
171
|
export type SDKCreateSessionRequest$Outbound = {
|
|
142
172
|
partner_user_id?: string | undefined;
|
|
143
173
|
metadata?: { [k: string]: any } | undefined;
|
|
174
|
+
notarize?: boolean | undefined;
|
|
144
175
|
};
|
|
145
176
|
|
|
146
177
|
/** @internal */
|
|
@@ -151,6 +182,7 @@ export const SDKCreateSessionRequest$outboundSchema: z.ZodType<
|
|
|
151
182
|
> = z.object({
|
|
152
183
|
partnerUserId: z.string().optional(),
|
|
153
184
|
metadata: z.record(z.any()).optional(),
|
|
185
|
+
notarize: z.boolean().optional(),
|
|
154
186
|
}).transform((v) => {
|
|
155
187
|
return remap$(v, {
|
|
156
188
|
partnerUserId: "partner_user_id",
|
|
@@ -232,8 +264,18 @@ export function sdkCreateSessionOrganizationFromJSON(
|
|
|
232
264
|
}
|
|
233
265
|
|
|
234
266
|
/** @internal */
|
|
235
|
-
export const
|
|
236
|
-
|
|
267
|
+
export const SDKCreateSessionNotarizeFallbackReason$inboundSchema:
|
|
268
|
+
z.ZodNativeEnum<typeof SDKCreateSessionNotarizeFallbackReason> = z.nativeEnum(
|
|
269
|
+
SDKCreateSessionNotarizeFallbackReason,
|
|
270
|
+
);
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const SDKCreateSessionNotarizeFallbackReason$outboundSchema:
|
|
273
|
+
z.ZodNativeEnum<typeof SDKCreateSessionNotarizeFallbackReason> =
|
|
274
|
+
SDKCreateSessionNotarizeFallbackReason$inboundSchema;
|
|
275
|
+
|
|
276
|
+
/** @internal */
|
|
277
|
+
export const DataNotarizeRequiresUserRef$inboundSchema: z.ZodType<
|
|
278
|
+
DataNotarizeRequiresUserRef,
|
|
237
279
|
z.ZodTypeDef,
|
|
238
280
|
unknown
|
|
239
281
|
> = z.object({
|
|
@@ -244,6 +286,11 @@ export const SDKCreateSessionDataData$inboundSchema: z.ZodType<
|
|
|
244
286
|
expires_at: types.date(),
|
|
245
287
|
expires_in_seconds: types.number(),
|
|
246
288
|
organization: z.lazy(() => SDKCreateSessionOrganization$inboundSchema),
|
|
289
|
+
trusted: types.optional(types.boolean()),
|
|
290
|
+
notarize: types.optional(types.boolean()),
|
|
291
|
+
notarize_fallback_reason: types.optional(
|
|
292
|
+
SDKCreateSessionNotarizeFallbackReason$inboundSchema,
|
|
293
|
+
),
|
|
247
294
|
}).transform((v) => {
|
|
248
295
|
return remap$(v, {
|
|
249
296
|
"anchor_grant_token": "anchorGrantToken",
|
|
@@ -252,10 +299,11 @@ export const SDKCreateSessionDataData$inboundSchema: z.ZodType<
|
|
|
252
299
|
"session_token": "sessionToken",
|
|
253
300
|
"expires_at": "expiresAt",
|
|
254
301
|
"expires_in_seconds": "expiresInSeconds",
|
|
302
|
+
"notarize_fallback_reason": "notarizeFallbackReason",
|
|
255
303
|
});
|
|
256
304
|
});
|
|
257
305
|
/** @internal */
|
|
258
|
-
export type
|
|
306
|
+
export type DataNotarizeRequiresUserRef$Outbound = {
|
|
259
307
|
anchor_grant_token: string;
|
|
260
308
|
anchor_grant_expires_at: string;
|
|
261
309
|
anchor_grant_expires_in_seconds: number;
|
|
@@ -263,13 +311,16 @@ export type SDKCreateSessionDataData$Outbound = {
|
|
|
263
311
|
expires_at: string;
|
|
264
312
|
expires_in_seconds: number;
|
|
265
313
|
organization: SDKCreateSessionOrganization$Outbound;
|
|
314
|
+
trusted?: boolean | undefined;
|
|
315
|
+
notarize?: boolean | undefined;
|
|
316
|
+
notarize_fallback_reason?: string | undefined;
|
|
266
317
|
};
|
|
267
318
|
|
|
268
319
|
/** @internal */
|
|
269
|
-
export const
|
|
270
|
-
|
|
320
|
+
export const DataNotarizeRequiresUserRef$outboundSchema: z.ZodType<
|
|
321
|
+
DataNotarizeRequiresUserRef$Outbound,
|
|
271
322
|
z.ZodTypeDef,
|
|
272
|
-
|
|
323
|
+
DataNotarizeRequiresUserRef
|
|
273
324
|
> = z.object({
|
|
274
325
|
anchorGrantToken: z.string(),
|
|
275
326
|
anchorGrantExpiresAt: z.date().transform(v => v.toISOString()),
|
|
@@ -278,6 +329,10 @@ export const SDKCreateSessionDataData$outboundSchema: z.ZodType<
|
|
|
278
329
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
279
330
|
expiresInSeconds: z.number().int(),
|
|
280
331
|
organization: z.lazy(() => SDKCreateSessionOrganization$outboundSchema),
|
|
332
|
+
trusted: z.boolean().optional(),
|
|
333
|
+
notarize: z.boolean().optional(),
|
|
334
|
+
notarizeFallbackReason: SDKCreateSessionNotarizeFallbackReason$outboundSchema
|
|
335
|
+
.optional(),
|
|
281
336
|
}).transform((v) => {
|
|
282
337
|
return remap$(v, {
|
|
283
338
|
anchorGrantToken: "anchor_grant_token",
|
|
@@ -286,23 +341,26 @@ export const SDKCreateSessionDataData$outboundSchema: z.ZodType<
|
|
|
286
341
|
sessionToken: "session_token",
|
|
287
342
|
expiresAt: "expires_at",
|
|
288
343
|
expiresInSeconds: "expires_in_seconds",
|
|
344
|
+
notarizeFallbackReason: "notarize_fallback_reason",
|
|
289
345
|
});
|
|
290
346
|
});
|
|
291
347
|
|
|
292
|
-
export function
|
|
293
|
-
|
|
348
|
+
export function dataNotarizeRequiresUserRefToJSON(
|
|
349
|
+
dataNotarizeRequiresUserRef: DataNotarizeRequiresUserRef,
|
|
294
350
|
): string {
|
|
295
351
|
return JSON.stringify(
|
|
296
|
-
|
|
352
|
+
DataNotarizeRequiresUserRef$outboundSchema.parse(
|
|
353
|
+
dataNotarizeRequiresUserRef,
|
|
354
|
+
),
|
|
297
355
|
);
|
|
298
356
|
}
|
|
299
|
-
export function
|
|
357
|
+
export function dataNotarizeRequiresUserRefFromJSON(
|
|
300
358
|
jsonString: string,
|
|
301
|
-
): SafeParseResult<
|
|
359
|
+
): SafeParseResult<DataNotarizeRequiresUserRef, SDKValidationError> {
|
|
302
360
|
return safeParse(
|
|
303
361
|
jsonString,
|
|
304
|
-
(x) =>
|
|
305
|
-
`Failed to parse '
|
|
362
|
+
(x) => DataNotarizeRequiresUserRef$inboundSchema.parse(JSON.parse(x)),
|
|
363
|
+
`Failed to parse 'DataNotarizeRequiresUserRef' from JSON`,
|
|
306
364
|
);
|
|
307
365
|
}
|
|
308
366
|
|
|
@@ -312,12 +370,12 @@ export const SDKCreateSessionData$inboundSchema: z.ZodType<
|
|
|
312
370
|
z.ZodTypeDef,
|
|
313
371
|
unknown
|
|
314
372
|
> = z.object({
|
|
315
|
-
data: types.optional(z.lazy(() =>
|
|
373
|
+
data: types.optional(z.lazy(() => DataNotarizeRequiresUserRef$inboundSchema)),
|
|
316
374
|
error: types.optional(models.ErrorBody$inboundSchema),
|
|
317
375
|
});
|
|
318
376
|
/** @internal */
|
|
319
377
|
export type SDKCreateSessionData$Outbound = {
|
|
320
|
-
data?:
|
|
378
|
+
data?: DataNotarizeRequiresUserRef$Outbound | undefined;
|
|
321
379
|
error?: models.ErrorBody$Outbound | undefined;
|
|
322
380
|
};
|
|
323
381
|
|
|
@@ -327,7 +385,7 @@ export const SDKCreateSessionData$outboundSchema: z.ZodType<
|
|
|
327
385
|
z.ZodTypeDef,
|
|
328
386
|
SDKCreateSessionData
|
|
329
387
|
> = z.object({
|
|
330
|
-
data: z.lazy(() =>
|
|
388
|
+
data: z.lazy(() => DataNotarizeRequiresUserRef$outboundSchema).optional(),
|
|
331
389
|
error: models.ErrorBody$outboundSchema.optional(),
|
|
332
390
|
});
|
|
333
391
|
|
|
@@ -57,7 +57,9 @@ export type SDKCreateVerificationLinkRequest = {
|
|
|
57
57
|
*/
|
|
58
58
|
webhookUrl?: string | undefined;
|
|
59
59
|
/**
|
|
60
|
-
* The gate this request runs (the gate's action name, as listed in the Console under BotShield Gate).
|
|
60
|
+
* The gate this request runs (the gate's action name, as listed in the Console under BotShield Gate). **Deprecated (alias window, sunset 2027-01-15):** use `gate`. Accepted through the window; responses carry both. https://docs.botshield.ai/changelog/alias-window
|
|
61
|
+
*
|
|
62
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
61
63
|
*/
|
|
62
64
|
scope?: string | undefined;
|
|
63
65
|
sdkType?: SDKTypeRequest | undefined;
|
|
@@ -82,6 +84,14 @@ export type SDKCreateVerificationLinkRequest = {
|
|
|
82
84
|
*/
|
|
83
85
|
parentRequestId?: string | undefined;
|
|
84
86
|
metadata?: { [k: string]: any } | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* GA 3.0: run this ceremony as a notarize ceremony. The gate's Console switch (notarize_enabled) is the authority: the ceremony runs only when the switch is on. `true` with the switch off falls back to a plain verification with notarize_fallback_reason = notarize_not_enabled. `false` opts this placement out. Absent → inherited from the grant window, else offered when the switch is on. Requires partner_user_ref; never on an Age Gate. verification/complete writes the Secured Account binding in the same transaction as the completion.
|
|
89
|
+
*/
|
|
90
|
+
notarize?: boolean | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* The gate this request runs (the gate's action name, as listed in the Console under BotShield Gate).
|
|
93
|
+
*/
|
|
94
|
+
gate?: string | undefined;
|
|
85
95
|
};
|
|
86
96
|
|
|
87
97
|
export const SDKCreateVerificationLinkSDKTypeResponse = {
|
|
@@ -102,6 +112,46 @@ export type SDKCreateVerificationLinkOrganization = {
|
|
|
102
112
|
id?: string | undefined;
|
|
103
113
|
};
|
|
104
114
|
|
|
115
|
+
/**
|
|
116
|
+
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
117
|
+
*/
|
|
118
|
+
export const GateType = {
|
|
119
|
+
Human: "human",
|
|
120
|
+
Age: "age",
|
|
121
|
+
} as const;
|
|
122
|
+
/**
|
|
123
|
+
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
124
|
+
*/
|
|
125
|
+
export type GateType = OpenEnum<typeof GateType>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Age Gate only.
|
|
129
|
+
*/
|
|
130
|
+
export const AgeThreshold = {
|
|
131
|
+
Thirteen: 13,
|
|
132
|
+
Eighteen: 18,
|
|
133
|
+
TwentyOne: 21,
|
|
134
|
+
} as const;
|
|
135
|
+
/**
|
|
136
|
+
* Age Gate only.
|
|
137
|
+
*/
|
|
138
|
+
export type AgeThreshold = OpenEnum<typeof AgeThreshold>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* GA 3.0: present when notarize was requested but could not be applied. notarize_not_enabled = the gate's Console switch is off; the switch is the authority and the request field cannot turn the offer on.
|
|
142
|
+
*/
|
|
143
|
+
export const SDKCreateVerificationLinkNotarizeFallbackReason = {
|
|
144
|
+
NotarizeNotEnabled: "notarize_not_enabled",
|
|
145
|
+
NotarizeRequiresUserRef: "notarize_requires_user_ref",
|
|
146
|
+
AgeGate: "age_gate",
|
|
147
|
+
} as const;
|
|
148
|
+
/**
|
|
149
|
+
* GA 3.0: present when notarize was requested but could not be applied. notarize_not_enabled = the gate's Console switch is off; the switch is the authority and the request field cannot turn the offer on.
|
|
150
|
+
*/
|
|
151
|
+
export type SDKCreateVerificationLinkNotarizeFallbackReason = OpenEnum<
|
|
152
|
+
typeof SDKCreateVerificationLinkNotarizeFallbackReason
|
|
153
|
+
>;
|
|
154
|
+
|
|
105
155
|
export type SDKCreateVerificationLinkDataData = {
|
|
106
156
|
requestId: string;
|
|
107
157
|
deepLink: string;
|
|
@@ -115,18 +165,49 @@ export type SDKCreateVerificationLinkDataData = {
|
|
|
115
165
|
expiresAt: Date;
|
|
116
166
|
sdkType?: SDKCreateVerificationLinkSDKTypeResponse | undefined;
|
|
117
167
|
authMode?: AuthMode | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Deprecated alias of `gate` — present through the alias window (sunset 2027-01-15).
|
|
170
|
+
*
|
|
171
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
172
|
+
*/
|
|
118
173
|
scope?: string | undefined;
|
|
119
174
|
organization?: SDKCreateVerificationLinkOrganization | undefined;
|
|
120
175
|
/**
|
|
121
176
|
* Number of the user's registered devices the request was pushed to (0 when the user is unknown or has no devices).
|
|
122
177
|
*/
|
|
123
178
|
pushedToDevices: number;
|
|
179
|
+
/**
|
|
180
|
+
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
181
|
+
*/
|
|
182
|
+
gateType?: GateType | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Age Gate only.
|
|
185
|
+
*/
|
|
186
|
+
ageThreshold?: AgeThreshold | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* GA 3.0 Secured Accounts: true when an active Secured Account binding exists for (your platform, platform-user-ref). The widget skips the "Link BotShield ID" chip when true.
|
|
189
|
+
*/
|
|
190
|
+
trusted?: boolean | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* GA 3.0: this ceremony will write a Secured Account binding.
|
|
193
|
+
*/
|
|
194
|
+
notarize?: boolean | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* GA 3.0: present when notarize was requested but could not be applied. notarize_not_enabled = the gate's Console switch is off; the switch is the authority and the request field cannot turn the offer on.
|
|
197
|
+
*/
|
|
198
|
+
notarizeFallbackReason?:
|
|
199
|
+
| SDKCreateVerificationLinkNotarizeFallbackReason
|
|
200
|
+
| undefined;
|
|
201
|
+
/**
|
|
202
|
+
* The gate (canonical since 3.0).
|
|
203
|
+
*/
|
|
204
|
+
gate?: string | undefined;
|
|
124
205
|
};
|
|
125
206
|
|
|
126
207
|
export type SDKCreateVerificationLinkData = {
|
|
127
208
|
data?: SDKCreateVerificationLinkDataData | undefined;
|
|
128
209
|
/**
|
|
129
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
210
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
130
211
|
*/
|
|
131
212
|
error?: models.ErrorBody | undefined;
|
|
132
213
|
};
|
|
@@ -221,6 +302,8 @@ export const SDKCreateVerificationLinkRequest$inboundSchema: z.ZodType<
|
|
|
221
302
|
link_on_verify: types.boolean().default(true),
|
|
222
303
|
parent_request_id: types.optional(types.string()),
|
|
223
304
|
metadata: types.optional(z.record(z.any())),
|
|
305
|
+
notarize: types.optional(types.boolean()),
|
|
306
|
+
gate: types.optional(types.string()),
|
|
224
307
|
}).transform((v) => {
|
|
225
308
|
return remap$(v, {
|
|
226
309
|
"user_email": "userEmail",
|
|
@@ -246,6 +329,8 @@ export type SDKCreateVerificationLinkRequest$Outbound = {
|
|
|
246
329
|
link_on_verify: boolean;
|
|
247
330
|
parent_request_id?: string | undefined;
|
|
248
331
|
metadata?: { [k: string]: any } | undefined;
|
|
332
|
+
notarize?: boolean | undefined;
|
|
333
|
+
gate?: string | undefined;
|
|
249
334
|
};
|
|
250
335
|
|
|
251
336
|
/** @internal */
|
|
@@ -265,6 +350,8 @@ export const SDKCreateVerificationLinkRequest$outboundSchema: z.ZodType<
|
|
|
265
350
|
linkOnVerify: z.boolean().default(true),
|
|
266
351
|
parentRequestId: z.string().optional(),
|
|
267
352
|
metadata: z.record(z.any()).optional(),
|
|
353
|
+
notarize: z.boolean().optional(),
|
|
354
|
+
gate: z.string().optional(),
|
|
268
355
|
}).transform((v) => {
|
|
269
356
|
return remap$(v, {
|
|
270
357
|
userEmail: "user_email",
|
|
@@ -365,6 +452,47 @@ export function sdkCreateVerificationLinkOrganizationFromJSON(
|
|
|
365
452
|
);
|
|
366
453
|
}
|
|
367
454
|
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const GateType$inboundSchema: z.ZodType<
|
|
457
|
+
GateType,
|
|
458
|
+
z.ZodTypeDef,
|
|
459
|
+
unknown
|
|
460
|
+
> = openEnums.inboundSchema(GateType);
|
|
461
|
+
/** @internal */
|
|
462
|
+
export const GateType$outboundSchema: z.ZodType<
|
|
463
|
+
string,
|
|
464
|
+
z.ZodTypeDef,
|
|
465
|
+
GateType
|
|
466
|
+
> = openEnums.outboundSchema(GateType);
|
|
467
|
+
|
|
468
|
+
/** @internal */
|
|
469
|
+
export const AgeThreshold$inboundSchema: z.ZodType<
|
|
470
|
+
AgeThreshold,
|
|
471
|
+
z.ZodTypeDef,
|
|
472
|
+
unknown
|
|
473
|
+
> = openEnums.inboundSchemaInt(AgeThreshold);
|
|
474
|
+
/** @internal */
|
|
475
|
+
export const AgeThreshold$outboundSchema: z.ZodType<
|
|
476
|
+
number,
|
|
477
|
+
z.ZodTypeDef,
|
|
478
|
+
AgeThreshold
|
|
479
|
+
> = openEnums.outboundSchemaInt(AgeThreshold);
|
|
480
|
+
|
|
481
|
+
/** @internal */
|
|
482
|
+
export const SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema:
|
|
483
|
+
z.ZodType<
|
|
484
|
+
SDKCreateVerificationLinkNotarizeFallbackReason,
|
|
485
|
+
z.ZodTypeDef,
|
|
486
|
+
unknown
|
|
487
|
+
> = openEnums.inboundSchema(SDKCreateVerificationLinkNotarizeFallbackReason);
|
|
488
|
+
/** @internal */
|
|
489
|
+
export const SDKCreateVerificationLinkNotarizeFallbackReason$outboundSchema:
|
|
490
|
+
z.ZodType<
|
|
491
|
+
string,
|
|
492
|
+
z.ZodTypeDef,
|
|
493
|
+
SDKCreateVerificationLinkNotarizeFallbackReason
|
|
494
|
+
> = openEnums.outboundSchema(SDKCreateVerificationLinkNotarizeFallbackReason);
|
|
495
|
+
|
|
368
496
|
/** @internal */
|
|
369
497
|
export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
|
|
370
498
|
SDKCreateVerificationLinkDataData,
|
|
@@ -385,6 +513,14 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
|
|
|
385
513
|
z.lazy(() => SDKCreateVerificationLinkOrganization$inboundSchema),
|
|
386
514
|
),
|
|
387
515
|
pushed_to_devices: types.number(),
|
|
516
|
+
gate_type: types.optional(GateType$inboundSchema),
|
|
517
|
+
age_threshold: types.optional(AgeThreshold$inboundSchema),
|
|
518
|
+
trusted: types.optional(types.boolean()),
|
|
519
|
+
notarize: types.optional(types.boolean()),
|
|
520
|
+
notarize_fallback_reason: types.optional(
|
|
521
|
+
SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema,
|
|
522
|
+
),
|
|
523
|
+
gate: types.optional(types.string()),
|
|
388
524
|
}).transform((v) => {
|
|
389
525
|
return remap$(v, {
|
|
390
526
|
"request_id": "requestId",
|
|
@@ -395,6 +531,9 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
|
|
|
395
531
|
"sdk_type": "sdkType",
|
|
396
532
|
"auth_mode": "authMode",
|
|
397
533
|
"pushed_to_devices": "pushedToDevices",
|
|
534
|
+
"gate_type": "gateType",
|
|
535
|
+
"age_threshold": "ageThreshold",
|
|
536
|
+
"notarize_fallback_reason": "notarizeFallbackReason",
|
|
398
537
|
});
|
|
399
538
|
});
|
|
400
539
|
/** @internal */
|
|
@@ -409,6 +548,12 @@ export type SDKCreateVerificationLinkDataData$Outbound = {
|
|
|
409
548
|
scope?: string | undefined;
|
|
410
549
|
organization?: SDKCreateVerificationLinkOrganization$Outbound | undefined;
|
|
411
550
|
pushed_to_devices: number;
|
|
551
|
+
gate_type?: string | undefined;
|
|
552
|
+
age_threshold?: number | undefined;
|
|
553
|
+
trusted?: boolean | undefined;
|
|
554
|
+
notarize?: boolean | undefined;
|
|
555
|
+
notarize_fallback_reason?: string | undefined;
|
|
556
|
+
gate?: string | undefined;
|
|
412
557
|
};
|
|
413
558
|
|
|
414
559
|
/** @internal */
|
|
@@ -429,6 +574,13 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
|
|
|
429
574
|
SDKCreateVerificationLinkOrganization$outboundSchema
|
|
430
575
|
).optional(),
|
|
431
576
|
pushedToDevices: z.number().int(),
|
|
577
|
+
gateType: GateType$outboundSchema.optional(),
|
|
578
|
+
ageThreshold: AgeThreshold$outboundSchema.optional(),
|
|
579
|
+
trusted: z.boolean().optional(),
|
|
580
|
+
notarize: z.boolean().optional(),
|
|
581
|
+
notarizeFallbackReason:
|
|
582
|
+
SDKCreateVerificationLinkNotarizeFallbackReason$outboundSchema.optional(),
|
|
583
|
+
gate: z.string().optional(),
|
|
432
584
|
}).transform((v) => {
|
|
433
585
|
return remap$(v, {
|
|
434
586
|
requestId: "request_id",
|
|
@@ -439,6 +591,9 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
|
|
|
439
591
|
sdkType: "sdk_type",
|
|
440
592
|
authMode: "auth_mode",
|
|
441
593
|
pushedToDevices: "pushed_to_devices",
|
|
594
|
+
gateType: "gate_type",
|
|
595
|
+
ageThreshold: "age_threshold",
|
|
596
|
+
notarizeFallbackReason: "notarize_fallback_reason",
|
|
442
597
|
});
|
|
443
598
|
});
|
|
444
599
|
|