@junobuild/core 0.0.38 → 0.0.40
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 +8 -0
- package/declarations/satellite/satellite.factory.did.js +9 -0
- package/declarations/satellite/satellite.factory.did.mjs +9 -0
- package/dist/browser/canisterStatus-7J5OCF2I.js +2 -0
- package/dist/browser/chunk-JJQEE5XI.js +28 -0
- package/dist/browser/chunk-JJQEE5XI.js.map +7 -0
- package/dist/browser/index.js +39 -22
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +8 -0
- package/dist/declarations/satellite/satellite.factory.did.js +9 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +9 -0
- package/dist/node/index.mjs +55 -35
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/doc.api.d.ts +6 -4
- package/dist/types/api/storage.api.d.ts +0 -4
- package/dist/types/services/doc.services.d.ts +6 -4
- package/dist/types/services/storage.services.d.ts +0 -4
- package/dist/types/utils/doc.utils.d.ts +2 -2
- package/dist/workers/auth.worker.js +30 -7
- package/dist/workers/auth.worker.js.map +4 -4
- package/package.json +5 -5
- package/dist/browser/canisterStatus-GGCM43M3.js +0 -2
- package/dist/browser/chunk-TDCTL77T.js +0 -28
- package/dist/browser/chunk-TDCTL77T.js.map +0 -7
- package/dist/types/utils/storage.utils.d.ts +0 -1
- /package/dist/browser/{canisterStatus-GGCM43M3.js.map → canisterStatus-7J5OCF2I.js.map} +0 -0
|
@@ -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]>>;
|
|
@@ -202,6 +208,7 @@ export interface _SERVICE {
|
|
|
202
208
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
203
209
|
get_config: ActorMethod<[], Config>;
|
|
204
210
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
211
|
+
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
205
212
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
206
213
|
http_request_streaming_callback: ActorMethod<
|
|
207
214
|
[StreamingCallbackToken],
|
|
@@ -213,6 +220,7 @@ export interface _SERVICE {
|
|
|
213
220
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
214
221
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
215
222
|
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
223
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
216
224
|
set_config: ActorMethod<[Config], undefined>;
|
|
217
225
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
218
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(
|
|
@@ -210,6 +213,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
210
213
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
211
214
|
get_config: IDL.Func([], [Config], []),
|
|
212
215
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
216
|
+
get_many_docs: IDL.Func(
|
|
217
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
218
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
219
|
+
['query']
|
|
220
|
+
),
|
|
213
221
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
214
222
|
http_request_streaming_callback: IDL.Func(
|
|
215
223
|
[StreamingCallbackToken],
|
|
@@ -222,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
222
230
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
223
231
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
224
232
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
233
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
225
234
|
set_config: IDL.Func([Config], [], []),
|
|
226
235
|
set_controllers: IDL.Func(
|
|
227
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(
|
|
@@ -210,6 +213,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
210
213
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
211
214
|
get_config: IDL.Func([], [Config], []),
|
|
212
215
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
216
|
+
get_many_docs: IDL.Func(
|
|
217
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
218
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
219
|
+
['query']
|
|
220
|
+
),
|
|
213
221
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
214
222
|
http_request_streaming_callback: IDL.Func(
|
|
215
223
|
[StreamingCallbackToken],
|
|
@@ -222,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
222
230
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
223
231
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
224
232
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
233
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
225
234
|
set_config: IDL.Func([Config], [], []),
|
|
226
235
|
set_controllers: IDL.Func(
|
|
227
236
|
[SetControllersArgs],
|