@trillboards/api-client 3.5.1 → 3.5.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/{chunk-2NBCWBT2.mjs → chunk-UFHZMLIR.mjs} +2 -2
- package/dist/{chunk-2NBCWBT2.mjs.map → chunk-UFHZMLIR.mjs.map} +1 -1
- package/dist/generated.d.mts +2 -0
- package/dist/generated.d.ts +2 -0
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.d.mts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { advertiserBuyingRoutes, advertiserRoutes, __require, dspRoutes } from './chunk-
|
|
2
|
-
export { advertiserRoutes, generatedTypes } from './chunk-
|
|
1
|
+
import { advertiserBuyingRoutes, advertiserRoutes, __require, dspRoutes } from './chunk-UFHZMLIR.mjs';
|
|
2
|
+
export { advertiserRoutes, generatedTypes } from './chunk-UFHZMLIR.mjs';
|
|
3
3
|
import { createParser } from 'eventsource-parser';
|
|
4
4
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
5
5
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -79,7 +79,7 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
// src/version.ts
|
|
82
|
-
var VERSION = "3.5.
|
|
82
|
+
var VERSION = "3.5.3";
|
|
83
83
|
|
|
84
84
|
// src/http.ts
|
|
85
85
|
var PUBLIC_PATHS = ["/v1/errors", "/v1/changelog", "/api/discover", "/v1/health"];
|
|
@@ -1245,7 +1245,8 @@ var DspClient = class {
|
|
|
1245
1245
|
baseUrl: (options.baseUrl ?? "https://api.trillboards.com").replace(/\/+$/, "")
|
|
1246
1246
|
});
|
|
1247
1247
|
}
|
|
1248
|
-
execute(operation,
|
|
1248
|
+
execute(operation, ...args) {
|
|
1249
|
+
const input = args[0] === void 0 ? {} : args[0];
|
|
1249
1250
|
const route = dspRoutes[operation];
|
|
1250
1251
|
const path2 = route.path.replace(/\{([^}]+)\}/g, (_, name) => {
|
|
1251
1252
|
const value = input.params?.[name];
|