@junobuild/core 0.0.36 → 0.0.38
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 +17 -0
- package/declarations/satellite/satellite.factory.did.js +27 -2
- package/declarations/satellite/satellite.factory.did.mjs +27 -2
- package/dist/browser/canisterStatus-GGCM43M3.js +2 -0
- package/dist/browser/{chunk-N3SFIG7N.js → chunk-TDCTL77T.js} +2 -2
- package/dist/browser/index.js +14 -14
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +17 -0
- package/dist/declarations/satellite/satellite.factory.did.js +27 -2
- package/dist/declarations/satellite/satellite.factory.did.mjs +27 -2
- package/dist/node/index.mjs +26 -26
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/doc.api.d.ts +18 -0
- package/dist/types/api/storage.api.d.ts +6 -0
- package/dist/types/services/doc.services.d.ts +18 -0
- package/dist/types/services/storage.services.d.ts +6 -0
- package/dist/types/types/post-message.d.ts +8 -2
- package/dist/types/utils/doc.utils.d.ts +8 -0
- package/dist/workers/auth.worker.js +4 -4
- package/dist/workers/auth.worker.js.map +3 -3
- package/package.json +2 -3
- package/dist/browser/canisterStatus-N5J2XGIM.js +0 -2
- package/dist/workers/auth.worker.js.gz +0 -0
- /package/dist/browser/{canisterStatus-N5J2XGIM.js.map → canisterStatus-GGCM43M3.js.map} +0 -0
- /package/dist/browser/{chunk-N3SFIG7N.js.map → chunk-TDCTL77T.js.map} +0 -0
|
@@ -48,6 +48,10 @@ export interface DelDoc {
|
|
|
48
48
|
export interface DeleteControllersArgs {
|
|
49
49
|
controllers: Array<Principal>;
|
|
50
50
|
}
|
|
51
|
+
export interface DepositCyclesArgs {
|
|
52
|
+
cycles: bigint;
|
|
53
|
+
destination_id: Principal;
|
|
54
|
+
}
|
|
51
55
|
export interface Doc {
|
|
52
56
|
updated_at: bigint;
|
|
53
57
|
owner: Principal;
|
|
@@ -60,6 +64,7 @@ export interface HttpRequest {
|
|
|
60
64
|
method: string;
|
|
61
65
|
body: Uint8Array | number[];
|
|
62
66
|
headers: Array<[string, string]>;
|
|
67
|
+
certificate_version: [] | [number];
|
|
63
68
|
}
|
|
64
69
|
export interface HttpResponse {
|
|
65
70
|
body: Uint8Array | number[];
|
|
@@ -146,8 +151,15 @@ export interface SetRule {
|
|
|
146
151
|
write: Permission;
|
|
147
152
|
}
|
|
148
153
|
export interface StorageConfig {
|
|
154
|
+
iframe: [] | [StorageConfigIFrame];
|
|
149
155
|
rewrites: Array<[string, string]>;
|
|
150
156
|
headers: Array<[string, Array<[string, string]>]>;
|
|
157
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
158
|
+
}
|
|
159
|
+
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
160
|
+
export interface StorageConfigRedirect {
|
|
161
|
+
status_code: number;
|
|
162
|
+
location: string;
|
|
151
163
|
}
|
|
152
164
|
export interface StreamingCallbackHttpResponse {
|
|
153
165
|
token: [] | [StreamingCallbackToken];
|
|
@@ -183,7 +195,11 @@ export interface _SERVICE {
|
|
|
183
195
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
184
196
|
del_custom_domain: ActorMethod<[string], undefined>;
|
|
185
197
|
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
198
|
+
del_docs: ActorMethod<[string], undefined>;
|
|
199
|
+
del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
|
|
200
|
+
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
186
201
|
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
202
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
187
203
|
get_config: ActorMethod<[], Config>;
|
|
188
204
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
189
205
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
@@ -201,6 +217,7 @@ export interface _SERVICE {
|
|
|
201
217
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
202
218
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
203
219
|
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
220
|
+
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
204
221
|
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
205
222
|
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
206
223
|
version: ActorMethod<[], string>;
|
|
@@ -21,9 +21,24 @@ export const idlFactory = ({IDL}) => {
|
|
|
21
21
|
});
|
|
22
22
|
const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
|
+
const DepositCyclesArgs = IDL.Record({
|
|
25
|
+
cycles: IDL.Nat,
|
|
26
|
+
destination_id: IDL.Principal
|
|
27
|
+
});
|
|
28
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
29
|
+
Deny: IDL.Null,
|
|
30
|
+
AllowAny: IDL.Null,
|
|
31
|
+
SameOrigin: IDL.Null
|
|
32
|
+
});
|
|
33
|
+
const StorageConfigRedirect = IDL.Record({
|
|
34
|
+
status_code: IDL.Nat16,
|
|
35
|
+
location: IDL.Text
|
|
36
|
+
});
|
|
24
37
|
const StorageConfig = IDL.Record({
|
|
38
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
25
39
|
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
26
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
|
|
40
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
41
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
27
42
|
});
|
|
28
43
|
const Config = IDL.Record({storage: StorageConfig});
|
|
29
44
|
const Doc = IDL.Record({
|
|
@@ -37,7 +52,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
37
52
|
url: IDL.Text,
|
|
38
53
|
method: IDL.Text,
|
|
39
54
|
body: IDL.Vec(IDL.Nat8),
|
|
40
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
|
|
55
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
56
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
41
57
|
});
|
|
42
58
|
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
43
59
|
const StreamingCallbackToken = IDL.Record({
|
|
@@ -187,7 +203,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
187
203
|
),
|
|
188
204
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
189
205
|
del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
|
|
206
|
+
del_docs: IDL.Func([IDL.Text], [], []),
|
|
207
|
+
del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
208
|
+
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
190
209
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
210
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
191
211
|
get_config: IDL.Func([], [Config], []),
|
|
192
212
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
193
213
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
@@ -210,6 +230,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
210
230
|
),
|
|
211
231
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
212
232
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
233
|
+
set_many_docs: IDL.Func(
|
|
234
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
235
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
236
|
+
[]
|
|
237
|
+
),
|
|
213
238
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
214
239
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
215
240
|
version: IDL.Func([], [IDL.Text], ['query'])
|
|
@@ -21,9 +21,24 @@ export const idlFactory = ({IDL}) => {
|
|
|
21
21
|
});
|
|
22
22
|
const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
|
+
const DepositCyclesArgs = IDL.Record({
|
|
25
|
+
cycles: IDL.Nat,
|
|
26
|
+
destination_id: IDL.Principal
|
|
27
|
+
});
|
|
28
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
29
|
+
Deny: IDL.Null,
|
|
30
|
+
AllowAny: IDL.Null,
|
|
31
|
+
SameOrigin: IDL.Null
|
|
32
|
+
});
|
|
33
|
+
const StorageConfigRedirect = IDL.Record({
|
|
34
|
+
status_code: IDL.Nat16,
|
|
35
|
+
location: IDL.Text
|
|
36
|
+
});
|
|
24
37
|
const StorageConfig = IDL.Record({
|
|
38
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
25
39
|
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
26
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
|
|
40
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
41
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
27
42
|
});
|
|
28
43
|
const Config = IDL.Record({storage: StorageConfig});
|
|
29
44
|
const Doc = IDL.Record({
|
|
@@ -37,7 +52,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
37
52
|
url: IDL.Text,
|
|
38
53
|
method: IDL.Text,
|
|
39
54
|
body: IDL.Vec(IDL.Nat8),
|
|
40
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
|
|
55
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
56
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
41
57
|
});
|
|
42
58
|
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
43
59
|
const StreamingCallbackToken = IDL.Record({
|
|
@@ -187,7 +203,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
187
203
|
),
|
|
188
204
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
189
205
|
del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
|
|
206
|
+
del_docs: IDL.Func([IDL.Text], [], []),
|
|
207
|
+
del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
208
|
+
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
190
209
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
210
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
191
211
|
get_config: IDL.Func([], [Config], []),
|
|
192
212
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
193
213
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
@@ -210,6 +230,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
210
230
|
),
|
|
211
231
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
212
232
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
233
|
+
set_many_docs: IDL.Func(
|
|
234
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
235
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
236
|
+
[]
|
|
237
|
+
),
|
|
213
238
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
214
239
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
215
240
|
version: IDL.Func([], [IDL.Text], ['query'])
|