@scenario-labs/sdk 2.7.0 → 3.1.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 (225) hide show
  1. package/CHANGELOG.md +30 -2
  2. package/client.d.mts +12 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +2 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -2
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +8 -8
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +8 -8
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +8 -8
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +8 -8
  17. package/core/pagination.mjs.map +1 -1
  18. package/lib/job.d.mts +2 -2
  19. package/lib/job.d.mts.map +1 -1
  20. package/lib/job.d.ts +2 -2
  21. package/lib/job.d.ts.map +1 -1
  22. package/lib/job.js +3 -3
  23. package/lib/job.js.map +1 -1
  24. package/lib/job.mjs +3 -3
  25. package/lib/job.mjs.map +1 -1
  26. package/lib/upload.d.mts +2 -2
  27. package/lib/upload.d.mts.map +1 -1
  28. package/lib/upload.d.ts +2 -2
  29. package/lib/upload.d.ts.map +1 -1
  30. package/lib/upload.js +4 -4
  31. package/lib/upload.js.map +1 -1
  32. package/lib/upload.mjs +4 -4
  33. package/lib/upload.mjs.map +1 -1
  34. package/lib/workflow.d.mts +2 -2
  35. package/lib/workflow.d.mts.map +1 -1
  36. package/lib/workflow.d.ts +2 -2
  37. package/lib/workflow.d.ts.map +1 -1
  38. package/lib/workflow.js +2 -2
  39. package/lib/workflow.js.map +1 -1
  40. package/lib/workflow.mjs +2 -2
  41. package/lib/workflow.mjs.map +1 -1
  42. package/package.json +1 -1
  43. package/resources/assets/assets.d.mts +1107 -24
  44. package/resources/assets/assets.d.mts.map +1 -1
  45. package/resources/assets/assets.d.ts +1107 -24
  46. package/resources/assets/assets.d.ts.map +1 -1
  47. package/resources/assets/assets.js +34 -16
  48. package/resources/assets/assets.js.map +1 -1
  49. package/resources/assets/assets.mjs +34 -16
  50. package/resources/assets/assets.mjs.map +1 -1
  51. package/resources/assets/download.d.mts +28 -5
  52. package/resources/assets/download.d.mts.map +1 -1
  53. package/resources/assets/download.d.ts +28 -5
  54. package/resources/assets/download.d.ts.map +1 -1
  55. package/resources/assets/download.js +8 -6
  56. package/resources/assets/download.js.map +1 -1
  57. package/resources/assets/download.mjs +8 -6
  58. package/resources/assets/download.mjs.map +1 -1
  59. package/resources/assets/index.d.mts +1 -1
  60. package/resources/assets/index.d.mts.map +1 -1
  61. package/resources/assets/index.d.ts +1 -1
  62. package/resources/assets/index.d.ts.map +1 -1
  63. package/resources/assets/index.js.map +1 -1
  64. package/resources/assets/index.mjs.map +1 -1
  65. package/resources/collections/assets.d.mts +15 -4
  66. package/resources/collections/assets.d.mts.map +1 -1
  67. package/resources/collections/assets.d.ts +15 -4
  68. package/resources/collections/assets.d.ts.map +1 -1
  69. package/resources/collections/assets.js +14 -4
  70. package/resources/collections/assets.js.map +1 -1
  71. package/resources/collections/assets.mjs +14 -4
  72. package/resources/collections/assets.mjs.map +1 -1
  73. package/resources/collections/collections.d.mts +38 -9
  74. package/resources/collections/collections.d.mts.map +1 -1
  75. package/resources/collections/collections.d.ts +38 -9
  76. package/resources/collections/collections.d.ts.map +1 -1
  77. package/resources/collections/collections.js +11 -8
  78. package/resources/collections/collections.js.map +1 -1
  79. package/resources/collections/collections.mjs +11 -8
  80. package/resources/collections/collections.mjs.map +1 -1
  81. package/resources/collections/index.d.mts +1 -1
  82. package/resources/collections/index.d.mts.map +1 -1
  83. package/resources/collections/index.d.ts +1 -1
  84. package/resources/collections/index.d.ts.map +1 -1
  85. package/resources/collections/index.js.map +1 -1
  86. package/resources/collections/index.mjs.map +1 -1
  87. package/resources/collections/models.d.mts +15 -4
  88. package/resources/collections/models.d.mts.map +1 -1
  89. package/resources/collections/models.d.ts +15 -4
  90. package/resources/collections/models.d.ts.map +1 -1
  91. package/resources/collections/models.js +14 -4
  92. package/resources/collections/models.js.map +1 -1
  93. package/resources/collections/models.mjs +14 -4
  94. package/resources/collections/models.mjs.map +1 -1
  95. package/resources/generate.d.mts +945 -4
  96. package/resources/generate.d.mts.map +1 -1
  97. package/resources/generate.d.ts +945 -4
  98. package/resources/generate.d.ts.map +1 -1
  99. package/resources/generate.js +28 -16
  100. package/resources/generate.js.map +1 -1
  101. package/resources/generate.mjs +28 -16
  102. package/resources/generate.mjs.map +1 -1
  103. package/resources/index.d.mts +5 -5
  104. package/resources/index.d.mts.map +1 -1
  105. package/resources/index.d.ts +5 -5
  106. package/resources/index.d.ts.map +1 -1
  107. package/resources/index.js.map +1 -1
  108. package/resources/index.mjs.map +1 -1
  109. package/resources/jobs.d.mts +146 -2
  110. package/resources/jobs.d.mts.map +1 -1
  111. package/resources/jobs.d.ts +146 -2
  112. package/resources/jobs.d.ts.map +1 -1
  113. package/resources/jobs.js +8 -4
  114. package/resources/jobs.js.map +1 -1
  115. package/resources/jobs.mjs +8 -4
  116. package/resources/jobs.mjs.map +1 -1
  117. package/resources/models/description.d.mts +14 -4
  118. package/resources/models/description.d.mts.map +1 -1
  119. package/resources/models/description.d.ts +14 -4
  120. package/resources/models/description.d.ts.map +1 -1
  121. package/resources/models/description.js +2 -2
  122. package/resources/models/description.js.map +1 -1
  123. package/resources/models/description.mjs +2 -2
  124. package/resources/models/description.mjs.map +1 -1
  125. package/resources/models/examples.d.mts +348 -4
  126. package/resources/models/examples.d.mts.map +1 -1
  127. package/resources/models/examples.d.ts +348 -4
  128. package/resources/models/examples.d.ts.map +1 -1
  129. package/resources/models/examples.js +2 -2
  130. package/resources/models/examples.js.map +1 -1
  131. package/resources/models/examples.mjs +2 -2
  132. package/resources/models/examples.mjs.map +1 -1
  133. package/resources/models/index.d.mts +1 -1
  134. package/resources/models/index.d.mts.map +1 -1
  135. package/resources/models/index.d.ts +1 -1
  136. package/resources/models/index.d.ts.map +1 -1
  137. package/resources/models/index.js.map +1 -1
  138. package/resources/models/index.mjs.map +1 -1
  139. package/resources/models/models.d.mts +71 -13
  140. package/resources/models/models.d.mts.map +1 -1
  141. package/resources/models/models.d.ts +71 -13
  142. package/resources/models/models.d.ts.map +1 -1
  143. package/resources/models/models.js +30 -18
  144. package/resources/models/models.js.map +1 -1
  145. package/resources/models/models.mjs +30 -18
  146. package/resources/models/models.mjs.map +1 -1
  147. package/resources/models/train.d.mts +93 -0
  148. package/resources/models/train.d.mts.map +1 -1
  149. package/resources/models/train.d.ts +93 -0
  150. package/resources/models/train.d.ts.map +1 -1
  151. package/resources/models/train.js +4 -4
  152. package/resources/models/train.js.map +1 -1
  153. package/resources/models/train.mjs +4 -4
  154. package/resources/models/train.mjs.map +1 -1
  155. package/resources/models/training-images.d.mts +22 -2
  156. package/resources/models/training-images.d.mts.map +1 -1
  157. package/resources/models/training-images.d.ts +22 -2
  158. package/resources/models/training-images.d.ts.map +1 -1
  159. package/resources/models/training-images.js +15 -8
  160. package/resources/models/training-images.js.map +1 -1
  161. package/resources/models/training-images.mjs +15 -8
  162. package/resources/models/training-images.mjs.map +1 -1
  163. package/resources/search.d.mts +10 -0
  164. package/resources/search.d.mts.map +1 -1
  165. package/resources/search.d.ts +10 -0
  166. package/resources/search.d.ts.map +1 -1
  167. package/resources/search.js +4 -4
  168. package/resources/search.js.map +1 -1
  169. package/resources/search.mjs +4 -4
  170. package/resources/search.mjs.map +1 -1
  171. package/resources/tags.d.mts +5 -0
  172. package/resources/tags.d.mts.map +1 -1
  173. package/resources/tags.d.ts +5 -0
  174. package/resources/tags.d.ts.map +1 -1
  175. package/resources/uploads.d.mts +35 -20
  176. package/resources/uploads.d.mts.map +1 -1
  177. package/resources/uploads.d.ts +35 -20
  178. package/resources/uploads.d.ts.map +1 -1
  179. package/resources/uploads.js +8 -6
  180. package/resources/uploads.js.map +1 -1
  181. package/resources/uploads.mjs +8 -6
  182. package/resources/uploads.mjs.map +1 -1
  183. package/resources/usages.d.mts +55 -12
  184. package/resources/usages.d.mts.map +1 -1
  185. package/resources/usages.d.ts +55 -12
  186. package/resources/usages.d.ts.map +1 -1
  187. package/resources/workflows.d.mts +446 -266
  188. package/resources/workflows.d.mts.map +1 -1
  189. package/resources/workflows.d.ts +446 -266
  190. package/resources/workflows.d.ts.map +1 -1
  191. package/resources/workflows.js +20 -12
  192. package/resources/workflows.js.map +1 -1
  193. package/resources/workflows.mjs +20 -12
  194. package/resources/workflows.mjs.map +1 -1
  195. package/src/client.ts +18 -4
  196. package/src/core/pagination.ts +20 -20
  197. package/src/lib/job.ts +8 -3
  198. package/src/lib/upload.ts +5 -3
  199. package/src/lib/workflow.ts +3 -1
  200. package/src/resources/assets/assets.ts +1326 -48
  201. package/src/resources/assets/download.ts +40 -7
  202. package/src/resources/assets/index.ts +1 -0
  203. package/src/resources/collections/assets.ts +29 -6
  204. package/src/resources/collections/collections.ts +59 -12
  205. package/src/resources/collections/index.ts +2 -0
  206. package/src/resources/collections/models.ts +29 -6
  207. package/src/resources/generate.ts +1251 -34
  208. package/src/resources/index.ts +7 -0
  209. package/src/resources/jobs.ts +169 -4
  210. package/src/resources/models/description.ts +18 -6
  211. package/src/resources/models/examples.ts +398 -6
  212. package/src/resources/models/index.ts +1 -0
  213. package/src/resources/models/models.ts +112 -26
  214. package/src/resources/models/train.ts +126 -4
  215. package/src/resources/models/training-images.ts +41 -10
  216. package/src/resources/search.ts +16 -4
  217. package/src/resources/tags.ts +6 -0
  218. package/src/resources/uploads.ts +47 -22
  219. package/src/resources/usages.ts +65 -12
  220. package/src/resources/workflows.ts +783 -563
  221. package/src/version.ts +1 -1
  222. package/version.d.mts +1 -1
  223. package/version.d.ts +1 -1
  224. package/version.js +1 -1
  225. package/version.mjs +1 -1
@@ -166,6 +166,13 @@ export declare namespace ExampleUpdateResponse {
166
166
  * Contains the assetId and the url of the preview.
167
167
  */
168
168
  preview?: Asset.Preview;
169
+ /**
170
+ * SlopGuard detection result, computed asynchronously after generation.
171
+ *
172
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
173
+ * asset is read with `withSlopGuardDetails=true`.
174
+ */
175
+ slopGuard?: Asset.SlopGuard;
169
176
  /**
170
177
  * The asset's thumbnail.
171
178
  *
@@ -737,11 +744,11 @@ export declare namespace ExampleUpdateResponse {
737
744
  /**
738
745
  * Camera eye position in the splat's world frame.
739
746
  */
740
- position: Array<unknown>;
747
+ position: Array<number>;
741
748
  /**
742
749
  * Look-at point in the splat's world frame.
743
750
  */
744
- target: Array<unknown>;
751
+ target: Array<number>;
745
752
  /**
746
753
  * Vertical field of view in degrees (defaults to 50 in the renderer).
747
754
  */
@@ -781,6 +788,121 @@ export declare namespace ExampleUpdateResponse {
781
788
  assetId: string;
782
789
  url: string;
783
790
  }
791
+ /**
792
+ * SlopGuard detection result, computed asynchronously after generation.
793
+ *
794
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
795
+ * asset is read with `withSlopGuardDetails=true`.
796
+ */
797
+ interface SlopGuard {
798
+ /**
799
+ * ISO-8601 timestamp of when scoring ran
800
+ */
801
+ computedAt: string;
802
+ /**
803
+ * Whether scoring succeeded or errored
804
+ */
805
+ status: 'error' | 'scored';
806
+ /**
807
+ * Rubric/model version that produced this result
808
+ */
809
+ version: string;
810
+ /**
811
+ * Generic AI-quality sub-score
812
+ */
813
+ aiQualityScore?: number;
814
+ /**
815
+ * Ids of briefs that contributed
816
+ */
817
+ appliedBriefIds?: Array<string>;
818
+ /**
819
+ * Brief-compliance sub-score (omitted when no brief applied)
820
+ */
821
+ briefComplianceScore?: number;
822
+ /**
823
+ * Per-dimension reasons and suggestions, as produced by the detector.
824
+ *
825
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
826
+ * project that owns it — the brief-compliance text paraphrases that project's
827
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
828
+ * omitted when the archived verdict is unavailable (asset scored by an older
829
+ * version, or an unreadable archive).
830
+ */
831
+ details?: SlopGuard.Details;
832
+ /**
833
+ * Error message when status is 'error' (truncated)
834
+ */
835
+ error?: string;
836
+ /**
837
+ * 0–100 composite score (present when status is 'scored')
838
+ */
839
+ overallScore?: number;
840
+ /**
841
+ * Sensitivity used for the verdict
842
+ */
843
+ sensitivity?: 'high' | 'low' | 'medium';
844
+ /**
845
+ * pass / warn / fail (present when status is 'scored')
846
+ */
847
+ verdict?: 'fail' | 'pass' | 'warn';
848
+ }
849
+ namespace SlopGuard {
850
+ /**
851
+ * Per-dimension reasons and suggestions, as produced by the detector.
852
+ *
853
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
854
+ * project that owns it — the brief-compliance text paraphrases that project's
855
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
856
+ * omitted when the archived verdict is unavailable (asset scored by an older
857
+ * version, or an unreadable archive).
858
+ */
859
+ interface Details {
860
+ /**
861
+ * Always-on generic AI-quality dimension
862
+ */
863
+ aiQuality: Details.AIQuality;
864
+ /**
865
+ * Brief-compliance dimension; omitted when no brief applied
866
+ */
867
+ briefCompliance?: Details.BriefCompliance;
868
+ }
869
+ namespace Details {
870
+ /**
871
+ * Always-on generic AI-quality dimension
872
+ */
873
+ interface AIQuality {
874
+ /**
875
+ * Why the image scored as it did
876
+ */
877
+ reasons: Array<string>;
878
+ /**
879
+ * 0–100; higher is better (more compliant / less AI-looking)
880
+ */
881
+ score: number;
882
+ /**
883
+ * Actionable suggestions to improve the score
884
+ */
885
+ suggestions: Array<string>;
886
+ }
887
+ /**
888
+ * Brief-compliance dimension; omitted when no brief applied
889
+ */
890
+ interface BriefCompliance {
891
+ /**
892
+ * Why the image scored as it did
893
+ */
894
+ reasons: Array<string>;
895
+ /**
896
+ * 0–100; higher is better (more compliant / less AI-looking)
897
+ */
898
+ score: number;
899
+ /**
900
+ * Actionable suggestions to improve the score
901
+ */
902
+ suggestions: Array<string>;
903
+ }
904
+ }
905
+ }
784
906
  /**
785
907
  * The asset's thumbnail.
786
908
  *
@@ -1743,6 +1865,26 @@ export declare namespace ExampleUpdateResponse {
1743
1865
  interface Billing {
1744
1866
  cuCost: number;
1745
1867
  cuDiscount: number;
1868
+ /**
1869
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1870
+ * top of the generation itself, such as `slop-detection`.
1871
+ *
1872
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1873
+ * values here.
1874
+ *
1875
+ * Two caveats when displaying it:
1876
+ *
1877
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
1878
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
1879
+ * still shows the main action's original charge.
1880
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
1881
+ * charged outside the job and reported once, as
1882
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
1883
+ * it.
1884
+ *
1885
+ * Absent when the job paid for no add-on.
1886
+ */
1887
+ cuCostDetails?: Billing.CuCostDetails;
1746
1888
  /**
1747
1889
  * When true, the credits charged for this job are not automatically refunded if
1748
1890
  * the generation fails, because the model used does not support refund-on-failure.
@@ -1750,6 +1892,31 @@ export declare namespace ExampleUpdateResponse {
1750
1892
  */
1751
1893
  disableRefund?: boolean;
1752
1894
  }
1895
+ namespace Billing {
1896
+ /**
1897
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1898
+ * top of the generation itself, such as `slop-detection`.
1899
+ *
1900
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1901
+ * values here.
1902
+ *
1903
+ * Two caveats when displaying it:
1904
+ *
1905
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
1906
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
1907
+ * still shows the main action's original charge.
1908
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
1909
+ * charged outside the job and reported once, as
1910
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
1911
+ * it.
1912
+ *
1913
+ * Absent when the job paid for no add-on.
1914
+ */
1915
+ interface CuCostDetails {
1916
+ 'ip-detection'?: number;
1917
+ 'slop-detection'?: number;
1918
+ }
1919
+ }
1753
1920
  }
1754
1921
  }
1755
1922
  }
@@ -1908,6 +2075,13 @@ export declare namespace ExampleListResponse {
1908
2075
  * Contains the assetId and the url of the preview.
1909
2076
  */
1910
2077
  preview?: Asset.Preview;
2078
+ /**
2079
+ * SlopGuard detection result, computed asynchronously after generation.
2080
+ *
2081
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
2082
+ * asset is read with `withSlopGuardDetails=true`.
2083
+ */
2084
+ slopGuard?: Asset.SlopGuard;
1911
2085
  /**
1912
2086
  * The asset's thumbnail.
1913
2087
  *
@@ -2479,11 +2653,11 @@ export declare namespace ExampleListResponse {
2479
2653
  /**
2480
2654
  * Camera eye position in the splat's world frame.
2481
2655
  */
2482
- position: Array<unknown>;
2656
+ position: Array<number>;
2483
2657
  /**
2484
2658
  * Look-at point in the splat's world frame.
2485
2659
  */
2486
- target: Array<unknown>;
2660
+ target: Array<number>;
2487
2661
  /**
2488
2662
  * Vertical field of view in degrees (defaults to 50 in the renderer).
2489
2663
  */
@@ -2523,6 +2697,121 @@ export declare namespace ExampleListResponse {
2523
2697
  assetId: string;
2524
2698
  url: string;
2525
2699
  }
2700
+ /**
2701
+ * SlopGuard detection result, computed asynchronously after generation.
2702
+ *
2703
+ * `details` (the per-dimension reasons and suggestions) is returned only when the
2704
+ * asset is read with `withSlopGuardDetails=true`.
2705
+ */
2706
+ interface SlopGuard {
2707
+ /**
2708
+ * ISO-8601 timestamp of when scoring ran
2709
+ */
2710
+ computedAt: string;
2711
+ /**
2712
+ * Whether scoring succeeded or errored
2713
+ */
2714
+ status: 'error' | 'scored';
2715
+ /**
2716
+ * Rubric/model version that produced this result
2717
+ */
2718
+ version: string;
2719
+ /**
2720
+ * Generic AI-quality sub-score
2721
+ */
2722
+ aiQualityScore?: number;
2723
+ /**
2724
+ * Ids of briefs that contributed
2725
+ */
2726
+ appliedBriefIds?: Array<string>;
2727
+ /**
2728
+ * Brief-compliance sub-score (omitted when no brief applied)
2729
+ */
2730
+ briefComplianceScore?: number;
2731
+ /**
2732
+ * Per-dimension reasons and suggestions, as produced by the detector.
2733
+ *
2734
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
2735
+ * project that owns it — the brief-compliance text paraphrases that project's
2736
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
2737
+ * omitted when the archived verdict is unavailable (asset scored by an older
2738
+ * version, or an unreadable archive).
2739
+ */
2740
+ details?: SlopGuard.Details;
2741
+ /**
2742
+ * Error message when status is 'error' (truncated)
2743
+ */
2744
+ error?: string;
2745
+ /**
2746
+ * 0–100 composite score (present when status is 'scored')
2747
+ */
2748
+ overallScore?: number;
2749
+ /**
2750
+ * Sensitivity used for the verdict
2751
+ */
2752
+ sensitivity?: 'high' | 'low' | 'medium';
2753
+ /**
2754
+ * pass / warn / fail (present when status is 'scored')
2755
+ */
2756
+ verdict?: 'fail' | 'pass' | 'warn';
2757
+ }
2758
+ namespace SlopGuard {
2759
+ /**
2760
+ * Per-dimension reasons and suggestions, as produced by the detector.
2761
+ *
2762
+ * Returned only when the asset is read with `withSlopGuardDetails=true` by the
2763
+ * project that owns it — the brief-compliance text paraphrases that project's
2764
+ * brief, so a cross-project read of a public asset gets the summary alone. Also
2765
+ * omitted when the archived verdict is unavailable (asset scored by an older
2766
+ * version, or an unreadable archive).
2767
+ */
2768
+ interface Details {
2769
+ /**
2770
+ * Always-on generic AI-quality dimension
2771
+ */
2772
+ aiQuality: Details.AIQuality;
2773
+ /**
2774
+ * Brief-compliance dimension; omitted when no brief applied
2775
+ */
2776
+ briefCompliance?: Details.BriefCompliance;
2777
+ }
2778
+ namespace Details {
2779
+ /**
2780
+ * Always-on generic AI-quality dimension
2781
+ */
2782
+ interface AIQuality {
2783
+ /**
2784
+ * Why the image scored as it did
2785
+ */
2786
+ reasons: Array<string>;
2787
+ /**
2788
+ * 0–100; higher is better (more compliant / less AI-looking)
2789
+ */
2790
+ score: number;
2791
+ /**
2792
+ * Actionable suggestions to improve the score
2793
+ */
2794
+ suggestions: Array<string>;
2795
+ }
2796
+ /**
2797
+ * Brief-compliance dimension; omitted when no brief applied
2798
+ */
2799
+ interface BriefCompliance {
2800
+ /**
2801
+ * Why the image scored as it did
2802
+ */
2803
+ reasons: Array<string>;
2804
+ /**
2805
+ * 0–100; higher is better (more compliant / less AI-looking)
2806
+ */
2807
+ score: number;
2808
+ /**
2809
+ * Actionable suggestions to improve the score
2810
+ */
2811
+ suggestions: Array<string>;
2812
+ }
2813
+ }
2814
+ }
2526
2815
  /**
2527
2816
  * The asset's thumbnail.
2528
2817
  *
@@ -3485,6 +3774,26 @@ export declare namespace ExampleListResponse {
3485
3774
  interface Billing {
3486
3775
  cuCost: number;
3487
3776
  cuDiscount: number;
3777
+ /**
3778
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
3779
+ * top of the generation itself, such as `slop-detection`.
3780
+ *
3781
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
3782
+ * values here.
3783
+ *
3784
+ * Two caveats when displaying it:
3785
+ *
3786
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
3787
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
3788
+ * still shows the main action's original charge.
3789
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
3790
+ * charged outside the job and reported once, as
3791
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
3792
+ * it.
3793
+ *
3794
+ * Absent when the job paid for no add-on.
3795
+ */
3796
+ cuCostDetails?: Billing.CuCostDetails;
3488
3797
  /**
3489
3798
  * When true, the credits charged for this job are not automatically refunded if
3490
3799
  * the generation fails, because the model used does not support refund-on-failure.
@@ -3492,6 +3801,31 @@ export declare namespace ExampleListResponse {
3492
3801
  */
3493
3802
  disableRefund?: boolean;
3494
3803
  }
3804
+ namespace Billing {
3805
+ /**
3806
+ * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
3807
+ * top of the generation itself, such as `slop-detection`.
3808
+ *
3809
+ * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
3810
+ * values here.
3811
+ *
3812
+ * Two caveats when displaying it:
3813
+ *
3814
+ * - These are a remaining refundable balance, not a receipt: a job that failed or
3815
+ * was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
3816
+ * still shows the main action's original charge.
3817
+ * - `ip-detection` is part of the shape but is never populated today: that fee is
3818
+ * charged outside the job and reported once, as
3819
+ * `ipDetection.creativeUnitsCharged`, in the response of the request that ran
3820
+ * it.
3821
+ *
3822
+ * Absent when the job paid for no add-on.
3823
+ */
3824
+ interface CuCostDetails {
3825
+ 'ip-detection'?: number;
3826
+ 'slop-detection'?: number;
3827
+ }
3828
+ }
3495
3829
  }
3496
3830
  }
3497
3831
  }
@@ -3505,12 +3839,22 @@ export interface ExampleUpdateParams {
3505
3839
  * Query param: If set to true, returns the original asset without transformation
3506
3840
  */
3507
3841
  originalAssets?: boolean;
3842
+ /**
3843
+ * Query param: The projectId used for ownership resource management. Either to
3844
+ * assert ownership or to set the owner of the resource(s)
3845
+ */
3846
+ projectId?: string;
3508
3847
  }
3509
3848
  export interface ExampleListParams {
3510
3849
  /**
3511
3850
  * If set to true, returns the original asset without transformation
3512
3851
  */
3513
3852
  originalAssets?: boolean;
3853
+ /**
3854
+ * The projectId used for ownership resource management. Either to assert ownership
3855
+ * or to set the owner of the resource(s)
3856
+ */
3857
+ projectId?: string;
3514
3858
  }
3515
3859
  export declare namespace Examples {
3516
3860
  export { type ExampleUpdateResponse as ExampleUpdateResponse, type ExampleListResponse as ExampleListResponse, type ExampleUpdateParams as ExampleUpdateParams, type ExampleListParams as ExampleListParams, };