@junobuild/core 0.0.36 → 0.0.38-next-2023-12-08

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.
@@ -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,9 +195,14 @@ 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]>;
205
+ get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
189
206
  http_request: ActorMethod<[HttpRequest], HttpResponse>;
190
207
  http_request_streaming_callback: ActorMethod<
191
208
  [StreamingCallbackToken],
@@ -201,6 +218,7 @@ export interface _SERVICE {
201
218
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
202
219
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
203
220
  set_doc: ActorMethod<[string, string, SetDoc], Doc>;
221
+ set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
204
222
  set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
205
223
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
206
224
  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,9 +203,18 @@ 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']),
213
+ get_many_docs: IDL.Func(
214
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
215
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
216
+ ['query']
217
+ ),
193
218
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
194
219
  http_request_streaming_callback: IDL.Func(
195
220
  [StreamingCallbackToken],
@@ -210,6 +235,11 @@ export const idlFactory = ({IDL}) => {
210
235
  ),
211
236
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
212
237
  set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
238
+ set_many_docs: IDL.Func(
239
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
240
+ [IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
241
+ []
242
+ ),
213
243
  set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
214
244
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
215
245
  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,9 +203,18 @@ 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']),
213
+ get_many_docs: IDL.Func(
214
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
215
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
216
+ ['query']
217
+ ),
193
218
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
194
219
  http_request_streaming_callback: IDL.Func(
195
220
  [StreamingCallbackToken],
@@ -210,6 +235,11 @@ export const idlFactory = ({IDL}) => {
210
235
  ),
211
236
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
212
237
  set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
238
+ set_many_docs: IDL.Func(
239
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
240
+ [IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
241
+ []
242
+ ),
213
243
  set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
214
244
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
215
245
  version: IDL.Func([], [IDL.Text], ['query'])