@scaleway/sdk-audit-trail 2.4.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v1alpha1/api.gen.d.ts +40 -1
- package/dist/v1alpha1/api.gen.js +139 -147
- package/dist/v1alpha1/content.gen.d.ts +3 -0
- package/dist/v1alpha1/content.gen.js +3 -0
- package/dist/v1alpha1/index.gen.d.ts +2 -1
- package/dist/v1alpha1/index.gen.js +27 -15
- package/dist/v1alpha1/marshalling.gen.d.ts +9 -1
- package/dist/v1alpha1/marshalling.gen.js +468 -677
- package/dist/v1alpha1/types.gen.d.ts +219 -43
- package/dist/v1alpha1/validation-rules.gen.d.ts +6 -0
- package/dist/v1alpha1/validation-rules.gen.js +52 -59
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -83,6 +83,7 @@ const api = new AuditTrail.v1.API(client)
|
|
|
83
83
|
## Support
|
|
84
84
|
|
|
85
85
|
We love feedback! Feel free to reach us on:
|
|
86
|
+
|
|
86
87
|
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
|
|
87
88
|
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
|
|
88
89
|
|
|
@@ -93,4 +94,3 @@ This repository is at its early stage and is still in active development. If you
|
|
|
93
94
|
## License
|
|
94
95
|
|
|
95
96
|
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
|
|
96
|
-
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __exportAll = (all, no_symbols) => {
|
|
3
|
+
let target = {};
|
|
4
|
+
for (var name in all) __defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true
|
|
7
|
+
});
|
|
8
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
export { __exportAll };
|
package/dist/index.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
2
2
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type { CreateExportJobRequest, DeleteExportJobRequest, ExportJob, ListAuthenticationEventsRequest, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsResponse, ListEventsRequest, ListEventsResponse, ListExportJobsRequest, ListExportJobsResponse, ListProductsRequest, ListProductsResponse } from './types.gen.js';
|
|
3
|
+
import type { CreateExportJobRequest, DeleteExportJobRequest, DisableAlertRulesRequest, DisableAlertRulesResponse, EnableAlertRulesRequest, EnableAlertRulesResponse, ExportJob, ListAlertRulesRequest, ListAlertRulesResponse, ListAuthenticationEventsRequest, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsResponse, ListEventsRequest, ListEventsResponse, ListExportJobsRequest, ListExportJobsResponse, ListProductsRequest, ListProductsResponse, ListSystemEventsRequest, ListSystemEventsResponse, SetEnabledAlertRulesRequest, SetEnabledAlertRulesResponse } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Audit Trail API.
|
|
6
6
|
|
|
@@ -26,6 +26,13 @@ export declare class API extends ParentAPI {
|
|
|
26
26
|
* @returns A Promise of ListAuthenticationEventsResponse
|
|
27
27
|
*/
|
|
28
28
|
listAuthenticationEvents: (request?: Readonly<ListAuthenticationEventsRequest>) => Promise<ListAuthenticationEventsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* List system events. Retrieve the list of Audit Trail system events for a Scaleway Organization. You must specify the `organization_id`.
|
|
31
|
+
*
|
|
32
|
+
* @param request - The request {@link ListSystemEventsRequest}
|
|
33
|
+
* @returns A Promise of ListSystemEventsResponse
|
|
34
|
+
*/
|
|
35
|
+
listSystemEvents: (request?: Readonly<ListSystemEventsRequest>) => Promise<ListSystemEventsResponse>;
|
|
29
36
|
listCombinedEvents: (request?: Readonly<ListCombinedEventsRequest>) => Promise<ListCombinedEventsResponse>;
|
|
30
37
|
/**
|
|
31
38
|
* Retrieve the list of Scaleway resources for which you have Audit Trail events.
|
|
@@ -52,4 +59,36 @@ export declare class API extends ParentAPI {
|
|
|
52
59
|
all: () => Promise<ExportJob[]>;
|
|
53
60
|
[Symbol.asyncIterator]: () => AsyncGenerator<ExportJob[], void, void>;
|
|
54
61
|
};
|
|
62
|
+
protected pageOfListAlertRules: (request?: Readonly<ListAlertRulesRequest>) => Promise<ListAlertRulesResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* List alert rules for a specified organization and their current status (enabled or disabled).
|
|
65
|
+
*
|
|
66
|
+
* @param request - The request {@link ListAlertRulesRequest}
|
|
67
|
+
* @returns A Promise of ListAlertRulesResponse
|
|
68
|
+
*/
|
|
69
|
+
listAlertRules: (request?: Readonly<ListAlertRulesRequest>) => Promise<ListAlertRulesResponse> & {
|
|
70
|
+
all: () => Promise<import("./types.gen.js").AlertRule[]>;
|
|
71
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").AlertRule[], void, void>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Enable alert rules. Enable alert rules for a specified organization. Enabled rules will trigger alerts when matching events occur.
|
|
75
|
+
*
|
|
76
|
+
* @param request - The request {@link EnableAlertRulesRequest}
|
|
77
|
+
* @returns A Promise of EnableAlertRulesResponse
|
|
78
|
+
*/
|
|
79
|
+
enableAlertRules: (request?: Readonly<EnableAlertRulesRequest>) => Promise<EnableAlertRulesResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* Disable alert rules. Disable alert rules for a specified organization. Disabled rules will no longer trigger alerts when matching events occur.
|
|
82
|
+
*
|
|
83
|
+
* @param request - The request {@link DisableAlertRulesRequest}
|
|
84
|
+
* @returns A Promise of DisableAlertRulesResponse
|
|
85
|
+
*/
|
|
86
|
+
disableAlertRules: (request?: Readonly<DisableAlertRulesRequest>) => Promise<DisableAlertRulesResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Set the alert rules to enabled. Set the alert rules to enabled by replacing the set of enabled alert rules for a specified organization. The provided list defines the complete set of rules that should be enabled. Any previously enabled rule not included in the request will be disabled.
|
|
89
|
+
*
|
|
90
|
+
* @param request - The request {@link SetEnabledAlertRulesRequest}
|
|
91
|
+
* @returns A Promise of SetEnabledAlertRulesResponse
|
|
92
|
+
*/
|
|
93
|
+
setEnabledAlertRules: (request?: Readonly<SetEnabledAlertRulesRequest>) => Promise<SetEnabledAlertRulesResponse>;
|
|
55
94
|
}
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,148 +1,140 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
["tags", request.tags]
|
|
140
|
-
)
|
|
141
|
-
},
|
|
142
|
-
unmarshalListExportJobsResponse
|
|
143
|
-
);
|
|
144
|
-
listExportJobs = (request = {}) => enrichForPagination("exportJobs", this.pageOfListExportJobs, request);
|
|
145
|
-
}
|
|
146
|
-
export {
|
|
147
|
-
API
|
|
1
|
+
import { marshalCreateExportJobRequest, marshalDisableAlertRulesRequest, marshalEnableAlertRulesRequest, marshalSetEnabledAlertRulesRequest, unmarshalDisableAlertRulesResponse, unmarshalEnableAlertRulesResponse, unmarshalExportJob, unmarshalListAlertRulesResponse, unmarshalListAuthenticationEventsResponse, unmarshalListCombinedEventsResponse, unmarshalListEventsResponse, unmarshalListExportJobsResponse, unmarshalListProductsResponse, unmarshalListSystemEventsResponse, unmarshalSetEnabledAlertRulesResponse } from "./marshalling.gen.js";
|
|
2
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
|
+
/**
|
|
5
|
+
* Audit Trail API.
|
|
6
|
+
|
|
7
|
+
This API allows you to ensure accountability and security by recording events and changes performed within your Scaleway Organization.
|
|
8
|
+
*/
|
|
9
|
+
var API$1 = class extends API {
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = toApiLocality({ regions: ["fr-par", "nl-ams"] });
|
|
15
|
+
/**
|
|
16
|
+
* List events. Retrieve the list of Audit Trail events for a Scaleway Organization and/or Project. You must specify the `organization_id` and optionally, the `project_id`.
|
|
17
|
+
*
|
|
18
|
+
* @param request - The request {@link ListEventsRequest}
|
|
19
|
+
* @returns A Promise of ListEventsResponse
|
|
20
|
+
*/
|
|
21
|
+
listEvents = (request = {}) => this.client.fetch({
|
|
22
|
+
method: "GET",
|
|
23
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/events`,
|
|
24
|
+
urlParams: urlParams(["method_name", request.methodName], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["principal_id", request.principalId], ["product_name", request.productName], ["project_id", request.projectId], ["recorded_after", request.recordedAfter], ["recorded_before", request.recordedBefore], ["resource_id", request.resourceId], ["resource_type", request.resourceType], ["service_name", request.serviceName], ["source_ip", request.sourceIp], ["status", request.status])
|
|
25
|
+
}, unmarshalListEventsResponse);
|
|
26
|
+
/**
|
|
27
|
+
* List authentication events. Retrieve the list of Audit Trail authentication events for a Scaleway Organization. You must specify the `organization_id`.
|
|
28
|
+
*
|
|
29
|
+
* @param request - The request {@link ListAuthenticationEventsRequest}
|
|
30
|
+
* @returns A Promise of ListAuthenticationEventsResponse
|
|
31
|
+
*/
|
|
32
|
+
listAuthenticationEvents = (request = {}) => this.client.fetch({
|
|
33
|
+
method: "GET",
|
|
34
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/authentication-events`,
|
|
35
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["recorded_after", request.recordedAfter], ["recorded_before", request.recordedBefore])
|
|
36
|
+
}, unmarshalListAuthenticationEventsResponse);
|
|
37
|
+
/**
|
|
38
|
+
* List system events. Retrieve the list of Audit Trail system events for a Scaleway Organization. You must specify the `organization_id`.
|
|
39
|
+
*
|
|
40
|
+
* @param request - The request {@link ListSystemEventsRequest}
|
|
41
|
+
* @returns A Promise of ListSystemEventsResponse
|
|
42
|
+
*/
|
|
43
|
+
listSystemEvents = (request = {}) => this.client.fetch({
|
|
44
|
+
method: "GET",
|
|
45
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/system-events`,
|
|
46
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["recorded_after", request.recordedAfter], ["recorded_before", request.recordedBefore])
|
|
47
|
+
}, unmarshalListSystemEventsResponse);
|
|
48
|
+
listCombinedEvents = (request = {}) => this.client.fetch({
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/combined-events`,
|
|
51
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["project_id", request.projectId], ["recorded_after", request.recordedAfter], ["recorded_before", request.recordedBefore], ["resource_type", request.resourceType])
|
|
52
|
+
}, unmarshalListCombinedEventsResponse);
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve the list of Scaleway resources for which you have Audit Trail events.
|
|
55
|
+
*
|
|
56
|
+
* @param request - The request {@link ListProductsRequest}
|
|
57
|
+
* @returns A Promise of ListProductsResponse
|
|
58
|
+
*/
|
|
59
|
+
listProducts = (request = {}) => this.client.fetch({
|
|
60
|
+
method: "GET",
|
|
61
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
|
|
62
|
+
urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId])
|
|
63
|
+
}, unmarshalListProductsResponse);
|
|
64
|
+
/**
|
|
65
|
+
* Create an export job. Create an export job for a specified organization. This allows you to export audit trail events to a destination, such as an S3 bucket. The request requires the organization ID, a name for the export, and a destination configuration.
|
|
66
|
+
*
|
|
67
|
+
* @param request - The request {@link CreateExportJobRequest}
|
|
68
|
+
* @returns A Promise of ExportJob
|
|
69
|
+
*/
|
|
70
|
+
createExportJob = (request) => this.client.fetch({
|
|
71
|
+
body: JSON.stringify(marshalCreateExportJobRequest(request, this.client.settings)),
|
|
72
|
+
headers: jsonContentHeaders,
|
|
73
|
+
method: "POST",
|
|
74
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`
|
|
75
|
+
}, unmarshalExportJob);
|
|
76
|
+
/**
|
|
77
|
+
* Delete an export job. Deletes an export job for a specified id.
|
|
78
|
+
*
|
|
79
|
+
* @param request - The request {@link DeleteExportJobRequest}
|
|
80
|
+
*/
|
|
81
|
+
deleteExportJob = (request) => this.client.fetch({
|
|
82
|
+
method: "DELETE",
|
|
83
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs/${validatePathParam("exportJobId", request.exportJobId)}`
|
|
84
|
+
});
|
|
85
|
+
pageOfListExportJobs = (request = {}) => this.client.fetch({
|
|
86
|
+
method: "GET",
|
|
87
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`,
|
|
88
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["tags", request.tags])
|
|
89
|
+
}, unmarshalListExportJobsResponse);
|
|
90
|
+
listExportJobs = (request = {}) => enrichForPagination("exportJobs", this.pageOfListExportJobs, request);
|
|
91
|
+
pageOfListAlertRules = (request = {}) => this.client.fetch({
|
|
92
|
+
method: "GET",
|
|
93
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`,
|
|
94
|
+
urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["status", request.status])
|
|
95
|
+
}, unmarshalListAlertRulesResponse);
|
|
96
|
+
/**
|
|
97
|
+
* List alert rules for a specified organization and their current status (enabled or disabled).
|
|
98
|
+
*
|
|
99
|
+
* @param request - The request {@link ListAlertRulesRequest}
|
|
100
|
+
* @returns A Promise of ListAlertRulesResponse
|
|
101
|
+
*/
|
|
102
|
+
listAlertRules = (request = {}) => enrichForPagination("alertRules", this.pageOfListAlertRules, request);
|
|
103
|
+
/**
|
|
104
|
+
* Enable alert rules. Enable alert rules for a specified organization. Enabled rules will trigger alerts when matching events occur.
|
|
105
|
+
*
|
|
106
|
+
* @param request - The request {@link EnableAlertRulesRequest}
|
|
107
|
+
* @returns A Promise of EnableAlertRulesResponse
|
|
108
|
+
*/
|
|
109
|
+
enableAlertRules = (request = {}) => this.client.fetch({
|
|
110
|
+
body: JSON.stringify(marshalEnableAlertRulesRequest(request, this.client.settings)),
|
|
111
|
+
headers: jsonContentHeaders,
|
|
112
|
+
method: "POST",
|
|
113
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/enable-alert-rules`
|
|
114
|
+
}, unmarshalEnableAlertRulesResponse);
|
|
115
|
+
/**
|
|
116
|
+
* Disable alert rules. Disable alert rules for a specified organization. Disabled rules will no longer trigger alerts when matching events occur.
|
|
117
|
+
*
|
|
118
|
+
* @param request - The request {@link DisableAlertRulesRequest}
|
|
119
|
+
* @returns A Promise of DisableAlertRulesResponse
|
|
120
|
+
*/
|
|
121
|
+
disableAlertRules = (request = {}) => this.client.fetch({
|
|
122
|
+
body: JSON.stringify(marshalDisableAlertRulesRequest(request, this.client.settings)),
|
|
123
|
+
headers: jsonContentHeaders,
|
|
124
|
+
method: "POST",
|
|
125
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/disable-alert-rules`
|
|
126
|
+
}, unmarshalDisableAlertRulesResponse);
|
|
127
|
+
/**
|
|
128
|
+
* Set the alert rules to enabled. Set the alert rules to enabled by replacing the set of enabled alert rules for a specified organization. The provided list defines the complete set of rules that should be enabled. Any previously enabled rule not included in the request will be disabled.
|
|
129
|
+
*
|
|
130
|
+
* @param request - The request {@link SetEnabledAlertRulesRequest}
|
|
131
|
+
* @returns A Promise of SetEnabledAlertRulesResponse
|
|
132
|
+
*/
|
|
133
|
+
setEnabledAlertRules = (request = {}) => this.client.fetch({
|
|
134
|
+
body: JSON.stringify(marshalSetEnabledAlertRulesRequest(request, this.client.settings)),
|
|
135
|
+
headers: jsonContentHeaders,
|
|
136
|
+
method: "PATCH",
|
|
137
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`
|
|
138
|
+
}, unmarshalSetEnabledAlertRulesResponse);
|
|
148
139
|
};
|
|
140
|
+
export { API$1 as API };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
2
3
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { AccountContractSignatureInfo, AccountContractSignatureInfoAccountContractInfo, AccountOrganizationInfo, AccountProjectInfo, AccountUserInfo, AppleSiliconServerInfo, AuditTrailExportJobInfo, AuthenticationEvent, AuthenticationEventFailureReason, AuthenticationEventMethod, AuthenticationEventMFAType, AuthenticationEventOrigin, AuthenticationEventResult, BaremetalServerInfo, BaremetalSettingInfo, CreateExportJobRequest, DeleteExportJobRequest, EdgeServicesBackendStageInfo, EdgeServicesCacheStageInfo, EdgeServicesDNSStageInfo, EdgeServicesPipelineInfo, EdgeServicesPlanInfo, EdgeServicesRouteRulesInfo, EdgeServicesRouteStageInfo, EdgeServicesTLSStageInfo, EdgeServicesWAFStageInfo, Event, EventPrincipal, ExportJob, ExportJobS3, ExportJobStatus, ExportJobStatusCode, InstanceServerInfo, IpamIpInfo, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListAuthenticationEventsRequest, ListAuthenticationEventsRequestOrderBy, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsRequestOrderBy, ListCombinedEventsResponse, ListCombinedEventsResponseCombinedEvent, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListExportJobsRequest, ListExportJobsRequestOrderBy, ListExportJobsResponse, ListProductsRequest, ListProductsResponse, LoadBalancerAclInfo, LoadBalancerBackendInfo, LoadBalancerCertificateInfo, LoadBalancerFrontendInfo, LoadBalancerIpInfo, LoadBalancerLbInfo, LoadBalancerRouteInfo, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, SystemEvent, SystemEventKind, VpcGwGatewayInfo, VpcGwGatewayNetworkInfo, VpcPrivateNetworkInfo, VpcRouteInfo, VpcSubnetInfo, } from './types.gen.js';
|
|
4
|
+
export type { AccountContractSignatureInfo, AccountContractSignatureInfoAccountContractInfo, AccountOrganizationInfo, AccountProjectInfo, AccountUserInfo, AlertRule, AlertRuleStatus, AppleSiliconRunnerInfo, AppleSiliconServerInfo, AuditTrailExportJobInfo, AuthenticationEvent, AuthenticationEventFailureReason, AuthenticationEventMethod, AuthenticationEventMFAType, AuthenticationEventOrigin, AuthenticationEventResult, BaremetalServerInfo, BaremetalSettingInfo, CreateExportJobRequest, DeleteExportJobRequest, DisableAlertRulesRequest, DisableAlertRulesResponse, EdgeServicesBackendStageInfo, EdgeServicesCacheStageInfo, EdgeServicesDNSStageInfo, EdgeServicesPipelineInfo, EdgeServicesPlanInfo, EdgeServicesRouteRulesInfo, EdgeServicesRouteStageInfo, EdgeServicesTLSStageInfo, EdgeServicesWAFStageInfo, EnableAlertRulesRequest, EnableAlertRulesResponse, Event, EventPrincipal, ExportJob, ExportJobS3, ExportJobStatus, ExportJobStatusCode, InstanceServerInfo, IpamIpInfo, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListAlertRulesRequest, ListAlertRulesResponse, ListAuthenticationEventsRequest, ListAuthenticationEventsRequestOrderBy, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsRequestOrderBy, ListCombinedEventsResponse, ListCombinedEventsResponseCombinedEvent, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListExportJobsRequest, ListExportJobsRequestOrderBy, ListExportJobsResponse, ListProductsRequest, ListProductsResponse, ListSystemEventsRequest, ListSystemEventsRequestOrderBy, ListSystemEventsResponse, LoadBalancerAclInfo, LoadBalancerBackendInfo, LoadBalancerCertificateInfo, LoadBalancerFrontendInfo, LoadBalancerIpInfo, LoadBalancerLbInfo, LoadBalancerRouteInfo, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, SetEnabledAlertRulesRequest, SetEnabledAlertRulesResponse, SystemEvent, SystemEventKind, VpcGwGatewayInfo, VpcGwGatewayNetworkInfo, VpcPrivateNetworkInfo, VpcRouteInfo, VpcSubnetInfo, } from './types.gen.js';
|
|
4
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { marshalCreateExportJobRequest, marshalDisableAlertRulesRequest, marshalEnableAlertRulesRequest, marshalSetEnabledAlertRulesRequest, unmarshalDisableAlertRulesResponse, unmarshalEnableAlertRulesResponse, unmarshalEvent, unmarshalExportJob, unmarshalListAlertRulesResponse, unmarshalListAuthenticationEventsResponse, unmarshalListCombinedEventsResponse, unmarshalListEventsResponse, unmarshalListExportJobsResponse, unmarshalListProductsResponse, unmarshalListSystemEventsResponse, unmarshalResource, unmarshalSetEnabledAlertRulesResponse } from "./marshalling.gen.js";
|
|
1
3
|
import { API } from "./api.gen.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import { ALERT_RULE_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
5
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
ALERT_RULE_TRANSIENT_STATUSES: () => ALERT_RULE_TRANSIENT_STATUSES,
|
|
8
|
+
API: () => API,
|
|
9
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
10
|
+
marshalCreateExportJobRequest: () => marshalCreateExportJobRequest,
|
|
11
|
+
marshalDisableAlertRulesRequest: () => marshalDisableAlertRulesRequest,
|
|
12
|
+
marshalEnableAlertRulesRequest: () => marshalEnableAlertRulesRequest,
|
|
13
|
+
marshalSetEnabledAlertRulesRequest: () => marshalSetEnabledAlertRulesRequest,
|
|
14
|
+
unmarshalDisableAlertRulesResponse: () => unmarshalDisableAlertRulesResponse,
|
|
15
|
+
unmarshalEnableAlertRulesResponse: () => unmarshalEnableAlertRulesResponse,
|
|
16
|
+
unmarshalEvent: () => unmarshalEvent,
|
|
17
|
+
unmarshalExportJob: () => unmarshalExportJob,
|
|
18
|
+
unmarshalListAlertRulesResponse: () => unmarshalListAlertRulesResponse,
|
|
19
|
+
unmarshalListAuthenticationEventsResponse: () => unmarshalListAuthenticationEventsResponse,
|
|
20
|
+
unmarshalListCombinedEventsResponse: () => unmarshalListCombinedEventsResponse,
|
|
21
|
+
unmarshalListEventsResponse: () => unmarshalListEventsResponse,
|
|
22
|
+
unmarshalListExportJobsResponse: () => unmarshalListExportJobsResponse,
|
|
23
|
+
unmarshalListProductsResponse: () => unmarshalListProductsResponse,
|
|
24
|
+
unmarshalListSystemEventsResponse: () => unmarshalListSystemEventsResponse,
|
|
25
|
+
unmarshalResource: () => unmarshalResource,
|
|
26
|
+
unmarshalSetEnabledAlertRulesResponse: () => unmarshalSetEnabledAlertRulesResponse
|
|
27
|
+
});
|
|
28
|
+
export { index_gen_exports };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { CreateExportJobRequest, Event, ExportJob, ListAuthenticationEventsResponse, ListCombinedEventsResponse, ListEventsResponse, ListExportJobsResponse, ListProductsResponse, Resource } from './types.gen.js';
|
|
2
|
+
import type { CreateExportJobRequest, DisableAlertRulesRequest, DisableAlertRulesResponse, EnableAlertRulesRequest, EnableAlertRulesResponse, Event, ExportJob, ListAlertRulesResponse, ListAuthenticationEventsResponse, ListCombinedEventsResponse, ListEventsResponse, ListExportJobsResponse, ListProductsResponse, ListSystemEventsResponse, Resource, SetEnabledAlertRulesRequest, SetEnabledAlertRulesResponse } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalExportJob: (data: unknown) => ExportJob;
|
|
4
|
+
export declare const unmarshalDisableAlertRulesResponse: (data: unknown) => DisableAlertRulesResponse;
|
|
5
|
+
export declare const unmarshalEnableAlertRulesResponse: (data: unknown) => EnableAlertRulesResponse;
|
|
6
|
+
export declare const unmarshalListAlertRulesResponse: (data: unknown) => ListAlertRulesResponse;
|
|
4
7
|
export declare const unmarshalResource: (data: unknown) => Resource;
|
|
5
8
|
export declare const unmarshalListAuthenticationEventsResponse: (data: unknown) => ListAuthenticationEventsResponse;
|
|
6
9
|
export declare const unmarshalEvent: (data: unknown) => Event;
|
|
@@ -8,4 +11,9 @@ export declare const unmarshalListCombinedEventsResponse: (data: unknown) => Lis
|
|
|
8
11
|
export declare const unmarshalListEventsResponse: (data: unknown) => ListEventsResponse;
|
|
9
12
|
export declare const unmarshalListExportJobsResponse: (data: unknown) => ListExportJobsResponse;
|
|
10
13
|
export declare const unmarshalListProductsResponse: (data: unknown) => ListProductsResponse;
|
|
14
|
+
export declare const unmarshalListSystemEventsResponse: (data: unknown) => ListSystemEventsResponse;
|
|
15
|
+
export declare const unmarshalSetEnabledAlertRulesResponse: (data: unknown) => SetEnabledAlertRulesResponse;
|
|
11
16
|
export declare const marshalCreateExportJobRequest: (request: CreateExportJobRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
+
export declare const marshalDisableAlertRulesRequest: (request: DisableAlertRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
+
export declare const marshalEnableAlertRulesRequest: (request: EnableAlertRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
+
export declare const marshalSetEnabledAlertRulesRequest: (request: SetEnabledAlertRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|