@modelrelay/sdk 4.0.0 → 5.3.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.
@@ -1415,26 +1415,16 @@ interface components {
1415
1415
  };
1416
1416
  /** @description Customer-visible usage metrics for the current billing window. */
1417
1417
  CustomerMeUsage: {
1418
- /**
1419
- * Format: int64
1420
- * @description Credits granted for this billing window (only for paid tiers)
1421
- */
1422
- credits_granted_cents?: number;
1423
- /**
1424
- * Format: int64
1425
- * @description Credits remaining in this billing window (only for paid tiers)
1426
- */
1427
- credits_remaining_cents?: number;
1428
1418
  daily: components["schemas"]["CustomerUsagePoint"][];
1429
1419
  /** Format: int64 */
1430
1420
  images: number;
1431
- /** @description Whether remaining credits are low (only for paid tiers) */
1421
+ /** @description True when 80% or more of spend limit is used (nil if unlimited) */
1432
1422
  low?: boolean;
1433
1423
  /** @description True when PAYGO wallet can cover subscription overages */
1434
1424
  overage_enabled?: boolean;
1435
1425
  /**
1436
1426
  * Format: float
1437
- * @description Percentage of granted credits used (only for paid tiers)
1427
+ * @description Percentage of spend limit used (nil if unlimited)
1438
1428
  */
1439
1429
  percentage_used?: number;
1440
1430
  /** Format: int64 */
@@ -1448,9 +1438,14 @@ interface components {
1448
1438
  total_cost_cents: number;
1449
1439
  /**
1450
1440
  * Format: int64
1451
- * @description Spending limit for this billing window (nil if no limit configured)
1441
+ * @description API usage budget for this billing window (nil if unlimited)
1452
1442
  */
1453
1443
  spend_limit_cents?: number;
1444
+ /**
1445
+ * Format: int64
1446
+ * @description Remaining budget (spend_limit_cents minus total_cost_cents, nil if unlimited)
1447
+ */
1448
+ spend_remaining_cents?: number;
1454
1449
  /**
1455
1450
  * Format: int64
1456
1451
  * @description PAYGO wallet balance in cents (available when PAYGO wallet is enabled)
@@ -1795,6 +1790,8 @@ interface components {
1795
1790
  name: string;
1796
1791
  };
1797
1792
  SkillsCompileRequest: {
1793
+ /** @default 3 */
1794
+ max_attempts: number;
1798
1795
  model?: string;
1799
1796
  source: string;
1800
1797
  };
@@ -1415,26 +1415,16 @@ interface components {
1415
1415
  };
1416
1416
  /** @description Customer-visible usage metrics for the current billing window. */
1417
1417
  CustomerMeUsage: {
1418
- /**
1419
- * Format: int64
1420
- * @description Credits granted for this billing window (only for paid tiers)
1421
- */
1422
- credits_granted_cents?: number;
1423
- /**
1424
- * Format: int64
1425
- * @description Credits remaining in this billing window (only for paid tiers)
1426
- */
1427
- credits_remaining_cents?: number;
1428
1418
  daily: components["schemas"]["CustomerUsagePoint"][];
1429
1419
  /** Format: int64 */
1430
1420
  images: number;
1431
- /** @description Whether remaining credits are low (only for paid tiers) */
1421
+ /** @description True when 80% or more of spend limit is used (nil if unlimited) */
1432
1422
  low?: boolean;
1433
1423
  /** @description True when PAYGO wallet can cover subscription overages */
1434
1424
  overage_enabled?: boolean;
1435
1425
  /**
1436
1426
  * Format: float
1437
- * @description Percentage of granted credits used (only for paid tiers)
1427
+ * @description Percentage of spend limit used (nil if unlimited)
1438
1428
  */
1439
1429
  percentage_used?: number;
1440
1430
  /** Format: int64 */
@@ -1448,9 +1438,14 @@ interface components {
1448
1438
  total_cost_cents: number;
1449
1439
  /**
1450
1440
  * Format: int64
1451
- * @description Spending limit for this billing window (nil if no limit configured)
1441
+ * @description API usage budget for this billing window (nil if unlimited)
1452
1442
  */
1453
1443
  spend_limit_cents?: number;
1444
+ /**
1445
+ * Format: int64
1446
+ * @description Remaining budget (spend_limit_cents minus total_cost_cents, nil if unlimited)
1447
+ */
1448
+ spend_remaining_cents?: number;
1454
1449
  /**
1455
1450
  * Format: int64
1456
1451
  * @description PAYGO wallet balance in cents (available when PAYGO wallet is enabled)
@@ -1795,6 +1790,8 @@ interface components {
1795
1790
  name: string;
1796
1791
  };
1797
1792
  SkillsCompileRequest: {
1793
+ /** @default 3 */
1794
+ max_attempts: number;
1798
1795
  model?: string;
1799
1796
  source: string;
1800
1797
  };