@redhat-cloud-services/compliance-client 0.1.1 → 0.1.2

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 (71) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/AssignRule/index.d.ts +1 -1
  3. package/dist/AssignRules/index.d.ts +1 -1
  4. package/dist/AssignSystem/index.d.ts +1 -1
  5. package/dist/AssignSystems/index.d.ts +1 -1
  6. package/dist/CreatePolicy/index.d.ts +2 -2
  7. package/dist/CreatePolicy/index.js +1 -1
  8. package/dist/DeletePolicy/index.d.ts +1 -1
  9. package/dist/Policies/index.d.ts +4 -4
  10. package/dist/Policies/index.js +2 -2
  11. package/dist/Policy/index.d.ts +1 -1
  12. package/dist/PolicySystems/index.d.ts +2 -2
  13. package/dist/Profile/index.d.ts +1 -1
  14. package/dist/ProfileRule/index.d.ts +1 -1
  15. package/dist/ProfileRules/index.d.ts +2 -2
  16. package/dist/Profiles/index.d.ts +4 -4
  17. package/dist/Profiles/index.js +2 -2
  18. package/dist/Report/index.d.ts +26 -0
  19. package/dist/Report/index.js +52 -0
  20. package/dist/Report/index.js.map +1 -0
  21. package/dist/Reports/index.d.ts +44 -0
  22. package/dist/Reports/index.js +63 -0
  23. package/dist/Reports/index.js.map +1 -0
  24. package/dist/Rule/index.d.ts +1 -1
  25. package/dist/RuleGroup/index.d.ts +1 -1
  26. package/dist/RuleGroups/index.d.ts +4 -4
  27. package/dist/RuleGroups/index.js +2 -2
  28. package/dist/Rules/index.d.ts +3 -3
  29. package/dist/Rules/index.js +1 -1
  30. package/dist/SecurityGuide/index.d.ts +1 -1
  31. package/dist/SecurityGuideRuleTree/index.d.ts +1 -1
  32. package/dist/SecurityGuides/index.d.ts +4 -4
  33. package/dist/SecurityGuides/index.js +2 -2
  34. package/dist/SupportedProfiles/index.d.ts +4 -4
  35. package/dist/SupportedProfiles/index.js +2 -2
  36. package/dist/System/index.d.ts +1 -1
  37. package/dist/Systems/index.d.ts +4 -4
  38. package/dist/Systems/index.js +2 -2
  39. package/dist/SystemsPolicies/index.d.ts +2 -2
  40. package/dist/Tailoring/index.d.ts +1 -1
  41. package/dist/TailoringFile/index.d.ts +1 -1
  42. package/dist/TailoringRules/index.d.ts +2 -2
  43. package/dist/Tailorings/index.d.ts +4 -4
  44. package/dist/Tailorings/index.js +2 -2
  45. package/dist/UnassignRule/index.d.ts +1 -1
  46. package/dist/UnassignSystem/index.d.ts +1 -1
  47. package/dist/UpdatePolicy/index.d.ts +2 -2
  48. package/dist/UpdatePolicy/index.js +1 -1
  49. package/dist/UpdateTailoring/index.d.ts +39 -0
  50. package/dist/UpdateTailoring/index.js +55 -0
  51. package/dist/UpdateTailoring/index.js.map +1 -0
  52. package/dist/ValueDefinition/index.d.ts +1 -1
  53. package/dist/ValueDefinitions/index.d.ts +4 -4
  54. package/dist/ValueDefinitions/index.js +2 -2
  55. package/dist/api.d.ts +738 -318
  56. package/dist/api.js +581 -173
  57. package/dist/api.js.map +1 -1
  58. package/dist/base.d.ts +2 -2
  59. package/dist/base.js +1 -1
  60. package/dist/common.d.ts +1 -1
  61. package/dist/common.js +1 -1
  62. package/dist/configuration.d.ts +1 -12
  63. package/dist/configuration.js +0 -11
  64. package/dist/configuration.js.map +1 -1
  65. package/dist/index.d.ts +3 -0
  66. package/dist/index.js +10 -1
  67. package/dist/index.js.map +1 -1
  68. package/dist/types/index.d.ts +160 -20
  69. package/dist/types/index.js +4 -1
  70. package/dist/types/index.js.map +1 -1
  71. package/package.json +1 -1
@@ -40,44 +40,44 @@ export interface CreatePolicy201ResponseData {
40
40
  /**
41
41
  *
42
42
  * @export
43
- * @interface Errors
43
+ * @interface Error
44
44
  */
45
45
  export interface Errors {
46
46
  /**
47
47
  *
48
48
  * @type {any}
49
- * @memberof Errors
49
+ * @memberof Error
50
50
  */
51
51
  'errors': any;
52
52
  }
53
53
  /**
54
54
  *
55
55
  * @export
56
- * @interface Links
56
+ * @interface Link
57
57
  */
58
58
  export interface Links {
59
59
  /**
60
60
  * Link to first page
61
61
  * @type {any}
62
- * @memberof Links
62
+ * @memberof Link
63
63
  */
64
64
  'first'?: any;
65
65
  /**
66
66
  * Link to last page
67
67
  * @type {any}
68
- * @memberof Links
68
+ * @memberof Link
69
69
  */
70
70
  'last'?: any;
71
71
  /**
72
72
  * Link to previous page
73
73
  * @type {any}
74
- * @memberof Links
74
+ * @memberof Link
75
75
  */
76
76
  'previous'?: any;
77
77
  /**
78
78
  * Link to next page
79
79
  * @type {any}
80
- * @memberof Links
80
+ * @memberof Link
81
81
  */
82
82
  'next'?: any;
83
83
  }
@@ -88,7 +88,7 @@ export interface Links {
88
88
  */
89
89
  export interface Metadata {
90
90
  /**
91
- * Total number of items
91
+ * Total number of item
92
92
  * @type {any}
93
93
  * @memberof Metadata
94
94
  */
@@ -112,7 +112,7 @@ export interface Metadata {
112
112
  */
113
113
  'sort_by'?: any;
114
114
  /**
115
- * Query string used to filter items by their attributes
115
+ * Query string used to filter items by their attribute
116
116
  * @type {any}
117
117
  * @memberof Metadata
118
118
  */
@@ -180,7 +180,7 @@ export interface Policy {
180
180
  */
181
181
  'business_objective'?: any;
182
182
  /**
183
- * The percentage above which the Policy meets compliance requirements
183
+ * The percentage above which the Policy meets compliance requirement
184
184
  * @type {any}
185
185
  * @memberof Policy
186
186
  */
@@ -192,7 +192,7 @@ export interface Policy {
192
192
  */
193
193
  'profile_id': any;
194
194
  /**
195
- * Major version of the Operating System that the Policy covers
195
+ * Major version of the Operating System that the Policy cover
196
196
  * @type {any}
197
197
  * @memberof Policy
198
198
  */
@@ -239,7 +239,7 @@ export interface PolicyUpdate {
239
239
  */
240
240
  'business_objective'?: any;
241
241
  /**
242
- * The percentage above which the Policy meets compliance requirements
242
+ * The percentage above which the Policy meets compliance requirement
243
243
  * @type {any}
244
244
  * @memberof PolicyUpdate
245
245
  */
@@ -282,7 +282,7 @@ export interface Profile {
282
282
  */
283
283
  'description'?: any;
284
284
  /**
285
- * Pair of keys and values for Value Definition customizations
285
+ * Pair of keys and values for Value Definition customization
286
286
  * @type {any}
287
287
  * @memberof Profile
288
288
  */
@@ -343,6 +343,140 @@ export interface Profiles200Response {
343
343
  */
344
344
  'data'?: any;
345
345
  }
346
+ /**
347
+ *
348
+ * @export
349
+ * @interface Report
350
+ */
351
+ export interface Report {
352
+ /**
353
+ *
354
+ * @type {any}
355
+ * @memberof Report
356
+ */
357
+ 'id'?: any;
358
+ /**
359
+ *
360
+ * @type {any}
361
+ * @memberof Report
362
+ */
363
+ 'type'?: ReportTypeEnum;
364
+ /**
365
+ * Short title of the Report
366
+ * @type {any}
367
+ * @memberof Report
368
+ */
369
+ 'title'?: any;
370
+ /**
371
+ * The Business Objective associated to the Policy
372
+ * @type {any}
373
+ * @memberof Report
374
+ */
375
+ 'business_objective'?: any;
376
+ /**
377
+ * The percentage above which the Policy meets compliance requirement
378
+ * @type {any}
379
+ * @memberof Report
380
+ */
381
+ 'compliance_threshold'?: any;
382
+ /**
383
+ * Major version of the Operating System that the Report cover
384
+ * @type {any}
385
+ * @memberof Report
386
+ */
387
+ 'os_major_version'?: any;
388
+ /**
389
+ * Identificator of the Profile
390
+ * @type {any}
391
+ * @memberof Report
392
+ */
393
+ 'ref_id'?: any;
394
+ /**
395
+ * Title of the associated Profile
396
+ * @type {any}
397
+ * @memberof Report
398
+ */
399
+ 'profile_title'?: any;
400
+ /**
401
+ * The number of Systems assigned to this Report
402
+ * @type {any}
403
+ * @memberof Report
404
+ */
405
+ 'assigned_system_count'?: any;
406
+ /**
407
+ * The number of compliant Systems assigned to this Report
408
+ * @type {any}
409
+ * @memberof Report
410
+ */
411
+ 'compliant_system_count'?: any;
412
+ /**
413
+ * Informs if the user has access to all the account\'s system
414
+ * @type {any}
415
+ * @memberof Report
416
+ */
417
+ 'all_systems_exposed'?: any;
418
+ /**
419
+ * The number of unsupported Systems assigned to this Report
420
+ * @type {any}
421
+ * @memberof Report
422
+ */
423
+ 'unsupported_system_count'?: any;
424
+ }
425
+ export declare const ReportTypeEnum: {
426
+ readonly Report: "report";
427
+ };
428
+ export type ReportTypeEnum = typeof ReportTypeEnum[keyof typeof ReportTypeEnum];
429
+ /**
430
+ *
431
+ * @export
432
+ * @interface Report200Response
433
+ */
434
+ export interface Report200Response {
435
+ /**
436
+ *
437
+ * @type {Report200ResponseData}
438
+ * @memberof Report200Response
439
+ */
440
+ 'data'?: Report200ResponseData;
441
+ }
442
+ /**
443
+ *
444
+ * @export
445
+ * @interface Report200ResponseData
446
+ */
447
+ export interface Report200ResponseData {
448
+ /**
449
+ *
450
+ * @type {Report}
451
+ * @memberof Report200ResponseData
452
+ */
453
+ 'schema'?: Report;
454
+ }
455
+ /**
456
+ *
457
+ * @export
458
+ * @interface Reports200Response
459
+ */
460
+ export interface Reports200Response {
461
+ /**
462
+ *
463
+ * @type {Metadata}
464
+ * @memberof Reports200Response
465
+ */
466
+ 'meta'?: Metadata;
467
+ /**
468
+ *
469
+ * @type {Links}
470
+ * @memberof Reports200Response
471
+ */
472
+ 'links'?: Links;
473
+ /**
474
+ *
475
+ * @type {any}
476
+ * @memberof Reports200Response
477
+ */
478
+ 'data'?: any;
479
+ }
346
480
  /**
347
481
  *
348
482
  * @export
@@ -606,7 +740,7 @@ export interface SecurityGuide {
606
740
  */
607
741
  'description'?: any;
608
742
  /**
609
- * Major version of the Operating System that the Security Guide covers
743
+ * Major version of the Operating System that the Security Guide cover
610
744
  * @type {any}
611
745
  * @memberof SecurityGuide
612
746
  */
@@ -704,13 +838,13 @@ export interface SupportedProfile {
704
838
  */
705
839
  'security_guide_version'?: any;
706
840
  /**
707
- * Major version of the Operating System that the Profile covers
841
+ * Major version of the Operating System that the Profile cover
708
842
  * @type {any}
709
843
  * @memberof SupportedProfile
710
844
  */
711
845
  'os_major_version'?: any;
712
846
  /**
713
- * List of the supported Operating System minor versions that the Profile covers
847
+ * List of the supported Operating System minor versions that the Profile cover
714
848
  * @type {any}
715
849
  * @memberof SupportedProfile
716
850
  */
@@ -910,19 +1044,25 @@ export interface Tailoring {
910
1044
  */
911
1045
  'profile_id'?: any;
912
1046
  /**
913
- * Major version of the Operating System that the Tailoring covers
1047
+ * Identificator of the Security Guide that contains the parent Profile
1048
+ * @type {any}
1049
+ * @memberof Tailoring
1050
+ */
1051
+ 'security_guide_id'?: any;
1052
+ /**
1053
+ * Major version of the Operating System that the Tailoring cover
914
1054
  * @type {any}
915
1055
  * @memberof Tailoring
916
1056
  */
917
1057
  'os_major_version'?: any;
918
1058
  /**
919
- * Minor version of the Operating System that the Tailoring covers
1059
+ * Minor version of the Operating System that the Tailoring cover
920
1060
  * @type {any}
921
1061
  * @memberof Tailoring
922
1062
  */
923
1063
  'os_minor_version'?: any;
924
1064
  /**
925
- * Pair of keys and values for Value Definition customizations
1065
+ * Pair of keys and values for Value Definition customization
926
1066
  * @type {any}
927
1067
  * @memberof Tailoring
928
1068
  */
@@ -959,7 +1099,7 @@ export interface Tailoring200ResponseData {
959
1099
  'schema'?: Tailoring;
960
1100
  }
961
1101
  /**
962
- * Defines customizations of rules and variables for a set of profiles
1102
+ * Defines customizations of rules and variables for a set of profile
963
1103
  * @export
964
1104
  * @interface TailoringFile
965
1105
  */
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValueDefinitionTypeEnum = exports.TailoringTypeEnum = exports.SystemTypeEnum = exports.SupportedProfileTypeEnum = exports.SecurityGuideTypeEnum = exports.RuleGroupTypeEnum = exports.RuleTypeEnum = exports.ProfileTypeEnum = exports.PolicyTypeEnum = void 0;
3
+ exports.ValueDefinitionTypeEnum = exports.TailoringTypeEnum = exports.SystemTypeEnum = exports.SupportedProfileTypeEnum = exports.SecurityGuideTypeEnum = exports.RuleGroupTypeEnum = exports.RuleTypeEnum = exports.ReportTypeEnum = exports.ProfileTypeEnum = exports.PolicyTypeEnum = void 0;
4
4
  exports.PolicyTypeEnum = {
5
5
  Policy: 'policy'
6
6
  };
7
7
  exports.ProfileTypeEnum = {
8
8
  Profile: 'profile'
9
9
  };
10
+ exports.ReportTypeEnum = {
11
+ Report: 'report'
12
+ };
10
13
  exports.RuleTypeEnum = {
11
14
  Rule: 'rule'
12
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;AA2Na,QAAA,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAyEE,QAAA,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;CACZ,CAAC;AAqHE,QAAA,YAAY,GAAG;IACxB,IAAI,EAAE,MAAM;CACN,CAAC;AAgFE,QAAA,iBAAiB,GAAG;IAC7B,SAAS,EAAE,YAAY;CACjB,CAAC;AAkIE,QAAA,qBAAqB,GAAG;IACjC,aAAa,EAAE,gBAAgB;CACzB,CAAC;AAyGE,QAAA,wBAAwB,GAAG;IACpC,gBAAgB,EAAE,mBAAmB;CAC/B,CAAC;AAmHE,QAAA,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAmGE,QAAA,iBAAiB,GAAG;IAC7B,SAAS,EAAE,WAAW;CAChB,CAAC;AAwHE,QAAA,uBAAuB,GAAG;IACnC,eAAe,EAAE,kBAAkB;CAC7B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;AA2Na,QAAA,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAyEE,QAAA,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;CACZ,CAAC;AAuIE,QAAA,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAqHE,QAAA,YAAY,GAAG;IACxB,IAAI,EAAE,MAAM;CACN,CAAC;AAgFE,QAAA,iBAAiB,GAAG;IAC7B,SAAS,EAAE,YAAY;CACjB,CAAC;AAkIE,QAAA,qBAAqB,GAAG;IACjC,aAAa,EAAE,gBAAgB;CACzB,CAAC;AAyGE,QAAA,wBAAwB,GAAG;IACpC,gBAAgB,EAAE,mBAAmB;CAC/B,CAAC;AAmHE,QAAA,cAAc,GAAG;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAyGE,QAAA,iBAAiB,GAAG;IAC7B,SAAS,EAAE,WAAW;CAChB,CAAC;AAwHE,QAAA,uBAAuB,GAAG;IACnC,eAAe,EAAE,kBAAkB;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/compliance-client",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",