open-index/open-npm huggingface dataset:
npm package: @spacebarchat/spacebar-types
Description: Spacebar API Library
Author: Paul Makles
Latest version: 0.1.3

# Spacebar API Types

This package contains typings for objects in the Spacebar API and a fully typed API request builder.

### Example Usage

If you just need access to types:

```typescript
import type { User } from "spacebar-types";
```

If you want to send requests:

```typescript
import { API } from "spacebar-types";

// Initialise a new API client:
const client = new API();

// or with authentication:
const client = new API({ authentication: { bearer: "token" } });

// Make requests with ease:
client
    .get("/users/@me")
    // Fully typed responses!
    .then((user) => user.username);

// No need to worry about the details:
let channel_id = "some channel id";
client.post(`/channels/${channel_id}/messages`, {
    // Parameters given are fully typed as well!
    content: "some content",
});
```

For more details on how this works, see the [README of @insertish/oapi](https://github.com/insertish/oapi#example).
npm package: @spaceblocks/permissions-client
Description: Client-SDK for Space Blocks Permissions
Author: wemogy GmbH
Latest version: 4.0.2

# Space Blocks Permissions - Client-SDK

## Getting started

### Install

```bash
yarn add @spaceblocks/permissions-client
```

### Initialize

```typescript
import { PermissionService } from '@spaceblocks/permissions-client';

const permissionService = new PermissionService(
  'SPACE_BLOCKS_ENVIRONMENT_URL',
  'SPACE_BLOCKS_API_KEY',
  accessTokenFactory, // this function calls Your backend to get the access token
);
```
npm package: @spaceblocks/permissions-react
Description: React-SDK for Space Blocks Permissions
Author: wemogy GmbH
Latest version: 4.0.2

# Space Blocks Permissions - React-SDK

## Getting started

### Install

```bash
yarn add @spaceblocks/permissions-react
```

### Initialize

```typescript
import { PermissionService } from '@spaceblocks/permissions-client';

const permissionService = new PermissionService(
  'SPACE_BLOCKS_ENVIRONMENT_URL',
  'SPACE_BLOCKS_API_KEY',
  accessTokenFactory, // this function calls Your backend to get the access token
);
```
npm package: @spaceblocks/permissions-server
Description: Server-SDK for Space Blocks Permissions
Author: wemogy GmbH
Latest version: 4.0.2

# Space Blocks Permissions - Server-SDK

## Getting started

### Install

```bash
yarn add @spaceblocks/permissions-server
```

### Initialize

```typescript
import { PermissionsClient } from '@spaceblocks/permissions-server';

const permissionsClient = new PermissionsClient(
  'SPACE_BLOCKS_PERMISSIONS_URL',
  {
    apiKey: 'SPACE_BLOCKS_API_KEY',
    clientId: 'SPACE_BLOCKS_CLIENT_ID',
    clientSecret: 'SPACE_BLOCKS_CLIENT_SECRET',
    scopes: 'permissions:management:read permissions:management:write'
  }
);
```