@junobuild/ic-client 7.2.0 → 8.0.0
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 +21 -13
- package/declarations/console/console.factory.certified.did.js +23 -9
- package/declarations/console/console.factory.did.js +23 -9
- package/declarations/console/console.factory.did.mjs +23 -9
- package/declarations/deprecated/console-0-3-3.did.d.ts +529 -0
- package/declarations/deprecated/console-0-3-3.factory.did.js +567 -0
- package/declarations/deprecated/observatory-0-4-0.did.d.ts +145 -0
- package/declarations/deprecated/observatory-0-4-0.factory.did.js +149 -0
- package/declarations/deprecated/satellite-0-1-6.did.d.ts +511 -0
- package/declarations/deprecated/satellite-0-1-6.factory.did.js +546 -0
- package/declarations/mission_control/mission_control.did.d.ts +3 -0
- package/declarations/mission_control/mission_control.factory.certified.did.js +6 -0
- package/declarations/mission_control/mission_control.factory.did.js +6 -0
- package/declarations/observatory/observatory.did.d.ts +7 -4
- package/declarations/observatory/observatory.factory.certified.did.js +14 -4
- package/declarations/observatory/observatory.factory.did.js +14 -4
- package/declarations/observatory/observatory.factory.did.mjs +14 -4
- package/declarations/orbiter/orbiter.did.d.ts +3 -0
- package/declarations/orbiter/orbiter.factory.certified.did.js +6 -0
- package/declarations/orbiter/orbiter.factory.did.js +6 -0
- package/declarations/orbiter/orbiter.factory.did.mjs +6 -0
- package/declarations/satellite/satellite.did.d.ts +90 -12
- package/declarations/satellite/satellite.factory.certified.did.js +90 -8
- package/declarations/satellite/satellite.factory.did.js +90 -8
- package/declarations/satellite/satellite.factory.did.mjs +90 -8
- package/declarations/sputnik/sputnik.did.d.ts +90 -12
- package/declarations/sputnik/sputnik.factory.certified.did.js +90 -8
- package/declarations/sputnik/sputnik.factory.did.js +90 -8
- package/package.json +1 -1
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
|
|
6
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
+
|
|
9
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
10
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
11
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
12
|
+
|
|
13
|
+
export interface Account {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
credits: Tokens;
|
|
16
|
+
mission_control_id: [] | [Principal];
|
|
17
|
+
provider: [] | [Provider];
|
|
18
|
+
owner: Principal;
|
|
19
|
+
created_at: bigint;
|
|
20
|
+
}
|
|
21
|
+
export interface Account_1 {
|
|
22
|
+
owner: Principal;
|
|
23
|
+
subaccount: [] | [Uint8Array];
|
|
24
|
+
}
|
|
25
|
+
export interface AssertMissionControlCenterArgs {
|
|
26
|
+
mission_control_id: Principal;
|
|
27
|
+
user: Principal;
|
|
28
|
+
}
|
|
29
|
+
export interface AssetEncodingNoContent {
|
|
30
|
+
modified: bigint;
|
|
31
|
+
sha256: Uint8Array;
|
|
32
|
+
total_length: bigint;
|
|
33
|
+
}
|
|
34
|
+
export interface AssetKey {
|
|
35
|
+
token: [] | [string];
|
|
36
|
+
collection: string;
|
|
37
|
+
owner: Principal;
|
|
38
|
+
name: string;
|
|
39
|
+
description: [] | [string];
|
|
40
|
+
full_path: string;
|
|
41
|
+
}
|
|
42
|
+
export interface AssetNoContent {
|
|
43
|
+
key: AssetKey;
|
|
44
|
+
updated_at: bigint;
|
|
45
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
46
|
+
headers: Array<[string, string]>;
|
|
47
|
+
created_at: bigint;
|
|
48
|
+
version: [] | [bigint];
|
|
49
|
+
}
|
|
50
|
+
export interface AssetsUpgradeOptions {
|
|
51
|
+
clear_existing_assets: [] | [boolean];
|
|
52
|
+
}
|
|
53
|
+
export interface Authentication {
|
|
54
|
+
delegation: PreparedDelegation;
|
|
55
|
+
account: Account;
|
|
56
|
+
}
|
|
57
|
+
export type AuthenticationArgs = { OpenId: OpenIdPrepareDelegationArgs };
|
|
58
|
+
export interface AuthenticationConfig {
|
|
59
|
+
updated_at: [] | [bigint];
|
|
60
|
+
openid: [] | [AuthenticationConfigOpenId];
|
|
61
|
+
created_at: [] | [bigint];
|
|
62
|
+
version: [] | [bigint];
|
|
63
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
64
|
+
rules: [] | [AuthenticationRules];
|
|
65
|
+
}
|
|
66
|
+
export interface AuthenticationConfigInternetIdentity {
|
|
67
|
+
derivation_origin: [] | [string];
|
|
68
|
+
external_alternative_origins: [] | [Array<string>];
|
|
69
|
+
}
|
|
70
|
+
export interface AuthenticationConfigOpenId {
|
|
71
|
+
observatory_id: [] | [Principal];
|
|
72
|
+
providers: Array<[OpenIdProvider, OpenIdProviderConfig]>;
|
|
73
|
+
}
|
|
74
|
+
export type AuthenticationError =
|
|
75
|
+
| {
|
|
76
|
+
PrepareDelegation: PrepareDelegationError;
|
|
77
|
+
}
|
|
78
|
+
| { RegisterUser: string };
|
|
79
|
+
export interface AuthenticationRules {
|
|
80
|
+
allowed_callers: Array<Principal>;
|
|
81
|
+
}
|
|
82
|
+
export interface CommitBatch {
|
|
83
|
+
batch_id: bigint;
|
|
84
|
+
headers: Array<[string, string]>;
|
|
85
|
+
chunk_ids: Array<bigint>;
|
|
86
|
+
}
|
|
87
|
+
export interface CommitProposal {
|
|
88
|
+
sha256: Uint8Array;
|
|
89
|
+
proposal_id: bigint;
|
|
90
|
+
}
|
|
91
|
+
export interface Config {
|
|
92
|
+
authentication: [] | [AuthenticationConfig];
|
|
93
|
+
storage: StorageConfig;
|
|
94
|
+
}
|
|
95
|
+
export interface ConfigMaxMemorySize {
|
|
96
|
+
stable: [] | [bigint];
|
|
97
|
+
heap: [] | [bigint];
|
|
98
|
+
}
|
|
99
|
+
export interface Controller {
|
|
100
|
+
updated_at: bigint;
|
|
101
|
+
metadata: Array<[string, string]>;
|
|
102
|
+
created_at: bigint;
|
|
103
|
+
scope: ControllerScope;
|
|
104
|
+
expires_at: [] | [bigint];
|
|
105
|
+
}
|
|
106
|
+
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
107
|
+
export interface CreateMissionControlArgs {
|
|
108
|
+
subnet_id: [] | [Principal];
|
|
109
|
+
}
|
|
110
|
+
export interface CreateOrbiterArgs {
|
|
111
|
+
block_index: [] | [bigint];
|
|
112
|
+
subnet_id: [] | [Principal];
|
|
113
|
+
name: [] | [string];
|
|
114
|
+
user: Principal;
|
|
115
|
+
}
|
|
116
|
+
export interface CreateSatelliteArgs {
|
|
117
|
+
block_index: [] | [bigint];
|
|
118
|
+
subnet_id: [] | [Principal];
|
|
119
|
+
storage: [] | [InitStorageArgs];
|
|
120
|
+
name: [] | [string];
|
|
121
|
+
user: Principal;
|
|
122
|
+
}
|
|
123
|
+
export interface CustomDomain {
|
|
124
|
+
updated_at: bigint;
|
|
125
|
+
created_at: bigint;
|
|
126
|
+
version: [] | [bigint];
|
|
127
|
+
bn_id: [] | [string];
|
|
128
|
+
}
|
|
129
|
+
export interface CyclesTokens {
|
|
130
|
+
e12s: bigint;
|
|
131
|
+
}
|
|
132
|
+
export interface Delegation {
|
|
133
|
+
pubkey: Uint8Array;
|
|
134
|
+
targets: [] | [Array<Principal>];
|
|
135
|
+
expiration: bigint;
|
|
136
|
+
}
|
|
137
|
+
export interface DeleteControllersArgs {
|
|
138
|
+
controllers: Array<Principal>;
|
|
139
|
+
}
|
|
140
|
+
export interface DeleteProposalAssets {
|
|
141
|
+
proposal_ids: Array<bigint>;
|
|
142
|
+
}
|
|
143
|
+
export interface FactoryFee {
|
|
144
|
+
updated_at: bigint;
|
|
145
|
+
fee_cycles: CyclesTokens;
|
|
146
|
+
fee_icp: [] | [Tokens];
|
|
147
|
+
}
|
|
148
|
+
export interface FeesArgs {
|
|
149
|
+
fee_cycles: CyclesTokens;
|
|
150
|
+
fee_icp: [] | [Tokens];
|
|
151
|
+
}
|
|
152
|
+
export interface GetCreateCanisterFeeArgs {
|
|
153
|
+
user: Principal;
|
|
154
|
+
}
|
|
155
|
+
export type GetDelegationArgs = { OpenId: OpenIdGetDelegationArgs };
|
|
156
|
+
export type GetDelegationError =
|
|
157
|
+
| { JwtFindProvider: JwtFindProviderError }
|
|
158
|
+
| { GetCachedJwks: null }
|
|
159
|
+
| { NoSuchDelegation: null }
|
|
160
|
+
| { JwtVerify: JwtVerifyError }
|
|
161
|
+
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
162
|
+
| { DeriveSeedFailed: string };
|
|
163
|
+
export type GetOrRefreshJwksError =
|
|
164
|
+
| { InvalidConfig: string }
|
|
165
|
+
| { MissingKid: null }
|
|
166
|
+
| { BadClaim: string }
|
|
167
|
+
| { KeyNotFoundCooldown: null }
|
|
168
|
+
| { CertificateNotFound: null }
|
|
169
|
+
| { BadSig: string }
|
|
170
|
+
| { MissingLastAttempt: string }
|
|
171
|
+
| { KeyNotFound: null }
|
|
172
|
+
| { FetchFailed: string };
|
|
173
|
+
export interface HttpRequest {
|
|
174
|
+
url: string;
|
|
175
|
+
method: string;
|
|
176
|
+
body: Uint8Array;
|
|
177
|
+
headers: Array<[string, string]>;
|
|
178
|
+
certificate_version: [] | [number];
|
|
179
|
+
}
|
|
180
|
+
export interface HttpResponse {
|
|
181
|
+
body: Uint8Array;
|
|
182
|
+
headers: Array<[string, string]>;
|
|
183
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
184
|
+
status_code: number;
|
|
185
|
+
}
|
|
186
|
+
export interface IcpPayment {
|
|
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 interface IcrcPayment {
|
|
195
|
+
status: PaymentStatus;
|
|
196
|
+
updated_at: bigint;
|
|
197
|
+
created_at: bigint;
|
|
198
|
+
block_index_refunded: [] | [bigint];
|
|
199
|
+
purchaser: Account_1;
|
|
200
|
+
}
|
|
201
|
+
export interface IcrcPaymentKey {
|
|
202
|
+
block_index: bigint;
|
|
203
|
+
ledger_id: Principal;
|
|
204
|
+
}
|
|
205
|
+
export interface InitAssetKey {
|
|
206
|
+
token: [] | [string];
|
|
207
|
+
collection: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description: [] | [string];
|
|
210
|
+
encoding_type: [] | [string];
|
|
211
|
+
full_path: string;
|
|
212
|
+
}
|
|
213
|
+
export interface InitStorageArgs {
|
|
214
|
+
system_memory: [] | [InitStorageMemory];
|
|
215
|
+
}
|
|
216
|
+
export type InitStorageMemory = { Heap: null } | { Stable: null };
|
|
217
|
+
export interface InitUploadResult {
|
|
218
|
+
batch_id: bigint;
|
|
219
|
+
}
|
|
220
|
+
export type JwtFindProviderError =
|
|
221
|
+
| { BadClaim: string }
|
|
222
|
+
| { BadSig: string }
|
|
223
|
+
| { NoMatchingProvider: null };
|
|
224
|
+
export type JwtVerifyError =
|
|
225
|
+
| { WrongKeyType: null }
|
|
226
|
+
| { MissingKid: null }
|
|
227
|
+
| { BadClaim: string }
|
|
228
|
+
| { BadSig: string }
|
|
229
|
+
| { NoKeyForKid: null };
|
|
230
|
+
export interface ListMatcher {
|
|
231
|
+
key: [] | [string];
|
|
232
|
+
updated_at: [] | [TimestampMatcher];
|
|
233
|
+
description: [] | [string];
|
|
234
|
+
created_at: [] | [TimestampMatcher];
|
|
235
|
+
}
|
|
236
|
+
export interface ListOrder {
|
|
237
|
+
field: ListOrderField;
|
|
238
|
+
desc: boolean;
|
|
239
|
+
}
|
|
240
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
241
|
+
export interface ListPaginate {
|
|
242
|
+
start_after: [] | [string];
|
|
243
|
+
limit: [] | [bigint];
|
|
244
|
+
}
|
|
245
|
+
export interface ListParams {
|
|
246
|
+
order: [] | [ListOrder];
|
|
247
|
+
owner: [] | [Principal];
|
|
248
|
+
matcher: [] | [ListMatcher];
|
|
249
|
+
paginate: [] | [ListPaginate];
|
|
250
|
+
}
|
|
251
|
+
export interface ListProposalResults {
|
|
252
|
+
matches_length: bigint;
|
|
253
|
+
items: Array<[ProposalKey, Proposal]>;
|
|
254
|
+
items_length: bigint;
|
|
255
|
+
}
|
|
256
|
+
export interface ListProposalsOrder {
|
|
257
|
+
desc: boolean;
|
|
258
|
+
}
|
|
259
|
+
export interface ListProposalsPaginate {
|
|
260
|
+
start_after: [] | [bigint];
|
|
261
|
+
limit: [] | [bigint];
|
|
262
|
+
}
|
|
263
|
+
export interface ListProposalsParams {
|
|
264
|
+
order: [] | [ListProposalsOrder];
|
|
265
|
+
paginate: [] | [ListProposalsPaginate];
|
|
266
|
+
}
|
|
267
|
+
export interface ListResults {
|
|
268
|
+
matches_pages: [] | [bigint];
|
|
269
|
+
matches_length: bigint;
|
|
270
|
+
items_page: [] | [bigint];
|
|
271
|
+
items: Array<[string, AssetNoContent]>;
|
|
272
|
+
items_length: bigint;
|
|
273
|
+
}
|
|
274
|
+
export interface ListSegmentsArgs {
|
|
275
|
+
segment_id: [] | [Principal];
|
|
276
|
+
segment_kind: [] | [StorableSegmentKind];
|
|
277
|
+
}
|
|
278
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
279
|
+
export interface OpenId {
|
|
280
|
+
provider: OpenIdProvider;
|
|
281
|
+
data: OpenIdData;
|
|
282
|
+
}
|
|
283
|
+
export interface OpenIdData {
|
|
284
|
+
name: [] | [string];
|
|
285
|
+
locale: [] | [string];
|
|
286
|
+
family_name: [] | [string];
|
|
287
|
+
email: [] | [string];
|
|
288
|
+
picture: [] | [string];
|
|
289
|
+
given_name: [] | [string];
|
|
290
|
+
preferred_username: [] | [string];
|
|
291
|
+
}
|
|
292
|
+
export interface OpenIdGetDelegationArgs {
|
|
293
|
+
jwt: string;
|
|
294
|
+
session_key: Uint8Array;
|
|
295
|
+
salt: Uint8Array;
|
|
296
|
+
expiration: bigint;
|
|
297
|
+
}
|
|
298
|
+
export interface OpenIdPrepareDelegationArgs {
|
|
299
|
+
jwt: string;
|
|
300
|
+
session_key: Uint8Array;
|
|
301
|
+
salt: Uint8Array;
|
|
302
|
+
}
|
|
303
|
+
export type OpenIdProvider = { GitHub: null } | { Google: null };
|
|
304
|
+
export interface OpenIdProviderConfig {
|
|
305
|
+
delegation: [] | [OpenIdProviderDelegationConfig];
|
|
306
|
+
client_id: string;
|
|
307
|
+
}
|
|
308
|
+
export interface OpenIdProviderDelegationConfig {
|
|
309
|
+
targets: [] | [Array<Principal>];
|
|
310
|
+
max_time_to_live: [] | [bigint];
|
|
311
|
+
}
|
|
312
|
+
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
313
|
+
export type PrepareDelegationError =
|
|
314
|
+
| {
|
|
315
|
+
JwtFindProvider: JwtFindProviderError;
|
|
316
|
+
}
|
|
317
|
+
| { GetCachedJwks: null }
|
|
318
|
+
| { JwtVerify: JwtVerifyError }
|
|
319
|
+
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
320
|
+
| { DeriveSeedFailed: string };
|
|
321
|
+
export interface PreparedDelegation {
|
|
322
|
+
user_key: Uint8Array;
|
|
323
|
+
expiration: bigint;
|
|
324
|
+
}
|
|
325
|
+
export interface Proposal {
|
|
326
|
+
status: ProposalStatus;
|
|
327
|
+
updated_at: bigint;
|
|
328
|
+
sha256: [] | [Uint8Array];
|
|
329
|
+
executed_at: [] | [bigint];
|
|
330
|
+
owner: Principal;
|
|
331
|
+
created_at: bigint;
|
|
332
|
+
version: [] | [bigint];
|
|
333
|
+
proposal_type: ProposalType;
|
|
334
|
+
}
|
|
335
|
+
export interface ProposalKey {
|
|
336
|
+
proposal_id: bigint;
|
|
337
|
+
}
|
|
338
|
+
export type ProposalStatus =
|
|
339
|
+
| { Initialized: null }
|
|
340
|
+
| { Failed: null }
|
|
341
|
+
| { Open: null }
|
|
342
|
+
| { Rejected: null }
|
|
343
|
+
| { Executed: null }
|
|
344
|
+
| { Accepted: null };
|
|
345
|
+
export type ProposalType =
|
|
346
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
347
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
348
|
+
export type Provider = { InternetIdentity: null } | { OpenId: OpenId };
|
|
349
|
+
export interface RateConfig {
|
|
350
|
+
max_tokens: bigint;
|
|
351
|
+
time_per_token_ns: bigint;
|
|
352
|
+
}
|
|
353
|
+
export type Result = { Ok: Authentication } | { Err: AuthenticationError };
|
|
354
|
+
export type Result_1 = { Ok: SignedDelegation } | { Err: GetDelegationError };
|
|
355
|
+
export interface Segment {
|
|
356
|
+
updated_at: bigint;
|
|
357
|
+
metadata: Array<[string, string]>;
|
|
358
|
+
segment_id: Principal;
|
|
359
|
+
created_at: bigint;
|
|
360
|
+
}
|
|
361
|
+
export interface SegmentKey {
|
|
362
|
+
user: Principal;
|
|
363
|
+
segment_id: Principal;
|
|
364
|
+
segment_kind: StorableSegmentKind;
|
|
365
|
+
}
|
|
366
|
+
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
367
|
+
export interface SegmentsDeploymentOptions {
|
|
368
|
+
orbiter: [] | [string];
|
|
369
|
+
mission_control_version: [] | [string];
|
|
370
|
+
satellite_version: [] | [string];
|
|
371
|
+
}
|
|
372
|
+
export interface SetAuthenticationConfig {
|
|
373
|
+
openid: [] | [AuthenticationConfigOpenId];
|
|
374
|
+
version: [] | [bigint];
|
|
375
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
376
|
+
rules: [] | [AuthenticationRules];
|
|
377
|
+
}
|
|
378
|
+
export interface SetController {
|
|
379
|
+
metadata: Array<[string, string]>;
|
|
380
|
+
scope: ControllerScope;
|
|
381
|
+
expires_at: [] | [bigint];
|
|
382
|
+
}
|
|
383
|
+
export interface SetControllersArgs {
|
|
384
|
+
controller: SetController;
|
|
385
|
+
controllers: Array<Principal>;
|
|
386
|
+
}
|
|
387
|
+
export interface SetSegmentMetadataArgs {
|
|
388
|
+
metadata: Array<[string, string]>;
|
|
389
|
+
segment_id: Principal;
|
|
390
|
+
segment_kind: StorableSegmentKind;
|
|
391
|
+
}
|
|
392
|
+
export interface SetSegmentsArgs {
|
|
393
|
+
metadata: [] | [Array<[string, string]>];
|
|
394
|
+
segment_id: Principal;
|
|
395
|
+
segment_kind: StorableSegmentKind;
|
|
396
|
+
}
|
|
397
|
+
export interface SetStorageConfig {
|
|
398
|
+
iframe: [] | [StorageConfigIFrame];
|
|
399
|
+
rewrites: Array<[string, string]>;
|
|
400
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
401
|
+
version: [] | [bigint];
|
|
402
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
403
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
404
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
405
|
+
}
|
|
406
|
+
export interface SignedDelegation {
|
|
407
|
+
signature: Uint8Array;
|
|
408
|
+
delegation: Delegation;
|
|
409
|
+
}
|
|
410
|
+
export type StorableSegmentKind = { Orbiter: null } | { Satellite: null };
|
|
411
|
+
export interface StorageConfig {
|
|
412
|
+
iframe: [] | [StorageConfigIFrame];
|
|
413
|
+
updated_at: [] | [bigint];
|
|
414
|
+
rewrites: Array<[string, string]>;
|
|
415
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
416
|
+
created_at: [] | [bigint];
|
|
417
|
+
version: [] | [bigint];
|
|
418
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
419
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
420
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
421
|
+
}
|
|
422
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
423
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
424
|
+
export interface StorageConfigRedirect {
|
|
425
|
+
status_code: number;
|
|
426
|
+
location: string;
|
|
427
|
+
}
|
|
428
|
+
export interface StreamingCallbackHttpResponse {
|
|
429
|
+
token: [] | [StreamingCallbackToken];
|
|
430
|
+
body: Uint8Array;
|
|
431
|
+
}
|
|
432
|
+
export interface StreamingCallbackToken {
|
|
433
|
+
memory: Memory;
|
|
434
|
+
token: [] | [string];
|
|
435
|
+
sha256: [] | [Uint8Array];
|
|
436
|
+
headers: Array<[string, string]>;
|
|
437
|
+
index: bigint;
|
|
438
|
+
encoding_type: string;
|
|
439
|
+
full_path: string;
|
|
440
|
+
}
|
|
441
|
+
export type StreamingStrategy = {
|
|
442
|
+
Callback: {
|
|
443
|
+
token: StreamingCallbackToken;
|
|
444
|
+
callback: [Principal, string];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
export type TimestampMatcher =
|
|
448
|
+
| { Equal: bigint }
|
|
449
|
+
| { Between: [bigint, bigint] }
|
|
450
|
+
| { GreaterThan: bigint }
|
|
451
|
+
| { LessThan: bigint };
|
|
452
|
+
export interface Tokens {
|
|
453
|
+
e8s: bigint;
|
|
454
|
+
}
|
|
455
|
+
export interface UnsetSegmentsArgs {
|
|
456
|
+
segment_id: Principal;
|
|
457
|
+
segment_kind: StorableSegmentKind;
|
|
458
|
+
}
|
|
459
|
+
export interface UploadChunk {
|
|
460
|
+
content: Uint8Array;
|
|
461
|
+
batch_id: bigint;
|
|
462
|
+
order_id: [] | [bigint];
|
|
463
|
+
}
|
|
464
|
+
export interface UploadChunkResult {
|
|
465
|
+
chunk_id: bigint;
|
|
466
|
+
}
|
|
467
|
+
export interface _SERVICE {
|
|
468
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
469
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
470
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
471
|
+
authenticate: ActorMethod<[AuthenticationArgs], Result>;
|
|
472
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
473
|
+
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
474
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
475
|
+
count_proposals: ActorMethod<[], bigint>;
|
|
476
|
+
create_mission_control: ActorMethod<[CreateMissionControlArgs], Principal>;
|
|
477
|
+
create_orbiter: ActorMethod<[CreateOrbiterArgs], Principal>;
|
|
478
|
+
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
|
|
479
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
480
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
481
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
482
|
+
get_account: ActorMethod<[], [] | [Account]>;
|
|
483
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
484
|
+
get_config: ActorMethod<[], Config>;
|
|
485
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
486
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
487
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
488
|
+
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
|
|
489
|
+
get_fee: ActorMethod<[SegmentKind], FactoryFee>;
|
|
490
|
+
get_or_init_account: ActorMethod<[], Account>;
|
|
491
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
492
|
+
get_rate_config: ActorMethod<[SegmentKind], RateConfig>;
|
|
493
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
494
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
495
|
+
http_request_streaming_callback: ActorMethod<
|
|
496
|
+
[StreamingCallbackToken],
|
|
497
|
+
StreamingCallbackHttpResponse
|
|
498
|
+
>;
|
|
499
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
500
|
+
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
501
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
502
|
+
[Array<InitAssetKey>, bigint],
|
|
503
|
+
Array<[string, InitUploadResult]>
|
|
504
|
+
>;
|
|
505
|
+
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
|
|
506
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
507
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
508
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
509
|
+
list_icp_payments: ActorMethod<[], Array<[bigint, IcpPayment]>>;
|
|
510
|
+
list_icrc_payments: ActorMethod<[], Array<[IcrcPaymentKey, IcrcPayment]>>;
|
|
511
|
+
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
512
|
+
list_segments: ActorMethod<[ListSegmentsArgs], Array<[SegmentKey, Segment]>>;
|
|
513
|
+
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
514
|
+
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
515
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
516
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
517
|
+
set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
|
|
518
|
+
set_many_segments: ActorMethod<[Array<SetSegmentsArgs>], Array<Segment>>;
|
|
519
|
+
set_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
520
|
+
set_segment: ActorMethod<[SetSegmentsArgs], Segment>;
|
|
521
|
+
set_segment_metadata: ActorMethod<[SetSegmentMetadataArgs], Segment>;
|
|
522
|
+
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
523
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
524
|
+
unset_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
|
|
525
|
+
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
|
|
526
|
+
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
527
|
+
}
|
|
528
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
529
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|