@scaleway/sdk 2.10.0 → 2.11.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
@@ -903,7 +903,7 @@ declare const addAsyncHeaderInterceptor: (key: string, getter: () => Promise<str
903
903
  *
904
904
  * @internal
905
905
  */
906
- declare abstract class API$w {
906
+ declare abstract class API$x {
907
907
  protected client: Client;
908
908
  constructor(client: Client);
909
909
  }
@@ -1133,7 +1133,7 @@ type UpdateProjectRequest = {
1133
1133
  *
1134
1134
  * User related data. This API allows you to manage projects.
1135
1135
  */
1136
- declare class API$v extends API$w {
1136
+ declare class API$w extends API$x {
1137
1137
  /**
1138
1138
  * Create a new Project for an Organization. Deprecated in favor of Account
1139
1139
  * API v3. Generate a new Project for an Organization, specifying its
@@ -1194,13 +1194,13 @@ declare class API$v extends API$w {
1194
1194
  updateProject: (request?: Readonly<UpdateProjectRequest>) => Promise<Project$1>;
1195
1195
  }
1196
1196
 
1197
- type index_gen$u_CreateProjectRequest = CreateProjectRequest;
1198
- type index_gen$u_DeleteProjectRequest = DeleteProjectRequest;
1199
- type index_gen$u_GetProjectRequest = GetProjectRequest;
1200
- type index_gen$u_ListProjectsRequest = ListProjectsRequest;
1201
- type index_gen$u_UpdateProjectRequest = UpdateProjectRequest;
1202
- declare namespace index_gen$u {
1203
- export { API$v as API, type index_gen$u_CreateProjectRequest as CreateProjectRequest, type index_gen$u_DeleteProjectRequest as DeleteProjectRequest, type index_gen$u_GetProjectRequest as GetProjectRequest, type index_gen$u_ListProjectsRequest as ListProjectsRequest, type ListProjectsRequestOrderBy$1 as ListProjectsRequestOrderBy, type ListProjectsResponse$1 as ListProjectsResponse, type Project$1 as Project, type index_gen$u_UpdateProjectRequest as UpdateProjectRequest };
1197
+ type index_gen$v_CreateProjectRequest = CreateProjectRequest;
1198
+ type index_gen$v_DeleteProjectRequest = DeleteProjectRequest;
1199
+ type index_gen$v_GetProjectRequest = GetProjectRequest;
1200
+ type index_gen$v_ListProjectsRequest = ListProjectsRequest;
1201
+ type index_gen$v_UpdateProjectRequest = UpdateProjectRequest;
1202
+ declare namespace index_gen$v {
1203
+ export { API$w as API, type index_gen$v_CreateProjectRequest as CreateProjectRequest, type index_gen$v_DeleteProjectRequest as DeleteProjectRequest, type index_gen$v_GetProjectRequest as GetProjectRequest, type index_gen$v_ListProjectsRequest as ListProjectsRequest, type ListProjectsRequestOrderBy$1 as ListProjectsRequestOrderBy, type ListProjectsResponse$1 as ListProjectsResponse, type Project$1 as Project, type index_gen$v_UpdateProjectRequest as UpdateProjectRequest };
1204
1204
  }
1205
1205
 
1206
1206
  type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
@@ -1271,7 +1271,7 @@ type ProjectApiUpdateProjectRequest$1 = {
1271
1271
  *
1272
1272
  * This API allows you to manage projects.
1273
1273
  */
1274
- declare class ProjectAPI extends API$w {
1274
+ declare class ProjectAPI extends API$x {
1275
1275
  /**
1276
1276
  * Create a new Project for an Organization. Generate a new Project for an
1277
1277
  * Organization, specifying its configuration including name and description.
@@ -1364,19 +1364,19 @@ declare namespace validationRules_gen$e {
1364
1364
  export { validationRules_gen$e_ProjectApiCreateProjectRequest as ProjectApiCreateProjectRequest, validationRules_gen$e_ProjectApiListProjectsRequest as ProjectApiListProjectsRequest, validationRules_gen$e_ProjectApiUpdateProjectRequest as ProjectApiUpdateProjectRequest };
1365
1365
  }
1366
1366
 
1367
- type index_gen$t_ListProjectsRequestOrderBy = ListProjectsRequestOrderBy;
1368
- type index_gen$t_ListProjectsResponse = ListProjectsResponse;
1369
- type index_gen$t_Project = Project;
1370
- type index_gen$t_ProjectAPI = ProjectAPI;
1371
- declare const index_gen$t_ProjectAPI: typeof ProjectAPI;
1372
- type index_gen$t_ProjectApiDeleteProjectRequest = ProjectApiDeleteProjectRequest;
1373
- type index_gen$t_ProjectApiGetProjectRequest = ProjectApiGetProjectRequest;
1374
- declare namespace index_gen$t {
1375
- export { type index_gen$t_ListProjectsRequestOrderBy as ListProjectsRequestOrderBy, type index_gen$t_ListProjectsResponse as ListProjectsResponse, type index_gen$t_Project as Project, index_gen$t_ProjectAPI as ProjectAPI, type ProjectApiCreateProjectRequest$1 as ProjectApiCreateProjectRequest, type index_gen$t_ProjectApiDeleteProjectRequest as ProjectApiDeleteProjectRequest, type index_gen$t_ProjectApiGetProjectRequest as ProjectApiGetProjectRequest, type ProjectApiListProjectsRequest$1 as ProjectApiListProjectsRequest, type ProjectApiUpdateProjectRequest$1 as ProjectApiUpdateProjectRequest, validationRules_gen$e as ValidationRules };
1367
+ type index_gen$u_ListProjectsRequestOrderBy = ListProjectsRequestOrderBy;
1368
+ type index_gen$u_ListProjectsResponse = ListProjectsResponse;
1369
+ type index_gen$u_Project = Project;
1370
+ type index_gen$u_ProjectAPI = ProjectAPI;
1371
+ declare const index_gen$u_ProjectAPI: typeof ProjectAPI;
1372
+ type index_gen$u_ProjectApiDeleteProjectRequest = ProjectApiDeleteProjectRequest;
1373
+ type index_gen$u_ProjectApiGetProjectRequest = ProjectApiGetProjectRequest;
1374
+ declare namespace index_gen$u {
1375
+ export { type index_gen$u_ListProjectsRequestOrderBy as ListProjectsRequestOrderBy, type index_gen$u_ListProjectsResponse as ListProjectsResponse, type index_gen$u_Project as Project, index_gen$u_ProjectAPI as ProjectAPI, type ProjectApiCreateProjectRequest$1 as ProjectApiCreateProjectRequest, type index_gen$u_ProjectApiDeleteProjectRequest as ProjectApiDeleteProjectRequest, type index_gen$u_ProjectApiGetProjectRequest as ProjectApiGetProjectRequest, type ProjectApiListProjectsRequest$1 as ProjectApiListProjectsRequest, type ProjectApiUpdateProjectRequest$1 as ProjectApiUpdateProjectRequest, validationRules_gen$e as ValidationRules };
1376
1376
  }
1377
1377
 
1378
1378
  declare namespace index$y {
1379
- export { index_gen$u as v2, index_gen$t as v3 };
1379
+ export { index_gen$v as v2, index_gen$u as v3 };
1380
1380
  }
1381
1381
 
1382
1382
  type ListServersRequestOrderBy$1 = 'created_at_asc' | 'created_at_desc';
@@ -1557,7 +1557,7 @@ type UpdateServerRequest$3 = {
1557
1557
  };
1558
1558
 
1559
1559
  /** Apple silicon API. */
1560
- declare class API$u extends API$w {
1560
+ declare class API$v extends API$x {
1561
1561
  /** Lists the available zones of the API. */
1562
1562
  static readonly LOCALITIES: Zone[];
1563
1563
  /**
@@ -1676,20 +1676,20 @@ declare class API$u extends API$w {
1676
1676
  /** Lists transient statutes of the enum {@link ServerStatus}. */
1677
1677
  declare const SERVER_TRANSIENT_STATUSES$2: ServerStatus$1[];
1678
1678
 
1679
- type index_gen$s_GetServerTypeRequest = GetServerTypeRequest;
1680
- type index_gen$s_ListServerTypesRequest = ListServerTypesRequest;
1681
- type index_gen$s_ListServerTypesResponse = ListServerTypesResponse;
1682
- type index_gen$s_ReinstallServerRequest = ReinstallServerRequest;
1683
- type index_gen$s_ServerTypeCPU = ServerTypeCPU;
1684
- type index_gen$s_ServerTypeDisk = ServerTypeDisk;
1685
- type index_gen$s_ServerTypeMemory = ServerTypeMemory;
1686
- type index_gen$s_ServerTypeStock = ServerTypeStock;
1687
- declare namespace index_gen$s {
1688
- export { API$u as API, type CreateServerRequest$3 as CreateServerRequest, type DeleteServerRequest$2 as DeleteServerRequest, type GetOSRequest$1 as GetOSRequest, type GetServerRequest$2 as GetServerRequest, type index_gen$s_GetServerTypeRequest as GetServerTypeRequest, type ListOSRequest$2 as ListOSRequest, type ListOSResponse$1 as ListOSResponse, type index_gen$s_ListServerTypesRequest as ListServerTypesRequest, type index_gen$s_ListServerTypesResponse as ListServerTypesResponse, type ListServersRequest$3 as ListServersRequest, type ListServersRequestOrderBy$1 as ListServersRequestOrderBy, type ListServersResponse$2 as ListServersResponse, type OS$1 as OS, type RebootServerRequest$1 as RebootServerRequest, type index_gen$s_ReinstallServerRequest as ReinstallServerRequest, SERVER_TRANSIENT_STATUSES$2 as SERVER_TRANSIENT_STATUSES, type Server$2 as Server, type ServerStatus$1 as ServerStatus, type ServerType$1 as ServerType, type index_gen$s_ServerTypeCPU as ServerTypeCPU, type index_gen$s_ServerTypeDisk as ServerTypeDisk, type index_gen$s_ServerTypeMemory as ServerTypeMemory, type index_gen$s_ServerTypeStock as ServerTypeStock, type UpdateServerRequest$3 as UpdateServerRequest };
1679
+ type index_gen$t_GetServerTypeRequest = GetServerTypeRequest;
1680
+ type index_gen$t_ListServerTypesRequest = ListServerTypesRequest;
1681
+ type index_gen$t_ListServerTypesResponse = ListServerTypesResponse;
1682
+ type index_gen$t_ReinstallServerRequest = ReinstallServerRequest;
1683
+ type index_gen$t_ServerTypeCPU = ServerTypeCPU;
1684
+ type index_gen$t_ServerTypeDisk = ServerTypeDisk;
1685
+ type index_gen$t_ServerTypeMemory = ServerTypeMemory;
1686
+ type index_gen$t_ServerTypeStock = ServerTypeStock;
1687
+ declare namespace index_gen$t {
1688
+ export { API$v as API, type CreateServerRequest$3 as CreateServerRequest, type DeleteServerRequest$2 as DeleteServerRequest, type GetOSRequest$1 as GetOSRequest, type GetServerRequest$2 as GetServerRequest, type index_gen$t_GetServerTypeRequest as GetServerTypeRequest, type ListOSRequest$2 as ListOSRequest, type ListOSResponse$1 as ListOSResponse, type index_gen$t_ListServerTypesRequest as ListServerTypesRequest, type index_gen$t_ListServerTypesResponse as ListServerTypesResponse, type ListServersRequest$3 as ListServersRequest, type ListServersRequestOrderBy$1 as ListServersRequestOrderBy, type ListServersResponse$2 as ListServersResponse, type OS$1 as OS, type RebootServerRequest$1 as RebootServerRequest, type index_gen$t_ReinstallServerRequest as ReinstallServerRequest, SERVER_TRANSIENT_STATUSES$2 as SERVER_TRANSIENT_STATUSES, type Server$2 as Server, type ServerStatus$1 as ServerStatus, type ServerType$1 as ServerType, type index_gen$t_ServerTypeCPU as ServerTypeCPU, type index_gen$t_ServerTypeDisk as ServerTypeDisk, type index_gen$t_ServerTypeMemory as ServerTypeMemory, type index_gen$t_ServerTypeStock as ServerTypeStock, type UpdateServerRequest$3 as UpdateServerRequest };
1689
1689
  }
1690
1690
 
1691
1691
  declare namespace index$x {
1692
- export { index_gen$s as v1alpha1 };
1692
+ export { index_gen$t as v1alpha1 };
1693
1693
  }
1694
1694
 
1695
1695
  type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error';
@@ -2379,7 +2379,7 @@ type UpdateSettingRequest = {
2379
2379
  *
2380
2380
  * This API allows to manage your Elastic Metal server.
2381
2381
  */
2382
- declare class API$t extends API$w {
2382
+ declare class API$u extends API$x {
2383
2383
  /** Lists the available zones of the API. */
2384
2384
  static readonly LOCALITIES: Zone[];
2385
2385
  protected pageOfListServers: (request?: Readonly<ListServersRequest$2>) => Promise<ListServersResponse$1>;
@@ -2619,7 +2619,7 @@ declare class API$t extends API$w {
2619
2619
  getOS: (request: Readonly<GetOSRequest>) => Promise<OS>;
2620
2620
  }
2621
2621
  /** Elastic Metal Private Network API. */
2622
- declare class PrivateNetworkAPI extends API$w {
2622
+ declare class PrivateNetworkAPI extends API$x {
2623
2623
  /** Lists the available zones of the API. */
2624
2624
  static readonly LOCALITIES: Zone[];
2625
2625
  /**
@@ -2659,7 +2659,7 @@ declare class PrivateNetworkAPI extends API$w {
2659
2659
  deleteServerPrivateNetwork: (request: Readonly<PrivateNetworkApiDeleteServerPrivateNetworkRequest>) => Promise<void>;
2660
2660
  }
2661
2661
 
2662
- declare class BaremetalV1UtilsAPI extends API$t {
2662
+ declare class BaremetalV1UtilsAPI extends API$u {
2663
2663
  /**
2664
2664
  * Waits for {@link ServerInstall} to be in a final state.
2665
2665
  *
@@ -2861,10 +2861,10 @@ declare namespace index$v {
2861
2861
 
2862
2862
  type DiscountDiscountMode = 'unknown_discount_mode' | 'discount_mode_rate' | 'discount_mode_value' | 'discount_mode_splittable';
2863
2863
  type DiscountFilterType = 'unknown_type' | 'product_category' | 'product' | 'product_offer' | 'product_reference' | 'region' | 'zone';
2864
- type DownloadInvoiceRequestFileType = 'pdf';
2865
- type InvoiceType = 'unknown_type' | 'periodic' | 'purchase';
2864
+ type DownloadInvoiceRequestFileType$1 = 'pdf';
2865
+ type InvoiceType$1 = 'unknown_type' | 'periodic' | 'purchase';
2866
2866
  type ListDiscountsRequestOrderBy = 'creation_date_desc' | 'creation_date_asc';
2867
- type ListInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
2867
+ type ListInvoicesRequestOrderBy$1 = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
2868
2868
  interface DiscountCoupon {
2869
2869
  /** The description of the coupon. */
2870
2870
  description?: string;
@@ -2913,7 +2913,7 @@ interface Discount {
2913
2913
  /** List of products/ranges/regions/zones to limit the usability of discounts. */
2914
2914
  filters: DiscountFilter[];
2915
2915
  }
2916
- interface Invoice {
2916
+ interface Invoice$1 {
2917
2917
  /** Invoice ID. */
2918
2918
  id: string;
2919
2919
  /** Start date of the billing period. */
@@ -2927,15 +2927,15 @@ interface Invoice {
2927
2927
  /** Total amount, taxed. */
2928
2928
  totalTaxed?: Money;
2929
2929
  /** Type of invoice. */
2930
- invoiceType: InvoiceType;
2930
+ invoiceType: InvoiceType$1;
2931
2931
  /** Invoice number. */
2932
2932
  number: number;
2933
2933
  }
2934
- type DownloadInvoiceRequest = {
2934
+ type DownloadInvoiceRequest$1 = {
2935
2935
  /** Invoice ID. */
2936
2936
  invoiceId: string;
2937
2937
  /** Wanted file type. */
2938
- fileType?: DownloadInvoiceRequestFileType;
2938
+ fileType?: DownloadInvoiceRequestFileType$1;
2939
2939
  };
2940
2940
  type GetConsumptionRequest = {
2941
2941
  /** Filter by organization ID. */
@@ -2966,7 +2966,7 @@ interface ListDiscountsResponse {
2966
2966
  /** Paginated returned discounts. */
2967
2967
  discounts: Discount[];
2968
2968
  }
2969
- type ListInvoicesRequest = {
2969
+ type ListInvoicesRequest$1 = {
2970
2970
  /**
2971
2971
  * Organization ID to filter for, only invoices from this Organization will be
2972
2972
  * returned.
@@ -2977,7 +2977,7 @@ type ListInvoicesRequest = {
2977
2977
  /** Invoice's `start_date` precedes `started_before`. */
2978
2978
  startedBefore?: Date;
2979
2979
  /** Invoice type. It can either be `periodic` or `purchase`. */
2980
- invoiceType?: InvoiceType;
2980
+ invoiceType?: InvoiceType$1;
2981
2981
  /** Positive integer to choose the page to return. */
2982
2982
  page?: number;
2983
2983
  /**
@@ -2986,13 +2986,13 @@ type ListInvoicesRequest = {
2986
2986
  */
2987
2987
  pageSize?: number;
2988
2988
  /** How invoices are ordered in the response. */
2989
- orderBy?: ListInvoicesRequestOrderBy;
2989
+ orderBy?: ListInvoicesRequestOrderBy$1;
2990
2990
  };
2991
- interface ListInvoicesResponse {
2991
+ interface ListInvoicesResponse$1 {
2992
2992
  /** Total number of invoices. */
2993
2993
  totalCount: number;
2994
2994
  /** Paginated returned invoices. */
2995
- invoices: Invoice[];
2995
+ invoices: Invoice$1[];
2996
2996
  }
2997
2997
 
2998
2998
  /**
@@ -3000,7 +3000,7 @@ interface ListInvoicesResponse {
3000
3000
  *
3001
3001
  * This API allows you to query your consumption.
3002
3002
  */
3003
- declare class API$s extends API$w {
3003
+ declare class API$t extends API$x {
3004
3004
  /**
3005
3005
  * Get current month's consumption. The consumption reflects the amount of
3006
3006
  * money you have spent for the products you have used. The consumption value
@@ -3010,7 +3010,7 @@ declare class API$s extends API$w {
3010
3010
  * @returns A Promise of GetConsumptionResponse
3011
3011
  */
3012
3012
  getConsumption: (request?: Readonly<GetConsumptionRequest>) => Promise<GetConsumptionResponse>;
3013
- protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
3013
+ protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest$1>) => Promise<ListInvoicesResponse$1>;
3014
3014
  /**
3015
3015
  * List invoices. List all your invoices, filtering by `start_date` and
3016
3016
  * `invoice_type`. Each invoice has its own ID.
@@ -3018,9 +3018,9 @@ declare class API$s extends API$w {
3018
3018
  * @param request - The request {@link ListInvoicesRequest}
3019
3019
  * @returns A Promise of ListInvoicesResponse
3020
3020
  */
3021
- listInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse> & {
3022
- all: () => Promise<Invoice[]>;
3023
- [Symbol.asyncIterator]: () => AsyncGenerator<Invoice[], void, void>;
3021
+ listInvoices: (request?: Readonly<ListInvoicesRequest$1>) => Promise<ListInvoicesResponse$1> & {
3022
+ all: () => Promise<Invoice$1[]>;
3023
+ [Symbol.asyncIterator]: () => AsyncGenerator<Invoice$1[], void, void>;
3024
3024
  };
3025
3025
  /**
3026
3026
  * Download an invoice. Download a specific invoice, specified by its ID.
@@ -3028,7 +3028,7 @@ declare class API$s extends API$w {
3028
3028
  * @param request - The request {@link DownloadInvoiceRequest}
3029
3029
  * @returns A Promise of Blob
3030
3030
  */
3031
- downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
3031
+ downloadInvoice: (request: Readonly<DownloadInvoiceRequest$1>) => Promise<Blob>;
3032
3032
  protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
3033
3033
  /**
3034
3034
  * List all user's discounts. List all discounts for an organization and
@@ -3044,30 +3044,316 @@ declare class API$s extends API$w {
3044
3044
  };
3045
3045
  }
3046
3046
 
3047
- type index_gen$r_Discount = Discount;
3048
- type index_gen$r_DiscountCoupon = DiscountCoupon;
3049
- type index_gen$r_DiscountDiscountMode = DiscountDiscountMode;
3050
- type index_gen$r_DiscountFilter = DiscountFilter;
3051
- type index_gen$r_DiscountFilterType = DiscountFilterType;
3047
+ type index_gen$s_Discount = Discount;
3048
+ type index_gen$s_DiscountCoupon = DiscountCoupon;
3049
+ type index_gen$s_DiscountDiscountMode = DiscountDiscountMode;
3050
+ type index_gen$s_DiscountFilter = DiscountFilter;
3051
+ type index_gen$s_DiscountFilterType = DiscountFilterType;
3052
+ type index_gen$s_GetConsumptionRequest = GetConsumptionRequest;
3053
+ type index_gen$s_GetConsumptionResponse = GetConsumptionResponse;
3054
+ type index_gen$s_GetConsumptionResponseConsumption = GetConsumptionResponseConsumption;
3055
+ type index_gen$s_ListDiscountsRequest = ListDiscountsRequest;
3056
+ type index_gen$s_ListDiscountsRequestOrderBy = ListDiscountsRequestOrderBy;
3057
+ type index_gen$s_ListDiscountsResponse = ListDiscountsResponse;
3058
+ declare namespace index_gen$s {
3059
+ export { API$t as API, type index_gen$s_Discount as Discount, type index_gen$s_DiscountCoupon as DiscountCoupon, type index_gen$s_DiscountDiscountMode as DiscountDiscountMode, type index_gen$s_DiscountFilter as DiscountFilter, type index_gen$s_DiscountFilterType as DiscountFilterType, type DownloadInvoiceRequest$1 as DownloadInvoiceRequest, type DownloadInvoiceRequestFileType$1 as DownloadInvoiceRequestFileType, type index_gen$s_GetConsumptionRequest as GetConsumptionRequest, type index_gen$s_GetConsumptionResponse as GetConsumptionResponse, type index_gen$s_GetConsumptionResponseConsumption as GetConsumptionResponseConsumption, type Invoice$1 as Invoice, type InvoiceType$1 as InvoiceType, type index_gen$s_ListDiscountsRequest as ListDiscountsRequest, type index_gen$s_ListDiscountsRequestOrderBy as ListDiscountsRequestOrderBy, type index_gen$s_ListDiscountsResponse as ListDiscountsResponse, type ListInvoicesRequest$1 as ListInvoicesRequest, type ListInvoicesRequestOrderBy$1 as ListInvoicesRequestOrderBy, type ListInvoicesResponse$1 as ListInvoicesResponse };
3060
+ }
3061
+
3062
+ type DownloadInvoiceRequestFileType = 'pdf';
3063
+ type ExportInvoicesRequestFileType = 'csv';
3064
+ type ExportInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
3065
+ type InvoiceType = 'unknown_type' | 'periodic' | 'purchase';
3066
+ type ListConsumptionsRequestOrderBy = 'updated_at_date_desc' | 'updated_at_date_asc' | 'category_name_desc' | 'category_name_asc';
3067
+ type ListInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
3068
+ type ListTaxesRequestOrderBy = 'updated_at_date_desc' | 'updated_at_date_asc' | 'category_name_desc' | 'category_name_asc';
3069
+ interface ListConsumptionsResponseConsumption {
3070
+ /** Monetary value of the consumption. */
3071
+ value?: Money;
3072
+ /**
3073
+ * The product name. For example, "VPC Public Gateway S", "VPC Public Gateway
3074
+ * M" for the VPC product.
3075
+ */
3076
+ productName: string;
3077
+ /** Identifies the reference based on the category. */
3078
+ resourceName: string;
3079
+ /** Unique identifier of the product. */
3080
+ sku: string;
3081
+ /** Project ID of the consumption. */
3082
+ projectId: string;
3083
+ /** Name of consumption category. */
3084
+ categoryName: string;
3085
+ }
3086
+ interface Invoice {
3087
+ /** Invoice ID. */
3088
+ id: string;
3089
+ organizationId: string;
3090
+ organizationName: string;
3091
+ /** Start date of the billing period. */
3092
+ startDate?: Date;
3093
+ stopDate?: Date;
3094
+ /** The billing period of the invoice in the YYYY-MM format. */
3095
+ billingPeriod?: Date;
3096
+ /** Date when the invoice was sent to the customer. */
3097
+ issuedDate?: Date;
3098
+ /** Payment time limit, set according to the Organization's payment conditions. */
3099
+ dueDate?: Date;
3100
+ /** Total amount, untaxed. */
3101
+ totalUntaxed?: Money;
3102
+ /** Total amount, taxed. */
3103
+ totalTaxed?: Money;
3104
+ /** The total tax amount of the invoice. */
3105
+ totalTax?: Money;
3106
+ /** The total discount amount of the invoice. */
3107
+ totalDiscount?: Money;
3108
+ /** The total amount of the invoice before applying the discount. */
3109
+ totalUndiscount?: Money;
3110
+ /** Type of invoice, either periodic or purchase. */
3111
+ type: InvoiceType;
3112
+ /** The state of the Invoice. */
3113
+ state: string;
3114
+ /** Invoice number. */
3115
+ number: number;
3116
+ sellerName: string;
3117
+ /** Customer name associated to this organization. */
3118
+ customerName: string;
3119
+ }
3120
+ interface ListTaxesResponseTax {
3121
+ /** Description of the tax applied. */
3122
+ description: string;
3123
+ /** The three-letter currency code. */
3124
+ currency: string;
3125
+ /** Applied tax rate (0.2 means a VAT of 20%). */
3126
+ rate?: number;
3127
+ /** The total tax value of the consumption. */
3128
+ totalTaxValue?: number;
3129
+ }
3130
+ type DownloadInvoiceRequest = {
3131
+ /** Invoice ID. */
3132
+ invoiceId: string;
3133
+ /** File type. PDF by default. */
3134
+ fileType?: DownloadInvoiceRequestFileType;
3135
+ };
3136
+ type ExportInvoicesRequest = {
3137
+ /**
3138
+ * Organization ID. If specified, only invoices from this Organization will be
3139
+ * returned.
3140
+ */
3141
+ organizationId?: string;
3142
+ /** Return only invoice with start date greater than billing_period_start. */
3143
+ billingPeriodStartAfter?: Date;
3144
+ /** Return only invoice with start date less than billing_period_start. */
3145
+ billingPeriodStartBefore?: Date;
3146
+ /** Invoice type. It can either be `periodic` or `purchase`. */
3147
+ invoiceType?: InvoiceType;
3148
+ /** Page number. */
3149
+ page?: number;
3150
+ /**
3151
+ * Positive integer lower or equal to 100 to select the number of items to
3152
+ * return.
3153
+ */
3154
+ pageSize?: number;
3155
+ /** How invoices are ordered in the response. */
3156
+ orderBy?: ExportInvoicesRequestOrderBy;
3157
+ /** File format for exporting the invoice list. */
3158
+ fileType?: ExportInvoicesRequestFileType;
3159
+ };
3160
+ type GetInvoiceRequest = {
3161
+ /** Invoice ID. */
3162
+ invoiceId: string;
3163
+ };
3164
+ type ListConsumptionsRequest = {
3165
+ /** Order consumptions list in the response by their update date. */
3166
+ orderBy?: ListConsumptionsRequestOrderBy;
3167
+ /** Positive integer to choose the page to return. */
3168
+ page?: number;
3169
+ /**
3170
+ * Positive integer lower or equal to 100 to select the number of items to
3171
+ * return.
3172
+ */
3173
+ pageSize?: number;
3174
+ /**
3175
+ * Filter by Organization ID.
3176
+ *
3177
+ * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
3178
+ * could be set.
3179
+ */
3180
+ organizationId?: string;
3181
+ /**
3182
+ * Filter by Project ID.
3183
+ *
3184
+ * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
3185
+ * could be set.
3186
+ */
3187
+ projectId?: string;
3188
+ /**
3189
+ * Filter by name of a Category as they are shown in the invoice (Compute,
3190
+ * Network, Observability).
3191
+ */
3192
+ categoryName?: string;
3193
+ /**
3194
+ * Filter by the billing period in the YYYY-MM format. If it is empty the
3195
+ * current billing period will be used as default.
3196
+ */
3197
+ billingPeriod?: string;
3198
+ };
3199
+ interface ListConsumptionsResponse {
3200
+ /** Detailed consumption list. */
3201
+ consumptions: ListConsumptionsResponseConsumption[];
3202
+ /** Total number of returned items. */
3203
+ totalCount: number;
3204
+ /**
3205
+ * Sum of all discounts, displayed only when no category or project ID filter
3206
+ * is applied.
3207
+ */
3208
+ totalDiscountUntaxedValue: number;
3209
+ /** Last consumption update date. */
3210
+ updatedAt?: Date;
3211
+ }
3212
+ type ListInvoicesRequest = {
3213
+ /**
3214
+ * Organization ID. If specified, only invoices from this Organization will be
3215
+ * returned.
3216
+ */
3217
+ organizationId?: string;
3218
+ /** Return only invoice with start date greater than billing_period_start. */
3219
+ billingPeriodStartAfter?: Date;
3220
+ /** Return only invoice with start date less than billing_period_start. */
3221
+ billingPeriodStartBefore?: Date;
3222
+ /** Invoice type. It can either be `periodic` or `purchase`. */
3223
+ invoiceType?: InvoiceType;
3224
+ /** Page number. */
3225
+ page?: number;
3226
+ /**
3227
+ * Positive integer lower or equal to 100 to select the number of items to
3228
+ * return.
3229
+ */
3230
+ pageSize?: number;
3231
+ /** How invoices are ordered in the response. */
3232
+ orderBy?: ListInvoicesRequestOrderBy;
3233
+ };
3234
+ interface ListInvoicesResponse {
3235
+ /** Total number of invoices. */
3236
+ totalCount: number;
3237
+ /** Paginated returned invoices. */
3238
+ invoices: Invoice[];
3239
+ }
3240
+ type ListTaxesRequest = {
3241
+ /** Order consumed taxes list in the response by their update date. */
3242
+ orderBy?: ListTaxesRequestOrderBy;
3243
+ /** Page number. */
3244
+ page?: number;
3245
+ /**
3246
+ * Positive integer lower or equal to 100 to select the number of items to
3247
+ * return.
3248
+ */
3249
+ pageSize?: number;
3250
+ /** Filter by Organization ID. */
3251
+ organizationId?: string;
3252
+ /**
3253
+ * Filter by the billing period in the YYYY-MM format. If it is empty the
3254
+ * current billing period will be used as default.
3255
+ */
3256
+ billingPeriod?: string;
3257
+ };
3258
+ interface ListTaxesResponse {
3259
+ /** Detailed consumption tax. */
3260
+ taxes: ListTaxesResponseTax[];
3261
+ /** Total number of returned items. */
3262
+ totalCount: number;
3263
+ /** Last consumption update date. */
3264
+ updatedAt?: Date;
3265
+ }
3266
+
3267
+ /**
3268
+ * Billing API.
3269
+ *
3270
+ * This API allows you to query your consumption.
3271
+ */
3272
+ declare class API$s extends API$x {
3273
+ protected pageOfListConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse>;
3274
+ /**
3275
+ * Get monthly consumption. Consumption allows you to retrieve your past or
3276
+ * current consumption cost, by project or category.
3277
+ *
3278
+ * @param request - The request {@link ListConsumptionsRequest}
3279
+ * @returns A Promise of ListConsumptionsResponse
3280
+ */
3281
+ listConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse> & {
3282
+ all: () => Promise<ListConsumptionsResponseConsumption[]>;
3283
+ [Symbol.asyncIterator]: () => AsyncGenerator<ListConsumptionsResponseConsumption[], void, void>;
3284
+ };
3285
+ protected pageOfListTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse>;
3286
+ /**
3287
+ * Get monthly consumption taxes. Consumption Tax allows you to retrieve your
3288
+ * past or current tax charges, by project or category.
3289
+ *
3290
+ * @param request - The request {@link ListTaxesRequest}
3291
+ * @returns A Promise of ListTaxesResponse
3292
+ */
3293
+ listTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse> & {
3294
+ all: () => Promise<ListTaxesResponseTax[]>;
3295
+ [Symbol.asyncIterator]: () => AsyncGenerator<ListTaxesResponseTax[], void, void>;
3296
+ };
3297
+ protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
3298
+ /**
3299
+ * List invoices. List all your invoices, filtering by `start_date` and
3300
+ * `invoice_type`. Each invoice has its own ID.
3301
+ *
3302
+ * @param request - The request {@link ListInvoicesRequest}
3303
+ * @returns A Promise of ListInvoicesResponse
3304
+ */
3305
+ listInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse> & {
3306
+ all: () => Promise<Invoice[]>;
3307
+ [Symbol.asyncIterator]: () => AsyncGenerator<Invoice[], void, void>;
3308
+ };
3309
+ /**
3310
+ * Export invoices. Export invoices in a CSV file.
3311
+ *
3312
+ * @param request - The request {@link ExportInvoicesRequest}
3313
+ * @returns A Promise of Blob
3314
+ */
3315
+ exportInvoices: (request?: Readonly<ExportInvoicesRequest>) => Promise<Blob>;
3316
+ /**
3317
+ * Get an invoice. Get a specific invoice, specified by its ID.
3318
+ *
3319
+ * @param request - The request {@link GetInvoiceRequest}
3320
+ * @returns A Promise of Invoice
3321
+ */
3322
+ getInvoice: (request: Readonly<GetInvoiceRequest>) => Promise<Invoice>;
3323
+ /**
3324
+ * Download an invoice. Download a specific invoice, specified by its ID.
3325
+ *
3326
+ * @param request - The request {@link DownloadInvoiceRequest}
3327
+ * @returns A Promise of Blob
3328
+ */
3329
+ downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
3330
+ }
3331
+
3052
3332
  type index_gen$r_DownloadInvoiceRequest = DownloadInvoiceRequest;
3053
3333
  type index_gen$r_DownloadInvoiceRequestFileType = DownloadInvoiceRequestFileType;
3054
- type index_gen$r_GetConsumptionRequest = GetConsumptionRequest;
3055
- type index_gen$r_GetConsumptionResponse = GetConsumptionResponse;
3056
- type index_gen$r_GetConsumptionResponseConsumption = GetConsumptionResponseConsumption;
3334
+ type index_gen$r_ExportInvoicesRequest = ExportInvoicesRequest;
3335
+ type index_gen$r_ExportInvoicesRequestFileType = ExportInvoicesRequestFileType;
3336
+ type index_gen$r_ExportInvoicesRequestOrderBy = ExportInvoicesRequestOrderBy;
3337
+ type index_gen$r_GetInvoiceRequest = GetInvoiceRequest;
3057
3338
  type index_gen$r_Invoice = Invoice;
3058
3339
  type index_gen$r_InvoiceType = InvoiceType;
3059
- type index_gen$r_ListDiscountsRequest = ListDiscountsRequest;
3060
- type index_gen$r_ListDiscountsRequestOrderBy = ListDiscountsRequestOrderBy;
3061
- type index_gen$r_ListDiscountsResponse = ListDiscountsResponse;
3340
+ type index_gen$r_ListConsumptionsRequest = ListConsumptionsRequest;
3341
+ type index_gen$r_ListConsumptionsRequestOrderBy = ListConsumptionsRequestOrderBy;
3342
+ type index_gen$r_ListConsumptionsResponse = ListConsumptionsResponse;
3343
+ type index_gen$r_ListConsumptionsResponseConsumption = ListConsumptionsResponseConsumption;
3062
3344
  type index_gen$r_ListInvoicesRequest = ListInvoicesRequest;
3063
3345
  type index_gen$r_ListInvoicesRequestOrderBy = ListInvoicesRequestOrderBy;
3064
3346
  type index_gen$r_ListInvoicesResponse = ListInvoicesResponse;
3347
+ type index_gen$r_ListTaxesRequest = ListTaxesRequest;
3348
+ type index_gen$r_ListTaxesRequestOrderBy = ListTaxesRequestOrderBy;
3349
+ type index_gen$r_ListTaxesResponse = ListTaxesResponse;
3350
+ type index_gen$r_ListTaxesResponseTax = ListTaxesResponseTax;
3065
3351
  declare namespace index_gen$r {
3066
- export { API$s as API, type index_gen$r_Discount as Discount, type index_gen$r_DiscountCoupon as DiscountCoupon, type index_gen$r_DiscountDiscountMode as DiscountDiscountMode, type index_gen$r_DiscountFilter as DiscountFilter, type index_gen$r_DiscountFilterType as DiscountFilterType, type index_gen$r_DownloadInvoiceRequest as DownloadInvoiceRequest, type index_gen$r_DownloadInvoiceRequestFileType as DownloadInvoiceRequestFileType, type index_gen$r_GetConsumptionRequest as GetConsumptionRequest, type index_gen$r_GetConsumptionResponse as GetConsumptionResponse, type index_gen$r_GetConsumptionResponseConsumption as GetConsumptionResponseConsumption, type index_gen$r_Invoice as Invoice, type index_gen$r_InvoiceType as InvoiceType, type index_gen$r_ListDiscountsRequest as ListDiscountsRequest, type index_gen$r_ListDiscountsRequestOrderBy as ListDiscountsRequestOrderBy, type index_gen$r_ListDiscountsResponse as ListDiscountsResponse, type index_gen$r_ListInvoicesRequest as ListInvoicesRequest, type index_gen$r_ListInvoicesRequestOrderBy as ListInvoicesRequestOrderBy, type index_gen$r_ListInvoicesResponse as ListInvoicesResponse };
3352
+ export { API$s as API, type index_gen$r_DownloadInvoiceRequest as DownloadInvoiceRequest, type index_gen$r_DownloadInvoiceRequestFileType as DownloadInvoiceRequestFileType, type index_gen$r_ExportInvoicesRequest as ExportInvoicesRequest, type index_gen$r_ExportInvoicesRequestFileType as ExportInvoicesRequestFileType, type index_gen$r_ExportInvoicesRequestOrderBy as ExportInvoicesRequestOrderBy, type index_gen$r_GetInvoiceRequest as GetInvoiceRequest, type index_gen$r_Invoice as Invoice, type index_gen$r_InvoiceType as InvoiceType, type index_gen$r_ListConsumptionsRequest as ListConsumptionsRequest, type index_gen$r_ListConsumptionsRequestOrderBy as ListConsumptionsRequestOrderBy, type index_gen$r_ListConsumptionsResponse as ListConsumptionsResponse, type index_gen$r_ListConsumptionsResponseConsumption as ListConsumptionsResponseConsumption, type index_gen$r_ListInvoicesRequest as ListInvoicesRequest, type index_gen$r_ListInvoicesRequestOrderBy as ListInvoicesRequestOrderBy, type index_gen$r_ListInvoicesResponse as ListInvoicesResponse, type index_gen$r_ListTaxesRequest as ListTaxesRequest, type index_gen$r_ListTaxesRequestOrderBy as ListTaxesRequestOrderBy, type index_gen$r_ListTaxesResponse as ListTaxesResponse, type index_gen$r_ListTaxesResponseTax as ListTaxesResponseTax };
3067
3353
  }
3068
3354
 
3069
3355
  declare namespace index$u {
3070
- export { index_gen$r as v2alpha1 };
3356
+ export { index_gen$s as v2alpha1, index_gen$r as v2beta1 };
3071
3357
  }
3072
3358
 
3073
3359
  type ListSnapshotsRequestOrderBy$2 = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
@@ -3395,7 +3681,7 @@ type UpdateVolumeRequest$2 = {
3395
3681
  *
3396
3682
  * This API allows you to use and manage your Block Storage volumes.
3397
3683
  */
3398
- declare class API$r extends API$w {
3684
+ declare class API$r extends API$x {
3399
3685
  /** Lists the available zones of the API. */
3400
3686
  static readonly LOCALITIES: Zone[];
3401
3687
  protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest$1>) => Promise<ListVolumeTypesResponse>;
@@ -3989,7 +4275,7 @@ type TriggerTestAlertRequest = {
3989
4275
  * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
3990
4276
  * for dashboarding to visualize them.
3991
4277
  */
3992
- declare class API$q extends API$w {
4278
+ declare class API$q extends API$x {
3993
4279
  /**
3994
4280
  * Activate the Cockpit of the specified Project ID.
3995
4281
  *
@@ -5081,7 +5367,7 @@ type UpdateTriggerRequest$3 = {
5081
5367
  };
5082
5368
 
5083
5369
  /** Serverless Containers API. */
5084
- declare class API$p extends API$w {
5370
+ declare class API$p extends API$x {
5085
5371
  /** Lists the available regions of the API. */
5086
5372
  static readonly LOCALITIES: Region[];
5087
5373
  protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest$2>) => Promise<ListNamespacesResponse$2>;
@@ -6713,7 +6999,7 @@ type UpgradeInstanceRequest$1 = {
6713
6999
  };
6714
7000
 
6715
7001
  /** Managed Document Databases API. */
6716
- declare class API$o extends API$w {
7002
+ declare class API$o extends API$x {
6717
7003
  /** Lists the available regions of the API. */
6718
7004
  static readonly LOCALITIES: Region[];
6719
7005
  protected pageOfListDatabaseEngines: (request?: Readonly<ListDatabaseEnginesRequest$1>) => Promise<ListDatabaseEnginesResponse$1>;
@@ -8314,7 +8600,7 @@ type UpdateDNSZoneRequest = {
8314
8600
  *
8315
8601
  * Manage your domains, DNS zones and records with the Domains and DNS API.
8316
8602
  */
8317
- declare class API$n extends API$w {
8603
+ declare class API$n extends API$x {
8318
8604
  protected pageOfListDNSZones: (request: Readonly<ListDNSZonesRequest>) => Promise<ListDNSZonesResponse>;
8319
8605
  /**
8320
8606
  * List DNS zones. Retrieve the list of DNS zones you can manage and filter
@@ -8554,7 +8840,7 @@ declare class API$n extends API$w {
8554
8840
  *
8555
8841
  * Manage your domains and contacts.
8556
8842
  */
8557
- declare class RegistrarAPI extends API$w {
8843
+ declare class RegistrarAPI extends API$x {
8558
8844
  protected pageOfListTasks: (request?: Readonly<RegistrarApiListTasksRequest>) => Promise<ListTasksResponse>;
8559
8845
  /**
8560
8846
  * List tasks. List all operations performed on the account. You can filter
@@ -9210,7 +9496,7 @@ type UpdateFlexibleIPRequest = {
9210
9496
  };
9211
9497
 
9212
9498
  /** Elastic Metal - Flexible IP API. */
9213
- declare class API$m extends API$w {
9499
+ declare class API$m extends API$x {
9214
9500
  /** Lists the available zones of the API. */
9215
9501
  static readonly LOCALITIES: Zone[];
9216
9502
  /**
@@ -10231,7 +10517,7 @@ interface UploadURL {
10231
10517
  }
10232
10518
 
10233
10519
  /** Serverless Functions API. */
10234
- declare class API$l extends API$w {
10520
+ declare class API$l extends API$x {
10235
10521
  /** Lists the available regions of the API. */
10236
10522
  static readonly LOCALITIES: Region[];
10237
10523
  protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest$1>) => Promise<ListNamespacesResponse$1>;
@@ -11556,7 +11842,7 @@ type UpdateUserRequest$1 = {
11556
11842
  };
11557
11843
 
11558
11844
  /** IAM API. */
11559
- declare class API$k extends API$w {
11845
+ declare class API$k extends API$x {
11560
11846
  protected pageOfListSSHKeys: (request?: Readonly<ListSSHKeysRequest$1>) => Promise<ListSSHKeysResponse>;
11561
11847
  /**
11562
11848
  * List SSH keys. List SSH keys. By default, the SSH keys listed are ordered
@@ -14274,7 +14560,7 @@ interface SetSnapshotResponse {
14274
14560
  }
14275
14561
 
14276
14562
  /** Instance API. */
14277
- declare class API$j extends API$w {
14563
+ declare class API$j extends API$x {
14278
14564
  /** Lists the available zones of the API. */
14279
14565
  static readonly LOCALITIES: Zone[];
14280
14566
  /**
@@ -16045,7 +16331,7 @@ type UpdateRouteRequest$1 = {
16045
16331
  *
16046
16332
  * This API allows you to manage IoT hubs and devices.
16047
16333
  */
16048
- declare class API$i extends API$w {
16334
+ declare class API$i extends API$x {
16049
16335
  /** Lists the available regions of the API. */
16050
16336
  static readonly LOCALITIES: Region[];
16051
16337
  protected pageOfListHubs: (request?: Readonly<ListHubsRequest>) => Promise<ListHubsResponse>;
@@ -16651,7 +16937,7 @@ type UpdateIPRequest$1 = {
16651
16937
  * This API allows you to manage IP addresses with Scaleway's IP Address
16652
16938
  * Management tool.
16653
16939
  */
16654
- declare class API$h extends API$w {
16940
+ declare class API$h extends API$x {
16655
16941
  /** Lists the available regions of the API. */
16656
16942
  static readonly LOCALITIES: Region[];
16657
16943
  /**
@@ -17043,7 +17329,7 @@ type UpdateVolumeRequest = {
17043
17329
  };
17044
17330
 
17045
17331
  /** IPFS Pinning service API. */
17046
- declare class API$g extends API$w {
17332
+ declare class API$g extends API$x {
17047
17333
  /** Lists the available regions of the API. */
17048
17334
  static readonly LOCALITIES: Region[];
17049
17335
  /**
@@ -17171,7 +17457,7 @@ declare class API$g extends API$w {
17171
17457
  deletePin: (request: Readonly<DeletePinRequest>) => Promise<void>;
17172
17458
  }
17173
17459
  /** IPFS Naming service API. */
17174
- declare class IpnsAPI extends API$w {
17460
+ declare class IpnsAPI extends API$x {
17175
17461
  /** Lists the available regions of the API. */
17176
17462
  static readonly LOCALITIES: Region[];
17177
17463
  /**
@@ -17472,7 +17758,7 @@ type UpdateJobDefinitionRequest$1 = {
17472
17758
  };
17473
17759
 
17474
17760
  /** Serverless Jobs API. */
17475
- declare class API$f extends API$w {
17761
+ declare class API$f extends API$x {
17476
17762
  /** Lists the available regions of the API. */
17477
17763
  static readonly LOCALITIES: Region[];
17478
17764
  /**
@@ -18789,7 +19075,7 @@ type UpgradePoolRequest = {
18789
19075
  };
18790
19076
 
18791
19077
  /** Kubernetes API. */
18792
- declare class API$e extends API$w {
19078
+ declare class API$e extends API$x {
18793
19079
  /** Lists the available regions of the API. */
18794
19080
  static readonly LOCALITIES: Region[];
18795
19081
  protected pageOfListClusters: (request?: Readonly<ListClustersRequest$2>) => Promise<ListClustersResponse$1>;
@@ -21957,7 +22243,7 @@ type ZonedApiUpdateSubscriberRequest = {
21957
22243
  *
21958
22244
  * This API allows you to manage your Scaleway Load Balancer services.
21959
22245
  */
21960
- declare class ZonedAPI extends API$w {
22246
+ declare class ZonedAPI extends API$x {
21961
22247
  /** Lists the available zones of the API. */
21962
22248
  static readonly LOCALITIES: Zone[];
21963
22249
  protected pageOfListLbs: (request?: Readonly<ZonedApiListLbsRequest>) => Promise<ListLbsResponse>;
@@ -22511,7 +22797,7 @@ declare class ZonedAPI extends API$w {
22511
22797
  *
22512
22798
  * This API allows you to manage your load balancer service.
22513
22799
  */
22514
- declare class API$d extends API$w {
22800
+ declare class API$d extends API$x {
22515
22801
  /** Lists the available regions of the API. */
22516
22802
  static readonly LOCALITIES: Region[];
22517
22803
  protected pageOfListLbs: (request?: Readonly<ListLbsRequest>) => Promise<ListLbsResponse>;
@@ -23259,7 +23545,7 @@ interface ListImagesResponse$2 {
23259
23545
  }
23260
23546
 
23261
23547
  /** Marketplace API. */
23262
- declare class API$c extends API$w {
23548
+ declare class API$c extends API$x {
23263
23549
  protected pageOfListImages: (request?: Readonly<ListImagesRequest$2>) => Promise<ListImagesResponse$2>;
23264
23550
  /**
23265
23551
  * List marketplace images.
@@ -23422,7 +23708,7 @@ interface ListVersionsResponse {
23422
23708
  }
23423
23709
 
23424
23710
  /** Marketplace API. */
23425
- declare class API$b extends API$w {
23711
+ declare class API$b extends API$x {
23426
23712
  protected pageOfListImages: (request: Readonly<ListImagesRequest$1>) => Promise<ListImagesResponse$1>;
23427
23713
  /**
23428
23714
  * List marketplace images. List all available images on the marketplace,
@@ -23987,7 +24273,7 @@ interface SqsInfo {
23987
24273
  *
23988
24274
  * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
23989
24275
  */
23990
- declare class NatsAPI extends API$w {
24276
+ declare class NatsAPI extends API$x {
23991
24277
  /** Lists the available regions of the API. */
23992
24278
  static readonly LOCALITIES: Region[];
23993
24279
  /**
@@ -24084,7 +24370,7 @@ declare class NatsAPI extends API$w {
24084
24370
  *
24085
24371
  * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
24086
24372
  */
24087
- declare class SnsAPI extends API$w {
24373
+ declare class SnsAPI extends API$x {
24088
24374
  /** Lists the available regions of the API. */
24089
24375
  static readonly LOCALITIES: Region[];
24090
24376
  /**
@@ -24166,7 +24452,7 @@ declare class SnsAPI extends API$w {
24166
24452
  *
24167
24453
  * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
24168
24454
  */
24169
- declare class SqsAPI extends API$w {
24455
+ declare class SqsAPI extends API$x {
24170
24456
  /** Lists the available regions of the API. */
24171
24457
  static readonly LOCALITIES: Region[];
24172
24458
  /**
@@ -24593,6 +24879,8 @@ interface ReadReplica {
24593
24879
  * nodes or not.
24594
24880
  */
24595
24881
  sameZone: boolean;
24882
+ /** UUID of the Database Instance. */
24883
+ instanceId: string;
24596
24884
  }
24597
24885
  interface UpgradableVersion {
24598
24886
  id: string;
@@ -25769,7 +26057,7 @@ type UpgradeInstanceRequest = {
25769
26057
  };
25770
26058
 
25771
26059
  /** Managed Database for PostgreSQL and MySQL API. */
25772
- declare class API$a extends API$w {
26060
+ declare class API$a extends API$x {
25773
26061
  /** Lists the available regions of the API. */
25774
26062
  static readonly LOCALITIES: Region[];
25775
26063
  protected pageOfListDatabaseEngines: (request?: Readonly<ListDatabaseEnginesRequest>) => Promise<ListDatabaseEnginesResponse>;
@@ -27005,7 +27293,7 @@ type UpdateEndpointRequest = {
27005
27293
  };
27006
27294
 
27007
27295
  /** Managed Database for Redis™ API. */
27008
- declare class API$9 extends API$w {
27296
+ declare class API$9 extends API$x {
27009
27297
  /** Lists the available zones of the API. */
27010
27298
  static readonly LOCALITIES: Zone[];
27011
27299
  /**
@@ -27614,7 +27902,7 @@ type UpdateNamespaceRequest = {
27614
27902
  };
27615
27903
 
27616
27904
  /** Container Registry API. */
27617
- declare class API$8 extends API$w {
27905
+ declare class API$8 extends API$x {
27618
27906
  /** Lists the available regions of the API. */
27619
27907
  static readonly LOCALITIES: Region[];
27620
27908
  protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest>) => Promise<ListNamespacesResponse>;
@@ -28431,7 +28719,7 @@ type UpdateSecretVersionRequest = {
28431
28719
  * Secret Manager API. This API allows you to conveniently store, access and
28432
28720
  * share sensitive data.
28433
28721
  */
28434
- declare class API$7 extends API$w {
28722
+ declare class API$7 extends API$x {
28435
28723
  /** Lists the available regions of the API. */
28436
28724
  static readonly LOCALITIES: Region[];
28437
28725
  /**
@@ -28927,7 +29215,7 @@ type UpdateDatabaseRequest$1 = {
28927
29215
  *
28928
29216
  * This API allows you to manage your Serverless SQL DB databases.
28929
29217
  */
28930
- declare class API$6 extends API$w {
29218
+ declare class API$6 extends API$x {
28931
29219
  /** Lists the available regions of the API. */
28932
29220
  static readonly LOCALITIES: Region[];
28933
29221
  /**
@@ -29220,7 +29508,7 @@ type UpdateHumanRequest = {
29220
29508
  *
29221
29509
  * No Auth Service for end-to-end testing.
29222
29510
  */
29223
- declare class API$5 extends API$w {
29511
+ declare class API$5 extends API$x {
29224
29512
  /**
29225
29513
  * Register a user. Register a human and return a access-key and a secret-key
29226
29514
  * that must be used in all other commands.
@@ -29382,6 +29670,12 @@ interface CreateEmailRequestAttachment {
29382
29670
  /** Content of the attachment encoded in base64. */
29383
29671
  content: string;
29384
29672
  }
29673
+ interface CreateEmailRequestHeader {
29674
+ /** Email header key. */
29675
+ key: string;
29676
+ /** Email header value. */
29677
+ value: string;
29678
+ }
29385
29679
  interface Email {
29386
29680
  /** Technical ID of the email. */
29387
29681
  id: string;
@@ -29528,6 +29822,8 @@ type CreateEmailRequest = {
29528
29822
  attachments?: CreateEmailRequestAttachment[];
29529
29823
  /** Maximum date to deliver the email. */
29530
29824
  sendBefore?: Date;
29825
+ /** Array of additional headers as key-value. */
29826
+ additionalHeaders?: CreateEmailRequestHeader[];
29531
29827
  };
29532
29828
  interface CreateEmailResponse {
29533
29829
  /** Single page of emails matching the requested criteria. */
@@ -29691,7 +29987,7 @@ interface Statistics {
29691
29987
  }
29692
29988
 
29693
29989
  /** Transactional Email API. */
29694
- declare class API$4 extends API$w {
29990
+ declare class API$4 extends API$x {
29695
29991
  /** Lists the available regions of the API. */
29696
29992
  static readonly LOCALITIES: Region[];
29697
29993
  /**
@@ -29829,6 +30125,7 @@ type index_gen$4_CreateDomainRequest = CreateDomainRequest;
29829
30125
  type index_gen$4_CreateEmailRequest = CreateEmailRequest;
29830
30126
  type index_gen$4_CreateEmailRequestAddress = CreateEmailRequestAddress;
29831
30127
  type index_gen$4_CreateEmailRequestAttachment = CreateEmailRequestAttachment;
30128
+ type index_gen$4_CreateEmailRequestHeader = CreateEmailRequestHeader;
29832
30129
  type index_gen$4_CreateEmailResponse = CreateEmailResponse;
29833
30130
  declare const index_gen$4_DOMAIN_TRANSIENT_STATUSES: typeof DOMAIN_TRANSIENT_STATUSES;
29834
30131
  type index_gen$4_Domain = Domain;
@@ -29858,7 +30155,7 @@ type index_gen$4_ListEmailsResponse = ListEmailsResponse;
29858
30155
  type index_gen$4_RevokeDomainRequest = RevokeDomainRequest;
29859
30156
  type index_gen$4_Statistics = Statistics;
29860
30157
  declare namespace index_gen$4 {
29861
- export { API$4 as API, type index_gen$4_CancelEmailRequest as CancelEmailRequest, type index_gen$4_CheckDomainRequest as CheckDomainRequest, type index_gen$4_CreateDomainRequest as CreateDomainRequest, type index_gen$4_CreateEmailRequest as CreateEmailRequest, type index_gen$4_CreateEmailRequestAddress as CreateEmailRequestAddress, type index_gen$4_CreateEmailRequestAttachment as CreateEmailRequestAttachment, type index_gen$4_CreateEmailResponse as CreateEmailResponse, index_gen$4_DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES, type index_gen$4_Domain as Domain, type index_gen$4_DomainLastStatus as DomainLastStatus, type index_gen$4_DomainLastStatusDkimRecord as DomainLastStatusDkimRecord, type index_gen$4_DomainLastStatusRecordStatus as DomainLastStatusRecordStatus, type index_gen$4_DomainLastStatusSpfRecord as DomainLastStatusSpfRecord, type index_gen$4_DomainReputation as DomainReputation, type index_gen$4_DomainReputationStatus as DomainReputationStatus, type index_gen$4_DomainStatistics as DomainStatistics, type index_gen$4_DomainStatus as DomainStatus, index_gen$4_EMAIL_TRANSIENT_STATUSES as EMAIL_TRANSIENT_STATUSES, type index_gen$4_Email as Email, type index_gen$4_EmailFlag as EmailFlag, type index_gen$4_EmailRcptType as EmailRcptType, type index_gen$4_EmailStatus as EmailStatus, type index_gen$4_EmailTry as EmailTry, type index_gen$4_GetDomainLastStatusRequest as GetDomainLastStatusRequest, type index_gen$4_GetDomainRequest as GetDomainRequest, type index_gen$4_GetEmailRequest as GetEmailRequest, type index_gen$4_GetStatisticsRequest as GetStatisticsRequest, type index_gen$4_ListDomainsRequest as ListDomainsRequest, type index_gen$4_ListDomainsResponse as ListDomainsResponse, type index_gen$4_ListEmailsRequest as ListEmailsRequest, type index_gen$4_ListEmailsRequestOrderBy as ListEmailsRequestOrderBy, type index_gen$4_ListEmailsResponse as ListEmailsResponse, type index_gen$4_RevokeDomainRequest as RevokeDomainRequest, type index_gen$4_Statistics as Statistics };
30158
+ export { API$4 as API, type index_gen$4_CancelEmailRequest as CancelEmailRequest, type index_gen$4_CheckDomainRequest as CheckDomainRequest, type index_gen$4_CreateDomainRequest as CreateDomainRequest, type index_gen$4_CreateEmailRequest as CreateEmailRequest, type index_gen$4_CreateEmailRequestAddress as CreateEmailRequestAddress, type index_gen$4_CreateEmailRequestAttachment as CreateEmailRequestAttachment, type index_gen$4_CreateEmailRequestHeader as CreateEmailRequestHeader, type index_gen$4_CreateEmailResponse as CreateEmailResponse, index_gen$4_DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES, type index_gen$4_Domain as Domain, type index_gen$4_DomainLastStatus as DomainLastStatus, type index_gen$4_DomainLastStatusDkimRecord as DomainLastStatusDkimRecord, type index_gen$4_DomainLastStatusRecordStatus as DomainLastStatusRecordStatus, type index_gen$4_DomainLastStatusSpfRecord as DomainLastStatusSpfRecord, type index_gen$4_DomainReputation as DomainReputation, type index_gen$4_DomainReputationStatus as DomainReputationStatus, type index_gen$4_DomainStatistics as DomainStatistics, type index_gen$4_DomainStatus as DomainStatus, index_gen$4_EMAIL_TRANSIENT_STATUSES as EMAIL_TRANSIENT_STATUSES, type index_gen$4_Email as Email, type index_gen$4_EmailFlag as EmailFlag, type index_gen$4_EmailRcptType as EmailRcptType, type index_gen$4_EmailStatus as EmailStatus, type index_gen$4_EmailTry as EmailTry, type index_gen$4_GetDomainLastStatusRequest as GetDomainLastStatusRequest, type index_gen$4_GetDomainRequest as GetDomainRequest, type index_gen$4_GetEmailRequest as GetEmailRequest, type index_gen$4_GetStatisticsRequest as GetStatisticsRequest, type index_gen$4_ListDomainsRequest as ListDomainsRequest, type index_gen$4_ListDomainsResponse as ListDomainsResponse, type index_gen$4_ListEmailsRequest as ListEmailsRequest, type index_gen$4_ListEmailsRequestOrderBy as ListEmailsRequestOrderBy, type index_gen$4_ListEmailsResponse as ListEmailsResponse, type index_gen$4_RevokeDomainRequest as RevokeDomainRequest, type index_gen$4_Statistics as Statistics };
29862
30159
  }
29863
30160
 
29864
30161
  declare namespace index$3 {
@@ -29965,7 +30262,7 @@ type UpdatePrivateNetworkRequest$1 = {
29965
30262
  };
29966
30263
 
29967
30264
  /** VPC API. */
29968
- declare class API$3 extends API$w {
30265
+ declare class API$3 extends API$x {
29969
30266
  /** Lists the available zones of the API. */
29970
30267
  static readonly LOCALITIES: Zone[];
29971
30268
  protected pageOfListPrivateNetworks: (request?: Readonly<ListPrivateNetworksRequest$1>) => Promise<ListPrivateNetworksResponse$1>;
@@ -30342,7 +30639,7 @@ type UpdateVPCRequest = {
30342
30639
  };
30343
30640
 
30344
30641
  /** VPC API. */
30345
- declare class API$2 extends API$w {
30642
+ declare class API$2 extends API$x {
30346
30643
  /** Lists the available regions of the API. */
30347
30644
  static readonly LOCALITIES: Region[];
30348
30645
  protected pageOfListVPCs: (request?: Readonly<ListVPCsRequest>) => Promise<ListVPCsResponse>;
@@ -31399,7 +31696,7 @@ type UpgradeGatewayRequest = {
31399
31696
  };
31400
31697
 
31401
31698
  /** Public Gateways API. */
31402
- declare class API$1 extends API$w {
31699
+ declare class API$1 extends API$x {
31403
31700
  /** Lists the available zones of the API. */
31404
31701
  static readonly LOCALITIES: Zone[];
31405
31702
  protected pageOfListGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse>;
@@ -32189,7 +32486,7 @@ type UpdateHostingRequest = {
32189
32486
  };
32190
32487
 
32191
32488
  /** Web Hosting API. */
32192
- declare class API extends API$w {
32489
+ declare class API extends API$x {
32193
32490
  /** Lists the available regions of the API. */
32194
32491
  static readonly LOCALITIES: Region[];
32195
32492
  /**
@@ -32357,4 +32654,4 @@ declare namespace index {
32357
32654
  export { index_gen as v1alpha1 };
32358
32655
  }
32359
32656
 
32360
- export { API$w as API, index$y as Account, index$x as AppleSilicon, index$v as BareMetal, index$u as Billing, index$t as Block, type Client, type ClientConfig, index$s as Cockpit, index$r as Container, type DefaultValues, index$q as DocumentDB, index$p as Domain, index$z as Errors, index$o as FlexibleIP, index$n as Function, index$m as IAM, index$j as IOT, index$i as IPAM, index$h as IPFS, index$k as Instance, index$g as Jobs, index$e as K8S, index$c as LB, type Logger, index$a as MNQ, index$b as Marketplace, type Money, type NetworkInterceptors, type Profile, index$9 as RDB, index$8 as Redis, type Region, index$7 as Registry, type RequestInterceptor, type ResponseErrorInterceptor, type ResponseInterceptor, type ScwFile, index$6 as Secret, index$5 as ServerlessSQLDB, type ServiceInfo, type Settings, index_gen$6 as Std, index$4 as Test, type TimeSeries, index$3 as TransactionalEmail, index$2 as VPC, index$1 as VPCGW, type WaitForOptions, type WaitForStopCondition, index as Webhosting, type Zone, addAsyncHeaderInterceptor, authenticateWithSessionToken, createAdvancedClient, createClient, createExponentialBackoffStrategy, enableConsoleLogger, enrichForPagination, isJSONObject, marshalMoney, marshalScwFile, marshalTimeSeries, resolveOneOf, setLogger, tryAtIntervals, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, urlParams, validatePathParam, waitForResource, withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix };
32657
+ export { API$x as API, index$y as Account, index$x as AppleSilicon, index$v as BareMetal, index$u as Billing, index$t as Block, type Client, type ClientConfig, index$s as Cockpit, index$r as Container, type DefaultValues, index$q as DocumentDB, index$p as Domain, index$z as Errors, index$o as FlexibleIP, index$n as Function, index$m as IAM, index$j as IOT, index$i as IPAM, index$h as IPFS, index$k as Instance, index$g as Jobs, index$e as K8S, index$c as LB, type Logger, index$a as MNQ, index$b as Marketplace, type Money, type NetworkInterceptors, type Profile, index$9 as RDB, index$8 as Redis, type Region, index$7 as Registry, type RequestInterceptor, type ResponseErrorInterceptor, type ResponseInterceptor, type ScwFile, index$6 as Secret, index$5 as ServerlessSQLDB, type ServiceInfo, type Settings, index_gen$6 as Std, index$4 as Test, type TimeSeries, index$3 as TransactionalEmail, index$2 as VPC, index$1 as VPCGW, type WaitForOptions, type WaitForStopCondition, index as Webhosting, type Zone, addAsyncHeaderInterceptor, authenticateWithSessionToken, createAdvancedClient, createClient, createExponentialBackoffStrategy, enableConsoleLogger, enrichForPagination, isJSONObject, marshalMoney, marshalScwFile, marshalTimeSeries, resolveOneOf, setLogger, tryAtIntervals, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, urlParams, validatePathParam, waitForResource, withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix };