@scaleway/sdk 2.66.0 → 2.68.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.
Files changed (131) hide show
  1. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +5 -1
  2. package/dist/api/audit_trail/v1alpha1/api.gen.js +5 -1
  3. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +1 -0
  4. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +1 -0
  5. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +6 -2
  6. package/dist/api/baremetal/v1/api.gen.cjs +13 -0
  7. package/dist/api/baremetal/v1/api.gen.d.ts +8 -1
  8. package/dist/api/baremetal/v1/api.gen.js +13 -0
  9. package/dist/api/baremetal/v1/content.gen.cjs +2 -1
  10. package/dist/api/baremetal/v1/content.gen.js +2 -1
  11. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  12. package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
  13. package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
  14. package/dist/api/baremetal/v1/types.gen.d.ts +9 -1
  15. package/dist/api/block/index.gen.cjs +4 -2
  16. package/dist/api/block/index.gen.d.ts +1 -0
  17. package/dist/api/block/index.gen.js +4 -2
  18. package/dist/api/block/v1/api.gen.cjs +303 -0
  19. package/dist/api/block/v1/api.gen.d.ts +152 -0
  20. package/dist/api/block/v1/api.gen.js +303 -0
  21. package/dist/api/block/v1/content.gen.cjs +22 -0
  22. package/dist/api/block/v1/content.gen.d.ts +7 -0
  23. package/dist/api/block/v1/content.gen.js +22 -0
  24. package/dist/api/block/v1/index.gen.cjs +10 -0
  25. package/dist/api/block/v1/index.gen.d.ts +4 -0
  26. package/dist/api/block/v1/index.gen.js +10 -0
  27. package/dist/api/block/v1/marshalling.gen.cjs +200 -0
  28. package/dist/api/block/v1/marshalling.gen.d.ts +14 -0
  29. package/dist/api/block/v1/marshalling.gen.js +200 -0
  30. package/dist/api/block/v1/types.gen.d.ts +335 -0
  31. package/dist/api/block/v1/validation-rules.gen.cjs +56 -0
  32. package/dist/api/block/v1/validation-rules.gen.d.ts +47 -0
  33. package/dist/api/block/v1/validation-rules.gen.js +56 -0
  34. package/dist/api/block/v1alpha1/api.gen.cjs +1 -0
  35. package/dist/api/block/v1alpha1/api.gen.js +1 -0
  36. package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
  37. package/dist/api/cockpit/v1/api.gen.cjs +14 -17
  38. package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
  39. package/dist/api/cockpit/v1/api.gen.js +15 -18
  40. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  41. package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
  42. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
  43. package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
  44. package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
  45. package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
  46. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
  47. package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
  48. package/dist/api/edge_services/index.gen.cjs +2 -0
  49. package/dist/api/edge_services/index.gen.d.ts +1 -0
  50. package/dist/api/edge_services/index.gen.js +3 -1
  51. package/dist/api/edge_services/v1beta1/api.gen.cjs +941 -0
  52. package/dist/api/edge_services/v1beta1/api.gen.d.ts +454 -0
  53. package/dist/api/edge_services/v1beta1/api.gen.js +941 -0
  54. package/dist/api/edge_services/v1beta1/content.gen.cjs +8 -0
  55. package/dist/api/edge_services/v1beta1/content.gen.d.ts +5 -0
  56. package/dist/api/edge_services/v1beta1/content.gen.js +8 -0
  57. package/dist/api/{webhosting/v1alpha1 → edge_services/v1beta1}/index.gen.cjs +2 -2
  58. package/dist/api/edge_services/v1beta1/index.gen.d.ts +4 -0
  59. package/dist/api/edge_services/v1beta1/index.gen.js +9 -0
  60. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +808 -0
  61. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +53 -0
  62. package/dist/api/edge_services/v1beta1/marshalling.gen.js +808 -0
  63. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1218 -0
  64. package/dist/api/edge_services/v1beta1/validation-rules.gen.cjs +23 -0
  65. package/dist/api/edge_services/v1beta1/validation-rules.gen.d.ts +18 -0
  66. package/dist/api/edge_services/v1beta1/validation-rules.gen.js +23 -0
  67. package/dist/api/instance/v1/api.gen.cjs +18 -0
  68. package/dist/api/instance/v1/api.gen.d.ts +13 -1
  69. package/dist/api/instance/v1/api.gen.js +19 -1
  70. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  71. package/dist/api/instance/v1/marshalling.gen.cjs +12 -0
  72. package/dist/api/instance/v1/marshalling.gen.d.ts +2 -1
  73. package/dist/api/instance/v1/marshalling.gen.js +12 -0
  74. package/dist/api/instance/v1/types.gen.d.ts +12 -0
  75. package/dist/api/lb/v1/marshalling.gen.cjs +7 -0
  76. package/dist/api/lb/v1/marshalling.gen.js +7 -0
  77. package/dist/api/lb/v1/types.gen.d.ts +27 -0
  78. package/dist/api/mongodb/v1alpha1/api.gen.cjs +11 -0
  79. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +2 -1
  80. package/dist/api/mongodb/v1alpha1/api.gen.js +12 -1
  81. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  82. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +26 -1
  83. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
  84. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +26 -1
  85. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +29 -0
  86. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  87. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  88. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  89. package/dist/api/secret/v1beta1/api.gen.cjs +33 -0
  90. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  91. package/dist/api/secret/v1beta1/api.gen.js +33 -0
  92. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  93. package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
  94. package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
  95. package/dist/api/secret/v1beta1/types.gen.d.ts +30 -3
  96. package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
  97. package/dist/api/vpcgw/v1/api.gen.d.ts +2 -1
  98. package/dist/api/vpcgw/v1/api.gen.js +6 -0
  99. package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
  100. package/dist/api/vpcgw/v1/types.gen.d.ts +5 -0
  101. package/dist/api/webhosting/index.gen.cjs +0 -2
  102. package/dist/api/webhosting/index.gen.d.ts +0 -1
  103. package/dist/api/webhosting/index.gen.js +1 -3
  104. package/dist/api/webhosting/v1/content.gen.cjs +0 -6
  105. package/dist/api/webhosting/v1/content.gen.d.ts +1 -3
  106. package/dist/api/webhosting/v1/content.gen.js +0 -6
  107. package/dist/api/webhosting/v1/index.gen.cjs +0 -1
  108. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  109. package/dist/api/webhosting/v1/index.gen.js +1 -2
  110. package/dist/api/webhosting/v1/marshalling.gen.cjs +5 -2
  111. package/dist/api/webhosting/v1/marshalling.gen.js +5 -2
  112. package/dist/api/webhosting/v1/types.gen.d.ts +12 -7
  113. package/dist/scw/constants.cjs +1 -1
  114. package/dist/scw/constants.d.ts +2 -2
  115. package/dist/scw/constants.js +1 -1
  116. package/package.json +2 -2
  117. package/dist/api/webhosting/v1alpha1/api.gen.cjs +0 -339
  118. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +0 -168
  119. package/dist/api/webhosting/v1alpha1/api.gen.js +0 -339
  120. package/dist/api/webhosting/v1alpha1/content.gen.cjs +0 -8
  121. package/dist/api/webhosting/v1alpha1/content.gen.d.ts +0 -3
  122. package/dist/api/webhosting/v1alpha1/content.gen.js +0 -8
  123. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +0 -4
  124. package/dist/api/webhosting/v1alpha1/index.gen.js +0 -9
  125. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +0 -300
  126. package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +0 -17
  127. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -300
  128. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +0 -480
  129. package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +0 -32
  130. package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +0 -27
  131. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -32
@@ -1,17 +0,0 @@
1
- import type { DefaultValues } from '../../../bridge';
2
- import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiUpdateMailboxRequest, CreateHostingRequest, DnsRecords, Hosting, ListControlPanelsResponse, ListHostingsResponse, ListMailboxesResponse, ListOffersResponse, Mailbox, ResetHostingPasswordResponse, Session, UpdateHostingRequest } from './types.gen';
3
- export declare const unmarshalHosting: (data: unknown) => Hosting;
4
- export declare const unmarshalMailbox: (data: unknown) => Mailbox;
5
- export declare const unmarshalCheckUserOwnsDomainResponse: (data: unknown) => CheckUserOwnsDomainResponse;
6
- export declare const unmarshalDnsRecords: (data: unknown) => DnsRecords;
7
- export declare const unmarshalListControlPanelsResponse: (data: unknown) => ListControlPanelsResponse;
8
- export declare const unmarshalListHostingsResponse: (data: unknown) => ListHostingsResponse;
9
- export declare const unmarshalListMailboxesResponse: (data: unknown) => ListMailboxesResponse;
10
- export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
11
- export declare const unmarshalResetHostingPasswordResponse: (data: unknown) => ResetHostingPasswordResponse;
12
- export declare const unmarshalSession: (data: unknown) => Session;
13
- export declare const marshalCheckUserOwnsDomainRequest: (request: CheckUserOwnsDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
14
- export declare const marshalClassicMailApiCreateMailboxRequest: (request: ClassicMailApiCreateMailboxRequest, defaults: DefaultValues) => Record<string, unknown>;
15
- export declare const marshalClassicMailApiUpdateMailboxRequest: (request: ClassicMailApiUpdateMailboxRequest, defaults: DefaultValues) => Record<string, unknown>;
16
- export declare const marshalCreateHostingRequest: (request: CreateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
17
- export declare const marshalUpdateHostingRequest: (request: UpdateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -1,300 +0,0 @@
1
- import { isJSONObject } from "../../../helpers/json.js";
2
- import { unmarshalMoney } from "../../../scw/custom-marshalling.js";
3
- import { unmarshalDate, unmarshalArrayOfObject } from "../../../helpers/marshalling.js";
4
- const unmarshalHostingCpanelUrls = (data) => {
5
- if (!isJSONObject(data)) {
6
- throw new TypeError(
7
- `Unmarshalling the type 'HostingCpanelUrls' failed as data isn't a dictionary.`
8
- );
9
- }
10
- return {
11
- dashboard: data.dashboard,
12
- webmail: data.webmail
13
- };
14
- };
15
- const unmarshalHostingOption = (data) => {
16
- if (!isJSONObject(data)) {
17
- throw new TypeError(
18
- `Unmarshalling the type 'HostingOption' failed as data isn't a dictionary.`
19
- );
20
- }
21
- return {
22
- id: data.id,
23
- name: data.name
24
- };
25
- };
26
- const unmarshalHosting = (data) => {
27
- if (!isJSONObject(data)) {
28
- throw new TypeError(
29
- `Unmarshalling the type 'Hosting' failed as data isn't a dictionary.`
30
- );
31
- }
32
- return {
33
- controlPanelName: data.control_panel_name,
34
- cpanelUrls: data.cpanel_urls ? unmarshalHostingCpanelUrls(data.cpanel_urls) : void 0,
35
- createdAt: unmarshalDate(data.created_at),
36
- dnsStatus: data.dns_status,
37
- domain: data.domain,
38
- id: data.id,
39
- ipv4: data.ipv4,
40
- ipv6: data.ipv6,
41
- offerEndOfLife: data.offer_end_of_life,
42
- offerId: data.offer_id,
43
- offerName: data.offer_name,
44
- oneTimePassword: data.one_time_password,
45
- options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
46
- organizationId: data.organization_id,
47
- platformGroup: data.platform_group,
48
- platformHostname: data.platform_hostname,
49
- platformNumber: data.platform_number,
50
- projectId: data.project_id,
51
- protected: data.protected,
52
- region: data.region,
53
- status: data.status,
54
- tags: data.tags,
55
- updatedAt: unmarshalDate(data.updated_at),
56
- username: data.username
57
- };
58
- };
59
- const unmarshalEmailAddress = (data) => {
60
- if (!isJSONObject(data)) {
61
- throw new TypeError(
62
- `Unmarshalling the type 'EmailAddress' failed as data isn't a dictionary.`
63
- );
64
- }
65
- return {
66
- domain: data.domain,
67
- login: data.login
68
- };
69
- };
70
- const unmarshalMailbox = (data) => {
71
- if (!isJSONObject(data)) {
72
- throw new TypeError(
73
- `Unmarshalling the type 'Mailbox' failed as data isn't a dictionary.`
74
- );
75
- }
76
- return {
77
- email: data.email ? unmarshalEmailAddress(data.email) : void 0,
78
- mailboxId: data.mailbox_id
79
- };
80
- };
81
- const unmarshalCheckUserOwnsDomainResponse = (data) => {
82
- if (!isJSONObject(data)) {
83
- throw new TypeError(
84
- `Unmarshalling the type 'CheckUserOwnsDomainResponse' failed as data isn't a dictionary.`
85
- );
86
- }
87
- return {
88
- ownsDomain: data.owns_domain
89
- };
90
- };
91
- const unmarshalDnsRecord = (data) => {
92
- if (!isJSONObject(data)) {
93
- throw new TypeError(
94
- `Unmarshalling the type 'DnsRecord' failed as data isn't a dictionary.`
95
- );
96
- }
97
- return {
98
- name: data.name,
99
- priority: data.priority,
100
- status: data.status,
101
- ttl: data.ttl,
102
- type: data.type,
103
- value: data.value
104
- };
105
- };
106
- const unmarshalNameserver = (data) => {
107
- if (!isJSONObject(data)) {
108
- throw new TypeError(
109
- `Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`
110
- );
111
- }
112
- return {
113
- hostname: data.hostname,
114
- isDefault: data.is_default,
115
- status: data.status
116
- };
117
- };
118
- const unmarshalDnsRecords = (data) => {
119
- if (!isJSONObject(data)) {
120
- throw new TypeError(
121
- `Unmarshalling the type 'DnsRecords' failed as data isn't a dictionary.`
122
- );
123
- }
124
- return {
125
- nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
126
- records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
127
- status: data.status
128
- };
129
- };
130
- const unmarshalControlPanel = (data) => {
131
- if (!isJSONObject(data)) {
132
- throw new TypeError(
133
- `Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`
134
- );
135
- }
136
- return {
137
- available: data.available,
138
- availableLanguages: data.available_languages,
139
- logoUrl: data.logo_url,
140
- name: data.name
141
- };
142
- };
143
- const unmarshalListControlPanelsResponse = (data) => {
144
- if (!isJSONObject(data)) {
145
- throw new TypeError(
146
- `Unmarshalling the type 'ListControlPanelsResponse' failed as data isn't a dictionary.`
147
- );
148
- }
149
- return {
150
- controlPanels: unmarshalArrayOfObject(
151
- data.control_panels,
152
- unmarshalControlPanel
153
- ),
154
- totalCount: data.total_count
155
- };
156
- };
157
- const unmarshalListHostingsResponse = (data) => {
158
- if (!isJSONObject(data)) {
159
- throw new TypeError(
160
- `Unmarshalling the type 'ListHostingsResponse' failed as data isn't a dictionary.`
161
- );
162
- }
163
- return {
164
- hostings: unmarshalArrayOfObject(data.hostings, unmarshalHosting),
165
- totalCount: data.total_count
166
- };
167
- };
168
- const unmarshalListMailboxesResponse = (data) => {
169
- if (!isJSONObject(data)) {
170
- throw new TypeError(
171
- `Unmarshalling the type 'ListMailboxesResponse' failed as data isn't a dictionary.`
172
- );
173
- }
174
- return {
175
- mailboxes: unmarshalArrayOfObject(data.mailboxes, unmarshalMailbox),
176
- totalCount: data.total_count
177
- };
178
- };
179
- const unmarshalOfferProduct = (data) => {
180
- if (!isJSONObject(data)) {
181
- throw new TypeError(
182
- `Unmarshalling the type 'OfferProduct' failed as data isn't a dictionary.`
183
- );
184
- }
185
- return {
186
- databasesQuota: data.databases_quota,
187
- emailAccountsQuota: data.email_accounts_quota,
188
- emailStorageQuota: data.email_storage_quota,
189
- hostingStorageQuota: data.hosting_storage_quota,
190
- maxAddonDomains: data.max_addon_domains,
191
- name: data.name,
192
- option: data.option,
193
- ram: data.ram,
194
- supportIncluded: data.support_included,
195
- vCpu: data.v_cpu
196
- };
197
- };
198
- const unmarshalOffer = (data) => {
199
- if (!isJSONObject(data)) {
200
- throw new TypeError(
201
- `Unmarshalling the type 'Offer' failed as data isn't a dictionary.`
202
- );
203
- }
204
- return {
205
- available: data.available,
206
- billingOperationPath: data.billing_operation_path,
207
- controlPanelName: data.control_panel_name,
208
- endOfLife: data.end_of_life,
209
- id: data.id,
210
- price: data.price ? unmarshalMoney(data.price) : void 0,
211
- product: data.product ? unmarshalOfferProduct(data.product) : void 0,
212
- quotaWarnings: data.quota_warnings
213
- };
214
- };
215
- const unmarshalListOffersResponse = (data) => {
216
- if (!isJSONObject(data)) {
217
- throw new TypeError(
218
- `Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`
219
- );
220
- }
221
- return {
222
- offers: unmarshalArrayOfObject(data.offers, unmarshalOffer)
223
- };
224
- };
225
- const unmarshalResetHostingPasswordResponse = (data) => {
226
- if (!isJSONObject(data)) {
227
- throw new TypeError(
228
- `Unmarshalling the type 'ResetHostingPasswordResponse' failed as data isn't a dictionary.`
229
- );
230
- }
231
- return {
232
- password: data.password
233
- };
234
- };
235
- const unmarshalSession = (data) => {
236
- if (!isJSONObject(data)) {
237
- throw new TypeError(
238
- `Unmarshalling the type 'Session' failed as data isn't a dictionary.`
239
- );
240
- }
241
- return {
242
- url: data.url
243
- };
244
- };
245
- const marshalCheckUserOwnsDomainRequest = (request, defaults) => ({
246
- project_id: request.projectId ?? defaults.defaultProjectId
247
- });
248
- const marshalEmailAddress = (request, defaults) => ({
249
- domain: request.domain,
250
- login: request.login
251
- });
252
- const marshalClassicMailApiCreateMailboxRequest = (request, defaults) => ({
253
- email: request.email !== void 0 ? marshalEmailAddress(request.email) : void 0,
254
- password: request.password
255
- });
256
- const marshalClassicMailApiUpdateMailboxRequest = (request, defaults) => ({
257
- password: request.password
258
- });
259
- const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
260
- update_all_records: request.updateAllRecords,
261
- update_mail_record: request.updateMailRecord,
262
- update_nameservers: request.updateNameservers,
263
- update_web_record: request.updateWebRecord
264
- });
265
- const marshalCreateHostingRequest = (request, defaults) => ({
266
- domain: request.domain,
267
- domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(
268
- request.domainConfiguration
269
- ) : void 0,
270
- email: request.email,
271
- language: request.language,
272
- offer_id: request.offerId,
273
- option_ids: request.optionIds,
274
- project_id: request.projectId ?? defaults.defaultProjectId,
275
- tags: request.tags
276
- });
277
- const marshalUpdateHostingRequest = (request, defaults) => ({
278
- email: request.email,
279
- offer_id: request.offerId,
280
- option_ids: request.optionIds,
281
- protected: request.protected,
282
- tags: request.tags
283
- });
284
- export {
285
- marshalCheckUserOwnsDomainRequest,
286
- marshalClassicMailApiCreateMailboxRequest,
287
- marshalClassicMailApiUpdateMailboxRequest,
288
- marshalCreateHostingRequest,
289
- marshalUpdateHostingRequest,
290
- unmarshalCheckUserOwnsDomainResponse,
291
- unmarshalDnsRecords,
292
- unmarshalHosting,
293
- unmarshalListControlPanelsResponse,
294
- unmarshalListHostingsResponse,
295
- unmarshalListMailboxesResponse,
296
- unmarshalListOffersResponse,
297
- unmarshalMailbox,
298
- unmarshalResetHostingPasswordResponse,
299
- unmarshalSession
300
- };