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