@postrun/js 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { zErrorCode } from './chunk-BJ6NXBN5.js';
1
+ import { zErrorCode } from './chunk-62WCSNZ4.js';
2
2
  import * as z from 'zod';
3
3
 
4
4
  var ProblemSchema = z.object({
@@ -810,8 +810,54 @@ var createClient = (config = {}) => {
810
810
  };
811
811
  };
812
812
 
813
+ // src/token-cache.ts
814
+ function createTokenCache(getToken) {
815
+ let cached;
816
+ let inFlight;
817
+ const mint = () => {
818
+ if (!inFlight) {
819
+ inFlight = Promise.resolve().then(getToken).then((token) => {
820
+ cached = token;
821
+ return token;
822
+ }).finally(() => {
823
+ inFlight = void 0;
824
+ });
825
+ }
826
+ return inFlight;
827
+ };
828
+ return {
829
+ current() {
830
+ return cached !== void 0 ? Promise.resolve(cached) : mint();
831
+ },
832
+ refresh() {
833
+ cached = void 0;
834
+ return mint();
835
+ }
836
+ };
837
+ }
838
+
813
839
  // src/client.ts
814
840
  var DEFAULT_BASE_URL = "https://api.postrun.ai/v1";
841
+ var UNAUTHORIZED = 401;
842
+ function createRetryingFetch(tokenCache) {
843
+ const realFetch = (...args) => globalThis.fetch(...args);
844
+ return async (input, init) => {
845
+ const request = new Request(input, init);
846
+ const retryable = request.clone();
847
+ const response = await realFetch(request);
848
+ if (response.status !== UNAUTHORIZED) {
849
+ return response;
850
+ }
851
+ try {
852
+ const token = await tokenCache.refresh();
853
+ const headers = new Headers(retryable.headers);
854
+ headers.set("Authorization", `Bearer ${token}`);
855
+ return await realFetch(new Request(retryable, { headers }));
856
+ } catch {
857
+ return response;
858
+ }
859
+ };
860
+ }
815
861
  function appendScalar(parts, key, value) {
816
862
  parts.push(
817
863
  `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
@@ -838,10 +884,12 @@ function serializeQuery(query) {
838
884
  return parts.join("&");
839
885
  }
840
886
  function createPostrunClient(options) {
887
+ const tokenCache = createTokenCache(options.getToken);
841
888
  const client2 = createClient(
842
889
  createConfig({
843
890
  baseUrl: options.baseUrl ?? DEFAULT_BASE_URL,
844
- auth: () => options.getToken(),
891
+ auth: () => tokenCache.current(),
892
+ fetch: createRetryingFetch(tokenCache),
845
893
  querySerializer: serializeQuery,
846
894
  throwOnError: true
847
895
  })
@@ -1450,10 +1498,6 @@ var googleRemoveBudget = (options) => (options.client ?? client).post({
1450
1498
  key: "secretKey",
1451
1499
  scheme: "bearer",
1452
1500
  type: "http"
1453
- }, {
1454
- key: "frontendToken",
1455
- scheme: "bearer",
1456
- type: "http"
1457
1501
  }],
1458
1502
  url: "/google/{connection_id}/budgets/{id}/remove",
1459
1503
  ...options,
@@ -1522,6 +1566,19 @@ var googleEditCampaign = (options) => (options.client ?? client).patch({
1522
1566
  ...options.headers
1523
1567
  }
1524
1568
  });
1569
+ var googleSetCampaignBidding = (options) => (options.client ?? client).patch({
1570
+ security: [{
1571
+ key: "secretKey",
1572
+ scheme: "bearer",
1573
+ type: "http"
1574
+ }],
1575
+ url: "/google/{connection_id}/campaigns/{id}/bidding",
1576
+ ...options,
1577
+ headers: {
1578
+ "Content-Type": "application/json",
1579
+ ...options.headers
1580
+ }
1581
+ });
1525
1582
  var googleRemoveCampaign = (options) => (options.client ?? client).post({
1526
1583
  security: [{
1527
1584
  key: "secretKey",
@@ -1894,6 +1951,23 @@ var googleGetAd = (options) => (options.client ?? client).get({
1894
1951
  url: "/google/{connection_id}/ads/{id}",
1895
1952
  ...options
1896
1953
  });
1954
+ var googleEditAd = (options) => (options.client ?? client).patch({
1955
+ security: [{
1956
+ key: "secretKey",
1957
+ scheme: "bearer",
1958
+ type: "http"
1959
+ }, {
1960
+ key: "frontendToken",
1961
+ scheme: "bearer",
1962
+ type: "http"
1963
+ }],
1964
+ url: "/google/{connection_id}/ads/{id}",
1965
+ ...options,
1966
+ headers: {
1967
+ "Content-Type": "application/json",
1968
+ ...options.headers
1969
+ }
1970
+ });
1897
1971
  var googleCreateDisplayAd = (options) => (options.client ?? client).post({
1898
1972
  security: [{
1899
1973
  key: "secretKey",
@@ -1911,6 +1985,23 @@ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
1911
1985
  ...options.headers
1912
1986
  }
1913
1987
  });
1988
+ var googleEditDisplayAd = (options) => (options.client ?? client).patch({
1989
+ security: [{
1990
+ key: "secretKey",
1991
+ scheme: "bearer",
1992
+ type: "http"
1993
+ }, {
1994
+ key: "frontendToken",
1995
+ scheme: "bearer",
1996
+ type: "http"
1997
+ }],
1998
+ url: "/google/{connection_id}/display-ads/{id}",
1999
+ ...options,
2000
+ headers: {
2001
+ "Content-Type": "application/json",
2002
+ ...options.headers
2003
+ }
2004
+ });
1914
2005
  var googleRemoveAd = (options) => (options.client ?? client).post({
1915
2006
  security: [{
1916
2007
  key: "secretKey",
@@ -2112,6 +2203,40 @@ var googleGetConversionAction = (options) => (options.client ?? client).get({
2112
2203
  url: "/google/{connection_id}/conversion-actions/{id}",
2113
2204
  ...options
2114
2205
  });
2206
+ var googleUpdateConversionAction = (options) => (options.client ?? client).patch({
2207
+ security: [{
2208
+ key: "secretKey",
2209
+ scheme: "bearer",
2210
+ type: "http"
2211
+ }, {
2212
+ key: "frontendToken",
2213
+ scheme: "bearer",
2214
+ type: "http"
2215
+ }],
2216
+ url: "/google/{connection_id}/conversion-actions/{id}",
2217
+ ...options,
2218
+ headers: {
2219
+ "Content-Type": "application/json",
2220
+ ...options.headers
2221
+ }
2222
+ });
2223
+ var googleRemoveConversionAction = (options) => (options.client ?? client).post({
2224
+ security: [{
2225
+ key: "secretKey",
2226
+ scheme: "bearer",
2227
+ type: "http"
2228
+ }, {
2229
+ key: "frontendToken",
2230
+ scheme: "bearer",
2231
+ type: "http"
2232
+ }],
2233
+ url: "/google/{connection_id}/conversion-actions/{id}/remove",
2234
+ ...options,
2235
+ headers: {
2236
+ "Content-Type": "application/json",
2237
+ ...options.headers
2238
+ }
2239
+ });
2115
2240
  var googleSendConversions = (options) => (options.client ?? client).post({
2116
2241
  security: [{
2117
2242
  key: "secretKey",
@@ -2202,7 +2327,7 @@ var googleUploadImageAsset = (options) => (options.client ?? client).post({
2202
2327
  ...options.headers
2203
2328
  }
2204
2329
  });
2205
- var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2330
+ var googleUploadYoutubeVideoAsset = (options) => (options.client ?? client).post({
2206
2331
  security: [{
2207
2332
  key: "secretKey",
2208
2333
  scheme: "bearer",
@@ -2212,9 +2337,528 @@ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2212
2337
  scheme: "bearer",
2213
2338
  type: "http"
2214
2339
  }],
2215
- url: "/connections/{id}/tiktok/creator-info",
2340
+ url: "/google/{connection_id}/assets/youtube-video",
2341
+ ...options,
2342
+ headers: {
2343
+ "Content-Type": "application/json",
2344
+ ...options.headers
2345
+ }
2346
+ });
2347
+ var googleListAssetGroups = (options) => (options.client ?? client).get({
2348
+ security: [{
2349
+ key: "secretKey",
2350
+ scheme: "bearer",
2351
+ type: "http"
2352
+ }, {
2353
+ key: "frontendToken",
2354
+ scheme: "bearer",
2355
+ type: "http"
2356
+ }],
2357
+ url: "/google/{connection_id}/asset-groups",
2358
+ ...options
2359
+ });
2360
+ var googleGetAssetGroup = (options) => (options.client ?? client).get({
2361
+ security: [{
2362
+ key: "secretKey",
2363
+ scheme: "bearer",
2364
+ type: "http"
2365
+ }, {
2366
+ key: "frontendToken",
2367
+ scheme: "bearer",
2368
+ type: "http"
2369
+ }],
2370
+ url: "/google/{connection_id}/asset-groups/{id}",
2371
+ ...options
2372
+ });
2373
+ var googleEditAssetGroup = (options) => (options.client ?? client).patch({
2374
+ security: [{
2375
+ key: "secretKey",
2376
+ scheme: "bearer",
2377
+ type: "http"
2378
+ }, {
2379
+ key: "frontendToken",
2380
+ scheme: "bearer",
2381
+ type: "http"
2382
+ }],
2383
+ url: "/google/{connection_id}/asset-groups/{id}",
2384
+ ...options,
2385
+ headers: {
2386
+ "Content-Type": "application/json",
2387
+ ...options.headers
2388
+ }
2389
+ });
2390
+ var googleCreateAssetGroup = (options) => (options.client ?? client).post({
2391
+ security: [{
2392
+ key: "secretKey",
2393
+ scheme: "bearer",
2394
+ type: "http"
2395
+ }, {
2396
+ key: "frontendToken",
2397
+ scheme: "bearer",
2398
+ type: "http"
2399
+ }],
2400
+ url: "/google/{connection_id}/performance-max/{campaign_id}/asset-groups",
2401
+ ...options,
2402
+ headers: {
2403
+ "Content-Type": "application/json",
2404
+ ...options.headers
2405
+ }
2406
+ });
2407
+ var googlePauseAssetGroup = (options) => (options.client ?? client).post({
2408
+ security: [{
2409
+ key: "secretKey",
2410
+ scheme: "bearer",
2411
+ type: "http"
2412
+ }, {
2413
+ key: "frontendToken",
2414
+ scheme: "bearer",
2415
+ type: "http"
2416
+ }],
2417
+ url: "/google/{connection_id}/asset-groups/{id}/pause",
2418
+ ...options,
2419
+ headers: {
2420
+ "Content-Type": "application/json",
2421
+ ...options.headers
2422
+ }
2423
+ });
2424
+ var googleEnableAssetGroup = (options) => (options.client ?? client).post({
2425
+ security: [{
2426
+ key: "secretKey",
2427
+ scheme: "bearer",
2428
+ type: "http"
2429
+ }, {
2430
+ key: "frontendToken",
2431
+ scheme: "bearer",
2432
+ type: "http"
2433
+ }],
2434
+ url: "/google/{connection_id}/asset-groups/{id}/enable",
2435
+ ...options,
2436
+ headers: {
2437
+ "Content-Type": "application/json",
2438
+ ...options.headers
2439
+ }
2440
+ });
2441
+ var googleRemoveAssetGroup = (options) => (options.client ?? client).post({
2442
+ security: [{
2443
+ key: "secretKey",
2444
+ scheme: "bearer",
2445
+ type: "http"
2446
+ }, {
2447
+ key: "frontendToken",
2448
+ scheme: "bearer",
2449
+ type: "http"
2450
+ }],
2451
+ url: "/google/{connection_id}/asset-groups/{id}/remove",
2452
+ ...options,
2453
+ headers: {
2454
+ "Content-Type": "application/json",
2455
+ ...options.headers
2456
+ }
2457
+ });
2458
+ var googleListAssetGroupAssets = (options) => (options.client ?? client).get({
2459
+ security: [{
2460
+ key: "secretKey",
2461
+ scheme: "bearer",
2462
+ type: "http"
2463
+ }, {
2464
+ key: "frontendToken",
2465
+ scheme: "bearer",
2466
+ type: "http"
2467
+ }],
2468
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
2469
+ ...options
2470
+ });
2471
+ var googleAttachAssetGroupAsset = (options) => (options.client ?? client).post({
2472
+ security: [{
2473
+ key: "secretKey",
2474
+ scheme: "bearer",
2475
+ type: "http"
2476
+ }, {
2477
+ key: "frontendToken",
2478
+ scheme: "bearer",
2479
+ type: "http"
2480
+ }],
2481
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
2482
+ ...options,
2483
+ headers: {
2484
+ "Content-Type": "application/json",
2485
+ ...options.headers
2486
+ }
2487
+ });
2488
+ var googleRemoveAssetGroupAsset = (options) => (options.client ?? client).post({
2489
+ security: [{
2490
+ key: "secretKey",
2491
+ scheme: "bearer",
2492
+ type: "http"
2493
+ }, {
2494
+ key: "frontendToken",
2495
+ scheme: "bearer",
2496
+ type: "http"
2497
+ }],
2498
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets/{id}/remove",
2499
+ ...options,
2500
+ headers: {
2501
+ "Content-Type": "application/json",
2502
+ ...options.headers
2503
+ }
2504
+ });
2505
+ var googleListAssetGroupSignals = (options) => (options.client ?? client).get({
2506
+ security: [{
2507
+ key: "secretKey",
2508
+ scheme: "bearer",
2509
+ type: "http"
2510
+ }, {
2511
+ key: "frontendToken",
2512
+ scheme: "bearer",
2513
+ type: "http"
2514
+ }],
2515
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
2216
2516
  ...options
2217
2517
  });
2518
+ var googleCreateAssetGroupSignal = (options) => (options.client ?? client).post({
2519
+ security: [{
2520
+ key: "secretKey",
2521
+ scheme: "bearer",
2522
+ type: "http"
2523
+ }, {
2524
+ key: "frontendToken",
2525
+ scheme: "bearer",
2526
+ type: "http"
2527
+ }],
2528
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
2529
+ ...options,
2530
+ headers: {
2531
+ "Content-Type": "application/json",
2532
+ ...options.headers
2533
+ }
2534
+ });
2535
+ var googleRemoveAssetGroupSignal = (options) => (options.client ?? client).post({
2536
+ security: [{
2537
+ key: "secretKey",
2538
+ scheme: "bearer",
2539
+ type: "http"
2540
+ }, {
2541
+ key: "frontendToken",
2542
+ scheme: "bearer",
2543
+ type: "http"
2544
+ }],
2545
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals/{id}/remove",
2546
+ ...options,
2547
+ headers: {
2548
+ "Content-Type": "application/json",
2549
+ ...options.headers
2550
+ }
2551
+ });
2552
+ var googleCreatePerformanceMax = (options) => (options.client ?? client).post({
2553
+ security: [{
2554
+ key: "secretKey",
2555
+ scheme: "bearer",
2556
+ type: "http"
2557
+ }],
2558
+ url: "/google/{connection_id}/performance-max",
2559
+ ...options,
2560
+ headers: {
2561
+ "Content-Type": "application/json",
2562
+ ...options.headers
2563
+ }
2564
+ });
2565
+ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2566
+ security: [{
2567
+ key: "secretKey",
2568
+ scheme: "bearer",
2569
+ type: "http"
2570
+ }, {
2571
+ key: "frontendToken",
2572
+ scheme: "bearer",
2573
+ type: "http"
2574
+ }],
2575
+ url: "/connections/{id}/tiktok/creator-info",
2576
+ ...options
2577
+ });
2578
+ var tiktokAdsListAdvertisers = (options) => (options.client ?? client).get({
2579
+ security: [{
2580
+ key: "secretKey",
2581
+ scheme: "bearer",
2582
+ type: "http"
2583
+ }, {
2584
+ key: "frontendToken",
2585
+ scheme: "bearer",
2586
+ type: "http"
2587
+ }],
2588
+ url: "/tiktok/{connection_id}/advertisers",
2589
+ ...options
2590
+ });
2591
+ var tiktokAdsListBusinessCenters = (options) => (options.client ?? client).get({
2592
+ security: [{
2593
+ key: "secretKey",
2594
+ scheme: "bearer",
2595
+ type: "http"
2596
+ }, {
2597
+ key: "frontendToken",
2598
+ scheme: "bearer",
2599
+ type: "http"
2600
+ }],
2601
+ url: "/tiktok/{connection_id}/business-centers",
2602
+ ...options
2603
+ });
2604
+ var tiktokAdsListCampaigns = (options) => (options.client ?? client).get({
2605
+ security: [{
2606
+ key: "secretKey",
2607
+ scheme: "bearer",
2608
+ type: "http"
2609
+ }, {
2610
+ key: "frontendToken",
2611
+ scheme: "bearer",
2612
+ type: "http"
2613
+ }],
2614
+ url: "/tiktok/{connection_id}/campaigns",
2615
+ ...options
2616
+ });
2617
+ var tiktokAdsCreateCampaign = (options) => (options.client ?? client).post({
2618
+ security: [{
2619
+ key: "secretKey",
2620
+ scheme: "bearer",
2621
+ type: "http"
2622
+ }],
2623
+ url: "/tiktok/{connection_id}/campaigns",
2624
+ ...options,
2625
+ headers: {
2626
+ "Content-Type": "application/json",
2627
+ ...options.headers
2628
+ }
2629
+ });
2630
+ var tiktokAdsUpdateCampaignStatus = (options) => (options.client ?? client).post({
2631
+ security: [{
2632
+ key: "secretKey",
2633
+ scheme: "bearer",
2634
+ type: "http"
2635
+ }, {
2636
+ key: "frontendToken",
2637
+ scheme: "bearer",
2638
+ type: "http"
2639
+ }],
2640
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/status",
2641
+ ...options,
2642
+ headers: {
2643
+ "Content-Type": "application/json",
2644
+ ...options.headers
2645
+ }
2646
+ });
2647
+ var tiktokAdsUpdateCampaignBudget = (options) => (options.client ?? client).post({
2648
+ security: [{
2649
+ key: "secretKey",
2650
+ scheme: "bearer",
2651
+ type: "http"
2652
+ }],
2653
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/budget",
2654
+ ...options,
2655
+ headers: {
2656
+ "Content-Type": "application/json",
2657
+ ...options.headers
2658
+ }
2659
+ });
2660
+ var tiktokAdsRemoveCampaign = (options) => (options.client ?? client).post({
2661
+ security: [{
2662
+ key: "secretKey",
2663
+ scheme: "bearer",
2664
+ type: "http"
2665
+ }, {
2666
+ key: "frontendToken",
2667
+ scheme: "bearer",
2668
+ type: "http"
2669
+ }],
2670
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/remove",
2671
+ ...options
2672
+ });
2673
+ var tiktokAdsListAdGroups = (options) => (options.client ?? client).get({
2674
+ security: [{
2675
+ key: "secretKey",
2676
+ scheme: "bearer",
2677
+ type: "http"
2678
+ }, {
2679
+ key: "frontendToken",
2680
+ scheme: "bearer",
2681
+ type: "http"
2682
+ }],
2683
+ url: "/tiktok/{connection_id}/ad-groups",
2684
+ ...options
2685
+ });
2686
+ var tiktokAdsCreateAdGroup = (options) => (options.client ?? client).post({
2687
+ security: [{
2688
+ key: "secretKey",
2689
+ scheme: "bearer",
2690
+ type: "http"
2691
+ }],
2692
+ url: "/tiktok/{connection_id}/ad-groups",
2693
+ ...options,
2694
+ headers: {
2695
+ "Content-Type": "application/json",
2696
+ ...options.headers
2697
+ }
2698
+ });
2699
+ var tiktokAdsUpdateAdGroupStatus = (options) => (options.client ?? client).post({
2700
+ security: [{
2701
+ key: "secretKey",
2702
+ scheme: "bearer",
2703
+ type: "http"
2704
+ }, {
2705
+ key: "frontendToken",
2706
+ scheme: "bearer",
2707
+ type: "http"
2708
+ }],
2709
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/status",
2710
+ ...options,
2711
+ headers: {
2712
+ "Content-Type": "application/json",
2713
+ ...options.headers
2714
+ }
2715
+ });
2716
+ var tiktokAdsUpdateAdGroupBudget = (options) => (options.client ?? client).post({
2717
+ security: [{
2718
+ key: "secretKey",
2719
+ scheme: "bearer",
2720
+ type: "http"
2721
+ }],
2722
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/budget",
2723
+ ...options,
2724
+ headers: {
2725
+ "Content-Type": "application/json",
2726
+ ...options.headers
2727
+ }
2728
+ });
2729
+ var tiktokAdsRemoveAdGroup = (options) => (options.client ?? client).post({
2730
+ security: [{
2731
+ key: "secretKey",
2732
+ scheme: "bearer",
2733
+ type: "http"
2734
+ }, {
2735
+ key: "frontendToken",
2736
+ scheme: "bearer",
2737
+ type: "http"
2738
+ }],
2739
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/remove",
2740
+ ...options
2741
+ });
2742
+ var tiktokAdsListAds = (options) => (options.client ?? client).get({
2743
+ security: [{
2744
+ key: "secretKey",
2745
+ scheme: "bearer",
2746
+ type: "http"
2747
+ }, {
2748
+ key: "frontendToken",
2749
+ scheme: "bearer",
2750
+ type: "http"
2751
+ }],
2752
+ url: "/tiktok/{connection_id}/ads",
2753
+ ...options
2754
+ });
2755
+ var tiktokAdsCreateAd = (options) => (options.client ?? client).post({
2756
+ security: [{
2757
+ key: "secretKey",
2758
+ scheme: "bearer",
2759
+ type: "http"
2760
+ }, {
2761
+ key: "frontendToken",
2762
+ scheme: "bearer",
2763
+ type: "http"
2764
+ }],
2765
+ url: "/tiktok/{connection_id}/ads",
2766
+ ...options,
2767
+ headers: {
2768
+ "Content-Type": "application/json",
2769
+ ...options.headers
2770
+ }
2771
+ });
2772
+ var tiktokAdsUpdateAdStatus = (options) => (options.client ?? client).post({
2773
+ security: [{
2774
+ key: "secretKey",
2775
+ scheme: "bearer",
2776
+ type: "http"
2777
+ }, {
2778
+ key: "frontendToken",
2779
+ scheme: "bearer",
2780
+ type: "http"
2781
+ }],
2782
+ url: "/tiktok/{connection_id}/ads/{ad_id}/status",
2783
+ ...options,
2784
+ headers: {
2785
+ "Content-Type": "application/json",
2786
+ ...options.headers
2787
+ }
2788
+ });
2789
+ var tiktokAdsRemoveAd = (options) => (options.client ?? client).post({
2790
+ security: [{
2791
+ key: "secretKey",
2792
+ scheme: "bearer",
2793
+ type: "http"
2794
+ }, {
2795
+ key: "frontendToken",
2796
+ scheme: "bearer",
2797
+ type: "http"
2798
+ }],
2799
+ url: "/tiktok/{connection_id}/ads/{ad_id}/remove",
2800
+ ...options
2801
+ });
2802
+ var tiktokAdsGetInsights = (options) => (options.client ?? client).post({
2803
+ security: [{
2804
+ key: "secretKey",
2805
+ scheme: "bearer",
2806
+ type: "http"
2807
+ }, {
2808
+ key: "frontendToken",
2809
+ scheme: "bearer",
2810
+ type: "http"
2811
+ }],
2812
+ url: "/tiktok/{connection_id}/insights",
2813
+ ...options,
2814
+ headers: {
2815
+ "Content-Type": "application/json",
2816
+ ...options.headers
2817
+ }
2818
+ });
2819
+ var tiktokAdsGetAdTree = (options) => (options.client ?? client).get({
2820
+ security: [{
2821
+ key: "secretKey",
2822
+ scheme: "bearer",
2823
+ type: "http"
2824
+ }, {
2825
+ key: "frontendToken",
2826
+ scheme: "bearer",
2827
+ type: "http"
2828
+ }],
2829
+ url: "/tiktok/{connection_id}/ads/tree",
2830
+ ...options
2831
+ });
2832
+ var tiktokAdsListIdentities = (options) => (options.client ?? client).get({
2833
+ security: [{
2834
+ key: "secretKey",
2835
+ scheme: "bearer",
2836
+ type: "http"
2837
+ }, {
2838
+ key: "frontendToken",
2839
+ scheme: "bearer",
2840
+ type: "http"
2841
+ }],
2842
+ url: "/tiktok/{connection_id}/identities",
2843
+ ...options
2844
+ });
2845
+ var tiktokAdsCreateIdentity = (options) => (options.client ?? client).post({
2846
+ security: [{
2847
+ key: "secretKey",
2848
+ scheme: "bearer",
2849
+ type: "http"
2850
+ }, {
2851
+ key: "frontendToken",
2852
+ scheme: "bearer",
2853
+ type: "http"
2854
+ }],
2855
+ url: "/tiktok/{connection_id}/identities",
2856
+ ...options,
2857
+ headers: {
2858
+ "Content-Type": "application/json",
2859
+ ...options.headers
2860
+ }
2861
+ });
2218
2862
  var logsList = (options) => (options?.client ?? client).get({
2219
2863
  security: [{
2220
2864
  key: "secretKey",
@@ -2331,6 +2975,6 @@ var tokensMint = (options) => (options.client ?? client).post({
2331
2975
  }
2332
2976
  });
2333
2977
 
2334
- export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleEditAccount, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetCampaign, googleGetConversionAction, googleGetConversionStatus, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListConversionRequests, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSendConversions, googleSetAdGroupBids, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUploadImageAsset, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
2335
- //# sourceMappingURL=chunk-DT4DW5LA.js.map
2336
- //# sourceMappingURL=chunk-DT4DW5LA.js.map
2978
+ export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleAttachAssetGroupAsset, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateAssetGroup, googleCreateAssetGroupSignal, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleCreatePerformanceMax, googleEditAccount, googleEditAd, googleEditAdGroup, googleEditAssetGroup, googleEditBudget, googleEditCampaign, googleEditDisplayAd, googleEnableAd, googleEnableAdGroup, googleEnableAssetGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetAssetGroup, googleGetCampaign, googleGetConversionAction, googleGetConversionStatus, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAssetGroupAssets, googleListAssetGroupSignals, googleListAssetGroups, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListConversionRequests, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseAssetGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveAssetGroup, googleRemoveAssetGroupAsset, googleRemoveAssetGroupSignal, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveConversionAction, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSendConversions, googleSetAdGroupBids, googleSetCampaignBidding, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUpdateConversionAction, googleUploadImageAsset, googleUploadYoutubeVideoAsset, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokAdsCreateAd, tiktokAdsCreateAdGroup, tiktokAdsCreateCampaign, tiktokAdsCreateIdentity, tiktokAdsGetAdTree, tiktokAdsGetInsights, tiktokAdsListAdGroups, tiktokAdsListAds, tiktokAdsListAdvertisers, tiktokAdsListBusinessCenters, tiktokAdsListCampaigns, tiktokAdsListIdentities, tiktokAdsRemoveAd, tiktokAdsRemoveAdGroup, tiktokAdsRemoveCampaign, tiktokAdsUpdateAdGroupBudget, tiktokAdsUpdateAdGroupStatus, tiktokAdsUpdateAdStatus, tiktokAdsUpdateCampaignBudget, tiktokAdsUpdateCampaignStatus, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
2979
+ //# sourceMappingURL=chunk-W37M2JFI.js.map
2980
+ //# sourceMappingURL=chunk-W37M2JFI.js.map