Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 56 additions & 21 deletions cli/src/declarations/console.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@

// @ts-nocheck

// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
// This file was automatically generated by @icp-sdk/bindgen@0.3.0.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.

import type {ActorMethod} from '@icp-sdk/core/agent';
import type {IDL} from '@icp-sdk/core/candid';
import type {Principal} from '@icp-sdk/core/principal';

export interface AccessKey {
updated_at: bigint;
metadata: Array<[string, string]>;
kind: [] | [AccessKeyKind];
created_at: bigint;
scope: AccessKeyScope;
expires_at: [] | [bigint];
}
export type AccessKeyKind = {Emulator: null} | {Automation: null};
export type AccessKeyScope = {Write: null} | {Admin: null} | {Submit: null};
export interface Account {
updated_at: bigint;
credits: Tokens;
Expand All @@ -18,6 +28,12 @@ export interface Account {
owner: Principal;
created_at: bigint;
}
export interface AccountConfig {
updated_at: [] | [bigint];
init_credits: Tokens;
created_at: [] | [bigint];
version: [] | [bigint];
}
export interface Account_1 {
owner: Principal;
subaccount: [] | [Uint8Array];
Expand Down Expand Up @@ -96,16 +112,6 @@ export interface ConfigMaxMemorySize {
stable: [] | [bigint];
heap: [] | [bigint];
}
export interface Controller {
updated_at: bigint;
metadata: Array<[string, string]>;
kind: [] | [ControllerKind];
created_at: bigint;
scope: ControllerScope;
expires_at: [] | [bigint];
}
export type ControllerKind = {Emulator: null} | {Automation: null};
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
export interface CreateMissionControlArgs {
subnet_id: [] | [Principal];
}
Expand All @@ -122,6 +128,15 @@ export interface CreateSatelliteArgs {
name: [] | [string];
user: Principal;
}
export type CreateSegmentArgs =
| {Ufo: CreateUfoArgs}
| {Orbiter: CreateOrbiterArgs}
| {MissionControl: CreateMissionControlArgs}
| {Satellite: CreateSatelliteArgs};
export interface CreateUfoArgs {
subnet_id: [] | [Principal];
name: [] | [string];
}
export interface CustomDomain {
updated_at: bigint;
created_at: bigint;
Expand Down Expand Up @@ -367,26 +382,34 @@ export interface SegmentKey {
segment_id: Principal;
segment_kind: StorableSegmentKind;
}
export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
export type SegmentKind =
| {Ufo: null}
| {Orbiter: null}
| {MissionControl: null}
| {Satellite: null};
export interface SegmentsDeploymentOptions {
orbiter: [] | [string];
mission_control_version: [] | [string];
satellite_version: [] | [string];
}
export interface SetAccessKey {
metadata: Array<[string, string]>;
kind: [] | [AccessKeyKind];
scope: AccessKeyScope;
expires_at: [] | [bigint];
}
export interface SetAccountConfig {
init_credits: Tokens;
version: [] | [bigint];
}
export interface SetAuthenticationConfig {
openid: [] | [AuthenticationConfigOpenId];
version: [] | [bigint];
internet_identity: [] | [AuthenticationConfigInternetIdentity];
rules: [] | [AuthenticationRules];
}
export interface SetController {
metadata: Array<[string, string]>;
kind: [] | [ControllerKind];
scope: ControllerScope;
expires_at: [] | [bigint];
}
export interface SetControllersArgs {
controller: SetController;
controller: SetAccessKey;
controllers: Array<Principal>;
}
export interface SetSegmentMetadataArgs {
Expand All @@ -412,7 +435,7 @@ export interface SignedDelegation {
signature: Uint8Array;
delegation: Delegation;
}
export type StorableSegmentKind = {Orbiter: null} | {Satellite: null};
export type StorableSegmentKind = {Ufo: null} | {Orbiter: null} | {Satellite: null};
export interface StorageConfig {
iframe: [] | [StorageConfigIFrame];
updated_at: [] | [bigint];
Expand Down Expand Up @@ -469,6 +492,13 @@ export interface UploadChunk {
export interface UploadChunkResult {
chunk_id: bigint;
}
export interface WithdrawArgs {
to: Principal;
}
export interface WithdrawResult {
block_index: bigint;
amount: bigint;
}
export interface _SERVICE {
add_credits: ActorMethod<[Principal, Tokens], undefined>;
add_invitation_code: ActorMethod<[string], undefined>;
Expand All @@ -481,10 +511,12 @@ export interface _SERVICE {
create_mission_control: ActorMethod<[CreateMissionControlArgs], Principal>;
create_orbiter: ActorMethod<[CreateOrbiterArgs], Principal>;
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
create_segment: ActorMethod<[CreateSegmentArgs], Principal>;
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
del_custom_domain: ActorMethod<[string], undefined>;
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
get_account: ActorMethod<[], [] | [Account]>;
get_account_config: ActorMethod<[], [] | [AccountConfig]>;
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
get_config: ActorMethod<[], Config>;
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
Expand All @@ -509,13 +541,14 @@ export interface _SERVICE {
>;
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
list_assets: ActorMethod<[string, ListParams], ListResults>;
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
list_icp_payments: ActorMethod<[], Array<[bigint, IcpPayment]>>;
list_icrc_payments: ActorMethod<[], Array<[IcrcPaymentKey, IcrcPayment]>>;
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
list_segments: ActorMethod<[ListSegmentsArgs], Array<[SegmentKey, Segment]>>;
reject_proposal: ActorMethod<[CommitProposal], null>;
set_account_config: ActorMethod<[SetAccountConfig], AccountConfig>;
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
Expand All @@ -529,6 +562,8 @@ export interface _SERVICE {
unset_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
withdraw_icp: ActorMethod<[WithdrawArgs], WithdrawResult>;
withdraw_icrc: ActorMethod<[WithdrawArgs], WithdrawResult>;
}
export declare const idlFactory: IDL.InterfaceFactory;
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
61 changes: 41 additions & 20 deletions cli/src/declarations/console.did
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
type AccessKey = record {
updated_at : nat64;
metadata : vec record { text; text };
kind : opt AccessKeyKind;
created_at : nat64;
scope : AccessKeyScope;
expires_at : opt nat64;
};
type AccessKeyKind = variant { Emulator; Automation };
type AccessKeyScope = variant { Write; Admin; Submit };
type Account = record {
updated_at : nat64;
credits : Tokens;
Expand All @@ -6,6 +16,12 @@ type Account = record {
owner : principal;
created_at : nat64;
};
type AccountConfig = record {
updated_at : opt nat64;
init_credits : Tokens;
created_at : opt nat64;
version : opt nat64;
};
type Account_1 = record { owner : principal; subaccount : opt blob };
type AssertMissionControlCenterArgs = record {
mission_control_id : principal;
Expand Down Expand Up @@ -70,16 +86,6 @@ type Config = record {
storage : StorageConfig;
};
type ConfigMaxMemorySize = record { stable : opt nat64; heap : opt nat64 };
type Controller = record {
updated_at : nat64;
metadata : vec record { text; text };
kind : opt ControllerKind;
created_at : nat64;
scope : ControllerScope;
expires_at : opt nat64;
};
type ControllerKind = variant { Emulator; Automation };
type ControllerScope = variant { Write; Admin; Submit };
type CreateMissionControlArgs = record { subnet_id : opt principal };
type CreateOrbiterArgs = record {
block_index : opt nat64;
Expand All @@ -94,6 +100,13 @@ type CreateSatelliteArgs = record {
name : opt text;
user : principal;
};
type CreateSegmentArgs = variant {
Ufo : CreateUfoArgs;
Orbiter : CreateOrbiterArgs;
MissionControl : CreateMissionControlArgs;
Satellite : CreateSatelliteArgs;
};
type CreateUfoArgs = record { subnet_id : opt principal; name : opt text };
type CustomDomain = record {
updated_at : nat64;
created_at : nat64;
Expand Down Expand Up @@ -304,26 +317,27 @@ type SegmentKey = record {
segment_id : principal;
segment_kind : StorableSegmentKind;
};
type SegmentKind = variant { Orbiter; MissionControl; Satellite };
type SegmentKind = variant { Ufo; Orbiter; MissionControl; Satellite };
type SegmentsDeploymentOptions = record {
orbiter : opt text;
mission_control_version : opt text;
satellite_version : opt text;
};
type SetAccessKey = record {
metadata : vec record { text; text };
kind : opt AccessKeyKind;
scope : AccessKeyScope;
expires_at : opt nat64;
};
type SetAccountConfig = record { init_credits : Tokens; version : opt nat64 };
type SetAuthenticationConfig = record {
openid : opt AuthenticationConfigOpenId;
version : opt nat64;
internet_identity : opt AuthenticationConfigInternetIdentity;
rules : opt AuthenticationRules;
};
type SetController = record {
metadata : vec record { text; text };
kind : opt ControllerKind;
scope : ControllerScope;
expires_at : opt nat64;
};
type SetControllersArgs = record {
controller : SetController;
controller : SetAccessKey;
controllers : vec principal;
};
type SetSegmentMetadataArgs = record {
Expand All @@ -346,7 +360,7 @@ type SetStorageConfig = record {
redirects : opt vec record { text; StorageConfigRedirect };
};
type SignedDelegation = record { signature : blob; delegation : Delegation };
type StorableSegmentKind = variant { Orbiter; Satellite };
type StorableSegmentKind = variant { Ufo; Orbiter; Satellite };
type StorageConfig = record {
iframe : opt StorageConfigIFrame;
updated_at : opt nat64;
Expand Down Expand Up @@ -397,6 +411,8 @@ type UploadChunk = record {
order_id : opt nat;
};
type UploadChunkResult = record { chunk_id : nat };
type WithdrawArgs = record { to : principal };
type WithdrawResult = record { block_index : nat64; amount : nat64 };
service : () -> {
add_credits : (principal, Tokens) -> ();
add_invitation_code : (text) -> ();
Expand All @@ -409,10 +425,12 @@ service : () -> {
create_mission_control : (CreateMissionControlArgs) -> (principal);
create_orbiter : (CreateOrbiterArgs) -> (principal);
create_satellite : (CreateSatelliteArgs) -> (principal);
create_segment : (CreateSegmentArgs) -> (principal);
del_controllers : (DeleteControllersArgs) -> ();
del_custom_domain : (text) -> ();
delete_proposal_assets : (DeleteProposalAssets) -> ();
get_account : () -> (opt Account) query;
get_account_config : () -> (opt AccountConfig) query;
get_auth_config : () -> (opt AuthenticationConfig) query;
get_config : () -> (Config) query;
get_create_orbiter_fee : (GetCreateCanisterFeeArgs) -> (opt Tokens) query;
Expand All @@ -435,7 +453,7 @@ service : () -> {
);
list_accounts : () -> (vec record { principal; Account }) query;
list_assets : (text, ListParams) -> (ListResults) query;
list_controllers : () -> (vec record { principal; Controller }) query;
list_controllers : () -> (vec record { principal; AccessKey }) query;
list_custom_domains : () -> (vec record { text; CustomDomain }) query;
list_icp_payments : () -> (vec record { nat64; IcpPayment }) query;
list_icrc_payments : () -> (vec record { IcrcPaymentKey; IcrcPayment }) query;
Expand All @@ -444,6 +462,7 @@ service : () -> {
vec record { SegmentKey; Segment },
) query;
reject_proposal : (CommitProposal) -> (null);
set_account_config : (SetAccountConfig) -> (AccountConfig);
set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig);
set_controllers : (SetControllersArgs) -> ();
set_custom_domain : (text, opt text) -> ();
Expand All @@ -457,4 +476,6 @@ service : () -> {
unset_many_segments : (vec UnsetSegmentsArgs) -> ();
unset_segment : (UnsetSegmentsArgs) -> ();
upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult);
withdraw_icp : (WithdrawArgs) -> (WithdrawResult);
withdraw_icrc : (WithdrawArgs) -> (WithdrawResult);
}
Loading
Loading