@junobuild/core 0.0.44 → 0.0.45
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 +5 -0
- package/declarations/satellite/satellite.factory.did.js +27 -20
- package/declarations/satellite/satellite.factory.did.mjs +27 -20
- package/dist/browser/canisterStatus-VC2GL5RO.js +2 -0
- package/dist/browser/chunk-6UFATCSV.js +28 -0
- package/dist/browser/{chunk-JJQEE5XI.js.map → chunk-6UFATCSV.js.map} +1 -1
- package/dist/browser/index.js +10 -10
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +5 -0
- package/dist/declarations/satellite/satellite.factory.did.js +27 -20
- package/dist/declarations/satellite/satellite.factory.did.mjs +27 -20
- package/dist/node/index.mjs +15 -15
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/storage.api.d.ts +10 -0
- package/dist/types/services/storage.services.d.ts +11 -0
- package/dist/types/workers/auth.worker.d.ts +1 -1
- package/dist/workers/auth.worker.js +2 -2
- package/dist/workers/auth.worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/canisterStatus-7J5OCF2I.js +0 -2
- package/dist/browser/chunk-JJQEE5XI.js +0 -28
- /package/dist/browser/{canisterStatus-7J5OCF2I.js.map → canisterStatus-VC2GL5RO.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
+
import type {IDL} from '@dfinity/candid';
|
|
2
3
|
import type {Principal} from '@dfinity/principal';
|
|
3
4
|
|
|
4
5
|
export interface AssetEncodingNoContent {
|
|
@@ -193,6 +194,7 @@ export interface UploadChunkResult {
|
|
|
193
194
|
chunk_id: bigint;
|
|
194
195
|
}
|
|
195
196
|
export interface _SERVICE {
|
|
197
|
+
build_version: ActorMethod<[], string>;
|
|
196
198
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
197
199
|
count_assets: ActorMethod<[string], bigint>;
|
|
198
200
|
count_docs: ActorMethod<[string], bigint>;
|
|
@@ -206,8 +208,10 @@ export interface _SERVICE {
|
|
|
206
208
|
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
207
209
|
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
208
210
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
211
|
+
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
209
212
|
get_config: ActorMethod<[], Config>;
|
|
210
213
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
214
|
+
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
211
215
|
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
212
216
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
213
217
|
http_request_streaming_callback: ActorMethod<
|
|
@@ -230,3 +234,4 @@ export interface _SERVICE {
|
|
|
230
234
|
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
231
235
|
version: ActorMethod<[], string>;
|
|
232
236
|
}
|
|
237
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
@@ -25,6 +25,26 @@ export const idlFactory = ({IDL}) => {
|
|
|
25
25
|
cycles: IDL.Nat,
|
|
26
26
|
destination_id: IDL.Principal
|
|
27
27
|
});
|
|
28
|
+
const AssetKey = IDL.Record({
|
|
29
|
+
token: IDL.Opt(IDL.Text),
|
|
30
|
+
collection: IDL.Text,
|
|
31
|
+
owner: IDL.Principal,
|
|
32
|
+
name: IDL.Text,
|
|
33
|
+
description: IDL.Opt(IDL.Text),
|
|
34
|
+
full_path: IDL.Text
|
|
35
|
+
});
|
|
36
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
37
|
+
modified: IDL.Nat64,
|
|
38
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
39
|
+
total_length: IDL.Nat
|
|
40
|
+
});
|
|
41
|
+
const AssetNoContent = IDL.Record({
|
|
42
|
+
key: AssetKey,
|
|
43
|
+
updated_at: IDL.Nat64,
|
|
44
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
+
created_at: IDL.Nat64
|
|
47
|
+
});
|
|
28
48
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
49
|
Deny: IDL.Null,
|
|
30
50
|
AllowAny: IDL.Null,
|
|
@@ -110,26 +130,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
110
130
|
matcher: IDL.Opt(ListMatcher),
|
|
111
131
|
paginate: IDL.Opt(ListPaginate)
|
|
112
132
|
});
|
|
113
|
-
const AssetKey = IDL.Record({
|
|
114
|
-
token: IDL.Opt(IDL.Text),
|
|
115
|
-
collection: IDL.Text,
|
|
116
|
-
owner: IDL.Principal,
|
|
117
|
-
name: IDL.Text,
|
|
118
|
-
description: IDL.Opt(IDL.Text),
|
|
119
|
-
full_path: IDL.Text
|
|
120
|
-
});
|
|
121
|
-
const AssetEncodingNoContent = IDL.Record({
|
|
122
|
-
modified: IDL.Nat64,
|
|
123
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
124
|
-
total_length: IDL.Nat
|
|
125
|
-
});
|
|
126
|
-
const AssetNoContent = IDL.Record({
|
|
127
|
-
key: AssetKey,
|
|
128
|
-
updated_at: IDL.Nat64,
|
|
129
|
-
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
130
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
131
|
-
created_at: IDL.Nat64
|
|
132
|
-
});
|
|
133
133
|
const ListResults = IDL.Record({
|
|
134
134
|
matches_pages: IDL.Opt(IDL.Nat64),
|
|
135
135
|
matches_length: IDL.Nat64,
|
|
@@ -194,6 +194,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
194
194
|
});
|
|
195
195
|
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
196
196
|
return IDL.Service({
|
|
197
|
+
build_version: IDL.Func([], [IDL.Text], ['query']),
|
|
197
198
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
198
199
|
count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
199
200
|
count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
@@ -211,8 +212,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
211
212
|
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
212
213
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
213
214
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
215
|
+
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
214
216
|
get_config: IDL.Func([], [Config], []),
|
|
215
217
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
218
|
+
get_many_assets: IDL.Func(
|
|
219
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
220
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
221
|
+
['query']
|
|
222
|
+
),
|
|
216
223
|
get_many_docs: IDL.Func(
|
|
217
224
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
218
225
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
@@ -25,6 +25,26 @@ export const idlFactory = ({IDL}) => {
|
|
|
25
25
|
cycles: IDL.Nat,
|
|
26
26
|
destination_id: IDL.Principal
|
|
27
27
|
});
|
|
28
|
+
const AssetKey = IDL.Record({
|
|
29
|
+
token: IDL.Opt(IDL.Text),
|
|
30
|
+
collection: IDL.Text,
|
|
31
|
+
owner: IDL.Principal,
|
|
32
|
+
name: IDL.Text,
|
|
33
|
+
description: IDL.Opt(IDL.Text),
|
|
34
|
+
full_path: IDL.Text
|
|
35
|
+
});
|
|
36
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
37
|
+
modified: IDL.Nat64,
|
|
38
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
39
|
+
total_length: IDL.Nat
|
|
40
|
+
});
|
|
41
|
+
const AssetNoContent = IDL.Record({
|
|
42
|
+
key: AssetKey,
|
|
43
|
+
updated_at: IDL.Nat64,
|
|
44
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
+
created_at: IDL.Nat64
|
|
47
|
+
});
|
|
28
48
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
49
|
Deny: IDL.Null,
|
|
30
50
|
AllowAny: IDL.Null,
|
|
@@ -110,26 +130,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
110
130
|
matcher: IDL.Opt(ListMatcher),
|
|
111
131
|
paginate: IDL.Opt(ListPaginate)
|
|
112
132
|
});
|
|
113
|
-
const AssetKey = IDL.Record({
|
|
114
|
-
token: IDL.Opt(IDL.Text),
|
|
115
|
-
collection: IDL.Text,
|
|
116
|
-
owner: IDL.Principal,
|
|
117
|
-
name: IDL.Text,
|
|
118
|
-
description: IDL.Opt(IDL.Text),
|
|
119
|
-
full_path: IDL.Text
|
|
120
|
-
});
|
|
121
|
-
const AssetEncodingNoContent = IDL.Record({
|
|
122
|
-
modified: IDL.Nat64,
|
|
123
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
124
|
-
total_length: IDL.Nat
|
|
125
|
-
});
|
|
126
|
-
const AssetNoContent = IDL.Record({
|
|
127
|
-
key: AssetKey,
|
|
128
|
-
updated_at: IDL.Nat64,
|
|
129
|
-
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
130
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
131
|
-
created_at: IDL.Nat64
|
|
132
|
-
});
|
|
133
133
|
const ListResults = IDL.Record({
|
|
134
134
|
matches_pages: IDL.Opt(IDL.Nat64),
|
|
135
135
|
matches_length: IDL.Nat64,
|
|
@@ -194,6 +194,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
194
194
|
});
|
|
195
195
|
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
196
196
|
return IDL.Service({
|
|
197
|
+
build_version: IDL.Func([], [IDL.Text], ['query']),
|
|
197
198
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
198
199
|
count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
199
200
|
count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
@@ -211,8 +212,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
211
212
|
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
212
213
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
213
214
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
215
|
+
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
214
216
|
get_config: IDL.Func([], [Config], []),
|
|
215
217
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
218
|
+
get_many_assets: IDL.Func(
|
|
219
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
220
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
221
|
+
['query']
|
|
222
|
+
),
|
|
216
223
|
get_many_docs: IDL.Func(
|
|
217
224
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
218
225
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|