@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,295 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "mFAIdentityPoliciesList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies?{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": "mFAIdentityPoliciesCreate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies?{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": "mFAIdentityPoliciesGet",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/{pathv1}?{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": "mFAIdentityPoliciesUpdate",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/{pathv1}?{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": "mFAIdentityPoliciesDelete",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "mFAIdentityPoliciesDestinationCandidatesList",
107
+ "protocol": "REST",
108
+ "method": "GET",
109
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/dst-asset-candidates?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "sendGetBody": false,
115
+ "requestDatatype": "JSON",
116
+ "responseDatatype": "JSON",
117
+ "headers": {},
118
+ "responseObjects": [
119
+ {
120
+ "type": "default",
121
+ "key": "",
122
+ "mockFile": ""
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "name": "mFAIdentityPoliciesExcludedSourceCandidatesList",
128
+ "protocol": "REST",
129
+ "method": "GET",
130
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/excluded-src-asset-candidates?{query}",
131
+ "requestSchema": "schema.json",
132
+ "responseSchema": "schema.json",
133
+ "timeout": 0,
134
+ "sendEmpty": false,
135
+ "sendGetBody": false,
136
+ "requestDatatype": "JSON",
137
+ "responseDatatype": "JSON",
138
+ "headers": {},
139
+ "responseObjects": [
140
+ {
141
+ "type": "default",
142
+ "key": "",
143
+ "mockFile": ""
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "name": "mFAIdentityPoliciesFiltersList",
149
+ "protocol": "REST",
150
+ "method": "GET",
151
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/filters?{query}",
152
+ "requestSchema": "schema.json",
153
+ "responseSchema": "schema.json",
154
+ "timeout": 0,
155
+ "sendEmpty": false,
156
+ "sendGetBody": false,
157
+ "requestDatatype": "JSON",
158
+ "responseDatatype": "JSON",
159
+ "headers": {},
160
+ "responseObjects": [
161
+ {
162
+ "type": "default",
163
+ "key": "",
164
+ "mockFile": ""
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "name": "mFAIdentityPoliciesDestinationCandidatesFiltersList",
170
+ "protocol": "REST",
171
+ "method": "GET",
172
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/filters/dst-asset-candidates?{query}",
173
+ "requestSchema": "schema.json",
174
+ "responseSchema": "schema.json",
175
+ "timeout": 0,
176
+ "sendEmpty": false,
177
+ "sendGetBody": false,
178
+ "requestDatatype": "JSON",
179
+ "responseDatatype": "JSON",
180
+ "headers": {},
181
+ "responseObjects": [
182
+ {
183
+ "type": "default",
184
+ "key": "",
185
+ "mockFile": ""
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "name": "mFAIdentityPoliciesSourceCandidatesFiltersList",
191
+ "protocol": "REST",
192
+ "method": "GET",
193
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/filters/src-asset-candidates?{query}",
194
+ "requestSchema": "schema.json",
195
+ "responseSchema": "schema.json",
196
+ "timeout": 0,
197
+ "sendEmpty": false,
198
+ "sendGetBody": false,
199
+ "requestDatatype": "JSON",
200
+ "responseDatatype": "JSON",
201
+ "headers": {},
202
+ "responseObjects": [
203
+ {
204
+ "type": "default",
205
+ "key": "",
206
+ "mockFile": ""
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "mFAIdentityPoliciesSourceUsersCandidatesFiltersList",
212
+ "protocol": "REST",
213
+ "method": "GET",
214
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/filters/src-users-candidates?{query}",
215
+ "requestSchema": "schema.json",
216
+ "responseSchema": "schema.json",
217
+ "timeout": 0,
218
+ "sendEmpty": false,
219
+ "sendGetBody": 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": "mFAIdentityPoliciesMFAMethodsList",
233
+ "protocol": "REST",
234
+ "method": "GET",
235
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/mfa-methods?{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": "mFAIdentityPoliciesSourceCandidatesList",
254
+ "protocol": "REST",
255
+ "method": "GET",
256
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/src-asset-candidates?{query}",
257
+ "requestSchema": "schema.json",
258
+ "responseSchema": "schema.json",
259
+ "timeout": 0,
260
+ "sendEmpty": false,
261
+ "sendGetBody": false,
262
+ "requestDatatype": "JSON",
263
+ "responseDatatype": "JSON",
264
+ "headers": {},
265
+ "responseObjects": [
266
+ {
267
+ "type": "default",
268
+ "key": "",
269
+ "mockFile": ""
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "name": "mFAIdentityPoliciesSourceUserCandidatesList",
275
+ "protocol": "REST",
276
+ "method": "GET",
277
+ "entitypath": "{base_path}/{version}/protection/identity/reactive-policies/src-users-candidates?{query}",
278
+ "requestSchema": "schema.json",
279
+ "responseSchema": "schema.json",
280
+ "timeout": 0,
281
+ "sendEmpty": false,
282
+ "sendGetBody": false,
283
+ "requestDatatype": "JSON",
284
+ "responseDatatype": "JSON",
285
+ "headers": {},
286
+ "responseObjects": [
287
+ {
288
+ "type": "default",
289
+ "key": "",
290
+ "mockFile": ""
291
+ }
292
+ ]
293
+ }
294
+ ]
295
+ }
@@ -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": "mFAIdentityPoliciesList",
12
+ "enum": [
13
+ "mFAIdentityPoliciesList",
14
+ "mFAIdentityPoliciesCreate",
15
+ "mFAIdentityPoliciesGet",
16
+ "mFAIdentityPoliciesUpdate",
17
+ "mFAIdentityPoliciesDelete",
18
+ "mFAIdentityPoliciesDestinationCandidatesList",
19
+ "mFAIdentityPoliciesExcludedSourceCandidatesList",
20
+ "mFAIdentityPoliciesFiltersList",
21
+ "mFAIdentityPoliciesDestinationCandidatesFiltersList",
22
+ "mFAIdentityPoliciesSourceCandidatesFiltersList",
23
+ "mFAIdentityPoliciesSourceUsersCandidatesFiltersList",
24
+ "mFAIdentityPoliciesMFAMethodsList",
25
+ "mFAIdentityPoliciesSourceCandidatesList",
26
+ "mFAIdentityPoliciesSourceUserCandidatesList"
27
+ ],
28
+ "external_name": "ph_request_type"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }
@@ -374,6 +374,27 @@
374
374
  "mockFile": ""
375
375
  }
376
376
  ]
377
+ },
378
+ {
379
+ "name": "mFAInboundPoliciesSimulateResolveGet",
380
+ "protocol": "REST",
381
+ "method": "GET",
382
+ "entitypath": "{base_path}/{version}/protection/reactive-policies/inbound/simulate/resolve?{query}",
383
+ "requestSchema": "schema.json",
384
+ "responseSchema": "schema.json",
385
+ "timeout": 0,
386
+ "sendEmpty": false,
387
+ "sendGetBody": false,
388
+ "requestDatatype": "JSON",
389
+ "responseDatatype": "JSON",
390
+ "headers": {},
391
+ "responseObjects": [
392
+ {
393
+ "type": "default",
394
+ "key": "",
395
+ "mockFile": ""
396
+ }
397
+ ]
377
398
  }
378
399
  ]
379
400
  }
@@ -27,7 +27,8 @@
27
27
  "mFAInboundPoliciesSimulateSourceUserCandidatesList",
28
28
  "mFAInboundPoliciesGet",
29
29
  "mFAInboundPoliciesUpdate",
30
- "mFAInboundPoliciesDelete"
30
+ "mFAInboundPoliciesDelete",
31
+ "mFAInboundPoliciesSimulateResolveGet"
31
32
  ],
32
33
  "external_name": "ph_request_type"
33
34
  },
@@ -374,6 +374,27 @@
374
374
  "mockFile": ""
375
375
  }
376
376
  ]
377
+ },
378
+ {
379
+ "name": "mFAOutboundPoliciesSimulateResolveGet",
380
+ "protocol": "REST",
381
+ "method": "GET",
382
+ "entitypath": "{base_path}/{version}/protection/reactive-policies/outbound/simulate/resolve?{query}",
383
+ "requestSchema": "schema.json",
384
+ "responseSchema": "schema.json",
385
+ "timeout": 0,
386
+ "sendEmpty": false,
387
+ "sendGetBody": false,
388
+ "requestDatatype": "JSON",
389
+ "responseDatatype": "JSON",
390
+ "headers": {},
391
+ "responseObjects": [
392
+ {
393
+ "type": "default",
394
+ "key": "",
395
+ "mockFile": ""
396
+ }
397
+ ]
377
398
  }
378
399
  ]
379
400
  }
@@ -27,7 +27,8 @@
27
27
  "mFAOutboundPoliciesSimulateSourceUserCandidatesList",
28
28
  "mFAOutboundPoliciesGet",
29
29
  "mFAOutboundPoliciesUpdate",
30
- "mFAOutboundPoliciesDelete"
30
+ "mFAOutboundPoliciesDelete",
31
+ "mFAOutboundPoliciesSimulateResolveGet"
31
32
  ],
32
33
  "external_name": "ph_request_type"
33
34
  },
@@ -222,6 +222,46 @@
222
222
  "mockFile": ""
223
223
  }
224
224
  ]
225
+ },
226
+ {
227
+ "name": "inboundRulesReviewApprove",
228
+ "protocol": "REST",
229
+ "method": "PUT",
230
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/review/approve/{pathv1}?{query}",
231
+ "requestSchema": "schema.json",
232
+ "responseSchema": "schema.json",
233
+ "timeout": 0,
234
+ "sendEmpty": false,
235
+ "requestDatatype": "JSON",
236
+ "responseDatatype": "JSON",
237
+ "headers": {},
238
+ "responseObjects": [
239
+ {
240
+ "type": "default",
241
+ "key": "",
242
+ "mockFile": ""
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "name": "inboundRulesReviewDeny",
248
+ "protocol": "REST",
249
+ "method": "DELETE",
250
+ "entitypath": "{base_path}/{version}/protection/rules/inbound/review/reject/{pathv1}?{query}",
251
+ "requestSchema": "schema.json",
252
+ "responseSchema": "schema.json",
253
+ "timeout": 0,
254
+ "sendEmpty": false,
255
+ "requestDatatype": "JSON",
256
+ "responseDatatype": "JSON",
257
+ "headers": {},
258
+ "responseObjects": [
259
+ {
260
+ "type": "default",
261
+ "key": "",
262
+ "mockFile": ""
263
+ }
264
+ ]
225
265
  }
226
266
  ]
227
267
  }
@@ -20,7 +20,9 @@
20
20
  "outboundBlockRulesReviewDeny",
21
21
  "outboundAllowRulesReviewApprove",
22
22
  "outboundAllowRulesReviewDeny",
23
- "rulesStatisticsGet"
23
+ "rulesStatisticsGet",
24
+ "inboundRulesReviewApprove",
25
+ "inboundRulesReviewDeny"
24
26
  ],
25
27
  "external_name": "ph_request_type"
26
28
  }