@junobuild/core-standalone 0.1.5 → 0.1.7

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.
@@ -28,7 +28,9 @@ export interface AuthenticationConfig {
28
28
  }
29
29
  export interface AuthenticationConfigInternetIdentity {
30
30
  derivation_origin: [] | [string];
31
+ external_alternative_origins: [] | [Array<string>];
31
32
  }
33
+ export type CollectionType = {Db: null} | {Storage: null};
32
34
  export interface CommitBatch {
33
35
  batch_id: bigint;
34
36
  headers: Array<[string, string]>;
@@ -161,8 +163,8 @@ export interface Rule {
161
163
  mutable_permissions: [] | [boolean];
162
164
  rate_config: [] | [RateConfig];
163
165
  write: Permission;
166
+ max_changes_per_user: [] | [number];
164
167
  }
165
- export type RulesType = {Db: null} | {Storage: null};
166
168
  export interface SetController {
167
169
  metadata: Array<[string, string]>;
168
170
  scope: ControllerScope;
@@ -186,6 +188,7 @@ export interface SetRule {
186
188
  mutable_permissions: [] | [boolean];
187
189
  rate_config: [] | [RateConfig];
188
190
  write: Permission;
191
+ max_changes_per_user: [] | [number];
189
192
  }
190
193
  export interface StorageConfig {
191
194
  iframe: [] | [StorageConfigIFrame];
@@ -250,7 +253,7 @@ export interface _SERVICE {
250
253
  del_filtered_docs: ActorMethod<[string, ListParams], undefined>;
251
254
  del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
252
255
  del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
253
- del_rule: ActorMethod<[RulesType, string, DelRule], undefined>;
256
+ del_rule: ActorMethod<[CollectionType, string, DelRule], undefined>;
254
257
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
255
258
  get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
256
259
  get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
@@ -259,7 +262,7 @@ export interface _SERVICE {
259
262
  get_doc: ActorMethod<[string, string], [] | [Doc]>;
260
263
  get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
261
264
  get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
262
- get_rule: ActorMethod<[RulesType, string], [] | [Rule]>;
265
+ get_rule: ActorMethod<[CollectionType, string], [] | [Rule]>;
263
266
  get_storage_config: ActorMethod<[], StorageConfig>;
264
267
  http_request: ActorMethod<[HttpRequest], HttpResponse>;
265
268
  http_request_streaming_callback: ActorMethod<
@@ -271,7 +274,7 @@ export interface _SERVICE {
271
274
  list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
272
275
  list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
273
276
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
274
- list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
277
+ list_rules: ActorMethod<[CollectionType], Array<[string, Rule]>>;
275
278
  memory_size: ActorMethod<[], MemorySize>;
276
279
  set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
277
280
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
@@ -279,7 +282,7 @@ export interface _SERVICE {
279
282
  set_db_config: ActorMethod<[DbConfig], undefined>;
280
283
  set_doc: ActorMethod<[string, string, SetDoc], Doc>;
281
284
  set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
282
- set_rule: ActorMethod<[RulesType, string, SetRule], Rule>;
285
+ set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
283
286
  set_storage_config: ActorMethod<[StorageConfig], undefined>;
284
287
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
285
288
  version: ActorMethod<[], string>;
@@ -48,7 +48,7 @@ export const idlFactory = ({IDL}) => {
48
48
  expires_at: IDL.Opt(IDL.Nat64)
49
49
  });
50
50
  const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
51
- const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
51
+ const CollectionType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
52
52
  const DelRule = IDL.Record({version: IDL.Opt(IDL.Nat64)});
53
53
  const DepositCyclesArgs = IDL.Record({
54
54
  cycles: IDL.Nat,
@@ -76,7 +76,8 @@ export const idlFactory = ({IDL}) => {
76
76
  version: IDL.Opt(IDL.Nat64)
77
77
  });
78
78
  const AuthenticationConfigInternetIdentity = IDL.Record({
79
- derivation_origin: IDL.Opt(IDL.Text)
79
+ derivation_origin: IDL.Opt(IDL.Text),
80
+ external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
80
81
  });
81
82
  const AuthenticationConfig = IDL.Record({
82
83
  internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
@@ -143,7 +144,8 @@ export const idlFactory = ({IDL}) => {
143
144
  version: IDL.Opt(IDL.Nat64),
144
145
  mutable_permissions: IDL.Opt(IDL.Bool),
145
146
  rate_config: IDL.Opt(RateConfig),
146
- write: Permission
147
+ write: Permission,
148
+ max_changes_per_user: IDL.Opt(IDL.Nat32)
147
149
  });
148
150
  const HttpRequest = IDL.Record({
149
151
  url: IDL.Text,
@@ -229,7 +231,8 @@ export const idlFactory = ({IDL}) => {
229
231
  version: IDL.Opt(IDL.Nat64),
230
232
  mutable_permissions: IDL.Opt(IDL.Bool),
231
233
  rate_config: IDL.Opt(RateConfig),
232
- write: Permission
234
+ write: Permission,
235
+ max_changes_per_user: IDL.Opt(IDL.Nat32)
233
236
  });
234
237
  const UploadChunk = IDL.Record({
235
238
  content: IDL.Vec(IDL.Nat8),
@@ -258,7 +261,7 @@ export const idlFactory = ({IDL}) => {
258
261
  del_filtered_docs: IDL.Func([IDL.Text, ListParams], [], []),
259
262
  del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
260
263
  del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
261
- del_rule: IDL.Func([RulesType, IDL.Text, DelRule], [], []),
264
+ del_rule: IDL.Func([CollectionType, IDL.Text, DelRule], [], []),
262
265
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
263
266
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
264
267
  get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
@@ -275,7 +278,7 @@ export const idlFactory = ({IDL}) => {
275
278
  [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
276
279
  ['query']
277
280
  ),
278
- get_rule: IDL.Func([RulesType, IDL.Text], [IDL.Opt(Rule)], ['query']),
281
+ get_rule: IDL.Func([CollectionType, IDL.Text], [IDL.Opt(Rule)], ['query']),
279
282
  get_storage_config: IDL.Func([], [StorageConfig], ['query']),
280
283
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
281
284
  http_request_streaming_callback: IDL.Func(
@@ -288,7 +291,7 @@ export const idlFactory = ({IDL}) => {
288
291
  list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
289
292
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
290
293
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
291
- list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
294
+ list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
292
295
  memory_size: IDL.Func([], [MemorySize], ['query']),
293
296
  set_auth_config: IDL.Func([AuthenticationConfig], [], []),
294
297
  set_controllers: IDL.Func(
@@ -304,7 +307,7 @@ export const idlFactory = ({IDL}) => {
304
307
  [IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
305
308
  []
306
309
  ),
307
- set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [Rule], []),
310
+ set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
308
311
  set_storage_config: IDL.Func([StorageConfig], [], []),
309
312
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
310
313
  version: IDL.Func([], [IDL.Text], ['query'])
@@ -48,7 +48,7 @@ export const idlFactory = ({IDL}) => {
48
48
  expires_at: IDL.Opt(IDL.Nat64)
49
49
  });
50
50
  const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
51
- const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
51
+ const CollectionType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
52
52
  const DelRule = IDL.Record({version: IDL.Opt(IDL.Nat64)});
53
53
  const DepositCyclesArgs = IDL.Record({
54
54
  cycles: IDL.Nat,
@@ -76,7 +76,8 @@ export const idlFactory = ({IDL}) => {
76
76
  version: IDL.Opt(IDL.Nat64)
77
77
  });
78
78
  const AuthenticationConfigInternetIdentity = IDL.Record({
79
- derivation_origin: IDL.Opt(IDL.Text)
79
+ derivation_origin: IDL.Opt(IDL.Text),
80
+ external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
80
81
  });
81
82
  const AuthenticationConfig = IDL.Record({
82
83
  internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
@@ -143,7 +144,8 @@ export const idlFactory = ({IDL}) => {
143
144
  version: IDL.Opt(IDL.Nat64),
144
145
  mutable_permissions: IDL.Opt(IDL.Bool),
145
146
  rate_config: IDL.Opt(RateConfig),
146
- write: Permission
147
+ write: Permission,
148
+ max_changes_per_user: IDL.Opt(IDL.Nat32)
147
149
  });
148
150
  const HttpRequest = IDL.Record({
149
151
  url: IDL.Text,
@@ -229,7 +231,8 @@ export const idlFactory = ({IDL}) => {
229
231
  version: IDL.Opt(IDL.Nat64),
230
232
  mutable_permissions: IDL.Opt(IDL.Bool),
231
233
  rate_config: IDL.Opt(RateConfig),
232
- write: Permission
234
+ write: Permission,
235
+ max_changes_per_user: IDL.Opt(IDL.Nat32)
233
236
  });
234
237
  const UploadChunk = IDL.Record({
235
238
  content: IDL.Vec(IDL.Nat8),
@@ -258,7 +261,7 @@ export const idlFactory = ({IDL}) => {
258
261
  del_filtered_docs: IDL.Func([IDL.Text, ListParams], [], []),
259
262
  del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
260
263
  del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
261
- del_rule: IDL.Func([RulesType, IDL.Text, DelRule], [], []),
264
+ del_rule: IDL.Func([CollectionType, IDL.Text, DelRule], [], []),
262
265
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
263
266
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
264
267
  get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
@@ -275,7 +278,7 @@ export const idlFactory = ({IDL}) => {
275
278
  [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
276
279
  ['query']
277
280
  ),
278
- get_rule: IDL.Func([RulesType, IDL.Text], [IDL.Opt(Rule)], ['query']),
281
+ get_rule: IDL.Func([CollectionType, IDL.Text], [IDL.Opt(Rule)], ['query']),
279
282
  get_storage_config: IDL.Func([], [StorageConfig], ['query']),
280
283
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
281
284
  http_request_streaming_callback: IDL.Func(
@@ -288,7 +291,7 @@ export const idlFactory = ({IDL}) => {
288
291
  list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
289
292
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
290
293
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
291
- list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
294
+ list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
292
295
  memory_size: IDL.Func([], [MemorySize], ['query']),
293
296
  set_auth_config: IDL.Func([AuthenticationConfig], [], []),
294
297
  set_controllers: IDL.Func(
@@ -304,7 +307,7 @@ export const idlFactory = ({IDL}) => {
304
307
  [IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
305
308
  []
306
309
  ),
307
- set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [Rule], []),
310
+ set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
308
311
  set_storage_config: IDL.Func([StorageConfig], [], []),
309
312
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
310
313
  version: IDL.Func([], [IDL.Text], ['query'])