@junobuild/admin 0.0.54 → 0.0.55

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.
@@ -78,6 +78,49 @@ export const idlFactory = ({IDL}) => {
78
78
  referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
79
79
  pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
80
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
+ });
81
124
  const TrackEvent = IDL.Record({
82
125
  updated_at: IDL.Nat64,
83
126
  session_id: IDL.Text,
@@ -90,11 +133,16 @@ export const idlFactory = ({IDL}) => {
90
133
  const AnalyticsTrackEvents = IDL.Record({
91
134
  total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
92
135
  });
136
+ const OrbiterSatelliteFeatures = IDL.Record({
137
+ performance_metrics: IDL.Bool,
138
+ track_events: IDL.Bool,
139
+ page_views: IDL.Bool
140
+ });
93
141
  const OrbiterSatelliteConfig = IDL.Record({
94
142
  updated_at: IDL.Nat64,
143
+ features: IDL.Opt(OrbiterSatelliteFeatures),
95
144
  created_at: IDL.Nat64,
96
- version: IDL.Opt(IDL.Nat64),
97
- enabled: IDL.Bool
145
+ version: IDL.Opt(IDL.Nat64)
98
146
  });
99
147
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
100
148
  const SetController = IDL.Record({
@@ -123,9 +171,19 @@ export const idlFactory = ({IDL}) => {
123
171
  Ok: IDL.Null,
124
172
  Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
125
173
  });
126
- const SetSatelliteConfig = IDL.Record({
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,
127
180
  version: IDL.Opt(IDL.Nat64),
128
- enabled: IDL.Bool
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)
129
187
  });
130
188
  const SetTrackEvent = IDL.Record({
131
189
  updated_at: IDL.Opt(IDL.Nat64),
@@ -136,7 +194,7 @@ export const idlFactory = ({IDL}) => {
136
194
  version: IDL.Opt(IDL.Nat64),
137
195
  user_agent: IDL.Opt(IDL.Text)
138
196
  });
139
- const Result_2 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
197
+ const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
140
198
  return IDL.Service({
141
199
  del_controllers: IDL.Func(
142
200
  [DeleteControllersArgs],
@@ -161,6 +219,16 @@ export const idlFactory = ({IDL}) => {
161
219
  ['query']
162
220
  ),
163
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
+ ),
164
232
  get_track_events: IDL.Func(
165
233
  [GetAnalytics],
166
234
  [IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
@@ -181,12 +249,18 @@ export const idlFactory = ({IDL}) => {
181
249
  ),
182
250
  set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
183
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
+ ),
184
258
  set_satellite_configs: IDL.Func(
185
259
  [IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
186
260
  [IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
187
261
  []
188
262
  ),
189
- set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_2], []),
263
+ set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
190
264
  set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], []),
191
265
  version: IDL.Func([], [IDL.Text], ['query'])
192
266
  });
@@ -230,8 +230,10 @@ export interface UploadChunkResult {
230
230
  export interface _SERVICE {
231
231
  build_version: ActorMethod<[], string>;
232
232
  commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
233
- count_assets: ActorMethod<[string], bigint>;
234
- count_docs: ActorMethod<[string], bigint>;
233
+ count_assets: ActorMethod<[string, ListParams], bigint>;
234
+ count_collection_assets: ActorMethod<[string], bigint>;
235
+ count_collection_docs: ActorMethod<[string], bigint>;
236
+ count_docs: ActorMethod<[string, ListParams], bigint>;
235
237
  del_asset: ActorMethod<[string, string], undefined>;
236
238
  del_assets: ActorMethod<[string], undefined>;
237
239
  del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
@@ -5,6 +5,34 @@ export const idlFactory = ({IDL}) => {
5
5
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
6
6
  chunk_ids: IDL.Vec(IDL.Nat)
7
7
  });
8
+ const ListOrderField = IDL.Variant({
9
+ UpdatedAt: IDL.Null,
10
+ Keys: IDL.Null,
11
+ CreatedAt: IDL.Null
12
+ });
13
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
14
+ const TimestampMatcher = IDL.Variant({
15
+ Equal: IDL.Nat64,
16
+ Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
17
+ GreaterThan: IDL.Nat64,
18
+ LessThan: IDL.Nat64
19
+ });
20
+ const ListMatcher = IDL.Record({
21
+ key: IDL.Opt(IDL.Text),
22
+ updated_at: IDL.Opt(TimestampMatcher),
23
+ description: IDL.Opt(IDL.Text),
24
+ created_at: IDL.Opt(TimestampMatcher)
25
+ });
26
+ const ListPaginate = IDL.Record({
27
+ start_after: IDL.Opt(IDL.Text),
28
+ limit: IDL.Opt(IDL.Nat64)
29
+ });
30
+ const ListParams = IDL.Record({
31
+ order: IDL.Opt(ListOrder),
32
+ owner: IDL.Opt(IDL.Principal),
33
+ matcher: IDL.Opt(ListMatcher),
34
+ paginate: IDL.Opt(ListPaginate)
35
+ });
8
36
  const DeleteControllersArgs = IDL.Record({
9
37
  controllers: IDL.Vec(IDL.Principal)
10
38
  });
@@ -136,34 +164,6 @@ export const idlFactory = ({IDL}) => {
136
164
  full_path: IDL.Text
137
165
  });
138
166
  const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
139
- const ListOrderField = IDL.Variant({
140
- UpdatedAt: IDL.Null,
141
- Keys: IDL.Null,
142
- CreatedAt: IDL.Null
143
- });
144
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
145
- const TimestampMatcher = IDL.Variant({
146
- Equal: IDL.Nat64,
147
- Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
148
- GreaterThan: IDL.Nat64,
149
- LessThan: IDL.Nat64
150
- });
151
- const ListMatcher = IDL.Record({
152
- key: IDL.Opt(IDL.Text),
153
- updated_at: IDL.Opt(TimestampMatcher),
154
- description: IDL.Opt(IDL.Text),
155
- created_at: IDL.Opt(TimestampMatcher)
156
- });
157
- const ListPaginate = IDL.Record({
158
- start_after: IDL.Opt(IDL.Text),
159
- limit: IDL.Opt(IDL.Nat64)
160
- });
161
- const ListParams = IDL.Record({
162
- order: IDL.Opt(ListOrder),
163
- owner: IDL.Opt(IDL.Principal),
164
- matcher: IDL.Opt(ListMatcher),
165
- paginate: IDL.Opt(ListPaginate)
166
- });
167
167
  const ListResults = IDL.Record({
168
168
  matches_pages: IDL.Opt(IDL.Nat64),
169
169
  matches_length: IDL.Nat64,
@@ -234,8 +234,10 @@ export const idlFactory = ({IDL}) => {
234
234
  return IDL.Service({
235
235
  build_version: IDL.Func([], [IDL.Text], ['query']),
236
236
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
237
- count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
238
- count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
237
+ count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
238
+ count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
239
+ count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
240
+ count_docs: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
239
241
  del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
240
242
  del_assets: IDL.Func([IDL.Text], [], []),
241
243
  del_controllers: IDL.Func(
@@ -5,6 +5,34 @@ export const idlFactory = ({IDL}) => {
5
5
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
6
6
  chunk_ids: IDL.Vec(IDL.Nat)
7
7
  });
8
+ const ListOrderField = IDL.Variant({
9
+ UpdatedAt: IDL.Null,
10
+ Keys: IDL.Null,
11
+ CreatedAt: IDL.Null
12
+ });
13
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
14
+ const TimestampMatcher = IDL.Variant({
15
+ Equal: IDL.Nat64,
16
+ Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
17
+ GreaterThan: IDL.Nat64,
18
+ LessThan: IDL.Nat64
19
+ });
20
+ const ListMatcher = IDL.Record({
21
+ key: IDL.Opt(IDL.Text),
22
+ updated_at: IDL.Opt(TimestampMatcher),
23
+ description: IDL.Opt(IDL.Text),
24
+ created_at: IDL.Opt(TimestampMatcher)
25
+ });
26
+ const ListPaginate = IDL.Record({
27
+ start_after: IDL.Opt(IDL.Text),
28
+ limit: IDL.Opt(IDL.Nat64)
29
+ });
30
+ const ListParams = IDL.Record({
31
+ order: IDL.Opt(ListOrder),
32
+ owner: IDL.Opt(IDL.Principal),
33
+ matcher: IDL.Opt(ListMatcher),
34
+ paginate: IDL.Opt(ListPaginate)
35
+ });
8
36
  const DeleteControllersArgs = IDL.Record({
9
37
  controllers: IDL.Vec(IDL.Principal)
10
38
  });
@@ -136,34 +164,6 @@ export const idlFactory = ({IDL}) => {
136
164
  full_path: IDL.Text
137
165
  });
138
166
  const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
139
- const ListOrderField = IDL.Variant({
140
- UpdatedAt: IDL.Null,
141
- Keys: IDL.Null,
142
- CreatedAt: IDL.Null
143
- });
144
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
145
- const TimestampMatcher = IDL.Variant({
146
- Equal: IDL.Nat64,
147
- Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
148
- GreaterThan: IDL.Nat64,
149
- LessThan: IDL.Nat64
150
- });
151
- const ListMatcher = IDL.Record({
152
- key: IDL.Opt(IDL.Text),
153
- updated_at: IDL.Opt(TimestampMatcher),
154
- description: IDL.Opt(IDL.Text),
155
- created_at: IDL.Opt(TimestampMatcher)
156
- });
157
- const ListPaginate = IDL.Record({
158
- start_after: IDL.Opt(IDL.Text),
159
- limit: IDL.Opt(IDL.Nat64)
160
- });
161
- const ListParams = IDL.Record({
162
- order: IDL.Opt(ListOrder),
163
- owner: IDL.Opt(IDL.Principal),
164
- matcher: IDL.Opt(ListMatcher),
165
- paginate: IDL.Opt(ListPaginate)
166
- });
167
167
  const ListResults = IDL.Record({
168
168
  matches_pages: IDL.Opt(IDL.Nat64),
169
169
  matches_length: IDL.Nat64,
@@ -234,8 +234,10 @@ export const idlFactory = ({IDL}) => {
234
234
  return IDL.Service({
235
235
  build_version: IDL.Func([], [IDL.Text], ['query']),
236
236
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
237
- count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
238
- count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
237
+ count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
238
+ count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
239
+ count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
240
+ count_docs: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
239
241
  del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
240
242
  del_assets: IDL.Func([IDL.Text], [], []),
241
243
  del_controllers: IDL.Func(