atmn 2.0.215 → 2.0.217

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 CHANGED
@@ -5257,6 +5257,9 @@ var LINT_RULES = {
5257
5257
  "plans.billingControls.autoTopups.purchaseLimit": {
5258
5258
  required: ["interval", "limit"],
5259
5259
  fields: {
5260
+ limitType: {
5261
+ enum: ["count", "amount"]
5262
+ },
5260
5263
  interval: {
5261
5264
  enum: ["hour", "day", "week", "month"]
5262
5265
  },
@@ -5264,10 +5267,13 @@ var LINT_RULES = {
5264
5267
  minimum: 1
5265
5268
  },
5266
5269
  limit: {
5267
- minimum: 1
5270
+ exclusiveMinimum: 0
5268
5271
  },
5269
5272
  count: {
5270
5273
  minimum: 0
5274
+ },
5275
+ amount: {
5276
+ minimum: 0
5271
5277
  }
5272
5278
  }
5273
5279
  },
@@ -6249,6 +6255,9 @@ var LINT_RULES = {
6249
6255
  "plans.variants.customize.billingControls.autoTopups.purchaseLimit": {
6250
6256
  required: ["interval", "limit"],
6251
6257
  fields: {
6258
+ limitType: {
6259
+ enum: ["count", "amount"]
6260
+ },
6252
6261
  interval: {
6253
6262
  enum: ["hour", "day", "week", "month"]
6254
6263
  },
@@ -6256,10 +6265,13 @@ var LINT_RULES = {
6256
6265
  minimum: 1
6257
6266
  },
6258
6267
  limit: {
6259
- minimum: 1
6268
+ exclusiveMinimum: 0
6260
6269
  },
6261
6270
  count: {
6262
6271
  minimum: 0
6272
+ },
6273
+ amount: {
6274
+ minimum: 0
6263
6275
  }
6264
6276
  }
6265
6277
  },
@@ -8258,7 +8270,7 @@ var createClient = (options) => ({
8258
8270
  });
8259
8271
 
8260
8272
  // src/version.ts
8261
- var version = "2.0.215";
8273
+ var version = "2.0.217";
8262
8274
 
8263
8275
  // src/http/autumnFetch.ts
8264
8276
  var runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.versions.node}`;
@@ -9620,10 +9632,12 @@ var COLLECTIONS = {
9620
9632
  "billingControls.autoTopups.featureId",
9621
9633
  "billingControls.autoTopups.invoiceMode",
9622
9634
  "billingControls.autoTopups.purchaseLimit",
9635
+ "billingControls.autoTopups.purchaseLimit.amount",
9623
9636
  "billingControls.autoTopups.purchaseLimit.count",
9624
9637
  "billingControls.autoTopups.purchaseLimit.interval",
9625
9638
  "billingControls.autoTopups.purchaseLimit.intervalCount",
9626
9639
  "billingControls.autoTopups.purchaseLimit.limit",
9640
+ "billingControls.autoTopups.purchaseLimit.limitType",
9627
9641
  "billingControls.autoTopups.quantity",
9628
9642
  "billingControls.autoTopups.threshold",
9629
9643
  "billingControls.overageAllowed",
@@ -9935,10 +9949,12 @@ var COLLECTIONS = {
9935
9949
  "variants.customize.billingControls.autoTopups.featureId",
9936
9950
  "variants.customize.billingControls.autoTopups.invoiceMode",
9937
9951
  "variants.customize.billingControls.autoTopups.purchaseLimit",
9952
+ "variants.customize.billingControls.autoTopups.purchaseLimit.amount",
9938
9953
  "variants.customize.billingControls.autoTopups.purchaseLimit.count",
9939
9954
  "variants.customize.billingControls.autoTopups.purchaseLimit.interval",
9940
9955
  "variants.customize.billingControls.autoTopups.purchaseLimit.intervalCount",
9941
9956
  "variants.customize.billingControls.autoTopups.purchaseLimit.limit",
9957
+ "variants.customize.billingControls.autoTopups.purchaseLimit.limitType",
9942
9958
  "variants.customize.billingControls.autoTopups.quantity",
9943
9959
  "variants.customize.billingControls.autoTopups.threshold",
9944
9960
  "variants.customize.billingControls.overageAllowed",
@@ -10631,16 +10647,16 @@ import { dirname as dirname4, join as join7 } from "node:path";
10631
10647
  import chalk3 from "chalk";
10632
10648
 
10633
10649
  // src/generated/skills.ts
10634
- var SKILLS_VERSION = "2.0.214";
10650
+ var SKILLS_VERSION = "2.0.216";
10635
10651
  var SKILLS = [
10636
10652
  {
10637
10653
  name: "autumn-setup",
10638
10654
  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.",
10639
- version: "2.0.214",
10655
+ version: "2.0.216",
10640
10656
  markdown: `---
10641
10657
  name: autumn-setup
10642
10658
  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.
10643
- version: 2.0.214
10659
+ version: 2.0.216
10644
10660
  ---
10645
10661
 
10646
10662
  # Setup
@@ -10798,11 +10814,11 @@ Then stop. Don't keep building, don't tour the dashboard, don't deploy anything.
10798
10814
  {
10799
10815
  name: "autumn-catalog",
10800
10816
  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.",
10801
- version: "2.0.214",
10817
+ version: "2.0.216",
10802
10818
  markdown: `---
10803
10819
  name: autumn-catalog
10804
10820
  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.
10805
- version: 2.0.214
10821
+ version: 2.0.216
10806
10822
  ---
10807
10823
 
10808
10824
  # Catalog
@@ -14669,11 +14685,11 @@ Pitch: "Pro $20/mo or $200/yr — 1,000 messages per month either way."
14669
14685
  {
14670
14686
  name: "autumn-integrate",
14671
14687
  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.",
14672
- version: "2.0.214",
14688
+ version: "2.0.216",
14673
14689
  markdown: `---
14674
14690
  name: autumn-integrate
14675
14691
  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.
14676
- version: 2.0.214
14692
+ version: 2.0.216
14677
14693
  ---
14678
14694
 
14679
14695
  # Integrate
@@ -19390,11 +19406,11 @@ Monitor your logs for this message. If you see it, check [status.useautumn.com](
19390
19406
  {
19391
19407
  name: "autumn-concepts",
19392
19408
  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.",
19393
- version: "2.0.214",
19409
+ version: "2.0.216",
19394
19410
  markdown: `---
19395
19411
  name: autumn-concepts
19396
19412
  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.
19397
- version: 2.0.214
19413
+ version: 2.0.216
19398
19414
  ---
19399
19415
 
19400
19416
  # Concepts
package/dist/index.js CHANGED
@@ -319,6 +319,9 @@ var LINT_RULES = {
319
319
  "plans.billingControls.autoTopups.purchaseLimit": {
320
320
  required: ["interval", "limit"],
321
321
  fields: {
322
+ limitType: {
323
+ enum: ["count", "amount"]
324
+ },
322
325
  interval: {
323
326
  enum: ["hour", "day", "week", "month"]
324
327
  },
@@ -326,10 +329,13 @@ var LINT_RULES = {
326
329
  minimum: 1
327
330
  },
328
331
  limit: {
329
- minimum: 1
332
+ exclusiveMinimum: 0
330
333
  },
331
334
  count: {
332
335
  minimum: 0
336
+ },
337
+ amount: {
338
+ minimum: 0
333
339
  }
334
340
  }
335
341
  },
@@ -1311,6 +1317,9 @@ var LINT_RULES = {
1311
1317
  "plans.variants.customize.billingControls.autoTopups.purchaseLimit": {
1312
1318
  required: ["interval", "limit"],
1313
1319
  fields: {
1320
+ limitType: {
1321
+ enum: ["count", "amount"]
1322
+ },
1314
1323
  interval: {
1315
1324
  enum: ["hour", "day", "week", "month"]
1316
1325
  },
@@ -1318,10 +1327,13 @@ var LINT_RULES = {
1318
1327
  minimum: 1
1319
1328
  },
1320
1329
  limit: {
1321
- minimum: 1
1330
+ exclusiveMinimum: 0
1322
1331
  },
1323
1332
  count: {
1324
1333
  minimum: 0
1334
+ },
1335
+ amount: {
1336
+ minimum: 0
1325
1337
  }
1326
1338
  }
1327
1339
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atmn",
3
- "version": "2.0.215",
3
+ "version": "2.0.217",
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": {
@@ -51,5 +51,5 @@
51
51
  "open": "10.2.0",
52
52
  "yaml": "2.9.0"
53
53
  },
54
- "gitHead": "77eabe7ea9bc5674ebec945c520a22db257c8de8"
54
+ "gitHead": "bcfcf5870f6a75897456cd0fc6f38637704e5fd1"
55
55
  }