@junobuild/core 0.0.48 → 0.0.49
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 -3
- package/declarations/satellite/satellite.factory.did.js +23 -6
- package/declarations/satellite/satellite.factory.did.mjs +23 -6
- package/dist/browser/canisterStatus-TBLYKI2M.js +2 -0
- package/dist/browser/{chunk-DAMIJKS3.js → chunk-JAXPYESO.js} +8 -8
- package/dist/browser/{chunk-DAMIJKS3.js.map → chunk-JAXPYESO.js.map} +3 -3
- package/dist/browser/index.js +27 -27
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +17 -3
- package/dist/declarations/satellite/satellite.factory.did.js +23 -6
- package/dist/declarations/satellite/satellite.factory.did.mjs +23 -6
- package/dist/node/index.mjs +36 -36
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/doc.api.d.ts +1 -1
- package/dist/types/api/storage.api.d.ts +3 -3
- package/dist/types/services/doc.services.d.ts +9 -9
- package/dist/types/services/storage.services.d.ts +9 -9
- package/dist/types/types/doc.types.d.ts +1 -0
- package/dist/types/utils/actor.utils.d.ts +1 -1
- package/dist/workers/auth.worker.js +17 -12
- package/dist/workers/auth.worker.js.map +4 -4
- package/package.json +5 -5
- package/declarations/satellite/index.d.ts +0 -45
- package/declarations/satellite/index.js +0 -37
- package/dist/browser/canisterStatus-XBZ7P3SA.js +0 -2
- package/dist/declarations/satellite/index.d.ts +0 -45
- package/dist/declarations/satellite/index.js +0 -37
- /package/dist/browser/{canisterStatus-XBZ7P3SA.js.map → canisterStatus-TBLYKI2M.js.map} +0 -0
|
@@ -21,6 +21,13 @@ export interface AssetNoContent {
|
|
|
21
21
|
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
22
22
|
headers: Array<[string, string]>;
|
|
23
23
|
created_at: bigint;
|
|
24
|
+
version: [] | [bigint];
|
|
25
|
+
}
|
|
26
|
+
export interface AuthenticationConfig {
|
|
27
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
28
|
+
}
|
|
29
|
+
export interface AuthenticationConfigInternetIdentity {
|
|
30
|
+
derivation_origin: [] | [string];
|
|
24
31
|
}
|
|
25
32
|
export interface CommitBatch {
|
|
26
33
|
batch_id: bigint;
|
|
@@ -41,10 +48,11 @@ export type ControllerScope = {Write: null} | {Admin: null};
|
|
|
41
48
|
export interface CustomDomain {
|
|
42
49
|
updated_at: bigint;
|
|
43
50
|
created_at: bigint;
|
|
51
|
+
version: [] | [bigint];
|
|
44
52
|
bn_id: [] | [string];
|
|
45
53
|
}
|
|
46
54
|
export interface DelDoc {
|
|
47
|
-
|
|
55
|
+
version: [] | [bigint];
|
|
48
56
|
}
|
|
49
57
|
export interface DeleteControllersArgs {
|
|
50
58
|
controllers: Array<Principal>;
|
|
@@ -59,6 +67,7 @@ export interface Doc {
|
|
|
59
67
|
data: Uint8Array | number[];
|
|
60
68
|
description: [] | [string];
|
|
61
69
|
created_at: bigint;
|
|
70
|
+
version: [] | [bigint];
|
|
62
71
|
}
|
|
63
72
|
export interface HttpRequest {
|
|
64
73
|
url: string;
|
|
@@ -130,6 +139,7 @@ export interface Rule {
|
|
|
130
139
|
max_size: [] | [bigint];
|
|
131
140
|
read: Permission;
|
|
132
141
|
created_at: bigint;
|
|
142
|
+
version: [] | [bigint];
|
|
133
143
|
mutable_permissions: [] | [boolean];
|
|
134
144
|
write: Permission;
|
|
135
145
|
}
|
|
@@ -144,16 +154,16 @@ export interface SetControllersArgs {
|
|
|
144
154
|
controllers: Array<Principal>;
|
|
145
155
|
}
|
|
146
156
|
export interface SetDoc {
|
|
147
|
-
updated_at: [] | [bigint];
|
|
148
157
|
data: Uint8Array | number[];
|
|
149
158
|
description: [] | [string];
|
|
159
|
+
version: [] | [bigint];
|
|
150
160
|
}
|
|
151
161
|
export interface SetRule {
|
|
152
162
|
max_capacity: [] | [number];
|
|
153
163
|
memory: [] | [Memory];
|
|
154
|
-
updated_at: [] | [bigint];
|
|
155
164
|
max_size: [] | [bigint];
|
|
156
165
|
read: Permission;
|
|
166
|
+
version: [] | [bigint];
|
|
157
167
|
mutable_permissions: [] | [boolean];
|
|
158
168
|
write: Permission;
|
|
159
169
|
}
|
|
@@ -161,9 +171,11 @@ export interface StorageConfig {
|
|
|
161
171
|
iframe: [] | [StorageConfigIFrame];
|
|
162
172
|
rewrites: Array<[string, string]>;
|
|
163
173
|
headers: Array<[string, Array<[string, string]>]>;
|
|
174
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
164
175
|
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
165
176
|
}
|
|
166
177
|
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
178
|
+
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
167
179
|
export interface StorageConfigRedirect {
|
|
168
180
|
status_code: number;
|
|
169
181
|
location: string;
|
|
@@ -211,6 +223,7 @@ export interface _SERVICE {
|
|
|
211
223
|
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
212
224
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
213
225
|
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
226
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
214
227
|
get_config: ActorMethod<[], Config>;
|
|
215
228
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
216
229
|
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
@@ -227,6 +240,7 @@ export interface _SERVICE {
|
|
|
227
240
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
228
241
|
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
229
242
|
memory_size: ActorMethod<[], MemorySize>;
|
|
243
|
+
set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
|
|
230
244
|
set_config: ActorMethod<[Config], undefined>;
|
|
231
245
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
232
246
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
@@ -19,7 +19,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
scope: ControllerScope,
|
|
20
20
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
21
21
|
});
|
|
22
|
-
const DelDoc = IDL.Record({
|
|
22
|
+
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
24
|
const DepositCyclesArgs = IDL.Record({
|
|
25
25
|
cycles: IDL.Nat,
|
|
@@ -43,13 +43,24 @@ export const idlFactory = ({IDL}) => {
|
|
|
43
43
|
updated_at: IDL.Nat64,
|
|
44
44
|
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
45
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
-
created_at: IDL.Nat64
|
|
46
|
+
created_at: IDL.Nat64,
|
|
47
|
+
version: IDL.Opt(IDL.Nat64)
|
|
48
|
+
});
|
|
49
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
50
|
+
derivation_origin: IDL.Opt(IDL.Text)
|
|
51
|
+
});
|
|
52
|
+
const AuthenticationConfig = IDL.Record({
|
|
53
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
|
|
47
54
|
});
|
|
48
55
|
const StorageConfigIFrame = IDL.Variant({
|
|
49
56
|
Deny: IDL.Null,
|
|
50
57
|
AllowAny: IDL.Null,
|
|
51
58
|
SameOrigin: IDL.Null
|
|
52
59
|
});
|
|
60
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
61
|
+
Deny: IDL.Null,
|
|
62
|
+
Allow: IDL.Null
|
|
63
|
+
});
|
|
53
64
|
const StorageConfigRedirect = IDL.Record({
|
|
54
65
|
status_code: IDL.Nat16,
|
|
55
66
|
location: IDL.Text
|
|
@@ -58,6 +69,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
58
69
|
iframe: IDL.Opt(StorageConfigIFrame),
|
|
59
70
|
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
60
71
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
72
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
61
73
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
62
74
|
});
|
|
63
75
|
const Config = IDL.Record({storage: StorageConfig});
|
|
@@ -66,7 +78,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
66
78
|
owner: IDL.Principal,
|
|
67
79
|
data: IDL.Vec(IDL.Nat8),
|
|
68
80
|
description: IDL.Opt(IDL.Text),
|
|
69
|
-
created_at: IDL.Nat64
|
|
81
|
+
created_at: IDL.Nat64,
|
|
82
|
+
version: IDL.Opt(IDL.Nat64)
|
|
70
83
|
});
|
|
71
84
|
const HttpRequest = IDL.Record({
|
|
72
85
|
url: IDL.Text,
|
|
@@ -140,6 +153,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
153
|
const CustomDomain = IDL.Record({
|
|
141
154
|
updated_at: IDL.Nat64,
|
|
142
155
|
created_at: IDL.Nat64,
|
|
156
|
+
version: IDL.Opt(IDL.Nat64),
|
|
143
157
|
bn_id: IDL.Opt(IDL.Text)
|
|
144
158
|
});
|
|
145
159
|
const ListResults_1 = IDL.Record({
|
|
@@ -162,6 +176,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
162
176
|
max_size: IDL.Opt(IDL.Nat),
|
|
163
177
|
read: Permission,
|
|
164
178
|
created_at: IDL.Nat64,
|
|
179
|
+
version: IDL.Opt(IDL.Nat64),
|
|
165
180
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
166
181
|
write: Permission
|
|
167
182
|
});
|
|
@@ -176,16 +191,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
176
191
|
controllers: IDL.Vec(IDL.Principal)
|
|
177
192
|
});
|
|
178
193
|
const SetDoc = IDL.Record({
|
|
179
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
180
194
|
data: IDL.Vec(IDL.Nat8),
|
|
181
|
-
description: IDL.Opt(IDL.Text)
|
|
195
|
+
description: IDL.Opt(IDL.Text),
|
|
196
|
+
version: IDL.Opt(IDL.Nat64)
|
|
182
197
|
});
|
|
183
198
|
const SetRule = IDL.Record({
|
|
184
199
|
max_capacity: IDL.Opt(IDL.Nat32),
|
|
185
200
|
memory: IDL.Opt(Memory),
|
|
186
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
187
201
|
max_size: IDL.Opt(IDL.Nat),
|
|
188
202
|
read: Permission,
|
|
203
|
+
version: IDL.Opt(IDL.Nat64),
|
|
189
204
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
190
205
|
write: Permission
|
|
191
206
|
});
|
|
@@ -215,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
215
230
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
216
231
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
217
232
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
233
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
218
234
|
get_config: IDL.Func([], [Config], []),
|
|
219
235
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
220
236
|
get_many_assets: IDL.Func(
|
|
@@ -240,6 +256,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
240
256
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
241
257
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
242
258
|
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
259
|
+
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
243
260
|
set_config: IDL.Func([Config], [], []),
|
|
244
261
|
set_controllers: IDL.Func(
|
|
245
262
|
[SetControllersArgs],
|
|
@@ -19,7 +19,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
scope: ControllerScope,
|
|
20
20
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
21
21
|
});
|
|
22
|
-
const DelDoc = IDL.Record({
|
|
22
|
+
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
23
23
|
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
24
|
const DepositCyclesArgs = IDL.Record({
|
|
25
25
|
cycles: IDL.Nat,
|
|
@@ -43,13 +43,24 @@ export const idlFactory = ({IDL}) => {
|
|
|
43
43
|
updated_at: IDL.Nat64,
|
|
44
44
|
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
45
45
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
|
-
created_at: IDL.Nat64
|
|
46
|
+
created_at: IDL.Nat64,
|
|
47
|
+
version: IDL.Opt(IDL.Nat64)
|
|
48
|
+
});
|
|
49
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
50
|
+
derivation_origin: IDL.Opt(IDL.Text)
|
|
51
|
+
});
|
|
52
|
+
const AuthenticationConfig = IDL.Record({
|
|
53
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
|
|
47
54
|
});
|
|
48
55
|
const StorageConfigIFrame = IDL.Variant({
|
|
49
56
|
Deny: IDL.Null,
|
|
50
57
|
AllowAny: IDL.Null,
|
|
51
58
|
SameOrigin: IDL.Null
|
|
52
59
|
});
|
|
60
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
61
|
+
Deny: IDL.Null,
|
|
62
|
+
Allow: IDL.Null
|
|
63
|
+
});
|
|
53
64
|
const StorageConfigRedirect = IDL.Record({
|
|
54
65
|
status_code: IDL.Nat16,
|
|
55
66
|
location: IDL.Text
|
|
@@ -58,6 +69,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
58
69
|
iframe: IDL.Opt(StorageConfigIFrame),
|
|
59
70
|
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
60
71
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
72
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
61
73
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
62
74
|
});
|
|
63
75
|
const Config = IDL.Record({storage: StorageConfig});
|
|
@@ -66,7 +78,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
66
78
|
owner: IDL.Principal,
|
|
67
79
|
data: IDL.Vec(IDL.Nat8),
|
|
68
80
|
description: IDL.Opt(IDL.Text),
|
|
69
|
-
created_at: IDL.Nat64
|
|
81
|
+
created_at: IDL.Nat64,
|
|
82
|
+
version: IDL.Opt(IDL.Nat64)
|
|
70
83
|
});
|
|
71
84
|
const HttpRequest = IDL.Record({
|
|
72
85
|
url: IDL.Text,
|
|
@@ -140,6 +153,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
153
|
const CustomDomain = IDL.Record({
|
|
141
154
|
updated_at: IDL.Nat64,
|
|
142
155
|
created_at: IDL.Nat64,
|
|
156
|
+
version: IDL.Opt(IDL.Nat64),
|
|
143
157
|
bn_id: IDL.Opt(IDL.Text)
|
|
144
158
|
});
|
|
145
159
|
const ListResults_1 = IDL.Record({
|
|
@@ -162,6 +176,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
162
176
|
max_size: IDL.Opt(IDL.Nat),
|
|
163
177
|
read: Permission,
|
|
164
178
|
created_at: IDL.Nat64,
|
|
179
|
+
version: IDL.Opt(IDL.Nat64),
|
|
165
180
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
166
181
|
write: Permission
|
|
167
182
|
});
|
|
@@ -176,16 +191,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
176
191
|
controllers: IDL.Vec(IDL.Principal)
|
|
177
192
|
});
|
|
178
193
|
const SetDoc = IDL.Record({
|
|
179
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
180
194
|
data: IDL.Vec(IDL.Nat8),
|
|
181
|
-
description: IDL.Opt(IDL.Text)
|
|
195
|
+
description: IDL.Opt(IDL.Text),
|
|
196
|
+
version: IDL.Opt(IDL.Nat64)
|
|
182
197
|
});
|
|
183
198
|
const SetRule = IDL.Record({
|
|
184
199
|
max_capacity: IDL.Opt(IDL.Nat32),
|
|
185
200
|
memory: IDL.Opt(Memory),
|
|
186
|
-
updated_at: IDL.Opt(IDL.Nat64),
|
|
187
201
|
max_size: IDL.Opt(IDL.Nat),
|
|
188
202
|
read: Permission,
|
|
203
|
+
version: IDL.Opt(IDL.Nat64),
|
|
189
204
|
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
190
205
|
write: Permission
|
|
191
206
|
});
|
|
@@ -215,6 +230,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
215
230
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
216
231
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
217
232
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
233
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
218
234
|
get_config: IDL.Func([], [Config], []),
|
|
219
235
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
220
236
|
get_many_assets: IDL.Func(
|
|
@@ -240,6 +256,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
240
256
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
241
257
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
242
258
|
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
259
|
+
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
243
260
|
set_config: IDL.Func([Config], [], []),
|
|
244
261
|
set_controllers: IDL.Func(
|
|
245
262
|
[SetControllersArgs],
|