atmn 2.0.209 → 2.0.210
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/bin.js +11 -11
- package/package.json +2 -2
- package/src/generated/client.ts +155 -155
- package/src/generated/licenses.ts +1 -1
- package/src/generated/plans.ts +5 -5
- package/src/generated/skills.ts +10 -10
- package/src/generated/variants.ts +3 -3
package/dist/bin.js
CHANGED
|
@@ -8195,7 +8195,7 @@ var createClient = (options) => ({
|
|
|
8195
8195
|
});
|
|
8196
8196
|
|
|
8197
8197
|
// src/version.ts
|
|
8198
|
-
var version = "2.0.
|
|
8198
|
+
var version = "2.0.210";
|
|
8199
8199
|
|
|
8200
8200
|
// src/http/autumnFetch.ts
|
|
8201
8201
|
var runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.versions.node}`;
|
|
@@ -10466,16 +10466,16 @@ import { dirname as dirname4, join as join7 } from "node:path";
|
|
|
10466
10466
|
import chalk3 from "chalk";
|
|
10467
10467
|
|
|
10468
10468
|
// src/generated/skills.ts
|
|
10469
|
-
var SKILLS_VERSION = "2.0.
|
|
10469
|
+
var SKILLS_VERSION = "2.0.209";
|
|
10470
10470
|
var SKILLS = [
|
|
10471
10471
|
{
|
|
10472
10472
|
name: "autumn-setup",
|
|
10473
10473
|
description: "First-time Autumn setup — install the atmn CLI, connect to an org (sign in, or keyless with no account), turn the user's pricing into autumn.config.ts, and push it to a sandbox org. Use when the user is new to Autumn, pastes an Autumn setup prompt, or asks to set up Autumn, add billing, monetization, subscriptions, usage-based billing, pricing, or plans. If Autumn is already set up, use autumn-catalog instead.",
|
|
10474
|
-
version: "2.0.
|
|
10474
|
+
version: "2.0.209",
|
|
10475
10475
|
markdown: `---
|
|
10476
10476
|
name: autumn-setup
|
|
10477
10477
|
description: First-time Autumn setup — install the atmn CLI, connect to an org (sign in, or keyless with no account), turn the user's pricing into autumn.config.ts, and push it to a sandbox org. Use when the user is new to Autumn, pastes an Autumn setup prompt, or asks to set up Autumn, add billing, monetization, subscriptions, usage-based billing, pricing, or plans. If Autumn is already set up, use autumn-catalog instead.
|
|
10478
|
-
version: 2.0.
|
|
10478
|
+
version: 2.0.209
|
|
10479
10479
|
---
|
|
10480
10480
|
|
|
10481
10481
|
# Setup
|
|
@@ -10633,11 +10633,11 @@ Then stop. Don't keep building, don't tour the dashboard, don't deploy anything.
|
|
|
10633
10633
|
{
|
|
10634
10634
|
name: "autumn-catalog",
|
|
10635
10635
|
description: "Modeling a user's pricing into an Autumn catalog — deciding the structure (plans, variants, add-ons, licenses, credit systems, pooled balances) before writing config, then filling in the numbers. Use when the user describes their pricing or asks to model, change, or push a catalog.",
|
|
10636
|
-
version: "2.0.
|
|
10636
|
+
version: "2.0.209",
|
|
10637
10637
|
markdown: `---
|
|
10638
10638
|
name: autumn-catalog
|
|
10639
10639
|
description: Modeling a user's pricing into an Autumn catalog — deciding the structure (plans, variants, add-ons, licenses, credit systems, pooled balances) before writing config, then filling in the numbers. Use when the user describes their pricing or asks to model, change, or push a catalog.
|
|
10640
|
-
version: 2.0.
|
|
10640
|
+
version: 2.0.209
|
|
10641
10641
|
---
|
|
10642
10642
|
|
|
10643
10643
|
# Catalog
|
|
@@ -14504,11 +14504,11 @@ Pitch: "Pro $20/mo or $200/yr — 1,000 messages per month either way."
|
|
|
14504
14504
|
{
|
|
14505
14505
|
name: "autumn-integrate",
|
|
14506
14506
|
description: "Integrating Autumn into an app's backend — creating customers, billing flows (attach, checkout, upgrade, cancel), gating features with check, recording usage with track, and exposing billing data to the frontend. Use when the user asks to integrate Autumn, add billing/payments to their app, gate features, meter usage, or build checkout/upgrade flows. Requires a pushed catalog; use autumn-catalog first if plans don't exist yet.",
|
|
14507
|
-
version: "2.0.
|
|
14507
|
+
version: "2.0.209",
|
|
14508
14508
|
markdown: `---
|
|
14509
14509
|
name: autumn-integrate
|
|
14510
14510
|
description: Integrating Autumn into an app's backend — creating customers, billing flows (attach, checkout, upgrade, cancel), gating features with check, recording usage with track, and exposing billing data to the frontend. Use when the user asks to integrate Autumn, add billing/payments to their app, gate features, meter usage, or build checkout/upgrade flows. Requires a pushed catalog; use autumn-catalog first if plans don't exist yet.
|
|
14511
|
-
version: 2.0.
|
|
14511
|
+
version: 2.0.209
|
|
14512
14512
|
---
|
|
14513
14513
|
|
|
14514
14514
|
# Integrate
|
|
@@ -19225,11 +19225,11 @@ Monitor your logs for this message. If you see it, check [status.useautumn.com](
|
|
|
19225
19225
|
{
|
|
19226
19226
|
name: "autumn-concepts",
|
|
19227
19227
|
description: "Understanding Autumn's billing objects before acting on them — what a plan version is and what active means, when a trial starts or ends billing, how entity- and seat-scoped subscriptions differ from the customer's own, what a customize diff actually changes, and how caps, overage, and top-ups behave. Load before versioning, editing, or drafting a plan, or when a customer's state does not match the plain reading of their plan.",
|
|
19228
|
-
version: "2.0.
|
|
19228
|
+
version: "2.0.209",
|
|
19229
19229
|
markdown: `---
|
|
19230
19230
|
name: autumn-concepts
|
|
19231
19231
|
description: Understanding Autumn's billing objects before acting on them — what a plan version is and what active means, when a trial starts or ends billing, how entity- and seat-scoped subscriptions differ from the customer's own, what a customize diff actually changes, and how caps, overage, and top-ups behave. Load before versioning, editing, or drafting a plan, or when a customer's state does not match the plain reading of their plan.
|
|
19232
|
-
version: 2.0.
|
|
19232
|
+
version: 2.0.209
|
|
19233
19233
|
---
|
|
19234
19234
|
|
|
19235
19235
|
# Concepts
|
|
@@ -19514,7 +19514,7 @@ Metered volume variant:
|
|
|
19514
19514
|
},
|
|
19515
19515
|
{
|
|
19516
19516
|
path: "references/trials.md",
|
|
19517
|
-
contents: '### Trials\n\n- A trial gives a customer temporary, free access to a plan. It can be passed in during the billing call, or it can come with the plan configuration itself (which can be overriden).\n- Set a trial with `free_trial` on attach: `{ duration_length, duration_type (day|month|year), card_required, on_end }`. Always pass `duration_type` and `on_end`; never omit `on_end`, because it silently defaults to `"bill"`.\n- Default to card not required (if there is no paid plan), and on_end: revert (if there is a paid plan).\n- `on_end` must match what you tell the user happens when the trial ends. If you say the customer goes back to their current or previous plan (e.g. "if no card is added, they go back to Hobby"), pass `on_end: "revert"`. Pass `on_end: "bill"` only when the customer should be charged and keep the plan at trial end, and say that.\n\nIf the customer the customer is NOT on a paid plan (free plan or no plan at all). 2 options:\n\n- No-card trial (default to this): attach with `free_trial` and set `card_required` false. The subscription starts with no card and ends at trial end if none is added. While on it, the customer cannot upgrade or attach another plan until they add a card via the Stripe billing portal.\n- No-card trials cannot be combined with `invoice_mode` (attach rejects it). If an invoice is needed, use `card_required: true`.\n- Card-required trial: attach with `free_trial` and `card_required: true` and `long_lived_checkout` If the customer has no payment method, the attach returns a checkout URL to collect a card; they are charged when the trial ends. This should be done with a long-lived checkout URL param.\n\nThe customer already has an active (Stripe) subscription — common in sales-led trials.\n\n- On end: revert (default to this): attach the new plan with `on_end: "revert"` . This grants the plan in Autumn without touching the Stripe subscription; at trial end Autumn moves the customer back to their original plan, preserving the existing billing cycle.\n- To end a revert trial early, cancel it with `updateSubscription` and `cancel_action: "cancel_immediately"`; Autumn restores the previous plan. Do not remove `free_trial` (that converts the trial to paid) or re-attach the old plan.\n- On end: bill -- attaching a plan with a trial (or updating the subscription to add one) resets the Stripe billing anchor/cycle. This can be undesired so warn the user if they request this.\n- Card required param is ignored if there is already an active sub.\n\n\nUpdating or ending a trial\n- Call update_subscription on the trialing plan with the new trial nested under `customize`: `{ customer_id, subscription_id, customize: { free_trial: { duration_length, duration_type, card_required, on_end } } }`. Never put `free_trial` at the top level of an update: the update endpoint rejects a request whose only change is a top-level `free_trial` ("At least one update parameter must be provided"), while `customize.free_trial` is accepted. The duration is counted from now, not from the original start. A 14-day extension on day 10 of a 14-day trial gives 14 more days, not 4.\n- For a bill-on-end trial, pass `customize: { free_trial: null }` to end the trial immediately and start paid billing. Never do this for a revert trial: it activates the trial plan at full price instead of restoring the old plan. Cancel a revert trial instead (see above).'
|
|
19517
|
+
contents: '### Trials\n\n- A trial gives a customer temporary, free access to a plan. It can be passed in during the billing call, or it can come with the plan configuration itself (which can be overriden).\n- Set a trial with `free_trial` on attach: `{ duration_length, duration_type (day|month|year), card_required, on_end }`. Always pass `duration_type` and `on_end`; never omit `on_end`, because it silently defaults to `"bill"`.\n- Default to card not required (if there is no paid plan), and on_end: revert (if there is a paid plan).\n- `on_end` must match what you tell the user happens when the trial ends. If you say the customer goes back to their current or previous plan (e.g. "if no card is added, they go back to Hobby"), pass `on_end: "revert"`. Pass `on_end: "bill"` only when the customer should be charged and keep the plan at trial end, and say that.\n\nIf the customer the customer is NOT on a paid plan (free plan or no plan at all). 2 options:\n\n- No-card trial (default to this): attach with `free_trial` and set `card_required` false. The subscription starts with no card and ends at trial end if none is added. While on it, the customer cannot upgrade or attach another plan until they add a card via the Stripe billing portal.\n- No-card trials cannot be combined with `invoice_mode` (attach rejects it). If an invoice is needed, use `card_required: true`.\n- Card-required trial: attach with `free_trial` and `card_required: true` and `long_lived_checkout` If the customer has no payment method, the attach returns a checkout URL to collect a card; they are charged when the trial ends. This should be done with a long-lived checkout URL param.\n\nThe customer already has an active (Stripe) subscription — common in sales-led trials.\n\n- On end: revert (default to this): attach the new plan with `on_end: "revert"` . This grants the plan in Autumn without touching the Stripe subscription; at trial end Autumn moves the customer back to their original plan, preserving the existing billing cycle.\n- For a revert trial on several entities at once (e.g. every deployment), use `setPlans` with one phase starting now, one plan per `entity_id`, and a top-level `free_trial` with `on_end: "revert"`. Each entity\'s current plan is paused and comes back at trial end. If `setPlans` rejects the revert, report why or attach per entity; never switch to `on_end: "bill"` without asking.\n- To end a revert trial early, cancel it with `updateSubscription` and `cancel_action: "cancel_immediately"`; Autumn restores the previous plan. Do not remove `free_trial` (that converts the trial to paid) or re-attach the old plan.\n- On end: bill -- attaching a plan with a trial (or updating the subscription to add one) resets the Stripe billing anchor/cycle. This can be undesired so warn the user if they request this.\n- Card required param is ignored if there is already an active sub.\n\n\nUpdating or ending a trial\n- Call update_subscription on the trialing plan with the new trial nested under `customize`: `{ customer_id, subscription_id, customize: { free_trial: { duration_length, duration_type, card_required, on_end } } }`. Never put `free_trial` at the top level of an update: the update endpoint rejects a request whose only change is a top-level `free_trial` ("At least one update parameter must be provided"), while `customize.free_trial` is accepted. The duration is counted from now, not from the original start. A 14-day extension on day 10 of a 14-day trial gives 14 more days, not 4.\n- For a bill-on-end trial, pass `customize: { free_trial: null }` to end the trial immediately and start paid billing. Never do this for a revert trial: it activates the trial plan at full price instead of restoring the old plan. Cancel a revert trial instead (see above).'
|
|
19518
19518
|
},
|
|
19519
19519
|
{
|
|
19520
19520
|
path: "references/customer-entity.md",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atmn",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.210",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The CLI for Autumn — define your pricing in code, sync it to Autumn, and keep everything in version control.",
|
|
6
6
|
"bin": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"open": "10.2.0",
|
|
51
51
|
"yaml": "2.9.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "cd888578bf17399a7a4f63acd52524599954774a"
|
|
54
54
|
}
|