import * as API from "@distilled.cloud/core/api"; // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-tencentcloud/specs///api.json). Do not edit. import * as S from "@distilled.cloud/core/schema-lite"; import * as __L from "@distilled.cloud/core/schema-lite"; import type * as Redacted from "effect/Redacted"; import { TencentCloudServiceErrors } from "../errors.ts"; import { TencentCloudProtocol, type TencentCloudOpError, type TencentCloudOpContext, } from "../protocol.ts"; import * as Retry from "../retry.ts"; import * as T from "../traits.ts"; // Schema table, filled on first reach (see __S at the end). const __s: any[] = []; export type { TencentCloudOpError, TencentCloudOpContext }; /** Span facts shared by every operation (com.distilled.telemetry#service). */ const TELEMETRY = { system: "tencentcloud-api", responseHeaders: [ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" }, { header: "request-id", name: "http.response.header.request-id", transform: "list" }, ], prefix: "TencentCloud", service: "iotcloud", templates: false, propagate: "w3c", } as const; export type StringList = Array; export interface BatchUpdateFirmwareRequest { ProductId: string; FirmwareVersion: string; FirmwareOriVersion?: string | undefined; UpgradeMethod?: number | undefined; FileName?: string | undefined; FileMd5?: string | undefined; FileSize?: number | undefined; DeviceNames?: StringList | undefined; TimeoutInterval?: number | undefined; Type?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface BatchUpdateFirmwareResponse { TaskId?: number | undefined; RequestId?: string | undefined; } export interface BindDevicesRequest { GatewayProductId: string; GatewayDeviceName: string; ProductId: string; DeviceNames: StringList; Skey?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface BindDevicesResponse { RequestId?: string | undefined; } export interface CancelDeviceFirmwareTaskRequest { ProductId: string; DeviceName: string; FirmwareVersion: string; TaskId: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CancelDeviceFirmwareTaskResponse { RequestId?: string | undefined; } export interface DeviceTag { Tag: string; Type: number; Value: string; Name?: string | null | undefined; } export type DeviceTagList = Array; export interface Attribute { Tags?: DeviceTagList | undefined; } export interface CreateDeviceRequest { ProductId: string; DeviceName: string; Attribute?: Attribute | undefined; DefinedPsk?: string | undefined; Isp?: number | undefined; Imei?: string | undefined; LoraDevEui?: string | undefined; LoraMoteType?: number | undefined; Skey?: string | undefined; LoraAppKey?: string | undefined; TlsCrt?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateDeviceResponse { DeviceName?: string | undefined; DevicePsk?: string | undefined; DeviceCert?: string | undefined; DevicePrivateKey?: string | Redacted.Redacted | undefined; LoraDevEui?: string | undefined; LoraMoteType?: number | undefined; LoraAppKey?: string | undefined; LoraNwkKey?: string | undefined; RequestId?: string | undefined; } export interface CreateMultiDevicesTaskRequest { ProductId: string; ParametersType: string; FileName?: string | undefined; FileSize?: number | undefined; BatchCount?: number | undefined; Hash?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateMultiDevicesTaskResponse { Id?: number | undefined; RequestId?: string | undefined; } export interface CreatePrivateCARequest { CertName: string; CertText: string; VerifyCertText: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreatePrivateCAResponse { RequestId?: string | undefined; } export interface ProductProperties { ProductDescription?: string | undefined; EncryptionType?: string | undefined; Region?: string | undefined; ProductType?: number | undefined; Format?: string | undefined; Platform?: string | undefined; ModelId?: string | undefined; ModelName?: string | undefined; ProductKey?: string | undefined; RegisterType?: number | undefined; ProductSecret?: string | Redacted.Redacted | undefined; RegisterLimit?: number | undefined; OriginProductId?: string | undefined; PrivateCAName?: string | undefined; OriginUserId?: number | undefined; DeviceLimit?: number | undefined; ForbiddenStatus?: number | undefined; AppEUI?: string | undefined; } export interface CreateProductRequest { ProductName: string; ProductProperties?: ProductProperties | undefined; Skey?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateProductResponse { ProductName?: string | undefined; ProductId?: string | undefined; ProductProperties?: ProductProperties | undefined; RequestId?: string | undefined; } export interface CreateTaskFileUrlRequest { ProductId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateTaskFileUrlResponse { Url?: string | undefined; FileName?: string | undefined; RequestId?: string | undefined; } export interface BrokerSubscribe { ProductId: string; DeviceName: string; } export interface CreateTopicPolicyRequest { ProductId: string; TopicName: string; Privilege: number; BrokerSubscribe?: BrokerSubscribe | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateTopicPolicyResponse { RequestId?: string | undefined; } export interface TopicRulePayload { Sql: string; Actions?: string | undefined; Description?: string | undefined; RuleDisabled?: boolean | undefined; } export interface CreateTopicRuleRequest { RuleName: string; TopicRulePayload: TopicRulePayload; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateTopicRuleResponse { RequestId?: string | undefined; } export interface DeleteDeviceRequest { ProductId: string; DeviceName: string; Skey?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteDeviceResponse { RequestId?: string | undefined; } export interface DeleteDeviceResourceRequest { Name: string; DeviceName: string; ProductID?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteDeviceResourceResponse { RequestId?: string | undefined; } export interface DeleteDeviceShadowRequest { ProductId: string; DeviceName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteDeviceShadowResponse { RequestId?: string | undefined; } export interface DeletePrivateCARequest { CertName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeletePrivateCAResponse { RequestId?: string | undefined; } export interface DeleteProductRequest { ProductId: string; Skey?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteProductResponse { RequestId?: string | undefined; } export interface DeleteProductPrivateCARequest { ProductId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteProductPrivateCAResponse { RequestId?: string | undefined; } export interface DeleteTopicRuleRequest { RuleName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteTopicRuleResponse { RequestId?: string | undefined; } export interface DescribeDeviceRequest { ProductId: string; DeviceName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeviceLabel { Key?: string | undefined; Value?: string | undefined; } export type DeviceLabelList = Array; export interface DescribeDeviceResponse { DeviceName?: string | undefined; Online?: number | undefined; LoginTime?: number | undefined; Version?: string | undefined; LastUpdateTime?: number | undefined; DeviceCert?: string | undefined; DevicePsk?: string | undefined; Tags?: DeviceTagList | undefined; DeviceType?: number | undefined; Imei?: string | undefined; Isp?: number | undefined; ConnIP?: number | undefined; LoraDevEui?: string | undefined; LoraMoteType?: number | undefined; LogLevel?: number | null | undefined; FirstOnlineTime?: number | null | undefined; LastOfflineTime?: number | null | undefined; CreateTime?: number | null | undefined; CertState?: number | null | undefined; EnableState?: number | null | undefined; Labels?: DeviceLabelList | null | undefined; ClientIP?: string | null | undefined; FirmwareUpdateTime?: number | null | undefined; CreateUserId?: number | null | undefined; NBIoTDeviceID?: string | undefined; RequestId?: string | undefined; } export interface DescribeDeviceClientKeyRequest { ProductId: string; DeviceName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeDeviceClientKeyResponse { ClientKey?: string | undefined; RequestId?: string | undefined; } export interface DescribeDeviceResourceRequest { DeviceName: string; ProductID?: string | undefined; Name?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeviceResourceInfo { ProductID?: string | undefined; ProductName?: string | undefined; Name?: string | undefined; Md5?: string | undefined; Size?: number | undefined; UpdateTime?: string | undefined; DeviceName?: string | undefined; Status?: number | undefined; Percent?: number | undefined; } export interface DescribeDeviceResourceResponse { Result?: DeviceResourceInfo | undefined; RequestId?: string | undefined; } export interface DescribeDeviceResourcesRequest { Offset: number; Limit: number; ProductID?: string | undefined; DeviceName?: string | undefined; StartTime?: string | undefined; EndTime?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type DeviceResourceInfoList = Array; export interface DescribeDeviceResourcesResponse { TotalCount?: number | undefined; Result?: DeviceResourceInfoList | null | undefined; RequestId?: string | undefined; } export interface DescribeDevicesRequest { ProductId: string; Offset: number; Limit: number; FirmwareVersion?: string | undefined; DeviceName?: string | undefined; EnableState?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeviceInfo { DeviceName?: string | undefined; Online?: number | undefined; LoginTime?: number | undefined; Version?: string | undefined; DeviceCert?: string | undefined; DevicePsk?: string | undefined; Tags?: DeviceTagList | undefined; DeviceType?: number | undefined; Imei?: string | undefined; Isp?: number | undefined; ConnIP?: number | undefined; LastUpdateTime?: number | undefined; LoraDevEui?: string | undefined; LoraMoteType?: number | undefined; FirstOnlineTime?: number | null | undefined; LastOfflineTime?: number | null | undefined; CreateTime?: number | null | undefined; LogLevel?: number | null | undefined; CertState?: number | null | undefined; EnableState?: number | null | undefined; Labels?: DeviceLabelList | null | undefined; ClientIP?: string | null | undefined; FirmwareUpdateTime?: number | null | undefined; CreateUserId?: number | null | undefined; NBIoTDeviceID?: string | undefined; } export type DeviceInfoList = Array; export interface DescribeDevicesResponse { TotalCount?: number | undefined; Devices?: DeviceInfoList | undefined; RequestId?: string | undefined; } export interface DescribeDeviceShadowRequest { ProductId: string; DeviceName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeDeviceShadowResponse { Data?: string | undefined; RequestId?: string | undefined; } export interface DescribeFirmwareRequest { ProductId: string; FirmwareVersion: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeFirmwareResponse { Version?: string | undefined; ProductId?: string | undefined; Name?: string | null | undefined; Description?: string | null | undefined; Md5sum?: string | null | undefined; Createtime?: number | null | undefined; ProductName?: string | undefined; FwType?: string | undefined; UserDefined?: string | null | undefined; RequestId?: string | undefined; } export interface DescribeFirmwareTaskRequest { ProductId: string; FirmwareVersion: string; TaskId: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeFirmwareTaskResponse { TaskId?: number | null | undefined; Status?: number | null | undefined; CreateTime?: number | null | undefined; Type?: number | null | undefined; ProductName?: string | null | undefined; UpgradeMode?: string | null | undefined; ProductId?: string | null | undefined; OriginalVersion?: string | null | undefined; RequestId?: string | undefined; } export interface SearchKeyword { Key: string; Value?: string | undefined; } export type SearchKeywordList = Array; export interface DescribeFirmwareTaskDevicesRequest { ProductId: string; FirmwareVersion?: string | undefined; Filters?: SearchKeywordList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeviceUpdateStatus { DeviceName?: string | undefined; LastProcessTime?: number | undefined; Status?: number | undefined; ErrMsg?: string | undefined; Retcode?: number | undefined; DstVersion?: string | undefined; Percent?: number | null | undefined; OriVersion?: string | null | undefined; TaskId?: number | null | undefined; } export type DeviceUpdateStatusList = Array; export interface DescribeFirmwareTaskDevicesResponse { Total?: number | null | undefined; Devices?: DeviceUpdateStatusList | null | undefined; RequestId?: string | undefined; } export interface DescribeFirmwareTaskDistributionRequest { ProductId: string; FirmwareVersion: string; TaskId: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface StatusStatistic { Status?: number | null | undefined; Total?: number | null | undefined; } export type StatusStatisticList = Array; export interface DescribeFirmwareTaskDistributionResponse { StatusInfos?: StatusStatisticList | undefined; RequestId?: string | undefined; } export interface DescribeFirmwareTasksRequest { ProductId: string; FirmwareVersion: string; Offset: number; Limit: number; Filters?: SearchKeywordList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface FirmwareTaskInfo { TaskId?: number | null | undefined; Status?: number | null | undefined; Type?: number | null | undefined; CreateTime?: number | null | undefined; } export type FirmwareTaskInfoList = Array; export interface DescribeFirmwareTasksResponse { TaskInfos?: FirmwareTaskInfoList | null | undefined; Total?: number | null | undefined; RequestId?: string | undefined; } export interface DescribeFirmwareTaskStatisticsRequest { ProductId: string; FirmwareVersion: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeFirmwareTaskStatisticsResponse { SuccessTotal?: number | null | undefined; FailureTotal?: number | null | undefined; UpgradingTotal?: number | null | undefined; RequestId?: string | undefined; } export interface DescribeGatewayBindDevicesRequest { GatewayProductId: string; GatewayDeviceName: string; Offset: number; Limit: number; ProductId?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface BindDeviceInfo { ProductId?: string | undefined; DeviceName?: string | undefined; Tags?: DeviceTagList | undefined; BindTime?: number | null | undefined; } export type BindDeviceInfoList = Array; export interface DescribeGatewayBindDevicesResponse { TotalCount?: number | undefined; Devices?: BindDeviceInfoList | undefined; ProductName?: string | undefined; RequestId?: string | undefined; } export interface DescribePrivateCARequest { CertName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CertInfo { CertName?: string | undefined; CertSN?: string | undefined; IssuerName?: string | undefined; Subject?: string | undefined; CreateTime?: number | undefined; EffectiveTime?: number | undefined; ExpireTime?: number | undefined; CertText?: string | undefined; } export interface DescribePrivateCAResponse { CA?: CertInfo | undefined; RequestId?: string | undefined; } export interface DescribePrivateCABindedProductsRequest { CertName: string; Offset: number; Limit: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface BindProductInfo { ProductId?: string | undefined; ProductName?: string | undefined; } export type BindProductInfoList = Array; export interface DescribePrivateCABindedProductsResponse { Products?: BindProductInfoList | undefined; RequestId?: string | undefined; } export interface DescribePrivateCAsRequest { /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type CertInfoList = Array; export interface DescribePrivateCAsResponse { CAs?: CertInfoList | undefined; RequestId?: string | undefined; } export interface DescribeProductRequest { ProductId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ProductMetadata { CreationDate?: number | undefined; CreateUserId?: number | undefined; UserId?: number | undefined; } export interface DescribeProductResponse { ProductId?: string | undefined; ProductName?: string | undefined; ProductMetadata?: ProductMetadata | undefined; ProductProperties?: ProductProperties | undefined; RequestId?: string | undefined; } export interface DescribeProductCARequest { ProductId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeProductCAResponse { CAs?: CertInfoList | undefined; RequestId?: string | undefined; } export interface DescribeProductResourceRequest { ProductID?: string | undefined; Name?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ProductResourceInfo { ProductID?: string | undefined; ProductName?: string | undefined; Name?: string | undefined; Md5?: string | undefined; Size?: number | undefined; Description?: string | null | undefined; CreateTime?: string | undefined; } export interface DescribeProductResourceResponse { Result?: ProductResourceInfo | null | undefined; RequestId?: string | undefined; } export interface DescribeProductResourcesRequest { Offset: number; Limit: number; ProductID?: string | undefined; Name?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type ProductResourceInfoList = Array; export interface DescribeProductResourcesResponse { TotalCount?: number | undefined; Result?: ProductResourceInfoList | null | undefined; RequestId?: string | undefined; } export interface DescribeProductsRequest { Offset: number; Limit: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ProductInfo { ProductId?: string | undefined; ProductName?: string | undefined; ProductMetadata?: ProductMetadata | undefined; ProductProperties?: ProductProperties | undefined; } export type ProductInfoList = Array; export interface DescribeProductsResponse { TotalCount?: number | undefined; Products?: ProductInfoList | undefined; RequestId?: string | undefined; } export interface DescribeProductTaskRequest { ProductId: string; TaskId: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ProductTaskInfo { Id?: number | undefined; Type?: number | undefined; State?: number | undefined; ParametersType?: string | undefined; Parameters?: string | undefined; ResultType?: string | null | undefined; Result?: string | null | undefined; BatchCount?: number | null | undefined; BatchOffset?: number | null | undefined; CreateTime?: number | undefined; UpdateTime?: number | undefined; CompleteTime?: number | null | undefined; } export interface DescribeProductTaskResponse { TaskInfo?: ProductTaskInfo | undefined; RequestId?: string | undefined; } export interface DescribeProductTasksRequest { ProductId: string; Offset: number; Limit: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type ProductTaskInfoList = Array; export interface DescribeProductTasksResponse { TotalCount?: number | undefined; TaskInfos?: ProductTaskInfoList | undefined; RequestId?: string | undefined; } export interface DescribePushResourceTaskStatisticsRequest { ProductID: string; Name: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribePushResourceTaskStatisticsResponse { SuccessTotal?: number | null | undefined; FailureTotal?: number | null | undefined; UpgradingTotal?: number | null | undefined; RequestId?: string | undefined; } export interface DescribeResourceTasksRequest { ProductID: string; Name: string; Offset: number; Limit: number; Filters?: SearchKeywordList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeResourceTasksResponse { TaskInfos?: FirmwareTaskInfoList | null | undefined; Total?: number | null | undefined; RequestId?: string | undefined; } export interface DisableTopicRuleRequest { RuleName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DisableTopicRuleResponse { RequestId?: string | undefined; } export interface DownloadDeviceResourceRequest { ProductID: string; Name: string; DeviceName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DownloadDeviceResourceResponse { Url?: string | undefined; RequestId?: string | undefined; } export interface EditFirmwareRequest { ProductId: string; FirmwareVersion: string; FirmwareName: string; FirmwareDescription?: string | undefined; FirmwareUserDefined?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface EditFirmwareResponse { RequestId?: string | undefined; } export interface EnableTopicRuleRequest { RuleName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface EnableTopicRuleResponse { RequestId?: string | undefined; } export interface GetAllVersionRequest { ProductId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface GetAllVersionResponse { Version?: StringList | undefined; RequestId?: string | undefined; } export interface GetCOSURLRequest { ProductId: string; FirmwareVersion: string; FileSize?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface GetCOSURLResponse { Url?: string | undefined; RequestId?: string | undefined; } export interface GetUserResourceInfoRequest { /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface GetUserResourceInfoResponse { UsedSize?: number | undefined; Limit?: number | undefined; RequestId?: string | undefined; } export interface ListFirmwaresRequest { PageNum: number; PageSize: number; ProductId?: string | undefined; Filters?: SearchKeywordList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface FirmwareInfo { Version?: string | undefined; Md5sum?: string | undefined; CreateTime?: number | undefined; ProductName?: string | null | undefined; Name?: string | null | undefined; Description?: string | null | undefined; ProductId?: string | null | undefined; FwType?: string | null | undefined; CreateUserId?: number | null | undefined; UserDefined?: string | null | undefined; } export type FirmwareInfoList = Array; export interface ListFirmwaresResponse { TotalCount?: number | undefined; Firmwares?: FirmwareInfoList | undefined; RequestId?: string | undefined; } export interface ListLogRequest { MinTime: number; MaxTime: number; Keywords?: string | undefined; Context?: string | undefined; MaxNum?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CLSLogItem { Content?: string | undefined; DeviceName?: string | undefined; ProductId?: string | undefined; RequestId?: string | undefined; Result?: string | undefined; Scene?: string | undefined; Time?: string | undefined; UserId?: string | undefined; } export type CLSLogItemList = Array; export interface ListLogResponse { Context?: string | undefined; Listover?: boolean | undefined; Results?: CLSLogItemList | undefined; TotalCount?: number | undefined; RequestId?: string | undefined; } export interface ListLogPayloadRequest { MinTime: number; MaxTime: number; Keywords: string; Context?: string | undefined; MaxNum?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface PayloadLogItem { Uin?: string | undefined; ProductId?: string | undefined; DeviceName?: string | undefined; SrcType?: string | undefined; SrcName?: string | undefined; Topic?: string | undefined; PayloadFormatType?: string | undefined; Payload?: string | undefined; RequestId?: string | undefined; DateTime?: string | undefined; } export type PayloadLogItemList = Array; export interface ListLogPayloadResponse { Context?: string | undefined; Listover?: boolean | undefined; Results?: PayloadLogItemList | undefined; RequestId?: string | undefined; } export interface ListSDKLogRequest { MinTime: number; MaxTime: number; Keywords: string; Context?: string | undefined; MaxNum?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface SDKLogItem { ProductId?: string | undefined; DeviceName?: string | undefined; Level?: string | undefined; DateTime?: string | undefined; Content?: string | undefined; } export type SDKLogItemList = Array; export interface ListSDKLogResponse { Context?: string | undefined; Listover?: boolean | undefined; Results?: SDKLogItemList | undefined; RequestId?: string | undefined; } export interface ListTopicRulesRequest { PageNum: number; PageSize: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TopicRuleInfo { RuleName?: string | undefined; Description?: string | undefined; CreatedAt?: number | undefined; RuleDisabled?: boolean | undefined; TopicPattern?: string | undefined; } export type TopicRuleInfoList = Array; export interface ListTopicRulesResponse { TotalCnt?: number | undefined; Rules?: TopicRuleInfoList | undefined; RequestId?: string | undefined; } export interface PublishBroadcastMessageRequest { ProductId: string; Payload: string; Qos: number; PayloadEncoding?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface PublishBroadcastMessageResponse { TaskId?: number | undefined; RequestId?: string | undefined; } export interface PublishMessageRequest { Topic: string; Payload: string; ProductId: string; DeviceName: string; Qos?: number | undefined; PayloadEncoding?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface PublishMessageResponse { RequestId?: string | undefined; } export interface PublishRRPCMessageRequest { ProductId: string; DeviceName: string; Payload: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface PublishRRPCMessageResponse { MessageId?: number | undefined; PayloadBase64?: string | undefined; RequestId?: string | undefined; } export interface ReplaceTopicRuleRequest { RuleName: string; TopicRulePayload: TopicRulePayload; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ReplaceTopicRuleResponse { RequestId?: string | undefined; } export interface ResetDeviceStateRequest { ProductId: string; DeviceNames: StringList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ResetDeviceResult { DeviceName?: string | undefined; Success?: boolean | undefined; Reason?: string | null | undefined; } export type ResetDeviceResultList = Array; export interface ResetDeviceStateResponse { SuccessCount?: number | undefined; ResetDeviceResults?: ResetDeviceResultList | undefined; RequestId?: string | undefined; } export interface RetryDeviceFirmwareTaskRequest { ProductId: string; DeviceName: string; FirmwareVersion: string; TaskId: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface RetryDeviceFirmwareTaskResponse { RequestId?: string | undefined; } export interface SetProductsForbiddenStatusRequest { ProductId: StringList; Status: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface SetProductsForbiddenStatusResponse { RequestId?: string | undefined; } export interface UnbindDevicesRequest { GatewayProductId: string; GatewayDeviceName: string; ProductId: string; DeviceNames: StringList; Skey?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UnbindDevicesResponse { RequestId?: string | undefined; } export interface UpdateDeviceAvailableStateRequest { ProductId: string; DeviceName: string; EnableState: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateDeviceAvailableStateResponse { RequestId?: string | undefined; } export interface UpdateDeviceLogLevelRequest { ProductId: string; DeviceName: string; LogLevel: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateDeviceLogLevelResponse { RequestId?: string | undefined; } export interface UpdateDevicePSKRequest { ProductId: string; DeviceName: string; Psk: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateDevicePSKResponse { RequestId?: string | undefined; } export interface UpdateDevicesEnableStateRequest { ProductId: string; DeviceNames: StringList; Status: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateDevicesEnableStateResponse { RequestId?: string | undefined; } export interface UpdateDeviceShadowRequest { ProductId: string; DeviceName: string; State: string; ShadowVersion: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateDeviceShadowResponse { Data?: string | undefined; RequestId?: string | undefined; } export interface UpdateOtaTaskStatusRequest { ProductId: string; TaskId: number; Status: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateOtaTaskStatusResponse { RequestId?: string | undefined; } export interface UpdatePrivateCARequest { CertName: string; CertText: string; VerifyCertText: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdatePrivateCAResponse { RequestId?: string | undefined; } export interface UpdateProductDynamicRegisterRequest { ProductId: string; RegisterType: number; RegisterLimit: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateProductDynamicRegisterResponse { RegisterType?: number | undefined; ProductSecret?: string | Redacted.Redacted | undefined; RegisterLimit?: number | undefined; RequestId?: string | undefined; } export interface UpdateProductPrivateCARequest { ProductId: string; CertName: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateProductPrivateCAResponse { RequestId?: string | undefined; } export interface UpdateTopicPolicyRequest { ProductId: string; TopicName: string; NewTopicName: string; Privilege: number; BrokerSubscribe?: BrokerSubscribe | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UpdateTopicPolicyResponse { RequestId?: string | undefined; } export interface UploadFirmwareRequest { ProductId: string; FirmwareVersion: string; Md5sum: string; FileSize: number; FirmwareName?: string | undefined; FirmwareDescription?: string | undefined; FirmwareUserDefined?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface UploadFirmwareResponse { RequestId?: string | undefined; } export type BatchUpdateFirmwareError = TencentCloudOpError; export const batchUpdateFirmware: API.OperationMethod< BatchUpdateFirmwareRequest, BatchUpdateFirmwareResponse, BatchUpdateFirmwareError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(0, __c0, 0) as any as S.Schema, output: __S(8, __c2, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "BatchUpdateFirmware", })); export type BindDevicesError = TencentCloudOpError; export const bindDevices: API.OperationMethod< BindDevicesRequest, BindDevicesResponse, BindDevicesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(12, __c3, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "BindDevices", })); export type CancelDeviceFirmwareTaskError = TencentCloudOpError; export const cancelDeviceFirmwareTask: API.OperationMethod< CancelDeviceFirmwareTaskRequest, CancelDeviceFirmwareTaskResponse, CancelDeviceFirmwareTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(68, __c17, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CancelDeviceFirmwareTask", })); export type CreateDeviceError = TencentCloudOpError; export const createDevice: API.OperationMethod< CreateDeviceRequest, CreateDeviceResponse, CreateDeviceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(129, __c32, 1) as any as S.Schema, output: __S(130, __c32, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateDevice", })); export type CreateMultiDevicesTaskError = TencentCloudOpError; export const createMultiDevicesTask: API.OperationMethod< CreateMultiDevicesTaskRequest, CreateMultiDevicesTaskResponse, CreateMultiDevicesTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(196, __c49, 0) as any as S.Schema, output: __S(197, __c49, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateMultiDevicesTask", })); export type CreatePrivateCAError = TencentCloudOpError; export const createPrivateCA: API.OperationMethod< CreatePrivateCARequest, CreatePrivateCAResponse, CreatePrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(244, __c61, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreatePrivateCA", })); export type CreateProductError = TencentCloudOpError; export const createProduct: API.OperationMethod< CreateProductRequest, CreateProductResponse, CreateProductError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(288, __c72, 0) as any as S.Schema, output: __S(289, __c72, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateProduct", })); export type CreateTaskFileUrlError = TencentCloudOpError; export const createTaskFileUrl: API.OperationMethod< CreateTaskFileUrlRequest, CreateTaskFileUrlResponse, CreateTaskFileUrlError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(336, __c84, 0) as any as S.Schema, output: __S(337, __c84, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateTaskFileUrl", })); export type CreateTopicPolicyError = TencentCloudOpError; export const createTopicPolicy: API.OperationMethod< CreateTopicPolicyRequest, CreateTopicPolicyResponse, CreateTopicPolicyError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(352, __c88, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateTopicPolicy", })); export type CreateTopicRuleError = TencentCloudOpError; export const createTopicRule: API.OperationMethod< CreateTopicRuleRequest, CreateTopicRuleResponse, CreateTopicRuleError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(360, __c90, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateTopicRule", })); export type DeleteDeviceError = TencentCloudOpError; export const deleteDevice: API.OperationMethod< DeleteDeviceRequest, DeleteDeviceResponse, DeleteDeviceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(20, __c5, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteDevice", })); export type DeleteDeviceResourceError = TencentCloudOpError; export const deleteDeviceResource: API.OperationMethod< DeleteDeviceResourceRequest, DeleteDeviceResourceResponse, DeleteDeviceResourceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(24, __c6, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteDeviceResource", })); export type DeleteDeviceShadowError = TencentCloudOpError; export const deleteDeviceShadow: API.OperationMethod< DeleteDeviceShadowRequest, DeleteDeviceShadowResponse, DeleteDeviceShadowError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(28, __c7, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteDeviceShadow", })); export type DeletePrivateCAError = TencentCloudOpError; export const deletePrivateCA: API.OperationMethod< DeletePrivateCARequest, DeletePrivateCAResponse, DeletePrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(32, __c8, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeletePrivateCA", })); export type DeleteProductError = TencentCloudOpError; export const deleteProduct: API.OperationMethod< DeleteProductRequest, DeleteProductResponse, DeleteProductError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(36, __c9, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteProduct", })); export type DeleteProductPrivateCAError = TencentCloudOpError; export const deleteProductPrivateCA: API.OperationMethod< DeleteProductPrivateCARequest, DeleteProductPrivateCAResponse, DeleteProductPrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(40, __c10, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteProductPrivateCA", })); export type DeleteTopicRuleError = TencentCloudOpError; export const deleteTopicRule: API.OperationMethod< DeleteTopicRuleRequest, DeleteTopicRuleResponse, DeleteTopicRuleError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(44, __c11, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteTopicRule", })); export type DescribeDeviceError = TencentCloudOpError; export const describeDevice: API.OperationMethod< DescribeDeviceRequest, DescribeDeviceResponse, DescribeDeviceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(48, __c12, 0) as any as S.Schema, output: __S(49, __c12, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDevice", })); export type DescribeDeviceClientKeyError = TencentCloudOpError; export const describeDeviceClientKey: API.OperationMethod< DescribeDeviceClientKeyRequest, DescribeDeviceClientKeyResponse, DescribeDeviceClientKeyError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(56, __c14, 0) as any as S.Schema, output: __S(57, __c14, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDeviceClientKey", })); export type DescribeDeviceResourceError = TencentCloudOpError; export const describeDeviceResource: API.OperationMethod< DescribeDeviceResourceRequest, DescribeDeviceResourceResponse, DescribeDeviceResourceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(60, __c15, 0) as any as S.Schema, output: __S(61, __c15, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDeviceResource", })); export type DescribeDeviceResourcesError = TencentCloudOpError; export const describeDeviceResources: API.OperationMethod< DescribeDeviceResourcesRequest, DescribeDeviceResourcesResponse, DescribeDeviceResourcesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(72, __c18, 0) as any as S.Schema, output: __S(74, __c18, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDeviceResources", })); export type DescribeDevicesError = TencentCloudOpError; export const describeDevices: API.OperationMethod< DescribeDevicesRequest, DescribeDevicesResponse, DescribeDevicesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(76, __c19, 0) as any as S.Schema, output: __S(79, __c19, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDevices", })); export type DescribeDeviceShadowError = TencentCloudOpError; export const describeDeviceShadow: API.OperationMethod< DescribeDeviceShadowRequest, DescribeDeviceShadowResponse, DescribeDeviceShadowError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(80, __c20, 0) as any as S.Schema, output: __S(84, __c21, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeDeviceShadow", })); export type DescribeFirmwareError = TencentCloudOpError; export const describeFirmware: API.OperationMethod< DescribeFirmwareRequest, DescribeFirmwareResponse, DescribeFirmwareError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(88, __c22, 0) as any as S.Schema, output: __S(89, __c22, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmware", })); export type DescribeFirmwareTaskError = TencentCloudOpError; export const describeFirmwareTask: API.OperationMethod< DescribeFirmwareTaskRequest, DescribeFirmwareTaskResponse, DescribeFirmwareTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(92, __c23, 0) as any as S.Schema, output: __S(93, __c23, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmwareTask", })); export type DescribeFirmwareTaskDevicesError = TencentCloudOpError; export const describeFirmwareTaskDevices: API.OperationMethod< DescribeFirmwareTaskDevicesRequest, DescribeFirmwareTaskDevicesResponse, DescribeFirmwareTaskDevicesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(96, __c24, 0) as any as S.Schema, output: __S(99, __c24, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmwareTaskDevices", })); export type DescribeFirmwareTaskDistributionError = TencentCloudOpError; export const describeFirmwareTaskDistribution: API.OperationMethod< DescribeFirmwareTaskDistributionRequest, DescribeFirmwareTaskDistributionResponse, DescribeFirmwareTaskDistributionError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(104, __c26, 0) as any as S.Schema, output: __S(107, __c26, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmwareTaskDistribution", })); export type DescribeFirmwareTasksError = TencentCloudOpError; export const describeFirmwareTasks: API.OperationMethod< DescribeFirmwareTasksRequest, DescribeFirmwareTasksResponse, DescribeFirmwareTasksError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(108, __c27, 0) as any as S.Schema, output: __S(114, __c28, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmwareTasks", })); export type DescribeFirmwareTaskStatisticsError = TencentCloudOpError; export const describeFirmwareTaskStatistics: API.OperationMethod< DescribeFirmwareTaskStatisticsRequest, DescribeFirmwareTaskStatisticsResponse, DescribeFirmwareTaskStatisticsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(116, __c29, 0) as any as S.Schema, output: __S(120, __c30, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeFirmwareTaskStatistics", })); export type DescribeGatewayBindDevicesError = TencentCloudOpError; export const describeGatewayBindDevices: API.OperationMethod< DescribeGatewayBindDevicesRequest, DescribeGatewayBindDevicesResponse, DescribeGatewayBindDevicesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(124, __c31, 0) as any as S.Schema, output: __S(127, __c31, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeGatewayBindDevices", })); export type DescribePrivateCAError = TencentCloudOpError; export const describePrivateCA: API.OperationMethod< DescribePrivateCARequest, DescribePrivateCAResponse, DescribePrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(136, __c34, 0) as any as S.Schema, output: __S(137, __c34, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribePrivateCA", })); export type DescribePrivateCABindedProductsError = TencentCloudOpError; export const describePrivateCABindedProducts: API.OperationMethod< DescribePrivateCABindedProductsRequest, DescribePrivateCABindedProductsResponse, DescribePrivateCABindedProductsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(144, __c36, 0) as any as S.Schema, output: __S(147, __c36, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribePrivateCABindedProducts", })); export type DescribePrivateCAsError = TencentCloudOpError; export const describePrivateCAs: API.OperationMethod< DescribePrivateCAsRequest, DescribePrivateCAsResponse, DescribePrivateCAsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(148, __c37, 0) as any as S.Schema, output: __S(153, __c38, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribePrivateCAs", })); export type DescribeProductError = TencentCloudOpError; export const describeProduct: API.OperationMethod< DescribeProductRequest, DescribeProductResponse, DescribeProductError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(156, __c39, 0) as any as S.Schema, output: __S(157, __c39, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProduct", })); export type DescribeProductCAError = TencentCloudOpError; export const describeProductCA: API.OperationMethod< DescribeProductCARequest, DescribeProductCAResponse, DescribeProductCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(164, __c41, 0) as any as S.Schema, output: __S(153, __c38, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProductCA", })); export type DescribeProductResourceError = TencentCloudOpError; export const describeProductResource: API.OperationMethod< DescribeProductResourceRequest, DescribeProductResourceResponse, DescribeProductResourceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(168, __c42, 0) as any as S.Schema, output: __S(169, __c42, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProductResource", })); export type DescribeProductResourcesError = TencentCloudOpError; export const describeProductResources: API.OperationMethod< DescribeProductResourcesRequest, DescribeProductResourcesResponse, DescribeProductResourcesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(176, __c44, 0) as any as S.Schema, output: __S(178, __c44, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProductResources", })); export type DescribeProductsError = TencentCloudOpError; export const describeProducts: API.OperationMethod< DescribeProductsRequest, DescribeProductsResponse, DescribeProductsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(180, __c45, 0) as any as S.Schema, output: __S(183, __c45, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProducts", })); export type DescribeProductTaskError = TencentCloudOpError; export const describeProductTask: API.OperationMethod< DescribeProductTaskRequest, DescribeProductTaskResponse, DescribeProductTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(184, __c46, 0) as any as S.Schema, output: __S(185, __c46, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProductTask", })); export type DescribeProductTasksError = TencentCloudOpError; export const describeProductTasks: API.OperationMethod< DescribeProductTasksRequest, DescribeProductTasksResponse, DescribeProductTasksError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(192, __c48, 0) as any as S.Schema, output: __S(194, __c48, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeProductTasks", })); export type DescribePushResourceTaskStatisticsError = TencentCloudOpError; export const describePushResourceTaskStatistics: API.OperationMethod< DescribePushResourceTaskStatisticsRequest, DescribePushResourceTaskStatisticsResponse, DescribePushResourceTaskStatisticsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(200, __c50, 0) as any as S.Schema, output: __S(120, __c30, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribePushResourceTaskStatistics", })); export type DescribeResourceTasksError = TencentCloudOpError; export const describeResourceTasks: API.OperationMethod< DescribeResourceTasksRequest, DescribeResourceTasksResponse, DescribeResourceTasksError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(204, __c51, 0) as any as S.Schema, output: __S(114, __c28, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeResourceTasks", })); export type DisableTopicRuleError = TencentCloudOpError; export const disableTopicRule: API.OperationMethod< DisableTopicRuleRequest, DisableTopicRuleResponse, DisableTopicRuleError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(208, __c52, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DisableTopicRule", })); export type DownloadDeviceResourceError = TencentCloudOpError; export const downloadDeviceResource: API.OperationMethod< DownloadDeviceResourceRequest, DownloadDeviceResourceResponse, DownloadDeviceResourceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(212, __c53, 0) as any as S.Schema, output: __S(216, __c54, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DownloadDeviceResource", })); export type EditFirmwareError = TencentCloudOpError; export const editFirmware: API.OperationMethod< EditFirmwareRequest, EditFirmwareResponse, EditFirmwareError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(220, __c55, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "EditFirmware", })); export type EnableTopicRuleError = TencentCloudOpError; export const enableTopicRule: API.OperationMethod< EnableTopicRuleRequest, EnableTopicRuleResponse, EnableTopicRuleError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(224, __c56, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "EnableTopicRule", })); export type GetAllVersionError = TencentCloudOpError; export const getAllVersion: API.OperationMethod< GetAllVersionRequest, GetAllVersionResponse, GetAllVersionError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(228, __c57, 0) as any as S.Schema, output: __S(229, __c57, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetAllVersion", })); export type GetCOSURLError = TencentCloudOpError; export const getCOSURL: API.OperationMethod< GetCOSURLRequest, GetCOSURLResponse, GetCOSURLError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(232, __c58, 0) as any as S.Schema, output: __S(216, __c54, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetCOSURL", })); export type GetUserResourceInfoError = TencentCloudOpError; export const getUserResourceInfo: API.OperationMethod< GetUserResourceInfoRequest, GetUserResourceInfoResponse, GetUserResourceInfoError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(236, __c59, 0) as any as S.Schema, output: __S(237, __c59, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetUserResourceInfo", })); export type ListFirmwaresError = TencentCloudOpError; export const listFirmwares: API.OperationMethod< ListFirmwaresRequest, ListFirmwaresResponse, ListFirmwaresError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(240, __c60, 0) as any as S.Schema, output: __S(243, __c60, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListFirmwares", })); export type ListLogError = TencentCloudOpError; export const listLog: API.OperationMethod< ListLogRequest, ListLogResponse, ListLogError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(248, __c62, 0) as any as S.Schema, output: __S(251, __c62, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListLog", })); export type ListLogPayloadError = TencentCloudOpError; export const listLogPayload: API.OperationMethod< ListLogPayloadRequest, ListLogPayloadResponse, ListLogPayloadError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(252, __c63, 0) as any as S.Schema, output: __S(255, __c63, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListLogPayload", })); export type ListSDKLogError = TencentCloudOpError; export const listSDKLog: API.OperationMethod< ListSDKLogRequest, ListSDKLogResponse, ListSDKLogError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(256, __c64, 0) as any as S.Schema, output: __S(259, __c64, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListSDKLog", })); export type ListTopicRulesError = TencentCloudOpError; export const listTopicRules: API.OperationMethod< ListTopicRulesRequest, ListTopicRulesResponse, ListTopicRulesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(260, __c65, 0) as any as S.Schema, output: __S(263, __c65, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListTopicRules", })); export type PublishBroadcastMessageError = TencentCloudOpError; export const publishBroadcastMessage: API.OperationMethod< PublishBroadcastMessageRequest, PublishBroadcastMessageResponse, PublishBroadcastMessageError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(264, __c66, 0) as any as S.Schema, output: __S(8, __c2, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PublishBroadcastMessage", })); export type PublishMessageError = TencentCloudOpError; export const publishMessage: API.OperationMethod< PublishMessageRequest, PublishMessageResponse, PublishMessageError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(268, __c67, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PublishMessage", })); export type PublishRRPCMessageError = TencentCloudOpError; export const publishRRPCMessage: API.OperationMethod< PublishRRPCMessageRequest, PublishRRPCMessageResponse, PublishRRPCMessageError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(272, __c68, 0) as any as S.Schema, output: __S(273, __c68, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PublishRRPCMessage", })); export type ReplaceTopicRuleError = TencentCloudOpError; export const replaceTopicRule: API.OperationMethod< ReplaceTopicRuleRequest, ReplaceTopicRuleResponse, ReplaceTopicRuleError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(276, __c69, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ReplaceTopicRule", })); export type ResetDeviceStateError = TencentCloudOpError; export const resetDeviceState: API.OperationMethod< ResetDeviceStateRequest, ResetDeviceStateResponse, ResetDeviceStateError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(280, __c70, 0) as any as S.Schema, output: __S(283, __c70, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ResetDeviceState", })); export type RetryDeviceFirmwareTaskError = TencentCloudOpError; export const retryDeviceFirmwareTask: API.OperationMethod< RetryDeviceFirmwareTaskRequest, RetryDeviceFirmwareTaskResponse, RetryDeviceFirmwareTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(284, __c71, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "RetryDeviceFirmwareTask", })); export type SetProductsForbiddenStatusError = TencentCloudOpError; export const setProductsForbiddenStatus: API.OperationMethod< SetProductsForbiddenStatusRequest, SetProductsForbiddenStatusResponse, SetProductsForbiddenStatusError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(296, __c74, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SetProductsForbiddenStatus", })); export type UnbindDevicesError = TencentCloudOpError; export const unbindDevices: API.OperationMethod< UnbindDevicesRequest, UnbindDevicesResponse, UnbindDevicesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(300, __c75, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UnbindDevices", })); export type UpdateDeviceAvailableStateError = TencentCloudOpError; export const updateDeviceAvailableState: API.OperationMethod< UpdateDeviceAvailableStateRequest, UpdateDeviceAvailableStateResponse, UpdateDeviceAvailableStateError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(304, __c76, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateDeviceAvailableState", })); export type UpdateDeviceLogLevelError = TencentCloudOpError; export const updateDeviceLogLevel: API.OperationMethod< UpdateDeviceLogLevelRequest, UpdateDeviceLogLevelResponse, UpdateDeviceLogLevelError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(308, __c77, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateDeviceLogLevel", })); export type UpdateDevicePSKError = TencentCloudOpError; export const updateDevicePSK: API.OperationMethod< UpdateDevicePSKRequest, UpdateDevicePSKResponse, UpdateDevicePSKError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(312, __c78, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateDevicePSK", })); export type UpdateDevicesEnableStateError = TencentCloudOpError; export const updateDevicesEnableState: API.OperationMethod< UpdateDevicesEnableStateRequest, UpdateDevicesEnableStateResponse, UpdateDevicesEnableStateError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(316, __c79, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateDevicesEnableState", })); export type UpdateDeviceShadowError = TencentCloudOpError; export const updateDeviceShadow: API.OperationMethod< UpdateDeviceShadowRequest, UpdateDeviceShadowResponse, UpdateDeviceShadowError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(320, __c80, 0) as any as S.Schema, output: __S(84, __c21, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateDeviceShadow", })); export type UpdateOtaTaskStatusError = TencentCloudOpError; export const updateOtaTaskStatus: API.OperationMethod< UpdateOtaTaskStatusRequest, UpdateOtaTaskStatusResponse, UpdateOtaTaskStatusError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(324, __c81, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateOtaTaskStatus", })); export type UpdatePrivateCAError = TencentCloudOpError; export const updatePrivateCA: API.OperationMethod< UpdatePrivateCARequest, UpdatePrivateCAResponse, UpdatePrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(328, __c82, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdatePrivateCA", })); export type UpdateProductDynamicRegisterError = TencentCloudOpError; export const updateProductDynamicRegister: API.OperationMethod< UpdateProductDynamicRegisterRequest, UpdateProductDynamicRegisterResponse, UpdateProductDynamicRegisterError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(332, __c83, 0) as any as S.Schema, output: __S(333, __c83, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateProductDynamicRegister", })); export type UpdateProductPrivateCAError = TencentCloudOpError; export const updateProductPrivateCA: API.OperationMethod< UpdateProductPrivateCARequest, UpdateProductPrivateCAResponse, UpdateProductPrivateCAError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(340, __c85, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateProductPrivateCA", })); export type UpdateTopicPolicyError = TencentCloudOpError; export const updateTopicPolicy: API.OperationMethod< UpdateTopicPolicyRequest, UpdateTopicPolicyResponse, UpdateTopicPolicyError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(344, __c86, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateTopicPolicy", })); export type UploadFirmwareError = TencentCloudOpError; export const uploadFirmware: API.OperationMethod< UploadFirmwareRequest, UploadFirmwareResponse, UploadFirmwareError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(348, __c87, 0) as any as S.Schema, output: __S(16, __c4, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UploadFirmware", })); // Schema builders: each runs one schema initializer, on that schema's first use. function __c0(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, FirmwareOriVersion: S.optional(S.String), UpgradeMethod: S.optional(S.Number), FileName: S.optional(S.String), FileMd5: S.optional(S.String), FileSize: S.optional(S.Number), DeviceNames: S.optional(__S(4, __c1, 0)), TimeoutInterval: S.optional(S.Number), Type: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "BatchUpdateFirmware" }), ), ).annotate({ identifier: "BatchUpdateFirmwareRequest" }); } } function __c1(j: number): any { switch (j) { case 0: return S.Array(S.String); } } function __c2(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskId: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "BatchUpdateFirmwareResponse" }); } } function __c3(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ GatewayProductId: S.String, GatewayDeviceName: S.String, ProductId: S.String, DeviceNames: __S(4, __c1, 0), Skey: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "BindDevices" })), ).annotate({ identifier: "BindDevicesRequest" }); } } function __c4(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RequestId: S.optional(S.String), }), ).annotate({ identifier: "BindDevicesResponse" }); } } function __c5(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, Skey: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteDevice" })), ).annotate({ identifier: "DeleteDeviceRequest" }); } } function __c6(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, DeviceName: S.String, ProductID: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteDeviceResource" }), ), ).annotate({ identifier: "DeleteDeviceResourceRequest" }); } } function __c7(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteDeviceShadow" }), ), ).annotate({ identifier: "DeleteDeviceShadowRequest" }); } } function __c8(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeletePrivateCA" }), ), ).annotate({ identifier: "DeletePrivateCARequest" }); } } function __c9(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, Skey: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteProduct" })), ).annotate({ identifier: "DeleteProductRequest" }); } } function __c10(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteProductPrivateCA", }), ), ).annotate({ identifier: "DeleteProductPrivateCARequest" }); } } function __c11(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RuleName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DeleteTopicRule" }), ), ).annotate({ identifier: "DeleteTopicRuleRequest" }); } } function __c12(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDevice" })), ).annotate({ identifier: "DescribeDeviceRequest" }); case 1: return S.suspend(() => S.Struct({ DeviceName: S.optional(S.String), Online: S.optional(S.Number), LoginTime: S.optional(S.Number), Version: S.optional(S.String), LastUpdateTime: S.optional(S.Number), DeviceCert: S.optional(S.String), DevicePsk: S.optional(S.String), Tags: S.optional(__S(133, __c33, 1)), DeviceType: S.optional(S.Number), Imei: S.optional(S.String), Isp: S.optional(S.Number), ConnIP: S.optional(S.Number), LoraDevEui: S.optional(S.String), LoraMoteType: S.optional(S.Number), LogLevel: S.optional(S.NullOr(S.Number)), FirstOnlineTime: S.optional(S.NullOr(S.Number)), LastOfflineTime: S.optional(S.NullOr(S.Number)), CreateTime: S.optional(S.NullOr(S.Number)), CertState: S.optional(S.NullOr(S.Number)), EnableState: S.optional(S.NullOr(S.Number)), Labels: S.optional(S.NullOr(__S(53, __c13, 1))), ClientIP: S.optional(S.NullOr(S.String)), FirmwareUpdateTime: S.optional(S.NullOr(S.Number)), CreateUserId: S.optional(S.NullOr(S.Number)), NBIoTDeviceID: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDeviceResponse" }); } } function __c13(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Key: S.optional(S.String), Value: S.optional(S.String), }), ).annotate({ identifier: "DeviceLabel" }); case 1: return S.Array(__S(52, __c13, 0)); } } function __c14(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDeviceClientKey", }), ), ).annotate({ identifier: "DescribeDeviceClientKeyRequest" }); case 1: return S.suspend(() => S.Struct({ ClientKey: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDeviceClientKeyResponse" }); } } function __c15(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ DeviceName: S.String, ProductID: S.optional(S.String), Name: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDeviceResource", }), ), ).annotate({ identifier: "DescribeDeviceResourceRequest" }); case 1: return S.suspend(() => S.Struct({ Result: S.optional(__S(64, __c16, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDeviceResourceResponse" }); } } function __c16(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.optional(S.String), ProductName: S.optional(S.String), Name: S.optional(S.String), Md5: S.optional(S.String), Size: S.optional(S.Number), UpdateTime: S.optional(S.String), DeviceName: S.optional(S.String), Status: S.optional(S.Number), Percent: S.optional(S.Number), }), ).annotate({ identifier: "DeviceResourceInfo" }); } } function __c17(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, FirmwareVersion: S.String, TaskId: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CancelDeviceFirmwareTask", }), ), ).annotate({ identifier: "CancelDeviceFirmwareTaskRequest" }); } } function __c18(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Offset: S.Number, Limit: S.Number, ProductID: S.optional(S.String), DeviceName: S.optional(S.String), StartTime: S.optional(S.String), EndTime: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDeviceResources", }), ), ).annotate({ identifier: "DescribeDeviceResourcesRequest" }); case 1: return S.Array(__S(64, __c16, 0)); case 2: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Result: S.optional(S.NullOr(__S(73, __c18, 1))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDeviceResourcesResponse" }); } } function __c19(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, Offset: S.Number, Limit: S.Number, FirmwareVersion: S.optional(S.String), DeviceName: S.optional(S.String), EnableState: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDevices" }), ), ).annotate({ identifier: "DescribeDevicesRequest" }); case 1: return S.suspend(() => S.Struct({ DeviceName: S.optional(S.String), Online: S.optional(S.Number), LoginTime: S.optional(S.Number), Version: S.optional(S.String), DeviceCert: S.optional(S.String), DevicePsk: S.optional(S.String), Tags: S.optional(__S(133, __c33, 1)), DeviceType: S.optional(S.Number), Imei: S.optional(S.String), Isp: S.optional(S.Number), ConnIP: S.optional(S.Number), LastUpdateTime: S.optional(S.Number), LoraDevEui: S.optional(S.String), LoraMoteType: S.optional(S.Number), FirstOnlineTime: S.optional(S.NullOr(S.Number)), LastOfflineTime: S.optional(S.NullOr(S.Number)), CreateTime: S.optional(S.NullOr(S.Number)), LogLevel: S.optional(S.NullOr(S.Number)), CertState: S.optional(S.NullOr(S.Number)), EnableState: S.optional(S.NullOr(S.Number)), Labels: S.optional(S.NullOr(__S(53, __c13, 1))), ClientIP: S.optional(S.NullOr(S.String)), FirmwareUpdateTime: S.optional(S.NullOr(S.Number)), CreateUserId: S.optional(S.NullOr(S.Number)), NBIoTDeviceID: S.optional(S.String), }), ).annotate({ identifier: "DeviceInfo" }); case 2: return S.Array(__S(77, __c19, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Devices: S.optional(__S(78, __c19, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDevicesResponse" }); } } function __c20(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeDeviceShadow" }), ), ).annotate({ identifier: "DescribeDeviceShadowRequest" }); } } function __c21(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Data: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeDeviceShadowResponse" }); } } function __c22(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmware" }), ), ).annotate({ identifier: "DescribeFirmwareRequest" }); case 1: return S.suspend(() => S.Struct({ Version: S.optional(S.String), ProductId: S.optional(S.String), Name: S.optional(S.NullOr(S.String)), Description: S.optional(S.NullOr(S.String)), Md5sum: S.optional(S.NullOr(S.String)), Createtime: S.optional(S.NullOr(S.Number)), ProductName: S.optional(S.String), FwType: S.optional(S.String), UserDefined: S.optional(S.NullOr(S.String)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareResponse" }); } } function __c23(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, TaskId: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmwareTask" }), ), ).annotate({ identifier: "DescribeFirmwareTaskRequest" }); case 1: return S.suspend(() => S.Struct({ TaskId: S.optional(S.NullOr(S.Number)), Status: S.optional(S.NullOr(S.Number)), CreateTime: S.optional(S.NullOr(S.Number)), Type: S.optional(S.NullOr(S.Number)), ProductName: S.optional(S.NullOr(S.String)), UpgradeMode: S.optional(S.NullOr(S.String)), ProductId: S.optional(S.NullOr(S.String)), OriginalVersion: S.optional(S.NullOr(S.String)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareTaskResponse" }); } } function __c24(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.optional(S.String), Filters: S.optional(__S(101, __c25, 1)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmwareTaskDevices", }), ), ).annotate({ identifier: "DescribeFirmwareTaskDevicesRequest" }); case 1: return S.suspend(() => S.Struct({ DeviceName: S.optional(S.String), LastProcessTime: S.optional(S.Number), Status: S.optional(S.Number), ErrMsg: S.optional(S.String), Retcode: S.optional(S.Number), DstVersion: S.optional(S.String), Percent: S.optional(S.NullOr(S.Number)), OriVersion: S.optional(S.NullOr(S.String)), TaskId: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "DeviceUpdateStatus" }); case 2: return S.Array(__S(97, __c24, 1)); case 3: return S.suspend(() => S.Struct({ Total: S.optional(S.NullOr(S.Number)), Devices: S.optional(S.NullOr(__S(98, __c24, 2))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareTaskDevicesResponse" }); } } function __c25(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Key: S.String, Value: S.optional(S.String), }), ).annotate({ identifier: "SearchKeyword" }); case 1: return S.Array(__S(100, __c25, 0)); } } function __c26(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, TaskId: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmwareTaskDistribution", }), ), ).annotate({ identifier: "DescribeFirmwareTaskDistributionRequest" }); case 1: return S.suspend(() => S.Struct({ Status: S.optional(S.NullOr(S.Number)), Total: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "StatusStatistic" }); case 2: return S.Array(__S(105, __c26, 1)); case 3: return S.suspend(() => S.Struct({ StatusInfos: S.optional(__S(106, __c26, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareTaskDistributionResponse" }); } } function __c27(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, Offset: S.Number, Limit: S.Number, Filters: S.optional(__S(101, __c25, 1)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmwareTasks" }), ), ).annotate({ identifier: "DescribeFirmwareTasksRequest" }); } } function __c28(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskId: S.optional(S.NullOr(S.Number)), Status: S.optional(S.NullOr(S.Number)), Type: S.optional(S.NullOr(S.Number)), CreateTime: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "FirmwareTaskInfo" }); case 1: return S.Array(__S(112, __c28, 0)); case 2: return S.suspend(() => S.Struct({ TaskInfos: S.optional(S.NullOr(__S(113, __c28, 1))), Total: S.optional(S.NullOr(S.Number)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareTasksResponse" }); } } function __c29(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeFirmwareTaskStatistics", }), ), ).annotate({ identifier: "DescribeFirmwareTaskStatisticsRequest" }); } } function __c30(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ SuccessTotal: S.optional(S.NullOr(S.Number)), FailureTotal: S.optional(S.NullOr(S.Number)), UpgradingTotal: S.optional(S.NullOr(S.Number)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeFirmwareTaskStatisticsResponse" }); } } function __c31(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ GatewayProductId: S.String, GatewayDeviceName: S.String, Offset: S.Number, Limit: S.Number, ProductId: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeGatewayBindDevices", }), ), ).annotate({ identifier: "DescribeGatewayBindDevicesRequest" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.optional(S.String), DeviceName: S.optional(S.String), Tags: S.optional(__S(133, __c33, 1)), BindTime: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "BindDeviceInfo" }); case 2: return S.Array(__S(125, __c31, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Devices: S.optional(__S(126, __c31, 2)), ProductName: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeGatewayBindDevicesResponse" }); } } function __c32(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Tags: S.optional(__S(133, __c33, 1)), }), ).annotate({ identifier: "Attribute" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, Attribute: S.optional(__S(128, __c32, 0)), DefinedPsk: S.optional(S.String), Isp: S.optional(S.Number), Imei: S.optional(S.String), LoraDevEui: S.optional(S.String), LoraMoteType: S.optional(S.Number), Skey: S.optional(S.String), LoraAppKey: S.optional(S.String), TlsCrt: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateDevice" })), ).annotate({ identifier: "CreateDeviceRequest" }); case 2: return S.suspend(() => S.Struct({ DeviceName: S.optional(S.String), DevicePsk: S.optional(S.String), DeviceCert: S.optional(S.String), DevicePrivateKey: S.optional(S.String.pipe(T.SensitiveValue({}))), LoraDevEui: S.optional(S.String), LoraMoteType: S.optional(S.Number), LoraAppKey: S.optional(S.String), LoraNwkKey: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateDeviceResponse" }); } } function __c33(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Tag: S.String, Type: S.Number, Value: S.String, Name: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "DeviceTag" }); case 1: return S.Array(__S(132, __c33, 0)); } } function __c34(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribePrivateCA" }), ), ).annotate({ identifier: "DescribePrivateCARequest" }); case 1: return S.suspend(() => S.Struct({ CA: S.optional(__S(140, __c35, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribePrivateCAResponse" }); } } function __c35(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.optional(S.String), CertSN: S.optional(S.String), IssuerName: S.optional(S.String), Subject: S.optional(S.String), CreateTime: S.optional(S.Number), EffectiveTime: S.optional(S.Number), ExpireTime: S.optional(S.Number), CertText: S.optional(S.String), }), ).annotate({ identifier: "CertInfo" }); } } function __c36(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.String, Offset: S.Number, Limit: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribePrivateCABindedProducts", }), ), ).annotate({ identifier: "DescribePrivateCABindedProductsRequest" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.optional(S.String), ProductName: S.optional(S.String), }), ).annotate({ identifier: "BindProductInfo" }); case 2: return S.Array(__S(145, __c36, 1)); case 3: return S.suspend(() => S.Struct({ Products: S.optional(__S(146, __c36, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribePrivateCABindedProductsResponse" }); } } function __c37(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribePrivateCAs" }), ), ).annotate({ identifier: "DescribePrivateCAsRequest" }); } } function __c38(j: number): any { switch (j) { case 0: return S.Array(__S(140, __c35, 0)); case 1: return S.suspend(() => S.Struct({ CAs: S.optional(__S(152, __c38, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribePrivateCAsResponse" }); } } function __c39(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProduct" }), ), ).annotate({ identifier: "DescribeProductRequest" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.optional(S.String), ProductName: S.optional(S.String), ProductMetadata: S.optional(__S(160, __c40, 0)), ProductProperties: S.optional(__S(292, __c73, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductResponse" }); } } function __c40(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CreationDate: S.optional(S.Number), CreateUserId: S.optional(S.Number), UserId: S.optional(S.Number), }), ).annotate({ identifier: "ProductMetadata" }); } } function __c41(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProductCA" }), ), ).annotate({ identifier: "DescribeProductCARequest" }); } } function __c42(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.optional(S.String), Name: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProductResource", }), ), ).annotate({ identifier: "DescribeProductResourceRequest" }); case 1: return S.suspend(() => S.Struct({ Result: S.optional(S.NullOr(__S(172, __c43, 0))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductResourceResponse" }); } } function __c43(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.optional(S.String), ProductName: S.optional(S.String), Name: S.optional(S.String), Md5: S.optional(S.String), Size: S.optional(S.Number), Description: S.optional(S.NullOr(S.String)), CreateTime: S.optional(S.String), }), ).annotate({ identifier: "ProductResourceInfo" }); } } function __c44(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Offset: S.Number, Limit: S.Number, ProductID: S.optional(S.String), Name: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProductResources", }), ), ).annotate({ identifier: "DescribeProductResourcesRequest" }); case 1: return S.Array(__S(172, __c43, 0)); case 2: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Result: S.optional(S.NullOr(__S(177, __c44, 1))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductResourcesResponse" }); } } function __c45(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Offset: S.Number, Limit: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProducts" }), ), ).annotate({ identifier: "DescribeProductsRequest" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.optional(S.String), ProductName: S.optional(S.String), ProductMetadata: S.optional(__S(160, __c40, 0)), ProductProperties: S.optional(__S(292, __c73, 0)), }), ).annotate({ identifier: "ProductInfo" }); case 2: return S.Array(__S(181, __c45, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Products: S.optional(__S(182, __c45, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductsResponse" }); } } function __c46(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, TaskId: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProductTask" }), ), ).annotate({ identifier: "DescribeProductTaskRequest" }); case 1: return S.suspend(() => S.Struct({ TaskInfo: S.optional(__S(188, __c47, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductTaskResponse" }); } } function __c47(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Id: S.optional(S.Number), Type: S.optional(S.Number), State: S.optional(S.Number), ParametersType: S.optional(S.String), Parameters: S.optional(S.String), ResultType: S.optional(S.NullOr(S.String)), Result: S.optional(S.NullOr(S.String)), BatchCount: S.optional(S.NullOr(S.Number)), BatchOffset: S.optional(S.NullOr(S.Number)), CreateTime: S.optional(S.Number), UpdateTime: S.optional(S.Number), CompleteTime: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ProductTaskInfo" }); } } function __c48(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, Offset: S.Number, Limit: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeProductTasks" }), ), ).annotate({ identifier: "DescribeProductTasksRequest" }); case 1: return S.Array(__S(188, __c47, 0)); case 2: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), TaskInfos: S.optional(__S(193, __c48, 1)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeProductTasksResponse" }); } } function __c49(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, ParametersType: S.String, FileName: S.optional(S.String), FileSize: S.optional(S.Number), BatchCount: S.optional(S.Number), Hash: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateMultiDevicesTask", }), ), ).annotate({ identifier: "CreateMultiDevicesTaskRequest" }); case 1: return S.suspend(() => S.Struct({ Id: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateMultiDevicesTaskResponse" }); } } function __c50(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.String, Name: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribePushResourceTaskStatistics", }), ), ).annotate({ identifier: "DescribePushResourceTaskStatisticsRequest" }); } } function __c51(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.String, Name: S.String, Offset: S.Number, Limit: S.Number, Filters: S.optional(__S(101, __c25, 1)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DescribeResourceTasks" }), ), ).annotate({ identifier: "DescribeResourceTasksRequest" }); } } function __c52(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RuleName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DisableTopicRule" }), ), ).annotate({ identifier: "DisableTopicRuleRequest" }); } } function __c53(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductID: S.String, Name: S.String, DeviceName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "DownloadDeviceResource", }), ), ).annotate({ identifier: "DownloadDeviceResourceRequest" }); } } function __c54(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Url: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DownloadDeviceResourceResponse" }); } } function __c55(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, FirmwareName: S.String, FirmwareDescription: S.optional(S.String), FirmwareUserDefined: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "EditFirmware" })), ).annotate({ identifier: "EditFirmwareRequest" }); } } function __c56(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RuleName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "EnableTopicRule" }), ), ).annotate({ identifier: "EnableTopicRuleRequest" }); } } function __c57(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "GetAllVersion" })), ).annotate({ identifier: "GetAllVersionRequest" }); case 1: return S.suspend(() => S.Struct({ Version: S.optional(__S(4, __c1, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "GetAllVersionResponse" }); } } function __c58(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, FileSize: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "GetCOSURL" })), ).annotate({ identifier: "GetCOSURLRequest" }); } } function __c59(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "GetUserResourceInfo" }), ), ).annotate({ identifier: "GetUserResourceInfoRequest" }); case 1: return S.suspend(() => S.Struct({ UsedSize: S.optional(S.Number), Limit: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "GetUserResourceInfoResponse" }); } } function __c60(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ PageNum: S.Number, PageSize: S.Number, ProductId: S.optional(S.String), Filters: S.optional(__S(101, __c25, 1)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "ListFirmwares" })), ).annotate({ identifier: "ListFirmwaresRequest" }); case 1: return S.suspend(() => S.Struct({ Version: S.optional(S.String), Md5sum: S.optional(S.String), CreateTime: S.optional(S.Number), ProductName: S.optional(S.NullOr(S.String)), Name: S.optional(S.NullOr(S.String)), Description: S.optional(S.NullOr(S.String)), ProductId: S.optional(S.NullOr(S.String)), FwType: S.optional(S.NullOr(S.String)), CreateUserId: S.optional(S.NullOr(S.Number)), UserDefined: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "FirmwareInfo" }); case 2: return S.Array(__S(241, __c60, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), Firmwares: S.optional(__S(242, __c60, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ListFirmwaresResponse" }); } } function __c61(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.String, CertText: S.String, VerifyCertText: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreatePrivateCA" }), ), ).annotate({ identifier: "CreatePrivateCARequest" }); } } function __c62(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ MinTime: S.Number, MaxTime: S.Number, Keywords: S.optional(S.String), Context: S.optional(S.String), MaxNum: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "ListLog" })), ).annotate({ identifier: "ListLogRequest" }); case 1: return S.suspend(() => S.Struct({ Content: S.optional(S.String), DeviceName: S.optional(S.String), ProductId: S.optional(S.String), RequestId: S.optional(S.String), Result: S.optional(S.String), Scene: S.optional(S.String), Time: S.optional(S.String), UserId: S.optional(S.String), }), ).annotate({ identifier: "CLSLogItem" }); case 2: return S.Array(__S(249, __c62, 1)); case 3: return S.suspend(() => S.Struct({ Context: S.optional(S.String), Listover: S.optional(S.Boolean), Results: S.optional(__S(250, __c62, 2)), TotalCount: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ListLogResponse" }); } } function __c63(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ MinTime: S.Number, MaxTime: S.Number, Keywords: S.String, Context: S.optional(S.String), MaxNum: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "ListLogPayload" })), ).annotate({ identifier: "ListLogPayloadRequest" }); case 1: return S.suspend(() => S.Struct({ Uin: S.optional(S.String), ProductId: S.optional(S.String), DeviceName: S.optional(S.String), SrcType: S.optional(S.String), SrcName: S.optional(S.String), Topic: S.optional(S.String), PayloadFormatType: S.optional(S.String), Payload: S.optional(S.String), RequestId: S.optional(S.String), DateTime: S.optional(S.String), }), ).annotate({ identifier: "PayloadLogItem" }); case 2: return S.Array(__S(253, __c63, 1)); case 3: return S.suspend(() => S.Struct({ Context: S.optional(S.String), Listover: S.optional(S.Boolean), Results: S.optional(__S(254, __c63, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ListLogPayloadResponse" }); } } function __c64(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ MinTime: S.Number, MaxTime: S.Number, Keywords: S.String, Context: S.optional(S.String), MaxNum: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "ListSDKLog" })), ).annotate({ identifier: "ListSDKLogRequest" }); case 1: return S.suspend(() => S.Struct({ ProductId: S.optional(S.String), DeviceName: S.optional(S.String), Level: S.optional(S.String), DateTime: S.optional(S.String), Content: S.optional(S.String), }), ).annotate({ identifier: "SDKLogItem" }); case 2: return S.Array(__S(257, __c64, 1)); case 3: return S.suspend(() => S.Struct({ Context: S.optional(S.String), Listover: S.optional(S.Boolean), Results: S.optional(__S(258, __c64, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ListSDKLogResponse" }); } } function __c65(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ PageNum: S.Number, PageSize: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "ListTopicRules" })), ).annotate({ identifier: "ListTopicRulesRequest" }); case 1: return S.suspend(() => S.Struct({ RuleName: S.optional(S.String), Description: S.optional(S.String), CreatedAt: S.optional(S.Number), RuleDisabled: S.optional(S.Boolean), TopicPattern: S.optional(S.String), }), ).annotate({ identifier: "TopicRuleInfo" }); case 2: return S.Array(__S(261, __c65, 1)); case 3: return S.suspend(() => S.Struct({ TotalCnt: S.optional(S.Number), Rules: S.optional(__S(262, __c65, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ListTopicRulesResponse" }); } } function __c66(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, Payload: S.String, Qos: S.Number, PayloadEncoding: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "PublishBroadcastMessage", }), ), ).annotate({ identifier: "PublishBroadcastMessageRequest" }); } } function __c67(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Topic: S.String, Payload: S.String, ProductId: S.String, DeviceName: S.String, Qos: S.optional(S.Number), PayloadEncoding: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "PublishMessage" })), ).annotate({ identifier: "PublishMessageRequest" }); } } function __c68(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, Payload: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "PublishRRPCMessage" }), ), ).annotate({ identifier: "PublishRRPCMessageRequest" }); case 1: return S.suspend(() => S.Struct({ MessageId: S.optional(S.Number), PayloadBase64: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "PublishRRPCMessageResponse" }); } } function __c69(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RuleName: S.String, TopicRulePayload: __S(364, __c91, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "ReplaceTopicRule" }), ), ).annotate({ identifier: "ReplaceTopicRuleRequest" }); } } function __c70(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceNames: __S(4, __c1, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "ResetDeviceState" }), ), ).annotate({ identifier: "ResetDeviceStateRequest" }); case 1: return S.suspend(() => S.Struct({ DeviceName: S.optional(S.String), Success: S.optional(S.Boolean), Reason: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ResetDeviceResult" }); case 2: return S.Array(__S(281, __c70, 1)); case 3: return S.suspend(() => S.Struct({ SuccessCount: S.optional(S.Number), ResetDeviceResults: S.optional(__S(282, __c70, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "ResetDeviceStateResponse" }); } } function __c71(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, FirmwareVersion: S.String, TaskId: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "RetryDeviceFirmwareTask", }), ), ).annotate({ identifier: "RetryDeviceFirmwareTaskRequest" }); } } function __c72(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductName: S.String, ProductProperties: S.optional(__S(292, __c73, 0)), Skey: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateProduct" })), ).annotate({ identifier: "CreateProductRequest" }); case 1: return S.suspend(() => S.Struct({ ProductName: S.optional(S.String), ProductId: S.optional(S.String), ProductProperties: S.optional(__S(292, __c73, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateProductResponse" }); } } function __c73(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductDescription: S.optional(S.String), EncryptionType: S.optional(S.String), Region: S.optional(S.String), ProductType: S.optional(S.Number), Format: S.optional(S.String), Platform: S.optional(S.String), ModelId: S.optional(S.String), ModelName: S.optional(S.String), ProductKey: S.optional(S.String), RegisterType: S.optional(S.Number), ProductSecret: S.optional(S.String.pipe(T.SensitiveValue({}))), RegisterLimit: S.optional(S.Number), OriginProductId: S.optional(S.String), PrivateCAName: S.optional(S.String), OriginUserId: S.optional(S.Number), DeviceLimit: S.optional(S.Number), ForbiddenStatus: S.optional(S.Number), AppEUI: S.optional(S.String), }), ).annotate({ identifier: "ProductProperties" }); } } function __c74(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: __S(4, __c1, 0), Status: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "SetProductsForbiddenStatus", }), ), ).annotate({ identifier: "SetProductsForbiddenStatusRequest" }); } } function __c75(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ GatewayProductId: S.String, GatewayDeviceName: S.String, ProductId: S.String, DeviceNames: __S(4, __c1, 0), Skey: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "UnbindDevices" })), ).annotate({ identifier: "UnbindDevicesRequest" }); } } function __c76(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, EnableState: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateDeviceAvailableState", }), ), ).annotate({ identifier: "UpdateDeviceAvailableStateRequest" }); } } function __c77(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, LogLevel: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateDeviceLogLevel" }), ), ).annotate({ identifier: "UpdateDeviceLogLevelRequest" }); } } function __c78(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, Psk: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateDevicePSK" }), ), ).annotate({ identifier: "UpdateDevicePSKRequest" }); } } function __c79(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceNames: __S(4, __c1, 0), Status: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateDevicesEnableState", }), ), ).annotate({ identifier: "UpdateDevicesEnableStateRequest" }); } } function __c80(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, State: S.String, ShadowVersion: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateDeviceShadow" }), ), ).annotate({ identifier: "UpdateDeviceShadowRequest" }); } } function __c81(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, TaskId: S.Number, Status: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateOtaTaskStatus" }), ), ).annotate({ identifier: "UpdateOtaTaskStatusRequest" }); } } function __c82(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CertName: S.String, CertText: S.String, VerifyCertText: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdatePrivateCA" }), ), ).annotate({ identifier: "UpdatePrivateCARequest" }); } } function __c83(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, RegisterType: S.Number, RegisterLimit: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateProductDynamicRegister", }), ), ).annotate({ identifier: "UpdateProductDynamicRegisterRequest" }); case 1: return S.suspend(() => S.Struct({ RegisterType: S.optional(S.Number), ProductSecret: S.optional(S.String.pipe(T.SensitiveValue({}))), RegisterLimit: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "UpdateProductDynamicRegisterResponse" }); } } function __c84(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateTaskFileUrl" }), ), ).annotate({ identifier: "CreateTaskFileUrlRequest" }); case 1: return S.suspend(() => S.Struct({ Url: S.optional(S.String), FileName: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateTaskFileUrlResponse" }); } } function __c85(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, CertName: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateProductPrivateCA", }), ), ).annotate({ identifier: "UpdateProductPrivateCARequest" }); } } function __c86(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, TopicName: S.String, NewTopicName: S.String, Privilege: S.Number, BrokerSubscribe: S.optional(__S(356, __c89, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "UpdateTopicPolicy" }), ), ).annotate({ identifier: "UpdateTopicPolicyRequest" }); } } function __c87(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, FirmwareVersion: S.String, Md5sum: S.String, FileSize: S.Number, FirmwareName: S.optional(S.String), FirmwareDescription: S.optional(S.String), FirmwareUserDefined: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "iotcloud", version: "2021-04-08", action: "UploadFirmware" })), ).annotate({ identifier: "UploadFirmwareRequest" }); } } function __c88(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, TopicName: S.String, Privilege: S.Number, BrokerSubscribe: S.optional(__S(356, __c89, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateTopicPolicy" }), ), ).annotate({ identifier: "CreateTopicPolicyRequest" }); } } function __c89(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ProductId: S.String, DeviceName: S.String, }), ).annotate({ identifier: "BrokerSubscribe" }); } } function __c90(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RuleName: S.String, TopicRulePayload: __S(364, __c91, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "iotcloud", version: "2021-04-08", action: "CreateTopicRule" }), ), ).annotate({ identifier: "CreateTopicRuleRequest" }); } } function __c91(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Sql: S.String, Actions: S.optional(S.String), Description: S.optional(S.String), RuleDisabled: S.optional(S.Boolean), }), ).annotate({ identifier: "TopicRulePayload" }); } } // Schema table: entry i is schema j of builder f, made on first reach. function __S(i: number, f: (j: number) => unknown, j: number): any { return (__s[i] ??= __L.at(f, j)); }