@scaleway/sdk-applesilicon 2.4.1 → 2.4.2

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,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,13 +1,14 @@
1
1
  import { RUNNER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalBatchCreateServersRequest, marshalCreateRunnerRequest, marshalCreateServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalReinstallServerRequest, marshalStartConnectivityDiagnosticRequest, marshalUpdateRunnerRequest, marshalUpdateServerRequest, unmarshalBatchCreateServersResponse, unmarshalConnectivityDiagnostic, unmarshalListOSResponse, unmarshalListRunnersResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServerTypesResponse, unmarshalListServersResponse, unmarshalOS, unmarshalRunner, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalServerType, unmarshalSetServerPrivateNetworksResponse, unmarshalStartConnectivityDiagnosticResponse } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1alpha1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Apple silicon API.
7
8
 
8
9
  This API allows you to manage your Apple silicon machines.
9
10
  */
10
- var API$1 = class extends API {
11
+ var API = class extends API$1 {
11
12
  /**
12
13
  * Locality of this API.
13
14
  * type ∈ {'zone','region','global','unspecified'}
@@ -231,7 +232,7 @@ var API$1 = class extends API {
231
232
  /**
232
233
  * Apple silicon - Private Networks API.
233
234
  */
234
- var PrivateNetworkAPI = class extends API {
235
+ var PrivateNetworkAPI = class extends API$1 {
235
236
  /**
236
237
  * Locality of this API.
237
238
  * type ∈ {'zone','region','global','unspecified'}
@@ -295,4 +296,5 @@ var PrivateNetworkAPI = class extends API {
295
296
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}`
296
297
  });
297
298
  };
298
- export { API$1 as API, PrivateNetworkAPI };
299
+ //#endregion
300
+ export { API, PrivateNetworkAPI };
@@ -1,11 +1,12 @@
1
+ //#region src/v1alpha1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link RunnerStatus}. */
2
- const RUNNER_TRANSIENT_STATUSES = ["waiting"];
3
+ var RUNNER_TRANSIENT_STATUSES = ["waiting"];
3
4
  /** Lists transient statutes of the enum {@link ServerPrivateNetworkServerStatus}. */
4
- const SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES = ["attaching", "detaching"];
5
+ var SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES = ["attaching", "detaching"];
5
6
  /** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
6
- const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = ["vpc_updating"];
7
+ var SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = ["vpc_updating"];
7
8
  /** Lists transient statutes of the enum {@link ServerStatus}. */
8
- const SERVER_TRANSIENT_STATUSES = [
9
+ var SERVER_TRANSIENT_STATUSES = [
9
10
  "starting",
10
11
  "rebooting",
11
12
  "updating",
@@ -14,4 +15,5 @@ const SERVER_TRANSIENT_STATUSES = [
14
15
  "reinstalling",
15
16
  "busy"
16
17
  ];
18
+ //#endregion
17
19
  export { RUNNER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES };
@@ -3,6 +3,7 @@ import { RUNNER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STAT
3
3
  import { marshalBatchCreateServersRequest, marshalCreateRunnerRequest, marshalCreateServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalReinstallServerRequest, marshalStartConnectivityDiagnosticRequest, marshalUpdateRunnerRequest, marshalUpdateServerRequest, unmarshalBatchCreateServersResponse, unmarshalConnectivityDiagnostic, unmarshalListOSResponse, unmarshalListRunnersResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServerTypesResponse, unmarshalListServersResponse, unmarshalOS, unmarshalRunner, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalServerType, unmarshalSetServerPrivateNetworksResponse, unmarshalStartConnectivityDiagnosticResponse } from "./marshalling.gen.js";
4
4
  import { API, PrivateNetworkAPI } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1alpha1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  PrivateNetworkAPI: () => PrivateNetworkAPI,
@@ -35,4 +36,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
35
36
  unmarshalSetServerPrivateNetworksResponse: () => unmarshalSetServerPrivateNetworksResponse,
36
37
  unmarshalStartConnectivityDiagnosticResponse: () => unmarshalStartConnectivityDiagnosticResponse
37
38
  });
38
- export { index_gen_exports };
39
+ //#endregion
40
+ export { API, PrivateNetworkAPI, RUNNER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalBatchCreateServersRequest, marshalCreateRunnerRequest, marshalCreateServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalReinstallServerRequest, marshalStartConnectivityDiagnosticRequest, marshalUpdateRunnerRequest, marshalUpdateServerRequest, unmarshalBatchCreateServersResponse, unmarshalConnectivityDiagnostic, unmarshalListOSResponse, unmarshalListRunnersResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServerTypesResponse, unmarshalListServersResponse, unmarshalOS, unmarshalRunner, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalServerType, unmarshalSetServerPrivateNetworksResponse, unmarshalStartConnectivityDiagnosticResponse };
@@ -1,5 +1,6 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  import randomName from "@scaleway/random-name";
3
+ //#region src/v1alpha1/marshalling.gen.ts
3
4
  var unmarshalOSSupportedServerType = (data) => {
4
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OSSupportedServerType' failed as data isn't a dictionary.`);
5
6
  return {
@@ -7,7 +8,7 @@ var unmarshalOSSupportedServerType = (data) => {
7
8
  serverType: data.server_type
8
9
  };
9
10
  };
10
- const unmarshalOS = (data) => {
11
+ var unmarshalOS = (data) => {
11
12
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
12
13
  return {
13
14
  compatibleServerTypes: data.compatible_server_types ? data.compatible_server_types : void 0,
@@ -41,7 +42,7 @@ var unmarshalRunnerConfiguration = (data) => {
41
42
  url: data.url
42
43
  };
43
44
  };
44
- const unmarshalServer = (data) => {
45
+ var unmarshalServer = (data) => {
45
46
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
46
47
  return {
47
48
  appliedRunnerConfigurationIds: data.applied_runner_configuration_ids,
@@ -94,7 +95,7 @@ var unmarshalRunnerConfigurationV2 = (data) => {
94
95
  provider: data.provider
95
96
  };
96
97
  };
97
- const unmarshalRunner = (data) => {
98
+ var unmarshalRunner = (data) => {
98
99
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Runner' failed as data isn't a dictionary.`);
99
100
  return {
100
101
  configuration: data.configuration ? unmarshalRunnerConfigurationV2(data.configuration) : void 0,
@@ -103,7 +104,7 @@ const unmarshalRunner = (data) => {
103
104
  status: data.status
104
105
  };
105
106
  };
106
- const unmarshalServerPrivateNetwork = (data) => {
107
+ var unmarshalServerPrivateNetwork = (data) => {
107
108
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerPrivateNetwork' failed as data isn't a dictionary.`);
108
109
  return {
109
110
  createdAt: unmarshalDate(data.created_at),
@@ -157,7 +158,7 @@ var unmarshalServerTypeNetwork = (data) => {
157
158
  supportedBandwidth: data.supported_bandwidth
158
159
  };
159
160
  };
160
- const unmarshalServerType = (data) => {
161
+ var unmarshalServerType = (data) => {
161
162
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`);
162
163
  return {
163
164
  cpu: data.cpu ? unmarshalServerTypeCPU(data.cpu) : void 0,
@@ -172,7 +173,7 @@ const unmarshalServerType = (data) => {
172
173
  stock: data.stock
173
174
  };
174
175
  };
175
- const unmarshalBatchCreateServersResponse = (data) => {
176
+ var unmarshalBatchCreateServersResponse = (data) => {
176
177
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BatchCreateServersResponse' failed as data isn't a dictionary.`);
177
178
  return { servers: unmarshalArrayOfObject(data.servers, unmarshalServer) };
178
179
  };
@@ -187,7 +188,7 @@ var unmarshalConnectivityDiagnosticServerHealth = (data) => {
187
188
  lastCheckinDate: unmarshalDate(data.last_checkin_date)
188
189
  };
189
190
  };
190
- const unmarshalConnectivityDiagnostic = (data) => {
191
+ var unmarshalConnectivityDiagnostic = (data) => {
191
192
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ConnectivityDiagnostic' failed as data isn't a dictionary.`);
192
193
  return {
193
194
  errorMessage: data.error_message,
@@ -198,48 +199,48 @@ const unmarshalConnectivityDiagnostic = (data) => {
198
199
  supportedActions: data.supported_actions
199
200
  };
200
201
  };
201
- const unmarshalListOSResponse = (data) => {
202
+ var unmarshalListOSResponse = (data) => {
202
203
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
203
204
  return {
204
205
  os: unmarshalArrayOfObject(data.os, unmarshalOS),
205
206
  totalCount: data.total_count
206
207
  };
207
208
  };
208
- const unmarshalListRunnersResponse = (data) => {
209
+ var unmarshalListRunnersResponse = (data) => {
209
210
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRunnersResponse' failed as data isn't a dictionary.`);
210
211
  return {
211
212
  runners: unmarshalArrayOfObject(data.runners, unmarshalRunner),
212
213
  totalCount: data.total_count
213
214
  };
214
215
  };
215
- const unmarshalListServerPrivateNetworksResponse = (data) => {
216
+ var unmarshalListServerPrivateNetworksResponse = (data) => {
216
217
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerPrivateNetworksResponse' failed as data isn't a dictionary.`);
217
218
  return {
218
219
  serverPrivateNetworks: unmarshalArrayOfObject(data.server_private_networks, unmarshalServerPrivateNetwork),
219
220
  totalCount: data.total_count
220
221
  };
221
222
  };
222
- const unmarshalListServerTypesResponse = (data) => {
223
+ var unmarshalListServerTypesResponse = (data) => {
223
224
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerTypesResponse' failed as data isn't a dictionary.`);
224
225
  return { serverTypes: unmarshalArrayOfObject(data.server_types, unmarshalServerType) };
225
226
  };
226
- const unmarshalListServersResponse = (data) => {
227
+ var unmarshalListServersResponse = (data) => {
227
228
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
228
229
  return {
229
230
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
230
231
  totalCount: data.total_count
231
232
  };
232
233
  };
233
- const unmarshalSetServerPrivateNetworksResponse = (data) => {
234
+ var unmarshalSetServerPrivateNetworksResponse = (data) => {
234
235
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetServerPrivateNetworksResponse' failed as data isn't a dictionary.`);
235
236
  return { serverPrivateNetworks: unmarshalArrayOfObject(data.server_private_networks, unmarshalServerPrivateNetwork) };
236
237
  };
237
- const unmarshalStartConnectivityDiagnosticResponse = (data) => {
238
+ var unmarshalStartConnectivityDiagnosticResponse = (data) => {
238
239
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'StartConnectivityDiagnosticResponse' failed as data isn't a dictionary.`);
239
240
  return { diagnosticId: data.diagnostic_id };
240
241
  };
241
242
  var marshalBatchCreateServersRequestBatchInnerCreateServerRequest = (request, defaults) => ({ name: request.name });
242
- const marshalBatchCreateServersRequest = (request, defaults) => ({
243
+ var marshalBatchCreateServersRequest = (request, defaults) => ({
243
244
  commitment_type: request.commitmentType,
244
245
  enable_kext: request.enableKext,
245
246
  enable_vpc: request.enableVpc,
@@ -269,7 +270,7 @@ var marshalRunnerConfigurationV2 = (request, defaults) => ({
269
270
  value: request.gitlabConfiguration !== void 0 ? marshalGitlabRunnerConfiguration(request.gitlabConfiguration, defaults) : void 0
270
271
  }])
271
272
  });
272
- const marshalCreateRunnerRequest = (request, defaults) => ({
273
+ var marshalCreateRunnerRequest = (request, defaults) => ({
273
274
  project_id: request.projectId ?? defaults.defaultProjectId,
274
275
  runner_configuration: marshalRunnerConfigurationV2(request.runnerConfiguration, defaults)
275
276
  });
@@ -280,7 +281,7 @@ var marshalRunnerConfiguration = (request, defaults) => ({
280
281
  token: request.token,
281
282
  url: request.url
282
283
  });
283
- const marshalCreateServerRequest = (request, defaults) => ({
284
+ var marshalCreateServerRequest = (request, defaults) => ({
284
285
  applied_runner_configurations: request.appliedRunnerConfigurations !== void 0 ? marshalAppliedRunnerConfigurations(request.appliedRunnerConfigurations, defaults) : void 0,
285
286
  commitment_type: request.commitmentType,
286
287
  enable_kext: request.enableKext,
@@ -292,19 +293,19 @@ const marshalCreateServerRequest = (request, defaults) => ({
292
293
  runner_configuration: request.runnerConfiguration !== void 0 ? marshalRunnerConfiguration(request.runnerConfiguration, defaults) : void 0,
293
294
  type: request.type
294
295
  });
295
- const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
296
+ var marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
296
297
  ipam_ip_ids: request.ipamIpIds,
297
298
  private_network_id: request.privateNetworkId
298
299
  });
299
- const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaults) => ({ per_private_network_ipam_ip_ids: request.perPrivateNetworkIpamIpIds });
300
- const marshalReinstallServerRequest = (request, defaults) => ({
300
+ var marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaults) => ({ per_private_network_ipam_ip_ids: request.perPrivateNetworkIpamIpIds });
301
+ var marshalReinstallServerRequest = (request, defaults) => ({
301
302
  enable_kext: request.enableKext,
302
303
  os_id: request.osId
303
304
  });
304
- const marshalStartConnectivityDiagnosticRequest = (request, defaults) => ({ server_id: request.serverId });
305
- const marshalUpdateRunnerRequest = (request, defaults) => ({ runner_configuration: marshalRunnerConfigurationV2(request.runnerConfiguration, defaults) });
305
+ var marshalStartConnectivityDiagnosticRequest = (request, defaults) => ({ server_id: request.serverId });
306
+ var marshalUpdateRunnerRequest = (request, defaults) => ({ runner_configuration: marshalRunnerConfigurationV2(request.runnerConfiguration, defaults) });
306
307
  var marshalCommitmentTypeValue = (request, defaults) => ({ commitment_type: request.commitmentType });
307
- const marshalUpdateServerRequest = (request, defaults) => ({
308
+ var marshalUpdateServerRequest = (request, defaults) => ({
308
309
  applied_runner_configurations: request.appliedRunnerConfigurations !== void 0 ? marshalAppliedRunnerConfigurations(request.appliedRunnerConfigurations, defaults) : void 0,
309
310
  commitment_type: request.commitmentType !== void 0 ? marshalCommitmentTypeValue(request.commitmentType, defaults) : void 0,
310
311
  enable_vpc: request.enableVpc,
@@ -312,4 +313,5 @@ const marshalUpdateServerRequest = (request, defaults) => ({
312
313
  public_bandwidth_bps: request.publicBandwidthBps,
313
314
  schedule_deletion: request.scheduleDeletion
314
315
  });
316
+ //#endregion
315
317
  export { marshalBatchCreateServersRequest, marshalCreateRunnerRequest, marshalCreateServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalReinstallServerRequest, marshalStartConnectivityDiagnosticRequest, marshalUpdateRunnerRequest, marshalUpdateServerRequest, unmarshalBatchCreateServersResponse, unmarshalConnectivityDiagnostic, unmarshalListOSResponse, unmarshalListRunnersResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServerTypesResponse, unmarshalListServersResponse, unmarshalOS, unmarshalRunner, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalServerType, unmarshalSetServerPrivateNetworksResponse, unmarshalStartConnectivityDiagnosticResponse };
File without changes
@@ -1,7 +1,9 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1alpha1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({ RunnerConfigurationV2: () => RunnerConfigurationV2 });
3
- const RunnerConfigurationV2 = { name: {
4
+ var RunnerConfigurationV2 = { name: {
4
5
  maxLength: 255,
5
6
  minLength: 1
6
7
  } };
7
- export { validation_rules_gen_exports };
8
+ //#endregion
9
+ export { RunnerConfigurationV2, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-applesilicon",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Scaleway SDK applesilicon",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",