@scenario-labs/sdk 2.7.0 → 3.0.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.
Files changed (214) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +10 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/lib/job.d.mts +2 -2
  9. package/lib/job.d.mts.map +1 -1
  10. package/lib/job.d.ts +2 -2
  11. package/lib/job.d.ts.map +1 -1
  12. package/lib/job.js +3 -3
  13. package/lib/job.js.map +1 -1
  14. package/lib/job.mjs +3 -3
  15. package/lib/job.mjs.map +1 -1
  16. package/lib/upload.d.mts +2 -2
  17. package/lib/upload.d.mts.map +1 -1
  18. package/lib/upload.d.ts +2 -2
  19. package/lib/upload.d.ts.map +1 -1
  20. package/lib/upload.js +4 -4
  21. package/lib/upload.js.map +1 -1
  22. package/lib/upload.mjs +4 -4
  23. package/lib/upload.mjs.map +1 -1
  24. package/lib/workflow.d.mts +2 -2
  25. package/lib/workflow.d.mts.map +1 -1
  26. package/lib/workflow.d.ts +2 -2
  27. package/lib/workflow.d.ts.map +1 -1
  28. package/lib/workflow.js +2 -2
  29. package/lib/workflow.js.map +1 -1
  30. package/lib/workflow.mjs +2 -2
  31. package/lib/workflow.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/resources/assets/assets.d.mts +1091 -8
  34. package/resources/assets/assets.d.mts.map +1 -1
  35. package/resources/assets/assets.d.ts +1091 -8
  36. package/resources/assets/assets.d.ts.map +1 -1
  37. package/resources/assets/assets.js +34 -16
  38. package/resources/assets/assets.js.map +1 -1
  39. package/resources/assets/assets.mjs +34 -16
  40. package/resources/assets/assets.mjs.map +1 -1
  41. package/resources/assets/download.d.mts +28 -5
  42. package/resources/assets/download.d.mts.map +1 -1
  43. package/resources/assets/download.d.ts +28 -5
  44. package/resources/assets/download.d.ts.map +1 -1
  45. package/resources/assets/download.js +8 -6
  46. package/resources/assets/download.js.map +1 -1
  47. package/resources/assets/download.mjs +8 -6
  48. package/resources/assets/download.mjs.map +1 -1
  49. package/resources/assets/index.d.mts +1 -1
  50. package/resources/assets/index.d.mts.map +1 -1
  51. package/resources/assets/index.d.ts +1 -1
  52. package/resources/assets/index.d.ts.map +1 -1
  53. package/resources/assets/index.js.map +1 -1
  54. package/resources/assets/index.mjs.map +1 -1
  55. package/resources/collections/assets.d.mts +15 -4
  56. package/resources/collections/assets.d.mts.map +1 -1
  57. package/resources/collections/assets.d.ts +15 -4
  58. package/resources/collections/assets.d.ts.map +1 -1
  59. package/resources/collections/assets.js +14 -4
  60. package/resources/collections/assets.js.map +1 -1
  61. package/resources/collections/assets.mjs +14 -4
  62. package/resources/collections/assets.mjs.map +1 -1
  63. package/resources/collections/collections.d.mts +38 -9
  64. package/resources/collections/collections.d.mts.map +1 -1
  65. package/resources/collections/collections.d.ts +38 -9
  66. package/resources/collections/collections.d.ts.map +1 -1
  67. package/resources/collections/collections.js +11 -8
  68. package/resources/collections/collections.js.map +1 -1
  69. package/resources/collections/collections.mjs +11 -8
  70. package/resources/collections/collections.mjs.map +1 -1
  71. package/resources/collections/index.d.mts +1 -1
  72. package/resources/collections/index.d.mts.map +1 -1
  73. package/resources/collections/index.d.ts +1 -1
  74. package/resources/collections/index.d.ts.map +1 -1
  75. package/resources/collections/index.js.map +1 -1
  76. package/resources/collections/index.mjs.map +1 -1
  77. package/resources/collections/models.d.mts +15 -4
  78. package/resources/collections/models.d.mts.map +1 -1
  79. package/resources/collections/models.d.ts +15 -4
  80. package/resources/collections/models.d.ts.map +1 -1
  81. package/resources/collections/models.js +14 -4
  82. package/resources/collections/models.js.map +1 -1
  83. package/resources/collections/models.mjs +14 -4
  84. package/resources/collections/models.mjs.map +1 -1
  85. package/resources/generate.d.mts +941 -0
  86. package/resources/generate.d.mts.map +1 -1
  87. package/resources/generate.d.ts +941 -0
  88. package/resources/generate.d.ts.map +1 -1
  89. package/resources/generate.js +28 -16
  90. package/resources/generate.js.map +1 -1
  91. package/resources/generate.mjs +28 -16
  92. package/resources/generate.mjs.map +1 -1
  93. package/resources/index.d.mts +5 -5
  94. package/resources/index.d.mts.map +1 -1
  95. package/resources/index.d.ts +5 -5
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/jobs.d.mts +146 -2
  100. package/resources/jobs.d.mts.map +1 -1
  101. package/resources/jobs.d.ts +146 -2
  102. package/resources/jobs.d.ts.map +1 -1
  103. package/resources/jobs.js +8 -4
  104. package/resources/jobs.js.map +1 -1
  105. package/resources/jobs.mjs +8 -4
  106. package/resources/jobs.mjs.map +1 -1
  107. package/resources/models/description.d.mts +10 -0
  108. package/resources/models/description.d.mts.map +1 -1
  109. package/resources/models/description.d.ts +10 -0
  110. package/resources/models/description.d.ts.map +1 -1
  111. package/resources/models/description.js +2 -2
  112. package/resources/models/description.js.map +1 -1
  113. package/resources/models/description.mjs +2 -2
  114. package/resources/models/description.mjs.map +1 -1
  115. package/resources/models/examples.d.mts +344 -0
  116. package/resources/models/examples.d.mts.map +1 -1
  117. package/resources/models/examples.d.ts +344 -0
  118. package/resources/models/examples.d.ts.map +1 -1
  119. package/resources/models/examples.js +2 -2
  120. package/resources/models/examples.js.map +1 -1
  121. package/resources/models/examples.mjs +2 -2
  122. package/resources/models/examples.mjs.map +1 -1
  123. package/resources/models/index.d.mts +1 -1
  124. package/resources/models/index.d.mts.map +1 -1
  125. package/resources/models/index.d.ts +1 -1
  126. package/resources/models/index.d.ts.map +1 -1
  127. package/resources/models/index.js.map +1 -1
  128. package/resources/models/index.mjs.map +1 -1
  129. package/resources/models/models.d.mts +71 -13
  130. package/resources/models/models.d.mts.map +1 -1
  131. package/resources/models/models.d.ts +71 -13
  132. package/resources/models/models.d.ts.map +1 -1
  133. package/resources/models/models.js +30 -18
  134. package/resources/models/models.js.map +1 -1
  135. package/resources/models/models.mjs +30 -18
  136. package/resources/models/models.mjs.map +1 -1
  137. package/resources/models/train.d.mts +93 -0
  138. package/resources/models/train.d.mts.map +1 -1
  139. package/resources/models/train.d.ts +93 -0
  140. package/resources/models/train.d.ts.map +1 -1
  141. package/resources/models/train.js +4 -4
  142. package/resources/models/train.js.map +1 -1
  143. package/resources/models/train.mjs +4 -4
  144. package/resources/models/train.mjs.map +1 -1
  145. package/resources/models/training-images.d.mts +22 -2
  146. package/resources/models/training-images.d.mts.map +1 -1
  147. package/resources/models/training-images.d.ts +22 -2
  148. package/resources/models/training-images.d.ts.map +1 -1
  149. package/resources/models/training-images.js +15 -8
  150. package/resources/models/training-images.js.map +1 -1
  151. package/resources/models/training-images.mjs +15 -8
  152. package/resources/models/training-images.mjs.map +1 -1
  153. package/resources/search.d.mts +10 -0
  154. package/resources/search.d.mts.map +1 -1
  155. package/resources/search.d.ts +10 -0
  156. package/resources/search.d.ts.map +1 -1
  157. package/resources/search.js +4 -4
  158. package/resources/search.js.map +1 -1
  159. package/resources/search.mjs +4 -4
  160. package/resources/search.mjs.map +1 -1
  161. package/resources/tags.d.mts +5 -0
  162. package/resources/tags.d.mts.map +1 -1
  163. package/resources/tags.d.ts +5 -0
  164. package/resources/tags.d.ts.map +1 -1
  165. package/resources/uploads.d.mts +35 -20
  166. package/resources/uploads.d.mts.map +1 -1
  167. package/resources/uploads.d.ts +35 -20
  168. package/resources/uploads.d.ts.map +1 -1
  169. package/resources/uploads.js +8 -6
  170. package/resources/uploads.js.map +1 -1
  171. package/resources/uploads.mjs +8 -6
  172. package/resources/uploads.mjs.map +1 -1
  173. package/resources/usages.d.mts +53 -10
  174. package/resources/usages.d.mts.map +1 -1
  175. package/resources/usages.d.ts +53 -10
  176. package/resources/usages.d.ts.map +1 -1
  177. package/resources/workflows.d.mts +446 -266
  178. package/resources/workflows.d.mts.map +1 -1
  179. package/resources/workflows.d.ts +446 -266
  180. package/resources/workflows.d.ts.map +1 -1
  181. package/resources/workflows.js +20 -12
  182. package/resources/workflows.js.map +1 -1
  183. package/resources/workflows.mjs +20 -12
  184. package/resources/workflows.mjs.map +1 -1
  185. package/src/client.ts +14 -0
  186. package/src/lib/job.ts +8 -3
  187. package/src/lib/upload.ts +5 -3
  188. package/src/lib/workflow.ts +3 -1
  189. package/src/resources/assets/assets.ts +1310 -32
  190. package/src/resources/assets/download.ts +40 -7
  191. package/src/resources/assets/index.ts +1 -0
  192. package/src/resources/collections/assets.ts +29 -6
  193. package/src/resources/collections/collections.ts +59 -12
  194. package/src/resources/collections/index.ts +2 -0
  195. package/src/resources/collections/models.ts +29 -6
  196. package/src/resources/generate.ts +1247 -30
  197. package/src/resources/index.ts +7 -0
  198. package/src/resources/jobs.ts +169 -4
  199. package/src/resources/models/description.ts +14 -2
  200. package/src/resources/models/examples.ts +394 -2
  201. package/src/resources/models/index.ts +1 -0
  202. package/src/resources/models/models.ts +112 -26
  203. package/src/resources/models/train.ts +126 -4
  204. package/src/resources/models/training-images.ts +41 -10
  205. package/src/resources/search.ts +16 -4
  206. package/src/resources/tags.ts +6 -0
  207. package/src/resources/uploads.ts +47 -22
  208. package/src/resources/usages.ts +63 -10
  209. package/src/resources/workflows.ts +783 -563
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -44,6 +44,13 @@ export interface GenerateCaptionResponse {
44
44
  */
45
45
  captions: Array<string>;
46
46
  job: GenerateCaptionResponse.Job;
47
+ /**
48
+ * Compute Units cost per billing action for this request, after discount. Values
49
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
50
+ * charge appear. Lets clients split the total (e.g. generation vs
51
+ * `slop-detection`) — including on dryRun estimates.
52
+ */
53
+ costDetails?: GenerateCaptionResponse.CostDetails;
47
54
  /**
48
55
  * The Compute Units cost for the request billed
49
56
  */
@@ -746,6 +753,26 @@ export declare namespace GenerateCaptionResponse {
746
753
  interface Billing {
747
754
  cuCost: number;
748
755
  cuDiscount: number;
756
+ /**
757
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
758
+ * top of the generation itself, such as `slop-detection`.
759
+ *
760
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
761
+ * values here.
762
+ *
763
+ * Two caveats when displaying it:
764
+ *
765
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
766
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
767
+ * still shows the main action's original charge.
768
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
769
+ * charged outside the job and reported once, as
770
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
771
+ * it.
772
+ *
773
+ * Absent when the job paid for no add-on.
774
+ */
775
+ cuCostDetails?: Billing.CuCostDetails;
749
776
  /**
750
777
  * When true, the credits charged for this job are not automatically refunded if
751
778
  * the generation fails, because the model used does not support refund-on-failure.
@@ -753,6 +780,62 @@ export declare namespace GenerateCaptionResponse {
753
780
  */
754
781
  disableRefund?: boolean;
755
782
  }
783
+ namespace Billing {
784
+ /**
785
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
786
+ * top of the generation itself, such as `slop-detection`.
787
+ *
788
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
789
+ * values here.
790
+ *
791
+ * Two caveats when displaying it:
792
+ *
793
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
794
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
795
+ * still shows the main action's original charge.
796
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
797
+ * charged outside the job and reported once, as
798
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
799
+ * it.
800
+ *
801
+ * Absent when the job paid for no add-on.
802
+ */
803
+ interface CuCostDetails {
804
+ 'ip-detection'?: number;
805
+ 'slop-detection'?: number;
806
+ }
807
+ }
808
+ }
809
+ /**
810
+ * Compute Units cost per billing action for this request, after discount. Values
811
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
812
+ * charge appear. Lets clients split the total (e.g. generation vs
813
+ * `slop-detection`) — including on dryRun estimates.
814
+ */
815
+ interface CostDetails {
816
+ 'assistant-message'?: number;
817
+ caption?: number;
818
+ 'custom-generation'?: number;
819
+ 'describe-style'?: number;
820
+ detection?: number;
821
+ embed?: number;
822
+ 'image-prompt-editing'?: number;
823
+ 'inference-images'?: number;
824
+ 'ip-detection'?: number;
825
+ pixelate?: number;
826
+ prompt?: number;
827
+ 'remove-background'?: number;
828
+ repaint?: number;
829
+ restyle?: number;
830
+ segmentation?: number;
831
+ 'skybox-base-360'?: number;
832
+ 'skybox-upscale-360'?: number;
833
+ 'slop-detection'?: number;
834
+ texture?: number;
835
+ 'train-model'?: number;
836
+ translate?: number;
837
+ upscale?: number;
838
+ vectorization?: number;
756
839
  }
757
840
  /**
758
841
  * IP detection findings, when detection ran for this request.
@@ -830,6 +913,13 @@ export interface GenerateDescribeStyleResponse {
830
913
  * A short synthesis that describes the given asset(s) or asset(s) model.
831
914
  */
832
915
  synthesis: string;
916
+ /**
917
+ * Compute Units cost per billing action for this request, after discount. Values
918
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
919
+ * charge appear. Lets clients split the total (e.g. generation vs
920
+ * `slop-detection`) — including on dryRun estimates.
921
+ */
922
+ costDetails?: GenerateDescribeStyleResponse.CostDetails;
833
923
  /**
834
924
  * The Compute Units cost for the request billed
835
925
  */
@@ -1525,6 +1615,26 @@ export declare namespace GenerateDescribeStyleResponse {
1525
1615
  interface Billing {
1526
1616
  cuCost: number;
1527
1617
  cuDiscount: number;
1618
+ /**
1619
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1620
+ * top of the generation itself, such as `slop-detection`.
1621
+ *
1622
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1623
+ * values here.
1624
+ *
1625
+ * Two caveats when displaying it:
1626
+ *
1627
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
1628
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
1629
+ * still shows the main action's original charge.
1630
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
1631
+ * charged outside the job and reported once, as
1632
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
1633
+ * it.
1634
+ *
1635
+ * Absent when the job paid for no add-on.
1636
+ */
1637
+ cuCostDetails?: Billing.CuCostDetails;
1528
1638
  /**
1529
1639
  * When true, the credits charged for this job are not automatically refunded if
1530
1640
  * the generation fails, because the model used does not support refund-on-failure.
@@ -1532,6 +1642,62 @@ export declare namespace GenerateDescribeStyleResponse {
1532
1642
  */
1533
1643
  disableRefund?: boolean;
1534
1644
  }
1645
+ namespace Billing {
1646
+ /**
1647
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1648
+ * top of the generation itself, such as `slop-detection`.
1649
+ *
1650
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1651
+ * values here.
1652
+ *
1653
+ * Two caveats when displaying it:
1654
+ *
1655
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
1656
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
1657
+ * still shows the main action's original charge.
1658
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
1659
+ * charged outside the job and reported once, as
1660
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
1661
+ * it.
1662
+ *
1663
+ * Absent when the job paid for no add-on.
1664
+ */
1665
+ interface CuCostDetails {
1666
+ 'ip-detection'?: number;
1667
+ 'slop-detection'?: number;
1668
+ }
1669
+ }
1670
+ }
1671
+ /**
1672
+ * Compute Units cost per billing action for this request, after discount. Values
1673
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
1674
+ * charge appear. Lets clients split the total (e.g. generation vs
1675
+ * `slop-detection`) — including on dryRun estimates.
1676
+ */
1677
+ interface CostDetails {
1678
+ 'assistant-message'?: number;
1679
+ caption?: number;
1680
+ 'custom-generation'?: number;
1681
+ 'describe-style'?: number;
1682
+ detection?: number;
1683
+ embed?: number;
1684
+ 'image-prompt-editing'?: number;
1685
+ 'inference-images'?: number;
1686
+ 'ip-detection'?: number;
1687
+ pixelate?: number;
1688
+ prompt?: number;
1689
+ 'remove-background'?: number;
1690
+ repaint?: number;
1691
+ restyle?: number;
1692
+ segmentation?: number;
1693
+ 'skybox-base-360'?: number;
1694
+ 'skybox-upscale-360'?: number;
1695
+ 'slop-detection'?: number;
1696
+ texture?: number;
1697
+ 'train-model'?: number;
1698
+ translate?: number;
1699
+ upscale?: number;
1700
+ vectorization?: number;
1535
1701
  }
1536
1702
  /**
1537
1703
  * IP detection findings, when detection ran for this request.
@@ -1602,6 +1768,13 @@ export declare namespace GenerateDescribeStyleResponse {
1602
1768
  export interface GenerateDetectResponse {
1603
1769
  job: GenerateDetectResponse.Job;
1604
1770
  asset?: GenerateDetectResponse.Asset;
1771
+ /**
1772
+ * Compute Units cost per billing action for this request, after discount. Values
1773
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
1774
+ * charge appear. Lets clients split the total (e.g. generation vs
1775
+ * `slop-detection`) — including on dryRun estimates.
1776
+ */
1777
+ costDetails?: GenerateDetectResponse.CostDetails;
1605
1778
  /**
1606
1779
  * The Compute Units cost for the request billed
1607
1780
  */
@@ -2297,6 +2470,26 @@ export declare namespace GenerateDetectResponse {
2297
2470
  interface Billing {
2298
2471
  cuCost: number;
2299
2472
  cuDiscount: number;
2473
+ /**
2474
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2475
+ * top of the generation itself, such as `slop-detection`.
2476
+ *
2477
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2478
+ * values here.
2479
+ *
2480
+ * Two caveats when displaying it:
2481
+ *
2482
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
2483
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
2484
+ * still shows the main action's original charge.
2485
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
2486
+ * charged outside the job and reported once, as
2487
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
2488
+ * it.
2489
+ *
2490
+ * Absent when the job paid for no add-on.
2491
+ */
2492
+ cuCostDetails?: Billing.CuCostDetails;
2300
2493
  /**
2301
2494
  * When true, the credits charged for this job are not automatically refunded if
2302
2495
  * the generation fails, because the model used does not support refund-on-failure.
@@ -2304,6 +2497,31 @@ export declare namespace GenerateDetectResponse {
2304
2497
  */
2305
2498
  disableRefund?: boolean;
2306
2499
  }
2500
+ namespace Billing {
2501
+ /**
2502
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2503
+ * top of the generation itself, such as `slop-detection`.
2504
+ *
2505
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2506
+ * values here.
2507
+ *
2508
+ * Two caveats when displaying it:
2509
+ *
2510
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
2511
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
2512
+ * still shows the main action's original charge.
2513
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
2514
+ * charged outside the job and reported once, as
2515
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
2516
+ * it.
2517
+ *
2518
+ * Absent when the job paid for no add-on.
2519
+ */
2520
+ interface CuCostDetails {
2521
+ 'ip-detection'?: number;
2522
+ 'slop-detection'?: number;
2523
+ }
2524
+ }
2307
2525
  }
2308
2526
  interface Asset {
2309
2527
  /**
@@ -2430,6 +2648,13 @@ export declare namespace GenerateDetectResponse {
2430
2648
  * Contains the assetId and the url of the preview.
2431
2649
  */
2432
2650
  preview?: Asset.Preview;
2651
+ /**
2652
+ * SlopGuard detection result, computed asynchronously after generation.
2653
+ *
2654
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
2655
+ * asset is read with `withSlopGuardDetails=true`.
2656
+ */
2657
+ slopGuard?: Asset.SlopGuard;
2433
2658
  /**
2434
2659
  * The asset's thumbnail.
2435
2660
  *
@@ -3045,6 +3270,121 @@ export declare namespace GenerateDetectResponse {
3045
3270
  assetId: string;
3046
3271
  url: string;
3047
3272
  }
3273
+ /**
3274
+ * SlopGuard detection result, computed asynchronously after generation.
3275
+ *
3276
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
3277
+ * asset is read with `withSlopGuardDetails=true`.
3278
+ */
3279
+ interface SlopGuard {
3280
+ /**
3281
+ * ISO-8601 timestamp of when scoring ran
3282
+ */
3283
+ computedAt: string;
3284
+ /**
3285
+ * Whether scoring succeeded or errored
3286
+ */
3287
+ status: 'error' | 'scored';
3288
+ /**
3289
+ * Rubric/model version that produced this result
3290
+ */
3291
+ version: string;
3292
+ /**
3293
+ * Generic AI-quality sub-score
3294
+ */
3295
+ aiQualityScore?: number;
3296
+ /**
3297
+ * Ids of briefs that contributed
3298
+ */
3299
+ appliedBriefIds?: Array<string>;
3300
+ /**
3301
+ * Brief-compliance sub-score (omitted when no brief applied)
3302
+ */
3303
+ briefComplianceScore?: number;
3304
+ /**
3305
+ * Per-dimension reasons and suggestions, as produced by the detector.
3306
+ *
3307
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
3308
+ * project that owns it — the brief-compliance text paraphrases that project's
3309
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
3310
+ * omitted when the archived verdict is unavailable (asset scored by an older
3311
+ * version, or an unreadable archive).
3312
+ */
3313
+ details?: SlopGuard.Details;
3314
+ /**
3315
+ * Error message when status is 'error' (truncated)
3316
+ */
3317
+ error?: string;
3318
+ /**
3319
+ * 0–100 composite score (present when status is 'scored')
3320
+ */
3321
+ overallScore?: number;
3322
+ /**
3323
+ * Sensitivity used for the verdict
3324
+ */
3325
+ sensitivity?: 'high' | 'low' | 'medium';
3326
+ /**
3327
+ * pass / warn / fail (present when status is 'scored')
3328
+ */
3329
+ verdict?: 'fail' | 'pass' | 'warn';
3330
+ }
3331
+ namespace SlopGuard {
3332
+ /**
3333
+ * Per-dimension reasons and suggestions, as produced by the detector.
3334
+ *
3335
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
3336
+ * project that owns it — the brief-compliance text paraphrases that project's
3337
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
3338
+ * omitted when the archived verdict is unavailable (asset scored by an older
3339
+ * version, or an unreadable archive).
3340
+ */
3341
+ interface Details {
3342
+ /**
3343
+ * Always-on generic AI-quality dimension
3344
+ */
3345
+ aiQuality: Details.AIQuality;
3346
+ /**
3347
+ * Brief-compliance dimension; omitted when no brief applied
3348
+ */
3349
+ briefCompliance?: Details.BriefCompliance;
3350
+ }
3351
+ namespace Details {
3352
+ /**
3353
+ * Always-on generic AI-quality dimension
3354
+ */
3355
+ interface AIQuality {
3356
+ /**
3357
+ * Why the image scored as it did
3358
+ */
3359
+ reasons: Array<string>;
3360
+ /**
3361
+ * 0–100; higher is better (more compliant / less AI-looking)
3362
+ */
3363
+ score: number;
3364
+ /**
3365
+ * Actionable suggestions to improve the score
3366
+ */
3367
+ suggestions: Array<string>;
3368
+ }
3369
+ /**
3370
+ * Brief-compliance dimension; omitted when no brief applied
3371
+ */
3372
+ interface BriefCompliance {
3373
+ /**
3374
+ * Why the image scored as it did
3375
+ */
3376
+ reasons: Array<string>;
3377
+ /**
3378
+ * 0–100; higher is better (more compliant / less AI-looking)
3379
+ */
3380
+ score: number;
3381
+ /**
3382
+ * Actionable suggestions to improve the score
3383
+ */
3384
+ suggestions: Array<string>;
3385
+ }
3386
+ }
3387
+ }
3048
3388
  /**
3049
3389
  * The asset's thumbnail.
3050
3390
  *
@@ -3055,6 +3395,37 @@ export declare namespace GenerateDetectResponse {
3055
3395
  url: string;
3056
3396
  }
3057
3397
  }
3398
+ /**
3399
+ * Compute Units cost per billing action for this request, after discount. Values
3400
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
3401
+ * charge appear. Lets clients split the total (e.g. generation vs
3402
+ * `slop-detection`) — including on dryRun estimates.
3403
+ */
3404
+ interface CostDetails {
3405
+ 'assistant-message'?: number;
3406
+ caption?: number;
3407
+ 'custom-generation'?: number;
3408
+ 'describe-style'?: number;
3409
+ detection?: number;
3410
+ embed?: number;
3411
+ 'image-prompt-editing'?: number;
3412
+ 'inference-images'?: number;
3413
+ 'ip-detection'?: number;
3414
+ pixelate?: number;
3415
+ prompt?: number;
3416
+ 'remove-background'?: number;
3417
+ repaint?: number;
3418
+ restyle?: number;
3419
+ segmentation?: number;
3420
+ 'skybox-base-360'?: number;
3421
+ 'skybox-upscale-360'?: number;
3422
+ 'slop-detection'?: number;
3423
+ texture?: number;
3424
+ 'train-model'?: number;
3425
+ translate?: number;
3426
+ upscale?: number;
3427
+ vectorization?: number;
3428
+ }
3058
3429
  /**
3059
3430
  * IP detection findings, when detection ran for this request.
3060
3431
  */
@@ -3129,6 +3500,13 @@ export interface GenerateEmbedResponse {
3129
3500
  */
3130
3501
  embedding: Array<number>;
3131
3502
  job: GenerateEmbedResponse.Job;
3503
+ /**
3504
+ * Compute Units cost per billing action for this request, after discount. Values
3505
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
3506
+ * charge appear. Lets clients split the total (e.g. generation vs
3507
+ * `slop-detection`) — including on dryRun estimates.
3508
+ */
3509
+ costDetails?: GenerateEmbedResponse.CostDetails;
3132
3510
  /**
3133
3511
  * The Compute Units cost for the request billed
3134
3512
  */
@@ -3824,6 +4202,26 @@ export declare namespace GenerateEmbedResponse {
3824
4202
  interface Billing {
3825
4203
  cuCost: number;
3826
4204
  cuDiscount: number;
4205
+ /**
4206
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
4207
+ * top of the generation itself, such as `slop-detection`.
4208
+ *
4209
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
4210
+ * values here.
4211
+ *
4212
+ * Two caveats when displaying it:
4213
+ *
4214
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
4215
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
4216
+ * still shows the main action's original charge.
4217
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
4218
+ * charged outside the job and reported once, as
4219
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
4220
+ * it.
4221
+ *
4222
+ * Absent when the job paid for no add-on.
4223
+ */
4224
+ cuCostDetails?: Billing.CuCostDetails;
3827
4225
  /**
3828
4226
  * When true, the credits charged for this job are not automatically refunded if
3829
4227
  * the generation fails, because the model used does not support refund-on-failure.
@@ -3831,6 +4229,62 @@ export declare namespace GenerateEmbedResponse {
3831
4229
  */
3832
4230
  disableRefund?: boolean;
3833
4231
  }
4232
+ namespace Billing {
4233
+ /**
4234
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
4235
+ * top of the generation itself, such as `slop-detection`.
4236
+ *
4237
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
4238
+ * values here.
4239
+ *
4240
+ * Two caveats when displaying it:
4241
+ *
4242
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
4243
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
4244
+ * still shows the main action's original charge.
4245
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
4246
+ * charged outside the job and reported once, as
4247
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
4248
+ * it.
4249
+ *
4250
+ * Absent when the job paid for no add-on.
4251
+ */
4252
+ interface CuCostDetails {
4253
+ 'ip-detection'?: number;
4254
+ 'slop-detection'?: number;
4255
+ }
4256
+ }
4257
+ }
4258
+ /**
4259
+ * Compute Units cost per billing action for this request, after discount. Values
4260
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
4261
+ * charge appear. Lets clients split the total (e.g. generation vs
4262
+ * `slop-detection`) — including on dryRun estimates.
4263
+ */
4264
+ interface CostDetails {
4265
+ 'assistant-message'?: number;
4266
+ caption?: number;
4267
+ 'custom-generation'?: number;
4268
+ 'describe-style'?: number;
4269
+ detection?: number;
4270
+ embed?: number;
4271
+ 'image-prompt-editing'?: number;
4272
+ 'inference-images'?: number;
4273
+ 'ip-detection'?: number;
4274
+ pixelate?: number;
4275
+ prompt?: number;
4276
+ 'remove-background'?: number;
4277
+ repaint?: number;
4278
+ restyle?: number;
4279
+ segmentation?: number;
4280
+ 'skybox-base-360'?: number;
4281
+ 'skybox-upscale-360'?: number;
4282
+ 'slop-detection'?: number;
4283
+ texture?: number;
4284
+ 'train-model'?: number;
4285
+ translate?: number;
4286
+ upscale?: number;
4287
+ vectorization?: number;
3834
4288
  }
3835
4289
  /**
3836
4290
  * IP detection findings, when detection ran for this request.
@@ -3901,6 +4355,13 @@ export declare namespace GenerateEmbedResponse {
3901
4355
  export interface GeneratePatchResponse {
3902
4356
  job: GeneratePatchResponse.Job;
3903
4357
  asset?: GeneratePatchResponse.Asset;
4358
+ /**
4359
+ * Compute Units cost per billing action for this request, after discount. Values
4360
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
4361
+ * charge appear. Lets clients split the total (e.g. generation vs
4362
+ * `slop-detection`) — including on dryRun estimates.
4363
+ */
4364
+ costDetails?: GeneratePatchResponse.CostDetails;
3904
4365
  /**
3905
4366
  * The Compute Units cost for the request billed
3906
4367
  */
@@ -4596,6 +5057,26 @@ export declare namespace GeneratePatchResponse {
4596
5057
  interface Billing {
4597
5058
  cuCost: number;
4598
5059
  cuDiscount: number;
5060
+ /**
5061
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
5062
+ * top of the generation itself, such as `slop-detection`.
5063
+ *
5064
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
5065
+ * values here.
5066
+ *
5067
+ * Two caveats when displaying it:
5068
+ *
5069
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
5070
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
5071
+ * still shows the main action's original charge.
5072
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
5073
+ * charged outside the job and reported once, as
5074
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
5075
+ * it.
5076
+ *
5077
+ * Absent when the job paid for no add-on.
5078
+ */
5079
+ cuCostDetails?: Billing.CuCostDetails;
4599
5080
  /**
4600
5081
  * When true, the credits charged for this job are not automatically refunded if
4601
5082
  * the generation fails, because the model used does not support refund-on-failure.
@@ -4603,6 +5084,31 @@ export declare namespace GeneratePatchResponse {
4603
5084
  */
4604
5085
  disableRefund?: boolean;
4605
5086
  }
5087
+ namespace Billing {
5088
+ /**
5089
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
5090
+ * top of the generation itself, such as `slop-detection`.
5091
+ *
5092
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
5093
+ * values here.
5094
+ *
5095
+ * Two caveats when displaying it:
5096
+ *
5097
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
5098
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
5099
+ * still shows the main action's original charge.
5100
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
5101
+ * charged outside the job and reported once, as
5102
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
5103
+ * it.
5104
+ *
5105
+ * Absent when the job paid for no add-on.
5106
+ */
5107
+ interface CuCostDetails {
5108
+ 'ip-detection'?: number;
5109
+ 'slop-detection'?: number;
5110
+ }
5111
+ }
4606
5112
  }
4607
5113
  interface Asset {
4608
5114
  /**
@@ -4729,6 +5235,13 @@ export declare namespace GeneratePatchResponse {
4729
5235
  * Contains the assetId and the url of the preview.
4730
5236
  */
4731
5237
  preview?: Asset.Preview;
5238
+ /**
5239
+ * SlopGuard detection result, computed asynchronously after generation.
5240
+ *
5241
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
5242
+ * asset is read with `withSlopGuardDetails=true`.
5243
+ */
5244
+ slopGuard?: Asset.SlopGuard;
4732
5245
  /**
4733
5246
  * The asset's thumbnail.
4734
5247
  *
@@ -5344,6 +5857,121 @@ export declare namespace GeneratePatchResponse {
5344
5857
  assetId: string;
5345
5858
  url: string;
5346
5859
  }
5860
+ /**
5861
+ * SlopGuard detection result, computed asynchronously after generation.
5862
+ *
5863
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
5864
+ * asset is read with `withSlopGuardDetails=true`.
5865
+ */
5866
+ interface SlopGuard {
5867
+ /**
5868
+ * ISO-8601 timestamp of when scoring ran
5869
+ */
5870
+ computedAt: string;
5871
+ /**
5872
+ * Whether scoring succeeded or errored
5873
+ */
5874
+ status: 'error' | 'scored';
5875
+ /**
5876
+ * Rubric/model version that produced this result
5877
+ */
5878
+ version: string;
5879
+ /**
5880
+ * Generic AI-quality sub-score
5881
+ */
5882
+ aiQualityScore?: number;
5883
+ /**
5884
+ * Ids of briefs that contributed
5885
+ */
5886
+ appliedBriefIds?: Array<string>;
5887
+ /**
5888
+ * Brief-compliance sub-score (omitted when no brief applied)
5889
+ */
5890
+ briefComplianceScore?: number;
5891
+ /**
5892
+ * Per-dimension reasons and suggestions, as produced by the detector.
5893
+ *
5894
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
5895
+ * project that owns it — the brief-compliance text paraphrases that project's
5896
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
5897
+ * omitted when the archived verdict is unavailable (asset scored by an older
5898
+ * version, or an unreadable archive).
5899
+ */
5900
+ details?: SlopGuard.Details;
5901
+ /**
5902
+ * Error message when status is 'error' (truncated)
5903
+ */
5904
+ error?: string;
5905
+ /**
5906
+ * 0–100 composite score (present when status is 'scored')
5907
+ */
5908
+ overallScore?: number;
5909
+ /**
5910
+ * Sensitivity used for the verdict
5911
+ */
5912
+ sensitivity?: 'high' | 'low' | 'medium';
5913
+ /**
5914
+ * pass / warn / fail (present when status is 'scored')
5915
+ */
5916
+ verdict?: 'fail' | 'pass' | 'warn';
5917
+ }
5918
+ namespace SlopGuard {
5919
+ /**
5920
+ * Per-dimension reasons and suggestions, as produced by the detector.
5921
+ *
5922
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
5923
+ * project that owns it — the brief-compliance text paraphrases that project's
5924
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
5925
+ * omitted when the archived verdict is unavailable (asset scored by an older
5926
+ * version, or an unreadable archive).
5927
+ */
5928
+ interface Details {
5929
+ /**
5930
+ * Always-on generic AI-quality dimension
5931
+ */
5932
+ aiQuality: Details.AIQuality;
5933
+ /**
5934
+ * Brief-compliance dimension; omitted when no brief applied
5935
+ */
5936
+ briefCompliance?: Details.BriefCompliance;
5937
+ }
5938
+ namespace Details {
5939
+ /**
5940
+ * Always-on generic AI-quality dimension
5941
+ */
5942
+ interface AIQuality {
5943
+ /**
5944
+ * Why the image scored as it did
5945
+ */
5946
+ reasons: Array<string>;
5947
+ /**
5948
+ * 0–100; higher is better (more compliant / less AI-looking)
5949
+ */
5950
+ score: number;
5951
+ /**
5952
+ * Actionable suggestions to improve the score
5953
+ */
5954
+ suggestions: Array<string>;
5955
+ }
5956
+ /**
5957
+ * Brief-compliance dimension; omitted when no brief applied
5958
+ */
5959
+ interface BriefCompliance {
5960
+ /**
5961
+ * Why the image scored as it did
5962
+ */
5963
+ reasons: Array<string>;
5964
+ /**
5965
+ * 0–100; higher is better (more compliant / less AI-looking)
5966
+ */
5967
+ score: number;
5968
+ /**
5969
+ * Actionable suggestions to improve the score
5970
+ */
5971
+ suggestions: Array<string>;
5972
+ }
5973
+ }
5974
+ }
5347
5975
  /**
5348
5976
  * The asset's thumbnail.
5349
5977
  *
@@ -5354,6 +5982,37 @@ export declare namespace GeneratePatchResponse {
5354
5982
  url: string;
5355
5983
  }
5356
5984
  }
5985
+ /**
5986
+ * Compute Units cost per billing action for this request, after discount. Values
5987
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
5988
+ * charge appear. Lets clients split the total (e.g. generation vs
5989
+ * `slop-detection`) — including on dryRun estimates.
5990
+ */
5991
+ interface CostDetails {
5992
+ 'assistant-message'?: number;
5993
+ caption?: number;
5994
+ 'custom-generation'?: number;
5995
+ 'describe-style'?: number;
5996
+ detection?: number;
5997
+ embed?: number;
5998
+ 'image-prompt-editing'?: number;
5999
+ 'inference-images'?: number;
6000
+ 'ip-detection'?: number;
6001
+ pixelate?: number;
6002
+ prompt?: number;
6003
+ 'remove-background'?: number;
6004
+ repaint?: number;
6005
+ restyle?: number;
6006
+ segmentation?: number;
6007
+ 'skybox-base-360'?: number;
6008
+ 'skybox-upscale-360'?: number;
6009
+ 'slop-detection'?: number;
6010
+ texture?: number;
6011
+ 'train-model'?: number;
6012
+ translate?: number;
6013
+ upscale?: number;
6014
+ vectorization?: number;
6015
+ }
5357
6016
  /**
5358
6017
  * IP detection findings, when detection ran for this request.
5359
6018
  */
@@ -5431,6 +6090,13 @@ export interface GeneratePromptResponse {
5431
6090
  * the prompt text of `calls[i]`.
5432
6091
  */
5433
6092
  calls?: Array<GeneratePromptResponse.Call>;
6093
+ /**
6094
+ * Compute Units cost per billing action for this request, after discount. Values
6095
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
6096
+ * charge appear. Lets clients split the total (e.g. generation vs
6097
+ * `slop-detection`) — including on dryRun estimates.
6098
+ */
6099
+ costDetails?: GeneratePromptResponse.CostDetails;
5434
6100
  /**
5435
6101
  * The Compute Units cost for the request billed
5436
6102
  */
@@ -6130,6 +6796,26 @@ export declare namespace GeneratePromptResponse {
6130
6796
  interface Billing {
6131
6797
  cuCost: number;
6132
6798
  cuDiscount: number;
6799
+ /**
6800
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
6801
+ * top of the generation itself, such as `slop-detection`.
6802
+ *
6803
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
6804
+ * values here.
6805
+ *
6806
+ * Two caveats when displaying it:
6807
+ *
6808
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
6809
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
6810
+ * still shows the main action's original charge.
6811
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
6812
+ * charged outside the job and reported once, as
6813
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
6814
+ * it.
6815
+ *
6816
+ * Absent when the job paid for no add-on.
6817
+ */
6818
+ cuCostDetails?: Billing.CuCostDetails;
6133
6819
  /**
6134
6820
  * When true, the credits charged for this job are not automatically refunded if
6135
6821
  * the generation fails, because the model used does not support refund-on-failure.
@@ -6137,6 +6823,31 @@ export declare namespace GeneratePromptResponse {
6137
6823
  */
6138
6824
  disableRefund?: boolean;
6139
6825
  }
6826
+ namespace Billing {
6827
+ /**
6828
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
6829
+ * top of the generation itself, such as `slop-detection`.
6830
+ *
6831
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
6832
+ * values here.
6833
+ *
6834
+ * Two caveats when displaying it:
6835
+ *
6836
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
6837
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
6838
+ * still shows the main action's original charge.
6839
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
6840
+ * charged outside the job and reported once, as
6841
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
6842
+ * it.
6843
+ *
6844
+ * Absent when the job paid for no add-on.
6845
+ */
6846
+ interface CuCostDetails {
6847
+ 'ip-detection'?: number;
6848
+ 'slop-detection'?: number;
6849
+ }
6850
+ }
6140
6851
  }
6141
6852
  /**
6142
6853
  * A complete, ready-to-run model call proposed by Prompt Spark v3.
@@ -6159,6 +6870,37 @@ export declare namespace GeneratePromptResponse {
6159
6870
  */
6160
6871
  rationale?: string;
6161
6872
  }
6873
+ /**
6874
+ * Compute Units cost per billing action for this request, after discount. Values
6875
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
6876
+ * charge appear. Lets clients split the total (e.g. generation vs
6877
+ * `slop-detection`) — including on dryRun estimates.
6878
+ */
6879
+ interface CostDetails {
6880
+ 'assistant-message'?: number;
6881
+ caption?: number;
6882
+ 'custom-generation'?: number;
6883
+ 'describe-style'?: number;
6884
+ detection?: number;
6885
+ embed?: number;
6886
+ 'image-prompt-editing'?: number;
6887
+ 'inference-images'?: number;
6888
+ 'ip-detection'?: number;
6889
+ pixelate?: number;
6890
+ prompt?: number;
6891
+ 'remove-background'?: number;
6892
+ repaint?: number;
6893
+ restyle?: number;
6894
+ segmentation?: number;
6895
+ 'skybox-base-360'?: number;
6896
+ 'skybox-upscale-360'?: number;
6897
+ 'slop-detection'?: number;
6898
+ texture?: number;
6899
+ 'train-model'?: number;
6900
+ translate?: number;
6901
+ upscale?: number;
6902
+ vectorization?: number;
6903
+ }
6162
6904
  /**
6163
6905
  * IP detection findings, when detection ran for this request.
6164
6906
  */
@@ -6227,6 +6969,13 @@ export declare namespace GeneratePromptResponse {
6227
6969
  }
6228
6970
  export interface GenerateRunModelResponse {
6229
6971
  job: GenerateRunModelResponse.Job;
6972
+ /**
6973
+ * Compute Units cost per billing action for this request, after discount. Values
6974
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
6975
+ * charge appear. Lets clients split the total (e.g. generation vs
6976
+ * `slop-detection`) — including on dryRun estimates.
6977
+ */
6978
+ costDetails?: GenerateRunModelResponse.CostDetails;
6230
6979
  /**
6231
6980
  * The Compute Units cost for the request billed
6232
6981
  */
@@ -6922,6 +7671,26 @@ export declare namespace GenerateRunModelResponse {
6922
7671
  interface Billing {
6923
7672
  cuCost: number;
6924
7673
  cuDiscount: number;
7674
+ /**
7675
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
7676
+ * top of the generation itself, such as `slop-detection`.
7677
+ *
7678
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
7679
+ * values here.
7680
+ *
7681
+ * Two caveats when displaying it:
7682
+ *
7683
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
7684
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
7685
+ * still shows the main action's original charge.
7686
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
7687
+ * charged outside the job and reported once, as
7688
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
7689
+ * it.
7690
+ *
7691
+ * Absent when the job paid for no add-on.
7692
+ */
7693
+ cuCostDetails?: Billing.CuCostDetails;
6925
7694
  /**
6926
7695
  * When true, the credits charged for this job are not automatically refunded if
6927
7696
  * the generation fails, because the model used does not support refund-on-failure.
@@ -6929,6 +7698,62 @@ export declare namespace GenerateRunModelResponse {
6929
7698
  */
6930
7699
  disableRefund?: boolean;
6931
7700
  }
7701
+ namespace Billing {
7702
+ /**
7703
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
7704
+ * top of the generation itself, such as `slop-detection`.
7705
+ *
7706
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
7707
+ * values here.
7708
+ *
7709
+ * Two caveats when displaying it:
7710
+ *
7711
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
7712
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
7713
+ * still shows the main action's original charge.
7714
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
7715
+ * charged outside the job and reported once, as
7716
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
7717
+ * it.
7718
+ *
7719
+ * Absent when the job paid for no add-on.
7720
+ */
7721
+ interface CuCostDetails {
7722
+ 'ip-detection'?: number;
7723
+ 'slop-detection'?: number;
7724
+ }
7725
+ }
7726
+ }
7727
+ /**
7728
+ * Compute Units cost per billing action for this request, after discount. Values
7729
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
7730
+ * charge appear. Lets clients split the total (e.g. generation vs
7731
+ * `slop-detection`) — including on dryRun estimates.
7732
+ */
7733
+ interface CostDetails {
7734
+ 'assistant-message'?: number;
7735
+ caption?: number;
7736
+ 'custom-generation'?: number;
7737
+ 'describe-style'?: number;
7738
+ detection?: number;
7739
+ embed?: number;
7740
+ 'image-prompt-editing'?: number;
7741
+ 'inference-images'?: number;
7742
+ 'ip-detection'?: number;
7743
+ pixelate?: number;
7744
+ prompt?: number;
7745
+ 'remove-background'?: number;
7746
+ repaint?: number;
7747
+ restyle?: number;
7748
+ segmentation?: number;
7749
+ 'skybox-base-360'?: number;
7750
+ 'skybox-upscale-360'?: number;
7751
+ 'slop-detection'?: number;
7752
+ texture?: number;
7753
+ 'train-model'?: number;
7754
+ translate?: number;
7755
+ upscale?: number;
7756
+ vectorization?: number;
6932
7757
  }
6933
7758
  /**
6934
7759
  * IP detection findings, when detection ran for this request.
@@ -7006,6 +7831,13 @@ export interface GenerateTranslateResponse {
7006
7831
  * The translated prompt.
7007
7832
  */
7008
7833
  translation: string;
7834
+ /**
7835
+ * Compute Units cost per billing action for this request, after discount. Values
7836
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
7837
+ * charge appear. Lets clients split the total (e.g. generation vs
7838
+ * `slop-detection`) — including on dryRun estimates.
7839
+ */
7840
+ costDetails?: GenerateTranslateResponse.CostDetails;
7009
7841
  /**
7010
7842
  * The Compute Units cost for the request billed
7011
7843
  */
@@ -7701,6 +8533,26 @@ export declare namespace GenerateTranslateResponse {
7701
8533
  interface Billing {
7702
8534
  cuCost: number;
7703
8535
  cuDiscount: number;
8536
+ /**
8537
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
8538
+ * top of the generation itself, such as `slop-detection`.
8539
+ *
8540
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
8541
+ * values here.
8542
+ *
8543
+ * Two caveats when displaying it:
8544
+ *
8545
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
8546
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
8547
+ * still shows the main action's original charge.
8548
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
8549
+ * charged outside the job and reported once, as
8550
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
8551
+ * it.
8552
+ *
8553
+ * Absent when the job paid for no add-on.
8554
+ */
8555
+ cuCostDetails?: Billing.CuCostDetails;
7704
8556
  /**
7705
8557
  * When true, the credits charged for this job are not automatically refunded if
7706
8558
  * the generation fails, because the model used does not support refund-on-failure.
@@ -7708,6 +8560,62 @@ export declare namespace GenerateTranslateResponse {
7708
8560
  */
7709
8561
  disableRefund?: boolean;
7710
8562
  }
8563
+ namespace Billing {
8564
+ /**
8565
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
8566
+ * top of the generation itself, such as `slop-detection`.
8567
+ *
8568
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
8569
+ * values here.
8570
+ *
8571
+ * Two caveats when displaying it:
8572
+ *
8573
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
8574
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
8575
+ * still shows the main action's original charge.
8576
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
8577
+ * charged outside the job and reported once, as
8578
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
8579
+ * it.
8580
+ *
8581
+ * Absent when the job paid for no add-on.
8582
+ */
8583
+ interface CuCostDetails {
8584
+ 'ip-detection'?: number;
8585
+ 'slop-detection'?: number;
8586
+ }
8587
+ }
8588
+ }
8589
+ /**
8590
+ * Compute Units cost per billing action for this request, after discount. Values
8591
+ * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
8592
+ * charge appear. Lets clients split the total (e.g. generation vs
8593
+ * `slop-detection`) — including on dryRun estimates.
8594
+ */
8595
+ interface CostDetails {
8596
+ 'assistant-message'?: number;
8597
+ caption?: number;
8598
+ 'custom-generation'?: number;
8599
+ 'describe-style'?: number;
8600
+ detection?: number;
8601
+ embed?: number;
8602
+ 'image-prompt-editing'?: number;
8603
+ 'inference-images'?: number;
8604
+ 'ip-detection'?: number;
8605
+ pixelate?: number;
8606
+ prompt?: number;
8607
+ 'remove-background'?: number;
8608
+ repaint?: number;
8609
+ restyle?: number;
8610
+ segmentation?: number;
8611
+ 'skybox-base-360'?: number;
8612
+ 'skybox-upscale-360'?: number;
8613
+ 'slop-detection'?: number;
8614
+ texture?: number;
8615
+ 'train-model'?: number;
8616
+ translate?: number;
8617
+ upscale?: number;
8618
+ vectorization?: number;
7711
8619
  }
7712
8620
  /**
7713
8621
  * IP detection findings, when detection ran for this request.
@@ -7799,6 +8707,10 @@ export interface GenerateCaptionParams {
7799
8707
  * Query param
7800
8708
  */
7801
8709
  dryRun?: unknown;
8710
+ /**
8711
+ * Query param
8712
+ */
8713
+ projectId?: unknown;
7802
8714
  /**
7803
8715
  * Body param: The assetIds to generate captions. Results are returned in the same
7804
8716
  * order as the given assetIds. Deprecated, use `images` parameter instead.
@@ -7855,6 +8767,10 @@ export interface GenerateDescribeStyleParams {
7855
8767
  * Query param
7856
8768
  */
7857
8769
  dryRun?: unknown;
8770
+ /**
8771
+ * Query param
8772
+ */
8773
+ projectId?: unknown;
7858
8774
  /**
7859
8775
  * Body param: The asset ids used to condition the generation.
7860
8776
  */
@@ -7935,6 +8851,10 @@ export interface GenerateDetectParams {
7935
8851
  * Query param: If set to true, returns the original asset without transformation
7936
8852
  */
7937
8853
  originalAssets?: boolean;
8854
+ /**
8855
+ * Query param
8856
+ */
8857
+ projectId?: unknown;
7938
8858
  /**
7939
8859
  * Body param: Contrast factor for Grayscale detector
7940
8860
  */
@@ -7978,6 +8898,10 @@ export interface GenerateEmbedParams {
7978
8898
  * Query param: If set to true, returns the original asset without transformation
7979
8899
  */
7980
8900
  originalAssets?: boolean;
8901
+ /**
8902
+ * Query param
8903
+ */
8904
+ projectId?: unknown;
7981
8905
  }
7982
8906
  export interface GeneratePatchParams {
7983
8907
  /**
@@ -7994,6 +8918,10 @@ export interface GeneratePatchParams {
7994
8918
  * Query param: If set to true, returns the original asset without transformation
7995
8919
  */
7996
8920
  originalAssets?: boolean;
8921
+ /**
8922
+ * Query param
8923
+ */
8924
+ projectId?: unknown;
7997
8925
  /**
7998
8926
  * Body param: Whether to allow the merged image to extend the size of the original
7999
8927
  * (when x or y are negative or merged image is bigger)
@@ -8072,6 +9000,10 @@ export interface GeneratePromptParams {
8072
9000
  * Query param
8073
9001
  */
8074
9002
  dryRun?: unknown;
9003
+ /**
9004
+ * Query param
9005
+ */
9006
+ projectId?: unknown;
8075
9007
  /**
8076
9008
  * Body param: The asset ids used to condition the generation.
8077
9009
  *
@@ -8174,6 +9106,11 @@ export interface GenerateRunModelParams {
8174
9106
  * generating.
8175
9107
  */
8176
9108
  ipDetection?: boolean;
9109
+ /**
9110
+ * Query param: The projectId used for ownership resource management. Either to
9111
+ * assert ownership or to set the owner of the resource(s)
9112
+ */
9113
+ projectId?: string;
8177
9114
  }
8178
9115
  export interface GenerateTranslateParams {
8179
9116
  /**
@@ -8184,6 +9121,10 @@ export interface GenerateTranslateParams {
8184
9121
  * Query param
8185
9122
  */
8186
9123
  dryRun?: unknown;
9124
+ /**
9125
+ * Query param
9126
+ */
9127
+ projectId?: unknown;
8187
9128
  /**
8188
9129
  * Body param: Whether we try to ensure IP removal for new prompt generation.
8189
9130
  */