@scaleway/sdk 2.61.0 → 2.63.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/index.gen.d.ts +2 -2
- package/dist/api/account/v2/index.gen.d.ts +1 -1
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +53 -1
- package/dist/api/account/v3/api.gen.js +108 -2
- package/dist/api/account/v3/index.gen.cjs +1 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -3
- package/dist/api/account/v3/index.gen.js +2 -1
- package/dist/api/account/v3/marshalling.gen.cjs +71 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -1
- package/dist/api/account/v3/marshalling.gen.js +71 -0
- package/dist/api/account/v3/types.gen.d.ts +81 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +22 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +19 -0
- package/dist/api/account/v3/validation-rules.gen.js +22 -0
- package/dist/api/applesilicon/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/audit_trail/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/baremetal/index.gen.d.ts +2 -2
- package/dist/api/baremetal/v1/api.utils.d.ts +2 -2
- package/dist/api/baremetal/v1/index.d.ts +4 -4
- package/dist/api/baremetal/v1/index.gen.d.ts +3 -3
- package/dist/api/baremetal/v3/index.gen.d.ts +2 -2
- package/dist/api/billing/index.gen.d.ts +2 -2
- package/dist/api/billing/v2alpha1/index.gen.d.ts +1 -1
- package/dist/api/billing/v2beta1/index.gen.d.ts +1 -1
- package/dist/api/block/index.gen.d.ts +1 -1
- package/dist/api/block/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/cockpit/index.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/index.gen.d.ts +2 -2
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +2 -2
- package/dist/api/container/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/index.gen.d.ts +3 -3
- package/dist/api/dedibox/index.gen.d.ts +1 -1
- package/dist/api/dedibox/v1/index.gen.d.ts +3 -3
- package/dist/api/document_db/index.gen.d.ts +1 -1
- package/dist/api/document_db/v1beta1/index.gen.d.ts +3 -3
- package/dist/api/domain/index.gen.d.ts +1 -1
- package/dist/api/domain/v2beta1/index.gen.d.ts +2 -2
- package/dist/api/edge_services/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/flexibleip/index.gen.d.ts +1 -1
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/function/index.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/index.gen.d.ts +3 -3
- package/dist/api/iam/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/api.gen.cjs +46 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +24 -1
- package/dist/api/iam/v1alpha1/api.gen.js +47 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +27 -2
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +28 -3
- package/dist/api/iam/v1alpha1/types.gen.d.ts +21 -5
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +5 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +7 -1
- package/dist/api/index.d.ts +16 -16
- package/dist/api/index.gen.d.ts +41 -41
- package/dist/api/inference/index.gen.d.ts +1 -1
- package/dist/api/inference/v1beta1/index.gen.d.ts +3 -3
- package/dist/api/instance/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/api.utils.d.ts +2 -2
- package/dist/api/instance/v1/index.d.ts +2 -2
- package/dist/api/instance/v1/index.gen.d.ts +2 -2
- package/dist/api/interlink/index.gen.d.ts +1 -1
- package/dist/api/interlink/v1beta1/index.gen.d.ts +2 -2
- package/dist/api/iot/index.gen.d.ts +1 -1
- package/dist/api/iot/v1/index.gen.d.ts +2 -2
- package/dist/api/ipam/index.gen.d.ts +1 -1
- package/dist/api/ipam/v1/index.gen.d.ts +2 -2
- package/dist/api/ipfs/index.gen.d.ts +1 -1
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/jobs/index.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -1
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -1
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +1 -0
- package/dist/api/k8s/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/api.utils.d.ts +1 -1
- package/dist/api/k8s/v1/index.d.ts +3 -3
- package/dist/api/k8s/v1/index.gen.d.ts +3 -3
- package/dist/api/key_manager/index.gen.d.ts +1 -1
- package/dist/api/key_manager/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/lb/index.gen.d.ts +1 -1
- package/dist/api/lb/v1/api.utils.d.ts +2 -2
- package/dist/api/lb/v1/index.d.ts +2 -2
- package/dist/api/lb/v1/index.gen.d.ts +2 -2
- package/dist/api/llm_inference/index.gen.d.ts +1 -1
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +3 -3
- package/dist/api/marketplace/index.gen.d.ts +1 -1
- package/dist/api/marketplace/v2/index.gen.d.ts +1 -1
- package/dist/api/mnq/index.gen.d.ts +1 -1
- package/dist/api/mnq/v1beta1/index.gen.d.ts +2 -2
- package/dist/api/mongodb/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/qaas/index.gen.d.ts +1 -1
- package/dist/api/qaas/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/rdb/index.gen.d.ts +1 -1
- package/dist/api/rdb/v1/index.gen.d.ts +3 -3
- package/dist/api/redis/index.gen.d.ts +1 -1
- package/dist/api/redis/v1/index.gen.d.ts +2 -2
- package/dist/api/registry/index.gen.d.ts +1 -1
- package/dist/api/registry/v1/index.gen.d.ts +2 -2
- package/dist/api/secret/index.gen.d.ts +2 -2
- package/dist/api/secret/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/index.gen.d.ts +1 -1
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +3 -3
- package/dist/api/tem/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/api.gen.cjs +54 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +27 -1
- package/dist/api/tem/v1alpha1/api.gen.js +55 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +4 -4
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +48 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +48 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +84 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +16 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +14 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +16 -0
- package/dist/api/test/index.gen.d.ts +1 -1
- package/dist/api/test/v1/index.gen.d.ts +2 -2
- package/dist/api/vpc/index.gen.d.ts +2 -2
- package/dist/api/vpc/v1/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/index.gen.d.ts +2 -2
- package/dist/api/vpcgw/index.gen.d.ts +2 -2
- package/dist/api/vpcgw/v1/index.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/index.gen.d.ts +2 -2
- package/dist/api/webhosting/index.gen.d.ts +2 -2
- package/dist/api/webhosting/v1/index.gen.d.ts +3 -3
- package/dist/api/webhosting/v1/marshalling.gen.cjs +1 -0
- package/dist/api/webhosting/v1/marshalling.gen.js +1 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +5 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +3 -3
- package/dist/bridge.d.ts +10 -10
- package/dist/index.d.ts +11 -11
- package/dist/internal/logger/console-logger.d.ts +1 -1
- package/dist/internal/logger/index.d.ts +1 -1
- package/dist/internal/logger/logger.d.ts +1 -1
- package/dist/internals.d.ts +10 -10
- package/dist/scw/api.d.ts +1 -1
- package/dist/scw/auth.d.ts +1 -1
- package/dist/scw/client-ini-factory.d.ts +3 -3
- package/dist/scw/client-settings.d.ts +1 -1
- package/dist/scw/client.d.ts +3 -3
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.d.ts +2 -2
- package/dist/scw/errors/error-parser.d.ts +2 -2
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +4 -4
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +3 -3
- package/dist/scw/errors/scw-error-from-json.d.ts +2 -2
- package/dist/scw/errors/scw-error.d.ts +1 -1
- package/dist/scw/errors/standard/already-exists-error.d.ts +2 -2
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +2 -2
- package/dist/scw/errors/standard/index.d.ts +17 -17
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +2 -2
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +2 -2
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +2 -2
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +2 -2
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +2 -2
- package/dist/scw/errors/standard/resource-expired-error.d.ts +2 -2
- package/dist/scw/errors/standard/resource-locked-error.d.ts +2 -2
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +2 -2
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +2 -2
- package/dist/scw/errors/standard/transient-state-error.d.ts +2 -2
- package/dist/scw/fetch/build-fetcher.d.ts +1 -1
- package/node_modules/@scaleway/random-name/CHANGELOG.md +6 -0
- package/node_modules/@scaleway/random-name/dist/index.cjs +0 -2
- package/node_modules/@scaleway/random-name/dist/index.js +0 -2
- package/node_modules/@scaleway/random-name/package.json +2 -1
- package/package.json +4 -4
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Region } from '../../../bridge';
|
|
2
|
+
export type BlocklistType = 'unknown_type' | 'mailbox_full' | 'mailbox_not_found';
|
|
2
3
|
export type DomainLastStatusAutoconfigStateReason = 'unknown_reason' | 'permission_denied' | 'domain_not_found';
|
|
3
4
|
export type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
|
|
4
5
|
export type DomainReputationStatus = 'unknown_status' | 'excellent' | 'good' | 'average' | 'bad';
|
|
5
6
|
export type DomainStatus = 'unknown' | 'checked' | 'unchecked' | 'invalid' | 'locked' | 'revoked' | 'pending' | 'autoconfiguring';
|
|
6
|
-
export type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam' | 'mailbox_full' | 'mailbox_not_found' | 'greylisted' | 'send_before_expiration';
|
|
7
|
+
export type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam' | 'mailbox_full' | 'mailbox_not_found' | 'greylisted' | 'send_before_expiration' | 'blocklisted';
|
|
7
8
|
export type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc';
|
|
8
9
|
export type EmailStatus = 'unknown' | 'new' | 'sending' | 'sent' | 'failed' | 'canceled';
|
|
10
|
+
export type ListBlocklistsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'ends_at_desc' | 'ends_at_asc';
|
|
9
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';
|
|
10
12
|
export type ListWebhookEventsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
11
13
|
export type ListWebhooksRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
@@ -60,6 +62,29 @@ export interface DomainStatistics {
|
|
|
60
62
|
failedCount: number;
|
|
61
63
|
canceledCount: number;
|
|
62
64
|
}
|
|
65
|
+
export interface Blocklist {
|
|
66
|
+
/** ID of the blocklist. */
|
|
67
|
+
id: string;
|
|
68
|
+
/** Domain ID linked to the blocklist. */
|
|
69
|
+
domainId: string;
|
|
70
|
+
/** Date and time of the blocklist creation. */
|
|
71
|
+
createdAt?: Date;
|
|
72
|
+
/** Date and time of the blocklist's last update. */
|
|
73
|
+
updatedAt?: Date;
|
|
74
|
+
/** Date and time when the blocklist ends. Empty if the blocklist has no end. */
|
|
75
|
+
endsAt?: Date;
|
|
76
|
+
/** Email blocked by the blocklist. */
|
|
77
|
+
email: string;
|
|
78
|
+
/** Type of block for this email. */
|
|
79
|
+
type: BlocklistType;
|
|
80
|
+
/** Reason to block this email. */
|
|
81
|
+
reason: string;
|
|
82
|
+
/**
|
|
83
|
+
* True if this blocklist was created manually. False for an automatic
|
|
84
|
+
* Transactional Email blocklist.
|
|
85
|
+
*/
|
|
86
|
+
custom: boolean;
|
|
87
|
+
}
|
|
63
88
|
export interface CreateEmailRequestAddress {
|
|
64
89
|
/** Email address. */
|
|
65
90
|
email: string;
|
|
@@ -259,6 +284,25 @@ export interface UpdateProjectSettingsRequestUpdatePeriodicReport {
|
|
|
259
284
|
*/
|
|
260
285
|
sendingDay?: number;
|
|
261
286
|
}
|
|
287
|
+
export type BulkCreateBlocklistsRequest = {
|
|
288
|
+
/**
|
|
289
|
+
* Region to target. If none is passed will use default region from the
|
|
290
|
+
* config.
|
|
291
|
+
*/
|
|
292
|
+
region?: Region;
|
|
293
|
+
/** Domain ID linked to the blocklist. */
|
|
294
|
+
domainId: string;
|
|
295
|
+
/** Email blocked by the blocklist. */
|
|
296
|
+
emails?: string[];
|
|
297
|
+
/** Type of blocklist. */
|
|
298
|
+
type?: BlocklistType;
|
|
299
|
+
/** Reason to block the email. */
|
|
300
|
+
reason?: string;
|
|
301
|
+
};
|
|
302
|
+
export interface BulkCreateBlocklistsResponse {
|
|
303
|
+
/** List of blocklist created. */
|
|
304
|
+
blocklists: Blocklist[];
|
|
305
|
+
}
|
|
262
306
|
export type CancelEmailRequest = {
|
|
263
307
|
/**
|
|
264
308
|
* Region to target. If none is passed will use default region from the
|
|
@@ -342,6 +386,15 @@ export type CreateWebhookRequest = {
|
|
|
342
386
|
/** Scaleway SNS ARN topic to push the events to. */
|
|
343
387
|
snsArn: string;
|
|
344
388
|
};
|
|
389
|
+
export type DeleteBlocklistRequest = {
|
|
390
|
+
/**
|
|
391
|
+
* Region to target. If none is passed will use default region from the
|
|
392
|
+
* config.
|
|
393
|
+
*/
|
|
394
|
+
region?: Region;
|
|
395
|
+
/** ID of the blocklist to delete. */
|
|
396
|
+
blocklistId: string;
|
|
397
|
+
};
|
|
345
398
|
export type DeleteWebhookRequest = {
|
|
346
399
|
/**
|
|
347
400
|
* Region to target. If none is passed will use default region from the
|
|
@@ -430,6 +483,36 @@ export type GetWebhookRequest = {
|
|
|
430
483
|
/** ID of the Webhook to check. */
|
|
431
484
|
webhookId: string;
|
|
432
485
|
};
|
|
486
|
+
export type ListBlocklistsRequest = {
|
|
487
|
+
/**
|
|
488
|
+
* Region to target. If none is passed will use default region from the
|
|
489
|
+
* config.
|
|
490
|
+
*/
|
|
491
|
+
region?: Region;
|
|
492
|
+
/** (Optional) List blocklist corresponding to specific criteria. */
|
|
493
|
+
orderBy?: ListBlocklistsRequestOrderBy;
|
|
494
|
+
/** (Optional) Requested page number. Value must be greater or equal to 1. */
|
|
495
|
+
page?: number;
|
|
496
|
+
/** (Optional) Requested page size. Value must be between 1 and 100. */
|
|
497
|
+
pageSize?: number;
|
|
498
|
+
/** (Optional) Filter by a domain ID. */
|
|
499
|
+
domainId: string;
|
|
500
|
+
/** (Optional) Filter by an email address. */
|
|
501
|
+
email?: string;
|
|
502
|
+
/** (Optional) Filter by a blocklist type. */
|
|
503
|
+
type?: BlocklistType;
|
|
504
|
+
/**
|
|
505
|
+
* (Optional) Filter by custom blocklist (true) or automatic Transactional
|
|
506
|
+
* Email blocklist (false).
|
|
507
|
+
*/
|
|
508
|
+
custom?: boolean;
|
|
509
|
+
};
|
|
510
|
+
export interface ListBlocklistsResponse {
|
|
511
|
+
/** Number of blocklists matching the requested criteria. */
|
|
512
|
+
totalCount: number;
|
|
513
|
+
/** Single page of blocklists matching the requested criteria. */
|
|
514
|
+
blocklists: Blocklist[];
|
|
515
|
+
}
|
|
433
516
|
export type ListDomainsRequest = {
|
|
434
517
|
/**
|
|
435
518
|
* Region to target. If none is passed will use default region from the
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const BulkCreateBlocklistsRequest = {
|
|
4
|
+
reason: {
|
|
5
|
+
maxLength: 200
|
|
6
|
+
}
|
|
7
|
+
};
|
|
3
8
|
const CreateDomainRequest = {
|
|
4
9
|
domainName: {
|
|
5
10
|
maxLength: 255,
|
|
@@ -42,6 +47,15 @@ const CreateWebhookRequest = {
|
|
|
42
47
|
minLength: 3
|
|
43
48
|
}
|
|
44
49
|
};
|
|
50
|
+
const ListBlocklistsRequest = {
|
|
51
|
+
page: {
|
|
52
|
+
greaterThan: 0
|
|
53
|
+
},
|
|
54
|
+
pageSize: {
|
|
55
|
+
greaterThanOrEqual: 1,
|
|
56
|
+
lessThanOrEqual: 100
|
|
57
|
+
}
|
|
58
|
+
};
|
|
45
59
|
const ListDomainsRequest = {
|
|
46
60
|
page: {
|
|
47
61
|
greaterThan: 0
|
|
@@ -105,12 +119,14 @@ const UpdateWebhookRequest = {
|
|
|
105
119
|
minLength: 3
|
|
106
120
|
}
|
|
107
121
|
};
|
|
122
|
+
exports.BulkCreateBlocklistsRequest = BulkCreateBlocklistsRequest;
|
|
108
123
|
exports.CreateDomainRequest = CreateDomainRequest;
|
|
109
124
|
exports.CreateEmailRequest = CreateEmailRequest;
|
|
110
125
|
exports.CreateEmailRequestAddress = CreateEmailRequestAddress;
|
|
111
126
|
exports.CreateEmailRequestAttachment = CreateEmailRequestAttachment;
|
|
112
127
|
exports.CreateEmailRequestHeader = CreateEmailRequestHeader;
|
|
113
128
|
exports.CreateWebhookRequest = CreateWebhookRequest;
|
|
129
|
+
exports.ListBlocklistsRequest = ListBlocklistsRequest;
|
|
114
130
|
exports.ListDomainsRequest = ListDomainsRequest;
|
|
115
131
|
exports.ListEmailsRequest = ListEmailsRequest;
|
|
116
132
|
exports.ListWebhookEventsRequest = ListWebhookEventsRequest;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare const BulkCreateBlocklistsRequest: {
|
|
2
|
+
reason: {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
1
6
|
export declare const CreateDomainRequest: {
|
|
2
7
|
domainName: {
|
|
3
8
|
maxLength: number;
|
|
@@ -40,6 +45,15 @@ export declare const CreateWebhookRequest: {
|
|
|
40
45
|
minLength: number;
|
|
41
46
|
};
|
|
42
47
|
};
|
|
48
|
+
export declare const ListBlocklistsRequest: {
|
|
49
|
+
page: {
|
|
50
|
+
greaterThan: number;
|
|
51
|
+
};
|
|
52
|
+
pageSize: {
|
|
53
|
+
greaterThanOrEqual: number;
|
|
54
|
+
lessThanOrEqual: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
43
57
|
export declare const ListDomainsRequest: {
|
|
44
58
|
page: {
|
|
45
59
|
greaterThan: number;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const BulkCreateBlocklistsRequest = {
|
|
2
|
+
reason: {
|
|
3
|
+
maxLength: 200
|
|
4
|
+
}
|
|
5
|
+
};
|
|
1
6
|
const CreateDomainRequest = {
|
|
2
7
|
domainName: {
|
|
3
8
|
maxLength: 255,
|
|
@@ -40,6 +45,15 @@ const CreateWebhookRequest = {
|
|
|
40
45
|
minLength: 3
|
|
41
46
|
}
|
|
42
47
|
};
|
|
48
|
+
const ListBlocklistsRequest = {
|
|
49
|
+
page: {
|
|
50
|
+
greaterThan: 0
|
|
51
|
+
},
|
|
52
|
+
pageSize: {
|
|
53
|
+
greaterThanOrEqual: 1,
|
|
54
|
+
lessThanOrEqual: 100
|
|
55
|
+
}
|
|
56
|
+
};
|
|
43
57
|
const ListDomainsRequest = {
|
|
44
58
|
page: {
|
|
45
59
|
greaterThan: 0
|
|
@@ -104,12 +118,14 @@ const UpdateWebhookRequest = {
|
|
|
104
118
|
}
|
|
105
119
|
};
|
|
106
120
|
export {
|
|
121
|
+
BulkCreateBlocklistsRequest,
|
|
107
122
|
CreateDomainRequest,
|
|
108
123
|
CreateEmailRequest,
|
|
109
124
|
CreateEmailRequestAddress,
|
|
110
125
|
CreateEmailRequestAttachment,
|
|
111
126
|
CreateEmailRequestHeader,
|
|
112
127
|
CreateWebhookRequest,
|
|
128
|
+
ListBlocklistsRequest,
|
|
113
129
|
ListDomainsRequest,
|
|
114
130
|
ListEmailsRequest,
|
|
115
131
|
ListWebhookEventsRequest,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
3
|
export type { CreateHumanRequest, DeleteHumanRequest, EyeColors, GetHumanRequest, Human, HumanStatus, ListHumansRequest, ListHumansRequestOrderBy, ListHumansResponse, RegisterRequest, RegisterResponse, RunHumanRequest, SmokeHumanRequest, UpdateHumanRequest, } from './types.gen';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export type { CreatePrivateNetworkRequest, DeletePrivateNetworkRequest, GetPrivateNetworkRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, PrivateNetwork, UpdatePrivateNetworkRequest, } from './types.gen';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export type { AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableDHCPRequest, EnableRoutingRequest, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, MigrateZonalPrivateNetworksRequest, PrivateNetwork, Route, SetSubnetsRequest, SetSubnetsResponse, Subnet, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC, } from './types.gen';
|
|
3
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
3
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
3
|
export type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayNetworkRequestIpamConfig, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, DHCPEntryType, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, EnableIPMobilityRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, IpamConfig, ListDHCPEntriesRequest, ListDHCPEntriesRequestOrderBy, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsRequestOrderBy, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPATRulesRequest, ListPATRulesRequestOrderBy, ListPATRulesResponse, PATRule, PATRuleProtocol, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesRequestEntry, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesRequestRule, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayNetworkRequestIpamConfig, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest, } from './types.gen';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
3
|
export type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteBastionAllowedIPsRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPatRulesRequest, ListPatRulesRequestOrderBy, ListPatRulesResponse, PatRule, PatRuleProtocol, RefreshSSHKeysRequest, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesRequestRule, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest, } from './types.gen';
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* This file is automatically generated from /scripts/generate.js PLEASE DO NOT
|
|
3
3
|
* EDIT HERE
|
|
4
4
|
*/
|
|
5
|
-
export * as v1 from './v1/index.gen';
|
|
6
|
-
export * as v1alpha1 from './v1alpha1/index.gen';
|
|
5
|
+
export * as v1 from './v1/index.gen.js';
|
|
6
|
+
export * as v1alpha1 from './v1alpha1/index.gen.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
1
|
+
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
3
|
export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingSummaryStatus, 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, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
4
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
4
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -82,6 +82,11 @@ export interface DnsRecord {
|
|
|
82
82
|
priority?: number;
|
|
83
83
|
/** Record status. */
|
|
84
84
|
status: DnsRecordStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Record representation as it appears in the zone file or DNS management
|
|
87
|
+
* system.
|
|
88
|
+
*/
|
|
89
|
+
rawData: string;
|
|
85
90
|
}
|
|
86
91
|
export interface Nameserver {
|
|
87
92
|
/** Hostname of the nameserver. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API, ClassicMailAPI } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
1
|
+
export { API, ClassicMailAPI } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
3
|
export type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiDeleteMailboxRequest, ClassicMailApiGetMailboxRequest, ClassicMailApiListMailboxesRequest, ClassicMailApiUpdateMailboxRequest, ControlPanel, CreateHostingRequest, CreateHostingRequestDomainConfiguration, CreateSessionRequest, DeleteHostingRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, EmailAddress, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, HostingCpanelUrls, HostingDnsStatus, HostingOption, HostingStatus, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailboxesResponse, ListOffersRequest, ListOffersRequestOrderBy, ListOffersResponse, Mailbox, Nameserver, NameserverStatus, Offer, OfferProduct, OfferQuotaWarning, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest, } from './types.gen';
|
|
4
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
4
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/bridge.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** List all helpers required by APIs */
|
|
2
|
-
export { isJSONObject } from './helpers/json';
|
|
3
|
-
export { waitForResource } from './internal/async/interval-retrier';
|
|
4
|
-
export type { WaitForOptions } from './internal/async/interval-retrier';
|
|
5
|
-
export { API } from './scw/api';
|
|
6
|
-
export type { DefaultValues } from './scw/client-settings';
|
|
7
|
-
export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types';
|
|
8
|
-
export { Decimal } from './scw/custom-types';
|
|
9
|
-
export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, marshalBlobToScwFile, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling';
|
|
10
|
-
export { enrichForPagination } from './scw/fetch/resource-paginator';
|
|
2
|
+
export { isJSONObject } from './helpers/json.js';
|
|
3
|
+
export { waitForResource } from './internal/async/interval-retrier.js';
|
|
4
|
+
export type { WaitForOptions } from './internal/async/interval-retrier.js';
|
|
5
|
+
export { API } from './scw/api.js';
|
|
6
|
+
export type { DefaultValues } from './scw/client-settings.js';
|
|
7
|
+
export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types.js';
|
|
8
|
+
export { Decimal } from './scw/custom-types.js';
|
|
9
|
+
export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, marshalBlobToScwFile, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling.js';
|
|
10
|
+
export { enrichForPagination } from './scw/fetch/resource-paginator.js';
|
|
11
11
|
export type { Region, Zone } from './scw/locality';
|
|
12
|
-
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
|
|
12
|
+
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export type { WaitForOptions, WaitForStopCondition, } from './internal/async/interval-retrier';
|
|
1
|
+
export type { WaitForOptions, WaitForStopCondition, } from './internal/async/interval-retrier.js';
|
|
2
2
|
export type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor, ResponseErrorInterceptor, } from './internal/interceptors/types';
|
|
3
|
-
export { enableConsoleLogger, setLogger } from './internal/logger';
|
|
3
|
+
export { enableConsoleLogger, setLogger } from './internal/logger/index.js';
|
|
4
4
|
export type { Logger } from './internal/logger/logger';
|
|
5
|
-
export { createClient, createAdvancedClient } from './scw/client';
|
|
6
|
-
export type { Client } from './scw/client';
|
|
7
|
-
export type { Profile } from './scw/client-ini-profile';
|
|
8
|
-
export type { Settings } from './scw/client-settings';
|
|
9
|
-
export { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix, } from './scw/client-ini-factory';
|
|
10
|
-
export type { ClientConfig } from './scw/client-ini-factory';
|
|
11
|
-
export { Decimal } from './scw/custom-types';
|
|
12
|
-
export type { Money, ScwFile, TimeSeries } from './scw/custom-types';
|
|
13
|
-
export * as Errors from './scw/errors/standard';
|
|
5
|
+
export { createClient, createAdvancedClient } from './scw/client.js';
|
|
6
|
+
export type { Client } from './scw/client.js';
|
|
7
|
+
export type { Profile } from './scw/client-ini-profile.js';
|
|
8
|
+
export type { Settings } from './scw/client-settings.js';
|
|
9
|
+
export { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix, } from './scw/client-ini-factory.js';
|
|
10
|
+
export type { ClientConfig } from './scw/client-ini-factory.js';
|
|
11
|
+
export { Decimal } from './scw/custom-types.js';
|
|
12
|
+
export type { Money, ScwFile, TimeSeries } from './scw/custom-types.js';
|
|
13
|
+
export * as Errors from './scw/errors/standard/index.js';
|
|
14
14
|
export type { Region, Zone } from './scw/locality';
|
|
15
15
|
export * from './internals';
|
|
16
16
|
export * from './api';
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { isJSONObject } from './helpers/json';
|
|
2
|
-
export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource, } from './internal/async/interval-retrier';
|
|
3
|
-
export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers';
|
|
4
|
-
export { API } from './scw/api';
|
|
5
|
-
export { authenticateWithSessionToken } from './scw/auth';
|
|
6
|
-
export type { DefaultValues } from './scw/client-settings';
|
|
7
|
-
export { marshalDecimal, marshalScwFile, marshalMoney, marshalTimeSeries, marshalBlobToScwFile, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling';
|
|
8
|
-
export type { ServiceInfo } from './scw/custom-types';
|
|
9
|
-
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
|
|
10
|
-
export { enrichForPagination } from './scw/fetch/resource-paginator';
|
|
1
|
+
export { isJSONObject } from './helpers/json.js';
|
|
2
|
+
export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource, } from './internal/async/interval-retrier.js';
|
|
3
|
+
export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers.js';
|
|
4
|
+
export { API } from './scw/api.js';
|
|
5
|
+
export { authenticateWithSessionToken } from './scw/auth.js';
|
|
6
|
+
export type { DefaultValues } from './scw/client-settings.js';
|
|
7
|
+
export { marshalDecimal, marshalScwFile, marshalMoney, marshalTimeSeries, marshalBlobToScwFile, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling.js';
|
|
8
|
+
export type { ServiceInfo } from './scw/custom-types.js';
|
|
9
|
+
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
|
|
10
|
+
export { enrichForPagination } from './scw/fetch/resource-paginator.js';
|
package/dist/scw/api.d.ts
CHANGED
package/dist/scw/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestInterceptor } from '../internal/interceptors/types';
|
|
2
|
-
import type { AuthenticationSecrets } from './client-ini-profile';
|
|
2
|
+
import type { AuthenticationSecrets } from './client-ini-profile.js';
|
|
3
3
|
interface TokenAccessor {
|
|
4
4
|
(): Promise<string | undefined>;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NetworkInterceptors } from '../index';
|
|
2
|
-
import type { Profile } from './client-ini-profile';
|
|
3
|
-
import type { Settings } from './client-settings';
|
|
1
|
+
import type { NetworkInterceptors } from '../index.js';
|
|
2
|
+
import type { Profile } from './client-ini-profile.js';
|
|
3
|
+
import type { Settings } from './client-settings.js';
|
|
4
4
|
/**
|
|
5
5
|
* A factory to build {@link Settings}.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor } from '../internal/interceptors/types';
|
|
2
|
-
import type { ProfileDefaultValues } from './client-ini-profile';
|
|
2
|
+
import type { ProfileDefaultValues } from './client-ini-profile.js';
|
|
3
3
|
/**
|
|
4
4
|
* Holds default values of settings.
|
|
5
5
|
*
|
package/dist/scw/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ClientConfig } from './client-ini-factory';
|
|
2
|
-
import type { Settings } from './client-settings';
|
|
3
|
-
import type { Fetcher } from './fetch/build-fetcher';
|
|
1
|
+
import type { ClientConfig } from './client-ini-factory.js';
|
|
2
|
+
import type { Settings } from './client-settings.js';
|
|
3
|
+
import type { Fetcher } from './fetch/build-fetcher.js';
|
|
4
4
|
/**
|
|
5
5
|
* Scaleway client.
|
|
6
6
|
*/
|
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.62.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.62.0";
|
package/dist/scw/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types';
|
|
2
|
-
import { Decimal } from './custom-types';
|
|
1
|
+
import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types.js';
|
|
2
|
+
import { Decimal } from './custom-types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Unmarshals {@link Money}
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { JSONObject } from '../../../helpers/json';
|
|
2
|
-
import { ScalewayError } from '../scw-error';
|
|
3
|
-
import { InvalidArgumentsError } from '../standard/invalid-arguments-error';
|
|
4
|
-
import { QuotasExceededError } from '../standard/quotas-exceeded-error';
|
|
1
|
+
import type { JSONObject } from '../../../helpers/json.js';
|
|
2
|
+
import { ScalewayError } from '../scw-error.js';
|
|
3
|
+
import { InvalidArgumentsError } from '../standard/invalid-arguments-error.js';
|
|
4
|
+
import { QuotasExceededError } from '../standard/quotas-exceeded-error.js';
|
|
5
5
|
/**
|
|
6
6
|
* InvalidRequest error is only returned by the instance API.
|
|
7
7
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JSONObject } from '../../../helpers/json';
|
|
2
|
-
import { ScalewayError } from '../scw-error';
|
|
3
|
-
import { ResourceNotFoundError } from '../standard/resource-not-found-error';
|
|
1
|
+
import type { JSONObject } from '../../../helpers/json.js';
|
|
2
|
+
import { ScalewayError } from '../scw-error.js';
|
|
3
|
+
import { ResourceNotFoundError } from '../standard/resource-not-found-error.js';
|
|
4
4
|
/**
|
|
5
5
|
* UnknownResource error is only returned by the instance API.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JSONObject } from '../../helpers/json';
|
|
2
|
-
import type { ScalewayError } from './scw-error';
|
|
1
|
+
import type { JSONObject } from '../../helpers/json.js';
|
|
2
|
+
import type { ScalewayError } from './scw-error.js';
|
|
3
3
|
/**
|
|
4
4
|
* Interface with static method that initialize {@link ScalewayError} from JSON.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JSONObject } from '../../../helpers/json';
|
|
2
|
-
import { ScalewayError } from '../scw-error';
|
|
1
|
+
import type { JSONObject } from '../../../helpers/json.js';
|
|
2
|
+
import { ScalewayError } from '../scw-error.js';
|
|
3
3
|
/**
|
|
4
4
|
* AlreadyExists error is used when a resource already exists.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JSONObject } from '../../../helpers/json';
|
|
2
|
-
import { ScalewayError } from '../scw-error';
|
|
1
|
+
import type { JSONObject } from '../../../helpers/json.js';
|
|
2
|
+
import { ScalewayError } from '../scw-error.js';
|
|
3
3
|
/**
|
|
4
4
|
* DeniedAuthentication error is used by the API Gateway auth service to deny a request.
|
|
5
5
|
*
|