@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.
- package/CHANGELOG.md +30 -2
- package/client.d.mts +12 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -12
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +8 -8
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +8 -8
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +8 -8
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +8 -8
- package/core/pagination.mjs.map +1 -1
- package/lib/job.d.mts +2 -2
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts +2 -2
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +3 -3
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +3 -3
- package/lib/job.mjs.map +1 -1
- package/lib/upload.d.mts +2 -2
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +2 -2
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +4 -4
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +4 -4
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts +2 -2
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +2 -2
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +2 -2
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +2 -2
- package/lib/workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +1107 -24
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +1107 -24
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +34 -16
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +34 -16
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +28 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +28 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +8 -6
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +8 -6
- package/resources/assets/download.mjs.map +1 -1
- package/resources/assets/index.d.mts +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.js.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/collections/assets.d.mts +15 -4
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts +15 -4
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +14 -4
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +14 -4
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts +38 -9
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts +38 -9
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +11 -8
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +11 -8
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts +1 -1
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts +1 -1
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.js.map +1 -1
- package/resources/collections/index.mjs.map +1 -1
- package/resources/collections/models.d.mts +15 -4
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts +15 -4
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +14 -4
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +14 -4
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +945 -4
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +945 -4
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +28 -16
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +28 -16
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +146 -2
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +146 -2
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +8 -4
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +8 -4
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +14 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +14 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.js +2 -2
- package/resources/models/description.js.map +1 -1
- package/resources/models/description.mjs +2 -2
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +348 -4
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +348 -4
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.js +2 -2
- package/resources/models/examples.js.map +1 -1
- package/resources/models/examples.mjs +2 -2
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +71 -13
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +71 -13
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +30 -18
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +30 -18
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +93 -0
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +93 -0
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +4 -4
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +4 -4
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts +22 -2
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts +22 -2
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.js +15 -8
- package/resources/models/training-images.js.map +1 -1
- package/resources/models/training-images.mjs +15 -8
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/search.d.mts +10 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +10 -0
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +4 -4
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +4 -4
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts +5 -0
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts +5 -0
- package/resources/tags.d.ts.map +1 -1
- package/resources/uploads.d.mts +35 -20
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +35 -20
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +8 -6
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +8 -6
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +55 -12
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +55 -12
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +446 -266
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +446 -266
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +20 -12
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +20 -12
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +18 -4
- package/src/core/pagination.ts +20 -20
- package/src/lib/job.ts +8 -3
- package/src/lib/upload.ts +5 -3
- package/src/lib/workflow.ts +3 -1
- package/src/resources/assets/assets.ts +1326 -48
- package/src/resources/assets/download.ts +40 -7
- package/src/resources/assets/index.ts +1 -0
- package/src/resources/collections/assets.ts +29 -6
- package/src/resources/collections/collections.ts +59 -12
- package/src/resources/collections/index.ts +2 -0
- package/src/resources/collections/models.ts +29 -6
- package/src/resources/generate.ts +1251 -34
- package/src/resources/index.ts +7 -0
- package/src/resources/jobs.ts +169 -4
- package/src/resources/models/description.ts +18 -6
- package/src/resources/models/examples.ts +398 -6
- package/src/resources/models/index.ts +1 -0
- package/src/resources/models/models.ts +112 -26
- package/src/resources/models/train.ts +126 -4
- package/src/resources/models/training-images.ts +41 -10
- package/src/resources/search.ts +16 -4
- package/src/resources/tags.ts +6 -0
- package/src/resources/uploads.ts +47 -22
- package/src/resources/usages.ts +65 -12
- package/src/resources/workflows.ts +783 -563
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,cAAc,EAAE;YAC5D,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE;YACpC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,kCA2BC"}
|
|
@@ -12,9 +12,9 @@ export class Description extends APIResource {
|
|
|
12
12
|
* Update the markdown description of the given `modelId`
|
|
13
13
|
*/
|
|
14
14
|
update(modelID, params, options) {
|
|
15
|
-
const { originalAssets, ...body } = params;
|
|
15
|
+
const { originalAssets, projectId, ...body } = params;
|
|
16
16
|
return this._client.put(path `/models/${modelID}/description`, {
|
|
17
|
-
query: { originalAssets },
|
|
17
|
+
query: { originalAssets, projectId },
|
|
18
18
|
body,
|
|
19
19
|
...options,
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.mjs","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"description.mjs","sourceRoot":"","sources":["../../src/resources/models/description.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE;YAC5D,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE;YACpC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -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<
|
|
747
|
+
position: Array<number>;
|
|
741
748
|
/**
|
|
742
749
|
* Look-at point in the splat's world frame.
|
|
743
750
|
*/
|
|
744
|
-
target: Array<
|
|
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<
|
|
2656
|
+
position: Array<number>;
|
|
2483
2657
|
/**
|
|
2484
2658
|
* Look-at point in the splat's world frame.
|
|
2485
2659
|
*/
|
|
2486
|
-
target: Array<
|
|
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, };
|