syllable-sdk 1.0.48-rc.2 → 1.0.48-rc.4

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/bin/mcp-server.js CHANGED
@@ -53072,20 +53072,103 @@ var init_config = __esm(() => {
53072
53072
  SDK_METADATA = {
53073
53073
  language: "typescript",
53074
53074
  openapiDocVersion: "0.0.3",
53075
- sdkVersion: "1.0.48-rc.2",
53076
- genVersion: "2.900.1",
53077
- userAgent: "speakeasy-sdk/typescript 1.0.48-rc.2 2.900.1 0.0.3 syllable-sdk"
53075
+ sdkVersion: "1.0.48-rc.4",
53076
+ genVersion: "2.904.2",
53077
+ userAgent: "speakeasy-sdk/typescript 1.0.48-rc.4 2.904.2 0.0.3 syllable-sdk"
53078
53078
  };
53079
53079
  });
53080
53080
 
53081
- // src/lib/is-plain-object.ts
53081
+ // src/lib/primitives.ts
53082
+ function remap(inp, mappings) {
53083
+ let out = {};
53084
+ if (!Object.keys(mappings).length) {
53085
+ out = inp;
53086
+ return out;
53087
+ }
53088
+ for (const [k2, v2] of Object.entries(inp)) {
53089
+ const j2 = mappings[k2];
53090
+ if (j2 === null) {
53091
+ continue;
53092
+ }
53093
+ out[j2 ?? k2] = v2;
53094
+ }
53095
+ return out;
53096
+ }
53097
+ function combineSignals(...signals) {
53098
+ const filtered = [];
53099
+ for (const signal of signals) {
53100
+ if (signal) {
53101
+ filtered.push(signal);
53102
+ }
53103
+ }
53104
+ switch (filtered.length) {
53105
+ case 0:
53106
+ case 1:
53107
+ return filtered[0] || null;
53108
+ default:
53109
+ if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
53110
+ return AbortSignal.any(filtered);
53111
+ }
53112
+ return abortSignalAny(filtered);
53113
+ }
53114
+ }
53115
+ function abortSignalAny(signals) {
53116
+ const controller = new AbortController;
53117
+ const result = controller.signal;
53118
+ if (!signals.length) {
53119
+ return controller.signal;
53120
+ }
53121
+ if (signals.length === 1) {
53122
+ return signals[0] || controller.signal;
53123
+ }
53124
+ for (const signal of signals) {
53125
+ if (signal.aborted) {
53126
+ return signal;
53127
+ }
53128
+ }
53129
+ function abort() {
53130
+ controller.abort(this.reason);
53131
+ clean();
53132
+ }
53133
+ const signalRefs = [];
53134
+ function clean() {
53135
+ for (const signalRef of signalRefs) {
53136
+ const signal = signalRef.deref();
53137
+ if (signal) {
53138
+ signal.removeEventListener("abort", abort);
53139
+ }
53140
+ }
53141
+ }
53142
+ for (const signal of signals) {
53143
+ signalRefs.push(new WeakRef(signal));
53144
+ signal.addEventListener("abort", abort);
53145
+ }
53146
+ return result;
53147
+ }
53148
+ function compactMap(values) {
53149
+ const out = {};
53150
+ for (const [k2, v2] of Object.entries(values)) {
53151
+ if (typeof v2 !== "undefined") {
53152
+ out[k2] = v2;
53153
+ }
53154
+ }
53155
+ return out;
53156
+ }
53082
53157
  function isPlainObject3(value) {
53083
- if (typeof value !== "object" || value === null) {
53158
+ if (value === null || typeof value !== "object")
53159
+ return false;
53160
+ if (Object.prototype.toString.call(value) !== "[object Object]")
53161
+ return false;
53162
+ const proto = Object.getPrototypeOf(value);
53163
+ if (proto === null || proto === Object.prototype)
53164
+ return true;
53165
+ try {
53166
+ return Object.getPrototypeOf(proto) === null;
53167
+ } catch {
53084
53168
  return false;
53085
53169
  }
53086
- const prototype = Object.getPrototypeOf(value);
53087
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
53088
53170
  }
53171
+ var init_primitives = () => {};
53089
53172
 
53090
53173
  // src/lib/encodings.ts
53091
53174
  function formEncoder(sep) {
@@ -53344,6 +53427,7 @@ var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encode
53344
53427
  }, encodeJSONQuery, encodeFormQuery, encodeSpaceDelimitedQuery, encodePipeDelimitedQuery, encodeDeepObjectQuery;
53345
53428
  var init_encodings = __esm(() => {
53346
53429
  init_base64();
53430
+ init_primitives();
53347
53431
  EncodingError = class EncodingError extends Error {
53348
53432
  constructor(message) {
53349
53433
  super(message);
@@ -53360,16 +53444,6 @@ var init_encodings = __esm(() => {
53360
53444
  encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
53361
53445
  });
53362
53446
 
53363
- // src/lib/dlv.ts
53364
- function dlv(obj, key, def, p, undef) {
53365
- key = Array.isArray(key) ? key : key.split(".");
53366
- for (p = 0;p < key.length; p++) {
53367
- const k2 = key[p];
53368
- obj = k2 != null && obj ? obj[k2] : undef;
53369
- }
53370
- return obj === undef ? def : obj;
53371
- }
53372
-
53373
53447
  // src/lib/env.ts
53374
53448
  function isDeno() {
53375
53449
  if ("Deno" in globalThis) {
@@ -53381,11 +53455,12 @@ function env() {
53381
53455
  if (envMemo) {
53382
53456
  return envMemo;
53383
53457
  }
53458
+ const globals = globalThis;
53384
53459
  let envObject = {};
53385
53460
  if (isDeno()) {
53386
- envObject = globalThis.Deno?.env?.toObject?.() ?? {};
53461
+ envObject = globals.Deno?.env?.toObject?.() ?? {};
53387
53462
  } else {
53388
- envObject = dlv(globalThis, "process.env") ?? {};
53463
+ envObject = globals.process?.env ?? {};
53389
53464
  }
53390
53465
  envMemo = envSchema.parse(envObject);
53391
53466
  return envMemo;
@@ -53567,84 +53642,6 @@ var init_http = __esm(() => {
53567
53642
  codeRangeRE = new RegExp("^[0-9]xx$", "i");
53568
53643
  });
53569
53644
 
53570
- // src/lib/primitives.ts
53571
- function remap(inp, mappings) {
53572
- let out = {};
53573
- if (!Object.keys(mappings).length) {
53574
- out = inp;
53575
- return out;
53576
- }
53577
- for (const [k2, v2] of Object.entries(inp)) {
53578
- const j2 = mappings[k2];
53579
- if (j2 === null) {
53580
- continue;
53581
- }
53582
- out[j2 ?? k2] = v2;
53583
- }
53584
- return out;
53585
- }
53586
- function combineSignals(...signals) {
53587
- const filtered = [];
53588
- for (const signal of signals) {
53589
- if (signal) {
53590
- filtered.push(signal);
53591
- }
53592
- }
53593
- switch (filtered.length) {
53594
- case 0:
53595
- case 1:
53596
- return filtered[0] || null;
53597
- default:
53598
- if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
53599
- return AbortSignal.any(filtered);
53600
- }
53601
- return abortSignalAny(filtered);
53602
- }
53603
- }
53604
- function abortSignalAny(signals) {
53605
- const controller = new AbortController;
53606
- const result = controller.signal;
53607
- if (!signals.length) {
53608
- return controller.signal;
53609
- }
53610
- if (signals.length === 1) {
53611
- return signals[0] || controller.signal;
53612
- }
53613
- for (const signal of signals) {
53614
- if (signal.aborted) {
53615
- return signal;
53616
- }
53617
- }
53618
- function abort() {
53619
- controller.abort(this.reason);
53620
- clean();
53621
- }
53622
- const signalRefs = [];
53623
- function clean() {
53624
- for (const signalRef of signalRefs) {
53625
- const signal = signalRef.deref();
53626
- if (signal) {
53627
- signal.removeEventListener("abort", abort);
53628
- }
53629
- }
53630
- }
53631
- for (const signal of signals) {
53632
- signalRefs.push(new WeakRef(signal));
53633
- signal.addEventListener("abort", abort);
53634
- }
53635
- return result;
53636
- }
53637
- function compactMap(values) {
53638
- const out = {};
53639
- for (const [k2, v2] of Object.entries(values)) {
53640
- if (typeof v2 !== "undefined") {
53641
- out[k2] = v2;
53642
- }
53643
- }
53644
- return out;
53645
- }
53646
- var init_primitives = () => {};
53647
-
53648
53645
  // src/lib/retries.ts
53649
53646
  async function retry(fetchFn, options) {
53650
53647
  switch (options.config.strategy) {
@@ -54544,6 +54541,7 @@ var init_matchers = __esm(() => {
54544
54541
  init_responsevalidationerror();
54545
54542
  init_sdkerror();
54546
54543
  init_http();
54544
+ init_primitives();
54547
54545
  DEFAULT_CONTENT_TYPES = {
54548
54546
  jsonl: "application/jsonl",
54549
54547
  json: "application/json",
@@ -86962,7 +86960,7 @@ Generate voice sample.`,
86962
86960
  function createMCPServer(deps) {
86963
86961
  const server = new McpServer({
86964
86962
  name: "SyllableSDK",
86965
- version: "1.0.48-rc.2"
86963
+ version: "1.0.48-rc.4"
86966
86964
  });
86967
86965
  const client = new SyllableSDKCore({
86968
86966
  apiKeyHeader: deps.apiKeyHeader,
@@ -88518,7 +88516,7 @@ var routes = ln({
88518
88516
  var app = _e(routes, {
88519
88517
  name: "mcp",
88520
88518
  versionInfo: {
88521
- currentVersion: "1.0.48-rc.2"
88519
+ currentVersion: "1.0.48-rc.4"
88522
88520
  }
88523
88521
  });
88524
88522
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -88526,5 +88524,5 @@ export {
88526
88524
  app
88527
88525
  };
88528
88526
 
88529
- //# debugId=DCFC603332FB3C9A64756E2164756E21
88527
+ //# debugId=7C09CE78B3EBD64364756E2164756E21
88530
88528
  //# sourceMappingURL=mcp-server.js.map