@azure/arm-securityinsight 1.0.0-beta.2 → 1.0.0-beta.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"securityInsights.d.ts","sourceRoot":"","sources":["../../src/securityInsights.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAmC7C,OAAO,EACL,UAAU,EACV,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,kCAAkC,EAClC,UAAU,EACV,cAAc,EACd,cAAc,EACd,yCAAyC,EACzC,UAAU,EACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAE1D,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8BAA8B;IAoF1C,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,C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C;IACnD,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,kCAAkC,EAAE,kCAAkC,CAAC;IACvE,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,yCAAyC,EAAE,yCAAyC,CAAC;IACrF,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
10
  import { AlertRulesImpl, ActionsImpl, AlertRuleTemplatesImpl, AutomationRulesImpl, IncidentsImpl, BookmarksImpl, BookmarkRelationsImpl, BookmarkOperationsImpl, IPGeodataImpl, DomainWhoisImpl, EntitiesImpl, EntitiesGetTimelineImpl, EntitiesRelationsImpl, EntityRelationsImpl, EntityQueriesImpl, EntityQueryTemplatesImpl, IncidentCommentsImpl, IncidentRelationsImpl, MetadataImpl, OfficeConsentsImpl, SentinelOnboardingStatesImpl, ProductSettingsImpl, SourceControlOperationsImpl, SourceControlsImpl, ThreatIntelligenceIndicatorImpl, ThreatIntelligenceIndicatorsImpl, ThreatIntelligenceIndicatorMetricsImpl, WatchlistsImpl, WatchlistItemsImpl, DataConnectorsImpl, DataConnectorsCheckRequirementsOperationsImpl, OperationsImpl } from "./operations";
10
11
  export class SecurityInsights extends coreClient.ServiceClient {
11
12
  /**
@@ -15,6 +16,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
15
16
  * @param options The parameter options
16
17
  */
17
18
  constructor(credentials, subscriptionId, options) {
19
+ var _a, _b;
18
20
  if (credentials === undefined) {
19
21
  throw new Error("'credentials' cannot be null");
20
22
  }
@@ -29,7 +31,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
29
31
  requestContentType: "application/json; charset=utf-8",
30
32
  credential: credentials
31
33
  };
32
- const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.2`;
34
+ const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.3`;
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
@@ -38,8 +40,24 @@ export class SecurityInsights extends coreClient.ServiceClient {
38
40
  }
39
41
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
42
  userAgentPrefix
41
- }, baseUri: options.endpoint || "https://management.azure.com" });
43
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
44
  super(optionsWithDefaults);
45
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
46
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
49
+ if (!bearerTokenAuthenticationPolicyFound) {
50
+ this.pipeline.removePolicy({
51
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
52
+ });
53
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
54
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
55
+ challengeCallbacks: {
56
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
57
+ }
58
+ }));
59
+ }
60
+ }
43
61
  // Parameter assignments
44
62
  this.subscriptionId = subscriptionId;
45
63
  // Assigning values to Constant parameters
@@ -1 +1 @@
1
- {"version":3,"file":"securityInsights.js","sourceRoot":"","sources":["../../src/security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AC,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,yCAAyC,GAAG,IAAI,6CAA6C,CAChG,IAAI,CACL,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAkCF"}
1
+ {"version":3,"file":"securityInsights.js","sourceRoot":"","sources":["../../src/securityInsights.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,4BAA4B,EAC5B,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6CAA6C,EAC7C,cAAc,EACf,MAAM,cAAc,CAAC;AAqCtB,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAK5D;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,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C,CAAC;QACnD,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,yCAAyC,GAAG,IAAI,6CAA6C,CAChG,IAAI,CACL,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAkCF"}
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for SecurityInsights.",
6
- "version": "1.0.0-beta.2",
6
+ "version": "1.0.0-beta.3",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/core-paging": "^1.2.0",
12
- "@azure/core-client": "^1.0.0",
12
+ "@azure/core-client": "^1.5.0",
13
13
  "@azure/core-auth": "^1.3.0",
14
- "@azure/core-rest-pipeline": "^1.1.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
15
15
  "tslib": "^2.2.0"
16
16
  },
17
17
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "module": "./dist-esm/src/index.js",
27
27
  "types": "./types/arm-securityinsight.d.ts",
28
28
  "devDependencies": {
29
- "@microsoft/api-extractor": "^7.18.11",
29
+ "@microsoft/api-extractor": "7.18.11",
30
30
  "@rollup/plugin-commonjs": "^21.0.1",
31
31
  "@rollup/plugin-json": "^4.1.0",
32
32
  "@rollup/plugin-multi-entry": "^4.1.0",
@@ -113,4 +113,4 @@
113
113
  "disableDocsMs": true,
114
114
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-securityinsight?view=azure-node-preview"
115
115
  }
116
- }
116
+ }
@@ -3027,6 +3027,18 @@ export enum KnownProviderName {
3027
3027
  MicrosoftOperationalInsightsWorkspacesSharedKeys = "Microsoft.OperationalInsights/workspaces/sharedKeys"
3028
3028
  }
3029
3029
 
3030
+ // @public
3031
+ export enum KnownProvisioningState {
3032
+ // (undocumented)
3033
+ Canceled = "Canceled",
3034
+ // (undocumented)
3035
+ Failed = "Failed",
3036
+ // (undocumented)
3037
+ InProgress = "InProgress",
3038
+ // (undocumented)
3039
+ Succeeded = "Succeeded"
3040
+ }
3041
+
3030
3042
  // @public
3031
3043
  export enum KnownRegistryHive {
3032
3044
  HkeyA = "HKEY_A",
@@ -4033,6 +4045,9 @@ export type PropertyConditionProperties = AutomationRuleCondition & {
4033
4045
  // @public
4034
4046
  export type ProviderName = string;
4035
4047
 
4048
+ // @public
4049
+ export type ProvisioningState = string;
4050
+
4036
4051
  // @public
4037
4052
  export interface QueryBasedAlertRuleTemplateProperties {
4038
4053
  alertDetailsOverride?: AlertDetailsOverride;
@@ -5132,9 +5147,11 @@ export type Watchlist = ResourceWithEtag & {
5132
5147
  tenantId?: string;
5133
5148
  numberOfLinesToSkip?: number;
5134
5149
  rawContent?: string;
5150
+ sasUri?: string;
5135
5151
  itemsSearchKey?: string;
5136
5152
  contentType?: string;
5137
5153
  uploadStatus?: string;
5154
+ readonly provisioningState?: ProvisioningState;
5138
5155
  };
5139
5156
 
5140
5157
  // @public
@@ -5147,8 +5164,12 @@ export type WatchlistItem = ResourceWithEtag & {
5147
5164
  updated?: Date;
5148
5165
  createdBy?: UserInfo;
5149
5166
  updatedBy?: UserInfo;
5150
- itemsKeyValue?: Record<string, unknown>;
5151
- entityMapping?: Record<string, unknown>;
5167
+ itemsKeyValue?: {
5168
+ [propertyName: string]: any;
5169
+ };
5170
+ entityMapping?: {
5171
+ [propertyName: string]: any;
5172
+ };
5152
5173
  };
5153
5174
 
5154
5175
  // @public
@@ -3980,12 +3980,19 @@ export type Watchlist = ResourceWithEtag & {
3980
3980
  numberOfLinesToSkip?: number;
3981
3981
  /** The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint */
3982
3982
  rawContent?: string;
3983
+ /** The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created */
3984
+ sasUri?: string;
3983
3985
  /** The search key is used to optimize query performance when using watchlists for joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then use this field as the key field when joining to other event data by IP address. */
3984
3986
  itemsSearchKey?: string;
3985
3987
  /** The content type of the raw content. Example : text/csv or text/tsv */
3986
3988
  contentType?: string;
3987
3989
  /** The status of the Watchlist upload : New, InProgress or Complete. Pls note : When a Watchlist upload status is equal to InProgress, the Watchlist cannot be deleted */
3988
3990
  uploadStatus?: string;
3991
+ /**
3992
+ * The provisioning state of the watchlist resource.
3993
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3994
+ */
3995
+ readonly provisioningState?: ProvisioningState;
3989
3996
  };
3990
3997
 
3991
3998
  /** Represents a Watchlist item in Azure Security Insights. */
@@ -4007,9 +4014,9 @@ export type WatchlistItem = ResourceWithEtag & {
4007
4014
  /** Describes a user that updated the watchlist item */
4008
4015
  updatedBy?: UserInfo;
4009
4016
  /** key-value pairs for a watchlist item */
4010
- itemsKeyValue?: Record<string, unknown>;
4017
+ itemsKeyValue?: { [propertyName: string]: any };
4011
4018
  /** key-value pairs for a watchlist item entity mapping */
4012
- entityMapping?: Record<string, unknown>;
4019
+ entityMapping?: { [propertyName: string]: any };
4013
4020
  };
4014
4021
 
4015
4022
  /** Data connector */
@@ -6826,6 +6833,26 @@ export enum KnownSourceType {
6826
6833
  */
6827
6834
  export type SourceType = string;
6828
6835
 
6836
+ /** Known values of {@link ProvisioningState} that the service accepts. */
6837
+ export enum KnownProvisioningState {
6838
+ Succeeded = "Succeeded",
6839
+ Failed = "Failed",
6840
+ Canceled = "Canceled",
6841
+ InProgress = "InProgress"
6842
+ }
6843
+
6844
+ /**
6845
+ * Defines values for ProvisioningState. \
6846
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
6847
+ * this enum contains the known values that the service supports.
6848
+ * ### Known values supported by the service
6849
+ * **Succeeded** \
6850
+ * **Failed** \
6851
+ * **Canceled** \
6852
+ * **InProgress**
6853
+ */
6854
+ export type ProvisioningState = string;
6855
+
6829
6856
  /** Known values of {@link DataConnectorKind} that the service accepts. */
6830
6857
  export enum KnownDataConnectorKind {
6831
6858
  AzureActiveDirectory = "AzureActiveDirectory",
@@ -10302,6 +10302,12 @@ export const Watchlist: coreClient.CompositeMapper = {
10302
10302
  name: "String"
10303
10303
  }
10304
10304
  },
10305
+ sasUri: {
10306
+ serializedName: "properties.sasUri",
10307
+ type: {
10308
+ name: "String"
10309
+ }
10310
+ },
10305
10311
  itemsSearchKey: {
10306
10312
  serializedName: "properties.itemsSearchKey",
10307
10313
  type: {
@@ -10319,6 +10325,13 @@ export const Watchlist: coreClient.CompositeMapper = {
10319
10325
  type: {
10320
10326
  name: "String"
10321
10327
  }
10328
+ },
10329
+ provisioningState: {
10330
+ serializedName: "properties.provisioningState",
10331
+ readOnly: true,
10332
+ type: {
10333
+ name: "String"
10334
+ }
10322
10335
  }
10323
10336
  }
10324
10337
  }
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
11
  import * as coreAuth from "@azure/core-auth";
11
12
  import {
12
13
  AlertRulesImpl,
@@ -110,7 +111,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
110
111
  credential: credentials
111
112
  };
112
113
 
113
- const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.2`;
114
+ const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.3`;
114
115
  const userAgentPrefix =
115
116
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
116
117
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -125,9 +126,33 @@ export class SecurityInsights extends coreClient.ServiceClient {
125
126
  userAgentOptions: {
126
127
  userAgentPrefix
127
128
  },
128
- baseUri: options.endpoint || "https://management.azure.com"
129
+ baseUri:
130
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
129
131
  };
130
132
  super(optionsWithDefaults);
133
+
134
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
135
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
136
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
137
+ (pipelinePolicy) =>
138
+ pipelinePolicy.name ===
139
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
140
+ );
141
+ if (!bearerTokenAuthenticationPolicyFound) {
142
+ this.pipeline.removePolicy({
143
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
144
+ });
145
+ this.pipeline.addPolicy(
146
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
147
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
148
+ challengeCallbacks: {
149
+ authorizeRequestOnChallenge:
150
+ coreClient.authorizeRequestOnClaimChallenge
151
+ }
152
+ })
153
+ );
154
+ }
155
+ }
131
156
  // Parameter assignments
132
157
  this.subscriptionId = subscriptionId;
133
158
 
@@ -5328,6 +5328,14 @@ export declare enum KnownProviderName {
5328
5328
  MicrosoftAuthorizationPolicyAssignments = "Microsoft.Authorization/policyAssignments"
5329
5329
  }
5330
5330
 
5331
+ /** Known values of {@link ProvisioningState} that the service accepts. */
5332
+ export declare enum KnownProvisioningState {
5333
+ Succeeded = "Succeeded",
5334
+ Failed = "Failed",
5335
+ Canceled = "Canceled",
5336
+ InProgress = "InProgress"
5337
+ }
5338
+
5331
5339
  /** Known values of {@link RegistryHive} that the service accepts. */
5332
5340
  export declare enum KnownRegistryHive {
5333
5341
  /** HKEY_LOCAL_MACHINE */
@@ -7199,6 +7207,18 @@ export declare type PropertyConditionProperties = AutomationRuleCondition & {
7199
7207
  */
7200
7208
  export declare type ProviderName = string;
7201
7209
 
7210
+ /**
7211
+ * Defines values for ProvisioningState. \
7212
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
7213
+ * this enum contains the known values that the service supports.
7214
+ * ### Known values supported by the service
7215
+ * **Succeeded** \
7216
+ * **Failed** \
7217
+ * **Canceled** \
7218
+ * **InProgress**
7219
+ */
7220
+ export declare type ProvisioningState = string;
7221
+
7202
7222
  /** Query based alert rule template base property bag. */
7203
7223
  export declare interface QueryBasedAlertRuleTemplateProperties {
7204
7224
  /** The query that creates alerts for this rule. */
@@ -9393,12 +9413,19 @@ export declare type Watchlist = ResourceWithEtag & {
9393
9413
  numberOfLinesToSkip?: number;
9394
9414
  /** The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint */
9395
9415
  rawContent?: string;
9416
+ /** The Shared Access Signature (SAS) URI under which the large csv watchlist file is located and from which the watchlist and its items will be created */
9417
+ sasUri?: string;
9396
9418
  /** The search key is used to optimize query performance when using watchlists for joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then use this field as the key field when joining to other event data by IP address. */
9397
9419
  itemsSearchKey?: string;
9398
9420
  /** The content type of the raw content. Example : text/csv or text/tsv */
9399
9421
  contentType?: string;
9400
9422
  /** The status of the Watchlist upload : New, InProgress or Complete. Pls note : When a Watchlist upload status is equal to InProgress, the Watchlist cannot be deleted */
9401
9423
  uploadStatus?: string;
9424
+ /**
9425
+ * The provisioning state of the watchlist resource.
9426
+ * NOTE: This property will not be serialized. It can only be populated by the server.
9427
+ */
9428
+ readonly provisioningState?: ProvisioningState;
9402
9429
  };
9403
9430
 
9404
9431
  /** Represents a Watchlist item in Azure Security Insights. */
@@ -9420,9 +9447,13 @@ export declare type WatchlistItem = ResourceWithEtag & {
9420
9447
  /** Describes a user that updated the watchlist item */
9421
9448
  updatedBy?: UserInfo;
9422
9449
  /** key-value pairs for a watchlist item */
9423
- itemsKeyValue?: Record<string, unknown>;
9450
+ itemsKeyValue?: {
9451
+ [propertyName: string]: any;
9452
+ };
9424
9453
  /** key-value pairs for a watchlist item entity mapping */
9425
- entityMapping?: Record<string, unknown>;
9454
+ entityMapping?: {
9455
+ [propertyName: string]: any;
9456
+ };
9426
9457
  };
9427
9458
 
9428
9459
  /** List all the watchlist items. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.4"
8
+ "packageVersion": "7.18.11"
9
9
  }
10
10
  ]
11
11
  }