open-index/open-npm huggingface dataset:
npm package: @stackguardian/sg-sdk
Description: ![Stackguardian-banner](banner.jpg)
Latest version: 0.2.1

# @stackguardian/sg-sdk
![Stackguardian-banner](banner.jpg)

`sg-sdk` is a [fern](https://github.com/fern-api/fern) generated Node.js client library for StackGuardian API that provides a simple way to interact with the API.

## Documentation
API reference can be found [here](https://docs.stackguardian.io/api-reference/).

## Installation

```bash
npm install @stackguardian/sg-sdk
```

## Usage

```javascript
import { SgClient, SgEnvironment } from '@stackguardian/sg-sdk';
const SG_API_KEY = process.env.SG_APIKEY;
const SG_ORG_ID = "your-org-id";

const client = new SgClient({
    apiKey: "apikey " + SG_API_KEY,
});

(async () => {
    const myOrgs = await client.organizations.readOrganization(SG_ORG_ID);
    console.log(myOrgs);
})();
```
More examples can be found in [tests](tests/units) directory.

## SDK Status 
This SDK is currently under development and may undergo significant changes. Future updates could include breaking changes as we work to improve and stabilize it. Additionally, some endpoints have not been fully tested, so you may encounter unexpected behavior. If you notice any schema validation issues, especially if the response does not match the expected schema, we kindly ask you to report them.

## Contributing
We appreciate open-source contributions to this SDK! Since the code is generated programmatically, direct changes will be overwritten in future releases. If you have an idea, please open an issue to discuss it first. Contributions to the README and tests are always welcome!