@scenario-labs/sdk 2.7.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +10 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/lib/job.d.mts +2 -2
  9. package/lib/job.d.mts.map +1 -1
  10. package/lib/job.d.ts +2 -2
  11. package/lib/job.d.ts.map +1 -1
  12. package/lib/job.js +3 -3
  13. package/lib/job.js.map +1 -1
  14. package/lib/job.mjs +3 -3
  15. package/lib/job.mjs.map +1 -1
  16. package/lib/upload.d.mts +2 -2
  17. package/lib/upload.d.mts.map +1 -1
  18. package/lib/upload.d.ts +2 -2
  19. package/lib/upload.d.ts.map +1 -1
  20. package/lib/upload.js +4 -4
  21. package/lib/upload.js.map +1 -1
  22. package/lib/upload.mjs +4 -4
  23. package/lib/upload.mjs.map +1 -1
  24. package/lib/workflow.d.mts +2 -2
  25. package/lib/workflow.d.mts.map +1 -1
  26. package/lib/workflow.d.ts +2 -2
  27. package/lib/workflow.d.ts.map +1 -1
  28. package/lib/workflow.js +2 -2
  29. package/lib/workflow.js.map +1 -1
  30. package/lib/workflow.mjs +2 -2
  31. package/lib/workflow.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/resources/assets/assets.d.mts +1091 -8
  34. package/resources/assets/assets.d.mts.map +1 -1
  35. package/resources/assets/assets.d.ts +1091 -8
  36. package/resources/assets/assets.d.ts.map +1 -1
  37. package/resources/assets/assets.js +34 -16
  38. package/resources/assets/assets.js.map +1 -1
  39. package/resources/assets/assets.mjs +34 -16
  40. package/resources/assets/assets.mjs.map +1 -1
  41. package/resources/assets/download.d.mts +28 -5
  42. package/resources/assets/download.d.mts.map +1 -1
  43. package/resources/assets/download.d.ts +28 -5
  44. package/resources/assets/download.d.ts.map +1 -1
  45. package/resources/assets/download.js +8 -6
  46. package/resources/assets/download.js.map +1 -1
  47. package/resources/assets/download.mjs +8 -6
  48. package/resources/assets/download.mjs.map +1 -1
  49. package/resources/assets/index.d.mts +1 -1
  50. package/resources/assets/index.d.mts.map +1 -1
  51. package/resources/assets/index.d.ts +1 -1
  52. package/resources/assets/index.d.ts.map +1 -1
  53. package/resources/assets/index.js.map +1 -1
  54. package/resources/assets/index.mjs.map +1 -1
  55. package/resources/collections/assets.d.mts +15 -4
  56. package/resources/collections/assets.d.mts.map +1 -1
  57. package/resources/collections/assets.d.ts +15 -4
  58. package/resources/collections/assets.d.ts.map +1 -1
  59. package/resources/collections/assets.js +14 -4
  60. package/resources/collections/assets.js.map +1 -1
  61. package/resources/collections/assets.mjs +14 -4
  62. package/resources/collections/assets.mjs.map +1 -1
  63. package/resources/collections/collections.d.mts +38 -9
  64. package/resources/collections/collections.d.mts.map +1 -1
  65. package/resources/collections/collections.d.ts +38 -9
  66. package/resources/collections/collections.d.ts.map +1 -1
  67. package/resources/collections/collections.js +11 -8
  68. package/resources/collections/collections.js.map +1 -1
  69. package/resources/collections/collections.mjs +11 -8
  70. package/resources/collections/collections.mjs.map +1 -1
  71. package/resources/collections/index.d.mts +1 -1
  72. package/resources/collections/index.d.mts.map +1 -1
  73. package/resources/collections/index.d.ts +1 -1
  74. package/resources/collections/index.d.ts.map +1 -1
  75. package/resources/collections/index.js.map +1 -1
  76. package/resources/collections/index.mjs.map +1 -1
  77. package/resources/collections/models.d.mts +15 -4
  78. package/resources/collections/models.d.mts.map +1 -1
  79. package/resources/collections/models.d.ts +15 -4
  80. package/resources/collections/models.d.ts.map +1 -1
  81. package/resources/collections/models.js +14 -4
  82. package/resources/collections/models.js.map +1 -1
  83. package/resources/collections/models.mjs +14 -4
  84. package/resources/collections/models.mjs.map +1 -1
  85. package/resources/generate.d.mts +941 -0
  86. package/resources/generate.d.mts.map +1 -1
  87. package/resources/generate.d.ts +941 -0
  88. package/resources/generate.d.ts.map +1 -1
  89. package/resources/generate.js +28 -16
  90. package/resources/generate.js.map +1 -1
  91. package/resources/generate.mjs +28 -16
  92. package/resources/generate.mjs.map +1 -1
  93. package/resources/index.d.mts +5 -5
  94. package/resources/index.d.mts.map +1 -1
  95. package/resources/index.d.ts +5 -5
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/jobs.d.mts +146 -2
  100. package/resources/jobs.d.mts.map +1 -1
  101. package/resources/jobs.d.ts +146 -2
  102. package/resources/jobs.d.ts.map +1 -1
  103. package/resources/jobs.js +8 -4
  104. package/resources/jobs.js.map +1 -1
  105. package/resources/jobs.mjs +8 -4
  106. package/resources/jobs.mjs.map +1 -1
  107. package/resources/models/description.d.mts +10 -0
  108. package/resources/models/description.d.mts.map +1 -1
  109. package/resources/models/description.d.ts +10 -0
  110. package/resources/models/description.d.ts.map +1 -1
  111. package/resources/models/description.js +2 -2
  112. package/resources/models/description.js.map +1 -1
  113. package/resources/models/description.mjs +2 -2
  114. package/resources/models/description.mjs.map +1 -1
  115. package/resources/models/examples.d.mts +344 -0
  116. package/resources/models/examples.d.mts.map +1 -1
  117. package/resources/models/examples.d.ts +344 -0
  118. package/resources/models/examples.d.ts.map +1 -1
  119. package/resources/models/examples.js +2 -2
  120. package/resources/models/examples.js.map +1 -1
  121. package/resources/models/examples.mjs +2 -2
  122. package/resources/models/examples.mjs.map +1 -1
  123. package/resources/models/index.d.mts +1 -1
  124. package/resources/models/index.d.mts.map +1 -1
  125. package/resources/models/index.d.ts +1 -1
  126. package/resources/models/index.d.ts.map +1 -1
  127. package/resources/models/index.js.map +1 -1
  128. package/resources/models/index.mjs.map +1 -1
  129. package/resources/models/models.d.mts +71 -13
  130. package/resources/models/models.d.mts.map +1 -1
  131. package/resources/models/models.d.ts +71 -13
  132. package/resources/models/models.d.ts.map +1 -1
  133. package/resources/models/models.js +30 -18
  134. package/resources/models/models.js.map +1 -1
  135. package/resources/models/models.mjs +30 -18
  136. package/resources/models/models.mjs.map +1 -1
  137. package/resources/models/train.d.mts +93 -0
  138. package/resources/models/train.d.mts.map +1 -1
  139. package/resources/models/train.d.ts +93 -0
  140. package/resources/models/train.d.ts.map +1 -1
  141. package/resources/models/train.js +4 -4
  142. package/resources/models/train.js.map +1 -1
  143. package/resources/models/train.mjs +4 -4
  144. package/resources/models/train.mjs.map +1 -1
  145. package/resources/models/training-images.d.mts +22 -2
  146. package/resources/models/training-images.d.mts.map +1 -1
  147. package/resources/models/training-images.d.ts +22 -2
  148. package/resources/models/training-images.d.ts.map +1 -1
  149. package/resources/models/training-images.js +15 -8
  150. package/resources/models/training-images.js.map +1 -1
  151. package/resources/models/training-images.mjs +15 -8
  152. package/resources/models/training-images.mjs.map +1 -1
  153. package/resources/search.d.mts +10 -0
  154. package/resources/search.d.mts.map +1 -1
  155. package/resources/search.d.ts +10 -0
  156. package/resources/search.d.ts.map +1 -1
  157. package/resources/search.js +4 -4
  158. package/resources/search.js.map +1 -1
  159. package/resources/search.mjs +4 -4
  160. package/resources/search.mjs.map +1 -1
  161. package/resources/tags.d.mts +5 -0
  162. package/resources/tags.d.mts.map +1 -1
  163. package/resources/tags.d.ts +5 -0
  164. package/resources/tags.d.ts.map +1 -1
  165. package/resources/uploads.d.mts +35 -20
  166. package/resources/uploads.d.mts.map +1 -1
  167. package/resources/uploads.d.ts +35 -20
  168. package/resources/uploads.d.ts.map +1 -1
  169. package/resources/uploads.js +8 -6
  170. package/resources/uploads.js.map +1 -1
  171. package/resources/uploads.mjs +8 -6
  172. package/resources/uploads.mjs.map +1 -1
  173. package/resources/usages.d.mts +53 -10
  174. package/resources/usages.d.mts.map +1 -1
  175. package/resources/usages.d.ts +53 -10
  176. package/resources/usages.d.ts.map +1 -1
  177. package/resources/workflows.d.mts +446 -266
  178. package/resources/workflows.d.mts.map +1 -1
  179. package/resources/workflows.d.ts +446 -266
  180. package/resources/workflows.d.ts.map +1 -1
  181. package/resources/workflows.js +20 -12
  182. package/resources/workflows.js.map +1 -1
  183. package/resources/workflows.mjs +20 -12
  184. package/resources/workflows.mjs.map +1 -1
  185. package/src/client.ts +14 -0
  186. package/src/lib/job.ts +8 -3
  187. package/src/lib/upload.ts +5 -3
  188. package/src/lib/workflow.ts +3 -1
  189. package/src/resources/assets/assets.ts +1310 -32
  190. package/src/resources/assets/download.ts +40 -7
  191. package/src/resources/assets/index.ts +1 -0
  192. package/src/resources/collections/assets.ts +29 -6
  193. package/src/resources/collections/collections.ts +59 -12
  194. package/src/resources/collections/index.ts +2 -0
  195. package/src/resources/collections/models.ts +29 -6
  196. package/src/resources/generate.ts +1247 -30
  197. package/src/resources/index.ts +7 -0
  198. package/src/resources/jobs.ts +169 -4
  199. package/src/resources/models/description.ts +14 -2
  200. package/src/resources/models/examples.ts +394 -2
  201. package/src/resources/models/index.ts +1 -0
  202. package/src/resources/models/models.ts +112 -26
  203. package/src/resources/models/train.ts +126 -4
  204. package/src/resources/models/training-images.ts +41 -10
  205. package/src/resources/search.ts +16 -4
  206. package/src/resources/tags.ts +6 -0
  207. package/src/resources/uploads.ts +47 -22
  208. package/src/resources/usages.ts +63 -10
  209. package/src/resources/workflows.ts +783 -563
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -9,8 +9,12 @@ export class Download extends APIResource {
9
9
  /**
10
10
  * Retrieve the status and the url of a batch download assets request
11
11
  */
12
- getStatus(jobID: string, options?: RequestOptions): APIPromise<DownloadGetStatusResponse> {
13
- return this._client.get(path`/assets/download/${jobID}`, options);
12
+ getStatus(
13
+ jobID: string,
14
+ query: DownloadGetStatusParams | null | undefined = {},
15
+ options?: RequestOptions,
16
+ ): APIPromise<DownloadGetStatusResponse> {
17
+ return this._client.get(path`/assets/download/${jobID}`, { query, ...options });
14
18
  }
15
19
 
16
20
  /**
@@ -18,20 +22,22 @@ export class Download extends APIResource {
18
22
  */
19
23
  request(
20
24
  assetID: string,
21
- body: DownloadRequestParams,
25
+ params: DownloadRequestParams,
22
26
  options?: RequestOptions,
23
27
  ): APIPromise<DownloadRequestResponse> {
24
- return this._client.post(path`/assets/${assetID}/download`, { body, ...options });
28
+ const { projectId, ...body } = params;
29
+ return this._client.post(path`/assets/${assetID}/download`, { query: { projectId }, body, ...options });
25
30
  }
26
31
 
27
32
  /**
28
33
  * Request a link to batch download assets (batch limited to 1000 assets)
29
34
  */
30
35
  requestBatch(
31
- body: DownloadRequestBatchParams,
36
+ params: DownloadRequestBatchParams,
32
37
  options?: RequestOptions,
33
38
  ): APIPromise<DownloadRequestBatchResponse> {
34
- return this._client.post('/assets/download', { body, ...options });
39
+ const { projectId, ...body } = params;
40
+ return this._client.post('/assets/download', { query: { projectId }, body, ...options });
35
41
  }
36
42
  }
37
43
 
@@ -66,9 +72,23 @@ export interface DownloadRequestBatchResponse {
66
72
  jobId: string;
67
73
  }
68
74
 
75
+ export interface DownloadGetStatusParams {
76
+ /**
77
+ * The projectId used for ownership resource management. Either to assert ownership
78
+ * or to set the owner of the resource(s)
79
+ */
80
+ projectId?: string;
81
+ }
82
+
69
83
  export interface DownloadRequestParams {
70
84
  /**
71
- * The format to download the asset in
85
+ * Query param: The projectId used for ownership resource management. Either to
86
+ * assert ownership or to set the owner of the resource(s)
87
+ */
88
+ projectId?: string;
89
+
90
+ /**
91
+ * Body param: The format to download the asset in
72
92
  */
73
93
  targetFormat?:
74
94
  | 'gif'
@@ -87,9 +107,21 @@ export interface DownloadRequestParams {
87
107
  }
88
108
 
89
109
  export interface DownloadRequestBatchParams {
110
+ /**
111
+ * Body param
112
+ */
90
113
  options: DownloadRequestBatchParams.Options;
91
114
 
115
+ /**
116
+ * Body param
117
+ */
92
118
  query: DownloadRequestBatchParams.Query;
119
+
120
+ /**
121
+ * Query param: The projectId used for ownership resource management. Either to
122
+ * assert ownership or to set the owner of the resource(s)
123
+ */
124
+ projectId?: string;
93
125
  }
94
126
 
95
127
  export namespace DownloadRequestBatchParams {
@@ -132,6 +164,7 @@ export declare namespace Download {
132
164
  type DownloadGetStatusResponse as DownloadGetStatusResponse,
133
165
  type DownloadRequestResponse as DownloadRequestResponse,
134
166
  type DownloadRequestBatchResponse as DownloadRequestBatchResponse,
167
+ type DownloadGetStatusParams as DownloadGetStatusParams,
135
168
  type DownloadRequestParams as DownloadRequestParams,
136
169
  type DownloadRequestBatchParams as DownloadRequestBatchParams,
137
170
  };
@@ -32,6 +32,7 @@ export {
32
32
  type DownloadGetStatusResponse,
33
33
  type DownloadRequestResponse,
34
34
  type DownloadRequestBatchResponse,
35
+ type DownloadGetStatusParams,
35
36
  type DownloadRequestParams,
36
37
  type DownloadRequestBatchParams,
37
38
  } from './download';
@@ -9,8 +9,13 @@ export class Assets extends APIResource {
9
9
  /**
10
10
  * Add assets to a specific collection
11
11
  */
12
- add(collectionID: string, body: AssetAddParams, options?: RequestOptions): APIPromise<AssetAddResponse> {
13
- return this._client.put(path`/collections/${collectionID}/assets`, { body, ...options });
12
+ add(collectionID: string, params: AssetAddParams, options?: RequestOptions): APIPromise<AssetAddResponse> {
13
+ const { projectId, ...body } = params;
14
+ return this._client.put(path`/collections/${collectionID}/assets`, {
15
+ query: { projectId },
16
+ body,
17
+ ...options,
18
+ });
14
19
  }
15
20
 
16
21
  /**
@@ -18,10 +23,15 @@ export class Assets extends APIResource {
18
23
  */
19
24
  remove(
20
25
  collectionID: string,
21
- body: AssetRemoveParams,
26
+ params: AssetRemoveParams,
22
27
  options?: RequestOptions,
23
28
  ): APIPromise<AssetRemoveResponse> {
24
- return this._client.delete(path`/collections/${collectionID}/assets`, { body, ...options });
29
+ const { projectId, ...body } = params;
30
+ return this._client.delete(path`/collections/${collectionID}/assets`, {
31
+ query: { projectId },
32
+ body,
33
+ ...options,
34
+ });
25
35
  }
26
36
  }
27
37
 
@@ -141,16 +151,29 @@ export namespace AssetRemoveResponse {
141
151
 
142
152
  export interface AssetAddParams {
143
153
  /**
144
- * The ids of the assets to add to the collection. (Max 49 at once)
154
+ * Body param: The ids of the assets to add to the collection. (Max 49 at once)
145
155
  */
146
156
  assetIds: Array<string>;
157
+
158
+ /**
159
+ * Query param: The projectId used for ownership resource management. Either to
160
+ * assert ownership or to set the owner of the resource(s)
161
+ */
162
+ projectId?: string;
147
163
  }
148
164
 
149
165
  export interface AssetRemoveParams {
150
166
  /**
151
- * The ids of the assets to remove from the collection. (Max 49 at once)
167
+ * Body param: The ids of the assets to remove from the collection. (Max 49 at
168
+ * once)
152
169
  */
153
170
  assetIds: Array<string>;
171
+
172
+ /**
173
+ * Query param: The projectId used for ownership resource management. Either to
174
+ * assert ownership or to set the owner of the resource(s)
175
+ */
176
+ projectId?: string;
154
177
  }
155
178
 
156
179
  export declare namespace Assets {
@@ -17,15 +17,20 @@ export class Collections extends APIResource {
17
17
  /**
18
18
  * Create a new collection
19
19
  */
20
- create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse> {
21
- return this._client.post('/collections', { body, ...options });
20
+ create(params: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse> {
21
+ const { projectId, ...body } = params;
22
+ return this._client.post('/collections', { query: { projectId }, body, ...options });
22
23
  }
23
24
 
24
25
  /**
25
26
  * Get the details of a collection
26
27
  */
27
- retrieve(collectionID: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse> {
28
- return this._client.get(path`/collections/${collectionID}`, options);
28
+ retrieve(
29
+ collectionID: string,
30
+ query: CollectionRetrieveParams | null | undefined = {},
31
+ options?: RequestOptions,
32
+ ): APIPromise<CollectionRetrieveResponse> {
33
+ return this._client.get(path`/collections/${collectionID}`, { query, ...options });
29
34
  }
30
35
 
31
36
  /**
@@ -33,10 +38,11 @@ export class Collections extends APIResource {
33
38
  */
34
39
  update(
35
40
  collectionID: string,
36
- body: CollectionUpdateParams,
41
+ params: CollectionUpdateParams,
37
42
  options?: RequestOptions,
38
43
  ): APIPromise<CollectionUpdateResponse> {
39
- return this._client.put(path`/collections/${collectionID}`, { body, ...options });
44
+ const { projectId, ...body } = params;
45
+ return this._client.put(path`/collections/${collectionID}`, { query: { projectId }, body, ...options });
40
46
  }
41
47
 
42
48
  /**
@@ -55,8 +61,13 @@ export class Collections extends APIResource {
55
61
  /**
56
62
  * Delete a collection
57
63
  */
58
- delete(collectionID: string, options?: RequestOptions): APIPromise<unknown> {
59
- return this._client.delete(path`/collections/${collectionID}`, options);
64
+ delete(
65
+ collectionID: string,
66
+ params: CollectionDeleteParams | null | undefined = {},
67
+ options?: RequestOptions,
68
+ ): APIPromise<unknown> {
69
+ const { projectId } = params ?? {};
70
+ return this._client.delete(path`/collections/${collectionID}`, { query: { projectId }, ...options });
60
71
  }
61
72
  }
62
73
 
@@ -288,20 +299,40 @@ export type CollectionDeleteResponse = unknown;
288
299
 
289
300
  export interface CollectionCreateParams {
290
301
  /**
291
- * The name of the collection.
302
+ * Body param: The name of the collection.
292
303
  */
293
304
  name: string;
305
+
306
+ /**
307
+ * Query param: The projectId used for ownership resource management. Either to
308
+ * assert ownership or to set the owner of the resource(s)
309
+ */
310
+ projectId?: string;
311
+ }
312
+
313
+ export interface CollectionRetrieveParams {
314
+ /**
315
+ * The projectId used for ownership resource management. Either to assert ownership
316
+ * or to set the owner of the resource(s)
317
+ */
318
+ projectId?: string;
294
319
  }
295
320
 
296
321
  export interface CollectionUpdateParams {
297
322
  /**
298
- * The new name for the Collection
323
+ * Query param: The projectId used for ownership resource management. Either to
324
+ * assert ownership or to set the owner of the resource(s)
325
+ */
326
+ projectId?: string;
327
+
328
+ /**
329
+ * Body param: The new name for the Collection
299
330
  */
300
331
  name?: string;
301
332
 
302
333
  /**
303
- * The AssetId of the image you want to use as a thumbnail for the collection. Set
304
- * to null to unset the thumbnail.
334
+ * Body param: The AssetId of the image you want to use as a thumbnail for the
335
+ * collection. Set to null to unset the thumbnail.
305
336
  */
306
337
  thumbnail?: string;
307
338
  }
@@ -312,6 +343,20 @@ export interface CollectionListParams extends CollectionsCursorParams {
312
343
  * value is 100, minimum value is 1
313
344
  */
314
345
  pageSize?: number;
346
+
347
+ /**
348
+ * The projectId used for ownership resource management. Either to assert ownership
349
+ * or to set the owner of the resource(s)
350
+ */
351
+ projectId?: string;
352
+ }
353
+
354
+ export interface CollectionDeleteParams {
355
+ /**
356
+ * The projectId used for ownership resource management. Either to assert ownership
357
+ * or to set the owner of the resource(s)
358
+ */
359
+ projectId?: string;
315
360
  }
316
361
 
317
362
  Collections.Assets = Assets;
@@ -326,8 +371,10 @@ export declare namespace Collections {
326
371
  type CollectionDeleteResponse as CollectionDeleteResponse,
327
372
  type CollectionListResponsesCollectionsCursor as CollectionListResponsesCollectionsCursor,
328
373
  type CollectionCreateParams as CollectionCreateParams,
374
+ type CollectionRetrieveParams as CollectionRetrieveParams,
329
375
  type CollectionUpdateParams as CollectionUpdateParams,
330
376
  type CollectionListParams as CollectionListParams,
377
+ type CollectionDeleteParams as CollectionDeleteParams,
331
378
  };
332
379
 
333
380
  export {
@@ -15,8 +15,10 @@ export {
15
15
  type CollectionListResponse,
16
16
  type CollectionDeleteResponse,
17
17
  type CollectionCreateParams,
18
+ type CollectionRetrieveParams,
18
19
  type CollectionUpdateParams,
19
20
  type CollectionListParams,
21
+ type CollectionDeleteParams,
20
22
  type CollectionListResponsesCollectionsCursor,
21
23
  } from './collections';
22
24
  export {
@@ -9,8 +9,13 @@ export class Models extends APIResource {
9
9
  /**
10
10
  * Add models to a specific collection
11
11
  */
12
- add(collectionID: string, body: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse> {
13
- return this._client.put(path`/collections/${collectionID}/models`, { body, ...options });
12
+ add(collectionID: string, params: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse> {
13
+ const { projectId, ...body } = params;
14
+ return this._client.put(path`/collections/${collectionID}/models`, {
15
+ query: { projectId },
16
+ body,
17
+ ...options,
18
+ });
14
19
  }
15
20
 
16
21
  /**
@@ -18,10 +23,15 @@ export class Models extends APIResource {
18
23
  */
19
24
  remove(
20
25
  collectionID: string,
21
- body: ModelRemoveParams,
26
+ params: ModelRemoveParams,
22
27
  options?: RequestOptions,
23
28
  ): APIPromise<ModelRemoveResponse> {
24
- return this._client.delete(path`/collections/${collectionID}/models`, { body, ...options });
29
+ const { projectId, ...body } = params;
30
+ return this._client.delete(path`/collections/${collectionID}/models`, {
31
+ query: { projectId },
32
+ body,
33
+ ...options,
34
+ });
25
35
  }
26
36
  }
27
37
 
@@ -141,16 +151,29 @@ export namespace ModelRemoveResponse {
141
151
 
142
152
  export interface ModelAddParams {
143
153
  /**
144
- * The ids of the models to add to the collection. (Max 49 at once)
154
+ * Body param: The ids of the models to add to the collection. (Max 49 at once)
145
155
  */
146
156
  modelIds: Array<string>;
157
+
158
+ /**
159
+ * Query param: The projectId used for ownership resource management. Either to
160
+ * assert ownership or to set the owner of the resource(s)
161
+ */
162
+ projectId?: string;
147
163
  }
148
164
 
149
165
  export interface ModelRemoveParams {
150
166
  /**
151
- * The ids of the models to remove from the collection. (Max 49 at once)
167
+ * Body param: The ids of the models to remove from the collection. (Max 49 at
168
+ * once)
152
169
  */
153
170
  modelIds: Array<string>;
171
+
172
+ /**
173
+ * Query param: The projectId used for ownership resource management. Either to
174
+ * assert ownership or to set the owner of the resource(s)
175
+ */
176
+ projectId?: string;
154
177
  }
155
178
 
156
179
  export declare namespace Models {