atmn 2.0.182 → 2.0.184
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 +40 -16
- package/dist/index.js +0 -6
- package/package.json +2 -2
- package/src/generated/apiRoutes.ts +35 -0
- package/src/generated/client.ts +84 -84
- package/src/generated/lintRules.ts +0 -6
- package/src/generated/plans.ts +2 -2
- package/src/generated/skills.ts +9 -9
- package/src/generated/variants.ts +1 -1
package/dist/bin.js
CHANGED
|
@@ -1141,6 +1141,12 @@ var API_ROUTES = [
|
|
|
1141
1141
|
required: false,
|
|
1142
1142
|
description: "Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given."
|
|
1143
1143
|
},
|
|
1144
|
+
{
|
|
1145
|
+
name: "bill_upfront",
|
|
1146
|
+
type: "json",
|
|
1147
|
+
required: false,
|
|
1148
|
+
description: "Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period."
|
|
1149
|
+
},
|
|
1144
1150
|
{
|
|
1145
1151
|
name: "customize",
|
|
1146
1152
|
type: "json",
|
|
@@ -1580,6 +1586,12 @@ var API_ROUTES = [
|
|
|
1580
1586
|
required: false,
|
|
1581
1587
|
description: "Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given."
|
|
1582
1588
|
},
|
|
1589
|
+
{
|
|
1590
|
+
name: "bill_upfront",
|
|
1591
|
+
type: "json",
|
|
1592
|
+
required: false,
|
|
1593
|
+
description: "Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period."
|
|
1594
|
+
},
|
|
1583
1595
|
{
|
|
1584
1596
|
name: "customize",
|
|
1585
1597
|
type: "json",
|
|
@@ -1914,6 +1926,12 @@ var API_ROUTES = [
|
|
|
1914
1926
|
required: false,
|
|
1915
1927
|
description: "Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given."
|
|
1916
1928
|
},
|
|
1929
|
+
{
|
|
1930
|
+
name: "bill_upfront",
|
|
1931
|
+
type: "json",
|
|
1932
|
+
required: false,
|
|
1933
|
+
description: "Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period."
|
|
1934
|
+
},
|
|
1917
1935
|
{
|
|
1918
1936
|
name: "customize",
|
|
1919
1937
|
type: "json",
|
|
@@ -2067,6 +2085,12 @@ var API_ROUTES = [
|
|
|
2067
2085
|
required: false,
|
|
2068
2086
|
description: "Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given."
|
|
2069
2087
|
},
|
|
2088
|
+
{
|
|
2089
|
+
name: "bill_upfront",
|
|
2090
|
+
type: "json",
|
|
2091
|
+
required: false,
|
|
2092
|
+
description: "Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period."
|
|
2093
|
+
},
|
|
2070
2094
|
{
|
|
2071
2095
|
name: "customize",
|
|
2072
2096
|
type: "json",
|
|
@@ -2325,6 +2349,12 @@ var API_ROUTES = [
|
|
|
2325
2349
|
required: false,
|
|
2326
2350
|
description: "Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given."
|
|
2327
2351
|
},
|
|
2352
|
+
{
|
|
2353
|
+
name: "bill_upfront",
|
|
2354
|
+
type: "json",
|
|
2355
|
+
required: false,
|
|
2356
|
+
description: "Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period."
|
|
2357
|
+
},
|
|
2328
2358
|
{
|
|
2329
2359
|
name: "customize",
|
|
2330
2360
|
type: "json",
|
|
@@ -4987,9 +5017,6 @@ var LINT_RULES = {
|
|
|
4987
5017
|
"plans.billingControls.usageAlerts": {
|
|
4988
5018
|
required: ["threshold", "thresholdType"],
|
|
4989
5019
|
fields: {
|
|
4990
|
-
threshold: {
|
|
4991
|
-
minimum: 0
|
|
4992
|
-
},
|
|
4993
5020
|
thresholdType: {
|
|
4994
5021
|
enum: [
|
|
4995
5022
|
"usage",
|
|
@@ -5982,9 +6009,6 @@ var LINT_RULES = {
|
|
|
5982
6009
|
"plans.variants.customize.billingControls.usageAlerts": {
|
|
5983
6010
|
required: ["threshold", "thresholdType"],
|
|
5984
6011
|
fields: {
|
|
5985
|
-
threshold: {
|
|
5986
|
-
minimum: 0
|
|
5987
|
-
},
|
|
5988
6012
|
thresholdType: {
|
|
5989
6013
|
enum: [
|
|
5990
6014
|
"usage",
|
|
@@ -7964,7 +7988,7 @@ var createClient = (options) => ({
|
|
|
7964
7988
|
});
|
|
7965
7989
|
|
|
7966
7990
|
// src/version.ts
|
|
7967
|
-
var version = "2.0.
|
|
7991
|
+
var version = "2.0.184";
|
|
7968
7992
|
|
|
7969
7993
|
// src/http/autumnFetch.ts
|
|
7970
7994
|
var runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.versions.node}`;
|
|
@@ -10235,16 +10259,16 @@ import { dirname as dirname4, join as join7 } from "node:path";
|
|
|
10235
10259
|
import chalk3 from "chalk";
|
|
10236
10260
|
|
|
10237
10261
|
// src/generated/skills.ts
|
|
10238
|
-
var SKILLS_VERSION = "2.0.
|
|
10262
|
+
var SKILLS_VERSION = "2.0.184";
|
|
10239
10263
|
var SKILLS = [
|
|
10240
10264
|
{
|
|
10241
10265
|
name: "autumn-setup",
|
|
10242
10266
|
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.",
|
|
10243
|
-
version: "2.0.
|
|
10267
|
+
version: "2.0.184",
|
|
10244
10268
|
markdown: `---
|
|
10245
10269
|
name: autumn-setup
|
|
10246
10270
|
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.
|
|
10247
|
-
version: 2.0.
|
|
10271
|
+
version: 2.0.184
|
|
10248
10272
|
---
|
|
10249
10273
|
|
|
10250
10274
|
# Setup
|
|
@@ -10402,11 +10426,11 @@ Then stop. Don't keep building, don't tour the dashboard, don't deploy anything.
|
|
|
10402
10426
|
{
|
|
10403
10427
|
name: "autumn-catalog",
|
|
10404
10428
|
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.",
|
|
10405
|
-
version: "2.0.
|
|
10429
|
+
version: "2.0.184",
|
|
10406
10430
|
markdown: `---
|
|
10407
10431
|
name: autumn-catalog
|
|
10408
10432
|
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.
|
|
10409
|
-
version: 2.0.
|
|
10433
|
+
version: 2.0.184
|
|
10410
10434
|
---
|
|
10411
10435
|
|
|
10412
10436
|
# Catalog
|
|
@@ -14250,11 +14274,11 @@ Pitch: "Pro $20/mo or $200/yr — 1,000 messages per month either way."
|
|
|
14250
14274
|
{
|
|
14251
14275
|
name: "autumn-integrate",
|
|
14252
14276
|
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.",
|
|
14253
|
-
version: "2.0.
|
|
14277
|
+
version: "2.0.184",
|
|
14254
14278
|
markdown: `---
|
|
14255
14279
|
name: autumn-integrate
|
|
14256
14280
|
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.
|
|
14257
|
-
version: 2.0.
|
|
14281
|
+
version: 2.0.184
|
|
14258
14282
|
---
|
|
14259
14283
|
|
|
14260
14284
|
# Integrate
|
|
@@ -18957,11 +18981,11 @@ Monitor your logs for this message. If you see it, check [status.useautumn.com](
|
|
|
18957
18981
|
{
|
|
18958
18982
|
name: "autumn-concepts",
|
|
18959
18983
|
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.",
|
|
18960
|
-
version: "2.0.
|
|
18984
|
+
version: "2.0.184",
|
|
18961
18985
|
markdown: `---
|
|
18962
18986
|
name: autumn-concepts
|
|
18963
18987
|
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.
|
|
18964
|
-
version: 2.0.
|
|
18988
|
+
version: 2.0.184
|
|
18965
18989
|
---
|
|
18966
18990
|
|
|
18967
18991
|
# Concepts
|
package/dist/index.js
CHANGED
|
@@ -349,9 +349,6 @@ var LINT_RULES = {
|
|
|
349
349
|
"plans.billingControls.usageAlerts": {
|
|
350
350
|
required: ["threshold", "thresholdType"],
|
|
351
351
|
fields: {
|
|
352
|
-
threshold: {
|
|
353
|
-
minimum: 0
|
|
354
|
-
},
|
|
355
352
|
thresholdType: {
|
|
356
353
|
enum: [
|
|
357
354
|
"usage",
|
|
@@ -1344,9 +1341,6 @@ var LINT_RULES = {
|
|
|
1344
1341
|
"plans.variants.customize.billingControls.usageAlerts": {
|
|
1345
1342
|
required: ["threshold", "thresholdType"],
|
|
1346
1343
|
fields: {
|
|
1347
|
-
threshold: {
|
|
1348
|
-
minimum: 0
|
|
1349
|
-
},
|
|
1350
1344
|
thresholdType: {
|
|
1351
1345
|
enum: [
|
|
1352
1346
|
"usage",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atmn",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.184",
|
|
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": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"open": "10.2.0",
|
|
50
50
|
"yaml": "2.9.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "6b016900757d1bc76d332f83fd222525cbde259f"
|
|
53
53
|
}
|
|
@@ -1130,6 +1130,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1130
1130
|
description:
|
|
1131
1131
|
"Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given.",
|
|
1132
1132
|
},
|
|
1133
|
+
{
|
|
1134
|
+
name: "bill_upfront",
|
|
1135
|
+
type: "json",
|
|
1136
|
+
required: false,
|
|
1137
|
+
description:
|
|
1138
|
+
"Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period.",
|
|
1139
|
+
},
|
|
1133
1140
|
{
|
|
1134
1141
|
name: "customize",
|
|
1135
1142
|
type: "json",
|
|
@@ -1623,6 +1630,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1623
1630
|
description:
|
|
1624
1631
|
"Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given.",
|
|
1625
1632
|
},
|
|
1633
|
+
{
|
|
1634
|
+
name: "bill_upfront",
|
|
1635
|
+
type: "json",
|
|
1636
|
+
required: false,
|
|
1637
|
+
description:
|
|
1638
|
+
"Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period.",
|
|
1639
|
+
},
|
|
1626
1640
|
{
|
|
1627
1641
|
name: "customize",
|
|
1628
1642
|
type: "json",
|
|
@@ -2000,6 +2014,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
2000
2014
|
description:
|
|
2001
2015
|
"Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given.",
|
|
2002
2016
|
},
|
|
2017
|
+
{
|
|
2018
|
+
name: "bill_upfront",
|
|
2019
|
+
type: "json",
|
|
2020
|
+
required: false,
|
|
2021
|
+
description:
|
|
2022
|
+
"Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period.",
|
|
2023
|
+
},
|
|
2003
2024
|
{
|
|
2004
2025
|
name: "customize",
|
|
2005
2026
|
type: "json",
|
|
@@ -2174,6 +2195,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
2174
2195
|
description:
|
|
2175
2196
|
"Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given.",
|
|
2176
2197
|
},
|
|
2198
|
+
{
|
|
2199
|
+
name: "bill_upfront",
|
|
2200
|
+
type: "json",
|
|
2201
|
+
required: false,
|
|
2202
|
+
description:
|
|
2203
|
+
"Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period.",
|
|
2204
|
+
},
|
|
2177
2205
|
{
|
|
2178
2206
|
name: "customize",
|
|
2179
2207
|
type: "json",
|
|
@@ -2464,6 +2492,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
2464
2492
|
description:
|
|
2465
2493
|
"Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given.",
|
|
2466
2494
|
},
|
|
2495
|
+
{
|
|
2496
|
+
name: "bill_upfront",
|
|
2497
|
+
type: "json",
|
|
2498
|
+
required: false,
|
|
2499
|
+
description:
|
|
2500
|
+
"Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period.",
|
|
2501
|
+
},
|
|
2467
2502
|
{
|
|
2468
2503
|
name: "customize",
|
|
2469
2504
|
type: "json",
|