@junobuild/admin 0.1.6 → 0.1.7

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.
@@ -0,0 +1,247 @@
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 MonitoringHistoryCycles = IDL.Record({
65
+ deposited_cycles: IDL.Opt(CyclesBalance),
66
+ cycles: CyclesBalance
67
+ });
68
+ const MonitoringHistory = IDL.Record({
69
+ cycles: IDL.Opt(MonitoringHistoryCycles)
70
+ });
71
+ const CyclesMonitoringStatus = IDL.Record({
72
+ monitored_ids: IDL.Vec(IDL.Principal),
73
+ running: IDL.Bool
74
+ });
75
+ const MonitoringStatus = IDL.Record({
76
+ cycles: IDL.Opt(CyclesMonitoringStatus)
77
+ });
78
+ const MissionControlSettings = IDL.Record({
79
+ updated_at: IDL.Nat64,
80
+ created_at: IDL.Nat64,
81
+ monitoring: IDL.Opt(Monitoring)
82
+ });
83
+ const User = IDL.Record({
84
+ updated_at: IDL.Nat64,
85
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
86
+ user: IDL.Opt(IDL.Principal),
87
+ created_at: IDL.Nat64,
88
+ config: IDL.Opt(Config)
89
+ });
90
+ const Tokens = IDL.Record({e8s: IDL.Nat64});
91
+ const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
92
+ const TransferArgs = IDL.Record({
93
+ to: IDL.Vec(IDL.Nat8),
94
+ fee: Tokens,
95
+ memo: IDL.Nat64,
96
+ from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
97
+ created_at_time: IDL.Opt(Timestamp),
98
+ amount: Tokens
99
+ });
100
+ const TransferError = IDL.Variant({
101
+ TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
102
+ BadFee: IDL.Record({expected_fee: Tokens}),
103
+ TxDuplicate: IDL.Record({duplicate_of: IDL.Nat64}),
104
+ TxCreatedInFuture: IDL.Null,
105
+ InsufficientFunds: IDL.Record({balance: Tokens})
106
+ });
107
+ const Result = IDL.Variant({Ok: IDL.Nat64, Err: TransferError});
108
+ const Account = IDL.Record({
109
+ owner: IDL.Principal,
110
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
111
+ });
112
+ const TransferArg = IDL.Record({
113
+ to: Account,
114
+ fee: IDL.Opt(IDL.Nat),
115
+ memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
116
+ from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
117
+ created_at_time: IDL.Opt(IDL.Nat64),
118
+ amount: IDL.Nat
119
+ });
120
+ const TransferError_1 = IDL.Variant({
121
+ GenericError: IDL.Record({
122
+ message: IDL.Text,
123
+ error_code: IDL.Nat
124
+ }),
125
+ TemporarilyUnavailable: IDL.Null,
126
+ BadBurn: IDL.Record({min_burn_amount: IDL.Nat}),
127
+ Duplicate: IDL.Record({duplicate_of: IDL.Nat}),
128
+ BadFee: IDL.Record({expected_fee: IDL.Nat}),
129
+ CreatedInFuture: IDL.Record({ledger_time: IDL.Nat64}),
130
+ TooOld: IDL.Null,
131
+ InsufficientFunds: IDL.Record({balance: IDL.Nat})
132
+ });
133
+ const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
134
+ const ControllerScope = IDL.Variant({
135
+ Write: IDL.Null,
136
+ Admin: IDL.Null
137
+ });
138
+ const Controller = IDL.Record({
139
+ updated_at: IDL.Nat64,
140
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
141
+ created_at: IDL.Nat64,
142
+ scope: ControllerScope,
143
+ expires_at: IDL.Opt(IDL.Nat64)
144
+ });
145
+ const SetController = IDL.Record({
146
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
147
+ scope: ControllerScope,
148
+ expires_at: IDL.Opt(IDL.Nat64)
149
+ });
150
+ const SegmentsMonitoringStrategy = IDL.Record({
151
+ ids: IDL.Vec(IDL.Principal),
152
+ strategy: CyclesMonitoringStrategy
153
+ });
154
+ const CyclesMonitoringStartConfig = IDL.Record({
155
+ orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
156
+ mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
157
+ satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
158
+ });
159
+ const MonitoringStartConfig = IDL.Record({
160
+ cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
161
+ });
162
+ const CyclesMonitoringStopConfig = IDL.Record({
163
+ satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
164
+ try_mission_control: IDL.Opt(IDL.Bool),
165
+ orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
166
+ });
167
+ const MonitoringStopConfig = IDL.Record({
168
+ cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
169
+ });
170
+ return IDL.Service({
171
+ add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
172
+ add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
173
+ create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
174
+ create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
175
+ create_satellite: IDL.Func([IDL.Text], [Satellite], []),
176
+ create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
177
+ del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
178
+ del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
179
+ del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
180
+ del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
181
+ del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
182
+ deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
183
+ get_config: IDL.Func([], [IDL.Opt(Config)], []),
184
+ get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], []),
185
+ get_monitoring_history: IDL.Func(
186
+ [GetMonitoringHistory],
187
+ [IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
188
+ []
189
+ ),
190
+ get_monitoring_status: IDL.Func([], [MonitoringStatus], []),
191
+ get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], []),
192
+ get_user: IDL.Func([], [IDL.Principal], []),
193
+ get_user_data: IDL.Func([], [User], []),
194
+ icp_transfer: IDL.Func([TransferArgs], [Result], []),
195
+ icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
196
+ list_mission_control_controllers: IDL.Func(
197
+ [],
198
+ [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
199
+ []
200
+ ),
201
+ list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], []),
202
+ list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], []),
203
+ remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
204
+ remove_satellites_controllers: IDL.Func(
205
+ [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
206
+ [],
207
+ []
208
+ ),
209
+ set_config: IDL.Func([IDL.Opt(Config)], [], []),
210
+ set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
211
+ set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
212
+ set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
213
+ set_orbiter_metadata: IDL.Func(
214
+ [IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
215
+ [Orbiter],
216
+ []
217
+ ),
218
+ set_orbiters_controllers: IDL.Func(
219
+ [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
220
+ [],
221
+ []
222
+ ),
223
+ set_satellite: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Satellite], []),
224
+ set_satellite_metadata: IDL.Func(
225
+ [IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
226
+ [Satellite],
227
+ []
228
+ ),
229
+ set_satellites_controllers: IDL.Func(
230
+ [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
231
+ [],
232
+ []
233
+ ),
234
+ start_monitoring: IDL.Func([], [], []),
235
+ stop_monitoring: IDL.Func([], [], []),
236
+ top_up: IDL.Func([IDL.Principal, Tokens], [], []),
237
+ unset_orbiter: IDL.Func([IDL.Principal], [], []),
238
+ unset_satellite: IDL.Func([IDL.Principal], [], []),
239
+ update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
240
+ update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], []),
241
+ version: IDL.Func([], [IDL.Text], [])
242
+ });
243
+ };
244
+ // @ts-ignore
245
+ export const init = ({IDL}) => {
246
+ return [];
247
+ };
@@ -0,0 +1,255 @@
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([GetAnalytics], [IDL.Vec(IDL.Tuple(AnalyticKey, PageView))], []),
207
+ get_page_views_analytics_clients: IDL.Func([GetAnalytics], [AnalyticsClientsPageViews], []),
208
+ get_page_views_analytics_metrics: IDL.Func([GetAnalytics], [AnalyticsMetricsPageViews], []),
209
+ get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], []),
210
+ get_performance_metrics: IDL.Func(
211
+ [GetAnalytics],
212
+ [IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
213
+ []
214
+ ),
215
+ get_performance_metrics_analytics_web_vitals: IDL.Func(
216
+ [GetAnalytics],
217
+ [AnalyticsWebVitalsPerformanceMetrics],
218
+ []
219
+ ),
220
+ get_track_events: IDL.Func([GetAnalytics], [IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))], []),
221
+ get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], []),
222
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
223
+ list_satellite_configs: IDL.Func(
224
+ [],
225
+ [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
226
+ []
227
+ ),
228
+ memory_size: IDL.Func([], [MemorySize], []),
229
+ set_controllers: IDL.Func(
230
+ [SetControllersArgs],
231
+ [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
232
+ []
233
+ ),
234
+ set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
235
+ set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
236
+ set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
237
+ set_performance_metrics: IDL.Func(
238
+ [IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
239
+ [Result_1],
240
+ []
241
+ ),
242
+ set_satellite_configs: IDL.Func(
243
+ [IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
244
+ [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
245
+ []
246
+ ),
247
+ set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
248
+ set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
249
+ version: IDL.Func([], [IDL.Text], [])
250
+ });
251
+ };
252
+ // @ts-ignore
253
+ export const init = ({IDL}) => {
254
+ return [];
255
+ };