@scaleway/sdk 2.66.0 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +5 -1
  2. package/dist/api/audit_trail/v1alpha1/api.gen.js +5 -1
  3. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +1 -0
  4. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +1 -0
  5. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +6 -2
  6. package/dist/api/baremetal/v1/api.gen.cjs +13 -0
  7. package/dist/api/baremetal/v1/api.gen.d.ts +8 -1
  8. package/dist/api/baremetal/v1/api.gen.js +13 -0
  9. package/dist/api/baremetal/v1/content.gen.cjs +2 -1
  10. package/dist/api/baremetal/v1/content.gen.js +2 -1
  11. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  12. package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
  13. package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
  14. package/dist/api/baremetal/v1/types.gen.d.ts +9 -1
  15. package/dist/api/block/index.gen.cjs +4 -2
  16. package/dist/api/block/index.gen.d.ts +1 -0
  17. package/dist/api/block/index.gen.js +4 -2
  18. package/dist/api/block/v1/api.gen.cjs +303 -0
  19. package/dist/api/block/v1/api.gen.d.ts +152 -0
  20. package/dist/api/block/v1/api.gen.js +303 -0
  21. package/dist/api/block/v1/content.gen.cjs +22 -0
  22. package/dist/api/block/v1/content.gen.d.ts +7 -0
  23. package/dist/api/block/v1/content.gen.js +22 -0
  24. package/dist/api/block/v1/index.gen.cjs +10 -0
  25. package/dist/api/block/v1/index.gen.d.ts +4 -0
  26. package/dist/api/block/v1/index.gen.js +10 -0
  27. package/dist/api/block/v1/marshalling.gen.cjs +200 -0
  28. package/dist/api/block/v1/marshalling.gen.d.ts +14 -0
  29. package/dist/api/block/v1/marshalling.gen.js +200 -0
  30. package/dist/api/block/v1/types.gen.d.ts +335 -0
  31. package/dist/api/block/v1/validation-rules.gen.cjs +56 -0
  32. package/dist/api/block/v1/validation-rules.gen.d.ts +47 -0
  33. package/dist/api/block/v1/validation-rules.gen.js +56 -0
  34. package/dist/api/block/v1alpha1/api.gen.cjs +1 -0
  35. package/dist/api/block/v1alpha1/api.gen.js +1 -0
  36. package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
  37. package/dist/api/cockpit/v1/api.gen.cjs +14 -17
  38. package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
  39. package/dist/api/cockpit/v1/api.gen.js +15 -18
  40. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  41. package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
  42. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
  43. package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
  44. package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
  45. package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
  46. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
  47. package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
  48. package/dist/api/edge_services/index.gen.cjs +2 -0
  49. package/dist/api/edge_services/index.gen.d.ts +1 -0
  50. package/dist/api/edge_services/index.gen.js +3 -1
  51. package/dist/api/edge_services/v1beta1/api.gen.cjs +941 -0
  52. package/dist/api/edge_services/v1beta1/api.gen.d.ts +454 -0
  53. package/dist/api/edge_services/v1beta1/api.gen.js +941 -0
  54. package/dist/api/edge_services/v1beta1/content.gen.cjs +8 -0
  55. package/dist/api/edge_services/v1beta1/content.gen.d.ts +5 -0
  56. package/dist/api/edge_services/v1beta1/content.gen.js +8 -0
  57. package/dist/api/{webhosting/v1alpha1 → edge_services/v1beta1}/index.gen.cjs +2 -2
  58. package/dist/api/edge_services/v1beta1/index.gen.d.ts +4 -0
  59. package/dist/api/edge_services/v1beta1/index.gen.js +9 -0
  60. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +808 -0
  61. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +53 -0
  62. package/dist/api/edge_services/v1beta1/marshalling.gen.js +808 -0
  63. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1218 -0
  64. package/dist/api/edge_services/v1beta1/validation-rules.gen.cjs +23 -0
  65. package/dist/api/edge_services/v1beta1/validation-rules.gen.d.ts +18 -0
  66. package/dist/api/edge_services/v1beta1/validation-rules.gen.js +23 -0
  67. package/dist/api/instance/v1/api.gen.cjs +18 -0
  68. package/dist/api/instance/v1/api.gen.d.ts +13 -1
  69. package/dist/api/instance/v1/api.gen.js +19 -1
  70. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  71. package/dist/api/instance/v1/marshalling.gen.cjs +12 -0
  72. package/dist/api/instance/v1/marshalling.gen.d.ts +2 -1
  73. package/dist/api/instance/v1/marshalling.gen.js +12 -0
  74. package/dist/api/instance/v1/types.gen.d.ts +12 -0
  75. package/dist/api/lb/v1/marshalling.gen.cjs +7 -0
  76. package/dist/api/lb/v1/marshalling.gen.js +7 -0
  77. package/dist/api/lb/v1/types.gen.d.ts +27 -0
  78. package/dist/api/mongodb/v1alpha1/api.gen.cjs +11 -0
  79. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +2 -1
  80. package/dist/api/mongodb/v1alpha1/api.gen.js +12 -1
  81. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  82. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +26 -1
  83. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
  84. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +26 -1
  85. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +29 -0
  86. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  87. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  88. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  89. package/dist/api/secret/v1beta1/api.gen.cjs +33 -0
  90. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  91. package/dist/api/secret/v1beta1/api.gen.js +33 -0
  92. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  93. package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
  94. package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
  95. package/dist/api/secret/v1beta1/types.gen.d.ts +30 -3
  96. package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
  97. package/dist/api/vpcgw/v1/api.gen.d.ts +2 -1
  98. package/dist/api/vpcgw/v1/api.gen.js +6 -0
  99. package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
  100. package/dist/api/vpcgw/v1/types.gen.d.ts +5 -0
  101. package/dist/api/webhosting/index.gen.cjs +0 -2
  102. package/dist/api/webhosting/index.gen.d.ts +0 -1
  103. package/dist/api/webhosting/index.gen.js +1 -3
  104. package/dist/api/webhosting/v1/content.gen.cjs +0 -6
  105. package/dist/api/webhosting/v1/content.gen.d.ts +1 -3
  106. package/dist/api/webhosting/v1/content.gen.js +0 -6
  107. package/dist/api/webhosting/v1/index.gen.cjs +0 -1
  108. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  109. package/dist/api/webhosting/v1/index.gen.js +1 -2
  110. package/dist/api/webhosting/v1/marshalling.gen.cjs +5 -2
  111. package/dist/api/webhosting/v1/marshalling.gen.js +5 -2
  112. package/dist/api/webhosting/v1/types.gen.d.ts +12 -7
  113. package/dist/scw/constants.cjs +1 -1
  114. package/dist/scw/constants.d.ts +2 -2
  115. package/dist/scw/constants.js +1 -1
  116. package/package.json +2 -2
  117. package/dist/api/webhosting/v1alpha1/api.gen.cjs +0 -339
  118. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +0 -168
  119. package/dist/api/webhosting/v1alpha1/api.gen.js +0 -339
  120. package/dist/api/webhosting/v1alpha1/content.gen.cjs +0 -8
  121. package/dist/api/webhosting/v1alpha1/content.gen.d.ts +0 -3
  122. package/dist/api/webhosting/v1alpha1/content.gen.js +0 -8
  123. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +0 -4
  124. package/dist/api/webhosting/v1alpha1/index.gen.js +0 -9
  125. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +0 -300
  126. package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +0 -17
  127. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -300
  128. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +0 -480
  129. package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +0 -32
  130. package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +0 -27
  131. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -32
@@ -155,6 +155,34 @@ const unmarshalGrafana = (data) => {
155
155
  grafanaUrl: data.grafana_url
156
156
  };
157
157
  };
158
+ const unmarshalAlert = (data) => {
159
+ if (!json.isJSONObject(data)) {
160
+ throw new TypeError(
161
+ `Unmarshalling the type 'Alert' failed as data isn't a dictionary.`
162
+ );
163
+ }
164
+ return {
165
+ annotations: data.annotations,
166
+ duration: data.duration,
167
+ enabled: data.enabled,
168
+ name: data.name,
169
+ preconfigured: data.preconfigured,
170
+ region: data.region,
171
+ rule: data.rule,
172
+ state: data.state ? data.state : void 0
173
+ };
174
+ };
175
+ const unmarshalListAlertsResponse = (data) => {
176
+ if (!json.isJSONObject(data)) {
177
+ throw new TypeError(
178
+ `Unmarshalling the type 'ListAlertsResponse' failed as data isn't a dictionary.`
179
+ );
180
+ }
181
+ return {
182
+ alerts: marshalling.unmarshalArrayOfObject(data.alerts, unmarshalAlert),
183
+ totalCount: data.total_count
184
+ };
185
+ };
158
186
  const unmarshalListContactPointsResponse = (data) => {
159
187
  if (!json.isJSONObject(data)) {
160
188
  throw new TypeError(
@@ -210,31 +238,6 @@ const unmarshalListGrafanaUsersResponse = (data) => {
210
238
  totalCount: data.total_count
211
239
  };
212
240
  };
213
- const unmarshalAlert = (data) => {
214
- if (!json.isJSONObject(data)) {
215
- throw new TypeError(
216
- `Unmarshalling the type 'Alert' failed as data isn't a dictionary.`
217
- );
218
- }
219
- return {
220
- description: data.description,
221
- name: data.name,
222
- product: data.product,
223
- productFamily: data.product_family,
224
- rule: data.rule
225
- };
226
- };
227
- const unmarshalListManagedAlertsResponse = (data) => {
228
- if (!json.isJSONObject(data)) {
229
- throw new TypeError(
230
- `Unmarshalling the type 'ListManagedAlertsResponse' failed as data isn't a dictionary.`
231
- );
232
- }
233
- return {
234
- alerts: marshalling.unmarshalArrayOfObject(data.alerts, unmarshalAlert),
235
- totalCount: data.total_count
236
- };
237
- };
238
241
  const unmarshalListPlansResponse = (data) => {
239
242
  if (!json.isJSONObject(data)) {
240
243
  throw new TypeError(
@@ -387,11 +390,11 @@ exports.unmarshalGetConfigResponse = unmarshalGetConfigResponse;
387
390
  exports.unmarshalGrafana = unmarshalGrafana;
388
391
  exports.unmarshalGrafanaProductDashboard = unmarshalGrafanaProductDashboard;
389
392
  exports.unmarshalGrafanaUser = unmarshalGrafanaUser;
393
+ exports.unmarshalListAlertsResponse = unmarshalListAlertsResponse;
390
394
  exports.unmarshalListContactPointsResponse = unmarshalListContactPointsResponse;
391
395
  exports.unmarshalListDataSourcesResponse = unmarshalListDataSourcesResponse;
392
396
  exports.unmarshalListGrafanaProductDashboardsResponse = unmarshalListGrafanaProductDashboardsResponse;
393
397
  exports.unmarshalListGrafanaUsersResponse = unmarshalListGrafanaUsersResponse;
394
- exports.unmarshalListManagedAlertsResponse = unmarshalListManagedAlertsResponse;
395
398
  exports.unmarshalListPlansResponse = unmarshalListPlansResponse;
396
399
  exports.unmarshalListTokensResponse = unmarshalListTokensResponse;
397
400
  exports.unmarshalPlan = unmarshalPlan;
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { AlertManager, ContactPoint, DataSource, GetConfigResponse, GlobalApiCreateGrafanaUserRequest, GlobalApiResetGrafanaUserPasswordRequest, GlobalApiSelectPlanRequest, GlobalApiSyncGrafanaDataSourcesRequest, Grafana, GrafanaProductDashboard, GrafanaUser, ListContactPointsResponse, ListDataSourcesResponse, ListGrafanaProductDashboardsResponse, ListGrafanaUsersResponse, ListManagedAlertsResponse, ListPlansResponse, ListTokensResponse, Plan, RegionalApiCreateContactPointRequest, RegionalApiCreateDataSourceRequest, RegionalApiCreateTokenRequest, RegionalApiDeleteContactPointRequest, RegionalApiDisableAlertManagerRequest, RegionalApiDisableManagedAlertsRequest, RegionalApiEnableAlertManagerRequest, RegionalApiEnableManagedAlertsRequest, RegionalApiTriggerTestAlertRequest, RegionalApiUpdateContactPointRequest, RegionalApiUpdateDataSourceRequest, Token, UsageOverview } from './types.gen';
2
+ import type { AlertManager, ContactPoint, DataSource, GetConfigResponse, GlobalApiCreateGrafanaUserRequest, GlobalApiResetGrafanaUserPasswordRequest, GlobalApiSelectPlanRequest, GlobalApiSyncGrafanaDataSourcesRequest, Grafana, GrafanaProductDashboard, GrafanaUser, ListAlertsResponse, ListContactPointsResponse, ListDataSourcesResponse, ListGrafanaProductDashboardsResponse, ListGrafanaUsersResponse, ListPlansResponse, ListTokensResponse, Plan, RegionalApiCreateContactPointRequest, RegionalApiCreateDataSourceRequest, RegionalApiCreateTokenRequest, RegionalApiDeleteContactPointRequest, RegionalApiDisableAlertManagerRequest, RegionalApiDisableManagedAlertsRequest, RegionalApiEnableAlertManagerRequest, RegionalApiEnableManagedAlertsRequest, RegionalApiTriggerTestAlertRequest, RegionalApiUpdateContactPointRequest, RegionalApiUpdateDataSourceRequest, Token, UsageOverview } from './types.gen';
3
3
  export declare const unmarshalContactPoint: (data: unknown) => ContactPoint;
4
4
  export declare const unmarshalDataSource: (data: unknown) => DataSource;
5
5
  export declare const unmarshalGrafanaProductDashboard: (data: unknown) => GrafanaProductDashboard;
@@ -9,11 +9,11 @@ export declare const unmarshalToken: (data: unknown) => Token;
9
9
  export declare const unmarshalAlertManager: (data: unknown) => AlertManager;
10
10
  export declare const unmarshalGetConfigResponse: (data: unknown) => GetConfigResponse;
11
11
  export declare const unmarshalGrafana: (data: unknown) => Grafana;
12
+ export declare const unmarshalListAlertsResponse: (data: unknown) => ListAlertsResponse;
12
13
  export declare const unmarshalListContactPointsResponse: (data: unknown) => ListContactPointsResponse;
13
14
  export declare const unmarshalListDataSourcesResponse: (data: unknown) => ListDataSourcesResponse;
14
15
  export declare const unmarshalListGrafanaProductDashboardsResponse: (data: unknown) => ListGrafanaProductDashboardsResponse;
15
16
  export declare const unmarshalListGrafanaUsersResponse: (data: unknown) => ListGrafanaUsersResponse;
16
- export declare const unmarshalListManagedAlertsResponse: (data: unknown) => ListManagedAlertsResponse;
17
17
  export declare const unmarshalListPlansResponse: (data: unknown) => ListPlansResponse;
18
18
  export declare const unmarshalListTokensResponse: (data: unknown) => ListTokensResponse;
19
19
  export declare const unmarshalUsageOverview: (data: unknown) => UsageOverview;
@@ -153,6 +153,34 @@ const unmarshalGrafana = (data) => {
153
153
  grafanaUrl: data.grafana_url
154
154
  };
155
155
  };
156
+ const unmarshalAlert = (data) => {
157
+ if (!isJSONObject(data)) {
158
+ throw new TypeError(
159
+ `Unmarshalling the type 'Alert' failed as data isn't a dictionary.`
160
+ );
161
+ }
162
+ return {
163
+ annotations: data.annotations,
164
+ duration: data.duration,
165
+ enabled: data.enabled,
166
+ name: data.name,
167
+ preconfigured: data.preconfigured,
168
+ region: data.region,
169
+ rule: data.rule,
170
+ state: data.state ? data.state : void 0
171
+ };
172
+ };
173
+ const unmarshalListAlertsResponse = (data) => {
174
+ if (!isJSONObject(data)) {
175
+ throw new TypeError(
176
+ `Unmarshalling the type 'ListAlertsResponse' failed as data isn't a dictionary.`
177
+ );
178
+ }
179
+ return {
180
+ alerts: unmarshalArrayOfObject(data.alerts, unmarshalAlert),
181
+ totalCount: data.total_count
182
+ };
183
+ };
156
184
  const unmarshalListContactPointsResponse = (data) => {
157
185
  if (!isJSONObject(data)) {
158
186
  throw new TypeError(
@@ -208,31 +236,6 @@ const unmarshalListGrafanaUsersResponse = (data) => {
208
236
  totalCount: data.total_count
209
237
  };
210
238
  };
211
- const unmarshalAlert = (data) => {
212
- if (!isJSONObject(data)) {
213
- throw new TypeError(
214
- `Unmarshalling the type 'Alert' failed as data isn't a dictionary.`
215
- );
216
- }
217
- return {
218
- description: data.description,
219
- name: data.name,
220
- product: data.product,
221
- productFamily: data.product_family,
222
- rule: data.rule
223
- };
224
- };
225
- const unmarshalListManagedAlertsResponse = (data) => {
226
- if (!isJSONObject(data)) {
227
- throw new TypeError(
228
- `Unmarshalling the type 'ListManagedAlertsResponse' failed as data isn't a dictionary.`
229
- );
230
- }
231
- return {
232
- alerts: unmarshalArrayOfObject(data.alerts, unmarshalAlert),
233
- totalCount: data.total_count
234
- };
235
- };
236
239
  const unmarshalListPlansResponse = (data) => {
237
240
  if (!isJSONObject(data)) {
238
241
  throw new TypeError(
@@ -386,11 +389,11 @@ export {
386
389
  unmarshalGrafana,
387
390
  unmarshalGrafanaProductDashboard,
388
391
  unmarshalGrafanaUser,
392
+ unmarshalListAlertsResponse,
389
393
  unmarshalListContactPointsResponse,
390
394
  unmarshalListDataSourcesResponse,
391
395
  unmarshalListGrafanaProductDashboardsResponse,
392
396
  unmarshalListGrafanaUsersResponse,
393
- unmarshalListManagedAlertsResponse,
394
397
  unmarshalListPlansResponse,
395
398
  unmarshalListTokensResponse,
396
399
  unmarshalPlan,
@@ -1,10 +1,10 @@
1
1
  import type { Region as ScwRegion } from '../../../bridge';
2
+ export type AlertState = 'unknown_state' | 'inactive' | 'pending' | 'firing';
2
3
  export type DataSourceOrigin = 'unknown_origin' | 'scaleway' | 'external' | 'custom';
3
4
  export type DataSourceType = 'unknown_type' | 'metrics' | 'logs' | 'traces';
4
5
  export type GrafanaUserRole = 'unknown_role' | 'editor' | 'viewer';
5
6
  export type ListDataSourcesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
6
7
  export type ListGrafanaUsersRequestOrderBy = 'login_asc' | 'login_desc';
7
- export type ListManagedAlertsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
8
8
  export type ListPlansRequestOrderBy = 'name_asc' | 'name_desc';
9
9
  export type ListTokensRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
10
10
  export type PlanName = 'unknown_name' | 'free' | 'premium' | 'custom';
@@ -18,6 +18,20 @@ export interface GetConfigResponseRetention {
18
18
  maxDays: number;
19
19
  defaultDays: number;
20
20
  }
21
+ export interface Alert {
22
+ /**
23
+ * Region to target. If none is passed will use default region from the
24
+ * config.
25
+ */
26
+ region: ScwRegion;
27
+ preconfigured: boolean;
28
+ name: string;
29
+ rule: string;
30
+ duration: string;
31
+ enabled: boolean;
32
+ state?: AlertState;
33
+ annotations: Record<string, string>;
34
+ }
21
35
  /** Contact point. */
22
36
  export interface ContactPoint {
23
37
  /**
@@ -80,13 +94,6 @@ export interface GrafanaUser {
80
94
  /** Grafana user's password. */
81
95
  password?: string;
82
96
  }
83
- export interface Alert {
84
- productFamily: string;
85
- product: string;
86
- name: string;
87
- rule: string;
88
- description: string;
89
- }
90
97
  /** Type of pricing plan. */
91
98
  export interface Plan {
92
99
  /** Name of a given pricing plan. */
@@ -261,6 +268,13 @@ export interface Grafana {
261
268
  /** URL to access your Cockpit's Grafana. */
262
269
  grafanaUrl: string;
263
270
  }
271
+ /** Retrieve a list of alerts matching the request. */
272
+ export interface ListAlertsResponse {
273
+ /** Total count of alerts matching the request. */
274
+ totalCount: number;
275
+ /** List of alerts matching the applied filters. */
276
+ alerts: Alert[];
277
+ }
264
278
  /** Response returned when listing contact points. */
265
279
  export interface ListContactPointsResponse {
266
280
  /** Total count of contact points associated with the default receiver. */
@@ -299,13 +313,6 @@ export interface ListGrafanaUsersResponse {
299
313
  /** Grafana users information. */
300
314
  grafanaUsers: GrafanaUser[];
301
315
  }
302
- /** Response returned when listing data sources. */
303
- export interface ListManagedAlertsResponse {
304
- /** Total count of data sources matching the request. */
305
- totalCount: number;
306
- /** Alerts matching the request within the pagination. */
307
- alerts: Alert[];
308
- }
309
316
  /** Output returned when listing pricing plans. */
310
317
  export interface ListPlansResponse {
311
318
  /** Total count of available pricing plans. */
@@ -491,6 +498,33 @@ export type RegionalApiGetUsageOverviewRequest = {
491
498
  projectId?: string;
492
499
  interval?: string;
493
500
  };
501
+ /** Retrieve a list of alerts. */
502
+ export type RegionalApiListAlertsRequest = {
503
+ /**
504
+ * Region to target. If none is passed will use default region from the
505
+ * config.
506
+ */
507
+ region?: ScwRegion;
508
+ /** Project ID to filter for, only alerts from this Project will be returned. */
509
+ projectId?: string;
510
+ /**
511
+ * True returns only enabled alerts. False returns only disabled alerts. If
512
+ * omitted, no alert filtering is applied. Other filters may still apply.
513
+ */
514
+ isEnabled?: boolean;
515
+ /**
516
+ * True returns only preconfigured alerts. False returns only custom alerts.
517
+ * If omitted, no filtering is applied on alert types. Other filters may still
518
+ * apply.
519
+ */
520
+ isPreconfigured?: boolean;
521
+ /**
522
+ * Valid values to filter on are `disabled`, `enabled`, `pending` and
523
+ * `firing`. If omitted, no filtering is applied on alert states. Other
524
+ * filters may still apply.
525
+ */
526
+ state?: AlertState;
527
+ };
494
528
  /** List contact points. */
495
529
  export type RegionalApiListContactPointsRequest = {
496
530
  /**
@@ -534,25 +568,6 @@ export type RegionalApiListDataSourcesRequest = {
534
568
  */
535
569
  types?: DataSourceType[];
536
570
  };
537
- /** Enable the sending of managed alerts. */
538
- export type RegionalApiListManagedAlertsRequest = {
539
- /**
540
- * Region to target. If none is passed will use default region from the
541
- * config.
542
- */
543
- region?: ScwRegion;
544
- /** Page number to return, from the paginated results. */
545
- page?: number;
546
- /** Number of data sources to return per page. */
547
- pageSize?: number;
548
- /** Sort order for data sources in the response. */
549
- orderBy?: ListManagedAlertsRequestOrderBy;
550
- /**
551
- * Project ID to filter for, only data sources from this Project will be
552
- * returned.
553
- */
554
- projectId?: string;
555
- };
556
571
  /** List tokens. */
557
572
  export type RegionalApiListTokensRequest = {
558
573
  /**
@@ -37,15 +37,6 @@ const RegionalApiListDataSourcesRequest = {
37
37
  lessThanOrEqual: 1e3
38
38
  }
39
39
  };
40
- const RegionalApiListManagedAlertsRequest = {
41
- page: {
42
- greaterThanOrEqual: 1
43
- },
44
- pageSize: {
45
- greaterThanOrEqual: 1,
46
- lessThanOrEqual: 1e3
47
- }
48
- };
49
40
  const RegionalApiListTokensRequest = {
50
41
  page: {
51
42
  greaterThanOrEqual: 1
@@ -72,6 +63,5 @@ exports.RegionalApiCreateDataSourceRequest = RegionalApiCreateDataSourceRequest;
72
63
  exports.RegionalApiCreateTokenRequest = RegionalApiCreateTokenRequest;
73
64
  exports.RegionalApiListContactPointsRequest = RegionalApiListContactPointsRequest;
74
65
  exports.RegionalApiListDataSourcesRequest = RegionalApiListDataSourcesRequest;
75
- exports.RegionalApiListManagedAlertsRequest = RegionalApiListManagedAlertsRequest;
76
66
  exports.RegionalApiListTokensRequest = RegionalApiListTokensRequest;
77
67
  exports.RegionalApiUpdateDataSourceRequest = RegionalApiUpdateDataSourceRequest;
@@ -35,15 +35,6 @@ export declare const RegionalApiListDataSourcesRequest: {
35
35
  lessThanOrEqual: number;
36
36
  };
37
37
  };
38
- export declare const RegionalApiListManagedAlertsRequest: {
39
- page: {
40
- greaterThanOrEqual: number;
41
- };
42
- pageSize: {
43
- greaterThanOrEqual: number;
44
- lessThanOrEqual: number;
45
- };
46
- };
47
38
  export declare const RegionalApiListTokensRequest: {
48
39
  page: {
49
40
  greaterThanOrEqual: number;
@@ -35,15 +35,6 @@ const RegionalApiListDataSourcesRequest = {
35
35
  lessThanOrEqual: 1e3
36
36
  }
37
37
  };
38
- const RegionalApiListManagedAlertsRequest = {
39
- page: {
40
- greaterThanOrEqual: 1
41
- },
42
- pageSize: {
43
- greaterThanOrEqual: 1,
44
- lessThanOrEqual: 1e3
45
- }
46
- };
47
38
  const RegionalApiListTokensRequest = {
48
39
  page: {
49
40
  greaterThanOrEqual: 1
@@ -71,7 +62,6 @@ export {
71
62
  RegionalApiCreateTokenRequest,
72
63
  RegionalApiListContactPointsRequest,
73
64
  RegionalApiListDataSourcesRequest,
74
- RegionalApiListManagedAlertsRequest,
75
65
  RegionalApiListTokensRequest,
76
66
  RegionalApiUpdateDataSourceRequest
77
67
  };
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index_gen = require("./v1alpha1/index.gen.cjs");
4
+ const index_gen$1 = require("./v1beta1/index.gen.cjs");
4
5
  exports.v1alpha1 = index_gen;
6
+ exports.v1beta1 = index_gen$1;
@@ -3,3 +3,4 @@
3
3
  * EDIT HERE
4
4
  */
5
5
  export * as v1alpha1 from './v1alpha1/index.gen.js';
6
+ export * as v1beta1 from './v1beta1/index.gen.js';
@@ -1,4 +1,6 @@
1
1
  import * as index_gen from "./v1alpha1/index.gen.js";
2
+ import * as index_gen$1 from "./v1beta1/index.gen.js";
2
3
  export {
3
- index_gen as v1alpha1
4
+ index_gen as v1alpha1,
5
+ index_gen$1 as v1beta1
4
6
  };