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
17 changes: 10 additions & 7 deletions cli/src/declarations/console.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export interface ListResults {
}
export interface ListSegmentsArgs {
segment_id: [] | [Principal];
segment_type: [] | [SegmentType];
segment_kind: [] | [StorableSegmentKind];
}
export type Memory = {Heap: null} | {Stable: null};
export interface OpenId {
Expand Down Expand Up @@ -360,10 +360,9 @@ export interface Segment {
export interface SegmentKey {
user: Principal;
segment_id: Principal;
segment_type: SegmentType;
segment_kind: StorableSegmentKind;
}
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 @@ -387,12 +386,12 @@ export interface SetControllersArgs {
export interface SetSegmentMetadataArgs {
metadata: Array<[string, string]>;
segment_id: Principal;
segment_type: SegmentType;
segment_kind: StorableSegmentKind;
}
export interface SetSegmentsArgs {
metadata: [] | [Array<[string, string]>];
segment_id: Principal;
segment_type: SegmentType;
segment_kind: StorableSegmentKind;
}
export interface SetStorageConfig {
iframe: [] | [StorageConfigIFrame];
Expand All @@ -407,6 +406,7 @@ export interface SignedDelegation {
signature: Uint8Array;
delegation: Delegation;
}
export type StorableSegmentKind = {Orbiter: null} | {Satellite: null};
export interface StorageConfig {
iframe: [] | [StorageConfigIFrame];
updated_at: [] | [bigint];
Expand Down Expand Up @@ -453,7 +453,7 @@ export interface Tokens {
}
export interface UnsetSegmentsArgs {
segment_id: Principal;
segment_type: SegmentType;
segment_kind: StorableSegmentKind;
}
export interface UploadChunk {
content: Uint8Array;
Expand Down Expand Up @@ -488,6 +488,7 @@ export interface _SERVICE {
get_fee: ActorMethod<[SegmentKind], FactoryFee>;
get_or_init_account: ActorMethod<[], Account>;
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
get_rate_config: ActorMethod<[SegmentKind], RateConfig>;
get_storage_config: ActorMethod<[], StorageConfig>;
http_request: ActorMethod<[HttpRequest], HttpResponse>;
http_request_streaming_callback: ActorMethod<
Expand All @@ -513,12 +514,14 @@ export interface _SERVICE {
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
set_many_segments: ActorMethod<[Array<SetSegmentsArgs>], Array<Segment>>;
set_rate_config: ActorMethod<[SegmentKind, RateConfig], 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_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
}
export declare const idlFactory: IDL.InterfaceFactory;
Expand Down
17 changes: 10 additions & 7 deletions cli/src/declarations/console.did
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ type ListResults = record {
};
type ListSegmentsArgs = record {
segment_id : opt principal;
segment_type : opt SegmentType;
segment_kind : opt StorableSegmentKind;
};
type Memory = variant { Heap; Stable };
type OpenId = record { provider : OpenIdProvider; data : OpenIdData };
Expand Down Expand Up @@ -297,10 +297,9 @@ type Segment = record {
type SegmentKey = record {
user : principal;
segment_id : principal;
segment_type : SegmentType;
segment_kind : StorableSegmentKind;
};
type SegmentKind = variant { Orbiter; MissionControl; Satellite };
type SegmentType = variant { Orbiter; Satellite };
type SegmentsDeploymentOptions = record {
orbiter : opt text;
mission_control_version : opt text;
Expand All @@ -324,12 +323,12 @@ type SetControllersArgs = record {
type SetSegmentMetadataArgs = record {
metadata : vec record { text; text };
segment_id : principal;
segment_type : SegmentType;
segment_kind : StorableSegmentKind;
};
type SetSegmentsArgs = record {
metadata : opt vec record { text; text };
segment_id : principal;
segment_type : SegmentType;
segment_kind : StorableSegmentKind;
};
type SetStorageConfig = record {
iframe : opt StorageConfigIFrame;
Expand All @@ -341,6 +340,7 @@ type SetStorageConfig = record {
redirects : opt vec record { text; StorageConfigRedirect };
};
type SignedDelegation = record { signature : blob; delegation : Delegation };
type StorableSegmentKind = variant { Orbiter; Satellite };
type StorageConfig = record {
iframe : opt StorageConfigIFrame;
updated_at : opt nat64;
Expand Down Expand Up @@ -383,7 +383,7 @@ type TimestampMatcher = variant {
type Tokens = record { e8s : nat64 };
type UnsetSegmentsArgs = record {
segment_id : principal;
segment_type : SegmentType;
segment_kind : StorableSegmentKind;
};
type UploadChunk = record {
content : blob;
Expand Down Expand Up @@ -416,6 +416,7 @@ service : () -> {
get_fee : (SegmentKind) -> (FactoryFee) query;
get_or_init_account : () -> (Account);
get_proposal : (nat) -> (opt Proposal) query;
get_rate_config : (SegmentKind) -> (RateConfig) query;
get_storage_config : () -> (StorageConfig) query;
http_request : (HttpRequest) -> (HttpResponse) query;
http_request_streaming_callback : (StreamingCallbackToken) -> (
Expand All @@ -441,11 +442,13 @@ service : () -> {
set_controllers : (SetControllersArgs) -> ();
set_custom_domain : (text, opt text) -> ();
set_fee : (SegmentKind, FeesArgs) -> ();
set_many_segments : (vec SetSegmentsArgs) -> (vec Segment);
set_rate_config : (SegmentKind, RateConfig) -> ();
set_segment : (SetSegmentsArgs) -> (Segment);
set_segment_metadata : (SetSegmentMetadataArgs) -> (Segment);
set_storage_config : (SetStorageConfig) -> (StorageConfig);
submit_proposal : (nat) -> (nat, Proposal);
unset_many_segments : (vec UnsetSegmentsArgs) -> ();
unset_segment : (UnsetSegmentsArgs) -> ();
update_rate_config : (SegmentKind, RateConfig) -> ();
upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult);
}
25 changes: 14 additions & 11 deletions cli/src/declarations/console.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ export const idlFactory = ({IDL}) => {
version: IDL.Opt(IDL.Nat64),
proposal_type: ProposalType
});
const RateConfig = IDL.Record({
max_tokens: IDL.Nat64,
time_per_token_ns: IDL.Nat64
});
const HttpRequest = IDL.Record({
url: IDL.Text,
method: IDL.Text,
Expand Down Expand Up @@ -417,18 +421,18 @@ export const idlFactory = ({IDL}) => {
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
items_length: IDL.Nat64
});
const SegmentType = IDL.Variant({
const StorableSegmentKind = IDL.Variant({
Orbiter: IDL.Null,
Satellite: IDL.Null
});
const ListSegmentsArgs = IDL.Record({
segment_id: IDL.Opt(IDL.Principal),
segment_type: IDL.Opt(SegmentType)
segment_kind: IDL.Opt(StorableSegmentKind)
});
const SegmentKey = IDL.Record({
user: IDL.Principal,
segment_id: IDL.Principal,
segment_type: SegmentType
segment_kind: StorableSegmentKind
});
const Segment = IDL.Record({
updated_at: IDL.Nat64,
Expand Down Expand Up @@ -458,12 +462,12 @@ export const idlFactory = ({IDL}) => {
const SetSegmentsArgs = IDL.Record({
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
segment_id: IDL.Principal,
segment_type: SegmentType
segment_kind: StorableSegmentKind
});
const SetSegmentMetadataArgs = IDL.Record({
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
segment_id: IDL.Principal,
segment_type: SegmentType
segment_kind: StorableSegmentKind
});
const SetStorageConfig = IDL.Record({
iframe: IDL.Opt(StorageConfigIFrame),
Expand All @@ -476,11 +480,7 @@ export const idlFactory = ({IDL}) => {
});
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
segment_kind: StorableSegmentKind
});
const UploadChunk = IDL.Record({
content: IDL.Vec(IDL.Nat8),
Expand Down Expand Up @@ -514,6 +514,7 @@ export const idlFactory = ({IDL}) => {
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_rate_config: IDL.Func([SegmentKind], [RateConfig], ['query']),
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
http_request_streaming_callback: IDL.Func(
Expand Down Expand Up @@ -545,12 +546,14 @@ export const idlFactory = ({IDL}) => {
set_controllers: IDL.Func([SetControllersArgs], [], []),
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
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_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
});
};
Expand Down
2 changes: 1 addition & 1 deletion cli/src/declarations/observatory.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export interface _SERVICE {
ping: ActorMethod<[NotifyArgs], undefined>;
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
set_env: ActorMethod<[Env], undefined>;
set_rate_config: ActorMethod<[RateKind, RateConfig], 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[];
2 changes: 1 addition & 1 deletion cli/src/declarations/observatory.did
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ service : () -> {
ping : (NotifyArgs) -> ();
set_controllers : (SetControllersArgs) -> ();
set_env : (Env) -> ();
set_rate_config : (RateKind, RateConfig) -> ();
start_openid_monitoring : () -> ();
stop_openid_monitoring : () -> ();
update_rate_config : (RateKind, RateConfig) -> ();
}
4 changes: 2 additions & 2 deletions cli/src/declarations/observatory.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export const idlFactory = ({IDL}) => {
ping: IDL.Func([NotifyArgs], [], []),
set_controllers: IDL.Func([SetControllersArgs], [], []),
set_env: IDL.Func([Env], [], []),
set_rate_config: IDL.Func([RateKind, RateConfig], [], []),
start_openid_monitoring: IDL.Func([], [], []),
stop_openid_monitoring: IDL.Func([], [], []),
update_rate_config: IDL.Func([RateKind, RateConfig], [], [])
stop_openid_monitoring: IDL.Func([], [], [])
});
};

Expand Down
Loading