@junobuild/admin 0.6.2 → 0.6.3
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/actor.api.d.ts +1 -1
- package/dist/types/api/ic.api.d.ts +1 -1
- package/dist/types/api/mission-control.api.d.ts +1 -1
- package/dist/types/api/orbiter.api.d.ts +1 -1
- package/dist/types/api/satellite.api.d.ts +1 -1
- package/dist/types/handlers/upgrade.chunks.handlers.d.ts +1 -1
- package/dist/types/handlers/upgrade.handlers.d.ts +1 -1
- package/dist/types/handlers/upgrade.single.handlers.d.ts +1 -1
- package/dist/types/helpers/wasm.helpers.d.ts +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/schemas/releases.d.ts +115 -0
- package/dist/types/services/mission-control.controllers.services.d.ts +2 -2
- package/dist/types/services/mission-control.upgrade.services.d.ts +2 -2
- package/dist/types/services/mission-control.version.services.d.ts +1 -1
- package/dist/types/services/module.upgrade.services.d.ts +2 -2
- package/dist/types/services/orbiter.controllers.services.d.ts +1 -1
- package/dist/types/services/orbiter.memory.services.d.ts +1 -1
- package/dist/types/services/orbiter.upgrade.services.d.ts +2 -2
- package/dist/types/services/orbiter.version.services.d.ts +1 -1
- package/dist/types/services/package.services.d.ts +1 -1
- package/dist/types/services/satellite.assets.services.d.ts +1 -1
- package/dist/types/services/satellite.config.services.d.ts +1 -1
- package/dist/types/services/satellite.controllers.services.d.ts +1 -1
- package/dist/types/services/satellite.docs.services.d.ts +1 -1
- package/dist/types/services/satellite.domains.services.d.ts +2 -2
- package/dist/types/services/satellite.memory.services.d.ts +1 -1
- package/dist/types/services/satellite.rules.services.d.ts +2 -2
- package/dist/types/services/satellite.upgrade.services.d.ts +2 -2
- package/dist/types/services/satellite.version.services.d.ts +2 -2
- package/dist/types/types/{upgrade.types.d.ts → upgrade.d.ts} +1 -1
- package/dist/types/utils/actor.utils.d.ts +1 -1
- package/dist/types/utils/controllers.utils.d.ts +1 -1
- package/dist/types/utils/rule.utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/types/releases.types.d.ts +0 -62
- /package/dist/types/types/{actor.types.d.ts → actor.d.ts} +0 -0
- /package/dist/types/types/{build.types.d.ts → build.d.ts} +0 -0
- /package/dist/types/types/{controllers.types.d.ts → controllers.d.ts} +0 -0
- /package/dist/types/types/{customdomain.types.d.ts → customdomain.d.ts} +0 -0
- /package/dist/types/types/{list.types.d.ts → list.d.ts} +0 -0
|
@@ -7,7 +7,7 @@ import type { _SERVICE as DeprecatedSatelliteNoScopeActor } from '../../declarat
|
|
|
7
7
|
import type { _SERVICE as DeprecatedSatelliteVersionActor } from '../../declarations/satellite/satellite-deprecated-version.did';
|
|
8
8
|
import type { _SERVICE as DeprecatedSatelliteActor } from '../../declarations/satellite/satellite-deprecated.did';
|
|
9
9
|
import type { _SERVICE as SatelliteActor } from '../../declarations/satellite/satellite.did';
|
|
10
|
-
import type { ActorParameters, MissionControlParameters, OrbiterParameters, SatelliteParameters } from '../types/actor
|
|
10
|
+
import type { ActorParameters, MissionControlParameters, OrbiterParameters, SatelliteParameters } from '../types/actor';
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated TODO: for backwards compatibility - to be removed
|
|
13
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { type chunk_hash, type InstallChunkedCodeParams, type InstallCodeParams,
|
|
|
3
3
|
import type { take_canister_snapshot_result } from '@dfinity/ic-management/dist/candid/ic-management';
|
|
4
4
|
import type { CanisterStatusResponse } from '@dfinity/ic-management/dist/types/types/ic-management.responses';
|
|
5
5
|
import { Principal } from '@dfinity/principal';
|
|
6
|
-
import type { ActorParameters } from '../types/actor
|
|
6
|
+
import type { ActorParameters } from '../types/actor';
|
|
7
7
|
export declare const canisterStop: ({ canisterId, actor }: {
|
|
8
8
|
canisterId: Principal;
|
|
9
9
|
actor: ActorParameters;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { Controller, SetController } from '../../declarations/mission_control/mission_control.did';
|
|
3
|
-
import type { MissionControlParameters } from '../types/actor
|
|
3
|
+
import type { MissionControlParameters } from '../types/actor';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated - Replaced in Mission Control > v0.0.14 with public custom section juno:package
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { Controller, MemorySize } from '../../declarations/orbiter/orbiter.did';
|
|
3
|
-
import type { OrbiterParameters } from '../types/actor
|
|
3
|
+
import type { OrbiterParameters } from '../types/actor';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated - Replaced in Orbiter > v0.0.8 with public custom section juno:package
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { AuthenticationConfig, CollectionType, Controller, CustomDomain, DbConfig, ListRulesParams, ListRulesResults, MemorySize, Rule, SetControllersArgs, SetRule, StorageConfig } from '../../declarations/satellite/satellite.did';
|
|
3
|
-
import type { SatelliteParameters } from '../types/actor
|
|
3
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
4
4
|
export declare const setStorageConfig: ({ config, satellite }: {
|
|
5
5
|
config: StorageConfig;
|
|
6
6
|
satellite: SatelliteParameters;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
2
2
|
export declare const upgradeChunkedCode: ({ actor, canisterId, missionControlId, wasmModule, preClearChunks: userPreClearChunks, ...rest }: UpgradeCodeParams) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import { type UpgradeCodeParams } from '../types/upgrade';
|
|
2
2
|
export declare const upgrade: ({ wasmModule, canisterId, actor, onProgress, takeSnapshot, ...rest }: UpgradeCodeParams & {
|
|
3
3
|
reset?: boolean;
|
|
4
4
|
}) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
2
2
|
export declare const upgradeSingleChunkCode: ({ actor, ...rest }: UpgradeCodeParams) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JunoPackage } from '@junobuild/config';
|
|
2
|
-
import type { BuildType } from '../types/build
|
|
2
|
+
import type { BuildType } from '../types/build';
|
|
3
3
|
/**
|
|
4
4
|
* Extracts the build type from a provided Juno package or falls back to a deprecated detection method.
|
|
5
5
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './helpers/crypto.helpers';
|
|
|
4
4
|
export * from './helpers/package.helpers';
|
|
5
5
|
export * from './helpers/version.helpers';
|
|
6
6
|
export * from './helpers/wasm.helpers';
|
|
7
|
+
export * from './schemas/releases';
|
|
7
8
|
export * from './services/mission-control.controllers.services';
|
|
8
9
|
export * from './services/mission-control.upgrade.services';
|
|
9
10
|
export * from './services/mission-control.version.services';
|
|
@@ -22,9 +23,8 @@ export * from './services/satellite.memory.services';
|
|
|
22
23
|
export * from './services/satellite.rules.services';
|
|
23
24
|
export * from './services/satellite.upgrade.services';
|
|
24
25
|
export * from './services/satellite.version.services';
|
|
25
|
-
export type * from './types/actor
|
|
26
|
-
export type * from './types/build
|
|
27
|
-
export type * from './types/controllers
|
|
28
|
-
export type * from './types/customdomain
|
|
29
|
-
export
|
|
30
|
-
export * from './types/upgrade.types';
|
|
26
|
+
export type * from './types/actor';
|
|
27
|
+
export type * from './types/build';
|
|
28
|
+
export type * from './types/controllers';
|
|
29
|
+
export type * from './types/customdomain';
|
|
30
|
+
export * from './types/upgrade';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* A schema for validating a version string in `x.y.z` format.
|
|
4
|
+
*
|
|
5
|
+
* Examples of valid versions:
|
|
6
|
+
* - 0.1.0"
|
|
7
|
+
* - 2.3.4
|
|
8
|
+
*/
|
|
9
|
+
declare const MetadataVersionSchema: z.ZodString;
|
|
10
|
+
/**
|
|
11
|
+
* A version string in `x.y.z` format.
|
|
12
|
+
*/
|
|
13
|
+
export type MetadataVersion = z.infer<typeof MetadataVersionSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* A schema representing the metadata of a single release.
|
|
16
|
+
*
|
|
17
|
+
* Includes the version of the release itself (tag) and the versions
|
|
18
|
+
* of all modules bundled with it.
|
|
19
|
+
*/
|
|
20
|
+
declare const ReleaseMetadataSchema: z.ZodObject<{
|
|
21
|
+
/**
|
|
22
|
+
* Unique version identifier for the release, following the `x.y.z` format.
|
|
23
|
+
* @type {MetadataVersion}
|
|
24
|
+
*/
|
|
25
|
+
tag: z.ZodString;
|
|
26
|
+
/**
|
|
27
|
+
* The version of the console included in the release.
|
|
28
|
+
* @type {MetadataVersion}
|
|
29
|
+
*/
|
|
30
|
+
console: z.ZodString;
|
|
31
|
+
/**
|
|
32
|
+
* Version of the Observatory module included in the release.
|
|
33
|
+
* @type {MetadataVersion}
|
|
34
|
+
*/
|
|
35
|
+
observatory: z.ZodString;
|
|
36
|
+
/**
|
|
37
|
+
* Version of the Mission Control module included in the release.
|
|
38
|
+
* @type {MetadataVersion}
|
|
39
|
+
*/
|
|
40
|
+
mission_control: z.ZodString;
|
|
41
|
+
/**
|
|
42
|
+
* Version of the Satellite module included in the release.
|
|
43
|
+
* @type {MetadataVersion}
|
|
44
|
+
*/
|
|
45
|
+
satellite: z.ZodString;
|
|
46
|
+
/**
|
|
47
|
+
* Version of the Orbiter module included in the release.
|
|
48
|
+
* @type {MetadataVersion}
|
|
49
|
+
*/
|
|
50
|
+
orbiter: z.ZodString;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
/**
|
|
53
|
+
* The metadata for a release provided by Juno.
|
|
54
|
+
*/
|
|
55
|
+
export type ReleaseMetadata = z.infer<typeof ReleaseMetadataSchema>;
|
|
56
|
+
/**
|
|
57
|
+
* A schema representing the metadata for multiple releases provided by Juno.
|
|
58
|
+
*/
|
|
59
|
+
export declare const ReleasesMetadataSchema: z.ZodObject<{
|
|
60
|
+
/**
|
|
61
|
+
* List of all Mission Control versions across releases.
|
|
62
|
+
* @type {MetadataVersion}
|
|
63
|
+
*/
|
|
64
|
+
mission_controls: z.ZodArray<z.ZodString>;
|
|
65
|
+
/**
|
|
66
|
+
* List of all Satellite versions across releases.
|
|
67
|
+
* @type {MetadataVersion}
|
|
68
|
+
*/
|
|
69
|
+
satellites: z.ZodArray<z.ZodString>;
|
|
70
|
+
/**
|
|
71
|
+
* List of all Orbiter versions across releases.
|
|
72
|
+
* @type {MetadataVersion}
|
|
73
|
+
*/
|
|
74
|
+
orbiters: z.ZodArray<z.ZodString>;
|
|
75
|
+
/**
|
|
76
|
+
* List of release metadata objects, each representing one release.
|
|
77
|
+
*/
|
|
78
|
+
releases: z.ZodArray<z.ZodObject<{
|
|
79
|
+
/**
|
|
80
|
+
* Unique version identifier for the release, following the `x.y.z` format.
|
|
81
|
+
* @type {MetadataVersion}
|
|
82
|
+
*/
|
|
83
|
+
tag: z.ZodString;
|
|
84
|
+
/**
|
|
85
|
+
* The version of the console included in the release.
|
|
86
|
+
* @type {MetadataVersion}
|
|
87
|
+
*/
|
|
88
|
+
console: z.ZodString;
|
|
89
|
+
/**
|
|
90
|
+
* Version of the Observatory module included in the release.
|
|
91
|
+
* @type {MetadataVersion}
|
|
92
|
+
*/
|
|
93
|
+
observatory: z.ZodString;
|
|
94
|
+
/**
|
|
95
|
+
* Version of the Mission Control module included in the release.
|
|
96
|
+
* @type {MetadataVersion}
|
|
97
|
+
*/
|
|
98
|
+
mission_control: z.ZodString;
|
|
99
|
+
/**
|
|
100
|
+
* Version of the Satellite module included in the release.
|
|
101
|
+
* @type {MetadataVersion}
|
|
102
|
+
*/
|
|
103
|
+
satellite: z.ZodString;
|
|
104
|
+
/**
|
|
105
|
+
* Version of the Orbiter module included in the release.
|
|
106
|
+
* @type {MetadataVersion}
|
|
107
|
+
*/
|
|
108
|
+
orbiter: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
/**
|
|
112
|
+
* The metadata for multiple releases provided by Juno.
|
|
113
|
+
*/
|
|
114
|
+
export type ReleasesMetadata = z.infer<typeof ReleasesMetadataSchema>;
|
|
115
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { Controller } from '../../declarations/mission_control/mission_control.did';
|
|
3
|
-
import type { MissionControlParameters } from '../types/actor
|
|
4
|
-
import type { SetControllerParams } from '../types/controllers
|
|
3
|
+
import type { MissionControlParameters } from '../types/actor';
|
|
4
|
+
import type { SetControllerParams } from '../types/controllers';
|
|
5
5
|
/**
|
|
6
6
|
* Sets the controller for the specified satellites.
|
|
7
7
|
* @param {Object} params - The parameters for setting the satellites controller.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MissionControlParameters } from '../types/actor
|
|
2
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { MissionControlParameters } from '../types/actor';
|
|
2
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades the Mission Control with the provided WASM module.
|
|
5
5
|
* @param {Object} params - The parameters for upgrading the Mission Control.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActorParameters } from '../types/actor
|
|
2
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { ActorParameters } from '../types/actor';
|
|
2
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades a module with the provided WASM code and arguments. This generic is notably useful for Juno Docker.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { Controller } from '../../declarations/mission_control/mission_control.did';
|
|
3
|
-
import type { OrbiterParameters } from '../types/actor
|
|
3
|
+
import type { OrbiterParameters } from '../types/actor';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the controllers of the Orbiter.
|
|
6
6
|
* @param {Object} params - The parameters for listing the controllers.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MemorySize } from '../../declarations/orbiter/orbiter.did';
|
|
2
|
-
import type { OrbiterParameters } from '../types/actor
|
|
2
|
+
import type { OrbiterParameters } from '../types/actor';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the stable and heap memory size of the Orbiter.
|
|
5
5
|
* @param {Object} params - The parameters for the Orbiter.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OrbiterParameters } from '../types/actor
|
|
2
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { OrbiterParameters } from '../types/actor';
|
|
2
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades the Orbiter with the provided WASM module.
|
|
5
5
|
* @param {Object} params - The parameters for upgrading the Orbiter.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import { type JunoPackage } from '@junobuild/config';
|
|
3
|
-
import type { ActorParameters } from '../types/actor
|
|
3
|
+
import type { ActorParameters } from '../types/actor';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters required to retrieve a `juno:package` metadata section.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthenticationConfig, DatastoreConfig, StorageConfig } from '@junobuild/config';
|
|
2
|
-
import type { SatelliteParameters } from '../types/actor
|
|
2
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
3
3
|
/**
|
|
4
4
|
* Sets the configuration for the Storage of a Satellite.
|
|
5
5
|
* @param {Object} params - The parameters for setting the configuration.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { Controller, SetControllersArgs } from '../../declarations/satellite/satellite.did';
|
|
3
|
-
import type { SatelliteParameters } from '../types/actor
|
|
3
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the controllers of a satellite.
|
|
6
6
|
* @param {Object} params - The parameters for listing the controllers.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SatelliteParameters } from '../types/actor
|
|
2
|
-
import type { CustomDomain } from '../types/customdomain
|
|
1
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
2
|
+
import type { CustomDomain } from '../types/customdomain';
|
|
3
3
|
/**
|
|
4
4
|
* Lists the custom domains for a satellite.
|
|
5
5
|
* @param {Object} params - The parameters for listing the custom domains.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MemorySize } from '../../declarations/satellite/satellite.did';
|
|
2
|
-
import type { SatelliteParameters } from '../types/actor
|
|
2
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the stable and heap memory size of a satellite.
|
|
5
5
|
* @param {Object} params - The parameters for retrieving the memory size.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Rule, RulesType } from '@junobuild/config';
|
|
2
|
-
import type { SatelliteParameters } from '../types/actor
|
|
3
|
-
import type { ListRulesMatcher, ListRulesResults } from '../types/list
|
|
2
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
3
|
+
import type { ListRulesMatcher, ListRulesResults } from '../types/list';
|
|
4
4
|
/**
|
|
5
5
|
* Lists the rules for a satellite.
|
|
6
6
|
* @param {Object} params - The parameters for listing the rules.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SatelliteParameters } from '../types/actor
|
|
2
|
-
import type { UpgradeCodeParams } from '../types/upgrade
|
|
1
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
2
|
+
import type { UpgradeCodeParams } from '../types/upgrade';
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades a satellite with the provided WASM module.
|
|
5
5
|
* @param {Object} params - The parameters for upgrading the satellite.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SatelliteParameters } from '../types/actor
|
|
2
|
-
import type { BuildType } from '../types/build
|
|
1
|
+
import type { SatelliteParameters } from '../types/actor';
|
|
2
|
+
import type { BuildType } from '../types/build';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the version of the satellite.
|
|
5
5
|
* @param {Object} params - The parameters for retrieving the version.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { canister_install_mode } from '@dfinity/ic-management';
|
|
2
2
|
import type { Principal } from '@dfinity/principal';
|
|
3
|
-
import type { ActorParameters } from './actor
|
|
3
|
+
import type { ActorParameters } from './actor';
|
|
4
4
|
export declare enum UpgradeCodeProgressStep {
|
|
5
5
|
AssertingExistingCode = 0,
|
|
6
6
|
StoppingCanister = 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpAgent, type ActorConfig, type ActorMethod, type ActorSubclass } from '@dfinity/agent';
|
|
2
2
|
import type { IDL } from '@dfinity/candid';
|
|
3
|
-
import type { ActorParameters } from '../types/actor
|
|
3
|
+
import type { ActorParameters } from '../types/actor';
|
|
4
4
|
export declare const createActor: <T = Record<string, ActorMethod>>({ canisterId, idlFactory, config, ...rest }: {
|
|
5
5
|
idlFactory: IDL.InterfaceFactory;
|
|
6
6
|
canisterId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
2
|
import type { SetController } from '../../declarations/mission_control/mission_control.did';
|
|
3
|
-
import type { SetControllerParams } from '../types/controllers
|
|
3
|
+
import type { SetControllerParams } from '../types/controllers';
|
|
4
4
|
export declare const mapSetControllerParams: ({ controllerId, profile }: SetControllerParams) => {
|
|
5
5
|
controllerIds: Principal[];
|
|
6
6
|
controller: SetController;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
2
2
|
import type { CollectionType as CollectionTypeApi, ListRulesParams as ListRulesParamsApi, Memory, Permission, Rule as RuleApi, SetRule } from '../../declarations/satellite/satellite.did';
|
|
3
|
-
import type { ListRulesMatcher } from '../types/list
|
|
3
|
+
import type { ListRulesMatcher } from '../types/list';
|
|
4
4
|
export declare const mapRuleType: (type: RulesType) => CollectionTypeApi;
|
|
5
5
|
export declare const mapRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
|
|
6
6
|
export declare const mapSetRule: ({ read, write, memory, maxSize, maxChangesPerUser, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxChangesPerUser" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
package/package.json
CHANGED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents metadata for a release.
|
|
3
|
-
* @interface
|
|
4
|
-
*/
|
|
5
|
-
export interface ReleaseMetadata {
|
|
6
|
-
/**
|
|
7
|
-
* The tag of the release.
|
|
8
|
-
* @type {string}
|
|
9
|
-
*/
|
|
10
|
-
tag: string;
|
|
11
|
-
/**
|
|
12
|
-
* The version of the console included in the release.
|
|
13
|
-
* @type {string}
|
|
14
|
-
*/
|
|
15
|
-
console: string;
|
|
16
|
-
/**
|
|
17
|
-
* The version of the observatory included in the release.
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
observatory: string;
|
|
21
|
-
/**
|
|
22
|
-
* The version of the mission control included in the release.
|
|
23
|
-
* @type {string}
|
|
24
|
-
*/
|
|
25
|
-
mission_control: string;
|
|
26
|
-
/**
|
|
27
|
-
* The version of the satellite included in the release.
|
|
28
|
-
* @type {string}
|
|
29
|
-
*/
|
|
30
|
-
satellite: string;
|
|
31
|
-
/**
|
|
32
|
-
* The version of the orbiter included in the release.
|
|
33
|
-
* @type {string}
|
|
34
|
-
*/
|
|
35
|
-
orbiter: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Represents metadata for multiple releases.
|
|
39
|
-
* @interface
|
|
40
|
-
*/
|
|
41
|
-
export interface ReleasesMetadata {
|
|
42
|
-
/**
|
|
43
|
-
* The list of mission control versions.
|
|
44
|
-
* @type {string[]}
|
|
45
|
-
*/
|
|
46
|
-
mission_controls: string[];
|
|
47
|
-
/**
|
|
48
|
-
* The list of satellite versions.
|
|
49
|
-
* @type {string[]}
|
|
50
|
-
*/
|
|
51
|
-
satellites: string[];
|
|
52
|
-
/**
|
|
53
|
-
* The list of orbiter versions.
|
|
54
|
-
* @type {string[]}
|
|
55
|
-
*/
|
|
56
|
-
orbiters: string[];
|
|
57
|
-
/**
|
|
58
|
-
* The list of release metadata.
|
|
59
|
-
* @type {ReleaseMetadata[]}
|
|
60
|
-
*/
|
|
61
|
-
releases: ReleaseMetadata[];
|
|
62
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|