@scaleway/sdk 2.14.0 → 2.16.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/api/account/v2/marshalling.gen.js +1 -1
- package/dist/api/account/v3/marshalling.gen.js +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -1
- package/dist/api/billing/v2beta1/api.gen.js +9 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/container/v1beta1/api.gen.js +6 -2
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/document_db/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/function/v1beta1/api.gen.js +6 -2
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +1 -1
- package/dist/api/iot/v1/marshalling.gen.js +1 -1
- package/dist/api/jobs/v1alpha1/api.gen.js +3 -3
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +10 -2
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +6 -1
- package/dist/api/k8s/v1/marshalling.gen.js +1 -1
- package/dist/api/lb/v1/marshalling.gen.js +1 -1
- package/dist/api/mnq/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/rdb/v1/marshalling.gen.js +1 -1
- package/dist/api/redis/v1/marshalling.gen.js +1 -1
- package/dist/api/registry/v1/marshalling.gen.js +1 -1
- package/dist/api/vpc/v1/marshalling.gen.js +1 -1
- package/dist/api/vpc/v2/marshalling.gen.js +1 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/index.cjs +41 -11
- package/dist/index.d.ts +107 -64
- package/dist/node_modules/.pnpm/{@scaleway_random-name@4.0.2 → @scaleway_random-name@4.0.3}/node_modules/@scaleway/random-name/dist/index.js +2 -4
- package/dist/scw/constants.js +1 -1
- package/node_modules/@scaleway/random-name/CHANGELOG.md +6 -0
- package/node_modules/@scaleway/random-name/dist/index.js +2 -4
- package/node_modules/@scaleway/random-name/package.json +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -103,6 +103,15 @@ class API extends API$1 {
|
|
|
103
103
|
path: `/billing/v2beta1/discounts`,
|
|
104
104
|
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
105
105
|
}, unmarshalListDiscountsResponse);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* List discounts. List all discounts for your organization and usable
|
|
109
|
+
* categories, products, offers, references, regions and zones where the
|
|
110
|
+
* discount can be applied.
|
|
111
|
+
*
|
|
112
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
113
|
+
* @returns A Promise of ListDiscountsResponse
|
|
114
|
+
*/
|
|
106
115
|
listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
|
|
107
116
|
}
|
|
108
117
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -248,9 +248,13 @@ class API extends API$1 {
|
|
|
248
248
|
}, unmarshalListLogsResponse);
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
252
|
-
*
|
|
251
|
+
* Deprecated (replaced by
|
|
252
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
|
|
253
|
+
* container logs. Deprecated (replaced by
|
|
254
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
255
|
+
* logs of the container with the specified ID.
|
|
253
256
|
*
|
|
257
|
+
* @deprecated
|
|
254
258
|
* @param request - The request {@link ListLogsRequest}
|
|
255
259
|
* @returns A Promise of ListLogsResponse
|
|
256
260
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -288,9 +288,13 @@ class API extends API$1 {
|
|
|
288
288
|
}, unmarshalListLogsResponse);
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
292
|
-
*
|
|
291
|
+
* Deprecated (replaced by
|
|
292
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
|
|
293
|
+
* application logs. Deprecated (replaced by
|
|
294
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
295
|
+
* application logs of the function with the specified ID.
|
|
293
296
|
*
|
|
297
|
+
* @deprecated
|
|
294
298
|
* @param request - The request {@link ListLogsRequest}
|
|
295
299
|
* @returns A Promise of ListLogsResponse
|
|
296
300
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
|
-
import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalJobRun, unmarshalListJobRunsResponse } from './marshalling.gen.js';
|
|
4
|
+
import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, unmarshalJobRun, unmarshalListJobRunsResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
7
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -80,14 +80,14 @@ class API extends API$1 {
|
|
|
80
80
|
* new job run.
|
|
81
81
|
*
|
|
82
82
|
* @param request - The request {@link StartJobDefinitionRequest}
|
|
83
|
-
* @returns A Promise of
|
|
83
|
+
* @returns A Promise of StartJobDefinitionResponse
|
|
84
84
|
*/
|
|
85
85
|
startJobDefinition = request => this.client.fetch({
|
|
86
86
|
body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
|
|
87
87
|
headers: jsonContentHeaders,
|
|
88
88
|
method: 'POST',
|
|
89
89
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
|
|
90
|
-
},
|
|
90
|
+
}, unmarshalStartJobDefinitionResponse);
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Get a job run by its unique identifier.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -73,6 +73,14 @@ const unmarshalListJobRunsResponse = data => {
|
|
|
73
73
|
totalCount: data.total_count
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
+
const unmarshalStartJobDefinitionResponse = data => {
|
|
77
|
+
if (!isJSONObject(data)) {
|
|
78
|
+
throw new TypeError(`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`);
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun)
|
|
82
|
+
};
|
|
83
|
+
};
|
|
76
84
|
const marshalCreateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
|
|
77
85
|
schedule: request.schedule,
|
|
78
86
|
timezone: request.timezone
|
|
@@ -110,4 +118,4 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
|
|
|
110
118
|
name: request.name
|
|
111
119
|
});
|
|
112
120
|
|
|
113
|
-
export { marshalCreateJobDefinitionRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, unmarshalJobDefinition, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobRunsResponse };
|
|
121
|
+
export { marshalCreateJobDefinitionRequest, marshalStartJobDefinitionRequest, marshalUpdateJobDefinitionRequest, unmarshalJobDefinition, unmarshalJobRun, unmarshalListJobDefinitionsResponse, unmarshalListJobRunsResponse, unmarshalStartJobDefinitionResponse };
|
|
@@ -53,6 +53,11 @@ const ListJobRunsRequest = {
|
|
|
53
53
|
lessThanOrEqual: 1000
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
+
const StartJobDefinitionRequest = {
|
|
57
|
+
replicas: {
|
|
58
|
+
greaterThan: 0
|
|
59
|
+
}
|
|
60
|
+
};
|
|
56
61
|
const UpdateJobDefinitionRequest = {
|
|
57
62
|
cpuLimit: {
|
|
58
63
|
greaterThan: 0
|
|
@@ -78,4 +83,4 @@ const UpdateJobDefinitionRequestCronScheduleConfig = {
|
|
|
78
83
|
}
|
|
79
84
|
};
|
|
80
85
|
|
|
81
|
-
export { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, ListJobDefinitionsRequest, ListJobRunsRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig };
|
|
86
|
+
export { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, ListJobDefinitionsRequest, ListJobRunsRequest, StartJobDefinitionRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -155,6 +155,7 @@ const unmarshalListOffersResponse = data => {
|
|
|
155
155
|
const marshalCreateHostingRequest = (request, defaults) => ({
|
|
156
156
|
domain: request.domain,
|
|
157
157
|
email: request.email,
|
|
158
|
+
language: request.language,
|
|
158
159
|
offer_id: request.offerId,
|
|
159
160
|
option_ids: request.optionIds,
|
|
160
161
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v2.
|
|
500
|
+
const version = 'v2.15.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -2023,10 +2023,8 @@ const enrichForPagination = (key, fetcher, request) => {
|
|
|
2023
2023
|
};
|
|
2024
2024
|
|
|
2025
2025
|
const ADJECTIVES = ['admiring', 'adoring', 'affectionate', 'agitated', 'amazing', 'angry', 'awesome', 'beautiful', 'blissful', 'bold', 'boring', 'brave', 'busy', 'charming', 'clever', 'cool', 'compassionate', 'competent', 'condescending', 'confident', 'cranky', 'crazy', 'dazzling', 'determined', 'distracted', 'dreamy', 'eager', 'ecstatic', 'elastic', 'elated', 'elegant', 'eloquent', 'epic', 'exciting', 'fervent', 'festive', 'flamboyant', 'focused', 'friendly', 'frosty', 'funny', 'gallant', 'gifted', 'goofy', 'gracious', 'great', 'happy', 'hardcore', 'heuristic', 'hopeful', 'hungry', 'infallible', 'inspiring', 'interesting', 'intelligent', 'jolly', 'jovial', 'keen', 'kind', 'laughing', 'loving', 'lucid', 'magical', 'mystifying', 'modest', 'musing', 'naughty', 'nervous', 'nice', 'nifty', 'nostalgic', 'objective', 'optimistic', 'peaceful', 'pedantic', 'pensive', 'practical', 'priceless', 'quirky', 'quizzical', 'recursing', 'relaxed', 'reverent', 'romantic', 'sad', 'serene', 'sharp', 'silly', 'sleepy', 'stoic', 'strange', 'stupefied', 'suspicious', 'sweet', 'tender', 'thirsty', 'trusting', 'unruffled', 'upbeat', 'vibrant', 'vigilant', 'vigorous', 'wizardly', 'wonderful', 'xenodochial', 'youthful', 'zealous', 'zen'];
|
|
2026
|
-
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
2027
|
-
const randomName =
|
|
2028
|
-
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2029
|
-
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';
|
|
2026
|
+
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'niel', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
2027
|
+
const randomName = (prefix = '', separator = '-') => {
|
|
2030
2028
|
const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)] ?? ''}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)] ?? ''}`;
|
|
2031
2029
|
if (name === `boring${separator}wozniak`) {
|
|
2032
2030
|
return randomName(prefix, separator);
|
|
@@ -4031,6 +4029,15 @@ let API$s = class API extends API$x {
|
|
|
4031
4029
|
path: `/billing/v2beta1/discounts`,
|
|
4032
4030
|
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
4033
4031
|
}, unmarshalListDiscountsResponse);
|
|
4032
|
+
|
|
4033
|
+
/**
|
|
4034
|
+
* List discounts. List all discounts for your organization and usable
|
|
4035
|
+
* categories, products, offers, references, regions and zones where the
|
|
4036
|
+
* discount can be applied.
|
|
4037
|
+
*
|
|
4038
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
4039
|
+
* @returns A Promise of ListDiscountsResponse
|
|
4040
|
+
*/
|
|
4034
4041
|
listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
|
|
4035
4042
|
};
|
|
4036
4043
|
|
|
@@ -5739,9 +5746,13 @@ let API$p = class API extends API$x {
|
|
|
5739
5746
|
}, unmarshalListLogsResponse$2);
|
|
5740
5747
|
|
|
5741
5748
|
/**
|
|
5742
|
-
*
|
|
5743
|
-
*
|
|
5749
|
+
* Deprecated (replaced by
|
|
5750
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
|
|
5751
|
+
* container logs. Deprecated (replaced by
|
|
5752
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
5753
|
+
* logs of the container with the specified ID.
|
|
5744
5754
|
*
|
|
5755
|
+
* @deprecated
|
|
5745
5756
|
* @param request - The request {@link ListLogsRequest}
|
|
5746
5757
|
* @returns A Promise of ListLogsResponse
|
|
5747
5758
|
*/
|
|
@@ -10504,9 +10515,13 @@ let API$l = class API extends API$x {
|
|
|
10504
10515
|
}, unmarshalListLogsResponse$1);
|
|
10505
10516
|
|
|
10506
10517
|
/**
|
|
10507
|
-
*
|
|
10508
|
-
*
|
|
10518
|
+
* Deprecated (replaced by
|
|
10519
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
|
|
10520
|
+
* application logs. Deprecated (replaced by
|
|
10521
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
10522
|
+
* application logs of the function with the specified ID.
|
|
10509
10523
|
*
|
|
10524
|
+
* @deprecated
|
|
10510
10525
|
* @param request - The request {@link ListLogsRequest}
|
|
10511
10526
|
* @returns A Promise of ListLogsResponse
|
|
10512
10527
|
*/
|
|
@@ -16492,6 +16507,14 @@ const unmarshalListJobRunsResponse = data => {
|
|
|
16492
16507
|
totalCount: data.total_count
|
|
16493
16508
|
};
|
|
16494
16509
|
};
|
|
16510
|
+
const unmarshalStartJobDefinitionResponse = data => {
|
|
16511
|
+
if (!isJSONObject(data)) {
|
|
16512
|
+
throw new TypeError(`Unmarshalling the type 'StartJobDefinitionResponse' failed as data isn't a dictionary.`);
|
|
16513
|
+
}
|
|
16514
|
+
return {
|
|
16515
|
+
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun)
|
|
16516
|
+
};
|
|
16517
|
+
};
|
|
16495
16518
|
const marshalCreateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
|
|
16496
16519
|
schedule: request.schedule,
|
|
16497
16520
|
timezone: request.timezone
|
|
@@ -16606,14 +16629,14 @@ let API$f = class API extends API$x {
|
|
|
16606
16629
|
* new job run.
|
|
16607
16630
|
*
|
|
16608
16631
|
* @param request - The request {@link StartJobDefinitionRequest}
|
|
16609
|
-
* @returns A Promise of
|
|
16632
|
+
* @returns A Promise of StartJobDefinitionResponse
|
|
16610
16633
|
*/
|
|
16611
16634
|
startJobDefinition = request => this.client.fetch({
|
|
16612
16635
|
body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
|
|
16613
16636
|
headers: jsonContentHeaders$e,
|
|
16614
16637
|
method: 'POST',
|
|
16615
16638
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
|
|
16616
|
-
},
|
|
16639
|
+
}, unmarshalStartJobDefinitionResponse);
|
|
16617
16640
|
|
|
16618
16641
|
/**
|
|
16619
16642
|
* Get a job run by its unique identifier.
|
|
@@ -16714,6 +16737,11 @@ const ListJobRunsRequest = {
|
|
|
16714
16737
|
lessThanOrEqual: 1000
|
|
16715
16738
|
}
|
|
16716
16739
|
};
|
|
16740
|
+
const StartJobDefinitionRequest = {
|
|
16741
|
+
replicas: {
|
|
16742
|
+
greaterThan: 0
|
|
16743
|
+
}
|
|
16744
|
+
};
|
|
16717
16745
|
const UpdateJobDefinitionRequest = {
|
|
16718
16746
|
cpuLimit: {
|
|
16719
16747
|
greaterThan: 0
|
|
@@ -16746,6 +16774,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
16746
16774
|
CronSchedule: CronSchedule,
|
|
16747
16775
|
ListJobDefinitionsRequest: ListJobDefinitionsRequest,
|
|
16748
16776
|
ListJobRunsRequest: ListJobRunsRequest,
|
|
16777
|
+
StartJobDefinitionRequest: StartJobDefinitionRequest,
|
|
16749
16778
|
UpdateJobDefinitionRequest: UpdateJobDefinitionRequest,
|
|
16750
16779
|
UpdateJobDefinitionRequestCronScheduleConfig: UpdateJobDefinitionRequestCronScheduleConfig
|
|
16751
16780
|
});
|
|
@@ -27191,6 +27220,7 @@ const unmarshalListOffersResponse = data => {
|
|
|
27191
27220
|
const marshalCreateHostingRequest = (request, defaults) => ({
|
|
27192
27221
|
domain: request.domain,
|
|
27193
27222
|
email: request.email,
|
|
27223
|
+
language: request.language,
|
|
27194
27224
|
offer_id: request.offerId,
|
|
27195
27225
|
option_ids: request.optionIds,
|
|
27196
27226
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
package/dist/index.d.ts
CHANGED
|
@@ -219,8 +219,19 @@ declare const setLogger: (logger: Readonly<Logger>) => void;
|
|
|
219
219
|
*/
|
|
220
220
|
declare const enableConsoleLogger: (logLevel?: LogLevel, prefix?: string) => void;
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
type
|
|
222
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
223
|
+
type Region = 'fr-par' | 'nl-ams' | 'pl-waw' | (string & {})
|
|
224
|
+
|
|
225
|
+
type Zone =
|
|
226
|
+
| 'fr-par-1'
|
|
227
|
+
| 'fr-par-2'
|
|
228
|
+
| 'fr-par-3'
|
|
229
|
+
| 'nl-ams-1'
|
|
230
|
+
| 'nl-ams-2'
|
|
231
|
+
| 'nl-ams-3'
|
|
232
|
+
| 'pl-waw-1'
|
|
233
|
+
| 'pl-waw-2'
|
|
234
|
+
| (string & {})
|
|
224
235
|
|
|
225
236
|
/**
|
|
226
237
|
* Holds access key and secret key.
|
|
@@ -439,20 +450,21 @@ declare const withAdditionalInterceptors: (interceptors: NetworkInterceptors[])
|
|
|
439
450
|
|
|
440
451
|
/** Scaleway Request. */
|
|
441
452
|
type ScwRequest = {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}
|
|
453
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
|
|
454
|
+
path: string
|
|
455
|
+
headers?: Record<string, string>
|
|
456
|
+
body?: string
|
|
457
|
+
urlParams?: URLSearchParams
|
|
458
|
+
responseType?: 'json' | 'text' | 'blob'
|
|
459
|
+
}
|
|
460
|
+
|
|
449
461
|
/**
|
|
450
462
|
* A factory to unmarshal a response.
|
|
451
463
|
*
|
|
452
464
|
* @param obj - The input object.
|
|
453
465
|
* @returns The output object
|
|
454
466
|
*/
|
|
455
|
-
type ResponseUnmarshaller<T> = (obj: unknown) => T
|
|
467
|
+
type ResponseUnmarshaller<T> = (obj: unknown) => T
|
|
456
468
|
|
|
457
469
|
type Fetcher = <T>(request: Readonly<ScwRequest>, unwrapper?: ResponseUnmarshaller<T>) => Promise<T>;
|
|
458
470
|
|
|
@@ -533,62 +545,66 @@ declare const createClient: (profile?: Profile) => Client;
|
|
|
533
545
|
* @internal
|
|
534
546
|
*/
|
|
535
547
|
interface ServiceInfo {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
548
|
+
/** Name of the API */
|
|
549
|
+
name: string
|
|
550
|
+
/** Human readable description for the API. */
|
|
551
|
+
description: string
|
|
552
|
+
/** Version of the API. */
|
|
553
|
+
version: string
|
|
554
|
+
/** Web url where the documentation of the API can be found. */
|
|
555
|
+
documentationUrl?: string
|
|
544
556
|
}
|
|
557
|
+
|
|
545
558
|
/**
|
|
546
559
|
* Represents an amount of money with its currency type.
|
|
547
560
|
*/
|
|
548
561
|
interface Money {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
562
|
+
/** 3-letter currency code defined in ISO 4217. */
|
|
563
|
+
currencyCode: string
|
|
564
|
+
/**
|
|
565
|
+
* Whole units of the amount.
|
|
566
|
+
*
|
|
567
|
+
* For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
568
|
+
*/
|
|
569
|
+
units: number
|
|
570
|
+
/**
|
|
571
|
+
* Number of nano (10^-9) units of the amount.
|
|
572
|
+
*
|
|
573
|
+
* The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
574
|
+
* If `units` is positive, `nanos` must be positive or zero.
|
|
575
|
+
* If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
576
|
+
* If `units` is negative, `nanos` must be negative or zero.
|
|
577
|
+
* For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
578
|
+
*/
|
|
579
|
+
nanos: number
|
|
567
580
|
}
|
|
581
|
+
|
|
568
582
|
/** Represents a point in a TimeSeries. */
|
|
569
583
|
interface TimeSeriesPoint {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
584
|
+
/** Date of the point. */
|
|
585
|
+
timestamp?: Date
|
|
586
|
+
/** Value of the point. */
|
|
587
|
+
value: number
|
|
574
588
|
}
|
|
589
|
+
|
|
575
590
|
/** Represents a time series that could be used for graph purposes. */
|
|
576
591
|
interface TimeSeries {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
592
|
+
/** Name of the metric. */
|
|
593
|
+
name: string
|
|
594
|
+
/** Points contains all the points that composed the series. */
|
|
595
|
+
points: TimeSeriesPoint[]
|
|
596
|
+
/** Metadata contains some string metadata related to a metric. */
|
|
597
|
+
metadata: Record<string, string>
|
|
583
598
|
}
|
|
599
|
+
|
|
584
600
|
/** Represents a Scaleway file. */
|
|
585
601
|
interface ScwFile {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
602
|
+
/** Name of the file. */
|
|
603
|
+
name: string
|
|
604
|
+
/** Content-type of the file. */
|
|
605
|
+
contentType: string
|
|
606
|
+
/** Content of the file in base64. */
|
|
607
|
+
content: string
|
|
592
608
|
}
|
|
593
609
|
|
|
594
610
|
type JSON = string | number | boolean | null | JSON[] | {
|
|
@@ -3384,6 +3400,14 @@ declare class API$s extends API$x {
|
|
|
3384
3400
|
*/
|
|
3385
3401
|
downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
|
|
3386
3402
|
protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
|
|
3403
|
+
/**
|
|
3404
|
+
* List discounts. List all discounts for your organization and usable
|
|
3405
|
+
* categories, products, offers, references, regions and zones where the
|
|
3406
|
+
* discount can be applied.
|
|
3407
|
+
*
|
|
3408
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
3409
|
+
* @returns A Promise of ListDiscountsResponse
|
|
3410
|
+
*/
|
|
3387
3411
|
listDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse> & {
|
|
3388
3412
|
all: () => Promise<Discount[]>;
|
|
3389
3413
|
[Symbol.asyncIterator]: () => AsyncGenerator<Discount[], void, void>;
|
|
@@ -5597,9 +5621,13 @@ declare class API$p extends API$x {
|
|
|
5597
5621
|
deleteCron: (request: Readonly<DeleteCronRequest$1>) => Promise<Cron$1>;
|
|
5598
5622
|
protected pageOfListLogs: (request: Readonly<ListLogsRequest$3>) => Promise<ListLogsResponse$2>;
|
|
5599
5623
|
/**
|
|
5600
|
-
*
|
|
5601
|
-
*
|
|
5624
|
+
* Deprecated (replaced by
|
|
5625
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your
|
|
5626
|
+
* container logs. Deprecated (replaced by
|
|
5627
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
5628
|
+
* logs of the container with the specified ID.
|
|
5602
5629
|
*
|
|
5630
|
+
* @deprecated
|
|
5603
5631
|
* @param request - The request {@link ListLogsRequest}
|
|
5604
5632
|
* @returns A Promise of ListLogsResponse
|
|
5605
5633
|
*/
|
|
@@ -10788,9 +10816,13 @@ declare class API$l extends API$x {
|
|
|
10788
10816
|
deleteCron: (request: Readonly<DeleteCronRequest>) => Promise<Cron>;
|
|
10789
10817
|
protected pageOfListLogs: (request: Readonly<ListLogsRequest$2>) => Promise<ListLogsResponse$1>;
|
|
10790
10818
|
/**
|
|
10791
|
-
*
|
|
10792
|
-
*
|
|
10819
|
+
* Deprecated (replaced by
|
|
10820
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List
|
|
10821
|
+
* application logs. Deprecated (replaced by
|
|
10822
|
+
* [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the
|
|
10823
|
+
* application logs of the function with the specified ID.
|
|
10793
10824
|
*
|
|
10825
|
+
* @deprecated
|
|
10794
10826
|
* @param request - The request {@link ListLogsRequest}
|
|
10795
10827
|
* @returns A Promise of ListLogsResponse
|
|
10796
10828
|
*/
|
|
@@ -16829,7 +16861,7 @@ declare namespace index$j {
|
|
|
16829
16861
|
}
|
|
16830
16862
|
|
|
16831
16863
|
type ListIPsRequestOrderBy$1 = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'attached_at_desc' | 'attached_at_asc';
|
|
16832
|
-
type ResourceType = 'unknown_type' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic';
|
|
16864
|
+
type ResourceType = 'unknown_type' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic' | 'llm_deployment';
|
|
16833
16865
|
interface Resource {
|
|
16834
16866
|
/** Type of resource the IP is attached to. */
|
|
16835
16867
|
type: ResourceType;
|
|
@@ -17669,7 +17701,7 @@ declare namespace index$h {
|
|
|
17669
17701
|
export { index_gen$g as v1alpha1 };
|
|
17670
17702
|
}
|
|
17671
17703
|
|
|
17672
|
-
type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succeeded' | 'failed' | 'canceled';
|
|
17704
|
+
type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'internal_error';
|
|
17673
17705
|
type ListJobDefinitionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
17674
17706
|
type ListJobRunsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
17675
17707
|
interface CronSchedule$1 {
|
|
@@ -17808,7 +17840,7 @@ interface ListJobRunsResponse {
|
|
|
17808
17840
|
jobRuns: JobRun[];
|
|
17809
17841
|
totalCount: number;
|
|
17810
17842
|
}
|
|
17811
|
-
type StartJobDefinitionRequest = {
|
|
17843
|
+
type StartJobDefinitionRequest$1 = {
|
|
17812
17844
|
/**
|
|
17813
17845
|
* Region to target. If none is passed will use default region from the
|
|
17814
17846
|
* config.
|
|
@@ -17823,6 +17855,9 @@ type StartJobDefinitionRequest = {
|
|
|
17823
17855
|
/** Number of jobs to run. */
|
|
17824
17856
|
replicas?: number;
|
|
17825
17857
|
};
|
|
17858
|
+
interface StartJobDefinitionResponse {
|
|
17859
|
+
jobRuns: JobRun[];
|
|
17860
|
+
}
|
|
17826
17861
|
type StopJobRunRequest = {
|
|
17827
17862
|
/**
|
|
17828
17863
|
* Region to target. If none is passed will use default region from the
|
|
@@ -17907,9 +17942,9 @@ declare class API$f extends API$x {
|
|
|
17907
17942
|
* new job run.
|
|
17908
17943
|
*
|
|
17909
17944
|
* @param request - The request {@link StartJobDefinitionRequest}
|
|
17910
|
-
* @returns A Promise of
|
|
17945
|
+
* @returns A Promise of StartJobDefinitionResponse
|
|
17911
17946
|
*/
|
|
17912
|
-
startJobDefinition: (request: Readonly<StartJobDefinitionRequest>) => Promise<
|
|
17947
|
+
startJobDefinition: (request: Readonly<StartJobDefinitionRequest$1>) => Promise<StartJobDefinitionResponse>;
|
|
17913
17948
|
/**
|
|
17914
17949
|
* Get a job run by its unique identifier.
|
|
17915
17950
|
*
|
|
@@ -17992,6 +18027,11 @@ declare const ListJobRunsRequest: {
|
|
|
17992
18027
|
lessThanOrEqual: number;
|
|
17993
18028
|
};
|
|
17994
18029
|
};
|
|
18030
|
+
declare const StartJobDefinitionRequest: {
|
|
18031
|
+
replicas: {
|
|
18032
|
+
greaterThan: number;
|
|
18033
|
+
};
|
|
18034
|
+
};
|
|
17995
18035
|
declare const UpdateJobDefinitionRequest: {
|
|
17996
18036
|
cpuLimit: {
|
|
17997
18037
|
greaterThan: number;
|
|
@@ -18022,10 +18062,11 @@ declare const validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig
|
|
|
18022
18062
|
declare const validationRules_gen$5_CronSchedule: typeof CronSchedule;
|
|
18023
18063
|
declare const validationRules_gen$5_ListJobDefinitionsRequest: typeof ListJobDefinitionsRequest;
|
|
18024
18064
|
declare const validationRules_gen$5_ListJobRunsRequest: typeof ListJobRunsRequest;
|
|
18065
|
+
declare const validationRules_gen$5_StartJobDefinitionRequest: typeof StartJobDefinitionRequest;
|
|
18025
18066
|
declare const validationRules_gen$5_UpdateJobDefinitionRequest: typeof UpdateJobDefinitionRequest;
|
|
18026
18067
|
declare const validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig: typeof UpdateJobDefinitionRequestCronScheduleConfig;
|
|
18027
18068
|
declare namespace validationRules_gen$5 {
|
|
18028
|
-
export { validationRules_gen$5_CreateJobDefinitionRequest as CreateJobDefinitionRequest, validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig as CreateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5_CronSchedule as CronSchedule, validationRules_gen$5_ListJobDefinitionsRequest as ListJobDefinitionsRequest, validationRules_gen$5_ListJobRunsRequest as ListJobRunsRequest, validationRules_gen$5_UpdateJobDefinitionRequest as UpdateJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig as UpdateJobDefinitionRequestCronScheduleConfig };
|
|
18069
|
+
export { validationRules_gen$5_CreateJobDefinitionRequest as CreateJobDefinitionRequest, validationRules_gen$5_CreateJobDefinitionRequestCronScheduleConfig as CreateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5_CronSchedule as CronSchedule, validationRules_gen$5_ListJobDefinitionsRequest as ListJobDefinitionsRequest, validationRules_gen$5_ListJobRunsRequest as ListJobRunsRequest, validationRules_gen$5_StartJobDefinitionRequest as StartJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequest as UpdateJobDefinitionRequest, validationRules_gen$5_UpdateJobDefinitionRequestCronScheduleConfig as UpdateJobDefinitionRequestCronScheduleConfig };
|
|
18029
18070
|
}
|
|
18030
18071
|
|
|
18031
18072
|
type index_gen$f_DeleteJobDefinitionRequest = DeleteJobDefinitionRequest;
|
|
@@ -18039,10 +18080,10 @@ type index_gen$f_ListJobDefinitionsRequestOrderBy = ListJobDefinitionsRequestOrd
|
|
|
18039
18080
|
type index_gen$f_ListJobDefinitionsResponse = ListJobDefinitionsResponse;
|
|
18040
18081
|
type index_gen$f_ListJobRunsRequestOrderBy = ListJobRunsRequestOrderBy;
|
|
18041
18082
|
type index_gen$f_ListJobRunsResponse = ListJobRunsResponse;
|
|
18042
|
-
type index_gen$
|
|
18083
|
+
type index_gen$f_StartJobDefinitionResponse = StartJobDefinitionResponse;
|
|
18043
18084
|
type index_gen$f_StopJobRunRequest = StopJobRunRequest;
|
|
18044
18085
|
declare namespace index_gen$f {
|
|
18045
|
-
export { API$f as API, type CreateJobDefinitionRequest$1 as CreateJobDefinitionRequest, type CreateJobDefinitionRequestCronScheduleConfig$1 as CreateJobDefinitionRequestCronScheduleConfig, type CronSchedule$1 as CronSchedule, type index_gen$f_DeleteJobDefinitionRequest as DeleteJobDefinitionRequest, type index_gen$f_GetJobDefinitionRequest as GetJobDefinitionRequest, type index_gen$f_GetJobRunRequest as GetJobRunRequest, index_gen$f_JOB_RUN_TRANSIENT_STATUSES as JOB_RUN_TRANSIENT_STATUSES, type index_gen$f_JobDefinition as JobDefinition, type index_gen$f_JobRun as JobRun, type index_gen$f_JobRunState as JobRunState, type ListJobDefinitionsRequest$1 as ListJobDefinitionsRequest, type index_gen$f_ListJobDefinitionsRequestOrderBy as ListJobDefinitionsRequestOrderBy, type index_gen$f_ListJobDefinitionsResponse as ListJobDefinitionsResponse, type ListJobRunsRequest$1 as ListJobRunsRequest, type index_gen$f_ListJobRunsRequestOrderBy as ListJobRunsRequestOrderBy, type index_gen$f_ListJobRunsResponse as ListJobRunsResponse, type
|
|
18086
|
+
export { API$f as API, type CreateJobDefinitionRequest$1 as CreateJobDefinitionRequest, type CreateJobDefinitionRequestCronScheduleConfig$1 as CreateJobDefinitionRequestCronScheduleConfig, type CronSchedule$1 as CronSchedule, type index_gen$f_DeleteJobDefinitionRequest as DeleteJobDefinitionRequest, type index_gen$f_GetJobDefinitionRequest as GetJobDefinitionRequest, type index_gen$f_GetJobRunRequest as GetJobRunRequest, index_gen$f_JOB_RUN_TRANSIENT_STATUSES as JOB_RUN_TRANSIENT_STATUSES, type index_gen$f_JobDefinition as JobDefinition, type index_gen$f_JobRun as JobRun, type index_gen$f_JobRunState as JobRunState, type ListJobDefinitionsRequest$1 as ListJobDefinitionsRequest, type index_gen$f_ListJobDefinitionsRequestOrderBy as ListJobDefinitionsRequestOrderBy, type index_gen$f_ListJobDefinitionsResponse as ListJobDefinitionsResponse, type ListJobRunsRequest$1 as ListJobRunsRequest, type index_gen$f_ListJobRunsRequestOrderBy as ListJobRunsRequestOrderBy, type index_gen$f_ListJobRunsResponse as ListJobRunsResponse, type StartJobDefinitionRequest$1 as StartJobDefinitionRequest, type index_gen$f_StartJobDefinitionResponse as StartJobDefinitionResponse, type index_gen$f_StopJobRunRequest as StopJobRunRequest, type UpdateJobDefinitionRequest$1 as UpdateJobDefinitionRequest, type UpdateJobDefinitionRequestCronScheduleConfig$1 as UpdateJobDefinitionRequestCronScheduleConfig, validationRules_gen$5 as ValidationRules };
|
|
18046
18087
|
}
|
|
18047
18088
|
|
|
18048
18089
|
declare namespace index$g {
|
|
@@ -32408,6 +32449,8 @@ type CreateHostingRequest = {
|
|
|
32408
32449
|
domain: string;
|
|
32409
32450
|
/** IDs of any selected additional options for the Web Hosting plan. */
|
|
32410
32451
|
optionIds?: string[];
|
|
32452
|
+
/** Default language for the control panel interface. */
|
|
32453
|
+
language?: LanguageCode;
|
|
32411
32454
|
};
|
|
32412
32455
|
type DeleteHostingRequest = {
|
|
32413
32456
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
const ADJECTIVES = ['admiring', 'adoring', 'affectionate', 'agitated', 'amazing', 'angry', 'awesome', 'beautiful', 'blissful', 'bold', 'boring', 'brave', 'busy', 'charming', 'clever', 'cool', 'compassionate', 'competent', 'condescending', 'confident', 'cranky', 'crazy', 'dazzling', 'determined', 'distracted', 'dreamy', 'eager', 'ecstatic', 'elastic', 'elated', 'elegant', 'eloquent', 'epic', 'exciting', 'fervent', 'festive', 'flamboyant', 'focused', 'friendly', 'frosty', 'funny', 'gallant', 'gifted', 'goofy', 'gracious', 'great', 'happy', 'hardcore', 'heuristic', 'hopeful', 'hungry', 'infallible', 'inspiring', 'interesting', 'intelligent', 'jolly', 'jovial', 'keen', 'kind', 'laughing', 'loving', 'lucid', 'magical', 'mystifying', 'modest', 'musing', 'naughty', 'nervous', 'nice', 'nifty', 'nostalgic', 'objective', 'optimistic', 'peaceful', 'pedantic', 'pensive', 'practical', 'priceless', 'quirky', 'quizzical', 'recursing', 'relaxed', 'reverent', 'romantic', 'sad', 'serene', 'sharp', 'silly', 'sleepy', 'stoic', 'strange', 'stupefied', 'suspicious', 'sweet', 'tender', 'thirsty', 'trusting', 'unruffled', 'upbeat', 'vibrant', 'vigilant', 'vigorous', 'wizardly', 'wonderful', 'xenodochial', 'youthful', 'zealous', 'zen'];
|
|
2
|
-
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
3
|
-
const randomName =
|
|
4
|
-
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
5
|
-
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';
|
|
2
|
+
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'niel', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
3
|
+
const randomName = (prefix = '', separator = '-') => {
|
|
6
4
|
const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)] ?? ''}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)] ?? ''}`;
|
|
7
5
|
if (name === `boring${separator}wozniak`) {
|
|
8
6
|
return randomName(prefix, separator);
|
package/dist/scw/constants.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1804](https://github.com/scaleway/scaleway-lib/pull/1804) [`202edf7`](https://github.com/scaleway/scaleway-lib/commit/202edf7d334dd4a4bc8971a098e48dc0eb024476) Thanks [@cyclimse](https://github.com/cyclimse)! - Add Xavier Niel on random name
|
|
8
|
+
|
|
3
9
|
## 4.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
const ADJECTIVES = ['admiring', 'adoring', 'affectionate', 'agitated', 'amazing', 'angry', 'awesome', 'beautiful', 'blissful', 'bold', 'boring', 'brave', 'busy', 'charming', 'clever', 'cool', 'compassionate', 'competent', 'condescending', 'confident', 'cranky', 'crazy', 'dazzling', 'determined', 'distracted', 'dreamy', 'eager', 'ecstatic', 'elastic', 'elated', 'elegant', 'eloquent', 'epic', 'exciting', 'fervent', 'festive', 'flamboyant', 'focused', 'friendly', 'frosty', 'funny', 'gallant', 'gifted', 'goofy', 'gracious', 'great', 'happy', 'hardcore', 'heuristic', 'hopeful', 'hungry', 'infallible', 'inspiring', 'interesting', 'intelligent', 'jolly', 'jovial', 'keen', 'kind', 'laughing', 'loving', 'lucid', 'magical', 'mystifying', 'modest', 'musing', 'naughty', 'nervous', 'nice', 'nifty', 'nostalgic', 'objective', 'optimistic', 'peaceful', 'pedantic', 'pensive', 'practical', 'priceless', 'quirky', 'quizzical', 'recursing', 'relaxed', 'reverent', 'romantic', 'sad', 'serene', 'sharp', 'silly', 'sleepy', 'stoic', 'strange', 'stupefied', 'suspicious', 'sweet', 'tender', 'thirsty', 'trusting', 'unruffled', 'upbeat', 'vibrant', 'vigilant', 'vigorous', 'wizardly', 'wonderful', 'xenodochial', 'youthful', 'zealous', 'zen'];
|
|
2
|
-
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
3
|
-
const randomName =
|
|
4
|
-
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
5
|
-
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';
|
|
2
|
+
const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'niel', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
|
|
3
|
+
const randomName = (prefix = '', separator = '-') => {
|
|
6
4
|
const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)] ?? ''}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)] ?? ''}`;
|
|
7
5
|
if (name === `boring${separator}wozniak`) {
|
|
8
6
|
return randomName(prefix, separator);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@scaleway/random-name": "^4.0.
|
|
33
|
+
"@scaleway/random-name": "^4.0.3"
|
|
34
34
|
},
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "83b3535b700c5732c56526e88e7864e487553f74"
|
|
39
39
|
}
|