@junobuild/core 0.0.38-next-2023-12-21 → 0.0.38-next-2023-12-22
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.
- package/declarations/satellite/satellite.did.d.ts +7 -0
- package/declarations/satellite/satellite.factory.did.js +4 -0
- package/declarations/satellite/satellite.factory.did.mjs +4 -0
- package/dist/browser/index.js +10 -10
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +7 -0
- package/dist/declarations/satellite/satellite.factory.did.js +4 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +4 -0
- package/dist/node/index.mjs +14 -14
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/doc.api.d.ts +4 -0
- package/dist/types/api/storage.api.d.ts +4 -0
- package/dist/types/services/doc.services.d.ts +4 -0
- package/dist/types/services/storage.services.d.ts +4 -0
- package/package.json +1 -1
|
@@ -117,6 +117,10 @@ export interface ListResults_1 {
|
|
|
117
117
|
items_length: bigint;
|
|
118
118
|
}
|
|
119
119
|
export type Memory = {Heap: null} | {Stable: null};
|
|
120
|
+
export interface MemorySize {
|
|
121
|
+
stable: bigint;
|
|
122
|
+
heap: bigint;
|
|
123
|
+
}
|
|
120
124
|
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
121
125
|
export interface Rule {
|
|
122
126
|
memory: [] | [Memory];
|
|
@@ -190,6 +194,8 @@ export interface UploadChunkResult {
|
|
|
190
194
|
}
|
|
191
195
|
export interface _SERVICE {
|
|
192
196
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
197
|
+
count_assets: ActorMethod<[string], bigint>;
|
|
198
|
+
count_docs: ActorMethod<[string], bigint>;
|
|
193
199
|
del_asset: ActorMethod<[string, string], undefined>;
|
|
194
200
|
del_assets: ActorMethod<[string], undefined>;
|
|
195
201
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
@@ -214,6 +220,7 @@ export interface _SERVICE {
|
|
|
214
220
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
215
221
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
216
222
|
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
223
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
217
224
|
set_config: ActorMethod<[Config], undefined>;
|
|
218
225
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
219
226
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
@@ -164,6 +164,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
164
164
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
165
165
|
write: Permission
|
|
166
166
|
});
|
|
167
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
167
168
|
const SetController = IDL.Record({
|
|
168
169
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
169
170
|
scope: ControllerScope,
|
|
@@ -194,6 +195,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
194
195
|
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
195
196
|
return IDL.Service({
|
|
196
197
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
198
|
+
count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
199
|
+
count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
197
200
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
198
201
|
del_assets: IDL.Func([IDL.Text], [], []),
|
|
199
202
|
del_controllers: IDL.Func(
|
|
@@ -227,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
227
230
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
228
231
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
229
232
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
233
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
230
234
|
set_config: IDL.Func([Config], [], []),
|
|
231
235
|
set_controllers: IDL.Func(
|
|
232
236
|
[SetControllersArgs],
|
|
@@ -164,6 +164,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
164
164
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
165
165
|
write: Permission
|
|
166
166
|
});
|
|
167
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
167
168
|
const SetController = IDL.Record({
|
|
168
169
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
169
170
|
scope: ControllerScope,
|
|
@@ -194,6 +195,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
194
195
|
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
195
196
|
return IDL.Service({
|
|
196
197
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
198
|
+
count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
199
|
+
count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
197
200
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
198
201
|
del_assets: IDL.Func([IDL.Text], [], []),
|
|
199
202
|
del_controllers: IDL.Func(
|
|
@@ -227,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
227
230
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
228
231
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
229
232
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
233
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
230
234
|
set_config: IDL.Func([Config], [], []),
|
|
231
235
|
set_controllers: IDL.Func(
|
|
232
236
|
[SetControllersArgs],
|