@adcp/client 0.2.0
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/LICENSE +21 -0
- package/README.md +166 -0
- package/dist/lib/agents/index.generated.d.ts +147 -0
- package/dist/lib/agents/index.generated.d.ts.map +1 -0
- package/dist/lib/agents/index.generated.js +218 -0
- package/dist/lib/agents/index.generated.js.map +1 -0
- package/dist/lib/auth/index.d.ts +22 -0
- package/dist/lib/auth/index.d.ts.map +1 -0
- package/dist/lib/auth/index.js +73 -0
- package/dist/lib/auth/index.js.map +1 -0
- package/dist/lib/core/ADCPClient.d.ts +233 -0
- package/dist/lib/core/ADCPClient.d.ts.map +1 -0
- package/dist/lib/core/ADCPClient.js +287 -0
- package/dist/lib/core/ADCPClient.js.map +1 -0
- package/dist/lib/core/ADCPMultiAgentClient.d.ts +308 -0
- package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -0
- package/dist/lib/core/ADCPMultiAgentClient.js +468 -0
- package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -0
- package/dist/lib/core/AgentClient.d.ts +124 -0
- package/dist/lib/core/AgentClient.d.ts.map +1 -0
- package/dist/lib/core/AgentClient.js +242 -0
- package/dist/lib/core/AgentClient.js.map +1 -0
- package/dist/lib/core/ConfigurationManager.d.ts +79 -0
- package/dist/lib/core/ConfigurationManager.d.ts.map +1 -0
- package/dist/lib/core/ConfigurationManager.js +254 -0
- package/dist/lib/core/ConfigurationManager.js.map +1 -0
- package/dist/lib/core/ConversationTypes.d.ts +242 -0
- package/dist/lib/core/ConversationTypes.d.ts.map +1 -0
- package/dist/lib/core/ConversationTypes.js +5 -0
- package/dist/lib/core/ConversationTypes.js.map +1 -0
- package/dist/lib/core/ProtocolResponseParser.d.ts +45 -0
- package/dist/lib/core/ProtocolResponseParser.d.ts.map +1 -0
- package/dist/lib/core/ProtocolResponseParser.js +82 -0
- package/dist/lib/core/ProtocolResponseParser.js.map +1 -0
- package/dist/lib/core/TaskExecutor.d.ts +108 -0
- package/dist/lib/core/TaskExecutor.d.ts.map +1 -0
- package/dist/lib/core/TaskExecutor.js +422 -0
- package/dist/lib/core/TaskExecutor.js.map +1 -0
- package/dist/lib/errors/index.d.ts +125 -0
- package/dist/lib/errors/index.d.ts.map +1 -0
- package/dist/lib/errors/index.js +211 -0
- package/dist/lib/errors/index.js.map +1 -0
- package/dist/lib/handlers/types.d.ts +119 -0
- package/dist/lib/handlers/types.d.ts.map +1 -0
- package/dist/lib/handlers/types.js +239 -0
- package/dist/lib/handlers/types.js.map +1 -0
- package/dist/lib/index.d.ts +51 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +122 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/protocols/a2a.d.ts +2 -0
- package/dist/lib/protocols/a2a.d.ts.map +1 -0
- package/dist/lib/protocols/a2a.js +70 -0
- package/dist/lib/protocols/a2a.js.map +1 -0
- package/dist/lib/protocols/index.d.ts +22 -0
- package/dist/lib/protocols/index.d.ts.map +1 -0
- package/dist/lib/protocols/index.js +47 -0
- package/dist/lib/protocols/index.js.map +1 -0
- package/dist/lib/protocols/mcp.d.ts +2 -0
- package/dist/lib/protocols/mcp.d.ts.map +1 -0
- package/dist/lib/protocols/mcp.js +127 -0
- package/dist/lib/protocols/mcp.js.map +1 -0
- package/dist/lib/storage/MemoryStorage.d.ts +93 -0
- package/dist/lib/storage/MemoryStorage.d.ts.map +1 -0
- package/dist/lib/storage/MemoryStorage.js +219 -0
- package/dist/lib/storage/MemoryStorage.js.map +1 -0
- package/dist/lib/storage/interfaces.d.ts +195 -0
- package/dist/lib/storage/interfaces.d.ts.map +1 -0
- package/dist/lib/storage/interfaces.js +5 -0
- package/dist/lib/storage/interfaces.js.map +1 -0
- package/dist/lib/types/adcp.d.ts +407 -0
- package/dist/lib/types/adcp.d.ts.map +1 -0
- package/dist/lib/types/adcp.js +5 -0
- package/dist/lib/types/adcp.js.map +1 -0
- package/dist/lib/types/core.generated.d.ts +469 -0
- package/dist/lib/types/core.generated.d.ts.map +1 -0
- package/dist/lib/types/core.generated.js +5 -0
- package/dist/lib/types/core.generated.js.map +1 -0
- package/dist/lib/types/index.d.ts +3 -0
- package/dist/lib/types/index.d.ts.map +1 -0
- package/dist/lib/types/index.js +19 -0
- package/dist/lib/types/index.js.map +1 -0
- package/dist/lib/types/tools.generated.d.ts +1674 -0
- package/dist/lib/types/tools.generated.d.ts.map +1 -0
- package/dist/lib/types/tools.generated.js +8 -0
- package/dist/lib/types/tools.generated.js.map +1 -0
- package/dist/lib/utils/index.d.ts +25 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/index.js +109 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/dist/lib/validation/index.d.ts +29 -0
- package/dist/lib/validation/index.d.ts.map +1 -0
- package/dist/lib/validation/index.js +186 -0
- package/dist/lib/validation/index.js.map +1 -0
- package/dist/lib/version.d.ts +22 -0
- package/dist/lib/version.d.ts.map +1 -0
- package/dist/lib/version.js +32 -0
- package/dist/lib/version.js.map +1 -0
- package/package.json +108 -0
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status of a media buy
|
|
3
|
+
*/
|
|
4
|
+
export type MediaBuyStatus = 'pending_activation' | 'active' | 'paused' | 'completed';
|
|
5
|
+
/**
|
|
6
|
+
* Budget pacing strategy
|
|
7
|
+
*/
|
|
8
|
+
export type Pacing = 'even' | 'asap' | 'front_loaded';
|
|
9
|
+
/**
|
|
10
|
+
* Status of a package
|
|
11
|
+
*/
|
|
12
|
+
export type PackageStatus = 'draft' | 'active' | 'paused' | 'completed';
|
|
13
|
+
/**
|
|
14
|
+
* Represents a purchased advertising campaign
|
|
15
|
+
*/
|
|
16
|
+
export interface MediaBuy {
|
|
17
|
+
/**
|
|
18
|
+
* Publisher's unique identifier for the media buy
|
|
19
|
+
*/
|
|
20
|
+
media_buy_id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Buyer's reference identifier for this media buy
|
|
23
|
+
*/
|
|
24
|
+
buyer_ref?: string;
|
|
25
|
+
status: MediaBuyStatus;
|
|
26
|
+
/**
|
|
27
|
+
* Description of advertiser and what is being promoted
|
|
28
|
+
*/
|
|
29
|
+
promoted_offering: string;
|
|
30
|
+
/**
|
|
31
|
+
* Total budget amount
|
|
32
|
+
*/
|
|
33
|
+
total_budget: number;
|
|
34
|
+
/**
|
|
35
|
+
* Array of packages within this media buy
|
|
36
|
+
*/
|
|
37
|
+
packages: Package[];
|
|
38
|
+
/**
|
|
39
|
+
* ISO 8601 timestamp for creative upload deadline
|
|
40
|
+
*/
|
|
41
|
+
creative_deadline?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Creation timestamp
|
|
44
|
+
*/
|
|
45
|
+
created_at?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Last update timestamp
|
|
48
|
+
*/
|
|
49
|
+
updated_at?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A specific product within a media buy (line item)
|
|
53
|
+
*/
|
|
54
|
+
export interface Package {
|
|
55
|
+
/**
|
|
56
|
+
* Publisher's unique identifier for the package
|
|
57
|
+
*/
|
|
58
|
+
package_id: string;
|
|
59
|
+
/**
|
|
60
|
+
* Buyer's reference identifier for this package
|
|
61
|
+
*/
|
|
62
|
+
buyer_ref?: string;
|
|
63
|
+
/**
|
|
64
|
+
* ID of the product this package is based on
|
|
65
|
+
*/
|
|
66
|
+
product_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Array of product IDs to include in this package
|
|
69
|
+
*/
|
|
70
|
+
products?: string[];
|
|
71
|
+
budget?: Budget;
|
|
72
|
+
/**
|
|
73
|
+
* Impression goal for this package
|
|
74
|
+
*/
|
|
75
|
+
impressions?: number;
|
|
76
|
+
targeting_overlay?: Targeting;
|
|
77
|
+
/**
|
|
78
|
+
* Creative assets assigned to this package
|
|
79
|
+
*/
|
|
80
|
+
creative_assignments?: CreativeAssignment[];
|
|
81
|
+
/**
|
|
82
|
+
* Format IDs that creative assets will be provided for this package
|
|
83
|
+
*/
|
|
84
|
+
formats_to_provide?: string[];
|
|
85
|
+
status: PackageStatus;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Budget configuration for a media buy or package
|
|
89
|
+
*/
|
|
90
|
+
export interface Budget {
|
|
91
|
+
/**
|
|
92
|
+
* Total budget amount
|
|
93
|
+
*/
|
|
94
|
+
total: number;
|
|
95
|
+
/**
|
|
96
|
+
* ISO 4217 currency code
|
|
97
|
+
*/
|
|
98
|
+
currency: string;
|
|
99
|
+
pacing?: Pacing;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Audience targeting criteria
|
|
103
|
+
*/
|
|
104
|
+
export interface Targeting {
|
|
105
|
+
/**
|
|
106
|
+
* Target specific countries (ISO codes)
|
|
107
|
+
*/
|
|
108
|
+
geo_country_any_of?: string[];
|
|
109
|
+
/**
|
|
110
|
+
* Target specific regions/states
|
|
111
|
+
*/
|
|
112
|
+
geo_region_any_of?: string[];
|
|
113
|
+
/**
|
|
114
|
+
* Target specific metro areas (DMA codes)
|
|
115
|
+
*/
|
|
116
|
+
geo_metro_any_of?: string[];
|
|
117
|
+
/**
|
|
118
|
+
* Target specific postal/ZIP codes
|
|
119
|
+
*/
|
|
120
|
+
geo_postal_code_any_of?: string[];
|
|
121
|
+
/**
|
|
122
|
+
* Audience segment IDs to target
|
|
123
|
+
*/
|
|
124
|
+
audience_segment_any_of?: string[];
|
|
125
|
+
/**
|
|
126
|
+
* AXE segment ID to include for targeting
|
|
127
|
+
*/
|
|
128
|
+
axe_include_segment?: string;
|
|
129
|
+
/**
|
|
130
|
+
* AXE segment ID to exclude from targeting
|
|
131
|
+
*/
|
|
132
|
+
axe_exclude_segment?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Signal IDs from get_signals
|
|
135
|
+
*/
|
|
136
|
+
signals?: string[];
|
|
137
|
+
/**
|
|
138
|
+
* Target specific device types
|
|
139
|
+
*/
|
|
140
|
+
device_type_any_of?: ('desktop' | 'mobile' | 'tablet' | 'connected_tv' | 'smart_speaker')[];
|
|
141
|
+
/**
|
|
142
|
+
* Target specific operating systems
|
|
143
|
+
*/
|
|
144
|
+
os_any_of?: ('windows' | 'macos' | 'ios' | 'android' | 'linux' | 'roku' | 'tvos' | 'other')[];
|
|
145
|
+
/**
|
|
146
|
+
* Target specific browsers
|
|
147
|
+
*/
|
|
148
|
+
browser_any_of?: ('chrome' | 'firefox' | 'safari' | 'edge' | 'other')[];
|
|
149
|
+
frequency_cap?: FrequencyCap;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Frequency capping settings for package-level application
|
|
153
|
+
*/
|
|
154
|
+
export interface FrequencyCap {
|
|
155
|
+
/**
|
|
156
|
+
* Minutes to suppress after impression
|
|
157
|
+
*/
|
|
158
|
+
suppress_minutes: number;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Assignment of a creative asset to a package
|
|
162
|
+
*/
|
|
163
|
+
export interface CreativeAssignment {
|
|
164
|
+
/**
|
|
165
|
+
* Unique identifier for the creative
|
|
166
|
+
*/
|
|
167
|
+
creative_id: string;
|
|
168
|
+
/**
|
|
169
|
+
* Delivery weight for this creative
|
|
170
|
+
*/
|
|
171
|
+
weight?: number;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Creative asset for upload to library - supports both hosted assets and third-party snippets
|
|
175
|
+
*/
|
|
176
|
+
export type CreativeAsset = CreativeAsset1 & CreativeAsset2;
|
|
177
|
+
/**
|
|
178
|
+
* Type of snippet content
|
|
179
|
+
*/
|
|
180
|
+
export type SnippetType = 'vast_xml' | 'vast_url' | 'html' | 'javascript' | 'iframe' | 'daast_url';
|
|
181
|
+
/**
|
|
182
|
+
* Sub-asset for multi-asset creative formats, including carousel images and native ad template variables
|
|
183
|
+
*/
|
|
184
|
+
export type SubAsset = SubAsset1 & SubAsset2;
|
|
185
|
+
export type SubAsset2 = {
|
|
186
|
+
[k: string]: unknown;
|
|
187
|
+
} | {
|
|
188
|
+
[k: string]: unknown;
|
|
189
|
+
};
|
|
190
|
+
export type CreativeAsset2 = {
|
|
191
|
+
[k: string]: unknown;
|
|
192
|
+
};
|
|
193
|
+
export interface CreativeAsset1 {
|
|
194
|
+
/**
|
|
195
|
+
* Unique identifier for the creative
|
|
196
|
+
*/
|
|
197
|
+
creative_id: string;
|
|
198
|
+
/**
|
|
199
|
+
* Human-readable creative name
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
/**
|
|
203
|
+
* Creative format type (e.g., video, audio, display)
|
|
204
|
+
*/
|
|
205
|
+
format: string;
|
|
206
|
+
/**
|
|
207
|
+
* URL of the creative file (for hosted assets)
|
|
208
|
+
*/
|
|
209
|
+
media_url?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Third-party tag, VAST XML, or code snippet (for third-party served assets)
|
|
212
|
+
*/
|
|
213
|
+
snippet?: string;
|
|
214
|
+
snippet_type?: SnippetType;
|
|
215
|
+
/**
|
|
216
|
+
* Landing page URL for the creative
|
|
217
|
+
*/
|
|
218
|
+
click_url?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Duration in milliseconds (for video/audio)
|
|
221
|
+
*/
|
|
222
|
+
duration?: number;
|
|
223
|
+
/**
|
|
224
|
+
* Width in pixels (for video/display)
|
|
225
|
+
*/
|
|
226
|
+
width?: number;
|
|
227
|
+
/**
|
|
228
|
+
* Height in pixels (for video/display)
|
|
229
|
+
*/
|
|
230
|
+
height?: number;
|
|
231
|
+
/**
|
|
232
|
+
* User-defined tags for organization and searchability
|
|
233
|
+
*/
|
|
234
|
+
tags?: string[];
|
|
235
|
+
/**
|
|
236
|
+
* Sub-assets for multi-asset formats like carousels
|
|
237
|
+
*/
|
|
238
|
+
assets?: SubAsset[];
|
|
239
|
+
}
|
|
240
|
+
export interface SubAsset1 {
|
|
241
|
+
/**
|
|
242
|
+
* Type of asset. Common types: headline, body_text, thumbnail_image, product_image, featured_image, logo, cta_text, price_text, sponsor_name, author_name, click_url
|
|
243
|
+
*/
|
|
244
|
+
asset_type?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Unique identifier for the asset within the creative
|
|
247
|
+
*/
|
|
248
|
+
asset_id?: string;
|
|
249
|
+
/**
|
|
250
|
+
* URL for media assets (images, videos, etc.)
|
|
251
|
+
*/
|
|
252
|
+
content_uri?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Text content for text-based assets like headlines, body text, CTA text, etc.
|
|
255
|
+
*/
|
|
256
|
+
content?: string | string[];
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Represents available advertising inventory
|
|
260
|
+
*/
|
|
261
|
+
export type Product = Product1 & Product2;
|
|
262
|
+
/**
|
|
263
|
+
* Type of identifier for this property
|
|
264
|
+
*/
|
|
265
|
+
export type PropertyIdentifierTypes = 'domain' | 'subdomain' | 'network_id' | 'ios_bundle' | 'android_package' | 'apple_app_store_id' | 'google_play_id' | 'roku_store_id' | 'fire_tv_asin' | 'samsung_app_id' | 'apple_tv_bundle' | 'bundle_id' | 'venue_id' | 'screen_id' | 'openooh_venue_type' | 'rss_url' | 'apple_podcast_id' | 'spotify_show_id' | 'podcast_guid';
|
|
266
|
+
/**
|
|
267
|
+
* Type of inventory delivery
|
|
268
|
+
*/
|
|
269
|
+
export type DeliveryType = 'guaranteed' | 'non_guaranteed';
|
|
270
|
+
export type Product2 = {
|
|
271
|
+
[k: string]: unknown;
|
|
272
|
+
};
|
|
273
|
+
export interface Product1 {
|
|
274
|
+
/**
|
|
275
|
+
* Unique identifier for the product
|
|
276
|
+
*/
|
|
277
|
+
product_id: string;
|
|
278
|
+
/**
|
|
279
|
+
* Human-readable product name
|
|
280
|
+
*/
|
|
281
|
+
name: string;
|
|
282
|
+
/**
|
|
283
|
+
* Detailed description of the product and its inventory
|
|
284
|
+
*/
|
|
285
|
+
description: string;
|
|
286
|
+
/**
|
|
287
|
+
* Array of advertising properties covered by this product for adagents.json validation
|
|
288
|
+
*
|
|
289
|
+
* @minItems 1
|
|
290
|
+
*/
|
|
291
|
+
properties?: [Property, ...Property[]];
|
|
292
|
+
/**
|
|
293
|
+
* Tags identifying groups of properties covered by this product (use list_authorized_properties to get full property details)
|
|
294
|
+
*
|
|
295
|
+
* @minItems 1
|
|
296
|
+
*/
|
|
297
|
+
property_tags?: [string, ...string[]];
|
|
298
|
+
/**
|
|
299
|
+
* Array of supported creative format IDs - use list_creative_formats to get full format details
|
|
300
|
+
*/
|
|
301
|
+
format_ids: string[];
|
|
302
|
+
delivery_type: DeliveryType;
|
|
303
|
+
/**
|
|
304
|
+
* Whether this product has fixed pricing (true) or uses auction (false)
|
|
305
|
+
*/
|
|
306
|
+
is_fixed_price: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Cost per thousand impressions in USD
|
|
309
|
+
*/
|
|
310
|
+
cpm?: number;
|
|
311
|
+
/**
|
|
312
|
+
* Minimum budget requirement in USD
|
|
313
|
+
*/
|
|
314
|
+
min_spend?: number;
|
|
315
|
+
measurement?: Measurement;
|
|
316
|
+
creative_policy?: CreativePolicy;
|
|
317
|
+
/**
|
|
318
|
+
* Whether this is a custom product
|
|
319
|
+
*/
|
|
320
|
+
is_custom?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Explanation of why this product matches the brief (only included when brief is provided)
|
|
323
|
+
*/
|
|
324
|
+
brief_relevance?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Expiration timestamp for custom products
|
|
327
|
+
*/
|
|
328
|
+
expires_at?: string;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* An advertising property that can be validated via adagents.json
|
|
332
|
+
*/
|
|
333
|
+
export interface Property {
|
|
334
|
+
/**
|
|
335
|
+
* Type of advertising property
|
|
336
|
+
*/
|
|
337
|
+
property_type: 'website' | 'mobile_app' | 'ctv_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio';
|
|
338
|
+
/**
|
|
339
|
+
* Human-readable property name
|
|
340
|
+
*/
|
|
341
|
+
name: string;
|
|
342
|
+
/**
|
|
343
|
+
* Array of identifiers for this property
|
|
344
|
+
*
|
|
345
|
+
* @minItems 1
|
|
346
|
+
*/
|
|
347
|
+
identifiers: [
|
|
348
|
+
{
|
|
349
|
+
type: PropertyIdentifierTypes;
|
|
350
|
+
/**
|
|
351
|
+
* The identifier value. For domain type: 'example.com' matches www.example.com and m.example.com only; 'subdomain.example.com' matches that specific subdomain; '*.example.com' matches all subdomains
|
|
352
|
+
*/
|
|
353
|
+
value: string;
|
|
354
|
+
},
|
|
355
|
+
...{
|
|
356
|
+
type: PropertyIdentifierTypes;
|
|
357
|
+
/**
|
|
358
|
+
* The identifier value. For domain type: 'example.com' matches www.example.com and m.example.com only; 'subdomain.example.com' matches that specific subdomain; '*.example.com' matches all subdomains
|
|
359
|
+
*/
|
|
360
|
+
value: string;
|
|
361
|
+
}[]
|
|
362
|
+
];
|
|
363
|
+
/**
|
|
364
|
+
* Tags for categorization and grouping (e.g., network membership, content categories)
|
|
365
|
+
*/
|
|
366
|
+
tags?: string[];
|
|
367
|
+
/**
|
|
368
|
+
* Domain where adagents.json should be checked for authorization validation
|
|
369
|
+
*/
|
|
370
|
+
publisher_domain: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Measurement capabilities included with a product
|
|
374
|
+
*/
|
|
375
|
+
export interface Measurement {
|
|
376
|
+
/**
|
|
377
|
+
* Type of measurement
|
|
378
|
+
*/
|
|
379
|
+
type: string;
|
|
380
|
+
/**
|
|
381
|
+
* Attribution methodology
|
|
382
|
+
*/
|
|
383
|
+
attribution: string;
|
|
384
|
+
/**
|
|
385
|
+
* Attribution window
|
|
386
|
+
*/
|
|
387
|
+
window?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Reporting frequency and format
|
|
390
|
+
*/
|
|
391
|
+
reporting: string;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Creative requirements and restrictions for a product
|
|
395
|
+
*/
|
|
396
|
+
export interface CreativePolicy {
|
|
397
|
+
/**
|
|
398
|
+
* Co-branding requirement
|
|
399
|
+
*/
|
|
400
|
+
co_branding: 'required' | 'optional' | 'none';
|
|
401
|
+
/**
|
|
402
|
+
* Landing page requirements
|
|
403
|
+
*/
|
|
404
|
+
landing_page: 'any' | 'retailer_site_only' | 'must_include_retailer';
|
|
405
|
+
/**
|
|
406
|
+
* Whether creative templates are provided
|
|
407
|
+
*/
|
|
408
|
+
templates_available: boolean;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Audience targeting criteria
|
|
412
|
+
*/
|
|
413
|
+
export interface Targeting {
|
|
414
|
+
/**
|
|
415
|
+
* Target specific countries (ISO codes)
|
|
416
|
+
*/
|
|
417
|
+
geo_country_any_of?: string[];
|
|
418
|
+
/**
|
|
419
|
+
* Target specific regions/states
|
|
420
|
+
*/
|
|
421
|
+
geo_region_any_of?: string[];
|
|
422
|
+
/**
|
|
423
|
+
* Target specific metro areas (DMA codes)
|
|
424
|
+
*/
|
|
425
|
+
geo_metro_any_of?: string[];
|
|
426
|
+
/**
|
|
427
|
+
* Target specific postal/ZIP codes
|
|
428
|
+
*/
|
|
429
|
+
geo_postal_code_any_of?: string[];
|
|
430
|
+
/**
|
|
431
|
+
* Audience segment IDs to target
|
|
432
|
+
*/
|
|
433
|
+
audience_segment_any_of?: string[];
|
|
434
|
+
/**
|
|
435
|
+
* AXE segment ID to include for targeting
|
|
436
|
+
*/
|
|
437
|
+
axe_include_segment?: string;
|
|
438
|
+
/**
|
|
439
|
+
* AXE segment ID to exclude from targeting
|
|
440
|
+
*/
|
|
441
|
+
axe_exclude_segment?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Signal IDs from get_signals
|
|
444
|
+
*/
|
|
445
|
+
signals?: string[];
|
|
446
|
+
/**
|
|
447
|
+
* Target specific device types
|
|
448
|
+
*/
|
|
449
|
+
device_type_any_of?: ('desktop' | 'mobile' | 'tablet' | 'connected_tv' | 'smart_speaker')[];
|
|
450
|
+
/**
|
|
451
|
+
* Target specific operating systems
|
|
452
|
+
*/
|
|
453
|
+
os_any_of?: ('windows' | 'macos' | 'ios' | 'android' | 'linux' | 'roku' | 'tvos' | 'other')[];
|
|
454
|
+
/**
|
|
455
|
+
* Target specific browsers
|
|
456
|
+
*/
|
|
457
|
+
browser_any_of?: ('chrome' | 'firefox' | 'safari' | 'edge' | 'other')[];
|
|
458
|
+
frequency_cap?: FrequencyCap;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Frequency capping settings for package-level application
|
|
462
|
+
*/
|
|
463
|
+
export interface FrequencyCap {
|
|
464
|
+
/**
|
|
465
|
+
* Minutes to suppress after impression
|
|
466
|
+
*/
|
|
467
|
+
suppress_minutes: number;
|
|
468
|
+
}
|
|
469
|
+
//# sourceMappingURL=core.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.generated.d.ts","sourceRoot":"","sources":["../../../src/lib/types/core.generated.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AACtF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;AACtD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC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AG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IAC9F;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IACxE,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.generated.js","sourceRoot":"","sources":["../../../src/lib/types/core.generated.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,yCAAyC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './adcp';
|
|
2
|
+
export type { AgentConfig, TestResult, TestRequest, ApiResponse, CreativeAsset, CreativeFormat, AdvertisingProduct, MediaBuy, Targeting, ManageCreativeAssetsRequest, ManageCreativeAssetsResponse, SyncCreativesRequest, SyncCreativesResponse, ListCreativesRequest, ListCreativesResponse } from './adcp';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/types/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AAGvB,YAAY,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,2BAA2B,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// AdCP Core Types - Main exports for external consumers
|
|
18
|
+
__exportStar(require("./adcp"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAwD;AACxD,yCAAuB"}
|