@junobuild/storage 0.1.7 → 0.1.8

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.
@@ -261,7 +261,6 @@ export interface _SERVICE {
261
261
  submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
262
262
  update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
263
263
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
264
- version: ActorMethod<[], string>;
265
264
  }
266
265
  export declare const idlFactory: IDL.InterfaceFactory;
267
266
  export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -275,8 +275,7 @@ export const idlFactory = ({IDL}) => {
275
275
  set_storage_config: IDL.Func([StorageConfig], [], []),
276
276
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
277
  update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
278
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
- version: IDL.Func([], [IDL.Text], [])
278
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
280
279
  });
281
280
  };
282
281
  // @ts-ignore
@@ -275,8 +275,7 @@ export const idlFactory = ({IDL}) => {
275
275
  set_storage_config: IDL.Func([StorageConfig], [], []),
276
276
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
277
  update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
278
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
- version: IDL.Func([], [IDL.Text], ['query'])
278
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
280
279
  });
281
280
  };
282
281
  // @ts-ignore
@@ -275,8 +275,7 @@ export const idlFactory = ({IDL}) => {
275
275
  set_storage_config: IDL.Func([StorageConfig], [], []),
276
276
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
277
  update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
278
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
- version: IDL.Func([], [IDL.Text], ['query'])
278
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
280
279
  });
281
280
  };
282
281
  // @ts-ignore
@@ -143,10 +143,6 @@ export interface ListResults_1 {
143
143
  items_length: bigint;
144
144
  }
145
145
  export type Memory = {Heap: null} | {Stable: null};
146
- export interface MemorySize {
147
- stable: bigint;
148
- heap: bigint;
149
- }
150
146
  export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
151
147
  export interface RateConfig {
152
148
  max_tokens: bigint;
@@ -237,7 +233,6 @@ export interface UploadChunkResult {
237
233
  chunk_id: bigint;
238
234
  }
239
235
  export interface _SERVICE {
240
- build_version: ActorMethod<[], string>;
241
236
  commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
242
237
  count_assets: ActorMethod<[string, ListParams], bigint>;
243
238
  count_collection_assets: ActorMethod<[string], bigint>;
@@ -275,7 +270,6 @@ export interface _SERVICE {
275
270
  list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
276
271
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
277
272
  list_rules: ActorMethod<[CollectionType], Array<[string, Rule]>>;
278
- memory_size: ActorMethod<[], MemorySize>;
279
273
  set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
280
274
  set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
281
275
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
@@ -285,7 +279,6 @@ export interface _SERVICE {
285
279
  set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
286
280
  set_storage_config: ActorMethod<[StorageConfig], undefined>;
287
281
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
288
- version: ActorMethod<[], string>;
289
282
  }
290
283
  export declare const idlFactory: IDL.InterfaceFactory;
291
284
  export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -208,7 +208,6 @@ export const idlFactory = ({IDL}) => {
208
208
  items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
209
209
  items_length: IDL.Nat64
210
210
  });
211
- const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
212
211
  const SetController = IDL.Record({
213
212
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
214
213
  scope: ControllerScope,
@@ -241,7 +240,6 @@ export const idlFactory = ({IDL}) => {
241
240
  });
242
241
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
243
242
  return IDL.Service({
244
- build_version: IDL.Func([], [IDL.Text], []),
245
243
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
246
244
  count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], []),
247
245
  count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], []),
@@ -292,7 +290,6 @@ export const idlFactory = ({IDL}) => {
292
290
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
293
291
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], []),
294
292
  list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], []),
295
- memory_size: IDL.Func([], [MemorySize], []),
296
293
  set_auth_config: IDL.Func([AuthenticationConfig], [], []),
297
294
  set_controllers: IDL.Func(
298
295
  [SetControllersArgs],
@@ -309,8 +306,7 @@ export const idlFactory = ({IDL}) => {
309
306
  ),
310
307
  set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
311
308
  set_storage_config: IDL.Func([StorageConfig], [], []),
312
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
313
- version: IDL.Func([], [IDL.Text], [])
309
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
314
310
  });
315
311
  };
316
312
  // @ts-ignore
@@ -208,7 +208,6 @@ export const idlFactory = ({IDL}) => {
208
208
  items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
209
209
  items_length: IDL.Nat64
210
210
  });
211
- const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
212
211
  const SetController = IDL.Record({
213
212
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
214
213
  scope: ControllerScope,
@@ -241,7 +240,6 @@ export const idlFactory = ({IDL}) => {
241
240
  });
242
241
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
243
242
  return IDL.Service({
244
- build_version: IDL.Func([], [IDL.Text], ['query']),
245
243
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
246
244
  count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
247
245
  count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
@@ -292,7 +290,6 @@ export const idlFactory = ({IDL}) => {
292
290
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
293
291
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
294
292
  list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
295
- memory_size: IDL.Func([], [MemorySize], ['query']),
296
293
  set_auth_config: IDL.Func([AuthenticationConfig], [], []),
297
294
  set_controllers: IDL.Func(
298
295
  [SetControllersArgs],
@@ -309,8 +306,7 @@ export const idlFactory = ({IDL}) => {
309
306
  ),
310
307
  set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
311
308
  set_storage_config: IDL.Func([StorageConfig], [], []),
312
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
313
- version: IDL.Func([], [IDL.Text], ['query'])
309
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
314
310
  });
315
311
  };
316
312
  // @ts-ignore
@@ -208,7 +208,6 @@ export const idlFactory = ({IDL}) => {
208
208
  items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
209
209
  items_length: IDL.Nat64
210
210
  });
211
- const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
212
211
  const SetController = IDL.Record({
213
212
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
214
213
  scope: ControllerScope,
@@ -241,7 +240,6 @@ export const idlFactory = ({IDL}) => {
241
240
  });
242
241
  const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
243
242
  return IDL.Service({
244
- build_version: IDL.Func([], [IDL.Text], ['query']),
245
243
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
246
244
  count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
247
245
  count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
@@ -292,7 +290,6 @@ export const idlFactory = ({IDL}) => {
292
290
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
293
291
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
294
292
  list_rules: IDL.Func([CollectionType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
295
- memory_size: IDL.Func([], [MemorySize], ['query']),
296
293
  set_auth_config: IDL.Func([AuthenticationConfig], [], []),
297
294
  set_controllers: IDL.Func(
298
295
  [SetControllersArgs],
@@ -309,8 +306,7 @@ export const idlFactory = ({IDL}) => {
309
306
  ),
310
307
  set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
311
308
  set_storage_config: IDL.Func([StorageConfig], [], []),
312
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
313
- version: IDL.Func([], [IDL.Text], ['query'])
309
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
314
310
  });
315
311
  };
316
312
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/storage",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A library for interfacing with Juno's Storage features.",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",