@envsync-cloud/envsync-ts-sdk 0.3.7 → 0.6.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.
- package/LICENSE +21 -0
- package/README.md +67 -3
- package/dist/index.d.mts +580 -7
- package/dist/index.d.ts +580 -7
- package/dist/index.js +713 -10
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +704 -10
- package/dist/index.mjs.map +1 -0
- package/package.json +30 -11
- package/dist/index.global.js +0 -2297
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 EnvSync Cloud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
|
-
# envsync-ts-sdk
|
|
1
|
+
# `@envsync-cloud/envsync-ts-sdk`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript SDK for the EnvSync API.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package provides the generated fetch-based client, models, and service types for interacting with EnvSync from browser or server-side TypeScript applications.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @envsync-cloud/envsync-ts-sdk
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bun add @envsync-cloud/envsync-ts-sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add @envsync-cloud/envsync-ts-sdk
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Basic Usage
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { EnvSyncAPISDK } from "@envsync-cloud/envsync-ts-sdk";
|
|
25
|
+
|
|
26
|
+
const sdk = new EnvSyncAPISDK({
|
|
27
|
+
BASE: "https://api.envsync.cloud",
|
|
28
|
+
TOKEN: process.env.ENVSYNC_TOKEN,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const apps = await sdk.applications.getApps();
|
|
32
|
+
|
|
33
|
+
console.log(apps);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Runtime Notes
|
|
37
|
+
|
|
38
|
+
- The SDK uses the generated `fetch` client from `openapi-typescript-codegen`.
|
|
39
|
+
- It works in browser bundlers and modern Node runtimes that provide `fetch`.
|
|
40
|
+
- Configure the API base URL and auth headers through the SDK config.
|
|
41
|
+
|
|
42
|
+
## Exports
|
|
43
|
+
|
|
44
|
+
The package exports:
|
|
45
|
+
|
|
46
|
+
- `EnvSyncAPISDK`
|
|
47
|
+
- `OpenAPI`
|
|
48
|
+
- `ApiError` and other core request types
|
|
49
|
+
- generated models and services from the EnvSync OpenAPI spec
|
|
50
|
+
|
|
51
|
+
## Regeneration
|
|
52
|
+
|
|
53
|
+
The source for this package is generated from the EnvSync API OpenAPI spec.
|
|
54
|
+
|
|
55
|
+
- Regenerate locally with `bun run generate:local`
|
|
56
|
+
- Build with `bun run build`
|
|
57
|
+
|
|
58
|
+
Do not hand-edit generated source under `src/`; regeneration will overwrite it.
|
|
59
|
+
|
|
60
|
+
## Links
|
|
61
|
+
|
|
62
|
+
- Repository: https://github.com/EnvSync-Cloud/envsync
|
|
63
|
+
- Issues: https://github.com/EnvSync-Cloud/envsync/issues
|
|
64
|
+
- Monorepo docs: https://github.com/EnvSync-Cloud/envsync#readme
|
|
65
|
+
- Self-hosting guide: https://github.com/EnvSync-Cloud/envsync/blob/main/SELFHOSTING.md
|
|
66
|
+
|
|
67
|
+
## Releases
|
|
68
|
+
|
|
69
|
+
Published npm releases are tied to monorepo tags in the form `vX.Y.Z`.
|