@junobuild/admin 0.0.44 → 0.0.45-next-2024-02-17
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/LICENSE +1 -1
- package/declarations/ic/ic.did.d.ts +32 -20
- package/declarations/mission_control/mission_control.did.d.ts +9 -7
- package/declarations/mission_control/mission_control.factory.did.js +2 -2
- package/declarations/orbiter/orbiter.did.d.ts +42 -0
- package/declarations/orbiter/orbiter.factory.did.js +48 -0
- package/declarations/orbiter/orbiter.factory.did.mjs +192 -0
- package/declarations/satellite/satellite.did.d.ts +5 -0
- package/declarations/satellite/satellite.factory.did.js +27 -20
- package/declarations/satellite/satellite.factory.did.mjs +27 -20
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/ic/ic.did.d.ts +32 -20
- package/dist/declarations/mission_control/mission_control.did.d.ts +9 -7
- package/dist/declarations/mission_control/mission_control.factory.did.js +2 -2
- package/dist/declarations/orbiter/orbiter.did.d.ts +42 -0
- package/dist/declarations/orbiter/orbiter.factory.did.js +48 -0
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +192 -0
- package/dist/declarations/satellite/satellite.did.d.ts +5 -0
- package/dist/declarations/satellite/satellite.factory.did.js +27 -20
- package/dist/declarations/satellite/satellite.factory.did.mjs +27 -20
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/ic.api.d.ts +5 -0
- package/dist/types/api/satellite.api.d.ts +3 -0
- package/dist/types/index.d.ts +7 -7
- package/dist/types/services/satellite.services.d.ts +9 -2
- package/dist/types/types/build.types.d.ts +1 -0
- package/dist/types/utils/actor.utils.d.ts +3 -1
- package/package.json +7 -6
- package/dist/types/types/config.types.d.ts +0 -23
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { CanisterStatus } from '@dfinity/agent';
|
|
1
2
|
import type { ActorParameters } from '../types/actor.types';
|
|
2
3
|
import type { InstallCodeParams } from '../types/ic.types';
|
|
3
4
|
export declare const upgradeCode: ({ actor, code }: {
|
|
4
5
|
actor: ActorParameters;
|
|
5
6
|
code: Omit<InstallCodeParams, 'sender_canister_version'>;
|
|
6
7
|
}) => Promise<void>;
|
|
8
|
+
export declare const canisterMetadata: ({ canisterId, path, ...rest }: ActorParameters & {
|
|
9
|
+
canisterId: string | undefined;
|
|
10
|
+
path: string;
|
|
11
|
+
}) => Promise<CanisterStatus.Status | undefined>;
|
|
@@ -18,6 +18,9 @@ export declare const setRule: ({ type, collection, rule, satellite }: {
|
|
|
18
18
|
export declare const version: ({ satellite }: {
|
|
19
19
|
satellite: SatelliteParameters;
|
|
20
20
|
}) => Promise<string>;
|
|
21
|
+
export declare const buildVersion: ({ satellite }: {
|
|
22
|
+
satellite: SatelliteParameters;
|
|
23
|
+
}) => Promise<string>;
|
|
21
24
|
export declare const listDeprecatedControllers: ({ satellite }: {
|
|
22
25
|
satellite: SatelliteParameters;
|
|
23
26
|
}) => Promise<Principal[]>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ export * from './services/mission-control.services';
|
|
|
2
2
|
export * from './services/orbiter.services';
|
|
3
3
|
export * from './services/releases.services';
|
|
4
4
|
export * from './services/satellite.services';
|
|
5
|
-
export * from './types/actor.types';
|
|
6
|
-
export * from './types/
|
|
7
|
-
export * from './types/controllers.types';
|
|
8
|
-
export * from './types/customdomain.types';
|
|
9
|
-
export * from './types/ic.types';
|
|
10
|
-
export * from './types/releases.types';
|
|
11
|
-
export * from './types/rules.types';
|
|
5
|
+
export type * from './types/actor.types';
|
|
6
|
+
export type * from './types/build.types';
|
|
7
|
+
export type * from './types/controllers.types';
|
|
8
|
+
export type * from './types/customdomain.types';
|
|
9
|
+
export type * from './types/ic.types';
|
|
10
|
+
export type * from './types/releases.types';
|
|
11
|
+
export type * from './types/rules.types';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { SatelliteConfig } from '@junobuild/config';
|
|
2
3
|
import type { Controller, MemorySize, SetControllersArgs } from '../../declarations/satellite/satellite.did';
|
|
3
4
|
import type { SatelliteParameters } from '../types/actor.types';
|
|
4
|
-
import type {
|
|
5
|
+
import type { BuildType } from '../types/build.types';
|
|
5
6
|
import type { CustomDomain } from '../types/customdomain.types';
|
|
6
7
|
import type { Rule, RulesType } from '../types/rules.types';
|
|
7
8
|
export declare const setConfig: ({ config: { storage: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame } }, satellite }: {
|
|
8
|
-
config:
|
|
9
|
+
config: Required<Pick<SatelliteConfig, 'storage'>>;
|
|
9
10
|
satellite: SatelliteParameters;
|
|
10
11
|
}) => Promise<void>;
|
|
11
12
|
export declare const listRules: ({ type, satellite }: {
|
|
@@ -20,6 +21,12 @@ export declare const setRule: ({ rule: { collection, ...rest }, type, satellite
|
|
|
20
21
|
export declare const satelliteVersion: (params: {
|
|
21
22
|
satellite: SatelliteParameters;
|
|
22
23
|
}) => Promise<string>;
|
|
24
|
+
export declare const satelliteBuildVersion: (params: {
|
|
25
|
+
satellite: SatelliteParameters;
|
|
26
|
+
}) => Promise<string>;
|
|
27
|
+
export declare const satelliteBuildType: ({ satellite: { satelliteId, ...rest } }: {
|
|
28
|
+
satellite: SatelliteParameters;
|
|
29
|
+
}) => Promise<BuildType | undefined>;
|
|
23
30
|
export declare const upgradeSatellite: ({ satellite, wasm_module, deprecated, deprecatedNoScope, reset }: {
|
|
24
31
|
satellite: SatelliteParameters;
|
|
25
32
|
wasm_module: Uint8Array;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BuildType = 'stock' | 'extended';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ActorConfig, ActorMethod, ActorSubclass } from '@dfinity/agent';
|
|
2
|
+
import { HttpAgent } from '@dfinity/agent';
|
|
2
3
|
import type { IDL } from '@dfinity/candid';
|
|
3
4
|
import type { ActorParameters } from '../types/actor.types';
|
|
4
|
-
export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory,
|
|
5
|
+
export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ canisterId, idlFactory, config, ...rest }: {
|
|
5
6
|
idlFactory: IDL.InterfaceFactory;
|
|
6
7
|
canisterId: string;
|
|
7
8
|
config?: Pick<ActorConfig, "callTransform" | "queryTransform"> | undefined;
|
|
8
9
|
} & ActorParameters) => Promise<ActorSubclass<T>>;
|
|
10
|
+
export declare const initAgent: ({ identity, fetch, container }: ActorParameters) => Promise<HttpAgent>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45-next-2024-02-17",
|
|
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,10 +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
|
+
"@junobuild/config": "*",
|
|
57
58
|
"@junobuild/utils": "*",
|
|
58
|
-
"semver": "
|
|
59
|
+
"semver": "*"
|
|
59
60
|
}
|
|
60
|
-
}
|
|
61
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type StorageConfigSourceGlob = string;
|
|
2
|
-
export interface StorageConfigHeader {
|
|
3
|
-
source: StorageConfigSourceGlob;
|
|
4
|
-
headers: [string, string][];
|
|
5
|
-
}
|
|
6
|
-
export interface StorageConfigRewrite {
|
|
7
|
-
source: StorageConfigSourceGlob;
|
|
8
|
-
destination: string;
|
|
9
|
-
}
|
|
10
|
-
export interface StorageConfigRedirect {
|
|
11
|
-
source: StorageConfigSourceGlob;
|
|
12
|
-
location: string;
|
|
13
|
-
code: 301 | 302;
|
|
14
|
-
}
|
|
15
|
-
export interface StorageConfig {
|
|
16
|
-
headers?: StorageConfigHeader[];
|
|
17
|
-
rewrites?: StorageConfigRewrite[];
|
|
18
|
-
redirects?: StorageConfigRedirect[];
|
|
19
|
-
iframe?: 'deny' | 'same-origin' | 'allow-any';
|
|
20
|
-
}
|
|
21
|
-
export interface Config {
|
|
22
|
-
storage: StorageConfig;
|
|
23
|
-
}
|