@junobuild/admin 0.0.52 → 0.0.53-next-2024-08-04
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/declarations/satellite/satellite.did.d.ts +25 -2
- package/declarations/satellite/satellite.factory.did.js +28 -4
- package/declarations/satellite/satellite.factory.did.mjs +28 -4
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +25 -2
- package/dist/declarations/satellite/satellite.factory.did.js +28 -4
- package/dist/declarations/satellite/satellite.factory.did.mjs +28 -4
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/satellite.api.d.ts +13 -3
- package/dist/types/services/satellite.services.d.ts +23 -14
- package/dist/types/utils/memory.utils.d.ts +3 -0
- package/package.json +6 -6
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { AuthenticationConfig,
|
|
2
|
+
import type { AuthenticationConfig, Controller, CustomDomain, DbConfig, MemorySize, Rule, RulesType, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
|
|
3
3
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
4
|
-
export declare const
|
|
5
|
-
config:
|
|
4
|
+
export declare const setStorageConfig: ({ config, satellite }: {
|
|
5
|
+
config: StorageConfig;
|
|
6
|
+
satellite: SatelliteParameters;
|
|
7
|
+
}) => Promise<void>;
|
|
8
|
+
export declare const setDatastoreConfig: ({ config, satellite }: {
|
|
9
|
+
config: DbConfig;
|
|
6
10
|
satellite: SatelliteParameters;
|
|
7
11
|
}) => Promise<void>;
|
|
8
12
|
export declare const setAuthConfig: ({ config, satellite }: {
|
|
9
13
|
config: AuthenticationConfig;
|
|
10
14
|
satellite: SatelliteParameters;
|
|
11
15
|
}) => Promise<void>;
|
|
16
|
+
export declare const getStorageConfig: ({ satellite }: {
|
|
17
|
+
satellite: SatelliteParameters;
|
|
18
|
+
}) => Promise<StorageConfig>;
|
|
19
|
+
export declare const getDatastoreConfig: ({ satellite }: {
|
|
20
|
+
satellite: SatelliteParameters;
|
|
21
|
+
}) => Promise<[] | [DbConfig]>;
|
|
12
22
|
export declare const getAuthConfig: ({ satellite }: {
|
|
13
23
|
satellite: SatelliteParameters;
|
|
14
24
|
}) => Promise<[] | [AuthenticationConfig]>;
|
|
@@ -1,35 +1,44 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { AuthenticationConfig, Rule, RulesType,
|
|
2
|
+
import type { AuthenticationConfig, DatastoreConfig, Rule, RulesType, StorageConfig } from '@junobuild/config';
|
|
3
3
|
import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
|
|
4
4
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
5
5
|
import type { BuildType } from '../types/build.types';
|
|
6
6
|
import type { CustomDomain } from '../types/customdomain.types';
|
|
7
7
|
/**
|
|
8
|
-
* Sets the configuration for a
|
|
8
|
+
* Sets the configuration for the Storage of a Satellite.
|
|
9
9
|
* @param {Object} params - The parameters for setting the configuration.
|
|
10
|
-
* @param {Object} params.config - The
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {Array<
|
|
13
|
-
* @param {Array<
|
|
14
|
-
* @param {
|
|
15
|
-
* @param {string} params.config.storage.iframe - The iframe configuration.
|
|
10
|
+
* @param {Object} params.config - The storage configuration.
|
|
11
|
+
* @param {Array<StorageConfigHeader>} params.config.headers - The headers configuration.
|
|
12
|
+
* @param {Array<StorageConfigRewrite>} params.config.rewrites - The rewrites configuration.
|
|
13
|
+
* @param {Array<StorageConfigRedirect>} params.config.redirects - The redirects configuration.
|
|
14
|
+
* @param {string} params.config.iframe - The iframe configuration.
|
|
16
15
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
17
16
|
* @returns {Promise<void>} A promise that resolves when the configuration is set.
|
|
18
17
|
*/
|
|
19
|
-
export declare const
|
|
20
|
-
config:
|
|
18
|
+
export declare const setStorageConfig: ({ config: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame, rawAccess: configRawAccess, maxMemorySize: configMaxMemorySize }, satellite }: {
|
|
19
|
+
config: StorageConfig;
|
|
20
|
+
satellite: SatelliteParameters;
|
|
21
|
+
}) => Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the datastore configuration for a satellite.
|
|
24
|
+
* @param {Object} params - The parameters for setting the authentication configuration.
|
|
25
|
+
* @param {Object} params.config - The datastore configuration.
|
|
26
|
+
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
27
|
+
* @returns {Promise<void>} A promise that resolves when the datastore configuration is set.
|
|
28
|
+
*/
|
|
29
|
+
export declare const setDatastoreConfig: ({ config: { maxMemorySize }, ...rest }: {
|
|
30
|
+
config: DatastoreConfig;
|
|
21
31
|
satellite: SatelliteParameters;
|
|
22
32
|
}) => Promise<void>;
|
|
23
33
|
/**
|
|
24
34
|
* Sets the authentication configuration for a satellite.
|
|
25
35
|
* @param {Object} params - The parameters for setting the authentication configuration.
|
|
26
|
-
* @param {Object} params.config - The
|
|
27
|
-
* @param {Object} params.config.authentication - The authentication configuration.
|
|
36
|
+
* @param {Object} params.config - The authentication configuration.
|
|
28
37
|
* @param {SatelliteParameters} params.satellite - The satellite parameters.
|
|
29
38
|
* @returns {Promise<void>} A promise that resolves when the authentication configuration is set.
|
|
30
39
|
*/
|
|
31
|
-
export declare const setAuthConfig: ({ config: {
|
|
32
|
-
config:
|
|
40
|
+
export declare const setAuthConfig: ({ config: { internetIdentity }, ...rest }: {
|
|
41
|
+
config: AuthenticationConfig;
|
|
33
42
|
satellite: SatelliteParameters;
|
|
34
43
|
}) => Promise<void>;
|
|
35
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.53-next-2024-08-04",
|
|
4
4
|
"description": "A library for interfacing with admin features of Juno",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
],
|
|
52
52
|
"homepage": "https://juno.build",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@dfinity/agent": "
|
|
55
|
-
"@dfinity/identity": "
|
|
56
|
-
"@dfinity/principal": "
|
|
54
|
+
"@dfinity/agent": "*",
|
|
55
|
+
"@dfinity/identity": "*",
|
|
56
|
+
"@dfinity/principal": "*",
|
|
57
57
|
"@junobuild/config": "*",
|
|
58
58
|
"@junobuild/utils": "*",
|
|
59
|
-
"semver": "
|
|
59
|
+
"semver": "*"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|