/** * **Create Asset** · `BETA` * * Creates an asset with provided content and metadata. You can't add [SocialLink](#SocialLink) objects when you create an asset. Instead, use [Update Asset](#PATCH-v1-assets-_assetId_). Provide the [Asset](#Asset), binary asset file path, and [content type](/cloud/guides/usage-assets.md#supported-asset-types-and-limits) in the form data. * * **Scopes:** `asset:read`, `asset:write` * * @param body */ export declare const postAssets: import("../..").EndpointGeneric<{}, { path: string; done: boolean; error: { code: number; message: string; }; response: { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }; }, { request: { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }; fileContent: File; }>; /** * **Get Asset** · `BETA` * * Retrieve specific asset metadata. * * **Scopes:** `asset:read` * * @param assetId The unique identifier of the asset. * @param readMask Asset metadata fields to retrieve, including the description, display name, icon, social links, and previews. Examples: `description%2CdisplayName`, `previews%2CtwitchSocialLink`. */ export declare const getAssetsAssetId: import("../..").EndpointGeneric<{ assetId: string; readMask?: string | undefined; }, { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }, undefined>; /** * **Update Asset** · `BETA` * * Updates an asset with provided content and metadata, including the description, display name, icon, social links, and previews. Currently can only update the content body for **Models**. Icons and Previews must be **Image** assets. Icons must have square dimensions. Provide the [Asset](#Asset), binary asset file path, and [content type](/cloud/guides/usage-assets.md#supported-asset-types-and-limits) in the form data. * * **Scopes:** `asset:read`, `asset:write` * * @param body * @param assetId The unique identifier of the asset. * @param updateMask Asset metadata fields to update, including the description, display name, icon, and previews. Examples: `description%2CdisplayName`, `previews%2CtwitchSocialLink`. */ export declare const patchAssetsAssetId: import("../..").EndpointGeneric<{ assetId: string; updateMask?: string | undefined; }, { path: string; done: boolean; error: { code: number; message: string; }; response: { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }; }, { request?: { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; } | undefined; fileContent?: File | undefined; }>; /** * **Archive Asset** · `BETA` * * Archives the asset. Archived assets disappear from the website and are no longer usable or visible in Roblox experiences, but you can [restore](#POST-v1-assets-{assetId}:restore) them. * * **Scopes:** `asset:read`, `asset:write` * * @param assetId The unique identifier of the asset. */ export declare const postAssetsAssetIdArchive: import("../..").EndpointGeneric<{ assetId: string; }, { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }, undefined>; /** * **Restore Asset** · `BETA` * * Restores an archived asset. * * **Scopes:** `asset:read`, `asset:write` * * @param assetId The unique identifier of the asset. */ export declare const postAssetsAssetIdRestore: import("../..").EndpointGeneric<{ assetId: string; }, { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }, undefined>; /** * **List Asset Versions** · `BETA` * * List all versions of a specific asset, with optional pagination. * * **Scopes:** `asset:read` * * @param assetId The unique identifier of the asset. * @param maxPageSize Specifies the number of asset versions to include in the response. Valid values range from 1 to 50 (inclusive). Defaults to 8 when not provided. * @param pageToken A token for pagination. The value is obtained from a previous request and allows for retrieving the next page of asset versions. */ export declare const getAssetsAssetIdVersions: import("../..").EndpointGeneric<{ assetId: string; maxPageSize?: number | undefined; pageToken?: string | undefined; }, { creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; path: string; moderationResult: { moderationState: string; }; published: boolean; }[], undefined>; /** * **Rollback Asset Version** · `BETA` * * Rollback an asset to a specific previous version. Provide the asset version path in the form data. * * **Scopes:** `asset:read`, `asset:write` * * @param body * @param assetId The unique identifier of the asset. */ export declare const postAssetsAssetIdVersionsRollback: import("../..").EndpointGeneric<{ assetId: string; }, { creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; path: string; moderationResult: { moderationState: string; }; published: boolean; }, { assetVersion: string; }>; /** * **Get Asset Version** · `BETA` * * Retrieve a specific asset version by the asset ID and the version number. * * **Scopes:** `asset:read` * * @param assetId The unique identifier of the asset. * @param versionNumber The version number. */ export declare const getAssetsAssetIdVersionsVersionNumber: import("../..").EndpointGeneric<{ assetId: string; versionNumber: string; }, { creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; path: string; moderationResult: { moderationState: string; }; published: boolean; }, undefined>; /** * **Get Operation** · `BETA` * * Get the result of an asset creation or update using the returned Operation ID. Requires **Read** for the API key permission and **asset:read** for OAuth 2.0 apps. * * **Scopes:** `asset:read` * * @param operationId The unique identifier of the operation. */ export declare const getOperationsOperationId: import("../..").EndpointGeneric<{ operationId: string; }, { path: string; done: boolean; error: { code: number; message: string; }; response: { assetType: string; assetId: number; creationContext: { assetPrivacy: "default" | "restricted" | "openUse"; creator: { userId: number; groupId: number; }; expectedPrice: number; }; description: string; displayName: string; path: string; revisionId: string; revisionCreateTime: string; moderationResult: { moderationState: string; }; icon: string; previews: { asset: string; altText: string; }[]; state: "Unspecified" | "Active" | "Archived"; socialLink: { title: string; uri: string; }; }; }, undefined>;