@composio/client 2.0.0-rc.15 → 2.0.0-rc.17

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 (171) hide show
  1. package/README.md +59 -5
  2. package/dist/{api-key-revocation-CBTqyv77.mjs → api-key-revocation-lc3308Ao.mjs} +1 -1
  3. package/dist/{auth-YEGyiIZI.mjs → auth-DkGiEaxg.mjs} +1 -1
  4. package/dist/{auth-configs-V7U1YdOd.mjs → auth-configs-DbxqGahP.mjs} +1 -1
  5. package/dist/{clanker-DK892J2n.mjs → clanker-fK9cAkTz.mjs} +1 -1
  6. package/dist/{cli-BR9p7AMA.mjs → cli-K1MskpaR.mjs} +2 -2
  7. package/dist/{connected-accounts-DyxruL1q.mjs → connected-accounts-Bfl7_SY_.mjs} +1 -1
  8. package/dist/{consumer-QHRVNxXs.mjs → consumer-5o2zMQwr.mjs} +2 -2
  9. package/dist/custom-8rs-sHnb.mjs +34 -0
  10. package/dist/{custom-DNPJxZK5.mjs → custom-wEkSiPHn.mjs} +1 -1
  11. package/dist/effect.d.mts +19 -8
  12. package/dist/effect.mjs +21 -8
  13. package/dist/{files-Bx7TZpgo.mjs → files-BPKJXlpc.mjs} +1 -1
  14. package/dist/{files-Cs1Y7Oz6.mjs → files-BjPFzRnM.mjs} +1 -1
  15. package/dist/{generate-gyrqQd_2.mjs → generate-DDHNgbPS.mjs} +1 -1
  16. package/dist/{generated-deprecated-inputs-BggrSLuP.mjs → generated-deprecated-inputs--L5LHDO_.mjs} +1 -1
  17. package/dist/{generated-operations-lxo6Uhzh.mjs → generated-operations-D1e__yar.mjs} +201 -33
  18. package/dist/index.d.mts +3 -3
  19. package/dist/index.mjs +31 -63
  20. package/dist/{keyring-CaSbeDWI.mjs → keyring-Dkm6DQIp.mjs} +1 -1
  21. package/dist/{link-BsD-BXnp.mjs → link-BBU-J5L_.mjs} +1 -1
  22. package/dist/{logs-CKWNAUJD.mjs → logs-CuuysWk1.mjs} +3 -3
  23. package/dist/{manage-LE7ZhkxJ.mjs → manage-B1R7I3ZM.mjs} +1 -1
  24. package/dist/{mcp-BLaouUUs.mjs → mcp-C3beSy48.mjs} +3 -3
  25. package/dist/{org-Cw6PQdvF.mjs → org-B13XOuKh.mjs} +6 -6
  26. package/dist/{owner-DnCCAK6L.mjs → owner-BAr5uwk3.mjs} +1 -1
  27. package/dist/{project-Dug9gbmT.mjs → project-BbCgXD83.mjs} +1 -1
  28. package/dist/{project-B383tf0r.mjs → project-C30H_5b6.mjs} +1 -1
  29. package/dist/{project-BdAUzLDU.mjs → project-CDm8tjUw.mjs} +1 -1
  30. package/dist/{project-CVKYoJ9i.mjs → project-DF5KclHm.mjs} +1 -1
  31. package/dist/{realtime-IBtbqLYg.mjs → realtime-6LigMh83.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-DcTM2Dmm.mjs → session-DEfDnHZZ.mjs} +2 -2
  155. package/dist/{session-CGBr6GaO.mjs → session-Dm8WtF4I.mjs} +1 -1
  156. package/dist/{session-configs-CtHZk-vG.d.mts → session-configs-nA6TL_i4.d.mts} +40 -17
  157. package/dist/{tool-router-BTK7Mzi8.mjs → tool-router-6l_dREjC.mjs} +1 -1
  158. package/dist/{toolkits-DqOLVQhl.mjs → toolkits-Mn_uLV98.mjs} +1 -1
  159. package/dist/{tools-DmZteN_Z.mjs → tools-btk0mzFP.mjs} +1 -1
  160. package/dist/{tools-BuSJLTWS.mjs → tools-z-PjBsf7.mjs} +1 -1
  161. package/dist/{trigger-instances--9zM_0OP.mjs → trigger-instances-PQaObQQy.mjs} +2 -2
  162. package/dist/{triggers-types-BP340boz.mjs → triggers-types-KoRbT0k5.mjs} +1 -1
  163. package/dist/{triggers-DVow72wn.mjs → triggers-y0mi0XzT.mjs} +1 -1
  164. package/dist/{usage-Dv5GAePW.mjs → usage-B2Z947BK.mjs} +1 -1
  165. package/dist/{usage-BwUhfQlH.mjs → usage-DvjkSmpI.mjs} +1 -1
  166. package/dist/version-DUxhnnPj.d.mts +4 -0
  167. package/dist/{webhook-endpoints-BMe7DyIe.mjs → webhook-endpoints-kf4Jj2Mz.mjs} +1 -1
  168. package/dist/{webhook-subscriptions-BHpY2cSc.mjs → webhook-subscriptions-DcYN8qo1.mjs} +1 -1
  169. package/package.json +2 -2
  170. package/dist/custom-DaAJruvk.mjs +0 -88
  171. package/dist/version-CuFIok56.d.mts +0 -4
@@ -67,6 +67,10 @@ const mergeHeaders = (sources) => {
67
67
  };
68
68
  /** Merge sources into the native header collection sent to fetch. */
69
69
  const buildHeaders = (sources) => mergeHeaders(sources).values;
70
+ /** Every header name a source mentions, lowercased, a `null` deletion included. */
71
+ function* headerNames(headers) {
72
+ for (const [name] of iterateHeaders(headers)) yield name.toLowerCase();
73
+ }
70
74
 
71
75
  //#endregion
72
76
  //#region src/compat/credentials.ts
@@ -905,43 +909,209 @@ const inspectDeprecatedInputs = ({ operation, query, body, headers, table, seen,
905
909
 
906
910
  //#endregion
907
911
  //#region src/version.ts
908
- const VERSION = "2.0.0-rc.15";
912
+ const VERSION = "2.0.0-rc.17";
909
913
 
910
914
  //#endregion
911
- //#region src/compat/telemetry.ts
915
+ //#region src/compat/identity.ts
916
+ /**
917
+ * The runtime keys `std-env` detects, in its order, each with the label this
918
+ * client sends as `x-client-runtime`. Ported from std-env 4.3.0
919
+ * (https://github.com/unjs/std-env, MIT) rather than imported: std-env reads
920
+ * `process.env` when it is imported, which throws under Deno without
921
+ * `--allow-env`, and this needs only the runtime check.
922
+ *
923
+ * The labels are the ones released clients already send and the platform
924
+ * already normalizes (`nodejs`, `cloudflare`, `vercel_edge`, ...), so a
925
+ * dashboard groups old and new traffic together. Edge runtimes come before
926
+ * Node because `nodejs_compat` and edge polyfills expose `process.versions.node`.
927
+ */
928
+ const RUNTIMES = [
929
+ [
930
+ "netlify",
931
+ "netlify",
932
+ (g) => "Netlify" in g
933
+ ],
934
+ [
935
+ "edge-light",
936
+ "vercel_edge",
937
+ (g) => "EdgeRuntime" in g
938
+ ],
939
+ [
940
+ "workerd",
941
+ "cloudflare",
942
+ (g) => g.navigator?.userAgent === "Cloudflare-Workers"
943
+ ],
944
+ [
945
+ "fastly",
946
+ "fastly",
947
+ (g) => "fastly" in g
948
+ ],
949
+ [
950
+ "deno",
951
+ "deno",
952
+ (g) => "Deno" in g
953
+ ],
954
+ [
955
+ "bun",
956
+ "bun",
957
+ (g) => "Bun" in g
958
+ ],
959
+ [
960
+ "node",
961
+ "nodejs",
962
+ (g) => Boolean(g.process?.versions?.node)
963
+ ]
964
+ ];
912
965
  /**
913
- * The runtime label and version, first match wins. Workers and Vercel Edge are
914
- * checked before Node because `nodejs_compat` and edge polyfills can expose
915
- * `process.versions.node`; neither reports a version, so a polyfilled Node
916
- * version is never sent as theirs.
966
+ * The runtime label and its version. The version is `process.versions[key]`,
967
+ * which Node, Bun and Deno each set for themselves; an edge runtime reports
968
+ * none, so a polyfilled Node version is never sent as its own.
917
969
  */
918
970
  const detectRuntime = () => {
919
971
  const g = globalThis;
920
- if (g.Bun !== void 0) return ["bun", g.Bun.version];
921
- if (g.Deno !== void 0) return ["deno", g.Deno.version?.deno];
922
- if (g.navigator?.userAgent === "Cloudflare-Workers" || g.caches !== void 0 && g.WebSocketPair !== void 0) return ["cloudflare", void 0];
923
- if (g.EdgeRuntime !== void 0) return ["vercel_edge", void 0];
924
- if (typeof process !== "undefined" && process.versions?.node) return ["nodejs", process.versions.node];
925
- if (typeof g.ServiceWorkerGlobalScope === "function" && globalThis instanceof g.ServiceWorkerGlobalScope) return ["service_worker", void 0];
926
- if (g.WorkerGlobalScope !== void 0 && typeof g.importScripts === "function") return ["web_worker", void 0];
927
- if (g.navigator?.product === "ReactNative") return ["react_native", void 0];
928
- if (g.window !== void 0 && g.document !== void 0) return ["browser", void 0];
972
+ for (const [key, label, detect] of RUNTIMES) if (detect(g)) return [label, g.process?.versions?.[key]];
929
973
  return ["unknown", void 0];
930
974
  };
931
- /** Caller headers override these defaults, including the calling SDK's identity. */
932
- const clientTelemetryHeaders = () => {
933
- const [runtime, version] = detectRuntime();
934
- const headers = {
935
- "x-client-provenance": "@composio/client",
936
- "x-client-version": VERSION,
975
+ /** The library sending the request. Never caller-settable, with or without an identity. */
976
+ const PACKAGE_HEADERS = [
977
+ "x-client-library",
978
+ "x-client-library-version",
979
+ "x-client-language"
980
+ ];
981
+ /**
982
+ * The calling product and its runtime. Reserved once a client has an
983
+ * `identity`; without one they default to the package and stay
984
+ * caller-settable, which is how a wrapper identified itself before `identity`.
985
+ */
986
+ const PRODUCT_HEADERS = [
987
+ "x-client-provenance",
988
+ "x-client-version",
989
+ "x-sdk-version",
990
+ "x-source",
991
+ "x-framework",
992
+ "x-runtime",
993
+ "x-client-runtime",
994
+ "x-runtime-version"
995
+ ];
996
+ const PACKAGE_RESERVED = new Set(PACKAGE_HEADERS);
997
+ const IDENTITY_RESERVED = /* @__PURE__ */ new Set([...PACKAGE_HEADERS, ...PRODUCT_HEADERS]);
998
+ /** Printable ASCII with no leading or trailing whitespace: what every runtime's `Headers` sends unchanged. */
999
+ const HEADER_SAFE = /^[\x21-\x7e](?:[\x20-\x7e]*[\x21-\x7e])?$/;
1000
+ const IDENTITY_FIELDS = [
1001
+ "product",
1002
+ "version",
1003
+ "source",
1004
+ "framework",
1005
+ "runtime"
1006
+ ];
1007
+ const REQUIRED_FIELDS = /* @__PURE__ */ new Set(["product", "version"]);
1008
+ const validateIdentity = (identity) => {
1009
+ if (typeof identity !== "object" || identity === null) throw new ComposioError("`identity` must be an object with a `product` and a `version`.");
1010
+ const fields = identity;
1011
+ for (const field of IDENTITY_FIELDS) {
1012
+ const value = fields[field];
1013
+ if (value === void 0 && !REQUIRED_FIELDS.has(field)) continue;
1014
+ if (typeof value !== "string" || !HEADER_SAFE.test(value)) throw new ComposioError(`\`identity.${field}\` must be a non-empty string of printable ASCII with no leading or trailing whitespace.`);
1015
+ }
1016
+ return identity;
1017
+ };
1018
+ /**
1019
+ * Validates `identity` and resolves the headers it owns, once per client.
1020
+ *
1021
+ * Without an identity the client reports itself, as it always has. With one,
1022
+ * the product fields replace the package's; the runtime the package detected
1023
+ * stays in `x-client-runtime` and `x-runtime-version` either way, since
1024
+ * `identity.runtime` is the legacy `x-runtime` label and the platform does not
1025
+ * read the two as aliases.
1026
+ */
1027
+ const resolveIdentity = (identity) => {
1028
+ const [runtime, runtimeVersion] = detectRuntime();
1029
+ const library = {
937
1030
  "x-client-library": "@composio/client",
938
1031
  "x-client-library-version": VERSION,
939
1032
  "x-client-language": "typescript",
940
- "x-client-runtime": runtime,
941
- "x-runtime": runtime
1033
+ "x-client-runtime": runtime
942
1034
  };
943
- if (version) headers["x-runtime-version"] = version;
944
- return headers;
1035
+ if (identity === void 0) {
1036
+ const headers = {
1037
+ "x-client-provenance": "@composio/client",
1038
+ "x-client-version": VERSION,
1039
+ ...library,
1040
+ "x-runtime": runtime
1041
+ };
1042
+ if (runtimeVersion) headers["x-runtime-version"] = runtimeVersion;
1043
+ return {
1044
+ headers,
1045
+ reserved: PACKAGE_RESERVED
1046
+ };
1047
+ }
1048
+ const valid = validateIdentity(identity);
1049
+ const headers = {
1050
+ "x-client-provenance": valid.product,
1051
+ "x-client-version": valid.version,
1052
+ ...library,
1053
+ "x-runtime": valid.runtime ?? runtime
1054
+ };
1055
+ if (runtimeVersion) headers["x-runtime-version"] = runtimeVersion;
1056
+ headers["x-sdk-version"] = valid.version;
1057
+ if (valid.source !== void 0) headers["x-source"] = valid.source;
1058
+ if (valid.framework !== void 0) headers["x-framework"] = valid.framework;
1059
+ return {
1060
+ headers,
1061
+ reserved: IDENTITY_RESERVED
1062
+ };
1063
+ };
1064
+ /**
1065
+ * Refuses a generic header source that names an identity header, whether it
1066
+ * sets one or deletes one with `null`. Constructor validation runs it over
1067
+ * `defaultHeaders`; request validation over a call's `headers`, before any
1068
+ * network work.
1069
+ */
1070
+ const assertNoReservedHeaders = (headers, identity, option) => {
1071
+ if (!headers) return;
1072
+ for (const name of headerNames(headers)) {
1073
+ if (!identity.reserved.has(name)) continue;
1074
+ const owner = PACKAGE_RESERVED.has(name) ? "the client" : "`identity`";
1075
+ throw new ComposioError(`The \`${name}\` header is set by ${owner} and cannot be passed in \`${option}\`.` + (owner === "`identity`" ? "" : " Pass `identity` to describe the calling product."));
1076
+ }
1077
+ };
1078
+
1079
+ //#endregion
1080
+ //#region src/compat/transport.ts
1081
+ const KERNEL_OWNED_KEYS = [
1082
+ "method",
1083
+ "headers",
1084
+ "body",
1085
+ "signal",
1086
+ "redirect"
1087
+ ];
1088
+ const assertSafeDefaults = (defaults) => {
1089
+ if (defaults === void 0) return;
1090
+ const owned = KERNEL_OWNED_KEYS.find((key) => key in defaults);
1091
+ if (owned !== void 0) throw new TypeError(`Fetch transport defaults cannot set kernel-owned '${owned}'`);
1092
+ };
1093
+ /**
1094
+ * Where the kernel leaves the `RequestInit` it built a `Request` from, so a
1095
+ * fetch-backed transport can call `fetch(url, init)` with the original body
1096
+ * and headers rather than `fetch(request)`. The two are the same HTTP
1097
+ * exchange; the difference is what a caller watching `fetch` sees, and every
1098
+ * consumer that stubs `globalThis.fetch` reads `calls[i][1].headers`, the
1099
+ * shape the client has sent since 0.1.x. A `Request` built elsewhere carries
1100
+ * no init and is sent as it is.
1101
+ */
1102
+ const kernelInit = Symbol("composio.kernelInit");
1103
+ /** Creates a transport backed by the supplied or global fetch function. */
1104
+ const createFetchTransport = (options = {}) => {
1105
+ assertSafeDefaults(options.defaults);
1106
+ const fetchImplementation = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
1107
+ return { send: (request) => {
1108
+ const init = request[kernelInit];
1109
+ if (init === void 0) return fetchImplementation(request, options.defaults);
1110
+ return fetchImplementation(request.url, {
1111
+ ...options.defaults,
1112
+ ...init
1113
+ });
1114
+ } };
945
1115
  };
946
1116
 
947
1117
  //#endregion
@@ -1073,7 +1243,6 @@ const buildURL = (config, options) => {
1073
1243
  const url = new URL(base + joined);
1074
1244
  const query = {
1075
1245
  ...Object.fromEntries(url.searchParams),
1076
- ...config.defaultQuery,
1077
1246
  ...options.query
1078
1247
  };
1079
1248
  const search = stringifyQuery(query);
@@ -1261,7 +1430,7 @@ const kernelInternals = { sleep };
1261
1430
  */
1262
1431
  const buildRequestHeaders = (config, options, requestURL, bodyHeaders, withdrawn, scheme, callerPlaced) => {
1263
1432
  const credential = withdrawn || callerPlaced ? null : credentialForRequest(config.baseURL, scheme, config.credentials, requestURL, config.allowedHTTPOrigin);
1264
- const identity = sameOrigin(config.baseURL, requestURL) ? clientTelemetryHeaders() : void 0;
1433
+ const identity = sameOrigin(config.baseURL, requestURL) ? config.identity.headers : void 0;
1265
1434
  if (!withdrawn && bodyHeaders === void 0 && !config.defaultHeaders && !options.headers && options.idempotencyKey === void 0) {
1266
1435
  const direct = new Headers({
1267
1436
  ...identity,
@@ -1323,8 +1492,7 @@ const schemeForRequest = (config, operation) => {
1323
1492
  * Everything the server chose is re-derived rather than carried: the headers
1324
1493
  * (see `buildRequestHeaders`), the method and body (fetch's own 301/302/303
1325
1494
  * rewrite), and the query, which is left to the `Location` URL because the
1326
- * server picked it. `config.defaultQuery` is applied to the URL the caller
1327
- * asked for, not to the one it was sent to.
1495
+ * server picked it.
1328
1496
  */
1329
1497
  const dispatchWithRedirects = async (config, options, initialURL, initialBody, initialBodyHeaders, signal, scheme) => {
1330
1498
  let url = initialURL;
@@ -1340,12 +1508,11 @@ const dispatchWithRedirects = async (config, options, initialURL, initialBody, i
1340
1508
  method,
1341
1509
  headers,
1342
1510
  ...body !== void 0 ? { body } : {},
1343
- ...config.fetchOptions,
1344
- ...options.fetchOptions,
1345
1511
  redirect: delegated ? "follow" : "manual",
1346
1512
  signal
1347
1513
  };
1348
- const response = config.transport === void 0 ? await config.fetch.call(void 0, url, init) : await settleOnAbort(config.transport.send(new Request(url, init)), signal);
1514
+ const request = Object.assign(new Request(url, init), { [kernelInit]: init });
1515
+ const response = await settleOnAbort(config.transport.send(request), signal);
1349
1516
  if (delegated) return response;
1350
1517
  if (isOpaqueRedirect(response)) throw new APIConnectionError({ message: OPAQUE_REDIRECT });
1351
1518
  if (!REDIRECT_STATUSES.has(response.status)) return response;
@@ -1380,6 +1547,7 @@ const dispatchWithRedirects = async (config, options, initialURL, initialBody, i
1380
1547
  * which is what `deprecation.ts` resolves relative `Link` targets against.
1381
1548
  */
1382
1549
  async function makeRequest(config, options) {
1550
+ assertNoReservedHeaders(options.headers, config.identity, "headers");
1383
1551
  if (options.timeout !== void 0) validatePositiveInteger("timeout", options.timeout);
1384
1552
  const maxRetries = options.maxRetries ?? config.maxRetries;
1385
1553
  validatePositiveInteger("maxRetries", maxRetries);
@@ -2310,4 +2478,4 @@ const generatedOperation = (chainKey) => {
2310
2478
  };
2311
2479
 
2312
2480
  //#endregion
2313
- export { resolveHTTPURL as A, inspectDeprecation as C, callerPlacedCredential as D, assertCredentialTransport as E, mergeHeaders as M, carriesCredentials as O, inspectDeprecatedInputs as S, SCHEME_HEADERS as T, schemeForRequest as _, TOO_MANY_REDIRECTS as a, withOperation as b, buildURL as c, path as d, printableURL as f, safeJSON as g, rewriteForRedirect as h, REDIRECT_STATUSES as i, buildHeaders as j, parseHTTPURL as k, castToError as l, retryDelayMillis as m, generatedOperation as n, buildBody as o, readOperation as p, OPAQUE_REDIRECT as r, buildRequestHeaders as s, GENERATED_OPERATIONS as t, makeRequest as u, shouldRetryResponse as v, matchOperation as w, VERSION as x, validatePositiveInteger as y };
2481
+ export { callerPlacedCredential as A, resolveIdentity as C, matchOperation as D, inspectDeprecation as E, mergeHeaders as F, parseHTTPURL as M, resolveHTTPURL as N, SCHEME_HEADERS as O, buildHeaders as P, assertNoReservedHeaders as S, inspectDeprecatedInputs as T, schemeForRequest as _, TOO_MANY_REDIRECTS as a, withOperation as b, buildURL as c, path as d, printableURL as f, safeJSON as g, rewriteForRedirect as h, REDIRECT_STATUSES as i, carriesCredentials as j, assertCredentialTransport as k, castToError as l, retryDelayMillis as m, generatedOperation as n, buildBody as o, readOperation as p, OPAQUE_REDIRECT as r, buildRequestHeaders as s, GENERATED_OPERATIONS as t, makeRequest as u, shouldRetryResponse as v, VERSION as w, createFetchTransport as x, validatePositiveInteger as y };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $r as SessionCreateResponse, Ai as createFetchTransport, Bi as ConflictError, Ci as FileDeleteResponse, Di as RequestOptions, Ei as Files, Fi as APIErrorBody, Gi as UnprocessableEntityError, Hi as NotFoundError, Ii as APIUserAbortError, Jr as SessionAttachParams, Ki as APIPromise, Kr as ToolRouter, Li as AuthenticationError, Mi as APIConnectionError, Ni as APIConnectionTimeoutError, Oi as FetchTransportDefaults, Pi as APIError, Qr as SessionCreateParams, Ri as BadRequestError, Si as FileDeleteParams, Ti as FileListResponse, Ui as PermissionDeniedError, Vi as InternalServerError, Wi as RateLimitError, Xr as SessionConfigHistoryParams, Yr as SessionAttachResponse, Zr as SessionConfigHistoryResponse, _i as SessionToolsResponse, a as ClientOptions, ai as SessionLinkParams, bi as FileCreateUploadURLParams, c as LogLevel, ci as SessionPatchResponse, di as SessionRetrieveResponse, ei as SessionDeleteResponse, fi as SessionSearchParams, gi as SessionToolsParams, hi as SessionToolkitsResponse, ii as SessionExecuteResponse, ki as Transport, l as Logger, li as SessionProxyExecuteParams, mi as SessionToolkitsParams, ni as SessionExecuteMetaResponse, o as Composio, oi as SessionLinkResponse, pi as SessionSearchResponse, qr as Session, ri as SessionExecuteParams, s as EnvironmentMap, si as SessionPatchParams, ti as SessionExecuteMetaParams, ui as SessionProxyExecuteResponse, vi as FileCreateDownloadURLParams, wi as FileListParams, xi as FileCreateUploadURLResponse, yi as FileCreateDownloadURLResponse, zi as ComposioError } from "./session-configs-CtHZk-vG.mjs";
2
- import { t as VERSION } from "./version-CuFIok56.mjs";
3
- export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, 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 };
1
+ import { $r as SessionCreateResponse, Ai as createFetchTransport, Bi as ComposioError, Ci as FileDeleteResponse, Di as RequestOptions, Ei as Files, Fi as APIError, Gi as RateLimitError, Hi as InternalServerError, Ii as APIErrorBody, Jr as SessionAttachParams, Ki as UnprocessableEntityError, Kr as ToolRouter, Li as APIUserAbortError, Ni as APIConnectionError, Oi as FetchTransportDefaults, Pi as APIConnectionTimeoutError, Qr as SessionCreateParams, Ri as AuthenticationError, Si as FileDeleteParams, Ti as FileListResponse, Ui as NotFoundError, Vi as ConflictError, Wi as PermissionDeniedError, Xr as SessionConfigHistoryParams, Yr as SessionAttachResponse, Zr as SessionConfigHistoryResponse, _i as SessionToolsResponse, a as ClientOptions, ai as SessionLinkParams, bi as FileCreateUploadURLParams, c as LogLevel, ci as SessionPatchResponse, di as SessionRetrieveResponse, ei as SessionDeleteResponse, fi as SessionSearchParams, gi as SessionToolsParams, hi as SessionToolkitsResponse, ii as SessionExecuteResponse, ji as ClientIdentity, ki as Transport, l as Logger, li as SessionProxyExecuteParams, mi as SessionToolkitsParams, ni as SessionExecuteMetaResponse, o as Composio, oi as SessionLinkResponse, pi as SessionSearchResponse, qi as APIPromise, qr as Session, ri as SessionExecuteParams, s as EnvironmentMap, si as SessionPatchParams, ti as SessionExecuteMetaParams, ui as SessionProxyExecuteResponse, vi as FileCreateDownloadURLParams, wi as FileListParams, xi as FileCreateUploadURLResponse, yi as FileCreateDownloadURLResponse, zi as BadRequestError } from "./session-configs-nA6TL_i4.mjs";
2
+ import { t as VERSION } from "./version-DUxhnnPj.mjs";
3
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, type ClientIdentity, 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,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-D9cG225M.mjs";
2
- import { C as inspectDeprecation, E as assertCredentialTransport, M as mergeHeaders, S as inspectDeprecatedInputs, k as parseHTTPURL, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, x as VERSION } from "./generated-operations-lxo6Uhzh.mjs";
3
- import { t as Custom } from "./custom-DaAJruvk.mjs";
4
- import { t as ApiKeyRevocation } from "./api-key-revocation-CBTqyv77.mjs";
5
- import { t as AuthConfigs } from "./auth-configs-V7U1YdOd.mjs";
6
- import { t as Auth } from "./auth-YEGyiIZI.mjs";
7
- import { t as Cli } from "./cli-BR9p7AMA.mjs";
8
- import { t as ConnectedAccounts } from "./connected-accounts-DyxruL1q.mjs";
9
- import { t as Files$1 } from "./files-Cs1Y7Oz6.mjs";
10
- import { t as Keyring } from "./keyring-CaSbeDWI.mjs";
11
- import { t as Link } from "./link-BsD-BXnp.mjs";
12
- import { t as Logs } from "./logs-CKWNAUJD.mjs";
13
- import { t as Mcp } from "./mcp-BLaouUUs.mjs";
2
+ import { C as resolveIdentity, E as inspectDeprecation, F as mergeHeaders, M as parseHTTPURL, S as assertNoReservedHeaders, T as inspectDeprecatedInputs, k as assertCredentialTransport, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as VERSION, x as createFetchTransport } from "./generated-operations-D1e__yar.mjs";
3
+ import { t as ApiKeyRevocation } from "./api-key-revocation-lc3308Ao.mjs";
4
+ import { t as AuthConfigs } from "./auth-configs-DbxqGahP.mjs";
5
+ import { t as Auth } from "./auth-DkGiEaxg.mjs";
6
+ import { t as Cli } from "./cli-K1MskpaR.mjs";
7
+ import { t as ConnectedAccounts } from "./connected-accounts-Bfl7_SY_.mjs";
8
+ import { t as Custom } from "./custom-8rs-sHnb.mjs";
9
+ import { t as Files$1 } from "./files-BjPFzRnM.mjs";
10
+ import { t as Keyring } from "./keyring-Dkm6DQIp.mjs";
11
+ import { t as Link } from "./link-BBU-J5L_.mjs";
12
+ import { t as Logs } from "./logs-CuuysWk1.mjs";
13
+ import { t as Mcp } from "./mcp-C3beSy48.mjs";
14
14
  import { t as Migration } from "./migration-CBhnoN-Y.mjs";
15
- import { t as Org } from "./org-Cw6PQdvF.mjs";
16
- import { t as Project } from "./project-BdAUzLDU.mjs";
15
+ import { t as Org } from "./org-B13XOuKh.mjs";
16
+ import { t as Project } from "./project-CDm8tjUw.mjs";
17
17
  import { SessionConfigs } from "./resources/session-configs.mjs";
18
- import { t as Files } from "./files-Bx7TZpgo.mjs";
19
- import { t as Session } from "./session-DcTM2Dmm.mjs";
20
- import { t as ToolRouter } from "./tool-router-BTK7Mzi8.mjs";
21
- import { t as Toolkits } from "./toolkits-DqOLVQhl.mjs";
22
- import { t as Tools } from "./tools-DmZteN_Z.mjs";
23
- import { t as TriggerInstances } from "./trigger-instances--9zM_0OP.mjs";
24
- import { t as TriggersTypes } from "./triggers-types-BP340boz.mjs";
25
- import { t as WebhookEndpoints } from "./webhook-endpoints-BMe7DyIe.mjs";
26
- import { t as WebhookSubscriptions } from "./webhook-subscriptions-BHpY2cSc.mjs";
27
- import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-BggrSLuP.mjs";
18
+ import { t as Files } from "./files-BPKJXlpc.mjs";
19
+ import { t as Session } from "./session-DEfDnHZZ.mjs";
20
+ import { t as ToolRouter } from "./tool-router-6l_dREjC.mjs";
21
+ import { t as Toolkits } from "./toolkits-Mn_uLV98.mjs";
22
+ import { t as Tools } from "./tools-btk0mzFP.mjs";
23
+ import { t as TriggerInstances } from "./trigger-instances-PQaObQQy.mjs";
24
+ import { t as TriggersTypes } from "./triggers-types-KoRbT0k5.mjs";
25
+ import { t as WebhookEndpoints } from "./webhook-endpoints-kf4Jj2Mz.mjs";
26
+ import { t as WebhookSubscriptions } from "./webhook-subscriptions-DcYN8qo1.mjs";
27
+ import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs--L5LHDO_.mjs";
28
28
 
29
29
  //#region src/compat/generated-resource-wiring.ts
30
30
  const createClientResources = (client) => ({
@@ -110,7 +110,6 @@ const resolveBaseURL = (options, readEnvironment, hasExplicitEnvironment) => {
110
110
  return readEnvironment("COMPOSIO_BASE_URL") ?? null;
111
111
  };
112
112
  const resolveClientOptions = (input) => {
113
- if (input.transport !== void 0 && (input.fetch !== void 0 || input.fetchOptions !== void 0)) throw new ComposioError("The `transport` option cannot be combined with `fetch` or `fetchOptions`");
114
113
  const hasExplicitEnvironment = input[environmentReader] !== void 0;
115
114
  const readEnvironment = input[environmentReader] ?? readEnv;
116
115
  const baseURL = resolveBaseURL(input, readEnvironment, hasExplicitEnvironment);
@@ -142,10 +141,9 @@ var Composio = class Composio {
142
141
  timeout;
143
142
  logger;
144
143
  logLevel;
145
- fetchOptions;
146
- #fetch;
147
144
  #transport;
148
145
  #options;
146
+ #identity;
149
147
  /**
150
148
  * The (operation, notice) pairs, and separately the (operation, deprecated
151
149
  * input set) pairs, this instance has already warned about — one Set shared
@@ -163,14 +161,14 @@ var Composio = class Composio {
163
161
  #deprecationSeen = /* @__PURE__ */ new Set();
164
162
  constructor(input = {}) {
165
163
  const options = resolveClientOptions(input);
164
+ this.#identity = resolveIdentity(options.identity);
165
+ assertNoReservedHeaders(options.defaultHeaders, this.#identity, "defaultHeaders");
166
166
  this.baseURL = options.baseURL || environments[options.environment];
167
167
  this.timeout = options.timeout ?? Composio.DEFAULT_TIMEOUT;
168
168
  this.logger = options.logger ?? console;
169
169
  this.logLevel = options.logLevel;
170
- this.fetchOptions = options.fetchOptions;
171
170
  this.maxRetries = options.maxRetries ?? 2;
172
- this.#fetch = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
173
- this.#transport = options.transport;
171
+ this.#transport = options.transport ?? createFetchTransport();
174
172
  options.allowedHTTPOrigin = options.allowInsecureHTTP ? options.allowedHTTPOrigin ?? parseHTTPURL(this.baseURL)?.origin ?? null : null;
175
173
  this.#options = options;
176
174
  this.apiKey = options.apiKey;
@@ -196,12 +194,7 @@ var Composio = class Composio {
196
194
  }
197
195
  /** Returns a new client reusing the current options with `options` merged over them. */
198
196
  withOptions(options) {
199
- const hasFetch = Object.hasOwn(options, "fetch");
200
- const hasFetchOptions = Object.hasOwn(options, "fetchOptions");
201
- const replacesTransport = hasFetch || hasFetchOptions;
202
- const transport = Object.hasOwn(options, "transport") ? options.transport : replacesTransport ? void 0 : this.#transport;
203
- const fetch = transport === void 0 ? hasFetch ? options.fetch : this.#fetch : void 0;
204
- const fetchOptions = transport === void 0 ? hasFetchOptions ? options.fetchOptions : this.fetchOptions : void 0;
197
+ const transport = Object.hasOwn(options, "transport") ? options.transport : this.#transport;
205
198
  const allowedHTTPOrigin = options.allowInsecureHTTP === true ? void 0 : this.#options.allowedHTTPOrigin;
206
199
  const derivedOptions = {
207
200
  ...this.#options,
@@ -216,9 +209,7 @@ var Composio = class Composio {
216
209
  orgApiKey: this.orgApiKey,
217
210
  ...options,
218
211
  allowedHTTPOrigin,
219
- transport,
220
- fetch,
221
- fetchOptions
212
+ transport
222
213
  };
223
214
  const client = new this.constructor(derivedOptions);
224
215
  client.#deprecationSeen = this.#deprecationSeen;
@@ -298,11 +289,9 @@ var Composio = class Composio {
298
289
  maxRetries: this.maxRetries,
299
290
  timeout: this.timeout,
300
291
  userAgent: `${this.constructor.name}/JS ${VERSION}`,
301
- fetch: this.#fetch,
302
292
  transport: this.#transport,
303
293
  defaultHeaders: this.#options.defaultHeaders,
304
- defaultQuery: this.#options.defaultQuery,
305
- fetchOptions: this.fetchOptions,
294
+ identity: this.#identity,
306
295
  ...lifecycleLoggingEnabled ? { onLog: this.#onKernelLog } : {},
307
296
  onResponse: this.#onKernelResponse,
308
297
  onRequest: this.#onKernelRequest
@@ -364,26 +353,5 @@ Composio.ApiKeyRevocation = ApiKeyRevocation;
364
353
  Composio.Custom = Custom;
365
354
  Composio.Keyring = Keyring;
366
355
 
367
- //#endregion
368
- //#region src/compat/transport.ts
369
- const KERNEL_OWNED_KEYS = [
370
- "method",
371
- "headers",
372
- "body",
373
- "signal",
374
- "redirect"
375
- ];
376
- const assertSafeDefaults = (defaults) => {
377
- if (defaults === void 0) return;
378
- const owned = KERNEL_OWNED_KEYS.find((key) => key in defaults);
379
- if (owned !== void 0) throw new TypeError(`Fetch transport defaults cannot set kernel-owned '${owned}'`);
380
- };
381
- /** Creates a transport backed by the supplied or global fetch function. */
382
- const createFetchTransport = (options = {}) => {
383
- assertSafeDefaults(options.defaults);
384
- const fetchImplementation = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
385
- return { send: (request) => fetchImplementation(request, options.defaults) };
386
- };
387
-
388
356
  //#endregion
389
357
  export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, Files, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, Session, ToolRouter, UnprocessableEntityError, VERSION, createFetchTransport };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.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 { b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.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 { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
2
- import { t as Triggers } from "./triggers-DVow72wn.mjs";
3
- import { t as Tools } from "./tools-BuSJLTWS.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-D1e__yar.mjs";
2
+ import { t as Triggers } from "./triggers-y0mi0XzT.mjs";
3
+ import { t as Tools } from "./tools-z-PjBsf7.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 { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-D1e__yar.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 { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
2
- import { t as Custom } from "./custom-DNPJxZK5.mjs";
3
- import { t as Generate } from "./generate-gyrqQd_2.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-D1e__yar.mjs";
2
+ import { t as Custom } from "./custom-wEkSiPHn.mjs";
3
+ import { t as Generate } from "./generate-DDHNgbPS.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 { b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
2
- import { t as Clanker } from "./clanker-DK892J2n.mjs";
3
- import { t as Consumer } from "./consumer-QHRVNxXs.mjs";
4
- import { t as Owner } from "./owner-DnCCAK6L.mjs";
5
- import { t as Project } from "./project-B383tf0r.mjs";
6
- import { t as Usage } from "./usage-Dv5GAePW.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.mjs";
2
+ import { t as Clanker } from "./clanker-fK9cAkTz.mjs";
3
+ import { t as Consumer } from "./consumer-5o2zMQwr.mjs";
4
+ import { t as Owner } from "./owner-BAr5uwk3.mjs";
5
+ import { t as Project } from "./project-C30H_5b6.mjs";
6
+ import { t as Usage } from "./usage-B2Z947BK.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-Dug9gbmT.mjs";
1
+ import { t as Project } from "./project-BbCgXD83.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/owner/owner.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-D1e__yar.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 { b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/project.ts
4
4
  const OP_LIST = generatedOperation("org.project.list");
@@ -1,5 +1,5 @@
1
1
  import { t as Config } from "./config-BLBbhLe1.mjs";
2
- import { t as Usage } from "./usage-BwUhfQlH.mjs";
2
+ import { t as Usage } from "./usage-DvjkSmpI.mjs";
3
3
 
4
4
  //#region src/compat/resources/project/project.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { F as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.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 { b as withOperation, n as generatedOperation } from "./generated-operations-lxo6Uhzh.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "./generated-operations-D1e__yar.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-CtHZk-vG.mjs";
1
+ import { b as ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-nA6TL_i4.mjs";
2
2
  export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
@@ -1,3 +1,3 @@
1
- import { t as ApiKeyRevocation } from "../api-key-revocation-CBTqyv77.mjs";
1
+ import { t as ApiKeyRevocation } from "../api-key-revocation-lc3308Ao.mjs";
2
2
 
3
3
  export { ApiKeyRevocation };
@@ -1,2 +1,2 @@
1
- import { S as Auth } from "../../session-configs-CtHZk-vG.mjs";
1
+ import { S as Auth } from "../../session-configs-nA6TL_i4.mjs";
2
2
  export { Auth };
@@ -1,3 +1,3 @@
1
- import { t as Auth } from "../../auth-YEGyiIZI.mjs";
1
+ import { t as Auth } from "../../auth-DkGiEaxg.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-CtHZk-vG.mjs";
1
+ import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-nA6TL_i4.mjs";
2
2
  export { Auth, Session, type SessionRetrieveInfoResponse };
@@ -1,4 +1,4 @@
1
- import { t as Session } from "../../session-CGBr6GaO.mjs";
2
- import { t as Auth } from "../../auth-YEGyiIZI.mjs";
1
+ import { t as Session } from "../../session-Dm8WtF4I.mjs";
2
+ import { t as Auth } from "../../auth-DkGiEaxg.mjs";
3
3
 
4
4
  export { Auth, Session };
@@ -1,2 +1,2 @@
1
- import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-CtHZk-vG.mjs";
1
+ import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-nA6TL_i4.mjs";
2
2
  export { Session, type SessionRetrieveInfoResponse };
@@ -1,3 +1,3 @@
1
- import { t as Session } from "../../session-CGBr6GaO.mjs";
1
+ import { t as Session } from "../../session-Dm8WtF4I.mjs";
2
2
 
3
3
  export { Session };