@junobuild/cdn 0.0.1
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/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/declarations/console/console.did.d.ts +266 -0
- package/dist/declarations/console/console.factory.certified.did.js +284 -0
- package/dist/declarations/console/console.factory.did.js +284 -0
- package/dist/declarations/console/console.factory.did.mjs +284 -0
- package/dist/declarations/mission_control/mission_control.did.d.ts +430 -0
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +455 -0
- package/dist/declarations/mission_control/mission_control.factory.did.js +455 -0
- package/dist/index.js +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +7 -0
- package/dist/types/api/_actor.api.d.ts +4 -0
- package/dist/types/api/proposal.api.d.ts +18 -0
- package/dist/types/api/storage.api.d.ts +8 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/types/actor.params.d.ts +56 -0
- package/dist/types/types/cdn.d.ts +11 -0
- package/dist/types/utils/actor.utils.d.ts +9 -0
- package/package.json +61 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const idlFactory = ({IDL}) => {
|
|
3
|
+
const CommitProposal = IDL.Record({
|
|
4
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
5
|
+
proposal_id: IDL.Nat
|
|
6
|
+
});
|
|
7
|
+
const CommitBatch = IDL.Record({
|
|
8
|
+
batch_id: IDL.Nat,
|
|
9
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
10
|
+
chunk_ids: IDL.Vec(IDL.Nat)
|
|
11
|
+
});
|
|
12
|
+
const CyclesThreshold = IDL.Record({
|
|
13
|
+
fund_cycles: IDL.Nat,
|
|
14
|
+
min_cycles: IDL.Nat
|
|
15
|
+
});
|
|
16
|
+
const CyclesMonitoringStrategy = IDL.Variant({
|
|
17
|
+
BelowThreshold: CyclesThreshold
|
|
18
|
+
});
|
|
19
|
+
const CyclesMonitoring = IDL.Record({
|
|
20
|
+
strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
21
|
+
enabled: IDL.Bool
|
|
22
|
+
});
|
|
23
|
+
const Monitoring = IDL.Record({cycles: IDL.Opt(CyclesMonitoring)});
|
|
24
|
+
const Settings = IDL.Record({monitoring: IDL.Opt(Monitoring)});
|
|
25
|
+
const Orbiter = IDL.Record({
|
|
26
|
+
updated_at: IDL.Nat64,
|
|
27
|
+
orbiter_id: IDL.Principal,
|
|
28
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
29
|
+
created_at: IDL.Nat64,
|
|
30
|
+
settings: IDL.Opt(Settings)
|
|
31
|
+
});
|
|
32
|
+
const CreateCanisterConfig = IDL.Record({
|
|
33
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
34
|
+
name: IDL.Opt(IDL.Text)
|
|
35
|
+
});
|
|
36
|
+
const Satellite = IDL.Record({
|
|
37
|
+
updated_at: IDL.Nat64,
|
|
38
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
39
|
+
created_at: IDL.Nat64,
|
|
40
|
+
satellite_id: IDL.Principal,
|
|
41
|
+
settings: IDL.Opt(Settings)
|
|
42
|
+
});
|
|
43
|
+
const DeleteProposalAssets = IDL.Record({
|
|
44
|
+
proposal_ids: IDL.Vec(IDL.Nat)
|
|
45
|
+
});
|
|
46
|
+
const DepositCyclesArgs = IDL.Record({
|
|
47
|
+
cycles: IDL.Nat,
|
|
48
|
+
destination_id: IDL.Principal
|
|
49
|
+
});
|
|
50
|
+
const DepositedCyclesEmailNotification = IDL.Record({
|
|
51
|
+
to: IDL.Opt(IDL.Text),
|
|
52
|
+
enabled: IDL.Bool
|
|
53
|
+
});
|
|
54
|
+
const CyclesMonitoringConfig = IDL.Record({
|
|
55
|
+
notification: IDL.Opt(DepositedCyclesEmailNotification),
|
|
56
|
+
default_strategy: IDL.Opt(CyclesMonitoringStrategy)
|
|
57
|
+
});
|
|
58
|
+
const MonitoringConfig = IDL.Record({
|
|
59
|
+
cycles: IDL.Opt(CyclesMonitoringConfig)
|
|
60
|
+
});
|
|
61
|
+
const Config = IDL.Record({monitoring: IDL.Opt(MonitoringConfig)});
|
|
62
|
+
const GetMonitoringHistory = IDL.Record({
|
|
63
|
+
to: IDL.Opt(IDL.Nat64),
|
|
64
|
+
from: IDL.Opt(IDL.Nat64),
|
|
65
|
+
segment_id: IDL.Principal
|
|
66
|
+
});
|
|
67
|
+
const MonitoringHistoryKey = IDL.Record({
|
|
68
|
+
segment_id: IDL.Principal,
|
|
69
|
+
created_at: IDL.Nat64,
|
|
70
|
+
nonce: IDL.Int32
|
|
71
|
+
});
|
|
72
|
+
const CyclesBalance = IDL.Record({
|
|
73
|
+
timestamp: IDL.Nat64,
|
|
74
|
+
amount: IDL.Nat
|
|
75
|
+
});
|
|
76
|
+
const FundingErrorCode = IDL.Variant({
|
|
77
|
+
BalanceCheckFailed: IDL.Null,
|
|
78
|
+
ObtainCyclesFailed: IDL.Null,
|
|
79
|
+
DepositFailed: IDL.Null,
|
|
80
|
+
InsufficientCycles: IDL.Null,
|
|
81
|
+
Other: IDL.Text
|
|
82
|
+
});
|
|
83
|
+
const FundingFailure = IDL.Record({
|
|
84
|
+
timestamp: IDL.Nat64,
|
|
85
|
+
error_code: FundingErrorCode
|
|
86
|
+
});
|
|
87
|
+
const MonitoringHistoryCycles = IDL.Record({
|
|
88
|
+
deposited_cycles: IDL.Opt(CyclesBalance),
|
|
89
|
+
cycles: CyclesBalance,
|
|
90
|
+
funding_failure: IDL.Opt(FundingFailure)
|
|
91
|
+
});
|
|
92
|
+
const MonitoringHistory = IDL.Record({
|
|
93
|
+
cycles: IDL.Opt(MonitoringHistoryCycles)
|
|
94
|
+
});
|
|
95
|
+
const CyclesMonitoringStatus = IDL.Record({
|
|
96
|
+
monitored_ids: IDL.Vec(IDL.Principal),
|
|
97
|
+
running: IDL.Bool
|
|
98
|
+
});
|
|
99
|
+
const MonitoringStatus = IDL.Record({
|
|
100
|
+
cycles: IDL.Opt(CyclesMonitoringStatus)
|
|
101
|
+
});
|
|
102
|
+
const ProposalStatus = IDL.Variant({
|
|
103
|
+
Initialized: IDL.Null,
|
|
104
|
+
Failed: IDL.Null,
|
|
105
|
+
Open: IDL.Null,
|
|
106
|
+
Rejected: IDL.Null,
|
|
107
|
+
Executed: IDL.Null,
|
|
108
|
+
Accepted: IDL.Null
|
|
109
|
+
});
|
|
110
|
+
const AssetsUpgradeOptions = IDL.Record({
|
|
111
|
+
clear_existing_assets: IDL.Opt(IDL.Bool)
|
|
112
|
+
});
|
|
113
|
+
const SegmentsDeploymentOptions = IDL.Record({
|
|
114
|
+
orbiter: IDL.Opt(IDL.Text),
|
|
115
|
+
mission_control_version: IDL.Opt(IDL.Text),
|
|
116
|
+
satellite_version: IDL.Opt(IDL.Text)
|
|
117
|
+
});
|
|
118
|
+
const ProposalType = IDL.Variant({
|
|
119
|
+
AssetsUpgrade: AssetsUpgradeOptions,
|
|
120
|
+
SegmentsDeployment: SegmentsDeploymentOptions
|
|
121
|
+
});
|
|
122
|
+
const Proposal = IDL.Record({
|
|
123
|
+
status: ProposalStatus,
|
|
124
|
+
updated_at: IDL.Nat64,
|
|
125
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
126
|
+
executed_at: IDL.Opt(IDL.Nat64),
|
|
127
|
+
owner: IDL.Principal,
|
|
128
|
+
created_at: IDL.Nat64,
|
|
129
|
+
version: IDL.Opt(IDL.Nat64),
|
|
130
|
+
proposal_type: ProposalType
|
|
131
|
+
});
|
|
132
|
+
const MissionControlSettings = IDL.Record({
|
|
133
|
+
updated_at: IDL.Nat64,
|
|
134
|
+
created_at: IDL.Nat64,
|
|
135
|
+
monitoring: IDL.Opt(Monitoring)
|
|
136
|
+
});
|
|
137
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
138
|
+
Deny: IDL.Null,
|
|
139
|
+
AllowAny: IDL.Null,
|
|
140
|
+
SameOrigin: IDL.Null
|
|
141
|
+
});
|
|
142
|
+
const ConfigMaxMemorySize = IDL.Record({
|
|
143
|
+
stable: IDL.Opt(IDL.Nat64),
|
|
144
|
+
heap: IDL.Opt(IDL.Nat64)
|
|
145
|
+
});
|
|
146
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
147
|
+
Deny: IDL.Null,
|
|
148
|
+
Allow: IDL.Null
|
|
149
|
+
});
|
|
150
|
+
const StorageConfigRedirect = IDL.Record({
|
|
151
|
+
status_code: IDL.Nat16,
|
|
152
|
+
location: IDL.Text
|
|
153
|
+
});
|
|
154
|
+
const StorageConfig = IDL.Record({
|
|
155
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
156
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
157
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
158
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
159
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
160
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
161
|
+
});
|
|
162
|
+
const User = IDL.Record({
|
|
163
|
+
updated_at: IDL.Nat64,
|
|
164
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
165
|
+
user: IDL.Opt(IDL.Principal),
|
|
166
|
+
created_at: IDL.Nat64,
|
|
167
|
+
config: IDL.Opt(Config)
|
|
168
|
+
});
|
|
169
|
+
const HttpRequest = IDL.Record({
|
|
170
|
+
url: IDL.Text,
|
|
171
|
+
method: IDL.Text,
|
|
172
|
+
body: IDL.Vec(IDL.Nat8),
|
|
173
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
174
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
175
|
+
});
|
|
176
|
+
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
177
|
+
const StreamingCallbackToken = IDL.Record({
|
|
178
|
+
memory: Memory,
|
|
179
|
+
token: IDL.Opt(IDL.Text),
|
|
180
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
181
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
182
|
+
index: IDL.Nat64,
|
|
183
|
+
encoding_type: IDL.Text,
|
|
184
|
+
full_path: IDL.Text
|
|
185
|
+
});
|
|
186
|
+
const StreamingStrategy = IDL.Variant({
|
|
187
|
+
Callback: IDL.Record({
|
|
188
|
+
token: StreamingCallbackToken,
|
|
189
|
+
callback: IDL.Func([], [], [])
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
const HttpResponse = IDL.Record({
|
|
193
|
+
body: IDL.Vec(IDL.Nat8),
|
|
194
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
195
|
+
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
196
|
+
status_code: IDL.Nat16
|
|
197
|
+
});
|
|
198
|
+
const StreamingCallbackHttpResponse = IDL.Record({
|
|
199
|
+
token: IDL.Opt(StreamingCallbackToken),
|
|
200
|
+
body: IDL.Vec(IDL.Nat8)
|
|
201
|
+
});
|
|
202
|
+
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
203
|
+
const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
|
|
204
|
+
const TransferArgs = IDL.Record({
|
|
205
|
+
to: IDL.Vec(IDL.Nat8),
|
|
206
|
+
fee: Tokens,
|
|
207
|
+
memo: IDL.Nat64,
|
|
208
|
+
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
209
|
+
created_at_time: IDL.Opt(Timestamp),
|
|
210
|
+
amount: Tokens
|
|
211
|
+
});
|
|
212
|
+
const TransferError = IDL.Variant({
|
|
213
|
+
TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
|
|
214
|
+
BadFee: IDL.Record({expected_fee: Tokens}),
|
|
215
|
+
TxDuplicate: IDL.Record({duplicate_of: IDL.Nat64}),
|
|
216
|
+
TxCreatedInFuture: IDL.Null,
|
|
217
|
+
InsufficientFunds: IDL.Record({balance: Tokens})
|
|
218
|
+
});
|
|
219
|
+
const Result = IDL.Variant({Ok: IDL.Nat64, Err: TransferError});
|
|
220
|
+
const Account = IDL.Record({
|
|
221
|
+
owner: IDL.Principal,
|
|
222
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
223
|
+
});
|
|
224
|
+
const TransferArg = IDL.Record({
|
|
225
|
+
to: Account,
|
|
226
|
+
fee: IDL.Opt(IDL.Nat),
|
|
227
|
+
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
228
|
+
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
229
|
+
created_at_time: IDL.Opt(IDL.Nat64),
|
|
230
|
+
amount: IDL.Nat
|
|
231
|
+
});
|
|
232
|
+
const TransferError_1 = IDL.Variant({
|
|
233
|
+
GenericError: IDL.Record({
|
|
234
|
+
message: IDL.Text,
|
|
235
|
+
error_code: IDL.Nat
|
|
236
|
+
}),
|
|
237
|
+
TemporarilyUnavailable: IDL.Null,
|
|
238
|
+
BadBurn: IDL.Record({min_burn_amount: IDL.Nat}),
|
|
239
|
+
Duplicate: IDL.Record({duplicate_of: IDL.Nat}),
|
|
240
|
+
BadFee: IDL.Record({expected_fee: IDL.Nat}),
|
|
241
|
+
CreatedInFuture: IDL.Record({ledger_time: IDL.Nat64}),
|
|
242
|
+
TooOld: IDL.Null,
|
|
243
|
+
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
244
|
+
});
|
|
245
|
+
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
246
|
+
const InitAssetKey = IDL.Record({
|
|
247
|
+
token: IDL.Opt(IDL.Text),
|
|
248
|
+
collection: IDL.Text,
|
|
249
|
+
name: IDL.Text,
|
|
250
|
+
description: IDL.Opt(IDL.Text),
|
|
251
|
+
encoding_type: IDL.Opt(IDL.Text),
|
|
252
|
+
full_path: IDL.Text
|
|
253
|
+
});
|
|
254
|
+
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
255
|
+
const ListOrderField = IDL.Variant({
|
|
256
|
+
UpdatedAt: IDL.Null,
|
|
257
|
+
Keys: IDL.Null,
|
|
258
|
+
CreatedAt: IDL.Null
|
|
259
|
+
});
|
|
260
|
+
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
261
|
+
const TimestampMatcher = IDL.Variant({
|
|
262
|
+
Equal: IDL.Nat64,
|
|
263
|
+
Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
264
|
+
GreaterThan: IDL.Nat64,
|
|
265
|
+
LessThan: IDL.Nat64
|
|
266
|
+
});
|
|
267
|
+
const ListMatcher = IDL.Record({
|
|
268
|
+
key: IDL.Opt(IDL.Text),
|
|
269
|
+
updated_at: IDL.Opt(TimestampMatcher),
|
|
270
|
+
description: IDL.Opt(IDL.Text),
|
|
271
|
+
created_at: IDL.Opt(TimestampMatcher)
|
|
272
|
+
});
|
|
273
|
+
const ListPaginate = IDL.Record({
|
|
274
|
+
start_after: IDL.Opt(IDL.Text),
|
|
275
|
+
limit: IDL.Opt(IDL.Nat64)
|
|
276
|
+
});
|
|
277
|
+
const ListParams = IDL.Record({
|
|
278
|
+
order: IDL.Opt(ListOrder),
|
|
279
|
+
owner: IDL.Opt(IDL.Principal),
|
|
280
|
+
matcher: IDL.Opt(ListMatcher),
|
|
281
|
+
paginate: IDL.Opt(ListPaginate)
|
|
282
|
+
});
|
|
283
|
+
const AssetKey = IDL.Record({
|
|
284
|
+
token: IDL.Opt(IDL.Text),
|
|
285
|
+
collection: IDL.Text,
|
|
286
|
+
owner: IDL.Principal,
|
|
287
|
+
name: IDL.Text,
|
|
288
|
+
description: IDL.Opt(IDL.Text),
|
|
289
|
+
full_path: IDL.Text
|
|
290
|
+
});
|
|
291
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
292
|
+
modified: IDL.Nat64,
|
|
293
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
294
|
+
total_length: IDL.Nat
|
|
295
|
+
});
|
|
296
|
+
const AssetNoContent = IDL.Record({
|
|
297
|
+
key: AssetKey,
|
|
298
|
+
updated_at: IDL.Nat64,
|
|
299
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
300
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
301
|
+
created_at: IDL.Nat64,
|
|
302
|
+
version: IDL.Opt(IDL.Nat64)
|
|
303
|
+
});
|
|
304
|
+
const ListResults = IDL.Record({
|
|
305
|
+
matches_pages: IDL.Opt(IDL.Nat64),
|
|
306
|
+
matches_length: IDL.Nat64,
|
|
307
|
+
items_page: IDL.Opt(IDL.Nat64),
|
|
308
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
309
|
+
items_length: IDL.Nat64
|
|
310
|
+
});
|
|
311
|
+
const CustomDomain = IDL.Record({
|
|
312
|
+
updated_at: IDL.Nat64,
|
|
313
|
+
created_at: IDL.Nat64,
|
|
314
|
+
version: IDL.Opt(IDL.Nat64),
|
|
315
|
+
bn_id: IDL.Opt(IDL.Text)
|
|
316
|
+
});
|
|
317
|
+
const ControllerScope = IDL.Variant({
|
|
318
|
+
Write: IDL.Null,
|
|
319
|
+
Admin: IDL.Null
|
|
320
|
+
});
|
|
321
|
+
const Controller = IDL.Record({
|
|
322
|
+
updated_at: IDL.Nat64,
|
|
323
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
324
|
+
created_at: IDL.Nat64,
|
|
325
|
+
scope: ControllerScope,
|
|
326
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
327
|
+
});
|
|
328
|
+
const SetController = IDL.Record({
|
|
329
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
330
|
+
scope: ControllerScope,
|
|
331
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
332
|
+
});
|
|
333
|
+
const SegmentsMonitoringStrategy = IDL.Record({
|
|
334
|
+
ids: IDL.Vec(IDL.Principal),
|
|
335
|
+
strategy: CyclesMonitoringStrategy
|
|
336
|
+
});
|
|
337
|
+
const CyclesMonitoringStartConfig = IDL.Record({
|
|
338
|
+
orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
|
|
339
|
+
mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
340
|
+
satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
|
|
341
|
+
});
|
|
342
|
+
const MonitoringStartConfig = IDL.Record({
|
|
343
|
+
cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
|
|
344
|
+
});
|
|
345
|
+
const CyclesMonitoringStopConfig = IDL.Record({
|
|
346
|
+
satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
347
|
+
try_mission_control: IDL.Opt(IDL.Bool),
|
|
348
|
+
orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
|
|
349
|
+
});
|
|
350
|
+
const MonitoringStopConfig = IDL.Record({
|
|
351
|
+
cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
|
|
352
|
+
});
|
|
353
|
+
const UploadChunk = IDL.Record({
|
|
354
|
+
content: IDL.Vec(IDL.Nat8),
|
|
355
|
+
batch_id: IDL.Nat,
|
|
356
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
357
|
+
});
|
|
358
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
359
|
+
return IDL.Service({
|
|
360
|
+
add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
361
|
+
add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
362
|
+
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
363
|
+
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
364
|
+
create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
365
|
+
create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
|
|
366
|
+
create_satellite: IDL.Func([IDL.Text], [Satellite], []),
|
|
367
|
+
create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
|
|
368
|
+
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
369
|
+
del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
370
|
+
del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
371
|
+
del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
372
|
+
del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
373
|
+
del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
374
|
+
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
375
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
376
|
+
get_config: IDL.Func([], [IDL.Opt(Config)], []),
|
|
377
|
+
get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], []),
|
|
378
|
+
get_monitoring_history: IDL.Func(
|
|
379
|
+
[GetMonitoringHistory],
|
|
380
|
+
[IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
|
|
381
|
+
[]
|
|
382
|
+
),
|
|
383
|
+
get_monitoring_status: IDL.Func([], [MonitoringStatus], []),
|
|
384
|
+
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
|
|
385
|
+
get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], []),
|
|
386
|
+
get_storage_config: IDL.Func([], [StorageConfig], []),
|
|
387
|
+
get_user: IDL.Func([], [IDL.Principal], []),
|
|
388
|
+
get_user_data: IDL.Func([], [User], []),
|
|
389
|
+
http_request: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
390
|
+
http_request_streaming_callback: IDL.Func(
|
|
391
|
+
[StreamingCallbackToken],
|
|
392
|
+
[StreamingCallbackHttpResponse],
|
|
393
|
+
[]
|
|
394
|
+
),
|
|
395
|
+
icp_transfer: IDL.Func([TransferArgs], [Result], []),
|
|
396
|
+
icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
|
|
397
|
+
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
398
|
+
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
399
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
400
|
+
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
401
|
+
list_mission_control_controllers: IDL.Func(
|
|
402
|
+
[],
|
|
403
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
404
|
+
[]
|
|
405
|
+
),
|
|
406
|
+
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], []),
|
|
407
|
+
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], []),
|
|
408
|
+
remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
409
|
+
remove_satellites_controllers: IDL.Func(
|
|
410
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
|
|
411
|
+
[],
|
|
412
|
+
[]
|
|
413
|
+
),
|
|
414
|
+
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
415
|
+
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
416
|
+
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
417
|
+
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
|
|
418
|
+
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
419
|
+
set_orbiter_metadata: IDL.Func(
|
|
420
|
+
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
421
|
+
[Orbiter],
|
|
422
|
+
[]
|
|
423
|
+
),
|
|
424
|
+
set_orbiters_controllers: IDL.Func(
|
|
425
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
426
|
+
[],
|
|
427
|
+
[]
|
|
428
|
+
),
|
|
429
|
+
set_satellite: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Satellite], []),
|
|
430
|
+
set_satellite_metadata: IDL.Func(
|
|
431
|
+
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
432
|
+
[Satellite],
|
|
433
|
+
[]
|
|
434
|
+
),
|
|
435
|
+
set_satellites_controllers: IDL.Func(
|
|
436
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
437
|
+
[],
|
|
438
|
+
[]
|
|
439
|
+
),
|
|
440
|
+
set_storage_config: IDL.Func([StorageConfig], [], []),
|
|
441
|
+
start_monitoring: IDL.Func([], [], []),
|
|
442
|
+
stop_monitoring: IDL.Func([], [], []),
|
|
443
|
+
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
444
|
+
top_up: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
445
|
+
unset_orbiter: IDL.Func([IDL.Principal], [], []),
|
|
446
|
+
unset_satellite: IDL.Func([IDL.Principal], [], []),
|
|
447
|
+
update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
|
|
448
|
+
update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], []),
|
|
449
|
+
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
// @ts-ignore
|
|
453
|
+
export const init = ({IDL}) => {
|
|
454
|
+
return [];
|
|
455
|
+
};
|