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
24 changes: 12 additions & 12 deletions cli/src/declarations/console.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ 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 Account {
updated_at: bigint;
credits: Tokens;
mission_control_id: [] | [Principal];
provider: [] | [Provider];
owner: Principal;
created_at: bigint;
}
export interface AssertMissionControlCenterArgs {
mission_control_id: Principal;
user: Principal;
Expand Down Expand Up @@ -40,7 +48,7 @@ export interface AssetsUpgradeOptions {
}
export interface Authentication {
delegation: PreparedDelegation;
mission_control: MissionControl;
account: Account;
}
export type AuthenticationArgs = {OpenId: OpenIdPrepareDelegationArgs};
export interface AuthenticationConfig {
Expand Down Expand Up @@ -224,14 +232,6 @@ export interface ListResults {
items_length: bigint;
}
export type Memory = {Heap: null} | {Stable: null};
export interface MissionControl {
updated_at: bigint;
credits: Tokens;
mission_control_id: [] | [Principal];
provider: [] | [Provider];
owner: Principal;
created_at: bigint;
}
export interface OpenId {
provider: OpenIdProvider;
data: OpenIdData;
Expand Down Expand Up @@ -415,6 +415,7 @@ export interface _SERVICE {
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
del_custom_domain: ActorMethod<[string], undefined>;
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
get_account: ActorMethod<[], [] | [Account]>;
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
get_config: ActorMethod<[], Config>;
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
Expand All @@ -423,7 +424,6 @@ export interface _SERVICE {
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
get_storage_config: ActorMethod<[], StorageConfig>;
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
http_request: ActorMethod<[HttpRequest], HttpResponse>;
http_request_streaming_callback: ActorMethod<
[StreamingCallbackToken],
Expand All @@ -435,13 +435,13 @@ export interface _SERVICE {
[Array<InitAssetKey>, bigint],
Array<[string, InitUploadResult]>
>;
init_user_mission_control_center: ActorMethod<[], MissionControl>;
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_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
reject_proposal: ActorMethod<[CommitProposal], null>;
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
Expand Down
26 changes: 12 additions & 14 deletions cli/src/declarations/console.did
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
type Account = record {
updated_at : nat64;
credits : Tokens;
mission_control_id : opt principal;
provider : opt Provider;
owner : principal;
created_at : nat64;
};
type AssertMissionControlCenterArgs = record {
mission_control_id : principal;
user : principal;
Expand Down Expand Up @@ -26,7 +34,7 @@ type AssetNoContent = record {
type AssetsUpgradeOptions = record { clear_existing_assets : opt bool };
type Authentication = record {
delegation : PreparedDelegation;
mission_control : MissionControl;
account : Account;
};
type AuthenticationArgs = variant { OpenId : OpenIdPrepareDelegationArgs };
type AuthenticationConfig = record {
Expand Down Expand Up @@ -184,14 +192,6 @@ type ListResults = record {
items_length : nat64;
};
type Memory = variant { Heap; Stable };
type MissionControl = record {
updated_at : nat64;
credits : Tokens;
mission_control_id : opt principal;
provider : opt Provider;
owner : principal;
created_at : nat64;
};
type OpenId = record { provider : OpenIdProvider; data : OpenIdData };
type OpenIdData = record {
name : opt text;
Expand Down Expand Up @@ -356,6 +356,7 @@ service : () -> {
del_controllers : (DeleteControllersArgs) -> ();
del_custom_domain : (text) -> ();
delete_proposal_assets : (DeleteProposalAssets) -> ();
get_account : () -> (opt Account) query;
get_auth_config : () -> (opt AuthenticationConfig) query;
get_config : () -> (Config) query;
get_create_orbiter_fee : (GetCreateCanisterFeeArgs) -> (opt Tokens) query;
Expand All @@ -364,7 +365,6 @@ service : () -> {
get_delegation : (GetDelegationArgs) -> (Result_1) query;
get_proposal : (nat) -> (opt Proposal) query;
get_storage_config : () -> (StorageConfig) query;
get_user_mission_control_center : () -> (opt MissionControl) query;
http_request : (HttpRequest) -> (HttpResponse) query;
http_request_streaming_callback : (StreamingCallbackToken) -> (
StreamingCallbackHttpResponse,
Expand All @@ -374,15 +374,13 @@ service : () -> {
init_proposal_many_assets_upload : (vec InitAssetKey, nat) -> (
vec record { text; InitUploadResult },
);
init_user_mission_control_center : () -> (MissionControl);
init_user_mission_control_center : () -> (Account);
list_accounts : () -> (vec record { principal; Account }) query;
list_assets : (text, ListParams) -> (ListResults) query;
list_controllers : () -> (vec record { principal; Controller }) query;
list_custom_domains : () -> (vec record { text; CustomDomain }) query;
list_payments : () -> (vec record { nat64; Payment }) query;
list_proposals : (ListProposalsParams) -> (ListProposalResults) query;
list_user_mission_control_centers : () -> (
vec record { principal; MissionControl },
) query;
reject_proposal : (CommitProposal) -> (null);
set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig);
set_controllers : (SetControllersArgs) -> ();
Expand Down
14 changes: 5 additions & 9 deletions cli/src/declarations/console.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const idlFactory = ({IDL}) => {
InternetIdentity: IDL.Null,
OpenId: OpenId
});
const MissionControl = IDL.Record({
const Account = IDL.Record({
updated_at: IDL.Nat64,
credits: Tokens,
mission_control_id: IDL.Opt(IDL.Principal),
Expand All @@ -51,7 +51,7 @@ export const idlFactory = ({IDL}) => {
});
const Authentication = IDL.Record({
delegation: PreparedDelegation,
mission_control: MissionControl
account: Account
});
const JwtFindProviderError = IDL.Variant({
BadClaim: IDL.Text,
Expand Down Expand Up @@ -440,6 +440,7 @@ export const idlFactory = ({IDL}) => {
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_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 All @@ -448,7 +449,6 @@ export const idlFactory = ({IDL}) => {
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
http_request_streaming_callback: IDL.Func(
[StreamingCallbackToken],
Expand All @@ -462,17 +462,13 @@ export const idlFactory = ({IDL}) => {
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
[]
),
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
init_user_mission_control_center: IDL.Func([], [Account], []),
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
list_user_mission_control_centers: IDL.Func(
[],
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
['query']
),
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
set_controllers: IDL.Func([SetControllersArgs], [], []),
Expand Down
4 changes: 0 additions & 4 deletions cli/src/declarations/mission_control.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ export interface User {
config: [] | [Config];
}
export interface _SERVICE {
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
create_satellite: ActorMethod<[string], Satellite>;
Expand All @@ -232,8 +230,6 @@ export interface _SERVICE {
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
set_config: ActorMethod<[[] | [Config]], undefined>;
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
Expand Down
4 changes: 0 additions & 4 deletions cli/src/declarations/mission_control.did
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ type User = record {
config : opt Config;
};
service : (InitMissionControlArgs) -> {
add_mission_control_controllers : (vec principal) -> ();
add_satellites_controllers : (vec principal, vec principal) -> ();
create_orbiter : (opt text) -> (Orbiter);
create_orbiter_with_config : (CreateCanisterConfig) -> (Orbiter);
create_satellite : (text) -> (Satellite);
Expand All @@ -188,8 +186,6 @@ service : (InitMissionControlArgs) -> {
) query;
list_orbiters : () -> (vec record { principal; Orbiter }) query;
list_satellites : () -> (vec record { principal; Satellite }) query;
remove_mission_control_controllers : (vec principal) -> ();
remove_satellites_controllers : (vec principal, vec principal) -> ();
set_config : (opt Config) -> ();
set_metadata : (vec record { text; text }) -> ();
set_mission_control_controllers : (vec principal, SetController) -> ();
Expand Down
8 changes: 0 additions & 8 deletions cli/src/declarations/mission_control.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ export const idlFactory = ({IDL}) => {
});

return IDL.Service({
add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
create_satellite: IDL.Func([IDL.Text], [Satellite], []),
Expand Down Expand Up @@ -234,12 +232,6 @@ export const idlFactory = ({IDL}) => {
),
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
remove_satellites_controllers: IDL.Func(
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
[],
[]
),
set_config: IDL.Func([IDL.Opt(Config)], [], []),
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
Expand Down
6 changes: 6 additions & 0 deletions cli/src/declarations/observatory.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export interface OpenIdCertificate {
version: [] | [bigint];
}
export type OpenIdProvider = {Google: null};
export interface RateConfig {
max_tokens: bigint;
time_per_token_ns: bigint;
}
export type RateKind = {OpenIdCertificateRequests: null};
export interface Segment {
id: Principal;
metadata: [] | [Array<[string, string]>];
Expand All @@ -133,6 +138,7 @@ export interface _SERVICE {
set_env: ActorMethod<[Env], undefined>;
start_openid_monitoring: ActorMethod<[], undefined>;
stop_openid_monitoring: ActorMethod<[], undefined>;
update_rate_config: ActorMethod<[RateKind, RateConfig], undefined>;
}
export declare const idlFactory: IDL.InterfaceFactory;
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
5 changes: 4 additions & 1 deletion cli/src/declarations/observatory.did
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ type OpenIdCertificate = record {
version : opt nat64;
};
type OpenIdProvider = variant { Google };
type RateConfig = record { max_tokens : nat64; time_per_token_ns : nat64 };
type RateKind = variant { OpenIdCertificateRequests };
type Segment = record {
id : principal;
metadata : opt vec record { text; text };
Expand All @@ -89,12 +91,13 @@ service : () -> {
get_notify_status : (GetNotifications) -> (NotifyStatus) query;
get_openid_certificate : (GetOpenIdCertificateArgs) -> (
opt OpenIdCertificate,
) query;
);
list_controllers : () -> (vec record { principal; Controller }) query;
notify : (NotifyArgs) -> ();
ping : (NotifyArgs) -> ();
set_controllers : (SetControllersArgs) -> ();
set_env : (Env) -> ();
start_openid_monitoring : () -> ();
stop_openid_monitoring : () -> ();
update_rate_config : (RateKind, RateConfig) -> ();
}
14 changes: 8 additions & 6 deletions cli/src/declarations/observatory.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,24 @@ export const idlFactory = ({IDL}) => {
controllers: IDL.Vec(IDL.Principal)
});
const Env = IDL.Record({email_api_key: IDL.Opt(IDL.Text)});
const RateKind = IDL.Variant({OpenIdCertificateRequests: IDL.Null});
const RateConfig = IDL.Record({
max_tokens: IDL.Nat64,
time_per_token_ns: IDL.Nat64
});

return IDL.Service({
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']),
get_openid_certificate: IDL.Func(
[GetOpenIdCertificateArgs],
[IDL.Opt(OpenIdCertificate)],
['query']
),
get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
notify: IDL.Func([NotifyArgs], [], []),
ping: IDL.Func([NotifyArgs], [], []),
set_controllers: IDL.Func([SetControllersArgs], [], []),
set_env: IDL.Func([Env], [], []),
start_openid_monitoring: IDL.Func([], [], []),
stop_openid_monitoring: IDL.Func([], [], [])
stop_openid_monitoring: IDL.Func([], [], []),
update_rate_config: IDL.Func([RateKind, RateConfig], [], [])
});
};

Expand Down
3 changes: 3 additions & 0 deletions cli/src/declarations/orbiter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export interface HttpResponse {
upgrade: [] | [boolean];
status_code: number;
}
export interface InitOrbiterArgs {
controllers: Array<Principal>;
}
export interface MemorySize {
stable: bigint;
heap: bigint;
Expand Down
3 changes: 2 additions & 1 deletion cli/src/declarations/orbiter.did
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type HttpResponse = record {
upgrade : opt bool;
status_code : nat16;
};
type InitOrbiterArgs = record { controllers : vec principal };
type MemorySize = record { stable : nat64; heap : nat64 };
type NavigationType = variant {
Navigate;
Expand Down Expand Up @@ -210,7 +211,7 @@ type WebVitalsMetric = record {
navigation_type : opt NavigationType;
delta : float64;
};
service : () -> {
service : (InitOrbiterArgs) -> {
del_controllers : (DeleteControllersArgs) -> (
vec record { principal; Controller },
);
Expand Down
9 changes: 8 additions & 1 deletion cli/src/declarations/orbiter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.

export const idlFactory = ({IDL}) => {
const InitOrbiterArgs = IDL.Record({
controllers: IDL.Vec(IDL.Principal)
});
const DeleteControllersArgs = IDL.Record({
controllers: IDL.Vec(IDL.Principal)
});
Expand Down Expand Up @@ -324,5 +327,9 @@ export const idlFactory = ({IDL}) => {
};

export const init = ({IDL}) => {
return [];
const InitOrbiterArgs = IDL.Record({
controllers: IDL.Vec(IDL.Principal)
});

return [InitOrbiterArgs];
};
1 change: 1 addition & 0 deletions cli/src/declarations/satellite.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ export interface _SERVICE {
list_rules: ActorMethod<[CollectionType, ListRulesParams], ListRulesResults>;
memory_size: ActorMethod<[], MemorySize>;
reject_proposal: ActorMethod<[CommitProposal], null>;
set_asset_token: ActorMethod<[string, string, [] | [string]], undefined>;
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
Expand Down
1 change: 1 addition & 0 deletions cli/src/declarations/satellite.did
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ service : (InitSatelliteArgs) -> {
list_rules : (CollectionType, ListRulesParams) -> (ListRulesResults) query;
memory_size : () -> (MemorySize) query;
reject_proposal : (CommitProposal) -> (null);
set_asset_token : (text, text, opt text) -> ();
set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig);
set_controllers : (SetControllersArgs) -> (
vec record { principal; Controller },
Expand Down
1 change: 1 addition & 0 deletions cli/src/declarations/satellite.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ export const idlFactory = ({IDL}) => {
list_rules: IDL.Func([CollectionType, ListRulesParams], [ListRulesResults], ['query']),
memory_size: IDL.Func([], [MemorySize], ['query']),
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
set_asset_token: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [], []),
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
set_controllers: IDL.Func(
[SetControllersArgs],
Expand Down