@commet/node 9.9.0 → 9.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.d.mts +813 -15
  2. package/dist/index.d.ts +813 -15
  3. package/dist/index.js +199 -6
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +199 -6
  6. package/dist/index.mjs.map +1 -1
  7. package/docs/ai-onboarding/mcp-server.md +2 -0
  8. package/docs/api-reference/addons.md +3 -1
  9. package/docs/api-reference/credit-packs.md +3 -1
  10. package/docs/api-reference/generated-webhooks.md +2 -2
  11. package/docs/api-reference/index.md +3 -3
  12. package/docs/api-reference/plans.md +483 -6
  13. package/docs/api-reference/subscriptions.md +43 -3
  14. package/docs/documentation/api-versioning.md +8 -2
  15. package/docs/documentation/cli.md +4 -0
  16. package/docs/documentation/customers/customer-portal.md +2 -2
  17. package/docs/documentation/plans/add-ons.md +14 -3
  18. package/docs/documentation/plans/consumption-models.md +3 -3
  19. package/docs/documentation/plans/create-plans.md +5 -1
  20. package/docs/documentation/plans/credit-packs.md +19 -9
  21. package/docs/documentation/plans/plan-groups.md +1 -1
  22. package/docs/documentation/plans/plan-versions.md +265 -0
  23. package/docs/documentation/sales/regional-prices.md +23 -9
  24. package/docs/documentation/sales/trial-periods.md +3 -3
  25. package/docs/documentation/subscriptions/manage-subscriptions.md +50 -13
  26. package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +2 -0
  27. package/docs/errors/addon_has_activations.md +2 -2
  28. package/docs/errors/addon_unavailable.md +22 -0
  29. package/docs/errors/credit_pack_unavailable.md +22 -0
  30. package/docs/errors/index.md +8 -2
  31. package/docs/errors/missing_regional_price.md +3 -3
  32. package/docs/errors/plan_experiment_not_found.md +22 -0
  33. package/docs/errors/plan_version_not_found.md +22 -0
  34. package/docs/errors/subscribers_do_not_fit.md +22 -0
  35. package/docs/errors/version_not_newer.md +22 -0
  36. package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +4 -3
  37. package/docs/knowledge-base/how-do-trial-periods-work.md +3 -3
  38. package/docs/knowledge-base/how-does-billing-work.md +26 -28
  39. package/docs/knowledge-base/how-does-quota-based-billing-work.md +12 -22
  40. package/docs/knowledge-base/how-does-seat-based-billing-work.md +12 -22
  41. package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +11 -8
  42. package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +34 -29
  43. package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +1 -1
  44. package/docs/manifest.json +191 -2
  45. package/docs/platform-documentation.md +1 -0
  46. package/docs/schemas.md +107 -0
  47. package/docs/webhooks/introduction.md +3 -1
  48. package/docs/webhooks.md +24 -0
  49. package/docs/webhooks.openapi.json +231 -1
  50. package/package.json +1 -1
@@ -33,42 +33,32 @@ The charge is the same whether they keep the 10 tasks until the end of the perio
33
33
 
34
34
  These charges land on the next renewal invoice.
35
35
 
36
- ## What happens when you change the included amount
36
+ ## What happens when you change the included amount or the price
37
37
 
38
- ### Adding more included units
39
-
40
- More included units **benefits your customers**, so it applies right away.
38
+ Changing the included amount or the price per extra unit publishes a new [plan version](/docs/plan-versions). New customers get it at once. Existing customers keep the included amount and unit price of their version, in both directions, until you move them.
41
39
 
42
40
  ```
43
41
  You increase Plan Pro from 15 to 30 included tasks.
44
- Your customer has 25 tasks (was paying for 10 extra at $7.50/mo).
42
+ Your customer has 25 tasks (paying for 10 extra at $7.50/mo).
45
43
 
46
- After the change:
47
- → All 25 tasks are now within the 30 included
48
- → Extra charges drop to $0
49
- → Your customer sees the change immediately
44
+ Without a move: still 15 included + 10 extra = $7.50/mo
45
+ After you move them: all 25 tasks within the 30 included, $0 extra
50
46
  ```
51
47
 
52
- ### Reducing included units
53
-
54
- Fewer included units harms your customers, so it applies **at renewal**.
55
-
56
48
  ```
57
49
  You decrease Plan Pro from 30 to 15 included tasks.
58
50
  Your customer has 25 tasks (all included, $0 extra).
59
51
 
60
- This period: Still 25 within the included amount, $0 extra
61
- At renewal: 15 included + 10 extra = $7.50/mo
52
+ Without a move: still 30 included, $0 extra
53
+ After you move them: 15 included + 10 extra = $7.50/mo
62
54
  ```
63
55
 
64
- ## What happens when you change the price
65
-
66
- Quota unit prices use current-period snapshots: a lower price applies immediately, while a higher price starts next period.
56
+ | Change | New customers | Existing customers |
57
+ | ---------------------------------- | ------------------ | --------------------------------------- |
58
+ | Raise or lower the included amount | Get the new amount | Keep their version's amount until moved |
59
+ | Raise or lower the unit price | Pay the new price | Pay their version's price until moved |
67
60
 
68
- | Change | What your customer pays |
69
- | --------------- | -------------------------------------------- |
70
- | Lower the price | New lower price in the current period |
71
- | Raise the price | Old price this period; new price next period |
61
+ A move made now changes the included amount today and the price from the next renewal; a move at renewal changes both then. See [Move subscribers](/docs/plan-versions#move-subscribers).
72
62
 
73
63
  ## Quota and upgrades
74
64
 
@@ -15,42 +15,32 @@ Included: 5 seats (no charge)
15
15
  Extra: 3 seats × $25 = $75/mo
16
16
  ```
17
17
 
18
- ## What Happens When You Change Included Seats
18
+ ## What Happens When You Change Included Seats or Seat Prices
19
19
 
20
- ### Adding more included seats
21
-
22
- More included seats **benefits your customers**, so it applies right away.
20
+ Changing included seats or the extra-seat price publishes a new [plan version](/docs/plan-versions). New customers get it at once. Existing customers keep the included seats and seat price of their version, in both directions, until you move them.
23
21
 
24
22
  ```
25
23
  You increase Plan Pro from 10 to 15 included seats.
26
- Your customer has 12 seats (was paying for 2 extra at $50/mo).
24
+ Your customer has 12 seats (paying for 2 extra at $50/mo).
27
25
 
28
- After the change:
29
- → All 12 seats are now within the 15 included
30
- → Extra seat charges drop to $0
31
- → Your customer sees the change immediately
26
+ Without a move: still 10 included + 2 extra = $50/mo
27
+ After you move them: all 12 seats within the 15 included, $0 extra
32
28
  ```
33
29
 
34
- ### Reducing included seats
35
-
36
- Fewer included seats harms your customers, so it applies **at renewal**.
37
-
38
30
  ```
39
31
  You decrease Plan Pro from 15 to 10 included seats.
40
32
  Your customer has 12 seats (all included, $0 extra).
41
33
 
42
- This period: Still 12 included, $0 extra
43
- At renewal: 10 included + 2 extra = $50/mo
34
+ Without a move: still 15 included, $0 extra
35
+ After you move them: 10 included + 2 extra = $50/mo
44
36
  ```
45
37
 
46
- ## What Happens When You Change Seat Prices
47
-
48
- Seat unit prices use current-period snapshots: a lower price applies immediately, while a higher price starts next period.
38
+ | Change | New customers | Existing customers |
39
+ | ----------------------------- | ------------------ | --------------------------------------- |
40
+ | Raise or lower included seats | Get the new amount | Keep their version's amount until moved |
41
+ | Raise or lower the seat price | Pay the new price | Pay their version's price until moved |
49
42
 
50
- | Change | What your customer pays |
51
- | --------------- | -------------------------------------------- |
52
- | Lower the price | New lower price in the current period |
53
- | Raise the price | Old price this period; new price next period |
43
+ A move made now changes included seats today and the price from the next renewal; a move at renewal changes both then. A customer with more seats than the new version allows can't move until their seats fit; a plan move can lower them at renewal with `seatLimit`. See [Move subscribers](/docs/plan-versions#move-subscribers).
54
44
 
55
45
  ## Seats and Upgrades
56
46
 
@@ -5,6 +5,8 @@ description: What happens when your customer upgrades, downgrades, or switches p
5
5
 
6
6
  Your customers can switch between plans in the same plan group through the [Customer Portal](/docs/customer-portal). The group's `sortOrder` defines upgrade and downgrade direction; Commet does not infer it from price.
7
7
 
8
+ A change to another plan lands on that plan's current [version](/docs/plan-versions). The destination must sell the customer's currency in their country. When the change takes effect, a pending move to a newer version of the current plan is dropped, without a version webhook. While a downgrade is only scheduled, that move stays pending, and it applies at the renewal if the downgrade is revoked.
9
+
8
10
  ## Upgrades
9
11
 
10
12
  When the billing interval stays the same, moving to a plan with a higher `sortOrder` is an **immediate** change. The customer is charged the new plan's full price, credited for the unused days of the old effective base price, and their billing cycle restarts on the day of the change.
@@ -72,7 +74,7 @@ Deleting a plan is a **soft delete**. The plan disappears from your pricing page
72
74
 
73
75
  A canceled subscription can be **reactivated** — from the dashboard, the API, or the Customer Portal.
74
76
 
75
- Reactivation generates a fresh invoice at the plan's current price, charges the saved card, and starts a new billing period on the reactivation date. If the charge is declined, the subscription stays canceled and your customer gets a link to update their card.
77
+ Reactivation returns the subscription on the latest [version](/docs/plan-versions#reactivate-a-canceled-subscription) of what your customer bought: the plan's current version when they bought it with the plan code. It generates a fresh invoice at that version's price, charges the saved card, and starts a new billing period on the reactivation date. If the charge is declined, the subscription stays canceled and your customer gets a link to update their card.
76
78
 
77
79
  If the cancellation is only scheduled for the end of the period, your customer can undo it in the portal before it takes effect.
78
80
 
@@ -82,12 +84,12 @@ If the cancellation is only scheduled for the end of the period, your customer c
82
84
 
83
85
  ## Feature Changes
84
86
 
85
- Feature changes use the current-period subscription snapshot:
87
+ Changing a plan's features publishes a new [plan version](/docs/plan-versions). New customers get it at once; existing customers keep the features and limits of their version until you move them:
86
88
 
87
- | What you do | Existing customers |
88
- | -------------------------------------------------------------------------------------------------- | --------------------------------------- |
89
- | Add a feature, enable it, increase its included amount, make it unlimited, or lower its unit price | **Applied to the current period** |
90
- | Remove a feature, disable it, reduce its included amount, or raise its unit price | Existing snapshot remains until renewal |
89
+ | What you do | New customers | Existing customers |
90
+ | -------------------------------------------------------------------------------------------------- | ------------------- | ------------------------------ |
91
+ | Add a feature, enable it, increase its included amount, make it unlimited, or lower its unit price | Get the new version | Keep their version until moved |
92
+ | Remove a feature, disable it, reduce its included amount, or raise its unit price | Get the new version | Keep their version until moved |
91
93
 
92
94
  ### Example
93
95
 
@@ -95,11 +97,12 @@ Feature changes use the current-period subscription snapshot:
95
97
  You lower Plan Pro from 10,000 API calls to 5,000.
96
98
 
97
99
  New customers get 5,000.
98
- Existing customers keep 10,000 until renewal, then switch to 5,000.
100
+ Existing customers keep 10,000, also at renewal, until you move them.
99
101
  ```
100
102
 
101
103
  ```
102
104
  You raise Plan Pro from 5,000 API calls to 10,000.
103
105
 
104
- All customers — new and existing — get 10,000 right away.
106
+ New customers get 10,000.
107
+ Existing customers moved now get 10,000 today, without resetting their usage.
105
108
  ```
@@ -1,67 +1,72 @@
1
1
  ---
2
2
  title: Pricing Changes
3
- description: New customers pay new prices at once; existing customers get decreases now and increases at renewal, and base plan prices always change at renewal.
3
+ description: New customers pay a new price at once; existing subscribers keep the prices of their plan version until you move them, except Market prices.
4
4
  ---
5
5
 
6
- When you change a price, **new customers pay the new price immediately**. For existing customers, the rule is asymmetric: **decreases apply immediately, increases apply at renewal**.
6
+ When you change a price, Commet publishes a new [version](/docs/plan-versions) of the plan. **New customers pay the new price immediately.** **Existing subscribers keep the prices of their version**, also at renewal, whether you raise or lower them, until you move them to the new version.
7
7
 
8
- The exception is a plan's selected base price or variant, which changes at renewal in both directions.
8
+ The rule is the same for every price of the plan: base and variant prices, overage, seats, quota, and the add-ons and credit packs it sells. The exception is a [Market](/docs/regional-prices#create-a-market) price, which is not versioned.
9
9
 
10
10
  ## Base and Variant Prices
11
11
 
12
- The subscription keeps the selected price ID. Changes to that catalog row take effect **at renewal**, whether you raise or lower it — the current period is already paid. If the selected row is a regional variant, its own current market price is used.
12
+ The subscription keeps the selected price ID and reads its amount from the subscription's plan version.
13
13
 
14
- | | New customers | Existing customers |
15
- | ------------------- | ------------- | -------------------------------- |
16
- | You raise the price | Pay new price | Keep current price until renewal |
17
- | You lower the price | Pay new price | Keep current price until renewal |
14
+ | | New customers | Existing subscribers |
15
+ | ------------------- | ------------- | -------------------------------------- |
16
+ | You raise the price | Pay new price | Keep their version's price until moved |
17
+ | You lower the price | Pay new price | Keep their version's price until moved |
18
18
 
19
19
  ### Example
20
20
 
21
21
  ```
22
- You change Plan Pro from $99/mo to $129/mo.
22
+ You change Plan Pro from $99/mo to $129/mo. That publishes version 2.
23
23
 
24
- A new customer signs up today → pays $129/mo.
25
- An existing customer on day 15 of their month → keeps paying $99/mo.
26
- That same customer at renewal → starts paying $129/mo.
24
+ A new customer signs up today → pays $129/mo on version 2.
25
+ An existing customer on version 1 → keeps paying $99/mo, also at renewal.
26
+ You move them at their next renewal → they pay $129/mo from then on.
27
27
  ```
28
28
 
29
29
  > **Note**
30
30
  >
31
31
  > Archiving a price prevents new selection but does not break subscriptions already bound to it. Accepted Offer phases remain snapshotted separately.
32
32
 
33
- ## Usage-Based Pricing (Overage)
33
+ ## Usage, Seat, and Quota Prices
34
34
 
35
- Per-unit price changes are asymmetric: a **decrease applies immediately** to the current period, an **increase applies at renewal**.
35
+ Per-unit prices follow the same rule, in both directions: existing subscribers keep their version's overage, seat, and quota prices until you move them.
36
36
 
37
37
  ### Example
38
38
 
39
39
  ```
40
40
  You raise the overage price from $0.002/call to $0.005/call.
41
- Your customer has already used 5,000 extra calls this month.
42
41
 
43
- This month's invoice → still charged at $0.002
44
- Next month's invoice → charged at $0.005
42
+ A new customer → charged $0.005 per extra call
43
+ An existing customer → still charged $0.002 per extra call until you move them
45
44
 
46
- You lower the overage price from $0.005/call to $0.002/call.
45
+ You lower the extra seat price from $35/seat to $25/seat.
47
46
 
48
- This month's invoice → charged at $0.002 — the cheaper price applies immediately
47
+ A new customer → $25 per extra seat
48
+ An existing customer → $35 per extra seat until you move them
49
49
  ```
50
50
 
51
- ## Seat Pricing
51
+ ## Market Prices
52
52
 
53
- Per-seat prices follow the same asymmetry: cheaper applies now, more expensive applies at renewal.
53
+ Market prices apply to every version. When you edit a Market price, new customers get it at once, and subscribers who pay it get it at their next renewal, whether you raise or lower it. A move to another version keeps a subscriber's Market price.
54
54
 
55
- ### Example
55
+ ## Unpaid Checkouts and Reactivations
56
+
57
+ A checkout that hasn't been paid isn't a subscriber yet, so it charges the latest version of what was requested. Its link, and a repeated `POST /subscriptions` that returns the same checkout, charge the new price, unless the checkout was created with `planVersionId`. A canceled subscription that is reactivated also returns on the latest version of what was bought. See [Unpaid checkouts](/docs/plan-versions#unpaid-checkouts).
58
+
59
+ ```
60
+ You raise Plan Pro from $99/mo to $129/mo while a checkout for Pro is still unpaid.
56
61
 
62
+ The customer opens the same link → pays $129/mo on version 2.
63
+ A canceled customer who bought Pro by its plan code on version 1 reactivates → pays $129/mo on version 2.
57
64
  ```
58
- You raise the extra seat price from $25/seat to $35/seat.
59
- Your customer has 3 extra seats.
60
65
 
61
- This month → 3 × $25 = $75
62
- Next month → 3 × $35 = $105
66
+ ## Moving Existing Subscribers
63
67
 
64
- You lower it from $35/seat to $25/seat.
68
+ When you publish a draft in the dashboard, choose whether subscribers of earlier versions stay on their version, move at their next renewal, or move now. Later, move them from the plan's **Subscribers** tab. Through the API, move them with `POST /subscriptions/{id}/change-version` or `POST /plans/{id}/moves`. Commet never moves subscribers on its own.
65
69
 
66
- This month → 3 × $25 = $75 — applied immediately
67
- ```
70
+ A move at the next renewal changes nothing before it. A subscription that ends or changes to another plan by that renewal never moves.
71
+
72
+ A move never prorates or refunds, and it never changes a subscription's currency. A move made now changes features and limits today and the price from the next renewal. See [Move subscribers](/docs/plan-versions#move-subscribers).
@@ -75,7 +75,7 @@ Customer upgrades from Starter ($29/mo) to Pro ($99/mo) on day 15:
75
75
  - **Balance top-up** — when your customer adds funds to their balance.
76
76
  - **Add-on activation** — when your customer activates an add-on mid-cycle; the first charge is prorated.
77
77
  - **One-time payment** — when your customer pays a payment link or a standalone charge, outside any subscription.
78
- - **Reactivation** — when a canceled subscription is reactivated; a fresh invoice at the plan's current price, starting a new billing period.
78
+ - **Reactivation** — when a canceled subscription is reactivated; a fresh invoice at the price of the latest [plan version](/docs/plan-versions#reactivate-a-canceled-subscription) of what was bought, starting a new billing period.
79
79
  - **Adjustment** — when you manually create a correction, refund, or one-off charge from the dashboard.
80
80
 
81
81
  ## Invoice Line Types
@@ -12,7 +12,7 @@
12
12
  "platformDocumentation": {
13
13
  "source": "commet-labs/docs",
14
14
  "index": "platform-documentation.md",
15
- "count": 97,
15
+ "count": 98,
16
16
  "entries": [
17
17
  "documentation/introduction.md",
18
18
  "documentation/create-api-key.md",
@@ -39,6 +39,7 @@
39
39
  "documentation/customers/customer-credits.md",
40
40
  "documentation/customers/customer-portal.md",
41
41
  "documentation/plans/create-plans.md",
42
+ "documentation/plans/plan-versions.md",
42
43
  "documentation/plans/add-ons.md",
43
44
  "documentation/plans/configure-features.md",
44
45
  "documentation/plans/consumption-models.md",
@@ -115,7 +116,7 @@
115
116
  },
116
117
  "errorReferences": {
117
118
  "index": "errors/index.md",
118
- "count": 88,
119
+ "count": 94,
119
120
  "entries": [
120
121
  {
121
122
  "code": "validation_error",
@@ -183,6 +184,18 @@
183
184
  "documentation": "errors/plan_not_found.md",
184
185
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/plan_not_found.md"
185
186
  },
187
+ {
188
+ "code": "plan_version_not_found",
189
+ "type": "not_found_error",
190
+ "documentation": "errors/plan_version_not_found.md",
191
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/plan_version_not_found.md"
192
+ },
193
+ {
194
+ "code": "plan_experiment_not_found",
195
+ "type": "not_found_error",
196
+ "documentation": "errors/plan_experiment_not_found.md",
197
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/plan_experiment_not_found.md"
198
+ },
186
199
  {
187
200
  "code": "subscription_not_found",
188
201
  "type": "not_found_error",
@@ -249,6 +262,12 @@
249
262
  "documentation": "errors/already_scheduled.md",
250
263
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/already_scheduled.md"
251
264
  },
265
+ {
266
+ "code": "subscribers_do_not_fit",
267
+ "type": "conflict_error",
268
+ "documentation": "errors/subscribers_do_not_fit.md",
269
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/subscribers_do_not_fit.md"
270
+ },
252
271
  {
253
272
  "code": "feature_not_in_plan",
254
273
  "type": "billing_error",
@@ -429,6 +448,12 @@
429
448
  "documentation": "errors/no_change_requested.md",
430
449
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/no_change_requested.md"
431
450
  },
451
+ {
452
+ "code": "version_not_newer",
453
+ "type": "validation_error",
454
+ "documentation": "errors/version_not_newer.md",
455
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/version_not_newer.md"
456
+ },
432
457
  {
433
458
  "code": "plans_not_in_same_group",
434
459
  "type": "validation_error",
@@ -477,6 +502,12 @@
477
502
  "documentation": "errors/addon_has_activations.md",
478
503
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/addon_has_activations.md"
479
504
  },
505
+ {
506
+ "code": "addon_unavailable",
507
+ "type": "conflict_error",
508
+ "documentation": "errors/addon_unavailable.md",
509
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/addon_unavailable.md"
510
+ },
480
511
  {
481
512
  "code": "feature_already_exists",
482
513
  "type": "conflict_error",
@@ -507,6 +538,12 @@
507
538
  "documentation": "errors/credit_pack_not_found.md",
508
539
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/credit_pack_not_found.md"
509
540
  },
541
+ {
542
+ "code": "credit_pack_unavailable",
543
+ "type": "conflict_error",
544
+ "documentation": "errors/credit_pack_unavailable.md",
545
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/credit_pack_unavailable.md"
546
+ },
510
547
  {
511
548
  "code": "plan_group_not_found",
512
549
  "type": "not_found_error",
@@ -1120,6 +1157,78 @@
1120
1157
  "name": "plans",
1121
1158
  "documentation": "api-reference/plans.md",
1122
1159
  "operations": [
1160
+ {
1161
+ "name": "publishDraft",
1162
+ "operationId": "publish-plan-draft",
1163
+ "method": "POST",
1164
+ "path": "/plans/{id}/drafts/{draftId}/publish"
1165
+ },
1166
+ {
1167
+ "name": "getDraft",
1168
+ "operationId": "get-plan-draft",
1169
+ "method": "GET",
1170
+ "path": "/plans/{id}/drafts/{draftId}"
1171
+ },
1172
+ {
1173
+ "name": "updateDraft",
1174
+ "operationId": "update-plan-draft",
1175
+ "method": "PATCH",
1176
+ "path": "/plans/{id}/drafts/{draftId}"
1177
+ },
1178
+ {
1179
+ "name": "deleteDraft",
1180
+ "operationId": "delete-plan-draft",
1181
+ "method": "DELETE",
1182
+ "path": "/plans/{id}/drafts/{draftId}"
1183
+ },
1184
+ {
1185
+ "name": "listDrafts",
1186
+ "operationId": "list-plan-drafts",
1187
+ "method": "GET",
1188
+ "path": "/plans/{id}/drafts"
1189
+ },
1190
+ {
1191
+ "name": "createDraft",
1192
+ "operationId": "create-plan-draft",
1193
+ "method": "POST",
1194
+ "path": "/plans/{id}/drafts"
1195
+ },
1196
+ {
1197
+ "name": "archiveExperiment",
1198
+ "operationId": "archive-plan-experiment",
1199
+ "method": "POST",
1200
+ "path": "/plans/{id}/experiments/{code}/archive"
1201
+ },
1202
+ {
1203
+ "name": "makeExperimentCurrent",
1204
+ "operationId": "make-plan-experiment-current",
1205
+ "method": "POST",
1206
+ "path": "/plans/{id}/experiments/{code}/make-current"
1207
+ },
1208
+ {
1209
+ "name": "getExperiment",
1210
+ "operationId": "get-plan-experiment",
1211
+ "method": "GET",
1212
+ "path": "/plans/{id}/experiments/{code}"
1213
+ },
1214
+ {
1215
+ "name": "createExperimentVersion",
1216
+ "operationId": "create-plan-experiment-version",
1217
+ "method": "POST",
1218
+ "path": "/plans/{id}/experiments/{code}/versions"
1219
+ },
1220
+ {
1221
+ "name": "listExperiments",
1222
+ "operationId": "list-plan-experiments",
1223
+ "method": "GET",
1224
+ "path": "/plans/{id}/experiments"
1225
+ },
1226
+ {
1227
+ "name": "createExperiment",
1228
+ "operationId": "create-plan-experiment",
1229
+ "method": "POST",
1230
+ "path": "/plans/{id}/experiments"
1231
+ },
1123
1232
  {
1124
1233
  "name": "updateFeature",
1125
1234
  "operationId": "update-plan-feature",
@@ -1138,6 +1247,48 @@
1138
1247
  "method": "POST",
1139
1248
  "path": "/plans/{id}/features"
1140
1249
  },
1250
+ {
1251
+ "name": "cancelMove",
1252
+ "operationId": "cancel-plan-move",
1253
+ "method": "POST",
1254
+ "path": "/plans/{id}/moves/{moveId}/cancel"
1255
+ },
1256
+ {
1257
+ "name": "getMove",
1258
+ "operationId": "get-plan-move",
1259
+ "method": "GET",
1260
+ "path": "/plans/{id}/moves/{moveId}"
1261
+ },
1262
+ {
1263
+ "name": "cancelMoveSubscription",
1264
+ "operationId": "cancel-plan-move-subscription",
1265
+ "method": "POST",
1266
+ "path": "/plans/{id}/moves/{moveId}/subscriptions/{subscriptionId}/cancel"
1267
+ },
1268
+ {
1269
+ "name": "listMoves",
1270
+ "operationId": "list-plan-moves",
1271
+ "method": "GET",
1272
+ "path": "/plans/{id}/moves"
1273
+ },
1274
+ {
1275
+ "name": "createMove",
1276
+ "operationId": "create-plan-move",
1277
+ "method": "POST",
1278
+ "path": "/plans/{id}/moves"
1279
+ },
1280
+ {
1281
+ "name": "keepSubscriberOnVersion",
1282
+ "operationId": "keep-plan-subscriber-on-version",
1283
+ "method": "POST",
1284
+ "path": "/plans/{id}/needs-a-change/{subscriptionId}/keep"
1285
+ },
1286
+ {
1287
+ "name": "listSubscribersNeedingAChange",
1288
+ "operationId": "list-plan-subscribers-needing-a-change",
1289
+ "method": "GET",
1290
+ "path": "/plans/{id}/needs-a-change"
1291
+ },
1141
1292
  {
1142
1293
  "name": "setDefaultPrice",
1143
1294
  "operationId": "set-default-plan-price",
@@ -1198,6 +1349,30 @@
1198
1349
  "method": "DELETE",
1199
1350
  "path": "/plans/{id}"
1200
1351
  },
1352
+ {
1353
+ "name": "compareVersions",
1354
+ "operationId": "compare-plan-versions",
1355
+ "method": "GET",
1356
+ "path": "/plans/{id}/versions/{versionId}/changes"
1357
+ },
1358
+ {
1359
+ "name": "getVersion",
1360
+ "operationId": "get-plan-version",
1361
+ "method": "GET",
1362
+ "path": "/plans/{id}/versions/{versionId}"
1363
+ },
1364
+ {
1365
+ "name": "listVersions",
1366
+ "operationId": "list-plan-versions",
1367
+ "method": "GET",
1368
+ "path": "/plans/{id}/versions"
1369
+ },
1370
+ {
1371
+ "name": "createVersion",
1372
+ "operationId": "create-plan-version",
1373
+ "method": "POST",
1374
+ "path": "/plans/{id}/versions"
1375
+ },
1201
1376
  {
1202
1377
  "name": "setVisibility",
1203
1378
  "operationId": "set-plan-visibility",
@@ -1354,6 +1529,12 @@
1354
1529
  "method": "POST",
1355
1530
  "path": "/subscriptions/{id}/change-plan"
1356
1531
  },
1532
+ {
1533
+ "name": "changeVersion",
1534
+ "operationId": "change-subscription-version",
1535
+ "method": "POST",
1536
+ "path": "/subscriptions/{id}/change-version"
1537
+ },
1357
1538
  {
1358
1539
  "name": "purchaseCredits",
1359
1540
  "operationId": "purchase-credits",
@@ -1438,6 +1619,12 @@
1438
1619
  "method": "DELETE",
1439
1620
  "path": "/subscriptions/{id}/scheduled-plan-change"
1440
1621
  },
1622
+ {
1623
+ "name": "revokeScheduledVersionChange",
1624
+ "operationId": "revoke-scheduled-version-change",
1625
+ "method": "DELETE",
1626
+ "path": "/subscriptions/{id}/scheduled-version-change"
1627
+ },
1441
1628
  {
1442
1629
  "name": "uncancel",
1443
1630
  "operationId": "uncancel-subscription",
@@ -1638,6 +1825,8 @@
1638
1825
  "subscription.cancellation_revoked",
1639
1826
  "subscription.plan_change_scheduled",
1640
1827
  "subscription.plan_change_revoked",
1828
+ "subscription.version_changed",
1829
+ "subscription.version_change_canceled",
1641
1830
  "subscription.past_due",
1642
1831
  "trial.started",
1643
1832
  "trial.converted",
@@ -27,6 +27,7 @@ This documentation snapshot is serialized from the source of commet.co/docs and
27
27
  - [documentation/customers/customer-credits.md](./documentation/customers/customer-credits.md)
28
28
  - [documentation/customers/customer-portal.md](./documentation/customers/customer-portal.md)
29
29
  - [documentation/plans/create-plans.md](./documentation/plans/create-plans.md)
30
+ - [documentation/plans/plan-versions.md](./documentation/plans/plan-versions.md)
30
31
  - [documentation/plans/add-ons.md](./documentation/plans/add-ons.md)
31
32
  - [documentation/plans/configure-features.md](./documentation/plans/configure-features.md)
32
33
  - [documentation/plans/consumption-models.md](./documentation/plans/consumption-models.md)