@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
@@ -0,0 +1,293 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "inboundRulesList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/protection/rules/inbound?{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": "inboundRulesCreate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/protection/rules/inbound?{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": "inboundRulesExport",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/export?{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": "inboundRulesExportGet",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/export/csv/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": 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": "inboundRulesExcludedDestinationCandidatesList",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/excluded-local-candidates?{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": "inboundRulesFiltersList",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/filters?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "inboundRulesDesinationCandidatesFiltersList",
129
+ "protocol": "REST",
130
+ "method": "GET",
131
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/filters/local-candidates?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "sendGetBody": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "inboundRulesSourceCandidatesFiltersList",
150
+ "protocol": "REST",
151
+ "method": "GET",
152
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/filters/remote-candidates?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "sendGetBody": false,
158
+ "requestDatatype": "JSON",
159
+ "responseDatatype": "JSON",
160
+ "headers": {},
161
+ "responseObjects": [
162
+ {
163
+ "type": "default",
164
+ "key": "",
165
+ "mockFile": ""
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "name": "inboundRulesDestinationCandidatesList",
171
+ "protocol": "REST",
172
+ "method": "GET",
173
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/local-candidates?{query}",
174
+ "requestSchema": "schema.json",
175
+ "responseSchema": "schema.json",
176
+ "timeout": 0,
177
+ "sendEmpty": false,
178
+ "sendGetBody": false,
179
+ "requestDatatype": "JSON",
180
+ "responseDatatype": "JSON",
181
+ "headers": {},
182
+ "responseObjects": [
183
+ {
184
+ "type": "default",
185
+ "key": "",
186
+ "mockFile": ""
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "name": "inboundRulesSourceCandidatesList",
192
+ "protocol": "REST",
193
+ "method": "GET",
194
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/remote-candidates?{query}",
195
+ "requestSchema": "schema.json",
196
+ "responseSchema": "schema.json",
197
+ "timeout": 0,
198
+ "sendEmpty": false,
199
+ "sendGetBody": false,
200
+ "requestDatatype": "JSON",
201
+ "responseDatatype": "JSON",
202
+ "headers": {},
203
+ "responseObjects": [
204
+ {
205
+ "type": "default",
206
+ "key": "",
207
+ "mockFile": ""
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "name": "inboundRulesReviewApproveWithChanges",
213
+ "protocol": "REST",
214
+ "method": "PUT",
215
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/review/approve-with-changes/{pathv1}?{query}",
216
+ "requestSchema": "schema.json",
217
+ "responseSchema": "schema.json",
218
+ "timeout": 0,
219
+ "sendEmpty": false,
220
+ "requestDatatype": "JSON",
221
+ "responseDatatype": "JSON",
222
+ "headers": {},
223
+ "responseObjects": [
224
+ {
225
+ "type": "default",
226
+ "key": "",
227
+ "mockFile": ""
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "name": "inboundRuleGet",
233
+ "protocol": "REST",
234
+ "method": "GET",
235
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/{pathv1}?{query}",
236
+ "requestSchema": "schema.json",
237
+ "responseSchema": "schema.json",
238
+ "timeout": 0,
239
+ "sendEmpty": false,
240
+ "sendGetBody": false,
241
+ "requestDatatype": "JSON",
242
+ "responseDatatype": "JSON",
243
+ "headers": {},
244
+ "responseObjects": [
245
+ {
246
+ "type": "default",
247
+ "key": "",
248
+ "mockFile": ""
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "inboundRuleUpdate",
254
+ "protocol": "REST",
255
+ "method": "PUT",
256
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/{pathv1}?{query}",
257
+ "requestSchema": "schema.json",
258
+ "responseSchema": "schema.json",
259
+ "timeout": 0,
260
+ "sendEmpty": false,
261
+ "requestDatatype": "JSON",
262
+ "responseDatatype": "JSON",
263
+ "headers": {},
264
+ "responseObjects": [
265
+ {
266
+ "type": "default",
267
+ "key": "",
268
+ "mockFile": ""
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "name": "inboundRuleDelete",
274
+ "protocol": "REST",
275
+ "method": "DELETE",
276
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/{pathv1}?{query}",
277
+ "requestSchema": "schema.json",
278
+ "responseSchema": "schema.json",
279
+ "timeout": 0,
280
+ "sendEmpty": false,
281
+ "requestDatatype": "JSON",
282
+ "responseDatatype": "JSON",
283
+ "headers": {},
284
+ "responseObjects": [
285
+ {
286
+ "type": "default",
287
+ "key": "",
288
+ "mockFile": ""
289
+ }
290
+ ]
291
+ }
292
+ ]
293
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "inboundRulesList",
12
+ "enum": [
13
+ "inboundRulesList",
14
+ "inboundRulesCreate",
15
+ "inboundRulesExport",
16
+ "inboundRulesExportGet",
17
+ "inboundRulesExcludedDestinationCandidatesList",
18
+ "inboundRulesFiltersList",
19
+ "inboundRulesDesinationCandidatesFiltersList",
20
+ "inboundRulesSourceCandidatesFiltersList",
21
+ "inboundRulesDestinationCandidatesList",
22
+ "inboundRulesSourceCandidatesList",
23
+ "inboundRulesReviewApproveWithChanges",
24
+ "inboundRuleGet",
25
+ "inboundRuleUpdate",
26
+ "inboundRuleDelete"
27
+ ],
28
+ "external_name": "ph_request_type"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }
@@ -309,6 +309,27 @@
309
309
  "mockFile": ""
310
310
  }
311
311
  ]
312
+ },
313
+ {
314
+ "name": "outboundAllowRulesDestinationCandidatesListV2",
315
+ "protocol": "REST",
316
+ "method": "GET",
317
+ "entitypath": "{base_path}/{version}/protection/rules/outbound/remote-candidates?{query}",
318
+ "requestSchema": "schema.json",
319
+ "responseSchema": "schema.json",
320
+ "timeout": 0,
321
+ "sendEmpty": false,
322
+ "sendGetBody": false,
323
+ "requestDatatype": "JSON",
324
+ "responseDatatype": "JSON",
325
+ "headers": {},
326
+ "responseObjects": [
327
+ {
328
+ "type": "default",
329
+ "key": "",
330
+ "mockFile": ""
331
+ }
332
+ ]
312
333
  }
313
334
  ]
314
335
  }
@@ -24,7 +24,8 @@
24
24
  "outboundAllowRulesReviewApproveWithChanges",
25
25
  "outboundAllowRuleGet",
26
26
  "outboundAllowRuleUpdate",
27
- "outboundAllowRuleDelete"
27
+ "outboundAllowRuleDelete",
28
+ "outboundAllowRulesDestinationCandidatesListV2"
28
29
  ],
29
30
  "external_name": "ph_request_type"
30
31
  },
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "settingsInactiveAssetsList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/settings/entities-config?{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": "settingsInactiveAssetsUpdate",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/settings/entities-config?{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": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "settingsInactiveAssetsList",
12
+ "enum": [
13
+ "settingsInactiveAssetsList",
14
+ "settingsInactiveAssetsUpdate"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "settingsLicensesGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/settings/subscriptions/licenses/{pathv1}?{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
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "settingsLicensesGet",
12
+ "enum": [
13
+ "settingsLicensesGet"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }