Skip to content

Commit 7cd6ad1

Browse files
authored
Merge branch 'main' into v1.6241.0
2 parents 089817a + 3b966b1 commit 7cd6ad1

File tree

31 files changed

+387
-265
lines changed

31 files changed

+387
-265
lines changed

packages/clients/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.70.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2025-03-17)
7+
8+
### Features
9+
10+
- **account:** add project customization endpoint ([#1919](https://github.com/scaleway/scaleway-sdk-js/issues/1919)) ([c9aa3ed](https://github.com/scaleway/scaleway-sdk-js/commit/c9aa3ed4cc82c23f58fd664b80569bd00ddd8042))
11+
- **cockpit:** update naming OB-276 ([#1912](https://github.com/scaleway/scaleway-sdk-js/issues/1912)) ([3508637](https://github.com/scaleway/scaleway-sdk-js/commit/350863757290b04dc79296aed02194329b477b84))
12+
- **iam:** add status filter to ListUsersRequest ([#1896](https://github.com/scaleway/scaleway-sdk-js/issues/1896)) ([b59e4a0](https://github.com/scaleway/scaleway-sdk-js/commit/b59e4a00277549e041788aba5a9d0b54b7266cd3))
13+
- **iam:** add type filter to ListUsersRequest ([#1908](https://github.com/scaleway/scaleway-sdk-js/issues/1908)) ([f48638f](https://github.com/scaleway/scaleway-sdk-js/commit/f48638f2df92fc0d5691e87424af41ec9803f401))
14+
- **iam:** increase rule condition max len to 1024 characters ([#1898](https://github.com/scaleway/scaleway-sdk-js/issues/1898)) ([5a8f85e](https://github.com/scaleway/scaleway-sdk-js/commit/5a8f85eeb60752a626194c09d610627f0c581377))
15+
- **inference:** add support v1 ([#1900](https://github.com/scaleway/scaleway-sdk-js/issues/1900)) ([e83dc3f](https://github.com/scaleway/scaleway-sdk-js/commit/e83dc3fa6e53f674809fac119d534f79e79ca5af))
16+
- **inference:** add support v1 ([#1906](https://github.com/scaleway/scaleway-sdk-js/issues/1906)) ([a7fd417](https://github.com/scaleway/scaleway-sdk-js/commit/a7fd4179aef11f46373c6ee47cb5154bdce5601c))
17+
- **instance:** add GPU information in ServerType ([#1897](https://github.com/scaleway/scaleway-sdk-js/issues/1897)) ([0a4ad01](https://github.com/scaleway/scaleway-sdk-js/commit/0a4ad01de99b928bc15f1ba7af4e03de8a973291))
18+
- **tem:** generate offers cli ([#1918](https://github.com/scaleway/scaleway-sdk-js/issues/1918)) ([7aae721](https://github.com/scaleway/scaleway-sdk-js/commit/7aae72111c6d97374a0504a969fc899fc9c1a66e))
19+
- **webhosting:** replace domain conf options ([#1909](https://github.com/scaleway/scaleway-sdk-js/issues/1909)) ([db74be4](https://github.com/scaleway/scaleway-sdk-js/commit/db74be4e9a50b3134d588022195d6535289de84d))
20+
21+
### Bug Fixes
22+
23+
- **apple_silicon:** document commitment type values and usage ([#1895](https://github.com/scaleway/scaleway-sdk-js/issues/1895)) ([7eede9b](https://github.com/scaleway/scaleway-sdk-js/commit/7eede9bef4c34dc686b836b69730d7c36bbd0658))
24+
- **iam:** enforce max page value ([#1904](https://github.com/scaleway/scaleway-sdk-js/issues/1904)) ([1b23828](https://github.com/scaleway/scaleway-sdk-js/commit/1b23828f1bcb18182d894f0def09e79412fe865b))
25+
- **iam:** move Connection out of GetUserConnectionResponse ([#1907](https://github.com/scaleway/scaleway-sdk-js/issues/1907)) ([d8bfebb](https://github.com/scaleway/scaleway-sdk-js/commit/d8bfebbb2399a718045df3ca88520dfe82cdd319))
26+
627
## [2.69.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2025-03-10)
728

829
### Features

packages/clients/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scaleway/sdk",
3-
"version": "2.69.0",
3+
"version": "2.70.0",
44
"license": "Apache-2.0",
55
"description": "Scaleway SDK.",
66
"keywords": [

packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
} from '../../../bridge'
1010
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
1111
import {
12-
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES,
13-
SERVER_TRANSIENT_STATUSES,
12+
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON,
13+
SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON,
1414
} from './content.gen'
1515
import {
1616
marshalCreateServerRequest,
@@ -235,7 +235,9 @@ export class API extends ParentAPI {
235235
waitForResource(
236236
options?.stop ??
237237
(res =>
238-
Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
238+
Promise.resolve(
239+
!SERVER_TRANSIENT_STATUSES_APPLESILICON.includes(res.status),
240+
)),
239241
this.getServer,
240242
request,
241243
options,
@@ -377,7 +379,7 @@ export class PrivateNetworkAPI extends ParentAPI {
377379
options?.stop ??
378380
(res =>
379381
Promise.resolve(
380-
!SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES.includes(
382+
!SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON.includes(
381383
res.status,
382384
),
383385
)),

packages/clients/src/api/baremetal/v1/api.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
waitForResource,
99
} from '../../../bridge'
1010
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
11-
import { SERVER_TRANSIENT_STATUSES } from './content.gen'
11+
import { SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_BAREMETAL } from './content.gen'
1212
import {
1313
marshalAddOptionServerRequest,
1414
marshalCreateServerRequest,
@@ -177,7 +177,9 @@ export class API extends ParentAPI {
177177
waitForResource(
178178
options?.stop ??
179179
(res =>
180-
Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
180+
Promise.resolve(
181+
!SERVER_TRANSIENT_STATUSES_BAREMETAL.includes(res.status),
182+
)),
181183
this.getServer,
182184
request,
183185
options,

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ export interface Setting {
610610
enabled: boolean
611611
}
612612

613-
export type AddOptionServerRequest = {
613+
export interface AddOptionServerRequest {
614614
/** Zone to target. If none is passed will use default zone from the config. */
615615
zone?: ScwZone
616616
/** ID of the server. */
@@ -641,7 +641,7 @@ export interface BMCAccess {
641641
expiresAt?: Date
642642
}
643643

644-
export type CreateServerRequest = {
644+
export interface CreateServerRequest {
645645
/** Zone to target. If none is passed will use default zone from the config. */
646646
zone?: ScwZone
647647
/** Offer ID of the new server. */
@@ -675,7 +675,7 @@ export type CreateServerRequest = {
675675
optionIds?: string[]
676676
}
677677

678-
export type DeleteOptionServerRequest = {
678+
export interface DeleteOptionServerRequest {
679679
/** Zone to target. If none is passed will use default zone from the config. */
680680
zone?: ScwZone
681681
/** ID of the server. */
@@ -684,21 +684,21 @@ export type DeleteOptionServerRequest = {
684684
optionId: string
685685
}
686686

687-
export type DeleteServerRequest = {
687+
export interface DeleteServerRequest {
688688
/** Zone to target. If none is passed will use default zone from the config. */
689689
zone?: ScwZone
690690
/** ID of the server to delete. */
691691
serverId: string
692692
}
693693

694-
export type GetBMCAccessRequest = {
694+
export interface GetBMCAccessRequest {
695695
/** Zone to target. If none is passed will use default zone from the config. */
696696
zone?: ScwZone
697697
/** ID of the server. */
698698
serverId: string
699699
}
700700

701-
export type GetDefaultPartitioningSchemaRequest = {
701+
export interface GetDefaultPartitioningSchemaRequest {
702702
/** Zone to target. If none is passed will use default zone from the config. */
703703
zone?: ScwZone
704704
/** ID of the offer. */
@@ -707,28 +707,28 @@ export type GetDefaultPartitioningSchemaRequest = {
707707
osId: string
708708
}
709709

710-
export type GetOSRequest = {
710+
export interface GetOSRequest {
711711
/** Zone to target. If none is passed will use default zone from the config. */
712712
zone?: ScwZone
713713
/** ID of the OS. */
714714
osId: string
715715
}
716716

717-
export type GetOfferRequest = {
717+
export interface GetOfferRequest {
718718
/** Zone to target. If none is passed will use default zone from the config. */
719719
zone?: ScwZone
720720
/** ID of the researched Offer. */
721721
offerId: string
722722
}
723723

724-
export type GetOptionRequest = {
724+
export interface GetOptionRequest {
725725
/** Zone to target. If none is passed will use default zone from the config. */
726726
zone?: ScwZone
727727
/** ID of the option. */
728728
optionId: string
729729
}
730730

731-
export type GetServerMetricsRequest = {
731+
export interface GetServerMetricsRequest {
732732
/** Zone to target. If none is passed will use default zone from the config. */
733733
zone?: ScwZone
734734
/** Server ID to get the metrics. */
@@ -740,14 +740,14 @@ export interface GetServerMetricsResponse {
740740
pings?: TimeSeries
741741
}
742742

743-
export type GetServerRequest = {
743+
export interface GetServerRequest {
744744
/** Zone to target. If none is passed will use default zone from the config. */
745745
zone?: ScwZone
746746
/** ID of the server. */
747747
serverId: string
748748
}
749749

750-
export type InstallServerRequest = {
750+
export interface InstallServerRequest {
751751
/** Zone to target. If none is passed will use default zone from the config. */
752752
zone?: ScwZone
753753
/** Server ID to install. */
@@ -770,7 +770,7 @@ export type InstallServerRequest = {
770770
partitioningSchema?: Schema
771771
}
772772

773-
export type ListOSRequest = {
773+
export interface ListOSRequest {
774774
/** Zone to target. If none is passed will use default zone from the config. */
775775
zone?: ScwZone
776776
/** Page number. */
@@ -788,7 +788,7 @@ export interface ListOSResponse {
788788
os: OS[]
789789
}
790790

791-
export type ListOffersRequest = {
791+
export interface ListOffersRequest {
792792
/** Zone to target. If none is passed will use default zone from the config. */
793793
zone?: ScwZone
794794
/** Page number. */
@@ -808,7 +808,7 @@ export interface ListOffersResponse {
808808
offers: Offer[]
809809
}
810810

811-
export type ListOptionsRequest = {
811+
export interface ListOptionsRequest {
812812
/** Zone to target. If none is passed will use default zone from the config. */
813813
zone?: ScwZone
814814
/** Page number. */
@@ -828,7 +828,7 @@ export interface ListOptionsResponse {
828828
options: Option[]
829829
}
830830

831-
export type ListServerEventsRequest = {
831+
export interface ListServerEventsRequest {
832832
/** Zone to target. If none is passed will use default zone from the config. */
833833
zone?: ScwZone
834834
/** ID of the server events searched. */
@@ -853,7 +853,7 @@ export interface ListServerPrivateNetworksResponse {
853853
totalCount: number
854854
}
855855

856-
export type ListServersRequest = {
856+
export interface ListServersRequest {
857857
/** Zone to target. If none is passed will use default zone from the config. */
858858
zone?: ScwZone
859859
/** Page number. */
@@ -883,7 +883,7 @@ export interface ListServersResponse {
883883
servers: Server[]
884884
}
885885

886-
export type ListSettingsRequest = {
886+
export interface ListSettingsRequest {
887887
/** Zone to target. If none is passed will use default zone from the config. */
888888
zone?: ScwZone
889889
/** Page number. */
@@ -903,14 +903,14 @@ export interface ListSettingsResponse {
903903
settings: Setting[]
904904
}
905905

906-
export type MigrateServerToMonthlyOfferRequest = {
906+
export interface MigrateServerToMonthlyOfferRequest {
907907
/** Zone to target. If none is passed will use default zone from the config. */
908908
zone?: ScwZone
909909
/** ID of the server. */
910910
serverId: string
911911
}
912912

913-
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
913+
export interface PrivateNetworkApiAddServerPrivateNetworkRequest {
914914
/** Zone to target. If none is passed will use default zone from the config. */
915915
zone?: ScwZone
916916
/** The ID of the server. */
@@ -919,7 +919,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
919919
privateNetworkId: string
920920
}
921921

922-
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
922+
export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest {
923923
/** Zone to target. If none is passed will use default zone from the config. */
924924
zone?: ScwZone
925925
/** The ID of the server. */
@@ -928,7 +928,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
928928
privateNetworkId: string
929929
}
930930

931-
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
931+
export interface PrivateNetworkApiListServerPrivateNetworksRequest {
932932
/** Zone to target. If none is passed will use default zone from the config. */
933933
zone?: ScwZone
934934
/** The sort order for the returned Private Networks. */
@@ -947,7 +947,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
947947
projectId?: string
948948
}
949949

950-
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
950+
export interface PrivateNetworkApiSetServerPrivateNetworksRequest {
951951
/** Zone to target. If none is passed will use default zone from the config. */
952952
zone?: ScwZone
953953
/** The ID of the server. */
@@ -956,7 +956,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
956956
privateNetworkIds: string[]
957957
}
958958

959-
export type RebootServerRequest = {
959+
export interface RebootServerRequest {
960960
/** Zone to target. If none is passed will use default zone from the config. */
961961
zone?: ScwZone
962962
/** ID of the server to reboot. */
@@ -969,7 +969,7 @@ export interface SetServerPrivateNetworksResponse {
969969
serverPrivateNetworks: ServerPrivateNetwork[]
970970
}
971971

972-
export type StartBMCAccessRequest = {
972+
export interface StartBMCAccessRequest {
973973
/** Zone to target. If none is passed will use default zone from the config. */
974974
zone?: ScwZone
975975
/** ID of the server. */
@@ -978,7 +978,7 @@ export type StartBMCAccessRequest = {
978978
ip: string
979979
}
980980

981-
export type StartServerRequest = {
981+
export interface StartServerRequest {
982982
/** Zone to target. If none is passed will use default zone from the config. */
983983
zone?: ScwZone
984984
/** ID of the server to start. */
@@ -987,21 +987,21 @@ export type StartServerRequest = {
987987
bootType?: ServerBootType
988988
}
989989

990-
export type StopBMCAccessRequest = {
990+
export interface StopBMCAccessRequest {
991991
/** Zone to target. If none is passed will use default zone from the config. */
992992
zone?: ScwZone
993993
/** ID of the server. */
994994
serverId: string
995995
}
996996

997-
export type StopServerRequest = {
997+
export interface StopServerRequest {
998998
/** Zone to target. If none is passed will use default zone from the config. */
999999
zone?: ScwZone
10001000
/** ID of the server to stop. */
10011001
serverId: string
10021002
}
10031003

1004-
export type UpdateIPRequest = {
1004+
export interface UpdateIPRequest {
10051005
/** Zone to target. If none is passed will use default zone from the config. */
10061006
zone?: ScwZone
10071007
/** ID of the server. */
@@ -1012,7 +1012,7 @@ export type UpdateIPRequest = {
10121012
reverse?: string
10131013
}
10141014

1015-
export type UpdateServerRequest = {
1015+
export interface UpdateServerRequest {
10161016
/** Zone to target. If none is passed will use default zone from the config. */
10171017
zone?: ScwZone
10181018
/** ID of the server to update. */
@@ -1028,7 +1028,7 @@ export type UpdateServerRequest = {
10281028
tags?: string[]
10291029
}
10301030

1031-
export type UpdateSettingRequest = {
1031+
export interface UpdateSettingRequest {
10321032
/** Zone to target. If none is passed will use default zone from the config. */
10331033
zone?: ScwZone
10341034
/** ID of the setting. */
@@ -1037,7 +1037,7 @@ export type UpdateSettingRequest = {
10371037
enabled?: boolean
10381038
}
10391039

1040-
export type ValidatePartitioningSchemaRequest = {
1040+
export interface ValidatePartitioningSchemaRequest {
10411041
/** Zone to target. If none is passed will use default zone from the config. */
10421042
zone?: ScwZone
10431043
/** Partitioning schema. */

packages/clients/src/api/block/v1/api.gen.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
} from '../../../bridge'
1010
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
1111
import {
12-
SNAPSHOT_TRANSIENT_STATUSES,
13-
VOLUME_TRANSIENT_STATUSES,
12+
SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK,
13+
VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK,
1414
} from './content.gen'
1515
import {
1616
marshalCreateSnapshotRequest,
@@ -184,7 +184,9 @@ export class API extends ParentAPI {
184184
waitForResource(
185185
options?.stop ??
186186
(res =>
187-
Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))),
187+
Promise.resolve(
188+
!VOLUME_TRANSIENT_STATUSES_BLOCK.includes(res.status),
189+
)),
188190
this.getVolume,
189191
request,
190192
options,
@@ -290,7 +292,9 @@ export class API extends ParentAPI {
290292
waitForResource(
291293
options?.stop ??
292294
(res =>
293-
Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
295+
Promise.resolve(
296+
!SNAPSHOT_TRANSIENT_STATUSES_BLOCK.includes(res.status),
297+
)),
294298
this.getSnapshot,
295299
request,
296300
options,

0 commit comments

Comments
 (0)