@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,271 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
export const idlFactory = ({IDL}) => {
|
|
3
|
-
const DeleteControllersArgs = IDL.Record({
|
|
4
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
5
|
-
});
|
|
6
|
-
const ControllerScope = IDL.Variant({
|
|
7
|
-
Write: IDL.Null,
|
|
8
|
-
Admin: IDL.Null
|
|
9
|
-
});
|
|
10
|
-
const Controller = IDL.Record({
|
|
11
|
-
updated_at: IDL.Nat64,
|
|
12
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
13
|
-
created_at: IDL.Nat64,
|
|
14
|
-
scope: ControllerScope,
|
|
15
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
16
|
-
});
|
|
17
|
-
const DelSatelliteConfig = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
18
|
-
const DepositCyclesArgs = IDL.Record({
|
|
19
|
-
cycles: IDL.Nat,
|
|
20
|
-
destination_id: IDL.Principal
|
|
21
|
-
});
|
|
22
|
-
const GetAnalytics = IDL.Record({
|
|
23
|
-
to: IDL.Opt(IDL.Nat64),
|
|
24
|
-
from: IDL.Opt(IDL.Nat64),
|
|
25
|
-
satellite_id: IDL.Opt(IDL.Principal)
|
|
26
|
-
});
|
|
27
|
-
const AnalyticKey = IDL.Record({
|
|
28
|
-
key: IDL.Text,
|
|
29
|
-
collected_at: IDL.Nat64
|
|
30
|
-
});
|
|
31
|
-
const PageViewDevice = IDL.Record({
|
|
32
|
-
inner_height: IDL.Nat16,
|
|
33
|
-
inner_width: IDL.Nat16
|
|
34
|
-
});
|
|
35
|
-
const PageView = IDL.Record({
|
|
36
|
-
title: IDL.Text,
|
|
37
|
-
updated_at: IDL.Nat64,
|
|
38
|
-
referrer: IDL.Opt(IDL.Text),
|
|
39
|
-
time_zone: IDL.Text,
|
|
40
|
-
session_id: IDL.Text,
|
|
41
|
-
href: IDL.Text,
|
|
42
|
-
created_at: IDL.Nat64,
|
|
43
|
-
satellite_id: IDL.Principal,
|
|
44
|
-
device: PageViewDevice,
|
|
45
|
-
version: IDL.Opt(IDL.Nat64),
|
|
46
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
47
|
-
});
|
|
48
|
-
const AnalyticsBrowsersPageViews = IDL.Record({
|
|
49
|
-
safari: IDL.Float64,
|
|
50
|
-
opera: IDL.Float64,
|
|
51
|
-
others: IDL.Float64,
|
|
52
|
-
firefox: IDL.Float64,
|
|
53
|
-
chrome: IDL.Float64
|
|
54
|
-
});
|
|
55
|
-
const AnalyticsDevicesPageViews = IDL.Record({
|
|
56
|
-
desktop: IDL.Float64,
|
|
57
|
-
others: IDL.Float64,
|
|
58
|
-
mobile: IDL.Float64
|
|
59
|
-
});
|
|
60
|
-
const AnalyticsClientsPageViews = IDL.Record({
|
|
61
|
-
browsers: AnalyticsBrowsersPageViews,
|
|
62
|
-
devices: AnalyticsDevicesPageViews
|
|
63
|
-
});
|
|
64
|
-
const CalendarDate = IDL.Record({
|
|
65
|
-
day: IDL.Nat8,
|
|
66
|
-
month: IDL.Nat8,
|
|
67
|
-
year: IDL.Int32
|
|
68
|
-
});
|
|
69
|
-
const AnalyticsMetricsPageViews = IDL.Record({
|
|
70
|
-
bounce_rate: IDL.Float64,
|
|
71
|
-
average_page_views_per_session: IDL.Float64,
|
|
72
|
-
daily_total_page_views: IDL.Vec(IDL.Tuple(CalendarDate, IDL.Nat32)),
|
|
73
|
-
total_page_views: IDL.Nat32,
|
|
74
|
-
unique_page_views: IDL.Nat64,
|
|
75
|
-
unique_sessions: IDL.Nat64
|
|
76
|
-
});
|
|
77
|
-
const AnalyticsTop10PageViews = IDL.Record({
|
|
78
|
-
referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
79
|
-
pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
80
|
-
});
|
|
81
|
-
const NavigationType = IDL.Variant({
|
|
82
|
-
Navigate: IDL.Null,
|
|
83
|
-
Restore: IDL.Null,
|
|
84
|
-
Reload: IDL.Null,
|
|
85
|
-
BackForward: IDL.Null,
|
|
86
|
-
BackForwardCache: IDL.Null,
|
|
87
|
-
Prerender: IDL.Null
|
|
88
|
-
});
|
|
89
|
-
const WebVitalsMetric = IDL.Record({
|
|
90
|
-
id: IDL.Text,
|
|
91
|
-
value: IDL.Float64,
|
|
92
|
-
navigation_type: IDL.Opt(NavigationType),
|
|
93
|
-
delta: IDL.Float64
|
|
94
|
-
});
|
|
95
|
-
const PerformanceData = IDL.Variant({WebVitalsMetric: WebVitalsMetric});
|
|
96
|
-
const PerformanceMetricName = IDL.Variant({
|
|
97
|
-
CLS: IDL.Null,
|
|
98
|
-
FCP: IDL.Null,
|
|
99
|
-
INP: IDL.Null,
|
|
100
|
-
LCP: IDL.Null,
|
|
101
|
-
TTFB: IDL.Null
|
|
102
|
-
});
|
|
103
|
-
const PerformanceMetric = IDL.Record({
|
|
104
|
-
updated_at: IDL.Nat64,
|
|
105
|
-
session_id: IDL.Text,
|
|
106
|
-
data: PerformanceData,
|
|
107
|
-
href: IDL.Text,
|
|
108
|
-
metric_name: PerformanceMetricName,
|
|
109
|
-
created_at: IDL.Nat64,
|
|
110
|
-
satellite_id: IDL.Principal,
|
|
111
|
-
version: IDL.Opt(IDL.Nat64)
|
|
112
|
-
});
|
|
113
|
-
const AnalyticsWebVitalsPageMetrics = IDL.Record({
|
|
114
|
-
cls: IDL.Opt(IDL.Float64),
|
|
115
|
-
fcp: IDL.Opt(IDL.Float64),
|
|
116
|
-
inp: IDL.Opt(IDL.Float64),
|
|
117
|
-
lcp: IDL.Opt(IDL.Float64),
|
|
118
|
-
ttfb: IDL.Opt(IDL.Float64)
|
|
119
|
-
});
|
|
120
|
-
const AnalyticsWebVitalsPerformanceMetrics = IDL.Record({
|
|
121
|
-
overall: AnalyticsWebVitalsPageMetrics,
|
|
122
|
-
pages: IDL.Vec(IDL.Tuple(IDL.Text, AnalyticsWebVitalsPageMetrics))
|
|
123
|
-
});
|
|
124
|
-
const TrackEvent = IDL.Record({
|
|
125
|
-
updated_at: IDL.Nat64,
|
|
126
|
-
session_id: IDL.Text,
|
|
127
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
128
|
-
name: IDL.Text,
|
|
129
|
-
created_at: IDL.Nat64,
|
|
130
|
-
satellite_id: IDL.Principal,
|
|
131
|
-
version: IDL.Opt(IDL.Nat64)
|
|
132
|
-
});
|
|
133
|
-
const AnalyticsTrackEvents = IDL.Record({
|
|
134
|
-
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
135
|
-
});
|
|
136
|
-
const OrbiterSatelliteFeatures = IDL.Record({
|
|
137
|
-
performance_metrics: IDL.Bool,
|
|
138
|
-
track_events: IDL.Bool,
|
|
139
|
-
page_views: IDL.Bool
|
|
140
|
-
});
|
|
141
|
-
const OrbiterSatelliteConfig = IDL.Record({
|
|
142
|
-
updated_at: IDL.Nat64,
|
|
143
|
-
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
144
|
-
created_at: IDL.Nat64,
|
|
145
|
-
version: IDL.Opt(IDL.Nat64)
|
|
146
|
-
});
|
|
147
|
-
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
148
|
-
const SetController = IDL.Record({
|
|
149
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
150
|
-
scope: ControllerScope,
|
|
151
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
152
|
-
});
|
|
153
|
-
const SetControllersArgs = IDL.Record({
|
|
154
|
-
controller: SetController,
|
|
155
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
156
|
-
});
|
|
157
|
-
const SetPageView = IDL.Record({
|
|
158
|
-
title: IDL.Text,
|
|
159
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
160
|
-
referrer: IDL.Opt(IDL.Text),
|
|
161
|
-
time_zone: IDL.Text,
|
|
162
|
-
session_id: IDL.Text,
|
|
163
|
-
href: IDL.Text,
|
|
164
|
-
satellite_id: IDL.Principal,
|
|
165
|
-
device: PageViewDevice,
|
|
166
|
-
version: IDL.Opt(IDL.Nat64),
|
|
167
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
168
|
-
});
|
|
169
|
-
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
170
|
-
const Result_1 = IDL.Variant({
|
|
171
|
-
Ok: IDL.Null,
|
|
172
|
-
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
173
|
-
});
|
|
174
|
-
const SetPerformanceMetric = IDL.Record({
|
|
175
|
-
session_id: IDL.Text,
|
|
176
|
-
data: PerformanceData,
|
|
177
|
-
href: IDL.Text,
|
|
178
|
-
metric_name: PerformanceMetricName,
|
|
179
|
-
satellite_id: IDL.Principal,
|
|
180
|
-
version: IDL.Opt(IDL.Nat64),
|
|
181
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
182
|
-
});
|
|
183
|
-
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
184
|
-
const SetSatelliteConfig = IDL.Record({
|
|
185
|
-
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
186
|
-
version: IDL.Opt(IDL.Nat64)
|
|
187
|
-
});
|
|
188
|
-
const SetTrackEvent = IDL.Record({
|
|
189
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
190
|
-
session_id: IDL.Text,
|
|
191
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
192
|
-
name: IDL.Text,
|
|
193
|
-
satellite_id: IDL.Principal,
|
|
194
|
-
version: IDL.Opt(IDL.Nat64),
|
|
195
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
196
|
-
});
|
|
197
|
-
const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
198
|
-
return IDL.Service({
|
|
199
|
-
del_controllers: IDL.Func(
|
|
200
|
-
[DeleteControllersArgs],
|
|
201
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
202
|
-
[]
|
|
203
|
-
),
|
|
204
|
-
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
205
|
-
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
206
|
-
get_page_views: IDL.Func(
|
|
207
|
-
[GetAnalytics],
|
|
208
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
209
|
-
['query']
|
|
210
|
-
),
|
|
211
|
-
get_page_views_analytics_clients: IDL.Func(
|
|
212
|
-
[GetAnalytics],
|
|
213
|
-
[AnalyticsClientsPageViews],
|
|
214
|
-
['query']
|
|
215
|
-
),
|
|
216
|
-
get_page_views_analytics_metrics: IDL.Func(
|
|
217
|
-
[GetAnalytics],
|
|
218
|
-
[AnalyticsMetricsPageViews],
|
|
219
|
-
['query']
|
|
220
|
-
),
|
|
221
|
-
get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
|
|
222
|
-
get_performance_metrics: IDL.Func(
|
|
223
|
-
[GetAnalytics],
|
|
224
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
|
|
225
|
-
['query']
|
|
226
|
-
),
|
|
227
|
-
get_performance_metrics_analytics_web_vitals: IDL.Func(
|
|
228
|
-
[GetAnalytics],
|
|
229
|
-
[AnalyticsWebVitalsPerformanceMetrics],
|
|
230
|
-
['query']
|
|
231
|
-
),
|
|
232
|
-
get_track_events: IDL.Func(
|
|
233
|
-
[GetAnalytics],
|
|
234
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
235
|
-
['query']
|
|
236
|
-
),
|
|
237
|
-
get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
|
|
238
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
239
|
-
list_satellite_configs: IDL.Func(
|
|
240
|
-
[],
|
|
241
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
242
|
-
['query']
|
|
243
|
-
),
|
|
244
|
-
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
245
|
-
set_controllers: IDL.Func(
|
|
246
|
-
[SetControllersArgs],
|
|
247
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
248
|
-
[]
|
|
249
|
-
),
|
|
250
|
-
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
251
|
-
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
252
|
-
set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
|
|
253
|
-
set_performance_metrics: IDL.Func(
|
|
254
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
|
|
255
|
-
[Result_1],
|
|
256
|
-
[]
|
|
257
|
-
),
|
|
258
|
-
set_satellite_configs: IDL.Func(
|
|
259
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
260
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
261
|
-
[]
|
|
262
|
-
),
|
|
263
|
-
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
264
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
|
|
265
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
266
|
-
});
|
|
267
|
-
};
|
|
268
|
-
// @ts-ignore
|
|
269
|
-
export const init = ({IDL}) => {
|
|
270
|
-
return [];
|
|
271
|
-
};
|
|
@@ -1,277 +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
|
-
operating_systems: [] | [AnalyticsOperatingSystemsPageViews];
|
|
19
|
-
devices: AnalyticsDevicesPageViews;
|
|
20
|
-
}
|
|
21
|
-
export interface AnalyticsDevicesPageViews {
|
|
22
|
-
desktop: number;
|
|
23
|
-
laptop: [] | [number];
|
|
24
|
-
others: number;
|
|
25
|
-
tablet: [] | [number];
|
|
26
|
-
mobile: number;
|
|
27
|
-
}
|
|
28
|
-
export interface AnalyticsMetricsPageViews {
|
|
29
|
-
bounce_rate: number;
|
|
30
|
-
average_page_views_per_session: number;
|
|
31
|
-
daily_total_page_views: Array<[CalendarDate, number]>;
|
|
32
|
-
total_page_views: number;
|
|
33
|
-
unique_page_views: bigint;
|
|
34
|
-
unique_sessions: bigint;
|
|
35
|
-
}
|
|
36
|
-
export interface AnalyticsOperatingSystemsPageViews {
|
|
37
|
-
ios: number;
|
|
38
|
-
macos: number;
|
|
39
|
-
others: number;
|
|
40
|
-
linux: number;
|
|
41
|
-
android: number;
|
|
42
|
-
windows: number;
|
|
43
|
-
}
|
|
44
|
-
export interface AnalyticsTop10PageViews {
|
|
45
|
-
referrers: Array<[string, number]>;
|
|
46
|
-
pages: Array<[string, number]>;
|
|
47
|
-
utm_campaigns: [] | [Array<[string, number]>];
|
|
48
|
-
utm_sources: [] | [Array<[string, number]>];
|
|
49
|
-
time_zones: [] | [Array<[string, number]>];
|
|
50
|
-
}
|
|
51
|
-
export interface AnalyticsTrackEvents {
|
|
52
|
-
total: Array<[string, number]>;
|
|
53
|
-
}
|
|
54
|
-
export interface AnalyticsWebVitalsPageMetrics {
|
|
55
|
-
cls: [] | [number];
|
|
56
|
-
fcp: [] | [number];
|
|
57
|
-
inp: [] | [number];
|
|
58
|
-
lcp: [] | [number];
|
|
59
|
-
ttfb: [] | [number];
|
|
60
|
-
}
|
|
61
|
-
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
62
|
-
overall: AnalyticsWebVitalsPageMetrics;
|
|
63
|
-
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
64
|
-
}
|
|
65
|
-
export interface CalendarDate {
|
|
66
|
-
day: number;
|
|
67
|
-
month: number;
|
|
68
|
-
year: number;
|
|
69
|
-
}
|
|
70
|
-
export interface Controller {
|
|
71
|
-
updated_at: bigint;
|
|
72
|
-
metadata: Array<[string, string]>;
|
|
73
|
-
created_at: bigint;
|
|
74
|
-
scope: ControllerScope;
|
|
75
|
-
expires_at: [] | [bigint];
|
|
76
|
-
}
|
|
77
|
-
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
|
|
78
|
-
export interface DelSatelliteConfig {
|
|
79
|
-
version: [] | [bigint];
|
|
80
|
-
}
|
|
81
|
-
export interface DeleteControllersArgs {
|
|
82
|
-
controllers: Array<Principal>;
|
|
83
|
-
}
|
|
84
|
-
export interface DepositCyclesArgs {
|
|
85
|
-
cycles: bigint;
|
|
86
|
-
destination_id: Principal;
|
|
87
|
-
}
|
|
88
|
-
export interface GetAnalytics {
|
|
89
|
-
to: [] | [bigint];
|
|
90
|
-
from: [] | [bigint];
|
|
91
|
-
satellite_id: [] | [Principal];
|
|
92
|
-
}
|
|
93
|
-
export interface HttpRequest {
|
|
94
|
-
url: string;
|
|
95
|
-
method: string;
|
|
96
|
-
body: Uint8Array | number[];
|
|
97
|
-
headers: Array<[string, string]>;
|
|
98
|
-
certificate_version: [] | [number];
|
|
99
|
-
}
|
|
100
|
-
export interface HttpResponse {
|
|
101
|
-
body: Uint8Array | number[];
|
|
102
|
-
headers: Array<[string, string]>;
|
|
103
|
-
upgrade: [] | [boolean];
|
|
104
|
-
status_code: number;
|
|
105
|
-
}
|
|
106
|
-
export interface MemorySize {
|
|
107
|
-
stable: bigint;
|
|
108
|
-
heap: bigint;
|
|
109
|
-
}
|
|
110
|
-
export type NavigationType =
|
|
111
|
-
| {Navigate: null}
|
|
112
|
-
| {Restore: null}
|
|
113
|
-
| {Reload: null}
|
|
114
|
-
| {BackForward: null}
|
|
115
|
-
| {BackForwardCache: null}
|
|
116
|
-
| {Prerender: null};
|
|
117
|
-
export interface OrbiterSatelliteConfig {
|
|
118
|
-
updated_at: bigint;
|
|
119
|
-
features: [] | [OrbiterSatelliteFeatures];
|
|
120
|
-
restricted_origin: [] | [string];
|
|
121
|
-
created_at: bigint;
|
|
122
|
-
version: [] | [bigint];
|
|
123
|
-
}
|
|
124
|
-
export interface OrbiterSatelliteFeatures {
|
|
125
|
-
performance_metrics: boolean;
|
|
126
|
-
track_events: boolean;
|
|
127
|
-
page_views: boolean;
|
|
128
|
-
}
|
|
129
|
-
export interface PageView {
|
|
130
|
-
client: [] | [PageViewClient];
|
|
131
|
-
title: string;
|
|
132
|
-
updated_at: bigint;
|
|
133
|
-
referrer: [] | [string];
|
|
134
|
-
time_zone: string;
|
|
135
|
-
session_id: string;
|
|
136
|
-
campaign: [] | [PageViewCampaign];
|
|
137
|
-
href: string;
|
|
138
|
-
created_at: bigint;
|
|
139
|
-
satellite_id: Principal;
|
|
140
|
-
device: PageViewDevice;
|
|
141
|
-
version: [] | [bigint];
|
|
142
|
-
user_agent: [] | [string];
|
|
143
|
-
}
|
|
144
|
-
export interface PageViewCampaign {
|
|
145
|
-
utm_content: [] | [string];
|
|
146
|
-
utm_medium: [] | [string];
|
|
147
|
-
utm_source: string;
|
|
148
|
-
utm_term: [] | [string];
|
|
149
|
-
utm_campaign: [] | [string];
|
|
150
|
-
}
|
|
151
|
-
export interface PageViewClient {
|
|
152
|
-
os: string;
|
|
153
|
-
device: [] | [string];
|
|
154
|
-
browser: string;
|
|
155
|
-
}
|
|
156
|
-
export interface PageViewDevice {
|
|
157
|
-
inner_height: number;
|
|
158
|
-
screen_height: [] | [number];
|
|
159
|
-
screen_width: [] | [number];
|
|
160
|
-
inner_width: number;
|
|
161
|
-
}
|
|
162
|
-
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
163
|
-
export interface PerformanceMetric {
|
|
164
|
-
updated_at: bigint;
|
|
165
|
-
session_id: string;
|
|
166
|
-
data: PerformanceData;
|
|
167
|
-
href: string;
|
|
168
|
-
metric_name: PerformanceMetricName;
|
|
169
|
-
created_at: bigint;
|
|
170
|
-
satellite_id: Principal;
|
|
171
|
-
version: [] | [bigint];
|
|
172
|
-
}
|
|
173
|
-
export type PerformanceMetricName =
|
|
174
|
-
| {CLS: null}
|
|
175
|
-
| {FCP: null}
|
|
176
|
-
| {INP: null}
|
|
177
|
-
| {LCP: null}
|
|
178
|
-
| {TTFB: null};
|
|
179
|
-
export type Result = {Ok: PageView} | {Err: string};
|
|
180
|
-
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
181
|
-
export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
|
|
182
|
-
export type Result_3 = {Ok: TrackEvent} | {Err: string};
|
|
183
|
-
export interface SetController {
|
|
184
|
-
metadata: Array<[string, string]>;
|
|
185
|
-
scope: ControllerScope;
|
|
186
|
-
expires_at: [] | [bigint];
|
|
187
|
-
}
|
|
188
|
-
export interface SetControllersArgs {
|
|
189
|
-
controller: SetController;
|
|
190
|
-
controllers: Array<Principal>;
|
|
191
|
-
}
|
|
192
|
-
export interface SetPageView {
|
|
193
|
-
client: [] | [PageViewClient];
|
|
194
|
-
title: string;
|
|
195
|
-
updated_at: [] | [bigint];
|
|
196
|
-
referrer: [] | [string];
|
|
197
|
-
time_zone: string;
|
|
198
|
-
session_id: string;
|
|
199
|
-
campaign: [] | [PageViewCampaign];
|
|
200
|
-
href: string;
|
|
201
|
-
satellite_id: Principal;
|
|
202
|
-
device: PageViewDevice;
|
|
203
|
-
version: [] | [bigint];
|
|
204
|
-
user_agent: [] | [string];
|
|
205
|
-
}
|
|
206
|
-
export interface SetPerformanceMetric {
|
|
207
|
-
session_id: string;
|
|
208
|
-
data: PerformanceData;
|
|
209
|
-
href: string;
|
|
210
|
-
metric_name: PerformanceMetricName;
|
|
211
|
-
satellite_id: Principal;
|
|
212
|
-
version: [] | [bigint];
|
|
213
|
-
user_agent: [] | [string];
|
|
214
|
-
}
|
|
215
|
-
export interface SetSatelliteConfig {
|
|
216
|
-
features: [] | [OrbiterSatelliteFeatures];
|
|
217
|
-
restricted_origin: [] | [string];
|
|
218
|
-
version: [] | [bigint];
|
|
219
|
-
}
|
|
220
|
-
export interface SetTrackEvent {
|
|
221
|
-
updated_at: [] | [bigint];
|
|
222
|
-
session_id: string;
|
|
223
|
-
metadata: [] | [Array<[string, string]>];
|
|
224
|
-
name: string;
|
|
225
|
-
satellite_id: Principal;
|
|
226
|
-
version: [] | [bigint];
|
|
227
|
-
user_agent: [] | [string];
|
|
228
|
-
}
|
|
229
|
-
export interface TrackEvent {
|
|
230
|
-
updated_at: bigint;
|
|
231
|
-
session_id: string;
|
|
232
|
-
metadata: [] | [Array<[string, string]>];
|
|
233
|
-
name: string;
|
|
234
|
-
created_at: bigint;
|
|
235
|
-
satellite_id: Principal;
|
|
236
|
-
version: [] | [bigint];
|
|
237
|
-
}
|
|
238
|
-
export interface WebVitalsMetric {
|
|
239
|
-
id: string;
|
|
240
|
-
value: number;
|
|
241
|
-
navigation_type: [] | [NavigationType];
|
|
242
|
-
delta: number;
|
|
243
|
-
}
|
|
244
|
-
export interface _SERVICE {
|
|
245
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
246
|
-
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
247
|
-
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
248
|
-
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
249
|
-
get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
|
|
250
|
-
get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
|
|
251
|
-
get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
|
|
252
|
-
get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
|
|
253
|
-
get_performance_metrics_analytics_web_vitals: ActorMethod<
|
|
254
|
-
[GetAnalytics],
|
|
255
|
-
AnalyticsWebVitalsPerformanceMetrics
|
|
256
|
-
>;
|
|
257
|
-
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
258
|
-
get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
|
|
259
|
-
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
260
|
-
http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
|
|
261
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
262
|
-
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
263
|
-
memory_size: ActorMethod<[], MemorySize>;
|
|
264
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
265
|
-
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
266
|
-
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
267
|
-
set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
|
|
268
|
-
set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
|
|
269
|
-
set_satellite_configs: ActorMethod<
|
|
270
|
-
[Array<[Principal, SetSatelliteConfig]>],
|
|
271
|
-
Array<[Principal, OrbiterSatelliteConfig]>
|
|
272
|
-
>;
|
|
273
|
-
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
274
|
-
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
275
|
-
}
|
|
276
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
277
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|