Skip to content

Commit

Permalink
Fix: bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectmak committed Jan 11, 2021
1 parent d52ba8f commit 57020bd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions etc/sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
```ts

import { Buckets } from '@textile/hub';
import { IGunChainReference } from 'gun/types/chain';
import { UserAuth } from '@textile/hub';

// @public (undocumented)
Expand Down Expand Up @@ -69,6 +70,13 @@ export class BrowserStorage {
remove(key: string): Promise<void>;
}

// @public
export interface BucketMetadata {
dbId: string;
encryptionKey: Uint8Array;
slug: string;
}

// @public (undocumented)
export interface CreateFolderRequest {
bucket: string;
Expand Down Expand Up @@ -107,6 +115,16 @@ export class FileStorage {
remove(key: string): Promise<void>;
}

// @public
export class GunsdbMetadataStore implements UserMetadataStore {
createBucket(bucketSlug: string, dbId: string): Promise<BucketMetadata>;
findBucket(bucketSlug: string, dbId: string): Promise<BucketMetadata | undefined>;
// Warning: (ae-forgotten-export) The symbol "GunChainReference" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "GunDataState" needs to be exported by the entry point index.d.ts
static fromIdentity(identity: Identity, gunOrServer?: GunChainReference<GunDataState> | string): Promise<GunsdbMetadataStore>;
listBuckets(): Promise<BucketMetadata[]>;
}

// Warning: (ae-internal-missing-underscore) The name "HubAuthResponse" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
Expand All @@ -119,6 +137,7 @@ export interface HubAuthResponse {

// @public
export interface Identity {
privKey: Uint8Array;
public: Public;
sign(data: Uint8Array): Promise<Uint8Array>;
}
Expand Down Expand Up @@ -202,6 +221,13 @@ export class UnauthenticatedError extends Error {
constructor();
}

// @public
export interface UserMetadataStore {
createBucket: (bucketSlug: string, dbId: string) => Promise<BucketMetadata>;
findBucket: (bucketSlug: string, dbId: string) => Promise<BucketMetadata | undefined>;
listBuckets: () => Promise<BucketMetadata[]>;
}

// @public
export class Users {
constructor(config: UsersConfig, storage?: IdentityStorage);
Expand Down Expand Up @@ -238,6 +264,8 @@ export class UserStorage {
export interface UserStorageConfig {
bucketsInit?: (auth: UserAuth) => Buckets;
// (undocumented)
metadataStoreInit?: (identity: Identity) => Promise<UserMetadataStore>;
// (undocumented)
textileHubAddress?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"serve:docs": "npm run docs && cd website && npm run start",
"build:docs": "npm run docs && cd website && npm install && npm run build",
"bootstrap": "lerna bootstrap",
"bumpversion": "lerna version --no-push --no-git-tag-version",
"bumpversion": "npm run build:docs && lerna version --no-push --no-git-tag-version",
"publish": "lerna publish",
"publish:from": "lerna publish from-package",
"clean": "lerna clean && lerna run clean",
Expand Down

0 comments on commit 57020bd

Please sign in to comment.