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