@scaleway/sdk 2.69.0 → 2.70.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/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/iam/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +1 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +9 -14
- package/dist/api/iam/v1alpha1/marshalling.gen.js +9 -14
- package/dist/api/iam/v1alpha1/types.gen.d.ts +8 -6
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +23 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +22 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +23 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +274 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +274 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +395 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -0
- package/dist/api/instance/v1/marshalling.gen.js +13 -0
- package/dist/api/instance/v1/types.gen.d.ts +10 -0
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +157 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +23 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +23 -1
- package/dist/api/webhosting/v1/types.gen.d.ts +51 -12
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region as ScwRegion } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion, Zone as ScwZone } from '../../../bridge';
|
|
2
2
|
export type BlocklistType = 'unknown_type' | 'mailbox_full' | 'mailbox_not_found';
|
|
3
3
|
export type DomainLastStatusAutoconfigStateReason = 'unknown_reason' | 'permission_denied' | 'domain_not_found';
|
|
4
4
|
export type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
|
|
@@ -11,6 +11,8 @@ export type ListBlocklistsRequestOrderBy = 'created_at_desc' | 'created_at_asc'
|
|
|
11
11
|
export type ListEmailsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'status_desc' | 'status_asc' | 'mail_from_desc' | 'mail_from_asc' | 'mail_rcpt_desc' | 'mail_rcpt_asc' | 'subject_desc' | 'subject_asc';
|
|
12
12
|
export type ListWebhookEventsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
13
13
|
export type ListWebhooksRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
14
|
+
export type OfferName = 'unknown_name' | 'essential' | 'scale';
|
|
15
|
+
export type PoolStatus = 'unknown_status' | 'disabled' | 'creating' | 'ready' | 'error';
|
|
14
16
|
export type ProjectSettingsPeriodicReportFrequency = 'unknown_frequency' | 'monthly' | 'weekly' | 'daily';
|
|
15
17
|
export type WebhookEventStatus = 'unknown_status' | 'sending' | 'sent' | 'failed';
|
|
16
18
|
export type WebhookEventType = 'unknown_type' | 'email_queued' | 'email_dropped' | 'email_deferred' | 'email_delivered' | 'email_spam' | 'email_mailbox_not_found' | 'email_blocklisted' | 'blocklist_created';
|
|
@@ -214,6 +216,79 @@ export interface Domain {
|
|
|
214
216
|
*/
|
|
215
217
|
region: ScwRegion;
|
|
216
218
|
}
|
|
219
|
+
export interface OfferSubscription {
|
|
220
|
+
/** ID of the offer-subscription Organization. */
|
|
221
|
+
organizationId: string;
|
|
222
|
+
/** ID of the offer-subscription Project. */
|
|
223
|
+
projectId: string;
|
|
224
|
+
/** Name of the offer associated with the Project. */
|
|
225
|
+
offerName: OfferName;
|
|
226
|
+
/** Date and time of the subscription. */
|
|
227
|
+
subscribedAt?: Date;
|
|
228
|
+
/** Date and time of the end of the offer-subscription commitment. */
|
|
229
|
+
cancellationAvailableAt?: Date;
|
|
230
|
+
/** Service Level Agreement percentage of the offer-subscription. */
|
|
231
|
+
sla: number;
|
|
232
|
+
/**
|
|
233
|
+
* Max number of domains that can be associated with the offer-subscription
|
|
234
|
+
* for a particular Project.
|
|
235
|
+
*/
|
|
236
|
+
maxDomains: number;
|
|
237
|
+
/**
|
|
238
|
+
* Max number of dedicated IPs that can be associated with the
|
|
239
|
+
* offer-subscription for a particular Project.
|
|
240
|
+
*/
|
|
241
|
+
maxDedicatedIps: number;
|
|
242
|
+
/**
|
|
243
|
+
* Max number of webhooks that can be associated with the offer-subscription
|
|
244
|
+
* for a particular Project.
|
|
245
|
+
*/
|
|
246
|
+
maxWebhooksPerDomain: number;
|
|
247
|
+
/**
|
|
248
|
+
* Max number of custom blocklists that can be associated with the
|
|
249
|
+
* offer-subscription for a particular Project.
|
|
250
|
+
*/
|
|
251
|
+
maxCustomBlocklistsPerDomain: number;
|
|
252
|
+
/** Number of emails included in the offer-subscription per month. */
|
|
253
|
+
includedMonthlyEmails: number;
|
|
254
|
+
}
|
|
255
|
+
export interface Offer {
|
|
256
|
+
/** Name of the offer. */
|
|
257
|
+
name: OfferName;
|
|
258
|
+
/** Date and time of the offer creation. */
|
|
259
|
+
createdAt?: Date;
|
|
260
|
+
/** Period of commitment. */
|
|
261
|
+
commitmentPeriod?: string;
|
|
262
|
+
/** Service Level Agreement percentage of the offer. */
|
|
263
|
+
sla: number;
|
|
264
|
+
/** Max number of checked domains that can be associated with the offer. */
|
|
265
|
+
maxDomains: number;
|
|
266
|
+
/** Max number of dedicated IPs that can be associated with the offer. */
|
|
267
|
+
maxDedicatedIps: number;
|
|
268
|
+
/** Number of emails included in the offer per month. */
|
|
269
|
+
includedMonthlyEmails: number;
|
|
270
|
+
/** Max number of webhooks that can be associated with the offer. */
|
|
271
|
+
maxWebhooksPerDomain: number;
|
|
272
|
+
/**
|
|
273
|
+
* Max number of active custom blocklists that can be associated with the
|
|
274
|
+
* offer.
|
|
275
|
+
*/
|
|
276
|
+
maxCustomBlocklistsPerDomain: number;
|
|
277
|
+
}
|
|
278
|
+
export interface Pool {
|
|
279
|
+
/** ID of the Project. */
|
|
280
|
+
projectId: string;
|
|
281
|
+
/** Status of the pool. */
|
|
282
|
+
status: PoolStatus;
|
|
283
|
+
/** Details of the pool. */
|
|
284
|
+
details?: string;
|
|
285
|
+
/** Zone of the pool. */
|
|
286
|
+
zone?: ScwZone;
|
|
287
|
+
/** IPs of the pool. */
|
|
288
|
+
ips: string[];
|
|
289
|
+
/** Reverse hostname of all IPs of the pool. */
|
|
290
|
+
reverse?: string;
|
|
291
|
+
}
|
|
217
292
|
export interface WebhookEvent {
|
|
218
293
|
/** ID of the Webhook Event. */
|
|
219
294
|
id: string;
|
|
@@ -445,6 +520,15 @@ export type GetEmailRequest = {
|
|
|
445
520
|
/** ID of the email to retrieve. */
|
|
446
521
|
emailId: string;
|
|
447
522
|
};
|
|
523
|
+
export type GetProjectConsumptionRequest = {
|
|
524
|
+
/**
|
|
525
|
+
* Region to target. If none is passed will use default region from the
|
|
526
|
+
* config.
|
|
527
|
+
*/
|
|
528
|
+
region?: ScwRegion;
|
|
529
|
+
/** ID of the project. */
|
|
530
|
+
projectId?: string;
|
|
531
|
+
};
|
|
448
532
|
export type GetProjectSettingsRequest = {
|
|
449
533
|
/**
|
|
450
534
|
* Region to target. If none is passed will use default region from the
|
|
@@ -579,6 +663,53 @@ export interface ListEmailsResponse {
|
|
|
579
663
|
/** Single page of emails matching the requested criteria. */
|
|
580
664
|
emails: Email[];
|
|
581
665
|
}
|
|
666
|
+
export type ListOfferSubscriptionsRequest = {
|
|
667
|
+
/**
|
|
668
|
+
* Region to target. If none is passed will use default region from the
|
|
669
|
+
* config.
|
|
670
|
+
*/
|
|
671
|
+
region?: ScwRegion;
|
|
672
|
+
/** ID of the Project. */
|
|
673
|
+
projectId?: string;
|
|
674
|
+
};
|
|
675
|
+
export interface ListOfferSubscriptionsResponse {
|
|
676
|
+
/** Number of offer-subscriptions matching the requested criteria. */
|
|
677
|
+
totalCount: number;
|
|
678
|
+
/** Single page of offer-subscriptions matching the requested criteria. */
|
|
679
|
+
offerSubscriptions: OfferSubscription[];
|
|
680
|
+
}
|
|
681
|
+
export type ListOffersRequest = {
|
|
682
|
+
/**
|
|
683
|
+
* Region to target. If none is passed will use default region from the
|
|
684
|
+
* config.
|
|
685
|
+
*/
|
|
686
|
+
region?: ScwRegion;
|
|
687
|
+
};
|
|
688
|
+
export interface ListOffersResponse {
|
|
689
|
+
/** Number of offers matching the requested criteria. */
|
|
690
|
+
totalCount: number;
|
|
691
|
+
/** Single page of offers matching the requested criteria. */
|
|
692
|
+
offers: Offer[];
|
|
693
|
+
}
|
|
694
|
+
export type ListPoolsRequest = {
|
|
695
|
+
/**
|
|
696
|
+
* Region to target. If none is passed will use default region from the
|
|
697
|
+
* config.
|
|
698
|
+
*/
|
|
699
|
+
region?: ScwRegion;
|
|
700
|
+
/** Requested page number. Value must be greater or equal to 1. */
|
|
701
|
+
page?: number;
|
|
702
|
+
/** Requested page size. Value must be between 1 and 1000. */
|
|
703
|
+
pageSize?: number;
|
|
704
|
+
/** ID of the Project. */
|
|
705
|
+
projectId?: string;
|
|
706
|
+
};
|
|
707
|
+
export interface ListPoolsResponse {
|
|
708
|
+
/** Number of pools matching the requested criteria. */
|
|
709
|
+
totalCount: number;
|
|
710
|
+
/** Single page of pools matching the requested criteria. */
|
|
711
|
+
pools: Pool[];
|
|
712
|
+
}
|
|
582
713
|
export type ListWebhookEventsRequest = {
|
|
583
714
|
/**
|
|
584
715
|
* Region to target. If none is passed will use default region from the
|
|
@@ -637,6 +768,20 @@ export interface ListWebhooksResponse {
|
|
|
637
768
|
/** Single page of Webhooks matching the requested criteria. */
|
|
638
769
|
webhooks: Webhook[];
|
|
639
770
|
}
|
|
771
|
+
export interface ProjectConsumption {
|
|
772
|
+
/** ID of the project. */
|
|
773
|
+
projectId: string;
|
|
774
|
+
/** Number of domains in the project. */
|
|
775
|
+
domainsCount: number;
|
|
776
|
+
/** Number of dedicated IP in the project. */
|
|
777
|
+
dedicatedIpsCount: number;
|
|
778
|
+
/** Number of emails sent during the current month in the project. */
|
|
779
|
+
monthlyEmailsCount: number;
|
|
780
|
+
/** Number of webhooks in the project. */
|
|
781
|
+
webhooksCount: number;
|
|
782
|
+
/** Number of custom blocklists in the project. */
|
|
783
|
+
customBlocklistsCount: number;
|
|
784
|
+
}
|
|
640
785
|
export interface ProjectSettings {
|
|
641
786
|
/** Information about your periodic report. */
|
|
642
787
|
periodicReport?: ProjectSettingsPeriodicReport;
|
|
@@ -693,6 +838,17 @@ export type UpdateDomainRequest = {
|
|
|
693
838
|
*/
|
|
694
839
|
autoconfig?: boolean;
|
|
695
840
|
};
|
|
841
|
+
export type UpdateOfferSubscriptionRequest = {
|
|
842
|
+
/**
|
|
843
|
+
* Region to target. If none is passed will use default region from the
|
|
844
|
+
* config.
|
|
845
|
+
*/
|
|
846
|
+
region?: ScwRegion;
|
|
847
|
+
/** ID of the Project. */
|
|
848
|
+
projectId?: string;
|
|
849
|
+
/** Name of the offer-subscription. */
|
|
850
|
+
name?: OfferName;
|
|
851
|
+
};
|
|
696
852
|
export type UpdateProjectSettingsRequest = {
|
|
697
853
|
/**
|
|
698
854
|
* Region to target. If none is passed will use default region from the
|
|
@@ -81,6 +81,15 @@ const ListEmailsRequest = {
|
|
|
81
81
|
minLength: 6
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
+
const ListPoolsRequest = {
|
|
85
|
+
page: {
|
|
86
|
+
greaterThanOrEqual: 1
|
|
87
|
+
},
|
|
88
|
+
pageSize: {
|
|
89
|
+
greaterThanOrEqual: 1,
|
|
90
|
+
lessThanOrEqual: 1e3
|
|
91
|
+
}
|
|
92
|
+
};
|
|
84
93
|
const ListWebhookEventsRequest = {
|
|
85
94
|
page: {
|
|
86
95
|
greaterThan: 0
|
|
@@ -129,6 +138,7 @@ exports.CreateWebhookRequest = CreateWebhookRequest;
|
|
|
129
138
|
exports.ListBlocklistsRequest = ListBlocklistsRequest;
|
|
130
139
|
exports.ListDomainsRequest = ListDomainsRequest;
|
|
131
140
|
exports.ListEmailsRequest = ListEmailsRequest;
|
|
141
|
+
exports.ListPoolsRequest = ListPoolsRequest;
|
|
132
142
|
exports.ListWebhookEventsRequest = ListWebhookEventsRequest;
|
|
133
143
|
exports.ListWebhooksRequest = ListWebhooksRequest;
|
|
134
144
|
exports.UpdateProjectSettingsRequestUpdatePeriodicReport = UpdateProjectSettingsRequestUpdatePeriodicReport;
|
|
@@ -79,6 +79,15 @@ export declare const ListEmailsRequest: {
|
|
|
79
79
|
minLength: number;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
+
export declare const ListPoolsRequest: {
|
|
83
|
+
page: {
|
|
84
|
+
greaterThanOrEqual: number;
|
|
85
|
+
};
|
|
86
|
+
pageSize: {
|
|
87
|
+
greaterThanOrEqual: number;
|
|
88
|
+
lessThanOrEqual: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
82
91
|
export declare const ListWebhookEventsRequest: {
|
|
83
92
|
page: {
|
|
84
93
|
greaterThan: number;
|
|
@@ -79,6 +79,15 @@ const ListEmailsRequest = {
|
|
|
79
79
|
minLength: 6
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
+
const ListPoolsRequest = {
|
|
83
|
+
page: {
|
|
84
|
+
greaterThanOrEqual: 1
|
|
85
|
+
},
|
|
86
|
+
pageSize: {
|
|
87
|
+
greaterThanOrEqual: 1,
|
|
88
|
+
lessThanOrEqual: 1e3
|
|
89
|
+
}
|
|
90
|
+
};
|
|
82
91
|
const ListWebhookEventsRequest = {
|
|
83
92
|
page: {
|
|
84
93
|
greaterThan: 0
|
|
@@ -128,6 +137,7 @@ export {
|
|
|
128
137
|
ListBlocklistsRequest,
|
|
129
138
|
ListDomainsRequest,
|
|
130
139
|
ListEmailsRequest,
|
|
140
|
+
ListPoolsRequest,
|
|
131
141
|
ListWebhookEventsRequest,
|
|
132
142
|
ListWebhooksRequest,
|
|
133
143
|
UpdateProjectSettingsRequestUpdatePeriodicReport,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
-
export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
3
|
+
export type { AutoConfigDomainDns, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -98,6 +98,19 @@ const unmarshalDnsRecords = (data) => {
|
|
|
98
98
|
status: data.status
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
const unmarshalAutoConfigDomainDns = (data) => {
|
|
102
|
+
if (!json.isJSONObject(data)) {
|
|
103
|
+
throw new TypeError(
|
|
104
|
+
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
allRecords: data.all_records,
|
|
109
|
+
mailRecords: data.mail_records,
|
|
110
|
+
nameservers: data.nameservers,
|
|
111
|
+
webRecords: data.web_records
|
|
112
|
+
};
|
|
113
|
+
};
|
|
101
114
|
const unmarshalDomain = (data) => {
|
|
102
115
|
if (!json.isJSONObject(data)) {
|
|
103
116
|
throw new TypeError(
|
|
@@ -105,8 +118,9 @@ const unmarshalDomain = (data) => {
|
|
|
105
118
|
);
|
|
106
119
|
}
|
|
107
120
|
return {
|
|
121
|
+
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
108
122
|
availableActions: data.available_actions,
|
|
109
|
-
availableDnsActions: data.available_dns_actions,
|
|
123
|
+
availableDnsActions: data.available_dns_actions ? data.available_dns_actions : void 0,
|
|
110
124
|
name: data.name,
|
|
111
125
|
owner: data.owner,
|
|
112
126
|
status: data.status
|
|
@@ -450,11 +464,18 @@ const marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({
|
|
|
450
464
|
const marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({
|
|
451
465
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
452
466
|
});
|
|
467
|
+
const marshalAutoConfigDomainDns = (request, defaults) => ({
|
|
468
|
+
all_records: request.allRecords,
|
|
469
|
+
mail_records: request.mailRecords,
|
|
470
|
+
nameservers: request.nameservers,
|
|
471
|
+
web_records: request.webRecords
|
|
472
|
+
});
|
|
453
473
|
const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
454
474
|
name: request.name,
|
|
455
475
|
type: request.type
|
|
456
476
|
});
|
|
457
477
|
const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
|
|
478
|
+
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
458
479
|
custom_records: request.customRecords !== void 0 ? request.customRecords.map(
|
|
459
480
|
(elt) => marshalSyncDomainDnsRecordsRequestRecord(elt)
|
|
460
481
|
) : void 0,
|
|
@@ -482,6 +503,7 @@ const marshalOfferOptionRequest = (request, defaults) => ({
|
|
|
482
503
|
quantity: request.quantity
|
|
483
504
|
});
|
|
484
505
|
const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
|
|
506
|
+
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
485
507
|
domain: request.domain,
|
|
486
508
|
domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(
|
|
487
509
|
request.domainConfiguration
|
|
@@ -96,6 +96,19 @@ const unmarshalDnsRecords = (data) => {
|
|
|
96
96
|
status: data.status
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
+
const unmarshalAutoConfigDomainDns = (data) => {
|
|
100
|
+
if (!isJSONObject(data)) {
|
|
101
|
+
throw new TypeError(
|
|
102
|
+
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
allRecords: data.all_records,
|
|
107
|
+
mailRecords: data.mail_records,
|
|
108
|
+
nameservers: data.nameservers,
|
|
109
|
+
webRecords: data.web_records
|
|
110
|
+
};
|
|
111
|
+
};
|
|
99
112
|
const unmarshalDomain = (data) => {
|
|
100
113
|
if (!isJSONObject(data)) {
|
|
101
114
|
throw new TypeError(
|
|
@@ -103,8 +116,9 @@ const unmarshalDomain = (data) => {
|
|
|
103
116
|
);
|
|
104
117
|
}
|
|
105
118
|
return {
|
|
119
|
+
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
106
120
|
availableActions: data.available_actions,
|
|
107
|
-
availableDnsActions: data.available_dns_actions,
|
|
121
|
+
availableDnsActions: data.available_dns_actions ? data.available_dns_actions : void 0,
|
|
108
122
|
name: data.name,
|
|
109
123
|
owner: data.owner,
|
|
110
124
|
status: data.status
|
|
@@ -448,11 +462,18 @@ const marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({
|
|
|
448
462
|
const marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({
|
|
449
463
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
450
464
|
});
|
|
465
|
+
const marshalAutoConfigDomainDns = (request, defaults) => ({
|
|
466
|
+
all_records: request.allRecords,
|
|
467
|
+
mail_records: request.mailRecords,
|
|
468
|
+
nameservers: request.nameservers,
|
|
469
|
+
web_records: request.webRecords
|
|
470
|
+
});
|
|
451
471
|
const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
452
472
|
name: request.name,
|
|
453
473
|
type: request.type
|
|
454
474
|
});
|
|
455
475
|
const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
|
|
476
|
+
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
456
477
|
custom_records: request.customRecords !== void 0 ? request.customRecords.map(
|
|
457
478
|
(elt) => marshalSyncDomainDnsRecordsRequestRecord(elt)
|
|
458
479
|
) : void 0,
|
|
@@ -480,6 +501,7 @@ const marshalOfferOptionRequest = (request, defaults) => ({
|
|
|
480
501
|
quantity: request.quantity
|
|
481
502
|
});
|
|
482
503
|
const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
|
|
504
|
+
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
483
505
|
domain: request.domain,
|
|
484
506
|
domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(
|
|
485
507
|
request.domainConfiguration
|
|
@@ -58,6 +58,19 @@ export interface CreateDatabaseRequestUser {
|
|
|
58
58
|
username: string;
|
|
59
59
|
password: string;
|
|
60
60
|
}
|
|
61
|
+
export interface AutoConfigDomainDns {
|
|
62
|
+
/** Whether or not to synchronize domain nameservers. */
|
|
63
|
+
nameservers: boolean;
|
|
64
|
+
/** Whether or not to synchronize web records. */
|
|
65
|
+
webRecords: boolean;
|
|
66
|
+
/** Whether or not to synchronize mail records. */
|
|
67
|
+
mailRecords: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether or not to synchronize all types of records. Takes priority over the
|
|
70
|
+
* other fields.
|
|
71
|
+
*/
|
|
72
|
+
allRecords: boolean;
|
|
73
|
+
}
|
|
61
74
|
export interface CreateHostingRequestDomainConfiguration {
|
|
62
75
|
updateNameservers: boolean;
|
|
63
76
|
updateWebRecord: boolean;
|
|
@@ -461,16 +474,30 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
|
|
|
461
474
|
region?: ScwRegion;
|
|
462
475
|
/** Domain for which the DNS records will be synchronized. */
|
|
463
476
|
domain: string;
|
|
464
|
-
/**
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated Whether or not to synchronize the web records (deprecated, use
|
|
479
|
+
* auto_config_domain_dns).
|
|
480
|
+
*/
|
|
481
|
+
updateWebRecords?: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* @deprecated Whether or not to synchronize the mail records (deprecated, use
|
|
484
|
+
* auto_config_domain_dns).
|
|
485
|
+
*/
|
|
486
|
+
updateMailRecords?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* @deprecated Whether or not to synchronize all types of records. This one
|
|
489
|
+
* has priority (deprecated, use auto_config_domain_dns).
|
|
490
|
+
*/
|
|
491
|
+
updateAllRecords?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* @deprecated Whether or not to synchronize domain nameservers (deprecated,
|
|
494
|
+
* use auto_config_domain_dns).
|
|
495
|
+
*/
|
|
496
|
+
updateNameservers?: boolean;
|
|
472
497
|
/** Custom records to synchronize. */
|
|
473
498
|
customRecords?: SyncDomainDnsRecordsRequestRecord[];
|
|
499
|
+
/** Whether or not to synchronize each types of records. */
|
|
500
|
+
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
474
501
|
};
|
|
475
502
|
export interface DnsRecords {
|
|
476
503
|
/** List of DNS records. */
|
|
@@ -491,8 +518,13 @@ export interface Domain {
|
|
|
491
518
|
owner: DomainZoneOwner;
|
|
492
519
|
/** A list of actions that can be performed on the domain. */
|
|
493
520
|
availableActions: DomainAction[];
|
|
494
|
-
/**
|
|
495
|
-
|
|
521
|
+
/**
|
|
522
|
+
* @deprecated A list of DNS-related actions that can be auto configured for
|
|
523
|
+
* the domain (deprecated, use auto_config_domain_dns instead).
|
|
524
|
+
*/
|
|
525
|
+
availableDnsActions?: DomainDnsAction[];
|
|
526
|
+
/** Whether or not to synchronize each type of record. */
|
|
527
|
+
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
496
528
|
}
|
|
497
529
|
export type FtpAccountApiChangeFtpAccountPasswordRequest = {
|
|
498
530
|
/**
|
|
@@ -609,8 +641,9 @@ export type HostingApiCreateHostingRequest = {
|
|
|
609
641
|
/** Default language for the control panel interface. */
|
|
610
642
|
language?: StdLanguageCode;
|
|
611
643
|
/**
|
|
612
|
-
* Indicates whether to update hosting domain name servers and DNS
|
|
613
|
-
* domains managed by Scaleway Elements
|
|
644
|
+
* @deprecated Indicates whether to update hosting domain name servers and DNS
|
|
645
|
+
* records for domains managed by Scaleway Elements (deprecated, use
|
|
646
|
+
* auto_config_domain_dns instead).
|
|
614
647
|
*/
|
|
615
648
|
domainConfiguration?: CreateHostingRequestDomainConfiguration;
|
|
616
649
|
/**
|
|
@@ -618,6 +651,12 @@ export type HostingApiCreateHostingRequest = {
|
|
|
618
651
|
* hosting info.
|
|
619
652
|
*/
|
|
620
653
|
skipWelcomeEmail?: boolean;
|
|
654
|
+
/**
|
|
655
|
+
* Indicates whether to update hosting domain name servers and DNS records for
|
|
656
|
+
* domains managed by Scaleway Elements (deprecated, use auto_update_* fields
|
|
657
|
+
* instead).
|
|
658
|
+
*/
|
|
659
|
+
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
621
660
|
};
|
|
622
661
|
export type HostingApiCreateSessionRequest = {
|
|
623
662
|
/**
|
package/dist/scw/constants.cjs
CHANGED
package/dist/scw/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v2.
|
|
2
|
-
export declare const userAgent = "scaleway-sdk-js/v2.
|
|
1
|
+
export declare const version = "v2.69.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.69.0";
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.70.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bundledDependencies": [
|
|
40
40
|
"@scaleway/random-name"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "5edf3a36158f71863fe38a4858dee0728c16c00c"
|
|
43
43
|
}
|