@wix/auto_sdk_packages_packages 1.0.4 → 1.0.5

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,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  /**
2
4
  * A package is group of instances of Wix services that a reseller offers to a
3
5
  * customer as part of a single transaction.
@@ -746,6 +748,13 @@ interface Subscription {
746
748
  * format.
747
749
  */
748
750
  countryCode?: string | null;
751
+ /**
752
+ * Seats of the product that the subscription was purchased for.
753
+ * Will be Null for products that don't support seats.
754
+ * @min 1
755
+ * @max 500
756
+ */
757
+ seats?: number | null;
749
758
  }
750
759
  interface BillingReference {
751
760
  /**
@@ -1407,6 +1416,39 @@ interface FixBrokenMigrationRequest {
1407
1416
  }
1408
1417
  interface FixBrokenMigrationResponse {
1409
1418
  }
1419
+ type PackagesNonNullablePaths = `_id` | `accountId` | `productInstances` | `productInstances.${number}.billingInfo.type` | `productInstances.${number}.billingInfo.cycleDuration.unit` | `productInstances.${number}.billingInfo.cycleDuration.count` | `productInstances.${number}.instanceId` | `productInstances.${number}.catalogProductId` | `productInstances.${number}.status` | `productInstances.${number}.failure.code` | `productInstances.${number}.failure.message`;
1420
+ /**
1421
+ * Creates a new package.
1422
+ *
1423
+ * Deprecated: This method is deprecated and will be removed by 2024-12-31.
1424
+ * Use com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2 instead.
1425
+ *
1426
+ * HTTP Request:
1427
+ * POST /v1/packages
1428
+ *
1429
+ * Permissions:
1430
+ * Requires the "premium.reseller-package.manage" permission with MANUAL type.
1431
+ *
1432
+ * Event:
1433
+ * A PRIVATE callback will be triggered when the package is successfully created.
1434
+ *
1435
+ * Required Fields:
1436
+ * - CreatePackageRequest.products
1437
+ *
1438
+ * Maturity: BETA
1439
+ * Exposure: PUBLIC
1440
+ * @public
1441
+ * @documentationMaturity preview
1442
+ * @requiredField options.products
1443
+ * @permissionId premium.reseller-package.manage
1444
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage
1445
+ * @deprecated
1446
+ * @replacedBy com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2
1447
+ * @targetRemovalDate 2024-12-31
1448
+ */
1449
+ declare function createPackage(options?: NonNullablePaths<CreatePackageOptions, `products`>): Promise<NonNullablePaths<CreatePackageResponse, {
1450
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1451
+ }[PackagesNonNullablePaths]>>;
1410
1452
  interface CreatePackageOptions {
1411
1453
  /**
1412
1454
  * Idempotency key.
@@ -1425,6 +1467,45 @@ interface CreatePackageOptions {
1425
1467
  */
1426
1468
  products: ProductInstance[];
1427
1469
  }
1470
+ /**
1471
+ * Creates a package of product instances.
1472
+ *
1473
+ *
1474
+ * You must pass the relevant Wix account ID in the header of the call. In
1475
+ * the DIY flow, we recommend to pass the customer's sub-account ID instead
1476
+ * of your main reseller account ID.
1477
+ *
1478
+ * You may also pass a Wix site ID for each product in the body of the call.
1479
+ * If you omit the site ID, a floating product instance is created.
1480
+ *
1481
+ * When Wix customers purchase a specific paid service or product, Wix may offer
1482
+ * them time-limited free access to a different product. For example, customers
1483
+ * get a voucher for a free 1-year domain registration when purchasing any Wix
1484
+ * Premium plan. If you want to offer your customers the same benefit, create a
1485
+ * package containing the original product first. Then, create a second package
1486
+ * with the additional product. In the second Create Package call, pass the
1487
+ * instance ID of the original product as `referenceProductInstanceId`. This way,
1488
+ * Wix doesn't charge you for the additional product. Make sure that the status
1489
+ * of the referenced product is either `"PENDING"` or `"ACTIVE"`. Note that you
1490
+ * can use each product instance only a single time as reference instance.
1491
+ *
1492
+ * You need to pass a `countryCode` to specify where customers can claim
1493
+ * vouchers that may come with a product. Contact the
1494
+ * [Wix B2B sales team](mailto:bizdev@wix.com) to get information about
1495
+ * vouchers and supported locations.
1496
+ *
1497
+ * > **Important**: This call requires an account level API key and cannot be
1498
+ * > authenticated with the standard authorization header.
1499
+ * @public
1500
+ * @documentationMaturity preview
1501
+ * @requiredField options.products
1502
+ * @requiredField options.products.countryCode
1503
+ * @permissionId premium.reseller-package.manage
1504
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2
1505
+ */
1506
+ declare function createPackageV2(options?: NonNullablePaths<CreatePackageV2Options, `products` | `products.${number}.countryCode`>): Promise<NonNullablePaths<CreatePackageResponse, {
1507
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1508
+ }[PackagesNonNullablePaths]>>;
1428
1509
  interface CreatePackageV2Options {
1429
1510
  /**
1430
1511
  * Idempotency key.
@@ -1443,6 +1524,32 @@ interface CreatePackageV2Options {
1443
1524
  */
1444
1525
  products: ProductInstance[];
1445
1526
  }
1527
+ /**
1528
+ * Cancels all product instances included in the package and the customer
1529
+ * immediately loses access to the canceled functionality.
1530
+ *
1531
+ *
1532
+ * You must pass the ID of the Wix account that the package belongs to in the
1533
+ * header of the call. The call fails, if the package and Wix account don't
1534
+ * match.
1535
+ *
1536
+ * If a canceled product instance is a requirement for another Wix service, that
1537
+ * functionality is also no longer available to the customer. For example, if
1538
+ * you cancel a Premium plan, a previously connected domain is automatically
1539
+ * disconnected from the site.
1540
+ *
1541
+ * > **Important**: This call requires an account level API key and cannot be
1542
+ * > authenticated with the standard authorization header.
1543
+ * @param _id - ID of the package to cancel.
1544
+ * @public
1545
+ * @documentationMaturity preview
1546
+ * @requiredField _id
1547
+ * @permissionId premium.reseller-package.manage
1548
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage
1549
+ */
1550
+ declare function cancelPackage(_id: string, options?: CancelPackageOptions): Promise<NonNullablePaths<CancelPackageResponse, {
1551
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1552
+ }[PackagesNonNullablePaths]>>;
1446
1553
  interface CancelPackageOptions {
1447
1554
  /**
1448
1555
  * Idempotency key.
@@ -1450,6 +1557,79 @@ interface CancelPackageOptions {
1450
1557
  */
1451
1558
  idempotencyKey?: string | null;
1452
1559
  }
1560
+ /**
1561
+ * Retrieves a package.
1562
+ *
1563
+ *
1564
+ * You must pass the ID of the Wix account that the package belongs to in the
1565
+ * header of the call. The call fails, if the package and Wix account don't
1566
+ * match.
1567
+ *
1568
+ * > **Important**: This call requires an account level API key and cannot be
1569
+ * > authenticated with the standard authorization header.
1570
+ * @param _id - Package ID.
1571
+ * @public
1572
+ * @documentationMaturity preview
1573
+ * @requiredField _id
1574
+ * @permissionId premium.reseller-package.read
1575
+ * @returns Retrieved package.
1576
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.GetPackage
1577
+ */
1578
+ declare function getPackage(_id: string): Promise<NonNullablePaths<Package, PackagesNonNullablePaths>>;
1579
+ /**
1580
+ * Retrieves a list of packages, given the provided paging, filtering, and sorting.
1581
+ *
1582
+ *
1583
+ * You must pass the ID of the Wix account that the packages belong to in the
1584
+ * header of the call. The call returns packages that belong to the parent
1585
+ * account, regardless if you pass the ID of a parent or sub-account. In case
1586
+ * you want to retrieve only packages that belong to a sub-account, you must
1587
+ * pass the sub-account ID as `filter` in the `query` object like this:
1588
+ *
1589
+ * ```json
1590
+ * {
1591
+ * "query": {
1592
+ * "filter": {
1593
+ * "accountId": {
1594
+ * "$eq": "<SUB_ACCOUNT_ID>"
1595
+ * }
1596
+ * }
1597
+ * }
1598
+ * }
1599
+ * ```
1600
+ *
1601
+ * Query Packages runs with these defaults, which you can override:
1602
+ *
1603
+ * - `createdDate` is sorted in `DESC` order
1604
+ * - `cursorPaging.limit` is `100`
1605
+ *
1606
+ * By default `pagingMetadata.cursors` are returned, unless you specifically pass
1607
+ * `query.paging`.
1608
+ *
1609
+ * The maximum for `cursorPaging.limit` is `100`.
1610
+ *
1611
+ * If you pass a cursor token that you have received in a previous Query Package response,
1612
+ * passing additional sort or filter information results in an invalid cursor
1613
+ * error. Since the received cursor token already holds all the needed information
1614
+ * for sort and filter. Changing the sort and filter properties during the span of
1615
+ * a cursor query isn't supported. But you can provide a different limit.
1616
+ *
1617
+ * For field support for filters and sorting,
1618
+ * see [Query Packages: Supported Filters and Sorting](https://dev.wix.com/api/rest/account-level-apis/resellers/supported-filters).
1619
+ *
1620
+ * To learn about working with _Query_ endpoints, see
1621
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
1622
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
1623
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
1624
+ *
1625
+ * > **Important**: This call requires an account level API key and cannot be
1626
+ * > authenticated with the standard authorization header.
1627
+ * @public
1628
+ * @documentationMaturity preview
1629
+ * @permissionId premium.reseller-package.read
1630
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages
1631
+ */
1632
+ declare function queryPackages(): PackagesQueryBuilder;
1453
1633
  interface QueryCursorResult {
1454
1634
  cursors: Cursors;
1455
1635
  hasNext: () => boolean;
@@ -1475,6 +1655,27 @@ interface PackagesQueryBuilder {
1475
1655
  /** @documentationMaturity preview */
1476
1656
  find: () => Promise<PackagesQueryResult>;
1477
1657
  }
1658
+ /**
1659
+ * Assigns a product instance to a site.
1660
+ *
1661
+ * You must pass the ID of the Wix account that the product instance belongs to in the header of the call.
1662
+ *
1663
+ * The customer immediately gains access to features included in the assigned service. It's up to the reseller to decide whether assigning a product instance affects the customer’s payment.
1664
+ *
1665
+ * It's possible to assign a product instance that's already assigned to a site, to a different site without [unassigning](/packages/unassign-product-instance-from-site) it first. But if the call fails in such a situation, the product instance may either remain assigned to the original site or become unassigned. You can confirm the instance's status by [retrieving the relevant package](/packages/get-package).
1666
+ *
1667
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
1668
+ * @public
1669
+ * @documentationMaturity preview
1670
+ * @requiredField identifiers
1671
+ * @requiredField identifiers.instanceId
1672
+ * @requiredField identifiers.siteId
1673
+ * @permissionId premium.reseller-package.manage
1674
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.AssignProductInstanceToSite
1675
+ */
1676
+ declare function assignProductInstanceToSite(identifiers: NonNullablePaths<AssignProductInstanceToSiteIdentifiers, `instanceId` | `siteId`>, options?: AssignProductInstanceToSiteOptions): Promise<NonNullablePaths<AssignProductInstanceToSiteResponse, {
1677
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1678
+ }[PackagesNonNullablePaths]>>;
1478
1679
  interface AssignProductInstanceToSiteIdentifiers {
1479
1680
  /**
1480
1681
  * ID of the product instance to assign to a site.
@@ -1494,6 +1695,28 @@ interface AssignProductInstanceToSiteOptions {
1494
1695
  */
1495
1696
  idempotencyKey?: string | null;
1496
1697
  }
1698
+ /**
1699
+ * Unassigns a product instance from a site.
1700
+ *
1701
+ * You must pass the ID of the Wix account that the product instance belongs to in the header of the call.
1702
+ *
1703
+ * The product instance becomes floating and the customer immediately looses access to features included in the unassigned service. It's up to the reseller to decide whether unassigning a product instance affects the customer’s payment.
1704
+ *
1705
+ * If an unassigned product instance is a requirement for another service, that service may not be available to the customer any longer. For example, if you unassign a `Combo Plan` plan from a site, a previously connected domain is disconnected.
1706
+ *
1707
+ * You can assign floating product instances to sites using the [Assign Product Instance to Site](/packages/assign-product-instance-to-site) method.
1708
+ *
1709
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
1710
+ * @param instanceId - ID of the product instance to unassign from a site.
1711
+ * @public
1712
+ * @documentationMaturity preview
1713
+ * @requiredField instanceId
1714
+ * @permissionId premium.reseller-package.manage
1715
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite
1716
+ */
1717
+ declare function unassignProductInstanceFromSite(instanceId: string, options?: UnassignProductInstanceFromSiteOptions): Promise<NonNullablePaths<UnassignProductInstanceFromSiteResponse, {
1718
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1719
+ }[PackagesNonNullablePaths]>>;
1497
1720
  interface UnassignProductInstanceFromSiteOptions {
1498
1721
  /**
1499
1722
  * Idempotency key.
@@ -1501,6 +1724,36 @@ interface UnassignProductInstanceFromSiteOptions {
1501
1724
  */
1502
1725
  idempotencyKey?: string | null;
1503
1726
  }
1727
+ /**
1728
+ * Cancels a product instance.
1729
+ *
1730
+ *
1731
+ * You must pass the ID of the Wix account that the product instance belongs
1732
+ * to in the header of the call. The call fails, if the product instance and
1733
+ * Wix account don't match.
1734
+ *
1735
+ * The customer immediately loses access to features included in the
1736
+ * canceled service. It's up to the reseller to decide whether the adjustment
1737
+ * affects the customer’s payment.
1738
+ *
1739
+ * If a canceled service is a requirement for another service, that service
1740
+ * may not be available to the customer any longer. For example, if you cancel
1741
+ * a `Combo Plan` plan, a previously connected domain is disconnected
1742
+ * from the site.
1743
+ *
1744
+ *
1745
+ * > **Important**: This call requires an account level API key and cannot be
1746
+ * > authenticated with the standard authorization header.
1747
+ * @param instanceId - ID of the product instance to cancel.
1748
+ * @public
1749
+ * @documentationMaturity preview
1750
+ * @requiredField instanceId
1751
+ * @permissionId premium.reseller-package.manage
1752
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance
1753
+ */
1754
+ declare function cancelProductInstance(instanceId: string, options?: CancelProductInstanceOptions): Promise<NonNullablePaths<CancelProductInstanceResponse, {
1755
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1756
+ }[PackagesNonNullablePaths]>>;
1504
1757
  interface CancelProductInstanceOptions {
1505
1758
  /**
1506
1759
  * Idempotency key.
@@ -1508,6 +1761,48 @@ interface CancelProductInstanceOptions {
1508
1761
  */
1509
1762
  idempotencyKey?: string | null;
1510
1763
  }
1764
+ /**
1765
+ * Upgrades or downgrades a product instance. For example, you can upgrade a
1766
+ * customer's `Business Unlimited Premium` plan to `Business VIP` using this
1767
+ * endpoint.
1768
+ *
1769
+ *
1770
+ * You must pass the ID of the Wix account that the product instance belongs
1771
+ * to in the header of the call. The call fails, if the product instance and
1772
+ * Wix account don't match.
1773
+ *
1774
+ * The customer has immediate access to new features, while losing access to
1775
+ * features not included in the new service. It's up to the reseller to
1776
+ * decide whether the adjustment affects the customer’s payment.
1777
+ *
1778
+ * You can only exchange a product instance with a service of the same type.
1779
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for details about
1780
+ * which services belong to the same type.
1781
+ *
1782
+ * You must provide either a new `catalogProductId` or a new `billingInfo`
1783
+ * object. The new billing cycle must be supported for the product. Contact the
1784
+ * [Wix B2B sales team](mailto:bizdev@wix.com) for information
1785
+ * about which billing cycles are supported for each product. If you adjust the
1786
+ * billing cycle for a product instance with `RECURRING` payments, you must
1787
+ * also provide `billingInfo.cycleDuration.unit`.
1788
+ *
1789
+ * If a removed feature is a requirement for another service, that service
1790
+ * may not be available to the customer any longer. For example, if you downgrade a
1791
+ * `Business Unlimited` plan to `Business Basic`, the site owners won’t be
1792
+ * able to use `Pro eCommerce Features` any longer.
1793
+ *
1794
+ * > **Important**: This call requires an account level API key and cannot be
1795
+ * > authenticated with the standard authorization header.
1796
+ * @param instanceId - ID of the product instance to adjust.
1797
+ * @public
1798
+ * @documentationMaturity preview
1799
+ * @requiredField instanceId
1800
+ * @permissionId premium.reseller-package.manage
1801
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications
1802
+ */
1803
+ declare function adjustProductInstanceSpecifications(instanceId: string, options?: AdjustProductInstanceSpecificationsOptions): Promise<NonNullablePaths<AdjustProductInstanceSpecificationsResponse, {
1804
+ [P in PackagesNonNullablePaths]: `package.${P}`;
1805
+ }[PackagesNonNullablePaths]>>;
1511
1806
  interface AdjustProductInstanceSpecificationsOptions {
1512
1807
  /**
1513
1808
  * Idempotency key.
@@ -1543,6 +1838,19 @@ interface AdjustProductInstanceSpecificationsOptions {
1543
1838
  */
1544
1839
  discountCode?: string | null;
1545
1840
  }
1841
+ /**
1842
+ * Updates a package's external ID field.
1843
+ * @public
1844
+ * @documentationMaturity preview
1845
+ * @requiredField identifiers
1846
+ * @requiredField identifiers.externalId
1847
+ * @requiredField identifiers.packageId
1848
+ * @permissionId PREMIUM.PACKAGE_UPDATE_EXTERNAL_ID
1849
+ * @fqn com.wixpress.premium.reseller.packages.v1.Packages.UpdatePackageExternalId
1850
+ */
1851
+ declare function updatePackageExternalId(identifiers: NonNullablePaths<UpdatePackageExternalIdIdentifiers, `externalId` | `packageId`>): Promise<NonNullablePaths<UpdatePackageExternalIdResponse, {
1852
+ [P in PackagesNonNullablePaths]: `updatedPackage.${P}`;
1853
+ }[PackagesNonNullablePaths]>>;
1546
1854
  interface UpdatePackageExternalIdIdentifiers {
1547
1855
  /**
1548
1856
  * ID of the package to update.
@@ -1556,4 +1864,4 @@ interface UpdatePackageExternalIdIdentifiers {
1556
1864
  externalId: string;
1557
1865
  }
1558
1866
 
1559
- export { type Cursors as $, type AssignProductInstanceToSiteIdentifiers as A, type ProductInstance as B, type CreatePackageOptions as C, type ProductInstanceContractDetailsOneOf as D, type CycleInterval as E, FailureReasonFailureReason as F, type FailureReason as G, type ProductInstanceCycle as H, IntervalIntervalUnit as I, type CreatePackageRequest as J, type CancelPackageRequest as K, type PackageCanceled as L, type GetPackageRequest as M, type GetPackageResponse as N, type QueryV2 as O, type Package as P, type QueryPackagesRequest as Q, ReactivationReasonEnum as R, Status as S, type QueryV2PagingMethodOneOf as T, type UnassignProductInstanceFromSiteOptions as U, type Sorting as V, WebhookIdentityType as W, type Paging as X, type CursorPaging as Y, type QueryPackagesResponse as Z, type PagingMetadataV2 as _, type CreatePackageResponse as a, type AssignProductInstanceToSiteRequest as a0, type AssignedProductInstanceToSite as a1, type UnassignProductInstanceFromSiteRequest as a2, type UnassignedProductInstanceFromSite as a3, type CancelProductInstanceRequest as a4, type ProductInstanceCanceled as a5, type AdjustProductInstanceSpecificationsRequest as a6, type AdjustedProductInstanceSpecifications as a7, type SubscriptionEvent as a8, type SubscriptionEventEventOneOf as a9, type TaskKey as aA, type TaskAction as aB, type TaskActionActionOneOf as aC, type Complete as aD, type Cancel as aE, type Reschedule as aF, type UpdateProductInstanceRequest as aG, type UpdateProductInstanceResponse as aH, type UpdatePackageExternalIdRequest as aI, type CountPackagesRequest as aJ, type CountPackagesResponse as aK, type DomainEvent as aL, type DomainEventBodyOneOf as aM, type EntityCreatedEvent as aN, type RestoreInfo as aO, type EntityUpdatedEvent as aP, type EntityDeletedEvent as aQ, type ActionEvent as aR, type MessageEnvelope as aS, type IdentificationData as aT, type IdentificationDataIdOneOf as aU, type MigrateSubscriptionToPackagesRequest as aV, type MigrateSubscriptionToPackagesResponse as aW, type FixBrokenMigrationRequest as aX, type FixBrokenMigrationResponse as aY, type PackagesQueryResult as aZ, type SubscriptionCreated as aa, type Subscription as ab, type BillingReference as ac, type Cycle as ad, type CycleCycleSelectorOneOf as ae, type Interval as af, type OneTime as ag, type ReactivationData as ah, type SubscriptionAssigned as ai, type SubscriptionCancelled as aj, type CancellationDetails as ak, type SubscriptionAutoRenewTurnedOn as al, type SubscriptionAutoRenewTurnedOff as am, type SubscriptionUnassigned as an, type SubscriptionTransferred as ao, type RecurringChargeSucceeded as ap, type ContractSwitched as aq, type ProductPriceIncreaseData as ar, type SubscriptionNearEndOfPeriod as as, type SubscriptionPendingChange as at, type RecurringChargeAttemptFailed as au, type Empty as av, type ProductInstanceUpdated as aw, type FailureReportRequest as ax, type ProductInstanceFailed as ay, type Task as az, type CreatePackageV2Options as b, type CancelPackageOptions as c, type CancelPackageResponse as d, type PackagesQueryBuilder as e, type AssignProductInstanceToSiteOptions as f, type AssignProductInstanceToSiteResponse as g, type UnassignProductInstanceFromSiteResponse as h, type CancelProductInstanceOptions as i, type CancelProductInstanceResponse as j, type AdjustProductInstanceSpecificationsOptions as k, type AdjustProductInstanceSpecificationsResponse as l, type UpdatePackageExternalIdIdentifiers as m, type UpdatePackageExternalIdResponse as n, CycleDescriptorType as o, SortOrder as p, ProviderName as q, IntervalUnit as r, SubscriptionStatus as s, Initiator as t, UnassignReason as u, ContractSwitchType as v, ContractSwitchReason as w, PriceIncreaseTrigger as x, ProductAdjustment as y, FieldToUpdate as z };
1867
+ export { type ActionEvent, type AdjustProductInstanceSpecificationsOptions, type AdjustProductInstanceSpecificationsRequest, type AdjustProductInstanceSpecificationsResponse, type AdjustedProductInstanceSpecifications, type AssignProductInstanceToSiteIdentifiers, type AssignProductInstanceToSiteOptions, type AssignProductInstanceToSiteRequest, type AssignProductInstanceToSiteResponse, type AssignedProductInstanceToSite, type BillingReference, type Cancel, type CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type Complete, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type CountPackagesRequest, type CountPackagesResponse, type CreatePackageOptions, type CreatePackageRequest, type CreatePackageResponse, type CreatePackageV2Options, type CursorPaging, type Cursors, type Cycle, type CycleCycleSelectorOneOf, CycleDescriptorType, type CycleDescriptorTypeWithLiterals, type CycleInterval, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailureReason, FailureReasonFailureReason, type FailureReasonFailureReasonWithLiterals, type FailureReportRequest, FieldToUpdate, type FieldToUpdateWithLiterals, type FixBrokenMigrationRequest, type FixBrokenMigrationResponse, type GetPackageRequest, type GetPackageResponse, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalIntervalUnit, type IntervalIntervalUnitWithLiterals, IntervalUnit, type IntervalUnitWithLiterals, type MessageEnvelope, type MigrateSubscriptionToPackagesRequest, type MigrateSubscriptionToPackagesResponse, type OneTime, type Package, type PackageCanceled, type PackagesQueryBuilder, type PackagesQueryResult, type Paging, type PagingMetadataV2, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductInstance, type ProductInstanceCanceled, type ProductInstanceContractDetailsOneOf, type ProductInstanceCycle, type ProductInstanceFailed, type ProductInstanceUpdated, type ProductPriceIncreaseData, ProviderName, type ProviderNameWithLiterals, type QueryPackagesRequest, type QueryPackagesResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type Reschedule, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type Task, type TaskAction, type TaskActionActionOneOf, type TaskKey, type UnassignProductInstanceFromSiteOptions, type UnassignProductInstanceFromSiteRequest, type UnassignProductInstanceFromSiteResponse, UnassignReason, type UnassignReasonWithLiterals, type UnassignedProductInstanceFromSite, type UpdatePackageExternalIdIdentifiers, type UpdatePackageExternalIdRequest, type UpdatePackageExternalIdResponse, type UpdateProductInstanceRequest, type UpdateProductInstanceResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };