@scaleway/sdk-domain 1.0.4 → 1.1.0
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/dist/v2beta1/api.gen.cjs +28 -0
- package/dist/v2beta1/api.gen.d.ts +7 -2
- package/dist/v2beta1/api.gen.js +29 -1
- package/dist/v2beta1/index.gen.cjs +1 -0
- package/dist/v2beta1/index.gen.d.ts +1 -1
- package/dist/v2beta1/index.gen.js +2 -1
- package/dist/v2beta1/marshalling.gen.cjs +32 -0
- package/dist/v2beta1/marshalling.gen.d.ts +2 -1
- package/dist/v2beta1/marshalling.gen.js +32 -0
- package/dist/v2beta1/types.gen.d.ts +46 -0
- package/package.json +6 -6
package/dist/v2beta1/api.gen.cjs
CHANGED
|
@@ -475,6 +475,34 @@ class RegistrarAPI extends sdkClient.API {
|
|
|
475
475
|
* @returns A Promise of ListTasksResponse
|
|
476
476
|
*/
|
|
477
477
|
listTasks = (request = {}) => sdkClient.enrichForPagination("tasks", this.pageOfListTasks, request);
|
|
478
|
+
pageOfListInboundTransfers = (request) => this.client.fetch(
|
|
479
|
+
{
|
|
480
|
+
method: "GET",
|
|
481
|
+
path: `/domain/v2beta1/inbound-transfers`,
|
|
482
|
+
urlParams: sdkClient.urlParams(
|
|
483
|
+
["domain", request.domain],
|
|
484
|
+
[
|
|
485
|
+
"organization_id",
|
|
486
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
487
|
+
],
|
|
488
|
+
["page", request.page],
|
|
489
|
+
[
|
|
490
|
+
"page_size",
|
|
491
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
492
|
+
],
|
|
493
|
+
[
|
|
494
|
+
"project_id",
|
|
495
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
496
|
+
]
|
|
497
|
+
)
|
|
498
|
+
},
|
|
499
|
+
marshalling_gen.unmarshalListInboundTransfersResponse
|
|
500
|
+
);
|
|
501
|
+
listInboundTransfers = (request) => sdkClient.enrichForPagination(
|
|
502
|
+
"inboundTransfers",
|
|
503
|
+
this.pageOfListInboundTransfers,
|
|
504
|
+
request
|
|
505
|
+
);
|
|
478
506
|
/**
|
|
479
507
|
* Purchase domains. Request the registration of domain names.
|
|
480
508
|
You can provide a domain's already existing contact or a new contact.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
1
|
import type { WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
-
import
|
|
2
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
+
import type { CheckContactsCompatibilityResponse, ClearDNSZoneRecordsRequest, ClearDNSZoneRecordsResponse, CloneDNSZoneRequest, Contact, CreateDNSZoneRequest, CreateSSLCertificateRequest, DeleteDNSZoneRequest, DeleteDNSZoneResponse, DeleteDNSZoneTsigKeyRequest, DeleteExternalDomainResponse, DeleteSSLCertificateRequest, DeleteSSLCertificateResponse, DNSZone, Domain, ExportRawDNSZoneRequest, GetDNSZoneTsigKeyRequest, GetDNSZoneTsigKeyResponse, GetDNSZoneVersionDiffRequest, GetDNSZoneVersionDiffResponse, GetDomainAuthCodeResponse, GetSSLCertificateRequest, Host, ImportProviderDNSZoneRequest, ImportProviderDNSZoneResponse, ImportRawDNSZoneRequest, ImportRawDNSZoneResponse, ListContactsResponse, ListDNSZoneNameserversRequest, ListDNSZoneNameserversResponse, ListDNSZoneRecordsRequest, ListDNSZoneRecordsResponse, ListDNSZonesRequest, ListDNSZonesResponse, ListDNSZoneVersionRecordsRequest, ListDNSZoneVersionRecordsResponse, ListDNSZoneVersionsRequest, ListDNSZoneVersionsResponse, ListDomainHostsResponse, ListDomainsResponse, ListInboundTransfersResponse, ListRenewableDomainsResponse, ListSSLCertificatesRequest, ListSSLCertificatesResponse, ListTasksResponse, ListTldsResponse, OrderResponse, RefreshDNSZoneRequest, RefreshDNSZoneResponse, RegisterExternalDomainResponse, RegistrarApiBuyDomainsRequest, RegistrarApiCheckContactsCompatibilityRequest, RegistrarApiCreateDomainHostRequest, RegistrarApiDeleteDomainHostRequest, RegistrarApiDeleteExternalDomainRequest, RegistrarApiDisableDomainAutoRenewRequest, RegistrarApiDisableDomainDNSSECRequest, RegistrarApiEnableDomainAutoRenewRequest, RegistrarApiEnableDomainDNSSECRequest, RegistrarApiGetContactRequest, RegistrarApiGetDomainAuthCodeRequest, RegistrarApiGetDomainRequest, RegistrarApiListContactsRequest, RegistrarApiListDomainHostsRequest, RegistrarApiListDomainsRequest, RegistrarApiListInboundTransfersRequest, RegistrarApiListRenewableDomainsRequest, RegistrarApiListTasksRequest, RegistrarApiListTldsRequest, RegistrarApiLockDomainTransferRequest, RegistrarApiRegisterExternalDomainRequest, RegistrarApiRenewDomainsRequest, RegistrarApiSearchAvailableDomainsRequest, RegistrarApiTradeDomainRequest, RegistrarApiTransferInDomainRequest, RegistrarApiUnlockDomainTransferRequest, RegistrarApiUpdateContactRequest, RegistrarApiUpdateDomainHostRequest, RegistrarApiUpdateDomainRequest, RestoreDNSZoneVersionRequest, RestoreDNSZoneVersionResponse, SearchAvailableDomainsResponse, SSLCertificate, UpdateDNSZoneNameserversRequest, UpdateDNSZoneNameserversResponse, UpdateDNSZoneRecordsRequest, UpdateDNSZoneRecordsResponse, UpdateDNSZoneRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Domains and DNS API.
|
|
6
6
|
|
|
@@ -233,6 +233,11 @@ export declare class RegistrarAPI extends ParentAPI {
|
|
|
233
233
|
all: () => Promise<import("./types.gen").Task[]>;
|
|
234
234
|
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Task[], void, void>;
|
|
235
235
|
};
|
|
236
|
+
protected pageOfListInboundTransfers: (request: Readonly<RegistrarApiListInboundTransfersRequest>) => Promise<ListInboundTransfersResponse>;
|
|
237
|
+
listInboundTransfers: (request: Readonly<RegistrarApiListInboundTransfersRequest>) => Promise<ListInboundTransfersResponse> & {
|
|
238
|
+
all: () => Promise<import("./types.gen").InboundTransfer[]>;
|
|
239
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").InboundTransfer[], void, void>;
|
|
240
|
+
};
|
|
236
241
|
/**
|
|
237
242
|
* Purchase domains. Request the registration of domain names.
|
|
238
243
|
You can provide a domain's already existing contact or a new contact.
|
package/dist/v2beta1/api.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as API$1, urlParams, enrichForPagination, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
2
2
|
import { SSL_CERTIFICATE_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { unmarshalListDNSZonesResponse, marshalCreateDNSZoneRequest, unmarshalDNSZone, marshalUpdateDNSZoneRequest, marshalCloneDNSZoneRequest, unmarshalDeleteDNSZoneResponse, unmarshalListDNSZoneRecordsResponse, marshalUpdateDNSZoneRecordsRequest, unmarshalUpdateDNSZoneRecordsResponse, unmarshalListDNSZoneNameserversResponse, marshalUpdateDNSZoneNameserversRequest, unmarshalUpdateDNSZoneNameserversResponse, unmarshalClearDNSZoneRecordsResponse, marshalImportRawDNSZoneRequest, unmarshalImportRawDNSZoneResponse, marshalImportProviderDNSZoneRequest, unmarshalImportProviderDNSZoneResponse, marshalRefreshDNSZoneRequest, unmarshalRefreshDNSZoneResponse, unmarshalListDNSZoneVersionsResponse, unmarshalListDNSZoneVersionRecordsResponse, unmarshalGetDNSZoneVersionDiffResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalSSLCertificate, marshalCreateSSLCertificateRequest, unmarshalListSSLCertificatesResponse, unmarshalDeleteSSLCertificateResponse, unmarshalGetDNSZoneTsigKeyResponse, unmarshalListTasksResponse, marshalRegistrarApiBuyDomainsRequest, unmarshalOrderResponse, marshalRegistrarApiRenewDomainsRequest, marshalRegistrarApiTransferInDomainRequest, marshalRegistrarApiTradeDomainRequest, marshalRegistrarApiRegisterExternalDomainRequest, unmarshalRegisterExternalDomainResponse, unmarshalDeleteExternalDomainResponse, marshalRegistrarApiCheckContactsCompatibilityRequest, unmarshalCheckContactsCompatibilityResponse, unmarshalListContactsResponse, unmarshalContact, marshalRegistrarApiUpdateContactRequest, unmarshalListDomainsResponse, unmarshalListRenewableDomainsResponse, unmarshalDomain, marshalRegistrarApiUpdateDomainRequest, unmarshalGetDomainAuthCodeResponse, marshalRegistrarApiEnableDomainDNSSECRequest, unmarshalSearchAvailableDomainsResponse, unmarshalListTldsResponse, marshalRegistrarApiCreateDomainHostRequest, unmarshalHost, unmarshalListDomainHostsResponse, marshalRegistrarApiUpdateDomainHostRequest } from "./marshalling.gen.js";
|
|
3
|
+
import { unmarshalListDNSZonesResponse, marshalCreateDNSZoneRequest, unmarshalDNSZone, marshalUpdateDNSZoneRequest, marshalCloneDNSZoneRequest, unmarshalDeleteDNSZoneResponse, unmarshalListDNSZoneRecordsResponse, marshalUpdateDNSZoneRecordsRequest, unmarshalUpdateDNSZoneRecordsResponse, unmarshalListDNSZoneNameserversResponse, marshalUpdateDNSZoneNameserversRequest, unmarshalUpdateDNSZoneNameserversResponse, unmarshalClearDNSZoneRecordsResponse, marshalImportRawDNSZoneRequest, unmarshalImportRawDNSZoneResponse, marshalImportProviderDNSZoneRequest, unmarshalImportProviderDNSZoneResponse, marshalRefreshDNSZoneRequest, unmarshalRefreshDNSZoneResponse, unmarshalListDNSZoneVersionsResponse, unmarshalListDNSZoneVersionRecordsResponse, unmarshalGetDNSZoneVersionDiffResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalSSLCertificate, marshalCreateSSLCertificateRequest, unmarshalListSSLCertificatesResponse, unmarshalDeleteSSLCertificateResponse, unmarshalGetDNSZoneTsigKeyResponse, unmarshalListTasksResponse, unmarshalListInboundTransfersResponse, marshalRegistrarApiBuyDomainsRequest, unmarshalOrderResponse, marshalRegistrarApiRenewDomainsRequest, marshalRegistrarApiTransferInDomainRequest, marshalRegistrarApiTradeDomainRequest, marshalRegistrarApiRegisterExternalDomainRequest, unmarshalRegisterExternalDomainResponse, unmarshalDeleteExternalDomainResponse, marshalRegistrarApiCheckContactsCompatibilityRequest, unmarshalCheckContactsCompatibilityResponse, unmarshalListContactsResponse, unmarshalContact, marshalRegistrarApiUpdateContactRequest, unmarshalListDomainsResponse, unmarshalListRenewableDomainsResponse, unmarshalDomain, marshalRegistrarApiUpdateDomainRequest, unmarshalGetDomainAuthCodeResponse, marshalRegistrarApiEnableDomainDNSSECRequest, unmarshalSearchAvailableDomainsResponse, unmarshalListTldsResponse, marshalRegistrarApiCreateDomainHostRequest, unmarshalHost, unmarshalListDomainHostsResponse, marshalRegistrarApiUpdateDomainHostRequest } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
@@ -473,6 +473,34 @@ class RegistrarAPI extends API$1 {
|
|
|
473
473
|
* @returns A Promise of ListTasksResponse
|
|
474
474
|
*/
|
|
475
475
|
listTasks = (request = {}) => enrichForPagination("tasks", this.pageOfListTasks, request);
|
|
476
|
+
pageOfListInboundTransfers = (request) => this.client.fetch(
|
|
477
|
+
{
|
|
478
|
+
method: "GET",
|
|
479
|
+
path: `/domain/v2beta1/inbound-transfers`,
|
|
480
|
+
urlParams: urlParams(
|
|
481
|
+
["domain", request.domain],
|
|
482
|
+
[
|
|
483
|
+
"organization_id",
|
|
484
|
+
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
485
|
+
],
|
|
486
|
+
["page", request.page],
|
|
487
|
+
[
|
|
488
|
+
"page_size",
|
|
489
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
490
|
+
],
|
|
491
|
+
[
|
|
492
|
+
"project_id",
|
|
493
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
494
|
+
]
|
|
495
|
+
)
|
|
496
|
+
},
|
|
497
|
+
unmarshalListInboundTransfersResponse
|
|
498
|
+
);
|
|
499
|
+
listInboundTransfers = (request) => enrichForPagination(
|
|
500
|
+
"inboundTransfers",
|
|
501
|
+
this.pageOfListInboundTransfers,
|
|
502
|
+
request
|
|
503
|
+
);
|
|
476
504
|
/**
|
|
477
505
|
* Purchase domains. Request the registration of domain names.
|
|
478
506
|
You can provide a domain's already existing contact or a new contact.
|
|
@@ -56,6 +56,7 @@ exports.unmarshalListDNSZoneVersionsResponse = marshalling_gen.unmarshalListDNSZ
|
|
|
56
56
|
exports.unmarshalListDNSZonesResponse = marshalling_gen.unmarshalListDNSZonesResponse;
|
|
57
57
|
exports.unmarshalListDomainHostsResponse = marshalling_gen.unmarshalListDomainHostsResponse;
|
|
58
58
|
exports.unmarshalListDomainsResponse = marshalling_gen.unmarshalListDomainsResponse;
|
|
59
|
+
exports.unmarshalListInboundTransfersResponse = marshalling_gen.unmarshalListInboundTransfersResponse;
|
|
59
60
|
exports.unmarshalListRenewableDomainsResponse = marshalling_gen.unmarshalListRenewableDomainsResponse;
|
|
60
61
|
exports.unmarshalListSSLCertificatesResponse = marshalling_gen.unmarshalListSSLCertificatesResponse;
|
|
61
62
|
exports.unmarshalListTasksResponse = marshalling_gen.unmarshalListTasksResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API, RegistrarAPI, } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
3
|
export * from './marshalling.gen';
|
|
4
|
-
export type { AvailableDomain, CheckContactsCompatibilityResponse, CheckContactsCompatibilityResponseContactCheckResult, ClearDNSZoneRecordsRequest, ClearDNSZoneRecordsResponse, CloneDNSZoneRequest, Contact, ContactEmailStatus, ContactExtensionEU, ContactExtensionFR, ContactExtensionFRAssociationInfo, ContactExtensionFRCodeAuthAfnicInfo, ContactExtensionFRDunsInfo, ContactExtensionFRIndividualInfo, ContactExtensionFRMode, ContactExtensionFRTrademarkInfo, ContactExtensionNL, ContactExtensionNLLegalForm, ContactLegalForm, ContactQuestion, ContactRoles, ContactRolesRoles, ContactStatus, CreateDNSZoneRequest, CreateSSLCertificateRequest,
|
|
4
|
+
export type { AvailableDomain, CheckContactsCompatibilityResponse, CheckContactsCompatibilityResponseContactCheckResult, ClearDNSZoneRecordsRequest, ClearDNSZoneRecordsResponse, CloneDNSZoneRequest, Contact, ContactEmailStatus, ContactExtensionEU, ContactExtensionFR, ContactExtensionFRAssociationInfo, ContactExtensionFRCodeAuthAfnicInfo, ContactExtensionFRDunsInfo, ContactExtensionFRIndividualInfo, ContactExtensionFRMode, ContactExtensionFRTrademarkInfo, ContactExtensionNL, ContactExtensionNLLegalForm, ContactLegalForm, ContactQuestion, ContactRoles, ContactRolesRoles, ContactStatus, CreateDNSZoneRequest, CreateSSLCertificateRequest, DeleteDNSZoneRequest, DeleteDNSZoneResponse, DeleteDNSZoneTsigKeyRequest, DeleteExternalDomainResponse, DeleteSSLCertificateRequest, DeleteSSLCertificateResponse, DNSZone, DNSZoneStatus, DNSZoneVersion, Domain, DomainDNSSEC, DomainFeatureStatus, DomainRecord, DomainRecordGeoIPConfig, DomainRecordGeoIPConfigMatch, DomainRecordHTTPServiceConfig, DomainRecordHTTPServiceConfigStrategy, DomainRecordType, DomainRecordViewConfig, DomainRecordViewConfigView, DomainRecordWeightedConfig, DomainRecordWeightedConfigWeightedIP, DomainRegistrationStatusExternalDomain, DomainRegistrationStatusTransfer, DomainRegistrationStatusTransferStatus, DomainStatus, DomainSummary, DSRecord, DSRecordAlgorithm, DSRecordDigest, DSRecordDigestType, DSRecordPublicKey, ExportRawDNSZoneRequest, GetDNSZoneTsigKeyRequest, GetDNSZoneTsigKeyResponse, GetDNSZoneVersionDiffRequest, GetDNSZoneVersionDiffResponse, GetDomainAuthCodeResponse, GetSSLCertificateRequest, Host, HostStatus, ImportProviderDNSZoneRequest, ImportProviderDNSZoneRequestOnlineV1, ImportProviderDNSZoneResponse, ImportRawDNSZoneRequest, ImportRawDNSZoneRequestAXFRSource, ImportRawDNSZoneRequestBindSource, ImportRawDNSZoneRequestTsigKey, ImportRawDNSZoneResponse, InboundTransfer, InboundTransferStatus, LinkedProduct, ListContactsRequestRole, ListContactsResponse, ListDNSZoneNameserversRequest, ListDNSZoneNameserversResponse, ListDNSZoneRecordsRequest, ListDNSZoneRecordsRequestOrderBy, ListDNSZoneRecordsResponse, ListDNSZonesRequest, ListDNSZonesRequestOrderBy, ListDNSZonesResponse, ListDNSZoneVersionRecordsRequest, ListDNSZoneVersionRecordsResponse, ListDNSZoneVersionsRequest, ListDNSZoneVersionsResponse, ListDomainHostsResponse, ListDomainsRequestOrderBy, ListDomainsResponse, ListInboundTransfersResponse, ListRenewableDomainsRequestOrderBy, ListRenewableDomainsResponse, ListSSLCertificatesRequest, ListSSLCertificatesResponse, ListTasksRequestOrderBy, ListTasksResponse, ListTldsRequestOrderBy, ListTldsResponse, Nameserver, NewContact, OrderResponse, RawFormat, RecordChange, RecordChangeAdd, RecordChangeClear, RecordChangeDelete, RecordChangeSet, RecordIdentifier, RefreshDNSZoneRequest, RefreshDNSZoneResponse, RegisterExternalDomainResponse, RegistrarApiBuyDomainsRequest, RegistrarApiCheckContactsCompatibilityRequest, RegistrarApiCreateDomainHostRequest, RegistrarApiDeleteDomainHostRequest, RegistrarApiDeleteExternalDomainRequest, RegistrarApiDisableDomainAutoRenewRequest, RegistrarApiDisableDomainDNSSECRequest, RegistrarApiEnableDomainAutoRenewRequest, RegistrarApiEnableDomainDNSSECRequest, RegistrarApiGetContactRequest, RegistrarApiGetDomainAuthCodeRequest, RegistrarApiGetDomainRequest, RegistrarApiListContactsRequest, RegistrarApiListDomainHostsRequest, RegistrarApiListDomainsRequest, RegistrarApiListInboundTransfersRequest, RegistrarApiListRenewableDomainsRequest, RegistrarApiListTasksRequest, RegistrarApiListTldsRequest, RegistrarApiLockDomainTransferRequest, RegistrarApiRegisterExternalDomainRequest, RegistrarApiRenewDomainsRequest, RegistrarApiSearchAvailableDomainsRequest, RegistrarApiTradeDomainRequest, RegistrarApiTransferInDomainRequest, RegistrarApiUnlockDomainTransferRequest, RegistrarApiUpdateContactRequest, RegistrarApiUpdateDomainHostRequest, RegistrarApiUpdateDomainRequest, RenewableDomain, RenewableDomainStatus, RestoreDNSZoneVersionRequest, RestoreDNSZoneVersionResponse, SearchAvailableDomainsResponse, SSLCertificate, SSLCertificateStatus, Task, TaskStatus, TaskType, Tld, TldOffer, TransferInDomainRequestTransferRequest, UpdateContactRequestQuestion, UpdateDNSZoneNameserversRequest, UpdateDNSZoneNameserversResponse, UpdateDNSZoneRecordsRequest, UpdateDNSZoneRecordsResponse, UpdateDNSZoneRequest, } from './types.gen';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API, RegistrarAPI } 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, 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, unmarshalListRenewableDomainsResponse, unmarshalListSSLCertificatesResponse, unmarshalListTasksResponse, unmarshalListTldsResponse, unmarshalOrderResponse, unmarshalRefreshDNSZoneResponse, unmarshalRegisterExternalDomainResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalSSLCertificate, unmarshalSearchAvailableDomainsResponse, unmarshalTask, unmarshalUpdateDNSZoneNameserversResponse, unmarshalUpdateDNSZoneRecordsResponse } from "./marshalling.gen.js";
|
|
3
|
+
import { marshalCloneDNSZoneRequest, marshalCreateDNSZoneRequest, marshalCreateSSLCertificateRequest, marshalDSRecord, marshalImportProviderDNSZoneRequest, marshalImportRawDNSZoneRequest, marshalRefreshDNSZoneRequest, marshalRegistrarApiBuyDomainsRequest, marshalRegistrarApiCheckContactsCompatibilityRequest, marshalRegistrarApiCreateDomainHostRequest, marshalRegistrarApiEnableDomainDNSSECRequest, marshalRegistrarApiRegisterExternalDomainRequest, marshalRegistrarApiRenewDomainsRequest, 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, unmarshalSSLCertificate, unmarshalSearchAvailableDomainsResponse, unmarshalTask, unmarshalUpdateDNSZoneNameserversResponse, unmarshalUpdateDNSZoneRecordsResponse } from "./marshalling.gen.js";
|
|
4
4
|
export {
|
|
5
5
|
API,
|
|
6
6
|
DNS_ZONE_TRANSIENT_STATUSES,
|
|
@@ -55,6 +55,7 @@ export {
|
|
|
55
55
|
unmarshalListDNSZonesResponse,
|
|
56
56
|
unmarshalListDomainHostsResponse,
|
|
57
57
|
unmarshalListDomainsResponse,
|
|
58
|
+
unmarshalListInboundTransfersResponse,
|
|
58
59
|
unmarshalListRenewableDomainsResponse,
|
|
59
60
|
unmarshalListSSLCertificatesResponse,
|
|
60
61
|
unmarshalListTasksResponse,
|
|
@@ -761,6 +761,37 @@ const unmarshalListDomainsResponse = (data) => {
|
|
|
761
761
|
totalCount: data.total_count
|
|
762
762
|
};
|
|
763
763
|
};
|
|
764
|
+
const unmarshalInboundTransfer = (data) => {
|
|
765
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
766
|
+
throw new TypeError(
|
|
767
|
+
`Unmarshalling the type 'InboundTransfer' failed as data isn't a dictionary.`
|
|
768
|
+
);
|
|
769
|
+
}
|
|
770
|
+
return {
|
|
771
|
+
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
772
|
+
domain: data.domain,
|
|
773
|
+
id: data.id,
|
|
774
|
+
lastUpdatedAt: sdkClient.unmarshalDate(data.last_updated_at),
|
|
775
|
+
message: data.message,
|
|
776
|
+
projectId: data.project_id,
|
|
777
|
+
status: data.status,
|
|
778
|
+
taskId: data.task_id
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
const unmarshalListInboundTransfersResponse = (data) => {
|
|
782
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
783
|
+
throw new TypeError(
|
|
784
|
+
`Unmarshalling the type 'ListInboundTransfersResponse' failed as data isn't a dictionary.`
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
return {
|
|
788
|
+
inboundTransfers: sdkClient.unmarshalArrayOfObject(
|
|
789
|
+
data.inbound_transfers,
|
|
790
|
+
unmarshalInboundTransfer
|
|
791
|
+
),
|
|
792
|
+
totalCount: data.total_count
|
|
793
|
+
};
|
|
794
|
+
};
|
|
764
795
|
const unmarshalRenewableDomain = (data) => {
|
|
765
796
|
if (!sdkClient.isJSONObject(data)) {
|
|
766
797
|
throw new TypeError(
|
|
@@ -1455,6 +1486,7 @@ exports.unmarshalListDNSZoneVersionsResponse = unmarshalListDNSZoneVersionsRespo
|
|
|
1455
1486
|
exports.unmarshalListDNSZonesResponse = unmarshalListDNSZonesResponse;
|
|
1456
1487
|
exports.unmarshalListDomainHostsResponse = unmarshalListDomainHostsResponse;
|
|
1457
1488
|
exports.unmarshalListDomainsResponse = unmarshalListDomainsResponse;
|
|
1489
|
+
exports.unmarshalListInboundTransfersResponse = unmarshalListInboundTransfersResponse;
|
|
1458
1490
|
exports.unmarshalListRenewableDomainsResponse = unmarshalListRenewableDomainsResponse;
|
|
1459
1491
|
exports.unmarshalListSSLCertificatesResponse = unmarshalListSSLCertificatesResponse;
|
|
1460
1492
|
exports.unmarshalListTasksResponse = unmarshalListTasksResponse;
|
|
@@ -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, RegistrarApiTradeDomainRequest, RegistrarApiTransferInDomainRequest, RegistrarApiUpdateContactRequest, RegistrarApiUpdateDomainHostRequest, RegistrarApiUpdateDomainRequest, RestoreDNSZoneVersionResponse, SearchAvailableDomainsResponse, SSLCertificate, Task, UpdateDNSZoneNameserversRequest, UpdateDNSZoneNameserversResponse, UpdateDNSZoneRecordsRequest, UpdateDNSZoneRecordsResponse, UpdateDNSZoneRequest } from './types.gen';
|
|
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;
|
|
@@ -24,6 +24,7 @@ export declare const unmarshalListDNSZoneVersionsResponse: (data: unknown) => Li
|
|
|
24
24
|
export declare const unmarshalListDNSZonesResponse: (data: unknown) => ListDNSZonesResponse;
|
|
25
25
|
export declare const unmarshalListDomainHostsResponse: (data: unknown) => ListDomainHostsResponse;
|
|
26
26
|
export declare const unmarshalListDomainsResponse: (data: unknown) => ListDomainsResponse;
|
|
27
|
+
export declare const unmarshalListInboundTransfersResponse: (data: unknown) => ListInboundTransfersResponse;
|
|
27
28
|
export declare const unmarshalListRenewableDomainsResponse: (data: unknown) => ListRenewableDomainsResponse;
|
|
28
29
|
export declare const unmarshalListSSLCertificatesResponse: (data: unknown) => ListSSLCertificatesResponse;
|
|
29
30
|
export declare const unmarshalTask: (data: unknown) => Task;
|
|
@@ -759,6 +759,37 @@ const unmarshalListDomainsResponse = (data) => {
|
|
|
759
759
|
totalCount: data.total_count
|
|
760
760
|
};
|
|
761
761
|
};
|
|
762
|
+
const unmarshalInboundTransfer = (data) => {
|
|
763
|
+
if (!isJSONObject(data)) {
|
|
764
|
+
throw new TypeError(
|
|
765
|
+
`Unmarshalling the type 'InboundTransfer' failed as data isn't a dictionary.`
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
return {
|
|
769
|
+
createdAt: unmarshalDate(data.created_at),
|
|
770
|
+
domain: data.domain,
|
|
771
|
+
id: data.id,
|
|
772
|
+
lastUpdatedAt: unmarshalDate(data.last_updated_at),
|
|
773
|
+
message: data.message,
|
|
774
|
+
projectId: data.project_id,
|
|
775
|
+
status: data.status,
|
|
776
|
+
taskId: data.task_id
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
const unmarshalListInboundTransfersResponse = (data) => {
|
|
780
|
+
if (!isJSONObject(data)) {
|
|
781
|
+
throw new TypeError(
|
|
782
|
+
`Unmarshalling the type 'ListInboundTransfersResponse' failed as data isn't a dictionary.`
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
return {
|
|
786
|
+
inboundTransfers: unmarshalArrayOfObject(
|
|
787
|
+
data.inbound_transfers,
|
|
788
|
+
unmarshalInboundTransfer
|
|
789
|
+
),
|
|
790
|
+
totalCount: data.total_count
|
|
791
|
+
};
|
|
792
|
+
};
|
|
762
793
|
const unmarshalRenewableDomain = (data) => {
|
|
763
794
|
if (!isJSONObject(data)) {
|
|
764
795
|
throw new TypeError(
|
|
@@ -1454,6 +1485,7 @@ export {
|
|
|
1454
1485
|
unmarshalListDNSZonesResponse,
|
|
1455
1486
|
unmarshalListDomainHostsResponse,
|
|
1456
1487
|
unmarshalListDomainsResponse,
|
|
1488
|
+
unmarshalListInboundTransfersResponse,
|
|
1457
1489
|
unmarshalListRenewableDomainsResponse,
|
|
1458
1490
|
unmarshalListSSLCertificatesResponse,
|
|
1459
1491
|
unmarshalListTasksResponse,
|
|
@@ -14,6 +14,7 @@ export type DomainRecordType = 'unknown' | 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'SRV
|
|
|
14
14
|
export type DomainRegistrationStatusTransferStatus = 'status_unknown' | 'pending' | 'waiting_vote' | 'rejected' | 'processing' | 'done';
|
|
15
15
|
export type DomainStatus = 'status_unknown' | 'active' | 'creating' | 'create_error' | 'renewing' | 'renew_error' | 'xfering' | 'xfer_error' | 'expired' | 'expiring' | 'updating' | 'checking' | 'locked' | 'deleting';
|
|
16
16
|
export type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting';
|
|
17
|
+
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';
|
|
17
18
|
export type LinkedProduct = 'unknown_product' | 'vpc';
|
|
18
19
|
export type ListContactsRequestRole = 'unknown_role' | 'owner' | 'administrative' | 'technical';
|
|
19
20
|
export type ListDNSZoneRecordsRequestOrderBy = 'name_asc' | 'name_desc';
|
|
@@ -386,6 +387,40 @@ export interface DomainSummary {
|
|
|
386
387
|
createdAt?: Date;
|
|
387
388
|
pendingTrade: boolean;
|
|
388
389
|
}
|
|
390
|
+
export interface InboundTransfer {
|
|
391
|
+
/**
|
|
392
|
+
* The unique identifier of the inbound transfer.
|
|
393
|
+
*/
|
|
394
|
+
id: string;
|
|
395
|
+
/**
|
|
396
|
+
* The creation date of the inbound transfer.
|
|
397
|
+
*/
|
|
398
|
+
createdAt?: Date;
|
|
399
|
+
/**
|
|
400
|
+
* The last modification date of the inbound transfer.
|
|
401
|
+
*/
|
|
402
|
+
lastUpdatedAt?: Date;
|
|
403
|
+
/**
|
|
404
|
+
* The project ID associated with the inbound transfer.
|
|
405
|
+
*/
|
|
406
|
+
projectId: string;
|
|
407
|
+
/**
|
|
408
|
+
* The domain associated with the inbound transfer.
|
|
409
|
+
*/
|
|
410
|
+
domain: string;
|
|
411
|
+
/**
|
|
412
|
+
* Inbound transfer status.
|
|
413
|
+
*/
|
|
414
|
+
status: InboundTransferStatus;
|
|
415
|
+
/**
|
|
416
|
+
* Human-friendly message to describe the current inbound transfer status.
|
|
417
|
+
*/
|
|
418
|
+
message: string;
|
|
419
|
+
/**
|
|
420
|
+
* The unique identifier of the associated task.
|
|
421
|
+
*/
|
|
422
|
+
taskId: string;
|
|
423
|
+
}
|
|
389
424
|
export interface RenewableDomain {
|
|
390
425
|
domain: string;
|
|
391
426
|
projectId: string;
|
|
@@ -847,6 +882,10 @@ export interface ListDomainsResponse {
|
|
|
847
882
|
totalCount: number;
|
|
848
883
|
domains: DomainSummary[];
|
|
849
884
|
}
|
|
885
|
+
export interface ListInboundTransfersResponse {
|
|
886
|
+
totalCount: number;
|
|
887
|
+
inboundTransfers: InboundTransfer[];
|
|
888
|
+
}
|
|
850
889
|
export interface ListRenewableDomainsResponse {
|
|
851
890
|
totalCount: number;
|
|
852
891
|
domains: RenewableDomain[];
|
|
@@ -1037,6 +1076,13 @@ export type RegistrarApiListDomainsRequest = {
|
|
|
1037
1076
|
isExternal?: boolean;
|
|
1038
1077
|
domain?: string;
|
|
1039
1078
|
};
|
|
1079
|
+
export type RegistrarApiListInboundTransfersRequest = {
|
|
1080
|
+
page: number;
|
|
1081
|
+
pageSize?: number;
|
|
1082
|
+
projectId?: string;
|
|
1083
|
+
organizationId?: string;
|
|
1084
|
+
domain: string;
|
|
1085
|
+
};
|
|
1040
1086
|
export type RegistrarApiListRenewableDomainsRequest = {
|
|
1041
1087
|
page?: number;
|
|
1042
1088
|
pageSize?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-domain",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Scaleway SDK domain",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"directory": "packages_generated/domain"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
29
|
+
"node": ">=20.19.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@scaleway/random-name": "5.1.
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
32
|
+
"@scaleway/random-name": "5.1.2",
|
|
33
|
+
"@scaleway/sdk-std": "1.0.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|