addigy 2.9.0 → 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 -81
  3. package/index.js +50 -1164
  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 -281
  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/README.md CHANGED
@@ -141,14 +141,14 @@ await addigy.getUsers(impersonationObject)
141
141
 
142
142
  **createKernelExtensionPolicy()**
143
143
 
144
- This method allows you to create a Kernal Extension Policy. This functions requires 4 parameters. The authObject, name of the Policy, allowing overrides, and the kernalExtension object.
144
+ This method allows you to create a Kernel Extension Policy. This functions requires 4 parameters. The authObject, name of the Policy, allowing overrides, and the kernelExtension object.
145
145
 
146
- The kernalExtensions object contains two arrays. allowedTeamIdentifers to pass a kernal extension's Team Identifier for approval or the allowedKernalExtensions to pass the Team Identifier and Bundle Identifiers.
146
+ The kernelExtensions object contains two arrays. allowedTeamIdentifers to pass a kernel extension's Team Identifier for approval or the allowedKernelExtensions to pass the Team Identifier and Bundle Identifiers.
147
147
 
148
148
  Example:
149
149
 
150
150
  ```javascript
151
- const kernalExtensions = { allowedKernalExtensions: [
151
+ const kernelExtensions = { allowedKernelExtensions: [
152
152
  {teamIdentifier: '2JJNSDF9', bundleIdentifiers: ['com.bundle.com'
153
153
  ]
154
154
  }
@@ -157,7 +157,7 @@ const kernalExtensions = { allowedKernalExtensions: [
157
157
  ]
158
158
  }
159
159
 
160
- await addigy.createKernelExtensionPolicy( authObject, 'Name', true, kernalExtensions)
160
+ await addigy.createKernelExtensionPolicy( authObject, 'Name', true, kernelExtensions)
161
161
 
162
162
  ```
163
163
 
@@ -211,4 +211,4 @@ await addigy.createPPPCPolicy(authObject, 'Name', pppcPolicy)
211
211
 
212
212
 
213
213
 
214
- Have fun.
214
+ Have fun.
package/index.d.ts CHANGED
@@ -1,81 +1,29 @@
1
- import { CreateSoftware, CreateWebContentFilterPayload, CustomFact, Extension, FilevaultRequest, IAddigyConfig, IAddigyInternalAuthObject, MdmConfigurationPayload, NotificationSettings, PPPCInput, ServiceManagementPayloadRule, Software, SupportedOsVersions } from './types';
2
- export * from './types';
3
- declare enum AlertStatus {
4
- Acknowledged = "Acknowledged",
5
- Resolved = "Resolved",
6
- Unattended = "Unattended"
7
- }
8
- declare enum UserRoles {
9
- Owner = "power",
10
- Admin = "admin",
11
- User = "user"
12
- }
13
- export declare class Addigy {
14
- config: IAddigyConfig;
15
- domain: string;
16
- reqHeaders: any;
17
- constructor(_config: IAddigyConfig);
18
- getPolicyInstructions(policyId: string, provider?: string): Promise<object[]>;
19
- createPolicyInstructions(policyId: string, instructionId: string): Promise<object[]>;
20
- deletePolicyInstructions(policyId: string, instructionId: string, provider?: string): Promise<object[]>;
21
- getOnlineDevices(): Promise<object[]>;
22
- getDevices(): Promise<object[]>;
23
- getPolicyDevices(policyId: string): Promise<object[]>;
24
- updateDevicePolicy(policyId: string, agentId: string): Promise<object[]>;
25
- getAlerts(status: AlertStatus, page?: number, pageLength?: number): Promise<object[]>;
26
- getPolicies(): Promise<object[]>;
27
- getPolicyDetails(policyId: string, provider?: string): Promise<object[]>;
28
- createPolicy(name: string, parentId?: string, icon?: string, color?: string): Promise<object[]>;
29
- getMaintenance(page?: number, pageLenth?: number): Promise<object[]>;
30
- getInstalledApplications(): Promise<object[]>;
31
- getProfiles(instructionId?: string): Promise<object[]>;
32
- createProfile(name: string, payloads: object[]): Promise<object[]>;
33
- updateProfile(instructionId: string, payloads: object[]): Promise<object[]>;
34
- deleteProfile(instructionId: string): Promise<object[]>;
35
- runCommand(agentIds: string[], command: string): Promise<object[]>;
36
- getCommandOutput(actionId: string, agentId: string): Promise<object[]>;
37
- getPublicSoftware(): Promise<object[]>;
38
- getCustomSoftware(): Promise<object[]>;
39
- getCustomSoftwareAllVersions(softwareId: string): Promise<object[]>;
40
- getCustomSoftwareSpecificVersion(instructionId: string): Promise<object[]>;
41
- getFileUploadUrl(fileName: string, contentType?: string): Promise<string>;
42
- uploadFile(uploadUrl: string, file: object, contentType?: string): Promise<object[]>;
43
- createCustomSoftware(baseIdentifier: string, version: string, downloads: string[], installationScript: string, condition: string, removeScript: string, priority?: number): Promise<object[]>;
44
- createSoftwareInternal(authObject: IAddigyInternalAuthObject, software: CreateSoftware): Promise<Software>;
45
- getUsers(authObject: IAddigyInternalAuthObject): Promise<object[]>;
46
- createUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: UserRoles | string, phone?: string): Promise<object[]>;
47
- updateUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: string, phone?: string): Promise<object[]>;
48
- deleteUser(authObject: IAddigyInternalAuthObject, email: string): Promise<object[]>;
49
- getBillingData(authObject: IAddigyInternalAuthObject): Promise<object[]>;
50
- getApiIntegrations(authObject: IAddigyInternalAuthObject): Promise<object[]>;
51
- createApiIntegration(authObject: IAddigyInternalAuthObject, name: string): Promise<object>;
52
- deleteApiIntegration(authObject: IAddigyInternalAuthObject, objectId: string): Promise<object>;
53
- getScreenconnectLinks(authObject: IAddigyInternalAuthObject, sessionId: string, agentId?: string): Promise<object[]>;
54
- createKernelExtensionPolicy(authObject: IAddigyInternalAuthObject, name: string, allowOverrides: boolean, kernalExtensions: {
55
- allowedTeamIdentifiers?: string[];
56
- allowedKernalExtensions?: Extension[];
57
- }): Promise<any>;
58
- createSystemExtensionPolicy(authObject: IAddigyInternalAuthObject, name: string, allowOverrides: boolean, systemExtensions: {
59
- allowedSystemExtensions?: Extension[];
60
- allowedSystemExtensionTypes?: Extension[];
61
- allowedTeamIdentifiers?: string[];
62
- }): Promise<any>;
63
- createNotificationSettingsPolicy(authObject: IAddigyInternalAuthObject, name: string, notificationSettings: NotificationSettings[]): Promise<any>;
64
- createCustomProfile(authObject: IAddigyInternalAuthObject, name: string, customProfileText: string, supportedOsVersions: SupportedOsVersions, payloadScope?: 'System' | 'User', is_profile_signed?: boolean): Promise<any>;
65
- createMdmProfile(authObject: IAddigyInternalAuthObject, mdmProfile: any): Promise<any>;
66
- createServiceManagementPolicy(authObject: IAddigyInternalAuthObject, name: string, rules: ServiceManagementPayloadRule[], priority?: number): Promise<any>;
67
- createWebContentFilterPolicy(authObject: IAddigyInternalAuthObject, payloadName: string, webContentPayload: CreateWebContentFilterPayload, priority?: number): Promise<any>;
68
- createFilevaultPolicy(authObject: IAddigyInternalAuthObject, name: string, filevault: FilevaultRequest, payloadPriority?: number): Promise<any>;
69
- createPPPCPolicy(authObject: IAddigyInternalAuthObject, name: string, pppcPolicy: PPPCInput[]): Promise<any>;
70
- createCustomFact(authObject: IAddigyInternalAuthObject, name: string, script: string, scriptType: 'bash' | 'python' | 'zsh'): Promise<CustomFact>;
71
- getCustomFacts(authObject: IAddigyInternalAuthObject): Promise<CustomFact[]>;
72
- getCustomFactByName(authObject: IAddigyInternalAuthObject, name: string): Promise<CustomFact | undefined>;
73
- getMdmConfigurations(authObject: IAddigyInternalAuthObject): Promise<MdmConfigurationPayload[]>;
74
- getMdmConfigurationByName(authObject: IAddigyInternalAuthObject, name: string): Promise<MdmConfigurationPayload | undefined>;
75
- getFileVaultKeys(authObject: IAddigyInternalAuthObject): Promise<object[]>;
76
- toSnakeCase(text: string): string;
77
- getApnsCerts(authObject: IAddigyInternalAuthObject, next?: string, previous?: string): Promise<object[]>;
78
- getAuthObject(): Promise<IAddigyInternalAuthObject>;
79
- getImpersonationAuthObject(authObject: IAddigyInternalAuthObject, orgId: string): Promise<IAddigyInternalAuthObject>;
80
- private _addigyRequest;
81
- }
1
+ export * from './lib/types';
2
+ export { Addigy } from './lib/addigy';
3
+ export { Alerts } from './lib/alerts/alerts';
4
+ export * from './lib/alerts/alert.types';
5
+ export { Auth } from './lib/auth/auth';
6
+ export * from './lib/auth/auth.types';
7
+ export { Applications } from './lib/applications/applications';
8
+ export { Billing } from './lib/billing/billing';
9
+ export { Certs } from './lib/certs/certs';
10
+ export { Commands } from './lib/commands/commands';
11
+ export { Devices } from './lib/devices/devices';
12
+ export { Facts } from './lib/facts/facts';
13
+ export * from './lib/facts/facts.types';
14
+ export { Files } from './lib/files/files';
15
+ export * from './lib/files/files.types';
16
+ export { Integrations } from './lib/integrations/integrations';
17
+ export { Maintenance } from './lib/maintenance/maintenance';
18
+ export { MdmConfigurations } from './lib/mdm/mdm-configurations';
19
+ export { MdmPolicies } from './lib/mdm/mdm-policies';
20
+ export { MdmProfiles } from './lib/mdm/mdm-profiles';
21
+ export * from './lib/mdm/mdm.types';
22
+ export { Policies } from './lib/policies/policies';
23
+ export { Profiles } from './lib/profiles/profiles';
24
+ export * from './lib/profiles/profiles.types';
25
+ export { ScreenConnect } from './lib/screenconnect/screenconnect';
26
+ export { Software } from './lib/software/software';
27
+ export * from './lib/software/software.types';
28
+ export { Users } from './lib/users/users';
29
+ export * from './lib/users/user.types';