@junobuild/ic-client 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +85 -15
- package/declarations/console/console.factory.certified.did.js +86 -15
- package/declarations/console/console.factory.did.js +90 -15
- package/declarations/console/console.factory.did.mjs +90 -15
- package/declarations/deprecated/console-0-2-0.did.d.ts +457 -0
- package/declarations/deprecated/console-0-2-0.factory.did.js +487 -0
- package/declarations/mission_control/mission_control.did.d.ts +1 -1
- package/declarations/mission_control/mission_control.factory.certified.did.js +1 -1
- package/declarations/mission_control/mission_control.factory.did.js +1 -1
- package/declarations/observatory/observatory.did.d.ts +3 -2
- package/declarations/observatory/observatory.factory.certified.did.js +4 -3
- package/declarations/observatory/observatory.factory.did.js +4 -3
- package/declarations/observatory/observatory.factory.did.mjs +4 -3
- package/declarations/orbiter/orbiter.did.d.ts +1 -1
- package/declarations/orbiter/orbiter.factory.certified.did.js +1 -1
- package/declarations/orbiter/orbiter.factory.did.js +1 -1
- package/declarations/orbiter/orbiter.factory.did.mjs +1 -1
- package/declarations/satellite/satellite.did.d.ts +1 -1
- package/declarations/satellite/satellite.factory.certified.did.js +1 -1
- package/declarations/satellite/satellite.factory.did.js +1 -1
- package/declarations/satellite/satellite.factory.did.mjs +1 -1
- package/declarations/sputnik/sputnik.did.d.ts +1 -1
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -1
- package/declarations/sputnik/sputnik.factory.did.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -18,6 +18,10 @@ export interface Account {
|
|
|
18
18
|
owner: Principal;
|
|
19
19
|
created_at: bigint;
|
|
20
20
|
}
|
|
21
|
+
export interface Account_1 {
|
|
22
|
+
owner: Principal;
|
|
23
|
+
subaccount: [] | [Uint8Array];
|
|
24
|
+
}
|
|
21
25
|
export interface AssertMissionControlCenterArgs {
|
|
22
26
|
mission_control_id: Principal;
|
|
23
27
|
user: Principal;
|
|
@@ -100,15 +104,20 @@ export interface Controller {
|
|
|
100
104
|
expires_at: [] | [bigint];
|
|
101
105
|
}
|
|
102
106
|
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
103
|
-
export interface
|
|
107
|
+
export interface CreateMissionControlArgs {
|
|
108
|
+
subnet_id: [] | [Principal];
|
|
109
|
+
}
|
|
110
|
+
export interface CreateOrbiterArgs {
|
|
104
111
|
block_index: [] | [bigint];
|
|
105
112
|
subnet_id: [] | [Principal];
|
|
113
|
+
name: [] | [string];
|
|
106
114
|
user: Principal;
|
|
107
115
|
}
|
|
108
116
|
export interface CreateSatelliteArgs {
|
|
109
117
|
block_index: [] | [bigint];
|
|
110
118
|
subnet_id: [] | [Principal];
|
|
111
119
|
storage: [] | [InitStorageArgs];
|
|
120
|
+
name: [] | [string];
|
|
112
121
|
user: Principal;
|
|
113
122
|
}
|
|
114
123
|
export interface CustomDomain {
|
|
@@ -117,6 +126,9 @@ export interface CustomDomain {
|
|
|
117
126
|
version: [] | [bigint];
|
|
118
127
|
bn_id: [] | [string];
|
|
119
128
|
}
|
|
129
|
+
export interface CyclesTokens {
|
|
130
|
+
e12s: bigint;
|
|
131
|
+
}
|
|
120
132
|
export interface Delegation {
|
|
121
133
|
pubkey: Uint8Array;
|
|
122
134
|
targets: [] | [Array<Principal>];
|
|
@@ -128,6 +140,15 @@ export interface DeleteControllersArgs {
|
|
|
128
140
|
export interface DeleteProposalAssets {
|
|
129
141
|
proposal_ids: Array<bigint>;
|
|
130
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
|
+
}
|
|
131
152
|
export interface GetCreateCanisterFeeArgs {
|
|
132
153
|
user: Principal;
|
|
133
154
|
}
|
|
@@ -162,6 +183,25 @@ export interface HttpResponse {
|
|
|
162
183
|
streaming_strategy: [] | [StreamingStrategy];
|
|
163
184
|
status_code: number;
|
|
164
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
|
+
}
|
|
165
205
|
export interface InitAssetKey {
|
|
166
206
|
token: [] | [string];
|
|
167
207
|
collection: string;
|
|
@@ -231,6 +271,10 @@ export interface ListResults {
|
|
|
231
271
|
items: Array<[string, AssetNoContent]>;
|
|
232
272
|
items_length: bigint;
|
|
233
273
|
}
|
|
274
|
+
export interface ListSegmentsArgs {
|
|
275
|
+
segment_id: [] | [Principal];
|
|
276
|
+
segment_kind: [] | [StorableSegmentKind];
|
|
277
|
+
}
|
|
234
278
|
export type Memory = { Heap: null } | { Stable: null };
|
|
235
279
|
export interface OpenId {
|
|
236
280
|
provider: OpenIdProvider;
|
|
@@ -264,14 +308,6 @@ export interface OpenIdProviderDelegationConfig {
|
|
|
264
308
|
targets: [] | [Array<Principal>];
|
|
265
309
|
max_time_to_live: [] | [bigint];
|
|
266
310
|
}
|
|
267
|
-
export interface Payment {
|
|
268
|
-
status: PaymentStatus;
|
|
269
|
-
updated_at: bigint;
|
|
270
|
-
block_index_payment: bigint;
|
|
271
|
-
mission_control_id: [] | [Principal];
|
|
272
|
-
created_at: bigint;
|
|
273
|
-
block_index_refunded: [] | [bigint];
|
|
274
|
-
}
|
|
275
311
|
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
276
312
|
export type PrepareDelegationError =
|
|
277
313
|
| {
|
|
@@ -315,6 +351,17 @@ export interface RateConfig {
|
|
|
315
351
|
}
|
|
316
352
|
export type Result = { Ok: Authentication } | { Err: AuthenticationError };
|
|
317
353
|
export type Result_1 = { Ok: SignedDelegation } | { Err: GetDelegationError };
|
|
354
|
+
export interface Segment {
|
|
355
|
+
updated_at: bigint;
|
|
356
|
+
metadata: Array<[string, string]>;
|
|
357
|
+
segment_id: Principal;
|
|
358
|
+
created_at: bigint;
|
|
359
|
+
}
|
|
360
|
+
export interface SegmentKey {
|
|
361
|
+
user: Principal;
|
|
362
|
+
segment_id: Principal;
|
|
363
|
+
segment_kind: StorableSegmentKind;
|
|
364
|
+
}
|
|
318
365
|
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
319
366
|
export interface SegmentsDeploymentOptions {
|
|
320
367
|
orbiter: [] | [string];
|
|
@@ -336,6 +383,16 @@ export interface SetControllersArgs {
|
|
|
336
383
|
controller: SetController;
|
|
337
384
|
controllers: Array<Principal>;
|
|
338
385
|
}
|
|
386
|
+
export interface SetSegmentMetadataArgs {
|
|
387
|
+
metadata: Array<[string, string]>;
|
|
388
|
+
segment_id: Principal;
|
|
389
|
+
segment_kind: StorableSegmentKind;
|
|
390
|
+
}
|
|
391
|
+
export interface SetSegmentsArgs {
|
|
392
|
+
metadata: [] | [Array<[string, string]>];
|
|
393
|
+
segment_id: Principal;
|
|
394
|
+
segment_kind: StorableSegmentKind;
|
|
395
|
+
}
|
|
339
396
|
export interface SetStorageConfig {
|
|
340
397
|
iframe: [] | [StorageConfigIFrame];
|
|
341
398
|
rewrites: Array<[string, string]>;
|
|
@@ -349,6 +406,7 @@ export interface SignedDelegation {
|
|
|
349
406
|
signature: Uint8Array;
|
|
350
407
|
delegation: Delegation;
|
|
351
408
|
}
|
|
409
|
+
export type StorableSegmentKind = { Orbiter: null } | { Satellite: null };
|
|
352
410
|
export interface StorageConfig {
|
|
353
411
|
iframe: [] | [StorageConfigIFrame];
|
|
354
412
|
updated_at: [] | [bigint];
|
|
@@ -393,6 +451,10 @@ export type TimestampMatcher =
|
|
|
393
451
|
export interface Tokens {
|
|
394
452
|
e8s: bigint;
|
|
395
453
|
}
|
|
454
|
+
export interface UnsetSegmentsArgs {
|
|
455
|
+
segment_id: Principal;
|
|
456
|
+
segment_kind: StorableSegmentKind;
|
|
457
|
+
}
|
|
396
458
|
export interface UploadChunk {
|
|
397
459
|
content: Uint8Array;
|
|
398
460
|
batch_id: bigint;
|
|
@@ -410,7 +472,8 @@ export interface _SERVICE {
|
|
|
410
472
|
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
411
473
|
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
412
474
|
count_proposals: ActorMethod<[], bigint>;
|
|
413
|
-
|
|
475
|
+
create_mission_control: ActorMethod<[CreateMissionControlArgs], Principal>;
|
|
476
|
+
create_orbiter: ActorMethod<[CreateOrbiterArgs], Principal>;
|
|
414
477
|
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
|
|
415
478
|
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
416
479
|
del_custom_domain: ActorMethod<[string], undefined>;
|
|
@@ -422,7 +485,10 @@ export interface _SERVICE {
|
|
|
422
485
|
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
423
486
|
get_credits: ActorMethod<[], Tokens>;
|
|
424
487
|
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
|
|
488
|
+
get_fee: ActorMethod<[SegmentKind], FactoryFee>;
|
|
489
|
+
get_or_init_account: ActorMethod<[], Account>;
|
|
425
490
|
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
491
|
+
get_rate_config: ActorMethod<[SegmentKind], RateConfig>;
|
|
426
492
|
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
427
493
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
428
494
|
http_request_streaming_callback: ActorMethod<
|
|
@@ -435,21 +501,25 @@ export interface _SERVICE {
|
|
|
435
501
|
[Array<InitAssetKey>, bigint],
|
|
436
502
|
Array<[string, InitUploadResult]>
|
|
437
503
|
>;
|
|
438
|
-
init_user_mission_control_center: ActorMethod<[], Account>;
|
|
439
504
|
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
|
|
440
505
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
441
506
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
442
507
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
443
|
-
|
|
508
|
+
list_icp_payments: ActorMethod<[], Array<[bigint, IcpPayment]>>;
|
|
509
|
+
list_icrc_payments: ActorMethod<[], Array<[IcrcPaymentKey, IcrcPayment]>>;
|
|
444
510
|
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
511
|
+
list_segments: ActorMethod<[ListSegmentsArgs], Array<[SegmentKey, Segment]>>;
|
|
445
512
|
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
446
513
|
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
447
514
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
448
515
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
449
|
-
set_fee: ActorMethod<[SegmentKind,
|
|
516
|
+
set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
|
|
517
|
+
set_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
518
|
+
set_segment: ActorMethod<[SetSegmentsArgs], Segment>;
|
|
519
|
+
set_segment_metadata: ActorMethod<[SetSegmentMetadataArgs], Segment>;
|
|
450
520
|
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
451
521
|
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
452
|
-
|
|
522
|
+
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
|
|
453
523
|
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
454
524
|
}
|
|
455
525
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -100,9 +100,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
100
100
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
101
101
|
chunk_ids: IDL.Vec(IDL.Nat)
|
|
102
102
|
});
|
|
103
|
-
const
|
|
103
|
+
const CreateMissionControlArgs = IDL.Record({
|
|
104
|
+
subnet_id: IDL.Opt(IDL.Principal)
|
|
105
|
+
});
|
|
106
|
+
const CreateOrbiterArgs = IDL.Record({
|
|
104
107
|
block_index: IDL.Opt(IDL.Nat64),
|
|
105
108
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
109
|
+
name: IDL.Opt(IDL.Text),
|
|
106
110
|
user: IDL.Principal
|
|
107
111
|
});
|
|
108
112
|
const InitStorageMemory = IDL.Variant({
|
|
@@ -116,6 +120,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
116
120
|
block_index: IDL.Opt(IDL.Nat64),
|
|
117
121
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
118
122
|
storage: IDL.Opt(InitStorageArgs),
|
|
123
|
+
name: IDL.Opt(IDL.Text),
|
|
119
124
|
user: IDL.Principal
|
|
120
125
|
});
|
|
121
126
|
const DeleteControllersArgs = IDL.Record({
|
|
@@ -212,6 +217,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
212
217
|
Ok: SignedDelegation,
|
|
213
218
|
Err: GetDelegationError
|
|
214
219
|
});
|
|
220
|
+
const SegmentKind = IDL.Variant({
|
|
221
|
+
Orbiter: IDL.Null,
|
|
222
|
+
MissionControl: IDL.Null,
|
|
223
|
+
Satellite: IDL.Null
|
|
224
|
+
});
|
|
225
|
+
const CyclesTokens = IDL.Record({e12s: IDL.Nat64});
|
|
226
|
+
const FactoryFee = IDL.Record({
|
|
227
|
+
updated_at: IDL.Nat64,
|
|
228
|
+
fee_cycles: CyclesTokens,
|
|
229
|
+
fee_icp: IDL.Opt(Tokens)
|
|
230
|
+
});
|
|
215
231
|
const ProposalStatus = IDL.Variant({
|
|
216
232
|
Initialized: IDL.Null,
|
|
217
233
|
Failed: IDL.Null,
|
|
@@ -242,6 +258,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
242
258
|
version: IDL.Opt(IDL.Nat64),
|
|
243
259
|
proposal_type: ProposalType
|
|
244
260
|
});
|
|
261
|
+
const RateConfig = IDL.Record({
|
|
262
|
+
max_tokens: IDL.Nat64,
|
|
263
|
+
time_per_token_ns: IDL.Nat64
|
|
264
|
+
});
|
|
245
265
|
const HttpRequest = IDL.Record({
|
|
246
266
|
url: IDL.Text,
|
|
247
267
|
method: IDL.Text,
|
|
@@ -363,7 +383,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
363
383
|
Acknowledged: IDL.Null,
|
|
364
384
|
Completed: IDL.Null
|
|
365
385
|
});
|
|
366
|
-
const
|
|
386
|
+
const IcpPayment = IDL.Record({
|
|
367
387
|
status: PaymentStatus,
|
|
368
388
|
updated_at: IDL.Nat64,
|
|
369
389
|
block_index_payment: IDL.Nat64,
|
|
@@ -371,6 +391,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
371
391
|
created_at: IDL.Nat64,
|
|
372
392
|
block_index_refunded: IDL.Opt(IDL.Nat64)
|
|
373
393
|
});
|
|
394
|
+
const IcrcPaymentKey = IDL.Record({
|
|
395
|
+
block_index: IDL.Nat64,
|
|
396
|
+
ledger_id: IDL.Principal
|
|
397
|
+
});
|
|
398
|
+
const Account_1 = IDL.Record({
|
|
399
|
+
owner: IDL.Principal,
|
|
400
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
401
|
+
});
|
|
402
|
+
const IcrcPayment = IDL.Record({
|
|
403
|
+
status: PaymentStatus,
|
|
404
|
+
updated_at: IDL.Nat64,
|
|
405
|
+
created_at: IDL.Nat64,
|
|
406
|
+
block_index_refunded: IDL.Opt(IDL.Nat64),
|
|
407
|
+
purchaser: Account_1
|
|
408
|
+
});
|
|
374
409
|
const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
|
|
375
410
|
const ListProposalsPaginate = IDL.Record({
|
|
376
411
|
start_after: IDL.Opt(IDL.Nat),
|
|
@@ -386,6 +421,25 @@ export const idlFactory = ({IDL}) => {
|
|
|
386
421
|
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
387
422
|
items_length: IDL.Nat64
|
|
388
423
|
});
|
|
424
|
+
const StorableSegmentKind = IDL.Variant({
|
|
425
|
+
Orbiter: IDL.Null,
|
|
426
|
+
Satellite: IDL.Null
|
|
427
|
+
});
|
|
428
|
+
const ListSegmentsArgs = IDL.Record({
|
|
429
|
+
segment_id: IDL.Opt(IDL.Principal),
|
|
430
|
+
segment_kind: IDL.Opt(StorableSegmentKind)
|
|
431
|
+
});
|
|
432
|
+
const SegmentKey = IDL.Record({
|
|
433
|
+
user: IDL.Principal,
|
|
434
|
+
segment_id: IDL.Principal,
|
|
435
|
+
segment_kind: StorableSegmentKind
|
|
436
|
+
});
|
|
437
|
+
const Segment = IDL.Record({
|
|
438
|
+
updated_at: IDL.Nat64,
|
|
439
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
440
|
+
segment_id: IDL.Principal,
|
|
441
|
+
created_at: IDL.Nat64
|
|
442
|
+
});
|
|
389
443
|
const SetAuthenticationConfig = IDL.Record({
|
|
390
444
|
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
391
445
|
version: IDL.Opt(IDL.Nat64),
|
|
@@ -401,10 +455,19 @@ export const idlFactory = ({IDL}) => {
|
|
|
401
455
|
controller: SetController,
|
|
402
456
|
controllers: IDL.Vec(IDL.Principal)
|
|
403
457
|
});
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
458
|
+
const FeesArgs = IDL.Record({
|
|
459
|
+
fee_cycles: CyclesTokens,
|
|
460
|
+
fee_icp: IDL.Opt(Tokens)
|
|
461
|
+
});
|
|
462
|
+
const SetSegmentsArgs = IDL.Record({
|
|
463
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
464
|
+
segment_id: IDL.Principal,
|
|
465
|
+
segment_kind: StorableSegmentKind
|
|
466
|
+
});
|
|
467
|
+
const SetSegmentMetadataArgs = IDL.Record({
|
|
468
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
469
|
+
segment_id: IDL.Principal,
|
|
470
|
+
segment_kind: StorableSegmentKind
|
|
408
471
|
});
|
|
409
472
|
const SetStorageConfig = IDL.Record({
|
|
410
473
|
iframe: IDL.Opt(StorageConfigIFrame),
|
|
@@ -415,9 +478,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
415
478
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
416
479
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
417
480
|
});
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
|
|
481
|
+
const UnsetSegmentsArgs = IDL.Record({
|
|
482
|
+
segment_id: IDL.Principal,
|
|
483
|
+
segment_kind: StorableSegmentKind
|
|
421
484
|
});
|
|
422
485
|
const UploadChunk = IDL.Record({
|
|
423
486
|
content: IDL.Vec(IDL.Nat8),
|
|
@@ -435,7 +498,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
435
498
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
436
499
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
437
500
|
count_proposals: IDL.Func([], [IDL.Nat64], []),
|
|
438
|
-
|
|
501
|
+
create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
|
|
502
|
+
create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
|
|
439
503
|
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
440
504
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
441
505
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
@@ -447,7 +511,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
447
511
|
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
|
|
448
512
|
get_credits: IDL.Func([], [Tokens], []),
|
|
449
513
|
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], []),
|
|
514
|
+
get_fee: IDL.Func([SegmentKind], [FactoryFee], []),
|
|
515
|
+
get_or_init_account: IDL.Func([], [Account], []),
|
|
450
516
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
|
|
517
|
+
get_rate_config: IDL.Func([SegmentKind], [RateConfig], []),
|
|
451
518
|
get_storage_config: IDL.Func([], [StorageConfig], []),
|
|
452
519
|
http_request: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
453
520
|
http_request_streaming_callback: IDL.Func(
|
|
@@ -462,21 +529,25 @@ export const idlFactory = ({IDL}) => {
|
|
|
462
529
|
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
463
530
|
[]
|
|
464
531
|
),
|
|
465
|
-
init_user_mission_control_center: IDL.Func([], [Account], []),
|
|
466
532
|
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], []),
|
|
467
533
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
468
534
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
469
535
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
470
|
-
|
|
536
|
+
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], []),
|
|
537
|
+
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], []),
|
|
471
538
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
|
|
539
|
+
list_segments: IDL.Func([ListSegmentsArgs], [IDL.Vec(IDL.Tuple(SegmentKey, Segment))], []),
|
|
472
540
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
473
541
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
474
542
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
475
543
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
476
|
-
set_fee: IDL.Func([SegmentKind,
|
|
544
|
+
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
545
|
+
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
546
|
+
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
547
|
+
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
477
548
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
478
549
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
479
|
-
|
|
550
|
+
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
480
551
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
481
552
|
});
|
|
482
553
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
|
|
6
6
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
7
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
8
|
|
|
@@ -100,9 +100,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
100
100
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
101
101
|
chunk_ids: IDL.Vec(IDL.Nat)
|
|
102
102
|
});
|
|
103
|
-
const
|
|
103
|
+
const CreateMissionControlArgs = IDL.Record({
|
|
104
|
+
subnet_id: IDL.Opt(IDL.Principal)
|
|
105
|
+
});
|
|
106
|
+
const CreateOrbiterArgs = IDL.Record({
|
|
104
107
|
block_index: IDL.Opt(IDL.Nat64),
|
|
105
108
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
109
|
+
name: IDL.Opt(IDL.Text),
|
|
106
110
|
user: IDL.Principal
|
|
107
111
|
});
|
|
108
112
|
const InitStorageMemory = IDL.Variant({
|
|
@@ -116,6 +120,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
116
120
|
block_index: IDL.Opt(IDL.Nat64),
|
|
117
121
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
118
122
|
storage: IDL.Opt(InitStorageArgs),
|
|
123
|
+
name: IDL.Opt(IDL.Text),
|
|
119
124
|
user: IDL.Principal
|
|
120
125
|
});
|
|
121
126
|
const DeleteControllersArgs = IDL.Record({
|
|
@@ -212,6 +217,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
212
217
|
Ok: SignedDelegation,
|
|
213
218
|
Err: GetDelegationError
|
|
214
219
|
});
|
|
220
|
+
const SegmentKind = IDL.Variant({
|
|
221
|
+
Orbiter: IDL.Null,
|
|
222
|
+
MissionControl: IDL.Null,
|
|
223
|
+
Satellite: IDL.Null
|
|
224
|
+
});
|
|
225
|
+
const CyclesTokens = IDL.Record({e12s: IDL.Nat64});
|
|
226
|
+
const FactoryFee = IDL.Record({
|
|
227
|
+
updated_at: IDL.Nat64,
|
|
228
|
+
fee_cycles: CyclesTokens,
|
|
229
|
+
fee_icp: IDL.Opt(Tokens)
|
|
230
|
+
});
|
|
215
231
|
const ProposalStatus = IDL.Variant({
|
|
216
232
|
Initialized: IDL.Null,
|
|
217
233
|
Failed: IDL.Null,
|
|
@@ -242,6 +258,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
242
258
|
version: IDL.Opt(IDL.Nat64),
|
|
243
259
|
proposal_type: ProposalType
|
|
244
260
|
});
|
|
261
|
+
const RateConfig = IDL.Record({
|
|
262
|
+
max_tokens: IDL.Nat64,
|
|
263
|
+
time_per_token_ns: IDL.Nat64
|
|
264
|
+
});
|
|
245
265
|
const HttpRequest = IDL.Record({
|
|
246
266
|
url: IDL.Text,
|
|
247
267
|
method: IDL.Text,
|
|
@@ -363,7 +383,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
363
383
|
Acknowledged: IDL.Null,
|
|
364
384
|
Completed: IDL.Null
|
|
365
385
|
});
|
|
366
|
-
const
|
|
386
|
+
const IcpPayment = IDL.Record({
|
|
367
387
|
status: PaymentStatus,
|
|
368
388
|
updated_at: IDL.Nat64,
|
|
369
389
|
block_index_payment: IDL.Nat64,
|
|
@@ -371,6 +391,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
371
391
|
created_at: IDL.Nat64,
|
|
372
392
|
block_index_refunded: IDL.Opt(IDL.Nat64)
|
|
373
393
|
});
|
|
394
|
+
const IcrcPaymentKey = IDL.Record({
|
|
395
|
+
block_index: IDL.Nat64,
|
|
396
|
+
ledger_id: IDL.Principal
|
|
397
|
+
});
|
|
398
|
+
const Account_1 = IDL.Record({
|
|
399
|
+
owner: IDL.Principal,
|
|
400
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
401
|
+
});
|
|
402
|
+
const IcrcPayment = IDL.Record({
|
|
403
|
+
status: PaymentStatus,
|
|
404
|
+
updated_at: IDL.Nat64,
|
|
405
|
+
created_at: IDL.Nat64,
|
|
406
|
+
block_index_refunded: IDL.Opt(IDL.Nat64),
|
|
407
|
+
purchaser: Account_1
|
|
408
|
+
});
|
|
374
409
|
const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
|
|
375
410
|
const ListProposalsPaginate = IDL.Record({
|
|
376
411
|
start_after: IDL.Opt(IDL.Nat),
|
|
@@ -386,6 +421,25 @@ export const idlFactory = ({IDL}) => {
|
|
|
386
421
|
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
387
422
|
items_length: IDL.Nat64
|
|
388
423
|
});
|
|
424
|
+
const StorableSegmentKind = IDL.Variant({
|
|
425
|
+
Orbiter: IDL.Null,
|
|
426
|
+
Satellite: IDL.Null
|
|
427
|
+
});
|
|
428
|
+
const ListSegmentsArgs = IDL.Record({
|
|
429
|
+
segment_id: IDL.Opt(IDL.Principal),
|
|
430
|
+
segment_kind: IDL.Opt(StorableSegmentKind)
|
|
431
|
+
});
|
|
432
|
+
const SegmentKey = IDL.Record({
|
|
433
|
+
user: IDL.Principal,
|
|
434
|
+
segment_id: IDL.Principal,
|
|
435
|
+
segment_kind: StorableSegmentKind
|
|
436
|
+
});
|
|
437
|
+
const Segment = IDL.Record({
|
|
438
|
+
updated_at: IDL.Nat64,
|
|
439
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
440
|
+
segment_id: IDL.Principal,
|
|
441
|
+
created_at: IDL.Nat64
|
|
442
|
+
});
|
|
389
443
|
const SetAuthenticationConfig = IDL.Record({
|
|
390
444
|
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
391
445
|
version: IDL.Opt(IDL.Nat64),
|
|
@@ -401,10 +455,19 @@ export const idlFactory = ({IDL}) => {
|
|
|
401
455
|
controller: SetController,
|
|
402
456
|
controllers: IDL.Vec(IDL.Principal)
|
|
403
457
|
});
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
458
|
+
const FeesArgs = IDL.Record({
|
|
459
|
+
fee_cycles: CyclesTokens,
|
|
460
|
+
fee_icp: IDL.Opt(Tokens)
|
|
461
|
+
});
|
|
462
|
+
const SetSegmentsArgs = IDL.Record({
|
|
463
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
464
|
+
segment_id: IDL.Principal,
|
|
465
|
+
segment_kind: StorableSegmentKind
|
|
466
|
+
});
|
|
467
|
+
const SetSegmentMetadataArgs = IDL.Record({
|
|
468
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
469
|
+
segment_id: IDL.Principal,
|
|
470
|
+
segment_kind: StorableSegmentKind
|
|
408
471
|
});
|
|
409
472
|
const SetStorageConfig = IDL.Record({
|
|
410
473
|
iframe: IDL.Opt(StorageConfigIFrame),
|
|
@@ -415,9 +478,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
415
478
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
416
479
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
417
480
|
});
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
|
|
481
|
+
const UnsetSegmentsArgs = IDL.Record({
|
|
482
|
+
segment_id: IDL.Principal,
|
|
483
|
+
segment_kind: StorableSegmentKind
|
|
421
484
|
});
|
|
422
485
|
const UploadChunk = IDL.Record({
|
|
423
486
|
content: IDL.Vec(IDL.Nat8),
|
|
@@ -435,7 +498,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
435
498
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
436
499
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
437
500
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
438
|
-
|
|
501
|
+
create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
|
|
502
|
+
create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
|
|
439
503
|
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
440
504
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
441
505
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
@@ -447,7 +511,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
447
511
|
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
448
512
|
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
449
513
|
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
|
|
514
|
+
get_fee: IDL.Func([SegmentKind], [FactoryFee], ['query']),
|
|
515
|
+
get_or_init_account: IDL.Func([], [Account], []),
|
|
450
516
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
517
|
+
get_rate_config: IDL.Func([SegmentKind], [RateConfig], ['query']),
|
|
451
518
|
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
452
519
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
453
520
|
http_request_streaming_callback: IDL.Func(
|
|
@@ -462,21 +529,29 @@ export const idlFactory = ({IDL}) => {
|
|
|
462
529
|
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
463
530
|
[]
|
|
464
531
|
),
|
|
465
|
-
init_user_mission_control_center: IDL.Func([], [Account], []),
|
|
466
532
|
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
467
533
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
468
534
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
469
535
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
470
|
-
|
|
536
|
+
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], ['query']),
|
|
537
|
+
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], ['query']),
|
|
471
538
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
539
|
+
list_segments: IDL.Func(
|
|
540
|
+
[ListSegmentsArgs],
|
|
541
|
+
[IDL.Vec(IDL.Tuple(SegmentKey, Segment))],
|
|
542
|
+
['query']
|
|
543
|
+
),
|
|
472
544
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
473
545
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
474
546
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
475
547
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
476
|
-
set_fee: IDL.Func([SegmentKind,
|
|
548
|
+
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
549
|
+
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
550
|
+
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
551
|
+
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
477
552
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
478
553
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
479
|
-
|
|
554
|
+
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
480
555
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
481
556
|
});
|
|
482
557
|
};
|