@junobuild/storage 0.1.8 → 0.1.9
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.
|
@@ -143,6 +143,10 @@ export interface ListResults_1 {
|
|
|
143
143
|
items_length: bigint;
|
|
144
144
|
}
|
|
145
145
|
export type Memory = {Heap: null} | {Stable: null};
|
|
146
|
+
export interface MemorySize {
|
|
147
|
+
stable: bigint;
|
|
148
|
+
heap: bigint;
|
|
149
|
+
}
|
|
146
150
|
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
147
151
|
export interface RateConfig {
|
|
148
152
|
max_tokens: bigint;
|
|
@@ -270,6 +274,7 @@ export interface _SERVICE {
|
|
|
270
274
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
271
275
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
272
276
|
list_rules: ActorMethod<[CollectionType], Array<[string, Rule]>>;
|
|
277
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
273
278
|
set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
|
|
274
279
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
275
280
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
@@ -208,6 +208,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
208
208
|
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
|
|
209
209
|
items_length: IDL.Nat64
|
|
210
210
|
});
|
|
211
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
211
212
|
const SetController = IDL.Record({
|
|
212
213
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
213
214
|
scope: ControllerScope,
|
|
@@ -290,6 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
290
291
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
291
292
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], []),
|
|
292
293
|
list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], []),
|
|
294
|
+
memory_size: IDL.Func([], [MemorySize], []),
|
|
293
295
|
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
294
296
|
set_controllers: IDL.Func(
|
|
295
297
|
[SetControllersArgs],
|
|
@@ -208,6 +208,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
208
208
|
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
|
|
209
209
|
items_length: IDL.Nat64
|
|
210
210
|
});
|
|
211
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
211
212
|
const SetController = IDL.Record({
|
|
212
213
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
213
214
|
scope: ControllerScope,
|
|
@@ -290,6 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
290
291
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
291
292
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
292
293
|
list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
294
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
293
295
|
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
294
296
|
set_controllers: IDL.Func(
|
|
295
297
|
[SetControllersArgs],
|
|
@@ -208,6 +208,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
208
208
|
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
|
|
209
209
|
items_length: IDL.Nat64
|
|
210
210
|
});
|
|
211
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
211
212
|
const SetController = IDL.Record({
|
|
212
213
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
213
214
|
scope: ControllerScope,
|
|
@@ -290,6 +291,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
290
291
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
291
292
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
292
293
|
list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
294
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
293
295
|
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
294
296
|
set_controllers: IDL.Func(
|
|
295
297
|
[SetControllersArgs],
|