addigy 2.11.2 → 2.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/v2/certs-v2.d.ts +2 -2
- package/lib/v2/devices-v2.d.ts +2 -2
- package/lib/v2/policies-v2.d.ts +3 -3
- package/lib/v2/policies-v2.js +2 -1
- package/lib/v2/users-v2.d.ts +5 -5
- package/lib/v2/v2.types.d.ts +254 -0
- package/package.json +1 -1
package/lib/v2/certs-v2.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { V2ListOptions } from './v2.types';
|
|
2
|
+
import { InstalledCertificate, V2ListOptions } from './v2.types';
|
|
3
3
|
export declare class CertsV2 {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: AxiosInstance);
|
|
6
|
-
list(options?: V2ListOptions): Promise<
|
|
6
|
+
list(options?: V2ListOptions): Promise<InstalledCertificate[]>;
|
|
7
7
|
}
|
package/lib/v2/devices-v2.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { V2ListOptions } from './v2.types';
|
|
2
|
+
import { DeviceAudit, V2ListOptions } from './v2.types';
|
|
3
3
|
export declare class DevicesV2 {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: AxiosInstance);
|
|
6
|
-
list(options?: V2ListOptions): Promise<
|
|
6
|
+
list(options?: V2ListOptions): Promise<DeviceAudit[]>;
|
|
7
7
|
}
|
package/lib/v2/policies-v2.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { V2ListOptions } from './v2.types';
|
|
2
|
+
import { V2Policy, V2ListOptions } from './v2.types';
|
|
3
3
|
export declare class PoliciesV2 {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: AxiosInstance);
|
|
6
|
-
list(options?: V2ListOptions): Promise<
|
|
7
|
-
create(name: string): Promise<
|
|
6
|
+
list(options?: V2ListOptions): Promise<V2Policy[]>;
|
|
7
|
+
create(name: string): Promise<V2Policy>;
|
|
8
8
|
}
|
package/lib/v2/policies-v2.js
CHANGED
|
@@ -19,7 +19,8 @@ class PoliciesV2 {
|
|
|
19
19
|
}, options);
|
|
20
20
|
}
|
|
21
21
|
async create(name) {
|
|
22
|
-
const
|
|
22
|
+
const requestBody = { name };
|
|
23
|
+
const response = await this.http.post('/policies', requestBody);
|
|
23
24
|
return response.data;
|
|
24
25
|
}
|
|
25
26
|
}
|
package/lib/v2/users-v2.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { V2ListOptions } from './v2.types';
|
|
2
|
+
import { OrganizationUser, UserRemoveResponse, UserUpdateResponse, V2ListOptions } from './v2.types';
|
|
3
3
|
export declare class UsersV2 {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: AxiosInstance);
|
|
6
|
-
get(organizationId: string, options?: V2ListOptions): Promise<
|
|
7
|
-
list(organizationId: string, options?: V2ListOptions): Promise<
|
|
8
|
-
update(email: string, name: string, policies: string[], role: string, phone?: string): Promise<
|
|
9
|
-
remove(email: string): Promise<
|
|
6
|
+
get(organizationId: string, options?: V2ListOptions): Promise<OrganizationUser[]>;
|
|
7
|
+
list(organizationId: string, options?: V2ListOptions): Promise<OrganizationUser[]>;
|
|
8
|
+
update(email: string, name: string, policies: string[], role: string, phone?: string): Promise<UserUpdateResponse>;
|
|
9
|
+
remove(email: string): Promise<UserRemoveResponse>;
|
|
10
10
|
}
|
package/lib/v2/v2.types.d.ts
CHANGED
|
@@ -29,3 +29,257 @@ export interface V2PaginationRequest {
|
|
|
29
29
|
page: number;
|
|
30
30
|
per_page: number;
|
|
31
31
|
}
|
|
32
|
+
export type DeviceFactType = 'string' | 'number' | 'boolean' | 'list' | 'date';
|
|
33
|
+
interface DeviceFactBase {
|
|
34
|
+
error_msg?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface DeviceFactString extends DeviceFactBase {
|
|
37
|
+
type: 'string';
|
|
38
|
+
value: string | null;
|
|
39
|
+
}
|
|
40
|
+
export interface DeviceFactNumber extends DeviceFactBase {
|
|
41
|
+
type: 'number';
|
|
42
|
+
value: number | null;
|
|
43
|
+
}
|
|
44
|
+
export interface DeviceFactBoolean extends DeviceFactBase {
|
|
45
|
+
type: 'boolean';
|
|
46
|
+
value: boolean | null;
|
|
47
|
+
}
|
|
48
|
+
export interface DeviceFactList extends DeviceFactBase {
|
|
49
|
+
type: 'list';
|
|
50
|
+
value: unknown[] | null;
|
|
51
|
+
}
|
|
52
|
+
export interface DeviceFactDate extends DeviceFactBase {
|
|
53
|
+
type: 'date';
|
|
54
|
+
value: string | null;
|
|
55
|
+
}
|
|
56
|
+
export interface DeviceFactUnknown extends DeviceFactBase {
|
|
57
|
+
type?: string;
|
|
58
|
+
value?: unknown;
|
|
59
|
+
}
|
|
60
|
+
export type DeviceFact = DeviceFactString | DeviceFactNumber | DeviceFactBoolean | DeviceFactList | DeviceFactDate | DeviceFactUnknown;
|
|
61
|
+
export interface DeviceFacts {
|
|
62
|
+
'32_bit_applications'?: DeviceFactList;
|
|
63
|
+
active_managed_users?: DeviceFactList;
|
|
64
|
+
active_users?: DeviceFactList;
|
|
65
|
+
addigy_splashtop_installed?: DeviceFactBoolean;
|
|
66
|
+
admin_users?: DeviceFactList;
|
|
67
|
+
agent_version?: DeviceFactString;
|
|
68
|
+
agentid?: DeviceFactString;
|
|
69
|
+
audit_execution_time_seconds?: DeviceFactNumber;
|
|
70
|
+
authenticated_root_volume_enabled?: DeviceFactBoolean;
|
|
71
|
+
awaiting_configuration?: DeviceFactBoolean;
|
|
72
|
+
bandwidth_saved_gb?: DeviceFactNumber;
|
|
73
|
+
bandwidth_served_gb?: DeviceFactNumber;
|
|
74
|
+
battery_capacity_loss_percentage?: DeviceFactNumber;
|
|
75
|
+
battery_charging?: DeviceFactBoolean;
|
|
76
|
+
battery_cycles?: DeviceFactNumber;
|
|
77
|
+
battery_failures?: DeviceFactNumber;
|
|
78
|
+
battery_percentage?: DeviceFactNumber;
|
|
79
|
+
battery_temperature_fahrenheit?: DeviceFactNumber;
|
|
80
|
+
battery_temperaturecelsius?: DeviceFactNumber;
|
|
81
|
+
bluetooth_mac?: DeviceFactString;
|
|
82
|
+
bootstrap_token_allowed_for_authentication?: DeviceFactString;
|
|
83
|
+
bootstrap_token_required_for_kernel_extension_approval?: DeviceFactBoolean;
|
|
84
|
+
bootstrap_token_required_for_software_update?: DeviceFactBoolean;
|
|
85
|
+
build_version?: DeviceFactString;
|
|
86
|
+
carrier_settings_version?: DeviceFactString;
|
|
87
|
+
cellular_technology?: DeviceFactNumber;
|
|
88
|
+
client_ip?: DeviceFactString;
|
|
89
|
+
crashplan_days_since_last_backup?: DeviceFactNumber;
|
|
90
|
+
current_carrier_network?: DeviceFactString;
|
|
91
|
+
current_mcc?: DeviceFactString;
|
|
92
|
+
current_mnc?: DeviceFactString;
|
|
93
|
+
current_user?: DeviceFactString;
|
|
94
|
+
data_roaming_enabled?: DeviceFactBoolean;
|
|
95
|
+
days_since_last_cloud_backup?: DeviceFactNumber;
|
|
96
|
+
device_chip_type?: DeviceFactString;
|
|
97
|
+
device_model_name?: DeviceFactString;
|
|
98
|
+
device_name?: DeviceFactString;
|
|
99
|
+
display_on?: DeviceFactBoolean;
|
|
100
|
+
displays_serial_number?: DeviceFactList;
|
|
101
|
+
eas_device_identifier?: DeviceFactString;
|
|
102
|
+
enrolled_via_dep?: DeviceFactBoolean;
|
|
103
|
+
ethernet_ma_cs?: DeviceFactList;
|
|
104
|
+
ethernet_mac_address?: DeviceFactString;
|
|
105
|
+
external_boot_level?: DeviceFactString;
|
|
106
|
+
files_served?: DeviceFactNumber;
|
|
107
|
+
filevault_enabled?: DeviceFactBoolean;
|
|
108
|
+
filevault_key_escrowed?: DeviceFactBoolean;
|
|
109
|
+
firewall_allowed_applications?: DeviceFactList;
|
|
110
|
+
firewall_block_all_incoming_connections?: DeviceFactBoolean;
|
|
111
|
+
firewall_blocked_applications?: DeviceFactList;
|
|
112
|
+
firewall_enabled?: DeviceFactBoolean;
|
|
113
|
+
firewall_stealth_mode_enabled?: DeviceFactBoolean;
|
|
114
|
+
firmware_password_allow_orams?: DeviceFactBoolean;
|
|
115
|
+
firmware_password_change_pending?: DeviceFactBoolean;
|
|
116
|
+
firmware_password_exists?: DeviceFactBoolean;
|
|
117
|
+
free_disk_percentage?: DeviceFactNumber;
|
|
118
|
+
free_disk_space_gb?: DeviceFactNumber;
|
|
119
|
+
gatekeeper_enabled?: DeviceFactBoolean;
|
|
120
|
+
hardware_model?: DeviceFactString;
|
|
121
|
+
has_mdm?: DeviceFactBoolean;
|
|
122
|
+
has_mdm_profile_approved?: DeviceFactBoolean;
|
|
123
|
+
has_unlock_token?: DeviceFactBoolean;
|
|
124
|
+
has_wireless?: DeviceFactBoolean;
|
|
125
|
+
host_name?: DeviceFactString;
|
|
126
|
+
iccid?: DeviceFactString;
|
|
127
|
+
identity_installed?: DeviceFactBoolean;
|
|
128
|
+
identity_users?: DeviceFactList;
|
|
129
|
+
imei?: DeviceFactString;
|
|
130
|
+
installed_profiles?: DeviceFactList;
|
|
131
|
+
is_activation_lock_enabled?: DeviceFactBoolean;
|
|
132
|
+
is_activation_lock_manageable?: DeviceFactBoolean;
|
|
133
|
+
is_cloud_backup_enabled?: DeviceFactBoolean;
|
|
134
|
+
is_compliant?: DeviceFactBoolean;
|
|
135
|
+
is_device_locator_service_enabled?: DeviceFactBoolean;
|
|
136
|
+
is_do_not_disturb_in_effect?: DeviceFactBoolean;
|
|
137
|
+
is_mdm_activation_lock_enabled?: DeviceFactBoolean;
|
|
138
|
+
is_mdm_client_stuck?: DeviceFactBoolean;
|
|
139
|
+
is_mdm_identity_certificate_installed?: DeviceFactBoolean;
|
|
140
|
+
is_mdm_lost_mode_enabled?: DeviceFactBoolean;
|
|
141
|
+
is_mdm_softwareupdated_stuck?: DeviceFactBoolean;
|
|
142
|
+
is_roaming?: DeviceFactBoolean;
|
|
143
|
+
is_sonoma_ready?: DeviceFactBoolean;
|
|
144
|
+
is_supervised?: DeviceFactBoolean;
|
|
145
|
+
is_user_enrollment?: DeviceFactBoolean;
|
|
146
|
+
java_vendor?: DeviceFactString;
|
|
147
|
+
java_version?: DeviceFactString;
|
|
148
|
+
kernel_panic?: DeviceFactBoolean;
|
|
149
|
+
lan_cache_size_bytes?: DeviceFactNumber;
|
|
150
|
+
languages?: DeviceFactList;
|
|
151
|
+
last_cloud_backup_date?: DeviceFactDate;
|
|
152
|
+
last_online?: DeviceFactDate;
|
|
153
|
+
last_reboot_timestamp?: DeviceFactNumber;
|
|
154
|
+
local_ip?: DeviceFactString;
|
|
155
|
+
locales?: DeviceFactList;
|
|
156
|
+
localhost_name?: DeviceFactString;
|
|
157
|
+
mac_os_x_version?: DeviceFactString;
|
|
158
|
+
mac_uuid?: DeviceFactString;
|
|
159
|
+
manufactured_date?: DeviceFactDate;
|
|
160
|
+
maximum_resident_users?: DeviceFactNumber;
|
|
161
|
+
mb_endpoint_account_id?: DeviceFactString;
|
|
162
|
+
mb_endpoint_agent_version?: DeviceFactString;
|
|
163
|
+
mb_endpoint_machine_id?: DeviceFactString;
|
|
164
|
+
mb_endpoint_nebula_machine_id?: DeviceFactString;
|
|
165
|
+
mb_oneview_installed?: DeviceFactBoolean;
|
|
166
|
+
mdm_last_connected?: DeviceFactDate;
|
|
167
|
+
mdm_update_eligibility?: DeviceFactBoolean;
|
|
168
|
+
meid?: DeviceFactString;
|
|
169
|
+
microsoft_company_portal_version?: DeviceFactString;
|
|
170
|
+
modem_firmware_version?: DeviceFactString;
|
|
171
|
+
online?: DeviceFactBoolean;
|
|
172
|
+
os_platform?: DeviceFactString;
|
|
173
|
+
os_version?: DeviceFactString;
|
|
174
|
+
peer_count?: DeviceFactNumber;
|
|
175
|
+
personal_hotspot_enabled?: DeviceFactBoolean;
|
|
176
|
+
phone_number?: DeviceFactString;
|
|
177
|
+
policy_execution_seconds?: DeviceFactNumber;
|
|
178
|
+
policy_id?: DeviceFactString;
|
|
179
|
+
policy_ids?: DeviceFactList;
|
|
180
|
+
privileged_mdm?: DeviceFactBoolean;
|
|
181
|
+
processor_speed_ghz?: DeviceFactNumber;
|
|
182
|
+
processor_type?: DeviceFactString;
|
|
183
|
+
product_description?: DeviceFactString;
|
|
184
|
+
product_name?: DeviceFactString;
|
|
185
|
+
registration_date?: DeviceFactDate;
|
|
186
|
+
remote_desktop_enabled?: DeviceFactBoolean;
|
|
187
|
+
remote_login_enabled?: DeviceFactBoolean;
|
|
188
|
+
screenconnect_sessionid?: DeviceFactString;
|
|
189
|
+
secure_boot_level?: DeviceFactString;
|
|
190
|
+
serial_number?: DeviceFactString;
|
|
191
|
+
sim_carrier_network?: DeviceFactString;
|
|
192
|
+
smart_failing?: DeviceFactBoolean;
|
|
193
|
+
software_update_device_id?: DeviceFactString;
|
|
194
|
+
splashtop_id?: DeviceFactString;
|
|
195
|
+
splashtop_installation_date?: DeviceFactDate;
|
|
196
|
+
splashtop_version?: DeviceFactString;
|
|
197
|
+
subscriber_carrier_network?: DeviceFactString;
|
|
198
|
+
subscriber_mcc?: DeviceFactString;
|
|
199
|
+
subscriber_mnc?: DeviceFactString;
|
|
200
|
+
system_integrity_protection_enabled?: DeviceFactBoolean;
|
|
201
|
+
system_version?: DeviceFactString;
|
|
202
|
+
teamviewer_client_id?: DeviceFactString;
|
|
203
|
+
third_party_agents?: DeviceFactList;
|
|
204
|
+
third_party_daemons?: DeviceFactList;
|
|
205
|
+
third_party_kernel_extensions?: DeviceFactList;
|
|
206
|
+
time_machine_days_since_last_backup?: DeviceFactNumber;
|
|
207
|
+
time_machine_last_backup_date?: DeviceFactDate;
|
|
208
|
+
timezone?: DeviceFactString;
|
|
209
|
+
tmp_size_mb?: DeviceFactNumber;
|
|
210
|
+
total_disk_space_gb?: DeviceFactNumber;
|
|
211
|
+
total_memory_gb?: DeviceFactNumber;
|
|
212
|
+
udid?: DeviceFactString;
|
|
213
|
+
uptime_days?: DeviceFactNumber;
|
|
214
|
+
used_memory_gb?: DeviceFactNumber;
|
|
215
|
+
user_approved_enrollment?: DeviceFactBoolean;
|
|
216
|
+
voice_roaming_enabled?: DeviceFactBoolean;
|
|
217
|
+
warranty_days_left?: DeviceFactNumber;
|
|
218
|
+
warranty_expiration_date?: DeviceFactDate;
|
|
219
|
+
watchman_monitoring_installed?: DeviceFactBoolean;
|
|
220
|
+
wifi_mac_address?: DeviceFactString;
|
|
221
|
+
xcode_installed?: DeviceFactBoolean;
|
|
222
|
+
}
|
|
223
|
+
export interface DeviceAudit {
|
|
224
|
+
agent_audit_date?: string;
|
|
225
|
+
agentid?: string;
|
|
226
|
+
audit_date?: string;
|
|
227
|
+
facts?: DeviceFacts;
|
|
228
|
+
orgid?: string;
|
|
229
|
+
}
|
|
230
|
+
export type DevicesListResponse = V2PaginatedResponse<DeviceAudit>;
|
|
231
|
+
export type PolicyIcon = 'fa fa-user' | 'fa fa-users' | 'fa fa-trophy' | 'fa fa-university' | 'fa fa-database' | 'fa fa-desktop' | 'fa fa-building-o' | 'fa fa-lock' | 'fa fa-dog' | 'fa fa-mobile' | 'fa fa-wrench' | 'fa fa-user-graduate' | 'fa fa-cog' | 'fa fa-laptop' | 'fa fa-box-open' | 'fa fa-globe-americas';
|
|
232
|
+
export interface RemoteControlSettings {
|
|
233
|
+
enabled?: boolean;
|
|
234
|
+
require_user_permission?: boolean;
|
|
235
|
+
}
|
|
236
|
+
export interface V2Policy {
|
|
237
|
+
policyId?: string;
|
|
238
|
+
orgid?: string;
|
|
239
|
+
name?: string;
|
|
240
|
+
color?: string;
|
|
241
|
+
icon?: string;
|
|
242
|
+
parent?: string;
|
|
243
|
+
[key: string]: unknown;
|
|
244
|
+
}
|
|
245
|
+
export type PoliciesListResponse = V2PaginatedResponse<V2Policy>;
|
|
246
|
+
export interface CreatePolicyRequest {
|
|
247
|
+
name: string;
|
|
248
|
+
color?: string;
|
|
249
|
+
icon?: PolicyIcon;
|
|
250
|
+
parent_policy_id?: string;
|
|
251
|
+
splashtop_settings?: RemoteControlSettings;
|
|
252
|
+
ssh_settings?: RemoteControlSettings;
|
|
253
|
+
}
|
|
254
|
+
export interface InstalledCertificate {
|
|
255
|
+
cert_org_name?: string;
|
|
256
|
+
common_name?: string;
|
|
257
|
+
data?: number[];
|
|
258
|
+
device_uuid?: string;
|
|
259
|
+
is_identity?: boolean;
|
|
260
|
+
issuer_common_name?: string;
|
|
261
|
+
not_after?: string;
|
|
262
|
+
not_before?: string;
|
|
263
|
+
user_id?: string;
|
|
264
|
+
version?: number;
|
|
265
|
+
}
|
|
266
|
+
export type CertsListResponse = V2PaginatedResponse<InstalledCertificate>;
|
|
267
|
+
export interface OrganizationUser {
|
|
268
|
+
addigy_role?: string;
|
|
269
|
+
email?: string;
|
|
270
|
+
name?: string;
|
|
271
|
+
orgid?: string;
|
|
272
|
+
phone?: string;
|
|
273
|
+
policies?: string[];
|
|
274
|
+
}
|
|
275
|
+
export type UsersListResponse = V2PaginatedResponse<OrganizationUser>;
|
|
276
|
+
export interface UserUpdateRequest {
|
|
277
|
+
email: string;
|
|
278
|
+
name: string;
|
|
279
|
+
role: string;
|
|
280
|
+
policies: string[];
|
|
281
|
+
phone?: string;
|
|
282
|
+
}
|
|
283
|
+
export type UserUpdateResponse = Record<string, unknown>;
|
|
284
|
+
export type UserRemoveResponse = Record<string, unknown>;
|
|
285
|
+
export {};
|