@scaleway/sdk 2.72.0 → 2.73.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 +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -17,45 +17,59 @@ export type ProjectSettingsPeriodicReportFrequency = 'unknown_frequency' | 'mont
|
|
|
17
17
|
export type WebhookEventStatus = 'unknown_status' | 'sending' | 'sent' | 'failed';
|
|
18
18
|
export type WebhookEventType = 'unknown_type' | 'email_queued' | 'email_dropped' | 'email_deferred' | 'email_delivered' | 'email_spam' | 'email_mailbox_not_found' | 'email_blocklisted' | 'blocklist_created';
|
|
19
19
|
export interface DomainRecordsDMARC {
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Name of the DMARC TXT record.
|
|
22
|
+
*/
|
|
21
23
|
name: string;
|
|
22
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Value of the DMARC TXT record.
|
|
26
|
+
*/
|
|
23
27
|
value: string;
|
|
24
28
|
}
|
|
25
29
|
export interface EmailTry {
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Rank number of this attempt to send the email.
|
|
32
|
+
*/
|
|
27
33
|
rank: number;
|
|
28
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Date of the attempt to send the email.
|
|
36
|
+
*/
|
|
29
37
|
triedAt?: Date;
|
|
30
38
|
/**
|
|
31
|
-
* The SMTP status code received after the attempt. 0 if the attempt did not
|
|
32
|
-
* reach an SMTP server.
|
|
39
|
+
* The SMTP status code received after the attempt. 0 if the attempt did not reach an SMTP server.
|
|
33
40
|
*/
|
|
34
41
|
code: number;
|
|
35
42
|
/**
|
|
36
|
-
* The SMTP message received. If the attempt did not reach an SMTP server, the
|
|
37
|
-
* message returned explains what happened.
|
|
43
|
+
* The SMTP message received. If the attempt did not reach an SMTP server, the message returned explains what happened.
|
|
38
44
|
*/
|
|
39
45
|
message: string;
|
|
40
46
|
}
|
|
41
47
|
export interface DomainRecords {
|
|
42
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* DMARC TXT record specification.
|
|
50
|
+
*/
|
|
43
51
|
dmarc?: DomainRecordsDMARC;
|
|
44
52
|
}
|
|
45
53
|
export interface DomainReputation {
|
|
46
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Status of your domain's reputation.
|
|
56
|
+
*/
|
|
47
57
|
status: DomainReputationStatus;
|
|
48
58
|
/**
|
|
49
|
-
* A range from 0 to 100 that determines your domain's reputation score. A
|
|
50
|
-
* score of `0` means a bad domain reputation and a score of `100` means an
|
|
51
|
-
* excellent domain reputation.
|
|
59
|
+
* A range from 0 to 100 that determines your domain's reputation score. A score of `0` means a bad domain reputation and a score of `100` means an excellent domain reputation.
|
|
52
60
|
*/
|
|
53
61
|
score: number;
|
|
54
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Time and date the score was calculated.
|
|
64
|
+
*/
|
|
55
65
|
scoredAt?: Date;
|
|
56
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The previously-calculated domain's reputation score.
|
|
68
|
+
*/
|
|
57
69
|
previousScore?: number;
|
|
58
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Time and date the previous reputation score was calculated.
|
|
72
|
+
*/
|
|
59
73
|
previousScoredAt?: Date;
|
|
60
74
|
}
|
|
61
75
|
export interface DomainStatistics {
|
|
@@ -65,813 +79,1222 @@ export interface DomainStatistics {
|
|
|
65
79
|
canceledCount: number;
|
|
66
80
|
}
|
|
67
81
|
export interface Blocklist {
|
|
68
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* ID of the blocklist.
|
|
84
|
+
*/
|
|
69
85
|
id: string;
|
|
70
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Domain ID linked to the blocklist.
|
|
88
|
+
*/
|
|
71
89
|
domainId: string;
|
|
72
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* Date and time of the blocklist creation.
|
|
92
|
+
*/
|
|
73
93
|
createdAt?: Date;
|
|
74
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Date and time of the blocklist's last update.
|
|
96
|
+
*/
|
|
75
97
|
updatedAt?: Date;
|
|
76
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Date and time when the blocklist ends. Empty if the blocklist has no end.
|
|
100
|
+
*/
|
|
77
101
|
endsAt?: Date;
|
|
78
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* Email blocked by the blocklist.
|
|
104
|
+
*/
|
|
79
105
|
email: string;
|
|
80
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Type of block for this email.
|
|
108
|
+
*/
|
|
81
109
|
type: BlocklistType;
|
|
82
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Reason to block this email.
|
|
112
|
+
*/
|
|
83
113
|
reason: string;
|
|
84
114
|
/**
|
|
85
|
-
* True if this blocklist was created manually. False for an automatic
|
|
86
|
-
* Transactional Email blocklist.
|
|
115
|
+
* True if this blocklist was created manually. False for an automatic Transactional Email blocklist.
|
|
87
116
|
*/
|
|
88
117
|
custom: boolean;
|
|
89
118
|
}
|
|
90
119
|
export interface CreateEmailRequestAddress {
|
|
91
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Email address.
|
|
122
|
+
*/
|
|
92
123
|
email: string;
|
|
93
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* (Optional) Name displayed.
|
|
126
|
+
*/
|
|
94
127
|
name?: string;
|
|
95
128
|
}
|
|
96
129
|
export interface CreateEmailRequestAttachment {
|
|
97
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Filename of the attachment.
|
|
132
|
+
*/
|
|
98
133
|
name: string;
|
|
99
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* MIME type of the attachment.
|
|
136
|
+
*/
|
|
100
137
|
type: string;
|
|
101
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Content of the attachment encoded in base64.
|
|
140
|
+
*/
|
|
102
141
|
content: string;
|
|
103
142
|
}
|
|
104
143
|
export interface CreateEmailRequestHeader {
|
|
105
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* Email header key.
|
|
146
|
+
*/
|
|
106
147
|
key: string;
|
|
107
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* Email header value.
|
|
150
|
+
*/
|
|
108
151
|
value: string;
|
|
109
152
|
}
|
|
110
153
|
export interface Email {
|
|
111
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* Technical ID of the email.
|
|
156
|
+
*/
|
|
112
157
|
id: string;
|
|
113
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Message ID of the email.
|
|
160
|
+
*/
|
|
114
161
|
messageId: string;
|
|
115
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* ID of the Project to which the email belongs.
|
|
164
|
+
*/
|
|
116
165
|
projectId: string;
|
|
117
|
-
/**
|
|
166
|
+
/**
|
|
167
|
+
* Email address of the sender.
|
|
168
|
+
*/
|
|
118
169
|
mailFrom: string;
|
|
119
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated Deprecated. Email address of the recipient.
|
|
172
|
+
*/
|
|
120
173
|
rcptTo?: string;
|
|
121
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Email address of the recipient.
|
|
176
|
+
*/
|
|
122
177
|
mailRcpt: string;
|
|
123
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Type of recipient.
|
|
180
|
+
*/
|
|
124
181
|
rcptType: EmailRcptType;
|
|
125
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* Subject of the email.
|
|
184
|
+
*/
|
|
126
185
|
subject: string;
|
|
127
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Creation date of the email object.
|
|
188
|
+
*/
|
|
128
189
|
createdAt?: Date;
|
|
129
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* Last update of the email object.
|
|
192
|
+
*/
|
|
130
193
|
updatedAt?: Date;
|
|
131
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Status of the email.
|
|
196
|
+
*/
|
|
132
197
|
status: EmailStatus;
|
|
133
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Additional status information.
|
|
200
|
+
*/
|
|
134
201
|
statusDetails?: string;
|
|
135
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* Number of attempts to send the email.
|
|
204
|
+
*/
|
|
136
205
|
tryCount: number;
|
|
137
|
-
/**
|
|
206
|
+
/**
|
|
207
|
+
* Information about the last three attempts to send the email.
|
|
208
|
+
*/
|
|
138
209
|
lastTries: EmailTry[];
|
|
139
210
|
/**
|
|
140
|
-
* Flags categorize emails. They allow you to obtain more information about
|
|
141
|
-
* recurring errors, for example.
|
|
211
|
+
* Flags categorize emails. They allow you to obtain more information about recurring errors, for example.
|
|
142
212
|
*/
|
|
143
213
|
flags: EmailFlag[];
|
|
144
214
|
}
|
|
145
215
|
export interface DomainLastStatusAutoconfigState {
|
|
146
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* Enable or disable the auto-configuration of domain DNS records.
|
|
218
|
+
*/
|
|
147
219
|
enabled: boolean;
|
|
148
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Whether the domain can be auto-configured or not.
|
|
222
|
+
*/
|
|
149
223
|
autoconfigurable: boolean;
|
|
150
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* The reason that the domain cannot be auto-configurable.
|
|
226
|
+
*/
|
|
151
227
|
reason?: DomainLastStatusAutoconfigStateReason;
|
|
152
228
|
}
|
|
153
229
|
export interface DomainLastStatusDkimRecord {
|
|
154
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* Status of the DKIM record's configuration.
|
|
232
|
+
*/
|
|
155
233
|
status: DomainLastStatusRecordStatus;
|
|
156
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* Time and date the DKIM record was last valid.
|
|
236
|
+
*/
|
|
157
237
|
lastValidAt?: Date;
|
|
158
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* An error text displays in case the record is not valid.
|
|
240
|
+
*/
|
|
159
241
|
error?: string;
|
|
160
242
|
}
|
|
161
243
|
export interface DomainLastStatusDmarcRecord {
|
|
162
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* Status of the DMARC record's configuration.
|
|
246
|
+
*/
|
|
163
247
|
status: DomainLastStatusRecordStatus;
|
|
164
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Time and date the DMARC record was last valid.
|
|
250
|
+
*/
|
|
165
251
|
lastValidAt?: Date;
|
|
166
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* An error text displays in case the record is not valid.
|
|
254
|
+
*/
|
|
167
255
|
error?: string;
|
|
168
256
|
}
|
|
169
257
|
export interface DomainLastStatusSpfRecord {
|
|
170
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Status of the SPF record's configuration.
|
|
260
|
+
*/
|
|
171
261
|
status: DomainLastStatusRecordStatus;
|
|
172
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Time and date the SPF record was last valid.
|
|
264
|
+
*/
|
|
173
265
|
lastValidAt?: Date;
|
|
174
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* An error text displays in case the record is not valid.
|
|
268
|
+
*/
|
|
175
269
|
error?: string;
|
|
176
270
|
}
|
|
177
271
|
export interface Domain {
|
|
178
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* ID of the domain.
|
|
274
|
+
*/
|
|
179
275
|
id: string;
|
|
180
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* ID of the domain's Organization.
|
|
278
|
+
*/
|
|
181
279
|
organizationId: string;
|
|
182
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* ID of the domain's Project.
|
|
282
|
+
*/
|
|
183
283
|
projectId: string;
|
|
184
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Domain name (example.com).
|
|
286
|
+
*/
|
|
185
287
|
name: string;
|
|
186
|
-
/**
|
|
288
|
+
/**
|
|
289
|
+
* Status of the domain.
|
|
290
|
+
*/
|
|
187
291
|
status: DomainStatus;
|
|
188
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* Date and time of domain creation.
|
|
294
|
+
*/
|
|
189
295
|
createdAt?: Date;
|
|
190
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* Date and time of the next scheduled check.
|
|
298
|
+
*/
|
|
191
299
|
nextCheckAt?: Date;
|
|
192
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Date and time the domain was last valid.
|
|
302
|
+
*/
|
|
193
303
|
lastValidAt?: Date;
|
|
194
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Date and time of the domain's deletion.
|
|
306
|
+
*/
|
|
195
307
|
revokedAt?: Date;
|
|
196
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* @deprecated Deprecated. Error message returned if the last check failed.
|
|
310
|
+
*/
|
|
197
311
|
lastError?: string;
|
|
198
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* Snippet of the SPF record to register in the DNS zone.
|
|
314
|
+
*/
|
|
199
315
|
spfConfig: string;
|
|
200
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* DKIM public key to record in the DNS zone.
|
|
318
|
+
*/
|
|
201
319
|
dkimConfig: string;
|
|
202
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* Domain's statistics.
|
|
322
|
+
*/
|
|
203
323
|
statistics?: DomainStatistics;
|
|
204
324
|
/**
|
|
205
|
-
* The domain's reputation is available when your domain is checked and has
|
|
206
|
-
* sent enough emails.
|
|
325
|
+
* The domain's reputation is available when your domain is checked and has sent enough emails.
|
|
207
326
|
*/
|
|
208
327
|
reputation?: DomainReputation;
|
|
209
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* List of records to configure to validate a domain.
|
|
330
|
+
*/
|
|
210
331
|
records?: DomainRecords;
|
|
211
|
-
/**
|
|
332
|
+
/**
|
|
333
|
+
* Status of auto-configuration for the domain's DNS zone.
|
|
334
|
+
*/
|
|
212
335
|
autoconfig: boolean;
|
|
213
336
|
/**
|
|
214
|
-
* Region to target. If none is passed will use default region from the
|
|
215
|
-
* config.
|
|
337
|
+
* Region to target. If none is passed will use default region from the config.
|
|
216
338
|
*/
|
|
217
339
|
region: ScwRegion;
|
|
218
340
|
}
|
|
219
341
|
export interface OfferSubscription {
|
|
220
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* ID of the offer-subscription Organization.
|
|
344
|
+
*/
|
|
221
345
|
organizationId: string;
|
|
222
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* ID of the offer-subscription Project.
|
|
348
|
+
*/
|
|
223
349
|
projectId: string;
|
|
224
|
-
/**
|
|
350
|
+
/**
|
|
351
|
+
* Name of the offer associated with the Project.
|
|
352
|
+
*/
|
|
225
353
|
offerName: OfferName;
|
|
226
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* Date and time of the subscription.
|
|
356
|
+
*/
|
|
227
357
|
subscribedAt?: Date;
|
|
228
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* Date and time of the end of the offer-subscription commitment.
|
|
360
|
+
*/
|
|
229
361
|
cancellationAvailableAt?: Date;
|
|
230
|
-
/**
|
|
362
|
+
/**
|
|
363
|
+
* Service Level Agreement percentage of the offer-subscription.
|
|
364
|
+
*/
|
|
231
365
|
sla: number;
|
|
232
366
|
/**
|
|
233
|
-
* Max number of domains that can be associated with the offer-subscription
|
|
234
|
-
* for a particular Project.
|
|
367
|
+
* Max number of domains that can be associated with the offer-subscription for a particular Project.
|
|
235
368
|
*/
|
|
236
369
|
maxDomains: number;
|
|
237
370
|
/**
|
|
238
|
-
* Max number of dedicated IPs that can be associated with the
|
|
239
|
-
* offer-subscription for a particular Project.
|
|
371
|
+
* Max number of dedicated IPs that can be associated with the offer-subscription for a particular Project.
|
|
240
372
|
*/
|
|
241
373
|
maxDedicatedIps: number;
|
|
242
374
|
/**
|
|
243
|
-
* Max number of webhooks that can be associated with the offer-subscription
|
|
244
|
-
* for a particular Project.
|
|
375
|
+
* Max number of webhooks that can be associated with the offer-subscription for a particular Project.
|
|
245
376
|
*/
|
|
246
377
|
maxWebhooksPerDomain: number;
|
|
247
378
|
/**
|
|
248
|
-
* Max number of custom blocklists that can be associated with the
|
|
249
|
-
* offer-subscription for a particular Project.
|
|
379
|
+
* Max number of custom blocklists that can be associated with the offer-subscription for a particular Project.
|
|
250
380
|
*/
|
|
251
381
|
maxCustomBlocklistsPerDomain: number;
|
|
252
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Number of emails included in the offer-subscription per month.
|
|
384
|
+
*/
|
|
253
385
|
includedMonthlyEmails: number;
|
|
254
386
|
}
|
|
255
387
|
export interface Offer {
|
|
256
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* Name of the offer.
|
|
390
|
+
*/
|
|
257
391
|
name: OfferName;
|
|
258
|
-
/**
|
|
392
|
+
/**
|
|
393
|
+
* Date and time of the offer creation.
|
|
394
|
+
*/
|
|
259
395
|
createdAt?: Date;
|
|
260
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* Period of commitment.
|
|
398
|
+
*/
|
|
261
399
|
commitmentPeriod?: string;
|
|
262
|
-
/**
|
|
400
|
+
/**
|
|
401
|
+
* Service Level Agreement percentage of the offer.
|
|
402
|
+
*/
|
|
263
403
|
sla: number;
|
|
264
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* Max number of checked domains that can be associated with the offer.
|
|
406
|
+
*/
|
|
265
407
|
maxDomains: number;
|
|
266
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* Max number of dedicated IPs that can be associated with the offer.
|
|
410
|
+
*/
|
|
267
411
|
maxDedicatedIps: number;
|
|
268
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Number of emails included in the offer per month.
|
|
414
|
+
*/
|
|
269
415
|
includedMonthlyEmails: number;
|
|
270
|
-
/**
|
|
416
|
+
/**
|
|
417
|
+
* Max number of webhooks that can be associated with the offer.
|
|
418
|
+
*/
|
|
271
419
|
maxWebhooksPerDomain: number;
|
|
272
420
|
/**
|
|
273
|
-
* Max number of active custom blocklists that can be associated with the
|
|
274
|
-
* offer.
|
|
421
|
+
* Max number of active custom blocklists that can be associated with the offer.
|
|
275
422
|
*/
|
|
276
423
|
maxCustomBlocklistsPerDomain: number;
|
|
277
424
|
}
|
|
278
425
|
export interface Pool {
|
|
279
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* ID of the Project.
|
|
428
|
+
*/
|
|
280
429
|
projectId: string;
|
|
281
|
-
/**
|
|
430
|
+
/**
|
|
431
|
+
* Status of the pool.
|
|
432
|
+
*/
|
|
282
433
|
status: PoolStatus;
|
|
283
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* Details of the pool.
|
|
436
|
+
*/
|
|
284
437
|
details?: string;
|
|
285
|
-
/**
|
|
438
|
+
/**
|
|
439
|
+
* Zone of the pool.
|
|
440
|
+
*/
|
|
286
441
|
zone?: ScwZone;
|
|
287
|
-
/**
|
|
442
|
+
/**
|
|
443
|
+
* IPs of the pool.
|
|
444
|
+
*/
|
|
288
445
|
ips: string[];
|
|
289
|
-
/**
|
|
446
|
+
/**
|
|
447
|
+
* Reverse hostname of all IPs of the pool.
|
|
448
|
+
*/
|
|
290
449
|
reverse?: string;
|
|
291
450
|
}
|
|
292
451
|
export interface WebhookEvent {
|
|
293
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* ID of the Webhook Event.
|
|
454
|
+
*/
|
|
294
455
|
id: string;
|
|
295
|
-
/**
|
|
456
|
+
/**
|
|
457
|
+
* ID of the Webhook that triggers the Event.
|
|
458
|
+
*/
|
|
296
459
|
webhookId: string;
|
|
297
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* ID of the Webhook Event Organization.
|
|
462
|
+
*/
|
|
298
463
|
organizationId: string;
|
|
299
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* ID of the Webhook Event Project.
|
|
466
|
+
*/
|
|
300
467
|
projectId: string;
|
|
301
|
-
/**
|
|
468
|
+
/**
|
|
469
|
+
* ID of the webhook event domain.
|
|
470
|
+
*/
|
|
302
471
|
domainId: string;
|
|
303
|
-
/**
|
|
472
|
+
/**
|
|
473
|
+
* Type of the Webhook Event.
|
|
474
|
+
*/
|
|
304
475
|
type: WebhookEventType;
|
|
305
|
-
/**
|
|
476
|
+
/**
|
|
477
|
+
* Status of the Webhook Event.
|
|
478
|
+
*/
|
|
306
479
|
status: WebhookEventStatus;
|
|
307
|
-
/**
|
|
480
|
+
/**
|
|
481
|
+
* Data sent to the Webhook destination.
|
|
482
|
+
*/
|
|
308
483
|
data: string;
|
|
309
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Date and time of the Webhook Event creation.
|
|
486
|
+
*/
|
|
310
487
|
createdAt?: Date;
|
|
311
|
-
/**
|
|
488
|
+
/**
|
|
489
|
+
* Date and time of last Webhook Event updates.
|
|
490
|
+
*/
|
|
312
491
|
updatedAt?: Date;
|
|
313
|
-
/**
|
|
492
|
+
/**
|
|
493
|
+
* Optional Email ID if the event is triggered by an Email resource.
|
|
494
|
+
*/
|
|
314
495
|
emailId?: string;
|
|
315
496
|
}
|
|
316
497
|
export interface Webhook {
|
|
317
|
-
/**
|
|
498
|
+
/**
|
|
499
|
+
* ID of the Webhook.
|
|
500
|
+
*/
|
|
318
501
|
id: string;
|
|
319
|
-
/**
|
|
502
|
+
/**
|
|
503
|
+
* ID of the Domain to watch for triggering events.
|
|
504
|
+
*/
|
|
320
505
|
domainId: string;
|
|
321
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* ID of the Webhook Organization.
|
|
508
|
+
*/
|
|
322
509
|
organizationId: string;
|
|
323
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* ID of the Webhook Project.
|
|
512
|
+
*/
|
|
324
513
|
projectId: string;
|
|
325
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Name of the Webhook.
|
|
516
|
+
*/
|
|
326
517
|
name: string;
|
|
327
|
-
/**
|
|
518
|
+
/**
|
|
519
|
+
* List of event types that will trigger a Webhook Event.
|
|
520
|
+
*/
|
|
328
521
|
eventTypes: WebhookEventType[];
|
|
329
|
-
/**
|
|
522
|
+
/**
|
|
523
|
+
* Scaleway SNS ARN topic to push the events to.
|
|
524
|
+
*/
|
|
330
525
|
snsArn: string;
|
|
331
|
-
/**
|
|
526
|
+
/**
|
|
527
|
+
* Date and time of the Webhook creation.
|
|
528
|
+
*/
|
|
332
529
|
createdAt?: Date;
|
|
333
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* Date and time of last Webhook updates.
|
|
532
|
+
*/
|
|
334
533
|
updatedAt?: Date;
|
|
335
534
|
}
|
|
336
535
|
export interface ProjectSettingsPeriodicReport {
|
|
337
|
-
/**
|
|
536
|
+
/**
|
|
537
|
+
* Enable or disable periodic report notifications.
|
|
538
|
+
*/
|
|
338
539
|
enabled: boolean;
|
|
339
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* At which frequency you receive periodic report notifications.
|
|
542
|
+
*/
|
|
340
543
|
frequency: ProjectSettingsPeriodicReportFrequency;
|
|
341
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* At which hour you receive periodic report notifications.
|
|
546
|
+
*/
|
|
342
547
|
sendingHour: number;
|
|
343
548
|
/**
|
|
344
|
-
* On which day you receive periodic report notifications (1-7 weekly, 1-28
|
|
345
|
-
* monthly).
|
|
549
|
+
* On which day you receive periodic report notifications (1-7 weekly, 1-28 monthly).
|
|
346
550
|
*/
|
|
347
551
|
sendingDay: number;
|
|
348
552
|
}
|
|
349
553
|
export interface UpdateProjectSettingsRequestUpdatePeriodicReport {
|
|
350
|
-
/**
|
|
554
|
+
/**
|
|
555
|
+
* (Optional) Enable or disable periodic report notifications.
|
|
556
|
+
*/
|
|
351
557
|
enabled?: boolean;
|
|
352
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* (Optional) Frequency at which you receive periodic report notifications.
|
|
560
|
+
*/
|
|
353
561
|
frequency?: ProjectSettingsPeriodicReportFrequency;
|
|
354
|
-
/**
|
|
562
|
+
/**
|
|
563
|
+
* (Optional) Hour at which you receive periodic report notifications.
|
|
564
|
+
*/
|
|
355
565
|
sendingHour?: number;
|
|
356
566
|
/**
|
|
357
|
-
* (Optional) On which day you receive periodic report notifications (1-7
|
|
358
|
-
* weekly, 1-28 monthly).
|
|
567
|
+
* (Optional) On which day you receive periodic report notifications (1-7 weekly, 1-28 monthly).
|
|
359
568
|
*/
|
|
360
569
|
sendingDay?: number;
|
|
361
570
|
}
|
|
362
571
|
export type BulkCreateBlocklistsRequest = {
|
|
363
572
|
/**
|
|
364
|
-
* Region to target. If none is passed will use default region from the
|
|
365
|
-
* config.
|
|
573
|
+
* Region to target. If none is passed will use default region from the config.
|
|
366
574
|
*/
|
|
367
575
|
region?: ScwRegion;
|
|
368
|
-
/**
|
|
576
|
+
/**
|
|
577
|
+
* Domain ID linked to the blocklist.
|
|
578
|
+
*/
|
|
369
579
|
domainId: string;
|
|
370
|
-
/**
|
|
580
|
+
/**
|
|
581
|
+
* Email blocked by the blocklist.
|
|
582
|
+
*/
|
|
371
583
|
emails?: string[];
|
|
372
|
-
/**
|
|
584
|
+
/**
|
|
585
|
+
* Type of blocklist.
|
|
586
|
+
*/
|
|
373
587
|
type?: BlocklistType;
|
|
374
|
-
/**
|
|
588
|
+
/**
|
|
589
|
+
* Reason to block the email.
|
|
590
|
+
*/
|
|
375
591
|
reason?: string;
|
|
376
592
|
};
|
|
377
593
|
export interface BulkCreateBlocklistsResponse {
|
|
378
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* List of blocklist created.
|
|
596
|
+
*/
|
|
379
597
|
blocklists: Blocklist[];
|
|
380
598
|
}
|
|
381
599
|
export type CancelEmailRequest = {
|
|
382
600
|
/**
|
|
383
|
-
* Region to target. If none is passed will use default region from the
|
|
384
|
-
* config.
|
|
601
|
+
* Region to target. If none is passed will use default region from the config.
|
|
385
602
|
*/
|
|
386
603
|
region?: ScwRegion;
|
|
387
|
-
/**
|
|
604
|
+
/**
|
|
605
|
+
* ID of the email to cancel.
|
|
606
|
+
*/
|
|
388
607
|
emailId: string;
|
|
389
608
|
};
|
|
390
609
|
export type CheckDomainRequest = {
|
|
391
610
|
/**
|
|
392
|
-
* Region to target. If none is passed will use default region from the
|
|
393
|
-
* config.
|
|
611
|
+
* Region to target. If none is passed will use default region from the config.
|
|
394
612
|
*/
|
|
395
613
|
region?: ScwRegion;
|
|
396
|
-
/**
|
|
614
|
+
/**
|
|
615
|
+
* ID of the domain to check.
|
|
616
|
+
*/
|
|
397
617
|
domainId: string;
|
|
398
618
|
};
|
|
399
619
|
export type CreateDomainRequest = {
|
|
400
620
|
/**
|
|
401
|
-
* Region to target. If none is passed will use default region from the
|
|
402
|
-
* config.
|
|
621
|
+
* Region to target. If none is passed will use default region from the config.
|
|
403
622
|
*/
|
|
404
623
|
region?: ScwRegion;
|
|
405
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* ID of the project to which the domain belongs.
|
|
626
|
+
*/
|
|
406
627
|
projectId?: string;
|
|
407
|
-
/**
|
|
628
|
+
/**
|
|
629
|
+
* Fully qualified domain dame.
|
|
630
|
+
*/
|
|
408
631
|
domainName: string;
|
|
409
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* @deprecated Deprecated. Accept Scaleway's Terms of Service.
|
|
634
|
+
*/
|
|
410
635
|
acceptTos?: boolean;
|
|
411
|
-
/**
|
|
636
|
+
/**
|
|
637
|
+
* Activate auto-configuration of the domain's DNS zone.
|
|
638
|
+
*/
|
|
412
639
|
autoconfig: boolean;
|
|
413
640
|
};
|
|
414
641
|
export type CreateEmailRequest = {
|
|
415
642
|
/**
|
|
416
|
-
* Region to target. If none is passed will use default region from the
|
|
417
|
-
* config.
|
|
643
|
+
* Region to target. If none is passed will use default region from the config.
|
|
418
644
|
*/
|
|
419
645
|
region?: ScwRegion;
|
|
420
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* Sender information. Must be from a checked domain declared in the Project.
|
|
648
|
+
*/
|
|
421
649
|
from: CreateEmailRequestAddress;
|
|
422
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* An array of the primary recipient's information.
|
|
652
|
+
*/
|
|
423
653
|
to?: CreateEmailRequestAddress[];
|
|
424
|
-
/**
|
|
654
|
+
/**
|
|
655
|
+
* An array of the carbon copy recipient's information.
|
|
656
|
+
*/
|
|
425
657
|
cc?: CreateEmailRequestAddress[];
|
|
426
|
-
/**
|
|
658
|
+
/**
|
|
659
|
+
* An array of the blind carbon copy recipient's information.
|
|
660
|
+
*/
|
|
427
661
|
bcc?: CreateEmailRequestAddress[];
|
|
428
|
-
/**
|
|
662
|
+
/**
|
|
663
|
+
* Subject of the email.
|
|
664
|
+
*/
|
|
429
665
|
subject: string;
|
|
430
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* Text content.
|
|
668
|
+
*/
|
|
431
669
|
text: string;
|
|
432
|
-
/**
|
|
670
|
+
/**
|
|
671
|
+
* HTML content.
|
|
672
|
+
*/
|
|
433
673
|
html: string;
|
|
434
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* ID of the Project in which to create the email.
|
|
676
|
+
*/
|
|
435
677
|
projectId?: string;
|
|
436
|
-
/**
|
|
678
|
+
/**
|
|
679
|
+
* Array of attachments.
|
|
680
|
+
*/
|
|
437
681
|
attachments?: CreateEmailRequestAttachment[];
|
|
438
|
-
/**
|
|
682
|
+
/**
|
|
683
|
+
* Maximum date to deliver the email.
|
|
684
|
+
*/
|
|
439
685
|
sendBefore?: Date;
|
|
440
|
-
/**
|
|
686
|
+
/**
|
|
687
|
+
* Array of additional headers as key-value.
|
|
688
|
+
*/
|
|
441
689
|
additionalHeaders?: CreateEmailRequestHeader[];
|
|
442
690
|
};
|
|
443
691
|
export interface CreateEmailResponse {
|
|
444
|
-
/**
|
|
692
|
+
/**
|
|
693
|
+
* Single page of emails matching the requested criteria.
|
|
694
|
+
*/
|
|
445
695
|
emails: Email[];
|
|
446
696
|
}
|
|
447
697
|
export type CreateWebhookRequest = {
|
|
448
698
|
/**
|
|
449
|
-
* Region to target. If none is passed will use default region from the
|
|
450
|
-
* config.
|
|
699
|
+
* Region to target. If none is passed will use default region from the config.
|
|
451
700
|
*/
|
|
452
701
|
region?: ScwRegion;
|
|
453
|
-
/**
|
|
702
|
+
/**
|
|
703
|
+
* ID of the Domain to watch for triggering events.
|
|
704
|
+
*/
|
|
454
705
|
domainId: string;
|
|
455
|
-
/**
|
|
706
|
+
/**
|
|
707
|
+
* ID of the project to which the Webhook belongs.
|
|
708
|
+
*/
|
|
456
709
|
projectId?: string;
|
|
457
|
-
/**
|
|
710
|
+
/**
|
|
711
|
+
* Name of the Webhook.
|
|
712
|
+
*/
|
|
458
713
|
name: string;
|
|
459
|
-
/**
|
|
714
|
+
/**
|
|
715
|
+
* List of event types that will trigger an event.
|
|
716
|
+
*/
|
|
460
717
|
eventTypes?: WebhookEventType[];
|
|
461
|
-
/**
|
|
718
|
+
/**
|
|
719
|
+
* Scaleway SNS ARN topic to push the events to.
|
|
720
|
+
*/
|
|
462
721
|
snsArn: string;
|
|
463
722
|
};
|
|
464
723
|
export type DeleteBlocklistRequest = {
|
|
465
724
|
/**
|
|
466
|
-
* Region to target. If none is passed will use default region from the
|
|
467
|
-
* config.
|
|
725
|
+
* Region to target. If none is passed will use default region from the config.
|
|
468
726
|
*/
|
|
469
727
|
region?: ScwRegion;
|
|
470
|
-
/**
|
|
728
|
+
/**
|
|
729
|
+
* ID of the blocklist to delete.
|
|
730
|
+
*/
|
|
471
731
|
blocklistId: string;
|
|
472
732
|
};
|
|
473
733
|
export type DeleteWebhookRequest = {
|
|
474
734
|
/**
|
|
475
|
-
* Region to target. If none is passed will use default region from the
|
|
476
|
-
* config.
|
|
735
|
+
* Region to target. If none is passed will use default region from the config.
|
|
477
736
|
*/
|
|
478
737
|
region?: ScwRegion;
|
|
479
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* ID of the Webhook to delete.
|
|
740
|
+
*/
|
|
480
741
|
webhookId: string;
|
|
481
742
|
};
|
|
482
743
|
export interface DomainLastStatus {
|
|
483
|
-
/**
|
|
744
|
+
/**
|
|
745
|
+
* The ID of the domain.
|
|
746
|
+
*/
|
|
484
747
|
domainId: string;
|
|
485
|
-
/**
|
|
748
|
+
/**
|
|
749
|
+
* The domain name (example.com).
|
|
750
|
+
*/
|
|
486
751
|
domainName: string;
|
|
487
|
-
/**
|
|
752
|
+
/**
|
|
753
|
+
* The SPF record verification data.
|
|
754
|
+
*/
|
|
488
755
|
spfRecord?: DomainLastStatusSpfRecord;
|
|
489
|
-
/**
|
|
756
|
+
/**
|
|
757
|
+
* The DKIM record verification data.
|
|
758
|
+
*/
|
|
490
759
|
dkimRecord?: DomainLastStatusDkimRecord;
|
|
491
|
-
/**
|
|
760
|
+
/**
|
|
761
|
+
* The DMARC record verification data.
|
|
762
|
+
*/
|
|
492
763
|
dmarcRecord?: DomainLastStatusDmarcRecord;
|
|
493
|
-
/**
|
|
764
|
+
/**
|
|
765
|
+
* The verification state of domain auto-configuration.
|
|
766
|
+
*/
|
|
494
767
|
autoconfigState?: DomainLastStatusAutoconfigState;
|
|
495
768
|
}
|
|
496
769
|
export type GetDomainLastStatusRequest = {
|
|
497
770
|
/**
|
|
498
|
-
* Region to target. If none is passed will use default region from the
|
|
499
|
-
* config.
|
|
771
|
+
* Region to target. If none is passed will use default region from the config.
|
|
500
772
|
*/
|
|
501
773
|
region?: ScwRegion;
|
|
502
|
-
/**
|
|
774
|
+
/**
|
|
775
|
+
* ID of the domain to delete.
|
|
776
|
+
*/
|
|
503
777
|
domainId: string;
|
|
504
778
|
};
|
|
505
779
|
export type GetDomainRequest = {
|
|
506
780
|
/**
|
|
507
|
-
* Region to target. If none is passed will use default region from the
|
|
508
|
-
* config.
|
|
781
|
+
* Region to target. If none is passed will use default region from the config.
|
|
509
782
|
*/
|
|
510
783
|
region?: ScwRegion;
|
|
511
|
-
/**
|
|
784
|
+
/**
|
|
785
|
+
* ID of the domain.
|
|
786
|
+
*/
|
|
512
787
|
domainId: string;
|
|
513
788
|
};
|
|
514
789
|
export type GetEmailRequest = {
|
|
515
790
|
/**
|
|
516
|
-
* Region to target. If none is passed will use default region from the
|
|
517
|
-
* config.
|
|
791
|
+
* Region to target. If none is passed will use default region from the config.
|
|
518
792
|
*/
|
|
519
793
|
region?: ScwRegion;
|
|
520
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* ID of the email to retrieve.
|
|
796
|
+
*/
|
|
521
797
|
emailId: string;
|
|
522
798
|
};
|
|
523
799
|
export type GetProjectConsumptionRequest = {
|
|
524
800
|
/**
|
|
525
|
-
* Region to target. If none is passed will use default region from the
|
|
526
|
-
* config.
|
|
801
|
+
* Region to target. If none is passed will use default region from the config.
|
|
527
802
|
*/
|
|
528
803
|
region?: ScwRegion;
|
|
529
|
-
/**
|
|
804
|
+
/**
|
|
805
|
+
* ID of the project.
|
|
806
|
+
*/
|
|
530
807
|
projectId?: string;
|
|
531
808
|
};
|
|
532
809
|
export type GetProjectSettingsRequest = {
|
|
533
810
|
/**
|
|
534
|
-
* Region to target. If none is passed will use default region from the
|
|
535
|
-
* config.
|
|
811
|
+
* Region to target. If none is passed will use default region from the config.
|
|
536
812
|
*/
|
|
537
813
|
region?: ScwRegion;
|
|
538
|
-
/**
|
|
814
|
+
/**
|
|
815
|
+
* ID of the project.
|
|
816
|
+
*/
|
|
539
817
|
projectId?: string;
|
|
540
818
|
};
|
|
541
819
|
export type GetStatisticsRequest = {
|
|
542
820
|
/**
|
|
543
|
-
* Region to target. If none is passed will use default region from the
|
|
544
|
-
* config.
|
|
821
|
+
* Region to target. If none is passed will use default region from the config.
|
|
545
822
|
*/
|
|
546
823
|
region?: ScwRegion;
|
|
547
|
-
/**
|
|
824
|
+
/**
|
|
825
|
+
* (Optional) Number of emails for this Project.
|
|
826
|
+
*/
|
|
548
827
|
projectId?: string;
|
|
549
828
|
/**
|
|
550
|
-
* (Optional) Number of emails sent from this domain (must be coherent with
|
|
551
|
-
* the `project_id` and the `organization_id`).
|
|
829
|
+
* (Optional) Number of emails sent from this domain (must be coherent with the `project_id` and the `organization_id`).
|
|
552
830
|
*/
|
|
553
831
|
domainId?: string;
|
|
554
|
-
/**
|
|
832
|
+
/**
|
|
833
|
+
* (Optional) Number of emails created after this date.
|
|
834
|
+
*/
|
|
555
835
|
since?: Date;
|
|
556
|
-
/**
|
|
836
|
+
/**
|
|
837
|
+
* (Optional) Number of emails created before this date.
|
|
838
|
+
*/
|
|
557
839
|
until?: Date;
|
|
558
|
-
/**
|
|
840
|
+
/**
|
|
841
|
+
* (Optional) Number of emails sent with this sender's email address.
|
|
842
|
+
*/
|
|
559
843
|
mailFrom?: string;
|
|
560
844
|
};
|
|
561
845
|
export type GetWebhookRequest = {
|
|
562
846
|
/**
|
|
563
|
-
* Region to target. If none is passed will use default region from the
|
|
564
|
-
* config.
|
|
847
|
+
* Region to target. If none is passed will use default region from the config.
|
|
565
848
|
*/
|
|
566
849
|
region?: ScwRegion;
|
|
567
|
-
/**
|
|
850
|
+
/**
|
|
851
|
+
* ID of the Webhook to check.
|
|
852
|
+
*/
|
|
568
853
|
webhookId: string;
|
|
569
854
|
};
|
|
570
855
|
export type ListBlocklistsRequest = {
|
|
571
856
|
/**
|
|
572
|
-
* Region to target. If none is passed will use default region from the
|
|
573
|
-
* config.
|
|
857
|
+
* Region to target. If none is passed will use default region from the config.
|
|
574
858
|
*/
|
|
575
859
|
region?: ScwRegion;
|
|
576
|
-
/**
|
|
860
|
+
/**
|
|
861
|
+
* (Optional) List blocklist corresponding to specific criteria.
|
|
862
|
+
*/
|
|
577
863
|
orderBy?: ListBlocklistsRequestOrderBy;
|
|
578
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* (Optional) Requested page number. Value must be greater or equal to 1.
|
|
866
|
+
*/
|
|
579
867
|
page?: number;
|
|
580
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* (Optional) Requested page size. Value must be between 1 and 100.
|
|
870
|
+
*/
|
|
581
871
|
pageSize?: number;
|
|
582
|
-
/**
|
|
872
|
+
/**
|
|
873
|
+
* (Optional) Filter by a domain ID.
|
|
874
|
+
*/
|
|
583
875
|
domainId: string;
|
|
584
|
-
/**
|
|
876
|
+
/**
|
|
877
|
+
* (Optional) Filter by an email address.
|
|
878
|
+
*/
|
|
585
879
|
email?: string;
|
|
586
|
-
/**
|
|
880
|
+
/**
|
|
881
|
+
* (Optional) Filter by a blocklist type.
|
|
882
|
+
*/
|
|
587
883
|
type?: BlocklistType;
|
|
588
884
|
/**
|
|
589
|
-
* (Optional) Filter by custom blocklist (true) or automatic Transactional
|
|
590
|
-
* Email blocklist (false).
|
|
885
|
+
* (Optional) Filter by custom blocklist (true) or automatic Transactional Email blocklist (false).
|
|
591
886
|
*/
|
|
592
887
|
custom?: boolean;
|
|
593
888
|
};
|
|
594
889
|
export interface ListBlocklistsResponse {
|
|
595
|
-
/**
|
|
890
|
+
/**
|
|
891
|
+
* Number of blocklists matching the requested criteria.
|
|
892
|
+
*/
|
|
596
893
|
totalCount: number;
|
|
597
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* Single page of blocklists matching the requested criteria.
|
|
896
|
+
*/
|
|
598
897
|
blocklists: Blocklist[];
|
|
599
898
|
}
|
|
600
899
|
export type ListDomainsRequest = {
|
|
601
900
|
/**
|
|
602
|
-
* Region to target. If none is passed will use default region from the
|
|
603
|
-
* config.
|
|
901
|
+
* Region to target. If none is passed will use default region from the config.
|
|
604
902
|
*/
|
|
605
903
|
region?: ScwRegion;
|
|
606
|
-
/**
|
|
904
|
+
/**
|
|
905
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
906
|
+
*/
|
|
607
907
|
page?: number;
|
|
608
|
-
/**
|
|
908
|
+
/**
|
|
909
|
+
* Requested page size. Value must be between 1 and 1000.
|
|
910
|
+
*/
|
|
609
911
|
pageSize?: number;
|
|
610
|
-
/**
|
|
912
|
+
/**
|
|
913
|
+
* (Optional) ID of the Project in which to list the domains.
|
|
914
|
+
*/
|
|
611
915
|
projectId?: string;
|
|
612
|
-
/**
|
|
916
|
+
/**
|
|
917
|
+
* (Optional) List domains under specific statuses.
|
|
918
|
+
*/
|
|
613
919
|
status?: DomainStatus[];
|
|
614
|
-
/**
|
|
920
|
+
/**
|
|
921
|
+
* (Optional) ID of the Organization in which to list the domains.
|
|
922
|
+
*/
|
|
615
923
|
organizationId?: string;
|
|
616
|
-
/**
|
|
924
|
+
/**
|
|
925
|
+
* (Optional) Names of the domains to list.
|
|
926
|
+
*/
|
|
617
927
|
name?: string;
|
|
618
928
|
};
|
|
619
929
|
export interface ListDomainsResponse {
|
|
620
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* Number of domains that match the request (without pagination).
|
|
932
|
+
*/
|
|
621
933
|
totalCount: number;
|
|
622
|
-
/**
|
|
934
|
+
/**
|
|
935
|
+
* Single page of domains matching the requested criteria.
|
|
936
|
+
*/
|
|
623
937
|
domains: Domain[];
|
|
624
938
|
}
|
|
625
939
|
export type ListEmailsRequest = {
|
|
626
940
|
/**
|
|
627
|
-
* Region to target. If none is passed will use default region from the
|
|
628
|
-
* config.
|
|
941
|
+
* Region to target. If none is passed will use default region from the config.
|
|
629
942
|
*/
|
|
630
943
|
region?: ScwRegion;
|
|
631
944
|
page?: number;
|
|
632
945
|
pageSize?: number;
|
|
633
|
-
/**
|
|
946
|
+
/**
|
|
947
|
+
* (Optional) ID of the Project in which to list the emails.
|
|
948
|
+
*/
|
|
634
949
|
projectId?: string;
|
|
635
|
-
/**
|
|
950
|
+
/**
|
|
951
|
+
* (Optional) ID of the domain for which to list the emails.
|
|
952
|
+
*/
|
|
636
953
|
domainId?: string;
|
|
637
|
-
/**
|
|
954
|
+
/**
|
|
955
|
+
* (Optional) ID of the message for which to list the emails.
|
|
956
|
+
*/
|
|
638
957
|
messageId?: string;
|
|
639
|
-
/**
|
|
958
|
+
/**
|
|
959
|
+
* (Optional) List emails created after this date.
|
|
960
|
+
*/
|
|
640
961
|
since?: Date;
|
|
641
|
-
/**
|
|
962
|
+
/**
|
|
963
|
+
* (Optional) List emails created before this date.
|
|
964
|
+
*/
|
|
642
965
|
until?: Date;
|
|
643
|
-
/**
|
|
966
|
+
/**
|
|
967
|
+
* (Optional) List emails sent with this sender's email address.
|
|
968
|
+
*/
|
|
644
969
|
mailFrom?: string;
|
|
645
|
-
/**
|
|
970
|
+
/**
|
|
971
|
+
* @deprecated Deprecated. List emails sent to this recipient's email address.
|
|
972
|
+
*/
|
|
646
973
|
mailTo?: string;
|
|
647
|
-
/**
|
|
974
|
+
/**
|
|
975
|
+
* (Optional) List emails sent to this recipient's email address.
|
|
976
|
+
*/
|
|
648
977
|
mailRcpt?: string;
|
|
649
|
-
/**
|
|
978
|
+
/**
|
|
979
|
+
* (Optional) List emails with any of these statuses.
|
|
980
|
+
*/
|
|
650
981
|
statuses?: EmailStatus[];
|
|
651
|
-
/**
|
|
982
|
+
/**
|
|
983
|
+
* (Optional) List emails with this subject.
|
|
984
|
+
*/
|
|
652
985
|
subject?: string;
|
|
653
|
-
/**
|
|
986
|
+
/**
|
|
987
|
+
* (Optional) List emails by searching to all fields.
|
|
988
|
+
*/
|
|
654
989
|
search?: string;
|
|
655
|
-
/**
|
|
990
|
+
/**
|
|
991
|
+
* (Optional) List emails corresponding to specific criteria.
|
|
992
|
+
*/
|
|
656
993
|
orderBy?: ListEmailsRequestOrderBy;
|
|
657
|
-
/**
|
|
994
|
+
/**
|
|
995
|
+
* (Optional) List emails containing only specific flags.
|
|
996
|
+
*/
|
|
658
997
|
flags?: EmailFlag[];
|
|
659
998
|
};
|
|
660
999
|
export interface ListEmailsResponse {
|
|
661
|
-
/**
|
|
1000
|
+
/**
|
|
1001
|
+
* Number of emails matching the requested criteria.
|
|
1002
|
+
*/
|
|
662
1003
|
totalCount: number;
|
|
663
|
-
/**
|
|
1004
|
+
/**
|
|
1005
|
+
* Single page of emails matching the requested criteria.
|
|
1006
|
+
*/
|
|
664
1007
|
emails: Email[];
|
|
665
1008
|
}
|
|
666
1009
|
export type ListOfferSubscriptionsRequest = {
|
|
667
1010
|
/**
|
|
668
|
-
* Region to target. If none is passed will use default region from the
|
|
669
|
-
* config.
|
|
1011
|
+
* Region to target. If none is passed will use default region from the config.
|
|
670
1012
|
*/
|
|
671
1013
|
region?: ScwRegion;
|
|
672
|
-
/**
|
|
1014
|
+
/**
|
|
1015
|
+
* ID of the Project.
|
|
1016
|
+
*/
|
|
673
1017
|
projectId?: string;
|
|
674
1018
|
};
|
|
675
1019
|
export interface ListOfferSubscriptionsResponse {
|
|
676
|
-
/**
|
|
1020
|
+
/**
|
|
1021
|
+
* Number of offer-subscriptions matching the requested criteria.
|
|
1022
|
+
*/
|
|
677
1023
|
totalCount: number;
|
|
678
|
-
/**
|
|
1024
|
+
/**
|
|
1025
|
+
* Single page of offer-subscriptions matching the requested criteria.
|
|
1026
|
+
*/
|
|
679
1027
|
offerSubscriptions: OfferSubscription[];
|
|
680
1028
|
}
|
|
681
1029
|
export type ListOffersRequest = {
|
|
682
1030
|
/**
|
|
683
|
-
* Region to target. If none is passed will use default region from the
|
|
684
|
-
* config.
|
|
1031
|
+
* Region to target. If none is passed will use default region from the config.
|
|
685
1032
|
*/
|
|
686
1033
|
region?: ScwRegion;
|
|
687
1034
|
};
|
|
688
1035
|
export interface ListOffersResponse {
|
|
689
|
-
/**
|
|
1036
|
+
/**
|
|
1037
|
+
* Number of offers matching the requested criteria.
|
|
1038
|
+
*/
|
|
690
1039
|
totalCount: number;
|
|
691
|
-
/**
|
|
1040
|
+
/**
|
|
1041
|
+
* Single page of offers matching the requested criteria.
|
|
1042
|
+
*/
|
|
692
1043
|
offers: Offer[];
|
|
693
1044
|
}
|
|
694
1045
|
export type ListPoolsRequest = {
|
|
695
1046
|
/**
|
|
696
|
-
* Region to target. If none is passed will use default region from the
|
|
697
|
-
* config.
|
|
1047
|
+
* Region to target. If none is passed will use default region from the config.
|
|
698
1048
|
*/
|
|
699
1049
|
region?: ScwRegion;
|
|
700
|
-
/**
|
|
1050
|
+
/**
|
|
1051
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
1052
|
+
*/
|
|
701
1053
|
page?: number;
|
|
702
|
-
/**
|
|
1054
|
+
/**
|
|
1055
|
+
* Requested page size. Value must be between 1 and 1000.
|
|
1056
|
+
*/
|
|
703
1057
|
pageSize?: number;
|
|
704
|
-
/**
|
|
1058
|
+
/**
|
|
1059
|
+
* ID of the Project.
|
|
1060
|
+
*/
|
|
705
1061
|
projectId?: string;
|
|
706
1062
|
};
|
|
707
1063
|
export interface ListPoolsResponse {
|
|
708
|
-
/**
|
|
1064
|
+
/**
|
|
1065
|
+
* Number of pools matching the requested criteria.
|
|
1066
|
+
*/
|
|
709
1067
|
totalCount: number;
|
|
710
|
-
/**
|
|
1068
|
+
/**
|
|
1069
|
+
* Single page of pools matching the requested criteria.
|
|
1070
|
+
*/
|
|
711
1071
|
pools: Pool[];
|
|
712
1072
|
}
|
|
713
1073
|
export type ListWebhookEventsRequest = {
|
|
714
1074
|
/**
|
|
715
|
-
* Region to target. If none is passed will use default region from the
|
|
716
|
-
* config.
|
|
1075
|
+
* Region to target. If none is passed will use default region from the config.
|
|
717
1076
|
*/
|
|
718
1077
|
region?: ScwRegion;
|
|
719
|
-
/**
|
|
1078
|
+
/**
|
|
1079
|
+
* ID of the Webhook linked to the events.
|
|
1080
|
+
*/
|
|
720
1081
|
webhookId: string;
|
|
721
|
-
/**
|
|
1082
|
+
/**
|
|
1083
|
+
* (Optional) List Webhook events corresponding to specific criteria.
|
|
1084
|
+
*/
|
|
722
1085
|
orderBy?: ListWebhookEventsRequestOrderBy;
|
|
723
|
-
/**
|
|
1086
|
+
/**
|
|
1087
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
1088
|
+
*/
|
|
724
1089
|
page?: number;
|
|
725
|
-
/**
|
|
1090
|
+
/**
|
|
1091
|
+
* Requested page size. Value must be between 1 and 100.
|
|
1092
|
+
*/
|
|
726
1093
|
pageSize?: number;
|
|
727
|
-
/**
|
|
1094
|
+
/**
|
|
1095
|
+
* ID of the email linked to the events.
|
|
1096
|
+
*/
|
|
728
1097
|
emailId?: string;
|
|
729
|
-
/**
|
|
1098
|
+
/**
|
|
1099
|
+
* List of event types linked to the events.
|
|
1100
|
+
*/
|
|
730
1101
|
eventTypes?: WebhookEventType[];
|
|
731
|
-
/**
|
|
1102
|
+
/**
|
|
1103
|
+
* List of event statuses.
|
|
1104
|
+
*/
|
|
732
1105
|
statuses?: WebhookEventStatus[];
|
|
733
|
-
/**
|
|
1106
|
+
/**
|
|
1107
|
+
* ID of the webhook Project.
|
|
1108
|
+
*/
|
|
734
1109
|
projectId?: string;
|
|
735
|
-
/**
|
|
1110
|
+
/**
|
|
1111
|
+
* ID of the webhook Organization.
|
|
1112
|
+
*/
|
|
736
1113
|
organizationId?: string;
|
|
737
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* ID of the domain to watch for triggering events.
|
|
1116
|
+
*/
|
|
738
1117
|
domainId?: string;
|
|
739
1118
|
};
|
|
740
1119
|
export interface ListWebhookEventsResponse {
|
|
741
|
-
/**
|
|
1120
|
+
/**
|
|
1121
|
+
* Number of Webhook events matching the requested criteria.
|
|
1122
|
+
*/
|
|
742
1123
|
totalCount: number;
|
|
743
|
-
/**
|
|
1124
|
+
/**
|
|
1125
|
+
* Single page of Webhook events matching the requested criteria.
|
|
1126
|
+
*/
|
|
744
1127
|
webhookEvents: WebhookEvent[];
|
|
745
1128
|
}
|
|
746
1129
|
export type ListWebhooksRequest = {
|
|
747
1130
|
/**
|
|
748
|
-
* Region to target. If none is passed will use default region from the
|
|
749
|
-
* config.
|
|
1131
|
+
* Region to target. If none is passed will use default region from the config.
|
|
750
1132
|
*/
|
|
751
1133
|
region?: ScwRegion;
|
|
752
|
-
/**
|
|
1134
|
+
/**
|
|
1135
|
+
* (Optional) List Webhooks corresponding to specific criteria.
|
|
1136
|
+
*/
|
|
753
1137
|
orderBy?: ListWebhooksRequestOrderBy;
|
|
754
|
-
/**
|
|
1138
|
+
/**
|
|
1139
|
+
* (Optional) Requested page number. Value must be greater or equal to 1.
|
|
1140
|
+
*/
|
|
755
1141
|
page?: number;
|
|
756
|
-
/**
|
|
1142
|
+
/**
|
|
1143
|
+
* (Optional) Requested page size. Value must be between 1 and 100.
|
|
1144
|
+
*/
|
|
757
1145
|
pageSize?: number;
|
|
758
|
-
/**
|
|
1146
|
+
/**
|
|
1147
|
+
* (Optional) ID of the Project for which to list the Webhooks.
|
|
1148
|
+
*/
|
|
759
1149
|
projectId?: string;
|
|
760
|
-
/**
|
|
1150
|
+
/**
|
|
1151
|
+
* (Optional) ID of the Organization for which to list the Webhooks.
|
|
1152
|
+
*/
|
|
761
1153
|
organizationId?: string;
|
|
762
|
-
/**
|
|
1154
|
+
/**
|
|
1155
|
+
* (Optional) ID of the Domain for which to list the Webhooks.
|
|
1156
|
+
*/
|
|
763
1157
|
domainId?: string;
|
|
764
1158
|
};
|
|
765
1159
|
export interface ListWebhooksResponse {
|
|
766
|
-
/**
|
|
1160
|
+
/**
|
|
1161
|
+
* Number of Webhooks matching the requested criteria.
|
|
1162
|
+
*/
|
|
767
1163
|
totalCount: number;
|
|
768
|
-
/**
|
|
1164
|
+
/**
|
|
1165
|
+
* Single page of Webhooks matching the requested criteria.
|
|
1166
|
+
*/
|
|
769
1167
|
webhooks: Webhook[];
|
|
770
1168
|
}
|
|
771
1169
|
export interface ProjectConsumption {
|
|
772
|
-
/**
|
|
1170
|
+
/**
|
|
1171
|
+
* ID of the project.
|
|
1172
|
+
*/
|
|
773
1173
|
projectId: string;
|
|
774
|
-
/**
|
|
1174
|
+
/**
|
|
1175
|
+
* Number of domains in the project.
|
|
1176
|
+
*/
|
|
775
1177
|
domainsCount: number;
|
|
776
|
-
/**
|
|
1178
|
+
/**
|
|
1179
|
+
* Number of dedicated IP in the project.
|
|
1180
|
+
*/
|
|
777
1181
|
dedicatedIpsCount: number;
|
|
778
|
-
/**
|
|
1182
|
+
/**
|
|
1183
|
+
* Number of emails sent during the current month in the project.
|
|
1184
|
+
*/
|
|
779
1185
|
monthlyEmailsCount: number;
|
|
780
|
-
/**
|
|
1186
|
+
/**
|
|
1187
|
+
* Number of webhooks in the project.
|
|
1188
|
+
*/
|
|
781
1189
|
webhooksCount: number;
|
|
782
|
-
/**
|
|
1190
|
+
/**
|
|
1191
|
+
* Number of custom blocklists in the project.
|
|
1192
|
+
*/
|
|
783
1193
|
customBlocklistsCount: number;
|
|
784
1194
|
}
|
|
785
1195
|
export interface ProjectSettings {
|
|
786
|
-
/**
|
|
1196
|
+
/**
|
|
1197
|
+
* Information about your periodic report.
|
|
1198
|
+
*/
|
|
787
1199
|
periodicReport?: ProjectSettingsPeriodicReport;
|
|
788
1200
|
}
|
|
789
1201
|
export type RevokeDomainRequest = {
|
|
790
1202
|
/**
|
|
791
|
-
* Region to target. If none is passed will use default region from the
|
|
792
|
-
* config.
|
|
1203
|
+
* Region to target. If none is passed will use default region from the config.
|
|
793
1204
|
*/
|
|
794
1205
|
region?: ScwRegion;
|
|
795
|
-
/**
|
|
1206
|
+
/**
|
|
1207
|
+
* ID of the domain to delete.
|
|
1208
|
+
*/
|
|
796
1209
|
domainId: string;
|
|
797
1210
|
};
|
|
798
1211
|
export interface Statistics {
|
|
799
|
-
/**
|
|
1212
|
+
/**
|
|
1213
|
+
* Total number of emails matching the requested criteria.
|
|
1214
|
+
*/
|
|
800
1215
|
totalCount: number;
|
|
801
1216
|
/**
|
|
802
|
-
* Number of emails still in the `new` transient state. This means emails
|
|
803
|
-
* received from the API but not yet processed.
|
|
1217
|
+
* Number of emails still in the `new` transient state. This means emails received from the API but not yet processed.
|
|
804
1218
|
*/
|
|
805
1219
|
newCount: number;
|
|
806
1220
|
/**
|
|
807
|
-
* Number of emails still in the `sending` transient state. This means emails
|
|
808
|
-
* received from the API but not yet in their final status.
|
|
1221
|
+
* Number of emails still in the `sending` transient state. This means emails received from the API but not yet in their final status.
|
|
809
1222
|
*/
|
|
810
1223
|
sendingCount: number;
|
|
811
1224
|
/**
|
|
812
|
-
* Number of emails in the final `sent` state. This means emails that have
|
|
813
|
-
* been delivered to the target mail system.
|
|
1225
|
+
* Number of emails in the final `sent` state. This means emails that have been delivered to the target mail system.
|
|
814
1226
|
*/
|
|
815
1227
|
sentCount: number;
|
|
816
1228
|
/**
|
|
817
|
-
* Number of emails in the final `failed` state. This means emails that have
|
|
818
|
-
* been refused by the target mail system with a final error status.
|
|
1229
|
+
* Number of emails in the final `failed` state. This means emails that have been refused by the target mail system with a final error status.
|
|
819
1230
|
*/
|
|
820
1231
|
failedCount: number;
|
|
821
1232
|
/**
|
|
822
|
-
* Number of emails in the final `canceled` state. This means emails that have
|
|
823
|
-
* been canceled upon request.
|
|
1233
|
+
* Number of emails in the final `canceled` state. This means emails that have been canceled upon request.
|
|
824
1234
|
*/
|
|
825
1235
|
canceledCount: number;
|
|
826
1236
|
}
|
|
827
1237
|
export type UpdateDomainRequest = {
|
|
828
1238
|
/**
|
|
829
|
-
* Region to target. If none is passed will use default region from the
|
|
830
|
-
* config.
|
|
1239
|
+
* Region to target. If none is passed will use default region from the config.
|
|
831
1240
|
*/
|
|
832
1241
|
region?: ScwRegion;
|
|
833
|
-
/**
|
|
1242
|
+
/**
|
|
1243
|
+
* ID of the domain to update.
|
|
1244
|
+
*/
|
|
834
1245
|
domainId: string;
|
|
835
1246
|
/**
|
|
836
|
-
* (Optional) If set to true, activate auto-configuration of the domain's DNS
|
|
837
|
-
* zone.
|
|
1247
|
+
* (Optional) If set to true, activate auto-configuration of the domain's DNS zone.
|
|
838
1248
|
*/
|
|
839
1249
|
autoconfig?: boolean;
|
|
840
1250
|
};
|
|
841
1251
|
export type UpdateOfferSubscriptionRequest = {
|
|
842
1252
|
/**
|
|
843
|
-
* Region to target. If none is passed will use default region from the
|
|
844
|
-
* config.
|
|
1253
|
+
* Region to target. If none is passed will use default region from the config.
|
|
845
1254
|
*/
|
|
846
1255
|
region?: ScwRegion;
|
|
847
|
-
/**
|
|
1256
|
+
/**
|
|
1257
|
+
* ID of the Project.
|
|
1258
|
+
*/
|
|
848
1259
|
projectId?: string;
|
|
849
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* Name of the offer-subscription.
|
|
1262
|
+
*/
|
|
850
1263
|
name?: OfferName;
|
|
851
1264
|
};
|
|
852
1265
|
export type UpdateProjectSettingsRequest = {
|
|
853
1266
|
/**
|
|
854
|
-
* Region to target. If none is passed will use default region from the
|
|
855
|
-
* config.
|
|
1267
|
+
* Region to target. If none is passed will use default region from the config.
|
|
856
1268
|
*/
|
|
857
1269
|
region?: ScwRegion;
|
|
858
|
-
/**
|
|
1270
|
+
/**
|
|
1271
|
+
* ID of the project.
|
|
1272
|
+
*/
|
|
859
1273
|
projectId?: string;
|
|
860
|
-
/**
|
|
1274
|
+
/**
|
|
1275
|
+
* Periodic report update details - all fields are optional.
|
|
1276
|
+
*/
|
|
861
1277
|
periodicReport?: UpdateProjectSettingsRequestUpdatePeriodicReport;
|
|
862
1278
|
};
|
|
863
1279
|
export type UpdateWebhookRequest = {
|
|
864
1280
|
/**
|
|
865
|
-
* Region to target. If none is passed will use default region from the
|
|
866
|
-
* config.
|
|
1281
|
+
* Region to target. If none is passed will use default region from the config.
|
|
867
1282
|
*/
|
|
868
1283
|
region?: ScwRegion;
|
|
869
|
-
/**
|
|
1284
|
+
/**
|
|
1285
|
+
* ID of the Webhook to update.
|
|
1286
|
+
*/
|
|
870
1287
|
webhookId: string;
|
|
871
|
-
/**
|
|
1288
|
+
/**
|
|
1289
|
+
* Name of the Webhook to update.
|
|
1290
|
+
*/
|
|
872
1291
|
name?: string;
|
|
873
|
-
/**
|
|
1292
|
+
/**
|
|
1293
|
+
* List of event types to update.
|
|
1294
|
+
*/
|
|
874
1295
|
eventTypes?: WebhookEventType[];
|
|
875
|
-
/**
|
|
1296
|
+
/**
|
|
1297
|
+
* Scaleway SNS ARN topic to update.
|
|
1298
|
+
*/
|
|
876
1299
|
snsArn?: string;
|
|
877
1300
|
};
|