@leaflow/sdk 0.123.0 → 0.124.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.
@@ -864,8 +864,10 @@ export interface CreditGroup {
864
864
  * Account balance, credits, and unpaid charges are reported separately.
865
865
  */
866
866
  export interface AccountBalance {
867
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
867
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
868
868
  available_credit: Money;
869
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
870
+ estimated_credit_applied: Money;
869
871
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
870
872
  unbilled_amount: Money;
871
873
  billing_account_id: number;
@@ -8,6 +8,7 @@
8
8
  import * as zod from "zod";
9
9
  export declare const AccountBalance: zod.ZodObject<{
10
10
  available_credit: zod.ZodString;
11
+ estimated_credit_applied: zod.ZodString;
11
12
  unbilled_amount: zod.ZodString;
12
13
  billing_account_id: zod.ZodInt;
13
14
  currency: zod.ZodString;
@@ -10,7 +10,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
10
10
  import { Money } from "./money.zod.js";
11
11
  export const AccountBalance = zod
12
12
  .strictObject({
13
- available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
13
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
14
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
14
15
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
15
16
  billing_account_id: zod.int(),
16
17
  currency: zod.string(),
@@ -685,8 +685,10 @@ export interface CreditGroup {
685
685
  * Account balance, credits, and unpaid charges are reported separately.
686
686
  */
687
687
  export interface AccountBalance {
688
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
688
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
689
689
  available_credit: Money;
690
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
691
+ estimated_credit_applied: Money;
690
692
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
691
693
  unbilled_amount: Money;
692
694
  billing_account_id: number;
@@ -8,6 +8,7 @@
8
8
  import * as zod from "zod";
9
9
  export declare const AccountBalance: zod.ZodObject<{
10
10
  available_credit: zod.ZodString;
11
+ estimated_credit_applied: zod.ZodString;
11
12
  unbilled_amount: zod.ZodString;
12
13
  billing_account_id: zod.ZodInt;
13
14
  currency: zod.ZodString;
@@ -10,7 +10,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
10
10
  import { Money } from "./money.zod.js";
11
11
  export const AccountBalance = zod
12
12
  .strictObject({
13
- available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
13
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
14
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
14
15
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
15
16
  billing_account_id: zod.int(),
16
17
  currency: zod.string(),
@@ -1332,8 +1332,10 @@ export interface CreditGroup {
1332
1332
  * Account balance, credits, and unpaid charges are reported separately.
1333
1333
  */
1334
1334
  export interface AccountBalance {
1335
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
1335
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
1336
1336
  available_credit: Money;
1337
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
1338
+ estimated_credit_applied: Money;
1337
1339
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
1338
1340
  unbilled_amount: Money;
1339
1341
  billing_account_id: number;
@@ -31,6 +31,7 @@
31
31
  import * as zod from "zod";
32
32
  export declare const AccountBalance: zod.ZodObject<{
33
33
  available_credit: zod.ZodString;
34
+ estimated_credit_applied: zod.ZodString;
34
35
  unbilled_amount: zod.ZodString;
35
36
  billing_account_id: zod.ZodInt;
36
37
  currency: zod.ZodString;
@@ -33,7 +33,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
33
33
  import { Money } from "./money.zod.js";
34
34
  export const AccountBalance = zod
35
35
  .strictObject({
36
- available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
36
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
37
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
37
38
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
38
39
  billing_account_id: zod.int(),
39
40
  currency: zod.string(),
@@ -3278,8 +3278,10 @@ export interface CreditGroup {
3278
3278
  * Account balance, credits, and unpaid charges are reported separately.
3279
3279
  */
3280
3280
  export interface AccountBalance {
3281
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
3281
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
3282
3282
  available_credit: Money;
3283
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
3284
+ estimated_credit_applied: Money;
3283
3285
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
3284
3286
  unbilled_amount: Money;
3285
3287
  billing_account_id: number;
@@ -24,6 +24,7 @@
24
24
  import * as zod from "zod";
25
25
  export declare const AccountBalance: zod.ZodObject<{
26
26
  available_credit: zod.ZodString;
27
+ estimated_credit_applied: zod.ZodString;
27
28
  unbilled_amount: zod.ZodString;
28
29
  billing_account_id: zod.ZodInt;
29
30
  currency: zod.ZodString;
@@ -26,7 +26,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
26
26
  import { Money } from "./money.zod.js";
27
27
  export const AccountBalance = zod
28
28
  .strictObject({
29
- available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
29
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
30
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
30
31
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
31
32
  billing_account_id: zod.int(),
32
33
  currency: zod.string(),
@@ -1174,8 +1174,10 @@ export interface CreditGroup {
1174
1174
  * Account balance, credits, and unpaid charges are reported separately.
1175
1175
  */
1176
1176
  export interface AccountBalance {
1177
- /** Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative. */
1177
+ /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
1178
1178
  available_credit: Money;
1179
+ /** Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount. */
1180
+ estimated_credit_applied: Money;
1179
1181
  /** Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
1180
1182
  unbilled_amount: Money;
1181
1183
  billing_account_id: number;
@@ -23,6 +23,7 @@
23
23
  import * as zod from "zod";
24
24
  export declare const AccountBalance: zod.ZodObject<{
25
25
  available_credit: zod.ZodString;
26
+ estimated_credit_applied: zod.ZodString;
26
27
  unbilled_amount: zod.ZodString;
27
28
  billing_account_id: zod.ZodInt;
28
29
  currency: zod.ZodString;
@@ -25,7 +25,8 @@ import { CreditGroup } from "./creditGroup.zod.js";
25
25
  import { Money } from "./money.zod.js";
26
26
  export const AccountBalance = zod
27
27
  .strictObject({
28
- available_credit: Money.describe("Balance minus pending balance returns, unbilled usage estimates and issued unpaid amounts. Credit grants are excluded; the result may be negative."),
28
+ available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
29
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
29
30
  unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
30
31
  billing_account_id: zod.int(),
31
32
  currency: zod.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.123.0",
3
+ "version": "0.124.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {