Skip to content

Commit 313f0c0

Browse files
Merge pull request #12161 from linode/staging
Release v1.141.0 - staging → master
2 parents c62c514 + 9a29bdc commit 313f0c0

File tree

487 files changed

+13354
-5992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+13354
-5992
lines changed

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"concurrently": "9.1.0",
99
"husky": "^9.1.6",
1010
"typescript": "^5.7.3",
11-
"vitest": "^3.0.7",
12-
"@vitest/ui": "^3.0.7",
11+
"vitest": "^3.1.2",
12+
"@vitest/ui": "^3.1.2",
1313
"lint-staged": "^15.4.3",
1414
"eslint": "^9.23.0",
1515
"eslint-config-prettier": "^10.1.1",
@@ -26,8 +26,7 @@
2626
"typescript-eslint": "^8.29.0",
2727
"@typescript-eslint/eslint-plugin": "^8.29.0",
2828
"@typescript-eslint/parser": "^8.29.0",
29-
"@linode/eslint-plugin-cloud-manager": "^0.0.10",
30-
"jiti": "^2.4.2"
29+
"@linode/eslint-plugin-cloud-manager": "^0.0.10"
3130
},
3231
"scripts": {
3332
"lint:all": "pnpm -r --parallel lint",
@@ -70,10 +69,8 @@
7069
},
7170
"resolutions": {
7271
"node-fetch": "^2.6.7",
73-
"yaml": "^2.3.0",
7472
"semver": "^7.5.2",
75-
"cookie": "^0.7.0",
76-
"nanoid": "^3.3.8"
73+
"yaml": "^2.3.0"
7774
},
7875
"version": "0.0.0",
7976
"volta": {

packages/api-v4/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [2025-05-06] - v0.139.0
2+
3+
### Upcoming Features:
4+
5+
- Add ipv6 field to VPCInterfaceData and update ConfigInterfaceIPv6 type ([#11942](https://github.com/linode/manager/pull/11942))
6+
- IAM RBAC: Add new types for iam ([#12053](https://github.com/linode/manager/pull/12053))
7+
- CloudPulse: Update types - `CloudPulseMetricsRequest` and `Filters` in `types.ts` ([#12063](https://github.com/linode/manager/pull/12063))
8+
- IAM RBAC: Add new type ([#12092](https://github.com/linode/manager/pull/12092))
9+
- CloudPulse: Update `Widgets` and `CloudPulseMetricsRequest` types ([#12110](https://github.com/linode/manager/pull/12110))
10+
111
## [2025-04-22] - v0.138.0
212

313
### Added:

packages/api-v4/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linode/api-v4",
3-
"version": "0.138.0",
3+
"version": "0.139.0",
44
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
55
"bugs": {
66
"url": "https://github.com/linode/manager/issues"
@@ -69,4 +69,4 @@
6969
"tsc -p tsconfig.json --noEmit true --emitDeclarationOnly false"
7070
]
7171
}
72-
}
72+
}

packages/api-v4/src/cloudpulse/types.ts

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ export interface DateTimeWithPreset {
5656
}
5757

5858
export interface Widgets {
59-
label: string;
60-
metric: string;
6159
aggregate_function: string;
62-
group_by: string;
63-
region_id: number;
64-
namespace_id: number;
60+
chart_type: 'area' | 'line';
6561
color: string;
66-
size: number;
67-
chart_type: 'line' | 'area';
68-
y_label: string;
62+
entity_ids: string[];
6963
filters: Filters[];
70-
serviceType: string;
64+
group_by: string[];
65+
label: string;
66+
metric: string;
67+
namespace_id: number;
68+
region_id: number;
7169
service_type: string;
72-
entity_ids: string[];
73-
time_granularity: TimeGranularity;
70+
serviceType: string;
71+
size: number;
7472
time_duration: TimeDuration;
73+
time_granularity: TimeGranularity;
7574
unit: string;
75+
y_label: string;
7676
}
7777

7878
export interface Filters {
79-
key: string;
79+
dimension_label: string;
8080
operator: string;
8181
value: string;
8282
}
@@ -129,15 +129,19 @@ export interface JWEToken {
129129
token: string;
130130
}
131131

132+
export interface Metric {
133+
aggregate_function: string;
134+
name: string;
135+
}
136+
132137
export interface CloudPulseMetricsRequest {
133-
metric: string;
138+
absolute_time_duration: DateTimeWithPreset | undefined;
139+
entity_ids: number[];
134140
filters?: Filters[];
135-
aggregate_function: string;
136-
group_by: string;
141+
group_by: string[];
142+
metrics: Metric[];
137143
relative_time_duration: TimeDuration | undefined;
138-
absolute_time_duration: DateTimeWithPreset | undefined;
139144
time_granularity: TimeGranularity | undefined;
140-
entity_ids: number[];
141145
}
142146

143147
export interface CloudPulseMetricsResponse {

packages/api-v4/src/iam/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ export type AccountAccessRole =
1818
| 'account_volume_admin'
1919
| 'firewall_creator'
2020
| 'linode_contributor'
21-
| 'linode_creator';
21+
| 'linode_creator'
22+
| 'stackscript_creator';
2223

2324
export type EntityAccessRole =
2425
| 'database_admin'
2526
| 'firewall_admin'
2627
| 'firewall_creator'
28+
| 'image_viewer'
2729
| 'linode_contributor'
2830
| 'linode_creator'
2931
| 'linode_viewer'
32+
| 'stackscript_admin'
33+
| 'stackscript_viewer'
3034
| 'update_firewall';
3135

3236
export interface IamUserPermissions {

packages/api-v4/src/linodes/types.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,23 @@ export type LinodeStatus =
179179
// ----------------------------------------------------------------------
180180
export type InterfacePurpose = 'public' | 'vlan' | 'vpc';
181181

182+
// IPv4
182183
export interface ConfigInterfaceIPv4 {
183184
vpc?: string | null;
184185
nat_1_1?: string | null;
185186
}
186187

188+
export interface IPv6SLAAC {
189+
range: string;
190+
address: string;
191+
}
192+
187193
export interface ConfigInterfaceIPv6 {
188-
vpc?: string | null;
194+
slaac: IPv6SLAAC[];
195+
ranges: {
196+
range?: string;
197+
}[];
198+
is_public: boolean;
189199
}
190200

191201
// The legacy interface type - for Configuration Profile Interfaces
@@ -286,17 +296,26 @@ export interface LinodeInterfaces {
286296
interfaces: LinodeInterface[];
287297
}
288298

299+
export interface LinodeInterfaceIPv6 {
300+
slaac: IPv6SLAAC[];
301+
ranges: {
302+
range: string;
303+
}[];
304+
is_public: boolean;
305+
}
306+
289307
export interface VPCInterfaceData {
290308
vpc_id: number;
291309
subnet_id: number;
292-
ipv4: {
310+
ipv4?: {
293311
addresses: {
294312
address: string;
295313
primary: boolean;
296314
nat_1_1_address?: string;
297315
}[];
298316
ranges: { range: string }[];
299317
};
318+
ipv6?: LinodeInterfaceIPv6;
300319
}
301320

302321
export interface PublicInterfaceData {

0 commit comments

Comments
 (0)