@junobuild/ic-client 3.1.2 → 3.1.3
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/actor.js +1 -1
- package/actor.js.map +3 -3
- package/actor.mjs +1 -1
- package/actor.mjs.map +3 -3
- package/declarations/console/console.did.d.ts +228 -218
- package/declarations/console/console.factory.certified.did.js +14 -1
- package/declarations/console/console.factory.did.js +14 -1
- package/declarations/console/console.factory.did.mjs +14 -1
- package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
- package/declarations/mission_control/mission_control.did.d.ts +178 -169
- package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
- package/declarations/mission_control/mission_control.factory.did.js +16 -4
- package/declarations/observatory/observatory.did.d.ts +54 -54
- package/declarations/orbiter/orbiter.did.d.ts +206 -206
- package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
- package/declarations/satellite/satellite.did.d.ts +294 -285
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +294 -285
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -1,277 +1,277 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
key: string;
|
|
7
|
+
collected_at: bigint;
|
|
8
8
|
}
|
|
9
9
|
export interface AnalyticsBrowsersPageViews {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
safari: number;
|
|
11
|
+
opera: number;
|
|
12
|
+
others: number;
|
|
13
|
+
firefox: number;
|
|
14
|
+
chrome: number;
|
|
15
15
|
}
|
|
16
16
|
export interface AnalyticsClientsPageViews {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
browsers: AnalyticsBrowsersPageViews;
|
|
18
|
+
operating_systems: [] | [AnalyticsOperatingSystemsPageViews];
|
|
19
|
+
devices: AnalyticsDevicesPageViews;
|
|
20
20
|
}
|
|
21
21
|
export interface AnalyticsDevicesPageViews {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
desktop: number;
|
|
23
|
+
laptop: [] | [number];
|
|
24
|
+
others: number;
|
|
25
|
+
tablet: [] | [number];
|
|
26
|
+
mobile: number;
|
|
27
27
|
}
|
|
28
28
|
export interface AnalyticsMetricsPageViews {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
35
|
}
|
|
36
36
|
export interface AnalyticsOperatingSystemsPageViews {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
ios: number;
|
|
38
|
+
macos: number;
|
|
39
|
+
others: number;
|
|
40
|
+
linux: number;
|
|
41
|
+
android: number;
|
|
42
|
+
windows: number;
|
|
43
43
|
}
|
|
44
44
|
export interface AnalyticsTop10PageViews {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
50
|
}
|
|
51
51
|
export interface AnalyticsTrackEvents {
|
|
52
|
-
|
|
52
|
+
total: Array<[string, number]>;
|
|
53
53
|
}
|
|
54
54
|
export interface AnalyticsWebVitalsPageMetrics {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
cls: [] | [number];
|
|
56
|
+
fcp: [] | [number];
|
|
57
|
+
inp: [] | [number];
|
|
58
|
+
lcp: [] | [number];
|
|
59
|
+
ttfb: [] | [number];
|
|
60
60
|
}
|
|
61
61
|
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
overall: AnalyticsWebVitalsPageMetrics;
|
|
63
|
+
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
64
64
|
}
|
|
65
65
|
export interface CalendarDate {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
day: number;
|
|
67
|
+
month: number;
|
|
68
|
+
year: number;
|
|
69
69
|
}
|
|
70
70
|
export interface Controller {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
updated_at: bigint;
|
|
72
|
+
metadata: Array<[string, string]>;
|
|
73
|
+
created_at: bigint;
|
|
74
|
+
scope: ControllerScope;
|
|
75
|
+
expires_at: [] | [bigint];
|
|
76
76
|
}
|
|
77
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
77
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
78
78
|
export interface DelSatelliteConfig {
|
|
79
|
-
|
|
79
|
+
version: [] | [bigint];
|
|
80
80
|
}
|
|
81
81
|
export interface DeleteControllersArgs {
|
|
82
|
-
|
|
82
|
+
controllers: Array<Principal>;
|
|
83
83
|
}
|
|
84
84
|
export interface DepositCyclesArgs {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
cycles: bigint;
|
|
86
|
+
destination_id: Principal;
|
|
87
87
|
}
|
|
88
88
|
export interface GetAnalytics {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
to: [] | [bigint];
|
|
90
|
+
from: [] | [bigint];
|
|
91
|
+
satellite_id: [] | [Principal];
|
|
92
92
|
}
|
|
93
93
|
export interface HttpRequest {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
url: string;
|
|
95
|
+
method: string;
|
|
96
|
+
body: Uint8Array | number[];
|
|
97
|
+
headers: Array<[string, string]>;
|
|
98
|
+
certificate_version: [] | [number];
|
|
99
99
|
}
|
|
100
100
|
export interface HttpResponse {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
body: Uint8Array | number[];
|
|
102
|
+
headers: Array<[string, string]>;
|
|
103
|
+
upgrade: [] | [boolean];
|
|
104
|
+
status_code: number;
|
|
105
105
|
}
|
|
106
106
|
export interface MemorySize {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
stable: bigint;
|
|
108
|
+
heap: bigint;
|
|
109
109
|
}
|
|
110
110
|
export type NavigationType =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
| { Navigate: null }
|
|
112
|
+
| { Restore: null }
|
|
113
|
+
| { Reload: null }
|
|
114
|
+
| { BackForward: null }
|
|
115
|
+
| { BackForwardCache: null }
|
|
116
|
+
| { Prerender: null };
|
|
117
117
|
export interface OrbiterSatelliteConfig {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
updated_at: bigint;
|
|
119
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
120
|
+
restricted_origin: [] | [string];
|
|
121
|
+
created_at: bigint;
|
|
122
|
+
version: [] | [bigint];
|
|
123
123
|
}
|
|
124
124
|
export interface OrbiterSatelliteFeatures {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
performance_metrics: boolean;
|
|
126
|
+
track_events: boolean;
|
|
127
|
+
page_views: boolean;
|
|
128
128
|
}
|
|
129
129
|
export interface PageView {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
143
|
}
|
|
144
144
|
export interface PageViewCampaign {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
utm_content: [] | [string];
|
|
146
|
+
utm_medium: [] | [string];
|
|
147
|
+
utm_source: string;
|
|
148
|
+
utm_term: [] | [string];
|
|
149
|
+
utm_campaign: [] | [string];
|
|
150
150
|
}
|
|
151
151
|
export interface PageViewClient {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
os: string;
|
|
153
|
+
device: [] | [string];
|
|
154
|
+
browser: string;
|
|
155
155
|
}
|
|
156
156
|
export interface PageViewDevice {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
inner_height: number;
|
|
158
|
+
screen_height: [] | [number];
|
|
159
|
+
screen_width: [] | [number];
|
|
160
|
+
inner_width: number;
|
|
161
161
|
}
|
|
162
|
-
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
162
|
+
export type PerformanceData = { WebVitalsMetric: WebVitalsMetric };
|
|
163
163
|
export interface PerformanceMetric {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
172
|
}
|
|
173
173
|
export type PerformanceMetricName =
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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};
|
|
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
183
|
export interface SetController {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
metadata: Array<[string, string]>;
|
|
185
|
+
scope: ControllerScope;
|
|
186
|
+
expires_at: [] | [bigint];
|
|
187
187
|
}
|
|
188
188
|
export interface SetControllersArgs {
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
controller: SetController;
|
|
190
|
+
controllers: Array<Principal>;
|
|
191
191
|
}
|
|
192
192
|
export interface SetPageView {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
205
|
}
|
|
206
206
|
export interface SetPerformanceMetric {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
214
|
}
|
|
215
215
|
export interface SetSatelliteConfig {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
217
|
+
restricted_origin: [] | [string];
|
|
218
|
+
version: [] | [bigint];
|
|
219
219
|
}
|
|
220
220
|
export interface SetTrackEvent {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
228
|
}
|
|
229
229
|
export interface TrackEvent {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
237
|
}
|
|
238
238
|
export interface WebVitalsMetric {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
id: string;
|
|
240
|
+
value: number;
|
|
241
|
+
navigation_type: [] | [NavigationType];
|
|
242
|
+
delta: number;
|
|
243
243
|
}
|
|
244
244
|
export interface _SERVICE {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
275
|
}
|
|
276
276
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
277
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
277
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|