{"manifest":{"id":"autumn","name":"Autumn","description":"Stateful Autumn billing emulator: customers (with seedable subscriptions), usage tracking, and list endpoints for plans, features, and events.","docsUrl":"https://docs.emulators.dev/autumn","surfaces":[{"id":"rest","kind":"rest","title":"Autumn v1 API","status":"partial","basePath":"/v1"}],"auth":[{"id":"api-key","title":"Autumn secret key","type":"api-key","status":"supported"}],"specs":[{"kind":"openapi","title":"Autumn v1 subset","coverage":"hand-authored","url":"/openapi.json","operations":[{"operationId":"customers.get_or_create","method":"POST","path":"/v1/customers.get_or_create","status":"hand-authored"},{"operationId":"customers.list","method":"POST","path":"/v1/customers.list","status":"hand-authored"},{"operationId":"customers.update","method":"POST","path":"/v1/customers.update","status":"hand-authored"},{"operationId":"balances.track","method":"POST","path":"/v1/balances.track","status":"hand-authored"},{"operationId":"plans.list","method":"POST","path":"/v1/plans.list","status":"hand-authored"},{"operationId":"features.list","method":"POST","path":"/v1/features.list","status":"hand-authored"},{"operationId":"events.list","method":"POST","path":"/v1/events.list","status":"hand-authored"}]}],"seedSchema":{"description":"Seed customers with subscriptions (e.g. a paid plan).","fields":[{"key":"customers","title":"Customers","description":"Customers keyed by id, each with optional subscriptions.","example":[{"id":"org_123","subscriptions":[{"plan_id":"pro","status":"active"}]}]}],"example":{"customers":[{"id":"org_123","subscriptions":[{"plan_id":"pro","status":"active"}]}]}},"stateModel":{"description":"Entities mutated by Autumn provider calls.","collections":[{"name":"autumn.customers"},{"name":"autumn.events"}]},"connections":[{"id":"autumn-js","title":"autumn-js SDK","kind":"sdk","language":"typescript","description":"Point autumn-js at the emulator via serverURL.","template":"import { Autumn } from \"autumn-js\";\n\nconst autumn = new Autumn({ secretKey: \"{{token}}\", serverURL: \"{{baseUrl}}\" });"},{"id":"base-url","title":"Base URL (env)","kind":"env","language":"bash","description":"Point your SDK or app at the emulator instead of the real provider.","template":"{{SERVICE_UPPER}}_BASE_URL={{baseUrl}}"},{"id":"create-credential","title":"Create a credential","kind":"curl","language":"bash","description":"Mint a working credential for this instance.","template":"curl -s -X POST {{controlBaseUrl}}/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"{{defaultAuthType}}\"}'"},{"id":"inspect-ledger","title":"Inspect requests","kind":"curl","language":"bash","description":"Read the request ledger to validate how your app called the service.","template":"curl -s {{controlBaseUrl}}/ledger"}],"resetBehavior":{"description":"Resets the instance to its seeded baseline.","reseeds":true,"clearsLedger":true,"clearsWebhooks":true},"ledger":{"description":"Recent provider requests with sensitive headers and fields redacted.","recordsFields":["timestamp","method","host","path","route","operationId","correlationId","identity","request","response","summary","sideEffects","webhookDeliveries","durationMs"],"redactsSensitive":true,"correlationId":true,"webhookDeliveries":true,"sideEffects":true,"persistent":true,"maxEntries":1000},"inspectorTabs":[{"id":"overview","title":"Overview","kind":"landing","description":"Service surfaces, base URLs, and connection snippets."},{"id":"ledger","title":"Ledger","kind":"ledger","description":"Recent provider requests recorded by the emulator."},{"id":"state","title":"State","kind":"state","description":"Current seeded and mutated instance state."},{"id":"credentials","title":"Credentials","kind":"credentials","description":"Mint tokens, API keys, or OAuth clients."},{"id":"seed","title":"Seed","kind":"seed","description":"Seed state or load a scenario."},{"id":"spec","title":"Spec","kind":"spec","description":"OpenAPI / GraphQL spec sources and coverage."}]},"instance":{"service":"autumn","instance":"default","baseUrl":"https://autumn.emulators.dev","providerBaseUrl":"https://autumn.emulators.dev","controlBaseUrl":"https://autumn.emulators.dev/_emulate"},"connections":[{"id":"autumn-js","title":"autumn-js SDK","kind":"sdk","language":"typescript","description":"Point autumn-js at the emulator via serverURL.","template":"import { Autumn } from \"autumn-js\";\n\nconst autumn = new Autumn({ secretKey: \"{{token}}\", serverURL: \"{{baseUrl}}\" });","body":"import { Autumn } from \"autumn-js\";\n\nconst autumn = new Autumn({ secretKey: \"<token>\", serverURL: \"https://autumn.emulators.dev\" });"},{"id":"base-url","title":"Base URL (env)","kind":"env","language":"bash","description":"Point your SDK or app at the emulator instead of the real provider.","template":"{{SERVICE_UPPER}}_BASE_URL={{baseUrl}}","body":"AUTUMN_BASE_URL=https://autumn.emulators.dev"},{"id":"create-credential","title":"Create a credential","kind":"curl","language":"bash","description":"Mint a working credential for this instance.","template":"curl -s -X POST {{controlBaseUrl}}/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"{{defaultAuthType}}\"}'","body":"curl -s -X POST https://autumn.emulators.dev/_emulate/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"api-key\"}'"},{"id":"inspect-ledger","title":"Inspect requests","kind":"curl","language":"bash","description":"Read the request ledger to validate how your app called the service.","template":"curl -s {{controlBaseUrl}}/ledger","body":"curl -s https://autumn.emulators.dev/_emulate/ledger"}]}