@scaleway/sdk-audit-trail 2.11.0 → 2.12.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.
@@ -0,0 +1,3 @@
1
+ # Licenses
2
+
3
+ The app does not bundle any dependencies with licenses.
@@ -2,11 +2,11 @@
2
2
  * This file is automatically generated
3
3
  * PLEASE DO NOT EDIT HERE
4
4
  */
5
- export type Metadata = {
6
- name: string;
7
- namespace: string;
8
- displayName: string;
9
- versions: string[];
5
+ export declare const pkgMetadata: {
6
+ readonly name: "@scaleway/sdk-audit-trail";
7
+ readonly namespace: "audit-trail";
8
+ readonly displayName: "Audit Trail";
9
+ readonly versions: readonly ["v1alpha1"];
10
10
  };
11
- export declare const pkgMetadata: Metadata;
11
+ export type Metadata = typeof pkgMetadata;
12
12
  export default pkgMetadata;
@@ -1,9 +1,13 @@
1
- import metadata_gen_default from "./metadata2.gen.js";
2
1
  //#region src/metadata.gen.ts
3
2
  /**
4
3
  * This file is automatically generated
5
4
  * PLEASE DO NOT EDIT HERE
6
5
  */
7
- var pkgMetadata = metadata_gen_default;
6
+ const pkgMetadata = {
7
+ name: "@scaleway/sdk-audit-trail",
8
+ namespace: "audit-trail",
9
+ displayName: "Audit Trail",
10
+ versions: ["v1alpha1"]
11
+ };
8
12
  //#endregion
9
13
  export { pkgMetadata as default, pkgMetadata };
@@ -1,142 +1,84 @@
1
1
  import { marshalCreateExportJobRequest, marshalDisableAlertRulesRequest, marshalEnableAlertRulesRequest, marshalSetEnabledAlertRulesRequest, unmarshalDisableAlertRulesResponse, unmarshalEnableAlertRulesResponse, unmarshalExportJob, unmarshalListAlertRulesResponse, unmarshalListAuthenticationEventsResponse, unmarshalListCombinedEventsResponse, unmarshalListEventsResponse, unmarshalListExportJobsResponse, unmarshalListProductsResponse, unmarshalListSystemEventsResponse, unmarshalSetEnabledAlertRulesResponse } from "./marshalling.gen.js";
2
2
  import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
3
3
  //#region src/v1alpha1/api.gen.ts
4
- var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
4
+ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
5
  /**
6
6
  * Audit Trail API.
7
7
 
8
8
  This API allows you to ensure accountability and security by recording events and changes performed within your Scaleway Organization.
9
9
  */
10
10
  var API = class extends API$1 {
11
- /**
12
- * Locality of this API.
13
- * type {'zone','region','global','unspecified'}
14
- */
15
- static LOCALITY = toApiLocality({ regions: ["fr-par", "nl-ams"] });
16
- /**
17
- * 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`.
18
- *
19
- * @param request - The request {@link ListEventsRequest}
20
- * @returns A Promise of ListEventsResponse
21
- */
22
- listEvents = (request = {}) => this.client.fetch({
23
- method: "GET",
24
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/events`,
25
- 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])
26
- }, unmarshalListEventsResponse);
27
- /**
28
- * List authentication events. Retrieve the list of Audit Trail authentication events for a Scaleway Organization. You must specify the `organization_id`.
29
- *
30
- * @param request - The request {@link ListAuthenticationEventsRequest}
31
- * @returns A Promise of ListAuthenticationEventsResponse
32
- */
33
- listAuthenticationEvents = (request = {}) => this.client.fetch({
34
- method: "GET",
35
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/authentication-events`,
36
- 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])
37
- }, unmarshalListAuthenticationEventsResponse);
38
- /**
39
- * List system events. Retrieve the list of Audit Trail system events for a Scaleway Organization. You must specify the `organization_id`.
40
- *
41
- * @param request - The request {@link ListSystemEventsRequest}
42
- * @returns A Promise of ListSystemEventsResponse
43
- */
44
- listSystemEvents = (request = {}) => this.client.fetch({
45
- method: "GET",
46
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/system-events`,
47
- 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])
48
- }, unmarshalListSystemEventsResponse);
49
- listCombinedEvents = (request = {}) => this.client.fetch({
50
- method: "GET",
51
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/combined-events`,
52
- 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])
53
- }, unmarshalListCombinedEventsResponse);
54
- /**
55
- * Retrieve the list of Scaleway resources for which you have Audit Trail events.
56
- *
57
- * @param request - The request {@link ListProductsRequest}
58
- * @returns A Promise of ListProductsResponse
59
- */
60
- listProducts = (request = {}) => this.client.fetch({
61
- method: "GET",
62
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
63
- urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId])
64
- }, unmarshalListProductsResponse);
65
- /**
66
- * 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.
67
- *
68
- * @param request - The request {@link CreateExportJobRequest}
69
- * @returns A Promise of ExportJob
70
- */
71
- createExportJob = (request) => this.client.fetch({
72
- body: JSON.stringify(marshalCreateExportJobRequest(request, this.client.settings)),
73
- headers: jsonContentHeaders,
74
- method: "POST",
75
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`
76
- }, unmarshalExportJob);
77
- /**
78
- * Delete an export job. Deletes an export job for a specified id.
79
- *
80
- * @param request - The request {@link DeleteExportJobRequest}
81
- */
82
- deleteExportJob = (request) => this.client.fetch({
83
- method: "DELETE",
84
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs/${validatePathParam("exportJobId", request.exportJobId)}`
85
- });
86
- pageOfListExportJobs = (request = {}) => this.client.fetch({
87
- method: "GET",
88
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`,
89
- 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])
90
- }, unmarshalListExportJobsResponse);
91
- listExportJobs = (request = {}) => enrichForPagination("exportJobs", this.pageOfListExportJobs, request);
92
- pageOfListAlertRules = (request = {}) => this.client.fetch({
93
- method: "GET",
94
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`,
95
- urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["status", request.status])
96
- }, unmarshalListAlertRulesResponse);
97
- /**
98
- * List alert rules for a specified organization and their current status (enabled or disabled).
99
- *
100
- * @param request - The request {@link ListAlertRulesRequest}
101
- * @returns A Promise of ListAlertRulesResponse
102
- */
103
- listAlertRules = (request = {}) => enrichForPagination("alertRules", this.pageOfListAlertRules, request);
104
- /**
105
- * Enable alert rules. Enable alert rules for a specified organization. Enabled rules will trigger alerts when matching events occur.
106
- *
107
- * @param request - The request {@link EnableAlertRulesRequest}
108
- * @returns A Promise of EnableAlertRulesResponse
109
- */
110
- enableAlertRules = (request = {}) => this.client.fetch({
111
- body: JSON.stringify(marshalEnableAlertRulesRequest(request, this.client.settings)),
112
- headers: jsonContentHeaders,
113
- method: "POST",
114
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/enable-alert-rules`
115
- }, unmarshalEnableAlertRulesResponse);
116
- /**
117
- * Disable alert rules. Disable alert rules for a specified organization. Disabled rules will no longer trigger alerts when matching events occur.
118
- *
119
- * @param request - The request {@link DisableAlertRulesRequest}
120
- * @returns A Promise of DisableAlertRulesResponse
121
- */
122
- disableAlertRules = (request = {}) => this.client.fetch({
123
- body: JSON.stringify(marshalDisableAlertRulesRequest(request, this.client.settings)),
124
- headers: jsonContentHeaders,
125
- method: "POST",
126
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/disable-alert-rules`
127
- }, unmarshalDisableAlertRulesResponse);
128
- /**
129
- * 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.
130
- *
131
- * @param request - The request {@link SetEnabledAlertRulesRequest}
132
- * @returns A Promise of SetEnabledAlertRulesResponse
133
- */
134
- setEnabledAlertRules = (request = {}) => this.client.fetch({
135
- body: JSON.stringify(marshalSetEnabledAlertRulesRequest(request, this.client.settings)),
136
- headers: jsonContentHeaders,
137
- method: "PATCH",
138
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`
139
- }, unmarshalSetEnabledAlertRulesResponse);
11
+ constructor(..._args) {
12
+ super(..._args);
13
+ this.listEvents = (request = {}) => this.client.fetch({
14
+ method: "GET",
15
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/events`,
16
+ 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])
17
+ }, unmarshalListEventsResponse);
18
+ this.listAuthenticationEvents = (request = {}) => this.client.fetch({
19
+ method: "GET",
20
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/authentication-events`,
21
+ 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])
22
+ }, unmarshalListAuthenticationEventsResponse);
23
+ this.listSystemEvents = (request = {}) => this.client.fetch({
24
+ method: "GET",
25
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/system-events`,
26
+ 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])
27
+ }, unmarshalListSystemEventsResponse);
28
+ this.listCombinedEvents = (request = {}) => this.client.fetch({
29
+ method: "GET",
30
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/combined-events`,
31
+ 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])
32
+ }, unmarshalListCombinedEventsResponse);
33
+ this.listProducts = (request = {}) => this.client.fetch({
34
+ method: "GET",
35
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
36
+ urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId])
37
+ }, unmarshalListProductsResponse);
38
+ this.createExportJob = (request) => this.client.fetch({
39
+ body: JSON.stringify(marshalCreateExportJobRequest(request, this.client.settings)),
40
+ headers: jsonContentHeaders,
41
+ method: "POST",
42
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`
43
+ }, unmarshalExportJob);
44
+ this.deleteExportJob = (request) => this.client.fetch({
45
+ method: "DELETE",
46
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs/${validatePathParam("exportJobId", request.exportJobId)}`
47
+ });
48
+ this.pageOfListExportJobs = (request = {}) => this.client.fetch({
49
+ method: "GET",
50
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs`,
51
+ 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])
52
+ }, unmarshalListExportJobsResponse);
53
+ this.listExportJobs = (request = {}) => enrichForPagination("exportJobs", this.pageOfListExportJobs, request);
54
+ this.pageOfListAlertRules = (request = {}) => this.client.fetch({
55
+ method: "GET",
56
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`,
57
+ urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["status", request.status])
58
+ }, unmarshalListAlertRulesResponse);
59
+ this.listAlertRules = (request = {}) => enrichForPagination("alertRules", this.pageOfListAlertRules, request);
60
+ this.enableAlertRules = (request = {}) => this.client.fetch({
61
+ body: JSON.stringify(marshalEnableAlertRulesRequest(request, this.client.settings)),
62
+ headers: jsonContentHeaders,
63
+ method: "POST",
64
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/enable-alert-rules`
65
+ }, unmarshalEnableAlertRulesResponse);
66
+ this.disableAlertRules = (request = {}) => this.client.fetch({
67
+ body: JSON.stringify(marshalDisableAlertRulesRequest(request, this.client.settings)),
68
+ headers: jsonContentHeaders,
69
+ method: "POST",
70
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/disable-alert-rules`
71
+ }, unmarshalDisableAlertRulesResponse);
72
+ this.setEnabledAlertRules = (request = {}) => this.client.fetch({
73
+ body: JSON.stringify(marshalSetEnabledAlertRulesRequest(request, this.client.settings)),
74
+ headers: jsonContentHeaders,
75
+ method: "PATCH",
76
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-rules`
77
+ }, unmarshalSetEnabledAlertRulesResponse);
78
+ }
79
+ static {
80
+ this.LOCALITY = toApiLocality({ regions: ["fr-par", "nl-ams"] });
81
+ }
140
82
  };
141
83
  //#endregion
142
84
  export { API };
@@ -1,5 +1,5 @@
1
1
  //#region src/v1alpha1/content.gen.ts
2
2
  /** Lists transient statutes of the enum {@link AlertRuleStatus}. */
3
- var ALERT_RULE_TRANSIENT_STATUSES = ["enabling", "disabling"];
3
+ const ALERT_RULE_TRANSIENT_STATUSES = ["enabling", "disabling"];
4
4
  //#endregion
5
5
  export { ALERT_RULE_TRANSIENT_STATUSES };
@@ -1,6 +1,6 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  //#region src/v1alpha1/marshalling.gen.ts
3
- var unmarshalExportJobS3 = (data) => {
3
+ const unmarshalExportJobS3 = (data) => {
4
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExportJobS3' failed as data isn't a dictionary.`);
5
5
  return {
6
6
  bucket: data.bucket,
@@ -9,14 +9,14 @@ var unmarshalExportJobS3 = (data) => {
9
9
  region: data.region
10
10
  };
11
11
  };
12
- var unmarshalExportJobStatus = (data) => {
12
+ const unmarshalExportJobStatus = (data) => {
13
13
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExportJobStatus' failed as data isn't a dictionary.`);
14
14
  return {
15
15
  code: data.code,
16
16
  message: data.message
17
17
  };
18
18
  };
19
- var unmarshalExportJob = (data) => {
19
+ const unmarshalExportJob = (data) => {
20
20
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExportJob' failed as data isn't a dictionary.`);
21
21
  return {
22
22
  createdAt: unmarshalDate(data.created_at),
@@ -29,7 +29,7 @@ var unmarshalExportJob = (data) => {
29
29
  tags: data.tags
30
30
  };
31
31
  };
32
- var unmarshalAlertRule = (data) => {
32
+ const unmarshalAlertRule = (data) => {
33
33
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AlertRule' failed as data isn't a dictionary.`);
34
34
  return {
35
35
  description: data.description,
@@ -38,22 +38,22 @@ var unmarshalAlertRule = (data) => {
38
38
  status: data.status
39
39
  };
40
40
  };
41
- var unmarshalDisableAlertRulesResponse = (data) => {
41
+ const unmarshalDisableAlertRulesResponse = (data) => {
42
42
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DisableAlertRulesResponse' failed as data isn't a dictionary.`);
43
43
  return { alertRules: unmarshalArrayOfObject(data.alert_rules, unmarshalAlertRule) };
44
44
  };
45
- var unmarshalEnableAlertRulesResponse = (data) => {
45
+ const unmarshalEnableAlertRulesResponse = (data) => {
46
46
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EnableAlertRulesResponse' failed as data isn't a dictionary.`);
47
47
  return { alertRules: unmarshalArrayOfObject(data.alert_rules, unmarshalAlertRule) };
48
48
  };
49
- var unmarshalListAlertRulesResponse = (data) => {
49
+ const unmarshalListAlertRulesResponse = (data) => {
50
50
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAlertRulesResponse' failed as data isn't a dictionary.`);
51
51
  return {
52
52
  alertRules: unmarshalArrayOfObject(data.alert_rules, unmarshalAlertRule),
53
53
  totalCount: data.total_count
54
54
  };
55
55
  };
56
- var unmarshalAccountContractSignatureInfoAccountContractInfo = (data) => {
56
+ const unmarshalAccountContractSignatureInfoAccountContractInfo = (data) => {
57
57
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccountContractSignatureInfoAccountContractInfo' failed as data isn't a dictionary.`);
58
58
  return {
59
59
  createdAt: unmarshalDate(data.created_at),
@@ -64,7 +64,7 @@ var unmarshalAccountContractSignatureInfoAccountContractInfo = (data) => {
64
64
  version: data.version
65
65
  };
66
66
  };
67
- var unmarshalAccountContractSignatureInfo = (data) => {
67
+ const unmarshalAccountContractSignatureInfo = (data) => {
68
68
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccountContractSignatureInfo' failed as data isn't a dictionary.`);
69
69
  return {
70
70
  contract: data.contract ? unmarshalAccountContractSignatureInfoAccountContractInfo(data.contract) : void 0,
@@ -73,91 +73,91 @@ var unmarshalAccountContractSignatureInfo = (data) => {
73
73
  signedByAccountRootUserId: data.signed_by_account_root_user_id
74
74
  };
75
75
  };
76
- var unmarshalAccountOrganizationInfo = (data) => {
76
+ const unmarshalAccountOrganizationInfo = (data) => {
77
77
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccountOrganizationInfo' failed as data isn't a dictionary.`);
78
78
  return {};
79
79
  };
80
- var unmarshalAccountProjectInfo = (data) => {
80
+ const unmarshalAccountProjectInfo = (data) => {
81
81
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccountProjectInfo' failed as data isn't a dictionary.`);
82
82
  return { description: data.description };
83
83
  };
84
- var unmarshalAccountUserInfo = (data) => {
84
+ const unmarshalAccountUserInfo = (data) => {
85
85
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccountUserInfo' failed as data isn't a dictionary.`);
86
86
  return {
87
87
  email: data.email,
88
88
  phoneNumber: data.phone_number
89
89
  };
90
90
  };
91
- var unmarshalAppleSiliconRunnerInfo = (data) => {
91
+ const unmarshalAppleSiliconRunnerInfo = (data) => {
92
92
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AppleSiliconRunnerInfo' failed as data isn't a dictionary.`);
93
93
  return {
94
94
  id: data.id,
95
95
  name: data.name
96
96
  };
97
97
  };
98
- var unmarshalAppleSiliconServerInfo = (data) => {
98
+ const unmarshalAppleSiliconServerInfo = (data) => {
99
99
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AppleSiliconServerInfo' failed as data isn't a dictionary.`);
100
100
  return {
101
101
  id: data.id,
102
102
  name: data.name
103
103
  };
104
104
  };
105
- var unmarshalAuditTrailAlertRuleInfo = (data) => {
105
+ const unmarshalAuditTrailAlertRuleInfo = (data) => {
106
106
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AuditTrailAlertRuleInfo' failed as data isn't a dictionary.`);
107
107
  return {};
108
108
  };
109
- var unmarshalAuditTrailExportJobInfo = (data) => {
109
+ const unmarshalAuditTrailExportJobInfo = (data) => {
110
110
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AuditTrailExportJobInfo' failed as data isn't a dictionary.`);
111
111
  return {};
112
112
  };
113
- var unmarshalBaremetalServerInfo = (data) => {
113
+ const unmarshalBaremetalServerInfo = (data) => {
114
114
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BaremetalServerInfo' failed as data isn't a dictionary.`);
115
115
  return {
116
116
  description: data.description,
117
117
  tags: data.tags
118
118
  };
119
119
  };
120
- var unmarshalBaremetalSettingInfo = (data) => {
120
+ const unmarshalBaremetalSettingInfo = (data) => {
121
121
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BaremetalSettingInfo' failed as data isn't a dictionary.`);
122
122
  return { type: data.type };
123
123
  };
124
- var unmarshalEdgeServicesBackendStageInfo = (data) => {
124
+ const unmarshalEdgeServicesBackendStageInfo = (data) => {
125
125
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesBackendStageInfo' failed as data isn't a dictionary.`);
126
126
  return { pipelineId: data.pipeline_id };
127
127
  };
128
- var unmarshalEdgeServicesCacheStageInfo = (data) => {
128
+ const unmarshalEdgeServicesCacheStageInfo = (data) => {
129
129
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesCacheStageInfo' failed as data isn't a dictionary.`);
130
130
  return { pipelineId: data.pipeline_id };
131
131
  };
132
- var unmarshalEdgeServicesDNSStageInfo = (data) => {
132
+ const unmarshalEdgeServicesDNSStageInfo = (data) => {
133
133
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesDNSStageInfo' failed as data isn't a dictionary.`);
134
134
  return { pipelineId: data.pipeline_id };
135
135
  };
136
- var unmarshalEdgeServicesPipelineInfo = (data) => {
136
+ const unmarshalEdgeServicesPipelineInfo = (data) => {
137
137
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesPipelineInfo' failed as data isn't a dictionary.`);
138
138
  return { name: data.name };
139
139
  };
140
- var unmarshalEdgeServicesPlanInfo = (data) => {
140
+ const unmarshalEdgeServicesPlanInfo = (data) => {
141
141
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesPlanInfo' failed as data isn't a dictionary.`);
142
142
  return {};
143
143
  };
144
- var unmarshalEdgeServicesRouteRulesInfo = (data) => {
144
+ const unmarshalEdgeServicesRouteRulesInfo = (data) => {
145
145
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesRouteRulesInfo' failed as data isn't a dictionary.`);
146
146
  return { routeStageId: data.route_stage_id };
147
147
  };
148
- var unmarshalEdgeServicesRouteStageInfo = (data) => {
148
+ const unmarshalEdgeServicesRouteStageInfo = (data) => {
149
149
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesRouteStageInfo' failed as data isn't a dictionary.`);
150
150
  return { pipelineId: data.pipeline_id };
151
151
  };
152
- var unmarshalEdgeServicesTLSStageInfo = (data) => {
152
+ const unmarshalEdgeServicesTLSStageInfo = (data) => {
153
153
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesTLSStageInfo' failed as data isn't a dictionary.`);
154
154
  return { pipelineId: data.pipeline_id };
155
155
  };
156
- var unmarshalEdgeServicesWAFStageInfo = (data) => {
156
+ const unmarshalEdgeServicesWAFStageInfo = (data) => {
157
157
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EdgeServicesWAFStageInfo' failed as data isn't a dictionary.`);
158
158
  return { pipelineId: data.pipeline_id };
159
159
  };
160
- var unmarshalInstancePrivateNetworkInterfaceInfo = (data) => {
160
+ const unmarshalInstancePrivateNetworkInterfaceInfo = (data) => {
161
161
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstancePrivateNetworkInterfaceInfo' failed as data isn't a dictionary.`);
162
162
  return {
163
163
  privateNetworkId: data.private_network_id,
@@ -165,102 +165,102 @@ var unmarshalInstancePrivateNetworkInterfaceInfo = (data) => {
165
165
  serverId: data.server_id
166
166
  };
167
167
  };
168
- var unmarshalInstanceServerInfo = (data) => {
168
+ const unmarshalInstanceServerInfo = (data) => {
169
169
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceServerInfo' failed as data isn't a dictionary.`);
170
170
  return { name: data.name };
171
171
  };
172
- var unmarshalIpamIpInfo = (data) => {
172
+ const unmarshalIpamIpInfo = (data) => {
173
173
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IpamIpInfo' failed as data isn't a dictionary.`);
174
174
  return { address: data.address };
175
175
  };
176
- var unmarshalKeyManagerKeyInfo = (data) => {
176
+ const unmarshalKeyManagerKeyInfo = (data) => {
177
177
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KeyManagerKeyInfo' failed as data isn't a dictionary.`);
178
178
  return {};
179
179
  };
180
- var unmarshalKubernetesACLInfo = (data) => {
180
+ const unmarshalKubernetesACLInfo = (data) => {
181
181
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KubernetesACLInfo' failed as data isn't a dictionary.`);
182
182
  return {};
183
183
  };
184
- var unmarshalKubernetesClusterInfo = (data) => {
184
+ const unmarshalKubernetesClusterInfo = (data) => {
185
185
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KubernetesClusterInfo' failed as data isn't a dictionary.`);
186
186
  return {};
187
187
  };
188
- var unmarshalKubernetesNodeInfo = (data) => {
188
+ const unmarshalKubernetesNodeInfo = (data) => {
189
189
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KubernetesNodeInfo' failed as data isn't a dictionary.`);
190
190
  return {
191
191
  id: data.id,
192
192
  name: data.name
193
193
  };
194
194
  };
195
- var unmarshalKubernetesPoolInfo = (data) => {
195
+ const unmarshalKubernetesPoolInfo = (data) => {
196
196
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KubernetesPoolInfo' failed as data isn't a dictionary.`);
197
197
  return {
198
198
  id: data.id,
199
199
  name: data.name
200
200
  };
201
201
  };
202
- var unmarshalLoadBalancerAclInfo = (data) => {
202
+ const unmarshalLoadBalancerAclInfo = (data) => {
203
203
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerAclInfo' failed as data isn't a dictionary.`);
204
204
  return { frontendId: data.frontend_id };
205
205
  };
206
- var unmarshalLoadBalancerBackendInfo = (data) => {
206
+ const unmarshalLoadBalancerBackendInfo = (data) => {
207
207
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerBackendInfo' failed as data isn't a dictionary.`);
208
208
  return {
209
209
  lbId: data.lb_id,
210
210
  name: data.name
211
211
  };
212
212
  };
213
- var unmarshalLoadBalancerCertificateInfo = (data) => {
213
+ const unmarshalLoadBalancerCertificateInfo = (data) => {
214
214
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerCertificateInfo' failed as data isn't a dictionary.`);
215
215
  return {
216
216
  lbId: data.lb_id,
217
217
  name: data.name
218
218
  };
219
219
  };
220
- var unmarshalLoadBalancerFrontendInfo = (data) => {
220
+ const unmarshalLoadBalancerFrontendInfo = (data) => {
221
221
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerFrontendInfo' failed as data isn't a dictionary.`);
222
222
  return {
223
223
  lbId: data.lb_id,
224
224
  name: data.name
225
225
  };
226
226
  };
227
- var unmarshalLoadBalancerIpInfo = (data) => {
227
+ const unmarshalLoadBalancerIpInfo = (data) => {
228
228
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerIpInfo' failed as data isn't a dictionary.`);
229
229
  return {
230
230
  ipAddress: data.ip_address,
231
231
  lbId: data.lb_id
232
232
  };
233
233
  };
234
- var unmarshalLoadBalancerLbInfo = (data) => {
234
+ const unmarshalLoadBalancerLbInfo = (data) => {
235
235
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerLbInfo' failed as data isn't a dictionary.`);
236
236
  return { name: data.name };
237
237
  };
238
- var unmarshalLoadBalancerRouteInfo = (data) => {
238
+ const unmarshalLoadBalancerRouteInfo = (data) => {
239
239
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LoadBalancerRouteInfo' failed as data isn't a dictionary.`);
240
240
  return {
241
241
  backendId: data.backend_id,
242
242
  frontendId: data.frontend_id
243
243
  };
244
244
  };
245
- var unmarshalSecretManagerSecretInfo = (data) => {
245
+ const unmarshalSecretManagerSecretInfo = (data) => {
246
246
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SecretManagerSecretInfo' failed as data isn't a dictionary.`);
247
247
  return {
248
248
  keyId: data.key_id,
249
249
  path: data.path
250
250
  };
251
251
  };
252
- var unmarshalSecretManagerSecretVersionInfo = (data) => {
252
+ const unmarshalSecretManagerSecretVersionInfo = (data) => {
253
253
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SecretManagerSecretVersionInfo' failed as data isn't a dictionary.`);
254
254
  return { revision: data.revision };
255
255
  };
256
- var unmarshalVpcConnectorInfo = (data) => {
256
+ const unmarshalVpcConnectorInfo = (data) => {
257
257
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcConnectorInfo' failed as data isn't a dictionary.`);
258
258
  return {
259
259
  targetVpcId: data.target_vpc_id,
260
260
  vpcId: data.vpc_id
261
261
  };
262
262
  };
263
- var unmarshalVpcGwGatewayInfo = (data) => {
263
+ const unmarshalVpcGwGatewayInfo = (data) => {
264
264
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcGwGatewayInfo' failed as data isn't a dictionary.`);
265
265
  return {
266
266
  gatewayTypeId: data.gateway_type_id,
@@ -268,7 +268,7 @@ var unmarshalVpcGwGatewayInfo = (data) => {
268
268
  vpcId: data.vpc_id
269
269
  };
270
270
  };
271
- var unmarshalVpcGwGatewayNetworkInfo = (data) => {
271
+ const unmarshalVpcGwGatewayNetworkInfo = (data) => {
272
272
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcGwGatewayNetworkInfo' failed as data isn't a dictionary.`);
273
273
  return {
274
274
  address: data.address,
@@ -276,14 +276,14 @@ var unmarshalVpcGwGatewayNetworkInfo = (data) => {
276
276
  pnId: data.pn_id
277
277
  };
278
278
  };
279
- var unmarshalVpcPrivateNetworkInfo = (data) => {
279
+ const unmarshalVpcPrivateNetworkInfo = (data) => {
280
280
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcPrivateNetworkInfo' failed as data isn't a dictionary.`);
281
281
  return {
282
282
  pushDefaultRoute: data.push_default_route,
283
283
  vpcId: data.vpc_id
284
284
  };
285
285
  };
286
- var unmarshalVpcRouteInfo = (data) => {
286
+ const unmarshalVpcRouteInfo = (data) => {
287
287
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcRouteInfo' failed as data isn't a dictionary.`);
288
288
  return {
289
289
  destination: data.destination,
@@ -292,14 +292,14 @@ var unmarshalVpcRouteInfo = (data) => {
292
292
  vpcId: data.vpc_id
293
293
  };
294
294
  };
295
- var unmarshalVpcSubnetInfo = (data) => {
295
+ const unmarshalVpcSubnetInfo = (data) => {
296
296
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpcSubnetInfo' failed as data isn't a dictionary.`);
297
297
  return {
298
298
  subnetCidr: data.subnet_cidr,
299
299
  vpcId: data.vpc_id
300
300
  };
301
301
  };
302
- var unmarshalResource = (data) => {
302
+ const unmarshalResource = (data) => {
303
303
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`);
304
304
  return {
305
305
  accountContractSignatureInfo: data.account_contract_signature_info ? unmarshalAccountContractSignatureInfo(data.account_contract_signature_info) : void 0,
@@ -355,7 +355,7 @@ var unmarshalResource = (data) => {
355
355
  vpcSubnetInfo: data.vpc_subnet_info ? unmarshalVpcSubnetInfo(data.vpc_subnet_info) : void 0
356
356
  };
357
357
  };
358
- var unmarshalAuthenticationEvent = (data) => {
358
+ const unmarshalAuthenticationEvent = (data) => {
359
359
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AuthenticationEvent' failed as data isn't a dictionary.`);
360
360
  return {
361
361
  countryCode: data.country_code ? data.country_code : void 0,
@@ -372,18 +372,18 @@ var unmarshalAuthenticationEvent = (data) => {
372
372
  userAgent: data.user_agent
373
373
  };
374
374
  };
375
- var unmarshalListAuthenticationEventsResponse = (data) => {
375
+ const unmarshalListAuthenticationEventsResponse = (data) => {
376
376
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAuthenticationEventsResponse' failed as data isn't a dictionary.`);
377
377
  return {
378
378
  events: unmarshalArrayOfObject(data.events, unmarshalAuthenticationEvent),
379
379
  nextPageToken: data.next_page_token
380
380
  };
381
381
  };
382
- var unmarshalEventPrincipal = (data) => {
382
+ const unmarshalEventPrincipal = (data) => {
383
383
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EventPrincipal' failed as data isn't a dictionary.`);
384
384
  return { id: data.id };
385
385
  };
386
- var unmarshalEvent = (data) => {
386
+ const unmarshalEvent = (data) => {
387
387
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Event' failed as data isn't a dictionary.`);
388
388
  return {
389
389
  id: data.id,
@@ -403,7 +403,7 @@ var unmarshalEvent = (data) => {
403
403
  userAgent: data.user_agent
404
404
  };
405
405
  };
406
- var unmarshalSystemEvent = (data) => {
406
+ const unmarshalSystemEvent = (data) => {
407
407
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SystemEvent' failed as data isn't a dictionary.`);
408
408
  return {
409
409
  id: data.id,
@@ -418,7 +418,7 @@ var unmarshalSystemEvent = (data) => {
418
418
  systemName: data.system_name
419
419
  };
420
420
  };
421
- var unmarshalListCombinedEventsResponseCombinedEvent = (data) => {
421
+ const unmarshalListCombinedEventsResponseCombinedEvent = (data) => {
422
422
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCombinedEventsResponseCombinedEvent' failed as data isn't a dictionary.`);
423
423
  return {
424
424
  api: data.api ? unmarshalEvent(data.api) : void 0,
@@ -426,35 +426,35 @@ var unmarshalListCombinedEventsResponseCombinedEvent = (data) => {
426
426
  system: data.system ? unmarshalSystemEvent(data.system) : void 0
427
427
  };
428
428
  };
429
- var unmarshalListCombinedEventsResponse = (data) => {
429
+ const unmarshalListCombinedEventsResponse = (data) => {
430
430
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCombinedEventsResponse' failed as data isn't a dictionary.`);
431
431
  return {
432
432
  events: unmarshalArrayOfObject(data.events, unmarshalListCombinedEventsResponseCombinedEvent),
433
433
  nextPageToken: data.next_page_token
434
434
  };
435
435
  };
436
- var unmarshalListEventsResponse = (data) => {
436
+ const unmarshalListEventsResponse = (data) => {
437
437
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListEventsResponse' failed as data isn't a dictionary.`);
438
438
  return {
439
439
  events: unmarshalArrayOfObject(data.events, unmarshalEvent),
440
440
  nextPageToken: data.next_page_token
441
441
  };
442
442
  };
443
- var unmarshalListExportJobsResponse = (data) => {
443
+ const unmarshalListExportJobsResponse = (data) => {
444
444
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListExportJobsResponse' failed as data isn't a dictionary.`);
445
445
  return {
446
446
  exportJobs: unmarshalArrayOfObject(data.export_jobs, unmarshalExportJob),
447
447
  totalCount: data.total_count
448
448
  };
449
449
  };
450
- var unmarshalProductService = (data) => {
450
+ const unmarshalProductService = (data) => {
451
451
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProductService' failed as data isn't a dictionary.`);
452
452
  return {
453
453
  methods: data.methods,
454
454
  name: data.name
455
455
  };
456
456
  };
457
- var unmarshalProduct = (data) => {
457
+ const unmarshalProduct = (data) => {
458
458
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Product' failed as data isn't a dictionary.`);
459
459
  return {
460
460
  name: data.name,
@@ -462,31 +462,31 @@ var unmarshalProduct = (data) => {
462
462
  title: data.title
463
463
  };
464
464
  };
465
- var unmarshalListProductsResponse = (data) => {
465
+ const unmarshalListProductsResponse = (data) => {
466
466
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListProductsResponse' failed as data isn't a dictionary.`);
467
467
  return {
468
468
  products: unmarshalArrayOfObject(data.products, unmarshalProduct),
469
469
  totalCount: data.total_count
470
470
  };
471
471
  };
472
- var unmarshalListSystemEventsResponse = (data) => {
472
+ const unmarshalListSystemEventsResponse = (data) => {
473
473
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSystemEventsResponse' failed as data isn't a dictionary.`);
474
474
  return {
475
475
  events: unmarshalArrayOfObject(data.events, unmarshalSystemEvent),
476
476
  nextPageToken: data.next_page_token
477
477
  };
478
478
  };
479
- var unmarshalSetEnabledAlertRulesResponse = (data) => {
479
+ const unmarshalSetEnabledAlertRulesResponse = (data) => {
480
480
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetEnabledAlertRulesResponse' failed as data isn't a dictionary.`);
481
481
  return { alertRules: unmarshalArrayOfObject(data.alert_rules, unmarshalAlertRule) };
482
482
  };
483
- var marshalExportJobS3 = (request, defaults) => ({
483
+ const marshalExportJobS3 = (request, defaults) => ({
484
484
  bucket: request.bucket,
485
485
  prefix: request.prefix,
486
486
  project_id: request.projectId,
487
487
  region: request.region
488
488
  });
489
- var marshalCreateExportJobRequest = (request, defaults) => ({
489
+ const marshalCreateExportJobRequest = (request, defaults) => ({
490
490
  name: request.name,
491
491
  organization_id: request.organizationId ?? defaults.defaultOrganizationId,
492
492
  tags: request.tags,
@@ -495,15 +495,15 @@ var marshalCreateExportJobRequest = (request, defaults) => ({
495
495
  value: request.s3 !== void 0 ? marshalExportJobS3(request.s3, defaults) : void 0
496
496
  }])
497
497
  });
498
- var marshalDisableAlertRulesRequest = (request, defaults) => ({
498
+ const marshalDisableAlertRulesRequest = (request, defaults) => ({
499
499
  alert_rule_ids: request.alertRuleIds,
500
500
  organization_id: request.organizationId ?? defaults.defaultOrganizationId
501
501
  });
502
- var marshalEnableAlertRulesRequest = (request, defaults) => ({
502
+ const marshalEnableAlertRulesRequest = (request, defaults) => ({
503
503
  alert_rule_ids: request.alertRuleIds,
504
504
  organization_id: request.organizationId ?? defaults.defaultOrganizationId
505
505
  });
506
- var marshalSetEnabledAlertRulesRequest = (request, defaults) => ({
506
+ const marshalSetEnabledAlertRulesRequest = (request, defaults) => ({
507
507
  enabled_alert_rule_ids: request.enabledAlertRuleIds,
508
508
  organization_id: request.organizationId ?? defaults.defaultOrganizationId
509
509
  });
@@ -1,5 +1,5 @@
1
1
  //#region src/v1alpha1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "audit_trail",
4
4
  version: "v1alpha1",
5
5
  folderName: "auditTrailv1alpha1",
@@ -8,12 +8,12 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
8
8
  ListEventsRequest: () => ListEventsRequest,
9
9
  ListSystemEventsRequest: () => ListSystemEventsRequest
10
10
  });
11
- var CreateExportJobRequest = { name: {
11
+ const CreateExportJobRequest = { name: {
12
12
  maxLength: 255,
13
13
  minLength: 1,
14
14
  pattern: /^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$/
15
15
  } };
16
- var ExportJobS3 = {
16
+ const ExportJobS3 = {
17
17
  bucket: {
18
18
  maxLength: 63,
19
19
  minLength: 3,
@@ -25,15 +25,15 @@ var ExportJobS3 = {
25
25
  },
26
26
  region: { pattern: /^[a-z]{2}-[a-z]{3}$/ }
27
27
  };
28
- var ListAuthenticationEventsRequest = { pageSize: {
28
+ const ListAuthenticationEventsRequest = { pageSize: {
29
29
  greaterThanOrEqual: 1,
30
30
  lessThanOrEqual: 1e3
31
31
  } };
32
- var ListCombinedEventsRequest = { pageSize: {
32
+ const ListCombinedEventsRequest = { pageSize: {
33
33
  greaterThanOrEqual: 1,
34
34
  lessThanOrEqual: 1e3
35
35
  } };
36
- var ListEventsRequest = {
36
+ const ListEventsRequest = {
37
37
  methodName: { pattern: /^[a-zA-Z][a-zA-Z0-9_]*$/ },
38
38
  pageSize: {
39
39
  greaterThanOrEqual: 1,
@@ -50,7 +50,7 @@ var ListEventsRequest = {
50
50
  lessThan: 600
51
51
  }
52
52
  };
53
- var ListSystemEventsRequest = { pageSize: {
53
+ const ListSystemEventsRequest = { pageSize: {
54
54
  greaterThanOrEqual: 1,
55
55
  lessThanOrEqual: 1e3
56
56
  } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-audit-trail",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Scaleway SDK audit-trail",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -35,18 +35,20 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@scaleway/random-name": "5.1.4",
38
- "@scaleway/sdk-std": "2.3.0"
38
+ "@scaleway/sdk-std": "2.4.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@scaleway/sdk-client": "^2.2.2"
41
+ "@repo/configs": "^0.1.1",
42
+ "@scaleway/sdk-client": "^2.3.0"
42
43
  },
43
44
  "devDependencies": {
44
- "@scaleway/sdk-client": "^2.2.2"
45
+ "@scaleway/sdk-client": "^2.3.0",
46
+ "@repo/configs": "^0.1.1"
45
47
  },
46
48
  "scripts": {
47
49
  "package:check": "pnpm publint",
48
- "typecheck": "tsc --noEmit",
49
- "type:generate": "tsc --declaration -p tsconfig.build.json",
50
+ "typecheck": "tsgo --noEmit",
51
+ "type:generate": "tsgo --declaration -p tsconfig.build.json",
50
52
  "build": "vite build --config vite.config.ts && pnpm run type:generate",
51
53
  "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
52
54
  }
package/LICENSE DELETED
@@ -1,191 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- https://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- Copyright 2019 Scaleway.
180
-
181
- Licensed under the Apache License, Version 2.0 (the "License");
182
- you may not use this file except in compliance with the License.
183
- You may obtain a copy of the License at
184
-
185
- https://www.apache.org/licenses/LICENSE-2.0
186
-
187
- Unless required by applicable law or agreed to in writing, software
188
- distributed under the License is distributed on an "AS IS" BASIS,
189
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
- See the License for the specific language governing permissions and
191
- limitations under the License.
@@ -1,6 +0,0 @@
1
- {
2
- "name": "@scaleway/sdk-audit-trail",
3
- "namespace": "audit-trail",
4
- "displayName": "Audit Trail",
5
- "versions": ["v1alpha1"]
6
- }
@@ -1,8 +0,0 @@
1
- var metadata_gen_default = {
2
- name: "@scaleway/sdk-audit-trail",
3
- namespace: "audit-trail",
4
- displayName: "Audit Trail",
5
- versions: ["v1alpha1"]
6
- };
7
- //#endregion
8
- export { metadata_gen_default as default };