@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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +10 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -10
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.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 +1091 -8
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +1091 -8
- 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 +941 -0
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +941 -0
- 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 +10 -0
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +10 -0
- 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 +344 -0
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +344 -0
- 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 +53 -10
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +53 -10
- 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 +14 -0
- 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 +1310 -32
- 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 +1247 -30
- package/src/resources/index.ts +7 -0
- package/src/resources/jobs.ts +169 -4
- package/src/resources/models/description.ts +14 -2
- package/src/resources/models/examples.ts +394 -2
- 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 +63 -10
- 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
package/src/resources/index.ts
CHANGED
|
@@ -35,8 +35,10 @@ export {
|
|
|
35
35
|
type CollectionListResponse,
|
|
36
36
|
type CollectionDeleteResponse,
|
|
37
37
|
type CollectionCreateParams,
|
|
38
|
+
type CollectionRetrieveParams,
|
|
38
39
|
type CollectionUpdateParams,
|
|
39
40
|
type CollectionListParams,
|
|
41
|
+
type CollectionDeleteParams,
|
|
40
42
|
type CollectionListResponsesCollectionsCursor,
|
|
41
43
|
} from './collections/collections';
|
|
42
44
|
export {
|
|
@@ -63,6 +65,7 @@ export {
|
|
|
63
65
|
type JobRetrieveResponse,
|
|
64
66
|
type JobListResponse,
|
|
65
67
|
type JobTriggerActionResponse,
|
|
68
|
+
type JobRetrieveParams,
|
|
66
69
|
type JobListParams,
|
|
67
70
|
type JobTriggerActionParams,
|
|
68
71
|
type JobListResponsesJobsCursor,
|
|
@@ -84,6 +87,7 @@ export {
|
|
|
84
87
|
type ModelRetrieveParams,
|
|
85
88
|
type ModelUpdateParams,
|
|
86
89
|
type ModelListParams,
|
|
90
|
+
type ModelDeleteParams,
|
|
87
91
|
type ModelCopyParams,
|
|
88
92
|
type ModelDeleteImagesParams,
|
|
89
93
|
type ModelDownloadParams,
|
|
@@ -110,6 +114,7 @@ export {
|
|
|
110
114
|
type UploadRetrieveResponse,
|
|
111
115
|
type UploadTriggerActionResponse,
|
|
112
116
|
type UploadCreateParams,
|
|
117
|
+
type UploadRetrieveParams,
|
|
113
118
|
type UploadTriggerActionParams,
|
|
114
119
|
} from './uploads';
|
|
115
120
|
export { Usages, type UsageListResponse, type UsageListParams } from './usages';
|
|
@@ -124,8 +129,10 @@ export {
|
|
|
124
129
|
type WorkflowRunResponse,
|
|
125
130
|
type WorkflowUserApprovalResponse,
|
|
126
131
|
type WorkflowCreateParams,
|
|
132
|
+
type WorkflowRetrieveParams,
|
|
127
133
|
type WorkflowUpdateParams,
|
|
128
134
|
type WorkflowListParams,
|
|
135
|
+
type WorkflowDeleteParams,
|
|
129
136
|
type WorkflowGetTagsParams,
|
|
130
137
|
type WorkflowRunParams,
|
|
131
138
|
type WorkflowUserApprovalParams,
|
package/src/resources/jobs.ts
CHANGED
|
@@ -10,8 +10,12 @@ export class Jobs extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Get job data by job ID
|
|
12
12
|
*/
|
|
13
|
-
retrieve(
|
|
14
|
-
|
|
13
|
+
retrieve(
|
|
14
|
+
jobID: string,
|
|
15
|
+
query: JobRetrieveParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<JobRetrieveResponse> {
|
|
18
|
+
return this._client.get(path`/jobs/${jobID}`, { query, ...options });
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
/**
|
|
@@ -35,8 +39,12 @@ export class Jobs extends APIResource {
|
|
|
35
39
|
params: JobTriggerActionParams,
|
|
36
40
|
options?: RequestOptions,
|
|
37
41
|
): APIPromise<JobTriggerActionResponse> {
|
|
38
|
-
const { originalAssets, ...body } = params;
|
|
39
|
-
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
42
|
+
const { originalAssets, projectId, ...body } = params;
|
|
43
|
+
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
44
|
+
query: { originalAssets, projectId },
|
|
45
|
+
body,
|
|
46
|
+
...options,
|
|
47
|
+
});
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
|
|
@@ -994,6 +1002,27 @@ export namespace JobRetrieveResponse {
|
|
|
994
1002
|
|
|
995
1003
|
cuDiscount: number;
|
|
996
1004
|
|
|
1005
|
+
/**
|
|
1006
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1007
|
+
* top of the generation itself, such as `slop-detection`.
|
|
1008
|
+
*
|
|
1009
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1010
|
+
* values here.
|
|
1011
|
+
*
|
|
1012
|
+
* Two caveats when displaying it:
|
|
1013
|
+
*
|
|
1014
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
1015
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
1016
|
+
* still shows the main action's original charge.
|
|
1017
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
1018
|
+
* charged outside the job and reported once, as
|
|
1019
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
1020
|
+
* it.
|
|
1021
|
+
*
|
|
1022
|
+
* Absent when the job paid for no add-on.
|
|
1023
|
+
*/
|
|
1024
|
+
cuCostDetails?: Billing.CuCostDetails;
|
|
1025
|
+
|
|
997
1026
|
/**
|
|
998
1027
|
* When true, the credits charged for this job are not automatically refunded if
|
|
999
1028
|
* the generation fails, because the model used does not support refund-on-failure.
|
|
@@ -1001,6 +1030,33 @@ export namespace JobRetrieveResponse {
|
|
|
1001
1030
|
*/
|
|
1002
1031
|
disableRefund?: boolean;
|
|
1003
1032
|
}
|
|
1033
|
+
|
|
1034
|
+
export namespace Billing {
|
|
1035
|
+
/**
|
|
1036
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1037
|
+
* top of the generation itself, such as `slop-detection`.
|
|
1038
|
+
*
|
|
1039
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1040
|
+
* values here.
|
|
1041
|
+
*
|
|
1042
|
+
* Two caveats when displaying it:
|
|
1043
|
+
*
|
|
1044
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
1045
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
1046
|
+
* still shows the main action's original charge.
|
|
1047
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
1048
|
+
* charged outside the job and reported once, as
|
|
1049
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
1050
|
+
* it.
|
|
1051
|
+
*
|
|
1052
|
+
* Absent when the job paid for no add-on.
|
|
1053
|
+
*/
|
|
1054
|
+
export interface CuCostDetails {
|
|
1055
|
+
'ip-detection'?: number;
|
|
1056
|
+
|
|
1057
|
+
'slop-detection'?: number;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1004
1060
|
}
|
|
1005
1061
|
}
|
|
1006
1062
|
|
|
@@ -1951,6 +2007,27 @@ export namespace JobListResponse {
|
|
|
1951
2007
|
|
|
1952
2008
|
cuDiscount: number;
|
|
1953
2009
|
|
|
2010
|
+
/**
|
|
2011
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2012
|
+
* top of the generation itself, such as `slop-detection`.
|
|
2013
|
+
*
|
|
2014
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2015
|
+
* values here.
|
|
2016
|
+
*
|
|
2017
|
+
* Two caveats when displaying it:
|
|
2018
|
+
*
|
|
2019
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
2020
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
2021
|
+
* still shows the main action's original charge.
|
|
2022
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
2023
|
+
* charged outside the job and reported once, as
|
|
2024
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
2025
|
+
* it.
|
|
2026
|
+
*
|
|
2027
|
+
* Absent when the job paid for no add-on.
|
|
2028
|
+
*/
|
|
2029
|
+
cuCostDetails?: Billing.CuCostDetails;
|
|
2030
|
+
|
|
1954
2031
|
/**
|
|
1955
2032
|
* When true, the credits charged for this job are not automatically refunded if
|
|
1956
2033
|
* the generation fails, because the model used does not support refund-on-failure.
|
|
@@ -1958,6 +2035,33 @@ export namespace JobListResponse {
|
|
|
1958
2035
|
*/
|
|
1959
2036
|
disableRefund?: boolean;
|
|
1960
2037
|
}
|
|
2038
|
+
|
|
2039
|
+
export namespace Billing {
|
|
2040
|
+
/**
|
|
2041
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2042
|
+
* top of the generation itself, such as `slop-detection`.
|
|
2043
|
+
*
|
|
2044
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2045
|
+
* values here.
|
|
2046
|
+
*
|
|
2047
|
+
* Two caveats when displaying it:
|
|
2048
|
+
*
|
|
2049
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
2050
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
2051
|
+
* still shows the main action's original charge.
|
|
2052
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
2053
|
+
* charged outside the job and reported once, as
|
|
2054
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
2055
|
+
* it.
|
|
2056
|
+
*
|
|
2057
|
+
* Absent when the job paid for no add-on.
|
|
2058
|
+
*/
|
|
2059
|
+
export interface CuCostDetails {
|
|
2060
|
+
'ip-detection'?: number;
|
|
2061
|
+
|
|
2062
|
+
'slop-detection'?: number;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
1961
2065
|
}
|
|
1962
2066
|
|
|
1963
2067
|
export interface JobTriggerActionResponse {
|
|
@@ -2912,6 +3016,27 @@ export namespace JobTriggerActionResponse {
|
|
|
2912
3016
|
|
|
2913
3017
|
cuDiscount: number;
|
|
2914
3018
|
|
|
3019
|
+
/**
|
|
3020
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3021
|
+
* top of the generation itself, such as `slop-detection`.
|
|
3022
|
+
*
|
|
3023
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3024
|
+
* values here.
|
|
3025
|
+
*
|
|
3026
|
+
* Two caveats when displaying it:
|
|
3027
|
+
*
|
|
3028
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
3029
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
3030
|
+
* still shows the main action's original charge.
|
|
3031
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
3032
|
+
* charged outside the job and reported once, as
|
|
3033
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
3034
|
+
* it.
|
|
3035
|
+
*
|
|
3036
|
+
* Absent when the job paid for no add-on.
|
|
3037
|
+
*/
|
|
3038
|
+
cuCostDetails?: Billing.CuCostDetails;
|
|
3039
|
+
|
|
2915
3040
|
/**
|
|
2916
3041
|
* When true, the credits charged for this job are not automatically refunded if
|
|
2917
3042
|
* the generation fails, because the model used does not support refund-on-failure.
|
|
@@ -2919,9 +3044,40 @@ export namespace JobTriggerActionResponse {
|
|
|
2919
3044
|
*/
|
|
2920
3045
|
disableRefund?: boolean;
|
|
2921
3046
|
}
|
|
3047
|
+
|
|
3048
|
+
export namespace Billing {
|
|
3049
|
+
/**
|
|
3050
|
+
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3051
|
+
* top of the generation itself, such as `slop-detection`.
|
|
3052
|
+
*
|
|
3053
|
+
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3054
|
+
* values here.
|
|
3055
|
+
*
|
|
3056
|
+
* Two caveats when displaying it:
|
|
3057
|
+
*
|
|
3058
|
+
* - These are a remaining refundable balance, not a receipt: a job that failed or
|
|
3059
|
+
* was cancelled has had its add-ons refunded, so they read 0 while `cuCost`
|
|
3060
|
+
* still shows the main action's original charge.
|
|
3061
|
+
* - `ip-detection` is part of the shape but is never populated today: that fee is
|
|
3062
|
+
* charged outside the job and reported once, as
|
|
3063
|
+
* `ipDetection.creativeUnitsCharged`, in the response of the request that ran
|
|
3064
|
+
* it.
|
|
3065
|
+
*
|
|
3066
|
+
* Absent when the job paid for no add-on.
|
|
3067
|
+
*/
|
|
3068
|
+
export interface CuCostDetails {
|
|
3069
|
+
'ip-detection'?: number;
|
|
3070
|
+
|
|
3071
|
+
'slop-detection'?: number;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
2922
3074
|
}
|
|
2923
3075
|
}
|
|
2924
3076
|
|
|
3077
|
+
export interface JobRetrieveParams {
|
|
3078
|
+
projectId?: unknown;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
2925
3081
|
export interface JobListParams extends JobsCursorParams {
|
|
2926
3082
|
/**
|
|
2927
3083
|
* The authorId of the jobs to return. Optional.
|
|
@@ -2939,6 +3095,8 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
2939
3095
|
*/
|
|
2940
3096
|
pageSize?: number;
|
|
2941
3097
|
|
|
3098
|
+
projectId?: unknown;
|
|
3099
|
+
|
|
2942
3100
|
/**
|
|
2943
3101
|
* The status of the jobs to return. Optional.
|
|
2944
3102
|
*/
|
|
@@ -3053,6 +3211,12 @@ export interface JobTriggerActionParams {
|
|
|
3053
3211
|
*/
|
|
3054
3212
|
originalAssets?: boolean;
|
|
3055
3213
|
|
|
3214
|
+
/**
|
|
3215
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
3216
|
+
* assert ownership or to set the owner of the resource(s)
|
|
3217
|
+
*/
|
|
3218
|
+
projectId?: string;
|
|
3219
|
+
|
|
3056
3220
|
/**
|
|
3057
3221
|
* Body param: The action to execute on the job, such as canceling it. Today only
|
|
3058
3222
|
* cancel on inference jobs is supported.
|
|
@@ -3066,6 +3230,7 @@ export declare namespace Jobs {
|
|
|
3066
3230
|
type JobListResponse as JobListResponse,
|
|
3067
3231
|
type JobTriggerActionResponse as JobTriggerActionResponse,
|
|
3068
3232
|
type JobListResponsesJobsCursor as JobListResponsesJobsCursor,
|
|
3233
|
+
type JobRetrieveParams as JobRetrieveParams,
|
|
3069
3234
|
type JobListParams as JobListParams,
|
|
3070
3235
|
type JobTriggerActionParams as JobTriggerActionParams,
|
|
3071
3236
|
};
|
|
@@ -25,9 +25,9 @@ export class Description extends APIResource {
|
|
|
25
25
|
params: DescriptionUpdateParams,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): APIPromise<DescriptionUpdateResponse> {
|
|
28
|
-
const { originalAssets, ...body } = params;
|
|
28
|
+
const { originalAssets, projectId, ...body } = params;
|
|
29
29
|
return this._client.put(path`/models/${modelID}/description`, {
|
|
30
|
-
query: { originalAssets },
|
|
30
|
+
query: { originalAssets, projectId },
|
|
31
31
|
body,
|
|
32
32
|
...options,
|
|
33
33
|
});
|
|
@@ -945,6 +945,12 @@ export interface DescriptionRetrieveParams {
|
|
|
945
945
|
* If set to true, returns the original asset without transformation
|
|
946
946
|
*/
|
|
947
947
|
originalAssets?: boolean;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
951
|
+
* or to set the owner of the resource(s)
|
|
952
|
+
*/
|
|
953
|
+
projectId?: string;
|
|
948
954
|
}
|
|
949
955
|
|
|
950
956
|
export interface DescriptionUpdateParams {
|
|
@@ -958,6 +964,12 @@ export interface DescriptionUpdateParams {
|
|
|
958
964
|
* Query param: If set to true, returns the original asset without transformation
|
|
959
965
|
*/
|
|
960
966
|
originalAssets?: boolean;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
970
|
+
* assert ownership or to set the owner of the resource(s)
|
|
971
|
+
*/
|
|
972
|
+
projectId?: string;
|
|
961
973
|
}
|
|
962
974
|
|
|
963
975
|
export declare namespace Description {
|