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.
- package/README.md +5 -5
- package/index.d.ts +29 -81
- package/index.js +50 -1164
- package/lib/addigy.constants.d.ts +6 -0
- package/lib/addigy.constants.js +10 -0
- package/lib/addigy.d.ts +44 -0
- package/lib/addigy.js +63 -0
- package/lib/addigy.utils.d.ts +6 -0
- package/lib/addigy.utils.js +12 -0
- package/lib/alerts/alert.types.d.ts +5 -0
- package/lib/alerts/alert.types.js +9 -0
- package/lib/alerts/alerts.d.ts +7 -0
- package/lib/alerts/alerts.js +22 -0
- package/lib/applications/applications.d.ts +6 -0
- package/lib/applications/applications.js +18 -0
- package/lib/auth/auth.d.ts +9 -0
- package/lib/auth/auth.js +75 -0
- package/lib/auth/auth.types.d.ts +5 -0
- package/lib/billing/billing.d.ts +5 -0
- package/lib/billing/billing.js +36 -0
- package/lib/certs/certs.d.ts +5 -0
- package/lib/certs/certs.js +43 -0
- package/lib/commands/commands.d.ts +7 -0
- package/lib/commands/commands.js +31 -0
- package/lib/devices/devices.d.ts +11 -0
- package/lib/devices/devices.js +55 -0
- package/lib/facts/facts.d.ts +8 -0
- package/lib/facts/facts.js +66 -0
- package/lib/facts/facts.types.d.ts +22 -0
- package/lib/facts/facts.types.js +2 -0
- package/lib/files/files.d.ts +10 -0
- package/lib/files/files.js +63 -0
- package/lib/files/files.types.d.ts +26 -0
- package/lib/files/files.types.js +2 -0
- package/lib/integrations/integrations.d.ts +8 -0
- package/lib/integrations/integrations.js +63 -0
- package/lib/maintenance/maintenance.d.ts +6 -0
- package/lib/maintenance/maintenance.js +18 -0
- package/lib/mdm/mdm-configurations.d.ts +7 -0
- package/lib/mdm/mdm-configurations.js +41 -0
- package/lib/mdm/mdm-policies.d.ts +20 -0
- package/lib/mdm/mdm-policies.js +347 -0
- package/lib/mdm/mdm-profiles.d.ts +8 -0
- package/lib/mdm/mdm-profiles.js +74 -0
- package/{types.d.ts → lib/mdm/mdm.types.d.ts} +90 -281
- package/lib/mdm/mdm.types.js +2 -0
- package/lib/policies/policies.d.ts +11 -0
- package/lib/policies/policies.js +78 -0
- package/lib/profiles/profiles.d.ts +9 -0
- package/lib/profiles/profiles.js +59 -0
- package/lib/profiles/profiles.types.d.ts +20 -0
- package/lib/profiles/profiles.types.js +2 -0
- package/lib/screenconnect/screenconnect.d.ts +5 -0
- package/lib/screenconnect/screenconnect.js +39 -0
- package/lib/software/software.d.ts +13 -0
- package/lib/software/software.js +73 -0
- package/lib/software/software.types.d.ts +101 -0
- package/lib/software/software.types.js +2 -0
- package/lib/types.d.ts +20 -0
- package/lib/types.js +2 -0
- package/lib/users/user.types.d.ts +5 -0
- package/lib/users/user.types.js +9 -0
- package/lib/users/users.d.ts +9 -0
- package/lib/users/users.js +104 -0
- package/package.json +13 -14
- /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
|
|
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
|
|
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
|
|
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,
|
|
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
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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';
|