@leaflow/sdk 0.114.0 → 0.115.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.
@@ -545,6 +545,12 @@ export interface BillingAccount {
545
545
  * 0 means none. Whichever runs out first — this or grace_amount — ends the grace.
546
546
  */
547
547
  grace_period_seconds?: number;
548
+ /**
549
+ * The actual time this account was closed, in UTC (RFC 3339).
550
+ * Null or absent if the account is not closed or its historical close time is unknown.
551
+ * @nullable
552
+ */
553
+ readonly closed_at?: string | null;
548
554
  created_at: string;
549
555
  }
550
556
  /**
@@ -26,6 +26,7 @@ export declare const BillingAccount: zod.ZodObject<{
26
26
  }>;
27
27
  grace_amount: zod.ZodOptional<zod.ZodString>;
28
28
  grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
29
+ closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
29
30
  created_at: zod.z.ZodISODateTime;
30
31
  }, zod.z.core.$strict>;
31
32
  export type BillingAccount = zod.input<typeof BillingAccount>;
@@ -31,5 +31,9 @@ export const BillingAccount = zod.strictObject({
31
31
  .int()
32
32
  .optional()
33
33
  .describe("How long this account has to top up after crossing the suspension threshold.\n0 means none. Whichever runs out first — this or grace_amount — ends the grace."),
34
+ closed_at: zod.iso
35
+ .datetime({ offset: true })
36
+ .nullish()
37
+ .describe("The actual time this account was closed, in UTC (RFC 3339).\nNull or absent if the account is not closed or its historical close time is unknown."),
34
38
  created_at: zod.iso.datetime({ offset: true }),
35
39
  });
@@ -27,6 +27,7 @@ export declare const BillingAccountList: zod.ZodObject<{
27
27
  }>;
28
28
  grace_amount: zod.ZodOptional<zod.ZodString>;
29
29
  grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
30
+ closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
30
31
  created_at: zod.z.ZodISODateTime;
31
32
  }, zod.z.core.$strict>>;
32
33
  pagination: zod.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {