diff --git a/cli/src/declarations/console.d.ts b/cli/src/declarations/console.d.ts index eeb1dc5..94fa13f 100644 --- a/cli/src/declarations/console.d.ts +++ b/cli/src/declarations/console.d.ts @@ -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; @@ -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 { @@ -117,6 +126,9 @@ export interface CustomDomain { version: [] | [bigint]; bn_id: [] | [string]; } +export interface CyclesTokens { + e12s: bigint; +} export interface Delegation { pubkey: Uint8Array; targets: [] | [Array]; @@ -128,6 +140,15 @@ export interface DeleteControllersArgs { export interface DeleteProposalAssets { proposal_ids: Array; } +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; } @@ -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; @@ -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; @@ -264,14 +308,6 @@ export interface OpenIdProviderDelegationConfig { targets: [] | [Array]; 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 = | { @@ -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]; @@ -336,6 +384,16 @@ export interface SetControllersArgs { controller: SetController; controllers: Array; } +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]>; @@ -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; @@ -410,7 +472,8 @@ export interface _SERVICE { commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>; commit_proposal_many_assets_upload: ActorMethod<[Array], 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>; @@ -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>; @@ -435,20 +500,24 @@ export interface _SERVICE { [Array, 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>; } diff --git a/cli/src/declarations/console.did b/cli/src/declarations/console.did index eb1b20f..8a1fb5b 100644 --- a/cli/src/declarations/console.did +++ b/cli/src/declarations/console.did @@ -6,6 +6,7 @@ type Account = record { owner : principal; created_at : nat64; }; +type Account_1 = record { owner : principal; subaccount : opt blob }; type AssertMissionControlCenterArgs = record { mission_control_id : principal; user : principal; @@ -77,15 +78,18 @@ type Controller = record { expires_at : opt nat64; }; type ControllerScope = variant { Write; Admin; Submit }; -type CreateCanisterArgs = record { +type CreateMissionControlArgs = record { subnet_id : opt principal }; +type CreateOrbiterArgs = record { block_index : opt nat64; subnet_id : opt principal; + name : opt text; user : principal; }; type CreateSatelliteArgs = record { block_index : opt nat64; subnet_id : opt principal; storage : opt InitStorageArgs; + name : opt text; user : principal; }; type CustomDomain = record { @@ -94,6 +98,7 @@ type CustomDomain = record { version : opt nat64; bn_id : opt text; }; +type CyclesTokens = record { e12s : nat64 }; type Delegation = record { pubkey : blob; targets : opt vec principal; @@ -101,6 +106,12 @@ type Delegation = record { }; type DeleteControllersArgs = record { controllers : vec principal }; type DeleteProposalAssets = record { proposal_ids : vec nat }; +type FactoryFee = record { + updated_at : nat64; + fee_cycles : CyclesTokens; + fee_icp : opt Tokens; +}; +type FeesArgs = record { fee_cycles : CyclesTokens; fee_icp : opt Tokens }; type GetCreateCanisterFeeArgs = record { user : principal }; type GetDelegationArgs = variant { OpenId : OpenIdGetDelegationArgs }; type GetDelegationError = variant { @@ -135,6 +146,22 @@ type HttpResponse = record { streaming_strategy : opt StreamingStrategy; status_code : nat16; }; +type IcpPayment = record { + status : PaymentStatus; + updated_at : nat64; + block_index_payment : nat64; + mission_control_id : opt principal; + created_at : nat64; + block_index_refunded : opt nat64; +}; +type IcrcPayment = record { + status : PaymentStatus; + updated_at : nat64; + created_at : nat64; + block_index_refunded : opt nat64; + purchaser : Account_1; +}; +type IcrcPaymentKey = record { block_index : nat64; ledger_id : principal }; type InitAssetKey = record { token : opt text; collection : text; @@ -191,6 +218,10 @@ type ListResults = record { items : vec record { text; AssetNoContent }; items_length : nat64; }; +type ListSegmentsArgs = record { + segment_id : opt principal; + segment_type : opt SegmentType; +}; type Memory = variant { Heap; Stable }; type OpenId = record { provider : OpenIdProvider; data : OpenIdData }; type OpenIdData = record { @@ -221,14 +252,6 @@ type OpenIdProviderDelegationConfig = record { targets : opt vec principal; max_time_to_live : opt nat64; }; -type Payment = record { - status : PaymentStatus; - updated_at : nat64; - block_index_payment : nat64; - mission_control_id : opt principal; - created_at : nat64; - block_index_refunded : opt nat64; -}; type PaymentStatus = variant { Refunded; Acknowledged; Completed }; type PrepareDelegationError = variant { JwtFindProvider : JwtFindProviderError; @@ -265,7 +288,19 @@ type Provider = variant { InternetIdentity; OpenId : OpenId }; type RateConfig = record { max_tokens : nat64; time_per_token_ns : nat64 }; type Result = variant { Ok : Authentication; Err : AuthenticationError }; type Result_1 = variant { Ok : SignedDelegation; Err : GetDelegationError }; +type Segment = record { + updated_at : nat64; + metadata : vec record { text; text }; + segment_id : principal; + created_at : nat64; +}; +type SegmentKey = record { + user : principal; + segment_id : principal; + segment_type : SegmentType; +}; type SegmentKind = variant { Orbiter; MissionControl; Satellite }; +type SegmentType = variant { Orbiter; Satellite }; type SegmentsDeploymentOptions = record { orbiter : opt text; mission_control_version : opt text; @@ -286,6 +321,16 @@ type SetControllersArgs = record { controller : SetController; controllers : vec principal; }; +type SetSegmentMetadataArgs = record { + metadata : vec record { text; text }; + segment_id : principal; + segment_type : SegmentType; +}; +type SetSegmentsArgs = record { + metadata : opt vec record { text; text }; + segment_id : principal; + segment_type : SegmentType; +}; type SetStorageConfig = record { iframe : opt StorageConfigIFrame; rewrites : vec record { text; text }; @@ -336,6 +381,10 @@ type TimestampMatcher = variant { LessThan : nat64; }; type Tokens = record { e8s : nat64 }; +type UnsetSegmentsArgs = record { + segment_id : principal; + segment_type : SegmentType; +}; type UploadChunk = record { content : blob; batch_id : nat; @@ -351,7 +400,8 @@ service : () -> { commit_proposal_asset_upload : (CommitBatch) -> (); commit_proposal_many_assets_upload : (vec CommitBatch) -> (); count_proposals : () -> (nat64) query; - create_orbiter : (CreateCanisterArgs) -> (principal); + create_mission_control : (CreateMissionControlArgs) -> (principal); + create_orbiter : (CreateOrbiterArgs) -> (principal); create_satellite : (CreateSatelliteArgs) -> (principal); del_controllers : (DeleteControllersArgs) -> (); del_custom_domain : (text) -> (); @@ -363,6 +413,8 @@ service : () -> { get_create_satellite_fee : (GetCreateCanisterFeeArgs) -> (opt Tokens) query; get_credits : () -> (Tokens) query; get_delegation : (GetDelegationArgs) -> (Result_1) query; + get_fee : (SegmentKind) -> (FactoryFee) query; + get_or_init_account : () -> (Account); get_proposal : (nat) -> (opt Proposal) query; get_storage_config : () -> (StorageConfig) query; http_request : (HttpRequest) -> (HttpResponse) query; @@ -374,20 +426,26 @@ service : () -> { init_proposal_many_assets_upload : (vec InitAssetKey, nat) -> ( vec record { text; InitUploadResult }, ); - 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_icp_payments : () -> (vec record { nat64; IcpPayment }) query; + list_icrc_payments : () -> (vec record { IcrcPaymentKey; IcrcPayment }) query; list_proposals : (ListProposalsParams) -> (ListProposalResults) query; + list_segments : (ListSegmentsArgs) -> ( + vec record { SegmentKey; Segment }, + ) query; reject_proposal : (CommitProposal) -> (null); set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig); set_controllers : (SetControllersArgs) -> (); set_custom_domain : (text, opt text) -> (); - set_fee : (SegmentKind, Tokens) -> (); + set_fee : (SegmentKind, FeesArgs) -> (); + set_segment : (SetSegmentsArgs) -> (Segment); + set_segment_metadata : (SetSegmentMetadataArgs) -> (Segment); set_storage_config : (SetStorageConfig) -> (StorageConfig); submit_proposal : (nat) -> (nat, Proposal); + unset_segment : (UnsetSegmentsArgs) -> (); update_rate_config : (SegmentKind, RateConfig) -> (); upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult); } diff --git a/cli/src/declarations/console.idl.js b/cli/src/declarations/console.idl.js index d33bcd9..9ba6df5 100644 --- a/cli/src/declarations/console.idl.js +++ b/cli/src/declarations/console.idl.js @@ -100,9 +100,13 @@ export const idlFactory = ({IDL}) => { headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)), chunk_ids: IDL.Vec(IDL.Nat) }); - const CreateCanisterArgs = IDL.Record({ + const CreateMissionControlArgs = IDL.Record({ + subnet_id: IDL.Opt(IDL.Principal) + }); + const CreateOrbiterArgs = IDL.Record({ block_index: IDL.Opt(IDL.Nat64), subnet_id: IDL.Opt(IDL.Principal), + name: IDL.Opt(IDL.Text), user: IDL.Principal }); const InitStorageMemory = IDL.Variant({ @@ -116,6 +120,7 @@ export const idlFactory = ({IDL}) => { block_index: IDL.Opt(IDL.Nat64), subnet_id: IDL.Opt(IDL.Principal), storage: IDL.Opt(InitStorageArgs), + name: IDL.Opt(IDL.Text), user: IDL.Principal }); const DeleteControllersArgs = IDL.Record({ @@ -212,6 +217,17 @@ export const idlFactory = ({IDL}) => { Ok: SignedDelegation, Err: GetDelegationError }); + const SegmentKind = IDL.Variant({ + Orbiter: IDL.Null, + MissionControl: IDL.Null, + Satellite: IDL.Null + }); + const CyclesTokens = IDL.Record({e12s: IDL.Nat64}); + const FactoryFee = IDL.Record({ + updated_at: IDL.Nat64, + fee_cycles: CyclesTokens, + fee_icp: IDL.Opt(Tokens) + }); const ProposalStatus = IDL.Variant({ Initialized: IDL.Null, Failed: IDL.Null, @@ -363,7 +379,7 @@ export const idlFactory = ({IDL}) => { Acknowledged: IDL.Null, Completed: IDL.Null }); - const Payment = IDL.Record({ + const IcpPayment = IDL.Record({ status: PaymentStatus, updated_at: IDL.Nat64, block_index_payment: IDL.Nat64, @@ -371,6 +387,21 @@ export const idlFactory = ({IDL}) => { created_at: IDL.Nat64, block_index_refunded: IDL.Opt(IDL.Nat64) }); + const IcrcPaymentKey = IDL.Record({ + block_index: IDL.Nat64, + ledger_id: IDL.Principal + }); + const Account_1 = IDL.Record({ + owner: IDL.Principal, + subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)) + }); + const IcrcPayment = IDL.Record({ + status: PaymentStatus, + updated_at: IDL.Nat64, + created_at: IDL.Nat64, + block_index_refunded: IDL.Opt(IDL.Nat64), + purchaser: Account_1 + }); const ListProposalsOrder = IDL.Record({desc: IDL.Bool}); const ListProposalsPaginate = IDL.Record({ start_after: IDL.Opt(IDL.Nat), @@ -386,6 +417,25 @@ export const idlFactory = ({IDL}) => { items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)), items_length: IDL.Nat64 }); + const SegmentType = IDL.Variant({ + Orbiter: IDL.Null, + Satellite: IDL.Null + }); + const ListSegmentsArgs = IDL.Record({ + segment_id: IDL.Opt(IDL.Principal), + segment_type: IDL.Opt(SegmentType) + }); + const SegmentKey = IDL.Record({ + user: IDL.Principal, + segment_id: IDL.Principal, + segment_type: SegmentType + }); + const Segment = IDL.Record({ + updated_at: IDL.Nat64, + metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)), + segment_id: IDL.Principal, + created_at: IDL.Nat64 + }); const SetAuthenticationConfig = IDL.Record({ openid: IDL.Opt(AuthenticationConfigOpenId), version: IDL.Opt(IDL.Nat64), @@ -401,10 +451,19 @@ export const idlFactory = ({IDL}) => { controller: SetController, controllers: IDL.Vec(IDL.Principal) }); - const SegmentKind = IDL.Variant({ - Orbiter: IDL.Null, - MissionControl: IDL.Null, - Satellite: IDL.Null + const FeesArgs = IDL.Record({ + fee_cycles: CyclesTokens, + fee_icp: IDL.Opt(Tokens) + }); + const SetSegmentsArgs = IDL.Record({ + metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))), + segment_id: IDL.Principal, + segment_type: SegmentType + }); + const SetSegmentMetadataArgs = IDL.Record({ + metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)), + segment_id: IDL.Principal, + segment_type: SegmentType }); const SetStorageConfig = IDL.Record({ iframe: IDL.Opt(StorageConfigIFrame), @@ -415,6 +474,10 @@ export const idlFactory = ({IDL}) => { raw_access: IDL.Opt(StorageConfigRawAccess), redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect))) }); + const UnsetSegmentsArgs = IDL.Record({ + segment_id: IDL.Principal, + segment_type: SegmentType + }); const RateConfig = IDL.Record({ max_tokens: IDL.Nat64, time_per_token_ns: IDL.Nat64 @@ -435,7 +498,8 @@ export const idlFactory = ({IDL}) => { commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []), commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []), count_proposals: IDL.Func([], [IDL.Nat64], ['query']), - create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []), + create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []), + create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []), create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []), del_controllers: IDL.Func([DeleteControllersArgs], [], []), del_custom_domain: IDL.Func([IDL.Text], [], []), @@ -447,6 +511,8 @@ export const idlFactory = ({IDL}) => { get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']), get_credits: IDL.Func([], [Tokens], ['query']), get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']), + get_fee: IDL.Func([SegmentKind], [FactoryFee], ['query']), + get_or_init_account: IDL.Func([], [Account], []), get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']), get_storage_config: IDL.Func([], [StorageConfig], ['query']), http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']), @@ -462,20 +528,28 @@ export const idlFactory = ({IDL}) => { [IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))], [] ), - 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_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], ['query']), + list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], ['query']), list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']), + list_segments: IDL.Func( + [ListSegmentsArgs], + [IDL.Vec(IDL.Tuple(SegmentKey, Segment))], + ['query'] + ), reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []), set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []), set_controllers: IDL.Func([SetControllersArgs], [], []), set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []), - set_fee: IDL.Func([SegmentKind, Tokens], [], []), + set_fee: IDL.Func([SegmentKind, FeesArgs], [], []), + set_segment: IDL.Func([SetSegmentsArgs], [Segment], []), + set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []), set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []), submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []), + unset_segment: IDL.Func([UnsetSegmentsArgs], [], []), update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []), upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []) }); diff --git a/cli/src/declarations/observatory.d.ts b/cli/src/declarations/observatory.d.ts index 7dcc210..b50dc96 100644 --- a/cli/src/declarations/observatory.d.ts +++ b/cli/src/declarations/observatory.d.ts @@ -131,6 +131,7 @@ export interface _SERVICE { del_controllers: ActorMethod<[DeleteControllersArgs], undefined>; get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>; get_openid_certificate: ActorMethod<[GetOpenIdCertificateArgs], [] | [OpenIdCertificate]>; + is_openid_monitoring_enabled: ActorMethod<[], boolean>; list_controllers: ActorMethod<[], Array<[Principal, Controller]>>; notify: ActorMethod<[NotifyArgs], undefined>; ping: ActorMethod<[NotifyArgs], undefined>; diff --git a/cli/src/declarations/observatory.did b/cli/src/declarations/observatory.did index af48d2f..494d3b5 100644 --- a/cli/src/declarations/observatory.did +++ b/cli/src/declarations/observatory.did @@ -92,6 +92,7 @@ service : () -> { get_openid_certificate : (GetOpenIdCertificateArgs) -> ( opt OpenIdCertificate, ); + is_openid_monitoring_enabled : () -> (bool); list_controllers : () -> (vec record { principal; Controller }) query; notify : (NotifyArgs) -> (); ping : (NotifyArgs) -> (); diff --git a/cli/src/declarations/observatory.idl.js b/cli/src/declarations/observatory.idl.js index 02f9b9b..54e3b64 100644 --- a/cli/src/declarations/observatory.idl.js +++ b/cli/src/declarations/observatory.idl.js @@ -129,6 +129,7 @@ export const idlFactory = ({IDL}) => { del_controllers: IDL.Func([DeleteControllersArgs], [], []), get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']), get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []), + is_openid_monitoring_enabled: IDL.Func([], [IDL.Bool], []), list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']), notify: IDL.Func([NotifyArgs], [], []), ping: IDL.Func([NotifyArgs], [], []),