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

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 (170) hide show
  1. package/README.md +36 -14
  2. package/dist/{api-key-revocation-JkA4sOGH.mjs → api-key-revocation-DMCgun-A.mjs} +1 -1
  3. package/dist/{auth-B_K-wdMm.mjs → auth-D-U9Aq8C.mjs} +1 -1
  4. package/dist/{auth-configs-RAgN782Z.mjs → auth-configs-DAG5mMeH.mjs} +1 -1
  5. package/dist/{clanker-Pgyyh95r.mjs → clanker-Yomp86hJ.mjs} +1 -1
  6. package/dist/{cli-Ca5bRiEN.mjs → cli-zihiw3aI.mjs} +2 -2
  7. package/dist/{connected-accounts-D6NTwvbi.mjs → connected-accounts-Bd4AbWoH.mjs} +1 -1
  8. package/dist/{consumer-BP4OyJS0.mjs → consumer-Bk0cyIii.mjs} +2 -2
  9. package/dist/{custom-DA3ABHnI.mjs → custom-Ce8G2c11.mjs} +1 -1
  10. package/dist/{custom-BBr7KbCv.mjs → custom-DWT3cCog.mjs} +1 -1
  11. package/dist/effect.d.mts +16 -60
  12. package/dist/effect.mjs +146 -182
  13. package/dist/{files-CeBs4ZE1.mjs → files-DRp_J4zH.mjs} +1 -1
  14. package/dist/{files-DLRmNLRD.mjs → files-ZxEVlE_y.mjs} +1 -1
  15. package/dist/{generate-16uLPwUU.mjs → generate-Du9XUrlx.mjs} +1 -1
  16. package/dist/{generated-deprecated-inputs-zx6ml908.mjs → generated-deprecated-inputs-Dy_lBver.mjs} +1 -1
  17. package/dist/{generated-operations-DKgGT6Dg.mjs → generated-operations-Dv7pAKDT.mjs} +150 -250
  18. package/dist/index.d.mts +3 -3
  19. package/dist/index.mjs +60 -140
  20. package/dist/{keyring-Q8GSieAv.mjs → keyring-CgOIS5x7.mjs} +1 -1
  21. package/dist/{link-D4dY_eaN.mjs → link-CW1ts4pm.mjs} +1 -1
  22. package/dist/{logs-Dc63Ju74.mjs → logs-DFdH5DoT.mjs} +3 -3
  23. package/dist/{manage-ByF6b3OD.mjs → manage-CeB03gO8.mjs} +1 -1
  24. package/dist/{mcp-Cw7-Mtkm.mjs → mcp-DNRMWWum.mjs} +3 -3
  25. package/dist/{org-RRUxKfRw.mjs → org-HuYaKgVf.mjs} +6 -6
  26. package/dist/{owner-GZX-sp-h.mjs → owner-I9fXmIO_.mjs} +1 -1
  27. package/dist/{project-Cj9ULE0a.mjs → project-CxQ2H8UB.mjs} +1 -1
  28. package/dist/{project-C_YZ-eLI.mjs → project-DcV01umC.mjs} +1 -1
  29. package/dist/{project-BsKmk9T7.mjs → project-Dwblmpw8.mjs} +1 -1
  30. package/dist/{project-C1uq7bV_.mjs → project-FuP5k9R1.mjs} +1 -1
  31. package/dist/{realtime-W-lJ0Vcs.mjs → realtime-F_sGuTd8.mjs} +1 -1
  32. package/dist/resources/api-key-revocation.d.mts +1 -1
  33. package/dist/resources/api-key-revocation.mjs +1 -1
  34. package/dist/resources/auth/auth.d.mts +1 -1
  35. package/dist/resources/auth/auth.mjs +1 -1
  36. package/dist/resources/auth/index.d.mts +1 -1
  37. package/dist/resources/auth/index.mjs +2 -2
  38. package/dist/resources/auth/session.d.mts +1 -1
  39. package/dist/resources/auth/session.mjs +1 -1
  40. package/dist/resources/auth-configs.d.mts +1 -1
  41. package/dist/resources/auth-configs.mjs +1 -1
  42. package/dist/resources/auth.d.mts +1 -1
  43. package/dist/resources/auth.mjs +2 -2
  44. package/dist/resources/cli/cli.d.mts +1 -1
  45. package/dist/resources/cli/cli.mjs +1 -1
  46. package/dist/resources/cli/index.d.mts +1 -1
  47. package/dist/resources/cli/index.mjs +2 -2
  48. package/dist/resources/cli/realtime.d.mts +1 -1
  49. package/dist/resources/cli/realtime.mjs +1 -1
  50. package/dist/resources/cli.d.mts +1 -1
  51. package/dist/resources/cli.mjs +2 -2
  52. package/dist/resources/connected-accounts.d.mts +1 -1
  53. package/dist/resources/connected-accounts.mjs +1 -1
  54. package/dist/resources/custom.d.mts +1 -1
  55. package/dist/resources/custom.mjs +1 -1
  56. package/dist/resources/files.d.mts +1 -1
  57. package/dist/resources/files.mjs +1 -1
  58. package/dist/resources/index.d.mts +1 -1
  59. package/dist/resources/index.mjs +13 -13
  60. package/dist/resources/keyring.d.mts +1 -1
  61. package/dist/resources/keyring.mjs +1 -1
  62. package/dist/resources/link.d.mts +1 -1
  63. package/dist/resources/link.mjs +1 -1
  64. package/dist/resources/logs/index.d.mts +1 -1
  65. package/dist/resources/logs/index.mjs +3 -3
  66. package/dist/resources/logs/logs.d.mts +1 -1
  67. package/dist/resources/logs/logs.mjs +1 -1
  68. package/dist/resources/logs/tools.d.mts +1 -1
  69. package/dist/resources/logs/tools.mjs +1 -1
  70. package/dist/resources/logs/triggers.d.mts +1 -1
  71. package/dist/resources/logs/triggers.mjs +1 -1
  72. package/dist/resources/logs.d.mts +1 -1
  73. package/dist/resources/logs.mjs +3 -3
  74. package/dist/resources/mcp/custom.d.mts +1 -1
  75. package/dist/resources/mcp/custom.mjs +1 -1
  76. package/dist/resources/mcp/generate.d.mts +1 -1
  77. package/dist/resources/mcp/generate.mjs +1 -1
  78. package/dist/resources/mcp/index.d.mts +1 -1
  79. package/dist/resources/mcp/index.mjs +3 -3
  80. package/dist/resources/mcp/mcp.d.mts +1 -1
  81. package/dist/resources/mcp/mcp.mjs +1 -1
  82. package/dist/resources/mcp.d.mts +1 -1
  83. package/dist/resources/mcp.mjs +3 -3
  84. package/dist/resources/org/clanker.d.mts +1 -1
  85. package/dist/resources/org/clanker.mjs +1 -1
  86. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  87. package/dist/resources/org/consumer/consumer.mjs +1 -1
  88. package/dist/resources/org/consumer/index.d.mts +1 -1
  89. package/dist/resources/org/consumer/index.mjs +2 -2
  90. package/dist/resources/org/consumer/project.d.mts +1 -1
  91. package/dist/resources/org/consumer/project.mjs +1 -1
  92. package/dist/resources/org/consumer.d.mts +1 -1
  93. package/dist/resources/org/consumer.mjs +2 -2
  94. package/dist/resources/org/index.d.mts +1 -1
  95. package/dist/resources/org/index.mjs +6 -6
  96. package/dist/resources/org/org.d.mts +1 -1
  97. package/dist/resources/org/org.mjs +1 -1
  98. package/dist/resources/org/owner/index.d.mts +1 -1
  99. package/dist/resources/org/owner/index.mjs +2 -2
  100. package/dist/resources/org/owner/owner.d.mts +1 -1
  101. package/dist/resources/org/owner/owner.mjs +1 -1
  102. package/dist/resources/org/owner/project.d.mts +1 -1
  103. package/dist/resources/org/owner/project.mjs +1 -1
  104. package/dist/resources/org/owner.d.mts +1 -1
  105. package/dist/resources/org/owner.mjs +2 -2
  106. package/dist/resources/org/project.d.mts +1 -1
  107. package/dist/resources/org/project.mjs +1 -1
  108. package/dist/resources/org/usage.d.mts +1 -1
  109. package/dist/resources/org/usage.mjs +1 -1
  110. package/dist/resources/org.d.mts +1 -1
  111. package/dist/resources/org.mjs +6 -6
  112. package/dist/resources/project/index.d.mts +1 -1
  113. package/dist/resources/project/index.mjs +1 -1
  114. package/dist/resources/project/project.d.mts +1 -1
  115. package/dist/resources/project/project.mjs +1 -1
  116. package/dist/resources/project/usage.d.mts +1 -1
  117. package/dist/resources/project/usage.mjs +1 -1
  118. package/dist/resources/project.d.mts +1 -1
  119. package/dist/resources/project.mjs +1 -1
  120. package/dist/resources/session-configs.d.mts +1 -1
  121. package/dist/resources/session-configs.mjs +1 -1
  122. package/dist/resources/tool-router/index.d.mts +1 -1
  123. package/dist/resources/tool-router/index.mjs +2 -2
  124. package/dist/resources/tool-router/session/files.d.mts +1 -1
  125. package/dist/resources/tool-router/session/files.mjs +1 -1
  126. package/dist/resources/tool-router/session/index.d.mts +1 -1
  127. package/dist/resources/tool-router/session/index.mjs +2 -2
  128. package/dist/resources/tool-router/session/session.d.mts +1 -1
  129. package/dist/resources/tool-router/session/session.mjs +1 -1
  130. package/dist/resources/tool-router/session.d.mts +1 -1
  131. package/dist/resources/tool-router/session.mjs +2 -2
  132. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  133. package/dist/resources/tool-router/tool-router.mjs +1 -1
  134. package/dist/resources/tool-router.d.mts +1 -1
  135. package/dist/resources/tool-router.mjs +2 -2
  136. package/dist/resources/toolkits.d.mts +1 -1
  137. package/dist/resources/toolkits.mjs +1 -1
  138. package/dist/resources/tools.d.mts +1 -1
  139. package/dist/resources/tools.mjs +1 -1
  140. package/dist/resources/trigger-instances/index.d.mts +1 -1
  141. package/dist/resources/trigger-instances/index.mjs +2 -2
  142. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  143. package/dist/resources/trigger-instances/manage.mjs +1 -1
  144. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  145. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  146. package/dist/resources/trigger-instances.d.mts +1 -1
  147. package/dist/resources/trigger-instances.mjs +2 -2
  148. package/dist/resources/triggers-types.d.mts +1 -1
  149. package/dist/resources/triggers-types.mjs +1 -1
  150. package/dist/resources/webhook-endpoints.d.mts +1 -1
  151. package/dist/resources/webhook-endpoints.mjs +1 -1
  152. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  153. package/dist/resources/webhook-subscriptions.mjs +1 -1
  154. package/dist/{session-BT5NJfbm.mjs → session-B-ifOjVv.mjs} +1 -1
  155. package/dist/{session-BmXeclWC.mjs → session-CpwJh7Hn.mjs} +2 -2
  156. package/dist/{session-configs-x3OA4CSe.d.mts → session-configs-BLy_O6bX.d.mts} +21 -101
  157. package/dist/{tool-router-DYPUf-fN.mjs → tool-router-jNsaldKV.mjs} +1 -1
  158. package/dist/{toolkits-DZOZDm-4.mjs → toolkits-DK4My9FW.mjs} +1 -1
  159. package/dist/{tools-C0GjPEpP.mjs → tools-DNkimllW.mjs} +1 -1
  160. package/dist/{tools-BDCRk80t.mjs → tools-Gun_2We6.mjs} +1 -1
  161. package/dist/{trigger-instances-J5frdgzO.mjs → trigger-instances-vvKswQSW.mjs} +2 -2
  162. package/dist/{triggers-CnvE7y0L.mjs → triggers-CfrGxKIo.mjs} +1 -1
  163. package/dist/{triggers-types-DLVCtuwC.mjs → triggers-types-DYW2Mr8z.mjs} +1 -1
  164. package/dist/{usage-DjQg9WIV.mjs → usage-YIBYNpVF.mjs} +1 -1
  165. package/dist/{usage-DPxuivP6.mjs → usage-vt9HmnNf.mjs} +1 -1
  166. package/dist/version-DB98yI2B.d.mts +4 -0
  167. package/dist/{webhook-endpoints-BrSjXOf0.mjs → webhook-endpoints-HqLteVW6.mjs} +1 -1
  168. package/dist/{webhook-subscriptions-HT1acmwH.mjs → webhook-subscriptions-CXhNXIOM.mjs} +1 -1
  169. package/package.json +2 -2
  170. package/dist/version-DEAhxVwC.d.mts +0 -4
package/dist/index.mjs CHANGED
@@ -1,30 +1,30 @@
1
1
  import { a as AuthenticationError, c as ConflictError, d as PermissionDeniedError, f as RateLimitError, i as APIUserAbortError, l as InternalServerError, n as APIConnectionTimeoutError, o as BadRequestError, p as UnprocessableEntityError, r as APIError, s as ComposioError, t as APIConnectionError, u as NotFoundError } from "./error-Bw7_G2NZ.mjs";
2
- import { A as Auth, B as unusableKeyError, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, H as assertCredentialTransport, I as isUsableKey, L as resolveAuth, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, W as parseHTTPURL, b as createFetchTransport, j as assertNoRemovedCredentialOptions, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as VERSION, x as assertNoReservedHeaders } from "./generated-operations-DKgGT6Dg.mjs";
3
- import { t as ApiKeyRevocation } from "./api-key-revocation-JkA4sOGH.mjs";
4
- import { t as AuthConfigs } from "./auth-configs-RAgN782Z.mjs";
5
- import { t as Auth$1 } from "./auth-B_K-wdMm.mjs";
6
- import { t as Cli } from "./cli-Ca5bRiEN.mjs";
7
- import { t as ConnectedAccounts } from "./connected-accounts-D6NTwvbi.mjs";
8
- import { t as Custom } from "./custom-DA3ABHnI.mjs";
9
- import { t as Files$1 } from "./files-DLRmNLRD.mjs";
10
- import { t as Keyring } from "./keyring-Q8GSieAv.mjs";
11
- import { t as Link } from "./link-D4dY_eaN.mjs";
12
- import { t as Logs } from "./logs-Dc63Ju74.mjs";
13
- import { t as Mcp } from "./mcp-Cw7-Mtkm.mjs";
2
+ import { A as Auth, C as resolveIdentity, D as inspectDeprecatedInputs, E as mergeHeaders, L as resolveAuth, O as inspectDeprecation, P as authFromCredentials, R as resolveScope, S as reservedHeaders, U as parseHTTPURL, V as assertCredentialTransport, b as createFetchTransport, j as assertNoRemovedCredentialOptions, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as VERSION, x as assertNoReservedHeaders } from "./generated-operations-Dv7pAKDT.mjs";
3
+ import { t as ApiKeyRevocation } from "./api-key-revocation-DMCgun-A.mjs";
4
+ import { t as AuthConfigs } from "./auth-configs-DAG5mMeH.mjs";
5
+ import { t as Auth$1 } from "./auth-D-U9Aq8C.mjs";
6
+ import { t as Cli } from "./cli-zihiw3aI.mjs";
7
+ import { t as ConnectedAccounts } from "./connected-accounts-Bd4AbWoH.mjs";
8
+ import { t as Custom } from "./custom-Ce8G2c11.mjs";
9
+ import { t as Files$1 } from "./files-ZxEVlE_y.mjs";
10
+ import { t as Keyring } from "./keyring-CgOIS5x7.mjs";
11
+ import { t as Link } from "./link-CW1ts4pm.mjs";
12
+ import { t as Logs } from "./logs-DFdH5DoT.mjs";
13
+ import { t as Mcp } from "./mcp-DNRMWWum.mjs";
14
14
  import { t as Migration } from "./migration-CBhnoN-Y.mjs";
15
- import { t as Org } from "./org-RRUxKfRw.mjs";
16
- import { t as Project } from "./project-Cj9ULE0a.mjs";
15
+ import { t as Org } from "./org-HuYaKgVf.mjs";
16
+ import { t as Project } from "./project-CxQ2H8UB.mjs";
17
17
  import { SessionConfigs } from "./resources/session-configs.mjs";
18
- import { t as Files } from "./files-CeBs4ZE1.mjs";
19
- import { t as Session } from "./session-BmXeclWC.mjs";
20
- import { t as ToolRouter } from "./tool-router-DYPUf-fN.mjs";
21
- import { t as Toolkits } from "./toolkits-DZOZDm-4.mjs";
22
- import { t as Tools } from "./tools-BDCRk80t.mjs";
23
- import { t as TriggerInstances } from "./trigger-instances-J5frdgzO.mjs";
24
- import { t as TriggersTypes } from "./triggers-types-DLVCtuwC.mjs";
25
- import { t as WebhookEndpoints } from "./webhook-endpoints-BrSjXOf0.mjs";
26
- import { t as WebhookSubscriptions } from "./webhook-subscriptions-HT1acmwH.mjs";
27
- import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-zx6ml908.mjs";
18
+ import { t as Files } from "./files-DRp_J4zH.mjs";
19
+ import { t as Session } from "./session-CpwJh7Hn.mjs";
20
+ import { t as ToolRouter } from "./tool-router-jNsaldKV.mjs";
21
+ import { t as Toolkits } from "./toolkits-DK4My9FW.mjs";
22
+ import { t as Tools } from "./tools-Gun_2We6.mjs";
23
+ import { t as TriggerInstances } from "./trigger-instances-vvKswQSW.mjs";
24
+ import { t as TriggersTypes } from "./triggers-types-DYW2Mr8z.mjs";
25
+ import { t as WebhookEndpoints } from "./webhook-endpoints-HqLteVW6.mjs";
26
+ import { t as WebhookSubscriptions } from "./webhook-subscriptions-CXhNXIOM.mjs";
27
+ import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-Dy_lBver.mjs";
28
28
 
29
29
  //#region src/compat/generated-resource-wiring.ts
30
30
  const createClientResources = (client) => ({
@@ -54,11 +54,7 @@ const createClientResources = (client) => ({
54
54
 
55
55
  //#endregion
56
56
  //#region src/compat/client.ts
57
- const environments = {
58
- production: "https://backend.composio.dev",
59
- staging: "https://staging-backend.composio.dev",
60
- local: "http://localhost:9900"
61
- };
57
+ const DEFAULT_BASE_URL = "https://backend.composio.dev";
62
58
  /** A setting as `fromEnv` reads one: trimmed, and absent when empty. */
63
59
  const setting = (environment, name) => environment[name]?.trim() || void 0;
64
60
  const parseCustomHeaders = (raw) => {
@@ -87,28 +83,23 @@ const LOG_LEVELS = {
87
83
  * the default rather than silencing the client or making it shout.
88
84
  */
89
85
  const isLogLevel = (value) => value !== void 0 && Object.hasOwn(LOG_LEVELS, value);
90
- const isCompatCredential = (value) => typeof value === "string" || typeof value === "function";
91
- const checkCompatKey = (credential, option) => {
92
- if (typeof credential === "string" && !isUsableKey("ApiKeyAuth", credential)) throw unusableKeyError(`\`${option}\``);
93
- };
94
- const resolveClientOptions = (input) => {
95
- const baseURL = input.baseURL ?? null;
96
- if (baseURL && input.environment) throw new ComposioError("Ambiguous URL; The `baseURL` option and the `environment` option are given. If you want to use the environment you must pass baseURL: null");
97
- return {
98
- ...input,
99
- allowInsecureHTTP: input.allowInsecureHTTP ?? false,
100
- allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
101
- baseURL,
102
- environment: input.environment ?? "production",
103
- logLevel: input.logLevel ?? "warn"
104
- };
86
+ const COMPAT_CREDENTIAL = {
87
+ is: (value) => typeof value === "string" || typeof value === "function",
88
+ keyOf: (credential) => typeof credential === "string" ? credential : void 0
105
89
  };
90
+ const resolveClientOptions = (input) => ({
91
+ ...input,
92
+ allowInsecureHTTP: input.allowInsecureHTTP ?? false,
93
+ allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
94
+ baseURL: input.baseURL || DEFAULT_BASE_URL,
95
+ logLevel: isLogLevel(input.logLevel) ? input.logLevel : "warn"
96
+ });
106
97
  var Composio = class Composio {
107
98
  baseURL;
108
99
  maxRetries;
109
100
  timeout;
110
- logger;
111
101
  logLevel;
102
+ #logger;
112
103
  #transport;
113
104
  #options;
114
105
  #identity;
@@ -116,26 +107,19 @@ var Composio = class Composio {
116
107
  #scope;
117
108
  #scopeHeaders;
118
109
  #reserved;
110
+ #kernel;
119
111
  /**
120
- * The (operation, notice) pairs, and separately the (operation, deprecated
121
- * input set) pairs, this instance has already warned about — one Set shared
122
- * by both triggers under distinct key prefixes (`inspectDeprecation` vs
123
- * `inspectDeprecatedInputs`), so a deprecated endpoint or a deprecated
124
- * parameter called in a loop announces itself once — while a *revised*
125
- * notice from that same endpoint, say once a `Sunset` date is committed,
126
- * still gets through.
127
- *
128
- * Per client *lineage*, not per process: a client built with `new Composio()`
129
- * starts empty, and `withOptions()` shares this exact Set with the client it
130
- * returns (see below). Not reassigned anywhere else — the mutability exists
131
- * only so a derived client can join its parent's record.
112
+ * The (operation, notice) pairs this client lineage has already warned
113
+ * about, under distinct key prefixes for response notices and deprecated
114
+ * inputs. Reassigned only by `withOptions()`, so a derived client joins its
115
+ * parent's record.
132
116
  */
133
117
  #deprecationSeen = /* @__PURE__ */ new Set();
134
118
  constructor(input) {
135
119
  if (typeof input !== "object" || input === null) throw new ComposioError("`new Composio(options)` needs an options object with `auth`.");
136
120
  assertNoRemovedCredentialOptions(input);
137
121
  const options = resolveClientOptions(input);
138
- this.#auth = resolveAuth(options.auth, isCompatCredential, checkCompatKey);
122
+ this.#auth = resolveAuth(options.auth, COMPAT_CREDENTIAL);
139
123
  this.#scopeHeaders = resolveScope(options.scope);
140
124
  this.#scope = options.scope === void 0 ? void 0 : Object.freeze({ ...options.scope });
141
125
  this.#identity = resolveIdentity(options.identity);
@@ -144,110 +128,59 @@ var Composio = class Composio {
144
128
  scope: this.#scopeHeaders !== void 0
145
129
  });
146
130
  assertNoReservedHeaders(options.defaultHeaders, this.#reserved, "defaultHeaders");
147
- this.baseURL = options.baseURL || environments[options.environment];
131
+ this.baseURL = options.baseURL;
148
132
  this.timeout = options.timeout ?? Composio.DEFAULT_TIMEOUT;
149
- this.logger = options.logger ?? console;
133
+ this.#logger = options.logger ?? console;
150
134
  this.logLevel = options.logLevel;
151
135
  this.maxRetries = options.maxRetries ?? 2;
152
136
  this.#transport = options.transport ?? createFetchTransport();
153
137
  options.allowedHTTPOrigin = options.allowInsecureHTTP ? options.allowedHTTPOrigin ?? parseHTTPURL(this.baseURL)?.origin ?? null : null;
154
138
  this.#options = options;
155
139
  assertCredentialTransport(this.baseURL, this.#auth.mode !== "none", options.allowedHTTPOrigin);
140
+ this.#kernel = this.#kernelConfig();
156
141
  Object.assign(this, createClientResources(this));
157
142
  }
158
143
  /**
159
- * Constructs a client from an environment mapping the caller passes in, such
160
- * as `process.env`. It reads these and nothing else:
161
- *
162
- * - `COMPOSIO_API_KEY`, `COMPOSIO_USER_API_KEY`, `COMPOSIO_ORG_API_KEY`: one
163
- * set is that fixed mode, several is `Auth.auto`, none is `Auth.none()`;
164
- * - `COMPOSIO_BASE_URL`, `COMPOSIO_ALLOW_INSECURE_HTTP=1`,
165
- * `COMPOSIO_LOG_LEVEL`, and `COMPOSIO_CUSTOM_HEADERS` (as `defaultHeaders`).
166
- *
167
- * `COMPOSIO_ORG_ID` and `COMPOSIO_PROJECT_ID` are not read: `scope` is always
168
- * an argument. An override replaces the whole field it names, so
169
- * `{ auth: Auth.none() }` means none whatever the mapping holds.
144
+ * Constructs a client from `environment` (such as `process.env`), the only
145
+ * place a client reads `COMPOSIO_*`. Each override replaces the field it names.
170
146
  */
171
147
  static fromEnv(environment, overrides = {}) {
172
148
  const read = (name) => setting(environment, name);
173
- const customHeaders = read("COMPOSIO_CUSTOM_HEADERS");
174
- const baseURL = read("COMPOSIO_BASE_URL");
175
- const allowInsecureHTTP = read("COMPOSIO_ALLOW_INSECURE_HTTP") === "1";
176
- const logLevel = read("COMPOSIO_LOG_LEVEL");
177
149
  const mapped = {
178
150
  auth: authFromCredentials({
179
151
  project: read("COMPOSIO_API_KEY"),
180
152
  user: read("COMPOSIO_USER_API_KEY"),
181
153
  organization: read("COMPOSIO_ORG_API_KEY")
182
154
  }),
183
- ...baseURL !== void 0 && overrides.environment === void 0 ? { baseURL } : {},
184
- ...allowInsecureHTTP ? { allowInsecureHTTP } : {},
185
- ...logLevel !== void 0 ? { logLevel } : {},
186
- ...customHeaders !== void 0 ? { defaultHeaders: parseCustomHeaders(customHeaders) } : {}
155
+ allowInsecureHTTP: read("COMPOSIO_ALLOW_INSECURE_HTTP") === "1",
156
+ baseURL: read("COMPOSIO_BASE_URL")
187
157
  };
158
+ const logLevel = read("COMPOSIO_LOG_LEVEL");
159
+ if (logLevel !== void 0) mapped.logLevel = logLevel;
160
+ const customHeaders = read("COMPOSIO_CUSTOM_HEADERS");
161
+ if (customHeaders !== void 0) mapped.defaultHeaders = parseCustomHeaders(customHeaders);
188
162
  return new this({
189
163
  ...mapped,
190
164
  ...overrides
191
165
  });
192
166
  }
193
- /** How this client authenticates: `'none'`, `'project'`, `'user'`, `'organization'` or `'auto'`. */
194
167
  get authMode() {
195
168
  return this.#auth.mode;
196
169
  }
197
- /** The organization and project this client addresses, or `undefined`. */
198
170
  get scope() {
199
171
  return this.#scope;
200
172
  }
201
- /**
202
- * The project key `auth` holds, when it is a string; `null` otherwise.
203
- * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
204
- */
205
- get apiKey() {
206
- return this.#heldKey("ApiKeyAuth");
207
- }
208
- /**
209
- * The user key `auth` holds, when it is a string; `null` otherwise.
210
- * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
211
- */
212
- get userApiKey() {
213
- return this.#heldKey("UserApiKeyAuth");
214
- }
215
- /**
216
- * The organization key `auth` holds, when it is a string; `null` otherwise.
217
- * @deprecated Read-only since 2.0.0-rc.18 and removed in rc.19; keep your own copy of the key.
218
- */
219
- get orgApiKey() {
220
- return this.#heldKey("OrgApiKeyAuth");
221
- }
222
- #heldKey(scheme) {
223
- const credential = this.#auth.credentials[scheme];
224
- return typeof credential === "string" ? credential : null;
225
- }
226
- /**
227
- * Returns a new client from this one's options with `options` merged over
228
- * them, key by key. Every construction check runs again on the result:
229
- * `auth` against the origin, the reserved headers against `auth`, `scope`
230
- * and `identity`, and `allowInsecureHTTP` against a changed `baseURL`.
231
- * `defaultHeaders` replaces the map rather than merging into it, and
232
- * `{ scope: undefined }` removes the scope.
233
- */
173
+ /** A new client with `options` merged over this one's, key by key, validated as a constructor call is. */
234
174
  withOptions(options) {
235
175
  const transport = Object.hasOwn(options, "transport") ? options.transport : this.#transport;
236
176
  const allowedHTTPOrigin = options.allowInsecureHTTP === true ? void 0 : this.#options.allowedHTTPOrigin;
237
- const derivedOptions = {
177
+ const derived = {
238
178
  ...this.#options,
239
- environment: options.environment ? options.environment : void 0,
240
- baseURL: options.environment ? void 0 : this.baseURL,
241
- maxRetries: this.maxRetries,
242
- timeout: this.timeout,
243
- logger: this.logger,
244
- logLevel: this.logLevel,
245
- scope: this.#scope,
246
179
  ...options,
247
180
  allowedHTTPOrigin,
248
181
  transport
249
182
  };
250
- const client = new this.constructor(derivedOptions);
183
+ const client = new this.constructor(derived);
251
184
  client.#deprecationSeen = this.#deprecationSeen;
252
185
  return client;
253
186
  }
@@ -274,7 +207,7 @@ var Composio = class Composio {
274
207
  });
275
208
  }
276
209
  request(options) {
277
- return new APIPromise(makeRequest(this.#kernelConfig(), options));
210
+ return new APIPromise(makeRequest(this.#kernel, options));
278
211
  }
279
212
  #onKernelLog = (level, message, metadata) => {
280
213
  this.#emitLog(level, message, metadata);
@@ -307,8 +240,7 @@ var Composio = class Composio {
307
240
  });
308
241
  };
309
242
  #kernelConfig() {
310
- const configuredLogLevel = isLogLevel(this.logLevel) ? this.logLevel : "warn";
311
- const lifecycleLoggingEnabled = LOG_LEVELS[configuredLogLevel] >= LOG_LEVELS.info;
243
+ const lifecycleLoggingEnabled = LOG_LEVELS[this.logLevel] >= LOG_LEVELS.info;
312
244
  return {
313
245
  baseURL: this.baseURL,
314
246
  auth: this.#auth,
@@ -327,22 +259,10 @@ var Composio = class Composio {
327
259
  onRequest: this.#onKernelRequest
328
260
  };
329
261
  }
330
- /**
331
- * Writes one record through the configured `logger`, gated on `logLevel`.
332
- *
333
- * A private method by construction: emitting is the client's own business
334
- * and the public surface is pinned against the Stainless client, which
335
- * exposes no such method. The logger is caller-supplied, so a missing method
336
- * or a throwing one is treated as no logger at all — the same rule the
337
- * kernel applies to its advisory observer callbacks.
338
- */
339
262
  #emitLog(level, message, ...details) {
340
- const configured = isLogLevel(this.logLevel) ? this.logLevel : "warn";
341
- if (LOG_LEVELS[configured] < LOG_LEVELS[level]) return;
263
+ if (LOG_LEVELS[this.logLevel] < LOG_LEVELS[level]) return;
342
264
  try {
343
- const sink = this.logger[level];
344
- if (typeof sink !== "function") return;
345
- sink.call(this.logger, message, ...details);
265
+ this.#logger[level](message, ...details);
346
266
  } catch {}
347
267
  }
348
268
  static Composio = this;
@@ -1,4 +1,4 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/keyring.ts
4
4
  const OP_LIST_TRANSFER_KEYS = generatedOperation("keyring.listTransferKeys");
@@ -1,4 +1,4 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/link.ts
4
4
  const OP_CREATE = generatedOperation("link.create");
@@ -1,6 +1,6 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
- import { t as Triggers } from "./triggers-CnvE7y0L.mjs";
3
- import { t as Tools } from "./tools-C0GjPEpP.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
+ import { t as Triggers } from "./triggers-CfrGxKIo.mjs";
3
+ import { t as Tools } from "./tools-DNkimllW.mjs";
4
4
 
5
5
  //#region src/compat/resources/logs/logs.ts
6
6
  const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
@@ -1,4 +1,4 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/trigger-instances/manage.ts
4
4
  const OP_UPDATE = generatedOperation("triggerInstances.manage.update");
@@ -1,6 +1,6 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
- import { t as Custom } from "./custom-BBr7KbCv.mjs";
3
- import { t as Generate } from "./generate-16uLPwUU.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
+ import { t as Custom } from "./custom-DWT3cCog.mjs";
3
+ import { t as Generate } from "./generate-Du9XUrlx.mjs";
4
4
 
5
5
  //#region src/compat/resources/mcp/mcp.ts
6
6
  const OP_CREATE = generatedOperation("mcp.create");
@@ -1,9 +1,9 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
2
- import { t as Clanker } from "./clanker-Pgyyh95r.mjs";
3
- import { t as Consumer } from "./consumer-BP4OyJS0.mjs";
4
- import { t as Owner } from "./owner-GZX-sp-h.mjs";
5
- import { t as Project } from "./project-C1uq7bV_.mjs";
6
- import { t as Usage } from "./usage-DPxuivP6.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
+ import { t as Clanker } from "./clanker-Yomp86hJ.mjs";
3
+ import { t as Consumer } from "./consumer-Bk0cyIii.mjs";
4
+ import { t as Owner } from "./owner-I9fXmIO_.mjs";
5
+ import { t as Project } from "./project-FuP5k9R1.mjs";
6
+ import { t as Usage } from "./usage-vt9HmnNf.mjs";
7
7
 
8
8
  //#region src/compat/resources/org/org.ts
9
9
  const OP_LIST = generatedOperation("org.list");
@@ -1,4 +1,4 @@
1
- import { t as Project } from "./project-BsKmk9T7.mjs";
1
+ import { t as Project } from "./project-Dwblmpw8.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/owner/owner.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as Config } from "./config-BLBbhLe1.mjs";
2
- import { t as Usage } from "./usage-DjQg9WIV.mjs";
2
+ import { t as Usage } from "./usage-YIBYNpVF.mjs";
3
3
 
4
4
  //#region src/compat/resources/project/project.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/consumer/project.ts
4
4
  const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
@@ -1,4 +1,4 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/owner/project.ts
4
4
  const OP_CREATE = generatedOperation("org.owner.project.create");
@@ -1,4 +1,4 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/project.ts
4
4
  const OP_LIST = generatedOperation("org.project.list");
@@ -1,4 +1,4 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-DKgGT6Dg.mjs";
1
+ import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
2
 
3
3
  //#region src/compat/resources/cli/realtime.ts
4
4
  const OP_AUTH = generatedOperation("cli.realtime.auth");
@@ -1,2 +1,2 @@
1
- import { b as ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-x3OA4CSe.mjs";
1
+ import { b as ApiKeyRevocationCreateResponse, v as ApiKeyRevocation, y as ApiKeyRevocationCreateParams } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
@@ -1,3 +1,3 @@
1
- import { t as ApiKeyRevocation } from "../api-key-revocation-JkA4sOGH.mjs";
1
+ import { t as ApiKeyRevocation } from "../api-key-revocation-DMCgun-A.mjs";
2
2
 
3
3
  export { ApiKeyRevocation };
@@ -1,2 +1,2 @@
1
- import { S as Auth } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { x as Auth } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Auth };
@@ -1,3 +1,3 @@
1
- import { t as Auth } from "../../auth-B_K-wdMm.mjs";
1
+ import { t as Auth } from "../../auth-D-U9Aq8C.mjs";
2
2
 
3
3
  export { Auth };
@@ -1,2 +1,2 @@
1
- import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { C as SessionRetrieveInfoResponse, S as Session, x as Auth } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Auth, Session, type SessionRetrieveInfoResponse };
@@ -1,4 +1,4 @@
1
- import { t as Session } from "../../session-BT5NJfbm.mjs";
2
- import { t as Auth } from "../../auth-B_K-wdMm.mjs";
1
+ import { t as Session } from "../../session-B-ifOjVv.mjs";
2
+ import { t as Auth } from "../../auth-D-U9Aq8C.mjs";
3
3
 
4
4
  export { Auth, Session };
@@ -1,2 +1,2 @@
1
- import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { C as SessionRetrieveInfoResponse, S as Session } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Session, type SessionRetrieveInfoResponse };
@@ -1,3 +1,3 @@
1
- import { t as Session } from "../../session-BT5NJfbm.mjs";
1
+ import { t as Session } from "../../session-B-ifOjVv.mjs";
2
2
 
3
3
  export { Session };
@@ -1,2 +1,2 @@
1
- import { Bn as AuthConfigListParams, Gn as AuthConfigUpdateStatusParams, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Kn as AuthConfigUpdateStatusResponse, Ln as AuthConfigCreateResponse, Rn as AuthConfigDeleteParams, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Wn as AuthConfigUpdateResponse, qn as AuthConfigs, zn as AuthConfigDeleteResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { Bn as AuthConfigListResponse, Fn as AuthConfigCreateParams, Gn as AuthConfigUpdateStatusResponse, Hn as AuthConfigUpdateParams, In as AuthConfigCreateResponse, Kn as AuthConfigs, Ln as AuthConfigDeleteParams, Rn as AuthConfigDeleteResponse, Un as AuthConfigUpdateResponse, Vn as AuthConfigRetrieveResponse, Wn as AuthConfigUpdateStatusParams, zn as AuthConfigListParams } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { type AuthConfigCreateParams, type AuthConfigCreateResponse, type AuthConfigDeleteParams, type AuthConfigDeleteResponse, type AuthConfigListParams, type AuthConfigListResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateParams, type AuthConfigUpdateResponse, type AuthConfigUpdateStatusParams, type AuthConfigUpdateStatusResponse, AuthConfigs };
@@ -1,3 +1,3 @@
1
- import { t as AuthConfigs } from "../auth-configs-RAgN782Z.mjs";
1
+ import { t as AuthConfigs } from "../auth-configs-DAG5mMeH.mjs";
2
2
 
3
3
  export { AuthConfigs };
@@ -1,2 +1,2 @@
1
- import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { C as SessionRetrieveInfoResponse, S as Session, x as Auth } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { Auth, Session, type SessionRetrieveInfoResponse };
@@ -1,5 +1,5 @@
1
- import { t as Session } from "../session-BT5NJfbm.mjs";
2
- import { t as Auth } from "../auth-B_K-wdMm.mjs";
1
+ import { t as Session } from "../session-B-ifOjVv.mjs";
2
+ import { t as Auth } from "../auth-D-U9Aq8C.mjs";
3
3
  import "./auth/index.mjs";
4
4
 
5
5
  export { Auth, Session };
@@ -1,2 +1,2 @@
1
- import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, qt as CliGetSessionResponse } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { Bt as Cli, Gt as CliGetSessionParams, Ht as CliCreateCodactFailureResponse, Kt as CliGetSessionResponse, Ut as CliCreateSessionParams, Vt as CliCreateCodactFailureParams, Wt as CliCreateSessionResponse } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
@@ -1,3 +1,3 @@
1
- import { t as Cli } from "../../cli-Ca5bRiEN.mjs";
1
+ import { t as Cli } from "../../cli-zihiw3aI.mjs";
2
2
 
3
3
  export { Cli };
@@ -1,2 +1,2 @@
1
- import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Jt as Realtime, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse, qt as CliGetSessionResponse } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { Bt as Cli, Gt as CliGetSessionParams, Ht as CliCreateCodactFailureResponse, Jt as RealtimeAuthParams, Kt as CliGetSessionResponse, Ut as CliCreateSessionParams, Vt as CliCreateCodactFailureParams, Wt as CliCreateSessionResponse, Xt as RealtimeCredentialsResponse, Yt as RealtimeAuthResponse, qt as Realtime } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Cli, type CliCreateCodactFailureParams, type CliCreateCodactFailureResponse, type CliCreateSessionParams, type CliCreateSessionResponse, type CliGetSessionParams, type CliGetSessionResponse, Realtime, type RealtimeAuthParams, type RealtimeAuthResponse, type RealtimeCredentialsResponse };
@@ -1,4 +1,4 @@
1
- import { t as Realtime } from "../../realtime-W-lJ0Vcs.mjs";
2
- import { t as Cli } from "../../cli-Ca5bRiEN.mjs";
1
+ import { t as Realtime } from "../../realtime-F_sGuTd8.mjs";
2
+ import { t as Cli } from "../../cli-zihiw3aI.mjs";
3
3
 
4
4
  export { Cli, Realtime };
@@ -1,2 +1,2 @@
1
- import { Jt as Realtime, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse } from "../../session-configs-x3OA4CSe.mjs";
1
+ import { Jt as RealtimeAuthParams, Xt as RealtimeCredentialsResponse, Yt as RealtimeAuthResponse, qt as Realtime } from "../../session-configs-BLy_O6bX.mjs";
2
2
  export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
@@ -1,3 +1,3 @@
1
- import { t as Realtime } from "../../realtime-W-lJ0Vcs.mjs";
1
+ import { t as Realtime } from "../../realtime-F_sGuTd8.mjs";
2
2
 
3
3
  export { Realtime };
@@ -1,2 +1,2 @@
1
- import { Gt as CliCreateSessionResponse, Ht as CliCreateCodactFailureParams, Jt as Realtime, Kt as CliGetSessionParams, Ut as CliCreateCodactFailureResponse, Vt as Cli, Wt as CliCreateSessionParams, Xt as RealtimeAuthResponse, Yt as RealtimeAuthParams, Zt as RealtimeCredentialsResponse, qt as CliGetSessionResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { Bt as Cli, Gt as CliGetSessionParams, Ht as CliCreateCodactFailureResponse, Jt as RealtimeAuthParams, Kt as CliGetSessionResponse, Ut as CliCreateSessionParams, Vt as CliCreateCodactFailureParams, Wt as CliCreateSessionResponse, Xt as RealtimeCredentialsResponse, Yt as RealtimeAuthResponse, qt as Realtime } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { Cli, type CliCreateCodactFailureParams, type CliCreateCodactFailureResponse, type CliCreateSessionParams, type CliCreateSessionResponse, type CliGetSessionParams, type CliGetSessionResponse, Realtime, type RealtimeAuthParams, type RealtimeAuthResponse, type RealtimeCredentialsResponse };
@@ -1,5 +1,5 @@
1
- import { t as Realtime } from "../realtime-W-lJ0Vcs.mjs";
2
- import { t as Cli } from "../cli-Ca5bRiEN.mjs";
1
+ import { t as Realtime } from "../realtime-F_sGuTd8.mjs";
2
+ import { t as Cli } from "../cli-zihiw3aI.mjs";
3
3
  import "./cli/index.mjs";
4
4
 
5
5
  export { Cli, Realtime };
@@ -1,2 +1,2 @@
1
- import { Er as ConnectedAccounts, Sr as ConnectedAccountRetrieveResponse, Tr as ConnectedAccountUpdateStatusResponse, _r as ConnectedAccountListResponse, br as ConnectedAccountRefreshParams, fr as ConnectedAccountCreateParams, gr as ConnectedAccountListParams, hr as ConnectedAccountDeleteResponse, mr as ConnectedAccountDeleteParams, pr as ConnectedAccountCreateResponse, vr as ConnectedAccountPatchParams, wr as ConnectedAccountUpdateStatusParams, xr as ConnectedAccountRefreshResponse, yr as ConnectedAccountPatchResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { Cr as ConnectedAccountUpdateStatusParams, Tr as ConnectedAccounts, _r as ConnectedAccountPatchParams, br as ConnectedAccountRefreshResponse, dr as ConnectedAccountCreateParams, fr as ConnectedAccountCreateResponse, gr as ConnectedAccountListResponse, hr as ConnectedAccountListParams, mr as ConnectedAccountDeleteResponse, pr as ConnectedAccountDeleteParams, vr as ConnectedAccountPatchResponse, wr as ConnectedAccountUpdateStatusResponse, xr as ConnectedAccountRetrieveResponse, yr as ConnectedAccountRefreshParams } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { type ConnectedAccountCreateParams, type ConnectedAccountCreateResponse, type ConnectedAccountDeleteParams, type ConnectedAccountDeleteResponse, type ConnectedAccountListParams, type ConnectedAccountListResponse, type ConnectedAccountPatchParams, type ConnectedAccountPatchResponse, type ConnectedAccountRefreshParams, type ConnectedAccountRefreshResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountUpdateStatusParams, type ConnectedAccountUpdateStatusResponse, ConnectedAccounts };
@@ -1,3 +1,3 @@
1
- import { t as ConnectedAccounts } from "../connected-accounts-D6NTwvbi.mjs";
1
+ import { t as ConnectedAccounts } from "../connected-accounts-Bd4AbWoH.mjs";
2
2
 
3
3
  export { ConnectedAccounts };
@@ -1,2 +1,2 @@
1
- import { _ as CustomUpsertParams, f as Custom, g as CustomSyncResponse, h as CustomSyncParams, m as CustomDeleteToolkitResponse, v as CustomUpsertResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { _ as CustomUpsertResponse, d as Custom, g as CustomUpsertParams, h as CustomSyncResponse, m as CustomSyncParams, p as CustomDeleteToolkitResponse } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { Custom, type CustomDeleteToolkitResponse, type CustomSyncParams, type CustomSyncResponse, type CustomUpsertParams, type CustomUpsertResponse };
@@ -1,3 +1,3 @@
1
- import { t as Custom } from "../custom-DA3ABHnI.mjs";
1
+ import { t as Custom } from "../custom-Ce8G2c11.mjs";
2
2
 
3
3
  export { Custom };
@@ -1,2 +1,2 @@
1
- import { Ar as FileListResponse, Dr as FileCreatePresignedURLParams, Or as FileCreatePresignedURLResponse, jr as Files, kr as FileListParams } from "../session-configs-x3OA4CSe.mjs";
1
+ import { Ar as Files, Dr as FileCreatePresignedURLResponse, Er as FileCreatePresignedURLParams, Or as FileListParams, kr as FileListResponse } from "../session-configs-BLy_O6bX.mjs";
2
2
  export { type FileCreatePresignedURLParams, type FileCreatePresignedURLResponse, type FileListParams, type FileListResponse, Files };
@@ -1,3 +1,3 @@
1
- import { t as Files } from "../files-DLRmNLRD.mjs";
1
+ import { t as Files } from "../files-ZxEVlE_y.mjs";
2
2
 
3
3
  export { Files };
@@ -1,3 +1,3 @@
1
- import { An as TriggersTypeListParams, Ar as FileListResponse, Bn as AuthConfigListParams, Br as ToolRetrieveEnumResponse, Cn as TriggerInstanceUpsertParams, Dr as FileCreatePresignedURLParams, Er as ConnectedAccounts, Fn as TriggersTypes, Fr as ToolGetInputResponse, Gn as AuthConfigUpdateStatusParams, Gr as Tools, Gt as CliCreateSessionResponse, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Ir as ToolListParams, Jn as ToolkitListParams, Kn as AuthConfigUpdateStatusResponse, Kr as ToolRouter, Kt as CliGetSessionParams, Ln as AuthConfigCreateResponse, Lr as ToolListResponse, Mn as TriggersTypeRetrieveEnumResponse, Mr as ToolExecuteParams, Nn as TriggersTypeRetrieveParams, Nr as ToolExecuteResponse, Or as FileCreatePresignedURLResponse, Pn as TriggersTypeRetrieveResponse, Pr as ToolGetInputParams, Qn as ToolkitRetrieveCategoriesResponse, Qt as Mcp, Rn as AuthConfigDeleteParams, Rr as ToolProxyParams, Sn as TriggerInstanceListActiveResponse, Sr as ConnectedAccountRetrieveResponse, St as Project, Tn as TriggerInstances, Tr as ConnectedAccountUpdateStatusResponse, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Vr as ToolRetrieveParams, Vt as Cli, Wn as AuthConfigUpdateResponse, Wr as ToolRetrieveResponse, Wt as CliCreateSessionParams, Yn as ToolkitListResponse, _r as ConnectedAccountListResponse, an as McpDeleteResponse, br as ConnectedAccountRefreshParams, cn as McpListParams, cr as LinkCreateParams, dn as McpRetrieveAppResponse, fn as McpRetrieveResponse, fr as ConnectedAccountCreateParams, gr as ConnectedAccountListParams, hr as ConnectedAccountDeleteResponse, jn as TriggersTypeListResponse, jr as Files, jt as Logs, kr as FileListParams, ln as McpListResponse, lr as LinkCreateResponse, mn as McpUpdateResponse, mr as ConnectedAccountDeleteParams, nn as McpCreateResponse, nr as ToolkitRetrieveParams, or as Toolkits, pn as McpUpdateParams, pr as ConnectedAccountCreateResponse, qn as AuthConfigs, qt as CliGetSessionResponse, rr as ToolkitRetrieveResponse, sr as Link, tn as McpCreateParams, un as McpRetrieveAppParams, vr as ConnectedAccountPatchParams, wn as TriggerInstanceUpsertResponse, wr as ConnectedAccountUpdateStatusParams, xn as TriggerInstanceListActiveParams, xr as ConnectedAccountRefreshResponse, yr as ConnectedAccountPatchResponse, zn as AuthConfigDeleteResponse, zr as ToolProxyResponse } from "../session-configs-x3OA4CSe.mjs";
1
+ import { An as TriggersTypeListResponse, Ar as Files, At as Logs, Bn as AuthConfigListResponse, Br as ToolRetrieveParams, Bt as Cli, Cn as TriggerInstanceUpsertResponse, Cr as ConnectedAccountUpdateStatusParams, Dr as FileCreatePresignedURLResponse, Er as FileCreatePresignedURLParams, Fn as AuthConfigCreateParams, Fr as ToolListParams, Gn as AuthConfigUpdateStatusResponse, Gr as ToolRouter, Gt as CliGetSessionParams, Hn as AuthConfigUpdateParams, In as AuthConfigCreateResponse, Ir as ToolListResponse, Jn as ToolkitListResponse, Kn as AuthConfigs, Kt as CliGetSessionResponse, Ln as AuthConfigDeleteParams, Lr as ToolProxyParams, Mn as TriggersTypeRetrieveParams, Mr as ToolExecuteResponse, Nn as TriggersTypeRetrieveResponse, Nr as ToolGetInputParams, Or as FileListParams, Pn as TriggersTypes, Pr as ToolGetInputResponse, Rn as AuthConfigDeleteResponse, Rr as ToolProxyResponse, Sn as TriggerInstanceUpsertParams, Tr as ConnectedAccounts, Un as AuthConfigUpdateResponse, Ur as ToolRetrieveResponse, Ut as CliCreateSessionParams, Vn as AuthConfigRetrieveResponse, Wn as AuthConfigUpdateStatusParams, Wr as Tools, Wt as CliCreateSessionResponse, Zn as ToolkitRetrieveCategoriesResponse, Zt as Mcp, _r as ConnectedAccountPatchParams, ar as Toolkits, bn as TriggerInstanceListActiveParams, br as ConnectedAccountRefreshResponse, cn as McpListResponse, cr as LinkCreateResponse, dn as McpRetrieveResponse, dr as ConnectedAccountCreateParams, en as McpCreateParams, fn as McpUpdateParams, fr as ConnectedAccountCreateResponse, gr as ConnectedAccountListResponse, hr as ConnectedAccountListParams, in as McpDeleteResponse, jn as TriggersTypeRetrieveEnumResponse, jr as ToolExecuteParams, kn as TriggersTypeListParams, kr as FileListResponse, ln as McpRetrieveAppParams, mr as ConnectedAccountDeleteResponse, nr as ToolkitRetrieveResponse, or as Link, pn as McpUpdateResponse, pr as ConnectedAccountDeleteParams, qn as ToolkitListParams, sn as McpListParams, sr as LinkCreateParams, tn as McpCreateResponse, tr as ToolkitRetrieveParams, un as McpRetrieveAppResponse, vr as ConnectedAccountPatchResponse, wn as TriggerInstances, wr as ConnectedAccountUpdateStatusResponse, xn as TriggerInstanceListActiveResponse, xr as ConnectedAccountRetrieveResponse, xt as Project, yr as ConnectedAccountRefreshParams, zn as AuthConfigListParams, zr as ToolRetrieveEnumResponse } from "../session-configs-BLy_O6bX.mjs";
2
2
  import { t as Migration } from "../migration-CKGKuRO3.mjs";
3
3
  export { type AuthConfigCreateParams, type AuthConfigCreateResponse, type AuthConfigDeleteParams, type AuthConfigDeleteResponse, type AuthConfigListParams, type AuthConfigListResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateParams, type AuthConfigUpdateResponse, type AuthConfigUpdateStatusParams, type AuthConfigUpdateStatusResponse, AuthConfigs, Cli, type CliCreateSessionParams, type CliCreateSessionResponse, type CliGetSessionParams, type CliGetSessionResponse, type ConnectedAccountCreateParams, type ConnectedAccountCreateResponse, type ConnectedAccountDeleteParams, type ConnectedAccountDeleteResponse, type ConnectedAccountListParams, type ConnectedAccountListResponse, type ConnectedAccountPatchParams, type ConnectedAccountPatchResponse, type ConnectedAccountRefreshParams, type ConnectedAccountRefreshResponse, type ConnectedAccountRetrieveResponse, type ConnectedAccountUpdateStatusParams, type ConnectedAccountUpdateStatusResponse, ConnectedAccounts, type FileCreatePresignedURLParams, type FileCreatePresignedURLResponse, type FileListParams, type FileListResponse, Files, Link, type LinkCreateParams, type LinkCreateResponse, Logs, Mcp, type McpCreateParams, type McpCreateResponse, type McpDeleteResponse, type McpListParams, type McpListResponse, type McpRetrieveAppParams, type McpRetrieveAppResponse, type McpRetrieveResponse, type McpUpdateParams, type McpUpdateResponse, Migration, Project, type ToolExecuteParams, type ToolExecuteResponse, type ToolGetInputParams, type ToolGetInputResponse, type ToolListParams, type ToolListResponse, type ToolProxyParams, type ToolProxyResponse, type ToolRetrieveEnumResponse, type ToolRetrieveParams, type ToolRetrieveResponse, ToolRouter, type ToolkitListParams, type ToolkitListResponse, type ToolkitRetrieveCategoriesResponse, type ToolkitRetrieveParams, type ToolkitRetrieveResponse, Toolkits, Tools, type TriggerInstanceListActiveParams, type TriggerInstanceListActiveResponse, type TriggerInstanceUpsertParams, type TriggerInstanceUpsertResponse, TriggerInstances, type TriggersTypeListParams, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeRetrieveParams, type TriggersTypeRetrieveResponse, TriggersTypes };