@homeflare/distilled-unifi-network 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -0
  3. package/dist/credentials.d.ts +24 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +78 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +74 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +49 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +33 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +33 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +18 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +59 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/retry.d.ts +57 -0
  20. package/dist/retry.d.ts.map +1 -0
  21. package/dist/retry.js +50 -0
  22. package/dist/retry.js.map +1 -0
  23. package/dist/services/access_control_acl_rules.d.ts +222 -0
  24. package/dist/services/access_control_acl_rules.d.ts.map +1 -0
  25. package/dist/services/access_control_acl_rules.js +225 -0
  26. package/dist/services/access_control_acl_rules.js.map +1 -0
  27. package/dist/services/application_info.d.ts +15 -0
  28. package/dist/services/application_info.d.ts.map +1 -0
  29. package/dist/services/application_info.js +22 -0
  30. package/dist/services/application_info.js.map +1 -0
  31. package/dist/services/clients.d.ts +108 -0
  32. package/dist/services/clients.d.ts.map +1 -0
  33. package/dist/services/clients.js +122 -0
  34. package/dist/services/clients.js.map +1 -0
  35. package/dist/services/dns_policies.d.ts +143 -0
  36. package/dist/services/dns_policies.d.ts.map +1 -0
  37. package/dist/services/dns_policies.js +171 -0
  38. package/dist/services/dns_policies.js.map +1 -0
  39. package/dist/services/firewall.d.ts +473 -0
  40. package/dist/services/firewall.d.ts.map +1 -0
  41. package/dist/services/firewall.js +521 -0
  42. package/dist/services/firewall.js.map +1 -0
  43. package/dist/services/hotspot.d.ts +107 -0
  44. package/dist/services/hotspot.d.ts.map +1 -0
  45. package/dist/services/hotspot.js +145 -0
  46. package/dist/services/hotspot.js.map +1 -0
  47. package/dist/services/index.d.ts +14 -0
  48. package/dist/services/index.d.ts.map +1 -0
  49. package/dist/services/index.js +15 -0
  50. package/dist/services/index.js.map +1 -0
  51. package/dist/services/networks.d.ts +251 -0
  52. package/dist/services/networks.d.ts.map +1 -0
  53. package/dist/services/networks.js +256 -0
  54. package/dist/services/networks.js.map +1 -0
  55. package/dist/services/sites.d.ts +31 -0
  56. package/dist/services/sites.d.ts.map +1 -0
  57. package/dist/services/sites.js +38 -0
  58. package/dist/services/sites.js.map +1 -0
  59. package/dist/services/supporting_resources.d.ts +238 -0
  60. package/dist/services/supporting_resources.d.ts.map +1 -0
  61. package/dist/services/supporting_resources.js +298 -0
  62. package/dist/services/supporting_resources.js.map +1 -0
  63. package/dist/services/switching.d.ts +168 -0
  64. package/dist/services/switching.d.ts.map +1 -0
  65. package/dist/services/switching.js +226 -0
  66. package/dist/services/switching.js.map +1 -0
  67. package/dist/services/traffic_matching_lists.d.ts +75 -0
  68. package/dist/services/traffic_matching_lists.d.ts.map +1 -0
  69. package/dist/services/traffic_matching_lists.js +126 -0
  70. package/dist/services/traffic_matching_lists.js.map +1 -0
  71. package/dist/services/unifi_devices.d.ts +280 -0
  72. package/dist/services/unifi_devices.d.ts.map +1 -0
  73. package/dist/services/unifi_devices.js +338 -0
  74. package/dist/services/unifi_devices.js.map +1 -0
  75. package/dist/services/wifi_broadcasts.d.ts +378 -0
  76. package/dist/services/wifi_broadcasts.d.ts.map +1 -0
  77. package/dist/services/wifi_broadcasts.js +396 -0
  78. package/dist/services/wifi_broadcasts.js.map +1 -0
  79. package/dist/traits.d.ts +11 -0
  80. package/dist/traits.d.ts.map +1 -0
  81. package/dist/traits.js +12 -0
  82. package/dist/traits.js.map +1 -0
  83. package/package.json +75 -0
  84. package/src/credentials.ts +112 -0
  85. package/src/errors.ts +103 -0
  86. package/src/index.ts +36 -0
  87. package/src/protocol.ts +86 -0
  88. package/src/retry.ts +83 -0
  89. package/src/services/access_control_acl_rules.ts +537 -0
  90. package/src/services/application_info.ts +44 -0
  91. package/src/services/clients.ts +272 -0
  92. package/src/services/dns_policies.ts +363 -0
  93. package/src/services/firewall.ts +1492 -0
  94. package/src/services/hotspot.ts +305 -0
  95. package/src/services/index.ts +14 -0
  96. package/src/services/networks.ts +613 -0
  97. package/src/services/sites.ts +81 -0
  98. package/src/services/supporting_resources.ts +650 -0
  99. package/src/services/switching.ts +496 -0
  100. package/src/services/traffic_matching_lists.ts +248 -0
  101. package/src/services/unifi_devices.ts +795 -0
  102. package/src/services/wifi_broadcasts.ts +992 -0
  103. package/src/traits.ts +45 -0
@@ -0,0 +1,280 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type UnifiNetworkOpError, type UnifiNetworkOpContext } from "../protocol.ts";
4
+ export type { UnifiNetworkOpError, UnifiNetworkOpContext };
5
+ export interface AdoptDeviceRequest {
6
+ siteId: string;
7
+ ignoreDeviceLimit: boolean;
8
+ macAddress: string;
9
+ }
10
+ export declare const AdoptDeviceRequest: S.Schema<AdoptDeviceRequest>;
11
+ export type UserDefinedEntityMetadataSource = "SDWAN";
12
+ export declare const UserDefinedEntityMetadataSource: any;
13
+ export interface UserDefinedEntityMetadata {
14
+ origin: string;
15
+ source?: UserDefinedEntityMetadataSource;
16
+ }
17
+ export declare const UserDefinedEntityMetadata: S.Schema<UserDefinedEntityMetadata>;
18
+ export type IntegrationLocalLagLocalDtoPortIdxsList = Array<number>;
19
+ export declare const IntegrationLocalLagLocalDtoPortIdxsList: S.Schema<IntegrationLocalLagLocalDtoPortIdxsList>;
20
+ export interface IntegrationLocalLagLocalDto {
21
+ id: string;
22
+ metadata: UserDefinedEntityMetadata;
23
+ portIdxs: IntegrationLocalLagLocalDtoPortIdxsList;
24
+ }
25
+ export declare const IntegrationLocalLagLocalDto: S.Schema<IntegrationLocalLagLocalDto>;
26
+ export type SwitchingFeatureOverviewLagsList = Array<IntegrationLocalLagLocalDto>;
27
+ export declare const SwitchingFeatureOverviewLagsList: S.Schema<SwitchingFeatureOverviewLagsList>;
28
+ export interface SwitchingFeatureOverview {
29
+ lags: SwitchingFeatureOverviewLagsList;
30
+ }
31
+ export declare const SwitchingFeatureOverview: S.Schema<SwitchingFeatureOverview>;
32
+ export interface DeviceFeatures {
33
+ accessPoint?: unknown;
34
+ switching?: SwitchingFeatureOverview;
35
+ }
36
+ export declare const DeviceFeatures: S.Schema<DeviceFeatures>;
37
+ export type PortOverviewConnector = "RJ45" | "SFP" | "SFPPLUS" | "SFP28" | "QSFP28";
38
+ export declare const PortOverviewConnector: any;
39
+ export type PortPoEOverviewStandard = "802.3af" | "802.3at" | "802.3bt";
40
+ export declare const PortPoEOverviewStandard: any;
41
+ /** Whether the port currently supplies power to the (connected) device. */
42
+ export type PortPoEOverviewState = "UP" | "DOWN" | "LIMITED" | "UNKNOWN";
43
+ export declare const PortPoEOverviewState: any;
44
+ export type PortPoEOverviewType = "1" | "2" | "3" | "4";
45
+ export declare const PortPoEOverviewType: any;
46
+ export interface PortPoEOverview {
47
+ /** Whether the PoE feature is enabled on the port */
48
+ enabled: boolean;
49
+ standard: PortPoEOverviewStandard;
50
+ /** Whether the port currently supplies power to the (connected) device. */
51
+ state: PortPoEOverviewState;
52
+ type: PortPoEOverviewType;
53
+ }
54
+ export declare const PortPoEOverview: S.Schema<PortPoEOverview>;
55
+ export type PortOverviewState = "UP" | "DOWN" | "UNKNOWN";
56
+ export declare const PortOverviewState: any;
57
+ export interface PortOverview {
58
+ connector: PortOverviewConnector;
59
+ idx: number;
60
+ maxSpeedMbps: number;
61
+ poe?: PortPoEOverview;
62
+ speedMbps?: number;
63
+ state: PortOverviewState;
64
+ }
65
+ export declare const PortOverview: S.Schema<PortOverview>;
66
+ export type DevicePhysicalInterfacesPortsList = Array<PortOverview>;
67
+ export declare const DevicePhysicalInterfacesPortsList: S.Schema<DevicePhysicalInterfacesPortsList>;
68
+ export type WirelessRadioOverviewFrequencyGHz = 2.4 | 5 | 6 | 60;
69
+ export declare const WirelessRadioOverviewFrequencyGHz: any;
70
+ export type WirelessRadioOverviewWlanStandard = "802.11a" | "802.11b" | "802.11g" | "802.11n" | "802.11ac" | "802.11ax" | "802.11be";
71
+ export declare const WirelessRadioOverviewWlanStandard: any;
72
+ export interface WirelessRadioOverview {
73
+ channel?: number;
74
+ channelWidthMHz: number;
75
+ frequencyGHz: WirelessRadioOverviewFrequencyGHz;
76
+ wlanStandard: WirelessRadioOverviewWlanStandard;
77
+ }
78
+ export declare const WirelessRadioOverview: S.Schema<WirelessRadioOverview>;
79
+ export type DevicePhysicalInterfacesRadiosList = Array<WirelessRadioOverview>;
80
+ export declare const DevicePhysicalInterfacesRadiosList: S.Schema<DevicePhysicalInterfacesRadiosList>;
81
+ export interface DevicePhysicalInterfaces {
82
+ ports?: DevicePhysicalInterfacesPortsList;
83
+ radios?: DevicePhysicalInterfacesRadiosList;
84
+ }
85
+ export declare const DevicePhysicalInterfaces: S.Schema<DevicePhysicalInterfaces>;
86
+ export type AdoptedDeviceDetailsState = "ONLINE" | "OFFLINE" | "PENDING_ADOPTION" | "UPDATING" | "GETTING_READY" | "ADOPTING" | "DELETING" | "CONNECTION_INTERRUPTED" | "ISOLATED" | "U5G_INCORRECT_TOPOLOGY";
87
+ export declare const AdoptedDeviceDetailsState: any;
88
+ /** Uplink interface is device's connection to the parent device in the network topology */
89
+ export interface DeviceUplinkInterfaceOverview {
90
+ deviceId: string;
91
+ }
92
+ export declare const DeviceUplinkInterfaceOverview: S.Schema<DeviceUplinkInterfaceOverview>;
93
+ export interface AdoptedDeviceDetails {
94
+ adoptedAt?: string;
95
+ configurationId: string;
96
+ features: DeviceFeatures;
97
+ firmwareUpdatable: boolean;
98
+ firmwareVersion?: string;
99
+ id: string;
100
+ interfaces: DevicePhysicalInterfaces;
101
+ ipAddress: string;
102
+ macAddress: string;
103
+ model: string;
104
+ name: string;
105
+ provisionedAt?: string;
106
+ state: AdoptedDeviceDetailsState;
107
+ supported: boolean;
108
+ uplink?: DeviceUplinkInterfaceOverview;
109
+ }
110
+ export declare const AdoptedDeviceDetails: S.Schema<AdoptedDeviceDetails>;
111
+ export interface ExecuteAdoptedDeviceActionRequest {
112
+ siteId: string;
113
+ deviceId: string;
114
+ action: string;
115
+ }
116
+ export declare const ExecuteAdoptedDeviceActionRequest: S.Schema<ExecuteAdoptedDeviceActionRequest>;
117
+ export interface ExecuteAdoptedDeviceActionResponse {
118
+ }
119
+ export declare const ExecuteAdoptedDeviceActionResponse: S.Schema<ExecuteAdoptedDeviceActionResponse>;
120
+ export interface ExecutePortActionRequest {
121
+ siteId: string;
122
+ deviceId: string;
123
+ portIdx: number;
124
+ action: string;
125
+ }
126
+ export declare const ExecutePortActionRequest: S.Schema<ExecutePortActionRequest>;
127
+ export interface ExecutePortActionResponse {
128
+ }
129
+ export declare const ExecutePortActionResponse: S.Schema<ExecutePortActionResponse>;
130
+ export interface GetAdoptedDeviceDetailsRequest {
131
+ siteId: string;
132
+ deviceId: string;
133
+ }
134
+ export declare const GetAdoptedDeviceDetailsRequest: S.Schema<GetAdoptedDeviceDetailsRequest>;
135
+ export interface GetAdoptedDeviceLatestStatisticsRequest {
136
+ siteId: string;
137
+ deviceId: string;
138
+ }
139
+ export declare const GetAdoptedDeviceLatestStatisticsRequest: S.Schema<GetAdoptedDeviceLatestStatisticsRequest>;
140
+ export type LatestStatisticsForWirelessRadioFrequencyGHz = 2.4 | 5 | 6 | 60;
141
+ export declare const LatestStatisticsForWirelessRadioFrequencyGHz: any;
142
+ export interface LatestStatisticsForWirelessRadio {
143
+ frequencyGHz: LatestStatisticsForWirelessRadioFrequencyGHz;
144
+ txRetriesPct?: number;
145
+ }
146
+ export declare const LatestStatisticsForWirelessRadio: S.Schema<LatestStatisticsForWirelessRadio>;
147
+ export type LatestStatisticsForDeviceInterfacesRadiosList = Array<LatestStatisticsForWirelessRadio>;
148
+ export declare const LatestStatisticsForDeviceInterfacesRadiosList: S.Schema<LatestStatisticsForDeviceInterfacesRadiosList>;
149
+ export interface LatestStatisticsForDeviceInterfaces {
150
+ radios?: LatestStatisticsForDeviceInterfacesRadiosList;
151
+ }
152
+ export declare const LatestStatisticsForDeviceInterfaces: S.Schema<LatestStatisticsForDeviceInterfaces>;
153
+ export interface LatestStatisticsForADeviceUplinkInterface {
154
+ rxRateBps?: number;
155
+ txRateBps?: number;
156
+ }
157
+ export declare const LatestStatisticsForADeviceUplinkInterface: S.Schema<LatestStatisticsForADeviceUplinkInterface>;
158
+ export interface LatestStatisticsForADevice {
159
+ cpuUtilizationPct?: number;
160
+ interfaces: LatestStatisticsForDeviceInterfaces;
161
+ lastHeartbeatAt?: string;
162
+ loadAverage15Min?: number;
163
+ loadAverage1Min?: number;
164
+ loadAverage5Min?: number;
165
+ memoryUtilizationPct?: number;
166
+ nextHeartbeatAt?: string;
167
+ uplink?: LatestStatisticsForADeviceUplinkInterface;
168
+ uptimeSec?: number;
169
+ }
170
+ export declare const LatestStatisticsForADevice: S.Schema<LatestStatisticsForADevice>;
171
+ export interface GetAdoptedDeviceOverviewPageRequest {
172
+ siteId: string;
173
+ offset?: number;
174
+ limit?: number;
175
+ filter?: string;
176
+ }
177
+ export declare const GetAdoptedDeviceOverviewPageRequest: S.Schema<GetAdoptedDeviceOverviewPageRequest>;
178
+ export type AdoptedDeviceOverviewFeaturesItem = "switching" | "accessPoint" | "gateway";
179
+ export declare const AdoptedDeviceOverviewFeaturesItem: any;
180
+ export type AdoptedDeviceOverviewFeaturesList = Array<AdoptedDeviceOverviewFeaturesItem>;
181
+ export declare const AdoptedDeviceOverviewFeaturesList: S.Schema<AdoptedDeviceOverviewFeaturesList>;
182
+ export type AdoptedDeviceOverviewInterfacesItem = "ports" | "radios";
183
+ export declare const AdoptedDeviceOverviewInterfacesItem: any;
184
+ export type AdoptedDeviceOverviewInterfacesList = Array<AdoptedDeviceOverviewInterfacesItem>;
185
+ export declare const AdoptedDeviceOverviewInterfacesList: S.Schema<AdoptedDeviceOverviewInterfacesList>;
186
+ export type AdoptedDeviceOverviewState = "ONLINE" | "OFFLINE" | "PENDING_ADOPTION" | "UPDATING" | "GETTING_READY" | "ADOPTING" | "DELETING" | "CONNECTION_INTERRUPTED" | "ISOLATED" | "U5G_INCORRECT_TOPOLOGY";
187
+ export declare const AdoptedDeviceOverviewState: any;
188
+ export interface AdoptedDeviceOverview {
189
+ features: AdoptedDeviceOverviewFeaturesList;
190
+ firmwareUpdatable: boolean;
191
+ firmwareVersion?: string;
192
+ id: string;
193
+ interfaces: AdoptedDeviceOverviewInterfacesList;
194
+ ipAddress: string;
195
+ macAddress: string;
196
+ model: string;
197
+ name: string;
198
+ state: AdoptedDeviceOverviewState;
199
+ supported: boolean;
200
+ }
201
+ export declare const AdoptedDeviceOverview: S.Schema<AdoptedDeviceOverview>;
202
+ export type AdoptedDeviceOverviewPageDataList = Array<AdoptedDeviceOverview>;
203
+ export declare const AdoptedDeviceOverviewPageDataList: S.Schema<AdoptedDeviceOverviewPageDataList>;
204
+ export interface AdoptedDeviceOverviewPage {
205
+ count: number;
206
+ data: AdoptedDeviceOverviewPageDataList;
207
+ limit: number;
208
+ offset: number;
209
+ totalCount: number;
210
+ }
211
+ export declare const AdoptedDeviceOverviewPage: S.Schema<AdoptedDeviceOverviewPage>;
212
+ export interface GetPendingDevicePageRequest {
213
+ offset?: number;
214
+ limit?: number;
215
+ filter?: string;
216
+ }
217
+ export declare const GetPendingDevicePageRequest: S.Schema<GetPendingDevicePageRequest>;
218
+ export type DevicePendingAdoptionAdoptionTargetSiteIdsList = Array<string>;
219
+ export declare const DevicePendingAdoptionAdoptionTargetSiteIdsList: S.Schema<DevicePendingAdoptionAdoptionTargetSiteIdsList>;
220
+ export type DevicePendingAdoptionFeaturesItem = "switching" | "accessPoint" | "gateway";
221
+ export declare const DevicePendingAdoptionFeaturesItem: any;
222
+ export type DevicePendingAdoptionFeaturesList = Array<DevicePendingAdoptionFeaturesItem>;
223
+ export declare const DevicePendingAdoptionFeaturesList: S.Schema<DevicePendingAdoptionFeaturesList>;
224
+ export type DevicePendingAdoptionState = "ONLINE" | "OFFLINE" | "PENDING_ADOPTION" | "UPDATING" | "GETTING_READY" | "ADOPTING" | "DELETING" | "CONNECTION_INTERRUPTED" | "ISOLATED" | "U5G_INCORRECT_TOPOLOGY";
225
+ export declare const DevicePendingAdoptionState: any;
226
+ export interface DevicePendingAdoption {
227
+ adoptionTargetSiteIds: DevicePendingAdoptionAdoptionTargetSiteIdsList;
228
+ features: DevicePendingAdoptionFeaturesList;
229
+ firmwareUpdatable: boolean;
230
+ firmwareVersion?: string;
231
+ ipAddress: string;
232
+ macAddress: string;
233
+ model: string;
234
+ state: DevicePendingAdoptionState;
235
+ supported: boolean;
236
+ }
237
+ export declare const DevicePendingAdoption: S.Schema<DevicePendingAdoption>;
238
+ export type DevicePendingAdoptionPageDataList = Array<DevicePendingAdoption>;
239
+ export declare const DevicePendingAdoptionPageDataList: S.Schema<DevicePendingAdoptionPageDataList>;
240
+ export interface DevicePendingAdoptionPage {
241
+ count: number;
242
+ data: DevicePendingAdoptionPageDataList;
243
+ limit: number;
244
+ offset: number;
245
+ totalCount: number;
246
+ }
247
+ export declare const DevicePendingAdoptionPage: S.Schema<DevicePendingAdoptionPage>;
248
+ export interface RemoveDeviceRequest {
249
+ siteId: string;
250
+ deviceId: string;
251
+ }
252
+ export declare const RemoveDeviceRequest: S.Schema<RemoveDeviceRequest>;
253
+ export interface RemoveDeviceResponse {
254
+ }
255
+ export declare const RemoveDeviceResponse: S.Schema<RemoveDeviceResponse>;
256
+ export type AdoptDeviceError = UnifiNetworkOpError;
257
+ /** Adopt Devices Adopt a device to a site. */
258
+ export declare const adoptDevice: API.OperationMethod<AdoptDeviceRequest, AdoptedDeviceDetails, AdoptDeviceError, UnifiNetworkOpContext>;
259
+ export type ExecuteAdoptedDeviceActionError = UnifiNetworkOpError;
260
+ /** Execute Adopted Device Action Perform an action on an specific adopted device. The request body must include the action name and any applicable input arguments. */
261
+ export declare const executeAdoptedDeviceAction: API.OperationMethod<ExecuteAdoptedDeviceActionRequest, ExecuteAdoptedDeviceActionResponse, ExecuteAdoptedDeviceActionError, UnifiNetworkOpContext>;
262
+ export type ExecutePortActionError = UnifiNetworkOpError;
263
+ /** Execute Port Action Perform an action on a specific device port. The request body must include the action name and any applicable input arguments. */
264
+ export declare const executePortAction: API.OperationMethod<ExecutePortActionRequest, ExecutePortActionResponse, ExecutePortActionError, UnifiNetworkOpContext>;
265
+ export type GetAdoptedDeviceDetailsError = UnifiNetworkOpError;
266
+ /** Get Adopted Device Details Retrieve detailed information about a specific adopted device, including firmware versioning, uplink state, details about device features and interfaces (ports, radios) and other key attributes. */
267
+ export declare const getAdoptedDeviceDetails: API.OperationMethod<GetAdoptedDeviceDetailsRequest, AdoptedDeviceDetails, GetAdoptedDeviceDetailsError, UnifiNetworkOpContext>;
268
+ export type GetAdoptedDeviceLatestStatisticsError = UnifiNetworkOpError;
269
+ /** Get Latest Adopted Device Statistics Retrieve the latest real-time statistics of a specific adopted device, such as uptime, data transmission rates, CPU and memory utilization. */
270
+ export declare const getAdoptedDeviceLatestStatistics: API.OperationMethod<GetAdoptedDeviceLatestStatisticsRequest, LatestStatisticsForADevice, GetAdoptedDeviceLatestStatisticsError, UnifiNetworkOpContext>;
271
+ export type GetAdoptedDeviceOverviewPageError = UnifiNetworkOpError;
272
+ /** List Adopted Devices Retrieve a paginated list of all adopted devices on a site, including basic device information. <details> <summary>Filterable properties (click to expand)</summary> </details> */
273
+ export declare const getAdoptedDeviceOverviewPage: API.OperationMethod<GetAdoptedDeviceOverviewPageRequest, AdoptedDeviceOverviewPage, GetAdoptedDeviceOverviewPageError, UnifiNetworkOpContext>;
274
+ export type GetPendingDevicePageError = UnifiNetworkOpError;
275
+ /** List Devices Pending Adoption Retrieve a paginated list of devices pending adoption, including basic device information. <details> <summary>Filterable properties (click to expand)</summary> </details> */
276
+ export declare const getPendingDevicePage: API.OperationMethod<GetPendingDevicePageRequest, DevicePendingAdoptionPage, GetPendingDevicePageError, UnifiNetworkOpContext>;
277
+ export type RemoveDeviceError = UnifiNetworkOpError;
278
+ /** Remove (Unadopt) Device Removes (unadopts) an adopted device from the site. If the device is online, it will be reset to factory defaults. */
279
+ export declare const removeDevice: API.OperationMethod<RemoveDeviceRequest, RemoveDeviceResponse, RemoveDeviceError, UnifiNetworkOpContext>;
280
+ //# sourceMappingURL=unifi_devices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unifi_devices.d.ts","sourceRoot":"","sources":["../../src/services/unifi_devices.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,kBAAkB,EAUlB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE1C,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC;AACtD,eAAO,MAAM,+BAA+B,KAAW,CAAC;AAExD,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,+BAA+B,CAAC;CAC1C;AACD,eAAO,MAAM,yBAAyB,EAOzB,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAEjD,MAAM,MAAM,uCAAuC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACpE,eAAO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AC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AACpD,iJAAiJ;AACjJ,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,CAOpB,CAAC"}
@@ -0,0 +1,338 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-unifi-network/specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.js";
5
+ import { UnifiNetworkProtocol, } from "../protocol.js";
6
+ import { UnknownUnifiNetworkError } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const AdoptDeviceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
+ siteId: S.String.pipe(T.Label()),
10
+ ignoreDeviceLimit: S.Boolean,
11
+ macAddress: S.String,
12
+ }).pipe(T.Http({ method: "POST", uri: "/v1/sites/{siteId}/devices", code: 200 }))).annotate({
13
+ identifier: "AdoptDeviceRequest",
14
+ });
15
+ export const UserDefinedEntityMetadataSource = S.String;
16
+ export const UserDefinedEntityMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
17
+ origin: S.String,
18
+ source: S.optional(UserDefinedEntityMetadataSource),
19
+ })).annotate({
20
+ identifier: "UserDefinedEntityMetadata",
21
+ });
22
+ export const IntegrationLocalLagLocalDtoPortIdxsList = /*@__PURE__*/ S.Array(S.Number);
23
+ export const IntegrationLocalLagLocalDto = /*@__PURE__*/ S.suspend(() => S.Struct({
24
+ id: S.String,
25
+ metadata: UserDefinedEntityMetadata,
26
+ portIdxs: IntegrationLocalLagLocalDtoPortIdxsList,
27
+ })).annotate({
28
+ identifier: "IntegrationLocalLagLocalDto",
29
+ });
30
+ export const SwitchingFeatureOverviewLagsList = /*@__PURE__*/ S.Array(IntegrationLocalLagLocalDto);
31
+ export const SwitchingFeatureOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
32
+ lags: SwitchingFeatureOverviewLagsList,
33
+ })).annotate({
34
+ identifier: "SwitchingFeatureOverview",
35
+ });
36
+ export const DeviceFeatures = /*@__PURE__*/ S.suspend(() => S.Struct({
37
+ accessPoint: S.optional(S.Unknown),
38
+ switching: S.optional(SwitchingFeatureOverview),
39
+ })).annotate({ identifier: "DeviceFeatures" });
40
+ export const PortOverviewConnector = S.String;
41
+ export const PortPoEOverviewStandard = S.String;
42
+ export const PortPoEOverviewState = S.String;
43
+ export const PortPoEOverviewType = S.String;
44
+ export const PortPoEOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
45
+ enabled: S.Boolean,
46
+ standard: PortPoEOverviewStandard,
47
+ state: PortPoEOverviewState,
48
+ type: PortPoEOverviewType,
49
+ })).annotate({
50
+ identifier: "PortPoEOverview",
51
+ });
52
+ export const PortOverviewState = S.String;
53
+ export const PortOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
54
+ connector: PortOverviewConnector,
55
+ idx: S.Number,
56
+ maxSpeedMbps: S.Number,
57
+ poe: S.optional(PortPoEOverview),
58
+ speedMbps: S.optional(S.Number),
59
+ state: PortOverviewState,
60
+ })).annotate({ identifier: "PortOverview" });
61
+ export const DevicePhysicalInterfacesPortsList = /*@__PURE__*/ S.Array(PortOverview);
62
+ export const WirelessRadioOverviewFrequencyGHz = S.Number;
63
+ export const WirelessRadioOverviewWlanStandard = S.String;
64
+ export const WirelessRadioOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
65
+ channel: S.optional(S.Number),
66
+ channelWidthMHz: S.Number,
67
+ frequencyGHz: WirelessRadioOverviewFrequencyGHz,
68
+ wlanStandard: WirelessRadioOverviewWlanStandard,
69
+ })).annotate({
70
+ identifier: "WirelessRadioOverview",
71
+ });
72
+ export const DevicePhysicalInterfacesRadiosList = /*@__PURE__*/ S.Array(WirelessRadioOverview);
73
+ export const DevicePhysicalInterfaces = /*@__PURE__*/ S.suspend(() => S.Struct({
74
+ ports: S.optional(DevicePhysicalInterfacesPortsList),
75
+ radios: S.optional(DevicePhysicalInterfacesRadiosList),
76
+ })).annotate({
77
+ identifier: "DevicePhysicalInterfaces",
78
+ });
79
+ export const AdoptedDeviceDetailsState = S.String;
80
+ export const DeviceUplinkInterfaceOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
81
+ deviceId: S.String,
82
+ })).annotate({
83
+ identifier: "DeviceUplinkInterfaceOverview",
84
+ });
85
+ export const AdoptedDeviceDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
86
+ adoptedAt: S.optional(S.String),
87
+ configurationId: S.String,
88
+ features: DeviceFeatures,
89
+ firmwareUpdatable: S.Boolean,
90
+ firmwareVersion: S.optional(S.String),
91
+ id: S.String,
92
+ interfaces: DevicePhysicalInterfaces,
93
+ ipAddress: S.String,
94
+ macAddress: S.String,
95
+ model: S.String,
96
+ name: S.String,
97
+ provisionedAt: S.optional(S.String),
98
+ state: AdoptedDeviceDetailsState,
99
+ supported: S.Boolean,
100
+ uplink: S.optional(DeviceUplinkInterfaceOverview),
101
+ })).annotate({
102
+ identifier: "AdoptedDeviceDetails",
103
+ });
104
+ export const ExecuteAdoptedDeviceActionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
105
+ siteId: S.String.pipe(T.Label()),
106
+ deviceId: S.String.pipe(T.Label()),
107
+ action: S.String,
108
+ }).pipe(T.Http({
109
+ method: "POST",
110
+ uri: "/v1/sites/{siteId}/devices/{deviceId}/actions",
111
+ code: 200,
112
+ }))).annotate({
113
+ identifier: "ExecuteAdoptedDeviceActionRequest",
114
+ });
115
+ export const ExecuteAdoptedDeviceActionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
116
+ identifier: "ExecuteAdoptedDeviceActionResponse",
117
+ });
118
+ export const ExecutePortActionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
119
+ siteId: S.String.pipe(T.Label()),
120
+ deviceId: S.String.pipe(T.Label()),
121
+ portIdx: S.Number.pipe(T.Label()),
122
+ action: S.String,
123
+ }).pipe(T.Http({
124
+ method: "POST",
125
+ uri: "/v1/sites/{siteId}/devices/{deviceId}/interfaces/ports/{portIdx}/actions",
126
+ code: 200,
127
+ }))).annotate({
128
+ identifier: "ExecutePortActionRequest",
129
+ });
130
+ export const ExecutePortActionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
131
+ identifier: "ExecutePortActionResponse",
132
+ });
133
+ export const GetAdoptedDeviceDetailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
134
+ siteId: S.String.pipe(T.Label()),
135
+ deviceId: S.String.pipe(T.Label()),
136
+ }).pipe(T.Http({
137
+ method: "GET",
138
+ uri: "/v1/sites/{siteId}/devices/{deviceId}",
139
+ code: 200,
140
+ }))).annotate({
141
+ identifier: "GetAdoptedDeviceDetailsRequest",
142
+ });
143
+ export const GetAdoptedDeviceLatestStatisticsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
144
+ siteId: S.String.pipe(T.Label()),
145
+ deviceId: S.String.pipe(T.Label()),
146
+ }).pipe(T.Http({
147
+ method: "GET",
148
+ uri: "/v1/sites/{siteId}/devices/{deviceId}/statistics/latest",
149
+ code: 200,
150
+ }))).annotate({
151
+ identifier: "GetAdoptedDeviceLatestStatisticsRequest",
152
+ });
153
+ export const LatestStatisticsForWirelessRadioFrequencyGHz = S.Number;
154
+ export const LatestStatisticsForWirelessRadio = /*@__PURE__*/ S.suspend(() => S.Struct({
155
+ frequencyGHz: LatestStatisticsForWirelessRadioFrequencyGHz,
156
+ txRetriesPct: S.optional(S.Number),
157
+ })).annotate({
158
+ identifier: "LatestStatisticsForWirelessRadio",
159
+ });
160
+ export const LatestStatisticsForDeviceInterfacesRadiosList =
161
+ /*@__PURE__*/ S.Array(LatestStatisticsForWirelessRadio);
162
+ export const LatestStatisticsForDeviceInterfaces = /*@__PURE__*/ S.suspend(() => S.Struct({
163
+ radios: S.optional(LatestStatisticsForDeviceInterfacesRadiosList),
164
+ })).annotate({
165
+ identifier: "LatestStatisticsForDeviceInterfaces",
166
+ });
167
+ export const LatestStatisticsForADeviceUplinkInterface =
168
+ /*@__PURE__*/ S.suspend(() => S.Struct({
169
+ rxRateBps: S.optional(S.Number),
170
+ txRateBps: S.optional(S.Number),
171
+ })).annotate({
172
+ identifier: "LatestStatisticsForADeviceUplinkInterface",
173
+ });
174
+ export const LatestStatisticsForADevice = /*@__PURE__*/ S.suspend(() => S.Struct({
175
+ cpuUtilizationPct: S.optional(S.Number),
176
+ interfaces: LatestStatisticsForDeviceInterfaces,
177
+ lastHeartbeatAt: S.optional(S.String),
178
+ loadAverage15Min: S.optional(S.Number),
179
+ loadAverage1Min: S.optional(S.Number),
180
+ loadAverage5Min: S.optional(S.Number),
181
+ memoryUtilizationPct: S.optional(S.Number),
182
+ nextHeartbeatAt: S.optional(S.String),
183
+ uplink: S.optional(LatestStatisticsForADeviceUplinkInterface),
184
+ uptimeSec: S.optional(S.Number),
185
+ })).annotate({
186
+ identifier: "LatestStatisticsForADevice",
187
+ });
188
+ export const GetAdoptedDeviceOverviewPageRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
189
+ siteId: S.String.pipe(T.Label()),
190
+ offset: S.optional(S.Number.pipe(T.Query())),
191
+ limit: S.optional(S.Number.pipe(T.Query())),
192
+ filter: S.optional(S.String.pipe(T.Query())),
193
+ }).pipe(T.Http({ method: "GET", uri: "/v1/sites/{siteId}/devices", code: 200 }))).annotate({
194
+ identifier: "GetAdoptedDeviceOverviewPageRequest",
195
+ });
196
+ export const AdoptedDeviceOverviewFeaturesItem = S.String;
197
+ export const AdoptedDeviceOverviewFeaturesList = /*@__PURE__*/ S.Array(AdoptedDeviceOverviewFeaturesItem);
198
+ export const AdoptedDeviceOverviewInterfacesItem = S.String;
199
+ export const AdoptedDeviceOverviewInterfacesList = /*@__PURE__*/ S.Array(AdoptedDeviceOverviewInterfacesItem);
200
+ export const AdoptedDeviceOverviewState = S.String;
201
+ export const AdoptedDeviceOverview = /*@__PURE__*/ S.suspend(() => S.Struct({
202
+ features: AdoptedDeviceOverviewFeaturesList,
203
+ firmwareUpdatable: S.Boolean,
204
+ firmwareVersion: S.optional(S.String),
205
+ id: S.String,
206
+ interfaces: AdoptedDeviceOverviewInterfacesList,
207
+ ipAddress: S.String,
208
+ macAddress: S.String,
209
+ model: S.String,
210
+ name: S.String,
211
+ state: AdoptedDeviceOverviewState,
212
+ supported: S.Boolean,
213
+ })).annotate({
214
+ identifier: "AdoptedDeviceOverview",
215
+ });
216
+ export const AdoptedDeviceOverviewPageDataList = /*@__PURE__*/ S.Array(AdoptedDeviceOverview);
217
+ export const AdoptedDeviceOverviewPage = /*@__PURE__*/ S.suspend(() => S.Struct({
218
+ count: S.Number,
219
+ data: AdoptedDeviceOverviewPageDataList,
220
+ limit: S.Number,
221
+ offset: S.Number,
222
+ totalCount: S.Number,
223
+ })).annotate({
224
+ identifier: "AdoptedDeviceOverviewPage",
225
+ });
226
+ export const GetPendingDevicePageRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
227
+ offset: S.optional(S.Number.pipe(T.Query())),
228
+ limit: S.optional(S.Number.pipe(T.Query())),
229
+ filter: S.optional(S.String.pipe(T.Query())),
230
+ }).pipe(T.Http({ method: "GET", uri: "/v1/pending-devices", code: 200 }))).annotate({
231
+ identifier: "GetPendingDevicePageRequest",
232
+ });
233
+ export const DevicePendingAdoptionAdoptionTargetSiteIdsList =
234
+ /*@__PURE__*/ S.Array(S.String);
235
+ export const DevicePendingAdoptionFeaturesItem = S.String;
236
+ export const DevicePendingAdoptionFeaturesList = /*@__PURE__*/ S.Array(DevicePendingAdoptionFeaturesItem);
237
+ export const DevicePendingAdoptionState = S.String;
238
+ export const DevicePendingAdoption = /*@__PURE__*/ S.suspend(() => S.Struct({
239
+ adoptionTargetSiteIds: DevicePendingAdoptionAdoptionTargetSiteIdsList,
240
+ features: DevicePendingAdoptionFeaturesList,
241
+ firmwareUpdatable: S.Boolean,
242
+ firmwareVersion: S.optional(S.String),
243
+ ipAddress: S.String,
244
+ macAddress: S.String,
245
+ model: S.String,
246
+ state: DevicePendingAdoptionState,
247
+ supported: S.Boolean,
248
+ })).annotate({
249
+ identifier: "DevicePendingAdoption",
250
+ });
251
+ export const DevicePendingAdoptionPageDataList = /*@__PURE__*/ S.Array(DevicePendingAdoption);
252
+ export const DevicePendingAdoptionPage = /*@__PURE__*/ S.suspend(() => S.Struct({
253
+ count: S.Number,
254
+ data: DevicePendingAdoptionPageDataList,
255
+ limit: S.Number,
256
+ offset: S.Number,
257
+ totalCount: S.Number,
258
+ })).annotate({
259
+ identifier: "DevicePendingAdoptionPage",
260
+ });
261
+ export const RemoveDeviceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
262
+ siteId: S.String.pipe(T.Label()),
263
+ deviceId: S.String.pipe(T.Label()),
264
+ }).pipe(T.Http({
265
+ method: "DELETE",
266
+ uri: "/v1/sites/{siteId}/devices/{deviceId}",
267
+ code: 200,
268
+ }))).annotate({
269
+ identifier: "RemoveDeviceRequest",
270
+ });
271
+ export const RemoveDeviceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
272
+ identifier: "RemoveDeviceResponse",
273
+ });
274
+ /** Adopt Devices Adopt a device to a site. */
275
+ export const adoptDevice = /*@__PURE__*/ API.make(() => ({
276
+ input: AdoptDeviceRequest,
277
+ output: AdoptedDeviceDetails,
278
+ errors: [UnknownUnifiNetworkError],
279
+ protocol: UnifiNetworkProtocol,
280
+ retry: Retry.Retry,
281
+ }));
282
+ /** Execute Adopted Device Action Perform an action on an specific adopted device. The request body must include the action name and any applicable input arguments. */
283
+ export const executeAdoptedDeviceAction = /*@__PURE__*/ API.make(() => ({
284
+ input: ExecuteAdoptedDeviceActionRequest,
285
+ output: ExecuteAdoptedDeviceActionResponse,
286
+ errors: [UnknownUnifiNetworkError],
287
+ protocol: UnifiNetworkProtocol,
288
+ retry: Retry.Retry,
289
+ }));
290
+ /** Execute Port Action Perform an action on a specific device port. The request body must include the action name and any applicable input arguments. */
291
+ export const executePortAction = /*@__PURE__*/ API.make(() => ({
292
+ input: ExecutePortActionRequest,
293
+ output: ExecutePortActionResponse,
294
+ errors: [UnknownUnifiNetworkError],
295
+ protocol: UnifiNetworkProtocol,
296
+ retry: Retry.Retry,
297
+ }));
298
+ /** Get Adopted Device Details Retrieve detailed information about a specific adopted device, including firmware versioning, uplink state, details about device features and interfaces (ports, radios) and other key attributes. */
299
+ export const getAdoptedDeviceDetails = /*@__PURE__*/ API.make(() => ({
300
+ input: GetAdoptedDeviceDetailsRequest,
301
+ output: AdoptedDeviceDetails,
302
+ errors: [UnknownUnifiNetworkError],
303
+ protocol: UnifiNetworkProtocol,
304
+ retry: Retry.Retry,
305
+ }));
306
+ /** Get Latest Adopted Device Statistics Retrieve the latest real-time statistics of a specific adopted device, such as uptime, data transmission rates, CPU and memory utilization. */
307
+ export const getAdoptedDeviceLatestStatistics = /*@__PURE__*/ API.make(() => ({
308
+ input: GetAdoptedDeviceLatestStatisticsRequest,
309
+ output: LatestStatisticsForADevice,
310
+ errors: [UnknownUnifiNetworkError],
311
+ protocol: UnifiNetworkProtocol,
312
+ retry: Retry.Retry,
313
+ }));
314
+ /** List Adopted Devices Retrieve a paginated list of all adopted devices on a site, including basic device information. <details> <summary>Filterable properties (click to expand)</summary> </details> */
315
+ export const getAdoptedDeviceOverviewPage = /*@__PURE__*/ API.make(() => ({
316
+ input: GetAdoptedDeviceOverviewPageRequest,
317
+ output: AdoptedDeviceOverviewPage,
318
+ errors: [UnknownUnifiNetworkError],
319
+ protocol: UnifiNetworkProtocol,
320
+ retry: Retry.Retry,
321
+ }));
322
+ /** List Devices Pending Adoption Retrieve a paginated list of devices pending adoption, including basic device information. <details> <summary>Filterable properties (click to expand)</summary> </details> */
323
+ export const getPendingDevicePage = /*@__PURE__*/ API.make(() => ({
324
+ input: GetPendingDevicePageRequest,
325
+ output: DevicePendingAdoptionPage,
326
+ errors: [UnknownUnifiNetworkError],
327
+ protocol: UnifiNetworkProtocol,
328
+ retry: Retry.Retry,
329
+ }));
330
+ /** Remove (Unadopt) Device Removes (unadopts) an adopted device from the site. If the device is online, it will be reset to factory defaults. */
331
+ export const removeDevice = /*@__PURE__*/ API.make(() => ({
332
+ input: RemoveDeviceRequest,
333
+ output: RemoveDeviceResponse,
334
+ errors: [UnknownUnifiNetworkError],
335
+ protocol: UnifiNetworkProtocol,
336
+ retry: Retry.Retry,
337
+ }));
338
+ //# sourceMappingURL=unifi_devices.js.map