@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
@@ -12,15 +12,15 @@ export declare class Collections extends APIResource {
12
12
  /**
13
13
  * Create a new collection
14
14
  */
15
- create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
15
+ create(params: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
16
16
  /**
17
17
  * Get the details of a collection
18
18
  */
19
- retrieve(collectionID: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
19
+ retrieve(collectionID: string, query?: CollectionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
20
20
  /**
21
21
  * Update the name and/or thumbnail of a Collection
22
22
  */
23
- update(collectionID: string, body: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
23
+ update(collectionID: string, params: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
24
24
  /**
25
25
  * List collections of a team
26
26
  */
@@ -28,7 +28,7 @@ export declare class Collections extends APIResource {
28
28
  /**
29
29
  * Delete a collection
30
30
  */
31
- delete(collectionID: string, options?: RequestOptions): APIPromise<unknown>;
31
+ delete(collectionID: string, params?: CollectionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
32
32
  }
33
33
  export type CollectionListResponsesCollectionsCursor = CollectionsCursor<CollectionListResponse>;
34
34
  export interface CollectionCreateResponse {
@@ -209,18 +209,35 @@ export declare namespace CollectionListResponse {
209
209
  export type CollectionDeleteResponse = unknown;
210
210
  export interface CollectionCreateParams {
211
211
  /**
212
- * The name of the collection.
212
+ * Body param: The name of the collection.
213
213
  */
214
214
  name: string;
215
+ /**
216
+ * Query param: The projectId used for ownership resource management. Either to
217
+ * assert ownership or to set the owner of the resource(s)
218
+ */
219
+ projectId?: string;
220
+ }
221
+ export interface CollectionRetrieveParams {
222
+ /**
223
+ * The projectId used for ownership resource management. Either to assert ownership
224
+ * or to set the owner of the resource(s)
225
+ */
226
+ projectId?: string;
215
227
  }
216
228
  export interface CollectionUpdateParams {
217
229
  /**
218
- * The new name for the Collection
230
+ * Query param: The projectId used for ownership resource management. Either to
231
+ * assert ownership or to set the owner of the resource(s)
232
+ */
233
+ projectId?: string;
234
+ /**
235
+ * Body param: The new name for the Collection
219
236
  */
220
237
  name?: string;
221
238
  /**
222
- * The AssetId of the image you want to use as a thumbnail for the collection. Set
223
- * to null to unset the thumbnail.
239
+ * Body param: The AssetId of the image you want to use as a thumbnail for the
240
+ * collection. Set to null to unset the thumbnail.
224
241
  */
225
242
  thumbnail?: string;
226
243
  }
@@ -230,9 +247,21 @@ export interface CollectionListParams extends CollectionsCursorParams {
230
247
  * value is 100, minimum value is 1
231
248
  */
232
249
  pageSize?: number;
250
+ /**
251
+ * The projectId used for ownership resource management. Either to assert ownership
252
+ * or to set the owner of the resource(s)
253
+ */
254
+ projectId?: string;
255
+ }
256
+ export interface CollectionDeleteParams {
257
+ /**
258
+ * The projectId used for ownership resource management. Either to assert ownership
259
+ * or to set the owner of the resource(s)
260
+ */
261
+ projectId?: string;
233
262
  }
234
263
  export declare namespace Collections {
235
- export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionListResponsesCollectionsCursor as CollectionListResponsesCollectionsCursor, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, };
264
+ export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionListResponsesCollectionsCursor as CollectionListResponsesCollectionsCursor, type CollectionCreateParams as CollectionCreateParams, type CollectionRetrieveParams as CollectionRetrieveParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, type CollectionDeleteParams as CollectionDeleteParams, };
236
265
  export { Assets as Assets, type AssetAddResponse as AssetAddResponse, type AssetRemoveResponse as AssetRemoveResponse, type AssetAddParams as AssetAddParams, type AssetRemoveParams as AssetRemoveParams, };
237
266
  export { Models as Models, type ModelAddResponse as ModelAddResponse, type ModelRemoveResponse as ModelRemoveResponse, type ModelAddParams as ModelAddParams, type ModelRemoveParams as ModelRemoveParams, };
238
267
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.mts","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,g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AC;AAE/C,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAKD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"collections.d.mts","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,cAAc,E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AAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -12,15 +12,15 @@ export declare class Collections extends APIResource {
12
12
  /**
13
13
  * Create a new collection
14
14
  */
15
- create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
15
+ create(params: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
16
16
  /**
17
17
  * Get the details of a collection
18
18
  */
19
- retrieve(collectionID: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
19
+ retrieve(collectionID: string, query?: CollectionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
20
20
  /**
21
21
  * Update the name and/or thumbnail of a Collection
22
22
  */
23
- update(collectionID: string, body: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
23
+ update(collectionID: string, params: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
24
24
  /**
25
25
  * List collections of a team
26
26
  */
@@ -28,7 +28,7 @@ export declare class Collections extends APIResource {
28
28
  /**
29
29
  * Delete a collection
30
30
  */
31
- delete(collectionID: string, options?: RequestOptions): APIPromise<unknown>;
31
+ delete(collectionID: string, params?: CollectionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
32
32
  }
33
33
  export type CollectionListResponsesCollectionsCursor = CollectionsCursor<CollectionListResponse>;
34
34
  export interface CollectionCreateResponse {
@@ -209,18 +209,35 @@ export declare namespace CollectionListResponse {
209
209
  export type CollectionDeleteResponse = unknown;
210
210
  export interface CollectionCreateParams {
211
211
  /**
212
- * The name of the collection.
212
+ * Body param: The name of the collection.
213
213
  */
214
214
  name: string;
215
+ /**
216
+ * Query param: The projectId used for ownership resource management. Either to
217
+ * assert ownership or to set the owner of the resource(s)
218
+ */
219
+ projectId?: string;
220
+ }
221
+ export interface CollectionRetrieveParams {
222
+ /**
223
+ * The projectId used for ownership resource management. Either to assert ownership
224
+ * or to set the owner of the resource(s)
225
+ */
226
+ projectId?: string;
215
227
  }
216
228
  export interface CollectionUpdateParams {
217
229
  /**
218
- * The new name for the Collection
230
+ * Query param: The projectId used for ownership resource management. Either to
231
+ * assert ownership or to set the owner of the resource(s)
232
+ */
233
+ projectId?: string;
234
+ /**
235
+ * Body param: The new name for the Collection
219
236
  */
220
237
  name?: string;
221
238
  /**
222
- * The AssetId of the image you want to use as a thumbnail for the collection. Set
223
- * to null to unset the thumbnail.
239
+ * Body param: The AssetId of the image you want to use as a thumbnail for the
240
+ * collection. Set to null to unset the thumbnail.
224
241
  */
225
242
  thumbnail?: string;
226
243
  }
@@ -230,9 +247,21 @@ export interface CollectionListParams extends CollectionsCursorParams {
230
247
  * value is 100, minimum value is 1
231
248
  */
232
249
  pageSize?: number;
250
+ /**
251
+ * The projectId used for ownership resource management. Either to assert ownership
252
+ * or to set the owner of the resource(s)
253
+ */
254
+ projectId?: string;
255
+ }
256
+ export interface CollectionDeleteParams {
257
+ /**
258
+ * The projectId used for ownership resource management. Either to assert ownership
259
+ * or to set the owner of the resource(s)
260
+ */
261
+ projectId?: string;
233
262
  }
234
263
  export declare namespace Collections {
235
- export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionListResponsesCollectionsCursor as CollectionListResponsesCollectionsCursor, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, };
264
+ export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionListResponsesCollectionsCursor as CollectionListResponsesCollectionsCursor, type CollectionCreateParams as CollectionCreateParams, type CollectionRetrieveParams as CollectionRetrieveParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, type CollectionDeleteParams as CollectionDeleteParams, };
236
265
  export { Assets as Assets, type AssetAddResponse as AssetAddResponse, type AssetRemoveResponse as AssetRemoveResponse, type AssetAddParams as AssetAddParams, type AssetRemoveParams as AssetRemoveParams, };
237
266
  export { Models as Models, type ModelAddResponse as ModelAddResponse, type ModelRemoveResponse as ModelRemoveResponse, type ModelAddParams as ModelAddParams, type ModelRemoveParams as ModelRemoveParams, };
238
267
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAiB;AAC5G,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAiB;AAC5G,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE,iCAA8B;AACrG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,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ACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -16,20 +16,22 @@ class Collections extends resource_1.APIResource {
16
16
  /**
17
17
  * Create a new collection
18
18
  */
19
- create(body, options) {
20
- return this._client.post('/collections', { body, ...options });
19
+ create(params, options) {
20
+ const { projectId, ...body } = params;
21
+ return this._client.post('/collections', { query: { projectId }, body, ...options });
21
22
  }
22
23
  /**
23
24
  * Get the details of a collection
24
25
  */
25
- retrieve(collectionID, options) {
26
- return this._client.get((0, path_1.path) `/collections/${collectionID}`, options);
26
+ retrieve(collectionID, query = {}, options) {
27
+ return this._client.get((0, path_1.path) `/collections/${collectionID}`, { query, ...options });
27
28
  }
28
29
  /**
29
30
  * Update the name and/or thumbnail of a Collection
30
31
  */
31
- update(collectionID, body, options) {
32
- return this._client.put((0, path_1.path) `/collections/${collectionID}`, { body, ...options });
32
+ update(collectionID, params, options) {
33
+ const { projectId, ...body } = params;
34
+ return this._client.put((0, path_1.path) `/collections/${collectionID}`, { query: { projectId }, body, ...options });
33
35
  }
34
36
  /**
35
37
  * List collections of a team
@@ -43,8 +45,9 @@ class Collections extends resource_1.APIResource {
43
45
  /**
44
46
  * Delete a collection
45
47
  */
46
- delete(collectionID, options) {
47
- return this._client.delete((0, path_1.path) `/collections/${collectionID}`, options);
48
+ delete(collectionID, params = {}, options) {
49
+ const { projectId } = params ?? {};
50
+ return this._client.delete((0, path_1.path) `/collections/${collectionID}`, { query: { projectId }, ...options });
48
51
  }
49
52
  }
50
53
  exports.Collections = Collections;
@@ -1 +1 @@
1
- {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAA4G;AAC5G,+DAAsC;AACtC,wCAA4G;AAE5G,yDAAqG;AAErG,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,8BAAyC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAhDD,kCAgDC;AAgQD,WAAW,CAAC,MAAM,GAAG,eAAM,CAAC;AAC5B,WAAW,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAA4G;AAC5G,+DAAsC;AACtC,wCAA4G;AAE5G,yDAAqG;AAErG,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9D;;OAEG;IACH,MAAM,CAAC,MAA8B,EAAE,OAAwB;QAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EA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D,kCA2DC;AAkSD,WAAW,CAAC,MAAM,GAAG,eAAM,CAAC;AAC5B,WAAW,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -12,20 +12,22 @@ export class Collections extends APIResource {
12
12
  /**
13
13
  * Create a new collection
14
14
  */
15
- create(body, options) {
16
- return this._client.post('/collections', { body, ...options });
15
+ create(params, options) {
16
+ const { projectId, ...body } = params;
17
+ return this._client.post('/collections', { query: { projectId }, body, ...options });
17
18
  }
18
19
  /**
19
20
  * Get the details of a collection
20
21
  */
21
- retrieve(collectionID, options) {
22
- return this._client.get(path `/collections/${collectionID}`, options);
22
+ retrieve(collectionID, query = {}, options) {
23
+ return this._client.get(path `/collections/${collectionID}`, { query, ...options });
23
24
  }
24
25
  /**
25
26
  * Update the name and/or thumbnail of a Collection
26
27
  */
27
- update(collectionID, body, options) {
28
- return this._client.put(path `/collections/${collectionID}`, { body, ...options });
28
+ update(collectionID, params, options) {
29
+ const { projectId, ...body } = params;
30
+ return this._client.put(path `/collections/${collectionID}`, { query: { projectId }, body, ...options });
29
31
  }
30
32
  /**
31
33
  * List collections of a team
@@ -39,8 +41,9 @@ export class Collections extends APIResource {
39
41
  /**
40
42
  * Delete a collection
41
43
  */
42
- delete(collectionID, options) {
43
- return this._client.delete(path `/collections/${collectionID}`, options);
44
+ delete(collectionID, params = {}, options) {
45
+ const { projectId } = params ?? {};
46
+ return this._client.delete(path `/collections/${collectionID}`, { query: { projectId }, ...options });
44
47
  }
45
48
  }
46
49
  Collections.Assets = Assets;
@@ -1 +1 @@
1
- {"version":3,"file":"collections.mjs","sourceRoot":"","sources":["../../src/resources/collections/collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA4E,MAAM,EAAE,qBAAiB;AAC5G,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA4E,MAAM,EAAE,qBAAiB;AAE5G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tC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,iBAAyC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAkSD,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC;AAC5B,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { Assets, type AssetAddResponse, type AssetRemoveResponse, type AssetAddParams, type AssetRemoveParams, } from "./assets.mjs";
2
- export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionListResponsesCollectionsCursor, } from "./collections.mjs";
2
+ export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionCreateParams, type CollectionRetrieveParams, type CollectionUpdateParams, type CollectionListParams, type CollectionDeleteParams, type CollectionListResponsesCollectionsCursor, } from "./collections.mjs";
3
3
  export { Models, type ModelAddResponse, type ModelRemoveResponse, type ModelAddParams, type ModelRemoveParams, } from "./models.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,qBAAiB;AAClB,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wCAAwC,GAC9C,0BAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,qBAAiB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,qBAAiB;AAClB,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wCAAwC,GAC9C,0BAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,qBAAiB"}
@@ -1,4 +1,4 @@
1
1
  export { Assets, type AssetAddResponse, type AssetRemoveResponse, type AssetAddParams, type AssetRemoveParams, } from "./assets.js";
2
- export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionListResponsesCollectionsCursor, } from "./collections.js";
2
+ export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionCreateParams, type CollectionRetrieveParams, type CollectionUpdateParams, type CollectionListParams, type CollectionDeleteParams, type CollectionListResponsesCollectionsCursor, } from "./collections.js";
3
3
  export { Models, type ModelAddResponse, type ModelRemoveResponse, type ModelAddParams, type ModelRemoveParams, } from "./models.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,oBAAiB;AAClB,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wCAAwC,GAC9C,yBAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,oBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,oBAAiB;AAClB,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wCAAwC,GAC9C,yBAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,oBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,sCAMkB;AALhB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,gDAauB;AAZrB,0GAAA,WAAW,OAAA;AAab,sCAMkB;AALhB,gGAAA,MAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,WAAW,GAUZ,0BAAsB;AACvB,OAAO,EACL,MAAM,GAKP,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/collections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,WAAW,GAYZ,0BAAsB;AACvB,OAAO,EACL,MAAM,GAKP,qBAAiB"}
@@ -5,11 +5,11 @@ export declare class Models extends APIResource {
5
5
  /**
6
6
  * Add models to a specific collection
7
7
  */
8
- add(collectionID: string, body: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse>;
8
+ add(collectionID: string, params: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse>;
9
9
  /**
10
10
  * Remove models from a specific collection
11
11
  */
12
- remove(collectionID: string, body: ModelRemoveParams, options?: RequestOptions): APIPromise<ModelRemoveResponse>;
12
+ remove(collectionID: string, params: ModelRemoveParams, options?: RequestOptions): APIPromise<ModelRemoveResponse>;
13
13
  }
14
14
  export interface ModelAddResponse {
15
15
  collection: ModelAddResponse.Collection;
@@ -103,15 +103,26 @@ export declare namespace ModelRemoveResponse {
103
103
  }
104
104
  export interface ModelAddParams {
105
105
  /**
106
- * The ids of the models to add to the collection. (Max 49 at once)
106
+ * Body param: The ids of the models to add to the collection. (Max 49 at once)
107
107
  */
108
108
  modelIds: Array<string>;
109
+ /**
110
+ * Query param: The projectId used for ownership resource management. Either to
111
+ * assert ownership or to set the owner of the resource(s)
112
+ */
113
+ projectId?: string;
109
114
  }
110
115
  export interface ModelRemoveParams {
111
116
  /**
112
- * The ids of the models to remove from the collection. (Max 49 at once)
117
+ * Body param: The ids of the models to remove from the collection. (Max 49 at
118
+ * once)
113
119
  */
114
120
  modelIds: Array<string>;
121
+ /**
122
+ * Query param: The projectId used for ownership resource management. Either to
123
+ * assert ownership or to set the owner of the resource(s)
124
+ */
125
+ projectId?: string;
115
126
  }
116
127
  export declare namespace Models {
117
128
  export { type ModelAddResponse as ModelAddResponse, type ModelRemoveResponse as ModelRemoveResponse, type ModelAddParams as ModelAddParams, type ModelRemoveParams as ModelRemoveParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW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QAEnB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,EAAE,MAAM,CAAC;QAElB,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC;KAClC;IAED,UAAiB,UAAU,CAAC;QAC1B;;WAEG;QACH,UAAiB,SAAS;YACxB,OAAO,EAAE,MAAM,CAAC;YAEhB,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IASzG;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,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B,UAAU,CAAC;QAC1B;;WAEG;QACH,UAAiB,SAAS;YACxB,OAAO,EAAE,MAAM,CAAC;YAEhB,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -5,11 +5,11 @@ export declare class Models extends APIResource {
5
5
  /**
6
6
  * Add models to a specific collection
7
7
  */
8
- add(collectionID: string, body: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse>;
8
+ add(collectionID: string, params: ModelAddParams, options?: RequestOptions): APIPromise<ModelAddResponse>;
9
9
  /**
10
10
  * Remove models from a specific collection
11
11
  */
12
- remove(collectionID: string, body: ModelRemoveParams, options?: RequestOptions): APIPromise<ModelRemoveResponse>;
12
+ remove(collectionID: string, params: ModelRemoveParams, options?: RequestOptions): APIPromise<ModelRemoveResponse>;
13
13
  }
14
14
  export interface ModelAddResponse {
15
15
  collection: ModelAddResponse.Collection;
@@ -103,15 +103,26 @@ export declare namespace ModelRemoveResponse {
103
103
  }
104
104
  export interface ModelAddParams {
105
105
  /**
106
- * The ids of the models to add to the collection. (Max 49 at once)
106
+ * Body param: The ids of the models to add to the collection. (Max 49 at once)
107
107
  */
108
108
  modelIds: Array<string>;
109
+ /**
110
+ * Query param: The projectId used for ownership resource management. Either to
111
+ * assert ownership or to set the owner of the resource(s)
112
+ */
113
+ projectId?: string;
109
114
  }
110
115
  export interface ModelRemoveParams {
111
116
  /**
112
- * The ids of the models to remove from the collection. (Max 49 at once)
117
+ * Body param: The ids of the models to remove from the collection. (Max 49 at
118
+ * once)
113
119
  */
114
120
  modelIds: Array<string>;
121
+ /**
122
+ * Query param: The projectId used for ownership resource management. Either to
123
+ * assert ownership or to set the owner of the resource(s)
124
+ */
125
+ projectId?: string;
115
126
  }
116
127
  export declare namespace Models {
117
128
  export { type ModelAddResponse as ModelAddResponse, type ModelRemoveResponse as ModelRemoveResponse, type ModelAddParams as ModelAddParams, type ModelRemoveParams as ModelRemoveParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIvG;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,gBAAgB,CAAC,UAAU,CAAC;CACzC;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,UAAU;QACzB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,EAAE,MAAM,CAAC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a specific collection
10
10
  */
11
- add(collectionID, body, options) {
12
- return this._client.put((0, path_1.path) `/collections/${collectionID}/models`, { body, ...options });
11
+ add(collectionID, params, options) {
12
+ const { projectId, ...body } = params;
13
+ return this._client.put((0, path_1.path) `/collections/${collectionID}/models`, {
14
+ query: { projectId },
15
+ body,
16
+ ...options,
17
+ });
13
18
  }
14
19
  /**
15
20
  * Remove models from a specific collection
16
21
  */
17
- remove(collectionID, body, options) {
18
- return this._client.delete((0, path_1.path) `/collections/${collectionID}/models`, { body, ...options });
22
+ remove(collectionID, params, options) {
23
+ const { projectId, ...body } = params;
24
+ return this._client.delete((0, path_1.path) `/collections/${collectionID}/models`, {
25
+ query: { projectId },
26
+ body,
27
+ ...options,
28
+ });
19
29
  }
20
30
  }
21
31
  exports.Models = Models;
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAoB,EAAE,IAAoB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAlBD,wBAkBC"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAoB,EAAE,MAAsB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,SAAS,EAAE;YACjE,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,SAAS,EAAE;YACpE,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,wBA4BC"}
@@ -5,14 +5,24 @@ export class Models extends APIResource {
5
5
  /**
6
6
  * Add models to a specific collection
7
7
  */
8
- add(collectionID, body, options) {
9
- return this._client.put(path `/collections/${collectionID}/models`, { body, ...options });
8
+ add(collectionID, params, options) {
9
+ const { projectId, ...body } = params;
10
+ return this._client.put(path `/collections/${collectionID}/models`, {
11
+ query: { projectId },
12
+ body,
13
+ ...options,
14
+ });
10
15
  }
11
16
  /**
12
17
  * Remove models from a specific collection
13
18
  */
14
- remove(collectionID, body, options) {
15
- return this._client.delete(path `/collections/${collectionID}/models`, { body, ...options });
19
+ remove(collectionID, params, options) {
20
+ const { projectId, ...body } = params;
21
+ return this._client.delete(path `/collections/${collectionID}/models`, {
22
+ query: { projectId },
23
+ body,
24
+ ...options,
25
+ });
16
26
  }
17
27
  }
18
28
  //# sourceMappingURL=models.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAoB,EAAE,IAAoB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
1
+ {"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/collections/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,GAAG,CAAC,YAAoB,EAAE,MAAsB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,YAAY,SAAS,EAAE;YACjE,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,SAAS,EA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