botshield-sdk 2.0.1 → 2.0.2
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/LICENSE +21 -0
- package/README.md +76 -10
- package/bin/mcp-server.js +391 -18
- package/bin/mcp-server.js.map +15 -15
- package/dist/commonjs/funcs/census-get-partner-config.js +78 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +78 -0
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +78 -0
- 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 +91 -0
- 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 +104 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +13 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +26 -0
- 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 +17 -1
- 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 +17 -1
- 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 +17 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +26 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +26 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +26 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +26 -0
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +26 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +26 -0
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +26 -0
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +26 -0
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/esm/funcs/census-get-partner-config.js +78 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.js +78 -0
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/verification-get-status.js +78 -0
- 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 +91 -0
- 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 +104 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +13 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +26 -0
- 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 +17 -1
- 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 +17 -1
- 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 +17 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +26 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.js +26 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +26 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +26 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +26 -0
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +26 -0
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +26 -0
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +26 -0
- package/dist/esm/models/security.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +16 -1
- package/src/funcs/census-get-partner-config.ts +91 -0
- package/src/funcs/census-verify-token.ts +91 -0
- package/src/funcs/verification-get-status.ts +91 -0
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +91 -0
- package/src/mcp-server/cli/start/command.ts +104 -0
- package/src/mcp-server/cli/start/impl.ts +39 -0
- 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 +17 -1
- package/src/mcp-server/tools/actions-check-action-status.ts +17 -1
- package/src/mcp-server/tools/actions-propose-action.ts +17 -1
- package/src/models/operations/sdk-get-partner-config.ts +52 -0
- package/src/models/operations/sdk-verify-token.ts +52 -0
- package/src/models/operations/verification-get-status.ts +52 -0
- package/src/models/security.ts +52 -0
package/src/lib/security.ts
CHANGED
|
@@ -261,6 +261,97 @@ 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
|
+
],
|
|
264
355
|
];
|
|
265
356
|
|
|
266
357
|
if (allowedFields) {
|
|
@@ -59,6 +59,110 @@ 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
|
+
},
|
|
62
166
|
"server-url": {
|
|
63
167
|
kind: "parsed",
|
|
64
168
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -21,6 +21,19 @@ 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;
|
|
24
37
|
readonly "server-url"?: string;
|
|
25
38
|
readonly "server-index"?: SDKOptions["serverIdx"];
|
|
26
39
|
readonly "log-level": ConsoleLoggerLevel;
|
|
@@ -54,6 +67,19 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
54
67
|
security: {
|
|
55
68
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
56
69
|
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"] ?? "",
|
|
57
83
|
},
|
|
58
84
|
serverURL: flags["server-url"],
|
|
59
85
|
serverIdx: flags["server-index"],
|
|
@@ -78,6 +104,19 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
78
104
|
security: {
|
|
79
105
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
80
106
|
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"] ?? "",
|
|
81
120
|
},
|
|
82
121
|
serverURL: flags["server-url"],
|
|
83
122
|
serverIdx: flags["server-index"],
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,23 @@ 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: [
|
|
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
|
+
],
|
|
18
34
|
args,
|
|
19
35
|
tool: async (client, args, ctx) => {
|
|
20
36
|
const [result, apiCall] = await actionsCancelAction(
|
|
@@ -14,7 +14,23 @@ 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: [
|
|
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
|
+
],
|
|
18
34
|
args,
|
|
19
35
|
tool: async (client, args, ctx) => {
|
|
20
36
|
const [result, apiCall] = await actionsCheckActionStatus(
|
|
@@ -14,7 +14,23 @@ 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: [
|
|
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
|
+
],
|
|
18
34
|
args,
|
|
19
35
|
tool: async (client, args, ctx) => {
|
|
20
36
|
const [result, apiCall] = await actionsProposeAction(
|
|
@@ -15,6 +15,19 @@ 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;
|
|
18
31
|
};
|
|
19
32
|
|
|
20
33
|
export type SDKGetPartnerConfigRequest = {
|
|
@@ -72,11 +85,37 @@ export const SDKGetPartnerConfigSecurity$inboundSchema: z.ZodType<
|
|
|
72
85
|
> = z.object({
|
|
73
86
|
apiKeyAuth: types.optional(types.string()),
|
|
74
87
|
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()),
|
|
75
101
|
});
|
|
76
102
|
/** @internal */
|
|
77
103
|
export type SDKGetPartnerConfigSecurity$Outbound = {
|
|
78
104
|
apiKeyAuth?: string | undefined;
|
|
79
105
|
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;
|
|
80
119
|
};
|
|
81
120
|
|
|
82
121
|
/** @internal */
|
|
@@ -87,6 +126,19 @@ export const SDKGetPartnerConfigSecurity$outboundSchema: z.ZodType<
|
|
|
87
126
|
> = z.object({
|
|
88
127
|
apiKeyAuth: z.string().optional(),
|
|
89
128
|
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(),
|
|
90
142
|
});
|
|
91
143
|
|
|
92
144
|
export function sdkGetPartnerConfigSecurityToJSON(
|
|
@@ -13,6 +13,19 @@ import * as models from "../index.js";
|
|
|
13
13
|
export type SDKVerifyTokenSecurity = {
|
|
14
14
|
apiKeyAuth?: string | undefined;
|
|
15
15
|
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;
|
|
16
29
|
};
|
|
17
30
|
|
|
18
31
|
export type SDKVerifyTokenRequest = {
|
|
@@ -68,11 +81,37 @@ export const SDKVerifyTokenSecurity$inboundSchema: z.ZodType<
|
|
|
68
81
|
> = z.object({
|
|
69
82
|
apiKeyAuth: types.optional(types.string()),
|
|
70
83
|
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()),
|
|
71
97
|
});
|
|
72
98
|
/** @internal */
|
|
73
99
|
export type SDKVerifyTokenSecurity$Outbound = {
|
|
74
100
|
apiKeyAuth?: string | undefined;
|
|
75
101
|
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;
|
|
76
115
|
};
|
|
77
116
|
|
|
78
117
|
/** @internal */
|
|
@@ -83,6 +122,19 @@ export const SDKVerifyTokenSecurity$outboundSchema: z.ZodType<
|
|
|
83
122
|
> = z.object({
|
|
84
123
|
apiKeyAuth: z.string().optional(),
|
|
85
124
|
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(),
|
|
86
138
|
});
|
|
87
139
|
|
|
88
140
|
export function sdkVerifyTokenSecurityToJSON(
|
|
@@ -15,6 +15,19 @@ import * as models from "../index.js";
|
|
|
15
15
|
export type VerificationGetStatusSecurity = {
|
|
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;
|
|
18
31
|
};
|
|
19
32
|
|
|
20
33
|
export type VerificationGetStatusRequest = {
|
|
@@ -108,11 +121,37 @@ export const VerificationGetStatusSecurity$inboundSchema: z.ZodType<
|
|
|
108
121
|
> = z.object({
|
|
109
122
|
apiKeyAuth: types.optional(types.string()),
|
|
110
123
|
apiKeyAuth1: types.optional(types.string()),
|
|
124
|
+
apiKeyAuth2: types.optional(types.string()),
|
|
125
|
+
apiKeyAuth3: types.optional(types.string()),
|
|
126
|
+
apiKeyAuth4: types.optional(types.string()),
|
|
127
|
+
apiKeyAuth5: types.optional(types.string()),
|
|
128
|
+
apiKeyAuth6: types.optional(types.string()),
|
|
129
|
+
apiKeyAuth7: types.optional(types.string()),
|
|
130
|
+
apiKeyAuth8: types.optional(types.string()),
|
|
131
|
+
apiKeyAuth9: types.optional(types.string()),
|
|
132
|
+
apiKeyAuth10: types.optional(types.string()),
|
|
133
|
+
apiKeyAuth11: types.optional(types.string()),
|
|
134
|
+
apiKeyAuth12: types.optional(types.string()),
|
|
135
|
+
apiKeyAuth13: types.optional(types.string()),
|
|
136
|
+
apiKeyAuth14: types.optional(types.string()),
|
|
111
137
|
});
|
|
112
138
|
/** @internal */
|
|
113
139
|
export type VerificationGetStatusSecurity$Outbound = {
|
|
114
140
|
apiKeyAuth?: string | undefined;
|
|
115
141
|
apiKeyAuth1?: string | undefined;
|
|
142
|
+
apiKeyAuth2?: string | undefined;
|
|
143
|
+
apiKeyAuth3?: string | undefined;
|
|
144
|
+
apiKeyAuth4?: string | undefined;
|
|
145
|
+
apiKeyAuth5?: string | undefined;
|
|
146
|
+
apiKeyAuth6?: string | undefined;
|
|
147
|
+
apiKeyAuth7?: string | undefined;
|
|
148
|
+
apiKeyAuth8?: string | undefined;
|
|
149
|
+
apiKeyAuth9?: string | undefined;
|
|
150
|
+
apiKeyAuth10?: string | undefined;
|
|
151
|
+
apiKeyAuth11?: string | undefined;
|
|
152
|
+
apiKeyAuth12?: string | undefined;
|
|
153
|
+
apiKeyAuth13?: string | undefined;
|
|
154
|
+
apiKeyAuth14?: string | undefined;
|
|
116
155
|
};
|
|
117
156
|
|
|
118
157
|
/** @internal */
|
|
@@ -123,6 +162,19 @@ export const VerificationGetStatusSecurity$outboundSchema: z.ZodType<
|
|
|
123
162
|
> = z.object({
|
|
124
163
|
apiKeyAuth: z.string().optional(),
|
|
125
164
|
apiKeyAuth1: z.string().optional(),
|
|
165
|
+
apiKeyAuth2: z.string().optional(),
|
|
166
|
+
apiKeyAuth3: z.string().optional(),
|
|
167
|
+
apiKeyAuth4: z.string().optional(),
|
|
168
|
+
apiKeyAuth5: z.string().optional(),
|
|
169
|
+
apiKeyAuth6: z.string().optional(),
|
|
170
|
+
apiKeyAuth7: z.string().optional(),
|
|
171
|
+
apiKeyAuth8: z.string().optional(),
|
|
172
|
+
apiKeyAuth9: z.string().optional(),
|
|
173
|
+
apiKeyAuth10: z.string().optional(),
|
|
174
|
+
apiKeyAuth11: z.string().optional(),
|
|
175
|
+
apiKeyAuth12: z.string().optional(),
|
|
176
|
+
apiKeyAuth13: z.string().optional(),
|
|
177
|
+
apiKeyAuth14: z.string().optional(),
|
|
126
178
|
});
|
|
127
179
|
|
|
128
180
|
export function verificationGetStatusSecurityToJSON(
|
package/src/models/security.ts
CHANGED
|
@@ -11,6 +11,19 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
11
11
|
export type Security = {
|
|
12
12
|
agentKeyAuth?: string | undefined;
|
|
13
13
|
agentKeyAuth1?: string | undefined;
|
|
14
|
+
agentKeyAuth2?: string | undefined;
|
|
15
|
+
agentKeyAuth3?: string | undefined;
|
|
16
|
+
agentKeyAuth4?: string | undefined;
|
|
17
|
+
agentKeyAuth5?: string | undefined;
|
|
18
|
+
agentKeyAuth6?: string | undefined;
|
|
19
|
+
agentKeyAuth7?: string | undefined;
|
|
20
|
+
agentKeyAuth8?: string | undefined;
|
|
21
|
+
agentKeyAuth9?: string | undefined;
|
|
22
|
+
agentKeyAuth10?: string | undefined;
|
|
23
|
+
agentKeyAuth11?: string | undefined;
|
|
24
|
+
agentKeyAuth12?: string | undefined;
|
|
25
|
+
agentKeyAuth13?: string | undefined;
|
|
26
|
+
agentKeyAuth14?: string | undefined;
|
|
14
27
|
};
|
|
15
28
|
|
|
16
29
|
/** @internal */
|
|
@@ -21,11 +34,37 @@ export const Security$inboundSchema: z.ZodType<
|
|
|
21
34
|
> = z.object({
|
|
22
35
|
agentKeyAuth: types.optional(types.string()),
|
|
23
36
|
agentKeyAuth1: types.optional(types.string()),
|
|
37
|
+
agentKeyAuth2: types.optional(types.string()),
|
|
38
|
+
agentKeyAuth3: types.optional(types.string()),
|
|
39
|
+
agentKeyAuth4: types.optional(types.string()),
|
|
40
|
+
agentKeyAuth5: types.optional(types.string()),
|
|
41
|
+
agentKeyAuth6: types.optional(types.string()),
|
|
42
|
+
agentKeyAuth7: types.optional(types.string()),
|
|
43
|
+
agentKeyAuth8: types.optional(types.string()),
|
|
44
|
+
agentKeyAuth9: types.optional(types.string()),
|
|
45
|
+
agentKeyAuth10: types.optional(types.string()),
|
|
46
|
+
agentKeyAuth11: types.optional(types.string()),
|
|
47
|
+
agentKeyAuth12: types.optional(types.string()),
|
|
48
|
+
agentKeyAuth13: types.optional(types.string()),
|
|
49
|
+
agentKeyAuth14: types.optional(types.string()),
|
|
24
50
|
});
|
|
25
51
|
/** @internal */
|
|
26
52
|
export type Security$Outbound = {
|
|
27
53
|
agentKeyAuth?: string | undefined;
|
|
28
54
|
agentKeyAuth1?: string | undefined;
|
|
55
|
+
agentKeyAuth2?: string | undefined;
|
|
56
|
+
agentKeyAuth3?: string | undefined;
|
|
57
|
+
agentKeyAuth4?: string | undefined;
|
|
58
|
+
agentKeyAuth5?: string | undefined;
|
|
59
|
+
agentKeyAuth6?: string | undefined;
|
|
60
|
+
agentKeyAuth7?: string | undefined;
|
|
61
|
+
agentKeyAuth8?: string | undefined;
|
|
62
|
+
agentKeyAuth9?: string | undefined;
|
|
63
|
+
agentKeyAuth10?: string | undefined;
|
|
64
|
+
agentKeyAuth11?: string | undefined;
|
|
65
|
+
agentKeyAuth12?: string | undefined;
|
|
66
|
+
agentKeyAuth13?: string | undefined;
|
|
67
|
+
agentKeyAuth14?: string | undefined;
|
|
29
68
|
};
|
|
30
69
|
|
|
31
70
|
/** @internal */
|
|
@@ -36,6 +75,19 @@ export const Security$outboundSchema: z.ZodType<
|
|
|
36
75
|
> = z.object({
|
|
37
76
|
agentKeyAuth: z.string().optional(),
|
|
38
77
|
agentKeyAuth1: z.string().optional(),
|
|
78
|
+
agentKeyAuth2: z.string().optional(),
|
|
79
|
+
agentKeyAuth3: z.string().optional(),
|
|
80
|
+
agentKeyAuth4: z.string().optional(),
|
|
81
|
+
agentKeyAuth5: z.string().optional(),
|
|
82
|
+
agentKeyAuth6: z.string().optional(),
|
|
83
|
+
agentKeyAuth7: z.string().optional(),
|
|
84
|
+
agentKeyAuth8: z.string().optional(),
|
|
85
|
+
agentKeyAuth9: z.string().optional(),
|
|
86
|
+
agentKeyAuth10: z.string().optional(),
|
|
87
|
+
agentKeyAuth11: z.string().optional(),
|
|
88
|
+
agentKeyAuth12: z.string().optional(),
|
|
89
|
+
agentKeyAuth13: z.string().optional(),
|
|
90
|
+
agentKeyAuth14: z.string().optional(),
|
|
39
91
|
});
|
|
40
92
|
|
|
41
93
|
export function securityToJSON(security: Security): string {
|