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
|
@@ -120,97 +120,6 @@ async function $do(
|
|
|
120
120
|
value: security?.apiKeyAuth1,
|
|
121
121
|
},
|
|
122
122
|
],
|
|
123
|
-
[
|
|
124
|
-
{
|
|
125
|
-
fieldName: "Authorization",
|
|
126
|
-
type: "apiKey:header",
|
|
127
|
-
value: security?.apiKeyAuth2,
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
[
|
|
131
|
-
{
|
|
132
|
-
fieldName: "Authorization",
|
|
133
|
-
type: "apiKey:header",
|
|
134
|
-
value: security?.apiKeyAuth3,
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
[
|
|
138
|
-
{
|
|
139
|
-
fieldName: "Authorization",
|
|
140
|
-
type: "apiKey:header",
|
|
141
|
-
value: security?.apiKeyAuth4,
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
[
|
|
145
|
-
{
|
|
146
|
-
fieldName: "Authorization",
|
|
147
|
-
type: "apiKey:header",
|
|
148
|
-
value: security?.apiKeyAuth5,
|
|
149
|
-
},
|
|
150
|
-
],
|
|
151
|
-
[
|
|
152
|
-
{
|
|
153
|
-
fieldName: "Authorization",
|
|
154
|
-
type: "apiKey:header",
|
|
155
|
-
value: security?.apiKeyAuth6,
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
[
|
|
159
|
-
{
|
|
160
|
-
fieldName: "Authorization",
|
|
161
|
-
type: "apiKey:header",
|
|
162
|
-
value: security?.apiKeyAuth7,
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
[
|
|
166
|
-
{
|
|
167
|
-
fieldName: "Authorization",
|
|
168
|
-
type: "apiKey:header",
|
|
169
|
-
value: security?.apiKeyAuth8,
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
[
|
|
173
|
-
{
|
|
174
|
-
fieldName: "Authorization",
|
|
175
|
-
type: "apiKey:header",
|
|
176
|
-
value: security?.apiKeyAuth9,
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
[
|
|
180
|
-
{
|
|
181
|
-
fieldName: "Authorization",
|
|
182
|
-
type: "apiKey:header",
|
|
183
|
-
value: security?.apiKeyAuth10,
|
|
184
|
-
},
|
|
185
|
-
],
|
|
186
|
-
[
|
|
187
|
-
{
|
|
188
|
-
fieldName: "Authorization",
|
|
189
|
-
type: "apiKey:header",
|
|
190
|
-
value: security?.apiKeyAuth11,
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
[
|
|
194
|
-
{
|
|
195
|
-
fieldName: "Authorization",
|
|
196
|
-
type: "apiKey:header",
|
|
197
|
-
value: security?.apiKeyAuth12,
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
[
|
|
201
|
-
{
|
|
202
|
-
fieldName: "Authorization",
|
|
203
|
-
type: "apiKey:header",
|
|
204
|
-
value: security?.apiKeyAuth13,
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
[
|
|
208
|
-
{
|
|
209
|
-
fieldName: "Authorization",
|
|
210
|
-
type: "apiKey:header",
|
|
211
|
-
value: security?.apiKeyAuth14,
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
123
|
);
|
|
215
124
|
|
|
216
125
|
const context = {
|
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "2.0.0",
|
|
72
|
-
sdkVersion: "2.0
|
|
72
|
+
sdkVersion: "2.2.0",
|
|
73
73
|
genVersion: "2.934.1",
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 2.0
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 2.2.0 2.934.1 2.0.0 botshield-sdk",
|
|
75
75
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -261,97 +261,6 @@ export function resolveGlobalSecurity(
|
|
|
261
261
|
value: security?.agentKeyAuth1,
|
|
262
262
|
},
|
|
263
263
|
],
|
|
264
|
-
[
|
|
265
|
-
{
|
|
266
|
-
fieldName: "Authorization",
|
|
267
|
-
type: "apiKey:header",
|
|
268
|
-
value: security?.agentKeyAuth2,
|
|
269
|
-
},
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
{
|
|
273
|
-
fieldName: "Authorization",
|
|
274
|
-
type: "apiKey:header",
|
|
275
|
-
value: security?.agentKeyAuth3,
|
|
276
|
-
},
|
|
277
|
-
],
|
|
278
|
-
[
|
|
279
|
-
{
|
|
280
|
-
fieldName: "Authorization",
|
|
281
|
-
type: "apiKey:header",
|
|
282
|
-
value: security?.agentKeyAuth4,
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
[
|
|
286
|
-
{
|
|
287
|
-
fieldName: "Authorization",
|
|
288
|
-
type: "apiKey:header",
|
|
289
|
-
value: security?.agentKeyAuth5,
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
[
|
|
293
|
-
{
|
|
294
|
-
fieldName: "Authorization",
|
|
295
|
-
type: "apiKey:header",
|
|
296
|
-
value: security?.agentKeyAuth6,
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
[
|
|
300
|
-
{
|
|
301
|
-
fieldName: "Authorization",
|
|
302
|
-
type: "apiKey:header",
|
|
303
|
-
value: security?.agentKeyAuth7,
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
[
|
|
307
|
-
{
|
|
308
|
-
fieldName: "Authorization",
|
|
309
|
-
type: "apiKey:header",
|
|
310
|
-
value: security?.agentKeyAuth8,
|
|
311
|
-
},
|
|
312
|
-
],
|
|
313
|
-
[
|
|
314
|
-
{
|
|
315
|
-
fieldName: "Authorization",
|
|
316
|
-
type: "apiKey:header",
|
|
317
|
-
value: security?.agentKeyAuth9,
|
|
318
|
-
},
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
{
|
|
322
|
-
fieldName: "Authorization",
|
|
323
|
-
type: "apiKey:header",
|
|
324
|
-
value: security?.agentKeyAuth10,
|
|
325
|
-
},
|
|
326
|
-
],
|
|
327
|
-
[
|
|
328
|
-
{
|
|
329
|
-
fieldName: "Authorization",
|
|
330
|
-
type: "apiKey:header",
|
|
331
|
-
value: security?.agentKeyAuth11,
|
|
332
|
-
},
|
|
333
|
-
],
|
|
334
|
-
[
|
|
335
|
-
{
|
|
336
|
-
fieldName: "Authorization",
|
|
337
|
-
type: "apiKey:header",
|
|
338
|
-
value: security?.agentKeyAuth12,
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
[
|
|
342
|
-
{
|
|
343
|
-
fieldName: "Authorization",
|
|
344
|
-
type: "apiKey:header",
|
|
345
|
-
value: security?.agentKeyAuth13,
|
|
346
|
-
},
|
|
347
|
-
],
|
|
348
|
-
[
|
|
349
|
-
{
|
|
350
|
-
fieldName: "Authorization",
|
|
351
|
-
type: "apiKey:header",
|
|
352
|
-
value: security?.agentKeyAuth14,
|
|
353
|
-
},
|
|
354
|
-
],
|
|
355
264
|
];
|
|
356
265
|
|
|
357
266
|
if (allowedFields) {
|
|
@@ -59,110 +59,6 @@ export const startCommand = buildCommand({
|
|
|
59
59
|
return z.string().parse(value);
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
|
-
"agent-key-auth2": {
|
|
63
|
-
kind: "parsed",
|
|
64
|
-
brief: "Sets the agentKeyAuth2 auth field for the API",
|
|
65
|
-
optional: true,
|
|
66
|
-
parse: (value) => {
|
|
67
|
-
return z.string().parse(value);
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
"agent-key-auth3": {
|
|
71
|
-
kind: "parsed",
|
|
72
|
-
brief: "Sets the agentKeyAuth3 auth field for the API",
|
|
73
|
-
optional: true,
|
|
74
|
-
parse: (value) => {
|
|
75
|
-
return z.string().parse(value);
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
"agent-key-auth4": {
|
|
79
|
-
kind: "parsed",
|
|
80
|
-
brief: "Sets the agentKeyAuth4 auth field for the API",
|
|
81
|
-
optional: true,
|
|
82
|
-
parse: (value) => {
|
|
83
|
-
return z.string().parse(value);
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
"agent-key-auth5": {
|
|
87
|
-
kind: "parsed",
|
|
88
|
-
brief: "Sets the agentKeyAuth5 auth field for the API",
|
|
89
|
-
optional: true,
|
|
90
|
-
parse: (value) => {
|
|
91
|
-
return z.string().parse(value);
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
"agent-key-auth6": {
|
|
95
|
-
kind: "parsed",
|
|
96
|
-
brief: "Sets the agentKeyAuth6 auth field for the API",
|
|
97
|
-
optional: true,
|
|
98
|
-
parse: (value) => {
|
|
99
|
-
return z.string().parse(value);
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
"agent-key-auth7": {
|
|
103
|
-
kind: "parsed",
|
|
104
|
-
brief: "Sets the agentKeyAuth7 auth field for the API",
|
|
105
|
-
optional: true,
|
|
106
|
-
parse: (value) => {
|
|
107
|
-
return z.string().parse(value);
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
"agent-key-auth8": {
|
|
111
|
-
kind: "parsed",
|
|
112
|
-
brief: "Sets the agentKeyAuth8 auth field for the API",
|
|
113
|
-
optional: true,
|
|
114
|
-
parse: (value) => {
|
|
115
|
-
return z.string().parse(value);
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
"agent-key-auth9": {
|
|
119
|
-
kind: "parsed",
|
|
120
|
-
brief: "Sets the agentKeyAuth9 auth field for the API",
|
|
121
|
-
optional: true,
|
|
122
|
-
parse: (value) => {
|
|
123
|
-
return z.string().parse(value);
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
"agent-key-auth10": {
|
|
127
|
-
kind: "parsed",
|
|
128
|
-
brief: "Sets the agentKeyAuth10 auth field for the API",
|
|
129
|
-
optional: true,
|
|
130
|
-
parse: (value) => {
|
|
131
|
-
return z.string().parse(value);
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
"agent-key-auth11": {
|
|
135
|
-
kind: "parsed",
|
|
136
|
-
brief: "Sets the agentKeyAuth11 auth field for the API",
|
|
137
|
-
optional: true,
|
|
138
|
-
parse: (value) => {
|
|
139
|
-
return z.string().parse(value);
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
"agent-key-auth12": {
|
|
143
|
-
kind: "parsed",
|
|
144
|
-
brief: "Sets the agentKeyAuth12 auth field for the API",
|
|
145
|
-
optional: true,
|
|
146
|
-
parse: (value) => {
|
|
147
|
-
return z.string().parse(value);
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
"agent-key-auth13": {
|
|
151
|
-
kind: "parsed",
|
|
152
|
-
brief: "Sets the agentKeyAuth13 auth field for the API",
|
|
153
|
-
optional: true,
|
|
154
|
-
parse: (value) => {
|
|
155
|
-
return z.string().parse(value);
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
"agent-key-auth14": {
|
|
159
|
-
kind: "parsed",
|
|
160
|
-
brief: "Sets the agentKeyAuth14 auth field for the API",
|
|
161
|
-
optional: true,
|
|
162
|
-
parse: (value) => {
|
|
163
|
-
return z.string().parse(value);
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
62
|
"server-url": {
|
|
167
63
|
kind: "parsed",
|
|
168
64
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -21,19 +21,6 @@ interface StartCommandFlags {
|
|
|
21
21
|
readonly scope?: MCPScope[];
|
|
22
22
|
readonly "agent-key-auth"?: string | undefined;
|
|
23
23
|
readonly "agent-key-auth1"?: string | undefined;
|
|
24
|
-
readonly "agent-key-auth2"?: string | undefined;
|
|
25
|
-
readonly "agent-key-auth3"?: string | undefined;
|
|
26
|
-
readonly "agent-key-auth4"?: string | undefined;
|
|
27
|
-
readonly "agent-key-auth5"?: string | undefined;
|
|
28
|
-
readonly "agent-key-auth6"?: string | undefined;
|
|
29
|
-
readonly "agent-key-auth7"?: string | undefined;
|
|
30
|
-
readonly "agent-key-auth8"?: string | undefined;
|
|
31
|
-
readonly "agent-key-auth9"?: string | undefined;
|
|
32
|
-
readonly "agent-key-auth10"?: string | undefined;
|
|
33
|
-
readonly "agent-key-auth11"?: string | undefined;
|
|
34
|
-
readonly "agent-key-auth12"?: string | undefined;
|
|
35
|
-
readonly "agent-key-auth13"?: string | undefined;
|
|
36
|
-
readonly "agent-key-auth14"?: string | undefined;
|
|
37
24
|
readonly "server-url"?: string;
|
|
38
25
|
readonly "server-index"?: SDKOptions["serverIdx"];
|
|
39
26
|
readonly "log-level": ConsoleLoggerLevel;
|
|
@@ -67,19 +54,6 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
67
54
|
security: {
|
|
68
55
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
69
56
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
70
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
71
|
-
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
72
|
-
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
73
|
-
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
74
|
-
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
75
|
-
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
76
|
-
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
77
|
-
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
78
|
-
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
79
|
-
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
80
|
-
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
81
|
-
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
82
|
-
agentKeyAuth14: flags["agent-key-auth14"] ?? "",
|
|
83
57
|
},
|
|
84
58
|
serverURL: flags["server-url"],
|
|
85
59
|
serverIdx: flags["server-index"],
|
|
@@ -104,19 +78,6 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
104
78
|
security: {
|
|
105
79
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
106
80
|
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
107
|
-
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
108
|
-
agentKeyAuth3: flags["agent-key-auth3"] ?? "",
|
|
109
|
-
agentKeyAuth4: flags["agent-key-auth4"] ?? "",
|
|
110
|
-
agentKeyAuth5: flags["agent-key-auth5"] ?? "",
|
|
111
|
-
agentKeyAuth6: flags["agent-key-auth6"] ?? "",
|
|
112
|
-
agentKeyAuth7: flags["agent-key-auth7"] ?? "",
|
|
113
|
-
agentKeyAuth8: flags["agent-key-auth8"] ?? "",
|
|
114
|
-
agentKeyAuth9: flags["agent-key-auth9"] ?? "",
|
|
115
|
-
agentKeyAuth10: flags["agent-key-auth10"] ?? "",
|
|
116
|
-
agentKeyAuth11: flags["agent-key-auth11"] ?? "",
|
|
117
|
-
agentKeyAuth12: flags["agent-key-auth12"] ?? "",
|
|
118
|
-
agentKeyAuth13: flags["agent-key-auth13"] ?? "",
|
|
119
|
-
agentKeyAuth14: flags["agent-key-auth14"] ?? "",
|
|
120
81
|
},
|
|
121
82
|
serverURL: flags["server-url"],
|
|
122
83
|
serverIdx: flags["server-index"],
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,23 +14,7 @@ export const tool$actionsCancelAction: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "cancel_resolution",
|
|
15
15
|
description:
|
|
16
16
|
`Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsCancelAction(
|
|
@@ -14,23 +14,7 @@ export const tool$actionsCheckActionStatus: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "check_resolution_status",
|
|
15
15
|
description:
|
|
16
16
|
`Poll a proposed resolution (pass wait_seconds up to 25 to long-poll). Terminal states (approved/denied) carry the signed Proof of Resolution JWT — verify against BotShield's JWKS; the request_id is the JWT jti.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsCheckActionStatus(
|
|
@@ -14,23 +14,7 @@ export const tool$actionsProposeAction: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "propose_resolution",
|
|
15
15
|
description:
|
|
16
16
|
`Propose a human-presence-gated action to a BotShield user (Agents Ask). Returns a card_id immediately; the signed Proof of Resolution arrives async via the agent's registered callback, or poll check_resolution_status.`,
|
|
17
|
-
scopes: [
|
|
18
|
-
"queue",
|
|
19
|
-
"queue",
|
|
20
|
-
"queue",
|
|
21
|
-
"queue",
|
|
22
|
-
"queue",
|
|
23
|
-
"queue",
|
|
24
|
-
"queue",
|
|
25
|
-
"queue",
|
|
26
|
-
"queue",
|
|
27
|
-
"queue",
|
|
28
|
-
"queue",
|
|
29
|
-
"queue",
|
|
30
|
-
"queue",
|
|
31
|
-
"queue",
|
|
32
|
-
"queue",
|
|
33
|
-
],
|
|
17
|
+
scopes: ["queue", "queue"],
|
|
34
18
|
args,
|
|
35
19
|
tool: async (client, args, ctx) => {
|
|
36
20
|
const [result, apiCall] = await actionsProposeAction(
|
package/src/models/error-body.ts
CHANGED
|
@@ -5,35 +5,50 @@
|
|
|
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";
|
|
11
13
|
|
|
12
14
|
export type Violation = {
|
|
15
|
+
source?: string | undefined;
|
|
13
16
|
type?: string | undefined;
|
|
14
17
|
path?: string | undefined;
|
|
15
18
|
severity?: string | undefined;
|
|
19
|
+
value?: any | undefined;
|
|
20
|
+
explanation?: string | undefined;
|
|
21
|
+
fix?: string | undefined;
|
|
16
22
|
};
|
|
17
23
|
|
|
24
|
+
export const Reason = {
|
|
25
|
+
Rate: "rate",
|
|
26
|
+
Concurrent: "concurrent",
|
|
27
|
+
} as const;
|
|
28
|
+
export type Reason = OpenEnum<typeof Reason>;
|
|
29
|
+
|
|
30
|
+
export type Limits = {};
|
|
31
|
+
|
|
18
32
|
/**
|
|
19
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
33
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
20
34
|
*/
|
|
21
35
|
export type ErrorBody = {
|
|
22
36
|
message: string;
|
|
23
|
-
/**
|
|
24
|
-
* The HTTP status the error stands for (401, 403, 404, 409, 422, 500, 502).
|
|
25
|
-
*/
|
|
26
37
|
statusCode: number;
|
|
27
38
|
/**
|
|
28
|
-
*
|
|
39
|
+
* `ttl_below_floor`, `ttl_above_ceiling`, `trust_layer_rejected`, `trust_layer_unavailable`, `gate_required`, `alias_retired`, `RATE_LIMITED`.
|
|
29
40
|
*/
|
|
30
41
|
code?: string | undefined;
|
|
31
42
|
minTtlSeconds?: number | undefined;
|
|
32
43
|
maxTtlSeconds?: number | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*/
|
|
44
|
+
retryable?: boolean | undefined;
|
|
45
|
+
nextStep?: string | undefined;
|
|
36
46
|
violations?: Array<Violation> | undefined;
|
|
47
|
+
reason?: Reason | undefined;
|
|
48
|
+
bucket?: string | undefined;
|
|
49
|
+
retryIn?: number | undefined;
|
|
50
|
+
limits?: Limits | undefined;
|
|
51
|
+
upgradeUrl?: string | undefined;
|
|
37
52
|
};
|
|
38
53
|
|
|
39
54
|
/** @internal */
|
|
@@ -42,15 +57,23 @@ export const Violation$inboundSchema: z.ZodType<
|
|
|
42
57
|
z.ZodTypeDef,
|
|
43
58
|
unknown
|
|
44
59
|
> = z.object({
|
|
60
|
+
source: types.optional(types.string()),
|
|
45
61
|
type: types.optional(types.string()),
|
|
46
62
|
path: types.optional(types.string()),
|
|
47
63
|
severity: types.optional(types.string()),
|
|
64
|
+
value: types.optional(z.any()),
|
|
65
|
+
explanation: types.optional(types.string()),
|
|
66
|
+
fix: types.optional(types.string()),
|
|
48
67
|
});
|
|
49
68
|
/** @internal */
|
|
50
69
|
export type Violation$Outbound = {
|
|
70
|
+
source?: string | undefined;
|
|
51
71
|
type?: string | undefined;
|
|
52
72
|
path?: string | undefined;
|
|
53
73
|
severity?: string | undefined;
|
|
74
|
+
value?: any | undefined;
|
|
75
|
+
explanation?: string | undefined;
|
|
76
|
+
fix?: string | undefined;
|
|
54
77
|
};
|
|
55
78
|
|
|
56
79
|
/** @internal */
|
|
@@ -59,9 +82,13 @@ export const Violation$outboundSchema: z.ZodType<
|
|
|
59
82
|
z.ZodTypeDef,
|
|
60
83
|
Violation
|
|
61
84
|
> = z.object({
|
|
85
|
+
source: z.string().optional(),
|
|
62
86
|
type: z.string().optional(),
|
|
63
87
|
path: z.string().optional(),
|
|
64
88
|
severity: z.string().optional(),
|
|
89
|
+
value: z.any().optional(),
|
|
90
|
+
explanation: z.string().optional(),
|
|
91
|
+
fix: z.string().optional(),
|
|
65
92
|
});
|
|
66
93
|
|
|
67
94
|
export function violationToJSON(violation: Violation): string {
|
|
@@ -77,6 +104,39 @@ export function violationFromJSON(
|
|
|
77
104
|
);
|
|
78
105
|
}
|
|
79
106
|
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const Reason$inboundSchema: z.ZodType<Reason, z.ZodTypeDef, unknown> =
|
|
109
|
+
openEnums.inboundSchema(Reason);
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const Reason$outboundSchema: z.ZodType<string, z.ZodTypeDef, Reason> =
|
|
112
|
+
openEnums.outboundSchema(Reason);
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const Limits$inboundSchema: z.ZodType<Limits, z.ZodTypeDef, unknown> = z
|
|
116
|
+
.object({});
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type Limits$Outbound = {};
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const Limits$outboundSchema: z.ZodType<
|
|
122
|
+
Limits$Outbound,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
Limits
|
|
125
|
+
> = z.object({});
|
|
126
|
+
|
|
127
|
+
export function limitsToJSON(limits: Limits): string {
|
|
128
|
+
return JSON.stringify(Limits$outboundSchema.parse(limits));
|
|
129
|
+
}
|
|
130
|
+
export function limitsFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<Limits, SDKValidationError> {
|
|
133
|
+
return safeParse(
|
|
134
|
+
jsonString,
|
|
135
|
+
(x) => Limits$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'Limits' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
80
140
|
/** @internal */
|
|
81
141
|
export const ErrorBody$inboundSchema: z.ZodType<
|
|
82
142
|
ErrorBody,
|
|
@@ -88,11 +148,21 @@ export const ErrorBody$inboundSchema: z.ZodType<
|
|
|
88
148
|
code: types.optional(types.string()),
|
|
89
149
|
min_ttl_seconds: types.optional(types.number()),
|
|
90
150
|
max_ttl_seconds: types.optional(types.number()),
|
|
151
|
+
retryable: types.optional(types.boolean()),
|
|
152
|
+
next_step: types.optional(types.string()),
|
|
91
153
|
violations: types.optional(z.array(z.lazy(() => Violation$inboundSchema))),
|
|
154
|
+
reason: types.optional(Reason$inboundSchema),
|
|
155
|
+
bucket: types.optional(types.string()),
|
|
156
|
+
retry_in: types.optional(types.number()),
|
|
157
|
+
limits: types.optional(z.lazy(() => Limits$inboundSchema)),
|
|
158
|
+
upgrade_url: types.optional(types.string()),
|
|
92
159
|
}).transform((v) => {
|
|
93
160
|
return remap$(v, {
|
|
94
161
|
"min_ttl_seconds": "minTtlSeconds",
|
|
95
162
|
"max_ttl_seconds": "maxTtlSeconds",
|
|
163
|
+
"next_step": "nextStep",
|
|
164
|
+
"retry_in": "retryIn",
|
|
165
|
+
"upgrade_url": "upgradeUrl",
|
|
96
166
|
});
|
|
97
167
|
});
|
|
98
168
|
/** @internal */
|
|
@@ -102,7 +172,14 @@ export type ErrorBody$Outbound = {
|
|
|
102
172
|
code?: string | undefined;
|
|
103
173
|
min_ttl_seconds?: number | undefined;
|
|
104
174
|
max_ttl_seconds?: number | undefined;
|
|
175
|
+
retryable?: boolean | undefined;
|
|
176
|
+
next_step?: string | undefined;
|
|
105
177
|
violations?: Array<Violation$Outbound> | undefined;
|
|
178
|
+
reason?: string | undefined;
|
|
179
|
+
bucket?: string | undefined;
|
|
180
|
+
retry_in?: number | undefined;
|
|
181
|
+
limits?: Limits$Outbound | undefined;
|
|
182
|
+
upgrade_url?: string | undefined;
|
|
106
183
|
};
|
|
107
184
|
|
|
108
185
|
/** @internal */
|
|
@@ -116,11 +193,21 @@ export const ErrorBody$outboundSchema: z.ZodType<
|
|
|
116
193
|
code: z.string().optional(),
|
|
117
194
|
minTtlSeconds: z.number().int().optional(),
|
|
118
195
|
maxTtlSeconds: z.number().int().optional(),
|
|
196
|
+
retryable: z.boolean().optional(),
|
|
197
|
+
nextStep: z.string().optional(),
|
|
119
198
|
violations: z.array(z.lazy(() => Violation$outboundSchema)).optional(),
|
|
199
|
+
reason: Reason$outboundSchema.optional(),
|
|
200
|
+
bucket: z.string().optional(),
|
|
201
|
+
retryIn: z.number().int().optional(),
|
|
202
|
+
limits: z.lazy(() => Limits$outboundSchema).optional(),
|
|
203
|
+
upgradeUrl: z.string().optional(),
|
|
120
204
|
}).transform((v) => {
|
|
121
205
|
return remap$(v, {
|
|
122
206
|
minTtlSeconds: "min_ttl_seconds",
|
|
123
207
|
maxTtlSeconds: "max_ttl_seconds",
|
|
208
|
+
nextStep: "next_step",
|
|
209
|
+
retryIn: "retry_in",
|
|
210
|
+
upgradeUrl: "upgrade_url",
|
|
124
211
|
});
|
|
125
212
|
});
|
|
126
213
|
|
|
@@ -54,7 +54,7 @@ export type ActionsCancelDataData = {
|
|
|
54
54
|
export type ActionsCancelData = {
|
|
55
55
|
data?: ActionsCancelDataData | undefined;
|
|
56
56
|
/**
|
|
57
|
-
* Handler error. Arrives inside data.error with HTTP 200
|
|
57
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
58
58
|
*/
|
|
59
59
|
error?: models.ErrorBody | undefined;
|
|
60
60
|
};
|