@crowdstrike/foundry-js 0.17.1 → 0.19.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.
@@ -6,6 +6,10 @@
6
6
  *
7
7
  **/
8
8
  import { AlertsApiRequestMessage, AlertsApiResponseMessage } from './alerts';
9
+ import { CloudSecurityAssetsApiRequestMessage, CloudSecurityAssetsApiResponseMessage } from './cloud-security-assets';
10
+ import { CloudregistrationApiRequestMessage, CloudregistrationApiResponseMessage } from './cloudregistration';
11
+ import { ContainerSecurityApiRequestMessage, ContainerSecurityApiResponseMessage } from './container-security';
12
+ import { CspmRegistrationApiRequestMessage, CspmRegistrationApiResponseMessage } from './cspm-registration';
9
13
  import { CustomobjectsApiRequestMessage, CustomobjectsApiResponseMessage } from './customobjects';
10
14
  import { DetectsApiRequestMessage, DetectsApiResponseMessage } from './detects';
11
15
  import { DevicesApiRequestMessage, DevicesApiResponseMessage } from './devices';
@@ -15,9 +19,10 @@ import { IncidentsApiRequestMessage, IncidentsApiResponseMessage } from './incid
15
19
  import { LoggingapiApiRequestMessage, LoggingapiApiResponseMessage } from './loggingapi';
16
20
  import { MitreApiRequestMessage, MitreApiResponseMessage } from './mitre';
17
21
  import { PluginsApiRequestMessage, PluginsApiResponseMessage } from './plugins';
22
+ import { RegistryAssessmentApiRequestMessage, RegistryAssessmentApiResponseMessage } from './registry-assessment';
18
23
  import { RemoteResponseApiRequestMessage, RemoteResponseApiResponseMessage } from './remote-response';
19
24
  import { UserManagementApiRequestMessage, UserManagementApiResponseMessage } from './user-management';
20
25
  import { WorkflowsApiRequestMessage, WorkflowsApiResponseMessage } from './workflows';
21
- export { AlertsApiRequestMessage, AlertsApiResponseMessage, DetectsApiRequestMessage, DetectsApiResponseMessage, DevicesApiRequestMessage, DevicesApiResponseMessage, FwmgrApiRequestMessage, FwmgrApiResponseMessage, IncidentsApiRequestMessage, IncidentsApiResponseMessage, MitreApiRequestMessage, MitreApiResponseMessage, PluginsApiRequestMessage, PluginsApiResponseMessage, RemoteResponseApiRequestMessage, RemoteResponseApiResponseMessage, UserManagementApiRequestMessage, UserManagementApiResponseMessage, WorkflowsApiRequestMessage, WorkflowsApiResponseMessage, CustomobjectsApiRequestMessage, CustomobjectsApiResponseMessage, FaasGatewayApiRequestMessage, FaasGatewayApiResponseMessage, LoggingapiApiRequestMessage, LoggingapiApiResponseMessage, };
22
- export type ApiRequestMessage = AlertsApiRequestMessage | DetectsApiRequestMessage | DevicesApiRequestMessage | FwmgrApiRequestMessage | IncidentsApiRequestMessage | MitreApiRequestMessage | PluginsApiRequestMessage | RemoteResponseApiRequestMessage | UserManagementApiRequestMessage | WorkflowsApiRequestMessage | CustomobjectsApiRequestMessage | FaasGatewayApiRequestMessage | LoggingapiApiRequestMessage;
23
- export type ApiResponseMessage = AlertsApiResponseMessage | DetectsApiResponseMessage | DevicesApiResponseMessage | FwmgrApiResponseMessage | IncidentsApiResponseMessage | MitreApiResponseMessage | PluginsApiResponseMessage | RemoteResponseApiResponseMessage | UserManagementApiResponseMessage | WorkflowsApiResponseMessage | CustomobjectsApiResponseMessage | FaasGatewayApiResponseMessage | LoggingapiApiResponseMessage;
26
+ export { AlertsApiRequestMessage, AlertsApiResponseMessage, DetectsApiRequestMessage, DetectsApiResponseMessage, DevicesApiRequestMessage, DevicesApiResponseMessage, FwmgrApiRequestMessage, FwmgrApiResponseMessage, IncidentsApiRequestMessage, IncidentsApiResponseMessage, MitreApiRequestMessage, MitreApiResponseMessage, PluginsApiRequestMessage, PluginsApiResponseMessage, RemoteResponseApiRequestMessage, RemoteResponseApiResponseMessage, UserManagementApiRequestMessage, UserManagementApiResponseMessage, WorkflowsApiRequestMessage, WorkflowsApiResponseMessage, CloudSecurityAssetsApiRequestMessage, CloudSecurityAssetsApiResponseMessage, CloudregistrationApiRequestMessage, CloudregistrationApiResponseMessage, ContainerSecurityApiRequestMessage, ContainerSecurityApiResponseMessage, CspmRegistrationApiRequestMessage, CspmRegistrationApiResponseMessage, CustomobjectsApiRequestMessage, CustomobjectsApiResponseMessage, FaasGatewayApiRequestMessage, FaasGatewayApiResponseMessage, LoggingapiApiRequestMessage, LoggingapiApiResponseMessage, RegistryAssessmentApiRequestMessage, RegistryAssessmentApiResponseMessage, };
27
+ export type ApiRequestMessage = AlertsApiRequestMessage | DetectsApiRequestMessage | DevicesApiRequestMessage | FwmgrApiRequestMessage | IncidentsApiRequestMessage | MitreApiRequestMessage | PluginsApiRequestMessage | RemoteResponseApiRequestMessage | UserManagementApiRequestMessage | WorkflowsApiRequestMessage | CloudSecurityAssetsApiRequestMessage | CloudregistrationApiRequestMessage | ContainerSecurityApiRequestMessage | CspmRegistrationApiRequestMessage | CustomobjectsApiRequestMessage | FaasGatewayApiRequestMessage | LoggingapiApiRequestMessage | RegistryAssessmentApiRequestMessage;
28
+ export type ApiResponseMessage = AlertsApiResponseMessage | DetectsApiResponseMessage | DevicesApiResponseMessage | FwmgrApiResponseMessage | IncidentsApiResponseMessage | MitreApiResponseMessage | PluginsApiResponseMessage | RemoteResponseApiResponseMessage | UserManagementApiResponseMessage | WorkflowsApiResponseMessage | CloudSecurityAssetsApiResponseMessage | CloudregistrationApiResponseMessage | ContainerSecurityApiResponseMessage | CspmRegistrationApiResponseMessage | CustomobjectsApiResponseMessage | FaasGatewayApiResponseMessage | LoggingapiApiResponseMessage | RegistryAssessmentApiResponseMessage;
package/dist/bridge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BroadcastMessage, DataUpdateMessage, LivereloadMessage, LocalData, MessageEnvelope, PayloadOf, RequestMessage, ResponseFor, ResponseMessage, UnidirectionalRequestMessage } from './types';
1
+ import type { BroadcastMessage, DataUpdateMessage, LivereloadMessage, LocalData, MessageEnvelope, RequestMessage, ResponseMessage, UnidirectionalRequestMessage } from './types';
2
2
  interface BridgeOptions<DATA extends LocalData> {
3
3
  onDataUpdate?: (event: DataUpdateMessage<DATA>) => void;
4
4
  onBroadcast?: (event: BroadcastMessage) => void;
@@ -14,7 +14,7 @@ export declare class Bridge<DATA extends LocalData = LocalData> {
14
14
  destroy(): void;
15
15
  setOrigin(origin: string): void;
16
16
  sendUnidirectionalMessage(message: UnidirectionalRequestMessage): void;
17
- postMessage<REQ extends RequestMessage>(message: REQ): Promise<PayloadOf<ResponseFor<REQ, DATA>>>;
17
+ postMessage<REQ extends RequestMessage = RequestMessage, ResolvedValue = void>(message: REQ): Promise<ResolvedValue>;
18
18
  private handleMessageWrapper;
19
19
  handleMessage: (event: MessageEvent<MessageEnvelope<ResponseMessage<DATA>> | unknown>) => void;
20
20
  throwError(message: string): void;
package/dist/index.js CHANGED
@@ -1,56 +1,57 @@
1
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
2
- // require the crypto API and do not support built-in fallback to lower quality random number
3
- // generators (like Math.random()).
1
+ const byteToHex = [];
2
+ for (let i = 0; i < 256; ++i) {
3
+ byteToHex.push((i + 0x100).toString(16).slice(1));
4
+ }
5
+ function unsafeStringify(arr, offset = 0) {
6
+ return (byteToHex[arr[offset + 0]] +
7
+ byteToHex[arr[offset + 1]] +
8
+ byteToHex[arr[offset + 2]] +
9
+ byteToHex[arr[offset + 3]] +
10
+ '-' +
11
+ byteToHex[arr[offset + 4]] +
12
+ byteToHex[arr[offset + 5]] +
13
+ '-' +
14
+ byteToHex[arr[offset + 6]] +
15
+ byteToHex[arr[offset + 7]] +
16
+ '-' +
17
+ byteToHex[arr[offset + 8]] +
18
+ byteToHex[arr[offset + 9]] +
19
+ '-' +
20
+ byteToHex[arr[offset + 10]] +
21
+ byteToHex[arr[offset + 11]] +
22
+ byteToHex[arr[offset + 12]] +
23
+ byteToHex[arr[offset + 13]] +
24
+ byteToHex[arr[offset + 14]] +
25
+ byteToHex[arr[offset + 15]]).toLowerCase();
26
+ }
27
+
4
28
  let getRandomValues;
5
29
  const rnds8 = new Uint8Array(16);
6
30
  function rng() {
7
- // lazy load so that environments that need to polyfill have a chance to do so
8
- if (!getRandomValues) {
9
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
10
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
11
-
12
31
  if (!getRandomValues) {
13
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
32
+ if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
33
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
34
+ }
35
+ getRandomValues = crypto.getRandomValues.bind(crypto);
14
36
  }
15
- }
16
-
17
- return getRandomValues(rnds8);
18
- }
19
-
20
- /**
21
- * Convert array of 16 byte values to UUID string format of the form:
22
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
23
- */
24
-
25
- const byteToHex = [];
26
-
27
- for (let i = 0; i < 256; ++i) {
28
- byteToHex.push((i + 0x100).toString(16).slice(1));
29
- }
30
-
31
- function unsafeStringify(arr, offset = 0) {
32
- // Note: Be careful editing this code! It's been tuned for performance
33
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
34
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
37
+ return getRandomValues(rnds8);
35
38
  }
36
39
 
37
40
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
38
- var native = {
39
- randomUUID
40
- };
41
+ var native = { randomUUID };
41
42
 
42
43
  function v4(options, buf, offset) {
43
- if (native.randomUUID && !buf && !options) {
44
- return native.randomUUID();
45
- }
46
-
47
- options = options || {};
48
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
49
-
50
- rnds[6] = rnds[6] & 0x0f | 0x40;
51
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
52
-
53
- return unsafeStringify(rnds);
44
+ if (native.randomUUID && true && !options) {
45
+ return native.randomUUID();
46
+ }
47
+ options = options || {};
48
+ const rnds = options.random ?? options.rng?.() ?? rng();
49
+ if (rnds.length < 16) {
50
+ throw new Error('Random bytes length must be >= 16');
51
+ }
52
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
53
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
54
+ return unsafeStringify(rnds);
54
55
  }
55
56
 
56
57
  const VERSION = 'current';
@@ -79,7 +80,7 @@ function timeoutForMessage(message) {
79
80
  : // Requests not explicitly covered above will not have a timeout. This includes 'fileUpload', which is a user interaction that can take any amount of time.
80
81
  null;
81
82
  // In tests we have mocked responses which do not require long timeouts
82
- return timeout !== null && false ? 40 : timeout;
83
+ return timeout;
83
84
  }
84
85
  class Bridge {
85
86
  onDataUpdate;
@@ -187,7 +188,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
187
188
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
188
189
  PERFORMANCE OF THIS SOFTWARE.
189
190
  ***************************************************************************** */
190
- /* global Reflect, Promise, SuppressedError, Symbol */
191
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
191
192
 
192
193
 
193
194
  function __decorate(decorators, target, key, desc) {
@@ -371,13 +372,15 @@ function defaultMethodNamesOrAssert(methodNames) {
371
372
  const isMetaEvent = eventName => eventName === listenerAdded || eventName === listenerRemoved;
372
373
 
373
374
  function emitMetaEvent(emitter, eventName, eventData) {
374
- if (isMetaEvent(eventName)) {
375
- try {
376
- canEmitMetaEvents = true;
377
- emitter.emit(eventName, eventData);
378
- } finally {
379
- canEmitMetaEvents = false;
380
- }
375
+ if (!isMetaEvent(eventName)) {
376
+ return;
377
+ }
378
+
379
+ try {
380
+ canEmitMetaEvents = true;
381
+ emitter.emit(eventName, eventData);
382
+ } finally {
383
+ canEmitMetaEvents = false;
381
384
  }
382
385
  }
383
386
 
@@ -479,7 +482,7 @@ class Emittery {
479
482
  }
480
483
  }
481
484
 
482
- on(eventNames, listener) {
485
+ on(eventNames, listener, {signal} = {}) {
483
486
  assertListener(listener);
484
487
 
485
488
  eventNames = Array.isArray(eventNames) ? eventNames : [eventNames];
@@ -501,7 +504,18 @@ class Emittery {
501
504
  }
502
505
  }
503
506
 
504
- return this.off.bind(this, eventNames, listener);
507
+ const off = () => {
508
+ this.off(eventNames, listener);
509
+ signal?.removeEventListener('abort', off);
510
+ };
511
+
512
+ signal?.addEventListener('abort', off, {once: true});
513
+
514
+ if (signal?.aborted) {
515
+ off();
516
+ }
517
+
518
+ return off;
505
519
  }
506
520
 
507
521
  off(eventNames, listener) {
@@ -527,11 +541,19 @@ class Emittery {
527
541
  }
528
542
  }
529
543
 
530
- once(eventNames) {
544
+ once(eventNames, predicate) {
545
+ if (predicate !== undefined && typeof predicate !== 'function') {
546
+ throw new TypeError('predicate must be a function');
547
+ }
548
+
531
549
  let off_;
532
550
 
533
551
  const promise = new Promise(resolve => {
534
552
  off_ = this.on(eventNames, data => {
553
+ if (predicate && !predicate(data)) {
554
+ return;
555
+ }
556
+
535
557
  off_();
536
558
  resolve(data);
537
559
  });
@@ -611,14 +633,26 @@ class Emittery {
611
633
  /* eslint-enable no-await-in-loop */
612
634
  }
613
635
 
614
- onAny(listener) {
636
+ onAny(listener, {signal} = {}) {
615
637
  assertListener(listener);
616
638
 
617
639
  this.logIfDebugEnabled('subscribeAny', undefined, undefined);
618
640
 
619
641
  anyMap.get(this).add(listener);
620
642
  emitMetaEvent(this, listenerAdded, {listener});
621
- return this.offAny.bind(this, listener);
643
+
644
+ const offAny = () => {
645
+ this.offAny(listener);
646
+ signal?.removeEventListener('abort', offAny);
647
+ };
648
+
649
+ signal?.addEventListener('abort', offAny, {once: true});
650
+
651
+ if (signal?.aborted) {
652
+ offAny();
653
+ }
654
+
655
+ return offAny;
622
656
  }
623
657
 
624
658
  anyEvent() {
@@ -1021,6 +1055,217 @@ class AlertsApiBridge {
1021
1055
  }
1022
1056
  }
1023
1057
 
1058
+ /**
1059
+ *
1060
+ * This file is autogenerated.
1061
+ *
1062
+ * DO NOT EDIT DIRECTLY
1063
+ *
1064
+ **/
1065
+ class CloudSecurityAssetsApiBridge {
1066
+ bridge;
1067
+ constructor(bridge) {
1068
+ this.bridge = bridge;
1069
+ }
1070
+ getBridge() {
1071
+ return this.bridge;
1072
+ }
1073
+ async getAggregatesResourcesCountByManagedByV1(urlParams = {}) {
1074
+ const message = {
1075
+ type: 'api',
1076
+ api: 'cloudSecurityAssets',
1077
+ method: 'getAggregatesResourcesCountByManagedByV1',
1078
+ payload: {
1079
+ params: urlParams,
1080
+ },
1081
+ };
1082
+ return this.bridge.postMessage(message);
1083
+ }
1084
+ }
1085
+
1086
+ /**
1087
+ *
1088
+ * This file is autogenerated.
1089
+ *
1090
+ * DO NOT EDIT DIRECTLY
1091
+ *
1092
+ **/
1093
+ class CloudregistrationApiBridge {
1094
+ bridge;
1095
+ constructor(bridge) {
1096
+ this.bridge = bridge;
1097
+ }
1098
+ getBridge() {
1099
+ return this.bridge;
1100
+ }
1101
+ async getCloudSecurityRegistrationAwsCombinedAccountsV1(urlParams = {}) {
1102
+ const message = {
1103
+ type: 'api',
1104
+ api: 'cloudregistration',
1105
+ method: 'getCloudSecurityRegistrationAwsCombinedAccountsV1',
1106
+ payload: {
1107
+ params: urlParams,
1108
+ },
1109
+ };
1110
+ return this.bridge.postMessage(message);
1111
+ }
1112
+ }
1113
+
1114
+ /**
1115
+ *
1116
+ * This file is autogenerated.
1117
+ *
1118
+ * DO NOT EDIT DIRECTLY
1119
+ *
1120
+ **/
1121
+ class ContainerSecurityApiBridge {
1122
+ bridge;
1123
+ constructor(bridge) {
1124
+ this.bridge = bridge;
1125
+ }
1126
+ getBridge() {
1127
+ return this.bridge;
1128
+ }
1129
+ async getAggregatesClustersCountV1(urlParams = {}) {
1130
+ const message = {
1131
+ type: 'api',
1132
+ api: 'containerSecurity',
1133
+ method: 'getAggregatesClustersCountV1',
1134
+ payload: {
1135
+ params: urlParams,
1136
+ },
1137
+ };
1138
+ return this.bridge.postMessage(message);
1139
+ }
1140
+ async getAggregatesContainersCountV1(urlParams = {}) {
1141
+ const message = {
1142
+ type: 'api',
1143
+ api: 'containerSecurity',
1144
+ method: 'getAggregatesContainersCountV1',
1145
+ payload: {
1146
+ params: urlParams,
1147
+ },
1148
+ };
1149
+ return this.bridge.postMessage(message);
1150
+ }
1151
+ async getAggregatesContainersGroupByManagedV1(urlParams = {}) {
1152
+ const message = {
1153
+ type: 'api',
1154
+ api: 'containerSecurity',
1155
+ method: 'getAggregatesContainersGroupByManagedV1',
1156
+ payload: {
1157
+ params: urlParams,
1158
+ },
1159
+ };
1160
+ return this.bridge.postMessage(message);
1161
+ }
1162
+ async getAggregatesContainersSensorCoverageV1(urlParams = {}) {
1163
+ const message = {
1164
+ type: 'api',
1165
+ api: 'containerSecurity',
1166
+ method: 'getAggregatesContainersSensorCoverageV1',
1167
+ payload: {
1168
+ params: urlParams,
1169
+ },
1170
+ };
1171
+ return this.bridge.postMessage(message);
1172
+ }
1173
+ async getAggregatesImagesCountByStateV1(urlParams = {}) {
1174
+ const message = {
1175
+ type: 'api',
1176
+ api: 'containerSecurity',
1177
+ method: 'getAggregatesImagesCountByStateV1',
1178
+ payload: {
1179
+ params: urlParams,
1180
+ },
1181
+ };
1182
+ return this.bridge.postMessage(message);
1183
+ }
1184
+ async getAggregatesNodesCountV1(urlParams = {}) {
1185
+ const message = {
1186
+ type: 'api',
1187
+ api: 'containerSecurity',
1188
+ method: 'getAggregatesNodesCountV1',
1189
+ payload: {
1190
+ params: urlParams,
1191
+ },
1192
+ };
1193
+ return this.bridge.postMessage(message);
1194
+ }
1195
+ async getAggregatesPodsCountV1(urlParams = {}) {
1196
+ const message = {
1197
+ type: 'api',
1198
+ api: 'containerSecurity',
1199
+ method: 'getAggregatesPodsCountV1',
1200
+ payload: {
1201
+ params: urlParams,
1202
+ },
1203
+ };
1204
+ return this.bridge.postMessage(message);
1205
+ }
1206
+ async getAggregatesUnidentifiedContainersCountV1(urlParams = {}) {
1207
+ const message = {
1208
+ type: 'api',
1209
+ api: 'containerSecurity',
1210
+ method: 'getAggregatesUnidentifiedContainersCountV1',
1211
+ payload: {
1212
+ params: urlParams,
1213
+ },
1214
+ };
1215
+ return this.bridge.postMessage(message);
1216
+ }
1217
+ async getCombinedClustersV1(urlParams = {}) {
1218
+ const message = {
1219
+ type: 'api',
1220
+ api: 'containerSecurity',
1221
+ method: 'getCombinedClustersV1',
1222
+ payload: {
1223
+ params: urlParams,
1224
+ },
1225
+ };
1226
+ return this.bridge.postMessage(message);
1227
+ }
1228
+ }
1229
+
1230
+ /**
1231
+ *
1232
+ * This file is autogenerated.
1233
+ *
1234
+ * DO NOT EDIT DIRECTLY
1235
+ *
1236
+ **/
1237
+ class CspmRegistrationApiBridge {
1238
+ bridge;
1239
+ constructor(bridge) {
1240
+ this.bridge = bridge;
1241
+ }
1242
+ getBridge() {
1243
+ return this.bridge;
1244
+ }
1245
+ async getCspmregistrationCloudConnectCspmAzureCombinedAccountsV1(urlParams = {}) {
1246
+ const message = {
1247
+ type: 'api',
1248
+ api: 'cspmRegistration',
1249
+ method: 'getCspmregistrationCloudConnectCspmAzureCombinedAccountsV1',
1250
+ payload: {
1251
+ params: urlParams,
1252
+ },
1253
+ };
1254
+ return this.bridge.postMessage(message);
1255
+ }
1256
+ async getCspmregistrationCloudConnectCspmGcpCombinedAccountsV1(urlParams = {}) {
1257
+ const message = {
1258
+ type: 'api',
1259
+ api: 'cspmRegistration',
1260
+ method: 'getCspmregistrationCloudConnectCspmGcpCombinedAccountsV1',
1261
+ payload: {
1262
+ params: urlParams,
1263
+ },
1264
+ };
1265
+ return this.bridge.postMessage(message);
1266
+ }
1267
+ }
1268
+
1024
1269
  /**
1025
1270
  *
1026
1271
  * This file is autogenerated.
@@ -1276,6 +1521,17 @@ class DevicesApiBridge {
1276
1521
  };
1277
1522
  return this.bridge.postMessage(message);
1278
1523
  }
1524
+ async getEntitiesDevicesV1(urlParams) {
1525
+ const message = {
1526
+ type: 'api',
1527
+ api: 'devices',
1528
+ method: 'getEntitiesDevicesV1',
1529
+ payload: {
1530
+ params: urlParams,
1531
+ },
1532
+ };
1533
+ return this.bridge.postMessage(message);
1534
+ }
1279
1535
  async getEntitiesFgaGroupsV1(urlParams) {
1280
1536
  const message = {
1281
1537
  type: 'api',
@@ -1376,6 +1632,18 @@ class DevicesApiBridge {
1376
1632
  };
1377
1633
  return this.bridge.postMessage(message);
1378
1634
  }
1635
+ async patchEntitiesDevicesV1(postBody, urlParams) {
1636
+ const message = {
1637
+ type: 'api',
1638
+ api: 'devices',
1639
+ method: 'patchEntitiesDevicesV1',
1640
+ payload: {
1641
+ body: postBody,
1642
+ params: urlParams,
1643
+ },
1644
+ };
1645
+ return this.bridge.postMessage(message);
1646
+ }
1379
1647
  async patchEntitiesGroupsV1(postBody, urlParams = {}) {
1380
1648
  const message = {
1381
1649
  type: 'api',
@@ -1472,6 +1740,18 @@ class DevicesApiBridge {
1472
1740
  };
1473
1741
  return this.bridge.postMessage(message);
1474
1742
  }
1743
+ async postEntitiesDevicesV1(postBody, urlParams) {
1744
+ const message = {
1745
+ type: 'api',
1746
+ api: 'devices',
1747
+ method: 'postEntitiesDevicesV1',
1748
+ payload: {
1749
+ body: postBody,
1750
+ params: urlParams,
1751
+ },
1752
+ };
1753
+ return this.bridge.postMessage(message);
1754
+ }
1475
1755
  async postEntitiesDevicesV2(postBody, urlParams = {}) {
1476
1756
  const message = {
1477
1757
  type: 'api',
@@ -2231,6 +2511,34 @@ class PluginsApiBridge {
2231
2511
  }
2232
2512
  }
2233
2513
 
2514
+ /**
2515
+ *
2516
+ * This file is autogenerated.
2517
+ *
2518
+ * DO NOT EDIT DIRECTLY
2519
+ *
2520
+ **/
2521
+ class RegistryAssessmentApiBridge {
2522
+ bridge;
2523
+ constructor(bridge) {
2524
+ this.bridge = bridge;
2525
+ }
2526
+ getBridge() {
2527
+ return this.bridge;
2528
+ }
2529
+ async getAggregatesRegistriesCountByStateV1(urlParams = {}) {
2530
+ const message = {
2531
+ type: 'api',
2532
+ api: 'registryAssessment',
2533
+ method: 'getAggregatesRegistriesCountByStateV1',
2534
+ payload: {
2535
+ params: urlParams,
2536
+ },
2537
+ };
2538
+ return this.bridge.postMessage(message);
2539
+ }
2540
+ }
2541
+
2234
2542
  /**
2235
2543
  *
2236
2544
  * This file is autogenerated.
@@ -2444,9 +2752,6 @@ class FalconPublicApis {
2444
2752
  assertConnection(this.api);
2445
2753
  return new MitreApiBridge(this.api.bridge);
2446
2754
  }
2447
- /**
2448
- * @internal
2449
- */
2450
2755
  get plugins() {
2451
2756
  assertConnection(this.api);
2452
2757
  return new PluginsApiBridge(this.api.bridge);
@@ -2463,27 +2768,38 @@ class FalconPublicApis {
2463
2768
  assertConnection(this.api);
2464
2769
  return new WorkflowsApiBridge(this.api.bridge);
2465
2770
  }
2466
- /**
2467
- * @internal
2468
- */
2771
+ get cloudSecurityAssets() {
2772
+ assertConnection(this.api);
2773
+ return new CloudSecurityAssetsApiBridge(this.api.bridge);
2774
+ }
2775
+ get cloudregistration() {
2776
+ assertConnection(this.api);
2777
+ return new CloudregistrationApiBridge(this.api.bridge);
2778
+ }
2779
+ get containerSecurity() {
2780
+ assertConnection(this.api);
2781
+ return new ContainerSecurityApiBridge(this.api.bridge);
2782
+ }
2783
+ get cspmRegistration() {
2784
+ assertConnection(this.api);
2785
+ return new CspmRegistrationApiBridge(this.api.bridge);
2786
+ }
2469
2787
  get customobjects() {
2470
2788
  assertConnection(this.api);
2471
2789
  return new CustomobjectsApiBridge(this.api.bridge);
2472
2790
  }
2473
- /**
2474
- * @internal
2475
- */
2476
2791
  get faasGateway() {
2477
2792
  assertConnection(this.api);
2478
2793
  return new FaasGatewayApiBridge(this.api.bridge);
2479
2794
  }
2480
- /**
2481
- * @internal
2482
- */
2483
2795
  get loggingapi() {
2484
2796
  assertConnection(this.api);
2485
2797
  return new LoggingapiApiBridge(this.api.bridge);
2486
2798
  }
2799
+ get registryAssessment() {
2800
+ assertConnection(this.api);
2801
+ return new RegistryAssessmentApiBridge(this.api.bridge);
2802
+ }
2487
2803
  }
2488
2804
  __decorate([
2489
2805
  Memoize()
@@ -2515,6 +2831,18 @@ __decorate([
2515
2831
  __decorate([
2516
2832
  Memoize()
2517
2833
  ], FalconPublicApis.prototype, "workflows", null);
2834
+ __decorate([
2835
+ Memoize()
2836
+ ], FalconPublicApis.prototype, "cloudSecurityAssets", null);
2837
+ __decorate([
2838
+ Memoize()
2839
+ ], FalconPublicApis.prototype, "cloudregistration", null);
2840
+ __decorate([
2841
+ Memoize()
2842
+ ], FalconPublicApis.prototype, "containerSecurity", null);
2843
+ __decorate([
2844
+ Memoize()
2845
+ ], FalconPublicApis.prototype, "cspmRegistration", null);
2518
2846
  __decorate([
2519
2847
  Memoize()
2520
2848
  ], FalconPublicApis.prototype, "customobjects", null);
@@ -2524,6 +2852,9 @@ __decorate([
2524
2852
  __decorate([
2525
2853
  Memoize()
2526
2854
  ], FalconPublicApis.prototype, "loggingapi", null);
2855
+ __decorate([
2856
+ Memoize()
2857
+ ], FalconPublicApis.prototype, "registryAssessment", null);
2527
2858
 
2528
2859
  class ApiIntegration {
2529
2860
  falcon;