@mastra/slack 1.7.3-alpha.0 → 1.8.0-alpha.0

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
@@ -270,6 +270,7 @@ const DEFAULT_BOT_SCOPES = [
270
270
  "users:read",
271
271
  "reactions:write",
272
272
  "files:read",
273
+ "files:write",
273
274
  "assistant:write"
274
275
  ];
275
276
  /**
@@ -292,7 +293,7 @@ function buildManifest(options) {
292
293
  if (slashCommands.length > 0) scopes.push("commands");
293
294
  const MAX_DESC = 139;
294
295
  const rawDescription = description ?? `${name} - Powered by Mastra`;
295
- const shortDescription = rawDescription.length > MAX_DESC ? rawDescription.slice(0, MAX_DESC - 3) + "..." : rawDescription;
296
+ const shortDescription = rawDescription.length > MAX_DESC ? rawDescription.slice(0, 136) + "..." : rawDescription;
296
297
  const manifest = {
297
298
  display_information: {
298
299
  name,
@@ -337,7 +338,7 @@ function buildManifest(options) {
337
338
  return manifest;
338
339
  }
339
340
  //#endregion
340
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/util.js
341
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/util.js
341
342
  function getEnumValues(entries) {
342
343
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
343
344
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -637,6 +638,17 @@ function prefixIssues(path, issues) {
637
638
  function unwrapMessage(message) {
638
639
  return typeof message === "string" ? message : message?.message;
639
640
  }
641
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
642
+ function sizeCaps(defChecks) {
643
+ const caps = [];
644
+ for (const ch of defChecks ?? []) {
645
+ const d = ch._zod.def;
646
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
647
+ const max = d.maximum ?? d.length ?? d.size;
648
+ if (max >= 0) caps.push([max, ch]);
649
+ }
650
+ return caps;
651
+ }
640
652
  function attachSchema(issues, start, inst) {
641
653
  var _a;
642
654
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -644,8 +656,10 @@ function attachSchema(issues, start, inst) {
644
656
  function finalizeIssue(iss, ctx, config) {
645
657
  var _a;
646
658
  const traits = iss.inst?._zod?.traits;
647
- if (traits?.has("$ZodType")) if (traits.has("$ZodCheck")) (_a = iss).schema ?? (_a.schema = iss.inst);
648
- else iss.schema = iss.inst;
659
+ if (traits?.has("$ZodType")) {
660
+ if (traits.has("$ZodCheck")) (_a = iss).schema ?? (_a.schema = iss.inst);
661
+ else iss.schema = iss.inst;
662
+ }
649
663
  const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0;
650
664
  const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
651
665
  const full = {};
@@ -727,6 +741,7 @@ function hide(inst, key, value) {
727
741
  return own(inst, key, value, false);
728
742
  }
729
743
  /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
744
+ /* @__NO_SIDE_EFFECTS__ */
730
745
  function derived(computes, table) {
731
746
  for (const key in computes) {
732
747
  const compute = computes[key];
@@ -851,7 +866,7 @@ function constantCatch(value) {
851
866
  return fn;
852
867
  }
853
868
  //#endregion
854
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/core.js
869
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/core.js
855
870
  var _a$1;
856
871
  const _zodDesc = {
857
872
  value: void 0,
@@ -878,6 +893,7 @@ function newError(Definition) {
878
893
  }
879
894
  return new Definition();
880
895
  }
896
+ /* @__NO_SIDE_EFFECTS__ */
881
897
  function $constructor(name, initializer, proto, params) {
882
898
  const zodProto = {};
883
899
  function Internals(def) {
@@ -957,7 +973,7 @@ function config(newConfig) {
957
973
  return globalConfig;
958
974
  }
959
975
  //#endregion
960
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/errors.js
976
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/errors.js
961
977
  function _getMessage() {
962
978
  const internals = this._zod;
963
979
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -1008,19 +1024,20 @@ const initializer$1 = (inst, def) => {
1008
1024
  });
1009
1025
  }
1010
1026
  };
1011
- const $ZodError = $constructor("$ZodError", initializer$1);
1012
- $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
1027
+ const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
1013
1028
  /** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
1014
1029
  * ("toString", "constructor") would otherwise read through to the prototype, and assigning
1015
1030
  * "__proto__" would hit the setter instead of creating a key. */
1016
1031
  function node(obj, key, make) {
1017
- if (!Object.prototype.hasOwnProperty.call(obj, key)) if (key === "__proto__") Object.defineProperty(obj, key, {
1018
- value: make(),
1019
- writable: true,
1020
- enumerable: true,
1021
- configurable: true
1022
- });
1023
- else obj[key] = make();
1032
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) {
1033
+ if (key === "__proto__") Object.defineProperty(obj, key, {
1034
+ value: make(),
1035
+ writable: true,
1036
+ enumerable: true,
1037
+ configurable: true
1038
+ });
1039
+ else obj[key] = make();
1040
+ }
1024
1041
  return obj[key];
1025
1042
  }
1026
1043
  function flattenError(error, mapper = (issue) => issue.message) {
@@ -1071,7 +1088,7 @@ function formatError(error, mapper = (issue) => issue.message) {
1071
1088
  return fieldErrors;
1072
1089
  }
1073
1090
  //#endregion
1074
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/parse.js
1091
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/parse.js
1075
1092
  function finalizeParams(callee, params) {
1076
1093
  return {
1077
1094
  callee: params?.callee ?? callee,
@@ -1274,7 +1291,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1274
1291
  return _safeParseAsync(_Err)(schema, value, _ctx);
1275
1292
  };
1276
1293
  //#endregion
1277
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/regexes.js
1294
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/regexes.js
1278
1295
  /**
1279
1296
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
1280
1297
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -1343,7 +1360,7 @@ const anyString = /^[\s\S]{0,}$/;
1343
1360
  const lowercase = /^[^A-Z]*$/;
1344
1361
  const uppercase = /^[^a-z]*$/;
1345
1362
  //#endregion
1346
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/checks.js
1363
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/checks.js
1347
1364
  const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
1348
1365
  var _a;
1349
1366
  inst._zod ?? (inst._zod = {});
@@ -1523,7 +1540,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
1523
1540
  };
1524
1541
  });
1525
1542
  //#endregion
1526
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/doc.js
1543
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/doc.js
1527
1544
  var Doc = class {
1528
1545
  constructor(args = [], closed = {}) {
1529
1546
  this.content = [];
@@ -1557,14 +1574,14 @@ var Doc = class {
1557
1574
  }
1558
1575
  };
1559
1576
  //#endregion
1560
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/versions.js
1577
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/versions.js
1561
1578
  const version = {
1562
1579
  major: 4,
1563
1580
  minor: 6,
1564
- patch: 5
1581
+ patch: 7
1565
1582
  };
1566
1583
  //#endregion
1567
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/schemas.js
1584
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/schemas.js
1568
1585
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1569
1586
  var _a;
1570
1587
  inst ?? (inst = {});
@@ -2019,6 +2036,26 @@ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
2019
2036
  return payload;
2020
2037
  };
2021
2038
  });
2039
+ function capSize(inst, size) {
2040
+ const caps = sizeCaps(inst._zod.def.checks);
2041
+ if (!caps.length) return;
2042
+ const cap = Math.min(...caps.map((c) => c[0]));
2043
+ const parse = inst._zod.parse;
2044
+ inst._zod.parse = (payload, ctx) => {
2045
+ const n = size(payload.value);
2046
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
2047
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
2048
+ const start = payload.issues.length;
2049
+ ch._zod.check(payload);
2050
+ payload.issues[start].continue = false;
2051
+ attachSchema(payload.issues, start, inst);
2052
+ return payload;
2053
+ }
2054
+ }
2055
+ return parse(payload, ctx);
2056
+ };
2057
+ }
2058
+ const arraySize = (input) => Array.isArray(input) ? input.length : -1;
2022
2059
  function handleArrayResult(result, final, index) {
2023
2060
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2024
2061
  final.value[index] = result.value;
@@ -2056,6 +2093,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
2056
2093
  if (proms.length) return Promise.all(proms).then(() => payload);
2057
2094
  return payload;
2058
2095
  };
2096
+ capSize(inst, arraySize);
2059
2097
  });
2060
2098
  function handlePropertyResult(result, final, key, input, optin, optout) {
2061
2099
  const isPresent = key in input;
@@ -2740,7 +2778,7 @@ function handleRefineResult(result, payload, input, inst) {
2740
2778
  }
2741
2779
  }
2742
2780
  //#endregion
2743
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/memoizer.js
2781
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/memoizer.js
2744
2782
  var $ZodCyclicError = class extends Error {
2745
2783
  constructor() {
2746
2784
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -2993,7 +3031,7 @@ function isBackEdge(ctx, value) {
2993
3031
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
2994
3032
  }
2995
3033
  //#endregion
2996
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/locales/en.js
3034
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/locales/en.js
2997
3035
  const error = () => {
2998
3036
  const Sizable = {
2999
3037
  string: {
@@ -3101,7 +3139,7 @@ function en_default() {
3101
3139
  return { localeError: error() };
3102
3140
  }
3103
3141
  //#endregion
3104
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/registries.js
3142
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/registries.js
3105
3143
  var _a;
3106
3144
  var $ZodRegistry = class {
3107
3145
  constructor() {
@@ -3148,7 +3186,7 @@ function registry() {
3148
3186
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
3149
3187
  const globalRegistry = globalThis.__zod_globalRegistry;
3150
3188
  //#endregion
3151
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/api.js
3189
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/api.js
3152
3190
  function snapshotChecks(def) {
3153
3191
  if (def.checks) def.checks = [...def.checks];
3154
3192
  return def;
@@ -3588,7 +3626,7 @@ function _check(fn, params) {
3588
3626
  return ch;
3589
3627
  }
3590
3628
  //#endregion
3591
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/to-json-schema.js
3629
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/to-json-schema.js
3592
3630
  function assignProps(target, ...sources) {
3593
3631
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
3594
3632
  return target;
@@ -3953,8 +3991,10 @@ function finalize(ctx, schema) {
3953
3991
  }
3954
3992
  }
3955
3993
  if (ctx.external) ctx.sharedEmitDoneFor = ctx.external;
3956
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
3957
- else result.definitions = defs;
3994
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) {
3995
+ if (ctx.target === "draft-2020-12") result.$defs = defs;
3996
+ else result.definitions = defs;
3997
+ }
3958
3998
  try {
3959
3999
  const finalized = JSON.parse(JSON.stringify(result));
3960
4000
  Object.defineProperty(finalized, "~standard", {
@@ -4030,7 +4070,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
4030
4070
  return finalize(ctx, schema);
4031
4071
  };
4032
4072
  //#endregion
4033
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/json-schema-processors.js
4073
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/json-schema-processors.js
4034
4074
  const narrowMin = (agg, key, value) => {
4035
4075
  if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
4036
4076
  };
@@ -4320,7 +4360,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
4320
4360
  seen.ref = def.innerType;
4321
4361
  };
4322
4362
  //#endregion
4323
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/errors.js
4363
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/errors.js
4324
4364
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
4325
4365
  function _lazyMethod(proto, key, make) {
4326
4366
  Object.defineProperty(proto, key, {
@@ -4370,7 +4410,7 @@ const initializer = (inst, issues) => {
4370
4410
  };
4371
4411
  const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
4372
4412
  //#endregion
4373
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/parse.js
4413
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/parse.js
4374
4414
  const parse = /* @__PURE__ */ _parse(ZodRealError);
4375
4415
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
4376
4416
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -4384,7 +4424,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
4384
4424
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
4385
4425
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
4386
4426
  //#endregion
4387
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/schemas.js
4427
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/schemas.js
4388
4428
  function _ensureDefaultLocale() {
4389
4429
  if (!globalConfig.localeError) config(en_default());
4390
4430
  }
@@ -5195,13 +5235,14 @@ function stripTrailingSlash(url) {
5195
5235
  * fallback or preserved options.
5196
5236
  */
5197
5237
  function resolveSlackAdapterConfig(channelConfig) {
5198
- const { adapterConfig, cors, gateway, formatError, streaming: topLevelStreaming, textFormat, typingStatus, toolDisplay: topLevelToolDisplay } = channelConfig;
5238
+ const { adapterConfig, cors, gateway, formatError, streaming: topLevelStreaming, textFormat, textDisplay, typingStatus, toolDisplay: topLevelToolDisplay } = channelConfig;
5199
5239
  const filteredTopLevel = Object.fromEntries(Object.entries({
5200
5240
  cors,
5201
5241
  gateway,
5202
5242
  formatError,
5203
5243
  streaming: topLevelStreaming,
5204
5244
  textFormat,
5245
+ textDisplay,
5205
5246
  typingStatus,
5206
5247
  toolDisplay: topLevelToolDisplay
5207
5248
  }).filter(([, value]) => value !== void 0));