@nvisy/sdk 0.4.0 → 0.6.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,44 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.6.0] - 2026-07-29
12
+
13
+ ### Added
14
+
15
+ - `ApiToken.current` field, indicating which token authenticated the
16
+ current request (set by the token listing endpoint)
17
+
18
+ ### Changed
19
+
20
+ - Regenerated the API schema against the updated platform handlers
21
+
22
+ ## [0.5.0] - 2026-07-12
23
+
24
+ ### Added
25
+
26
+ - `account.getPublicAccount(username)` for public account profiles
27
+
28
+ ### Changed
29
+
30
+ - Regenerated the API schema against the updated platform handlers
31
+ - **BREAKING**: resources are now addressed under their workspace. Workspaces
32
+ are identified by slug (`workspaceSlug`), and item-level methods for
33
+ connections, files, invites, members, pipelines, policies, runs, and
34
+ webhooks now take the workspace slug as their first argument
35
+ - **BREAKING**: pipelines and policies are addressed by slug (`pipelineSlug`,
36
+ `policySlug`); members and public accounts by `username`
37
+ - **BREAKING**: `runs` methods are workspace-scoped:
38
+ `listRuns(workspaceSlug)`, `listPipelineRuns(workspaceSlug, pipelineSlug)`,
39
+ `createRun(workspaceSlug, pipelineSlug, run)`,
40
+ `getRun(workspaceSlug, runId)`, `getDetections(workspaceSlug, runId)`,
41
+ `redact(workspaceSlug, runId)`
42
+ - **BREAKING**: `webhooks.createWebhook()` now returns `WebhookCreated`;
43
+ `invites.sendInvite()` now returns `InviteSent`
44
+
45
+ ### Removed
46
+
47
+ - **BREAKING**: `contexts` service and datatypes (no longer part of the API)
48
+
11
49
  ## [0.4.0] - 2026-07-12
12
50
 
13
51
  ### Added
@@ -139,7 +177,9 @@ and this project adheres to
139
177
  - Network error handling for timeouts, DNS resolution, and connection issues
140
178
  - Configuration validation with detailed error messages
141
179
 
142
- [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.4.0...HEAD
180
+ [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.6.0...HEAD
181
+ [0.6.0]: https://github.com/nvisycom/sdk-ts/compare/v0.5.0...v0.6.0
182
+ [0.5.0]: https://github.com/nvisycom/sdk-ts/compare/v0.4.0...v0.5.0
143
183
  [0.4.0]: https://github.com/nvisycom/sdk-ts/compare/v0.3.0...v0.4.0
144
184
  [0.3.0]: https://github.com/nvisycom/sdk-ts/compare/v0.2.0...v0.3.0
145
185
  [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-D-y57n8p.js";
3
3
  //#region src/auth/config.d.ts
4
4
  /**
5
5
  * Configuration options for standalone authentication functions.