@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.
@@ -1,2 +1,4 @@
1
1
  import * as index_gen from './v2/index.gen.js';
2
2
  export { index_gen as v2 };
3
+ import * as index_gen$1 from './v3/index.gen.js';
4
+ export { index_gen$1 as v3 };
@@ -16,9 +16,11 @@ const jsonContentHeaders = {
16
16
  */
17
17
  class API extends API$1 {
18
18
  /**
19
- * Create a new Project for an Organization. Generate a new Project for an
20
- * Organization, specifying its configuration including name and description.
19
+ * Create a new Project for an Organization. Deprecated in favor of Account
20
+ * API v3. Generate a new Project for an Organization, specifying its
21
+ * configuration including name and description.
21
22
  *
23
+ * @deprecated
22
24
  * @param request - The request {@link CreateProjectRequest}
23
25
  * @returns A Promise of Project
24
26
  */
@@ -51,11 +53,13 @@ class API extends API$1 {
51
53
  })();
52
54
 
53
55
  /**
54
- * List all Projects of an Organization. List all Projects of an Organization.
55
- * The response will include the total number of Projects as well as their
56
- * associated Organizations, names and IDs. Other information include the
57
- * creation and update date of the Project.
56
+ * List all Projects of an Organization. Deprecated in favor of Account API
57
+ * v3. List all Projects of an Organization. The response will include the
58
+ * total number of Projects as well as their associated Organizations, names
59
+ * and IDs. Other information include the creation and update date of the
60
+ * Project.
58
61
  *
62
+ * @deprecated
59
63
  * @param request - The request {@link ListProjectsRequest}
60
64
  * @returns A Promise of ListProjectsResponse
61
65
  */
@@ -70,10 +74,12 @@ class API extends API$1 {
70
74
  })();
71
75
 
72
76
  /**
73
- * Get an existing Project. Retrieve information about an existing Project,
74
- * specified by its Project ID. Its full details, including ID, name and
75
- * description, are returned in the response object.
77
+ * Get an existing Project. Deprecated in favor of Account API v3. Retrieve
78
+ * information about an existing Project, specified by its Project ID. Its
79
+ * full details, including ID, name and description, are returned in the
80
+ * response object.
76
81
  *
82
+ * @deprecated
77
83
  * @param request - The request {@link GetProjectRequest}
78
84
  * @returns A Promise of Project
79
85
  */
@@ -91,11 +97,13 @@ class API extends API$1 {
91
97
  })();
92
98
 
93
99
  /**
94
- * Delete an existing Project. Delete an existing Project, specified by its
95
- * Project ID. The Project needs to be empty (meaning there are no resources
96
- * left in it) to be deleted effectively. Note that deleting a Project is
97
- * permanent, and cannot be undone.
100
+ * Delete an existing Project. Deprecated in favor of Account API v3. Delete
101
+ * an existing Project, specified by its Project ID. The Project needs to be
102
+ * empty (meaning there are no resources left in it) to be deleted
103
+ * effectively. Note that deleting a Project is permanent, and cannot be
104
+ * undone.
98
105
  *
106
+ * @deprecated
99
107
  * @param request - The request {@link DeleteProjectRequest}
100
108
  */
101
109
  deleteProject = (() => {
@@ -112,9 +120,11 @@ class API extends API$1 {
112
120
  })();
113
121
 
114
122
  /**
115
- * Update Project. Update the parameters of an existing Project, specified by
116
- * its Project ID. These parameters include the name and description.
123
+ * Update Project. Deprecated in favor of Account API v3. Update the
124
+ * parameters of an existing Project, specified by its Project ID. These
125
+ * parameters include the name and description.
117
126
  *
127
+ * @deprecated
118
128
  * @param request - The request {@link UpdateProjectRequest}
119
129
  * @returns A Promise of Project
120
130
  */
@@ -0,0 +1,129 @@
1
+ import { API as API$1 } from '../../../scw/api.js';
2
+ import { urlParams, validatePathParam } from '../../../helpers/marshalling.js';
3
+ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
+ import { marshalProjectApiCreateProjectRequest, unmarshalProject, unmarshalListProjectsResponse, marshalProjectApiUpdateProjectRequest } from './marshalling.gen.js';
5
+
6
+ // This file was automatically generated. DO NOT EDIT.
7
+ // If you have any remark or suggestion do not hesitate to open an issue.
8
+ const jsonContentHeaders = {
9
+ 'Content-Type': 'application/json; charset=utf-8'
10
+ };
11
+
12
+ /**
13
+ * Account API.
14
+ *
15
+ * This API allows you to manage projects.
16
+ */
17
+ class ProjectAPI extends API$1 {
18
+ /**
19
+ * Create a new Project for an Organization. Generate a new Project for an
20
+ * Organization, specifying its configuration including name and description.
21
+ *
22
+ * @param request - The request {@link ProjectApiCreateProjectRequest}
23
+ * @returns A Promise of Project
24
+ */
25
+ createProject = request => this.client.fetch({
26
+ body: JSON.stringify(marshalProjectApiCreateProjectRequest(request, this.client.settings)),
27
+ headers: jsonContentHeaders,
28
+ method: 'POST',
29
+ path: `/account/v3/projects`
30
+ }, unmarshalProject);
31
+ pageOfListProjects = (() => {
32
+ var _this = this;
33
+ return function (request) {
34
+ if (request === void 0) {
35
+ request = {};
36
+ }
37
+ return _this.client.fetch({
38
+ method: 'GET',
39
+ path: `/account/v3/projects`,
40
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_ids', request.projectIds])
41
+ }, unmarshalListProjectsResponse);
42
+ };
43
+ })();
44
+
45
+ /**
46
+ * List all Projects of an Organization. List all Projects of an Organization.
47
+ * The response will include the total number of Projects as well as their
48
+ * associated Organizations, names, and IDs. Other information includes the
49
+ * creation and update date of the Project.
50
+ *
51
+ * @param request - The request {@link ProjectApiListProjectsRequest}
52
+ * @returns A Promise of ListProjectsResponse
53
+ */
54
+ listProjects = (() => {
55
+ var _this2 = this;
56
+ return function (request) {
57
+ if (request === void 0) {
58
+ request = {};
59
+ }
60
+ return enrichForPagination('projects', _this2.pageOfListProjects, request);
61
+ };
62
+ })();
63
+
64
+ /**
65
+ * Get an existing Project. Retrieve information about an existing Project,
66
+ * specified by its Project ID. Its full details, including ID, name and
67
+ * description, are returned in the response object.
68
+ *
69
+ * @param request - The request {@link ProjectApiGetProjectRequest}
70
+ * @returns A Promise of Project
71
+ */
72
+ getProject = (() => {
73
+ var _this3 = this;
74
+ return function (request) {
75
+ if (request === void 0) {
76
+ request = {};
77
+ }
78
+ return _this3.client.fetch({
79
+ method: 'GET',
80
+ path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? _this3.client.settings.defaultProjectId)}`
81
+ }, unmarshalProject);
82
+ };
83
+ })();
84
+
85
+ /**
86
+ * Delete an existing Project. Delete an existing Project, specified by its
87
+ * Project ID. The Project needs to be empty (meaning there are no resources
88
+ * left in it) to be deleted effectively. Note that deleting a Project is
89
+ * permanent, and cannot be undone.
90
+ *
91
+ * @param request - The request {@link ProjectApiDeleteProjectRequest}
92
+ */
93
+ deleteProject = (() => {
94
+ var _this4 = this;
95
+ return function (request) {
96
+ if (request === void 0) {
97
+ request = {};
98
+ }
99
+ return _this4.client.fetch({
100
+ method: 'DELETE',
101
+ path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? _this4.client.settings.defaultProjectId)}`
102
+ });
103
+ };
104
+ })();
105
+
106
+ /**
107
+ * Update Project. Update the parameters of an existing Project, specified by
108
+ * its Project ID. These parameters include the name and description.
109
+ *
110
+ * @param request - The request {@link ProjectApiUpdateProjectRequest}
111
+ * @returns A Promise of Project
112
+ */
113
+ updateProject = (() => {
114
+ var _this5 = this;
115
+ return function (request) {
116
+ if (request === void 0) {
117
+ request = {};
118
+ }
119
+ return _this5.client.fetch({
120
+ body: JSON.stringify(marshalProjectApiUpdateProjectRequest(request, _this5.client.settings)),
121
+ headers: jsonContentHeaders,
122
+ method: 'PATCH',
123
+ path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? _this5.client.settings.defaultProjectId)}`
124
+ }, unmarshalProject);
125
+ };
126
+ })();
127
+ }
128
+
129
+ export { ProjectAPI };
@@ -0,0 +1,6 @@
1
+ export { ProjectAPI } from './api.gen.js';
2
+ import * as validationRules_gen from './validation-rules.gen.js';
3
+ export { validationRules_gen as ValidationRules };
4
+
5
+ // This file was automatically generated. DO NOT EDIT.
6
+ // If you have any remark or suggestion do not hesitate to open an issue.
@@ -0,0 +1,39 @@
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
2
+ import { isJSONObject } from '../../../helpers/json.js';
3
+ import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
+
5
+ // This file was automatically generated. DO NOT EDIT.
6
+ // If you have any remark or suggestion do not hesitate to open an issue.
7
+ const unmarshalProject = data => {
8
+ if (!isJSONObject(data)) {
9
+ throw new TypeError(`Unmarshalling the type 'Project' failed as data isn't a dictionary.`);
10
+ }
11
+ return {
12
+ createdAt: unmarshalDate(data.created_at),
13
+ description: data.description,
14
+ id: data.id,
15
+ name: data.name,
16
+ organizationId: data.organization_id,
17
+ updatedAt: unmarshalDate(data.updated_at)
18
+ };
19
+ };
20
+ const unmarshalListProjectsResponse = data => {
21
+ if (!isJSONObject(data)) {
22
+ throw new TypeError(`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`);
23
+ }
24
+ return {
25
+ projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
26
+ totalCount: data.total_count
27
+ };
28
+ };
29
+ const marshalProjectApiCreateProjectRequest = (request, defaults) => ({
30
+ description: request.description,
31
+ name: request.name || randomName('proj'),
32
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId
33
+ });
34
+ const marshalProjectApiUpdateProjectRequest = (request, defaults) => ({
35
+ description: request.description,
36
+ name: request.name
37
+ });
38
+
39
+ export { marshalProjectApiCreateProjectRequest, marshalProjectApiUpdateProjectRequest, unmarshalListProjectsResponse, unmarshalProject };
@@ -0,0 +1,39 @@
1
+ // This file was automatically generated. DO NOT EDIT.
2
+ // If you have any remark or suggestion do not hesitate to open an issue.
3
+
4
+ const ProjectApiCreateProjectRequest = {
5
+ description: {
6
+ maxLength: 200
7
+ },
8
+ name: {
9
+ maxLength: 64,
10
+ minLength: 1,
11
+ pattern: /^[a-zA-Z0-9\._\- ]+$/
12
+ }
13
+ };
14
+ const ProjectApiListProjectsRequest = {
15
+ name: {
16
+ maxLength: 64,
17
+ minLength: 1,
18
+ pattern: /^[a-zA-Z0-9\._\- ]+$/
19
+ },
20
+ page: {
21
+ greaterThan: 0
22
+ },
23
+ pageSize: {
24
+ greaterThanOrEqual: 1,
25
+ lessThanOrEqual: 100
26
+ }
27
+ };
28
+ const ProjectApiUpdateProjectRequest = {
29
+ description: {
30
+ maxLength: 200
31
+ },
32
+ name: {
33
+ maxLength: 64,
34
+ minLength: 1,
35
+ pattern: /^[a-zA-Z0-9\._\- ]+$/
36
+ }
37
+ };
38
+
39
+ export { ProjectApiCreateProjectRequest, ProjectApiListProjectsRequest, ProjectApiUpdateProjectRequest };
@@ -1,7 +1,7 @@
1
1
  import { API as API$1 } from '../../../scw/api.js';
2
2
  import { urlParams, validatePathParam, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
- import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
4
+ import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalCreateUserRequest, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -156,6 +156,20 @@ class API extends API$1 {
156
156
  method: 'DELETE',
157
157
  path: `/iam/v1alpha1/users/${validatePathParam('userId', request.userId)}`
158
158
  });
159
+
160
+ /**
161
+ * Create a new user. Create a new user. You must define the `organization_id`
162
+ * and the `email` in your request.
163
+ *
164
+ * @param request - The request {@link CreateUserRequest}
165
+ * @returns A Promise of User
166
+ */
167
+ createUser = request => this.client.fetch({
168
+ body: JSON.stringify(marshalCreateUserRequest(request, this.client.settings)),
169
+ headers: jsonContentHeaders,
170
+ method: 'POST',
171
+ path: `/iam/v1alpha1/users`
172
+ }, unmarshalUser);
159
173
  pageOfListApplications = (() => {
160
174
  var _this5 = this;
161
175
  return function (request) {
@@ -325,6 +325,10 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
325
325
  project_id: request.projectId ?? defaults.defaultProjectId,
326
326
  public_key: request.publicKey
327
327
  });
328
+ const marshalCreateUserRequest = (request, defaults) => ({
329
+ email: request.email,
330
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId
331
+ });
328
332
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
329
333
  ...resolveOneOf([{
330
334
  param: 'user_id',
@@ -376,4 +380,4 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
376
380
  name: request.name
377
381
  });
378
382
 
379
- export { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
383
+ export { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalCreateUserRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
@@ -83,7 +83,7 @@ class API extends API$1 {
83
83
  return _this4.client.fetch({
84
84
  method: 'GET',
85
85
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this4.client.settings.defaultZone)}/servers`,
86
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
86
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
87
87
  }, unmarshalListServersResponse);
88
88
  };
89
89
  })();
@@ -102,7 +102,9 @@ const unmarshalClusterType = data => {
102
102
  return {
103
103
  availability: data.availability,
104
104
  commitmentDelay: data.commitment_delay,
105
+ dedicated: data.dedicated,
105
106
  maxNodes: data.max_nodes,
107
+ memory: data.memory,
106
108
  name: data.name,
107
109
  resiliency: data.resiliency,
108
110
  sla: data.sla
@@ -448,6 +448,20 @@ class API extends API$1 {
448
448
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
449
449
  }, unmarshalReadReplica);
450
450
 
451
+ /**
452
+ * Promote a Read Replica. Promote a Read Replica to Database Instance
453
+ * automatically.
454
+ *
455
+ * @param request - The request {@link PromoteReadReplicaRequest}
456
+ * @returns A Promise of Instance
457
+ */
458
+ promoteReadReplica = request => this.client.fetch({
459
+ body: '{}',
460
+ headers: jsonContentHeaders,
461
+ method: 'POST',
462
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
463
+ }, unmarshalInstance);
464
+
451
465
  /**
452
466
  * Create an endpoint for a Read Replica. Create a new endpoint for a Read
453
467
  * Replica. Read Replicas can have at most one direct access and one Private
@@ -14,7 +14,7 @@ const INSTANCE_TRANSIENT_STATUSES = ['provisioning', 'configuring', 'deleting',
14
14
  const MAINTENANCE_TRANSIENT_STATUSES = ['pending'];
15
15
 
16
16
  /** Lists transient statutes of the enum {@link ReadReplicaStatus}. */
17
- const READ_REPLICA_TRANSIENT_STATUSES = ['provisioning', 'initializing', 'deleting', 'configuring'];
17
+ const READ_REPLICA_TRANSIENT_STATUSES = ['provisioning', 'initializing', 'deleting', 'configuring', 'promoting'];
18
18
 
19
19
  /** Lists transient statutes of the enum {@link SnapshotStatus}. */
20
20
  const SNAPSHOT_TRANSIENT_STATUSES = ['creating', 'restoring', 'deleting'];
@@ -61,7 +61,7 @@ class API extends API$1 {
61
61
  return _this.client.fetch({
62
62
  method: 'GET',
63
63
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/emails`,
64
- urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['search', request.search], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
64
+ urlParams: urlParams(['domain_id', request.domainId], ['flags', request.flags], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['search', request.search], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
65
65
  }, unmarshalListEmailsResponse);
66
66
  };
67
67
  })();
@@ -72,6 +72,7 @@ const unmarshalEmail = data => {
72
72
  }
73
73
  return {
74
74
  createdAt: unmarshalDate(data.created_at),
75
+ flags: data.flags,
75
76
  id: data.id,
76
77
  lastTries: unmarshalArrayOfObject(data.last_tries, unmarshalEmailTry),
77
78
  mailFrom: data.mail_from,