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
41 changes: 38 additions & 3 deletions packages/ic-client/src/declarations/console/console.did.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// @ts-nocheck

// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
// 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.

Expand All @@ -28,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 @@ -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,7 +382,11 @@ 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];
Expand All @@ -379,6 +398,10 @@ export interface SetAccessKey {
scope: AccessKeyScope;
expires_at: [] | [bigint];
}
export interface SetAccountConfig {
init_credits: Tokens;
version: [] | [bigint];
}
export interface SetAuthenticationConfig {
openid: [] | [AuthenticationConfigOpenId];
version: [] | [bigint];
Expand Down Expand Up @@ -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 Down Expand Up @@ -516,6 +548,7 @@ export interface _SERVICE {
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[];
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// @ts-nocheck

// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
// 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.

Expand Down Expand Up @@ -128,12 +128,28 @@ export const idlFactory = ({IDL}) => {
name: IDL.Opt(IDL.Text),
user: IDL.Principal
});
const CreateUfoArgs = IDL.Record({
subnet_id: IDL.Opt(IDL.Principal),
name: IDL.Opt(IDL.Text)
});
const CreateSegmentArgs = IDL.Variant({
Ufo: CreateUfoArgs,
Orbiter: CreateOrbiterArgs,
MissionControl: CreateMissionControlArgs,
Satellite: CreateSatelliteArgs
});
const DeleteControllersArgs = IDL.Record({
controllers: IDL.Vec(IDL.Principal)
});
const DeleteProposalAssets = IDL.Record({
proposal_ids: IDL.Vec(IDL.Nat)
});
const AccountConfig = IDL.Record({
updated_at: IDL.Opt(IDL.Nat64),
init_credits: Tokens,
created_at: IDL.Opt(IDL.Nat64),
version: IDL.Opt(IDL.Nat64)
});
const OpenIdAuthProviderDelegationConfig = IDL.Record({
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
max_time_to_live: IDL.Opt(IDL.Nat64)
Expand Down Expand Up @@ -224,6 +240,7 @@ export const idlFactory = ({IDL}) => {
Err: GetDelegationError
});
const SegmentKind = IDL.Variant({
Ufo: IDL.Null,
Orbiter: IDL.Null,
MissionControl: IDL.Null,
Satellite: IDL.Null
Expand Down Expand Up @@ -433,6 +450,7 @@ export const idlFactory = ({IDL}) => {
items_length: IDL.Nat64
});
const StorableSegmentKind = IDL.Variant({
Ufo: IDL.Null,
Orbiter: IDL.Null,
Satellite: IDL.Null
});
Expand All @@ -451,6 +469,10 @@ export const idlFactory = ({IDL}) => {
segment_id: IDL.Principal,
created_at: IDL.Nat64
});
const SetAccountConfig = IDL.Record({
init_credits: Tokens,
version: IDL.Opt(IDL.Nat64)
});
const SetAuthenticationConfig = IDL.Record({
openid: IDL.Opt(AuthenticationConfigOpenId),
version: IDL.Opt(IDL.Nat64),
Expand Down Expand Up @@ -500,6 +522,11 @@ export const idlFactory = ({IDL}) => {
order_id: IDL.Opt(IDL.Nat)
});
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
const WithdrawArgs = IDL.Record({to: IDL.Principal});
const WithdrawResult = IDL.Record({
block_index: IDL.Nat64,
amount: IDL.Nat64
});

return IDL.Service({
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
Expand All @@ -513,10 +540,12 @@ export const idlFactory = ({IDL}) => {
create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
create_segment: IDL.Func([CreateSegmentArgs], [IDL.Principal], []),
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
del_custom_domain: IDL.Func([IDL.Text], [], []),
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
get_account: IDL.Func([], [IDL.Opt(Account)], []),
get_account_config: IDL.Func([], [IDL.Opt(AccountConfig)], []),
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], []),
get_config: IDL.Func([], [Config], []),
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
Expand Down Expand Up @@ -550,6 +579,7 @@ export const idlFactory = ({IDL}) => {
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
list_segments: IDL.Func([ListSegmentsArgs], [IDL.Vec(IDL.Tuple(SegmentKey, Segment))], []),
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
set_account_config: IDL.Func([SetAccountConfig], [AccountConfig], []),
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
set_controllers: IDL.Func([SetControllersArgs], [], []),
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
Expand All @@ -562,7 +592,9 @@ export const idlFactory = ({IDL}) => {
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
withdraw_icp: IDL.Func([WithdrawArgs], [WithdrawResult], []),
withdraw_icrc: IDL.Func([WithdrawArgs], [WithdrawResult], [])
});
};

Expand Down
36 changes: 34 additions & 2 deletions packages/ic-client/src/declarations/console/console.factory.did.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// @ts-nocheck

// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
// 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.

Expand Down Expand Up @@ -128,12 +128,28 @@ export const idlFactory = ({IDL}) => {
name: IDL.Opt(IDL.Text),
user: IDL.Principal
});
const CreateUfoArgs = IDL.Record({
subnet_id: IDL.Opt(IDL.Principal),
name: IDL.Opt(IDL.Text)
});
const CreateSegmentArgs = IDL.Variant({
Ufo: CreateUfoArgs,
Orbiter: CreateOrbiterArgs,
MissionControl: CreateMissionControlArgs,
Satellite: CreateSatelliteArgs
});
const DeleteControllersArgs = IDL.Record({
controllers: IDL.Vec(IDL.Principal)
});
const DeleteProposalAssets = IDL.Record({
proposal_ids: IDL.Vec(IDL.Nat)
});
const AccountConfig = IDL.Record({
updated_at: IDL.Opt(IDL.Nat64),
init_credits: Tokens,
created_at: IDL.Opt(IDL.Nat64),
version: IDL.Opt(IDL.Nat64)
});
const OpenIdAuthProviderDelegationConfig = IDL.Record({
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
max_time_to_live: IDL.Opt(IDL.Nat64)
Expand Down Expand Up @@ -224,6 +240,7 @@ export const idlFactory = ({IDL}) => {
Err: GetDelegationError
});
const SegmentKind = IDL.Variant({
Ufo: IDL.Null,
Orbiter: IDL.Null,
MissionControl: IDL.Null,
Satellite: IDL.Null
Expand Down Expand Up @@ -433,6 +450,7 @@ export const idlFactory = ({IDL}) => {
items_length: IDL.Nat64
});
const StorableSegmentKind = IDL.Variant({
Ufo: IDL.Null,
Orbiter: IDL.Null,
Satellite: IDL.Null
});
Expand All @@ -451,6 +469,10 @@ export const idlFactory = ({IDL}) => {
segment_id: IDL.Principal,
created_at: IDL.Nat64
});
const SetAccountConfig = IDL.Record({
init_credits: Tokens,
version: IDL.Opt(IDL.Nat64)
});
const SetAuthenticationConfig = IDL.Record({
openid: IDL.Opt(AuthenticationConfigOpenId),
version: IDL.Opt(IDL.Nat64),
Expand Down Expand Up @@ -500,6 +522,11 @@ export const idlFactory = ({IDL}) => {
order_id: IDL.Opt(IDL.Nat)
});
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
const WithdrawArgs = IDL.Record({to: IDL.Principal});
const WithdrawResult = IDL.Record({
block_index: IDL.Nat64,
amount: IDL.Nat64
});

return IDL.Service({
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
Expand All @@ -513,10 +540,12 @@ export const idlFactory = ({IDL}) => {
create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
create_segment: IDL.Func([CreateSegmentArgs], [IDL.Principal], []),
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
del_custom_domain: IDL.Func([IDL.Text], [], []),
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
get_account_config: IDL.Func([], [IDL.Opt(AccountConfig)], ['query']),
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
get_config: IDL.Func([], [Config], ['query']),
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
Expand Down Expand Up @@ -554,6 +583,7 @@ export const idlFactory = ({IDL}) => {
['query']
),
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
set_account_config: IDL.Func([SetAccountConfig], [AccountConfig], []),
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
set_controllers: IDL.Func([SetControllersArgs], [], []),
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
Expand All @@ -566,7 +596,9 @@ export const idlFactory = ({IDL}) => {
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
withdraw_icp: IDL.Func([WithdrawArgs], [WithdrawResult], []),
withdraw_icrc: IDL.Func([WithdrawArgs], [WithdrawResult], [])
});
};

Expand Down
Loading
Loading