@junobuild/admin 0.0.33 → 0.0.34
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/README.md +1 -1
- package/declarations/satellite/satellite.did.d.ts +6 -0
- package/declarations/satellite/satellite.factory.did.js +6 -0
- package/declarations/satellite/satellite.factory.did.mjs +6 -0
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +6 -0
- package/dist/declarations/satellite/satellite.factory.did.js +6 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +6 -0
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/actor.api.d.ts +1 -3
- package/dist/types/constants/rules.constants.d.ts +3 -1
- package/dist/types/types/rules.types.d.ts +3 -0
- package/dist/types/utils/rule.utils.d.ts +5 -3
- package/package.json +3 -3
- package/declarations/cmc/cmc.did +0 -122
- package/declarations/cmc/cmc.did.d.ts +0 -48
- package/declarations/cmc/cmc.factory.did.js +0 -67
- package/declarations/cmc/index.d.ts +0 -45
- package/declarations/cmc/index.js +0 -37
- package/declarations/console/console.did.d.ts +0 -71
- package/declarations/console/console.factory.did.js +0 -79
- package/declarations/console/console.factory.did.mjs +0 -79
- package/declarations/console/index.d.ts +0 -45
- package/declarations/console/index.js +0 -37
- package/declarations/index/index.d.ts +0 -45
- package/declarations/index/index.did +0 -68
- package/declarations/index/index.did.d.ts +0 -97
- package/declarations/index/index.factory.did.js +0 -94
- package/declarations/index/index.js +0 -37
- package/declarations/observatory/index.d.ts +0 -45
- package/declarations/observatory/index.js +0 -38
- package/declarations/observatory/observatory.did.d.ts +0 -86
- package/declarations/observatory/observatory.factory.did.js +0 -95
- package/declarations/observatory/observatory.factory.did.mjs +0 -95
- package/dist/declarations/cmc/cmc.did +0 -122
- package/dist/declarations/cmc/cmc.did.d.ts +0 -48
- package/dist/declarations/cmc/cmc.factory.did.js +0 -67
- package/dist/declarations/cmc/index.d.ts +0 -45
- package/dist/declarations/cmc/index.js +0 -37
- package/dist/declarations/console/console.did.d.ts +0 -71
- package/dist/declarations/console/console.factory.did.js +0 -79
- package/dist/declarations/console/console.factory.did.mjs +0 -79
- package/dist/declarations/console/index.d.ts +0 -45
- package/dist/declarations/console/index.js +0 -37
- package/dist/declarations/index/index.d.ts +0 -45
- package/dist/declarations/index/index.did +0 -68
- package/dist/declarations/index/index.did.d.ts +0 -97
- package/dist/declarations/index/index.factory.did.js +0 -94
- package/dist/declarations/index/index.js +0 -37
- package/dist/declarations/observatory/index.d.ts +0 -45
- package/dist/declarations/observatory/index.js +0 -38
- package/dist/declarations/observatory/observatory.did.d.ts +0 -86
- package/dist/declarations/observatory/observatory.factory.did.js +0 -95
- package/dist/declarations/observatory/observatory.factory.did.mjs +0 -95
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
export const idlFactory = ({IDL}) => {
|
|
3
|
-
const DeleteControllersArgs = IDL.Record({
|
|
4
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
5
|
-
});
|
|
6
|
-
const CronJobStatusesConfig = IDL.Record({
|
|
7
|
-
enabled: IDL.Bool,
|
|
8
|
-
cycles_threshold: IDL.Opt(IDL.Nat64)
|
|
9
|
-
});
|
|
10
|
-
const CronJobStatuses = IDL.Record({
|
|
11
|
-
mission_control_cycles_threshold: IDL.Opt(IDL.Nat64),
|
|
12
|
-
orbiters: IDL.Vec(IDL.Tuple(IDL.Principal, CronJobStatusesConfig)),
|
|
13
|
-
satellites: IDL.Vec(IDL.Tuple(IDL.Principal, CronJobStatusesConfig)),
|
|
14
|
-
enabled: IDL.Bool,
|
|
15
|
-
cycles_threshold: IDL.Opt(IDL.Nat64)
|
|
16
|
-
});
|
|
17
|
-
const CronJobs = IDL.Record({
|
|
18
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
19
|
-
statuses: CronJobStatuses
|
|
20
|
-
});
|
|
21
|
-
const CronTab = IDL.Record({
|
|
22
|
-
cron_jobs: CronJobs,
|
|
23
|
-
updated_at: IDL.Nat64,
|
|
24
|
-
mission_control_id: IDL.Principal,
|
|
25
|
-
created_at: IDL.Nat64
|
|
26
|
-
});
|
|
27
|
-
const ListStatusesArgs = IDL.Record({time_delta: IDL.Opt(IDL.Nat64)});
|
|
28
|
-
const CanisterStatusType = IDL.Variant({
|
|
29
|
-
stopped: IDL.Null,
|
|
30
|
-
stopping: IDL.Null,
|
|
31
|
-
running: IDL.Null
|
|
32
|
-
});
|
|
33
|
-
const DefiniteCanisterSettings = IDL.Record({
|
|
34
|
-
freezing_threshold: IDL.Nat,
|
|
35
|
-
controllers: IDL.Vec(IDL.Principal),
|
|
36
|
-
memory_allocation: IDL.Nat,
|
|
37
|
-
compute_allocation: IDL.Nat
|
|
38
|
-
});
|
|
39
|
-
const CanisterStatusResponse = IDL.Record({
|
|
40
|
-
status: CanisterStatusType,
|
|
41
|
-
memory_size: IDL.Nat,
|
|
42
|
-
cycles: IDL.Nat,
|
|
43
|
-
settings: DefiniteCanisterSettings,
|
|
44
|
-
idle_cycles_burned_per_day: IDL.Nat,
|
|
45
|
-
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
46
|
-
});
|
|
47
|
-
const SegmentStatus = IDL.Record({
|
|
48
|
-
id: IDL.Principal,
|
|
49
|
-
status: CanisterStatusResponse,
|
|
50
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
51
|
-
status_at: IDL.Nat64
|
|
52
|
-
});
|
|
53
|
-
const Result = IDL.Variant({Ok: SegmentStatus, Err: IDL.Text});
|
|
54
|
-
const SegmentsStatuses = IDL.Record({
|
|
55
|
-
orbiters: IDL.Opt(IDL.Vec(Result)),
|
|
56
|
-
satellites: IDL.Opt(IDL.Vec(Result)),
|
|
57
|
-
mission_control: Result
|
|
58
|
-
});
|
|
59
|
-
const Result_1 = IDL.Variant({Ok: SegmentsStatuses, Err: IDL.Text});
|
|
60
|
-
const ListStatuses = IDL.Record({
|
|
61
|
-
cron_jobs: CronJobs,
|
|
62
|
-
statuses: Result_1,
|
|
63
|
-
timestamp: IDL.Nat64
|
|
64
|
-
});
|
|
65
|
-
const ControllerScope = IDL.Variant({
|
|
66
|
-
Write: IDL.Null,
|
|
67
|
-
Admin: IDL.Null
|
|
68
|
-
});
|
|
69
|
-
const SetController = IDL.Record({
|
|
70
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
71
|
-
scope: ControllerScope,
|
|
72
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
73
|
-
});
|
|
74
|
-
const SetControllersArgs = IDL.Record({
|
|
75
|
-
controller: SetController,
|
|
76
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
77
|
-
});
|
|
78
|
-
const SetCronTab = IDL.Record({
|
|
79
|
-
cron_jobs: CronJobs,
|
|
80
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
81
|
-
mission_control_id: IDL.Principal
|
|
82
|
-
});
|
|
83
|
-
return IDL.Service({
|
|
84
|
-
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
85
|
-
get_cron_tab: IDL.Func([], [IDL.Opt(CronTab)], ['query']),
|
|
86
|
-
list_statuses: IDL.Func([ListStatusesArgs], [IDL.Vec(ListStatuses)], ['query']),
|
|
87
|
-
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
88
|
-
set_cron_tab: IDL.Func([SetCronTab], [CronTab], []),
|
|
89
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
export const init = ({IDL}) => {
|
|
94
|
-
return [];
|
|
95
|
-
};
|