@envsync-cloud/envsync-ts-sdk 0.11.0 → 0.20.2

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/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # `@envsync-cloud/envsync-ts-sdk`
2
2
 
3
- TypeScript SDK for the EnvSync API.
3
+ TypeScript SDK for the EnvSync API (core product + Enterprise manage surface).
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
6
 
7
+ **Enterprise manage** routes are on the same API process under `/api/v1/manage/{module}/...` (e.g. `sdk.license.getManagementLicenseStatus()`). Set `BASE` to the API origin only (not a separate manage host).
8
+
7
9
  ## Install
8
10
 
9
11
  ```bash
@@ -30,6 +32,9 @@ const sdk = new EnvSyncAPISDK({
30
32
 
31
33
  const apps = await sdk.applications.getApps();
32
34
 
35
+ // Enterprise (when management is enabled on the deployment):
36
+ // const license = await sdk.license.getManagementLicenseStatus();
37
+
33
38
  console.log(apps);
34
39
  ```
35
40
 
@@ -77,12 +82,18 @@ The package exports:
77
82
 
78
83
  ## Regeneration
79
84
 
80
- The source for this package is generated from the EnvSync API OpenAPI spec.
85
+ Generated from the **unified** monorepo OpenAPI (`GET /openapi` with unique operationIds).
86
+
87
+ ```bash
88
+ # From monorepo (default: runs export-openapi.ts with EE modules when available)
89
+ cd sdks/envsync-ts-sdk
90
+ bun run generate:local # writes openapi.json + regenerates src/
91
+ bun run build
92
+ ```
81
93
 
82
- - Regenerate locally with `bun run generate:local`
83
- - Build with `bun run build`
94
+ Overrides: `OPENAPI_SPEC=...` or `ENVSYNC_API_URL=http://localhost:4000`.
84
95
 
85
- Do not hand-edit generated source under `src/`; regeneration will overwrite it.
96
+ Do not hand-edit generated source under `src/`. Do not reintroduce a management-only TS SDK package.
86
97
 
87
98
  ## Links
88
99