@scaleway/sdk 2.33.0 → 2.34.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.
@@ -93,7 +93,7 @@ export interface OfferStorageInfo {
93
93
  }
94
94
  export interface IP {
95
95
  /** ID of the IP. */
96
- ipId: string;
96
+ ipId: number;
97
97
  /** Address of the IP. */
98
98
  address: string;
99
99
  /** Reverse IP value. */
@@ -721,7 +721,7 @@ export interface Log {
721
721
  export interface ServerEvent {
722
722
  /** ID of the event. */
723
723
  eventId: number;
724
- /** Descriptiion of the event. */
724
+ /** Description of the event. */
725
725
  description: string;
726
726
  /** Date of the event. */
727
727
  date?: Date;
@@ -53,7 +53,7 @@ const unmarshalIP = (data) => {
53
53
  region: data.region,
54
54
  resource: data.resource ? unmarshalResource(data.resource) : void 0,
55
55
  reverses: marshalling.unmarshalArrayOfObject(data.reverses, unmarshalReverse),
56
- source: unmarshalSource(data.source),
56
+ source: data.source ? unmarshalSource(data.source) : void 0,
57
57
  tags: data.tags,
58
58
  updatedAt: marshalling.unmarshalDate(data.updated_at),
59
59
  zone: data.zone
@@ -51,7 +51,7 @@ const unmarshalIP = (data) => {
51
51
  region: data.region,
52
52
  resource: data.resource ? unmarshalResource(data.resource) : void 0,
53
53
  reverses: unmarshalArrayOfObject(data.reverses, unmarshalReverse),
54
- source: unmarshalSource(data.source),
54
+ source: data.source ? unmarshalSource(data.source) : void 0,
55
55
  tags: data.tags,
56
56
  updatedAt: unmarshalDate(data.updated_at),
57
57
  zone: data.zone
@@ -57,7 +57,7 @@ export interface IP {
57
57
  /** Date the IP was last modified. */
58
58
  updatedAt?: Date;
59
59
  /** Source pool where the IP was booked in. */
60
- source: Source;
60
+ source?: Source;
61
61
  /** Resource which the IP is attached to. */
62
62
  resource?: Resource;
63
63
  /** Tags for the IP. */
@@ -884,8 +884,8 @@ export type CreateLbRequest = {
884
884
  */
885
885
  ipId?: string;
886
886
  /**
887
- * Defines whether to automatically assign a flexible public IP to lb. Default
888
- * value is `false` (do not assign).
887
+ * Defines whether to automatically assign a flexible public IP to the Load
888
+ * Balancer. Default value is `true` (assign).
889
889
  */
890
890
  assignFlexibleIp?: boolean;
891
891
  /**
@@ -2024,8 +2024,8 @@ export type ZonedApiCreateLbRequest = {
2024
2024
  */
2025
2025
  ipId?: string;
2026
2026
  /**
2027
- * Defines whether to automatically assign a flexible public IP to lb. Default
2028
- * value is `false` (do not assign).
2027
+ * Defines whether to automatically assign a flexible public IP to the Load
2028
+ * Balancer. Default value is `true` (assign).
2029
2029
  */
2030
2030
  assignFlexibleIp?: boolean;
2031
2031
  /**
@@ -295,12 +295,18 @@ class API extends api.API {
295
295
  method: "GET",
296
296
  path: `/transactional-email/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/webhooks/${marshalling.validatePathParam("webhookId", request.webhookId)}/events`,
297
297
  urlParams: marshalling.urlParams(
298
+ ["domain_id", request.domainId],
299
+ ["email_id", request.emailId],
300
+ ["event_types", request.eventTypes],
298
301
  ["order_by", request.orderBy],
302
+ ["organization_id", request.organizationId],
299
303
  ["page", request.page],
300
304
  [
301
305
  "page_size",
302
306
  request.pageSize ?? this.client.settings.defaultPageSize
303
- ]
307
+ ],
308
+ ["project_id", request.projectId],
309
+ ["statuses", request.statuses]
304
310
  )
305
311
  },
306
312
  marshalling_gen.unmarshalListWebhookEventsResponse
@@ -293,12 +293,18 @@ class API extends API$1 {
293
293
  method: "GET",
294
294
  path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/webhooks/${validatePathParam("webhookId", request.webhookId)}/events`,
295
295
  urlParams: urlParams(
296
+ ["domain_id", request.domainId],
297
+ ["email_id", request.emailId],
298
+ ["event_types", request.eventTypes],
296
299
  ["order_by", request.orderBy],
300
+ ["organization_id", request.organizationId],
297
301
  ["page", request.page],
298
302
  [
299
303
  "page_size",
300
304
  request.pageSize ?? this.client.settings.defaultPageSize
301
- ]
305
+ ],
306
+ ["project_id", request.projectId],
307
+ ["statuses", request.statuses]
302
308
  )
303
309
  },
304
310
  unmarshalListWebhookEventsResponse
@@ -221,6 +221,7 @@ const unmarshalWebhookEvent = (data) => {
221
221
  return {
222
222
  createdAt: marshalling.unmarshalDate(data.created_at),
223
223
  data: data.data,
224
+ domainId: data.domain_id,
224
225
  emailId: data.email_id,
225
226
  id: data.id,
226
227
  organizationId: data.organization_id,
@@ -219,6 +219,7 @@ const unmarshalWebhookEvent = (data) => {
219
219
  return {
220
220
  createdAt: unmarshalDate(data.created_at),
221
221
  data: data.data,
222
+ domainId: data.domain_id,
222
223
  emailId: data.email_id,
223
224
  id: data.id,
224
225
  organizationId: data.organization_id,
@@ -186,6 +186,8 @@ export interface WebhookEvent {
186
186
  organizationId: string;
187
187
  /** ID of the Webhook Event Project. */
188
188
  projectId: string;
189
+ /** ID of the webhook event domain. */
190
+ domainId: string;
189
191
  /** Type of the Webhook Event. */
190
192
  type: WebhookEventType;
191
193
  /** Status of the Webhook Event. */
@@ -431,6 +433,18 @@ export type ListWebhookEventsRequest = {
431
433
  page?: number;
432
434
  /** Requested page size. Value must be between 1 and 100. */
433
435
  pageSize?: number;
436
+ /** ID of the email linked to the events. */
437
+ emailId?: string;
438
+ /** List of event types linked to the events. */
439
+ eventTypes?: WebhookEventType[];
440
+ /** List of event statuses. */
441
+ statuses?: WebhookEventStatus[];
442
+ /** ID of the webhook Project. */
443
+ projectId?: string;
444
+ /** ID of the webhook Organization. */
445
+ organizationId?: string;
446
+ /** ID of the domain to watch for triggering events. */
447
+ domainId?: string;
434
448
  };
435
449
  export interface ListWebhookEventsResponse {
436
450
  /** Number of Webhook events matching the requested criteria. */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.32.0";
3
+ const version = "v2.33.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.32.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.32.0";
1
+ export declare const version = "v2.33.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.33.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.32.0";
1
+ const version = "v2.33.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.33.0",
3
+ "version": "2.34.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "b1c8659c0dce5f463142daf5ef68cf9e39631766"
42
+ "gitHead": "57a03a394a78af1d6f2945cefda2655a03a17ae9"
43
43
  }