@nvisy/sdk 0.4.0 → 0.5.0

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/CHANGELOG.md CHANGED
@@ -8,6 +8,33 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.5.0] - 2026-07-12
12
+
13
+ ### Added
14
+
15
+ - `account.getPublicAccount(username)` for public account profiles
16
+
17
+ ### Changed
18
+
19
+ - Regenerated the API schema against the updated platform handlers
20
+ - **BREAKING**: resources are now addressed under their workspace. Workspaces
21
+ are identified by slug (`workspaceSlug`), and item-level methods for
22
+ connections, files, invites, members, pipelines, policies, runs, and
23
+ webhooks now take the workspace slug as their first argument
24
+ - **BREAKING**: pipelines and policies are addressed by slug (`pipelineSlug`,
25
+ `policySlug`); members and public accounts by `username`
26
+ - **BREAKING**: `runs` methods are workspace-scoped:
27
+ `listRuns(workspaceSlug)`, `listPipelineRuns(workspaceSlug, pipelineSlug)`,
28
+ `createRun(workspaceSlug, pipelineSlug, run)`,
29
+ `getRun(workspaceSlug, runId)`, `getDetections(workspaceSlug, runId)`,
30
+ `redact(workspaceSlug, runId)`
31
+ - **BREAKING**: `webhooks.createWebhook()` now returns `WebhookCreated`;
32
+ `invites.sendInvite()` now returns `InviteSent`
33
+
34
+ ### Removed
35
+
36
+ - **BREAKING**: `contexts` service and datatypes (no longer part of the API)
37
+
11
38
  ## [0.4.0] - 2026-07-12
12
39
 
13
40
  ### Added
@@ -139,7 +166,8 @@ and this project adheres to
139
166
  - Network error handling for timeouts, DNS resolution, and connection issues
140
167
  - Configuration validation with detailed error messages
141
168
 
142
- [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.4.0...HEAD
169
+ [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.5.0...HEAD
170
+ [0.5.0]: https://github.com/nvisycom/sdk-ts/compare/v0.4.0...v0.5.0
143
171
  [0.4.0]: https://github.com/nvisycom/sdk-ts/compare/v0.3.0...v0.4.0
144
172
  [0.3.0]: https://github.com/nvisycom/sdk-ts/compare/v0.2.0...v0.3.0
145
173
  [0.2.0]: https://github.com/nvisycom/sdk-ts/compare/v0.1.0...v0.2.0
package/README.md CHANGED
@@ -28,7 +28,6 @@ npm install @nvisy/sdk
28
28
  import { Nvisy } from "@nvisy/sdk";
29
29
 
30
30
  const client = new Nvisy({ apiToken: "your-api-token" });
31
-
32
31
  const account = await client.account.getAccount();
33
32
  const workspaces = await client.workspaces.listWorkspaces();
34
33
  ```
@@ -1,5 +1,5 @@
1
1
  import { t as ClientConfig } from "../config-BRQp8Cat.js";
2
- import { At as Signup, Ot as AuthToken, kt as Login } from "../index-Cmm2g3SG.js";
2
+ import { Et as Signup, Tt as Login, wt as AuthToken } from "../index-DfNB2LNT.js";
3
3
  //#region src/auth/config.d.ts
4
4
  /**
5
5
  * Configuration options for standalone authentication functions.