@junobuild/admin 0.4.0 → 0.5.0-next-2025-05-23

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.
@@ -6,9 +6,46 @@ 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
+ }
9
42
  export interface Config {
10
43
  monitoring: [] | [MonitoringConfig];
11
44
  }
45
+ export interface ConfigMaxMemorySize {
46
+ stable: [] | [bigint];
47
+ heap: [] | [bigint];
48
+ }
12
49
  export interface Controller {
13
50
  updated_at: bigint;
14
51
  metadata: Array<[string, string]>;
@@ -21,6 +58,12 @@ export interface CreateCanisterConfig {
21
58
  subnet_id: [] | [Principal];
22
59
  name: [] | [string];
23
60
  }
61
+ export interface CustomDomain {
62
+ updated_at: bigint;
63
+ created_at: bigint;
64
+ version: [] | [bigint];
65
+ bn_id: [] | [string];
66
+ }
24
67
  export interface CyclesBalance {
25
68
  timestamp: bigint;
26
69
  amount: bigint;
@@ -52,6 +95,9 @@ export interface CyclesThreshold {
52
95
  fund_cycles: bigint;
53
96
  min_cycles: bigint;
54
97
  }
98
+ export interface DeleteProposalAssets {
99
+ proposal_ids: Array<bigint>;
100
+ }
55
101
  export interface DepositCyclesArgs {
56
102
  cycles: bigint;
57
103
  destination_id: Principal;
@@ -60,11 +106,74 @@ export interface DepositedCyclesEmailNotification {
60
106
  to: [] | [string];
61
107
  enabled: boolean;
62
108
  }
109
+ export type FundingErrorCode =
110
+ | {BalanceCheckFailed: null}
111
+ | {ObtainCyclesFailed: null}
112
+ | {DepositFailed: null}
113
+ | {InsufficientCycles: null}
114
+ | {Other: string};
115
+ export interface FundingFailure {
116
+ timestamp: bigint;
117
+ error_code: FundingErrorCode;
118
+ }
63
119
  export interface GetMonitoringHistory {
64
120
  to: [] | [bigint];
65
121
  from: [] | [bigint];
66
122
  segment_id: Principal;
67
123
  }
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};
68
177
  export interface MissionControlSettings {
69
178
  updated_at: bigint;
70
179
  created_at: bigint;
@@ -82,6 +191,7 @@ export interface MonitoringHistory {
82
191
  export interface MonitoringHistoryCycles {
83
192
  deposited_cycles: [] | [CyclesBalance];
84
193
  cycles: CyclesBalance;
194
+ funding_failure: [] | [FundingFailure];
85
195
  }
86
196
  export interface MonitoringHistoryKey {
87
197
  segment_id: Principal;
@@ -104,6 +214,26 @@ export interface Orbiter {
104
214
  created_at: bigint;
105
215
  settings: [] | [Settings];
106
216
  }
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};
107
237
  export type Result = {Ok: bigint} | {Err: TransferError};
108
238
  export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
109
239
  export interface Satellite {
@@ -113,6 +243,11 @@ export interface Satellite {
113
243
  satellite_id: Principal;
114
244
  settings: [] | [Settings];
115
245
  }
246
+ export interface SegmentsDeploymentOptions {
247
+ orbiter: [] | [string];
248
+ mission_control_version: [] | [string];
249
+ satellite_version: [] | [string];
250
+ }
116
251
  export interface SegmentsMonitoringStrategy {
117
252
  ids: Array<Principal>;
118
253
  strategy: CyclesMonitoringStrategy;
@@ -125,9 +260,47 @@ export interface SetController {
125
260
  export interface Settings {
126
261
  monitoring: [] | [Monitoring];
127
262
  }
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
+ };
128
296
  export interface Timestamp {
129
297
  timestamp_nanos: bigint;
130
298
  }
299
+ export type TimestampMatcher =
300
+ | {Equal: bigint}
301
+ | {Between: [bigint, bigint]}
302
+ | {GreaterThan: bigint}
303
+ | {LessThan: bigint};
131
304
  export interface Tokens {
132
305
  e8s: bigint;
133
306
  }
@@ -166,6 +339,14 @@ export type TransferError_1 =
166
339
  | {CreatedInFuture: {ledger_time: bigint}}
167
340
  | {TooOld: null}
168
341
  | {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
+ }
169
350
  export interface User {
170
351
  updated_at: bigint;
171
352
  metadata: Array<[string, string]>;
@@ -176,15 +357,19 @@ export interface User {
176
357
  export interface _SERVICE {
177
358
  add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
178
359
  add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
360
+ commit_proposal: ActorMethod<[CommitProposal], null>;
361
+ commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
179
362
  create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
180
363
  create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
181
364
  create_satellite: ActorMethod<[string], Satellite>;
182
365
  create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
366
+ del_custom_domain: ActorMethod<[string], undefined>;
183
367
  del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
184
368
  del_orbiter: ActorMethod<[Principal, bigint], undefined>;
185
369
  del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
186
370
  del_satellite: ActorMethod<[Principal, bigint], undefined>;
187
371
  del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
372
+ delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
188
373
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
189
374
  get_config: ActorMethod<[], [] | [Config]>;
190
375
  get_metadata: ActorMethod<[], Array<[string, string]>>;
@@ -193,17 +378,29 @@ export interface _SERVICE {
193
378
  Array<[MonitoringHistoryKey, MonitoringHistory]>
194
379
  >;
195
380
  get_monitoring_status: ActorMethod<[], MonitoringStatus>;
381
+ get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
196
382
  get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
383
+ get_storage_config: ActorMethod<[], StorageConfig>;
197
384
  get_user: ActorMethod<[], Principal>;
198
385
  get_user_data: ActorMethod<[], User>;
386
+ http_request: ActorMethod<[HttpRequest], HttpResponse>;
387
+ http_request_streaming_callback: ActorMethod<
388
+ [StreamingCallbackToken],
389
+ StreamingCallbackHttpResponse
390
+ >;
199
391
  icp_transfer: ActorMethod<[TransferArgs], Result>;
200
392
  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]>>;
201
397
  list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
202
398
  list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
203
399
  list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
204
400
  remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
205
401
  remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
206
402
  set_config: ActorMethod<[[] | [Config]], undefined>;
403
+ set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
207
404
  set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
208
405
  set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
209
406
  set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
@@ -218,13 +415,16 @@ export interface _SERVICE {
218
415
  [Array<Principal>, Array<Principal>, SetController],
219
416
  undefined
220
417
  >;
418
+ set_storage_config: ActorMethod<[StorageConfig], undefined>;
221
419
  start_monitoring: ActorMethod<[], undefined>;
222
420
  stop_monitoring: ActorMethod<[], undefined>;
421
+ submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
223
422
  top_up: ActorMethod<[Principal, Tokens], undefined>;
224
423
  unset_orbiter: ActorMethod<[Principal], undefined>;
225
424
  unset_satellite: ActorMethod<[Principal], undefined>;
226
425
  update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
227
426
  update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
427
+ upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
228
428
  }
229
429
  export declare const idlFactory: IDL.InterfaceFactory;
230
430
  export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -1,5 +1,14 @@
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
+ });
3
12
  const CyclesThreshold = IDL.Record({
4
13
  fund_cycles: IDL.Nat,
5
14
  min_cycles: IDL.Nat
@@ -31,6 +40,9 @@ export const idlFactory = ({IDL}) => {
31
40
  satellite_id: IDL.Principal,
32
41
  settings: IDL.Opt(Settings)
33
42
  });
43
+ const DeleteProposalAssets = IDL.Record({
44
+ proposal_ids: IDL.Vec(IDL.Nat)
45
+ });
34
46
  const DepositCyclesArgs = IDL.Record({
35
47
  cycles: IDL.Nat,
36
48
  destination_id: IDL.Principal
@@ -61,9 +73,21 @@ export const idlFactory = ({IDL}) => {
61
73
  timestamp: IDL.Nat64,
62
74
  amount: IDL.Nat
63
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
+ });
64
87
  const MonitoringHistoryCycles = IDL.Record({
65
88
  deposited_cycles: IDL.Opt(CyclesBalance),
66
- cycles: CyclesBalance
89
+ cycles: CyclesBalance,
90
+ funding_failure: IDL.Opt(FundingFailure)
67
91
  });
68
92
  const MonitoringHistory = IDL.Record({
69
93
  cycles: IDL.Opt(MonitoringHistoryCycles)
@@ -75,11 +99,66 @@ export const idlFactory = ({IDL}) => {
75
99
  const MonitoringStatus = IDL.Record({
76
100
  cycles: IDL.Opt(CyclesMonitoringStatus)
77
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
+ });
78
132
  const MissionControlSettings = IDL.Record({
79
133
  updated_at: IDL.Nat64,
80
134
  created_at: IDL.Nat64,
81
135
  monitoring: IDL.Opt(Monitoring)
82
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
+ });
83
162
  const User = IDL.Record({
84
163
  updated_at: IDL.Nat64,
85
164
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
@@ -87,6 +166,39 @@ export const idlFactory = ({IDL}) => {
87
166
  created_at: IDL.Nat64,
88
167
  config: IDL.Opt(Config)
89
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
+ });
90
202
  const Tokens = IDL.Record({e8s: IDL.Nat64});
91
203
  const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
92
204
  const TransferArgs = IDL.Record({
@@ -131,6 +243,77 @@ export const idlFactory = ({IDL}) => {
131
243
  InsufficientFunds: IDL.Record({balance: IDL.Nat})
132
244
  });
133
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
+ });
134
317
  const ControllerScope = IDL.Variant({
135
318
  Write: IDL.Null,
136
319
  Admin: IDL.Null
@@ -167,18 +350,28 @@ export const idlFactory = ({IDL}) => {
167
350
  const MonitoringStopConfig = IDL.Record({
168
351
  cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
169
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});
170
359
  return IDL.Service({
171
360
  add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
172
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], [], []),
173
364
  create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
174
365
  create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
175
366
  create_satellite: IDL.Func([IDL.Text], [Satellite], []),
176
367
  create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
368
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
177
369
  del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
178
370
  del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
179
371
  del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
180
372
  del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
181
373
  del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
374
+ delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
182
375
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
183
376
  get_config: IDL.Func([], [IDL.Opt(Config)], []),
184
377
  get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], []),
@@ -188,11 +381,23 @@ export const idlFactory = ({IDL}) => {
188
381
  []
189
382
  ),
190
383
  get_monitoring_status: IDL.Func([], [MonitoringStatus], []),
384
+ get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
191
385
  get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], []),
386
+ get_storage_config: IDL.Func([], [StorageConfig], []),
192
387
  get_user: IDL.Func([], [IDL.Principal], []),
193
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
+ ),
194
395
  icp_transfer: IDL.Func([TransferArgs], [Result], []),
195
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))], []),
196
401
  list_mission_control_controllers: IDL.Func(
197
402
  [],
198
403
  [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
@@ -207,6 +412,7 @@ export const idlFactory = ({IDL}) => {
207
412
  []
208
413
  ),
209
414
  set_config: IDL.Func([IDL.Opt(Config)], [], []),
415
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
210
416
  set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
211
417
  set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
212
418
  set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
@@ -231,13 +437,16 @@ export const idlFactory = ({IDL}) => {
231
437
  [],
232
438
  []
233
439
  ),
440
+ set_storage_config: IDL.Func([StorageConfig], [], []),
234
441
  start_monitoring: IDL.Func([], [], []),
235
442
  stop_monitoring: IDL.Func([], [], []),
443
+ submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
236
444
  top_up: IDL.Func([IDL.Principal, Tokens], [], []),
237
445
  unset_orbiter: IDL.Func([IDL.Principal], [], []),
238
446
  unset_satellite: IDL.Func([IDL.Principal], [], []),
239
447
  update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
240
- update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
448
+ update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], []),
449
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
241
450
  });
242
451
  };
243
452
  // @ts-ignore