From 7280ce028992c70384ccdb778a9f5deeaf0ea50c Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 4 Sep 2025 15:47:00 +0000 Subject: [PATCH] feat: update generated APIs --- .../domain/src/v2beta1/api.gen.ts | 40 ++++++++++++ .../domain/src/v2beta1/index.gen.ts | 4 ++ .../domain/src/v2beta1/marshalling.gen.ts | 39 ++++++++++++ .../domain/src/v2beta1/types.gen.ts | 61 +++++++++++++++++++ .../iam/src/v1alpha1/index.gen.ts | 10 +-- 5 files changed, 149 insertions(+), 5 deletions(-) diff --git a/packages_generated/domain/src/v2beta1/api.gen.ts b/packages_generated/domain/src/v2beta1/api.gen.ts index cebec853a..1dcd9a06a 100644 --- a/packages_generated/domain/src/v2beta1/api.gen.ts +++ b/packages_generated/domain/src/v2beta1/api.gen.ts @@ -56,6 +56,7 @@ import { unmarshalListDNSZoneVersionsResponse, unmarshalListDomainHostsResponse, unmarshalListDomainsResponse, + unmarshalListInboundTransfersResponse, unmarshalListRenewableDomainsResponse, unmarshalListSSLCertificatesResponse, unmarshalListTasksResponse, @@ -110,6 +111,7 @@ import type { ListDNSZoneVersionsResponse, ListDomainHostsResponse, ListDomainsResponse, + ListInboundTransfersResponse, ListRenewableDomainsResponse, ListSSLCertificatesRequest, ListSSLCertificatesResponse, @@ -134,6 +136,7 @@ import type { RegistrarApiListContactsRequest, RegistrarApiListDomainHostsRequest, RegistrarApiListDomainsRequest, + RegistrarApiListInboundTransfersRequest, RegistrarApiListRenewableDomainsRequest, RegistrarApiListTasksRequest, RegistrarApiListTldsRequest, @@ -724,6 +727,43 @@ You can filter the list of tasks by domain name. listTasks = (request: Readonly = {}) => enrichForPagination('tasks', this.pageOfListTasks, request) + protected pageOfListInboundTransfers = ( + request: Readonly, + ) => + this.client.fetch( + { + method: 'GET', + path: `/domain/v2beta1/inbound-transfers`, + urlParams: urlParams( + ['domain', request.domain], + [ + 'organization_id', + request.organizationId ?? + this.client.settings.defaultOrganizationId, + ], + ['page', request.page], + [ + 'page_size', + request.pageSize ?? this.client.settings.defaultPageSize, + ], + [ + 'project_id', + request.projectId ?? this.client.settings.defaultProjectId, + ], + ), + }, + unmarshalListInboundTransfersResponse, + ) + + listInboundTransfers = ( + request: Readonly, + ) => + enrichForPagination( + 'inboundTransfers', + this.pageOfListInboundTransfers, + request, + ) + /** * Purchase domains. Request the registration of domain names. You can provide a domain's already existing contact or a new contact. diff --git a/packages_generated/domain/src/v2beta1/index.gen.ts b/packages_generated/domain/src/v2beta1/index.gen.ts index 8f6a86224..8d01f0a51 100644 --- a/packages_generated/domain/src/v2beta1/index.gen.ts +++ b/packages_generated/domain/src/v2beta1/index.gen.ts @@ -81,6 +81,8 @@ export type { ImportRawDNSZoneRequestBindSource, ImportRawDNSZoneRequestTsigKey, ImportRawDNSZoneResponse, + InboundTransfer, + InboundTransferStatus, LinkedProduct, ListContactsRequestRole, ListContactsResponse, @@ -99,6 +101,7 @@ export type { ListDomainHostsResponse, ListDomainsRequestOrderBy, ListDomainsResponse, + ListInboundTransfersResponse, ListRenewableDomainsRequestOrderBy, ListRenewableDomainsResponse, ListSSLCertificatesRequest, @@ -135,6 +138,7 @@ export type { RegistrarApiListContactsRequest, RegistrarApiListDomainHostsRequest, RegistrarApiListDomainsRequest, + RegistrarApiListInboundTransfersRequest, RegistrarApiListRenewableDomainsRequest, RegistrarApiListTasksRequest, RegistrarApiListTldsRequest, diff --git a/packages_generated/domain/src/v2beta1/marshalling.gen.ts b/packages_generated/domain/src/v2beta1/marshalling.gen.ts index b8081ff31..febddbb10 100644 --- a/packages_generated/domain/src/v2beta1/marshalling.gen.ts +++ b/packages_generated/domain/src/v2beta1/marshalling.gen.ts @@ -63,6 +63,7 @@ import type { ImportRawDNSZoneRequestBindSource, ImportRawDNSZoneRequestTsigKey, ImportRawDNSZoneResponse, + InboundTransfer, ListContactsResponse, ListDNSZoneNameserversResponse, ListDNSZoneRecordsResponse, @@ -71,6 +72,7 @@ import type { ListDNSZoneVersionsResponse, ListDomainHostsResponse, ListDomainsResponse, + ListInboundTransfersResponse, ListRenewableDomainsResponse, ListSSLCertificatesResponse, ListTasksResponse, @@ -1114,6 +1116,43 @@ export const unmarshalListDomainsResponse = ( } as ListDomainsResponse } +const unmarshalInboundTransfer = (data: unknown): InboundTransfer => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'InboundTransfer' failed as data isn't a dictionary.`, + ) + } + + return { + createdAt: unmarshalDate(data.created_at), + domain: data.domain, + id: data.id, + lastUpdatedAt: unmarshalDate(data.last_updated_at), + message: data.message, + projectId: data.project_id, + status: data.status, + taskId: data.task_id, + } as InboundTransfer +} + +export const unmarshalListInboundTransfersResponse = ( + data: unknown, +): ListInboundTransfersResponse => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'ListInboundTransfersResponse' failed as data isn't a dictionary.`, + ) + } + + return { + inboundTransfers: unmarshalArrayOfObject( + data.inbound_transfers, + unmarshalInboundTransfer, + ), + totalCount: data.total_count, + } as ListInboundTransfersResponse +} + const unmarshalRenewableDomain = (data: unknown): RenewableDomain => { if (!isJSONObject(data)) { throw new TypeError( diff --git a/packages_generated/domain/src/v2beta1/types.gen.ts b/packages_generated/domain/src/v2beta1/types.gen.ts index 3cb067915..5f1094d4b 100644 --- a/packages_generated/domain/src/v2beta1/types.gen.ts +++ b/packages_generated/domain/src/v2beta1/types.gen.ts @@ -137,6 +137,19 @@ export type DomainStatus = export type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting' +export type InboundTransferStatus = + | 'unknown' + | 'in_progress' + | 'done' + | 'err_internal' + | 'err_domain_pending' + | 'err_already_transferring' + | 'err_transfer_prohibited' + | 'err_transfer_impossible' + | 'err_invalid_authcode' + | 'err_domain_too_young' + | 'err_too_many_requests' + export type LinkedProduct = 'unknown_product' | 'vpc' export type ListContactsRequestRole = @@ -625,6 +638,41 @@ export interface DomainSummary { pendingTrade: boolean } +export interface InboundTransfer { + /** + * The unique identifier of the inbound transfer. + */ + id: string + /** + * The creation date of the inbound transfer. + */ + createdAt?: Date + /** + * The last modification date of the inbound transfer. + */ + lastUpdatedAt?: Date + /** + * The project ID associated with the inbound transfer. + */ + projectId: string + /** + * The domain associated with the inbound transfer. + */ + domain: string + /** + * Inbound transfer status. + */ + status: InboundTransferStatus + /** + * Human-friendly message to describe the current inbound transfer status. + */ + message: string + /** + * The unique identifier of the associated task. + */ + taskId: string +} + export interface RenewableDomain { domain: string projectId: string @@ -1125,6 +1173,11 @@ export interface ListDomainsResponse { domains: DomainSummary[] } +export interface ListInboundTransfersResponse { + totalCount: number + inboundTransfers: InboundTransfer[] +} + export interface ListRenewableDomainsResponse { totalCount: number domains: RenewableDomain[] @@ -1339,6 +1392,14 @@ export type RegistrarApiListDomainsRequest = { domain?: string } +export type RegistrarApiListInboundTransfersRequest = { + page: number + pageSize?: number + projectId?: string + organizationId?: string + domain: string +} + export type RegistrarApiListRenewableDomainsRequest = { page?: number pageSize?: number diff --git a/packages_generated/iam/src/v1alpha1/index.gen.ts b/packages_generated/iam/src/v1alpha1/index.gen.ts index a9d05e61c..a68e58893 100644 --- a/packages_generated/iam/src/v1alpha1/index.gen.ts +++ b/packages_generated/iam/src/v1alpha1/index.gen.ts @@ -17,7 +17,6 @@ export type { CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, - CreateOrganizationSamlRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserMFAOTPRequest, @@ -27,12 +26,13 @@ export type { DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, - DeleteOrganizationSamlRequest, DeletePolicyRequest, DeleteSamlCertificateRequest, + DeleteSamlRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, + EnableOrganizationSamlRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, @@ -44,7 +44,6 @@ export type { GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, - GetSamlInformationRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, @@ -114,7 +113,8 @@ export type { SamlCertificate, SamlCertificateOrigin, SamlCertificateType, - SamlInformation, + SamlServiceProvider, + SamlStatus, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, @@ -124,9 +124,9 @@ export type { UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, - UpdateOrganizationSamlRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, + UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest,