@composio/client 0.1.0-alpha.69 → 0.1.0-alpha.70
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/tool-router/session/session.d.mts +119 -28
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +119 -28
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/src/resources/tool-router/session/session.ts +135 -27
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -348,10 +348,10 @@ export namespace SessionCreateResponse {
|
|
|
348
348
|
auth_configs?: { [key: string]: string };
|
|
349
349
|
|
|
350
350
|
/**
|
|
351
|
-
*
|
|
352
|
-
*
|
|
351
|
+
* Per-toolkit connected account overrides (array of nano-IDs). Multi-account
|
|
352
|
+
* sessions can pin more than one account per toolkit; otherwise length is 1.
|
|
353
353
|
*/
|
|
354
|
-
connected_accounts?: { [key: string]: string };
|
|
354
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* Manage connections configuration
|
|
@@ -713,10 +713,10 @@ export namespace SessionRetrieveResponse {
|
|
|
713
713
|
auth_configs?: { [key: string]: string };
|
|
714
714
|
|
|
715
715
|
/**
|
|
716
|
-
*
|
|
717
|
-
*
|
|
716
|
+
* Per-toolkit connected account overrides (array of nano-IDs). Multi-account
|
|
717
|
+
* sessions can pin more than one account per toolkit; otherwise length is 1.
|
|
718
718
|
*/
|
|
719
|
-
connected_accounts?: { [key: string]: string };
|
|
719
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* Manage connections configuration
|
|
@@ -1077,10 +1077,10 @@ export namespace SessionAttachResponse {
|
|
|
1077
1077
|
auth_configs?: { [key: string]: string };
|
|
1078
1078
|
|
|
1079
1079
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1080
|
+
* Per-toolkit connected account overrides (array of nano-IDs). Multi-account
|
|
1081
|
+
* sessions can pin more than one account per toolkit; otherwise length is 1.
|
|
1082
1082
|
*/
|
|
1083
|
-
connected_accounts?: { [key: string]: string };
|
|
1083
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
1084
1084
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Manage connections configuration
|
|
@@ -1442,10 +1442,10 @@ export namespace SessionConfigHistoryResponse {
|
|
|
1442
1442
|
auth_configs?: { [key: string]: string };
|
|
1443
1443
|
|
|
1444
1444
|
/**
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1445
|
+
* Per-toolkit connected account overrides (array of nano-IDs). Multi-account
|
|
1446
|
+
* sessions can pin more than one account per toolkit; otherwise length is 1.
|
|
1447
1447
|
*/
|
|
1448
|
-
connected_accounts?: { [key: string]: string };
|
|
1448
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
1449
1449
|
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Manage connections configuration
|
|
@@ -1757,10 +1757,10 @@ export namespace SessionPatchResponse {
|
|
|
1757
1757
|
auth_configs?: { [key: string]: string };
|
|
1758
1758
|
|
|
1759
1759
|
/**
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
1760
|
+
* Per-toolkit connected account overrides (array of nano-IDs). Multi-account
|
|
1761
|
+
* sessions can pin more than one account per toolkit; otherwise length is 1.
|
|
1762
1762
|
*/
|
|
1763
|
-
connected_accounts?: { [key: string]: string };
|
|
1763
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
1764
1764
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Manage connections configuration
|
|
@@ -2714,13 +2714,13 @@ export interface SessionCreateParams {
|
|
|
2714
2714
|
auth_configs?: { [key: string]: string };
|
|
2715
2715
|
|
|
2716
2716
|
/**
|
|
2717
|
-
* The connected accounts to use for the session
|
|
2718
|
-
*
|
|
2719
|
-
* executed. Each
|
|
2720
|
-
* to the same `user_id` as the session
|
|
2721
|
-
*
|
|
2717
|
+
* The connected accounts to use for the session, as an array of nano-IDs per
|
|
2718
|
+
* toolkit. This overrides the default behaviour and pins specific connected
|
|
2719
|
+
* accounts when toolkits are executed. Each account must exist (not deleted or
|
|
2720
|
+
* disabled) and belong to the same `user_id` as the session. Multi-account
|
|
2721
|
+
* sessions can pin multiple; non-multi-account sessions are capped at length 1.
|
|
2722
2722
|
*/
|
|
2723
|
-
connected_accounts?: { [key: string]: string };
|
|
2723
|
+
connected_accounts?: { [key: string]: Array<string> };
|
|
2724
2724
|
|
|
2725
2725
|
execute?: SessionCreateParams.Execute;
|
|
2726
2726
|
|
|
@@ -2810,6 +2810,15 @@ export namespace SessionCreateParams {
|
|
|
2810
2810
|
*/
|
|
2811
2811
|
custom_tools?: Array<Experimental.CustomTool>;
|
|
2812
2812
|
|
|
2813
|
+
/**
|
|
2814
|
+
* Experimental base URL override for connection link redirects created from this
|
|
2815
|
+
* tool-router session. When set, link creation returns
|
|
2816
|
+
* `${link_url_overwrite}/link/{link_token}` instead of the default Composio
|
|
2817
|
+
* Connect base URL. Use only when your integration needs links to open through a
|
|
2818
|
+
* custom Connect host.
|
|
2819
|
+
*/
|
|
2820
|
+
link_url_overwrite?: string;
|
|
2821
|
+
|
|
2813
2822
|
/**
|
|
2814
2823
|
* Per-tool elicitation permission config. Default behavior + per-tool
|
|
2815
2824
|
* always_allow/always_deny overrides. Mutation via PATCH.
|
|
@@ -2850,6 +2859,12 @@ export namespace SessionCreateParams {
|
|
|
2850
2859
|
* Tools in this custom toolkit
|
|
2851
2860
|
*/
|
|
2852
2861
|
tools: Array<CustomToolkit.Tool>;
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
2865
|
+
* in create/attach responses for inline custom definitions.
|
|
2866
|
+
*/
|
|
2867
|
+
preload?: boolean;
|
|
2853
2868
|
}
|
|
2854
2869
|
|
|
2855
2870
|
export namespace CustomToolkit {
|
|
@@ -2879,6 +2894,12 @@ export namespace SessionCreateParams {
|
|
|
2879
2894
|
* Optional output schema for the tool response.
|
|
2880
2895
|
*/
|
|
2881
2896
|
output_schema?: { [key: string]: unknown };
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
2900
|
+
* in create/attach responses for inline custom definitions.
|
|
2901
|
+
*/
|
|
2902
|
+
preload?: boolean;
|
|
2882
2903
|
}
|
|
2883
2904
|
}
|
|
2884
2905
|
|
|
@@ -2914,6 +2935,12 @@ export namespace SessionCreateParams {
|
|
|
2914
2935
|
* JSON Schema describing tool output (optional)
|
|
2915
2936
|
*/
|
|
2916
2937
|
output_schema?: { [key: string]: unknown };
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
2941
|
+
* in create/attach responses for inline custom definitions.
|
|
2942
|
+
*/
|
|
2943
|
+
preload?: boolean;
|
|
2917
2944
|
}
|
|
2918
2945
|
|
|
2919
2946
|
/**
|
|
@@ -3152,6 +3179,12 @@ export namespace SessionAttachParams {
|
|
|
3152
3179
|
* Tools in this custom toolkit
|
|
3153
3180
|
*/
|
|
3154
3181
|
tools: Array<CustomToolkit.Tool>;
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3185
|
+
* in create/attach responses for inline custom definitions.
|
|
3186
|
+
*/
|
|
3187
|
+
preload?: boolean;
|
|
3155
3188
|
}
|
|
3156
3189
|
|
|
3157
3190
|
export namespace CustomToolkit {
|
|
@@ -3181,6 +3214,12 @@ export namespace SessionAttachParams {
|
|
|
3181
3214
|
* Optional output schema for the tool response.
|
|
3182
3215
|
*/
|
|
3183
3216
|
output_schema?: { [key: string]: unknown };
|
|
3217
|
+
|
|
3218
|
+
/**
|
|
3219
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3220
|
+
* in create/attach responses for inline custom definitions.
|
|
3221
|
+
*/
|
|
3222
|
+
preload?: boolean;
|
|
3184
3223
|
}
|
|
3185
3224
|
}
|
|
3186
3225
|
|
|
@@ -3216,6 +3255,12 @@ export namespace SessionAttachParams {
|
|
|
3216
3255
|
* JSON Schema describing tool output (optional)
|
|
3217
3256
|
*/
|
|
3218
3257
|
output_schema?: { [key: string]: unknown };
|
|
3258
|
+
|
|
3259
|
+
/**
|
|
3260
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3261
|
+
* in create/attach responses for inline custom definitions.
|
|
3262
|
+
*/
|
|
3263
|
+
preload?: boolean;
|
|
3219
3264
|
}
|
|
3220
3265
|
}
|
|
3221
3266
|
}
|
|
@@ -3314,6 +3359,12 @@ export namespace SessionExecuteParams {
|
|
|
3314
3359
|
* Tools in this custom toolkit
|
|
3315
3360
|
*/
|
|
3316
3361
|
tools: Array<CustomToolkit.Tool>;
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3365
|
+
* in create/attach responses for inline custom definitions.
|
|
3366
|
+
*/
|
|
3367
|
+
preload?: boolean;
|
|
3317
3368
|
}
|
|
3318
3369
|
|
|
3319
3370
|
export namespace CustomToolkit {
|
|
@@ -3343,6 +3394,12 @@ export namespace SessionExecuteParams {
|
|
|
3343
3394
|
* Optional output schema for the tool response.
|
|
3344
3395
|
*/
|
|
3345
3396
|
output_schema?: { [key: string]: unknown };
|
|
3397
|
+
|
|
3398
|
+
/**
|
|
3399
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3400
|
+
* in create/attach responses for inline custom definitions.
|
|
3401
|
+
*/
|
|
3402
|
+
preload?: boolean;
|
|
3346
3403
|
}
|
|
3347
3404
|
}
|
|
3348
3405
|
|
|
@@ -3378,6 +3435,12 @@ export namespace SessionExecuteParams {
|
|
|
3378
3435
|
* JSON Schema describing tool output (optional)
|
|
3379
3436
|
*/
|
|
3380
3437
|
output_schema?: { [key: string]: unknown };
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3441
|
+
* in create/attach responses for inline custom definitions.
|
|
3442
|
+
*/
|
|
3443
|
+
preload?: boolean;
|
|
3381
3444
|
}
|
|
3382
3445
|
}
|
|
3383
3446
|
}
|
|
@@ -3450,6 +3513,12 @@ export namespace SessionExecuteMetaParams {
|
|
|
3450
3513
|
* Tools in this custom toolkit
|
|
3451
3514
|
*/
|
|
3452
3515
|
tools: Array<CustomToolkit.Tool>;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3519
|
+
* in create/attach responses for inline custom definitions.
|
|
3520
|
+
*/
|
|
3521
|
+
preload?: boolean;
|
|
3453
3522
|
}
|
|
3454
3523
|
|
|
3455
3524
|
export namespace CustomToolkit {
|
|
@@ -3479,6 +3548,12 @@ export namespace SessionExecuteMetaParams {
|
|
|
3479
3548
|
* Optional output schema for the tool response.
|
|
3480
3549
|
*/
|
|
3481
3550
|
output_schema?: { [key: string]: unknown };
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3554
|
+
* in create/attach responses for inline custom definitions.
|
|
3555
|
+
*/
|
|
3556
|
+
preload?: boolean;
|
|
3482
3557
|
}
|
|
3483
3558
|
}
|
|
3484
3559
|
|
|
@@ -3514,6 +3589,12 @@ export namespace SessionExecuteMetaParams {
|
|
|
3514
3589
|
* JSON Schema describing tool output (optional)
|
|
3515
3590
|
*/
|
|
3516
3591
|
output_schema?: { [key: string]: unknown };
|
|
3592
|
+
|
|
3593
|
+
/**
|
|
3594
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
3595
|
+
* in create/attach responses for inline custom definitions.
|
|
3596
|
+
*/
|
|
3597
|
+
preload?: boolean;
|
|
3517
3598
|
}
|
|
3518
3599
|
}
|
|
3519
3600
|
}
|
|
@@ -3544,13 +3625,13 @@ export interface SessionPatchParams {
|
|
|
3544
3625
|
auth_configs?: { [key: string]: string };
|
|
3545
3626
|
|
|
3546
3627
|
/**
|
|
3547
|
-
* The connected accounts to use for the session
|
|
3548
|
-
*
|
|
3549
|
-
* executed. Each
|
|
3550
|
-
* to the same `user_id` as the session
|
|
3551
|
-
*
|
|
3628
|
+
* The connected accounts to use for the session, as an array of nano-IDs per
|
|
3629
|
+
* toolkit. This overrides the default behaviour and pins specific connected
|
|
3630
|
+
* accounts when toolkits are executed. Each account must exist (not deleted or
|
|
3631
|
+
* disabled) and belong to the same `user_id` as the session. Multi-account
|
|
3632
|
+
* sessions can pin multiple; non-multi-account sessions are capped at length 1.
|
|
3552
3633
|
*/
|
|
3553
|
-
connected_accounts?: { [key: string]: string };
|
|
3634
|
+
connected_accounts?: { [key: string]: Array<string> } | null;
|
|
3554
3635
|
|
|
3555
3636
|
execute?: SessionPatchParams.Execute;
|
|
3556
3637
|
|
|
@@ -3603,6 +3684,15 @@ export namespace SessionPatchParams {
|
|
|
3603
3684
|
}
|
|
3604
3685
|
|
|
3605
3686
|
export interface Experimental {
|
|
3687
|
+
/**
|
|
3688
|
+
* Experimental base URL override for connection link redirects created from this
|
|
3689
|
+
* tool-router session. When set, link creation returns
|
|
3690
|
+
* `${link_url_overwrite}/link/{link_token}` instead of the default Composio
|
|
3691
|
+
* Connect base URL. Use only when your integration needs links to open through a
|
|
3692
|
+
* custom Connect host.
|
|
3693
|
+
*/
|
|
3694
|
+
link_url_overwrite?: string;
|
|
3695
|
+
|
|
3606
3696
|
/**
|
|
3607
3697
|
* Per-tool elicitation permission config. Replaces the stored block when provided.
|
|
3608
3698
|
*/
|
|
@@ -4717,6 +4807,12 @@ export namespace SessionSearchParams {
|
|
|
4717
4807
|
* Tools in this custom toolkit
|
|
4718
4808
|
*/
|
|
4719
4809
|
tools: Array<CustomToolkit.Tool>;
|
|
4810
|
+
|
|
4811
|
+
/**
|
|
4812
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
4813
|
+
* in create/attach responses for inline custom definitions.
|
|
4814
|
+
*/
|
|
4815
|
+
preload?: boolean;
|
|
4720
4816
|
}
|
|
4721
4817
|
|
|
4722
4818
|
export namespace CustomToolkit {
|
|
@@ -4746,6 +4842,12 @@ export namespace SessionSearchParams {
|
|
|
4746
4842
|
* Optional output schema for the tool response.
|
|
4747
4843
|
*/
|
|
4748
4844
|
output_schema?: { [key: string]: unknown };
|
|
4845
|
+
|
|
4846
|
+
/**
|
|
4847
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
4848
|
+
* in create/attach responses for inline custom definitions.
|
|
4849
|
+
*/
|
|
4850
|
+
preload?: boolean;
|
|
4749
4851
|
}
|
|
4750
4852
|
}
|
|
4751
4853
|
|
|
@@ -4781,6 +4883,12 @@ export namespace SessionSearchParams {
|
|
|
4781
4883
|
* JSON Schema describing tool output (optional)
|
|
4782
4884
|
*/
|
|
4783
4885
|
output_schema?: { [key: string]: unknown };
|
|
4886
|
+
|
|
4887
|
+
/**
|
|
4888
|
+
* SDK hint for direct custom-tool exposure. Not stored in session config; echoed
|
|
4889
|
+
* in create/attach responses for inline custom definitions.
|
|
4890
|
+
*/
|
|
4891
|
+
preload?: boolean;
|
|
4784
4892
|
}
|
|
4785
4893
|
}
|
|
4786
4894
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.70'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.70";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.70";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.70'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.70'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|