@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,313 +1,323 @@
|
|
|
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
49
|
export interface Controller {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
updated_at: bigint;
|
|
51
|
+
metadata: Array<[string, string]>;
|
|
52
|
+
created_at: bigint;
|
|
53
|
+
scope: ControllerScope;
|
|
54
|
+
expires_at: [] | [bigint];
|
|
55
55
|
}
|
|
56
|
-
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
|
|
56
|
+
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
57
57
|
export interface CreateCanisterArgs {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
block_index: [] | [bigint];
|
|
59
|
+
subnet_id: [] | [Principal];
|
|
60
|
+
user: Principal;
|
|
61
|
+
}
|
|
62
|
+
export interface CreateSatelliteArgs {
|
|
63
|
+
block_index: [] | [bigint];
|
|
64
|
+
subnet_id: [] | [Principal];
|
|
65
|
+
storage: [] | [InitStorageArgs];
|
|
66
|
+
user: Principal;
|
|
61
67
|
}
|
|
62
68
|
export interface CustomDomain {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
updated_at: bigint;
|
|
70
|
+
created_at: bigint;
|
|
71
|
+
version: [] | [bigint];
|
|
72
|
+
bn_id: [] | [string];
|
|
67
73
|
}
|
|
68
74
|
export interface DeleteControllersArgs {
|
|
69
|
-
|
|
75
|
+
controllers: Array<Principal>;
|
|
70
76
|
}
|
|
71
77
|
export interface DeleteProposalAssets {
|
|
72
|
-
|
|
78
|
+
proposal_ids: Array<bigint>;
|
|
73
79
|
}
|
|
74
80
|
export interface GetCreateCanisterFeeArgs {
|
|
75
|
-
|
|
81
|
+
user: Principal;
|
|
76
82
|
}
|
|
77
83
|
export interface HttpRequest {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
url: string;
|
|
85
|
+
method: string;
|
|
86
|
+
body: Uint8Array | number[];
|
|
87
|
+
headers: Array<[string, string]>;
|
|
88
|
+
certificate_version: [] | [number];
|
|
83
89
|
}
|
|
84
90
|
export interface HttpResponse {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
body: Uint8Array | number[];
|
|
92
|
+
headers: Array<[string, string]>;
|
|
93
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
94
|
+
status_code: number;
|
|
89
95
|
}
|
|
90
96
|
export interface InitAssetKey {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
token: [] | [string];
|
|
98
|
+
collection: string;
|
|
99
|
+
name: string;
|
|
100
|
+
description: [] | [string];
|
|
101
|
+
encoding_type: [] | [string];
|
|
102
|
+
full_path: string;
|
|
103
|
+
}
|
|
104
|
+
export interface InitStorageArgs {
|
|
105
|
+
system_memory: [] | [InitStorageMemory];
|
|
97
106
|
}
|
|
107
|
+
export type InitStorageMemory = { Heap: null } | { Stable: null };
|
|
98
108
|
export interface InitUploadResult {
|
|
99
|
-
|
|
109
|
+
batch_id: bigint;
|
|
100
110
|
}
|
|
101
111
|
export interface ListMatcher {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
key: [] | [string];
|
|
113
|
+
updated_at: [] | [TimestampMatcher];
|
|
114
|
+
description: [] | [string];
|
|
115
|
+
created_at: [] | [TimestampMatcher];
|
|
106
116
|
}
|
|
107
117
|
export interface ListOrder {
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
field: ListOrderField;
|
|
119
|
+
desc: boolean;
|
|
110
120
|
}
|
|
111
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
121
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
112
122
|
export interface ListPaginate {
|
|
113
|
-
|
|
114
|
-
|
|
123
|
+
start_after: [] | [string];
|
|
124
|
+
limit: [] | [bigint];
|
|
115
125
|
}
|
|
116
126
|
export interface ListParams {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
order: [] | [ListOrder];
|
|
128
|
+
owner: [] | [Principal];
|
|
129
|
+
matcher: [] | [ListMatcher];
|
|
130
|
+
paginate: [] | [ListPaginate];
|
|
121
131
|
}
|
|
122
132
|
export interface ListProposalResults {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
matches_length: bigint;
|
|
134
|
+
items: Array<[ProposalKey, Proposal]>;
|
|
135
|
+
items_length: bigint;
|
|
126
136
|
}
|
|
127
137
|
export interface ListProposalsOrder {
|
|
128
|
-
|
|
138
|
+
desc: boolean;
|
|
129
139
|
}
|
|
130
140
|
export interface ListProposalsPaginate {
|
|
131
|
-
|
|
132
|
-
|
|
141
|
+
start_after: [] | [bigint];
|
|
142
|
+
limit: [] | [bigint];
|
|
133
143
|
}
|
|
134
144
|
export interface ListProposalsParams {
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
order: [] | [ListProposalsOrder];
|
|
146
|
+
paginate: [] | [ListProposalsPaginate];
|
|
137
147
|
}
|
|
138
148
|
export interface ListResults {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
matches_pages: [] | [bigint];
|
|
150
|
+
matches_length: bigint;
|
|
151
|
+
items_page: [] | [bigint];
|
|
152
|
+
items: Array<[string, AssetNoContent]>;
|
|
153
|
+
items_length: bigint;
|
|
144
154
|
}
|
|
145
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
155
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
146
156
|
export interface MissionControl {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
updated_at: bigint;
|
|
158
|
+
credits: Tokens;
|
|
159
|
+
mission_control_id: [] | [Principal];
|
|
160
|
+
owner: Principal;
|
|
161
|
+
created_at: bigint;
|
|
152
162
|
}
|
|
153
163
|
export interface Payment {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
|
|
164
|
+
status: PaymentStatus;
|
|
165
|
+
updated_at: bigint;
|
|
166
|
+
block_index_payment: bigint;
|
|
167
|
+
mission_control_id: [] | [Principal];
|
|
168
|
+
created_at: bigint;
|
|
169
|
+
block_index_refunded: [] | [bigint];
|
|
170
|
+
}
|
|
171
|
+
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
162
172
|
export interface Proposal {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
status: ProposalStatus;
|
|
174
|
+
updated_at: bigint;
|
|
175
|
+
sha256: [] | [Uint8Array | number[]];
|
|
176
|
+
executed_at: [] | [bigint];
|
|
177
|
+
owner: Principal;
|
|
178
|
+
created_at: bigint;
|
|
179
|
+
version: [] | [bigint];
|
|
180
|
+
proposal_type: ProposalType;
|
|
171
181
|
}
|
|
172
182
|
export interface ProposalKey {
|
|
173
|
-
|
|
183
|
+
proposal_id: bigint;
|
|
174
184
|
}
|
|
175
185
|
export type ProposalStatus =
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
186
|
+
| { Initialized: null }
|
|
187
|
+
| { Failed: null }
|
|
188
|
+
| { Open: null }
|
|
189
|
+
| { Rejected: null }
|
|
190
|
+
| { Executed: null }
|
|
191
|
+
| { Accepted: null };
|
|
182
192
|
export type ProposalType =
|
|
183
|
-
|
|
184
|
-
|
|
193
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
194
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
185
195
|
export interface RateConfig {
|
|
186
|
-
|
|
187
|
-
|
|
196
|
+
max_tokens: bigint;
|
|
197
|
+
time_per_token_ns: bigint;
|
|
188
198
|
}
|
|
189
|
-
export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
199
|
+
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
190
200
|
export interface SegmentsDeploymentOptions {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
201
|
+
orbiter: [] | [string];
|
|
202
|
+
mission_control_version: [] | [string];
|
|
203
|
+
satellite_version: [] | [string];
|
|
194
204
|
}
|
|
195
205
|
export interface SetController {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
206
|
+
metadata: Array<[string, string]>;
|
|
207
|
+
scope: ControllerScope;
|
|
208
|
+
expires_at: [] | [bigint];
|
|
199
209
|
}
|
|
200
210
|
export interface SetControllersArgs {
|
|
201
|
-
|
|
202
|
-
|
|
211
|
+
controller: SetController;
|
|
212
|
+
controllers: Array<Principal>;
|
|
203
213
|
}
|
|
204
214
|
export interface SetStorageConfig {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
215
|
+
iframe: [] | [StorageConfigIFrame];
|
|
216
|
+
rewrites: Array<[string, string]>;
|
|
217
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
218
|
+
version: [] | [bigint];
|
|
219
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
220
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
221
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
212
222
|
}
|
|
213
223
|
export interface StorageConfig {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
225
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
224
|
+
iframe: [] | [StorageConfigIFrame];
|
|
225
|
+
updated_at: [] | [bigint];
|
|
226
|
+
rewrites: Array<[string, string]>;
|
|
227
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
228
|
+
created_at: [] | [bigint];
|
|
229
|
+
version: [] | [bigint];
|
|
230
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
231
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
232
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
233
|
+
}
|
|
234
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
235
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
226
236
|
export interface StorageConfigRedirect {
|
|
227
|
-
|
|
228
|
-
|
|
237
|
+
status_code: number;
|
|
238
|
+
location: string;
|
|
229
239
|
}
|
|
230
240
|
export interface StreamingCallbackHttpResponse {
|
|
231
|
-
|
|
232
|
-
|
|
241
|
+
token: [] | [StreamingCallbackToken];
|
|
242
|
+
body: Uint8Array | number[];
|
|
233
243
|
}
|
|
234
244
|
export interface StreamingCallbackToken {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
245
|
+
memory: Memory;
|
|
246
|
+
token: [] | [string];
|
|
247
|
+
sha256: [] | [Uint8Array | number[]];
|
|
248
|
+
headers: Array<[string, string]>;
|
|
249
|
+
index: bigint;
|
|
250
|
+
encoding_type: string;
|
|
251
|
+
full_path: string;
|
|
242
252
|
}
|
|
243
253
|
export type StreamingStrategy = {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
254
|
+
Callback: {
|
|
255
|
+
token: StreamingCallbackToken;
|
|
256
|
+
callback: [Principal, string];
|
|
257
|
+
};
|
|
248
258
|
};
|
|
249
259
|
export type TimestampMatcher =
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
| { Equal: bigint }
|
|
261
|
+
| { Between: [bigint, bigint] }
|
|
262
|
+
| { GreaterThan: bigint }
|
|
263
|
+
| { LessThan: bigint };
|
|
254
264
|
export interface Tokens {
|
|
255
|
-
|
|
265
|
+
e8s: bigint;
|
|
256
266
|
}
|
|
257
267
|
export interface UploadChunk {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
268
|
+
content: Uint8Array | number[];
|
|
269
|
+
batch_id: bigint;
|
|
270
|
+
order_id: [] | [bigint];
|
|
261
271
|
}
|
|
262
272
|
export interface UploadChunkResult {
|
|
263
|
-
|
|
273
|
+
chunk_id: bigint;
|
|
264
274
|
}
|
|
265
275
|
export interface _SERVICE {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
276
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
277
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
278
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
279
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
280
|
+
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
281
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
282
|
+
count_proposals: ActorMethod<[], bigint>;
|
|
283
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
284
|
+
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
|
|
285
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
286
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
287
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
288
|
+
get_config: ActorMethod<[], Config>;
|
|
289
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
290
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
291
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
292
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
293
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
294
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
295
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
296
|
+
http_request_streaming_callback: ActorMethod<
|
|
297
|
+
[StreamingCallbackToken],
|
|
298
|
+
StreamingCallbackHttpResponse
|
|
299
|
+
>;
|
|
300
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
301
|
+
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
302
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
303
|
+
[Array<InitAssetKey>, bigint],
|
|
304
|
+
Array<[string, InitUploadResult]>
|
|
305
|
+
>;
|
|
306
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
307
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
308
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
309
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
310
|
+
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
311
|
+
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
312
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
313
|
+
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
314
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
315
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
316
|
+
set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
|
|
317
|
+
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
318
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
319
|
+
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
320
|
+
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
311
321
|
}
|
|
312
322
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
313
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
323
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -19,6 +19,19 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
20
|
user: IDL.Principal
|
|
21
21
|
});
|
|
22
|
+
const InitStorageMemory = IDL.Variant({
|
|
23
|
+
Heap: IDL.Null,
|
|
24
|
+
Stable: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const InitStorageArgs = IDL.Record({
|
|
27
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
28
|
+
});
|
|
29
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
30
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
31
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
32
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
33
|
+
user: IDL.Principal
|
|
34
|
+
});
|
|
22
35
|
const DeleteControllersArgs = IDL.Record({
|
|
23
36
|
controllers: IDL.Vec(IDL.Principal)
|
|
24
37
|
});
|
|
@@ -278,7 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
278
291
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
292
|
count_proposals: IDL.Func([], [IDL.Nat64], []),
|
|
280
293
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
|
-
create_satellite: IDL.Func([
|
|
294
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
282
295
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
283
296
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
284
297
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
@@ -19,6 +19,19 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
20
|
user: IDL.Principal
|
|
21
21
|
});
|
|
22
|
+
const InitStorageMemory = IDL.Variant({
|
|
23
|
+
Heap: IDL.Null,
|
|
24
|
+
Stable: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const InitStorageArgs = IDL.Record({
|
|
27
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
28
|
+
});
|
|
29
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
30
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
31
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
32
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
33
|
+
user: IDL.Principal
|
|
34
|
+
});
|
|
22
35
|
const DeleteControllersArgs = IDL.Record({
|
|
23
36
|
controllers: IDL.Vec(IDL.Principal)
|
|
24
37
|
});
|
|
@@ -278,7 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
278
291
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
292
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
293
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
|
-
create_satellite: IDL.Func([
|
|
294
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
282
295
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
283
296
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
284
297
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
@@ -19,6 +19,19 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
20
|
user: IDL.Principal
|
|
21
21
|
});
|
|
22
|
+
const InitStorageMemory = IDL.Variant({
|
|
23
|
+
Heap: IDL.Null,
|
|
24
|
+
Stable: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const InitStorageArgs = IDL.Record({
|
|
27
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
28
|
+
});
|
|
29
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
30
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
31
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
32
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
33
|
+
user: IDL.Principal
|
|
34
|
+
});
|
|
22
35
|
const DeleteControllersArgs = IDL.Record({
|
|
23
36
|
controllers: IDL.Vec(IDL.Principal)
|
|
24
37
|
});
|
|
@@ -278,7 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
278
291
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
292
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
293
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
|
-
create_satellite: IDL.Func([
|
|
294
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
282
295
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
283
296
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
284
297
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|