@junobuild/core 0.0.47 → 0.0.48-next-2024-04-28
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 +11 -0
- package/declarations/satellite/satellite.factory.did.js +10 -0
- package/declarations/satellite/satellite.factory.did.mjs +10 -0
- package/dist/browser/canisterStatus-XBZ7P3SA.js +2 -0
- package/dist/browser/chunk-DAMIJKS3.js +43 -0
- package/dist/browser/chunk-DAMIJKS3.js.map +7 -0
- package/dist/browser/index.js +19 -23
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +11 -0
- package/dist/declarations/satellite/satellite.factory.did.js +10 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +10 -0
- package/dist/node/index.mjs +49 -38
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/constants/auth.constants.d.ts +1 -0
- package/dist/types/providers/auth.providers.d.ts +10 -20
- package/dist/types/types/auth.types.d.ts +9 -0
- package/dist/workers/auth.worker.js +14 -9
- package/dist/workers/auth.worker.js.map +4 -4
- package/package.json +6 -6
- package/declarations/satellite/index.d.ts +0 -45
- package/declarations/satellite/index.js +0 -37
- package/dist/browser/canisterStatus-NVVVKUKM.js +0 -2
- package/dist/browser/chunk-572NAHJJ.js +0 -28
- package/dist/browser/chunk-572NAHJJ.js.map +0 -7
- package/dist/declarations/satellite/index.d.ts +0 -45
- package/dist/declarations/satellite/index.js +0 -37
- /package/dist/browser/{canisterStatus-NVVVKUKM.js.map → canisterStatus-XBZ7P3SA.js.map} +0 -0
|
@@ -22,6 +22,12 @@ export interface AssetNoContent {
|
|
|
22
22
|
headers: Array<[string, string]>;
|
|
23
23
|
created_at: bigint;
|
|
24
24
|
}
|
|
25
|
+
export interface AuthenticationConfig {
|
|
26
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
27
|
+
}
|
|
28
|
+
export interface AuthenticationConfigInternetIdentity {
|
|
29
|
+
derivation_origin: [] | [string];
|
|
30
|
+
}
|
|
25
31
|
export interface CommitBatch {
|
|
26
32
|
batch_id: bigint;
|
|
27
33
|
headers: Array<[string, string]>;
|
|
@@ -124,6 +130,7 @@ export interface MemorySize {
|
|
|
124
130
|
}
|
|
125
131
|
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
126
132
|
export interface Rule {
|
|
133
|
+
max_capacity: [] | [number];
|
|
127
134
|
memory: [] | [Memory];
|
|
128
135
|
updated_at: bigint;
|
|
129
136
|
max_size: [] | [bigint];
|
|
@@ -148,6 +155,7 @@ export interface SetDoc {
|
|
|
148
155
|
description: [] | [string];
|
|
149
156
|
}
|
|
150
157
|
export interface SetRule {
|
|
158
|
+
max_capacity: [] | [number];
|
|
151
159
|
memory: [] | [Memory];
|
|
152
160
|
updated_at: [] | [bigint];
|
|
153
161
|
max_size: [] | [bigint];
|
|
@@ -209,6 +217,7 @@ export interface _SERVICE {
|
|
|
209
217
|
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
210
218
|
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
211
219
|
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
220
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
212
221
|
get_config: ActorMethod<[], Config>;
|
|
213
222
|
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
214
223
|
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
@@ -225,6 +234,7 @@ export interface _SERVICE {
|
|
|
225
234
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
226
235
|
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
227
236
|
memory_size: ActorMethod<[], MemorySize>;
|
|
237
|
+
set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
|
|
228
238
|
set_config: ActorMethod<[Config], undefined>;
|
|
229
239
|
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
230
240
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
@@ -235,3 +245,4 @@ export interface _SERVICE {
|
|
|
235
245
|
version: ActorMethod<[], string>;
|
|
236
246
|
}
|
|
237
247
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
248
|
+
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -45,6 +45,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
45
45
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
46
|
created_at: IDL.Nat64
|
|
47
47
|
});
|
|
48
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
49
|
+
derivation_origin: IDL.Opt(IDL.Text)
|
|
50
|
+
});
|
|
51
|
+
const AuthenticationConfig = IDL.Record({
|
|
52
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
|
|
53
|
+
});
|
|
48
54
|
const StorageConfigIFrame = IDL.Variant({
|
|
49
55
|
Deny: IDL.Null,
|
|
50
56
|
AllowAny: IDL.Null,
|
|
@@ -156,6 +162,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
156
162
|
Managed: IDL.Null
|
|
157
163
|
});
|
|
158
164
|
const Rule = IDL.Record({
|
|
165
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
159
166
|
memory: IDL.Opt(Memory),
|
|
160
167
|
updated_at: IDL.Nat64,
|
|
161
168
|
max_size: IDL.Opt(IDL.Nat),
|
|
@@ -180,6 +187,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
180
187
|
description: IDL.Opt(IDL.Text)
|
|
181
188
|
});
|
|
182
189
|
const SetRule = IDL.Record({
|
|
190
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
183
191
|
memory: IDL.Opt(Memory),
|
|
184
192
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
185
193
|
max_size: IDL.Opt(IDL.Nat),
|
|
@@ -213,6 +221,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
213
221
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
214
222
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
215
223
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
224
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
216
225
|
get_config: IDL.Func([], [Config], []),
|
|
217
226
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
218
227
|
get_many_assets: IDL.Func(
|
|
@@ -238,6 +247,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
238
247
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
239
248
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
240
249
|
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
250
|
+
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
241
251
|
set_config: IDL.Func([Config], [], []),
|
|
242
252
|
set_controllers: IDL.Func(
|
|
243
253
|
[SetControllersArgs],
|
|
@@ -45,6 +45,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
45
45
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
46
46
|
created_at: IDL.Nat64
|
|
47
47
|
});
|
|
48
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
49
|
+
derivation_origin: IDL.Opt(IDL.Text)
|
|
50
|
+
});
|
|
51
|
+
const AuthenticationConfig = IDL.Record({
|
|
52
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
|
|
53
|
+
});
|
|
48
54
|
const StorageConfigIFrame = IDL.Variant({
|
|
49
55
|
Deny: IDL.Null,
|
|
50
56
|
AllowAny: IDL.Null,
|
|
@@ -156,6 +162,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
156
162
|
Managed: IDL.Null
|
|
157
163
|
});
|
|
158
164
|
const Rule = IDL.Record({
|
|
165
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
159
166
|
memory: IDL.Opt(Memory),
|
|
160
167
|
updated_at: IDL.Nat64,
|
|
161
168
|
max_size: IDL.Opt(IDL.Nat),
|
|
@@ -180,6 +187,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
180
187
|
description: IDL.Opt(IDL.Text)
|
|
181
188
|
});
|
|
182
189
|
const SetRule = IDL.Record({
|
|
190
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
183
191
|
memory: IDL.Opt(Memory),
|
|
184
192
|
updated_at: IDL.Opt(IDL.Nat64),
|
|
185
193
|
max_size: IDL.Opt(IDL.Nat),
|
|
@@ -213,6 +221,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
213
221
|
del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
|
|
214
222
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
215
223
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
224
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
216
225
|
get_config: IDL.Func([], [Config], []),
|
|
217
226
|
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
218
227
|
get_many_assets: IDL.Func(
|
|
@@ -238,6 +247,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
238
247
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
239
248
|
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
240
249
|
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
250
|
+
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
241
251
|
set_config: IDL.Func([Config], [], []),
|
|
242
252
|
set_controllers: IDL.Func(
|
|
243
253
|
[SetControllersArgs],
|