Skip to content

Commit 75022d8

Browse files
authored
Merge pull request #12849 from linode/staging
Release v1.150.0 - staging → master
2 parents ee33f51 + d2d684a commit 75022d8

File tree

341 files changed

+9429
-2670
lines changed

Some content is hidden

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

341 files changed

+9429
-2670
lines changed

packages/api-v4/CHANGELOG.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
1-
## [2025-08-26] - v0.147.0
1+
## [2025-09-09] - v0.148.0
2+
3+
### Added:
4+
5+
- Support for Node Pool `label` field ([#12710](https://github.com/linode/manager/pull/12710))
6+
- Volumes IAM RBAC permissions ([#12744](https://github.com/linode/manager/pull/12744))
7+
- NodeBalancers IAM RBAC permissions ([#12780](https://github.com/linode/manager/pull/12780))
8+
- Additional device slots to `Devices` type to match new API limits ([#12791](https://github.com/linode/manager/pull/12791))
9+
10+
### Changed:
11+
12+
- Use `v4beta` API endpoint for `updateNodePool` ([#12710](https://github.com/linode/manager/pull/12710))
13+
- Update `CreateNodePoolData` to satisfy @linode/validation's `CreateNodePoolSchema`'s type ([#12793](https://github.com/linode/manager/pull/12793))
14+
15+
### Fixed:
216

17+
- Wrong import path for EntityType ([#12764](https://github.com/linode/manager/pull/12764))
18+
19+
### Upcoming Features:
20+
21+
- Add DELETE, PUT API endpoints for Streams ([#12645](https://github.com/linode/manager/pull/12645))
22+
- ACLP Alert: Add `regions` property in `CreateAlertDefinitionPayload` and `EditAlertDefinitionPayload` ([#12745](https://github.com/linode/manager/pull/12745))
23+
- Add DELETE, PUT API endpoints for Destinations ([#12749](https://github.com/linode/manager/pull/12749))
24+
25+
## [2025-08-26] - v0.147.0
326

427
### Added:
528

6-
- ACLP: `CloudPulseServiceType` type for type safety across cloudpulse ([#12646](https://github.com/linode/manager/pull/12646))
29+
- ACLP: `CloudPulseServiceType` type for type safety across cloudpulse ([#12646](https://github.com/linode/manager/pull/12646))
730

831
### Changed:
932

@@ -18,12 +41,11 @@
1841

1942
- API endpoint for Datastream - Create Destination ([#12627](https://github.com/linode/manager/pull/12627))
2043
- Updated AccontMaintenance interface to make time fields nullable to match API ([#12665](https://github.com/linode/manager/pull/12665))
21-
- Update `KubernetesCluster` `vpc_id` and `subnet_id` types to include `null` ([#12700](https://github.com/linode/manager/pull/12700))
44+
- Update `KubernetesCluster` `vpc_id` and `subnet_id` types to include `null` ([#12700](https://github.com/linode/manager/pull/12700))
2245
- CloudPulse: Update cloud pulse metrics request payload type at `types.ts` ([#12704](https://github.com/linode/manager/pull/12704))
2346

2447
## [2025-08-12] - v0.146.0
2548

26-
2749
### Added:
2850

2951
- ACLP: `string` type for `capabilityServiceTypeMapping` constant ([#12573](https://github.com/linode/manager/pull/12573))
@@ -51,7 +73,6 @@
5173

5274
## [2025-07-29] - v0.145.0
5375

54-
5576
### Added:
5677

5778
- `VPC Dual Stack` and `VPC IPv6 Large Prefixes` to account capabilities ([#12309](https://github.com/linode/manager/pull/12309))
@@ -69,14 +90,13 @@
6990
### Upcoming Features:
7091

7192
- CloudPulse: Update service type in `types.ts` ([#12508](https://github.com/linode/manager/pull/12508))
72-
- ACLP-Alerting: Add nodebalancer to AlertServiceType for Alerts onboarding ([#12510](https://github.com/linode/manager/pull/12510))
93+
- ACLP-Alerting: Add nodebalancer to AlertServiceType for Alerts onboarding ([#12510](https://github.com/linode/manager/pull/12510))
7394
- Add vpc_id and subnet_id to KubernetesCluster payload type ([#12513](https://github.com/linode/manager/pull/12513))
7495
- Add API endpoints (GET, POST) for Streams ([#12524](https://github.com/linode/manager/pull/12524))
7596
- ACLP-Alerting: Add firewall to AlertServiceType for Alerts onboarding ([#12550](https://github.com/linode/manager/pull/12550))
7697

7798
## [2025-07-15] - v0.144.0
7899

79-
80100
### Changed:
81101

82102
- ACLP:Alerting - fixed the typo from evaluation_periods_seconds to evaluation_period_seconds ([#12466](https://github.com/linode/manager/pull/12466))
@@ -96,7 +116,7 @@
96116

97117
### Changed:
98118

99-
- Allow `authorized_keys` to be null in `Profile` type ([#12390](https://github.com/linode/manager/pull/12390))
119+
- Allow `authorized_keys` to be null in `Profile` type ([#12390](https://github.com/linode/manager/pull/12390))
100120

101121
### Removed:
102122

@@ -114,7 +134,6 @@
114134

115135
## [2025-06-17] - v0.142.0
116136

117-
118137
### Added:
119138

120139
- `has_user_data` to `Linode` type ([#12352](https://github.com/linode/manager/pull/12352))

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.147.0",
3+
"version": "0.148.0",
44
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
55
"bugs": {
66
"url": "https://github.com/linode/manager/issues"
@@ -70,4 +70,4 @@
7070
"tsc -p tsconfig.json --noEmit true --emitDeclarationOnly false"
7171
]
7272
}
73-
}
73+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ export const EventActionKeys = [
344344
'database_migrate',
345345
'database_upgrade',
346346
'destination_create',
347+
'destination_delete',
348+
'destination_update',
347349
'disk_create',
348350
'disk_delete',
349351
'disk_duplicate',
@@ -470,6 +472,8 @@ export const EventActionKeys = [
470472
'stackscript_revise',
471473
'stackscript_update',
472474
'stream_create',
475+
'stream_delete',
476+
'stream_update',
473477
'subnet_create',
474478
'subnet_delete',
475479
'subnet_update',

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export interface CreateAlertDefinitionPayload {
196196
description?: string;
197197
entity_ids?: string[];
198198
label: string;
199+
regions?: string[];
199200
rule_criteria: {
200201
rules: MetricCriteria[];
201202
};
@@ -337,10 +338,10 @@ export interface EditAlertDefinitionPayload {
337338
description?: string;
338339
entity_ids?: string[];
339340
label?: string;
341+
regions?: string[];
340342
rule_criteria?: {
341343
rules: MetricCriteria[];
342344
};
343-
scope?: AlertDefinitionScope;
344345
severity?: AlertSeverityType;
345346
status?: AlertStatusType;
346347
tags?: string[];

packages/api-v4/src/datastream/destinations.ts

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createDestinationSchema } from '@linode/validation';
1+
import { destinationSchema } from '@linode/validation';
22

33
import { BETA_API_ROOT } from '../constants';
44
import Request, {
@@ -10,7 +10,11 @@ import Request, {
1010
} from '../request';
1111

1212
import type { Filter, ResourcePage as Page, Params } from '../types';
13-
import type { CreateDestinationPayload, Destination } from './types';
13+
import type {
14+
CreateDestinationPayload,
15+
Destination,
16+
UpdateDestinationPayload,
17+
} from './types';
1418

1519
/**
1620
* Returns all the information about a specified Destination.
@@ -45,7 +49,38 @@ export const getDestinations = (params?: Params, filter?: Filter) =>
4549
*/
4650
export const createDestination = (data: CreateDestinationPayload) =>
4751
Request<Destination>(
48-
setData(data, createDestinationSchema),
52+
setData(data, destinationSchema),
4953
setURL(`${BETA_API_ROOT}/monitor/streams/destinations`),
5054
setMethod('POST'),
5155
);
56+
57+
/**
58+
* Updates a Destination.
59+
*
60+
* @param destinationId { number } The ID of the Destination.
61+
* @param data { object } Options for type, label, etc.
62+
*/
63+
export const updateDestination = (
64+
destinationId: number,
65+
data: UpdateDestinationPayload,
66+
) =>
67+
Request<Destination>(
68+
setData(data, destinationSchema),
69+
setURL(
70+
`${BETA_API_ROOT}/monitor/streams/destinations/${encodeURIComponent(destinationId)}`,
71+
),
72+
setMethod('PUT'),
73+
);
74+
75+
/**
76+
* Deletes a Destination.
77+
*
78+
* @param destinationId { number } The ID of the Destination.
79+
*/
80+
export const deleteDestination = (destinationId: number) =>
81+
Request<{}>(
82+
setURL(
83+
`${BETA_API_ROOT}/monitor/streams/destinations/${encodeURIComponent(destinationId)}`,
84+
),
85+
setMethod('DELETE'),
86+
);

packages/api-v4/src/datastream/streams.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createStreamSchema } from '@linode/validation';
1+
import { createStreamSchema, updateStreamSchema } from '@linode/validation';
22

33
import { BETA_API_ROOT } from '../constants';
44
import Request, {
@@ -10,7 +10,7 @@ import Request, {
1010
} from '../request';
1111

1212
import type { Filter, ResourcePage as Page, Params } from '../types';
13-
import type { CreateStreamPayload, Stream } from './types';
13+
import type { CreateStreamPayload, Stream, UpdateStreamPayload } from './types';
1414

1515
/**
1616
* Returns all the information about a specified Stream.
@@ -47,3 +47,27 @@ export const createStream = (data: CreateStreamPayload) =>
4747
setURL(`${BETA_API_ROOT}/monitor/streams`),
4848
setMethod('POST'),
4949
);
50+
51+
/**
52+
* Updates a Stream.
53+
*
54+
* @param streamId { number } The ID of the Stream.
55+
* @param data { object } Options for type, status, etc.
56+
*/
57+
export const updateStream = (streamId: number, data: UpdateStreamPayload) =>
58+
Request<Stream>(
59+
setData(data, updateStreamSchema),
60+
setURL(`${BETA_API_ROOT}/monitor/streams/${encodeURIComponent(streamId)}`),
61+
setMethod('PUT'),
62+
);
63+
64+
/**
65+
* Deletes a Stream.
66+
*
67+
* @param streamId { number } The ID of the Stream.
68+
*/
69+
export const deleteStream = (streamId: number) =>
70+
Request<{}>(
71+
setURL(`${BETA_API_ROOT}/monitor/streams/${encodeURIComponent(streamId)}`),
72+
setMethod('DELETE'),
73+
);

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,33 @@ interface CustomHeader {
103103

104104
export interface CreateStreamPayload {
105105
destinations: number[];
106-
details?: StreamDetails;
106+
details: StreamDetails;
107107
label: string;
108108
status?: StreamStatus;
109109
type: StreamType;
110110
}
111111

112+
export interface UpdateStreamPayload {
113+
destinations: number[];
114+
details: StreamDetails;
115+
label: string;
116+
status: StreamStatus;
117+
type: StreamType;
118+
}
119+
120+
export interface UpdateStreamPayloadWithId extends UpdateStreamPayload {
121+
id: number;
122+
}
123+
112124
export interface CreateDestinationPayload {
113125
details: CustomHTTPsDetails | LinodeObjectStorageDetails;
114126
label: string;
115127
type: DestinationType;
116128
}
129+
130+
export type UpdateDestinationPayload = CreateDestinationPayload;
131+
132+
export interface UpdateDestinationPayloadWithId
133+
extends UpdateDestinationPayload {
134+
id: number;
135+
}

0 commit comments

Comments
 (0)