@trillboards/api-client 3.3.8 → 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 +4574 -9
- package/dist/generated.d.ts +4574 -9
- package/dist/generated.js +6 -4
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.d.mts +48 -4
- package/dist/index.d.ts +48 -4
- package/dist/index.js +105 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-HJGM5CPD.mjs +0 -18
- package/dist/chunk-HJGM5CPD.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, 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';
|
|
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
|
*
|
|
@@ -884,6 +924,8 @@ interface TrillboardsErrorOptions {
|
|
|
884
924
|
details?: ErrorDetail[];
|
|
885
925
|
help?: Record<string, unknown>;
|
|
886
926
|
retryAfterSeconds?: number | null;
|
|
927
|
+
recovery?: Record<string, unknown> | null;
|
|
928
|
+
wwwAuthenticate?: string | null;
|
|
887
929
|
}
|
|
888
930
|
declare class TrillboardsError extends Error {
|
|
889
931
|
readonly type: ApiErrorType;
|
|
@@ -894,6 +936,8 @@ declare class TrillboardsError extends Error {
|
|
|
894
936
|
readonly statusCode: number;
|
|
895
937
|
readonly details: ErrorDetail[];
|
|
896
938
|
readonly help: Record<string, unknown> | null;
|
|
939
|
+
readonly recovery: Record<string, unknown> | null;
|
|
940
|
+
readonly wwwAuthenticate: string | null;
|
|
897
941
|
private readonly _retryAfterSeconds;
|
|
898
942
|
constructor(opts: TrillboardsErrorOptions);
|
|
899
943
|
/**
|
|
@@ -1114,6 +1158,6 @@ declare const Webhooks: {
|
|
|
1114
1158
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1115
1159
|
* refuse the release.
|
|
1116
1160
|
*/
|
|
1117
|
-
declare const VERSION = "3.3.
|
|
1161
|
+
declare const VERSION = "3.3.9";
|
|
1118
1162
|
|
|
1119
|
-
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, 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 };
|
|
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, 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';
|
|
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
|
*
|
|
@@ -884,6 +924,8 @@ interface TrillboardsErrorOptions {
|
|
|
884
924
|
details?: ErrorDetail[];
|
|
885
925
|
help?: Record<string, unknown>;
|
|
886
926
|
retryAfterSeconds?: number | null;
|
|
927
|
+
recovery?: Record<string, unknown> | null;
|
|
928
|
+
wwwAuthenticate?: string | null;
|
|
887
929
|
}
|
|
888
930
|
declare class TrillboardsError extends Error {
|
|
889
931
|
readonly type: ApiErrorType;
|
|
@@ -894,6 +936,8 @@ declare class TrillboardsError extends Error {
|
|
|
894
936
|
readonly statusCode: number;
|
|
895
937
|
readonly details: ErrorDetail[];
|
|
896
938
|
readonly help: Record<string, unknown> | null;
|
|
939
|
+
readonly recovery: Record<string, unknown> | null;
|
|
940
|
+
readonly wwwAuthenticate: string | null;
|
|
897
941
|
private readonly _retryAfterSeconds;
|
|
898
942
|
constructor(opts: TrillboardsErrorOptions);
|
|
899
943
|
/**
|
|
@@ -1114,6 +1158,6 @@ declare const Webhooks: {
|
|
|
1114
1158
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1115
1159
|
* refuse the release.
|
|
1116
1160
|
*/
|
|
1117
|
-
declare const VERSION = "3.3.
|
|
1161
|
+
declare const VERSION = "3.3.9";
|
|
1118
1162
|
|
|
1119
|
-
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, 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 };
|
|
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.js
CHANGED
|
@@ -25,6 +25,8 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
25
25
|
this.docsUrl = opts.docsUrl ?? `https://api.trillboards.com/docs/errors#${opts.code}`;
|
|
26
26
|
this.details = opts.details ?? [];
|
|
27
27
|
this.help = opts.help ?? null;
|
|
28
|
+
this.recovery = opts.recovery ?? null;
|
|
29
|
+
this.wwwAuthenticate = opts.wwwAuthenticate ?? null;
|
|
28
30
|
this._retryAfterSeconds = opts.retryAfterSeconds ?? null;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
@@ -33,8 +35,8 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
33
35
|
* The API wraps errors in { error: { ... } }. We unwrap and map to class fields.
|
|
34
36
|
*/
|
|
35
37
|
static fromResponse(body, response) {
|
|
36
|
-
const
|
|
37
|
-
const errData =
|
|
38
|
+
const root2 = body && typeof body === "object" ? body : {};
|
|
39
|
+
const errData = root2.error && typeof root2.error === "object" ? root2.error : root2;
|
|
38
40
|
const retryAfterHeader = response.headers.get("retry-after");
|
|
39
41
|
let retryAfterSeconds = null;
|
|
40
42
|
if (retryAfterHeader) {
|
|
@@ -45,15 +47,17 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
45
47
|
}
|
|
46
48
|
return new _TrillboardsError({
|
|
47
49
|
type: errData.type ?? "api_error",
|
|
48
|
-
code: errData.code ?? "unknown_error",
|
|
49
|
-
message: errData.message ?? "An unknown error occurred.",
|
|
50
|
+
code: errData.error_code ?? errData.code ?? "unknown_error",
|
|
51
|
+
message: errData.message ?? (typeof root2.error === "string" ? root2.error : "An unknown error occurred."),
|
|
50
52
|
statusCode: response.status,
|
|
51
53
|
param: errData.param ?? null,
|
|
52
|
-
requestId: errData.request_id ?? "",
|
|
54
|
+
requestId: errData.request_id ?? response.headers.get("x-request-id") ?? "",
|
|
53
55
|
docsUrl: errData.doc_url ?? void 0,
|
|
54
56
|
details: errData.details ?? [],
|
|
55
57
|
help: errData.help ?? null,
|
|
56
|
-
retryAfterSeconds
|
|
58
|
+
retryAfterSeconds,
|
|
59
|
+
recovery: errData.recovery ?? null,
|
|
60
|
+
wwwAuthenticate: response.headers.get("www-authenticate")
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
/** True if this is a 429 rate limit response. */
|
|
@@ -82,7 +86,7 @@ var TrillboardsError = class _TrillboardsError extends Error {
|
|
|
82
86
|
};
|
|
83
87
|
|
|
84
88
|
// src/version.ts
|
|
85
|
-
var VERSION = "3.3.
|
|
89
|
+
var VERSION = "3.3.9";
|
|
86
90
|
|
|
87
91
|
// src/http.ts
|
|
88
92
|
var PUBLIC_PATHS = ["/v1/errors", "/v1/changelog", "/api/discover", "/v1/health"];
|
|
@@ -168,12 +172,11 @@ var HttpClient = class {
|
|
|
168
172
|
try {
|
|
169
173
|
return await response.json();
|
|
170
174
|
} catch {
|
|
171
|
-
throw
|
|
175
|
+
throw TrillboardsError.fromResponse({ error: {
|
|
172
176
|
type: "api_error",
|
|
173
177
|
code: "invalid_response",
|
|
174
|
-
message: `Invalid JSON response from API (HTTP ${response.status})
|
|
175
|
-
|
|
176
|
-
});
|
|
178
|
+
message: `Invalid JSON response from API (HTTP ${response.status}).`
|
|
179
|
+
} }, response);
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
/** Open one authenticated live tail. The native endpoint has no replay cursor. */
|
|
@@ -235,6 +238,95 @@ var HttpClient = class {
|
|
|
235
238
|
}
|
|
236
239
|
};
|
|
237
240
|
|
|
241
|
+
// src/generated/index.ts
|
|
242
|
+
var advertiserBuyingRoutes = { "buyingSearchInventory": { "path": "/openrtb/v2/buying/inventory/search", "method": "POST", "requiresIdempotencyKey": false }, "buyingPreviewPlan": { "path": "/openrtb/v2/buying/plans/preview", "method": "POST", "requiresIdempotencyKey": false }, "buyingSaveCampaign": { "path": "/openrtb/v2/buying/campaigns", "method": "POST", "requiresIdempotencyKey": true }, "buyingAttachCreative": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/creative", "method": "POST", "requiresIdempotencyKey": true }, "buyingPrepareBooking": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/prepare", "method": "POST", "requiresIdempotencyKey": false }, "buyingCreateCheckout": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/checkout", "method": "POST", "requiresIdempotencyKey": true }, "buyingGetCampaign": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}", "method": "GET", "requiresIdempotencyKey": false }, "buyingUpdateMetadata": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}", "method": "PATCH", "requiresIdempotencyKey": true }, "buyingGetDelivery": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/delivery", "method": "GET", "requiresIdempotencyKey": false }, "buyingRebookCampaign": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/rebook", "method": "POST", "requiresIdempotencyKey": true }, "buyingStopCampaign": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/stop", "method": "POST", "requiresIdempotencyKey": true }, "buyingAmendFlight": { "path": "/openrtb/v2/buying/campaigns/{advertisementId}/flight", "method": "POST", "requiresIdempotencyKey": true } };
|
|
243
|
+
var generatedTypes = {
|
|
244
|
+
schemaCount: 363,
|
|
245
|
+
operationCount: 326,
|
|
246
|
+
schemas: ["Ad", "AdSettings", "AdvertisingIdentity", "AnalyticsData", "AudienceAnalyticsResponse", "AudienceAttentionPrediction", "AudienceData", "AudienceExportResponse", "AudienceLoyaltyFeaturesRow", "AudienceMetricsResponse", "AudienceSegment", "AudienceSocialAttention", "BatchResult", "BillingInfo", "BleScanResultData", "CanonicalError", "ChangelogEntry", "ChangelogResponse", "CompletedImpressions", "ContentFitSettings", "ContentPreferencesInput", "ContentPreferencesResponse", "ContentPreset", "CreatePartnerSensingRouteRequest", "CreativeClassification", "CreativeRewardsReadyEvent", "DashboardResponse", "DataApi_AdSightingRecord", "DataApi_AdSightingsHistoryResponse", "DataApi_AdSightingsResponse", "DataApi_AggregateResponse", "DataApi_CreativeBrandHistoryRow", "DataApi_DataDelivery_ad_delivery_hourly", "DataApi_DataDelivery_attention_ledger", "DataApi_DataDelivery_auction_results", "DataApi_DataDelivery_audience_composition_weekly", "DataApi_DataDelivery_audience_metrics", "DataApi_DataDelivery_board_creative_sighting", "DataApi_DataDelivery_board_currency_multiweek", "DataApi_DataDelivery_board_flow_hourly", "DataApi_DataDelivery_board_pass_daily", "DataApi_DataDelivery_camera_frame_corpus", "DataApi_DataDelivery_camera_video_corpus", "DataApi_DataDelivery_completed_impressions", "DataApi_DataDelivery_creative_flights", "DataApi_DataDelivery_cross_screen_edges_daily", "DataApi_DataDelivery_curated_inventory_packages", "DataApi_DataDelivery_device_exposure_hourly", "DataApi_DataDelivery_device_exposure_windows", "DataApi_DataDelivery_dim_screen", "DataApi_DataDelivery_event_tracking", "DataApi_DataDelivery_geohash_activity_hourly", "DataApi_DataDelivery_impression_events", "DataApi_DataDelivery_inference_outcomes", "DataApi_DataDelivery_ip_geo_observations", "DataApi_DataDelivery_mobility_flows_daily", "DataApi_DataDelivery_observation_demographics", "DataApi_DataDelivery_omsdk_sessions", "DataApi_DataDelivery_panel_segment_cells", "DataApi_DataDelivery_place_activity_hourly", "DataApi_DataDelivery_play_audience", "DataApi_DataDelivery_play_audience_window", "DataApi_DataDelivery_play_device_exposure", "DataApi_DataDelivery_proximity_graph_edges_hourly", "DataApi_DataDelivery_public_attention_city_venue_hourly", "DataApi_DataDelivery_ride_places", "DataApi_DataDelivery_screen_hourly_presence", "DataApi_DataDelivery_screen_panel_monthly", "DataApi_DataDelivery_sighted_creatives", "DataApi_DataDelivery_vast_requests", "DataApi_DataProducts_AudienceRow", "DataApi_DataProducts_AuthError", "DataApi_DataProducts_Benchmark", "DataApi_DataProducts_BoardAudience", "DataApi_DataProducts_BoardAudienceResponse", "DataApi_DataProducts_BoardCurrency", "DataApi_DataProducts_BoardCurrencyResponse", "DataApi_DataProducts_BoardLookedShare", "DataApi_DataProducts_BoardLookedShareResponse", "DataApi_DataProducts_BoardPointCollection", "DataApi_DataProducts_BoardPointMeta", "DataApi_DataProducts_BoardPointProperties", "DataApi_DataProducts_BoardTiles", "DataApi_DataProducts_BoardTilesResponse", "DataApi_DataProducts_BrandMarket", "DataApi_DataProducts_BrandSearch", "DataApi_DataProducts_BrandSearchResponse", "DataApi_DataProducts_Calibration", "DataApi_DataProducts_CalibrationCell", "DataApi_DataProducts_CalibrationResponse", "DataApi_DataProducts_CalibrationVersion", "DataApi_DataProducts_CalibrationVersions", "DataApi_DataProducts_CalibrationVersionsResponse", "DataApi_DataProducts_CurationSet", "DataApi_DataProducts_CurationSetList", "DataApi_DataProducts_CurationSetListResponse", "DataApi_DataProducts_CurrencyAbsent", "DataApi_DataProducts_CurrencyBoard", "DataApi_DataProducts_CurrencyCell", "DataApi_DataProducts_DeliveryReport", "DataApi_DataProducts_DeliveryReportResponse", "DataApi_DataProducts_DmaFormatIndex", "DataApi_DataProducts_DmaFormatIndexResponse", "DataApi_DataProducts_DmaFormatIndexRow", "DataApi_DataProducts_FacingVerdict", "DataApi_DataProducts_FeedPublication", "DataApi_DataProducts_GeohashTileCollection", "DataApi_DataProducts_GeohashTileMeta", "DataApi_DataProducts_GeohashTileProperties", "DataApi_DataProducts_Geometry", "DataApi_DataProducts_LookedShareRow", "DataApi_DataProducts_MeasurementError", "DataApi_DataProducts_Method", "DataApi_DataProducts_MetricAnswer", "DataApi_DataProducts_MetricAnswerResponse", "DataApi_DataProducts_MetricBoardMeasuredImpressionsPerSpotResponse", "DataApi_DataProducts_MetricBoardPassAudienceResponse", "DataApi_DataProducts_MetricCameraDwellCappedMsResponse", "DataApi_DataProducts_MetricCameraGazePctResponse", "DataApi_DataProducts_MetricCameraHeadPoseIndexResponse", "DataApi_DataProducts_MetricCameraPeoplePerScreenHourResponse", "DataApi_DataProducts_MetricCatalog", "DataApi_DataProducts_MetricCatalogEntry", "DataApi_DataProducts_MetricCatalogResponse", "DataApi_DataProducts_MetricCreativeBrandHistoryResponse", "DataApi_DataProducts_MetricCreativeShareOfVoiceResponse", "DataApi_DataProducts_MetricCreativeSightingsResponse", "DataApi_DataProducts_MetricCreativeStreetPresenceResponse", "DataApi_DataProducts_MetricCreativeVacancyRateResponse", "DataApi_DataProducts_MetricDemographicShareResponse", "DataApi_DataProducts_MetricMeasure", "DataApi_DataProducts_MetricRadioIdentifiersPerPersonResponse", "DataApi_DataProducts_MetricSamePanelIndexResponse", "DataApi_DataProducts_MetricSeatbeltComplianceResponse", "DataApi_DataProducts_MetricSeatbeltUnbuckledRideRateResponse", "DataApi_DataProducts_MetricSensingCensusResponse", "DataApi_DataProducts_MultiplierFeed", "DataApi_DataProducts_MultiplierFeedResponse", "DataApi_DataProducts_OccluderCollection", "DataApi_DataProducts_OccluderMeta", "DataApi_DataProducts_OccluderProperties", "DataApi_DataProducts_OwnerFace", "DataApi_DataProducts_OwnerFaceDetail", "DataApi_DataProducts_OwnerFaceResponse", "DataApi_DataProducts_OwnerFaces", "DataApi_DataProducts_OwnerFacesResponse", "DataApi_DataProducts_OwnerUploadResponse", "DataApi_DataProducts_PassReplay", "DataApi_DataProducts_PassReplayResponse", "DataApi_DataProducts_Release", "DataApi_DataProducts_ReleaseRegistry", "DataApi_DataProducts_ReleaseRegistryResponse", "DataApi_DataProducts_ReplayPass", "DataApi_DataProducts_RoadCollection", "DataApi_DataProducts_RoadProperties", "DataApi_DataProducts_SetCoverage", "DataApi_DataProducts_SetCoverageEnvelope", "DataApi_DataProducts_SetCoverageResponse", "DataApi_DataProducts_SightedBrand", "DataApi_DataProducts_TileSum", "DataApi_DataProducts_ViewshedCollection", "DataApi_DataProducts_ViewshedMeta", "DataApi_DataProducts_ViewshedProperties", "DataApi_DataProducts_Watermark", "DataApi_DataProducts_Window", "DataApi_DataProducts_YieldReport", "DataApi_DataProducts_YieldReportResponse", "DataApi_Error", "DataApi_ErrorCode", "DataApi_FeedbackRewardQuery", "DataApi_LookalikeResponse", "DataApi_QueryDslBody", "DataApi_QueryDslResponse", "DataApi_QueryFilter", "DataApi_QueryOrderBy", "DataApi_ScreenAudienceResponse", "DataApi_ScreenHistoryResponse", "DataApi_ScreensListResponse", "DataApi_SemanticSearchResponse", "DataApi_StatsResponse", "DataApi_StreamResponse", "DataApi_UsageResponse", "DataExportSummaryResponse", "DataLicencePeriod", "DataLicenceStatus", "DemandBuyer_Error", "DemandBuyer_buyingAmendFlight_Input", "DemandBuyer_buyingAmendFlight_Result", "DemandBuyer_buyingAttachCreative_Input", "DemandBuyer_buyingAttachCreative_Result", "DemandBuyer_buyingCreateCheckout_Input", "DemandBuyer_buyingCreateCheckout_Result", "DemandBuyer_buyingGetCampaign_Result", "DemandBuyer_buyingGetDelivery_Result", "DemandBuyer_buyingPrepareBooking_Input", "DemandBuyer_buyingPrepareBooking_Result", "DemandBuyer_buyingPreviewPlan_Input", "DemandBuyer_buyingPreviewPlan_Result", "DemandBuyer_buyingRebookCampaign_Input", "DemandBuyer_buyingRebookCampaign_Result", "DemandBuyer_buyingSaveCampaign_Input", "DemandBuyer_buyingSaveCampaign_Result", "DemandBuyer_buyingSearchInventory_Input", "DemandBuyer_buyingSearchInventory_Result", "DemandBuyer_buyingStopCampaign_Input", "DemandBuyer_buyingStopCampaign_Result", "DemandBuyer_buyingUpdateMetadata_Input", "DemandBuyer_buyingUpdateMetadata_Result", "DemandPartners", "DemographicsResponse", "Device", "DeviceAuthRefusal", "DeviceCapabilityPayload", "DeviceSummary", "DiscoveryConfigPatch", "DisplaySettingsInput", "DisplaySettingsResponse", "EarnerScreens", "EarningsBreakdownResponse", "EarningsData", "EarningsResponse", "EarningsSources", "Error", "ErrorCode", "ErrorCodeResponse", "ErrorEntry", "ErrorEnvelope", "ErrorListItem", "ErrorListResponse", "ErrorType", "ExtendedIdentity", "FeedbackBrand", "FeedbackBrandRequest", "FeedbackBrandResponse", "FeedbackCreateRequest", "FeedbackCreativeReview", "FeedbackExperiment", "FeedbackExperimentDetail", "FeedbackExperimentDetailResponse", "FeedbackExperimentResponse", "FeedbackGenerateRequest", "FeedbackGenerateResponse", "FeedbackGeneratedCreative", "FeedbackImportRequest", "FeedbackPolicyRequest", "FeedbackRecoveredCreative", "FeedbackRegisterVariantsRequest", "FeedbackReviewRequest", "FeedbackReviewResponse", "FeedbackRewardQuery", "FeedbackRewardRow", "FeedbackRewards", "FeedbackRewardsResponse", "FeedbackStopRequest", "FeedbackVariant", "FleetCommand", "FleetCommandEvent", "GroupSensingConfigPatch", "HeaderBiddingSettings", "HttpProbeResult", "HybridError", "Impression", "LegacyCodedError", "LegacyError", "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", "MdnsNetworkDevice", "MeasurementMethodology", "OpenrtbRevenueScreenHourly", "OwnedReactiveBrand", "OwnedReactiveImport", "Pagination", "Partner", "PartnerAdDeliveryProfile", "PartnerCreativeWarnings", "PartnerDefaultStream", "PartnerDefaultStreamCreate", "PartnerDefaultStreamUpdate", "PartnerDeviceBatchRegistrationInput", "PartnerDeviceHeartbeatBody", "PartnerDevicePlay", "PartnerDeviceRegistrationInput", "PartnerHeartbeatCommand", "PartnerHeartbeatData", "PartnerHeartbeatMeasurementMetadata", "PartnerHeartbeatQueryData", "PartnerHeartbeatQueryResponse", "PartnerHeartbeatRequest", "PartnerHeartbeatResponse", "PartnerHeartbeatTelemetry", "PartnerInteraction", "PartnerLBarContent", "PartnerLBarDisplayPreferences", "PartnerLBarSettings", "PartnerLocationCapability", "PartnerLocationRail", "PartnerMonetizationRequirements", "PartnerNetworkConfig", "PartnerNetworkConfigUpdate", "PartnerPlay", "PartnerReconciliationReports", "PartnerRegistrationDisplaySettings", "PartnerRequirement", "PartnerSafeHeartbeatTelemetry", "PartnerSelfPromoAd", "PartnerSelfPromoCreate", "PartnerSelfPromoPlacement", "PartnerStats", "PartnerTripState", "PartnerVariants", "PartnerZoneCpmDaily", "PayoutResponse", "PlaygroundResult", "PlaygroundValidationError", "ProgrammaticSettingsInput", "ProgrammaticSettingsResponse", "ReactiveCampaign", "ReactiveCampaignPatch", "ReactiveRule", "ReactiveSettings", "ReactiveSettingsPatch", "RequestMetadataResponse", "ResolvedContentPolicy", "ResolvedSensingConfig", "RolePermissions", "SDKConfig", "Screen", "ScreenAnalyticsResponse", "ScreenGroup", "ScreenGroupContentPolicy", "ScreenGroupContentPolicyInput", "ScreenGroupEvent", "ScreenGroupSensingConfig", "ScreenGroupSensingConfigInput", "SensingPerformanceMode", "SensingRoute", "SensingRouteAction", "SensingRouteCondition", "SensingRouteReviewTimingMode", "SensingRouteReviewWaitSeconds", "SensingRouteScreenFocusRegion", "SensingSettingsResponse", "SensingThresholdCrossedEvent", "SsdpDeviceInfo", "TeamInviteResponse", "TeamMember", "Transaction", "TrillboardsError", "UpdatePartnerSensingRouteRequest", "VastWaterfall", "VastWaterfallSource", "Webhook", "WebhookDelivery", "WebhookEvent", "WifiEnvironmentSnapshot", "WifiScanResult"],
|
|
247
|
+
operations: ["buyingSaveCampaign", "buyingGetCampaign", "buyingUpdateMetadata", "buyingCreateCheckout", "buyingAttachCreative", "buyingGetDelivery", "buyingAmendFlight", "buyingPrepareBooking", "buyingRebookCampaign", "buyingStopCampaign", "buyingSearchInventory", "buyingPreviewPlan", "getAdSightingFrame", "getAdSightingPhoto", "listAdSightingsInPortal", "listAdSightingHistoryInPortal", "listMeasuredBoards", "getMeasuredBoardAudience", "getMeasuredBoardCurrency", "getMeasuredBoardLookedShare", "getMeasuredBoardOccluders", "getMeasuredBoardPassReplay", "getMeasuredBoardTiles", "getMeasuredBoardViewshed", "searchSightedBrands", "getMeasurementCalibration", "listMeasurementCalibrationVersions", "listCurationSets", "getCurationSetCoverage", "getCurationSetRoads", "getCurationSetViewsheds", "getMeasuredMultiplierFeed", "getMeasuredDmaFormatIndex", "listApprovedMetrics", "getMetricBoardMeasuredImpressionsPerSpot", "getMetricBoardPassAudience", "getMetricCameraDwellCappedMs", "getMetricCameraGazePct", "getMetricCameraHeadPoseIndex", "getMetricCameraPeoplePerScreenHour", "getMetricCreativeBrandHistory", "getMetricCreativeShareOfVoice", "getMetricCreativeSightings", "getMetricCreativeStreetPresence", "getMetricCreativeVacancyRate", "getMetricDemographicShare", "getMetricRadioIdentifiersPerPerson", "getMetricSamePanelIndex", "getMetricSeatbeltCompliance", "getMetricSeatbeltUnbuckledRideRate", "getMetricSensingCensus", "getApprovedMetric", "listMeasurementReleases", "listMeasuredRoads", "listMeasuredGeohashTiles", "queryChangelog", "dataApiAdSightings", "dataApiAdSightingsHistory", "dataApiAggregate", "dataApiLookalikeScreens", "dataApiQueryDsl", "dataApiListScreens", "dataApiScreenAudienceLive", "dataApiScreenAudienceHistory", "dataApiSemanticSearch", "dataApiStats", "dataApiStream", "dataApiUsage", "listErrorCodes", "getErrorCode", "getOwnerBoardAudience", "getOwnerBoardCurrency", "getOwnerDeliveryReport", "getOwnerBoardLookedShare", "getOwnerBoardTiles", "getOwnerBoardViewshed", "listOwnerFaces", "getOwnerFace", "getOwnerMultiplierFeed", "uploadOwnerPlayLogs", "getOwnerPublisherYieldByQuery", "getOwnerPublisherYield", "listOwnerMeasurementReleases", "uploadOwnerFaceSpecs", "listPartnerSelfPromoAds", "createPartnerSelfPromoAd", "listPartnerSelfPromoPlacements", "schedulePartnerSelfPromo", "createPartnerSelfPromoUpload", "disableSelfPromoAd", "getOwnedReactiveCampaign", "updateOwnedReactiveCampaign", "getOwnedReactiveBrand", "setOwnedReactiveBrand", "listOwnedReactiveCreatives", "generateOwnedReactiveCreative", "importOwnedReactiveCreative", "reviewOwnedReactiveCreative", "registerAgent", "getAnalytics", "getAudienceContinuity", "getAudienceProfile", "getBleSummary", "getContentPerformance", "searchCreativeCatalog", "getCreativeObservations", "getCreativeScenes", "getCrossScreenFlow", "getPartnerAnalyticsDashboard", "getDeviceSuiteSignature", "exportPartnerAnalytics", "exportPartnerAdsByDay", "getFleetHourly", "getHaloFunnel", "getLoyaltyClock", "getNetworkSummary", "getNetworkTrend", "getProximitySummary", "getRevenueAttentionCorrelation", "getSceneFeed", "getSceneIntelligence", "rotateApiKey", "getAudienceAnalytics", "exportAudienceData", "getAudienceHeatmap", "getLiveAudience", "getLookalikeScreens", "predictScreenAudience", "getResolvedHouseholdReach", "listAudienceSegments", "createAudienceSegment", "deleteAudienceSegment", "getAudienceSegment", "updateAudienceSegment", "matchAudienceSegment", "estimateSegmentReach", "generateSegmentVastTag", "getAudienceStats", "cancelBillingSubscription", "purchaseCredits", "createCreditCheckout", "getDataLicenceStatus", "cancelDataLicenceRenewal", "createDataLicenceSetupSession", "completeDataLicenceSetup", "listBillingPlans", "setupBilling", "createBillingSubscription", "getBillingSubscription", "getBillingUsage", "getBillingUsageSummary", "stripeWebhookCallback", "getConnectDashboard", "getConnectEarningsChart", "getConnectScreenHealth", "listContentPresets", "getContentPreset", "createCreativeFeedbackExperiment", "getCreativeFeedbackExperiment", "configureCreativeFeedbackBrand", "generateCreativeFeedbackCreative", "importCreativeFeedbackCreative", "reviewCreativeFeedbackCreative", "updateCreativeFeedbackPolicy", "getCreativeFeedbackRewards", "stopCreativeFeedbackExperiment", "registerCreativeFeedbackVariants", "submitPartnerCreative", "getPartnerCreative", "getDashboard", "exportProximityGraphEdges", "getDataExportSummary", "exportDataset", "getGeohashAudiencePanel", "getOutcomeAttribution", "registerDevice", "deleteDevice", "getDevice", "updateDevice", "getAdsForDevice", "ackDeviceCommand", "getDeviceHeartbeat", "heartbeat", "updateDeviceImpressionMultiplier", "recordPartnerDeviceInteraction", "recordPartnerDevicePlay", "recordProgrammaticEvent", "recordPartnerDeviceTripState", "getVastForDevice", "listDevices", "registerDeviceV2", "registerDevicesBatch", "batchUpdateDeviceOrientation", "reconcileDevices", "partnerDocsBrowser", "getEarnings", "getEarningsBreakdown", "requestPayout", "getTransactions", "getActiveSSEConnections", "subscribeToEvents", "getFleetCommand", "getFleetAnalytics", "pushFleetCommand", "getFleetOverview", "updateFleetSettings", "recordImpressionGet", "recordImpressionPost", "recordImpressionsBatch", "getPartnerInfo", "listIntentCategories", "getIntentCategory", "getIntentPricing", "getMeasurementMethodology", "getMeasurementMethodologyJson", "getNetworkConfig", "patchNetworkConfig", "updateNetworkConfig", "getNetworkTrends", "partnerPing", "partnerPingAuth", "recordPartnerPlay", "recordPartnerPlaysBatch", "getPricing", "recordProgrammaticEventLegacyAlias", "quickStart", "registerPartner", "generateSandboxEvent", "resetSandbox", "createSandboxScreen", "getSandboxStatus", "listScreenGroups", "createScreenGroup", "deleteScreenGroup", "getScreenGroup", "updateScreenGroup", "getScreenGroupAnalytics", "createScreenGroupCommand", "getScreenGroupContentPolicy", "updateScreenGroupContentPolicy", "removeScreenGroupMembers", "listScreenGroupMembers", "addScreenGroupMembers", "getScreenGroupSensingConfig", "updateScreenGroupSensingConfig", "getGroupReactiveSettings", "updateGroupReactiveSettings", "getScreenAudienceSegments", "batchUpdateContentPreferences", "batchUpdateDisplaySettings", "batchUpdateProgrammaticSettings", "resolvePartnerScreen", "getScreenAnalytics", "getPartnerScreenAtmosphere", "getPartnerScreenIntelligence", "getPartnerScreenTasteProfile", "getPartnerScreenTraffic", "getPartnerScreenVAS", "applyContentPreset", "getAudienceMetrics", "getContentPreferences", "patchContentPreferences", "updateContentPreferences", "listPartnerDefaultStreams", "createPartnerDefaultStream", "createPartnerDefaultStreamImages", "reorderPartnerDefaultStreams", "createPartnerDefaultStreamUpload", "deletePartnerDefaultStream", "updatePartnerDefaultStream", "getScreenDemographics", "getDisplaySettings", "patchDisplaySettings", "updateDisplaySettings", "getPartnerLBarSettings", "updatePartnerLBarSettings", "updatePartnerLBarLiveUpdates", "getProgrammaticSettings", "patchProgrammaticSettings", "updateProgrammaticSettings", "getResolvedContentPolicy", "getResolvedSensingConfig", "getScreenSensingChips", "interpretScreenSensingIntent", "deployScreenSensingProfile", "getScreenSensingSettings", "updateScreenSensingSettings", "getScreenReactiveSettings", "updateScreenReactiveSettings", "listPartnerSensingRoutes", "createPartnerSensingRoute", "deletePartnerSensingRoute", "getPartnerSensingRoute", "updatePartnerSensingRoute", "createStripeConnectAccount", "getStripeLoginLink", "getStripeOnboardingLink", "requestStripePayout", "getStripePayoutHistory", "getStripeAccountStatus", "handleStripeWebhook", "listTeamMembers", "acceptInvitation", "inviteTeamMember", "getInvitationByToken", "resendInvitation", "removeTeamMember", "changeTeamMemberRole", "getTrackingPublicKey", "recordTrackingBatch", "getUsageSummary", "getUsageDashboard", "getRateLimitStatus", "getVastConfig", "getVenuesNearby", "getVenueAtmosphere", "getVenueTraffic", "getVenueIntelligence", "listWebhooks", "createWebhook", "deleteWebhook", "updateWebhook", "getWebhookDeliveries", "testWebhook", "playgroundDryRun", "getRequestMetadata"]
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
// src/advertiser-buying.ts
|
|
251
|
+
var ADVERTISER_BUYING_RESOURCE = "https://api.trillboards.com/openrtb/v2/buying";
|
|
252
|
+
var AdvertiserBuyingClient = class {
|
|
253
|
+
constructor(options) {
|
|
254
|
+
if (!options?.oauth || typeof options.oauth.accessToken !== "string" || !options.oauth.accessToken.trim())
|
|
255
|
+
throw new Error("AdvertiserBuyingClient requires an OAuth accessToken.");
|
|
256
|
+
if (options.oauth.resource !== ADVERTISER_BUYING_RESOURCE)
|
|
257
|
+
throw new Error("AdvertiserBuyingClient requires the exact advertiser buying OAuth resource.");
|
|
258
|
+
this.authorization = "Bearer " + options.oauth.accessToken.trim();
|
|
259
|
+
this.http = new HttpClient({ baseUrl: (options.baseUrl ?? "https://api.trillboards.com").replace(/\/+$/, ""), version: options.version });
|
|
260
|
+
}
|
|
261
|
+
target(id) {
|
|
262
|
+
if (typeof id !== "string" || !id.trim()) throw new Error("An original campaign ID is required.");
|
|
263
|
+
return encodeURIComponent(id);
|
|
264
|
+
}
|
|
265
|
+
call(name, id, body, query, options) {
|
|
266
|
+
const route = advertiserBuyingRoutes[name];
|
|
267
|
+
const requestBody = body === void 0 ? void 0 : JSON.parse(JSON.stringify(body));
|
|
268
|
+
const path2 = id === void 0 ? route.path : route.path.replace("{advertisementId}", this.target(id));
|
|
269
|
+
const headers = { ...options?.headers };
|
|
270
|
+
for (const [header, value] of Object.entries(headers)) {
|
|
271
|
+
if (header.toLowerCase() === "authorization") {
|
|
272
|
+
if (value !== this.authorization) throw new Error("Buyer OAuth Authorization cannot use a different credential.");
|
|
273
|
+
delete headers[header];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
headers.Authorization = this.authorization;
|
|
277
|
+
if (route.requiresIdempotencyKey) {
|
|
278
|
+
const key = options?.idempotencyKey;
|
|
279
|
+
if (typeof key !== "string" || !key.trim() || key.trim().length > 200) throw new Error("A caller idempotencyKey is required for this action.");
|
|
280
|
+
const original = key.trim();
|
|
281
|
+
for (const [header, value] of Object.entries(headers)) if (header.toLowerCase() === "idempotency-key") {
|
|
282
|
+
if (value !== original) throw new Error("Idempotency header conflicts with the original action key.");
|
|
283
|
+
delete headers[header];
|
|
284
|
+
}
|
|
285
|
+
if (requestBody && typeof requestBody === "object" && "idempotency_key" in requestBody && requestBody.idempotency_key !== original)
|
|
286
|
+
throw new Error("Idempotency body conflicts with the original action key.");
|
|
287
|
+
headers["Idempotency-Key"] = original;
|
|
288
|
+
}
|
|
289
|
+
const request = () => this.http.request(route.method, path2, { body: requestBody, params: query, headers });
|
|
290
|
+
return route.requiresIdempotencyKey ? retryWithBackoff(request, options?.retry) : request();
|
|
291
|
+
}
|
|
292
|
+
searchInventory(input) {
|
|
293
|
+
return this.call("buyingSearchInventory", void 0, input);
|
|
294
|
+
}
|
|
295
|
+
previewPlan(input) {
|
|
296
|
+
return this.call("buyingPreviewPlan", void 0, input);
|
|
297
|
+
}
|
|
298
|
+
saveCampaign(input, options) {
|
|
299
|
+
return this.call("buyingSaveCampaign", void 0, input, void 0, options);
|
|
300
|
+
}
|
|
301
|
+
attachCreative(id, input, options) {
|
|
302
|
+
return this.call("buyingAttachCreative", id, input, void 0, options);
|
|
303
|
+
}
|
|
304
|
+
prepareBooking(id, input = {}) {
|
|
305
|
+
return this.call("buyingPrepareBooking", id, input);
|
|
306
|
+
}
|
|
307
|
+
createCheckout(id, input, options) {
|
|
308
|
+
return this.call("buyingCreateCheckout", id, input, void 0, options);
|
|
309
|
+
}
|
|
310
|
+
getCampaign(id) {
|
|
311
|
+
return this.call("buyingGetCampaign", id);
|
|
312
|
+
}
|
|
313
|
+
getDelivery(id, query = {}) {
|
|
314
|
+
return this.call("buyingGetDelivery", id, void 0, query);
|
|
315
|
+
}
|
|
316
|
+
rebookCampaign(id, input, options) {
|
|
317
|
+
return this.call("buyingRebookCampaign", id, input, void 0, options);
|
|
318
|
+
}
|
|
319
|
+
stopCampaign(id, options) {
|
|
320
|
+
return this.call("buyingStopCampaign", id, {}, void 0, options);
|
|
321
|
+
}
|
|
322
|
+
amendFlight(id, input, options) {
|
|
323
|
+
return this.call("buyingAmendFlight", id, input, void 0, options);
|
|
324
|
+
}
|
|
325
|
+
updateMetadata(id, input, options) {
|
|
326
|
+
return this.call("buyingUpdateMetadata", id, input, void 0, options);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
|
|
238
330
|
// src/resources/screens.ts
|
|
239
331
|
var ScreensClient = class {
|
|
240
332
|
constructor(http) {
|
|
@@ -1099,15 +1191,9 @@ var Webhooks = {
|
|
|
1099
1191
|
verifyAdcpWebhook
|
|
1100
1192
|
};
|
|
1101
1193
|
|
|
1102
|
-
// src/generated/index.ts
|
|
1103
|
-
var generatedTypes = {
|
|
1104
|
-
schemaCount: 340,
|
|
1105
|
-
operationCount: 314,
|
|
1106
|
-
schemas: ["Ad", "AdSettings", "AdvertisingIdentity", "AnalyticsData", "AudienceAnalyticsResponse", "AudienceAttentionPrediction", "AudienceData", "AudienceExportResponse", "AudienceLoyaltyFeaturesRow", "AudienceMetricsResponse", "AudienceSegment", "AudienceSocialAttention", "BatchResult", "BillingInfo", "BleScanResultData", "CanonicalError", "ChangelogEntry", "ChangelogResponse", "CompletedImpressions", "ContentFitSettings", "ContentPreferencesInput", "ContentPreferencesResponse", "ContentPreset", "CreatePartnerSensingRouteRequest", "CreativeClassification", "CreativeRewardsReadyEvent", "DashboardResponse", "DataApi_AdSightingRecord", "DataApi_AdSightingsHistoryResponse", "DataApi_AdSightingsResponse", "DataApi_AggregateResponse", "DataApi_CreativeBrandHistoryRow", "DataApi_DataDelivery_ad_delivery_hourly", "DataApi_DataDelivery_attention_ledger", "DataApi_DataDelivery_auction_results", "DataApi_DataDelivery_audience_composition_weekly", "DataApi_DataDelivery_audience_metrics", "DataApi_DataDelivery_board_creative_sighting", "DataApi_DataDelivery_board_currency_multiweek", "DataApi_DataDelivery_board_flow_hourly", "DataApi_DataDelivery_board_pass_daily", "DataApi_DataDelivery_camera_frame_corpus", "DataApi_DataDelivery_camera_video_corpus", "DataApi_DataDelivery_completed_impressions", "DataApi_DataDelivery_creative_flights", "DataApi_DataDelivery_cross_screen_edges_daily", "DataApi_DataDelivery_curated_inventory_packages", "DataApi_DataDelivery_device_exposure_hourly", "DataApi_DataDelivery_device_exposure_windows", "DataApi_DataDelivery_dim_screen", "DataApi_DataDelivery_event_tracking", "DataApi_DataDelivery_geohash_activity_hourly", "DataApi_DataDelivery_impression_events", "DataApi_DataDelivery_inference_outcomes", "DataApi_DataDelivery_ip_geo_observations", "DataApi_DataDelivery_mobility_flows_daily", "DataApi_DataDelivery_observation_demographics", "DataApi_DataDelivery_omsdk_sessions", "DataApi_DataDelivery_panel_segment_cells", "DataApi_DataDelivery_place_activity_hourly", "DataApi_DataDelivery_play_audience", "DataApi_DataDelivery_play_audience_window", "DataApi_DataDelivery_play_device_exposure", "DataApi_DataDelivery_proximity_graph_edges_hourly", "DataApi_DataDelivery_public_attention_city_venue_hourly", "DataApi_DataDelivery_ride_places", "DataApi_DataDelivery_screen_hourly_presence", "DataApi_DataDelivery_screen_panel_monthly", "DataApi_DataDelivery_sighted_creatives", "DataApi_DataDelivery_vast_requests", "DataApi_DataProducts_AudienceRow", "DataApi_DataProducts_AuthError", "DataApi_DataProducts_Benchmark", "DataApi_DataProducts_BoardAudience", "DataApi_DataProducts_BoardAudienceResponse", "DataApi_DataProducts_BoardCurrency", "DataApi_DataProducts_BoardCurrencyResponse", "DataApi_DataProducts_BoardLookedShare", "DataApi_DataProducts_BoardLookedShareResponse", "DataApi_DataProducts_BoardPointCollection", "DataApi_DataProducts_BoardPointMeta", "DataApi_DataProducts_BoardPointProperties", "DataApi_DataProducts_BoardTiles", "DataApi_DataProducts_BoardTilesResponse", "DataApi_DataProducts_BrandMarket", "DataApi_DataProducts_BrandSearch", "DataApi_DataProducts_BrandSearchResponse", "DataApi_DataProducts_Calibration", "DataApi_DataProducts_CalibrationCell", "DataApi_DataProducts_CalibrationResponse", "DataApi_DataProducts_CalibrationVersion", "DataApi_DataProducts_CalibrationVersions", "DataApi_DataProducts_CalibrationVersionsResponse", "DataApi_DataProducts_CurationSet", "DataApi_DataProducts_CurationSetList", "DataApi_DataProducts_CurationSetListResponse", "DataApi_DataProducts_CurrencyAbsent", "DataApi_DataProducts_CurrencyBoard", "DataApi_DataProducts_CurrencyCell", "DataApi_DataProducts_DeliveryReport", "DataApi_DataProducts_DeliveryReportResponse", "DataApi_DataProducts_DmaFormatIndex", "DataApi_DataProducts_DmaFormatIndexResponse", "DataApi_DataProducts_DmaFormatIndexRow", "DataApi_DataProducts_FacingVerdict", "DataApi_DataProducts_FeedPublication", "DataApi_DataProducts_GeohashTileCollection", "DataApi_DataProducts_GeohashTileMeta", "DataApi_DataProducts_GeohashTileProperties", "DataApi_DataProducts_Geometry", "DataApi_DataProducts_LookedShareRow", "DataApi_DataProducts_MeasurementError", "DataApi_DataProducts_Method", "DataApi_DataProducts_MetricAnswer", "DataApi_DataProducts_MetricAnswerResponse", "DataApi_DataProducts_MetricBoardMeasuredImpressionsPerSpotResponse", "DataApi_DataProducts_MetricBoardPassAudienceResponse", "DataApi_DataProducts_MetricCameraDwellCappedMsResponse", "DataApi_DataProducts_MetricCameraGazePctResponse", "DataApi_DataProducts_MetricCameraHeadPoseIndexResponse", "DataApi_DataProducts_MetricCameraPeoplePerScreenHourResponse", "DataApi_DataProducts_MetricCatalog", "DataApi_DataProducts_MetricCatalogEntry", "DataApi_DataProducts_MetricCatalogResponse", "DataApi_DataProducts_MetricCreativeBrandHistoryResponse", "DataApi_DataProducts_MetricCreativeShareOfVoiceResponse", "DataApi_DataProducts_MetricCreativeSightingsResponse", "DataApi_DataProducts_MetricCreativeStreetPresenceResponse", "DataApi_DataProducts_MetricCreativeVacancyRateResponse", "DataApi_DataProducts_MetricDemographicShareResponse", "DataApi_DataProducts_MetricMeasure", "DataApi_DataProducts_MetricRadioIdentifiersPerPersonResponse", "DataApi_DataProducts_MetricSamePanelIndexResponse", "DataApi_DataProducts_MetricSeatbeltComplianceResponse", "DataApi_DataProducts_MetricSeatbeltUnbuckledRideRateResponse", "DataApi_DataProducts_MetricSensingCensusResponse", "DataApi_DataProducts_MultiplierFeed", "DataApi_DataProducts_MultiplierFeedResponse", "DataApi_DataProducts_OccluderCollection", "DataApi_DataProducts_OccluderMeta", "DataApi_DataProducts_OccluderProperties", "DataApi_DataProducts_OwnerFace", "DataApi_DataProducts_OwnerFaceDetail", "DataApi_DataProducts_OwnerFaceResponse", "DataApi_DataProducts_OwnerFaces", "DataApi_DataProducts_OwnerFacesResponse", "DataApi_DataProducts_OwnerUploadResponse", "DataApi_DataProducts_PassReplay", "DataApi_DataProducts_PassReplayResponse", "DataApi_DataProducts_Release", "DataApi_DataProducts_ReleaseRegistry", "DataApi_DataProducts_ReleaseRegistryResponse", "DataApi_DataProducts_ReplayPass", "DataApi_DataProducts_RoadCollection", "DataApi_DataProducts_RoadProperties", "DataApi_DataProducts_SetCoverage", "DataApi_DataProducts_SetCoverageEnvelope", "DataApi_DataProducts_SetCoverageResponse", "DataApi_DataProducts_SightedBrand", "DataApi_DataProducts_TileSum", "DataApi_DataProducts_ViewshedCollection", "DataApi_DataProducts_ViewshedMeta", "DataApi_DataProducts_ViewshedProperties", "DataApi_DataProducts_Watermark", "DataApi_DataProducts_Window", "DataApi_DataProducts_YieldReport", "DataApi_DataProducts_YieldReportResponse", "DataApi_Error", "DataApi_ErrorCode", "DataApi_FeedbackRewardQuery", "DataApi_LookalikeResponse", "DataApi_QueryDslBody", "DataApi_QueryDslResponse", "DataApi_QueryFilter", "DataApi_QueryOrderBy", "DataApi_ScreenAudienceResponse", "DataApi_ScreenHistoryResponse", "DataApi_ScreensListResponse", "DataApi_SemanticSearchResponse", "DataApi_StatsResponse", "DataApi_StreamResponse", "DataApi_UsageResponse", "DataExportSummaryResponse", "DataLicencePeriod", "DataLicenceStatus", "DemandPartners", "DemographicsResponse", "Device", "DeviceAuthRefusal", "DeviceCapabilityPayload", "DeviceSummary", "DiscoveryConfigPatch", "DisplaySettingsInput", "DisplaySettingsResponse", "EarnerScreens", "EarningsBreakdownResponse", "EarningsData", "EarningsResponse", "EarningsSources", "Error", "ErrorCode", "ErrorCodeResponse", "ErrorEntry", "ErrorEnvelope", "ErrorListItem", "ErrorListResponse", "ErrorType", "ExtendedIdentity", "FeedbackBrand", "FeedbackBrandRequest", "FeedbackBrandResponse", "FeedbackCreateRequest", "FeedbackCreativeReview", "FeedbackExperiment", "FeedbackExperimentDetail", "FeedbackExperimentDetailResponse", "FeedbackExperimentResponse", "FeedbackGenerateRequest", "FeedbackGenerateResponse", "FeedbackGeneratedCreative", "FeedbackImportRequest", "FeedbackPolicyRequest", "FeedbackRecoveredCreative", "FeedbackRegisterVariantsRequest", "FeedbackReviewRequest", "FeedbackReviewResponse", "FeedbackRewardQuery", "FeedbackRewardRow", "FeedbackRewards", "FeedbackRewardsResponse", "FeedbackStopRequest", "FeedbackVariant", "FleetCommand", "FleetCommandEvent", "GroupSensingConfigPatch", "HeaderBiddingSettings", "HttpProbeResult", "HybridError", "Impression", "LegacyCodedError", "LegacyError", "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", "MdnsNetworkDevice", "MeasurementMethodology", "OpenrtbRevenueScreenHourly", "OwnedReactiveBrand", "OwnedReactiveImport", "Pagination", "Partner", "PartnerAdDeliveryProfile", "PartnerCreativeWarnings", "PartnerDefaultStream", "PartnerDefaultStreamCreate", "PartnerDefaultStreamUpdate", "PartnerDeviceBatchRegistrationInput", "PartnerDeviceHeartbeatBody", "PartnerDevicePlay", "PartnerDeviceRegistrationInput", "PartnerHeartbeatCommand", "PartnerHeartbeatData", "PartnerHeartbeatMeasurementMetadata", "PartnerHeartbeatQueryData", "PartnerHeartbeatQueryResponse", "PartnerHeartbeatRequest", "PartnerHeartbeatResponse", "PartnerHeartbeatTelemetry", "PartnerInteraction", "PartnerLBarContent", "PartnerLBarDisplayPreferences", "PartnerLBarSettings", "PartnerLocationCapability", "PartnerLocationRail", "PartnerMonetizationRequirements", "PartnerNetworkConfig", "PartnerNetworkConfigUpdate", "PartnerPlay", "PartnerReconciliationReports", "PartnerRegistrationDisplaySettings", "PartnerRequirement", "PartnerSafeHeartbeatTelemetry", "PartnerSelfPromoAd", "PartnerSelfPromoCreate", "PartnerSelfPromoPlacement", "PartnerStats", "PartnerTripState", "PartnerVariants", "PartnerZoneCpmDaily", "PayoutResponse", "PlaygroundResult", "PlaygroundValidationError", "ProgrammaticSettingsInput", "ProgrammaticSettingsResponse", "ReactiveCampaign", "ReactiveCampaignPatch", "ReactiveRule", "ReactiveSettings", "ReactiveSettingsPatch", "RequestMetadataResponse", "ResolvedContentPolicy", "ResolvedSensingConfig", "RolePermissions", "SDKConfig", "Screen", "ScreenAnalyticsResponse", "ScreenGroup", "ScreenGroupContentPolicy", "ScreenGroupContentPolicyInput", "ScreenGroupEvent", "ScreenGroupSensingConfig", "ScreenGroupSensingConfigInput", "SensingPerformanceMode", "SensingRoute", "SensingRouteAction", "SensingRouteCondition", "SensingRouteReviewTimingMode", "SensingRouteReviewWaitSeconds", "SensingRouteScreenFocusRegion", "SensingSettingsResponse", "SensingThresholdCrossedEvent", "SsdpDeviceInfo", "TeamInviteResponse", "TeamMember", "Transaction", "TrillboardsError", "UpdatePartnerSensingRouteRequest", "VastWaterfall", "VastWaterfallSource", "Webhook", "WebhookDelivery", "WebhookEvent", "WifiEnvironmentSnapshot", "WifiScanResult"],
|
|
1107
|
-
operations: ["getAdSightingFrame", "getAdSightingPhoto", "listAdSightingsInPortal", "listAdSightingHistoryInPortal", "listMeasuredBoards", "getMeasuredBoardAudience", "getMeasuredBoardCurrency", "getMeasuredBoardLookedShare", "getMeasuredBoardOccluders", "getMeasuredBoardPassReplay", "getMeasuredBoardTiles", "getMeasuredBoardViewshed", "searchSightedBrands", "getMeasurementCalibration", "listMeasurementCalibrationVersions", "listCurationSets", "getCurationSetCoverage", "getCurationSetRoads", "getCurationSetViewsheds", "getMeasuredMultiplierFeed", "getMeasuredDmaFormatIndex", "listApprovedMetrics", "getMetricBoardMeasuredImpressionsPerSpot", "getMetricBoardPassAudience", "getMetricCameraDwellCappedMs", "getMetricCameraGazePct", "getMetricCameraHeadPoseIndex", "getMetricCameraPeoplePerScreenHour", "getMetricCreativeBrandHistory", "getMetricCreativeShareOfVoice", "getMetricCreativeSightings", "getMetricCreativeStreetPresence", "getMetricCreativeVacancyRate", "getMetricDemographicShare", "getMetricRadioIdentifiersPerPerson", "getMetricSamePanelIndex", "getMetricSeatbeltCompliance", "getMetricSeatbeltUnbuckledRideRate", "getMetricSensingCensus", "getApprovedMetric", "listMeasurementReleases", "listMeasuredRoads", "listMeasuredGeohashTiles", "queryChangelog", "dataApiAdSightings", "dataApiAdSightingsHistory", "dataApiAggregate", "dataApiLookalikeScreens", "dataApiQueryDsl", "dataApiListScreens", "dataApiScreenAudienceLive", "dataApiScreenAudienceHistory", "dataApiSemanticSearch", "dataApiStats", "dataApiStream", "dataApiUsage", "listErrorCodes", "getErrorCode", "getOwnerBoardAudience", "getOwnerBoardCurrency", "getOwnerDeliveryReport", "getOwnerBoardLookedShare", "getOwnerBoardTiles", "getOwnerBoardViewshed", "listOwnerFaces", "getOwnerFace", "getOwnerMultiplierFeed", "uploadOwnerPlayLogs", "getOwnerPublisherYieldByQuery", "getOwnerPublisherYield", "listOwnerMeasurementReleases", "uploadOwnerFaceSpecs", "listPartnerSelfPromoAds", "createPartnerSelfPromoAd", "listPartnerSelfPromoPlacements", "schedulePartnerSelfPromo", "createPartnerSelfPromoUpload", "disableSelfPromoAd", "getOwnedReactiveCampaign", "updateOwnedReactiveCampaign", "getOwnedReactiveBrand", "setOwnedReactiveBrand", "listOwnedReactiveCreatives", "generateOwnedReactiveCreative", "importOwnedReactiveCreative", "reviewOwnedReactiveCreative", "registerAgent", "getAnalytics", "getAudienceContinuity", "getAudienceProfile", "getBleSummary", "getContentPerformance", "searchCreativeCatalog", "getCreativeObservations", "getCreativeScenes", "getCrossScreenFlow", "getPartnerAnalyticsDashboard", "getDeviceSuiteSignature", "exportPartnerAnalytics", "exportPartnerAdsByDay", "getFleetHourly", "getHaloFunnel", "getLoyaltyClock", "getNetworkSummary", "getNetworkTrend", "getProximitySummary", "getRevenueAttentionCorrelation", "getSceneFeed", "getSceneIntelligence", "rotateApiKey", "getAudienceAnalytics", "exportAudienceData", "getAudienceHeatmap", "getLiveAudience", "getLookalikeScreens", "predictScreenAudience", "getResolvedHouseholdReach", "listAudienceSegments", "createAudienceSegment", "deleteAudienceSegment", "getAudienceSegment", "updateAudienceSegment", "matchAudienceSegment", "estimateSegmentReach", "generateSegmentVastTag", "getAudienceStats", "cancelBillingSubscription", "purchaseCredits", "createCreditCheckout", "getDataLicenceStatus", "cancelDataLicenceRenewal", "createDataLicenceSetupSession", "completeDataLicenceSetup", "listBillingPlans", "setupBilling", "createBillingSubscription", "getBillingSubscription", "getBillingUsage", "getBillingUsageSummary", "stripeWebhookCallback", "getConnectDashboard", "getConnectEarningsChart", "getConnectScreenHealth", "listContentPresets", "getContentPreset", "createCreativeFeedbackExperiment", "getCreativeFeedbackExperiment", "configureCreativeFeedbackBrand", "generateCreativeFeedbackCreative", "importCreativeFeedbackCreative", "reviewCreativeFeedbackCreative", "updateCreativeFeedbackPolicy", "getCreativeFeedbackRewards", "stopCreativeFeedbackExperiment", "registerCreativeFeedbackVariants", "submitPartnerCreative", "getPartnerCreative", "getDashboard", "exportProximityGraphEdges", "getDataExportSummary", "exportDataset", "getGeohashAudiencePanel", "getOutcomeAttribution", "registerDevice", "deleteDevice", "getDevice", "updateDevice", "getAdsForDevice", "ackDeviceCommand", "getDeviceHeartbeat", "heartbeat", "updateDeviceImpressionMultiplier", "recordPartnerDeviceInteraction", "recordPartnerDevicePlay", "recordProgrammaticEvent", "recordPartnerDeviceTripState", "getVastForDevice", "listDevices", "registerDeviceV2", "registerDevicesBatch", "batchUpdateDeviceOrientation", "reconcileDevices", "partnerDocsBrowser", "getEarnings", "getEarningsBreakdown", "requestPayout", "getTransactions", "getActiveSSEConnections", "subscribeToEvents", "getFleetCommand", "getFleetAnalytics", "pushFleetCommand", "getFleetOverview", "updateFleetSettings", "recordImpressionGet", "recordImpressionPost", "recordImpressionsBatch", "getPartnerInfo", "listIntentCategories", "getIntentCategory", "getIntentPricing", "getMeasurementMethodology", "getMeasurementMethodologyJson", "getNetworkConfig", "patchNetworkConfig", "updateNetworkConfig", "getNetworkTrends", "partnerPing", "partnerPingAuth", "recordPartnerPlay", "recordPartnerPlaysBatch", "getPricing", "recordProgrammaticEventLegacyAlias", "quickStart", "registerPartner", "generateSandboxEvent", "resetSandbox", "createSandboxScreen", "getSandboxStatus", "listScreenGroups", "createScreenGroup", "deleteScreenGroup", "getScreenGroup", "updateScreenGroup", "getScreenGroupAnalytics", "createScreenGroupCommand", "getScreenGroupContentPolicy", "updateScreenGroupContentPolicy", "removeScreenGroupMembers", "listScreenGroupMembers", "addScreenGroupMembers", "getScreenGroupSensingConfig", "updateScreenGroupSensingConfig", "getGroupReactiveSettings", "updateGroupReactiveSettings", "getScreenAudienceSegments", "batchUpdateContentPreferences", "batchUpdateDisplaySettings", "batchUpdateProgrammaticSettings", "resolvePartnerScreen", "getScreenAnalytics", "getPartnerScreenAtmosphere", "getPartnerScreenIntelligence", "getPartnerScreenTasteProfile", "getPartnerScreenTraffic", "getPartnerScreenVAS", "applyContentPreset", "getAudienceMetrics", "getContentPreferences", "patchContentPreferences", "updateContentPreferences", "listPartnerDefaultStreams", "createPartnerDefaultStream", "createPartnerDefaultStreamImages", "reorderPartnerDefaultStreams", "createPartnerDefaultStreamUpload", "deletePartnerDefaultStream", "updatePartnerDefaultStream", "getScreenDemographics", "getDisplaySettings", "patchDisplaySettings", "updateDisplaySettings", "getPartnerLBarSettings", "updatePartnerLBarSettings", "updatePartnerLBarLiveUpdates", "getProgrammaticSettings", "patchProgrammaticSettings", "updateProgrammaticSettings", "getResolvedContentPolicy", "getResolvedSensingConfig", "getScreenSensingChips", "interpretScreenSensingIntent", "deployScreenSensingProfile", "getScreenSensingSettings", "updateScreenSensingSettings", "getScreenReactiveSettings", "updateScreenReactiveSettings", "listPartnerSensingRoutes", "createPartnerSensingRoute", "deletePartnerSensingRoute", "getPartnerSensingRoute", "updatePartnerSensingRoute", "createStripeConnectAccount", "getStripeLoginLink", "getStripeOnboardingLink", "requestStripePayout", "getStripePayoutHistory", "getStripeAccountStatus", "handleStripeWebhook", "listTeamMembers", "acceptInvitation", "inviteTeamMember", "getInvitationByToken", "resendInvitation", "removeTeamMember", "changeTeamMemberRole", "getTrackingPublicKey", "recordTrackingBatch", "getUsageSummary", "getUsageDashboard", "getRateLimitStatus", "getVastConfig", "getVenuesNearby", "getVenueAtmosphere", "getVenueTraffic", "getVenueIntelligence", "listWebhooks", "createWebhook", "deleteWebhook", "updateWebhook", "getWebhookDeliveries", "testWebhook", "playgroundDryRun", "getRequestMetadata"]
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
1194
|
exports.ADCP_WEBHOOK_SIGNING_TAG = ADCP_WEBHOOK_SIGNING_TAG;
|
|
1195
|
+
exports.ADVERTISER_BUYING_RESOURCE = ADVERTISER_BUYING_RESOURCE;
|
|
1196
|
+
exports.AdvertiserBuyingClient = AdvertiserBuyingClient;
|
|
1111
1197
|
exports.AnalyticsClient = AnalyticsClient;
|
|
1112
1198
|
exports.AudienceClient = AudienceClient;
|
|
1113
1199
|
exports.BillingClient = BillingClient;
|