addigy 2.8.2 → 2.10.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 (66) hide show
  1. package/README.md +5 -5
  2. package/index.d.ts +29 -80
  3. package/index.js +50 -1153
  4. package/lib/addigy.constants.d.ts +6 -0
  5. package/lib/addigy.constants.js +10 -0
  6. package/lib/addigy.d.ts +44 -0
  7. package/lib/addigy.js +63 -0
  8. package/lib/addigy.utils.d.ts +6 -0
  9. package/lib/addigy.utils.js +12 -0
  10. package/lib/alerts/alert.types.d.ts +5 -0
  11. package/lib/alerts/alert.types.js +9 -0
  12. package/lib/alerts/alerts.d.ts +7 -0
  13. package/lib/alerts/alerts.js +22 -0
  14. package/lib/applications/applications.d.ts +6 -0
  15. package/lib/applications/applications.js +18 -0
  16. package/lib/auth/auth.d.ts +9 -0
  17. package/lib/auth/auth.js +75 -0
  18. package/lib/auth/auth.types.d.ts +5 -0
  19. package/lib/billing/billing.d.ts +5 -0
  20. package/lib/billing/billing.js +36 -0
  21. package/lib/certs/certs.d.ts +5 -0
  22. package/lib/certs/certs.js +43 -0
  23. package/lib/commands/commands.d.ts +7 -0
  24. package/lib/commands/commands.js +31 -0
  25. package/lib/devices/devices.d.ts +11 -0
  26. package/lib/devices/devices.js +55 -0
  27. package/lib/facts/facts.d.ts +8 -0
  28. package/lib/facts/facts.js +66 -0
  29. package/lib/facts/facts.types.d.ts +22 -0
  30. package/lib/facts/facts.types.js +2 -0
  31. package/lib/files/files.d.ts +10 -0
  32. package/lib/files/files.js +63 -0
  33. package/lib/files/files.types.d.ts +26 -0
  34. package/lib/files/files.types.js +2 -0
  35. package/lib/integrations/integrations.d.ts +8 -0
  36. package/lib/integrations/integrations.js +63 -0
  37. package/lib/maintenance/maintenance.d.ts +6 -0
  38. package/lib/maintenance/maintenance.js +18 -0
  39. package/lib/mdm/mdm-configurations.d.ts +7 -0
  40. package/lib/mdm/mdm-configurations.js +41 -0
  41. package/lib/mdm/mdm-policies.d.ts +20 -0
  42. package/lib/mdm/mdm-policies.js +347 -0
  43. package/lib/mdm/mdm-profiles.d.ts +8 -0
  44. package/lib/mdm/mdm-profiles.js +74 -0
  45. package/{types.d.ts → lib/mdm/mdm.types.d.ts} +90 -180
  46. package/lib/mdm/mdm.types.js +2 -0
  47. package/lib/policies/policies.d.ts +11 -0
  48. package/lib/policies/policies.js +78 -0
  49. package/lib/profiles/profiles.d.ts +9 -0
  50. package/lib/profiles/profiles.js +59 -0
  51. package/lib/profiles/profiles.types.d.ts +20 -0
  52. package/lib/profiles/profiles.types.js +2 -0
  53. package/lib/screenconnect/screenconnect.d.ts +5 -0
  54. package/lib/screenconnect/screenconnect.js +39 -0
  55. package/lib/software/software.d.ts +13 -0
  56. package/lib/software/software.js +73 -0
  57. package/lib/software/software.types.d.ts +101 -0
  58. package/lib/software/software.types.js +2 -0
  59. package/lib/types.d.ts +20 -0
  60. package/lib/types.js +2 -0
  61. package/lib/users/user.types.d.ts +5 -0
  62. package/lib/users/user.types.js +9 -0
  63. package/lib/users/users.d.ts +9 -0
  64. package/lib/users/users.js +104 -0
  65. package/package.json +13 -14
  66. /package/{types.js → lib/auth/auth.types.js} +0 -0
package/index.js CHANGED
@@ -13,1157 +13,54 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
16
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.Addigy = void 0;
21
- const got_1 = __importDefault(require("got"));
22
- const uuid_1 = require("uuid");
23
- const plist_1 = __importDefault(require("@expo/plist"));
24
- __exportStar(require("./types"), exports);
25
- var AlertStatus;
26
- (function (AlertStatus) {
27
- AlertStatus["Acknowledged"] = "Acknowledged";
28
- AlertStatus["Resolved"] = "Resolved";
29
- AlertStatus["Unattended"] = "Unattended";
30
- })(AlertStatus || (AlertStatus = {}));
31
- var UserRoles;
32
- (function (UserRoles) {
33
- UserRoles["Owner"] = "power";
34
- UserRoles["Admin"] = "admin";
35
- UserRoles["User"] = "user";
36
- })(UserRoles || (UserRoles = {}));
37
- class Addigy {
38
- constructor(_config) {
39
- this.config = _config;
40
- this.reqHeaders = {
41
- 'content-type': 'application/json',
42
- accept: 'application/json',
43
- 'client-id': this.config.clientId,
44
- 'client-secret': this.config.clientSecret,
45
- };
46
- this.domain = 'https://prod.addigy.com/api';
47
- }
48
- async getPolicyInstructions(policyId, provider = 'ansible-profile') {
49
- try {
50
- let res = await this._addigyRequest(`${this.domain}/policies/instructions?provider=${provider}&policy_id=${policyId}`, { headers: this.reqHeaders });
51
- return JSON.parse(res.body);
52
- }
53
- catch (err) {
54
- throw err;
55
- }
56
- }
57
- async createPolicyInstructions(policyId, instructionId) {
58
- try {
59
- let res = await this._addigyRequest(`${this.domain}/policies/instructions`, {
60
- headers: this.reqHeaders,
61
- method: 'POST',
62
- body: JSON.stringify({
63
- instruction_id: instructionId,
64
- policy_id: policyId,
65
- }),
66
- });
67
- return JSON.parse(res.body);
68
- }
69
- catch (err) {
70
- throw err;
71
- }
72
- }
73
- async deletePolicyInstructions(policyId, instructionId, provider = 'ansible-profile') {
74
- try {
75
- let res = await this._addigyRequest(`${this.domain}/policies/instructions?policy_id=${policyId}&instruction_id=${instructionId}&provider=${provider}`, {
76
- headers: this.reqHeaders,
77
- method: 'DELETE',
78
- });
79
- return JSON.parse(res.body);
80
- }
81
- catch (err) {
82
- throw err;
83
- }
84
- }
85
- async getOnlineDevices() {
86
- try {
87
- let res = await this._addigyRequest(`${this.domain}/devices/online`, {
88
- headers: this.reqHeaders,
89
- });
90
- return JSON.parse(res.body);
91
- }
92
- catch (err) {
93
- throw err;
94
- }
95
- }
96
- async getDevices() {
97
- try {
98
- let res = await this._addigyRequest(`${this.domain}/devices`, {
99
- headers: this.reqHeaders,
100
- });
101
- return JSON.parse(res.body);
102
- }
103
- catch (err) {
104
- throw err;
105
- }
106
- }
107
- async getPolicyDevices(policyId) {
108
- try {
109
- let res = await this._addigyRequest(`${this.domain}/policies/devices?policy_id=${policyId}`, { headers: this.reqHeaders });
110
- return JSON.parse(res.body);
111
- }
112
- catch (err) {
113
- throw err;
114
- }
115
- }
116
- async updateDevicePolicy(policyId, agentId) {
117
- let postBody = {
118
- policy_id: policyId,
119
- agent_id: agentId,
120
- };
121
- try {
122
- let res = await this._addigyRequest(`${this.domain}/policies/devices`, {
123
- headers: {
124
- 'client-id': this.config.clientId,
125
- 'client-secret': this.config.clientSecret,
126
- },
127
- method: 'POST',
128
- form: true,
129
- body: postBody,
130
- });
131
- return JSON.parse(res.body);
132
- }
133
- catch (err) {
134
- throw err;
135
- }
136
- }
137
- async getAlerts(status, page = 1, pageLength = 10) {
138
- let statusUri = '';
139
- if (status) {
140
- statusUri = `&status=${status}`;
141
- }
142
- try {
143
- let res = await this._addigyRequest(`${this.domain}/alerts?page=${page}&per_page=${pageLength}` + statusUri, { headers: this.reqHeaders });
144
- return JSON.parse(res.body);
145
- }
146
- catch (err) {
147
- throw err;
148
- }
149
- }
150
- async getPolicies() {
151
- try {
152
- let res = await this._addigyRequest(`${this.domain}/policies`, {
153
- headers: this.reqHeaders,
154
- });
155
- return JSON.parse(res.body);
156
- }
157
- catch (err) {
158
- throw err;
159
- }
160
- }
161
- async getPolicyDetails(policyId, provider = 'ansible-profile') {
162
- try {
163
- let res = await this._addigyRequest(`${this.domain}/policies/details?provider=${provider}&policy_id=${policyId}`, { headers: this.reqHeaders });
164
- return JSON.parse(res.body);
165
- }
166
- catch (err) {
167
- throw err;
168
- }
169
- }
170
- async createPolicy(name, parentId, icon, color) {
171
- let postBody = {
172
- name: name,
173
- };
174
- if (icon !== undefined) {
175
- postBody['icon'] = icon;
176
- }
177
- if (color !== undefined) {
178
- postBody['color'] = color;
179
- }
180
- if (parentId !== undefined) {
181
- postBody['parent_id'] = parentId;
182
- }
183
- try {
184
- let res = await this._addigyRequest(`${this.domain}/policies`, {
185
- method: 'POST',
186
- form: true,
187
- body: postBody,
188
- });
189
- return JSON.parse(res.body);
190
- }
191
- catch (err) {
192
- throw err;
193
- }
194
- }
195
- async getMaintenance(page = 1, pageLenth = 10) {
196
- try {
197
- let res = await this._addigyRequest(`${this.domain}/maintenance?page=${page}&per_page=${pageLenth}`, { headers: this.reqHeaders });
198
- return JSON.parse(res.body);
199
- }
200
- catch (err) {
201
- throw err;
202
- }
203
- }
204
- async getInstalledApplications() {
205
- try {
206
- let res = await this._addigyRequest(`${this.domain}/applications`, {
207
- headers: this.reqHeaders,
208
- });
209
- return JSON.parse(res.body);
210
- }
211
- catch (err) {
212
- throw err;
213
- }
214
- }
215
- async getProfiles(instructionId) {
216
- let instructionUri = '';
217
- if (instructionId !== undefined) {
218
- instructionUri = `?instruction_id=${instructionId}`;
219
- }
220
- try {
221
- let res = await this._addigyRequest(`${this.domain}/profiles` + instructionUri, {
222
- headers: this.reqHeaders,
223
- });
224
- return JSON.parse(res.body);
225
- }
226
- catch (err) {
227
- throw err;
228
- }
229
- }
230
- async createProfile(name, payloads) {
231
- let postBody = {
232
- name: name,
233
- payloads: payloads,
234
- };
235
- try {
236
- let res = await this._addigyRequest(`${this.domain}/profiles`, {
237
- headers: this.reqHeaders,
238
- method: 'POST',
239
- json: postBody,
240
- });
241
- return JSON.parse(res.body);
242
- }
243
- catch (err) {
244
- throw err;
245
- }
246
- }
247
- async updateProfile(instructionId, payloads) {
248
- let postBody = {
249
- instruction_id: instructionId,
250
- payloads: payloads,
251
- };
252
- try {
253
- let res = await this._addigyRequest(`${this.domain}/profiles`, {
254
- headers: this.reqHeaders,
255
- method: 'PUT',
256
- json: postBody,
257
- });
258
- return JSON.parse(res.body);
259
- }
260
- catch (err) {
261
- throw err;
262
- }
263
- }
264
- async deleteProfile(instructionId) {
265
- let postBody = {
266
- instruction_id: instructionId,
267
- };
268
- try {
269
- let res = await this._addigyRequest(`${this.domain}/profiles`, {
270
- headers: this.reqHeaders,
271
- method: 'DELETE',
272
- json: postBody,
273
- });
274
- return JSON.parse(res.body);
275
- }
276
- catch (err) {
277
- throw err;
278
- }
279
- }
280
- async runCommand(agentIds, command) {
281
- let postBody = {
282
- agent_ids: agentIds,
283
- command: command,
284
- };
285
- try {
286
- let res = await this._addigyRequest(`${this.domain}/devices/commands`, {
287
- headers: this.reqHeaders,
288
- method: 'POST',
289
- json: postBody,
290
- });
291
- return res.body;
292
- }
293
- catch (err) {
294
- throw err;
295
- }
296
- }
297
- async getCommandOutput(actionId, agentId) {
298
- try {
299
- let res = await this._addigyRequest(`${this.domain}/devices/output?action_id=${actionId}&agentid=${agentId}`, { headers: this.reqHeaders });
300
- return JSON.parse(res.body);
301
- }
302
- catch (err) {
303
- throw err;
304
- }
305
- }
306
- async getPublicSoftware() {
307
- try {
308
- let res = await this._addigyRequest(`${this.domain}/catalog/public`, {
309
- headers: this.reqHeaders,
310
- });
311
- return JSON.parse(res.body);
312
- }
313
- catch (err) {
314
- throw err;
315
- }
316
- }
317
- async getCustomSoftware() {
318
- try {
319
- let res = await this._addigyRequest(`${this.domain}/custom-software`, {
320
- headers: this.reqHeaders,
321
- });
322
- return JSON.parse(res.body);
323
- }
324
- catch (err) {
325
- throw err;
326
- }
327
- }
328
- async getCustomSoftwareAllVersions(softwareId) {
329
- try {
330
- let res = await this._addigyRequest(`${this.domain}/custom-software?identifier=${softwareId}`, { headers: this.reqHeaders });
331
- return JSON.parse(res.body);
332
- }
333
- catch (err) {
334
- throw err;
335
- }
336
- }
337
- async getCustomSoftwareSpecificVersion(instructionId) {
338
- try {
339
- let res = await this._addigyRequest(`${this.domain}/custom-software?instructionid=${instructionId}`, { headers: this.reqHeaders });
340
- return JSON.parse(res.body);
341
- }
342
- catch (err) {
343
- throw err;
344
- }
345
- }
346
- async getFileUploadUrl(fileName, contentType) {
347
- const headers = {
348
- 'client-Id': this.config.clientId,
349
- 'client-Secret': this.config.clientSecret,
350
- 'file-name': fileName,
351
- 'content-type': contentType !== null && contentType !== void 0 ? contentType : 'application/octet-stream',
352
- };
353
- try {
354
- let res = await this._addigyRequest(`https://file-manager-prod.addigy.com/api/upload/url`, {
355
- headers: headers,
356
- });
357
- return JSON.parse(res.body);
358
- }
359
- catch (err) {
360
- throw err;
361
- }
362
- }
363
- async uploadFile(uploadUrl, file, contentType) {
364
- const headers = {
365
- 'content-type': contentType !== null && contentType !== void 0 ? contentType : 'application/octet-stream',
366
- };
367
- try {
368
- let res = await this._addigyRequest(`${uploadUrl}`, {
369
- headers: headers,
370
- body: file,
371
- method: 'PUT',
372
- });
373
- return res.body;
374
- }
375
- catch (err) {
376
- throw err;
377
- }
378
- }
379
- async createCustomSoftware(baseIdentifier, version, downloads, installationScript, condition, removeScript, priority = 10) {
380
- let postBody = {
381
- base_identifier: baseIdentifier,
382
- version,
383
- downloads,
384
- installation_script: installationScript,
385
- condition,
386
- remove_script: removeScript,
387
- priority,
388
- };
389
- try {
390
- let res = await this._addigyRequest(`${this.domain}/custom-software`, {
391
- headers: this.reqHeaders,
392
- method: 'POST',
393
- json: postBody,
394
- });
395
- return res.body;
396
- }
397
- catch (err) {
398
- throw err;
399
- }
400
- }
401
- async getUsers(authObject) {
402
- try {
403
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/account', {
404
- headers: {
405
- Cookie: `auth_token=${authObject.authToken};`,
406
- origin: 'https://app-prod.addigy.com',
407
- },
408
- method: 'GET',
409
- });
410
- return JSON.parse(res.body).users;
411
- }
412
- catch (err) {
413
- throw err;
414
- }
415
- }
416
- async createUser(authObject, email, name, policies = [], role, phone) {
417
- let postBody = {
418
- name: name,
419
- email: email,
420
- policies: policies,
421
- role: role,
422
- };
423
- if (phone !== undefined) {
424
- postBody['phone'] = phone;
425
- }
426
- try {
427
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/cloud/users/user', {
428
- headers: {
429
- Cookie: `auth_token=${authObject.authToken};`,
430
- origin: 'https://app-prod.addigy.com',
431
- },
432
- method: 'POST',
433
- json: postBody,
434
- });
435
- return res.body;
436
- }
437
- catch (err) {
438
- throw err;
439
- }
440
- }
441
- async updateUser(authObject, email, name, policies = [], role, phone) {
442
- let postBody = {
443
- id: '',
444
- uid: '',
445
- name: name,
446
- authanvil_tfa_username: '',
447
- email: email,
448
- phone: '',
449
- role: role,
450
- addigy_role: '',
451
- policies: policies,
452
- };
453
- if (phone !== undefined) {
454
- postBody['phone'] = phone;
455
- }
456
- try {
457
- let users = await this.getUsers(authObject);
458
- let user = users.find((element) => element.email === email);
459
- if (!user)
460
- throw new Error(`No user with email ${email} exists.`);
461
- postBody['id'] = user.id;
462
- let res = await this._addigyRequest(`https://app-prod.addigy.com/api/cloud/users/user/${user.id}?user_email=${encodeURIComponent(user.email)}`, {
463
- headers: {
464
- Cookie: `auth_token=${authObject.authToken};`,
465
- origin: 'https://app-prod.addigy.com',
466
- },
467
- method: 'PUT',
468
- json: postBody,
469
- });
470
- return res.body;
471
- }
472
- catch (err) {
473
- throw err;
474
- }
475
- }
476
- async deleteUser(authObject, email) {
477
- try {
478
- let users = await this.getUsers(authObject);
479
- let user = users.find((element) => element.email === email);
480
- if (!user)
481
- throw new Error(`No user with email ${email} exists.`);
482
- let res = await this._addigyRequest(`https://app-prod.addigy.com/api/cloud/users/user/${user.id}?user_email=${encodeURIComponent(email)}`, {
483
- headers: {
484
- Cookie: `auth_token=${authObject.authToken};`,
485
- origin: 'https://app-prod.addigy.com',
486
- },
487
- method: 'DELETE',
488
- });
489
- return JSON.parse(res.body);
490
- }
491
- catch (err) {
492
- throw err;
493
- }
494
- }
495
- async getBillingData(authObject) {
496
- try {
497
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/billing/get_chargeover_billing_data', {
498
- headers: {
499
- Cookie: `auth_token=${authObject.authToken};`,
500
- origin: 'https://app-prod.addigy.com',
501
- email: authObject.emailAddress,
502
- orgid: authObject.orgId,
503
- },
504
- method: 'GET',
505
- });
506
- return JSON.parse(res.body);
507
- }
508
- catch (err) {
509
- throw err;
510
- }
511
- }
512
- async getApiIntegrations(authObject) {
513
- try {
514
- let res = await this._addigyRequest('https://prod.addigy.com/accounts/api/keys/get/', {
515
- headers: {
516
- Cookie: `auth_token=${authObject.authToken};`,
517
- origin: 'https://app-prod.addigy.com',
518
- email: authObject.emailAddress,
519
- orgid: authObject.orgId,
520
- },
521
- method: 'GET',
522
- });
523
- return JSON.parse(res.body);
524
- }
525
- catch (err) {
526
- throw err;
527
- }
528
- }
529
- async createApiIntegration(authObject, name) {
530
- let postBody = {
531
- name,
532
- };
533
- try {
534
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/integrations/keys', {
535
- headers: {
536
- Cookie: `auth_token=${authObject.authToken};`,
537
- origin: 'https://app-prod.addigy.com',
538
- },
539
- method: 'POST',
540
- json: postBody,
541
- });
542
- return JSON.parse(res.body);
543
- }
544
- catch (err) {
545
- throw err;
546
- }
547
- }
548
- async deleteApiIntegration(authObject, objectId) {
549
- try {
550
- let res = await this._addigyRequest(`https://app-prod.addigy.com/api/integrations/keys?id=${objectId}`, {
551
- headers: {
552
- Cookie: `auth_token=${authObject.authToken};`,
553
- origin: 'https://app-prod.addigy.com',
554
- },
555
- method: 'DELETE',
556
- });
557
- return JSON.parse(res.body);
558
- }
559
- catch (err) {
560
- throw err;
561
- }
562
- }
563
- async getScreenconnectLinks(authObject, sessionId, agentId) {
564
- agentId = agentId ? agentId : sessionId;
565
- let postBody = {
566
- sessionId: sessionId,
567
- agentid: agentId,
568
- };
569
- try {
570
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/devices/screenconnect/links', {
571
- headers: {
572
- Cookie: `auth_token=${authObject.authToken};`,
573
- origin: 'https://app-prod.addigy.com',
574
- email: authObject.emailAddress,
575
- orgid: authObject.orgId,
576
- },
577
- method: 'POST',
578
- json: postBody,
579
- });
580
- return JSON.parse(res.body);
581
- }
582
- catch (err) {
583
- throw err;
584
- }
585
- }
586
- async createKernelExtensionPolicy(authObject, name, allowOverrides, kernalExtensions) {
587
- var _a, _b;
588
- let payloadUUID = (0, uuid_1.v4)();
589
- let groupUUID = (0, uuid_1.v4)();
590
- const payload = {
591
- addigy_payload_type: 'com.addigy.syspolicy.kernel-extension-policy.com.apple.syspolicy.kernel-extension-policy',
592
- payload_type: 'com.apple.syspolicy.kernel-extension-policy',
593
- payload_version: 1,
594
- payload_identifier: `com.addigy.syspolicy.kernel-extension-policy.com.apple.syspolicy.kernel-extension-policy.${groupUUID}`,
595
- payload_uuid: payloadUUID,
596
- payload_group_id: groupUUID,
597
- payload_enabled: true,
598
- payload_display_name: name,
599
- allow_user_overrides: allowOverrides,
600
- allowed_kernel_extensions: {},
601
- allowed_team_identifiers: [],
602
- };
603
- if ((_a = kernalExtensions.allowedKernalExtensions) === null || _a === void 0 ? void 0 : _a.length) {
604
- kernalExtensions.allowedKernalExtensions.forEach((e) => {
605
- payload.allowed_kernel_extensions[e.teamIdentifier] = e.bundleIdentifiers;
606
- });
607
- }
608
- if ((_b = kernalExtensions.allowedTeamIdentifiers) === null || _b === void 0 ? void 0 : _b.length) {
609
- kernalExtensions.allowedTeamIdentifiers.forEach((e) => {
610
- payload.allowed_team_identifiers.push(e);
611
- });
612
- }
613
- try {
614
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
615
- headers: {
616
- Cookie: `auth_token=${authObject.authToken};`,
617
- origin: 'https://app-prod.addigy.com',
618
- },
619
- method: 'POST',
620
- json: { payloads: [payload] },
621
- });
622
- return JSON.parse(res.body);
623
- }
624
- catch (err) {
625
- throw err;
626
- }
627
- }
628
- async createSystemExtensionPolicy(authObject, name, allowOverrides, systemExtensions) {
629
- var _a, _b, _c;
630
- const groupUUID = (0, uuid_1.v4)();
631
- const payload = {
632
- addigy_payload_type: 'com.addigy.syspolicy.system-extension-policy.com.apple.system-extension-policy',
633
- payload_type: 'com.apple.system-extension-policy',
634
- payload_version: 1,
635
- payload_identifier: `com.addigy.syspolicy.system-extension-policy.com.apple.system-extension-policy.${groupUUID}`,
636
- payload_uuid: (0, uuid_1.v4)(),
637
- payload_group_id: groupUUID,
638
- payload_enabled: true,
639
- payload_display_name: name,
640
- allowed_system_extensions: {},
641
- allowed_system_extensions_types: {},
642
- allowed_team_identifiers: [],
643
- allow_user_overrides: allowOverrides,
644
- };
645
- if ((_a = systemExtensions.allowedSystemExtensions) === null || _a === void 0 ? void 0 : _a.length) {
646
- systemExtensions.allowedSystemExtensions.forEach((e) => {
647
- payload.allowed_system_extensions[e.teamIdentifier] = e.bundleIdentifiers;
648
- });
649
- }
650
- if ((_b = systemExtensions.allowedSystemExtensionTypes) === null || _b === void 0 ? void 0 : _b.length) {
651
- systemExtensions.allowedSystemExtensionTypes.forEach((e) => {
652
- payload.allowed_system_extensions_types[e.teamIdentifier] = e.bundleIdentifiers;
653
- });
654
- }
655
- if ((_c = systemExtensions.allowedTeamIdentifiers) === null || _c === void 0 ? void 0 : _c.length) {
656
- systemExtensions.allowedTeamIdentifiers.forEach((e) => {
657
- payload.allowed_team_identifiers.push(e);
658
- });
659
- }
660
- try {
661
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
662
- headers: {
663
- Cookie: `auth_token=${authObject.authToken};`,
664
- origin: 'https://app-prod.addigy.com',
665
- },
666
- method: 'POST',
667
- json: { payloads: [payload] },
668
- });
669
- return JSON.parse(res.body);
670
- }
671
- catch (err) {
672
- throw err;
673
- }
674
- }
675
- async createNotificationSettingsPolicy(authObject, name, notificationSettings) {
676
- const groupUUID = (0, uuid_1.v4)();
677
- const payload = {
678
- addigy_payload_type: 'com.addigy.notifications.com.apple.notificationsettings',
679
- payload_type: 'com.apple.notificationsettings',
680
- payload_version: 1,
681
- payload_identifier: `com.addigy.notifications.com.apple.notificationsettings.${groupUUID}`,
682
- payload_uuid: (0, uuid_1.v4)(),
683
- payload_group_id: groupUUID,
684
- payload_display_name: name,
685
- notification_settings: notificationSettings,
686
- };
687
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
688
- headers: {
689
- Cookie: `auth_token=${authObject.authToken};`,
690
- origin: 'https://app-prod.addigy.com',
691
- },
692
- method: 'POST',
693
- json: { payloads: [payload] },
694
- });
695
- return JSON.parse(res.body);
696
- }
697
- async createCustomProfile(authObject, name, customProfileText, supportedOsVersions, payloadScope = 'System', is_profile_signed = false) {
698
- const groupUUID = (0, uuid_1.v4)();
699
- const customProfileJson = plist_1.default.parse(customProfileText);
700
- const updateCustomProfileJson = Object.entries(customProfileJson).reduce((acc, [key, value]) => {
701
- acc[this.toSnakeCase(key)] = value;
702
- return acc;
703
- }, {});
704
- const customProfileBase64 = Buffer.from(customProfileText).toString('base64');
705
- const payload = {
706
- addigy_payload_type: 'com.addigy.custom.mdm.payload',
707
- payload_type: 'custom',
708
- payload_version: 1,
709
- payload_identifier: `com.addigy.custom.mdm.payload.${groupUUID}`,
710
- payload_uuid: `custom-profile-${(0, uuid_1.v4)()}`,
711
- payload_group_id: groupUUID,
712
- payload_display_name: name,
713
- is_profile_signed,
714
- profile_json_data: updateCustomProfileJson,
715
- decoded_profile_content: customProfileText,
716
- custom_profile_content: customProfileBase64,
717
- supported_os_versions: supportedOsVersions,
718
- payload_scope: payloadScope,
719
- };
720
- try {
721
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
722
- headers: {
723
- Cookie: `auth_token=${authObject.authToken};`,
724
- origin: 'https://app-prod.addigy.com',
725
- },
726
- method: 'POST',
727
- json: { payloads: [payload] },
728
- });
729
- return JSON.parse(res.body);
730
- }
731
- catch (err) {
732
- throw err;
733
- }
734
- }
735
- async createMdmProfile(authObject, mdmProfile) {
736
- try {
737
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
738
- headers: {
739
- Cookie: `auth_token=${authObject.authToken};`,
740
- origin: 'https://app-prod.addigy.com',
741
- },
742
- method: 'POST',
743
- json: { payloads: mdmProfile },
744
- });
745
- return JSON.parse(res.body);
746
- }
747
- catch (err) {
748
- throw err;
749
- }
750
- }
751
- async createServiceManagementPolicy(authObject, name, rules, priority = 9) {
752
- const groupUUID = (0, uuid_1.v4)();
753
- const payload = {
754
- addigy_payload_type: 'com.addigy.servicemanagement.com.apple.servicemanagement',
755
- addigy_payload_version: 0,
756
- has_manifest: false,
757
- payload_display_name: name,
758
- payload_enabled: false,
759
- payload_group_id: groupUUID,
760
- payload_identifier: `com.addigy.servicemanagement.com.apple.servicemanagement.${groupUUID}`,
761
- payload_priority: priority,
762
- payload_type: 'com.apple.servicemanagement',
763
- payload_uuid: (0, uuid_1.v4)(),
764
- payload_version: 1,
765
- policy_restricted: false,
766
- requires_device_supervision: false,
767
- requires_mdm_profile_approved: false,
768
- supported_os_versions: null,
769
- rules,
770
- };
771
- try {
772
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
773
- headers: {
774
- Cookie: `auth_token=${authObject.authToken};`,
775
- origin: 'https://app-prod.addigy.com',
776
- },
777
- method: 'POST',
778
- json: { payloads: [payload] },
779
- });
780
- return JSON.parse(res.body);
781
- }
782
- catch (err) {
783
- throw err;
784
- }
785
- }
786
- async createWebContentFilterPolicy(authObject, payloadName, webContentPayload, priority = 9) {
787
- const groupUUID = (0, uuid_1.v4)();
788
- const payload = {
789
- addigy_payload_type: 'com.addigy.webcontent-filter.com.apple.webcontent-filter',
790
- addigy_payload_version: 2,
791
- auto_filter_enabled: null,
792
- blacklisted_urls: null,
793
- content_filter_uuid: null,
794
- filter_browsers: null,
795
- filter_data_provider_bundle_identifier: null,
796
- filter_data_provider_designated_requirement: null,
797
- filter_packet_provider_bundle_identifier: null,
798
- filter_packet_provider_designated_requirement: null,
799
- filter_packets: null,
800
- filter_sockets: true,
801
- filter_type: 'Plugin',
802
- has_manifest: false,
803
- organization: null,
804
- password: null,
805
- payload_display_name: payloadName,
806
- payload_enabled: true,
807
- payload_group_id: groupUUID,
808
- payload_identifier: `com.addigy.webcontent-filter.com.apple.webcontent-filter.${groupUUID}`,
809
- payload_priority: priority,
810
- payload_type: 'com.apple.webcontent-filter',
811
- payload_uuid: (0, uuid_1.v4)(),
812
- payload_version: 1,
813
- permitted_urls: null,
814
- policy_restricted: false,
815
- requires_device_supervision: false,
816
- requires_mdm_profile_approved: false,
817
- server_address: null,
818
- supported_os_versions: null,
819
- user_name: null,
820
- vendor_config: null,
821
- white_listed_bookmarks: null,
822
- ...webContentPayload,
823
- };
824
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
825
- headers: {
826
- Cookie: `auth_token=${authObject.authToken};`,
827
- origin: 'https://app-prod.addigy.com',
828
- },
829
- method: 'POST',
830
- json: { payloads: [payload] },
831
- });
832
- return JSON.parse(res.body);
833
- }
834
- async createFilevaultPolicy(authObject, name, filevault, payloadPriority = 1) {
835
- const groupUUID = (0, uuid_1.v4)();
836
- const encryptCertPayloadUUID = (0, uuid_1.v4)();
837
- const basePayload = {
838
- payload_display_name: name,
839
- payload_version: 1,
840
- payload_group_id: groupUUID,
841
- addigy_payload_version: 0,
842
- payload_priority: payloadPriority,
843
- };
844
- const payloads = [
845
- {
846
- ...basePayload,
847
- payload_type: 'com.apple.MCX.FileVault2',
848
- addigy_payload_type: 'com.addigy.securityAndPrivacy.com.apple.MCX.FileVault2',
849
- payload_identifier: `com.addigy.securityAndPrivacy.com.apple.MCX.FileVault2.${groupUUID}`,
850
- payload_uuid: (0, uuid_1.v4)(),
851
- enable: filevault.enable ? 'On' : 'Off',
852
- defer: filevault.defer,
853
- use_recovery_key: true,
854
- show_recovery_key: filevault.showRecoveryKey === undefined ? null : filevault.showRecoveryKey,
855
- defer_dont_ask_at_user_logout: filevault.deferDontAskAtUserLogout === undefined
856
- ? null
857
- : filevault.deferDontAskAtUserLogout,
858
- defer_force_at_user_login_max_bypass_attempts: filevault.deferForceAtUserLoginMaxBypassAttempts === undefined
859
- ? null
860
- : filevault.deferForceAtUserLoginMaxBypassAttempts,
861
- },
862
- {
863
- ...basePayload,
864
- payload_type: 'com.apple.MCX',
865
- addigy_payload_type: 'com.addigy.securityAndPrivacy.com.apple.MCX',
866
- payload_identifier: `com.addigy.securityAndPrivacy.com.apple.MCX.${groupUUID} `,
867
- payload_uuid: (0, uuid_1.v4)(),
868
- destroy_fv_key_on_standby: filevault.destroyFvKeyOnStandby === undefined
869
- ? null
870
- : filevault.destroyFvKeyOnStandby,
871
- dont_allow_fde_disable: true,
872
- },
873
- ];
874
- if (filevault.escrowRecoveryKey)
875
- payloads.push({
876
- ...basePayload,
877
- addigy_payload_type: 'com.addigy.securityAndPrivacy.com.apple.security.pkcs1',
878
- payload_type: 'com.apple.security.pkcs1',
879
- payload_identifier: `com.addigy.securityAndPrivacy.com.apple.security.pkcs1.${groupUUID}`,
880
- payload_uuid: (0, uuid_1.v4)(),
881
- is_from_security_profile: true,
882
- }, {
883
- ...basePayload,
884
- addigy_payload_type: 'com.addigy.securityAndPrivacy.com.apple.security.FDERecoveryKeyEscrow',
885
- payload_type: 'com.apple.security.FDERecoveryKeyEscrow',
886
- payload_identifier: `com.addigy.securityAndPrivacy.com.apple.security.FDERecoveryKeyEscrow.${groupUUID}`,
887
- payload_uuid: (0, uuid_1.v4)(),
888
- encrypt_cert_payload_uuid: encryptCertPayloadUUID,
889
- location: 'Key will be escrowed to an Addigy secure database.',
890
- }, {
891
- ...basePayload,
892
- addigy_payload_type: 'com.addigy.securityAndPrivacy.com.apple.security.FDERecoveryRedirect',
893
- payload_type: 'com.apple.security.FDERecoveryRedirect',
894
- payload_identifier: `com.addigy.securityAndPrivacy.com.apple.security.FDERecoveryRedirect.${groupUUID}`,
895
- payload_uuid: (0, uuid_1.v4)(),
896
- encrypt_cert_payload_uuid: encryptCertPayloadUUID,
897
- redirect_url: '',
898
- });
899
- try {
900
- let res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
901
- headers: {
902
- Cookie: `auth_token=${authObject.authToken};`,
903
- origin: 'https://app-prod.addigy.com',
904
- },
905
- method: 'POST',
906
- json: { payloads },
907
- });
908
- return JSON.parse(res.body);
909
- }
910
- catch (err) {
911
- throw err;
912
- }
913
- }
914
- async createPPPCPolicy(authObject, name, pppcPolicy) {
915
- const groupUUID = (0, uuid_1.v4)();
916
- const payload = {
917
- addigy_payload_type: 'com.addigy.TCC.configuration-profile-policy.com.apple.TCC.configuration-profile-policy',
918
- payload_type: 'com.apple.TCC.configuration-profile-policy',
919
- payload_display_name: name,
920
- payload_group_id: groupUUID,
921
- payload_version: 1,
922
- payload_identifier: `com.addigy.TCC.configuration-profile-policy.com.apple.TCC.configuration-profile-policy.${groupUUID}`,
923
- payload_uuid: (0, uuid_1.v4)(),
924
- services: {
925
- accessibility: [],
926
- address_book: [],
927
- apple_events: [],
928
- calendar: [],
929
- camera: [],
930
- microphone: [],
931
- photos: [],
932
- post_event: [],
933
- reminders: [],
934
- system_policy_all_files: [],
935
- system_policy_sys_admin_files: [],
936
- file_provider_presence: [],
937
- listen_event: [],
938
- media_library: [],
939
- screen_capture: [],
940
- speech_recognition: [],
941
- system_policy_desktop_folder: [],
942
- system_policy_documents_folder: [],
943
- system_policy_downloads_folder: [],
944
- system_policy_network_volumes: [],
945
- system_policy_removable_volumes: [],
946
- },
947
- };
948
- pppcPolicy.forEach((pppc) => {
949
- pppc.services.forEach((e) => {
950
- var _a;
951
- const service = {
952
- allowed: false,
953
- authorization: '',
954
- code_requirement: pppc.codeRequirement,
955
- comment: '',
956
- identifier_type: e.identifierType,
957
- identifier: pppc.identifier,
958
- static_code: (_a = e.staticCode) !== null && _a !== void 0 ? _a : false,
959
- predefined_app: null,
960
- manual_selection: true,
961
- rowId: (0, uuid_1.v4)(),
962
- };
963
- if (e.service === 'screen_capture' && e.authorization) {
964
- service.authorization = e.authorization;
965
- }
966
- if (e.service !== 'screen_capture')
967
- service.allowed = e.allowed;
968
- if (e.service === 'apple_events') {
969
- service.ae_receiver_identifier = e.aeReceiverIdentifier;
970
- service.ae_receiver_identifier_type = e.aeReceiverIdentifierType;
971
- service.ae_receiver_code_requirement = e.aeReceiverCodeRequirement;
972
- service.ae_receiver_predefined_app = null;
973
- service.ae_receiver_manual_selection = true;
974
- }
975
- payload.services[e.service].push(service);
976
- });
977
- });
978
- const res = await this._addigyRequest('https://app-prod.addigy.com/api/mdm/user/profiles/configurations', {
979
- headers: {
980
- Cookie: `auth_token=${authObject.authToken};`,
981
- origin: 'https://app-prod.addigy.com',
982
- },
983
- method: 'POST',
984
- json: { payloads: [payload] },
985
- });
986
- return JSON.parse(res.body);
987
- }
988
- async createCustomFact(authObject, name, script, scriptType) {
989
- const shebang = {
990
- bash: '#!/bin/bash',
991
- python: '#!/usr/bin/python',
992
- zsh: '#!/bin/zsh',
993
- };
994
- const body = {
995
- name,
996
- os_architectures: {
997
- linux_arm: {
998
- is_supported: false,
999
- language: '',
1000
- shebang: '',
1001
- script: '',
1002
- },
1003
- darwin_amd64: {
1004
- is_supported: true,
1005
- language: scriptType,
1006
- shebang: shebang[scriptType],
1007
- script,
1008
- },
1009
- },
1010
- return_type: 'string',
1011
- };
1012
- const res = await this._addigyRequest('https://app-prod.addigy.com/api/services/facts/custom', {
1013
- headers: {
1014
- Cookie: `auth_token=${authObject.authToken};`,
1015
- origin: 'https://app-prod.addigy.com',
1016
- },
1017
- method: 'POST',
1018
- json: body,
1019
- });
1020
- return JSON.parse(res.body);
1021
- }
1022
- async getCustomFacts(authObject) {
1023
- var _a;
1024
- const res = await this._addigyRequest('https://app-prod.addigy.com/api/services/facts/custom', {
1025
- headers: {
1026
- Cookie: `auth_token=${authObject.authToken};`,
1027
- origin: 'https://app-prod.addigy.com',
1028
- },
1029
- method: 'GET',
1030
- });
1031
- const results = JSON.parse(res.body);
1032
- return (_a = results.custom_facts) !== null && _a !== void 0 ? _a : [];
1033
- }
1034
- async getCustomFactByName(authObject, name) {
1035
- const facts = await this.getCustomFacts(authObject);
1036
- return facts.find((e) => e.name === name);
1037
- }
1038
- async getMdmConfigurations(authObject) {
1039
- var _a;
1040
- try {
1041
- let res = await this._addigyRequest('https://app.addigy.com/api/v2/mdm/configurations/profiles', {
1042
- headers: {
1043
- Cookie: `auth_token=${authObject.authToken};`,
1044
- origin: 'https://app-prod.addigy.com',
1045
- },
1046
- method: 'GET',
1047
- });
1048
- return (_a = JSON.parse(res.body)) === null || _a === void 0 ? void 0 : _a.payloads;
1049
- }
1050
- catch (err) {
1051
- throw err;
1052
- }
1053
- }
1054
- async getMdmConfigurationByName(authObject, name) {
1055
- try {
1056
- const mdmConfigurations = await this.getMdmConfigurations(authObject);
1057
- return mdmConfigurations.find((e) => e.payload_display_name === name);
1058
- }
1059
- catch (err) {
1060
- throw err;
1061
- }
1062
- }
1063
- async getFileVaultKeys(authObject) {
1064
- try {
1065
- let res = await this._addigyRequest('https://prod.addigy.com/get_org_filevault_keys/', {
1066
- headers: {
1067
- Cookie: `auth_token=${authObject.authToken};`,
1068
- origin: 'https://app-prod.addigy.com',
1069
- },
1070
- method: 'GET',
1071
- });
1072
- return JSON.parse(res.body);
1073
- }
1074
- catch (err) {
1075
- throw err;
1076
- }
1077
- }
1078
- toSnakeCase(text) {
1079
- return text
1080
- .replace(/([^\p{L}\d]+|(?<=\p{L})(?=\d)|(?<=\d)(?=\p{L})|(?<=[\p{Ll}\d])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})|(?<=[\p{L}\d])(?=\p{Lu}\p{Ll}))/gu, '_')
1081
- .toLowerCase();
1082
- }
1083
- async getApnsCerts(authObject, next, previous) {
1084
- let url = 'https://app-prod.addigy.com/api/apn/user/apn/list';
1085
- if (next) {
1086
- url = `${url}?next=${next}`;
1087
- }
1088
- if (previous) {
1089
- url = `${url}?previous=${previous}`;
1090
- }
1091
- try {
1092
- let res = await this._addigyRequest(url, {
1093
- headers: {
1094
- Cookie: `auth_token=${authObject.authToken};`,
1095
- origin: 'https://app-prod.addigy.com',
1096
- email: authObject.emailAddress,
1097
- orgid: authObject.orgId,
1098
- },
1099
- method: 'GET',
1100
- });
1101
- return JSON.parse(res.body).items;
1102
- }
1103
- catch (err) {
1104
- throw err;
1105
- }
1106
- }
1107
- async getAuthObject() {
1108
- let postBody = {
1109
- username: this.config.adminUsername,
1110
- password: this.config.adminPassword,
1111
- };
1112
- try {
1113
- if (!this.config.adminUsername || !this.config.adminPassword)
1114
- throw new Error("The function you are using hits Addigy's internal API, but no username or password was provided in the constructor. Please fill out the adminUsername and adminPassword parameters.");
1115
- let res = await this._addigyRequest('https://prod.addigy.com/signin/', {
1116
- method: 'POST',
1117
- json: postBody,
1118
- });
1119
- let authObject = {
1120
- orgId: res.body.orgid,
1121
- authToken: res.body.authtoken,
1122
- emailAddress: res.body.email,
1123
- };
1124
- return authObject;
1125
- }
1126
- catch (err) {
1127
- throw err;
1128
- }
1129
- }
1130
- async getImpersonationAuthObject(authObject, orgId) {
1131
- let postBody = {
1132
- parent_orgid: authObject.orgId,
1133
- child_orgid: orgId,
1134
- user_email: authObject.emailAddress,
1135
- };
1136
- try {
1137
- let res = await this._addigyRequest('https://app.addigy.com/api/impersonation', {
1138
- headers: {
1139
- Cookie: `prod_auth_token=${authObject.authToken};`,
1140
- origin: 'https://app.addigy.com',
1141
- },
1142
- method: 'POST',
1143
- json: postBody,
1144
- });
1145
- let impersonationAuthObject = {
1146
- orgId: orgId,
1147
- authToken: res.headers['set-cookie']
1148
- .find((e) => e.includes('prod_auth_token') && !e.includes('original_auth_token'))
1149
- .split('auth_token=')[1]
1150
- .split(';')[0],
1151
- emailAddress: authObject.emailAddress,
1152
- };
1153
- return impersonationAuthObject;
1154
- }
1155
- catch (err) {
1156
- throw err;
1157
- }
1158
- }
1159
- async _addigyRequest(url, options) {
1160
- try {
1161
- let res = await (0, got_1.default)(url, options);
1162
- return res;
1163
- }
1164
- catch (err) {
1165
- throw err;
1166
- }
1167
- }
1168
- }
1169
- exports.Addigy = Addigy;
17
+ exports.Users = exports.Software = exports.ScreenConnect = exports.Profiles = exports.Policies = exports.MdmProfiles = exports.MdmPolicies = exports.MdmConfigurations = exports.Maintenance = exports.Integrations = exports.Files = exports.Facts = exports.Devices = exports.Commands = exports.Certs = exports.Billing = exports.Applications = exports.Auth = exports.Alerts = exports.Addigy = void 0;
18
+ __exportStar(require("./lib/types"), exports);
19
+ var addigy_1 = require("./lib/addigy");
20
+ Object.defineProperty(exports, "Addigy", { enumerable: true, get: function () { return addigy_1.Addigy; } });
21
+ var alerts_1 = require("./lib/alerts/alerts");
22
+ Object.defineProperty(exports, "Alerts", { enumerable: true, get: function () { return alerts_1.Alerts; } });
23
+ __exportStar(require("./lib/alerts/alert.types"), exports);
24
+ var auth_1 = require("./lib/auth/auth");
25
+ Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
26
+ __exportStar(require("./lib/auth/auth.types"), exports);
27
+ var applications_1 = require("./lib/applications/applications");
28
+ Object.defineProperty(exports, "Applications", { enumerable: true, get: function () { return applications_1.Applications; } });
29
+ var billing_1 = require("./lib/billing/billing");
30
+ Object.defineProperty(exports, "Billing", { enumerable: true, get: function () { return billing_1.Billing; } });
31
+ var certs_1 = require("./lib/certs/certs");
32
+ Object.defineProperty(exports, "Certs", { enumerable: true, get: function () { return certs_1.Certs; } });
33
+ var commands_1 = require("./lib/commands/commands");
34
+ Object.defineProperty(exports, "Commands", { enumerable: true, get: function () { return commands_1.Commands; } });
35
+ var devices_1 = require("./lib/devices/devices");
36
+ Object.defineProperty(exports, "Devices", { enumerable: true, get: function () { return devices_1.Devices; } });
37
+ var facts_1 = require("./lib/facts/facts");
38
+ Object.defineProperty(exports, "Facts", { enumerable: true, get: function () { return facts_1.Facts; } });
39
+ __exportStar(require("./lib/facts/facts.types"), exports);
40
+ var files_1 = require("./lib/files/files");
41
+ Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
42
+ __exportStar(require("./lib/files/files.types"), exports);
43
+ var integrations_1 = require("./lib/integrations/integrations");
44
+ Object.defineProperty(exports, "Integrations", { enumerable: true, get: function () { return integrations_1.Integrations; } });
45
+ var maintenance_1 = require("./lib/maintenance/maintenance");
46
+ Object.defineProperty(exports, "Maintenance", { enumerable: true, get: function () { return maintenance_1.Maintenance; } });
47
+ var mdm_configurations_1 = require("./lib/mdm/mdm-configurations");
48
+ Object.defineProperty(exports, "MdmConfigurations", { enumerable: true, get: function () { return mdm_configurations_1.MdmConfigurations; } });
49
+ var mdm_policies_1 = require("./lib/mdm/mdm-policies");
50
+ Object.defineProperty(exports, "MdmPolicies", { enumerable: true, get: function () { return mdm_policies_1.MdmPolicies; } });
51
+ var mdm_profiles_1 = require("./lib/mdm/mdm-profiles");
52
+ Object.defineProperty(exports, "MdmProfiles", { enumerable: true, get: function () { return mdm_profiles_1.MdmProfiles; } });
53
+ __exportStar(require("./lib/mdm/mdm.types"), exports);
54
+ var policies_1 = require("./lib/policies/policies");
55
+ Object.defineProperty(exports, "Policies", { enumerable: true, get: function () { return policies_1.Policies; } });
56
+ var profiles_1 = require("./lib/profiles/profiles");
57
+ Object.defineProperty(exports, "Profiles", { enumerable: true, get: function () { return profiles_1.Profiles; } });
58
+ __exportStar(require("./lib/profiles/profiles.types"), exports);
59
+ var screenconnect_1 = require("./lib/screenconnect/screenconnect");
60
+ Object.defineProperty(exports, "ScreenConnect", { enumerable: true, get: function () { return screenconnect_1.ScreenConnect; } });
61
+ var software_1 = require("./lib/software/software");
62
+ Object.defineProperty(exports, "Software", { enumerable: true, get: function () { return software_1.Software; } });
63
+ __exportStar(require("./lib/software/software.types"), exports);
64
+ var users_1 = require("./lib/users/users");
65
+ Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
66
+ __exportStar(require("./lib/users/user.types"), exports);