@itentialopensource/adapter-zero_networks 0.1.1 → 0.2.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 (60) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +14 -18
  4. package/BROKER.md +31 -19
  5. package/CALLS.md +1175 -23
  6. package/CHANGELOG.md +16 -1
  7. package/PROPERTIES.md +5 -0
  8. package/README.md +60 -63
  9. package/SYSTEMINFO.md +14 -6
  10. package/TAB1.md +8 -0
  11. package/TAB2.md +83 -6564
  12. package/adapter.js +16661 -39
  13. package/entities/Asset/action.json +872 -0
  14. package/entities/Asset/schema.json +43 -1
  15. package/entities/AssetOTIoT/action.json +851 -0
  16. package/entities/AssetOTIoT/schema.json +42 -1
  17. package/entities/Assets/action.json +83 -0
  18. package/entities/Assets/schema.json +5 -1
  19. package/entities/Download/action.json +88 -0
  20. package/entities/Download/schema.json +22 -0
  21. package/entities/Group/action.json +518 -0
  22. package/entities/Group/schema.json +26 -1
  23. package/entities/Groups/action.json +354 -0
  24. package/entities/Groups/schema.json +18 -1
  25. package/entities/GroupsCustom/action.json +20 -0
  26. package/entities/GroupsCustom/schema.json +2 -1
  27. package/entities/GroupsTag/action.json +45 -0
  28. package/entities/GroupsTag/schema.json +20 -0
  29. package/entities/MFAIdentity/action.json +295 -0
  30. package/entities/MFAIdentity/schema.json +32 -0
  31. package/entities/MFAInbound/action.json +21 -0
  32. package/entities/MFAInbound/schema.json +2 -1
  33. package/entities/MFAOutbound/action.json +21 -0
  34. package/entities/MFAOutbound/schema.json +2 -1
  35. package/entities/Rules/action.json +40 -0
  36. package/entities/Rules/schema.json +3 -1
  37. package/entities/RulesInbound/action.json +293 -0
  38. package/entities/RulesInbound/schema.json +32 -0
  39. package/entities/RulesOutboundAllow/action.json +21 -0
  40. package/entities/RulesOutboundAllow/schema.json +2 -1
  41. package/entities/SettingsInactiveAssets/action.json +45 -0
  42. package/entities/SettingsInactiveAssets/schema.json +20 -0
  43. package/entities/SettingsLicenses/action.json +25 -0
  44. package/entities/SettingsLicenses/schema.json +19 -0
  45. package/entities/User/action.json +291 -0
  46. package/entities/User/schema.json +15 -1
  47. package/entities/Users/action.json +21 -0
  48. package/entities/Users/schema.json +2 -1
  49. package/metadata.json +14 -3
  50. package/package.json +7 -9
  51. package/pronghorn.json +12801 -490
  52. package/propertiesSchema.json +133 -36
  53. package/refs?service=git-upload-pack +0 -0
  54. package/report/adapter-openapi.json +115977 -0
  55. package/report/adapterInfo.json +7 -7
  56. package/report/updateReport1715609939167.json +120 -0
  57. package/sampleProperties.json +43 -31
  58. package/test/integration/adapterTestIntegration.js +4700 -0
  59. package/test/unit/adapterTestUnit.js +8581 -4
  60. package/utils/artifactize.js +0 -0
@@ -683,6 +683,297 @@
683
683
  "mockFile": ""
684
684
  }
685
685
  ]
686
+ },
687
+ {
688
+ "name": "userMFAIdentityPoliciesList",
689
+ "protocol": "REST",
690
+ "method": "GET",
691
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies?{query}",
692
+ "requestSchema": "schema.json",
693
+ "responseSchema": "schema.json",
694
+ "timeout": 0,
695
+ "sendEmpty": false,
696
+ "sendGetBody": false,
697
+ "requestDatatype": "JSON",
698
+ "responseDatatype": "JSON",
699
+ "headers": {},
700
+ "responseObjects": [
701
+ {
702
+ "type": "default",
703
+ "key": "",
704
+ "mockFile": ""
705
+ }
706
+ ]
707
+ },
708
+ {
709
+ "name": "userMFAIdentityPoliciesCreate",
710
+ "protocol": "REST",
711
+ "method": "POST",
712
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies?{query}",
713
+ "requestSchema": "schema.json",
714
+ "responseSchema": "schema.json",
715
+ "timeout": 0,
716
+ "sendEmpty": false,
717
+ "requestDatatype": "JSON",
718
+ "responseDatatype": "JSON",
719
+ "headers": {},
720
+ "responseObjects": [
721
+ {
722
+ "type": "default",
723
+ "key": "",
724
+ "mockFile": ""
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "name": "userMFAIdentityPoliciesGet",
730
+ "protocol": "REST",
731
+ "method": "GET",
732
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/{pathv2}?{query}",
733
+ "requestSchema": "schema.json",
734
+ "responseSchema": "schema.json",
735
+ "timeout": 0,
736
+ "sendEmpty": false,
737
+ "sendGetBody": false,
738
+ "requestDatatype": "JSON",
739
+ "responseDatatype": "JSON",
740
+ "headers": {},
741
+ "responseObjects": [
742
+ {
743
+ "type": "default",
744
+ "key": "",
745
+ "mockFile": ""
746
+ }
747
+ ]
748
+ },
749
+ {
750
+ "name": "userMFAIdentityPoliciesUpdate",
751
+ "protocol": "REST",
752
+ "method": "PUT",
753
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/{pathv2}?{query}",
754
+ "requestSchema": "schema.json",
755
+ "responseSchema": "schema.json",
756
+ "timeout": 0,
757
+ "sendEmpty": false,
758
+ "requestDatatype": "JSON",
759
+ "responseDatatype": "JSON",
760
+ "headers": {},
761
+ "responseObjects": [
762
+ {
763
+ "type": "default",
764
+ "key": "",
765
+ "mockFile": ""
766
+ }
767
+ ]
768
+ },
769
+ {
770
+ "name": "userMFAIdentityPoliciesDelete",
771
+ "protocol": "REST",
772
+ "method": "DELETE",
773
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/{pathv2}?{query}",
774
+ "requestSchema": "schema.json",
775
+ "responseSchema": "schema.json",
776
+ "timeout": 0,
777
+ "sendEmpty": false,
778
+ "requestDatatype": "JSON",
779
+ "responseDatatype": "JSON",
780
+ "headers": {},
781
+ "responseObjects": [
782
+ {
783
+ "type": "default",
784
+ "key": "",
785
+ "mockFile": ""
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "name": "userMFAIdentityPoliciesDestinationCandidatesList",
791
+ "protocol": "REST",
792
+ "method": "GET",
793
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/dst-asset-candidates?{query}",
794
+ "requestSchema": "schema.json",
795
+ "responseSchema": "schema.json",
796
+ "timeout": 0,
797
+ "sendEmpty": false,
798
+ "sendGetBody": false,
799
+ "requestDatatype": "JSON",
800
+ "responseDatatype": "JSON",
801
+ "headers": {},
802
+ "responseObjects": [
803
+ {
804
+ "type": "default",
805
+ "key": "",
806
+ "mockFile": ""
807
+ }
808
+ ]
809
+ },
810
+ {
811
+ "name": "userMFAIdentityPoliciesExcludedSourceCandidatesList",
812
+ "protocol": "REST",
813
+ "method": "GET",
814
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/excluded-src-asset-candidates?{query}",
815
+ "requestSchema": "schema.json",
816
+ "responseSchema": "schema.json",
817
+ "timeout": 0,
818
+ "sendEmpty": false,
819
+ "sendGetBody": false,
820
+ "requestDatatype": "JSON",
821
+ "responseDatatype": "JSON",
822
+ "headers": {},
823
+ "responseObjects": [
824
+ {
825
+ "type": "default",
826
+ "key": "",
827
+ "mockFile": ""
828
+ }
829
+ ]
830
+ },
831
+ {
832
+ "name": "userMFAIdentityPoliciesFiltersList",
833
+ "protocol": "REST",
834
+ "method": "GET",
835
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/filters?{query}",
836
+ "requestSchema": "schema.json",
837
+ "responseSchema": "schema.json",
838
+ "timeout": 0,
839
+ "sendEmpty": false,
840
+ "sendGetBody": false,
841
+ "requestDatatype": "JSON",
842
+ "responseDatatype": "JSON",
843
+ "headers": {},
844
+ "responseObjects": [
845
+ {
846
+ "type": "default",
847
+ "key": "",
848
+ "mockFile": ""
849
+ }
850
+ ]
851
+ },
852
+ {
853
+ "name": "userMFAIdentityPoliciesDestinationCandidatesFiltersList",
854
+ "protocol": "REST",
855
+ "method": "GET",
856
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/filters/dst-asset-candidates?{query}",
857
+ "requestSchema": "schema.json",
858
+ "responseSchema": "schema.json",
859
+ "timeout": 0,
860
+ "sendEmpty": false,
861
+ "sendGetBody": false,
862
+ "requestDatatype": "JSON",
863
+ "responseDatatype": "JSON",
864
+ "headers": {},
865
+ "responseObjects": [
866
+ {
867
+ "type": "default",
868
+ "key": "",
869
+ "mockFile": ""
870
+ }
871
+ ]
872
+ },
873
+ {
874
+ "name": "userMFAIdentityPoliciesSourceCandidatesFiltersList",
875
+ "protocol": "REST",
876
+ "method": "GET",
877
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/filters/src-asset-candidates?{query}",
878
+ "requestSchema": "schema.json",
879
+ "responseSchema": "schema.json",
880
+ "timeout": 0,
881
+ "sendEmpty": false,
882
+ "sendGetBody": false,
883
+ "requestDatatype": "JSON",
884
+ "responseDatatype": "JSON",
885
+ "headers": {},
886
+ "responseObjects": [
887
+ {
888
+ "type": "default",
889
+ "key": "",
890
+ "mockFile": ""
891
+ }
892
+ ]
893
+ },
894
+ {
895
+ "name": "userMFAIdentityPoliciesSourceUsersCandidatesFiltersList",
896
+ "protocol": "REST",
897
+ "method": "GET",
898
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/filters/src-users-candidates?{query}",
899
+ "requestSchema": "schema.json",
900
+ "responseSchema": "schema.json",
901
+ "timeout": 0,
902
+ "sendEmpty": false,
903
+ "sendGetBody": false,
904
+ "requestDatatype": "JSON",
905
+ "responseDatatype": "JSON",
906
+ "headers": {},
907
+ "responseObjects": [
908
+ {
909
+ "type": "default",
910
+ "key": "",
911
+ "mockFile": ""
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "name": "userMFAIdentityPoliciesMFAMethodsList",
917
+ "protocol": "REST",
918
+ "method": "GET",
919
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/mfa-methods?{query}",
920
+ "requestSchema": "schema.json",
921
+ "responseSchema": "schema.json",
922
+ "timeout": 0,
923
+ "sendEmpty": false,
924
+ "sendGetBody": false,
925
+ "requestDatatype": "JSON",
926
+ "responseDatatype": "JSON",
927
+ "headers": {},
928
+ "responseObjects": [
929
+ {
930
+ "type": "default",
931
+ "key": "",
932
+ "mockFile": ""
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ "name": "userMFAIdentityPoliciesSourceCandidatesList",
938
+ "protocol": "REST",
939
+ "method": "GET",
940
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/src-asset-candidates?{query}",
941
+ "requestSchema": "schema.json",
942
+ "responseSchema": "schema.json",
943
+ "timeout": 0,
944
+ "sendEmpty": false,
945
+ "sendGetBody": false,
946
+ "requestDatatype": "JSON",
947
+ "responseDatatype": "JSON",
948
+ "headers": {},
949
+ "responseObjects": [
950
+ {
951
+ "type": "default",
952
+ "key": "",
953
+ "mockFile": ""
954
+ }
955
+ ]
956
+ },
957
+ {
958
+ "name": "userMFAIdentityPoliciesSourceUserCandidatesList",
959
+ "protocol": "REST",
960
+ "method": "GET",
961
+ "entitypath": "{base_path}/{version}/users/{pathv1}/protection/identity/reactive-policies/src-users-candidates?{query}",
962
+ "requestSchema": "schema.json",
963
+ "responseSchema": "schema.json",
964
+ "timeout": 0,
965
+ "sendEmpty": false,
966
+ "sendGetBody": false,
967
+ "requestDatatype": "JSON",
968
+ "responseDatatype": "JSON",
969
+ "headers": {},
970
+ "responseObjects": [
971
+ {
972
+ "type": "default",
973
+ "key": "",
974
+ "mockFile": ""
975
+ }
976
+ ]
686
977
  }
687
978
  ]
688
979
  }
@@ -42,7 +42,21 @@
42
42
  "userIdentityRulesDelete",
43
43
  "userRulesDistributionGet",
44
44
  "userRulesHistoryGet",
45
- "userTypeUpdate"
45
+ "userTypeUpdate",
46
+ "userMFAIdentityPoliciesList",
47
+ "userMFAIdentityPoliciesCreate",
48
+ "userMFAIdentityPoliciesGet",
49
+ "userMFAIdentityPoliciesUpdate",
50
+ "userMFAIdentityPoliciesDelete",
51
+ "userMFAIdentityPoliciesDestinationCandidatesList",
52
+ "userMFAIdentityPoliciesExcludedSourceCandidatesList",
53
+ "userMFAIdentityPoliciesFiltersList",
54
+ "userMFAIdentityPoliciesDestinationCandidatesFiltersList",
55
+ "userMFAIdentityPoliciesSourceCandidatesFiltersList",
56
+ "userMFAIdentityPoliciesSourceUsersCandidatesFiltersList",
57
+ "userMFAIdentityPoliciesMFAMethodsList",
58
+ "userMFAIdentityPoliciesSourceCandidatesList",
59
+ "userMFAIdentityPoliciesSourceUserCandidatesList"
46
60
  ],
47
61
  "external_name": "ph_request_type"
48
62
  },
@@ -474,6 +474,27 @@
474
474
  "mockFile": ""
475
475
  }
476
476
  ]
477
+ },
478
+ {
479
+ "name": "usersListQueryV2",
480
+ "protocol": "REST",
481
+ "method": "GET",
482
+ "entitypath": "{base_path}/{version}/users?{query}",
483
+ "requestSchema": "schema.json",
484
+ "responseSchema": "schema.json",
485
+ "timeout": 0,
486
+ "sendEmpty": false,
487
+ "sendGetBody": false,
488
+ "requestDatatype": "JSON",
489
+ "responseDatatype": "JSON",
490
+ "headers": {},
491
+ "responseObjects": [
492
+ {
493
+ "type": "default",
494
+ "key": "",
495
+ "mockFile": ""
496
+ }
497
+ ]
477
498
  }
478
499
  ]
479
500
  }
@@ -32,7 +32,8 @@
32
32
  "usersByPrincipalNameSearch",
33
33
  "usersBySidSearch",
34
34
  "usersTypeUpdate",
35
- "userStatisticsGet"
35
+ "userStatisticsGet",
36
+ "usersListQueryV2"
36
37
  ],
37
38
  "external_name": "ph_request_type"
38
39
  },
package/metadata.json CHANGED
@@ -29,19 +29,30 @@
29
29
  "isDeprecated": false
30
30
  },
31
31
  "brokerSince": "",
32
+ "authMethods": [
33
+ {
34
+ "type": "API Key",
35
+ "primary": true
36
+ }
37
+ ],
32
38
  "documentation": {
33
39
  "storeLink": "",
34
40
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-zero_networks",
35
41
  "repoLink": "https://gitlab.com/@itentialopensource/adapters/security/adapter-zero_networks",
36
42
  "docLink": "",
37
43
  "demoLinks": [],
38
- "trainingLinks": [],
44
+ "trainingLinks": [
45
+ {
46
+ "title": "Itential Academy",
47
+ "link": "https://www.itential.com/itential-academy/"
48
+ }
49
+ ],
39
50
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
40
51
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
41
52
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
42
53
  "webLink": "",
43
- "vendorLink": "",
44
- "productLink": "",
54
+ "vendorLink": "https://zeronetworks.com/",
55
+ "productLink": "https://zeronetworks.com/platform",
45
56
  "apiLinks": []
46
57
  },
47
58
  "assets": [],
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-zero_networks",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "This adapter integrates with system described as: zeroNetworks.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Zero_networks",
7
- "wizardVersion": "3.0.3",
8
- "engineVersion": "1.67.12",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.67.19",
9
9
  "adapterType": "http",
10
10
  "scripts": {
11
11
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -16,7 +16,6 @@
16
16
  "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
17
17
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
18
18
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
19
- "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
20
19
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
21
20
  "adapter:install": "npm i && node utils/tbScript.js install",
22
21
  "adapter:checkMigrate": "node utils/checkMigrate.js",
@@ -43,7 +42,7 @@
43
42
  ],
44
43
  "license": "Apache-2.0",
45
44
  "engines": {
46
- "node": ">= 8.0.0",
45
+ "node": ">= 14.0.0",
47
46
  "npm": ">= 6.0.0"
48
47
  },
49
48
  "repository": {
@@ -53,18 +52,17 @@
53
52
  "author": "Itential",
54
53
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-zero_networks#readme",
55
54
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^5.3.0",
55
+ "@itentialopensource/adapter-utils": "^5.3.10",
57
56
  "acorn": "^8.10.0",
58
57
  "ajv": "^8.12.0",
59
- "axios": "^1.4.0",
58
+ "axios": "^1.6.8",
60
59
  "commander": "^11.0.0",
61
60
  "dns-lookup-promise": "^1.0.4",
62
61
  "fs-extra": "^11.1.1",
63
62
  "json-query": "^2.2.2",
64
- "mocha": "^10.2.0",
63
+ "mocha": "^10.3.0",
65
64
  "mocha-param": "^2.0.1",
66
65
  "mongodb": "^4.16.0",
67
- "nyc": "^15.1.0",
68
66
  "ping": "^0.4.4",
69
67
  "prompts": "^2.4.2",
70
68
  "readline-sync": "^1.4.10",