@trillboards/api-client 3.2.45 → 3.3.8
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-VMTPZ35B.mjs → chunk-HJGM5CPD.mjs} +6 -6
- package/dist/chunk-HJGM5CPD.mjs.map +1 -0
- package/dist/generated.d.mts +646 -22
- package/dist/generated.d.ts +646 -22
- package/dist/generated.js +4 -4
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.d.mts +25 -3
- package/dist/index.d.ts +25 -3
- package/dist/index.js +60 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-VMTPZ35B.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __require } from './chunk-
|
|
2
|
-
export { generatedTypes } from './chunk-
|
|
1
|
+
import { __require } from './chunk-HJGM5CPD.mjs';
|
|
2
|
+
export { generatedTypes } from './chunk-HJGM5CPD.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';
|
|
@@ -75,7 +75,7 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/version.ts
|
|
78
|
-
var VERSION = "3.
|
|
78
|
+
var VERSION = "3.3.8";
|
|
79
79
|
|
|
80
80
|
// src/http.ts
|
|
81
81
|
var PUBLIC_PATHS = ["/v1/errors", "/v1/changelog", "/api/discover", "/v1/health"];
|
|
@@ -623,6 +623,59 @@ var CreativeExperimentsClient = class {
|
|
|
623
623
|
return this.http.post(path(id) + "/stop", body);
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
|
+
|
|
627
|
+
// src/resources/reactive.ts
|
|
628
|
+
var root = "/v1/partner";
|
|
629
|
+
var screen = (id) => root + "/screens/" + encodeURIComponent(id) + "/reactive-settings";
|
|
630
|
+
var group = (id) => root + "/screen-groups/" + encodeURIComponent(id);
|
|
631
|
+
var campaign = (id) => root + "/ads/" + encodeURIComponent(id) + "/reactive";
|
|
632
|
+
var ReactiveClient = class {
|
|
633
|
+
constructor(http) {
|
|
634
|
+
this.http = http;
|
|
635
|
+
}
|
|
636
|
+
getBrand(id) {
|
|
637
|
+
return this.http.get(campaign(id) + "/brand");
|
|
638
|
+
}
|
|
639
|
+
updateBrand(id, body) {
|
|
640
|
+
return this.http.put(campaign(id) + "/brand", body);
|
|
641
|
+
}
|
|
642
|
+
importCreative(id, body) {
|
|
643
|
+
return this.http.post(campaign(id) + "/creatives/import", body);
|
|
644
|
+
}
|
|
645
|
+
generateCreative(id, body) {
|
|
646
|
+
return this.http.post(campaign(id) + "/creatives/generate", body);
|
|
647
|
+
}
|
|
648
|
+
reviewCreative(id, body) {
|
|
649
|
+
return this.http.post(campaign(id) + "/creatives/review", body);
|
|
650
|
+
}
|
|
651
|
+
listCreatives(id) {
|
|
652
|
+
return this.http.get(campaign(id) + "/creatives");
|
|
653
|
+
}
|
|
654
|
+
getScreenSettings(id) {
|
|
655
|
+
return this.http.get(screen(id));
|
|
656
|
+
}
|
|
657
|
+
updateScreenSettings(id, body) {
|
|
658
|
+
return this.http.patch(screen(id), body);
|
|
659
|
+
}
|
|
660
|
+
getGroupSettings(id) {
|
|
661
|
+
return this.http.get(group(id) + "/reactive-settings");
|
|
662
|
+
}
|
|
663
|
+
updateGroupSettings(id, body) {
|
|
664
|
+
return this.http.patch(group(id) + "/reactive-settings", body);
|
|
665
|
+
}
|
|
666
|
+
getCampaign(id) {
|
|
667
|
+
return this.http.get(campaign(id));
|
|
668
|
+
}
|
|
669
|
+
updateCampaign(id, body) {
|
|
670
|
+
return this.http.patch(campaign(id), body);
|
|
671
|
+
}
|
|
672
|
+
getGroupSensingConfig(id) {
|
|
673
|
+
return this.http.get(group(id) + "/sensing-config");
|
|
674
|
+
}
|
|
675
|
+
updateGroupSensingConfig(id, body) {
|
|
676
|
+
return this.http.put(group(id) + "/sensing-config", body);
|
|
677
|
+
}
|
|
678
|
+
};
|
|
626
679
|
var McpToolError = class extends Error {
|
|
627
680
|
constructor(tool, result) {
|
|
628
681
|
super("Native MCP tool failed: " + tool);
|
|
@@ -742,6 +795,7 @@ var TrillboardsClient = class {
|
|
|
742
795
|
this.billing = new BillingClient(this._http);
|
|
743
796
|
this.routes = new RoutesClient(this._http);
|
|
744
797
|
this.creativeExperiments = new CreativeExperimentsClient(this._http);
|
|
798
|
+
this.reactive = new ReactiveClient(this._http);
|
|
745
799
|
this.mediaBuys = new MediaBuysClient({ apiKey: options.apiKey, baseUrl, version: options.version });
|
|
746
800
|
}
|
|
747
801
|
};
|
|
@@ -1038,6 +1092,6 @@ var Webhooks = {
|
|
|
1038
1092
|
verifyAdcpWebhook
|
|
1039
1093
|
};
|
|
1040
1094
|
|
|
1041
|
-
export { ADCP_WEBHOOK_SIGNING_TAG, AnalyticsClient, AudienceClient, BillingClient, CreativeExperimentsClient, DataClient, DevicesClient, EarningsClient, ErrorsClient, FleetClient, ImpressionsClient, McpToolError, MediaBuysClient, RoutesClient, ScreensClient, TrillboardsClient, TrillboardsError, VERSION, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, parseSignatureHeader, retryWithBackoff, verifyAdcpWebhook };
|
|
1095
|
+
export { ADCP_WEBHOOK_SIGNING_TAG, AnalyticsClient, AudienceClient, BillingClient, CreativeExperimentsClient, DataClient, DevicesClient, EarningsClient, ErrorsClient, FleetClient, ImpressionsClient, McpToolError, MediaBuysClient, ReactiveClient, RoutesClient, ScreensClient, TrillboardsClient, TrillboardsError, VERSION, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, parseSignatureHeader, retryWithBackoff, verifyAdcpWebhook };
|
|
1042
1096
|
//# sourceMappingURL=index.mjs.map
|
|
1043
1097
|
//# sourceMappingURL=index.mjs.map
|