@junobuild/core-standalone 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,14 +87,24 @@ export const idlFactory = ({IDL}) => {
87
87
  derivation_origin: IDL.Opt(IDL.Text),
88
88
  external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
89
89
  });
90
+ const AuthenticationRules = IDL.Record({
91
+ allowed_callers: IDL.Vec(IDL.Principal)
92
+ });
90
93
  const AuthenticationConfig = IDL.Record({
91
- internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
94
+ updated_at: IDL.Opt(IDL.Nat64),
95
+ created_at: IDL.Opt(IDL.Nat64),
96
+ version: IDL.Opt(IDL.Nat64),
97
+ internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
98
+ rules: IDL.Opt(AuthenticationRules)
92
99
  });
93
100
  const ConfigMaxMemorySize = IDL.Record({
94
101
  stable: IDL.Opt(IDL.Nat64),
95
102
  heap: IDL.Opt(IDL.Nat64)
96
103
  });
97
104
  const DbConfig = IDL.Record({
105
+ updated_at: IDL.Opt(IDL.Nat64),
106
+ created_at: IDL.Opt(IDL.Nat64),
107
+ version: IDL.Opt(IDL.Nat64),
98
108
  max_memory_size: IDL.Opt(ConfigMaxMemorySize)
99
109
  });
100
110
  const StorageConfigIFrame = IDL.Variant({
@@ -112,8 +122,11 @@ export const idlFactory = ({IDL}) => {
112
122
  });
113
123
  const StorageConfig = IDL.Record({
114
124
  iframe: IDL.Opt(StorageConfigIFrame),
125
+ updated_at: IDL.Opt(IDL.Nat64),
115
126
  rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
116
127
  headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
128
+ created_at: IDL.Opt(IDL.Nat64),
129
+ version: IDL.Opt(IDL.Nat64),
117
130
  max_memory_size: IDL.Opt(ConfigMaxMemorySize),
118
131
  raw_access: IDL.Opt(StorageConfigRawAccess),
119
132
  redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
@@ -269,6 +282,11 @@ export const idlFactory = ({IDL}) => {
269
282
  items_length: IDL.Nat64
270
283
  });
271
284
  const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
285
+ const SetAuthenticationConfig = IDL.Record({
286
+ version: IDL.Opt(IDL.Nat64),
287
+ internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
288
+ rules: IDL.Opt(AuthenticationRules)
289
+ });
272
290
  const SetController = IDL.Record({
273
291
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
274
292
  scope: ControllerScope,
@@ -278,6 +296,10 @@ export const idlFactory = ({IDL}) => {
278
296
  controller: SetController,
279
297
  controllers: IDL.Vec(IDL.Principal)
280
298
  });
299
+ const SetDbConfig = IDL.Record({
300
+ version: IDL.Opt(IDL.Nat64),
301
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize)
302
+ });
281
303
  const SetDoc = IDL.Record({
282
304
  data: IDL.Vec(IDL.Nat8),
283
305
  description: IDL.Opt(IDL.Text),
@@ -294,6 +316,15 @@ export const idlFactory = ({IDL}) => {
294
316
  write: Permission,
295
317
  max_changes_per_user: IDL.Opt(IDL.Nat32)
296
318
  });
319
+ const SetStorageConfig = IDL.Record({
320
+ iframe: IDL.Opt(StorageConfigIFrame),
321
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
322
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
323
+ version: IDL.Opt(IDL.Nat64),
324
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
325
+ raw_access: IDL.Opt(StorageConfigRawAccess),
326
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
327
+ });
297
328
  const UploadChunk = IDL.Record({
298
329
  content: IDL.Vec(IDL.Nat8),
299
330
  batch_id: IDL.Nat,
@@ -361,14 +392,14 @@ export const idlFactory = ({IDL}) => {
361
392
  list_rules: IDL.Func([CollectionType, ListRulesParams], [ListRulesResults], ['query']),
362
393
  memory_size: IDL.Func([], [MemorySize], ['query']),
363
394
  reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
364
- set_auth_config: IDL.Func([AuthenticationConfig], [], []),
395
+ set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
365
396
  set_controllers: IDL.Func(
366
397
  [SetControllersArgs],
367
398
  [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
368
399
  []
369
400
  ),
370
401
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
371
- set_db_config: IDL.Func([DbConfig], [], []),
402
+ set_db_config: IDL.Func([SetDbConfig], [DbConfig], []),
372
403
  set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
373
404
  set_many_docs: IDL.Func(
374
405
  [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
@@ -376,7 +407,7 @@ export const idlFactory = ({IDL}) => {
376
407
  []
377
408
  ),
378
409
  set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
379
- set_storage_config: IDL.Func([StorageConfig], [], []),
410
+ set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
380
411
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
381
412
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
382
413
  upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])