Skip to content

Commit a58fb52

Browse files
authored
Merge branch 'main' into v1.7453.0
2 parents 3652ed6 + 1a8d93d commit a58fb52

File tree

6 files changed

+284
-184
lines changed

6 files changed

+284
-184
lines changed

packages_generated/domain/src/v2beta1/api.gen.ts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import {
44
API as ParentAPI,
55
enrichForPagination,
6+
unmarshalServiceInfo,
67
urlParams,
78
validatePathParam,
89
waitForResource,
910
} from '@scaleway/sdk-client'
10-
import type { WaitForOptions, } from '@scaleway/sdk-client'
11+
import type { ServiceInfo, WaitForOptions, } from '@scaleway/sdk-client'
1112
import {DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_DOMAIN,SSL_CERTIFICATE_TRANSIENT_STATUSES as SSL_CERTIFICATE_TRANSIENT_STATUSES_DOMAIN,} from './content.gen.js'
1213
import {
1314
unmarshalCheckContactsCompatibilityResponse,
@@ -61,6 +62,7 @@ import {
6162
unmarshalRestoreDNSZoneVersionResponse,
6263
unmarshalRetryInboundTransferResponse,
6364
unmarshalSSLCertificate,
65+
unmarshalSearchAvailableDomainsConsoleResponse,
6466
unmarshalSearchAvailableDomainsResponse,
6567
marshalUpdateDNSZoneNameserversRequest,
6668
unmarshalUpdateDNSZoneNameserversResponse,
@@ -153,7 +155,9 @@ import type {
153155
RestoreDNSZoneVersionResponse,
154156
RetryInboundTransferResponse,
155157
SSLCertificate,
158+
SearchAvailableDomainsConsoleResponse,
156159
SearchAvailableDomainsResponse,
160+
UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest,
157161
UpdateDNSZoneNameserversRequest,
158162
UpdateDNSZoneNameserversResponse,
159163
UpdateDNSZoneRecordsRequest,
@@ -1341,3 +1345,34 @@ If the TLD list is empty or not set, the search returns the results from the mos
13411345

13421346
}
13431347

1348+
/**
1349+
* Unauthenticated Domain search API.
1350+
*/
1351+
export class UnauthenticatedRegistrarAPI extends ParentAPI {
1352+
getServiceInfo = () =>
1353+
this.client.fetch<ServiceInfo>(
1354+
{
1355+
method: 'GET',
1356+
path: `/domain/v2beta1/search`,
1357+
},
1358+
unmarshalServiceInfo,
1359+
)
1360+
1361+
1362+
searchAvailableDomainsConsole = (request: Readonly<UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest>) =>
1363+
this.client.fetch<SearchAvailableDomainsConsoleResponse>(
1364+
{
1365+
method: 'GET',
1366+
path: `/domain/v2beta1/search-domains-console`,
1367+
urlParams: urlParams(
1368+
['domain', request.domain],
1369+
['strict_search', request.strictSearch],
1370+
['tlds', request.tlds],
1371+
),
1372+
},
1373+
unmarshalSearchAvailableDomainsConsoleResponse,
1374+
)
1375+
1376+
1377+
}
1378+

packages_generated/domain/src/v2beta1/index.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export {
44
API,
55
RegistrarAPI,
6+
UnauthenticatedRegistrarAPI,
67
} from './api.gen.js'
78
export * from './content.gen.js'
89
export * from './marshalling.gen.js'
@@ -23,6 +24,7 @@ export type {
2324
ContactExtensionFRIndividualInfo,
2425
ContactExtensionFRMode,
2526
ContactExtensionFRTrademarkInfo,
27+
ContactExtensionIT,
2628
ContactExtensionNL,
2729
ContactExtensionNLLegalForm,
2830
ContactLegalForm,
@@ -160,13 +162,15 @@ export type {
160162
RetryInboundTransferResponse,
161163
SSLCertificate,
162164
SSLCertificateStatus,
165+
SearchAvailableDomainsConsoleResponse,
163166
SearchAvailableDomainsResponse,
164167
Task,
165168
TaskStatus,
166169
TaskType,
167170
Tld,
168171
TldOffer,
169172
TransferInDomainRequestTransferRequest,
173+
UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest,
170174
UpdateContactRequestQuestion,
171175
UpdateDNSZoneNameserversRequest,
172176
UpdateDNSZoneNameserversResponse,

packages_generated/domain/src/v2beta1/marshalling.gen.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
ContactExtensionFRTrademarkInfo,
1010
ContactExtensionEU,
1111
ContactExtensionFR,
12+
ContactExtensionIT,
1213
ContactExtensionNL,
1314
ContactQuestion,
1415
Contact,
@@ -76,6 +77,7 @@ import type {
7677
RestoreDNSZoneVersionResponse,
7778
RetryInboundTransferResponse,
7879
AvailableDomain,
80+
SearchAvailableDomainsConsoleResponse,
7981
SearchAvailableDomainsResponse,
8082
UpdateDNSZoneNameserversResponse,
8183
UpdateDNSZoneRecordsResponse,
@@ -200,6 +202,19 @@ const unmarshalContactExtensionFR = (data: unknown): ContactExtensionFR => {
200202
} as ContactExtensionFR
201203
}
202204

205+
const unmarshalContactExtensionIT = (data: unknown): ContactExtensionIT => {
206+
if (!isJSONObject(data)) {
207+
throw new TypeError(
208+
`Unmarshalling the type 'ContactExtensionIT' failed as data isn't a dictionary.`,
209+
)
210+
}
211+
212+
return {
213+
europeanCitizenship: data.european_citizenship,
214+
taxCode: data.tax_code,
215+
} as ContactExtensionIT
216+
}
217+
203218
const unmarshalContactExtensionNL = (data: unknown): ContactExtensionNL => {
204219
if (!isJSONObject(data)) {
205220
throw new TypeError(
@@ -245,6 +260,7 @@ export const unmarshalContact = (data: unknown): Contact => {
245260
emailStatus: data.email_status,
246261
extensionEu: data.extension_eu ? unmarshalContactExtensionEU(data.extension_eu) : undefined,
247262
extensionFr: data.extension_fr ? unmarshalContactExtensionFR(data.extension_fr) : undefined,
263+
extensionIt: data.extension_it ? unmarshalContactExtensionIT(data.extension_it) : undefined,
248264
extensionNl: data.extension_nl ? unmarshalContactExtensionNL(data.extension_nl) : undefined,
249265
faxNumber: data.fax_number,
250266
firstname: data.firstname,
@@ -1177,6 +1193,19 @@ const unmarshalAvailableDomain = (data: unknown): AvailableDomain => {
11771193
} as AvailableDomain
11781194
}
11791195

1196+
export const unmarshalSearchAvailableDomainsConsoleResponse = (data: unknown): SearchAvailableDomainsConsoleResponse => {
1197+
if (!isJSONObject(data)) {
1198+
throw new TypeError(
1199+
`Unmarshalling the type 'SearchAvailableDomainsConsoleResponse' failed as data isn't a dictionary.`,
1200+
)
1201+
}
1202+
1203+
return {
1204+
availableDomains: unmarshalArrayOfObject(data.available_domains, unmarshalAvailableDomain),
1205+
exactMatchDomain: data.exact_match_domain ? unmarshalAvailableDomain(data.exact_match_domain) : undefined,
1206+
} as SearchAvailableDomainsConsoleResponse
1207+
}
1208+
11801209
export const unmarshalSearchAvailableDomainsResponse = (data: unknown): SearchAvailableDomainsResponse => {
11811210
if (!isJSONObject(data)) {
11821211
throw new TypeError(
@@ -1382,6 +1411,14 @@ const marshalContactExtensionFR = (
13821411
]),
13831412
})
13841413

1414+
const marshalContactExtensionIT = (
1415+
request: ContactExtensionIT,
1416+
defaults: DefaultValues,
1417+
): Record<string, unknown> => ({
1418+
european_citizenship: request.europeanCitizenship,
1419+
tax_code: request.taxCode,
1420+
})
1421+
13851422
const marshalContactExtensionNL = (
13861423
request: ContactExtensionNL,
13871424
defaults: DefaultValues,
@@ -1412,6 +1449,7 @@ const marshalNewContact = (
14121449
email_alt: request.emailAlt,
14131450
extension_eu: ((request.extensionEu !== undefined) ? marshalContactExtensionEU(request.extensionEu, defaults): undefined),
14141451
extension_fr: ((request.extensionFr !== undefined) ? marshalContactExtensionFR(request.extensionFr, defaults): undefined),
1452+
extension_it: ((request.extensionIt !== undefined) ? marshalContactExtensionIT(request.extensionIt, defaults): undefined),
14151453
extension_nl: ((request.extensionNl !== undefined) ? marshalContactExtensionNL(request.extensionNl, defaults): undefined),
14161454
fax_number: request.faxNumber,
14171455
firstname: request.firstname,
@@ -1653,6 +1691,7 @@ export const marshalRegistrarApiUpdateContactRequest = (
16531691
email_alt: request.emailAlt,
16541692
extension_eu: ((request.extensionEu !== undefined) ? marshalContactExtensionEU(request.extensionEu, defaults): undefined),
16551693
extension_fr: ((request.extensionFr !== undefined) ? marshalContactExtensionFR(request.extensionFr, defaults): undefined),
1694+
extension_it: ((request.extensionIt !== undefined) ? marshalContactExtensionIT(request.extensionIt, defaults): undefined),
16561695
extension_nl: ((request.extensionNl !== undefined) ? marshalContactExtensionNL(request.extensionNl, defaults): undefined),
16571696
fax_number: request.faxNumber,
16581697
lang: request.lang,

packages_generated/domain/src/v2beta1/types.gen.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,12 @@ export interface ContactExtensionFR {
415415
}
416416

417417

418+
export interface ContactExtensionIT {
419+
europeanCitizenship: string
420+
taxCode: string
421+
}
422+
423+
418424
export interface ContactExtensionNL {
419425
legalForm: ContactExtensionNLLegalForm
420426
legalFormRegistrationNumber: string
@@ -525,6 +531,7 @@ export interface Contact {
525531
state: string
526532
extensionNl?: ContactExtensionNL
527533
status: ContactStatus
534+
extensionIt?: ContactExtensionIT
528535
}
529536

530537

@@ -585,6 +592,7 @@ export interface NewContact {
585592
whoisOptIn: boolean
586593
state?: string
587594
extensionNl?: ContactExtensionNL
595+
extensionIt?: ContactExtensionIT
588596
}
589597

590598

@@ -1715,6 +1723,7 @@ export type RegistrarApiUpdateContactRequest = {
17151723
whoisOptIn?: boolean
17161724
state?: string
17171725
extensionNl?: ContactExtensionNL
1726+
extensionIt?: ContactExtensionIT
17181727
}
17191728

17201729

@@ -1775,6 +1784,12 @@ export interface RetryInboundTransferResponse {
17751784
}
17761785

17771786

1787+
export interface SearchAvailableDomainsConsoleResponse {
1788+
exactMatchDomain?: AvailableDomain
1789+
availableDomains: AvailableDomain[]
1790+
}
1791+
1792+
17781793
export interface SearchAvailableDomainsResponse {
17791794
/**
17801795
* Array of available domains.
@@ -1783,6 +1798,13 @@ export interface SearchAvailableDomainsResponse {
17831798
}
17841799

17851800

1801+
export type UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest = {
1802+
domain: string
1803+
tlds?: string[]
1804+
strictSearch: boolean
1805+
}
1806+
1807+
17861808
export type UpdateDNSZoneNameserversRequest = {
17871809
/**
17881810
* DNS zone in which to update the DNS zone name servers.

packages_generated/k8s/src/v1/marshalling.gen.ts

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import randomName from '@scaleway/random-name'
44
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, } from '@scaleway/sdk-client'
55
import type { DefaultValues } from '@scaleway/sdk-client'
66
import type {
7-
PoolUpgradePolicy,
8-
Pool,
97
Version,
108
MaintenanceWindow,
119
ClusterAutoUpgrade,
1210
ClusterAutoscalerConfig,
1311
ClusterOpenIDConnectConfig,
1412
Cluster,
1513
Node,
14+
PoolUpgradePolicy,
15+
Pool,
1616
ACLRule,
1717
AddClusterACLRulesResponse,
1818
ExternalNodeCoreV1Taint,
@@ -53,55 +53,6 @@ import type {
5353
UpgradePoolRequest,
5454
} from './types.gen.js'
5555

56-
const unmarshalPoolUpgradePolicy = (data: unknown): PoolUpgradePolicy => {
57-
if (!isJSONObject(data)) {
58-
throw new TypeError(
59-
`Unmarshalling the type 'PoolUpgradePolicy' failed as data isn't a dictionary.`,
60-
)
61-
}
62-
63-
return {
64-
maxSurge: data.max_surge,
65-
maxUnavailable: data.max_unavailable,
66-
} as PoolUpgradePolicy
67-
}
68-
69-
export const unmarshalPool = (data: unknown): Pool => {
70-
if (!isJSONObject(data)) {
71-
throw new TypeError(
72-
`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`,
73-
)
74-
}
75-
76-
return {
77-
autohealing: data.autohealing,
78-
autoscaling: data.autoscaling,
79-
clusterId: data.cluster_id,
80-
containerRuntime: data.container_runtime,
81-
createdAt: unmarshalDate(data.created_at),
82-
id: data.id,
83-
kubeletArgs: data.kubelet_args,
84-
maxSize: data.max_size,
85-
minSize: data.min_size,
86-
name: data.name,
87-
newImagesEnabled: data.new_images_enabled,
88-
nodeType: data.node_type,
89-
placementGroupId: data.placement_group_id,
90-
publicIpDisabled: data.public_ip_disabled,
91-
region: data.region,
92-
rootVolumeSize: data.root_volume_size,
93-
rootVolumeType: data.root_volume_type,
94-
securityGroupId: data.security_group_id,
95-
size: data.size,
96-
status: data.status,
97-
tags: data.tags,
98-
updatedAt: unmarshalDate(data.updated_at),
99-
upgradePolicy: data.upgrade_policy ? unmarshalPoolUpgradePolicy(data.upgrade_policy) : undefined,
100-
version: data.version,
101-
zone: data.zone,
102-
} as Pool
103-
}
104-
10556
export const unmarshalVersion = (data: unknown): Version => {
10657
if (!isJSONObject(data)) {
10758
throw new TypeError(
@@ -254,6 +205,55 @@ export const unmarshalNode = (data: unknown): Node => {
254205
} as Node
255206
}
256207

208+
const unmarshalPoolUpgradePolicy = (data: unknown): PoolUpgradePolicy => {
209+
if (!isJSONObject(data)) {
210+
throw new TypeError(
211+
`Unmarshalling the type 'PoolUpgradePolicy' failed as data isn't a dictionary.`,
212+
)
213+
}
214+
215+
return {
216+
maxSurge: data.max_surge,
217+
maxUnavailable: data.max_unavailable,
218+
} as PoolUpgradePolicy
219+
}
220+
221+
export const unmarshalPool = (data: unknown): Pool => {
222+
if (!isJSONObject(data)) {
223+
throw new TypeError(
224+
`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`,
225+
)
226+
}
227+
228+
return {
229+
autohealing: data.autohealing,
230+
autoscaling: data.autoscaling,
231+
clusterId: data.cluster_id,
232+
containerRuntime: data.container_runtime,
233+
createdAt: unmarshalDate(data.created_at),
234+
id: data.id,
235+
kubeletArgs: data.kubelet_args,
236+
maxSize: data.max_size,
237+
minSize: data.min_size,
238+
name: data.name,
239+
newImagesEnabled: data.new_images_enabled,
240+
nodeType: data.node_type,
241+
placementGroupId: data.placement_group_id,
242+
publicIpDisabled: data.public_ip_disabled,
243+
region: data.region,
244+
rootVolumeSize: data.root_volume_size,
245+
rootVolumeType: data.root_volume_type,
246+
securityGroupId: data.security_group_id,
247+
size: data.size,
248+
status: data.status,
249+
tags: data.tags,
250+
updatedAt: unmarshalDate(data.updated_at),
251+
upgradePolicy: data.upgrade_policy ? unmarshalPoolUpgradePolicy(data.upgrade_policy) : undefined,
252+
version: data.version,
253+
zone: data.zone,
254+
} as Pool
255+
}
256+
257257
const unmarshalACLRule = (data: unknown): ACLRule => {
258258
if (!isJSONObject(data)) {
259259
throw new TypeError(

0 commit comments

Comments
 (0)