@scaleway/sdk-iot 2.6.3 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,208 +0,0 @@
1
- import { HUB_TRANSIENT_STATUSES } from "./content.gen.js";
2
- import { marshalCreateDeviceRequest, marshalCreateHubRequest, marshalCreateNetworkRequest, marshalCreateRouteRequest, marshalPatchTwinDocumentRequest, marshalPutTwinDocumentRequest, marshalSetDeviceCertificateRequest, marshalSetHubCARequest, marshalUpdateDeviceRequest, marshalUpdateHubRequest, marshalUpdateRouteRequest, unmarshalCreateDeviceResponse, unmarshalCreateNetworkResponse, unmarshalDevice, unmarshalGetDeviceCertificateResponse, unmarshalGetDeviceMetricsResponse, unmarshalGetHubCAResponse, unmarshalGetHubMetricsResponse, unmarshalHub, unmarshalListDevicesResponse, unmarshalListHubsResponse, unmarshalListNetworksResponse, unmarshalListRoutesResponse, unmarshalListTwinDocumentsResponse, unmarshalNetwork, unmarshalRenewDeviceCertificateResponse, unmarshalRoute, unmarshalSetDeviceCertificateResponse, unmarshalTwinDocument } from "./marshalling.gen.js";
3
- import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
- //#region src/v1/api.gen.ts
5
- const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
6
- /**
7
- * IoT Hub API.
8
-
9
- This API allows you to manage your IoT hubs and devices.
10
- */
11
- var API = class extends API$1 {
12
- constructor(..._args) {
13
- super(..._args);
14
- this.pageOfListHubs = (request = {}) => this.client.fetch({
15
- method: "GET",
16
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs`,
17
- urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
18
- }, unmarshalListHubsResponse);
19
- this.listHubs = (request = {}) => enrichForPagination("hubs", this.pageOfListHubs, request);
20
- this.createHub = (request) => this.client.fetch({
21
- body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
22
- headers: jsonContentHeaders,
23
- method: "POST",
24
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs`
25
- }, unmarshalHub);
26
- this.getHub = (request) => this.client.fetch({
27
- method: "GET",
28
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}`
29
- }, unmarshalHub);
30
- this.waitForHub = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!HUB_TRANSIENT_STATUSES.includes(res.status))), this.getHub, request, options);
31
- this.updateHub = (request) => this.client.fetch({
32
- body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
33
- headers: jsonContentHeaders,
34
- method: "PATCH",
35
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}`
36
- }, unmarshalHub);
37
- this.enableHub = (request) => this.client.fetch({
38
- body: "{}",
39
- headers: jsonContentHeaders,
40
- method: "POST",
41
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}/enable`
42
- }, unmarshalHub);
43
- this.disableHub = (request) => this.client.fetch({
44
- body: "{}",
45
- headers: jsonContentHeaders,
46
- method: "POST",
47
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}/disable`
48
- }, unmarshalHub);
49
- this.deleteHub = (request) => this.client.fetch({
50
- method: "DELETE",
51
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}`,
52
- urlParams: urlParams(["delete_devices", request.deleteDevices])
53
- });
54
- this.getHubMetrics = (request) => this.client.fetch({
55
- method: "GET",
56
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}/metrics`,
57
- urlParams: urlParams(["start_date", request.startDate])
58
- }, unmarshalGetHubMetricsResponse);
59
- this.setHubCA = (request) => this.client.fetch({
60
- body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
61
- headers: jsonContentHeaders,
62
- method: "POST",
63
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}/ca`
64
- }, unmarshalHub);
65
- this.getHubCA = (request) => this.client.fetch({
66
- method: "GET",
67
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam("hubId", request.hubId)}/ca`
68
- }, unmarshalGetHubCAResponse);
69
- this.pageOfListDevices = (request = {}) => this.client.fetch({
70
- method: "GET",
71
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices`,
72
- urlParams: urlParams(["allow_insecure", request.allowInsecure], ["hub_id", request.hubId], ["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["status", request.status])
73
- }, unmarshalListDevicesResponse);
74
- this.listDevices = (request = {}) => enrichForPagination("devices", this.pageOfListDevices, request);
75
- this.createDevice = (request) => this.client.fetch({
76
- body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
77
- headers: jsonContentHeaders,
78
- method: "POST",
79
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices`
80
- }, unmarshalCreateDeviceResponse);
81
- this.getDevice = (request) => this.client.fetch({
82
- method: "GET",
83
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}`
84
- }, unmarshalDevice);
85
- this.updateDevice = (request) => this.client.fetch({
86
- body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
87
- headers: jsonContentHeaders,
88
- method: "PATCH",
89
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}`
90
- }, unmarshalDevice);
91
- this.enableDevice = (request) => this.client.fetch({
92
- body: "{}",
93
- headers: jsonContentHeaders,
94
- method: "POST",
95
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/enable`
96
- }, unmarshalDevice);
97
- this.disableDevice = (request) => this.client.fetch({
98
- body: "{}",
99
- headers: jsonContentHeaders,
100
- method: "POST",
101
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/disable`
102
- }, unmarshalDevice);
103
- this.renewDeviceCertificate = (request) => this.client.fetch({
104
- body: "{}",
105
- headers: jsonContentHeaders,
106
- method: "POST",
107
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/renew-certificate`
108
- }, unmarshalRenewDeviceCertificateResponse);
109
- this.setDeviceCertificate = (request) => this.client.fetch({
110
- body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
111
- headers: jsonContentHeaders,
112
- method: "PUT",
113
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/certificate`
114
- }, unmarshalSetDeviceCertificateResponse);
115
- this.getDeviceCertificate = (request) => this.client.fetch({
116
- method: "GET",
117
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/certificate`
118
- }, unmarshalGetDeviceCertificateResponse);
119
- this.deleteDevice = (request) => this.client.fetch({
120
- method: "DELETE",
121
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}`
122
- });
123
- this.getDeviceMetrics = (request) => this.client.fetch({
124
- method: "GET",
125
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam("deviceId", request.deviceId)}/metrics`,
126
- urlParams: urlParams(["start_date", request.startDate])
127
- }, unmarshalGetDeviceMetricsResponse);
128
- this.pageOfListRoutes = (request = {}) => this.client.fetch({
129
- method: "GET",
130
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`,
131
- urlParams: urlParams(["hub_id", request.hubId], ["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
132
- }, unmarshalListRoutesResponse);
133
- this.listRoutes = (request = {}) => enrichForPagination("routes", this.pageOfListRoutes, request);
134
- this.createRoute = (request) => this.client.fetch({
135
- body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
136
- headers: jsonContentHeaders,
137
- method: "POST",
138
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`
139
- }, unmarshalRoute);
140
- this.updateRoute = (request) => this.client.fetch({
141
- body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
142
- headers: jsonContentHeaders,
143
- method: "PATCH",
144
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`
145
- }, unmarshalRoute);
146
- this.getRoute = (request) => this.client.fetch({
147
- method: "GET",
148
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`
149
- }, unmarshalRoute);
150
- this.deleteRoute = (request) => this.client.fetch({
151
- method: "DELETE",
152
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`
153
- });
154
- this.pageOfListNetworks = (request = {}) => this.client.fetch({
155
- method: "GET",
156
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/networks`,
157
- urlParams: urlParams(["hub_id", request.hubId], ["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["topic_prefix", request.topicPrefix])
158
- }, unmarshalListNetworksResponse);
159
- this.listNetworks = (request = {}) => enrichForPagination("networks", this.pageOfListNetworks, request);
160
- this.createNetwork = (request) => this.client.fetch({
161
- body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
162
- headers: jsonContentHeaders,
163
- method: "POST",
164
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/networks`
165
- }, unmarshalCreateNetworkResponse);
166
- this.getNetwork = (request) => this.client.fetch({
167
- method: "GET",
168
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam("networkId", request.networkId)}`
169
- }, unmarshalNetwork);
170
- this.deleteNetwork = (request) => this.client.fetch({
171
- method: "DELETE",
172
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam("networkId", request.networkId)}`
173
- });
174
- this.getTwinDocument = (request) => this.client.fetch({
175
- method: "GET",
176
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}/documents/${validatePathParam("documentName", request.documentName)}`
177
- }, unmarshalTwinDocument);
178
- this.putTwinDocument = (request) => this.client.fetch({
179
- body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
180
- headers: jsonContentHeaders,
181
- method: "PUT",
182
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}/documents/${validatePathParam("documentName", request.documentName)}`
183
- }, unmarshalTwinDocument);
184
- this.patchTwinDocument = (request) => this.client.fetch({
185
- body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
186
- headers: jsonContentHeaders,
187
- method: "PATCH",
188
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}/documents/${validatePathParam("documentName", request.documentName)}`
189
- }, unmarshalTwinDocument);
190
- this.deleteTwinDocument = (request) => this.client.fetch({
191
- method: "DELETE",
192
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}/documents/${validatePathParam("documentName", request.documentName)}`
193
- });
194
- this.listTwinDocuments = (request) => this.client.fetch({
195
- method: "GET",
196
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}`
197
- }, unmarshalListTwinDocumentsResponse);
198
- this.deleteTwinDocuments = (request) => this.client.fetch({
199
- method: "DELETE",
200
- path: `/iot/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam("twinId", request.twinId)}`
201
- });
202
- }
203
- static {
204
- this.LOCALITY = toApiLocality({ regions: ["fr-par"] });
205
- }
206
- };
207
- //#endregion
208
- export { API };
@@ -1,3 +0,0 @@
1
- import type { HubStatus } from './types.gen.js';
2
- /** Lists transient statutes of the enum {@link HubStatus}. */
3
- export declare const HUB_TRANSIENT_STATUSES: HubStatus[];
@@ -1,5 +0,0 @@
1
- //#region src/v1/content.gen.ts
2
- /** Lists transient statutes of the enum {@link HubStatus}. */
3
- const HUB_TRANSIENT_STATUSES = ["enabling", "disabling"];
4
- //#endregion
5
- export { HUB_TRANSIENT_STATUSES };
@@ -1,4 +0,0 @@
1
- export { API, } from './api.gen.js';
2
- export * from './content.gen.js';
3
- export * from './marshalling.gen.js';
4
- export type { Certificate, CreateDeviceRequest, CreateDeviceResponse, CreateHubRequest, CreateNetworkRequest, CreateNetworkResponse, CreateRouteRequest, CreateRouteRequestDatabaseConfig, CreateRouteRequestRestConfig, CreateRouteRequestS3Config, DeleteDeviceRequest, DeleteHubRequest, DeleteNetworkRequest, DeleteRouteRequest, DeleteTwinDocumentRequest, DeleteTwinDocumentsRequest, Device, DeviceMessageFilters, DeviceMessageFiltersRule, DeviceMessageFiltersRulePolicy, DeviceStatus, DisableDeviceRequest, DisableHubRequest, EnableDeviceRequest, EnableHubRequest, GetDeviceCertificateRequest, GetDeviceCertificateResponse, GetDeviceMetricsRequest, GetDeviceMetricsResponse, GetDeviceRequest, GetHubCARequest, GetHubCAResponse, GetHubMetricsRequest, GetHubMetricsResponse, GetHubRequest, GetNetworkRequest, GetRouteRequest, GetTwinDocumentRequest, Hub, HubProductPlan, HubStatus, HubTwinsGraphiteConfig, ListDevicesRequest, ListDevicesRequestOrderBy, ListDevicesResponse, ListHubsRequest, ListHubsRequestOrderBy, ListHubsResponse, ListNetworksRequest, ListNetworksRequestOrderBy, ListNetworksResponse, ListRoutesRequest, ListRoutesRequestOrderBy, ListRoutesResponse, ListTwinDocumentsRequest, ListTwinDocumentsResponse, ListTwinDocumentsResponseDocumentSummary, Network, NetworkNetworkType, PatchTwinDocumentRequest, PutTwinDocumentRequest, RenewDeviceCertificateRequest, RenewDeviceCertificateResponse, Route, RouteDatabaseConfig, RouteDatabaseConfigEngine, RouteRestConfig, RouteRestConfigHttpVerb, RouteRouteType, RouteS3Config, RouteS3ConfigS3Strategy, RouteSummary, SetDeviceCertificateRequest, SetDeviceCertificateResponse, SetHubCARequest, TwinDocument, UpdateDeviceRequest, UpdateHubRequest, UpdateRouteRequest, UpdateRouteRequestDatabaseConfig, UpdateRouteRequestRestConfig, UpdateRouteRequestS3Config, } from './types.gen.js';
@@ -1,40 +0,0 @@
1
- import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { HUB_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { marshalCreateDeviceRequest, marshalCreateHubRequest, marshalCreateNetworkRequest, marshalCreateRouteRequest, marshalPatchTwinDocumentRequest, marshalPutTwinDocumentRequest, marshalSetDeviceCertificateRequest, marshalSetHubCARequest, marshalUpdateDeviceRequest, marshalUpdateHubRequest, marshalUpdateRouteRequest, unmarshalCreateDeviceResponse, unmarshalCreateNetworkResponse, unmarshalDevice, unmarshalGetDeviceCertificateResponse, unmarshalGetDeviceMetricsResponse, unmarshalGetHubCAResponse, unmarshalGetHubMetricsResponse, unmarshalHub, unmarshalListDevicesResponse, unmarshalListHubsResponse, unmarshalListNetworksResponse, unmarshalListRoutesResponse, unmarshalListTwinDocumentsResponse, unmarshalNetwork, unmarshalRenewDeviceCertificateResponse, unmarshalRoute, unmarshalSetDeviceCertificateResponse, unmarshalTwinDocument } from "./marshalling.gen.js";
4
- import { API } from "./api.gen.js";
5
- //#region src/v1/index.gen.ts
6
- var index_gen_exports = /* @__PURE__ */ __exportAll({
7
- API: () => API,
8
- HUB_TRANSIENT_STATUSES: () => HUB_TRANSIENT_STATUSES,
9
- marshalCreateDeviceRequest: () => marshalCreateDeviceRequest,
10
- marshalCreateHubRequest: () => marshalCreateHubRequest,
11
- marshalCreateNetworkRequest: () => marshalCreateNetworkRequest,
12
- marshalCreateRouteRequest: () => marshalCreateRouteRequest,
13
- marshalPatchTwinDocumentRequest: () => marshalPatchTwinDocumentRequest,
14
- marshalPutTwinDocumentRequest: () => marshalPutTwinDocumentRequest,
15
- marshalSetDeviceCertificateRequest: () => marshalSetDeviceCertificateRequest,
16
- marshalSetHubCARequest: () => marshalSetHubCARequest,
17
- marshalUpdateDeviceRequest: () => marshalUpdateDeviceRequest,
18
- marshalUpdateHubRequest: () => marshalUpdateHubRequest,
19
- marshalUpdateRouteRequest: () => marshalUpdateRouteRequest,
20
- unmarshalCreateDeviceResponse: () => unmarshalCreateDeviceResponse,
21
- unmarshalCreateNetworkResponse: () => unmarshalCreateNetworkResponse,
22
- unmarshalDevice: () => unmarshalDevice,
23
- unmarshalGetDeviceCertificateResponse: () => unmarshalGetDeviceCertificateResponse,
24
- unmarshalGetDeviceMetricsResponse: () => unmarshalGetDeviceMetricsResponse,
25
- unmarshalGetHubCAResponse: () => unmarshalGetHubCAResponse,
26
- unmarshalGetHubMetricsResponse: () => unmarshalGetHubMetricsResponse,
27
- unmarshalHub: () => unmarshalHub,
28
- unmarshalListDevicesResponse: () => unmarshalListDevicesResponse,
29
- unmarshalListHubsResponse: () => unmarshalListHubsResponse,
30
- unmarshalListNetworksResponse: () => unmarshalListNetworksResponse,
31
- unmarshalListRoutesResponse: () => unmarshalListRoutesResponse,
32
- unmarshalListTwinDocumentsResponse: () => unmarshalListTwinDocumentsResponse,
33
- unmarshalNetwork: () => unmarshalNetwork,
34
- unmarshalRenewDeviceCertificateResponse: () => unmarshalRenewDeviceCertificateResponse,
35
- unmarshalRoute: () => unmarshalRoute,
36
- unmarshalSetDeviceCertificateResponse: () => unmarshalSetDeviceCertificateResponse,
37
- unmarshalTwinDocument: () => unmarshalTwinDocument
38
- });
39
- //#endregion
40
- export { API, HUB_TRANSIENT_STATUSES, index_gen_exports, marshalCreateDeviceRequest, marshalCreateHubRequest, marshalCreateNetworkRequest, marshalCreateRouteRequest, marshalPatchTwinDocumentRequest, marshalPutTwinDocumentRequest, marshalSetDeviceCertificateRequest, marshalSetHubCARequest, marshalUpdateDeviceRequest, marshalUpdateHubRequest, marshalUpdateRouteRequest, unmarshalCreateDeviceResponse, unmarshalCreateNetworkResponse, unmarshalDevice, unmarshalGetDeviceCertificateResponse, unmarshalGetDeviceMetricsResponse, unmarshalGetHubCAResponse, unmarshalGetHubMetricsResponse, unmarshalHub, unmarshalListDevicesResponse, unmarshalListHubsResponse, unmarshalListNetworksResponse, unmarshalListRoutesResponse, unmarshalListTwinDocumentsResponse, unmarshalNetwork, unmarshalRenewDeviceCertificateResponse, unmarshalRoute, unmarshalSetDeviceCertificateResponse, unmarshalTwinDocument };
@@ -1,31 +0,0 @@
1
- import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { Device, Network, Hub, CreateDeviceResponse, CreateNetworkResponse, GetDeviceCertificateResponse, GetDeviceMetricsResponse, GetHubCAResponse, GetHubMetricsResponse, ListDevicesResponse, ListHubsResponse, ListNetworksResponse, ListRoutesResponse, ListTwinDocumentsResponse, RenewDeviceCertificateResponse, Route, SetDeviceCertificateResponse, TwinDocument, CreateDeviceRequest, CreateHubRequest, CreateNetworkRequest, CreateRouteRequest, PatchTwinDocumentRequest, PutTwinDocumentRequest, SetDeviceCertificateRequest, SetHubCARequest, UpdateDeviceRequest, UpdateHubRequest, UpdateRouteRequest } from './types.gen.js';
3
- export declare const unmarshalDevice: (data: unknown) => Device;
4
- export declare const unmarshalNetwork: (data: unknown) => Network;
5
- export declare const unmarshalHub: (data: unknown) => Hub;
6
- export declare const unmarshalCreateDeviceResponse: (data: unknown) => CreateDeviceResponse;
7
- export declare const unmarshalCreateNetworkResponse: (data: unknown) => CreateNetworkResponse;
8
- export declare const unmarshalGetDeviceCertificateResponse: (data: unknown) => GetDeviceCertificateResponse;
9
- export declare const unmarshalGetDeviceMetricsResponse: (data: unknown) => GetDeviceMetricsResponse;
10
- export declare const unmarshalGetHubCAResponse: (data: unknown) => GetHubCAResponse;
11
- export declare const unmarshalGetHubMetricsResponse: (data: unknown) => GetHubMetricsResponse;
12
- export declare const unmarshalListDevicesResponse: (data: unknown) => ListDevicesResponse;
13
- export declare const unmarshalListHubsResponse: (data: unknown) => ListHubsResponse;
14
- export declare const unmarshalListNetworksResponse: (data: unknown) => ListNetworksResponse;
15
- export declare const unmarshalListRoutesResponse: (data: unknown) => ListRoutesResponse;
16
- export declare const unmarshalListTwinDocumentsResponse: (data: unknown) => ListTwinDocumentsResponse;
17
- export declare const unmarshalRenewDeviceCertificateResponse: (data: unknown) => RenewDeviceCertificateResponse;
18
- export declare const unmarshalRoute: (data: unknown) => Route;
19
- export declare const unmarshalSetDeviceCertificateResponse: (data: unknown) => SetDeviceCertificateResponse;
20
- export declare const unmarshalTwinDocument: (data: unknown) => TwinDocument;
21
- export declare const marshalCreateDeviceRequest: (request: CreateDeviceRequest, defaults: DefaultValues) => Record<string, unknown>;
22
- export declare const marshalCreateHubRequest: (request: CreateHubRequest, defaults: DefaultValues) => Record<string, unknown>;
23
- export declare const marshalCreateNetworkRequest: (request: CreateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
24
- export declare const marshalCreateRouteRequest: (request: CreateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;
25
- export declare const marshalPatchTwinDocumentRequest: (request: PatchTwinDocumentRequest, defaults: DefaultValues) => Record<string, unknown>;
26
- export declare const marshalPutTwinDocumentRequest: (request: PutTwinDocumentRequest, defaults: DefaultValues) => Record<string, unknown>;
27
- export declare const marshalSetDeviceCertificateRequest: (request: SetDeviceCertificateRequest, defaults: DefaultValues) => Record<string, unknown>;
28
- export declare const marshalSetHubCARequest: (request: SetHubCARequest, defaults: DefaultValues) => Record<string, unknown>;
29
- export declare const marshalUpdateDeviceRequest: (request: UpdateDeviceRequest, defaults: DefaultValues) => Record<string, unknown>;
30
- export declare const marshalUpdateHubRequest: (request: UpdateHubRequest, defaults: DefaultValues) => Record<string, unknown>;
31
- export declare const marshalUpdateRouteRequest: (request: UpdateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;