Skip to content

Commit

Permalink
Update candid file (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Mar 15, 2024
1 parent f97d15e commit 6125928
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rs/canister/api/can.did
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ type IdempotentEvent = record {
payload : vec nat8;
idempotency_key : nat;
};
type IdempotentEventPrevious = record {
source : opt text;
name : text;
user : opt text;
timestamp : nat64;
payload : vec nat8;
idempotency_key : nat;
};
type IndexedEvent = record {
source : opt text;
name : text;
Expand All @@ -23,14 +31,17 @@ type IndexedEvent = record {
type InitArgs = record {
push_events_whitelist : vec principal;
read_events_whitelist : vec principal;
time_granularity : opt nat64;
};
type PushEventsArgs = record { events : vec IdempotentEvent };
type PushEventsArgsPrevious = record { events : vec IdempotentEventPrevious };
type WhitelistedPrincipals = record {
push : vec principal;
read : vec principal;
};
service : (InitArgs) -> {
events : (EventsArgs) -> (EventsResponse) query;
push_events : (PushEventsArgs) -> ();
push_events : (PushEventsArgsPrevious) -> ();
push_events_v2 : (PushEventsArgs) -> ();
whitelisted_principals : () -> (WhitelistedPrincipals) query;
}

0 comments on commit 6125928

Please sign in to comment.