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
95 changes: 82 additions & 13 deletions cli/src/declarations/console.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export interface Account {
owner: Principal;
created_at: bigint;
}
export interface Account_1 {
owner: Principal;
subaccount: [] | [Uint8Array];
}
export interface AssertMissionControlCenterArgs {
mission_control_id: Principal;
user: Principal;
Expand Down Expand Up @@ -100,15 +104,20 @@ export interface Controller {
expires_at: [] | [bigint];
}
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
export interface CreateCanisterArgs {
export interface CreateMissionControlArgs {
subnet_id: [] | [Principal];
}
export interface CreateOrbiterArgs {
block_index: [] | [bigint];
subnet_id: [] | [Principal];
name: [] | [string];
user: Principal;
}
export interface CreateSatelliteArgs {
block_index: [] | [bigint];
subnet_id: [] | [Principal];
storage: [] | [InitStorageArgs];
name: [] | [string];
user: Principal;
}
export interface CustomDomain {
Expand All @@ -117,6 +126,9 @@ export interface CustomDomain {
version: [] | [bigint];
bn_id: [] | [string];
}
export interface CyclesTokens {
e12s: bigint;
}
export interface Delegation {
pubkey: Uint8Array;
targets: [] | [Array<Principal>];
Expand All @@ -128,6 +140,15 @@ export interface DeleteControllersArgs {
export interface DeleteProposalAssets {
proposal_ids: Array<bigint>;
}
export interface FactoryFee {
updated_at: bigint;
fee_cycles: CyclesTokens;
fee_icp: [] | [Tokens];
}
export interface FeesArgs {
fee_cycles: CyclesTokens;
fee_icp: [] | [Tokens];
}
export interface GetCreateCanisterFeeArgs {
user: Principal;
}
Expand Down Expand Up @@ -162,6 +183,25 @@ export interface HttpResponse {
streaming_strategy: [] | [StreamingStrategy];
status_code: number;
}
export interface IcpPayment {
status: PaymentStatus;
updated_at: bigint;
block_index_payment: bigint;
mission_control_id: [] | [Principal];
created_at: bigint;
block_index_refunded: [] | [bigint];
}
export interface IcrcPayment {
status: PaymentStatus;
updated_at: bigint;
created_at: bigint;
block_index_refunded: [] | [bigint];
purchaser: Account_1;
}
export interface IcrcPaymentKey {
block_index: bigint;
ledger_id: Principal;
}
export interface InitAssetKey {
token: [] | [string];
collection: string;
Expand Down Expand Up @@ -231,6 +271,10 @@ export interface ListResults {
items: Array<[string, AssetNoContent]>;
items_length: bigint;
}
export interface ListSegmentsArgs {
segment_id: [] | [Principal];
segment_type: [] | [SegmentType];
}
export type Memory = {Heap: null} | {Stable: null};
export interface OpenId {
provider: OpenIdProvider;
Expand Down Expand Up @@ -264,14 +308,6 @@ export interface OpenIdProviderDelegationConfig {
targets: [] | [Array<Principal>];
max_time_to_live: [] | [bigint];
}
export interface Payment {
status: PaymentStatus;
updated_at: bigint;
block_index_payment: bigint;
mission_control_id: [] | [Principal];
created_at: bigint;
block_index_refunded: [] | [bigint];
}
export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
export type PrepareDelegationError =
| {
Expand Down Expand Up @@ -315,7 +351,19 @@ export interface RateConfig {
}
export type Result = {Ok: Authentication} | {Err: AuthenticationError};
export type Result_1 = {Ok: SignedDelegation} | {Err: GetDelegationError};
export interface Segment {
updated_at: bigint;
metadata: Array<[string, string]>;
segment_id: Principal;
created_at: bigint;
}
export interface SegmentKey {
user: Principal;
segment_id: Principal;
segment_type: SegmentType;
}
export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
export type SegmentType = {Orbiter: null} | {Satellite: null};
export interface SegmentsDeploymentOptions {
orbiter: [] | [string];
mission_control_version: [] | [string];
Expand All @@ -336,6 +384,16 @@ export interface SetControllersArgs {
controller: SetController;
controllers: Array<Principal>;
}
export interface SetSegmentMetadataArgs {
metadata: Array<[string, string]>;
segment_id: Principal;
segment_type: SegmentType;
}
export interface SetSegmentsArgs {
metadata: [] | [Array<[string, string]>];
segment_id: Principal;
segment_type: SegmentType;
}
export interface SetStorageConfig {
iframe: [] | [StorageConfigIFrame];
rewrites: Array<[string, string]>;
Expand Down Expand Up @@ -393,6 +451,10 @@ export type TimestampMatcher =
export interface Tokens {
e8s: bigint;
}
export interface UnsetSegmentsArgs {
segment_id: Principal;
segment_type: SegmentType;
}
export interface UploadChunk {
content: Uint8Array;
batch_id: bigint;
Expand All @@ -410,7 +472,8 @@ export interface _SERVICE {
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
count_proposals: ActorMethod<[], bigint>;
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
create_mission_control: ActorMethod<[CreateMissionControlArgs], Principal>;
create_orbiter: ActorMethod<[CreateOrbiterArgs], Principal>;
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
del_custom_domain: ActorMethod<[string], undefined>;
Expand All @@ -422,6 +485,8 @@ export interface _SERVICE {
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
get_credits: ActorMethod<[], Tokens>;
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
get_fee: ActorMethod<[SegmentKind], FactoryFee>;
get_or_init_account: ActorMethod<[], Account>;
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
get_storage_config: ActorMethod<[], StorageConfig>;
http_request: ActorMethod<[HttpRequest], HttpResponse>;
Expand All @@ -435,20 +500,24 @@ export interface _SERVICE {
[Array<InitAssetKey>, bigint],
Array<[string, InitUploadResult]>
>;
init_user_mission_control_center: ActorMethod<[], Account>;
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
list_assets: ActorMethod<[string, ListParams], ListResults>;
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
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_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
set_segment: ActorMethod<[SetSegmentsArgs], Segment>;
set_segment_metadata: ActorMethod<[SetSegmentMetadataArgs], Segment>;
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
}
Expand Down
Loading