@trillboards/api-client 3.4.13 → 3.5.2
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 +15 -0
- package/dist/{chunk-XNJ4W7N6.mjs → chunk-2NBCWBT2.mjs} +8 -7
- package/dist/chunk-2NBCWBT2.mjs.map +1 -0
- package/dist/generated.d.mts +2441 -111
- package/dist/generated.d.ts +2441 -111
- package/dist/generated.js +6 -4
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.d.mts +38 -12
- package/dist/index.d.ts +38 -12
- package/dist/index.js +30 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-XNJ4W7N6.mjs.map +0 -1
package/dist/generated.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { advertiserBuyingRoutes, advertiserRoutes, generatedTypes } from './chunk-
|
|
1
|
+
export { advertiserBuyingRoutes, advertiserRoutes, dspRoutes, generatedTypes } from './chunk-2NBCWBT2.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, AdvertiserOperations, advertiserRoutes, 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, DspOperations } 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
|
|
|
@@ -247,9 +247,9 @@ interface BuyerWriteOptions {
|
|
|
247
247
|
retry?: RetryOptions;
|
|
248
248
|
headers?: Record<string, string>;
|
|
249
249
|
}
|
|
250
|
-
type Operation$
|
|
251
|
-
type Input<K extends Operation$
|
|
252
|
-
type Query<K extends Operation$
|
|
250
|
+
type Operation$2 = keyof AdvertiserBuyingOperations;
|
|
251
|
+
type Input<K extends Operation$2> = AdvertiserBuyingOperations[K]['request'];
|
|
252
|
+
type Query<K extends Operation$2> = AdvertiserBuyingOperations[K]['query'];
|
|
253
253
|
/** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
|
|
254
254
|
declare class AdvertiserBuyingClient {
|
|
255
255
|
private readonly http;
|
|
@@ -914,21 +914,21 @@ interface AdvertiserOptions {
|
|
|
914
914
|
version?: string;
|
|
915
915
|
}
|
|
916
916
|
type AdvertiserOperationId = keyof AdvertiserOperations;
|
|
917
|
-
type Operation<K extends AdvertiserOperationId> = AdvertiserOperations[K];
|
|
918
|
-
type Part<Name extends string, Value> = {} extends Value ? {
|
|
917
|
+
type Operation$1<K extends AdvertiserOperationId> = AdvertiserOperations[K];
|
|
918
|
+
type Part$1<Name extends string, Value> = {} extends Value ? {
|
|
919
919
|
[P in Name]?: Value;
|
|
920
920
|
} : {
|
|
921
921
|
[P in Name]: Value;
|
|
922
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] ? {
|
|
923
|
+
type Body<K extends AdvertiserOperationId> = Operation$1<K>['request'] | ((typeof advertiserRoutes)[K]['contentType'] extends 'multipart/form-data' ? FormData : never);
|
|
924
|
+
type AdvertiserRequest<K extends AdvertiserOperationId> = Part$1<'params', Operation$1<K>['params']> & Part$1<'query', Operation$1<K>['query']> & Part$1<'headers', NonNullable<Operation$1<K>['headers']>> & ([Body<K>] extends [never] ? {
|
|
925
925
|
body?: never;
|
|
926
|
-
} : NonNullable<Operation<K>['requestRequired']> extends true ? {
|
|
926
|
+
} : NonNullable<Operation$1<K>['requestRequired']> extends true ? {
|
|
927
927
|
body: Body<K>;
|
|
928
928
|
} : {
|
|
929
929
|
body?: Body<K>;
|
|
930
930
|
});
|
|
931
|
-
type AdvertiserResponse<K extends AdvertiserOperationId> = Operation<K>['response'];
|
|
931
|
+
type AdvertiserResponse<K extends AdvertiserOperationId> = Operation$1<K>['response'];
|
|
932
932
|
/** Typed access to the existing native advertiser and user HTTP routes. */
|
|
933
933
|
declare class AdvertiserClient {
|
|
934
934
|
private readonly http;
|
|
@@ -1190,6 +1190,32 @@ declare const Webhooks: {
|
|
|
1190
1190
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1191
1191
|
* refuse the release.
|
|
1192
1192
|
*/
|
|
1193
|
-
declare const VERSION = "3.
|
|
1193
|
+
declare const VERSION = "3.5.2";
|
|
1194
|
+
|
|
1195
|
+
interface DspClientOptions {
|
|
1196
|
+
/** The existing platform API key linked to the DSP seat. Omit only for onboarding. */
|
|
1197
|
+
apiKey?: string;
|
|
1198
|
+
baseUrl?: string;
|
|
1199
|
+
version?: string;
|
|
1200
|
+
}
|
|
1201
|
+
type Operation = keyof DspOperations;
|
|
1202
|
+
type Part<Name extends string, Value> = {} extends Value ? {
|
|
1203
|
+
[P in Name]?: Value;
|
|
1204
|
+
} : {
|
|
1205
|
+
[P in Name]: Value;
|
|
1206
|
+
};
|
|
1207
|
+
type DspInput<K extends Operation> = Part<'params', DspOperations[K]['params']> & Part<'query', DspOperations[K]['query']> & ([DspOperations[K]['request']] extends [never] ? {
|
|
1208
|
+
body?: never;
|
|
1209
|
+
} : NonNullable<DspOperations[K]['requestRequired']> extends true ? {
|
|
1210
|
+
body: DspOperations[K]['request'];
|
|
1211
|
+
} : {
|
|
1212
|
+
body?: DspOperations[K]['request'];
|
|
1213
|
+
});
|
|
1214
|
+
/** Typed transport over the mounted DSP operations; native owners handle each action. */
|
|
1215
|
+
declare class DspClient {
|
|
1216
|
+
private readonly http;
|
|
1217
|
+
constructor(options?: DspClientOptions);
|
|
1218
|
+
execute<K extends Operation>(operation: K, ...args: {} extends DspInput<K> ? [input?: DspInput<K>] : [input: DspInput<K>]): Promise<DspOperations[K]['response']>;
|
|
1219
|
+
}
|
|
1194
1220
|
|
|
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 };
|
|
1221
|
+
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, DspClient, type DspClientOptions, type DspInput, DspOperations, 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, AdvertiserOperations, advertiserRoutes, 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, DspOperations } 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
|
|
|
@@ -247,9 +247,9 @@ interface BuyerWriteOptions {
|
|
|
247
247
|
retry?: RetryOptions;
|
|
248
248
|
headers?: Record<string, string>;
|
|
249
249
|
}
|
|
250
|
-
type Operation$
|
|
251
|
-
type Input<K extends Operation$
|
|
252
|
-
type Query<K extends Operation$
|
|
250
|
+
type Operation$2 = keyof AdvertiserBuyingOperations;
|
|
251
|
+
type Input<K extends Operation$2> = AdvertiserBuyingOperations[K]['request'];
|
|
252
|
+
type Query<K extends Operation$2> = AdvertiserBuyingOperations[K]['query'];
|
|
253
253
|
/** Dedicated buyer OAuth transport over the same mounted advertiser operations. */
|
|
254
254
|
declare class AdvertiserBuyingClient {
|
|
255
255
|
private readonly http;
|
|
@@ -914,21 +914,21 @@ interface AdvertiserOptions {
|
|
|
914
914
|
version?: string;
|
|
915
915
|
}
|
|
916
916
|
type AdvertiserOperationId = keyof AdvertiserOperations;
|
|
917
|
-
type Operation<K extends AdvertiserOperationId> = AdvertiserOperations[K];
|
|
918
|
-
type Part<Name extends string, Value> = {} extends Value ? {
|
|
917
|
+
type Operation$1<K extends AdvertiserOperationId> = AdvertiserOperations[K];
|
|
918
|
+
type Part$1<Name extends string, Value> = {} extends Value ? {
|
|
919
919
|
[P in Name]?: Value;
|
|
920
920
|
} : {
|
|
921
921
|
[P in Name]: Value;
|
|
922
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] ? {
|
|
923
|
+
type Body<K extends AdvertiserOperationId> = Operation$1<K>['request'] | ((typeof advertiserRoutes)[K]['contentType'] extends 'multipart/form-data' ? FormData : never);
|
|
924
|
+
type AdvertiserRequest<K extends AdvertiserOperationId> = Part$1<'params', Operation$1<K>['params']> & Part$1<'query', Operation$1<K>['query']> & Part$1<'headers', NonNullable<Operation$1<K>['headers']>> & ([Body<K>] extends [never] ? {
|
|
925
925
|
body?: never;
|
|
926
|
-
} : NonNullable<Operation<K>['requestRequired']> extends true ? {
|
|
926
|
+
} : NonNullable<Operation$1<K>['requestRequired']> extends true ? {
|
|
927
927
|
body: Body<K>;
|
|
928
928
|
} : {
|
|
929
929
|
body?: Body<K>;
|
|
930
930
|
});
|
|
931
|
-
type AdvertiserResponse<K extends AdvertiserOperationId> = Operation<K>['response'];
|
|
931
|
+
type AdvertiserResponse<K extends AdvertiserOperationId> = Operation$1<K>['response'];
|
|
932
932
|
/** Typed access to the existing native advertiser and user HTTP routes. */
|
|
933
933
|
declare class AdvertiserClient {
|
|
934
934
|
private readonly http;
|
|
@@ -1190,6 +1190,32 @@ declare const Webhooks: {
|
|
|
1190
1190
|
* fails the PR when they differ, and the publish lane's tests (publish-api-client.yml)
|
|
1191
1191
|
* refuse the release.
|
|
1192
1192
|
*/
|
|
1193
|
-
declare const VERSION = "3.
|
|
1193
|
+
declare const VERSION = "3.5.2";
|
|
1194
|
+
|
|
1195
|
+
interface DspClientOptions {
|
|
1196
|
+
/** The existing platform API key linked to the DSP seat. Omit only for onboarding. */
|
|
1197
|
+
apiKey?: string;
|
|
1198
|
+
baseUrl?: string;
|
|
1199
|
+
version?: string;
|
|
1200
|
+
}
|
|
1201
|
+
type Operation = keyof DspOperations;
|
|
1202
|
+
type Part<Name extends string, Value> = {} extends Value ? {
|
|
1203
|
+
[P in Name]?: Value;
|
|
1204
|
+
} : {
|
|
1205
|
+
[P in Name]: Value;
|
|
1206
|
+
};
|
|
1207
|
+
type DspInput<K extends Operation> = Part<'params', DspOperations[K]['params']> & Part<'query', DspOperations[K]['query']> & ([DspOperations[K]['request']] extends [never] ? {
|
|
1208
|
+
body?: never;
|
|
1209
|
+
} : NonNullable<DspOperations[K]['requestRequired']> extends true ? {
|
|
1210
|
+
body: DspOperations[K]['request'];
|
|
1211
|
+
} : {
|
|
1212
|
+
body?: DspOperations[K]['request'];
|
|
1213
|
+
});
|
|
1214
|
+
/** Typed transport over the mounted DSP operations; native owners handle each action. */
|
|
1215
|
+
declare class DspClient {
|
|
1216
|
+
private readonly http;
|
|
1217
|
+
constructor(options?: DspClientOptions);
|
|
1218
|
+
execute<K extends Operation>(operation: K, ...args: {} extends DspInput<K> ? [input?: DspInput<K>] : [input: DspInput<K>]): Promise<DspOperations[K]['response']>;
|
|
1219
|
+
}
|
|
1194
1220
|
|
|
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 };
|
|
1221
|
+
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, DspClient, type DspClientOptions, type DspInput, DspOperations, 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 };
|