@junobuild/core 1.0.3 → 1.1.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/actor.api.d.ts +1 -1
- package/dist/types/api/storage.api.d.ts +4 -4
- package/dist/types/services/storage.services.d.ts +3 -3
- package/dist/types/stores/actor.store.d.ts +1 -2
- package/dist/types/types/storage.types.d.ts +2 -2
- package/dist/types/utils/data.utils.d.ts +2 -2
- package/dist/types/utils/doc.utils.d.ts +4 -4
- package/dist/types/utils/list.utils.d.ts +2 -2
- package/package.json +4 -3
- package/dist/declarations/deprecated/console-0-0-14.did.d.ts +0 -267
- package/dist/declarations/deprecated/console-0-0-14.factory.did.js +0 -285
- package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +0 -75
- package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +0 -80
- package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +0 -246
- package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +0 -280
- package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +0 -241
- package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +0 -258
- package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +0 -80
- package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +0 -99
- package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +0 -70
- package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +0 -76
- package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +0 -161
- package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +0 -192
- package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +0 -166
- package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +0 -197
- package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +0 -245
- package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +0 -287
- package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +0 -277
- package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +0 -319
- package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +0 -240
- package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +0 -264
- package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +0 -254
- package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +0 -281
- package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +0 -299
- package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +0 -333
- package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +0 -290
- package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +0 -318
- package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +0 -183
- package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +0 -194
- package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +0 -199
- package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +0 -213
- 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/declarations/sputnik/sputnik.did.d.ts +0 -396
- package/dist/declarations/sputnik/sputnik.factory.certified.did.js +0 -419
- package/dist/declarations/sputnik/sputnik.factory.did.js +0 -419
- package/dist/types/api/_actor.factory.d.ts +0 -5
|
@@ -1,319 +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 PageViewClient = IDL.Record({
|
|
32
|
-
os: IDL.Text,
|
|
33
|
-
device: IDL.Opt(IDL.Text),
|
|
34
|
-
browser: IDL.Text
|
|
35
|
-
});
|
|
36
|
-
const PageViewCampaign = IDL.Record({
|
|
37
|
-
utm_content: IDL.Opt(IDL.Text),
|
|
38
|
-
utm_medium: IDL.Opt(IDL.Text),
|
|
39
|
-
utm_source: IDL.Text,
|
|
40
|
-
utm_term: IDL.Opt(IDL.Text),
|
|
41
|
-
utm_campaign: IDL.Opt(IDL.Text)
|
|
42
|
-
});
|
|
43
|
-
const PageViewDevice = IDL.Record({
|
|
44
|
-
inner_height: IDL.Nat16,
|
|
45
|
-
screen_height: IDL.Opt(IDL.Nat16),
|
|
46
|
-
screen_width: IDL.Opt(IDL.Nat16),
|
|
47
|
-
inner_width: IDL.Nat16
|
|
48
|
-
});
|
|
49
|
-
const PageView = IDL.Record({
|
|
50
|
-
client: IDL.Opt(PageViewClient),
|
|
51
|
-
title: IDL.Text,
|
|
52
|
-
updated_at: IDL.Nat64,
|
|
53
|
-
referrer: IDL.Opt(IDL.Text),
|
|
54
|
-
time_zone: IDL.Text,
|
|
55
|
-
session_id: IDL.Text,
|
|
56
|
-
campaign: IDL.Opt(PageViewCampaign),
|
|
57
|
-
href: IDL.Text,
|
|
58
|
-
created_at: IDL.Nat64,
|
|
59
|
-
satellite_id: IDL.Principal,
|
|
60
|
-
device: PageViewDevice,
|
|
61
|
-
version: IDL.Opt(IDL.Nat64),
|
|
62
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
63
|
-
});
|
|
64
|
-
const AnalyticsBrowsersPageViews = IDL.Record({
|
|
65
|
-
safari: IDL.Float64,
|
|
66
|
-
opera: IDL.Float64,
|
|
67
|
-
others: IDL.Float64,
|
|
68
|
-
firefox: IDL.Float64,
|
|
69
|
-
chrome: IDL.Float64
|
|
70
|
-
});
|
|
71
|
-
const AnalyticsOperatingSystemsPageViews = IDL.Record({
|
|
72
|
-
ios: IDL.Float64,
|
|
73
|
-
macos: IDL.Float64,
|
|
74
|
-
others: IDL.Float64,
|
|
75
|
-
linux: IDL.Float64,
|
|
76
|
-
android: IDL.Float64,
|
|
77
|
-
windows: IDL.Float64
|
|
78
|
-
});
|
|
79
|
-
const AnalyticsDevicesPageViews = IDL.Record({
|
|
80
|
-
desktop: IDL.Float64,
|
|
81
|
-
laptop: IDL.Opt(IDL.Float64),
|
|
82
|
-
others: IDL.Float64,
|
|
83
|
-
tablet: IDL.Opt(IDL.Float64),
|
|
84
|
-
mobile: IDL.Float64
|
|
85
|
-
});
|
|
86
|
-
const AnalyticsClientsPageViews = IDL.Record({
|
|
87
|
-
browsers: AnalyticsBrowsersPageViews,
|
|
88
|
-
operating_systems: IDL.Opt(AnalyticsOperatingSystemsPageViews),
|
|
89
|
-
devices: AnalyticsDevicesPageViews
|
|
90
|
-
});
|
|
91
|
-
const CalendarDate = IDL.Record({
|
|
92
|
-
day: IDL.Nat8,
|
|
93
|
-
month: IDL.Nat8,
|
|
94
|
-
year: IDL.Int32
|
|
95
|
-
});
|
|
96
|
-
const AnalyticsMetricsPageViews = IDL.Record({
|
|
97
|
-
bounce_rate: IDL.Float64,
|
|
98
|
-
average_page_views_per_session: IDL.Float64,
|
|
99
|
-
daily_total_page_views: IDL.Vec(IDL.Tuple(CalendarDate, IDL.Nat32)),
|
|
100
|
-
total_page_views: IDL.Nat32,
|
|
101
|
-
unique_page_views: IDL.Nat64,
|
|
102
|
-
unique_sessions: IDL.Nat64
|
|
103
|
-
});
|
|
104
|
-
const AnalyticsTop10PageViews = IDL.Record({
|
|
105
|
-
referrers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
106
|
-
pages: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)),
|
|
107
|
-
utm_campaigns: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))),
|
|
108
|
-
utm_sources: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))),
|
|
109
|
-
time_zones: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32)))
|
|
110
|
-
});
|
|
111
|
-
const NavigationType = IDL.Variant({
|
|
112
|
-
Navigate: IDL.Null,
|
|
113
|
-
Restore: IDL.Null,
|
|
114
|
-
Reload: IDL.Null,
|
|
115
|
-
BackForward: IDL.Null,
|
|
116
|
-
BackForwardCache: IDL.Null,
|
|
117
|
-
Prerender: IDL.Null
|
|
118
|
-
});
|
|
119
|
-
const WebVitalsMetric = IDL.Record({
|
|
120
|
-
id: IDL.Text,
|
|
121
|
-
value: IDL.Float64,
|
|
122
|
-
navigation_type: IDL.Opt(NavigationType),
|
|
123
|
-
delta: IDL.Float64
|
|
124
|
-
});
|
|
125
|
-
const PerformanceData = IDL.Variant({WebVitalsMetric: WebVitalsMetric});
|
|
126
|
-
const PerformanceMetricName = IDL.Variant({
|
|
127
|
-
CLS: IDL.Null,
|
|
128
|
-
FCP: IDL.Null,
|
|
129
|
-
INP: IDL.Null,
|
|
130
|
-
LCP: IDL.Null,
|
|
131
|
-
TTFB: IDL.Null
|
|
132
|
-
});
|
|
133
|
-
const PerformanceMetric = IDL.Record({
|
|
134
|
-
updated_at: IDL.Nat64,
|
|
135
|
-
session_id: IDL.Text,
|
|
136
|
-
data: PerformanceData,
|
|
137
|
-
href: IDL.Text,
|
|
138
|
-
metric_name: PerformanceMetricName,
|
|
139
|
-
created_at: IDL.Nat64,
|
|
140
|
-
satellite_id: IDL.Principal,
|
|
141
|
-
version: IDL.Opt(IDL.Nat64)
|
|
142
|
-
});
|
|
143
|
-
const AnalyticsWebVitalsPageMetrics = IDL.Record({
|
|
144
|
-
cls: IDL.Opt(IDL.Float64),
|
|
145
|
-
fcp: IDL.Opt(IDL.Float64),
|
|
146
|
-
inp: IDL.Opt(IDL.Float64),
|
|
147
|
-
lcp: IDL.Opt(IDL.Float64),
|
|
148
|
-
ttfb: IDL.Opt(IDL.Float64)
|
|
149
|
-
});
|
|
150
|
-
const AnalyticsWebVitalsPerformanceMetrics = IDL.Record({
|
|
151
|
-
overall: AnalyticsWebVitalsPageMetrics,
|
|
152
|
-
pages: IDL.Vec(IDL.Tuple(IDL.Text, AnalyticsWebVitalsPageMetrics))
|
|
153
|
-
});
|
|
154
|
-
const TrackEvent = IDL.Record({
|
|
155
|
-
updated_at: IDL.Nat64,
|
|
156
|
-
session_id: IDL.Text,
|
|
157
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
158
|
-
name: IDL.Text,
|
|
159
|
-
created_at: IDL.Nat64,
|
|
160
|
-
satellite_id: IDL.Principal,
|
|
161
|
-
version: IDL.Opt(IDL.Nat64)
|
|
162
|
-
});
|
|
163
|
-
const AnalyticsTrackEvents = IDL.Record({
|
|
164
|
-
total: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat32))
|
|
165
|
-
});
|
|
166
|
-
const HttpRequest = IDL.Record({
|
|
167
|
-
url: IDL.Text,
|
|
168
|
-
method: IDL.Text,
|
|
169
|
-
body: IDL.Vec(IDL.Nat8),
|
|
170
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
171
|
-
certificate_version: IDL.Opt(IDL.Nat16)
|
|
172
|
-
});
|
|
173
|
-
const HttpResponse = IDL.Record({
|
|
174
|
-
body: IDL.Vec(IDL.Nat8),
|
|
175
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
176
|
-
upgrade: IDL.Opt(IDL.Bool),
|
|
177
|
-
status_code: IDL.Nat16
|
|
178
|
-
});
|
|
179
|
-
const OrbiterSatelliteFeatures = IDL.Record({
|
|
180
|
-
performance_metrics: IDL.Bool,
|
|
181
|
-
track_events: IDL.Bool,
|
|
182
|
-
page_views: IDL.Bool
|
|
183
|
-
});
|
|
184
|
-
const OrbiterSatelliteConfig = IDL.Record({
|
|
185
|
-
updated_at: IDL.Nat64,
|
|
186
|
-
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
187
|
-
restricted_origin: IDL.Opt(IDL.Text),
|
|
188
|
-
created_at: IDL.Nat64,
|
|
189
|
-
version: IDL.Opt(IDL.Nat64)
|
|
190
|
-
});
|
|
191
|
-
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
192
|
-
const SetController = IDL.Record({
|
|
193
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
194
|
-
scope: ControllerScope,
|
|
195
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
196
|
-
});
|
|
197
|
-
const SetControllersArgs = IDL.Record({
|
|
198
|
-
controller: SetController,
|
|
199
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
200
|
-
});
|
|
201
|
-
const SetPageView = IDL.Record({
|
|
202
|
-
client: IDL.Opt(PageViewClient),
|
|
203
|
-
title: IDL.Text,
|
|
204
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
205
|
-
referrer: IDL.Opt(IDL.Text),
|
|
206
|
-
time_zone: IDL.Text,
|
|
207
|
-
session_id: IDL.Text,
|
|
208
|
-
campaign: IDL.Opt(PageViewCampaign),
|
|
209
|
-
href: IDL.Text,
|
|
210
|
-
satellite_id: IDL.Principal,
|
|
211
|
-
device: PageViewDevice,
|
|
212
|
-
version: IDL.Opt(IDL.Nat64),
|
|
213
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
214
|
-
});
|
|
215
|
-
const Result = IDL.Variant({Ok: PageView, Err: IDL.Text});
|
|
216
|
-
const Result_1 = IDL.Variant({
|
|
217
|
-
Ok: IDL.Null,
|
|
218
|
-
Err: IDL.Vec(IDL.Tuple(AnalyticKey, IDL.Text))
|
|
219
|
-
});
|
|
220
|
-
const SetPerformanceMetric = IDL.Record({
|
|
221
|
-
session_id: IDL.Text,
|
|
222
|
-
data: PerformanceData,
|
|
223
|
-
href: IDL.Text,
|
|
224
|
-
metric_name: PerformanceMetricName,
|
|
225
|
-
satellite_id: IDL.Principal,
|
|
226
|
-
version: IDL.Opt(IDL.Nat64),
|
|
227
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
228
|
-
});
|
|
229
|
-
const Result_2 = IDL.Variant({Ok: PerformanceMetric, Err: IDL.Text});
|
|
230
|
-
const SetSatelliteConfig = IDL.Record({
|
|
231
|
-
features: IDL.Opt(OrbiterSatelliteFeatures),
|
|
232
|
-
restricted_origin: IDL.Opt(IDL.Text),
|
|
233
|
-
version: IDL.Opt(IDL.Nat64)
|
|
234
|
-
});
|
|
235
|
-
const SetTrackEvent = IDL.Record({
|
|
236
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
237
|
-
session_id: IDL.Text,
|
|
238
|
-
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
239
|
-
name: IDL.Text,
|
|
240
|
-
satellite_id: IDL.Principal,
|
|
241
|
-
version: IDL.Opt(IDL.Nat64),
|
|
242
|
-
user_agent: IDL.Opt(IDL.Text)
|
|
243
|
-
});
|
|
244
|
-
const Result_3 = IDL.Variant({Ok: TrackEvent, Err: IDL.Text});
|
|
245
|
-
return IDL.Service({
|
|
246
|
-
del_controllers: IDL.Func(
|
|
247
|
-
[DeleteControllersArgs],
|
|
248
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
249
|
-
[]
|
|
250
|
-
),
|
|
251
|
-
del_satellite_config: IDL.Func([IDL.Principal, DelSatelliteConfig], [], []),
|
|
252
|
-
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
253
|
-
get_page_views: IDL.Func(
|
|
254
|
-
[GetAnalytics],
|
|
255
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, PageView))],
|
|
256
|
-
['query']
|
|
257
|
-
),
|
|
258
|
-
get_page_views_analytics_clients: IDL.Func(
|
|
259
|
-
[GetAnalytics],
|
|
260
|
-
[AnalyticsClientsPageViews],
|
|
261
|
-
['query']
|
|
262
|
-
),
|
|
263
|
-
get_page_views_analytics_metrics: IDL.Func(
|
|
264
|
-
[GetAnalytics],
|
|
265
|
-
[AnalyticsMetricsPageViews],
|
|
266
|
-
['query']
|
|
267
|
-
),
|
|
268
|
-
get_page_views_analytics_top_10: IDL.Func([GetAnalytics], [AnalyticsTop10PageViews], ['query']),
|
|
269
|
-
get_performance_metrics: IDL.Func(
|
|
270
|
-
[GetAnalytics],
|
|
271
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, PerformanceMetric))],
|
|
272
|
-
['query']
|
|
273
|
-
),
|
|
274
|
-
get_performance_metrics_analytics_web_vitals: IDL.Func(
|
|
275
|
-
[GetAnalytics],
|
|
276
|
-
[AnalyticsWebVitalsPerformanceMetrics],
|
|
277
|
-
['query']
|
|
278
|
-
),
|
|
279
|
-
get_track_events: IDL.Func(
|
|
280
|
-
[GetAnalytics],
|
|
281
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, TrackEvent))],
|
|
282
|
-
['query']
|
|
283
|
-
),
|
|
284
|
-
get_track_events_analytics: IDL.Func([GetAnalytics], [AnalyticsTrackEvents], ['query']),
|
|
285
|
-
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
286
|
-
http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
287
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
288
|
-
list_satellite_configs: IDL.Func(
|
|
289
|
-
[],
|
|
290
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
291
|
-
['query']
|
|
292
|
-
),
|
|
293
|
-
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
294
|
-
set_controllers: IDL.Func(
|
|
295
|
-
[SetControllersArgs],
|
|
296
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
297
|
-
[]
|
|
298
|
-
),
|
|
299
|
-
set_page_view: IDL.Func([AnalyticKey, SetPageView], [Result], []),
|
|
300
|
-
set_page_views: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetPageView))], [Result_1], []),
|
|
301
|
-
set_performance_metric: IDL.Func([AnalyticKey, SetPerformanceMetric], [Result_2], []),
|
|
302
|
-
set_performance_metrics: IDL.Func(
|
|
303
|
-
[IDL.Vec(IDL.Tuple(AnalyticKey, SetPerformanceMetric))],
|
|
304
|
-
[Result_1],
|
|
305
|
-
[]
|
|
306
|
-
),
|
|
307
|
-
set_satellite_configs: IDL.Func(
|
|
308
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, SetSatelliteConfig))],
|
|
309
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, OrbiterSatelliteConfig))],
|
|
310
|
-
[]
|
|
311
|
-
),
|
|
312
|
-
set_track_event: IDL.Func([AnalyticKey, SetTrackEvent], [Result_3], []),
|
|
313
|
-
set_track_events: IDL.Func([IDL.Vec(IDL.Tuple(AnalyticKey, SetTrackEvent))], [Result_1], [])
|
|
314
|
-
});
|
|
315
|
-
};
|
|
316
|
-
// @ts-ignore
|
|
317
|
-
export const init = ({IDL}) => {
|
|
318
|
-
return [];
|
|
319
|
-
};
|
|
@@ -1,240 +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 AssetEncodingNoContent {
|
|
6
|
-
modified: bigint;
|
|
7
|
-
sha256: Uint8Array | number[];
|
|
8
|
-
total_length: bigint;
|
|
9
|
-
}
|
|
10
|
-
export interface AssetKey {
|
|
11
|
-
token: [] | [string];
|
|
12
|
-
collection: string;
|
|
13
|
-
owner: Principal;
|
|
14
|
-
name: string;
|
|
15
|
-
description: [] | [string];
|
|
16
|
-
full_path: string;
|
|
17
|
-
}
|
|
18
|
-
export interface AssetNoContent {
|
|
19
|
-
key: AssetKey;
|
|
20
|
-
updated_at: bigint;
|
|
21
|
-
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
22
|
-
headers: Array<[string, string]>;
|
|
23
|
-
created_at: bigint;
|
|
24
|
-
}
|
|
25
|
-
export interface CommitBatch {
|
|
26
|
-
batch_id: bigint;
|
|
27
|
-
headers: Array<[string, string]>;
|
|
28
|
-
chunk_ids: Array<bigint>;
|
|
29
|
-
}
|
|
30
|
-
export interface Config {
|
|
31
|
-
storage: StorageConfig;
|
|
32
|
-
}
|
|
33
|
-
export interface Controller {
|
|
34
|
-
updated_at: bigint;
|
|
35
|
-
metadata: Array<[string, string]>;
|
|
36
|
-
created_at: bigint;
|
|
37
|
-
scope: ControllerScope;
|
|
38
|
-
expires_at: [] | [bigint];
|
|
39
|
-
}
|
|
40
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
41
|
-
export interface CustomDomain {
|
|
42
|
-
updated_at: bigint;
|
|
43
|
-
created_at: bigint;
|
|
44
|
-
bn_id: [] | [string];
|
|
45
|
-
}
|
|
46
|
-
export interface DelDoc {
|
|
47
|
-
updated_at: [] | [bigint];
|
|
48
|
-
}
|
|
49
|
-
export interface DeleteControllersArgs {
|
|
50
|
-
controllers: Array<Principal>;
|
|
51
|
-
}
|
|
52
|
-
export interface DepositCyclesArgs {
|
|
53
|
-
cycles: bigint;
|
|
54
|
-
destination_id: Principal;
|
|
55
|
-
}
|
|
56
|
-
export interface Doc {
|
|
57
|
-
updated_at: bigint;
|
|
58
|
-
owner: Principal;
|
|
59
|
-
data: Uint8Array | number[];
|
|
60
|
-
description: [] | [string];
|
|
61
|
-
created_at: bigint;
|
|
62
|
-
}
|
|
63
|
-
export interface HttpRequest {
|
|
64
|
-
url: string;
|
|
65
|
-
method: string;
|
|
66
|
-
body: Uint8Array | number[];
|
|
67
|
-
headers: Array<[string, string]>;
|
|
68
|
-
certificate_version: [] | [number];
|
|
69
|
-
}
|
|
70
|
-
export interface HttpResponse {
|
|
71
|
-
body: Uint8Array | number[];
|
|
72
|
-
headers: Array<[string, string]>;
|
|
73
|
-
streaming_strategy: [] | [StreamingStrategy];
|
|
74
|
-
status_code: number;
|
|
75
|
-
}
|
|
76
|
-
export interface InitAssetKey {
|
|
77
|
-
token: [] | [string];
|
|
78
|
-
collection: string;
|
|
79
|
-
name: string;
|
|
80
|
-
description: [] | [string];
|
|
81
|
-
encoding_type: [] | [string];
|
|
82
|
-
full_path: string;
|
|
83
|
-
}
|
|
84
|
-
export interface InitUploadResult {
|
|
85
|
-
batch_id: bigint;
|
|
86
|
-
}
|
|
87
|
-
export interface ListMatcher {
|
|
88
|
-
key: [] | [string];
|
|
89
|
-
description: [] | [string];
|
|
90
|
-
}
|
|
91
|
-
export interface ListOrder {
|
|
92
|
-
field: ListOrderField;
|
|
93
|
-
desc: boolean;
|
|
94
|
-
}
|
|
95
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
96
|
-
export interface ListPaginate {
|
|
97
|
-
start_after: [] | [string];
|
|
98
|
-
limit: [] | [bigint];
|
|
99
|
-
}
|
|
100
|
-
export interface ListParams {
|
|
101
|
-
order: [] | [ListOrder];
|
|
102
|
-
owner: [] | [Principal];
|
|
103
|
-
matcher: [] | [ListMatcher];
|
|
104
|
-
paginate: [] | [ListPaginate];
|
|
105
|
-
}
|
|
106
|
-
export interface ListResults {
|
|
107
|
-
matches_pages: [] | [bigint];
|
|
108
|
-
matches_length: bigint;
|
|
109
|
-
items_page: [] | [bigint];
|
|
110
|
-
items: Array<[string, AssetNoContent]>;
|
|
111
|
-
items_length: bigint;
|
|
112
|
-
}
|
|
113
|
-
export interface ListResults_1 {
|
|
114
|
-
matches_pages: [] | [bigint];
|
|
115
|
-
matches_length: bigint;
|
|
116
|
-
items_page: [] | [bigint];
|
|
117
|
-
items: Array<[string, Doc]>;
|
|
118
|
-
items_length: bigint;
|
|
119
|
-
}
|
|
120
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
121
|
-
export interface MemorySize {
|
|
122
|
-
stable: bigint;
|
|
123
|
-
heap: bigint;
|
|
124
|
-
}
|
|
125
|
-
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
126
|
-
export interface Rule {
|
|
127
|
-
max_capacity: [] | [number];
|
|
128
|
-
memory: [] | [Memory];
|
|
129
|
-
updated_at: bigint;
|
|
130
|
-
max_size: [] | [bigint];
|
|
131
|
-
read: Permission;
|
|
132
|
-
created_at: bigint;
|
|
133
|
-
mutable_permissions: [] | [boolean];
|
|
134
|
-
write: Permission;
|
|
135
|
-
}
|
|
136
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
137
|
-
export interface SetController {
|
|
138
|
-
metadata: Array<[string, string]>;
|
|
139
|
-
scope: ControllerScope;
|
|
140
|
-
expires_at: [] | [bigint];
|
|
141
|
-
}
|
|
142
|
-
export interface SetControllersArgs {
|
|
143
|
-
controller: SetController;
|
|
144
|
-
controllers: Array<Principal>;
|
|
145
|
-
}
|
|
146
|
-
export interface SetDoc {
|
|
147
|
-
updated_at: [] | [bigint];
|
|
148
|
-
data: Uint8Array | number[];
|
|
149
|
-
description: [] | [string];
|
|
150
|
-
}
|
|
151
|
-
export interface SetRule {
|
|
152
|
-
max_capacity: [] | [number];
|
|
153
|
-
memory: [] | [Memory];
|
|
154
|
-
updated_at: [] | [bigint];
|
|
155
|
-
max_size: [] | [bigint];
|
|
156
|
-
read: Permission;
|
|
157
|
-
mutable_permissions: [] | [boolean];
|
|
158
|
-
write: Permission;
|
|
159
|
-
}
|
|
160
|
-
export interface StorageConfig {
|
|
161
|
-
iframe: [] | [StorageConfigIFrame];
|
|
162
|
-
rewrites: Array<[string, string]>;
|
|
163
|
-
headers: Array<[string, Array<[string, string]>]>;
|
|
164
|
-
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
165
|
-
}
|
|
166
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
167
|
-
export interface StorageConfigRedirect {
|
|
168
|
-
status_code: number;
|
|
169
|
-
location: string;
|
|
170
|
-
}
|
|
171
|
-
export interface StreamingCallbackHttpResponse {
|
|
172
|
-
token: [] | [StreamingCallbackToken];
|
|
173
|
-
body: Uint8Array | number[];
|
|
174
|
-
}
|
|
175
|
-
export interface StreamingCallbackToken {
|
|
176
|
-
memory: Memory;
|
|
177
|
-
token: [] | [string];
|
|
178
|
-
sha256: [] | [Uint8Array | number[]];
|
|
179
|
-
headers: Array<[string, string]>;
|
|
180
|
-
index: bigint;
|
|
181
|
-
encoding_type: string;
|
|
182
|
-
full_path: string;
|
|
183
|
-
}
|
|
184
|
-
export type StreamingStrategy = {
|
|
185
|
-
Callback: {
|
|
186
|
-
token: StreamingCallbackToken;
|
|
187
|
-
callback: [Principal, string];
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
export interface UploadChunk {
|
|
191
|
-
content: Uint8Array | number[];
|
|
192
|
-
batch_id: bigint;
|
|
193
|
-
order_id: [] | [bigint];
|
|
194
|
-
}
|
|
195
|
-
export interface UploadChunkResult {
|
|
196
|
-
chunk_id: bigint;
|
|
197
|
-
}
|
|
198
|
-
export interface _SERVICE {
|
|
199
|
-
build_version: ActorMethod<[], string>;
|
|
200
|
-
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
201
|
-
count_assets: ActorMethod<[string], bigint>;
|
|
202
|
-
count_docs: ActorMethod<[string], bigint>;
|
|
203
|
-
del_asset: ActorMethod<[string, string], undefined>;
|
|
204
|
-
del_assets: ActorMethod<[string], undefined>;
|
|
205
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
206
|
-
del_custom_domain: ActorMethod<[string], undefined>;
|
|
207
|
-
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
208
|
-
del_docs: ActorMethod<[string], undefined>;
|
|
209
|
-
del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
|
|
210
|
-
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
211
|
-
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
212
|
-
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
213
|
-
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
214
|
-
get_config: ActorMethod<[], Config>;
|
|
215
|
-
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
216
|
-
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
217
|
-
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
218
|
-
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
219
|
-
http_request_streaming_callback: ActorMethod<
|
|
220
|
-
[StreamingCallbackToken],
|
|
221
|
-
StreamingCallbackHttpResponse
|
|
222
|
-
>;
|
|
223
|
-
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
224
|
-
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
225
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
226
|
-
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
227
|
-
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
228
|
-
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
229
|
-
memory_size: ActorMethod<[], MemorySize>;
|
|
230
|
-
set_config: ActorMethod<[Config], undefined>;
|
|
231
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
232
|
-
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
233
|
-
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
234
|
-
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
235
|
-
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
236
|
-
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
237
|
-
version: ActorMethod<[], string>;
|
|
238
|
-
}
|
|
239
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
240
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|