@scaleway/sdk-interlink 2.3.1 → 2.3.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 { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy } 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/v1beta1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * InterLink API.
7
8
 
8
9
  This API allows you to manage your Scaleway InterLink, to connect your on-premises infrastructure with your Scaleway VPC.
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'}
@@ -295,4 +296,5 @@ var API$1 = class extends API {
295
296
  path: `/interlink/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
296
297
  });
297
298
  };
298
- export { API$1 as API };
299
+ //#endregion
300
+ export { API };
@@ -1,5 +1,7 @@
1
+ //#region src/v1beta1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link DedicatedConnectionStatus}. */
2
- const DEDICATED_CONNECTION_TRANSIENT_STATUSES = ["configuring"];
3
+ var DEDICATED_CONNECTION_TRANSIENT_STATUSES = ["configuring"];
3
4
  /** Lists transient statutes of the enum {@link LinkStatus}. */
4
- const LINK_TRANSIENT_STATUSES = ["configuring"];
5
+ var LINK_TRANSIENT_STATUSES = ["configuring"];
6
+ //#endregion
5
7
  export { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES };
@@ -3,6 +3,7 @@ import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from
3
3
  import { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1beta1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  DEDICATED_CONNECTION_TRANSIENT_STATUSES: () => DEDICATED_CONNECTION_TRANSIENT_STATUSES,
@@ -27,4 +28,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
27
28
  unmarshalPop: () => unmarshalPop,
28
29
  unmarshalRoutingPolicy: () => unmarshalRoutingPolicy
29
30
  });
30
- export { index_gen_exports };
31
+ //#endregion
32
+ export { API, DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy };
@@ -1,4 +1,5 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
+ //#region src/v1beta1/marshalling.gen.ts
2
3
  var unmarshalRange = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Range' failed as data isn't a dictionary.`);
4
5
  return {
@@ -6,7 +7,7 @@ var unmarshalRange = (data) => {
6
7
  start: data.start
7
8
  };
8
9
  };
9
- const unmarshalDedicatedConnection = (data) => {
10
+ var unmarshalDedicatedConnection = (data) => {
10
11
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DedicatedConnection' failed as data isn't a dictionary.`);
11
12
  return {
12
13
  availableLinkBandwidths: data.available_link_bandwidths,
@@ -45,7 +46,7 @@ var unmarshalSelfHost = (data) => {
45
46
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SelfHost' failed as data isn't a dictionary.`);
46
47
  return { connectionId: data.connection_id };
47
48
  };
48
- const unmarshalLink = (data) => {
49
+ var unmarshalLink = (data) => {
49
50
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Link' failed as data isn't a dictionary.`);
50
51
  return {
51
52
  bandwidthMbps: data.bandwidth_mbps,
@@ -73,7 +74,7 @@ const unmarshalLink = (data) => {
73
74
  vpcId: data.vpc_id
74
75
  };
75
76
  };
76
- const unmarshalPartner = (data) => {
77
+ var unmarshalPartner = (data) => {
77
78
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Partner' failed as data isn't a dictionary.`);
78
79
  return {
79
80
  contactEmail: data.contact_email,
@@ -85,7 +86,7 @@ const unmarshalPartner = (data) => {
85
86
  updatedAt: unmarshalDate(data.updated_at)
86
87
  };
87
88
  };
88
- const unmarshalPop = (data) => {
89
+ var unmarshalPop = (data) => {
89
90
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pop' failed as data isn't a dictionary.`);
90
91
  return {
91
92
  address: data.address,
@@ -99,7 +100,7 @@ const unmarshalPop = (data) => {
99
100
  region: data.region
100
101
  };
101
102
  };
102
- const unmarshalRoutingPolicy = (data) => {
103
+ var unmarshalRoutingPolicy = (data) => {
103
104
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`);
104
105
  return {
105
106
  createdAt: unmarshalDate(data.created_at),
@@ -115,44 +116,44 @@ const unmarshalRoutingPolicy = (data) => {
115
116
  updatedAt: unmarshalDate(data.updated_at)
116
117
  };
117
118
  };
118
- const unmarshalListDedicatedConnectionsResponse = (data) => {
119
+ var unmarshalListDedicatedConnectionsResponse = (data) => {
119
120
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDedicatedConnectionsResponse' failed as data isn't a dictionary.`);
120
121
  return {
121
122
  connections: unmarshalArrayOfObject(data.connections, unmarshalDedicatedConnection),
122
123
  totalCount: data.total_count
123
124
  };
124
125
  };
125
- const unmarshalListLinksResponse = (data) => {
126
+ var unmarshalListLinksResponse = (data) => {
126
127
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLinksResponse' failed as data isn't a dictionary.`);
127
128
  return {
128
129
  links: unmarshalArrayOfObject(data.links, unmarshalLink),
129
130
  totalCount: data.total_count
130
131
  };
131
132
  };
132
- const unmarshalListPartnersResponse = (data) => {
133
+ var unmarshalListPartnersResponse = (data) => {
133
134
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPartnersResponse' failed as data isn't a dictionary.`);
134
135
  return {
135
136
  partners: unmarshalArrayOfObject(data.partners, unmarshalPartner),
136
137
  totalCount: data.total_count
137
138
  };
138
139
  };
139
- const unmarshalListPopsResponse = (data) => {
140
+ var unmarshalListPopsResponse = (data) => {
140
141
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPopsResponse' failed as data isn't a dictionary.`);
141
142
  return {
142
143
  pops: unmarshalArrayOfObject(data.pops, unmarshalPop),
143
144
  totalCount: data.total_count
144
145
  };
145
146
  };
146
- const unmarshalListRoutingPoliciesResponse = (data) => {
147
+ var unmarshalListRoutingPoliciesResponse = (data) => {
147
148
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`);
148
149
  return {
149
150
  routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
150
151
  totalCount: data.total_count
151
152
  };
152
153
  };
153
- const marshalAttachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
154
- const marshalAttachVpcRequest = (request, defaults) => ({ vpc_id: request.vpcId });
155
- const marshalCreateLinkRequest = (request, defaults) => ({
154
+ var marshalAttachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
155
+ var marshalAttachVpcRequest = (request, defaults) => ({ vpc_id: request.vpcId });
156
+ var marshalCreateLinkRequest = (request, defaults) => ({
156
157
  bandwidth_mbps: request.bandwidthMbps,
157
158
  name: request.name,
158
159
  peer_asn: request.peerAsn,
@@ -170,7 +171,7 @@ const marshalCreateLinkRequest = (request, defaults) => ({
170
171
  value: request.partnerId
171
172
  }])
172
173
  });
173
- const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
174
+ var marshalCreateRoutingPolicyRequest = (request, defaults) => ({
174
175
  is_ipv6: request.isIpv6,
175
176
  name: request.name,
176
177
  prefix_filter_in: request.prefixFilterIn,
@@ -178,17 +179,18 @@ const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
178
179
  project_id: request.projectId ?? defaults.defaultProjectId,
179
180
  tags: request.tags
180
181
  });
181
- const marshalDetachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
182
- const marshalSetRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
183
- const marshalUpdateLinkRequest = (request, defaults) => ({
182
+ var marshalDetachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
183
+ var marshalSetRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
184
+ var marshalUpdateLinkRequest = (request, defaults) => ({
184
185
  name: request.name,
185
186
  peer_asn: request.peerAsn,
186
187
  tags: request.tags
187
188
  });
188
- const marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
189
+ var marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
189
190
  name: request.name,
190
191
  prefix_filter_in: request.prefixFilterIn,
191
192
  prefix_filter_out: request.prefixFilterOut,
192
193
  tags: request.tags
193
194
  });
195
+ //#endregion
194
196
  export { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy };
File without changes
@@ -1,4 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1beta1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  BgpConfig: () => BgpConfig,
4
5
  CreateLinkRequest: () => CreateLinkRequest,
@@ -15,11 +16,11 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
15
16
  UpdateLinkRequest: () => UpdateLinkRequest,
16
17
  UpdateRoutingPolicyRequest: () => UpdateRoutingPolicyRequest
17
18
  });
18
- const BgpConfig = { asn: {
19
+ var BgpConfig = { asn: {
19
20
  greaterThanOrEqual: 1,
20
21
  lessThanOrEqual: 65534
21
22
  } };
22
- const CreateLinkRequest = {
23
+ var CreateLinkRequest = {
23
24
  bandwidthMbps: {
24
25
  greaterThanOrEqual: 1,
25
26
  lessThanOrEqual: 1e8
@@ -33,56 +34,56 @@ const CreateLinkRequest = {
33
34
  lessThanOrEqual: 65534
34
35
  }
35
36
  };
36
- const CreateRoutingPolicyRequest = { name: {
37
+ var CreateRoutingPolicyRequest = { name: {
37
38
  maxLength: 255,
38
39
  minLength: 1
39
40
  } };
40
- const Link = { name: { minLength: 1 } };
41
- const ListDedicatedConnectionsRequest = {
41
+ var Link = { name: { minLength: 1 } };
42
+ var ListDedicatedConnectionsRequest = {
42
43
  page: { greaterThanOrEqual: 1 },
43
44
  pageSize: {
44
45
  greaterThanOrEqual: 1,
45
46
  lessThanOrEqual: 1e3
46
47
  }
47
48
  };
48
- const ListLinksRequest = {
49
+ var ListLinksRequest = {
49
50
  page: { greaterThanOrEqual: 1 },
50
51
  pageSize: {
51
52
  greaterThanOrEqual: 1,
52
53
  lessThanOrEqual: 1e3
53
54
  }
54
55
  };
55
- const ListPartnersRequest = {
56
+ var ListPartnersRequest = {
56
57
  page: { greaterThanOrEqual: 1 },
57
58
  pageSize: {
58
59
  greaterThanOrEqual: 1,
59
60
  lessThanOrEqual: 1e3
60
61
  }
61
62
  };
62
- const ListPopsRequest = {
63
+ var ListPopsRequest = {
63
64
  page: { greaterThanOrEqual: 1 },
64
65
  pageSize: {
65
66
  greaterThanOrEqual: 1,
66
67
  lessThanOrEqual: 1e3
67
68
  }
68
69
  };
69
- const ListRoutingPoliciesRequest = {
70
+ var ListRoutingPoliciesRequest = {
70
71
  page: { greaterThanOrEqual: 1 },
71
72
  pageSize: {
72
73
  greaterThanOrEqual: 1,
73
74
  lessThanOrEqual: 1e3
74
75
  }
75
76
  };
76
- const Partner = { name: { minLength: 1 } };
77
- const Pop = {
77
+ var Partner = { name: { minLength: 1 } };
78
+ var Pop = {
78
79
  address: { minLength: 1 },
79
80
  city: { minLength: 1 },
80
81
  displayName: { minLength: 1 },
81
82
  hostingProviderName: { minLength: 1 },
82
83
  name: { minLength: 1 }
83
84
  };
84
- const RoutingPolicy = { name: { minLength: 1 } };
85
- const UpdateLinkRequest = {
85
+ var RoutingPolicy = { name: { minLength: 1 } };
86
+ var UpdateLinkRequest = {
86
87
  name: {
87
88
  maxLength: 255,
88
89
  minLength: 1
@@ -92,8 +93,9 @@ const UpdateLinkRequest = {
92
93
  lessThanOrEqual: 65534
93
94
  }
94
95
  };
95
- const UpdateRoutingPolicyRequest = { name: {
96
+ var UpdateRoutingPolicyRequest = { name: {
96
97
  maxLength: 255,
97
98
  minLength: 1
98
99
  } };
99
- export { validation_rules_gen_exports };
100
+ //#endregion
101
+ export { BgpConfig, CreateLinkRequest, CreateRoutingPolicyRequest, Link, ListDedicatedConnectionsRequest, ListLinksRequest, ListPartnersRequest, ListPopsRequest, ListRoutingPoliciesRequest, Partner, Pop, RoutingPolicy, UpdateLinkRequest, UpdateRoutingPolicyRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-interlink",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Scaleway SDK interlink",
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",