@scaleway/sdk-domain 1.3.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/dist/v2beta1/api.gen.d.ts +18 -4
- package/dist/v2beta1/api.gen.js +83 -124
- package/dist/v2beta1/content.gen.js +14 -4
- package/dist/v2beta1/index.gen.d.ts +2 -2
- package/dist/v2beta1/index.gen.js +4 -2
- package/dist/v2beta1/marshalling.gen.d.ts +2 -1
- package/dist/v2beta1/marshalling.gen.js +102 -95
- package/dist/v2beta1/types.gen.d.ts +23 -0
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v2beta1/api.gen.cjs +0 -1041
- package/dist/v2beta1/content.gen.cjs +0 -29
- package/dist/v2beta1/index.gen.cjs +0 -74
- package/dist/v2beta1/marshalling.gen.cjs +0 -1517
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API, RegistrarAPI } from "./api.gen.js";
|
|
1
|
+
import { API, RegistrarAPI, UnauthenticatedRegistrarAPI } from "./api.gen.js";
|
|
2
2
|
import { DNS_ZONE_TRANSIENT_STATUSES, DOMAIN_FEATURE_TRANSIENT_STATUSES, DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOST_TRANSIENT_STATUSES, SSL_CERTIFICATE_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalCloneDNSZoneRequest, marshalCreateDNSZoneRequest, marshalCreateSSLCertificateRequest, marshalDSRecord, marshalImportProviderDNSZoneRequest, marshalImportRawDNSZoneRequest, marshalRefreshDNSZoneRequest, marshalRegistrarApiBuyDomainsRequest, marshalRegistrarApiCheckContactsCompatibilityRequest, marshalRegistrarApiCreateDomainHostRequest, marshalRegistrarApiEnableDomainDNSSECRequest, marshalRegistrarApiRegisterExternalDomainRequest, marshalRegistrarApiRenewDomainsRequest, marshalRegistrarApiRetryInboundTransferRequest, marshalRegistrarApiTradeDomainRequest, marshalRegistrarApiTransferInDomainRequest, marshalRegistrarApiUpdateContactRequest, marshalRegistrarApiUpdateDomainHostRequest, marshalRegistrarApiUpdateDomainRequest, marshalUpdateDNSZoneNameserversRequest, marshalUpdateDNSZoneRecordsRequest, marshalUpdateDNSZoneRequest, unmarshalCheckContactsCompatibilityResponse, unmarshalClearDNSZoneRecordsResponse, unmarshalContact, unmarshalDNSZone, unmarshalDSRecord, unmarshalDeleteDNSZoneResponse, unmarshalDeleteExternalDomainResponse, unmarshalDeleteSSLCertificateResponse, unmarshalDomain, unmarshalGetDNSZoneTsigKeyResponse, unmarshalGetDNSZoneVersionDiffResponse, unmarshalGetDomainAuthCodeResponse, unmarshalHost, unmarshalImportProviderDNSZoneResponse, unmarshalImportRawDNSZoneResponse, unmarshalListContactsResponse, unmarshalListDNSZoneNameserversResponse, unmarshalListDNSZoneRecordsResponse, unmarshalListDNSZoneVersionRecordsResponse, unmarshalListDNSZoneVersionsResponse, unmarshalListDNSZonesResponse, unmarshalListDomainHostsResponse, unmarshalListDomainsResponse, unmarshalListInboundTransfersResponse, unmarshalListRenewableDomainsResponse, unmarshalListSSLCertificatesResponse, unmarshalListTasksResponse, unmarshalListTldsResponse, unmarshalOrderResponse, unmarshalRefreshDNSZoneResponse, unmarshalRegisterExternalDomainResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalRetryInboundTransferResponse, unmarshalSSLCertificate, unmarshalSearchAvailableDomainsResponse, unmarshalTask, unmarshalUpdateDNSZoneNameserversResponse, unmarshalUpdateDNSZoneRecordsResponse } from "./marshalling.gen.js";
|
|
3
|
+
import { marshalCloneDNSZoneRequest, marshalCreateDNSZoneRequest, marshalCreateSSLCertificateRequest, marshalDSRecord, marshalImportProviderDNSZoneRequest, marshalImportRawDNSZoneRequest, marshalRefreshDNSZoneRequest, marshalRegistrarApiBuyDomainsRequest, marshalRegistrarApiCheckContactsCompatibilityRequest, marshalRegistrarApiCreateDomainHostRequest, marshalRegistrarApiEnableDomainDNSSECRequest, marshalRegistrarApiRegisterExternalDomainRequest, marshalRegistrarApiRenewDomainsRequest, marshalRegistrarApiRetryInboundTransferRequest, marshalRegistrarApiTradeDomainRequest, marshalRegistrarApiTransferInDomainRequest, marshalRegistrarApiUpdateContactRequest, marshalRegistrarApiUpdateDomainHostRequest, marshalRegistrarApiUpdateDomainRequest, marshalUpdateDNSZoneNameserversRequest, marshalUpdateDNSZoneRecordsRequest, marshalUpdateDNSZoneRequest, unmarshalCheckContactsCompatibilityResponse, unmarshalClearDNSZoneRecordsResponse, unmarshalContact, unmarshalDNSZone, unmarshalDSRecord, unmarshalDeleteDNSZoneResponse, unmarshalDeleteExternalDomainResponse, unmarshalDeleteSSLCertificateResponse, unmarshalDomain, unmarshalGetDNSZoneTsigKeyResponse, unmarshalGetDNSZoneVersionDiffResponse, unmarshalGetDomainAuthCodeResponse, unmarshalHost, unmarshalImportProviderDNSZoneResponse, unmarshalImportRawDNSZoneResponse, unmarshalListContactsResponse, unmarshalListDNSZoneNameserversResponse, unmarshalListDNSZoneRecordsResponse, unmarshalListDNSZoneVersionRecordsResponse, unmarshalListDNSZoneVersionsResponse, unmarshalListDNSZonesResponse, unmarshalListDomainHostsResponse, unmarshalListDomainsResponse, unmarshalListInboundTransfersResponse, unmarshalListRenewableDomainsResponse, unmarshalListSSLCertificatesResponse, unmarshalListTasksResponse, unmarshalListTldsResponse, unmarshalOrderResponse, unmarshalRefreshDNSZoneResponse, unmarshalRegisterExternalDomainResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalRetryInboundTransferResponse, unmarshalSSLCertificate, unmarshalSearchAvailableDomainsConsoleResponse, unmarshalSearchAvailableDomainsResponse, unmarshalTask, unmarshalUpdateDNSZoneNameserversResponse, unmarshalUpdateDNSZoneRecordsResponse } from "./marshalling.gen.js";
|
|
4
4
|
export {
|
|
5
5
|
API,
|
|
6
6
|
DNS_ZONE_TRANSIENT_STATUSES,
|
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
RegistrarAPI,
|
|
12
12
|
SSL_CERTIFICATE_TRANSIENT_STATUSES,
|
|
13
13
|
TASK_TRANSIENT_STATUSES,
|
|
14
|
+
UnauthenticatedRegistrarAPI,
|
|
14
15
|
marshalCloneDNSZoneRequest,
|
|
15
16
|
marshalCreateDNSZoneRequest,
|
|
16
17
|
marshalCreateSSLCertificateRequest,
|
|
@@ -67,6 +68,7 @@ export {
|
|
|
67
68
|
unmarshalRestoreDNSZoneVersionResponse,
|
|
68
69
|
unmarshalRetryInboundTransferResponse,
|
|
69
70
|
unmarshalSSLCertificate,
|
|
71
|
+
unmarshalSearchAvailableDomainsConsoleResponse,
|
|
70
72
|
unmarshalSearchAvailableDomainsResponse,
|
|
71
73
|
unmarshalTask,
|
|
72
74
|
unmarshalUpdateDNSZoneNameserversResponse,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { CheckContactsCompatibilityResponse, ClearDNSZoneRecordsResponse, CloneDNSZoneRequest, Contact, CreateDNSZoneRequest, CreateSSLCertificateRequest,
|
|
2
|
+
import type { CheckContactsCompatibilityResponse, ClearDNSZoneRecordsResponse, CloneDNSZoneRequest, Contact, CreateDNSZoneRequest, CreateSSLCertificateRequest, DeleteDNSZoneResponse, DeleteExternalDomainResponse, DeleteSSLCertificateResponse, DNSZone, Domain, DSRecord, GetDNSZoneTsigKeyResponse, GetDNSZoneVersionDiffResponse, GetDomainAuthCodeResponse, Host, ImportProviderDNSZoneRequest, ImportProviderDNSZoneResponse, ImportRawDNSZoneRequest, ImportRawDNSZoneResponse, ListContactsResponse, ListDNSZoneNameserversResponse, ListDNSZoneRecordsResponse, ListDNSZonesResponse, ListDNSZoneVersionRecordsResponse, ListDNSZoneVersionsResponse, ListDomainHostsResponse, ListDomainsResponse, ListInboundTransfersResponse, ListRenewableDomainsResponse, ListSSLCertificatesResponse, ListTasksResponse, ListTldsResponse, OrderResponse, RefreshDNSZoneRequest, RefreshDNSZoneResponse, RegisterExternalDomainResponse, RegistrarApiBuyDomainsRequest, RegistrarApiCheckContactsCompatibilityRequest, RegistrarApiCreateDomainHostRequest, RegistrarApiEnableDomainDNSSECRequest, RegistrarApiRegisterExternalDomainRequest, RegistrarApiRenewDomainsRequest, RegistrarApiRetryInboundTransferRequest, RegistrarApiTradeDomainRequest, RegistrarApiTransferInDomainRequest, RegistrarApiUpdateContactRequest, RegistrarApiUpdateDomainHostRequest, RegistrarApiUpdateDomainRequest, RestoreDNSZoneVersionResponse, RetryInboundTransferResponse, SearchAvailableDomainsConsoleResponse, SearchAvailableDomainsResponse, SSLCertificate, Task, UpdateDNSZoneNameserversRequest, UpdateDNSZoneNameserversResponse, UpdateDNSZoneRecordsRequest, UpdateDNSZoneRecordsResponse, UpdateDNSZoneRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalContact: (data: unknown) => Contact;
|
|
4
4
|
export declare const unmarshalDNSZone: (data: unknown) => DNSZone;
|
|
5
5
|
export declare const unmarshalHost: (data: unknown) => Host;
|
|
@@ -35,6 +35,7 @@ export declare const unmarshalRefreshDNSZoneResponse: (data: unknown) => Refresh
|
|
|
35
35
|
export declare const unmarshalRegisterExternalDomainResponse: (data: unknown) => RegisterExternalDomainResponse;
|
|
36
36
|
export declare const unmarshalRestoreDNSZoneVersionResponse: (data: unknown) => RestoreDNSZoneVersionResponse;
|
|
37
37
|
export declare const unmarshalRetryInboundTransferResponse: (data: unknown) => RetryInboundTransferResponse;
|
|
38
|
+
export declare const unmarshalSearchAvailableDomainsConsoleResponse: (data: unknown) => SearchAvailableDomainsConsoleResponse;
|
|
38
39
|
export declare const unmarshalSearchAvailableDomainsResponse: (data: unknown) => SearchAvailableDomainsResponse;
|
|
39
40
|
export declare const unmarshalUpdateDNSZoneNameserversResponse: (data: unknown) => UpdateDNSZoneNameserversResponse;
|
|
40
41
|
export declare const unmarshalUpdateDNSZoneRecordsResponse: (data: unknown) => UpdateDNSZoneRecordsResponse;
|
|
@@ -76,6 +76,18 @@ const unmarshalContactExtensionFR = (data) => {
|
|
|
76
76
|
trademarkInfo: data.trademark_info ? unmarshalContactExtensionFRTrademarkInfo(data.trademark_info) : void 0
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
+
const unmarshalContactExtensionIT = (data) => {
|
|
80
|
+
if (!isJSONObject(data)) {
|
|
81
|
+
throw new TypeError(
|
|
82
|
+
`Unmarshalling the type 'ContactExtensionIT' failed as data isn't a dictionary.`
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
europeanCitizenship: data.european_citizenship,
|
|
87
|
+
pin: data.pin,
|
|
88
|
+
taxCode: data.tax_code
|
|
89
|
+
};
|
|
90
|
+
};
|
|
79
91
|
const unmarshalContactExtensionNL = (data) => {
|
|
80
92
|
if (!isJSONObject(data)) {
|
|
81
93
|
throw new TypeError(
|
|
@@ -116,6 +128,7 @@ const unmarshalContact = (data) => {
|
|
|
116
128
|
emailStatus: data.email_status,
|
|
117
129
|
extensionEu: data.extension_eu ? unmarshalContactExtensionEU(data.extension_eu) : void 0,
|
|
118
130
|
extensionFr: data.extension_fr ? unmarshalContactExtensionFR(data.extension_fr) : void 0,
|
|
131
|
+
extensionIt: data.extension_it ? unmarshalContactExtensionIT(data.extension_it) : void 0,
|
|
119
132
|
extensionNl: data.extension_nl ? unmarshalContactExtensionNL(data.extension_nl) : void 0,
|
|
120
133
|
faxNumber: data.fax_number,
|
|
121
134
|
firstname: data.firstname,
|
|
@@ -199,16 +212,10 @@ const unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
|
199
212
|
);
|
|
200
213
|
}
|
|
201
214
|
return {
|
|
202
|
-
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
203
|
-
data.administrative_check_result
|
|
204
|
-
) : void 0,
|
|
215
|
+
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(data.administrative_check_result) : void 0,
|
|
205
216
|
compatible: data.compatible,
|
|
206
|
-
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
207
|
-
|
|
208
|
-
) : void 0,
|
|
209
|
-
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(
|
|
210
|
-
data.technical_check_result
|
|
211
|
-
) : void 0
|
|
217
|
+
ownerCheckResult: data.owner_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(data.owner_check_result) : void 0,
|
|
218
|
+
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(data.technical_check_result) : void 0
|
|
212
219
|
};
|
|
213
220
|
};
|
|
214
221
|
const unmarshalClearDNSZoneRecordsResponse = (data) => {
|
|
@@ -353,9 +360,7 @@ const unmarshalDomain = (data) => {
|
|
|
353
360
|
domain: data.domain,
|
|
354
361
|
eppCode: data.epp_code,
|
|
355
362
|
expiredAt: unmarshalDate(data.expired_at),
|
|
356
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
357
|
-
data.external_domain_registration_status
|
|
358
|
-
) : void 0,
|
|
363
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(data.external_domain_registration_status) : void 0,
|
|
359
364
|
isExternal: data.is_external,
|
|
360
365
|
linkedProducts: data.linked_products,
|
|
361
366
|
organizationId: data.organization_id,
|
|
@@ -366,9 +371,7 @@ const unmarshalDomain = (data) => {
|
|
|
366
371
|
status: data.status,
|
|
367
372
|
technicalContact: data.technical_contact ? unmarshalContact(data.technical_contact) : void 0,
|
|
368
373
|
tld: data.tld ? unmarshalTld(data.tld) : void 0,
|
|
369
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
370
|
-
data.transfer_registration_status
|
|
371
|
-
) : void 0,
|
|
374
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(data.transfer_registration_status) : void 0,
|
|
372
375
|
updatedAt: unmarshalDate(data.updated_at)
|
|
373
376
|
};
|
|
374
377
|
};
|
|
@@ -426,10 +429,7 @@ const unmarshalDomainRecordGeoIPConfig = (data) => {
|
|
|
426
429
|
}
|
|
427
430
|
return {
|
|
428
431
|
default: data.default,
|
|
429
|
-
matches: unmarshalArrayOfObject(
|
|
430
|
-
data.matches,
|
|
431
|
-
unmarshalDomainRecordGeoIPConfigMatch
|
|
432
|
-
)
|
|
432
|
+
matches: unmarshalArrayOfObject(data.matches, unmarshalDomainRecordGeoIPConfigMatch)
|
|
433
433
|
};
|
|
434
434
|
};
|
|
435
435
|
const unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
@@ -453,10 +453,7 @@ const unmarshalDomainRecordViewConfig = (data) => {
|
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
455
|
return {
|
|
456
|
-
views: unmarshalArrayOfObject(
|
|
457
|
-
data.views,
|
|
458
|
-
unmarshalDomainRecordViewConfigView
|
|
459
|
-
)
|
|
456
|
+
views: unmarshalArrayOfObject(data.views, unmarshalDomainRecordViewConfigView)
|
|
460
457
|
};
|
|
461
458
|
};
|
|
462
459
|
const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
@@ -466,10 +463,7 @@ const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
|
466
463
|
);
|
|
467
464
|
}
|
|
468
465
|
return {
|
|
469
|
-
weightedIps: unmarshalArrayOfObject(
|
|
470
|
-
data.weighted_ips,
|
|
471
|
-
unmarshalDomainRecordWeightedConfigWeightedIP
|
|
472
|
-
)
|
|
466
|
+
weightedIps: unmarshalArrayOfObject(data.weighted_ips, unmarshalDomainRecordWeightedConfigWeightedIP)
|
|
473
467
|
};
|
|
474
468
|
};
|
|
475
469
|
const unmarshalDomainRecord = (data) => {
|
|
@@ -733,18 +727,14 @@ const unmarshalDomainSummary = (data) => {
|
|
|
733
727
|
domain: data.domain,
|
|
734
728
|
eppCode: data.epp_code,
|
|
735
729
|
expiredAt: unmarshalDate(data.expired_at),
|
|
736
|
-
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(
|
|
737
|
-
data.external_domain_registration_status
|
|
738
|
-
) : void 0,
|
|
730
|
+
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(data.external_domain_registration_status) : void 0,
|
|
739
731
|
isExternal: data.is_external,
|
|
740
732
|
organizationId: data.organization_id,
|
|
741
733
|
pendingTrade: data.pending_trade,
|
|
742
734
|
projectId: data.project_id,
|
|
743
735
|
registrar: data.registrar,
|
|
744
736
|
status: data.status,
|
|
745
|
-
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(
|
|
746
|
-
data.transfer_registration_status
|
|
747
|
-
) : void 0,
|
|
737
|
+
transferRegistrationStatus: data.transfer_registration_status ? unmarshalDomainRegistrationStatusTransfer(data.transfer_registration_status) : void 0,
|
|
748
738
|
updatedAt: unmarshalDate(data.updated_at)
|
|
749
739
|
};
|
|
750
740
|
};
|
|
@@ -783,10 +773,7 @@ const unmarshalListInboundTransfersResponse = (data) => {
|
|
|
783
773
|
);
|
|
784
774
|
}
|
|
785
775
|
return {
|
|
786
|
-
inboundTransfers: unmarshalArrayOfObject(
|
|
787
|
-
data.inbound_transfers,
|
|
788
|
-
unmarshalInboundTransfer
|
|
789
|
-
),
|
|
776
|
+
inboundTransfers: unmarshalArrayOfObject(data.inbound_transfers, unmarshalInboundTransfer),
|
|
790
777
|
totalCount: data.total_count
|
|
791
778
|
};
|
|
792
779
|
};
|
|
@@ -827,10 +814,7 @@ const unmarshalListSSLCertificatesResponse = (data) => {
|
|
|
827
814
|
);
|
|
828
815
|
}
|
|
829
816
|
return {
|
|
830
|
-
certificates: unmarshalArrayOfObject(
|
|
831
|
-
data.certificates,
|
|
832
|
-
unmarshalSSLCertificate
|
|
833
|
-
),
|
|
817
|
+
certificates: unmarshalArrayOfObject(data.certificates, unmarshalSSLCertificate),
|
|
834
818
|
totalCount: data.total_count
|
|
835
819
|
};
|
|
836
820
|
};
|
|
@@ -941,6 +925,17 @@ const unmarshalAvailableDomain = (data) => {
|
|
|
941
925
|
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
942
926
|
};
|
|
943
927
|
};
|
|
928
|
+
const unmarshalSearchAvailableDomainsConsoleResponse = (data) => {
|
|
929
|
+
if (!isJSONObject(data)) {
|
|
930
|
+
throw new TypeError(
|
|
931
|
+
`Unmarshalling the type 'SearchAvailableDomainsConsoleResponse' failed as data isn't a dictionary.`
|
|
932
|
+
);
|
|
933
|
+
}
|
|
934
|
+
return {
|
|
935
|
+
availableDomains: unmarshalArrayOfObject(data.available_domains, unmarshalAvailableDomain),
|
|
936
|
+
exactMatchDomain: data.exact_match_domain ? unmarshalAvailableDomain(data.exact_match_domain) : void 0
|
|
937
|
+
};
|
|
938
|
+
};
|
|
944
939
|
const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
945
940
|
if (!isJSONObject(data)) {
|
|
946
941
|
throw new TypeError(
|
|
@@ -948,10 +943,7 @@ const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
|
948
943
|
);
|
|
949
944
|
}
|
|
950
945
|
return {
|
|
951
|
-
availableDomains: unmarshalArrayOfObject(
|
|
952
|
-
data.available_domains,
|
|
953
|
-
unmarshalAvailableDomain
|
|
954
|
-
)
|
|
946
|
+
availableDomains: unmarshalArrayOfObject(data.available_domains, unmarshalAvailableDomain)
|
|
955
947
|
};
|
|
956
948
|
};
|
|
957
949
|
const unmarshalUpdateDNSZoneNameserversResponse = (data) => {
|
|
@@ -995,9 +987,7 @@ const marshalImportProviderDNSZoneRequest = (request, defaults) => ({
|
|
|
995
987
|
...resolveOneOf([
|
|
996
988
|
{
|
|
997
989
|
param: "online_v1",
|
|
998
|
-
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(
|
|
999
|
-
request.onlineV1
|
|
1000
|
-
) : void 0
|
|
990
|
+
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(request.onlineV1) : void 0
|
|
1001
991
|
}
|
|
1002
992
|
])
|
|
1003
993
|
});
|
|
@@ -1020,15 +1010,11 @@ const marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
|
1020
1010
|
...resolveOneOf([
|
|
1021
1011
|
{
|
|
1022
1012
|
param: "bind_source",
|
|
1023
|
-
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(
|
|
1024
|
-
request.bindSource
|
|
1025
|
-
) : void 0
|
|
1013
|
+
value: request.bindSource !== void 0 ? marshalImportRawDNSZoneRequestBindSource(request.bindSource) : void 0
|
|
1026
1014
|
},
|
|
1027
1015
|
{
|
|
1028
1016
|
param: "axfr_source",
|
|
1029
|
-
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(
|
|
1030
|
-
request.axfrSource
|
|
1031
|
-
) : void 0
|
|
1017
|
+
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(request.axfrSource) : void 0
|
|
1032
1018
|
}
|
|
1033
1019
|
])
|
|
1034
1020
|
});
|
|
@@ -1061,9 +1047,7 @@ const marshalContactExtensionFR = (request, defaults) => ({
|
|
|
1061
1047
|
...resolveOneOf([
|
|
1062
1048
|
{
|
|
1063
1049
|
param: "individual_info",
|
|
1064
|
-
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(
|
|
1065
|
-
request.individualInfo
|
|
1066
|
-
) : void 0
|
|
1050
|
+
value: request.individualInfo !== void 0 ? marshalContactExtensionFRIndividualInfo(request.individualInfo) : void 0
|
|
1067
1051
|
},
|
|
1068
1052
|
{
|
|
1069
1053
|
param: "duns_info",
|
|
@@ -1071,24 +1055,23 @@ const marshalContactExtensionFR = (request, defaults) => ({
|
|
|
1071
1055
|
},
|
|
1072
1056
|
{
|
|
1073
1057
|
param: "association_info",
|
|
1074
|
-
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(
|
|
1075
|
-
request.associationInfo
|
|
1076
|
-
) : void 0
|
|
1058
|
+
value: request.associationInfo !== void 0 ? marshalContactExtensionFRAssociationInfo(request.associationInfo) : void 0
|
|
1077
1059
|
},
|
|
1078
1060
|
{
|
|
1079
1061
|
param: "trademark_info",
|
|
1080
|
-
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(
|
|
1081
|
-
request.trademarkInfo
|
|
1082
|
-
) : void 0
|
|
1062
|
+
value: request.trademarkInfo !== void 0 ? marshalContactExtensionFRTrademarkInfo(request.trademarkInfo) : void 0
|
|
1083
1063
|
},
|
|
1084
1064
|
{
|
|
1085
1065
|
param: "code_auth_afnic_info",
|
|
1086
|
-
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(
|
|
1087
|
-
request.codeAuthAfnicInfo
|
|
1088
|
-
) : void 0
|
|
1066
|
+
value: request.codeAuthAfnicInfo !== void 0 ? marshalContactExtensionFRCodeAuthAfnicInfo(request.codeAuthAfnicInfo) : void 0
|
|
1089
1067
|
}
|
|
1090
1068
|
])
|
|
1091
1069
|
});
|
|
1070
|
+
const marshalContactExtensionIT = (request, defaults) => ({
|
|
1071
|
+
european_citizenship: request.europeanCitizenship,
|
|
1072
|
+
pin: request.pin,
|
|
1073
|
+
tax_code: request.taxCode
|
|
1074
|
+
});
|
|
1092
1075
|
const marshalContactExtensionNL = (request, defaults) => ({
|
|
1093
1076
|
legal_form: request.legalForm,
|
|
1094
1077
|
legal_form_registration_number: request.legalFormRegistrationNumber
|
|
@@ -1108,6 +1091,7 @@ const marshalNewContact = (request, defaults) => ({
|
|
|
1108
1091
|
email_alt: request.emailAlt,
|
|
1109
1092
|
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1110
1093
|
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1094
|
+
extension_it: request.extensionIt !== void 0 ? marshalContactExtensionIT(request.extensionIt) : void 0,
|
|
1111
1095
|
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1112
1096
|
fax_number: request.faxNumber,
|
|
1113
1097
|
firstname: request.firstname,
|
|
@@ -1127,7 +1111,10 @@ const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
|
1127
1111
|
duration_in_years: request.durationInYears,
|
|
1128
1112
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1129
1113
|
...resolveOneOf([
|
|
1130
|
-
{
|
|
1114
|
+
{
|
|
1115
|
+
param: "owner_contact_id",
|
|
1116
|
+
value: request.ownerContactId
|
|
1117
|
+
},
|
|
1131
1118
|
{
|
|
1132
1119
|
param: "owner_contact",
|
|
1133
1120
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1144,7 +1131,10 @@ const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
|
1144
1131
|
}
|
|
1145
1132
|
]),
|
|
1146
1133
|
...resolveOneOf([
|
|
1147
|
-
{
|
|
1134
|
+
{
|
|
1135
|
+
param: "technical_contact_id",
|
|
1136
|
+
value: request.technicalContactId
|
|
1137
|
+
},
|
|
1148
1138
|
{
|
|
1149
1139
|
param: "technical_contact",
|
|
1150
1140
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1155,7 +1145,10 @@ const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults)
|
|
|
1155
1145
|
domains: request.domains,
|
|
1156
1146
|
tlds: request.tlds,
|
|
1157
1147
|
...resolveOneOf([
|
|
1158
|
-
{
|
|
1148
|
+
{
|
|
1149
|
+
param: "owner_contact_id",
|
|
1150
|
+
value: request.ownerContactId
|
|
1151
|
+
},
|
|
1159
1152
|
{
|
|
1160
1153
|
param: "owner_contact",
|
|
1161
1154
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1172,7 +1165,10 @@ const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults)
|
|
|
1172
1165
|
}
|
|
1173
1166
|
]),
|
|
1174
1167
|
...resolveOneOf([
|
|
1175
|
-
{
|
|
1168
|
+
{
|
|
1169
|
+
param: "technical_contact_id",
|
|
1170
|
+
value: request.technicalContactId
|
|
1171
|
+
},
|
|
1176
1172
|
{
|
|
1177
1173
|
param: "technical_contact",
|
|
1178
1174
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1225,7 +1221,10 @@ const marshalRegistrarApiRetryInboundTransferRequest = (request, defaults) => ({
|
|
|
1225
1221
|
const marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
1226
1222
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1227
1223
|
...resolveOneOf([
|
|
1228
|
-
{
|
|
1224
|
+
{
|
|
1225
|
+
param: "new_owner_contact_id",
|
|
1226
|
+
value: request.newOwnerContactId
|
|
1227
|
+
},
|
|
1229
1228
|
{
|
|
1230
1229
|
param: "new_owner_contact",
|
|
1231
1230
|
value: request.newOwnerContact !== void 0 ? marshalNewContact(request.newOwnerContact) : void 0
|
|
@@ -1237,12 +1236,13 @@ const marshalTransferInDomainRequestTransferRequest = (request, defaults) => ({
|
|
|
1237
1236
|
domain: request.domain
|
|
1238
1237
|
});
|
|
1239
1238
|
const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
1240
|
-
domains: request.domains.map(
|
|
1241
|
-
(elt) => marshalTransferInDomainRequestTransferRequest(elt)
|
|
1242
|
-
),
|
|
1239
|
+
domains: request.domains.map((elt) => marshalTransferInDomainRequestTransferRequest(elt)),
|
|
1243
1240
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1244
1241
|
...resolveOneOf([
|
|
1245
|
-
{
|
|
1242
|
+
{
|
|
1243
|
+
param: "owner_contact_id",
|
|
1244
|
+
value: request.ownerContactId
|
|
1245
|
+
},
|
|
1246
1246
|
{
|
|
1247
1247
|
param: "owner_contact",
|
|
1248
1248
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1259,7 +1259,10 @@ const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
|
1259
1259
|
}
|
|
1260
1260
|
]),
|
|
1261
1261
|
...resolveOneOf([
|
|
1262
|
-
{
|
|
1262
|
+
{
|
|
1263
|
+
param: "technical_contact_id",
|
|
1264
|
+
value: request.technicalContactId
|
|
1265
|
+
},
|
|
1263
1266
|
{
|
|
1264
1267
|
param: "technical_contact",
|
|
1265
1268
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
@@ -1280,13 +1283,12 @@ const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
|
1280
1283
|
email_alt: request.emailAlt,
|
|
1281
1284
|
extension_eu: request.extensionEu !== void 0 ? marshalContactExtensionEU(request.extensionEu) : void 0,
|
|
1282
1285
|
extension_fr: request.extensionFr !== void 0 ? marshalContactExtensionFR(request.extensionFr) : void 0,
|
|
1286
|
+
extension_it: request.extensionIt !== void 0 ? marshalContactExtensionIT(request.extensionIt) : void 0,
|
|
1283
1287
|
extension_nl: request.extensionNl !== void 0 ? marshalContactExtensionNL(request.extensionNl) : void 0,
|
|
1284
1288
|
fax_number: request.faxNumber,
|
|
1285
1289
|
lang: request.lang,
|
|
1286
1290
|
phone_number: request.phoneNumber,
|
|
1287
|
-
questions: request.questions !== void 0 ? request.questions.map(
|
|
1288
|
-
(elt) => marshalUpdateContactRequestQuestion(elt)
|
|
1289
|
-
) : void 0,
|
|
1291
|
+
questions: request.questions !== void 0 ? request.questions.map((elt) => marshalUpdateContactRequestQuestion(elt)) : void 0,
|
|
1290
1292
|
resale: request.resale,
|
|
1291
1293
|
state: request.state,
|
|
1292
1294
|
vat_identification_code: request.vatIdentificationCode,
|
|
@@ -1298,14 +1300,20 @@ const marshalRegistrarApiUpdateDomainHostRequest = (request, defaults) => ({
|
|
|
1298
1300
|
});
|
|
1299
1301
|
const marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
1300
1302
|
...resolveOneOf([
|
|
1301
|
-
{
|
|
1303
|
+
{
|
|
1304
|
+
param: "technical_contact_id",
|
|
1305
|
+
value: request.technicalContactId
|
|
1306
|
+
},
|
|
1302
1307
|
{
|
|
1303
1308
|
param: "technical_contact",
|
|
1304
1309
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact) : void 0
|
|
1305
1310
|
}
|
|
1306
1311
|
]),
|
|
1307
1312
|
...resolveOneOf([
|
|
1308
|
-
{
|
|
1313
|
+
{
|
|
1314
|
+
param: "owner_contact_id",
|
|
1315
|
+
value: request.ownerContactId
|
|
1316
|
+
},
|
|
1309
1317
|
{
|
|
1310
1318
|
param: "owner_contact",
|
|
1311
1319
|
value: request.ownerContact !== void 0 ? marshalNewContact(request.ownerContact) : void 0
|
|
@@ -1344,9 +1352,7 @@ const marshalDomainRecordWeightedConfigWeightedIP = (request, defaults) => ({
|
|
|
1344
1352
|
});
|
|
1345
1353
|
const marshalDomainRecordGeoIPConfig = (request, defaults) => ({
|
|
1346
1354
|
default: request.default,
|
|
1347
|
-
matches: request.matches.map(
|
|
1348
|
-
(elt) => marshalDomainRecordGeoIPConfigMatch(elt)
|
|
1349
|
-
)
|
|
1355
|
+
matches: request.matches.map((elt) => marshalDomainRecordGeoIPConfigMatch(elt))
|
|
1350
1356
|
});
|
|
1351
1357
|
const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
1352
1358
|
ips: request.ips,
|
|
@@ -1356,14 +1362,10 @@ const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
|
1356
1362
|
user_agent: request.userAgent
|
|
1357
1363
|
});
|
|
1358
1364
|
const marshalDomainRecordViewConfig = (request, defaults) => ({
|
|
1359
|
-
views: request.views.map(
|
|
1360
|
-
(elt) => marshalDomainRecordViewConfigView(elt)
|
|
1361
|
-
)
|
|
1365
|
+
views: request.views.map((elt) => marshalDomainRecordViewConfigView(elt))
|
|
1362
1366
|
});
|
|
1363
1367
|
const marshalDomainRecordWeightedConfig = (request, defaults) => ({
|
|
1364
|
-
weighted_ips: request.weightedIps.map(
|
|
1365
|
-
(elt) => marshalDomainRecordWeightedConfigWeightedIP(elt)
|
|
1366
|
-
)
|
|
1368
|
+
weighted_ips: request.weightedIps.map((elt) => marshalDomainRecordWeightedConfigWeightedIP(elt))
|
|
1367
1369
|
});
|
|
1368
1370
|
const marshalDomainRecord = (request, defaults) => ({
|
|
1369
1371
|
comment: request.comment,
|
|
@@ -1380,9 +1382,7 @@ const marshalDomainRecord = (request, defaults) => ({
|
|
|
1380
1382
|
},
|
|
1381
1383
|
{
|
|
1382
1384
|
param: "http_service_config",
|
|
1383
|
-
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(
|
|
1384
|
-
request.httpServiceConfig
|
|
1385
|
-
) : void 0
|
|
1385
|
+
value: request.httpServiceConfig !== void 0 ? marshalDomainRecordHTTPServiceConfig(request.httpServiceConfig) : void 0
|
|
1386
1386
|
},
|
|
1387
1387
|
{
|
|
1388
1388
|
param: "weighted_config",
|
|
@@ -1406,7 +1406,10 @@ const marshalRecordChangeAdd = (request, defaults) => ({
|
|
|
1406
1406
|
const marshalRecordChangeClear = (request, defaults) => ({});
|
|
1407
1407
|
const marshalRecordChangeDelete = (request, defaults) => ({
|
|
1408
1408
|
...resolveOneOf([
|
|
1409
|
-
{
|
|
1409
|
+
{
|
|
1410
|
+
param: "id",
|
|
1411
|
+
value: request.id
|
|
1412
|
+
},
|
|
1410
1413
|
{
|
|
1411
1414
|
param: "id_fields",
|
|
1412
1415
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
@@ -1416,7 +1419,10 @@ const marshalRecordChangeDelete = (request, defaults) => ({
|
|
|
1416
1419
|
const marshalRecordChangeSet = (request, defaults) => ({
|
|
1417
1420
|
records: request.records.map((elt) => marshalDomainRecord(elt)),
|
|
1418
1421
|
...resolveOneOf([
|
|
1419
|
-
{
|
|
1422
|
+
{
|
|
1423
|
+
param: "id",
|
|
1424
|
+
value: request.id
|
|
1425
|
+
},
|
|
1420
1426
|
{
|
|
1421
1427
|
param: "id_fields",
|
|
1422
1428
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields) : void 0
|
|
@@ -1510,6 +1516,7 @@ export {
|
|
|
1510
1516
|
unmarshalRestoreDNSZoneVersionResponse,
|
|
1511
1517
|
unmarshalRetryInboundTransferResponse,
|
|
1512
1518
|
unmarshalSSLCertificate,
|
|
1519
|
+
unmarshalSearchAvailableDomainsConsoleResponse,
|
|
1513
1520
|
unmarshalSearchAvailableDomainsResponse,
|
|
1514
1521
|
unmarshalTask,
|
|
1515
1522
|
unmarshalUpdateDNSZoneNameserversResponse,
|
|
@@ -149,6 +149,17 @@ export interface ContactExtensionFR {
|
|
|
149
149
|
*/
|
|
150
150
|
codeAuthAfnicInfo?: ContactExtensionFRCodeAuthAfnicInfo;
|
|
151
151
|
}
|
|
152
|
+
export interface ContactExtensionIT {
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
156
|
+
europeanCitizenship?: string;
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated
|
|
159
|
+
*/
|
|
160
|
+
taxCode?: string;
|
|
161
|
+
pin: string;
|
|
162
|
+
}
|
|
152
163
|
export interface ContactExtensionNL {
|
|
153
164
|
legalForm: ContactExtensionNLLegalForm;
|
|
154
165
|
legalFormRegistrationNumber: string;
|
|
@@ -241,6 +252,7 @@ export interface Contact {
|
|
|
241
252
|
state: string;
|
|
242
253
|
extensionNl?: ContactExtensionNL;
|
|
243
254
|
status: ContactStatus;
|
|
255
|
+
extensionIt?: ContactExtensionIT;
|
|
244
256
|
}
|
|
245
257
|
export interface ContactRolesRoles {
|
|
246
258
|
isOwner: boolean;
|
|
@@ -291,6 +303,7 @@ export interface NewContact {
|
|
|
291
303
|
whoisOptIn: boolean;
|
|
292
304
|
state?: string;
|
|
293
305
|
extensionNl?: ContactExtensionNL;
|
|
306
|
+
extensionIt?: ContactExtensionIT;
|
|
294
307
|
}
|
|
295
308
|
export interface CheckContactsCompatibilityResponseContactCheckResult {
|
|
296
309
|
compatible: boolean;
|
|
@@ -1233,6 +1246,7 @@ export type RegistrarApiUpdateContactRequest = {
|
|
|
1233
1246
|
whoisOptIn?: boolean;
|
|
1234
1247
|
state?: string;
|
|
1235
1248
|
extensionNl?: ContactExtensionNL;
|
|
1249
|
+
extensionIt?: ContactExtensionIT;
|
|
1236
1250
|
};
|
|
1237
1251
|
export type RegistrarApiUpdateDomainHostRequest = {
|
|
1238
1252
|
domain: string;
|
|
@@ -1281,12 +1295,21 @@ export interface RestoreDNSZoneVersionResponse {
|
|
|
1281
1295
|
}
|
|
1282
1296
|
export interface RetryInboundTransferResponse {
|
|
1283
1297
|
}
|
|
1298
|
+
export interface SearchAvailableDomainsConsoleResponse {
|
|
1299
|
+
exactMatchDomain?: AvailableDomain;
|
|
1300
|
+
availableDomains: AvailableDomain[];
|
|
1301
|
+
}
|
|
1284
1302
|
export interface SearchAvailableDomainsResponse {
|
|
1285
1303
|
/**
|
|
1286
1304
|
* Array of available domains.
|
|
1287
1305
|
*/
|
|
1288
1306
|
availableDomains: AvailableDomain[];
|
|
1289
1307
|
}
|
|
1308
|
+
export type UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest = {
|
|
1309
|
+
domain: string;
|
|
1310
|
+
tlds?: string[];
|
|
1311
|
+
strictSearch: boolean;
|
|
1312
|
+
};
|
|
1290
1313
|
export type UpdateDNSZoneNameserversRequest = {
|
|
1291
1314
|
/**
|
|
1292
1315
|
* DNS zone in which to update the DNS zone name servers.
|
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-domain",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Scaleway SDK domain",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
|
+
"README.md",
|
|
7
8
|
"dist"
|
|
8
9
|
],
|
|
9
10
|
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/index.gen.d.ts",
|
|
13
|
-
"import": "./dist/index.gen.js",
|
|
14
|
-
"require": "./dist/index.gen.cjs",
|
|
15
14
|
"default": "./dist/index.gen.js"
|
|
16
15
|
},
|
|
17
16
|
"./*": {
|
|
18
17
|
"types": "./dist/*/index.gen.d.ts",
|
|
19
|
-
"import": "./dist/*/index.gen.js",
|
|
20
|
-
"require": "./dist/*/index.gen.cjs",
|
|
21
18
|
"default": "./dist/*/index.gen.js"
|
|
22
19
|
}
|
|
23
20
|
},
|
|
@@ -26,17 +23,17 @@
|
|
|
26
23
|
"directory": "packages_generated/domain"
|
|
27
24
|
},
|
|
28
25
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
26
|
+
"node": ">=20.19.6"
|
|
30
27
|
},
|
|
31
28
|
"dependencies": {
|
|
32
29
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.
|
|
30
|
+
"@scaleway/sdk-std": "2.1.0"
|
|
34
31
|
},
|
|
35
32
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
33
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
40
37
|
},
|
|
41
38
|
"scripts": {
|
|
42
39
|
"package:check": "pnpm publint",
|
package/dist/index.gen.cjs
DELETED