@scaleway/sdk-iot 2.5.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 +6 -6
- package/dist/metadata.gen.js +6 -2
- package/dist/v1/api.gen.d.ts +1 -1
- package/dist/v1/api.gen.js +195 -422
- package/dist/v1/content.gen.js +1 -1
- package/dist/v1/marshalling.gen.js +47 -47
- package/dist/v1/metadata.gen.js +1 -1
- package/package.json +8 -6
- package/LICENSE +0 -191
- package/dist/metadata.gen.json +0 -6
- package/dist/metadata2.gen.js +0 -8
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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 unmarshalDeviceMessageFiltersRule = (data) => {
|
|
5
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeviceMessageFiltersRule' failed as data isn't a dictionary.`);
|
|
6
6
|
return {
|
|
7
7
|
policy: data.policy,
|
|
8
8
|
topics: data.topics
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const unmarshalDeviceMessageFilters = (data) => {
|
|
12
12
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeviceMessageFilters' failed as data isn't a dictionary.`);
|
|
13
13
|
return {
|
|
14
14
|
publish: data.publish ? unmarshalDeviceMessageFiltersRule(data.publish) : void 0,
|
|
15
15
|
subscribe: data.subscribe ? unmarshalDeviceMessageFiltersRule(data.subscribe) : void 0
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
const unmarshalDevice = (data) => {
|
|
19
19
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Device' failed as data isn't a dictionary.`);
|
|
20
20
|
return {
|
|
21
21
|
allowInsecure: data.allow_insecure,
|
|
@@ -34,7 +34,7 @@ var unmarshalDevice = (data) => {
|
|
|
34
34
|
updatedAt: unmarshalDate(data.updated_at)
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
const unmarshalNetwork = (data) => {
|
|
38
38
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Network' failed as data isn't a dictionary.`);
|
|
39
39
|
return {
|
|
40
40
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -47,11 +47,11 @@ var unmarshalNetwork = (data) => {
|
|
|
47
47
|
type: data.type
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
const unmarshalHubTwinsGraphiteConfig = (data) => {
|
|
51
51
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HubTwinsGraphiteConfig' failed as data isn't a dictionary.`);
|
|
52
52
|
return { pushUri: data.push_uri };
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
const unmarshalHub = (data) => {
|
|
55
55
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Hub' failed as data isn't a dictionary.`);
|
|
56
56
|
return {
|
|
57
57
|
connectedDeviceCount: data.connected_device_count,
|
|
@@ -74,68 +74,68 @@ var unmarshalHub = (data) => {
|
|
|
74
74
|
updatedAt: unmarshalDate(data.updated_at)
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
const unmarshalCertificate = (data) => {
|
|
78
78
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Certificate' failed as data isn't a dictionary.`);
|
|
79
79
|
return {
|
|
80
80
|
crt: data.crt,
|
|
81
81
|
key: data.key
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
const unmarshalCreateDeviceResponse = (data) => {
|
|
85
85
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateDeviceResponse' failed as data isn't a dictionary.`);
|
|
86
86
|
return {
|
|
87
87
|
certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
|
|
88
88
|
device: data.device ? unmarshalDevice(data.device) : void 0
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
const unmarshalCreateNetworkResponse = (data) => {
|
|
92
92
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateNetworkResponse' failed as data isn't a dictionary.`);
|
|
93
93
|
return {
|
|
94
94
|
network: data.network ? unmarshalNetwork(data.network) : void 0,
|
|
95
95
|
secret: data.secret
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
const unmarshalGetDeviceCertificateResponse = (data) => {
|
|
99
99
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetDeviceCertificateResponse' failed as data isn't a dictionary.`);
|
|
100
100
|
return {
|
|
101
101
|
certificatePem: data.certificate_pem,
|
|
102
102
|
device: data.device ? unmarshalDevice(data.device) : void 0
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
const unmarshalGetDeviceMetricsResponse = (data) => {
|
|
106
106
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetDeviceMetricsResponse' failed as data isn't a dictionary.`);
|
|
107
107
|
return { metrics: unmarshalArrayOfObject(data.metrics, unmarshalTimeSeries) };
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
const unmarshalGetHubCAResponse = (data) => {
|
|
110
110
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetHubCAResponse' failed as data isn't a dictionary.`);
|
|
111
111
|
return { caCertPem: data.ca_cert_pem };
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
const unmarshalGetHubMetricsResponse = (data) => {
|
|
114
114
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetHubMetricsResponse' failed as data isn't a dictionary.`);
|
|
115
115
|
return { metrics: unmarshalArrayOfObject(data.metrics, unmarshalTimeSeries) };
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
const unmarshalListDevicesResponse = (data) => {
|
|
118
118
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDevicesResponse' failed as data isn't a dictionary.`);
|
|
119
119
|
return {
|
|
120
120
|
devices: unmarshalArrayOfObject(data.devices, unmarshalDevice),
|
|
121
121
|
totalCount: data.total_count
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
const unmarshalListHubsResponse = (data) => {
|
|
125
125
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHubsResponse' failed as data isn't a dictionary.`);
|
|
126
126
|
return {
|
|
127
127
|
hubs: unmarshalArrayOfObject(data.hubs, unmarshalHub),
|
|
128
128
|
totalCount: data.total_count
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
const unmarshalListNetworksResponse = (data) => {
|
|
132
132
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNetworksResponse' failed as data isn't a dictionary.`);
|
|
133
133
|
return {
|
|
134
134
|
networks: unmarshalArrayOfObject(data.networks, unmarshalNetwork),
|
|
135
135
|
totalCount: data.total_count
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
const unmarshalRouteSummary = (data) => {
|
|
139
139
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteSummary' failed as data isn't a dictionary.`);
|
|
140
140
|
return {
|
|
141
141
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -148,29 +148,29 @@ var unmarshalRouteSummary = (data) => {
|
|
|
148
148
|
updatedAt: unmarshalDate(data.updated_at)
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
const unmarshalListRoutesResponse = (data) => {
|
|
152
152
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutesResponse' failed as data isn't a dictionary.`);
|
|
153
153
|
return {
|
|
154
154
|
routes: unmarshalArrayOfObject(data.routes, unmarshalRouteSummary),
|
|
155
155
|
totalCount: data.total_count
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
const unmarshalListTwinDocumentsResponseDocumentSummary = (data) => {
|
|
159
159
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTwinDocumentsResponseDocumentSummary' failed as data isn't a dictionary.`);
|
|
160
160
|
return { documentName: data.document_name };
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
const unmarshalListTwinDocumentsResponse = (data) => {
|
|
163
163
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTwinDocumentsResponse' failed as data isn't a dictionary.`);
|
|
164
164
|
return { documents: unmarshalArrayOfObject(data.documents, unmarshalListTwinDocumentsResponseDocumentSummary) };
|
|
165
165
|
};
|
|
166
|
-
|
|
166
|
+
const unmarshalRenewDeviceCertificateResponse = (data) => {
|
|
167
167
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RenewDeviceCertificateResponse' failed as data isn't a dictionary.`);
|
|
168
168
|
return {
|
|
169
169
|
certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
|
|
170
170
|
device: data.device ? unmarshalDevice(data.device) : void 0
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
|
-
|
|
173
|
+
const unmarshalRouteDatabaseConfig = (data) => {
|
|
174
174
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteDatabaseConfig' failed as data isn't a dictionary.`);
|
|
175
175
|
return {
|
|
176
176
|
dbname: data.dbname,
|
|
@@ -182,7 +182,7 @@ var unmarshalRouteDatabaseConfig = (data) => {
|
|
|
182
182
|
username: data.username
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
const unmarshalRouteRestConfig = (data) => {
|
|
186
186
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteRestConfig' failed as data isn't a dictionary.`);
|
|
187
187
|
return {
|
|
188
188
|
headers: data.headers,
|
|
@@ -190,7 +190,7 @@ var unmarshalRouteRestConfig = (data) => {
|
|
|
190
190
|
verb: data.verb
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
const unmarshalRouteS3Config = (data) => {
|
|
194
194
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteS3Config' failed as data isn't a dictionary.`);
|
|
195
195
|
return {
|
|
196
196
|
bucketName: data.bucket_name,
|
|
@@ -199,7 +199,7 @@ var unmarshalRouteS3Config = (data) => {
|
|
|
199
199
|
strategy: data.strategy
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
const unmarshalRoute = (data) => {
|
|
203
203
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Route' failed as data isn't a dictionary.`);
|
|
204
204
|
return {
|
|
205
205
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -215,14 +215,14 @@ var unmarshalRoute = (data) => {
|
|
|
215
215
|
updatedAt: unmarshalDate(data.updated_at)
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
const unmarshalSetDeviceCertificateResponse = (data) => {
|
|
219
219
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetDeviceCertificateResponse' failed as data isn't a dictionary.`);
|
|
220
220
|
return {
|
|
221
221
|
certificatePem: data.certificate_pem,
|
|
222
222
|
device: data.device ? unmarshalDevice(data.device) : void 0
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
const unmarshalTwinDocument = (data) => {
|
|
226
226
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TwinDocument' failed as data isn't a dictionary.`);
|
|
227
227
|
return {
|
|
228
228
|
data: data.data,
|
|
@@ -231,15 +231,15 @@ var unmarshalTwinDocument = (data) => {
|
|
|
231
231
|
version: data.version
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
const marshalDeviceMessageFiltersRule = (request, defaults) => ({
|
|
235
235
|
policy: request.policy,
|
|
236
236
|
topics: request.topics
|
|
237
237
|
});
|
|
238
|
-
|
|
238
|
+
const marshalDeviceMessageFilters = (request, defaults) => ({
|
|
239
239
|
publish: request.publish !== void 0 ? marshalDeviceMessageFiltersRule(request.publish, defaults) : void 0,
|
|
240
240
|
subscribe: request.subscribe !== void 0 ? marshalDeviceMessageFiltersRule(request.subscribe, defaults) : void 0
|
|
241
241
|
});
|
|
242
|
-
|
|
242
|
+
const marshalCreateDeviceRequest = (request, defaults) => ({
|
|
243
243
|
allow_insecure: request.allowInsecure,
|
|
244
244
|
allow_multiple_connections: request.allowMultipleConnections,
|
|
245
245
|
description: request.description,
|
|
@@ -247,8 +247,8 @@ var marshalCreateDeviceRequest = (request, defaults) => ({
|
|
|
247
247
|
message_filters: request.messageFilters !== void 0 ? marshalDeviceMessageFilters(request.messageFilters, defaults) : void 0,
|
|
248
248
|
name: request.name || randomName("device")
|
|
249
249
|
});
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
const marshalHubTwinsGraphiteConfig = (request, defaults) => ({ push_uri: request.pushUri });
|
|
251
|
+
const marshalCreateHubRequest = (request, defaults) => ({
|
|
252
252
|
disable_events: request.disableEvents,
|
|
253
253
|
events_topic_prefix: request.eventsTopicPrefix,
|
|
254
254
|
name: request.name || randomName("hub"),
|
|
@@ -259,13 +259,13 @@ var marshalCreateHubRequest = (request, defaults) => ({
|
|
|
259
259
|
value: request.twinsGraphiteConfig !== void 0 ? marshalHubTwinsGraphiteConfig(request.twinsGraphiteConfig, defaults) : void 0
|
|
260
260
|
}])
|
|
261
261
|
});
|
|
262
|
-
|
|
262
|
+
const marshalCreateNetworkRequest = (request, defaults) => ({
|
|
263
263
|
hub_id: request.hubId,
|
|
264
264
|
name: request.name || randomName("network"),
|
|
265
265
|
topic_prefix: request.topicPrefix,
|
|
266
266
|
type: request.type
|
|
267
267
|
});
|
|
268
|
-
|
|
268
|
+
const marshalCreateRouteRequestDatabaseConfig = (request, defaults) => ({
|
|
269
269
|
dbname: request.dbname,
|
|
270
270
|
engine: request.engine,
|
|
271
271
|
host: request.host,
|
|
@@ -274,18 +274,18 @@ var marshalCreateRouteRequestDatabaseConfig = (request, defaults) => ({
|
|
|
274
274
|
query: request.query,
|
|
275
275
|
username: request.username
|
|
276
276
|
});
|
|
277
|
-
|
|
277
|
+
const marshalCreateRouteRequestRestConfig = (request, defaults) => ({
|
|
278
278
|
headers: request.headers,
|
|
279
279
|
uri: request.uri,
|
|
280
280
|
verb: request.verb
|
|
281
281
|
});
|
|
282
|
-
|
|
282
|
+
const marshalCreateRouteRequestS3Config = (request, defaults) => ({
|
|
283
283
|
bucket_name: request.bucketName,
|
|
284
284
|
bucket_region: request.bucketRegion,
|
|
285
285
|
object_prefix: request.objectPrefix,
|
|
286
286
|
strategy: request.strategy
|
|
287
287
|
});
|
|
288
|
-
|
|
288
|
+
const marshalCreateRouteRequest = (request, defaults) => ({
|
|
289
289
|
hub_id: request.hubId,
|
|
290
290
|
name: request.name || randomName("route"),
|
|
291
291
|
topic: request.topic,
|
|
@@ -304,27 +304,27 @@ var marshalCreateRouteRequest = (request, defaults) => ({
|
|
|
304
304
|
}
|
|
305
305
|
])
|
|
306
306
|
});
|
|
307
|
-
|
|
307
|
+
const marshalPatchTwinDocumentRequest = (request, defaults) => ({
|
|
308
308
|
data: request.data,
|
|
309
309
|
version: request.version
|
|
310
310
|
});
|
|
311
|
-
|
|
311
|
+
const marshalPutTwinDocumentRequest = (request, defaults) => ({
|
|
312
312
|
data: request.data,
|
|
313
313
|
version: request.version
|
|
314
314
|
});
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
const marshalSetDeviceCertificateRequest = (request, defaults) => ({ certificate_pem: request.certificatePem });
|
|
316
|
+
const marshalSetHubCARequest = (request, defaults) => ({
|
|
317
317
|
ca_cert_pem: request.caCertPem,
|
|
318
318
|
challenge_cert_pem: request.challengeCertPem
|
|
319
319
|
});
|
|
320
|
-
|
|
320
|
+
const marshalUpdateDeviceRequest = (request, defaults) => ({
|
|
321
321
|
allow_insecure: request.allowInsecure,
|
|
322
322
|
allow_multiple_connections: request.allowMultipleConnections,
|
|
323
323
|
description: request.description,
|
|
324
324
|
hub_id: request.hubId,
|
|
325
325
|
message_filters: request.messageFilters !== void 0 ? marshalDeviceMessageFilters(request.messageFilters, defaults) : void 0
|
|
326
326
|
});
|
|
327
|
-
|
|
327
|
+
const marshalUpdateHubRequest = (request, defaults) => ({
|
|
328
328
|
disable_events: request.disableEvents,
|
|
329
329
|
enable_device_auto_provisioning: request.enableDeviceAutoProvisioning,
|
|
330
330
|
events_topic_prefix: request.eventsTopicPrefix,
|
|
@@ -335,7 +335,7 @@ var marshalUpdateHubRequest = (request, defaults) => ({
|
|
|
335
335
|
value: request.twinsGraphiteConfig !== void 0 ? marshalHubTwinsGraphiteConfig(request.twinsGraphiteConfig, defaults) : void 0
|
|
336
336
|
}])
|
|
337
337
|
});
|
|
338
|
-
|
|
338
|
+
const marshalUpdateRouteRequestDatabaseConfig = (request, defaults) => ({
|
|
339
339
|
dbname: request.dbname,
|
|
340
340
|
engine: request.engine,
|
|
341
341
|
host: request.host,
|
|
@@ -344,18 +344,18 @@ var marshalUpdateRouteRequestDatabaseConfig = (request, defaults) => ({
|
|
|
344
344
|
query: request.query,
|
|
345
345
|
username: request.username
|
|
346
346
|
});
|
|
347
|
-
|
|
347
|
+
const marshalUpdateRouteRequestRestConfig = (request, defaults) => ({
|
|
348
348
|
headers: request.headers,
|
|
349
349
|
uri: request.uri,
|
|
350
350
|
verb: request.verb
|
|
351
351
|
});
|
|
352
|
-
|
|
352
|
+
const marshalUpdateRouteRequestS3Config = (request, defaults) => ({
|
|
353
353
|
bucket_name: request.bucketName,
|
|
354
354
|
bucket_region: request.bucketRegion,
|
|
355
355
|
object_prefix: request.objectPrefix,
|
|
356
356
|
strategy: request.strategy
|
|
357
357
|
});
|
|
358
|
-
|
|
358
|
+
const marshalUpdateRouteRequest = (request, defaults) => ({
|
|
359
359
|
name: request.name,
|
|
360
360
|
topic: request.topic,
|
|
361
361
|
...resolveOneOf([
|
package/dist/v1/metadata.gen.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-iot",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Scaleway SDK iot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -35,18 +35,20 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@scaleway/random-name": "5.1.4",
|
|
38
|
-
"@scaleway/sdk-std": "2.
|
|
38
|
+
"@scaleway/sdk-std": "2.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@
|
|
41
|
+
"@repo/configs": "^0.1.1",
|
|
42
|
+
"@scaleway/sdk-client": "^2.3.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@scaleway/sdk-client": "^2.
|
|
45
|
+
"@scaleway/sdk-client": "^2.3.0",
|
|
46
|
+
"@repo/configs": "^0.1.1"
|
|
45
47
|
},
|
|
46
48
|
"scripts": {
|
|
47
49
|
"package:check": "pnpm publint",
|
|
48
|
-
"typecheck": "
|
|
49
|
-
"type:generate": "
|
|
50
|
+
"typecheck": "tsgo --noEmit",
|
|
51
|
+
"type:generate": "tsgo --declaration -p tsconfig.build.json",
|
|
50
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
51
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
52
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.
|
package/dist/metadata.gen.json
DELETED