@microsoft/msgraph-sdk 1.0.0-preview.74 → 1.0.0-preview.75

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.
@@ -3,6 +3,24 @@
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
5
  import { createGroupFromDiscriminatorValue, createIdentitySetFromDiscriminatorValue, createPhysicalAddressFromDiscriminatorValue, createPublicErrorFromDiscriminatorValue, createResultInfoFromDiscriminatorValue, createSiteFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeGroup, serializeIdentitySet, serializePhysicalAddress, serializePublicError, serializeResultInfo, serializeSite } from '../index.js';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {Account}
10
+ */
11
+ // @ts-ignore
12
+ export function createAccountFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoAccount;
14
+ }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {AiAgentEvidence}
19
+ */
20
+ // @ts-ignore
21
+ export function createAiAgentEvidenceFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoAiAgentEvidence;
23
+ }
6
24
  /**
7
25
  * Creates a new instance of the appropriate class based on discriminator value
8
26
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -35,6 +53,8 @@ export function createAlertEvidenceFromDiscriminatorValue(parseNode) {
35
53
  const mappingValue = mappingValueNode.getStringValue();
36
54
  if (mappingValue) {
37
55
  switch (mappingValue) {
56
+ case "#microsoft.graph.security.aiAgentEvidence":
57
+ return deserializeIntoAiAgentEvidence;
38
58
  case "#microsoft.graph.security.amazonResourceEvidence":
39
59
  return deserializeIntoAmazonResourceEvidence;
40
60
  case "#microsoft.graph.security.analyzedMessageEvidence":
@@ -1346,6 +1366,36 @@ export function createHuntingRowResultFromDiscriminatorValue(parseNode) {
1346
1366
  export function createHyperlinkFromDiscriminatorValue(parseNode) {
1347
1367
  return deserializeIntoHyperlink;
1348
1368
  }
1369
+ /**
1370
+ * Creates a new instance of the appropriate class based on discriminator value
1371
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1372
+ * @returns {IdentityAccountsCollectionResponse}
1373
+ */
1374
+ // @ts-ignore
1375
+ export function createIdentityAccountsCollectionResponseFromDiscriminatorValue(parseNode) {
1376
+ return deserializeIntoIdentityAccountsCollectionResponse;
1377
+ }
1378
+ /**
1379
+ * Creates a new instance of the appropriate class based on discriminator value
1380
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1381
+ * @returns {IdentityAccounts}
1382
+ */
1383
+ // @ts-ignore
1384
+ export function createIdentityAccountsFromDiscriminatorValue(parseNode) {
1385
+ if (!parseNode)
1386
+ throw new Error("parseNode cannot be undefined");
1387
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1388
+ if (mappingValueNode) {
1389
+ const mappingValue = mappingValueNode.getStringValue();
1390
+ if (mappingValue) {
1391
+ switch (mappingValue) {
1392
+ case "#microsoft.graph.security.user":
1393
+ return deserializeIntoUser;
1394
+ }
1395
+ }
1396
+ }
1397
+ return deserializeIntoIdentityAccounts;
1398
+ }
1349
1399
  /**
1350
1400
  * Creates a new instance of the appropriate class based on discriminator value
1351
1401
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1441,6 +1491,15 @@ export function createIntelligenceProfileIndicatorCollectionResponseFromDiscrimi
1441
1491
  export function createIntelligenceProfileIndicatorFromDiscriminatorValue(parseNode) {
1442
1492
  return deserializeIntoIntelligenceProfileIndicator;
1443
1493
  }
1494
+ /**
1495
+ * Creates a new instance of the appropriate class based on discriminator value
1496
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1497
+ * @returns {InvokeActionResult}
1498
+ */
1499
+ // @ts-ignore
1500
+ export function createInvokeActionResultFromDiscriminatorValue(parseNode) {
1501
+ return deserializeIntoInvokeActionResult;
1502
+ }
1444
1503
  /**
1445
1504
  * Creates a new instance of the appropriate class based on discriminator value
1446
1505
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1856,6 +1915,33 @@ export function createSearchFromDiscriminatorValue(parseNode) {
1856
1915
  export function createSecurityGroupEvidenceFromDiscriminatorValue(parseNode) {
1857
1916
  return deserializeIntoSecurityGroupEvidence;
1858
1917
  }
1918
+ /**
1919
+ * Creates a new instance of the appropriate class based on discriminator value
1920
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1921
+ * @returns {SensorCandidateActivationConfiguration}
1922
+ */
1923
+ // @ts-ignore
1924
+ export function createSensorCandidateActivationConfigurationFromDiscriminatorValue(parseNode) {
1925
+ return deserializeIntoSensorCandidateActivationConfiguration;
1926
+ }
1927
+ /**
1928
+ * Creates a new instance of the appropriate class based on discriminator value
1929
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1930
+ * @returns {SensorCandidateCollectionResponse}
1931
+ */
1932
+ // @ts-ignore
1933
+ export function createSensorCandidateCollectionResponseFromDiscriminatorValue(parseNode) {
1934
+ return deserializeIntoSensorCandidateCollectionResponse;
1935
+ }
1936
+ /**
1937
+ * Creates a new instance of the appropriate class based on discriminator value
1938
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1939
+ * @returns {SensorCandidate}
1940
+ */
1941
+ // @ts-ignore
1942
+ export function createSensorCandidateFromDiscriminatorValue(parseNode) {
1943
+ return deserializeIntoSensorCandidate;
1944
+ }
1859
1945
  /**
1860
1946
  * Creates a new instance of the appropriate class based on discriminator value
1861
1947
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2129,6 +2215,15 @@ export function createUserAccountFromDiscriminatorValue(parseNode) {
2129
2215
  export function createUserEvidenceFromDiscriminatorValue(parseNode) {
2130
2216
  return deserializeIntoUserEvidence;
2131
2217
  }
2218
+ /**
2219
+ * Creates a new instance of the appropriate class based on discriminator value
2220
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2221
+ * @returns {User}
2222
+ */
2223
+ // @ts-ignore
2224
+ export function createUserFromDiscriminatorValue(parseNode) {
2225
+ return deserializeIntoUser;
2226
+ }
2132
2227
  /**
2133
2228
  * Creates a new instance of the appropriate class based on discriminator value
2134
2229
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2269,6 +2364,30 @@ export function createWhoisRecordCollectionResponseFromDiscriminatorValue(parseN
2269
2364
  export function createWhoisRecordFromDiscriminatorValue(parseNode) {
2270
2365
  return deserializeIntoWhoisRecord;
2271
2366
  }
2367
+ /**
2368
+ * The deserialization information for the current model
2369
+ * @param Account The instance to deserialize into.
2370
+ * @returns {Record<string, (node: ParseNode) => void>}
2371
+ */
2372
+ // @ts-ignore
2373
+ export function deserializeIntoAccount(account = {}) {
2374
+ return {
2375
+ "actions": n => { account.actions = n.getCollectionOfEnumValues(ActionObject); },
2376
+ "backingStoreEnabled": n => { account.backingStoreEnabled = true; },
2377
+ "identifier": n => { account.identifier = n.getStringValue(); },
2378
+ "identityProvider": n => { account.identityProvider = n.getEnumValue(IdentityProviderObject); },
2379
+ "@odata.type": n => { account.odataType = n.getStringValue(); },
2380
+ };
2381
+ }
2382
+ /**
2383
+ * The deserialization information for the current model
2384
+ * @param AiAgentEvidence The instance to deserialize into.
2385
+ * @returns {Record<string, (node: ParseNode) => void>}
2386
+ */
2387
+ // @ts-ignore
2388
+ export function deserializeIntoAiAgentEvidence(aiAgentEvidence = {}) {
2389
+ return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(aiAgentEvidence)), { "agentId": n => { aiAgentEvidence.agentId = n.getStringValue(); }, "agentName": n => { aiAgentEvidence.agentName = n.getStringValue(); }, "hostingPlatformType": n => { aiAgentEvidence.hostingPlatformType = n.getEnumValue(AiAgentPlatformObject); }, "instructions": n => { aiAgentEvidence.instructions = n.getStringValue(); } });
2390
+ }
2272
2391
  /**
2273
2392
  * The deserialization information for the current model
2274
2393
  * @param Alert The instance to deserialize into.
@@ -3476,6 +3595,24 @@ export function deserializeIntoHyperlink(hyperlink = {}) {
3476
3595
  "url": n => { hyperlink.url = n.getStringValue(); },
3477
3596
  };
3478
3597
  }
3598
+ /**
3599
+ * The deserialization information for the current model
3600
+ * @param IdentityAccounts The instance to deserialize into.
3601
+ * @returns {Record<string, (node: ParseNode) => void>}
3602
+ */
3603
+ // @ts-ignore
3604
+ export function deserializeIntoIdentityAccounts(identityAccounts = {}) {
3605
+ return Object.assign(Object.assign({}, deserializeIntoEntity(identityAccounts)), { "accounts": n => { identityAccounts.accounts = n.getCollectionOfObjectValues(createAccountFromDiscriminatorValue); }, "cloudSecurityIdentifier": n => { identityAccounts.cloudSecurityIdentifier = n.getStringValue(); }, "displayName": n => { identityAccounts.displayName = n.getStringValue(); }, "domain": n => { identityAccounts.domain = n.getStringValue(); }, "isEnabled": n => { identityAccounts.isEnabled = n.getBooleanValue(); }, "onPremisesSecurityIdentifier": n => { identityAccounts.onPremisesSecurityIdentifier = n.getStringValue(); } });
3606
+ }
3607
+ /**
3608
+ * The deserialization information for the current model
3609
+ * @param IdentityAccountsCollectionResponse The instance to deserialize into.
3610
+ * @returns {Record<string, (node: ParseNode) => void>}
3611
+ */
3612
+ // @ts-ignore
3613
+ export function deserializeIntoIdentityAccountsCollectionResponse(identityAccountsCollectionResponse = {}) {
3614
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(identityAccountsCollectionResponse)), { "value": n => { identityAccountsCollectionResponse.value = n.getCollectionOfObjectValues(createIdentityAccountsFromDiscriminatorValue); } });
3615
+ }
3479
3616
  /**
3480
3617
  * The deserialization information for the current model
3481
3618
  * @param IdentityContainer The instance to deserialize into.
@@ -3483,7 +3620,7 @@ export function deserializeIntoHyperlink(hyperlink = {}) {
3483
3620
  */
3484
3621
  // @ts-ignore
3485
3622
  export function deserializeIntoIdentityContainer(identityContainer = {}) {
3486
- return Object.assign(Object.assign({}, deserializeIntoEntity(identityContainer)), { "healthIssues": n => { identityContainer.healthIssues = n.getCollectionOfObjectValues(createHealthIssueFromDiscriminatorValue); }, "sensors": n => { identityContainer.sensors = n.getCollectionOfObjectValues(createSensorFromDiscriminatorValue); } });
3623
+ return Object.assign(Object.assign({}, deserializeIntoEntity(identityContainer)), { "healthIssues": n => { identityContainer.healthIssues = n.getCollectionOfObjectValues(createHealthIssueFromDiscriminatorValue); }, "identityAccounts": n => { identityContainer.identityAccounts = n.getCollectionOfObjectValues(createIdentityAccountsFromDiscriminatorValue); }, "sensorCandidateActivationConfiguration": n => { identityContainer.sensorCandidateActivationConfiguration = n.getObjectValue(createSensorCandidateActivationConfigurationFromDiscriminatorValue); }, "sensorCandidates": n => { identityContainer.sensorCandidates = n.getCollectionOfObjectValues(createSensorCandidateFromDiscriminatorValue); }, "sensors": n => { identityContainer.sensors = n.getCollectionOfObjectValues(createSensorFromDiscriminatorValue); } });
3487
3624
  }
3488
3625
  /**
3489
3626
  * The deserialization information for the current model
@@ -3562,6 +3699,22 @@ export function deserializeIntoIntelligenceProfileIndicator(intelligenceProfileI
3562
3699
  export function deserializeIntoIntelligenceProfileIndicatorCollectionResponse(intelligenceProfileIndicatorCollectionResponse = {}) {
3563
3700
  return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(intelligenceProfileIndicatorCollectionResponse)), { "value": n => { intelligenceProfileIndicatorCollectionResponse.value = n.getCollectionOfObjectValues(createIntelligenceProfileIndicatorFromDiscriminatorValue); } });
3564
3701
  }
3702
+ /**
3703
+ * The deserialization information for the current model
3704
+ * @param InvokeActionResult The instance to deserialize into.
3705
+ * @returns {Record<string, (node: ParseNode) => void>}
3706
+ */
3707
+ // @ts-ignore
3708
+ export function deserializeIntoInvokeActionResult(invokeActionResult = {}) {
3709
+ return {
3710
+ "accountId": n => { invokeActionResult.accountId = n.getStringValue(); },
3711
+ "action": n => { invokeActionResult.action = n.getEnumValue(ActionObject); },
3712
+ "backingStoreEnabled": n => { invokeActionResult.backingStoreEnabled = true; },
3713
+ "correlationId": n => { invokeActionResult.correlationId = n.getStringValue(); },
3714
+ "identityProvider": n => { invokeActionResult.identityProvider = n.getEnumValue(IdentityProviderObject); },
3715
+ "@odata.type": n => { invokeActionResult.odataType = n.getStringValue(); },
3716
+ };
3717
+ }
3565
3718
  /**
3566
3719
  * The deserialization information for the current model
3567
3720
  * @param IoTDeviceEvidence The instance to deserialize into.
@@ -4006,6 +4159,33 @@ export function deserializeIntoSecurityGroupEvidence(securityGroupEvidence = {})
4006
4159
  export function deserializeIntoSensor(sensor = {}) {
4007
4160
  return Object.assign(Object.assign({}, deserializeIntoEntity(sensor)), { "createdDateTime": n => { sensor.createdDateTime = n.getDateValue(); }, "deploymentStatus": n => { sensor.deploymentStatus = n.getEnumValue(DeploymentStatusObject); }, "displayName": n => { sensor.displayName = n.getStringValue(); }, "domainName": n => { sensor.domainName = n.getStringValue(); }, "healthIssues": n => { sensor.healthIssues = n.getCollectionOfObjectValues(createHealthIssueFromDiscriminatorValue); }, "healthStatus": n => { sensor.healthStatus = n.getEnumValue(SensorHealthStatusObject); }, "openHealthIssuesCount": n => { sensor.openHealthIssuesCount = n.getNumberValue(); }, "sensorType": n => { sensor.sensorType = n.getEnumValue(SensorTypeObject); }, "settings": n => { sensor.settings = n.getObjectValue(createSensorSettingsFromDiscriminatorValue); }, "version": n => { sensor.version = n.getStringValue(); } });
4008
4161
  }
4162
+ /**
4163
+ * The deserialization information for the current model
4164
+ * @param SensorCandidate The instance to deserialize into.
4165
+ * @returns {Record<string, (node: ParseNode) => void>}
4166
+ */
4167
+ // @ts-ignore
4168
+ export function deserializeIntoSensorCandidate(sensorCandidate = {}) {
4169
+ return Object.assign(Object.assign({}, deserializeIntoEntity(sensorCandidate)), { "computerDnsName": n => { sensorCandidate.computerDnsName = n.getStringValue(); }, "lastSeenDateTime": n => { sensorCandidate.lastSeenDateTime = n.getDateValue(); }, "senseClientVersion": n => { sensorCandidate.senseClientVersion = n.getStringValue(); } });
4170
+ }
4171
+ /**
4172
+ * The deserialization information for the current model
4173
+ * @param SensorCandidateActivationConfiguration The instance to deserialize into.
4174
+ * @returns {Record<string, (node: ParseNode) => void>}
4175
+ */
4176
+ // @ts-ignore
4177
+ export function deserializeIntoSensorCandidateActivationConfiguration(sensorCandidateActivationConfiguration = {}) {
4178
+ return Object.assign(Object.assign({}, deserializeIntoEntity(sensorCandidateActivationConfiguration)), { "activationMode": n => { sensorCandidateActivationConfiguration.activationMode = n.getEnumValue(SensorCandidateActivationModeObject); } });
4179
+ }
4180
+ /**
4181
+ * The deserialization information for the current model
4182
+ * @param SensorCandidateCollectionResponse The instance to deserialize into.
4183
+ * @returns {Record<string, (node: ParseNode) => void>}
4184
+ */
4185
+ // @ts-ignore
4186
+ export function deserializeIntoSensorCandidateCollectionResponse(sensorCandidateCollectionResponse = {}) {
4187
+ return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(sensorCandidateCollectionResponse)), { "value": n => { sensorCandidateCollectionResponse.value = n.getCollectionOfObjectValues(createSensorCandidateFromDiscriminatorValue); } });
4188
+ }
4009
4189
  /**
4010
4190
  * The deserialization information for the current model
4011
4191
  * @param SensorCollectionResponse The instance to deserialize into.
@@ -4280,6 +4460,15 @@ export function deserializeIntoUnifiedGroupSourceCollectionResponse(unifiedGroup
4280
4460
  export function deserializeIntoUrlEvidence(urlEvidence = {}) {
4281
4461
  return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(urlEvidence)), { "url": n => { urlEvidence.url = n.getStringValue(); } });
4282
4462
  }
4463
+ /**
4464
+ * The deserialization information for the current model
4465
+ * @param User The instance to deserialize into.
4466
+ * @returns {Record<string, (node: ParseNode) => void>}
4467
+ */
4468
+ // @ts-ignore
4469
+ export function deserializeIntoUser(user = {}) {
4470
+ return Object.assign(Object.assign({}, deserializeIntoIdentityAccounts(user)), { "emailAddress": n => { user.emailAddress = n.getStringValue(); }, "userPrincipalName": n => { user.userPrincipalName = n.getStringValue(); } });
4471
+ }
4283
4472
  /**
4284
4473
  * The deserialization information for the current model
4285
4474
  * @param UserAccount The instance to deserialize into.
@@ -4457,6 +4646,41 @@ export function deserializeIntoWhoisRecord(whoisRecord = {}) {
4457
4646
  export function deserializeIntoWhoisRecordCollectionResponse(whoisRecordCollectionResponse = {}) {
4458
4647
  return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(whoisRecordCollectionResponse)), { "value": n => { whoisRecordCollectionResponse.value = n.getCollectionOfObjectValues(createWhoisRecordFromDiscriminatorValue); } });
4459
4648
  }
4649
+ /**
4650
+ * Serializes information the current object
4651
+ * @param Account The instance to serialize from.
4652
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
4653
+ * @param writer Serialization writer to use to serialize this model
4654
+ */
4655
+ // @ts-ignore
4656
+ export function serializeAccount(writer, account = {}, isSerializingDerivedType = false) {
4657
+ if (!account || isSerializingDerivedType) {
4658
+ return;
4659
+ }
4660
+ if (account.actions)
4661
+ writer.writeCollectionOfEnumValues("actions", account.actions);
4662
+ writer.writeStringValue("identifier", account.identifier);
4663
+ writer.writeEnumValue("identityProvider", account.identityProvider);
4664
+ writer.writeStringValue("@odata.type", account.odataType);
4665
+ writer.writeAdditionalData(account.additionalData);
4666
+ }
4667
+ /**
4668
+ * Serializes information the current object
4669
+ * @param AiAgentEvidence The instance to serialize from.
4670
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
4671
+ * @param writer Serialization writer to use to serialize this model
4672
+ */
4673
+ // @ts-ignore
4674
+ export function serializeAiAgentEvidence(writer, aiAgentEvidence = {}, isSerializingDerivedType = false) {
4675
+ if (!aiAgentEvidence || isSerializingDerivedType) {
4676
+ return;
4677
+ }
4678
+ serializeAlertEvidence(writer, aiAgentEvidence, isSerializingDerivedType);
4679
+ writer.writeStringValue("agentId", aiAgentEvidence.agentId);
4680
+ writer.writeStringValue("agentName", aiAgentEvidence.agentName);
4681
+ writer.writeEnumValue("hostingPlatformType", aiAgentEvidence.hostingPlatformType);
4682
+ writer.writeStringValue("instructions", aiAgentEvidence.instructions);
4683
+ }
4460
4684
  /**
4461
4685
  * Serializes information the current object
4462
4686
  * @param Alert The instance to serialize from.
@@ -4557,6 +4781,9 @@ export function serializeAlertEvidence(writer, alertEvidence = {}, isSerializing
4557
4781
  writer.writeEnumValue("verdict", alertEvidence.verdict);
4558
4782
  writer.writeAdditionalData(alertEvidence.additionalData);
4559
4783
  switch (alertEvidence.odataType) {
4784
+ case "#microsoft.graph.security.aiAgentEvidence":
4785
+ serializeAiAgentEvidence(writer, alertEvidence, true);
4786
+ break;
4560
4787
  case "#microsoft.graph.security.amazonResourceEvidence":
4561
4788
  serializeAmazonResourceEvidence(writer, alertEvidence, true);
4562
4789
  break;
@@ -6750,6 +6977,44 @@ export function serializeHyperlink(writer, hyperlink = {}, isSerializingDerivedT
6750
6977
  writer.writeStringValue("url", hyperlink.url);
6751
6978
  writer.writeAdditionalData(hyperlink.additionalData);
6752
6979
  }
6980
+ /**
6981
+ * Serializes information the current object
6982
+ * @param IdentityAccounts The instance to serialize from.
6983
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6984
+ * @param writer Serialization writer to use to serialize this model
6985
+ */
6986
+ // @ts-ignore
6987
+ export function serializeIdentityAccounts(writer, identityAccounts = {}, isSerializingDerivedType = false) {
6988
+ if (!identityAccounts || isSerializingDerivedType) {
6989
+ return;
6990
+ }
6991
+ serializeEntity(writer, identityAccounts, isSerializingDerivedType);
6992
+ writer.writeCollectionOfObjectValues("accounts", identityAccounts.accounts, serializeAccount);
6993
+ writer.writeStringValue("cloudSecurityIdentifier", identityAccounts.cloudSecurityIdentifier);
6994
+ writer.writeStringValue("displayName", identityAccounts.displayName);
6995
+ writer.writeStringValue("domain", identityAccounts.domain);
6996
+ writer.writeBooleanValue("isEnabled", identityAccounts.isEnabled);
6997
+ writer.writeStringValue("onPremisesSecurityIdentifier", identityAccounts.onPremisesSecurityIdentifier);
6998
+ switch (identityAccounts.odataType) {
6999
+ case "#microsoft.graph.security.user":
7000
+ serializeUser(writer, identityAccounts, true);
7001
+ break;
7002
+ }
7003
+ }
7004
+ /**
7005
+ * Serializes information the current object
7006
+ * @param IdentityAccountsCollectionResponse The instance to serialize from.
7007
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7008
+ * @param writer Serialization writer to use to serialize this model
7009
+ */
7010
+ // @ts-ignore
7011
+ export function serializeIdentityAccountsCollectionResponse(writer, identityAccountsCollectionResponse = {}, isSerializingDerivedType = false) {
7012
+ if (!identityAccountsCollectionResponse || isSerializingDerivedType) {
7013
+ return;
7014
+ }
7015
+ serializeBaseCollectionPaginationCountResponse(writer, identityAccountsCollectionResponse, isSerializingDerivedType);
7016
+ writer.writeCollectionOfObjectValues("value", identityAccountsCollectionResponse.value, serializeIdentityAccounts);
7017
+ }
6753
7018
  /**
6754
7019
  * Serializes information the current object
6755
7020
  * @param IdentityContainer The instance to serialize from.
@@ -6763,6 +7028,9 @@ export function serializeIdentityContainer(writer, identityContainer = {}, isSer
6763
7028
  }
6764
7029
  serializeEntity(writer, identityContainer, isSerializingDerivedType);
6765
7030
  writer.writeCollectionOfObjectValues("healthIssues", identityContainer.healthIssues, serializeHealthIssue);
7031
+ writer.writeCollectionOfObjectValues("identityAccounts", identityContainer.identityAccounts, serializeIdentityAccounts);
7032
+ writer.writeObjectValue("sensorCandidateActivationConfiguration", identityContainer.sensorCandidateActivationConfiguration, serializeSensorCandidateActivationConfiguration);
7033
+ writer.writeCollectionOfObjectValues("sensorCandidates", identityContainer.sensorCandidates, serializeSensorCandidate);
6766
7034
  writer.writeCollectionOfObjectValues("sensors", identityContainer.sensors, serializeSensor);
6767
7035
  }
6768
7036
  /**
@@ -6916,6 +7184,24 @@ export function serializeIntelligenceProfileIndicatorCollectionResponse(writer,
6916
7184
  serializeBaseCollectionPaginationCountResponse(writer, intelligenceProfileIndicatorCollectionResponse, isSerializingDerivedType);
6917
7185
  writer.writeCollectionOfObjectValues("value", intelligenceProfileIndicatorCollectionResponse.value, serializeIntelligenceProfileIndicator);
6918
7186
  }
7187
+ /**
7188
+ * Serializes information the current object
7189
+ * @param InvokeActionResult The instance to serialize from.
7190
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7191
+ * @param writer Serialization writer to use to serialize this model
7192
+ */
7193
+ // @ts-ignore
7194
+ export function serializeInvokeActionResult(writer, invokeActionResult = {}, isSerializingDerivedType = false) {
7195
+ if (!invokeActionResult || isSerializingDerivedType) {
7196
+ return;
7197
+ }
7198
+ writer.writeStringValue("accountId", invokeActionResult.accountId);
7199
+ writer.writeEnumValue("action", invokeActionResult.action);
7200
+ writer.writeStringValue("correlationId", invokeActionResult.correlationId);
7201
+ writer.writeEnumValue("identityProvider", invokeActionResult.identityProvider);
7202
+ writer.writeStringValue("@odata.type", invokeActionResult.odataType);
7203
+ writer.writeAdditionalData(invokeActionResult.additionalData);
7204
+ }
6919
7205
  /**
6920
7206
  * Serializes information the current object
6921
7207
  * @param IoTDeviceEvidence The instance to serialize from.
@@ -7741,6 +8027,50 @@ export function serializeSensor(writer, sensor = {}, isSerializingDerivedType =
7741
8027
  writer.writeObjectValue("settings", sensor.settings, serializeSensorSettings);
7742
8028
  writer.writeStringValue("version", sensor.version);
7743
8029
  }
8030
+ /**
8031
+ * Serializes information the current object
8032
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8033
+ * @param SensorCandidate The instance to serialize from.
8034
+ * @param writer Serialization writer to use to serialize this model
8035
+ */
8036
+ // @ts-ignore
8037
+ export function serializeSensorCandidate(writer, sensorCandidate = {}, isSerializingDerivedType = false) {
8038
+ if (!sensorCandidate || isSerializingDerivedType) {
8039
+ return;
8040
+ }
8041
+ serializeEntity(writer, sensorCandidate, isSerializingDerivedType);
8042
+ writer.writeStringValue("computerDnsName", sensorCandidate.computerDnsName);
8043
+ writer.writeDateValue("lastSeenDateTime", sensorCandidate.lastSeenDateTime);
8044
+ writer.writeStringValue("senseClientVersion", sensorCandidate.senseClientVersion);
8045
+ }
8046
+ /**
8047
+ * Serializes information the current object
8048
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8049
+ * @param SensorCandidateActivationConfiguration The instance to serialize from.
8050
+ * @param writer Serialization writer to use to serialize this model
8051
+ */
8052
+ // @ts-ignore
8053
+ export function serializeSensorCandidateActivationConfiguration(writer, sensorCandidateActivationConfiguration = {}, isSerializingDerivedType = false) {
8054
+ if (!sensorCandidateActivationConfiguration || isSerializingDerivedType) {
8055
+ return;
8056
+ }
8057
+ serializeEntity(writer, sensorCandidateActivationConfiguration, isSerializingDerivedType);
8058
+ writer.writeEnumValue("activationMode", sensorCandidateActivationConfiguration.activationMode);
8059
+ }
8060
+ /**
8061
+ * Serializes information the current object
8062
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8063
+ * @param SensorCandidateCollectionResponse The instance to serialize from.
8064
+ * @param writer Serialization writer to use to serialize this model
8065
+ */
8066
+ // @ts-ignore
8067
+ export function serializeSensorCandidateCollectionResponse(writer, sensorCandidateCollectionResponse = {}, isSerializingDerivedType = false) {
8068
+ if (!sensorCandidateCollectionResponse || isSerializingDerivedType) {
8069
+ return;
8070
+ }
8071
+ serializeBaseCollectionPaginationCountResponse(writer, sensorCandidateCollectionResponse, isSerializingDerivedType);
8072
+ writer.writeCollectionOfObjectValues("value", sensorCandidateCollectionResponse.value, serializeSensorCandidate);
8073
+ }
7744
8074
  /**
7745
8075
  * Serializes information the current object
7746
8076
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8198,6 +8528,21 @@ export function serializeUrlEvidence(writer, urlEvidence = {}, isSerializingDeri
8198
8528
  serializeAlertEvidence(writer, urlEvidence, isSerializingDerivedType);
8199
8529
  writer.writeStringValue("url", urlEvidence.url);
8200
8530
  }
8531
+ /**
8532
+ * Serializes information the current object
8533
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8534
+ * @param User The instance to serialize from.
8535
+ * @param writer Serialization writer to use to serialize this model
8536
+ */
8537
+ // @ts-ignore
8538
+ export function serializeUser(writer, user = {}, isSerializingDerivedType = false) {
8539
+ if (!user || isSerializingDerivedType) {
8540
+ return;
8541
+ }
8542
+ serializeIdentityAccounts(writer, user, isSerializingDerivedType);
8543
+ writer.writeStringValue("emailAddress", user.emailAddress);
8544
+ writer.writeStringValue("userPrincipalName", user.userPrincipalName);
8545
+ }
8201
8546
  /**
8202
8547
  * Serializes information the current object
8203
8548
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8493,6 +8838,15 @@ export const ActionAfterRetentionPeriodObject = {
8493
8838
  Relabel: "relabel",
8494
8839
  UnknownFutureValue: "unknownFutureValue",
8495
8840
  };
8841
+ export const ActionObject = {
8842
+ Disable: "disable",
8843
+ Enable: "enable",
8844
+ ForcePasswordReset: "forcePasswordReset",
8845
+ RevokeAllSessions: "revokeAllSessions",
8846
+ RequireUserToSignInAgain: "requireUserToSignInAgain",
8847
+ MarkUserAsCompromised: "markUserAsCompromised",
8848
+ UnknownFutureValue: "unknownFutureValue",
8849
+ };
8496
8850
  export const AdditionalDataOptionsObject = {
8497
8851
  AllVersions: "allVersions",
8498
8852
  LinkedFiles: "linkedFiles",
@@ -8521,6 +8875,13 @@ export const AdditionalOptionsObject = {
8521
8875
  SplitSource: "splitSource",
8522
8876
  IncludeReport: "includeReport",
8523
8877
  };
8878
+ export const AiAgentPlatformObject = {
8879
+ Unknown: "unknown",
8880
+ AzureAIFoundry: "azureAIFoundry",
8881
+ CopilotStudio: "copilotStudio",
8882
+ Copilot: "copilot",
8883
+ UnknownFutureValue: "unknownFutureValue",
8884
+ };
8524
8885
  export const AlertClassificationObject = {
8525
8886
  Unknown: "unknown",
8526
8887
  FalsePositive: "falsePositive",
@@ -8898,6 +9259,12 @@ export const HostReputationRuleSeverityObject = {
8898
9259
  High: "high",
8899
9260
  UnknownFutureValue: "unknownFutureValue",
8900
9261
  };
9262
+ export const IdentityProviderObject = {
9263
+ EntraID: "entraID",
9264
+ ActiveDirectory: "activeDirectory",
9265
+ Okta: "okta",
9266
+ UnknownFutureValue: "unknownFutureValue",
9267
+ };
8901
9268
  export const IncidentStatusObject = {
8902
9269
  Active: "active",
8903
9270
  Resolved: "resolved",
@@ -9013,6 +9380,11 @@ export const ReviewSetSettingsObject = {
9013
9380
  DisableGrouping: "disableGrouping",
9014
9381
  UnknownFutureValue: "unknownFutureValue",
9015
9382
  };
9383
+ export const SensorCandidateActivationModeObject = {
9384
+ Manual: "manual",
9385
+ Automated: "automated",
9386
+ UnknownFutureValue: "unknownFutureValue",
9387
+ };
9016
9388
  export const SensorHealthStatusObject = {
9017
9389
  Healthy: "healthy",
9018
9390
  NotHealthyLow: "notHealthyLow",