@scaleway/sdk 2.54.0 → 2.56.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/applesilicon/v1alpha1/content.gen.cjs +2 -1
- package/dist/api/applesilicon/v1alpha1/content.gen.js +2 -1
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/block/v1alpha1/api.gen.cjs +1 -1
- package/dist/api/block/v1alpha1/api.gen.d.ts +1 -1
- package/dist/api/block/v1alpha1/api.gen.js +1 -1
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +3 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +3 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.cjs +5 -3
- package/dist/api/cockpit/v1/marshalling.gen.js +5 -3
- package/dist/api/cockpit/v1/types.gen.d.ts +11 -7
- package/dist/api/iam/v1alpha1/api.gen.cjs +14 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/iam/v1alpha1/api.gen.js +15 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +28 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +28 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +26 -0
- package/dist/api/instance/v1/api.gen.cjs +32 -14
- package/dist/api/instance/v1/api.gen.d.ts +32 -14
- package/dist/api/instance/v1/api.gen.js +32 -14
- package/dist/api/instance/v1/types.gen.d.ts +17 -10
- package/dist/api/k8s/v1/marshalling.gen.cjs +2 -1
- package/dist/api/k8s/v1/marshalling.gen.js +2 -1
- package/dist/api/k8s/v1/types.gen.d.ts +1 -0
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +31 -0
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +19 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +32 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +10 -4
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +3 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +10 -4
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +26 -6
- package/dist/api/webhosting/v1/api.gen.cjs +14 -0
- package/dist/api/webhosting/v1/api.gen.d.ts +9 -1
- package/dist/api/webhosting/v1/api.gen.js +15 -1
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +14 -0
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +14 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +19 -0
- package/dist/scw/client.cjs +4 -1
- package/dist/scw/client.d.ts +1 -2
- package/dist/scw/client.js +5 -2
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -462,6 +462,15 @@ export type HostingApiGetHostingRequest = {
|
|
|
462
462
|
/** Hosting ID. */
|
|
463
463
|
hostingId: string;
|
|
464
464
|
};
|
|
465
|
+
export type HostingApiGetResourceSummaryRequest = {
|
|
466
|
+
/**
|
|
467
|
+
* Region to target. If none is passed will use default region from the
|
|
468
|
+
* config.
|
|
469
|
+
*/
|
|
470
|
+
region?: Region;
|
|
471
|
+
/** Hosting ID. */
|
|
472
|
+
hostingId: string;
|
|
473
|
+
};
|
|
465
474
|
export type HostingApiListHostingsRequest = {
|
|
466
475
|
/**
|
|
467
476
|
* Region to target. If none is passed will use default region from the
|
|
@@ -674,6 +683,16 @@ export interface ResetHostingPasswordResponse {
|
|
|
674
683
|
/** New temporary password. */
|
|
675
684
|
oneTimePassword: string;
|
|
676
685
|
}
|
|
686
|
+
export interface ResourceSummary {
|
|
687
|
+
/** Total number of active databases in the Web Hosting plan. */
|
|
688
|
+
databasesCount: number;
|
|
689
|
+
/** Total number of active email accounts in the Web Hosting plan. */
|
|
690
|
+
mailAccountsCount: number;
|
|
691
|
+
/** Total number of active FTP accounts in the Web Hosting plan. */
|
|
692
|
+
ftpAccountsCount: number;
|
|
693
|
+
/** Total number of active domains in the the Web Hosting plan. */
|
|
694
|
+
websitesCount: number;
|
|
695
|
+
}
|
|
677
696
|
export interface Session {
|
|
678
697
|
/** Logged user's session URL. */
|
|
679
698
|
url: string;
|
package/dist/scw/client.cjs
CHANGED
|
@@ -23,6 +23,9 @@ const createAdvancedClient = (...configs) => {
|
|
|
23
23
|
settings
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const createClient = (
|
|
26
|
+
const createClient = (settings = {}) => createAdvancedClient(
|
|
27
|
+
clientIniFactory.withProfile(settings),
|
|
28
|
+
clientIniFactory.withAdditionalInterceptors(settings.interceptors ?? [])
|
|
29
|
+
);
|
|
27
30
|
exports.createAdvancedClient = createAdvancedClient;
|
|
28
31
|
exports.createClient = createClient;
|
package/dist/scw/client.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ClientConfig } from './client-ini-factory';
|
|
2
|
-
import type { Profile } from './client-ini-profile';
|
|
3
2
|
import type { Settings } from './client-settings';
|
|
4
3
|
import type { Fetcher } from './fetch/build-fetcher';
|
|
5
4
|
/**
|
|
@@ -69,4 +68,4 @@ export declare const createAdvancedClient: (...configs: ClientConfig[]) => Clien
|
|
|
69
68
|
*
|
|
70
69
|
* @public
|
|
71
70
|
*/
|
|
72
|
-
export declare const createClient: (
|
|
71
|
+
export declare const createClient: (settings?: Partial<Settings>) => Client;
|
package/dist/scw/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger } from "../internal/logger/index.js";
|
|
2
|
-
import { withLegacyInterceptors, withProfile } from "./client-ini-factory.js";
|
|
2
|
+
import { withLegacyInterceptors, withAdditionalInterceptors, withProfile } from "./client-ini-factory.js";
|
|
3
3
|
import { assertValidSettings } from "./client-settings.js";
|
|
4
4
|
import { version, userAgent } from "./constants.js";
|
|
5
5
|
import { buildFetcher } from "./fetch/build-fetcher.js";
|
|
@@ -21,7 +21,10 @@ const createAdvancedClient = (...configs) => {
|
|
|
21
21
|
settings
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
const createClient = (
|
|
24
|
+
const createClient = (settings = {}) => createAdvancedClient(
|
|
25
|
+
withProfile(settings),
|
|
26
|
+
withAdditionalInterceptors(settings.interceptors ?? [])
|
|
27
|
+
);
|
|
25
28
|
export {
|
|
26
29
|
createAdvancedClient,
|
|
27
30
|
createClient
|
package/dist/scw/constants.cjs
CHANGED
package/dist/scw/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v2.
|
|
2
|
-
export declare const userAgent = "scaleway-sdk-js/v2.
|
|
1
|
+
export declare const version = "v2.55.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.55.0";
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bundledDependencies": [
|
|
40
40
|
"@scaleway/random-name"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9180ab7f2eebe5e35dd51605641ae0d627bf024f"
|
|
43
43
|
}
|