@junobuild/admin 0.5.0-next-2025-05-26.1 → 0.5.0-next-2025-05-27
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 +3 -3
- package/dist/declarations/mission_control/mission_control.did.d.ts +0 -189
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +1 -198
- package/dist/declarations/mission_control/mission_control.factory.did.js +1 -198
- package/dist/declarations/satellite/satellite.did.d.ts +43 -0
- package/dist/declarations/satellite/satellite.factory.certified.did.js +46 -1
- package/dist/declarations/satellite/satellite.factory.did.js +46 -1
- package/dist/declarations/satellite/satellite.factory.did.mjs +46 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -6,46 +6,9 @@ export interface Account {
|
|
|
6
6
|
owner: Principal;
|
|
7
7
|
subaccount: [] | [Uint8Array | number[]];
|
|
8
8
|
}
|
|
9
|
-
export interface AssetEncodingNoContent {
|
|
10
|
-
modified: bigint;
|
|
11
|
-
sha256: Uint8Array | number[];
|
|
12
|
-
total_length: bigint;
|
|
13
|
-
}
|
|
14
|
-
export interface AssetKey {
|
|
15
|
-
token: [] | [string];
|
|
16
|
-
collection: string;
|
|
17
|
-
owner: Principal;
|
|
18
|
-
name: string;
|
|
19
|
-
description: [] | [string];
|
|
20
|
-
full_path: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AssetNoContent {
|
|
23
|
-
key: AssetKey;
|
|
24
|
-
updated_at: bigint;
|
|
25
|
-
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
26
|
-
headers: Array<[string, string]>;
|
|
27
|
-
created_at: bigint;
|
|
28
|
-
version: [] | [bigint];
|
|
29
|
-
}
|
|
30
|
-
export interface AssetsUpgradeOptions {
|
|
31
|
-
clear_existing_assets: [] | [boolean];
|
|
32
|
-
}
|
|
33
|
-
export interface CommitBatch {
|
|
34
|
-
batch_id: bigint;
|
|
35
|
-
headers: Array<[string, string]>;
|
|
36
|
-
chunk_ids: Array<bigint>;
|
|
37
|
-
}
|
|
38
|
-
export interface CommitProposal {
|
|
39
|
-
sha256: Uint8Array | number[];
|
|
40
|
-
proposal_id: bigint;
|
|
41
|
-
}
|
|
42
9
|
export interface Config {
|
|
43
10
|
monitoring: [] | [MonitoringConfig];
|
|
44
11
|
}
|
|
45
|
-
export interface ConfigMaxMemorySize {
|
|
46
|
-
stable: [] | [bigint];
|
|
47
|
-
heap: [] | [bigint];
|
|
48
|
-
}
|
|
49
12
|
export interface Controller {
|
|
50
13
|
updated_at: bigint;
|
|
51
14
|
metadata: Array<[string, string]>;
|
|
@@ -58,12 +21,6 @@ export interface CreateCanisterConfig {
|
|
|
58
21
|
subnet_id: [] | [Principal];
|
|
59
22
|
name: [] | [string];
|
|
60
23
|
}
|
|
61
|
-
export interface CustomDomain {
|
|
62
|
-
updated_at: bigint;
|
|
63
|
-
created_at: bigint;
|
|
64
|
-
version: [] | [bigint];
|
|
65
|
-
bn_id: [] | [string];
|
|
66
|
-
}
|
|
67
24
|
export interface CyclesBalance {
|
|
68
25
|
timestamp: bigint;
|
|
69
26
|
amount: bigint;
|
|
@@ -95,9 +52,6 @@ export interface CyclesThreshold {
|
|
|
95
52
|
fund_cycles: bigint;
|
|
96
53
|
min_cycles: bigint;
|
|
97
54
|
}
|
|
98
|
-
export interface DeleteProposalAssets {
|
|
99
|
-
proposal_ids: Array<bigint>;
|
|
100
|
-
}
|
|
101
55
|
export interface DepositCyclesArgs {
|
|
102
56
|
cycles: bigint;
|
|
103
57
|
destination_id: Principal;
|
|
@@ -121,59 +75,6 @@ export interface GetMonitoringHistory {
|
|
|
121
75
|
from: [] | [bigint];
|
|
122
76
|
segment_id: Principal;
|
|
123
77
|
}
|
|
124
|
-
export interface HttpRequest {
|
|
125
|
-
url: string;
|
|
126
|
-
method: string;
|
|
127
|
-
body: Uint8Array | number[];
|
|
128
|
-
headers: Array<[string, string]>;
|
|
129
|
-
certificate_version: [] | [number];
|
|
130
|
-
}
|
|
131
|
-
export interface HttpResponse {
|
|
132
|
-
body: Uint8Array | number[];
|
|
133
|
-
headers: Array<[string, string]>;
|
|
134
|
-
streaming_strategy: [] | [StreamingStrategy];
|
|
135
|
-
status_code: number;
|
|
136
|
-
}
|
|
137
|
-
export interface InitAssetKey {
|
|
138
|
-
token: [] | [string];
|
|
139
|
-
collection: string;
|
|
140
|
-
name: string;
|
|
141
|
-
description: [] | [string];
|
|
142
|
-
encoding_type: [] | [string];
|
|
143
|
-
full_path: string;
|
|
144
|
-
}
|
|
145
|
-
export interface InitUploadResult {
|
|
146
|
-
batch_id: bigint;
|
|
147
|
-
}
|
|
148
|
-
export interface ListMatcher {
|
|
149
|
-
key: [] | [string];
|
|
150
|
-
updated_at: [] | [TimestampMatcher];
|
|
151
|
-
description: [] | [string];
|
|
152
|
-
created_at: [] | [TimestampMatcher];
|
|
153
|
-
}
|
|
154
|
-
export interface ListOrder {
|
|
155
|
-
field: ListOrderField;
|
|
156
|
-
desc: boolean;
|
|
157
|
-
}
|
|
158
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
159
|
-
export interface ListPaginate {
|
|
160
|
-
start_after: [] | [string];
|
|
161
|
-
limit: [] | [bigint];
|
|
162
|
-
}
|
|
163
|
-
export interface ListParams {
|
|
164
|
-
order: [] | [ListOrder];
|
|
165
|
-
owner: [] | [Principal];
|
|
166
|
-
matcher: [] | [ListMatcher];
|
|
167
|
-
paginate: [] | [ListPaginate];
|
|
168
|
-
}
|
|
169
|
-
export interface ListResults {
|
|
170
|
-
matches_pages: [] | [bigint];
|
|
171
|
-
matches_length: bigint;
|
|
172
|
-
items_page: [] | [bigint];
|
|
173
|
-
items: Array<[string, AssetNoContent]>;
|
|
174
|
-
items_length: bigint;
|
|
175
|
-
}
|
|
176
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
177
78
|
export interface MissionControlSettings {
|
|
178
79
|
updated_at: bigint;
|
|
179
80
|
created_at: bigint;
|
|
@@ -214,26 +115,6 @@ export interface Orbiter {
|
|
|
214
115
|
created_at: bigint;
|
|
215
116
|
settings: [] | [Settings];
|
|
216
117
|
}
|
|
217
|
-
export interface Proposal {
|
|
218
|
-
status: ProposalStatus;
|
|
219
|
-
updated_at: bigint;
|
|
220
|
-
sha256: [] | [Uint8Array | number[]];
|
|
221
|
-
executed_at: [] | [bigint];
|
|
222
|
-
owner: Principal;
|
|
223
|
-
created_at: bigint;
|
|
224
|
-
version: [] | [bigint];
|
|
225
|
-
proposal_type: ProposalType;
|
|
226
|
-
}
|
|
227
|
-
export type ProposalStatus =
|
|
228
|
-
| {Initialized: null}
|
|
229
|
-
| {Failed: null}
|
|
230
|
-
| {Open: null}
|
|
231
|
-
| {Rejected: null}
|
|
232
|
-
| {Executed: null}
|
|
233
|
-
| {Accepted: null};
|
|
234
|
-
export type ProposalType =
|
|
235
|
-
| {AssetsUpgrade: AssetsUpgradeOptions}
|
|
236
|
-
| {SegmentsDeployment: SegmentsDeploymentOptions};
|
|
237
118
|
export type Result = {Ok: bigint} | {Err: TransferError};
|
|
238
119
|
export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
|
|
239
120
|
export interface Satellite {
|
|
@@ -243,11 +124,6 @@ export interface Satellite {
|
|
|
243
124
|
satellite_id: Principal;
|
|
244
125
|
settings: [] | [Settings];
|
|
245
126
|
}
|
|
246
|
-
export interface SegmentsDeploymentOptions {
|
|
247
|
-
orbiter: [] | [string];
|
|
248
|
-
mission_control_version: [] | [string];
|
|
249
|
-
satellite_version: [] | [string];
|
|
250
|
-
}
|
|
251
127
|
export interface SegmentsMonitoringStrategy {
|
|
252
128
|
ids: Array<Principal>;
|
|
253
129
|
strategy: CyclesMonitoringStrategy;
|
|
@@ -260,47 +136,9 @@ export interface SetController {
|
|
|
260
136
|
export interface Settings {
|
|
261
137
|
monitoring: [] | [Monitoring];
|
|
262
138
|
}
|
|
263
|
-
export interface StorageConfig {
|
|
264
|
-
iframe: [] | [StorageConfigIFrame];
|
|
265
|
-
rewrites: Array<[string, string]>;
|
|
266
|
-
headers: Array<[string, Array<[string, string]>]>;
|
|
267
|
-
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
268
|
-
raw_access: [] | [StorageConfigRawAccess];
|
|
269
|
-
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
270
|
-
}
|
|
271
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
272
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
273
|
-
export interface StorageConfigRedirect {
|
|
274
|
-
status_code: number;
|
|
275
|
-
location: string;
|
|
276
|
-
}
|
|
277
|
-
export interface StreamingCallbackHttpResponse {
|
|
278
|
-
token: [] | [StreamingCallbackToken];
|
|
279
|
-
body: Uint8Array | number[];
|
|
280
|
-
}
|
|
281
|
-
export interface StreamingCallbackToken {
|
|
282
|
-
memory: Memory;
|
|
283
|
-
token: [] | [string];
|
|
284
|
-
sha256: [] | [Uint8Array | number[]];
|
|
285
|
-
headers: Array<[string, string]>;
|
|
286
|
-
index: bigint;
|
|
287
|
-
encoding_type: string;
|
|
288
|
-
full_path: string;
|
|
289
|
-
}
|
|
290
|
-
export type StreamingStrategy = {
|
|
291
|
-
Callback: {
|
|
292
|
-
token: StreamingCallbackToken;
|
|
293
|
-
callback: [Principal, string];
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
139
|
export interface Timestamp {
|
|
297
140
|
timestamp_nanos: bigint;
|
|
298
141
|
}
|
|
299
|
-
export type TimestampMatcher =
|
|
300
|
-
| {Equal: bigint}
|
|
301
|
-
| {Between: [bigint, bigint]}
|
|
302
|
-
| {GreaterThan: bigint}
|
|
303
|
-
| {LessThan: bigint};
|
|
304
142
|
export interface Tokens {
|
|
305
143
|
e8s: bigint;
|
|
306
144
|
}
|
|
@@ -339,14 +177,6 @@ export type TransferError_1 =
|
|
|
339
177
|
| {CreatedInFuture: {ledger_time: bigint}}
|
|
340
178
|
| {TooOld: null}
|
|
341
179
|
| {InsufficientFunds: {balance: bigint}};
|
|
342
|
-
export interface UploadChunk {
|
|
343
|
-
content: Uint8Array | number[];
|
|
344
|
-
batch_id: bigint;
|
|
345
|
-
order_id: [] | [bigint];
|
|
346
|
-
}
|
|
347
|
-
export interface UploadChunkResult {
|
|
348
|
-
chunk_id: bigint;
|
|
349
|
-
}
|
|
350
180
|
export interface User {
|
|
351
181
|
updated_at: bigint;
|
|
352
182
|
metadata: Array<[string, string]>;
|
|
@@ -357,19 +187,15 @@ export interface User {
|
|
|
357
187
|
export interface _SERVICE {
|
|
358
188
|
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
359
189
|
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
360
|
-
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
361
|
-
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
362
190
|
create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
|
|
363
191
|
create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
|
|
364
192
|
create_satellite: ActorMethod<[string], Satellite>;
|
|
365
193
|
create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
|
|
366
|
-
del_custom_domain: ActorMethod<[string], undefined>;
|
|
367
194
|
del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
368
195
|
del_orbiter: ActorMethod<[Principal, bigint], undefined>;
|
|
369
196
|
del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
370
197
|
del_satellite: ActorMethod<[Principal, bigint], undefined>;
|
|
371
198
|
del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
372
|
-
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
373
199
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
374
200
|
get_config: ActorMethod<[], [] | [Config]>;
|
|
375
201
|
get_metadata: ActorMethod<[], Array<[string, string]>>;
|
|
@@ -378,29 +204,17 @@ export interface _SERVICE {
|
|
|
378
204
|
Array<[MonitoringHistoryKey, MonitoringHistory]>
|
|
379
205
|
>;
|
|
380
206
|
get_monitoring_status: ActorMethod<[], MonitoringStatus>;
|
|
381
|
-
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
382
207
|
get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
|
|
383
|
-
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
384
208
|
get_user: ActorMethod<[], Principal>;
|
|
385
209
|
get_user_data: ActorMethod<[], User>;
|
|
386
|
-
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
387
|
-
http_request_streaming_callback: ActorMethod<
|
|
388
|
-
[StreamingCallbackToken],
|
|
389
|
-
StreamingCallbackHttpResponse
|
|
390
|
-
>;
|
|
391
210
|
icp_transfer: ActorMethod<[TransferArgs], Result>;
|
|
392
211
|
icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
|
|
393
|
-
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
394
|
-
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
395
|
-
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
396
|
-
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
397
212
|
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
398
213
|
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
|
|
399
214
|
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
400
215
|
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
401
216
|
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
402
217
|
set_config: ActorMethod<[[] | [Config]], undefined>;
|
|
403
|
-
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
404
218
|
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
405
219
|
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
406
220
|
set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
|
|
@@ -415,16 +229,13 @@ export interface _SERVICE {
|
|
|
415
229
|
[Array<Principal>, Array<Principal>, SetController],
|
|
416
230
|
undefined
|
|
417
231
|
>;
|
|
418
|
-
set_storage_config: ActorMethod<[StorageConfig], undefined>;
|
|
419
232
|
start_monitoring: ActorMethod<[], undefined>;
|
|
420
233
|
stop_monitoring: ActorMethod<[], undefined>;
|
|
421
|
-
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
422
234
|
top_up: ActorMethod<[Principal, Tokens], undefined>;
|
|
423
235
|
unset_orbiter: ActorMethod<[Principal], undefined>;
|
|
424
236
|
unset_satellite: ActorMethod<[Principal], undefined>;
|
|
425
237
|
update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
|
|
426
238
|
update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
|
|
427
|
-
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
428
239
|
}
|
|
429
240
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
430
241
|
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
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
3
|
const CyclesThreshold = IDL.Record({
|
|
13
4
|
fund_cycles: IDL.Nat,
|
|
14
5
|
min_cycles: IDL.Nat
|
|
@@ -40,9 +31,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
40
31
|
satellite_id: IDL.Principal,
|
|
41
32
|
settings: IDL.Opt(Settings)
|
|
42
33
|
});
|
|
43
|
-
const DeleteProposalAssets = IDL.Record({
|
|
44
|
-
proposal_ids: IDL.Vec(IDL.Nat)
|
|
45
|
-
});
|
|
46
34
|
const DepositCyclesArgs = IDL.Record({
|
|
47
35
|
cycles: IDL.Nat,
|
|
48
36
|
destination_id: IDL.Principal
|
|
@@ -99,66 +87,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
99
87
|
const MonitoringStatus = IDL.Record({
|
|
100
88
|
cycles: IDL.Opt(CyclesMonitoringStatus)
|
|
101
89
|
});
|
|
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
90
|
const MissionControlSettings = IDL.Record({
|
|
133
91
|
updated_at: IDL.Nat64,
|
|
134
92
|
created_at: IDL.Nat64,
|
|
135
93
|
monitoring: IDL.Opt(Monitoring)
|
|
136
94
|
});
|
|
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
95
|
const User = IDL.Record({
|
|
163
96
|
updated_at: IDL.Nat64,
|
|
164
97
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -166,39 +99,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
166
99
|
created_at: IDL.Nat64,
|
|
167
100
|
config: IDL.Opt(Config)
|
|
168
101
|
});
|
|
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
102
|
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
203
103
|
const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
|
|
204
104
|
const TransferArgs = IDL.Record({
|
|
@@ -243,77 +143,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
243
143
|
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
244
144
|
});
|
|
245
145
|
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
146
|
const ControllerScope = IDL.Variant({
|
|
318
147
|
Write: IDL.Null,
|
|
319
148
|
Admin: IDL.Null
|
|
@@ -350,28 +179,18 @@ export const idlFactory = ({IDL}) => {
|
|
|
350
179
|
const MonitoringStopConfig = IDL.Record({
|
|
351
180
|
cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
|
|
352
181
|
});
|
|
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
182
|
return IDL.Service({
|
|
360
183
|
add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
361
184
|
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
185
|
create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
365
186
|
create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
|
|
366
187
|
create_satellite: IDL.Func([IDL.Text], [Satellite], []),
|
|
367
188
|
create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
|
|
368
|
-
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
369
189
|
del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
370
190
|
del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
371
191
|
del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
372
192
|
del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
373
193
|
del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
374
|
-
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
375
194
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
376
195
|
get_config: IDL.Func([], [IDL.Opt(Config)], []),
|
|
377
196
|
get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], []),
|
|
@@ -381,23 +200,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
381
200
|
[]
|
|
382
201
|
),
|
|
383
202
|
get_monitoring_status: IDL.Func([], [MonitoringStatus], []),
|
|
384
|
-
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
|
|
385
203
|
get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], []),
|
|
386
|
-
get_storage_config: IDL.Func([], [StorageConfig], []),
|
|
387
204
|
get_user: IDL.Func([], [IDL.Principal], []),
|
|
388
205
|
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
206
|
icp_transfer: IDL.Func([TransferArgs], [Result], []),
|
|
396
207
|
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
208
|
list_mission_control_controllers: IDL.Func(
|
|
402
209
|
[],
|
|
403
210
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -412,7 +219,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
412
219
|
[]
|
|
413
220
|
),
|
|
414
221
|
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
415
|
-
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
416
222
|
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
417
223
|
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
|
|
418
224
|
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
@@ -437,16 +243,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
437
243
|
[],
|
|
438
244
|
[]
|
|
439
245
|
),
|
|
440
|
-
set_storage_config: IDL.Func([StorageConfig], [], []),
|
|
441
246
|
start_monitoring: IDL.Func([], [], []),
|
|
442
247
|
stop_monitoring: IDL.Func([], [], []),
|
|
443
|
-
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
444
248
|
top_up: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
445
249
|
unset_orbiter: IDL.Func([IDL.Principal], [], []),
|
|
446
250
|
unset_satellite: IDL.Func([IDL.Principal], [], []),
|
|
447
251
|
update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
|
|
448
|
-
update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
|
|
449
|
-
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
252
|
+
update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
|
|
450
253
|
});
|
|
451
254
|
};
|
|
452
255
|
// @ts-ignore
|