Skip to content

ESPRMAdminOTAImage

Defined in: src/ESPRMAdminOTAImage.ts:11

Shell class for admin OTA image management operations. Methods are added via prototype augmentation in methods/ESPRMAdminOTAImage/*.

new ESPRMAdminOTAImage(): ESPRMAdminOTAImage

ESPRMAdminOTAImage

archiveImage(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminOTAImage/ArchiveImage.ts:27

Archives an OTA firmware image by its image ID.

ArchiveOTAImageParams

Parameters including the OTA image ID to archive.

Promise<ESPAPISuccessResponse>

A success response confirming the image was archived.


confirmPackageUpload(params): Promise<ConfirmOTAPackageUploadResponse>

Defined in: src/methods/ESPRMAdminOTAImage/ConfirmPackageUpload.ts:22

Confirms a completed OTA package (.zip) upload.

ConfirmOTAPackageUploadRequest

The file path, image name, and metadata.

Promise<ConfirmOTAPackageUploadResponse>

The confirmation response with image ID.


confirmUpload(params): Promise<ConfirmOTAImageUploadResponse>

Defined in: src/methods/ESPRMAdminOTAImage/ConfirmUpload.ts:22

Confirms a completed OTA image upload.

ConfirmOTAImageUploadRequest

The image ID and metadata to associate with the upload.

Promise<ConfirmOTAImageUploadResponse>

The confirmation response with the image URL.


deleteImage(otaImageId): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminOTAImage/DeleteImage.ts:26

Deletes an OTA firmware image by its image ID.

string

The ID of the OTA image to delete.

Promise<ESPAPISuccessResponse>

A success response confirming the image was deleted.


getImages(params?): Promise<GetOTAImagesResponse>

Defined in: src/methods/ESPRMAdminOTAImage/GetImages.ts:22

Retrieves OTA firmware images with optional filtering parameters.

GetOTAImagesParams

Optional query parameters to filter the image list.

Promise<GetOTAImagesResponse>

The list of OTA images matching the specified criteria.


getPackageUploadUrl(params): Promise<OTAPackageUploadUrlResponse>

Defined in: src/methods/ESPRMAdminOTAImage/GetPackageUploadUrl.ts:22

Requests a pre-signed URL for uploading an OTA package (.zip) file.

GetOTAPackageUploadUrlParams

The package file name.

Promise<OTAPackageUploadUrlResponse>

The pre-signed upload URL.


getUploadUrl(params): Promise<OTAImageUploadUrlResponse>

Defined in: src/methods/ESPRMAdminOTAImage/GetUploadUrl.ts:22

Requests a pre-signed URL for uploading an OTA image file.

GetOTAImageUploadUrlParams

The image name and optional image type.

Promise<OTAImageUploadUrlResponse>

The pre-signed upload URL and assigned OTA image ID.


uploadImage(params): Promise<OTAImageCreateResponse>

Defined in: src/methods/ESPRMAdminOTAImage/UploadImage.ts:22

Uploads a new OTA firmware image.

CreateOTAImageRequest

The image creation request including image metadata.

Promise<OTAImageCreateResponse>

The response containing the created OTA image details.