@junobuild/admin 1.0.0 → 2.0.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/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/ic.api.d.ts +1 -1
- package/dist/types/api/mission-control.api.d.ts +4 -5
- package/dist/types/api/orbiter.api.d.ts +3 -4
- package/dist/types/api/satellite.api.d.ts +23 -24
- package/dist/types/constants/rules.constants.d.ts +9 -9
- package/dist/types/index.d.ts +0 -1
- package/dist/types/services/mission-control.controllers.services.d.ts +2 -3
- package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
- package/dist/types/services/mission-control.version.services.d.ts +1 -1
- package/dist/types/services/module.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.controllers.services.d.ts +2 -3
- package/dist/types/services/orbiter.memory.services.d.ts +2 -3
- package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
- 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 +4 -5
- package/dist/types/services/satellite.docs.services.d.ts +1 -1
- package/dist/types/services/satellite.domains.services.d.ts +1 -1
- package/dist/types/services/satellite.memory.services.d.ts +2 -3
- package/dist/types/services/satellite.rules.services.d.ts +1 -1
- package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
- package/dist/types/services/satellite.version.services.d.ts +1 -1
- package/dist/types/types/upgrade.d.ts +1 -1
- package/dist/types/utils/config.utils.d.ts +7 -7
- package/dist/types/utils/controllers.utils.d.ts +2 -2
- package/dist/types/utils/idl.utils.d.ts +2 -2
- package/dist/types/utils/memory.utils.d.ts +3 -3
- package/dist/types/utils/rule.utils.d.ts +8 -8
- package/package.json +3 -2
- package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
- package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
- package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
- package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
- package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
- package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
- package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
- package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
- package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
- package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
- package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
- package/dist/declarations/satellite/satellite.did.d.ts +0 -396
- package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
- package/dist/types/api/_actor.api.d.ts +0 -34
- package/dist/types/api/_actor.factory.d.ts +0 -19
- package/dist/types/api/_agent.api.d.ts +0 -3
- package/dist/types/types/actor.d.ts +0 -74
- package/dist/types/utils/agent.utils.d.ts +0 -6
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
export const idlFactory = ({IDL}) => {
|
|
3
|
-
const CyclesThreshold = IDL.Record({
|
|
4
|
-
fund_cycles: IDL.Nat,
|
|
5
|
-
min_cycles: IDL.Nat
|
|
6
|
-
});
|
|
7
|
-
const CyclesMonitoringStrategy = IDL.Variant({
|
|
8
|
-
BelowThreshold: CyclesThreshold
|
|
9
|
-
});
|
|
10
|
-
const CyclesMonitoring = IDL.Record({
|
|
11
|
-
strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
12
|
-
enabled: IDL.Bool
|
|
13
|
-
});
|
|
14
|
-
const Monitoring = IDL.Record({cycles: IDL.Opt(CyclesMonitoring)});
|
|
15
|
-
const Settings = IDL.Record({monitoring: IDL.Opt(Monitoring)});
|
|
16
|
-
const Orbiter = IDL.Record({
|
|
17
|
-
updated_at: IDL.Nat64,
|
|
18
|
-
orbiter_id: IDL.Principal,
|
|
19
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
20
|
-
created_at: IDL.Nat64,
|
|
21
|
-
settings: IDL.Opt(Settings)
|
|
22
|
-
});
|
|
23
|
-
const CreateCanisterConfig = IDL.Record({
|
|
24
|
-
subnet_id: IDL.Opt(IDL.Principal),
|
|
25
|
-
name: IDL.Opt(IDL.Text)
|
|
26
|
-
});
|
|
27
|
-
const Satellite = IDL.Record({
|
|
28
|
-
updated_at: IDL.Nat64,
|
|
29
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
30
|
-
created_at: IDL.Nat64,
|
|
31
|
-
satellite_id: IDL.Principal,
|
|
32
|
-
settings: IDL.Opt(Settings)
|
|
33
|
-
});
|
|
34
|
-
const DepositCyclesArgs = IDL.Record({
|
|
35
|
-
cycles: IDL.Nat,
|
|
36
|
-
destination_id: IDL.Principal
|
|
37
|
-
});
|
|
38
|
-
const DepositedCyclesEmailNotification = IDL.Record({
|
|
39
|
-
to: IDL.Opt(IDL.Text),
|
|
40
|
-
enabled: IDL.Bool
|
|
41
|
-
});
|
|
42
|
-
const CyclesMonitoringConfig = IDL.Record({
|
|
43
|
-
notification: IDL.Opt(DepositedCyclesEmailNotification),
|
|
44
|
-
default_strategy: IDL.Opt(CyclesMonitoringStrategy)
|
|
45
|
-
});
|
|
46
|
-
const MonitoringConfig = IDL.Record({
|
|
47
|
-
cycles: IDL.Opt(CyclesMonitoringConfig)
|
|
48
|
-
});
|
|
49
|
-
const Config = IDL.Record({monitoring: IDL.Opt(MonitoringConfig)});
|
|
50
|
-
const GetMonitoringHistory = IDL.Record({
|
|
51
|
-
to: IDL.Opt(IDL.Nat64),
|
|
52
|
-
from: IDL.Opt(IDL.Nat64),
|
|
53
|
-
segment_id: IDL.Principal
|
|
54
|
-
});
|
|
55
|
-
const MonitoringHistoryKey = IDL.Record({
|
|
56
|
-
segment_id: IDL.Principal,
|
|
57
|
-
created_at: IDL.Nat64,
|
|
58
|
-
nonce: IDL.Int32
|
|
59
|
-
});
|
|
60
|
-
const CyclesBalance = IDL.Record({
|
|
61
|
-
timestamp: IDL.Nat64,
|
|
62
|
-
amount: IDL.Nat
|
|
63
|
-
});
|
|
64
|
-
const FundingErrorCode = IDL.Variant({
|
|
65
|
-
BalanceCheckFailed: IDL.Null,
|
|
66
|
-
ObtainCyclesFailed: IDL.Null,
|
|
67
|
-
DepositFailed: IDL.Null,
|
|
68
|
-
InsufficientCycles: IDL.Null,
|
|
69
|
-
Other: IDL.Text
|
|
70
|
-
});
|
|
71
|
-
const FundingFailure = IDL.Record({
|
|
72
|
-
timestamp: IDL.Nat64,
|
|
73
|
-
error_code: FundingErrorCode
|
|
74
|
-
});
|
|
75
|
-
const MonitoringHistoryCycles = IDL.Record({
|
|
76
|
-
deposited_cycles: IDL.Opt(CyclesBalance),
|
|
77
|
-
cycles: CyclesBalance,
|
|
78
|
-
funding_failure: IDL.Opt(FundingFailure)
|
|
79
|
-
});
|
|
80
|
-
const MonitoringHistory = IDL.Record({
|
|
81
|
-
cycles: IDL.Opt(MonitoringHistoryCycles)
|
|
82
|
-
});
|
|
83
|
-
const CyclesMonitoringStatus = IDL.Record({
|
|
84
|
-
monitored_ids: IDL.Vec(IDL.Principal),
|
|
85
|
-
running: IDL.Bool
|
|
86
|
-
});
|
|
87
|
-
const MonitoringStatus = IDL.Record({
|
|
88
|
-
cycles: IDL.Opt(CyclesMonitoringStatus)
|
|
89
|
-
});
|
|
90
|
-
const MissionControlSettings = IDL.Record({
|
|
91
|
-
updated_at: IDL.Nat64,
|
|
92
|
-
created_at: IDL.Nat64,
|
|
93
|
-
monitoring: IDL.Opt(Monitoring)
|
|
94
|
-
});
|
|
95
|
-
const User = IDL.Record({
|
|
96
|
-
updated_at: IDL.Nat64,
|
|
97
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
98
|
-
user: IDL.Opt(IDL.Principal),
|
|
99
|
-
created_at: IDL.Nat64,
|
|
100
|
-
config: IDL.Opt(Config)
|
|
101
|
-
});
|
|
102
|
-
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
103
|
-
const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
|
|
104
|
-
const TransferArgs = IDL.Record({
|
|
105
|
-
to: IDL.Vec(IDL.Nat8),
|
|
106
|
-
fee: Tokens,
|
|
107
|
-
memo: IDL.Nat64,
|
|
108
|
-
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
109
|
-
created_at_time: IDL.Opt(Timestamp),
|
|
110
|
-
amount: Tokens
|
|
111
|
-
});
|
|
112
|
-
const TransferError = IDL.Variant({
|
|
113
|
-
TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
|
|
114
|
-
BadFee: IDL.Record({expected_fee: Tokens}),
|
|
115
|
-
TxDuplicate: IDL.Record({duplicate_of: IDL.Nat64}),
|
|
116
|
-
TxCreatedInFuture: IDL.Null,
|
|
117
|
-
InsufficientFunds: IDL.Record({balance: Tokens})
|
|
118
|
-
});
|
|
119
|
-
const Result = IDL.Variant({Ok: IDL.Nat64, Err: TransferError});
|
|
120
|
-
const Account = IDL.Record({
|
|
121
|
-
owner: IDL.Principal,
|
|
122
|
-
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
123
|
-
});
|
|
124
|
-
const TransferArg = IDL.Record({
|
|
125
|
-
to: Account,
|
|
126
|
-
fee: IDL.Opt(IDL.Nat),
|
|
127
|
-
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
128
|
-
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
129
|
-
created_at_time: IDL.Opt(IDL.Nat64),
|
|
130
|
-
amount: IDL.Nat
|
|
131
|
-
});
|
|
132
|
-
const TransferError_1 = IDL.Variant({
|
|
133
|
-
GenericError: IDL.Record({
|
|
134
|
-
message: IDL.Text,
|
|
135
|
-
error_code: IDL.Nat
|
|
136
|
-
}),
|
|
137
|
-
TemporarilyUnavailable: IDL.Null,
|
|
138
|
-
BadBurn: IDL.Record({min_burn_amount: IDL.Nat}),
|
|
139
|
-
Duplicate: IDL.Record({duplicate_of: IDL.Nat}),
|
|
140
|
-
BadFee: IDL.Record({expected_fee: IDL.Nat}),
|
|
141
|
-
CreatedInFuture: IDL.Record({ledger_time: IDL.Nat64}),
|
|
142
|
-
TooOld: IDL.Null,
|
|
143
|
-
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
144
|
-
});
|
|
145
|
-
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
146
|
-
const ControllerScope = IDL.Variant({
|
|
147
|
-
Write: IDL.Null,
|
|
148
|
-
Admin: IDL.Null,
|
|
149
|
-
Submit: IDL.Null
|
|
150
|
-
});
|
|
151
|
-
const Controller = IDL.Record({
|
|
152
|
-
updated_at: IDL.Nat64,
|
|
153
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
154
|
-
created_at: IDL.Nat64,
|
|
155
|
-
scope: ControllerScope,
|
|
156
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
157
|
-
});
|
|
158
|
-
const SetController = IDL.Record({
|
|
159
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
160
|
-
scope: ControllerScope,
|
|
161
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
162
|
-
});
|
|
163
|
-
const SegmentsMonitoringStrategy = IDL.Record({
|
|
164
|
-
ids: IDL.Vec(IDL.Principal),
|
|
165
|
-
strategy: CyclesMonitoringStrategy
|
|
166
|
-
});
|
|
167
|
-
const CyclesMonitoringStartConfig = IDL.Record({
|
|
168
|
-
orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
|
|
169
|
-
mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
170
|
-
satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
|
|
171
|
-
});
|
|
172
|
-
const MonitoringStartConfig = IDL.Record({
|
|
173
|
-
cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
|
|
174
|
-
});
|
|
175
|
-
const CyclesMonitoringStopConfig = IDL.Record({
|
|
176
|
-
satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
177
|
-
try_mission_control: IDL.Opt(IDL.Bool),
|
|
178
|
-
orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
|
|
179
|
-
});
|
|
180
|
-
const MonitoringStopConfig = IDL.Record({
|
|
181
|
-
cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
|
|
182
|
-
});
|
|
183
|
-
return IDL.Service({
|
|
184
|
-
add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
185
|
-
add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
186
|
-
create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
187
|
-
create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
|
|
188
|
-
create_satellite: IDL.Func([IDL.Text], [Satellite], []),
|
|
189
|
-
create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
|
|
190
|
-
del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
191
|
-
del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
192
|
-
del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
193
|
-
del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
194
|
-
del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
195
|
-
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
196
|
-
get_config: IDL.Func([], [IDL.Opt(Config)], ['query']),
|
|
197
|
-
get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], ['query']),
|
|
198
|
-
get_monitoring_history: IDL.Func(
|
|
199
|
-
[GetMonitoringHistory],
|
|
200
|
-
[IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
|
|
201
|
-
['query']
|
|
202
|
-
),
|
|
203
|
-
get_monitoring_status: IDL.Func([], [MonitoringStatus], ['query']),
|
|
204
|
-
get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], ['query']),
|
|
205
|
-
get_user: IDL.Func([], [IDL.Principal], ['query']),
|
|
206
|
-
get_user_data: IDL.Func([], [User], ['query']),
|
|
207
|
-
icp_transfer: IDL.Func([TransferArgs], [Result], []),
|
|
208
|
-
icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
|
|
209
|
-
list_mission_control_controllers: IDL.Func(
|
|
210
|
-
[],
|
|
211
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
212
|
-
['query']
|
|
213
|
-
),
|
|
214
|
-
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
|
|
215
|
-
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
|
|
216
|
-
remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
217
|
-
remove_satellites_controllers: IDL.Func(
|
|
218
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
|
|
219
|
-
[],
|
|
220
|
-
[]
|
|
221
|
-
),
|
|
222
|
-
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
223
|
-
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
224
|
-
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
|
|
225
|
-
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
226
|
-
set_orbiter_metadata: IDL.Func(
|
|
227
|
-
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
228
|
-
[Orbiter],
|
|
229
|
-
[]
|
|
230
|
-
),
|
|
231
|
-
set_orbiters_controllers: IDL.Func(
|
|
232
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
233
|
-
[],
|
|
234
|
-
[]
|
|
235
|
-
),
|
|
236
|
-
set_satellite: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Satellite], []),
|
|
237
|
-
set_satellite_metadata: IDL.Func(
|
|
238
|
-
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
239
|
-
[Satellite],
|
|
240
|
-
[]
|
|
241
|
-
),
|
|
242
|
-
set_satellites_controllers: IDL.Func(
|
|
243
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
244
|
-
[],
|
|
245
|
-
[]
|
|
246
|
-
),
|
|
247
|
-
start_monitoring: IDL.Func([], [], []),
|
|
248
|
-
stop_monitoring: IDL.Func([], [], []),
|
|
249
|
-
top_up: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
250
|
-
unset_orbiter: IDL.Func([IDL.Principal], [], []),
|
|
251
|
-
unset_satellite: IDL.Func([IDL.Principal], [], []),
|
|
252
|
-
update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
|
|
253
|
-
update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
|
|
254
|
-
});
|
|
255
|
-
};
|
|
256
|
-
// @ts-ignore
|
|
257
|
-
export const init = ({IDL}) => {
|
|
258
|
-
return [];
|
|
259
|
-
};
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
4
|
-
|
|
5
|
-
export interface AnalyticKey {
|
|
6
|
-
key: string;
|
|
7
|
-
collected_at: bigint;
|
|
8
|
-
}
|
|
9
|
-
export interface AnalyticsBrowsersPageViews {
|
|
10
|
-
safari: number;
|
|
11
|
-
opera: number;
|
|
12
|
-
others: number;
|
|
13
|
-
firefox: number;
|
|
14
|
-
chrome: number;
|
|
15
|
-
}
|
|
16
|
-
export interface AnalyticsClientsPageViews {
|
|
17
|
-
browsers: AnalyticsBrowsersPageViews;
|
|
18
|
-
devices: AnalyticsDevicesPageViews;
|
|
19
|
-
}
|
|
20
|
-
export interface AnalyticsDevicesPageViews {
|
|
21
|
-
desktop: number;
|
|
22
|
-
others: number;
|
|
23
|
-
mobile: number;
|
|
24
|
-
}
|
|
25
|
-
export interface AnalyticsMetricsPageViews {
|
|
26
|
-
bounce_rate: number;
|
|
27
|
-
average_page_views_per_session: number;
|
|
28
|
-
daily_total_page_views: Array<[CalendarDate, number]>;
|
|
29
|
-
total_page_views: number;
|
|
30
|
-
unique_page_views: bigint;
|
|
31
|
-
unique_sessions: bigint;
|
|
32
|
-
}
|
|
33
|
-
export interface AnalyticsTop10PageViews {
|
|
34
|
-
referrers: Array<[string, number]>;
|
|
35
|
-
pages: Array<[string, number]>;
|
|
36
|
-
}
|
|
37
|
-
export interface AnalyticsTrackEvents {
|
|
38
|
-
total: Array<[string, number]>;
|
|
39
|
-
}
|
|
40
|
-
export interface AnalyticsWebVitalsPageMetrics {
|
|
41
|
-
cls: [] | [number];
|
|
42
|
-
fcp: [] | [number];
|
|
43
|
-
inp: [] | [number];
|
|
44
|
-
lcp: [] | [number];
|
|
45
|
-
ttfb: [] | [number];
|
|
46
|
-
}
|
|
47
|
-
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
48
|
-
overall: AnalyticsWebVitalsPageMetrics;
|
|
49
|
-
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
50
|
-
}
|
|
51
|
-
export interface CalendarDate {
|
|
52
|
-
day: number;
|
|
53
|
-
month: number;
|
|
54
|
-
year: number;
|
|
55
|
-
}
|
|
56
|
-
export interface Controller {
|
|
57
|
-
updated_at: bigint;
|
|
58
|
-
metadata: Array<[string, string]>;
|
|
59
|
-
created_at: bigint;
|
|
60
|
-
scope: ControllerScope;
|
|
61
|
-
expires_at: [] | [bigint];
|
|
62
|
-
}
|
|
63
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
64
|
-
export interface DelSatelliteConfig {
|
|
65
|
-
version: [] | [bigint];
|
|
66
|
-
}
|
|
67
|
-
export interface DeleteControllersArgs {
|
|
68
|
-
controllers: Array<Principal>;
|
|
69
|
-
}
|
|
70
|
-
export interface DepositCyclesArgs {
|
|
71
|
-
cycles: bigint;
|
|
72
|
-
destination_id: Principal;
|
|
73
|
-
}
|
|
74
|
-
export interface GetAnalytics {
|
|
75
|
-
to: [] | [bigint];
|
|
76
|
-
from: [] | [bigint];
|
|
77
|
-
satellite_id: [] | [Principal];
|
|
78
|
-
}
|
|
79
|
-
export interface MemorySize {
|
|
80
|
-
stable: bigint;
|
|
81
|
-
heap: bigint;
|
|
82
|
-
}
|
|
83
|
-
export type NavigationType =
|
|
84
|
-
| {Navigate: null}
|
|
85
|
-
| {Restore: null}
|
|
86
|
-
| {Reload: null}
|
|
87
|
-
| {BackForward: null}
|
|
88
|
-
| {BackForwardCache: null}
|
|
89
|
-
| {Prerender: null};
|
|
90
|
-
export interface OrbiterSatelliteConfig {
|
|
91
|
-
updated_at: bigint;
|
|
92
|
-
features: [] | [OrbiterSatelliteFeatures];
|
|
93
|
-
created_at: bigint;
|
|
94
|
-
version: [] | [bigint];
|
|
95
|
-
}
|
|
96
|
-
export interface OrbiterSatelliteFeatures {
|
|
97
|
-
performance_metrics: boolean;
|
|
98
|
-
track_events: boolean;
|
|
99
|
-
page_views: boolean;
|
|
100
|
-
}
|
|
101
|
-
export interface PageView {
|
|
102
|
-
title: string;
|
|
103
|
-
updated_at: bigint;
|
|
104
|
-
referrer: [] | [string];
|
|
105
|
-
time_zone: string;
|
|
106
|
-
session_id: string;
|
|
107
|
-
href: string;
|
|
108
|
-
created_at: bigint;
|
|
109
|
-
satellite_id: Principal;
|
|
110
|
-
device: PageViewDevice;
|
|
111
|
-
version: [] | [bigint];
|
|
112
|
-
user_agent: [] | [string];
|
|
113
|
-
}
|
|
114
|
-
export interface PageViewDevice {
|
|
115
|
-
inner_height: number;
|
|
116
|
-
inner_width: number;
|
|
117
|
-
}
|
|
118
|
-
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
119
|
-
export interface PerformanceMetric {
|
|
120
|
-
updated_at: bigint;
|
|
121
|
-
session_id: string;
|
|
122
|
-
data: PerformanceData;
|
|
123
|
-
href: string;
|
|
124
|
-
metric_name: PerformanceMetricName;
|
|
125
|
-
created_at: bigint;
|
|
126
|
-
satellite_id: Principal;
|
|
127
|
-
version: [] | [bigint];
|
|
128
|
-
}
|
|
129
|
-
export type PerformanceMetricName =
|
|
130
|
-
| {CLS: null}
|
|
131
|
-
| {FCP: null}
|
|
132
|
-
| {INP: null}
|
|
133
|
-
| {LCP: null}
|
|
134
|
-
| {TTFB: null};
|
|
135
|
-
export type Result = {Ok: PageView} | {Err: string};
|
|
136
|
-
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
137
|
-
export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
|
|
138
|
-
export type Result_3 = {Ok: TrackEvent} | {Err: string};
|
|
139
|
-
export interface SetController {
|
|
140
|
-
metadata: Array<[string, string]>;
|
|
141
|
-
scope: ControllerScope;
|
|
142
|
-
expires_at: [] | [bigint];
|
|
143
|
-
}
|
|
144
|
-
export interface SetControllersArgs {
|
|
145
|
-
controller: SetController;
|
|
146
|
-
controllers: Array<Principal>;
|
|
147
|
-
}
|
|
148
|
-
export interface SetPageView {
|
|
149
|
-
title: string;
|
|
150
|
-
updated_at: [] | [bigint];
|
|
151
|
-
referrer: [] | [string];
|
|
152
|
-
time_zone: string;
|
|
153
|
-
session_id: string;
|
|
154
|
-
href: string;
|
|
155
|
-
satellite_id: Principal;
|
|
156
|
-
device: PageViewDevice;
|
|
157
|
-
version: [] | [bigint];
|
|
158
|
-
user_agent: [] | [string];
|
|
159
|
-
}
|
|
160
|
-
export interface SetPerformanceMetric {
|
|
161
|
-
session_id: string;
|
|
162
|
-
data: PerformanceData;
|
|
163
|
-
href: string;
|
|
164
|
-
metric_name: PerformanceMetricName;
|
|
165
|
-
satellite_id: Principal;
|
|
166
|
-
version: [] | [bigint];
|
|
167
|
-
user_agent: [] | [string];
|
|
168
|
-
}
|
|
169
|
-
export interface SetSatelliteConfig {
|
|
170
|
-
features: [] | [OrbiterSatelliteFeatures];
|
|
171
|
-
version: [] | [bigint];
|
|
172
|
-
}
|
|
173
|
-
export interface SetTrackEvent {
|
|
174
|
-
updated_at: [] | [bigint];
|
|
175
|
-
session_id: string;
|
|
176
|
-
metadata: [] | [Array<[string, string]>];
|
|
177
|
-
name: string;
|
|
178
|
-
satellite_id: Principal;
|
|
179
|
-
version: [] | [bigint];
|
|
180
|
-
user_agent: [] | [string];
|
|
181
|
-
}
|
|
182
|
-
export interface TrackEvent {
|
|
183
|
-
updated_at: bigint;
|
|
184
|
-
session_id: string;
|
|
185
|
-
metadata: [] | [Array<[string, string]>];
|
|
186
|
-
name: string;
|
|
187
|
-
created_at: bigint;
|
|
188
|
-
satellite_id: Principal;
|
|
189
|
-
version: [] | [bigint];
|
|
190
|
-
}
|
|
191
|
-
export interface WebVitalsMetric {
|
|
192
|
-
id: string;
|
|
193
|
-
value: number;
|
|
194
|
-
navigation_type: [] | [NavigationType];
|
|
195
|
-
delta: number;
|
|
196
|
-
}
|
|
197
|
-
export interface _SERVICE {
|
|
198
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
199
|
-
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
200
|
-
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
201
|
-
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
202
|
-
get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
|
|
203
|
-
get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
|
|
204
|
-
get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
|
|
205
|
-
get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
|
|
206
|
-
get_performance_metrics_analytics_web_vitals: ActorMethod<
|
|
207
|
-
[GetAnalytics],
|
|
208
|
-
AnalyticsWebVitalsPerformanceMetrics
|
|
209
|
-
>;
|
|
210
|
-
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
211
|
-
get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
|
|
212
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
213
|
-
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
214
|
-
memory_size: ActorMethod<[], MemorySize>;
|
|
215
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
216
|
-
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
217
|
-
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
218
|
-
set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
|
|
219
|
-
set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
|
|
220
|
-
set_satellite_configs: ActorMethod<
|
|
221
|
-
[Array<[Principal, SetSatelliteConfig]>],
|
|
222
|
-
Array<[Principal, OrbiterSatelliteConfig]>
|
|
223
|
-
>;
|
|
224
|
-
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
225
|
-
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
226
|
-
version: ActorMethod<[], string>;
|
|
227
|
-
}
|
|
228
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
229
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|