@pubnio/sdk 0.1.2 → 0.2.1

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
@@ -335,6 +335,7 @@ export declare const BillingUsageQuery: Schema.Struct<{
335
335
  "linkedin",
336
336
  "pinterest",
337
337
  "reddit",
338
+ "snapchat",
338
339
  "tiktok",
339
340
  "threads",
340
341
  "x",
@@ -367,6 +368,7 @@ export declare const BillingUsage: Schema.Struct<{
367
368
  "linkedin",
368
369
  "pinterest",
369
370
  "reddit",
371
+ "snapchat",
370
372
  "tiktok",
371
373
  "threads",
372
374
  "x",
@@ -1349,6 +1351,7 @@ export declare const PublishAcceptedTarget: Schema.Struct<{
1349
1351
  "linkedin",
1350
1352
  "pinterest",
1351
1353
  "reddit",
1354
+ "snapchat",
1352
1355
  "tiktok",
1353
1356
  "threads",
1354
1357
  "x",
@@ -1402,6 +1405,7 @@ export declare const PublishAccepted: Schema.Struct<{
1402
1405
  "linkedin",
1403
1406
  "pinterest",
1404
1407
  "reddit",
1408
+ "snapchat",
1405
1409
  "tiktok",
1406
1410
  "threads",
1407
1411
  "x",
@@ -1552,6 +1556,7 @@ export declare const PublishStatus: Schema.Struct<{
1552
1556
  "linkedin",
1553
1557
  "pinterest",
1554
1558
  "reddit",
1559
+ "snapchat",
1555
1560
  "tiktok",
1556
1561
  "threads",
1557
1562
  "x",
@@ -1640,6 +1645,7 @@ export declare const PublishWait: Schema.Struct<{
1640
1645
  "linkedin",
1641
1646
  "pinterest",
1642
1647
  "reddit",
1648
+ "snapchat",
1643
1649
  "tiktok",
1644
1650
  "threads",
1645
1651
  "x",
@@ -1747,6 +1753,7 @@ export declare const DeliveryHistory: Schema.Struct<{
1747
1753
  "linkedin",
1748
1754
  "pinterest",
1749
1755
  "reddit",
1756
+ "snapchat",
1750
1757
  "tiktok",
1751
1758
  "threads",
1752
1759
  "x",
@@ -1786,6 +1793,7 @@ declare const Provider: Schema.Literals<readonly [
1786
1793
  "linkedin",
1787
1794
  "pinterest",
1788
1795
  "reddit",
1796
+ "snapchat",
1789
1797
  "tiktok",
1790
1798
  "threads",
1791
1799
  "x",
@@ -1814,6 +1822,7 @@ export declare const AccountCapabilitiesList: Schema.Struct<{
1814
1822
  "linkedin",
1815
1823
  "pinterest",
1816
1824
  "reddit",
1825
+ "snapchat",
1817
1826
  "tiktok",
1818
1827
  "threads",
1819
1828
  "x",
@@ -1826,7 +1835,8 @@ export declare const AccountCapabilitiesList: Schema.Struct<{
1826
1835
  "tiktok_ads",
1827
1836
  "linkedin_ads",
1828
1837
  "snapchat_ads",
1829
- "amazon_ads"
1838
+ "amazon_ads",
1839
+ "openai_ads"
1830
1840
  ]>;
1831
1841
  readonly accountKind: Schema.Literals<readonly [
1832
1842
  "social_page",
@@ -1904,6 +1914,7 @@ export declare const CapabilityCatalog: Schema.Struct<{
1904
1914
  "linkedin",
1905
1915
  "pinterest",
1906
1916
  "reddit",
1917
+ "snapchat",
1907
1918
  "tiktok",
1908
1919
  "threads",
1909
1920
  "x",
@@ -1916,7 +1927,8 @@ export declare const CapabilityCatalog: Schema.Struct<{
1916
1927
  "tiktok_ads",
1917
1928
  "linkedin_ads",
1918
1929
  "snapchat_ads",
1919
- "amazon_ads"
1930
+ "amazon_ads",
1931
+ "openai_ads"
1920
1932
  ]>;
1921
1933
  readonly availability: Schema.Literals<readonly [
1922
1934
  "live",
@@ -1969,6 +1981,7 @@ export declare const AccountSummary: Schema.Struct<{
1969
1981
  "linkedin",
1970
1982
  "pinterest",
1971
1983
  "reddit",
1984
+ "snapchat",
1972
1985
  "tiktok",
1973
1986
  "threads",
1974
1987
  "x",
@@ -1981,7 +1994,8 @@ export declare const AccountSummary: Schema.Struct<{
1981
1994
  "tiktok_ads",
1982
1995
  "linkedin_ads",
1983
1996
  "snapchat_ads",
1984
- "amazon_ads"
1997
+ "amazon_ads",
1998
+ "openai_ads"
1985
1999
  ]>;
1986
2000
  readonly accountKind: Schema.Literals<readonly [
1987
2001
  "social_page",
@@ -2036,6 +2050,7 @@ export declare const AccountSummaryList: Schema.Struct<{
2036
2050
  "linkedin",
2037
2051
  "pinterest",
2038
2052
  "reddit",
2053
+ "snapchat",
2039
2054
  "tiktok",
2040
2055
  "threads",
2041
2056
  "x",
@@ -2048,7 +2063,8 @@ export declare const AccountSummaryList: Schema.Struct<{
2048
2063
  "tiktok_ads",
2049
2064
  "linkedin_ads",
2050
2065
  "snapchat_ads",
2051
- "amazon_ads"
2066
+ "amazon_ads",
2067
+ "openai_ads"
2052
2068
  ]>;
2053
2069
  readonly accountKind: Schema.Literals<readonly [
2054
2070
  "social_page",
@@ -2129,6 +2145,7 @@ export declare const PublishCapabilities: Schema.Struct<{
2129
2145
  "linkedin",
2130
2146
  "pinterest",
2131
2147
  "reddit",
2148
+ "snapchat",
2132
2149
  "tiktok",
2133
2150
  "threads",
2134
2151
  "x",
@@ -2229,6 +2246,7 @@ export declare const ProviderAccount: Schema.Struct<{
2229
2246
  "linkedin",
2230
2247
  "pinterest",
2231
2248
  "reddit",
2249
+ "snapchat",
2232
2250
  "tiktok",
2233
2251
  "threads",
2234
2252
  "x",
@@ -2241,7 +2259,8 @@ export declare const ProviderAccount: Schema.Struct<{
2241
2259
  "tiktok_ads",
2242
2260
  "linkedin_ads",
2243
2261
  "snapchat_ads",
2244
- "amazon_ads"
2262
+ "amazon_ads",
2263
+ "openai_ads"
2245
2264
  ]>;
2246
2265
  readonly accountKind: Schema.Literals<readonly [
2247
2266
  "social_page",
@@ -2302,6 +2321,13 @@ export declare const ProviderAccount: Schema.Struct<{
2302
2321
  readonly kind: Schema.Literal<"account">;
2303
2322
  readonly username: Schema.String;
2304
2323
  }>,
2324
+ Schema.Struct<{
2325
+ readonly provider: Schema.Literal<"snapchat">;
2326
+ readonly kind: Schema.Literal<"public_profile">;
2327
+ readonly profileId: Schema.String;
2328
+ readonly organizationId: Schema.optionalKey<Schema.String>;
2329
+ readonly username: Schema.optionalKey<Schema.String>;
2330
+ }>,
2305
2331
  Schema.Struct<{
2306
2332
  readonly provider: Schema.Literal<"tiktok">;
2307
2333
  readonly kind: Schema.Literal<"account">;
@@ -2454,6 +2480,20 @@ export declare const ProviderAccount: Schema.Struct<{
2454
2480
  ]>;
2455
2481
  readonly businessId: Schema.optionalKey<Schema.String>;
2456
2482
  readonly managerId: Schema.optionalKey<Schema.String>;
2483
+ }>,
2484
+ Schema.Struct<{
2485
+ readonly provider: Schema.Literal<"openai_ads">;
2486
+ readonly kind: Schema.Literal<"ad_account">;
2487
+ readonly externalId: Schema.String;
2488
+ readonly currency: Schema.String;
2489
+ readonly timezone: Schema.String;
2490
+ readonly status: Schema.Literals<readonly [
2491
+ "active",
2492
+ "disabled",
2493
+ "pending",
2494
+ "closed",
2495
+ "unknown"
2496
+ ]>;
2457
2497
  }>
2458
2498
  ]>;
2459
2499
  readonly readiness: Schema.Union<readonly [
@@ -2525,6 +2565,7 @@ declare const IntegrationList: Schema.Struct<{
2525
2565
  "linkedin",
2526
2566
  "pinterest",
2527
2567
  "reddit",
2568
+ "snapchat",
2528
2569
  "tiktok",
2529
2570
  "threads",
2530
2571
  "x",
@@ -2537,7 +2578,8 @@ declare const IntegrationList: Schema.Struct<{
2537
2578
  "tiktok_ads",
2538
2579
  "linkedin_ads",
2539
2580
  "snapchat_ads",
2540
- "amazon_ads"
2581
+ "amazon_ads",
2582
+ "openai_ads"
2541
2583
  ]>;
2542
2584
  readonly accountKind: Schema.Literals<readonly [
2543
2585
  "social_page",
@@ -2598,6 +2640,13 @@ declare const IntegrationList: Schema.Struct<{
2598
2640
  readonly kind: Schema.Literal<"account">;
2599
2641
  readonly username: Schema.String;
2600
2642
  }>,
2643
+ Schema.Struct<{
2644
+ readonly provider: Schema.Literal<"snapchat">;
2645
+ readonly kind: Schema.Literal<"public_profile">;
2646
+ readonly profileId: Schema.String;
2647
+ readonly organizationId: Schema.optionalKey<Schema.String>;
2648
+ readonly username: Schema.optionalKey<Schema.String>;
2649
+ }>,
2601
2650
  Schema.Struct<{
2602
2651
  readonly provider: Schema.Literal<"tiktok">;
2603
2652
  readonly kind: Schema.Literal<"account">;
@@ -2750,6 +2799,20 @@ declare const IntegrationList: Schema.Struct<{
2750
2799
  ]>;
2751
2800
  readonly businessId: Schema.optionalKey<Schema.String>;
2752
2801
  readonly managerId: Schema.optionalKey<Schema.String>;
2802
+ }>,
2803
+ Schema.Struct<{
2804
+ readonly provider: Schema.Literal<"openai_ads">;
2805
+ readonly kind: Schema.Literal<"ad_account">;
2806
+ readonly externalId: Schema.String;
2807
+ readonly currency: Schema.String;
2808
+ readonly timezone: Schema.String;
2809
+ readonly status: Schema.Literals<readonly [
2810
+ "active",
2811
+ "disabled",
2812
+ "pending",
2813
+ "closed",
2814
+ "unknown"
2815
+ ]>;
2753
2816
  }>
2754
2817
  ]>;
2755
2818
  readonly readiness: Schema.Union<readonly [
@@ -2818,6 +2881,8 @@ type SetAccountEnabled = typeof SetAccountEnabled.Type;
2818
2881
  declare const ConnectionLaunch: Schema.Struct<{
2819
2882
  readonly attemptId: Schema.String;
2820
2883
  readonly url: Schema.String;
2884
+ /** When the pending attempt stops accepting a callback. */
2885
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
2821
2886
  }>;
2822
2887
  type ConnectionLaunch = typeof ConnectionLaunch.Type;
2823
2888
  export declare const ConnectionStatus: Schema.Union<readonly [
@@ -2835,6 +2900,7 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2835
2900
  "linkedin",
2836
2901
  "pinterest",
2837
2902
  "reddit",
2903
+ "snapchat",
2838
2904
  "tiktok",
2839
2905
  "threads",
2840
2906
  "x",
@@ -2847,7 +2913,8 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2847
2913
  "tiktok_ads",
2848
2914
  "linkedin_ads",
2849
2915
  "snapchat_ads",
2850
- "amazon_ads"
2916
+ "amazon_ads",
2917
+ "openai_ads"
2851
2918
  ]>;
2852
2919
  }>,
2853
2920
  Schema.Struct<{
@@ -2861,6 +2928,7 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2861
2928
  "linkedin",
2862
2929
  "pinterest",
2863
2930
  "reddit",
2931
+ "snapchat",
2864
2932
  "tiktok",
2865
2933
  "threads",
2866
2934
  "x",
@@ -2873,7 +2941,8 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2873
2941
  "tiktok_ads",
2874
2942
  "linkedin_ads",
2875
2943
  "snapchat_ads",
2876
- "amazon_ads"
2944
+ "amazon_ads",
2945
+ "openai_ads"
2877
2946
  ]>;
2878
2947
  }>,
2879
2948
  Schema.Struct<{
@@ -2893,6 +2962,7 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2893
2962
  "linkedin",
2894
2963
  "pinterest",
2895
2964
  "reddit",
2965
+ "snapchat",
2896
2966
  "tiktok",
2897
2967
  "threads",
2898
2968
  "x",
@@ -2905,7 +2975,8 @@ export declare const ConnectionStatus: Schema.Union<readonly [
2905
2975
  "tiktok_ads",
2906
2976
  "linkedin_ads",
2907
2977
  "snapchat_ads",
2908
- "amazon_ads"
2978
+ "amazon_ads",
2979
+ "openai_ads"
2909
2980
  ]>;
2910
2981
  }>
2911
2982
  ]>;
@@ -3134,6 +3205,7 @@ declare const AccountAmbiguous_base: HttpApiError.ProblemClass<AccountAmbiguous,
3134
3205
  "linkedin",
3135
3206
  "pinterest",
3136
3207
  "reddit",
3208
+ "snapchat",
3137
3209
  "tiktok",
3138
3210
  "threads",
3139
3211
  "x",
@@ -3146,7 +3218,8 @@ declare const AccountAmbiguous_base: HttpApiError.ProblemClass<AccountAmbiguous,
3146
3218
  "tiktok_ads",
3147
3219
  "linkedin_ads",
3148
3220
  "snapchat_ads",
3149
- "amazon_ads"
3221
+ "amazon_ads",
3222
+ "openai_ads"
3150
3223
  ]>;
3151
3224
  readonly param: Schema.String;
3152
3225
  readonly candidates: Schema.$Array<Schema.Struct<{
@@ -3166,6 +3239,7 @@ declare const ProviderMismatch_base: HttpApiError.ProblemClass<ProviderMismatch,
3166
3239
  "linkedin",
3167
3240
  "pinterest",
3168
3241
  "reddit",
3242
+ "snapchat",
3169
3243
  "tiktok",
3170
3244
  "threads",
3171
3245
  "x",
@@ -3178,7 +3252,8 @@ declare const ProviderMismatch_base: HttpApiError.ProblemClass<ProviderMismatch,
3178
3252
  "tiktok_ads",
3179
3253
  "linkedin_ads",
3180
3254
  "snapchat_ads",
3181
- "amazon_ads"
3255
+ "amazon_ads",
3256
+ "openai_ads"
3182
3257
  ]>;
3183
3258
  readonly expectedProvider: Schema.Literals<readonly [
3184
3259
  "bluesky",
@@ -3187,6 +3262,7 @@ declare const ProviderMismatch_base: HttpApiError.ProblemClass<ProviderMismatch,
3187
3262
  "linkedin",
3188
3263
  "pinterest",
3189
3264
  "reddit",
3265
+ "snapchat",
3190
3266
  "tiktok",
3191
3267
  "threads",
3192
3268
  "x",
@@ -3199,7 +3275,8 @@ declare const ProviderMismatch_base: HttpApiError.ProblemClass<ProviderMismatch,
3199
3275
  "tiktok_ads",
3200
3276
  "linkedin_ads",
3201
3277
  "snapchat_ads",
3202
- "amazon_ads"
3278
+ "amazon_ads",
3279
+ "openai_ads"
3203
3280
  ]>;
3204
3281
  readonly param: Schema.String;
3205
3282
  readonly nextAction: Schema.String;
@@ -3215,6 +3292,7 @@ declare const PublishAccountNotFound_base: HttpApiError.ProblemClass<PublishAcco
3215
3292
  "linkedin",
3216
3293
  "pinterest",
3217
3294
  "reddit",
3295
+ "snapchat",
3218
3296
  "tiktok",
3219
3297
  "threads",
3220
3298
  "x",
@@ -3227,7 +3305,8 @@ declare const PublishAccountNotFound_base: HttpApiError.ProblemClass<PublishAcco
3227
3305
  "tiktok_ads",
3228
3306
  "linkedin_ads",
3229
3307
  "snapchat_ads",
3230
- "amazon_ads"
3308
+ "amazon_ads",
3309
+ "openai_ads"
3231
3310
  ]>>;
3232
3311
  readonly accountId: Schema.optionalKey<Schema.brand<Schema.String, "AccountId">>;
3233
3312
  readonly param: Schema.String;
@@ -3374,6 +3453,7 @@ declare const ProviderPermissionRequired_base: HttpApiError.ProblemClass<Provide
3374
3453
  "linkedin",
3375
3454
  "pinterest",
3376
3455
  "reddit",
3456
+ "snapchat",
3377
3457
  "tiktok",
3378
3458
  "threads",
3379
3459
  "x",
@@ -3386,7 +3466,8 @@ declare const ProviderPermissionRequired_base: HttpApiError.ProblemClass<Provide
3386
3466
  "tiktok_ads",
3387
3467
  "linkedin_ads",
3388
3468
  "snapchat_ads",
3389
- "amazon_ads"
3469
+ "amazon_ads",
3470
+ "openai_ads"
3390
3471
  ]>;
3391
3472
  readonly missingScopes: Schema.$Array<Schema.String>;
3392
3473
  readonly missingRoles: Schema.$Array<Schema.String>;
@@ -3403,6 +3484,7 @@ declare const ProviderReconnectRequired_base: HttpApiError.ProblemClass<Provider
3403
3484
  "linkedin",
3404
3485
  "pinterest",
3405
3486
  "reddit",
3487
+ "snapchat",
3406
3488
  "tiktok",
3407
3489
  "threads",
3408
3490
  "x",
@@ -3415,7 +3497,8 @@ declare const ProviderReconnectRequired_base: HttpApiError.ProblemClass<Provider
3415
3497
  "tiktok_ads",
3416
3498
  "linkedin_ads",
3417
3499
  "snapchat_ads",
3418
- "amazon_ads"
3500
+ "amazon_ads",
3501
+ "openai_ads"
3419
3502
  ]>;
3420
3503
  readonly missingScopes: Schema.$Array<Schema.String>;
3421
3504
  readonly reason: Schema.optionalKey<Schema.String>;
@@ -3430,6 +3513,7 @@ declare const ProviderRateLimited_base: HttpApiError.ProblemClass<ProviderRateLi
3430
3513
  "linkedin",
3431
3514
  "pinterest",
3432
3515
  "reddit",
3516
+ "snapchat",
3433
3517
  "tiktok",
3434
3518
  "threads",
3435
3519
  "x",
@@ -3442,7 +3526,8 @@ declare const ProviderRateLimited_base: HttpApiError.ProblemClass<ProviderRateLi
3442
3526
  "tiktok_ads",
3443
3527
  "linkedin_ads",
3444
3528
  "snapchat_ads",
3445
- "amazon_ads"
3529
+ "amazon_ads",
3530
+ "openai_ads"
3446
3531
  ]>;
3447
3532
  readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
3448
3533
  }, {}>;
@@ -3456,6 +3541,7 @@ declare const ProviderUnavailable_base: HttpApiError.ProblemClass<ProviderUnavai
3456
3541
  "linkedin",
3457
3542
  "pinterest",
3458
3543
  "reddit",
3544
+ "snapchat",
3459
3545
  "tiktok",
3460
3546
  "threads",
3461
3547
  "x",
@@ -3468,7 +3554,8 @@ declare const ProviderUnavailable_base: HttpApiError.ProblemClass<ProviderUnavai
3468
3554
  "tiktok_ads",
3469
3555
  "linkedin_ads",
3470
3556
  "snapchat_ads",
3471
- "amazon_ads"
3557
+ "amazon_ads",
3558
+ "openai_ads"
3472
3559
  ]>;
3473
3560
  readonly retryAfterSeconds: Schema.optionalKey<Schema.Int>;
3474
3561
  }, {}>;
@@ -3491,6 +3578,7 @@ declare const CapabilityUnsupported_base: HttpApiError.ProblemClass<CapabilityUn
3491
3578
  "linkedin",
3492
3579
  "pinterest",
3493
3580
  "reddit",
3581
+ "snapchat",
3494
3582
  "tiktok",
3495
3583
  "threads",
3496
3584
  "x",
@@ -3503,7 +3591,8 @@ declare const CapabilityUnsupported_base: HttpApiError.ProblemClass<CapabilityUn
3503
3591
  "tiktok_ads",
3504
3592
  "linkedin_ads",
3505
3593
  "snapchat_ads",
3506
- "amazon_ads"
3594
+ "amazon_ads",
3595
+ "openai_ads"
3507
3596
  ]>;
3508
3597
  readonly accountKind: Schema.Literals<readonly [
3509
3598
  "social_page",
@@ -3556,6 +3645,7 @@ declare const CapabilityUnverified_base: HttpApiError.ProblemClass<CapabilityUnv
3556
3645
  "linkedin",
3557
3646
  "pinterest",
3558
3647
  "reddit",
3648
+ "snapchat",
3559
3649
  "tiktok",
3560
3650
  "threads",
3561
3651
  "x",
@@ -3568,7 +3658,8 @@ declare const CapabilityUnverified_base: HttpApiError.ProblemClass<CapabilityUnv
3568
3658
  "tiktok_ads",
3569
3659
  "linkedin_ads",
3570
3660
  "snapchat_ads",
3571
- "amazon_ads"
3661
+ "amazon_ads",
3662
+ "openai_ads"
3572
3663
  ]>;
3573
3664
  }, {}>;
3574
3665
  declare class CapabilityUnverified extends CapabilityUnverified_base {
@@ -3581,6 +3672,7 @@ declare const InboxReplyWindowClosed_base: HttpApiError.ProblemClass<InboxReplyW
3581
3672
  "linkedin",
3582
3673
  "pinterest",
3583
3674
  "reddit",
3675
+ "snapchat",
3584
3676
  "tiktok",
3585
3677
  "threads",
3586
3678
  "x",
@@ -3593,7 +3685,8 @@ declare const InboxReplyWindowClosed_base: HttpApiError.ProblemClass<InboxReplyW
3593
3685
  "tiktok_ads",
3594
3686
  "linkedin_ads",
3595
3687
  "snapchat_ads",
3596
- "amazon_ads"
3688
+ "amazon_ads",
3689
+ "openai_ads"
3597
3690
  ]>;
3598
3691
  readonly policy: Schema.Literals<readonly [
3599
3692
  "none",
@@ -3675,6 +3768,8 @@ declare const AdRevisionConflict_base: HttpApiError.ProblemClass<AdRevisionConfl
3675
3768
  readonly resource: Schema.Literals<readonly [
3676
3769
  "spend_policy",
3677
3770
  "campaign",
3771
+ "ad_group",
3772
+ "ad",
3678
3773
  "boost"
3679
3774
  ]>;
3680
3775
  readonly expectedRevision: Schema.Int;
@@ -3773,7 +3868,8 @@ declare const AdProviderRejected_base: HttpApiError.ProblemClass<AdProviderRejec
3773
3868
  "tiktok_ads",
3774
3869
  "linkedin_ads",
3775
3870
  "snapchat_ads",
3776
- "amazon_ads"
3871
+ "amazon_ads",
3872
+ "openai_ads"
3777
3873
  ]>;
3778
3874
  readonly code: Schema.String;
3779
3875
  readonly retryable: Schema.Boolean;
@@ -4843,6 +4939,36 @@ export declare const PublishTarget: Schema.Union<readonly [
4843
4939
  readonly provider: Schema.Literal<"reddit">;
4844
4940
  readonly placement: Schema.Literal<"feed">;
4845
4941
  }>,
4942
+ Schema.Struct<{
4943
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4944
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
4945
+ "story",
4946
+ "saved_story",
4947
+ "spotlight"
4948
+ ]>>;
4949
+ readonly title: Schema.optionalKey<Schema.String>;
4950
+ readonly description: Schema.optionalKey<Schema.String>;
4951
+ readonly link: Schema.optionalKey<Schema.String>;
4952
+ readonly locale: Schema.optionalKey<Schema.String>;
4953
+ }>>;
4954
+ readonly text: Schema.optionalKey<Schema.String>;
4955
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4956
+ Schema.Struct<{
4957
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4958
+ }>,
4959
+ Schema.Struct<{
4960
+ readonly url: Schema.String;
4961
+ }>
4962
+ ]>>>;
4963
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4964
+ Schema.String,
4965
+ Schema.Null
4966
+ ]>>;
4967
+ readonly queueId: Schema.optionalKey<Schema.String>;
4968
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4969
+ readonly provider: Schema.Literal<"snapchat">;
4970
+ readonly placement: Schema.Literal<"story">;
4971
+ }>,
4846
4972
  Schema.Struct<{
4847
4973
  readonly settings: Schema.optionalKey<Schema.Union<readonly [
4848
4974
  Schema.Struct<{
@@ -4934,6 +5060,7 @@ export declare const CreatePost: Schema.Struct<{
4934
5060
  "linkedin",
4935
5061
  "pinterest",
4936
5062
  "reddit",
5063
+ "snapchat",
4937
5064
  "tiktok",
4938
5065
  "threads",
4939
5066
  "x",
@@ -4950,6 +5077,7 @@ export declare const CreatePost: Schema.Struct<{
4950
5077
  "linkedin",
4951
5078
  "pinterest",
4952
5079
  "reddit",
5080
+ "snapchat",
4953
5081
  "tiktok",
4954
5082
  "threads",
4955
5083
  "x",
@@ -5109,6 +5237,17 @@ export declare const CreatePost: Schema.Struct<{
5109
5237
  readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
5110
5238
  readonly firstComment: Schema.optionalKey<Schema.String>;
5111
5239
  }>,
5240
+ Schema.Struct<{
5241
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
5242
+ "story",
5243
+ "saved_story",
5244
+ "spotlight"
5245
+ ]>>;
5246
+ readonly title: Schema.optionalKey<Schema.String>;
5247
+ readonly description: Schema.optionalKey<Schema.String>;
5248
+ readonly link: Schema.optionalKey<Schema.String>;
5249
+ readonly locale: Schema.optionalKey<Schema.String>;
5250
+ }>,
5112
5251
  Schema.Struct<{
5113
5252
  readonly firstComment: Schema.optionalKey<Schema.String>;
5114
5253
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
@@ -5643,6 +5782,36 @@ export declare const UpdatePost: Schema.Struct<{
5643
5782
  readonly provider: Schema.Literal<"reddit">;
5644
5783
  readonly placement: Schema.Literal<"feed">;
5645
5784
  }>,
5785
+ Schema.Struct<{
5786
+ readonly settings: Schema.optionalKey<Schema.Struct<{
5787
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
5788
+ "story",
5789
+ "saved_story",
5790
+ "spotlight"
5791
+ ]>>;
5792
+ readonly title: Schema.optionalKey<Schema.String>;
5793
+ readonly description: Schema.optionalKey<Schema.String>;
5794
+ readonly link: Schema.optionalKey<Schema.String>;
5795
+ readonly locale: Schema.optionalKey<Schema.String>;
5796
+ }>>;
5797
+ readonly text: Schema.optionalKey<Schema.String>;
5798
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5799
+ Schema.Struct<{
5800
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
5801
+ }>,
5802
+ Schema.Struct<{
5803
+ readonly url: Schema.String;
5804
+ }>
5805
+ ]>>>;
5806
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
5807
+ Schema.String,
5808
+ Schema.Null
5809
+ ]>>;
5810
+ readonly queueId: Schema.optionalKey<Schema.String>;
5811
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
5812
+ readonly provider: Schema.Literal<"snapchat">;
5813
+ readonly placement: Schema.Literal<"story">;
5814
+ }>,
5646
5815
  Schema.Struct<{
5647
5816
  readonly settings: Schema.optionalKey<Schema.Union<readonly [
5648
5817
  Schema.Struct<{
@@ -6183,6 +6352,36 @@ export declare const Post: Schema.Struct<{
6183
6352
  readonly provider: Schema.Literal<"reddit">;
6184
6353
  readonly placement: Schema.Literal<"feed">;
6185
6354
  }>,
6355
+ Schema.Struct<{
6356
+ readonly settings: Schema.optionalKey<Schema.Struct<{
6357
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
6358
+ "story",
6359
+ "saved_story",
6360
+ "spotlight"
6361
+ ]>>;
6362
+ readonly title: Schema.optionalKey<Schema.String>;
6363
+ readonly description: Schema.optionalKey<Schema.String>;
6364
+ readonly link: Schema.optionalKey<Schema.String>;
6365
+ readonly locale: Schema.optionalKey<Schema.String>;
6366
+ }>>;
6367
+ readonly text: Schema.optionalKey<Schema.String>;
6368
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
6369
+ Schema.Struct<{
6370
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
6371
+ }>,
6372
+ Schema.Struct<{
6373
+ readonly url: Schema.String;
6374
+ }>
6375
+ ]>>>;
6376
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
6377
+ Schema.String,
6378
+ Schema.Null
6379
+ ]>>;
6380
+ readonly queueId: Schema.optionalKey<Schema.String>;
6381
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
6382
+ readonly provider: Schema.Literal<"snapchat">;
6383
+ readonly placement: Schema.Literal<"story">;
6384
+ }>,
6186
6385
  Schema.Struct<{
6187
6386
  readonly settings: Schema.optionalKey<Schema.Union<readonly [
6188
6387
  Schema.Struct<{
@@ -6306,6 +6505,7 @@ export declare const Post: Schema.Struct<{
6306
6505
  "linkedin",
6307
6506
  "pinterest",
6308
6507
  "reddit",
6508
+ "snapchat",
6309
6509
  "tiktok",
6310
6510
  "threads",
6311
6511
  "x",
@@ -6799,6 +6999,36 @@ declare const PostCreateResult: Schema.Union<readonly [
6799
6999
  readonly provider: Schema.Literal<"reddit">;
6800
7000
  readonly placement: Schema.Literal<"feed">;
6801
7001
  }>,
7002
+ Schema.Struct<{
7003
+ readonly settings: Schema.optionalKey<Schema.Struct<{
7004
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
7005
+ "story",
7006
+ "saved_story",
7007
+ "spotlight"
7008
+ ]>>;
7009
+ readonly title: Schema.optionalKey<Schema.String>;
7010
+ readonly description: Schema.optionalKey<Schema.String>;
7011
+ readonly link: Schema.optionalKey<Schema.String>;
7012
+ readonly locale: Schema.optionalKey<Schema.String>;
7013
+ }>>;
7014
+ readonly text: Schema.optionalKey<Schema.String>;
7015
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
7016
+ Schema.Struct<{
7017
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
7018
+ }>,
7019
+ Schema.Struct<{
7020
+ readonly url: Schema.String;
7021
+ }>
7022
+ ]>>>;
7023
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
7024
+ Schema.String,
7025
+ Schema.Null
7026
+ ]>>;
7027
+ readonly queueId: Schema.optionalKey<Schema.String>;
7028
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7029
+ readonly provider: Schema.Literal<"snapchat">;
7030
+ readonly placement: Schema.Literal<"story">;
7031
+ }>,
6802
7032
  Schema.Struct<{
6803
7033
  readonly settings: Schema.optionalKey<Schema.Union<readonly [
6804
7034
  Schema.Struct<{
@@ -6922,6 +7152,7 @@ declare const PostCreateResult: Schema.Union<readonly [
6922
7152
  "linkedin",
6923
7153
  "pinterest",
6924
7154
  "reddit",
7155
+ "snapchat",
6925
7156
  "tiktok",
6926
7157
  "threads",
6927
7158
  "x",
@@ -6986,6 +7217,7 @@ declare const PostCreateResult: Schema.Union<readonly [
6986
7217
  "linkedin",
6987
7218
  "pinterest",
6988
7219
  "reddit",
7220
+ "snapchat",
6989
7221
  "tiktok",
6990
7222
  "threads",
6991
7223
  "x",
@@ -7176,6 +7408,7 @@ export declare const PostValidation: Schema.Struct<{
7176
7408
  "linkedin",
7177
7409
  "pinterest",
7178
7410
  "reddit",
7411
+ "snapchat",
7179
7412
  "tiktok",
7180
7413
  "threads",
7181
7414
  "x",
@@ -7384,6 +7617,7 @@ export declare const InboxMessage: Schema.Struct<{
7384
7617
  "linkedin",
7385
7618
  "pinterest",
7386
7619
  "reddit",
7620
+ "snapchat",
7387
7621
  "tiktok",
7388
7622
  "threads",
7389
7623
  "x",
@@ -7396,7 +7630,8 @@ export declare const InboxMessage: Schema.Struct<{
7396
7630
  "tiktok_ads",
7397
7631
  "linkedin_ads",
7398
7632
  "snapchat_ads",
7399
- "amazon_ads"
7633
+ "amazon_ads",
7634
+ "openai_ads"
7400
7635
  ]>;
7401
7636
  readonly direction: Schema.Literals<readonly [
7402
7637
  "inbound",
@@ -7464,6 +7699,7 @@ export declare const InboxConversation: Schema.Struct<{
7464
7699
  "linkedin",
7465
7700
  "pinterest",
7466
7701
  "reddit",
7702
+ "snapchat",
7467
7703
  "tiktok",
7468
7704
  "threads",
7469
7705
  "x",
@@ -7476,7 +7712,8 @@ export declare const InboxConversation: Schema.Struct<{
7476
7712
  "tiktok_ads",
7477
7713
  "linkedin_ads",
7478
7714
  "snapchat_ads",
7479
- "amazon_ads"
7715
+ "amazon_ads",
7716
+ "openai_ads"
7480
7717
  ]>;
7481
7718
  readonly participant: Schema.Struct<{
7482
7719
  readonly externalId: Schema.String;
@@ -7535,6 +7772,7 @@ export declare const InboxComment: Schema.Struct<{
7535
7772
  "linkedin",
7536
7773
  "pinterest",
7537
7774
  "reddit",
7775
+ "snapchat",
7538
7776
  "tiktok",
7539
7777
  "threads",
7540
7778
  "x",
@@ -7547,7 +7785,8 @@ export declare const InboxComment: Schema.Struct<{
7547
7785
  "tiktok_ads",
7548
7786
  "linkedin_ads",
7549
7787
  "snapchat_ads",
7550
- "amazon_ads"
7788
+ "amazon_ads",
7789
+ "openai_ads"
7551
7790
  ]>;
7552
7791
  readonly parentCommentId: Schema.NullOr<Schema.brand<Schema.String, "InboxCommentId">>;
7553
7792
  readonly author: Schema.Struct<{
@@ -7583,6 +7822,7 @@ export declare const InboxCommentThread: Schema.Struct<{
7583
7822
  "linkedin",
7584
7823
  "pinterest",
7585
7824
  "reddit",
7825
+ "snapchat",
7586
7826
  "tiktok",
7587
7827
  "threads",
7588
7828
  "x",
@@ -7595,7 +7835,8 @@ export declare const InboxCommentThread: Schema.Struct<{
7595
7835
  "tiktok_ads",
7596
7836
  "linkedin_ads",
7597
7837
  "snapchat_ads",
7598
- "amazon_ads"
7838
+ "amazon_ads",
7839
+ "openai_ads"
7599
7840
  ]>;
7600
7841
  readonly providerPostId: Schema.String;
7601
7842
  readonly postId: Schema.NullOr<Schema.String>;
@@ -7630,6 +7871,7 @@ export declare const InboxMention: Schema.Struct<{
7630
7871
  "linkedin",
7631
7872
  "pinterest",
7632
7873
  "reddit",
7874
+ "snapchat",
7633
7875
  "tiktok",
7634
7876
  "threads",
7635
7877
  "x",
@@ -7642,7 +7884,8 @@ export declare const InboxMention: Schema.Struct<{
7642
7884
  "tiktok_ads",
7643
7885
  "linkedin_ads",
7644
7886
  "snapchat_ads",
7645
- "amazon_ads"
7887
+ "amazon_ads",
7888
+ "openai_ads"
7646
7889
  ]>;
7647
7890
  readonly kind: Schema.Literals<readonly [
7648
7891
  "post",
@@ -7686,6 +7929,7 @@ declare const InboxReview: Schema.Struct<{
7686
7929
  "linkedin",
7687
7930
  "pinterest",
7688
7931
  "reddit",
7932
+ "snapchat",
7689
7933
  "tiktok",
7690
7934
  "threads",
7691
7935
  "x",
@@ -7698,7 +7942,8 @@ declare const InboxReview: Schema.Struct<{
7698
7942
  "tiktok_ads",
7699
7943
  "linkedin_ads",
7700
7944
  "snapchat_ads",
7701
- "amazon_ads"
7945
+ "amazon_ads",
7946
+ "openai_ads"
7702
7947
  ]>;
7703
7948
  readonly locationExternalId: Schema.NullOr<Schema.String>;
7704
7949
  readonly author: Schema.Struct<{
@@ -7717,6 +7962,7 @@ declare const InboxReview: Schema.Struct<{
7717
7962
  readonly providerUpdatedAt: Schema.NullOr<Schema.String>;
7718
7963
  readonly repliedAt: Schema.NullOr<Schema.String>;
7719
7964
  readonly replyText: Schema.NullOr<Schema.String>;
7965
+ readonly canReply: Schema.Boolean;
7720
7966
  readonly deletedAt: Schema.NullOr<Schema.String>;
7721
7967
  readonly createdAt: Schema.String;
7722
7968
  }>;
@@ -7735,6 +7981,7 @@ export declare const InboxConversationList: Schema.Struct<{
7735
7981
  "linkedin",
7736
7982
  "pinterest",
7737
7983
  "reddit",
7984
+ "snapchat",
7738
7985
  "tiktok",
7739
7986
  "threads",
7740
7987
  "x",
@@ -7747,7 +7994,8 @@ export declare const InboxConversationList: Schema.Struct<{
7747
7994
  "tiktok_ads",
7748
7995
  "linkedin_ads",
7749
7996
  "snapchat_ads",
7750
- "amazon_ads"
7997
+ "amazon_ads",
7998
+ "openai_ads"
7751
7999
  ]>;
7752
8000
  readonly participant: Schema.Struct<{
7753
8001
  readonly externalId: Schema.String;
@@ -7810,6 +8058,7 @@ export declare const InboxMessageList: Schema.Struct<{
7810
8058
  "linkedin",
7811
8059
  "pinterest",
7812
8060
  "reddit",
8061
+ "snapchat",
7813
8062
  "tiktok",
7814
8063
  "threads",
7815
8064
  "x",
@@ -7822,7 +8071,8 @@ export declare const InboxMessageList: Schema.Struct<{
7822
8071
  "tiktok_ads",
7823
8072
  "linkedin_ads",
7824
8073
  "snapchat_ads",
7825
- "amazon_ads"
8074
+ "amazon_ads",
8075
+ "openai_ads"
7826
8076
  ]>;
7827
8077
  readonly direction: Schema.Literals<readonly [
7828
8078
  "inbound",
@@ -7894,6 +8144,7 @@ export declare const InboxCommentThreadList: Schema.Struct<{
7894
8144
  "linkedin",
7895
8145
  "pinterest",
7896
8146
  "reddit",
8147
+ "snapchat",
7897
8148
  "tiktok",
7898
8149
  "threads",
7899
8150
  "x",
@@ -7906,7 +8157,8 @@ export declare const InboxCommentThreadList: Schema.Struct<{
7906
8157
  "tiktok_ads",
7907
8158
  "linkedin_ads",
7908
8159
  "snapchat_ads",
7909
- "amazon_ads"
8160
+ "amazon_ads",
8161
+ "openai_ads"
7910
8162
  ]>;
7911
8163
  readonly providerPostId: Schema.String;
7912
8164
  readonly postId: Schema.NullOr<Schema.String>;
@@ -7945,6 +8197,7 @@ export declare const InboxCommentThreadDetail: Schema.Struct<{
7945
8197
  "linkedin",
7946
8198
  "pinterest",
7947
8199
  "reddit",
8200
+ "snapchat",
7948
8201
  "tiktok",
7949
8202
  "threads",
7950
8203
  "x",
@@ -7957,7 +8210,8 @@ export declare const InboxCommentThreadDetail: Schema.Struct<{
7957
8210
  "tiktok_ads",
7958
8211
  "linkedin_ads",
7959
8212
  "snapchat_ads",
7960
- "amazon_ads"
8213
+ "amazon_ads",
8214
+ "openai_ads"
7961
8215
  ]>;
7962
8216
  readonly providerPostId: Schema.String;
7963
8217
  readonly postId: Schema.NullOr<Schema.String>;
@@ -7991,6 +8245,7 @@ export declare const InboxCommentThreadDetail: Schema.Struct<{
7991
8245
  "linkedin",
7992
8246
  "pinterest",
7993
8247
  "reddit",
8248
+ "snapchat",
7994
8249
  "tiktok",
7995
8250
  "threads",
7996
8251
  "x",
@@ -8003,7 +8258,8 @@ export declare const InboxCommentThreadDetail: Schema.Struct<{
8003
8258
  "tiktok_ads",
8004
8259
  "linkedin_ads",
8005
8260
  "snapchat_ads",
8006
- "amazon_ads"
8261
+ "amazon_ads",
8262
+ "openai_ads"
8007
8263
  ]>;
8008
8264
  readonly parentCommentId: Schema.NullOr<Schema.brand<Schema.String, "InboxCommentId">>;
8009
8265
  readonly author: Schema.Struct<{
@@ -8043,6 +8299,7 @@ export declare const InboxMentionList: Schema.Struct<{
8043
8299
  "linkedin",
8044
8300
  "pinterest",
8045
8301
  "reddit",
8302
+ "snapchat",
8046
8303
  "tiktok",
8047
8304
  "threads",
8048
8305
  "x",
@@ -8055,7 +8312,8 @@ export declare const InboxMentionList: Schema.Struct<{
8055
8312
  "tiktok_ads",
8056
8313
  "linkedin_ads",
8057
8314
  "snapchat_ads",
8058
- "amazon_ads"
8315
+ "amazon_ads",
8316
+ "openai_ads"
8059
8317
  ]>;
8060
8318
  readonly kind: Schema.Literals<readonly [
8061
8319
  "post",
@@ -8103,6 +8361,7 @@ declare const InboxReviewList: Schema.Struct<{
8103
8361
  "linkedin",
8104
8362
  "pinterest",
8105
8363
  "reddit",
8364
+ "snapchat",
8106
8365
  "tiktok",
8107
8366
  "threads",
8108
8367
  "x",
@@ -8115,7 +8374,8 @@ declare const InboxReviewList: Schema.Struct<{
8115
8374
  "tiktok_ads",
8116
8375
  "linkedin_ads",
8117
8376
  "snapchat_ads",
8118
- "amazon_ads"
8377
+ "amazon_ads",
8378
+ "openai_ads"
8119
8379
  ]>;
8120
8380
  readonly locationExternalId: Schema.NullOr<Schema.String>;
8121
8381
  readonly author: Schema.Struct<{
@@ -8134,6 +8394,7 @@ declare const InboxReviewList: Schema.Struct<{
8134
8394
  readonly providerUpdatedAt: Schema.NullOr<Schema.String>;
8135
8395
  readonly repliedAt: Schema.NullOr<Schema.String>;
8136
8396
  readonly replyText: Schema.NullOr<Schema.String>;
8397
+ readonly canReply: Schema.Boolean;
8137
8398
  readonly deletedAt: Schema.NullOr<Schema.String>;
8138
8399
  readonly createdAt: Schema.String;
8139
8400
  }>>;
@@ -8153,6 +8414,7 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8153
8414
  "linkedin",
8154
8415
  "pinterest",
8155
8416
  "reddit",
8417
+ "snapchat",
8156
8418
  "tiktok",
8157
8419
  "threads",
8158
8420
  "x",
@@ -8165,7 +8427,8 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8165
8427
  "tiktok_ads",
8166
8428
  "linkedin_ads",
8167
8429
  "snapchat_ads",
8168
- "amazon_ads"
8430
+ "amazon_ads",
8431
+ "openai_ads"
8169
8432
  ]>;
8170
8433
  readonly accountKind: Schema.Literals<readonly [
8171
8434
  "social_page",
@@ -8359,6 +8622,7 @@ export declare const InboxCapabilities: Schema.Struct<{
8359
8622
  "linkedin",
8360
8623
  "pinterest",
8361
8624
  "reddit",
8625
+ "snapchat",
8362
8626
  "tiktok",
8363
8627
  "threads",
8364
8628
  "x",
@@ -8371,7 +8635,8 @@ export declare const InboxCapabilities: Schema.Struct<{
8371
8635
  "tiktok_ads",
8372
8636
  "linkedin_ads",
8373
8637
  "snapchat_ads",
8374
- "amazon_ads"
8638
+ "amazon_ads",
8639
+ "openai_ads"
8375
8640
  ]>;
8376
8641
  readonly accountKind: Schema.Literals<readonly [
8377
8642
  "social_page",
@@ -8567,6 +8832,7 @@ declare const InboxConversationListQuery: Schema.Struct<{
8567
8832
  "linkedin",
8568
8833
  "pinterest",
8569
8834
  "reddit",
8835
+ "snapchat",
8570
8836
  "tiktok",
8571
8837
  "threads",
8572
8838
  "x",
@@ -8579,7 +8845,8 @@ declare const InboxConversationListQuery: Schema.Struct<{
8579
8845
  "tiktok_ads",
8580
8846
  "linkedin_ads",
8581
8847
  "snapchat_ads",
8582
- "amazon_ads"
8848
+ "amazon_ads",
8849
+ "openai_ads"
8583
8850
  ]>>;
8584
8851
  readonly status: Schema.optionalKey<Schema.Literals<readonly [
8585
8852
  "active",
@@ -8627,6 +8894,7 @@ declare const InboxMentionListQuery: Schema.Struct<{
8627
8894
  "linkedin",
8628
8895
  "pinterest",
8629
8896
  "reddit",
8897
+ "snapchat",
8630
8898
  "tiktok",
8631
8899
  "threads",
8632
8900
  "x",
@@ -8639,7 +8907,8 @@ declare const InboxMentionListQuery: Schema.Struct<{
8639
8907
  "tiktok_ads",
8640
8908
  "linkedin_ads",
8641
8909
  "snapchat_ads",
8642
- "amazon_ads"
8910
+ "amazon_ads",
8911
+ "openai_ads"
8643
8912
  ]>>;
8644
8913
  }>;
8645
8914
  type InboxMentionListQuery = typeof InboxMentionListQuery.Type;
@@ -8812,6 +9081,7 @@ export declare const AnalyticsCapabilities: Schema.Struct<{
8812
9081
  "linkedin",
8813
9082
  "pinterest",
8814
9083
  "reddit",
9084
+ "snapchat",
8815
9085
  "tiktok",
8816
9086
  "threads",
8817
9087
  "x",
@@ -8824,7 +9094,8 @@ export declare const AnalyticsCapabilities: Schema.Struct<{
8824
9094
  "tiktok_ads",
8825
9095
  "linkedin_ads",
8826
9096
  "snapchat_ads",
8827
- "amazon_ads"
9097
+ "amazon_ads",
9098
+ "openai_ads"
8828
9099
  ]>;
8829
9100
  readonly accountKinds: Schema.$Array<Schema.Literals<readonly [
8830
9101
  "social_page",
@@ -8938,6 +9209,7 @@ export declare const AnalyticsCapabilities: Schema.Struct<{
8938
9209
  "linkedin",
8939
9210
  "pinterest",
8940
9211
  "reddit",
9212
+ "snapchat",
8941
9213
  "tiktok",
8942
9214
  "threads",
8943
9215
  "x",
@@ -8950,7 +9222,8 @@ export declare const AnalyticsCapabilities: Schema.Struct<{
8950
9222
  "tiktok_ads",
8951
9223
  "linkedin_ads",
8952
9224
  "snapchat_ads",
8953
- "amazon_ads"
9225
+ "amazon_ads",
9226
+ "openai_ads"
8954
9227
  ]>;
8955
9228
  readonly accountKind: Schema.Literals<readonly [
8956
9229
  "social_page",
@@ -9016,6 +9289,7 @@ export declare const PostAnalytics: Schema.Struct<{
9016
9289
  "linkedin",
9017
9290
  "pinterest",
9018
9291
  "reddit",
9292
+ "snapchat",
9019
9293
  "tiktok",
9020
9294
  "threads",
9021
9295
  "x",
@@ -9028,7 +9302,8 @@ export declare const PostAnalytics: Schema.Struct<{
9028
9302
  "tiktok_ads",
9029
9303
  "linkedin_ads",
9030
9304
  "snapchat_ads",
9031
- "amazon_ads"
9305
+ "amazon_ads",
9306
+ "openai_ads"
9032
9307
  ]>;
9033
9308
  readonly placement: Schema.Literals<readonly [
9034
9309
  "feed",
@@ -9265,6 +9540,7 @@ export declare const AccountAnalytics: Schema.Struct<{
9265
9540
  "linkedin",
9266
9541
  "pinterest",
9267
9542
  "reddit",
9543
+ "snapchat",
9268
9544
  "tiktok",
9269
9545
  "threads",
9270
9546
  "x",
@@ -9277,7 +9553,8 @@ export declare const AccountAnalytics: Schema.Struct<{
9277
9553
  "tiktok_ads",
9278
9554
  "linkedin_ads",
9279
9555
  "snapchat_ads",
9280
- "amazon_ads"
9556
+ "amazon_ads",
9557
+ "openai_ads"
9281
9558
  ]>;
9282
9559
  readonly accountKind: Schema.Literals<readonly [
9283
9560
  "social_page",
@@ -9504,6 +9781,7 @@ export declare const AccountAnalyticsList: Schema.Struct<{
9504
9781
  "linkedin",
9505
9782
  "pinterest",
9506
9783
  "reddit",
9784
+ "snapchat",
9507
9785
  "tiktok",
9508
9786
  "threads",
9509
9787
  "x",
@@ -9516,7 +9794,8 @@ export declare const AccountAnalyticsList: Schema.Struct<{
9516
9794
  "tiktok_ads",
9517
9795
  "linkedin_ads",
9518
9796
  "snapchat_ads",
9519
- "amazon_ads"
9797
+ "amazon_ads",
9798
+ "openai_ads"
9520
9799
  ]>;
9521
9800
  readonly accountKind: Schema.Literals<readonly [
9522
9801
  "social_page",
@@ -9660,7 +9939,8 @@ export declare const AdProvider: Schema.Literals<readonly [
9660
9939
  "tiktok_ads",
9661
9940
  "linkedin_ads",
9662
9941
  "snapchat_ads",
9663
- "amazon_ads"
9942
+ "amazon_ads",
9943
+ "openai_ads"
9664
9944
  ]>;
9665
9945
  export type AdProvider = typeof AdProvider.Type;
9666
9946
  export declare const AdAccountState: Schema.Literals<readonly [
@@ -9685,7 +9965,8 @@ export declare const AdAccountDetails: Schema.Struct<{
9685
9965
  "tiktok_ads",
9686
9966
  "linkedin_ads",
9687
9967
  "snapchat_ads",
9688
- "amazon_ads"
9968
+ "amazon_ads",
9969
+ "openai_ads"
9689
9970
  ]>;
9690
9971
  readonly kind: Schema.Literal<"ad_account">;
9691
9972
  /** Provider-native account ID; provider_accounts.external_id mirrors it. */
@@ -9854,8 +10135,17 @@ export declare const AdKillSwitchResult: Schema.Struct<{
9854
10135
  export type AdKillSwitchResult = typeof AdKillSwitchResult.Type;
9855
10136
  export declare const AdOperationKind: Schema.Literals<readonly [
9856
10137
  "boost.create",
10138
+ "campaign.create",
9857
10139
  "campaign.activate",
9858
- "campaign.pause"
10140
+ "campaign.pause",
10141
+ "campaign.archive",
10142
+ "ad_group.status",
10143
+ "ad_group.create",
10144
+ "ad.status",
10145
+ "ad.attach",
10146
+ "creative.create",
10147
+ "campaign.duplicate",
10148
+ "budget.update"
9859
10149
  ]>;
9860
10150
  export type AdOperationKind = typeof AdOperationKind.Type;
9861
10151
  export declare const AdOperationStatus: Schema.Literals<readonly [
@@ -9887,8 +10177,17 @@ export declare const AdOperation: Schema.Struct<{
9887
10177
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
9888
10178
  readonly kind: Schema.Literals<readonly [
9889
10179
  "boost.create",
10180
+ "campaign.create",
9890
10181
  "campaign.activate",
9891
- "campaign.pause"
10182
+ "campaign.pause",
10183
+ "campaign.archive",
10184
+ "ad_group.status",
10185
+ "ad_group.create",
10186
+ "ad.status",
10187
+ "ad.attach",
10188
+ "creative.create",
10189
+ "campaign.duplicate",
10190
+ "budget.update"
9892
10191
  ]>;
9893
10192
  readonly status: Schema.Literals<readonly [
9894
10193
  "queued",
@@ -9941,6 +10240,72 @@ export declare const AdCampaignPauseInput: Schema.Struct<{
9941
10240
  readonly expectedRevision: Schema.Int;
9942
10241
  }>;
9943
10242
  export type AdCampaignPauseInput = typeof AdCampaignPauseInput.Type;
10243
+ export declare const AdCampaignArchiveInput: Schema.Struct<{
10244
+ readonly expectedRevision: Schema.Int;
10245
+ }>;
10246
+ export type AdCampaignArchiveInput = typeof AdCampaignArchiveInput.Type;
10247
+ export declare const AdEntityStatusUpdate: Schema.Struct<{
10248
+ readonly status: Schema.Literals<readonly [
10249
+ "active",
10250
+ "paused",
10251
+ "archived"
10252
+ ]>;
10253
+ readonly expectedRevision: Schema.Int;
10254
+ }>;
10255
+ export type AdEntityStatusUpdate = typeof AdEntityStatusUpdate.Type;
10256
+ export declare const AdBudgetUpdateInput: Schema.Struct<{
10257
+ readonly budget: Schema.Struct<{
10258
+ readonly amountMinor: Schema.Int;
10259
+ readonly currency: Schema.String;
10260
+ readonly kind: Schema.Literals<readonly [
10261
+ "daily",
10262
+ "lifetime"
10263
+ ]>;
10264
+ }>;
10265
+ readonly expectedRevision: Schema.Int;
10266
+ }>;
10267
+ export type AdBudgetUpdateInput = typeof AdBudgetUpdateInput.Type;
10268
+ export declare const AdAdGroupCreateInput: Schema.Struct<{
10269
+ readonly name: Schema.String;
10270
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10271
+ readonly amountMinor: Schema.Int;
10272
+ readonly currency: Schema.String;
10273
+ readonly kind: Schema.Literals<readonly [
10274
+ "daily",
10275
+ "lifetime"
10276
+ ]>;
10277
+ }>>;
10278
+ readonly targeting: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10279
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10280
+ }>;
10281
+ export type AdAdGroupCreateInput = typeof AdAdGroupCreateInput.Type;
10282
+ export declare const AdCreativeCreateInput: Schema.Struct<{
10283
+ readonly actorAccountId: Schema.brand<Schema.String, "AccountId">;
10284
+ readonly mediaId: Schema.String;
10285
+ readonly headline: Schema.optionalKey<Schema.String>;
10286
+ readonly body: Schema.optionalKey<Schema.String>;
10287
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10288
+ readonly destinationUrl: Schema.String;
10289
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10290
+ }>;
10291
+ export type AdCreativeCreateInput = typeof AdCreativeCreateInput.Type;
10292
+ export declare const AdCampaignDuplicateInput: Schema.Struct<{
10293
+ readonly name: Schema.optionalKey<Schema.String>;
10294
+ }>;
10295
+ export type AdCampaignDuplicateInput = typeof AdCampaignDuplicateInput.Type;
10296
+ export declare const AdAttachAdInput: Schema.Struct<{
10297
+ readonly name: Schema.String;
10298
+ readonly creativeId: Schema.optionalKey<Schema.brand<Schema.String, "AdCreativeId">>;
10299
+ readonly creative: Schema.optionalKey<Schema.Struct<{
10300
+ readonly headline: Schema.optionalKey<Schema.String>;
10301
+ readonly body: Schema.optionalKey<Schema.String>;
10302
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10303
+ readonly destinationUrl: Schema.optionalKey<Schema.String>;
10304
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10305
+ }>>;
10306
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10307
+ }>;
10308
+ export type AdAttachAdInput = typeof AdAttachAdInput.Type;
9944
10309
  export declare const AdAccount: Schema.Struct<{
9945
10310
  readonly id: Schema.brand<Schema.String, "AccountId">;
9946
10311
  readonly name: Schema.String;
@@ -9952,7 +10317,8 @@ export declare const AdAccount: Schema.Struct<{
9952
10317
  "tiktok_ads",
9953
10318
  "linkedin_ads",
9954
10319
  "snapchat_ads",
9955
- "amazon_ads"
10320
+ "amazon_ads",
10321
+ "openai_ads"
9956
10322
  ]>;
9957
10323
  readonly accountKind: Schema.Literal<"ad_account">;
9958
10324
  readonly available: Schema.Boolean;
@@ -9966,7 +10332,8 @@ export declare const AdAccount: Schema.Struct<{
9966
10332
  "tiktok_ads",
9967
10333
  "linkedin_ads",
9968
10334
  "snapchat_ads",
9969
- "amazon_ads"
10335
+ "amazon_ads",
10336
+ "openai_ads"
9970
10337
  ]>;
9971
10338
  readonly kind: Schema.Literal<"ad_account">;
9972
10339
  /** Provider-native account ID; provider_accounts.external_id mirrors it. */
@@ -10092,7 +10459,8 @@ export declare const AdAccountList: Schema.Struct<{
10092
10459
  "tiktok_ads",
10093
10460
  "linkedin_ads",
10094
10461
  "snapchat_ads",
10095
- "amazon_ads"
10462
+ "amazon_ads",
10463
+ "openai_ads"
10096
10464
  ]>;
10097
10465
  readonly accountKind: Schema.Literal<"ad_account">;
10098
10466
  readonly available: Schema.Boolean;
@@ -10106,7 +10474,8 @@ export declare const AdAccountList: Schema.Struct<{
10106
10474
  "tiktok_ads",
10107
10475
  "linkedin_ads",
10108
10476
  "snapchat_ads",
10109
- "amazon_ads"
10477
+ "amazon_ads",
10478
+ "openai_ads"
10110
10479
  ]>;
10111
10480
  readonly kind: Schema.Literal<"ad_account">;
10112
10481
  /** Provider-native account ID; provider_accounts.external_id mirrors it. */
@@ -10229,7 +10598,8 @@ export declare const AdConnectInput: Schema.Struct<{
10229
10598
  "tiktok_ads",
10230
10599
  "linkedin_ads",
10231
10600
  "snapchat_ads",
10232
- "amazon_ads"
10601
+ "amazon_ads",
10602
+ "openai_ads"
10233
10603
  ]>;
10234
10604
  /** Reconnect an existing PubNio account; provider is derived when omitted. */
10235
10605
  readonly accountId: Schema.optionalKey<Schema.brand<Schema.String, "AccountId">>;
@@ -10245,12 +10615,29 @@ export declare const AdConnectLaunch: Schema.Struct<{
10245
10615
  "tiktok_ads",
10246
10616
  "linkedin_ads",
10247
10617
  "snapchat_ads",
10248
- "amazon_ads"
10618
+ "amazon_ads",
10619
+ "openai_ads"
10249
10620
  ]>;
10250
10621
  readonly url: Schema.String;
10251
10622
  readonly status: Schema.Literal<"pending">;
10252
10623
  }>;
10253
10624
  export type AdConnectLaunch = typeof AdConnectLaunch.Type;
10625
+ /** API-key providers connect in one call; there is no OAuth redirect. */
10626
+ export declare const AdApiKeyConnectInput: Schema.Struct<{
10627
+ readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
10628
+ readonly provider: Schema.Literal<"openai_ads">;
10629
+ readonly apiKey: Schema.String;
10630
+ /** Reconnect an existing PubNio account; the key must resolve to it. */
10631
+ readonly accountId: Schema.optionalKey<Schema.brand<Schema.String, "AccountId">>;
10632
+ readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
10633
+ }>;
10634
+ export type AdApiKeyConnectInput = typeof AdApiKeyConnectInput.Type;
10635
+ export declare const AdApiKeyConnectResult: Schema.Struct<{
10636
+ readonly provider: Schema.Literal<"openai_ads">;
10637
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
10638
+ readonly status: Schema.Literal<"connected">;
10639
+ }>;
10640
+ export type AdApiKeyConnectResult = typeof AdApiKeyConnectResult.Type;
10254
10641
  export declare const AdAccountSelection: Schema.Struct<{
10255
10642
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
10256
10643
  readonly selected: Schema.Literal<true>;
@@ -10299,7 +10686,8 @@ export declare const AdValidation: Schema.Struct<{
10299
10686
  "tiktok_ads",
10300
10687
  "linkedin_ads",
10301
10688
  "snapchat_ads",
10302
- "amazon_ads"
10689
+ "amazon_ads",
10690
+ "openai_ads"
10303
10691
  ]>;
10304
10692
  readonly actorAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
10305
10693
  readonly currency: Schema.String;
@@ -10349,77 +10737,748 @@ export declare const AdBoostDraft: Schema.Struct<{
10349
10737
  readonly targeting: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10350
10738
  }>;
10351
10739
  export type AdBoostDraft = typeof AdBoostDraft.Type;
10352
- export declare const AdCampaign: Schema.Struct<{
10353
- readonly id: Schema.brand<Schema.String, "AdCampaignId">;
10354
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
10355
- readonly provider: Schema.Literals<readonly [
10356
- "meta_ads",
10357
- "google_ads",
10358
- "reddit_ads",
10359
- "pinterest_ads",
10360
- "tiktok_ads",
10361
- "linkedin_ads",
10362
- "snapchat_ads",
10363
- "amazon_ads"
10740
+ export declare const AdCampaignPlanCapability: Schema.Literals<readonly [
10741
+ "campaign.create",
10742
+ "ad_group.create",
10743
+ "creative.create",
10744
+ "ad.create",
10745
+ "campaign.activate",
10746
+ "campaign.pause",
10747
+ "campaign.archive",
10748
+ "ad_group.activate",
10749
+ "ad_group.pause",
10750
+ "ad_group.archive",
10751
+ "ad.activate",
10752
+ "ad.pause",
10753
+ "ad.archive",
10754
+ "budget.update",
10755
+ "boost.create"
10756
+ ]>;
10757
+ export type AdCampaignPlanCapability = typeof AdCampaignPlanCapability.Type;
10758
+ export declare const AdCampaignPlanProfile: Schema.Struct<{
10759
+ readonly budgetOwner: Schema.Literals<readonly [
10760
+ "campaign",
10761
+ "ad_group",
10762
+ "shared"
10364
10763
  ]>;
10365
- readonly externalId: Schema.String;
10366
- readonly name: Schema.String;
10367
- readonly objective: Schema.Literals<readonly [
10368
- "awareness",
10369
- "traffic",
10370
- "engagement",
10371
- "leads",
10372
- "sales",
10373
- "app_promotion",
10374
- "video_views",
10375
- "reach",
10376
- "conversions",
10377
- "unknown"
10764
+ readonly maxAdGroups: Schema.optionalKey<Schema.Int>;
10765
+ readonly budgetUnit: Schema.Literals<readonly [
10766
+ "minor",
10767
+ "micros"
10378
10768
  ]>;
10379
- readonly status: Schema.Literals<readonly [
10380
- "draft",
10381
- "paused",
10382
- "activating",
10383
- "active",
10384
- "pending_review",
10385
- "rejected",
10386
- "completed",
10387
- "archived",
10388
- "unknown"
10769
+ readonly hierarchy: Schema.$Array<Schema.Literals<readonly [
10770
+ "campaign",
10771
+ "ad_group",
10772
+ "creative",
10773
+ "ad"
10774
+ ]>>;
10775
+ readonly actor: Schema.Literals<readonly [
10776
+ "required",
10777
+ "none"
10389
10778
  ]>;
10390
- readonly providerStatus: Schema.NullOr<Schema.String>;
10391
- readonly managed: Schema.Literals<readonly [
10392
- "provider",
10393
- "pubnio"
10779
+ readonly creative: Schema.Literals<readonly [
10780
+ "separate",
10781
+ "embedded"
10394
10782
  ]>;
10395
- readonly revision: Schema.Int;
10396
- readonly budget: Schema.NullOr<Schema.Struct<{
10783
+ readonly review: Schema.Literals<readonly [
10784
+ "sync",
10785
+ "pending",
10786
+ "async"
10787
+ ]>;
10788
+ readonly activation: Schema.Literals<readonly [
10789
+ "campaign",
10790
+ "ad_group"
10791
+ ]>;
10792
+ }>;
10793
+ export type AdCampaignPlanProfile = typeof AdCampaignPlanProfile.Type;
10794
+ export declare const AdCampaignPlanTarget: Schema.Struct<{
10795
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
10796
+ readonly actorAccountId: Schema.optionalKey<Schema.brand<Schema.String, "AccountId">>;
10797
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10397
10798
  readonly amountMinor: Schema.Int;
10398
10799
  readonly currency: Schema.String;
10800
+ readonly kind: Schema.Literals<readonly [
10801
+ "daily",
10802
+ "lifetime"
10803
+ ]>;
10399
10804
  }>>;
10400
- readonly bidStrategy: Schema.NullOr<Schema.String>;
10401
- readonly schedule: Schema.Struct<{
10805
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
10402
10806
  readonly startAt: Schema.NullOr<Schema.String>;
10403
10807
  readonly endAt: Schema.NullOr<Schema.String>;
10404
10808
  readonly timezone: Schema.String;
10405
- }>;
10406
- readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
10407
- readonly syncedAt: Schema.String;
10809
+ }>>;
10810
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10408
10811
  }>;
10409
- export type AdCampaign = typeof AdCampaign.Type;
10410
- export declare const AdGroup: Schema.Struct<{
10411
- readonly id: Schema.brand<Schema.String, "AdGroupId">;
10412
- readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
10413
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
10414
- readonly provider: Schema.Literals<readonly [
10415
- "meta_ads",
10416
- "google_ads",
10812
+ export type AdCampaignPlanTarget = typeof AdCampaignPlanTarget.Type;
10813
+ export declare const AdCampaignPlanCreative: Schema.Struct<{
10814
+ readonly headline: Schema.optionalKey<Schema.String>;
10815
+ readonly body: Schema.optionalKey<Schema.String>;
10816
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10817
+ readonly destinationUrl: Schema.optionalKey<Schema.String>;
10818
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
10819
+ Schema.Struct<{
10820
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
10821
+ }>,
10822
+ Schema.Struct<{
10823
+ readonly url: Schema.String;
10824
+ }>
10825
+ ]>>>;
10826
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10827
+ }>;
10828
+ export type AdCampaignPlanCreative = typeof AdCampaignPlanCreative.Type;
10829
+ export declare const AdCampaignPlanAd: Schema.Struct<{
10830
+ readonly name: Schema.String;
10831
+ readonly creative: Schema.Struct<{
10832
+ readonly headline: Schema.optionalKey<Schema.String>;
10833
+ readonly body: Schema.optionalKey<Schema.String>;
10834
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10835
+ readonly destinationUrl: Schema.optionalKey<Schema.String>;
10836
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
10837
+ Schema.Struct<{
10838
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
10839
+ }>,
10840
+ Schema.Struct<{
10841
+ readonly url: Schema.String;
10842
+ }>
10843
+ ]>>>;
10844
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10845
+ }>;
10846
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10847
+ }>;
10848
+ export type AdCampaignPlanAd = typeof AdCampaignPlanAd.Type;
10849
+ export declare const AdCampaignPlanAdGroup: Schema.Struct<{
10850
+ readonly name: Schema.String;
10851
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10852
+ readonly amountMinor: Schema.Int;
10853
+ readonly currency: Schema.String;
10854
+ readonly kind: Schema.Literals<readonly [
10855
+ "daily",
10856
+ "lifetime"
10857
+ ]>;
10858
+ }>>;
10859
+ readonly targeting: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10860
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10861
+ readonly ads: Schema.$Array<Schema.Struct<{
10862
+ readonly name: Schema.String;
10863
+ readonly creative: Schema.Struct<{
10864
+ readonly headline: Schema.optionalKey<Schema.String>;
10865
+ readonly body: Schema.optionalKey<Schema.String>;
10866
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10867
+ readonly destinationUrl: Schema.optionalKey<Schema.String>;
10868
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
10869
+ Schema.Struct<{
10870
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
10871
+ }>,
10872
+ Schema.Struct<{
10873
+ readonly url: Schema.String;
10874
+ }>
10875
+ ]>>>;
10876
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10877
+ }>;
10878
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10879
+ }>>;
10880
+ }>;
10881
+ export type AdCampaignPlanAdGroup = typeof AdCampaignPlanAdGroup.Type;
10882
+ export declare const AdCampaignPlan: Schema.Struct<{
10883
+ readonly name: Schema.String;
10884
+ readonly objective: Schema.Literals<readonly [
10885
+ "awareness",
10886
+ "traffic",
10887
+ "engagement",
10888
+ "leads",
10889
+ "sales",
10890
+ "app_promotion",
10891
+ "video_views",
10892
+ "reach",
10893
+ "conversions",
10894
+ "unknown"
10895
+ ]>;
10896
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10897
+ readonly amountMinor: Schema.Int;
10898
+ readonly currency: Schema.String;
10899
+ readonly kind: Schema.Literals<readonly [
10900
+ "daily",
10901
+ "lifetime"
10902
+ ]>;
10903
+ }>>;
10904
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
10905
+ readonly startAt: Schema.NullOr<Schema.String>;
10906
+ readonly endAt: Schema.NullOr<Schema.String>;
10907
+ readonly timezone: Schema.String;
10908
+ }>>;
10909
+ readonly targets: Schema.$Array<Schema.Struct<{
10910
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
10911
+ readonly actorAccountId: Schema.optionalKey<Schema.brand<Schema.String, "AccountId">>;
10912
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10913
+ readonly amountMinor: Schema.Int;
10914
+ readonly currency: Schema.String;
10915
+ readonly kind: Schema.Literals<readonly [
10916
+ "daily",
10917
+ "lifetime"
10918
+ ]>;
10919
+ }>>;
10920
+ readonly schedule: Schema.optionalKey<Schema.Struct<{
10921
+ readonly startAt: Schema.NullOr<Schema.String>;
10922
+ readonly endAt: Schema.NullOr<Schema.String>;
10923
+ readonly timezone: Schema.String;
10924
+ }>>;
10925
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10926
+ }>>;
10927
+ readonly adGroups: Schema.$Array<Schema.Struct<{
10928
+ readonly name: Schema.String;
10929
+ readonly budget: Schema.optionalKey<Schema.Struct<{
10930
+ readonly amountMinor: Schema.Int;
10931
+ readonly currency: Schema.String;
10932
+ readonly kind: Schema.Literals<readonly [
10933
+ "daily",
10934
+ "lifetime"
10935
+ ]>;
10936
+ }>>;
10937
+ readonly targeting: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10938
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10939
+ readonly ads: Schema.$Array<Schema.Struct<{
10940
+ readonly name: Schema.String;
10941
+ readonly creative: Schema.Struct<{
10942
+ readonly headline: Schema.optionalKey<Schema.String>;
10943
+ readonly body: Schema.optionalKey<Schema.String>;
10944
+ readonly callToAction: Schema.optionalKey<Schema.String>;
10945
+ readonly destinationUrl: Schema.optionalKey<Schema.String>;
10946
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
10947
+ Schema.Struct<{
10948
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
10949
+ }>,
10950
+ Schema.Struct<{
10951
+ readonly url: Schema.String;
10952
+ }>
10953
+ ]>>>;
10954
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10955
+ }>;
10956
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10957
+ }>>;
10958
+ }>>;
10959
+ readonly providerSettings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
10960
+ }>;
10961
+ export type AdCampaignPlan = typeof AdCampaignPlan.Type;
10962
+ export declare const AdCampaignPlanTargetValidation: Schema.Struct<{
10963
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
10964
+ readonly provider: Schema.optionalKey<Schema.Literals<readonly [
10965
+ "meta_ads",
10966
+ "google_ads",
10967
+ "reddit_ads",
10968
+ "pinterest_ads",
10969
+ "tiktok_ads",
10970
+ "linkedin_ads",
10971
+ "snapchat_ads",
10972
+ "amazon_ads",
10973
+ "openai_ads"
10974
+ ]>>;
10975
+ readonly name: Schema.optionalKey<Schema.String>;
10976
+ readonly currency: Schema.optionalKey<Schema.String>;
10977
+ readonly budget: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
10978
+ readonly amountMinor: Schema.Int;
10979
+ readonly currency: Schema.String;
10980
+ readonly kind: Schema.Literals<readonly [
10981
+ "daily",
10982
+ "lifetime"
10983
+ ]>;
10984
+ }>>>;
10985
+ readonly profile: Schema.optionalKey<Schema.Struct<{
10986
+ readonly budgetOwner: Schema.Literals<readonly [
10987
+ "campaign",
10988
+ "ad_group",
10989
+ "shared"
10990
+ ]>;
10991
+ readonly maxAdGroups: Schema.optionalKey<Schema.Int>;
10992
+ readonly budgetUnit: Schema.Literals<readonly [
10993
+ "minor",
10994
+ "micros"
10995
+ ]>;
10996
+ readonly hierarchy: Schema.$Array<Schema.Literals<readonly [
10997
+ "campaign",
10998
+ "ad_group",
10999
+ "creative",
11000
+ "ad"
11001
+ ]>>;
11002
+ readonly actor: Schema.Literals<readonly [
11003
+ "required",
11004
+ "none"
11005
+ ]>;
11006
+ readonly creative: Schema.Literals<readonly [
11007
+ "separate",
11008
+ "embedded"
11009
+ ]>;
11010
+ readonly review: Schema.Literals<readonly [
11011
+ "sync",
11012
+ "pending",
11013
+ "async"
11014
+ ]>;
11015
+ readonly activation: Schema.Literals<readonly [
11016
+ "campaign",
11017
+ "ad_group"
11018
+ ]>;
11019
+ }>>;
11020
+ readonly capabilities: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
11021
+ "campaign.create",
11022
+ "ad_group.create",
11023
+ "creative.create",
11024
+ "ad.create",
11025
+ "campaign.activate",
11026
+ "campaign.pause",
11027
+ "campaign.archive",
11028
+ "ad_group.activate",
11029
+ "ad_group.pause",
11030
+ "ad_group.archive",
11031
+ "ad.activate",
11032
+ "ad.pause",
11033
+ "ad.archive",
11034
+ "budget.update",
11035
+ "boost.create"
11036
+ ]>>>;
11037
+ readonly issues: Schema.$Array<Schema.Struct<{
11038
+ readonly code: Schema.String;
11039
+ readonly message: Schema.String;
11040
+ readonly field: Schema.optionalKey<Schema.String>;
11041
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11042
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11043
+ readonly retryable: Schema.Boolean;
11044
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11045
+ }>>;
11046
+ }>;
11047
+ export type AdCampaignPlanTargetValidation = typeof AdCampaignPlanTargetValidation.Type;
11048
+ export declare const AdCampaignPlanValidation: Schema.Struct<{
11049
+ readonly valid: Schema.Boolean;
11050
+ readonly issues: Schema.$Array<Schema.Struct<{
11051
+ readonly code: Schema.String;
11052
+ readonly message: Schema.String;
11053
+ readonly field: Schema.optionalKey<Schema.String>;
11054
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11055
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11056
+ readonly retryable: Schema.Boolean;
11057
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11058
+ }>>;
11059
+ readonly targets: Schema.$Array<Schema.Struct<{
11060
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11061
+ readonly provider: Schema.optionalKey<Schema.Literals<readonly [
11062
+ "meta_ads",
11063
+ "google_ads",
11064
+ "reddit_ads",
11065
+ "pinterest_ads",
11066
+ "tiktok_ads",
11067
+ "linkedin_ads",
11068
+ "snapchat_ads",
11069
+ "amazon_ads",
11070
+ "openai_ads"
11071
+ ]>>;
11072
+ readonly name: Schema.optionalKey<Schema.String>;
11073
+ readonly currency: Schema.optionalKey<Schema.String>;
11074
+ readonly budget: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
11075
+ readonly amountMinor: Schema.Int;
11076
+ readonly currency: Schema.String;
11077
+ readonly kind: Schema.Literals<readonly [
11078
+ "daily",
11079
+ "lifetime"
11080
+ ]>;
11081
+ }>>>;
11082
+ readonly profile: Schema.optionalKey<Schema.Struct<{
11083
+ readonly budgetOwner: Schema.Literals<readonly [
11084
+ "campaign",
11085
+ "ad_group",
11086
+ "shared"
11087
+ ]>;
11088
+ readonly maxAdGroups: Schema.optionalKey<Schema.Int>;
11089
+ readonly budgetUnit: Schema.Literals<readonly [
11090
+ "minor",
11091
+ "micros"
11092
+ ]>;
11093
+ readonly hierarchy: Schema.$Array<Schema.Literals<readonly [
11094
+ "campaign",
11095
+ "ad_group",
11096
+ "creative",
11097
+ "ad"
11098
+ ]>>;
11099
+ readonly actor: Schema.Literals<readonly [
11100
+ "required",
11101
+ "none"
11102
+ ]>;
11103
+ readonly creative: Schema.Literals<readonly [
11104
+ "separate",
11105
+ "embedded"
11106
+ ]>;
11107
+ readonly review: Schema.Literals<readonly [
11108
+ "sync",
11109
+ "pending",
11110
+ "async"
11111
+ ]>;
11112
+ readonly activation: Schema.Literals<readonly [
11113
+ "campaign",
11114
+ "ad_group"
11115
+ ]>;
11116
+ }>>;
11117
+ readonly capabilities: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
11118
+ "campaign.create",
11119
+ "ad_group.create",
11120
+ "creative.create",
11121
+ "ad.create",
11122
+ "campaign.activate",
11123
+ "campaign.pause",
11124
+ "campaign.archive",
11125
+ "ad_group.activate",
11126
+ "ad_group.pause",
11127
+ "ad_group.archive",
11128
+ "ad.activate",
11129
+ "ad.pause",
11130
+ "ad.archive",
11131
+ "budget.update",
11132
+ "boost.create"
11133
+ ]>>>;
11134
+ readonly issues: Schema.$Array<Schema.Struct<{
11135
+ readonly code: Schema.String;
11136
+ readonly message: Schema.String;
11137
+ readonly field: Schema.optionalKey<Schema.String>;
11138
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11139
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11140
+ readonly retryable: Schema.Boolean;
11141
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11142
+ }>>;
11143
+ }>>;
11144
+ }>;
11145
+ export type AdCampaignPlanValidation = typeof AdCampaignPlanValidation.Type;
11146
+ export declare const AdCampaignPlanStatus: Schema.Literals<readonly [
11147
+ "queued",
11148
+ "creating",
11149
+ "partial",
11150
+ "succeeded",
11151
+ "failed",
11152
+ "unresolved"
11153
+ ]>;
11154
+ export type AdCampaignPlanStatus = typeof AdCampaignPlanStatus.Type;
11155
+ export declare const AdCampaignPlanTargetAccepted: Schema.Struct<{
11156
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11157
+ readonly provider: Schema.Literals<readonly [
11158
+ "meta_ads",
11159
+ "google_ads",
11160
+ "reddit_ads",
11161
+ "pinterest_ads",
11162
+ "tiktok_ads",
11163
+ "linkedin_ads",
11164
+ "snapchat_ads",
11165
+ "amazon_ads",
11166
+ "openai_ads"
11167
+ ]>;
11168
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11169
+ readonly status: Schema.Literals<readonly [
11170
+ "queued",
11171
+ "preflight",
11172
+ "creating",
11173
+ "recording",
11174
+ "reviewing",
11175
+ "activating",
11176
+ "succeeded",
11177
+ "partial",
11178
+ "failed",
11179
+ "unresolved",
11180
+ "cancelled"
11181
+ ]>;
11182
+ }>;
11183
+ export type AdCampaignPlanTargetAccepted = typeof AdCampaignPlanTargetAccepted.Type;
11184
+ export declare const AdCampaignPlanAccepted: Schema.Struct<{
11185
+ readonly planId: Schema.String;
11186
+ readonly status: Schema.Literals<readonly [
11187
+ "queued",
11188
+ "creating",
11189
+ "partial",
11190
+ "succeeded",
11191
+ "failed",
11192
+ "unresolved"
11193
+ ]>;
11194
+ readonly targets: Schema.$Array<Schema.Struct<{
11195
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11196
+ readonly provider: Schema.Literals<readonly [
11197
+ "meta_ads",
11198
+ "google_ads",
11199
+ "reddit_ads",
11200
+ "pinterest_ads",
11201
+ "tiktok_ads",
11202
+ "linkedin_ads",
11203
+ "snapchat_ads",
11204
+ "amazon_ads",
11205
+ "openai_ads"
11206
+ ]>;
11207
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11208
+ readonly status: Schema.Literals<readonly [
11209
+ "queued",
11210
+ "preflight",
11211
+ "creating",
11212
+ "recording",
11213
+ "reviewing",
11214
+ "activating",
11215
+ "succeeded",
11216
+ "partial",
11217
+ "failed",
11218
+ "unresolved",
11219
+ "cancelled"
11220
+ ]>;
11221
+ }>>;
11222
+ }>;
11223
+ export type AdCampaignPlanAccepted = typeof AdCampaignPlanAccepted.Type;
11224
+ export declare const AdCampaignPlanListRow: Schema.Struct<{
11225
+ readonly planId: Schema.String;
11226
+ readonly status: Schema.Literals<readonly [
11227
+ "queued",
11228
+ "creating",
11229
+ "partial",
11230
+ "succeeded",
11231
+ "failed",
11232
+ "unresolved"
11233
+ ]>;
11234
+ readonly createdAt: Schema.String;
11235
+ readonly targets: Schema.$Array<Schema.Struct<{
11236
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11237
+ readonly provider: Schema.Literals<readonly [
11238
+ "meta_ads",
11239
+ "google_ads",
11240
+ "reddit_ads",
11241
+ "pinterest_ads",
11242
+ "tiktok_ads",
11243
+ "linkedin_ads",
11244
+ "snapchat_ads",
11245
+ "amazon_ads",
11246
+ "openai_ads"
11247
+ ]>;
11248
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11249
+ readonly status: Schema.Literals<readonly [
11250
+ "queued",
11251
+ "preflight",
11252
+ "creating",
11253
+ "recording",
11254
+ "reviewing",
11255
+ "activating",
11256
+ "succeeded",
11257
+ "partial",
11258
+ "failed",
11259
+ "unresolved",
11260
+ "cancelled"
11261
+ ]>;
11262
+ }>>;
11263
+ }>;
11264
+ export type AdCampaignPlanListRow = typeof AdCampaignPlanListRow.Type;
11265
+ export declare const AdCampaignPlanList: Schema.Struct<{
11266
+ readonly hasMore: Schema.Boolean;
11267
+ readonly nextCursor: Schema.optionalKey<Schema.String>;
11268
+ readonly data: Schema.$Array<Schema.Struct<{
11269
+ readonly planId: Schema.String;
11270
+ readonly status: Schema.Literals<readonly [
11271
+ "queued",
11272
+ "creating",
11273
+ "partial",
11274
+ "succeeded",
11275
+ "failed",
11276
+ "unresolved"
11277
+ ]>;
11278
+ readonly createdAt: Schema.String;
11279
+ readonly targets: Schema.$Array<Schema.Struct<{
11280
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11281
+ readonly provider: Schema.Literals<readonly [
11282
+ "meta_ads",
11283
+ "google_ads",
11284
+ "reddit_ads",
11285
+ "pinterest_ads",
11286
+ "tiktok_ads",
11287
+ "linkedin_ads",
11288
+ "snapchat_ads",
11289
+ "amazon_ads",
11290
+ "openai_ads"
11291
+ ]>;
11292
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11293
+ readonly status: Schema.Literals<readonly [
11294
+ "queued",
11295
+ "preflight",
11296
+ "creating",
11297
+ "recording",
11298
+ "reviewing",
11299
+ "activating",
11300
+ "succeeded",
11301
+ "partial",
11302
+ "failed",
11303
+ "unresolved",
11304
+ "cancelled"
11305
+ ]>;
11306
+ }>>;
11307
+ }>>;
11308
+ }>;
11309
+ export type AdCampaignPlanList = typeof AdCampaignPlanList.Type;
11310
+ export declare const AdCampaignPlanTargetDetail: Schema.Struct<{
11311
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11312
+ readonly provider: Schema.Literals<readonly [
11313
+ "meta_ads",
11314
+ "google_ads",
11315
+ "reddit_ads",
11316
+ "pinterest_ads",
11317
+ "tiktok_ads",
11318
+ "linkedin_ads",
11319
+ "snapchat_ads",
11320
+ "amazon_ads",
11321
+ "openai_ads"
11322
+ ]>;
11323
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11324
+ readonly campaignId: Schema.NullOr<Schema.brand<Schema.String, "AdCampaignId">>;
11325
+ readonly status: Schema.Literals<readonly [
11326
+ "queued",
11327
+ "preflight",
11328
+ "creating",
11329
+ "recording",
11330
+ "reviewing",
11331
+ "activating",
11332
+ "succeeded",
11333
+ "partial",
11334
+ "failed",
11335
+ "unresolved",
11336
+ "cancelled"
11337
+ ]>;
11338
+ readonly issues: Schema.$Array<Schema.Struct<{
11339
+ readonly code: Schema.String;
11340
+ readonly message: Schema.String;
11341
+ readonly field: Schema.optionalKey<Schema.String>;
11342
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11343
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11344
+ readonly retryable: Schema.Boolean;
11345
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11346
+ }>>;
11347
+ }>;
11348
+ export type AdCampaignPlanTargetDetail = typeof AdCampaignPlanTargetDetail.Type;
11349
+ export declare const AdCampaignPlanDetail: Schema.Struct<{
11350
+ readonly planId: Schema.String;
11351
+ readonly status: Schema.Literals<readonly [
11352
+ "queued",
11353
+ "creating",
11354
+ "partial",
11355
+ "succeeded",
11356
+ "failed",
11357
+ "unresolved"
11358
+ ]>;
11359
+ readonly createdAt: Schema.String;
11360
+ readonly targets: Schema.$Array<Schema.Struct<{
11361
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11362
+ readonly provider: Schema.Literals<readonly [
11363
+ "meta_ads",
11364
+ "google_ads",
11365
+ "reddit_ads",
11366
+ "pinterest_ads",
11367
+ "tiktok_ads",
11368
+ "linkedin_ads",
11369
+ "snapchat_ads",
11370
+ "amazon_ads",
11371
+ "openai_ads"
11372
+ ]>;
11373
+ readonly operationId: Schema.brand<Schema.String, "AdOperationId">;
11374
+ readonly campaignId: Schema.NullOr<Schema.brand<Schema.String, "AdCampaignId">>;
11375
+ readonly status: Schema.Literals<readonly [
11376
+ "queued",
11377
+ "preflight",
11378
+ "creating",
11379
+ "recording",
11380
+ "reviewing",
11381
+ "activating",
11382
+ "succeeded",
11383
+ "partial",
11384
+ "failed",
11385
+ "unresolved",
11386
+ "cancelled"
11387
+ ]>;
11388
+ readonly issues: Schema.$Array<Schema.Struct<{
11389
+ readonly code: Schema.String;
11390
+ readonly message: Schema.String;
11391
+ readonly field: Schema.optionalKey<Schema.String>;
11392
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11393
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11394
+ readonly retryable: Schema.Boolean;
11395
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11396
+ }>>;
11397
+ }>>;
11398
+ readonly issues: Schema.$Array<Schema.Struct<{
11399
+ readonly code: Schema.String;
11400
+ readonly message: Schema.String;
11401
+ readonly field: Schema.optionalKey<Schema.String>;
11402
+ readonly providerCode: Schema.optionalKey<Schema.String>;
11403
+ readonly missingScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
11404
+ readonly retryable: Schema.Boolean;
11405
+ readonly providerMessage: Schema.optionalKey<Schema.String>;
11406
+ }>>;
11407
+ }>;
11408
+ export type AdCampaignPlanDetail = typeof AdCampaignPlanDetail.Type;
11409
+ export declare const AdCampaign: Schema.Struct<{
11410
+ readonly id: Schema.brand<Schema.String, "AdCampaignId">;
11411
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11412
+ readonly provider: Schema.Literals<readonly [
11413
+ "meta_ads",
11414
+ "google_ads",
11415
+ "reddit_ads",
11416
+ "pinterest_ads",
11417
+ "tiktok_ads",
11418
+ "linkedin_ads",
11419
+ "snapchat_ads",
11420
+ "amazon_ads",
11421
+ "openai_ads"
11422
+ ]>;
11423
+ readonly externalId: Schema.String;
11424
+ readonly name: Schema.String;
11425
+ readonly objective: Schema.Literals<readonly [
11426
+ "awareness",
11427
+ "traffic",
11428
+ "engagement",
11429
+ "leads",
11430
+ "sales",
11431
+ "app_promotion",
11432
+ "video_views",
11433
+ "reach",
11434
+ "conversions",
11435
+ "unknown"
11436
+ ]>;
11437
+ readonly status: Schema.Literals<readonly [
11438
+ "draft",
11439
+ "paused",
11440
+ "activating",
11441
+ "active",
11442
+ "pending_review",
11443
+ "rejected",
11444
+ "completed",
11445
+ "archived",
11446
+ "unknown"
11447
+ ]>;
11448
+ readonly providerStatus: Schema.NullOr<Schema.String>;
11449
+ readonly managed: Schema.Literals<readonly [
11450
+ "provider",
11451
+ "pubnio"
11452
+ ]>;
11453
+ readonly revision: Schema.Int;
11454
+ readonly budget: Schema.NullOr<Schema.Struct<{
11455
+ readonly amountMinor: Schema.Int;
11456
+ readonly currency: Schema.String;
11457
+ }>>;
11458
+ readonly bidStrategy: Schema.NullOr<Schema.String>;
11459
+ readonly schedule: Schema.Struct<{
11460
+ readonly startAt: Schema.NullOr<Schema.String>;
11461
+ readonly endAt: Schema.NullOr<Schema.String>;
11462
+ readonly timezone: Schema.String;
11463
+ }>;
11464
+ readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
11465
+ readonly syncedAt: Schema.String;
11466
+ }>;
11467
+ export type AdCampaign = typeof AdCampaign.Type;
11468
+ export declare const AdGroup: Schema.Struct<{
11469
+ readonly id: Schema.brand<Schema.String, "AdGroupId">;
11470
+ readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
11471
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11472
+ readonly provider: Schema.Literals<readonly [
11473
+ "meta_ads",
11474
+ "google_ads",
10417
11475
  "reddit_ads",
10418
11476
  "pinterest_ads",
10419
11477
  "tiktok_ads",
10420
11478
  "linkedin_ads",
10421
11479
  "snapchat_ads",
10422
- "amazon_ads"
11480
+ "amazon_ads",
11481
+ "openai_ads"
10423
11482
  ]>;
10424
11483
  readonly kind: Schema.String;
10425
11484
  readonly externalId: Schema.String;
@@ -10458,7 +11517,8 @@ export declare const AdCreative: Schema.Struct<{
10458
11517
  "tiktok_ads",
10459
11518
  "linkedin_ads",
10460
11519
  "snapchat_ads",
10461
- "amazon_ads"
11520
+ "amazon_ads",
11521
+ "openai_ads"
10462
11522
  ]>;
10463
11523
  readonly externalId: Schema.String;
10464
11524
  readonly kind: Schema.String;
@@ -10605,7 +11665,8 @@ export declare const Ad: Schema.Struct<{
10605
11665
  "tiktok_ads",
10606
11666
  "linkedin_ads",
10607
11667
  "snapchat_ads",
10608
- "amazon_ads"
11668
+ "amazon_ads",
11669
+ "openai_ads"
10609
11670
  ]>;
10610
11671
  readonly externalId: Schema.String;
10611
11672
  readonly name: Schema.String;
@@ -10636,7 +11697,8 @@ export declare const Ad: Schema.Struct<{
10636
11697
  "tiktok_ads",
10637
11698
  "linkedin_ads",
10638
11699
  "snapchat_ads",
10639
- "amazon_ads"
11700
+ "amazon_ads",
11701
+ "openai_ads"
10640
11702
  ]>;
10641
11703
  readonly externalId: Schema.String;
10642
11704
  readonly kind: Schema.String;
@@ -10687,8 +11749,255 @@ export declare const Ad: Schema.Struct<{
10687
11749
  }>;
10688
11750
  }>>>;
10689
11751
  }>;
10690
- export type Ad = typeof Ad.Type;
10691
- export declare const AdCampaignList: Schema.Struct<{
11752
+ export type Ad = typeof Ad.Type;
11753
+ export declare const AdCampaignList: Schema.Struct<{
11754
+ readonly freshness: Schema.Struct<{
11755
+ readonly status: Schema.Literals<readonly [
11756
+ "fresh",
11757
+ "stale",
11758
+ "pending",
11759
+ "partial",
11760
+ "unavailable"
11761
+ ]>;
11762
+ readonly syncedAt: Schema.NullOr<Schema.String>;
11763
+ readonly nextSyncAt: Schema.optionalKey<Schema.String>;
11764
+ readonly retryAfter: Schema.optionalKey<Schema.String>;
11765
+ }>;
11766
+ readonly hasMore: Schema.Boolean;
11767
+ readonly nextCursor: Schema.optionalKey<Schema.String>;
11768
+ readonly data: Schema.$Array<Schema.Struct<{
11769
+ readonly id: Schema.brand<Schema.String, "AdCampaignId">;
11770
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11771
+ readonly provider: Schema.Literals<readonly [
11772
+ "meta_ads",
11773
+ "google_ads",
11774
+ "reddit_ads",
11775
+ "pinterest_ads",
11776
+ "tiktok_ads",
11777
+ "linkedin_ads",
11778
+ "snapchat_ads",
11779
+ "amazon_ads",
11780
+ "openai_ads"
11781
+ ]>;
11782
+ readonly externalId: Schema.String;
11783
+ readonly name: Schema.String;
11784
+ readonly objective: Schema.Literals<readonly [
11785
+ "awareness",
11786
+ "traffic",
11787
+ "engagement",
11788
+ "leads",
11789
+ "sales",
11790
+ "app_promotion",
11791
+ "video_views",
11792
+ "reach",
11793
+ "conversions",
11794
+ "unknown"
11795
+ ]>;
11796
+ readonly status: Schema.Literals<readonly [
11797
+ "draft",
11798
+ "paused",
11799
+ "activating",
11800
+ "active",
11801
+ "pending_review",
11802
+ "rejected",
11803
+ "completed",
11804
+ "archived",
11805
+ "unknown"
11806
+ ]>;
11807
+ readonly providerStatus: Schema.NullOr<Schema.String>;
11808
+ readonly managed: Schema.Literals<readonly [
11809
+ "provider",
11810
+ "pubnio"
11811
+ ]>;
11812
+ readonly revision: Schema.Int;
11813
+ readonly budget: Schema.NullOr<Schema.Struct<{
11814
+ readonly amountMinor: Schema.Int;
11815
+ readonly currency: Schema.String;
11816
+ }>>;
11817
+ readonly bidStrategy: Schema.NullOr<Schema.String>;
11818
+ readonly schedule: Schema.Struct<{
11819
+ readonly startAt: Schema.NullOr<Schema.String>;
11820
+ readonly endAt: Schema.NullOr<Schema.String>;
11821
+ readonly timezone: Schema.String;
11822
+ }>;
11823
+ readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
11824
+ readonly syncedAt: Schema.String;
11825
+ }>>;
11826
+ }>;
11827
+ export type AdCampaignList = typeof AdCampaignList.Type;
11828
+ export declare const AdGroupListRow: Schema.Struct<{
11829
+ readonly insights: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
11830
+ readonly from: Schema.String;
11831
+ readonly to: Schema.String;
11832
+ readonly level: Schema.Literals<readonly [
11833
+ "campaign",
11834
+ "ad_group",
11835
+ "ad"
11836
+ ]>;
11837
+ readonly totals: Schema.$Array<Schema.Struct<{
11838
+ readonly currency: Schema.String;
11839
+ readonly spend: Schema.Struct<{
11840
+ readonly amountMinor: Schema.Int;
11841
+ readonly currency: Schema.String;
11842
+ }>;
11843
+ readonly impressions: Schema.Int;
11844
+ readonly clicks: Schema.Int;
11845
+ readonly conversions: Schema.Number;
11846
+ readonly revenue: Schema.Struct<{
11847
+ readonly amountMinor: Schema.Int;
11848
+ readonly currency: Schema.String;
11849
+ }>;
11850
+ readonly metrics: Schema.$Record<Schema.String, Schema.Number>;
11851
+ }>>;
11852
+ readonly rowCount: Schema.Int;
11853
+ readonly freshness: Schema.Struct<{
11854
+ readonly status: Schema.Literals<readonly [
11855
+ "fresh",
11856
+ "stale",
11857
+ "pending",
11858
+ "partial",
11859
+ "unavailable"
11860
+ ]>;
11861
+ readonly syncedAt: Schema.NullOr<Schema.String>;
11862
+ readonly nextSyncAt: Schema.optionalKey<Schema.String>;
11863
+ readonly retryAfter: Schema.optionalKey<Schema.String>;
11864
+ }>;
11865
+ }>>>;
11866
+ readonly id: Schema.brand<Schema.String, "AdGroupId">;
11867
+ readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
11868
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11869
+ readonly provider: Schema.Literals<readonly [
11870
+ "meta_ads",
11871
+ "google_ads",
11872
+ "reddit_ads",
11873
+ "pinterest_ads",
11874
+ "tiktok_ads",
11875
+ "linkedin_ads",
11876
+ "snapchat_ads",
11877
+ "amazon_ads",
11878
+ "openai_ads"
11879
+ ]>;
11880
+ readonly kind: Schema.String;
11881
+ readonly externalId: Schema.String;
11882
+ readonly name: Schema.String;
11883
+ readonly status: Schema.Literals<readonly [
11884
+ "draft",
11885
+ "paused",
11886
+ "activating",
11887
+ "active",
11888
+ "pending_review",
11889
+ "rejected",
11890
+ "completed",
11891
+ "archived",
11892
+ "unknown"
11893
+ ]>;
11894
+ readonly providerStatus: Schema.NullOr<Schema.String>;
11895
+ readonly revision: Schema.Int;
11896
+ readonly budget: Schema.NullOr<Schema.Struct<{
11897
+ readonly amountMinor: Schema.Int;
11898
+ readonly currency: Schema.String;
11899
+ }>>;
11900
+ readonly bidStrategy: Schema.NullOr<Schema.String>;
11901
+ readonly targeting: Schema.$Record<Schema.String, Schema.Unknown>;
11902
+ readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
11903
+ readonly syncedAt: Schema.String;
11904
+ }>;
11905
+ export type AdGroupListRow = typeof AdGroupListRow.Type;
11906
+ export declare const AdGroupList: Schema.Struct<{
11907
+ readonly freshness: Schema.Struct<{
11908
+ readonly status: Schema.Literals<readonly [
11909
+ "fresh",
11910
+ "stale",
11911
+ "pending",
11912
+ "partial",
11913
+ "unavailable"
11914
+ ]>;
11915
+ readonly syncedAt: Schema.NullOr<Schema.String>;
11916
+ readonly nextSyncAt: Schema.optionalKey<Schema.String>;
11917
+ readonly retryAfter: Schema.optionalKey<Schema.String>;
11918
+ }>;
11919
+ readonly hasMore: Schema.Boolean;
11920
+ readonly nextCursor: Schema.optionalKey<Schema.String>;
11921
+ readonly data: Schema.$Array<Schema.Struct<{
11922
+ readonly insights: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
11923
+ readonly from: Schema.String;
11924
+ readonly to: Schema.String;
11925
+ readonly level: Schema.Literals<readonly [
11926
+ "campaign",
11927
+ "ad_group",
11928
+ "ad"
11929
+ ]>;
11930
+ readonly totals: Schema.$Array<Schema.Struct<{
11931
+ readonly currency: Schema.String;
11932
+ readonly spend: Schema.Struct<{
11933
+ readonly amountMinor: Schema.Int;
11934
+ readonly currency: Schema.String;
11935
+ }>;
11936
+ readonly impressions: Schema.Int;
11937
+ readonly clicks: Schema.Int;
11938
+ readonly conversions: Schema.Number;
11939
+ readonly revenue: Schema.Struct<{
11940
+ readonly amountMinor: Schema.Int;
11941
+ readonly currency: Schema.String;
11942
+ }>;
11943
+ readonly metrics: Schema.$Record<Schema.String, Schema.Number>;
11944
+ }>>;
11945
+ readonly rowCount: Schema.Int;
11946
+ readonly freshness: Schema.Struct<{
11947
+ readonly status: Schema.Literals<readonly [
11948
+ "fresh",
11949
+ "stale",
11950
+ "pending",
11951
+ "partial",
11952
+ "unavailable"
11953
+ ]>;
11954
+ readonly syncedAt: Schema.NullOr<Schema.String>;
11955
+ readonly nextSyncAt: Schema.optionalKey<Schema.String>;
11956
+ readonly retryAfter: Schema.optionalKey<Schema.String>;
11957
+ }>;
11958
+ }>>>;
11959
+ readonly id: Schema.brand<Schema.String, "AdGroupId">;
11960
+ readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
11961
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
11962
+ readonly provider: Schema.Literals<readonly [
11963
+ "meta_ads",
11964
+ "google_ads",
11965
+ "reddit_ads",
11966
+ "pinterest_ads",
11967
+ "tiktok_ads",
11968
+ "linkedin_ads",
11969
+ "snapchat_ads",
11970
+ "amazon_ads",
11971
+ "openai_ads"
11972
+ ]>;
11973
+ readonly kind: Schema.String;
11974
+ readonly externalId: Schema.String;
11975
+ readonly name: Schema.String;
11976
+ readonly status: Schema.Literals<readonly [
11977
+ "draft",
11978
+ "paused",
11979
+ "activating",
11980
+ "active",
11981
+ "pending_review",
11982
+ "rejected",
11983
+ "completed",
11984
+ "archived",
11985
+ "unknown"
11986
+ ]>;
11987
+ readonly providerStatus: Schema.NullOr<Schema.String>;
11988
+ readonly revision: Schema.Int;
11989
+ readonly budget: Schema.NullOr<Schema.Struct<{
11990
+ readonly amountMinor: Schema.Int;
11991
+ readonly currency: Schema.String;
11992
+ }>>;
11993
+ readonly bidStrategy: Schema.NullOr<Schema.String>;
11994
+ readonly targeting: Schema.$Record<Schema.String, Schema.Unknown>;
11995
+ readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
11996
+ readonly syncedAt: Schema.String;
11997
+ }>>;
11998
+ }>;
11999
+ export type AdGroupList = typeof AdGroupList.Type;
12000
+ export declare const AdList: Schema.Struct<{
10692
12001
  readonly freshness: Schema.Struct<{
10693
12002
  readonly status: Schema.Literals<readonly [
10694
12003
  "fresh",
@@ -10704,8 +12013,11 @@ export declare const AdCampaignList: Schema.Struct<{
10704
12013
  readonly hasMore: Schema.Boolean;
10705
12014
  readonly nextCursor: Schema.optionalKey<Schema.String>;
10706
12015
  readonly data: Schema.$Array<Schema.Struct<{
10707
- readonly id: Schema.brand<Schema.String, "AdCampaignId">;
12016
+ readonly id: Schema.brand<Schema.String, "AdId">;
10708
12017
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
12018
+ readonly campaignId: Schema.brand<Schema.String, "AdCampaignId">;
12019
+ readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
12020
+ readonly creativeId: Schema.NullOr<Schema.brand<Schema.String, "AdCreativeId">>;
10709
12021
  readonly provider: Schema.Literals<readonly [
10710
12022
  "meta_ads",
10711
12023
  "google_ads",
@@ -10714,22 +12026,12 @@ export declare const AdCampaignList: Schema.Struct<{
10714
12026
  "tiktok_ads",
10715
12027
  "linkedin_ads",
10716
12028
  "snapchat_ads",
10717
- "amazon_ads"
12029
+ "amazon_ads",
12030
+ "openai_ads"
10718
12031
  ]>;
10719
12032
  readonly externalId: Schema.String;
10720
12033
  readonly name: Schema.String;
10721
- readonly objective: Schema.Literals<readonly [
10722
- "awareness",
10723
- "traffic",
10724
- "engagement",
10725
- "leads",
10726
- "sales",
10727
- "app_promotion",
10728
- "video_views",
10729
- "reach",
10730
- "conversions",
10731
- "unknown"
10732
- ]>;
12034
+ readonly format: Schema.NullOr<Schema.String>;
10733
12035
  readonly status: Schema.Literals<readonly [
10734
12036
  "draft",
10735
12037
  "paused",
@@ -10742,26 +12044,74 @@ export declare const AdCampaignList: Schema.Struct<{
10742
12044
  "unknown"
10743
12045
  ]>;
10744
12046
  readonly providerStatus: Schema.NullOr<Schema.String>;
10745
- readonly managed: Schema.Literals<readonly [
10746
- "provider",
10747
- "pubnio"
10748
- ]>;
10749
12047
  readonly revision: Schema.Int;
10750
- readonly budget: Schema.NullOr<Schema.Struct<{
10751
- readonly amountMinor: Schema.Int;
10752
- readonly currency: Schema.String;
10753
- }>>;
10754
- readonly bidStrategy: Schema.NullOr<Schema.String>;
10755
- readonly schedule: Schema.Struct<{
10756
- readonly startAt: Schema.NullOr<Schema.String>;
10757
- readonly endAt: Schema.NullOr<Schema.String>;
10758
- readonly timezone: Schema.String;
10759
- }>;
10760
12048
  readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
10761
12049
  readonly syncedAt: Schema.String;
12050
+ readonly creative: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
12051
+ readonly id: Schema.brand<Schema.String, "AdCreativeId">;
12052
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
12053
+ readonly provider: Schema.Literals<readonly [
12054
+ "meta_ads",
12055
+ "google_ads",
12056
+ "reddit_ads",
12057
+ "pinterest_ads",
12058
+ "tiktok_ads",
12059
+ "linkedin_ads",
12060
+ "snapchat_ads",
12061
+ "amazon_ads",
12062
+ "openai_ads"
12063
+ ]>;
12064
+ readonly externalId: Schema.String;
12065
+ readonly kind: Schema.String;
12066
+ readonly actorAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
12067
+ readonly mediaId: Schema.NullOr<Schema.String>;
12068
+ readonly headline: Schema.NullOr<Schema.String>;
12069
+ readonly body: Schema.NullOr<Schema.String>;
12070
+ readonly callToAction: Schema.NullOr<Schema.String>;
12071
+ readonly destinationUrl: Schema.NullOr<Schema.String>;
12072
+ readonly providerSettings: Schema.$Record<Schema.String, Schema.Unknown>;
12073
+ readonly syncedAt: Schema.String;
12074
+ }>>>;
12075
+ readonly insights: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
12076
+ readonly from: Schema.String;
12077
+ readonly to: Schema.String;
12078
+ readonly level: Schema.Literals<readonly [
12079
+ "campaign",
12080
+ "ad_group",
12081
+ "ad"
12082
+ ]>;
12083
+ readonly totals: Schema.$Array<Schema.Struct<{
12084
+ readonly currency: Schema.String;
12085
+ readonly spend: Schema.Struct<{
12086
+ readonly amountMinor: Schema.Int;
12087
+ readonly currency: Schema.String;
12088
+ }>;
12089
+ readonly impressions: Schema.Int;
12090
+ readonly clicks: Schema.Int;
12091
+ readonly conversions: Schema.Number;
12092
+ readonly revenue: Schema.Struct<{
12093
+ readonly amountMinor: Schema.Int;
12094
+ readonly currency: Schema.String;
12095
+ }>;
12096
+ readonly metrics: Schema.$Record<Schema.String, Schema.Number>;
12097
+ }>>;
12098
+ readonly rowCount: Schema.Int;
12099
+ readonly freshness: Schema.Struct<{
12100
+ readonly status: Schema.Literals<readonly [
12101
+ "fresh",
12102
+ "stale",
12103
+ "pending",
12104
+ "partial",
12105
+ "unavailable"
12106
+ ]>;
12107
+ readonly syncedAt: Schema.NullOr<Schema.String>;
12108
+ readonly nextSyncAt: Schema.optionalKey<Schema.String>;
12109
+ readonly retryAfter: Schema.optionalKey<Schema.String>;
12110
+ }>;
12111
+ }>>>;
10762
12112
  }>>;
10763
12113
  }>;
10764
- export type AdCampaignList = typeof AdCampaignList.Type;
12114
+ export type AdList = typeof AdList.Type;
10765
12115
  export declare const AdCreativeList: Schema.Struct<{
10766
12116
  readonly freshness: Schema.Struct<{
10767
12117
  readonly status: Schema.Literals<readonly [
@@ -10788,7 +12138,8 @@ export declare const AdCreativeList: Schema.Struct<{
10788
12138
  "tiktok_ads",
10789
12139
  "linkedin_ads",
10790
12140
  "snapchat_ads",
10791
- "amazon_ads"
12141
+ "amazon_ads",
12142
+ "openai_ads"
10792
12143
  ]>;
10793
12144
  readonly externalId: Schema.String;
10794
12145
  readonly kind: Schema.String;
@@ -10898,7 +12249,8 @@ export declare const AdTreeNode: Schema.Struct<{
10898
12249
  "tiktok_ads",
10899
12250
  "linkedin_ads",
10900
12251
  "snapchat_ads",
10901
- "amazon_ads"
12252
+ "amazon_ads",
12253
+ "openai_ads"
10902
12254
  ]>;
10903
12255
  readonly kind: Schema.String;
10904
12256
  readonly externalId: Schema.String;
@@ -10940,7 +12292,8 @@ export declare const AdTreeNode: Schema.Struct<{
10940
12292
  "tiktok_ads",
10941
12293
  "linkedin_ads",
10942
12294
  "snapchat_ads",
10943
- "amazon_ads"
12295
+ "amazon_ads",
12296
+ "openai_ads"
10944
12297
  ]>;
10945
12298
  readonly externalId: Schema.String;
10946
12299
  readonly name: Schema.String;
@@ -10971,7 +12324,8 @@ export declare const AdTreeNode: Schema.Struct<{
10971
12324
  "tiktok_ads",
10972
12325
  "linkedin_ads",
10973
12326
  "snapchat_ads",
10974
- "amazon_ads"
12327
+ "amazon_ads",
12328
+ "openai_ads"
10975
12329
  ]>;
10976
12330
  readonly externalId: Schema.String;
10977
12331
  readonly kind: Schema.String;
@@ -11033,7 +12387,8 @@ export declare const AdTreeNode: Schema.Struct<{
11033
12387
  "tiktok_ads",
11034
12388
  "linkedin_ads",
11035
12389
  "snapchat_ads",
11036
- "amazon_ads"
12390
+ "amazon_ads",
12391
+ "openai_ads"
11037
12392
  ]>;
11038
12393
  readonly externalId: Schema.String;
11039
12394
  readonly kind: Schema.String;
@@ -11061,7 +12416,8 @@ export declare const AdTreeCampaign: Schema.Struct<{
11061
12416
  "tiktok_ads",
11062
12417
  "linkedin_ads",
11063
12418
  "snapchat_ads",
11064
- "amazon_ads"
12419
+ "amazon_ads",
12420
+ "openai_ads"
11065
12421
  ]>;
11066
12422
  readonly externalId: Schema.String;
11067
12423
  readonly name: Schema.String;
@@ -11120,7 +12476,8 @@ export declare const AdTreeCampaign: Schema.Struct<{
11120
12476
  "tiktok_ads",
11121
12477
  "linkedin_ads",
11122
12478
  "snapchat_ads",
11123
- "amazon_ads"
12479
+ "amazon_ads",
12480
+ "openai_ads"
11124
12481
  ]>;
11125
12482
  readonly kind: Schema.String;
11126
12483
  readonly externalId: Schema.String;
@@ -11162,7 +12519,8 @@ export declare const AdTreeCampaign: Schema.Struct<{
11162
12519
  "tiktok_ads",
11163
12520
  "linkedin_ads",
11164
12521
  "snapchat_ads",
11165
- "amazon_ads"
12522
+ "amazon_ads",
12523
+ "openai_ads"
11166
12524
  ]>;
11167
12525
  readonly externalId: Schema.String;
11168
12526
  readonly name: Schema.String;
@@ -11193,7 +12551,8 @@ export declare const AdTreeCampaign: Schema.Struct<{
11193
12551
  "tiktok_ads",
11194
12552
  "linkedin_ads",
11195
12553
  "snapchat_ads",
11196
- "amazon_ads"
12554
+ "amazon_ads",
12555
+ "openai_ads"
11197
12556
  ]>;
11198
12557
  readonly externalId: Schema.String;
11199
12558
  readonly kind: Schema.String;
@@ -11255,7 +12614,8 @@ export declare const AdTreeCampaign: Schema.Struct<{
11255
12614
  "tiktok_ads",
11256
12615
  "linkedin_ads",
11257
12616
  "snapchat_ads",
11258
- "amazon_ads"
12617
+ "amazon_ads",
12618
+ "openai_ads"
11259
12619
  ]>;
11260
12620
  readonly externalId: Schema.String;
11261
12621
  readonly kind: Schema.String;
@@ -11299,7 +12659,8 @@ export declare const AdTree: Schema.Struct<{
11299
12659
  "tiktok_ads",
11300
12660
  "linkedin_ads",
11301
12661
  "snapchat_ads",
11302
- "amazon_ads"
12662
+ "amazon_ads",
12663
+ "openai_ads"
11303
12664
  ]>;
11304
12665
  readonly externalId: Schema.String;
11305
12666
  readonly name: Schema.String;
@@ -11358,7 +12719,8 @@ export declare const AdTree: Schema.Struct<{
11358
12719
  "tiktok_ads",
11359
12720
  "linkedin_ads",
11360
12721
  "snapchat_ads",
11361
- "amazon_ads"
12722
+ "amazon_ads",
12723
+ "openai_ads"
11362
12724
  ]>;
11363
12725
  readonly kind: Schema.String;
11364
12726
  readonly externalId: Schema.String;
@@ -11400,7 +12762,8 @@ export declare const AdTree: Schema.Struct<{
11400
12762
  "tiktok_ads",
11401
12763
  "linkedin_ads",
11402
12764
  "snapchat_ads",
11403
- "amazon_ads"
12765
+ "amazon_ads",
12766
+ "openai_ads"
11404
12767
  ]>;
11405
12768
  readonly externalId: Schema.String;
11406
12769
  readonly name: Schema.String;
@@ -11431,7 +12794,8 @@ export declare const AdTree: Schema.Struct<{
11431
12794
  "tiktok_ads",
11432
12795
  "linkedin_ads",
11433
12796
  "snapchat_ads",
11434
- "amazon_ads"
12797
+ "amazon_ads",
12798
+ "openai_ads"
11435
12799
  ]>;
11436
12800
  readonly externalId: Schema.String;
11437
12801
  readonly kind: Schema.String;
@@ -11493,7 +12857,8 @@ export declare const AdTree: Schema.Struct<{
11493
12857
  "tiktok_ads",
11494
12858
  "linkedin_ads",
11495
12859
  "snapchat_ads",
11496
- "amazon_ads"
12860
+ "amazon_ads",
12861
+ "openai_ads"
11497
12862
  ]>;
11498
12863
  readonly externalId: Schema.String;
11499
12864
  readonly kind: Schema.String;
@@ -11754,6 +13119,7 @@ export declare const ScheduleList: Schema.Struct<{
11754
13119
  "linkedin",
11755
13120
  "pinterest",
11756
13121
  "reddit",
13122
+ "snapchat",
11757
13123
  "tiktok",
11758
13124
  "threads",
11759
13125
  "x",
@@ -11803,6 +13169,7 @@ export declare const WebhookSubscriptionType: Schema.Literals<readonly [
11803
13169
  "inbox.review.updated",
11804
13170
  "inbox.review.deleted",
11805
13171
  "inbox.review.restored",
13172
+ "inbox.review.replied",
11806
13173
  "inbox.mention.received",
11807
13174
  "inbox.message.sent",
11808
13175
  "inbox.message.delivered",
@@ -11822,12 +13189,14 @@ export declare const WebhookSubscriptionType: Schema.Literals<readonly [
11822
13189
  "ads.kill_switch.activated",
11823
13190
  "ads.lead.received",
11824
13191
  "ads.campaign.status_changed",
13192
+ "ads.ad_group.status_changed",
11825
13193
  "ads.ad.status_changed",
11826
13194
  "ads.ad_account.status_changed",
11827
13195
  "ads.ad.review.approved",
11828
13196
  "ads.ad.review.rejected",
11829
13197
  "ads.sync.failed",
11830
13198
  "ads.sync.recovered",
13199
+ "ads.initial_sync.completed",
11831
13200
  "schedule.assignment.changed",
11832
13201
  "account.connected",
11833
13202
  "account.disconnected",
@@ -11858,6 +13227,7 @@ export declare const WebhookEventType: Schema.Literals<readonly [
11858
13227
  "inbox.review.updated",
11859
13228
  "inbox.review.deleted",
11860
13229
  "inbox.review.restored",
13230
+ "inbox.review.replied",
11861
13231
  "inbox.mention.received",
11862
13232
  "inbox.message.sent",
11863
13233
  "inbox.message.delivered",
@@ -11877,12 +13247,14 @@ export declare const WebhookEventType: Schema.Literals<readonly [
11877
13247
  "ads.kill_switch.activated",
11878
13248
  "ads.lead.received",
11879
13249
  "ads.campaign.status_changed",
13250
+ "ads.ad_group.status_changed",
11880
13251
  "ads.ad.status_changed",
11881
13252
  "ads.ad_account.status_changed",
11882
13253
  "ads.ad.review.approved",
11883
13254
  "ads.ad.review.rejected",
11884
13255
  "ads.sync.failed",
11885
13256
  "ads.sync.recovered",
13257
+ "ads.initial_sync.completed",
11886
13258
  "schedule.assignment.changed",
11887
13259
  "account.connected",
11888
13260
  "account.disconnected",
@@ -11918,6 +13290,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
11918
13290
  "linkedin",
11919
13291
  "pinterest",
11920
13292
  "reddit",
13293
+ "snapchat",
11921
13294
  "tiktok",
11922
13295
  "threads",
11923
13296
  "x",
@@ -11960,6 +13333,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
11960
13333
  "linkedin",
11961
13334
  "pinterest",
11962
13335
  "reddit",
13336
+ "snapchat",
11963
13337
  "tiktok",
11964
13338
  "threads",
11965
13339
  "x",
@@ -12018,6 +13392,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12018
13392
  "linkedin",
12019
13393
  "pinterest",
12020
13394
  "reddit",
13395
+ "snapchat",
12021
13396
  "tiktok",
12022
13397
  "threads",
12023
13398
  "x",
@@ -12076,6 +13451,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12076
13451
  "linkedin",
12077
13452
  "pinterest",
12078
13453
  "reddit",
13454
+ "snapchat",
12079
13455
  "tiktok",
12080
13456
  "threads",
12081
13457
  "x",
@@ -12113,6 +13489,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12113
13489
  "linkedin",
12114
13490
  "pinterest",
12115
13491
  "reddit",
13492
+ "snapchat",
12116
13493
  "tiktok",
12117
13494
  "threads",
12118
13495
  "x",
@@ -12167,6 +13544,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12167
13544
  "linkedin",
12168
13545
  "pinterest",
12169
13546
  "reddit",
13547
+ "snapchat",
12170
13548
  "tiktok",
12171
13549
  "threads",
12172
13550
  "x",
@@ -12226,6 +13604,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12226
13604
  "linkedin",
12227
13605
  "pinterest",
12228
13606
  "reddit",
13607
+ "snapchat",
12229
13608
  "tiktok",
12230
13609
  "threads",
12231
13610
  "x",
@@ -12285,6 +13664,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12285
13664
  "linkedin",
12286
13665
  "pinterest",
12287
13666
  "reddit",
13667
+ "snapchat",
12288
13668
  "tiktok",
12289
13669
  "threads",
12290
13670
  "x",
@@ -12344,6 +13724,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12344
13724
  "linkedin",
12345
13725
  "pinterest",
12346
13726
  "reddit",
13727
+ "snapchat",
12347
13728
  "tiktok",
12348
13729
  "threads",
12349
13730
  "x",
@@ -12401,6 +13782,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12401
13782
  "linkedin",
12402
13783
  "pinterest",
12403
13784
  "reddit",
13785
+ "snapchat",
12404
13786
  "tiktok",
12405
13787
  "threads",
12406
13788
  "x",
@@ -12444,6 +13826,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12444
13826
  "linkedin",
12445
13827
  "pinterest",
12446
13828
  "reddit",
13829
+ "snapchat",
12447
13830
  "tiktok",
12448
13831
  "threads",
12449
13832
  "x",
@@ -12487,6 +13870,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12487
13870
  "linkedin",
12488
13871
  "pinterest",
12489
13872
  "reddit",
13873
+ "snapchat",
12490
13874
  "tiktok",
12491
13875
  "threads",
12492
13876
  "x",
@@ -12517,6 +13901,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12517
13901
  "linkedin",
12518
13902
  "pinterest",
12519
13903
  "reddit",
13904
+ "snapchat",
12520
13905
  "tiktok",
12521
13906
  "threads",
12522
13907
  "x",
@@ -12529,7 +13914,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12529
13914
  "tiktok_ads",
12530
13915
  "linkedin_ads",
12531
13916
  "snapchat_ads",
12532
- "amazon_ads"
13917
+ "amazon_ads",
13918
+ "openai_ads"
12533
13919
  ]>;
12534
13920
  locationId: Schema.optionalKey<Schema.String>;
12535
13921
  }>;
@@ -12551,6 +13937,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12551
13937
  "linkedin",
12552
13938
  "pinterest",
12553
13939
  "reddit",
13940
+ "snapchat",
12554
13941
  "tiktok",
12555
13942
  "threads",
12556
13943
  "x",
@@ -12563,7 +13950,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12563
13950
  "tiktok_ads",
12564
13951
  "linkedin_ads",
12565
13952
  "snapchat_ads",
12566
- "amazon_ads"
13953
+ "amazon_ads",
13954
+ "openai_ads"
12567
13955
  ]>;
12568
13956
  locationId: Schema.optionalKey<Schema.String>;
12569
13957
  }>;
@@ -12585,6 +13973,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12585
13973
  "linkedin",
12586
13974
  "pinterest",
12587
13975
  "reddit",
13976
+ "snapchat",
12588
13977
  "tiktok",
12589
13978
  "threads",
12590
13979
  "x",
@@ -12597,7 +13986,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12597
13986
  "tiktok_ads",
12598
13987
  "linkedin_ads",
12599
13988
  "snapchat_ads",
12600
- "amazon_ads"
13989
+ "amazon_ads",
13990
+ "openai_ads"
12601
13991
  ]>;
12602
13992
  locationId: Schema.optionalKey<Schema.String>;
12603
13993
  }>;
@@ -12619,6 +14009,43 @@ export declare const WebhookEvent: Schema.Union<readonly [
12619
14009
  "linkedin",
12620
14010
  "pinterest",
12621
14011
  "reddit",
14012
+ "snapchat",
14013
+ "tiktok",
14014
+ "threads",
14015
+ "x",
14016
+ "youtube",
14017
+ "google_business",
14018
+ "meta_ads",
14019
+ "google_ads",
14020
+ "reddit_ads",
14021
+ "pinterest_ads",
14022
+ "tiktok_ads",
14023
+ "linkedin_ads",
14024
+ "snapchat_ads",
14025
+ "amazon_ads",
14026
+ "openai_ads"
14027
+ ]>;
14028
+ locationId: Schema.optionalKey<Schema.String>;
14029
+ }>;
14030
+ readonly id: Schema.String;
14031
+ readonly version: Schema.Literal<1>;
14032
+ readonly timestamp: Schema.String;
14033
+ readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
14034
+ readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
14035
+ }>,
14036
+ Schema.Struct<{
14037
+ readonly type: Schema.Literal<"inbox.review.replied">;
14038
+ readonly data: Schema.Struct<{
14039
+ reviewId: Schema.brand<Schema.String, "InboxReviewId">;
14040
+ accountId: Schema.brand<Schema.String, "AccountId">;
14041
+ provider: Schema.Literals<readonly [
14042
+ "bluesky",
14043
+ "facebook",
14044
+ "instagram",
14045
+ "linkedin",
14046
+ "pinterest",
14047
+ "reddit",
14048
+ "snapchat",
12622
14049
  "tiktok",
12623
14050
  "threads",
12624
14051
  "x",
@@ -12631,7 +14058,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12631
14058
  "tiktok_ads",
12632
14059
  "linkedin_ads",
12633
14060
  "snapchat_ads",
12634
- "amazon_ads"
14061
+ "amazon_ads",
14062
+ "openai_ads"
12635
14063
  ]>;
12636
14064
  locationId: Schema.optionalKey<Schema.String>;
12637
14065
  }>;
@@ -12653,6 +14081,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12653
14081
  "linkedin",
12654
14082
  "pinterest",
12655
14083
  "reddit",
14084
+ "snapchat",
12656
14085
  "tiktok",
12657
14086
  "threads",
12658
14087
  "x",
@@ -12684,6 +14113,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12684
14113
  "linkedin",
12685
14114
  "pinterest",
12686
14115
  "reddit",
14116
+ "snapchat",
12687
14117
  "tiktok",
12688
14118
  "threads",
12689
14119
  "x",
@@ -12711,6 +14141,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12711
14141
  "linkedin",
12712
14142
  "pinterest",
12713
14143
  "reddit",
14144
+ "snapchat",
12714
14145
  "tiktok",
12715
14146
  "threads",
12716
14147
  "x",
@@ -12738,6 +14169,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12738
14169
  "linkedin",
12739
14170
  "pinterest",
12740
14171
  "reddit",
14172
+ "snapchat",
12741
14173
  "tiktok",
12742
14174
  "threads",
12743
14175
  "x",
@@ -12764,6 +14196,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12764
14196
  "linkedin",
12765
14197
  "pinterest",
12766
14198
  "reddit",
14199
+ "snapchat",
12767
14200
  "tiktok",
12768
14201
  "threads",
12769
14202
  "x",
@@ -12790,6 +14223,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12790
14223
  "linkedin",
12791
14224
  "pinterest",
12792
14225
  "reddit",
14226
+ "snapchat",
12793
14227
  "tiktok",
12794
14228
  "threads",
12795
14229
  "x",
@@ -12821,6 +14255,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12821
14255
  "linkedin",
12822
14256
  "pinterest",
12823
14257
  "reddit",
14258
+ "snapchat",
12824
14259
  "tiktok",
12825
14260
  "threads",
12826
14261
  "x",
@@ -12849,6 +14284,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12849
14284
  "linkedin",
12850
14285
  "pinterest",
12851
14286
  "reddit",
14287
+ "snapchat",
12852
14288
  "tiktok",
12853
14289
  "threads",
12854
14290
  "x",
@@ -12875,6 +14311,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12875
14311
  "linkedin",
12876
14312
  "pinterest",
12877
14313
  "reddit",
14314
+ "snapchat",
12878
14315
  "tiktok",
12879
14316
  "threads",
12880
14317
  "x",
@@ -12887,7 +14324,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12887
14324
  "tiktok_ads",
12888
14325
  "linkedin_ads",
12889
14326
  "snapchat_ads",
12890
- "amazon_ads"
14327
+ "amazon_ads",
14328
+ "openai_ads"
12891
14329
  ]>;
12892
14330
  }>;
12893
14331
  readonly id: Schema.String;
@@ -12907,6 +14345,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
12907
14345
  "linkedin",
12908
14346
  "pinterest",
12909
14347
  "reddit",
14348
+ "snapchat",
12910
14349
  "tiktok",
12911
14350
  "threads",
12912
14351
  "x",
@@ -12919,7 +14358,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
12919
14358
  "tiktok_ads",
12920
14359
  "linkedin_ads",
12921
14360
  "snapchat_ads",
12922
- "amazon_ads"
14361
+ "amazon_ads",
14362
+ "openai_ads"
12923
14363
  ]>;
12924
14364
  }>;
12925
14365
  readonly id: Schema.String;
@@ -12935,8 +14375,17 @@ export declare const WebhookEvent: Schema.Union<readonly [
12935
14375
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
12936
14376
  readonly kind: Schema.Literals<readonly [
12937
14377
  "boost.create",
14378
+ "campaign.create",
12938
14379
  "campaign.activate",
12939
- "campaign.pause"
14380
+ "campaign.pause",
14381
+ "campaign.archive",
14382
+ "ad_group.status",
14383
+ "ad_group.create",
14384
+ "ad.status",
14385
+ "ad.attach",
14386
+ "creative.create",
14387
+ "campaign.duplicate",
14388
+ "budget.update"
12940
14389
  ]>;
12941
14390
  readonly status: Schema.Literals<readonly [
12942
14391
  "succeeded",
@@ -12957,8 +14406,17 @@ export declare const WebhookEvent: Schema.Union<readonly [
12957
14406
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
12958
14407
  readonly kind: Schema.Literals<readonly [
12959
14408
  "boost.create",
14409
+ "campaign.create",
12960
14410
  "campaign.activate",
12961
- "campaign.pause"
14411
+ "campaign.pause",
14412
+ "campaign.archive",
14413
+ "ad_group.status",
14414
+ "ad_group.create",
14415
+ "ad.status",
14416
+ "ad.attach",
14417
+ "creative.create",
14418
+ "campaign.duplicate",
14419
+ "budget.update"
12962
14420
  ]>;
12963
14421
  readonly status: Schema.Literals<readonly [
12964
14422
  "failed",
@@ -13028,7 +14486,42 @@ export declare const WebhookEvent: Schema.Union<readonly [
13028
14486
  "tiktok_ads",
13029
14487
  "linkedin_ads",
13030
14488
  "snapchat_ads",
13031
- "amazon_ads"
14489
+ "amazon_ads",
14490
+ "openai_ads"
14491
+ ]>;
14492
+ readonly status: Schema.Literals<readonly [
14493
+ "draft",
14494
+ "paused",
14495
+ "activating",
14496
+ "active",
14497
+ "pending_review",
14498
+ "rejected",
14499
+ "completed",
14500
+ "archived",
14501
+ "unknown"
14502
+ ]>;
14503
+ }>;
14504
+ readonly id: Schema.String;
14505
+ readonly version: Schema.Literal<1>;
14506
+ readonly timestamp: Schema.String;
14507
+ readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
14508
+ readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
14509
+ }>,
14510
+ Schema.Struct<{
14511
+ readonly type: Schema.Literal<"ads.ad_group.status_changed">;
14512
+ readonly data: Schema.Struct<{
14513
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
14514
+ readonly adGroupId: Schema.brand<Schema.String, "AdGroupId">;
14515
+ readonly provider: Schema.Literals<readonly [
14516
+ "meta_ads",
14517
+ "google_ads",
14518
+ "reddit_ads",
14519
+ "pinterest_ads",
14520
+ "tiktok_ads",
14521
+ "linkedin_ads",
14522
+ "snapchat_ads",
14523
+ "amazon_ads",
14524
+ "openai_ads"
13032
14525
  ]>;
13033
14526
  readonly status: Schema.Literals<readonly [
13034
14527
  "draft",
@@ -13061,7 +14554,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13061
14554
  "tiktok_ads",
13062
14555
  "linkedin_ads",
13063
14556
  "snapchat_ads",
13064
- "amazon_ads"
14557
+ "amazon_ads",
14558
+ "openai_ads"
13065
14559
  ]>;
13066
14560
  readonly status: Schema.Literals<readonly [
13067
14561
  "draft",
@@ -13093,7 +14587,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13093
14587
  "tiktok_ads",
13094
14588
  "linkedin_ads",
13095
14589
  "snapchat_ads",
13096
- "amazon_ads"
14590
+ "amazon_ads",
14591
+ "openai_ads"
13097
14592
  ]>;
13098
14593
  readonly status: Schema.Literals<readonly [
13099
14594
  "active",
@@ -13122,7 +14617,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13122
14617
  "tiktok_ads",
13123
14618
  "linkedin_ads",
13124
14619
  "snapchat_ads",
13125
- "amazon_ads"
14620
+ "amazon_ads",
14621
+ "openai_ads"
13126
14622
  ]>;
13127
14623
  }>;
13128
14624
  readonly id: Schema.String;
@@ -13144,7 +14640,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13144
14640
  "tiktok_ads",
13145
14641
  "linkedin_ads",
13146
14642
  "snapchat_ads",
13147
- "amazon_ads"
14643
+ "amazon_ads",
14644
+ "openai_ads"
13148
14645
  ]>;
13149
14646
  }>;
13150
14647
  readonly id: Schema.String;
@@ -13165,7 +14662,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13165
14662
  "tiktok_ads",
13166
14663
  "linkedin_ads",
13167
14664
  "snapchat_ads",
13168
- "amazon_ads"
14665
+ "amazon_ads",
14666
+ "openai_ads"
13169
14667
  ]>;
13170
14668
  }>;
13171
14669
  readonly id: Schema.String;
@@ -13186,7 +14684,30 @@ export declare const WebhookEvent: Schema.Union<readonly [
13186
14684
  "tiktok_ads",
13187
14685
  "linkedin_ads",
13188
14686
  "snapchat_ads",
13189
- "amazon_ads"
14687
+ "amazon_ads",
14688
+ "openai_ads"
14689
+ ]>;
14690
+ }>;
14691
+ readonly id: Schema.String;
14692
+ readonly version: Schema.Literal<1>;
14693
+ readonly timestamp: Schema.String;
14694
+ readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
14695
+ readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
14696
+ }>,
14697
+ Schema.Struct<{
14698
+ readonly type: Schema.Literal<"ads.initial_sync.completed">;
14699
+ readonly data: Schema.Struct<{
14700
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
14701
+ readonly provider: Schema.Literals<readonly [
14702
+ "meta_ads",
14703
+ "google_ads",
14704
+ "reddit_ads",
14705
+ "pinterest_ads",
14706
+ "tiktok_ads",
14707
+ "linkedin_ads",
14708
+ "snapchat_ads",
14709
+ "amazon_ads",
14710
+ "openai_ads"
13190
14711
  ]>;
13191
14712
  }>;
13192
14713
  readonly id: Schema.String;
@@ -13207,6 +14728,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
13207
14728
  "linkedin",
13208
14729
  "pinterest",
13209
14730
  "reddit",
14731
+ "snapchat",
13210
14732
  "tiktok",
13211
14733
  "threads",
13212
14734
  "x",
@@ -13219,7 +14741,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13219
14741
  "tiktok_ads",
13220
14742
  "linkedin_ads",
13221
14743
  "snapchat_ads",
13222
- "amazon_ads"
14744
+ "amazon_ads",
14745
+ "openai_ads"
13223
14746
  ]>;
13224
14747
  readonly accountKind: Schema.Literals<readonly [
13225
14748
  "social_page",
@@ -13252,6 +14775,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
13252
14775
  "linkedin",
13253
14776
  "pinterest",
13254
14777
  "reddit",
14778
+ "snapchat",
13255
14779
  "tiktok",
13256
14780
  "threads",
13257
14781
  "x",
@@ -13264,7 +14788,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13264
14788
  "tiktok_ads",
13265
14789
  "linkedin_ads",
13266
14790
  "snapchat_ads",
13267
- "amazon_ads"
14791
+ "amazon_ads",
14792
+ "openai_ads"
13268
14793
  ]>;
13269
14794
  readonly accountKind: Schema.Literals<readonly [
13270
14795
  "social_page",
@@ -13293,6 +14818,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
13293
14818
  "linkedin",
13294
14819
  "pinterest",
13295
14820
  "reddit",
14821
+ "snapchat",
13296
14822
  "tiktok",
13297
14823
  "threads",
13298
14824
  "x",
@@ -13305,7 +14831,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13305
14831
  "tiktok_ads",
13306
14832
  "linkedin_ads",
13307
14833
  "snapchat_ads",
13308
- "amazon_ads"
14834
+ "amazon_ads",
14835
+ "openai_ads"
13309
14836
  ]>;
13310
14837
  readonly accountKind: Schema.Literals<readonly [
13311
14838
  "social_page",
@@ -13333,6 +14860,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
13333
14860
  "linkedin",
13334
14861
  "pinterest",
13335
14862
  "reddit",
14863
+ "snapchat",
13336
14864
  "tiktok",
13337
14865
  "threads",
13338
14866
  "x",
@@ -13345,7 +14873,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13345
14873
  "tiktok_ads",
13346
14874
  "linkedin_ads",
13347
14875
  "snapchat_ads",
13348
- "amazon_ads"
14876
+ "amazon_ads",
14877
+ "openai_ads"
13349
14878
  ]>;
13350
14879
  readonly accountKind: Schema.Literals<readonly [
13351
14880
  "social_page",
@@ -13372,6 +14901,7 @@ export declare const WebhookEvent: Schema.Union<readonly [
13372
14901
  "linkedin",
13373
14902
  "pinterest",
13374
14903
  "reddit",
14904
+ "snapchat",
13375
14905
  "tiktok",
13376
14906
  "threads",
13377
14907
  "x",
@@ -13384,7 +14914,8 @@ export declare const WebhookEvent: Schema.Union<readonly [
13384
14914
  "tiktok_ads",
13385
14915
  "linkedin_ads",
13386
14916
  "snapchat_ads",
13387
- "amazon_ads"
14917
+ "amazon_ads",
14918
+ "openai_ads"
13388
14919
  ]>;
13389
14920
  accountKind: Schema.Literals<readonly [
13390
14921
  "social_page",
@@ -13522,6 +15053,7 @@ export declare const CreateWebhookEndpoint: Schema.Struct<{
13522
15053
  "inbox.review.updated",
13523
15054
  "inbox.review.deleted",
13524
15055
  "inbox.review.restored",
15056
+ "inbox.review.replied",
13525
15057
  "inbox.mention.received",
13526
15058
  "inbox.message.sent",
13527
15059
  "inbox.message.delivered",
@@ -13541,12 +15073,14 @@ export declare const CreateWebhookEndpoint: Schema.Struct<{
13541
15073
  "ads.kill_switch.activated",
13542
15074
  "ads.lead.received",
13543
15075
  "ads.campaign.status_changed",
15076
+ "ads.ad_group.status_changed",
13544
15077
  "ads.ad.status_changed",
13545
15078
  "ads.ad_account.status_changed",
13546
15079
  "ads.ad.review.approved",
13547
15080
  "ads.ad.review.rejected",
13548
15081
  "ads.sync.failed",
13549
15082
  "ads.sync.recovered",
15083
+ "ads.initial_sync.completed",
13550
15084
  "schedule.assignment.changed",
13551
15085
  "account.connected",
13552
15086
  "account.disconnected",
@@ -13592,6 +15126,7 @@ export declare const UpdateWebhookEndpoint: Schema.Struct<{
13592
15126
  "inbox.review.updated",
13593
15127
  "inbox.review.deleted",
13594
15128
  "inbox.review.restored",
15129
+ "inbox.review.replied",
13595
15130
  "inbox.mention.received",
13596
15131
  "inbox.message.sent",
13597
15132
  "inbox.message.delivered",
@@ -13611,12 +15146,14 @@ export declare const UpdateWebhookEndpoint: Schema.Struct<{
13611
15146
  "ads.kill_switch.activated",
13612
15147
  "ads.lead.received",
13613
15148
  "ads.campaign.status_changed",
15149
+ "ads.ad_group.status_changed",
13614
15150
  "ads.ad.status_changed",
13615
15151
  "ads.ad_account.status_changed",
13616
15152
  "ads.ad.review.approved",
13617
15153
  "ads.ad.review.rejected",
13618
15154
  "ads.sync.failed",
13619
15155
  "ads.sync.recovered",
15156
+ "ads.initial_sync.completed",
13620
15157
  "schedule.assignment.changed",
13621
15158
  "account.connected",
13622
15159
  "account.disconnected",
@@ -13664,6 +15201,7 @@ export declare const WebhookEndpoint: Schema.Struct<{
13664
15201
  "inbox.review.updated",
13665
15202
  "inbox.review.deleted",
13666
15203
  "inbox.review.restored",
15204
+ "inbox.review.replied",
13667
15205
  "inbox.mention.received",
13668
15206
  "inbox.message.sent",
13669
15207
  "inbox.message.delivered",
@@ -13683,12 +15221,14 @@ export declare const WebhookEndpoint: Schema.Struct<{
13683
15221
  "ads.kill_switch.activated",
13684
15222
  "ads.lead.received",
13685
15223
  "ads.campaign.status_changed",
15224
+ "ads.ad_group.status_changed",
13686
15225
  "ads.ad.status_changed",
13687
15226
  "ads.ad_account.status_changed",
13688
15227
  "ads.ad.review.approved",
13689
15228
  "ads.ad.review.rejected",
13690
15229
  "ads.sync.failed",
13691
15230
  "ads.sync.recovered",
15231
+ "ads.initial_sync.completed",
13692
15232
  "schedule.assignment.changed",
13693
15233
  "account.connected",
13694
15234
  "account.disconnected",
@@ -13744,6 +15284,7 @@ export declare const WebhookEndpointDetails: Schema.Struct<{
13744
15284
  "inbox.review.updated",
13745
15285
  "inbox.review.deleted",
13746
15286
  "inbox.review.restored",
15287
+ "inbox.review.replied",
13747
15288
  "inbox.mention.received",
13748
15289
  "inbox.message.sent",
13749
15290
  "inbox.message.delivered",
@@ -13763,12 +15304,14 @@ export declare const WebhookEndpointDetails: Schema.Struct<{
13763
15304
  "ads.kill_switch.activated",
13764
15305
  "ads.lead.received",
13765
15306
  "ads.campaign.status_changed",
15307
+ "ads.ad_group.status_changed",
13766
15308
  "ads.ad.status_changed",
13767
15309
  "ads.ad_account.status_changed",
13768
15310
  "ads.ad.review.approved",
13769
15311
  "ads.ad.review.rejected",
13770
15312
  "ads.sync.failed",
13771
15313
  "ads.sync.recovered",
15314
+ "ads.initial_sync.completed",
13772
15315
  "schedule.assignment.changed",
13773
15316
  "account.connected",
13774
15317
  "account.disconnected",
@@ -13825,6 +15368,7 @@ export declare const WebhookEndpointCreated: Schema.Struct<{
13825
15368
  "inbox.review.updated",
13826
15369
  "inbox.review.deleted",
13827
15370
  "inbox.review.restored",
15371
+ "inbox.review.replied",
13828
15372
  "inbox.mention.received",
13829
15373
  "inbox.message.sent",
13830
15374
  "inbox.message.delivered",
@@ -13844,12 +15388,14 @@ export declare const WebhookEndpointCreated: Schema.Struct<{
13844
15388
  "ads.kill_switch.activated",
13845
15389
  "ads.lead.received",
13846
15390
  "ads.campaign.status_changed",
15391
+ "ads.ad_group.status_changed",
13847
15392
  "ads.ad.status_changed",
13848
15393
  "ads.ad_account.status_changed",
13849
15394
  "ads.ad.review.approved",
13850
15395
  "ads.ad.review.rejected",
13851
15396
  "ads.sync.failed",
13852
15397
  "ads.sync.recovered",
15398
+ "ads.initial_sync.completed",
13853
15399
  "schedule.assignment.changed",
13854
15400
  "account.connected",
13855
15401
  "account.disconnected",
@@ -13909,6 +15455,7 @@ export declare const WebhookEndpointList: Schema.Struct<{
13909
15455
  "inbox.review.updated",
13910
15456
  "inbox.review.deleted",
13911
15457
  "inbox.review.restored",
15458
+ "inbox.review.replied",
13912
15459
  "inbox.mention.received",
13913
15460
  "inbox.message.sent",
13914
15461
  "inbox.message.delivered",
@@ -13928,12 +15475,14 @@ export declare const WebhookEndpointList: Schema.Struct<{
13928
15475
  "ads.kill_switch.activated",
13929
15476
  "ads.lead.received",
13930
15477
  "ads.campaign.status_changed",
15478
+ "ads.ad_group.status_changed",
13931
15479
  "ads.ad.status_changed",
13932
15480
  "ads.ad_account.status_changed",
13933
15481
  "ads.ad.review.approved",
13934
15482
  "ads.ad.review.rejected",
13935
15483
  "ads.sync.failed",
13936
15484
  "ads.sync.recovered",
15485
+ "ads.initial_sync.completed",
13937
15486
  "schedule.assignment.changed",
13938
15487
  "account.connected",
13939
15488
  "account.disconnected",
@@ -14017,6 +15566,7 @@ export declare const WebhookDelivery: Schema.Struct<{
14017
15566
  "inbox.review.updated",
14018
15567
  "inbox.review.deleted",
14019
15568
  "inbox.review.restored",
15569
+ "inbox.review.replied",
14020
15570
  "inbox.mention.received",
14021
15571
  "inbox.message.sent",
14022
15572
  "inbox.message.delivered",
@@ -14036,12 +15586,14 @@ export declare const WebhookDelivery: Schema.Struct<{
14036
15586
  "ads.kill_switch.activated",
14037
15587
  "ads.lead.received",
14038
15588
  "ads.campaign.status_changed",
15589
+ "ads.ad_group.status_changed",
14039
15590
  "ads.ad.status_changed",
14040
15591
  "ads.ad_account.status_changed",
14041
15592
  "ads.ad.review.approved",
14042
15593
  "ads.ad.review.rejected",
14043
15594
  "ads.sync.failed",
14044
15595
  "ads.sync.recovered",
15596
+ "ads.initial_sync.completed",
14045
15597
  "schedule.assignment.changed",
14046
15598
  "account.connected",
14047
15599
  "account.disconnected",
@@ -14105,6 +15657,7 @@ export declare const WebhookDeliveryList: Schema.Struct<{
14105
15657
  "inbox.review.updated",
14106
15658
  "inbox.review.deleted",
14107
15659
  "inbox.review.restored",
15660
+ "inbox.review.replied",
14108
15661
  "inbox.mention.received",
14109
15662
  "inbox.message.sent",
14110
15663
  "inbox.message.delivered",
@@ -14124,12 +15677,14 @@ export declare const WebhookDeliveryList: Schema.Struct<{
14124
15677
  "ads.kill_switch.activated",
14125
15678
  "ads.lead.received",
14126
15679
  "ads.campaign.status_changed",
15680
+ "ads.ad_group.status_changed",
14127
15681
  "ads.ad.status_changed",
14128
15682
  "ads.ad_account.status_changed",
14129
15683
  "ads.ad.review.approved",
14130
15684
  "ads.ad.review.rejected",
14131
15685
  "ads.sync.failed",
14132
15686
  "ads.sync.recovered",
15687
+ "ads.initial_sync.completed",
14133
15688
  "schedule.assignment.changed",
14134
15689
  "account.connected",
14135
15690
  "account.disconnected",
@@ -14169,6 +15724,329 @@ export declare const WebhookDeliveryList: Schema.Struct<{
14169
15724
  }>>;
14170
15725
  }>;
14171
15726
  export type WebhookDeliveryList = typeof WebhookDeliveryList.Type;
15727
+ type AuthToken = string | undefined;
15728
+ interface Auth {
15729
+ /**
15730
+ * Which part of the request do we use to send the auth?
15731
+ *
15732
+ * @default 'header'
15733
+ */
15734
+ in?: "header" | "query" | "cookie";
15735
+ /**
15736
+ * A unique identifier for the security scheme.
15737
+ *
15738
+ * Defined only when there are multiple security schemes whose `Auth`
15739
+ * shape would otherwise be identical.
15740
+ */
15741
+ key?: string;
15742
+ /**
15743
+ * Header or query parameter name.
15744
+ *
15745
+ * @default 'Authorization'
15746
+ */
15747
+ name?: string;
15748
+ scheme?: "basic" | "bearer";
15749
+ type: "apiKey" | "http";
15750
+ }
15751
+ interface SerializerOptions<T> {
15752
+ /**
15753
+ * @default true
15754
+ */
15755
+ explode: boolean;
15756
+ style: T;
15757
+ }
15758
+ type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
15759
+ type ObjectStyle = "form" | "deepObject";
15760
+ type QuerySerializer = (query: Record<string, unknown>) => string;
15761
+ type BodySerializer = (body: unknown) => unknown;
15762
+ type QuerySerializerOptionsObject = {
15763
+ allowReserved?: boolean;
15764
+ array?: Partial<SerializerOptions<ArrayStyle>>;
15765
+ object?: Partial<SerializerOptions<ObjectStyle>>;
15766
+ };
15767
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
15768
+ /**
15769
+ * Per-parameter serialization overrides. When provided, these settings
15770
+ * override the global array/object settings for specific parameter names.
15771
+ */
15772
+ parameters?: Record<string, QuerySerializerOptionsObject>;
15773
+ };
15774
+ type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
15775
+ type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
15776
+ /**
15777
+ * Returns the final request URL.
15778
+ */
15779
+ buildUrl: BuildUrlFn;
15780
+ getConfig: () => Config;
15781
+ request: RequestFn;
15782
+ setConfig: (config: Config) => Config;
15783
+ } & {
15784
+ [K in HttpMethod]: MethodFn;
15785
+ } & ([
15786
+ SseFn
15787
+ ] extends [
15788
+ never
15789
+ ] ? {
15790
+ sse?: never;
15791
+ } : {
15792
+ sse: {
15793
+ [K in HttpMethod]: SseFn;
15794
+ };
15795
+ });
15796
+ interface Config {
15797
+ /**
15798
+ * Auth token or a function returning auth token. The resolved value will be
15799
+ * added to the request payload as defined by its `security` array.
15800
+ */
15801
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
15802
+ /**
15803
+ * A function for serializing request body parameter. By default,
15804
+ * {@link JSON.stringify()} will be used.
15805
+ */
15806
+ bodySerializer?: BodySerializer | null;
15807
+ /**
15808
+ * An object containing any HTTP headers that you want to pre-populate your
15809
+ * `Headers` object with.
15810
+ *
15811
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
15812
+ */
15813
+ headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
15814
+ /**
15815
+ * The request method.
15816
+ *
15817
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
15818
+ */
15819
+ method?: Uppercase<HttpMethod>;
15820
+ /**
15821
+ * A function for serializing request query parameters. By default, arrays
15822
+ * will be exploded in form style, objects will be exploded in deepObject
15823
+ * style, and reserved characters are percent-encoded.
15824
+ *
15825
+ * This method will have no effect if the native `paramsSerializer()` Axios
15826
+ * API function is used.
15827
+ *
15828
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
15829
+ */
15830
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
15831
+ /**
15832
+ * A function validating request data. This is useful if you want to ensure
15833
+ * the request conforms to the desired shape, so it can be safely sent to
15834
+ * the server.
15835
+ */
15836
+ requestValidator?: (data: unknown) => Promise<unknown>;
15837
+ /**
15838
+ * A function transforming response data before it's returned. This is useful
15839
+ * for post-processing data, e.g., converting ISO strings into Date objects.
15840
+ */
15841
+ responseTransformer?: (data: unknown) => Promise<unknown>;
15842
+ /**
15843
+ * A function validating response data. This is useful if you want to ensure
15844
+ * the response conforms to the desired shape, so it can be safely passed to
15845
+ * the transformers and returned to the user.
15846
+ */
15847
+ responseValidator?: (data: unknown) => Promise<unknown>;
15848
+ }
15849
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & {
15850
+ /**
15851
+ * Fetch API implementation. You can use this option to provide a custom
15852
+ * fetch instance.
15853
+ *
15854
+ * @default globalThis.fetch
15855
+ */
15856
+ fetch?: typeof fetch;
15857
+ /**
15858
+ * Implementing clients can call request interceptors inside this hook.
15859
+ */
15860
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
15861
+ /**
15862
+ * Callback invoked when a network or parsing error occurs during streaming.
15863
+ *
15864
+ * This option applies only if the endpoint returns a stream of events.
15865
+ *
15866
+ * @param error The error that occurred.
15867
+ */
15868
+ onSseError?: (error: unknown) => void;
15869
+ /**
15870
+ * Callback invoked when an event is streamed from the server.
15871
+ *
15872
+ * This option applies only if the endpoint returns a stream of events.
15873
+ *
15874
+ * @param event Event streamed from the server.
15875
+ * @returns Nothing (void).
15876
+ */
15877
+ onSseEvent?: (event: StreamEvent<TData>) => void;
15878
+ serializedBody?: RequestInit["body"];
15879
+ /**
15880
+ * Default retry delay in milliseconds.
15881
+ *
15882
+ * This option applies only if the endpoint returns a stream of events.
15883
+ *
15884
+ * @default 3000
15885
+ */
15886
+ sseDefaultRetryDelay?: number;
15887
+ /**
15888
+ * Maximum number of retry attempts before giving up.
15889
+ */
15890
+ sseMaxRetryAttempts?: number;
15891
+ /**
15892
+ * Maximum retry delay in milliseconds.
15893
+ *
15894
+ * Applies only when exponential backoff is used.
15895
+ *
15896
+ * This option applies only if the endpoint returns a stream of events.
15897
+ *
15898
+ * @default 30000
15899
+ */
15900
+ sseMaxRetryDelay?: number;
15901
+ /**
15902
+ * Optional sleep function for retry backoff.
15903
+ *
15904
+ * Defaults to using `setTimeout`.
15905
+ */
15906
+ sseSleepFn?: (ms: number) => Promise<void>;
15907
+ url: string;
15908
+ };
15909
+ interface StreamEvent<TData = unknown> {
15910
+ data: TData;
15911
+ event?: string;
15912
+ id?: string;
15913
+ retry?: number;
15914
+ }
15915
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
15916
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
15917
+ };
15918
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
15919
+ /** response may be undefined due to a network error where no response object is produced */
15920
+ response: Res | undefined,
15921
+ /** request may be undefined, because error may be from building the request object itself */
15922
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
15923
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
15924
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
15925
+ declare class Interceptors<Interceptor> {
15926
+ fns: Array<Interceptor | null>;
15927
+ clear(): void;
15928
+ eject(id: number | Interceptor): void;
15929
+ exists(id: number | Interceptor): boolean;
15930
+ getInterceptorIndex(id: number | Interceptor): number;
15931
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
15932
+ use(fn: Interceptor): number;
15933
+ }
15934
+ interface Middleware<Req, Res, Err, Options> {
15935
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
15936
+ request: Interceptors<ReqInterceptor<Req, Options>>;
15937
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
15938
+ }
15939
+ type ResponseStyle = "data" | "fields";
15940
+ interface Config$1<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, Config {
15941
+ /**
15942
+ * Base URL for all requests made by this client.
15943
+ */
15944
+ baseUrl?: T["baseUrl"];
15945
+ /**
15946
+ * Fetch API implementation. You can use this option to provide a custom
15947
+ * fetch instance.
15948
+ *
15949
+ * @default globalThis.fetch
15950
+ */
15951
+ fetch?: typeof fetch;
15952
+ /**
15953
+ * Please don't use the Fetch client for Next.js applications. The `next`
15954
+ * options won't have any effect.
15955
+ *
15956
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
15957
+ */
15958
+ next?: never;
15959
+ /**
15960
+ * Return the response data parsed in a specified format. By default, `auto`
15961
+ * will infer the appropriate method from the `Content-Type` response header.
15962
+ * You can override this behavior with any of the {@link Body} methods.
15963
+ * Select `stream` if you don't want to parse response data at all.
15964
+ *
15965
+ * @default 'auto'
15966
+ */
15967
+ parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
15968
+ /**
15969
+ * Should we return only data or multiple fields (data, error, response, etc.)?
15970
+ *
15971
+ * @default 'fields'
15972
+ */
15973
+ responseStyle?: ResponseStyle;
15974
+ /**
15975
+ * Throw an error instead of returning it in the response?
15976
+ *
15977
+ * @default false
15978
+ */
15979
+ throwOnError?: T["throwOnError"];
15980
+ }
15981
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$1<{
15982
+ responseStyle: TResponseStyle;
15983
+ throwOnError: ThrowOnError;
15984
+ }>, Pick<ServerSentEventsOptions<TData>, "onRequest" | "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
15985
+ /**
15986
+ * Any body that you want to add to your request.
15987
+ *
15988
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
15989
+ */
15990
+ body?: unknown;
15991
+ path?: Record<string, unknown>;
15992
+ query?: Record<string, unknown>;
15993
+ /**
15994
+ * Security mechanism(s) to use for the request.
15995
+ */
15996
+ security?: ReadonlyArray<Auth>;
15997
+ url: Url;
15998
+ }
15999
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
16000
+ headers: Headers;
16001
+ serializedBody?: string;
16002
+ }
16003
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
16004
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
16005
+ request: Request;
16006
+ response: Response;
16007
+ }> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
16008
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
16009
+ error: undefined;
16010
+ } | {
16011
+ data: undefined;
16012
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
16013
+ }) & {
16014
+ /** request may be undefined, because error may be from building the request object itself */
16015
+ request?: Request;
16016
+ /** response may be undefined, because error may be from building the request object itself or from a network error */
16017
+ response?: Response;
16018
+ }>;
16019
+ interface ClientOptions {
16020
+ baseUrl?: string;
16021
+ responseStyle?: ResponseStyle;
16022
+ throwOnError?: boolean;
16023
+ }
16024
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
16025
+ type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData>>;
16026
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
16027
+ type BuildUrlFn = <TData extends {
16028
+ body?: unknown;
16029
+ path?: Record<string, unknown>;
16030
+ query?: Record<string, unknown>;
16031
+ url: string;
16032
+ }>(options: TData & Options<TData>) => string;
16033
+ type Client$1 = Client<RequestFn, Config$1, MethodFn, BuildUrlFn, SseFn> & {
16034
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
16035
+ };
16036
+ interface TDataShape {
16037
+ body?: unknown;
16038
+ headers?: unknown;
16039
+ path?: unknown;
16040
+ query?: unknown;
16041
+ url: string;
16042
+ }
16043
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
16044
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([
16045
+ TData
16046
+ ] extends [
16047
+ never
16048
+ ] ? unknown : Omit<TData, "url">);
16049
+ declare const createClient: (config?: Config$1) => Client$1;
14172
16050
  /** Options shared by every auto-paginating iterator. */
14173
16051
  export interface IterationOptions {
14174
16052
  /** Stop before the next page when aborted. */
@@ -14291,7 +16169,21 @@ type TransportOptions = {
14291
16169
  readonly clientName?: string;
14292
16170
  readonly clientVersion?: string;
14293
16171
  };
14294
- export type PubNioClientOptions = AuthOptions & TransportOptions;
16172
+ export interface ClientRuntime {
16173
+ readonly client: ReturnType<typeof createClient>;
16174
+ readonly transport: (options?: OperationOptions, fallbackTimeoutMs?: number) => {
16175
+ signal?: AbortSignal;
16176
+ };
16177
+ readonly decode: <T>(schema: Schema.Decoder<T>, request: Promise<{
16178
+ data?: unknown;
16179
+ error?: unknown;
16180
+ response?: Response;
16181
+ }>) => Promise<T>;
16182
+ }
16183
+ export type PubNioClientOptions = AuthOptions & TransportOptions & {
16184
+ /** @internal Captures the configured transport for generated surfaces. */
16185
+ readonly onRuntime?: (runtime: ClientRuntime) => void;
16186
+ };
14295
16187
  export interface OperationOptions {
14296
16188
  readonly signal?: AbortSignal;
14297
16189
  readonly timeoutMs?: number;
@@ -14615,10 +16507,30 @@ export interface AdsTreeOptions extends PageOptions {
14615
16507
  accountId?: AccountId;
14616
16508
  campaignId?: string;
14617
16509
  }
16510
+ export interface AdsCampaignPlanOptions extends PageOptions {
16511
+ status?: AdCampaignPlanStatus;
16512
+ }
14618
16513
  export interface AdsCreativeOptions extends PageOptions {
14619
16514
  accountId?: AccountId;
14620
16515
  adId?: AdId;
14621
16516
  }
16517
+ export interface AdsAdGroupOptions extends PageOptions {
16518
+ accountId?: AccountId;
16519
+ campaignId?: string;
16520
+ provider?: AdProvider;
16521
+ status?: AdEntityStatus;
16522
+ from?: string;
16523
+ to?: string;
16524
+ }
16525
+ export interface AdsAdOptions extends PageOptions {
16526
+ accountId?: AccountId;
16527
+ campaignId?: string;
16528
+ adGroupId?: string;
16529
+ provider?: AdProvider;
16530
+ status?: AdEntityStatus;
16531
+ from?: string;
16532
+ to?: string;
16533
+ }
14622
16534
  export interface AdsInsightOptions extends PageOptions {
14623
16535
  accountId?: AccountId;
14624
16536
  campaignId?: string;
@@ -14638,6 +16550,7 @@ export interface AdsClient {
14638
16550
  state?: AdAccountState;
14639
16551
  } & PageOptions, iteration?: IterationOptions): AsyncGenerator<AdAccountList["data"][number], void, undefined>;
14640
16552
  connect(input: AdConnectInput): Promise<AdConnectLaunch>;
16553
+ connectApiKey(input: Omit<AdApiKeyConnectInput, "workspaceId">): Promise<AdApiKeyConnectResult>;
14641
16554
  select(accountId: AccountId): Promise<AdAccountSelection>;
14642
16555
  disconnect(accountId: AccountId): Promise<AdAccountDisconnected>;
14643
16556
  campaigns(options?: AdsCampaignOptions): Promise<AdCampaignList>;
@@ -14646,11 +16559,19 @@ export interface AdsClient {
14646
16559
  accountCampaigns(accountId: AccountId, options?: Omit<AdsCampaignOptions, "accountId">): Promise<AdCampaignList>;
14647
16560
  /** Read every campaign page for one ad account. */
14648
16561
  iterateAccountCampaigns(accountId: AccountId, options?: Omit<AdsCampaignOptions, "accountId">, iteration?: IterationOptions): AsyncGenerator<AdCampaignList["data"][number], void, undefined>;
16562
+ adGroups(options?: AdsAdGroupOptions): Promise<AdGroupList>;
16563
+ /** Read every ad group page. */
16564
+ iterateAdGroups(options?: AdsAdGroupOptions, iteration?: IterationOptions): AsyncGenerator<AdGroupList["data"][number], void, undefined>;
16565
+ ads(options?: AdsAdOptions): Promise<AdList>;
16566
+ /** Read every ad page. */
16567
+ iterateAds(options?: AdsAdOptions, iteration?: IterationOptions): AsyncGenerator<AdList["data"][number], void, undefined>;
14649
16568
  tree(options?: AdsTreeOptions): Promise<AdTree>;
14650
16569
  /** Read every ad tree page. */
14651
16570
  iterateTree(options?: AdsTreeOptions, iteration?: IterationOptions): AsyncGenerator<AdTree["data"][number], void, undefined>;
14652
16571
  ad(adId: AdId): Promise<Ad>;
14653
16572
  creatives(options?: AdsCreativeOptions): Promise<AdCreativeList>;
16573
+ creative(creativeId: AdCreativeId): Promise<AdCreative>;
16574
+ createCreative(accountId: AccountId, input: AdCreativeCreateInput, options?: AdWriteOptions): Promise<AdOperation>;
14654
16575
  /** Read every creative page. */
14655
16576
  iterateCreatives(options?: AdsCreativeOptions, iteration?: IterationOptions): AsyncGenerator<AdCreativeList["data"][number], void, undefined>;
14656
16577
  insights(options?: AdsInsightOptions): Promise<AdInsightList>;
@@ -14665,9 +16586,22 @@ export interface AdsClient {
14665
16586
  setKillSwitch(accountId: AccountId, input: AdKillSwitchInput): Promise<AdKillSwitchResult>;
14666
16587
  operation(accountId: AccountId, operationId: AdOperationId): Promise<AdOperation>;
14667
16588
  validateBoost(accountId: AccountId, input: AdBoostDraft): Promise<AdValidation>;
16589
+ validateCampaignPlan(input: AdCampaignPlan): Promise<AdCampaignPlanValidation>;
16590
+ createCampaignPlan(input: AdCampaignPlan, options?: AdWriteOptions): Promise<AdCampaignPlanAccepted>;
16591
+ campaignPlan(planId: string): Promise<AdCampaignPlanDetail>;
16592
+ campaignPlans(options?: AdsCampaignPlanOptions): Promise<AdCampaignPlanList>;
16593
+ iterateCampaignPlans(options?: AdsCampaignPlanOptions, iteration?: IterationOptions): AsyncGenerator<AdCampaignPlanList["data"][number], void, undefined>;
14668
16594
  createBoost(accountId: AccountId, input: AdBoostDraft, options?: AdWriteOptions): Promise<AdOperation>;
14669
16595
  activateCampaign(accountId: AccountId, campaignId: AdCampaignId, input: AdCampaignActivationInput, options?: AdWriteOptions): Promise<AdOperation>;
14670
16596
  pauseCampaign(accountId: AccountId, campaignId: AdCampaignId, input: AdCampaignPauseInput, options?: AdWriteOptions): Promise<AdOperation>;
16597
+ archiveCampaign(accountId: AccountId, campaignId: AdCampaignId, input: AdCampaignArchiveInput, options?: AdWriteOptions): Promise<AdOperation>;
16598
+ duplicateCampaign(accountId: AccountId, campaignId: AdCampaignId, input: AdCampaignDuplicateInput, options?: AdWriteOptions): Promise<AdOperation>;
16599
+ setCampaignBudget(accountId: AccountId, campaignId: AdCampaignId, input: AdBudgetUpdateInput, options?: AdWriteOptions): Promise<AdOperation>;
16600
+ setAdGroupBudget(accountId: AccountId, adGroupId: AdGroupId, input: AdBudgetUpdateInput, options?: AdWriteOptions): Promise<AdOperation>;
16601
+ setAdGroupStatus(accountId: AccountId, adGroupId: AdGroupId, input: AdEntityStatusUpdate, options?: AdWriteOptions): Promise<AdOperation>;
16602
+ attachAd(accountId: AccountId, adGroupId: AdGroupId, input: AdAttachAdInput, options?: AdWriteOptions): Promise<AdOperation>;
16603
+ createAdGroup(accountId: AccountId, campaignId: AdCampaignId, input: AdAdGroupCreateInput, options?: AdWriteOptions): Promise<AdOperation>;
16604
+ setAdStatus(accountId: AccountId, adId: AdId, input: AdEntityStatusUpdate, options?: AdWriteOptions): Promise<AdOperation>;
14671
16605
  }
14672
16606
  /** Every ad write accepts an Idempotency-Key; one is generated when omitted. */
14673
16607
  export interface AdWriteOptions {
@@ -14761,7 +16695,7 @@ export interface PubNioClient {
14761
16695
  readonly billing: RootBillingClient;
14762
16696
  workspace(workspaceId: string): PubNioWorkspaceClient;
14763
16697
  }
14764
- export declare function createPubNioClient({ baseUrl, accessToken, apiKey, fetch: fetcher, headers, timeoutMs: requestedTimeoutMs, signal: clientSignal, retries: requestedRetries, clientName, clientVersion, }: PubNioClientOptions): PubNioClient;
16698
+ export declare function createPubNioClient({ baseUrl, accessToken, apiKey, fetch: fetcher, headers, timeoutMs: requestedTimeoutMs, signal: clientSignal, retries: requestedRetries, clientName, clientVersion, onRuntime, }: PubNioClientOptions): PubNioClient;
14765
16699
 
14766
16700
  export {
14767
16701
  MediaList$1 as MediaList,