@dynatrace-sdk/client-classic-environment-v2 0.6.1 → 0.6.4
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/CHANGELOG.md +26 -0
- package/README.md +9 -7
- package/cjs/index.js +4558 -1077
- package/docs/DOCS.md +3626 -420
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +4558 -1077
- package/package.json +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-active-gate-tokens-api.d.ts +1 -4
- package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-api.d.ts +2 -7
- package/types/packages/client/classic-environment-v2/src/lib/apis/audit-logs-api.d.ts +2 -7
- package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +2 -1
- package/types/packages/client/classic-environment-v2/src/lib/apis/events-api.d.ts +7 -23
- package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +3 -6
- package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-units-api.d.ts +15 -4
- package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +5 -17
- package/types/packages/client/classic-environment-v2/src/lib/apis/network-zones-api.d.ts +5 -17
- package/types/packages/client/classic-environment-v2/src/lib/apis/releases-api.d.ts +1 -3
- package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts +6 -20
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +7 -22
- package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +2 -6
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-client-error.d.ts +2 -0
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/error-serializer.d.ts +3 -0
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/index.d.ts +4 -4
- package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/invalid-response-error.d.ts +8 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/api-token.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/bm-action.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/code-level-vulnerability-details-type.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/code-level-vulnerability-details.d.ts +21 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/comments-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/complex-constraint.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/constraint.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/custom-entity-tags.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/datasource-definition.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/effective-settings-value.d.ts +14 -14
- package/types/packages/client/classic-environment-v2/src/lib/models/effective-settings-values-list.d.ts +8 -8
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-from-relationships.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-icon.d.ts +7 -7
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-properties.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/entity-to-relationships.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/enum-type.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/event-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/event-property-detail.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/event-property-details.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/event-type-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/event.d.ts +7 -7
- package/types/packages/client/classic-environment-v2/src/lib/models/exported-log-record-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-feature-sets-details.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-monitoring-configuration-value.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-monitoring-configuration.d.ts +3 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/extension-upload-response-dto-feature-sets-details.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +7 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/item.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/log-record-status.d.ts +1 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-data.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor-collection.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-descriptor.d.ts +27 -27
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-dimension-cardinality.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-evidence.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/metric-series.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/network-zone.d.ts +1 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/objects-list.d.ts +8 -8
- package/types/packages/client/classic-environment-v2/src/lib/models/precondition.d.ts +11 -11
- package/types/packages/client/classic-environment-v2/src/lib/models/problem-close-result.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/problem.d.ts +13 -13
- package/types/packages/client/classic-environment-v2/src/lib/models/property-definition.d.ts +7 -7
- package/types/packages/client/classic-environment-v2/src/lib/models/release.d.ts +15 -15
- package/types/packages/client/classic-environment-v2/src/lib/models/releases.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-enums.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-properties.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-definition-rest-dto-types.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-list.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-stub.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-type-properties.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/schema-type.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/security-problem-events-list.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-create.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-response.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/settings-object.d.ts +25 -25
- package/types/packages/client/classic-environment-v2/src/lib/models/sl-os.d.ts +6 -6
- package/types/packages/client/classic-environment-v2/src/lib/models/slo-burn-rate.d.ts +10 -10
- package/types/packages/client/classic-environment-v2/src/lib/models/slo-config-item-dto-impl.d.ts +24 -24
- package/types/packages/client/classic-environment-v2/src/lib/models/slo.d.ts +37 -37
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-batch-status.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-on-demand-execution-request.d.ts +6 -1
- package/types/packages/client/classic-environment-v2/src/lib/models/transactional-evidence.d.ts +5 -5
- package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization-insert.d.ts +12 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization.d.ts +6 -8
- package/types/packages/client/classic-environment-v2/src/lib/models/ui-customization.d.ts +2 -2
- package/types/packages/client/classic-environment-v2/src/lib/models/update-job.d.ts +16 -16
- package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-component.d.ts +5 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input-segment-type.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input-segment.d.ts +20 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input-type.d.ts +14 -0
- package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input.d.ts +21 -0
- package/types/packages/platform/error-handlers/src/index.d.ts +2 -0
- package/types/packages/platform/error-handlers/src/lib/add-global-error-serializer.d.ts +14 -0
- package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +10 -0
- package/types/packages/platform/error-handlers/src/lib/types/dt-runtime-error-handlers.d.ts +5 -0
- package/types/packages/platform/error-handlers/src/lib/types/error-type.d.ts +9 -0
- package/types/packages/platform/error-handlers/src/lib/types/global-dt-runtime-with-error-handlers.d.ts +7 -0
- package/types/packages/platform/error-handlers/src/lib/types/global-error-serializer.d.ts +10 -0
- package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +11 -0
- package/types/packages/platform/error-handlers/src/lib/types/index.d.ts +5 -0
- package/types/packages/platform/error-handlers/src/lib/types/serialized-error.d.ts +8 -0
- package/types/packages/platform/shared/index.d.ts +1 -0
- package/types/packages/platform/shared/utils/get-global-with-dt-runtime.d.ts +1 -0
|
@@ -5,26 +5,10 @@ import { SLOStatus, _SLOStatusTransformation } from './slo-status';
|
|
|
5
5
|
* Parameters of a service-level objective (SLO).
|
|
6
6
|
*/
|
|
7
7
|
export interface SLO {
|
|
8
|
-
/**
|
|
9
|
-
* The entity filter for fetching the number of problems related to an SLO. Auto-generated in case no filter has been added to the SLO.
|
|
10
|
-
*/
|
|
11
|
-
problemFilters?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* The error budget burn rate key for a metric expression.
|
|
14
|
-
*/
|
|
15
|
-
burnRateMetricKey?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The error budget key for a metric expression.
|
|
18
|
-
*/
|
|
19
|
-
errorBudgetMetricKey?: string;
|
|
20
8
|
/**
|
|
21
9
|
* The normalized error budget key for a metric expression.
|
|
22
10
|
*/
|
|
23
11
|
normalizedErrorBudgetMetricKey?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The numerator value used to evaluate the SLO when **useRateMetric** is set to `false`.
|
|
26
|
-
*/
|
|
27
|
-
numeratorValue?: number;
|
|
28
12
|
/**
|
|
29
13
|
* The denominator value used to evaluate the SLO when **useRateMetric** is set to `false`.
|
|
30
14
|
*/
|
|
@@ -35,12 +19,6 @@ export interface SLO {
|
|
|
35
19
|
* Has the value of `-1` if there's an error with fetching SLO related problems.
|
|
36
20
|
*/
|
|
37
21
|
relatedOpenProblems?: number;
|
|
38
|
-
/**
|
|
39
|
-
* Total number of problems related to the SLO.
|
|
40
|
-
*
|
|
41
|
-
* Has the value of `-1` if there's an error with fetching SLO related problems.
|
|
42
|
-
*/
|
|
43
|
-
relatedTotalProblems?: number;
|
|
44
22
|
/**
|
|
45
23
|
* The calculated value of the SLO. Has the value of the evaluated SLO or the value of `-1`:
|
|
46
24
|
*
|
|
@@ -49,11 +27,9 @@ export interface SLO {
|
|
|
49
27
|
*/
|
|
50
28
|
evaluatedPercentage?: number;
|
|
51
29
|
/**
|
|
52
|
-
* The
|
|
53
|
-
*
|
|
54
|
-
* The error budget is the difference between the calculated and target values. A positive number means all is good; a negative number means trouble.
|
|
30
|
+
* The entity filter for fetching the number of problems related to an SLO. Auto-generated in case no filter has been added to the SLO.
|
|
55
31
|
*/
|
|
56
|
-
|
|
32
|
+
problemFilters?: string[];
|
|
57
33
|
/**
|
|
58
34
|
* The percentage-based metric expression for the calculation of the SLO.
|
|
59
35
|
*/
|
|
@@ -87,6 +63,30 @@ export interface SLO {
|
|
|
87
63
|
metricDenominator?: string;
|
|
88
64
|
evaluationType?: SLOEvaluationType;
|
|
89
65
|
errorBudgetBurnRate?: SloBurnRate;
|
|
66
|
+
/**
|
|
67
|
+
* The error budget burn rate key for a metric expression.
|
|
68
|
+
*/
|
|
69
|
+
burnRateMetricKey?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The error budget key for a metric expression.
|
|
72
|
+
*/
|
|
73
|
+
errorBudgetMetricKey?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The numerator value used to evaluate the SLO when **useRateMetric** is set to `false`.
|
|
76
|
+
*/
|
|
77
|
+
numeratorValue?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The error budget of the calculated SLO.
|
|
80
|
+
*
|
|
81
|
+
* The error budget is the difference between the calculated and target values. A positive number means all is good; a negative number means trouble.
|
|
82
|
+
*/
|
|
83
|
+
errorBudget?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Total number of problems related to the SLO.
|
|
86
|
+
*
|
|
87
|
+
* Has the value of `-1` if there's an error with fetching SLO related problems.
|
|
88
|
+
*/
|
|
89
|
+
relatedTotalProblems?: number;
|
|
90
90
|
/**
|
|
91
91
|
* The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector.
|
|
92
92
|
*/
|
|
@@ -95,10 +95,6 @@ export interface SLO {
|
|
|
95
95
|
* The key for a metric expression. Once created, metric keys can't be changed
|
|
96
96
|
*/
|
|
97
97
|
metricKey?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector).
|
|
100
|
-
*/
|
|
101
|
-
filter?: string;
|
|
102
98
|
/**
|
|
103
99
|
* The name of the SLO.
|
|
104
100
|
*/
|
|
@@ -111,6 +107,10 @@ export interface SLO {
|
|
|
111
107
|
* The target value of the SLO.
|
|
112
108
|
*/
|
|
113
109
|
target?: number;
|
|
110
|
+
/**
|
|
111
|
+
* The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector).
|
|
112
|
+
*/
|
|
113
|
+
filter?: string;
|
|
114
114
|
/**
|
|
115
115
|
* A short description of the SLO.
|
|
116
116
|
*/
|
|
@@ -136,16 +136,11 @@ export interface SLO {
|
|
|
136
136
|
/** @ignore */
|
|
137
137
|
export declare namespace _SLOTransformation {
|
|
138
138
|
interface AsJson {
|
|
139
|
-
problemFilters?: string[];
|
|
140
|
-
burnRateMetricKey?: string;
|
|
141
|
-
errorBudgetMetricKey?: string;
|
|
142
139
|
normalizedErrorBudgetMetricKey?: string;
|
|
143
|
-
numeratorValue?: number;
|
|
144
140
|
denominatorValue?: number;
|
|
145
141
|
relatedOpenProblems?: number;
|
|
146
|
-
relatedTotalProblems?: number;
|
|
147
142
|
evaluatedPercentage?: number;
|
|
148
|
-
|
|
143
|
+
problemFilters?: string[];
|
|
149
144
|
metricExpression?: string;
|
|
150
145
|
useRateMetric?: boolean;
|
|
151
146
|
metricRate?: string;
|
|
@@ -153,12 +148,17 @@ export declare namespace _SLOTransformation {
|
|
|
153
148
|
metricDenominator?: string;
|
|
154
149
|
evaluationType?: _SLOEvaluationTypeTransformation.AsJson;
|
|
155
150
|
errorBudgetBurnRate?: _SloBurnRateTransformation.AsJson;
|
|
151
|
+
burnRateMetricKey?: string;
|
|
152
|
+
errorBudgetMetricKey?: string;
|
|
153
|
+
numeratorValue?: number;
|
|
154
|
+
errorBudget?: number;
|
|
155
|
+
relatedTotalProblems?: number;
|
|
156
156
|
timeframe?: string;
|
|
157
157
|
metricKey?: string;
|
|
158
|
-
filter?: string;
|
|
159
158
|
name?: string;
|
|
160
159
|
id?: string;
|
|
161
160
|
target?: number;
|
|
161
|
+
filter?: string;
|
|
162
162
|
description?: string;
|
|
163
163
|
enabled?: boolean;
|
|
164
164
|
status?: _SLOStatusTransformation.AsJson;
|
|
@@ -9,7 +9,7 @@ export interface SyntheticOnDemandBatchStatus {
|
|
|
9
9
|
/**
|
|
10
10
|
* The identifier of the batch.
|
|
11
11
|
*/
|
|
12
|
-
batchId:
|
|
12
|
+
batchId: string;
|
|
13
13
|
/**
|
|
14
14
|
* The name of the user who triggered execution of the batch.
|
|
15
15
|
*/
|
|
@@ -43,7 +43,7 @@ export interface SyntheticOnDemandBatchStatus {
|
|
|
43
43
|
/** @ignore */
|
|
44
44
|
export declare namespace _SyntheticOnDemandBatchStatusTransformation {
|
|
45
45
|
interface AsJson {
|
|
46
|
-
batchId:
|
|
46
|
+
batchId: string;
|
|
47
47
|
userId: string;
|
|
48
48
|
batchStatus: _SyntheticOnDemandBatchStatusBatchStatusTransformation.AsJson;
|
|
49
49
|
triggeredCount: number;
|
|
@@ -8,9 +8,13 @@ import { SyntheticOnDemandExecutionRequestProcessingMode, _SyntheticOnDemandExec
|
|
|
8
8
|
export interface SyntheticOnDemandExecutionRequest {
|
|
9
9
|
processingMode?: SyntheticOnDemandExecutionRequestProcessingMode;
|
|
10
10
|
/**
|
|
11
|
-
* If true, the
|
|
11
|
+
* If true, the execution will fail in case of performance issue.
|
|
12
12
|
*/
|
|
13
13
|
failOnPerformanceIssue?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Applies to HTTP monitors only. If true, the execution will fail in case of an SSL certificate expiration warning or if the certificate is missing.
|
|
16
|
+
*/
|
|
17
|
+
failOnSslWarning?: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* If true, no executions will be scheduled if a problem occurs.
|
|
16
20
|
*/
|
|
@@ -31,6 +35,7 @@ export declare namespace _SyntheticOnDemandExecutionRequestTransformation {
|
|
|
31
35
|
interface AsJson {
|
|
32
36
|
processingMode?: _SyntheticOnDemandExecutionRequestProcessingModeTransformation.AsJson;
|
|
33
37
|
failOnPerformanceIssue?: boolean;
|
|
38
|
+
failOnSslWarning?: boolean;
|
|
34
39
|
stopOnProblem?: boolean;
|
|
35
40
|
takeScreenshotsOnSuccess?: boolean;
|
|
36
41
|
monitors?: _SyntheticOnDemandExecutionRequestMonitorTransformation.AsJson[];
|
package/types/packages/client/classic-environment-v2/src/lib/models/transactional-evidence.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { Evidence, _EvidenceTransformation } from './evidence';
|
|
|
5
5
|
* A behavior of a metric in an transaction that indicates the problem and/or is its root cause.
|
|
6
6
|
*/
|
|
7
7
|
export interface TransactionalEvidence extends Evidence {
|
|
8
|
-
/**
|
|
9
|
-
* The metric's value after the problem start.
|
|
10
|
-
*/
|
|
11
|
-
valueAfterChangePoint?: number;
|
|
12
8
|
/**
|
|
13
9
|
* The metric's value before the problem start.
|
|
14
10
|
*/
|
|
15
11
|
valueBeforeChangePoint?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The metric's value after the problem start.
|
|
14
|
+
*/
|
|
15
|
+
valueAfterChangePoint?: number;
|
|
16
16
|
/**
|
|
17
17
|
* The end time of the evidence, in UTC milliseconds
|
|
18
18
|
*/
|
|
@@ -25,8 +25,8 @@ export interface TransactionalEvidence extends Evidence {
|
|
|
25
25
|
/** @ignore */
|
|
26
26
|
export declare namespace _TransactionalEvidenceTransformation {
|
|
27
27
|
interface AsJson extends _EvidenceTransformation.AsJson {
|
|
28
|
-
valueAfterChangePoint?: number;
|
|
29
28
|
valueBeforeChangePoint?: number;
|
|
29
|
+
valueAfterChangePoint?: number;
|
|
30
30
|
endTime?: number;
|
|
31
31
|
unit?: string;
|
|
32
32
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The position where the button should be shown in the UI
|
|
3
|
+
* This is just an alias for a type any.
|
|
4
|
+
* @typedef {any} UiButtonCustomizationInsert
|
|
5
|
+
*/
|
|
6
|
+
export declare type UiButtonCustomizationInsert = any;
|
|
7
|
+
/** @ignore */
|
|
8
|
+
export declare namespace _UiButtonCustomizationInsertTransformation {
|
|
9
|
+
type AsJson = any;
|
|
10
|
+
function fromJson(model: AsJson): UiButtonCustomizationInsert;
|
|
11
|
+
function toJson(model: UiButtonCustomizationInsert): AsJson;
|
|
12
|
+
}
|
package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
+
import { UiButtonCustomizationInsert, _UiButtonCustomizationInsertTransformation } from './ui-button-customization-insert';
|
|
1
2
|
/**
|
|
2
3
|
* UI customization for defining a button that calls a function when pressed
|
|
3
4
|
*/
|
|
4
5
|
export interface UiButtonCustomization {
|
|
6
|
+
insert: UiButtonCustomizationInsert;
|
|
5
7
|
/**
|
|
6
|
-
* The
|
|
8
|
+
* The identifier of the function to be called when the button is pressed
|
|
7
9
|
*/
|
|
8
|
-
|
|
10
|
+
identifier: string;
|
|
9
11
|
/**
|
|
10
12
|
* The label of the button
|
|
11
13
|
*/
|
|
12
14
|
displayName: string;
|
|
13
|
-
/**
|
|
14
|
-
* The identifier of the function to be called when the button is pressed
|
|
15
|
-
*/
|
|
16
|
-
identifier: string;
|
|
17
15
|
/**
|
|
18
16
|
* The description to be shown in a tooltip when hovering over the button
|
|
19
17
|
*/
|
|
@@ -22,9 +20,9 @@ export interface UiButtonCustomization {
|
|
|
22
20
|
/** @ignore */
|
|
23
21
|
export declare namespace _UiButtonCustomizationTransformation {
|
|
24
22
|
interface AsJson {
|
|
25
|
-
|
|
26
|
-
displayName: string;
|
|
23
|
+
insert: _UiButtonCustomizationInsertTransformation.AsJson;
|
|
27
24
|
identifier: string;
|
|
25
|
+
displayName: string;
|
|
28
26
|
description?: string;
|
|
29
27
|
}
|
|
30
28
|
function fromJson(model: AsJson): UiButtonCustomization;
|
|
@@ -7,17 +7,17 @@ import { UiTabsCustomization, _UiTabsCustomizationTransformation } from './ui-ta
|
|
|
7
7
|
* Customization for UI elements
|
|
8
8
|
*/
|
|
9
9
|
export interface UiCustomization {
|
|
10
|
+
callback?: UiCallbackCustomization;
|
|
10
11
|
tabs?: UiTabsCustomization;
|
|
11
12
|
expandable?: UiExpandableCustomization;
|
|
12
|
-
callback?: UiCallbackCustomization;
|
|
13
13
|
table?: UiTableCustomization;
|
|
14
14
|
}
|
|
15
15
|
/** @ignore */
|
|
16
16
|
export declare namespace _UiCustomizationTransformation {
|
|
17
17
|
interface AsJson {
|
|
18
|
+
callback?: _UiCallbackCustomizationTransformation.AsJson;
|
|
18
19
|
tabs?: _UiTabsCustomizationTransformation.AsJson;
|
|
19
20
|
expandable?: _UiExpandableCustomizationTransformation.AsJson;
|
|
20
|
-
callback?: _UiCallbackCustomizationTransformation.AsJson;
|
|
21
21
|
table?: _UiTableCustomizationTransformation.AsJson;
|
|
22
22
|
}
|
|
23
23
|
function fromJson(model: AsJson): UiCustomization;
|
|
@@ -7,9 +7,9 @@ import { UpdateJobUpdateType, _UpdateJobUpdateTypeTransformation } from './updat
|
|
|
7
7
|
*/
|
|
8
8
|
export interface UpdateJob {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The job can (`true`) or can't (`false`) be cancelled at the moment.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
cancelable?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* The ID of the update job.
|
|
15
15
|
*/
|
|
@@ -23,9 +23,9 @@ export interface UpdateJob {
|
|
|
23
23
|
*/
|
|
24
24
|
startVersion?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A list of environments (specified by IDs) the ActiveGate can connect to.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
environments?: string[];
|
|
29
29
|
/**
|
|
30
30
|
* The timestamp of the update job completion.
|
|
31
31
|
*
|
|
@@ -33,37 +33,37 @@ export interface UpdateJob {
|
|
|
33
33
|
*/
|
|
34
34
|
timestamp?: number;
|
|
35
35
|
/**
|
|
36
|
-
* The
|
|
37
|
-
*
|
|
38
|
-
* Specify the version in the `<major>.<minor>.<revision>.<timestamp>` format.
|
|
39
|
-
*
|
|
40
|
-
* To update to the latest available version, use the `latest` value.
|
|
36
|
+
* The duration of the update, in milliseconds.
|
|
41
37
|
*/
|
|
42
|
-
|
|
38
|
+
duration?: number;
|
|
43
39
|
/**
|
|
44
40
|
* The information about update error.
|
|
45
41
|
*/
|
|
46
42
|
error?: string;
|
|
47
43
|
/**
|
|
48
|
-
* The
|
|
44
|
+
* The target version of the update.
|
|
45
|
+
*
|
|
46
|
+
* Specify the version in the `<major>.<minor>.<revision>.<timestamp>` format.
|
|
47
|
+
*
|
|
48
|
+
* To update to the latest available version, use the `latest` value.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
targetVersion: string;
|
|
51
51
|
}
|
|
52
52
|
/** @ignore */
|
|
53
53
|
export declare namespace _UpdateJobTransformation {
|
|
54
54
|
interface AsJson {
|
|
55
|
-
|
|
55
|
+
cancelable?: boolean;
|
|
56
56
|
jobId?: string;
|
|
57
57
|
jobState?: _UpdateJobJobStateTransformation.AsJson;
|
|
58
58
|
updateMethod?: _UpdateJobUpdateMethodTransformation.AsJson;
|
|
59
59
|
updateType?: _UpdateJobUpdateTypeTransformation.AsJson;
|
|
60
60
|
agType?: _UpdateJobAgTypeTransformation.AsJson;
|
|
61
61
|
startVersion?: string;
|
|
62
|
-
|
|
62
|
+
environments?: string[];
|
|
63
63
|
timestamp?: number;
|
|
64
|
-
|
|
64
|
+
duration?: number;
|
|
65
65
|
error?: string;
|
|
66
|
-
|
|
66
|
+
targetVersion: string;
|
|
67
67
|
}
|
|
68
68
|
function fromJson(model: AsJson): UpdateJob;
|
|
69
69
|
function toJson(model: UpdateJob): AsJson;
|
package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-component.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export interface VulnerableComponent {
|
|
|
10
10
|
* The display name of the vulnerable component.
|
|
11
11
|
*/
|
|
12
12
|
displayName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The short, component-only name of the vulnerable component.
|
|
15
|
+
*/
|
|
16
|
+
shortName?: string;
|
|
13
17
|
/**
|
|
14
18
|
* The file name of the vulnerable component.
|
|
15
19
|
*/
|
|
@@ -28,6 +32,7 @@ export declare namespace _VulnerableComponentTransformation {
|
|
|
28
32
|
interface AsJson {
|
|
29
33
|
id?: string;
|
|
30
34
|
displayName?: string;
|
|
35
|
+
shortName?: string;
|
|
31
36
|
fileName?: string;
|
|
32
37
|
numberOfAffectedEntities?: number;
|
|
33
38
|
affectedEntities?: string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of the input segment.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum VulnerableFunctionInputSegmentType {
|
|
5
|
+
MaliciousInput = "MALICIOUS_INPUT",
|
|
6
|
+
RegularInput = "REGULAR_INPUT",
|
|
7
|
+
TaintedInput = "TAINTED_INPUT"
|
|
8
|
+
}
|
|
9
|
+
/** @ignore */
|
|
10
|
+
export declare namespace _VulnerableFunctionInputSegmentTypeTransformation {
|
|
11
|
+
type AsJson = VulnerableFunctionInputSegmentType;
|
|
12
|
+
const toJson: (value: VulnerableFunctionInputSegmentType) => AsJson;
|
|
13
|
+
const fromJson: (value: AsJson) => VulnerableFunctionInputSegmentType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VulnerableFunctionInputSegmentType, _VulnerableFunctionInputSegmentTypeTransformation } from './vulnerable-function-input-segment-type';
|
|
2
|
+
/**
|
|
3
|
+
* Describes one segment that was passed into a vulnerable function.
|
|
4
|
+
*/
|
|
5
|
+
export interface VulnerableFunctionInputSegment {
|
|
6
|
+
/**
|
|
7
|
+
* The value of the input segment.
|
|
8
|
+
*/
|
|
9
|
+
value?: string;
|
|
10
|
+
type?: VulnerableFunctionInputSegmentType;
|
|
11
|
+
}
|
|
12
|
+
/** @ignore */
|
|
13
|
+
export declare namespace _VulnerableFunctionInputSegmentTransformation {
|
|
14
|
+
interface AsJson {
|
|
15
|
+
value?: string;
|
|
16
|
+
type?: _VulnerableFunctionInputSegmentTypeTransformation.AsJson;
|
|
17
|
+
}
|
|
18
|
+
function fromJson(model: AsJson): VulnerableFunctionInputSegment;
|
|
19
|
+
function toJson(model: VulnerableFunctionInputSegment): AsJson;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of the input.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum VulnerableFunctionInputType {
|
|
5
|
+
Command = "COMMAND",
|
|
6
|
+
Jndi = "JNDI",
|
|
7
|
+
SqlStatement = "SQL_STATEMENT"
|
|
8
|
+
}
|
|
9
|
+
/** @ignore */
|
|
10
|
+
export declare namespace _VulnerableFunctionInputTypeTransformation {
|
|
11
|
+
type AsJson = VulnerableFunctionInputType;
|
|
12
|
+
const toJson: (value: VulnerableFunctionInputType) => AsJson;
|
|
13
|
+
const fromJson: (value: AsJson) => VulnerableFunctionInputType;
|
|
14
|
+
}
|
package/types/packages/client/classic-environment-v2/src/lib/models/vulnerable-function-input.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VulnerableFunctionInputSegment, _VulnerableFunctionInputSegmentTransformation } from './vulnerable-function-input-segment';
|
|
2
|
+
import { VulnerableFunctionInputType, _VulnerableFunctionInputTypeTransformation } from './vulnerable-function-input-type';
|
|
3
|
+
/**
|
|
4
|
+
* Describes what got passed into the code level vulnerability.
|
|
5
|
+
*/
|
|
6
|
+
export interface VulnerableFunctionInput {
|
|
7
|
+
type?: VulnerableFunctionInputType;
|
|
8
|
+
/**
|
|
9
|
+
* A list of input segments.
|
|
10
|
+
*/
|
|
11
|
+
inputSegments?: VulnerableFunctionInputSegment[];
|
|
12
|
+
}
|
|
13
|
+
/** @ignore */
|
|
14
|
+
export declare namespace _VulnerableFunctionInputTransformation {
|
|
15
|
+
interface AsJson {
|
|
16
|
+
type?: _VulnerableFunctionInputTypeTransformation.AsJson;
|
|
17
|
+
inputSegments?: _VulnerableFunctionInputSegmentTransformation.AsJson[];
|
|
18
|
+
}
|
|
19
|
+
function fromJson(model: AsJson): VulnerableFunctionInput;
|
|
20
|
+
function toJson(model: VulnerableFunctionInput): AsJson;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GlobalErrorSerializer } from './types/global-error-serializer';
|
|
2
|
+
/**
|
|
3
|
+
* Registers a global error serializer for handling uncatched errors.
|
|
4
|
+
*
|
|
5
|
+
* @param {GlobalErrorSerializer} serializer Asynchronous function which serializes error if it match the condition
|
|
6
|
+
*/
|
|
7
|
+
export declare function addGlobalErrorSerializer(serializer: GlobalErrorSerializer): void;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if global error serializer is supported.
|
|
10
|
+
*
|
|
11
|
+
* @return {boolean} information if global error serializer is supported on current environment.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isGlobalErrorSerializerSupported(): boolean;
|
|
14
|
+
export declare function getAddGlobalErrorSerializer(): ((serializer: GlobalErrorSerializer) => void) | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SerializedError } from './serialized-error';
|
|
2
|
+
/**
|
|
3
|
+
* Custom error serializing function.
|
|
4
|
+
* Should check the received error and, when the error matches, return a serialized error with the specified error type.
|
|
5
|
+
* Otherwise, nothing should be returned so that the error can be handled further.
|
|
6
|
+
*
|
|
7
|
+
* @param {any} error Error to be serialized
|
|
8
|
+
* @returns {TypedError | undefined} Serialized error or nothing
|
|
9
|
+
*/
|
|
10
|
+
export declare type GlobalErrorSerializer = (error: any) => Promise<SerializedError | undefined>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommonSerializedError } from './common-serialized-error';
|
|
2
|
+
import { HttpSerializedError } from './http-serialized-error';
|
|
3
|
+
/**
|
|
4
|
+
* Serialized error object contains error type
|
|
5
|
+
*
|
|
6
|
+
* @property {ErrorType} type error type
|
|
7
|
+
*/
|
|
8
|
+
export declare type SerializedError = HttpSerializedError | CommonSerializedError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils/get-global-with-dt-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getGlobalWithDtRuntime: <T extends typeof globalThis>() => T;
|