@composio/client 0.1.0-alpha.74 → 0.1.0-alpha.76

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/resources/auth-configs.d.mts +34 -60
  4. package/resources/auth-configs.d.mts.map +1 -1
  5. package/resources/auth-configs.d.ts +34 -60
  6. package/resources/auth-configs.d.ts.map +1 -1
  7. package/resources/connected-accounts.d.mts +20 -105
  8. package/resources/connected-accounts.d.mts.map +1 -1
  9. package/resources/connected-accounts.d.ts +20 -105
  10. package/resources/connected-accounts.d.ts.map +1 -1
  11. package/resources/connected-accounts.js +4 -6
  12. package/resources/connected-accounts.js.map +1 -1
  13. package/resources/connected-accounts.mjs +4 -6
  14. package/resources/connected-accounts.mjs.map +1 -1
  15. package/resources/files.d.mts +4 -5
  16. package/resources/files.d.mts.map +1 -1
  17. package/resources/files.d.ts +4 -5
  18. package/resources/files.d.ts.map +1 -1
  19. package/resources/files.js +4 -5
  20. package/resources/files.js.map +1 -1
  21. package/resources/files.mjs +4 -5
  22. package/resources/files.mjs.map +1 -1
  23. package/resources/link.d.mts +4 -4
  24. package/resources/link.d.mts.map +1 -1
  25. package/resources/link.d.ts +4 -4
  26. package/resources/link.d.ts.map +1 -1
  27. package/resources/logs/triggers.d.mts +3 -5
  28. package/resources/logs/triggers.d.mts.map +1 -1
  29. package/resources/logs/triggers.d.ts +3 -5
  30. package/resources/logs/triggers.d.ts.map +1 -1
  31. package/resources/logs/triggers.js +3 -5
  32. package/resources/logs/triggers.js.map +1 -1
  33. package/resources/logs/triggers.mjs +3 -5
  34. package/resources/logs/triggers.mjs.map +1 -1
  35. package/resources/tool-router/session/session.d.mts +2 -2
  36. package/resources/tool-router/session/session.d.mts.map +1 -1
  37. package/resources/tool-router/session/session.d.ts +2 -2
  38. package/resources/tool-router/session/session.d.ts.map +1 -1
  39. package/resources/toolkits.d.mts +54 -4
  40. package/resources/toolkits.d.mts.map +1 -1
  41. package/resources/toolkits.d.ts +54 -4
  42. package/resources/toolkits.d.ts.map +1 -1
  43. package/resources/tools.d.mts +4 -4
  44. package/resources/tools.d.mts.map +1 -1
  45. package/resources/tools.d.ts +4 -4
  46. package/resources/tools.d.ts.map +1 -1
  47. package/resources/trigger-instances/trigger-instances.d.mts +10 -14
  48. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  49. package/resources/trigger-instances/trigger-instances.d.ts +10 -14
  50. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  51. package/resources/trigger-instances/trigger-instances.js +3 -2
  52. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  53. package/resources/trigger-instances/trigger-instances.mjs +3 -2
  54. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  55. package/src/resources/auth-configs.ts +34 -66
  56. package/src/resources/connected-accounts.ts +36 -134
  57. package/src/resources/files.ts +4 -5
  58. package/src/resources/link.ts +8 -8
  59. package/src/resources/logs/triggers.ts +3 -5
  60. package/src/resources/tool-router/session/session.ts +4 -4
  61. package/src/resources/toolkits.ts +63 -8
  62. package/src/resources/tools.ts +8 -8
  63. package/src/resources/trigger-instances/trigger-instances.ts +10 -16
  64. package/src/version.ts +1 -1
  65. package/version.d.mts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -92,16 +92,14 @@ export declare class ConnectedAccounts extends APIResource {
92
92
  */
93
93
  patch(nanoid: string, body?: ConnectedAccountPatchParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountPatchResponse>;
94
94
  /**
95
+ * DEPRECATED: Manual refresh of a connected account is deprecated. Composio
96
+ * automatically refreshes credentials in the background as they approach expiry,
97
+ * so this endpoint is no longer required and may be removed in a future release.
95
98
  * Initiates a new authentication flow for a connected account when credentials
96
99
  * have expired or become invalid. This may generate a new authentication URL for
97
100
  * OAuth flows or refresh tokens for other auth schemes.
98
101
  *
99
- * @example
100
- * ```ts
101
- * const response = await client.connectedAccounts.refresh(
102
- * 'ca_1a2b3c4d5e6f',
103
- * );
104
- * ```
102
+ * @deprecated
105
103
  */
106
104
  refresh(nanoid: string, params?: ConnectedAccountRefreshParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse>;
107
105
  /**
@@ -141,11 +139,6 @@ export interface ConnectedAccountCreateResponse {
141
139
  * @deprecated DEPRECATED: This field will be removed in a future version
142
140
  */
143
141
  status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
144
- /**
145
- * @deprecated DEPRECATED: This field will be removed in a future version. Please
146
- * use id and auth_config.id instead.
147
- */
148
- deprecated?: ConnectedAccountCreateResponse.Deprecated;
149
142
  /**
150
143
  * Experimental features - not stable, may be modified or removed in future
151
144
  * versions.
@@ -2364,14 +2357,14 @@ export declare namespace ConnectedAccountCreateResponse {
2364
2357
  }
2365
2358
  interface UnionMember2 {
2366
2359
  access_token: string;
2367
- client_id: string;
2368
- client_secret: string;
2369
2360
  status: 'ACTIVE';
2370
2361
  account_id?: string;
2371
2362
  account_url?: string;
2372
2363
  api_url?: string;
2373
2364
  base_url?: string;
2374
2365
  borneo_dashboard_url?: string;
2366
+ client_id?: string;
2367
+ client_secret?: string;
2375
2368
  COMPANYDOMAIN?: string;
2376
2369
  dc?: string;
2377
2370
  domain?: string;
@@ -2397,14 +2390,14 @@ export declare namespace ConnectedAccountCreateResponse {
2397
2390
  }
2398
2391
  interface UnionMember3 {
2399
2392
  access_token: string;
2400
- client_id: string;
2401
- client_secret: string;
2402
2393
  status: 'INACTIVE';
2403
2394
  account_id?: string;
2404
2395
  account_url?: string;
2405
2396
  api_url?: string;
2406
2397
  base_url?: string;
2407
2398
  borneo_dashboard_url?: string;
2399
+ client_id?: string;
2400
+ client_secret?: string;
2408
2401
  COMPANYDOMAIN?: string;
2409
2402
  dc?: string;
2410
2403
  domain?: string;
@@ -2484,20 +2477,6 @@ export declare namespace ConnectedAccountCreateResponse {
2484
2477
  [k: string]: unknown;
2485
2478
  }
2486
2479
  }
2487
- /**
2488
- * @deprecated DEPRECATED: This field will be removed in a future version. Please
2489
- * use id and auth_config.id instead.
2490
- */
2491
- interface Deprecated {
2492
- /**
2493
- * The uuid of the auth config
2494
- */
2495
- authConfigUuid: string;
2496
- /**
2497
- * The uuid of the connected account
2498
- */
2499
- uuid: string;
2500
- }
2501
2480
  /**
2502
2481
  * Experimental features - not stable, may be modified or removed in future
2503
2482
  * versions.
@@ -2592,10 +2571,6 @@ export interface ConnectedAccountRetrieveResponse {
2592
2571
  * toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
2593
2572
  */
2594
2573
  word_id: string | null;
2595
- /**
2596
- * @deprecated
2597
- */
2598
- deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
2599
2574
  /**
2600
2575
  * Experimental features - not stable, may be modified or removed in future
2601
2576
  * versions.
@@ -2635,21 +2610,6 @@ export declare namespace ConnectedAccountRetrieveResponse {
2635
2610
  * Whether the auth config is disabled
2636
2611
  */
2637
2612
  is_disabled: boolean;
2638
- /**
2639
- * @deprecated
2640
- */
2641
- deprecated?: AuthConfig.Deprecated;
2642
- }
2643
- namespace AuthConfig {
2644
- /**
2645
- * @deprecated
2646
- */
2647
- interface Deprecated {
2648
- /**
2649
- * The uuid of the auth config
2650
- */
2651
- uuid: string;
2652
- }
2653
2613
  }
2654
2614
  interface UnionMember0 {
2655
2615
  authScheme: 'OAUTH1';
@@ -4862,14 +4822,14 @@ export declare namespace ConnectedAccountRetrieveResponse {
4862
4822
  }
4863
4823
  interface UnionMember2 {
4864
4824
  access_token: string;
4865
- client_id: string;
4866
- client_secret: string;
4867
4825
  status: 'ACTIVE';
4868
4826
  account_id?: string;
4869
4827
  account_url?: string;
4870
4828
  api_url?: string;
4871
4829
  base_url?: string;
4872
4830
  borneo_dashboard_url?: string;
4831
+ client_id?: string;
4832
+ client_secret?: string;
4873
4833
  COMPANYDOMAIN?: string;
4874
4834
  dc?: string;
4875
4835
  domain?: string;
@@ -4895,14 +4855,14 @@ export declare namespace ConnectedAccountRetrieveResponse {
4895
4855
  }
4896
4856
  interface UnionMember3 {
4897
4857
  access_token: string;
4898
- client_id: string;
4899
- client_secret: string;
4900
4858
  status: 'INACTIVE';
4901
4859
  account_id?: string;
4902
4860
  account_url?: string;
4903
4861
  api_url?: string;
4904
4862
  base_url?: string;
4905
4863
  borneo_dashboard_url?: string;
4864
+ client_id?: string;
4865
+ client_secret?: string;
4906
4866
  COMPANYDOMAIN?: string;
4907
4867
  dc?: string;
4908
4868
  domain?: string;
@@ -4988,19 +4948,6 @@ export declare namespace ConnectedAccountRetrieveResponse {
4988
4948
  */
4989
4949
  slug: string;
4990
4950
  }
4991
- /**
4992
- * @deprecated
4993
- */
4994
- interface Deprecated {
4995
- /**
4996
- * The labels of the connection
4997
- */
4998
- labels: Array<string>;
4999
- /**
5000
- * The uuid of the connection
5001
- */
5002
- uuid: string;
5003
- }
5004
4951
  /**
5005
4952
  * Experimental features - not stable, may be modified or removed in future
5006
4953
  * versions.
@@ -5096,10 +5043,6 @@ export declare namespace ConnectedAccountListResponse {
5096
5043
  * toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
5097
5044
  */
5098
5045
  word_id: string | null;
5099
- /**
5100
- * @deprecated
5101
- */
5102
- deprecated?: Item.Deprecated;
5103
5046
  /**
5104
5047
  * Experimental features - not stable, may be modified or removed in future
5105
5048
  * versions.
@@ -5128,21 +5071,6 @@ export declare namespace ConnectedAccountListResponse {
5128
5071
  * Whether the auth config is disabled
5129
5072
  */
5130
5073
  is_disabled: boolean;
5131
- /**
5132
- * @deprecated
5133
- */
5134
- deprecated?: AuthConfig.Deprecated;
5135
- }
5136
- namespace AuthConfig {
5137
- /**
5138
- * @deprecated
5139
- */
5140
- interface Deprecated {
5141
- /**
5142
- * The uuid of the auth config
5143
- */
5144
- uuid: string;
5145
- }
5146
5074
  }
5147
5075
  interface UnionMember0 {
5148
5076
  authScheme: 'OAUTH1';
@@ -7355,14 +7283,14 @@ export declare namespace ConnectedAccountListResponse {
7355
7283
  }
7356
7284
  interface UnionMember2 {
7357
7285
  access_token: string;
7358
- client_id: string;
7359
- client_secret: string;
7360
7286
  status: 'ACTIVE';
7361
7287
  account_id?: string;
7362
7288
  account_url?: string;
7363
7289
  api_url?: string;
7364
7290
  base_url?: string;
7365
7291
  borneo_dashboard_url?: string;
7292
+ client_id?: string;
7293
+ client_secret?: string;
7366
7294
  COMPANYDOMAIN?: string;
7367
7295
  dc?: string;
7368
7296
  domain?: string;
@@ -7388,14 +7316,14 @@ export declare namespace ConnectedAccountListResponse {
7388
7316
  }
7389
7317
  interface UnionMember3 {
7390
7318
  access_token: string;
7391
- client_id: string;
7392
- client_secret: string;
7393
7319
  status: 'INACTIVE';
7394
7320
  account_id?: string;
7395
7321
  account_url?: string;
7396
7322
  api_url?: string;
7397
7323
  base_url?: string;
7398
7324
  borneo_dashboard_url?: string;
7325
+ client_id?: string;
7326
+ client_secret?: string;
7399
7327
  COMPANYDOMAIN?: string;
7400
7328
  dc?: string;
7401
7329
  domain?: string;
@@ -7481,19 +7409,6 @@ export declare namespace ConnectedAccountListResponse {
7481
7409
  */
7482
7410
  slug: string;
7483
7411
  }
7484
- /**
7485
- * @deprecated
7486
- */
7487
- interface Deprecated {
7488
- /**
7489
- * The labels of the connection
7490
- */
7491
- labels: Array<string>;
7492
- /**
7493
- * The uuid of the connection
7494
- */
7495
- uuid: string;
7496
- }
7497
7412
  /**
7498
7413
  * Experimental features - not stable, may be modified or removed in future
7499
7414
  * versions.
@@ -9895,14 +9810,14 @@ export declare namespace ConnectedAccountCreateParams {
9895
9810
  }
9896
9811
  interface UnionMember2 {
9897
9812
  access_token: string;
9898
- client_id: string;
9899
- client_secret: string;
9900
9813
  status: 'ACTIVE';
9901
9814
  account_id?: string;
9902
9815
  account_url?: string;
9903
9816
  api_url?: string;
9904
9817
  base_url?: string;
9905
9818
  borneo_dashboard_url?: string;
9819
+ client_id?: string;
9820
+ client_secret?: string;
9906
9821
  COMPANYDOMAIN?: string;
9907
9822
  dc?: string;
9908
9823
  domain?: string;
@@ -9928,14 +9843,14 @@ export declare namespace ConnectedAccountCreateParams {
9928
9843
  }
9929
9844
  interface UnionMember3 {
9930
9845
  access_token: string;
9931
- client_id: string;
9932
- client_secret: string;
9933
9846
  status: 'INACTIVE';
9934
9847
  account_id?: string;
9935
9848
  account_url?: string;
9936
9849
  api_url?: string;
9937
9850
  base_url?: string;
9938
9851
  borneo_dashboard_url?: string;
9852
+ client_id?: string;
9853
+ client_secret?: string;
9939
9854
  COMPANYDOMAIN?: string;
9940
9855
  dc?: string;
9941
9856
  domain?: string;