@junobuild/core 0.0.47 → 0.0.48-next-2024-05-06

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.
@@ -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
- updated_at: [] | [bigint];
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;
@@ -124,11 +133,13 @@ export interface MemorySize {
124
133
  }
125
134
  export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
126
135
  export interface Rule {
136
+ max_capacity: [] | [number];
127
137
  memory: [] | [Memory];
128
138
  updated_at: bigint;
129
139
  max_size: [] | [bigint];
130
140
  read: Permission;
131
141
  created_at: bigint;
142
+ version: [] | [bigint];
132
143
  mutable_permissions: [] | [boolean];
133
144
  write: Permission;
134
145
  }
@@ -143,15 +154,16 @@ export interface SetControllersArgs {
143
154
  controllers: Array<Principal>;
144
155
  }
145
156
  export interface SetDoc {
146
- updated_at: [] | [bigint];
147
157
  data: Uint8Array | number[];
148
158
  description: [] | [string];
159
+ version: [] | [bigint];
149
160
  }
150
161
  export interface SetRule {
162
+ max_capacity: [] | [number];
151
163
  memory: [] | [Memory];
152
- updated_at: [] | [bigint];
153
164
  max_size: [] | [bigint];
154
165
  read: Permission;
166
+ version: [] | [bigint];
155
167
  mutable_permissions: [] | [boolean];
156
168
  write: Permission;
157
169
  }
@@ -209,6 +221,7 @@ export interface _SERVICE {
209
221
  del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
210
222
  deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
211
223
  get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
224
+ get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
212
225
  get_config: ActorMethod<[], Config>;
213
226
  get_doc: ActorMethod<[string, string], [] | [Doc]>;
214
227
  get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
@@ -225,6 +238,7 @@ export interface _SERVICE {
225
238
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
226
239
  list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
227
240
  memory_size: ActorMethod<[], MemorySize>;
241
+ set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
228
242
  set_config: ActorMethod<[Config], undefined>;
229
243
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
230
244
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
@@ -235,3 +249,4 @@ export interface _SERVICE {
235
249
  version: ActorMethod<[], string>;
236
250
  }
237
251
  export declare const idlFactory: IDL.InterfaceFactory;
252
+ export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -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({updated_at: IDL.Opt(IDL.Nat64)});
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,7 +43,14 @@ 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,
@@ -66,7 +73,8 @@ export const idlFactory = ({IDL}) => {
66
73
  owner: IDL.Principal,
67
74
  data: IDL.Vec(IDL.Nat8),
68
75
  description: IDL.Opt(IDL.Text),
69
- created_at: IDL.Nat64
76
+ created_at: IDL.Nat64,
77
+ version: IDL.Opt(IDL.Nat64)
70
78
  });
71
79
  const HttpRequest = IDL.Record({
72
80
  url: IDL.Text,
@@ -140,6 +148,7 @@ export const idlFactory = ({IDL}) => {
140
148
  const CustomDomain = IDL.Record({
141
149
  updated_at: IDL.Nat64,
142
150
  created_at: IDL.Nat64,
151
+ version: IDL.Opt(IDL.Nat64),
143
152
  bn_id: IDL.Opt(IDL.Text)
144
153
  });
145
154
  const ListResults_1 = IDL.Record({
@@ -156,11 +165,13 @@ export const idlFactory = ({IDL}) => {
156
165
  Managed: IDL.Null
157
166
  });
158
167
  const Rule = IDL.Record({
168
+ max_capacity: IDL.Opt(IDL.Nat32),
159
169
  memory: IDL.Opt(Memory),
160
170
  updated_at: IDL.Nat64,
161
171
  max_size: IDL.Opt(IDL.Nat),
162
172
  read: Permission,
163
173
  created_at: IDL.Nat64,
174
+ version: IDL.Opt(IDL.Nat64),
164
175
  mutable_permissions: IDL.Opt(IDL.Bool),
165
176
  write: Permission
166
177
  });
@@ -175,15 +186,16 @@ export const idlFactory = ({IDL}) => {
175
186
  controllers: IDL.Vec(IDL.Principal)
176
187
  });
177
188
  const SetDoc = IDL.Record({
178
- updated_at: IDL.Opt(IDL.Nat64),
179
189
  data: IDL.Vec(IDL.Nat8),
180
- description: IDL.Opt(IDL.Text)
190
+ description: IDL.Opt(IDL.Text),
191
+ version: IDL.Opt(IDL.Nat64)
181
192
  });
182
193
  const SetRule = IDL.Record({
194
+ max_capacity: IDL.Opt(IDL.Nat32),
183
195
  memory: IDL.Opt(Memory),
184
- updated_at: IDL.Opt(IDL.Nat64),
185
196
  max_size: IDL.Opt(IDL.Nat),
186
197
  read: Permission,
198
+ version: IDL.Opt(IDL.Nat64),
187
199
  mutable_permissions: IDL.Opt(IDL.Bool),
188
200
  write: Permission
189
201
  });
@@ -213,6 +225,7 @@ export const idlFactory = ({IDL}) => {
213
225
  del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
214
226
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
215
227
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
228
+ get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
216
229
  get_config: IDL.Func([], [Config], []),
217
230
  get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
218
231
  get_many_assets: IDL.Func(
@@ -238,6 +251,7 @@ export const idlFactory = ({IDL}) => {
238
251
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
239
252
  list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
240
253
  memory_size: IDL.Func([], [MemorySize], ['query']),
254
+ set_auth_config: IDL.Func([AuthenticationConfig], [], []),
241
255
  set_config: IDL.Func([Config], [], []),
242
256
  set_controllers: IDL.Func(
243
257
  [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({updated_at: IDL.Opt(IDL.Nat64)});
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,7 +43,14 @@ 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,
@@ -66,7 +73,8 @@ export const idlFactory = ({IDL}) => {
66
73
  owner: IDL.Principal,
67
74
  data: IDL.Vec(IDL.Nat8),
68
75
  description: IDL.Opt(IDL.Text),
69
- created_at: IDL.Nat64
76
+ created_at: IDL.Nat64,
77
+ version: IDL.Opt(IDL.Nat64)
70
78
  });
71
79
  const HttpRequest = IDL.Record({
72
80
  url: IDL.Text,
@@ -140,6 +148,7 @@ export const idlFactory = ({IDL}) => {
140
148
  const CustomDomain = IDL.Record({
141
149
  updated_at: IDL.Nat64,
142
150
  created_at: IDL.Nat64,
151
+ version: IDL.Opt(IDL.Nat64),
143
152
  bn_id: IDL.Opt(IDL.Text)
144
153
  });
145
154
  const ListResults_1 = IDL.Record({
@@ -156,11 +165,13 @@ export const idlFactory = ({IDL}) => {
156
165
  Managed: IDL.Null
157
166
  });
158
167
  const Rule = IDL.Record({
168
+ max_capacity: IDL.Opt(IDL.Nat32),
159
169
  memory: IDL.Opt(Memory),
160
170
  updated_at: IDL.Nat64,
161
171
  max_size: IDL.Opt(IDL.Nat),
162
172
  read: Permission,
163
173
  created_at: IDL.Nat64,
174
+ version: IDL.Opt(IDL.Nat64),
164
175
  mutable_permissions: IDL.Opt(IDL.Bool),
165
176
  write: Permission
166
177
  });
@@ -175,15 +186,16 @@ export const idlFactory = ({IDL}) => {
175
186
  controllers: IDL.Vec(IDL.Principal)
176
187
  });
177
188
  const SetDoc = IDL.Record({
178
- updated_at: IDL.Opt(IDL.Nat64),
179
189
  data: IDL.Vec(IDL.Nat8),
180
- description: IDL.Opt(IDL.Text)
190
+ description: IDL.Opt(IDL.Text),
191
+ version: IDL.Opt(IDL.Nat64)
181
192
  });
182
193
  const SetRule = IDL.Record({
194
+ max_capacity: IDL.Opt(IDL.Nat32),
183
195
  memory: IDL.Opt(Memory),
184
- updated_at: IDL.Opt(IDL.Nat64),
185
196
  max_size: IDL.Opt(IDL.Nat),
186
197
  read: Permission,
198
+ version: IDL.Opt(IDL.Nat64),
187
199
  mutable_permissions: IDL.Opt(IDL.Bool),
188
200
  write: Permission
189
201
  });
@@ -213,6 +225,7 @@ export const idlFactory = ({IDL}) => {
213
225
  del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
214
226
  deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
215
227
  get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
228
+ get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
216
229
  get_config: IDL.Func([], [Config], []),
217
230
  get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
218
231
  get_many_assets: IDL.Func(
@@ -238,6 +251,7 @@ export const idlFactory = ({IDL}) => {
238
251
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
239
252
  list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
240
253
  memory_size: IDL.Func([], [MemorySize], ['query']),
254
+ set_auth_config: IDL.Func([AuthenticationConfig], [], []),
241
255
  set_config: IDL.Func([Config], [], []),
242
256
  set_controllers: IDL.Func(
243
257
  [SetControllersArgs],
@@ -0,0 +1,2 @@
1
+ import{Q as a,R as b,S as c,T as d}from"./chunk-BECG7NRO.js";export{a as CustomPath,d as encodePath,c as fetchNodeKeys,b as request};
2
+ //# sourceMappingURL=canisterStatus-GBK6MA5G.js.map