@composio/client 2.0.0-rc.16 → 2.0.0-rc.18

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 (173) hide show
  1. package/README.md +146 -32
  2. package/dist/{api-key-revocation-CvGpd3Rw.mjs → api-key-revocation-JkA4sOGH.mjs} +1 -1
  3. package/dist/{auth-C0IYTv5D.mjs → auth-B_K-wdMm.mjs} +1 -1
  4. package/dist/{auth-configs-COmbnKYx.mjs → auth-configs-RAgN782Z.mjs} +1 -1
  5. package/dist/{clanker-hE4FKPjg.mjs → clanker-Pgyyh95r.mjs} +1 -1
  6. package/dist/{cli-CuFaxvp4.mjs → cli-Ca5bRiEN.mjs} +4 -5
  7. package/dist/{connected-accounts-BmbcAhdS.mjs → connected-accounts-D6NTwvbi.mjs} +1 -1
  8. package/dist/{consumer-BaJgJBXQ.mjs → consumer-BP4OyJS0.mjs} +6 -7
  9. package/dist/{custom-DIJbIQGR.mjs → custom-BBr7KbCv.mjs} +1 -1
  10. package/dist/{custom-DbEv7dUC.mjs → custom-DA3ABHnI.mjs} +1 -1
  11. package/dist/effect.d.mts +70 -26
  12. package/dist/effect.mjs +216 -141
  13. package/dist/{error-D9cG225M.mjs → error-Bw7_G2NZ.mjs} +1 -1
  14. package/dist/{files-Cw6ulQZy.mjs → files-CeBs4ZE1.mjs} +1 -1
  15. package/dist/{files-RPz_Fvnz.mjs → files-DLRmNLRD.mjs} +1 -1
  16. package/dist/{generate-DZXuXtYM.mjs → generate-16uLPwUU.mjs} +1 -1
  17. package/dist/{generated-deprecated-inputs-B6o8D8ub.mjs → generated-deprecated-inputs-zx6ml908.mjs} +2 -2
  18. package/dist/{generated-operations-DrhN6W_k.mjs → generated-operations-DKgGT6Dg.mjs} +572 -211
  19. package/dist/index.d.mts +3 -3
  20. package/dist/index.mjs +134 -100
  21. package/dist/{keyring-CmnkWH5K.mjs → keyring-Q8GSieAv.mjs} +1 -1
  22. package/dist/{link-C0KzTJBI.mjs → link-D4dY_eaN.mjs} +1 -1
  23. package/dist/{logs-Bj5MAt8z.mjs → logs-Dc63Ju74.mjs} +3 -3
  24. package/dist/{manage-DDFmGWNH.mjs → manage-ByF6b3OD.mjs} +1 -1
  25. package/dist/{mcp-DXmBAF09.mjs → mcp-Cw7-Mtkm.mjs} +3 -3
  26. package/dist/{org-D4J-n07N.mjs → org-RRUxKfRw.mjs} +6 -6
  27. package/dist/{owner-CfjgcAcM.mjs → owner-GZX-sp-h.mjs} +1 -1
  28. package/dist/{pagination-rules-uMUdPq_7.mjs → pagination-rules-CMnBwktJ.mjs} +1 -1
  29. package/dist/pagination.mjs +1 -1
  30. package/dist/{project-Dw9JLelr.mjs → project-BsKmk9T7.mjs} +1 -1
  31. package/dist/{project-CnOrdnOM.mjs → project-C1uq7bV_.mjs} +1 -1
  32. package/dist/{project-7LL6W_tc.mjs → project-C_YZ-eLI.mjs} +4 -7
  33. package/dist/{project-CLrBv6tJ.mjs → project-Cj9ULE0a.mjs} +1 -1
  34. package/dist/{realtime-DQ_gT0q7.mjs → realtime-W-lJ0Vcs.mjs} +1 -1
  35. package/dist/resources/api-key-revocation.d.mts +1 -1
  36. package/dist/resources/api-key-revocation.mjs +1 -1
  37. package/dist/resources/auth/auth.d.mts +1 -1
  38. package/dist/resources/auth/auth.mjs +1 -1
  39. package/dist/resources/auth/index.d.mts +1 -1
  40. package/dist/resources/auth/index.mjs +2 -2
  41. package/dist/resources/auth/session.d.mts +1 -1
  42. package/dist/resources/auth/session.mjs +1 -1
  43. package/dist/resources/auth-configs.d.mts +1 -1
  44. package/dist/resources/auth-configs.mjs +1 -1
  45. package/dist/resources/auth.d.mts +1 -1
  46. package/dist/resources/auth.mjs +2 -2
  47. package/dist/resources/cli/cli.d.mts +1 -1
  48. package/dist/resources/cli/cli.mjs +1 -1
  49. package/dist/resources/cli/index.d.mts +1 -1
  50. package/dist/resources/cli/index.mjs +2 -2
  51. package/dist/resources/cli/realtime.d.mts +1 -1
  52. package/dist/resources/cli/realtime.mjs +1 -1
  53. package/dist/resources/cli.d.mts +1 -1
  54. package/dist/resources/cli.mjs +2 -2
  55. package/dist/resources/connected-accounts.d.mts +1 -1
  56. package/dist/resources/connected-accounts.mjs +1 -1
  57. package/dist/resources/custom.d.mts +1 -1
  58. package/dist/resources/custom.mjs +1 -1
  59. package/dist/resources/files.d.mts +1 -1
  60. package/dist/resources/files.mjs +1 -1
  61. package/dist/resources/index.d.mts +1 -1
  62. package/dist/resources/index.mjs +13 -13
  63. package/dist/resources/keyring.d.mts +1 -1
  64. package/dist/resources/keyring.mjs +1 -1
  65. package/dist/resources/link.d.mts +1 -1
  66. package/dist/resources/link.mjs +1 -1
  67. package/dist/resources/logs/index.d.mts +1 -1
  68. package/dist/resources/logs/index.mjs +3 -3
  69. package/dist/resources/logs/logs.d.mts +1 -1
  70. package/dist/resources/logs/logs.mjs +1 -1
  71. package/dist/resources/logs/tools.d.mts +1 -1
  72. package/dist/resources/logs/tools.mjs +1 -1
  73. package/dist/resources/logs/triggers.d.mts +1 -1
  74. package/dist/resources/logs/triggers.mjs +1 -1
  75. package/dist/resources/logs.d.mts +1 -1
  76. package/dist/resources/logs.mjs +3 -3
  77. package/dist/resources/mcp/custom.d.mts +1 -1
  78. package/dist/resources/mcp/custom.mjs +1 -1
  79. package/dist/resources/mcp/generate.d.mts +1 -1
  80. package/dist/resources/mcp/generate.mjs +1 -1
  81. package/dist/resources/mcp/index.d.mts +1 -1
  82. package/dist/resources/mcp/index.mjs +3 -3
  83. package/dist/resources/mcp/mcp.d.mts +1 -1
  84. package/dist/resources/mcp/mcp.mjs +1 -1
  85. package/dist/resources/mcp.d.mts +1 -1
  86. package/dist/resources/mcp.mjs +3 -3
  87. package/dist/resources/org/clanker.d.mts +1 -1
  88. package/dist/resources/org/clanker.mjs +1 -1
  89. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  90. package/dist/resources/org/consumer/consumer.mjs +1 -1
  91. package/dist/resources/org/consumer/index.d.mts +1 -1
  92. package/dist/resources/org/consumer/index.mjs +2 -2
  93. package/dist/resources/org/consumer/project.d.mts +1 -1
  94. package/dist/resources/org/consumer/project.mjs +1 -1
  95. package/dist/resources/org/consumer.d.mts +1 -1
  96. package/dist/resources/org/consumer.mjs +2 -2
  97. package/dist/resources/org/index.d.mts +1 -1
  98. package/dist/resources/org/index.mjs +6 -6
  99. package/dist/resources/org/org.d.mts +1 -1
  100. package/dist/resources/org/org.mjs +1 -1
  101. package/dist/resources/org/owner/index.d.mts +1 -1
  102. package/dist/resources/org/owner/index.mjs +2 -2
  103. package/dist/resources/org/owner/owner.d.mts +1 -1
  104. package/dist/resources/org/owner/owner.mjs +1 -1
  105. package/dist/resources/org/owner/project.d.mts +1 -1
  106. package/dist/resources/org/owner/project.mjs +1 -1
  107. package/dist/resources/org/owner.d.mts +1 -1
  108. package/dist/resources/org/owner.mjs +2 -2
  109. package/dist/resources/org/project.d.mts +1 -1
  110. package/dist/resources/org/project.mjs +1 -1
  111. package/dist/resources/org/usage.d.mts +1 -1
  112. package/dist/resources/org/usage.mjs +1 -1
  113. package/dist/resources/org.d.mts +1 -1
  114. package/dist/resources/org.mjs +6 -6
  115. package/dist/resources/project/index.d.mts +1 -1
  116. package/dist/resources/project/index.mjs +1 -1
  117. package/dist/resources/project/project.d.mts +1 -1
  118. package/dist/resources/project/project.mjs +1 -1
  119. package/dist/resources/project/usage.d.mts +1 -1
  120. package/dist/resources/project/usage.mjs +1 -1
  121. package/dist/resources/project.d.mts +1 -1
  122. package/dist/resources/project.mjs +1 -1
  123. package/dist/resources/session-configs.d.mts +1 -1
  124. package/dist/resources/session-configs.mjs +1 -1
  125. package/dist/resources/tool-router/index.d.mts +1 -1
  126. package/dist/resources/tool-router/index.mjs +2 -2
  127. package/dist/resources/tool-router/session/files.d.mts +1 -1
  128. package/dist/resources/tool-router/session/files.mjs +1 -1
  129. package/dist/resources/tool-router/session/index.d.mts +1 -1
  130. package/dist/resources/tool-router/session/index.mjs +2 -2
  131. package/dist/resources/tool-router/session/session.d.mts +1 -1
  132. package/dist/resources/tool-router/session/session.mjs +1 -1
  133. package/dist/resources/tool-router/session.d.mts +1 -1
  134. package/dist/resources/tool-router/session.mjs +2 -2
  135. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  136. package/dist/resources/tool-router/tool-router.mjs +1 -1
  137. package/dist/resources/tool-router.d.mts +1 -1
  138. package/dist/resources/tool-router.mjs +2 -2
  139. package/dist/resources/toolkits.d.mts +1 -1
  140. package/dist/resources/toolkits.mjs +1 -1
  141. package/dist/resources/tools.d.mts +1 -1
  142. package/dist/resources/tools.mjs +1 -1
  143. package/dist/resources/trigger-instances/index.d.mts +1 -1
  144. package/dist/resources/trigger-instances/index.mjs +2 -2
  145. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  146. package/dist/resources/trigger-instances/manage.mjs +1 -1
  147. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  148. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  149. package/dist/resources/trigger-instances.d.mts +1 -1
  150. package/dist/resources/trigger-instances.mjs +2 -2
  151. package/dist/resources/triggers-types.d.mts +1 -1
  152. package/dist/resources/triggers-types.mjs +1 -1
  153. package/dist/resources/webhook-endpoints.d.mts +1 -1
  154. package/dist/resources/webhook-endpoints.mjs +1 -1
  155. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  156. package/dist/resources/webhook-subscriptions.mjs +1 -1
  157. package/dist/{session-CtO_BX-m.mjs → session-BT5NJfbm.mjs} +1 -1
  158. package/dist/{session-Bmbv2Y2h.mjs → session-BmXeclWC.mjs} +2 -2
  159. package/dist/{session-configs-C_A0gUf5.d.mts → session-configs-x3OA4CSe.d.mts} +205 -97
  160. package/dist/{tool-router-BICZScC1.mjs → tool-router-DYPUf-fN.mjs} +1 -1
  161. package/dist/{toolkits-Cj8oNvQi.mjs → toolkits-DZOZDm-4.mjs} +1 -1
  162. package/dist/{tools-C-2Nsm32.mjs → tools-BDCRk80t.mjs} +1 -1
  163. package/dist/{tools-BiyVpJSA.mjs → tools-C0GjPEpP.mjs} +1 -1
  164. package/dist/{trigger-instances-0GIUz_qu.mjs → trigger-instances-J5frdgzO.mjs} +2 -2
  165. package/dist/{triggers-DWnL3gjv.mjs → triggers-CnvE7y0L.mjs} +1 -1
  166. package/dist/{triggers-types-BkigxzlE.mjs → triggers-types-DLVCtuwC.mjs} +1 -1
  167. package/dist/{usage-RRYqkjLH.mjs → usage-DPxuivP6.mjs} +1 -1
  168. package/dist/{usage-D9XlIZBX.mjs → usage-DjQg9WIV.mjs} +1 -1
  169. package/dist/version-DEAhxVwC.d.mts +4 -0
  170. package/dist/{webhook-endpoints-x3UiV7uH.mjs → webhook-endpoints-BrSjXOf0.mjs} +1 -1
  171. package/dist/{webhook-subscriptions-_7MTwe1s.mjs → webhook-subscriptions-HT1acmwH.mjs} +1 -1
  172. package/package.json +2 -2
  173. package/dist/version-BkHUhokz.d.mts +0 -4
@@ -25094,6 +25094,86 @@ declare class APIPromise<T> extends Promise<T> {
25094
25094
  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
25095
25095
  }
25096
25096
  //#endregion
25097
+ //#region src/compat/headers.d.ts
25098
+ type HeaderValue = string | null | undefined;
25099
+ /**
25100
+ * The internal nullable representation used by Stainless. The symbol that
25101
+ * brands its concrete type is private, so compatibility is expressed through
25102
+ * the two public data fields the representation carries.
25103
+ */
25104
+ interface NullableHeadersLike {
25105
+ readonly values: Headers;
25106
+ readonly nulls: ReadonlySet<string>;
25107
+ }
25108
+ /** Header inputs accepted by the published Stainless client. */
25109
+ type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
25110
+ //#endregion
25111
+ //#region src/compat/identity.d.ts
25112
+ /**
25113
+ * The product calling through this client, such as `@composio/core` or
25114
+ * `@composio/cli`. It owns the product headers: once a client has one,
25115
+ * `defaultHeaders` and per-call `headers` can no longer carry them.
25116
+ */
25117
+ interface ClientIdentity {
25118
+ /** The calling product, such as `@composio/core` or `@composio/cli`. Sent as `x-client-provenance`. */
25119
+ readonly product: string;
25120
+ /** The calling product's version. Sent as `x-client-version` and `x-sdk-version`. */
25121
+ readonly version: string;
25122
+ /** Legacy label still read by the platform, sent as `x-source`. */
25123
+ readonly source?: string | undefined;
25124
+ /** Legacy label still read by the platform, sent as `x-framework`. */
25125
+ readonly framework?: string | undefined;
25126
+ /** Legacy label still read by the platform, sent as `x-runtime`. Defaults to the detected runtime. */
25127
+ readonly runtime?: string | undefined;
25128
+ }
25129
+ //#endregion
25130
+ //#region src/compat/transport.d.ts
25131
+ /**
25132
+ * Sends one prepared HTTP request without retries or redirect handling.
25133
+ * Implementations should observe `request.signal` to stop their underlying I/O;
25134
+ * the client still settles the public request promptly if they do not.
25135
+ */
25136
+ interface Transport {
25137
+ send(request: Request): Promise<Response>;
25138
+ }
25139
+ type KernelOwnedRequestInitKey = 'method' | 'headers' | 'body' | 'signal' | 'redirect';
25140
+ /** Fetch defaults that cannot replace fields owned by the request kernel. */
25141
+ type FetchTransportDefaults<Extra extends object = object> = Omit<RequestInit & Extra, KernelOwnedRequestInitKey>;
25142
+ type FetchImplementation<Extra extends object> = (input: RequestInfo | URL, init?: FetchTransportDefaults<Extra>) => Promise<Response>;
25143
+ /** Creates a transport backed by the supplied or global fetch function. */
25144
+ declare const createFetchTransport: <Extra extends object = object>(options?: {
25145
+ fetch?: FetchImplementation<Extra> | undefined;
25146
+ defaults?: FetchTransportDefaults<Extra> | undefined;
25147
+ }) => Transport;
25148
+ //#endregion
25149
+ //#region src/compat/request.d.ts
25150
+ /**
25151
+ * Per-request options bag — the Stainless last-positional-argument contract.
25152
+ * Downstream derives this shape structurally (`Parameters<method>[last]`);
25153
+ * `signal` support is load-bearing (abort → `APIUserAbortError`).
25154
+ */
25155
+ interface RequestOptions {
25156
+ headers?: HeadersLike;
25157
+ maxRetries?: number;
25158
+ timeout?: number;
25159
+ signal?: AbortSignal | null;
25160
+ /**
25161
+ * Stainless options-bag compatibility: sent as the `Idempotency-Key`
25162
+ * request header. Server-side replay/dedup for Composio's write endpoints
25163
+ * is not guaranteed yet — callers who cannot tolerate a double execution
25164
+ * should still set `maxRetries: 0` on writes.
25165
+ */
25166
+ idempotencyKey?: string;
25167
+ }
25168
+ type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
25169
+ /** A fully-specified request: the route plus the per-request options. */
25170
+ interface FinalRequestOptions extends RequestOptions {
25171
+ method: HTTPMethod;
25172
+ path: string;
25173
+ query?: Record<string, unknown> | null | undefined;
25174
+ body?: unknown;
25175
+ }
25176
+ //#endregion
25097
25177
  //#region src/compat/error.d.ts
25098
25178
  declare class ComposioError extends Error {}
25099
25179
  /**
@@ -25117,7 +25197,7 @@ declare class APIError<TStatus extends number | undefined = number | undefined,
25117
25197
  * `errors[]` and `suggested_fix` are reachable without casting `error`.
25118
25198
  *
25119
25199
  * Not part of the Stainless surface: a sanctioned superset, like
25120
- * `ClientOptions.userApiKey`.
25200
+ * `ClientOptions.identity`.
25121
25201
  */
25122
25202
  readonly details: APIErrorBody['error'] | undefined;
25123
25203
  /**
@@ -25155,66 +25235,65 @@ declare class UnprocessableEntityError extends APIError<422, Headers> {}
25155
25235
  declare class RateLimitError extends APIError<429, Headers> {}
25156
25236
  declare class InternalServerError extends APIError<number, Headers> {}
25157
25237
  //#endregion
25158
- //#region src/compat/headers.d.ts
25159
- type HeaderValue = string | null | undefined;
25238
+ //#region src/compat/auth.d.ts
25160
25239
  /**
25161
- * The internal nullable representation used by Stainless. The symbol that
25162
- * brands its concrete type is private, so compatibility is expressed through
25163
- * the two public data fields the representation carries.
25164
- */
25165
- interface NullableHeadersLike {
25166
- readonly values: Headers;
25167
- readonly nulls: ReadonlySet<string>;
25168
- }
25169
- /** Header inputs accepted by the published Stainless client. */
25170
- type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
25171
- //#endregion
25172
- //#region src/compat/transport.d.ts
25173
- /**
25174
- * Sends one prepared HTTP request without retries or redirect handling.
25175
- * Implementations should observe `request.signal` to stop their underlying I/O;
25176
- * the client still settles the public request promptly if they do not.
25177
- */
25178
- interface Transport {
25179
- send(request: Request): Promise<Response>;
25180
- }
25181
- type KernelOwnedRequestInitKey = 'method' | 'headers' | 'body' | 'signal' | 'redirect';
25182
- /** Fetch defaults that cannot replace fields owned by the request kernel. */
25183
- type FetchTransportDefaults<Extra extends object = object> = Omit<RequestInit & Extra, KernelOwnedRequestInitKey>;
25184
- type FetchImplementation<Extra extends object> = (input: RequestInfo | URL, init?: FetchTransportDefaults<Extra>) => Promise<Response>;
25185
- /** Creates a transport backed by the supplied or global fetch function. */
25186
- declare const createFetchTransport: <Extra extends object = object>(options?: {
25187
- fetch?: FetchImplementation<Extra> | undefined;
25188
- defaults?: FetchTransportDefaults<Extra> | undefined;
25189
- }) => Transport;
25190
- //#endregion
25191
- //#region src/compat/request.d.ts
25192
- /**
25193
- * Per-request options bag — the Stainless last-positional-argument contract.
25194
- * Downstream derives this shape structurally (`Parameters<method>[last]`);
25195
- * `signal` support is load-bearing (abort → `APIUserAbortError`).
25240
+ * A key, or a function that returns one. A function is called once per
25241
+ * logical call, after the call starts, and its key is reused across retries
25242
+ * and same-origin redirects. It returns a key or fails; it never returns
25243
+ * nothing to mean "no auth".
25196
25244
  */
25197
- interface RequestOptions {
25198
- headers?: HeadersLike;
25199
- maxRetries?: number;
25200
- timeout?: number;
25201
- signal?: AbortSignal | null;
25245
+ type Credential = string | (() => string | PromiseLike<string>);
25246
+ /** The credentials `Auth.auto` chooses among. At least one is required. */
25247
+ type AutoCredentials<C = Credential> = Readonly<{
25248
+ project?: C | undefined;
25249
+ user?: C | undefined;
25250
+ organization?: C | undefined;
25251
+ }>;
25252
+ /** How a client authenticates, generic over what a credential is. */
25253
+ type AuthOf<C> = Readonly<{
25254
+ mode: 'none';
25255
+ }> | Readonly<{
25256
+ mode: 'project';
25257
+ credential: C;
25258
+ }> | Readonly<{
25259
+ mode: 'user';
25260
+ credential: C;
25261
+ }> | Readonly<{
25262
+ mode: 'organization';
25263
+ credential: C;
25264
+ }> | Readonly<{
25265
+ mode: 'auto';
25266
+ credentials: AutoCredentials<C>;
25267
+ }>;
25268
+ /** How a client authenticates. Build one with `Auth.project(key)` and its siblings. */
25269
+ type Auth$1 = AuthOf<Credential>;
25270
+ /** The organization and project a client addresses: an organization id, a project id, or both. */
25271
+ type Scope = Readonly<{
25272
+ organizationId: string;
25273
+ projectId?: string | undefined;
25274
+ }> | Readonly<{
25275
+ projectId: string;
25276
+ }>;
25277
+ type AuthMode = Auth$1['mode'];
25278
+ /** The constructors of an `Auth` value, for an entry whose credential is `C`. Each returns a frozen value. */
25279
+ interface AuthConstructors<C> {
25280
+ /** No Composio credential. Every header name is the caller's, including the credential ones. */
25281
+ readonly none: () => AuthOf<never>;
25282
+ /** A project API key (`x-api-key`) on every request. */
25283
+ readonly project: (credential: C) => AuthOf<C>;
25284
+ /** A user API key (`x-user-api-key`) on every request. */
25285
+ readonly user: (credential: C) => AuthOf<C>;
25286
+ /** An organization API key (`x-org-api-key`) on every request. */
25287
+ readonly organization: (credential: C) => AuthOf<C>;
25202
25288
  /**
25203
- * Stainless options-bag compatibility: sent as the `Idempotency-Key`
25204
- * request header. Server-side replay/dedup for Composio's write endpoints
25205
- * is not guaranteed yet — callers who cannot tolerate a double execution
25206
- * should still set `maxRetries: 0` on writes.
25289
+ * One of these per request, chosen from the operation's declared schemes:
25290
+ * the project key wherever the operation accepts it, otherwise the first
25291
+ * declared scheme a key is given for, otherwise the project key.
25207
25292
  */
25208
- idempotencyKey?: string;
25209
- }
25210
- type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
25211
- /** A fully-specified request: the route plus the per-request options. */
25212
- interface FinalRequestOptions extends RequestOptions {
25213
- method: HTTPMethod;
25214
- path: string;
25215
- query?: Record<string, unknown> | null | undefined;
25216
- body?: unknown;
25293
+ readonly auto: (credentials: AutoCredentials<C>) => AuthOf<C>;
25217
25294
  }
25295
+ /** The constructors of {@link Auth}: `Auth.project(key)`, `Auth.user(key)`, `Auth.organization(key)`, `Auth.auto({ ... })`, `Auth.none()`. */
25296
+ declare const Auth$1: AuthConstructors<Credential>;
25218
25297
  //#endregion
25219
25298
  //#region src/compat/resources/tool-router/session/files.d.ts
25220
25299
  type FileListQueryGen = NonNullable<GetApiV31ToolRouterSessionBySessionIdMountsByMountIdItemsData['query']>;
@@ -27056,51 +27135,38 @@ interface Logger {
27056
27135
  debug: (...args: unknown[]) => void;
27057
27136
  }
27058
27137
  /**
27059
- * Stainless-compatible constructor options (composio-base-ts `src/client.ts`).
27138
+ * What a client is constructed from. The constructor reads nothing from the
27139
+ * process; {@link Composio.fromEnv} is the one reader of the environment.
27060
27140
  *
27061
27141
  * `logLevel`/`logger` control request lifecycle records and runtime
27062
27142
  * deprecation notices. `logLevel: 'off'` silences both.
27063
27143
  */
27064
27144
  interface ClientOptions {
27065
- /** API key authentication. Defaults to `process.env['COMPOSIO_API_KEY']`. */
27066
- apiKey?: string | null | undefined;
27067
27145
  /**
27068
- * User API key authentication (`UserApiKeyAuth`, `x-user-api-key`). Defaults
27069
- * to `process.env['COMPOSIO_USER_API_KEY']`.
27070
- *
27071
- * Sent only on operations whose spec `security` names `UserApiKeyAuth` and
27072
- * does *not* name `ApiKeyAuth` — eight operations, including
27073
- * `auth.session.retrieveInfo` and the `cli.realtime` pair — because the API
27074
- * rejects a request carrying two credential headers with a 401. Setting this
27075
- * changes no byte on the other 96.
27076
- *
27077
- * Not part of the Stainless surface: a sanctioned superset, like the
27078
- * credential transport boundary before it.
27146
+ * How the client authenticates: `Auth.project(key)`, `Auth.user(key)`,
27147
+ * `Auth.organization(key)`, `Auth.auto({ project, user, organization })` for
27148
+ * per-operation selection, or `Auth.none()`. A key may be a function that
27149
+ * returns one, asked once per call. While `auth` is not `none`, neither
27150
+ * `defaultHeaders` nor a call's `headers` may name a credential header.
27079
27151
  */
27080
- userApiKey?: string | null | undefined;
27152
+ auth: Auth$1;
27081
27153
  /**
27082
- * Organization API key authentication (`OrgApiKeyAuth`, `x-org-api-key`).
27083
- * Defaults to `process.env['COMPOSIO_ORG_API_KEY']`.
27084
- *
27085
- * Same rule and same superset status as `userApiKey`; it reaches the eight
27086
- * `OrgApiKeyAuth`-only operations under `org.owner.*`, `org.usage.*` and
27087
- * `org.clanker.createClaim`.
27154
+ * The organization and project the client addresses, sent as `x-org-id` and
27155
+ * `x-project-id`. While it is set, neither `defaultHeaders` nor a call's
27156
+ * `headers` may name either header.
27088
27157
  */
27089
- orgApiKey?: string | null | undefined;
27158
+ scope?: Scope | undefined;
27090
27159
  /**
27091
27160
  * Named environment base URL: `production` (backend.composio.dev),
27092
27161
  * `staging` (staging-backend.composio.dev), or `local` (localhost:9900).
27093
27162
  * Mutually exclusive with `baseURL`.
27094
27163
  */
27095
27164
  environment?: Environment | undefined;
27096
- /** Override the base URL. Defaults to `process.env['COMPOSIO_BASE_URL']`. */
27165
+ /** Override the base URL. Defaults to `https://backend.composio.dev`. */
27097
27166
  baseURL?: string | null | undefined;
27098
27167
  /**
27099
27168
  * Allows credentials to be sent to this client's configured plain-HTTP
27100
27169
  * origin. The permission is limited to the resolved scheme, host, and port.
27101
- *
27102
- * Not part of the Stainless surface: a sanctioned security superset.
27103
- * Defaults to `process.env['COMPOSIO_ALLOW_INSECURE_HTTP'] === '1'`.
27104
27170
  */
27105
27171
  allowInsecureHTTP?: boolean | undefined;
27106
27172
  /** Per-request time budget in milliseconds (each retry attempt gets its own). */
@@ -27114,40 +27180,82 @@ interface ClientOptions {
27114
27180
  transport?: Transport | undefined;
27115
27181
  /** Maximum retries for temporary failures. Defaults to 2. */
27116
27182
  maxRetries?: number | undefined;
27117
- /** Headers sent on every request; per-request headers win, `null` deletes. */
27183
+ /**
27184
+ * The calling product, sent as the product headers (`x-client-provenance`,
27185
+ * `x-client-version`, `x-sdk-version`, `x-source`, `x-framework`,
27186
+ * `x-runtime`). With it set, neither `defaultHeaders` nor a call's `headers`
27187
+ * may name an identity header; without it the client reports itself.
27188
+ */
27189
+ identity?: ClientIdentity | undefined;
27190
+ /**
27191
+ * Headers sent on every request; per-request headers win, `null` deletes.
27192
+ * The library headers (`x-client-library`, `x-client-library-version`,
27193
+ * `x-client-language`) are the client's own and are refused here, as is
27194
+ * every identity header once `identity` is set, every credential header
27195
+ * while `auth` is not `none`, and `x-org-id`/`x-project-id` while `scope`
27196
+ * is set.
27197
+ */
27118
27198
  defaultHeaders?: HeadersLike;
27119
- /** Defaults to `process.env['COMPOSIO_LOG_LEVEL']` or 'warn'. */
27199
+ /** Defaults to `'warn'`. */
27120
27200
  logLevel?: LogLevel | undefined;
27121
27201
  /** Defaults to `globalThis.console`. */
27122
27202
  logger?: Logger | undefined;
27123
27203
  }
27124
27204
  /**
27125
- * Stainless-shaped entry point: `new Composio({ apiKey }).toolRouter.session.*`.
27205
+ * Stainless-shaped entry point: `new Composio({ auth: Auth.project(key) }).toolRouter.session.*`.
27126
27206
  * Owns HTTP dispatch outright (see `request.ts`); the hey-api generated code
27127
27207
  * under `src/generated/` is codegen input only and none of it runs here.
27128
27208
  */
27129
27209
  interface Composio extends ClientResources {}
27130
27210
  declare class Composio {
27131
27211
  #private;
27132
- apiKey: string | null;
27133
- userApiKey: string | null;
27134
- orgApiKey: string | null;
27135
27212
  baseURL: string;
27136
27213
  maxRetries: number;
27137
27214
  timeout: number;
27138
27215
  logger: Logger;
27139
27216
  logLevel: LogLevel | undefined;
27140
- constructor(input?: ClientOptions);
27217
+ constructor(input: ClientOptions);
27141
27218
  /**
27142
- * Constructs a client from a caller-supplied environment snapshot.
27219
+ * Constructs a client from an environment mapping the caller passes in, such
27220
+ * as `process.env`. It reads these and nothing else:
27221
+ *
27222
+ * - `COMPOSIO_API_KEY`, `COMPOSIO_USER_API_KEY`, `COMPOSIO_ORG_API_KEY`: one
27223
+ * set is that fixed mode, several is `Auth.auto`, none is `Auth.none()`;
27224
+ * - `COMPOSIO_BASE_URL`, `COMPOSIO_ALLOW_INSECURE_HTTP=1`,
27225
+ * `COMPOSIO_LOG_LEVEL`, and `COMPOSIO_CUSTOM_HEADERS` (as `defaultHeaders`).
27143
27226
  *
27144
- * Unlike the compatibility constructor, this method never reads ambient
27145
- * process or Deno state. Explicit options replace values from `environment`;
27146
- * in particular, an explicit named environment replaces
27147
- * `COMPOSIO_BASE_URL`, and `apiKey: null` disables a mapped API key.
27227
+ * `COMPOSIO_ORG_ID` and `COMPOSIO_PROJECT_ID` are not read: `scope` is always
27228
+ * an argument. An override replaces the whole field it names, so
27229
+ * `{ auth: Auth.none() }` means none whatever the mapping holds.
27230
+ */
27231
+ static fromEnv<T extends typeof Composio>(this: T, environment: EnvironmentMap, overrides?: Partial<ClientOptions>): InstanceType<T>;
27232
+ /** How this client authenticates: `'none'`, `'project'`, `'user'`, `'organization'` or `'auto'`. */
27233
+ get authMode(): AuthMode;
27234
+ /** The organization and project this client addresses, or `undefined`. */
27235
+ get scope(): Scope | undefined;
27236
+ /**
27237
+ * The project key `auth` holds, when it is a string; `null` otherwise.
27238
+ * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
27239
+ */
27240
+ get apiKey(): string | null;
27241
+ /**
27242
+ * The user key `auth` holds, when it is a string; `null` otherwise.
27243
+ * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
27244
+ */
27245
+ get userApiKey(): string | null;
27246
+ /**
27247
+ * The organization key `auth` holds, when it is a string; `null` otherwise.
27248
+ * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
27249
+ */
27250
+ get orgApiKey(): string | null;
27251
+ /**
27252
+ * Returns a new client from this one's options with `options` merged over
27253
+ * them, key by key. Every construction check runs again on the result:
27254
+ * `auth` against the origin, the reserved headers against `auth`, `scope`
27255
+ * and `identity`, and `allowInsecureHTTP` against a changed `baseURL`.
27256
+ * `defaultHeaders` replaces the map rather than merging into it, and
27257
+ * `{ scope: undefined }` removes the scope.
27148
27258
  */
27149
- static fromEnv<T extends typeof Composio>(this: T, environment: EnvironmentMap, options?: ClientOptions): InstanceType<T>;
27150
- /** Returns a new client reusing the current options with `options` merged over them. */
27151
27259
  withOptions(options: Partial<ClientOptions>): this;
27152
27260
  get<Rsp>(path: string, opts?: RequestOptions & {
27153
27261
  query?: Record<string, unknown> | null;
@@ -27246,4 +27354,4 @@ declare namespace SessionConfigs {
27246
27354
  export { type SessionConfigsRetrieveResponse, type SessionConfigsListResponse, type SessionConfigsListParams };
27247
27355
  }
27248
27356
  //#endregion
27249
- export { ProjectRegenerateAPIKeyResponse as $, ToolkitRetrieveChangelogResponse as $n, SessionCreateResponse as $r, McpCreateInstanceParams as $t, ClankerCreateClaimResponse as A, createFetchTransport as Ai, TriggersTypeListParams as An, FileListResponse as Ar, LogRetrieveToolExecutionResponse as At, ConsumerListConnectedToolkitsParams as B, ConflictError as Bi, AuthConfigListParams as Bn, ToolRetrieveEnumResponse as Br, Triggers as Bt, Session as C, FileDeleteResponse as Ci, TriggerInstanceUpsertParams as Cn, ConnectedAccountRevokeResponse as Cr, Usage$1 as Ct, OrgListResponse as D, RequestOptions as Di, ManageDeleteResponse as Dn, FileCreatePresignedURLParams as Dr, UsageRetrieveSummaryResponse$1 as Dt, OrgListParams as E, Files$1 as Ei, Manage as En, ConnectedAccounts as Er, UsageRetrieveSummaryParams$1 as Et, UsageRetrieveSummaryResponse as F, APIErrorBody as Fi, TriggersTypes as Fn, ToolGetInputResponse as Fr, ToolRetrieveResponse as Ft, Owner as G, UnprocessableEntityError as Gi, AuthConfigUpdateStatusParams as Gn, Tools$1 as Gr, CliCreateSessionResponse as Gt, Project$2 as H, NotFoundError as Hi, AuthConfigRetrieveResponse as Hn, ToolRetrieveRequiredScopesParams as Hr, CliCreateCodactFailureParams as Ht, Project$1 as I, APIUserAbortError as Ii, AuthConfigCreateParams as In, ToolListParams$1 as Ir, Tools as It, ProjectCreateResponse as J, ToolkitListParams as Jn, SessionAttachParams as Jr, Realtime as Jt, Project$3 as K, APIPromise as Ki, AuthConfigUpdateStatusResponse as Kn, ToolRouter as Kr, CliGetSessionParams as Kt, ProjectListParams as L, AuthenticationError as Li, AuthConfigCreateResponse as Ln, ToolListResponse$1 as Lr, TriggerListParams as Lt, UsageRetrieveParams as M, APIConnectionError as Mi, TriggersTypeRetrieveEnumResponse as Mn, ToolExecuteParams as Mr, ToolListFieldsResponse as Mt, UsageRetrieveResponse as N, APIConnectionTimeoutError as Ni, TriggersTypeRetrieveParams as Nn, ToolExecuteResponse as Nr, ToolListParams as Nt, Clanker as O, FetchTransportDefaults as Oi, ManageUpdateParams as On, FileCreatePresignedURLResponse as Or, LogCreateToolExecutionParams as Ot, UsageRetrieveSummaryParams as P, APIError as Pi, TriggersTypeRetrieveResponse as Pn, ToolGetInputParams as Pr, ToolListResponse as Pt, ProjectListResponse$1 as Q, ToolkitRetrieveCategoriesResponse as Qn, SessionCreateParams as Qr, Mcp as Qt, ProjectListResponse as R, BadRequestError as Ri, AuthConfigDeleteParams as Rn, ToolProxyParams as Rr, TriggerListResponse as Rt, Auth as S, FileDeleteParams as Si, TriggerInstanceListActiveResponse as Sn, ConnectedAccountRetrieveResponse as Sr, Project$4 as St, Org as T, FileListResponse$1 as Ti, TriggerInstances as Tn, ConnectedAccountUpdateStatusResponse as Tr, UsageRetrieveResponse$1 as Tt, ProjectResolveParams as U, PermissionDeniedError as Ui, AuthConfigUpdateParams as Un, ToolRetrieveRequiredScopesResponse as Ur, CliCreateCodactFailureResponse as Ut, ConsumerListConnectedToolkitsResponse as V, InternalServerError as Vi, AuthConfigListResponse as Vn, ToolRetrieveParams as Vr, Cli as Vt, ProjectResolveResponse as W, RateLimitError as Wi, AuthConfigUpdateResponse as Wn, ToolRetrieveResponse$1 as Wr, CliCreateSessionParams as Wt, ProjectDeleteResponse as X, ToolkitRecommendScopesParams as Xn, SessionConfigHistoryParams as Xr, RealtimeAuthResponse as Xt, ProjectDeleteParams as Y, ToolkitListResponse as Yn, SessionAttachResponse as Yr, RealtimeAuthParams as Yt, ProjectListParams$1 as Z, ToolkitRecommendScopesResponse as Zn, SessionConfigHistoryResponse as Zr, RealtimeCredentialsResponse as Zt, CustomUpsertParams as _, SessionToolsResponse as _i, GenerateURLResponse as _n, ConnectedAccountListResponse as _r, WebhookSubscriptionRetrieveResponse as _t, ClientOptions as a, SessionLinkParams as ai, McpDeleteResponse as an, ToolkitRetrieveScopesGrantContextResponse as ar, WebhookEndpointReplaceParams as at, ApiKeyRevocationCreateParams as b, FileCreateUploadURLParams as bi, CustomCreateResponse as bn, ConnectedAccountRefreshParams as br, WebhookSubscriptionUpdateResponse as bt, LogLevel as c, SessionPatchResponse as ci, McpListParams as cn, LinkCreateParams as cr, WebhookEndpointUpdateParams as ct, KeyringListTransferKeysResponse as d, SessionRetrieveResponse as di, McpRetrieveAppResponse as dn, ConnectedAccountCompleteAuthResponse as dr, WebhookSubscriptionCreateParams as dt, SessionDeleteResponse as ei, McpCreateInstanceResponse as en, ToolkitRetrieveMultiParams as er, ProjectRetrieveResponse as et, Custom as f, SessionSearchParams as fi, McpRetrieveResponse as fn, ConnectedAccountCreateParams as fr, WebhookSubscriptionCreateResponse as ft, CustomSyncResponse as g, SessionToolsParams as gi, GenerateURLParams as gn, ConnectedAccountListParams as gr, WebhookSubscriptionListResponse as gt, CustomSyncParams as h, SessionToolkitsResponse as hi, Generate as hn, ConnectedAccountDeleteResponse as hr, WebhookSubscriptionListParams as ht, SessionConfigsRetrieveResponse as i, SessionExecuteResponse as ii, McpDeleteInstanceResponse as in, ToolkitRetrieveScopesGrantContextParams as ir, WebhookEndpointListResponse as it, Usage as j, HeadersLike as ji, TriggersTypeListResponse as jn, Files as jr, Logs as jt, ClankerCreateClaimParams as k, Transport as ki, ManageUpdateResponse as kn, FileListParams as kr, LogCreateToolExecutionResponse as kt, Logger as l, SessionProxyExecuteParams as li, McpListResponse as ln, LinkCreateResponse as lr, WebhookEndpointUpdateResponse as lt, CustomDeleteToolkitResponse as m, SessionToolkitsParams as mi, McpUpdateResponse as mn, ConnectedAccountDeleteParams as mr, WebhookSubscriptionListEventTypesResponse as mt, SessionConfigsListParams as n, SessionExecuteMetaResponse as ni, McpCreateResponse as nn, ToolkitRetrieveParams as nr, WebhookEndpointCreateResponse as nt, Composio as o, SessionLinkResponse as oi, McpListInstancesParams as on, Toolkits as or, WebhookEndpointReplaceResponse as ot, CustomDeleteToolkitParams as p, SessionSearchResponse as pi, McpUpdateParams as pn, ConnectedAccountCreateResponse as pr, WebhookSubscriptionDeleteResponse as pt, ProjectCreateParams as q, AuthConfigs as qn, Session$1 as qr, CliGetSessionResponse as qt, SessionConfigsListResponse as r, SessionExecuteParams as ri, McpDeleteInstanceParams as rn, ToolkitRetrieveResponse as rr, WebhookEndpointListParams as rt, EnvironmentMap as s, SessionPatchParams as si, McpListInstancesResponse as sn, Link as sr, WebhookEndpointRetrieveResponse as st, SessionConfigs as t, SessionExecuteMetaParams as ti, McpCreateParams as tn, ToolkitRetrieveMultiResponse as tr, WebhookEndpointCreateParams as tt, Keyring as u, SessionProxyExecuteResponse as ui, McpRetrieveAppParams as un, ConnectedAccountCompleteAuthParams as ur, WebhookEndpoints as ut, CustomUpsertResponse as v, FileCreateDownloadURLParams as vi, Custom$1 as vn, ConnectedAccountPatchParams as vr, WebhookSubscriptionRotateSecretResponse as vt, SessionRetrieveInfoResponse as w, FileListParams$1 as wi, TriggerInstanceUpsertResponse as wn, ConnectedAccountUpdateStatusParams as wr, UsageRetrieveParams$1 as wt, ApiKeyRevocationCreateResponse as x, FileCreateUploadURLResponse as xi, TriggerInstanceListActiveParams as xn, ConnectedAccountRefreshResponse as xr, WebhookSubscriptions as xt, ApiKeyRevocation as y, FileCreateDownloadURLResponse as yi, CustomCreateParams as yn, ConnectedAccountPatchResponse as yr, WebhookSubscriptionUpdateParams as yt, Consumer as z, ComposioError as zi, AuthConfigDeleteResponse as zn, ToolProxyResponse as zr, TriggerRetrieveResponse as zt };
27357
+ export { ProjectRegenerateAPIKeyResponse as $, HeadersLike as $i, ToolkitRetrieveChangelogResponse as $n, SessionCreateResponse as $r, McpCreateInstanceParams as $t, ClankerCreateClaimResponse as A, AuthOf as Ai, TriggersTypeListParams as An, FileListResponse as Ar, LogRetrieveToolExecutionResponse as At, ConsumerListConnectedToolkitsParams as B, BadRequestError as Bi, AuthConfigListParams as Bn, ToolRetrieveEnumResponse as Br, Triggers as Bt, Session as C, FileDeleteResponse as Ci, TriggerInstanceUpsertParams as Cn, ConnectedAccountRevokeResponse as Cr, Usage$1 as Ct, OrgListResponse as D, Auth$1 as Di, ManageDeleteResponse as Dn, FileCreatePresignedURLParams as Dr, UsageRetrieveSummaryResponse$1 as Dt, OrgListParams as E, Files$1 as Ei, Manage as En, ConnectedAccounts as Er, UsageRetrieveSummaryParams$1 as Et, UsageRetrieveSummaryResponse as F, APIConnectionTimeoutError as Fi, TriggersTypes as Fn, ToolGetInputResponse as Fr, ToolRetrieveResponse as Ft, Owner as G, PermissionDeniedError as Gi, AuthConfigUpdateStatusParams as Gn, Tools$1 as Gr, CliCreateSessionResponse as Gt, Project$2 as H, ConflictError as Hi, AuthConfigRetrieveResponse as Hn, ToolRetrieveRequiredScopesParams as Hr, CliCreateCodactFailureParams as Ht, Project$1 as I, APIError as Ii, AuthConfigCreateParams as In, ToolListParams$1 as Ir, Tools as It, ProjectCreateResponse as J, RequestOptions as Ji, ToolkitListParams as Jn, SessionAttachParams as Jr, Realtime as Jt, Project$3 as K, RateLimitError as Ki, AuthConfigUpdateStatusResponse as Kn, ToolRouter as Kr, CliGetSessionParams as Kt, ProjectListParams as L, APIErrorBody as Li, AuthConfigCreateResponse as Ln, ToolListResponse$1 as Lr, TriggerListParams as Lt, UsageRetrieveParams as M, Credential as Mi, TriggersTypeRetrieveEnumResponse as Mn, ToolExecuteParams as Mr, ToolListFieldsResponse as Mt, UsageRetrieveResponse as N, Scope as Ni, TriggersTypeRetrieveParams as Nn, ToolExecuteResponse as Nr, ToolListParams as Nt, Clanker as O, AuthConstructors as Oi, ManageUpdateParams as On, FileCreatePresignedURLResponse as Or, LogCreateToolExecutionParams as Ot, UsageRetrieveSummaryParams as P, APIConnectionError as Pi, TriggersTypeRetrieveResponse as Pn, ToolGetInputParams as Pr, ToolListResponse as Pt, ProjectListResponse$1 as Q, ClientIdentity as Qi, ToolkitRetrieveCategoriesResponse as Qn, SessionCreateParams as Qr, Mcp as Qt, ProjectListResponse as R, APIUserAbortError as Ri, AuthConfigDeleteParams as Rn, ToolProxyParams as Rr, TriggerListResponse as Rt, Auth as S, FileDeleteParams as Si, TriggerInstanceListActiveResponse as Sn, ConnectedAccountRetrieveResponse as Sr, Project$4 as St, Org as T, FileListResponse$1 as Ti, TriggerInstances as Tn, ConnectedAccountUpdateStatusResponse as Tr, UsageRetrieveResponse$1 as Tt, ProjectResolveParams as U, InternalServerError as Ui, AuthConfigUpdateParams as Un, ToolRetrieveRequiredScopesResponse as Ur, CliCreateCodactFailureResponse as Ut, ConsumerListConnectedToolkitsResponse as V, ComposioError as Vi, AuthConfigListResponse as Vn, ToolRetrieveParams as Vr, Cli as Vt, ProjectResolveResponse as W, NotFoundError as Wi, AuthConfigUpdateResponse as Wn, ToolRetrieveResponse$1 as Wr, CliCreateSessionParams as Wt, ProjectDeleteResponse as X, Transport as Xi, ToolkitRecommendScopesParams as Xn, SessionConfigHistoryParams as Xr, RealtimeAuthResponse as Xt, ProjectDeleteParams as Y, FetchTransportDefaults as Yi, ToolkitListResponse as Yn, SessionAttachResponse as Yr, RealtimeAuthParams as Yt, ProjectListParams$1 as Z, createFetchTransport as Zi, ToolkitRecommendScopesResponse as Zn, SessionConfigHistoryResponse as Zr, RealtimeCredentialsResponse as Zt, CustomUpsertParams as _, SessionToolsResponse as _i, GenerateURLResponse as _n, ConnectedAccountListResponse as _r, WebhookSubscriptionRetrieveResponse as _t, ClientOptions as a, SessionLinkParams as ai, McpDeleteResponse as an, ToolkitRetrieveScopesGrantContextResponse as ar, WebhookEndpointReplaceParams as at, ApiKeyRevocationCreateParams as b, FileCreateUploadURLParams as bi, CustomCreateResponse as bn, ConnectedAccountRefreshParams as br, WebhookSubscriptionUpdateResponse as bt, LogLevel as c, SessionPatchResponse as ci, McpListParams as cn, LinkCreateParams as cr, WebhookEndpointUpdateParams as ct, KeyringListTransferKeysResponse as d, SessionRetrieveResponse as di, McpRetrieveAppResponse as dn, ConnectedAccountCompleteAuthResponse as dr, WebhookSubscriptionCreateParams as dt, APIPromise as ea, SessionDeleteResponse as ei, McpCreateInstanceResponse as en, ToolkitRetrieveMultiParams as er, ProjectRetrieveResponse as et, Custom as f, SessionSearchParams as fi, McpRetrieveResponse as fn, ConnectedAccountCreateParams as fr, WebhookSubscriptionCreateResponse as ft, CustomSyncResponse as g, SessionToolsParams as gi, GenerateURLParams as gn, ConnectedAccountListParams as gr, WebhookSubscriptionListResponse as gt, CustomSyncParams as h, SessionToolkitsResponse as hi, Generate as hn, ConnectedAccountDeleteResponse as hr, WebhookSubscriptionListParams as ht, SessionConfigsRetrieveResponse as i, SessionExecuteResponse as ii, McpDeleteInstanceResponse as in, ToolkitRetrieveScopesGrantContextParams as ir, WebhookEndpointListResponse as it, Usage as j, AutoCredentials as ji, TriggersTypeListResponse as jn, Files as jr, Logs as jt, ClankerCreateClaimParams as k, AuthMode as ki, ManageUpdateResponse as kn, FileListParams as kr, LogCreateToolExecutionResponse as kt, Logger as l, SessionProxyExecuteParams as li, McpListResponse as ln, LinkCreateResponse as lr, WebhookEndpointUpdateResponse as lt, CustomDeleteToolkitResponse as m, SessionToolkitsParams as mi, McpUpdateResponse as mn, ConnectedAccountDeleteParams as mr, WebhookSubscriptionListEventTypesResponse as mt, SessionConfigsListParams as n, SessionExecuteMetaResponse as ni, McpCreateResponse as nn, ToolkitRetrieveParams as nr, WebhookEndpointCreateResponse as nt, Composio as o, SessionLinkResponse as oi, McpListInstancesParams as on, Toolkits as or, WebhookEndpointReplaceResponse as ot, CustomDeleteToolkitParams as p, SessionSearchResponse as pi, McpUpdateParams as pn, ConnectedAccountCreateResponse as pr, WebhookSubscriptionDeleteResponse as pt, ProjectCreateParams as q, UnprocessableEntityError as qi, AuthConfigs as qn, Session$1 as qr, CliGetSessionResponse as qt, SessionConfigsListResponse as r, SessionExecuteParams as ri, McpDeleteInstanceParams as rn, ToolkitRetrieveResponse as rr, WebhookEndpointListParams as rt, EnvironmentMap as s, SessionPatchParams as si, McpListInstancesResponse as sn, Link as sr, WebhookEndpointRetrieveResponse as st, SessionConfigs as t, SessionExecuteMetaParams as ti, McpCreateParams as tn, ToolkitRetrieveMultiResponse as tr, WebhookEndpointCreateParams as tt, Keyring as u, SessionProxyExecuteResponse as ui, McpRetrieveAppParams as un, ConnectedAccountCompleteAuthParams as ur, WebhookEndpoints as ut, CustomUpsertResponse as v, FileCreateDownloadURLParams as vi, Custom$1 as vn, ConnectedAccountPatchParams as vr, WebhookSubscriptionRotateSecretResponse as vt, SessionRetrieveInfoResponse as w, FileListParams$1 as wi, TriggerInstanceUpsertResponse as wn, ConnectedAccountUpdateStatusParams as wr, UsageRetrieveParams$1 as wt, ApiKeyRevocationCreateResponse as x, FileCreateUploadURLResponse as xi, TriggerInstanceListActiveParams as xn, ConnectedAccountRefreshResponse as xr, WebhookSubscriptions as xt, ApiKeyRevocation as y, FileCreateDownloadURLResponse as yi, CustomCreateParams as yn, ConnectedAccountPatchResponse as yr, WebhookSubscriptionUpdateParams as yt, Consumer as z, AuthenticationError as zi, AuthConfigDeleteResponse as zn, ToolProxyResponse as zr, TriggerRetrieveResponse as zt };
@@ -1,4 +1,4 @@
1
- import { t as Session } from "./session-Bmbv2Y2h.mjs";
1
+ import { t as Session } from "./session-BmXeclWC.mjs";
2
2
 
3
3
  //#region src/compat/resources/tool-router/tool-router.ts
4
4
  /** Stainless-shaped `client.toolRouter` resource. */
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/toolkits.ts
4
4
  const OP_RETRIEVE = generatedOperation("toolkits.retrieve");
@@ -1,4 +1,4 @@
1
- import { N as mergeHeaders, b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { E as mergeHeaders, d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("tools.retrieve");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/logs/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
@@ -1,5 +1,5 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
2
- import { t as Manage } from "./manage-DDFmGWNH.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
+ import { t as Manage } from "./manage-ByF6b3OD.mjs";
3
3
 
4
4
  //#region src/compat/resources/trigger-instances/trigger-instances.ts
5
5
  const OP_LIST_ACTIVE = generatedOperation("triggerInstances.listActive");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/logs/triggers.ts
4
4
  const OP_RETRIEVE = generatedOperation("logs.triggers.retrieve");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/triggers-types.ts
4
4
  const OP_RETRIEVE = generatedOperation("triggersTypes.retrieve");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/usage.ts
4
4
  const OP_RETRIEVE = generatedOperation("org.usage.retrieve");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/project/usage.ts
4
4
  const OP_RETRIEVE = generatedOperation("project.usage.retrieve");
@@ -0,0 +1,4 @@
1
+ //#region src/version.d.ts
2
+ declare const VERSION = "2.0.0-rc.18";
3
+ //#endregion
4
+ export { VERSION as t };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/webhook-endpoints.ts
4
4
  const OP_CREATE = generatedOperation("webhookEndpoints.create");
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-DrhN6W_k.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
2
 
3
3
  //#region src/compat/resources/webhook-subscriptions.ts
4
4
  const OP_CREATE = generatedOperation("webhookSubscriptions.create");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/client",
3
- "version": "2.0.0-rc.16",
3
+ "version": "2.0.0-rc.18",
4
4
  "description": "Composio API client for TypeScript, generated from the v3.1 OpenAPI spec with hey-api",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -114,7 +114,7 @@
114
114
  "@types/node": "^26.1.0",
115
115
  "@typescript/native-preview": "^7.0.0-dev.20260703.1",
116
116
  "@vitest/eslint-plugin": "^1.6.26",
117
- "composio-client-previous": "npm:@composio/client@2.0.0-rc.15",
117
+ "composio-client-previous": "npm:@composio/client@2.0.0-rc.17",
118
118
  "composio-client-stainless": "npm:@composio/client@0.1.0-alpha.76",
119
119
  "effect": "4.0.3",
120
120
  "eslint": "^9.39.4",
@@ -1,4 +0,0 @@
1
- //#region src/version.d.ts
2
- declare const VERSION = "2.0.0-rc.16";
3
- //#endregion
4
- export { VERSION as t };