@naturali/cli 0.95.0 → 0.97.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.
- package/dist/index.mjs +11 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.97.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1101,7 +1101,8 @@ var Admin = class {
|
|
|
1101
1101
|
* Grant a user credit
|
|
1102
1102
|
*
|
|
1103
1103
|
* Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role.
|
|
1104
|
-
* The ledger is append-only and the balance is its sum — there is no balance to set and no line to edit or delete. A mistake is corrected by
|
|
1104
|
+
* The ledger is append-only and the balance is its sum — there is no balance to set and no line to edit or delete. A mistake is corrected by writing a **negative** `amount_usd`, which leaves the wrong line on the record beside the one that compensates for it.
|
|
1105
|
+
* `kind` is required. Money received and credit given away report differently — one is revenue, the other customer-acquisition cost — so the line says which it is rather than defaulting to one of them.
|
|
1105
1106
|
* The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.
|
|
1106
1107
|
*
|
|
1107
1108
|
*/
|
|
@@ -5753,7 +5754,7 @@ const routes = {
|
|
|
5753
5754
|
"grant-user-credit": {
|
|
5754
5755
|
serviceClass: "Admin",
|
|
5755
5756
|
operationId: "grantUserCredit",
|
|
5756
|
-
description: "Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role. The ledger is append-only and the balance is its sum — there is no balance to set and no line to edit or delete. A mistake is corrected by
|
|
5757
|
+
description: "Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role. The ledger is append-only and the balance is its sum — there is no balance to set and no line to edit or delete. A mistake is corrected by writing a **negative** `amount_usd`, which leaves the wrong line on the record beside the one that compensates for it. `kind` is required. Money received and credit given away report differently — one is revenue, the other customer-acquisition cost — so the line says which it is rather than defaulting to one of them. The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.",
|
|
5757
5758
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/admin",
|
|
5758
5759
|
httpMethod: "post",
|
|
5759
5760
|
pathParams: ["user_id"],
|
|
@@ -5766,6 +5767,13 @@ const routes = {
|
|
|
5766
5767
|
"type": "string",
|
|
5767
5768
|
"in": "path"
|
|
5768
5769
|
},
|
|
5770
|
+
{
|
|
5771
|
+
"name": "kind",
|
|
5772
|
+
"description": "What this line is. `purchased` for money that arrived, `granted` for credit naturali gave away — the two report differently, so it is required rather than defaulted. `included` is not accepted here: a plan's monthly allowance is the billing cycle's to write.",
|
|
5773
|
+
"required": true,
|
|
5774
|
+
"type": "string",
|
|
5775
|
+
"in": "body"
|
|
5776
|
+
},
|
|
5769
5777
|
{
|
|
5770
5778
|
"name": "amount_usd",
|
|
5771
5779
|
"description": "US dollars to grant, rounded to the cent. Negative corrects an earlier grant; zero is refused, because a grant of nothing records no intent.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.97.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|