@itentialopensource/adapter-zscaler 0.10.10 → 0.10.12

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 (43) hide show
  1. package/CALLS.md +588 -0
  2. package/adapter.js +9953 -0
  3. package/entities/APIAuthentication/action.json +165 -0
  4. package/entities/APIAuthentication/schema.json +26 -0
  5. package/entities/AdvancedSettings/action.json +45 -0
  6. package/entities/AdvancedSettings/schema.json +20 -0
  7. package/entities/AdvancedThreatProtectionPolicy/action.json +127 -0
  8. package/entities/AdvancedThreatProtectionPolicy/schema.json +24 -0
  9. package/entities/AuthenticationSettings/action.json +66 -0
  10. package/entities/AuthenticationSettings/schema.json +21 -0
  11. package/entities/CloudAppControlPolicy/action.json +247 -0
  12. package/entities/CloudAppControlPolicy/schema.json +41 -0
  13. package/entities/CloudApplications/action.json +46 -0
  14. package/entities/CloudApplications/schema.json +20 -0
  15. package/entities/CloudNanologStreamingServiceNSS/action.json +252 -0
  16. package/entities/CloudNanologStreamingServiceNSS/schema.json +30 -0
  17. package/entities/DNSControlPolicy/action.json +106 -0
  18. package/entities/DNSControlPolicy/schema.json +23 -0
  19. package/entities/FileTypeControlPolicy/action.json +127 -0
  20. package/entities/FileTypeControlPolicy/schema.json +24 -0
  21. package/entities/ForwardingControlPolicy/action.json +204 -0
  22. package/entities/ForwardingControlPolicy/schema.json +11 -1
  23. package/entities/IPSControlPolicy/action.json +106 -0
  24. package/entities/IPSControlPolicy/schema.json +23 -0
  25. package/entities/MalwareProtectionPolicy/action.json +168 -0
  26. package/entities/MalwareProtectionPolicy/schema.json +26 -0
  27. package/entities/OrganizationDetails/action.json +67 -0
  28. package/entities/OrganizationDetails/schema.json +21 -0
  29. package/entities/RemoteAssistanceSupport/action.json +45 -0
  30. package/entities/RemoteAssistanceSupport/schema.json +20 -0
  31. package/entities/SSLInspectionPolicy/action.json +106 -0
  32. package/entities/SSLInspectionPolicy/schema.json +23 -0
  33. package/entities/SandBoxPolicy/action.json +168 -0
  34. package/entities/SandBoxPolicy/schema.json +26 -0
  35. package/entities/URLFilteringPolicy/action.json +148 -0
  36. package/entities/URLFilteringPolicy/schema.json +25 -0
  37. package/entities/URLFilteringandCloudAppControlSettings/action.json +45 -0
  38. package/entities/URLFilteringandCloudAppControlSettings/schema.json +20 -0
  39. package/package.json +2 -2
  40. package/pronghorn.json +4332 -0
  41. package/report/adapterInfo.json +7 -7
  42. package/test/integration/adapterTestIntegration.js +2481 -0
  43. package/test/unit/adapterTestUnit.js +2384 -1
@@ -0,0 +1,165 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAuthenticatedSession",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "deleteAuthenticatedSession",
26
+ "protocol": "REST",
27
+ "method": "DELETE",
28
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "postAuthenticatedSession__v1",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "postAuthenticatedSession__v2",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "postAuthenticatedSession__v3",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "postAuthenticatedSession__v4",
106
+ "protocol": "REST",
107
+ "method": "POST",
108
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "requestDatatype": "JSON",
114
+ "responseDatatype": "JSON",
115
+ "headers": {},
116
+ "responseObjects": [
117
+ {
118
+ "type": "default",
119
+ "key": "",
120
+ "mockFile": ""
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "postAuthenticatedSession__v5",
126
+ "protocol": "REST",
127
+ "method": "POST",
128
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
129
+ "requestSchema": "schema.json",
130
+ "responseSchema": "schema.json",
131
+ "timeout": 0,
132
+ "sendEmpty": false,
133
+ "requestDatatype": "JSON",
134
+ "responseDatatype": "JSON",
135
+ "headers": {},
136
+ "responseObjects": [
137
+ {
138
+ "type": "default",
139
+ "key": "",
140
+ "mockFile": ""
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "postAuthenticatedSession__v6",
146
+ "protocol": "REST",
147
+ "method": "POST",
148
+ "entitypath": "{base_path}/{version}/authenticatedSession?{query}",
149
+ "requestSchema": "schema.json",
150
+ "responseSchema": "schema.json",
151
+ "timeout": 0,
152
+ "sendEmpty": false,
153
+ "requestDatatype": "JSON",
154
+ "responseDatatype": "JSON",
155
+ "headers": {},
156
+ "responseObjects": [
157
+ {
158
+ "type": "default",
159
+ "key": "",
160
+ "mockFile": ""
161
+ }
162
+ ]
163
+ }
164
+ ]
165
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAuthenticatedSession",
12
+ "enum": [
13
+ "getAuthenticatedSession",
14
+ "deleteAuthenticatedSession",
15
+ "postAuthenticatedSession__v1",
16
+ "postAuthenticatedSession__v2",
17
+ "postAuthenticatedSession__v3",
18
+ "postAuthenticatedSession__v4",
19
+ "postAuthenticatedSession__v5",
20
+ "postAuthenticatedSession__v6"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAdvancedSettings",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/advancedSettings?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putAdvancedSettings",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/advancedSettings?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAdvancedSettings",
12
+ "enum": [
13
+ "getAdvancedSettings",
14
+ "putAdvancedSettings"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAdvancedThreatSettings",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/advancedThreatSettings?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putAdvancedThreatSettings",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/advancedThreatSettings?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getMaliciousUrls",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/maliciousUrls?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "putMaliciousUrls",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/maliciousUrls?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "getSecurityExceptions",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/securityExceptions?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "sendGetBody": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "putSecurityExceptions",
108
+ "protocol": "REST",
109
+ "method": "PUT",
110
+ "entitypath": "{base_path}/{version}/cyberThreatProtection/securityExceptions?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "requestDatatype": "JSON",
116
+ "responseDatatype": "JSON",
117
+ "headers": {},
118
+ "responseObjects": [
119
+ {
120
+ "type": "default",
121
+ "key": "",
122
+ "mockFile": ""
123
+ }
124
+ ]
125
+ }
126
+ ]
127
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAdvancedThreatSettings",
12
+ "enum": [
13
+ "getAdvancedThreatSettings",
14
+ "putAdvancedThreatSettings",
15
+ "getMaliciousUrls",
16
+ "putMaliciousUrls",
17
+ "getSecurityExceptions",
18
+ "putSecurityExceptions"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAuthSettings",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/authSettings?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putAuthSettings",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/authSettings?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getAuthSettingsLite",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/authSettings/lite?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAuthSettings",
12
+ "enum": [
13
+ "getAuthSettings",
14
+ "putAuthSettings",
15
+ "getAuthSettingsLite"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }