@device-management-toolkit/wsman-messages 5.9.4

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 (90) hide show
  1. package/README.md +29 -0
  2. package/WSMan.d.ts +217 -0
  3. package/WSMan.js +395 -0
  4. package/WSMan.js.map +1 -0
  5. package/amt/actions.d.ts +112 -0
  6. package/amt/actions.js +118 -0
  7. package/amt/actions.js.map +1 -0
  8. package/amt/classes.d.ts +33 -0
  9. package/amt/classes.js +38 -0
  10. package/amt/classes.js.map +1 -0
  11. package/amt/index.d.ts +12 -0
  12. package/amt/index.js +17 -0
  13. package/amt/index.js.map +1 -0
  14. package/amt/messages.d.ts +466 -0
  15. package/amt/messages.js +819 -0
  16. package/amt/messages.js.map +1 -0
  17. package/amt/messages.test.d.ts +5 -0
  18. package/amt/messages.test.js +1091 -0
  19. package/amt/messages.test.js.map +1 -0
  20. package/amt/methods.d.ts +42 -0
  21. package/amt/methods.js +47 -0
  22. package/amt/methods.js.map +1 -0
  23. package/amt/models.d.ts +329 -0
  24. package/amt/models.js +7 -0
  25. package/amt/models.js.map +1 -0
  26. package/amt/types.d.ts +206 -0
  27. package/amt/types.js +7 -0
  28. package/amt/types.js.map +1 -0
  29. package/cim/actions.d.ts +9 -0
  30. package/cim/actions.js +14 -0
  31. package/cim/actions.js.map +1 -0
  32. package/cim/classes.d.ts +27 -0
  33. package/cim/classes.js +32 -0
  34. package/cim/classes.js.map +1 -0
  35. package/cim/index.d.ts +12 -0
  36. package/cim/index.js +16 -0
  37. package/cim/index.js.map +1 -0
  38. package/cim/messages.d.ts +136 -0
  39. package/cim/messages.js +215 -0
  40. package/cim/messages.js.map +1 -0
  41. package/cim/messages.test.d.ts +5 -0
  42. package/cim/messages.test.js +408 -0
  43. package/cim/messages.test.js.map +1 -0
  44. package/cim/methods.d.ts +15 -0
  45. package/cim/methods.js +20 -0
  46. package/cim/methods.js.map +1 -0
  47. package/cim/models.d.ts +376 -0
  48. package/cim/models.js +7 -0
  49. package/cim/models.js.map +1 -0
  50. package/cim/types.d.ts +296 -0
  51. package/cim/types.js +7 -0
  52. package/cim/types.js.map +1 -0
  53. package/dist +42 -0
  54. package/index.d.ts +9 -0
  55. package/index.js +49 -0
  56. package/index.js.map +1 -0
  57. package/ips/actions.d.ts +15 -0
  58. package/ips/actions.js +20 -0
  59. package/ips/actions.js.map +1 -0
  60. package/ips/classes.d.ts +12 -0
  61. package/ips/classes.js +17 -0
  62. package/ips/classes.js.map +1 -0
  63. package/ips/index.d.ts +12 -0
  64. package/ips/index.js +16 -0
  65. package/ips/index.js.map +1 -0
  66. package/ips/messages.d.ts +117 -0
  67. package/ips/messages.js +210 -0
  68. package/ips/messages.js.map +1 -0
  69. package/ips/messages.test.d.ts +5 -0
  70. package/ips/messages.test.js +206 -0
  71. package/ips/messages.test.js.map +1 -0
  72. package/ips/methods.d.ts +21 -0
  73. package/ips/methods.js +26 -0
  74. package/ips/methods.js.map +1 -0
  75. package/ips/models.d.ts +59 -0
  76. package/ips/models.js +7 -0
  77. package/ips/models.js.map +1 -0
  78. package/ips/types.d.ts +58 -0
  79. package/ips/types.js +7 -0
  80. package/ips/types.js.map +1 -0
  81. package/models/common.d.ts +104 -0
  82. package/models/common.js +7 -0
  83. package/models/common.js.map +1 -0
  84. package/models/index.d.ts +6 -0
  85. package/models/index.js +43 -0
  86. package/models/index.js.map +1 -0
  87. package/package.json +41 -0
  88. package/wsman.test.d.ts +5 -0
  89. package/wsman.test.js +479 -0
  90. package/wsman.test.js.map +1 -0
@@ -0,0 +1,376 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2021
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import type { Types } from './types';
6
+ import type { Common } from '../';
7
+ export declare namespace Models {
8
+ interface ManagedElement {
9
+ Caption?: string;
10
+ Description?: string;
11
+ ElementName?: string;
12
+ }
13
+ interface ManagedSystemElement extends ManagedElement {
14
+ InstallDate?: Date;
15
+ Name?: string;
16
+ OperationalStatus?: Types.ManagedSystemElement.OperationalStatus;
17
+ StatusDescriptions?: string[];
18
+ Status?: string;
19
+ HealthState?: Types.ManagedSystemElement.HealthState;
20
+ }
21
+ interface PhysicalElement extends ManagedSystemElement {
22
+ Tag?: string;
23
+ CreationClassName?: string;
24
+ Manufacturer?: string;
25
+ Model?: string;
26
+ Sku?: string;
27
+ SerialNumber?: string;
28
+ Version?: string;
29
+ PartNumber?: string;
30
+ OtherIdentifyingInfo?: string;
31
+ PoweredOn?: boolean;
32
+ ManufactureDate?: Date;
33
+ VendorEquipmentType?: string;
34
+ UserTracking?: string;
35
+ CanBeFRUed?: boolean;
36
+ }
37
+ interface PhysicalComponent extends PhysicalElement {
38
+ RemovalConditions?: Types.PhysicalComponent.RemovalConditions;
39
+ Removable?: boolean;
40
+ Replaceable?: boolean;
41
+ HotSwappable?: boolean;
42
+ }
43
+ interface Chip extends PhysicalComponent {
44
+ Tag?: string;
45
+ CreationClassName?: string;
46
+ ElementName?: string;
47
+ Manufacturer?: string;
48
+ Version?: string;
49
+ CanBeFRUed?: boolean;
50
+ }
51
+ interface PhysicalMemory extends Chip {
52
+ FormFactor?: number;
53
+ MemoryType?: Types.PhysicalMemory.MemoryType;
54
+ Speed?: number;
55
+ Capacity?: number;
56
+ BankLabel?: string;
57
+ ConfiguredMemoryClockSpeed?: number;
58
+ IsSpeedInMhz?: boolean;
59
+ MaxMemorySpeed?: number;
60
+ }
61
+ interface PhysicalPackage extends PhysicalElement {
62
+ PackageType?: Types.PhysicalPackage.PackageType;
63
+ }
64
+ type Card = PhysicalPackage;
65
+ interface PhysicalFrame extends PhysicalPackage {
66
+ VendorCompatibilityStrings?: string[];
67
+ OtherPackageType?: string;
68
+ Weight?: number;
69
+ Width?: number;
70
+ Depth?: number;
71
+ Height?: number;
72
+ RemovalConditions?: Types.PhysicalFrame.RemovalConditions;
73
+ Removable?: boolean;
74
+ Replaceable?: boolean;
75
+ HotSwappable?: boolean;
76
+ CableManagementStrategy?: string;
77
+ ServicePhilosophy?: Types.PhysicalFrame.ServicePhilosophy;
78
+ ServiceDescriptions?: string[];
79
+ LockPresent?: boolean;
80
+ AudibleAlarm?: boolean;
81
+ VisibleAlarm?: boolean;
82
+ SecurityBreach?: Types.PhysicalFrame.SecurityBreach;
83
+ BreachDescription?: string;
84
+ IsLocked?: boolean;
85
+ }
86
+ interface Chassis extends PhysicalFrame {
87
+ ChassisPackageType?: Types.Chassis.ChassisPackageType;
88
+ }
89
+ type LogicalElement = ManagedSystemElement;
90
+ interface SoftwareElement extends LogicalElement {
91
+ Version?: string;
92
+ SoftwareElementState?: Types.SoftwareElement.SoftwareElementState;
93
+ SoftwareElementId?: string;
94
+ TargetOperatingSystem?: Types.SoftwareElement.TargetOperatingSystem;
95
+ OtherTargetOs?: string;
96
+ Manufacturer?: string;
97
+ BuildNumber?: string;
98
+ SerialNumber?: string;
99
+ CodeSet?: string;
100
+ IdentificationCode?: string;
101
+ LanguageEdition?: string;
102
+ }
103
+ interface BIOSElement extends SoftwareElement {
104
+ PrimaryBIOS?: boolean;
105
+ ReleaseDate?: Date;
106
+ }
107
+ interface Job extends LogicalElement {
108
+ InstanceId?: string;
109
+ CommunicationStatus?: Types.Job.CommunicationStatus;
110
+ DetailedStatus?: Types.Job.DetailedStatus;
111
+ OperatingStatus?: Types.Job.OperatingStatus;
112
+ PrimaryStatus?: Types.Job.PrimaryStatus;
113
+ JobStatus?: string;
114
+ TimeSubmitted?: Date;
115
+ ScheduledStartTime?: Date;
116
+ StartTime?: Date;
117
+ ElapsedTime?: Date;
118
+ JobRunTimes?: number;
119
+ RunMonth?: Types.Job.RunMonth;
120
+ RunDay?: Types.Job.RunDay;
121
+ RunDayOfWeek?: Types.Job.RunDayOfWeek;
122
+ RunStartInterval?: Date;
123
+ LocalOrUtcTime?: Types.Job.LocalOrUtcTime;
124
+ Notify?: string;
125
+ Owner?: string;
126
+ Priority?: number;
127
+ PercentComplete?: number;
128
+ DeleteOnCompletion?: boolean;
129
+ ErrorCode?: number;
130
+ ErrorDescription?: string;
131
+ RecoveryAction?: Types.Job.RecoveryAction;
132
+ OtherRecoveryAction?: string;
133
+ }
134
+ interface ConcreteJob extends Job {
135
+ UntilTime?: Date;
136
+ JobState?: Types.ConcreteJob.JobState;
137
+ TimeOfLastStateChange?: Date;
138
+ TimeBeforeRemoval?: Date;
139
+ }
140
+ interface EnabledLogicalElement extends LogicalElement {
141
+ EnabledState?: Types.EnabledLogicalElement.EnabledState;
142
+ OtherEnabledState?: string;
143
+ RequestedState?: Types.EnabledLogicalElement.RequestedState;
144
+ EnabledDefault?: Types.EnabledLogicalElement.EnabledDefault;
145
+ TimeOfLastStateChange?: Date;
146
+ }
147
+ interface LogicalDevice extends EnabledLogicalElement {
148
+ SystemCreationClassName?: string;
149
+ SystemName?: string;
150
+ CreationClassName?: string;
151
+ DeviceId?: string;
152
+ PowerManagementSupported?: boolean;
153
+ PowerManagementCapabilities?: Types.LogicalDevice.PowerManagementCapabilities;
154
+ Availability?: Types.LogicalDevice.Availability;
155
+ StatusInfo?: Types.LogicalDevice.StatusInfo;
156
+ LastErrorCode?: number;
157
+ ErrorDescription?: string;
158
+ ErrorCleared?: boolean;
159
+ OtherIdentifyingInfo?: string[];
160
+ PowerOnHours?: number;
161
+ TotalPowerOnHours?: number;
162
+ IdentifyingDescriptions?: string[];
163
+ AdditionalAvailability?: Types.LogicalDevice.AdditionalAvailability;
164
+ MaxQuiesceTime?: number;
165
+ }
166
+ interface Processor extends LogicalDevice {
167
+ Role?: string;
168
+ Family?: number;
169
+ OtherFamilyDescription?: string;
170
+ UpgradeMethod?: Types.Processor.UpgradeMethod;
171
+ MaxClockSpeed?: number;
172
+ CurrentClockSpeed?: number;
173
+ Stepping?: string;
174
+ CPUStatus?: Types.Processor.CPUStatus;
175
+ ExternalBusClockSpeed?: number;
176
+ }
177
+ interface MediaAccessDevice extends LogicalDevice {
178
+ Capabilities?: Types.MediaAccessDevice.Capabilities;
179
+ MaxMediaSize?: number;
180
+ Security?: Types.MediaAccessDevice.Security;
181
+ }
182
+ interface Service extends EnabledLogicalElement {
183
+ SystemCreationClassName?: string;
184
+ SystemName?: string;
185
+ CreationClassName?: string;
186
+ PrimaryOwnerName?: string;
187
+ PrimaryOwnerContact?: string;
188
+ StartMode?: string;
189
+ Started?: boolean;
190
+ }
191
+ type SecurityService = Service;
192
+ interface SettingData extends ManagedElement {
193
+ InstanceID?: string;
194
+ }
195
+ interface Dependency {
196
+ Antecedent: any;
197
+ Dependent: any;
198
+ }
199
+ type SystemPackaging = Dependency;
200
+ interface ComputerSystemPackage extends SystemPackaging {
201
+ PlatformGuid?: string;
202
+ }
203
+ interface LogicalPort extends LogicalDevice {
204
+ Speed?: number;
205
+ MaxSpeed?: number;
206
+ RequestedSpeed?: number;
207
+ UsageRestriction?: Types.LogicalPort.UsageRestriction;
208
+ PortType?: Types.LogicalPort.PortType;
209
+ OtherPortType?: string;
210
+ }
211
+ interface NetworkPort extends LogicalPort {
212
+ PortNumber?: number;
213
+ LinkTechnology?: Types.NetworkPort.LinkTechnology;
214
+ OtherLinkTechnology?: string;
215
+ PermanentAddress?: string;
216
+ NetworkAddresses?: string[];
217
+ FullDuplex?: boolean;
218
+ AutoSense?: boolean;
219
+ SupportedMaximumTransmissionUnit?: number;
220
+ ActiveMaximumTransmissionUnit?: number;
221
+ }
222
+ type EthernetPort = NetworkPort;
223
+ type WiFiPort = NetworkPort;
224
+ interface BootSettingData extends SettingData {
225
+ OwningEntity?: string;
226
+ }
227
+ type Collection = ManagedElement;
228
+ interface Role extends Collection {
229
+ CreationClassName?: string;
230
+ Name?: string;
231
+ CommonName?: string;
232
+ RoleCharacteristics?: Types.Role.RoleCharacteristics;
233
+ }
234
+ type AuthenticationService = SecurityService;
235
+ interface CredentialManagementService extends AuthenticationService {
236
+ InstanceID?: string;
237
+ }
238
+ interface Credential extends ManagedElement {
239
+ Issued?: Date;
240
+ Expires?: Date;
241
+ }
242
+ interface CredentialContext {
243
+ ElementInContext: Credential;
244
+ ElementProvidingContext: ManagedElement;
245
+ }
246
+ interface ServiceAvailableToElement {
247
+ ServiceProvided: {
248
+ Address: string;
249
+ ReferenceParameters: {
250
+ ResourceURI: string;
251
+ SelectorSet: {
252
+ Selector: string[];
253
+ };
254
+ };
255
+ };
256
+ UserOfService: {
257
+ Address: string;
258
+ ReferenceParameters: {
259
+ ResourceURI: string;
260
+ SelectorSet: {
261
+ Selector: string[];
262
+ };
263
+ };
264
+ };
265
+ }
266
+ interface AssociatedPowerManagementService extends ServiceAvailableToElement {
267
+ CIM_AssociatedPowerManagementService: {
268
+ AvailableRequestedPowerStates: string[];
269
+ PowerState: string;
270
+ } & ServiceAvailableToElement;
271
+ }
272
+ interface SoftwareIdentity extends LogicalElement {
273
+ CIM_SoftwareIdentity: ({
274
+ InstanceID: string;
275
+ VersionString: string;
276
+ IsEntity: boolean;
277
+ } & LogicalElement)[];
278
+ }
279
+ interface Log extends EnabledLogicalElement {
280
+ MaxNumberOfRecords: number;
281
+ CurrentNumberOfRecords: number;
282
+ OverwritePolicy: Types.Log.OverwritePolicy;
283
+ LogState: Types.Log.LogState;
284
+ }
285
+ interface MessageLog extends Log {
286
+ CreationClassName: string;
287
+ Capabilities: Types.MessageLog.Capabilities;
288
+ CapabilitiesDescriptions: string[];
289
+ MaxLogSize: number;
290
+ SizeOfHeader: number;
291
+ HeaderFormat: string;
292
+ MaxRecordSize: number;
293
+ SizeOfRecordHeader: number;
294
+ RecordHeaderFormat: string;
295
+ OtherPolicyDescription: string;
296
+ TimeWhenOutdated: Date;
297
+ PercentageNearFull: number;
298
+ LastChange: Types.MessageLog.LastChange;
299
+ TimeOfLastChange: Date;
300
+ RecordLastChanged: number;
301
+ IsFrozen: boolean;
302
+ CharacterSet: Types.MessageLog.CharacterSet;
303
+ }
304
+ interface KVMRedirectionSAP {
305
+ Name: string;
306
+ CreationClassName: string;
307
+ SystemName: string;
308
+ SystemCreationClassName: string;
309
+ ElementName: string;
310
+ EnabledState: Types.KVMRedirectionSAP.EnabledState;
311
+ RequestedState: Types.KVMRedirectionSAP.RequestedState;
312
+ KVMProtocol: Types.KVMRedirectionSAP.KVMProtocol;
313
+ }
314
+ interface KVMRedirectionSAPResponse {
315
+ CIM_KVMRedirectionSAP: KVMRedirectionSAP;
316
+ }
317
+ interface PowerActionResponse {
318
+ RequestPowerStateChange_OUTPUT: Common.Models.ReturnValue;
319
+ }
320
+ interface WiFiEndpointSettings extends SettingData {
321
+ ElementName: string;
322
+ InstanceID: string;
323
+ Priority: number;
324
+ SSID?: string;
325
+ BSSType?: Types.WiFiEndpointSettings.BSSType;
326
+ EncryptionMethod: Types.WiFiEndpointSettings.EncryptionMethod;
327
+ AuthenticationMethod: Types.WiFiEndpointSettings.AuthenticationMethod;
328
+ Keys?: string[];
329
+ KeyIndex?: number;
330
+ PSKValue?: number;
331
+ PSKPassPhrase?: string;
332
+ }
333
+ type NetworkPortConfigurationService = Service;
334
+ interface Policy extends ManagedElement {
335
+ CommonName: string;
336
+ PolicyKeywords: string[];
337
+ }
338
+ interface PolicySet extends Policy {
339
+ PolicyDecisionStrategy: Types.PolicySet.PolicyDecisionStrategy;
340
+ PolicyRoles: string[];
341
+ Enabled: Types.PolicySet.Enabled;
342
+ }
343
+ interface PolicySetAppliesToElement {
344
+ PolicySet: PolicySet;
345
+ ManagedElement: ManagedElement;
346
+ }
347
+ interface IEEE8021xSettings extends SettingData {
348
+ ElementName: string;
349
+ InstanceID?: string;
350
+ AuthenticationProtocol?: Types.IEEE8021xSettings.AuthenticationProtocol;
351
+ RoamingIdentity?: string;
352
+ ServerCertificateName?: string;
353
+ ServerCertificateNameComparison?: Types.IEEE8021xSettings.ServerCertificateNameComparison;
354
+ Username?: string;
355
+ Password?: string;
356
+ Domain?: string;
357
+ ProtectedAccessCredential?: string;
358
+ PACPassword?: string;
359
+ PSK?: string;
360
+ }
361
+ interface BootSourceSetting extends SettingData {
362
+ ElementName: string;
363
+ InstanceID: Types.BootConfigSetting.InstanceID;
364
+ StructuredBootString?: string;
365
+ BIOSBootString?: string;
366
+ BootString?: string;
367
+ FailThroughSupported?: Types.BootConfigSetting.FailThroughSupported;
368
+ }
369
+ interface SharedCredential extends Credential {
370
+ InstanceID: string;
371
+ RemoteID?: string;
372
+ Secret?: string;
373
+ Algorithm?: string;
374
+ Protocol?: string;
375
+ }
376
+ }
package/cim/models.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /*********************************************************************
3
+ * Copyright (c) Intel Corporation 2021
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ **********************************************************************/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/cim/models.ts"],"names":[],"mappings":";AAAA;;;wEAGwE"}