@junobuild/ic-client 1.0.0 → 1.1.0
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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/console/console.did.d.ts +5 -3
- package/dist/declarations/console/console.factory.certified.did.js +10 -7
- package/dist/declarations/console/console.factory.did.js +10 -7
- package/dist/declarations/console/console.factory.did.mjs +10 -7
- package/dist/declarations/satellite/satellite.did.d.ts +5 -0
- package/dist/declarations/satellite/satellite.factory.certified.did.js +6 -0
- package/dist/declarations/satellite/satellite.factory.did.js +6 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +6 -0
- package/dist/declarations/sputnik/sputnik.did.d.ts +5 -0
- package/dist/declarations/sputnik/sputnik.factory.certified.did.js +6 -0
- package/dist/declarations/sputnik/sputnik.factory.did.js +6 -0
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -266,9 +266,9 @@ export interface _SERVICE {
|
|
|
266
266
|
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
267
267
|
add_invitation_code: ActorMethod<[string], undefined>;
|
|
268
268
|
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
269
|
-
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
270
269
|
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
271
270
|
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
271
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
272
272
|
count_proposals: ActorMethod<[], bigint>;
|
|
273
273
|
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
274
274
|
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
@@ -287,9 +287,12 @@ export interface _SERVICE {
|
|
|
287
287
|
[StreamingCallbackToken],
|
|
288
288
|
StreamingCallbackHttpResponse
|
|
289
289
|
>;
|
|
290
|
-
init_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
291
290
|
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
292
291
|
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
292
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
293
|
+
[Array<InitAssetKey>, bigint],
|
|
294
|
+
Array<[string, InitUploadResult]>
|
|
295
|
+
>;
|
|
293
296
|
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
294
297
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
295
298
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
@@ -304,7 +307,6 @@ export interface _SERVICE {
|
|
|
304
307
|
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
305
308
|
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
306
309
|
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
307
|
-
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
308
310
|
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
309
311
|
}
|
|
310
312
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
@@ -5,15 +5,15 @@ export const idlFactory = ({IDL}) => {
|
|
|
5
5
|
mission_control_id: IDL.Principal,
|
|
6
6
|
user: IDL.Principal
|
|
7
7
|
});
|
|
8
|
+
const CommitProposal = IDL.Record({
|
|
9
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
10
|
+
proposal_id: IDL.Nat
|
|
11
|
+
});
|
|
8
12
|
const CommitBatch = IDL.Record({
|
|
9
13
|
batch_id: IDL.Nat,
|
|
10
14
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
11
15
|
chunk_ids: IDL.Vec(IDL.Nat)
|
|
12
16
|
});
|
|
13
|
-
const CommitProposal = IDL.Record({
|
|
14
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
15
|
-
proposal_id: IDL.Nat
|
|
16
|
-
});
|
|
17
17
|
const CreateCanisterArgs = IDL.Record({
|
|
18
18
|
block_index: IDL.Opt(IDL.Nat64),
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
@@ -273,9 +273,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
273
273
|
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
274
274
|
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
275
275
|
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], []),
|
|
276
|
-
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
277
276
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
278
277
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
278
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
279
|
count_proposals: IDL.Func([], [IDL.Nat64], []),
|
|
280
280
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
281
|
create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
@@ -295,9 +295,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
295
295
|
[StreamingCallbackHttpResponse],
|
|
296
296
|
[]
|
|
297
297
|
),
|
|
298
|
-
init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
299
298
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
300
299
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
300
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
301
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
302
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
303
|
+
[]
|
|
304
|
+
),
|
|
301
305
|
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
|
|
302
306
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
303
307
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
@@ -316,7 +320,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
316
320
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
317
321
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
318
322
|
update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
319
|
-
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
320
323
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
321
324
|
});
|
|
322
325
|
};
|
|
@@ -5,15 +5,15 @@ export const idlFactory = ({IDL}) => {
|
|
|
5
5
|
mission_control_id: IDL.Principal,
|
|
6
6
|
user: IDL.Principal
|
|
7
7
|
});
|
|
8
|
+
const CommitProposal = IDL.Record({
|
|
9
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
10
|
+
proposal_id: IDL.Nat
|
|
11
|
+
});
|
|
8
12
|
const CommitBatch = IDL.Record({
|
|
9
13
|
batch_id: IDL.Nat,
|
|
10
14
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
11
15
|
chunk_ids: IDL.Vec(IDL.Nat)
|
|
12
16
|
});
|
|
13
|
-
const CommitProposal = IDL.Record({
|
|
14
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
15
|
-
proposal_id: IDL.Nat
|
|
16
|
-
});
|
|
17
17
|
const CreateCanisterArgs = IDL.Record({
|
|
18
18
|
block_index: IDL.Opt(IDL.Nat64),
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
@@ -273,9 +273,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
273
273
|
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
274
274
|
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
275
275
|
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
276
|
-
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
277
276
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
278
277
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
278
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
279
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
280
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
281
|
create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
@@ -295,9 +295,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
295
295
|
[StreamingCallbackHttpResponse],
|
|
296
296
|
['query']
|
|
297
297
|
),
|
|
298
|
-
init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
299
298
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
300
299
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
300
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
301
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
302
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
303
|
+
[]
|
|
304
|
+
),
|
|
301
305
|
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
|
|
302
306
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
303
307
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
@@ -316,7 +320,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
316
320
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
317
321
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
318
322
|
update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
319
|
-
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
320
323
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
321
324
|
});
|
|
322
325
|
};
|
|
@@ -5,15 +5,15 @@ export const idlFactory = ({IDL}) => {
|
|
|
5
5
|
mission_control_id: IDL.Principal,
|
|
6
6
|
user: IDL.Principal
|
|
7
7
|
});
|
|
8
|
+
const CommitProposal = IDL.Record({
|
|
9
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
10
|
+
proposal_id: IDL.Nat
|
|
11
|
+
});
|
|
8
12
|
const CommitBatch = IDL.Record({
|
|
9
13
|
batch_id: IDL.Nat,
|
|
10
14
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
11
15
|
chunk_ids: IDL.Vec(IDL.Nat)
|
|
12
16
|
});
|
|
13
|
-
const CommitProposal = IDL.Record({
|
|
14
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
15
|
-
proposal_id: IDL.Nat
|
|
16
|
-
});
|
|
17
17
|
const CreateCanisterArgs = IDL.Record({
|
|
18
18
|
block_index: IDL.Opt(IDL.Nat64),
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
@@ -273,9 +273,9 @@ export const idlFactory = ({IDL}) => {
|
|
|
273
273
|
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
274
274
|
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
275
275
|
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
276
|
-
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
277
276
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
278
277
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
278
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
279
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
280
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
281
|
create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
@@ -295,9 +295,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
295
295
|
[StreamingCallbackHttpResponse],
|
|
296
296
|
['query']
|
|
297
297
|
),
|
|
298
|
-
init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
299
298
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
300
299
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
300
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
301
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
302
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
303
|
+
[]
|
|
304
|
+
),
|
|
301
305
|
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
|
|
302
306
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
303
307
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
@@ -316,7 +320,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
316
320
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
317
321
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
318
322
|
update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
319
|
-
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
320
323
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
321
324
|
});
|
|
322
325
|
};
|
|
@@ -336,6 +336,7 @@ export interface _SERVICE {
|
|
|
336
336
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
337
337
|
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
338
338
|
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
339
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
339
340
|
count_assets: ActorMethod<[string, ListParams], bigint>;
|
|
340
341
|
count_collection_assets: ActorMethod<[string], bigint>;
|
|
341
342
|
count_collection_docs: ActorMethod<[string], bigint>;
|
|
@@ -372,6 +373,10 @@ export interface _SERVICE {
|
|
|
372
373
|
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
373
374
|
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
374
375
|
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
376
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
377
|
+
[Array<InitAssetKey>, bigint],
|
|
378
|
+
Array<[string, InitUploadResult]>
|
|
379
|
+
>;
|
|
375
380
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
376
381
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
377
382
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
@@ -335,6 +335,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
335
335
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
336
336
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
337
337
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
338
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
338
339
|
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], []),
|
|
339
340
|
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], []),
|
|
340
341
|
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], []),
|
|
@@ -384,6 +385,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
384
385
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
385
386
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
386
387
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
388
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
389
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
390
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
391
|
+
[]
|
|
392
|
+
),
|
|
387
393
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
388
394
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
389
395
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
@@ -335,6 +335,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
335
335
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
336
336
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
337
337
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
338
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
338
339
|
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
|
|
339
340
|
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
340
341
|
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
@@ -384,6 +385,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
384
385
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
385
386
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
386
387
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
388
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
389
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
390
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
391
|
+
[]
|
|
392
|
+
),
|
|
387
393
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
388
394
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
389
395
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
@@ -335,6 +335,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
335
335
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
336
336
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
337
337
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
338
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
338
339
|
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
|
|
339
340
|
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
340
341
|
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
@@ -384,6 +385,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
384
385
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
385
386
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
386
387
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
388
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
389
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
390
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
391
|
+
[]
|
|
392
|
+
),
|
|
387
393
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
388
394
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
389
395
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
@@ -336,6 +336,7 @@ export interface _SERVICE {
|
|
|
336
336
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
337
337
|
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
338
338
|
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
339
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
339
340
|
count_assets: ActorMethod<[string, ListParams], bigint>;
|
|
340
341
|
count_collection_assets: ActorMethod<[string], bigint>;
|
|
341
342
|
count_collection_docs: ActorMethod<[string], bigint>;
|
|
@@ -372,6 +373,10 @@ export interface _SERVICE {
|
|
|
372
373
|
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
373
374
|
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
374
375
|
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
376
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
377
|
+
[Array<InitAssetKey>, bigint],
|
|
378
|
+
Array<[string, InitUploadResult]>
|
|
379
|
+
>;
|
|
375
380
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
376
381
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
377
382
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
@@ -335,6 +335,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
335
335
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
336
336
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
337
337
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
338
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
338
339
|
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], []),
|
|
339
340
|
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], []),
|
|
340
341
|
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], []),
|
|
@@ -384,6 +385,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
384
385
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
385
386
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
386
387
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
388
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
389
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
390
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
391
|
+
[]
|
|
392
|
+
),
|
|
387
393
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
388
394
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
389
395
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
@@ -335,6 +335,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
335
335
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
336
336
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
337
337
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
338
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
338
339
|
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
|
|
339
340
|
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
340
341
|
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
@@ -384,6 +385,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
384
385
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
385
386
|
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
386
387
|
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
388
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
389
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
390
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
391
|
+
[]
|
|
392
|
+
),
|
|
387
393
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
388
394
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
389
395
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|