@capibox/bridge-server 0.0.55 → 0.0.57

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.mts CHANGED
@@ -441,6 +441,16 @@ interface components {
441
441
  * ]
442
442
  */
443
443
  access?: string[];
444
+ /**
445
+ * @description Swagger tag
446
+ * @example facebook
447
+ */
448
+ tag: string;
449
+ /**
450
+ * @description Swagger type
451
+ * @enum {string}
452
+ */
453
+ swagger_type: "" | "public" | "crm";
444
454
  };
445
455
  CreateIntegrationDto: {
446
456
  /**
@@ -479,6 +489,16 @@ interface components {
479
489
  * ]
480
490
  */
481
491
  access?: string[];
492
+ /**
493
+ * @description Swagger tag
494
+ * @example facebook
495
+ */
496
+ tag: string;
497
+ /**
498
+ * @description Swagger type
499
+ * @enum {string}
500
+ */
501
+ swagger_type: "" | "public" | "crm";
482
502
  };
483
503
  UpdateIntegrationDto: {
484
504
  /**
@@ -522,6 +542,16 @@ interface components {
522
542
  * ]
523
543
  */
524
544
  access?: string[];
545
+ /**
546
+ * @description Swagger tag
547
+ * @example facebook
548
+ */
549
+ tag: string;
550
+ /**
551
+ * @description Swagger type
552
+ * @enum {string}
553
+ */
554
+ swagger_type: "" | "public" | "crm";
525
555
  };
526
556
  FunnelTemplatesEnumDto: {
527
557
  /**
@@ -775,6 +805,33 @@ interface components {
775
805
  [key: string]: unknown;
776
806
  };
777
807
  };
808
+ SessionResponseCurrencyInfo: {
809
+ /**
810
+ * @description Currency code (ISO 4217)
811
+ * @example USD
812
+ */
813
+ currency: string;
814
+ /**
815
+ * @description Country name
816
+ * @example United States
817
+ */
818
+ country: string;
819
+ /**
820
+ * @description Currency symbol
821
+ * @example $
822
+ */
823
+ symbol: string;
824
+ /**
825
+ * @description Exchange rate relative to base currency
826
+ * @example 1
827
+ */
828
+ rate: number;
829
+ };
830
+ SessionResponseWithCurrencyFullDto: {
831
+ success: number;
832
+ data: components["schemas"]["SessionResponseDto"];
833
+ currency: components["schemas"]["SessionResponseCurrencyInfo"];
834
+ };
778
835
  GetCurrencyDto: {
779
836
  /** @example [
780
837
  * "EUR",
@@ -1959,6 +2016,50 @@ interface components {
1959
2016
  message: string;
1960
2017
  data: components["schemas"]["PaypalTransactionResponseDto"][] | null;
1961
2018
  };
2019
+ PaypalDisputesFetchQueryDto: {
2020
+ /**
2021
+ * @description Filter by dispute state. Allowed values: OPEN, WAITING_FOR_BUYER_RESPONSE, WAITING_FOR_SELLER_RESPONSE, UNDER_REVIEW, RESOLVED
2022
+ * @example OPEN
2023
+ */
2024
+ dispute_state?: string;
2025
+ /**
2026
+ * @description Filter by dispute stage. Allowed values: INQUIRY, CHARGEBACK, PRE_ARBITRATION
2027
+ * @example INQUIRY
2028
+ */
2029
+ dispute_stage?: string;
2030
+ /**
2031
+ * @description Filter disputes updated after this time (RFC3339 with milliseconds)
2032
+ * @example 2025-08-27T00:00:00.000Z
2033
+ */
2034
+ update_time_after?: string;
2035
+ /**
2036
+ * @description Filter disputes updated before this time (RFC3339 with milliseconds)
2037
+ * @example 2025-08-28T00:00:00.000Z
2038
+ */
2039
+ update_time_before?: string;
2040
+ /**
2041
+ * @description Page number (>=1, ignored if start_time is provided)
2042
+ * @example 1
2043
+ */
2044
+ page?: number;
2045
+ /**
2046
+ * @description Results per page (max 50, ignored if start_time is provided)
2047
+ * @example 20
2048
+ */
2049
+ page_size?: number;
2050
+ /**
2051
+ * @description Whether to return total count (ignored if start_time is provided)
2052
+ * @example true
2053
+ */
2054
+ total_required?: boolean;
2055
+ };
2056
+ PaypalCommonSuccessResponseDto: {
2057
+ /**
2058
+ * @description Indicates if the operation was successful
2059
+ * @example true
2060
+ */
2061
+ success: boolean;
2062
+ };
1962
2063
  PaypalCrmPaymentResponseDto: {
1963
2064
  status: string;
1964
2065
  sourceId: string;
@@ -2159,6 +2260,27 @@ interface components {
2159
2260
  */
2160
2261
  totalPages: number;
2161
2262
  };
2263
+ SnapchatEventBridgeDto: {
2264
+ /** @description Event ID */
2265
+ eventId: string;
2266
+ /** @description Event name */
2267
+ eventName: string;
2268
+ /** @description Original page URL where the event occurred */
2269
+ sourceUrl?: string;
2270
+ };
2271
+ SnapChatEventDataDto: {
2272
+ /** @description ISO currency code (e.g., USD, EUR) */
2273
+ currency: string;
2274
+ /** @description Event value/total */
2275
+ value: number | string;
2276
+ };
2277
+ SnapchatCapiBridgeDto: {
2278
+ uuid: string;
2279
+ event: components["schemas"]["SnapchatEventBridgeDto"];
2280
+ eventData: components["schemas"]["SnapChatEventDataDto"];
2281
+ /** @description Test event code for validation */
2282
+ testEventCode?: string;
2283
+ };
2162
2284
  TiktokCapiEventDataDto: {
2163
2285
  value: number;
2164
2286
  sku: string;
@@ -2392,46 +2514,1217 @@ interface components {
2392
2514
  /** @example 10 */
2393
2515
  totalPages: number;
2394
2516
  };
2395
- };
2396
- responses: never;
2397
- parameters: never;
2398
- requestBodies: never;
2399
- headers: never;
2400
- pathItems: never;
2401
- }
2402
-
2403
- type SdkRemoteFunnel = {
2404
- checkout: string;
2405
- landing: string;
2406
- angle: string;
2407
- version: string;
2408
- homePageTemplate: string;
2409
- quizPageTemplate: string;
2410
- resultPageTemplate: string;
2411
- emailPageTemplate: string;
2412
- checkoutPageTemplate: string;
2413
- paymentWindowTemplate: string;
2414
- upsellPageTemplate: string;
2415
- options?: any;
2416
- upsellOptions?: any;
2417
- };
2418
-
2419
- declare const server: {
2420
- middleware: (req: next_server.NextRequest, options?: {
2421
- templates?: {
2422
- [key: string]: string[];
2517
+ StripeUploadDisputesSuccessResponseDto: {
2518
+ /**
2519
+ * @description Indicates that the request was successful.
2520
+ * @example true
2521
+ */
2522
+ success: boolean;
2423
2523
  };
2424
- }) => Promise<next_server.NextResponse<any> | undefined>;
2425
- funnels: {
2426
- get: () => Promise<SdkRemoteFunnel[]>;
2427
- getTemplates: ({ angle, version, searchParams }: {
2428
- angle: string;
2429
- version: string;
2430
- searchParams?: next_navigation.ReadonlyURLSearchParams;
2431
- }) => Promise<SdkRemoteFunnel>;
2432
- };
2433
- session: {
2434
- get: (uuid: string) => Promise<components["schemas"]["SessionResponseDto"]>;
2524
+ StripeBadRequestErrorDto: {
2525
+ /**
2526
+ * @description HTTP status code.
2527
+ * @example 400
2528
+ */
2529
+ statusCode: number;
2530
+ /**
2531
+ * @description List of error messages.
2532
+ * @example [
2533
+ * "property must be a string"
2534
+ * ]
2535
+ */
2536
+ message: string[];
2537
+ /**
2538
+ * @description Error message.
2539
+ * @example Bad Request
2540
+ */
2541
+ error: string;
2542
+ };
2543
+ StripeInternalServerErrorDto: {
2544
+ /**
2545
+ * @description HTTP status code.
2546
+ * @example 500
2547
+ */
2548
+ statusCode: number;
2549
+ /**
2550
+ * @description Error message.
2551
+ * @example Internal Server Error
2552
+ */
2553
+ message: string;
2554
+ /**
2555
+ * @description Error message.
2556
+ * @example Internal Server Error
2557
+ */
2558
+ error: string;
2559
+ };
2560
+ StripeEarlyFraudWarningRequestDto: {
2561
+ /**
2562
+ * @description Start date in YYYY-MM-DD format.
2563
+ * @example 2025-08-01
2564
+ */
2565
+ startDate?: string;
2566
+ /**
2567
+ * @description End date in YYYY-MM-DD format.
2568
+ * @example 2025-08-10
2569
+ */
2570
+ endDate?: string;
2571
+ };
2572
+ StripeEarlyFraudWarningSuccessResponseDto: {
2573
+ /**
2574
+ * @description Indicates whether the request was successful.
2575
+ * @example true
2576
+ */
2577
+ success: boolean;
2578
+ /**
2579
+ * @description Optional success or error message.
2580
+ * @example Fraud warnings synced successfully
2581
+ */
2582
+ message?: string;
2583
+ /**
2584
+ * @description Error message in case of failure.
2585
+ * @example Database error: duplicate key value
2586
+ */
2587
+ error?: string;
2588
+ };
2589
+ StripeChargeSyncRequestDto: {
2590
+ /**
2591
+ * @description Start date in YYYY-MM-DD format for fetching Stripe charges.
2592
+ * @example 2025-08-01
2593
+ */
2594
+ startDate?: string;
2595
+ /**
2596
+ * @description End date in YYYY-MM-DD format for fetching Stripe charges.
2597
+ * @example 2025-08-10
2598
+ */
2599
+ endDate?: string;
2600
+ };
2601
+ StripeChargeSyncSuccessResponseDto: {
2602
+ /**
2603
+ * @description Indicates that the charges sync request was successful.
2604
+ * @example true
2605
+ */
2606
+ success: boolean;
2607
+ /**
2608
+ * @description Optional success or error message.
2609
+ * @example Charges synced successfully
2610
+ */
2611
+ message?: string;
2612
+ /**
2613
+ * @description Error message in case of failure.
2614
+ * @example Database error: duplicate key value
2615
+ */
2616
+ error?: string;
2617
+ };
2618
+ StripeRefundSyncRequestDto: {
2619
+ /**
2620
+ * @description Start date in YYYY-MM-DD format for fetching Stripe refunds.
2621
+ * @example 2025-08-01
2622
+ */
2623
+ startDate?: string;
2624
+ /**
2625
+ * @description End date in YYYY-MM-DD format for fetching Stripe refunds.
2626
+ * @example 2025-08-10
2627
+ */
2628
+ endDate?: string;
2629
+ };
2630
+ StripeRefundSyncSuccessResponseDto: {
2631
+ /**
2632
+ * @description Indicates that the refunds sync request was successful.
2633
+ * @example true
2634
+ */
2635
+ success: boolean;
2636
+ /**
2637
+ * @description Optional success or error message.
2638
+ * @example Refunds synced successfully
2639
+ */
2640
+ message?: string;
2641
+ /**
2642
+ * @description Error message in case of failure.
2643
+ * @example Database error: duplicate key value
2644
+ */
2645
+ error?: string;
2646
+ };
2647
+ StripeChargeSearchRequestDto: {
2648
+ /**
2649
+ * @description Minimum amount in cents (e.g., 1500 for $15.00)
2650
+ * @example 1500
2651
+ */
2652
+ minAmount?: number;
2653
+ /**
2654
+ * @description Maximum amount in cents (e.g., 3000 for $30.00)
2655
+ * @example 3000
2656
+ */
2657
+ maxAmount?: number;
2658
+ /**
2659
+ * @description Last 4 digits of payment method card
2660
+ * @example 4242
2661
+ */
2662
+ last4?: string;
2663
+ /**
2664
+ * @description Filter by disputed status
2665
+ * @example true
2666
+ */
2667
+ disputed?: boolean;
2668
+ /**
2669
+ * @description Filter by refunded status
2670
+ * @example false
2671
+ */
2672
+ refunded?: boolean;
2673
+ /**
2674
+ * @description Start date in YYYY-MM-DD format for created range
2675
+ * @example 2025-08-01
2676
+ */
2677
+ startDate?: string;
2678
+ /**
2679
+ * @description End date in YYYY-MM-DD format for created range
2680
+ * @example 2025-08-10
2681
+ */
2682
+ endDate?: string;
2683
+ };
2684
+ StripeChargeSummaryDto: {
2685
+ /**
2686
+ * @description Charge ID
2687
+ * @example ch_1234567890
2688
+ */
2689
+ id: string;
2690
+ /**
2691
+ * @description Amount in cents
2692
+ * @example 2000
2693
+ */
2694
+ amount: number;
2695
+ /**
2696
+ * @description Currency code
2697
+ * @example usd
2698
+ */
2699
+ currency: string;
2700
+ /**
2701
+ * @description Whether the charge is disputed
2702
+ * @example false
2703
+ */
2704
+ disputed: boolean;
2705
+ /**
2706
+ * @description Whether the charge is refunded
2707
+ * @example false
2708
+ */
2709
+ refunded: boolean;
2710
+ /**
2711
+ * @description Creation timestamp
2712
+ * @example 1640995200
2713
+ */
2714
+ created: number;
2715
+ /** @description Metadata associated with the charge */
2716
+ metadata?: Record<string, never>;
2717
+ };
2718
+ StripeChargeSearchSuccessResponseDto: {
2719
+ /**
2720
+ * @description Indicates that the charges search request was successful
2721
+ * @example true
2722
+ */
2723
+ success: boolean;
2724
+ /** @description Array of charge summaries matching the search criteria */
2725
+ data: components["schemas"]["StripeChargeSummaryDto"][];
2726
+ /**
2727
+ * @description Total number of charges found and saved to database
2728
+ * @example 25
2729
+ */
2730
+ total_saved: number;
2731
+ /**
2732
+ * @description Indicates if there are more results available
2733
+ * @example false
2734
+ */
2735
+ has_more: boolean;
2736
+ };
2737
+ StripeDisputeSummaryDto: {
2738
+ /**
2739
+ * @description Dispute ID
2740
+ * @example dp_1234567890
2741
+ */
2742
+ id: string;
2743
+ /**
2744
+ * @description Disputed amount in cents
2745
+ * @example 5000
2746
+ */
2747
+ amount: number;
2748
+ /**
2749
+ * @description Currency code
2750
+ * @example usd
2751
+ */
2752
+ currency: string;
2753
+ /**
2754
+ * @description Current status of the dispute
2755
+ * @example needs_response
2756
+ */
2757
+ status: string;
2758
+ /**
2759
+ * @description Reason for the dispute
2760
+ * @example fraudulent
2761
+ */
2762
+ reason?: string | null;
2763
+ /**
2764
+ * @description Creation timestamp of the dispute
2765
+ * @example 1640995200
2766
+ */
2767
+ created: number;
2768
+ /**
2769
+ * @description Associated charge ID
2770
+ * @example ch_1234567890
2771
+ */
2772
+ chargeId?: string | null;
2773
+ /**
2774
+ * @description Associated payment intent ID
2775
+ * @example pi_1234567890
2776
+ */
2777
+ paymentIntent?: string | null;
2778
+ };
2779
+ StripeDisputesSyncSuccessResponseDto: {
2780
+ /**
2781
+ * @description Indicates that the disputes sync request was successful.
2782
+ * @example true
2783
+ */
2784
+ success: boolean;
2785
+ /**
2786
+ * @description Total number of disputes fetched and processed
2787
+ * @example 10
2788
+ */
2789
+ total: number;
2790
+ /** @description Array of dispute summaries fetched from Stripe */
2791
+ data: components["schemas"]["StripeDisputeSummaryDto"][];
2792
+ };
2793
+ StripeInternalServerErrorResponseDto: {
2794
+ /**
2795
+ * @description HTTP status code
2796
+ * @example 500
2797
+ */
2798
+ statusCode: number;
2799
+ /**
2800
+ * @description Error message
2801
+ * @example Stripe error: Something went wrong
2802
+ */
2803
+ message: string;
2804
+ /**
2805
+ * @description Error type
2806
+ * @example Internal Server Error
2807
+ */
2808
+ error: string;
2809
+ };
2810
+ StripeSyncSuccessResponseDto: {
2811
+ /**
2812
+ * @description Status of the sync operation
2813
+ * @example success
2814
+ */
2815
+ status: string;
2816
+ /**
2817
+ * @description Success message describing the operation
2818
+ * @example Disputes jobs enqueued
2819
+ */
2820
+ message: string;
2821
+ };
2822
+ StripeChargeResponseDto: {
2823
+ /**
2824
+ * @description The ID of the charge.
2825
+ * @example 1
2826
+ */
2827
+ id: number;
2828
+ /**
2829
+ * @description The Stripe charge ID.
2830
+ * @example ch_1234567890
2831
+ */
2832
+ sourceId: string;
2833
+ /**
2834
+ * @description The creation timestamp of the charge.
2835
+ * @example 1692942318
2836
+ */
2837
+ created: number;
2838
+ /**
2839
+ * @description True if the object exists in live mode; false if the object exists in test mode.
2840
+ * @example false
2841
+ */
2842
+ livemode: boolean;
2843
+ /**
2844
+ * @description Full Stripe charge object stored as JSON.
2845
+ * @example {
2846
+ * "id": "ch_1234567890",
2847
+ * "amount": 2000,
2848
+ * "currency": "usd"
2849
+ * }
2850
+ */
2851
+ data: Record<string, never>;
2852
+ /**
2853
+ * Format: date-time
2854
+ * @description The creation date of the charge record.
2855
+ * @example 2021-01-01T00:00:00.000Z
2856
+ */
2857
+ createdAt: string;
2858
+ /**
2859
+ * Format: date-time
2860
+ * @description The last update date of the charge record.
2861
+ * @example 2021-01-01T00:00:00.000Z
2862
+ */
2863
+ updatedAt: string;
2864
+ };
2865
+ StripeChargePaginatedResponseDto: {
2866
+ data: components["schemas"]["StripeChargeResponseDto"][];
2867
+ /** @example 100 */
2868
+ total: number;
2869
+ /** @example 1 */
2870
+ page: number;
2871
+ /** @example 10 */
2872
+ limit: number;
2873
+ /** @example 10 */
2874
+ totalPages: number;
2875
+ };
2876
+ StripeDisputeResponseDto: {
2877
+ /**
2878
+ * @description The ID of the dispute.
2879
+ * @example 1
2880
+ */
2881
+ id: number;
2882
+ /**
2883
+ * @description The Stripe dispute ID.
2884
+ * @example du_1RqrpqHUCmnJBv5wT1EOPHlg
2885
+ */
2886
+ sourceId: string;
2887
+ /**
2888
+ * Format: date-time
2889
+ * @description The creation date of the dispute.
2890
+ * @example 2025-08-19T11:12:30.000Z
2891
+ */
2892
+ disputeCreatedUtc: string;
2893
+ /**
2894
+ * Format: date-time
2895
+ * @description The creation date of the original charge.
2896
+ * @example 2025-08-18T09:40:00.000Z
2897
+ */
2898
+ chargeCreatedUtc: string;
2899
+ /**
2900
+ * @description The amount of the dispute.
2901
+ * @example 100.50
2902
+ */
2903
+ disputeAmount: string;
2904
+ /**
2905
+ * @description The currency of the dispute.
2906
+ * @example USD
2907
+ */
2908
+ disputeCurrency: string;
2909
+ /**
2910
+ * @description The amount of the original charge.
2911
+ * @example 100.50
2912
+ */
2913
+ chargeAmount: string;
2914
+ /**
2915
+ * @description The currency of the original charge.
2916
+ * @example USD
2917
+ */
2918
+ chargeCurrencyChargeId: string;
2919
+ /**
2920
+ * @description The reason for the dispute.
2921
+ * @example fraudulent
2922
+ */
2923
+ reason: string;
2924
+ /**
2925
+ * @description The current status of the dispute.
2926
+ * @example needs_response
2927
+ */
2928
+ status: string;
2929
+ /**
2930
+ * @description Whether this is a Visa Rapid Dispute Resolution.
2931
+ * @example false
2932
+ */
2933
+ isVisaRapidDisputeResolution: boolean;
2934
+ /**
2935
+ * @description The payment intent ID associated with the dispute.
2936
+ * @example pi_3Lp7g22eZvKYlo2C7X9Y8Z7W
2937
+ */
2938
+ paymentIntent: string;
2939
+ /**
2940
+ * @description The charge ID associated with the dispute.
2941
+ * @example ch_3Lp7g22eZvKYlo2C1A2B3D4E
2942
+ */
2943
+ chargeId: string;
2944
+ };
2945
+ StripeDisputePaginatedResponseDto: {
2946
+ data: components["schemas"]["StripeDisputeResponseDto"][];
2947
+ /** @example 100 */
2948
+ total: number;
2949
+ /** @example 1 */
2950
+ page: number;
2951
+ /** @example 10 */
2952
+ limit: number;
2953
+ /** @example 10 */
2954
+ totalPages: number;
2955
+ };
2956
+ StripeEarlyFraudWarningResponseDto: {
2957
+ /**
2958
+ * @description The ID of the early fraud warning.
2959
+ * @example 1
2960
+ */
2961
+ id: number;
2962
+ /**
2963
+ * @description The Stripe early fraud warning ID.
2964
+ * @example issfr_1Pb2dF2eZvKYlo2C5Z4Z4Z4Z
2965
+ */
2966
+ sourceId: string;
2967
+ /**
2968
+ * @description String representing the object's type.
2969
+ * @example radar.early_fraud_warning
2970
+ */
2971
+ object: string;
2972
+ /**
2973
+ * @description Whether the fraud warning is actionable.
2974
+ * @example true
2975
+ */
2976
+ actionable: boolean;
2977
+ /**
2978
+ * @description ID of the charge this fraud warning is for.
2979
+ * @example ch_3Pb2dF2eZvKYlo2C1Z4Z4Z4Z
2980
+ */
2981
+ charge: string;
2982
+ /**
2983
+ * @description Time at which the object was created. Measured in seconds since the Unix epoch.
2984
+ * @example 1672531199
2985
+ */
2986
+ created: number;
2987
+ /**
2988
+ * @description The type of fraud.
2989
+ * @example card_risk_level_elevated
2990
+ */
2991
+ fraudType: string;
2992
+ /**
2993
+ * @description Has the value true if the object exists in live mode or the value false if the object exists in test mode.
2994
+ * @example false
2995
+ */
2996
+ livemode: boolean;
2997
+ /**
2998
+ * Format: date-time
2999
+ * @description Timestamp of when the record was created in the database.
3000
+ * @example 2021-01-01T00:00:00.000Z
3001
+ */
3002
+ createdAt: string;
3003
+ /**
3004
+ * Format: date-time
3005
+ * @description Timestamp of when the record was last updated in the database.
3006
+ * @example 2021-01-01T00:00:00.000Z
3007
+ */
3008
+ updatedAt: string;
3009
+ };
3010
+ StripeEarlyFraudWarningPaginatedResponseDto: {
3011
+ data: components["schemas"]["StripeEarlyFraudWarningResponseDto"][];
3012
+ /** @example 100 */
3013
+ total: number;
3014
+ /** @example 1 */
3015
+ page: number;
3016
+ /** @example 10 */
3017
+ limit: number;
3018
+ /** @example 10 */
3019
+ totalPages: number;
3020
+ };
3021
+ StripeRefundResponseDto: {
3022
+ /**
3023
+ * @description Internal database ID.
3024
+ * @example 1
3025
+ */
3026
+ id: number;
3027
+ /**
3028
+ * @description Stripe refund ID.
3029
+ * @example re_123
3030
+ */
3031
+ sourceId: string;
3032
+ /**
3033
+ * @description Time at which the refund was created on Stripe. Seconds since Unix epoch.
3034
+ * @example 1692942318
3035
+ */
3036
+ created: number;
3037
+ /**
3038
+ * @description True if the object exists in live mode; false if the object exists in test mode.
3039
+ * @example false
3040
+ */
3041
+ livemode: boolean;
3042
+ /** @description Full Stripe refund object stored as JSON. */
3043
+ data: Record<string, never>;
3044
+ /**
3045
+ * Format: date-time
3046
+ * @description Record creation timestamp.
3047
+ */
3048
+ createdAt: string;
3049
+ /**
3050
+ * Format: date-time
3051
+ * @description Record last update timestamp.
3052
+ */
3053
+ updatedAt: string;
3054
+ };
3055
+ StripeRefundPaginatedResponseDto: {
3056
+ data: components["schemas"]["StripeRefundResponseDto"][];
3057
+ /** @example 100 */
3058
+ total: number;
3059
+ /** @example 1 */
3060
+ page: number;
3061
+ /** @example 10 */
3062
+ limit: number;
3063
+ /** @example 10 */
3064
+ totalPages: number;
3065
+ };
3066
+ StripeAuthRateReportResponseDto: {
3067
+ /**
3068
+ * @description Indicates that the auth rate report request was successful
3069
+ * @example true
3070
+ */
3071
+ success: boolean;
3072
+ /**
3073
+ * @description Authorization success rate percentage
3074
+ * @example 95.5
3075
+ */
3076
+ authRate: number;
3077
+ /**
3078
+ * @description Date range for the report
3079
+ * @example 2025-08-01 to 2025-08-10
3080
+ */
3081
+ dateRange: string;
3082
+ };
3083
+ StripeFraudDisputeRatesReportResponseDto: {
3084
+ /**
3085
+ * @description Indicates that the fraud/dispute rates report request was successful
3086
+ * @example true
3087
+ */
3088
+ success: boolean;
3089
+ /**
3090
+ * @description Early fraud rate percentage
3091
+ * @example 2.1
3092
+ */
3093
+ earlyFraudRate: number;
3094
+ /**
3095
+ * @description Dispute rate percentage
3096
+ * @example 1.8
3097
+ */
3098
+ disputeRate: number;
3099
+ /**
3100
+ * @description RDR (Rapid Dispute Resolution) rate percentage
3101
+ * @example 0.5
3102
+ */
3103
+ rdrRate: number;
3104
+ /**
3105
+ * @description Chargeback rate percentage
3106
+ * @example 1.3
3107
+ */
3108
+ chargebackRate: number;
3109
+ /**
3110
+ * @description Vamp rate percentage
3111
+ * @example 3.4
3112
+ */
3113
+ vampRate: number;
3114
+ /**
3115
+ * @description Date range for the report
3116
+ * @example 2025-08-01 to 2025-08-10
3117
+ */
3118
+ dateRange: string;
3119
+ };
3120
+ StripeRefundRateReportResponseDto: {
3121
+ /**
3122
+ * @description Indicates that the refund rate report request was successful
3123
+ * @example true
3124
+ */
3125
+ success: boolean;
3126
+ /**
3127
+ * @description Refund success rate percentage
3128
+ * @example 98.2
3129
+ */
3130
+ refundRate: number;
3131
+ /**
3132
+ * @description Date range for the report
3133
+ * @example 2025-08-01 to 2025-08-10
3134
+ */
3135
+ dateRange: string;
3136
+ };
3137
+ ConvertCurrencyDto: {
3138
+ /** @example EUR */
3139
+ from: string;
3140
+ /** @example USD */
3141
+ to: string;
3142
+ /** @example 100 */
3143
+ amount: number;
3144
+ };
3145
+ ConvertCurrencyResponseDto: {
3146
+ /**
3147
+ * @description Source currency
3148
+ * @example USD
3149
+ */
3150
+ from: string;
3151
+ /**
3152
+ * @description Target currency
3153
+ * @example PKR
3154
+ */
3155
+ to: string;
3156
+ /**
3157
+ * @description Original amount in source currency
3158
+ * @example 100
3159
+ */
3160
+ amount: number;
3161
+ /**
3162
+ * @description Converted amount in target currency
3163
+ * @example 28140
3164
+ */
3165
+ converted: number;
3166
+ /**
3167
+ * @description Conversion rate (target per source)
3168
+ * @example 281.4
3169
+ */
3170
+ rate: number;
3171
+ /**
3172
+ * @description Base currency used for conversion
3173
+ * @example USD
3174
+ */
3175
+ base_currency: string;
3176
+ };
3177
+ FbCapiCreatePixelDto: {
3178
+ /** @description Title (just for UI purposes) */
3179
+ title: string;
3180
+ /** @description Facebook Pixel ID */
3181
+ pixel: string;
3182
+ /** @description Facebook Pixel Token */
3183
+ token: string;
3184
+ /** @description Project */
3185
+ project: string;
3186
+ /** @description Active */
3187
+ active: boolean;
3188
+ };
3189
+ FbCapiPixelResponseDto: {
3190
+ /** @description Unique Record ID */
3191
+ id: number;
3192
+ /** @description Title (just for UI purposes) */
3193
+ title: string;
3194
+ /** @description Facebook Pixel ID */
3195
+ pixel: string;
3196
+ /** @description Facebook Pixel Token */
3197
+ token: string;
3198
+ /** @description Project */
3199
+ project: string;
3200
+ /** @description Active */
3201
+ active: boolean;
3202
+ };
3203
+ FbCapiUpdatePixelDto: {
3204
+ /** @description Title (just for UI purposes) */
3205
+ title?: string;
3206
+ /** @description Facebook Pixel ID */
3207
+ pixel?: string;
3208
+ /** @description Facebook Pixel Token */
3209
+ token?: string;
3210
+ /** @description Project */
3211
+ project?: string;
3212
+ /** @description Active */
3213
+ active?: boolean;
3214
+ };
3215
+ Event: Record<string, never>;
3216
+ SnapchatCapiEventFullResponseDto: {
3217
+ data: components["schemas"]["Event"][];
3218
+ total: number;
3219
+ page: number;
3220
+ limit: number;
3221
+ totalPages: number;
3222
+ };
3223
+ SnapChatClientDataDto: {
3224
+ /** @description Email */
3225
+ email: string;
3226
+ /** @description Client IP address */
3227
+ ip: string;
3228
+ /** @description Client user agent */
3229
+ user_agent: string;
3230
+ /** @description External IDs */
3231
+ external_id?: string;
3232
+ };
3233
+ SnapchatCapiDataDto: {
3234
+ /** @description Event ID */
3235
+ event_id: string;
3236
+ /** @description Event name */
3237
+ event_name: string;
3238
+ /** @description Event time (unix seconds) */
3239
+ event_time: number;
3240
+ /** @description Action source (e.g., WEB/web/website) */
3241
+ action_source: string;
3242
+ /** @description Event source URL where the event occurred */
3243
+ event_source_url: string;
3244
+ /** @description Access token */
3245
+ access_token: string;
3246
+ /** @description Pixel ID */
3247
+ pixelId: string;
3248
+ };
3249
+ SnapchatCapiPayloadDto: {
3250
+ /** @description Client data */
3251
+ clientData: components["schemas"]["SnapChatClientDataDto"];
3252
+ /** @description Event data */
3253
+ eventData: components["schemas"]["SnapChatEventDataDto"];
3254
+ /** @description General CAPI data */
3255
+ data: components["schemas"]["SnapchatCapiDataDto"];
3256
+ /** @description Optional postback URL */
3257
+ postback?: string;
3258
+ /** @description Optional test event code */
3259
+ test_event_code?: string;
3260
+ };
3261
+ SnapChatCreateEventDto: {
3262
+ /** @description Event name */
3263
+ event: string;
3264
+ /** @description Request data */
3265
+ request: components["schemas"]["SnapchatCapiPayloadDto"];
3266
+ /** @description Pixel ID */
3267
+ pixelId: number;
3268
+ };
3269
+ SnapChatEventCreateResponseDto: {
3270
+ id: number;
3271
+ };
3272
+ SnapChatUpdateEventDto: {
3273
+ /** @description Response data */
3274
+ response?: Record<string, never>;
3275
+ };
3276
+ FacebookCapiPixelDto: {
3277
+ /** @example 1234567890123456 */
3278
+ pixelId: string;
3279
+ /** @description Facebook CAPI Access Token */
3280
+ accessToken: string;
3281
+ };
3282
+ FacebookCapiClientDataDto: {
3283
+ /**
3284
+ * @description The user's email address.
3285
+ * @example joe@example.com
3286
+ */
3287
+ email: string;
3288
+ /**
3289
+ * @description The user's IP address.
3290
+ * @example 123.123.123.123
3291
+ */
3292
+ ip: string;
3293
+ /**
3294
+ * @description The user's browser user agent string.
3295
+ * @example Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
3296
+ */
3297
+ userAgent: string;
3298
+ /**
3299
+ * @description The Facebook click ID.
3300
+ * @example fb.1.1554763741205.AbCdEfGhIjKlMnOp
3301
+ */
3302
+ fbc: string;
3303
+ /**
3304
+ * @description The Facebook browser ID.
3305
+ * @example fb.1.1558571054389.1098115397
3306
+ */
3307
+ fbp: string;
3308
+ /**
3309
+ * @description The user country.
3310
+ * @example US
3311
+ */
3312
+ country?: string;
3313
+ /**
3314
+ * @description The user state.
3315
+ * @example DE
3316
+ */
3317
+ state?: string;
3318
+ /**
3319
+ * @description The user city.
3320
+ * @example Berlin
3321
+ */
3322
+ city?: string;
3323
+ /**
3324
+ * @description The user zip code.
3325
+ * @example 19901
3326
+ */
3327
+ zip?: string;
3328
+ /**
3329
+ * @description The user phone number.
3330
+ * @example +123123231
3331
+ */
3332
+ phone?: string;
3333
+ };
3334
+ FacebookCapiEventDto: {
3335
+ /** @example EVENT_ID_123 */
3336
+ eventId: string;
3337
+ /** @example Purchase */
3338
+ eventName: string;
3339
+ /**
3340
+ * @description Unix timestamp
3341
+ * @example 1678886400
3342
+ */
3343
+ eventTime: number;
3344
+ clientData: components["schemas"]["FacebookCapiClientDataDto"];
3345
+ eventData: components["schemas"]["FacebookCapiEventDataDto"];
3346
+ testEventCode?: string;
3347
+ };
3348
+ FbCapiPayloadDto: {
3349
+ pixel: components["schemas"]["FacebookCapiPixelDto"];
3350
+ event: components["schemas"]["FacebookCapiEventDto"];
3351
+ postback?: string;
3352
+ };
3353
+ CreateEventDto: {
3354
+ /** @description Event name */
3355
+ event: string;
3356
+ /** @description Request data */
3357
+ request: components["schemas"]["TikTokCapiPayloadDto"];
3358
+ /** @description Pixel ID */
3359
+ pixelId: number;
3360
+ };
3361
+ EventCreateResponseDto: {
3362
+ /** @description Unique Record ID */
3363
+ id: number;
3364
+ };
3365
+ UpdateEventDto: {
3366
+ /** @description Request data */
3367
+ response: {
3368
+ [key: string]: unknown;
3369
+ };
3370
+ };
3371
+ TiktokCapiPixelDto: {
3372
+ /** @example 1234567890123456 */
3373
+ pixelId: string;
3374
+ /** @description TikTok CAPI Access Token */
3375
+ accessToken: string;
3376
+ };
3377
+ TikTokCapiPayloadDto: {
3378
+ pixel: components["schemas"]["TiktokCapiPixelDto"];
3379
+ postback?: string;
3380
+ };
3381
+ CreateAccountDto: {
3382
+ /**
3383
+ * @description Title of the account
3384
+ * @example Development Account
3385
+ */
3386
+ title: string;
3387
+ /**
3388
+ * @description Report key of the account
3389
+ * @example dev-key-123
3390
+ */
3391
+ reportKey: string;
3392
+ /**
3393
+ * @description Source of the account
3394
+ * @example Internal
3395
+ */
3396
+ source: string;
3397
+ /**
3398
+ * @description Whether the account is active
3399
+ * @default true
3400
+ * @example true
3401
+ */
3402
+ active: boolean;
3403
+ };
3404
+ AccountDetailDto: {
3405
+ /** @example 1 */
3406
+ id: number;
3407
+ /** @example 2025-10-08T11:29:46.000Z */
3408
+ createdAt: string;
3409
+ /** @example Title 1 */
3410
+ title: string;
3411
+ /** @example Internal */
3412
+ source: string;
3413
+ /**
3414
+ * @description Report key for the account
3415
+ * @example CBROM6RcIum2MXtOM967v4xP3O6gAgZM_nRuSB5sVeftkc5cnQJBqiFZvtxL4Fi0LISicGwDv7nCf7LdKiViKQ
3416
+ */
3417
+ reportKey: string;
3418
+ /**
3419
+ * @description Whether the account is active or not
3420
+ * @example true
3421
+ */
3422
+ active: boolean;
3423
+ };
3424
+ AccountResponseDto: {
3425
+ account: components["schemas"]["AccountDetailDto"];
3426
+ };
3427
+ AccountResponseDto_POST_Single_Accountcreatedsuccessfully: {
3428
+ /** @example true */
3429
+ success: Record<string, never>;
3430
+ /** @example POST */
3431
+ method: Record<string, never>;
3432
+ /** @example CREATED */
3433
+ status: Record<string, never>;
3434
+ /** @example 201 */
3435
+ statusCode: Record<string, never>;
3436
+ /** @example accounts */
3437
+ path: Record<string, never>;
3438
+ /** @example 2025-10-20T17:16:32.619Z */
3439
+ timestamp: Record<string, never>;
3440
+ /** @example Account created successfully */
3441
+ message: Record<string, never>;
3442
+ data?: components["schemas"]["AccountResponseDto"];
3443
+ };
3444
+ UpdateAccountDto: {
3445
+ title?: string;
3446
+ reportKey?: string;
3447
+ source?: string;
3448
+ active?: boolean;
3449
+ };
3450
+ AccountResponseDto_PATCH_Single_Accountupdatedsuccessful: {
3451
+ /** @example true */
3452
+ success: Record<string, never>;
3453
+ /** @example PATCH */
3454
+ method: Record<string, never>;
3455
+ /** @example OK */
3456
+ status: Record<string, never>;
3457
+ /** @example 200 */
3458
+ statusCode: Record<string, never>;
3459
+ /** @example accounts/{id} */
3460
+ path: Record<string, never>;
3461
+ /** @example 2025-10-20T17:16:32.623Z */
3462
+ timestamp: Record<string, never>;
3463
+ /** @example Account updated successful */
3464
+ message: Record<string, never>;
3465
+ data?: components["schemas"]["AccountResponseDto"];
3466
+ };
3467
+ NoData_DELETE_Response_Accountdeletedsuccessful: {
3468
+ /** @example true */
3469
+ success: Record<string, never>;
3470
+ /** @example DELETE */
3471
+ method: Record<string, never>;
3472
+ /** @example NO_CONTENT */
3473
+ status: Record<string, never>;
3474
+ /** @example 204 */
3475
+ statusCode: Record<string, never>;
3476
+ /** @example accounts/{id} */
3477
+ path: Record<string, never>;
3478
+ /** @example 2025-10-20T17:16:32.624Z */
3479
+ timestamp: Record<string, never>;
3480
+ /** @example Account deleted successful */
3481
+ message: Record<string, never>;
3482
+ };
3483
+ AccountResponseDto_GET_Single_Accountdetailretrievedsuccessful: {
3484
+ /** @example true */
3485
+ success: Record<string, never>;
3486
+ /** @example GET */
3487
+ method: Record<string, never>;
3488
+ /** @example OK */
3489
+ status: Record<string, never>;
3490
+ /** @example 200 */
3491
+ statusCode: Record<string, never>;
3492
+ /** @example accounts/{id} */
3493
+ path: Record<string, never>;
3494
+ /** @example 2025-10-20T17:16:32.626Z */
3495
+ timestamp: Record<string, never>;
3496
+ /** @example Account detail retrieved successful */
3497
+ message: Record<string, never>;
3498
+ data?: components["schemas"]["AccountResponseDto"];
3499
+ };
3500
+ SortByDto: {
3501
+ /** @description Whom to sort by */
3502
+ whom?: string;
3503
+ /**
3504
+ * @description Sort order
3505
+ * @enum {string}
3506
+ */
3507
+ order?: "asc" | "desc";
3508
+ };
3509
+ MetaDto: {
3510
+ /**
3511
+ * @description Total number of items
3512
+ * @example 3
3513
+ */
3514
+ total: number;
3515
+ /**
3516
+ * @description Total number of pages
3517
+ * @example 3
3518
+ */
3519
+ pages: number;
3520
+ /**
3521
+ * @description Current page number
3522
+ * @example 1
3523
+ */
3524
+ currentPage: number;
3525
+ };
3526
+ AccountListResponseDto: {
3527
+ meta: components["schemas"]["MetaDto"];
3528
+ accounts: components["schemas"]["AccountDetailDto"][];
3529
+ };
3530
+ AccountListResponseDto_GET_Array_Accountlistretrievedsuccessful: {
3531
+ /** @example true */
3532
+ success: Record<string, never>;
3533
+ /** @example GET */
3534
+ method: Record<string, never>;
3535
+ /** @example OK */
3536
+ status: Record<string, never>;
3537
+ /** @example 200 */
3538
+ statusCode: Record<string, never>;
3539
+ /** @example accounts */
3540
+ path: Record<string, never>;
3541
+ /** @example 2025-10-20T17:16:32.627Z */
3542
+ timestamp: Record<string, never>;
3543
+ /** @example Account list retrieved successful */
3544
+ message: Record<string, never>;
3545
+ data?: components["schemas"]["AccountListResponseDto"][];
3546
+ };
3547
+ BaseAccountDto: {
3548
+ /** @example 1 */
3549
+ id: number;
3550
+ /** @example 2025-10-08T11:29:46.000Z */
3551
+ createdAt: string;
3552
+ /** @example Title 1 */
3553
+ title: string;
3554
+ /** @example Internal */
3555
+ source: string;
3556
+ };
3557
+ SpendListDto: {
3558
+ /** @example 17 */
3559
+ id: number;
3560
+ /** @example 2025-10-08T12:44:00.000Z */
3561
+ createdAt: string;
3562
+ /** @example 2025-10-08T14:15:01.000Z */
3563
+ updatedAt: string;
3564
+ /** @example 2025-10-07 */
3565
+ date: string;
3566
+ /** @example au */
3567
+ country: string;
3568
+ /** @example en */
3569
+ language: string;
3570
+ /** @example 158.93 */
3571
+ spend: string;
3572
+ /** @example 1 */
3573
+ accountId: number;
3574
+ account: components["schemas"]["BaseAccountDto"];
3575
+ };
3576
+ SpendListResponseDto: {
3577
+ meta: components["schemas"]["MetaDto"];
3578
+ spends: components["schemas"]["SpendListDto"][];
3579
+ };
3580
+ SpendListResponseDto_GET_Array_Spendlistretrievedsuccessful: {
3581
+ /** @example true */
3582
+ success: Record<string, never>;
3583
+ /** @example GET */
3584
+ method: Record<string, never>;
3585
+ /** @example OK */
3586
+ status: Record<string, never>;
3587
+ /** @example 200 */
3588
+ statusCode: Record<string, never>;
3589
+ /** @example spends */
3590
+ path: Record<string, never>;
3591
+ /** @example 2025-10-20T17:16:32.662Z */
3592
+ timestamp: Record<string, never>;
3593
+ /** @example Spend list retrieved successful */
3594
+ message: Record<string, never>;
3595
+ data?: components["schemas"]["SpendListResponseDto"][];
3596
+ };
3597
+ ErpDataDto: {
3598
+ /** @example 2025-10-05T18:00:00.000Z */
3599
+ date: string;
3600
+ /** @example Internal */
3601
+ source: string;
3602
+ /** @example au::en */
3603
+ countryLanguage: string;
3604
+ /** @example 51.12 */
3605
+ totalSpend: number;
3606
+ };
3607
+ ErpDataResponsedDto: {
3608
+ erpData: components["schemas"]["ErpDataDto"][];
3609
+ };
3610
+ ErpDataResponsedDto_GET_Single_ERPdataretrievedsuccessful: {
3611
+ /** @example true */
3612
+ success: Record<string, never>;
3613
+ /** @example GET */
3614
+ method: Record<string, never>;
3615
+ /** @example OK */
3616
+ status: Record<string, never>;
3617
+ /** @example 200 */
3618
+ statusCode: Record<string, never>;
3619
+ /** @example spends/erp-data */
3620
+ path: Record<string, never>;
3621
+ /** @example 2025-10-20T17:16:32.663Z */
3622
+ timestamp: Record<string, never>;
3623
+ /** @example ERP data retrieved successful */
3624
+ message: Record<string, never>;
3625
+ data?: components["schemas"]["ErpDataResponsedDto"];
3626
+ };
3627
+ SpendDetailDto: {
3628
+ /** @example 17 */
3629
+ id: number;
3630
+ /** @example 2025-10-08T12:44:00.000Z */
3631
+ createdAt: string;
3632
+ /** @example 2025-10-08T14:15:01.000Z */
3633
+ updatedAt: string;
3634
+ /** @example 2025-10-07 */
3635
+ date: string;
3636
+ /** @example au */
3637
+ country: string;
3638
+ /** @example en */
3639
+ language: string;
3640
+ /** @example 158.93 */
3641
+ spend: string;
3642
+ /** @example 1 */
3643
+ accountId: number;
3644
+ account: components["schemas"]["AccountDetailDto"];
3645
+ };
3646
+ SpendResponsedDto: {
3647
+ spend: components["schemas"]["SpendDetailDto"];
3648
+ };
3649
+ SpendResponsedDto_GET_Single_Spenddetailretrievedsuccessful: {
3650
+ /** @example true */
3651
+ success: Record<string, never>;
3652
+ /** @example GET */
3653
+ method: Record<string, never>;
3654
+ /** @example OK */
3655
+ status: Record<string, never>;
3656
+ /** @example 200 */
3657
+ statusCode: Record<string, never>;
3658
+ /** @example spends/{id} */
3659
+ path: Record<string, never>;
3660
+ /** @example 2025-10-20T17:16:32.664Z */
3661
+ timestamp: Record<string, never>;
3662
+ /** @example Spend detail retrieved successful */
3663
+ message: Record<string, never>;
3664
+ data?: components["schemas"]["SpendResponsedDto"];
3665
+ };
3666
+ NoData_PATCH_Response_Spendsynctriggeredsuccessfully: {
3667
+ /** @example true */
3668
+ success: Record<string, never>;
3669
+ /** @example PATCH */
3670
+ method: Record<string, never>;
3671
+ /** @example OK */
3672
+ status: Record<string, never>;
3673
+ /** @example 200 */
3674
+ statusCode: Record<string, never>;
3675
+ /** @example spends/sync-date-range/{id} */
3676
+ path: Record<string, never>;
3677
+ /** @example 2025-10-20T17:16:32.667Z */
3678
+ timestamp: Record<string, never>;
3679
+ /** @example Spend sync triggered successfully */
3680
+ message: Record<string, never>;
3681
+ };
3682
+ };
3683
+ responses: never;
3684
+ parameters: never;
3685
+ requestBodies: never;
3686
+ headers: never;
3687
+ pathItems: never;
3688
+ }
3689
+
3690
+ type SdkRemoteFunnel = {
3691
+ checkout: string;
3692
+ landing: string;
3693
+ angle: string;
3694
+ version: string;
3695
+ homePageTemplate: string;
3696
+ quizPageTemplate: string;
3697
+ resultPageTemplate: string;
3698
+ emailPageTemplate: string;
3699
+ checkoutPageTemplate: string;
3700
+ paymentWindowTemplate: string;
3701
+ upsellPageTemplate: string;
3702
+ options?: any;
3703
+ upsellOptions?: any;
3704
+ };
3705
+
3706
+ declare const server: {
3707
+ middleware: (req: next_server.NextRequest, options?: {
3708
+ templates?: {
3709
+ [key: string]: string[];
3710
+ };
3711
+ }) => Promise<next_server.NextResponse<any> | undefined>;
3712
+ funnels: {
3713
+ get: () => Promise<SdkRemoteFunnel[]>;
3714
+ getTemplates: ({ angle, version, searchParams }: {
3715
+ angle: string;
3716
+ version: string;
3717
+ searchParams?: next_navigation.ReadonlyURLSearchParams;
3718
+ }) => Promise<SdkRemoteFunnel>;
3719
+ clearCache: () => void;
3720
+ };
3721
+ session: {
3722
+ get: (uuid: string) => Promise<components["schemas"]["SessionResponseDto"]>;
3723
+ };
3724
+ capi: {
3725
+ snapchat: (data: components["schemas"]["SnapchatCapiBridgeDto"]) => Promise<{
3726
+ success: boolean;
3727
+ }>;
2435
3728
  };
2436
3729
  };
2437
3730