oci-threatintelligence 2.41.0 → 2.43.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.
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/lib/client.d.ts +23 -14
- package/lib/client.js +94 -23
- package/lib/client.js.map +1 -1
- package/lib/model/data-attribution.d.ts +6 -6
- package/lib/model/data-attribution.js +2 -2
- package/lib/model/data-visibility.d.ts +4 -4
- package/lib/model/data-visibility.js +2 -2
- package/lib/model/entity-reference.d.ts +3 -3
- package/lib/model/entity-reference.js +2 -2
- package/lib/model/geodata-details.d.ts +57 -0
- package/lib/model/geodata-details.js +29 -0
- package/lib/model/geodata-details.js.map +1 -0
- package/lib/model/index.d.ts +8 -2
- package/lib/model/index.js +9 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/indicator-attribute-summary.d.ts +29 -0
- package/lib/model/indicator-attribute-summary.js +29 -0
- package/lib/model/indicator-attribute-summary.js.map +1 -0
- package/lib/model/indicator-attribute.d.ts +4 -4
- package/lib/model/indicator-attribute.js +2 -2
- package/lib/model/indicator-count-collection.d.ts +2 -2
- package/lib/model/indicator-count-collection.js +2 -2
- package/lib/model/indicator-count-dimensions.d.ts +5 -5
- package/lib/model/indicator-count-dimensions.js +2 -2
- package/lib/model/indicator-count-summary.d.ts +4 -4
- package/lib/model/indicator-count-summary.js +2 -2
- package/lib/model/indicator-reference.d.ts +4 -4
- package/lib/model/indicator-reference.js +2 -2
- package/lib/model/indicator-relationship.d.ts +5 -5
- package/lib/model/indicator-relationship.js +2 -2
- package/lib/model/indicator-source-summary.d.ts +4 -4
- package/lib/model/indicator-source-summary.js +2 -2
- package/lib/model/indicator-summary-collection.d.ts +3 -3
- package/lib/model/indicator-summary-collection.js +2 -2
- package/lib/model/indicator-summary.d.ts +21 -10
- package/lib/model/indicator-summary.js +13 -9
- package/lib/model/indicator-summary.js.map +1 -1
- package/lib/model/indicator-type.d.ts +2 -2
- package/lib/model/indicator-type.js +2 -2
- package/lib/model/indicator.d.ts +27 -16
- package/lib/model/indicator.js +7 -3
- package/lib/model/indicator.js.map +1 -1
- package/lib/model/lifecycle-state.d.ts +3 -3
- package/lib/model/lifecycle-state.js +3 -3
- package/lib/model/sort-order.d.ts +2 -2
- package/lib/model/sort-order.js +2 -2
- package/lib/model/summarize-indicators-details.d.ts +88 -0
- package/lib/model/summarize-indicators-details.js +36 -0
- package/lib/model/summarize-indicators-details.js.map +1 -0
- package/lib/model/threat-type-summary.d.ts +3 -3
- package/lib/model/threat-type-summary.js +2 -2
- package/lib/model/threat-type.d.ts +5 -5
- package/lib/model/threat-type.js +2 -2
- package/lib/model/threat-types-collection.d.ts +4 -4
- package/lib/model/threat-types-collection.js +2 -2
- package/lib/request/get-indicator-request.d.ts +4 -4
- package/lib/request/get-indicator-request.js +1 -1
- package/lib/request/index.d.ts +4 -2
- package/lib/request/index.js +2 -2
- package/lib/request/list-indicator-counts-request.d.ts +3 -3
- package/lib/request/list-indicator-counts-request.js +1 -1
- package/lib/request/list-indicators-request.d.ts +27 -5
- package/lib/request/list-indicators-request.js +3 -1
- package/lib/request/list-indicators-request.js.map +1 -1
- package/lib/request/list-threat-types-request.d.ts +3 -3
- package/lib/request/list-threat-types-request.js +1 -1
- package/lib/request/summarize-indicators-request.d.ts +39 -0
- package/lib/request/summarize-indicators-request.js +15 -0
- package/lib/request/summarize-indicators-request.js.map +1 -0
- package/lib/response/get-indicator-response.d.ts +1 -1
- package/lib/response/get-indicator-response.js +1 -1
- package/lib/response/index.d.ts +4 -2
- package/lib/response/index.js +2 -2
- package/lib/response/list-indicator-counts-response.d.ts +1 -1
- package/lib/response/list-indicator-counts-response.js +1 -1
- package/lib/response/list-indicators-response.d.ts +1 -1
- package/lib/response/list-indicators-response.js +1 -1
- package/lib/response/list-threat-types-response.d.ts +1 -1
- package/lib/response/list-threat-types-response.js +1 -1
- package/lib/response/summarize-indicators-response.d.ts +32 -0
- package/lib/response/summarize-indicators-response.js +15 -0
- package/lib/response/summarize-indicators-response.js.map +1 -0
- package/lib/threatintel-waiter.d.ts +2 -2
- package/lib/threatintel-waiter.js +2 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Threat Intelligence API
|
|
3
|
-
* Use the Threat Intelligence API to
|
|
4
|
-
* OpenAPI spec version:
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Threat Intelligence API
|
|
4
|
-
* Use the Threat Intelligence API to
|
|
5
|
-
* OpenAPI spec version:
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
package/lib/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Threat Intelligence API
|
|
3
|
-
* Use the Threat Intelligence API to
|
|
4
|
-
* OpenAPI spec version:
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -70,42 +70,51 @@ export declare class ThreatintelClient {
|
|
|
70
70
|
*/
|
|
71
71
|
getWaiters(): ThreatintelWaiter;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
* This operation
|
|
73
|
+
* Get detailed information about a threat indicator with a given identifier.
|
|
74
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
75
75
|
* @param GetIndicatorRequest
|
|
76
76
|
* @return GetIndicatorResponse
|
|
77
77
|
* @throws OciError when an error occurs
|
|
78
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
78
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/GetIndicator.ts.html |here} to see how to use GetIndicator API.
|
|
79
79
|
*/
|
|
80
80
|
getIndicator(getIndicatorRequest: requests.GetIndicatorRequest): Promise<responses.GetIndicatorResponse>;
|
|
81
81
|
/**
|
|
82
|
-
* Get the current count of each indicator type.
|
|
83
|
-
* This operation
|
|
82
|
+
* Get the current count of each threat indicator type. Indicator counts can be sorted in ascending or descending order.
|
|
83
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
84
84
|
* @param ListIndicatorCountsRequest
|
|
85
85
|
* @return ListIndicatorCountsResponse
|
|
86
86
|
* @throws OciError when an error occurs
|
|
87
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
87
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListIndicatorCounts.ts.html |here} to see how to use ListIndicatorCounts API.
|
|
88
88
|
*/
|
|
89
89
|
listIndicatorCounts(listIndicatorCountsRequest: requests.ListIndicatorCountsRequest): Promise<responses.ListIndicatorCountsResponse>;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Get a list of threat indicator summaries based on the search criteria.
|
|
92
92
|
*
|
|
93
|
-
* This operation
|
|
93
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
94
94
|
* @param ListIndicatorsRequest
|
|
95
95
|
* @return ListIndicatorsResponse
|
|
96
96
|
* @throws OciError when an error occurs
|
|
97
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
97
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListIndicators.ts.html |here} to see how to use ListIndicators API.
|
|
98
98
|
*/
|
|
99
99
|
listIndicators(listIndicatorsRequest: requests.ListIndicatorsRequest): Promise<responses.ListIndicatorsResponse>;
|
|
100
100
|
/**
|
|
101
101
|
* Gets a list of threat types that are available to use as parameters when querying indicators.
|
|
102
|
-
*
|
|
102
|
+
* The list is sorted by threat type name according to the sort order query param.
|
|
103
103
|
*
|
|
104
|
-
* This operation
|
|
104
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
105
105
|
* @param ListThreatTypesRequest
|
|
106
106
|
* @return ListThreatTypesResponse
|
|
107
107
|
* @throws OciError when an error occurs
|
|
108
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
108
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListThreatTypes.ts.html |here} to see how to use ListThreatTypes API.
|
|
109
109
|
*/
|
|
110
110
|
listThreatTypes(listThreatTypesRequest: requests.ListThreatTypesRequest): Promise<responses.ListThreatTypesResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Get indicator summaries based on advanced search criteria.
|
|
113
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
114
|
+
* @param SummarizeIndicatorsRequest
|
|
115
|
+
* @return SummarizeIndicatorsResponse
|
|
116
|
+
* @throws OciError when an error occurs
|
|
117
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/SummarizeIndicators.ts.html |here} to see how to use SummarizeIndicators API.
|
|
118
|
+
*/
|
|
119
|
+
summarizeIndicators(summarizeIndicatorsRequest: requests.SummarizeIndicatorsRequest): Promise<responses.SummarizeIndicatorsResponse>;
|
|
111
120
|
}
|
package/lib/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Threat Intelligence API
|
|
4
|
-
* Use the Threat Intelligence API to
|
|
5
|
-
* OpenAPI spec version:
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -103,7 +103,7 @@ class ThreatintelClient {
|
|
|
103
103
|
*/
|
|
104
104
|
set endpoint(endpoint) {
|
|
105
105
|
this._endpoint = endpoint;
|
|
106
|
-
this._endpoint = this._endpoint + "/
|
|
106
|
+
this._endpoint = this._endpoint + "/20220901";
|
|
107
107
|
if (this.logger)
|
|
108
108
|
this.logger.info(`ThreatintelClient endpoint set to ${this._endpoint}`);
|
|
109
109
|
}
|
|
@@ -151,19 +151,19 @@ class ThreatintelClient {
|
|
|
151
151
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* This operation
|
|
154
|
+
* Get detailed information about a threat indicator with a given identifier.
|
|
155
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
156
156
|
* @param GetIndicatorRequest
|
|
157
157
|
* @return GetIndicatorResponse
|
|
158
158
|
* @throws OciError when an error occurs
|
|
159
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/GetIndicator.ts.html |here} to see how to use GetIndicator API.
|
|
160
160
|
*/
|
|
161
161
|
getIndicator(getIndicatorRequest) {
|
|
162
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
163
|
if (this.logger)
|
|
164
164
|
this.logger.debug("Calling operation ThreatintelClient#getIndicator.");
|
|
165
165
|
const operationName = "getIndicator";
|
|
166
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/
|
|
166
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/20220901/Indicator/GetIndicator";
|
|
167
167
|
const pathParams = {
|
|
168
168
|
"{indicatorId}": getIndicatorRequest.indicatorId
|
|
169
169
|
};
|
|
@@ -174,7 +174,7 @@ class ThreatintelClient {
|
|
|
174
174
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
175
175
|
"opc-request-id": getIndicatorRequest.opcRequestId
|
|
176
176
|
};
|
|
177
|
-
const specRetryConfiguration = common.
|
|
177
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
178
178
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getIndicatorRequest.retryConfiguration, specRetryConfiguration);
|
|
179
179
|
if (this.logger)
|
|
180
180
|
retrier.logger = this.logger;
|
|
@@ -211,19 +211,19 @@ class ThreatintelClient {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* Get the current count of each indicator type.
|
|
215
|
-
* This operation
|
|
214
|
+
* Get the current count of each threat indicator type. Indicator counts can be sorted in ascending or descending order.
|
|
215
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
216
216
|
* @param ListIndicatorCountsRequest
|
|
217
217
|
* @return ListIndicatorCountsResponse
|
|
218
218
|
* @throws OciError when an error occurs
|
|
219
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
219
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListIndicatorCounts.ts.html |here} to see how to use ListIndicatorCounts API.
|
|
220
220
|
*/
|
|
221
221
|
listIndicatorCounts(listIndicatorCountsRequest) {
|
|
222
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
223
|
if (this.logger)
|
|
224
224
|
this.logger.debug("Calling operation ThreatintelClient#listIndicatorCounts.");
|
|
225
225
|
const operationName = "listIndicatorCounts";
|
|
226
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/
|
|
226
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/20220901/IndicatorCountCollection/ListIndicatorCounts";
|
|
227
227
|
const pathParams = {};
|
|
228
228
|
const queryParams = {
|
|
229
229
|
"compartmentId": listIndicatorCountsRequest.compartmentId,
|
|
@@ -233,7 +233,7 @@ class ThreatintelClient {
|
|
|
233
233
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
234
234
|
"opc-request-id": listIndicatorCountsRequest.opcRequestId
|
|
235
235
|
};
|
|
236
|
-
const specRetryConfiguration = common.
|
|
236
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
237
237
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listIndicatorCountsRequest.retryConfiguration, specRetryConfiguration);
|
|
238
238
|
if (this.logger)
|
|
239
239
|
retrier.logger = this.logger;
|
|
@@ -270,20 +270,20 @@ class ThreatintelClient {
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
*
|
|
273
|
+
* Get a list of threat indicator summaries based on the search criteria.
|
|
274
274
|
*
|
|
275
|
-
* This operation
|
|
275
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
276
276
|
* @param ListIndicatorsRequest
|
|
277
277
|
* @return ListIndicatorsResponse
|
|
278
278
|
* @throws OciError when an error occurs
|
|
279
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
279
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListIndicators.ts.html |here} to see how to use ListIndicators API.
|
|
280
280
|
*/
|
|
281
281
|
listIndicators(listIndicatorsRequest) {
|
|
282
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
283
283
|
if (this.logger)
|
|
284
284
|
this.logger.debug("Calling operation ThreatintelClient#listIndicators.");
|
|
285
285
|
const operationName = "listIndicators";
|
|
286
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/
|
|
286
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/20220901/IndicatorSummaryCollection/ListIndicators";
|
|
287
287
|
const pathParams = {};
|
|
288
288
|
const queryParams = {
|
|
289
289
|
"compartmentId": listIndicatorsRequest.compartmentId,
|
|
@@ -292,6 +292,11 @@ class ThreatintelClient {
|
|
|
292
292
|
"value": listIndicatorsRequest.value,
|
|
293
293
|
"confidenceGreaterThanOrEqualTo": listIndicatorsRequest.confidenceGreaterThanOrEqualTo,
|
|
294
294
|
"timeUpdatedGreaterThanOrEqualTo": listIndicatorsRequest.timeUpdatedGreaterThanOrEqualTo,
|
|
295
|
+
"timeUpdatedLessThan": listIndicatorsRequest.timeUpdatedLessThan,
|
|
296
|
+
"timeLastSeenGreaterThanOrEqualTo": listIndicatorsRequest.timeLastSeenGreaterThanOrEqualTo,
|
|
297
|
+
"timeLastSeenLessThan": listIndicatorsRequest.timeLastSeenLessThan,
|
|
298
|
+
"timeCreatedGreaterThanOrEqualTo": listIndicatorsRequest.timeCreatedGreaterThanOrEqualTo,
|
|
299
|
+
"timeCreatedLessThan": listIndicatorsRequest.timeCreatedLessThan,
|
|
295
300
|
"limit": listIndicatorsRequest.limit,
|
|
296
301
|
"page": listIndicatorsRequest.page,
|
|
297
302
|
"sortOrder": listIndicatorsRequest.sortOrder,
|
|
@@ -301,7 +306,7 @@ class ThreatintelClient {
|
|
|
301
306
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
302
307
|
"opc-request-id": listIndicatorsRequest.opcRequestId
|
|
303
308
|
};
|
|
304
|
-
const specRetryConfiguration = common.
|
|
309
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
305
310
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listIndicatorsRequest.retryConfiguration, specRetryConfiguration);
|
|
306
311
|
if (this.logger)
|
|
307
312
|
retrier.logger = this.logger;
|
|
@@ -344,20 +349,20 @@ class ThreatintelClient {
|
|
|
344
349
|
}
|
|
345
350
|
/**
|
|
346
351
|
* Gets a list of threat types that are available to use as parameters when querying indicators.
|
|
347
|
-
*
|
|
352
|
+
* The list is sorted by threat type name according to the sort order query param.
|
|
348
353
|
*
|
|
349
|
-
* This operation
|
|
354
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
350
355
|
* @param ListThreatTypesRequest
|
|
351
356
|
* @return ListThreatTypesResponse
|
|
352
357
|
* @throws OciError when an error occurs
|
|
353
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
358
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/ListThreatTypes.ts.html |here} to see how to use ListThreatTypes API.
|
|
354
359
|
*/
|
|
355
360
|
listThreatTypes(listThreatTypesRequest) {
|
|
356
361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
362
|
if (this.logger)
|
|
358
363
|
this.logger.debug("Calling operation ThreatintelClient#listThreatTypes.");
|
|
359
364
|
const operationName = "listThreatTypes";
|
|
360
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/
|
|
365
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/20220901/ThreatTypesCollection/ListThreatTypes";
|
|
361
366
|
const pathParams = {};
|
|
362
367
|
const queryParams = {
|
|
363
368
|
"compartmentId": listThreatTypesRequest.compartmentId,
|
|
@@ -369,7 +374,7 @@ class ThreatintelClient {
|
|
|
369
374
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
370
375
|
"opc-request-id": listThreatTypesRequest.opcRequestId
|
|
371
376
|
};
|
|
372
|
-
const specRetryConfiguration = common.
|
|
377
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
373
378
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listThreatTypesRequest.retryConfiguration, specRetryConfiguration);
|
|
374
379
|
if (this.logger)
|
|
375
380
|
retrier.logger = this.logger;
|
|
@@ -410,6 +415,72 @@ class ThreatintelClient {
|
|
|
410
415
|
}
|
|
411
416
|
});
|
|
412
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Get indicator summaries based on advanced search criteria.
|
|
420
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
421
|
+
* @param SummarizeIndicatorsRequest
|
|
422
|
+
* @return SummarizeIndicatorsResponse
|
|
423
|
+
* @throws OciError when an error occurs
|
|
424
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.43.0/threatintelligence/SummarizeIndicators.ts.html |here} to see how to use SummarizeIndicators API.
|
|
425
|
+
*/
|
|
426
|
+
summarizeIndicators(summarizeIndicatorsRequest) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
if (this.logger)
|
|
429
|
+
this.logger.debug("Calling operation ThreatintelClient#summarizeIndicators.");
|
|
430
|
+
const operationName = "summarizeIndicators";
|
|
431
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/threat-intel/20220901/Indicator/SummarizeIndicators";
|
|
432
|
+
const pathParams = {};
|
|
433
|
+
const queryParams = {
|
|
434
|
+
"compartmentId": summarizeIndicatorsRequest.compartmentId,
|
|
435
|
+
"limit": summarizeIndicatorsRequest.limit,
|
|
436
|
+
"page": summarizeIndicatorsRequest.page
|
|
437
|
+
};
|
|
438
|
+
let headerParams = {
|
|
439
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
440
|
+
"opc-request-id": summarizeIndicatorsRequest.opcRequestId
|
|
441
|
+
};
|
|
442
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
443
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeIndicatorsRequest.retryConfiguration, specRetryConfiguration);
|
|
444
|
+
if (this.logger)
|
|
445
|
+
retrier.logger = this.logger;
|
|
446
|
+
const request = yield oci_common_1.composeRequest({
|
|
447
|
+
baseEndpoint: this._endpoint,
|
|
448
|
+
defaultHeaders: this._defaultHeaders,
|
|
449
|
+
path: "/indicators/actions/summarize",
|
|
450
|
+
method: "POST",
|
|
451
|
+
bodyContent: common.ObjectSerializer.serialize(summarizeIndicatorsRequest.summarizeIndicatorsDetails, "SummarizeIndicatorsDetails", model.SummarizeIndicatorsDetails.getJsonObj),
|
|
452
|
+
pathParams: pathParams,
|
|
453
|
+
headerParams: headerParams,
|
|
454
|
+
queryParams: queryParams
|
|
455
|
+
});
|
|
456
|
+
try {
|
|
457
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
458
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
459
|
+
responseObject: {},
|
|
460
|
+
body: yield response.json(),
|
|
461
|
+
bodyKey: "indicatorSummaryCollection",
|
|
462
|
+
bodyModel: model.IndicatorSummaryCollection,
|
|
463
|
+
type: "model.IndicatorSummaryCollection",
|
|
464
|
+
responseHeaders: [
|
|
465
|
+
{
|
|
466
|
+
value: response.headers.get("opc-request-id"),
|
|
467
|
+
key: "opcRequestId",
|
|
468
|
+
dataType: "string"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
value: response.headers.get("opc-next-page"),
|
|
472
|
+
key: "opcNextPage",
|
|
473
|
+
dataType: "string"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
});
|
|
477
|
+
return sdkResponse;
|
|
478
|
+
}
|
|
479
|
+
catch (err) {
|
|
480
|
+
throw err;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
413
484
|
}
|
|
414
485
|
exports.ThreatintelClient = ThreatintelClient;
|
|
415
486
|
ThreatintelClient.serviceEndpointTemplate = "https://api-threatintel.{region}.oci.{secondLevelDomain}";
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/threatintelligence/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,6DAAyD;AACzD,2CAA6E;AAE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CAAC,GAAG,CAAC,eAAe,CAAC;4BAC5C,GAAG,EAAE,aAAa;4BAClB,QAAQ,EAAE,QAAQ;yBACnB;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,WAAW,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,GAAG,CAAC;aACX;QACH,CAAC;KAAA;;AA1gBH,8CA2gBC;AA1gBkB,yCAAuB,GACtC,0DAA0D,CAAC;AAC5C,qCAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Threat Intelligence API
|
|
3
|
-
* Use the Threat Intelligence API to
|
|
4
|
-
* OpenAPI spec version:
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
/**
|
|
15
|
-
* The confidence, source information, and visibility for a particular sighting or observation of some data associated with
|
|
15
|
+
* The confidence, source information, and visibility for a particular sighting or observation of some data associated with a threat indicator. This associated data can be the indicator's threat type, attribute, or relationship.
|
|
16
16
|
*/
|
|
17
17
|
export interface DataAttribution {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* An integer from 0 to 100 that provides a measure of our certainty in the maliciousness of data attributed to an indicator. For example, if the source of the data being attributed is the Tor Project, our confidence that the associated indicator is a tor exit node would be 100. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
20
20
|
*/
|
|
21
21
|
"confidence": number;
|
|
22
22
|
"source": model.IndicatorSourceSummary;
|
|
23
23
|
"visibility": model.DataVisibility;
|
|
24
24
|
/**
|
|
25
|
-
* The time the data was first seen for this entity.
|
|
25
|
+
* The date and time the attribution data was first seen for this entity. If the data source does not provide this information, it is set to the last time it was seen. An RFC3339 formatted string.
|
|
26
26
|
*/
|
|
27
27
|
"timeFirstSeen"?: Date;
|
|
28
28
|
/**
|
|
29
|
-
* The last time
|
|
29
|
+
* The last date and time the attribution data was seen for this entity. An RFC3339 formatted string.
|
|
30
30
|
*/
|
|
31
31
|
"timeLastSeen": Date;
|
|
32
32
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Threat Intelligence API
|
|
4
|
-
* Use the Threat Intelligence API to
|
|
5
|
-
* OpenAPI spec version:
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Threat Intelligence API
|
|
3
|
-
* Use the Threat Intelligence API to
|
|
4
|
-
* OpenAPI spec version:
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
|
-
* The visibility level
|
|
14
|
+
* The visibility level of attribution data, including its [Traffic Light Protocol (TLP)](https://www.cisa.gov/tlp) color.
|
|
15
15
|
*/
|
|
16
16
|
export interface DataVisibility {
|
|
17
17
|
/**
|
|
@@ -19,7 +19,7 @@ export interface DataVisibility {
|
|
|
19
19
|
*/
|
|
20
20
|
"name": string;
|
|
21
21
|
/**
|
|
22
|
-
* The Traffic Light Protocol (TLP)
|
|
22
|
+
* The Traffic Light Protocol (TLP) color of the visibility level.
|
|
23
23
|
*/
|
|
24
24
|
"tlpName": DataVisibility.TlpName;
|
|
25
25
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Threat Intelligence API
|
|
4
|
-
* Use the Threat Intelligence API to
|
|
5
|
-
* OpenAPI spec version:
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Threat Intelligence API
|
|
3
|
-
* Use the Threat Intelligence API to
|
|
4
|
-
* OpenAPI spec version:
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* A reference to a resource or other entity.
|
|
15
15
|
*/
|
|
16
16
|
export interface EntityReference {
|
|
17
17
|
"type": string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Threat Intelligence API
|
|
4
|
-
* Use the Threat Intelligence API to
|
|
5
|
-
* OpenAPI spec version:
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Threat Intelligence API
|
|
3
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220901
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Geodata information for a given IP address
|
|
15
|
+
*/
|
|
16
|
+
export interface GeodataDetails {
|
|
17
|
+
/**
|
|
18
|
+
* Encompassing assigned prefix for the IP
|
|
19
|
+
*/
|
|
20
|
+
"routedPrefix"?: string;
|
|
21
|
+
/**
|
|
22
|
+
* ASN entry
|
|
23
|
+
*/
|
|
24
|
+
"origin": string;
|
|
25
|
+
/**
|
|
26
|
+
* Unique Identifier (optional)
|
|
27
|
+
*/
|
|
28
|
+
"geoId"?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Two-letter abbreviation for country of origin
|
|
31
|
+
*/
|
|
32
|
+
"countryCode": string;
|
|
33
|
+
/**
|
|
34
|
+
* State/Province/subdivision within the country
|
|
35
|
+
*/
|
|
36
|
+
"adminDiv": string;
|
|
37
|
+
/**
|
|
38
|
+
* City of origin
|
|
39
|
+
*/
|
|
40
|
+
"city": string;
|
|
41
|
+
/**
|
|
42
|
+
* Latitude
|
|
43
|
+
*/
|
|
44
|
+
"latitude": string;
|
|
45
|
+
/**
|
|
46
|
+
* Longitude
|
|
47
|
+
*/
|
|
48
|
+
"longitude": string;
|
|
49
|
+
/**
|
|
50
|
+
* Information on source providing the information
|
|
51
|
+
*/
|
|
52
|
+
"label": string;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace GeodataDetails {
|
|
55
|
+
function getJsonObj(obj: GeodataDetails): object;
|
|
56
|
+
function getDeserializedJsonObj(obj: GeodataDetails): object;
|
|
57
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Threat Intelligence API
|
|
4
|
+
* Use the Threat Intelligence API to search for information about known threat indicators, including suspicious IP addresses, domain names, and other digital fingerprints. Threat Intelligence is a managed database of curated threat intelligence that comes from first party Oracle security insights, open source feeds, and vendor-procured data. For more information, see the [Threat Intelligence documentation](/iaas/Content/threat-intel/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GeodataDetails = void 0;
|
|
16
|
+
var GeodataDetails;
|
|
17
|
+
(function (GeodataDetails) {
|
|
18
|
+
function getJsonObj(obj) {
|
|
19
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
20
|
+
return jsonObj;
|
|
21
|
+
}
|
|
22
|
+
GeodataDetails.getJsonObj = getJsonObj;
|
|
23
|
+
function getDeserializedJsonObj(obj) {
|
|
24
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
25
|
+
return jsonObj;
|
|
26
|
+
}
|
|
27
|
+
GeodataDetails.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
28
|
+
})(GeodataDetails = exports.GeodataDetails || (exports.GeodataDetails = {}));
|
|
29
|
+
//# sourceMappingURL=geodata-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geodata-details.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/model/geodata-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA+CH,IAAiB,cAAc,CAW9B;AAXD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB;QAC5C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,yBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmB;QACxD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,qCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAW9B"}
|