@composio/client 2.0.0-rc.10 → 2.0.0-rc.11
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/dist/{api-key-revocation-CMby8GRJ.mjs → api-key-revocation-Dh-KSokR.mjs} +1 -1
- package/dist/{auth-Cogku2no.mjs → auth-Drov-jN8.mjs} +1 -1
- package/dist/{auth-configs-Dgujwvul.mjs → auth-configs-yM05-r6r.mjs} +1 -1
- package/dist/{clanker-Ddf6to-5.mjs → clanker-BYmc69WC.mjs} +1 -1
- package/dist/{cli-Bx3dRctN.mjs → cli-Ce8RT7yp.mjs} +2 -2
- package/dist/{connected-accounts-DNOWcz-A.mjs → connected-accounts-D__sOoNZ.mjs} +1 -1
- package/dist/{consumer-B_ccSE7b.mjs → consumer-DTh50Hih.mjs} +2 -2
- package/dist/{custom-JHvAPJnl.mjs → custom-CdC-6Y_i.mjs} +1 -1
- package/dist/{custom-CEy4IB_M.mjs → custom-nlGufiDz.mjs} +1 -1
- package/dist/{files-C74URe8c.mjs → files-DROCPzLP.mjs} +1 -1
- package/dist/{files-CxbSR_Qf.mjs → files-RJPIH6iE.mjs} +1 -1
- package/dist/{generate-Cfcp7BDV.mjs → generate-mU4b3zJf.mjs} +1 -1
- package/dist/{generated-operations-DpYfIPgx.mjs → generated-operations-CWhusMPU.mjs} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +23 -23
- package/dist/{keyring-DPTbHLph.mjs → keyring-BzkcB1gu.mjs} +1 -1
- package/dist/{link-HtoYUvao.mjs → link-CfIyH3nF.mjs} +1 -1
- package/dist/{logs-B1kxIBDI.mjs → logs-D2wxXYiO.mjs} +3 -3
- package/dist/{manage-Cv_zl1Pa.mjs → manage-Vc3jdRr_.mjs} +1 -1
- package/dist/{mcp-DPHzA1Gg.mjs → mcp-DEe7xU7G.mjs} +3 -3
- package/dist/{org-DfPJHXZ4.mjs → org-CYsl9O1u.mjs} +6 -6
- package/dist/{owner-BOJ0ppd_.mjs → owner-DmQb3AF5.mjs} +1 -1
- package/dist/{project-z2RqqvAR.mjs → project-BVBWJzHm.mjs} +1 -1
- package/dist/{project-CBh3olOE.mjs → project-D-_r3H1_.mjs} +1 -1
- package/dist/{project-DgHmeDvz.mjs → project-DvSCDA9B.mjs} +1 -1
- package/dist/{project-Cyn5wfjX.mjs → project-OSigfIdr.mjs} +1 -1
- package/dist/{realtime-AhDHHK8s.mjs → realtime-Dsk1QGAl.mjs} +1 -1
- package/dist/resources/api-key-revocation.d.mts +1 -1
- package/dist/resources/api-key-revocation.mjs +1 -1
- package/dist/resources/auth/auth.d.mts +1 -1
- package/dist/resources/auth/auth.mjs +1 -1
- package/dist/resources/auth/index.d.mts +1 -1
- package/dist/resources/auth/index.mjs +2 -2
- package/dist/resources/auth/session.d.mts +1 -1
- package/dist/resources/auth/session.mjs +1 -1
- package/dist/resources/auth-configs.d.mts +1 -1
- package/dist/resources/auth-configs.mjs +1 -1
- package/dist/resources/auth.d.mts +1 -1
- package/dist/resources/auth.mjs +2 -2
- package/dist/resources/cli/cli.d.mts +1 -1
- package/dist/resources/cli/cli.mjs +1 -1
- package/dist/resources/cli/index.d.mts +1 -1
- package/dist/resources/cli/index.mjs +2 -2
- package/dist/resources/cli/realtime.d.mts +1 -1
- package/dist/resources/cli/realtime.mjs +1 -1
- package/dist/resources/cli.d.mts +1 -1
- package/dist/resources/cli.mjs +2 -2
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +1 -1
- package/dist/resources/custom.mjs +1 -1
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/index.d.mts +1 -1
- package/dist/resources/index.mjs +13 -13
- package/dist/resources/keyring.d.mts +1 -1
- package/dist/resources/keyring.mjs +1 -1
- package/dist/resources/link.d.mts +1 -1
- package/dist/resources/link.mjs +1 -1
- package/dist/resources/logs/index.d.mts +1 -1
- package/dist/resources/logs/index.mjs +3 -3
- package/dist/resources/logs/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -1
- package/dist/resources/logs/tools.d.mts +1 -1
- package/dist/resources/logs/tools.mjs +1 -1
- package/dist/resources/logs/triggers.d.mts +1 -1
- package/dist/resources/logs/triggers.mjs +1 -1
- package/dist/resources/logs.d.mts +1 -1
- package/dist/resources/logs.mjs +3 -3
- package/dist/resources/mcp/custom.d.mts +1 -1
- package/dist/resources/mcp/custom.mjs +1 -1
- package/dist/resources/mcp/generate.d.mts +1 -1
- package/dist/resources/mcp/generate.mjs +1 -1
- package/dist/resources/mcp/index.d.mts +1 -1
- package/dist/resources/mcp/index.mjs +3 -3
- package/dist/resources/mcp/mcp.d.mts +1 -1
- package/dist/resources/mcp/mcp.mjs +1 -1
- package/dist/resources/mcp.d.mts +1 -1
- package/dist/resources/mcp.mjs +3 -3
- package/dist/resources/org/clanker.d.mts +1 -1
- package/dist/resources/org/clanker.mjs +1 -1
- package/dist/resources/org/consumer/consumer.d.mts +1 -1
- package/dist/resources/org/consumer/consumer.mjs +1 -1
- package/dist/resources/org/consumer/index.d.mts +1 -1
- package/dist/resources/org/consumer/index.mjs +2 -2
- package/dist/resources/org/consumer/project.d.mts +1 -1
- package/dist/resources/org/consumer/project.mjs +1 -1
- package/dist/resources/org/consumer.d.mts +1 -1
- package/dist/resources/org/consumer.mjs +2 -2
- package/dist/resources/org/index.d.mts +1 -1
- package/dist/resources/org/index.mjs +6 -6
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -1
- package/dist/resources/org/owner/index.d.mts +1 -1
- package/dist/resources/org/owner/index.mjs +2 -2
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/owner.mjs +1 -1
- package/dist/resources/org/owner/project.d.mts +1 -1
- package/dist/resources/org/owner/project.mjs +1 -1
- package/dist/resources/org/owner.d.mts +1 -1
- package/dist/resources/org/owner.mjs +2 -2
- package/dist/resources/org/project.d.mts +1 -1
- package/dist/resources/org/project.mjs +1 -1
- package/dist/resources/org/usage.d.mts +1 -1
- package/dist/resources/org/usage.mjs +1 -1
- package/dist/resources/org.d.mts +1 -1
- package/dist/resources/org.mjs +6 -6
- package/dist/resources/project/index.d.mts +1 -1
- package/dist/resources/project/index.mjs +1 -1
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/project.mjs +1 -1
- package/dist/resources/project/usage.d.mts +1 -1
- package/dist/resources/project/usage.mjs +1 -1
- package/dist/resources/project.d.mts +1 -1
- package/dist/resources/project.mjs +1 -1
- package/dist/resources/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- package/dist/resources/tool-router/index.d.mts +1 -1
- package/dist/resources/tool-router/index.mjs +2 -2
- package/dist/resources/tool-router/session/files.d.mts +1 -1
- package/dist/resources/tool-router/session/files.mjs +1 -1
- package/dist/resources/tool-router/session/index.d.mts +1 -1
- package/dist/resources/tool-router/session/index.mjs +2 -2
- package/dist/resources/tool-router/session/session.d.mts +1 -1
- package/dist/resources/tool-router/session/session.mjs +1 -1
- package/dist/resources/tool-router/session.d.mts +1 -1
- package/dist/resources/tool-router/session.mjs +2 -2
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.mjs +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.mjs +2 -2
- package/dist/resources/toolkits.d.mts +1 -1
- package/dist/resources/toolkits.mjs +1 -1
- package/dist/resources/tools.d.mts +1 -1
- package/dist/resources/tools.mjs +1 -1
- package/dist/resources/trigger-instances/index.d.mts +1 -1
- package/dist/resources/trigger-instances/index.mjs +2 -2
- package/dist/resources/trigger-instances/manage.d.mts +1 -1
- package/dist/resources/trigger-instances/manage.mjs +1 -1
- package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
- package/dist/resources/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances.mjs +2 -2
- package/dist/resources/triggers-types.d.mts +1 -1
- package/dist/resources/triggers-types.mjs +1 -1
- package/dist/resources/webhook-endpoints.d.mts +1 -1
- package/dist/resources/webhook-endpoints.mjs +1 -1
- package/dist/resources/webhook-subscriptions.d.mts +1 -1
- package/dist/resources/webhook-subscriptions.mjs +1 -1
- package/dist/{session-ZjgXXTor.mjs → session-BUYbl8BA.mjs} +2 -2
- package/dist/{session-DN52ZBZa.mjs → session-DfISYrbs.mjs} +1 -1
- package/dist/{session-configs-DBYUrVm-.d.mts → session-configs-CipRvstF.d.mts} +141 -103
- package/dist/{tool-router-oEa6XLps.mjs → tool-router-DJQ12uhs.mjs} +1 -1
- package/dist/{toolkits-gnhAqP-a.mjs → toolkits-CbdyRtvr.mjs} +1 -1
- package/dist/{tools-CplwSMIX.mjs → tools-DiH6dAto.mjs} +1 -1
- package/dist/{tools-B6EBv0kQ.mjs → tools-a29E_8La.mjs} +1 -1
- package/dist/{trigger-instances-BZyLCvgX.mjs → trigger-instances-Bg0n7X-d.mjs} +2 -2
- package/dist/{triggers-tFRN45MV.mjs → triggers-BoSFNGss.mjs} +1 -1
- package/dist/{triggers-types-BOXTcipZ.mjs → triggers-types-BPtTEwUA.mjs} +1 -1
- package/dist/{usage-qjodPLQq.mjs → usage-CHVyZ3tm.mjs} +1 -1
- package/dist/{usage-DsWhJVDd.mjs → usage-Cs10eWCd.mjs} +1 -1
- package/dist/{webhook-endpoints-Cv2sK6HF.mjs → webhook-endpoints-B4lZc5YC.mjs} +1 -1
- package/dist/{webhook-subscriptions-BxPEYH5X.mjs → webhook-subscriptions-DJTSJd6K.mjs} +1 -1
- package/package.json +1 -1
|
@@ -281,18 +281,18 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
281
281
|
toolkits?: {
|
|
282
282
|
enabled: Array<string>;
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* Tool calls matched here pause until the user approves them.
|
|
285
285
|
*/
|
|
286
286
|
require_approval?: Array<string>;
|
|
287
287
|
} | {
|
|
288
288
|
disabled: Array<string>;
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
290
|
+
* Tool calls matched here pause until the user approves them.
|
|
291
291
|
*/
|
|
292
292
|
require_approval?: Array<string>;
|
|
293
293
|
} | {
|
|
294
294
|
/**
|
|
295
|
-
*
|
|
295
|
+
* Tool calls matched here pause until the user approves them.
|
|
296
296
|
*/
|
|
297
297
|
require_approval: Array<string>;
|
|
298
298
|
};
|
|
@@ -357,13 +357,13 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
357
357
|
[key: string]: {
|
|
358
358
|
enabled: Array<string>;
|
|
359
359
|
/**
|
|
360
|
-
*
|
|
360
|
+
* Tool calls matched here pause until the user approves them.
|
|
361
361
|
*/
|
|
362
362
|
require_approval?: Array<string>;
|
|
363
363
|
} | {
|
|
364
364
|
disabled: Array<string>;
|
|
365
365
|
/**
|
|
366
|
-
*
|
|
366
|
+
* Tool calls matched here pause until the user approves them.
|
|
367
367
|
*/
|
|
368
368
|
require_approval?: Array<string>;
|
|
369
369
|
} | {
|
|
@@ -377,17 +377,17 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
377
377
|
*/
|
|
378
378
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
380
|
+
* Tool calls matched here pause until the user approves them.
|
|
381
381
|
*/
|
|
382
382
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
383
383
|
};
|
|
384
384
|
/**
|
|
385
|
-
*
|
|
385
|
+
* Tool calls matched here pause until the user approves them.
|
|
386
386
|
*/
|
|
387
387
|
require_approval?: Array<string>;
|
|
388
388
|
} | {
|
|
389
389
|
/**
|
|
390
|
-
*
|
|
390
|
+
* Tool calls matched here pause until the user approves them.
|
|
391
391
|
*/
|
|
392
392
|
require_approval: Array<string>;
|
|
393
393
|
};
|
|
@@ -405,7 +405,7 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
405
405
|
*/
|
|
406
406
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
407
407
|
/**
|
|
408
|
-
*
|
|
408
|
+
* Tool calls matched here pause until the user approves them.
|
|
409
409
|
*/
|
|
410
410
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
411
411
|
};
|
|
@@ -498,7 +498,11 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
498
498
|
current_page: number;
|
|
499
499
|
total_items: number;
|
|
500
500
|
};
|
|
501
|
-
type
|
|
501
|
+
type ExecuteCompleted = {
|
|
502
|
+
/**
|
|
503
|
+
* The tool ran and succeeded
|
|
504
|
+
*/
|
|
505
|
+
result_type: 'completed';
|
|
502
506
|
/**
|
|
503
507
|
* Returned only when the session enables instant.return_instant_charge and a charge is available. Failed individual tool calls omit it. Multi-execute returns one aggregate of reported charges from eligible successful calls, even if another call fails.
|
|
504
508
|
*/
|
|
@@ -530,12 +534,12 @@ type ToolRouterSessionExecuteCompleted = {
|
|
|
530
534
|
* Unique identifier for the execution log
|
|
531
535
|
*/
|
|
532
536
|
log_id: string;
|
|
537
|
+
};
|
|
538
|
+
type ExecuteFailed = {
|
|
533
539
|
/**
|
|
534
|
-
* The tool ran and
|
|
540
|
+
* The tool ran and failed, or the user did not approve it
|
|
535
541
|
*/
|
|
536
|
-
result_type: '
|
|
537
|
-
};
|
|
538
|
-
type ToolRouterSessionExecuteFailed = {
|
|
542
|
+
result_type: 'failed';
|
|
539
543
|
/**
|
|
540
544
|
* Returned only when the session enables instant.return_instant_charge and a charge is available. Failed individual tool calls omit it. Multi-execute returns one aggregate of reported charges from eligible successful calls, even if another call fails.
|
|
541
545
|
*/
|
|
@@ -567,44 +571,64 @@ type ToolRouterSessionExecuteFailed = {
|
|
|
567
571
|
* Unique identifier for the execution log
|
|
568
572
|
*/
|
|
569
573
|
log_id: string;
|
|
570
|
-
/**
|
|
571
|
-
* The tool ran and failed
|
|
572
|
-
*/
|
|
573
|
-
result_type: 'failed';
|
|
574
574
|
};
|
|
575
|
-
|
|
575
|
+
/**
|
|
576
|
+
* A question for the user, in the shape of an MCP `elicitation/create` request in form mode (https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation). Show `message` to the user and collect an answer that matches `requested_schema`.
|
|
577
|
+
*/
|
|
578
|
+
type UserInputRequest = {
|
|
576
579
|
/**
|
|
577
|
-
*
|
|
580
|
+
* Always `elicitation`
|
|
578
581
|
*/
|
|
579
582
|
type: 'elicitation';
|
|
580
583
|
/**
|
|
581
|
-
*
|
|
584
|
+
* Always `form`: collect the answer with a form built from `requested_schema`
|
|
582
585
|
*/
|
|
583
586
|
mode: 'form';
|
|
584
587
|
/**
|
|
585
|
-
*
|
|
588
|
+
* Text to show the user
|
|
586
589
|
*/
|
|
587
590
|
message: string;
|
|
588
591
|
/**
|
|
589
|
-
* JSON Schema for the answer
|
|
592
|
+
* JSON Schema for the answer. As in MCP form mode, it is a flat object whose fields are strings, numbers, booleans, or single- or multi-select enums.
|
|
590
593
|
*/
|
|
591
594
|
requested_schema: {
|
|
592
595
|
[key: string]: unknown;
|
|
593
596
|
};
|
|
594
597
|
};
|
|
595
|
-
|
|
598
|
+
/**
|
|
599
|
+
* The call needs the user's input before it runs. Returned only when the session is configured to ask for user approval before tool execution. Show each question in `input_requests` to the user, then repeat the same call with their answers in `input_responses`, along with this `request_state` if present.
|
|
600
|
+
*/
|
|
601
|
+
type ExecuteRequiresUserInput = {
|
|
602
|
+
/**
|
|
603
|
+
* The call needs the user's input before it runs
|
|
604
|
+
*/
|
|
596
605
|
result_type: 'input_required';
|
|
597
606
|
/**
|
|
598
607
|
* Questions for the user, keyed by an ID the answers must reuse
|
|
599
608
|
*/
|
|
600
609
|
input_requests: {
|
|
601
|
-
[key: string]:
|
|
610
|
+
[key: string]: UserInputRequest;
|
|
602
611
|
};
|
|
603
612
|
/**
|
|
604
|
-
*
|
|
613
|
+
* Send this back unchanged in `request_state` with the answers
|
|
605
614
|
*/
|
|
606
615
|
request_state?: string;
|
|
607
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* The user's answer to one question, in the shape of an MCP elicitation result (https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation).
|
|
619
|
+
*/
|
|
620
|
+
type UserInputResponse = {
|
|
621
|
+
/**
|
|
622
|
+
* `accept` when the user submitted the form, `decline` when they said no, `cancel` when they dismissed it
|
|
623
|
+
*/
|
|
624
|
+
action: 'accept' | 'decline' | 'cancel';
|
|
625
|
+
/**
|
|
626
|
+
* With `accept`, the user's answer: fields matching the question's `requested_schema`
|
|
627
|
+
*/
|
|
628
|
+
content?: {
|
|
629
|
+
[key: string]: unknown;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
608
632
|
type ComposioManagedAuthConfigCreate = {
|
|
609
633
|
type: 'use_composio_managed_auth';
|
|
610
634
|
/**
|
|
@@ -897,7 +921,11 @@ type PatchConnectedAccountBody = {
|
|
|
897
921
|
type DeprecatedToolkitInfo = {
|
|
898
922
|
toolkitId: string;
|
|
899
923
|
};
|
|
900
|
-
type
|
|
924
|
+
type ProxyExecuteCompleted = {
|
|
925
|
+
/**
|
|
926
|
+
* The request was sent and the proxied API responded
|
|
927
|
+
*/
|
|
928
|
+
result_type: 'completed';
|
|
901
929
|
/**
|
|
902
930
|
* The response data returned from the proxied API
|
|
903
931
|
*/
|
|
@@ -933,10 +961,6 @@ type ProxyExecuteForSessionCompleted = {
|
|
|
933
961
|
headers?: {
|
|
934
962
|
[key: string]: string;
|
|
935
963
|
};
|
|
936
|
-
/**
|
|
937
|
-
* The request was sent and the proxied API responded
|
|
938
|
-
*/
|
|
939
|
-
result_type: 'completed';
|
|
940
964
|
};
|
|
941
965
|
type ToolRouterToolkitsListResponse = {
|
|
942
966
|
items: Array<{
|
|
@@ -2820,7 +2844,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2820
2844
|
*/
|
|
2821
2845
|
enable: Array<string>;
|
|
2822
2846
|
/**
|
|
2823
|
-
*
|
|
2847
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2824
2848
|
*/
|
|
2825
2849
|
require_approval?: Array<string>;
|
|
2826
2850
|
} | {
|
|
@@ -2829,12 +2853,12 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2829
2853
|
*/
|
|
2830
2854
|
disable: Array<string>;
|
|
2831
2855
|
/**
|
|
2832
|
-
*
|
|
2856
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2833
2857
|
*/
|
|
2834
2858
|
require_approval?: Array<string>;
|
|
2835
2859
|
} | {
|
|
2836
2860
|
/**
|
|
2837
|
-
*
|
|
2861
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2838
2862
|
*/
|
|
2839
2863
|
require_approval: Array<string>;
|
|
2840
2864
|
};
|
|
@@ -2920,7 +2944,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2920
2944
|
*/
|
|
2921
2945
|
enable: Array<string>;
|
|
2922
2946
|
/**
|
|
2923
|
-
*
|
|
2947
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2924
2948
|
*/
|
|
2925
2949
|
require_approval?: Array<string>;
|
|
2926
2950
|
} | {
|
|
@@ -2929,7 +2953,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2929
2953
|
*/
|
|
2930
2954
|
disable: Array<string>;
|
|
2931
2955
|
/**
|
|
2932
|
-
*
|
|
2956
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2933
2957
|
*/
|
|
2934
2958
|
require_approval?: Array<string>;
|
|
2935
2959
|
} | {
|
|
@@ -2940,17 +2964,17 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2940
2964
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2941
2965
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2942
2966
|
/**
|
|
2943
|
-
*
|
|
2967
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2944
2968
|
*/
|
|
2945
2969
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2946
2970
|
};
|
|
2947
2971
|
/**
|
|
2948
|
-
*
|
|
2972
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2949
2973
|
*/
|
|
2950
2974
|
require_approval?: Array<string>;
|
|
2951
2975
|
} | {
|
|
2952
2976
|
/**
|
|
2953
|
-
*
|
|
2977
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2954
2978
|
*/
|
|
2955
2979
|
require_approval: Array<string>;
|
|
2956
2980
|
};
|
|
@@ -2962,7 +2986,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2962
2986
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2963
2987
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2964
2988
|
/**
|
|
2965
|
-
*
|
|
2989
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
2966
2990
|
*/
|
|
2967
2991
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2968
2992
|
};
|
|
@@ -3151,7 +3175,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3151
3175
|
enable?: boolean;
|
|
3152
3176
|
};
|
|
3153
3177
|
/**
|
|
3154
|
-
*
|
|
3178
|
+
* What session MCP does with a tool call that needs approval when the MCP client can't ask the user. deny (default) rejects the call; allow runs it without approval.
|
|
3155
3179
|
*/
|
|
3156
3180
|
no_elicitation_support_fallback?: 'deny' | 'allow';
|
|
3157
3181
|
/**
|
|
@@ -3216,18 +3240,18 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3216
3240
|
toolkits?: {
|
|
3217
3241
|
enabled: Array<string>;
|
|
3218
3242
|
/**
|
|
3219
|
-
*
|
|
3243
|
+
* Tool calls matched here pause until the user approves them.
|
|
3220
3244
|
*/
|
|
3221
3245
|
require_approval?: Array<string>;
|
|
3222
3246
|
} | {
|
|
3223
3247
|
disabled: Array<string>;
|
|
3224
3248
|
/**
|
|
3225
|
-
*
|
|
3249
|
+
* Tool calls matched here pause until the user approves them.
|
|
3226
3250
|
*/
|
|
3227
3251
|
require_approval?: Array<string>;
|
|
3228
3252
|
} | {
|
|
3229
3253
|
/**
|
|
3230
|
-
*
|
|
3254
|
+
* Tool calls matched here pause until the user approves them.
|
|
3231
3255
|
*/
|
|
3232
3256
|
require_approval: Array<string>;
|
|
3233
3257
|
};
|
|
@@ -3292,13 +3316,13 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3292
3316
|
[key: string]: {
|
|
3293
3317
|
enabled: Array<string>;
|
|
3294
3318
|
/**
|
|
3295
|
-
*
|
|
3319
|
+
* Tool calls matched here pause until the user approves them.
|
|
3296
3320
|
*/
|
|
3297
3321
|
require_approval?: Array<string>;
|
|
3298
3322
|
} | {
|
|
3299
3323
|
disabled: Array<string>;
|
|
3300
3324
|
/**
|
|
3301
|
-
*
|
|
3325
|
+
* Tool calls matched here pause until the user approves them.
|
|
3302
3326
|
*/
|
|
3303
3327
|
require_approval?: Array<string>;
|
|
3304
3328
|
} | {
|
|
@@ -3312,17 +3336,17 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3312
3336
|
*/
|
|
3313
3337
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3314
3338
|
/**
|
|
3315
|
-
*
|
|
3339
|
+
* Tool calls matched here pause until the user approves them.
|
|
3316
3340
|
*/
|
|
3317
3341
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3318
3342
|
};
|
|
3319
3343
|
/**
|
|
3320
|
-
*
|
|
3344
|
+
* Tool calls matched here pause until the user approves them.
|
|
3321
3345
|
*/
|
|
3322
3346
|
require_approval?: Array<string>;
|
|
3323
3347
|
} | {
|
|
3324
3348
|
/**
|
|
3325
|
-
*
|
|
3349
|
+
* Tool calls matched here pause until the user approves them.
|
|
3326
3350
|
*/
|
|
3327
3351
|
require_approval: Array<string>;
|
|
3328
3352
|
};
|
|
@@ -3340,7 +3364,7 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3340
3364
|
*/
|
|
3341
3365
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3342
3366
|
/**
|
|
3343
|
-
*
|
|
3367
|
+
* Tool calls matched here pause until the user approves them.
|
|
3344
3368
|
*/
|
|
3345
3369
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3346
3370
|
};
|
|
@@ -3573,18 +3597,18 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3573
3597
|
toolkits?: {
|
|
3574
3598
|
enabled: Array<string>;
|
|
3575
3599
|
/**
|
|
3576
|
-
*
|
|
3600
|
+
* Tool calls matched here pause until the user approves them.
|
|
3577
3601
|
*/
|
|
3578
3602
|
require_approval?: Array<string>;
|
|
3579
3603
|
} | {
|
|
3580
3604
|
disabled: Array<string>;
|
|
3581
3605
|
/**
|
|
3582
|
-
*
|
|
3606
|
+
* Tool calls matched here pause until the user approves them.
|
|
3583
3607
|
*/
|
|
3584
3608
|
require_approval?: Array<string>;
|
|
3585
3609
|
} | {
|
|
3586
3610
|
/**
|
|
3587
|
-
*
|
|
3611
|
+
* Tool calls matched here pause until the user approves them.
|
|
3588
3612
|
*/
|
|
3589
3613
|
require_approval: Array<string>;
|
|
3590
3614
|
};
|
|
@@ -3649,13 +3673,13 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3649
3673
|
[key: string]: {
|
|
3650
3674
|
enabled: Array<string>;
|
|
3651
3675
|
/**
|
|
3652
|
-
*
|
|
3676
|
+
* Tool calls matched here pause until the user approves them.
|
|
3653
3677
|
*/
|
|
3654
3678
|
require_approval?: Array<string>;
|
|
3655
3679
|
} | {
|
|
3656
3680
|
disabled: Array<string>;
|
|
3657
3681
|
/**
|
|
3658
|
-
*
|
|
3682
|
+
* Tool calls matched here pause until the user approves them.
|
|
3659
3683
|
*/
|
|
3660
3684
|
require_approval?: Array<string>;
|
|
3661
3685
|
} | {
|
|
@@ -3669,17 +3693,17 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3669
3693
|
*/
|
|
3670
3694
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3671
3695
|
/**
|
|
3672
|
-
*
|
|
3696
|
+
* Tool calls matched here pause until the user approves them.
|
|
3673
3697
|
*/
|
|
3674
3698
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3675
3699
|
};
|
|
3676
3700
|
/**
|
|
3677
|
-
*
|
|
3701
|
+
* Tool calls matched here pause until the user approves them.
|
|
3678
3702
|
*/
|
|
3679
3703
|
require_approval?: Array<string>;
|
|
3680
3704
|
} | {
|
|
3681
3705
|
/**
|
|
3682
|
-
*
|
|
3706
|
+
* Tool calls matched here pause until the user approves them.
|
|
3683
3707
|
*/
|
|
3684
3708
|
require_approval: Array<string>;
|
|
3685
3709
|
};
|
|
@@ -3697,7 +3721,7 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3697
3721
|
*/
|
|
3698
3722
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3699
3723
|
/**
|
|
3700
|
-
*
|
|
3724
|
+
* Tool calls matched here pause until the user approves them.
|
|
3701
3725
|
*/
|
|
3702
3726
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3703
3727
|
};
|
|
@@ -3889,7 +3913,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3889
3913
|
*/
|
|
3890
3914
|
enable: Array<string>;
|
|
3891
3915
|
/**
|
|
3892
|
-
*
|
|
3916
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3893
3917
|
*/
|
|
3894
3918
|
require_approval?: Array<string>;
|
|
3895
3919
|
} | {
|
|
@@ -3898,12 +3922,12 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3898
3922
|
*/
|
|
3899
3923
|
disable: Array<string>;
|
|
3900
3924
|
/**
|
|
3901
|
-
*
|
|
3925
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3902
3926
|
*/
|
|
3903
3927
|
require_approval?: Array<string>;
|
|
3904
3928
|
} | {
|
|
3905
3929
|
/**
|
|
3906
|
-
*
|
|
3930
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3907
3931
|
*/
|
|
3908
3932
|
require_approval: Array<string>;
|
|
3909
3933
|
};
|
|
@@ -3986,7 +4010,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3986
4010
|
*/
|
|
3987
4011
|
enable: Array<string>;
|
|
3988
4012
|
/**
|
|
3989
|
-
*
|
|
4013
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3990
4014
|
*/
|
|
3991
4015
|
require_approval?: Array<string>;
|
|
3992
4016
|
} | {
|
|
@@ -3995,7 +4019,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3995
4019
|
*/
|
|
3996
4020
|
disable: Array<string>;
|
|
3997
4021
|
/**
|
|
3998
|
-
*
|
|
4022
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3999
4023
|
*/
|
|
4000
4024
|
require_approval?: Array<string>;
|
|
4001
4025
|
} | {
|
|
@@ -4006,17 +4030,17 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4006
4030
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4007
4031
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4008
4032
|
/**
|
|
4009
|
-
*
|
|
4033
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4010
4034
|
*/
|
|
4011
4035
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4012
4036
|
};
|
|
4013
4037
|
/**
|
|
4014
|
-
*
|
|
4038
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4015
4039
|
*/
|
|
4016
4040
|
require_approval?: Array<string>;
|
|
4017
4041
|
} | {
|
|
4018
4042
|
/**
|
|
4019
|
-
*
|
|
4043
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4020
4044
|
*/
|
|
4021
4045
|
require_approval: Array<string>;
|
|
4022
4046
|
};
|
|
@@ -4028,7 +4052,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4028
4052
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4029
4053
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4030
4054
|
/**
|
|
4031
|
-
*
|
|
4055
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4032
4056
|
*/
|
|
4033
4057
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4034
4058
|
};
|
|
@@ -4123,7 +4147,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4123
4147
|
enable: boolean;
|
|
4124
4148
|
};
|
|
4125
4149
|
/**
|
|
4126
|
-
*
|
|
4150
|
+
* What session MCP does with a tool call that needs approval when the MCP client can't ask the user. deny (default) rejects the call; allow runs it without approval.
|
|
4127
4151
|
*/
|
|
4128
4152
|
no_elicitation_support_fallback?: 'deny' | 'allow';
|
|
4129
4153
|
/**
|
|
@@ -4178,18 +4202,18 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4178
4202
|
toolkits?: {
|
|
4179
4203
|
enabled: Array<string>;
|
|
4180
4204
|
/**
|
|
4181
|
-
*
|
|
4205
|
+
* Tool calls matched here pause until the user approves them.
|
|
4182
4206
|
*/
|
|
4183
4207
|
require_approval?: Array<string>;
|
|
4184
4208
|
} | {
|
|
4185
4209
|
disabled: Array<string>;
|
|
4186
4210
|
/**
|
|
4187
|
-
*
|
|
4211
|
+
* Tool calls matched here pause until the user approves them.
|
|
4188
4212
|
*/
|
|
4189
4213
|
require_approval?: Array<string>;
|
|
4190
4214
|
} | {
|
|
4191
4215
|
/**
|
|
4192
|
-
*
|
|
4216
|
+
* Tool calls matched here pause until the user approves them.
|
|
4193
4217
|
*/
|
|
4194
4218
|
require_approval: Array<string>;
|
|
4195
4219
|
};
|
|
@@ -4254,13 +4278,13 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4254
4278
|
[key: string]: {
|
|
4255
4279
|
enabled: Array<string>;
|
|
4256
4280
|
/**
|
|
4257
|
-
*
|
|
4281
|
+
* Tool calls matched here pause until the user approves them.
|
|
4258
4282
|
*/
|
|
4259
4283
|
require_approval?: Array<string>;
|
|
4260
4284
|
} | {
|
|
4261
4285
|
disabled: Array<string>;
|
|
4262
4286
|
/**
|
|
4263
|
-
*
|
|
4287
|
+
* Tool calls matched here pause until the user approves them.
|
|
4264
4288
|
*/
|
|
4265
4289
|
require_approval?: Array<string>;
|
|
4266
4290
|
} | {
|
|
@@ -4274,17 +4298,17 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4274
4298
|
*/
|
|
4275
4299
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4276
4300
|
/**
|
|
4277
|
-
*
|
|
4301
|
+
* Tool calls matched here pause until the user approves them.
|
|
4278
4302
|
*/
|
|
4279
4303
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4280
4304
|
};
|
|
4281
4305
|
/**
|
|
4282
|
-
*
|
|
4306
|
+
* Tool calls matched here pause until the user approves them.
|
|
4283
4307
|
*/
|
|
4284
4308
|
require_approval?: Array<string>;
|
|
4285
4309
|
} | {
|
|
4286
4310
|
/**
|
|
4287
|
-
*
|
|
4311
|
+
* Tool calls matched here pause until the user approves them.
|
|
4288
4312
|
*/
|
|
4289
4313
|
require_approval: Array<string>;
|
|
4290
4314
|
};
|
|
@@ -4302,7 +4326,7 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4302
4326
|
*/
|
|
4303
4327
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4304
4328
|
/**
|
|
4305
|
-
*
|
|
4329
|
+
* Tool calls matched here pause until the user approves them.
|
|
4306
4330
|
*/
|
|
4307
4331
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4308
4332
|
};
|
|
@@ -4628,18 +4652,18 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4628
4652
|
toolkits?: {
|
|
4629
4653
|
enabled: Array<string>;
|
|
4630
4654
|
/**
|
|
4631
|
-
*
|
|
4655
|
+
* Tool calls matched here pause until the user approves them.
|
|
4632
4656
|
*/
|
|
4633
4657
|
require_approval?: Array<string>;
|
|
4634
4658
|
} | {
|
|
4635
4659
|
disabled: Array<string>;
|
|
4636
4660
|
/**
|
|
4637
|
-
*
|
|
4661
|
+
* Tool calls matched here pause until the user approves them.
|
|
4638
4662
|
*/
|
|
4639
4663
|
require_approval?: Array<string>;
|
|
4640
4664
|
} | {
|
|
4641
4665
|
/**
|
|
4642
|
-
*
|
|
4666
|
+
* Tool calls matched here pause until the user approves them.
|
|
4643
4667
|
*/
|
|
4644
4668
|
require_approval: Array<string>;
|
|
4645
4669
|
};
|
|
@@ -4704,13 +4728,13 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4704
4728
|
[key: string]: {
|
|
4705
4729
|
enabled: Array<string>;
|
|
4706
4730
|
/**
|
|
4707
|
-
*
|
|
4731
|
+
* Tool calls matched here pause until the user approves them.
|
|
4708
4732
|
*/
|
|
4709
4733
|
require_approval?: Array<string>;
|
|
4710
4734
|
} | {
|
|
4711
4735
|
disabled: Array<string>;
|
|
4712
4736
|
/**
|
|
4713
|
-
*
|
|
4737
|
+
* Tool calls matched here pause until the user approves them.
|
|
4714
4738
|
*/
|
|
4715
4739
|
require_approval?: Array<string>;
|
|
4716
4740
|
} | {
|
|
@@ -4724,17 +4748,17 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4724
4748
|
*/
|
|
4725
4749
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4726
4750
|
/**
|
|
4727
|
-
*
|
|
4751
|
+
* Tool calls matched here pause until the user approves them.
|
|
4728
4752
|
*/
|
|
4729
4753
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4730
4754
|
};
|
|
4731
4755
|
/**
|
|
4732
|
-
*
|
|
4756
|
+
* Tool calls matched here pause until the user approves them.
|
|
4733
4757
|
*/
|
|
4734
4758
|
require_approval?: Array<string>;
|
|
4735
4759
|
} | {
|
|
4736
4760
|
/**
|
|
4737
|
-
*
|
|
4761
|
+
* Tool calls matched here pause until the user approves them.
|
|
4738
4762
|
*/
|
|
4739
4763
|
require_approval: Array<string>;
|
|
4740
4764
|
};
|
|
@@ -4752,7 +4776,7 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4752
4776
|
*/
|
|
4753
4777
|
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4754
4778
|
/**
|
|
4755
|
-
*
|
|
4779
|
+
* Tool calls matched here pause until the user approves them.
|
|
4756
4780
|
*/
|
|
4757
4781
|
require_approval?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4758
4782
|
};
|
|
@@ -5402,13 +5426,13 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteData = {
|
|
|
5402
5426
|
*/
|
|
5403
5427
|
enable_auto_workbench_offload?: boolean;
|
|
5404
5428
|
/**
|
|
5405
|
-
*
|
|
5429
|
+
* The user's answers to an `input_required` response, keyed by the ids in its `input_requests`. Send them by repeating the same call (same tool and arguments) with this field added, along with the response's `request_state` if present. An approved call runs; a denied or declined one returns `failed`.
|
|
5406
5430
|
*/
|
|
5407
5431
|
input_responses?: {
|
|
5408
|
-
[key: string]:
|
|
5432
|
+
[key: string]: UserInputResponse;
|
|
5409
5433
|
};
|
|
5410
5434
|
/**
|
|
5411
|
-
*
|
|
5435
|
+
* The `request_state` from the `input_required` response, sent back unchanged with `input_responses`.
|
|
5412
5436
|
*/
|
|
5413
5437
|
request_state?: string;
|
|
5414
5438
|
/**
|
|
@@ -5519,15 +5543,15 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteData = {
|
|
|
5519
5543
|
};
|
|
5520
5544
|
type PostApiV31ToolRouterSessionBySessionIdExecuteResponses = {
|
|
5521
5545
|
/**
|
|
5522
|
-
*
|
|
5546
|
+
* The tool call completed, failed, or needs the user's input before it can run. The `result_type` field says which of these happened.
|
|
5523
5547
|
*/
|
|
5524
5548
|
200: ({
|
|
5525
5549
|
result_type: 'completed';
|
|
5526
|
-
} &
|
|
5550
|
+
} & ExecuteCompleted) | ({
|
|
5527
5551
|
result_type: 'failed';
|
|
5528
|
-
} &
|
|
5552
|
+
} & ExecuteFailed) | ({
|
|
5529
5553
|
result_type: 'input_required';
|
|
5530
|
-
} &
|
|
5554
|
+
} & ExecuteRequiresUserInput);
|
|
5531
5555
|
};
|
|
5532
5556
|
type PostApiV31ToolRouterSessionBySessionIdExecuteMetaData = {
|
|
5533
5557
|
body?: {
|
|
@@ -5542,13 +5566,13 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteMetaData = {
|
|
|
5542
5566
|
[key: string]: unknown;
|
|
5543
5567
|
};
|
|
5544
5568
|
/**
|
|
5545
|
-
*
|
|
5569
|
+
* The user's answers to an `input_required` response, keyed by the ids in its `input_requests`. Send them by repeating the same call (same tool and arguments) with this field added, along with the response's `request_state` if present. An approved call runs; a denied or declined one returns `failed`.
|
|
5546
5570
|
*/
|
|
5547
5571
|
input_responses?: {
|
|
5548
|
-
[key: string]:
|
|
5572
|
+
[key: string]: UserInputResponse;
|
|
5549
5573
|
};
|
|
5550
5574
|
/**
|
|
5551
|
-
*
|
|
5575
|
+
* The `request_state` from the `input_required` response, sent back unchanged with `input_responses`.
|
|
5552
5576
|
*/
|
|
5553
5577
|
request_state?: string;
|
|
5554
5578
|
/**
|
|
@@ -5659,15 +5683,15 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteMetaData = {
|
|
|
5659
5683
|
};
|
|
5660
5684
|
type PostApiV31ToolRouterSessionBySessionIdExecuteMetaResponses = {
|
|
5661
5685
|
/**
|
|
5662
|
-
*
|
|
5686
|
+
* The tool call completed, failed, or needs the user's input before it can run. The `result_type` field says which of these happened.
|
|
5663
5687
|
*/
|
|
5664
5688
|
200: ({
|
|
5665
5689
|
result_type: 'completed';
|
|
5666
|
-
} &
|
|
5690
|
+
} & ExecuteCompleted) | ({
|
|
5667
5691
|
result_type: 'failed';
|
|
5668
|
-
} &
|
|
5692
|
+
} & ExecuteFailed) | ({
|
|
5669
5693
|
result_type: 'input_required';
|
|
5670
|
-
} &
|
|
5694
|
+
} & ExecuteRequiresUserInput);
|
|
5671
5695
|
};
|
|
5672
5696
|
type PostApiV31OrgUsageSummaryData = {
|
|
5673
5697
|
body?: {
|
|
@@ -21091,6 +21115,17 @@ type PostApiV31OrgOwnerProjectNewData = {
|
|
|
21091
21115
|
* Whether to create an API key for the project. If true, the API key will be created and returned in the response.
|
|
21092
21116
|
*/
|
|
21093
21117
|
should_create_api_key?: boolean;
|
|
21118
|
+
/**
|
|
21119
|
+
* IPv4 or IPv6 addresses allowed to use the project API key. Requires should_create_api_key to be true. Omit to allow requests from any IP address.
|
|
21120
|
+
*/
|
|
21121
|
+
api_key_allowed_ips?: Array<string>;
|
|
21122
|
+
/**
|
|
21123
|
+
* Permission levels for the project API key. Requires should_create_api_key to be true. Omit to create a full-access API key.
|
|
21124
|
+
*/
|
|
21125
|
+
api_key_permissions?: Array<{
|
|
21126
|
+
preset: 'tools' | 'tool_execution' | 'proxy_execute' | 'session_management' | 'session_tool_execution' | 'legacy_mcp' | 'connected_accounts' | 'auth_configs' | 'toolkits' | 'triggers' | 'webhooks' | 'observability' | 'sessions';
|
|
21127
|
+
access: 'none' | 'read' | 'write' | 'read_write';
|
|
21128
|
+
}>;
|
|
21094
21129
|
/**
|
|
21095
21130
|
* Configuration for the project. Use zdr_enabled for Zero Data Retention; log_visibility_setting remains supported for existing clients. Do not send both fields.
|
|
21096
21131
|
*/
|
|
@@ -24721,9 +24756,9 @@ type PostApiV31ToolRouterSessionBySessionIdProxyExecuteResponses = {
|
|
|
24721
24756
|
*/
|
|
24722
24757
|
200: ({
|
|
24723
24758
|
result_type: 'completed';
|
|
24724
|
-
} &
|
|
24759
|
+
} & ProxyExecuteCompleted) | ({
|
|
24725
24760
|
result_type: 'input_required';
|
|
24726
|
-
} &
|
|
24761
|
+
} & ExecuteRequiresUserInput);
|
|
24727
24762
|
};
|
|
24728
24763
|
type GetApiV31ToolRouterSessionBySessionIdToolkitsData = {
|
|
24729
24764
|
body?: never;
|
|
@@ -25248,6 +25283,7 @@ declare namespace SessionExecuteParams {
|
|
|
25248
25283
|
type Tool = CustomToolkit['tools'][number];
|
|
25249
25284
|
}
|
|
25250
25285
|
}
|
|
25286
|
+
type InputResponses = NonNullable<SessionExecuteParamsGen['input_responses']>[string];
|
|
25251
25287
|
}
|
|
25252
25288
|
type SessionExecuteMetaParamsGen = NonNullable<PostApiV31ToolRouterSessionBySessionIdExecuteMetaData['body']>;
|
|
25253
25289
|
interface SessionExecuteMetaParams extends SessionExecuteMetaParamsGen {}
|
|
@@ -25260,6 +25296,7 @@ declare namespace SessionExecuteMetaParams {
|
|
|
25260
25296
|
type Tool = CustomToolkit['tools'][number];
|
|
25261
25297
|
}
|
|
25262
25298
|
}
|
|
25299
|
+
type InputResponses = NonNullable<SessionExecuteMetaParamsGen['input_responses']>[string];
|
|
25263
25300
|
}
|
|
25264
25301
|
type SessionLinkParamsGen = NonNullable<PostApiV31ToolRouterSessionBySessionIdLinkData['body']>;
|
|
25265
25302
|
interface SessionLinkParams extends SessionLinkParamsGen {}
|
|
@@ -26614,6 +26651,7 @@ declare namespace WebhookEndpoints {
|
|
|
26614
26651
|
type ProjectCreateParamsGen = NonNullable<PostApiV31OrgOwnerProjectNewData['body']>;
|
|
26615
26652
|
interface ProjectCreateParams extends ProjectCreateParamsGen {}
|
|
26616
26653
|
declare namespace ProjectCreateParams {
|
|
26654
|
+
type ApiKeyPermission = NonNullable<ProjectCreateParamsGen['api_key_permissions']>[number];
|
|
26617
26655
|
type Config = NonNullable<ProjectCreateParamsGen['config']>;
|
|
26618
26656
|
}
|
|
26619
26657
|
type ProjectListParamsGen$1 = NonNullable<GetApiV31OrgOwnerProjectListData['query']>;
|