zigbee-herdsman-converters 25.112.0 → 25.113.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "25.112.0",
3
+ "version": "25.113.0",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "iconv-lite": "^0.7.2",
34
34
  "semver": "^7.7.3",
35
- "zigbee-herdsman": "^8.0.3"
35
+ "zigbee-herdsman": "^9.0.0"
36
36
  },
37
37
  "exports": {
38
38
  ".": "./dist/index.js",
package/dist/lib/ota.d.ts DELETED
@@ -1,73 +0,0 @@
1
- import { Zcl } from "zigbee-herdsman";
2
- import type { Ota, Zh } from "./types";
3
- export interface QueryNextImageRequestPayload {
4
- fieldControl: number;
5
- manufacturerCode: Zcl.ManufacturerCode;
6
- imageType: number;
7
- fileVersion: number;
8
- hardwareVersion?: number;
9
- }
10
- export interface ImageBlockRequestPayload {
11
- fieldControl: number;
12
- manufacturerCode: Zcl.ManufacturerCode;
13
- imageType: number;
14
- fileVersion: number;
15
- fileOffset: number;
16
- maximumDataSize: number;
17
- }
18
- export interface ImagePageRequestPayload extends ImageBlockRequestPayload {
19
- pageSize: number;
20
- responseSpacing: number;
21
- }
22
- export interface UpdateEndRequestPayload {
23
- status: Zcl.Status;
24
- manufacturerCode: Zcl.ManufacturerCode;
25
- imageType: number;
26
- fileVersion: number;
27
- }
28
- export type ImageNotifyPayload = {
29
- payloadType: number;
30
- queryJitter: number;
31
- };
32
- export type QueryNextImageResponsePayload = {
33
- status: Zcl.Status;
34
- } | {
35
- status: Zcl.Status.SUCCESS;
36
- manufacturerCode: Zcl.ManufacturerCode;
37
- imageType: number;
38
- fileVersion: number;
39
- imageSize: number;
40
- };
41
- export type ImageBlockResponsePayload = {
42
- status: Zcl.Status;
43
- manufacturerCode: Zcl.ManufacturerCode;
44
- imageType: number;
45
- fileVersion: number;
46
- fileOffset: number;
47
- dataSize: number;
48
- data: Buffer;
49
- };
50
- export type UpgradeEndResponsePayload = {
51
- manufacturerCode: Zcl.ManufacturerCode;
52
- imageType: number;
53
- fileVersion: number;
54
- currentTime: number;
55
- upgradeTime: number;
56
- };
57
- export declare const ZIGBEE_OTA_LATEST_URL = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json";
58
- export declare const ZIGBEE_OTA_PREVIOUS_URL = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index1.json";
59
- /** When the data size is too big, OTA gets unstable, so default it to 50 bytes maximum. */
60
- export declare const DEFAULT_MAXIMUM_DATA_SIZE = 50;
61
- /** Use to reduce network congestion by throttling response if necessary */
62
- export declare const DEFAULT_IMAGE_BLOCK_RESPONSE_DELAY = 250;
63
- export declare const UPGRADE_FILE_IDENTIFIER: Buffer<ArrayBuffer>;
64
- export declare function setConfiguration(settings: Ota.Settings): void;
65
- export declare function isValidUrl(url: string): boolean;
66
- export declare function parseImage(buffer: Buffer, suppressElementImageParseFailure?: boolean, customParseLogic?: Ota.CustomParseLogic): Ota.Image;
67
- export declare function isUpdateAvailable(device: Zh.Device, extraMetas: Ota.ExtraMetas, requestPayload: Ota.ImageInfo | undefined, previous: boolean): Promise<Ota.UpdateAvailableResult>;
68
- /**
69
- * @see https://zigbeealliance.org/wp-content/uploads/2021/10/07-5123-08-Zigbee-Cluster-Library.pdf 11.12
70
- */
71
- export declare function update(device: Zh.Device, extraMetas: Ota.ExtraMetas, previous: boolean, onProgress: Ota.OnProgress, requestPayload: Ota.ImageInfo, reqTransNum: number): Promise<number | undefined>;
72
- export declare function update(device: Zh.Device, extraMetas: Ota.ExtraMetas, previous: boolean, onProgress: Ota.OnProgress): Promise<number | undefined>;
73
- //# sourceMappingURL=ota.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"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