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
@@ -0,0 +1,37 @@
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.ListIndicatorsRequest = void 0;
35
+ const ListIndicatorsRequest = __importStar(require("./list-indicators-request"));
36
+ exports.ListIndicatorsRequest = ListIndicatorsRequest.ListIndicatorsRequest;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/request/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAMH,iFAAmE;AACrD,QAAA,qBAAqB,GAAG,qBAAqB,CAAC,qBAAqB,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ *
3
+ *
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
+ import common = require("oci-common");
15
+ /**
16
+ * @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 ListIndicatorCountsRequest.
17
+ */
18
+ export interface ListIndicatorCountsRequest extends common.BaseRequest {
19
+ /**
20
+ * The ID of the tenancy to use to filter results.
21
+ */
22
+ "compartmentId": string;
23
+ /**
24
+ * The client request ID for tracing.
25
+ */
26
+ "opcRequestId"?: string;
27
+ /**
28
+ * The sort order to use, either 'ASC' or 'DESC'.
29
+ */
30
+ "sortOrder"?: model.SortOrder;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-indicator-counts-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-indicator-counts-request.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/request/list-indicator-counts-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ *
3
+ *
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
+ import common = require("oci-common");
15
+ /**
16
+ * @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 ListIndicatorsRequest.
17
+ */
18
+ export interface ListIndicatorsRequest extends common.BaseRequest {
19
+ /**
20
+ * The ID of the tenancy to use to filter results.
21
+ */
22
+ "compartmentId": string;
23
+ /**
24
+ * The result set will include indicators that have any of the provided threat types. To filter for multiple threat types repeat the query parameter.
25
+ */
26
+ "threatTypeName"?: Array<string>;
27
+ /**
28
+ * The indicator type of entities to be returned.
29
+ */
30
+ "type"?: model.IndicatorType;
31
+ /**
32
+ * The indicator value of entities to be returned.
33
+ */
34
+ "value"?: string;
35
+ /**
36
+ * The minimum confidence score of entities to be returned.
37
+ */
38
+ "confidenceGreaterThanOrEqualTo"?: number;
39
+ /**
40
+ * The oldest update time of entities to be returned.
41
+ */
42
+ "timeUpdatedGreaterThanOrEqualTo"?: Date;
43
+ /**
44
+ * The maximum number of items to return.
45
+ */
46
+ "limit"?: number;
47
+ /**
48
+ * A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
49
+ */
50
+ "page"?: string;
51
+ /**
52
+ * The sort order to use, either 'ASC' or 'DESC'.
53
+ */
54
+ "sortOrder"?: model.SortOrder;
55
+ /**
56
+ * The field to sort by. Only one field to sort by may be provided.
57
+ *
58
+ */
59
+ "sortBy"?: ListIndicatorsRequest.SortBy;
60
+ /**
61
+ * The client request ID for tracing.
62
+ */
63
+ "opcRequestId"?: string;
64
+ }
65
+ export declare namespace ListIndicatorsRequest {
66
+ enum SortBy {
67
+ Confidence = "confidence",
68
+ TimeUpdated = "timeUpdated"
69
+ }
70
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ListIndicatorsRequest = void 0;
16
+ var ListIndicatorsRequest;
17
+ (function (ListIndicatorsRequest) {
18
+ let SortBy;
19
+ (function (SortBy) {
20
+ SortBy["Confidence"] = "confidence";
21
+ SortBy["TimeUpdated"] = "timeUpdated";
22
+ })(SortBy = ListIndicatorsRequest.SortBy || (ListIndicatorsRequest.SortBy = {}));
23
+ })(ListIndicatorsRequest = exports.ListIndicatorsRequest || (exports.ListIndicatorsRequest = {}));
24
+ //# sourceMappingURL=list-indicators-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-indicators-request.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/request/list-indicators-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAwDH,IAAiB,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACpC,IAAY,MAGX;IAHD,WAAY,MAAM;QAChB,mCAAyB,CAAA;QACzB,qCAA2B,CAAA;IAC7B,CAAC,EAHW,MAAM,GAAN,4BAAM,KAAN,4BAAM,QAGjB;AACH,CAAC,EALgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKrC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ *
3
+ *
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
+ import common = require("oci-common");
15
+ /**
16
+ * @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 ListThreatTypesRequest.
17
+ */
18
+ export interface ListThreatTypesRequest extends common.BaseRequest {
19
+ /**
20
+ * The ID of the tenancy to use to filter results.
21
+ */
22
+ "compartmentId": string;
23
+ /**
24
+ * The maximum number of items to return.
25
+ */
26
+ "limit"?: number;
27
+ /**
28
+ * A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
29
+ */
30
+ "page"?: string;
31
+ /**
32
+ * The sort order to use, either 'ASC' or 'DESC'.
33
+ */
34
+ "sortOrder"?: model.SortOrder;
35
+ /**
36
+ * The client request ID for tracing.
37
+ */
38
+ "opcRequestId"?: string;
39
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-threat-types-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-threat-types-request.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/request/list-threat-types-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface GetIndicatorResponse {
15
+ /**
16
+ * Unique Oracle-assigned identifier for the request. If you need to contact
17
+ * Oracle about a particular request, please provide the request ID.
18
+ *
19
+ */
20
+ "opcRequestId": string;
21
+ /**
22
+ * The returned model.Indicator instance.
23
+ */
24
+ "indicator": model.Indicator;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=get-indicator-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-indicator-response.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/response/get-indicator-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,20 @@
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 GetIndicatorResponse from "./get-indicator-response";
14
+ export import GetIndicatorResponse = GetIndicatorResponse.GetIndicatorResponse;
15
+ import * as ListIndicatorCountsResponse from "./list-indicator-counts-response";
16
+ export import ListIndicatorCountsResponse = ListIndicatorCountsResponse.ListIndicatorCountsResponse;
17
+ import * as ListIndicatorsResponse from "./list-indicators-response";
18
+ export import ListIndicatorsResponse = ListIndicatorsResponse.ListIndicatorsResponse;
19
+ import * as ListThreatTypesResponse from "./list-threat-types-response";
20
+ export import ListThreatTypesResponse = ListThreatTypesResponse.ListThreatTypesResponse;
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/response/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface ListIndicatorCountsResponse {
15
+ /**
16
+ * Unique Oracle-assigned identifier for the request. If you need to contact
17
+ * Oracle about a particular request, please provide the request ID.
18
+ *
19
+ */
20
+ "opcRequestId": string;
21
+ /**
22
+ * The returned model.IndicatorCountCollection instance.
23
+ */
24
+ "indicatorCountCollection": model.IndicatorCountCollection;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-indicator-counts-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-indicator-counts-response.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/response/list-indicator-counts-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface ListIndicatorsResponse {
15
+ /**
16
+ * Unique Oracle-assigned identifier for the request. If you need to contact
17
+ * Oracle about a particular request, please provide the request ID.
18
+ *
19
+ */
20
+ "opcRequestId": string;
21
+ /**
22
+ * For pagination of a list of items. When paging through a list, if this header appears in the response,
23
+ * then a partial list might have been returned. Include this value as the `page` parameter for the
24
+ * subsequent GET request to get the next batch of items.
25
+ *
26
+ */
27
+ "opcNextPage": string;
28
+ /**
29
+ * The returned model.IndicatorSummaryCollection instance.
30
+ */
31
+ "indicatorSummaryCollection": model.IndicatorSummaryCollection;
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-indicators-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-indicators-response.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/response/list-indicators-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface ListThreatTypesResponse {
15
+ /**
16
+ * Unique Oracle-assigned identifier for the request. If you need to contact
17
+ * Oracle about a particular request, please provide the request ID.
18
+ *
19
+ */
20
+ "opcRequestId": string;
21
+ /**
22
+ * For pagination of a list of items. When paging through a list, if this header appears in the response,
23
+ * then a partial list might have been returned. Include this value as the `page` parameter for the
24
+ * subsequent GET request to get the next batch of items.
25
+ *
26
+ */
27
+ "opcNextPage": string;
28
+ /**
29
+ * The returned model.ThreatTypesCollection instance.
30
+ */
31
+ "threatTypesCollection": model.ThreatTypesCollection;
32
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=list-threat-types-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-threat-types-response.js","sourceRoot":"","sources":["../../../../../lib/threatintelligence/lib/response/list-threat-types-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,29 @@
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 serviceRequests from "./request";
14
+ import * as serviceResponses from "./response";
15
+ import * as models from "./model";
16
+ import { ThreatintelClient } from "./client";
17
+ export declare class ThreatintelWaiter {
18
+ private client;
19
+ private readonly config?;
20
+ constructor(client: ThreatintelClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
21
+ /**
22
+ * Waits forIndicator till it reaches any of the provided states
23
+ *
24
+ * @param request the request to send
25
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
26
+ * @return response returns GetIndicatorResponse | null (null in case of 404 response)
27
+ */
28
+ forIndicator(request: serviceRequests.GetIndicatorRequest, ...targetStates: models.LifecycleState[]): Promise<serviceResponses.GetIndicatorResponse | null>;
29
+ }
@@ -0,0 +1,65 @@
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.ThreatintelWaiter = void 0;
44
+ const models = __importStar(require("./model"));
45
+ const oci_common_1 = require("oci-common");
46
+ class ThreatintelWaiter {
47
+ constructor(client, config) {
48
+ this.client = client;
49
+ this.config = config;
50
+ }
51
+ /**
52
+ * Waits forIndicator till it reaches any of the provided states
53
+ *
54
+ * @param request the request to send
55
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
56
+ * @return response returns GetIndicatorResponse | null (null in case of 404 response)
57
+ */
58
+ forIndicator(request, ...targetStates) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getIndicator(request), response => targetStates.includes(response.indicator.lifecycleState), targetStates.includes(models.LifecycleState.Deleted));
61
+ });
62
+ }
63
+ }
64
+ exports.ThreatintelWaiter = ThreatintelWaiter;
65
+ //# sourceMappingURL=threatintel-waiter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threatintel-waiter.js","sourceRoot":"","sources":["../../../../lib/threatintelligence/lib/threatintel-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,iBAAiB;IAC5B,YACU,MAAyB,EAChB,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAmB;QAChB,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,YAAY,CACvB,OAA4C,EAC5C,GAAG,YAAqC;;YAExC,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,EACvC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAe,CAAC,EACrE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CACrD,CAAC;QACJ,CAAC;KAAA;CACF;AAxBD,8CAwBC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "oci-threatintelligence",
3
+ "version": "2.14.0",
4
+ "description": "OCI NodeJS client for Threat Intelligence Service",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/oracle/oci-typescript-sdk"
8
+ },
9
+ "main": "./index.js",
10
+ "typings": "./index",
11
+ "scripts": {},
12
+ "author": {
13
+ "name": "Oracle Cloud Infrastructure",
14
+ "email": ""
15
+ },
16
+ "license": "(UPL-1.0 OR Apache-2.0)",
17
+ "dependencies": {
18
+ "oci-common": "2.14.0",
19
+ "oci-workrequests": "2.14.0"
20
+ },
21
+ "publishConfig": {
22
+ "registry": "https://registry.npmjs.org"
23
+ },
24
+ "contributors": [
25
+ "Jyoti Saini <jyoti.s.saini@oracle.com>",
26
+ "Joe Levy <joe.levy@oracle.com>",
27
+ "Walt Tran <walt.tran@oracle.com>"
28
+ ]
29
+ }