@squadbase/vite-server 0.1.3-dev.2 → 0.1.3-dev.3

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.
package/dist/index.js CHANGED
@@ -18863,14 +18863,14 @@ var init_NormalizedSchema = __esm({
18863
18863
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
18864
18864
  }
18865
18865
  const struct = this.getSchema();
18866
- const z73 = struct[4].length;
18866
+ const z72 = struct[4].length;
18867
18867
  let it = struct[anno.it];
18868
- if (it && z73 === it.length) {
18868
+ if (it && z72 === it.length) {
18869
18869
  yield* it;
18870
18870
  return;
18871
18871
  }
18872
- it = Array(z73);
18873
- for (let i6 = 0; i6 < z73; ++i6) {
18872
+ it = Array(z72);
18873
+ for (let i6 = 0; i6 < z72; ++i6) {
18874
18874
  const k6 = struct[4][i6];
18875
18875
  const v7 = member([struct[5][i6], 0], k6);
18876
18876
  yield it[i6] = [k6, v7];
@@ -19546,12 +19546,12 @@ var init_split_header = __esm({
19546
19546
  "../../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js"() {
19547
19547
  "use strict";
19548
19548
  splitHeader = (value) => {
19549
- const z73 = value.length;
19549
+ const z72 = value.length;
19550
19550
  const values = [];
19551
19551
  let withinQuotes = false;
19552
19552
  let prevChar = void 0;
19553
19553
  let anchor = 0;
19554
- for (let i6 = 0; i6 < z73; ++i6) {
19554
+ for (let i6 = 0; i6 < z72; ++i6) {
19555
19555
  const char = value[i6];
19556
19556
  switch (char) {
19557
19557
  case `"`:
@@ -19572,12 +19572,12 @@ var init_split_header = __esm({
19572
19572
  values.push(value.slice(anchor));
19573
19573
  return values.map((v7) => {
19574
19574
  v7 = v7.trim();
19575
- const z74 = v7.length;
19576
- if (z74 < 2) {
19575
+ const z73 = v7.length;
19576
+ if (z73 < 2) {
19577
19577
  return v7;
19578
19578
  }
19579
- if (v7[0] === `"` && v7[z74 - 1] === `"`) {
19580
- v7 = v7.slice(1, z74 - 1);
19579
+ if (v7[0] === `"` && v7[z73 - 1] === `"`) {
19580
+ v7 = v7.slice(1, z73 - 1);
19581
19581
  }
19582
19582
  return v7.replace(/\\"/g, '"');
19583
19583
  });
@@ -20975,11 +20975,11 @@ var init_EndpointCache = __esm({
20975
20975
  }
20976
20976
  hash(endpointParams) {
20977
20977
  let buffer = "";
20978
- const { parameters: parameters60 } = this;
20979
- if (parameters60.length === 0) {
20978
+ const { parameters: parameters59 } = this;
20979
+ if (parameters59.length === 0) {
20980
20980
  return false;
20981
20981
  }
20982
- for (const param of parameters60) {
20982
+ for (const param of parameters59) {
20983
20983
  const val = String(endpointParams[param] ?? "");
20984
20984
  if (val.includes("|;")) {
20985
20985
  return false;
@@ -21696,15 +21696,15 @@ var init_resolveEndpoint = __esm({
21696
21696
  init_utils();
21697
21697
  resolveEndpoint = (ruleSetObject, options) => {
21698
21698
  const { endpointParams, logger: logger2 } = options;
21699
- const { parameters: parameters60, rules } = ruleSetObject;
21699
+ const { parameters: parameters59, rules } = ruleSetObject;
21700
21700
  options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
21701
- const paramsWithDefault = Object.entries(parameters60).filter(([, v7]) => v7.default != null).map(([k6, v7]) => [k6, v7.default]);
21701
+ const paramsWithDefault = Object.entries(parameters59).filter(([, v7]) => v7.default != null).map(([k6, v7]) => [k6, v7.default]);
21702
21702
  if (paramsWithDefault.length > 0) {
21703
21703
  for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
21704
21704
  endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
21705
21705
  }
21706
21706
  }
21707
- const requiredParams = Object.entries(parameters60).filter(([, v7]) => v7.required).map(([k6]) => k6);
21707
+ const requiredParams = Object.entries(parameters59).filter(([, v7]) => v7.required).map(([k6]) => k6);
21708
21708
  for (const requiredParam of requiredParams) {
21709
21709
  if (endpointParams[requiredParam] == null) {
21710
21710
  throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
@@ -27314,8 +27314,8 @@ var init_ProtocolLib = __esm({
27314
27314
  constructor(queryCompat = false) {
27315
27315
  this.queryCompat = queryCompat;
27316
27316
  }
27317
- resolveRestContentType(defaultContentType, inputSchema70) {
27318
- const members = inputSchema70.getMemberSchemas();
27317
+ resolveRestContentType(defaultContentType, inputSchema69) {
27318
+ const members = inputSchema69.getMemberSchemas();
27319
27319
  const httpPayloadMember = Object.values(members).find((m6) => {
27320
27320
  return !!m6.getMergedTraits().httpPayload;
27321
27321
  });
@@ -27330,7 +27330,7 @@ var init_ProtocolLib = __esm({
27330
27330
  } else {
27331
27331
  return defaultContentType;
27332
27332
  }
27333
- } else if (!inputSchema70.isUnitSchema()) {
27333
+ } else if (!inputSchema69.isUnitSchema()) {
27334
27334
  const hasBody = Object.values(members).find((m6) => {
27335
27335
  const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m6.getMergedTraits();
27336
27336
  const noPrefixHeaders = httpPrefixHeaders === void 0;
@@ -28173,9 +28173,9 @@ var init_AwsRestJsonProtocol = __esm({
28173
28173
  }
28174
28174
  async serializeRequest(operationSchema, input, context) {
28175
28175
  const request2 = await super.serializeRequest(operationSchema, input, context);
28176
- const inputSchema70 = NormalizedSchema.of(operationSchema.input);
28176
+ const inputSchema69 = NormalizedSchema.of(operationSchema.input);
28177
28177
  if (!request2.headers["content-type"]) {
28178
- const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema70);
28178
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema69);
28179
28179
  if (contentType) {
28180
28180
  request2.headers["content-type"] = contentType;
28181
28181
  }
@@ -28187,8 +28187,8 @@ var init_AwsRestJsonProtocol = __esm({
28187
28187
  }
28188
28188
  async deserializeResponse(operationSchema, context, response) {
28189
28189
  const output = await super.deserializeResponse(operationSchema, context, response);
28190
- const outputSchema70 = NormalizedSchema.of(operationSchema.output);
28191
- for (const [name, member2] of outputSchema70.structIterator()) {
28190
+ const outputSchema69 = NormalizedSchema.of(operationSchema.output);
28191
+ for (const [name, member2] of outputSchema69.structIterator()) {
28192
28192
  if (member2.getMemberTraits().httpPayload && !(name in output)) {
28193
28193
  output[name] = null;
28194
28194
  }
@@ -31223,14 +31223,14 @@ var init_protocols2 = __esm({
31223
31223
  });
31224
31224
 
31225
31225
  // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js
31226
- var w, x, y, z44, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, _data, ruleSet;
31226
+ var w, x, y, z43, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, _data, ruleSet;
31227
31227
  var init_ruleset = __esm({
31228
31228
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js"() {
31229
31229
  "use strict";
31230
31230
  w = "required";
31231
31231
  x = "fn";
31232
31232
  y = "argv";
31233
- z44 = "ref";
31233
+ z43 = "ref";
31234
31234
  a = true;
31235
31235
  b = "isSet";
31236
31236
  c = "booleanEquals";
@@ -31242,13 +31242,13 @@ var init_ruleset = __esm({
31242
31242
  i = "stringEquals";
31243
31243
  j = { [w]: false, type: "string" };
31244
31244
  k = { [w]: true, default: false, type: "boolean" };
31245
- l = { [z44]: "Endpoint" };
31246
- m = { [x]: c, [y]: [{ [z44]: "UseFIPS" }, true] };
31247
- n = { [x]: c, [y]: [{ [z44]: "UseDualStack" }, true] };
31245
+ l = { [z43]: "Endpoint" };
31246
+ m = { [x]: c, [y]: [{ [z43]: "UseFIPS" }, true] };
31247
+ n = { [x]: c, [y]: [{ [z43]: "UseDualStack" }, true] };
31248
31248
  o = {};
31249
- p = { [z44]: "Region" };
31250
- q = { [x]: h, [y]: [{ [z44]: g }, "supportsFIPS"] };
31251
- r = { [z44]: g };
31249
+ p = { [z43]: "Region" };
31250
+ q = { [x]: h, [y]: [{ [z43]: g }, "supportsFIPS"] };
31251
+ r = { [z43]: g };
31252
31252
  s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] };
31253
31253
  t = [m];
31254
31254
  u = [n];
@@ -32052,22 +32052,22 @@ var init_loadCognitoIdentity = __esm({
32052
32052
  });
32053
32053
 
32054
32054
  // ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentity.js
32055
- function fromCognitoIdentity(parameters60) {
32055
+ function fromCognitoIdentity(parameters59) {
32056
32056
  return async (awsIdentityProperties) => {
32057
- parameters60.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
32057
+ parameters59.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
32058
32058
  const { GetCredentialsForIdentityCommand: GetCredentialsForIdentityCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports));
32059
- const fromConfigs = (property) => parameters60.clientConfig?.[property] ?? parameters60.parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property];
32060
- const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(parameters60.logger), Expiration, SecretKey = throwOnMissingSecretKey(parameters60.logger), SessionToken } = throwOnMissingCredentials(parameters60.logger) } = await (parameters60.client ?? new CognitoIdentityClient2(Object.assign({}, parameters60.clientConfig ?? {}, {
32059
+ const fromConfigs = (property) => parameters59.clientConfig?.[property] ?? parameters59.parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property];
32060
+ const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(parameters59.logger), Expiration, SecretKey = throwOnMissingSecretKey(parameters59.logger), SessionToken } = throwOnMissingCredentials(parameters59.logger) } = await (parameters59.client ?? new CognitoIdentityClient2(Object.assign({}, parameters59.clientConfig ?? {}, {
32061
32061
  region: fromConfigs("region"),
32062
32062
  profile: fromConfigs("profile"),
32063
32063
  userAgentAppId: fromConfigs("userAgentAppId")
32064
32064
  }))).send(new GetCredentialsForIdentityCommand2({
32065
- CustomRoleArn: parameters60.customRoleArn,
32066
- IdentityId: parameters60.identityId,
32067
- Logins: parameters60.logins ? await resolveLogins(parameters60.logins) : void 0
32065
+ CustomRoleArn: parameters59.customRoleArn,
32066
+ IdentityId: parameters59.identityId,
32067
+ Logins: parameters59.logins ? await resolveLogins(parameters59.logins) : void 0
32068
32068
  }));
32069
32069
  return {
32070
- identityId: parameters60.identityId,
32070
+ identityId: parameters59.identityId,
32071
32071
  accessKeyId: AccessKeyId,
32072
32072
  secretAccessKey: SecretKey,
32073
32073
  sessionToken: SessionToken,
@@ -32695,7 +32695,7 @@ var init_EndpointParameters2 = __esm({
32695
32695
  });
32696
32696
 
32697
32697
  // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js
32698
- var F, G, H, I, J, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2, q2, r2, s2, t2, u2, v2, w2, x2, y2, z45, A, B, C, D, E, _data2, ruleSet2;
32698
+ var F, G, H, I, J, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2, q2, r2, s2, t2, u2, v2, w2, x2, y2, z44, A, B, C, D, E, _data2, ruleSet2;
32699
32699
  var init_ruleset2 = __esm({
32700
32700
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js"() {
32701
32701
  "use strict";
@@ -32733,7 +32733,7 @@ var init_ruleset2 = __esm({
32733
32733
  w2 = { conditions: [{ [H]: d2, [I]: [q2, "aws-global"] }], [h2]: u2, [G]: h2 };
32734
32734
  x2 = { [H]: c2, [I]: [s2, true] };
32735
32735
  y2 = { [H]: c2, [I]: [t2, true] };
32736
- z45 = { [H]: l2, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
32736
+ z44 = { [H]: l2, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
32737
32737
  A = { [J]: "PartitionResult" };
32738
32738
  B = { [H]: c2, [I]: [true, { [H]: l2, [I]: [A, "supportsDualStack"] }] };
32739
32739
  C = [{ [H]: "isSet", [I]: [o2] }];
@@ -32799,7 +32799,7 @@ var init_ruleset2 = __esm({
32799
32799
  conditions: [x2, y2],
32800
32800
  rules: [
32801
32801
  {
32802
- conditions: [{ [H]: c2, [I]: [b2, z45] }, B],
32802
+ conditions: [{ [H]: c2, [I]: [b2, z44] }, B],
32803
32803
  rules: [
32804
32804
  {
32805
32805
  endpoint: {
@@ -32820,7 +32820,7 @@ var init_ruleset2 = __esm({
32820
32820
  conditions: D,
32821
32821
  rules: [
32822
32822
  {
32823
- conditions: [{ [H]: c2, [I]: [z45, b2] }],
32823
+ conditions: [{ [H]: c2, [I]: [z44, b2] }],
32824
32824
  rules: [
32825
32825
  {
32826
32826
  conditions: [{ [H]: d2, [I]: [{ [H]: l2, [I]: [A, "name"] }, "aws-us-gov"] }],
@@ -44628,11 +44628,11 @@ var require_bignumber = __commonJS({
44628
44628
  return n6 > 0 || n6 === i6 ? i6 : i6 - 1;
44629
44629
  }
44630
44630
  function coeffToString(a6) {
44631
- var s6, z73, i6 = 1, j6 = a6.length, r6 = a6[0] + "";
44631
+ var s6, z72, i6 = 1, j6 = a6.length, r6 = a6[0] + "";
44632
44632
  for (; i6 < j6; ) {
44633
44633
  s6 = a6[i6++] + "";
44634
- z73 = LOG_BASE - s6.length;
44635
- for (; z73--; s6 = "0" + s6) ;
44634
+ z72 = LOG_BASE - s6.length;
44635
+ for (; z72--; s6 = "0" + s6) ;
44636
44636
  r6 += s6;
44637
44637
  }
44638
44638
  for (j6 = r6.length; r6.charCodeAt(--j6) === 48; ) ;
@@ -44665,15 +44665,15 @@ var require_bignumber = __commonJS({
44665
44665
  function toExponential(str, e6) {
44666
44666
  return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e6 < 0 ? "e" : "e+") + e6;
44667
44667
  }
44668
- function toFixedPoint(str, e6, z73) {
44668
+ function toFixedPoint(str, e6, z72) {
44669
44669
  var len, zs;
44670
44670
  if (e6 < 0) {
44671
- for (zs = z73 + "."; ++e6; zs += z73) ;
44671
+ for (zs = z72 + "."; ++e6; zs += z72) ;
44672
44672
  str = zs + str;
44673
44673
  } else {
44674
44674
  len = str.length;
44675
44675
  if (++e6 > len) {
44676
- for (zs = z73, e6 -= len; --e6; zs += z73) ;
44676
+ for (zs = z72, e6 -= len; --e6; zs += z72) ;
44677
44677
  str += zs;
44678
44678
  } else if (e6 < len) {
44679
44679
  str = str.slice(0, e6) + "." + str.slice(e6);
@@ -77168,280 +77168,6 @@ export default async function handler(c: Context) {
77168
77168
  tools: tools38
77169
77169
  });
77170
77170
 
77171
- // ../connectors/src/connectors/trino/setup.ts
77172
- var trinoOnboarding = new ConnectorOnboarding({
77173
- dataOverviewInstructions: {
77174
- en: `1. Use executeQuery to list catalogs: \`SHOW CATALOGS\`
77175
- 2. Use executeQuery to list schemas in a catalog: \`SHOW SCHEMAS IN catalog_name\`
77176
- 3. Use executeQuery to list tables in a schema: \`SHOW TABLES IN catalog_name.schema_name\`
77177
- 4. For key tables, use executeQuery to get column info: \`DESCRIBE catalog_name.schema_name.table_name\`
77178
- 5. Sample up to 3 tables with \`SELECT * FROM catalog_name.schema_name.table_name LIMIT 5\` if column info alone is insufficient`,
77179
- ja: `1. executeQuery \u3067\u30AB\u30BF\u30ED\u30B0\u4E00\u89A7\u3092\u53D6\u5F97: \`SHOW CATALOGS\`
77180
- 2. executeQuery \u3067\u30B9\u30AD\u30FC\u30DE\u4E00\u89A7\u3092\u53D6\u5F97: \`SHOW SCHEMAS IN catalog_name\`
77181
- 3. executeQuery \u3067\u30C6\u30FC\u30D6\u30EB\u4E00\u89A7\u3092\u53D6\u5F97: \`SHOW TABLES IN catalog_name.schema_name\`
77182
- 4. \u4E3B\u8981\u30C6\u30FC\u30D6\u30EB\u306B\u3064\u3044\u3066 executeQuery \u3067\u30AB\u30E9\u30E0\u60C5\u5831\u3092\u53D6\u5F97: \`DESCRIBE catalog_name.schema_name.table_name\`
77183
- 5. \u30AB\u30E9\u30E0\u60C5\u5831\u3060\u3051\u3067\u306F\u4E0D\u5341\u5206\u306A\u5834\u5408\u3001\u6700\u59273\u30C6\u30FC\u30D6\u30EB\u3092 \`SELECT * FROM catalog_name.schema_name.table_name LIMIT 5\` \u3067\u30B5\u30F3\u30D7\u30EA\u30F3\u30B0`
77184
- }
77185
- });
77186
-
77187
- // ../connectors/src/connectors/trino/parameters.ts
77188
- var parameters39 = {
77189
- host: new ParameterDefinition({
77190
- slug: "host",
77191
- name: "Trino Server URL",
77192
- description: "The Trino server URL (e.g., https://trino.example.com:8443).",
77193
- envVarBaseKey: "TRINO_HOST",
77194
- type: "text",
77195
- secret: false,
77196
- required: true
77197
- }),
77198
- user: new ParameterDefinition({
77199
- slug: "user",
77200
- name: "Trino User",
77201
- description: "The username for Trino authentication.",
77202
- envVarBaseKey: "TRINO_USER",
77203
- type: "text",
77204
- secret: false,
77205
- required: true
77206
- }),
77207
- password: new ParameterDefinition({
77208
- slug: "password",
77209
- name: "Trino Password",
77210
- description: "The password for Trino authentication. Leave empty if not required.",
77211
- envVarBaseKey: "TRINO_PASSWORD",
77212
- type: "text",
77213
- secret: true,
77214
- required: false
77215
- }),
77216
- catalog: new ParameterDefinition({
77217
- slug: "catalog",
77218
- name: "Trino Catalog",
77219
- description: "The default catalog to use (e.g., hive, iceberg, postgresql).",
77220
- envVarBaseKey: "TRINO_CATALOG",
77221
- type: "text",
77222
- secret: false,
77223
- required: false
77224
- }),
77225
- schema: new ParameterDefinition({
77226
- slug: "schema",
77227
- name: "Trino Schema",
77228
- description: "The default schema to use within the catalog.",
77229
- envVarBaseKey: "TRINO_SCHEMA",
77230
- type: "text",
77231
- secret: false,
77232
- required: false
77233
- })
77234
- };
77235
-
77236
- // ../connectors/src/connectors/trino/tools/execute-query.ts
77237
- import { z as z42 } from "zod";
77238
- var MAX_ROWS11 = 500;
77239
- var QUERY_TIMEOUT_MS4 = 6e4;
77240
- var inputSchema42 = z42.object({
77241
- toolUseIntent: z42.string().optional().describe(
77242
- "Brief description of what you intend to accomplish with this tool call"
77243
- ),
77244
- connectionId: z42.string().describe("ID of the Trino connection to use"),
77245
- sql: z42.string().describe("Trino SQL query. Always include LIMIT in queries.")
77246
- });
77247
- var outputSchema42 = z42.discriminatedUnion("success", [
77248
- z42.object({
77249
- success: z42.literal(true),
77250
- rowCount: z42.number(),
77251
- truncated: z42.boolean(),
77252
- rows: z42.array(z42.record(z42.string(), z42.unknown()))
77253
- }),
77254
- z42.object({
77255
- success: z42.literal(false),
77256
- error: z42.string()
77257
- })
77258
- ]);
77259
- var executeQueryTool11 = new ConnectorTool({
77260
- name: "executeQuery",
77261
- description: `Execute SQL against Trino. Returns up to ${MAX_ROWS11} rows.
77262
- Use for: schema exploration (SHOW CATALOGS, SHOW SCHEMAS, SHOW TABLES, DESCRIBE), data sampling, analytical queries across federated data sources.
77263
- Avoid loading large amounts of data; always include LIMIT in queries.`,
77264
- inputSchema: inputSchema42,
77265
- outputSchema: outputSchema42,
77266
- async execute({ connectionId, sql }, connections) {
77267
- const connection2 = connections.find((c6) => c6.id === connectionId);
77268
- if (!connection2) {
77269
- return {
77270
- success: false,
77271
- error: `Connection ${connectionId} not found`
77272
- };
77273
- }
77274
- console.log(
77275
- `[connector-query] trino/${connection2.name}: ${sql}`
77276
- );
77277
- let host;
77278
- try {
77279
- const { Trino, BasicAuth } = await import("trino-client");
77280
- host = parameters39.host.getValue(connection2);
77281
- const user = parameters39.user.getValue(connection2);
77282
- const password = parameters39.password.tryGetValue(connection2);
77283
- const catalog = parameters39.catalog.tryGetValue(connection2);
77284
- const schema = parameters39.schema.tryGetValue(connection2);
77285
- const trino = Trino.create({
77286
- server: host,
77287
- catalog: catalog || void 0,
77288
- schema: schema || void 0,
77289
- auth: new BasicAuth(user, password || void 0)
77290
- });
77291
- const iter = await trino.query(sql);
77292
- const columns = [];
77293
- const rows = [];
77294
- let truncated = false;
77295
- const timeout = new Promise(
77296
- (_, reject) => setTimeout(() => reject(new Error("Query timed out after 60 seconds")), QUERY_TIMEOUT_MS4)
77297
- );
77298
- const collect = async () => {
77299
- for await (const result of iter) {
77300
- if (result.columns && columns.length === 0) {
77301
- columns.push(...result.columns);
77302
- }
77303
- if (result.data) {
77304
- for (const row of result.data) {
77305
- if (rows.length >= MAX_ROWS11) {
77306
- truncated = true;
77307
- break;
77308
- }
77309
- const obj = {};
77310
- columns.forEach((col, i6) => {
77311
- obj[col.name] = row[i6];
77312
- });
77313
- rows.push(obj);
77314
- }
77315
- if (truncated) break;
77316
- }
77317
- }
77318
- };
77319
- await Promise.race([collect(), timeout]);
77320
- return {
77321
- success: true,
77322
- rowCount: rows.length,
77323
- truncated,
77324
- rows
77325
- };
77326
- } catch (err) {
77327
- let msg = err instanceof Error ? err.message : String(err);
77328
- if (host) {
77329
- msg = msg.replaceAll(host, "***");
77330
- }
77331
- return { success: false, error: msg };
77332
- }
77333
- }
77334
- });
77335
-
77336
- // ../connectors/src/connectors/trino/index.ts
77337
- var tools39 = { executeQuery: executeQueryTool11 };
77338
- var trinoConnector = new ConnectorPlugin({
77339
- slug: "trino",
77340
- authType: null,
77341
- name: "Trino",
77342
- description: "Connect to Trino for distributed SQL query engine across federated data sources.",
77343
- iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/8jqL4EZwHKnK5QzyNWkp2/e5831a080c8192cb18fb864cabd51c23/trino.png",
77344
- parameters: parameters39,
77345
- releaseFlag: { dev1: true, dev2: false, prod: false },
77346
- onboarding: trinoOnboarding,
77347
- systemPrompt: {
77348
- en: `### Tools
77349
-
77350
- - \`trino_executeQuery\`: Executes a Trino SQL query and returns rows. Use this for schema exploration (\`SHOW CATALOGS\`, \`SHOW SCHEMAS\`, \`SHOW TABLES\`, \`DESCRIBE\`) and for sampling data. See the SQL Reference below for syntax notes.
77351
-
77352
- ### Business Logic
77353
-
77354
- The business logic type for this connector is "sql".
77355
-
77356
- ### SQL Reference
77357
- - Trino uses ANSI SQL syntax with extensions for federated queries
77358
- - Use fully qualified names: \`catalog.schema.table\` for cross-catalog queries
77359
- - Schema exploration commands:
77360
- - List catalogs: \`SHOW CATALOGS\`
77361
- - List schemas: \`SHOW SCHEMAS IN catalog_name\`
77362
- - List tables: \`SHOW TABLES IN catalog_name.schema_name\`
77363
- - List columns: \`DESCRIBE catalog_name.schema_name.table_name\`
77364
- - Table details: \`SHOW COLUMNS FROM catalog_name.schema_name.table_name\`
77365
- - INFORMATION_SCHEMA is available per catalog: \`SELECT * FROM catalog_name.information_schema.tables\`
77366
- - Always include LIMIT in queries`,
77367
- ja: `### \u30C4\u30FC\u30EB
77368
-
77369
- - \`trino_executeQuery\`: Trino SQL\u30AF\u30A8\u30EA\u3092\u5B9F\u884C\u3057\u3001\u884C\u30C7\u30FC\u30BF\u3092\u8FD4\u3057\u307E\u3059\u3002\u30B9\u30AD\u30FC\u30DE\u63A2\u7D22 (\`SHOW CATALOGS\`, \`SHOW SCHEMAS\`, \`SHOW TABLES\`, \`DESCRIBE\`) \u3084\u30C7\u30FC\u30BF\u306E\u30B5\u30F3\u30D7\u30EA\u30F3\u30B0\u306B\u4F7F\u3044\u307E\u3059\u3002\u69CB\u6587\u306E\u6CE8\u610F\u70B9\u306F\u4E0B\u90E8\u306E\u300CSQL \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u300D\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002
77370
-
77371
- ### Business Logic
77372
-
77373
- \u3053\u306E\u30B3\u30CD\u30AF\u30BF\u306E\u30D3\u30B8\u30CD\u30B9\u30ED\u30B8\u30C3\u30AF\u30BF\u30A4\u30D7\u306F "sql" \u3067\u3059\u3002
77374
-
77375
- ### SQL \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9
77376
- - Trino\u306FANSI SQL\u69CB\u6587\u3092\u4F7F\u7528\u3057\u3001\u30D5\u30A7\u30C7\u30EC\u30FC\u30C6\u30C3\u30C9\u30AF\u30A8\u30EA\u306E\u62E1\u5F35\u304C\u3042\u308A\u307E\u3059
77377
- - \u30AF\u30ED\u30B9\u30AB\u30BF\u30ED\u30B0\u30AF\u30A8\u30EA\u306B\u306F\u5B8C\u5168\u4FEE\u98FE\u540D\u3092\u4F7F\u7528: \`catalog.schema.table\`
77378
- - \u30B9\u30AD\u30FC\u30DE\u63A2\u7D22\u30B3\u30DE\u30F3\u30C9:
77379
- - \u30AB\u30BF\u30ED\u30B0\u4E00\u89A7: \`SHOW CATALOGS\`
77380
- - \u30B9\u30AD\u30FC\u30DE\u4E00\u89A7: \`SHOW SCHEMAS IN catalog_name\`
77381
- - \u30C6\u30FC\u30D6\u30EB\u4E00\u89A7: \`SHOW TABLES IN catalog_name.schema_name\`
77382
- - \u30AB\u30E9\u30E0\u4E00\u89A7: \`DESCRIBE catalog_name.schema_name.table_name\`
77383
- - \u30C6\u30FC\u30D6\u30EB\u8A73\u7D30: \`SHOW COLUMNS FROM catalog_name.schema_name.table_name\`
77384
- - INFORMATION_SCHEMA\u306F\u30AB\u30BF\u30ED\u30B0\u3054\u3068\u306B\u5229\u7528\u53EF\u80FD: \`SELECT * FROM catalog_name.information_schema.tables\`
77385
- - \u30AF\u30A8\u30EA\u306B\u306F\u5FC5\u305A LIMIT \u3092\u542B\u3081\u3066\u304F\u3060\u3055\u3044`
77386
- },
77387
- tools: tools39,
77388
- async checkConnection(params, _config) {
77389
- try {
77390
- const { Trino, BasicAuth } = await import("trino-client");
77391
- const host = params[parameters39.host.slug];
77392
- const user = params[parameters39.user.slug];
77393
- const password = params[parameters39.password.slug] || void 0;
77394
- const catalog = params[parameters39.catalog.slug] || void 0;
77395
- const schema = params[parameters39.schema.slug] || void 0;
77396
- const trino = Trino.create({
77397
- server: host,
77398
- catalog,
77399
- schema,
77400
- auth: new BasicAuth(user, password)
77401
- });
77402
- const iter = await trino.query("SELECT 1");
77403
- for await (const _result of iter) {
77404
- }
77405
- return { success: true };
77406
- } catch (error2) {
77407
- return { success: false, error: error2 instanceof Error ? error2.message : String(error2) };
77408
- }
77409
- },
77410
- async query(params, sql, namedParams) {
77411
- const resolvedSql = replaceLiteralParams(sql, namedParams);
77412
- const { Trino, BasicAuth } = await import("trino-client");
77413
- const host = params[parameters39.host.slug];
77414
- const user = params[parameters39.user.slug];
77415
- const password = params[parameters39.password.slug] || void 0;
77416
- const catalog = params[parameters39.catalog.slug] || void 0;
77417
- const schema = params[parameters39.schema.slug] || void 0;
77418
- const trino = Trino.create({
77419
- server: host,
77420
- catalog,
77421
- schema,
77422
- auth: new BasicAuth(user, password)
77423
- });
77424
- const iter = await trino.query(resolvedSql);
77425
- const columns = [];
77426
- const rows = [];
77427
- for await (const result of iter) {
77428
- if (result.columns && columns.length === 0) {
77429
- columns.push(...result.columns);
77430
- }
77431
- if (result.data) {
77432
- for (const row of result.data) {
77433
- const obj = {};
77434
- columns.forEach((col, i6) => {
77435
- obj[col.name] = row[i6];
77436
- });
77437
- rows.push(obj);
77438
- }
77439
- }
77440
- }
77441
- return { rows };
77442
- }
77443
- });
77444
-
77445
77171
  // ../connectors/src/connectors/clickhouse/setup.ts
77446
77172
  var clickhouseOnboarding = new ConnectorOnboarding({
77447
77173
  dataOverviewInstructions: {
@@ -77457,7 +77183,7 @@ var clickhouseOnboarding = new ConnectorOnboarding({
77457
77183
  });
77458
77184
 
77459
77185
  // ../connectors/src/connectors/clickhouse/parameters.ts
77460
- var parameters40 = {
77186
+ var parameters39 = {
77461
77187
  url: new ParameterDefinition({
77462
77188
  slug: "url",
77463
77189
  name: "ClickHouse Server URL",
@@ -77497,35 +77223,35 @@ var parameters40 = {
77497
77223
  };
77498
77224
 
77499
77225
  // ../connectors/src/connectors/clickhouse/tools/execute-query.ts
77500
- import { z as z43 } from "zod";
77501
- var MAX_ROWS12 = 500;
77502
- var QUERY_TIMEOUT_MS5 = 6e4;
77503
- var inputSchema43 = z43.object({
77504
- toolUseIntent: z43.string().optional().describe(
77226
+ import { z as z42 } from "zod";
77227
+ var MAX_ROWS11 = 500;
77228
+ var QUERY_TIMEOUT_MS4 = 6e4;
77229
+ var inputSchema42 = z42.object({
77230
+ toolUseIntent: z42.string().optional().describe(
77505
77231
  "Brief description of what you intend to accomplish with this tool call"
77506
77232
  ),
77507
- connectionId: z43.string().describe("ID of the ClickHouse connection to use"),
77508
- sql: z43.string().describe("ClickHouse SQL query. Always include LIMIT in queries.")
77509
- });
77510
- var outputSchema43 = z43.discriminatedUnion("success", [
77511
- z43.object({
77512
- success: z43.literal(true),
77513
- rowCount: z43.number(),
77514
- truncated: z43.boolean(),
77515
- rows: z43.array(z43.record(z43.string(), z43.unknown()))
77233
+ connectionId: z42.string().describe("ID of the ClickHouse connection to use"),
77234
+ sql: z42.string().describe("ClickHouse SQL query. Always include LIMIT in queries.")
77235
+ });
77236
+ var outputSchema42 = z42.discriminatedUnion("success", [
77237
+ z42.object({
77238
+ success: z42.literal(true),
77239
+ rowCount: z42.number(),
77240
+ truncated: z42.boolean(),
77241
+ rows: z42.array(z42.record(z42.string(), z42.unknown()))
77516
77242
  }),
77517
- z43.object({
77518
- success: z43.literal(false),
77519
- error: z43.string()
77243
+ z42.object({
77244
+ success: z42.literal(false),
77245
+ error: z42.string()
77520
77246
  })
77521
77247
  ]);
77522
- var executeQueryTool12 = new ConnectorTool({
77248
+ var executeQueryTool11 = new ConnectorTool({
77523
77249
  name: "executeQuery",
77524
- description: `Execute SQL against ClickHouse. Returns up to ${MAX_ROWS12} rows.
77250
+ description: `Execute SQL against ClickHouse. Returns up to ${MAX_ROWS11} rows.
77525
77251
  Use for: schema exploration (SHOW DATABASES, SHOW TABLES, DESCRIBE TABLE), data sampling, analytical queries on large-scale columnar data.
77526
77252
  Avoid loading large amounts of data; always include LIMIT in queries.`,
77527
- inputSchema: inputSchema43,
77528
- outputSchema: outputSchema43,
77253
+ inputSchema: inputSchema42,
77254
+ outputSchema: outputSchema42,
77529
77255
  async execute({ connectionId, sql }, connections) {
77530
77256
  const connection2 = connections.find((c6) => c6.id === connectionId);
77531
77257
  if (!connection2) {
@@ -77540,16 +77266,16 @@ Avoid loading large amounts of data; always include LIMIT in queries.`,
77540
77266
  let url;
77541
77267
  try {
77542
77268
  const { createClient } = await import("@clickhouse/client");
77543
- url = parameters40.url.getValue(connection2);
77544
- const username = parameters40.username.getValue(connection2);
77545
- const password = parameters40.password.tryGetValue(connection2);
77546
- const database = parameters40.database.tryGetValue(connection2);
77269
+ url = parameters39.url.getValue(connection2);
77270
+ const username = parameters39.username.getValue(connection2);
77271
+ const password = parameters39.password.tryGetValue(connection2);
77272
+ const database = parameters39.database.tryGetValue(connection2);
77547
77273
  const client = createClient({
77548
77274
  url,
77549
77275
  username,
77550
77276
  password: password || "",
77551
77277
  database: database || "default",
77552
- request_timeout: QUERY_TIMEOUT_MS5
77278
+ request_timeout: QUERY_TIMEOUT_MS4
77553
77279
  });
77554
77280
  try {
77555
77281
  const resultSet = await client.query({
@@ -77557,12 +77283,12 @@ Avoid loading large amounts of data; always include LIMIT in queries.`,
77557
77283
  format: "JSONEachRow"
77558
77284
  });
77559
77285
  const allRows = await resultSet.json();
77560
- const truncated = allRows.length > MAX_ROWS12;
77286
+ const truncated = allRows.length > MAX_ROWS11;
77561
77287
  return {
77562
77288
  success: true,
77563
- rowCount: Math.min(allRows.length, MAX_ROWS12),
77289
+ rowCount: Math.min(allRows.length, MAX_ROWS11),
77564
77290
  truncated,
77565
- rows: allRows.slice(0, MAX_ROWS12)
77291
+ rows: allRows.slice(0, MAX_ROWS11)
77566
77292
  };
77567
77293
  } finally {
77568
77294
  await client.close();
@@ -77578,14 +77304,14 @@ Avoid loading large amounts of data; always include LIMIT in queries.`,
77578
77304
  });
77579
77305
 
77580
77306
  // ../connectors/src/connectors/clickhouse/index.ts
77581
- var tools40 = { executeQuery: executeQueryTool12 };
77307
+ var tools39 = { executeQuery: executeQueryTool11 };
77582
77308
  var clickhouseConnector = new ConnectorPlugin({
77583
77309
  slug: "clickhouse",
77584
77310
  authType: null,
77585
77311
  name: "ClickHouse",
77586
77312
  description: "Connect to ClickHouse for high-performance columnar analytics and real-time data processing.",
77587
77313
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/MencimqP92UmucqstLl51/d9f2b6160206f5454b26e223a763ab8f/clickhouse.png",
77588
- parameters: parameters40,
77314
+ parameters: parameters39,
77589
77315
  releaseFlag: { dev1: true, dev2: false, prod: false },
77590
77316
  onboarding: clickhouseOnboarding,
77591
77317
  systemPrompt: {
@@ -77630,15 +77356,15 @@ The business logic type for this connector is "sql".
77630
77356
  - \u96C6\u8A08\u95A2\u6570: \`countIf()\`, \`sumIf()\`, \`uniq()\`, \`quantile()\`
77631
77357
  - \u30AF\u30A8\u30EA\u306B\u306F\u5FC5\u305A LIMIT \u3092\u542B\u3081\u3066\u304F\u3060\u3055\u3044`
77632
77358
  },
77633
- tools: tools40,
77359
+ tools: tools39,
77634
77360
  async checkConnection(params, _config) {
77635
77361
  try {
77636
77362
  const { createClient } = await import("@clickhouse/client");
77637
77363
  const client = createClient({
77638
- url: params[parameters40.url.slug],
77639
- username: params[parameters40.username.slug],
77640
- password: params[parameters40.password.slug] || "",
77641
- database: params[parameters40.database.slug] || "default",
77364
+ url: params[parameters39.url.slug],
77365
+ username: params[parameters39.username.slug],
77366
+ password: params[parameters39.password.slug] || "",
77367
+ database: params[parameters39.database.slug] || "default",
77642
77368
  request_timeout: 1e4
77643
77369
  });
77644
77370
  try {
@@ -77658,10 +77384,10 @@ The business logic type for this connector is "sql".
77658
77384
  const resolvedSql = replaceLiteralParams(sql, namedParams);
77659
77385
  const { createClient } = await import("@clickhouse/client");
77660
77386
  const client = createClient({
77661
- url: params[parameters40.url.slug],
77662
- username: params[parameters40.username.slug],
77663
- password: params[parameters40.password.slug] || "",
77664
- database: params[parameters40.database.slug] || "default",
77387
+ url: params[parameters39.url.slug],
77388
+ username: params[parameters39.username.slug],
77389
+ password: params[parameters39.password.slug] || "",
77390
+ database: params[parameters39.database.slug] || "default",
77665
77391
  request_timeout: 6e4
77666
77392
  });
77667
77393
  try {
@@ -77692,7 +77418,7 @@ var mongodbOnboarding = new ConnectorOnboarding({
77692
77418
  });
77693
77419
 
77694
77420
  // ../connectors/src/connectors/mongodb/parameters.ts
77695
- var parameters41 = {
77421
+ var parameters40 = {
77696
77422
  connectionUrl: new ParameterDefinition({
77697
77423
  slug: "connection-url",
77698
77424
  name: "MongoDB Connection URL",
@@ -77714,39 +77440,39 @@ var parameters41 = {
77714
77440
  };
77715
77441
 
77716
77442
  // ../connectors/src/connectors/mongodb/tools/find-documents.ts
77717
- import { z as z46 } from "zod";
77443
+ import { z as z45 } from "zod";
77718
77444
  var MAX_DOCUMENTS = 500;
77719
77445
  var CONNECT_TIMEOUT_MS4 = 1e4;
77720
- var QUERY_TIMEOUT_MS6 = 6e4;
77721
- var inputSchema44 = z46.object({
77722
- toolUseIntent: z46.string().optional().describe(
77446
+ var QUERY_TIMEOUT_MS5 = 6e4;
77447
+ var inputSchema43 = z45.object({
77448
+ toolUseIntent: z45.string().optional().describe(
77723
77449
  "Brief description of what you intend to accomplish with this tool call"
77724
77450
  ),
77725
- connectionId: z46.string().describe("ID of the MongoDB connection to use"),
77726
- collection: z46.string().describe("The name of the collection to query"),
77727
- filter: z46.string().optional().describe(
77451
+ connectionId: z45.string().describe("ID of the MongoDB connection to use"),
77452
+ collection: z45.string().describe("The name of the collection to query"),
77453
+ filter: z45.string().optional().describe(
77728
77454
  `MongoDB filter query as a JSON string (e.g., '{"status": "active"}', '{"age": {"$gt": 25}}'). Defaults to '{}' (all documents).`
77729
77455
  ),
77730
- projection: z46.string().optional().describe(
77456
+ projection: z45.string().optional().describe(
77731
77457
  `MongoDB projection as a JSON string to include/exclude fields (e.g., '{"name": 1, "email": 1}' to include only name and email).`
77732
77458
  ),
77733
- sort: z46.string().optional().describe(
77459
+ sort: z45.string().optional().describe(
77734
77460
  `MongoDB sort specification as a JSON string (e.g., '{"createdAt": -1}' for descending by createdAt).`
77735
77461
  ),
77736
- limit: z46.number().optional().describe(
77462
+ limit: z45.number().optional().describe(
77737
77463
  `Maximum number of documents to return. Defaults to ${MAX_DOCUMENTS}. Cannot exceed ${MAX_DOCUMENTS}.`
77738
77464
  )
77739
77465
  });
77740
- var outputSchema44 = z46.discriminatedUnion("success", [
77741
- z46.object({
77742
- success: z46.literal(true),
77743
- documentCount: z46.number(),
77744
- truncated: z46.boolean(),
77745
- documents: z46.array(z46.record(z46.string(), z46.unknown()))
77466
+ var outputSchema43 = z45.discriminatedUnion("success", [
77467
+ z45.object({
77468
+ success: z45.literal(true),
77469
+ documentCount: z45.number(),
77470
+ truncated: z45.boolean(),
77471
+ documents: z45.array(z45.record(z45.string(), z45.unknown()))
77746
77472
  }),
77747
- z46.object({
77748
- success: z46.literal(false),
77749
- error: z46.string()
77473
+ z45.object({
77474
+ success: z45.literal(false),
77475
+ error: z45.string()
77750
77476
  })
77751
77477
  ]);
77752
77478
  var findDocumentsTool = new ConnectorTool({
@@ -77755,8 +77481,8 @@ var findDocumentsTool = new ConnectorTool({
77755
77481
  Use for: querying documents with filters, projecting specific fields, sorting results, and data sampling.
77756
77482
  Pass filter, projection, and sort as JSON strings. Always use limit to avoid loading large amounts of data.
77757
77483
  For listing collections, use the aggregate tool with an empty pipeline on the special collection name "$cmd.listCollections".`,
77758
- inputSchema: inputSchema44,
77759
- outputSchema: outputSchema44,
77484
+ inputSchema: inputSchema43,
77485
+ outputSchema: outputSchema43,
77760
77486
  async execute({ connectionId, collection, filter, projection, sort, limit }, connections) {
77761
77487
  const connection2 = connections.find((c6) => c6.id === connectionId);
77762
77488
  if (!connection2) {
@@ -77771,12 +77497,12 @@ For listing collections, use the aggregate tool with an empty pipeline on the sp
77771
77497
  let connectionUrl;
77772
77498
  try {
77773
77499
  const { MongoClient } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
77774
- connectionUrl = parameters41.connectionUrl.getValue(connection2);
77775
- const database = parameters41.database.getValue(connection2);
77500
+ connectionUrl = parameters40.connectionUrl.getValue(connection2);
77501
+ const database = parameters40.database.getValue(connection2);
77776
77502
  const client = new MongoClient(connectionUrl, {
77777
77503
  connectTimeoutMS: CONNECT_TIMEOUT_MS4,
77778
77504
  serverSelectionTimeoutMS: CONNECT_TIMEOUT_MS4,
77779
- socketTimeoutMS: QUERY_TIMEOUT_MS6
77505
+ socketTimeoutMS: QUERY_TIMEOUT_MS5
77780
77506
  });
77781
77507
  try {
77782
77508
  await client.connect();
@@ -77819,30 +77545,30 @@ For listing collections, use the aggregate tool with an empty pipeline on the sp
77819
77545
  });
77820
77546
 
77821
77547
  // ../connectors/src/connectors/mongodb/tools/aggregate.ts
77822
- import { z as z47 } from "zod";
77548
+ import { z as z46 } from "zod";
77823
77549
  var MAX_DOCUMENTS2 = 500;
77824
77550
  var CONNECT_TIMEOUT_MS5 = 1e4;
77825
- var QUERY_TIMEOUT_MS7 = 6e4;
77826
- var inputSchema45 = z47.object({
77827
- toolUseIntent: z47.string().optional().describe(
77551
+ var QUERY_TIMEOUT_MS6 = 6e4;
77552
+ var inputSchema44 = z46.object({
77553
+ toolUseIntent: z46.string().optional().describe(
77828
77554
  "Brief description of what you intend to accomplish with this tool call"
77829
77555
  ),
77830
- connectionId: z47.string().describe("ID of the MongoDB connection to use"),
77831
- collection: z47.string().describe("The name of the collection to run the aggregation pipeline on"),
77832
- pipeline: z47.string().describe(
77556
+ connectionId: z46.string().describe("ID of the MongoDB connection to use"),
77557
+ collection: z46.string().describe("The name of the collection to run the aggregation pipeline on"),
77558
+ pipeline: z46.string().describe(
77833
77559
  `MongoDB aggregation pipeline as a JSON string. An array of stage objects (e.g., '[{"$match": {"status": "active"}}, {"$group": {"_id": "$category", "count": {"$sum": 1}}}]'). Always include a $limit stage to avoid returning too many documents.`
77834
77560
  )
77835
77561
  });
77836
- var outputSchema45 = z47.discriminatedUnion("success", [
77837
- z47.object({
77838
- success: z47.literal(true),
77839
- documentCount: z47.number(),
77840
- truncated: z47.boolean(),
77841
- documents: z47.array(z47.record(z47.string(), z47.unknown()))
77562
+ var outputSchema44 = z46.discriminatedUnion("success", [
77563
+ z46.object({
77564
+ success: z46.literal(true),
77565
+ documentCount: z46.number(),
77566
+ truncated: z46.boolean(),
77567
+ documents: z46.array(z46.record(z46.string(), z46.unknown()))
77842
77568
  }),
77843
- z47.object({
77844
- success: z47.literal(false),
77845
- error: z47.string()
77569
+ z46.object({
77570
+ success: z46.literal(false),
77571
+ error: z46.string()
77846
77572
  })
77847
77573
  ]);
77848
77574
  var aggregateTool = new ConnectorTool({
@@ -77852,8 +77578,8 @@ Use for: complex data transformations, grouping, filtering, joining (via $lookup
77852
77578
  Pass the pipeline as a JSON string representing an array of aggregation stages.
77853
77579
  Always include a $limit stage in the pipeline to avoid loading large amounts of data.
77854
77580
  Common stages: $match (filter), $group (aggregate), $sort (order), $project (reshape), $lookup (join), $unwind (flatten arrays).`,
77855
- inputSchema: inputSchema45,
77856
- outputSchema: outputSchema45,
77581
+ inputSchema: inputSchema44,
77582
+ outputSchema: outputSchema44,
77857
77583
  async execute({ connectionId, collection, pipeline }, connections) {
77858
77584
  const connection2 = connections.find((c6) => c6.id === connectionId);
77859
77585
  if (!connection2) {
@@ -77868,12 +77594,12 @@ Common stages: $match (filter), $group (aggregate), $sort (order), $project (res
77868
77594
  let connectionUrl;
77869
77595
  try {
77870
77596
  const { MongoClient } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
77871
- connectionUrl = parameters41.connectionUrl.getValue(connection2);
77872
- const database = parameters41.database.getValue(connection2);
77597
+ connectionUrl = parameters40.connectionUrl.getValue(connection2);
77598
+ const database = parameters40.database.getValue(connection2);
77873
77599
  const client = new MongoClient(connectionUrl, {
77874
77600
  connectTimeoutMS: CONNECT_TIMEOUT_MS5,
77875
77601
  serverSelectionTimeoutMS: CONNECT_TIMEOUT_MS5,
77876
- socketTimeoutMS: QUERY_TIMEOUT_MS7
77602
+ socketTimeoutMS: QUERY_TIMEOUT_MS6
77877
77603
  });
77878
77604
  try {
77879
77605
  await client.connect();
@@ -77909,25 +77635,25 @@ Common stages: $match (filter), $group (aggregate), $sort (order), $project (res
77909
77635
  });
77910
77636
 
77911
77637
  // ../connectors/src/connectors/mongodb/tools/list-collections.ts
77912
- import { z as z48 } from "zod";
77638
+ import { z as z47 } from "zod";
77913
77639
  var CONNECT_TIMEOUT_MS6 = 1e4;
77914
- var inputSchema46 = z48.object({
77915
- toolUseIntent: z48.string().optional().describe(
77640
+ var inputSchema45 = z47.object({
77641
+ toolUseIntent: z47.string().optional().describe(
77916
77642
  "Brief description of what you intend to accomplish with this tool call"
77917
77643
  ),
77918
- connectionId: z48.string().describe("ID of the MongoDB connection to use")
77644
+ connectionId: z47.string().describe("ID of the MongoDB connection to use")
77919
77645
  });
77920
- var outputSchema46 = z48.discriminatedUnion("success", [
77921
- z48.object({
77922
- success: z48.literal(true),
77923
- collections: z48.array(z48.object({
77924
- name: z48.string(),
77925
- type: z48.string()
77646
+ var outputSchema45 = z47.discriminatedUnion("success", [
77647
+ z47.object({
77648
+ success: z47.literal(true),
77649
+ collections: z47.array(z47.object({
77650
+ name: z47.string(),
77651
+ type: z47.string()
77926
77652
  }))
77927
77653
  }),
77928
- z48.object({
77929
- success: z48.literal(false),
77930
- error: z48.string()
77654
+ z47.object({
77655
+ success: z47.literal(false),
77656
+ error: z47.string()
77931
77657
  })
77932
77658
  ]);
77933
77659
  var listCollectionsTool = new ConnectorTool({
@@ -77935,8 +77661,8 @@ var listCollectionsTool = new ConnectorTool({
77935
77661
  description: `List all collections in the MongoDB database.
77936
77662
  Use this as the first step to explore the data structure. Returns collection names and types.
77937
77663
  After listing collections, use the find tool to sample documents and understand the schema of each collection.`,
77938
- inputSchema: inputSchema46,
77939
- outputSchema: outputSchema46,
77664
+ inputSchema: inputSchema45,
77665
+ outputSchema: outputSchema45,
77940
77666
  async execute({ connectionId }, connections) {
77941
77667
  const connection2 = connections.find((c6) => c6.id === connectionId);
77942
77668
  if (!connection2) {
@@ -77951,8 +77677,8 @@ After listing collections, use the find tool to sample documents and understand
77951
77677
  let connectionUrl;
77952
77678
  try {
77953
77679
  const { MongoClient } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
77954
- connectionUrl = parameters41.connectionUrl.getValue(connection2);
77955
- const database = parameters41.database.getValue(connection2);
77680
+ connectionUrl = parameters40.connectionUrl.getValue(connection2);
77681
+ const database = parameters40.database.getValue(connection2);
77956
77682
  const client = new MongoClient(connectionUrl, {
77957
77683
  connectTimeoutMS: CONNECT_TIMEOUT_MS6,
77958
77684
  serverSelectionTimeoutMS: CONNECT_TIMEOUT_MS6
@@ -77982,7 +77708,7 @@ After listing collections, use the find tool to sample documents and understand
77982
77708
  });
77983
77709
 
77984
77710
  // ../connectors/src/connectors/mongodb/index.ts
77985
- var tools41 = {
77711
+ var tools40 = {
77986
77712
  find: findDocumentsTool,
77987
77713
  aggregate: aggregateTool,
77988
77714
  listCollections: listCollectionsTool
@@ -77993,7 +77719,7 @@ var mongodbConnector = new ConnectorPlugin({
77993
77719
  name: "MongoDB",
77994
77720
  description: "Connect to MongoDB for document-oriented data storage and querying.",
77995
77721
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/48JSUx9HE6oSa9JrHGg2E1/12b4cac65924cac3641d4bafcef37dbe/mongodb-icon.webp",
77996
- parameters: parameters41,
77722
+ parameters: parameters40,
77997
77723
  releaseFlag: { dev1: true, dev2: false, prod: false },
77998
77724
  onboarding: mongodbOnboarding,
77999
77725
  systemPrompt: {
@@ -78040,17 +77766,17 @@ The business logic type for this connector is "typescript".
78040
77766
  3. aggregate \u306E $group \u3067\u30C7\u30FC\u30BF\u5206\u5E03\u3092\u5206\u6790
78041
77767
  - find \u30AF\u30A8\u30EA\u306B\u306F\u5FC5\u305A limit \u3092\u3001\u96C6\u7D04\u30D1\u30A4\u30D7\u30E9\u30A4\u30F3\u306B\u306F $limit \u3092\u542B\u3081\u3066\u304F\u3060\u3055\u3044`
78042
77768
  },
78043
- tools: tools41,
77769
+ tools: tools40,
78044
77770
  async checkConnection(params, _config) {
78045
77771
  try {
78046
77772
  const { MongoClient } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
78047
- const client = new MongoClient(params[parameters41.connectionUrl.slug], {
77773
+ const client = new MongoClient(params[parameters40.connectionUrl.slug], {
78048
77774
  connectTimeoutMS: 1e4,
78049
77775
  serverSelectionTimeoutMS: 1e4
78050
77776
  });
78051
77777
  try {
78052
77778
  await client.connect();
78053
- const db = client.db(params[parameters41.database.slug]);
77779
+ const db = client.db(params[parameters40.database.slug]);
78054
77780
  await db.command({ ping: 1 });
78055
77781
  return { success: true };
78056
77782
  } finally {
@@ -78077,7 +77803,7 @@ var notionOnboarding = new ConnectorOnboarding({
78077
77803
  });
78078
77804
 
78079
77805
  // ../connectors/src/connectors/notion/parameters.ts
78080
- var parameters42 = {
77806
+ var parameters41 = {
78081
77807
  apiKey: new ParameterDefinition({
78082
77808
  slug: "api-key",
78083
77809
  name: "Notion Internal Integration Token",
@@ -78090,32 +77816,32 @@ var parameters42 = {
78090
77816
  };
78091
77817
 
78092
77818
  // ../connectors/src/connectors/notion/tools/request.ts
78093
- import { z as z49 } from "zod";
77819
+ import { z as z48 } from "zod";
78094
77820
  var BASE_URL19 = "https://api.notion.com/v1";
78095
77821
  var NOTION_VERSION = "2022-06-28";
78096
77822
  var REQUEST_TIMEOUT_MS31 = 6e4;
78097
- var inputSchema47 = z49.object({
78098
- toolUseIntent: z49.string().optional().describe(
77823
+ var inputSchema46 = z48.object({
77824
+ toolUseIntent: z48.string().optional().describe(
78099
77825
  "Brief description of what you intend to accomplish with this tool call"
78100
77826
  ),
78101
- connectionId: z49.string().describe("ID of the Notion connection to use"),
78102
- method: z49.enum(["GET", "POST", "PATCH", "DELETE"]).describe(
77827
+ connectionId: z48.string().describe("ID of the Notion connection to use"),
77828
+ method: z48.enum(["GET", "POST", "PATCH", "DELETE"]).describe(
78103
77829
  "HTTP method. GET for reading resources, POST for searching/querying/creating, PATCH for updating, DELETE for deleting."
78104
77830
  ),
78105
- path: z49.string().describe(
77831
+ path: z48.string().describe(
78106
77832
  "API path (e.g., '/search', '/databases/{id}/query', '/pages/{id}', '/blocks/{id}/children')"
78107
77833
  ),
78108
- body: z49.record(z49.string(), z49.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
77834
+ body: z48.record(z48.string(), z48.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
78109
77835
  });
78110
- var outputSchema47 = z49.discriminatedUnion("success", [
78111
- z49.object({
78112
- success: z49.literal(true),
78113
- status: z49.number(),
78114
- data: z49.record(z49.string(), z49.unknown())
77836
+ var outputSchema46 = z48.discriminatedUnion("success", [
77837
+ z48.object({
77838
+ success: z48.literal(true),
77839
+ status: z48.number(),
77840
+ data: z48.record(z48.string(), z48.unknown())
78115
77841
  }),
78116
- z49.object({
78117
- success: z49.literal(false),
78118
- error: z49.string()
77842
+ z48.object({
77843
+ success: z48.literal(false),
77844
+ error: z48.string()
78119
77845
  })
78120
77846
  ]);
78121
77847
  var requestTool24 = new ConnectorTool({
@@ -78124,8 +77850,8 @@ var requestTool24 = new ConnectorTool({
78124
77850
  Authentication (Bearer token) and Notion-Version header are configured automatically.
78125
77851
  Use this tool for all Notion API interactions: searching pages/databases, querying databases, retrieving pages and blocks, managing content.
78126
77852
  Pagination uses cursor-based start_cursor and page_size (max 100).`,
78127
- inputSchema: inputSchema47,
78128
- outputSchema: outputSchema47,
77853
+ inputSchema: inputSchema46,
77854
+ outputSchema: outputSchema46,
78129
77855
  async execute({ connectionId, method, path: path5, body }, connections) {
78130
77856
  const connection2 = connections.find((c6) => c6.id === connectionId);
78131
77857
  if (!connection2) {
@@ -78138,7 +77864,7 @@ Pagination uses cursor-based start_cursor and page_size (max 100).`,
78138
77864
  `[connector-request] notion/${connection2.name}: ${method} ${path5}`
78139
77865
  );
78140
77866
  try {
78141
- const apiKey = parameters42.apiKey.getValue(connection2);
77867
+ const apiKey = parameters41.apiKey.getValue(connection2);
78142
77868
  const url = `${BASE_URL19}${path5.startsWith("/") ? "" : "/"}${path5}`;
78143
77869
  const controller = new AbortController();
78144
77870
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS31);
@@ -78170,14 +77896,14 @@ Pagination uses cursor-based start_cursor and page_size (max 100).`,
78170
77896
  });
78171
77897
 
78172
77898
  // ../connectors/src/connectors/notion/index.ts
78173
- var tools42 = { request: requestTool24 };
77899
+ var tools41 = { request: requestTool24 };
78174
77900
  var notionConnector = new ConnectorPlugin({
78175
77901
  slug: "notion",
78176
77902
  authType: null,
78177
77903
  name: "Notion",
78178
77904
  description: "Connect to Notion to query databases, pages, and workspace content using an Internal Integration Token.",
78179
77905
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/797V5GDDTA8bsfKUHBCoQO/290ec49b70b68ddb4acd3bf0a6ab8bda/notion-icon.webp",
78180
- parameters: parameters42,
77906
+ parameters: parameters41,
78181
77907
  releaseFlag: { dev1: true, dev2: false, prod: false },
78182
77908
  onboarding: notionOnboarding,
78183
77909
  systemPrompt: {
@@ -78322,11 +78048,11 @@ export default async function handler(c: Context) {
78322
78048
  - \u30D6\u30ED\u30C3\u30AF\u306E\u5B50\u306F\u6700\u521D\u306E\u30EC\u30D9\u30EB\u306E\u307F\u3067\u3059\u3002\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u306B\u306F\u518D\u5E30\u304C\u5FC5\u8981\u3067\u3059
78323
78049
  - 25\u4EF6\u4EE5\u4E0A\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u6301\u3064\u30D7\u30ED\u30D1\u30C6\u30A3\uFF08people\u3001relation\u306A\u3069\uFF09\u306F\u5B8C\u5168\u306A\u30C7\u30FC\u30BF\u53D6\u5F97\u306B\u30D7\u30ED\u30D1\u30C6\u30A3\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u304C\u5FC5\u8981\u3067\u3059`
78324
78050
  },
78325
- tools: tools42
78051
+ tools: tools41
78326
78052
  });
78327
78053
 
78328
78054
  // ../connectors/src/connectors/notion-oauth/tools/request.ts
78329
- import { z as z50 } from "zod";
78055
+ import { z as z49 } from "zod";
78330
78056
  var BASE_URL20 = "https://api.notion.com/v1";
78331
78057
  var NOTION_VERSION2 = "2022-06-28";
78332
78058
  var REQUEST_TIMEOUT_MS32 = 6e4;
@@ -78361,26 +78087,26 @@ async function getProxyToken15(config) {
78361
78087
  };
78362
78088
  return data.token;
78363
78089
  }
78364
- var inputSchema48 = z50.object({
78365
- toolUseIntent: z50.string().optional().describe(
78090
+ var inputSchema47 = z49.object({
78091
+ toolUseIntent: z49.string().optional().describe(
78366
78092
  "Brief description of what you intend to accomplish with this tool call"
78367
78093
  ),
78368
- connectionId: z50.string().describe("ID of the Notion OAuth connection to use"),
78369
- method: z50.enum(["GET", "POST", "PATCH", "DELETE"]).describe("HTTP method"),
78370
- path: z50.string().describe(
78094
+ connectionId: z49.string().describe("ID of the Notion OAuth connection to use"),
78095
+ method: z49.enum(["GET", "POST", "PATCH", "DELETE"]).describe("HTTP method"),
78096
+ path: z49.string().describe(
78371
78097
  "API path appended to https://api.notion.com/v1 (e.g., '/search', '/databases/{id}/query', '/pages/{id}')"
78372
78098
  ),
78373
- body: z50.record(z50.string(), z50.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
78099
+ body: z49.record(z49.string(), z49.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
78374
78100
  });
78375
- var outputSchema48 = z50.discriminatedUnion("success", [
78376
- z50.object({
78377
- success: z50.literal(true),
78378
- status: z50.number(),
78379
- data: z50.record(z50.string(), z50.unknown())
78101
+ var outputSchema47 = z49.discriminatedUnion("success", [
78102
+ z49.object({
78103
+ success: z49.literal(true),
78104
+ status: z49.number(),
78105
+ data: z49.record(z49.string(), z49.unknown())
78380
78106
  }),
78381
- z50.object({
78382
- success: z50.literal(false),
78383
- error: z50.string()
78107
+ z49.object({
78108
+ success: z49.literal(false),
78109
+ error: z49.string()
78384
78110
  })
78385
78111
  ]);
78386
78112
  var requestTool25 = new ConnectorTool({
@@ -78389,8 +78115,8 @@ var requestTool25 = new ConnectorTool({
78389
78115
  Authentication is handled automatically via OAuth proxy. Notion-Version header is set automatically.
78390
78116
  Use this tool for all Notion API interactions: searching pages/databases, querying databases, retrieving pages and blocks, managing content.
78391
78117
  Pagination uses cursor-based start_cursor and page_size (max 100).`,
78392
- inputSchema: inputSchema48,
78393
- outputSchema: outputSchema48,
78118
+ inputSchema: inputSchema47,
78119
+ outputSchema: outputSchema47,
78394
78120
  async execute({ connectionId, method, path: path5, body }, connections, config) {
78395
78121
  const connection2 = connections.find((c6) => c6.id === connectionId);
78396
78122
  if (!connection2) {
@@ -78483,17 +78209,17 @@ var notionOauthOnboarding = new ConnectorOnboarding({
78483
78209
  });
78484
78210
 
78485
78211
  // ../connectors/src/connectors/notion-oauth/parameters.ts
78486
- var parameters43 = {};
78212
+ var parameters42 = {};
78487
78213
 
78488
78214
  // ../connectors/src/connectors/notion-oauth/index.ts
78489
- var tools43 = { request: requestTool25 };
78215
+ var tools42 = { request: requestTool25 };
78490
78216
  var notionOauthConnector = new ConnectorPlugin({
78491
78217
  slug: "notion",
78492
78218
  authType: AUTH_TYPES.OAUTH,
78493
78219
  name: "Notion (OAuth)",
78494
78220
  description: "Connect to Notion to query databases, pages, and workspace content using OAuth.",
78495
78221
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/797V5GDDTA8bsfKUHBCoQO/290ec49b70b68ddb4acd3bf0a6ab8bda/notion-icon.webp",
78496
- parameters: parameters43,
78222
+ parameters: parameters42,
78497
78223
  releaseFlag: { dev1: true, dev2: false, prod: false },
78498
78224
  onboarding: notionOauthOnboarding,
78499
78225
  proxyPolicy: {
@@ -78606,7 +78332,7 @@ const res = await notion.request("/search", {
78606
78332
  const data = await res.json();
78607
78333
  \`\`\``
78608
78334
  },
78609
- tools: tools43,
78335
+ tools: tools42,
78610
78336
  async checkConnection(_params, config) {
78611
78337
  const { proxyFetch } = config;
78612
78338
  try {
@@ -78632,10 +78358,10 @@ const data = await res.json();
78632
78358
  });
78633
78359
 
78634
78360
  // ../connectors/src/connectors/meta-ads/tools/list-ad-accounts.ts
78635
- import { z as z51 } from "zod";
78361
+ import { z as z50 } from "zod";
78636
78362
 
78637
78363
  // ../connectors/src/connectors/meta-ads/parameters.ts
78638
- var parameters44 = {
78364
+ var parameters43 = {
78639
78365
  accessToken: new ParameterDefinition({
78640
78366
  slug: "access-token",
78641
78367
  name: "Access Token",
@@ -78659,32 +78385,32 @@ var parameters44 = {
78659
78385
  // ../connectors/src/connectors/meta-ads/tools/list-ad-accounts.ts
78660
78386
  var BASE_URL21 = "https://graph.facebook.com/v21.0/";
78661
78387
  var REQUEST_TIMEOUT_MS33 = 6e4;
78662
- var inputSchema49 = z51.object({
78663
- toolUseIntent: z51.string().optional().describe(
78388
+ var inputSchema48 = z50.object({
78389
+ toolUseIntent: z50.string().optional().describe(
78664
78390
  "Brief description of what you intend to accomplish with this tool call"
78665
78391
  ),
78666
- connectionId: z51.string().describe("ID of the Meta Ads connection to use")
78392
+ connectionId: z50.string().describe("ID of the Meta Ads connection to use")
78667
78393
  });
78668
- var outputSchema49 = z51.discriminatedUnion("success", [
78669
- z51.object({
78670
- success: z51.literal(true),
78671
- adAccounts: z51.array(
78672
- z51.object({
78673
- adAccountId: z51.string(),
78674
- name: z51.string()
78394
+ var outputSchema48 = z50.discriminatedUnion("success", [
78395
+ z50.object({
78396
+ success: z50.literal(true),
78397
+ adAccounts: z50.array(
78398
+ z50.object({
78399
+ adAccountId: z50.string(),
78400
+ name: z50.string()
78675
78401
  })
78676
78402
  )
78677
78403
  }),
78678
- z51.object({
78679
- success: z51.literal(false),
78680
- error: z51.string()
78404
+ z50.object({
78405
+ success: z50.literal(false),
78406
+ error: z50.string()
78681
78407
  })
78682
78408
  ]);
78683
78409
  var listAdAccountsTool = new ConnectorTool({
78684
78410
  name: "listAdAccounts",
78685
78411
  description: "List Meta ad accounts accessible with the current access token.",
78686
- inputSchema: inputSchema49,
78687
- outputSchema: outputSchema49,
78412
+ inputSchema: inputSchema48,
78413
+ outputSchema: outputSchema48,
78688
78414
  async execute({ connectionId }, connections) {
78689
78415
  const connection2 = connections.find((c6) => c6.id === connectionId);
78690
78416
  if (!connection2) {
@@ -78697,7 +78423,7 @@ var listAdAccountsTool = new ConnectorTool({
78697
78423
  `[connector-request] meta-ads/${connection2.name}: listAdAccounts`
78698
78424
  );
78699
78425
  try {
78700
- const accessToken = parameters44.accessToken.getValue(connection2);
78426
+ const accessToken = parameters43.accessToken.getValue(connection2);
78701
78427
  const url = `${BASE_URL21}me/adaccounts?fields=account_id,name,account_status&access_token=${encodeURIComponent(accessToken)}`;
78702
78428
  const controller = new AbortController();
78703
78429
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS33);
@@ -78774,30 +78500,30 @@ var metaAdsOnboarding = new ConnectorOnboarding({
78774
78500
  });
78775
78501
 
78776
78502
  // ../connectors/src/connectors/meta-ads/tools/request.ts
78777
- import { z as z52 } from "zod";
78503
+ import { z as z51 } from "zod";
78778
78504
  var BASE_URL22 = "https://graph.facebook.com/v21.0/";
78779
78505
  var REQUEST_TIMEOUT_MS34 = 6e4;
78780
- var inputSchema50 = z52.object({
78781
- toolUseIntent: z52.string().optional().describe(
78506
+ var inputSchema49 = z51.object({
78507
+ toolUseIntent: z51.string().optional().describe(
78782
78508
  "Brief description of what you intend to accomplish with this tool call"
78783
78509
  ),
78784
- connectionId: z52.string().describe("ID of the Meta Ads connection to use"),
78785
- method: z52.enum(["GET", "POST"]).describe("HTTP method"),
78786
- path: z52.string().describe(
78510
+ connectionId: z51.string().describe("ID of the Meta Ads connection to use"),
78511
+ method: z51.enum(["GET", "POST"]).describe("HTTP method"),
78512
+ path: z51.string().describe(
78787
78513
  "API path appended to https://graph.facebook.com/v21.0/ (e.g., 'act_{adAccountId}/campaigns'). {adAccountId} is automatically replaced."
78788
78514
  ),
78789
- queryParams: z52.record(z52.string(), z52.string()).optional().describe("Query parameters to append to the URL"),
78790
- body: z52.record(z52.string(), z52.unknown()).optional().describe("POST request body (JSON)")
78515
+ queryParams: z51.record(z51.string(), z51.string()).optional().describe("Query parameters to append to the URL"),
78516
+ body: z51.record(z51.string(), z51.unknown()).optional().describe("POST request body (JSON)")
78791
78517
  });
78792
- var outputSchema50 = z52.discriminatedUnion("success", [
78793
- z52.object({
78794
- success: z52.literal(true),
78795
- status: z52.number(),
78796
- data: z52.unknown()
78518
+ var outputSchema49 = z51.discriminatedUnion("success", [
78519
+ z51.object({
78520
+ success: z51.literal(true),
78521
+ status: z51.number(),
78522
+ data: z51.unknown()
78797
78523
  }),
78798
- z52.object({
78799
- success: z52.literal(false),
78800
- error: z52.string()
78524
+ z51.object({
78525
+ success: z51.literal(false),
78526
+ error: z51.string()
78801
78527
  })
78802
78528
  ]);
78803
78529
  var requestTool26 = new ConnectorTool({
@@ -78805,8 +78531,8 @@ var requestTool26 = new ConnectorTool({
78805
78531
  description: `Send authenticated requests to the Meta Marketing API v21.0.
78806
78532
  Authentication is handled via the configured access token.
78807
78533
  {adAccountId} in the path is automatically replaced with the connection's ad account ID (with act_ prefix added).`,
78808
- inputSchema: inputSchema50,
78809
- outputSchema: outputSchema50,
78534
+ inputSchema: inputSchema49,
78535
+ outputSchema: outputSchema49,
78810
78536
  async execute({ connectionId, method, path: path5, queryParams, body }, connections) {
78811
78537
  const connection2 = connections.find((c6) => c6.id === connectionId);
78812
78538
  if (!connection2) {
@@ -78819,8 +78545,8 @@ Authentication is handled via the configured access token.
78819
78545
  `[connector-request] meta-ads/${connection2.name}: ${method} ${path5}`
78820
78546
  );
78821
78547
  try {
78822
- const accessToken = parameters44.accessToken.getValue(connection2);
78823
- const adAccountId = parameters44.adAccountId.tryGetValue(connection2) ?? "";
78548
+ const accessToken = parameters43.accessToken.getValue(connection2);
78549
+ const adAccountId = parameters43.adAccountId.tryGetValue(connection2) ?? "";
78824
78550
  const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
78825
78551
  let url = `${BASE_URL22}${resolvedPath}`;
78826
78552
  const params = new URLSearchParams(queryParams ?? {});
@@ -78857,7 +78583,7 @@ Authentication is handled via the configured access token.
78857
78583
  });
78858
78584
 
78859
78585
  // ../connectors/src/connectors/meta-ads/index.ts
78860
- var tools44 = {
78586
+ var tools43 = {
78861
78587
  request: requestTool26,
78862
78588
  listAdAccounts: listAdAccountsTool
78863
78589
  };
@@ -78867,7 +78593,7 @@ var metaAdsConnector = new ConnectorPlugin({
78867
78593
  name: "Meta Ads",
78868
78594
  description: "Connect to Meta (Facebook/Instagram) Ads for advertising campaign data and reporting using an access token.",
78869
78595
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/2vyrgcvdf3jETIFXHtbteO/de7f3288e831c9f738e44cf1f961c3bd/meta-icon.webp",
78870
- parameters: parameters44,
78596
+ parameters: parameters43,
78871
78597
  releaseFlag: { dev1: true, dev2: false, prod: false },
78872
78598
  onboarding: metaAdsOnboarding,
78873
78599
  systemPrompt: {
@@ -78996,9 +78722,9 @@ const insights = await meta.getInsights("act_{adAccountId}", {
78996
78722
  const accounts = await meta.listAdAccounts();
78997
78723
  \`\`\``
78998
78724
  },
78999
- tools: tools44,
78725
+ tools: tools43,
79000
78726
  async checkConnection(params) {
79001
- const accessToken = params[parameters44.accessToken.slug];
78727
+ const accessToken = params[parameters43.accessToken.slug];
79002
78728
  if (!accessToken) {
79003
78729
  return {
79004
78730
  success: false,
@@ -79026,7 +78752,7 @@ const accounts = await meta.listAdAccounts();
79026
78752
  });
79027
78753
 
79028
78754
  // ../connectors/src/connectors/meta-ads-oauth/tools/list-ad-accounts.ts
79029
- import { z as z53 } from "zod";
78755
+ import { z as z52 } from "zod";
79030
78756
  var BASE_URL23 = "https://graph.facebook.com/v21.0/";
79031
78757
  var REQUEST_TIMEOUT_MS35 = 6e4;
79032
78758
  var cachedToken16 = null;
@@ -79060,32 +78786,32 @@ async function getProxyToken16(config) {
79060
78786
  };
79061
78787
  return data.token;
79062
78788
  }
79063
- var inputSchema51 = z53.object({
79064
- toolUseIntent: z53.string().optional().describe(
78789
+ var inputSchema50 = z52.object({
78790
+ toolUseIntent: z52.string().optional().describe(
79065
78791
  "Brief description of what you intend to accomplish with this tool call"
79066
78792
  ),
79067
- connectionId: z53.string().describe("ID of the Meta Ads OAuth connection to use")
78793
+ connectionId: z52.string().describe("ID of the Meta Ads OAuth connection to use")
79068
78794
  });
79069
- var outputSchema51 = z53.discriminatedUnion("success", [
79070
- z53.object({
79071
- success: z53.literal(true),
79072
- adAccounts: z53.array(
79073
- z53.object({
79074
- adAccountId: z53.string(),
79075
- name: z53.string()
78795
+ var outputSchema50 = z52.discriminatedUnion("success", [
78796
+ z52.object({
78797
+ success: z52.literal(true),
78798
+ adAccounts: z52.array(
78799
+ z52.object({
78800
+ adAccountId: z52.string(),
78801
+ name: z52.string()
79076
78802
  })
79077
78803
  )
79078
78804
  }),
79079
- z53.object({
79080
- success: z53.literal(false),
79081
- error: z53.string()
78805
+ z52.object({
78806
+ success: z52.literal(false),
78807
+ error: z52.string()
79082
78808
  })
79083
78809
  ]);
79084
78810
  var listAdAccountsTool2 = new ConnectorTool({
79085
78811
  name: "listAdAccounts",
79086
78812
  description: "List Meta ad accounts accessible with the current OAuth credentials.",
79087
- inputSchema: inputSchema51,
79088
- outputSchema: outputSchema51,
78813
+ inputSchema: inputSchema50,
78814
+ outputSchema: outputSchema50,
79089
78815
  async execute({ connectionId }, connections, config) {
79090
78816
  const connection2 = connections.find((c6) => c6.id === connectionId);
79091
78817
  if (!connection2) {
@@ -79183,7 +78909,7 @@ var metaAdsOauthOnboarding = new ConnectorOnboarding({
79183
78909
  });
79184
78910
 
79185
78911
  // ../connectors/src/connectors/meta-ads-oauth/parameters.ts
79186
- var parameters45 = {
78912
+ var parameters44 = {
79187
78913
  adAccountId: new ParameterDefinition({
79188
78914
  slug: "ad-account-id",
79189
78915
  name: "Ad Account ID",
@@ -79196,7 +78922,7 @@ var parameters45 = {
79196
78922
  };
79197
78923
 
79198
78924
  // ../connectors/src/connectors/meta-ads-oauth/tools/request.ts
79199
- import { z as z54 } from "zod";
78925
+ import { z as z53 } from "zod";
79200
78926
  var BASE_URL24 = "https://graph.facebook.com/v21.0/";
79201
78927
  var REQUEST_TIMEOUT_MS36 = 6e4;
79202
78928
  var cachedToken17 = null;
@@ -79230,27 +78956,27 @@ async function getProxyToken17(config) {
79230
78956
  };
79231
78957
  return data.token;
79232
78958
  }
79233
- var inputSchema52 = z54.object({
79234
- toolUseIntent: z54.string().optional().describe(
78959
+ var inputSchema51 = z53.object({
78960
+ toolUseIntent: z53.string().optional().describe(
79235
78961
  "Brief description of what you intend to accomplish with this tool call"
79236
78962
  ),
79237
- connectionId: z54.string().describe("ID of the Meta Ads OAuth connection to use"),
79238
- method: z54.enum(["GET", "POST"]).describe("HTTP method"),
79239
- path: z54.string().describe(
78963
+ connectionId: z53.string().describe("ID of the Meta Ads OAuth connection to use"),
78964
+ method: z53.enum(["GET", "POST"]).describe("HTTP method"),
78965
+ path: z53.string().describe(
79240
78966
  "API path appended to https://graph.facebook.com/v21.0/ (e.g., 'act_{adAccountId}/campaigns'). {adAccountId} is automatically replaced."
79241
78967
  ),
79242
- queryParams: z54.record(z54.string(), z54.string()).optional().describe("Query parameters to append to the URL"),
79243
- body: z54.record(z54.string(), z54.unknown()).optional().describe("POST request body (JSON)")
78968
+ queryParams: z53.record(z53.string(), z53.string()).optional().describe("Query parameters to append to the URL"),
78969
+ body: z53.record(z53.string(), z53.unknown()).optional().describe("POST request body (JSON)")
79244
78970
  });
79245
- var outputSchema52 = z54.discriminatedUnion("success", [
79246
- z54.object({
79247
- success: z54.literal(true),
79248
- status: z54.number(),
79249
- data: z54.unknown()
78971
+ var outputSchema51 = z53.discriminatedUnion("success", [
78972
+ z53.object({
78973
+ success: z53.literal(true),
78974
+ status: z53.number(),
78975
+ data: z53.unknown()
79250
78976
  }),
79251
- z54.object({
79252
- success: z54.literal(false),
79253
- error: z54.string()
78977
+ z53.object({
78978
+ success: z53.literal(false),
78979
+ error: z53.string()
79254
78980
  })
79255
78981
  ]);
79256
78982
  var requestTool27 = new ConnectorTool({
@@ -79258,8 +78984,8 @@ var requestTool27 = new ConnectorTool({
79258
78984
  description: `Send authenticated requests to the Meta Marketing API v21.0.
79259
78985
  Authentication is handled automatically via OAuth proxy.
79260
78986
  {adAccountId} in the path is automatically replaced with the connection's ad account ID.`,
79261
- inputSchema: inputSchema52,
79262
- outputSchema: outputSchema52,
78987
+ inputSchema: inputSchema51,
78988
+ outputSchema: outputSchema51,
79263
78989
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
79264
78990
  const connection2 = connections.find((c6) => c6.id === connectionId);
79265
78991
  if (!connection2) {
@@ -79272,7 +78998,7 @@ Authentication is handled automatically via OAuth proxy.
79272
78998
  `[connector-request] meta-ads-oauth/${connection2.name}: ${method} ${path5}`
79273
78999
  );
79274
79000
  try {
79275
- const adAccountId = parameters45.adAccountId.tryGetValue(connection2) ?? "";
79001
+ const adAccountId = parameters44.adAccountId.tryGetValue(connection2) ?? "";
79276
79002
  const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
79277
79003
  let url = `${BASE_URL24}${resolvedPath}`;
79278
79004
  if (queryParams && Object.keys(queryParams).length > 0) {
@@ -79317,7 +79043,7 @@ Authentication is handled automatically via OAuth proxy.
79317
79043
  });
79318
79044
 
79319
79045
  // ../connectors/src/connectors/meta-ads-oauth/index.ts
79320
- var tools45 = {
79046
+ var tools44 = {
79321
79047
  request: requestTool27,
79322
79048
  listAdAccounts: listAdAccountsTool2
79323
79049
  };
@@ -79327,7 +79053,7 @@ var metaAdsOauthConnector = new ConnectorPlugin({
79327
79053
  name: "Meta Ads (OAuth)",
79328
79054
  description: "Connect to Meta (Facebook/Instagram) Ads for advertising campaign data and reporting using OAuth.",
79329
79055
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/2vyrgcvdf3jETIFXHtbteO/de7f3288e831c9f738e44cf1f961c3bd/meta-icon.webp",
79330
- parameters: parameters45,
79056
+ parameters: parameters44,
79331
79057
  releaseFlag: { dev1: true, dev2: false, prod: false },
79332
79058
  onboarding: metaAdsOauthOnboarding,
79333
79059
  proxyPolicy: {
@@ -79454,7 +79180,7 @@ const res = await meta.request("act_{adAccountId}/campaigns?fields=id,name,statu
79454
79180
  const data = await res.json();
79455
79181
  \`\`\``
79456
79182
  },
79457
- tools: tools45,
79183
+ tools: tools44,
79458
79184
  async checkConnection(_params, config) {
79459
79185
  const { proxyFetch } = config;
79460
79186
  try {
@@ -79528,7 +79254,7 @@ var tiktokAdsOnboarding = new ConnectorOnboarding({
79528
79254
  });
79529
79255
 
79530
79256
  // ../connectors/src/connectors/tiktok-ads/parameters.ts
79531
- var parameters46 = {
79257
+ var parameters45 = {
79532
79258
  accessToken: new ParameterDefinition({
79533
79259
  slug: "access-token",
79534
79260
  name: "Access Token",
@@ -79550,30 +79276,30 @@ var parameters46 = {
79550
79276
  };
79551
79277
 
79552
79278
  // ../connectors/src/connectors/tiktok-ads/tools/request.ts
79553
- import { z as z55 } from "zod";
79279
+ import { z as z54 } from "zod";
79554
79280
  var BASE_URL25 = "https://business-api.tiktok.com/open_api/v1.3/";
79555
79281
  var REQUEST_TIMEOUT_MS37 = 6e4;
79556
- var inputSchema53 = z55.object({
79557
- toolUseIntent: z55.string().optional().describe(
79282
+ var inputSchema52 = z54.object({
79283
+ toolUseIntent: z54.string().optional().describe(
79558
79284
  "Brief description of what you intend to accomplish with this tool call"
79559
79285
  ),
79560
- connectionId: z55.string().describe("ID of the TikTok Ads connection to use"),
79561
- method: z55.enum(["GET", "POST"]).describe("HTTP method"),
79562
- path: z55.string().describe(
79286
+ connectionId: z54.string().describe("ID of the TikTok Ads connection to use"),
79287
+ method: z54.enum(["GET", "POST"]).describe("HTTP method"),
79288
+ path: z54.string().describe(
79563
79289
  "API path appended to https://business-api.tiktok.com/open_api/v1.3/ (e.g., 'campaign/get/'). The advertiser_id is automatically injected into query params or body."
79564
79290
  ),
79565
- queryParams: z55.record(z55.string(), z55.string()).optional().describe("Query parameters to append to the URL"),
79566
- body: z55.record(z55.string(), z55.unknown()).optional().describe("POST request body (JSON)")
79291
+ queryParams: z54.record(z54.string(), z54.string()).optional().describe("Query parameters to append to the URL"),
79292
+ body: z54.record(z54.string(), z54.unknown()).optional().describe("POST request body (JSON)")
79567
79293
  });
79568
- var outputSchema53 = z55.discriminatedUnion("success", [
79569
- z55.object({
79570
- success: z55.literal(true),
79571
- status: z55.number(),
79572
- data: z55.unknown()
79294
+ var outputSchema52 = z54.discriminatedUnion("success", [
79295
+ z54.object({
79296
+ success: z54.literal(true),
79297
+ status: z54.number(),
79298
+ data: z54.unknown()
79573
79299
  }),
79574
- z55.object({
79575
- success: z55.literal(false),
79576
- error: z55.string()
79300
+ z54.object({
79301
+ success: z54.literal(false),
79302
+ error: z54.string()
79577
79303
  })
79578
79304
  ]);
79579
79305
  var requestTool28 = new ConnectorTool({
@@ -79581,8 +79307,8 @@ var requestTool28 = new ConnectorTool({
79581
79307
  description: `Send authenticated requests to the TikTok Marketing API v1.3.
79582
79308
  Authentication is handled via the configured access token (sent as Access-Token header).
79583
79309
  The advertiser_id is automatically injected if configured.`,
79584
- inputSchema: inputSchema53,
79585
- outputSchema: outputSchema53,
79310
+ inputSchema: inputSchema52,
79311
+ outputSchema: outputSchema52,
79586
79312
  async execute({ connectionId, method, path: path5, queryParams, body }, connections) {
79587
79313
  const connection2 = connections.find((c6) => c6.id === connectionId);
79588
79314
  if (!connection2) {
@@ -79595,8 +79321,8 @@ The advertiser_id is automatically injected if configured.`,
79595
79321
  `[connector-request] tiktok-ads/${connection2.name}: ${method} ${path5}`
79596
79322
  );
79597
79323
  try {
79598
- const accessToken = parameters46.accessToken.getValue(connection2);
79599
- const advertiserId = parameters46.advertiserId.tryGetValue(connection2) ?? "";
79324
+ const accessToken = parameters45.accessToken.getValue(connection2);
79325
+ const advertiserId = parameters45.advertiserId.tryGetValue(connection2) ?? "";
79600
79326
  let url = `${BASE_URL25}${path5}`;
79601
79327
  if (method === "GET") {
79602
79328
  const params = new URLSearchParams(queryParams ?? {});
@@ -79650,7 +79376,7 @@ The advertiser_id is automatically injected if configured.`,
79650
79376
 
79651
79377
  // ../connectors/src/connectors/tiktok-ads/index.ts
79652
79378
  var BASE_URL26 = "https://business-api.tiktok.com/open_api/v1.3/";
79653
- var tools46 = {
79379
+ var tools45 = {
79654
79380
  request: requestTool28
79655
79381
  };
79656
79382
  var tiktokAdsConnector = new ConnectorPlugin({
@@ -79659,7 +79385,7 @@ var tiktokAdsConnector = new ConnectorPlugin({
79659
79385
  name: "TikTok Ads",
79660
79386
  description: "Connect to TikTok Ads for advertising campaign data and reporting using an access token.",
79661
79387
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/01jHuwvmhe4ts0wj23Hxpm/afac9fa50ac5b353927900a122e898ab/tiktok.webp",
79662
- parameters: parameters46,
79388
+ parameters: parameters45,
79663
79389
  releaseFlag: { dev1: true, dev2: false, prod: false },
79664
79390
  onboarding: tiktokAdsOnboarding,
79665
79391
  systemPrompt: {
@@ -79810,16 +79536,16 @@ const rows = await tiktok.getReport({
79810
79536
  const campaigns = await tiktok.listCampaigns();
79811
79537
  \`\`\``
79812
79538
  },
79813
- tools: tools46,
79539
+ tools: tools45,
79814
79540
  async checkConnection(params) {
79815
- const accessToken = params[parameters46.accessToken.slug];
79541
+ const accessToken = params[parameters45.accessToken.slug];
79816
79542
  if (!accessToken) {
79817
79543
  return {
79818
79544
  success: false,
79819
79545
  error: "Access token is required"
79820
79546
  };
79821
79547
  }
79822
- const advertiserId = params[parameters46.advertiserId.slug];
79548
+ const advertiserId = params[parameters45.advertiserId.slug];
79823
79549
  if (!advertiserId) {
79824
79550
  return { success: true };
79825
79551
  }
@@ -79855,7 +79581,7 @@ const campaigns = await tiktok.listCampaigns();
79855
79581
  });
79856
79582
 
79857
79583
  // ../connectors/src/connectors/tiktok-ads-oauth/tools/list-advertisers.ts
79858
- import { z as z56 } from "zod";
79584
+ import { z as z55 } from "zod";
79859
79585
  var BASE_URL27 = "https://business-api.tiktok.com/open_api/v1.3/";
79860
79586
  var REQUEST_TIMEOUT_MS38 = 6e4;
79861
79587
  var cachedToken18 = null;
@@ -79889,32 +79615,32 @@ async function getProxyToken18(config) {
79889
79615
  };
79890
79616
  return data.token;
79891
79617
  }
79892
- var inputSchema54 = z56.object({
79893
- toolUseIntent: z56.string().optional().describe(
79618
+ var inputSchema53 = z55.object({
79619
+ toolUseIntent: z55.string().optional().describe(
79894
79620
  "Brief description of what you intend to accomplish with this tool call"
79895
79621
  ),
79896
- connectionId: z56.string().describe("ID of the TikTok Ads OAuth connection to use")
79622
+ connectionId: z55.string().describe("ID of the TikTok Ads OAuth connection to use")
79897
79623
  });
79898
- var outputSchema54 = z56.discriminatedUnion("success", [
79899
- z56.object({
79900
- success: z56.literal(true),
79901
- advertisers: z56.array(
79902
- z56.object({
79903
- advertiserId: z56.string(),
79904
- name: z56.string()
79624
+ var outputSchema53 = z55.discriminatedUnion("success", [
79625
+ z55.object({
79626
+ success: z55.literal(true),
79627
+ advertisers: z55.array(
79628
+ z55.object({
79629
+ advertiserId: z55.string(),
79630
+ name: z55.string()
79905
79631
  })
79906
79632
  )
79907
79633
  }),
79908
- z56.object({
79909
- success: z56.literal(false),
79910
- error: z56.string()
79634
+ z55.object({
79635
+ success: z55.literal(false),
79636
+ error: z55.string()
79911
79637
  })
79912
79638
  ]);
79913
79639
  var listAdvertisersTool = new ConnectorTool({
79914
79640
  name: "listAdvertisers",
79915
79641
  description: "List TikTok Ads advertiser accounts accessible with the current OAuth credentials.",
79916
- inputSchema: inputSchema54,
79917
- outputSchema: outputSchema54,
79642
+ inputSchema: inputSchema53,
79643
+ outputSchema: outputSchema53,
79918
79644
  async execute({ connectionId }, connections, config) {
79919
79645
  const connection2 = connections.find((c6) => c6.id === connectionId);
79920
79646
  if (!connection2) {
@@ -80022,7 +79748,7 @@ var tiktokAdsOauthOnboarding = new ConnectorOnboarding({
80022
79748
  });
80023
79749
 
80024
79750
  // ../connectors/src/connectors/tiktok-ads-oauth/parameters.ts
80025
- var parameters47 = {
79751
+ var parameters46 = {
80026
79752
  advertiserId: new ParameterDefinition({
80027
79753
  slug: "advertiser-id",
80028
79754
  name: "Advertiser ID",
@@ -80035,7 +79761,7 @@ var parameters47 = {
80035
79761
  };
80036
79762
 
80037
79763
  // ../connectors/src/connectors/tiktok-ads-oauth/tools/request.ts
80038
- import { z as z57 } from "zod";
79764
+ import { z as z56 } from "zod";
80039
79765
  var BASE_URL28 = "https://business-api.tiktok.com/open_api/v1.3/";
80040
79766
  var REQUEST_TIMEOUT_MS39 = 6e4;
80041
79767
  var cachedToken19 = null;
@@ -80069,27 +79795,27 @@ async function getProxyToken19(config) {
80069
79795
  };
80070
79796
  return data.token;
80071
79797
  }
80072
- var inputSchema55 = z57.object({
80073
- toolUseIntent: z57.string().optional().describe(
79798
+ var inputSchema54 = z56.object({
79799
+ toolUseIntent: z56.string().optional().describe(
80074
79800
  "Brief description of what you intend to accomplish with this tool call"
80075
79801
  ),
80076
- connectionId: z57.string().describe("ID of the TikTok Ads OAuth connection to use"),
80077
- method: z57.enum(["GET", "POST"]).describe("HTTP method"),
80078
- path: z57.string().describe(
79802
+ connectionId: z56.string().describe("ID of the TikTok Ads OAuth connection to use"),
79803
+ method: z56.enum(["GET", "POST"]).describe("HTTP method"),
79804
+ path: z56.string().describe(
80079
79805
  "API path appended to https://business-api.tiktok.com/open_api/v1.3/ (e.g., 'campaign/get/'). The advertiser_id is automatically injected."
80080
79806
  ),
80081
- queryParams: z57.record(z57.string(), z57.string()).optional().describe("Query parameters to append to the URL"),
80082
- body: z57.record(z57.string(), z57.unknown()).optional().describe("POST request body (JSON)")
79807
+ queryParams: z56.record(z56.string(), z56.string()).optional().describe("Query parameters to append to the URL"),
79808
+ body: z56.record(z56.string(), z56.unknown()).optional().describe("POST request body (JSON)")
80083
79809
  });
80084
- var outputSchema55 = z57.discriminatedUnion("success", [
80085
- z57.object({
80086
- success: z57.literal(true),
80087
- status: z57.number(),
80088
- data: z57.unknown()
79810
+ var outputSchema54 = z56.discriminatedUnion("success", [
79811
+ z56.object({
79812
+ success: z56.literal(true),
79813
+ status: z56.number(),
79814
+ data: z56.unknown()
80089
79815
  }),
80090
- z57.object({
80091
- success: z57.literal(false),
80092
- error: z57.string()
79816
+ z56.object({
79817
+ success: z56.literal(false),
79818
+ error: z56.string()
80093
79819
  })
80094
79820
  ]);
80095
79821
  var requestTool29 = new ConnectorTool({
@@ -80097,8 +79823,8 @@ var requestTool29 = new ConnectorTool({
80097
79823
  description: `Send authenticated requests to the TikTok Marketing API v1.3.
80098
79824
  Authentication is handled automatically via OAuth proxy.
80099
79825
  The advertiser_id is automatically injected if configured.`,
80100
- inputSchema: inputSchema55,
80101
- outputSchema: outputSchema55,
79826
+ inputSchema: inputSchema54,
79827
+ outputSchema: outputSchema54,
80102
79828
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
80103
79829
  const connection2 = connections.find((c6) => c6.id === connectionId);
80104
79830
  if (!connection2) {
@@ -80111,7 +79837,7 @@ The advertiser_id is automatically injected if configured.`,
80111
79837
  `[connector-request] tiktok-ads-oauth/${connection2.name}: ${method} ${path5}`
80112
79838
  );
80113
79839
  try {
80114
- const advertiserId = parameters47.advertiserId.tryGetValue(connection2) ?? "";
79840
+ const advertiserId = parameters46.advertiserId.tryGetValue(connection2) ?? "";
80115
79841
  let url = `${BASE_URL28}${path5}`;
80116
79842
  if (method === "GET") {
80117
79843
  const params = new URLSearchParams(queryParams ?? {});
@@ -80170,7 +79896,7 @@ The advertiser_id is automatically injected if configured.`,
80170
79896
  });
80171
79897
 
80172
79898
  // ../connectors/src/connectors/tiktok-ads-oauth/index.ts
80173
- var tools47 = {
79899
+ var tools46 = {
80174
79900
  request: requestTool29,
80175
79901
  listAdvertisers: listAdvertisersTool
80176
79902
  };
@@ -80180,7 +79906,7 @@ var tiktokAdsOauthConnector = new ConnectorPlugin({
80180
79906
  name: "TikTok Ads (OAuth)",
80181
79907
  description: "Connect to TikTok Ads for advertising campaign data and reporting using OAuth.",
80182
79908
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/01jHuwvmhe4ts0wj23Hxpm/afac9fa50ac5b353927900a122e898ab/tiktok.webp",
80183
- parameters: parameters47,
79909
+ parameters: parameters46,
80184
79910
  releaseFlag: { dev1: true, dev2: false, prod: false },
80185
79911
  onboarding: tiktokAdsOauthOnboarding,
80186
79912
  proxyPolicy: {
@@ -80325,7 +80051,7 @@ const res = await tiktok.request("campaign/get/?advertiser_id={advertiserId}");
80325
80051
  const data = await res.json();
80326
80052
  \`\`\``
80327
80053
  },
80328
- tools: tools47,
80054
+ tools: tools46,
80329
80055
  async checkConnection(_params, config) {
80330
80056
  const { proxyFetch } = config;
80331
80057
  try {
@@ -80369,7 +80095,7 @@ var mailchimpOnboarding = new ConnectorOnboarding({
80369
80095
  });
80370
80096
 
80371
80097
  // ../connectors/src/connectors/mailchimp/parameters.ts
80372
- var parameters48 = {
80098
+ var parameters47 = {
80373
80099
  apiKey: new ParameterDefinition({
80374
80100
  slug: "api-key",
80375
80101
  name: "Mailchimp API Key",
@@ -80382,7 +80108,7 @@ var parameters48 = {
80382
80108
  };
80383
80109
 
80384
80110
  // ../connectors/src/connectors/mailchimp/tools/request.ts
80385
- import { z as z58 } from "zod";
80111
+ import { z as z57 } from "zod";
80386
80112
  var REQUEST_TIMEOUT_MS40 = 6e4;
80387
80113
  function extractDatacenter(apiKey) {
80388
80114
  const parts = apiKey.split("-");
@@ -80394,29 +80120,29 @@ function extractDatacenter(apiKey) {
80394
80120
  }
80395
80121
  return dc;
80396
80122
  }
80397
- var inputSchema56 = z58.object({
80398
- toolUseIntent: z58.string().optional().describe(
80123
+ var inputSchema55 = z57.object({
80124
+ toolUseIntent: z57.string().optional().describe(
80399
80125
  "Brief description of what you intend to accomplish with this tool call"
80400
80126
  ),
80401
- connectionId: z58.string().describe("ID of the Mailchimp connection to use"),
80402
- method: z58.enum(["GET", "POST", "PATCH", "PUT", "DELETE"]).describe(
80127
+ connectionId: z57.string().describe("ID of the Mailchimp connection to use"),
80128
+ method: z57.enum(["GET", "POST", "PATCH", "PUT", "DELETE"]).describe(
80403
80129
  "HTTP method. GET for reading, POST for creating, PATCH/PUT for updating, DELETE for removing."
80404
80130
  ),
80405
- path: z58.string().describe(
80131
+ path: z57.string().describe(
80406
80132
  "API path appended to the base URL (e.g., '/lists', '/campaigns', '/lists/{list_id}/members')"
80407
80133
  ),
80408
- queryParams: z58.record(z58.string(), z58.string()).optional().describe("Query parameters to append to the URL (e.g., count, offset)"),
80409
- body: z58.record(z58.string(), z58.unknown()).optional().describe("Request body (JSON) for POST/PATCH/PUT requests")
80134
+ queryParams: z57.record(z57.string(), z57.string()).optional().describe("Query parameters to append to the URL (e.g., count, offset)"),
80135
+ body: z57.record(z57.string(), z57.unknown()).optional().describe("Request body (JSON) for POST/PATCH/PUT requests")
80410
80136
  });
80411
- var outputSchema56 = z58.discriminatedUnion("success", [
80412
- z58.object({
80413
- success: z58.literal(true),
80414
- status: z58.number(),
80415
- data: z58.record(z58.string(), z58.unknown())
80137
+ var outputSchema55 = z57.discriminatedUnion("success", [
80138
+ z57.object({
80139
+ success: z57.literal(true),
80140
+ status: z57.number(),
80141
+ data: z57.record(z57.string(), z57.unknown())
80416
80142
  }),
80417
- z58.object({
80418
- success: z58.literal(false),
80419
- error: z58.string()
80143
+ z57.object({
80144
+ success: z57.literal(false),
80145
+ error: z57.string()
80420
80146
  })
80421
80147
  ]);
80422
80148
  var requestTool30 = new ConnectorTool({
@@ -80425,8 +80151,8 @@ var requestTool30 = new ConnectorTool({
80425
80151
  Authentication is handled automatically using the API Key (Basic Auth).
80426
80152
  Use this tool for all Mailchimp API interactions: managing audiences/lists, campaigns, members/subscribers, templates, automations, and reports.
80427
80153
  The datacenter is automatically extracted from the API key suffix.`,
80428
- inputSchema: inputSchema56,
80429
- outputSchema: outputSchema56,
80154
+ inputSchema: inputSchema55,
80155
+ outputSchema: outputSchema55,
80430
80156
  async execute({ connectionId, method, path: path5, queryParams, body }, connections) {
80431
80157
  const connection2 = connections.find((c6) => c6.id === connectionId);
80432
80158
  if (!connection2) {
@@ -80439,7 +80165,7 @@ The datacenter is automatically extracted from the API key suffix.`,
80439
80165
  `[connector-request] mailchimp/${connection2.name}: ${method} ${path5}`
80440
80166
  );
80441
80167
  try {
80442
- const apiKey = parameters48.apiKey.getValue(connection2);
80168
+ const apiKey = parameters47.apiKey.getValue(connection2);
80443
80169
  const dc = extractDatacenter(apiKey);
80444
80170
  const baseUrl = `https://${dc}.api.mailchimp.com/3.0`;
80445
80171
  let url = `${baseUrl}${path5.startsWith("/") ? "" : "/"}${path5}`;
@@ -80476,14 +80202,14 @@ The datacenter is automatically extracted from the API key suffix.`,
80476
80202
  });
80477
80203
 
80478
80204
  // ../connectors/src/connectors/mailchimp/index.ts
80479
- var tools48 = { request: requestTool30 };
80205
+ var tools47 = { request: requestTool30 };
80480
80206
  var mailchimpConnector = new ConnectorPlugin({
80481
80207
  slug: "mailchimp",
80482
80208
  authType: null,
80483
80209
  name: "Mailchimp",
80484
80210
  description: "Connect to Mailchimp for email marketing, audiences, campaigns, and analytics.",
80485
80211
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/19Rac6B8eGiLpQb4lKMbG3/10f567f85572aeb16f2ee6aaa6602987/mailchimp.png",
80486
- parameters: parameters48,
80212
+ parameters: parameters47,
80487
80213
  releaseFlag: { dev1: true, dev2: false, prod: false },
80488
80214
  onboarding: mailchimpOnboarding,
80489
80215
  systemPrompt: {
@@ -80682,7 +80408,7 @@ export default async function handler(c: Context) {
80682
80408
  - subscriber_hash\u306F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5C0F\u6587\u5B57\u306EMD5\u30CF\u30C3\u30B7\u30E5
80683
80409
  - \u30A8\u30E9\u30FC\u306F\`type\`, \`title\`, \`status\`, \`detail\`, \`instance\`\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u8FD4\u5374`
80684
80410
  },
80685
- tools: tools48
80411
+ tools: tools47
80686
80412
  });
80687
80413
 
80688
80414
  // ../connectors/src/connectors/mailchimp-oauth/setup.ts
@@ -80700,7 +80426,7 @@ var mailchimpOauthOnboarding = new ConnectorOnboarding({
80700
80426
  });
80701
80427
 
80702
80428
  // ../connectors/src/connectors/mailchimp-oauth/parameters.ts
80703
- var parameters49 = {
80429
+ var parameters48 = {
80704
80430
  serverPrefix: new ParameterDefinition({
80705
80431
  slug: "server-prefix",
80706
80432
  name: "Server Prefix (Datacenter)",
@@ -80713,7 +80439,7 @@ var parameters49 = {
80713
80439
  };
80714
80440
 
80715
80441
  // ../connectors/src/connectors/mailchimp-oauth/tools/request.ts
80716
- import { z as z59 } from "zod";
80442
+ import { z as z58 } from "zod";
80717
80443
  var REQUEST_TIMEOUT_MS41 = 6e4;
80718
80444
  var cachedToken20 = null;
80719
80445
  async function getProxyToken20(config) {
@@ -80746,35 +80472,35 @@ async function getProxyToken20(config) {
80746
80472
  };
80747
80473
  return data.token;
80748
80474
  }
80749
- var inputSchema57 = z59.object({
80750
- toolUseIntent: z59.string().optional().describe(
80475
+ var inputSchema56 = z58.object({
80476
+ toolUseIntent: z58.string().optional().describe(
80751
80477
  "Brief description of what you intend to accomplish with this tool call"
80752
80478
  ),
80753
- connectionId: z59.string().describe("ID of the Mailchimp OAuth connection to use"),
80754
- method: z59.enum(["GET", "POST", "PATCH", "PUT", "DELETE"]).describe("HTTP method"),
80755
- path: z59.string().describe(
80479
+ connectionId: z58.string().describe("ID of the Mailchimp OAuth connection to use"),
80480
+ method: z58.enum(["GET", "POST", "PATCH", "PUT", "DELETE"]).describe("HTTP method"),
80481
+ path: z58.string().describe(
80756
80482
  "API path appended to the base URL (e.g., '/lists', '/campaigns', '/lists/{list_id}/members')"
80757
80483
  ),
80758
- queryParams: z59.record(z59.string(), z59.string()).optional().describe("Query parameters to append to the URL"),
80759
- body: z59.record(z59.string(), z59.unknown()).optional().describe("Request body (JSON) for POST/PATCH/PUT requests")
80484
+ queryParams: z58.record(z58.string(), z58.string()).optional().describe("Query parameters to append to the URL"),
80485
+ body: z58.record(z58.string(), z58.unknown()).optional().describe("Request body (JSON) for POST/PATCH/PUT requests")
80760
80486
  });
80761
- var outputSchema57 = z59.discriminatedUnion("success", [
80762
- z59.object({
80763
- success: z59.literal(true),
80764
- status: z59.number(),
80765
- data: z59.record(z59.string(), z59.unknown())
80487
+ var outputSchema56 = z58.discriminatedUnion("success", [
80488
+ z58.object({
80489
+ success: z58.literal(true),
80490
+ status: z58.number(),
80491
+ data: z58.record(z58.string(), z58.unknown())
80766
80492
  }),
80767
- z59.object({
80768
- success: z59.literal(false),
80769
- error: z59.string()
80493
+ z58.object({
80494
+ success: z58.literal(false),
80495
+ error: z58.string()
80770
80496
  })
80771
80497
  ]);
80772
80498
  var requestTool31 = new ConnectorTool({
80773
80499
  name: "request",
80774
80500
  description: `Send authenticated requests to the Mailchimp Marketing API v3.
80775
80501
  Authentication is handled automatically via OAuth proxy.`,
80776
- inputSchema: inputSchema57,
80777
- outputSchema: outputSchema57,
80502
+ inputSchema: inputSchema56,
80503
+ outputSchema: outputSchema56,
80778
80504
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
80779
80505
  const connection2 = connections.find((c6) => c6.id === connectionId);
80780
80506
  if (!connection2) {
@@ -80787,7 +80513,7 @@ Authentication is handled automatically via OAuth proxy.`,
80787
80513
  `[connector-request] mailchimp-oauth/${connection2.name}: ${method} ${path5}`
80788
80514
  );
80789
80515
  try {
80790
- const serverPrefix = parameters49.serverPrefix.getValue(connection2);
80516
+ const serverPrefix = parameters48.serverPrefix.getValue(connection2);
80791
80517
  const baseUrl = `https://${serverPrefix}.api.mailchimp.com/3.0`;
80792
80518
  let url = `${baseUrl}${path5.startsWith("/") ? "" : "/"}${path5}`;
80793
80519
  if (queryParams) {
@@ -80829,14 +80555,14 @@ Authentication is handled automatically via OAuth proxy.`,
80829
80555
  });
80830
80556
 
80831
80557
  // ../connectors/src/connectors/mailchimp-oauth/index.ts
80832
- var tools49 = { request: requestTool31 };
80558
+ var tools48 = { request: requestTool31 };
80833
80559
  var mailchimpOauthConnector = new ConnectorPlugin({
80834
80560
  slug: "mailchimp",
80835
80561
  authType: AUTH_TYPES.OAUTH,
80836
80562
  name: "Mailchimp (OAuth)",
80837
80563
  description: "Connect to Mailchimp for email marketing, audiences, campaigns, and analytics using OAuth.",
80838
80564
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/19Rac6B8eGiLpQb4lKMbG3/10f567f85572aeb16f2ee6aaa6602987/mailchimp.png",
80839
- parameters: parameters49,
80565
+ parameters: parameters48,
80840
80566
  releaseFlag: { dev1: true, dev2: false, prod: false },
80841
80567
  onboarding: mailchimpOauthOnboarding,
80842
80568
  proxyPolicy: {
@@ -80965,7 +80691,7 @@ const res = await mailchimp.request("/lists?count=10");
80965
80691
  const data = await res.json();
80966
80692
  \`\`\``
80967
80693
  },
80968
- tools: tools49,
80694
+ tools: tools48,
80969
80695
  async checkConnection(params, config) {
80970
80696
  const { proxyFetch } = config;
80971
80697
  const serverPrefix = params["server-prefix"];
@@ -81006,7 +80732,7 @@ var customerioOnboarding = new ConnectorOnboarding({
81006
80732
  });
81007
80733
 
81008
80734
  // ../connectors/src/connectors/customerio/parameters.ts
81009
- var parameters50 = {
80735
+ var parameters49 = {
81010
80736
  appApiKey: new ParameterDefinition({
81011
80737
  slug: "app-api-key",
81012
80738
  name: "App API Key",
@@ -81028,32 +80754,32 @@ var parameters50 = {
81028
80754
  };
81029
80755
 
81030
80756
  // ../connectors/src/connectors/customerio/tools/request.ts
81031
- import { z as z60 } from "zod";
80757
+ import { z as z59 } from "zod";
81032
80758
  var REQUEST_TIMEOUT_MS42 = 6e4;
81033
80759
  function getBaseUrl(region) {
81034
80760
  return region === "eu" ? "https://api-eu.customer.io" : "https://api.customer.io";
81035
80761
  }
81036
- var inputSchema58 = z60.object({
81037
- toolUseIntent: z60.string().optional().describe(
80762
+ var inputSchema57 = z59.object({
80763
+ toolUseIntent: z59.string().optional().describe(
81038
80764
  "Brief description of what you intend to accomplish with this tool call"
81039
80765
  ),
81040
- connectionId: z60.string().describe("ID of the Customer.io connection to use"),
81041
- method: z60.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]).describe("HTTP method"),
81042
- path: z60.string().describe(
80766
+ connectionId: z59.string().describe("ID of the Customer.io connection to use"),
80767
+ method: z59.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]).describe("HTTP method"),
80768
+ path: z59.string().describe(
81043
80769
  "API path (e.g., '/v1/customers', '/v1/segments', '/v1/campaigns', '/v1/send/email')"
81044
80770
  ),
81045
- queryParams: z60.record(z60.string(), z60.string()).optional().describe("Query parameters to append to the URL"),
81046
- body: z60.record(z60.string(), z60.unknown()).optional().describe("Request body (JSON) for POST/PUT/PATCH requests")
80771
+ queryParams: z59.record(z59.string(), z59.string()).optional().describe("Query parameters to append to the URL"),
80772
+ body: z59.record(z59.string(), z59.unknown()).optional().describe("Request body (JSON) for POST/PUT/PATCH requests")
81047
80773
  });
81048
- var outputSchema58 = z60.discriminatedUnion("success", [
81049
- z60.object({
81050
- success: z60.literal(true),
81051
- status: z60.number(),
81052
- data: z60.record(z60.string(), z60.unknown())
80774
+ var outputSchema57 = z59.discriminatedUnion("success", [
80775
+ z59.object({
80776
+ success: z59.literal(true),
80777
+ status: z59.number(),
80778
+ data: z59.record(z59.string(), z59.unknown())
81053
80779
  }),
81054
- z60.object({
81055
- success: z60.literal(false),
81056
- error: z60.string()
80780
+ z59.object({
80781
+ success: z59.literal(false),
80782
+ error: z59.string()
81057
80783
  })
81058
80784
  ]);
81059
80785
  var requestTool32 = new ConnectorTool({
@@ -81062,8 +80788,8 @@ var requestTool32 = new ConnectorTool({
81062
80788
  Authentication is handled automatically using the App API Key (Bearer token).
81063
80789
  Use this tool for reading customer data, managing campaigns, segments, broadcasts, sending transactional messages, and retrieving delivery information.
81064
80790
  The App API is the read and management path for Customer.io data.`,
81065
- inputSchema: inputSchema58,
81066
- outputSchema: outputSchema58,
80791
+ inputSchema: inputSchema57,
80792
+ outputSchema: outputSchema57,
81067
80793
  async execute({ connectionId, method, path: path5, queryParams, body }, connections) {
81068
80794
  const connection2 = connections.find((c6) => c6.id === connectionId);
81069
80795
  if (!connection2) {
@@ -81076,8 +80802,8 @@ The App API is the read and management path for Customer.io data.`,
81076
80802
  `[connector-request] customerio/${connection2.name}: ${method} ${path5}`
81077
80803
  );
81078
80804
  try {
81079
- const appApiKey = parameters50.appApiKey.getValue(connection2);
81080
- const region = parameters50.region.tryGetValue(connection2);
80805
+ const appApiKey = parameters49.appApiKey.getValue(connection2);
80806
+ const region = parameters49.region.tryGetValue(connection2);
81081
80807
  const baseUrl = getBaseUrl(region);
81082
80808
  let url = `${baseUrl}${path5.startsWith("/") ? "" : "/"}${path5}`;
81083
80809
  if (queryParams) {
@@ -81122,14 +80848,14 @@ The App API is the read and management path for Customer.io data.`,
81122
80848
  });
81123
80849
 
81124
80850
  // ../connectors/src/connectors/customerio/index.ts
81125
- var tools50 = { request: requestTool32 };
80851
+ var tools49 = { request: requestTool32 };
81126
80852
  var customerioConnector = new ConnectorPlugin({
81127
80853
  slug: "customerio",
81128
80854
  authType: null,
81129
80855
  name: "Customer.io",
81130
80856
  description: "Connect to Customer.io App API for reading customer data, managing campaigns, segments, and sending transactional messages.",
81131
80857
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/nngohabT7oHDIgQYAVBpz/6f6c7662ef4692eb9869e3e69dd57114/customerio.png",
81132
- parameters: parameters50,
80858
+ parameters: parameters49,
81133
80859
  releaseFlag: { dev1: true, dev2: false, prod: false },
81134
80860
  onboarding: customerioOnboarding,
81135
80861
  systemPrompt: {
@@ -81302,11 +81028,11 @@ export default async function handler(c: Context) {
81302
81028
  - \u5927\u91CF\u30C7\u30FC\u30BF\u53D6\u5F97\u306B\u306Fexports\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3092\u4F7F\u7528
81303
81029
  - \u30DA\u30FC\u30B8\u30CD\u30FC\u30B7\u30E7\u30F3\u306F\u9867\u5BA2\u4E00\u89A7\u3067\u30AB\u30FC\u30BD\u30EB\u30D9\u30FC\u30B9\u306E\`start\`\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u4F7F\u7528`
81304
81030
  },
81305
- tools: tools50
81031
+ tools: tools49
81306
81032
  });
81307
81033
 
81308
81034
  // ../connectors/src/connectors/gmail-oauth/tools/request.ts
81309
- import { z as z61 } from "zod";
81035
+ import { z as z60 } from "zod";
81310
81036
  var BASE_URL29 = "https://gmail.googleapis.com/gmail/v1/users";
81311
81037
  var REQUEST_TIMEOUT_MS43 = 6e4;
81312
81038
  var cachedToken21 = null;
@@ -81340,28 +81066,28 @@ async function getProxyToken21(config) {
81340
81066
  };
81341
81067
  return data.token;
81342
81068
  }
81343
- var inputSchema59 = z61.object({
81344
- toolUseIntent: z61.string().optional().describe(
81069
+ var inputSchema58 = z60.object({
81070
+ toolUseIntent: z60.string().optional().describe(
81345
81071
  "Brief description of what you intend to accomplish with this tool call"
81346
81072
  ),
81347
- connectionId: z61.string().describe("ID of the Gmail OAuth connection to use"),
81348
- method: z61.enum(["GET"]).describe("HTTP method (read-only, GET only)"),
81349
- path: z61.string().describe(
81073
+ connectionId: z60.string().describe("ID of the Gmail OAuth connection to use"),
81074
+ method: z60.enum(["GET"]).describe("HTTP method (read-only, GET only)"),
81075
+ path: z60.string().describe(
81350
81076
  "API path appended to https://gmail.googleapis.com/gmail/v1/users (e.g., '/me/messages', '/me/messages/{id}', '/me/labels'). Use '/me' as the userId."
81351
81077
  ),
81352
- queryParams: z61.record(z61.string(), z61.string()).optional().describe(
81078
+ queryParams: z60.record(z60.string(), z60.string()).optional().describe(
81353
81079
  "Query parameters to append to the URL (e.g., { q: 'from:example@gmail.com', maxResults: '10' })"
81354
81080
  )
81355
81081
  });
81356
- var outputSchema59 = z61.discriminatedUnion("success", [
81357
- z61.object({
81358
- success: z61.literal(true),
81359
- status: z61.number(),
81360
- data: z61.record(z61.string(), z61.unknown())
81082
+ var outputSchema58 = z60.discriminatedUnion("success", [
81083
+ z60.object({
81084
+ success: z60.literal(true),
81085
+ status: z60.number(),
81086
+ data: z60.record(z60.string(), z60.unknown())
81361
81087
  }),
81362
- z61.object({
81363
- success: z61.literal(false),
81364
- error: z61.string()
81088
+ z60.object({
81089
+ success: z60.literal(false),
81090
+ error: z60.string()
81365
81091
  })
81366
81092
  ]);
81367
81093
  var requestTool33 = new ConnectorTool({
@@ -81369,8 +81095,8 @@ var requestTool33 = new ConnectorTool({
81369
81095
  description: `Send authenticated GET requests to the Gmail API v1.
81370
81096
  Authentication is handled automatically via OAuth proxy.
81371
81097
  All paths are relative to https://gmail.googleapis.com/gmail/v1/users. Use '/me' as the userId prefix (e.g., '/me/messages').`,
81372
- inputSchema: inputSchema59,
81373
- outputSchema: outputSchema59,
81098
+ inputSchema: inputSchema58,
81099
+ outputSchema: outputSchema58,
81374
81100
  async execute({ connectionId, method, path: path5, queryParams }, connections, config) {
81375
81101
  const connection2 = connections.find((c6) => c6.id === connectionId);
81376
81102
  if (!connection2) {
@@ -81471,17 +81197,17 @@ var gmailOnboarding = new ConnectorOnboarding({
81471
81197
  });
81472
81198
 
81473
81199
  // ../connectors/src/connectors/gmail-oauth/parameters.ts
81474
- var parameters51 = {};
81200
+ var parameters50 = {};
81475
81201
 
81476
81202
  // ../connectors/src/connectors/gmail-oauth/index.ts
81477
- var tools51 = { request: requestTool33 };
81203
+ var tools50 = { request: requestTool33 };
81478
81204
  var gmailOauthConnector = new ConnectorPlugin({
81479
81205
  slug: "gmail",
81480
81206
  authType: AUTH_TYPES.OAUTH,
81481
81207
  name: "Gmail (OAuth)",
81482
81208
  description: "Connect to Gmail for email data access using OAuth. Read-only access to messages, threads, and labels.",
81483
81209
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/4V3rfaSc1ksFIt2eHBNIwJ/7f3be41a154a6d96dcf229ed0e5858c9/Gmail_icon__2020_.svg.png",
81484
- parameters: parameters51,
81210
+ parameters: parameters50,
81485
81211
  releaseFlag: { dev1: true, dev2: false, prod: false },
81486
81212
  onboarding: gmailOnboarding,
81487
81213
  proxyPolicy: {
@@ -81640,7 +81366,7 @@ const thread = await gmail.getThread("<threadId>");
81640
81366
  thread.messages.forEach(m => console.log(m.snippet));
81641
81367
  \`\`\``
81642
81368
  },
81643
- tools: tools51,
81369
+ tools: tools50,
81644
81370
  async checkConnection(_params, config) {
81645
81371
  const { proxyFetch } = config;
81646
81372
  const url = "https://gmail.googleapis.com/gmail/v1/users/me/profile";
@@ -81664,10 +81390,10 @@ thread.messages.forEach(m => console.log(m.snippet));
81664
81390
  });
81665
81391
 
81666
81392
  // ../connectors/src/connectors/linkedin-ads/tools/list-ad-accounts.ts
81667
- import { z as z62 } from "zod";
81393
+ import { z as z61 } from "zod";
81668
81394
 
81669
81395
  // ../connectors/src/connectors/linkedin-ads/parameters.ts
81670
- var parameters52 = {
81396
+ var parameters51 = {
81671
81397
  accessToken: new ParameterDefinition({
81672
81398
  slug: "access-token",
81673
81399
  name: "Access Token",
@@ -81691,32 +81417,32 @@ var parameters52 = {
81691
81417
  // ../connectors/src/connectors/linkedin-ads/tools/list-ad-accounts.ts
81692
81418
  var REQUEST_TIMEOUT_MS44 = 6e4;
81693
81419
  var LINKEDIN_VERSION = "202603";
81694
- var inputSchema60 = z62.object({
81695
- toolUseIntent: z62.string().optional().describe(
81420
+ var inputSchema59 = z61.object({
81421
+ toolUseIntent: z61.string().optional().describe(
81696
81422
  "Brief description of what you intend to accomplish with this tool call"
81697
81423
  ),
81698
- connectionId: z62.string().describe("ID of the LinkedIn Ads connection to use")
81424
+ connectionId: z61.string().describe("ID of the LinkedIn Ads connection to use")
81699
81425
  });
81700
- var outputSchema60 = z62.discriminatedUnion("success", [
81701
- z62.object({
81702
- success: z62.literal(true),
81703
- adAccounts: z62.array(
81704
- z62.object({
81705
- adAccountId: z62.string(),
81706
- name: z62.string()
81426
+ var outputSchema59 = z61.discriminatedUnion("success", [
81427
+ z61.object({
81428
+ success: z61.literal(true),
81429
+ adAccounts: z61.array(
81430
+ z61.object({
81431
+ adAccountId: z61.string(),
81432
+ name: z61.string()
81707
81433
  })
81708
81434
  )
81709
81435
  }),
81710
- z62.object({
81711
- success: z62.literal(false),
81712
- error: z62.string()
81436
+ z61.object({
81437
+ success: z61.literal(false),
81438
+ error: z61.string()
81713
81439
  })
81714
81440
  ]);
81715
81441
  var listAdAccountsTool3 = new ConnectorTool({
81716
81442
  name: "listAdAccounts",
81717
81443
  description: "List LinkedIn ad accounts accessible with the current access token.",
81718
- inputSchema: inputSchema60,
81719
- outputSchema: outputSchema60,
81444
+ inputSchema: inputSchema59,
81445
+ outputSchema: outputSchema59,
81720
81446
  async execute({ connectionId }, connections) {
81721
81447
  const connection2 = connections.find((c6) => c6.id === connectionId);
81722
81448
  if (!connection2) {
@@ -81729,7 +81455,7 @@ var listAdAccountsTool3 = new ConnectorTool({
81729
81455
  `[connector-request] linkedin-ads/${connection2.name}: listAdAccounts`
81730
81456
  );
81731
81457
  try {
81732
- const accessToken = parameters52.accessToken.getValue(connection2);
81458
+ const accessToken = parameters51.accessToken.getValue(connection2);
81733
81459
  const url = "https://api.linkedin.com/rest/adAccounts?q=search&search=(status:(values:List(ACTIVE)))&pageSize=100";
81734
81460
  const controller = new AbortController();
81735
81461
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS44);
@@ -81811,31 +81537,31 @@ var linkedinAdsOnboarding = new ConnectorOnboarding({
81811
81537
  });
81812
81538
 
81813
81539
  // ../connectors/src/connectors/linkedin-ads/tools/request.ts
81814
- import { z as z63 } from "zod";
81540
+ import { z as z62 } from "zod";
81815
81541
  var BASE_URL30 = "https://api.linkedin.com/rest/";
81816
81542
  var LINKEDIN_VERSION2 = "202603";
81817
81543
  var REQUEST_TIMEOUT_MS45 = 6e4;
81818
- var inputSchema61 = z63.object({
81819
- toolUseIntent: z63.string().optional().describe(
81544
+ var inputSchema60 = z62.object({
81545
+ toolUseIntent: z62.string().optional().describe(
81820
81546
  "Brief description of what you intend to accomplish with this tool call"
81821
81547
  ),
81822
- connectionId: z63.string().describe("ID of the LinkedIn Ads connection to use"),
81823
- method: z63.enum(["GET", "POST", "DELETE"]).describe("HTTP method"),
81824
- path: z63.string().describe(
81548
+ connectionId: z62.string().describe("ID of the LinkedIn Ads connection to use"),
81549
+ method: z62.enum(["GET", "POST", "DELETE"]).describe("HTTP method"),
81550
+ path: z62.string().describe(
81825
81551
  "API path appended to https://api.linkedin.com/rest/ (e.g., 'adAccounts/{adAccountId}/adCampaigns'). {adAccountId} is automatically replaced with the configured ad account ID."
81826
81552
  ),
81827
- queryParams: z63.record(z63.string(), z63.string()).optional().describe("Query parameters to append to the URL"),
81828
- body: z63.record(z63.string(), z63.unknown()).optional().describe("Request body (JSON). For partial updates, use the patch format: { patch: { $set: { ... } } }")
81553
+ queryParams: z62.record(z62.string(), z62.string()).optional().describe("Query parameters to append to the URL"),
81554
+ body: z62.record(z62.string(), z62.unknown()).optional().describe("Request body (JSON). For partial updates, use the patch format: { patch: { $set: { ... } } }")
81829
81555
  });
81830
- var outputSchema61 = z63.discriminatedUnion("success", [
81831
- z63.object({
81832
- success: z63.literal(true),
81833
- status: z63.number(),
81834
- data: z63.unknown()
81556
+ var outputSchema60 = z62.discriminatedUnion("success", [
81557
+ z62.object({
81558
+ success: z62.literal(true),
81559
+ status: z62.number(),
81560
+ data: z62.unknown()
81835
81561
  }),
81836
- z63.object({
81837
- success: z63.literal(false),
81838
- error: z63.string()
81562
+ z62.object({
81563
+ success: z62.literal(false),
81564
+ error: z62.string()
81839
81565
  })
81840
81566
  ]);
81841
81567
  var requestTool34 = new ConnectorTool({
@@ -81844,8 +81570,8 @@ var requestTool34 = new ConnectorTool({
81844
81570
  Authentication is handled via the configured access token.
81845
81571
  {adAccountId} in the path is automatically replaced with the connection's ad account ID.
81846
81572
  Required headers (Authorization, LinkedIn-Version, X-Restli-Protocol-Version) are set automatically.`,
81847
- inputSchema: inputSchema61,
81848
- outputSchema: outputSchema61,
81573
+ inputSchema: inputSchema60,
81574
+ outputSchema: outputSchema60,
81849
81575
  async execute({ connectionId, method, path: path5, queryParams, body }, connections) {
81850
81576
  const connection2 = connections.find((c6) => c6.id === connectionId);
81851
81577
  if (!connection2) {
@@ -81858,8 +81584,8 @@ Required headers (Authorization, LinkedIn-Version, X-Restli-Protocol-Version) ar
81858
81584
  `[connector-request] linkedin-ads/${connection2.name}: ${method} ${path5}`
81859
81585
  );
81860
81586
  try {
81861
- const accessToken = parameters52.accessToken.getValue(connection2);
81862
- const adAccountId = parameters52.adAccountId.tryGetValue(connection2) ?? "";
81587
+ const accessToken = parameters51.accessToken.getValue(connection2);
81588
+ const adAccountId = parameters51.adAccountId.tryGetValue(connection2) ?? "";
81863
81589
  const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
81864
81590
  let url = `${BASE_URL30}${resolvedPath}`;
81865
81591
  if (queryParams && Object.keys(queryParams).length > 0) {
@@ -81906,7 +81632,7 @@ Required headers (Authorization, LinkedIn-Version, X-Restli-Protocol-Version) ar
81906
81632
  });
81907
81633
 
81908
81634
  // ../connectors/src/connectors/linkedin-ads/index.ts
81909
- var tools52 = {
81635
+ var tools51 = {
81910
81636
  request: requestTool34,
81911
81637
  listAdAccounts: listAdAccountsTool3
81912
81638
  };
@@ -81916,7 +81642,7 @@ var linkedinAdsConnector = new ConnectorPlugin({
81916
81642
  name: "LinkedIn Ads",
81917
81643
  description: "Connect to LinkedIn Ads (Marketing API) for advertising campaign data and reporting using an access token.",
81918
81644
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/3x7xd9pVJkRFY7ADIg4ycq/b94720e34cb081e9ae45dfde799a59cd/LinkedIn_icon.svg.png",
81919
- parameters: parameters52,
81645
+ parameters: parameters51,
81920
81646
  releaseFlag: { dev1: true, dev2: false, prod: false },
81921
81647
  onboarding: linkedinAdsOnboarding,
81922
81648
  systemPrompt: {
@@ -82131,9 +81857,9 @@ const res = await linkedin.request("adAccounts/{adAccountId}/adCampaigns?q=searc
82131
81857
  const data = await res.json();
82132
81858
  \`\`\``
82133
81859
  },
82134
- tools: tools52,
81860
+ tools: tools51,
82135
81861
  async checkConnection(params) {
82136
- const accessToken = params[parameters52.accessToken.slug];
81862
+ const accessToken = params[parameters51.accessToken.slug];
82137
81863
  if (!accessToken) {
82138
81864
  return {
82139
81865
  success: false,
@@ -82168,7 +81894,7 @@ const data = await res.json();
82168
81894
  });
82169
81895
 
82170
81896
  // ../connectors/src/connectors/linkedin-ads-oauth/tools/list-ad-accounts.ts
82171
- import { z as z64 } from "zod";
81897
+ import { z as z63 } from "zod";
82172
81898
  var BASE_URL31 = "https://api.linkedin.com/rest/";
82173
81899
  var LINKEDIN_VERSION3 = "202603";
82174
81900
  var REQUEST_TIMEOUT_MS46 = 6e4;
@@ -82203,32 +81929,32 @@ async function getProxyToken22(config) {
82203
81929
  };
82204
81930
  return data.token;
82205
81931
  }
82206
- var inputSchema62 = z64.object({
82207
- toolUseIntent: z64.string().optional().describe(
81932
+ var inputSchema61 = z63.object({
81933
+ toolUseIntent: z63.string().optional().describe(
82208
81934
  "Brief description of what you intend to accomplish with this tool call"
82209
81935
  ),
82210
- connectionId: z64.string().describe("ID of the LinkedIn Ads OAuth connection to use")
81936
+ connectionId: z63.string().describe("ID of the LinkedIn Ads OAuth connection to use")
82211
81937
  });
82212
- var outputSchema62 = z64.discriminatedUnion("success", [
82213
- z64.object({
82214
- success: z64.literal(true),
82215
- adAccounts: z64.array(
82216
- z64.object({
82217
- adAccountId: z64.string(),
82218
- name: z64.string()
81938
+ var outputSchema61 = z63.discriminatedUnion("success", [
81939
+ z63.object({
81940
+ success: z63.literal(true),
81941
+ adAccounts: z63.array(
81942
+ z63.object({
81943
+ adAccountId: z63.string(),
81944
+ name: z63.string()
82219
81945
  })
82220
81946
  )
82221
81947
  }),
82222
- z64.object({
82223
- success: z64.literal(false),
82224
- error: z64.string()
81948
+ z63.object({
81949
+ success: z63.literal(false),
81950
+ error: z63.string()
82225
81951
  })
82226
81952
  ]);
82227
81953
  var listAdAccountsTool4 = new ConnectorTool({
82228
81954
  name: "listAdAccounts",
82229
81955
  description: "List LinkedIn ad accounts accessible with the current OAuth credentials.",
82230
- inputSchema: inputSchema62,
82231
- outputSchema: outputSchema62,
81956
+ inputSchema: inputSchema61,
81957
+ outputSchema: outputSchema61,
82232
81958
  async execute({ connectionId }, connections, config) {
82233
81959
  const connection2 = connections.find((c6) => c6.id === connectionId);
82234
81960
  if (!connection2) {
@@ -82330,7 +82056,7 @@ var linkedinAdsOauthOnboarding = new ConnectorOnboarding({
82330
82056
  });
82331
82057
 
82332
82058
  // ../connectors/src/connectors/linkedin-ads-oauth/parameters.ts
82333
- var parameters53 = {
82059
+ var parameters52 = {
82334
82060
  adAccountId: new ParameterDefinition({
82335
82061
  slug: "ad-account-id",
82336
82062
  name: "Ad Account ID",
@@ -82343,7 +82069,7 @@ var parameters53 = {
82343
82069
  };
82344
82070
 
82345
82071
  // ../connectors/src/connectors/linkedin-ads-oauth/tools/request.ts
82346
- import { z as z65 } from "zod";
82072
+ import { z as z64 } from "zod";
82347
82073
  var BASE_URL32 = "https://api.linkedin.com/rest/";
82348
82074
  var LINKEDIN_VERSION4 = "202603";
82349
82075
  var REQUEST_TIMEOUT_MS47 = 6e4;
@@ -82378,27 +82104,27 @@ async function getProxyToken23(config) {
82378
82104
  };
82379
82105
  return data.token;
82380
82106
  }
82381
- var inputSchema63 = z65.object({
82382
- toolUseIntent: z65.string().optional().describe(
82107
+ var inputSchema62 = z64.object({
82108
+ toolUseIntent: z64.string().optional().describe(
82383
82109
  "Brief description of what you intend to accomplish with this tool call"
82384
82110
  ),
82385
- connectionId: z65.string().describe("ID of the LinkedIn Ads OAuth connection to use"),
82386
- method: z65.enum(["GET", "POST", "DELETE"]).describe("HTTP method"),
82387
- path: z65.string().describe(
82111
+ connectionId: z64.string().describe("ID of the LinkedIn Ads OAuth connection to use"),
82112
+ method: z64.enum(["GET", "POST", "DELETE"]).describe("HTTP method"),
82113
+ path: z64.string().describe(
82388
82114
  "API path appended to https://api.linkedin.com/rest/ (e.g., 'adAccounts/{adAccountId}/adCampaigns'). {adAccountId} is automatically replaced with the connection's ad account ID."
82389
82115
  ),
82390
- queryParams: z65.record(z65.string(), z65.string()).optional().describe("Query parameters to append to the URL"),
82391
- body: z65.record(z65.string(), z65.unknown()).optional().describe("Request body (JSON). For partial updates, use the patch format: { patch: { $set: { ... } } }")
82116
+ queryParams: z64.record(z64.string(), z64.string()).optional().describe("Query parameters to append to the URL"),
82117
+ body: z64.record(z64.string(), z64.unknown()).optional().describe("Request body (JSON). For partial updates, use the patch format: { patch: { $set: { ... } } }")
82392
82118
  });
82393
- var outputSchema63 = z65.discriminatedUnion("success", [
82394
- z65.object({
82395
- success: z65.literal(true),
82396
- status: z65.number(),
82397
- data: z65.unknown()
82119
+ var outputSchema62 = z64.discriminatedUnion("success", [
82120
+ z64.object({
82121
+ success: z64.literal(true),
82122
+ status: z64.number(),
82123
+ data: z64.unknown()
82398
82124
  }),
82399
- z65.object({
82400
- success: z65.literal(false),
82401
- error: z65.string()
82125
+ z64.object({
82126
+ success: z64.literal(false),
82127
+ error: z64.string()
82402
82128
  })
82403
82129
  ]);
82404
82130
  var requestTool35 = new ConnectorTool({
@@ -82407,8 +82133,8 @@ var requestTool35 = new ConnectorTool({
82407
82133
  Authentication is handled automatically via OAuth proxy.
82408
82134
  {adAccountId} in the path is automatically replaced with the connection's ad account ID.
82409
82135
  Required headers (LinkedIn-Version, X-Restli-Protocol-Version) are set automatically.`,
82410
- inputSchema: inputSchema63,
82411
- outputSchema: outputSchema63,
82136
+ inputSchema: inputSchema62,
82137
+ outputSchema: outputSchema62,
82412
82138
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
82413
82139
  const connection2 = connections.find((c6) => c6.id === connectionId);
82414
82140
  if (!connection2) {
@@ -82421,7 +82147,7 @@ Required headers (LinkedIn-Version, X-Restli-Protocol-Version) are set automatic
82421
82147
  `[connector-request] linkedin-ads-oauth/${connection2.name}: ${method} ${path5}`
82422
82148
  );
82423
82149
  try {
82424
- const adAccountId = parameters53.adAccountId.tryGetValue(connection2) ?? "";
82150
+ const adAccountId = parameters52.adAccountId.tryGetValue(connection2) ?? "";
82425
82151
  const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
82426
82152
  let url = `${BASE_URL32}${resolvedPath}`;
82427
82153
  if (queryParams && Object.keys(queryParams).length > 0) {
@@ -82476,7 +82202,7 @@ Required headers (LinkedIn-Version, X-Restli-Protocol-Version) are set automatic
82476
82202
  });
82477
82203
 
82478
82204
  // ../connectors/src/connectors/linkedin-ads-oauth/index.ts
82479
- var tools53 = {
82205
+ var tools52 = {
82480
82206
  request: requestTool35,
82481
82207
  listAdAccounts: listAdAccountsTool4
82482
82208
  };
@@ -82486,7 +82212,7 @@ var linkedinAdsOauthConnector = new ConnectorPlugin({
82486
82212
  name: "LinkedIn Ads (OAuth)",
82487
82213
  description: "Connect to LinkedIn Ads (Marketing API) for advertising campaign data and reporting using OAuth.",
82488
82214
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/3x7xd9pVJkRFY7ADIg4ycq/b94720e34cb081e9ae45dfde799a59cd/LinkedIn_icon.svg.png",
82489
- parameters: parameters53,
82215
+ parameters: parameters52,
82490
82216
  releaseFlag: { dev1: true, dev2: false, prod: false },
82491
82217
  onboarding: linkedinAdsOauthOnboarding,
82492
82218
  proxyPolicy: {
@@ -82685,7 +82411,7 @@ const res = await linkedin.request("adAccounts/{adAccountId}/adCampaigns?q=searc
82685
82411
  const data = await res.json();
82686
82412
  \`\`\``
82687
82413
  },
82688
- tools: tools53,
82414
+ tools: tools52,
82689
82415
  async checkConnection(_params, config) {
82690
82416
  const { proxyFetch } = config;
82691
82417
  try {
@@ -82729,7 +82455,7 @@ var zendeskOnboarding = new ConnectorOnboarding({
82729
82455
  });
82730
82456
 
82731
82457
  // ../connectors/src/connectors/zendesk/parameters.ts
82732
- var parameters54 = {
82458
+ var parameters53 = {
82733
82459
  subdomain: new ParameterDefinition({
82734
82460
  slug: "subdomain",
82735
82461
  name: "Zendesk Subdomain",
@@ -82760,30 +82486,30 @@ var parameters54 = {
82760
82486
  };
82761
82487
 
82762
82488
  // ../connectors/src/connectors/zendesk/tools/request.ts
82763
- import { z as z66 } from "zod";
82489
+ import { z as z65 } from "zod";
82764
82490
  var REQUEST_TIMEOUT_MS48 = 6e4;
82765
- var inputSchema64 = z66.object({
82766
- toolUseIntent: z66.string().optional().describe(
82491
+ var inputSchema63 = z65.object({
82492
+ toolUseIntent: z65.string().optional().describe(
82767
82493
  "Brief description of what you intend to accomplish with this tool call"
82768
82494
  ),
82769
- connectionId: z66.string().describe("ID of the Zendesk connection to use"),
82770
- method: z66.enum(["GET", "POST", "PUT", "DELETE"]).describe(
82495
+ connectionId: z65.string().describe("ID of the Zendesk connection to use"),
82496
+ method: z65.enum(["GET", "POST", "PUT", "DELETE"]).describe(
82771
82497
  "HTTP method. GET for reading, POST for creating/searching, PUT for updating, DELETE for removing."
82772
82498
  ),
82773
- path: z66.string().describe(
82499
+ path: z65.string().describe(
82774
82500
  "API path appended to https://{subdomain}.zendesk.com (e.g., '/api/v2/tickets.json', '/api/v2/search.json?query=status:open')"
82775
82501
  ),
82776
- body: z66.record(z66.string(), z66.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
82502
+ body: z65.record(z65.string(), z65.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
82777
82503
  });
82778
- var outputSchema64 = z66.discriminatedUnion("success", [
82779
- z66.object({
82780
- success: z66.literal(true),
82781
- status: z66.number(),
82782
- data: z66.record(z66.string(), z66.unknown())
82504
+ var outputSchema63 = z65.discriminatedUnion("success", [
82505
+ z65.object({
82506
+ success: z65.literal(true),
82507
+ status: z65.number(),
82508
+ data: z65.record(z65.string(), z65.unknown())
82783
82509
  }),
82784
- z66.object({
82785
- success: z66.literal(false),
82786
- error: z66.string()
82510
+ z65.object({
82511
+ success: z65.literal(false),
82512
+ error: z65.string()
82787
82513
  })
82788
82514
  ]);
82789
82515
  var requestTool36 = new ConnectorTool({
@@ -82792,8 +82518,8 @@ var requestTool36 = new ConnectorTool({
82792
82518
  Authentication is handled automatically using email/token Basic auth.
82793
82519
  Use this tool for all Zendesk API interactions: querying tickets, users, organizations, groups, and searching.
82794
82520
  Zendesk uses cursor-based pagination with page[size] and page[after] parameters. All endpoints return .json suffix.`,
82795
- inputSchema: inputSchema64,
82796
- outputSchema: outputSchema64,
82521
+ inputSchema: inputSchema63,
82522
+ outputSchema: outputSchema63,
82797
82523
  async execute({ connectionId, method, path: path5, body }, connections) {
82798
82524
  const connection2 = connections.find((c6) => c6.id === connectionId);
82799
82525
  if (!connection2) {
@@ -82806,9 +82532,9 @@ Zendesk uses cursor-based pagination with page[size] and page[after] parameters.
82806
82532
  `[connector-request] zendesk/${connection2.name}: ${method} ${path5}`
82807
82533
  );
82808
82534
  try {
82809
- const subdomain = parameters54.subdomain.getValue(connection2);
82810
- const email = parameters54.email.getValue(connection2);
82811
- const apiToken = parameters54.apiToken.getValue(connection2);
82535
+ const subdomain = parameters53.subdomain.getValue(connection2);
82536
+ const email = parameters53.email.getValue(connection2);
82537
+ const apiToken = parameters53.apiToken.getValue(connection2);
82812
82538
  const authToken = Buffer.from(`${email}/token:${apiToken}`).toString(
82813
82539
  "base64"
82814
82540
  );
@@ -82842,14 +82568,14 @@ Zendesk uses cursor-based pagination with page[size] and page[after] parameters.
82842
82568
  });
82843
82569
 
82844
82570
  // ../connectors/src/connectors/zendesk/index.ts
82845
- var tools54 = { request: requestTool36 };
82571
+ var tools53 = { request: requestTool36 };
82846
82572
  var zendeskConnector = new ConnectorPlugin({
82847
82573
  slug: "zendesk",
82848
82574
  authType: null,
82849
82575
  name: "Zendesk",
82850
82576
  description: "Connect to Zendesk Support for tickets, users, organizations, and customer service data using an API token.",
82851
82577
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/7e9Q7PwV6MJRJMj543m2gl/55385fae903ccfa1599e35be9d3516aa/zendesk-icon.svg",
82852
- parameters: parameters54,
82578
+ parameters: parameters53,
82853
82579
  releaseFlag: { dev1: true, dev2: false, prod: false },
82854
82580
  onboarding: zendeskOnboarding,
82855
82581
  systemPrompt: {
@@ -83026,11 +82752,11 @@ export default async function handler(c: Context) {
83026
82752
  - \`type:user role:agent\` \u2014 \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u30E6\u30FC\u30B6\u30FC
83027
82753
  - \`type:organization {name}\` \u2014 \u540D\u524D\u304C\u4E00\u81F4\u3059\u308B\u7D44\u7E54`
83028
82754
  },
83029
- tools: tools54
82755
+ tools: tools53
83030
82756
  });
83031
82757
 
83032
82758
  // ../connectors/src/connectors/zendesk-oauth/tools/request.ts
83033
- import { z as z67 } from "zod";
82759
+ import { z as z66 } from "zod";
83034
82760
  var REQUEST_TIMEOUT_MS49 = 6e4;
83035
82761
  var cachedToken24 = null;
83036
82762
  async function getProxyToken24(config) {
@@ -83063,27 +82789,27 @@ async function getProxyToken24(config) {
83063
82789
  };
83064
82790
  return data.token;
83065
82791
  }
83066
- var inputSchema65 = z67.object({
83067
- toolUseIntent: z67.string().optional().describe(
82792
+ var inputSchema64 = z66.object({
82793
+ toolUseIntent: z66.string().optional().describe(
83068
82794
  "Brief description of what you intend to accomplish with this tool call"
83069
82795
  ),
83070
- connectionId: z67.string().describe("ID of the Zendesk OAuth connection to use"),
83071
- method: z67.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
83072
- path: z67.string().describe(
82796
+ connectionId: z66.string().describe("ID of the Zendesk OAuth connection to use"),
82797
+ method: z66.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
82798
+ path: z66.string().describe(
83073
82799
  "API path appended to the Zendesk base URL (e.g., '/api/v2/tickets.json', '/api/v2/search.json?query=status:open')"
83074
82800
  ),
83075
- queryParams: z67.record(z67.string(), z67.string()).optional().describe("Query parameters to append to the URL"),
83076
- body: z67.record(z67.string(), z67.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
82801
+ queryParams: z66.record(z66.string(), z66.string()).optional().describe("Query parameters to append to the URL"),
82802
+ body: z66.record(z66.string(), z66.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
83077
82803
  });
83078
- var outputSchema65 = z67.discriminatedUnion("success", [
83079
- z67.object({
83080
- success: z67.literal(true),
83081
- status: z67.number(),
83082
- data: z67.record(z67.string(), z67.unknown())
82804
+ var outputSchema64 = z66.discriminatedUnion("success", [
82805
+ z66.object({
82806
+ success: z66.literal(true),
82807
+ status: z66.number(),
82808
+ data: z66.record(z66.string(), z66.unknown())
83083
82809
  }),
83084
- z67.object({
83085
- success: z67.literal(false),
83086
- error: z67.string()
82810
+ z66.object({
82811
+ success: z66.literal(false),
82812
+ error: z66.string()
83087
82813
  })
83088
82814
  ]);
83089
82815
  var requestTool37 = new ConnectorTool({
@@ -83092,8 +82818,8 @@ var requestTool37 = new ConnectorTool({
83092
82818
  Authentication is handled automatically via OAuth proxy.
83093
82819
  Use this tool for all Zendesk API interactions: querying tickets, users, organizations, groups, and searching.
83094
82820
  Zendesk uses cursor-based pagination with page[size] and page[after] parameters. All endpoint paths end with .json.`,
83095
- inputSchema: inputSchema65,
83096
- outputSchema: outputSchema65,
82821
+ inputSchema: inputSchema64,
82822
+ outputSchema: outputSchema64,
83097
82823
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
83098
82824
  const connection2 = connections.find((c6) => c6.id === connectionId);
83099
82825
  if (!connection2) {
@@ -83190,17 +82916,17 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
83190
82916
  });
83191
82917
 
83192
82918
  // ../connectors/src/connectors/zendesk-oauth/parameters.ts
83193
- var parameters55 = {};
82919
+ var parameters54 = {};
83194
82920
 
83195
82921
  // ../connectors/src/connectors/zendesk-oauth/index.ts
83196
- var tools55 = { request: requestTool37 };
82922
+ var tools54 = { request: requestTool37 };
83197
82923
  var zendeskOauthConnector = new ConnectorPlugin({
83198
82924
  slug: "zendesk",
83199
82925
  authType: AUTH_TYPES.OAUTH,
83200
82926
  name: "Zendesk (OAuth)",
83201
82927
  description: "Connect to Zendesk Support for tickets, users, organizations, and customer service data using OAuth.",
83202
82928
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/7e9Q7PwV6MJRJMj543m2gl/55385fae903ccfa1599e35be9d3516aa/zendesk-icon.svg",
83203
- parameters: parameters55,
82929
+ parameters: parameters54,
83204
82930
  releaseFlag: { dev1: true, dev2: false, prod: false },
83205
82931
  onboarding: zendeskOauthOnboarding,
83206
82932
  proxyPolicy: {
@@ -83329,7 +83055,7 @@ const res = await zendesk.request("/api/v2/tickets.json?page[size]=10");
83329
83055
  const data = await res.json();
83330
83056
  \`\`\``
83331
83057
  },
83332
- tools: tools55,
83058
+ tools: tools54,
83333
83059
  async checkConnection(_params, config) {
83334
83060
  const { proxyFetch } = config;
83335
83061
  try {
@@ -83368,7 +83094,7 @@ var intercomOnboarding = new ConnectorOnboarding({
83368
83094
  });
83369
83095
 
83370
83096
  // ../connectors/src/connectors/intercom/parameters.ts
83371
- var parameters56 = {
83097
+ var parameters55 = {
83372
83098
  accessToken: new ParameterDefinition({
83373
83099
  slug: "access-token",
83374
83100
  name: "Access Token",
@@ -83381,32 +83107,32 @@ var parameters56 = {
83381
83107
  };
83382
83108
 
83383
83109
  // ../connectors/src/connectors/intercom/tools/request.ts
83384
- import { z as z68 } from "zod";
83110
+ import { z as z67 } from "zod";
83385
83111
  var BASE_URL33 = "https://api.intercom.io";
83386
83112
  var API_VERSION = "2.11";
83387
83113
  var REQUEST_TIMEOUT_MS50 = 6e4;
83388
- var inputSchema66 = z68.object({
83389
- toolUseIntent: z68.string().optional().describe(
83114
+ var inputSchema65 = z67.object({
83115
+ toolUseIntent: z67.string().optional().describe(
83390
83116
  "Brief description of what you intend to accomplish with this tool call"
83391
83117
  ),
83392
- connectionId: z68.string().describe("ID of the Intercom connection to use"),
83393
- method: z68.enum(["GET", "POST", "PUT", "DELETE"]).describe(
83118
+ connectionId: z67.string().describe("ID of the Intercom connection to use"),
83119
+ method: z67.enum(["GET", "POST", "PUT", "DELETE"]).describe(
83394
83120
  "HTTP method. GET for reading, POST for creating/searching, PUT for updating, DELETE for removing."
83395
83121
  ),
83396
- path: z68.string().describe(
83122
+ path: z67.string().describe(
83397
83123
  "API path appended to https://api.intercom.io (e.g., '/contacts', '/conversations', '/contacts/search')"
83398
83124
  ),
83399
- body: z68.record(z68.string(), z68.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
83125
+ body: z67.record(z67.string(), z67.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
83400
83126
  });
83401
- var outputSchema66 = z68.discriminatedUnion("success", [
83402
- z68.object({
83403
- success: z68.literal(true),
83404
- status: z68.number(),
83405
- data: z68.record(z68.string(), z68.unknown())
83127
+ var outputSchema65 = z67.discriminatedUnion("success", [
83128
+ z67.object({
83129
+ success: z67.literal(true),
83130
+ status: z67.number(),
83131
+ data: z67.record(z67.string(), z67.unknown())
83406
83132
  }),
83407
- z68.object({
83408
- success: z68.literal(false),
83409
- error: z68.string()
83133
+ z67.object({
83134
+ success: z67.literal(false),
83135
+ error: z67.string()
83410
83136
  })
83411
83137
  ]);
83412
83138
  var requestTool38 = new ConnectorTool({
@@ -83417,8 +83143,8 @@ Use this tool for all Intercom API interactions: querying contacts, conversation
83417
83143
  Intercom uses cursor-based pagination with the starting_after parameter from pages.next.starting_after in the response.
83418
83144
  Search endpoints (contacts/search, conversations/search) use POST with a query object in the body.
83419
83145
  The Intercom-Version header is set to 2.11 automatically.`,
83420
- inputSchema: inputSchema66,
83421
- outputSchema: outputSchema66,
83146
+ inputSchema: inputSchema65,
83147
+ outputSchema: outputSchema65,
83422
83148
  async execute({ connectionId, method, path: path5, body }, connections) {
83423
83149
  const connection2 = connections.find((c6) => c6.id === connectionId);
83424
83150
  if (!connection2) {
@@ -83431,7 +83157,7 @@ The Intercom-Version header is set to 2.11 automatically.`,
83431
83157
  `[connector-request] intercom/${connection2.name}: ${method} ${path5}`
83432
83158
  );
83433
83159
  try {
83434
- const accessToken = parameters56.accessToken.getValue(connection2);
83160
+ const accessToken = parameters55.accessToken.getValue(connection2);
83435
83161
  const url = `${BASE_URL33}${path5.startsWith("/") ? "" : "/"}${path5}`;
83436
83162
  const controller = new AbortController();
83437
83163
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS50);
@@ -83465,14 +83191,14 @@ The Intercom-Version header is set to 2.11 automatically.`,
83465
83191
  });
83466
83192
 
83467
83193
  // ../connectors/src/connectors/intercom/index.ts
83468
- var tools56 = { request: requestTool38 };
83194
+ var tools55 = { request: requestTool38 };
83469
83195
  var intercomConnector = new ConnectorPlugin({
83470
83196
  slug: "intercom",
83471
83197
  authType: null,
83472
83198
  name: "Intercom",
83473
83199
  description: "Connect to Intercom for contacts, conversations, companies, and customer engagement data using an Access Token.",
83474
83200
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/sb2cRMGClpId0LKiSqsok/ae90a0849f21ffe3faf73e04a5676b45/intercom.svg",
83475
- parameters: parameters56,
83201
+ parameters: parameters55,
83476
83202
  releaseFlag: { dev1: true, dev2: false, prod: false },
83477
83203
  onboarding: intercomOnboarding,
83478
83204
  systemPrompt: {
@@ -83669,11 +83395,11 @@ export default async function handler(c: Context) {
83669
83395
  - \u8AD6\u7406\u6F14\u7B97\u5B50: \`AND\`, \`OR\`\uFF08\u8907\u6570\u30D5\u30A3\u30EB\u30BF\u306E\u7D50\u5408\uFF09
83670
83396
  - \u65E5\u4ED8\u30D5\u30A3\u30FC\u30EB\u30C9\u306FUnix\u30BF\u30A4\u30E0\u30B9\u30BF\u30F3\u30D7\u3092\u4F7F\u7528`
83671
83397
  },
83672
- tools: tools56
83398
+ tools: tools55
83673
83399
  });
83674
83400
 
83675
83401
  // ../connectors/src/connectors/intercom-oauth/tools/request.ts
83676
- import { z as z69 } from "zod";
83402
+ import { z as z68 } from "zod";
83677
83403
  var BASE_URL34 = "https://api.intercom.io";
83678
83404
  var REQUEST_TIMEOUT_MS51 = 6e4;
83679
83405
  var cachedToken25 = null;
@@ -83707,27 +83433,27 @@ async function getProxyToken25(config) {
83707
83433
  };
83708
83434
  return data.token;
83709
83435
  }
83710
- var inputSchema67 = z69.object({
83711
- toolUseIntent: z69.string().optional().describe(
83436
+ var inputSchema66 = z68.object({
83437
+ toolUseIntent: z68.string().optional().describe(
83712
83438
  "Brief description of what you intend to accomplish with this tool call"
83713
83439
  ),
83714
- connectionId: z69.string().describe("ID of the Intercom OAuth connection to use"),
83715
- method: z69.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
83716
- path: z69.string().describe(
83440
+ connectionId: z68.string().describe("ID of the Intercom OAuth connection to use"),
83441
+ method: z68.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
83442
+ path: z68.string().describe(
83717
83443
  "API path appended to https://api.intercom.io (e.g., '/contacts', '/conversations', '/contacts/search')"
83718
83444
  ),
83719
- queryParams: z69.record(z69.string(), z69.string()).optional().describe("Query parameters to append to the URL"),
83720
- body: z69.record(z69.string(), z69.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
83445
+ queryParams: z68.record(z68.string(), z68.string()).optional().describe("Query parameters to append to the URL"),
83446
+ body: z68.record(z68.string(), z68.unknown()).optional().describe("Request body (JSON) for POST/PUT requests")
83721
83447
  });
83722
- var outputSchema67 = z69.discriminatedUnion("success", [
83723
- z69.object({
83724
- success: z69.literal(true),
83725
- status: z69.number(),
83726
- data: z69.record(z69.string(), z69.unknown())
83448
+ var outputSchema66 = z68.discriminatedUnion("success", [
83449
+ z68.object({
83450
+ success: z68.literal(true),
83451
+ status: z68.number(),
83452
+ data: z68.record(z68.string(), z68.unknown())
83727
83453
  }),
83728
- z69.object({
83729
- success: z69.literal(false),
83730
- error: z69.string()
83454
+ z68.object({
83455
+ success: z68.literal(false),
83456
+ error: z68.string()
83731
83457
  })
83732
83458
  ]);
83733
83459
  var requestTool39 = new ConnectorTool({
@@ -83737,8 +83463,8 @@ Authentication is handled automatically via OAuth proxy.
83737
83463
  The Intercom-Version header (2.11) is set automatically.
83738
83464
  Use this tool for all Intercom API interactions: querying contacts, conversations, companies, articles, tags, and segments.
83739
83465
  Search endpoints (contacts/search, conversations/search) use POST with a query object in the body.`,
83740
- inputSchema: inputSchema67,
83741
- outputSchema: outputSchema67,
83466
+ inputSchema: inputSchema66,
83467
+ outputSchema: outputSchema66,
83742
83468
  async execute({ connectionId, method, path: path5, queryParams, body }, connections, config) {
83743
83469
  const connection2 = connections.find((c6) => c6.id === connectionId);
83744
83470
  if (!connection2) {
@@ -83836,17 +83562,17 @@ var intercomOauthOnboarding = new ConnectorOnboarding({
83836
83562
  });
83837
83563
 
83838
83564
  // ../connectors/src/connectors/intercom-oauth/parameters.ts
83839
- var parameters57 = {};
83565
+ var parameters56 = {};
83840
83566
 
83841
83567
  // ../connectors/src/connectors/intercom-oauth/index.ts
83842
- var tools57 = { request: requestTool39 };
83568
+ var tools56 = { request: requestTool39 };
83843
83569
  var intercomOauthConnector = new ConnectorPlugin({
83844
83570
  slug: "intercom",
83845
83571
  authType: AUTH_TYPES.OAUTH,
83846
83572
  name: "Intercom (OAuth)",
83847
83573
  description: "Connect to Intercom for contacts, conversations, companies, and customer engagement data using OAuth.",
83848
83574
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/sb2cRMGClpId0LKiSqsok/ae90a0849f21ffe3faf73e04a5676b45/intercom.svg",
83849
- parameters: parameters57,
83575
+ parameters: parameters56,
83850
83576
  releaseFlag: { dev1: true, dev2: false, prod: false },
83851
83577
  onboarding: intercomOauthOnboarding,
83852
83578
  proxyPolicy: {
@@ -83975,7 +83701,7 @@ const res = await intercom.request("/contacts?per_page=10");
83975
83701
  const data = await res.json();
83976
83702
  \`\`\``
83977
83703
  },
83978
- tools: tools57,
83704
+ tools: tools56,
83979
83705
  async checkConnection(_params, config) {
83980
83706
  const { proxyFetch } = config;
83981
83707
  try {
@@ -84020,7 +83746,7 @@ NOTE: The Query API endpoints (insights, funnels, retention) require a bookmark_
84020
83746
  });
84021
83747
 
84022
83748
  // ../connectors/src/connectors/mixpanel/parameters.ts
84023
- var parameters58 = {
83749
+ var parameters57 = {
84024
83750
  serviceAccountUsername: new ParameterDefinition({
84025
83751
  slug: "service-account-username",
84026
83752
  name: "Service Account Username",
@@ -84060,35 +83786,35 @@ var parameters58 = {
84060
83786
  };
84061
83787
 
84062
83788
  // ../connectors/src/connectors/mixpanel/tools/request.ts
84063
- import { z as z70 } from "zod";
83789
+ import { z as z69 } from "zod";
84064
83790
  var REQUEST_TIMEOUT_MS52 = 6e4;
84065
- var inputSchema68 = z70.object({
84066
- toolUseIntent: z70.string().optional().describe(
83791
+ var inputSchema67 = z69.object({
83792
+ toolUseIntent: z69.string().optional().describe(
84067
83793
  "Brief description of what you intend to accomplish with this tool call"
84068
83794
  ),
84069
- connectionId: z70.string().describe("ID of the Mixpanel connection to use"),
84070
- method: z70.enum(["GET", "POST"]).describe(
83795
+ connectionId: z69.string().describe("ID of the Mixpanel connection to use"),
83796
+ method: z69.enum(["GET", "POST"]).describe(
84071
83797
  "HTTP method. GET for most Query API and Export endpoints. POST for Engage (profile query) endpoint."
84072
83798
  ),
84073
- url: z70.string().describe(
83799
+ url: z69.string().describe(
84074
83800
  "Full URL including query parameters (e.g., 'https://mixpanel.com/api/query/insights?project_id=12345&bookmark_id=67890'). The project_id query parameter is added automatically if not present."
84075
83801
  ),
84076
- body: z70.string().optional().describe(
83802
+ body: z69.string().optional().describe(
84077
83803
  "Request body for POST requests. Use application/x-www-form-urlencoded format for the Engage endpoint, or JSON string for other POST endpoints."
84078
83804
  ),
84079
- contentType: z70.enum(["application/json", "application/x-www-form-urlencoded"]).optional().describe(
83805
+ contentType: z69.enum(["application/json", "application/x-www-form-urlencoded"]).optional().describe(
84080
83806
  "Content-Type header. Defaults to application/json. Use application/x-www-form-urlencoded for the Engage endpoint."
84081
83807
  )
84082
83808
  });
84083
- var outputSchema68 = z70.discriminatedUnion("success", [
84084
- z70.object({
84085
- success: z70.literal(true),
84086
- status: z70.number(),
84087
- data: z70.unknown()
83809
+ var outputSchema67 = z69.discriminatedUnion("success", [
83810
+ z69.object({
83811
+ success: z69.literal(true),
83812
+ status: z69.number(),
83813
+ data: z69.unknown()
84088
83814
  }),
84089
- z70.object({
84090
- success: z70.literal(false),
84091
- error: z70.string()
83815
+ z69.object({
83816
+ success: z69.literal(false),
83817
+ error: z69.string()
84092
83818
  })
84093
83819
  ]);
84094
83820
  var requestTool40 = new ConnectorTool({
@@ -84109,8 +83835,8 @@ Key endpoints:
84109
83835
  - GET {exportBase}?from_date=YYYY-MM-DD&to_date=YYYY-MM-DD \u2014 Export raw events (JSONL)
84110
83836
 
84111
83837
  Rate limit: 60 queries/hour, 5 concurrent queries for Query API.`,
84112
- inputSchema: inputSchema68,
84113
- outputSchema: outputSchema68,
83838
+ inputSchema: inputSchema67,
83839
+ outputSchema: outputSchema67,
84114
83840
  async execute({ connectionId, method, url, body, contentType }, connections) {
84115
83841
  const connection2 = connections.find((c6) => c6.id === connectionId);
84116
83842
  if (!connection2) {
@@ -84123,9 +83849,9 @@ Rate limit: 60 queries/hour, 5 concurrent queries for Query API.`,
84123
83849
  `[connector-request] mixpanel/${connection2.name}: ${method} ${url}`
84124
83850
  );
84125
83851
  try {
84126
- const username = parameters58.serviceAccountUsername.getValue(connection2);
84127
- const secret = parameters58.serviceAccountSecret.getValue(connection2);
84128
- const projectId = parameters58.projectId.getValue(connection2);
83852
+ const username = parameters57.serviceAccountUsername.getValue(connection2);
83853
+ const secret = parameters57.serviceAccountSecret.getValue(connection2);
83854
+ const projectId = parameters57.projectId.getValue(connection2);
84129
83855
  const authToken = btoa(`${username}:${secret}`);
84130
83856
  let finalUrl = url;
84131
83857
  const urlObj = new URL(url);
@@ -84185,14 +83911,14 @@ Rate limit: 60 queries/hour, 5 concurrent queries for Query API.`,
84185
83911
  });
84186
83912
 
84187
83913
  // ../connectors/src/connectors/mixpanel/index.ts
84188
- var tools58 = { request: requestTool40 };
83914
+ var tools57 = { request: requestTool40 };
84189
83915
  var mixpanelConnector = new ConnectorPlugin({
84190
83916
  slug: "mixpanel",
84191
83917
  authType: null,
84192
83918
  name: "Mixpanel",
84193
83919
  description: "Connect to Mixpanel for product analytics, event tracking, and user behavior analysis.",
84194
83920
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/7ykz0vNRjMqvTVrxS8wsj1/b2cd795be5b373877dee77cc6147c758/images__3_.png",
84195
- parameters: parameters58,
83921
+ parameters: parameters57,
84196
83922
  releaseFlag: { dev1: true, dev2: false, prod: false },
84197
83923
  onboarding: mixpanelOnboarding,
84198
83924
  systemPrompt: {
@@ -84315,7 +84041,7 @@ export default async function handler(c: Context) {
84315
84041
 
84316
84042
  \u91CD\u8981: Insights\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u306F\u3001Mixpanel UI\u306E\u65E2\u5B58\u30EC\u30DD\u30FC\u30C8\u306Ebookmark_id\u304C\u5FC5\u8981\u3067\u3059\u3002\u30A2\u30C9\u30DB\u30C3\u30AF\u306A\u30A4\u30D9\u30F3\u30C8\u5206\u6790\u306B\u306F\u3001Export API\u3067\u751F\u30A4\u30D9\u30F3\u30C8\u3092\u53D6\u5F97\u3057\u3001\u30B3\u30FC\u30C9\u4E0A\u3067\u96C6\u8A08\u3057\u3066\u304F\u3060\u3055\u3044\u3002Export API\u304C\u6700\u3082\u67D4\u8EDF\u3067\u5E83\u304F\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306A\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3067\u3059\u3002`
84317
84043
  },
84318
- tools: tools58
84044
+ tools: tools57
84319
84045
  });
84320
84046
 
84321
84047
  // ../connectors/src/connectors/posthog/setup.ts
@@ -84337,7 +84063,7 @@ var posthogOnboarding = new ConnectorOnboarding({
84337
84063
  });
84338
84064
 
84339
84065
  // ../connectors/src/connectors/posthog/parameters.ts
84340
- var parameters59 = {
84066
+ var parameters58 = {
84341
84067
  personalApiKey: new ParameterDefinition({
84342
84068
  slug: "personal-api-key",
84343
84069
  name: "Personal API Key",
@@ -84368,30 +84094,30 @@ var parameters59 = {
84368
84094
  };
84369
84095
 
84370
84096
  // ../connectors/src/connectors/posthog/tools/request.ts
84371
- import { z as z71 } from "zod";
84097
+ import { z as z70 } from "zod";
84372
84098
  var REQUEST_TIMEOUT_MS53 = 6e4;
84373
- var inputSchema69 = z71.object({
84374
- toolUseIntent: z71.string().optional().describe(
84099
+ var inputSchema68 = z70.object({
84100
+ toolUseIntent: z70.string().optional().describe(
84375
84101
  "Brief description of what you intend to accomplish with this tool call"
84376
84102
  ),
84377
- connectionId: z71.string().describe("ID of the PostHog connection to use"),
84378
- method: z71.enum(["GET", "POST", "PATCH", "DELETE"]).describe(
84103
+ connectionId: z70.string().describe("ID of the PostHog connection to use"),
84104
+ method: z70.enum(["GET", "POST", "PATCH", "DELETE"]).describe(
84379
84105
  "HTTP method. GET for listing/retrieving resources. POST for creating resources or running queries. PATCH for updating. DELETE for removing."
84380
84106
  ),
84381
- path: z71.string().describe(
84107
+ path: z70.string().describe(
84382
84108
  "API path relative to the host (e.g., '/api/projects/12345/query/' or '/api/projects/12345/insights/'). The project ID segment must be included in the path."
84383
84109
  ),
84384
- body: z71.record(z71.string(), z71.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
84110
+ body: z70.record(z70.string(), z70.unknown()).optional().describe("Request body (JSON) for POST/PATCH requests")
84385
84111
  });
84386
- var outputSchema69 = z71.discriminatedUnion("success", [
84387
- z71.object({
84388
- success: z71.literal(true),
84389
- status: z71.number(),
84390
- data: z71.unknown()
84112
+ var outputSchema68 = z70.discriminatedUnion("success", [
84113
+ z70.object({
84114
+ success: z70.literal(true),
84115
+ status: z70.number(),
84116
+ data: z70.unknown()
84391
84117
  }),
84392
- z71.object({
84393
- success: z71.literal(false),
84394
- error: z71.string()
84118
+ z70.object({
84119
+ success: z70.literal(false),
84120
+ error: z70.string()
84395
84121
  })
84396
84122
  ]);
84397
84123
  var requestTool41 = new ConnectorTool({
@@ -84412,8 +84138,8 @@ Key endpoints (replace {projectId} with the actual project ID from connection pa
84412
84138
 
84413
84139
  The Query API supports multiple query kinds: HogQLQuery, EventsQuery, TrendsQuery, FunnelsQuery, RetentionQuery, PathsQuery, LifecycleQuery.
84414
84140
  Rate limit: 240/minute, 1200/hour for analytics endpoints.`,
84415
- inputSchema: inputSchema69,
84416
- outputSchema: outputSchema69,
84141
+ inputSchema: inputSchema68,
84142
+ outputSchema: outputSchema68,
84417
84143
  async execute({ connectionId, method, path: path5, body }, connections) {
84418
84144
  const connection2 = connections.find((c6) => c6.id === connectionId);
84419
84145
  if (!connection2) {
@@ -84426,8 +84152,8 @@ Rate limit: 240/minute, 1200/hour for analytics endpoints.`,
84426
84152
  `[connector-request] posthog/${connection2.name}: ${method} ${path5}`
84427
84153
  );
84428
84154
  try {
84429
- const apiKey = parameters59.personalApiKey.getValue(connection2);
84430
- const host = parameters59.host.tryGetValue(connection2) ?? "https://us.posthog.com";
84155
+ const apiKey = parameters58.personalApiKey.getValue(connection2);
84156
+ const host = parameters58.host.tryGetValue(connection2) ?? "https://us.posthog.com";
84431
84157
  const url = `${host.replace(/\/$/, "")}${path5}`;
84432
84158
  const controller = new AbortController();
84433
84159
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS53);
@@ -84460,14 +84186,14 @@ Rate limit: 240/minute, 1200/hour for analytics endpoints.`,
84460
84186
  });
84461
84187
 
84462
84188
  // ../connectors/src/connectors/posthog/index.ts
84463
- var tools59 = { request: requestTool41 };
84189
+ var tools58 = { request: requestTool41 };
84464
84190
  var posthogConnector = new ConnectorPlugin({
84465
84191
  slug: "posthog",
84466
84192
  authType: null,
84467
84193
  name: "PostHog",
84468
84194
  description: "Connect to PostHog for product analytics, event tracking, and user behavior analysis.",
84469
84195
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/5GbGr8d2ncF746qlkN0Zpr/9bd6635dec75ba738f4afa61cb8dd4f1/posthog.png",
84470
- parameters: parameters59,
84196
+ parameters: parameters58,
84471
84197
  releaseFlag: { dev1: true, dev2: false, prod: false },
84472
84198
  onboarding: posthogOnboarding,
84473
84199
  systemPrompt: {
@@ -84616,7 +84342,7 @@ HogQL\u306FClickHouse SQL\u30D9\u30FC\u30B9\u306ESQL\u30E9\u30A4\u30AF\u306A\u30
84616
84342
 
84617
84343
  \u91CD\u8981: \u30A2\u30C9\u30DB\u30C3\u30AF\u5206\u6790\u306B\u306FHogQL\u3092\u4F7F\u7528\u3059\u308BQuery API\u3092\u63A8\u5968\u3057\u307E\u3059\u3002\u6700\u3082\u67D4\u8EDF\u3067\u3001\u3059\u3079\u3066\u306EPostHog\u30C7\u30FC\u30BF\u306B\u5BFE\u3057\u3066SQL\u30E9\u30A4\u30AF\u306A\u30AF\u30A8\u30EA\u304C\u53EF\u80FD\u3067\u3059\u3002\u30AF\u30A8\u30EA\u306B\u306F\u5FC5\u305ALIMIT\u3092\u542B\u3081\u3001\u5927\u898F\u6A21\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u3067\u306F\u30BF\u30A4\u30E0\u30B9\u30BF\u30F3\u30D7\u30D9\u30FC\u30B9\u306E\u30DA\u30FC\u30B8\u30CD\u30FC\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002`
84618
84344
  },
84619
- tools: tools59
84345
+ tools: tools58
84620
84346
  });
84621
84347
 
84622
84348
  // ../connectors/src/connectors/registry.ts
@@ -84659,7 +84385,6 @@ var plugins = {
84659
84385
  jira: jiraConnector,
84660
84386
  linear: linearConnector,
84661
84387
  asana: asanaConnector,
84662
- trino: trinoConnector,
84663
84388
  clickhouse: clickhouseConnector,
84664
84389
  mongodb: mongodbConnector,
84665
84390
  notion: notionConnector,
@@ -85142,62 +84867,62 @@ function createDbtClient(entry, slug) {
85142
84867
  var { getQuery, loadConnections, reloadEnvFile, watchConnectionsFile } = createConnectorRegistry();
85143
84868
 
85144
84869
  // src/types/server-logic.ts
85145
- import { z as z72 } from "zod";
85146
- var parameterMetaSchema = z72.object({
85147
- name: z72.string(),
85148
- type: z72.enum(["string", "number", "boolean"]),
85149
- description: z72.string(),
85150
- required: z72.boolean().optional(),
85151
- default: z72.union([z72.string(), z72.number(), z72.boolean()]).optional()
85152
- });
85153
- var serverLogicCacheConfigSchema = z72.object({
85154
- ttl: z72.number(),
85155
- staleWhileRevalidate: z72.boolean().optional()
85156
- });
85157
- var serverLogicSchemaObjectSchema = z72.lazy(
85158
- () => z72.object({
85159
- type: z72.enum(["string", "number", "integer", "boolean", "object", "array", "null"]).optional(),
85160
- format: z72.string().optional(),
85161
- description: z72.string().optional(),
85162
- nullable: z72.boolean().optional(),
85163
- enum: z72.array(z72.union([z72.string(), z72.number(), z72.boolean(), z72.null()])).optional(),
84870
+ import { z as z71 } from "zod";
84871
+ var parameterMetaSchema = z71.object({
84872
+ name: z71.string(),
84873
+ type: z71.enum(["string", "number", "boolean"]),
84874
+ description: z71.string(),
84875
+ required: z71.boolean().optional(),
84876
+ default: z71.union([z71.string(), z71.number(), z71.boolean()]).optional()
84877
+ });
84878
+ var serverLogicCacheConfigSchema = z71.object({
84879
+ ttl: z71.number(),
84880
+ staleWhileRevalidate: z71.boolean().optional()
84881
+ });
84882
+ var serverLogicSchemaObjectSchema = z71.lazy(
84883
+ () => z71.object({
84884
+ type: z71.enum(["string", "number", "integer", "boolean", "object", "array", "null"]).optional(),
84885
+ format: z71.string().optional(),
84886
+ description: z71.string().optional(),
84887
+ nullable: z71.boolean().optional(),
84888
+ enum: z71.array(z71.union([z71.string(), z71.number(), z71.boolean(), z71.null()])).optional(),
85164
84889
  items: serverLogicSchemaObjectSchema.optional(),
85165
- properties: z72.record(z72.string(), serverLogicSchemaObjectSchema).optional(),
85166
- required: z72.array(z72.string()).optional(),
85167
- additionalProperties: z72.union([z72.boolean(), serverLogicSchemaObjectSchema]).optional(),
85168
- minimum: z72.number().optional(),
85169
- maximum: z72.number().optional(),
85170
- minLength: z72.number().optional(),
85171
- maxLength: z72.number().optional(),
85172
- pattern: z72.string().optional()
84890
+ properties: z71.record(z71.string(), serverLogicSchemaObjectSchema).optional(),
84891
+ required: z71.array(z71.string()).optional(),
84892
+ additionalProperties: z71.union([z71.boolean(), serverLogicSchemaObjectSchema]).optional(),
84893
+ minimum: z71.number().optional(),
84894
+ maximum: z71.number().optional(),
84895
+ minLength: z71.number().optional(),
84896
+ maxLength: z71.number().optional(),
84897
+ pattern: z71.string().optional()
85173
84898
  })
85174
84899
  );
85175
- var serverLogicMediaTypeSchema = z72.object({
84900
+ var serverLogicMediaTypeSchema = z71.object({
85176
84901
  schema: serverLogicSchemaObjectSchema.optional(),
85177
- example: z72.unknown().optional()
84902
+ example: z71.unknown().optional()
85178
84903
  });
85179
- var serverLogicResponseSchema = z72.object({
85180
- description: z72.string().optional(),
85181
- content: z72.record(z72.string(), serverLogicMediaTypeSchema).optional()
84904
+ var serverLogicResponseSchema = z71.object({
84905
+ description: z71.string().optional(),
84906
+ content: z71.record(z71.string(), serverLogicMediaTypeSchema).optional()
85182
84907
  });
85183
84908
  var jsonBaseFields = {
85184
- description: z72.string(),
85185
- parameters: z72.array(parameterMetaSchema).optional(),
84909
+ description: z71.string(),
84910
+ parameters: z71.array(parameterMetaSchema).optional(),
85186
84911
  response: serverLogicResponseSchema.optional(),
85187
84912
  cache: serverLogicCacheConfigSchema.optional()
85188
84913
  };
85189
- var jsonSqlServerLogicSchema = z72.object({
84914
+ var jsonSqlServerLogicSchema = z71.object({
85190
84915
  ...jsonBaseFields,
85191
- type: z72.literal("sql").optional(),
85192
- query: z72.string(),
85193
- connectionId: z72.string()
84916
+ type: z71.literal("sql").optional(),
84917
+ query: z71.string(),
84918
+ connectionId: z71.string()
85194
84919
  });
85195
- var jsonTypeScriptServerLogicSchema = z72.object({
84920
+ var jsonTypeScriptServerLogicSchema = z71.object({
85196
84921
  ...jsonBaseFields,
85197
- type: z72.literal("typescript"),
85198
- handlerPath: z72.string()
84922
+ type: z71.literal("typescript"),
84923
+ handlerPath: z71.string()
85199
84924
  });
85200
- var anyJsonServerLogicSchema = z72.union([
84925
+ var anyJsonServerLogicSchema = z71.union([
85201
84926
  jsonTypeScriptServerLogicSchema,
85202
84927
  jsonSqlServerLogicSchema
85203
84928
  ]);