@trillboards/api-client 3.3.10 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- export { advertiserBuyingRoutes, generatedTypes } from './chunk-NDC5JGA5.mjs';
1
+ export { advertiserBuyingRoutes, advertiserRoutes, generatedTypes } from './chunk-LFNHGVB3.mjs';
2
2
  //# sourceMappingURL=generated.mjs.map
3
3
  //# sourceMappingURL=generated.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
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';
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, AdvertiserOperations, advertiserRoutes, 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
 
@@ -50,7 +50,9 @@ interface ClientOptions {
50
50
  version?: string;
51
51
  }
52
52
  interface RequestOptions {
53
- params?: Record<string, unknown>;
53
+ params?: Record<string, unknown> | URLSearchParams;
54
+ /** Decode native report media as text or Blob; ordinary requests remain JSON. */
55
+ responseType?: 'json' | 'auto';
54
56
  body?: unknown;
55
57
  headers?: Record<string, string>;
56
58
  }
@@ -245,9 +247,9 @@ interface BuyerWriteOptions {
245
247
  retry?: RetryOptions;
246
248
  headers?: Record<string, string>;
247
249
  }
248
- type Operation = keyof AdvertiserBuyingOperations;
249
- type Input<K extends Operation> = AdvertiserBuyingOperations[K]['request'];
250
- type Query<K extends Operation> = AdvertiserBuyingOperations[K]['query'];
250
+ type Operation$1 = keyof AdvertiserBuyingOperations;
251
+ type Input<K extends Operation$1> = AdvertiserBuyingOperations[K]['request'];
252
+ type Query<K extends Operation$1> = AdvertiserBuyingOperations[K]['query'];
251
253
  /** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
252
254
  declare class AdvertiserBuyingClient {
253
255
  private readonly http;
@@ -905,6 +907,36 @@ declare class TrillboardsClient {
905
907
  constructor(options: ClientOptions);
906
908
  }
907
909
 
910
+ interface AdvertiserOptions {
911
+ /** The native portal user JWT returned by /v1/user/login. No Partner-key fallback. */
912
+ token?: string;
913
+ baseUrl?: string;
914
+ version?: string;
915
+ }
916
+ type AdvertiserOperationId = keyof AdvertiserOperations;
917
+ type Operation<K extends AdvertiserOperationId> = AdvertiserOperations[K];
918
+ type Part<Name extends string, Value> = {} extends Value ? {
919
+ [P in Name]?: Value;
920
+ } : {
921
+ [P in Name]: Value;
922
+ };
923
+ type Body<K extends AdvertiserOperationId> = Operation<K>['request'] | ((typeof advertiserRoutes)[K]['contentType'] extends 'multipart/form-data' ? FormData : never);
924
+ type AdvertiserRequest<K extends AdvertiserOperationId> = Part<'params', Operation<K>['params']> & Part<'query', Operation<K>['query']> & Part<'headers', NonNullable<Operation<K>['headers']>> & ([Body<K>] extends [never] ? {
925
+ body?: never;
926
+ } : NonNullable<Operation<K>['requestRequired']> extends true ? {
927
+ body: Body<K>;
928
+ } : {
929
+ body?: Body<K>;
930
+ });
931
+ type AdvertiserResponse<K extends AdvertiserOperationId> = Operation<K>['response'];
932
+ /** Typed access to the existing native advertiser and user HTTP routes. */
933
+ declare class AdvertiserClient {
934
+ private readonly http;
935
+ private readonly token?;
936
+ constructor(options?: AdvertiserOptions);
937
+ request<K extends AdvertiserOperationId>(operationId: K, ...args: {} extends AdvertiserRequest<K> ? [input?: AdvertiserRequest<K>] : [input: AdvertiserRequest<K>]): Promise<AdvertiserResponse<K>>;
938
+ }
939
+
908
940
  /**
909
941
  * TrillboardsError — client-side error class that mirrors the server-side
910
942
  * canonical error envelope from utils/apiErrors.ts.
@@ -1158,6 +1190,6 @@ declare const Webhooks: {
1158
1190
  * fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
1159
1191
  * refuse the release.
1160
1192
  */
1161
- declare const VERSION = "3.3.10";
1193
+ declare const VERSION = "3.4.3";
1162
1194
 
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 };
1195
+ export { ADCP_WEBHOOK_SIGNING_TAG, ADVERTISER_BUYING_RESOURCE, type AdcpJwk, AdvertiserBuyingClient, type AdvertiserBuyingOptions, AdvertiserClient, type AdvertiserOperationId, AdvertiserOperations, type AdvertiserOptions, type AdvertiserRequest, type AdvertiserResponse, 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, advertiserRoutes, 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 { 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';
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, AdvertiserOperations, advertiserRoutes, 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
 
@@ -50,7 +50,9 @@ interface ClientOptions {
50
50
  version?: string;
51
51
  }
52
52
  interface RequestOptions {
53
- params?: Record<string, unknown>;
53
+ params?: Record<string, unknown> | URLSearchParams;
54
+ /** Decode native report media as text or Blob; ordinary requests remain JSON. */
55
+ responseType?: 'json' | 'auto';
54
56
  body?: unknown;
55
57
  headers?: Record<string, string>;
56
58
  }
@@ -245,9 +247,9 @@ interface BuyerWriteOptions {
245
247
  retry?: RetryOptions;
246
248
  headers?: Record<string, string>;
247
249
  }
248
- type Operation = keyof AdvertiserBuyingOperations;
249
- type Input<K extends Operation> = AdvertiserBuyingOperations[K]['request'];
250
- type Query<K extends Operation> = AdvertiserBuyingOperations[K]['query'];
250
+ type Operation$1 = keyof AdvertiserBuyingOperations;
251
+ type Input<K extends Operation$1> = AdvertiserBuyingOperations[K]['request'];
252
+ type Query<K extends Operation$1> = AdvertiserBuyingOperations[K]['query'];
251
253
  /** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
252
254
  declare class AdvertiserBuyingClient {
253
255
  private readonly http;
@@ -905,6 +907,36 @@ declare class TrillboardsClient {
905
907
  constructor(options: ClientOptions);
906
908
  }
907
909
 
910
+ interface AdvertiserOptions {
911
+ /** The native portal user JWT returned by /v1/user/login. No Partner-key fallback. */
912
+ token?: string;
913
+ baseUrl?: string;
914
+ version?: string;
915
+ }
916
+ type AdvertiserOperationId = keyof AdvertiserOperations;
917
+ type Operation<K extends AdvertiserOperationId> = AdvertiserOperations[K];
918
+ type Part<Name extends string, Value> = {} extends Value ? {
919
+ [P in Name]?: Value;
920
+ } : {
921
+ [P in Name]: Value;
922
+ };
923
+ type Body<K extends AdvertiserOperationId> = Operation<K>['request'] | ((typeof advertiserRoutes)[K]['contentType'] extends 'multipart/form-data' ? FormData : never);
924
+ type AdvertiserRequest<K extends AdvertiserOperationId> = Part<'params', Operation<K>['params']> & Part<'query', Operation<K>['query']> & Part<'headers', NonNullable<Operation<K>['headers']>> & ([Body<K>] extends [never] ? {
925
+ body?: never;
926
+ } : NonNullable<Operation<K>['requestRequired']> extends true ? {
927
+ body: Body<K>;
928
+ } : {
929
+ body?: Body<K>;
930
+ });
931
+ type AdvertiserResponse<K extends AdvertiserOperationId> = Operation<K>['response'];
932
+ /** Typed access to the existing native advertiser and user HTTP routes. */
933
+ declare class AdvertiserClient {
934
+ private readonly http;
935
+ private readonly token?;
936
+ constructor(options?: AdvertiserOptions);
937
+ request<K extends AdvertiserOperationId>(operationId: K, ...args: {} extends AdvertiserRequest<K> ? [input?: AdvertiserRequest<K>] : [input: AdvertiserRequest<K>]): Promise<AdvertiserResponse<K>>;
938
+ }
939
+
908
940
  /**
909
941
  * TrillboardsError — client-side error class that mirrors the server-side
910
942
  * canonical error envelope from utils/apiErrors.ts.
@@ -1158,6 +1190,6 @@ declare const Webhooks: {
1158
1190
  * fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
1159
1191
  * refuse the release.
1160
1192
  */
1161
- declare const VERSION = "3.3.10";
1193
+ declare const VERSION = "3.4.3";
1162
1194
 
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 };
1195
+ export { ADCP_WEBHOOK_SIGNING_TAG, ADVERTISER_BUYING_RESOURCE, type AdcpJwk, AdvertiserBuyingClient, type AdvertiserBuyingOptions, AdvertiserClient, type AdvertiserOperationId, AdvertiserOperations, type AdvertiserOptions, type AdvertiserRequest, type AdvertiserResponse, 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, advertiserRoutes, constructEvent, constructEventLegacy, createCreditCheckoutOperation, dataApiListScreensOperation, dataApiQueryDslOperation, dataApiScreenAudienceHistoryOperation, dataApiScreenAudienceLiveOperation, dataApiStreamOperation, getBillingUsageSummaryOperation, parseSignatureHeader, purchaseCreditsOperation, retryWithBackoff, setupBillingOperation, verifyAdcpWebhook };