@scenario-labs/sdk 2.6.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 (221) hide show
  1. package/CHANGELOG.md +49 -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/lib/workflow_converter.d.mts.map +1 -1
  33. package/lib/workflow_converter.d.ts.map +1 -1
  34. package/lib/workflow_converter.js +101 -22
  35. package/lib/workflow_converter.js.map +1 -1
  36. package/lib/workflow_converter.mjs +101 -22
  37. package/lib/workflow_converter.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/resources/assets/assets.d.mts +1091 -8
  40. package/resources/assets/assets.d.mts.map +1 -1
  41. package/resources/assets/assets.d.ts +1091 -8
  42. package/resources/assets/assets.d.ts.map +1 -1
  43. package/resources/assets/assets.js +34 -16
  44. package/resources/assets/assets.js.map +1 -1
  45. package/resources/assets/assets.mjs +34 -16
  46. package/resources/assets/assets.mjs.map +1 -1
  47. package/resources/assets/download.d.mts +28 -5
  48. package/resources/assets/download.d.mts.map +1 -1
  49. package/resources/assets/download.d.ts +28 -5
  50. package/resources/assets/download.d.ts.map +1 -1
  51. package/resources/assets/download.js +8 -6
  52. package/resources/assets/download.js.map +1 -1
  53. package/resources/assets/download.mjs +8 -6
  54. package/resources/assets/download.mjs.map +1 -1
  55. package/resources/assets/index.d.mts +1 -1
  56. package/resources/assets/index.d.mts.map +1 -1
  57. package/resources/assets/index.d.ts +1 -1
  58. package/resources/assets/index.d.ts.map +1 -1
  59. package/resources/assets/index.js.map +1 -1
  60. package/resources/assets/index.mjs.map +1 -1
  61. package/resources/collections/assets.d.mts +15 -4
  62. package/resources/collections/assets.d.mts.map +1 -1
  63. package/resources/collections/assets.d.ts +15 -4
  64. package/resources/collections/assets.d.ts.map +1 -1
  65. package/resources/collections/assets.js +14 -4
  66. package/resources/collections/assets.js.map +1 -1
  67. package/resources/collections/assets.mjs +14 -4
  68. package/resources/collections/assets.mjs.map +1 -1
  69. package/resources/collections/collections.d.mts +38 -9
  70. package/resources/collections/collections.d.mts.map +1 -1
  71. package/resources/collections/collections.d.ts +38 -9
  72. package/resources/collections/collections.d.ts.map +1 -1
  73. package/resources/collections/collections.js +11 -8
  74. package/resources/collections/collections.js.map +1 -1
  75. package/resources/collections/collections.mjs +11 -8
  76. package/resources/collections/collections.mjs.map +1 -1
  77. package/resources/collections/index.d.mts +1 -1
  78. package/resources/collections/index.d.mts.map +1 -1
  79. package/resources/collections/index.d.ts +1 -1
  80. package/resources/collections/index.d.ts.map +1 -1
  81. package/resources/collections/index.js.map +1 -1
  82. package/resources/collections/index.mjs.map +1 -1
  83. package/resources/collections/models.d.mts +15 -4
  84. package/resources/collections/models.d.mts.map +1 -1
  85. package/resources/collections/models.d.ts +15 -4
  86. package/resources/collections/models.d.ts.map +1 -1
  87. package/resources/collections/models.js +14 -4
  88. package/resources/collections/models.js.map +1 -1
  89. package/resources/collections/models.mjs +14 -4
  90. package/resources/collections/models.mjs.map +1 -1
  91. package/resources/generate.d.mts +941 -0
  92. package/resources/generate.d.mts.map +1 -1
  93. package/resources/generate.d.ts +941 -0
  94. package/resources/generate.d.ts.map +1 -1
  95. package/resources/generate.js +28 -16
  96. package/resources/generate.js.map +1 -1
  97. package/resources/generate.mjs +28 -16
  98. package/resources/generate.mjs.map +1 -1
  99. package/resources/index.d.mts +5 -5
  100. package/resources/index.d.mts.map +1 -1
  101. package/resources/index.d.ts +5 -5
  102. package/resources/index.d.ts.map +1 -1
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs.map +1 -1
  105. package/resources/jobs.d.mts +146 -2
  106. package/resources/jobs.d.mts.map +1 -1
  107. package/resources/jobs.d.ts +146 -2
  108. package/resources/jobs.d.ts.map +1 -1
  109. package/resources/jobs.js +8 -4
  110. package/resources/jobs.js.map +1 -1
  111. package/resources/jobs.mjs +8 -4
  112. package/resources/jobs.mjs.map +1 -1
  113. package/resources/models/description.d.mts +10 -0
  114. package/resources/models/description.d.mts.map +1 -1
  115. package/resources/models/description.d.ts +10 -0
  116. package/resources/models/description.d.ts.map +1 -1
  117. package/resources/models/description.js +2 -2
  118. package/resources/models/description.js.map +1 -1
  119. package/resources/models/description.mjs +2 -2
  120. package/resources/models/description.mjs.map +1 -1
  121. package/resources/models/examples.d.mts +346 -1
  122. package/resources/models/examples.d.mts.map +1 -1
  123. package/resources/models/examples.d.ts +346 -1
  124. package/resources/models/examples.d.ts.map +1 -1
  125. package/resources/models/examples.js +2 -2
  126. package/resources/models/examples.js.map +1 -1
  127. package/resources/models/examples.mjs +2 -2
  128. package/resources/models/examples.mjs.map +1 -1
  129. package/resources/models/index.d.mts +1 -1
  130. package/resources/models/index.d.mts.map +1 -1
  131. package/resources/models/index.d.ts +1 -1
  132. package/resources/models/index.d.ts.map +1 -1
  133. package/resources/models/index.js.map +1 -1
  134. package/resources/models/index.mjs.map +1 -1
  135. package/resources/models/models.d.mts +71 -13
  136. package/resources/models/models.d.mts.map +1 -1
  137. package/resources/models/models.d.ts +71 -13
  138. package/resources/models/models.d.ts.map +1 -1
  139. package/resources/models/models.js +30 -18
  140. package/resources/models/models.js.map +1 -1
  141. package/resources/models/models.mjs +30 -18
  142. package/resources/models/models.mjs.map +1 -1
  143. package/resources/models/train.d.mts +93 -0
  144. package/resources/models/train.d.mts.map +1 -1
  145. package/resources/models/train.d.ts +93 -0
  146. package/resources/models/train.d.ts.map +1 -1
  147. package/resources/models/train.js +4 -4
  148. package/resources/models/train.js.map +1 -1
  149. package/resources/models/train.mjs +4 -4
  150. package/resources/models/train.mjs.map +1 -1
  151. package/resources/models/training-images.d.mts +22 -2
  152. package/resources/models/training-images.d.mts.map +1 -1
  153. package/resources/models/training-images.d.ts +22 -2
  154. package/resources/models/training-images.d.ts.map +1 -1
  155. package/resources/models/training-images.js +15 -8
  156. package/resources/models/training-images.js.map +1 -1
  157. package/resources/models/training-images.mjs +15 -8
  158. package/resources/models/training-images.mjs.map +1 -1
  159. package/resources/search.d.mts +10 -0
  160. package/resources/search.d.mts.map +1 -1
  161. package/resources/search.d.ts +10 -0
  162. package/resources/search.d.ts.map +1 -1
  163. package/resources/search.js +4 -4
  164. package/resources/search.js.map +1 -1
  165. package/resources/search.mjs +4 -4
  166. package/resources/search.mjs.map +1 -1
  167. package/resources/tags.d.mts +5 -0
  168. package/resources/tags.d.mts.map +1 -1
  169. package/resources/tags.d.ts +5 -0
  170. package/resources/tags.d.ts.map +1 -1
  171. package/resources/uploads.d.mts +35 -20
  172. package/resources/uploads.d.mts.map +1 -1
  173. package/resources/uploads.d.ts +35 -20
  174. package/resources/uploads.d.ts.map +1 -1
  175. package/resources/uploads.js +8 -6
  176. package/resources/uploads.js.map +1 -1
  177. package/resources/uploads.mjs +8 -6
  178. package/resources/uploads.mjs.map +1 -1
  179. package/resources/usages.d.mts +53 -10
  180. package/resources/usages.d.mts.map +1 -1
  181. package/resources/usages.d.ts +53 -10
  182. package/resources/usages.d.ts.map +1 -1
  183. package/resources/workflows.d.mts +446 -266
  184. package/resources/workflows.d.mts.map +1 -1
  185. package/resources/workflows.d.ts +446 -266
  186. package/resources/workflows.d.ts.map +1 -1
  187. package/resources/workflows.js +20 -12
  188. package/resources/workflows.js.map +1 -1
  189. package/resources/workflows.mjs +20 -12
  190. package/resources/workflows.mjs.map +1 -1
  191. package/src/client.ts +14 -0
  192. package/src/lib/job.ts +8 -3
  193. package/src/lib/upload.ts +5 -3
  194. package/src/lib/workflow.ts +3 -1
  195. package/src/lib/workflow_converter.ts +119 -24
  196. package/src/resources/assets/assets.ts +1310 -32
  197. package/src/resources/assets/download.ts +40 -7
  198. package/src/resources/assets/index.ts +1 -0
  199. package/src/resources/collections/assets.ts +29 -6
  200. package/src/resources/collections/collections.ts +59 -12
  201. package/src/resources/collections/index.ts +2 -0
  202. package/src/resources/collections/models.ts +29 -6
  203. package/src/resources/generate.ts +1247 -30
  204. package/src/resources/index.ts +7 -0
  205. package/src/resources/jobs.ts +169 -4
  206. package/src/resources/models/description.ts +14 -2
  207. package/src/resources/models/examples.ts +396 -3
  208. package/src/resources/models/index.ts +1 -0
  209. package/src/resources/models/models.ts +112 -26
  210. package/src/resources/models/train.ts +126 -4
  211. package/src/resources/models/training-images.ts +41 -10
  212. package/src/resources/search.ts +16 -4
  213. package/src/resources/tags.ts +6 -0
  214. package/src/resources/uploads.ts +47 -22
  215. package/src/resources/usages.ts +63 -10
  216. package/src/resources/workflows.ts +783 -563
  217. package/src/version.ts +1 -1
  218. package/version.d.mts +1 -1
  219. package/version.d.ts +1 -1
  220. package/version.js +1 -1
  221. package/version.mjs +1 -1
@@ -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,
@@ -10,8 +10,12 @@ export class Jobs extends APIResource {
10
10
  /**
11
11
  * Get job data by job ID
12
12
  */
13
- retrieve(jobID: string, options?: RequestOptions): APIPromise<JobRetrieveResponse> {
14
- return this._client.get(path`/jobs/${jobID}`, options);
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`, { query: { originalAssets }, body, ...options });
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 {