oci-threatintelligence 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +1521 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +109 -0
  9. package/lib/client.js +403 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/model/data-attribution.d.ts +36 -0
  12. package/lib/model/data-attribution.js +59 -0
  13. package/lib/model/data-attribution.js.map +1 -0
  14. package/lib/model/data-visibility.d.ts +41 -0
  15. package/lib/model/data-visibility.js +42 -0
  16. package/lib/model/data-visibility.js.map +1 -0
  17. package/lib/model/entity-reference.d.ts +22 -0
  18. package/lib/model/entity-reference.js +65 -0
  19. package/lib/model/entity-reference.js.map +1 -0
  20. package/lib/model/index.d.ts +50 -0
  21. package/lib/model/index.js +73 -0
  22. package/lib/model/index.js.map +1 -0
  23. package/lib/model/indicator-attribute.d.ts +34 -0
  24. package/lib/model/indicator-attribute.js +61 -0
  25. package/lib/model/indicator-attribute.js.map +1 -0
  26. package/lib/model/indicator-count-collection.d.ts +26 -0
  27. package/lib/model/indicator-count-collection.js +61 -0
  28. package/lib/model/indicator-count-collection.js.map +1 -0
  29. package/lib/model/indicator-count-dimensions.d.ts +30 -0
  30. package/lib/model/indicator-count-dimensions.js +29 -0
  31. package/lib/model/indicator-count-dimensions.js.map +1 -0
  32. package/lib/model/indicator-count-summary.d.ts +27 -0
  33. package/lib/model/indicator-count-summary.js +57 -0
  34. package/lib/model/indicator-count-summary.js.map +1 -0
  35. package/lib/model/indicator-reference.d.ts +28 -0
  36. package/lib/model/indicator-reference.js +52 -0
  37. package/lib/model/indicator-reference.js.map +1 -0
  38. package/lib/model/indicator-relationship.d.ts +31 -0
  39. package/lib/model/indicator-relationship.js +67 -0
  40. package/lib/model/indicator-relationship.js.map +1 -0
  41. package/lib/model/indicator-source-summary.d.ts +25 -0
  42. package/lib/model/indicator-source-summary.js +29 -0
  43. package/lib/model/indicator-source-summary.js.map +1 -0
  44. package/lib/model/indicator-summary-collection.d.ts +26 -0
  45. package/lib/model/indicator-summary-collection.js +61 -0
  46. package/lib/model/indicator-summary-collection.js.map +1 -0
  47. package/lib/model/indicator-summary.d.ts +58 -0
  48. package/lib/model/indicator-summary.js +61 -0
  49. package/lib/model/indicator-summary.js.map +1 -0
  50. package/lib/model/indicator-type.d.ts +33 -0
  51. package/lib/model/indicator-type.js +44 -0
  52. package/lib/model/indicator-type.js.map +1 -0
  53. package/lib/model/indicator.d.ts +72 -0
  54. package/lib/model/indicator.js +81 -0
  55. package/lib/model/indicator.js.map +1 -0
  56. package/lib/model/lifecycle-state.d.ts +28 -0
  57. package/lib/model/lifecycle-state.js +39 -0
  58. package/lib/model/lifecycle-state.js.map +1 -0
  59. package/lib/model/sort-order.d.ts +23 -0
  60. package/lib/model/sort-order.js +34 -0
  61. package/lib/model/sort-order.js.map +1 -0
  62. package/lib/model/threat-type-summary.d.ts +29 -0
  63. package/lib/model/threat-type-summary.js +29 -0
  64. package/lib/model/threat-type-summary.js.map +1 -0
  65. package/lib/model/threat-type.d.ts +34 -0
  66. package/lib/model/threat-type.js +61 -0
  67. package/lib/model/threat-type.js.map +1 -0
  68. package/lib/model/threat-types-collection.d.ts +26 -0
  69. package/lib/model/threat-types-collection.js +61 -0
  70. package/lib/model/threat-types-collection.js.map +1 -0
  71. package/lib/request/get-indicator-request.d.ts +30 -0
  72. package/lib/request/get-indicator-request.js +15 -0
  73. package/lib/request/get-indicator-request.js.map +1 -0
  74. package/lib/request/index.d.ts +20 -0
  75. package/lib/request/index.js +37 -0
  76. package/lib/request/index.js.map +1 -0
  77. package/lib/request/list-indicator-counts-request.d.ts +31 -0
  78. package/lib/request/list-indicator-counts-request.js +15 -0
  79. package/lib/request/list-indicator-counts-request.js.map +1 -0
  80. package/lib/request/list-indicators-request.d.ts +70 -0
  81. package/lib/request/list-indicators-request.js +24 -0
  82. package/lib/request/list-indicators-request.js.map +1 -0
  83. package/lib/request/list-threat-types-request.d.ts +39 -0
  84. package/lib/request/list-threat-types-request.js +15 -0
  85. package/lib/request/list-threat-types-request.js.map +1 -0
  86. package/lib/response/get-indicator-response.d.ts +25 -0
  87. package/lib/response/get-indicator-response.js +15 -0
  88. package/lib/response/get-indicator-response.js.map +1 -0
  89. package/lib/response/index.d.ts +20 -0
  90. package/lib/response/index.js +15 -0
  91. package/lib/response/index.js.map +1 -0
  92. package/lib/response/list-indicator-counts-response.d.ts +25 -0
  93. package/lib/response/list-indicator-counts-response.js +15 -0
  94. package/lib/response/list-indicator-counts-response.js.map +1 -0
  95. package/lib/response/list-indicators-response.d.ts +32 -0
  96. package/lib/response/list-indicators-response.js +15 -0
  97. package/lib/response/list-indicators-response.js.map +1 -0
  98. package/lib/response/list-threat-types-response.d.ts +32 -0
  99. package/lib/response/list-threat-types-response.js +15 -0
  100. package/lib/response/list-threat-types-response.js.map +1 -0
  101. package/lib/threatintel-waiter.d.ts +29 -0
  102. package/lib/threatintel-waiter.js +65 -0
  103. package/lib/threatintel-waiter.js.map +1 -0
  104. package/package.json +29 -0
package/index.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Threat Intelligence API
3
+ * Use the Threat Intelligence API to view indicators of compromise and related items. For more information, see [Overview of Threat Intelligence](/Content/ThreatIntelligence/Concepts/threatintelligenceoverview.htm).
4
+ * OpenAPI spec version: 20210831
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
+ import * as requests from "./lib/request";
14
+ import * as models from "./lib/model";
15
+ import * as responses from "./lib/response";
16
+ import * as client from "./lib/client";
17
+ import * as threatintel_waiter from "./lib/threatintel-waiter";
18
+ export { models };
19
+ export { requests };
20
+ export { responses };
21
+ export import ThreatintelClient = client.ThreatintelClient;
22
+ export import ThreatintelWaiter = threatintel_waiter.ThreatintelWaiter;
package/index.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * Threat Intelligence API
4
+ * Use the Threat Intelligence API to view indicators of compromise and related items. For more information, see [Overview of Threat Intelligence](/Content/ThreatIntelligence/Concepts/threatintelligenceoverview.htm).
5
+ * OpenAPI spec version: 20210831
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.ThreatintelWaiter = exports.ThreatintelClient = exports.responses = exports.requests = exports.models = void 0;
35
+ const requests = __importStar(require("./lib/request"));
36
+ exports.requests = requests;
37
+ const models = __importStar(require("./lib/model"));
38
+ exports.models = models;
39
+ const responses = __importStar(require("./lib/response"));
40
+ exports.responses = responses;
41
+ const client = __importStar(require("./lib/client"));
42
+ const threatintel_waiter = __importStar(require("./lib/threatintel-waiter"));
43
+ exports.ThreatintelClient = client.ThreatintelClient;
44
+ exports.ThreatintelWaiter = threatintel_waiter.ThreatintelWaiter;
45
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/threatintelligence/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAOjC,4BAAQ;AANjB,oDAAsC;AAK7B,wBAAM;AAJf,0DAA4C;AAMnC,8BAAS;AALlB,qDAAuC;AACvC,6EAA+D;AAKjD,QAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC7C,QAAA,iBAAiB,GAAG,kBAAkB,CAAC,iBAAiB,CAAC"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Threat Intelligence API
3
+ * Use the Threat Intelligence API to view indicators of compromise and related items. For more information, see [Overview of Threat Intelligence](/Content/ThreatIntelligence/Concepts/threatintelligenceoverview.htm).
4
+ * OpenAPI spec version: 20210831
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
+ import common = require("oci-common");
14
+ import * as requests from "./request";
15
+ import * as responses from "./response";
16
+ import { ThreatintelWaiter } from "./threatintel-waiter";
17
+ export declare enum ThreatintelApiKeys {
18
+ }
19
+ /**
20
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
21
+ */
22
+ export declare class ThreatintelClient {
23
+ protected static serviceEndpointTemplate: string;
24
+ protected static endpointServiceName: string;
25
+ protected "_endpoint": string;
26
+ protected "_defaultHeaders": any;
27
+ protected "_waiters": ThreatintelWaiter;
28
+ protected "_clientConfiguration": common.ClientConfiguration;
29
+ protected _circuitBreaker: null;
30
+ protected _httpClient: common.HttpClient;
31
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
32
+ /**
33
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
34
+ */
35
+ get endpoint(): string;
36
+ /**
37
+ * Sets the endpoint to call (ex, https://www.example.com).
38
+ * @param endpoint The endpoint of the service.
39
+ */
40
+ set endpoint(endpoint: string);
41
+ get logger(): import("oci-common/lib/log").Logger;
42
+ /**
43
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
44
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
45
+ * @param region The region of the service.
46
+ */
47
+ set region(region: common.Region);
48
+ /**
49
+ * Sets the regionId to call (ex, 'us-phoenix-1').
50
+ *
51
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
52
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
53
+ * and then call {@link #endpoint(String) endpoint}.
54
+ * @param regionId The public region ID.
55
+ */
56
+ set regionId(regionId: string);
57
+ /**
58
+ * Creates a new ThreatintelWaiter for resources for this service.
59
+ *
60
+ * @param config The waiter configuration for termination and delay strategy
61
+ * @return The service waiters.
62
+ */
63
+ createWaiters(config?: common.WaiterConfiguration): ThreatintelWaiter;
64
+ /**
65
+ * Gets the waiters available for resources for this service.
66
+ *
67
+ * @return The service waiters.
68
+ */
69
+ getWaiters(): ThreatintelWaiter;
70
+ /**
71
+ * Gets a detailed indicator by identifier
72
+ * This operation does not retry by default if the user has not defined a retry configuration.
73
+ * @param GetIndicatorRequest
74
+ * @return GetIndicatorResponse
75
+ * @throws OciError when an error occurs
76
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/GetIndicator.ts.html |here} to see how to use GetIndicator API.
77
+ */
78
+ getIndicator(getIndicatorRequest: requests.GetIndicatorRequest): Promise<responses.GetIndicatorResponse>;
79
+ /**
80
+ * Get the current count of each indicator type. Results can be sorted ASC or DESC by count.
81
+ * This operation does not retry by default if the user has not defined a retry configuration.
82
+ * @param ListIndicatorCountsRequest
83
+ * @return ListIndicatorCountsResponse
84
+ * @throws OciError when an error occurs
85
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListIndicatorCounts.ts.html |here} to see how to use ListIndicatorCounts API.
86
+ */
87
+ listIndicatorCounts(listIndicatorCountsRequest: requests.ListIndicatorCountsRequest): Promise<responses.ListIndicatorCountsResponse>;
88
+ /**
89
+ * Returns a list of IndicatorSummary objects.
90
+ *
91
+ * This operation does not retry by default if the user has not defined a retry configuration.
92
+ * @param ListIndicatorsRequest
93
+ * @return ListIndicatorsResponse
94
+ * @throws OciError when an error occurs
95
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListIndicators.ts.html |here} to see how to use ListIndicators API.
96
+ */
97
+ listIndicators(listIndicatorsRequest: requests.ListIndicatorsRequest): Promise<responses.ListIndicatorsResponse>;
98
+ /**
99
+ * Gets a list of threat types that are available to use as parameters when querying indicators.
100
+ * This is sorted by threat type name according to the sort order query param.
101
+ *
102
+ * This operation does not retry by default if the user has not defined a retry configuration.
103
+ * @param ListThreatTypesRequest
104
+ * @return ListThreatTypesResponse
105
+ * @throws OciError when an error occurs
106
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListThreatTypes.ts.html |here} to see how to use ListThreatTypes API.
107
+ */
108
+ listThreatTypes(listThreatTypesRequest: requests.ListThreatTypesRequest): Promise<responses.ListThreatTypesResponse>;
109
+ }
package/lib/client.js ADDED
@@ -0,0 +1,403 @@
1
+ "use strict";
2
+ /**
3
+ * Threat Intelligence API
4
+ * Use the Threat Intelligence API to view indicators of compromise and related items. For more information, see [Overview of Threat Intelligence](/Content/ThreatIntelligence/Concepts/threatintelligenceoverview.htm).
5
+ * OpenAPI spec version: 20210831
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.ThreatintelClient = exports.ThreatintelApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const threatintel_waiter_1 = require("./threatintel-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ // ===============================================
49
+ // This file is autogenerated - Please do not edit
50
+ // ===============================================
51
+ var ThreatintelApiKeys;
52
+ (function (ThreatintelApiKeys) {
53
+ })(ThreatintelApiKeys = exports.ThreatintelApiKeys || (exports.ThreatintelApiKeys = {}));
54
+ /**
55
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
56
+ */
57
+ class ThreatintelClient {
58
+ constructor(params, clientConfiguration) {
59
+ this["_endpoint"] = "";
60
+ this["_defaultHeaders"] = {};
61
+ this._circuitBreaker = null;
62
+ const requestSigner = params.authenticationDetailsProvider
63
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
64
+ : null;
65
+ if (clientConfiguration) {
66
+ this._clientConfiguration = clientConfiguration;
67
+ this._circuitBreaker = clientConfiguration.circuitBreaker
68
+ ? clientConfiguration.circuitBreaker.circuit
69
+ : null;
70
+ }
71
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
72
+ const specCircuitBreakerEnabled = true;
73
+ if (!this._circuitBreaker &&
74
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
75
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
76
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
77
+ }
78
+ this._httpClient =
79
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
80
+ if (params.authenticationDetailsProvider &&
81
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
82
+ const provider = params.authenticationDetailsProvider;
83
+ if (provider.getRegion()) {
84
+ this.region = provider.getRegion();
85
+ }
86
+ }
87
+ }
88
+ /**
89
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
90
+ */
91
+ get endpoint() {
92
+ return this._endpoint;
93
+ }
94
+ /**
95
+ * Sets the endpoint to call (ex, https://www.example.com).
96
+ * @param endpoint The endpoint of the service.
97
+ */
98
+ set endpoint(endpoint) {
99
+ this._endpoint = endpoint;
100
+ this._endpoint = this._endpoint + "/20210831";
101
+ if (this.logger)
102
+ this.logger.info(`ThreatintelClient endpoint set to ${this._endpoint}`);
103
+ }
104
+ get logger() {
105
+ return common.LOG.logger;
106
+ }
107
+ /**
108
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
109
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
110
+ * @param region The region of the service.
111
+ */
112
+ set region(region) {
113
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ThreatintelClient.serviceEndpointTemplate, region, ThreatintelClient.endpointServiceName);
114
+ }
115
+ /**
116
+ * Sets the regionId to call (ex, 'us-phoenix-1').
117
+ *
118
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
119
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
120
+ * and then call {@link #endpoint(String) endpoint}.
121
+ * @param regionId The public region ID.
122
+ */
123
+ set regionId(regionId) {
124
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ThreatintelClient.serviceEndpointTemplate, regionId, ThreatintelClient.endpointServiceName);
125
+ }
126
+ /**
127
+ * Creates a new ThreatintelWaiter for resources for this service.
128
+ *
129
+ * @param config The waiter configuration for termination and delay strategy
130
+ * @return The service waiters.
131
+ */
132
+ createWaiters(config) {
133
+ this._waiters = new threatintel_waiter_1.ThreatintelWaiter(this, config);
134
+ return this._waiters;
135
+ }
136
+ /**
137
+ * Gets the waiters available for resources for this service.
138
+ *
139
+ * @return The service waiters.
140
+ */
141
+ getWaiters() {
142
+ if (this._waiters) {
143
+ return this._waiters;
144
+ }
145
+ throw Error("Waiters do not exist. Please create waiters.");
146
+ }
147
+ /**
148
+ * Gets a detailed indicator by identifier
149
+ * This operation does not retry by default if the user has not defined a retry configuration.
150
+ * @param GetIndicatorRequest
151
+ * @return GetIndicatorResponse
152
+ * @throws OciError when an error occurs
153
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/GetIndicator.ts.html |here} to see how to use GetIndicator API.
154
+ */
155
+ getIndicator(getIndicatorRequest) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ if (this.logger)
158
+ this.logger.debug("Calling operation ThreatintelClient#getIndicator.");
159
+ const pathParams = {
160
+ "{indicatorId}": getIndicatorRequest.indicatorId
161
+ };
162
+ const queryParams = {
163
+ "compartmentId": getIndicatorRequest.compartmentId
164
+ };
165
+ let headerParams = {
166
+ "Content-Type": common.Constants.APPLICATION_JSON,
167
+ "opc-request-id": getIndicatorRequest.opcRequestId
168
+ };
169
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
170
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getIndicatorRequest.retryConfiguration, specRetryConfiguration);
171
+ if (this.logger)
172
+ retrier.logger = this.logger;
173
+ const request = yield oci_common_1.composeRequest({
174
+ baseEndpoint: this._endpoint,
175
+ defaultHeaders: this._defaultHeaders,
176
+ path: "/indicators/{indicatorId}",
177
+ method: "GET",
178
+ pathParams: pathParams,
179
+ headerParams: headerParams,
180
+ queryParams: queryParams
181
+ });
182
+ try {
183
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
184
+ const sdkResponse = oci_common_1.composeResponse({
185
+ responseObject: {},
186
+ body: yield response.json(),
187
+ bodyKey: "indicator",
188
+ bodyModel: model.Indicator,
189
+ type: "model.Indicator",
190
+ responseHeaders: [
191
+ {
192
+ value: response.headers.get("opc-request-id"),
193
+ key: "opcRequestId",
194
+ dataType: "string"
195
+ }
196
+ ]
197
+ });
198
+ return sdkResponse;
199
+ }
200
+ catch (err) {
201
+ throw err;
202
+ }
203
+ });
204
+ }
205
+ /**
206
+ * Get the current count of each indicator type. Results can be sorted ASC or DESC by count.
207
+ * This operation does not retry by default if the user has not defined a retry configuration.
208
+ * @param ListIndicatorCountsRequest
209
+ * @return ListIndicatorCountsResponse
210
+ * @throws OciError when an error occurs
211
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListIndicatorCounts.ts.html |here} to see how to use ListIndicatorCounts API.
212
+ */
213
+ listIndicatorCounts(listIndicatorCountsRequest) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ if (this.logger)
216
+ this.logger.debug("Calling operation ThreatintelClient#listIndicatorCounts.");
217
+ const pathParams = {};
218
+ const queryParams = {
219
+ "compartmentId": listIndicatorCountsRequest.compartmentId,
220
+ "sortOrder": listIndicatorCountsRequest.sortOrder
221
+ };
222
+ let headerParams = {
223
+ "Content-Type": common.Constants.APPLICATION_JSON,
224
+ "opc-request-id": listIndicatorCountsRequest.opcRequestId
225
+ };
226
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
227
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listIndicatorCountsRequest.retryConfiguration, specRetryConfiguration);
228
+ if (this.logger)
229
+ retrier.logger = this.logger;
230
+ const request = yield oci_common_1.composeRequest({
231
+ baseEndpoint: this._endpoint,
232
+ defaultHeaders: this._defaultHeaders,
233
+ path: "/indicatorCounts",
234
+ method: "GET",
235
+ pathParams: pathParams,
236
+ headerParams: headerParams,
237
+ queryParams: queryParams
238
+ });
239
+ try {
240
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
241
+ const sdkResponse = oci_common_1.composeResponse({
242
+ responseObject: {},
243
+ body: yield response.json(),
244
+ bodyKey: "indicatorCountCollection",
245
+ bodyModel: model.IndicatorCountCollection,
246
+ type: "model.IndicatorCountCollection",
247
+ responseHeaders: [
248
+ {
249
+ value: response.headers.get("opc-request-id"),
250
+ key: "opcRequestId",
251
+ dataType: "string"
252
+ }
253
+ ]
254
+ });
255
+ return sdkResponse;
256
+ }
257
+ catch (err) {
258
+ throw err;
259
+ }
260
+ });
261
+ }
262
+ /**
263
+ * Returns a list of IndicatorSummary objects.
264
+ *
265
+ * This operation does not retry by default if the user has not defined a retry configuration.
266
+ * @param ListIndicatorsRequest
267
+ * @return ListIndicatorsResponse
268
+ * @throws OciError when an error occurs
269
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListIndicators.ts.html |here} to see how to use ListIndicators API.
270
+ */
271
+ listIndicators(listIndicatorsRequest) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ if (this.logger)
274
+ this.logger.debug("Calling operation ThreatintelClient#listIndicators.");
275
+ const pathParams = {};
276
+ const queryParams = {
277
+ "compartmentId": listIndicatorsRequest.compartmentId,
278
+ "threatTypeName": listIndicatorsRequest.threatTypeName,
279
+ "type": listIndicatorsRequest.type,
280
+ "value": listIndicatorsRequest.value,
281
+ "confidenceGreaterThanOrEqualTo": listIndicatorsRequest.confidenceGreaterThanOrEqualTo,
282
+ "timeUpdatedGreaterThanOrEqualTo": listIndicatorsRequest.timeUpdatedGreaterThanOrEqualTo,
283
+ "limit": listIndicatorsRequest.limit,
284
+ "page": listIndicatorsRequest.page,
285
+ "sortOrder": listIndicatorsRequest.sortOrder,
286
+ "sortBy": listIndicatorsRequest.sortBy
287
+ };
288
+ let headerParams = {
289
+ "Content-Type": common.Constants.APPLICATION_JSON,
290
+ "opc-request-id": listIndicatorsRequest.opcRequestId
291
+ };
292
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
293
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listIndicatorsRequest.retryConfiguration, specRetryConfiguration);
294
+ if (this.logger)
295
+ retrier.logger = this.logger;
296
+ const request = yield oci_common_1.composeRequest({
297
+ baseEndpoint: this._endpoint,
298
+ defaultHeaders: this._defaultHeaders,
299
+ path: "/indicators",
300
+ method: "GET",
301
+ pathParams: pathParams,
302
+ headerParams: headerParams,
303
+ queryParams: queryParams
304
+ });
305
+ try {
306
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
307
+ const sdkResponse = oci_common_1.composeResponse({
308
+ responseObject: {},
309
+ body: yield response.json(),
310
+ bodyKey: "indicatorSummaryCollection",
311
+ bodyModel: model.IndicatorSummaryCollection,
312
+ type: "model.IndicatorSummaryCollection",
313
+ responseHeaders: [
314
+ {
315
+ value: response.headers.get("opc-request-id"),
316
+ key: "opcRequestId",
317
+ dataType: "string"
318
+ },
319
+ {
320
+ value: response.headers.get("opc-next-page"),
321
+ key: "opcNextPage",
322
+ dataType: "string"
323
+ }
324
+ ]
325
+ });
326
+ return sdkResponse;
327
+ }
328
+ catch (err) {
329
+ throw err;
330
+ }
331
+ });
332
+ }
333
+ /**
334
+ * Gets a list of threat types that are available to use as parameters when querying indicators.
335
+ * This is sorted by threat type name according to the sort order query param.
336
+ *
337
+ * This operation does not retry by default if the user has not defined a retry configuration.
338
+ * @param ListThreatTypesRequest
339
+ * @return ListThreatTypesResponse
340
+ * @throws OciError when an error occurs
341
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.14.0/threatintelligence/ListThreatTypes.ts.html |here} to see how to use ListThreatTypes API.
342
+ */
343
+ listThreatTypes(listThreatTypesRequest) {
344
+ return __awaiter(this, void 0, void 0, function* () {
345
+ if (this.logger)
346
+ this.logger.debug("Calling operation ThreatintelClient#listThreatTypes.");
347
+ const pathParams = {};
348
+ const queryParams = {
349
+ "compartmentId": listThreatTypesRequest.compartmentId,
350
+ "limit": listThreatTypesRequest.limit,
351
+ "page": listThreatTypesRequest.page,
352
+ "sortOrder": listThreatTypesRequest.sortOrder
353
+ };
354
+ let headerParams = {
355
+ "Content-Type": common.Constants.APPLICATION_JSON,
356
+ "opc-request-id": listThreatTypesRequest.opcRequestId
357
+ };
358
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
359
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listThreatTypesRequest.retryConfiguration, specRetryConfiguration);
360
+ if (this.logger)
361
+ retrier.logger = this.logger;
362
+ const request = yield oci_common_1.composeRequest({
363
+ baseEndpoint: this._endpoint,
364
+ defaultHeaders: this._defaultHeaders,
365
+ path: "/threatTypes",
366
+ method: "GET",
367
+ pathParams: pathParams,
368
+ headerParams: headerParams,
369
+ queryParams: queryParams
370
+ });
371
+ try {
372
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
373
+ const sdkResponse = oci_common_1.composeResponse({
374
+ responseObject: {},
375
+ body: yield response.json(),
376
+ bodyKey: "threatTypesCollection",
377
+ bodyModel: model.ThreatTypesCollection,
378
+ type: "model.ThreatTypesCollection",
379
+ responseHeaders: [
380
+ {
381
+ value: response.headers.get("opc-request-id"),
382
+ key: "opcRequestId",
383
+ dataType: "string"
384
+ },
385
+ {
386
+ value: response.headers.get("opc-next-page"),
387
+ key: "opcNextPage",
388
+ dataType: "string"
389
+ }
390
+ ]
391
+ });
392
+ return sdkResponse;
393
+ }
394
+ catch (err) {
395
+ throw err;
396
+ }
397
+ });
398
+ }
399
+ }
400
+ exports.ThreatintelClient = ThreatintelClient;
401
+ ThreatintelClient.serviceEndpointTemplate = "https://api-threatintel.{region}.oci.{secondLevelDomain}";
402
+ ThreatintelClient.endpointServiceName = "";
403
+ //# sourceMappingURL=client.js.map
@@ -0,0 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AAE,QAAQ;yBACnB;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,WAAW,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,GAAG,CAAC;aACX;QACH,CAAC;KAAA;;AAxYH,8CAyYC;AAxYkB,yCAAuB,GACtC,0DAA0D,CAAC;AAC5C,qCAAmB,GAAG,EAAE,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Threat Intelligence API
3
+ * Use the Threat Intelligence API to view indicators of compromise and related items. For more information, see [Overview of Threat Intelligence](/Content/ThreatIntelligence/Concepts/threatintelligenceoverview.htm).
4
+ * OpenAPI spec version: 20210831
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
+ import * as model from "../model";
14
+ /**
15
+ * The confidence, source information, and visibility for a particular sighting or observation of some data associated with an indicator such as threat type, attribute or relationship.
16
+ */
17
+ export interface DataAttribution {
18
+ /**
19
+ * Confidence is 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
+ */
21
+ "confidence": number;
22
+ "source": model.IndicatorSourceSummary;
23
+ "visibility": model.DataVisibility;
24
+ /**
25
+ * The time the data was first seen for this entity. Defaults to time last seen if no time first seen is provided from the data source. An RFC3339 formatted datetime string
26
+ */
27
+ "timeFirstSeen"?: Date;
28
+ /**
29
+ * The last time this data was seen for this entity. An RFC3339 formatted datetime string
30
+ */
31
+ "timeLastSeen": Date;
32
+ }
33
+ export declare namespace DataAttribution {
34
+ function getJsonObj(obj: DataAttribution): object;
35
+ function getDeserializedJsonObj(obj: DataAttribution): object;
36
+ }