jaz-clio 9.10.0 → 9.10.1
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/assets/skills/api/SKILL.md +46 -9
- package/assets/skills/cli/SKILL.md +1 -1
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-api-reference/SKILL.md +3 -2
- package/assets/skills/jaz-kit/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +2 -2
- package/assets/skills/jaz-pseudo-sql/references/error-catalog.md +1 -1
- package/assets/skills/jobs/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -9,11 +9,12 @@ description: >-
|
|
|
9
9
|
schedulers, subscriptions, attachments, claim settings, and Jaz Magic extraction. Also use
|
|
10
10
|
when building API clients, seeding test data, or adding new endpoint support.
|
|
11
11
|
Request/response examples, the endpoint catalog, and the search filter, syntax
|
|
12
|
-
and enum reference are in the jaz-api-reference skill: load it
|
|
12
|
+
and enum reference are in the jaz-api-reference skill: load it when the task
|
|
13
|
+
needs one of those.
|
|
13
14
|
license: MIT
|
|
14
15
|
compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown.
|
|
15
16
|
metadata:
|
|
16
|
-
version: "9.10.
|
|
17
|
+
version: "9.10.1"
|
|
17
18
|
---
|
|
18
19
|
|
|
19
20
|
# Jaz API Skill
|
|
@@ -30,13 +31,49 @@ Prefer the configured OAuth connection. Local CLI/MCP shares `clio auth login`;
|
|
|
30
31
|
|
|
31
32
|
The rest of this skill (field names, gotchas, error catalog, dependency order, search filter syntax) applies regardless of invocation path. Read it for *context*, not for HTTP-call construction unless you're in the third bucket.
|
|
32
33
|
|
|
33
|
-
##
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
**
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
## Core contract
|
|
35
|
+
|
|
36
|
+
These facts settle most requests without opening another file. The number after each is its rule; open the rule only for its edge cases.
|
|
37
|
+
|
|
38
|
+
**Every request**
|
|
39
|
+
- IDs are `resourceId`, never `id`; a reference to another record is `<resource>ResourceId` (1).
|
|
40
|
+
- Transaction dates are `valueDate`, never `issueDate`, `invoiceDate` or `date`. Request dates are `YYYY-MM-DD` strings (2, 3); response dates come back as epoch milliseconds (52).
|
|
41
|
+
- Line item text is `name`, not `description`. The document number is `reference` (9, 13).
|
|
42
|
+
|
|
43
|
+
**Creating and finalizing**
|
|
44
|
+
- Raw REST: omitting `saveAsDraft` creates a FINALIZED record, while the MCP and CLI tools default to a draft, so send it explicitly (14). With `saveAsDraft: false`, every line item needs `accountResourceId` (15).
|
|
45
|
+
- A foreign-currency invoice, bill, credit note or journal takes `currency: { sourceCurrency: "USD", exchangeRate? }`. A `currencyCode` string is silently ignored and a `currency` string is a 400 (25).
|
|
46
|
+
- A create answers only `{ resourceId }`; GET the record for anything else (68). A cash in, cash out or cash transfer create answers its `parentEntityResourceId`, the ID that DELETE and PUT take (74).
|
|
47
|
+
- A draft is finalized by one PUT with `saveAsDraft: false` and `resourceId` in the body (83, 85). Finalized invoices and bills are `UNPAID`, then `PARTIALLY_PAID` and `PAID`; journals are `ACTIVE`. No resource has a `FINALIZED` or `POSTED` status, and `OVERDUE` is not a status either: find overdue documents with `status in [UNPAID, PARTIALLY_PAID]` plus `dueDate lt <today in the organization's timezone>` (67).
|
|
48
|
+
- Journals carry `journalEntries` with `amount` and `type: "DEBIT" | "CREDIT"` (23). Payments go in `{ payments: [...] }`, each with `paymentAmount` (bank currency), `transactionAmount` (document currency), `accountResourceId`, `paymentMethod`, `reference` and `valueDate` (4, 7, 8). Credit notes are applied through a `credits` array with `amountApplied` (27).
|
|
49
|
+
|
|
50
|
+
**Lists and search**
|
|
51
|
+
- A search body is `{ filter?, sort: { sortBy: ["field"], order: "ASC" | "DESC" }, limit: 1-1000, offset }`. `sortBy` is always an array, and `sort` is required whenever `offset` is sent, even `offset: 0` (43, 50).
|
|
52
|
+
- `offset` is a 0-indexed PAGE number, not a row skip: `offset: 1` is the second page of `limit` rows. A few report and ledger reads take a row offset instead (38).
|
|
53
|
+
- A filter is `{ "<field>": { "<operator>": value } }`, and each field type accepts a fixed set of operators; any other is a 400 (51). Which fields an endpoint filters and sorts on, and the values an enum field accepts, are in jaz-api-reference.
|
|
54
|
+
- List and search responses are `{ totalElements, totalPages, data: [...] }` (54).
|
|
55
|
+
|
|
56
|
+
## Where to look
|
|
57
|
+
|
|
58
|
+
Open only what the task needs, and open the files it names together rather than one at a time. Read the matching section whole rather than searching for fragments: the required fields and refusals sit in the lines under each example. Load the **jaz-api-reference** skill only for an endpoint's exact request and response, the endpoint catalog, or a search field's filters and values; the files in the middle column are in its `references/`.
|
|
59
|
+
|
|
60
|
+
The rules column names each rule file with the rule numbers that apply to the task.
|
|
61
|
+
|
|
62
|
+
| Task | Request and response (jaz-api-reference) | Rules (this skill's `references/`) |
|
|
63
|
+
|------|------------------------------------------|------------------------------------|
|
|
64
|
+
| Create, update, finalize or pay an invoice, bill, credit note, journal, cash entry or cash transfer | `endpoints-transactions.md` | `rules-fundamentals.md` 1-16, 23-28, 31, 40-41, 45, 47-48; `rules-search-magic-shapes.md` 64, 67-70, 74-77, 80-88; `rules-entities-quick-fix.md` 98, 101-104, 108, 112, 115-116 |
|
|
65
|
+
| Search, filter, sort or page | `search-reference.md` (fields per endpoint), `search-enums.md` (values), `search-syntax.md` (a `query` string) | `rules-fundamentals.md` 38, 43; `rules-search-magic-shapes.md` 50-56, 65 |
|
|
66
|
+
| Contacts, items, chart of accounts, tax profiles, currencies and rates, tags, custom fields, contact groups, inventory, bookmarks, catalogs, nano classifiers | `endpoints-master-data.md` | `rules-fundamentals.md` 10-12, 16-22, 29-30, 34-35e, 39, 46-47, 49; `rules-search-magic-shapes.md` 66, 71-73, 78; `rules-entities-quick-fix.md` 96-97, 99-100, 105-106, 113; `rules-bulk-recon-drafts.md` 136-137c, 140-141 |
|
|
67
|
+
| Bank records, the cashflow ledger, Jaz Magic extraction, deposits, bank rules | `endpoints-banking-magic.md` | `rules-fundamentals.md` 44, 47-47a; `rules-search-magic-shapes.md` 57-63; `rules-entities-quick-fix.md` 89-90d, 110 |
|
|
68
|
+
| Reconciliation, drafts lifecycle, transaction bulk upserts | `full-api-surface.md` (catalog) | `rules-bulk-recon-drafts.md` 118-135, 158-160 |
|
|
69
|
+
| Schedulers, subscriptions, reports, exports, report templates | `endpoints-schedules-reports.md` | `rules-fundamentals.md` 32-33, 36-37a, 42; `rules-entities-quick-fix.md` 93-94, 109, 114; `rules-bulk-recon-drafts.md` 147, 161; `report-templates.md` |
|
|
70
|
+
| Fixed assets, deferrals, leases, loans, payroll | `endpoints-assets-payroll.md` | `rules-entities-quick-fix.md` 91-92c, 117; `rules-bulk-recon-drafts.md` 122 |
|
|
71
|
+
| Quick Fix, Ledger Find & Fix, contacts bulk upsert, background jobs | `endpoints-bulk-edits.md` | `rules-fundamentals.md` (bulk upsert and background jobs sections); `rules-entities-quick-fix.md` 107-107a, 111; `rules-bulk-recon-drafts.md` 119, 136-137c |
|
|
72
|
+
| An error code or message | | `errors.md` |
|
|
73
|
+
| A field name that is easy to guess wrong | | `field-map.md` |
|
|
74
|
+
| Sale quotes and orders, purchase requests and orders, expense claims | | `orders.md`, `claims.md` |
|
|
75
|
+
|
|
76
|
+
A rule number cited anywhere resolves through the [Rule Index](#rule-index) below.
|
|
40
77
|
|
|
41
78
|
## When to Use This Skill
|
|
42
79
|
|
|
@@ -11,11 +11,12 @@ description: >-
|
|
|
11
11
|
for each filter field. Load it when building or debugging a request body,
|
|
12
12
|
checking whether an endpoint exists, writing a search filter, or confirming
|
|
13
13
|
an enum value. The numbered API rules, error catalog, and field name mapping
|
|
14
|
-
live in the jaz-api skill: load
|
|
14
|
+
live in the jaz-api skill: load it with this one, since its core contract
|
|
15
|
+
holds the rules most requests need (statuses, paging, IDs).
|
|
15
16
|
license: MIT
|
|
16
17
|
compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown. Load the jaz-api skill alongside this one.
|
|
17
18
|
metadata:
|
|
18
|
-
version: "9.10.
|
|
19
|
+
version: "9.10.1"
|
|
19
20
|
---
|
|
20
21
|
|
|
21
22
|
# Jaz API Reference Skill
|
|
@@ -10,7 +10,7 @@ description: >-
|
|
|
10
10
|
license: MIT
|
|
11
11
|
compatibility: Works with Claude Code, Codex CLI, Cursor, Copilot, Claude Cowork, Claude.ai, and any agent that reads markdown. Multi-organization workflows need the `clio` CLI (`npm i -g jaz-clio`); a single organization works through MCP tools alone. Load alongside jaz-jobs for close playbooks, jaz-recipes for IFRS patterns, jaz-api for payload shapes, jaz-conversion for migrations.
|
|
12
12
|
metadata:
|
|
13
|
-
version: "9.10.
|
|
13
|
+
version: "9.10.1"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# Jaz Kit
|
|
@@ -13,7 +13,7 @@ description: >-
|
|
|
13
13
|
license: MIT
|
|
14
14
|
compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For canonical report types and the standard analytics surface, load the jaz-api skill alongside this one.
|
|
15
15
|
metadata:
|
|
16
|
-
version: "9.10.
|
|
16
|
+
version: "9.10.1"
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Jaz Pseudo-SQL Skill
|
|
@@ -40,7 +40,7 @@ Don't write a pseudo-SQL query from memory. The catalog grows; column names chan
|
|
|
40
40
|
|
|
41
41
|
| Use this instead | When |
|
|
42
42
|
|---|---|
|
|
43
|
-
| `download_export(exportType='analysis-anomalous-invoices')` etc. | Canonical anomaly / audit / risk reports; they're tuned, parameterized, and faster than re-deriving them in SQL.
|
|
43
|
+
| `download_export(exportType='analysis-anomalous-invoices')` etc. | Canonical anomaly / audit / risk reports; they're tuned, parameterized, and faster than re-deriving them in SQL. |
|
|
44
44
|
| `download_export(exportType='trial-balance')` etc. | Statements (TB, BS, P&L, GL, cashflow). The reporting engine handles period closing rules, intercompany eliminations, FX revaluation. SQL would miss these. |
|
|
45
45
|
| `search_invoices(filter:...)`, `search_bills`, etc. | Listing entities with structured filters. Returns typed objects, supports pagination, faster than SQL. |
|
|
46
46
|
| `get_invoice(resourceId)` etc. | Single-entity lookup by ID. |
|
|
@@ -76,7 +76,7 @@ The pre-terminal states are `PENDING` and `RUNNING`; these are normal during pol
|
|
|
76
76
|
|
|
77
77
|
If you hit `PSEUDOSQL_VALIDATION_ERROR: unknown table` repeatedly, the underlying data isn't in the curated schema:
|
|
78
78
|
|
|
79
|
-
- For canonical analytics reports → `download_export(exportType=...)`.
|
|
79
|
+
- For canonical analytics reports → `download_export(exportType=...)`.
|
|
80
80
|
- For raw entity dumps (e.g., every invoice as a row) → `export_records`.
|
|
81
81
|
- For one-off entity lookups → `get_invoice` / `get_bill` / etc.
|
|
82
82
|
- For filtered listings with structured criteria → `search_invoices` / `search_bills` / etc.
|
|
@@ -10,7 +10,7 @@ description: >-
|
|
|
10
10
|
license: MIT
|
|
11
11
|
compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill. For individual transaction patterns, load the jaz-recipes skill.
|
|
12
12
|
metadata:
|
|
13
|
-
version: "9.10.
|
|
13
|
+
version: "9.10.1"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# Jobs Skill
|
|
@@ -13,7 +13,7 @@ description: >-
|
|
|
13
13
|
license: MIT
|
|
14
14
|
compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill alongside this one. For the operational close workflows these recipes plug into (month-end close, GST/VAT filing, year-end close), load the jaz-jobs skill.
|
|
15
15
|
metadata:
|
|
16
|
-
version: "9.10.
|
|
16
|
+
version: "9.10.1"
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Transaction Recipes Skill
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaz-clio",
|
|
3
|
-
"version": "9.10.
|
|
3
|
+
"version": "9.10.1",
|
|
4
4
|
"description": "Fastest ledger for agents. Jaz accounting CLI and MCP server: invoicing, bills, payments, quotes & orders, bank reconciliation, fixed assets, inventory, expense claims, tax, reports, and period close.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|