@nvisy/sdk 0.34.0 → 0.36.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 +52 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{client-Dxa6VuCi.d.ts → client-CRAUKfrL.d.ts} +134 -104
- package/dist/client-CRAUKfrL.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-DAOza_p3.js → error-B-clwUc0.js} +2 -2
- package/dist/{error-DAOza_p3.js.map → error-B-clwUc0.js.map} +1 -1
- package/dist/{errors-B2mDlQfg.d.ts → errors-CgrmHkHE.d.ts} +2 -2
- package/dist/{errors-B2mDlQfg.d.ts.map → errors-CgrmHkHE.d.ts.map} +1 -1
- package/dist/{index-BsijAKTe.d.ts → index-B1rBPY26.d.ts} +975 -743
- package/dist/index-B1rBPY26.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +2 -2
- package/dist/{services-CjHW797N.js → services-BEP_y6VO.js} +212 -163
- package/dist/services-BEP_y6VO.js.map +1 -0
- package/dist/webhooks/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/client-Dxa6VuCi.d.ts.map +0 -1
- package/dist/index-BsijAKTe.d.ts.map +0 -1
- package/dist/services-CjHW797N.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,55 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.36.0] - 2026-08-27
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Regenerated the API schema against the updated platform handlers. The
|
|
16
|
+
detection time-series endpoint moved from `/analytics/runs/timeseries/` to
|
|
17
|
+
`/analytics/detections/timeseries/`, finishing the run-to-detection rename;
|
|
18
|
+
`analytics.getDetectionTimeSeries()` is unchanged for callers
|
|
19
|
+
|
|
20
|
+
## [0.35.0] - 2026-08-26
|
|
21
|
+
|
|
22
|
+
The platform renamed the core "pipeline run" concept to "detection" and made
|
|
23
|
+
redaction an independent resource. This release renames the SDK to match.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- `nvisy.detections` service (replaces `nvisy.runs`): `listDetections`,
|
|
28
|
+
`listPipelineDetections`, `createDetection`, `getDetection`, `getAnalysis`
|
|
29
|
+
(the audit), `downloadAudit`, `events` / `streamEvents` (SSE), plus
|
|
30
|
+
`listRedactions` and `createRedaction`
|
|
31
|
+
- `nvisy.redactions` service, parallel to detections: `getReview`
|
|
32
|
+
- Detection datatypes (`Detection`, `CreateDetection`, `DetectionPage`,
|
|
33
|
+
`DetectionStatus`, `DetectionId`, `DetectionMetadata`, `DetectionStatusEvent`,
|
|
34
|
+
`PipelineDetectionsQuery`) and redaction datatypes (`RedactDetection`,
|
|
35
|
+
`RedactionId`, `RedactionResult`, `RedactionResultPage`)
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- Regenerated the API schema against the updated platform handlers
|
|
40
|
+
- **Breaking:** `nvisy.runs` is renamed to `nvisy.detections`; its methods are
|
|
41
|
+
renamed accordingly (`createRun` → `createDetection`, `getRun` →
|
|
42
|
+
`getDetection`, `getDetections` → `getAnalysis`, `redact` →
|
|
43
|
+
`createRedaction`, `listRuns` / `listPipelineRuns` → `listDetections` /
|
|
44
|
+
`listPipelineDetections`)
|
|
45
|
+
- **Breaking:** `analytics.getRunTimeSeries()` is renamed to
|
|
46
|
+
`analytics.getDetectionTimeSeries()`
|
|
47
|
+
- **Breaking:** the run analytics, notification-payload, and activity datatypes
|
|
48
|
+
are renamed to their detection/redaction equivalents (`RunAnalytics` →
|
|
49
|
+
`DetectionAnalytics`, `RunTimeSeries` → `DetectionTimeSeries`,
|
|
50
|
+
`PipelineRun*Params` → `Detection*Params` / `Redaction*Params`, etc.)
|
|
51
|
+
|
|
52
|
+
### Removed
|
|
53
|
+
|
|
54
|
+
- **Breaking:** the `PipelineRun*` / `Run*` datatypes (`PipelineRun`,
|
|
55
|
+
`CreatePipelineRun`, `PipelineRunPage`, `PipelineRunStatus`,
|
|
56
|
+
`PipelineRunsQuery`, `RunId`, `RunMetadata`, `RunStatusEvent`), and the
|
|
57
|
+
per-modality `*Redact` audit-event datatypes (`TextRedact`, `ImageRedact`,
|
|
58
|
+
`AudioRedact`, `TabularRedact`) — the platform no longer exposes them
|
|
59
|
+
|
|
11
60
|
## [0.34.0] - 2026-08-18
|
|
12
61
|
|
|
13
62
|
### Added
|
|
@@ -720,7 +769,9 @@ and this project adheres to
|
|
|
720
769
|
- Network error handling for timeouts, DNS resolution, and connection issues
|
|
721
770
|
- Configuration validation with detailed error messages
|
|
722
771
|
|
|
723
|
-
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.
|
|
772
|
+
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.36.0...HEAD
|
|
773
|
+
[0.36.0]: https://github.com/nvisycom/sdk-ts/compare/v0.35.0...v0.36.0
|
|
774
|
+
[0.35.0]: https://github.com/nvisycom/sdk-ts/compare/v0.34.0...v0.35.0
|
|
724
775
|
[0.34.0]: https://github.com/nvisycom/sdk-ts/compare/v0.33.0...v0.34.0
|
|
725
776
|
[0.33.0]: https://github.com/nvisycom/sdk-ts/compare/v0.32.0...v0.33.0
|
|
726
777
|
[0.32.0]: https://github.com/nvisycom/sdk-ts/compare/v0.31.0...v0.32.0
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ClientConfig } from "../config-BhUEqFOg.js";
|
|
2
|
-
import {
|
|
2
|
+
import { dr as Signup, lr as AuthToken, ur as Login } from "../index-B1rBPY26.js";
|
|
3
3
|
//#region src/auth/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Configuration options for standalone authentication functions.
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ClientConfig } from "./config-BhUEqFOg.js";
|
|
2
|
-
import { $n as
|
|
2
|
+
import { $n as ChatMessage, $t as ReplyInvite, Aa as Account$1, At as NotificationPage, Cn as PipelineDetectionsQuery, Dn as RedactionResultPage, Dr as Audit, En as RedactionResult, Fa as UpdateAccount, Fn as ConnectionSync, Ft as UnreadStatus, Gn as SyncConnection, Gt as InviteCode, Ht as CreateInvite, Ia as paths, In as ConnectionSyncPage, It as UpdateNotificationSettings, Jt as InvitePreview, Ki as ApiToken, Ln as ConnectionVerification, Lt as ListMembers, M as CreatePolicy, Mt as NotificationSettings, On as WorkspaceDetectionsQuery, Pa as PublicAccount, Pn as ConnectionPage, Pt as UnreadCountEvent, Qi as UpdateApiToken, Qn as UpdateConnection, Qt as ListInvites, Rt as Member, Sn as DetectionStatusEvent, Tt as MarkedReadStatus, Ut as GenerateInviteCode, Vt as UpdateMember, X as Policy, Xi as CreateApiToken, Xn as SyncStatus, Yi as ApiTokenWithJWT, Yt as InviteSent, _a as ActivityPage, _n as Detection, _t as PipelineSummaryPage, ar as SendChatMessage, bn as DetectionPage, bt as CursorPagination, c as WorkspacePage, cn as ListFiles, d as CreateWebhook, dn as DateWindow, dr as Signup, dt as CreatePipeline, f as TestWebhook, ft as Pipeline, ga as ActivityFilterQuery, gn as CreateDetection, h as WebhookCreated, ha as ActivityExportOptions, ht as PipelineStatus, in as File, ir as CreateChatSession, jn as Connection, lr as AuthToken, lt as UpdatePolicy, m as Webhook, na as DetectionTimeSeries, nn as Health, nr as ChatSessionPage, o as UpdateWorkspace, on as FilePage, or as LabelCatalog, p as UpdateWebhook, pa as WorkspaceAnalytics, pn as ExportQuery, qi as ApiTokenPage, qt as InvitePage, rr as ChatToken, s as Workspace, sr as RecognizerCatalog, t as CreateWorkspace, tr as ChatSession, tt as PolicySummaryPage, un as UpdateFile, ur as Login, v as WebhookPage, wn as RedactDetection, y as WebhookResult, yt as UpdatePipeline, zn as CreateConnection, zt as MemberPage } from "./index-B1rBPY26.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
5
5
|
/**
|
|
@@ -80,26 +80,26 @@ declare class Activities {
|
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/services/analytics.d.ts
|
|
82
82
|
/**
|
|
83
|
-
* Service for workspace analytics: aggregate totals and
|
|
83
|
+
* Service for workspace analytics: aggregate totals and detection time series.
|
|
84
84
|
*/
|
|
85
85
|
declare class Analytics {
|
|
86
86
|
#private;
|
|
87
87
|
constructor(api: ApiClient);
|
|
88
88
|
/**
|
|
89
|
-
* Get aggregate analytics for a workspace: storage,
|
|
89
|
+
* Get aggregate analytics for a workspace: storage, detection health, usage.
|
|
90
90
|
* @param workspaceSlug - Workspace slug
|
|
91
91
|
* @returns Promise that resolves with the workspace analytics
|
|
92
92
|
* @throws {ApiError} if the request fails
|
|
93
93
|
*/
|
|
94
94
|
getAnalytics(workspaceSlug: string): Promise<WorkspaceAnalytics>;
|
|
95
95
|
/**
|
|
96
|
-
* Get a workspace's daily
|
|
96
|
+
* Get a workspace's daily detection activity over a date window.
|
|
97
97
|
* @param workspaceSlug - Workspace slug
|
|
98
98
|
* @param query - Optional date window (`from` / `to`, YYYY-MM-DD)
|
|
99
|
-
* @returns Promise that resolves with the
|
|
99
|
+
* @returns Promise that resolves with the detection time series
|
|
100
100
|
* @throws {ApiError} if the request fails
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
getDetectionTimeSeries(workspaceSlug: string, query?: DateWindow): Promise<DetectionTimeSeries>;
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/services/api-tokens.d.ts
|
|
@@ -326,6 +326,119 @@ declare class Connections {
|
|
|
326
326
|
verifyConnection(workspaceSlug: string, connectionId: string): Promise<ConnectionVerification>;
|
|
327
327
|
}
|
|
328
328
|
//#endregion
|
|
329
|
+
//#region src/services/detections.d.ts
|
|
330
|
+
/**
|
|
331
|
+
* Service for pipeline detections (one analysis pass of a file) and the
|
|
332
|
+
* redactions produced from them.
|
|
333
|
+
*/
|
|
334
|
+
declare class Detections {
|
|
335
|
+
#private;
|
|
336
|
+
constructor(api: ApiClient);
|
|
337
|
+
/**
|
|
338
|
+
* List all detections in a workspace
|
|
339
|
+
* @param workspaceSlug - Workspace slug
|
|
340
|
+
* @param query - Optional pagination and filters (status, fileId,
|
|
341
|
+
* pipelineId, triggerType, triggeredBy, limit, after)
|
|
342
|
+
* @returns Promise that resolves with a paginated list of detections
|
|
343
|
+
* @throws {ApiError} if the request fails
|
|
344
|
+
*/
|
|
345
|
+
listDetections(workspaceSlug: string, query?: CursorPagination & WorkspaceDetectionsQuery): Promise<DetectionPage>;
|
|
346
|
+
/**
|
|
347
|
+
* List detections for a specific pipeline
|
|
348
|
+
* @param workspaceSlug - Workspace slug
|
|
349
|
+
* @param pipelineSlug - Pipeline slug
|
|
350
|
+
* @param query - Optional pagination and filters (status, fileId,
|
|
351
|
+
* triggerType, triggeredBy, limit, after)
|
|
352
|
+
* @returns Promise that resolves with a paginated list of detections
|
|
353
|
+
* @throws {ApiError} if the request fails
|
|
354
|
+
*/
|
|
355
|
+
listPipelineDetections(workspaceSlug: string, pipelineSlug: string, query?: CursorPagination & PipelineDetectionsQuery): Promise<DetectionPage>;
|
|
356
|
+
/**
|
|
357
|
+
* Start a new detection over a file for a pipeline
|
|
358
|
+
* @param workspaceSlug - Workspace slug
|
|
359
|
+
* @param pipelineSlug - Pipeline slug
|
|
360
|
+
* @param detection - Detection creation request
|
|
361
|
+
* @returns Promise that resolves with the created detection
|
|
362
|
+
* @throws {ApiError} if the request fails
|
|
363
|
+
*/
|
|
364
|
+
createDetection(workspaceSlug: string, pipelineSlug: string, detection: CreateDetection): Promise<Detection>;
|
|
365
|
+
/**
|
|
366
|
+
* Get detection details by ID
|
|
367
|
+
* @param workspaceSlug - Workspace slug
|
|
368
|
+
* @param detectionId - Detection ID
|
|
369
|
+
* @returns Promise that resolves with the detection details
|
|
370
|
+
* @throws {ApiError} if the request fails
|
|
371
|
+
*/
|
|
372
|
+
getDetection(workspaceSlug: string, detectionId: string): Promise<Detection>;
|
|
373
|
+
/**
|
|
374
|
+
* Get a detection's analysis (audit)
|
|
375
|
+
* @param workspaceSlug - Workspace slug
|
|
376
|
+
* @param detectionId - Detection ID
|
|
377
|
+
* @returns Promise that resolves with the audit
|
|
378
|
+
* @throws {ApiError} if the request fails
|
|
379
|
+
*/
|
|
380
|
+
getAnalysis(workspaceSlug: string, detectionId: string): Promise<Audit>;
|
|
381
|
+
/**
|
|
382
|
+
* Download a detection's audit as a file.
|
|
383
|
+
*
|
|
384
|
+
* `format` is `csv` (default) — a zip of entities.csv, provenance.csv, and
|
|
385
|
+
* reviews.csv — or `json`, a pretty-printed JSON file.
|
|
386
|
+
*
|
|
387
|
+
* @param workspaceSlug - Workspace slug
|
|
388
|
+
* @param detectionId - Detection ID
|
|
389
|
+
* @param query - Optional output format (`csv` default, or `json`)
|
|
390
|
+
* @returns Promise that resolves with the file response
|
|
391
|
+
* @throws {ApiError} if the request fails
|
|
392
|
+
*/
|
|
393
|
+
downloadAudit(workspaceSlug: string, detectionId: string, query?: ExportQuery): Promise<Response>;
|
|
394
|
+
/**
|
|
395
|
+
* Open the raw Server-Sent Events stream of a detection's status changes.
|
|
396
|
+
*
|
|
397
|
+
* Returns the underlying `Response` so callers can handle the
|
|
398
|
+
* `text/event-stream` body themselves. Most callers want
|
|
399
|
+
* {@link streamEvents}, which parses each frame into a typed
|
|
400
|
+
* {@link DetectionStatusEvent}.
|
|
401
|
+
*
|
|
402
|
+
* @param workspaceSlug - Workspace slug
|
|
403
|
+
* @param detectionId - Detection ID
|
|
404
|
+
* @returns Promise that resolves with the event-stream response
|
|
405
|
+
* @throws {ApiError} if the request fails
|
|
406
|
+
*/
|
|
407
|
+
events(workspaceSlug: string, detectionId: string): Promise<Response>;
|
|
408
|
+
/**
|
|
409
|
+
* Stream a detection's status changes as Server-Sent Events.
|
|
410
|
+
*
|
|
411
|
+
* Yields the current status immediately, then each transition, and ends
|
|
412
|
+
* once the detection settles. Break out of the loop to close the stream
|
|
413
|
+
* early. For the raw response, use {@link events}.
|
|
414
|
+
*
|
|
415
|
+
* @param workspaceSlug - Workspace slug
|
|
416
|
+
* @param detectionId - Detection ID
|
|
417
|
+
* @yields each {@link DetectionStatusEvent} as it arrives
|
|
418
|
+
* @throws {ApiError} if the request fails to open
|
|
419
|
+
* @throws {NvisyError} if the response has no readable body
|
|
420
|
+
*/
|
|
421
|
+
streamEvents(workspaceSlug: string, detectionId: string): AsyncGenerator<DetectionStatusEvent>;
|
|
422
|
+
/**
|
|
423
|
+
* List the redactions produced from a detection
|
|
424
|
+
* @param workspaceSlug - Workspace slug
|
|
425
|
+
* @param detectionId - Detection ID
|
|
426
|
+
* @param query - Optional pagination (limit, after)
|
|
427
|
+
* @returns Promise that resolves with a paginated list of redactions
|
|
428
|
+
* @throws {ApiError} if the request fails
|
|
429
|
+
*/
|
|
430
|
+
listRedactions(workspaceSlug: string, detectionId: string, query?: CursorPagination): Promise<RedactionResultPage>;
|
|
431
|
+
/**
|
|
432
|
+
* Redact a detection, producing a redaction result
|
|
433
|
+
* @param workspaceSlug - Workspace slug
|
|
434
|
+
* @param detectionId - Detection ID
|
|
435
|
+
* @param redaction - Redaction request (optional reviewer edits)
|
|
436
|
+
* @returns Promise that resolves with the created redaction result
|
|
437
|
+
* @throws {ApiError} if the request fails
|
|
438
|
+
*/
|
|
439
|
+
createRedaction(workspaceSlug: string, detectionId: string, redaction: RedactDetection): Promise<RedactionResult>;
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
329
442
|
//#region src/services/files.d.ts
|
|
330
443
|
/**
|
|
331
444
|
* Service for handling file operations
|
|
@@ -659,109 +772,22 @@ declare class Policies {
|
|
|
659
772
|
deletePolicy(workspaceSlug: string, policySlug: string): Promise<void>;
|
|
660
773
|
}
|
|
661
774
|
//#endregion
|
|
662
|
-
//#region src/services/
|
|
775
|
+
//#region src/services/redactions.d.ts
|
|
663
776
|
/**
|
|
664
|
-
* Service for
|
|
777
|
+
* Service for workspace redactions, independent of the detection they came
|
|
778
|
+
* from.
|
|
665
779
|
*/
|
|
666
|
-
declare class
|
|
780
|
+
declare class Redactions {
|
|
667
781
|
#private;
|
|
668
782
|
constructor(api: ApiClient);
|
|
669
783
|
/**
|
|
670
|
-
*
|
|
671
|
-
* @param workspaceSlug - Workspace slug
|
|
672
|
-
* @param query - Optional pagination and filters (status, fileId,
|
|
673
|
-
* pipelineId, triggerType, triggeredBy, limit, after)
|
|
674
|
-
* @returns Promise that resolves with a paginated list of pipeline runs
|
|
675
|
-
* @throws {ApiError} if the request fails
|
|
676
|
-
*/
|
|
677
|
-
listRuns(workspaceSlug: string, query?: CursorPagination & PipelineRunsQuery & {
|
|
678
|
-
pipelineId?: string;
|
|
679
|
-
}): Promise<PipelineRunPage>;
|
|
680
|
-
/**
|
|
681
|
-
* List runs for a specific pipeline
|
|
682
|
-
* @param workspaceSlug - Workspace slug
|
|
683
|
-
* @param pipelineSlug - Pipeline slug
|
|
684
|
-
* @param query - Optional pagination and filters (status, fileId,
|
|
685
|
-
* triggerType, triggeredBy, limit, after)
|
|
686
|
-
* @returns Promise that resolves with a paginated list of pipeline runs
|
|
687
|
-
* @throws {ApiError} if the request fails
|
|
688
|
-
*/
|
|
689
|
-
listPipelineRuns(workspaceSlug: string, pipelineSlug: string, query?: CursorPagination & PipelineRunsQuery): Promise<PipelineRunPage>;
|
|
690
|
-
/**
|
|
691
|
-
* Trigger a new run for a pipeline
|
|
692
|
-
* @param workspaceSlug - Workspace slug
|
|
693
|
-
* @param pipelineSlug - Pipeline slug
|
|
694
|
-
* @param run - Pipeline run creation request
|
|
695
|
-
* @returns Promise that resolves with the created pipeline run
|
|
696
|
-
* @throws {ApiError} if the request fails
|
|
697
|
-
*/
|
|
698
|
-
createRun(workspaceSlug: string, pipelineSlug: string, run: CreatePipelineRun): Promise<PipelineRun>;
|
|
699
|
-
/**
|
|
700
|
-
* Get pipeline run details by ID
|
|
701
|
-
* @param workspaceSlug - Workspace slug
|
|
702
|
-
* @param runId - Run ID
|
|
703
|
-
* @returns Promise that resolves with the pipeline run details
|
|
704
|
-
* @throws {ApiError} if the request fails
|
|
705
|
-
*/
|
|
706
|
-
getRun(workspaceSlug: string, runId: string): Promise<PipelineRun>;
|
|
707
|
-
/**
|
|
708
|
-
* Get the detections (audit) for a pipeline run
|
|
784
|
+
* Get a redaction's review audit
|
|
709
785
|
* @param workspaceSlug - Workspace slug
|
|
710
|
-
* @param
|
|
786
|
+
* @param redactionId - Redaction ID
|
|
711
787
|
* @returns Promise that resolves with the audit
|
|
712
788
|
* @throws {ApiError} if the request fails
|
|
713
789
|
*/
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Download a run's audit as a file.
|
|
717
|
-
*
|
|
718
|
-
* `format` is `csv` (default) — a zip of entities.csv, provenance.csv, and
|
|
719
|
-
* reviews.csv — or `json`, a pretty-printed JSON file.
|
|
720
|
-
*
|
|
721
|
-
* @param workspaceSlug - Workspace slug
|
|
722
|
-
* @param runId - Run ID
|
|
723
|
-
* @param query - Optional output format (`csv` default, or `json`)
|
|
724
|
-
* @returns Promise that resolves with the file response
|
|
725
|
-
* @throws {ApiError} if the request fails
|
|
726
|
-
*/
|
|
727
|
-
downloadAudit(workspaceSlug: string, runId: string, query?: ExportQuery): Promise<Response>;
|
|
728
|
-
/**
|
|
729
|
-
* Open the raw Server-Sent Events stream of a run's status changes.
|
|
730
|
-
*
|
|
731
|
-
* Returns the underlying `Response` so callers can handle the
|
|
732
|
-
* `text/event-stream` body themselves. Most callers want
|
|
733
|
-
* {@link streamEvents}, which parses each frame into a typed
|
|
734
|
-
* {@link RunStatusEvent}.
|
|
735
|
-
*
|
|
736
|
-
* @param workspaceSlug - Workspace slug
|
|
737
|
-
* @param runId - Run ID
|
|
738
|
-
* @returns Promise that resolves with the event-stream response
|
|
739
|
-
* @throws {ApiError} if the request fails
|
|
740
|
-
*/
|
|
741
|
-
events(workspaceSlug: string, runId: string): Promise<Response>;
|
|
742
|
-
/**
|
|
743
|
-
* Stream a run's status changes as Server-Sent Events.
|
|
744
|
-
*
|
|
745
|
-
* Yields the current status immediately, then each transition, and ends
|
|
746
|
-
* once the run settles (analyzed, completed, failed, or cancelled). Break
|
|
747
|
-
* out of the loop to close the stream early. For the raw response, use
|
|
748
|
-
* {@link events}.
|
|
749
|
-
*
|
|
750
|
-
* @param workspaceSlug - Workspace slug
|
|
751
|
-
* @param runId - Run ID
|
|
752
|
-
* @yields each {@link RunStatusEvent} as it arrives
|
|
753
|
-
* @throws {ApiError} if the request fails to open
|
|
754
|
-
* @throws {NvisyError} if the response has no readable body
|
|
755
|
-
*/
|
|
756
|
-
streamEvents(workspaceSlug: string, runId: string): AsyncGenerator<RunStatusEvent>;
|
|
757
|
-
/**
|
|
758
|
-
* Apply redactions to a pipeline run
|
|
759
|
-
* @param workspaceSlug - Workspace slug
|
|
760
|
-
* @param runId - Run ID
|
|
761
|
-
* @returns Promise that resolves with the updated pipeline run
|
|
762
|
-
* @throws {ApiError} if the request fails
|
|
763
|
-
*/
|
|
764
|
-
redact(workspaceSlug: string, runId: string): Promise<PipelineRun>;
|
|
790
|
+
getReview(workspaceSlug: string, redactionId: string): Promise<Audit>;
|
|
765
791
|
}
|
|
766
792
|
//#endregion
|
|
767
793
|
//#region src/services/status.d.ts
|
|
@@ -1101,9 +1127,13 @@ declare class Nvisy {
|
|
|
1101
1127
|
*/
|
|
1102
1128
|
get notifications(): Notifications;
|
|
1103
1129
|
/**
|
|
1104
|
-
* Service for
|
|
1130
|
+
* Service for pipeline detections and their redactions.
|
|
1131
|
+
*/
|
|
1132
|
+
get detections(): Detections;
|
|
1133
|
+
/**
|
|
1134
|
+
* Service for workspace redactions.
|
|
1105
1135
|
*/
|
|
1106
|
-
get
|
|
1136
|
+
get redactions(): Redactions;
|
|
1107
1137
|
/**
|
|
1108
1138
|
* Service for managing connection syncs.
|
|
1109
1139
|
*/
|
|
@@ -1118,5 +1148,5 @@ declare class Nvisy {
|
|
|
1118
1148
|
get workspaces(): Workspaces;
|
|
1119
1149
|
}
|
|
1120
1150
|
//#endregion
|
|
1121
|
-
export {
|
|
1122
|
-
//# sourceMappingURL=client-
|
|
1151
|
+
export { Account as S, Catalog as _, Syncs as a, Analytics as b, Policies as c, Members as d, Invites as f, Chat as g, Connections as h, Webhooks as i, Pipelines as l, Detections as m, Nvisy as n, Status as o, Files as p, Workspaces as r, Redactions as s, ApiClient as t, Notifications as u, Auth as v, Activities as x, ApiTokens as y };
|
|
1152
|
+
//# sourceMappingURL=client-CRAUKfrL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-CRAUKfrL.d.ts","names":[],"sources":["../src/services/account.ts","../src/services/activities.ts","../src/services/analytics.ts","../src/services/api-tokens.ts","../src/services/auth.ts","../src/services/catalog.ts","../src/services/chat.ts","../src/services/connections.ts","../src/services/detections.ts","../src/services/files.ts","../src/services/invites.ts","../src/services/members.ts","../src/services/notifications.ts","../src/services/pipelines.ts","../src/services/policies.ts","../src/services/redactions.ts","../src/services/status.ts","../src/services/syncs.ts","../src/services/webhooks.ts","../src/services/workspaces.ts","../src/client.ts"],"mappings":";;;;;;;cAUa;;EAGA,YAAA,KAAK;;;;;;EASX,cAAc,QAAQ;;;;;;;EAWtB,cAAc,SAAS,gBAAgB,QAAQ;;;;;;EAY/C,iBAAiB;;;;;;;EAUjB,iBAAiB,mBAAmB,QAAQ;;;;;;;;EAc5C,aAAa,kBAAkB,QAAQ,OAAO,QAAQ;;;;;;;EAsBtD,aAAa,mBAAmB;;;;;;;cC/E1B;;EAGA,YAAA,KAAK;;;;;;;;;EAYX,eACL,uBACA,QAAQ,sBAAsB,aAAa,mBACzC,QAAQ;;;;;;;;;EAkBL,iBACL,uBACA,QAAQ,sBAAsB,aAAa,wBACzC,QAAQ;;;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,YAAY;;;;MAOZ,WAAW;;;;MAOX,WAAW;;;;MAOX,WAAW;;;;MAOX,iBAAiB;;;;MAOjB,cAAc;;;;MAOd,cAAc;;;;MAOd,SAAS;;;;MAOT,YAAY;;;;MAOZ,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, AnthropicCredentials, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern,
|
|
1
|
+
import { $ as PolicyRule, $i as DetectionAnalytics, $n as ChatMessage, $r as ImageModel, $t as ReplyInvite, A as Color, Aa as Account, Ai as TabularRetag, An as AzureCredentials, Ar as Calibration, At as NotificationPage, B as Label, Bi as TextManual, Bn as GcsCredentials, Br as EditSet, Bt as MemberSortField, C as Language, Ca as InviteActivityParams, Ci as TabularEntity, Cn as PipelineDetectionsQuery, Cr as AudioModel, Ct as DetectionCompletedParams, D as ScopeMetadata, Da as RedactionActivityParams, Di as TabularModel, Dn as RedactionResultPage, Dr as Audit, Dt as MemberJoinedParams, E as Languages, Ea as PolicyActivityParams, Ei as TabularManual, En as RedactionResult, Er as AudioRetag, Et as MemberInvitedParams, F as GdprArticle9Treatment, Fa as UpdateAccount, Fi as TextData, Fn as ConnectionSync, Fr as Contested, Ft as UnreadStatus, G as LanguageTag, Gi as TimeSpan, Gn as SyncConnection, Gr as ImageAuditKind, Gt as InviteCode, H as LabelLocale, Hi as TextPattern, Hn as OpenAiCredentials, Hr as FreeformAttribution, Ht as CreateInvite, I as GdprSensitiveScope, Ii as TextEdit, In as ConnectionSyncPage, Ir as Deduplication, It as UpdateNotificationSettings, J as PciDssPart, Ji as ApiTokenType, Jn as SyncSchedule, Jr as ImageEdit, Jt as InvitePreview, K as LocalizedText, Ki as ApiToken, Kn as SyncDeletionPolicy, Kr as ImageAuditLog, Kt as InviteExpiration, L as HipaaAccountNumbers, Li as TextEntity, Ln as ConnectionVerification, Lr as Dimensions, Lt as ListMembers, M as CreatePolicy, Ma as Handle, Mi as TextAuditEvent, Mn as ConnectionConfig, Mr as CitedAttribution, Mt as NotificationSettings, N as DateGranularity, Na as PasswordChange, Ni as TextAuditKind, Nn as ConnectionId, Nr as CodecParams, Nt as RedactionCreatedParams, O as AudioRedaction, Oa as WebhookActivityParams, Oi as TabularPattern, On as WorkspaceDetectionsQuery, Or as AuditHash, Ot as Notification, P as DateStyle, Pa as PublicAccount, Pi as TextAuditLog, Pn as ConnectionPage, Pr as Conflict, Pt as UnreadCountEvent, Q as PolicyDraft, Qi as UpdateApiToken, Qn as UpdateConnection, Qr as ImageManual, Qt as ListInvites, R as HipaaDeidMethod, Ri as TextHint, Rn as ConnectionsQuery, Rr as DocumentContext, Rt as Member, S as CountryCode, Sa as FileActivityParams, Si as TabularEdit, Sn as DetectionStatusEvent, Sr as AudioManual, St as ConnectionSyncFailedParams, T as LanguageSpan, Ta as PipelineActivityParams, Ti as TabularLocation, Tn as RedactionId, Tr as AudioRefinement, Tt as MarkedReadStatus, U as LabelRef, Ui as TextRefinement, Un as S3Credentials, Ur as ImageAdd, Ut as GenerateInviteCode, V as LabelEntry, Vi as TextModel, Vn as LlmConfig, Vr as EntityCoRef, Vt as UpdateMember, W as LabelScope, Wi as TextRetag, Wn as StorageConfig, Wr as ImageAuditEvent, Wt as Invite, X as Policy, Xi as CreateApiToken, Xn as SyncStatus, Xr as ImageHint, Xt as InviteSortField, Y as PciPanRender, Yi as ApiTokenWithJWT, Yn as SyncScheduleInput, Yr as ImageEntity, Yt as InviteSent, Z as PolicyDefinition, Zi as TokenExpiration, Zn as SyncTriggerType, Zr as ImageLocation, Zt as InviteStatus, _ as WebhookId, _a as ActivityPage, _i as Suppress, _n as Detection, _r as AudioData, _t as PipelineSummaryPage, a as RetentionSettings, aa as ProviderType, ai as ModelEvent, an as FileKind, ar as SendChatMessage, at as TabularRedaction, b as WebhookStatus, ba as ConnectionActivityParams, bi as TabularAuditKind, bn as DetectionPage, br as AudioHint, bt as CursorPagination, c as WorkspacePage, ca as StorageKindEntry, ci as Point, cn as ListFiles, cr as RegisteredRecognizer, ct as TextRedaction, d as CreateWebhook, da as UsageAnalytics, di as RasterMode, dn as DateWindow, dr as Signup, dt as CreatePipeline, ea as DetectionDayEntry, ei as ImagePattern, en as SortOrder, er as ChatRole, et as PolicySummary, f as TestWebhook, fa as UsageReport, fi as Redaction, fn as ExportFormat, fr as Attribution, ft as Pipeline, g as WebhookEvent, ga as ActivityFilterQuery, gi as SourceRef, gn as CreateDetection, gr as AudioAuditLog, gt as PipelineSummary, h as WebhookCreated, ha as ActivityExportOptions, hi as Selection, hn as ValidationErrorDetail, hr as AudioAuditKind, ht as PipelineStatus, i as RetentionOverride, ia as ModelUsageEntry, ii as ManualIntent, in as File, ir as CreateChatSession, it as Sha2Algorithm, j as ConfidenceThreshold, ja as AccountRef, ji as TextAdd, jn as Connection, jr as Category, jt as NotificationPayload, k as ClampBucket, ka as WorkspaceActivityParams, ki as TabularRefinement, kn as AnthropicCredentials, kr as BoundingBox, kt as NotificationEvent, l as WorkspaceRole, la as TokenCounts, li as Polygon, ln as ModalityToken, lr as AuthToken, lt as UpdatePolicy, m as Webhook, ma as Activity, mi as RuleMatch, mn as ErrorResponse, mr as AudioAuditEvent, mt as PipelineFilter, n as OcrPolicy, na as DetectionTimeSeries, ni as ImageRetag, nn as Health, nr as ChatSessionPage, nt as PolicyTemplate, o as UpdateWorkspace, oa as RecognizerId, oi as OperatorId, on as FilePage, or as LabelCatalog, ot as TemplateOrigin, p as UpdateWebhook, pa as WorkspaceAnalytics, pi as Report, pn as ExportQuery, pr as AudioAdd, pt as PipelineDefinition, q as ModalityRedactions, qi as ApiTokenPage, qn as SyncMode, qr as ImageData, qt as InvitePage, r as Retention, ra as ModelUsage, ri as LeakProfile, rn as HealthStatus, rr as ChatToken, rt as Predicate, s as Workspace, sa as StorageAnalytics, si as PatternEvent, sn as FormatToken, sr as RecognizerCatalog, st as TerminalFallback, t as CreateWorkspace, ta as DetectionStatusEntry, ti as ImageRefinement, tn as ComponentHealth, tr as ChatSession, tt as PolicySummaryPage, u as WorkspaceSettings, ua as Usage, ui as RangeOfUint, un as UpdateFile, ur as Login, ut as Waveform, v as WebhookPage, va as ActivityPayload, vi as TabularAdd, vn as DetectionId, vr as AudioEdit, vt as PipelineTriggerType, w as LanguageProvenance, wa as MemberActivityParams, wi as TabularHint, wn as RedactDetection, wr as AudioPattern, wt as DetectionFailedParams, x as Confidence, xa as DetectionActivityParams, xi as TabularAuditLog, xn as DetectionStatus, xr as AudioLocation, xt as ConnectionSyncCompletedParams, y as WebhookResult, ya as ActivityType, yi as TabularAuditEvent, yn as DetectionMetadata, yr as AudioEntity, yt as UpdatePipeline, z as ImageRedaction, zi as TextLocation, zn as CreateConnection, zr as Dpi, zt as MemberPage } from "../index-B1rBPY26.js";
|
|
2
|
+
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, AnthropicCredentials, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthToken, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionVerification, ConnectionsQuery, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, DateGranularity, DateStyle, DateWindow, Deduplication, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFormat, ExportQuery, File, FileActivityParams, FileKind, FilePage, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberInvitedParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OcrPolicy, OpenAiCredentials, OperatorId, PasswordChange, PatternEvent, PciDssPart, PciPanRender, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, ProviderType, PublicAccount, RangeOfUint, RasterMode, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, Sha2Algorithm, Signup, SortOrder, SourceRef, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, SyncConnection, SyncDeletionPolicy, SyncMode, SyncSchedule, SyncScheduleInput, SyncStatus, SyncTriggerType, TabularAdd, TabularAuditEvent, TabularAuditKind, TabularAuditLog, TabularEdit, TabularEntity, TabularHint, TabularLocation, TabularManual, TabularModel, TabularPattern, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, TokenCounts, TokenExpiration, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
|
|
@@ -7,7 +7,7 @@ import { n as NvisyError, t as NvisyApiError } from "./errors-BOLD8iC1.js";
|
|
|
7
7
|
* Injected from `package.json` at build time, so it always matches the
|
|
8
8
|
* published version. Used in the default user agent string.
|
|
9
9
|
*/
|
|
10
|
-
const VERSION = "0.
|
|
10
|
+
const VERSION = "0.36.0";
|
|
11
11
|
/**
|
|
12
12
|
* Default configuration values used when options are not explicitly provided.
|
|
13
13
|
*/
|
|
@@ -44,4 +44,4 @@ const errorMiddleware = {
|
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { DEFAULTS as n, VERSION as r, errorMiddleware as t };
|
|
47
|
-
//# sourceMappingURL=error-
|
|
47
|
+
//# sourceMappingURL=error-B-clwUc0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-
|
|
1
|
+
{"version":3,"file":"error-B-clwUc0.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * The `apiToken` field is required for authentication. All other fields are optional\n * and will use sensible defaults when omitted.\n *\n * @example\n * ```typescript\n * const config: ClientConfig = {\n * apiToken: \"your-api-token\",\n * baseUrl: \"https://api.nvisy.com\",\n * headers: { \"X-Custom-Header\": \"value\" },\n * };\n * const client = new Client(config);\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or via the auth endpoints.\n\t */\n\tapiToken: string;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAyEb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;ACjGA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mn as ErrorResponse } from "./index-B1rBPY26.js";
|
|
2
2
|
//#region src/errors.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Base error class for all Nvisy SDK errors.
|
|
@@ -124,4 +124,4 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
|
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
export { NvisyError as n, NvisyApiError as t };
|
|
127
|
-
//# sourceMappingURL=errors-
|
|
127
|
+
//# sourceMappingURL=errors-CgrmHkHE.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-CgrmHkHE.d.ts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAgCa,mBAAmB;;;;WAIf;;;;;;EAOJ,YAAA;;;;;;;;;;;;;;;;;;;;;;;;cA4BA,sBAAsB,sBAAsB;;;;WAIxC;;;;WAKA;;;;;WAMA;;;;;WAMA;;;;;WAMA,aAAa;;;;WAKb;;;;;;;EAQJ,YAAA,UAAU,eAAe;;;;;;;;;EAkBrC;;;;;;;;;EAYA;;;;;;;;;EAYA;;;;;;;;EAeA,UAAU"}
|