@scaleway/sdk 1.20.0 → 1.22.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/index.d.ts CHANGED
@@ -129,7 +129,7 @@ interface ResponseInterceptor {
129
129
  * @public
130
130
  */
131
131
  interface ResponseErrorInterceptor {
132
- ({ request, error }: {
132
+ ({ request, error, }: {
133
133
  request: Request;
134
134
  error: unknown;
135
135
  }): unknown | Promise<unknown>;
@@ -1052,16 +1052,16 @@ declare const enrichForPagination: <K extends string, T extends PaginatedContent
1052
1052
  [Symbol.asyncIterator]: () => AsyncGenerator<T[K], void, void>;
1053
1053
  };
1054
1054
 
1055
- type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
1055
+ type ListProjectsRequestOrderBy$1 = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
1056
1056
  /** List projects response. */
1057
- interface ListProjectsResponse {
1057
+ interface ListProjectsResponse$1 {
1058
1058
  /** Total number of Projects. */
1059
1059
  totalCount: number;
1060
1060
  /** Paginated returned Projects. */
1061
- projects: Project[];
1061
+ projects: Project$1[];
1062
1062
  }
1063
1063
  /** Project. */
1064
- interface Project {
1064
+ interface Project$1 {
1065
1065
  /** ID of the Project. */
1066
1066
  id: string;
1067
1067
  /** Name of the Project. */
@@ -1093,7 +1093,7 @@ type ListProjectsRequest = {
1093
1093
  /** Maximum number of Project per page. */
1094
1094
  pageSize?: number;
1095
1095
  /** Sort order of the returned Projects. */
1096
- orderBy?: ListProjectsRequestOrderBy;
1096
+ orderBy?: ListProjectsRequestOrderBy$1;
1097
1097
  /**
1098
1098
  * Project IDs to filter for. The results will be limited to any Projects with
1099
1099
  * an ID in this array.
@@ -1123,25 +1123,175 @@ type UpdateProjectRequest = {
1123
1123
  * User related data. This API allows you to manage projects.
1124
1124
  */
1125
1125
  declare class API$r extends API$s {
1126
+ /**
1127
+ * Create a new Project for an Organization. Deprecated in favor of Account
1128
+ * API v3. Generate a new Project for an Organization, specifying its
1129
+ * configuration including name and description.
1130
+ *
1131
+ * @deprecated
1132
+ * @param request - The request {@link CreateProjectRequest}
1133
+ * @returns A Promise of Project
1134
+ */
1135
+ createProject: (request?: Readonly<CreateProjectRequest>) => Promise<Project$1>;
1136
+ protected pageOfListProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse$1>;
1137
+ /**
1138
+ * List all Projects of an Organization. Deprecated in favor of Account API
1139
+ * v3. List all Projects of an Organization. The response will include the
1140
+ * total number of Projects as well as their associated Organizations, names
1141
+ * and IDs. Other information include the creation and update date of the
1142
+ * Project.
1143
+ *
1144
+ * @deprecated
1145
+ * @param request - The request {@link ListProjectsRequest}
1146
+ * @returns A Promise of ListProjectsResponse
1147
+ */
1148
+ listProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse$1> & {
1149
+ all: () => Promise<Project$1[]>;
1150
+ [Symbol.asyncIterator]: () => AsyncGenerator<Project$1[], void, void>;
1151
+ };
1152
+ /**
1153
+ * Get an existing Project. Deprecated in favor of Account API v3. Retrieve
1154
+ * information about an existing Project, specified by its Project ID. Its
1155
+ * full details, including ID, name and description, are returned in the
1156
+ * response object.
1157
+ *
1158
+ * @deprecated
1159
+ * @param request - The request {@link GetProjectRequest}
1160
+ * @returns A Promise of Project
1161
+ */
1162
+ getProject: (request?: Readonly<GetProjectRequest>) => Promise<Project$1>;
1163
+ /**
1164
+ * Delete an existing Project. Deprecated in favor of Account API v3. Delete
1165
+ * an existing Project, specified by its Project ID. The Project needs to be
1166
+ * empty (meaning there are no resources left in it) to be deleted
1167
+ * effectively. Note that deleting a Project is permanent, and cannot be
1168
+ * undone.
1169
+ *
1170
+ * @deprecated
1171
+ * @param request - The request {@link DeleteProjectRequest}
1172
+ */
1173
+ deleteProject: (request?: Readonly<DeleteProjectRequest>) => Promise<void>;
1174
+ /**
1175
+ * Update Project. Deprecated in favor of Account API v3. Update the
1176
+ * parameters of an existing Project, specified by its Project ID. These
1177
+ * parameters include the name and description.
1178
+ *
1179
+ * @deprecated
1180
+ * @param request - The request {@link UpdateProjectRequest}
1181
+ * @returns A Promise of Project
1182
+ */
1183
+ updateProject: (request?: Readonly<UpdateProjectRequest>) => Promise<Project$1>;
1184
+ }
1185
+
1186
+ type index_gen$o_CreateProjectRequest = CreateProjectRequest;
1187
+ type index_gen$o_DeleteProjectRequest = DeleteProjectRequest;
1188
+ type index_gen$o_GetProjectRequest = GetProjectRequest;
1189
+ type index_gen$o_ListProjectsRequest = ListProjectsRequest;
1190
+ type index_gen$o_UpdateProjectRequest = UpdateProjectRequest;
1191
+ declare namespace index_gen$o {
1192
+ export {
1193
+ API$r as API,
1194
+ index_gen$o_CreateProjectRequest as CreateProjectRequest,
1195
+ index_gen$o_DeleteProjectRequest as DeleteProjectRequest,
1196
+ index_gen$o_GetProjectRequest as GetProjectRequest,
1197
+ index_gen$o_ListProjectsRequest as ListProjectsRequest,
1198
+ ListProjectsRequestOrderBy$1 as ListProjectsRequestOrderBy,
1199
+ ListProjectsResponse$1 as ListProjectsResponse,
1200
+ Project$1 as Project,
1201
+ index_gen$o_UpdateProjectRequest as UpdateProjectRequest,
1202
+ };
1203
+ }
1204
+
1205
+ type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
1206
+ /** List projects response. */
1207
+ interface ListProjectsResponse {
1208
+ /** Total number of Projects. */
1209
+ totalCount: number;
1210
+ /** Paginated returned Projects. */
1211
+ projects: Project[];
1212
+ }
1213
+ /** Project. */
1214
+ interface Project {
1215
+ /** ID of the Project. */
1216
+ id: string;
1217
+ /** Name of the Project. */
1218
+ name: string;
1219
+ /** Organization ID of the Project. */
1220
+ organizationId: string;
1221
+ /** Creation date of the Project. */
1222
+ createdAt?: Date;
1223
+ /** Update date of the Project. */
1224
+ updatedAt?: Date;
1225
+ /** Description of the Project. */
1226
+ description: string;
1227
+ }
1228
+ type ProjectApiCreateProjectRequest$1 = {
1229
+ /** Name of the Project. */
1230
+ name?: string;
1231
+ /** Organization ID of the Project. */
1232
+ organizationId?: string;
1233
+ /** Description of the Project. */
1234
+ description: string;
1235
+ };
1236
+ type ProjectApiListProjectsRequest$1 = {
1237
+ /** Organization ID of the Project. */
1238
+ organizationId?: string;
1239
+ /** Name of the Project. */
1240
+ name?: string;
1241
+ /** Page number for the returned Projects. */
1242
+ page?: number;
1243
+ /** Maximum number of Project per page. */
1244
+ pageSize?: number;
1245
+ /** Sort order of the returned Projects. */
1246
+ orderBy?: ListProjectsRequestOrderBy;
1247
+ /**
1248
+ * Project IDs to filter for. The results will be limited to any Projects with
1249
+ * an ID in this array.
1250
+ */
1251
+ projectIds?: string[];
1252
+ };
1253
+ type ProjectApiGetProjectRequest = {
1254
+ /** Project ID of the Project. */
1255
+ projectId?: string;
1256
+ };
1257
+ type ProjectApiDeleteProjectRequest = {
1258
+ /** Project ID of the Project. */
1259
+ projectId?: string;
1260
+ };
1261
+ type ProjectApiUpdateProjectRequest$1 = {
1262
+ /** Project ID of the Project. */
1263
+ projectId?: string;
1264
+ /** Name of the Project. */
1265
+ name?: string;
1266
+ /** Description of the Project. */
1267
+ description?: string;
1268
+ };
1269
+
1270
+ /**
1271
+ * Account API.
1272
+ *
1273
+ * This API allows you to manage projects.
1274
+ */
1275
+ declare class ProjectAPI extends API$s {
1126
1276
  /**
1127
1277
  * Create a new Project for an Organization. Generate a new Project for an
1128
1278
  * Organization, specifying its configuration including name and description.
1129
1279
  *
1130
- * @param request - The request {@link CreateProjectRequest}
1280
+ * @param request - The request {@link ProjectApiCreateProjectRequest}
1131
1281
  * @returns A Promise of Project
1132
1282
  */
1133
- createProject: (request?: Readonly<CreateProjectRequest>) => Promise<Project>;
1134
- protected pageOfListProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse>;
1283
+ createProject: (request: Readonly<ProjectApiCreateProjectRequest$1>) => Promise<Project>;
1284
+ protected pageOfListProjects: (request?: Readonly<ProjectApiListProjectsRequest$1>) => Promise<ListProjectsResponse>;
1135
1285
  /**
1136
1286
  * List all Projects of an Organization. List all Projects of an Organization.
1137
1287
  * The response will include the total number of Projects as well as their
1138
- * associated Organizations, names and IDs. Other information include the
1288
+ * associated Organizations, names, and IDs. Other information includes the
1139
1289
  * creation and update date of the Project.
1140
1290
  *
1141
- * @param request - The request {@link ListProjectsRequest}
1291
+ * @param request - The request {@link ProjectApiListProjectsRequest}
1142
1292
  * @returns A Promise of ListProjectsResponse
1143
1293
  */
1144
- listProjects: (request?: Readonly<ListProjectsRequest>) => Promise<ListProjectsResponse> & {
1294
+ listProjects: (request?: Readonly<ProjectApiListProjectsRequest$1>) => Promise<ListProjectsResponse> & {
1145
1295
  all: () => Promise<Project[]>;
1146
1296
  [Symbol.asyncIterator]: () => AsyncGenerator<Project[], void, void>;
1147
1297
  };
@@ -1150,54 +1300,101 @@ declare class API$r extends API$s {
1150
1300
  * specified by its Project ID. Its full details, including ID, name and
1151
1301
  * description, are returned in the response object.
1152
1302
  *
1153
- * @param request - The request {@link GetProjectRequest}
1303
+ * @param request - The request {@link ProjectApiGetProjectRequest}
1154
1304
  * @returns A Promise of Project
1155
1305
  */
1156
- getProject: (request?: Readonly<GetProjectRequest>) => Promise<Project>;
1306
+ getProject: (request?: Readonly<ProjectApiGetProjectRequest>) => Promise<Project>;
1157
1307
  /**
1158
1308
  * Delete an existing Project. Delete an existing Project, specified by its
1159
1309
  * Project ID. The Project needs to be empty (meaning there are no resources
1160
1310
  * left in it) to be deleted effectively. Note that deleting a Project is
1161
1311
  * permanent, and cannot be undone.
1162
1312
  *
1163
- * @param request - The request {@link DeleteProjectRequest}
1313
+ * @param request - The request {@link ProjectApiDeleteProjectRequest}
1164
1314
  */
1165
- deleteProject: (request?: Readonly<DeleteProjectRequest>) => Promise<void>;
1315
+ deleteProject: (request?: Readonly<ProjectApiDeleteProjectRequest>) => Promise<void>;
1166
1316
  /**
1167
1317
  * Update Project. Update the parameters of an existing Project, specified by
1168
1318
  * its Project ID. These parameters include the name and description.
1169
1319
  *
1170
- * @param request - The request {@link UpdateProjectRequest}
1320
+ * @param request - The request {@link ProjectApiUpdateProjectRequest}
1171
1321
  * @returns A Promise of Project
1172
1322
  */
1173
- updateProject: (request?: Readonly<UpdateProjectRequest>) => Promise<Project>;
1323
+ updateProject: (request?: Readonly<ProjectApiUpdateProjectRequest$1>) => Promise<Project>;
1324
+ }
1325
+
1326
+ declare const ProjectApiCreateProjectRequest: {
1327
+ description: {
1328
+ maxLength: number;
1329
+ };
1330
+ name: {
1331
+ maxLength: number;
1332
+ minLength: number;
1333
+ pattern: RegExp;
1334
+ };
1335
+ };
1336
+ declare const ProjectApiListProjectsRequest: {
1337
+ name: {
1338
+ maxLength: number;
1339
+ minLength: number;
1340
+ pattern: RegExp;
1341
+ };
1342
+ page: {
1343
+ greaterThan: number;
1344
+ };
1345
+ pageSize: {
1346
+ greaterThanOrEqual: number;
1347
+ lessThanOrEqual: number;
1348
+ };
1349
+ };
1350
+ declare const ProjectApiUpdateProjectRequest: {
1351
+ description: {
1352
+ maxLength: number;
1353
+ };
1354
+ name: {
1355
+ maxLength: number;
1356
+ minLength: number;
1357
+ pattern: RegExp;
1358
+ };
1359
+ };
1360
+
1361
+ declare const validationRules_gen$6_ProjectApiCreateProjectRequest: typeof ProjectApiCreateProjectRequest;
1362
+ declare const validationRules_gen$6_ProjectApiListProjectsRequest: typeof ProjectApiListProjectsRequest;
1363
+ declare const validationRules_gen$6_ProjectApiUpdateProjectRequest: typeof ProjectApiUpdateProjectRequest;
1364
+ declare namespace validationRules_gen$6 {
1365
+ export {
1366
+ validationRules_gen$6_ProjectApiCreateProjectRequest as ProjectApiCreateProjectRequest,
1367
+ validationRules_gen$6_ProjectApiListProjectsRequest as ProjectApiListProjectsRequest,
1368
+ validationRules_gen$6_ProjectApiUpdateProjectRequest as ProjectApiUpdateProjectRequest,
1369
+ };
1174
1370
  }
1175
1371
 
1176
- type index_gen$n_CreateProjectRequest = CreateProjectRequest;
1177
- type index_gen$n_DeleteProjectRequest = DeleteProjectRequest;
1178
- type index_gen$n_GetProjectRequest = GetProjectRequest;
1179
- type index_gen$n_ListProjectsRequest = ListProjectsRequest;
1180
1372
  type index_gen$n_ListProjectsRequestOrderBy = ListProjectsRequestOrderBy;
1181
1373
  type index_gen$n_ListProjectsResponse = ListProjectsResponse;
1182
1374
  type index_gen$n_Project = Project;
1183
- type index_gen$n_UpdateProjectRequest = UpdateProjectRequest;
1375
+ type index_gen$n_ProjectAPI = ProjectAPI;
1376
+ declare const index_gen$n_ProjectAPI: typeof ProjectAPI;
1377
+ type index_gen$n_ProjectApiDeleteProjectRequest = ProjectApiDeleteProjectRequest;
1378
+ type index_gen$n_ProjectApiGetProjectRequest = ProjectApiGetProjectRequest;
1184
1379
  declare namespace index_gen$n {
1185
1380
  export {
1186
- API$r as API,
1187
- index_gen$n_CreateProjectRequest as CreateProjectRequest,
1188
- index_gen$n_DeleteProjectRequest as DeleteProjectRequest,
1189
- index_gen$n_GetProjectRequest as GetProjectRequest,
1190
- index_gen$n_ListProjectsRequest as ListProjectsRequest,
1191
1381
  index_gen$n_ListProjectsRequestOrderBy as ListProjectsRequestOrderBy,
1192
1382
  index_gen$n_ListProjectsResponse as ListProjectsResponse,
1193
1383
  index_gen$n_Project as Project,
1194
- index_gen$n_UpdateProjectRequest as UpdateProjectRequest,
1384
+ index_gen$n_ProjectAPI as ProjectAPI,
1385
+ ProjectApiCreateProjectRequest$1 as ProjectApiCreateProjectRequest,
1386
+ index_gen$n_ProjectApiDeleteProjectRequest as ProjectApiDeleteProjectRequest,
1387
+ index_gen$n_ProjectApiGetProjectRequest as ProjectApiGetProjectRequest,
1388
+ ProjectApiListProjectsRequest$1 as ProjectApiListProjectsRequest,
1389
+ ProjectApiUpdateProjectRequest$1 as ProjectApiUpdateProjectRequest,
1390
+ validationRules_gen$6 as ValidationRules,
1195
1391
  };
1196
1392
  }
1197
1393
 
1198
1394
  declare namespace index$t {
1199
1395
  export {
1200
- index_gen$n as v2,
1396
+ index_gen$o as v2,
1397
+ index_gen$n as v3,
1201
1398
  };
1202
1399
  }
1203
1400
 
@@ -8705,6 +8902,12 @@ type DeleteUserRequest$1 = {
8705
8902
  /** ID of the user to delete. */
8706
8903
  userId: string;
8707
8904
  };
8905
+ type CreateUserRequest$1 = {
8906
+ /** ID of the Organization. */
8907
+ organizationId?: string;
8908
+ /** Email of the user. */
8909
+ email: string;
8910
+ };
8708
8911
  type ListApplicationsRequest$1 = {
8709
8912
  /** Criteria for sorting results. */
8710
8913
  orderBy?: ListApplicationsRequestOrderBy;
@@ -9159,6 +9362,14 @@ declare class API$i extends API$s {
9159
9362
  * @param request - The request {@link DeleteUserRequest}
9160
9363
  */
9161
9364
  deleteUser: (request: Readonly<DeleteUserRequest$1>) => Promise<void>;
9365
+ /**
9366
+ * Create a new user. Create a new user. You must define the `organization_id`
9367
+ * and the `email` in your request.
9368
+ *
9369
+ * @param request - The request {@link CreateUserRequest}
9370
+ * @returns A Promise of User
9371
+ */
9372
+ createUser: (request: Readonly<CreateUserRequest$1>) => Promise<User$1>;
9162
9373
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest$1>) => Promise<ListApplicationsResponse>;
9163
9374
  /**
9164
9375
  * List applications of an Organization. List the applications of an
@@ -9820,6 +10031,7 @@ declare namespace index_gen$f {
9820
10031
  CreateGroupRequest$1 as CreateGroupRequest,
9821
10032
  CreatePolicyRequest$1 as CreatePolicyRequest,
9822
10033
  CreateSSHKeyRequest$1 as CreateSSHKeyRequest,
10034
+ CreateUserRequest$1 as CreateUserRequest,
9823
10035
  index_gen$f_DeleteAPIKeyRequest as DeleteAPIKeyRequest,
9824
10036
  index_gen$f_DeleteApplicationRequest as DeleteApplicationRequest,
9825
10037
  index_gen$f_DeleteGroupRequest as DeleteGroupRequest,
@@ -10751,6 +10963,11 @@ type ListServersRequest = {
10751
10963
  privateNetwork?: string;
10752
10964
  /** Define the order of the returned servers. */
10753
10965
  order?: ListServersRequestOrder;
10966
+ /**
10967
+ * List Instances from the given Private Networks (use commas to separate
10968
+ * them).
10969
+ */
10970
+ privateNetworks?: string[];
10754
10971
  };
10755
10972
  type DeleteServerRequest = {
10756
10973
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -14733,6 +14950,10 @@ interface ClusterType {
14733
14950
  sla: number;
14734
14951
  /** Resiliency offered by the offer. */
14735
14952
  resiliency: ClusterTypeResiliency;
14953
+ /** Max RAM allowed for the control plane. */
14954
+ memory: number;
14955
+ /** Returns information if this offer uses dedicated resources. */
14956
+ dedicated: boolean;
14736
14957
  }
14737
14958
  /** Create cluster request. auto upgrade. */
14738
14959
  interface CreateClusterRequestAutoUpgrade {
@@ -21188,7 +21409,7 @@ type NodeTypeGeneration = 'unknown_generation' | 'generation_v1' | 'generation_v
21188
21409
  type NodeTypeStock$1 = 'unknown' | 'low_stock' | 'out_of_stock' | 'available';
21189
21410
  type Permission = 'readonly' | 'readwrite' | 'all' | 'custom' | 'none';
21190
21411
  /** Read replica. status. */
21191
- type ReadReplicaStatus = 'unknown' | 'provisioning' | 'initializing' | 'ready' | 'deleting' | 'error' | 'locked' | 'configuring';
21412
+ type ReadReplicaStatus = 'unknown' | 'provisioning' | 'initializing' | 'ready' | 'deleting' | 'error' | 'locked' | 'configuring' | 'promoting';
21192
21413
  type SnapshotStatus = 'unknown' | 'creating' | 'ready' | 'restoring' | 'deleting' | 'error' | 'locked';
21193
21414
  type VolumeType = 'lssd' | 'bssd';
21194
21415
  interface ACLRule$1 {
@@ -22164,6 +22385,15 @@ type ResetReadReplicaRequest = {
22164
22385
  /** UUID of the Read Replica. */
22165
22386
  readReplicaId: string;
22166
22387
  };
22388
+ type PromoteReadReplicaRequest = {
22389
+ /**
22390
+ * Region to target. If none is passed will use default region from the
22391
+ * config.
22392
+ */
22393
+ region?: Region;
22394
+ /** UUID of the Read Replica. */
22395
+ readReplicaId: string;
22396
+ };
22167
22397
  type CreateReadReplicaEndpointRequest = {
22168
22398
  /**
22169
22399
  * Region to target. If none is passed will use default region from the
@@ -22829,6 +23059,14 @@ declare class API$9 extends API$s {
22829
23059
  * @returns A Promise of ReadReplica
22830
23060
  */
22831
23061
  resetReadReplica: (request: Readonly<ResetReadReplicaRequest>) => Promise<ReadReplica>;
23062
+ /**
23063
+ * Promote a Read Replica. Promote a Read Replica to Database Instance
23064
+ * automatically.
23065
+ *
23066
+ * @param request - The request {@link PromoteReadReplicaRequest}
23067
+ * @returns A Promise of Instance
23068
+ */
23069
+ promoteReadReplica: (request: Readonly<PromoteReadReplicaRequest>) => Promise<Instance>;
22832
23070
  /**
22833
23071
  * Create an endpoint for a Read Replica. Create a new endpoint for a Read
22834
23072
  * Replica. Read Replicas can have at most one direct access and one Private
@@ -23289,6 +23527,7 @@ type index_gen$9_Permission = Permission;
23289
23527
  type index_gen$9_PrepareInstanceLogsRequest = PrepareInstanceLogsRequest;
23290
23528
  type index_gen$9_PrepareInstanceLogsResponse = PrepareInstanceLogsResponse;
23291
23529
  type index_gen$9_Privilege = Privilege;
23530
+ type index_gen$9_PromoteReadReplicaRequest = PromoteReadReplicaRequest;
23292
23531
  type index_gen$9_PurgeInstanceLogsRequest = PurgeInstanceLogsRequest;
23293
23532
  declare const index_gen$9_READ_REPLICA_TRANSIENT_STATUSES: typeof READ_REPLICA_TRANSIENT_STATUSES;
23294
23533
  type index_gen$9_ReadReplica = ReadReplica;
@@ -23428,6 +23667,7 @@ declare namespace index_gen$9 {
23428
23667
  index_gen$9_PrepareInstanceLogsRequest as PrepareInstanceLogsRequest,
23429
23668
  index_gen$9_PrepareInstanceLogsResponse as PrepareInstanceLogsResponse,
23430
23669
  index_gen$9_Privilege as Privilege,
23670
+ index_gen$9_PromoteReadReplicaRequest as PromoteReadReplicaRequest,
23431
23671
  index_gen$9_PurgeInstanceLogsRequest as PurgeInstanceLogsRequest,
23432
23672
  index_gen$9_READ_REPLICA_TRANSIENT_STATUSES as READ_REPLICA_TRANSIENT_STATUSES,
23433
23673
  index_gen$9_ReadReplica as ReadReplica,
@@ -24859,7 +25099,7 @@ declare namespace index$6 {
24859
25099
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
24860
25100
  type Product = 'unknown';
24861
25101
  type SecretStatus = 'ready' | 'locked';
24862
- type SecretType = 'unknown_secret_type' | 'opaque' | 'network_edge_certificate';
25102
+ type SecretType = 'unknown_secret_type' | 'opaque' | 'certificate';
24863
25103
  type SecretVersionStatus = 'unknown' | 'enabled' | 'disabled' | 'destroyed';
24864
25104
  /** Access secret version response. */
24865
25105
  interface AccessSecretVersionResponse {
@@ -25846,6 +26086,7 @@ declare namespace index$4 {
25846
26086
 
25847
26087
  type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
25848
26088
  type DomainStatus = 'unknown' | 'checked' | 'unchecked' | 'invalid' | 'locked' | 'revoked' | 'pending';
26089
+ type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam';
25849
26090
  type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc';
25850
26091
  type EmailStatus = 'unknown' | 'new' | 'sending' | 'sent' | 'failed' | 'canceled';
25851
26092
  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';
@@ -25965,6 +26206,11 @@ interface Email {
25965
26206
  tryCount: number;
25966
26207
  /** Information about the last three attempts to send the email. */
25967
26208
  lastTries: EmailTry[];
26209
+ /**
26210
+ * Flags categorize emails. They allow you to obtain more information about
26211
+ * recurring errors, for example.
26212
+ */
26213
+ flags: EmailFlag[];
25968
26214
  }
25969
26215
  /** Email. try. */
25970
26216
  interface EmailTry {
@@ -26094,6 +26340,8 @@ type ListEmailsRequest = {
26094
26340
  search?: string;
26095
26341
  /** (Optional) List emails corresponding to specific criteria. */
26096
26342
  orderBy?: ListEmailsRequestOrderBy;
26343
+ /** (Optional) List emails containing only specific flags. */
26344
+ flags?: EmailFlag[];
26097
26345
  };
26098
26346
  type GetStatisticsRequest = {
26099
26347
  /**
@@ -26333,6 +26581,7 @@ type index_gen$4_DomainStatistics = DomainStatistics;
26333
26581
  type index_gen$4_DomainStatus = DomainStatus;
26334
26582
  declare const index_gen$4_EMAIL_TRANSIENT_STATUSES: typeof EMAIL_TRANSIENT_STATUSES;
26335
26583
  type index_gen$4_Email = Email;
26584
+ type index_gen$4_EmailFlag = EmailFlag;
26336
26585
  type index_gen$4_EmailRcptType = EmailRcptType;
26337
26586
  type index_gen$4_EmailStatus = EmailStatus;
26338
26587
  type index_gen$4_EmailTry = EmailTry;
@@ -26367,6 +26616,7 @@ declare namespace index_gen$4 {
26367
26616
  index_gen$4_DomainStatus as DomainStatus,
26368
26617
  index_gen$4_EMAIL_TRANSIENT_STATUSES as EMAIL_TRANSIENT_STATUSES,
26369
26618
  index_gen$4_Email as Email,
26619
+ index_gen$4_EmailFlag as EmailFlag,
26370
26620
  index_gen$4_EmailRcptType as EmailRcptType,
26371
26621
  index_gen$4_EmailStatus as EmailStatus,
26372
26622
  index_gen$4_EmailTry as EmailTry,
@@ -1,4 +1,4 @@
1
- const version = 'v1.19.0';
1
+ const version = 'v1.21.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "3e5285da8a27a10f9795d32e271aa06514cbf6cb"
38
+ "gitHead": "66cde1e17baccf8720e9ce92e0a3688295d2be12"
39
39
  }