@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,245 +1,245 @@
|
|
|
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
|
-
|
|
17
|
+
browsers: AnalyticsBrowsersPageViews;
|
|
18
|
+
devices: AnalyticsDevicesPageViews;
|
|
19
19
|
}
|
|
20
20
|
export interface AnalyticsDevicesPageViews {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
desktop: number;
|
|
22
|
+
others: number;
|
|
23
|
+
mobile: number;
|
|
24
24
|
}
|
|
25
25
|
export interface AnalyticsMetricsPageViews {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
32
|
}
|
|
33
33
|
export interface AnalyticsTop10PageViews {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
referrers: Array<[string, number]>;
|
|
35
|
+
pages: Array<[string, number]>;
|
|
36
36
|
}
|
|
37
37
|
export interface AnalyticsTrackEvents {
|
|
38
|
-
|
|
38
|
+
total: Array<[string, number]>;
|
|
39
39
|
}
|
|
40
40
|
export interface AnalyticsWebVitalsPageMetrics {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
cls: [] | [number];
|
|
42
|
+
fcp: [] | [number];
|
|
43
|
+
inp: [] | [number];
|
|
44
|
+
lcp: [] | [number];
|
|
45
|
+
ttfb: [] | [number];
|
|
46
46
|
}
|
|
47
47
|
export interface AnalyticsWebVitalsPerformanceMetrics {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
overall: AnalyticsWebVitalsPageMetrics;
|
|
49
|
+
pages: Array<[string, AnalyticsWebVitalsPageMetrics]>;
|
|
50
50
|
}
|
|
51
51
|
export interface CalendarDate {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
day: number;
|
|
53
|
+
month: number;
|
|
54
|
+
year: number;
|
|
55
55
|
}
|
|
56
56
|
export interface Controller {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
updated_at: bigint;
|
|
58
|
+
metadata: Array<[string, string]>;
|
|
59
|
+
created_at: bigint;
|
|
60
|
+
scope: ControllerScope;
|
|
61
|
+
expires_at: [] | [bigint];
|
|
62
62
|
}
|
|
63
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
63
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
64
64
|
export interface DelSatelliteConfig {
|
|
65
|
-
|
|
65
|
+
version: [] | [bigint];
|
|
66
66
|
}
|
|
67
67
|
export interface DeleteControllersArgs {
|
|
68
|
-
|
|
68
|
+
controllers: Array<Principal>;
|
|
69
69
|
}
|
|
70
70
|
export interface DepositCyclesArgs {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
cycles: bigint;
|
|
72
|
+
destination_id: Principal;
|
|
73
73
|
}
|
|
74
74
|
export interface GetAnalytics {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
to: [] | [bigint];
|
|
76
|
+
from: [] | [bigint];
|
|
77
|
+
satellite_id: [] | [Principal];
|
|
78
78
|
}
|
|
79
79
|
export interface HttpRequest {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
url: string;
|
|
81
|
+
method: string;
|
|
82
|
+
body: Uint8Array | number[];
|
|
83
|
+
headers: Array<[string, string]>;
|
|
84
|
+
certificate_version: [] | [number];
|
|
85
85
|
}
|
|
86
86
|
export interface HttpResponse {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
body: Uint8Array | number[];
|
|
88
|
+
headers: Array<[string, string]>;
|
|
89
|
+
upgrade: [] | [boolean];
|
|
90
|
+
status_code: number;
|
|
91
91
|
}
|
|
92
92
|
export interface MemorySize {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
stable: bigint;
|
|
94
|
+
heap: bigint;
|
|
95
95
|
}
|
|
96
96
|
export type NavigationType =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
| { Navigate: null }
|
|
98
|
+
| { Restore: null }
|
|
99
|
+
| { Reload: null }
|
|
100
|
+
| { BackForward: null }
|
|
101
|
+
| { BackForwardCache: null }
|
|
102
|
+
| { Prerender: null };
|
|
103
103
|
export interface OrbiterSatelliteConfig {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
updated_at: bigint;
|
|
105
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
106
|
+
restricted_origin: [] | [string];
|
|
107
|
+
created_at: bigint;
|
|
108
|
+
version: [] | [bigint];
|
|
109
109
|
}
|
|
110
110
|
export interface OrbiterSatelliteFeatures {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
performance_metrics: boolean;
|
|
112
|
+
track_events: boolean;
|
|
113
|
+
page_views: boolean;
|
|
114
114
|
}
|
|
115
115
|
export interface PageView {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
title: string;
|
|
117
|
+
updated_at: bigint;
|
|
118
|
+
referrer: [] | [string];
|
|
119
|
+
time_zone: string;
|
|
120
|
+
session_id: string;
|
|
121
|
+
href: string;
|
|
122
|
+
created_at: bigint;
|
|
123
|
+
satellite_id: Principal;
|
|
124
|
+
device: PageViewDevice;
|
|
125
|
+
version: [] | [bigint];
|
|
126
|
+
user_agent: [] | [string];
|
|
127
127
|
}
|
|
128
128
|
export interface PageViewDevice {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
inner_height: number;
|
|
130
|
+
inner_width: number;
|
|
131
131
|
}
|
|
132
|
-
export type PerformanceData = {WebVitalsMetric: WebVitalsMetric};
|
|
132
|
+
export type PerformanceData = { WebVitalsMetric: WebVitalsMetric };
|
|
133
133
|
export interface PerformanceMetric {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
updated_at: bigint;
|
|
135
|
+
session_id: string;
|
|
136
|
+
data: PerformanceData;
|
|
137
|
+
href: string;
|
|
138
|
+
metric_name: PerformanceMetricName;
|
|
139
|
+
created_at: bigint;
|
|
140
|
+
satellite_id: Principal;
|
|
141
|
+
version: [] | [bigint];
|
|
142
142
|
}
|
|
143
143
|
export type PerformanceMetricName =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
export type Result = {Ok: PageView} | {Err: string};
|
|
150
|
-
export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
|
|
151
|
-
export type Result_2 = {Ok: PerformanceMetric} | {Err: string};
|
|
152
|
-
export type Result_3 = {Ok: TrackEvent} | {Err: string};
|
|
144
|
+
| { CLS: null }
|
|
145
|
+
| { FCP: null }
|
|
146
|
+
| { INP: null }
|
|
147
|
+
| { LCP: null }
|
|
148
|
+
| { TTFB: null };
|
|
149
|
+
export type Result = { Ok: PageView } | { Err: string };
|
|
150
|
+
export type Result_1 = { Ok: null } | { Err: Array<[AnalyticKey, string]> };
|
|
151
|
+
export type Result_2 = { Ok: PerformanceMetric } | { Err: string };
|
|
152
|
+
export type Result_3 = { Ok: TrackEvent } | { Err: string };
|
|
153
153
|
export interface SetController {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
metadata: Array<[string, string]>;
|
|
155
|
+
scope: ControllerScope;
|
|
156
|
+
expires_at: [] | [bigint];
|
|
157
157
|
}
|
|
158
158
|
export interface SetControllersArgs {
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
controller: SetController;
|
|
160
|
+
controllers: Array<Principal>;
|
|
161
161
|
}
|
|
162
162
|
export interface SetPageView {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
163
|
+
title: string;
|
|
164
|
+
updated_at: [] | [bigint];
|
|
165
|
+
referrer: [] | [string];
|
|
166
|
+
time_zone: string;
|
|
167
|
+
session_id: string;
|
|
168
|
+
href: string;
|
|
169
|
+
satellite_id: Principal;
|
|
170
|
+
device: PageViewDevice;
|
|
171
|
+
version: [] | [bigint];
|
|
172
|
+
user_agent: [] | [string];
|
|
173
173
|
}
|
|
174
174
|
export interface SetPerformanceMetric {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
session_id: string;
|
|
176
|
+
data: PerformanceData;
|
|
177
|
+
href: string;
|
|
178
|
+
metric_name: PerformanceMetricName;
|
|
179
|
+
satellite_id: Principal;
|
|
180
|
+
version: [] | [bigint];
|
|
181
|
+
user_agent: [] | [string];
|
|
182
182
|
}
|
|
183
183
|
export interface SetSatelliteConfig {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
features: [] | [OrbiterSatelliteFeatures];
|
|
185
|
+
restricted_origin: [] | [string];
|
|
186
|
+
version: [] | [bigint];
|
|
187
187
|
}
|
|
188
188
|
export interface SetTrackEvent {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
updated_at: [] | [bigint];
|
|
190
|
+
session_id: string;
|
|
191
|
+
metadata: [] | [Array<[string, string]>];
|
|
192
|
+
name: string;
|
|
193
|
+
satellite_id: Principal;
|
|
194
|
+
version: [] | [bigint];
|
|
195
|
+
user_agent: [] | [string];
|
|
196
196
|
}
|
|
197
197
|
export interface TrackEvent {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
198
|
+
updated_at: bigint;
|
|
199
|
+
session_id: string;
|
|
200
|
+
metadata: [] | [Array<[string, string]>];
|
|
201
|
+
name: string;
|
|
202
|
+
created_at: bigint;
|
|
203
|
+
satellite_id: Principal;
|
|
204
|
+
version: [] | [bigint];
|
|
205
205
|
}
|
|
206
206
|
export interface WebVitalsMetric {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
id: string;
|
|
208
|
+
value: number;
|
|
209
|
+
navigation_type: [] | [NavigationType];
|
|
210
|
+
delta: number;
|
|
211
211
|
}
|
|
212
212
|
export interface _SERVICE {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
213
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
214
|
+
del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
|
|
215
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
216
|
+
get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
|
|
217
|
+
get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
|
|
218
|
+
get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
|
|
219
|
+
get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
|
|
220
|
+
get_performance_metrics: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PerformanceMetric]>>;
|
|
221
|
+
get_performance_metrics_analytics_web_vitals: ActorMethod<
|
|
222
|
+
[GetAnalytics],
|
|
223
|
+
AnalyticsWebVitalsPerformanceMetrics
|
|
224
|
+
>;
|
|
225
|
+
get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
|
|
226
|
+
get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
|
|
227
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
228
|
+
http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
|
|
229
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
230
|
+
list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
|
|
231
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
232
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
233
|
+
set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
|
|
234
|
+
set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
|
|
235
|
+
set_performance_metric: ActorMethod<[AnalyticKey, SetPerformanceMetric], Result_2>;
|
|
236
|
+
set_performance_metrics: ActorMethod<[Array<[AnalyticKey, SetPerformanceMetric]>], Result_1>;
|
|
237
|
+
set_satellite_configs: ActorMethod<
|
|
238
|
+
[Array<[Principal, SetSatelliteConfig]>],
|
|
239
|
+
Array<[Principal, OrbiterSatelliteConfig]>
|
|
240
|
+
>;
|
|
241
|
+
set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_3>;
|
|
242
|
+
set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
|
|
243
243
|
}
|
|
244
244
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
245
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
245
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|