@wix/auto_sdk_referral_programs 1.0.69 → 1.0.71

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +33 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +11 -3
  5. package/build/cjs/index.typings.js +33 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +799 -1
  8. package/build/cjs/meta.js +198 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +32 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +11 -3
  14. package/build/es/index.typings.mjs +32 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +799 -1
  17. package/build/es/meta.mjs +180 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +33 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +11 -3
  23. package/build/internal/cjs/index.typings.js +33 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +799 -1
  26. package/build/internal/cjs/meta.js +198 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +32 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +11 -3
  32. package/build/internal/es/index.typings.mjs +32 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +799 -1
  35. package/build/internal/es/meta.mjs +180 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -338,6 +338,804 @@ interface GetReferralProgramPremiumFeaturesResponse {
338
338
  */
339
339
  referralProgram?: boolean;
340
340
  }
341
+ interface DomainEvent extends DomainEventBodyOneOf {
342
+ createdEvent?: EntityCreatedEvent;
343
+ updatedEvent?: EntityUpdatedEvent;
344
+ deletedEvent?: EntityDeletedEvent;
345
+ actionEvent?: ActionEvent;
346
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
347
+ id?: string;
348
+ /**
349
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
350
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
351
+ */
352
+ entityFqdn?: string;
353
+ /**
354
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
355
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
356
+ */
357
+ slug?: string;
358
+ /** ID of the entity associated with the event. */
359
+ entityId?: string;
360
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
361
+ eventTime?: Date | null;
362
+ /**
363
+ * Whether the event was triggered as a result of a privacy regulation application
364
+ * (for example, GDPR).
365
+ */
366
+ triggeredByAnonymizeRequest?: boolean | null;
367
+ /** If present, indicates the action that triggered the event. */
368
+ originatedFrom?: string | null;
369
+ /**
370
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
371
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
372
+ */
373
+ entityEventSequence?: string | null;
374
+ }
375
+ /** @oneof */
376
+ interface DomainEventBodyOneOf {
377
+ createdEvent?: EntityCreatedEvent;
378
+ updatedEvent?: EntityUpdatedEvent;
379
+ deletedEvent?: EntityDeletedEvent;
380
+ actionEvent?: ActionEvent;
381
+ }
382
+ interface EntityCreatedEvent {
383
+ entityAsJson?: string;
384
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
385
+ restoreInfo?: RestoreInfo;
386
+ }
387
+ interface RestoreInfo {
388
+ deletedDate?: Date | null;
389
+ }
390
+ interface EntityUpdatedEvent {
391
+ /**
392
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
393
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
394
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
395
+ */
396
+ currentEntityAsJson?: string;
397
+ }
398
+ interface EntityDeletedEvent {
399
+ /** Entity that was deleted. */
400
+ deletedEntityAsJson?: string | null;
401
+ }
402
+ interface ActionEvent {
403
+ bodyAsJson?: string;
404
+ }
405
+ interface Empty {
406
+ }
407
+ interface HtmlSitePublished {
408
+ /**
409
+ * Application instance ID
410
+ * @maxLength 50
411
+ */
412
+ appInstanceId?: string;
413
+ /**
414
+ * Application type
415
+ * @maxLength 100
416
+ */
417
+ appType?: string;
418
+ /** Revision */
419
+ revision?: string;
420
+ /**
421
+ * MSID
422
+ * @maxLength 100
423
+ */
424
+ metaSiteId?: string | null;
425
+ /**
426
+ * optional branch id if publish is done from branch
427
+ * @format GUID
428
+ */
429
+ branchId?: string | null;
430
+ /** The site's last transactionId */
431
+ lastTransactionId?: string | null;
432
+ /** A list of the site's pages */
433
+ pages?: Page[];
434
+ /** Site's publish date */
435
+ publishDate?: string;
436
+ }
437
+ interface Page {
438
+ /**
439
+ * Page's Id
440
+ * @maxLength 100
441
+ */
442
+ id?: string;
443
+ }
444
+ interface SubscriptionEvent extends SubscriptionEventEventOneOf {
445
+ /** Triggered when a subscription is created. */
446
+ created?: SubscriptionCreated;
447
+ /**
448
+ * Triggered when a subscription is assigned to a Wix site, including the initial
449
+ * assignment of a floating subscription or a re-assignement from a different site.
450
+ */
451
+ assigned?: SubscriptionAssigned;
452
+ /** Triggered when a subscription is canceled. */
453
+ cancelled?: SubscriptionCancelled;
454
+ /** Triggered when the subscription's auto renew is turned on. */
455
+ autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;
456
+ /** Triggered when the subscription's auto renew is turned off. */
457
+ autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;
458
+ /**
459
+ * Triggered when a subscription is unassigned from a Wix site and becomes
460
+ * floating.
461
+ */
462
+ unassigned?: SubscriptionUnassigned;
463
+ /**
464
+ * Triggered when a subscription is transferred from one Wix account to another.
465
+ * A transfer includes cancelling the original subscription and creating a new
466
+ * subscription for the target account. The event returns both the original
467
+ * and the new subscription.
468
+ */
469
+ transferred?: SubscriptionTransferred;
470
+ /** Triggered when a recurring charge succeeds for a subscription. */
471
+ recurringChargeSucceeded?: RecurringChargeSucceeded;
472
+ /**
473
+ * Triggered when a subscription was updated including when its product has been
474
+ * up- or downgraded or the billing cycle is changed.
475
+ */
476
+ contractSwitched?: ContractSwitched;
477
+ /**
478
+ * Triggered when a subscription gets close to the end of its billing cycle.
479
+ * The exact number of days is defined in the billing system.
480
+ */
481
+ nearEndOfPeriod?: SubscriptionNearEndOfPeriod;
482
+ /**
483
+ * Triggered when a subscription is updated and the change doesn't happen
484
+ * immediately but at the end of the current billing cycle.
485
+ */
486
+ pendingChange?: SubscriptionPendingChange;
487
+ /** Triggered when a recurring charge attempt fails for a subscription. */
488
+ recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;
489
+ /**
490
+ * ID of the subscription's event.
491
+ * @format GUID
492
+ */
493
+ eventId?: string | null;
494
+ /**
495
+ * Date and time of the event in
496
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
497
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
498
+ */
499
+ eventDate?: Date | null;
500
+ }
501
+ /** @oneof */
502
+ interface SubscriptionEventEventOneOf {
503
+ /** Triggered when a subscription is created. */
504
+ created?: SubscriptionCreated;
505
+ /**
506
+ * Triggered when a subscription is assigned to a Wix site, including the initial
507
+ * assignment of a floating subscription or a re-assignement from a different site.
508
+ */
509
+ assigned?: SubscriptionAssigned;
510
+ /** Triggered when a subscription is canceled. */
511
+ cancelled?: SubscriptionCancelled;
512
+ /** Triggered when the subscription's auto renew is turned on. */
513
+ autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;
514
+ /** Triggered when the subscription's auto renew is turned off. */
515
+ autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;
516
+ /**
517
+ * Triggered when a subscription is unassigned from a Wix site and becomes
518
+ * floating.
519
+ */
520
+ unassigned?: SubscriptionUnassigned;
521
+ /**
522
+ * Triggered when a subscription is transferred from one Wix account to another.
523
+ * A transfer includes cancelling the original subscription and creating a new
524
+ * subscription for the target account. The event returns both the original
525
+ * and the new subscription.
526
+ */
527
+ transferred?: SubscriptionTransferred;
528
+ /** Triggered when a recurring charge succeeds for a subscription. */
529
+ recurringChargeSucceeded?: RecurringChargeSucceeded;
530
+ /**
531
+ * Triggered when a subscription was updated including when its product has been
532
+ * up- or downgraded or the billing cycle is changed.
533
+ */
534
+ contractSwitched?: ContractSwitched;
535
+ /**
536
+ * Triggered when a subscription gets close to the end of its billing cycle.
537
+ * The exact number of days is defined in the billing system.
538
+ */
539
+ nearEndOfPeriod?: SubscriptionNearEndOfPeriod;
540
+ /**
541
+ * Triggered when a subscription is updated and the change doesn't happen
542
+ * immediately but at the end of the current billing cycle.
543
+ */
544
+ pendingChange?: SubscriptionPendingChange;
545
+ /** Triggered when a recurring charge attempt fails for a subscription. */
546
+ recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;
547
+ }
548
+ /** Triggered when a subscription is created. */
549
+ interface SubscriptionCreated {
550
+ /** Created subscription. */
551
+ subscription?: Subscription;
552
+ /** Metadata for the `created` event. */
553
+ metadata?: Record<string, string>;
554
+ /**
555
+ * Subscription reactivation data.
556
+ * A subscription can be reactivated for example if it was incorrectly canceled because of fraud and then reactivated
557
+ * by the billing system
558
+ */
559
+ reactivationData?: ReactivationData;
560
+ }
561
+ /**
562
+ * A subscription holds information about a Premium product that a Wix account
563
+ * owner has purchased including details about the billing.
564
+ */
565
+ interface Subscription {
566
+ /**
567
+ * ID of the subscription.
568
+ * @format GUID
569
+ */
570
+ id?: string;
571
+ /**
572
+ * ID of the Wix account that purchased the subscription.
573
+ * @format GUID
574
+ */
575
+ userId?: string;
576
+ /**
577
+ * ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)
578
+ * for which the subscription was purchased.
579
+ * @format GUID
580
+ */
581
+ productId?: string;
582
+ /**
583
+ * Date and time the subscription was created in
584
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
585
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
586
+ */
587
+ createdAt?: Date | null;
588
+ /**
589
+ * Date and time the subscription was last updated in
590
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
591
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
592
+ */
593
+ updatedAt?: Date | null;
594
+ /**
595
+ * ID of the metasite that the subscription is assigned to.
596
+ * Available only when the subscription is assigned to a Wix site.
597
+ * Subscriptions for account level products can't be assigned to a Wix site.
598
+ * @format GUID
599
+ */
600
+ metaSiteId?: string | null;
601
+ /** Information about the system that manages the subscription's billing. */
602
+ billingReference?: BillingReference;
603
+ /** Information about the billing cycle of the subscription. */
604
+ cycle?: Cycle;
605
+ /**
606
+ * Subscription status.
607
+ *
608
+ * + `UNKNOWN`: Default status.
609
+ * + `AUTO_RENEW_ON`: Subscription is active and automatically renews at the end of the current billing cycle.
610
+ * + `AUTO_RENEW_OFF`: Subscription is active but expires at the end of the current billing cycle.
611
+ * + `MANUAL_RECURRING`: Subscription is active and renews at the end of the current billing cycle, in case the customer takes an action related to the payment.
612
+ * + `CANCELLED`: Subscription isn't active because it has been canceled.
613
+ * + `TRANSFERRED`: Subscription isn't active because it has been transferred to a different account. A different active subscription was created for the target account.
614
+ */
615
+ status?: SubscriptionStatusWithLiterals;
616
+ /**
617
+ * Date and time the subscription was last transferred from one Wix account to
618
+ * another in
619
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
620
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
621
+ */
622
+ transferredAt?: Date | null;
623
+ /**
624
+ * ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)
625
+ * that the product, for which the subscription was purchased, belongs to.
626
+ * @format GUID
627
+ */
628
+ productTypeId?: string;
629
+ /** Version number, which increments by 1 each time the subscription is updated. */
630
+ version?: number;
631
+ /**
632
+ * Whether the subscription is active. Includes the statuses
633
+ * `"AUTO_RENEW_ON"`, `"AUTO_RENEW_OFF"`, and `"MANUAL_RECURRING"`.
634
+ */
635
+ active?: boolean;
636
+ /**
637
+ * Date and time the subscription was originally created in
638
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
639
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
640
+ * Differs from `createdAt` in case the subscription was originally created for a different Wix account and has been transferred.
641
+ */
642
+ originalCreationDate?: Date | null;
643
+ /** Custom metadata about the subscription. */
644
+ metadata?: Record<string, string>;
645
+ /**
646
+ * 2-letter country code in
647
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
648
+ * format.
649
+ */
650
+ countryCode?: string | null;
651
+ /**
652
+ * Seats of the product that the subscription was purchased for.
653
+ * Will be Null for products that don't support seats.
654
+ * @min 1
655
+ * @max 500
656
+ */
657
+ seats?: number | null;
658
+ }
659
+ interface BillingReference {
660
+ /**
661
+ * Name of the billing system that manages the subscription.
662
+ *
663
+ * + `"UNKNOWN"`: Default value.
664
+ * + `"SBS"`: [Wix Billing](https://github.com/wix-p/premium-billing/tree/master/sbs).
665
+ * + `"LICENSER"`:
666
+ * + `"BASS"`: [Billing and Subscriptions System](https://dev.wix.com/docs/rest/internal-only/premium/subscriptions-by-billing-by-wix/introduction).
667
+ * + `"RESELLER"`: [External Reseller](https://dev.wix.com/api/rest/account-level-apis/resellers/introduction).
668
+ */
669
+ providerName?: ProviderNameWithLiterals;
670
+ /** Current provider reference ID. */
671
+ providerReferenceId?: string | null;
672
+ /** Previous provider reference IDs. Used for when a subscription is extended, specifically for domains. */
673
+ previousProviderReferenceIds?: string[];
674
+ }
675
+ declare enum ProviderName {
676
+ UNKNOWN = "UNKNOWN",
677
+ SBS = "SBS",
678
+ LICENSER = "LICENSER",
679
+ BASS = "BASS",
680
+ RESELLER = "RESELLER",
681
+ RECURRING_INVOICES = "RECURRING_INVOICES"
682
+ }
683
+ /** @enumType */
684
+ type ProviderNameWithLiterals = ProviderName | 'UNKNOWN' | 'SBS' | 'LICENSER' | 'BASS' | 'RESELLER' | 'RECURRING_INVOICES';
685
+ interface Cycle extends CycleCycleSelectorOneOf {
686
+ /** repetitive interval */
687
+ interval?: Interval;
688
+ /** one time */
689
+ oneTime?: OneTime;
690
+ }
691
+ /** @oneof */
692
+ interface CycleCycleSelectorOneOf {
693
+ /** repetitive interval */
694
+ interval?: Interval;
695
+ /** one time */
696
+ oneTime?: OneTime;
697
+ }
698
+ interface Interval {
699
+ /** interval unit of measure */
700
+ unit?: IntervalUnitWithLiterals;
701
+ /** number of interval */
702
+ count?: number;
703
+ }
704
+ declare enum IntervalUnit {
705
+ /** unknown interval unit */
706
+ UNKNOWN = "UNKNOWN",
707
+ /** day */
708
+ DAY = "DAY",
709
+ /** week */
710
+ WEEK = "WEEK",
711
+ /** month */
712
+ MONTH = "MONTH",
713
+ /** year */
714
+ YEAR = "YEAR"
715
+ }
716
+ /** @enumType */
717
+ type IntervalUnitWithLiterals = IntervalUnit | 'UNKNOWN' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
718
+ interface OneTime {
719
+ }
720
+ declare enum SubscriptionStatus {
721
+ UNKNOWN = "UNKNOWN",
722
+ AUTO_RENEW_ON = "AUTO_RENEW_ON",
723
+ AUTO_RENEW_OFF = "AUTO_RENEW_OFF",
724
+ MANUAL_RECURRING = "MANUAL_RECURRING",
725
+ CANCELLED = "CANCELLED",
726
+ TRANSFERRED = "TRANSFERRED"
727
+ }
728
+ /** @enumType */
729
+ type SubscriptionStatusWithLiterals = SubscriptionStatus | 'UNKNOWN' | 'AUTO_RENEW_ON' | 'AUTO_RENEW_OFF' | 'MANUAL_RECURRING' | 'CANCELLED' | 'TRANSFERRED';
730
+ /** Triggered when a subscription is reactivated. */
731
+ interface ReactivationData {
732
+ reactivationReason?: ReactivationReasonEnumWithLiterals;
733
+ /**
734
+ * In the event of reactivation after chargeback dispute, the subscription may be extended according to the
735
+ * number of days it was inactive during the time of resolving the dispute
736
+ */
737
+ newEndOfPeriod?: Date | null;
738
+ /** The original end date, before the inactive period. */
739
+ oldEndOfPeriod?: Date | null;
740
+ /** The difference in days between the new new_end_of_period and old_end_of_period */
741
+ differenceInDays?: number | null;
742
+ }
743
+ /** Reason for subscription reactivation */
744
+ declare enum ReactivationReasonEnum {
745
+ UNKNOWN = "UNKNOWN",
746
+ /**
747
+ * Subscription was reactivated due to billing status change from CANCELED to ACTIVE, for example if it was incorrectly
748
+ * canceled because of suspicion of fraud
749
+ */
750
+ BILLING_STATUS_CHANGE = "BILLING_STATUS_CHANGE",
751
+ /** Subscription was reactivated after a chargeback dispute */
752
+ REACTIVATED_AFTER_CHARGEBACK = "REACTIVATED_AFTER_CHARGEBACK"
753
+ }
754
+ /** @enumType */
755
+ type ReactivationReasonEnumWithLiterals = ReactivationReasonEnum | 'UNKNOWN' | 'BILLING_STATUS_CHANGE' | 'REACTIVATED_AFTER_CHARGEBACK';
756
+ /**
757
+ * Triggered when a subscription is assigned to a Wix site, including the initial
758
+ * assignment of a floating subscription or a re-assignement from a different site.
759
+ */
760
+ interface SubscriptionAssigned {
761
+ /** Assigned subscription. */
762
+ subscription?: Subscription;
763
+ /**
764
+ * ID of the metasite that the subscription has been assigned to before the update.
765
+ * @format GUID
766
+ */
767
+ previousMetaSiteId?: string | null;
768
+ }
769
+ /** Triggered when a subscription is canceled. */
770
+ interface SubscriptionCancelled {
771
+ /** Canceled subscription. */
772
+ subscription?: Subscription;
773
+ /** Details about the cancellation including who canceled the subscription and why. */
774
+ cancellationDetails?: CancellationDetails;
775
+ /**
776
+ * Whether the subscription is canceled immediately or expires at the end of the current billing cycle.
777
+ *
778
+ * Default: `false`
779
+ */
780
+ immediateCancel?: boolean;
781
+ /** Whether the subscription was canceled during the free trial period. */
782
+ canceledInFreeTrial?: boolean;
783
+ /** The type of refund applied to the cancellation. */
784
+ refundType?: RefundTypeWithLiterals;
785
+ }
786
+ /** Information about the cancellation flow including who canceled the subscription and why it was canceled. */
787
+ interface CancellationDetails {
788
+ /**
789
+ * Cancellation code.
790
+ *
791
+ * Values supported for cancellations on behalf of the billing system: `-1`, `-2`, `-3`, `-4`, `-5`, `-6`, `-7`, `-8`.
792
+ * For cancellations on behalf of the site owner or the service provider `cancellationCode`
793
+ * is taken from the request of
794
+ * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).
795
+ *
796
+ * + `-1`: The subscription has been cancelled by the billing system but none of the listed cancellation reasons applies.
797
+ * + `-2`: There were payment problems.
798
+ * + `-3`: There was a chargeback.
799
+ * + `-4`: Customer support has canceled the subscription and issued a refund.
800
+ * + `-5`: The site owner has changed their existing subscription.
801
+ * + `-6`: The subscription has been transferred to a different Wix account.
802
+ * + `-7`: The subscription has been canceled because the site owner hasn't manually authenticated the recurring payment during the subscription's grace period. For example, site owners must manually confirm recurring payments within 40 days when paying with boleto.
803
+ * + `-8`: The Wix account that the subscription belonged to has been deleted.
804
+ */
805
+ cancellationCode?: number | null;
806
+ /**
807
+ * Cancellation reason. For cancellations on behalf of the site owner or the service provider `cancellationReason`
808
+ * is taken from the request of
809
+ * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).
810
+ * For cancellations on behalf of the billing system `cancellationReason` is `null` or an empty string.
811
+ */
812
+ cancellationReason?: string | null;
813
+ /**
814
+ * Initiator of the cancellation. For `"USER_REQUESTED"` and `"APP_MANAGED"`,
815
+ * `cancellationCode` and `cancellationReason` are taken from the request of
816
+ * [Cancel Immediately](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately)
817
+ * or [Cancel Immediately Offline](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately-offline).
818
+ * For `"PASSIVE"`, cancellations `cancellationCode` is automatically calculated and `cancellationReason`
819
+ * is `null` or an empty string.
820
+ *
821
+ * + `"UNKNOWN`: Default value.
822
+ * + `"USER_REQUESTED"`: The Wix account owner has canceled the subscription.
823
+ * + `"APP_MANAGED"`: The service provider has canceled the subscription.
824
+ * + `"PASSIVE"`: The billing system has canceled the subscription. For example, in case of payment failure or fraud.
825
+ */
826
+ initiator?: InitiatorWithLiterals;
827
+ }
828
+ declare enum Initiator {
829
+ UNKNOWN = "UNKNOWN",
830
+ USER_REQUESTED = "USER_REQUESTED",
831
+ APP_MANAGED = "APP_MANAGED",
832
+ PASSIVE = "PASSIVE"
833
+ }
834
+ /** @enumType */
835
+ type InitiatorWithLiterals = Initiator | 'UNKNOWN' | 'USER_REQUESTED' | 'APP_MANAGED' | 'PASSIVE';
836
+ declare enum RefundType {
837
+ UNKNOWN = "UNKNOWN",
838
+ NO_REFUND = "NO_REFUND",
839
+ FULL_REFUND = "FULL_REFUND",
840
+ PRORATED_REFUND = "PRORATED_REFUND"
841
+ }
842
+ /** @enumType */
843
+ type RefundTypeWithLiterals = RefundType | 'UNKNOWN' | 'NO_REFUND' | 'FULL_REFUND' | 'PRORATED_REFUND';
844
+ /** Triggered when the subscription's auto renew is turned on. */
845
+ interface SubscriptionAutoRenewTurnedOn {
846
+ /** Subscription for which auto renew is turned on. */
847
+ subscription?: Subscription;
848
+ /**
849
+ * Supported values: `USER`, `APP`.
850
+ *
851
+ * Information about who turned auto renew on.
852
+ * + `"USER"`: The site owner who purchased the subscription has turned auto renew on.
853
+ * + `"APP"`: The service provider has turned auto renew on.
854
+ */
855
+ initiator?: string | null;
856
+ }
857
+ /** Triggered when the subscription's auto renew is turned off. */
858
+ interface SubscriptionAutoRenewTurnedOff {
859
+ /** Subscription for which auto renew is turned off. */
860
+ subscription?: Subscription;
861
+ /** Details about the cancellation including who canceled the subscription and why. */
862
+ cancellationDetails?: CancellationDetails;
863
+ /**
864
+ * Whether the subscription is immediately canceled or expires at the end of the current billing cycle.
865
+ *
866
+ * Default: `false`
867
+ */
868
+ immediateCancel?: boolean;
869
+ }
870
+ /**
871
+ * Triggered when a subscription is unassigned from a Wix site and becomes
872
+ * floating.
873
+ */
874
+ interface SubscriptionUnassigned {
875
+ /** Unassigned subscription. */
876
+ subscription?: Subscription;
877
+ /**
878
+ * ID of the metasite that the subscription has been assigned to before the event.
879
+ * @format GUID
880
+ */
881
+ previousMetaSiteId?: string;
882
+ /**
883
+ * Reason why the subscription is unassigned.
884
+ *
885
+ * + `"UNKNOWN"`: Default value.
886
+ * + `"USER_REQUESTED"`: The Wix account owner has unassigned the subscription.
887
+ * + `"REPLACED_BY_ANOTHER_SUBSCRIPTION"`: A different subscription that replaces this subscription is assigned to the site.
888
+ */
889
+ unassignReason?: UnassignReasonWithLiterals;
890
+ }
891
+ declare enum UnassignReason {
892
+ UNKNOWN = "UNKNOWN",
893
+ USER_REQUESTED = "USER_REQUESTED",
894
+ REPLACED_BY_ANOTHER_SUBSCRIPTION = "REPLACED_BY_ANOTHER_SUBSCRIPTION"
895
+ }
896
+ /** @enumType */
897
+ type UnassignReasonWithLiterals = UnassignReason | 'UNKNOWN' | 'USER_REQUESTED' | 'REPLACED_BY_ANOTHER_SUBSCRIPTION';
898
+ /**
899
+ * Triggered when a subscription is transferred from one Wix account to another.
900
+ * A transfer includes cancelling the original subscription and creating a new
901
+ * subscription for the target account. The event returns both the original
902
+ * and the new subscription.
903
+ */
904
+ interface SubscriptionTransferred {
905
+ /** Original subscription that was canceled for the transfer. */
906
+ originSubscription?: Subscription;
907
+ /** Newly created subscription for the target account. */
908
+ targetSubscription?: Subscription;
909
+ }
910
+ /** Triggered when a recurring charge succeeds for a subscription. */
911
+ interface RecurringChargeSucceeded {
912
+ /** Subscription for which the recurring charge has succeeded. */
913
+ subscription?: Subscription;
914
+ /** Indication that there was a successful charge at the end of the free trial period */
915
+ freeTrialPeriodEnd?: boolean;
916
+ }
917
+ /**
918
+ * Triggered when a subscription was updated including when its product has been
919
+ * up- or downgraded or the billing cycle is changed.
920
+ */
921
+ interface ContractSwitched {
922
+ /** Updated subscription. */
923
+ subscription?: Subscription;
924
+ /** Billing cycle before the update. */
925
+ previousCycle?: Cycle;
926
+ /**
927
+ * ID of the product belonging to the subscription before the update.
928
+ * @format GUID
929
+ */
930
+ previousProductId?: string;
931
+ /**
932
+ * ID of the product type that the subscription's original product belonged to before the update.
933
+ * @format GUID
934
+ */
935
+ previousProductTypeId?: string;
936
+ /**
937
+ * Update type. __Note__: Doesn't include information about a product adjustment.
938
+ * For that purpose, see `productAdjustment`.
939
+ *
940
+ * + `"NOT_APPLICABLE"`: Default value.
941
+ * + `"ADDITIONAL_QUANTITY"`: An increased usage quota is added to the subscription. For example, a second mailbox is added to a subscription that previously included a single mailbox.
942
+ * + `"CREDIT_UNUSED_PERIOD"`: The subscription is upgraded and the new price is less than the regular price. The new price applies to every billing cycle, not just the first cycle.
943
+ * + `"REFUND_PRICE_DIFF"`: Not implemented.
944
+ * + `"ADJUST_PERIOD_END"`: Not implemented.
945
+ * + `"DOWNGRADE_GRACE_PERIOD"`: For downgrades during the grace period. In this situation, the site owner hasn’t paid yet and must immediately pay for the downgraded subscription.
946
+ * + `"FULL_AMOUNT_PERIOD"`: For upgrades in which the site owner retains unused benefits. For example, site owners upgrading a Facebook Ads subscription retain their unused FB Ads credit. The unused credit is added to the new credit.
947
+ * + `"END_OF_PERIOD"`: The subscription's billing current cycle is extended because of a downgrade.
948
+ * + `"PENDING_CHANGES"`: The subscription's billing is updated, but the change doesn't apply immediately. Instead, the update becomes effective at the end of current billing cycle.
949
+ * + `"DOWNGRADE_RENEWAL"`: The subscription is downgraded because of a declined payment. This prevents subscriptions from churning.
950
+ */
951
+ contractSwitchType?: ContractSwitchTypeWithLiterals;
952
+ /**
953
+ * ID of the metasite the subscription has been assigned to previously.
954
+ * Available only in case the subscription is assigned to a different site.
955
+ * @format GUID
956
+ */
957
+ previousMetaSiteId?: string | null;
958
+ /**
959
+ * Update reason.
960
+ *
961
+ * + `"PRICE_INCREASE"`: The subscription's price has been increased.
962
+ * + `"EXTERNAL_PROVIDER_TRIGGER"`: Any reason other than a price increase.
963
+ */
964
+ contractSwitchReason?: ContractSwitchReasonWithLiterals;
965
+ /** Information about the price update. Available only for updates with a price increase. */
966
+ productPriceIncreaseData?: ProductPriceIncreaseData;
967
+ /**
968
+ * Information about a product adjustment. For example, a downgrade.
969
+ * __Note__: This isn't the same as `contractSwitchType`.
970
+ *
971
+ * + `NOT_APPLICABLE`: There is no information about whether the product has been up- or downgraded.
972
+ * + `DOWNGRADE`: The product has been downgraded.
973
+ */
974
+ productAdjustment?: ProductAdjustmentWithLiterals;
975
+ /**
976
+ * Number of seats before the contract switch.
977
+ * @min 1
978
+ * @max 500
979
+ */
980
+ previousSeats?: number | null;
981
+ }
982
+ /** Copied from SBS */
983
+ declare enum ContractSwitchType {
984
+ NOT_APPLICABLE = "NOT_APPLICABLE",
985
+ ADDITIONAL_QUANTITY = "ADDITIONAL_QUANTITY",
986
+ CREDIT_UNUSED_PERIOD = "CREDIT_UNUSED_PERIOD",
987
+ REFUND_PRICE_DIFF = "REFUND_PRICE_DIFF",
988
+ ADJUST_PERIOD_END = "ADJUST_PERIOD_END",
989
+ DOWNGRADE_GRACE_PERIOD = "DOWNGRADE_GRACE_PERIOD",
990
+ FULL_AMOUNT_PERIOD = "FULL_AMOUNT_PERIOD",
991
+ END_OF_PERIOD = "END_OF_PERIOD",
992
+ PENDING_CHANGES = "PENDING_CHANGES",
993
+ DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL"
994
+ }
995
+ /** @enumType */
996
+ type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL';
997
+ declare enum ContractSwitchReason {
998
+ EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
999
+ PRICE_INCREASE = "PRICE_INCREASE"
1000
+ }
1001
+ /** @enumType */
1002
+ type ContractSwitchReasonWithLiterals = ContractSwitchReason | 'EXTERNAL_PROVIDER_TRIGGER' | 'PRICE_INCREASE';
1003
+ /** Triggered when a subscription's price is increased. */
1004
+ interface ProductPriceIncreaseData {
1005
+ /**
1006
+ * Price of the subscription before the update.
1007
+ * @format DECIMAL_VALUE
1008
+ */
1009
+ previousPrice?: string | null;
1010
+ /** A value that is used in order to select the correct email template to send the user regarding the price increase. */
1011
+ emailTemplateSelector?: string | null;
1012
+ /** Used to differentiate between migration segments. Does not have to be unique per segment. */
1013
+ segmentName?: string | null;
1014
+ /** Used to determine how the price increase was triggered. */
1015
+ priceIncreaseTrigger?: PriceIncreaseTriggerWithLiterals;
1016
+ }
1017
+ /** Reason for Price Increase Trigger */
1018
+ declare enum PriceIncreaseTrigger {
1019
+ NEAR_RENEWAL = "NEAR_RENEWAL",
1020
+ RECURRING_SUCCESS = "RECURRING_SUCCESS",
1021
+ MANUAL = "MANUAL"
1022
+ }
1023
+ /** @enumType */
1024
+ type PriceIncreaseTriggerWithLiterals = PriceIncreaseTrigger | 'NEAR_RENEWAL' | 'RECURRING_SUCCESS' | 'MANUAL';
1025
+ /** Triggered when a subscription's product is adusted. */
1026
+ declare enum ProductAdjustment {
1027
+ /** flag to show that the ContractSwitchedEvent is not applicable / needed */
1028
+ NOT_APPLICABLE = "NOT_APPLICABLE",
1029
+ /** flag to show that the ContractSwitchedEvent is a Downgrade */
1030
+ DOWNGRADE = "DOWNGRADE"
1031
+ }
1032
+ /** @enumType */
1033
+ type ProductAdjustmentWithLiterals = ProductAdjustment | 'NOT_APPLICABLE' | 'DOWNGRADE';
1034
+ /**
1035
+ * Triggered when a subscription gets close to the end of its billing cycle.
1036
+ * The exact number of days is defined in the billing system.
1037
+ */
1038
+ interface SubscriptionNearEndOfPeriod {
1039
+ /** Subscription that got close to the end of its billing cycle. */
1040
+ subscription?: Subscription;
1041
+ /** Whether the subscription is within the free trial period. */
1042
+ inFreeTrial?: boolean;
1043
+ }
1044
+ /**
1045
+ * Triggered when a subscription is updated and the change doesn't happen
1046
+ * immediately but at the end of the current billing cycle.
1047
+ */
1048
+ interface SubscriptionPendingChange {
1049
+ /** Subscription for which a pending update is triggered. */
1050
+ subscription?: Subscription;
1051
+ }
1052
+ /** Triggered when a recurring charge attempt failed for a subscription. */
1053
+ interface RecurringChargeAttemptFailed {
1054
+ /** Subscription for which the recurring charge attempt has failed. */
1055
+ subscription?: Subscription;
1056
+ }
1057
+ interface ReferralAppInstallation {
1058
+ type?: TypeWithLiterals;
1059
+ }
1060
+ declare enum Type {
1061
+ UNSPECIFIED = "UNSPECIFIED",
1062
+ INSTALLED = "INSTALLED",
1063
+ DELETED = "DELETED"
1064
+ }
1065
+ /** @enumType */
1066
+ type TypeWithLiterals = Type | 'UNSPECIFIED' | 'INSTALLED' | 'DELETED';
1067
+ interface MessageEnvelope {
1068
+ /**
1069
+ * App instance ID.
1070
+ * @format GUID
1071
+ */
1072
+ instanceId?: string | null;
1073
+ /**
1074
+ * Event type.
1075
+ * @maxLength 150
1076
+ */
1077
+ eventType?: string;
1078
+ /** The identification type and identity data. */
1079
+ identity?: IdentificationData;
1080
+ /** Stringify payload. */
1081
+ data?: string;
1082
+ }
1083
+ interface IdentificationData extends IdentificationDataIdOneOf {
1084
+ /**
1085
+ * ID of a site visitor that has not logged in to the site.
1086
+ * @format GUID
1087
+ */
1088
+ anonymousVisitorId?: string;
1089
+ /**
1090
+ * ID of a site visitor that has logged in to the site.
1091
+ * @format GUID
1092
+ */
1093
+ memberId?: string;
1094
+ /**
1095
+ * ID of a Wix user (site owner, contributor, etc.).
1096
+ * @format GUID
1097
+ */
1098
+ wixUserId?: string;
1099
+ /**
1100
+ * ID of an app.
1101
+ * @format GUID
1102
+ */
1103
+ appId?: string;
1104
+ /** @readonly */
1105
+ identityType?: WebhookIdentityTypeWithLiterals;
1106
+ }
1107
+ /** @oneof */
1108
+ interface IdentificationDataIdOneOf {
1109
+ /**
1110
+ * ID of a site visitor that has not logged in to the site.
1111
+ * @format GUID
1112
+ */
1113
+ anonymousVisitorId?: string;
1114
+ /**
1115
+ * ID of a site visitor that has logged in to the site.
1116
+ * @format GUID
1117
+ */
1118
+ memberId?: string;
1119
+ /**
1120
+ * ID of a Wix user (site owner, contributor, etc.).
1121
+ * @format GUID
1122
+ */
1123
+ wixUserId?: string;
1124
+ /**
1125
+ * ID of an app.
1126
+ * @format GUID
1127
+ */
1128
+ appId?: string;
1129
+ }
1130
+ declare enum WebhookIdentityType {
1131
+ UNKNOWN = "UNKNOWN",
1132
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1133
+ MEMBER = "MEMBER",
1134
+ WIX_USER = "WIX_USER",
1135
+ APP = "APP"
1136
+ }
1137
+ /** @enumType */
1138
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
341
1139
 
342
1140
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
343
1141
  getUrl: (context: any) => string;
@@ -358,4 +1156,4 @@ declare function getAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo<'GET
358
1156
  declare function generateAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo<'POST', {}, GenerateAISocialMediaPostsSuggestionsRequest$1, GenerateAISocialMediaPostsSuggestionsRequest, GenerateAISocialMediaPostsSuggestionsResponse$1, GenerateAISocialMediaPostsSuggestionsResponse>;
359
1157
  declare function getReferralProgramPremiumFeatures(): __PublicMethodMetaInfo<'GET', {}, GetReferralProgramPremiumFeaturesRequest$1, GetReferralProgramPremiumFeaturesRequest, GetReferralProgramPremiumFeaturesResponse$1, GetReferralProgramPremiumFeaturesResponse>;
360
1158
 
361
- export { type __PublicMethodMetaInfo, activateReferralProgram, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, pauseReferralProgram, updateReferralProgram };
1159
+ export { type AISocialMediaPostSuggestion as AISocialMediaPostSuggestionOriginal, type ActionEvent as ActionEventOriginal, Action as ActionOriginal, type ActionWithLiterals as ActionWithLiteralsOriginal, type ActivateReferralProgramRequest as ActivateReferralProgramRequestOriginal, type ActivateReferralProgramResponse as ActivateReferralProgramResponseOriginal, App as AppOriginal, type AppWithLiterals as AppWithLiteralsOriginal, type BillingReference as BillingReferenceOriginal, type BulkGetReferralProgramRequest as BulkGetReferralProgramRequestOriginal, type BulkGetReferralProgramResponse as BulkGetReferralProgramResponseOriginal, type CancellationDetails as CancellationDetailsOriginal, ContractSwitchReason as ContractSwitchReasonOriginal, type ContractSwitchReasonWithLiterals as ContractSwitchReasonWithLiteralsOriginal, ContractSwitchType as ContractSwitchTypeOriginal, type ContractSwitchTypeWithLiterals as ContractSwitchTypeWithLiteralsOriginal, type ContractSwitched as ContractSwitchedOriginal, type CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOfOriginal, type Coupon as CouponOriginal, type CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOfOriginal, type CouponScope as CouponScopeOriginal, type CycleCycleSelectorOneOf as CycleCycleSelectorOneOfOriginal, type Cycle as CycleOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Emails as EmailsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FixedAmountDiscount as FixedAmountDiscountOriginal, type GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequestOriginal, type GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponseOriginal, type GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequestOriginal, type GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponseOriginal, type GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequestOriginal, type GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponseOriginal, type GetReferralProgramRequest as GetReferralProgramRequestOriginal, type GetReferralProgramResponse as GetReferralProgramResponseOriginal, type Group as GroupOriginal, type HtmlSitePublished as HtmlSitePublishedOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, Initiator as InitiatorOriginal, type InitiatorWithLiterals as InitiatorWithLiteralsOriginal, type Interval as IntervalOriginal, IntervalUnit as IntervalUnitOriginal, type IntervalUnitWithLiterals as IntervalUnitWithLiteralsOriginal, type LoyaltyPoints as LoyaltyPointsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OneTime as OneTimeOriginal, type Page as PageOriginal, type PauseReferralProgramRequest as PauseReferralProgramRequestOriginal, type PauseReferralProgramResponse as PauseReferralProgramResponseOriginal, type PercentageDiscount as PercentageDiscountOriginal, type PremiumFeatures as PremiumFeaturesOriginal, PriceIncreaseTrigger as PriceIncreaseTriggerOriginal, type PriceIncreaseTriggerWithLiterals as PriceIncreaseTriggerWithLiteralsOriginal, ProductAdjustment as ProductAdjustmentOriginal, type ProductAdjustmentWithLiterals as ProductAdjustmentWithLiteralsOriginal, type ProductPriceIncreaseData as ProductPriceIncreaseDataOriginal, type ProgramInSite as ProgramInSiteOriginal, ProgramStatus as ProgramStatusOriginal, type ProgramStatusWithLiterals as ProgramStatusWithLiteralsOriginal, ProviderName as ProviderNameOriginal, type ProviderNameWithLiterals as ProviderNameWithLiteralsOriginal, type ReactivationData as ReactivationDataOriginal, ReactivationReasonEnum as ReactivationReasonEnumOriginal, type ReactivationReasonEnumWithLiterals as ReactivationReasonEnumWithLiteralsOriginal, type RecurringChargeAttemptFailed as RecurringChargeAttemptFailedOriginal, type RecurringChargeSucceeded as RecurringChargeSucceededOriginal, type ReferralAppInstallation as ReferralAppInstallationOriginal, type ReferralProgram as ReferralProgramOriginal, RefundType as RefundTypeOriginal, type RefundTypeWithLiterals as RefundTypeWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RewardOptionsOneOf as RewardOptionsOneOfOriginal, type Reward as RewardOriginal, RewardType as RewardTypeOriginal, type RewardTypeWithLiterals as RewardTypeWithLiteralsOriginal, type SubscriptionAssigned as SubscriptionAssignedOriginal, type SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOffOriginal, type SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOnOriginal, type SubscriptionCancelled as SubscriptionCancelledOriginal, type SubscriptionCreated as SubscriptionCreatedOriginal, type SubscriptionEventEventOneOf as SubscriptionEventEventOneOfOriginal, type SubscriptionEvent as SubscriptionEventOriginal, type SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriodOriginal, type Subscription as SubscriptionOriginal, type SubscriptionPendingChange as SubscriptionPendingChangeOriginal, SubscriptionStatus as SubscriptionStatusOriginal, type SubscriptionStatusWithLiterals as SubscriptionStatusWithLiteralsOriginal, type SubscriptionTransferred as SubscriptionTransferredOriginal, type SubscriptionUnassigned as SubscriptionUnassignedOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, UnassignReason as UnassignReasonOriginal, type UnassignReasonWithLiterals as UnassignReasonWithLiteralsOriginal, type UpdateReferralProgramRequest as UpdateReferralProgramRequestOriginal, type UpdateReferralProgramResponse as UpdateReferralProgramResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, activateReferralProgram, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, pauseReferralProgram, updateReferralProgram };