atmn 2.0.265 → 2.0.266
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 +43 -10
- package/package.json +2 -2
- package/src/generated/apiRoutes.ts +35 -0
- package/src/generated/client.ts +1458 -6
- package/src/generated/skills.ts +9 -9
package/dist/bin.js
CHANGED
|
@@ -4577,6 +4577,39 @@ var API_ROUTES = [
|
|
|
4577
4577
|
}
|
|
4578
4578
|
]
|
|
4579
4579
|
},
|
|
4580
|
+
{
|
|
4581
|
+
group: "auth",
|
|
4582
|
+
method: "exchange_token",
|
|
4583
|
+
path: "/v1/auth.exchange_token",
|
|
4584
|
+
description: "Exchanges a workload's platform OIDC token (GitHub Actions, GCP, AWS, Azure, GitLab, Vercel, Kubernetes or your own issuer) for a short-lived `am_wit_` access token, following RFC 8693. The token must match a trust rule in your organization; the access token carries that rule's scopes. Send it as a form body or JSON; no secret key is needed.",
|
|
4585
|
+
body: "object",
|
|
4586
|
+
fields: [
|
|
4587
|
+
{
|
|
4588
|
+
name: "grant_type",
|
|
4589
|
+
type: "json",
|
|
4590
|
+
required: true,
|
|
4591
|
+
description: "Always the RFC 8693 token exchange grant."
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
name: "subject_token",
|
|
4595
|
+
type: "string",
|
|
4596
|
+
required: true,
|
|
4597
|
+
description: "The OIDC token your platform issued to this workload."
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
name: "subject_token_type",
|
|
4601
|
+
type: "string",
|
|
4602
|
+
required: true,
|
|
4603
|
+
description: "The subject token is a JWT."
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
name: "audience",
|
|
4607
|
+
type: "string",
|
|
4608
|
+
required: false,
|
|
4609
|
+
description: "Your Autumn workload audience (https://api.useautumn.com/workload/<org_id>/<sandbox|live>). Required when the subject token's aud is your own application, as with Azure managed identities."
|
|
4610
|
+
}
|
|
4611
|
+
]
|
|
4612
|
+
},
|
|
4580
4613
|
{
|
|
4581
4614
|
group: "sandboxes",
|
|
4582
4615
|
method: "create",
|
|
@@ -8271,7 +8304,7 @@ var createClient = (options) => ({
|
|
|
8271
8304
|
});
|
|
8272
8305
|
|
|
8273
8306
|
// src/version.ts
|
|
8274
|
-
var version = "2.0.
|
|
8307
|
+
var version = "2.0.266";
|
|
8275
8308
|
|
|
8276
8309
|
// src/http/autumnFetch.ts
|
|
8277
8310
|
var runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.versions.node}`;
|
|
@@ -10648,16 +10681,16 @@ import { dirname as dirname4, join as join7 } from "node:path";
|
|
|
10648
10681
|
import chalk3 from "chalk";
|
|
10649
10682
|
|
|
10650
10683
|
// src/generated/skills.ts
|
|
10651
|
-
var SKILLS_VERSION = "2.0.
|
|
10684
|
+
var SKILLS_VERSION = "2.0.265";
|
|
10652
10685
|
var SKILLS = [
|
|
10653
10686
|
{
|
|
10654
10687
|
name: "autumn-setup",
|
|
10655
10688
|
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.",
|
|
10656
|
-
version: "2.0.
|
|
10689
|
+
version: "2.0.265",
|
|
10657
10690
|
markdown: `---
|
|
10658
10691
|
name: autumn-setup
|
|
10659
10692
|
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.
|
|
10660
|
-
version: 2.0.
|
|
10693
|
+
version: 2.0.265
|
|
10661
10694
|
---
|
|
10662
10695
|
|
|
10663
10696
|
# Setup
|
|
@@ -10815,11 +10848,11 @@ Then stop. Don't keep building, don't tour the dashboard, don't deploy anything.
|
|
|
10815
10848
|
{
|
|
10816
10849
|
name: "autumn-catalog",
|
|
10817
10850
|
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.",
|
|
10818
|
-
version: "2.0.
|
|
10851
|
+
version: "2.0.265",
|
|
10819
10852
|
markdown: `---
|
|
10820
10853
|
name: autumn-catalog
|
|
10821
10854
|
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.
|
|
10822
|
-
version: 2.0.
|
|
10855
|
+
version: 2.0.265
|
|
10823
10856
|
---
|
|
10824
10857
|
|
|
10825
10858
|
# Catalog
|
|
@@ -14706,11 +14739,11 @@ Pitch: "Pro $20/mo or $200/yr — 1,000 messages per month either way."
|
|
|
14706
14739
|
{
|
|
14707
14740
|
name: "autumn-integrate",
|
|
14708
14741
|
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.",
|
|
14709
|
-
version: "2.0.
|
|
14742
|
+
version: "2.0.265",
|
|
14710
14743
|
markdown: `---
|
|
14711
14744
|
name: autumn-integrate
|
|
14712
14745
|
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.
|
|
14713
|
-
version: 2.0.
|
|
14746
|
+
version: 2.0.265
|
|
14714
14747
|
---
|
|
14715
14748
|
|
|
14716
14749
|
# Integrate
|
|
@@ -19429,11 +19462,11 @@ Monitor your logs for this message. If you see it, check [status.useautumn.com](
|
|
|
19429
19462
|
{
|
|
19430
19463
|
name: "autumn-concepts",
|
|
19431
19464
|
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.",
|
|
19432
|
-
version: "2.0.
|
|
19465
|
+
version: "2.0.265",
|
|
19433
19466
|
markdown: `---
|
|
19434
19467
|
name: autumn-concepts
|
|
19435
19468
|
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.
|
|
19436
|
-
version: 2.0.
|
|
19469
|
+
version: 2.0.265
|
|
19437
19470
|
---
|
|
19438
19471
|
|
|
19439
19472
|
# Concepts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atmn",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.266",
|
|
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": "
|
|
54
|
+
"gitHead": "f305a7ea3a539cdcbad1fe3370b1be50a9bf17e7"
|
|
55
55
|
}
|
|
@@ -4933,6 +4933,41 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
4933
4933
|
},
|
|
4934
4934
|
],
|
|
4935
4935
|
},
|
|
4936
|
+
{
|
|
4937
|
+
group: "auth",
|
|
4938
|
+
method: "exchange_token",
|
|
4939
|
+
path: "/v1/auth.exchange_token",
|
|
4940
|
+
description:
|
|
4941
|
+
"Exchanges a workload's platform OIDC token (GitHub Actions, GCP, AWS, Azure, GitLab, Vercel, Kubernetes or your own issuer) for a short-lived `am_wit_` access token, following RFC 8693. The token must match a trust rule in your organization; the access token carries that rule's scopes. Send it as a form body or JSON; no secret key is needed.",
|
|
4942
|
+
body: "object",
|
|
4943
|
+
fields: [
|
|
4944
|
+
{
|
|
4945
|
+
name: "grant_type",
|
|
4946
|
+
type: "json",
|
|
4947
|
+
required: true,
|
|
4948
|
+
description: "Always the RFC 8693 token exchange grant.",
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
name: "subject_token",
|
|
4952
|
+
type: "string",
|
|
4953
|
+
required: true,
|
|
4954
|
+
description: "The OIDC token your platform issued to this workload.",
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
name: "subject_token_type",
|
|
4958
|
+
type: "string",
|
|
4959
|
+
required: true,
|
|
4960
|
+
description: "The subject token is a JWT.",
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
name: "audience",
|
|
4964
|
+
type: "string",
|
|
4965
|
+
required: false,
|
|
4966
|
+
description:
|
|
4967
|
+
"Your Autumn workload audience (https://api.useautumn.com/workload/<org_id>/<sandbox|live>). Required when the subject token's aud is your own application, as with Azure managed identities.",
|
|
4968
|
+
},
|
|
4969
|
+
],
|
|
4970
|
+
},
|
|
4936
4971
|
{
|
|
4937
4972
|
group: "sandboxes",
|
|
4938
4973
|
method: "create",
|