@junobuild/ic-client 3.1.2 → 3.1.3
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/actor.js +1 -1
- package/actor.js.map +3 -3
- package/actor.mjs +1 -1
- package/actor.mjs.map +3 -3
- package/declarations/console/console.did.d.ts +228 -218
- package/declarations/console/console.factory.certified.did.js +14 -1
- package/declarations/console/console.factory.did.js +14 -1
- package/declarations/console/console.factory.did.mjs +14 -1
- package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
- package/declarations/mission_control/mission_control.did.d.ts +178 -169
- package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
- package/declarations/mission_control/mission_control.factory.did.js +16 -4
- package/declarations/observatory/observatory.did.d.ts +54 -54
- package/declarations/orbiter/orbiter.did.d.ts +206 -206
- package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
- package/declarations/satellite/satellite.did.d.ts +294 -285
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +294 -285
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -1,267 +1,267 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssertMissionControlCenterArgs {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
mission_control_id: Principal;
|
|
7
|
+
user: Principal;
|
|
8
8
|
}
|
|
9
9
|
export interface AssetEncodingNoContent {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
modified: bigint;
|
|
11
|
+
sha256: Uint8Array | number[];
|
|
12
|
+
total_length: bigint;
|
|
13
13
|
}
|
|
14
14
|
export interface AssetKey {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
token: [] | [string];
|
|
16
|
+
collection: string;
|
|
17
|
+
owner: Principal;
|
|
18
|
+
name: string;
|
|
19
|
+
description: [] | [string];
|
|
20
|
+
full_path: string;
|
|
21
21
|
}
|
|
22
22
|
export interface AssetNoContent {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
29
|
}
|
|
30
30
|
export interface AssetsUpgradeOptions {
|
|
31
|
-
|
|
31
|
+
clear_existing_assets: [] | [boolean];
|
|
32
32
|
}
|
|
33
33
|
export interface CommitBatch {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
batch_id: bigint;
|
|
35
|
+
headers: Array<[string, string]>;
|
|
36
|
+
chunk_ids: Array<bigint>;
|
|
37
37
|
}
|
|
38
38
|
export interface CommitProposal {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
sha256: Uint8Array | number[];
|
|
40
|
+
proposal_id: bigint;
|
|
41
41
|
}
|
|
42
42
|
export interface Config {
|
|
43
|
-
|
|
43
|
+
storage: StorageConfig;
|
|
44
44
|
}
|
|
45
45
|
export interface ConfigMaxMemorySize {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
stable: [] | [bigint];
|
|
47
|
+
heap: [] | [bigint];
|
|
48
48
|
}
|
|
49
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
49
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
50
50
|
export interface CreateCanisterArgs {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
block_index: [] | [bigint];
|
|
52
|
+
subnet_id: [] | [Principal];
|
|
53
|
+
user: Principal;
|
|
54
54
|
}
|
|
55
55
|
export interface CustomDomain {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
updated_at: bigint;
|
|
57
|
+
created_at: bigint;
|
|
58
|
+
version: [] | [bigint];
|
|
59
|
+
bn_id: [] | [string];
|
|
60
60
|
}
|
|
61
61
|
export interface DeleteControllersArgs {
|
|
62
|
-
|
|
62
|
+
controllers: Array<Principal>;
|
|
63
63
|
}
|
|
64
64
|
export interface DeleteProposalAssets {
|
|
65
|
-
|
|
65
|
+
proposal_ids: Array<bigint>;
|
|
66
66
|
}
|
|
67
67
|
export interface GetCreateCanisterFeeArgs {
|
|
68
|
-
|
|
68
|
+
user: Principal;
|
|
69
69
|
}
|
|
70
70
|
export interface HttpRequest {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
url: string;
|
|
72
|
+
method: string;
|
|
73
|
+
body: Uint8Array | number[];
|
|
74
|
+
headers: Array<[string, string]>;
|
|
75
|
+
certificate_version: [] | [number];
|
|
76
76
|
}
|
|
77
77
|
export interface HttpResponse {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
body: Uint8Array | number[];
|
|
79
|
+
headers: Array<[string, string]>;
|
|
80
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
81
|
+
status_code: number;
|
|
82
82
|
}
|
|
83
83
|
export interface InitAssetKey {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
token: [] | [string];
|
|
85
|
+
collection: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: [] | [string];
|
|
88
|
+
encoding_type: [] | [string];
|
|
89
|
+
full_path: string;
|
|
90
90
|
}
|
|
91
91
|
export interface InitUploadResult {
|
|
92
|
-
|
|
92
|
+
batch_id: bigint;
|
|
93
93
|
}
|
|
94
94
|
export interface ListMatcher {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
key: [] | [string];
|
|
96
|
+
updated_at: [] | [TimestampMatcher];
|
|
97
|
+
description: [] | [string];
|
|
98
|
+
created_at: [] | [TimestampMatcher];
|
|
99
99
|
}
|
|
100
100
|
export interface ListOrder {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
field: ListOrderField;
|
|
102
|
+
desc: boolean;
|
|
103
103
|
}
|
|
104
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
104
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
105
105
|
export interface ListPaginate {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
start_after: [] | [string];
|
|
107
|
+
limit: [] | [bigint];
|
|
108
108
|
}
|
|
109
109
|
export interface ListParams {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
order: [] | [ListOrder];
|
|
111
|
+
owner: [] | [Principal];
|
|
112
|
+
matcher: [] | [ListMatcher];
|
|
113
|
+
paginate: [] | [ListPaginate];
|
|
114
114
|
}
|
|
115
115
|
export interface ListResults {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
matches_pages: [] | [bigint];
|
|
117
|
+
matches_length: bigint;
|
|
118
|
+
items_page: [] | [bigint];
|
|
119
|
+
items: Array<[string, AssetNoContent]>;
|
|
120
|
+
items_length: bigint;
|
|
121
121
|
}
|
|
122
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
122
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
123
123
|
export interface MissionControl {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
updated_at: bigint;
|
|
125
|
+
credits: Tokens;
|
|
126
|
+
mission_control_id: [] | [Principal];
|
|
127
|
+
owner: Principal;
|
|
128
|
+
created_at: bigint;
|
|
129
129
|
}
|
|
130
130
|
export interface Payment {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
|
|
131
|
+
status: PaymentStatus;
|
|
132
|
+
updated_at: bigint;
|
|
133
|
+
block_index_payment: bigint;
|
|
134
|
+
mission_control_id: [] | [Principal];
|
|
135
|
+
created_at: bigint;
|
|
136
|
+
block_index_refunded: [] | [bigint];
|
|
137
|
+
}
|
|
138
|
+
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
139
139
|
export interface Proposal {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
status: ProposalStatus;
|
|
141
|
+
updated_at: bigint;
|
|
142
|
+
sha256: [] | [Uint8Array | number[]];
|
|
143
|
+
executed_at: [] | [bigint];
|
|
144
|
+
owner: Principal;
|
|
145
|
+
created_at: bigint;
|
|
146
|
+
version: [] | [bigint];
|
|
147
|
+
proposal_type: ProposalType;
|
|
148
148
|
}
|
|
149
149
|
export type ProposalStatus =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
| { Initialized: null }
|
|
151
|
+
| { Failed: null }
|
|
152
|
+
| { Open: null }
|
|
153
|
+
| { Rejected: null }
|
|
154
|
+
| { Executed: null }
|
|
155
|
+
| { Accepted: null };
|
|
156
156
|
export type ProposalType =
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
158
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
159
159
|
export interface RateConfig {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
max_tokens: bigint;
|
|
161
|
+
time_per_token_ns: bigint;
|
|
162
162
|
}
|
|
163
|
-
export type SegmentType = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
163
|
+
export type SegmentType = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
164
164
|
export interface SegmentsDeploymentOptions {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
orbiter: [] | [string];
|
|
166
|
+
mission_control_version: [] | [string];
|
|
167
|
+
satellite_version: [] | [string];
|
|
168
168
|
}
|
|
169
169
|
export interface SetController {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
metadata: Array<[string, string]>;
|
|
171
|
+
scope: ControllerScope;
|
|
172
|
+
expires_at: [] | [bigint];
|
|
173
173
|
}
|
|
174
174
|
export interface SetControllersArgs {
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
controller: SetController;
|
|
176
|
+
controllers: Array<Principal>;
|
|
177
177
|
}
|
|
178
178
|
export interface StorageConfig {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
187
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
179
|
+
iframe: [] | [StorageConfigIFrame];
|
|
180
|
+
rewrites: Array<[string, string]>;
|
|
181
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
182
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
183
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
184
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
185
|
+
}
|
|
186
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
187
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
188
188
|
export interface StorageConfigRedirect {
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
status_code: number;
|
|
190
|
+
location: string;
|
|
191
191
|
}
|
|
192
192
|
export interface StreamingCallbackHttpResponse {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
token: [] | [StreamingCallbackToken];
|
|
194
|
+
body: Uint8Array | number[];
|
|
195
195
|
}
|
|
196
196
|
export interface StreamingCallbackToken {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
memory: Memory;
|
|
198
|
+
token: [] | [string];
|
|
199
|
+
sha256: [] | [Uint8Array | number[]];
|
|
200
|
+
headers: Array<[string, string]>;
|
|
201
|
+
index: bigint;
|
|
202
|
+
encoding_type: string;
|
|
203
|
+
full_path: string;
|
|
204
204
|
}
|
|
205
205
|
export type StreamingStrategy = {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
Callback: {
|
|
207
|
+
token: StreamingCallbackToken;
|
|
208
|
+
callback: [Principal, string];
|
|
209
|
+
};
|
|
210
210
|
};
|
|
211
211
|
export type TimestampMatcher =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
| { Equal: bigint }
|
|
213
|
+
| { Between: [bigint, bigint] }
|
|
214
|
+
| { GreaterThan: bigint }
|
|
215
|
+
| { LessThan: bigint };
|
|
216
216
|
export interface Tokens {
|
|
217
|
-
|
|
217
|
+
e8s: bigint;
|
|
218
218
|
}
|
|
219
219
|
export interface UploadChunk {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
content: Uint8Array | number[];
|
|
221
|
+
batch_id: bigint;
|
|
222
|
+
order_id: [] | [bigint];
|
|
223
223
|
}
|
|
224
224
|
export interface UploadChunkResult {
|
|
225
|
-
|
|
225
|
+
chunk_id: bigint;
|
|
226
226
|
}
|
|
227
227
|
export interface _SERVICE {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
228
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
229
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
230
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
231
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
232
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
233
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
234
|
+
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
235
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
236
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
237
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
238
|
+
get_config: ActorMethod<[], Config>;
|
|
239
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
240
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
241
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
242
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
243
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
244
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
245
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
246
|
+
http_request_streaming_callback: ActorMethod<
|
|
247
|
+
[StreamingCallbackToken],
|
|
248
|
+
StreamingCallbackHttpResponse
|
|
249
|
+
>;
|
|
250
|
+
init_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
251
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
252
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
253
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
254
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
255
|
+
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
256
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
257
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
258
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
259
|
+
set_fee: ActorMethod<[SegmentType, Tokens], undefined>;
|
|
260
|
+
set_storage_config: ActorMethod<[StorageConfig], undefined>;
|
|
261
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
262
|
+
update_rate_config: ActorMethod<[SegmentType, RateConfig], undefined>;
|
|
263
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
264
|
+
version: ActorMethod<[], string>;
|
|
265
265
|
}
|
|
266
266
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
267
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
267
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssertMissionControlCenterArgs {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
mission_control_id: Principal;
|
|
7
|
+
user: Principal;
|
|
8
8
|
}
|
|
9
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
9
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
10
10
|
export interface CreateCanisterArgs {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
block_index: [] | [bigint];
|
|
12
|
+
user: Principal;
|
|
13
13
|
}
|
|
14
14
|
export interface DeleteControllersArgs {
|
|
15
|
-
|
|
15
|
+
controllers: Array<Principal>;
|
|
16
16
|
}
|
|
17
17
|
export interface GetCreateCanisterFeeArgs {
|
|
18
|
-
|
|
18
|
+
user: Principal;
|
|
19
19
|
}
|
|
20
20
|
export interface LoadRelease {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
total: bigint;
|
|
22
|
+
chunks: bigint;
|
|
23
23
|
}
|
|
24
24
|
export interface MissionControl {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
updated_at: bigint;
|
|
26
|
+
credits: Tokens;
|
|
27
|
+
mission_control_id: [] | [Principal];
|
|
28
|
+
owner: Principal;
|
|
29
|
+
created_at: bigint;
|
|
30
30
|
}
|
|
31
31
|
export interface RateConfig {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
max_tokens: bigint;
|
|
33
|
+
time_per_token_ns: bigint;
|
|
34
34
|
}
|
|
35
35
|
export interface ReleasesVersion {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
satellite: [] | [string];
|
|
37
|
+
orbiter: [] | [string];
|
|
38
|
+
mission_control: [] | [string];
|
|
39
39
|
}
|
|
40
|
-
export type Segment = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
40
|
+
export type Segment = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
41
41
|
export interface SetController {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
metadata: Array<[string, string]>;
|
|
43
|
+
scope: ControllerScope;
|
|
44
|
+
expires_at: [] | [bigint];
|
|
45
45
|
}
|
|
46
46
|
export interface SetControllersArgs {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
controller: SetController;
|
|
48
|
+
controllers: Array<Principal>;
|
|
49
49
|
}
|
|
50
50
|
export interface Tokens {
|
|
51
|
-
|
|
51
|
+
e8s: bigint;
|
|
52
52
|
}
|
|
53
53
|
export interface _SERVICE {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
55
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
56
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
57
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
58
|
+
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
59
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
60
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
61
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
62
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
63
|
+
get_releases_version: ActorMethod<[], ReleasesVersion>;
|
|
64
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
65
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
66
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
67
|
+
load_release: ActorMethod<[Segment, Uint8Array | number[], string], LoadRelease>;
|
|
68
|
+
reset_release: ActorMethod<[Segment], undefined>;
|
|
69
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
70
|
+
set_fee: ActorMethod<[Segment, Tokens], undefined>;
|
|
71
|
+
update_rate_config: ActorMethod<[Segment, RateConfig], undefined>;
|
|
72
|
+
version: ActorMethod<[], string>;
|
|
73
73
|
}
|
|
74
74
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
75
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
75
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|