@junobuild/storage 0.1.0 → 0.1.1

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.
@@ -160,7 +160,7 @@ export interface RateConfig {
160
160
  max_tokens: bigint;
161
161
  time_per_token_ns: bigint;
162
162
  }
163
- export type SegmentType = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
163
+ export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
164
164
  export interface SegmentsDeploymentOptions {
165
165
  orbiter: [] | [string];
166
166
  mission_control_version: [] | [string];
@@ -256,10 +256,10 @@ export interface _SERVICE {
256
256
  list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
257
257
  set_controllers: ActorMethod<[SetControllersArgs], undefined>;
258
258
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
259
- set_fee: ActorMethod<[SegmentType, Tokens], undefined>;
259
+ set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
260
260
  set_storage_config: ActorMethod<[StorageConfig], undefined>;
261
261
  submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
262
- update_rate_config: ActorMethod<[SegmentType, RateConfig], undefined>;
262
+ update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
263
263
  upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
264
264
  version: ActorMethod<[], string>;
265
265
  }
@@ -219,7 +219,7 @@ export const idlFactory = ({IDL}) => {
219
219
  controller: SetController,
220
220
  controllers: IDL.Vec(IDL.Principal)
221
221
  });
222
- const SegmentType = IDL.Variant({
222
+ const SegmentKind = IDL.Variant({
223
223
  Orbiter: IDL.Null,
224
224
  MissionControl: IDL.Null,
225
225
  Satellite: IDL.Null
@@ -271,10 +271,10 @@ export const idlFactory = ({IDL}) => {
271
271
  ),
272
272
  set_controllers: IDL.Func([SetControllersArgs], [], []),
273
273
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
274
- set_fee: IDL.Func([SegmentType, Tokens], [], []),
274
+ set_fee: IDL.Func([SegmentKind, Tokens], [], []),
275
275
  set_storage_config: IDL.Func([StorageConfig], [], []),
276
276
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
- update_rate_config: IDL.Func([SegmentType, RateConfig], [], []),
277
+ update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
278
278
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
279
  version: IDL.Func([], [IDL.Text], ['query'])
280
280
  });
@@ -219,7 +219,7 @@ export const idlFactory = ({IDL}) => {
219
219
  controller: SetController,
220
220
  controllers: IDL.Vec(IDL.Principal)
221
221
  });
222
- const SegmentType = IDL.Variant({
222
+ const SegmentKind = IDL.Variant({
223
223
  Orbiter: IDL.Null,
224
224
  MissionControl: IDL.Null,
225
225
  Satellite: IDL.Null
@@ -271,10 +271,10 @@ export const idlFactory = ({IDL}) => {
271
271
  ),
272
272
  set_controllers: IDL.Func([SetControllersArgs], [], []),
273
273
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
274
- set_fee: IDL.Func([SegmentType, Tokens], [], []),
274
+ set_fee: IDL.Func([SegmentKind, Tokens], [], []),
275
275
  set_storage_config: IDL.Func([StorageConfig], [], []),
276
276
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
- update_rate_config: IDL.Func([SegmentType, RateConfig], [], []),
277
+ update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
278
278
  upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
279
  version: IDL.Func([], [IDL.Text], ['query'])
280
280
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/storage",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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",