@scaleway/sdk-redis 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.
- package/dist/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1/api.gen.d.ts +1 -1
- package/dist/v1/api.gen.js +138 -282
- package/dist/v1/content.gen.js +1 -1
- package/dist/v1/marshalling.gen.js +34 -34
- package/dist/v1/metadata.gen.js +1 -1
- package/package.json +16 -6
- package/LICENSE +0 -191
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated
|
|
3
|
+
* PLEASE DO NOT EDIT HERE
|
|
4
|
+
*/
|
|
5
|
+
export declare const pkgMetadata: {
|
|
6
|
+
readonly name: "@scaleway/sdk-redis";
|
|
7
|
+
readonly namespace: "redis";
|
|
8
|
+
readonly displayName: "Redis";
|
|
9
|
+
readonly versions: readonly ["v1"];
|
|
10
|
+
};
|
|
11
|
+
export type Metadata = typeof pkgMetadata;
|
|
12
|
+
export default pkgMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/metadata.gen.ts
|
|
2
|
+
/**
|
|
3
|
+
* This file is automatically generated
|
|
4
|
+
* PLEASE DO NOT EDIT HERE
|
|
5
|
+
*/
|
|
6
|
+
const pkgMetadata = {
|
|
7
|
+
name: "@scaleway/sdk-redis",
|
|
8
|
+
namespace: "redis",
|
|
9
|
+
displayName: "Redis",
|
|
10
|
+
versions: ["v1"]
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { pkgMetadata as default, pkgMetadata };
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class API extends ParentAPI {
|
|
|
40
40
|
* @param options - The waiting options
|
|
41
41
|
* @returns A Promise of Cluster
|
|
42
42
|
*/
|
|
43
|
-
waitForCluster: (request: Readonly<GetClusterRequest>, options?: Readonly<WaitForOptions<Cluster>>) => Promise<Cluster>;
|
|
43
|
+
waitForCluster: (request: Readonly<GetClusterRequest>, options?: Readonly<WaitForOptions<Cluster>> | undefined) => Promise<Cluster>;
|
|
44
44
|
protected pageOfListClusters: (request?: Readonly<ListClustersRequest>) => Promise<ListClustersResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* List Redis™ Database Instances. List all Redis™ Database Instances (Redis™ cluster) in the specified zone. By default, the Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags`, `name`, `organization_id` and `version`.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -2,294 +2,150 @@ import { CLUSTER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
|
2
2
|
import { marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, marshalAddEndpointsRequest, marshalCreateClusterRequest, marshalMigrateClusterRequest, marshalSetAclRulesRequest, marshalSetClusterSettingsRequest, marshalSetEndpointsRequest, marshalUpdateClusterRequest, marshalUpdateEndpointRequest, unmarshalACLRule, unmarshalAddAclRulesResponse, unmarshalAddEndpointsResponse, unmarshalCluster, unmarshalClusterMetricsResponse, unmarshalClusterSettingsResponse, unmarshalEndpoint, unmarshalListClusterVersionsResponse, unmarshalListClustersResponse, unmarshalListNodeTypesResponse, unmarshalSetAclRulesResponse, unmarshalSetEndpointsResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
4
|
//#region src/v1/api.gen.ts
|
|
5
|
-
|
|
5
|
+
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
6
|
/**
|
|
7
7
|
* Managed Database for Redis™ API.
|
|
8
8
|
|
|
9
9
|
This API allows you to manage your Managed Databases for Redis™.
|
|
10
10
|
*/
|
|
11
11
|
var API = class extends API$1 {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*
|
|
150
|
-
* @param request - The request {@link RenewClusterCertificateRequest}
|
|
151
|
-
* @returns A Promise of Cluster
|
|
152
|
-
*/
|
|
153
|
-
renewClusterCertificate = (request) => this.client.fetch({
|
|
154
|
-
body: "{}",
|
|
155
|
-
headers: jsonContentHeaders,
|
|
156
|
-
method: "POST",
|
|
157
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/renew-certificate`
|
|
158
|
-
}, unmarshalCluster);
|
|
159
|
-
/**
|
|
160
|
-
* Add advanced settings. Add an advanced setting to a Redis™ Database Instance (Redis™ cluster). You must set the `name` and the `value` of each setting.
|
|
161
|
-
*
|
|
162
|
-
* @param request - The request {@link AddClusterSettingsRequest}
|
|
163
|
-
* @returns A Promise of ClusterSettingsResponse
|
|
164
|
-
*/
|
|
165
|
-
addClusterSettings = (request) => this.client.fetch({
|
|
166
|
-
body: JSON.stringify(marshalAddClusterSettingsRequest(request, this.client.settings)),
|
|
167
|
-
headers: jsonContentHeaders,
|
|
168
|
-
method: "POST",
|
|
169
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings`
|
|
170
|
-
}, unmarshalClusterSettingsResponse);
|
|
171
|
-
/**
|
|
172
|
-
* Delete advanced setting. Delete an advanced setting in a Redis™ Database Instance (Redis™ cluster). You must specify the names of the settings you want to delete in the request body.
|
|
173
|
-
*
|
|
174
|
-
* @param request - The request {@link DeleteClusterSettingRequest}
|
|
175
|
-
* @returns A Promise of Cluster
|
|
176
|
-
*/
|
|
177
|
-
deleteClusterSetting = (request) => this.client.fetch({
|
|
178
|
-
method: "DELETE",
|
|
179
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings/${validatePathParam("settingName", request.settingName)}`
|
|
180
|
-
}, unmarshalCluster);
|
|
181
|
-
/**
|
|
182
|
-
* Set advanced settings. Update an advanced setting for a Redis™ Database Instance (Redis™ cluster). Settings added upon database engine initialization can only be defined once, and cannot, therefore, be updated.
|
|
183
|
-
*
|
|
184
|
-
* @param request - The request {@link SetClusterSettingsRequest}
|
|
185
|
-
* @returns A Promise of ClusterSettingsResponse
|
|
186
|
-
*/
|
|
187
|
-
setClusterSettings = (request) => this.client.fetch({
|
|
188
|
-
body: JSON.stringify(marshalSetClusterSettingsRequest(request, this.client.settings)),
|
|
189
|
-
headers: jsonContentHeaders,
|
|
190
|
-
method: "PUT",
|
|
191
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings`
|
|
192
|
-
}, unmarshalClusterSettingsResponse);
|
|
193
|
-
/**
|
|
194
|
-
* Set ACL rules for a cluster. Replace all the ACL rules of a Redis™ Database Instance (Redis™ cluster).
|
|
195
|
-
*
|
|
196
|
-
* @param request - The request {@link SetAclRulesRequest}
|
|
197
|
-
* @returns A Promise of SetAclRulesResponse
|
|
198
|
-
*/
|
|
199
|
-
setAclRules = (request) => this.client.fetch({
|
|
200
|
-
body: JSON.stringify(marshalSetAclRulesRequest(request, this.client.settings)),
|
|
201
|
-
headers: jsonContentHeaders,
|
|
202
|
-
method: "PUT",
|
|
203
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/acls`
|
|
204
|
-
}, unmarshalSetAclRulesResponse);
|
|
205
|
-
/**
|
|
206
|
-
* Add ACL rules for a cluster. Add an additional ACL rule to a Redis™ Database Instance (Redis™ cluster).
|
|
207
|
-
*
|
|
208
|
-
* @param request - The request {@link AddAclRulesRequest}
|
|
209
|
-
* @returns A Promise of AddAclRulesResponse
|
|
210
|
-
*/
|
|
211
|
-
addAclRules = (request) => this.client.fetch({
|
|
212
|
-
body: JSON.stringify(marshalAddAclRulesRequest(request, this.client.settings)),
|
|
213
|
-
headers: jsonContentHeaders,
|
|
214
|
-
method: "POST",
|
|
215
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/acls`
|
|
216
|
-
}, unmarshalAddAclRulesResponse);
|
|
217
|
-
/**
|
|
218
|
-
* Delete an ACL rule for a cluster. Delete an ACL rule of a Redis™ Database Instance (Redis™ cluster). You must specify the `acl_id` of the rule you want to delete in your request.
|
|
219
|
-
*
|
|
220
|
-
* @param request - The request {@link DeleteAclRuleRequest}
|
|
221
|
-
* @returns A Promise of Cluster
|
|
222
|
-
*/
|
|
223
|
-
deleteAclRule = (request) => this.client.fetch({
|
|
224
|
-
method: "DELETE",
|
|
225
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`
|
|
226
|
-
}, unmarshalCluster);
|
|
227
|
-
/**
|
|
228
|
-
* Get an ACL rule. Retrieve information about an ACL rule of a Redis™ Database Instance (Redis™ cluster). You must specify the `acl_id` of the rule in your request.
|
|
229
|
-
*
|
|
230
|
-
* @param request - The request {@link GetAclRuleRequest}
|
|
231
|
-
* @returns A Promise of ACLRule
|
|
232
|
-
*/
|
|
233
|
-
getAclRule = (request) => this.client.fetch({
|
|
234
|
-
method: "GET",
|
|
235
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`
|
|
236
|
-
}, unmarshalACLRule);
|
|
237
|
-
/**
|
|
238
|
-
* Set endpoints for a cluster. Update an endpoint for a Redis™ Database Instance (Redis™ cluster). You must specify the `cluster_id` and the `endpoints` parameters in your request.
|
|
239
|
-
*
|
|
240
|
-
* @param request - The request {@link SetEndpointsRequest}
|
|
241
|
-
* @returns A Promise of SetEndpointsResponse
|
|
242
|
-
*/
|
|
243
|
-
setEndpoints = (request) => this.client.fetch({
|
|
244
|
-
body: JSON.stringify(marshalSetEndpointsRequest(request, this.client.settings)),
|
|
245
|
-
headers: jsonContentHeaders,
|
|
246
|
-
method: "PUT",
|
|
247
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/endpoints`
|
|
248
|
-
}, unmarshalSetEndpointsResponse);
|
|
249
|
-
/**
|
|
250
|
-
* Add endpoints for a cluster. Add a new endpoint for a Redis™ Database Instance (Redis™ cluster). You can add `private_network` or `public_network` specifications to the body of the request.
|
|
251
|
-
*
|
|
252
|
-
* @param request - The request {@link AddEndpointsRequest}
|
|
253
|
-
* @returns A Promise of AddEndpointsResponse
|
|
254
|
-
*/
|
|
255
|
-
addEndpoints = (request) => this.client.fetch({
|
|
256
|
-
body: JSON.stringify(marshalAddEndpointsRequest(request, this.client.settings)),
|
|
257
|
-
headers: jsonContentHeaders,
|
|
258
|
-
method: "POST",
|
|
259
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/endpoints`
|
|
260
|
-
}, unmarshalAddEndpointsResponse);
|
|
261
|
-
/**
|
|
262
|
-
* Delete an endpoint for a cluster. Delete the endpoint of a Redis™ Database Instance (Redis™ cluster). You must specify the `region` and `endpoint_id` parameters of the endpoint you want to delete. Note that might need to update any environment configurations that point to the deleted endpoint.
|
|
263
|
-
*
|
|
264
|
-
* @param request - The request {@link DeleteEndpointRequest}
|
|
265
|
-
* @returns A Promise of Cluster
|
|
266
|
-
*/
|
|
267
|
-
deleteEndpoint = (request) => this.client.fetch({
|
|
268
|
-
method: "DELETE",
|
|
269
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
270
|
-
}, unmarshalCluster);
|
|
271
|
-
/**
|
|
272
|
-
* Get an endpoint. Retrieve information about a Redis™ Database Instance (Redis™ cluster) endpoint. Full details about the endpoint, like `ips`, `port`, `private_network` and `public_network` specifications are returned in the response.
|
|
273
|
-
*
|
|
274
|
-
* @param request - The request {@link GetEndpointRequest}
|
|
275
|
-
* @returns A Promise of Endpoint
|
|
276
|
-
*/
|
|
277
|
-
getEndpoint = (request) => this.client.fetch({
|
|
278
|
-
method: "GET",
|
|
279
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
280
|
-
}, unmarshalEndpoint);
|
|
281
|
-
/**
|
|
282
|
-
* Update an endpoint. Update information about a Redis™ Database Instance (Redis™ cluster) endpoint. Full details about the endpoint, like `ips`, `port`, `private_network` and `public_network` specifications are returned in the response.
|
|
283
|
-
*
|
|
284
|
-
* @param request - The request {@link UpdateEndpointRequest}
|
|
285
|
-
* @returns A Promise of Endpoint
|
|
286
|
-
*/
|
|
287
|
-
updateEndpoint = (request) => this.client.fetch({
|
|
288
|
-
body: JSON.stringify(marshalUpdateEndpointRequest(request, this.client.settings)),
|
|
289
|
-
headers: jsonContentHeaders,
|
|
290
|
-
method: "PATCH",
|
|
291
|
-
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
292
|
-
}, unmarshalEndpoint);
|
|
12
|
+
constructor(..._args) {
|
|
13
|
+
super(..._args);
|
|
14
|
+
this.createCluster = (request) => this.client.fetch({
|
|
15
|
+
body: JSON.stringify(marshalCreateClusterRequest(request, this.client.settings)),
|
|
16
|
+
headers: jsonContentHeaders,
|
|
17
|
+
method: "POST",
|
|
18
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters`
|
|
19
|
+
}, unmarshalCluster);
|
|
20
|
+
this.updateCluster = (request) => this.client.fetch({
|
|
21
|
+
body: JSON.stringify(marshalUpdateClusterRequest(request, this.client.settings)),
|
|
22
|
+
headers: jsonContentHeaders,
|
|
23
|
+
method: "PATCH",
|
|
24
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}`
|
|
25
|
+
}, unmarshalCluster);
|
|
26
|
+
this.getCluster = (request) => this.client.fetch({
|
|
27
|
+
method: "GET",
|
|
28
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}`
|
|
29
|
+
}, unmarshalCluster);
|
|
30
|
+
this.waitForCluster = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))), this.getCluster, request, options);
|
|
31
|
+
this.pageOfListClusters = (request = {}) => this.client.fetch({
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters`,
|
|
34
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags], ["version", request.version])
|
|
35
|
+
}, unmarshalListClustersResponse);
|
|
36
|
+
this.listClusters = (request = {}) => enrichForPagination("clusters", this.pageOfListClusters, request);
|
|
37
|
+
this.migrateCluster = (request) => this.client.fetch({
|
|
38
|
+
body: JSON.stringify(marshalMigrateClusterRequest(request, this.client.settings)),
|
|
39
|
+
headers: jsonContentHeaders,
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/migrate`
|
|
42
|
+
}, unmarshalCluster);
|
|
43
|
+
this.deleteCluster = (request) => this.client.fetch({
|
|
44
|
+
method: "DELETE",
|
|
45
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}`
|
|
46
|
+
}, unmarshalCluster);
|
|
47
|
+
this.getClusterMetrics = (request) => this.client.fetch({
|
|
48
|
+
method: "GET",
|
|
49
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/metrics`,
|
|
50
|
+
urlParams: urlParams(["end_at", request.endAt], ["metric_name", request.metricName], ["start_at", request.startAt])
|
|
51
|
+
}, unmarshalClusterMetricsResponse);
|
|
52
|
+
this.pageOfListNodeTypes = (request) => this.client.fetch({
|
|
53
|
+
method: "GET",
|
|
54
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/node-types`,
|
|
55
|
+
urlParams: urlParams(["include_disabled_types", request.includeDisabledTypes], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
56
|
+
}, unmarshalListNodeTypesResponse);
|
|
57
|
+
this.listNodeTypes = (request) => enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
|
|
58
|
+
this.pageOfListClusterVersions = (request) => this.client.fetch({
|
|
59
|
+
method: "GET",
|
|
60
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/cluster-versions`,
|
|
61
|
+
urlParams: urlParams(["include_beta", request.includeBeta], ["include_deprecated", request.includeDeprecated], ["include_disabled", request.includeDisabled], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["version", request.version])
|
|
62
|
+
}, unmarshalListClusterVersionsResponse);
|
|
63
|
+
this.listClusterVersions = (request) => enrichForPagination("versions", this.pageOfListClusterVersions, request);
|
|
64
|
+
this.getClusterCertificate = (request) => this.client.fetch({
|
|
65
|
+
method: "GET",
|
|
66
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/certificate`,
|
|
67
|
+
urlParams: urlParams(["dl", 1]),
|
|
68
|
+
responseType: "blob"
|
|
69
|
+
});
|
|
70
|
+
this.renewClusterCertificate = (request) => this.client.fetch({
|
|
71
|
+
body: "{}",
|
|
72
|
+
headers: jsonContentHeaders,
|
|
73
|
+
method: "POST",
|
|
74
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/renew-certificate`
|
|
75
|
+
}, unmarshalCluster);
|
|
76
|
+
this.addClusterSettings = (request) => this.client.fetch({
|
|
77
|
+
body: JSON.stringify(marshalAddClusterSettingsRequest(request, this.client.settings)),
|
|
78
|
+
headers: jsonContentHeaders,
|
|
79
|
+
method: "POST",
|
|
80
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings`
|
|
81
|
+
}, unmarshalClusterSettingsResponse);
|
|
82
|
+
this.deleteClusterSetting = (request) => this.client.fetch({
|
|
83
|
+
method: "DELETE",
|
|
84
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings/${validatePathParam("settingName", request.settingName)}`
|
|
85
|
+
}, unmarshalCluster);
|
|
86
|
+
this.setClusterSettings = (request) => this.client.fetch({
|
|
87
|
+
body: JSON.stringify(marshalSetClusterSettingsRequest(request, this.client.settings)),
|
|
88
|
+
headers: jsonContentHeaders,
|
|
89
|
+
method: "PUT",
|
|
90
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/settings`
|
|
91
|
+
}, unmarshalClusterSettingsResponse);
|
|
92
|
+
this.setAclRules = (request) => this.client.fetch({
|
|
93
|
+
body: JSON.stringify(marshalSetAclRulesRequest(request, this.client.settings)),
|
|
94
|
+
headers: jsonContentHeaders,
|
|
95
|
+
method: "PUT",
|
|
96
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/acls`
|
|
97
|
+
}, unmarshalSetAclRulesResponse);
|
|
98
|
+
this.addAclRules = (request) => this.client.fetch({
|
|
99
|
+
body: JSON.stringify(marshalAddAclRulesRequest(request, this.client.settings)),
|
|
100
|
+
headers: jsonContentHeaders,
|
|
101
|
+
method: "POST",
|
|
102
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/acls`
|
|
103
|
+
}, unmarshalAddAclRulesResponse);
|
|
104
|
+
this.deleteAclRule = (request) => this.client.fetch({
|
|
105
|
+
method: "DELETE",
|
|
106
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`
|
|
107
|
+
}, unmarshalCluster);
|
|
108
|
+
this.getAclRule = (request) => this.client.fetch({
|
|
109
|
+
method: "GET",
|
|
110
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`
|
|
111
|
+
}, unmarshalACLRule);
|
|
112
|
+
this.setEndpoints = (request) => this.client.fetch({
|
|
113
|
+
body: JSON.stringify(marshalSetEndpointsRequest(request, this.client.settings)),
|
|
114
|
+
headers: jsonContentHeaders,
|
|
115
|
+
method: "PUT",
|
|
116
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/endpoints`
|
|
117
|
+
}, unmarshalSetEndpointsResponse);
|
|
118
|
+
this.addEndpoints = (request) => this.client.fetch({
|
|
119
|
+
body: JSON.stringify(marshalAddEndpointsRequest(request, this.client.settings)),
|
|
120
|
+
headers: jsonContentHeaders,
|
|
121
|
+
method: "POST",
|
|
122
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam("clusterId", request.clusterId)}/endpoints`
|
|
123
|
+
}, unmarshalAddEndpointsResponse);
|
|
124
|
+
this.deleteEndpoint = (request) => this.client.fetch({
|
|
125
|
+
method: "DELETE",
|
|
126
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
127
|
+
}, unmarshalCluster);
|
|
128
|
+
this.getEndpoint = (request) => this.client.fetch({
|
|
129
|
+
method: "GET",
|
|
130
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
131
|
+
}, unmarshalEndpoint);
|
|
132
|
+
this.updateEndpoint = (request) => this.client.fetch({
|
|
133
|
+
body: JSON.stringify(marshalUpdateEndpointRequest(request, this.client.settings)),
|
|
134
|
+
headers: jsonContentHeaders,
|
|
135
|
+
method: "PATCH",
|
|
136
|
+
path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
137
|
+
}, unmarshalEndpoint);
|
|
138
|
+
}
|
|
139
|
+
static {
|
|
140
|
+
this.LOCALITY = toApiLocality({ zones: [
|
|
141
|
+
"fr-par-1",
|
|
142
|
+
"fr-par-2",
|
|
143
|
+
"nl-ams-1",
|
|
144
|
+
"nl-ams-2",
|
|
145
|
+
"pl-waw-1",
|
|
146
|
+
"pl-waw-2"
|
|
147
|
+
] });
|
|
148
|
+
}
|
|
293
149
|
};
|
|
294
150
|
//#endregion
|
|
295
151
|
export { API };
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalTimeSeries } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
3
|
//#region src/v1/marshalling.gen.ts
|
|
4
|
-
|
|
4
|
+
const unmarshalACLRule = (data) => {
|
|
5
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ACLRule' failed as data isn't a dictionary.`);
|
|
6
6
|
return {
|
|
7
7
|
description: data.description,
|
|
@@ -9,7 +9,7 @@ var unmarshalACLRule = (data) => {
|
|
|
9
9
|
ipCidr: data.ip_cidr
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
const unmarshalPrivateNetwork = (data) => {
|
|
13
13
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
|
|
14
14
|
return {
|
|
15
15
|
id: data.id,
|
|
@@ -18,11 +18,11 @@ var unmarshalPrivateNetwork = (data) => {
|
|
|
18
18
|
zone: data.zone
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
const unmarshalPublicNetwork = (data) => {
|
|
22
22
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicNetwork' failed as data isn't a dictionary.`);
|
|
23
23
|
return {};
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const unmarshalEndpoint = (data) => {
|
|
26
26
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
|
|
27
27
|
return {
|
|
28
28
|
id: data.id,
|
|
@@ -32,14 +32,14 @@ var unmarshalEndpoint = (data) => {
|
|
|
32
32
|
publicNetwork: data.public_network ? unmarshalPublicNetwork(data.public_network) : void 0
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
const unmarshalClusterSetting = (data) => {
|
|
36
36
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterSetting' failed as data isn't a dictionary.`);
|
|
37
37
|
return {
|
|
38
38
|
name: data.name,
|
|
39
39
|
value: data.value
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
const unmarshalCluster = (data) => {
|
|
43
43
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`);
|
|
44
44
|
return {
|
|
45
45
|
aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
|
|
@@ -61,29 +61,29 @@ var unmarshalCluster = (data) => {
|
|
|
61
61
|
zone: data.zone
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
const unmarshalAddAclRulesResponse = (data) => {
|
|
65
65
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddAclRulesResponse' failed as data isn't a dictionary.`);
|
|
66
66
|
return {
|
|
67
67
|
aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
|
|
68
68
|
totalCount: data.total_count
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
const unmarshalAddEndpointsResponse = (data) => {
|
|
72
72
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddEndpointsResponse' failed as data isn't a dictionary.`);
|
|
73
73
|
return {
|
|
74
74
|
endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
|
|
75
75
|
totalCount: data.total_count
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
const unmarshalClusterMetricsResponse = (data) => {
|
|
79
79
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterMetricsResponse' failed as data isn't a dictionary.`);
|
|
80
80
|
return { timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries) };
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
const unmarshalClusterSettingsResponse = (data) => {
|
|
83
83
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterSettingsResponse' failed as data isn't a dictionary.`);
|
|
84
84
|
return { settings: unmarshalArrayOfObject(data.settings, unmarshalClusterSetting) };
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
const unmarshalAvailableClusterSetting = (data) => {
|
|
87
87
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AvailableClusterSetting' failed as data isn't a dictionary.`);
|
|
88
88
|
return {
|
|
89
89
|
defaultValue: data.default_value,
|
|
@@ -96,7 +96,7 @@ var unmarshalAvailableClusterSetting = (data) => {
|
|
|
96
96
|
type: data.type
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
const unmarshalClusterVersion = (data) => {
|
|
100
100
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterVersion' failed as data isn't a dictionary.`);
|
|
101
101
|
return {
|
|
102
102
|
availableSettings: unmarshalArrayOfObject(data.available_settings, unmarshalAvailableClusterSetting),
|
|
@@ -106,21 +106,21 @@ var unmarshalClusterVersion = (data) => {
|
|
|
106
106
|
zone: data.zone
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
const unmarshalListClusterVersionsResponse = (data) => {
|
|
110
110
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterVersionsResponse' failed as data isn't a dictionary.`);
|
|
111
111
|
return {
|
|
112
112
|
totalCount: data.total_count,
|
|
113
113
|
versions: unmarshalArrayOfObject(data.versions, unmarshalClusterVersion)
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
const unmarshalListClustersResponse = (data) => {
|
|
117
117
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
|
|
118
118
|
return {
|
|
119
119
|
clusters: unmarshalArrayOfObject(data.clusters, unmarshalCluster),
|
|
120
120
|
totalCount: data.total_count
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
const unmarshalNodeType = (data) => {
|
|
124
124
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`);
|
|
125
125
|
return {
|
|
126
126
|
beta: data.beta,
|
|
@@ -133,47 +133,47 @@ var unmarshalNodeType = (data) => {
|
|
|
133
133
|
zone: data.zone
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
const unmarshalListNodeTypesResponse = (data) => {
|
|
137
137
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`);
|
|
138
138
|
return {
|
|
139
139
|
nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
|
|
140
140
|
totalCount: data.total_count
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
const unmarshalSetAclRulesResponse = (data) => {
|
|
144
144
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclRulesResponse' failed as data isn't a dictionary.`);
|
|
145
145
|
return { aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule) };
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
const unmarshalSetEndpointsResponse = (data) => {
|
|
148
148
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetEndpointsResponse' failed as data isn't a dictionary.`);
|
|
149
149
|
return { endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint) };
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
const marshalACLRuleSpec = (request, defaults) => ({
|
|
152
152
|
description: request.description,
|
|
153
153
|
ip_cidr: request.ipCidr
|
|
154
154
|
});
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
const marshalAddAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
|
|
156
|
+
const marshalClusterSetting = (request, defaults) => ({
|
|
157
157
|
name: request.name,
|
|
158
158
|
value: request.value
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
const marshalAddClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
|
|
161
|
+
const marshalEndpointSpecPrivateNetworkSpecIpamConfig = (request, defaults) => ({});
|
|
162
|
+
const marshalEndpointSpecPrivateNetworkSpec = (request, defaults) => ({
|
|
163
163
|
id: request.id,
|
|
164
164
|
ipam_config: request.ipamConfig !== void 0 ? marshalEndpointSpecPrivateNetworkSpecIpamConfig(request.ipamConfig, defaults) : void 0,
|
|
165
165
|
service_ips: request.serviceIps
|
|
166
166
|
});
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
const marshalEndpointSpecPublicNetworkSpec = (request, defaults) => ({});
|
|
168
|
+
const marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
|
|
169
169
|
param: "private_network",
|
|
170
170
|
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkSpec(request.privateNetwork, defaults) : void 0
|
|
171
171
|
}, {
|
|
172
172
|
param: "public_network",
|
|
173
173
|
value: request.publicNetwork !== void 0 ? marshalEndpointSpecPublicNetworkSpec(request.publicNetwork, defaults) : void 0
|
|
174
174
|
}]) });
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
const marshalAddEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
|
|
176
|
+
const marshalCreateClusterRequest = (request, defaults) => ({
|
|
177
177
|
acl_rules: request.aclRules !== void 0 ? request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) : void 0,
|
|
178
178
|
cluster_settings: request.clusterSettings !== void 0 ? request.clusterSettings.map((elt) => marshalClusterSetting(elt, defaults)) : void 0,
|
|
179
179
|
cluster_size: request.clusterSize,
|
|
@@ -187,7 +187,7 @@ var marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
187
187
|
user_name: request.userName,
|
|
188
188
|
version: request.version
|
|
189
189
|
});
|
|
190
|
-
|
|
190
|
+
const marshalMigrateClusterRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
191
191
|
{
|
|
192
192
|
param: "version",
|
|
193
193
|
value: request.version
|
|
@@ -201,16 +201,16 @@ var marshalMigrateClusterRequest = (request, defaults) => ({ ...resolveOneOf([
|
|
|
201
201
|
value: request.clusterSize
|
|
202
202
|
}
|
|
203
203
|
]) });
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
const marshalSetAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
|
|
205
|
+
const marshalSetClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
|
|
206
|
+
const marshalSetEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
|
|
207
|
+
const marshalUpdateClusterRequest = (request, defaults) => ({
|
|
208
208
|
name: request.name,
|
|
209
209
|
password: request.password,
|
|
210
210
|
tags: request.tags,
|
|
211
211
|
user_name: request.userName
|
|
212
212
|
});
|
|
213
|
-
|
|
213
|
+
const marshalUpdateEndpointRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
214
214
|
param: "private_network",
|
|
215
215
|
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkSpec(request.privateNetwork, defaults) : void 0
|
|
216
216
|
}, {
|
package/dist/v1/metadata.gen.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-redis",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Scaleway SDK redis",
|
|
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,20 @@
|
|
|
27
35
|
},
|
|
28
36
|
"dependencies": {
|
|
29
37
|
"@scaleway/random-name": "5.1.4",
|
|
30
|
-
"@scaleway/sdk-std": "2.
|
|
38
|
+
"@scaleway/sdk-std": "2.4.0"
|
|
31
39
|
},
|
|
32
40
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.
|
|
41
|
+
"@scaleway/sdk-client": "^2.3.0",
|
|
42
|
+
"@repo/configs": "^0.1.1"
|
|
34
43
|
},
|
|
35
44
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.
|
|
45
|
+
"@scaleway/sdk-client": "^2.3.0",
|
|
46
|
+
"@repo/configs": "^0.1.1"
|
|
37
47
|
},
|
|
38
48
|
"scripts": {
|
|
39
49
|
"package:check": "pnpm publint",
|
|
40
|
-
"typecheck": "
|
|
41
|
-
"type:generate": "
|
|
50
|
+
"typecheck": "tsgo --noEmit",
|
|
51
|
+
"type:generate": "tsgo --declaration -p tsconfig.build.json",
|
|
42
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
43
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
44
54
|
}
|
package/LICENSE
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
https://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
Copyright 2019 Scaleway.
|
|
180
|
-
|
|
181
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use this file except in compliance with the License.
|
|
183
|
-
You may obtain a copy of the License at
|
|
184
|
-
|
|
185
|
-
https://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
-
|
|
187
|
-
Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
See the License for the specific language governing permissions and
|
|
191
|
-
limitations under the License.
|