@naturali/sdk 0.95.0 → 0.96.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.cjs +2 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1084,7 +1084,8 @@ var Admin = class {
|
|
|
1084
1084
|
* Grant a user credit
|
|
1085
1085
|
*
|
|
1086
1086
|
* Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role.
|
|
1087
|
-
* 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
|
|
1087
|
+
* 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.
|
|
1088
|
+
* `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.
|
|
1088
1089
|
* The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.
|
|
1089
1090
|
*
|
|
1090
1091
|
*/
|
package/dist/index.d.cts
CHANGED
|
@@ -574,6 +574,10 @@ type CreditEntryPage = {
|
|
|
574
574
|
next_cursor: string | null;
|
|
575
575
|
};
|
|
576
576
|
type CreditGrant = {
|
|
577
|
+
/**
|
|
578
|
+
* 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.
|
|
579
|
+
*/
|
|
580
|
+
kind: 'purchased' | 'granted';
|
|
577
581
|
/**
|
|
578
582
|
* US dollars to grant, rounded to the cent. Negative corrects an earlier grant; zero is refused, because a grant of nothing records no intent.
|
|
579
583
|
*/
|
|
@@ -18949,7 +18953,8 @@ declare class Admin {
|
|
|
18949
18953
|
* Grant a user credit
|
|
18950
18954
|
*
|
|
18951
18955
|
* Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role.
|
|
18952
|
-
* 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
|
|
18956
|
+
* 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.
|
|
18957
|
+
* `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.
|
|
18953
18958
|
* The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.
|
|
18954
18959
|
*
|
|
18955
18960
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -574,6 +574,10 @@ type CreditEntryPage = {
|
|
|
574
574
|
next_cursor: string | null;
|
|
575
575
|
};
|
|
576
576
|
type CreditGrant = {
|
|
577
|
+
/**
|
|
578
|
+
* 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.
|
|
579
|
+
*/
|
|
580
|
+
kind: 'purchased' | 'granted';
|
|
577
581
|
/**
|
|
578
582
|
* US dollars to grant, rounded to the cent. Negative corrects an earlier grant; zero is refused, because a grant of nothing records no intent.
|
|
579
583
|
*/
|
|
@@ -18949,7 +18953,8 @@ declare class Admin {
|
|
|
18949
18953
|
* Grant a user credit
|
|
18950
18954
|
*
|
|
18951
18955
|
* Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role.
|
|
18952
|
-
* 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
|
|
18956
|
+
* 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.
|
|
18957
|
+
* `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.
|
|
18953
18958
|
* The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.
|
|
18954
18959
|
*
|
|
18955
18960
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1083,7 +1083,8 @@ var Admin = class {
|
|
|
1083
1083
|
* Grant a user credit
|
|
1084
1084
|
*
|
|
1085
1085
|
* Writes one `granted` line to the account's credit ledger and answers with the balance it produced. Needs the `admin` role.
|
|
1086
|
-
* 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
|
|
1086
|
+
* 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.
|
|
1087
|
+
* `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.
|
|
1087
1088
|
* The balance this moves is not yet a ceiling anything enforces; turning it into one is a separate mechanism.
|
|
1088
1089
|
*
|
|
1089
1090
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.
|
|
40
|
+
"@naturali/api": "0.96.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|