import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Models extends APIResource { /** * Add models to a specific collection */ add(collectionID: string, params: ModelAddParams, options?: RequestOptions): APIPromise; /** * Remove models from a specific collection */ remove(collectionID: string, params: ModelRemoveParams, options?: RequestOptions): APIPromise; } export interface ModelAddResponse { collection: ModelAddResponse.Collection; } export declare namespace ModelAddResponse { interface Collection { /** * The collection ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") */ id: string; assetCount: number; /** * The collection creation date as an ISO string (example: * "2023-02-03T11:19:41.579Z") */ createdAt: string; itemCount: number; modelCount: number; /** * The collection name */ name: string; /** * The owner ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea") */ ownerId: string; /** * The collection last update date as an ISO string (example: * "2023-02-03T11:19:41.579Z") */ updatedAt: string; /** * The thumbnail for the collection (if any) */ thumbnail?: Collection.Thumbnail; } namespace Collection { /** * The thumbnail for the collection (if any) */ interface Thumbnail { assetId: string; url: string; } } } export interface ModelRemoveResponse { collection: ModelRemoveResponse.Collection; } export declare namespace ModelRemoveResponse { interface Collection { /** * The collection ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") */ id: string; assetCount: number; /** * The collection creation date as an ISO string (example: * "2023-02-03T11:19:41.579Z") */ createdAt: string; itemCount: number; modelCount: number; /** * The collection name */ name: string; /** * The owner ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea") */ ownerId: string; /** * The collection last update date as an ISO string (example: * "2023-02-03T11:19:41.579Z") */ updatedAt: string; /** * The thumbnail for the collection (if any) */ thumbnail?: Collection.Thumbnail; } namespace Collection { /** * The thumbnail for the collection (if any) */ interface Thumbnail { assetId: string; url: string; } } } export interface ModelAddParams { /** * Body param: The ids of the models to add to the collection. (Max 49 at once) */ modelIds: Array; /** * Query param: The projectId used for ownership resource management. Either to * assert ownership or to set the owner of the resource(s) */ projectId?: string; } export interface ModelRemoveParams { /** * Body param: The ids of the models to remove from the collection. (Max 49 at * once) */ modelIds: Array; /** * Query param: The projectId used for ownership resource management. Either to * assert ownership or to set the owner of the resource(s) */ projectId?: string; } export declare namespace Models { export { type ModelAddResponse as ModelAddResponse, type ModelRemoveResponse as ModelRemoveResponse, type ModelAddParams as ModelAddParams, type ModelRemoveParams as ModelRemoveParams, }; } //# sourceMappingURL=models.d.ts.map