@mastra/client-js 1.22.0-alpha.3 → 1.22.0-alpha.4

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.
@@ -807,6 +807,68 @@ export type PostAgentsAgentIdClone_Response = {
807
807
  })[];
808
808
  } | undefined;
809
809
  }[]) | undefined;
810
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
811
+ toolProviders?: ({
812
+ [key: string]: {
813
+ tools: {
814
+ [key: string]: {
815
+ toolkit?: string | undefined;
816
+ description?: string | undefined;
817
+ };
818
+ };
819
+ connections: {
820
+ [key: string]: {
821
+ kind: 'author' | 'invoker' | 'platform';
822
+ toolkit: string;
823
+ connectionId: string;
824
+ label?: string | undefined;
825
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
826
+ }[];
827
+ };
828
+ };
829
+ } | {
830
+ value: {
831
+ [key: string]: {
832
+ tools: {
833
+ [key: string]: {
834
+ toolkit?: string | undefined;
835
+ description?: string | undefined;
836
+ };
837
+ };
838
+ connections: {
839
+ [key: string]: {
840
+ kind: 'author' | 'invoker' | 'platform';
841
+ toolkit: string;
842
+ connectionId: string;
843
+ label?: string | undefined;
844
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
845
+ }[];
846
+ };
847
+ };
848
+ };
849
+ rules?: {
850
+ operator: 'AND' | 'OR';
851
+ conditions: ({
852
+ field: string;
853
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
854
+ value?: unknown | undefined;
855
+ } | {
856
+ operator: 'AND' | 'OR';
857
+ conditions: ({
858
+ field: string;
859
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
860
+ value?: unknown | undefined;
861
+ } | {
862
+ operator: 'AND' | 'OR';
863
+ conditions: {
864
+ field: string;
865
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
866
+ value?: unknown | undefined;
867
+ }[];
868
+ })[];
869
+ })[];
870
+ } | undefined;
871
+ }[]) | undefined;
810
872
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
811
873
  mcpClients?: ({
812
874
  [key: string]: {
@@ -14185,6 +14247,68 @@ export type GetStoredAgents_Response = {
14185
14247
  })[];
14186
14248
  } | undefined;
14187
14249
  }[]) | undefined;
14250
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
14251
+ toolProviders?: ({
14252
+ [key: string]: {
14253
+ tools: {
14254
+ [key: string]: {
14255
+ toolkit?: string | undefined;
14256
+ description?: string | undefined;
14257
+ };
14258
+ };
14259
+ connections: {
14260
+ [key: string]: {
14261
+ kind: 'author' | 'invoker' | 'platform';
14262
+ toolkit: string;
14263
+ connectionId: string;
14264
+ label?: string | undefined;
14265
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
14266
+ }[];
14267
+ };
14268
+ };
14269
+ } | {
14270
+ value: {
14271
+ [key: string]: {
14272
+ tools: {
14273
+ [key: string]: {
14274
+ toolkit?: string | undefined;
14275
+ description?: string | undefined;
14276
+ };
14277
+ };
14278
+ connections: {
14279
+ [key: string]: {
14280
+ kind: 'author' | 'invoker' | 'platform';
14281
+ toolkit: string;
14282
+ connectionId: string;
14283
+ label?: string | undefined;
14284
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
14285
+ }[];
14286
+ };
14287
+ };
14288
+ };
14289
+ rules?: {
14290
+ operator: 'AND' | 'OR';
14291
+ conditions: ({
14292
+ field: string;
14293
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14294
+ value?: unknown | undefined;
14295
+ } | {
14296
+ operator: 'AND' | 'OR';
14297
+ conditions: ({
14298
+ field: string;
14299
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14300
+ value?: unknown | undefined;
14301
+ } | {
14302
+ operator: 'AND' | 'OR';
14303
+ conditions: {
14304
+ field: string;
14305
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14306
+ value?: unknown | undefined;
14307
+ }[];
14308
+ })[];
14309
+ })[];
14310
+ } | undefined;
14311
+ }[]) | undefined;
14188
14312
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
14189
14313
  mcpClients?: ({
14190
14314
  [key: string]: {
@@ -16318,6 +16442,68 @@ export type GetStoredAgentsStoredAgentId_Response = {
16318
16442
  })[];
16319
16443
  } | undefined;
16320
16444
  }[]) | undefined;
16445
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
16446
+ toolProviders?: ({
16447
+ [key: string]: {
16448
+ tools: {
16449
+ [key: string]: {
16450
+ toolkit?: string | undefined;
16451
+ description?: string | undefined;
16452
+ };
16453
+ };
16454
+ connections: {
16455
+ [key: string]: {
16456
+ kind: 'author' | 'invoker' | 'platform';
16457
+ toolkit: string;
16458
+ connectionId: string;
16459
+ label?: string | undefined;
16460
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
16461
+ }[];
16462
+ };
16463
+ };
16464
+ } | {
16465
+ value: {
16466
+ [key: string]: {
16467
+ tools: {
16468
+ [key: string]: {
16469
+ toolkit?: string | undefined;
16470
+ description?: string | undefined;
16471
+ };
16472
+ };
16473
+ connections: {
16474
+ [key: string]: {
16475
+ kind: 'author' | 'invoker' | 'platform';
16476
+ toolkit: string;
16477
+ connectionId: string;
16478
+ label?: string | undefined;
16479
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
16480
+ }[];
16481
+ };
16482
+ };
16483
+ };
16484
+ rules?: {
16485
+ operator: 'AND' | 'OR';
16486
+ conditions: ({
16487
+ field: string;
16488
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16489
+ value?: unknown | undefined;
16490
+ } | {
16491
+ operator: 'AND' | 'OR';
16492
+ conditions: ({
16493
+ field: string;
16494
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16495
+ value?: unknown | undefined;
16496
+ } | {
16497
+ operator: 'AND' | 'OR';
16498
+ conditions: {
16499
+ field: string;
16500
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16501
+ value?: unknown | undefined;
16502
+ }[];
16503
+ })[];
16504
+ })[];
16505
+ } | undefined;
16506
+ }[]) | undefined;
16321
16507
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
16322
16508
  mcpClients?: ({
16323
16509
  [key: string]: {
@@ -18375,6 +18561,68 @@ export type PostStoredAgents_Body = {
18375
18561
  })[];
18376
18562
  } | undefined;
18377
18563
  }[]) | undefined;
18564
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
18565
+ toolProviders?: ({
18566
+ [key: string]: {
18567
+ tools: {
18568
+ [key: string]: {
18569
+ toolkit?: string | undefined;
18570
+ description?: string | undefined;
18571
+ };
18572
+ };
18573
+ connections: {
18574
+ [key: string]: {
18575
+ kind: 'author' | 'invoker' | 'platform';
18576
+ toolkit: string;
18577
+ connectionId: string;
18578
+ label?: string | undefined;
18579
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
18580
+ }[];
18581
+ };
18582
+ };
18583
+ } | {
18584
+ value: {
18585
+ [key: string]: {
18586
+ tools: {
18587
+ [key: string]: {
18588
+ toolkit?: string | undefined;
18589
+ description?: string | undefined;
18590
+ };
18591
+ };
18592
+ connections: {
18593
+ [key: string]: {
18594
+ kind: 'author' | 'invoker' | 'platform';
18595
+ toolkit: string;
18596
+ connectionId: string;
18597
+ label?: string | undefined;
18598
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
18599
+ }[];
18600
+ };
18601
+ };
18602
+ };
18603
+ rules?: {
18604
+ operator: 'AND' | 'OR';
18605
+ conditions: ({
18606
+ field: string;
18607
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18608
+ value?: unknown | undefined;
18609
+ } | {
18610
+ operator: 'AND' | 'OR';
18611
+ conditions: ({
18612
+ field: string;
18613
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18614
+ value?: unknown | undefined;
18615
+ } | {
18616
+ operator: 'AND' | 'OR';
18617
+ conditions: {
18618
+ field: string;
18619
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18620
+ value?: unknown | undefined;
18621
+ }[];
18622
+ })[];
18623
+ })[];
18624
+ } | undefined;
18625
+ }[]) | undefined;
18378
18626
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
18379
18627
  mcpClients?: ({
18380
18628
  [key: string]: {
@@ -20418,6 +20666,68 @@ export type PostStoredAgents_Response = {
20418
20666
  })[];
20419
20667
  } | undefined;
20420
20668
  }[]) | undefined;
20669
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
20670
+ toolProviders?: ({
20671
+ [key: string]: {
20672
+ tools: {
20673
+ [key: string]: {
20674
+ toolkit?: string | undefined;
20675
+ description?: string | undefined;
20676
+ };
20677
+ };
20678
+ connections: {
20679
+ [key: string]: {
20680
+ kind: 'author' | 'invoker' | 'platform';
20681
+ toolkit: string;
20682
+ connectionId: string;
20683
+ label?: string | undefined;
20684
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
20685
+ }[];
20686
+ };
20687
+ };
20688
+ } | {
20689
+ value: {
20690
+ [key: string]: {
20691
+ tools: {
20692
+ [key: string]: {
20693
+ toolkit?: string | undefined;
20694
+ description?: string | undefined;
20695
+ };
20696
+ };
20697
+ connections: {
20698
+ [key: string]: {
20699
+ kind: 'author' | 'invoker' | 'platform';
20700
+ toolkit: string;
20701
+ connectionId: string;
20702
+ label?: string | undefined;
20703
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
20704
+ }[];
20705
+ };
20706
+ };
20707
+ };
20708
+ rules?: {
20709
+ operator: 'AND' | 'OR';
20710
+ conditions: ({
20711
+ field: string;
20712
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20713
+ value?: unknown | undefined;
20714
+ } | {
20715
+ operator: 'AND' | 'OR';
20716
+ conditions: ({
20717
+ field: string;
20718
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20719
+ value?: unknown | undefined;
20720
+ } | {
20721
+ operator: 'AND' | 'OR';
20722
+ conditions: {
20723
+ field: string;
20724
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20725
+ value?: unknown | undefined;
20726
+ }[];
20727
+ })[];
20728
+ })[];
20729
+ } | undefined;
20730
+ }[]) | undefined;
20421
20731
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
20422
20732
  mcpClients?: ({
20423
20733
  [key: string]: {
@@ -22465,6 +22775,67 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22465
22775
  })[];
22466
22776
  } | undefined;
22467
22777
  }[]) | undefined) | undefined;
22778
+ toolProviders?: (({
22779
+ [key: string]: {
22780
+ tools: {
22781
+ [key: string]: {
22782
+ toolkit?: string | undefined;
22783
+ description?: string | undefined;
22784
+ };
22785
+ };
22786
+ connections: {
22787
+ [key: string]: {
22788
+ kind: 'author' | 'invoker' | 'platform';
22789
+ toolkit: string;
22790
+ connectionId: string;
22791
+ label?: string | undefined;
22792
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
22793
+ }[];
22794
+ };
22795
+ };
22796
+ } | {
22797
+ value: {
22798
+ [key: string]: {
22799
+ tools: {
22800
+ [key: string]: {
22801
+ toolkit?: string | undefined;
22802
+ description?: string | undefined;
22803
+ };
22804
+ };
22805
+ connections: {
22806
+ [key: string]: {
22807
+ kind: 'author' | 'invoker' | 'platform';
22808
+ toolkit: string;
22809
+ connectionId: string;
22810
+ label?: string | undefined;
22811
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
22812
+ }[];
22813
+ };
22814
+ };
22815
+ };
22816
+ rules?: {
22817
+ operator: 'AND' | 'OR';
22818
+ conditions: ({
22819
+ field: string;
22820
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22821
+ value?: unknown | undefined;
22822
+ } | {
22823
+ operator: 'AND' | 'OR';
22824
+ conditions: ({
22825
+ field: string;
22826
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22827
+ value?: unknown | undefined;
22828
+ } | {
22829
+ operator: 'AND' | 'OR';
22830
+ conditions: {
22831
+ field: string;
22832
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22833
+ value?: unknown | undefined;
22834
+ }[];
22835
+ })[];
22836
+ })[];
22837
+ } | undefined;
22838
+ }[]) | undefined) | undefined;
22468
22839
  mcpClients?: (({
22469
22840
  [key: string]: {
22470
22841
  tools?: {
@@ -24512,6 +24883,68 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24512
24883
  })[];
24513
24884
  } | undefined;
24514
24885
  }[]) | undefined;
24886
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
24887
+ toolProviders?: ({
24888
+ [key: string]: {
24889
+ tools: {
24890
+ [key: string]: {
24891
+ toolkit?: string | undefined;
24892
+ description?: string | undefined;
24893
+ };
24894
+ };
24895
+ connections: {
24896
+ [key: string]: {
24897
+ kind: 'author' | 'invoker' | 'platform';
24898
+ toolkit: string;
24899
+ connectionId: string;
24900
+ label?: string | undefined;
24901
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
24902
+ }[];
24903
+ };
24904
+ };
24905
+ } | {
24906
+ value: {
24907
+ [key: string]: {
24908
+ tools: {
24909
+ [key: string]: {
24910
+ toolkit?: string | undefined;
24911
+ description?: string | undefined;
24912
+ };
24913
+ };
24914
+ connections: {
24915
+ [key: string]: {
24916
+ kind: 'author' | 'invoker' | 'platform';
24917
+ toolkit: string;
24918
+ connectionId: string;
24919
+ label?: string | undefined;
24920
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
24921
+ }[];
24922
+ };
24923
+ };
24924
+ };
24925
+ rules?: {
24926
+ operator: 'AND' | 'OR';
24927
+ conditions: ({
24928
+ field: string;
24929
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24930
+ value?: unknown | undefined;
24931
+ } | {
24932
+ operator: 'AND' | 'OR';
24933
+ conditions: ({
24934
+ field: string;
24935
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24936
+ value?: unknown | undefined;
24937
+ } | {
24938
+ operator: 'AND' | 'OR';
24939
+ conditions: {
24940
+ field: string;
24941
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24942
+ value?: unknown | undefined;
24943
+ }[];
24944
+ })[];
24945
+ })[];
24946
+ } | undefined;
24947
+ }[]) | undefined;
24515
24948
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
24516
24949
  mcpClients?: ({
24517
24950
  [key: string]: {
@@ -40361,6 +40794,13 @@ export type GetToolProviders_Response = {
40361
40794
  id: string;
40362
40795
  name: string;
40363
40796
  description?: string | undefined;
40797
+ displayName?: string | undefined;
40798
+ capabilities?: {
40799
+ multipleConnectionsPerToolkit: boolean;
40800
+ batchConnectionStatus: boolean;
40801
+ reauthorizeReusesConnectionId: boolean;
40802
+ supportsRevoke?: boolean | undefined;
40803
+ } | undefined;
40364
40804
  }[];
40365
40805
  };
40366
40806
  export type GetToolProviders_Request = Simplify<(never extends never ? {} : {
@@ -40428,7 +40868,7 @@ export type GetToolProvidersProviderIdTools_QueryParams = {
40428
40868
  toolkit?: string | undefined;
40429
40869
  /** Search tools by name or description */
40430
40870
  search?: string | undefined;
40431
- /** Page number for pagination */
40871
+ /** Page number for pagination (1-indexed) */
40432
40872
  page?: number | undefined;
40433
40873
  /** Number of items per page */
40434
40874
  perPage?: number | undefined;
@@ -40494,6 +40934,306 @@ export interface GetToolProvidersProviderIdToolsToolSlugSchema_RouteContract {
40494
40934
  response: GetToolProvidersProviderIdToolsToolSlugSchema_Response;
40495
40935
  responseType: 'json';
40496
40936
  }
40937
+ export type PostToolProvidersProviderIdAuthorize_PathParams = {
40938
+ /** Unique identifier for the tool provider */
40939
+ providerId: string;
40940
+ };
40941
+ export type PostToolProvidersProviderIdAuthorize_Body = {
40942
+ /** Toolkit slug being authorized */
40943
+ toolkit: string;
40944
+ /** Existing or newly-minted connection bucket id */
40945
+ connectionId: string;
40946
+ /** Optional tool slug for tool-scoped authorization */
40947
+ toolName?: string | undefined;
40948
+ /** Provider-specific user-supplied connection fields (e.g. subdomain) */
40949
+ config?: {
40950
+ [key: string]: unknown;
40951
+ } | undefined;
40952
+ /** Optional human label to persist on the resulting tool_provider_connections row. Must match the stored connection label rules (≤ 32 chars, [A-Za-z0-9 _-]+). */
40953
+ label?: (string | null) | undefined;
40954
+ /** Identity bucket. "shared" pins under SHARED_BUCKET_ID. "caller-supplied" pins under the request-context resourceId (returns 400 when missing). Defaults to "per-author". */
40955
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
40956
+ };
40957
+ export type PostToolProvidersProviderIdAuthorize_Response = {
40958
+ url: string;
40959
+ authId: string;
40960
+ };
40961
+ export type PostToolProvidersProviderIdAuthorize_Request = Simplify<(PostToolProvidersProviderIdAuthorize_PathParams extends never ? {} : {
40962
+ params: PostToolProvidersProviderIdAuthorize_PathParams;
40963
+ }) & (never extends never ? {} : {} extends never ? {
40964
+ query?: never;
40965
+ } : {
40966
+ query: never;
40967
+ }) & (PostToolProvidersProviderIdAuthorize_Body extends never ? {} : {} extends PostToolProvidersProviderIdAuthorize_Body ? {
40968
+ body?: PostToolProvidersProviderIdAuthorize_Body;
40969
+ } : {
40970
+ body: PostToolProvidersProviderIdAuthorize_Body;
40971
+ })>;
40972
+ export interface PostToolProvidersProviderIdAuthorize_RouteContract {
40973
+ pathParams: PostToolProvidersProviderIdAuthorize_PathParams;
40974
+ queryParams: never;
40975
+ body: PostToolProvidersProviderIdAuthorize_Body;
40976
+ request: PostToolProvidersProviderIdAuthorize_Request;
40977
+ response: PostToolProvidersProviderIdAuthorize_Response;
40978
+ responseType: 'json';
40979
+ }
40980
+ export type GetToolProvidersProviderIdAuthStatusAuthId_PathParams = {
40981
+ /** Unique identifier for the tool provider */
40982
+ providerId: string;
40983
+ /** Opaque auth handle returned by authorize */
40984
+ authId: string;
40985
+ };
40986
+ export type GetToolProvidersProviderIdAuthStatusAuthId_Response = {
40987
+ status: 'pending' | 'completed' | 'failed';
40988
+ };
40989
+ export type GetToolProvidersProviderIdAuthStatusAuthId_Request = Simplify<(GetToolProvidersProviderIdAuthStatusAuthId_PathParams extends never ? {} : {
40990
+ params: GetToolProvidersProviderIdAuthStatusAuthId_PathParams;
40991
+ }) & (never extends never ? {} : {} extends never ? {
40992
+ query?: never;
40993
+ } : {
40994
+ query: never;
40995
+ }) & (never extends never ? {} : {} extends never ? {
40996
+ body?: never;
40997
+ } : {
40998
+ body: never;
40999
+ })>;
41000
+ export interface GetToolProvidersProviderIdAuthStatusAuthId_RouteContract {
41001
+ pathParams: GetToolProvidersProviderIdAuthStatusAuthId_PathParams;
41002
+ queryParams: never;
41003
+ body: never;
41004
+ request: GetToolProvidersProviderIdAuthStatusAuthId_Request;
41005
+ response: GetToolProvidersProviderIdAuthStatusAuthId_Response;
41006
+ responseType: 'json';
41007
+ }
41008
+ export type PostToolProvidersProviderIdConnectionStatus_PathParams = {
41009
+ /** Unique identifier for the tool provider */
41010
+ providerId: string;
41011
+ };
41012
+ export type PostToolProvidersProviderIdConnectionStatus_Body = {
41013
+ /** Connection tuples to batch-check */
41014
+ items: {
41015
+ connectionId: string;
41016
+ toolkit: string;
41017
+ }[];
41018
+ };
41019
+ export type PostToolProvidersProviderIdConnectionStatus_Response = {
41020
+ items: {
41021
+ [key: string]: {
41022
+ connected: boolean;
41023
+ };
41024
+ };
41025
+ };
41026
+ export type PostToolProvidersProviderIdConnectionStatus_Request = Simplify<(PostToolProvidersProviderIdConnectionStatus_PathParams extends never ? {} : {
41027
+ params: PostToolProvidersProviderIdConnectionStatus_PathParams;
41028
+ }) & (never extends never ? {} : {} extends never ? {
41029
+ query?: never;
41030
+ } : {
41031
+ query: never;
41032
+ }) & (PostToolProvidersProviderIdConnectionStatus_Body extends never ? {} : {} extends PostToolProvidersProviderIdConnectionStatus_Body ? {
41033
+ body?: PostToolProvidersProviderIdConnectionStatus_Body;
41034
+ } : {
41035
+ body: PostToolProvidersProviderIdConnectionStatus_Body;
41036
+ })>;
41037
+ export interface PostToolProvidersProviderIdConnectionStatus_RouteContract {
41038
+ pathParams: PostToolProvidersProviderIdConnectionStatus_PathParams;
41039
+ queryParams: never;
41040
+ body: PostToolProvidersProviderIdConnectionStatus_Body;
41041
+ request: PostToolProvidersProviderIdConnectionStatus_Request;
41042
+ response: PostToolProvidersProviderIdConnectionStatus_Response;
41043
+ responseType: 'json';
41044
+ }
41045
+ export type GetToolProvidersProviderIdConnections_PathParams = {
41046
+ /** Unique identifier for the tool provider */
41047
+ providerId: string;
41048
+ };
41049
+ export type GetToolProvidersProviderIdConnections_QueryParams = {
41050
+ /** Toolkit slug whose connections to list */
41051
+ toolkit: string;
41052
+ /** Admin-only: restrict listing to a specific author. Silently ignored for non-admin callers. */
41053
+ authorId?: string | undefined;
41054
+ /** Filter results by scope. Omit to include shared + per-author pins for the caller. */
41055
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
41056
+ /** Page number for pagination (1-indexed) */
41057
+ page?: number | undefined;
41058
+ /** Number of items per page (default 50, max 200) */
41059
+ perPage?: number | undefined;
41060
+ };
41061
+ export type GetToolProvidersProviderIdConnections_Response = {
41062
+ items: {
41063
+ connectionId: string;
41064
+ status: 'active' | 'pending' | 'failed' | 'inactive';
41065
+ createdAt?: string | undefined;
41066
+ /** Persisted display label from tool_provider_connections, if any */
41067
+ label?: (string | null) | undefined;
41068
+ /** Owner of the connection (when known) */
41069
+ authorId?: string | undefined;
41070
+ /** Persisted scope from tool_provider_connections. Missing for rows that predate the scope field. */
41071
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
41072
+ }[];
41073
+ pagination?: {
41074
+ total?: number | undefined;
41075
+ page?: number | undefined;
41076
+ perPage?: number | undefined;
41077
+ hasMore: boolean;
41078
+ } | undefined;
41079
+ };
41080
+ export type GetToolProvidersProviderIdConnections_Request = Simplify<(GetToolProvidersProviderIdConnections_PathParams extends never ? {} : {
41081
+ params: GetToolProvidersProviderIdConnections_PathParams;
41082
+ }) & (GetToolProvidersProviderIdConnections_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnections_QueryParams ? {
41083
+ query?: GetToolProvidersProviderIdConnections_QueryParams;
41084
+ } : {
41085
+ query: GetToolProvidersProviderIdConnections_QueryParams;
41086
+ }) & (never extends never ? {} : {} extends never ? {
41087
+ body?: never;
41088
+ } : {
41089
+ body: never;
41090
+ })>;
41091
+ export interface GetToolProvidersProviderIdConnections_RouteContract {
41092
+ pathParams: GetToolProvidersProviderIdConnections_PathParams;
41093
+ queryParams: GetToolProvidersProviderIdConnections_QueryParams;
41094
+ body: never;
41095
+ request: GetToolProvidersProviderIdConnections_Request;
41096
+ response: GetToolProvidersProviderIdConnections_Response;
41097
+ responseType: 'json';
41098
+ }
41099
+ export type GetToolProvidersProviderIdConnectionFields_PathParams = {
41100
+ /** Unique identifier for the tool provider */
41101
+ providerId: string;
41102
+ };
41103
+ export type GetToolProvidersProviderIdConnectionFields_QueryParams = {
41104
+ /** Toolkit slug whose connection field schema to list */
41105
+ toolkit: string;
41106
+ };
41107
+ export type GetToolProvidersProviderIdConnectionFields_Response = {
41108
+ fields: {
41109
+ name: string;
41110
+ displayName?: string | undefined;
41111
+ description?: string | undefined;
41112
+ type: 'string' | 'number' | 'boolean';
41113
+ required: boolean;
41114
+ default?: unknown | undefined;
41115
+ }[];
41116
+ };
41117
+ export type GetToolProvidersProviderIdConnectionFields_Request = Simplify<(GetToolProvidersProviderIdConnectionFields_PathParams extends never ? {} : {
41118
+ params: GetToolProvidersProviderIdConnectionFields_PathParams;
41119
+ }) & (GetToolProvidersProviderIdConnectionFields_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnectionFields_QueryParams ? {
41120
+ query?: GetToolProvidersProviderIdConnectionFields_QueryParams;
41121
+ } : {
41122
+ query: GetToolProvidersProviderIdConnectionFields_QueryParams;
41123
+ }) & (never extends never ? {} : {} extends never ? {
41124
+ body?: never;
41125
+ } : {
41126
+ body: never;
41127
+ })>;
41128
+ export interface GetToolProvidersProviderIdConnectionFields_RouteContract {
41129
+ pathParams: GetToolProvidersProviderIdConnectionFields_PathParams;
41130
+ queryParams: GetToolProvidersProviderIdConnectionFields_QueryParams;
41131
+ body: never;
41132
+ request: GetToolProvidersProviderIdConnectionFields_Request;
41133
+ response: GetToolProvidersProviderIdConnectionFields_Response;
41134
+ responseType: 'json';
41135
+ }
41136
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams = {
41137
+ /** Unique identifier for the tool provider */
41138
+ providerId: string;
41139
+ /** Adapter-native connection id (e.g. Composio ca_...) */
41140
+ connectionId: string;
41141
+ };
41142
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams = {
41143
+ /** When true, revoke at the provider and drop the row even if pinned by agents */
41144
+ force?: (boolean | ('true' | 'false')) | undefined;
41145
+ /** Toolkit slug for the connection (used when the row was upserted with one) */
41146
+ toolkit?: string | undefined;
41147
+ };
41148
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_Response = {
41149
+ ok: true;
41150
+ /** Whether the provider-side connection was revoked */
41151
+ revoked: boolean;
41152
+ };
41153
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_Request = Simplify<(DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams extends never ? {} : {
41154
+ params: DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams;
41155
+ }) & (DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams extends never ? {} : {} extends DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams ? {
41156
+ query?: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
41157
+ } : {
41158
+ query: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
41159
+ }) & (never extends never ? {} : {} extends never ? {
41160
+ body?: never;
41161
+ } : {
41162
+ body: never;
41163
+ })>;
41164
+ export interface DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract {
41165
+ pathParams: DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams;
41166
+ queryParams: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
41167
+ body: never;
41168
+ request: DeleteToolProvidersProviderIdConnectionsConnectionId_Request;
41169
+ response: DeleteToolProvidersProviderIdConnectionsConnectionId_Response;
41170
+ responseType: 'json';
41171
+ }
41172
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams = {
41173
+ /** Unique identifier for the tool provider */
41174
+ providerId: string;
41175
+ /** Adapter-native connection id (e.g. Composio ca_...) */
41176
+ connectionId: string;
41177
+ };
41178
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams = {
41179
+ /** Optional toolkit slug to scope the usage scan */
41180
+ toolkit?: string | undefined;
41181
+ };
41182
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_Response = {
41183
+ agents: {
41184
+ id: string;
41185
+ name: string;
41186
+ }[];
41187
+ };
41188
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_Request = Simplify<(GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams extends never ? {} : {
41189
+ params: GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams;
41190
+ }) & (GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams ? {
41191
+ query?: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
41192
+ } : {
41193
+ query: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
41194
+ }) & (never extends never ? {} : {} extends never ? {
41195
+ body?: never;
41196
+ } : {
41197
+ body: never;
41198
+ })>;
41199
+ export interface GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract {
41200
+ pathParams: GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams;
41201
+ queryParams: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
41202
+ body: never;
41203
+ request: GetToolProvidersProviderIdConnectionsConnectionIdUsage_Request;
41204
+ response: GetToolProvidersProviderIdConnectionsConnectionIdUsage_Response;
41205
+ responseType: 'json';
41206
+ }
41207
+ export type GetToolProvidersProviderIdHealth_PathParams = {
41208
+ /** Unique identifier for the tool provider */
41209
+ providerId: string;
41210
+ };
41211
+ export type GetToolProvidersProviderIdHealth_Response = {
41212
+ ok: boolean;
41213
+ message?: string | undefined;
41214
+ details?: {
41215
+ [key: string]: unknown;
41216
+ } | undefined;
41217
+ };
41218
+ export type GetToolProvidersProviderIdHealth_Request = Simplify<(GetToolProvidersProviderIdHealth_PathParams extends never ? {} : {
41219
+ params: GetToolProvidersProviderIdHealth_PathParams;
41220
+ }) & (never extends never ? {} : {} extends never ? {
41221
+ query?: never;
41222
+ } : {
41223
+ query: never;
41224
+ }) & (never extends never ? {} : {} extends never ? {
41225
+ body?: never;
41226
+ } : {
41227
+ body: never;
41228
+ })>;
41229
+ export interface GetToolProvidersProviderIdHealth_RouteContract {
41230
+ pathParams: GetToolProvidersProviderIdHealth_PathParams;
41231
+ queryParams: never;
41232
+ body: never;
41233
+ request: GetToolProvidersProviderIdHealth_Request;
41234
+ response: GetToolProvidersProviderIdHealth_Response;
41235
+ responseType: 'json';
41236
+ }
40497
41237
  export type GetProcessorProviders_Response = {
40498
41238
  providers: {
40499
41239
  id: string;
@@ -44438,6 +45178,14 @@ export interface RouteTypes {
44438
45178
  'GET /tool-providers/:providerId/toolkits': GetToolProvidersProviderIdToolkits_RouteContract;
44439
45179
  'GET /tool-providers/:providerId/tools': GetToolProvidersProviderIdTools_RouteContract;
44440
45180
  'GET /tool-providers/:providerId/tools/:toolSlug/schema': GetToolProvidersProviderIdToolsToolSlugSchema_RouteContract;
45181
+ 'POST /tool-providers/:providerId/authorize': PostToolProvidersProviderIdAuthorize_RouteContract;
45182
+ 'GET /tool-providers/:providerId/auth-status/:authId': GetToolProvidersProviderIdAuthStatusAuthId_RouteContract;
45183
+ 'POST /tool-providers/:providerId/connection-status': PostToolProvidersProviderIdConnectionStatus_RouteContract;
45184
+ 'GET /tool-providers/:providerId/connections': GetToolProvidersProviderIdConnections_RouteContract;
45185
+ 'GET /tool-providers/:providerId/connection-fields': GetToolProvidersProviderIdConnectionFields_RouteContract;
45186
+ 'DELETE /tool-providers/:providerId/connections/:connectionId': DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45187
+ 'GET /tool-providers/:providerId/connections/:connectionId/usage': GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
45188
+ 'GET /tool-providers/:providerId/health': GetToolProvidersProviderIdHealth_RouteContract;
44441
45189
  'GET /processor-providers': GetProcessorProviders_RouteContract;
44442
45190
  'GET /processor-providers/:providerId': GetProcessorProvidersProviderId_RouteContract;
44443
45191
  'GET /system/packages': GetSystemPackages_RouteContract;
@@ -45225,6 +45973,30 @@ export interface Client {
45225
45973
  '/tool-providers': {
45226
45974
  GET: GetToolProviders_RouteContract;
45227
45975
  };
45976
+ '/tool-providers/:providerId/auth-status/:authId': {
45977
+ GET: GetToolProvidersProviderIdAuthStatusAuthId_RouteContract;
45978
+ };
45979
+ '/tool-providers/:providerId/authorize': {
45980
+ POST: PostToolProvidersProviderIdAuthorize_RouteContract;
45981
+ };
45982
+ '/tool-providers/:providerId/connection-fields': {
45983
+ GET: GetToolProvidersProviderIdConnectionFields_RouteContract;
45984
+ };
45985
+ '/tool-providers/:providerId/connection-status': {
45986
+ POST: PostToolProvidersProviderIdConnectionStatus_RouteContract;
45987
+ };
45988
+ '/tool-providers/:providerId/connections': {
45989
+ GET: GetToolProvidersProviderIdConnections_RouteContract;
45990
+ };
45991
+ '/tool-providers/:providerId/connections/:connectionId': {
45992
+ DELETE: DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45993
+ };
45994
+ '/tool-providers/:providerId/connections/:connectionId/usage': {
45995
+ GET: GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
45996
+ };
45997
+ '/tool-providers/:providerId/health': {
45998
+ GET: GetToolProvidersProviderIdHealth_RouteContract;
45999
+ };
45228
46000
  '/tool-providers/:providerId/toolkits': {
45229
46001
  GET: GetToolProvidersProviderIdToolkits_RouteContract;
45230
46002
  };