@adport/provider-spotify 0.8.0 → 0.10.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdProvider, StandardActions, Account, NormalizedQuery, Report, WriteOperation, WriteGuard, WritePreview, WriteResult, AnyToolDefinition, CredentialStore, ProviderModule } from '@adport/core';
1
+ import { MediaResolver, WriteOperation, WriteGuard, WritePreview, ResourceSecretStore, WriteResult, AdProvider, StandardActions, Account, NormalizedQuery, Report, AnyToolDefinition, CredentialStore, ProviderModule } from '@adport/core';
2
2
  import * as node_url from 'node:url';
3
3
  import { z } from 'zod';
4
4
 
@@ -24,17 +24,703 @@ declare class SpotifyAdsClient {
24
24
  private refreshToken;
25
25
  private refreshing?;
26
26
  constructor(credentials: SpotifyCredentials, fetchImpl?: typeof fetch);
27
+ measurementReceipt(value: Record<string, unknown>): string;
28
+ verifyMeasurementReceipt(receipt: string): unknown;
29
+ private measurementReceiptKey;
27
30
  get<T>(path: string, schema: z.ZodType<T>, params?: node_url.URLSearchParams): Promise<T>;
28
- mutate<T>(path: string, method: 'POST' | 'PATCH', body: unknown, schema: z.ZodType<T>): Promise<T>;
31
+ mutate<T>(path: string, method: 'POST' | 'PATCH' | 'DELETE', body: unknown, schema: z.ZodType<T>, params?: node_url.URLSearchParams): Promise<T>;
32
+ upload<T>(path: string, body: FormData, schema: z.ZodType<T>): Promise<T>;
29
33
  private request;
30
34
  private accessToken;
31
35
  private refresh;
32
36
  }
33
37
 
38
+ type Row$1 = Record<string, unknown>;
39
+ type Entity = 'campaigns' | 'ad_sets' | 'ads';
40
+ interface Page {
41
+ account_id: string;
42
+ limit: number;
43
+ offset: number;
44
+ }
45
+ interface Plan$3 extends Omit<WritePreview, 'serverValidated'> {
46
+ execute: () => Promise<string[]>;
47
+ }
48
+ /** Spotify's live v3 OpenAPI is the wire authority, including native draft versions. */
49
+ declare class SpotifyCreativeService {
50
+ private readonly client;
51
+ private readonly media;
52
+ constructor(client: SpotifyAdsClient, media: MediaResolver);
53
+ private base;
54
+ page(input: Page, path: string, key: string, params?: Row$1): Promise<Row$1 & {
55
+ truncated: boolean;
56
+ next_offset?: number;
57
+ }>;
58
+ drafts(input: Page & {
59
+ entity: Entity;
60
+ campaign_ids?: string[];
61
+ ad_set_ids?: string[];
62
+ }): Promise<Row$1 & {
63
+ truncated: boolean;
64
+ next_offset?: number;
65
+ }>;
66
+ get(account: string, entity: Entity, id: string, draft?: boolean): Promise<{
67
+ [x: string]: unknown;
68
+ id: string;
69
+ name?: string | null | undefined;
70
+ ad_account_id?: string | null | undefined;
71
+ campaign_id?: string | undefined;
72
+ ad_set_id?: string | undefined;
73
+ status?: string | null | undefined;
74
+ draft_hierarchy_version?: number | null | undefined;
75
+ }>;
76
+ private getOwned;
77
+ private checkAccount;
78
+ private verifyPublishedCampaign;
79
+ assets(input: Page & {
80
+ asset_types?: string[];
81
+ asset_statuses?: string[];
82
+ name?: string;
83
+ }): Promise<{
84
+ next_offset?: number | undefined;
85
+ creatives: {
86
+ id: string;
87
+ provider: string;
88
+ account_id: string;
89
+ name: string;
90
+ type: string;
91
+ headlines: string[];
92
+ descriptions: string[];
93
+ landing_urls: string[];
94
+ media: {
95
+ type: "image" | "video" | "audio";
96
+ url: string;
97
+ alt?: string | undefined;
98
+ poster_url?: string | undefined;
99
+ open_url?: string | undefined;
100
+ }[];
101
+ actions: {
102
+ label: string;
103
+ tool: string;
104
+ arguments: Record<string, unknown>;
105
+ fields: {
106
+ key: string;
107
+ label: string;
108
+ type: "text" | "text_list" | "url_list" | "select";
109
+ value: string | string[];
110
+ options?: {
111
+ label: string;
112
+ value: string;
113
+ }[] | undefined;
114
+ max_length?: number | undefined;
115
+ }[];
116
+ }[];
117
+ status?: string | undefined;
118
+ campaign_id?: string | undefined;
119
+ ad_group_id?: string | undefined;
120
+ }[];
121
+ truncated: boolean;
122
+ paging: {
123
+ [x: string]: unknown;
124
+ offset: number;
125
+ total_results: number;
126
+ };
127
+ assets: {
128
+ [x: string]: unknown;
129
+ id: string;
130
+ name: string;
131
+ asset_type: "AUDIO" | "IMAGE" | "VIDEO";
132
+ status: string;
133
+ url?: string | undefined;
134
+ }[];
135
+ }>;
136
+ asset(account: string, id: string): Promise<{
137
+ [x: string]: unknown;
138
+ id: string;
139
+ name: string;
140
+ asset_type: "AUDIO" | "IMAGE" | "VIDEO";
141
+ status: string;
142
+ url?: string | undefined;
143
+ }>;
144
+ ads(input: Page & {
145
+ draft: boolean;
146
+ ad_set_ids?: string[];
147
+ }): Promise<{
148
+ creatives: {
149
+ id: string;
150
+ provider: string;
151
+ account_id: string;
152
+ name: string;
153
+ type: string;
154
+ headlines: string[];
155
+ descriptions: string[];
156
+ landing_urls: string[];
157
+ media: {
158
+ type: "image" | "video" | "audio";
159
+ url: string;
160
+ alt?: string | undefined;
161
+ poster_url?: string | undefined;
162
+ open_url?: string | undefined;
163
+ }[];
164
+ actions: {
165
+ label: string;
166
+ tool: string;
167
+ arguments: Record<string, unknown>;
168
+ fields: {
169
+ key: string;
170
+ label: string;
171
+ type: "text" | "text_list" | "url_list" | "select";
172
+ value: string | string[];
173
+ options?: {
174
+ label: string;
175
+ value: string;
176
+ }[] | undefined;
177
+ max_length?: number | undefined;
178
+ }[];
179
+ }[];
180
+ status?: string | undefined;
181
+ campaign_id?: string | undefined;
182
+ ad_group_id?: string | undefined;
183
+ }[];
184
+ truncated: boolean;
185
+ next_offset?: number;
186
+ }>;
187
+ read(account: string, path: string, params?: Row$1): Promise<Record<string, unknown>>;
188
+ targeting(input: {
189
+ account_id: string;
190
+ kind: string;
191
+ } & Row$1): Promise<Record<string, unknown>>;
192
+ categories(q?: string): Promise<Record<string, unknown>>;
193
+ estimate(kind: 'audience' | 'bid', input: {
194
+ account_id: string;
195
+ } & Row$1): Promise<Record<string, unknown>>;
196
+ validate(account: string, id: string, version: number): Promise<Record<string, unknown>>;
197
+ private version;
198
+ private allDrafts;
199
+ plan(op: WriteOperation, guard: WriteGuard): Promise<Plan$3>;
200
+ private verifyAssets;
201
+ private ensureNoAdDrafts;
202
+ private publish;
203
+ private upload;
204
+ }
205
+
206
+ type Row = Record<string, unknown>;
207
+ interface Plan$2 extends Omit<WritePreview, 'serverValidated'> {
208
+ execute: () => Promise<string[]>;
209
+ }
210
+ declare class SpotifyManagementService {
211
+ private readonly client;
212
+ private readonly creatives;
213
+ constructor(client: SpotifyAdsClient, creatives: SpotifyCreativeService);
214
+ private base;
215
+ read(input: {
216
+ account_id: string;
217
+ } & Row, path: string): Promise<Record<string, unknown>>;
218
+ audiences(input: {
219
+ account_id: string;
220
+ limit: number;
221
+ offset: number;
222
+ } & Row): Promise<{
223
+ [x: string]: unknown;
224
+ } & {
225
+ truncated: boolean;
226
+ next_offset?: number;
227
+ }>;
228
+ insights(input: {
229
+ account_id: string;
230
+ ad_set_id: string;
231
+ } & Row): Promise<Record<string, unknown>>;
232
+ audience(account: string, id: string): Promise<{
233
+ [x: string]: unknown;
234
+ id: string;
235
+ type: "CUSTOM" | "LOOKALIKE";
236
+ name: string;
237
+ }>;
238
+ eligibleDatasets(input: {
239
+ account_id: string;
240
+ limit: number;
241
+ q?: string;
242
+ }): Promise<{
243
+ truncated: boolean;
244
+ datasets: {
245
+ [x: string]: unknown;
246
+ id: string;
247
+ }[];
248
+ paging?: {
249
+ [x: string]: unknown;
250
+ total_results: number;
251
+ offset: number;
252
+ } | undefined;
253
+ }>;
254
+ plan(op: WriteOperation): Promise<Plan$2>;
255
+ }
256
+
257
+ interface AuthorizedCapiCredentialScope {
258
+ account_id: string;
259
+ business_id: string;
260
+ dataset_id: string;
261
+ capi_connection_id: string;
262
+ configuration_hash: string;
263
+ dataset_configuration_hash: string;
264
+ }
265
+ interface Plan$1 extends Omit<WritePreview, 'serverValidated'> {
266
+ execute(): Promise<WriteResult>;
267
+ }
268
+ declare class SpotifyCapiCredentials {
269
+ private readonly client;
270
+ private readonly authorize;
271
+ private readonly secrets?;
272
+ constructor(client: SpotifyAdsClient, authorize: (input: {
273
+ account_id: string;
274
+ dataset_id: string;
275
+ }) => Promise<AuthorizedCapiCredentialScope>, secrets?: ResourceSecretStore | undefined);
276
+ private path;
277
+ private key;
278
+ private metadata;
279
+ private inventoryHash;
280
+ private safe;
281
+ private tokens;
282
+ private vault;
283
+ list(input: {
284
+ account_id: string;
285
+ dataset_id: string;
286
+ }): Promise<{
287
+ credential_inventory_hash: string;
288
+ vault_configured: boolean;
289
+ credentials: {
290
+ stored_in_adport: boolean | null;
291
+ capi_auth_token_id: string;
292
+ created_at: string | null;
293
+ }[];
294
+ notes: string[];
295
+ account_id: string;
296
+ business_id: string;
297
+ dataset_id: string;
298
+ capi_connection_id: string;
299
+ configuration_hash: string;
300
+ dataset_configuration_hash: string;
301
+ }>;
302
+ private uncertain;
303
+ private save;
304
+ plan(op: WriteOperation): Promise<Plan$1>;
305
+ }
306
+
307
+ interface Plan extends Omit<WritePreview, 'serverValidated'> {
308
+ execute(): Promise<WriteResult>;
309
+ }
310
+ /** Current official v3 OpenAPI, fetched 2026-11-05; signed recovery follows approved native creations only. */
311
+ declare class SpotifyMeasurementService {
312
+ private readonly client;
313
+ readonly credentials: SpotifyCapiCredentials;
314
+ constructor(client: SpotifyAdsClient, secrets?: ResourceSecretStore);
315
+ private credentialScope;
316
+ private base;
317
+ private scope;
318
+ private proof;
319
+ private bind;
320
+ private checkProof;
321
+ private rawDataset;
322
+ private rawMobile;
323
+ private rawPixel;
324
+ private rawCapi;
325
+ private datasetContainsResource;
326
+ private verifyIntegrationBinding;
327
+ private receiptNative;
328
+ private createdNative;
329
+ private sharing;
330
+ private publicDataset;
331
+ private publicMobile;
332
+ private selectedDatasets;
333
+ private recoverableDataset;
334
+ private dataset;
335
+ private mobile;
336
+ private exclusive;
337
+ private expected;
338
+ private result;
339
+ private uncertain;
340
+ private review;
341
+ datasets(account: string): Promise<{
342
+ datasets: {
343
+ configuration_hash?: string | undefined;
344
+ shared_ad_accounts: {
345
+ id: string;
346
+ name?: string | null;
347
+ }[] | null | undefined;
348
+ other_shared_account_count: number | null;
349
+ id: string;
350
+ name?: string | null | undefined;
351
+ pixel?: {
352
+ id: string;
353
+ name?: string | null | undefined;
354
+ domain?: string | null | undefined;
355
+ dataset_id?: string | null | undefined;
356
+ integration_id?: string | null | undefined;
357
+ aam_opt_in?: boolean | null | undefined;
358
+ aam_fields?: ("CITY" | "COUNTRY" | "GENDER" | "EMAIL" | "PHONE" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "STATE" | "ZIP" | "EXTERNAL_ID")[] | null | undefined;
359
+ cookie_opt_in?: boolean | null | undefined;
360
+ auto_capture_opt_in?: boolean | null | undefined;
361
+ auto_capture_fields?: string[] | null | undefined;
362
+ events_received?: {
363
+ event_type?: string | null | undefined;
364
+ first_event_time?: string | null | undefined;
365
+ }[] | null | undefined;
366
+ } | null | undefined;
367
+ capi_integration?: {
368
+ capi_connection_id: string;
369
+ name?: string | null | undefined;
370
+ dataset_id?: string | null | undefined;
371
+ integration_id?: string | null | undefined;
372
+ events_received?: {
373
+ event_type?: string | null | undefined;
374
+ first_event_time?: string | null | undefined;
375
+ }[] | null | undefined;
376
+ } | null | undefined;
377
+ ad_set_count?: number | null | undefined;
378
+ is_archived?: boolean | null | undefined;
379
+ is_receiving_events?: boolean | null | undefined;
380
+ is_receiving_lead_events?: boolean | null | undefined;
381
+ }[];
382
+ complete: boolean | null;
383
+ truncated: boolean;
384
+ paging?: {
385
+ offset: number;
386
+ total_results: number;
387
+ page_size?: number | null | undefined;
388
+ } | null | undefined;
389
+ account_id: string;
390
+ business_id: string;
391
+ }>;
392
+ private mobilePage;
393
+ mobileApps(input: {
394
+ account_id: string;
395
+ limit: number;
396
+ offset: number;
397
+ }): Promise<{
398
+ mobile_apps: {
399
+ configuration_hash?: string | undefined;
400
+ shared_ad_accounts: {
401
+ id: string;
402
+ name?: string | null;
403
+ }[] | null | undefined;
404
+ other_shared_account_count: number | null;
405
+ id: string;
406
+ name?: string | null | undefined;
407
+ platform?: string | null | undefined;
408
+ platform_app_id?: string | null | undefined;
409
+ ad_type?: string | null | undefined;
410
+ mobile_measurement_partner?: string | null | undefined;
411
+ dataset_id?: string | null | undefined;
412
+ integration_id?: string | null | undefined;
413
+ ad_set_count?: number | null | undefined;
414
+ is_skad_network?: boolean | null | undefined;
415
+ }[];
416
+ next_offset?: number | undefined;
417
+ truncated: boolean;
418
+ paging: {
419
+ offset: number;
420
+ total_results: number;
421
+ page_size?: number | null | undefined;
422
+ };
423
+ account_id: string;
424
+ business_id: string;
425
+ }>;
426
+ context(account: string): Promise<{
427
+ datasets: {
428
+ configuration_hash?: string | undefined;
429
+ shared_ad_accounts: {
430
+ id: string;
431
+ name?: string | null;
432
+ }[] | null | undefined;
433
+ other_shared_account_count: number | null;
434
+ id: string;
435
+ name?: string | null | undefined;
436
+ pixel?: {
437
+ id: string;
438
+ name?: string | null | undefined;
439
+ domain?: string | null | undefined;
440
+ dataset_id?: string | null | undefined;
441
+ integration_id?: string | null | undefined;
442
+ aam_opt_in?: boolean | null | undefined;
443
+ aam_fields?: ("CITY" | "COUNTRY" | "GENDER" | "EMAIL" | "PHONE" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "STATE" | "ZIP" | "EXTERNAL_ID")[] | null | undefined;
444
+ cookie_opt_in?: boolean | null | undefined;
445
+ auto_capture_opt_in?: boolean | null | undefined;
446
+ auto_capture_fields?: string[] | null | undefined;
447
+ events_received?: {
448
+ event_type?: string | null | undefined;
449
+ first_event_time?: string | null | undefined;
450
+ }[] | null | undefined;
451
+ } | null | undefined;
452
+ capi_integration?: {
453
+ capi_connection_id: string;
454
+ name?: string | null | undefined;
455
+ dataset_id?: string | null | undefined;
456
+ integration_id?: string | null | undefined;
457
+ events_received?: {
458
+ event_type?: string | null | undefined;
459
+ first_event_time?: string | null | undefined;
460
+ }[] | null | undefined;
461
+ } | null | undefined;
462
+ ad_set_count?: number | null | undefined;
463
+ is_archived?: boolean | null | undefined;
464
+ is_receiving_events?: boolean | null | undefined;
465
+ is_receiving_lead_events?: boolean | null | undefined;
466
+ }[];
467
+ notes: string[];
468
+ complete: boolean | null;
469
+ truncated: boolean;
470
+ paging?: {
471
+ offset: number;
472
+ total_results: number;
473
+ page_size?: number | null | undefined;
474
+ } | null | undefined;
475
+ account_id: string;
476
+ business_id: string;
477
+ }>;
478
+ getDataset(input: {
479
+ account_id: string;
480
+ dataset_id: string;
481
+ resource_receipt?: string;
482
+ }): Promise<{
483
+ dataset: {
484
+ configuration_hash?: string | undefined;
485
+ shared_ad_accounts: {
486
+ id: string;
487
+ name?: string | null;
488
+ }[] | null | undefined;
489
+ other_shared_account_count: number | null;
490
+ id: string;
491
+ name?: string | null | undefined;
492
+ pixel?: {
493
+ id: string;
494
+ name?: string | null | undefined;
495
+ domain?: string | null | undefined;
496
+ dataset_id?: string | null | undefined;
497
+ integration_id?: string | null | undefined;
498
+ aam_opt_in?: boolean | null | undefined;
499
+ aam_fields?: ("CITY" | "COUNTRY" | "GENDER" | "EMAIL" | "PHONE" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "STATE" | "ZIP" | "EXTERNAL_ID")[] | null | undefined;
500
+ cookie_opt_in?: boolean | null | undefined;
501
+ auto_capture_opt_in?: boolean | null | undefined;
502
+ auto_capture_fields?: string[] | null | undefined;
503
+ events_received?: {
504
+ event_type?: string | null | undefined;
505
+ first_event_time?: string | null | undefined;
506
+ }[] | null | undefined;
507
+ } | null | undefined;
508
+ capi_integration?: {
509
+ capi_connection_id: string;
510
+ name?: string | null | undefined;
511
+ dataset_id?: string | null | undefined;
512
+ integration_id?: string | null | undefined;
513
+ events_received?: {
514
+ event_type?: string | null | undefined;
515
+ first_event_time?: string | null | undefined;
516
+ }[] | null | undefined;
517
+ } | null | undefined;
518
+ ad_set_count?: number | null | undefined;
519
+ is_archived?: boolean | null | undefined;
520
+ is_receiving_events?: boolean | null | undefined;
521
+ is_receiving_lead_events?: boolean | null | undefined;
522
+ };
523
+ account_id: string;
524
+ business_id: string;
525
+ }>;
526
+ getPixel(input: {
527
+ account_id: string;
528
+ dataset_id: string;
529
+ resource_receipt?: string;
530
+ }): Promise<{
531
+ pixel: {
532
+ configuration_hash: string;
533
+ id: string;
534
+ name?: string | null | undefined;
535
+ domain?: string | null | undefined;
536
+ dataset_id?: string | null | undefined;
537
+ integration_id?: string | null | undefined;
538
+ aam_opt_in?: boolean | null | undefined;
539
+ aam_fields?: ("CITY" | "COUNTRY" | "GENDER" | "EMAIL" | "PHONE" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "STATE" | "ZIP" | "EXTERNAL_ID")[] | null | undefined;
540
+ cookie_opt_in?: boolean | null | undefined;
541
+ auto_capture_opt_in?: boolean | null | undefined;
542
+ auto_capture_fields?: string[] | null | undefined;
543
+ events_received?: {
544
+ event_type?: string | null | undefined;
545
+ first_event_time?: string | null | undefined;
546
+ }[] | null | undefined;
547
+ };
548
+ dataset_binding: {
549
+ observed_dataset_id: string | null;
550
+ verified_dataset_id: string;
551
+ verification_source: string;
552
+ };
553
+ account_id: string;
554
+ business_id: string;
555
+ }>;
556
+ getCapi(input: {
557
+ account_id: string;
558
+ dataset_id: string;
559
+ resource_receipt?: string;
560
+ }): Promise<{
561
+ capi_integration: {
562
+ configuration_hash: string;
563
+ capi_connection_id: string;
564
+ name?: string | null | undefined;
565
+ dataset_id?: string | null | undefined;
566
+ integration_id?: string | null | undefined;
567
+ events_received?: {
568
+ event_type?: string | null | undefined;
569
+ first_event_time?: string | null | undefined;
570
+ }[] | null | undefined;
571
+ };
572
+ dataset_binding: {
573
+ observed_dataset_id: string | null;
574
+ verified_dataset_id: string;
575
+ verification_source: string;
576
+ };
577
+ account_id: string;
578
+ business_id: string;
579
+ }>;
580
+ getMobile(input: {
581
+ account_id: string;
582
+ mobile_app_id: string;
583
+ resource_receipt?: string;
584
+ }): Promise<{
585
+ mobile_app: {
586
+ configuration_hash?: string | undefined;
587
+ shared_ad_accounts: {
588
+ id: string;
589
+ name?: string | null;
590
+ }[] | null | undefined;
591
+ other_shared_account_count: number | null;
592
+ id: string;
593
+ name?: string | null | undefined;
594
+ platform?: string | null | undefined;
595
+ platform_app_id?: string | null | undefined;
596
+ ad_type?: string | null | undefined;
597
+ mobile_measurement_partner?: string | null | undefined;
598
+ dataset_id?: string | null | undefined;
599
+ integration_id?: string | null | undefined;
600
+ ad_set_count?: number | null | undefined;
601
+ is_skad_network?: boolean | null | undefined;
602
+ };
603
+ account_id: string;
604
+ business_id: string;
605
+ }>;
606
+ diagnostics(input: {
607
+ account_id: string;
608
+ dataset_id: string;
609
+ granularities: Array<'DAILY' | 'HOURLY'>;
610
+ datasource_ids?: string[];
611
+ resource_receipt?: string;
612
+ }): Promise<{
613
+ notes: string[];
614
+ dataset_id: string;
615
+ datasources: {
616
+ datasource_type: "PIXEL" | "CAPI" | "MOBILE_APP";
617
+ datasource_id: string;
618
+ granularity: "DAILY" | "HOURLY";
619
+ timeseries: {
620
+ total?: number | null | undefined;
621
+ timestamp?: number | null | undefined;
622
+ event_counts?: {
623
+ name: string;
624
+ event_count: number;
625
+ last_activity_ms?: number | null | undefined;
626
+ }[] | null | undefined;
627
+ }[];
628
+ }[];
629
+ account_id: string;
630
+ business_id: string;
631
+ }>;
632
+ created(input: {
633
+ account_id: string;
634
+ resource_receipt: string;
635
+ }): Promise<{
636
+ kind: "pixel" | "capi" | "mobile_app" | "dataset";
637
+ dataset: {
638
+ configuration_hash?: string | undefined;
639
+ shared_ad_accounts: {
640
+ id: string;
641
+ name?: string | null;
642
+ }[] | null | undefined;
643
+ other_shared_account_count: number | null;
644
+ id: string;
645
+ name?: string | null | undefined;
646
+ pixel?: {
647
+ id: string;
648
+ name?: string | null | undefined;
649
+ domain?: string | null | undefined;
650
+ dataset_id?: string | null | undefined;
651
+ integration_id?: string | null | undefined;
652
+ aam_opt_in?: boolean | null | undefined;
653
+ aam_fields?: ("CITY" | "COUNTRY" | "GENDER" | "EMAIL" | "PHONE" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "STATE" | "ZIP" | "EXTERNAL_ID")[] | null | undefined;
654
+ cookie_opt_in?: boolean | null | undefined;
655
+ auto_capture_opt_in?: boolean | null | undefined;
656
+ auto_capture_fields?: string[] | null | undefined;
657
+ events_received?: {
658
+ event_type?: string | null | undefined;
659
+ first_event_time?: string | null | undefined;
660
+ }[] | null | undefined;
661
+ } | null | undefined;
662
+ capi_integration?: {
663
+ capi_connection_id: string;
664
+ name?: string | null | undefined;
665
+ dataset_id?: string | null | undefined;
666
+ integration_id?: string | null | undefined;
667
+ events_received?: {
668
+ event_type?: string | null | undefined;
669
+ first_event_time?: string | null | undefined;
670
+ }[] | null | undefined;
671
+ } | null | undefined;
672
+ ad_set_count?: number | null | undefined;
673
+ is_archived?: boolean | null | undefined;
674
+ is_receiving_events?: boolean | null | undefined;
675
+ is_receiving_lead_events?: boolean | null | undefined;
676
+ } | null;
677
+ dataset_binding: {
678
+ parent_verification_error?: {
679
+ code: string;
680
+ http_status?: number;
681
+ } | undefined;
682
+ expected_dataset_id: string | null;
683
+ observed_dataset_id: string | null;
684
+ matches_receipt: boolean | null;
685
+ verified_dataset_id: string | null;
686
+ verification_source: string | null;
687
+ };
688
+ needs_dataset_sharing: boolean | null;
689
+ resource_receipt: string;
690
+ notes: string[];
691
+ account_id: string;
692
+ business_id: string;
693
+ }>;
694
+ sharingStatus(input: {
695
+ account_id: string;
696
+ resource_receipt: string;
697
+ }): Promise<{
698
+ kind: "pixel" | "capi" | "mobile_app" | "dataset";
699
+ resource_id: string;
700
+ shared_with_selected_account: boolean;
701
+ other_shared_account_count: number;
702
+ notes: string[];
703
+ account_id: string;
704
+ business_id: string;
705
+ }>;
706
+ private shareCreatedDataset;
707
+ private planCreate;
708
+ private planUpdate;
709
+ private planSharing;
710
+ private planDataset;
711
+ private planRemove;
712
+ plan(op: WriteOperation): Promise<Plan>;
713
+ }
714
+
34
715
  declare class SpotifyAdsProvider implements AdProvider {
35
716
  private readonly client;
36
717
  readonly id = "spotify";
37
- constructor(client: SpotifyAdsClient);
718
+ readonly creatives: SpotifyCreativeService;
719
+ readonly management: SpotifyManagementService;
720
+ readonly measurement: SpotifyMeasurementService;
721
+ constructor(client: SpotifyAdsClient, media?: MediaResolver, options?: {
722
+ resourceSecrets?: ResourceSecretStore;
723
+ });
38
724
  capabilities(): {
39
725
  serverDryRun: boolean;
40
726
  };