Skip to content

Commit 0895fd0

Browse files
feat: update satellite.did template as released in juno v0.0.54 (#338)
1 parent dbe220d commit 0895fd0

1 file changed

Lines changed: 39 additions & 4 deletions

File tree

templates/eject/rust/src/satellite/satellite.did

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,17 @@ type AssetNoContent = record {
2121
};
2222
type AssetsUpgradeOptions = record { clear_existing_assets : opt bool };
2323
type AuthenticationConfig = record {
24+
updated_at : opt nat64;
25+
created_at : opt nat64;
26+
version : opt nat64;
2427
internet_identity : opt AuthenticationConfigInternetIdentity;
28+
rules : opt AuthenticationRules;
2529
};
2630
type AuthenticationConfigInternetIdentity = record {
2731
derivation_origin : opt text;
2832
external_alternative_origins : opt vec text;
2933
};
34+
type AuthenticationRules = record { allowed_callers : vec principal };
3035
type CollectionType = variant { Db; Storage };
3136
type CommitBatch = record {
3237
batch_id : nat;
@@ -54,7 +59,12 @@ type CustomDomain = record {
5459
version : opt nat64;
5560
bn_id : opt text;
5661
};
57-
type DbConfig = record { max_memory_size : opt ConfigMaxMemorySize };
62+
type DbConfig = record {
63+
updated_at : opt nat64;
64+
created_at : opt nat64;
65+
version : opt nat64;
66+
max_memory_size : opt ConfigMaxMemorySize;
67+
};
5868
type DelDoc = record { version : opt nat64 };
5969
type DelRule = record { version : opt nat64 };
6070
type DeleteControllersArgs = record { controllers : vec principal };
@@ -182,6 +192,11 @@ type SegmentsDeploymentOptions = record {
182192
mission_control_version : opt text;
183193
satellite_version : opt text;
184194
};
195+
type SetAuthenticationConfig = record {
196+
version : opt nat64;
197+
internet_identity : opt AuthenticationConfigInternetIdentity;
198+
rules : opt AuthenticationRules;
199+
};
185200
type SetController = record {
186201
metadata : vec record { text; text };
187202
scope : ControllerScope;
@@ -191,6 +206,10 @@ type SetControllersArgs = record {
191206
controller : SetController;
192207
controllers : vec principal;
193208
};
209+
type SetDbConfig = record {
210+
version : opt nat64;
211+
max_memory_size : opt ConfigMaxMemorySize;
212+
};
194213
type SetDoc = record {
195214
data : blob;
196215
description : opt text;
@@ -207,10 +226,22 @@ type SetRule = record {
207226
write : Permission;
208227
max_changes_per_user : opt nat32;
209228
};
229+
type SetStorageConfig = record {
230+
iframe : opt StorageConfigIFrame;
231+
rewrites : vec record { text; text };
232+
headers : vec record { text; vec record { text; text } };
233+
version : opt nat64;
234+
max_memory_size : opt ConfigMaxMemorySize;
235+
raw_access : opt StorageConfigRawAccess;
236+
redirects : opt vec record { text; StorageConfigRedirect };
237+
};
210238
type StorageConfig = record {
211239
iframe : opt StorageConfigIFrame;
240+
updated_at : opt nat64;
212241
rewrites : vec record { text; text };
213242
headers : vec record { text; vec record { text; text } };
243+
created_at : opt nat64;
244+
version : opt nat64;
214245
max_memory_size : opt ConfigMaxMemorySize;
215246
raw_access : opt StorageConfigRawAccess;
216247
redirects : opt vec record { text; StorageConfigRedirect };
@@ -253,6 +284,7 @@ service : () -> {
253284
commit_asset_upload : (CommitBatch) -> ();
254285
commit_proposal : (CommitProposal) -> (null);
255286
commit_proposal_asset_upload : (CommitBatch) -> ();
287+
commit_proposal_many_assets_upload : (vec CommitBatch) -> ();
256288
count_assets : (text, ListParams) -> (nat64) query;
257289
count_collection_assets : (text) -> (nat64) query;
258290
count_collection_docs : (text) -> (nat64) query;
@@ -294,6 +326,9 @@ service : () -> {
294326
init_asset_upload : (InitAssetKey) -> (InitUploadResult);
295327
init_proposal : (ProposalType) -> (nat, Proposal);
296328
init_proposal_asset_upload : (InitAssetKey, nat) -> (InitUploadResult);
329+
init_proposal_many_assets_upload : (vec InitAssetKey, nat) -> (
330+
vec record { text; InitUploadResult },
331+
);
297332
list_assets : (text, ListParams) -> (ListResults) query;
298333
list_controllers : () -> (vec record { principal; Controller }) query;
299334
list_custom_domains : () -> (vec record { text; CustomDomain }) query;
@@ -302,18 +337,18 @@ service : () -> {
302337
list_rules : (CollectionType, ListRulesParams) -> (ListRulesResults) query;
303338
memory_size : () -> (MemorySize) query;
304339
reject_proposal : (CommitProposal) -> (null);
305-
set_auth_config : (AuthenticationConfig) -> ();
340+
set_auth_config : (SetAuthenticationConfig) -> (AuthenticationConfig);
306341
set_controllers : (SetControllersArgs) -> (
307342
vec record { principal; Controller },
308343
);
309344
set_custom_domain : (text, opt text) -> ();
310-
set_db_config : (DbConfig) -> ();
345+
set_db_config : (SetDbConfig) -> (DbConfig);
311346
set_doc : (text, text, SetDoc) -> (Doc);
312347
set_many_docs : (vec record { text; text; SetDoc }) -> (
313348
vec record { text; Doc },
314349
);
315350
set_rule : (CollectionType, text, SetRule) -> (Rule);
316-
set_storage_config : (StorageConfig) -> ();
351+
set_storage_config : (SetStorageConfig) -> (StorageConfig);
317352
submit_proposal : (nat) -> (nat, Proposal);
318353
upload_asset_chunk : (UploadChunk) -> (UploadChunkResult);
319354
upload_proposal_asset_chunk : (UploadChunk) -> (UploadChunkResult);

0 commit comments

Comments
 (0)