@junobuild/ic-client 8.1.3-next-2026-04-20 → 8.2.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.
Files changed (27) hide show
  1. package/actor.js +1 -1
  2. package/actor.js.map +3 -3
  3. package/actor.mjs +1 -1
  4. package/actor.mjs.map +3 -3
  5. package/declarations/console/console.did.d.ts +38 -3
  6. package/declarations/console/console.factory.certified.did.js +34 -2
  7. package/declarations/console/console.factory.did.js +34 -2
  8. package/declarations/console/console.factory.did.mjs +34 -2
  9. package/declarations/mission_control/mission_control.did.d.ts +14 -1
  10. package/declarations/mission_control/mission_control.factory.certified.did.js +16 -3
  11. package/declarations/mission_control/mission_control.factory.did.js +16 -3
  12. package/declarations/observatory/observatory.did.d.ts +6 -2
  13. package/declarations/observatory/observatory.factory.certified.did.js +2 -1
  14. package/declarations/observatory/observatory.factory.did.js +2 -1
  15. package/declarations/observatory/observatory.factory.did.mjs +2 -1
  16. package/declarations/orbiter/orbiter.did.d.ts +1 -1
  17. package/declarations/orbiter/orbiter.factory.certified.did.js +1 -1
  18. package/declarations/orbiter/orbiter.factory.did.js +1 -1
  19. package/declarations/orbiter/orbiter.factory.did.mjs +1 -1
  20. package/declarations/satellite/satellite.did.d.ts +1 -1
  21. package/declarations/satellite/satellite.factory.certified.did.js +1 -1
  22. package/declarations/satellite/satellite.factory.did.js +1 -1
  23. package/declarations/satellite/satellite.factory.did.mjs +1 -1
  24. package/declarations/sputnik/sputnik.did.d.ts +1 -1
  25. package/declarations/sputnik/sputnik.factory.certified.did.js +1 -1
  26. package/declarations/sputnik/sputnik.factory.did.js +1 -1
  27. package/package.json +5 -5
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -28,6 +28,12 @@ export interface Account {
28
28
  owner: Principal;
29
29
  created_at: bigint;
30
30
  }
31
+ export interface AccountConfig {
32
+ updated_at: [] | [bigint];
33
+ init_credits: Tokens;
34
+ created_at: [] | [bigint];
35
+ version: [] | [bigint];
36
+ }
31
37
  export interface Account_1 {
32
38
  owner: Principal;
33
39
  subaccount: [] | [Uint8Array];
@@ -122,6 +128,15 @@ export interface CreateSatelliteArgs {
122
128
  name: [] | [string];
123
129
  user: Principal;
124
130
  }
131
+ export type CreateSegmentArgs =
132
+ | { Ufo: CreateUfoArgs }
133
+ | { Orbiter: CreateOrbiterArgs }
134
+ | { MissionControl: CreateMissionControlArgs }
135
+ | { Satellite: CreateSatelliteArgs };
136
+ export interface CreateUfoArgs {
137
+ subnet_id: [] | [Principal];
138
+ name: [] | [string];
139
+ }
125
140
  export interface CustomDomain {
126
141
  updated_at: bigint;
127
142
  created_at: bigint;
@@ -367,7 +382,11 @@ export interface SegmentKey {
367
382
  segment_id: Principal;
368
383
  segment_kind: StorableSegmentKind;
369
384
  }
370
- export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
385
+ export type SegmentKind =
386
+ | { Ufo: null }
387
+ | { Orbiter: null }
388
+ | { MissionControl: null }
389
+ | { Satellite: null };
371
390
  export interface SegmentsDeploymentOptions {
372
391
  orbiter: [] | [string];
373
392
  mission_control_version: [] | [string];
@@ -379,6 +398,10 @@ export interface SetAccessKey {
379
398
  scope: AccessKeyScope;
380
399
  expires_at: [] | [bigint];
381
400
  }
401
+ export interface SetAccountConfig {
402
+ init_credits: Tokens;
403
+ version: [] | [bigint];
404
+ }
382
405
  export interface SetAuthenticationConfig {
383
406
  openid: [] | [AuthenticationConfigOpenId];
384
407
  version: [] | [bigint];
@@ -412,7 +435,7 @@ export interface SignedDelegation {
412
435
  signature: Uint8Array;
413
436
  delegation: Delegation;
414
437
  }
415
- export type StorableSegmentKind = { Orbiter: null } | { Satellite: null };
438
+ export type StorableSegmentKind = { Ufo: null } | { Orbiter: null } | { Satellite: null };
416
439
  export interface StorageConfig {
417
440
  iframe: [] | [StorageConfigIFrame];
418
441
  updated_at: [] | [bigint];
@@ -469,6 +492,13 @@ export interface UploadChunk {
469
492
  export interface UploadChunkResult {
470
493
  chunk_id: bigint;
471
494
  }
495
+ export interface WithdrawArgs {
496
+ to: Principal;
497
+ }
498
+ export interface WithdrawResult {
499
+ block_index: bigint;
500
+ amount: bigint;
501
+ }
472
502
  export interface _SERVICE {
473
503
  add_credits: ActorMethod<[Principal, Tokens], undefined>;
474
504
  add_invitation_code: ActorMethod<[string], undefined>;
@@ -481,10 +511,12 @@ export interface _SERVICE {
481
511
  create_mission_control: ActorMethod<[CreateMissionControlArgs], Principal>;
482
512
  create_orbiter: ActorMethod<[CreateOrbiterArgs], Principal>;
483
513
  create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
514
+ create_segment: ActorMethod<[CreateSegmentArgs], Principal>;
484
515
  del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
485
516
  del_custom_domain: ActorMethod<[string], undefined>;
486
517
  delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
487
518
  get_account: ActorMethod<[], [] | [Account]>;
519
+ get_account_config: ActorMethod<[], [] | [AccountConfig]>;
488
520
  get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
489
521
  get_config: ActorMethod<[], Config>;
490
522
  get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
@@ -516,6 +548,7 @@ export interface _SERVICE {
516
548
  list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
517
549
  list_segments: ActorMethod<[ListSegmentsArgs], Array<[SegmentKey, Segment]>>;
518
550
  reject_proposal: ActorMethod<[CommitProposal], null>;
551
+ set_account_config: ActorMethod<[SetAccountConfig], AccountConfig>;
519
552
  set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
520
553
  set_controllers: ActorMethod<[SetControllersArgs], undefined>;
521
554
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
@@ -529,6 +562,8 @@ export interface _SERVICE {
529
562
  unset_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
530
563
  unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
531
564
  upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
565
+ withdraw_icp: ActorMethod<[WithdrawArgs], WithdrawResult>;
566
+ withdraw_icrc: ActorMethod<[WithdrawArgs], WithdrawResult>;
532
567
  }
533
568
  export declare const idlFactory: IDL.InterfaceFactory;
534
569
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -128,12 +128,28 @@ export const idlFactory = ({IDL}) => {
128
128
  name: IDL.Opt(IDL.Text),
129
129
  user: IDL.Principal
130
130
  });
131
+ const CreateUfoArgs = IDL.Record({
132
+ subnet_id: IDL.Opt(IDL.Principal),
133
+ name: IDL.Opt(IDL.Text)
134
+ });
135
+ const CreateSegmentArgs = IDL.Variant({
136
+ Ufo: CreateUfoArgs,
137
+ Orbiter: CreateOrbiterArgs,
138
+ MissionControl: CreateMissionControlArgs,
139
+ Satellite: CreateSatelliteArgs
140
+ });
131
141
  const DeleteControllersArgs = IDL.Record({
132
142
  controllers: IDL.Vec(IDL.Principal)
133
143
  });
134
144
  const DeleteProposalAssets = IDL.Record({
135
145
  proposal_ids: IDL.Vec(IDL.Nat)
136
146
  });
147
+ const AccountConfig = IDL.Record({
148
+ updated_at: IDL.Opt(IDL.Nat64),
149
+ init_credits: Tokens,
150
+ created_at: IDL.Opt(IDL.Nat64),
151
+ version: IDL.Opt(IDL.Nat64)
152
+ });
137
153
  const OpenIdAuthProviderDelegationConfig = IDL.Record({
138
154
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
139
155
  max_time_to_live: IDL.Opt(IDL.Nat64)
@@ -224,6 +240,7 @@ export const idlFactory = ({IDL}) => {
224
240
  Err: GetDelegationError
225
241
  });
226
242
  const SegmentKind = IDL.Variant({
243
+ Ufo: IDL.Null,
227
244
  Orbiter: IDL.Null,
228
245
  MissionControl: IDL.Null,
229
246
  Satellite: IDL.Null
@@ -433,6 +450,7 @@ export const idlFactory = ({IDL}) => {
433
450
  items_length: IDL.Nat64
434
451
  });
435
452
  const StorableSegmentKind = IDL.Variant({
453
+ Ufo: IDL.Null,
436
454
  Orbiter: IDL.Null,
437
455
  Satellite: IDL.Null
438
456
  });
@@ -451,6 +469,10 @@ export const idlFactory = ({IDL}) => {
451
469
  segment_id: IDL.Principal,
452
470
  created_at: IDL.Nat64
453
471
  });
472
+ const SetAccountConfig = IDL.Record({
473
+ init_credits: Tokens,
474
+ version: IDL.Opt(IDL.Nat64)
475
+ });
454
476
  const SetAuthenticationConfig = IDL.Record({
455
477
  openid: IDL.Opt(AuthenticationConfigOpenId),
456
478
  version: IDL.Opt(IDL.Nat64),
@@ -500,6 +522,11 @@ export const idlFactory = ({IDL}) => {
500
522
  order_id: IDL.Opt(IDL.Nat)
501
523
  });
502
524
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
525
+ const WithdrawArgs = IDL.Record({to: IDL.Principal});
526
+ const WithdrawResult = IDL.Record({
527
+ block_index: IDL.Nat64,
528
+ amount: IDL.Nat64
529
+ });
503
530
 
504
531
  return IDL.Service({
505
532
  add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
@@ -513,10 +540,12 @@ export const idlFactory = ({IDL}) => {
513
540
  create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
514
541
  create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
515
542
  create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
543
+ create_segment: IDL.Func([CreateSegmentArgs], [IDL.Principal], []),
516
544
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
517
545
  del_custom_domain: IDL.Func([IDL.Text], [], []),
518
546
  delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
519
547
  get_account: IDL.Func([], [IDL.Opt(Account)], []),
548
+ get_account_config: IDL.Func([], [IDL.Opt(AccountConfig)], []),
520
549
  get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], []),
521
550
  get_config: IDL.Func([], [Config], []),
522
551
  get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
@@ -550,6 +579,7 @@ export const idlFactory = ({IDL}) => {
550
579
  list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
551
580
  list_segments: IDL.Func([ListSegmentsArgs], [IDL.Vec(IDL.Tuple(SegmentKey, Segment))], []),
552
581
  reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
582
+ set_account_config: IDL.Func([SetAccountConfig], [AccountConfig], []),
553
583
  set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
554
584
  set_controllers: IDL.Func([SetControllersArgs], [], []),
555
585
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
@@ -562,7 +592,9 @@ export const idlFactory = ({IDL}) => {
562
592
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
563
593
  unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
564
594
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
565
- upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
595
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
596
+ withdraw_icp: IDL.Func([WithdrawArgs], [WithdrawResult], []),
597
+ withdraw_icrc: IDL.Func([WithdrawArgs], [WithdrawResult], [])
566
598
  });
567
599
  };
568
600
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -128,12 +128,28 @@ export const idlFactory = ({IDL}) => {
128
128
  name: IDL.Opt(IDL.Text),
129
129
  user: IDL.Principal
130
130
  });
131
+ const CreateUfoArgs = IDL.Record({
132
+ subnet_id: IDL.Opt(IDL.Principal),
133
+ name: IDL.Opt(IDL.Text)
134
+ });
135
+ const CreateSegmentArgs = IDL.Variant({
136
+ Ufo: CreateUfoArgs,
137
+ Orbiter: CreateOrbiterArgs,
138
+ MissionControl: CreateMissionControlArgs,
139
+ Satellite: CreateSatelliteArgs
140
+ });
131
141
  const DeleteControllersArgs = IDL.Record({
132
142
  controllers: IDL.Vec(IDL.Principal)
133
143
  });
134
144
  const DeleteProposalAssets = IDL.Record({
135
145
  proposal_ids: IDL.Vec(IDL.Nat)
136
146
  });
147
+ const AccountConfig = IDL.Record({
148
+ updated_at: IDL.Opt(IDL.Nat64),
149
+ init_credits: Tokens,
150
+ created_at: IDL.Opt(IDL.Nat64),
151
+ version: IDL.Opt(IDL.Nat64)
152
+ });
137
153
  const OpenIdAuthProviderDelegationConfig = IDL.Record({
138
154
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
139
155
  max_time_to_live: IDL.Opt(IDL.Nat64)
@@ -224,6 +240,7 @@ export const idlFactory = ({IDL}) => {
224
240
  Err: GetDelegationError
225
241
  });
226
242
  const SegmentKind = IDL.Variant({
243
+ Ufo: IDL.Null,
227
244
  Orbiter: IDL.Null,
228
245
  MissionControl: IDL.Null,
229
246
  Satellite: IDL.Null
@@ -433,6 +450,7 @@ export const idlFactory = ({IDL}) => {
433
450
  items_length: IDL.Nat64
434
451
  });
435
452
  const StorableSegmentKind = IDL.Variant({
453
+ Ufo: IDL.Null,
436
454
  Orbiter: IDL.Null,
437
455
  Satellite: IDL.Null
438
456
  });
@@ -451,6 +469,10 @@ export const idlFactory = ({IDL}) => {
451
469
  segment_id: IDL.Principal,
452
470
  created_at: IDL.Nat64
453
471
  });
472
+ const SetAccountConfig = IDL.Record({
473
+ init_credits: Tokens,
474
+ version: IDL.Opt(IDL.Nat64)
475
+ });
454
476
  const SetAuthenticationConfig = IDL.Record({
455
477
  openid: IDL.Opt(AuthenticationConfigOpenId),
456
478
  version: IDL.Opt(IDL.Nat64),
@@ -500,6 +522,11 @@ export const idlFactory = ({IDL}) => {
500
522
  order_id: IDL.Opt(IDL.Nat)
501
523
  });
502
524
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
525
+ const WithdrawArgs = IDL.Record({to: IDL.Principal});
526
+ const WithdrawResult = IDL.Record({
527
+ block_index: IDL.Nat64,
528
+ amount: IDL.Nat64
529
+ });
503
530
 
504
531
  return IDL.Service({
505
532
  add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
@@ -513,10 +540,12 @@ export const idlFactory = ({IDL}) => {
513
540
  create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
514
541
  create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
515
542
  create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
543
+ create_segment: IDL.Func([CreateSegmentArgs], [IDL.Principal], []),
516
544
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
517
545
  del_custom_domain: IDL.Func([IDL.Text], [], []),
518
546
  delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
519
547
  get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
548
+ get_account_config: IDL.Func([], [IDL.Opt(AccountConfig)], ['query']),
520
549
  get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
521
550
  get_config: IDL.Func([], [Config], ['query']),
522
551
  get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
@@ -554,6 +583,7 @@ export const idlFactory = ({IDL}) => {
554
583
  ['query']
555
584
  ),
556
585
  reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
586
+ set_account_config: IDL.Func([SetAccountConfig], [AccountConfig], []),
557
587
  set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
558
588
  set_controllers: IDL.Func([SetControllersArgs], [], []),
559
589
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
@@ -566,7 +596,9 @@ export const idlFactory = ({IDL}) => {
566
596
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
567
597
  unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
568
598
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
569
- upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
599
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
600
+ withdraw_icp: IDL.Func([WithdrawArgs], [WithdrawResult], []),
601
+ withdraw_icrc: IDL.Func([WithdrawArgs], [WithdrawResult], [])
570
602
  });
571
603
  };
572
604
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -128,12 +128,28 @@ export const idlFactory = ({IDL}) => {
128
128
  name: IDL.Opt(IDL.Text),
129
129
  user: IDL.Principal
130
130
  });
131
+ const CreateUfoArgs = IDL.Record({
132
+ subnet_id: IDL.Opt(IDL.Principal),
133
+ name: IDL.Opt(IDL.Text)
134
+ });
135
+ const CreateSegmentArgs = IDL.Variant({
136
+ Ufo: CreateUfoArgs,
137
+ Orbiter: CreateOrbiterArgs,
138
+ MissionControl: CreateMissionControlArgs,
139
+ Satellite: CreateSatelliteArgs
140
+ });
131
141
  const DeleteControllersArgs = IDL.Record({
132
142
  controllers: IDL.Vec(IDL.Principal)
133
143
  });
134
144
  const DeleteProposalAssets = IDL.Record({
135
145
  proposal_ids: IDL.Vec(IDL.Nat)
136
146
  });
147
+ const AccountConfig = IDL.Record({
148
+ updated_at: IDL.Opt(IDL.Nat64),
149
+ init_credits: Tokens,
150
+ created_at: IDL.Opt(IDL.Nat64),
151
+ version: IDL.Opt(IDL.Nat64)
152
+ });
137
153
  const OpenIdAuthProviderDelegationConfig = IDL.Record({
138
154
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
139
155
  max_time_to_live: IDL.Opt(IDL.Nat64)
@@ -224,6 +240,7 @@ export const idlFactory = ({IDL}) => {
224
240
  Err: GetDelegationError
225
241
  });
226
242
  const SegmentKind = IDL.Variant({
243
+ Ufo: IDL.Null,
227
244
  Orbiter: IDL.Null,
228
245
  MissionControl: IDL.Null,
229
246
  Satellite: IDL.Null
@@ -433,6 +450,7 @@ export const idlFactory = ({IDL}) => {
433
450
  items_length: IDL.Nat64
434
451
  });
435
452
  const StorableSegmentKind = IDL.Variant({
453
+ Ufo: IDL.Null,
436
454
  Orbiter: IDL.Null,
437
455
  Satellite: IDL.Null
438
456
  });
@@ -451,6 +469,10 @@ export const idlFactory = ({IDL}) => {
451
469
  segment_id: IDL.Principal,
452
470
  created_at: IDL.Nat64
453
471
  });
472
+ const SetAccountConfig = IDL.Record({
473
+ init_credits: Tokens,
474
+ version: IDL.Opt(IDL.Nat64)
475
+ });
454
476
  const SetAuthenticationConfig = IDL.Record({
455
477
  openid: IDL.Opt(AuthenticationConfigOpenId),
456
478
  version: IDL.Opt(IDL.Nat64),
@@ -500,6 +522,11 @@ export const idlFactory = ({IDL}) => {
500
522
  order_id: IDL.Opt(IDL.Nat)
501
523
  });
502
524
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
525
+ const WithdrawArgs = IDL.Record({to: IDL.Principal});
526
+ const WithdrawResult = IDL.Record({
527
+ block_index: IDL.Nat64,
528
+ amount: IDL.Nat64
529
+ });
503
530
 
504
531
  return IDL.Service({
505
532
  add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
@@ -513,10 +540,12 @@ export const idlFactory = ({IDL}) => {
513
540
  create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
514
541
  create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
515
542
  create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
543
+ create_segment: IDL.Func([CreateSegmentArgs], [IDL.Principal], []),
516
544
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
517
545
  del_custom_domain: IDL.Func([IDL.Text], [], []),
518
546
  delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
519
547
  get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
548
+ get_account_config: IDL.Func([], [IDL.Opt(AccountConfig)], ['query']),
520
549
  get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
521
550
  get_config: IDL.Func([], [Config], ['query']),
522
551
  get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
@@ -554,6 +583,7 @@ export const idlFactory = ({IDL}) => {
554
583
  ['query']
555
584
  ),
556
585
  reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
586
+ set_account_config: IDL.Func([SetAccountConfig], [AccountConfig], []),
557
587
  set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
558
588
  set_controllers: IDL.Func([SetControllersArgs], [], []),
559
589
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
@@ -566,7 +596,9 @@ export const idlFactory = ({IDL}) => {
566
596
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
567
597
  unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
568
598
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
569
- upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
599
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
600
+ withdraw_icp: IDL.Func([WithdrawArgs], [WithdrawResult], []),
601
+ withdraw_icrc: IDL.Func([WithdrawArgs], [WithdrawResult], [])
570
602
  });
571
603
  };
572
604
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -52,6 +52,7 @@ export interface CyclesMonitoringStartConfig {
52
52
  orbiters_strategy: [] | [SegmentsMonitoringStrategy];
53
53
  mission_control_strategy: [] | [CyclesMonitoringStrategy];
54
54
  satellites_strategy: [] | [SegmentsMonitoringStrategy];
55
+ ufos_strategy: [] | [SegmentsMonitoringStrategy];
55
56
  }
56
57
  export interface CyclesMonitoringStatus {
57
58
  monitored_ids: Array<Principal>;
@@ -61,6 +62,7 @@ export interface CyclesMonitoringStopConfig {
61
62
  satellite_ids: [] | [Array<Principal>];
62
63
  try_mission_control: [] | [boolean];
63
64
  orbiter_ids: [] | [Array<Principal>];
65
+ ufo_ids: [] | [Array<Principal>];
64
66
  }
65
67
  export type CyclesMonitoringStrategy = { BelowThreshold: CyclesThreshold };
66
68
  export interface CyclesThreshold {
@@ -200,6 +202,13 @@ export type TransferError_1 =
200
202
  | { CreatedInFuture: { ledger_time: bigint } }
201
203
  | { TooOld: null }
202
204
  | { InsufficientFunds: { balance: bigint } };
205
+ export interface Ufo {
206
+ updated_at: bigint;
207
+ metadata: Array<[string, string]>;
208
+ created_at: bigint;
209
+ settings: [] | [Settings];
210
+ ufo_id: Principal;
211
+ }
203
212
  export interface User {
204
213
  updated_at: bigint;
205
214
  metadata: Array<[string, string]>;
@@ -233,6 +242,7 @@ export interface _SERVICE {
233
242
  list_mission_control_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
234
243
  list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
235
244
  list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
245
+ list_ufos: ActorMethod<[], Array<[Principal, Ufo]>>;
236
246
  set_config: ActorMethod<[[] | [Config]], undefined>;
237
247
  set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
238
248
  set_mission_control_controllers: ActorMethod<[Array<Principal>, SetAccessKey], undefined>;
@@ -248,11 +258,14 @@ export interface _SERVICE {
248
258
  [Array<Principal>, Array<Principal>, SetAccessKey],
249
259
  undefined
250
260
  >;
261
+ set_ufo: ActorMethod<[Principal, [] | [string]], Ufo>;
262
+ set_ufo_metadata: ActorMethod<[Principal, Array<[string, string]>], Ufo>;
251
263
  start_monitoring: ActorMethod<[], undefined>;
252
264
  stop_monitoring: ActorMethod<[], undefined>;
253
265
  top_up: ActorMethod<[Principal, Tokens], undefined>;
254
266
  unset_orbiter: ActorMethod<[Principal], undefined>;
255
267
  unset_satellite: ActorMethod<[Principal], undefined>;
268
+ unset_ufo: ActorMethod<[Principal], undefined>;
256
269
  update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
257
270
  update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
258
271
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -180,6 +180,13 @@ export const idlFactory = ({IDL}) => {
180
180
  scope: AccessKeyScope,
181
181
  expires_at: IDL.Opt(IDL.Nat64)
182
182
  });
183
+ const Ufo = IDL.Record({
184
+ updated_at: IDL.Nat64,
185
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
186
+ created_at: IDL.Nat64,
187
+ settings: IDL.Opt(Settings),
188
+ ufo_id: IDL.Principal
189
+ });
183
190
  const SetAccessKey = IDL.Record({
184
191
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
185
192
  kind: IDL.Opt(AccessKeyKind),
@@ -193,7 +200,8 @@ export const idlFactory = ({IDL}) => {
193
200
  const CyclesMonitoringStartConfig = IDL.Record({
194
201
  orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
195
202
  mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
196
- satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
203
+ satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy),
204
+ ufos_strategy: IDL.Opt(SegmentsMonitoringStrategy)
197
205
  });
198
206
  const MonitoringStartConfig = IDL.Record({
199
207
  cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
@@ -201,7 +209,8 @@ export const idlFactory = ({IDL}) => {
201
209
  const CyclesMonitoringStopConfig = IDL.Record({
202
210
  satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
203
211
  try_mission_control: IDL.Opt(IDL.Bool),
204
- orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
212
+ orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
213
+ ufo_ids: IDL.Opt(IDL.Vec(IDL.Principal))
205
214
  });
206
215
  const MonitoringStopConfig = IDL.Record({
207
216
  cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
@@ -238,6 +247,7 @@ export const idlFactory = ({IDL}) => {
238
247
  ),
239
248
  list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], []),
240
249
  list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], []),
250
+ list_ufos: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Ufo))], []),
241
251
  set_config: IDL.Func([IDL.Opt(Config)], [], []),
242
252
  set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
243
253
  set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetAccessKey], [], []),
@@ -263,11 +273,14 @@ export const idlFactory = ({IDL}) => {
263
273
  [],
264
274
  []
265
275
  ),
276
+ set_ufo: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Ufo], []),
277
+ set_ufo_metadata: IDL.Func([IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [Ufo], []),
266
278
  start_monitoring: IDL.Func([], [], []),
267
279
  stop_monitoring: IDL.Func([], [], []),
268
280
  top_up: IDL.Func([IDL.Principal, Tokens], [], []),
269
281
  unset_orbiter: IDL.Func([IDL.Principal], [], []),
270
282
  unset_satellite: IDL.Func([IDL.Principal], [], []),
283
+ unset_ufo: IDL.Func([IDL.Principal], [], []),
271
284
  update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
272
285
  update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
273
286
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -180,6 +180,13 @@ export const idlFactory = ({IDL}) => {
180
180
  scope: AccessKeyScope,
181
181
  expires_at: IDL.Opt(IDL.Nat64)
182
182
  });
183
+ const Ufo = IDL.Record({
184
+ updated_at: IDL.Nat64,
185
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
186
+ created_at: IDL.Nat64,
187
+ settings: IDL.Opt(Settings),
188
+ ufo_id: IDL.Principal
189
+ });
183
190
  const SetAccessKey = IDL.Record({
184
191
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
185
192
  kind: IDL.Opt(AccessKeyKind),
@@ -193,7 +200,8 @@ export const idlFactory = ({IDL}) => {
193
200
  const CyclesMonitoringStartConfig = IDL.Record({
194
201
  orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
195
202
  mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
196
- satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
203
+ satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy),
204
+ ufos_strategy: IDL.Opt(SegmentsMonitoringStrategy)
197
205
  });
198
206
  const MonitoringStartConfig = IDL.Record({
199
207
  cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
@@ -201,7 +209,8 @@ export const idlFactory = ({IDL}) => {
201
209
  const CyclesMonitoringStopConfig = IDL.Record({
202
210
  satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
203
211
  try_mission_control: IDL.Opt(IDL.Bool),
204
- orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
212
+ orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
213
+ ufo_ids: IDL.Opt(IDL.Vec(IDL.Principal))
205
214
  });
206
215
  const MonitoringStopConfig = IDL.Record({
207
216
  cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
@@ -238,6 +247,7 @@ export const idlFactory = ({IDL}) => {
238
247
  ),
239
248
  list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
240
249
  list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
250
+ list_ufos: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Ufo))], ['query']),
241
251
  set_config: IDL.Func([IDL.Opt(Config)], [], []),
242
252
  set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
243
253
  set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetAccessKey], [], []),
@@ -263,11 +273,14 @@ export const idlFactory = ({IDL}) => {
263
273
  [],
264
274
  []
265
275
  ),
276
+ set_ufo: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Ufo], []),
277
+ set_ufo_metadata: IDL.Func([IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [Ufo], []),
266
278
  start_monitoring: IDL.Func([], [], []),
267
279
  stop_monitoring: IDL.Func([], [], []),
268
280
  top_up: IDL.Func([IDL.Principal, Tokens], [], []),
269
281
  unset_orbiter: IDL.Func([IDL.Principal], [], []),
270
282
  unset_satellite: IDL.Func([IDL.Principal], [], []),
283
+ unset_ufo: IDL.Func([IDL.Principal], [], []),
271
284
  update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
272
285
  update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
273
286
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -119,7 +119,11 @@ export interface Segment {
119
119
  metadata: [] | [Array<[string, string]>];
120
120
  kind: SegmentKind;
121
121
  }
122
- export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
122
+ export type SegmentKind =
123
+ | { Ufo: null }
124
+ | { Orbiter: null }
125
+ | { MissionControl: null }
126
+ | { Satellite: null };
123
127
  export interface SetAccessKey {
124
128
  metadata: Array<[string, string]>;
125
129
  kind: [] | [AccessKeyKind];
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -104,6 +104,7 @@ export const idlFactory = ({IDL}) => {
104
104
  FailedCyclesDepositEmail: FailedCyclesDepositEmailNotification
105
105
  });
106
106
  const SegmentKind = IDL.Variant({
107
+ Ufo: IDL.Null,
107
108
  Orbiter: IDL.Null,
108
109
  MissionControl: IDL.Null,
109
110
  Satellite: IDL.Null
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.0.
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
 
@@ -104,6 +104,7 @@ export const idlFactory = ({IDL}) => {
104
104
  FailedCyclesDepositEmail: FailedCyclesDepositEmailNotification
105
105
  });
106
106
  const SegmentKind = IDL.Variant({
107
+ Ufo: IDL.Null,
107
108
  Orbiter: IDL.Null,
108
109
  MissionControl: IDL.Null,
109
110
  Satellite: IDL.Null