@composio/client 2.0.0-rc.5 → 2.0.0-rc.6

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 (157) hide show
  1. package/README.md +28 -2
  2. package/dist/{api-key-revocation-qTsznJmF.mjs → api-key-revocation-CSNyQo6m.mjs} +1 -1
  3. package/dist/{auth-Dw30Hpb_.mjs → auth-BpeKOtkr.mjs} +1 -1
  4. package/dist/{auth-configs-B0IbEao2.mjs → auth-configs-DAS68quO.mjs} +1 -1
  5. package/dist/{clanker-BJNgPfZ2.mjs → clanker-CdTX3VrN.mjs} +1 -1
  6. package/dist/{cli-CUWplx80.mjs → cli-BwAcGYUv.mjs} +2 -2
  7. package/dist/{client-CtqZaY-5.d.mts → client-Cu0FrKmX.d.mts} +8 -0
  8. package/dist/{connected-accounts-hwz_Ahf8.mjs → connected-accounts-Bri1c8_y.mjs} +1 -1
  9. package/dist/{consumer-BX9lVqTG.mjs → consumer-C-Sr8ilJ.mjs} +2 -2
  10. package/dist/{custom-tBFB6wwF.mjs → custom-CZ41HKuF.mjs} +1 -1
  11. package/dist/{files-vyDo0NH0.mjs → files-Bw-q9jvQ.mjs} +1 -1
  12. package/dist/{files-Blm1q37V.mjs → files-nKAca7MP.mjs} +1 -1
  13. package/dist/{generate-DnzpeBp5.mjs → generate-22I_8m4Q.mjs} +1 -1
  14. package/dist/{generated-operations-DEPr4e2f.mjs → generated-operations-BQO2JR1q.mjs} +11 -10
  15. package/dist/index.d.mts +2 -2
  16. package/dist/index.mjs +32 -25
  17. package/dist/{link-UHD4M7zo.mjs → link-D68LLK4Z.mjs} +1 -1
  18. package/dist/{logs-B61ufb_6.mjs → logs-D51p26Kb.mjs} +3 -3
  19. package/dist/{manage-6ysZI9l4.mjs → manage-D8yy7vO-.mjs} +1 -1
  20. package/dist/{mcp-C9IT8Cpv.mjs → mcp-YTLiywS3.mjs} +3 -3
  21. package/dist/{org-Bj5m1nn8.mjs → org-Cutt-dnU.mjs} +6 -6
  22. package/dist/{owner-BSIXkRF0.mjs → owner-ZVJeAZpU.mjs} +1 -1
  23. package/dist/{project-BfNWC2nb.mjs → project-BObd0xOa.mjs} +1 -1
  24. package/dist/{project-CPmAuLg4.mjs → project-C8ZpAfnV.mjs} +1 -1
  25. package/dist/{project-BrbKVCdG.mjs → project-D0caI7O8.mjs} +1 -1
  26. package/dist/{project-84ETQ8s3.mjs → project-DKhGV5KP.mjs} +1 -1
  27. package/dist/{realtime-D7OslBiN.mjs → realtime-CtLFFEf8.mjs} +1 -1
  28. package/dist/resources/api-key-revocation.d.mts +1 -1
  29. package/dist/resources/api-key-revocation.mjs +1 -1
  30. package/dist/resources/auth/auth.d.mts +1 -1
  31. package/dist/resources/auth/auth.mjs +1 -1
  32. package/dist/resources/auth/index.d.mts +1 -1
  33. package/dist/resources/auth/index.mjs +2 -2
  34. package/dist/resources/auth/session.d.mts +1 -1
  35. package/dist/resources/auth/session.mjs +1 -1
  36. package/dist/resources/auth-configs.d.mts +1 -1
  37. package/dist/resources/auth-configs.mjs +1 -1
  38. package/dist/resources/auth.d.mts +1 -1
  39. package/dist/resources/auth.mjs +2 -2
  40. package/dist/resources/cli/cli.d.mts +1 -1
  41. package/dist/resources/cli/cli.mjs +1 -1
  42. package/dist/resources/cli/index.d.mts +1 -1
  43. package/dist/resources/cli/index.mjs +2 -2
  44. package/dist/resources/cli/realtime.d.mts +1 -1
  45. package/dist/resources/cli/realtime.mjs +1 -1
  46. package/dist/resources/cli.d.mts +1 -1
  47. package/dist/resources/cli.mjs +2 -2
  48. package/dist/resources/connected-accounts.d.mts +1 -1
  49. package/dist/resources/connected-accounts.mjs +1 -1
  50. package/dist/resources/files.d.mts +1 -1
  51. package/dist/resources/files.mjs +1 -1
  52. package/dist/resources/index.d.mts +1 -1
  53. package/dist/resources/index.mjs +13 -13
  54. package/dist/resources/link.d.mts +1 -1
  55. package/dist/resources/link.mjs +1 -1
  56. package/dist/resources/logs/index.d.mts +1 -1
  57. package/dist/resources/logs/index.mjs +3 -3
  58. package/dist/resources/logs/logs.d.mts +1 -1
  59. package/dist/resources/logs/logs.mjs +1 -1
  60. package/dist/resources/logs/tools.d.mts +1 -1
  61. package/dist/resources/logs/tools.mjs +1 -1
  62. package/dist/resources/logs/triggers.d.mts +1 -1
  63. package/dist/resources/logs/triggers.mjs +1 -1
  64. package/dist/resources/logs.d.mts +1 -1
  65. package/dist/resources/logs.mjs +3 -3
  66. package/dist/resources/mcp/custom.d.mts +1 -1
  67. package/dist/resources/mcp/custom.mjs +1 -1
  68. package/dist/resources/mcp/generate.d.mts +1 -1
  69. package/dist/resources/mcp/generate.mjs +1 -1
  70. package/dist/resources/mcp/index.d.mts +1 -1
  71. package/dist/resources/mcp/index.mjs +3 -3
  72. package/dist/resources/mcp/mcp.d.mts +1 -1
  73. package/dist/resources/mcp/mcp.mjs +1 -1
  74. package/dist/resources/mcp.d.mts +1 -1
  75. package/dist/resources/mcp.mjs +3 -3
  76. package/dist/resources/org/clanker.d.mts +1 -1
  77. package/dist/resources/org/clanker.mjs +1 -1
  78. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  79. package/dist/resources/org/consumer/consumer.mjs +1 -1
  80. package/dist/resources/org/consumer/index.d.mts +1 -1
  81. package/dist/resources/org/consumer/index.mjs +2 -2
  82. package/dist/resources/org/consumer/project.d.mts +1 -1
  83. package/dist/resources/org/consumer/project.mjs +1 -1
  84. package/dist/resources/org/consumer.d.mts +1 -1
  85. package/dist/resources/org/consumer.mjs +2 -2
  86. package/dist/resources/org/index.d.mts +1 -1
  87. package/dist/resources/org/index.mjs +6 -6
  88. package/dist/resources/org/org.d.mts +1 -1
  89. package/dist/resources/org/org.mjs +1 -1
  90. package/dist/resources/org/owner/index.d.mts +1 -1
  91. package/dist/resources/org/owner/index.mjs +2 -2
  92. package/dist/resources/org/owner/owner.d.mts +1 -1
  93. package/dist/resources/org/owner/owner.mjs +1 -1
  94. package/dist/resources/org/owner/project.d.mts +1 -1
  95. package/dist/resources/org/owner/project.mjs +1 -1
  96. package/dist/resources/org/owner.d.mts +1 -1
  97. package/dist/resources/org/owner.mjs +2 -2
  98. package/dist/resources/org/project.d.mts +1 -1
  99. package/dist/resources/org/project.mjs +1 -1
  100. package/dist/resources/org/usage.d.mts +1 -1
  101. package/dist/resources/org/usage.mjs +1 -1
  102. package/dist/resources/org.d.mts +1 -1
  103. package/dist/resources/org.mjs +6 -6
  104. package/dist/resources/project/index.d.mts +1 -1
  105. package/dist/resources/project/index.mjs +1 -1
  106. package/dist/resources/project/project.d.mts +1 -1
  107. package/dist/resources/project/project.mjs +1 -1
  108. package/dist/resources/project/usage.d.mts +1 -1
  109. package/dist/resources/project/usage.mjs +1 -1
  110. package/dist/resources/project.d.mts +1 -1
  111. package/dist/resources/project.mjs +1 -1
  112. package/dist/resources/tool-router/index.d.mts +1 -1
  113. package/dist/resources/tool-router/index.mjs +2 -2
  114. package/dist/resources/tool-router/session/files.d.mts +1 -1
  115. package/dist/resources/tool-router/session/files.mjs +1 -1
  116. package/dist/resources/tool-router/session/index.d.mts +1 -1
  117. package/dist/resources/tool-router/session/index.mjs +2 -2
  118. package/dist/resources/tool-router/session/session.d.mts +1 -1
  119. package/dist/resources/tool-router/session/session.mjs +1 -1
  120. package/dist/resources/tool-router/session.d.mts +1 -1
  121. package/dist/resources/tool-router/session.mjs +2 -2
  122. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  123. package/dist/resources/tool-router/tool-router.mjs +1 -1
  124. package/dist/resources/tool-router.d.mts +1 -1
  125. package/dist/resources/tool-router.mjs +2 -2
  126. package/dist/resources/toolkits.d.mts +1 -1
  127. package/dist/resources/toolkits.mjs +1 -1
  128. package/dist/resources/tools.d.mts +1 -1
  129. package/dist/resources/tools.mjs +1 -1
  130. package/dist/resources/trigger-instances/index.d.mts +1 -1
  131. package/dist/resources/trigger-instances/index.mjs +2 -2
  132. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  133. package/dist/resources/trigger-instances/manage.mjs +1 -1
  134. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  135. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  136. package/dist/resources/trigger-instances.d.mts +1 -1
  137. package/dist/resources/trigger-instances.mjs +2 -2
  138. package/dist/resources/triggers-types.d.mts +1 -1
  139. package/dist/resources/triggers-types.mjs +1 -1
  140. package/dist/resources/webhook-endpoints.d.mts +1 -1
  141. package/dist/resources/webhook-endpoints.mjs +1 -1
  142. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  143. package/dist/resources/webhook-subscriptions.mjs +1 -1
  144. package/dist/{session-HQf03_ub.mjs → session-BFEAeE9G.mjs} +2 -2
  145. package/dist/{session-CJLfSQti.mjs → session-Byj-qri0.mjs} +1 -1
  146. package/dist/{tool-router-kFw8Xqp9.mjs → tool-router-CyuTk9t-.mjs} +1 -1
  147. package/dist/{toolkits-wapurMFl.mjs → toolkits-Bck41m7-.mjs} +1 -1
  148. package/dist/{tools-KN8T5BtJ.mjs → tools-Bvbrgij6.mjs} +1 -1
  149. package/dist/{tools-BmHuPUvd.mjs → tools-D8kKy_iy.mjs} +1 -1
  150. package/dist/{trigger-instances-DeRL4DhM.mjs → trigger-instances-B3oj-IJW.mjs} +2 -2
  151. package/dist/{triggers-DZWXfIwq.mjs → triggers-CirhOG03.mjs} +1 -1
  152. package/dist/{triggers-types-DLap3EOR.mjs → triggers-types-CHJxtojA.mjs} +1 -1
  153. package/dist/{usage-Buq-FwCY.mjs → usage-C5VBnFfd.mjs} +1 -1
  154. package/dist/{usage-DwYx7p-o.mjs → usage-CD53euIq.mjs} +1 -1
  155. package/dist/{webhook-endpoints-DbIlhiI-.mjs → webhook-endpoints-gTzzFJ1c.mjs} +1 -1
  156. package/dist/{webhook-subscriptions-CXC0oAhI.mjs → webhook-subscriptions-bZFki65N.mjs} +1 -1
  157. package/package.json +1 -1
package/README.md CHANGED
@@ -26,8 +26,9 @@ const composio = Composio.fromEnv(config, { environment: 'staging' })
26
26
  ```
27
27
 
28
28
  `fromEnv` recognizes `COMPOSIO_API_KEY`, `COMPOSIO_USER_API_KEY`, `COMPOSIO_ORG_API_KEY`,
29
- `COMPOSIO_BASE_URL`, `COMPOSIO_CUSTOM_HEADERS`, and `COMPOSIO_LOG`. Derived clients created with
30
- `withOptions()` keep using the resolved snapshot and do not fall back to ambient values.
29
+ `COMPOSIO_BASE_URL`, `COMPOSIO_ALLOW_INSECURE_HTTP`, `COMPOSIO_CUSTOM_HEADERS`, and
30
+ `COMPOSIO_LOG`. Derived clients created with `withOptions()` keep using the resolved snapshot and do
31
+ not fall back to ambient values.
31
32
 
32
33
  Inject a `Transport` when an application or test needs to own HTTP dispatch. The transport receives
33
34
  a complete `Request`; retries, credential-safe redirects, timeouts, and response parsing stay in the
@@ -43,6 +44,31 @@ const composio = new Composio({ apiKey, transport })
43
44
  Existing `fetch` and `fetchOptions` constructor options remain supported. They cannot be combined
44
45
  with `transport` because a request can have only one HTTP dispatcher.
45
46
 
47
+ ## Upgrade from Stainless 0.1.x to 2.0
48
+
49
+ By default, the 2.0 client refuses to send credentials over plain HTTP unless the hostname is
50
+ loopback. For a trusted development backend such as Docker's host gateway, opt in to the exact
51
+ configured origin:
52
+
53
+ ```ts
54
+ const composio = new Composio({
55
+ apiKey,
56
+ baseURL: 'http://host.docker.internal:9900',
57
+ allowInsecureHTTP: true,
58
+ })
59
+ ```
60
+
61
+ The equivalent environment configuration is:
62
+
63
+ ```sh
64
+ COMPOSIO_BASE_URL=http://host.docker.internal:9900 \
65
+ COMPOSIO_ALLOW_INSECURE_HTTP=1
66
+ ```
67
+
68
+ The opt-in records the resolved scheme, hostname, and port. Mutating `baseURL` cannot broaden it,
69
+ and `withOptions({ baseURL: ... })` requires `allowInsecureHTTP: true` again when the origin
70
+ changes. Redirects to another origin remain credential-free.
71
+
46
72
  ## Development
47
73
 
48
74
  Toolchain is pinned via [mise](https://mise.jdx.dev) (`mise install`): Node 24, pnpm 11, Python 3.13, uv. ESM-only, TypeScript 7 (native compiler for typechecking, `typescript@6` retained for tooling until 7.1 restores the compiler API).
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/api-key-revocation.ts
4
4
  const OP_CREATE = generatedOperation("apiKeyRevocation.create");
@@ -1,4 +1,4 @@
1
- import { t as Session } from "./session-CJLfSQti.mjs";
1
+ import { t as Session } from "./session-Byj-qri0.mjs";
2
2
 
3
3
  //#region src/compat/resources/auth/auth.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/auth-configs.ts
4
4
  const OP_CREATE = generatedOperation("authConfigs.create");
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/clanker.ts
4
4
  const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
@@ -1,5 +1,5 @@
1
- import { c as withOperation, f as mergeHeaders, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Realtime } from "./realtime-D7OslBiN.mjs";
1
+ import { c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as Realtime } from "./realtime-CtLFFEf8.mjs";
3
3
 
4
4
  //#region src/compat/resources/cli/cli.ts
5
5
  const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
@@ -22711,6 +22711,14 @@ interface ClientOptions {
22711
22711
  environment?: Environment | undefined;
22712
22712
  /** Override the base URL. Defaults to `process.env['COMPOSIO_BASE_URL']`. */
22713
22713
  baseURL?: string | null | undefined;
22714
+ /**
22715
+ * Allows credentials to be sent to this client's configured plain-HTTP
22716
+ * origin. The permission is limited to the resolved scheme, host, and port.
22717
+ *
22718
+ * Not part of the Stainless surface: a sanctioned security superset.
22719
+ * Defaults to `process.env['COMPOSIO_ALLOW_INSECURE_HTTP'] === '1'`.
22720
+ */
22721
+ allowInsecureHTTP?: boolean | undefined;
22714
22722
  /** Per-request time budget in milliseconds (each retry attempt gets its own). */
22715
22723
  timeout?: number | undefined;
22716
22724
  /** Additional `RequestInit` options merged into every `fetch` call. */
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/connected-accounts.ts
4
4
  const OP_CREATE = generatedOperation("connectedAccounts.create");
@@ -1,5 +1,5 @@
1
- import { c as withOperation, f as mergeHeaders, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Project } from "./project-BrbKVCdG.mjs";
1
+ import { c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as Project } from "./project-D0caI7O8.mjs";
3
3
 
4
4
  //#region src/compat/resources/org/consumer/consumer.ts
5
5
  const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/mcp/custom.ts
4
4
  const OP_CREATE = generatedOperation("mcp.custom.create");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/tool-router/session/files.ts
4
4
  const OP_LIST = generatedOperation("toolRouter.session.files.list");
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/files.ts
4
4
  const OP_LIST = generatedOperation("files.list");
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/mcp/generate.ts
4
4
  const OP_URL = generatedOperation("mcp.generate.url");
@@ -158,8 +158,9 @@ const buildHeaders = (sources) => mergeHeaders(sources).values;
158
158
  * decides which one that is. See wayfinder ticket 48 and §4 of
159
159
  * `docs/research/drop-in-contract.md`.
160
160
  * 1. **A credentialed API origin must use HTTPS.** Plain `http:` is permitted
161
- * only for loopback development endpoints — which is exactly what the
162
- * sanctioned `environment: 'local'` default (`http://localhost:9900`) is.
161
+ * only for loopback development endpoints, or for the exact origin a
162
+ * caller opts into with `allowInsecureHTTP` or
163
+ * `COMPOSIO_ALLOW_INSECURE_HTTP=1`.
163
164
  * Enforced by {@link assertCredentialTransport} at construction and again
164
165
  * by {@link credentialForRequest} at dispatch, because `apiKey` and
165
166
  * `baseURL` are both public mutable fields on the client.
@@ -340,9 +341,9 @@ const resolveHTTPURL = (target, base) => {
340
341
  }
341
342
  };
342
343
  /** Whether a credential may be sent to this origin at all. */
343
- const isCredentialSafeOrigin = (url) => url.protocol === "https:" || url.protocol === "http:" && isLoopbackHostname(url.hostname);
344
+ const isCredentialSafeOrigin = (url, allowedHTTPOrigin = null) => url.protocol === "https:" || url.protocol === "http:" && (isLoopbackHostname(url.hostname) || allowedHTTPOrigin !== null && url.origin === allowedHTTPOrigin);
344
345
  const LOOPBACK_DESCRIPTION = "localhost, *.localhost, 127.0.0.0/8, [::1]";
345
- const insecureOriginMessage = (baseURL) => `Refusing to send a Composio API credential to ${baseURL}: a credentialed API origin must use HTTPS. Plain http:// is permitted only for loopback development endpoints (${LOOPBACK_DESCRIPTION}). Pass an https:// baseURL, use environment: 'local', or construct the client without credentials.`;
346
+ const insecureOriginMessage = (baseURL) => `Refusing to send a Composio API credential to ${baseURL}: a credentialed API origin must use HTTPS. By default, plain http:// is permitted only for loopback development endpoints (${LOOPBACK_DESCRIPTION}). Pass an https:// baseURL, use environment: 'local', set allowInsecureHTTP: true (or COMPOSIO_ALLOW_INSECURE_HTTP=1) for the configured development origin, or construct the client without credentials.`;
346
347
  /** Whether the client holds anything at all that rule 1 has to protect. */
347
348
  const anyCredential = (credentials) => credentials.apiKey !== null || hasAlternateCredential(credentials);
348
349
  /**
@@ -358,10 +359,10 @@ const anyCredential = (credentials) => credentials.apiKey !== null || hasAlterna
358
359
  * request carries is decided per operation, so a client holding *any* of them
359
360
  * is a client that can put one on the wire.
360
361
  */
361
- const assertCredentialTransport = (baseURL, credentials) => {
362
+ const assertCredentialTransport = (baseURL, credentials, allowedHTTPOrigin = null) => {
362
363
  if (!anyCredential(credentials)) return;
363
364
  const url = parseHTTPURL(baseURL);
364
- if (url === null || !isCredentialSafeOrigin(url)) throw new ComposioError(insecureOriginMessage(baseURL));
365
+ if (url === null || !isCredentialSafeOrigin(url, allowedHTTPOrigin)) throw new ComposioError(insecureOriginMessage(baseURL));
365
366
  };
366
367
  /**
367
368
  * The credential this request may carry, or `null` for none.
@@ -381,14 +382,14 @@ const assertCredentialTransport = (baseURL, credentials) => {
381
382
  * with credentials, so that one dies at the transport instead. httpx has no
382
383
  * such objection, which is why the Python port checks the same thing.)
383
384
  */
384
- const credentialForRequest = (baseURL, scheme, credentials, requestURL) => {
385
+ const credentialForRequest = (baseURL, scheme, credentials, requestURL, allowedHTTPOrigin = null) => {
385
386
  const value = valueFor(scheme, credentials);
386
387
  if (value === null) return null;
387
388
  const base = parseHTTPURL(baseURL);
388
389
  const target = parseHTTPURL(requestURL);
389
390
  if (base === null || target === null) return null;
390
391
  if (base.origin !== target.origin) return null;
391
- if (!isCredentialSafeOrigin(target)) throw new ComposioError(insecureOriginMessage(baseURL));
392
+ if (!isCredentialSafeOrigin(target, allowedHTTPOrigin)) throw new ComposioError(insecureOriginMessage(baseURL));
392
393
  return {
393
394
  name: SCHEME_HEADERS[scheme],
394
395
  value
@@ -1277,7 +1278,7 @@ const kernelInternals = { sleep };
1277
1278
  * chose and are dropped once the *server* has chosen one.
1278
1279
  */
1279
1280
  const buildRequestHeaders = (config, options, requestURL, bodyHeaders, withdrawn, scheme, callerPlaced) => {
1280
- const credential = withdrawn || callerPlaced ? null : credentialForRequest(config.baseURL, scheme, config.credentials, requestURL);
1281
+ const credential = withdrawn || callerPlaced ? null : credentialForRequest(config.baseURL, scheme, config.credentials, requestURL, config.allowedHTTPOrigin);
1281
1282
  if (!withdrawn && bodyHeaders === void 0 && !config.defaultHeaders && !options.headers) {
1282
1283
  const direct = new Headers({
1283
1284
  accept: "application/json",
@@ -2272,4 +2273,4 @@ const generatedOperation = (chainKey) => {
2272
2273
  };
2273
2274
 
2274
2275
  //#endregion
2275
- export { PermissionDeniedError as C, NotFoundError as S, UnprocessableEntityError as T, AuthenticationError as _, path as a, ConflictError as b, withOperation as c, assertCredentialTransport as d, mergeHeaders as f, APIUserAbortError as g, APIError as h, makeRequest as i, inspectDeprecatedInputs as l, APIConnectionTimeoutError as m, generatedOperation as n, readOperation as o, APIConnectionError as p, castToError as r, safeJSON as s, GENERATED_OPERATIONS as t, inspectDeprecation as u, BadRequestError as v, RateLimitError as w, InternalServerError as x, ComposioError as y };
2276
+ export { NotFoundError as C, UnprocessableEntityError as E, InternalServerError as S, RateLimitError as T, APIUserAbortError as _, path as a, ComposioError as b, withOperation as c, assertCredentialTransport as d, parseHTTPURL as f, APIError as g, APIConnectionTimeoutError as h, makeRequest as i, inspectDeprecatedInputs as l, APIConnectionError as m, generatedOperation as n, readOperation as o, mergeHeaders as p, castToError as r, safeJSON as s, GENERATED_OPERATIONS as t, inspectDeprecation as u, AuthenticationError as v, PermissionDeniedError as w, ConflictError as x, BadRequestError as y };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $r as FileListParams, Ar as SessionExecuteMetaParams, Br as SessionRetrieveResponse, Cr as SessionAttachParams, Dr as SessionCreateParams, Er as SessionConfigHistoryResponse, Fr as SessionLinkResponse, Gr as SessionToolsParams, Hr as SessionSearchResponse, Ir as SessionPatchParams, Jr as FileCreateDownloadURLResponse, Kr as SessionToolsResponse, Lr as SessionPatchResponse, Mr as SessionExecuteParams, Nr as SessionExecuteResponse, Or as SessionCreateResponse, Pr as SessionLinkParams, Qr as FileDeleteResponse, Rr as SessionProxyExecuteParams, Sr as Session, Tr as SessionConfigHistoryParams, Ur as SessionToolkitsParams, Vr as SessionSearchParams, Wr as SessionToolkitsResponse, Xr as FileCreateUploadURLResponse, Yr as FileCreateUploadURLParams, Zr as FileDeleteParams, _i as RateLimitError, a as Logger, ai as createFetchTransport, ci as APIError, di as BadRequestError, ei as FileListResponse, fi as ComposioError, gi as PermissionDeniedError, hi as NotFoundError, i as LogLevel, ii as Transport, jr as SessionExecuteMetaResponse, kr as SessionDeleteResponse, li as APIUserAbortError, mi as InternalServerError, n as Composio, ni as RequestOptions, oi as APIConnectionError, pi as ConflictError, qr as FileCreateDownloadURLParams, r as EnvironmentMap, ri as FetchTransportDefaults, si as APIConnectionTimeoutError, t as ClientOptions, ti as Files, ui as AuthenticationError, vi as UnprocessableEntityError, wr as SessionAttachResponse, xr as ToolRouter, yi as APIPromise, zr as SessionProxyExecuteResponse } from "./client-CtqZaY-5.mjs";
1
+ import { $r as FileListParams, Ar as SessionExecuteMetaParams, Br as SessionRetrieveResponse, Cr as SessionAttachParams, Dr as SessionCreateParams, Er as SessionConfigHistoryResponse, Fr as SessionLinkResponse, Gr as SessionToolsParams, Hr as SessionSearchResponse, Ir as SessionPatchParams, Jr as FileCreateDownloadURLResponse, Kr as SessionToolsResponse, Lr as SessionPatchResponse, Mr as SessionExecuteParams, Nr as SessionExecuteResponse, Or as SessionCreateResponse, Pr as SessionLinkParams, Qr as FileDeleteResponse, Rr as SessionProxyExecuteParams, Sr as Session, Tr as SessionConfigHistoryParams, Ur as SessionToolkitsParams, Vr as SessionSearchParams, Wr as SessionToolkitsResponse, Xr as FileCreateUploadURLResponse, Yr as FileCreateUploadURLParams, Zr as FileDeleteParams, _i as RateLimitError, a as Logger, ai as createFetchTransport, ci as APIError, di as BadRequestError, ei as FileListResponse, fi as ComposioError, gi as PermissionDeniedError, hi as NotFoundError, i as LogLevel, ii as Transport, jr as SessionExecuteMetaResponse, kr as SessionDeleteResponse, li as APIUserAbortError, mi as InternalServerError, n as Composio, ni as RequestOptions, oi as APIConnectionError, pi as ConflictError, qr as FileCreateDownloadURLParams, r as EnvironmentMap, ri as FetchTransportDefaults, si as APIConnectionTimeoutError, t as ClientOptions, ti as Files, ui as AuthenticationError, vi as UnprocessableEntityError, wr as SessionAttachResponse, xr as ToolRouter, yi as APIPromise, zr as SessionProxyExecuteResponse } from "./client-Cu0FrKmX.mjs";
2
2
  //#region src/version.d.ts
3
- declare const VERSION = "2.0.0-rc.5";
3
+ declare const VERSION = "2.0.0-rc.6";
4
4
  //#endregion
5
5
  export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, Files, InternalServerError, type LogLevel, type Logger, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport };
package/dist/index.mjs CHANGED
@@ -1,25 +1,25 @@
1
- import { C as PermissionDeniedError, S as NotFoundError, T as UnprocessableEntityError, _ as AuthenticationError, b as ConflictError, d as assertCredentialTransport, f as mergeHeaders, g as APIUserAbortError, h as APIError, i as makeRequest, l as inspectDeprecatedInputs, m as APIConnectionTimeoutError, o as readOperation, p as APIConnectionError, r as castToError, s as safeJSON, t as GENERATED_OPERATIONS, u as inspectDeprecation, v as BadRequestError, w as RateLimitError, x as InternalServerError, y as ComposioError } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as ApiKeyRevocation } from "./api-key-revocation-qTsznJmF.mjs";
3
- import { t as AuthConfigs } from "./auth-configs-B0IbEao2.mjs";
4
- import { t as Auth } from "./auth-Dw30Hpb_.mjs";
5
- import { t as Cli } from "./cli-CUWplx80.mjs";
6
- import { t as ConnectedAccounts } from "./connected-accounts-hwz_Ahf8.mjs";
7
- import { t as Files$1 } from "./files-Blm1q37V.mjs";
8
- import { t as Link } from "./link-UHD4M7zo.mjs";
9
- import { t as Logs } from "./logs-B61ufb_6.mjs";
10
- import { t as Mcp } from "./mcp-C9IT8Cpv.mjs";
1
+ import { C as NotFoundError, E as UnprocessableEntityError, S as InternalServerError, T as RateLimitError, _ as APIUserAbortError, b as ComposioError, d as assertCredentialTransport, f as parseHTTPURL, g as APIError, h as APIConnectionTimeoutError, i as makeRequest, l as inspectDeprecatedInputs, m as APIConnectionError, o as readOperation, p as mergeHeaders, r as castToError, s as safeJSON, t as GENERATED_OPERATIONS, u as inspectDeprecation, v as AuthenticationError, w as PermissionDeniedError, x as ConflictError, y as BadRequestError } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as ApiKeyRevocation } from "./api-key-revocation-CSNyQo6m.mjs";
3
+ import { t as AuthConfigs } from "./auth-configs-DAS68quO.mjs";
4
+ import { t as Auth } from "./auth-BpeKOtkr.mjs";
5
+ import { t as Cli } from "./cli-BwAcGYUv.mjs";
6
+ import { t as ConnectedAccounts } from "./connected-accounts-Bri1c8_y.mjs";
7
+ import { t as Files$1 } from "./files-nKAca7MP.mjs";
8
+ import { t as Link } from "./link-D68LLK4Z.mjs";
9
+ import { t as Logs } from "./logs-D51p26Kb.mjs";
10
+ import { t as Mcp } from "./mcp-YTLiywS3.mjs";
11
11
  import { t as Migration } from "./migration-CBhnoN-Y.mjs";
12
- import { t as Org } from "./org-Bj5m1nn8.mjs";
13
- import { t as Project } from "./project-84ETQ8s3.mjs";
14
- import { t as Files } from "./files-vyDo0NH0.mjs";
15
- import { t as Session } from "./session-HQf03_ub.mjs";
16
- import { t as ToolRouter } from "./tool-router-kFw8Xqp9.mjs";
17
- import { t as Toolkits } from "./toolkits-wapurMFl.mjs";
18
- import { t as Tools } from "./tools-KN8T5BtJ.mjs";
19
- import { t as TriggerInstances } from "./trigger-instances-DeRL4DhM.mjs";
20
- import { t as TriggersTypes } from "./triggers-types-DLap3EOR.mjs";
21
- import { t as WebhookEndpoints } from "./webhook-endpoints-DbIlhiI-.mjs";
22
- import { t as WebhookSubscriptions } from "./webhook-subscriptions-CXC0oAhI.mjs";
12
+ import { t as Org } from "./org-Cutt-dnU.mjs";
13
+ import { t as Project } from "./project-DKhGV5KP.mjs";
14
+ import { t as Files } from "./files-Bw-q9jvQ.mjs";
15
+ import { t as Session } from "./session-BFEAeE9G.mjs";
16
+ import { t as ToolRouter } from "./tool-router-CyuTk9t-.mjs";
17
+ import { t as Toolkits } from "./toolkits-Bck41m7-.mjs";
18
+ import { t as Tools } from "./tools-Bvbrgij6.mjs";
19
+ import { t as TriggerInstances } from "./trigger-instances-B3oj-IJW.mjs";
20
+ import { t as TriggersTypes } from "./triggers-types-CHJxtojA.mjs";
21
+ import { t as WebhookEndpoints } from "./webhook-endpoints-gTzzFJ1c.mjs";
22
+ import { t as WebhookSubscriptions } from "./webhook-subscriptions-bZFki65N.mjs";
23
23
 
24
24
  //#region src/compat/api-promise.ts
25
25
  /**
@@ -216,7 +216,7 @@ const createClientResources = (client) => ({
216
216
 
217
217
  //#endregion
218
218
  //#region src/version.ts
219
- const VERSION = "2.0.0-rc.5";
219
+ const VERSION = "2.0.0-rc.6";
220
220
 
221
221
  //#endregion
222
222
  //#region src/compat/client.ts
@@ -289,6 +289,8 @@ const resolveClientOptions = (input) => {
289
289
  apiKey,
290
290
  userApiKey,
291
291
  orgApiKey,
292
+ allowInsecureHTTP: input.allowInsecureHTTP ?? readEnvironment("COMPOSIO_ALLOW_INSECURE_HTTP") === "1",
293
+ allowedHTTPOrigin: input.allowedHTTPOrigin ?? null,
292
294
  baseURL,
293
295
  environment: input.environment ?? "production",
294
296
  logLevel: input.logLevel ?? readEnvironment("COMPOSIO_LOG") ?? "warn"
@@ -335,11 +337,12 @@ var Composio = class Composio {
335
337
  this.maxRetries = options.maxRetries ?? 2;
336
338
  this.#fetch = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
337
339
  this.#transport = options.transport;
340
+ options.allowedHTTPOrigin = options.allowInsecureHTTP ? options.allowedHTTPOrigin ?? parseHTTPURL(this.baseURL)?.origin ?? null : null;
338
341
  this.#options = options;
339
342
  this.apiKey = options.apiKey;
340
343
  this.userApiKey = options.userApiKey;
341
344
  this.orgApiKey = options.orgApiKey;
342
- assertCredentialTransport(this.baseURL, this.#credentials());
345
+ assertCredentialTransport(this.baseURL, this.#credentials(), options.allowedHTTPOrigin);
343
346
  Object.assign(this, createClientResources(this));
344
347
  }
345
348
  /**
@@ -365,7 +368,8 @@ var Composio = class Composio {
365
368
  const transport = Object.hasOwn(options, "transport") ? options.transport : replacesTransport ? void 0 : this.#transport;
366
369
  const fetch = transport === void 0 ? hasFetch ? options.fetch : this.#fetch : void 0;
367
370
  const fetchOptions = transport === void 0 ? hasFetchOptions ? options.fetchOptions : this.fetchOptions : void 0;
368
- const client = new this.constructor({
371
+ const allowedHTTPOrigin = options.allowInsecureHTTP === true ? void 0 : this.#options.allowedHTTPOrigin;
372
+ const derivedOptions = {
369
373
  ...this.#options,
370
374
  environment: options.environment ? options.environment : void 0,
371
375
  baseURL: options.environment ? void 0 : this.baseURL,
@@ -377,10 +381,12 @@ var Composio = class Composio {
377
381
  userApiKey: this.userApiKey,
378
382
  orgApiKey: this.orgApiKey,
379
383
  ...options,
384
+ allowedHTTPOrigin,
380
385
  transport,
381
386
  fetch,
382
387
  fetchOptions
383
- });
388
+ };
389
+ const client = new this.constructor(derivedOptions);
384
390
  client.#deprecationSeen = this.#deprecationSeen;
385
391
  return client;
386
392
  }
@@ -453,6 +459,7 @@ var Composio = class Composio {
453
459
  return {
454
460
  baseURL: this.baseURL,
455
461
  credentials: this.#credentials(),
462
+ allowedHTTPOrigin: this.#options.allowedHTTPOrigin,
456
463
  operations: GENERATED_OPERATIONS,
457
464
  maxRetries: this.maxRetries,
458
465
  timeout: this.timeout,
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.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 { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Triggers } from "./triggers-DZWXfIwq.mjs";
3
- import { t as Tools } from "./tools-BmHuPUvd.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as Triggers } from "./triggers-CirhOG03.mjs";
3
+ import { t as Tools } from "./tools-D8kKy_iy.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 { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.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 { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Custom } from "./custom-tBFB6wwF.mjs";
3
- import { t as Generate } from "./generate-DnzpeBp5.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as Custom } from "./custom-CZ41HKuF.mjs";
3
+ import { t as Generate } from "./generate-22I_8m4Q.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 { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Clanker } from "./clanker-BJNgPfZ2.mjs";
3
- import { t as Consumer } from "./consumer-BX9lVqTG.mjs";
4
- import { t as Owner } from "./owner-BSIXkRF0.mjs";
5
- import { t as Project } from "./project-BfNWC2nb.mjs";
6
- import { t as Usage } from "./usage-DwYx7p-o.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
+ import { t as Clanker } from "./clanker-CdTX3VrN.mjs";
3
+ import { t as Consumer } from "./consumer-C-Sr8ilJ.mjs";
4
+ import { t as Owner } from "./owner-ZVJeAZpU.mjs";
5
+ import { t as Project } from "./project-BObd0xOa.mjs";
6
+ import { t as Usage } from "./usage-CD53euIq.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-CPmAuLg4.mjs";
1
+ import { t as Project } from "./project-C8ZpAfnV.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/owner/owner.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.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 { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.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 { c as withOperation, f as mergeHeaders, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-BQO2JR1q.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/consumer/project.ts
4
4
  const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
@@ -1,5 +1,5 @@
1
1
  import { t as Config } from "./config-BLBbhLe1.mjs";
2
- import { t as Usage } from "./usage-Buq-FwCY.mjs";
2
+ import { t as Usage } from "./usage-C5VBnFfd.mjs";
3
3
 
4
4
  //#region src/compat/resources/project/project.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.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 { c as ApiKeyRevocationCreateResponse, o as ApiKeyRevocation, s as ApiKeyRevocationCreateParams } from "../client-CtqZaY-5.mjs";
1
+ import { c as ApiKeyRevocationCreateResponse, o as ApiKeyRevocation, s as ApiKeyRevocationCreateParams } from "../client-Cu0FrKmX.mjs";
2
2
  export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
@@ -1,3 +1,3 @@
1
- import { t as ApiKeyRevocation } from "../api-key-revocation-qTsznJmF.mjs";
1
+ import { t as ApiKeyRevocation } from "../api-key-revocation-CSNyQo6m.mjs";
2
2
 
3
3
  export { ApiKeyRevocation };
@@ -1,2 +1,2 @@
1
- import { l as Auth } from "../../client-CtqZaY-5.mjs";
1
+ import { l as Auth } from "../../client-Cu0FrKmX.mjs";
2
2
  export { Auth };
@@ -1,3 +1,3 @@
1
- import { t as Auth } from "../../auth-Dw30Hpb_.mjs";
1
+ import { t as Auth } from "../../auth-BpeKOtkr.mjs";
2
2
 
3
3
  export { Auth };
@@ -1,2 +1,2 @@
1
- import { d as SessionRetrieveInfoResponse, l as Auth, u as Session } from "../../client-CtqZaY-5.mjs";
1
+ import { d as SessionRetrieveInfoResponse, l as Auth, u as Session } from "../../client-Cu0FrKmX.mjs";
2
2
  export { Auth, Session, type SessionRetrieveInfoResponse };
@@ -1,4 +1,4 @@
1
- import { t as Session } from "../../session-CJLfSQti.mjs";
2
- import { t as Auth } from "../../auth-Dw30Hpb_.mjs";
1
+ import { t as Session } from "../../session-Byj-qri0.mjs";
2
+ import { t as Auth } from "../../auth-BpeKOtkr.mjs";
3
3
 
4
4
  export { Auth, Session };
@@ -1,2 +1,2 @@
1
- import { d as SessionRetrieveInfoResponse, u as Session } from "../../client-CtqZaY-5.mjs";
1
+ import { d as SessionRetrieveInfoResponse, u as Session } from "../../client-Cu0FrKmX.mjs";
2
2
  export { Session, type SessionRetrieveInfoResponse };
@@ -1,3 +1,3 @@
1
- import { t as Session } from "../../session-CJLfSQti.mjs";
1
+ import { t as Session } from "../../session-Byj-qri0.mjs";
2
2
 
3
3
  export { Session };
@@ -1,2 +1,2 @@
1
- import { An as AuthConfigUpdateParams, Cn as AuthConfigCreateParams, Dn as AuthConfigListParams, En as AuthConfigDeleteResponse, Mn as AuthConfigUpdateStatusParams, Nn as AuthConfigUpdateStatusResponse, On as AuthConfigListResponse, Pn as AuthConfigs, Tn as AuthConfigDeleteParams, jn as AuthConfigUpdateResponse, kn as AuthConfigRetrieveResponse, wn as AuthConfigCreateResponse } from "../client-CtqZaY-5.mjs";
1
+ import { An as AuthConfigUpdateParams, Cn as AuthConfigCreateParams, Dn as AuthConfigListParams, En as AuthConfigDeleteResponse, Mn as AuthConfigUpdateStatusParams, Nn as AuthConfigUpdateStatusResponse, On as AuthConfigListResponse, Pn as AuthConfigs, Tn as AuthConfigDeleteParams, jn as AuthConfigUpdateResponse, kn as AuthConfigRetrieveResponse, wn as AuthConfigCreateResponse } from "../client-Cu0FrKmX.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-B0IbEao2.mjs";
1
+ import { t as AuthConfigs } from "../auth-configs-DAS68quO.mjs";
2
2
 
3
3
  export { AuthConfigs };
@@ -1,2 +1,2 @@
1
- import { d as SessionRetrieveInfoResponse, l as Auth, u as Session } from "../client-CtqZaY-5.mjs";
1
+ import { d as SessionRetrieveInfoResponse, l as Auth, u as Session } from "../client-Cu0FrKmX.mjs";
2
2
  export { Auth, Session, type SessionRetrieveInfoResponse };
@@ -1,5 +1,5 @@
1
- import { t as Session } from "../session-CJLfSQti.mjs";
2
- import { t as Auth } from "../auth-Dw30Hpb_.mjs";
1
+ import { t as Session } from "../session-Byj-qri0.mjs";
2
+ import { t as Auth } from "../auth-BpeKOtkr.mjs";
3
3
  import "./auth/index.mjs";
4
4
 
5
5
  export { Auth, Session };
@@ -1,2 +1,2 @@
1
- import { At as CliCreateCodactFailureResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../../client-CtqZaY-5.mjs";
1
+ import { At as CliCreateCodactFailureResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../../client-Cu0FrKmX.mjs";
2
2
  export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse };
@@ -1,3 +1,3 @@
1
- import { t as Cli } from "../../cli-CUWplx80.mjs";
1
+ import { t as Cli } from "../../cli-BwAcGYUv.mjs";
2
2
 
3
3
  export { Cli };
@@ -1,2 +1,2 @@
1
- import { At as CliCreateCodactFailureResponse, Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, Rt as RealtimeCredentialsResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../../client-CtqZaY-5.mjs";
1
+ import { At as CliCreateCodactFailureResponse, Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, Rt as RealtimeCredentialsResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../../client-Cu0FrKmX.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-D7OslBiN.mjs";
2
- import { t as Cli } from "../../cli-CUWplx80.mjs";
1
+ import { t as Realtime } from "../../realtime-CtLFFEf8.mjs";
2
+ import { t as Cli } from "../../cli-BwAcGYUv.mjs";
3
3
 
4
4
  export { Cli, Realtime };
@@ -1,2 +1,2 @@
1
- import { Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Rt as RealtimeCredentialsResponse } from "../../client-CtqZaY-5.mjs";
1
+ import { Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Rt as RealtimeCredentialsResponse } from "../../client-Cu0FrKmX.mjs";
2
2
  export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
@@ -1,3 +1,3 @@
1
- import { t as Realtime } from "../../realtime-D7OslBiN.mjs";
1
+ import { t as Realtime } from "../../realtime-CtLFFEf8.mjs";
2
2
 
3
3
  export { Realtime };
@@ -1,2 +1,2 @@
1
- import { At as CliCreateCodactFailureResponse, Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, Rt as RealtimeCredentialsResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../client-CtqZaY-5.mjs";
1
+ import { At as CliCreateCodactFailureResponse, Ft as Realtime, It as RealtimeAuthParams, Lt as RealtimeAuthResponse, Mt as CliCreateSessionResponse, Nt as CliGetSessionParams, Ot as Cli, Pt as CliGetSessionResponse, Rt as RealtimeCredentialsResponse, jt as CliCreateSessionParams, kt as CliCreateCodactFailureParams } from "../client-Cu0FrKmX.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-D7OslBiN.mjs";
2
- import { t as Cli } from "../cli-CUWplx80.mjs";
1
+ import { t as Realtime } from "../realtime-CtLFFEf8.mjs";
2
+ import { t as Cli } from "../cli-BwAcGYUv.mjs";
3
3
  import "./cli/index.mjs";
4
4
 
5
5
  export { Cli, Realtime };
@@ -1,2 +1,2 @@
1
- import { $n as ConnectedAccountRefreshResponse, Gn as ConnectedAccountCreateResponse, Jn as ConnectedAccountListParams, Kn as ConnectedAccountDeleteParams, Qn as ConnectedAccountRefreshParams, Wn as ConnectedAccountCreateParams, Xn as ConnectedAccountPatchParams, Yn as ConnectedAccountListResponse, Zn as ConnectedAccountPatchResponse, er as ConnectedAccountRetrieveResponse, nr as ConnectedAccountUpdateStatusResponse, qn as ConnectedAccountDeleteResponse, rr as ConnectedAccounts, tr as ConnectedAccountUpdateStatusParams } from "../client-CtqZaY-5.mjs";
1
+ import { $n as ConnectedAccountRefreshResponse, Gn as ConnectedAccountCreateResponse, Jn as ConnectedAccountListParams, Kn as ConnectedAccountDeleteParams, Qn as ConnectedAccountRefreshParams, Wn as ConnectedAccountCreateParams, Xn as ConnectedAccountPatchParams, Yn as ConnectedAccountListResponse, Zn as ConnectedAccountPatchResponse, er as ConnectedAccountRetrieveResponse, nr as ConnectedAccountUpdateStatusResponse, qn as ConnectedAccountDeleteResponse, rr as ConnectedAccounts, tr as ConnectedAccountUpdateStatusParams } from "../client-Cu0FrKmX.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-hwz_Ahf8.mjs";
1
+ import { t as ConnectedAccounts } from "../connected-accounts-Bri1c8_y.mjs";
2
2
 
3
3
  export { ConnectedAccounts };
@@ -1,2 +1,2 @@
1
- import { ar as FileCreatePresignedURLResponse, cr as Files, ir as FileCreatePresignedURLParams, or as FileListParams, sr as FileListResponse } from "../client-CtqZaY-5.mjs";
1
+ import { ar as FileCreatePresignedURLResponse, cr as Files, ir as FileCreatePresignedURLParams, or as FileListParams, sr as FileListResponse } from "../client-Cu0FrKmX.mjs";
2
2
  export { type FileCreatePresignedURLParams, type FileCreatePresignedURLResponse, type FileListParams, type FileListResponse, Files };
@@ -1,3 +1,3 @@
1
- import { t as Files } from "../files-Blm1q37V.mjs";
1
+ import { t as Files } from "../files-nKAca7MP.mjs";
2
2
 
3
3
  export { Files };