# SejHey REST API v1 TypeScript SDK

SejHey is a powerful and cost effective alternative to Crowdin, Phrase, Lokalise and other i18n platforms.

This library provides a TypeScript SDK to interact with the SejHey REST API v1, enabling developers to programmatically manage translations, projects, and other resources within the SejHey platform.

## Installation

```bash
npm install @sejhey/rest-api-v1-ts
```

## Usage

```typescript
import { SejheyClient } from '@sejhey/rest-api-v1-ts';

// Initialize the client with your API token
const client = new SejheyClient({
  api_token: 'your-api-token-here'
});

// Use the client to access various services
const projects = await client.projects.getProject('project-id');
const translations = await client.translations.getAllTranslations({
  project_pk: 'project-id',
  pagination: { page: 0, page_size: 10 }
});
```

## Available Services

The SDK provides access to the following services:

- `asyncTasks` - Manage asynchronous tasks
- `download` - Download files and resources
- `fileImports` - Import translation files
- `gitHubIntegration` - GitHub integration management
- `glossary` - Glossary management
- `keys` - Translation key management
- `languages` - Language management
- `members` - Team member management
- `namespaces` - Namespace management
- `ota` - Over-the-air update management
- `projects` - Project management
- `releases` - Release management
- `screenshots` - Screenshot management
- `tags` - Tag management
- `tasks` - Task management
- `translations` - Translation management
- `webhooks` - Webhook management

## Documentation

To see the full API documentation and reference, visit [SejHey Docs](https://sejhey.com/docs/docs/API/sejhey-api).

## License

This project is licensed under the MIT License.
