noxctl 0.2.0 → 0.4.0

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.
Files changed (116) hide show
  1. package/README.md +149 -6
  2. package/dist/auth.d.ts +7 -3
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +24 -7
  5. package/dist/auth.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1118 -95
  8. package/dist/cli.js.map +1 -1
  9. package/dist/completions.d.ts +13 -0
  10. package/dist/completions.d.ts.map +1 -0
  11. package/dist/completions.js +150 -0
  12. package/dist/completions.js.map +1 -0
  13. package/dist/credentials-store.d.ts.map +1 -1
  14. package/dist/credentials-store.js +45 -16
  15. package/dist/credentials-store.js.map +1 -1
  16. package/dist/date-periods.d.ts +14 -0
  17. package/dist/date-periods.d.ts.map +1 -0
  18. package/dist/date-periods.js +103 -0
  19. package/dist/date-periods.js.map +1 -0
  20. package/dist/formatter.d.ts +11 -2
  21. package/dist/formatter.d.ts.map +1 -1
  22. package/dist/formatter.js +27 -4
  23. package/dist/formatter.js.map +1 -1
  24. package/dist/fortnox-client.d.ts +1 -0
  25. package/dist/fortnox-client.d.ts.map +1 -1
  26. package/dist/fortnox-client.js +26 -3
  27. package/dist/fortnox-client.js.map +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +17 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/keychain-target.d.ts +32 -0
  32. package/dist/keychain-target.d.ts.map +1 -0
  33. package/dist/keychain-target.js +349 -0
  34. package/dist/keychain-target.js.map +1 -0
  35. package/dist/operations/absencetransactions.d.ts +21 -0
  36. package/dist/operations/absencetransactions.d.ts.map +1 -0
  37. package/dist/operations/absencetransactions.js +36 -0
  38. package/dist/operations/absencetransactions.js.map +1 -0
  39. package/dist/operations/analytics.d.ts +84 -0
  40. package/dist/operations/analytics.d.ts.map +1 -0
  41. package/dist/operations/analytics.js +154 -0
  42. package/dist/operations/analytics.js.map +1 -0
  43. package/dist/operations/attendancetransactions.d.ts +21 -0
  44. package/dist/operations/attendancetransactions.d.ts.map +1 -0
  45. package/dist/operations/attendancetransactions.js +40 -0
  46. package/dist/operations/attendancetransactions.js.map +1 -0
  47. package/dist/operations/contracts.d.ts +23 -0
  48. package/dist/operations/contracts.d.ts.map +1 -0
  49. package/dist/operations/contracts.js +52 -0
  50. package/dist/operations/contracts.js.map +1 -0
  51. package/dist/operations/customers.d.ts.map +1 -1
  52. package/dist/operations/customers.js +12 -2
  53. package/dist/operations/customers.js.map +1 -1
  54. package/dist/operations/employees.d.ts +19 -0
  55. package/dist/operations/employees.d.ts.map +1 -0
  56. package/dist/operations/employees.js +34 -0
  57. package/dist/operations/employees.js.map +1 -0
  58. package/dist/operations/financial-years.d.ts +16 -0
  59. package/dist/operations/financial-years.d.ts.map +1 -0
  60. package/dist/operations/financial-years.js +32 -0
  61. package/dist/operations/financial-years.js.map +1 -0
  62. package/dist/operations/salarytransactions.d.ts +21 -0
  63. package/dist/operations/salarytransactions.d.ts.map +1 -0
  64. package/dist/operations/salarytransactions.js +35 -0
  65. package/dist/operations/salarytransactions.js.map +1 -0
  66. package/dist/operations/scheduletimes.d.ts +4 -0
  67. package/dist/operations/scheduletimes.d.ts.map +1 -0
  68. package/dist/operations/scheduletimes.js +24 -0
  69. package/dist/operations/scheduletimes.js.map +1 -0
  70. package/dist/operations/vouchers.d.ts +15 -0
  71. package/dist/operations/vouchers.d.ts.map +1 -1
  72. package/dist/operations/vouchers.js +97 -0
  73. package/dist/operations/vouchers.js.map +1 -1
  74. package/dist/tools/absencetransactions.d.ts +3 -0
  75. package/dist/tools/absencetransactions.d.ts.map +1 -0
  76. package/dist/tools/absencetransactions.js +66 -0
  77. package/dist/tools/absencetransactions.js.map +1 -0
  78. package/dist/tools/analytics.d.ts +3 -0
  79. package/dist/tools/analytics.d.ts.map +1 -0
  80. package/dist/tools/analytics.js +52 -0
  81. package/dist/tools/analytics.js.map +1 -0
  82. package/dist/tools/attendancetransactions.d.ts +3 -0
  83. package/dist/tools/attendancetransactions.d.ts.map +1 -0
  84. package/dist/tools/attendancetransactions.js +63 -0
  85. package/dist/tools/attendancetransactions.js.map +1 -0
  86. package/dist/tools/bookkeeping.d.ts.map +1 -1
  87. package/dist/tools/bookkeeping.js +38 -2
  88. package/dist/tools/bookkeeping.js.map +1 -1
  89. package/dist/tools/contracts.d.ts +3 -0
  90. package/dist/tools/contracts.d.ts.map +1 -0
  91. package/dist/tools/contracts.js +136 -0
  92. package/dist/tools/contracts.js.map +1 -0
  93. package/dist/tools/employees.d.ts +3 -0
  94. package/dist/tools/employees.d.ts.map +1 -0
  95. package/dist/tools/employees.js +107 -0
  96. package/dist/tools/employees.js.map +1 -0
  97. package/dist/tools/financial-years.d.ts +3 -0
  98. package/dist/tools/financial-years.d.ts.map +1 -0
  99. package/dist/tools/financial-years.js +33 -0
  100. package/dist/tools/financial-years.js.map +1 -0
  101. package/dist/tools/salarytransactions.d.ts +3 -0
  102. package/dist/tools/salarytransactions.d.ts.map +1 -0
  103. package/dist/tools/salarytransactions.js +70 -0
  104. package/dist/tools/salarytransactions.js.map +1 -0
  105. package/dist/tools/scheduletimes.d.ts +3 -0
  106. package/dist/tools/scheduletimes.d.ts.map +1 -0
  107. package/dist/tools/scheduletimes.js +62 -0
  108. package/dist/tools/scheduletimes.js.map +1 -0
  109. package/dist/tools/status.d.ts.map +1 -1
  110. package/dist/tools/status.js +10 -3
  111. package/dist/tools/status.js.map +1 -1
  112. package/dist/views.d.ts +17 -0
  113. package/dist/views.d.ts.map +1 -1
  114. package/dist/views.js +154 -0
  115. package/dist/views.js.map +1 -1
  116. package/package.json +2 -1
package/README.md CHANGED
@@ -12,9 +12,9 @@ noxctl -o json invoices list | jq . # JSON output for scripting/AI
12
12
 
13
13
  ## Status
14
14
 
15
- noxctl is an independent open-source project. It is not affiliated with, endorsed by, or certified by Fortnox AB.
15
+ noxctl is an independent, **unofficial** open-source project. It is **not affiliated with, endorsed by, or certified by Fortnox AB.**
16
16
 
17
- Use it with your own Fortnox account and developer credentials. You are responsible for complying with Fortnox terms, Swedish bookkeeping/tax rules, and your own privacy obligations.
17
+ Use it with your own Fortnox account and developer credentials. **It is provided "as is", with no warranty and no liability — the author takes no responsibility for anything you do with it; you use it entirely at your own risk and are responsible for complying with Fortnox terms, Swedish bookkeeping/tax/payroll rules, and your own privacy obligations.** See the full [Disclaimer](#disclaimer).
18
18
 
19
19
  ## Prerequisites
20
20
 
@@ -27,6 +27,16 @@ Fortnox product plans, API activation requirements, and integration licensing ca
27
27
 
28
28
  ## Setup
29
29
 
30
+ ### How it connects to Fortnox
31
+
32
+ noxctl is a thin client over the **Fortnox REST API (v3)** at `https://api.fortnox.se/3`. It uses a **bring-your-own-app** model — there is no shared backend and no middleman:
33
+
34
+ 1. **You** create a Fortnox developer app (integration) and pick its permissions (scopes).
35
+ 2. **You** authorize that app against your own Fortnox company over OAuth2 (`noxctl init`).
36
+ 3. noxctl stores the resulting token in your OS keychain and calls the Fortnox API **directly from your machine** — nothing is proxied through any server operated by the author.
37
+
38
+ So you control the credentials, the scopes, and which company is connected end to end. The three steps below set this up.
39
+
30
40
  ### 1. Create a Fortnox app
31
41
 
32
42
  > **Tip:** Run `npx noxctl init` (npx is a tool included with npm, the Node Package Manager) for an interactive setup wizard that guides you through all of these steps.
@@ -52,9 +62,12 @@ Fortnox product plans, API activation requirements, and integration licensing ca
52
62
  | Projekt | Project | Projects |
53
63
  | Kostnadsställe | Cost Center | Cost centers |
54
64
  | Priser | Price | Price lists, prices |
65
+ | Lön | Salary | Payroll: employees, salary/attendance/absence transactions, schedule times — **opt-in**, see below |
55
66
 
56
67
  Enable every scope for the resources you intend to use. Missing scopes surface as `403 Forbidden` with a hint pointing at the right one.
57
68
 
69
+ **Payroll (Lön) is opt-in.** The `salary` scope is *not* requested by default, because requesting a scope your app hasn't been granted breaks authorization. To use the payroll commands, enable the **Lön** permission above, then authorize with `noxctl init --with-salary` (or set `FORTNOX_WITH_SALARY=1` for non-interactive setups). The granted scope set is remembered per profile, so token refreshes keep working.
70
+
58
71
  5. Save the integration
59
72
 
60
73
  You are creating and authorizing your own Fortnox app here. noxctl does not ship shared Fortnox credentials and does not bypass Fortnox's authorization model.
@@ -155,6 +168,59 @@ Non-default sessions print a `[profile: <name>]` stderr banner on startup and pr
155
168
 
156
169
  If the active pointer becomes unreadable or corrupt and no explicit `--profile` flag or `NOXCTL_PROFILE` is set, `noxctl serve` **refuses to start** rather than silently falling back to `default`. This prevents a corrupted pointer from routing production MCP sessions to the wrong tenant. The CLI's `doctor` and `profile use` commands are exempt — they can still run against a broken pointer so you can repair it.
157
170
 
171
+ ## YubiKey-locked keychain (macOS)
172
+
173
+ By default, credentials live in your macOS **login keychain**, which unlocks automatically when you log in. That's convenient, but it means an AI agent (or anything running as you) can read the tokens without a per-session gesture from you.
174
+
175
+ The optional **dedicated keychain** moves credentials into a separate, lock-on-sleep keychain whose password is derived from your YubiKey via HMAC-SHA1 challenge-response. You unlock it once per session with a single tap; it re-locks when your Mac sleeps. The keychain password is never typed or stored — it only exists on the YubiKey.
176
+
177
+ This is opt-in and macOS-only. It does not change how credentials are stored on Linux or Windows.
178
+
179
+ ### One-time YubiKey setup
180
+
181
+ Program OTP slot 2 for challenge-response (requires touch). **This writes only the empty OTP slot 2** — FIDO2, PIV, OATH, OpenPGP, and slot 1 are untouched, and it is reversible with `ykman otp delete 2`.
182
+
183
+ ```bash
184
+ brew install ykman # if not already installed
185
+ ykman otp chalresp --generate --touch 2 # program slot 2
186
+ ```
187
+
188
+ ### Enable it
189
+
190
+ ```bash
191
+ noxctl keychain init # generate challenge, tap to derive the password,
192
+ # create the locked keychain, copy existing creds in
193
+ ```
194
+
195
+ `init` uses **copy-and-keep**: your existing login-keychain credentials are copied into the new keychain but left in place as a rollback. Once you've confirmed the new flow works, remove the originals:
196
+
197
+ ```bash
198
+ noxctl keychain seal # delete the login-keychain copies (irreversible)
199
+ ```
200
+
201
+ Until you `seal`, the login copies remain readable without a tap — so the per-session protection isn't fully in effect.
202
+
203
+ ### Daily use
204
+
205
+ ```bash
206
+ noxctl keychain unlock # tap your YubiKey — open until the Mac next sleeps
207
+ noxctl keychain status # mode, lock state, ykman/YubiKey presence
208
+ noxctl keychain lock # lock immediately
209
+ ```
210
+
211
+ When the keychain is locked, any command that needs credentials fails fast with a message telling you to run `noxctl keychain unlock` — it never pops a macOS password dialog (the challenge-response password can't be typed into one).
212
+
213
+ ### Recovery if you lose the YubiKey
214
+
215
+ The keychain password lives only on the key, so a lost or re-programmed key means the dedicated keychain can't be unlocked. As long as you have **not** run `seal`, your credentials are still in the login keychain — delete the dedicated keychain and challenge file to fall back:
216
+
217
+ ```bash
218
+ security delete-keychain ~/Library/Keychains/fortnox-mcp.keychain-db
219
+ rm ~/.fortnox-mcp/keychain-challenge
220
+ ```
221
+
222
+ If you *have* sealed, re-run `noxctl init` to re-authenticate from scratch.
223
+
158
224
  ## Tools
159
225
 
160
226
  Every operation is available both as a CLI command and as an MCP tool. The CLI is the primary interface; the MCP server exposes the same operations to AI agents. All mutations — every row labeled `(mutation)` — prompt for confirmation on a TTY and require `--yes` (CLI) or `confirm: true` (MCP) when piped. See [Mutation safety](#mutation-safety).
@@ -254,6 +320,7 @@ Every operation is available both as a CLI command and as an MCP tool. The CLI i
254
320
  | `noxctl vouchers list [--series <s>] [--from <date>] [--to <date>]` | `fortnox_list_vouchers` | List vouchers, optionally filtered by series and date range |
255
321
  | `noxctl vouchers get <series> <number>` | `fortnox_get_voucher` | Get a single voucher with rows |
256
322
  | `noxctl vouchers create --input <file>` | `fortnox_create_voucher` | Create a voucher with debit/credit rows (mutation) |
323
+ | `noxctl vouchers attach <series> <number> <file...> [--year]` | `fortnox_attach_voucher_files` | Upload receipt/underlag files and link them to a voucher (mutation; needs the Fortnox archive scope) |
257
324
  | `noxctl accounts list [--search <term>]` | `fortnox_list_accounts` | View chart of accounts, search by name or number |
258
325
 
259
326
  ### Financial reports
@@ -308,6 +375,62 @@ Every operation is available both as a CLI command and as an MCP tool. The CLI i
308
375
  | `noxctl prices get --pricelist <code> --article <number>` | `fortnox_get_price` | Get a specific price |
309
376
  | `noxctl prices update --pricelist <code> --article <number> --input <file>` | `fortnox_update_price` | Update a price (mutation) |
310
377
 
378
+ ### Contracts (avtal — recurring invoicing)
379
+
380
+ | CLI | MCP tool | Description |
381
+ |-----|----------|-------------|
382
+ | `noxctl contracts list [--filter active\|inactive\|finished]` | `fortnox_list_contracts` | List/filter contracts |
383
+ | `noxctl contracts get <number>` | `fortnox_get_contract` | Get a single contract |
384
+ | `noxctl contracts create --customer <number> --input <file>` | `fortnox_create_contract` | Create a contract (mutation) |
385
+ | `noxctl contracts update <number> --input <file>` | `fortnox_update_contract` | Update a contract (mutation) |
386
+ | `noxctl contracts finish <number>` | `fortnox_finish_contract` | Finish a contract (mutation) |
387
+ | `noxctl contracts create-invoice <number>` | `fortnox_create_invoice_from_contract` | Create the next invoice now (mutation) |
388
+ | `noxctl contracts increase-invoice-count <number>` | `fortnox_increase_contract_invoice_count` | Extend by one invoice (mutation) |
389
+
390
+ ### Financial years and locked period
391
+
392
+ | CLI | MCP tool | Description |
393
+ |-----|----------|-------------|
394
+ | `noxctl financial-years list [--date <date>]` | `fortnox_list_financialyears` | List financial years (räkenskapsår) |
395
+ | `noxctl financial-years get <id>` | `fortnox_get_financialyear` | Get a single financial year |
396
+ | `noxctl financial-years locked-period` | `fortnox_get_lockedperiod` | Show through which date bookkeeping is locked |
397
+
398
+ ### Payroll (Lön)
399
+
400
+ > **Requires the `salary` scope**, which is **opt-in**. Enable the **Lön** permission on your Fortnox app, then run `noxctl init --with-salary` (or set `FORTNOX_WITH_SALARY=1` in non-interactive setups). Without it, these endpoints return `403 Forbidden`. See [Setup](#1-create-a-fortnox-app).
401
+
402
+ | CLI | MCP tool | Description |
403
+ |-----|----------|-------------|
404
+ | `noxctl employees list` | `fortnox_list_employees` | List employees |
405
+ | `noxctl employees get <employeeId>` | `fortnox_get_employee` | Get a single employee |
406
+ | `noxctl employees create --first-name <n> --last-name <n> --email <e> [--employment-form <f> --personel-type <t> --salary-form <f>]` | `fortnox_create_employee` | Create an employee (mutation). `--employment-form`/`--personel-type`/`--salary-form` are required *unless* the company has a default employment agreement — otherwise Fortnox rejects with a `ftgavtalid` error |
407
+ | `noxctl employees update <employeeId> --input <file>` | `fortnox_update_employee` | Update an employee (mutation) |
408
+ | `noxctl salary-transactions list [--employee <id>] [--date <date>]` | `fortnox_list_salarytransactions` | List salary transactions |
409
+ | `noxctl salary-transactions get <salaryRow>` | `fortnox_get_salarytransaction` | Get a single salary transaction |
410
+ | `noxctl salary-transactions create --employee <id> --salary-code <code> --date <date> [--amount <n>]` | `fortnox_create_salarytransaction` | Create a salary transaction (mutation) |
411
+ | `noxctl salary-transactions delete <salaryRow>` | `fortnox_delete_salarytransaction` | Delete a salary transaction (mutation) |
412
+ | `noxctl attendance-transactions list [--employee <id>] [--date <date>]` | `fortnox_list_attendancetransactions` | List attendance (närvaro) transactions |
413
+ | `noxctl attendance-transactions get <id>` | `fortnox_get_attendancetransaction` | Get a single attendance transaction |
414
+ | `noxctl attendance-transactions create --employee <id> --cause-code <code> --date <date> [--hours <n>]` | `fortnox_create_attendancetransaction` | Create an attendance transaction (mutation) |
415
+ | `noxctl attendance-transactions delete <id>` | `fortnox_delete_attendancetransaction` | Delete an attendance transaction (mutation) |
416
+ | `noxctl absence-transactions list [--employee <id>] [--date <date>]` | `fortnox_list_absencetransactions` | List absence (frånvaro) transactions |
417
+ | `noxctl absence-transactions get <id>` | `fortnox_get_absencetransaction` | Get a single absence transaction |
418
+ | `noxctl absence-transactions create --employee <id> --cause-code <code> --date <date> [--hours <n>] [--extent <n>]` | `fortnox_create_absencetransaction` | Create an absence transaction (mutation) |
419
+ | `noxctl absence-transactions delete <id>` | `fortnox_delete_absencetransaction` | Delete an absence transaction (mutation) |
420
+ | `noxctl schedule-times get <employeeId> <date>` | `fortnox_get_scheduletime` | Get the schedule for an employee on a date |
421
+ | `noxctl schedule-times update <employeeId> <date> --input <file>` | `fortnox_update_scheduletime` | Update a day's schedule (mutation) |
422
+ | `noxctl schedule-times reset-day <employeeId> <date> --input <file>` | `fortnox_reset_scheduletime_day` | Update a day's schedule and reset the day (mutation) |
423
+
424
+ ### Analytics and dashboard
425
+
426
+ | CLI | MCP tool | Description |
427
+ |-----|----------|-------------|
428
+ | `noxctl analytics overdue` | `fortnox_overdue_invoices` | Overdue invoices summary |
429
+ | `noxctl analytics unpaid` | `fortnox_unpaid_totals` | Outstanding receivables, with overdue split |
430
+ | `noxctl analytics top-customers [--period <period>]` | `fortnox_top_customers` | Top customers by invoiced amount |
431
+ | `noxctl analytics vat --period <period>` | `fortnox_vat_summary` | VAT summary with net VAT position |
432
+ | `noxctl dashboard` | — | At-a-glance: outstanding, overdue, recent invoices, monthly revenue |
433
+
311
434
  ### Company
312
435
 
313
436
  | CLI | MCP tool | Description |
@@ -324,6 +447,7 @@ Every operation is available both as a CLI command and as an MCP tool. The CLI i
324
447
  | `noxctl profile use <name>` | — | Set the active profile (writes `~/.fortnox-mcp/active-profile`) |
325
448
  | `noxctl profile current` | — | Show the currently resolved profile and where it came from |
326
449
  | `noxctl profile list` | — | List known profiles from the index |
450
+ | `noxctl completion <bash\|zsh\|fish>` | — | Generate a shell completion script |
327
451
 
328
452
  ## CLI output
329
453
 
@@ -336,6 +460,14 @@ noxctl -o table invoices list # force table
336
460
  noxctl invoices list | jq . # auto-JSON (piped)
337
461
  ```
338
462
 
463
+ JSON output has a stable envelope: list commands wrap under the plural resource key (`{"Invoices": [...], "MetaInformation": {...}}`) and single-resource commands under the singular key (`{"Invoice": {...}}`), so scripted callers can rely on a fixed accessor. Failures in JSON mode are emitted to stderr as a structured envelope:
464
+
465
+ ```json
466
+ { "error": { "status": 400, "message": "...", "source": "fortnox-api" } }
467
+ ```
468
+
469
+ Natural date periods are accepted wherever `--from`/`--to` work, via `--period`: `Q1`, `2025-Q3`, `march`/`mars`, `this-quarter`, `last-quarter`, `this-month`, `last-month`, `ytd`, `this-year`, `last-year`, or a bare year. Periods are **calendar-year** based (broken fiscal years are not yet considered).
470
+
339
471
  When running from a local clone instead of an installed binary, replace `noxctl` with `node dist/cli.js`.
340
472
 
341
473
  ## Mutation safety
@@ -468,15 +600,26 @@ See [ARCHITECTURE.md](ARCHITECTURE.md) for details.
468
600
 
469
601
  ## Disclaimer
470
602
 
471
- noxctl is an independent open-source project — not affiliated with, endorsed by, or certified by Fortnox AB.
603
+ noxctl is an independent, **unofficial** open-source project — **not affiliated with, endorsed by, or certified by Fortnox AB.** "Fortnox" is a trademark of Fortnox AB, used here only to describe interoperability.
604
+
605
+ **No warranty, no liability.** noxctl is provided "as is", without warranty of any kind, express or implied. The author and contributors accept **no responsibility and no liability whatsoever** for anything arising from its use — including, without limitation: incorrect, incomplete, or lost bookkeeping; erroneous invoices, payments, payroll, or tax filings; exposure or loss of data; service downtime; financial loss; or any breach of Fortnox's terms. **You use it entirely at your own risk.** (See the MIT License below — the same limitation applies in full.)
472
606
 
473
- **You are responsible for your own bookkeeping.** Under Swedish law (Bokföringslagen), the company owner or board bears full responsibility for the correctness of all accounting records, regardless of what tools are used. noxctl is an instrument that executes your instructions — review entries before confirming, especially when using `--yes` or `confirm: true`.
607
+ **You are responsible for everything you do with it.** Under Swedish law (Bokföringslagen), the company owner or board bears full responsibility for the correctness of all accounting and payroll records, regardless of the tools used. noxctl only executes the instructions you give it — review entries before confirming, especially with `--yes` / `confirm: true`, and reconcile against Fortnox and your own records.
474
608
 
475
- **Privacy note:** When using noxctl with AI assistants, customer and supplier data may enter third-party AI systems. Use `includeRaw: false` unless full payloads are necessary, and make sure your use complies with GDPR, processor agreements, and any required transfer assessments.
609
+ **Privacy / personal data.** noxctl can move accounting *and personal* data out of Fortnox — customer/supplier details and, via the payroll commands, employee personal data such as Swedish personal identity numbers (personnummer), salaries, and absence records. When using it with AI assistants or MCP hosts, that data may enter third-party systems. Keep `includeRaw: false` unless full payloads are necessary, and ensure your use complies with GDPR, processor/data-processing agreements, and any required transfer assessments. See `PRIVACY.md`.
476
610
 
477
611
  **Tax note:** The VAT report is an informational summary only. Reconcile it against Fortnox and your accounting records before submitting anything to Skatteverket.
478
612
 
479
- **Fortnox API access** requires your own developer credentials and Fortnox setup. You must comply with the applicable Fortnox terms. noxctl does not redistribute any Fortnox-owned code or data.
613
+ **Fortnox API access** requires your own Fortnox account, developer app, and credentials. You must comply with the applicable Fortnox developer terms. noxctl ships no shared credentials, redistributes no Fortnox-owned code or data (not even Fortnox's OpenAPI spec — only opaque drift-detection hashes), and routes nothing through any server operated by the author — it calls the Fortnox API directly from your machine.
614
+
615
+ ### Your responsibilities under Fortnox's terms
616
+
617
+ When you register a Fortnox developer app to use noxctl, **you** (not the noxctl author) accept Fortnox's [Developer Agreement](https://www.fortnox.se/developer) and are the contracting party. In particular:
618
+
619
+ - **Eligibility:** registering a Fortnox developer app requires a company registered under Swedish law (Developer Agreement cl. 5.1).
620
+ - **Running it for someone else's Fortnox** (e.g. as a bookkeeper/accountant for a client) makes you a data processor — you must have a data-processing agreement (*personuppgiftsbiträdesavtal*) with that client (cl. 12.3). Using it for your own company does not trigger this.
621
+ - **Sending data to AI/LLMs:** Fortnox does not prohibit it, but you are responsible for the lawfulness of distributing personal data (cl. 13.5 + GDPR) — especially payroll (Lön) and ROT/RUT data, which contain personal identity numbers (personnummer). Ensure a lawful basis and, where required, a data-processing agreement with your AI provider and a valid transfer mechanism for non-EU/EES providers.
622
+ - noxctl is a **client for Fortnox's own API** — a complement, not a replacement — using only documented endpoints and your own credentials.
480
623
 
481
624
  ## License
482
625
 
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export declare const SCOPES = "article customer invoice payment supplier supplierinvoice bookkeeping companyinformation settings";
1
+ export declare const SCOPES = "article customer invoice payment supplier supplierinvoice bookkeeping companyinformation settings inbox connectfile";
2
+ export declare const SALARY_SCOPE = "salary";
3
+ /** Effective scope string for a profile: the granted set if recorded, else the base SCOPES. */
4
+ export declare function effectiveScopes(creds: Pick<FortnoxCredentials, 'scopes'> | null | undefined): string;
2
5
  export declare const CREDENTIAL_SCHEMA_VERSION = 2;
3
6
  export interface FortnoxCredentials {
4
7
  client_id: string;
@@ -8,6 +11,7 @@ export interface FortnoxCredentials {
8
11
  expires_at: number;
9
12
  tenant_id?: string;
10
13
  company_name?: string;
14
+ scopes?: string;
11
15
  schema_version?: number;
12
16
  last_write_epoch?: number;
13
17
  }
@@ -32,6 +36,6 @@ export declare function getValidToken(profile?: string): Promise<string>;
32
36
  export declare function fetchTenantId(accessToken: string): Promise<string | undefined>;
33
37
  export declare function fetchCompanyNameSafe(accessToken: string): Promise<string | undefined>;
34
38
  export declare function escapeHtml(value: string): string;
35
- export declare function buildAuthorizationUrl(config: FortnoxAppConfig, redirectUri: string, state: string): string;
36
- export declare function runOAuthSetup(config: FortnoxAppConfig, profile?: string): Promise<void>;
39
+ export declare function buildAuthorizationUrl(config: FortnoxAppConfig, redirectUri: string, state: string, scopes?: string): string;
40
+ export declare function runOAuthSetup(config: FortnoxAppConfig, profile?: string, scopes?: string): Promise<void>;
37
41
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM,sGACkF,CAAC;AAEtG,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,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,MAAwB,EACjC,MAAM,GAAE,MAAe,GACtB,OAAO,CAAC,IAAI,CAAC,CAiIf"}
package/dist/auth.js CHANGED
@@ -2,12 +2,24 @@ import { createServer } from 'node:http';
2
2
  import { randomBytes } from 'node:crypto';
3
3
  import { execFileSync } from 'node:child_process';
4
4
  import { loadCredentialBlob, saveCredentialBlob } from './credentials-store.js';
5
+ import { KeychainLockedError } from './keychain-target.js';
5
6
  import { DEFAULT_PROFILE, validateProfileName } from './profile-name.js';
6
7
  import { migrateLegacyIfNeeded, readProfileIndex, upsertProfile } from './profiles.js';
7
8
  const FORTNOX_AUTH_URL = 'https://apps.fortnox.se/oauth-v1/auth';
8
9
  const FORTNOX_TOKEN_URL = 'https://apps.fortnox.se/oauth-v1/token';
9
10
  const CALLBACK_HOST = '127.0.0.1';
10
- export const SCOPES = 'article customer invoice payment supplier supplierinvoice bookkeeping companyinformation settings';
11
+ export const SCOPES = 'article customer invoice payment supplier supplierinvoice bookkeeping companyinformation settings inbox connectfile';
12
+ // The "Lön" (salary/payroll) scope. Opt-in only: requesting it at authorize
13
+ // time fails for users whose Fortnox app integration does not have the Lön
14
+ // permission enabled, so it is never part of the default SCOPES. `noxctl init
15
+ // --with-salary` (or FORTNOX_WITH_SALARY=1) appends it and the granted scope
16
+ // string is persisted per-profile (see FortnoxCredentials.scopes) so the
17
+ // client-credentials refresh re-requests the same set.
18
+ export const SALARY_SCOPE = 'salary';
19
+ /** Effective scope string for a profile: the granted set if recorded, else the base SCOPES. */
20
+ export function effectiveScopes(creds) {
21
+ return creds?.scopes ?? SCOPES;
22
+ }
11
23
  export const CREDENTIAL_SCHEMA_VERSION = 2;
12
24
  // Module-global resolved profile. This assumes a single-tenant process model
13
25
  // (one CLI invocation or one MCP stdio connection per Node process). Hosting
@@ -50,7 +62,11 @@ export async function loadCredentials(profile) {
50
62
  try {
51
63
  result = await loadCredentialBlob(target);
52
64
  }
53
- catch {
65
+ catch (err) {
66
+ // A locked dedicated keychain must surface, not look like "no credentials" —
67
+ // the caller tells the user to run `noxctl keychain unlock` (tap YubiKey).
68
+ if (err instanceof KeychainLockedError)
69
+ throw err;
54
70
  return null;
55
71
  }
56
72
  if (isDefaultProfile(target) && legacySlotExists(result.source)) {
@@ -108,7 +124,7 @@ export async function getTokenViaClientCredentials(creds, profile) {
108
124
  }
109
125
  const body = new URLSearchParams({
110
126
  grant_type: 'client_credentials',
111
- scope: SCOPES,
127
+ scope: effectiveScopes(creds),
112
128
  });
113
129
  const response = await fetch(FORTNOX_TOKEN_URL, {
114
130
  method: 'POST',
@@ -240,11 +256,11 @@ export function escapeHtml(value) {
240
256
  .replace(/"/g, '&quot;')
241
257
  .replace(/'/g, '&#39;');
242
258
  }
243
- export function buildAuthorizationUrl(config, redirectUri, state) {
259
+ export function buildAuthorizationUrl(config, redirectUri, state, scopes = SCOPES) {
244
260
  const params = new URLSearchParams({
245
261
  client_id: config.clientId,
246
262
  redirect_uri: redirectUri,
247
- scope: SCOPES,
263
+ scope: scopes,
248
264
  state,
249
265
  response_type: 'code',
250
266
  access_type: 'offline',
@@ -254,7 +270,7 @@ export function buildAuthorizationUrl(config, redirectUri, state) {
254
270
  }
255
271
  return `${FORTNOX_AUTH_URL}?${params.toString()}`;
256
272
  }
257
- export async function runOAuthSetup(config, profile = DEFAULT_PROFILE) {
273
+ export async function runOAuthSetup(config, profile = DEFAULT_PROFILE, scopes = SCOPES) {
258
274
  const validatedProfile = validateProfileName(profile);
259
275
  const PORT = 9876;
260
276
  const REDIRECT_URI = `http://localhost:${PORT}/callback`;
@@ -313,6 +329,7 @@ export async function runOAuthSetup(config, profile = DEFAULT_PROFILE) {
313
329
  expires_at: Date.now() + tokens.expires_in * 1000,
314
330
  tenant_id: tenantId,
315
331
  company_name: companyName,
332
+ scopes,
316
333
  };
317
334
  // Preserve the original created_at when re-authenticating an existing
318
335
  // profile so the index timestamp reflects first auth, not the most
@@ -355,7 +372,7 @@ export async function runOAuthSetup(config, profile = DEFAULT_PROFILE) {
355
372
  }
356
373
  });
357
374
  server.listen(PORT, CALLBACK_HOST, () => {
358
- const authUrl = buildAuthorizationUrl(config, REDIRECT_URI, oauthState);
375
+ const authUrl = buildAuthorizationUrl(config, REDIRECT_URI, oauthState, scopes);
359
376
  console.log('Opening Fortnox login in your browser...');
360
377
  openBrowser(authUrl);
361
378
  console.log(`\nWaiting for authentication on http://${CALLBACK_HOST}:${PORT}...`);
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAmB,MAAM,wBAAwB,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvF,MAAM,gBAAgB,GAAG,uCAAuC,CAAC;AACjE,MAAM,iBAAiB,GAAG,wCAAwC,CAAC;AACnE,MAAM,aAAa,GAAG,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GACjB,mGAAmG,CAAC;AAEtG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAoB3C,6EAA6E;AAC7E,6EAA6E;AAC7E,4EAA4E;AAC5E,8EAA8E;AAC9E,kCAAkC;AAClC,IAAI,eAAe,GAAW,eAAe,CAAC;AAE9C,+EAA+E;AAC/E,+EAA+E;AAC/E,2EAA2E;AAC3E,IAAI,wBAAwB,GAAG,KAAK,CAAC;AAErC,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,eAAe,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;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C,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAaA,OAAO,EAOL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AA+DvB,wBAAgB,sBAAsB,IAAI,eAAe,CAExD"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAcA,OAAO,EAOL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAwHvB,wBAAgB,sBAAsB,IAAI,eAAe,CAExD"}