Skip to content

Commit b7906f0

Browse files
authored
Merge branch 'main' into manual_1741963853
2 parents 5b11bec + 3b966b1 commit b7906f0

File tree

31 files changed

+383
-267
lines changed

31 files changed

+383
-267
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
@@ -611,7 +611,7 @@ export interface Setting {
611611
enabled: boolean
612612
}
613613

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

1041-
export type ValidatePartitioningSchemaRequest = {
1041+
export interface ValidatePartitioningSchemaRequest {
10421042
/** Zone to target. If none is passed will use default zone from the config. */
10431043
zone?: ScwZone
10441044
/** 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)