@nvisy/sdk 0.49.0 → 0.50.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,28 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.50.0] - 2026-09-11
12
+
13
+ ### Added
14
+
15
+ - `nvisy.assignments` service for assigning files to reviewers and tracking
16
+ review status (`assigned` / `in_review` / `done`): `listFileAssignments`,
17
+ `createAssignment`, `listAssignments`, `updateAssignment`, `deleteAssignment`
18
+ - Assignment datatypes (`Assignment`, `CreateAssignment`, `UpdateAssignment`,
19
+ `AssignmentPage`, `AssignmentStatus`, `WorkspaceAssignmentsQuery`) and the
20
+ `FileAssignedParams` / `FileUnassignedParams` notification payloads
21
+
22
+ ### Changed
23
+
24
+ - Regenerated the API schema against the updated platform handlers
25
+
26
+ ### Removed
27
+
28
+ - **Breaking:** `ErrorResponse` no longer carries `suggestion` or `validation`,
29
+ and the `ValidationErrorDetail` datatype is removed. `NvisyApiError` drops its
30
+ `suggestion` and `validation` properties accordingly
31
+ - **Breaking:** the `MemberInvitedParams` notification-payload datatype
32
+
11
33
  ## [0.49.0] - 2026-09-09
12
34
 
13
35
  ### Added
@@ -1024,7 +1046,8 @@ redaction an independent resource. This release renames the SDK to match.
1024
1046
  - Network error handling for timeouts, DNS resolution, and connection issues
1025
1047
  - Configuration validation with detailed error messages
1026
1048
 
1027
- [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.49.0...HEAD
1049
+ [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.50.0...HEAD
1050
+ [0.50.0]: https://github.com/nvisycom/sdk-ts/compare/v0.49.0...v0.50.0
1028
1051
  [0.49.0]: https://github.com/nvisycom/sdk-ts/compare/v0.48.0...v0.49.0
1029
1052
  [0.48.0]: https://github.com/nvisycom/sdk-ts/compare/v0.47.0...v0.48.0
1030
1053
  [0.47.0]: https://github.com/nvisycom/sdk-ts/compare/v0.46.0...v0.47.0
@@ -1,4 +1,4 @@
1
- import { $a as ActivityFilterQuery, $n as CreateConnection, $r as Audit, $t as GenerateInviteCode, A as Provider, Aa as ApiToken, An as Detection, At as CursorPagination, Ba as DetectionTimeSeries, Bn as RedactionResultPage, Bt as NotificationPage, Cn as UpdateFile, Co as paths, Dr as CreateChatSession, Dt as PipelineSummaryPage, En as ExportQuery, Er as ChatToken, F as ProvidersQuery, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Ft as MarkedReadStatus, Gt as UnreadStatus, Ht as NotificationSettings, I as UpdateProvider, Ia as UpdateApiToken, In as PipelineDetectionsQuery, Ir as Login, Jn as ConnectionSync, Jt as Member, Kt as UpdateNotificationSettings, Ln as RedactDetection, Lr as Signup, Mr as RecognizerCatalog, N as ProviderPage, Na as ApiTokenWithJWT, Nn as DetectionPage, O as CreateProvider, Or as SendChatMessage, Pa as CreateApiToken, Pr as DesktopToken, Qa as ActivityExportOptions, Qt as CreateInvite, So as UpdateAccount, Sr as ChatMessage, St as Pipeline, Tr as ChatSessionPage, Tt as PipelineStatus, V as CreatePolicy, Vn as WorkspaceDetectionsQuery, Wn as Connection, Wt as UnreadCountEvent, Xa as WorkspaceAnalytics, Yn as ConnectionSyncPage, Yt as MemberPage, Zn as ConnectionVerification, Zt as UpdateMember, an as InviteSent, bo as PublicAccount, c as WorkspacePage, cn as ListInvites, d as CreateWebhook, dt as PolicySummaryPage, eo as ActivityPage, er as ExportFiles, f as TestWebhook, fn as Health, fr as StartFileServiceOAuth, gn as File, h as WebhookCreated, hn as DeletedFiles, in as InvitePreview, ir as ImportFiles, ja as ApiTokenPage, jr as LabelCatalog, kn as CreateDetection, kr as ConnectorCatalog, kt as UpdatePipeline, ln as ReplyInvite, lr as PickerToken, m as Webhook, mo as AccountIdentities, nr as FileServiceProvider, o as UpdateWorkspace, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, po as Account$1, qn as ConnectionPage, qt as ListMembers, rn as InvitePage, s as Workspace, t as CreateWorkspace, tn as InviteCode, ur as PickerTokenRequest, v as WebhookPage, vo as IdentityProvider, vr as SyncStatus, wn as DateWindow, wr as ChatSession, xa as ArtifactSet, xn as ListFiles, xo as SetPassword, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, yn as FilePage, yo as OidcStartResponse, yt as UpdatePolicy, zn as RedactionResult } from "./index-CNUnM9QG.js";
1
+ import { $n as CreateConnection, $r as Audit, $t as CreateInvite, A as Provider, An as Detection, At as CursorPagination, Ba as CreateApiToken, Bn as RedactionResultPage, Da as ArtifactSet, Dn as ExportQuery, Do as SetPassword, Dr as CreateChatSession, Dt as PipelineSummaryPage, Ea as WorkspaceAssignmentsQuery, Eo as PublicAccount, Er as ChatToken, F as ProvidersQuery, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Gt as UnreadCountEvent, Ha as UpdateApiToken, I as UpdateProvider, Ia as ApiToken, In as PipelineDetectionsQuery, Ir as Login, Jn as ConnectionSync, Jt as ListMembers, Ka as DetectionTimeSeries, Kt as UnreadStatus, La as ApiTokenPage, Ln as RedactDetection, Lr as Signup, Lt as MarkedReadStatus, Mr as RecognizerCatalog, N as ProviderPage, Nn as DetectionPage, O as CreateProvider, Oo as UpdateAccount, Or as SendChatMessage, Pr as DesktopToken, Qt as UpdateMember, Sa as AssignmentPage, Sn as ListFiles, Sr as ChatMessage, St as Pipeline, Ta as UpdateAssignment, Tn as DateWindow, To as OidcStartResponse, Tr as ChatSessionPage, Tt as PipelineStatus, Ut as NotificationSettings, V as CreatePolicy, Vn as WorkspaceDetectionsQuery, Vt as NotificationPage, Wn as Connection, Xt as MemberPage, Yn as ConnectionSyncPage, Yt as Member, Zn as ConnectionVerification, _n as File, an as InvitePreview, ao as ActivityFilterQuery, bn as FilePage, bo as AccountIdentities, c as WorkspacePage, d as CreateWebhook, dt as PolicySummaryPage, en as GenerateInviteCode, er as ExportFiles, f as TestWebhook, fr as StartFileServiceOAuth, gn as DeletedFiles, h as WebhookCreated, in as InvitePage, io as ActivityExportOptions, ir as ImportFiles, jr as LabelCatalog, kn as CreateDetection, ko as paths, kr as ConnectorCatalog, kt as UpdatePipeline, ln as ListInvites, lr as PickerToken, m as Webhook, nn as InviteCode, no as WorkspaceAnalytics, nr as FileServiceProvider, o as UpdateWorkspace, on as InviteSent, oo as ActivityPage, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, pn as Health, qn as ConnectionPage, qt as UpdateNotificationSettings, s as Workspace, t as CreateWorkspace, un as ReplyInvite, ur as PickerTokenRequest, v as WebhookPage, vr as SyncStatus, wa as CreateAssignment, wn as UpdateFile, wo as IdentityProvider, wr as ChatSession, xa as Assignment, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, yo as Account$1, yt as UpdatePolicy, za as ApiTokenWithJWT, zn as RedactionResult } from "./index-QQU6h-4Y.js";
2
2
  import { t as ClientConfig } from "./config-BdAgnJlh.js";
3
3
  import { Client } from "openapi-fetch";
4
4
  //#region src/services/account.d.ts
@@ -215,6 +215,59 @@ declare class ApiTokens {
215
215
  revokeApiToken(tokenId: string): Promise<void>;
216
216
  }
217
217
  //#endregion
218
+ //#region src/services/assignments.d.ts
219
+ /**
220
+ * Service for file assignments: assigning a file to a reviewer and tracking its
221
+ * review status (`assigned` → `in_review` → `done`).
222
+ */
223
+ declare class Assignments {
224
+ #private;
225
+ constructor(api: ApiClient);
226
+ /**
227
+ * List the assignments on a file, most recent first.
228
+ * @param workspaceSlug - Workspace slug
229
+ * @param fileId - File ID
230
+ * @returns Promise that resolves with the file's assignments
231
+ * @throws {ApiError} if the request fails
232
+ */
233
+ listFileAssignments(workspaceSlug: string, fileId: string): Promise<Assignment[]>;
234
+ /**
235
+ * Assign a file to a reviewer.
236
+ * @param workspaceSlug - Workspace slug
237
+ * @param fileId - File ID
238
+ * @param assignment - Assignment creation request
239
+ * @returns Promise that resolves with the created assignment
240
+ * @throws {ApiError} if the request fails
241
+ */
242
+ createAssignment(workspaceSlug: string, fileId: string, assignment: CreateAssignment): Promise<Assignment>;
243
+ /**
244
+ * List a workspace's assignments, most recent first.
245
+ * @param workspaceSlug - Workspace slug
246
+ * @param query - Optional pagination and filters (assignee, status, fileId,
247
+ * limit, after)
248
+ * @returns Promise that resolves with a paginated list of assignments
249
+ * @throws {ApiError} if the request fails
250
+ */
251
+ listAssignments(workspaceSlug: string, query?: CursorPagination & WorkspaceAssignmentsQuery): Promise<AssignmentPage>;
252
+ /**
253
+ * Update an assignment (e.g. change its review status).
254
+ * @param workspaceSlug - Workspace slug
255
+ * @param assignmentId - Assignment ID
256
+ * @param updates - Assignment update request
257
+ * @returns Promise that resolves with the updated assignment
258
+ * @throws {ApiError} if the request fails
259
+ */
260
+ updateAssignment(workspaceSlug: string, assignmentId: string, updates: UpdateAssignment): Promise<Assignment>;
261
+ /**
262
+ * Delete an assignment.
263
+ * @param workspaceSlug - Workspace slug
264
+ * @param assignmentId - Assignment ID
265
+ * @returns Promise that resolves when the assignment is deleted
266
+ * @throws {ApiError} if the request fails
267
+ */
268
+ deleteAssignment(workspaceSlug: string, assignmentId: string): Promise<void>;
269
+ }
270
+ //#endregion
218
271
  //#region src/services/auth.d.ts
219
272
  /**
220
273
  * Service for handling authentication operations
@@ -1366,6 +1419,10 @@ declare class Nvisy {
1366
1419
  * Service for managing API tokens.
1367
1420
  */
1368
1421
  get apiTokens(): ApiTokens;
1422
+ /**
1423
+ * Service for file assignments (assigning files to reviewers).
1424
+ */
1425
+ get assignments(): Assignments;
1369
1426
  /**
1370
1427
  * Service for managing connections.
1371
1428
  */
@@ -1424,5 +1481,5 @@ declare class Nvisy {
1424
1481
  get workspaces(): Workspaces;
1425
1482
  }
1426
1483
  //#endregion
1427
- export { Account as C, Activities as S, Chat as _, Syncs as a, ApiTokens as b, Providers as c, Notifications as d, Members as f, Connections as g, Detections as h, Webhooks as i, Policies as l, Files as m, Nvisy as n, Status as o, Invites as p, Workspaces as r, Redactions as s, ApiClient as t, Pipelines as u, Catalog as v, Analytics as x, Auth as y };
1428
- //# sourceMappingURL=client-BEpBVGGP.d.ts.map
1484
+ export { Activities as C, Analytics as S, Chat as _, Syncs as a, Assignments as b, Providers as c, Notifications as d, Members as f, Connections as g, Detections as h, Webhooks as i, Policies as l, Files as m, Nvisy as n, Status as o, Invites as p, Workspaces as r, Redactions as s, ApiClient as t, Pipelines as u, Catalog as v, Account as w, ApiTokens as x, Auth as y };
1485
+ //# sourceMappingURL=client-ClO429Iv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-ClO429Iv.d.ts","names":[],"sources":["../src/services/account.ts","../src/services/activities.ts","../src/services/analytics.ts","../src/services/api-tokens.ts","../src/services/assignments.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/providers.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":";;;;;;;cAca;;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;;;;;;EAWhC,kBAAkB,QAAQ;;;;;;;;;;;;EAgB1B,YAAY,SAAS,cAAc;;;;;;;;;EAYnC,kBAAkB;;;;;;;;;;;;;EAgBlB,aACL,UAAU,kBACV;IAAU;IAAsB;MAC9B,QAAQ;;;;;;;;;;EAgBL,eAAe,UAAU,mBAAmB;;;;;;;;;;;;;EAkB5C,OACL,UAAU,kBACV;IAAU;MACR,QAAQ;;;;;;;cClLC;;EAGA,YAAA,KAAK;;;;;;;;;EAYX,eACL,uBACA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AAW;;;;MAOX,WAAW;;;;MAOX,iBAAiB;;;;MAOjB,cAAc;;;;MAOd,cAAc;;;;MAOd,SAAS;;;;MAOT,YAAY;;;;MAOZ,cAAc"}
@@ -1,2 +1,2 @@
1
- import { $ as LabelRef, $a as ActivityFilterQuery, $i as TabularLocation, $n as CreateConnection, $r as Audit, $t as GenerateInviteCode, A as Provider, Aa as ApiToken, Ai as LeakProfile, An as Detection, Ar as FileProviders, At as CursorPagination, B as ConfidenceThreshold, Ba as DetectionTimeSeries, Bi as Report, Bn as RedactionResultPage, Br as AudioAuditEvent, Bt as NotificationPage, C as Language, Ca as LayoutBlock, Ci as ImageHint, Cn as UpdateFile, Cr as ChatRole, Ct as PipelineDefinition, D as ScopeMetadata, Da as TranscriptSegment, Di as ImagePattern, Dn as ErrorResponse, Dr as CreateChatSession, Dt as PipelineSummaryPage, E as Languages, Ea as Tokens, Ei as ImageModel, En as ExportQuery, Er as ChatToken, Et as PipelineSummary, F as ProvidersQuery, Fa as TokenExpiration, Fi as Point, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Ft as MarkedReadStatus, G as GdprArticle9Treatment, Ga as StorageKindEntry, Gi as Suppress, Gn as ConnectionConfig, Gr as AudioEntity, Gt as UnreadStatus, H as CustomMatcher, Ha as ModelUsageEntry, Hi as Selection, Hn as AuthenticatedProvider, Hr as AudioAuditLog, Ht as NotificationSettings, I as UpdateProvider, Ia as UpdateApiToken, Ii as Polygon, In as PipelineDetectionsQuery, Ir as Login, It as MemberInvitedParams, J as HipaaDeidMethod, Ja as UsageAnalytics, Ji as TabularAuditKind, Jn as ConnectionSync, Jr as AudioManual, Jt as Member, K as GdprSensitiveScope, Ka as TokenCounts, Ki as TabularAdd, Kn as ConnectionId, Kr as AudioHint, Kt as UpdateNotificationSettings, L as AudioRedaction, La as DetectionAnalytics, Li as RangeOfUint, Ln as RedactDetection, Lr as Signup, Lt as MemberJoinedParams, M as ProviderId, Ma as ApiTokenType, Mi as ModelEvent, Mn as DetectionMetadata, Mr as RecognizerCatalog, Mt as ConnectionSyncFailedParams, N as ProviderPage, Na as ApiTokenWithJWT, Ni as OperatorId, Nn as DetectionPage, Nr as RegisteredRecognizer, Nt as DetectionCompletedParams, O as CreateProvider, Oa as TranscriptWord, Oi as ImageRefinement, On as ValidationErrorDetail, Or as SendChatMessage, Ot as PipelineTriggerType, P as ProviderType, Pa as CreateApiToken, Pi as PatternEvent, Pn as DetectionStatus, Pr as DesktopToken, Pt as DetectionFailedParams, Q as LabelLocale, Qa as ActivityExportOptions, Qi as TabularHint, Qn as ConnectionsQuery, Qr as AudioRetag, Qt as CreateInvite, R as ClampBucket, Ra as DetectionDayEntry, Ri as RasterMode, Rn as RedactionId, Rr as Attribution, Rt as Notification, S as CountryCode, Sa as Layout, Si as ImageEntity, Sn as ModalityToken, So as UpdateAccount, Sr as ChatMessage, St as Pipeline, T as LanguageSpan, Ta as Token, Ti as ImageManual, Tn as ExportFormat, Tr as ChatSessionPage, Tt as PipelineStatus, U as DateGranularity, Ua as RecognizerId, Ui as SourceRef, Un as AzureCredentials, Ur as AudioData, Ut as RedactionCreatedParams, V as CreatePolicy, Va as ModelUsage, Vi as RuleMatch, Vn as WorkspaceDetectionsQuery, Vr as AudioAuditKind, Vt as NotificationPayload, W as DateStyle, Wa as StorageAnalytics, Wi as SourceSpan, Wn as Connection, Wr as AudioEdit, Wt as UnreadCountEvent, X as Label, Xa as WorkspaceAnalytics, Xi as TabularEdit, Xn as ConnectionType, Xr as AudioPattern, Xt as MemberSortField, Y as ImageRedaction, Ya as UsageReport, Yi as TabularAuditLog, Yn as ConnectionSyncPage, Yr as AudioModel, Yt as MemberPage, Z as LabelEntry, Za as Activity, Zi as TabularEntity, Zn as ConnectionVerification, Zr as AudioRefinement, Zt as UpdateMember, _ as WebhookId, _a as TextPattern, _i as ImageAuditEvent, _n as FileHash, _o as Handle, _r as SyncScheduleInput, _t as TerminalFallback, a as RetentionSettings, aa as TextAdd, ai as CodecParams, an as InviteSent, ao as FileActivityParams, ar as LlmConfig, at as PciPanRender, b as WebhookStatus, ba as TimeSpan, bi as ImageData, bn as FormatToken, bo as PublicAccount, br as UnauthenticatedProvider, bt as Waveform, c as WorkspacePage, ca as TextAuditLog, ci as DecodedSpan, cn as ListInvites, co as PipelineActivityParams, cr as PickedFile, ct as PolicyDraft, d as CreateWebhook, da as TextEdit, di as DocumentContext, dn as ComponentHealth, do as WebhookActivityParams, dr as S3Credentials, dt as PolicySummaryPage, ea as TabularManual, ei as AuditHash, en as Invite, eo as ActivityPage, er as ExportFiles, et as LabelScope, f as TestWebhook, fa as TextEntity, fi as Dpi, fn as Health, fo as WorkspaceActivityParams, fr as StartFileServiceOAuth, ft as PolicyTemplate, g as WebhookEvent, ga as TextModel, gi as ImageAdd, gn as File, go as AccountRef, gr as SyncSchedule, gt as TemplateOrigin, h as WebhookCreated, ha as TextManual, hi as FreeformAttribution, hn as DeletedFiles, ho as AccountIdentity, hr as SyncMode, ht as TabularRedaction, i as RetentionOverride, ia as TabularRetag, ii as CitedAttribution, in as InvitePreview, io as DetectionActivityParams, ir as ImportFiles, it as PciDssPart, j as ProviderConfig, ja as ApiTokenPage, ji as ManualIntent, jn as DetectionId, jr as LabelCatalog, jt as ConnectionSyncCompletedParams, k as InferenceConfig, ka as Transcription, ki as ImageRetag, kn as CreateDetection, kr as ConnectorCatalog, kt as UpdatePipeline, l as WorkspaceRole, la as TextCoord, li as Deduplication, ln as ReplyInvite, lo as PolicyActivityParams, lr as PickerToken, lt as PolicyRule, m as Webhook, ma as TextLocation, mi as EntityCoRef, mn as DeleteFiles, mo as AccountIdentities, mr as SyncDeletionPolicy, mt as Sha2Algorithm, n as RasterPolicy, na as TabularPattern, ni as Calibration, nn as InviteExpiration, no as ActivityType, nr as FileServiceProvider, nt as LocalizedText, o as UpdateWorkspace, oa as TextAuditEvent, oi as Conflict, on as InviteSortField, oo as InviteActivityParams, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, pa as TextHint, pi as EditSet, pn as HealthStatus, po as Account, pr as StorageConfig, pt as Predicate, q as HipaaAccountNumbers, qa as Usage, qi as TabularAuditEvent, qn as ConnectionPage, qr as AudioLocation, qt as ListMembers, r as Retention, ra as TabularRefinement, ri as Category, rn as InvitePage, ro as ConnectionActivityParams, rr as GcsCredentials, rt as ModalityRedactions, s as Workspace, sa as TextAuditKind, si as Contested, sn as InviteStatus, so as MemberActivityParams, sr as OAuthTokens, st as PolicyDefinition, t as CreateWorkspace, ta as TabularModel, ti as BoundingBox, tn as InviteCode, to as ActivityPayload, tr as FileServiceConfig, tt as LanguageTag, u as WorkspaceSettings, ua as TextData, ui as Dimensions, un as SortOrder, uo as RedactionActivityParams, ur as PickerTokenRequest, ut as PolicySummary, v as WebhookPage, va as TextRefinement, vi as ImageAuditKind, vn as FileKind, vo as IdentityProvider, vr as SyncStatus, vt as TextRedaction, w as LanguageProvenance, wa as LayoutWord, wi as ImageLocation, wn as DateWindow, wr as ChatSession, wt as PipelineFilter, x as Confidence, xa as ArtifactSet, xi as ImageEdit, xn as ListFiles, xo as SetPassword, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, ya as TextRetag, yi as ImageAuditLog, yn as FilePage, yo as OidcStartResponse, yr as SyncTriggerType, yt as UpdatePolicy, z as Color, za as DetectionStatusEntry, zi as Redaction, zn as RedactionResult, zr as AudioAdd, zt as NotificationEvent } from "../index-CNUnM9QG.js";
2
- export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, 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, ConnectionType, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateProvider, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, DesktopToken, DesktopTokenRequest, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FileServiceProvider, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, InferenceConfig, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, 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, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, PickerTokenRequest, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, ProviderConfig, ProviderId, ProviderPage, ProviderType, ProvidersQuery, PublicAccount, RangeOfUint, RasterMode, RasterPolicy, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, 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, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateProvider, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
1
+ import { $ as LabelRef, $a as Usage, $i as TabularLocation, $n as CreateConnection, $r as Audit, $t as CreateInvite, A as Provider, Aa as LayoutWord, Ai as LeakProfile, An as Detection, Ar as FileProviders, At as CursorPagination, B as ConfidenceThreshold, Ba as CreateApiToken, Bi as Report, Bn as RedactionResultPage, Br as AudioAuditEvent, Bt as NotificationEvent, C as Language, Ca as AssignmentStatus, Ci as ImageHint, Cn as ModalityToken, Co as Handle, Cr as ChatRole, Ct as PipelineDefinition, D as ScopeMetadata, Da as ArtifactSet, Di as ImagePattern, Dn as ExportQuery, Do as SetPassword, Dr as CreateChatSession, Dt as PipelineSummaryPage, E as Languages, Ea as WorkspaceAssignmentsQuery, Ei as ImageModel, En as ExportFormat, Eo as PublicAccount, Er as ChatToken, Et as PipelineSummary, F as ProvidersQuery, Fa as Transcription, Fi as Point, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Ft as FileAssignedParams, G as GdprArticle9Treatment, Ga as DetectionStatusEntry, Gi as Suppress, Gn as ConnectionConfig, Gr as AudioEntity, Gt as UnreadCountEvent, H as CustomMatcher, Ha as UpdateApiToken, Hi as Selection, Hn as AuthenticatedProvider, Hr as AudioAuditLog, Ht as NotificationPayload, I as UpdateProvider, Ia as ApiToken, Ii as Polygon, In as PipelineDetectionsQuery, Ir as Login, It as FileUnassignedParams, J as HipaaDeidMethod, Ja as ModelUsageEntry, Ji as TabularAuditKind, Jn as ConnectionSync, Jr as AudioManual, Jt as ListMembers, K as GdprSensitiveScope, Ka as DetectionTimeSeries, Ki as TabularAdd, Kn as ConnectionId, Kr as AudioHint, Kt as UnreadStatus, L as AudioRedaction, La as ApiTokenPage, Li as RangeOfUint, Ln as RedactDetection, Lr as Signup, Lt as MarkedReadStatus, M as ProviderId, Ma as Tokens, Mi as ModelEvent, Mn as DetectionMetadata, Mr as RecognizerCatalog, Mt as ConnectionSyncFailedParams, N as ProviderPage, Na as TranscriptSegment, Ni as OperatorId, Nn as DetectionPage, Nr as RegisteredRecognizer, Nt as DetectionCompletedParams, O as CreateProvider, Oa as Layout, Oi as ImageRefinement, On as ErrorResponse, Oo as UpdateAccount, Or as SendChatMessage, Ot as PipelineTriggerType, P as ProviderType, Pa as TranscriptWord, Pi as PatternEvent, Pn as DetectionStatus, Pr as DesktopToken, Pt as DetectionFailedParams, Q as LabelLocale, Qa as TokenCounts, Qi as TabularHint, Qn as ConnectionsQuery, Qr as AudioRetag, Qt as UpdateMember, R as ClampBucket, Ra as ApiTokenType, Ri as RasterMode, Rn as RedactionId, Rr as Attribution, Rt as MemberJoinedParams, S as CountryCode, Sa as AssignmentPage, Si as ImageEntity, Sn as ListFiles, So as AccountRef, Sr as ChatMessage, St as Pipeline, T as LanguageSpan, Ta as UpdateAssignment, Ti as ImageManual, Tn as DateWindow, To as OidcStartResponse, Tr as ChatSessionPage, Tt as PipelineStatus, U as DateGranularity, Ua as DetectionAnalytics, Ui as SourceRef, Un as AzureCredentials, Ur as AudioData, Ut as NotificationSettings, V as CreatePolicy, Va as TokenExpiration, Vi as RuleMatch, Vn as WorkspaceDetectionsQuery, Vr as AudioAuditKind, Vt as NotificationPage, W as DateStyle, Wa as DetectionDayEntry, Wi as SourceSpan, Wn as Connection, Wr as AudioEdit, Wt as RedactionCreatedParams, X as Label, Xa as StorageAnalytics, Xi as TabularEdit, Xn as ConnectionType, Xr as AudioPattern, Xt as MemberPage, Y as ImageRedaction, Ya as RecognizerId, Yi as TabularAuditLog, Yn as ConnectionSyncPage, Yr as AudioModel, Yt as Member, Z as LabelEntry, Za as StorageKindEntry, Zi as TabularEntity, Zn as ConnectionVerification, Zr as AudioRefinement, Zt as MemberSortField, _ as WebhookId, _a as TextPattern, _i as ImageAuditEvent, _n as File, _o as WebhookActivityParams, _r as SyncScheduleInput, _t as TerminalFallback, a as RetentionSettings, aa as TextAdd, ai as CodecParams, an as InvitePreview, ao as ActivityFilterQuery, ar as LlmConfig, at as PciPanRender, b as WebhookStatus, ba as TimeSpan, bi as ImageData, bn as FilePage, bo as AccountIdentities, br as UnauthenticatedProvider, bt as Waveform, c as WorkspacePage, ca as TextAuditLog, ci as DecodedSpan, cn as InviteStatus, co as ActivityType, cr as PickedFile, ct as PolicyDraft, d as CreateWebhook, da as TextEdit, di as DocumentContext, dn as SortOrder, do as FileActivityParams, dr as S3Credentials, dt as PolicySummaryPage, ea as TabularManual, ei as AuditHash, en as GenerateInviteCode, eo as UsageAnalytics, er as ExportFiles, et as LabelScope, f as TestWebhook, fa as TextEntity, fi as Dpi, fn as ComponentHealth, fo as InviteActivityParams, fr as StartFileServiceOAuth, ft as PolicyTemplate, g as WebhookEvent, ga as TextModel, gi as ImageAdd, gn as DeletedFiles, go as RedactionActivityParams, gr as SyncSchedule, gt as TemplateOrigin, h as WebhookCreated, ha as TextManual, hi as FreeformAttribution, hn as DeleteFiles, ho as PolicyActivityParams, hr as SyncMode, ht as TabularRedaction, i as RetentionOverride, ia as TabularRetag, ii as CitedAttribution, in as InvitePage, io as ActivityExportOptions, ir as ImportFiles, it as PciDssPart, j as ProviderConfig, ja as Token, ji as ManualIntent, jn as DetectionId, jr as LabelCatalog, jt as ConnectionSyncCompletedParams, k as InferenceConfig, ka as LayoutBlock, ki as ImageRetag, kn as CreateDetection, kr as ConnectorCatalog, kt as UpdatePipeline, l as WorkspaceRole, la as TextCoord, li as Deduplication, ln as ListInvites, lo as ConnectionActivityParams, lr as PickerToken, lt as PolicyRule, m as Webhook, ma as TextLocation, mi as EntityCoRef, mn as HealthStatus, mo as PipelineActivityParams, mr as SyncDeletionPolicy, mt as Sha2Algorithm, n as RasterPolicy, na as TabularPattern, ni as Calibration, nn as InviteCode, no as WorkspaceAnalytics, nr as FileServiceProvider, nt as LocalizedText, o as UpdateWorkspace, oa as TextAuditEvent, oi as Conflict, on as InviteSent, oo as ActivityPage, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, pa as TextHint, pi as EditSet, pn as Health, po as MemberActivityParams, pr as StorageConfig, pt as Predicate, q as HipaaAccountNumbers, qa as ModelUsage, qi as TabularAuditEvent, qn as ConnectionPage, qr as AudioLocation, qt as UpdateNotificationSettings, r as Retention, ra as TabularRefinement, ri as Category, rn as InviteExpiration, ro as Activity, rr as GcsCredentials, rt as ModalityRedactions, s as Workspace, sa as TextAuditKind, si as Contested, sn as InviteSortField, so as ActivityPayload, sr as OAuthTokens, st as PolicyDefinition, t as CreateWorkspace, ta as TabularModel, ti as BoundingBox, tn as Invite, to as UsageReport, tr as FileServiceConfig, tt as LanguageTag, u as WorkspaceSettings, ua as TextData, ui as Dimensions, un as ReplyInvite, uo as DetectionActivityParams, ur as PickerTokenRequest, ut as PolicySummary, v as WebhookPage, va as TextRefinement, vi as ImageAuditKind, vn as FileHash, vo as WorkspaceActivityParams, vr as SyncStatus, vt as TextRedaction, w as LanguageProvenance, wa as CreateAssignment, wi as ImageLocation, wn as UpdateFile, wo as IdentityProvider, wr as ChatSession, wt as PipelineFilter, x as Confidence, xa as Assignment, xi as ImageEdit, xn as FormatToken, xo as AccountIdentity, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, ya as TextRetag, yi as ImageAuditLog, yn as FileKind, yo as Account, yr as SyncTriggerType, yt as UpdatePolicy, z as Color, za as ApiTokenWithJWT, zi as Redaction, zn as RedactionResult, zr as AudioAdd, zt as Notification } from "../index-QQU6h-4Y.js";
2
+ export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Assignment, AssignmentPage, AssignmentStatus, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, 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, ConnectionType, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateAssignment, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateProvider, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, DesktopToken, DesktopTokenRequest, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileAssignedParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FileServiceProvider, FileUnassignedParams, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, InferenceConfig, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, PickerTokenRequest, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, ProviderConfig, ProviderId, ProviderPage, ProviderType, ProvidersQuery, PublicAccount, RangeOfUint, RasterMode, RasterPolicy, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, 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, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateAssignment, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateProvider, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceAssignmentsQuery, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
@@ -1,4 +1,4 @@
1
- import { n as NvisyError, t as NvisyApiError } from "./errors-BOLD8iC1.js";
1
+ import { n as NvisyError, t as NvisyApiError } from "./errors-D2J3LbE-.js";
2
2
 
3
3
  //#region src/config.ts
4
4
  /**
@@ -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.49.0";
10
+ const VERSION = "0.50.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-DNeyT0Z7.js.map
47
+ //# sourceMappingURL=error-DRb1GHg6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-DNeyT0Z7.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 * Authenticate one of two ways: pass an `apiToken` (sent as a bearer token on\n * every request), or use a browser session — sign in with the standalone\n * `login` / `signup`, then set `credentials: \"include\"` so the session cookies\n * are sent. All other fields are optional and use sensible defaults.\n *\n * @example\n * ```typescript\n * // API token\n * const client = new Client({ apiToken: \"your-api-token\" });\n *\n * // Browser session (after `login()` set the cookies)\n * const client = new Client({ credentials: \"include\" });\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication, sent as `Authorization: Bearer <token>`.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or the api-tokens endpoint.\n\t * Omit it to authenticate with a browser session instead (see `credentials`).\n\t */\n\tapiToken?: string;\n\n\t/**\n\t * Credentials mode for every request, forwarded to `fetch`.\n\t *\n\t * Set to `\"include\"` to send the session cookies established by the\n\t * standalone `login` / `signup` (needed for cross-origin browser sessions).\n\t * Defaults to the platform's `fetch` default when omitted.\n\t */\n\tcredentials?: RequestCredentials;\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;;;;AAoFb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;AC5GA,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
+ {"version":3,"file":"error-DRb1GHg6.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 * Authenticate one of two ways: pass an `apiToken` (sent as a bearer token on\n * every request), or use a browser session — sign in with the standalone\n * `login` / `signup`, then set `credentials: \"include\"` so the session cookies\n * are sent. All other fields are optional and use sensible defaults.\n *\n * @example\n * ```typescript\n * // API token\n * const client = new Client({ apiToken: \"your-api-token\" });\n *\n * // Browser session (after `login()` set the cookies)\n * const client = new Client({ credentials: \"include\" });\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication, sent as `Authorization: Bearer <token>`.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or the api-tokens endpoint.\n\t * Omit it to authenticate with a browser session instead (see `credentials`).\n\t */\n\tapiToken?: string;\n\n\t/**\n\t * Credentials mode for every request, forwarded to `fetch`.\n\t *\n\t * Set to `\"include\"` to send the session cookies established by the\n\t * standalone `login` / `signup` (needed for cross-origin browser sessions).\n\t * Defaults to the platform's `fetch` default when omitted.\n\t */\n\tcredentials?: RequestCredentials;\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;;;;AAoFb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;AC5GA,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 { Dn as ErrorResponse } from "./index-CNUnM9QG.js";
1
+ import { On as ErrorResponse } from "./index-QQU6h-4Y.js";
2
2
  //#region src/errors.d.ts
3
3
  /**
4
4
  * Base error class for all Nvisy SDK errors.
@@ -65,16 +65,6 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
65
65
  * May be undefined if the error is not resource-specific.
66
66
  */
67
67
  readonly resource?: string;
68
- /**
69
- * A helpful suggestion for resolving the error.
70
- * May be undefined if no suggestion is available.
71
- */
72
- readonly suggestion?: string;
73
- /**
74
- * Field-specific validation errors.
75
- * Present when the error is due to invalid input data.
76
- */
77
- readonly validation?: ErrorResponse["validation"];
78
68
  /**
79
69
  * HTTP status code of the response (e.g., 400, 404, 500).
80
70
  */
@@ -124,4 +114,4 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
124
114
  }
125
115
  //#endregion
126
116
  export { NvisyError as n, NvisyApiError as t };
127
- //# sourceMappingURL=errors-DzQz1HIR.d.ts.map
117
+ //# sourceMappingURL=errors-BoBDbzst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-BoBDbzst.d.ts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAgCa,mBAAmB;;;;WAIf;;;;;;EAOJ,YAAA;;;;;;;;;;;;;;;;;;;;;;;;cA4BA,sBAAsB,sBAAsB;;;;WAIxC;;;;WAKA;;;;;WAMA;;;;WAKA;;;;;;;EAQJ,YAAA,UAAU,eAAe;;;;;;;;;EAgBrC;;;;;;;;;EAYA;;;;;;;;;EAYA;;;;;;;;EAeA,UAAU"}
@@ -68,16 +68,6 @@ var NvisyApiError = class extends NvisyError {
68
68
  */
69
69
  resource;
70
70
  /**
71
- * A helpful suggestion for resolving the error.
72
- * May be undefined if no suggestion is available.
73
- */
74
- suggestion;
75
- /**
76
- * Field-specific validation errors.
77
- * Present when the error is due to invalid input data.
78
- */
79
- validation;
80
- /**
81
71
  * HTTP status code of the response (e.g., 400, 404, 500).
82
72
  */
83
73
  statusCode;
@@ -92,8 +82,6 @@ var NvisyApiError = class extends NvisyError {
92
82
  this.name = response.name;
93
83
  this.message = response.message;
94
84
  this.resource = response.resource;
95
- this.suggestion = response.suggestion;
96
- this.validation = response.validation;
97
85
  this.statusCode = statusCode;
98
86
  }
99
87
  /**
@@ -140,13 +128,11 @@ var NvisyApiError = class extends NvisyError {
140
128
  return {
141
129
  name: this.name,
142
130
  message: this.message,
143
- resource: this.resource,
144
- suggestion: this.suggestion,
145
- validation: this.validation
131
+ resource: this.resource
146
132
  };
147
133
  }
148
134
  };
149
135
 
150
136
  //#endregion
151
137
  export { NvisyError as n, NvisyApiError as t };
152
- //# sourceMappingURL=errors-BOLD8iC1.js.map
138
+ //# sourceMappingURL=errors-D2J3LbE-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-D2J3LbE-.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * @fileoverview Error types for the Nvisy SDK.\n *\n * This module defines the error hierarchy used throughout the SDK:\n * - {@link NvisyError} - Base error class for all SDK errors\n * - {@link NvisyApiError} - Errors returned by the Nvisy API (4xx/5xx responses)\n *\n * @module errors\n */\n\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\n\n// Re-export ErrorResponse type for convenience\nexport type { ErrorResponse } from \"@/datatypes/index.js\";\n\n/**\n * Base error class for all Nvisy SDK errors.\n *\n * This class provides common functionality for all SDK errors.\n * It ensures proper error naming and stack traces.\n *\n * @example\n * ```typescript\n * try {\n * const client = new Client({ apiToken: \"\" });\n * } catch (error) {\n * if (error instanceof NvisyError) {\n * console.log(\"SDK error:\", error.message);\n * }\n * }\n * ```\n */\nexport class NvisyError extends Error {\n\t/**\n\t * The error class name.\n\t */\n\tpublic readonly name: string;\n\n\t/**\n\t * Creates a new NvisyError.\n\t *\n\t * @param message - The error message\n\t */\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = this.constructor.name;\n\t}\n}\n\n/**\n * Error thrown when the Nvisy API returns an error response.\n *\n * This error class wraps the API's {@link ErrorResponse} format and adds\n * the HTTP status code. It provides helper methods to categorize errors\n * and determine if they are retryable.\n *\n * @example\n * ```typescript\n * try {\n * await client.account.getAccount();\n * } catch (error) {\n * if (error instanceof NvisyApiError) {\n * console.log(`API Error: ${error.message}`);\n * console.log(`Status: ${error.statusCode}`);\n * if (error.isRetryable()) {\n * // Implement retry logic\n * }\n * }\n * }\n * ```\n */\nexport class NvisyApiError extends NvisyError implements ErrorResponse {\n\t/**\n\t * The error type identifier (e.g., \"ValidationError\", \"NotFoundError\").\n\t */\n\tpublic readonly name: string;\n\n\t/**\n\t * Human-readable error message safe for display to end users.\n\t */\n\tpublic readonly message: string;\n\n\t/**\n\t * The resource type that the error relates to (e.g., \"account\", \"project\").\n\t * May be undefined if the error is not resource-specific.\n\t */\n\tpublic readonly resource?: string;\n\n\t/**\n\t * HTTP status code of the response (e.g., 400, 404, 500).\n\t */\n\tpublic readonly statusCode: number;\n\n\t/**\n\t * Creates a new NvisyApiError from an API error response.\n\t *\n\t * @param response - The error response from the API\n\t * @param statusCode - The HTTP status code of the response\n\t */\n\tconstructor(response: ErrorResponse, statusCode: number) {\n\t\tsuper(response.message);\n\t\tthis.name = response.name;\n\t\tthis.message = response.message;\n\t\tthis.resource = response.resource;\n\t\tthis.statusCode = statusCode;\n\t}\n\n\t/**\n\t * Checks if this is a client error (4xx status code).\n\t *\n\t * Client errors indicate problems with the request itself, such as\n\t * invalid input, missing authentication, or accessing non-existent resources.\n\t *\n\t * @returns True if the status code is in the 4xx range\n\t */\n\tisClientError(): boolean {\n\t\treturn this.statusCode >= 400 && this.statusCode < 500;\n\t}\n\n\t/**\n\t * Checks if this is a server error (5xx status code).\n\t *\n\t * Server errors indicate problems on the API side. These are typically\n\t * transient and may succeed if retried.\n\t *\n\t * @returns True if the status code is in the 5xx range\n\t */\n\tisServerError(): boolean {\n\t\treturn this.statusCode >= 500;\n\t}\n\n\t/**\n\t * Determines if this error is safe to retry.\n\t *\n\t * An error is considered retryable if it's a server error (5xx),\n\t * a request timeout (408), or rate limiting (429).\n\t *\n\t * @returns True if the request may succeed on retry\n\t */\n\tisRetryable(): boolean {\n\t\treturn (\n\t\t\tthis.statusCode >= 500 || // Server errors\n\t\t\tthis.statusCode === 408 || // Request timeout\n\t\t\tthis.statusCode === 429 // Rate limited\n\t\t);\n\t}\n\n\t/**\n\t * Converts the error to a plain {@link ErrorResponse} object.\n\t *\n\t * Useful for serialization or logging.\n\t *\n\t * @returns A plain object representation of the error\n\t */\n\ttoJSON(): ErrorResponse {\n\t\treturn {\n\t\t\tname: this.name,\n\t\t\tmessage: this.message,\n\t\t\tresource: this.resource,\n\t\t};\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAgCA,IAAa,aAAb,cAAgC,MAAM;;;;CAIrC,AAAgB;;;;;;CAOhB,YAAY,SAAiB;EAC5B,MAAM,OAAO;EACb,KAAK,OAAO,KAAK,YAAY;CAC9B;AACD;;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAa,gBAAb,cAAmC,WAAoC;;;;CAItE,AAAgB;;;;CAKhB,AAAgB;;;;;CAMhB,AAAgB;;;;CAKhB,AAAgB;;;;;;;CAQhB,YAAY,UAAyB,YAAoB;EACxD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO,SAAS;EACrB,KAAK,UAAU,SAAS;EACxB,KAAK,WAAW,SAAS;EACzB,KAAK,aAAa;CACnB;;;;;;;;;CAUA,gBAAyB;EACxB,OAAO,KAAK,cAAc,OAAO,KAAK,aAAa;CACpD;;;;;;;;;CAUA,gBAAyB;EACxB,OAAO,KAAK,cAAc;CAC3B;;;;;;;;;CAUA,cAAuB;EACtB,OACC,KAAK,cAAc,OACnB,KAAK,eAAe,OACpB,KAAK,eAAe;CAEtB;;;;;;;;CASA,SAAwB;EACvB,OAAO;GACN,MAAM,KAAK;GACX,SAAS,KAAK;GACd,UAAU,KAAK;EAChB;CACD;AACD"}