@composio/client 2.0.0-rc.7 → 2.0.0-rc.8

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 (166) hide show
  1. package/dist/{api-key-revocation-BPURmRJx.mjs → api-key-revocation--5qqPnDz.mjs} +1 -1
  2. package/dist/{auth-iqhTmHa9.mjs → auth-_btgyN8t.mjs} +1 -1
  3. package/dist/{auth-configs-DYkxc_It.mjs → auth-configs-lkRDnT-a.mjs} +1 -1
  4. package/dist/{clanker-CzfQDpuy.mjs → clanker-DBfYfkSH.mjs} +1 -1
  5. package/dist/{cli-Er9a9rGs.mjs → cli-Ckmt28-b.mjs} +2 -2
  6. package/dist/{connected-accounts-DDgErVLd.mjs → connected-accounts-BJ5Ms_qb.mjs} +1 -1
  7. package/dist/{consumer-BPCfagDO.mjs → consumer--h4l55c3.mjs} +2 -2
  8. package/dist/{custom-VZyKhTTG.mjs → custom-CA8Amqss.mjs} +1 -1
  9. package/dist/{custom-Cs019zcM.mjs → custom-CFKQnTel.mjs} +1 -1
  10. package/dist/{error-DPPtjCl1.mjs → error-DLB1uKM3.mjs} +41 -7
  11. package/dist/{files-hhfQpMSx.mjs → files-BP4vVrwo.mjs} +1 -1
  12. package/dist/{files-C1QA5PTw.mjs → files-DG9Gc9CB.mjs} +1 -1
  13. package/dist/{generate-iwm8bHWW.mjs → generate-CGElZfOL.mjs} +1 -1
  14. package/dist/{generated-operations-CJ7bbwvC.mjs → generated-operations-DVRtlxnl.mjs} +15 -3
  15. package/dist/index.d.mts +3 -3
  16. package/dist/index.mjs +33 -26
  17. package/dist/{keyring-Dkcbmstv.mjs → keyring-DaSYpy6j.mjs} +1 -1
  18. package/dist/{link-Dk-yWRgc.mjs → link-DUiP6kjL.mjs} +1 -1
  19. package/dist/{logs-DnZUgpLM.mjs → logs-e4Kf3pcP.mjs} +3 -3
  20. package/dist/{manage-DfB0PrkM.mjs → manage-DTaRdqWV.mjs} +2 -2
  21. package/dist/{mcp-BfStaFrR.mjs → mcp-DxX8J9j8.mjs} +3 -3
  22. package/dist/{org-bXBx5whI.mjs → org-BIGutZCA.mjs} +6 -6
  23. package/dist/{owner-BlJ0zURX.mjs → owner-YrMH9R90.mjs} +1 -1
  24. package/dist/pagination.mjs +1 -1
  25. package/dist/{project-CGi2urmA.mjs → project-B59Fh0L9.mjs} +1 -1
  26. package/dist/{project-BeWloPLZ.mjs → project-D2NT5pmv.mjs} +1 -1
  27. package/dist/{project-B0ax2ZoD.mjs → project-DGE_op-j.mjs} +1 -1
  28. package/dist/{project-BnMfaNjl.mjs → project-DWBDOy0X.mjs} +1 -1
  29. package/dist/{realtime-BNfA3u3B.mjs → realtime-BFjIp94B.mjs} +1 -1
  30. package/dist/resources/api-key-revocation.d.mts +1 -1
  31. package/dist/resources/api-key-revocation.mjs +1 -1
  32. package/dist/resources/auth/auth.d.mts +1 -1
  33. package/dist/resources/auth/auth.mjs +1 -1
  34. package/dist/resources/auth/index.d.mts +1 -1
  35. package/dist/resources/auth/index.mjs +2 -2
  36. package/dist/resources/auth/session.d.mts +1 -1
  37. package/dist/resources/auth/session.mjs +1 -1
  38. package/dist/resources/auth-configs.d.mts +1 -1
  39. package/dist/resources/auth-configs.mjs +1 -1
  40. package/dist/resources/auth.d.mts +1 -1
  41. package/dist/resources/auth.mjs +2 -2
  42. package/dist/resources/cli/cli.d.mts +1 -1
  43. package/dist/resources/cli/cli.mjs +1 -1
  44. package/dist/resources/cli/index.d.mts +1 -1
  45. package/dist/resources/cli/index.mjs +2 -2
  46. package/dist/resources/cli/realtime.d.mts +1 -1
  47. package/dist/resources/cli/realtime.mjs +1 -1
  48. package/dist/resources/cli.d.mts +1 -1
  49. package/dist/resources/cli.mjs +2 -2
  50. package/dist/resources/connected-accounts.d.mts +1 -1
  51. package/dist/resources/connected-accounts.mjs +1 -1
  52. package/dist/resources/custom.d.mts +1 -1
  53. package/dist/resources/custom.mjs +1 -1
  54. package/dist/resources/files.d.mts +1 -1
  55. package/dist/resources/files.mjs +1 -1
  56. package/dist/resources/index.d.mts +1 -1
  57. package/dist/resources/index.mjs +13 -13
  58. package/dist/resources/keyring.d.mts +1 -1
  59. package/dist/resources/keyring.mjs +1 -1
  60. package/dist/resources/link.d.mts +1 -1
  61. package/dist/resources/link.mjs +1 -1
  62. package/dist/resources/logs/index.d.mts +1 -1
  63. package/dist/resources/logs/index.mjs +3 -3
  64. package/dist/resources/logs/logs.d.mts +1 -1
  65. package/dist/resources/logs/logs.mjs +1 -1
  66. package/dist/resources/logs/tools.d.mts +1 -1
  67. package/dist/resources/logs/tools.mjs +1 -1
  68. package/dist/resources/logs/triggers.d.mts +1 -1
  69. package/dist/resources/logs/triggers.mjs +1 -1
  70. package/dist/resources/logs.d.mts +1 -1
  71. package/dist/resources/logs.mjs +3 -3
  72. package/dist/resources/mcp/custom.d.mts +1 -1
  73. package/dist/resources/mcp/custom.mjs +1 -1
  74. package/dist/resources/mcp/generate.d.mts +1 -1
  75. package/dist/resources/mcp/generate.mjs +1 -1
  76. package/dist/resources/mcp/index.d.mts +1 -1
  77. package/dist/resources/mcp/index.mjs +3 -3
  78. package/dist/resources/mcp/mcp.d.mts +1 -1
  79. package/dist/resources/mcp/mcp.mjs +1 -1
  80. package/dist/resources/mcp.d.mts +1 -1
  81. package/dist/resources/mcp.mjs +3 -3
  82. package/dist/resources/org/clanker.d.mts +1 -1
  83. package/dist/resources/org/clanker.mjs +1 -1
  84. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  85. package/dist/resources/org/consumer/consumer.mjs +1 -1
  86. package/dist/resources/org/consumer/index.d.mts +1 -1
  87. package/dist/resources/org/consumer/index.mjs +2 -2
  88. package/dist/resources/org/consumer/project.d.mts +1 -1
  89. package/dist/resources/org/consumer/project.mjs +1 -1
  90. package/dist/resources/org/consumer.d.mts +1 -1
  91. package/dist/resources/org/consumer.mjs +2 -2
  92. package/dist/resources/org/index.d.mts +1 -1
  93. package/dist/resources/org/index.mjs +6 -6
  94. package/dist/resources/org/org.d.mts +1 -1
  95. package/dist/resources/org/org.mjs +1 -1
  96. package/dist/resources/org/owner/index.d.mts +1 -1
  97. package/dist/resources/org/owner/index.mjs +2 -2
  98. package/dist/resources/org/owner/owner.d.mts +1 -1
  99. package/dist/resources/org/owner/owner.mjs +1 -1
  100. package/dist/resources/org/owner/project.d.mts +1 -1
  101. package/dist/resources/org/owner/project.mjs +1 -1
  102. package/dist/resources/org/owner.d.mts +1 -1
  103. package/dist/resources/org/owner.mjs +2 -2
  104. package/dist/resources/org/project.d.mts +1 -1
  105. package/dist/resources/org/project.mjs +1 -1
  106. package/dist/resources/org/usage.d.mts +1 -1
  107. package/dist/resources/org/usage.mjs +1 -1
  108. package/dist/resources/org.d.mts +1 -1
  109. package/dist/resources/org.mjs +6 -6
  110. package/dist/resources/project/index.d.mts +1 -1
  111. package/dist/resources/project/index.mjs +1 -1
  112. package/dist/resources/project/project.d.mts +1 -1
  113. package/dist/resources/project/project.mjs +1 -1
  114. package/dist/resources/project/usage.d.mts +1 -1
  115. package/dist/resources/project/usage.mjs +1 -1
  116. package/dist/resources/project.d.mts +1 -1
  117. package/dist/resources/project.mjs +1 -1
  118. package/dist/resources/session-configs.d.mts +2 -0
  119. package/dist/resources/session-configs.mjs +24 -0
  120. package/dist/resources/tool-router/index.d.mts +1 -1
  121. package/dist/resources/tool-router/index.mjs +2 -2
  122. package/dist/resources/tool-router/session/files.d.mts +1 -1
  123. package/dist/resources/tool-router/session/files.mjs +1 -1
  124. package/dist/resources/tool-router/session/index.d.mts +1 -1
  125. package/dist/resources/tool-router/session/index.mjs +2 -2
  126. package/dist/resources/tool-router/session/session.d.mts +1 -1
  127. package/dist/resources/tool-router/session/session.mjs +1 -1
  128. package/dist/resources/tool-router/session.d.mts +1 -1
  129. package/dist/resources/tool-router/session.mjs +2 -2
  130. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  131. package/dist/resources/tool-router/tool-router.mjs +1 -1
  132. package/dist/resources/tool-router.d.mts +1 -1
  133. package/dist/resources/tool-router.mjs +2 -2
  134. package/dist/resources/toolkits.d.mts +1 -1
  135. package/dist/resources/toolkits.mjs +1 -1
  136. package/dist/resources/tools.d.mts +1 -1
  137. package/dist/resources/tools.mjs +1 -1
  138. package/dist/resources/trigger-instances/index.d.mts +1 -1
  139. package/dist/resources/trigger-instances/index.mjs +2 -2
  140. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  141. package/dist/resources/trigger-instances/manage.mjs +1 -1
  142. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  143. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  144. package/dist/resources/trigger-instances.d.mts +1 -1
  145. package/dist/resources/trigger-instances.mjs +2 -2
  146. package/dist/resources/triggers-types.d.mts +1 -1
  147. package/dist/resources/triggers-types.mjs +1 -1
  148. package/dist/resources/webhook-endpoints.d.mts +1 -1
  149. package/dist/resources/webhook-endpoints.mjs +1 -1
  150. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  151. package/dist/resources/webhook-subscriptions.mjs +1 -1
  152. package/dist/{session-B78Twedd.mjs → session-B9FZU6oA.mjs} +1 -1
  153. package/dist/{session-D3Azxyck.mjs → session-DtXQM3G3.mjs} +2 -2
  154. package/dist/{client-CcYk8XXt.d.mts → session-configs-DC9dblKH.d.mts} +569 -105
  155. package/dist/{tool-router-Bx1tQfx-.mjs → tool-router-CTH_fcxP.mjs} +1 -1
  156. package/dist/{toolkits-DFC0JDvT.mjs → toolkits-CxXj47JG.mjs} +1 -1
  157. package/dist/{tools-EL1x4SBb.mjs → tools-B9zq-uPU.mjs} +1 -1
  158. package/dist/{tools-Bv2Txlel.mjs → tools-BpRusMHS.mjs} +1 -1
  159. package/dist/{trigger-instances-BI-STHc4.mjs → trigger-instances-DSk1vemj.mjs} +2 -2
  160. package/dist/{triggers-vTkWuT5B.mjs → triggers-DRn4adsh.mjs} +1 -1
  161. package/dist/{triggers-types-CJWi--Kk.mjs → triggers-types-Cgh-mvOz.mjs} +1 -1
  162. package/dist/{usage-DspCrBUv.mjs → usage-B6pidrAI.mjs} +1 -1
  163. package/dist/{usage-cffJ-ds7.mjs → usage-B8p0O_pg.mjs} +1 -1
  164. package/dist/{webhook-endpoints-DSN8i5KN.mjs → webhook-endpoints-D4uTri1P.mjs} +1 -1
  165. package/dist/{webhook-subscriptions-Bgsnr29T.mjs → webhook-subscriptions-DYxSYlZP.mjs} +1 -1
  166. package/package.json +1 -1
@@ -1,99 +1,17 @@
1
1
  import { t as Config$1 } from "./config-DnyMhILW.mjs";
2
2
  import { t as Migration } from "./migration-CKGKuRO3.mjs";
3
- //#region src/compat/api-promise.d.ts
4
- /**
5
- * Stainless-compatible `APIPromise`.
6
- *
7
- * Mirrors composio-base-ts `src/core/api-promise.ts`: a `Promise` subclass
8
- * with a no-op executor whose `then`/`catch`/`finally` are overridden to
9
- * parse lazily. The laziness matters — `.asResponse()` must resolve with the
10
- * raw `Response` on HTTP error statuses without ever materializing (and thus
11
- * leaving unhandled) the rejected parsed promise.
12
- */
13
- declare class APIPromise<T> extends Promise<T> {
14
- private readonly exchangePromise;
15
- private readonly parseResponse;
16
- private parsedPromise;
17
- constructor(exchangePromise: Promise<Response>, parseResponse?: (response: Response) => Promise<T>);
18
- _thenUnwrap<U>(transform: (data: T, response: Response) => U): APIPromise<U>;
19
- /**
20
- * Gets the raw `Response` instead of parsing the body. Resolves (never
21
- * throws an `APIError`) on HTTP error statuses; rejects only on
22
- * connection/abort failures.
23
- */
24
- asResponse(): Promise<Response>;
25
- /** Gets the parsed data plus the raw `Response`. */
26
- withResponse(): Promise<{
27
- data: T;
28
- response: Response;
29
- }>;
30
- private parse;
31
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
32
- catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
33
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
34
- }
35
- //#endregion
36
- //#region src/compat/error.d.ts
37
- /**
38
- * Stainless-compatible error hierarchy.
39
- *
40
- * Downstream code does `instanceof` checks and reads `status` / `error` /
41
- * `headers` on these classes (see docs/research/drop-in-contract.md §4), so
42
- * both the class names and the inheritance chain are part of the drop-in
43
- * contract: `BadRequestError extends APIError extends ComposioError extends Error`.
44
- */
45
- declare class ComposioError extends Error {}
46
- declare class APIError<TStatus extends number | undefined = number | undefined, THeaders extends Headers | undefined = Headers | undefined, TError extends object | undefined = object | undefined> extends ComposioError {
47
- /** HTTP status for the response that caused the error. */
48
- readonly status: TStatus;
49
- /** HTTP headers of the response that caused the error. */
50
- readonly headers: THeaders;
51
- /** JSON body of the response that caused the error. */
52
- readonly error: TError;
53
- constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders);
54
- private static makeMessage;
55
- static generate(status: number | undefined, errorResponse: object | undefined, message: string | undefined, headers: Headers | undefined): APIError;
56
- }
57
- declare class APIUserAbortError extends APIError<undefined, undefined, undefined> {
58
- constructor({ message }?: {
59
- message?: string;
60
- });
61
- }
62
- declare class APIConnectionError extends APIError<undefined, undefined, undefined> {
63
- constructor({ message, cause }: {
64
- message?: string | undefined;
65
- cause?: unknown;
66
- });
67
- }
68
- declare class APIConnectionTimeoutError extends APIConnectionError {
69
- constructor({ message }?: {
70
- message?: string;
71
- });
72
- }
73
- declare class BadRequestError extends APIError<400, Headers> {}
74
- declare class AuthenticationError extends APIError<401, Headers> {}
75
- declare class PermissionDeniedError extends APIError<403, Headers> {}
76
- declare class NotFoundError extends APIError<404, Headers> {}
77
- declare class ConflictError extends APIError<409, Headers> {}
78
- declare class UnprocessableEntityError extends APIError<422, Headers> {}
79
- declare class RateLimitError extends APIError<429, Headers> {}
80
- declare class InternalServerError extends APIError<number, Headers> {}
81
- //#endregion
82
- //#region src/compat/headers.d.ts
83
- type HeaderValue = string | null | undefined;
84
- /**
85
- * The internal nullable representation used by Stainless. The symbol that
86
- * brands its concrete type is private, so compatibility is expressed through
87
- * the two public data fields the representation carries.
88
- */
89
- interface NullableHeadersLike {
90
- readonly values: Headers;
91
- readonly nulls: ReadonlySet<string>;
92
- }
93
- /** Header inputs accepted by the published Stainless client. */
94
- type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
95
- //#endregion
96
3
  //#region src/generated/types.gen.d.ts
4
+ type Error$1 = {
5
+ error: {
6
+ message: string;
7
+ code: number;
8
+ slug: string;
9
+ status: number;
10
+ request_id?: string;
11
+ suggested_fix?: string;
12
+ errors?: Array<string>;
13
+ };
14
+ };
97
15
  type Tool = {
98
16
  /**
99
17
  * Unique identifier for the tool
@@ -241,6 +159,33 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
241
159
  auth_configs?: {
242
160
  [key: string]: string;
243
161
  };
162
+ /**
163
+ * Premium usage settings. False disables premium usage; an object permits it subject to project permission and session toolkit and tool restrictions.
164
+ */
165
+ premium_usage: false | {
166
+ /**
167
+ * Toolkits eligible for premium usage, as an enabled or disabled list. If absent, no additional toolkit restriction applies.
168
+ */
169
+ toolkits?: {
170
+ enabled: Array<string>;
171
+ } | {
172
+ disabled: Array<string>;
173
+ };
174
+ /**
175
+ * Per-toolkit enabled or disabled lists that restrict premium usage. Toolkits absent from this map have no additional tool restriction.
176
+ */
177
+ tools?: {
178
+ [key: string]: {
179
+ enabled: Array<string>;
180
+ } | {
181
+ disabled: Array<string>;
182
+ };
183
+ };
184
+ /**
185
+ * Whether session tool responses return a top-level premium_charge when a charge is available. Defaults to false; controls response visibility only.
186
+ */
187
+ return_premium_charge: boolean;
188
+ };
244
189
  /**
245
190
  * Manage connections configuration
246
191
  */
@@ -304,6 +249,10 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
304
249
  * Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
305
250
  */
306
251
  enable?: boolean;
252
+ /**
253
+ * Whether tool execution is enabled in the workbench
254
+ */
255
+ tool_execution_enabled?: boolean;
307
256
  /**
308
257
  * Whether proxy execution is enabled in the workbench
309
258
  */
@@ -498,7 +447,7 @@ type CustomAuthConfigUpdate = {
498
447
  user_scopes?: string | Array<string>;
499
448
  };
500
449
  /**
501
- * [EXPERIMENTAL] Client-sealed secret fields to redeem through the organization keyring instance (GET /api/v3.1/keyring/transfer_keys). The plaintext must not also appear in credentials. Rotates the stored client_secret without Apollo ever holding it.
450
+ * [EXPERIMENTAL] Client-sealed secret fields to redeem through the organization keyring instance (GET /api/v3.1/keyring/transfer_keys). The plaintext must not also appear in credentials. Rotates the stored client_secret without Composio ever holding it.
502
451
  */
503
452
  sealed_credentials?: {
504
453
  [key: string]: string;
@@ -749,6 +698,122 @@ type ToolRouterToolkitsListResponse = {
749
698
  current_page: number;
750
699
  total_items: number;
751
700
  };
701
+ type GetApiV31SessionConfigsData = {
702
+ body?: never;
703
+ path?: never;
704
+ query?: {
705
+ /**
706
+ * Opaque cursor from the previous page.
707
+ */
708
+ cursor?: string;
709
+ /**
710
+ * Maximum number of configs to return, from 1 to 100.
711
+ */
712
+ limit?: number;
713
+ /**
714
+ * Case-insensitive substring match against the config name.
715
+ */
716
+ search?: string;
717
+ /**
718
+ * Return archived configs when true. Defaults to active configs only.
719
+ */
720
+ archived?: boolean | null;
721
+ };
722
+ url: '/api/v3.1/session_configs';
723
+ };
724
+ type GetApiV31SessionConfigsResponses = {
725
+ /**
726
+ * Session configs listed.
727
+ */
728
+ 200: {
729
+ /**
730
+ * Config summaries. Retrieve a config by ID for its description and access policy.
731
+ */
732
+ items: Array<{
733
+ /**
734
+ * Stable public identifier of the Session config.
735
+ */
736
+ id: string;
737
+ /**
738
+ * Project-unique display name.
739
+ */
740
+ name: string;
741
+ /**
742
+ * Whether the config is archived.
743
+ */
744
+ archived: boolean;
745
+ /**
746
+ * Creation time in ISO 8601.
747
+ */
748
+ created_at: string;
749
+ /**
750
+ * Last update time in ISO 8601.
751
+ */
752
+ updated_at: string;
753
+ }>;
754
+ /**
755
+ * Opaque cursor for the next page, or null when there are no more results.
756
+ */
757
+ next_cursor: string | null;
758
+ };
759
+ };
760
+ type GetApiV31SessionConfigsBySessionConfigIdResponses = {
761
+ /**
762
+ * Session config retrieved.
763
+ */
764
+ 200: {
765
+ /**
766
+ * Stable public identifier of the Session config.
767
+ */
768
+ id: string;
769
+ /**
770
+ * Project-unique display name.
771
+ */
772
+ name: string;
773
+ /**
774
+ * Optional description of when the config should be used.
775
+ */
776
+ description: string | null;
777
+ /**
778
+ * Whether the config is archived.
779
+ */
780
+ archived: boolean;
781
+ /**
782
+ * Stored Session access policy using the same enable/disable wire shape accepted on create and update.
783
+ */
784
+ config: {
785
+ toolkits?: {
786
+ enable: Array<string>;
787
+ } | {
788
+ disable: Array<string>;
789
+ };
790
+ tools?: {
791
+ [key: string]: {
792
+ enable: Array<string>;
793
+ } | {
794
+ disable: Array<string>;
795
+ } | {
796
+ tags: {
797
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
798
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
799
+ };
800
+ };
801
+ };
802
+ tags?: {
803
+ enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
804
+ disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
805
+ };
806
+ };
807
+ /**
808
+ * Creation time in ISO 8601.
809
+ */
810
+ created_at: string;
811
+ /**
812
+ * Last update time in ISO 8601.
813
+ */
814
+ updated_at: string;
815
+ };
816
+ };
752
817
  type GetApiV31KeyringTransferKeysResponses = {
753
818
  /**
754
819
  * Active keyring transfer keys.
@@ -2407,6 +2472,45 @@ type PostApiV31ToolRouterSessionData = {
2407
2472
  connected_accounts?: {
2408
2473
  [key: string]: Array<string>;
2409
2474
  };
2475
+ /**
2476
+ * Controls premium usage, subject to project permission and session toolkit and tool restrictions. False disables premium usage. Omission on create or an empty object enables it with charges hidden. On PATCH, omitted fields are preserved; an object re-enables a disabled setting.
2477
+ */
2478
+ premium_usage?: false | {
2479
+ /**
2480
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable toolkits (denylist). Mutually exclusive.
2481
+ */
2482
+ toolkits?: {
2483
+ /**
2484
+ * Only these specific toolkits will be enabled
2485
+ */
2486
+ enable: Array<string>;
2487
+ } | {
2488
+ /**
2489
+ * These specific toolkits will be disabled
2490
+ */
2491
+ disable: Array<string>;
2492
+ };
2493
+ /**
2494
+ * Per-toolkit enable or disable lists that restrict premium usage. Toolkits absent from the map have no additional tool restriction. On PATCH, a supplied map replaces all existing tool filters; an empty map clears them, and omission preserves them.
2495
+ */
2496
+ tools?: {
2497
+ [key: string]: {
2498
+ /**
2499
+ * Only these specific tools will be available for this toolkit
2500
+ */
2501
+ enable: Array<string>;
2502
+ } | {
2503
+ /**
2504
+ * These specific tools will be disabled for this toolkit
2505
+ */
2506
+ disable: Array<string>;
2507
+ };
2508
+ };
2509
+ /**
2510
+ * Return the top-level premium_charge in session tool responses when a charge is available. Defaults to false on create; omission on PATCH preserves the current value. Controls response visibility only; it does not enable or disable premium usage.
2511
+ */
2512
+ return_premium_charge?: boolean;
2513
+ };
2410
2514
  /**
2411
2515
  * Configuration for connection management settings
2412
2516
  */
@@ -2467,6 +2571,10 @@ type PostApiV31ToolRouterSessionData = {
2467
2571
  * Set to false to disable the workbench entirely. When disabled, no code execution tools are available in the session.
2468
2572
  */
2469
2573
  enable?: boolean;
2574
+ /**
2575
+ * Whether Composio tool execution is enabled inside the workbench. Defaults to true. When false, run_composio_tool, invoke_llm, and web_search are unavailable; Python analysis and file helpers remain available. Proxy execution defaults to true and still permits authenticated connected-app HTTP requests. Set enable_proxy_execution to false as well to block both Composio tool and proxy access through Workbench credentials. These flags do not restrict network access or independently supplied credentials.
2576
+ */
2577
+ enable_tool_execution?: boolean;
2470
2578
  /**
2471
2579
  * Whether proxy execution is enabled. When enabled, workbench can call URLs and APIs directly.
2472
2580
  */
@@ -2700,6 +2808,33 @@ type PostApiV31ToolRouterSessionResponses = {
2700
2808
  auth_configs?: {
2701
2809
  [key: string]: string;
2702
2810
  };
2811
+ /**
2812
+ * Premium usage settings. False disables premium usage; an object permits it subject to project permission and session toolkit and tool restrictions.
2813
+ */
2814
+ premium_usage: false | {
2815
+ /**
2816
+ * Toolkits eligible for premium usage, as an enabled or disabled list. If absent, no additional toolkit restriction applies.
2817
+ */
2818
+ toolkits?: {
2819
+ enabled: Array<string>;
2820
+ } | {
2821
+ disabled: Array<string>;
2822
+ };
2823
+ /**
2824
+ * Per-toolkit enabled or disabled lists that restrict premium usage. Toolkits absent from this map have no additional tool restriction.
2825
+ */
2826
+ tools?: {
2827
+ [key: string]: {
2828
+ enabled: Array<string>;
2829
+ } | {
2830
+ disabled: Array<string>;
2831
+ };
2832
+ };
2833
+ /**
2834
+ * Whether session tool responses return a top-level premium_charge when a charge is available. Defaults to false; controls response visibility only.
2835
+ */
2836
+ return_premium_charge: boolean;
2837
+ };
2703
2838
  /**
2704
2839
  * Manage connections configuration
2705
2840
  */
@@ -2763,6 +2898,10 @@ type PostApiV31ToolRouterSessionResponses = {
2763
2898
  * Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
2764
2899
  */
2765
2900
  enable?: boolean;
2901
+ /**
2902
+ * Whether tool execution is enabled in the workbench
2903
+ */
2904
+ tool_execution_enabled?: boolean;
2766
2905
  /**
2767
2906
  * Whether proxy execution is enabled in the workbench
2768
2907
  */
@@ -2894,7 +3033,7 @@ type PostApiV31ToolRouterSessionResponses = {
2894
3033
  preload?: boolean;
2895
3034
  }>;
2896
3035
  /**
2897
- * Experimental provenance for the reusable Session config resolved at creation.
3036
+ * Experimental provenance for the reusable Session config most recently applied to this Session.
2898
3037
  */
2899
3038
  source_session_config?: {
2900
3039
  id: string;
@@ -2975,6 +3114,33 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
2975
3114
  auth_configs?: {
2976
3115
  [key: string]: string;
2977
3116
  };
3117
+ /**
3118
+ * Premium usage settings. False disables premium usage; an object permits it subject to project permission and session toolkit and tool restrictions.
3119
+ */
3120
+ premium_usage: false | {
3121
+ /**
3122
+ * Toolkits eligible for premium usage, as an enabled or disabled list. If absent, no additional toolkit restriction applies.
3123
+ */
3124
+ toolkits?: {
3125
+ enabled: Array<string>;
3126
+ } | {
3127
+ disabled: Array<string>;
3128
+ };
3129
+ /**
3130
+ * Per-toolkit enabled or disabled lists that restrict premium usage. Toolkits absent from this map have no additional tool restriction.
3131
+ */
3132
+ tools?: {
3133
+ [key: string]: {
3134
+ enabled: Array<string>;
3135
+ } | {
3136
+ disabled: Array<string>;
3137
+ };
3138
+ };
3139
+ /**
3140
+ * Whether session tool responses return a top-level premium_charge when a charge is available. Defaults to false; controls response visibility only.
3141
+ */
3142
+ return_premium_charge: boolean;
3143
+ };
2978
3144
  /**
2979
3145
  * Manage connections configuration
2980
3146
  */
@@ -3038,6 +3204,10 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
3038
3204
  * Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
3039
3205
  */
3040
3206
  enable?: boolean;
3207
+ /**
3208
+ * Whether tool execution is enabled in the workbench
3209
+ */
3210
+ tool_execution_enabled?: boolean;
3041
3211
  /**
3042
3212
  * Whether proxy execution is enabled in the workbench
3043
3213
  */
@@ -3169,7 +3339,7 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
3169
3339
  preload?: boolean;
3170
3340
  }>;
3171
3341
  /**
3172
- * Experimental provenance for the reusable Session config resolved at creation.
3342
+ * Experimental provenance for the reusable Session config most recently applied to this Session.
3173
3343
  */
3174
3344
  source_session_config?: {
3175
3345
  id: string;
@@ -3218,6 +3388,45 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
3218
3388
  connected_accounts?: {
3219
3389
  [key: string]: Array<string>;
3220
3390
  } | null;
3391
+ /**
3392
+ * Controls premium usage, subject to project permission and session toolkit and tool restrictions. False disables premium usage. Omission on create or an empty object enables it with charges hidden. On PATCH, omitted fields are preserved; an object re-enables a disabled setting.
3393
+ */
3394
+ premium_usage?: false | {
3395
+ /**
3396
+ * Toolkit configuration - specify either enable toolkits (allowlist) or disable toolkits (denylist). Mutually exclusive.
3397
+ */
3398
+ toolkits?: {
3399
+ /**
3400
+ * Only these specific toolkits will be enabled
3401
+ */
3402
+ enable: Array<string>;
3403
+ } | {
3404
+ /**
3405
+ * These specific toolkits will be disabled
3406
+ */
3407
+ disable: Array<string>;
3408
+ };
3409
+ /**
3410
+ * Per-toolkit enable or disable lists that restrict premium usage. Toolkits absent from the map have no additional tool restriction. On PATCH, a supplied map replaces all existing tool filters; an empty map clears them, and omission preserves them.
3411
+ */
3412
+ tools?: {
3413
+ [key: string]: {
3414
+ /**
3415
+ * Only these specific tools will be available for this toolkit
3416
+ */
3417
+ enable: Array<string>;
3418
+ } | {
3419
+ /**
3420
+ * These specific tools will be disabled for this toolkit
3421
+ */
3422
+ disable: Array<string>;
3423
+ };
3424
+ };
3425
+ /**
3426
+ * Return the top-level premium_charge in session tool responses when a charge is available. Defaults to false on create; omission on PATCH preserves the current value. Controls response visibility only; it does not enable or disable premium usage.
3427
+ */
3428
+ return_premium_charge?: boolean;
3429
+ };
3221
3430
  manage_connections?: {
3222
3431
  /**
3223
3432
  * Whether to enable the connection manager for automatic connection handling. If true, we will provide a tool your agent can use to initiate connections to toolkits if it doesnt exist. If set to false, then you have to manage connections manually.
@@ -3272,6 +3481,10 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
3272
3481
  * Set to false to disable the workbench entirely. When disabled, no code execution tools are available in the session.
3273
3482
  */
3274
3483
  enable?: boolean;
3484
+ /**
3485
+ * Whether Composio tool execution is enabled inside the workbench. Defaults to true. When false, run_composio_tool, invoke_llm, and web_search are unavailable; Python analysis and file helpers remain available. Proxy execution defaults to true and still permits authenticated connected-app HTTP requests. Set enable_proxy_execution to false as well to block both Composio tool and proxy access through Workbench credentials. These flags do not restrict network access or independently supplied credentials. Changing this flag recreates the sandbox: notebook state and local files are lost, but /mnt/files/ persists. Tool descriptions and search guidance reflect the updated flag, but assistive_prompt is returned only at session creation and is not regenerated by PATCH; callers must update any previously retained prompt guidance.
3486
+ */
3487
+ enable_tool_execution?: boolean;
3275
3488
  /**
3276
3489
  * Whether proxy execution is enabled. When enabled, workbench can call URLs and APIs directly.
3277
3490
  */
@@ -3347,6 +3560,10 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
3347
3560
  */
3348
3561
  enable: boolean;
3349
3562
  };
3563
+ /**
3564
+ * Apply the latest active Session config from this project to this Session. Replaces toolkit, tool, and tag access; preserves other settings. Cannot be combined with inline toolkits, tools, or tags. Later config edits do not update this Session automatically.
3565
+ */
3566
+ session_config_id?: string;
3350
3567
  } | null;
3351
3568
  };
3352
3569
  path: {
@@ -3403,6 +3620,33 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
3403
3620
  auth_configs?: {
3404
3621
  [key: string]: string;
3405
3622
  };
3623
+ /**
3624
+ * Premium usage settings. False disables premium usage; an object permits it subject to project permission and session toolkit and tool restrictions.
3625
+ */
3626
+ premium_usage: false | {
3627
+ /**
3628
+ * Toolkits eligible for premium usage, as an enabled or disabled list. If absent, no additional toolkit restriction applies.
3629
+ */
3630
+ toolkits?: {
3631
+ enabled: Array<string>;
3632
+ } | {
3633
+ disabled: Array<string>;
3634
+ };
3635
+ /**
3636
+ * Per-toolkit enabled or disabled lists that restrict premium usage. Toolkits absent from this map have no additional tool restriction.
3637
+ */
3638
+ tools?: {
3639
+ [key: string]: {
3640
+ enabled: Array<string>;
3641
+ } | {
3642
+ disabled: Array<string>;
3643
+ };
3644
+ };
3645
+ /**
3646
+ * Whether session tool responses return a top-level premium_charge when a charge is available. Defaults to false; controls response visibility only.
3647
+ */
3648
+ return_premium_charge: boolean;
3649
+ };
3406
3650
  /**
3407
3651
  * Manage connections configuration
3408
3652
  */
@@ -3466,6 +3710,10 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
3466
3710
  * Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
3467
3711
  */
3468
3712
  enable?: boolean;
3713
+ /**
3714
+ * Whether tool execution is enabled in the workbench
3715
+ */
3716
+ tool_execution_enabled?: boolean;
3469
3717
  /**
3470
3718
  * Whether proxy execution is enabled in the workbench
3471
3719
  */
@@ -3597,7 +3845,7 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
3597
3845
  preload?: boolean;
3598
3846
  }>;
3599
3847
  /**
3600
- * Experimental provenance for the reusable Session config resolved at creation.
3848
+ * Experimental provenance for the reusable Session config most recently applied to this Session.
3601
3849
  */
3602
3850
  source_session_config?: {
3603
3851
  id: string;
@@ -3771,6 +4019,33 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
3771
4019
  auth_configs?: {
3772
4020
  [key: string]: string;
3773
4021
  };
4022
+ /**
4023
+ * Premium usage settings. False disables premium usage; an object permits it subject to project permission and session toolkit and tool restrictions.
4024
+ */
4025
+ premium_usage: false | {
4026
+ /**
4027
+ * Toolkits eligible for premium usage, as an enabled or disabled list. If absent, no additional toolkit restriction applies.
4028
+ */
4029
+ toolkits?: {
4030
+ enabled: Array<string>;
4031
+ } | {
4032
+ disabled: Array<string>;
4033
+ };
4034
+ /**
4035
+ * Per-toolkit enabled or disabled lists that restrict premium usage. Toolkits absent from this map have no additional tool restriction.
4036
+ */
4037
+ tools?: {
4038
+ [key: string]: {
4039
+ enabled: Array<string>;
4040
+ } | {
4041
+ disabled: Array<string>;
4042
+ };
4043
+ };
4044
+ /**
4045
+ * Whether session tool responses return a top-level premium_charge when a charge is available. Defaults to false; controls response visibility only.
4046
+ */
4047
+ return_premium_charge: boolean;
4048
+ };
3774
4049
  /**
3775
4050
  * Manage connections configuration
3776
4051
  */
@@ -3834,6 +4109,10 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
3834
4109
  * Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed.
3835
4110
  */
3836
4111
  enable?: boolean;
4112
+ /**
4113
+ * Whether tool execution is enabled in the workbench
4114
+ */
4115
+ tool_execution_enabled?: boolean;
3837
4116
  /**
3838
4117
  * Whether proxy execution is enabled in the workbench
3839
4118
  */
@@ -3965,7 +4244,7 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
3965
4244
  preload?: boolean;
3966
4245
  }>;
3967
4246
  /**
3968
- * Experimental provenance for the reusable Session config resolved at creation.
4247
+ * Experimental provenance for the reusable Session config most recently applied to this Session.
3969
4248
  */
3970
4249
  source_session_config?: {
3971
4250
  id: string;
@@ -4211,6 +4490,10 @@ type PostApiV31ToolRouterSessionBySessionIdSearchResponses = {
4211
4490
  * ID of cached plan if available
4212
4491
  */
4213
4492
  plan_id?: string;
4493
+ /**
4494
+ * Use case the cached plan was originally built for, if a cached plan is available. May differ from `use_case` when the cached plan was matched from a similar query.
4495
+ */
4496
+ cached_plan_usecase?: string;
4214
4497
  /**
4215
4498
  * Error message if the search for this query failed, null otherwise. Always present for failed queries.
4216
4499
  */
@@ -4293,6 +4576,15 @@ type PostApiV31ToolRouterSessionBySessionIdSearchResponses = {
4293
4576
  * When "required", the agent must specify which account to use. Present only when multiple accounts exist.
4294
4577
  */
4295
4578
  account_selection?: 'required';
4579
+ /**
4580
+ * Present when the toolkit is connected through the Composio managed account rather than a connected account of the user.
4581
+ */
4582
+ composio_managed?: {
4583
+ /**
4584
+ * Tools of this toolkit that run on the Composio managed account
4585
+ */
4586
+ allowed_tool_slugs: Array<string>;
4587
+ };
4296
4588
  /**
4297
4589
  * Human-readable message about the connection status and next steps
4298
4590
  */
@@ -5149,7 +5441,7 @@ type GetApiV31AuthConfigsData = {
5149
5441
  */
5150
5442
  search?: string;
5151
5443
  /**
5152
- * Number of items per page, max allowed is 50
5444
+ * Number of items per page, max allowed is 200
5153
5445
  */
5154
5446
  limit?: number | null;
5155
5447
  /**
@@ -20131,7 +20423,7 @@ type PostApiV31OrgOwnerProjectNewData = {
20131
20423
  */
20132
20424
  oauth_callback_verifier_url?: string | null;
20133
20425
  /**
20134
- * Link-auth theme for the hosted connect page. Opaque to Apollo; the dashboard owns the token vocabulary and all value validation.
20426
+ * Link-auth theme for the hosted connect page. Opaque to the API; the dashboard owns the token vocabulary and all value validation.
20135
20427
  */
20136
20428
  theme?: {
20137
20429
  [key: string]: unknown;
@@ -21699,6 +21991,10 @@ type PostApiV31TriggerInstancesBySlugUpsertData = {
21699
21991
  * The user id (entity id) that owns the connection. When connected_account_id is omitted, the first active connection for this user and the trigger's toolkit is auto-resolved (same as tool execution). When connected_account_id is also provided and the project has 2FA enabled, user_id is validated against the owner of that connection.
21700
21992
  */
21701
21993
  user_id?: string;
21994
+ /**
21995
+ * Overrides the delivery URL for this trigger instance only: its events are sent to this HTTPS URL instead of the project webhook URL. Your project webhook subscription is still required and still controls signing (the webhook secret), the payload version and which events are enabled; only the destination changes for this instance. Omit to leave the current value unchanged; pass null to remove the override and deliver to the project webhook URL again.
21996
+ */
21997
+ egress_url?: string | null;
21702
21998
  /**
21703
21999
  * Trigger configuration
21704
22000
  */
@@ -21878,6 +22174,10 @@ type GetApiV31TriggerInstancesActiveResponses = {
21878
22174
  trigger_config: {
21879
22175
  [key: string]: unknown;
21880
22176
  };
22177
+ /**
22178
+ * Delivery URL override for this trigger instance: its events are sent here instead of the project webhook URL, while signing, the payload version and enabled events still come from the project webhook subscription. Null means no override.
22179
+ */
22180
+ egress_url: string | null;
21881
22181
  /**
21882
22182
  * DEPRECATED: This field exposes internal state and will be removed in a future version.
21883
22183
  *
@@ -21954,8 +22254,19 @@ type DeleteApiV31TriggerInstancesManageByTriggerIdResponses = {
21954
22254
  };
21955
22255
  };
21956
22256
  type PatchApiV31TriggerInstancesManageByTriggerIdData = {
21957
- body?: {
21958
- status: 'enable' | 'disable';
22257
+ body: {
22258
+ /**
22259
+ * Enable or disable the trigger instance.
22260
+ */
22261
+ status?: 'enable' | 'disable';
22262
+ /**
22263
+ * The user id that owns the connected account behind this trigger. Optional: when sent on a project with 2FA enabled it must be the owner of a private connection or allowed on a shared one, whatever is being updated. Required to set egress_url when 2FA is enabled. Ignored when 2FA is disabled.
22264
+ */
22265
+ user_id?: string;
22266
+ /**
22267
+ * Overrides the delivery URL for this trigger instance only: its events are sent to this HTTPS URL instead of the project webhook URL. Your project webhook subscription is still required and still controls signing (the webhook secret), the payload version and which events are enabled; only the destination changes for this instance. Omit to leave the current value unchanged; pass null to remove the override and deliver to the project webhook URL again.
22268
+ */
22269
+ egress_url?: string | null;
21959
22270
  };
21960
22271
  path: {
21961
22272
  /**
@@ -23270,6 +23581,9 @@ type PostApiV31ToolRouterSessionBySessionIdProxyExecuteData = {
23270
23581
  */
23271
23582
  type: 'header' | 'query';
23272
23583
  }>;
23584
+ /**
23585
+ * @deprecated
23586
+ */
23273
23587
  custom_connection_data?: {
23274
23588
  authScheme: 'OAUTH2';
23275
23589
  toolkitSlug: string;
@@ -23978,6 +24292,114 @@ type GetApiV31ToolkitsChangelogResponses = {
23978
24292
  };
23979
24293
  };
23980
24294
  //#endregion
24295
+ //#region src/compat/api-promise.d.ts
24296
+ /**
24297
+ * Stainless-compatible `APIPromise`.
24298
+ *
24299
+ * Mirrors composio-base-ts `src/core/api-promise.ts`: a `Promise` subclass
24300
+ * with a no-op executor whose `then`/`catch`/`finally` are overridden to
24301
+ * parse lazily. The laziness matters — `.asResponse()` must resolve with the
24302
+ * raw `Response` on HTTP error statuses without ever materializing (and thus
24303
+ * leaving unhandled) the rejected parsed promise.
24304
+ */
24305
+ declare class APIPromise<T> extends Promise<T> {
24306
+ private readonly exchangePromise;
24307
+ private readonly parseResponse;
24308
+ private parsedPromise;
24309
+ constructor(exchangePromise: Promise<Response>, parseResponse?: (response: Response) => Promise<T>);
24310
+ _thenUnwrap<U>(transform: (data: T, response: Response) => U): APIPromise<U>;
24311
+ /**
24312
+ * Gets the raw `Response` instead of parsing the body. Resolves (never
24313
+ * throws an `APIError`) on HTTP error statuses; rejects only on
24314
+ * connection/abort failures.
24315
+ */
24316
+ asResponse(): Promise<Response>;
24317
+ /** Gets the parsed data plus the raw `Response`. */
24318
+ withResponse(): Promise<{
24319
+ data: T;
24320
+ response: Response;
24321
+ }>;
24322
+ private parse;
24323
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
24324
+ catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
24325
+ finally(onfinally?: (() => void) | undefined | null): Promise<T>;
24326
+ }
24327
+ //#endregion
24328
+ //#region src/compat/error.d.ts
24329
+ declare class ComposioError extends Error {}
24330
+ /**
24331
+ * The error envelope every Composio API error response carries — the spec's
24332
+ * shared `Error` schema, `{ error: { message, code, slug, status, request_id?,
24333
+ * suggested_fix?, errors? } }`. `APIError.error` stays the raw parsed body
24334
+ * (hard contract: a proxy can answer with anything); {@link APIError.details}
24335
+ * is the same body narrowed to this shape when it has it.
24336
+ */
24337
+ type APIErrorBody = Error$1;
24338
+ declare class APIError<TStatus extends number | undefined = number | undefined, THeaders extends Headers | undefined = Headers | undefined, TError extends object | undefined = object | undefined> extends ComposioError {
24339
+ /** HTTP status for the response that caused the error. */
24340
+ readonly status: TStatus;
24341
+ /** HTTP headers of the response that caused the error. */
24342
+ readonly headers: THeaders;
24343
+ /** JSON body of the response that caused the error. */
24344
+ readonly error: TError;
24345
+ /**
24346
+ * The body narrowed to the Composio error envelope (`APIErrorBody['error']`),
24347
+ * or `undefined` when the body is not one — so a validation failure's
24348
+ * `errors[]` and `suggested_fix` are reachable without casting `error`.
24349
+ *
24350
+ * Not part of the Stainless surface: a sanctioned superset, like
24351
+ * `ClientOptions.userApiKey`.
24352
+ */
24353
+ readonly details: APIErrorBody['error'] | undefined;
24354
+ /**
24355
+ * The request id the API assigned, from the `x-request-id` response header
24356
+ * first and the envelope's `request_id` otherwise; `undefined` when neither
24357
+ * is present (connection errors, aborts). Same superset status as `details`.
24358
+ */
24359
+ readonly requestId: string | undefined;
24360
+ constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders);
24361
+ private static makeMessage;
24362
+ static generate(status: number | undefined, errorResponse: object | undefined, message: string | undefined, headers: Headers | undefined): APIError;
24363
+ }
24364
+ declare class APIUserAbortError extends APIError<undefined, undefined, undefined> {
24365
+ constructor({ message }?: {
24366
+ message?: string;
24367
+ });
24368
+ }
24369
+ declare class APIConnectionError extends APIError<undefined, undefined, undefined> {
24370
+ constructor({ message, cause }: {
24371
+ message?: string | undefined;
24372
+ cause?: unknown;
24373
+ });
24374
+ }
24375
+ declare class APIConnectionTimeoutError extends APIConnectionError {
24376
+ constructor({ message }?: {
24377
+ message?: string;
24378
+ });
24379
+ }
24380
+ declare class BadRequestError extends APIError<400, Headers> {}
24381
+ declare class AuthenticationError extends APIError<401, Headers> {}
24382
+ declare class PermissionDeniedError extends APIError<403, Headers> {}
24383
+ declare class NotFoundError extends APIError<404, Headers> {}
24384
+ declare class ConflictError extends APIError<409, Headers> {}
24385
+ declare class UnprocessableEntityError extends APIError<422, Headers> {}
24386
+ declare class RateLimitError extends APIError<429, Headers> {}
24387
+ declare class InternalServerError extends APIError<number, Headers> {}
24388
+ //#endregion
24389
+ //#region src/compat/headers.d.ts
24390
+ type HeaderValue = string | null | undefined;
24391
+ /**
24392
+ * The internal nullable representation used by Stainless. The symbol that
24393
+ * brands its concrete type is private, so compatibility is expressed through
24394
+ * the two public data fields the representation carries.
24395
+ */
24396
+ interface NullableHeadersLike {
24397
+ readonly values: Headers;
24398
+ readonly nulls: ReadonlySet<string>;
24399
+ }
24400
+ /** Header inputs accepted by the published Stainless client. */
24401
+ type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
24402
+ //#endregion
23981
24403
  //#region src/compat/transport.d.ts
23982
24404
  /**
23983
24405
  * Sends one prepared HTTP request without retries or redirect handling.
@@ -24009,7 +24431,12 @@ interface RequestOptions {
24009
24431
  timeout?: number;
24010
24432
  signal?: AbortSignal | null;
24011
24433
  fetchOptions?: RequestInit;
24012
- /** Accepted for Stainless options-bag compatibility; this API sends no idempotency header. */
24434
+ /**
24435
+ * Stainless options-bag compatibility: sent as the `Idempotency-Key`
24436
+ * request header. Server-side replay/dedup for Composio's write endpoints
24437
+ * is not guaranteed yet — callers who cannot tolerate a double execution
24438
+ * should still set `maxRetries: 0` on writes.
24439
+ */
24013
24440
  idempotencyKey?: string;
24014
24441
  }
24015
24442
  type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
@@ -24388,6 +24815,7 @@ declare namespace SessionSearchResponse {
24388
24815
  interface ToolkitConnectionStatus extends NonNullable<SessionSearchResponseGen['toolkit_connection_statuses'][number]> {}
24389
24816
  namespace ToolkitConnectionStatus {
24390
24817
  type Account = NonNullable<ToolkitConnectionStatus['accounts']>[number];
24818
+ type ComposioManaged = NonNullable<ToolkitConnectionStatus['composio_managed']>;
24391
24819
  }
24392
24820
  }
24393
24821
  type SessionToolkitsResponseGen = GetApiV31ToolRouterSessionBySessionIdToolkitsResponses[200];
@@ -24956,7 +25384,7 @@ interface ManageDeleteResponse extends ManageDeleteResponseGen {}
24956
25384
  declare class Manage {
24957
25385
  #private;
24958
25386
  constructor(client: Composio);
24959
- update(triggerID: string, body: ManageUpdateParams, options?: RequestOptions): APIPromise<ManageUpdateResponse>;
25387
+ update(triggerID: string, body?: ManageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ManageUpdateResponse>;
24960
25388
  delete(triggerID: string, options?: RequestOptions): APIPromise<ManageDeleteResponse>;
24961
25389
  }
24962
25390
  declare namespace Manage {
@@ -25816,6 +26244,7 @@ interface ClientResources {
25816
26244
  readonly apiKeyRevocation: ApiKeyRevocation;
25817
26245
  readonly custom: Custom;
25818
26246
  readonly keyring: Keyring;
26247
+ readonly sessionConfigs: SessionConfigs;
25819
26248
  }
25820
26249
  //#endregion
25821
26250
  //#region src/compat/client.d.ts
@@ -25992,4 +26421,39 @@ declare namespace Composio {
25992
26421
  export { Keyring, type KeyringListTransferKeysResponse };
25993
26422
  }
25994
26423
  //#endregion
25995
- export { WebhookEndpointListResponse as $, ConnectedAccountCreateResponse as $n, SessionToolsParams as $r, McpDeleteInstanceResponse as $t, UsageRetrieveSummaryResponse as A, TriggersTypes as An, Session$1 as Ar, ToolRetrieveResponse as At, Owner as B, AuthConfigUpdateStatusParams as Bn, SessionExecuteParams as Br, CliCreateSessionResponse as Bt, Clanker as C, NotFoundError as Ci, ManageUpdateParams as Cn, ToolProxyParams as Cr, LogCreateToolExecutionParams as Ct, UsageRetrieveParams as D, APIPromise as Di, TriggersTypeRetrieveEnumResponse as Dn, ToolRetrieveResponse$1 as Dr, ToolListFieldsResponse as Dt, Usage as E, UnprocessableEntityError as Ei, TriggersTypeListResponse as En, ToolRetrieveParams as Er, Logs as Et, ConsumerListConnectedToolkitsParams as F, AuthConfigListParams as Fn, SessionCreateParams as Fr, Triggers as Ft, ProjectDeleteResponse as G, ToolkitRetrieveCategoriesResponse as Gn, SessionPatchResponse as Gr, RealtimeAuthResponse as Gt, ProjectCreateParams as H, AuthConfigs as Hn, SessionLinkParams as Hr, CliGetSessionResponse as Ht, ConsumerListConnectedToolkitsResponse as I, AuthConfigListResponse as In, SessionCreateResponse as Ir, Cli as It, ProjectRegenerateAPIKeyResponse as J, Toolkits as Jn, SessionRetrieveResponse as Jr, McpCreateInstanceParams as Jt, ProjectListParams$1 as K, ToolkitRetrieveParams as Kn, SessionProxyExecuteParams as Kr, RealtimeCredentialsResponse as Kt, Project$2 as L, AuthConfigRetrieveResponse as Ln, SessionDeleteResponse as Lr, CliCreateCodactFailureParams as Lt, ProjectListParams as M, AuthConfigCreateResponse as Mn, SessionAttachResponse as Mr, TriggerListParams as Mt, ProjectListResponse as N, AuthConfigDeleteParams as Nn, SessionConfigHistoryParams as Nr, TriggerListResponse as Nt, UsageRetrieveResponse as O, TriggersTypeRetrieveParams as On, Tools$1 as Or, ToolListParams as Ot, Consumer as P, AuthConfigDeleteResponse as Pn, SessionConfigHistoryResponse as Pr, TriggerRetrieveResponse as Pt, WebhookEndpointListParams as Q, ConnectedAccountCreateParams as Qn, SessionToolkitsResponse as Qr, McpDeleteInstanceParams as Qt, ProjectResolveParams as R, AuthConfigUpdateParams as Rn, SessionExecuteMetaParams as Rr, CliCreateCodactFailureResponse as Rt, OrgListResponse as S, InternalServerError as Si, ManageDeleteResponse as Sn, ToolListResponse$1 as Sr, UsageRetrieveSummaryResponse$1 as St, ClankerCreateClaimResponse as T, RateLimitError as Ti, TriggersTypeListParams as Tn, ToolRetrieveEnumResponse as Tr, LogRetrieveToolExecutionResponse as Tt, ProjectCreateResponse as U, ToolkitListParams as Un, SessionLinkResponse as Ur, Realtime as Ut, Project$3 as V, AuthConfigUpdateStatusResponse as Vn, SessionExecuteResponse as Vr, CliGetSessionParams as Vt, ProjectDeleteParams as W, ToolkitListResponse as Wn, SessionPatchParams as Wr, RealtimeAuthParams as Wt, WebhookEndpointCreateParams as X, LinkCreateParams as Xn, SessionSearchResponse as Xr, McpCreateParams as Xt, ProjectRetrieveResponse as Y, Link as Yn, SessionSearchParams as Yr, McpCreateInstanceResponse as Yt, WebhookEndpointCreateResponse as Z, LinkCreateResponse as Zn, SessionToolkitsParams as Zr, McpCreateResponse as Zt, Auth as _, APIUserAbortError as _i, TriggerInstanceListActiveResponse as _n, ToolExecuteParams as _r, Project$4 as _t, Logger as a, FileDeleteParams as ai, McpRetrieveAppParams as an, ConnectedAccountPatchResponse as ar, WebhookEndpoints as at, Org as b, ComposioError as bi, TriggerInstances as bn, ToolGetInputResponse as br, UsageRetrieveResponse$1 as bt, Custom as c, FileListResponse$1 as ci, McpUpdateParams as cn, ConnectedAccountRetrieveResponse as cr, WebhookSubscriptionDeleteResponse as ct, CustomSyncResponse as d, FetchTransportDefaults as di, GenerateURLParams as dn, ConnectedAccounts as dr, WebhookSubscriptionListResponse as dt, SessionToolsResponse as ei, McpDeleteResponse as en, ConnectedAccountDeleteParams as er, WebhookEndpointReplaceParams as et, CustomUpsertParams as f, Transport as fi, GenerateURLResponse as fn, FileCreatePresignedURLParams as fr, WebhookSubscriptionRetrieveResponse as ft, ApiKeyRevocationCreateResponse as g, APIError as gi, TriggerInstanceListActiveParams as gn, Files as gr, WebhookSubscriptions as gt, ApiKeyRevocationCreateParams as h, APIConnectionTimeoutError as hi, CustomCreateResponse as hn, FileListResponse as hr, WebhookSubscriptionUpdateResponse as ht, LogLevel as i, FileCreateUploadURLResponse as ii, McpListResponse as in, ConnectedAccountPatchParams as ir, WebhookEndpointUpdateResponse as it, Project$1 as j, AuthConfigCreateParams as jn, SessionAttachParams as jr, Tools as jt, UsageRetrieveSummaryParams as k, TriggersTypeRetrieveResponse as kn, ToolRouter as kr, ToolListResponse as kt, CustomDeleteToolkitResponse as l, Files$1 as li, McpUpdateResponse as ln, ConnectedAccountUpdateStatusParams as lr, WebhookSubscriptionListEventTypesResponse as lt, ApiKeyRevocation as m, APIConnectionError as mi, CustomCreateParams as mn, FileListParams as mr, WebhookSubscriptionUpdateParams as mt, Composio as n, FileCreateDownloadURLResponse as ni, McpListInstancesResponse as nn, ConnectedAccountListParams as nr, WebhookEndpointRetrieveResponse as nt, Keyring as o, FileDeleteResponse as oi, McpRetrieveAppResponse as on, ConnectedAccountRefreshParams as or, WebhookSubscriptionCreateParams as ot, CustomUpsertResponse as p, createFetchTransport as pi, Custom$1 as pn, FileCreatePresignedURLResponse as pr, WebhookSubscriptionRotateSecretResponse as pt, ProjectListResponse$1 as q, ToolkitRetrieveResponse as qn, SessionProxyExecuteResponse as qr, Mcp as qt, EnvironmentMap as r, FileCreateUploadURLParams as ri, McpListParams as rn, ConnectedAccountListResponse as rr, WebhookEndpointUpdateParams as rt, KeyringListTransferKeysResponse as s, FileListParams$1 as si, McpRetrieveResponse as sn, ConnectedAccountRefreshResponse as sr, WebhookSubscriptionCreateResponse as st, ClientOptions as t, FileCreateDownloadURLParams as ti, McpListInstancesParams as tn, ConnectedAccountDeleteResponse as tr, WebhookEndpointReplaceResponse as tt, CustomSyncParams as u, RequestOptions as ui, Generate as un, ConnectedAccountUpdateStatusResponse as ur, WebhookSubscriptionListParams as ut, Session as v, AuthenticationError as vi, TriggerInstanceUpsertParams as vn, ToolExecuteResponse as vr, Usage$1 as vt, ClankerCreateClaimParams as w, PermissionDeniedError as wi, ManageUpdateResponse as wn, ToolProxyResponse as wr, LogCreateToolExecutionResponse as wt, OrgListParams as x, ConflictError as xi, Manage as xn, ToolListParams$1 as xr, UsageRetrieveSummaryParams$1 as xt, SessionRetrieveInfoResponse as y, BadRequestError as yi, TriggerInstanceUpsertResponse as yn, ToolGetInputParams as yr, UsageRetrieveParams$1 as yt, ProjectResolveResponse as z, AuthConfigUpdateResponse as zn, SessionExecuteMetaResponse as zr, CliCreateSessionParams as zt };
26424
+ //#region src/compat/resources/session-configs.d.ts
26425
+ type SessionConfigsListParamsGen = NonNullable<GetApiV31SessionConfigsData['query']>;
26426
+ interface SessionConfigsListParams extends SessionConfigsListParamsGen {}
26427
+ type SessionConfigsRetrieveResponseGen = GetApiV31SessionConfigsBySessionConfigIdResponses[200];
26428
+ interface SessionConfigsRetrieveResponse extends SessionConfigsRetrieveResponseGen {}
26429
+ declare namespace SessionConfigsRetrieveResponse {
26430
+ interface Config extends NonNullable<SessionConfigsRetrieveResponseGen['config']> {}
26431
+ namespace Config {
26432
+ type Disable = Extract<NonNullable<Config['toolkits']>, {
26433
+ disable: unknown;
26434
+ }>;
26435
+ type Enable = Extract<NonNullable<Config['toolkits']>, {
26436
+ enable: unknown;
26437
+ }>;
26438
+ type Tags = Extract<NonNullable<Config['tools']>[string], {
26439
+ tags: unknown;
26440
+ }>;
26441
+ }
26442
+ }
26443
+ type SessionConfigsListResponseGen = GetApiV31SessionConfigsResponses[200];
26444
+ interface SessionConfigsListResponse extends SessionConfigsListResponseGen {}
26445
+ declare namespace SessionConfigsListResponse {
26446
+ type Item = SessionConfigsListResponseGen['items'][number];
26447
+ }
26448
+ /** OpenAPI resource for `sessionConfigs`. */
26449
+ declare class SessionConfigs {
26450
+ #private;
26451
+ constructor(client: Composio);
26452
+ retrieve(sessionConfigID: string, options?: RequestOptions): APIPromise<SessionConfigsRetrieveResponse>;
26453
+ list(query?: SessionConfigsListParams | null | undefined, options?: RequestOptions): APIPromise<SessionConfigsListResponse>;
26454
+ }
26455
+ declare namespace SessionConfigs {
26456
+ export { type SessionConfigsRetrieveResponse, type SessionConfigsListResponse, type SessionConfigsListParams };
26457
+ }
26458
+ //#endregion
26459
+ export { ProjectRetrieveResponse as $, Link as $n, SessionSearchParams as $r, McpCreateInstanceResponse as $t, Usage as A, RateLimitError as Ai, TriggersTypeListResponse as An, ToolRetrieveParams as Ar, Logs as At, ConsumerListConnectedToolkitsResponse as B, AuthConfigListResponse as Bn, SessionCreateResponse as Br, Cli as Bt, SessionRetrieveInfoResponse as C, AuthenticationError as Ci, TriggerInstanceUpsertResponse as Cn, ToolGetInputParams as Cr, UsageRetrieveParams$1 as Ct, Clanker as D, InternalServerError as Di, ManageUpdateParams as Dn, ToolProxyParams as Dr, LogCreateToolExecutionParams as Dt, OrgListResponse as E, ConflictError as Ei, ManageDeleteResponse as En, ToolListResponse$1 as Er, UsageRetrieveSummaryResponse$1 as Et, Project$1 as F, AuthConfigCreateParams as Fn, SessionAttachParams as Fr, Tools as Ft, Project$3 as G, AuthConfigUpdateStatusResponse as Gn, SessionExecuteResponse as Gr, CliGetSessionParams as Gt, ProjectResolveParams as H, AuthConfigUpdateParams as Hn, SessionExecuteMetaParams as Hr, CliCreateCodactFailureResponse as Ht, ProjectListParams as I, AuthConfigCreateResponse as In, SessionAttachResponse as Ir, TriggerListParams as It, ProjectDeleteParams as J, ToolkitListResponse as Jn, SessionPatchParams as Jr, RealtimeAuthParams as Jt, ProjectCreateParams as K, AuthConfigs as Kn, SessionLinkParams as Kr, CliGetSessionResponse as Kt, ProjectListResponse as L, AuthConfigDeleteParams as Ln, SessionConfigHistoryParams as Lr, TriggerListResponse as Lt, UsageRetrieveResponse as M, APIPromise as Mi, TriggersTypeRetrieveParams as Mn, Tools$1 as Mr, ToolListParams as Mt, UsageRetrieveSummaryParams as N, TriggersTypeRetrieveResponse as Nn, ToolRouter as Nr, ToolListResponse as Nt, ClankerCreateClaimParams as O, NotFoundError as Oi, ManageUpdateResponse as On, ToolProxyResponse as Or, LogCreateToolExecutionResponse as Ot, UsageRetrieveSummaryResponse as P, TriggersTypes as Pn, Session$1 as Pr, ToolRetrieveResponse as Pt, ProjectRegenerateAPIKeyResponse as Q, Toolkits as Qn, SessionRetrieveResponse as Qr, McpCreateInstanceParams as Qt, Consumer as R, AuthConfigDeleteResponse as Rn, SessionConfigHistoryResponse as Rr, TriggerRetrieveResponse as Rt, Session as S, APIUserAbortError as Si, TriggerInstanceUpsertParams as Sn, ToolExecuteResponse as Sr, Usage$1 as St, OrgListParams as T, ComposioError as Ti, Manage as Tn, ToolListParams$1 as Tr, UsageRetrieveSummaryParams$1 as Tt, ProjectResolveResponse as U, AuthConfigUpdateResponse as Un, SessionExecuteMetaResponse as Ur, CliCreateSessionParams as Ut, Project$2 as V, AuthConfigRetrieveResponse as Vn, SessionDeleteResponse as Vr, CliCreateCodactFailureParams as Vt, Owner as W, AuthConfigUpdateStatusParams as Wn, SessionExecuteParams as Wr, CliCreateSessionResponse as Wt, ProjectListParams$1 as X, ToolkitRetrieveParams as Xn, SessionProxyExecuteParams as Xr, RealtimeCredentialsResponse as Xt, ProjectDeleteResponse as Y, ToolkitRetrieveCategoriesResponse as Yn, SessionPatchResponse as Yr, RealtimeAuthResponse as Yt, ProjectListResponse$1 as Z, ToolkitRetrieveResponse as Zn, SessionProxyExecuteResponse as Zr, Mcp as Zt, CustomUpsertResponse as _, createFetchTransport as _i, Custom$1 as _n, FileCreatePresignedURLResponse as _r, WebhookSubscriptionRotateSecretResponse as _t, ClientOptions as a, FileCreateDownloadURLParams as ai, McpListInstancesParams as an, ConnectedAccountDeleteResponse as ar, WebhookEndpointReplaceResponse as at, ApiKeyRevocationCreateResponse as b, APIError as bi, TriggerInstanceListActiveParams as bn, Files as br, WebhookSubscriptions as bt, LogLevel as c, FileCreateUploadURLResponse as ci, McpListResponse as cn, ConnectedAccountPatchParams as cr, WebhookEndpointUpdateResponse as ct, KeyringListTransferKeysResponse as d, FileListParams$1 as di, McpRetrieveResponse as dn, ConnectedAccountRefreshResponse as dr, WebhookSubscriptionCreateResponse as dt, SessionSearchResponse as ei, McpCreateParams as en, LinkCreateParams as er, WebhookEndpointCreateParams as et, Custom as f, FileListResponse$1 as fi, McpUpdateParams as fn, ConnectedAccountRetrieveResponse as fr, WebhookSubscriptionDeleteResponse as ft, CustomUpsertParams as g, Transport as gi, GenerateURLResponse as gn, FileCreatePresignedURLParams as gr, WebhookSubscriptionRetrieveResponse as gt, CustomSyncResponse as h, FetchTransportDefaults as hi, GenerateURLParams as hn, ConnectedAccounts as hr, WebhookSubscriptionListResponse as ht, SessionConfigsRetrieveResponse as i, SessionToolsResponse as ii, McpDeleteResponse as in, ConnectedAccountDeleteParams as ir, WebhookEndpointReplaceParams as it, UsageRetrieveParams as j, UnprocessableEntityError as ji, TriggersTypeRetrieveEnumResponse as jn, ToolRetrieveResponse$1 as jr, ToolListFieldsResponse as jt, ClankerCreateClaimResponse as k, PermissionDeniedError as ki, TriggersTypeListParams as kn, ToolRetrieveEnumResponse as kr, LogRetrieveToolExecutionResponse as kt, Logger as l, FileDeleteParams as li, McpRetrieveAppParams as ln, ConnectedAccountPatchResponse as lr, WebhookEndpoints as lt, CustomSyncParams as m, RequestOptions as mi, Generate as mn, ConnectedAccountUpdateStatusResponse as mr, WebhookSubscriptionListParams as mt, SessionConfigsListParams as n, SessionToolkitsResponse as ni, McpDeleteInstanceParams as nn, ConnectedAccountCreateParams as nr, WebhookEndpointListParams as nt, Composio as o, FileCreateDownloadURLResponse as oi, McpListInstancesResponse as on, ConnectedAccountListParams as or, WebhookEndpointRetrieveResponse as ot, CustomDeleteToolkitResponse as p, Files$1 as pi, McpUpdateResponse as pn, ConnectedAccountUpdateStatusParams as pr, WebhookSubscriptionListEventTypesResponse as pt, ProjectCreateResponse as q, ToolkitListParams as qn, SessionLinkResponse as qr, Realtime as qt, SessionConfigsListResponse as r, SessionToolsParams as ri, McpDeleteInstanceResponse as rn, ConnectedAccountCreateResponse as rr, WebhookEndpointListResponse as rt, EnvironmentMap as s, FileCreateUploadURLParams as si, McpListParams as sn, ConnectedAccountListResponse as sr, WebhookEndpointUpdateParams as st, SessionConfigs as t, SessionToolkitsParams as ti, McpCreateResponse as tn, LinkCreateResponse as tr, WebhookEndpointCreateResponse as tt, Keyring as u, FileDeleteResponse as ui, McpRetrieveAppResponse as un, ConnectedAccountRefreshParams as ur, WebhookSubscriptionCreateParams as ut, ApiKeyRevocation as v, APIConnectionError as vi, CustomCreateParams as vn, FileListParams as vr, WebhookSubscriptionUpdateParams as vt, Org as w, BadRequestError as wi, TriggerInstances as wn, ToolGetInputResponse as wr, UsageRetrieveResponse$1 as wt, Auth as x, APIErrorBody as xi, TriggerInstanceListActiveResponse as xn, ToolExecuteParams as xr, Project$4 as xt, ApiKeyRevocationCreateParams as y, APIConnectionTimeoutError as yi, CustomCreateResponse as yn, FileListResponse as yr, WebhookSubscriptionUpdateResponse as yt, ConsumerListConnectedToolkitsParams as z, AuthConfigListParams as zn, SessionCreateParams as zr, Triggers as zt };