@scaleway/sdk-tem 2.4.0 → 2.6.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,6 +1,6 @@
1
1
  import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  //#region src/v1alpha1/marshalling.gen.ts
3
- var unmarshalEmailTry = (data) => {
3
+ const unmarshalEmailTry = (data) => {
4
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EmailTry' failed as data isn't a dictionary.`);
5
5
  return {
6
6
  code: data.code,
@@ -9,7 +9,7 @@ var unmarshalEmailTry = (data) => {
9
9
  triedAt: unmarshalDate(data.tried_at)
10
10
  };
11
11
  };
12
- var unmarshalEmail = (data) => {
12
+ const unmarshalEmail = (data) => {
13
13
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Email' failed as data isn't a dictionary.`);
14
14
  return {
15
15
  createdAt: unmarshalDate(data.created_at),
@@ -29,35 +29,35 @@ var unmarshalEmail = (data) => {
29
29
  updatedAt: unmarshalDate(data.updated_at)
30
30
  };
31
31
  };
32
- var unmarshalDomainRecordsDKIM = (data) => {
32
+ const unmarshalDomainRecordsDKIM = (data) => {
33
33
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordsDKIM' failed as data isn't a dictionary.`);
34
34
  return {
35
35
  name: data.name,
36
36
  value: data.value
37
37
  };
38
38
  };
39
- var unmarshalDomainRecordsDMARC = (data) => {
39
+ const unmarshalDomainRecordsDMARC = (data) => {
40
40
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordsDMARC' failed as data isn't a dictionary.`);
41
41
  return {
42
42
  name: data.name,
43
43
  value: data.value
44
44
  };
45
45
  };
46
- var unmarshalDomainRecordsMX = (data) => {
46
+ const unmarshalDomainRecordsMX = (data) => {
47
47
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordsMX' failed as data isn't a dictionary.`);
48
48
  return {
49
49
  name: data.name,
50
50
  value: data.value
51
51
  };
52
52
  };
53
- var unmarshalDomainRecordsSPF = (data) => {
53
+ const unmarshalDomainRecordsSPF = (data) => {
54
54
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordsSPF' failed as data isn't a dictionary.`);
55
55
  return {
56
56
  name: data.name,
57
57
  value: data.value
58
58
  };
59
59
  };
60
- var unmarshalDomainRecords = (data) => {
60
+ const unmarshalDomainRecords = (data) => {
61
61
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecords' failed as data isn't a dictionary.`);
62
62
  return {
63
63
  dkim: data.dkim ? unmarshalDomainRecordsDKIM(data.dkim) : void 0,
@@ -66,7 +66,7 @@ var unmarshalDomainRecords = (data) => {
66
66
  spf: data.spf ? unmarshalDomainRecordsSPF(data.spf) : void 0
67
67
  };
68
68
  };
69
- var unmarshalDomainReputation = (data) => {
69
+ const unmarshalDomainReputation = (data) => {
70
70
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
71
71
  return {
72
72
  previousScore: data.previous_score,
@@ -76,7 +76,7 @@ var unmarshalDomainReputation = (data) => {
76
76
  status: data.status
77
77
  };
78
78
  };
79
- var unmarshalDomainStatistics = (data) => {
79
+ const unmarshalDomainStatistics = (data) => {
80
80
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
81
81
  return {
82
82
  canceledCount: data.canceled_count,
@@ -85,7 +85,7 @@ var unmarshalDomainStatistics = (data) => {
85
85
  totalCount: data.total_count
86
86
  };
87
87
  };
88
- var unmarshalDomain = (data) => {
88
+ const unmarshalDomain = (data) => {
89
89
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
90
90
  return {
91
91
  autoconfig: data.autoconfig,
@@ -107,7 +107,7 @@ var unmarshalDomain = (data) => {
107
107
  status: data.status
108
108
  };
109
109
  };
110
- var unmarshalOfferSubscription = (data) => {
110
+ const unmarshalOfferSubscription = (data) => {
111
111
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferSubscription' failed as data isn't a dictionary.`);
112
112
  return {
113
113
  cancellationAvailableAt: unmarshalDate(data.cancellation_available_at),
@@ -123,7 +123,7 @@ var unmarshalOfferSubscription = (data) => {
123
123
  subscribedAt: unmarshalDate(data.subscribed_at)
124
124
  };
125
125
  };
126
- var unmarshalWebhook = (data) => {
126
+ const unmarshalWebhook = (data) => {
127
127
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Webhook' failed as data isn't a dictionary.`);
128
128
  return {
129
129
  createdAt: unmarshalDate(data.created_at),
@@ -137,7 +137,7 @@ var unmarshalWebhook = (data) => {
137
137
  updatedAt: unmarshalDate(data.updated_at)
138
138
  };
139
139
  };
140
- var unmarshalBlocklist = (data) => {
140
+ const unmarshalBlocklist = (data) => {
141
141
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Blocklist' failed as data isn't a dictionary.`);
142
142
  return {
143
143
  createdAt: unmarshalDate(data.created_at),
@@ -151,15 +151,15 @@ var unmarshalBlocklist = (data) => {
151
151
  updatedAt: unmarshalDate(data.updated_at)
152
152
  };
153
153
  };
154
- var unmarshalBulkCreateBlocklistsResponse = (data) => {
154
+ const unmarshalBulkCreateBlocklistsResponse = (data) => {
155
155
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BulkCreateBlocklistsResponse' failed as data isn't a dictionary.`);
156
156
  return { blocklists: unmarshalArrayOfObject(data.blocklists, unmarshalBlocklist) };
157
157
  };
158
- var unmarshalCreateEmailResponse = (data) => {
158
+ const unmarshalCreateEmailResponse = (data) => {
159
159
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateEmailResponse' failed as data isn't a dictionary.`);
160
160
  return { emails: unmarshalArrayOfObject(data.emails, unmarshalEmail) };
161
161
  };
162
- var unmarshalDomainLastStatusAutoconfigState = (data) => {
162
+ const unmarshalDomainLastStatusAutoconfigState = (data) => {
163
163
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatusAutoconfigState' failed as data isn't a dictionary.`);
164
164
  return {
165
165
  autoconfigurable: data.autoconfigurable,
@@ -167,7 +167,7 @@ var unmarshalDomainLastStatusAutoconfigState = (data) => {
167
167
  reason: data.reason ? data.reason : void 0
168
168
  };
169
169
  };
170
- var unmarshalDomainLastStatusDkimRecord = (data) => {
170
+ const unmarshalDomainLastStatusDkimRecord = (data) => {
171
171
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatusDkimRecord' failed as data isn't a dictionary.`);
172
172
  return {
173
173
  error: data.error,
@@ -175,7 +175,7 @@ var unmarshalDomainLastStatusDkimRecord = (data) => {
175
175
  status: data.status
176
176
  };
177
177
  };
178
- var unmarshalDomainLastStatusDmarcRecord = (data) => {
178
+ const unmarshalDomainLastStatusDmarcRecord = (data) => {
179
179
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatusDmarcRecord' failed as data isn't a dictionary.`);
180
180
  return {
181
181
  error: data.error,
@@ -183,7 +183,7 @@ var unmarshalDomainLastStatusDmarcRecord = (data) => {
183
183
  status: data.status
184
184
  };
185
185
  };
186
- var unmarshalDomainLastStatusMXRecord = (data) => {
186
+ const unmarshalDomainLastStatusMXRecord = (data) => {
187
187
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatusMXRecord' failed as data isn't a dictionary.`);
188
188
  return {
189
189
  error: data.error,
@@ -191,7 +191,7 @@ var unmarshalDomainLastStatusMXRecord = (data) => {
191
191
  status: data.status
192
192
  };
193
193
  };
194
- var unmarshalDomainLastStatusSpfRecord = (data) => {
194
+ const unmarshalDomainLastStatusSpfRecord = (data) => {
195
195
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatusSpfRecord' failed as data isn't a dictionary.`);
196
196
  return {
197
197
  error: data.error,
@@ -199,7 +199,7 @@ var unmarshalDomainLastStatusSpfRecord = (data) => {
199
199
  status: data.status
200
200
  };
201
201
  };
202
- var unmarshalDomainLastStatus = (data) => {
202
+ const unmarshalDomainLastStatus = (data) => {
203
203
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainLastStatus' failed as data isn't a dictionary.`);
204
204
  return {
205
205
  autoconfigState: data.autoconfig_state ? unmarshalDomainLastStatusAutoconfigState(data.autoconfig_state) : void 0,
@@ -211,35 +211,35 @@ var unmarshalDomainLastStatus = (data) => {
211
211
  spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : void 0
212
212
  };
213
213
  };
214
- var unmarshalListBlocklistsResponse = (data) => {
214
+ const unmarshalListBlocklistsResponse = (data) => {
215
215
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBlocklistsResponse' failed as data isn't a dictionary.`);
216
216
  return {
217
217
  blocklists: unmarshalArrayOfObject(data.blocklists, unmarshalBlocklist),
218
218
  totalCount: data.total_count
219
219
  };
220
220
  };
221
- var unmarshalListDomainsResponse = (data) => {
221
+ const unmarshalListDomainsResponse = (data) => {
222
222
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
223
223
  return {
224
224
  domains: unmarshalArrayOfObject(data.domains, unmarshalDomain),
225
225
  totalCount: data.total_count
226
226
  };
227
227
  };
228
- var unmarshalListEmailsResponse = (data) => {
228
+ const unmarshalListEmailsResponse = (data) => {
229
229
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListEmailsResponse' failed as data isn't a dictionary.`);
230
230
  return {
231
231
  emails: unmarshalArrayOfObject(data.emails, unmarshalEmail),
232
232
  totalCount: data.total_count
233
233
  };
234
234
  };
235
- var unmarshalListOfferSubscriptionsResponse = (data) => {
235
+ const unmarshalListOfferSubscriptionsResponse = (data) => {
236
236
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOfferSubscriptionsResponse' failed as data isn't a dictionary.`);
237
237
  return {
238
238
  offerSubscriptions: unmarshalArrayOfObject(data.offer_subscriptions, unmarshalOfferSubscription),
239
239
  totalCount: data.total_count
240
240
  };
241
241
  };
242
- var unmarshalOffer = (data) => {
242
+ const unmarshalOffer = (data) => {
243
243
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
244
244
  return {
245
245
  commitmentPeriod: data.commitment_period,
@@ -253,14 +253,14 @@ var unmarshalOffer = (data) => {
253
253
  sla: data.sla
254
254
  };
255
255
  };
256
- var unmarshalListOffersResponse = (data) => {
256
+ const unmarshalListOffersResponse = (data) => {
257
257
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
258
258
  return {
259
259
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
260
260
  totalCount: data.total_count
261
261
  };
262
262
  };
263
- var unmarshalPool = (data) => {
263
+ const unmarshalPool = (data) => {
264
264
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`);
265
265
  return {
266
266
  details: data.details,
@@ -271,14 +271,14 @@ var unmarshalPool = (data) => {
271
271
  zone: data.zone
272
272
  };
273
273
  };
274
- var unmarshalListPoolsResponse = (data) => {
274
+ const unmarshalListPoolsResponse = (data) => {
275
275
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`);
276
276
  return {
277
277
  pools: unmarshalArrayOfObject(data.pools, unmarshalPool),
278
278
  totalCount: data.total_count
279
279
  };
280
280
  };
281
- var unmarshalWebhookEvent = (data) => {
281
+ const unmarshalWebhookEvent = (data) => {
282
282
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WebhookEvent' failed as data isn't a dictionary.`);
283
283
  return {
284
284
  createdAt: unmarshalDate(data.created_at),
@@ -294,21 +294,21 @@ var unmarshalWebhookEvent = (data) => {
294
294
  webhookId: data.webhook_id
295
295
  };
296
296
  };
297
- var unmarshalListWebhookEventsResponse = (data) => {
297
+ const unmarshalListWebhookEventsResponse = (data) => {
298
298
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWebhookEventsResponse' failed as data isn't a dictionary.`);
299
299
  return {
300
300
  totalCount: data.total_count,
301
301
  webhookEvents: unmarshalArrayOfObject(data.webhook_events, unmarshalWebhookEvent)
302
302
  };
303
303
  };
304
- var unmarshalListWebhooksResponse = (data) => {
304
+ const unmarshalListWebhooksResponse = (data) => {
305
305
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWebhooksResponse' failed as data isn't a dictionary.`);
306
306
  return {
307
307
  totalCount: data.total_count,
308
308
  webhooks: unmarshalArrayOfObject(data.webhooks, unmarshalWebhook)
309
309
  };
310
310
  };
311
- var unmarshalProjectConsumption = (data) => {
311
+ const unmarshalProjectConsumption = (data) => {
312
312
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProjectConsumption' failed as data isn't a dictionary.`);
313
313
  return {
314
314
  customBlocklistsCount: data.custom_blocklists_count,
@@ -319,7 +319,7 @@ var unmarshalProjectConsumption = (data) => {
319
319
  webhooksCount: data.webhooks_count
320
320
  };
321
321
  };
322
- var unmarshalProjectSettingsPeriodicReport = (data) => {
322
+ const unmarshalProjectSettingsPeriodicReport = (data) => {
323
323
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProjectSettingsPeriodicReport' failed as data isn't a dictionary.`);
324
324
  return {
325
325
  enabled: data.enabled,
@@ -328,11 +328,11 @@ var unmarshalProjectSettingsPeriodicReport = (data) => {
328
328
  sendingHour: data.sending_hour
329
329
  };
330
330
  };
331
- var unmarshalProjectSettings = (data) => {
331
+ const unmarshalProjectSettings = (data) => {
332
332
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProjectSettings' failed as data isn't a dictionary.`);
333
333
  return { periodicReport: data.periodic_report ? unmarshalProjectSettingsPeriodicReport(data.periodic_report) : void 0 };
334
334
  };
335
- var unmarshalStatistics = (data) => {
335
+ const unmarshalStatistics = (data) => {
336
336
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Statistics' failed as data isn't a dictionary.`);
337
337
  return {
338
338
  canceledCount: data.canceled_count,
@@ -343,32 +343,32 @@ var unmarshalStatistics = (data) => {
343
343
  totalCount: data.total_count
344
344
  };
345
345
  };
346
- var marshalBulkCreateBlocklistsRequest = (request, defaults) => ({
346
+ const marshalBulkCreateBlocklistsRequest = (request, defaults) => ({
347
347
  domain_id: request.domainId,
348
348
  emails: request.emails,
349
349
  reason: request.reason,
350
350
  type: request.type
351
351
  });
352
- var marshalCreateDomainRequest = (request, defaults) => ({
352
+ const marshalCreateDomainRequest = (request, defaults) => ({
353
353
  accept_tos: request.acceptTos,
354
354
  autoconfig: request.autoconfig,
355
355
  domain_name: request.domainName,
356
356
  project_id: request.projectId ?? defaults.defaultProjectId
357
357
  });
358
- var marshalCreateEmailRequestAddress = (request, defaults) => ({
358
+ const marshalCreateEmailRequestAddress = (request, defaults) => ({
359
359
  email: request.email,
360
360
  name: request.name
361
361
  });
362
- var marshalCreateEmailRequestAttachment = (request, defaults) => ({
362
+ const marshalCreateEmailRequestAttachment = (request, defaults) => ({
363
363
  content: request.content,
364
364
  name: request.name,
365
365
  type: request.type
366
366
  });
367
- var marshalCreateEmailRequestHeader = (request, defaults) => ({
367
+ const marshalCreateEmailRequestHeader = (request, defaults) => ({
368
368
  key: request.key,
369
369
  value: request.value
370
370
  });
371
- var marshalCreateEmailRequest = (request, defaults) => ({
371
+ const marshalCreateEmailRequest = (request, defaults) => ({
372
372
  additional_headers: request.additionalHeaders !== void 0 ? request.additionalHeaders.map((elt) => marshalCreateEmailRequestHeader(elt, defaults)) : void 0,
373
373
  attachments: request.attachments !== void 0 ? request.attachments.map((elt) => marshalCreateEmailRequestAttachment(elt, defaults)) : void 0,
374
374
  bcc: request.bcc !== void 0 ? request.bcc.map((elt) => marshalCreateEmailRequestAddress(elt, defaults)) : void 0,
@@ -381,26 +381,26 @@ var marshalCreateEmailRequest = (request, defaults) => ({
381
381
  text: request.text,
382
382
  to: request.to !== void 0 ? request.to.map((elt) => marshalCreateEmailRequestAddress(elt, defaults)) : void 0
383
383
  });
384
- var marshalCreateWebhookRequest = (request, defaults) => ({
384
+ const marshalCreateWebhookRequest = (request, defaults) => ({
385
385
  domain_id: request.domainId,
386
386
  event_types: request.eventTypes !== void 0 ? request.eventTypes : void 0,
387
387
  name: request.name,
388
388
  project_id: request.projectId ?? defaults.defaultProjectId,
389
389
  sns_arn: request.snsArn
390
390
  });
391
- var marshalUpdateDomainRequest = (request, defaults) => ({ autoconfig: request.autoconfig });
392
- var marshalUpdateOfferSubscriptionRequest = (request, defaults) => ({
391
+ const marshalUpdateDomainRequest = (request, defaults) => ({ autoconfig: request.autoconfig });
392
+ const marshalUpdateOfferSubscriptionRequest = (request, defaults) => ({
393
393
  name: request.name,
394
394
  project_id: request.projectId ?? defaults.defaultProjectId
395
395
  });
396
- var marshalUpdateProjectSettingsRequestUpdatePeriodicReport = (request, defaults) => ({
396
+ const marshalUpdateProjectSettingsRequestUpdatePeriodicReport = (request, defaults) => ({
397
397
  enabled: request.enabled,
398
398
  frequency: request.frequency,
399
399
  sending_day: request.sendingDay,
400
400
  sending_hour: request.sendingHour
401
401
  });
402
- var marshalUpdateProjectSettingsRequest = (request, defaults) => ({ periodic_report: request.periodicReport !== void 0 ? marshalUpdateProjectSettingsRequestUpdatePeriodicReport(request.periodicReport, defaults) : void 0 });
403
- var marshalUpdateWebhookRequest = (request, defaults) => ({
402
+ const marshalUpdateProjectSettingsRequest = (request, defaults) => ({ periodic_report: request.periodicReport !== void 0 ? marshalUpdateProjectSettingsRequestUpdatePeriodicReport(request.periodicReport, defaults) : void 0 });
403
+ const marshalUpdateWebhookRequest = (request, defaults) => ({
404
404
  event_types: request.eventTypes !== void 0 ? request.eventTypes : void 0,
405
405
  name: request.name,
406
406
  sns_arn: request.snsArn
@@ -1,5 +1,5 @@
1
1
  //#region src/v1alpha1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "tem",
4
4
  version: "v1alpha1",
5
5
  folderName: "temv1alpha1",
@@ -17,22 +17,22 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
17
17
  UpdateProjectSettingsRequestUpdatePeriodicReport: () => UpdateProjectSettingsRequestUpdatePeriodicReport,
18
18
  UpdateWebhookRequest: () => UpdateWebhookRequest
19
19
  });
20
- var BulkCreateBlocklistsRequest = { reason: { maxLength: 200 } };
21
- var CreateDomainRequest = { domainName: {
20
+ const BulkCreateBlocklistsRequest = { reason: { maxLength: 200 } };
21
+ const CreateDomainRequest = { domainName: {
22
22
  maxLength: 255,
23
23
  minLength: 1
24
24
  } };
25
- var CreateEmailRequest = { subject: { maxLength: 998 } };
26
- var CreateEmailRequestAddress = { email: { minLength: 1 } };
27
- var CreateEmailRequestAttachment = {
25
+ const CreateEmailRequest = { subject: { maxLength: 998 } };
26
+ const CreateEmailRequestAddress = { email: { minLength: 1 } };
27
+ const CreateEmailRequestAttachment = {
28
28
  name: { minLength: 1 },
29
29
  type: { minLength: 1 }
30
30
  };
31
- var CreateEmailRequestHeader = {
31
+ const CreateEmailRequestHeader = {
32
32
  key: { minLength: 1 },
33
33
  value: { minLength: 1 }
34
34
  };
35
- var CreateWebhookRequest = {
35
+ const CreateWebhookRequest = {
36
36
  name: {
37
37
  maxLength: 127,
38
38
  minLength: 3
@@ -42,21 +42,21 @@ var CreateWebhookRequest = {
42
42
  minLength: 3
43
43
  }
44
44
  };
45
- var ListBlocklistsRequest = {
45
+ const ListBlocklistsRequest = {
46
46
  page: { greaterThan: 0 },
47
47
  pageSize: {
48
48
  greaterThanOrEqual: 1,
49
49
  lessThanOrEqual: 100
50
50
  }
51
51
  };
52
- var ListDomainsRequest = {
52
+ const ListDomainsRequest = {
53
53
  page: { greaterThan: 0 },
54
54
  pageSize: {
55
55
  greaterThanOrEqual: 1,
56
56
  lessThanOrEqual: 1e3
57
57
  }
58
58
  };
59
- var ListEmailsRequest = {
59
+ const ListEmailsRequest = {
60
60
  page: { greaterThan: 0 },
61
61
  pageSize: {
62
62
  greaterThanOrEqual: 1,
@@ -68,28 +68,28 @@ var ListEmailsRequest = {
68
68
  },
69
69
  subject: { maxLength: 998 }
70
70
  };
71
- var ListPoolsRequest = {
71
+ const ListPoolsRequest = {
72
72
  page: { greaterThanOrEqual: 1 },
73
73
  pageSize: {
74
74
  greaterThanOrEqual: 1,
75
75
  lessThanOrEqual: 1e3
76
76
  }
77
77
  };
78
- var ListWebhookEventsRequest = {
78
+ const ListWebhookEventsRequest = {
79
79
  page: { greaterThan: 0 },
80
80
  pageSize: {
81
81
  greaterThanOrEqual: 1,
82
82
  lessThanOrEqual: 100
83
83
  }
84
84
  };
85
- var ListWebhooksRequest = {
85
+ const ListWebhooksRequest = {
86
86
  page: { greaterThan: 0 },
87
87
  pageSize: {
88
88
  greaterThanOrEqual: 1,
89
89
  lessThanOrEqual: 100
90
90
  }
91
91
  };
92
- var UpdateProjectSettingsRequestUpdatePeriodicReport = {
92
+ const UpdateProjectSettingsRequestUpdatePeriodicReport = {
93
93
  sendingDay: {
94
94
  greaterThanOrEqual: 1,
95
95
  lessThanOrEqual: 28
@@ -99,7 +99,7 @@ var UpdateProjectSettingsRequestUpdatePeriodicReport = {
99
99
  lessThanOrEqual: 23
100
100
  }
101
101
  };
102
- var UpdateWebhookRequest = {
102
+ const UpdateWebhookRequest = {
103
103
  name: {
104
104
  maxLength: 127,
105
105
  minLength: 3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-tem",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "description": "Scaleway SDK tem",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -16,6 +16,14 @@
16
16
  "./*": {
17
17
  "types": "./dist/*/index.gen.d.ts",
18
18
  "default": "./dist/*/index.gen.js"
19
+ },
20
+ "./metadata": {
21
+ "types": "./dist/metadata.gen.d.ts",
22
+ "default": "./dist/metadata.gen.js"
23
+ },
24
+ "./*/metadata": {
25
+ "types": "./dist/*/metadata.gen.d.ts",
26
+ "default": "./dist/*/metadata.gen.js"
19
27
  }
20
28
  },
21
29
  "repository": {
@@ -27,18 +35,19 @@
27
35
  },
28
36
  "dependencies": {
29
37
  "@scaleway/random-name": "5.1.4",
30
- "@scaleway/sdk-std": "2.2.2"
38
+ "@scaleway/sdk-std": "2.4.0"
31
39
  },
32
40
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.2"
41
+ "@scaleway/sdk-client": "^2.3.0"
34
42
  },
35
43
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.2"
44
+ "@repo/configs": "^0.1.1",
45
+ "@scaleway/sdk-client": "^2.3.0"
37
46
  },
38
47
  "scripts": {
39
48
  "package:check": "pnpm publint",
40
- "typecheck": "tsc --noEmit",
41
- "type:generate": "tsc --declaration -p tsconfig.build.json",
49
+ "typecheck": "tsgo --noEmit",
50
+ "type:generate": "tsgo --declaration -p tsconfig.build.json",
42
51
  "build": "vite build --config vite.config.ts && pnpm run type:generate",
43
52
  "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
44
53
  }