@commet/node 9.9.0 → 9.11.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.
- package/dist/index.d.mts +932 -59
- package/dist/index.d.ts +932 -59
- package/dist/index.js +209 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +209 -13
- package/dist/index.mjs.map +1 -1
- package/docs/ai-onboarding/mcp-server.md +2 -0
- package/docs/api-reference/addons.md +3 -1
- package/docs/api-reference/credit-packs.md +3 -1
- package/docs/api-reference/customers.md +3 -3
- package/docs/api-reference/generated-webhooks.md +2 -2
- package/docs/api-reference/index.md +3 -3
- package/docs/api-reference/invoices.md +4 -3
- package/docs/api-reference/plans.md +487 -6
- package/docs/api-reference/subscriptions.md +45 -4
- package/docs/api-reference/transactions.md +2 -1
- package/docs/documentation/api-versioning.md +8 -2
- package/docs/documentation/cli.md +4 -0
- package/docs/documentation/customers/customer-portal.md +2 -2
- package/docs/documentation/invoicing/manage-invoices.md +1 -1
- package/docs/documentation/plans/add-ons.md +16 -5
- package/docs/documentation/plans/balance-and-top-ups.md +1 -1
- package/docs/documentation/plans/consumption-models.md +23 -3
- package/docs/documentation/plans/create-plans.md +5 -1
- package/docs/documentation/plans/credit-packs.md +22 -10
- package/docs/documentation/plans/plan-groups.md +1 -1
- package/docs/documentation/plans/plan-versions.md +267 -0
- package/docs/documentation/sales/regional-prices.md +23 -9
- package/docs/documentation/sales/trial-periods.md +3 -3
- package/docs/documentation/subscriptions/manage-subscriptions.md +50 -13
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +2 -0
- package/docs/errors/addon_has_activations.md +2 -2
- package/docs/errors/addon_unavailable.md +22 -0
- package/docs/errors/credit_pack_unavailable.md +22 -0
- package/docs/errors/currency_held_by_balance_plan.md +22 -0
- package/docs/errors/currency_held_by_customer_credit.md +22 -0
- package/docs/errors/currency_held_by_fixed_amount_discount.md +22 -0
- package/docs/errors/currency_held_by_payment_method.md +22 -0
- package/docs/errors/currency_held_by_prepaid_period.md +22 -0
- package/docs/errors/currency_held_by_scheduled_pause.md +22 -0
- package/docs/errors/index.md +14 -2
- package/docs/errors/missing_regional_price.md +3 -3
- package/docs/errors/plan_experiment_not_found.md +22 -0
- package/docs/errors/plan_version_not_found.md +22 -0
- package/docs/errors/subscribers_do_not_fit.md +22 -0
- package/docs/errors/version_not_newer.md +22 -0
- package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +4 -3
- package/docs/knowledge-base/how-do-trial-periods-work.md +3 -3
- package/docs/knowledge-base/how-does-billing-work.md +26 -28
- package/docs/knowledge-base/how-does-quota-based-billing-work.md +12 -22
- package/docs/knowledge-base/how-does-seat-based-billing-work.md +12 -22
- package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +11 -8
- package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +34 -29
- package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +1 -1
- package/docs/manifest.json +227 -2
- package/docs/platform-documentation.md +1 -0
- package/docs/schemas.md +128 -13
- package/docs/webhooks/introduction.md +3 -1
- package/docs/webhooks.md +27 -2
- package/docs/webhooks.openapi.json +231 -1
- package/package.json +1 -1
package/docs/manifest.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"platformDocumentation": {
|
|
13
13
|
"source": "commet-labs/docs",
|
|
14
14
|
"index": "platform-documentation.md",
|
|
15
|
-
"count":
|
|
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":
|
|
119
|
+
"count": 100,
|
|
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",
|
|
@@ -303,6 +322,42 @@
|
|
|
303
322
|
"documentation": "errors/missing_regional_price.md",
|
|
304
323
|
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/missing_regional_price.md"
|
|
305
324
|
},
|
|
325
|
+
{
|
|
326
|
+
"code": "currency_held_by_payment_method",
|
|
327
|
+
"type": "billing_error",
|
|
328
|
+
"documentation": "errors/currency_held_by_payment_method.md",
|
|
329
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_payment_method.md"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"code": "currency_held_by_customer_credit",
|
|
333
|
+
"type": "billing_error",
|
|
334
|
+
"documentation": "errors/currency_held_by_customer_credit.md",
|
|
335
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_customer_credit.md"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"code": "currency_held_by_balance_plan",
|
|
339
|
+
"type": "billing_error",
|
|
340
|
+
"documentation": "errors/currency_held_by_balance_plan.md",
|
|
341
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_balance_plan.md"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"code": "currency_held_by_fixed_amount_discount",
|
|
345
|
+
"type": "billing_error",
|
|
346
|
+
"documentation": "errors/currency_held_by_fixed_amount_discount.md",
|
|
347
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_fixed_amount_discount.md"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"code": "currency_held_by_prepaid_period",
|
|
351
|
+
"type": "billing_error",
|
|
352
|
+
"documentation": "errors/currency_held_by_prepaid_period.md",
|
|
353
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_prepaid_period.md"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"code": "currency_held_by_scheduled_pause",
|
|
357
|
+
"type": "billing_error",
|
|
358
|
+
"documentation": "errors/currency_held_by_scheduled_pause.md",
|
|
359
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/currency_held_by_scheduled_pause.md"
|
|
360
|
+
},
|
|
306
361
|
{
|
|
307
362
|
"code": "payment_failed",
|
|
308
363
|
"type": "billing_error",
|
|
@@ -429,6 +484,12 @@
|
|
|
429
484
|
"documentation": "errors/no_change_requested.md",
|
|
430
485
|
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/no_change_requested.md"
|
|
431
486
|
},
|
|
487
|
+
{
|
|
488
|
+
"code": "version_not_newer",
|
|
489
|
+
"type": "validation_error",
|
|
490
|
+
"documentation": "errors/version_not_newer.md",
|
|
491
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/version_not_newer.md"
|
|
492
|
+
},
|
|
432
493
|
{
|
|
433
494
|
"code": "plans_not_in_same_group",
|
|
434
495
|
"type": "validation_error",
|
|
@@ -477,6 +538,12 @@
|
|
|
477
538
|
"documentation": "errors/addon_has_activations.md",
|
|
478
539
|
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/addon_has_activations.md"
|
|
479
540
|
},
|
|
541
|
+
{
|
|
542
|
+
"code": "addon_unavailable",
|
|
543
|
+
"type": "conflict_error",
|
|
544
|
+
"documentation": "errors/addon_unavailable.md",
|
|
545
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/addon_unavailable.md"
|
|
546
|
+
},
|
|
480
547
|
{
|
|
481
548
|
"code": "feature_already_exists",
|
|
482
549
|
"type": "conflict_error",
|
|
@@ -507,6 +574,12 @@
|
|
|
507
574
|
"documentation": "errors/credit_pack_not_found.md",
|
|
508
575
|
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/credit_pack_not_found.md"
|
|
509
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"code": "credit_pack_unavailable",
|
|
579
|
+
"type": "conflict_error",
|
|
580
|
+
"documentation": "errors/credit_pack_unavailable.md",
|
|
581
|
+
"canonicalUrl": "/docs/api-reference/2026-08-27/errors/credit_pack_unavailable.md"
|
|
582
|
+
},
|
|
510
583
|
{
|
|
511
584
|
"code": "plan_group_not_found",
|
|
512
585
|
"type": "not_found_error",
|
|
@@ -1120,6 +1193,78 @@
|
|
|
1120
1193
|
"name": "plans",
|
|
1121
1194
|
"documentation": "api-reference/plans.md",
|
|
1122
1195
|
"operations": [
|
|
1196
|
+
{
|
|
1197
|
+
"name": "publishDraft",
|
|
1198
|
+
"operationId": "publish-plan-draft",
|
|
1199
|
+
"method": "POST",
|
|
1200
|
+
"path": "/plans/{id}/drafts/{draftId}/publish"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "getDraft",
|
|
1204
|
+
"operationId": "get-plan-draft",
|
|
1205
|
+
"method": "GET",
|
|
1206
|
+
"path": "/plans/{id}/drafts/{draftId}"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"name": "updateDraft",
|
|
1210
|
+
"operationId": "update-plan-draft",
|
|
1211
|
+
"method": "PATCH",
|
|
1212
|
+
"path": "/plans/{id}/drafts/{draftId}"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "deleteDraft",
|
|
1216
|
+
"operationId": "delete-plan-draft",
|
|
1217
|
+
"method": "DELETE",
|
|
1218
|
+
"path": "/plans/{id}/drafts/{draftId}"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"name": "listDrafts",
|
|
1222
|
+
"operationId": "list-plan-drafts",
|
|
1223
|
+
"method": "GET",
|
|
1224
|
+
"path": "/plans/{id}/drafts"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"name": "createDraft",
|
|
1228
|
+
"operationId": "create-plan-draft",
|
|
1229
|
+
"method": "POST",
|
|
1230
|
+
"path": "/plans/{id}/drafts"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "archiveExperiment",
|
|
1234
|
+
"operationId": "archive-plan-experiment",
|
|
1235
|
+
"method": "POST",
|
|
1236
|
+
"path": "/plans/{id}/experiments/{code}/archive"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "makeExperimentCurrent",
|
|
1240
|
+
"operationId": "make-plan-experiment-current",
|
|
1241
|
+
"method": "POST",
|
|
1242
|
+
"path": "/plans/{id}/experiments/{code}/make-current"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "getExperiment",
|
|
1246
|
+
"operationId": "get-plan-experiment",
|
|
1247
|
+
"method": "GET",
|
|
1248
|
+
"path": "/plans/{id}/experiments/{code}"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "createExperimentVersion",
|
|
1252
|
+
"operationId": "create-plan-experiment-version",
|
|
1253
|
+
"method": "POST",
|
|
1254
|
+
"path": "/plans/{id}/experiments/{code}/versions"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"name": "listExperiments",
|
|
1258
|
+
"operationId": "list-plan-experiments",
|
|
1259
|
+
"method": "GET",
|
|
1260
|
+
"path": "/plans/{id}/experiments"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "createExperiment",
|
|
1264
|
+
"operationId": "create-plan-experiment",
|
|
1265
|
+
"method": "POST",
|
|
1266
|
+
"path": "/plans/{id}/experiments"
|
|
1267
|
+
},
|
|
1123
1268
|
{
|
|
1124
1269
|
"name": "updateFeature",
|
|
1125
1270
|
"operationId": "update-plan-feature",
|
|
@@ -1138,6 +1283,48 @@
|
|
|
1138
1283
|
"method": "POST",
|
|
1139
1284
|
"path": "/plans/{id}/features"
|
|
1140
1285
|
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "cancelMove",
|
|
1288
|
+
"operationId": "cancel-plan-move",
|
|
1289
|
+
"method": "POST",
|
|
1290
|
+
"path": "/plans/{id}/moves/{moveId}/cancel"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "getMove",
|
|
1294
|
+
"operationId": "get-plan-move",
|
|
1295
|
+
"method": "GET",
|
|
1296
|
+
"path": "/plans/{id}/moves/{moveId}"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "cancelMoveSubscription",
|
|
1300
|
+
"operationId": "cancel-plan-move-subscription",
|
|
1301
|
+
"method": "POST",
|
|
1302
|
+
"path": "/plans/{id}/moves/{moveId}/subscriptions/{subscriptionId}/cancel"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "listMoves",
|
|
1306
|
+
"operationId": "list-plan-moves",
|
|
1307
|
+
"method": "GET",
|
|
1308
|
+
"path": "/plans/{id}/moves"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "createMove",
|
|
1312
|
+
"operationId": "create-plan-move",
|
|
1313
|
+
"method": "POST",
|
|
1314
|
+
"path": "/plans/{id}/moves"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "keepSubscriberOnVersion",
|
|
1318
|
+
"operationId": "keep-plan-subscriber-on-version",
|
|
1319
|
+
"method": "POST",
|
|
1320
|
+
"path": "/plans/{id}/needs-a-change/{subscriptionId}/keep"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "listSubscribersNeedingAChange",
|
|
1324
|
+
"operationId": "list-plan-subscribers-needing-a-change",
|
|
1325
|
+
"method": "GET",
|
|
1326
|
+
"path": "/plans/{id}/needs-a-change"
|
|
1327
|
+
},
|
|
1141
1328
|
{
|
|
1142
1329
|
"name": "setDefaultPrice",
|
|
1143
1330
|
"operationId": "set-default-plan-price",
|
|
@@ -1198,6 +1385,30 @@
|
|
|
1198
1385
|
"method": "DELETE",
|
|
1199
1386
|
"path": "/plans/{id}"
|
|
1200
1387
|
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "compareVersions",
|
|
1390
|
+
"operationId": "compare-plan-versions",
|
|
1391
|
+
"method": "GET",
|
|
1392
|
+
"path": "/plans/{id}/versions/{versionId}/changes"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "getVersion",
|
|
1396
|
+
"operationId": "get-plan-version",
|
|
1397
|
+
"method": "GET",
|
|
1398
|
+
"path": "/plans/{id}/versions/{versionId}"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"name": "listVersions",
|
|
1402
|
+
"operationId": "list-plan-versions",
|
|
1403
|
+
"method": "GET",
|
|
1404
|
+
"path": "/plans/{id}/versions"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "createVersion",
|
|
1408
|
+
"operationId": "create-plan-version",
|
|
1409
|
+
"method": "POST",
|
|
1410
|
+
"path": "/plans/{id}/versions"
|
|
1411
|
+
},
|
|
1201
1412
|
{
|
|
1202
1413
|
"name": "setVisibility",
|
|
1203
1414
|
"operationId": "set-plan-visibility",
|
|
@@ -1354,6 +1565,12 @@
|
|
|
1354
1565
|
"method": "POST",
|
|
1355
1566
|
"path": "/subscriptions/{id}/change-plan"
|
|
1356
1567
|
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "changeVersion",
|
|
1570
|
+
"operationId": "change-subscription-version",
|
|
1571
|
+
"method": "POST",
|
|
1572
|
+
"path": "/subscriptions/{id}/change-version"
|
|
1573
|
+
},
|
|
1357
1574
|
{
|
|
1358
1575
|
"name": "purchaseCredits",
|
|
1359
1576
|
"operationId": "purchase-credits",
|
|
@@ -1438,6 +1655,12 @@
|
|
|
1438
1655
|
"method": "DELETE",
|
|
1439
1656
|
"path": "/subscriptions/{id}/scheduled-plan-change"
|
|
1440
1657
|
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "revokeScheduledVersionChange",
|
|
1660
|
+
"operationId": "revoke-scheduled-version-change",
|
|
1661
|
+
"method": "DELETE",
|
|
1662
|
+
"path": "/subscriptions/{id}/scheduled-version-change"
|
|
1663
|
+
},
|
|
1441
1664
|
{
|
|
1442
1665
|
"name": "uncancel",
|
|
1443
1666
|
"operationId": "uncancel-subscription",
|
|
@@ -1638,6 +1861,8 @@
|
|
|
1638
1861
|
"subscription.cancellation_revoked",
|
|
1639
1862
|
"subscription.plan_change_scheduled",
|
|
1640
1863
|
"subscription.plan_change_revoked",
|
|
1864
|
+
"subscription.version_changed",
|
|
1865
|
+
"subscription.version_change_canceled",
|
|
1641
1866
|
"subscription.past_due",
|
|
1642
1867
|
"trial.started",
|
|
1643
1868
|
"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)
|