@nvisy/sdk 0.38.0 → 0.40.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,32 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.40.0] - 2026-08-31
12
+
13
+ ### Added
14
+
15
+ - `FileHash` datatype (a SHA-256 content hash, 64-char hex). Files now carry an
16
+ optional `hash`, and `files.listFiles()` accepts it as a filter to find files
17
+ by content hash
18
+
19
+ ### Changed
20
+
21
+ - Regenerated the API schema against the updated platform handlers
22
+
23
+ ## [0.39.0] - 2026-08-30
24
+
25
+ ### Added
26
+
27
+ - `files.deleteFiles(workspaceSlug, fileIds)` deletes several files in one call
28
+ and returns the `deleted` and `skipped` ids (`DeletedFiles`); the request
29
+ shape is `DeleteFiles`
30
+
31
+ ### Changed
32
+
33
+ - Regenerated the API schema against the updated platform handlers
34
+ - **Breaking:** renamed the `OcrPolicy` datatype to `RasterPolicy`, matching the
35
+ renamed `WorkspaceSettings` raster policy
36
+
11
37
  ## [0.38.0] - 2026-08-29
12
38
 
13
39
  ### Added
@@ -801,7 +827,9 @@ redaction an independent resource. This release renames the SDK to match.
801
827
  - Network error handling for timeouts, DNS resolution, and connection issues
802
828
  - Configuration validation with detailed error messages
803
829
 
804
- [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.38.0...HEAD
830
+ [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.40.0...HEAD
831
+ [0.40.0]: https://github.com/nvisycom/sdk-ts/compare/v0.39.0...v0.40.0
832
+ [0.39.0]: https://github.com/nvisycom/sdk-ts/compare/v0.38.0...v0.39.0
805
833
  [0.38.0]: https://github.com/nvisycom/sdk-ts/compare/v0.37.0...v0.38.0
806
834
  [0.37.0]: https://github.com/nvisycom/sdk-ts/compare/v0.36.0...v0.37.0
807
835
  [0.36.0]: https://github.com/nvisycom/sdk-ts/compare/v0.35.0...v0.36.0
@@ -1,4 +1,4 @@
1
- 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-DLovEyXI.js";
1
+ import { $i as CreateApiToken, $n as SyncStatus, $t as ReplyInvite, An as RedactionResultPage, Ar as Audit, At as NotificationPage, Bn as ConnectionVerification, Cn as DetectionPage, Dn as RedactDetection, En as PipelineDetectionsQuery, Ft as UnreadStatus, Gt as InviteCode, Hn as CreateConnection, Ht as CreateInvite, It as UpdateNotificationSettings, Jn as SyncConnection, Jt as InvitePreview, La as PublicAccount, Ln as ConnectionPage, Lt as ListMembers, M as CreatePolicy, Mt as NotificationSettings, Na as Account$1, Pn as Connection, Pt as UnreadCountEvent, Qi as ApiTokenWithJWT, Qt as ListInvites, Ra as UpdateAccount, Rn as ConnectionSync, Rt as Member, Tn as DetectionStatusEvent, Tt as MarkedReadStatus, Ut as GenerateInviteCode, Vt as UpdateMember, X as Policy, Xi as ApiTokenPage, Yi as ApiToken, Yt as InviteSent, _t as PipelineSummaryPage, aa as DetectionTimeSeries, an as DeletedFiles, ar as ChatSessionPage, ba as ActivityPage, bn as Detection, bt as CursorPagination, c as WorkspacePage, cr as SendChatMessage, d as CreateWebhook, dn as ListFiles, dt as CreatePipeline, f as TestWebhook, fr as AuthToken, ft as Pipeline, ga as WorkspaceAnalytics, gn as ExportQuery, h as WebhookCreated, ht as PipelineStatus, ir as ChatSession, jn as WorkspaceDetectionsQuery, kn as RedactionResult, ln as FilePage, lr as LabelCatalog, lt as UpdatePolicy, m as Webhook, mn as DateWindow, mr as Signup, nn as Health, nr as ChatMessage, o as UpdateWorkspace, on as File, or as ChatToken, p as UpdateWebhook, pn as UpdateFile, pr as Login, qt as InvitePage, s as Workspace, sr as CreateChatSession, t as CreateWorkspace, ta as UpdateApiToken, tr as UpdateConnection, tt as PolicySummaryPage, ur as RecognizerCatalog, v as WebhookPage, va as ActivityExportOptions, y as WebhookResult, ya as ActivityFilterQuery, yn as CreateDetection, yt as UpdatePipeline, za as paths, zn as ConnectionSyncPage, zt as MemberPage } from "./index-VL7c4kfR.js";
2
2
  import { t as ClientConfig } from "./config-BhUEqFOg.js";
3
3
  import { Client } from "openapi-fetch";
4
4
  //#region src/services/account.d.ts
@@ -457,7 +457,8 @@ declare class Files {
457
457
  /**
458
458
  * List files in a workspace
459
459
  * @param workspaceSlug - Workspace slug
460
- * @param query - Optional query parameters (formats, search, limit, after)
460
+ * @param query - Optional query parameters (formats, modality, hash, search,
461
+ * limit, after)
461
462
  * @returns Promise that resolves with a paginated list of files
462
463
  * @throws {ApiError} if the request fails
463
464
  */
@@ -495,6 +496,19 @@ declare class Files {
495
496
  * @throws {ApiError} if the request fails
496
497
  */
497
498
  deleteFile(workspaceSlug: string, fileId: string): Promise<void>;
499
+ /**
500
+ * Delete several files in one call.
501
+ *
502
+ * Idempotent: ids resolving to live files in the workspace are removed and
503
+ * returned in `deleted`; unknown, already-deleted, or out-of-workspace ids
504
+ * are returned in `skipped`. Deletion is permanent.
505
+ *
506
+ * @param workspaceSlug - Workspace slug
507
+ * @param fileIds - The file IDs to delete
508
+ * @returns Promise that resolves with the deleted and skipped ids
509
+ * @throws {ApiError} if the request fails
510
+ */
511
+ deleteFiles(workspaceSlug: string, fileIds: string[]): Promise<DeletedFiles>;
498
512
  }
499
513
  //#endregion
500
514
  //#region src/services/invites.d.ts
@@ -1149,4 +1163,4 @@ declare class Nvisy {
1149
1163
  }
1150
1164
  //#endregion
1151
1165
  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-DvFWnhWc.d.ts.map
1166
+ //# sourceMappingURL=client-CpPYLWKt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-CpPYLWKt.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":"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"}
@@ -1,2 +1,2 @@
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-DLovEyXI.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 };
1
+ import { $ as PolicyRule, $i as CreateApiToken, $n as SyncStatus, $r as ImageHint, $t as ReplyInvite, A as Color, Aa as RedactionActivityParams, Ai as TabularModel, An as RedactionResultPage, Ar as Audit, At as NotificationPage, B as Label, Bi as TextEntity, Bn as ConnectionVerification, Br as Dimensions, Bt as MemberSortField, C as Language, Ca as ConnectionActivityParams, Ci as TabularAuditKind, Cn as DetectionPage, Cr as AudioHint, Ct as DetectionCompletedParams, D as ScopeMetadata, Da as MemberActivityParams, Di as TabularHint, Dn as RedactDetection, Dr as AudioPattern, Dt as MemberJoinedParams, E as Languages, Ea as InviteActivityParams, Ei as TabularEntity, En as PipelineDetectionsQuery, Er as AudioModel, Et as MemberInvitedParams, F as GdprArticle9Treatment, Fa as Handle, Fi as TextAuditEvent, Fn as ConnectionConfig, Fr as CitedAttribution, Ft as UnreadStatus, G as LanguageTag, Gi as TextPattern, Gn as OpenAiCredentials, Gr as FreeformAttribution, Gt as InviteCode, H as LabelLocale, Hi as TextLocation, Hn as CreateConnection, Hr as Dpi, Ht as CreateInvite, I as GdprSensitiveScope, Ia as PasswordChange, Ii as TextAuditKind, In as ConnectionId, Ir as CodecParams, It as UpdateNotificationSettings, J as PciDssPart, Ji as TimeSpan, Jn as SyncConnection, Jr as ImageAuditKind, Jt as InvitePreview, K as LocalizedText, Ki as TextRefinement, Kn as S3Credentials, Kr as ImageAdd, Kt as InviteExpiration, L as HipaaAccountNumbers, La as PublicAccount, Li as TextAuditLog, Ln as ConnectionPage, Lr as Conflict, Lt as ListMembers, M as CreatePolicy, Ma as WorkspaceActivityParams, Mi as TabularRefinement, Mn as AnthropicCredentials, Mr as BoundingBox, Mt as NotificationSettings, N as DateGranularity, Na as Account, Ni as TabularRetag, Nn as AzureCredentials, Nr as Calibration, Nt as RedactionCreatedParams, O as AudioRedaction, Oa as PipelineActivityParams, Oi as TabularLocation, On as RedactionId, Or as AudioRefinement, Ot as Notification, P as DateStyle, Pa as AccountRef, Pi as TextAdd, Pn as Connection, Pr as Category, Pt as UnreadCountEvent, Q as PolicyDraft, Qi as ApiTokenWithJWT, Qn as SyncScheduleInput, Qr as ImageEntity, Qt as ListInvites, R as HipaaDeidMethod, Ra as UpdateAccount, Ri as TextData, Rn as ConnectionSync, Rr as Contested, Rt as Member, S as CountryCode, Sa as ActivityType, Si as TabularAuditEvent, Sn as DetectionMetadata, Sr as AudioEntity, St as ConnectionSyncFailedParams, T as LanguageSpan, Ta as FileActivityParams, Ti as TabularEdit, Tn as DetectionStatusEvent, Tr as AudioManual, Tt as MarkedReadStatus, U as LabelRef, Ui as TextManual, Un as GcsCredentials, Ur as EditSet, Ut as GenerateInviteCode, V as LabelEntry, Vi as TextHint, Vn as ConnectionsQuery, Vr as DocumentContext, Vt as UpdateMember, W as LabelScope, Wi as TextModel, Wn as LlmConfig, Wr as EntityCoRef, Wt as Invite, X as Policy, Xi as ApiTokenPage, Xn as SyncMode, Xr as ImageData, Xt as InviteSortField, Y as PciPanRender, Yi as ApiToken, Yn as SyncDeletionPolicy, Yr as ImageAuditLog, Yt as InviteSent, Z as PolicyDefinition, Zi as ApiTokenType, Zn as SyncSchedule, Zr as ImageEdit, Zt as InviteStatus, _ as WebhookId, _a as Activity, _i as RuleMatch, _n as ErrorResponse, _r as AudioAuditEvent, _t as PipelineSummaryPage, a as RetentionSettings, aa as DetectionTimeSeries, ai as ImageRetag, an as DeletedFiles, ar as ChatSessionPage, at as TabularRedaction, b as WebhookStatus, ba as ActivityPage, bi as Suppress, bn as Detection, br as AudioData, bt as CursorPagination, c as WorkspacePage, ca as ProviderType, ci as ModelEvent, cn as FileKind, cr as SendChatMessage, ct as TextRedaction, d as CreateWebhook, da as StorageKindEntry, di as Point, dn as ListFiles, dr as RegisteredRecognizer, dt as CreatePipeline, ea as TokenExpiration, ei as ImageLocation, en as SortOrder, er as SyncTriggerType, et as PolicySummary, f as TestWebhook, fa as TokenCounts, fi as Polygon, fn as ModalityToken, fr as AuthToken, ft as Pipeline, g as WebhookEvent, ga as WorkspaceAnalytics, gi as Report, gn as ExportQuery, gr as AudioAdd, gt as PipelineSummary, h as WebhookCreated, ha as UsageReport, hi as Redaction, hn as ExportFormat, hr as Attribution, ht as PipelineStatus, i as RetentionOverride, ia as DetectionStatusEntry, ii as ImageRefinement, in as DeleteFiles, ir as ChatSession, it as Sha2Algorithm, j as ConfidenceThreshold, ja as WebhookActivityParams, ji as TabularPattern, jn as WorkspaceDetectionsQuery, jr as AuditHash, jt as NotificationPayload, k as ClampBucket, ka as PolicyActivityParams, ki as TabularManual, kn as RedactionResult, kr as AudioRetag, kt as NotificationEvent, l as WorkspaceRole, la as RecognizerId, li as OperatorId, ln as FilePage, lr as LabelCatalog, lt as UpdatePolicy, m as Webhook, ma as UsageAnalytics, mi as RasterMode, mn as DateWindow, mr as Signup, mt as PipelineFilter, n as RasterPolicy, na as DetectionAnalytics, ni as ImageModel, nn as Health, nr as ChatMessage, nt as PolicyTemplate, o as UpdateWorkspace, oa as ModelUsage, oi as LeakProfile, on as File, or as ChatToken, ot as TemplateOrigin, p as UpdateWebhook, pa as Usage, pi as RangeOfUint, pn as UpdateFile, pr as Login, pt as PipelineDefinition, q as ModalityRedactions, qi as TextRetag, qn as StorageConfig, qr as ImageAuditEvent, qt as InvitePage, r as Retention, ra as DetectionDayEntry, ri as ImagePattern, rn as HealthStatus, rr as ChatRole, rt as Predicate, s as Workspace, sa as ModelUsageEntry, si as ManualIntent, sn as FileHash, sr as CreateChatSession, st as TerminalFallback, t as CreateWorkspace, ta as UpdateApiToken, ti as ImageManual, tn as ComponentHealth, tr as UpdateConnection, tt as PolicySummaryPage, u as WorkspaceSettings, ua as StorageAnalytics, ui as PatternEvent, un as FormatToken, ur as RecognizerCatalog, ut as Waveform, v as WebhookPage, va as ActivityExportOptions, vi as Selection, vn as ValidationErrorDetail, vr as AudioAuditKind, vt as PipelineTriggerType, w as LanguageProvenance, wa as DetectionActivityParams, wi as TabularAuditLog, wn as DetectionStatus, wr as AudioLocation, wt as DetectionFailedParams, x as Confidence, xa as ActivityPayload, xi as TabularAdd, xn as DetectionId, xr as AudioEdit, xt as ConnectionSyncCompletedParams, y as WebhookResult, ya as ActivityFilterQuery, yi as SourceRef, yn as CreateDetection, yr as AudioAuditLog, yt as UpdatePipeline, z as ImageRedaction, zi as TextEdit, zn as ConnectionSyncPage, zr as Deduplication, zt as MemberPage } from "../index-VL7c4kfR.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, DeleteFiles, DeletedFiles, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, 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, 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, RasterPolicy, 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.38.0";
10
+ const VERSION = "0.40.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-Bkntcqmi.js.map
47
+ //# sourceMappingURL=error-CezNDZw-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-Bkntcqmi.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
+ {"version":3,"file":"error-CezNDZw-.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 { mn as ErrorResponse } from "./index-DLovEyXI.js";
1
+ import { _n as ErrorResponse } from "./index-VL7c4kfR.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-CqL-N7iB.d.ts.map
127
+ //# sourceMappingURL=errors-BgHBhc0J.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-CqL-N7iB.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"}
1
+ {"version":3,"file":"errors-BgHBhc0J.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"}
@@ -3740,7 +3740,7 @@ interface paths {
3740
3740
  };
3741
3741
  /**
3742
3742
  * List files
3743
- * @description Lists files in a workspace with cursor-based pagination. Use the `after` parameter with the `nextCursor` value from the response to fetch subsequent pages.
3743
+ * @description Lists files in a workspace with cursor-based pagination. Use the `after` parameter with the `nextCursor` value from the response to fetch subsequent pages. Pass `hash` (a hex SHA-256) to find files with identical content — a non-empty result means the file already exists, so an upload can be skipped.
3744
3744
  */
3745
3745
  get: {
3746
3746
  parameters: {
@@ -3750,6 +3750,12 @@ interface paths {
3750
3750
  * extension set (so `jpg` also matches `jpeg`).
3751
3751
  */
3752
3752
  formats?: components["schemas"]["FormatToken"][];
3753
+ /**
3754
+ * @description Filter to files whose content is exactly this SHA-256. Lets a client check
3755
+ * whether identical content already exists in the workspace before uploading
3756
+ * it.
3757
+ */
3758
+ hash?: components["schemas"]["FileHash"];
3753
3759
  /** @description Filter by modality (`text`, `tabular`, `image`, `audio`). */
3754
3760
  modality?: components["schemas"]["ModalityToken"][];
3755
3761
  /** @description Search by file name (case-insensitive, partial match). */
@@ -3792,6 +3798,21 @@ interface paths {
3792
3798
  "application/json": components["schemas"]["FilePage"];
3793
3799
  };
3794
3800
  };
3801
+ /**
3802
+ * @description HTTP error response representation with security-conscious design.
3803
+ *
3804
+ * This struct contains all the information needed to serialize an error
3805
+ * response, including the error name, message, HTTP status code, resource
3806
+ * information, and user-friendly messages.
3807
+ */
3808
+ 400: {
3809
+ headers: {
3810
+ [name: string]: unknown;
3811
+ };
3812
+ content: {
3813
+ "application/json": components["schemas"]["ErrorResponse"];
3814
+ };
3815
+ };
3795
3816
  /**
3796
3817
  * @description HTTP error response representation with security-conscious design.
3797
3818
  *
@@ -3827,7 +3848,7 @@ interface paths {
3827
3848
  put?: never;
3828
3849
  /**
3829
3850
  * Upload files
3830
- * @description Uploads one or more files to a workspace. Each file is encrypted, streamed to storage, and recorded.
3851
+ * @description Uploads one or more files to a workspace. Each file is encrypted and streamed to storage. The batch is atomic: either every file is recorded, or on any failure none are and the request fails.
3831
3852
  */
3832
3853
  post: {
3833
3854
  parameters: {
@@ -3899,6 +3920,143 @@ interface paths {
3899
3920
  "application/json": components["schemas"]["ErrorResponse"];
3900
3921
  };
3901
3922
  };
3923
+ /**
3924
+ * @description HTTP error response representation with security-conscious design.
3925
+ *
3926
+ * This struct contains all the information needed to serialize an error
3927
+ * response, including the error name, message, HTTP status code, resource
3928
+ * information, and user-friendly messages.
3929
+ */
3930
+ 413: {
3931
+ headers: {
3932
+ [name: string]: unknown;
3933
+ };
3934
+ content: {
3935
+ "application/json": components["schemas"]["ErrorResponse"];
3936
+ };
3937
+ };
3938
+ };
3939
+ };
3940
+ delete?: never;
3941
+ options?: never;
3942
+ head?: never;
3943
+ patch?: never;
3944
+ trace?: never;
3945
+ };
3946
+ "/workspaces/{workspaceSlug}/files/delete/": {
3947
+ parameters: {
3948
+ query?: never;
3949
+ header?: never;
3950
+ path?: never;
3951
+ cookie?: never;
3952
+ };
3953
+ get?: never;
3954
+ put?: never;
3955
+ /**
3956
+ * Delete files
3957
+ * @description Deletes several files in one call. Idempotent: ids that resolve to live files in the workspace are removed and returned in `deleted`; ids that are unknown, already deleted, or in another workspace are returned in `skipped`. Deletion is permanent — the files' content cannot be recovered.
3958
+ */
3959
+ post: {
3960
+ parameters: {
3961
+ query?: never;
3962
+ header?: never;
3963
+ path: {
3964
+ /** @description URL-safe workspace identifier. */
3965
+ workspaceSlug: string;
3966
+ };
3967
+ cookie?: never;
3968
+ };
3969
+ /**
3970
+ * @description Request to delete several files in one call.
3971
+ *
3972
+ * The `100`-id cap bounds the work one call fans out into: the resolve query,
3973
+ * the delete transaction, and one best-effort object purge per file.
3974
+ */
3975
+ requestBody: {
3976
+ content: {
3977
+ "application/json": components["schemas"]["DeleteFiles"];
3978
+ };
3979
+ };
3980
+ responses: {
3981
+ /**
3982
+ * @description Result of a bulk file deletion.
3983
+ *
3984
+ * The deletion is idempotent: `deleted` holds the ids that resolved to live
3985
+ * files in the workspace and were removed, and `skipped` holds the requested
3986
+ * ids that did not — unknown, already deleted, in another workspace, or held by
3987
+ * an in-progress detection that still needs the file.
3988
+ */
3989
+ 200: {
3990
+ headers: {
3991
+ [name: string]: unknown;
3992
+ };
3993
+ content: {
3994
+ "application/json": components["schemas"]["DeletedFiles"];
3995
+ };
3996
+ };
3997
+ /**
3998
+ * @description HTTP error response representation with security-conscious design.
3999
+ *
4000
+ * This struct contains all the information needed to serialize an error
4001
+ * response, including the error name, message, HTTP status code, resource
4002
+ * information, and user-friendly messages.
4003
+ */
4004
+ 400: {
4005
+ headers: {
4006
+ [name: string]: unknown;
4007
+ };
4008
+ content: {
4009
+ "application/json": components["schemas"]["ErrorResponse"];
4010
+ };
4011
+ };
4012
+ /**
4013
+ * @description HTTP error response representation with security-conscious design.
4014
+ *
4015
+ * This struct contains all the information needed to serialize an error
4016
+ * response, including the error name, message, HTTP status code, resource
4017
+ * information, and user-friendly messages.
4018
+ */
4019
+ 401: {
4020
+ headers: {
4021
+ [name: string]: unknown;
4022
+ };
4023
+ content: {
4024
+ "application/json": components["schemas"]["ErrorResponse"];
4025
+ };
4026
+ };
4027
+ /**
4028
+ * @description HTTP error response representation with security-conscious design.
4029
+ *
4030
+ * This struct contains all the information needed to serialize an error
4031
+ * response, including the error name, message, HTTP status code, resource
4032
+ * information, and user-friendly messages.
4033
+ */
4034
+ 403: {
4035
+ headers: {
4036
+ [name: string]: unknown;
4037
+ };
4038
+ content: {
4039
+ "application/json": components["schemas"]["ErrorResponse"];
4040
+ };
4041
+ };
4042
+ /** @description Expected request with `Content-Type: application/json` */
4043
+ 415: {
4044
+ headers: {
4045
+ [name: string]: unknown;
4046
+ };
4047
+ content: {
4048
+ "text/plain": string;
4049
+ };
4050
+ };
4051
+ /** @description Failed to deserialize the JSON body into the target type */
4052
+ 422: {
4053
+ headers: {
4054
+ [name: string]: unknown;
4055
+ };
4056
+ content: {
4057
+ "text/plain": string;
4058
+ };
4059
+ };
3902
4060
  };
3903
4061
  };
3904
4062
  delete?: never;
@@ -10680,6 +10838,36 @@ interface components {
10680
10838
  /** @description Name of the fusion strategy that combined them. */
10681
10839
  strategy: string;
10682
10840
  };
10841
+ /**
10842
+ * @description Request to delete several files in one call.
10843
+ *
10844
+ * The `100`-id cap bounds the work one call fans out into: the resolve query,
10845
+ * the delete transaction, and one best-effort object purge per file.
10846
+ */
10847
+ DeleteFiles: {
10848
+ /**
10849
+ * @description Ids of the files to delete. Ids that are unknown, already deleted, or in
10850
+ * another workspace are skipped rather than failing the request.
10851
+ */
10852
+ fileIds: string[];
10853
+ };
10854
+ /**
10855
+ * @description Result of a bulk file deletion.
10856
+ *
10857
+ * The deletion is idempotent: `deleted` holds the ids that resolved to live
10858
+ * files in the workspace and were removed, and `skipped` holds the requested
10859
+ * ids that did not — unknown, already deleted, in another workspace, or held by
10860
+ * an in-progress detection that still needs the file.
10861
+ */
10862
+ DeletedFiles: {
10863
+ /** @description Ids that were deleted. */
10864
+ deleted: string[];
10865
+ /**
10866
+ * @description Requested ids that were skipped: unknown, already deleted, in another
10867
+ * workspace, or held by an in-progress detection.
10868
+ */
10869
+ skipped: string[];
10870
+ };
10683
10871
  /**
10684
10872
  * @description Response type for a detection.
10685
10873
  *
@@ -11054,6 +11242,8 @@ interface components {
11054
11242
  displayName: string;
11055
11243
  /** @description File extension (without dot). */
11056
11244
  fileExtension: string;
11245
+ /** @description Lowercase hex-encoded SHA-256 of the file's plaintext content. */
11246
+ fileHash: string;
11057
11247
  /** @description The file's role (original, redacted, audit). */
11058
11248
  fileKind: components["schemas"]["FileKind"];
11059
11249
  /**
@@ -11098,6 +11288,8 @@ interface components {
11098
11288
  /** @description Display name of the file. */
11099
11289
  fileName: string;
11100
11290
  };
11291
+ /** @description A SHA-256 content hash as a 64-character hex string. */
11292
+ FileHash: string;
11101
11293
  /**
11102
11294
  * @description The role a file plays, which drives its data-retention scope and whether it
11103
11295
  * is a user-facing document.
@@ -12179,6 +12371,12 @@ interface components {
12179
12371
  * extension set (so `jpg` also matches `jpeg`).
12180
12372
  */
12181
12373
  formats?: components["schemas"]["FormatToken"][];
12374
+ /**
12375
+ * @description Filter to files whose content is exactly this SHA-256. Lets a client check
12376
+ * whether identical content already exists in the workspace before uploading
12377
+ * it.
12378
+ */
12379
+ hash?: components["schemas"]["FileHash"];
12182
12380
  /** @description Filter by modality (`text`, `tabular`, `image`, `audio`). */
12183
12381
  modality?: components["schemas"]["ModalityToken"][];
12184
12382
  /** @description Search by file name (case-insensitive, partial match). */
@@ -12538,15 +12736,6 @@ interface components {
12538
12736
  /** @description Whether to send email notifications. */
12539
12737
  notifyViaEmail: boolean;
12540
12738
  };
12541
- /**
12542
- * @description How a workspace's documents are turned into images for OCR during detection.
12543
- *
12544
- * A workspace-level policy over the engine's per-run OCR mode: `Auto` lets the
12545
- * engine decide from the text layer, `Force` always renders every page (for
12546
- * documents with unreliable text layers — scans, watermarks), and `Never`
12547
- * relies on the text layer only.
12548
- */
12549
- OcrPolicy: "auto" | "force" | "never";
12550
12739
  /** @description OpenAI API credentials. */
12551
12740
  OpenAiCredentials: {
12552
12741
  /** @description OpenAI API key. */
@@ -13266,6 +13455,16 @@ interface components {
13266
13455
  /** @constant */
13267
13456
  kind: "never";
13268
13457
  };
13458
+ /**
13459
+ * @description How a workspace's document pages are rasterised to images for OCR during
13460
+ * detection.
13461
+ *
13462
+ * A workspace-level policy over the engine's per-run raster mode: `Auto` lets
13463
+ * the engine decide from the text layer, `Always` renders every page (for
13464
+ * documents with unreliable text layers — scans, watermarks), and `Never`
13465
+ * relies on the text layer only.
13466
+ */
13467
+ RasterPolicy: "auto" | "always" | "never";
13269
13468
  /** @description The engine's registered recognizers, grouped by kind. */
13270
13469
  RecognizerCatalog: {
13271
13470
  /** @description LLM recognizers. */
@@ -15644,7 +15843,13 @@ interface components {
15644
15843
  displayName: string;
15645
15844
  /** @description Role of the member in the workspace. */
15646
15845
  memberRole: components["schemas"]["WorkspaceRole"];
15647
- /** @description Workspace settings (approval requirement, data-retention rules). */
15846
+ /**
15847
+ * @description Workspace settings (raster policy, data-retention rules, upload cap).
15848
+ *
15849
+ * `maxUploadBytes` is resolved to the effective per-file limit — the smaller
15850
+ * of the workspace's own cap and the server-wide hard limit — so a client
15851
+ * always reads a concrete number to enforce.
15852
+ */
15648
15853
  settings: components["schemas"]["WorkspaceSettings"];
15649
15854
  /** @description URL-safe workspace identifier. */
15650
15855
  slug: components["schemas"]["Handle"];
@@ -15733,15 +15938,19 @@ interface components {
15733
15938
  /** @description Typed workspace settings, the JSON stored in the `workspaces.settings` column. */
15734
15939
  WorkspaceSettings: {
15735
15940
  /**
15736
- * @description How documents are rendered for OCR during detection.
15737
- * @default auto
15941
+ * Format: uint64
15942
+ * @description A soft per-file upload cap in bytes: an upload larger than this is
15943
+ * rejected for this workspace. `None` imposes no workspace-specific cap.
15944
+ *
15945
+ * The server-wide hard limit still applies regardless; the effective cap is
15946
+ * the smaller of the two.
15738
15947
  */
15739
- ocr?: components["schemas"]["OcrPolicy"];
15948
+ maxUploadBytes?: number;
15740
15949
  /**
15741
- * @description Whether approval is required before processed files become visible.
15742
- * @default true
15950
+ * @description How document pages are rasterised for OCR during detection.
15951
+ * @default auto
15743
15952
  */
15744
- requireApproval?: boolean;
15953
+ raster?: components["schemas"]["RasterPolicy"];
15745
15954
  /**
15746
15955
  * @description Data-retention rules for the workspace.
15747
15956
  * @default {
@@ -16009,10 +16218,13 @@ type Schemas$10 = components["schemas"];
16009
16218
  type File = Schemas$10["File"];
16010
16219
  type UpdateFile = Schemas$10["UpdateFile"];
16011
16220
  type FileKind = Schemas$10["FileKind"];
16221
+ type FileHash = Schemas$10["FileHash"];
16012
16222
  type FormatToken = Schemas$10["FormatToken"];
16013
16223
  type ModalityToken = Schemas$10["ModalityToken"];
16014
16224
  type ListFiles = Schemas$10["ListFiles"];
16015
16225
  type FilePage = Schemas$10["FilePage"];
16226
+ type DeleteFiles = Schemas$10["DeleteFiles"];
16227
+ type DeletedFiles = Schemas$10["DeletedFiles"];
16016
16228
  //#endregion
16017
16229
  //#region src/datatypes/health.d.ts
16018
16230
  type Schemas$9 = components["schemas"];
@@ -16150,10 +16362,10 @@ type UpdateWorkspace = Schemas["UpdateWorkspace"];
16150
16362
  type WorkspaceRole = Schemas["WorkspaceRole"];
16151
16363
  type WorkspacePage = Schemas["WorkspacePage"];
16152
16364
  type WorkspaceSettings = Schemas["WorkspaceSettings"];
16153
- type OcrPolicy = Schemas["OcrPolicy"];
16365
+ type RasterPolicy = Schemas["RasterPolicy"];
16154
16366
  type Retention = Schemas["Retention"];
16155
16367
  type RetentionSettings = Schemas["RetentionSettings"];
16156
16368
  type RetentionOverride = Schemas["RetentionOverride"];
16157
16369
  //#endregion
16158
- export { PolicyRule as $, DetectionAnalytics as $i, ChatMessage as $n, ImageModel as $r, ReplyInvite as $t, Color as A, Account as Aa, TabularRetag as Ai, AzureCredentials as An, Calibration as Ar, NotificationPage as At, Label as B, TextManual as Bi, GcsCredentials as Bn, EditSet as Br, MemberSortField as Bt, Language as C, InviteActivityParams as Ca, TabularEntity as Ci, PipelineDetectionsQuery as Cn, AudioModel as Cr, DetectionCompletedParams as Ct, ScopeMetadata as D, RedactionActivityParams as Da, TabularModel as Di, RedactionResultPage as Dn, Audit as Dr, MemberJoinedParams as Dt, Languages as E, PolicyActivityParams as Ea, TabularManual as Ei, RedactionResult as En, AudioRetag as Er, MemberInvitedParams as Et, GdprArticle9Treatment as F, UpdateAccount as Fa, TextData as Fi, ConnectionSync as Fn, Contested as Fr, UnreadStatus as Ft, LanguageTag as G, TimeSpan as Gi, SyncConnection as Gn, ImageAuditKind as Gr, InviteCode as Gt, LabelLocale as H, TextPattern as Hi, OpenAiCredentials as Hn, FreeformAttribution as Hr, CreateInvite as Ht, GdprSensitiveScope as I, paths as Ia, TextEdit as Ii, ConnectionSyncPage as In, Deduplication as Ir, UpdateNotificationSettings as It, PciDssPart as J, ApiTokenType as Ji, SyncSchedule as Jn, ImageEdit as Jr, InvitePreview as Jt, LocalizedText as K, ApiToken as Ki, SyncDeletionPolicy as Kn, ImageAuditLog as Kr, InviteExpiration as Kt, HipaaAccountNumbers as L, TextEntity as Li, ConnectionVerification as Ln, Dimensions as Lr, ListMembers as Lt, CreatePolicy as M, Handle as Ma, TextAuditEvent as Mi, ConnectionConfig as Mn, CitedAttribution as Mr, NotificationSettings as Mt, DateGranularity as N, PasswordChange as Na, TextAuditKind as Ni, ConnectionId as Nn, CodecParams as Nr, RedactionCreatedParams as Nt, AudioRedaction as O, WebhookActivityParams as Oa, TabularPattern as Oi, WorkspaceDetectionsQuery as On, AuditHash as Or, Notification as Ot, DateStyle as P, PublicAccount as Pa, TextAuditLog as Pi, ConnectionPage as Pn, Conflict as Pr, UnreadCountEvent as Pt, PolicyDraft as Q, UpdateApiToken as Qi, UpdateConnection as Qn, ImageManual as Qr, ListInvites as Qt, HipaaDeidMethod as R, TextHint as Ri, ConnectionsQuery as Rn, DocumentContext as Rr, Member as Rt, CountryCode as S, FileActivityParams as Sa, TabularEdit as Si, DetectionStatusEvent as Sn, AudioManual as Sr, ConnectionSyncFailedParams as St, LanguageSpan as T, PipelineActivityParams as Ta, TabularLocation as Ti, RedactionId as Tn, AudioRefinement as Tr, MarkedReadStatus as Tt, LabelRef as U, TextRefinement as Ui, S3Credentials as Un, ImageAdd as Ur, GenerateInviteCode as Ut, LabelEntry as V, TextModel as Vi, LlmConfig as Vn, EntityCoRef as Vr, UpdateMember as Vt, LabelScope as W, TextRetag as Wi, StorageConfig as Wn, ImageAuditEvent as Wr, Invite as Wt, Policy as X, CreateApiToken as Xi, SyncStatus as Xn, ImageHint as Xr, InviteSortField as Xt, PciPanRender as Y, ApiTokenWithJWT as Yi, SyncScheduleInput as Yn, ImageEntity as Yr, InviteSent as Yt, PolicyDefinition as Z, TokenExpiration as Zi, SyncTriggerType as Zn, ImageLocation as Zr, InviteStatus as Zt, WebhookId as _, ActivityPage as _a, Suppress as _i, Detection as _n, AudioData as _r, PipelineSummaryPage as _t, RetentionSettings as a, ProviderType as aa, ModelEvent as ai, FileKind as an, SendChatMessage as ar, TabularRedaction as at, WebhookStatus as b, ConnectionActivityParams as ba, TabularAuditKind as bi, DetectionPage as bn, AudioHint as br, CursorPagination as bt, WorkspacePage as c, StorageKindEntry as ca, Point as ci, ListFiles as cn, RegisteredRecognizer as cr, TextRedaction as ct, CreateWebhook as d, UsageAnalytics as da, RasterMode as di, DateWindow as dn, Signup as dr, CreatePipeline as dt, DetectionDayEntry as ea, ImagePattern as ei, SortOrder as en, ChatRole as er, PolicySummary as et, TestWebhook as f, UsageReport as fa, Redaction as fi, ExportFormat as fn, Attribution as fr, Pipeline as ft, WebhookEvent as g, ActivityFilterQuery as ga, SourceRef as gi, CreateDetection as gn, AudioAuditLog as gr, PipelineSummary as gt, WebhookCreated as h, ActivityExportOptions as ha, Selection as hi, ValidationErrorDetail as hn, AudioAuditKind as hr, PipelineStatus as ht, RetentionOverride as i, ModelUsageEntry as ia, ManualIntent as ii, File as in, CreateChatSession as ir, Sha2Algorithm as it, ConfidenceThreshold as j, AccountRef as ja, TextAdd as ji, Connection as jn, Category as jr, NotificationPayload as jt, ClampBucket as k, WorkspaceActivityParams as ka, TabularRefinement as ki, AnthropicCredentials as kn, BoundingBox as kr, NotificationEvent as kt, WorkspaceRole as l, TokenCounts as la, Polygon as li, ModalityToken as ln, AuthToken as lr, UpdatePolicy as lt, Webhook as m, Activity as ma, RuleMatch as mi, ErrorResponse as mn, AudioAuditEvent as mr, PipelineFilter as mt, OcrPolicy as n, DetectionTimeSeries as na, ImageRetag as ni, Health as nn, ChatSessionPage as nr, PolicyTemplate as nt, UpdateWorkspace as o, RecognizerId as oa, OperatorId as oi, FilePage as on, LabelCatalog as or, TemplateOrigin as ot, UpdateWebhook as p, WorkspaceAnalytics as pa, Report as pi, ExportQuery as pn, AudioAdd as pr, PipelineDefinition as pt, ModalityRedactions as q, ApiTokenPage as qi, SyncMode as qn, ImageData as qr, InvitePage as qt, Retention as r, ModelUsage as ra, LeakProfile as ri, HealthStatus as rn, ChatToken as rr, Predicate as rt, Workspace as s, StorageAnalytics as sa, PatternEvent as si, FormatToken as sn, RecognizerCatalog as sr, TerminalFallback as st, CreateWorkspace as t, DetectionStatusEntry as ta, ImageRefinement as ti, ComponentHealth as tn, ChatSession as tr, PolicySummaryPage as tt, WorkspaceSettings as u, Usage as ua, RangeOfUint as ui, UpdateFile as un, Login as ur, Waveform as ut, WebhookPage as v, ActivityPayload as va, TabularAdd as vi, DetectionId as vn, AudioEdit as vr, PipelineTriggerType as vt, LanguageProvenance as w, MemberActivityParams as wa, TabularHint as wi, RedactDetection as wn, AudioPattern as wr, DetectionFailedParams as wt, Confidence as x, DetectionActivityParams as xa, TabularAuditLog as xi, DetectionStatus as xn, AudioLocation as xr, ConnectionSyncCompletedParams as xt, WebhookResult as y, ActivityType as ya, TabularAuditEvent as yi, DetectionMetadata as yn, AudioEntity as yr, UpdatePipeline as yt, ImageRedaction as z, TextLocation as zi, CreateConnection as zn, Dpi as zr, MemberPage as zt };
16159
- //# sourceMappingURL=index-DLovEyXI.d.ts.map
16370
+ export { PolicyRule as $, CreateApiToken as $i, SyncStatus as $n, ImageHint as $r, ReplyInvite as $t, Color as A, RedactionActivityParams as Aa, TabularModel as Ai, RedactionResultPage as An, Audit as Ar, NotificationPage as At, Label as B, TextEntity as Bi, ConnectionVerification as Bn, Dimensions as Br, MemberSortField as Bt, Language as C, ConnectionActivityParams as Ca, TabularAuditKind as Ci, DetectionPage as Cn, AudioHint as Cr, DetectionCompletedParams as Ct, ScopeMetadata as D, MemberActivityParams as Da, TabularHint as Di, RedactDetection as Dn, AudioPattern as Dr, MemberJoinedParams as Dt, Languages as E, InviteActivityParams as Ea, TabularEntity as Ei, PipelineDetectionsQuery as En, AudioModel as Er, MemberInvitedParams as Et, GdprArticle9Treatment as F, Handle as Fa, TextAuditEvent as Fi, ConnectionConfig as Fn, CitedAttribution as Fr, UnreadStatus as Ft, LanguageTag as G, TextPattern as Gi, OpenAiCredentials as Gn, FreeformAttribution as Gr, InviteCode as Gt, LabelLocale as H, TextLocation as Hi, CreateConnection as Hn, Dpi as Hr, CreateInvite as Ht, GdprSensitiveScope as I, PasswordChange as Ia, TextAuditKind as Ii, ConnectionId as In, CodecParams as Ir, UpdateNotificationSettings as It, PciDssPart as J, TimeSpan as Ji, SyncConnection as Jn, ImageAuditKind as Jr, InvitePreview as Jt, LocalizedText as K, TextRefinement as Ki, S3Credentials as Kn, ImageAdd as Kr, InviteExpiration as Kt, HipaaAccountNumbers as L, PublicAccount as La, TextAuditLog as Li, ConnectionPage as Ln, Conflict as Lr, ListMembers as Lt, CreatePolicy as M, WorkspaceActivityParams as Ma, TabularRefinement as Mi, AnthropicCredentials as Mn, BoundingBox as Mr, NotificationSettings as Mt, DateGranularity as N, Account as Na, TabularRetag as Ni, AzureCredentials as Nn, Calibration as Nr, RedactionCreatedParams as Nt, AudioRedaction as O, PipelineActivityParams as Oa, TabularLocation as Oi, RedactionId as On, AudioRefinement as Or, Notification as Ot, DateStyle as P, AccountRef as Pa, TextAdd as Pi, Connection as Pn, Category as Pr, UnreadCountEvent as Pt, PolicyDraft as Q, ApiTokenWithJWT as Qi, SyncScheduleInput as Qn, ImageEntity as Qr, ListInvites as Qt, HipaaDeidMethod as R, UpdateAccount as Ra, TextData as Ri, ConnectionSync as Rn, Contested as Rr, Member as Rt, CountryCode as S, ActivityType as Sa, TabularAuditEvent as Si, DetectionMetadata as Sn, AudioEntity as Sr, ConnectionSyncFailedParams as St, LanguageSpan as T, FileActivityParams as Ta, TabularEdit as Ti, DetectionStatusEvent as Tn, AudioManual as Tr, MarkedReadStatus as Tt, LabelRef as U, TextManual as Ui, GcsCredentials as Un, EditSet as Ur, GenerateInviteCode as Ut, LabelEntry as V, TextHint as Vi, ConnectionsQuery as Vn, DocumentContext as Vr, UpdateMember as Vt, LabelScope as W, TextModel as Wi, LlmConfig as Wn, EntityCoRef as Wr, Invite as Wt, Policy as X, ApiTokenPage as Xi, SyncMode as Xn, ImageData as Xr, InviteSortField as Xt, PciPanRender as Y, ApiToken as Yi, SyncDeletionPolicy as Yn, ImageAuditLog as Yr, InviteSent as Yt, PolicyDefinition as Z, ApiTokenType as Zi, SyncSchedule as Zn, ImageEdit as Zr, InviteStatus as Zt, WebhookId as _, Activity as _a, RuleMatch as _i, ErrorResponse as _n, AudioAuditEvent as _r, PipelineSummaryPage as _t, RetentionSettings as a, DetectionTimeSeries as aa, ImageRetag as ai, DeletedFiles as an, ChatSessionPage as ar, TabularRedaction as at, WebhookStatus as b, ActivityPage as ba, Suppress as bi, Detection as bn, AudioData as br, CursorPagination as bt, WorkspacePage as c, ProviderType as ca, ModelEvent as ci, FileKind as cn, SendChatMessage as cr, TextRedaction as ct, CreateWebhook as d, StorageKindEntry as da, Point as di, ListFiles as dn, RegisteredRecognizer as dr, CreatePipeline as dt, TokenExpiration as ea, ImageLocation as ei, SortOrder as en, SyncTriggerType as er, PolicySummary as et, TestWebhook as f, TokenCounts as fa, Polygon as fi, ModalityToken as fn, AuthToken as fr, Pipeline as ft, WebhookEvent as g, WorkspaceAnalytics as ga, Report as gi, ExportQuery as gn, AudioAdd as gr, PipelineSummary as gt, WebhookCreated as h, UsageReport as ha, Redaction as hi, ExportFormat as hn, Attribution as hr, PipelineStatus as ht, RetentionOverride as i, DetectionStatusEntry as ia, ImageRefinement as ii, DeleteFiles as in, ChatSession as ir, Sha2Algorithm as it, ConfidenceThreshold as j, WebhookActivityParams as ja, TabularPattern as ji, WorkspaceDetectionsQuery as jn, AuditHash as jr, NotificationPayload as jt, ClampBucket as k, PolicyActivityParams as ka, TabularManual as ki, RedactionResult as kn, AudioRetag as kr, NotificationEvent as kt, WorkspaceRole as l, RecognizerId as la, OperatorId as li, FilePage as ln, LabelCatalog as lr, UpdatePolicy as lt, Webhook as m, UsageAnalytics as ma, RasterMode as mi, DateWindow as mn, Signup as mr, PipelineFilter as mt, RasterPolicy as n, DetectionAnalytics as na, ImageModel as ni, Health as nn, ChatMessage as nr, PolicyTemplate as nt, UpdateWorkspace as o, ModelUsage as oa, LeakProfile as oi, File as on, ChatToken as or, TemplateOrigin as ot, UpdateWebhook as p, Usage as pa, RangeOfUint as pi, UpdateFile as pn, Login as pr, PipelineDefinition as pt, ModalityRedactions as q, TextRetag as qi, StorageConfig as qn, ImageAuditEvent as qr, InvitePage as qt, Retention as r, DetectionDayEntry as ra, ImagePattern as ri, HealthStatus as rn, ChatRole as rr, Predicate as rt, Workspace as s, ModelUsageEntry as sa, ManualIntent as si, FileHash as sn, CreateChatSession as sr, TerminalFallback as st, CreateWorkspace as t, UpdateApiToken as ta, ImageManual as ti, ComponentHealth as tn, UpdateConnection as tr, PolicySummaryPage as tt, WorkspaceSettings as u, StorageAnalytics as ua, PatternEvent as ui, FormatToken as un, RecognizerCatalog as ur, Waveform as ut, WebhookPage as v, ActivityExportOptions as va, Selection as vi, ValidationErrorDetail as vn, AudioAuditKind as vr, PipelineTriggerType as vt, LanguageProvenance as w, DetectionActivityParams as wa, TabularAuditLog as wi, DetectionStatus as wn, AudioLocation as wr, DetectionFailedParams as wt, Confidence as x, ActivityPayload as xa, TabularAdd as xi, DetectionId as xn, AudioEdit as xr, ConnectionSyncCompletedParams as xt, WebhookResult as y, ActivityFilterQuery as ya, SourceRef as yi, CreateDetection as yn, AudioAuditLog as yr, UpdatePipeline as yt, ImageRedaction as z, paths as za, TextEdit as zi, ConnectionSyncPage as zn, Deduplication as zr, MemberPage as zt };
16371
+ //# sourceMappingURL=index-VL7c4kfR.d.ts.map