@trillboards/api-client 3.2.45 → 3.3.9
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/README.md +49 -0
- package/dist/chunk-HYA2ZRAK.mjs +19 -0
- package/dist/chunk-HYA2ZRAK.mjs.map +1 -0
- package/dist/generated.d.mts +5215 -26
- package/dist/generated.d.ts +5215 -26
- package/dist/generated.js +6 -4
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.d.mts +70 -4
- package/dist/index.d.ts +70 -4
- package/dist/index.js +160 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-VMTPZ35B.mjs +0 -18
- package/dist/chunk-VMTPZ35B.mjs.map +0 -1
package/dist/generated.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Screen, PartnerDeviceRegistrationInput, DisplaySettingsResponse, DisplaySettingsInput, Device, PartnerDeviceBatchRegistrationInput, Impression, AnalyticsData, EarningsData, ErrorEntry, Webhook, FleetCommand, AudienceData, dataApiListScreensOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiQueryDslOperation, dataApiStreamOperation, setupBillingOperation, createCreditCheckoutOperation, purchaseCreditsOperation, getBillingUsageSummaryOperation, BillingInfo, CreatePartnerSensingRouteRequest, SensingRoute, UpdatePartnerSensingRouteRequest, createCreativeFeedbackExperimentOperation, configureCreativeFeedbackBrandOperation, importCreativeFeedbackCreativeOperation, getCreativeFeedbackExperimentOperation, registerCreativeFeedbackVariantsOperation, updateCreativeFeedbackPolicyOperation, getCreativeFeedbackRewardsOperation, generateCreativeFeedbackCreativeOperation, reviewCreativeFeedbackCreativeOperation, stopCreativeFeedbackExperimentOperation, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_create_media_buy_Args, Mcp_get_media_buys_Args, Mcp_update_media_buy_Args, Mcp_get_media_buy_delivery_Args, Mcp_sync_creatives_Args, Mcp_discover_inventory_Args, WebhookEvent } from './generated.mjs';
|
|
1
|
+
import { AdvertiserBuyingOperations, DemandBuyer_buyingSearchInventory_Result, DemandBuyer_buyingPreviewPlan_Result, DemandBuyer_buyingSaveCampaign_Result, DemandBuyer_buyingAttachCreative_Result, DemandBuyer_buyingPrepareBooking_Result, DemandBuyer_buyingCreateCheckout_Result, DemandBuyer_buyingGetCampaign_Result, DemandBuyer_buyingGetDelivery_Result, DemandBuyer_buyingRebookCampaign_Result, DemandBuyer_buyingStopCampaign_Result, DemandBuyer_buyingAmendFlight_Result, DemandBuyer_buyingUpdateMetadata_Result, Screen, PartnerDeviceRegistrationInput, DisplaySettingsResponse, DisplaySettingsInput, Device, PartnerDeviceBatchRegistrationInput, Impression, AnalyticsData, EarningsData, ErrorEntry, Webhook, FleetCommand, AudienceData, dataApiListScreensOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiQueryDslOperation, dataApiStreamOperation, setupBillingOperation, createCreditCheckoutOperation, purchaseCreditsOperation, getBillingUsageSummaryOperation, BillingInfo, CreatePartnerSensingRouteRequest, SensingRoute, UpdatePartnerSensingRouteRequest, createCreativeFeedbackExperimentOperation, configureCreativeFeedbackBrandOperation, importCreativeFeedbackCreativeOperation, getCreativeFeedbackExperimentOperation, registerCreativeFeedbackVariantsOperation, updateCreativeFeedbackPolicyOperation, getCreativeFeedbackRewardsOperation, generateCreativeFeedbackCreativeOperation, reviewCreativeFeedbackCreativeOperation, stopCreativeFeedbackExperimentOperation, getOwnedReactiveBrandOperation, setOwnedReactiveBrandOperation, importOwnedReactiveCreativeOperation, generateOwnedReactiveCreativeOperation, reviewOwnedReactiveCreativeOperation, listOwnedReactiveCreativesOperation, getScreenReactiveSettingsOperation, updateScreenReactiveSettingsOperation, getGroupReactiveSettingsOperation, updateGroupReactiveSettingsOperation, getOwnedReactiveCampaignOperation, updateOwnedReactiveCampaignOperation, getScreenGroupSensingConfigOperation, updateScreenGroupSensingConfigOperation, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_create_media_buy_Args, Mcp_get_media_buys_Args, Mcp_update_media_buy_Args, Mcp_get_media_buy_delivery_Args, Mcp_sync_creatives_Args, Mcp_discover_inventory_Args, WebhookEvent } from './generated.mjs';
|
|
2
2
|
export { BleScanResultData, ContentFitSettings, CreativeRewardsReadyEvent, DeviceCapabilityPayload, FeedbackBrand, FeedbackBrandRequest, FeedbackCreateRequest, FeedbackExperiment, FeedbackGenerateRequest, FeedbackGeneratedCreative, FeedbackImportRequest, FeedbackPolicyRequest, FeedbackRegisterVariantsRequest, FeedbackReviewRequest, FeedbackRewardQuery, FeedbackRewardRow, FeedbackRewards, FeedbackStopRequest, GeneratedOperationName, GeneratedSchemaName, HttpProbeResult, MdnsNetworkDevice, PartnerAdDeliveryProfile, PartnerDeviceHeartbeatBody, PartnerHeartbeatMeasurementMetadata, PartnerHeartbeatQueryData, PartnerHeartbeatQueryResponse, PartnerHeartbeatRequest, PartnerHeartbeatResponse, PartnerSafeHeartbeatTelemetry, SsdpDeviceInfo, WifiEnvironmentSnapshot, WifiScanResult, generatedTypes, getDeviceHeartbeatOperation, heartbeatOperation } from './generated.mjs';
|
|
3
3
|
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
|
|
@@ -156,7 +156,8 @@ interface SensingThresholdCrossedEvent {
|
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
158
|
interface HttpClientConfig {
|
|
159
|
-
|
|
159
|
+
/** Partner credential only; dedicated OAuth clients supply their bound Authorization. */
|
|
160
|
+
apiKey?: string;
|
|
160
161
|
baseUrl: string;
|
|
161
162
|
version?: string;
|
|
162
163
|
}
|
|
@@ -229,6 +230,45 @@ declare class HttpClient {
|
|
|
229
230
|
private buildUrl;
|
|
230
231
|
}
|
|
231
232
|
|
|
233
|
+
declare const ADVERTISER_BUYING_RESOURCE: "https://api.trillboards.com/openrtb/v2/buying";
|
|
234
|
+
interface AdvertiserBuyingOptions {
|
|
235
|
+
oauth: {
|
|
236
|
+
accessToken: string;
|
|
237
|
+
resource: typeof ADVERTISER_BUYING_RESOURCE;
|
|
238
|
+
};
|
|
239
|
+
baseUrl?: string;
|
|
240
|
+
version?: string;
|
|
241
|
+
}
|
|
242
|
+
interface BuyerWriteOptions {
|
|
243
|
+
/** Stable caller key for this exact original action, retained on retries. */
|
|
244
|
+
idempotencyKey: string;
|
|
245
|
+
retry?: RetryOptions;
|
|
246
|
+
headers?: Record<string, string>;
|
|
247
|
+
}
|
|
248
|
+
type Operation = keyof AdvertiserBuyingOperations;
|
|
249
|
+
type Input<K extends Operation> = AdvertiserBuyingOperations[K]['request'];
|
|
250
|
+
type Query<K extends Operation> = AdvertiserBuyingOperations[K]['query'];
|
|
251
|
+
/** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
|
|
252
|
+
declare class AdvertiserBuyingClient {
|
|
253
|
+
private readonly http;
|
|
254
|
+
private readonly authorization;
|
|
255
|
+
constructor(options: AdvertiserBuyingOptions);
|
|
256
|
+
private target;
|
|
257
|
+
private call;
|
|
258
|
+
searchInventory(input: Input<'buyingSearchInventory'>): Promise<DemandBuyer_buyingSearchInventory_Result>;
|
|
259
|
+
previewPlan(input: Input<'buyingPreviewPlan'>): Promise<DemandBuyer_buyingPreviewPlan_Result>;
|
|
260
|
+
saveCampaign(input: Input<'buyingSaveCampaign'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingSaveCampaign_Result>;
|
|
261
|
+
attachCreative(id: string, input: Input<'buyingAttachCreative'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingAttachCreative_Result>;
|
|
262
|
+
prepareBooking(id: string, input?: Input<'buyingPrepareBooking'>): Promise<DemandBuyer_buyingPrepareBooking_Result>;
|
|
263
|
+
createCheckout(id: string, input: Input<'buyingCreateCheckout'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingCreateCheckout_Result>;
|
|
264
|
+
getCampaign(id: string): Promise<DemandBuyer_buyingGetCampaign_Result>;
|
|
265
|
+
getDelivery(id: string, query?: Query<'buyingGetDelivery'>): Promise<DemandBuyer_buyingGetDelivery_Result>;
|
|
266
|
+
rebookCampaign(id: string, input: Input<'buyingRebookCampaign'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingRebookCampaign_Result>;
|
|
267
|
+
stopCampaign(id: string, options: BuyerWriteOptions): Promise<DemandBuyer_buyingStopCampaign_Result>;
|
|
268
|
+
amendFlight(id: string, input: Input<'buyingAmendFlight'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingAmendFlight_Result>;
|
|
269
|
+
updateMetadata(id: string, input: Input<'buyingUpdateMetadata'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingUpdateMetadata_Result>;
|
|
270
|
+
}
|
|
271
|
+
|
|
232
272
|
/**
|
|
233
273
|
* ScreensClient — Partner API screen management.
|
|
234
274
|
*
|
|
@@ -666,6 +706,27 @@ declare class CreativeExperimentsClient {
|
|
|
666
706
|
stop(id: string, body: stopCreativeFeedbackExperimentOperation['request']): Promise<stopCreativeFeedbackExperimentOperation['response']>;
|
|
667
707
|
}
|
|
668
708
|
|
|
709
|
+
/** Native reactive serving and fleet capture controls. */
|
|
710
|
+
|
|
711
|
+
declare class ReactiveClient {
|
|
712
|
+
private readonly http;
|
|
713
|
+
constructor(http: HttpClient);
|
|
714
|
+
getBrand(id: string): Promise<getOwnedReactiveBrandOperation['response']>;
|
|
715
|
+
updateBrand(id: string, body: setOwnedReactiveBrandOperation['request']): Promise<setOwnedReactiveBrandOperation['response']>;
|
|
716
|
+
importCreative(id: string, body: importOwnedReactiveCreativeOperation['request']): Promise<importOwnedReactiveCreativeOperation['response']>;
|
|
717
|
+
generateCreative(id: string, body: generateOwnedReactiveCreativeOperation['request']): Promise<generateOwnedReactiveCreativeOperation['response']>;
|
|
718
|
+
reviewCreative(id: string, body: reviewOwnedReactiveCreativeOperation['request']): Promise<reviewOwnedReactiveCreativeOperation['response']>;
|
|
719
|
+
listCreatives(id: string): Promise<listOwnedReactiveCreativesOperation['response']>;
|
|
720
|
+
getScreenSettings(id: string): Promise<getScreenReactiveSettingsOperation['response']>;
|
|
721
|
+
updateScreenSettings(id: string, body: updateScreenReactiveSettingsOperation['request']): Promise<updateScreenReactiveSettingsOperation['response']>;
|
|
722
|
+
getGroupSettings(id: string): Promise<getGroupReactiveSettingsOperation['response']>;
|
|
723
|
+
updateGroupSettings(id: string, body: updateGroupReactiveSettingsOperation['request']): Promise<updateGroupReactiveSettingsOperation['response']>;
|
|
724
|
+
getCampaign(id: string): Promise<getOwnedReactiveCampaignOperation['response']>;
|
|
725
|
+
updateCampaign(id: string, body: updateOwnedReactiveCampaignOperation['request']): Promise<updateOwnedReactiveCampaignOperation['response']>;
|
|
726
|
+
getGroupSensingConfig(id: string): Promise<getScreenGroupSensingConfigOperation['response']>;
|
|
727
|
+
updateGroupSensingConfig(id: string, body: updateScreenGroupSensingConfigOperation['request']): Promise<updateScreenGroupSensingConfigOperation['response']>;
|
|
728
|
+
}
|
|
729
|
+
|
|
669
730
|
/** Native MCP errors retain their complete result, including structured receipts. */
|
|
670
731
|
declare class McpToolError extends Error {
|
|
671
732
|
readonly tool: string;
|
|
@@ -837,6 +898,7 @@ declare class TrillboardsClient {
|
|
|
837
898
|
readonly billing: BillingClient;
|
|
838
899
|
readonly routes: RoutesClient;
|
|
839
900
|
readonly creativeExperiments: CreativeExperimentsClient;
|
|
901
|
+
readonly reactive: ReactiveClient;
|
|
840
902
|
readonly mediaBuys: MediaBuysClient;
|
|
841
903
|
/** The underlying HTTP client (exposed for advanced use cases). */
|
|
842
904
|
readonly _http: HttpClient;
|
|
@@ -862,6 +924,8 @@ interface TrillboardsErrorOptions {
|
|
|
862
924
|
details?: ErrorDetail[];
|
|
863
925
|
help?: Record<string, unknown>;
|
|
864
926
|
retryAfterSeconds?: number | null;
|
|
927
|
+
recovery?: Record<string, unknown> | null;
|
|
928
|
+
wwwAuthenticate?: string | null;
|
|
865
929
|
}
|
|
866
930
|
declare class TrillboardsError extends Error {
|
|
867
931
|
readonly type: ApiErrorType;
|
|
@@ -872,6 +936,8 @@ declare class TrillboardsError extends Error {
|
|
|
872
936
|
readonly statusCode: number;
|
|
873
937
|
readonly details: ErrorDetail[];
|
|
874
938
|
readonly help: Record<string, unknown> | null;
|
|
939
|
+
readonly recovery: Record<string, unknown> | null;
|
|
940
|
+
readonly wwwAuthenticate: string | null;
|
|
875
941
|
private readonly _retryAfterSeconds;
|
|
876
942
|
constructor(opts: TrillboardsErrorOptions);
|
|
877
943
|
/**
|
|
@@ -1092,6 +1158,6 @@ declare const Webhooks: {
|
|
|
1092
1158
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1093
1159
|
* refuse the release.
|
|
1094
1160
|
*/
|
|
1095
|
-
declare const VERSION = "3.
|
|
1161
|
+
declare const VERSION = "3.3.9";
|
|
1096
1162
|
|
|
1097
|
-
export { ADCP_WEBHOOK_SIGNING_TAG, type AdcpJwk, AnalyticsClient, AnalyticsData, type ApiErrorType, AudienceClient, AudienceData, BillingClient, BillingInfo, type BillingOperationOptions, type ClientOptions, type ConstructEventOptions, type ContentFitMode, CreatePartnerSensingRouteRequest, CreativeExperimentsClient, DataClient, type DataStreamEvent, Device, DevicesClient, DisplaySettingsInput, DisplaySettingsResponse, EarningsClient, EarningsData, type ErrorDetail, ErrorEntry, type ErrorResponseBody, ErrorsClient, FleetClient, FleetCommand, Impression, ImpressionsClient, type ListResponse, McpToolError, Mcp_create_media_buy_Args, Mcp_discover_inventory_Args, Mcp_get_media_buy_delivery_Args, Mcp_get_media_buys_Args, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_sync_creatives_Args, Mcp_update_media_buy_Args, type MediaAccountsResponse, type MediaAccountsSyncResponse, type MediaBuy, type MediaBuyUpdateResponse, MediaBuysClient, type MediaBuysResponse, type MediaCreativeSyncResponse, type MediaDeliveryResponse, type MediaFunding, type MediaNativeError, type MediaPackage, type MediaPagination, type MediaProduct, type MediaProductsResponse, type ParsedSignatureHeader, PartnerDeviceBatchRegistrationInput, PartnerDeviceRegistrationInput, type RequestOptions, type RetryOptions, type RouteAction, type RouteChannel, type RouteCondition, type RouteConditionOp, type RouteDigest, type RouteDigestSummary, type RouteWebhookEvent, RoutesClient, Screen, ScreensClient, SensingRoute, type SensingThresholdCrossedEvent, type StreamOptions, TrillboardsClient, TrillboardsError, type TrillboardsErrorOptions, UpdatePartnerSensingRouteRequest, VERSION, type VerifyAdcpWebhookOptions, Webhook, WebhookEvent, type WebhookHeaders, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, createCreditCheckoutOperation, dataApiListScreensOperation, dataApiQueryDslOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiStreamOperation, getBillingUsageSummaryOperation, parseSignatureHeader, purchaseCreditsOperation, retryWithBackoff, setupBillingOperation, verifyAdcpWebhook };
|
|
1163
|
+
export { ADCP_WEBHOOK_SIGNING_TAG, ADVERTISER_BUYING_RESOURCE, type AdcpJwk, AdvertiserBuyingClient, type AdvertiserBuyingOptions, AnalyticsClient, AnalyticsData, type ApiErrorType, AudienceClient, AudienceData, BillingClient, BillingInfo, type BillingOperationOptions, type BuyerWriteOptions, type ClientOptions, type ConstructEventOptions, type ContentFitMode, CreatePartnerSensingRouteRequest, CreativeExperimentsClient, DataClient, type DataStreamEvent, Device, DevicesClient, DisplaySettingsInput, DisplaySettingsResponse, EarningsClient, EarningsData, type ErrorDetail, ErrorEntry, type ErrorResponseBody, ErrorsClient, FleetClient, FleetCommand, Impression, ImpressionsClient, type ListResponse, McpToolError, Mcp_create_media_buy_Args, Mcp_discover_inventory_Args, Mcp_get_media_buy_delivery_Args, Mcp_get_media_buys_Args, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_sync_creatives_Args, Mcp_update_media_buy_Args, type MediaAccountsResponse, type MediaAccountsSyncResponse, type MediaBuy, type MediaBuyUpdateResponse, MediaBuysClient, type MediaBuysResponse, type MediaCreativeSyncResponse, type MediaDeliveryResponse, type MediaFunding, type MediaNativeError, type MediaPackage, type MediaPagination, type MediaProduct, type MediaProductsResponse, type ParsedSignatureHeader, PartnerDeviceBatchRegistrationInput, PartnerDeviceRegistrationInput, ReactiveClient, type RequestOptions, type RetryOptions, type RouteAction, type RouteChannel, type RouteCondition, type RouteConditionOp, type RouteDigest, type RouteDigestSummary, type RouteWebhookEvent, RoutesClient, Screen, ScreensClient, SensingRoute, type SensingThresholdCrossedEvent, type StreamOptions, TrillboardsClient, TrillboardsError, type TrillboardsErrorOptions, UpdatePartnerSensingRouteRequest, VERSION, type VerifyAdcpWebhookOptions, Webhook, WebhookEvent, type WebhookHeaders, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, createCreditCheckoutOperation, dataApiListScreensOperation, dataApiQueryDslOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiStreamOperation, getBillingUsageSummaryOperation, parseSignatureHeader, purchaseCreditsOperation, retryWithBackoff, setupBillingOperation, verifyAdcpWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Screen, PartnerDeviceRegistrationInput, DisplaySettingsResponse, DisplaySettingsInput, Device, PartnerDeviceBatchRegistrationInput, Impression, AnalyticsData, EarningsData, ErrorEntry, Webhook, FleetCommand, AudienceData, dataApiListScreensOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiQueryDslOperation, dataApiStreamOperation, setupBillingOperation, createCreditCheckoutOperation, purchaseCreditsOperation, getBillingUsageSummaryOperation, BillingInfo, CreatePartnerSensingRouteRequest, SensingRoute, UpdatePartnerSensingRouteRequest, createCreativeFeedbackExperimentOperation, configureCreativeFeedbackBrandOperation, importCreativeFeedbackCreativeOperation, getCreativeFeedbackExperimentOperation, registerCreativeFeedbackVariantsOperation, updateCreativeFeedbackPolicyOperation, getCreativeFeedbackRewardsOperation, generateCreativeFeedbackCreativeOperation, reviewCreativeFeedbackCreativeOperation, stopCreativeFeedbackExperimentOperation, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_create_media_buy_Args, Mcp_get_media_buys_Args, Mcp_update_media_buy_Args, Mcp_get_media_buy_delivery_Args, Mcp_sync_creatives_Args, Mcp_discover_inventory_Args, WebhookEvent } from './generated.js';
|
|
1
|
+
import { AdvertiserBuyingOperations, DemandBuyer_buyingSearchInventory_Result, DemandBuyer_buyingPreviewPlan_Result, DemandBuyer_buyingSaveCampaign_Result, DemandBuyer_buyingAttachCreative_Result, DemandBuyer_buyingPrepareBooking_Result, DemandBuyer_buyingCreateCheckout_Result, DemandBuyer_buyingGetCampaign_Result, DemandBuyer_buyingGetDelivery_Result, DemandBuyer_buyingRebookCampaign_Result, DemandBuyer_buyingStopCampaign_Result, DemandBuyer_buyingAmendFlight_Result, DemandBuyer_buyingUpdateMetadata_Result, Screen, PartnerDeviceRegistrationInput, DisplaySettingsResponse, DisplaySettingsInput, Device, PartnerDeviceBatchRegistrationInput, Impression, AnalyticsData, EarningsData, ErrorEntry, Webhook, FleetCommand, AudienceData, dataApiListScreensOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiQueryDslOperation, dataApiStreamOperation, setupBillingOperation, createCreditCheckoutOperation, purchaseCreditsOperation, getBillingUsageSummaryOperation, BillingInfo, CreatePartnerSensingRouteRequest, SensingRoute, UpdatePartnerSensingRouteRequest, createCreativeFeedbackExperimentOperation, configureCreativeFeedbackBrandOperation, importCreativeFeedbackCreativeOperation, getCreativeFeedbackExperimentOperation, registerCreativeFeedbackVariantsOperation, updateCreativeFeedbackPolicyOperation, getCreativeFeedbackRewardsOperation, generateCreativeFeedbackCreativeOperation, reviewCreativeFeedbackCreativeOperation, stopCreativeFeedbackExperimentOperation, getOwnedReactiveBrandOperation, setOwnedReactiveBrandOperation, importOwnedReactiveCreativeOperation, generateOwnedReactiveCreativeOperation, reviewOwnedReactiveCreativeOperation, listOwnedReactiveCreativesOperation, getScreenReactiveSettingsOperation, updateScreenReactiveSettingsOperation, getGroupReactiveSettingsOperation, updateGroupReactiveSettingsOperation, getOwnedReactiveCampaignOperation, updateOwnedReactiveCampaignOperation, getScreenGroupSensingConfigOperation, updateScreenGroupSensingConfigOperation, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_create_media_buy_Args, Mcp_get_media_buys_Args, Mcp_update_media_buy_Args, Mcp_get_media_buy_delivery_Args, Mcp_sync_creatives_Args, Mcp_discover_inventory_Args, WebhookEvent } from './generated.js';
|
|
2
2
|
export { BleScanResultData, ContentFitSettings, CreativeRewardsReadyEvent, DeviceCapabilityPayload, FeedbackBrand, FeedbackBrandRequest, FeedbackCreateRequest, FeedbackExperiment, FeedbackGenerateRequest, FeedbackGeneratedCreative, FeedbackImportRequest, FeedbackPolicyRequest, FeedbackRegisterVariantsRequest, FeedbackReviewRequest, FeedbackRewardQuery, FeedbackRewardRow, FeedbackRewards, FeedbackStopRequest, GeneratedOperationName, GeneratedSchemaName, HttpProbeResult, MdnsNetworkDevice, PartnerAdDeliveryProfile, PartnerDeviceHeartbeatBody, PartnerHeartbeatMeasurementMetadata, PartnerHeartbeatQueryData, PartnerHeartbeatQueryResponse, PartnerHeartbeatRequest, PartnerHeartbeatResponse, PartnerSafeHeartbeatTelemetry, SsdpDeviceInfo, WifiEnvironmentSnapshot, WifiScanResult, generatedTypes, getDeviceHeartbeatOperation, heartbeatOperation } from './generated.js';
|
|
3
3
|
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
|
|
@@ -156,7 +156,8 @@ interface SensingThresholdCrossedEvent {
|
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
158
|
interface HttpClientConfig {
|
|
159
|
-
|
|
159
|
+
/** Partner credential only; dedicated OAuth clients supply their bound Authorization. */
|
|
160
|
+
apiKey?: string;
|
|
160
161
|
baseUrl: string;
|
|
161
162
|
version?: string;
|
|
162
163
|
}
|
|
@@ -229,6 +230,45 @@ declare class HttpClient {
|
|
|
229
230
|
private buildUrl;
|
|
230
231
|
}
|
|
231
232
|
|
|
233
|
+
declare const ADVERTISER_BUYING_RESOURCE: "https://api.trillboards.com/openrtb/v2/buying";
|
|
234
|
+
interface AdvertiserBuyingOptions {
|
|
235
|
+
oauth: {
|
|
236
|
+
accessToken: string;
|
|
237
|
+
resource: typeof ADVERTISER_BUYING_RESOURCE;
|
|
238
|
+
};
|
|
239
|
+
baseUrl?: string;
|
|
240
|
+
version?: string;
|
|
241
|
+
}
|
|
242
|
+
interface BuyerWriteOptions {
|
|
243
|
+
/** Stable caller key for this exact original action, retained on retries. */
|
|
244
|
+
idempotencyKey: string;
|
|
245
|
+
retry?: RetryOptions;
|
|
246
|
+
headers?: Record<string, string>;
|
|
247
|
+
}
|
|
248
|
+
type Operation = keyof AdvertiserBuyingOperations;
|
|
249
|
+
type Input<K extends Operation> = AdvertiserBuyingOperations[K]['request'];
|
|
250
|
+
type Query<K extends Operation> = AdvertiserBuyingOperations[K]['query'];
|
|
251
|
+
/** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
|
|
252
|
+
declare class AdvertiserBuyingClient {
|
|
253
|
+
private readonly http;
|
|
254
|
+
private readonly authorization;
|
|
255
|
+
constructor(options: AdvertiserBuyingOptions);
|
|
256
|
+
private target;
|
|
257
|
+
private call;
|
|
258
|
+
searchInventory(input: Input<'buyingSearchInventory'>): Promise<DemandBuyer_buyingSearchInventory_Result>;
|
|
259
|
+
previewPlan(input: Input<'buyingPreviewPlan'>): Promise<DemandBuyer_buyingPreviewPlan_Result>;
|
|
260
|
+
saveCampaign(input: Input<'buyingSaveCampaign'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingSaveCampaign_Result>;
|
|
261
|
+
attachCreative(id: string, input: Input<'buyingAttachCreative'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingAttachCreative_Result>;
|
|
262
|
+
prepareBooking(id: string, input?: Input<'buyingPrepareBooking'>): Promise<DemandBuyer_buyingPrepareBooking_Result>;
|
|
263
|
+
createCheckout(id: string, input: Input<'buyingCreateCheckout'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingCreateCheckout_Result>;
|
|
264
|
+
getCampaign(id: string): Promise<DemandBuyer_buyingGetCampaign_Result>;
|
|
265
|
+
getDelivery(id: string, query?: Query<'buyingGetDelivery'>): Promise<DemandBuyer_buyingGetDelivery_Result>;
|
|
266
|
+
rebookCampaign(id: string, input: Input<'buyingRebookCampaign'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingRebookCampaign_Result>;
|
|
267
|
+
stopCampaign(id: string, options: BuyerWriteOptions): Promise<DemandBuyer_buyingStopCampaign_Result>;
|
|
268
|
+
amendFlight(id: string, input: Input<'buyingAmendFlight'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingAmendFlight_Result>;
|
|
269
|
+
updateMetadata(id: string, input: Input<'buyingUpdateMetadata'>, options: BuyerWriteOptions): Promise<DemandBuyer_buyingUpdateMetadata_Result>;
|
|
270
|
+
}
|
|
271
|
+
|
|
232
272
|
/**
|
|
233
273
|
* ScreensClient — Partner API screen management.
|
|
234
274
|
*
|
|
@@ -666,6 +706,27 @@ declare class CreativeExperimentsClient {
|
|
|
666
706
|
stop(id: string, body: stopCreativeFeedbackExperimentOperation['request']): Promise<stopCreativeFeedbackExperimentOperation['response']>;
|
|
667
707
|
}
|
|
668
708
|
|
|
709
|
+
/** Native reactive serving and fleet capture controls. */
|
|
710
|
+
|
|
711
|
+
declare class ReactiveClient {
|
|
712
|
+
private readonly http;
|
|
713
|
+
constructor(http: HttpClient);
|
|
714
|
+
getBrand(id: string): Promise<getOwnedReactiveBrandOperation['response']>;
|
|
715
|
+
updateBrand(id: string, body: setOwnedReactiveBrandOperation['request']): Promise<setOwnedReactiveBrandOperation['response']>;
|
|
716
|
+
importCreative(id: string, body: importOwnedReactiveCreativeOperation['request']): Promise<importOwnedReactiveCreativeOperation['response']>;
|
|
717
|
+
generateCreative(id: string, body: generateOwnedReactiveCreativeOperation['request']): Promise<generateOwnedReactiveCreativeOperation['response']>;
|
|
718
|
+
reviewCreative(id: string, body: reviewOwnedReactiveCreativeOperation['request']): Promise<reviewOwnedReactiveCreativeOperation['response']>;
|
|
719
|
+
listCreatives(id: string): Promise<listOwnedReactiveCreativesOperation['response']>;
|
|
720
|
+
getScreenSettings(id: string): Promise<getScreenReactiveSettingsOperation['response']>;
|
|
721
|
+
updateScreenSettings(id: string, body: updateScreenReactiveSettingsOperation['request']): Promise<updateScreenReactiveSettingsOperation['response']>;
|
|
722
|
+
getGroupSettings(id: string): Promise<getGroupReactiveSettingsOperation['response']>;
|
|
723
|
+
updateGroupSettings(id: string, body: updateGroupReactiveSettingsOperation['request']): Promise<updateGroupReactiveSettingsOperation['response']>;
|
|
724
|
+
getCampaign(id: string): Promise<getOwnedReactiveCampaignOperation['response']>;
|
|
725
|
+
updateCampaign(id: string, body: updateOwnedReactiveCampaignOperation['request']): Promise<updateOwnedReactiveCampaignOperation['response']>;
|
|
726
|
+
getGroupSensingConfig(id: string): Promise<getScreenGroupSensingConfigOperation['response']>;
|
|
727
|
+
updateGroupSensingConfig(id: string, body: updateScreenGroupSensingConfigOperation['request']): Promise<updateScreenGroupSensingConfigOperation['response']>;
|
|
728
|
+
}
|
|
729
|
+
|
|
669
730
|
/** Native MCP errors retain their complete result, including structured receipts. */
|
|
670
731
|
declare class McpToolError extends Error {
|
|
671
732
|
readonly tool: string;
|
|
@@ -837,6 +898,7 @@ declare class TrillboardsClient {
|
|
|
837
898
|
readonly billing: BillingClient;
|
|
838
899
|
readonly routes: RoutesClient;
|
|
839
900
|
readonly creativeExperiments: CreativeExperimentsClient;
|
|
901
|
+
readonly reactive: ReactiveClient;
|
|
840
902
|
readonly mediaBuys: MediaBuysClient;
|
|
841
903
|
/** The underlying HTTP client (exposed for advanced use cases). */
|
|
842
904
|
readonly _http: HttpClient;
|
|
@@ -862,6 +924,8 @@ interface TrillboardsErrorOptions {
|
|
|
862
924
|
details?: ErrorDetail[];
|
|
863
925
|
help?: Record<string, unknown>;
|
|
864
926
|
retryAfterSeconds?: number | null;
|
|
927
|
+
recovery?: Record<string, unknown> | null;
|
|
928
|
+
wwwAuthenticate?: string | null;
|
|
865
929
|
}
|
|
866
930
|
declare class TrillboardsError extends Error {
|
|
867
931
|
readonly type: ApiErrorType;
|
|
@@ -872,6 +936,8 @@ declare class TrillboardsError extends Error {
|
|
|
872
936
|
readonly statusCode: number;
|
|
873
937
|
readonly details: ErrorDetail[];
|
|
874
938
|
readonly help: Record<string, unknown> | null;
|
|
939
|
+
readonly recovery: Record<string, unknown> | null;
|
|
940
|
+
readonly wwwAuthenticate: string | null;
|
|
875
941
|
private readonly _retryAfterSeconds;
|
|
876
942
|
constructor(opts: TrillboardsErrorOptions);
|
|
877
943
|
/**
|
|
@@ -1092,6 +1158,6 @@ declare const Webhooks: {
|
|
|
1092
1158
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1093
1159
|
* refuse the release.
|
|
1094
1160
|
*/
|
|
1095
|
-
declare const VERSION = "3.
|
|
1161
|
+
declare const VERSION = "3.3.9";
|
|
1096
1162
|
|
|
1097
|
-
export { ADCP_WEBHOOK_SIGNING_TAG, type AdcpJwk, AnalyticsClient, AnalyticsData, type ApiErrorType, AudienceClient, AudienceData, BillingClient, BillingInfo, type BillingOperationOptions, type ClientOptions, type ConstructEventOptions, type ContentFitMode, CreatePartnerSensingRouteRequest, CreativeExperimentsClient, DataClient, type DataStreamEvent, Device, DevicesClient, DisplaySettingsInput, DisplaySettingsResponse, EarningsClient, EarningsData, type ErrorDetail, ErrorEntry, type ErrorResponseBody, ErrorsClient, FleetClient, FleetCommand, Impression, ImpressionsClient, type ListResponse, McpToolError, Mcp_create_media_buy_Args, Mcp_discover_inventory_Args, Mcp_get_media_buy_delivery_Args, Mcp_get_media_buys_Args, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_sync_creatives_Args, Mcp_update_media_buy_Args, type MediaAccountsResponse, type MediaAccountsSyncResponse, type MediaBuy, type MediaBuyUpdateResponse, MediaBuysClient, type MediaBuysResponse, type MediaCreativeSyncResponse, type MediaDeliveryResponse, type MediaFunding, type MediaNativeError, type MediaPackage, type MediaPagination, type MediaProduct, type MediaProductsResponse, type ParsedSignatureHeader, PartnerDeviceBatchRegistrationInput, PartnerDeviceRegistrationInput, type RequestOptions, type RetryOptions, type RouteAction, type RouteChannel, type RouteCondition, type RouteConditionOp, type RouteDigest, type RouteDigestSummary, type RouteWebhookEvent, RoutesClient, Screen, ScreensClient, SensingRoute, type SensingThresholdCrossedEvent, type StreamOptions, TrillboardsClient, TrillboardsError, type TrillboardsErrorOptions, UpdatePartnerSensingRouteRequest, VERSION, type VerifyAdcpWebhookOptions, Webhook, WebhookEvent, type WebhookHeaders, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, createCreditCheckoutOperation, dataApiListScreensOperation, dataApiQueryDslOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiStreamOperation, getBillingUsageSummaryOperation, parseSignatureHeader, purchaseCreditsOperation, retryWithBackoff, setupBillingOperation, verifyAdcpWebhook };
|
|
1163
|
+
export { ADCP_WEBHOOK_SIGNING_TAG, ADVERTISER_BUYING_RESOURCE, type AdcpJwk, AdvertiserBuyingClient, type AdvertiserBuyingOptions, AnalyticsClient, AnalyticsData, type ApiErrorType, AudienceClient, AudienceData, BillingClient, BillingInfo, type BillingOperationOptions, type BuyerWriteOptions, type ClientOptions, type ConstructEventOptions, type ContentFitMode, CreatePartnerSensingRouteRequest, CreativeExperimentsClient, DataClient, type DataStreamEvent, Device, DevicesClient, DisplaySettingsInput, DisplaySettingsResponse, EarningsClient, EarningsData, type ErrorDetail, ErrorEntry, type ErrorResponseBody, ErrorsClient, FleetClient, FleetCommand, Impression, ImpressionsClient, type ListResponse, McpToolError, Mcp_create_media_buy_Args, Mcp_discover_inventory_Args, Mcp_get_media_buy_delivery_Args, Mcp_get_media_buys_Args, Mcp_get_products_Args, Mcp_list_accounts_Args, Mcp_sync_accounts_Args, Mcp_sync_creatives_Args, Mcp_update_media_buy_Args, type MediaAccountsResponse, type MediaAccountsSyncResponse, type MediaBuy, type MediaBuyUpdateResponse, MediaBuysClient, type MediaBuysResponse, type MediaCreativeSyncResponse, type MediaDeliveryResponse, type MediaFunding, type MediaNativeError, type MediaPackage, type MediaPagination, type MediaProduct, type MediaProductsResponse, type ParsedSignatureHeader, PartnerDeviceBatchRegistrationInput, PartnerDeviceRegistrationInput, ReactiveClient, type RequestOptions, type RetryOptions, type RouteAction, type RouteChannel, type RouteCondition, type RouteConditionOp, type RouteDigest, type RouteDigestSummary, type RouteWebhookEvent, RoutesClient, Screen, ScreensClient, SensingRoute, type SensingThresholdCrossedEvent, type StreamOptions, TrillboardsClient, TrillboardsError, type TrillboardsErrorOptions, UpdatePartnerSensingRouteRequest, VERSION, type VerifyAdcpWebhookOptions, Webhook, WebhookEvent, type WebhookHeaders, Webhooks, WebhooksClient, constructEvent, constructEventLegacy, createCreditCheckoutOperation, dataApiListScreensOperation, dataApiQueryDslOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiStreamOperation, getBillingUsageSummaryOperation, parseSignatureHeader, purchaseCreditsOperation, retryWithBackoff, setupBillingOperation, verifyAdcpWebhook };
|