@nvisy/sdk 0.37.0 → 0.39.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 +40 -1
- package/dist/{client-CAsJKHbv.d.ts → client-Do9D7tIl.d.ts} +15 -2
- package/dist/client-Do9D7tIl.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-WivTjcX8.js → error-Zp6bHUht.js} +2 -2
- package/dist/{error-WivTjcX8.js.map → error-Zp6bHUht.js.map} +1 -1
- package/dist/{errors-CqL-N7iB.d.ts → errors-yp8AsvR_.d.ts} +2 -2
- package/dist/{errors-CqL-N7iB.d.ts.map → errors-yp8AsvR_.d.ts.map} +1 -1
- package/dist/{index-DLovEyXI.d.ts → index-7mawMrbL.d.ts} +200 -20
- package/dist/index-7mawMrbL.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-BEP_y6VO.js → services-DTJZ6KBk.js} +20 -1
- package/dist/{services-BEP_y6VO.js.map → services-DTJZ6KBk.js.map} +1 -1
- package/dist/{auth → standalone}/index.d.ts +42 -19
- package/dist/standalone/index.d.ts.map +1 -0
- package/dist/{auth → standalone}/index.js +47 -30
- package/dist/standalone/index.js.map +1 -0
- package/dist/webhooks/index.d.ts +2 -2
- package/package.json +4 -4
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/client-CAsJKHbv.d.ts.map +0 -1
- package/dist/index-DLovEyXI.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,43 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.39.0] - 2026-08-30
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `files.deleteFiles(workspaceSlug, fileIds)` deletes several files in one call
|
|
16
|
+
and returns the `deleted` and `skipped` ids (`DeletedFiles`); the request
|
|
17
|
+
shape is `DeleteFiles`
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Regenerated the API schema against the updated platform handlers
|
|
22
|
+
- **Breaking:** renamed the `OcrPolicy` datatype to `RasterPolicy`, matching the
|
|
23
|
+
renamed `WorkspaceSettings` raster policy
|
|
24
|
+
|
|
25
|
+
## [0.38.0] - 2026-08-29
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- `checkHealth()` — a standalone health check that needs neither an API token
|
|
30
|
+
nor a `Nvisy` client, for use as a pre-auth liveness probe. The health
|
|
31
|
+
endpoint is public (unauthenticated returns a cached status, authenticated a
|
|
32
|
+
real-time one), and a degraded `503` is returned as a `Health` value rather
|
|
33
|
+
than thrown. Exported from `@nvisy/sdk/standalone` with its `HealthConfig`
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **Breaking:** the standalone `login` / `signup` functions moved from
|
|
38
|
+
`@nvisy/sdk/auth` to `@nvisy/sdk/standalone`, now sharing one module with
|
|
39
|
+
`checkHealth`:
|
|
40
|
+
|
|
41
|
+
```diff
|
|
42
|
+
- import { login, signup } from "@nvisy/sdk/auth";
|
|
43
|
+
+ import { login, signup } from "@nvisy/sdk/standalone";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`AuthConfig` is re-exported from the same subpath; behavior is unchanged.
|
|
47
|
+
|
|
11
48
|
## [0.37.0] - 2026-08-27
|
|
12
49
|
|
|
13
50
|
### Changed
|
|
@@ -778,7 +815,9 @@ redaction an independent resource. This release renames the SDK to match.
|
|
|
778
815
|
- Network error handling for timeouts, DNS resolution, and connection issues
|
|
779
816
|
- Configuration validation with detailed error messages
|
|
780
817
|
|
|
781
|
-
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.
|
|
818
|
+
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.39.0...HEAD
|
|
819
|
+
[0.39.0]: https://github.com/nvisycom/sdk-ts/compare/v0.38.0...v0.39.0
|
|
820
|
+
[0.38.0]: https://github.com/nvisycom/sdk-ts/compare/v0.37.0...v0.38.0
|
|
782
821
|
[0.37.0]: https://github.com/nvisycom/sdk-ts/compare/v0.36.0...v0.37.0
|
|
783
822
|
[0.36.0]: https://github.com/nvisycom/sdk-ts/compare/v0.35.0...v0.36.0
|
|
784
823
|
[0.35.0]: https://github.com/nvisycom/sdk-ts/compare/v0.34.0...v0.35.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { $t as ReplyInvite, An as WorkspaceDetectionsQuery, At as NotificationPage, En as RedactDetection, Ft as UnreadStatus, Gt as InviteCode, Ht as CreateInvite, Ia as PublicAccount, In as ConnectionPage, It as UpdateNotificationSettings, Ji as ApiToken, Jt as InvitePreview, La as UpdateAccount, Ln as ConnectionSync, Lt as ListMembers, M as CreatePolicy, Ma as Account$1, Mt as NotificationSettings, Nn as Connection, On as RedactionResult, Pt as UnreadCountEvent, Qi as CreateApiToken, Qn as SyncStatus, Qt as ListInvites, Ra as paths, Rn as ConnectionSyncPage, Rt as Member, Sn as DetectionPage, Tn as PipelineDetectionsQuery, Tt as MarkedReadStatus, Ut as GenerateInviteCode, Vn as CreateConnection, Vt as UpdateMember, X as Policy, Yi as ApiTokenPage, Yt as InviteSent, Zi as ApiTokenWithJWT, _a as ActivityExportOptions, _t as PipelineSummaryPage, an as DeletedFiles, ar as ChatToken, bt as CursorPagination, c as WorkspacePage, cn as FilePage, cr as LabelCatalog, d as CreateWebhook, dr as AuthToken, dt as CreatePipeline, ea as UpdateApiToken, er as UpdateConnection, f as TestWebhook, fn as UpdateFile, fr as Login, ft as Pipeline, h as WebhookCreated, ha as WorkspaceAnalytics, hn as ExportQuery, ht as PipelineStatus, ia as DetectionTimeSeries, ir as ChatSessionPage, kn as RedactionResultPage, kr as Audit, lr as RecognizerCatalog, lt as UpdatePolicy, m as Webhook, nn as Health, o as UpdateWorkspace, on as File, or as CreateChatSession, p as UpdateWebhook, pn as DateWindow, pr as Signup, qn as SyncConnection, qt as InvitePage, rr as ChatSession, s as Workspace, sr as SendChatMessage, t as CreateWorkspace, tr as ChatMessage, tt as PolicySummaryPage, un as ListFiles, v as WebhookPage, va as ActivityFilterQuery, vn as CreateDetection, wn as DetectionStatusEvent, y as WebhookResult, ya as ActivityPage, yn as Detection, yt as UpdatePipeline, zn as ConnectionVerification, zt as MemberPage } from "./index-7mawMrbL.js";
|
|
1
2
|
import { t as ClientConfig } from "./config-BhUEqFOg.js";
|
|
2
|
-
import { $n as ChatMessage, $t as ReplyInvite, Aa as Account$1, At as NotificationPage, Cn as PipelineDetectionsQuery, Dn as RedactionResultPage, Dr as Audit, En as RedactionResult, Fa as UpdateAccount, Fn as ConnectionSync, Ft as UnreadStatus, Gn as SyncConnection, Gt as InviteCode, Ht as CreateInvite, Ia as paths, In as ConnectionSyncPage, It as UpdateNotificationSettings, Jt as InvitePreview, Ki as ApiToken, Ln as ConnectionVerification, Lt as ListMembers, M as CreatePolicy, Mt as NotificationSettings, On as WorkspaceDetectionsQuery, Pa as PublicAccount, Pn as ConnectionPage, Pt as UnreadCountEvent, Qi as UpdateApiToken, Qn as UpdateConnection, Qt as ListInvites, Rt as Member, Sn as DetectionStatusEvent, Tt as MarkedReadStatus, Ut as GenerateInviteCode, Vt as UpdateMember, X as Policy, Xi as CreateApiToken, Xn as SyncStatus, Yi as ApiTokenWithJWT, Yt as InviteSent, _a as ActivityPage, _n as Detection, _t as PipelineSummaryPage, ar as SendChatMessage, bn as DetectionPage, bt as CursorPagination, c as WorkspacePage, cn as ListFiles, d as CreateWebhook, dn as DateWindow, dr as Signup, dt as CreatePipeline, f as TestWebhook, ft as Pipeline, ga as ActivityFilterQuery, gn as CreateDetection, h as WebhookCreated, ha as ActivityExportOptions, ht as PipelineStatus, in as File, ir as CreateChatSession, jn as Connection, lr as AuthToken, lt as UpdatePolicy, m as Webhook, na as DetectionTimeSeries, nn as Health, nr as ChatSessionPage, o as UpdateWorkspace, on as FilePage, or as LabelCatalog, p as UpdateWebhook, pa as WorkspaceAnalytics, pn as ExportQuery, qi as ApiTokenPage, qt as InvitePage, rr as ChatToken, s as Workspace, sr as RecognizerCatalog, t as CreateWorkspace, tr as ChatSession, tt as PolicySummaryPage, un as UpdateFile, ur as Login, v as WebhookPage, wn as RedactDetection, y as WebhookResult, yt as UpdatePipeline, zn as CreateConnection, zt as MemberPage } from "./index-DLovEyXI.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
5
5
|
/**
|
|
@@ -495,6 +495,19 @@ declare class Files {
|
|
|
495
495
|
* @throws {ApiError} if the request fails
|
|
496
496
|
*/
|
|
497
497
|
deleteFile(workspaceSlug: string, fileId: string): Promise<void>;
|
|
498
|
+
/**
|
|
499
|
+
* Delete several files in one call.
|
|
500
|
+
*
|
|
501
|
+
* Idempotent: ids resolving to live files in the workspace are removed and
|
|
502
|
+
* returned in `deleted`; unknown, already-deleted, or out-of-workspace ids
|
|
503
|
+
* are returned in `skipped`. Deletion is permanent.
|
|
504
|
+
*
|
|
505
|
+
* @param workspaceSlug - Workspace slug
|
|
506
|
+
* @param fileIds - The file IDs to delete
|
|
507
|
+
* @returns Promise that resolves with the deleted and skipped ids
|
|
508
|
+
* @throws {ApiError} if the request fails
|
|
509
|
+
*/
|
|
510
|
+
deleteFiles(workspaceSlug: string, fileIds: string[]): Promise<DeletedFiles>;
|
|
498
511
|
}
|
|
499
512
|
//#endregion
|
|
500
513
|
//#region src/services/invites.d.ts
|
|
@@ -1149,4 +1162,4 @@ declare class Nvisy {
|
|
|
1149
1162
|
}
|
|
1150
1163
|
//#endregion
|
|
1151
1164
|
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-
|
|
1165
|
+
//# sourceMappingURL=client-Do9D7tIl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-Do9D7tIl.d.ts","names":[],"sources":["../src/services/account.ts","../src/services/activities.ts","../src/services/analytics.ts","../src/services/api-tokens.ts","../src/services/auth.ts","../src/services/catalog.ts","../src/services/chat.ts","../src/services/connections.ts","../src/services/detections.ts","../src/services/files.ts","../src/services/invites.ts","../src/services/members.ts","../src/services/notifications.ts","../src/services/pipelines.ts","../src/services/policies.ts","../src/services/redactions.ts","../src/services/status.ts","../src/services/syncs.ts","../src/services/webhooks.ts","../src/services/workspaces.ts","../src/client.ts"],"mappings":";;;;;;;cAUa;;EAGA,YAAA,KAAK;;;;;;EASX,cAAc,QAAQ;;;;;;;EAWtB,cAAc,SAAS,gBAAgB,QAAQ;;;;;;EAY/C,iBAAiB;;;;;;;EAUjB,iBAAiB,mBAAmB,QAAQ;;;;;;;;EAc5C,aAAa,kBAAkB,QAAQ,OAAO,QAAQ;;;;;;;EAsBtD,aAAa,mBAAmB;;;;;;;cC/E1B;;EAGA,YAAA,KAAK;;;;;;;;;EAYX,eACL,uBACA,QAAQ,sBAAsB,aAAa,mBACzC,QAAQ;;;;;;;;;EAkBL,iBACL,uBACA,QAAQ,sBAAsB,aAAa,wBACzC,QAAQ;;;;;;;cCzCC;;EAGA,YAAA,KAAK;;;;;;;EAUX,aAAa,wBAAwB,QAAQ;;;;;;;;EAiB7C,uBACL,uBACA,QAAQ,aACN,QAAQ;;;;;;;cC9BC;;EAGA,YAAA,KAAK;;;;;;;EAUX,cAAc,QAAQ,mBAAmB,QAAQ;;;;;;;EAajD,YAAY,kBAAkB,QAAQ;;;;;;;EAatC,eAAe,OAAO,iBAAiB,QAAQ;;;;;;;;EAc/C,eACL,iBACA,SAAS,iBACP,QAAQ;;;;;;;EAcL,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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,
|
|
1
|
+
import { $ as PolicyRule, $i as TokenExpiration, $n as SyncTriggerType, $r as ImageLocation, $t as ReplyInvite, A as Color, Aa as WebhookActivityParams, Ai as TabularPattern, An as WorkspaceDetectionsQuery, Ar as AuditHash, At as NotificationPage, B as Label, Bi as TextHint, Bn as ConnectionsQuery, Br as DocumentContext, Bt as MemberSortField, C as Language, Ca as DetectionActivityParams, Ci as TabularAuditLog, Cn as DetectionStatus, Cr as AudioLocation, Ct as DetectionCompletedParams, D as ScopeMetadata, Da as PipelineActivityParams, Di as TabularLocation, Dn as RedactionId, Dr as AudioRefinement, Dt as MemberJoinedParams, E as Languages, Ea as MemberActivityParams, Ei as TabularHint, En as RedactDetection, Er as AudioPattern, Et as MemberInvitedParams, F as GdprArticle9Treatment, Fa as PasswordChange, Fi as TextAuditKind, Fn as ConnectionId, Fr as CodecParams, Ft as UnreadStatus, G as LanguageTag, Gi as TextRefinement, Gn as S3Credentials, Gr as ImageAdd, Gt as InviteCode, H as LabelLocale, Hi as TextManual, Hn as GcsCredentials, Hr as EditSet, Ht as CreateInvite, I as GdprSensitiveScope, Ia as PublicAccount, Ii as TextAuditLog, In as ConnectionPage, Ir as Conflict, It as UpdateNotificationSettings, J as PciDssPart, Ji as ApiToken, Jn as SyncDeletionPolicy, Jr as ImageAuditLog, Jt as InvitePreview, K as LocalizedText, Ki as TextRetag, Kn as StorageConfig, Kr as ImageAuditEvent, Kt as InviteExpiration, L as HipaaAccountNumbers, La as UpdateAccount, Li as TextData, Ln as ConnectionSync, Lr as Contested, Lt as ListMembers, M as CreatePolicy, Ma as Account, Mi as TabularRetag, Mn as AzureCredentials, Mr as Calibration, Mt as NotificationSettings, N as DateGranularity, Na as AccountRef, Ni as TextAdd, Nn as Connection, Nr as Category, Nt as RedactionCreatedParams, O as AudioRedaction, Oa as PolicyActivityParams, Oi as TabularManual, On as RedactionResult, Or as AudioRetag, Ot as Notification, P as DateStyle, Pa as Handle, Pi as TextAuditEvent, Pn as ConnectionConfig, Pr as CitedAttribution, Pt as UnreadCountEvent, Q as PolicyDraft, Qi as CreateApiToken, Qn as SyncStatus, Qr as ImageHint, Qt as ListInvites, R as HipaaDeidMethod, Ri as TextEdit, Rn as ConnectionSyncPage, Rr as Deduplication, Rt as Member, S as CountryCode, Sa as ConnectionActivityParams, Si as TabularAuditKind, Sn as DetectionPage, Sr as AudioHint, St as ConnectionSyncFailedParams, T as LanguageSpan, Ta as InviteActivityParams, Ti as TabularEntity, Tn as PipelineDetectionsQuery, Tr as AudioModel, Tt as MarkedReadStatus, U as LabelRef, Ui as TextModel, Un as LlmConfig, Ur as EntityCoRef, Ut as GenerateInviteCode, V as LabelEntry, Vi as TextLocation, Vn as CreateConnection, Vr as Dpi, Vt as UpdateMember, W as LabelScope, Wi as TextPattern, Wn as OpenAiCredentials, Wr as FreeformAttribution, Wt as Invite, X as Policy, Xi as ApiTokenType, Xn as SyncSchedule, Xr as ImageEdit, Xt as InviteSortField, Y as PciPanRender, Yi as ApiTokenPage, Yn as SyncMode, Yr as ImageData, Yt as InviteSent, Z as PolicyDefinition, Zi as ApiTokenWithJWT, Zn as SyncScheduleInput, Zr as ImageEntity, Zt as InviteStatus, _ as WebhookId, _a as ActivityExportOptions, _i as Selection, _n as ValidationErrorDetail, _r as AudioAuditKind, _t as PipelineSummaryPage, a as RetentionSettings, aa as ModelUsage, ai as LeakProfile, an as DeletedFiles, ar as ChatToken, at as TabularRedaction, b as WebhookStatus, ba as ActivityPayload, bi as TabularAdd, bn as DetectionId, br as AudioEdit, bt as CursorPagination, c as WorkspacePage, ca as RecognizerId, ci as OperatorId, cn as FilePage, cr as LabelCatalog, ct as TextRedaction, d as CreateWebhook, da as TokenCounts, di as Polygon, dn as ModalityToken, dr as AuthToken, dt as CreatePipeline, ea as UpdateApiToken, ei as ImageManual, en as SortOrder, er as UpdateConnection, et as PolicySummary, f as TestWebhook, fa as Usage, fi as RangeOfUint, fn as UpdateFile, fr as Login, ft as Pipeline, g as WebhookEvent, ga as Activity, gi as RuleMatch, gn as ErrorResponse, gr as AudioAuditEvent, gt as PipelineSummary, h as WebhookCreated, ha as WorkspaceAnalytics, hi as Report, hn as ExportQuery, hr as AudioAdd, ht as PipelineStatus, i as RetentionOverride, ia as DetectionTimeSeries, ii as ImageRetag, in as DeleteFiles, ir as ChatSessionPage, it as Sha2Algorithm, j as ConfidenceThreshold, ja as WorkspaceActivityParams, ji as TabularRefinement, jn as AnthropicCredentials, jr as BoundingBox, jt as NotificationPayload, k as ClampBucket, ka as RedactionActivityParams, ki as TabularModel, kn as RedactionResultPage, kr as Audit, kt as NotificationEvent, l as WorkspaceRole, la as StorageAnalytics, li as PatternEvent, ln as FormatToken, lr as RecognizerCatalog, lt as UpdatePolicy, m as Webhook, ma as UsageReport, mi as Redaction, mn as ExportFormat, mr as Attribution, mt as PipelineFilter, n as RasterPolicy, na as DetectionDayEntry, ni as ImagePattern, nn as Health, nr as ChatRole, nt as PolicyTemplate, o as UpdateWorkspace, oa as ModelUsageEntry, oi as ManualIntent, on as File, or as CreateChatSession, ot as TemplateOrigin, p as UpdateWebhook, pa as UsageAnalytics, pi as RasterMode, pn as DateWindow, pr as Signup, pt as PipelineDefinition, q as ModalityRedactions, qi as TimeSpan, qn as SyncConnection, qr as ImageAuditKind, qt as InvitePage, r as Retention, ra as DetectionStatusEntry, ri as ImageRefinement, rn as HealthStatus, rr as ChatSession, rt as Predicate, s as Workspace, sa as ProviderType, si as ModelEvent, sn as FileKind, sr as SendChatMessage, st as TerminalFallback, t as CreateWorkspace, ta as DetectionAnalytics, ti as ImageModel, tn as ComponentHealth, tr as ChatMessage, tt as PolicySummaryPage, u as WorkspaceSettings, ua as StorageKindEntry, ui as Point, un as ListFiles, ur as RegisteredRecognizer, ut as Waveform, v as WebhookPage, va as ActivityFilterQuery, vi as SourceRef, vn as CreateDetection, vr as AudioAuditLog, vt as PipelineTriggerType, w as LanguageProvenance, wa as FileActivityParams, wi as TabularEdit, wn as DetectionStatusEvent, wr as AudioManual, wt as DetectionFailedParams, x as Confidence, xa as ActivityType, xi as TabularAuditEvent, xn as DetectionMetadata, xr as AudioEntity, xt as ConnectionSyncCompletedParams, y as WebhookResult, ya as ActivityPage, yi as Suppress, yn as Detection, yr as AudioData, yt as UpdatePipeline, z as ImageRedaction, zi as TextEntity, zn as ConnectionVerification, zr as Dimensions, zt as MemberPage } from "../index-7mawMrbL.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, 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.
|
|
10
|
+
const VERSION = "0.39.0";
|
|
11
11
|
/**
|
|
12
12
|
* Default configuration values used when options are not explicitly provided.
|
|
13
13
|
*/
|
|
@@ -44,4 +44,4 @@ const errorMiddleware = {
|
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { DEFAULTS as n, VERSION as r, errorMiddleware as t };
|
|
47
|
-
//# sourceMappingURL=error-
|
|
47
|
+
//# sourceMappingURL=error-Zp6bHUht.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-
|
|
1
|
+
{"version":3,"file":"error-Zp6bHUht.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * The `apiToken` field is required for authentication. All other fields are optional\n * and will use sensible defaults when omitted.\n *\n * @example\n * ```typescript\n * const config: ClientConfig = {\n * apiToken: \"your-api-token\",\n * baseUrl: \"https://api.nvisy.com\",\n * headers: { \"X-Custom-Header\": \"value\" },\n * };\n * const client = new Client(config);\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or via the auth endpoints.\n\t */\n\tapiToken: string;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAyEb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;ACjGA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gn as ErrorResponse } from "./index-7mawMrbL.js";
|
|
2
2
|
//#region src/errors.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Base error class for all Nvisy SDK errors.
|
|
@@ -124,4 +124,4 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
|
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
export { NvisyError as n, NvisyApiError as t };
|
|
127
|
-
//# sourceMappingURL=errors-
|
|
127
|
+
//# sourceMappingURL=errors-yp8AsvR_.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-yp8AsvR_.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"}
|
|
@@ -3827,7 +3827,7 @@ interface paths {
|
|
|
3827
3827
|
put?: never;
|
|
3828
3828
|
/**
|
|
3829
3829
|
* Upload files
|
|
3830
|
-
* @description Uploads one or more files to a workspace. Each file is encrypted
|
|
3830
|
+
* @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
3831
|
*/
|
|
3832
3832
|
post: {
|
|
3833
3833
|
parameters: {
|
|
@@ -3899,6 +3899,143 @@ interface paths {
|
|
|
3899
3899
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
3900
3900
|
};
|
|
3901
3901
|
};
|
|
3902
|
+
/**
|
|
3903
|
+
* @description HTTP error response representation with security-conscious design.
|
|
3904
|
+
*
|
|
3905
|
+
* This struct contains all the information needed to serialize an error
|
|
3906
|
+
* response, including the error name, message, HTTP status code, resource
|
|
3907
|
+
* information, and user-friendly messages.
|
|
3908
|
+
*/
|
|
3909
|
+
413: {
|
|
3910
|
+
headers: {
|
|
3911
|
+
[name: string]: unknown;
|
|
3912
|
+
};
|
|
3913
|
+
content: {
|
|
3914
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
delete?: never;
|
|
3920
|
+
options?: never;
|
|
3921
|
+
head?: never;
|
|
3922
|
+
patch?: never;
|
|
3923
|
+
trace?: never;
|
|
3924
|
+
};
|
|
3925
|
+
"/workspaces/{workspaceSlug}/files/delete/": {
|
|
3926
|
+
parameters: {
|
|
3927
|
+
query?: never;
|
|
3928
|
+
header?: never;
|
|
3929
|
+
path?: never;
|
|
3930
|
+
cookie?: never;
|
|
3931
|
+
};
|
|
3932
|
+
get?: never;
|
|
3933
|
+
put?: never;
|
|
3934
|
+
/**
|
|
3935
|
+
* Delete files
|
|
3936
|
+
* @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.
|
|
3937
|
+
*/
|
|
3938
|
+
post: {
|
|
3939
|
+
parameters: {
|
|
3940
|
+
query?: never;
|
|
3941
|
+
header?: never;
|
|
3942
|
+
path: {
|
|
3943
|
+
/** @description URL-safe workspace identifier. */
|
|
3944
|
+
workspaceSlug: string;
|
|
3945
|
+
};
|
|
3946
|
+
cookie?: never;
|
|
3947
|
+
};
|
|
3948
|
+
/**
|
|
3949
|
+
* @description Request to delete several files in one call.
|
|
3950
|
+
*
|
|
3951
|
+
* The `100`-id cap bounds the work one call fans out into: the resolve query,
|
|
3952
|
+
* the delete transaction, and one best-effort object purge per file.
|
|
3953
|
+
*/
|
|
3954
|
+
requestBody: {
|
|
3955
|
+
content: {
|
|
3956
|
+
"application/json": components["schemas"]["DeleteFiles"];
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
responses: {
|
|
3960
|
+
/**
|
|
3961
|
+
* @description Result of a bulk file deletion.
|
|
3962
|
+
*
|
|
3963
|
+
* The deletion is idempotent: `deleted` holds the ids that resolved to live
|
|
3964
|
+
* files in the workspace and were removed, and `skipped` holds the requested
|
|
3965
|
+
* ids that did not — unknown, already deleted, in another workspace, or held by
|
|
3966
|
+
* an in-progress detection that still needs the file.
|
|
3967
|
+
*/
|
|
3968
|
+
200: {
|
|
3969
|
+
headers: {
|
|
3970
|
+
[name: string]: unknown;
|
|
3971
|
+
};
|
|
3972
|
+
content: {
|
|
3973
|
+
"application/json": components["schemas"]["DeletedFiles"];
|
|
3974
|
+
};
|
|
3975
|
+
};
|
|
3976
|
+
/**
|
|
3977
|
+
* @description HTTP error response representation with security-conscious design.
|
|
3978
|
+
*
|
|
3979
|
+
* This struct contains all the information needed to serialize an error
|
|
3980
|
+
* response, including the error name, message, HTTP status code, resource
|
|
3981
|
+
* information, and user-friendly messages.
|
|
3982
|
+
*/
|
|
3983
|
+
400: {
|
|
3984
|
+
headers: {
|
|
3985
|
+
[name: string]: unknown;
|
|
3986
|
+
};
|
|
3987
|
+
content: {
|
|
3988
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3989
|
+
};
|
|
3990
|
+
};
|
|
3991
|
+
/**
|
|
3992
|
+
* @description HTTP error response representation with security-conscious design.
|
|
3993
|
+
*
|
|
3994
|
+
* This struct contains all the information needed to serialize an error
|
|
3995
|
+
* response, including the error name, message, HTTP status code, resource
|
|
3996
|
+
* information, and user-friendly messages.
|
|
3997
|
+
*/
|
|
3998
|
+
401: {
|
|
3999
|
+
headers: {
|
|
4000
|
+
[name: string]: unknown;
|
|
4001
|
+
};
|
|
4002
|
+
content: {
|
|
4003
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
4006
|
+
/**
|
|
4007
|
+
* @description HTTP error response representation with security-conscious design.
|
|
4008
|
+
*
|
|
4009
|
+
* This struct contains all the information needed to serialize an error
|
|
4010
|
+
* response, including the error name, message, HTTP status code, resource
|
|
4011
|
+
* information, and user-friendly messages.
|
|
4012
|
+
*/
|
|
4013
|
+
403: {
|
|
4014
|
+
headers: {
|
|
4015
|
+
[name: string]: unknown;
|
|
4016
|
+
};
|
|
4017
|
+
content: {
|
|
4018
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4019
|
+
};
|
|
4020
|
+
};
|
|
4021
|
+
/** @description Expected request with `Content-Type: application/json` */
|
|
4022
|
+
415: {
|
|
4023
|
+
headers: {
|
|
4024
|
+
[name: string]: unknown;
|
|
4025
|
+
};
|
|
4026
|
+
content: {
|
|
4027
|
+
"text/plain": string;
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
/** @description Failed to deserialize the JSON body into the target type */
|
|
4031
|
+
422: {
|
|
4032
|
+
headers: {
|
|
4033
|
+
[name: string]: unknown;
|
|
4034
|
+
};
|
|
4035
|
+
content: {
|
|
4036
|
+
"text/plain": string;
|
|
4037
|
+
};
|
|
4038
|
+
};
|
|
3902
4039
|
};
|
|
3903
4040
|
};
|
|
3904
4041
|
delete?: never;
|
|
@@ -10680,6 +10817,36 @@ interface components {
|
|
|
10680
10817
|
/** @description Name of the fusion strategy that combined them. */
|
|
10681
10818
|
strategy: string;
|
|
10682
10819
|
};
|
|
10820
|
+
/**
|
|
10821
|
+
* @description Request to delete several files in one call.
|
|
10822
|
+
*
|
|
10823
|
+
* The `100`-id cap bounds the work one call fans out into: the resolve query,
|
|
10824
|
+
* the delete transaction, and one best-effort object purge per file.
|
|
10825
|
+
*/
|
|
10826
|
+
DeleteFiles: {
|
|
10827
|
+
/**
|
|
10828
|
+
* @description Ids of the files to delete. Ids that are unknown, already deleted, or in
|
|
10829
|
+
* another workspace are skipped rather than failing the request.
|
|
10830
|
+
*/
|
|
10831
|
+
fileIds: string[];
|
|
10832
|
+
};
|
|
10833
|
+
/**
|
|
10834
|
+
* @description Result of a bulk file deletion.
|
|
10835
|
+
*
|
|
10836
|
+
* The deletion is idempotent: `deleted` holds the ids that resolved to live
|
|
10837
|
+
* files in the workspace and were removed, and `skipped` holds the requested
|
|
10838
|
+
* ids that did not — unknown, already deleted, in another workspace, or held by
|
|
10839
|
+
* an in-progress detection that still needs the file.
|
|
10840
|
+
*/
|
|
10841
|
+
DeletedFiles: {
|
|
10842
|
+
/** @description Ids that were deleted. */
|
|
10843
|
+
deleted: string[];
|
|
10844
|
+
/**
|
|
10845
|
+
* @description Requested ids that were skipped: unknown, already deleted, in another
|
|
10846
|
+
* workspace, or held by an in-progress detection.
|
|
10847
|
+
*/
|
|
10848
|
+
skipped: string[];
|
|
10849
|
+
};
|
|
10683
10850
|
/**
|
|
10684
10851
|
* @description Response type for a detection.
|
|
10685
10852
|
*
|
|
@@ -12538,15 +12705,6 @@ interface components {
|
|
|
12538
12705
|
/** @description Whether to send email notifications. */
|
|
12539
12706
|
notifyViaEmail: boolean;
|
|
12540
12707
|
};
|
|
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
12708
|
/** @description OpenAI API credentials. */
|
|
12551
12709
|
OpenAiCredentials: {
|
|
12552
12710
|
/** @description OpenAI API key. */
|
|
@@ -13266,6 +13424,16 @@ interface components {
|
|
|
13266
13424
|
/** @constant */
|
|
13267
13425
|
kind: "never";
|
|
13268
13426
|
};
|
|
13427
|
+
/**
|
|
13428
|
+
* @description How a workspace's document pages are rasterised to images for OCR during
|
|
13429
|
+
* detection.
|
|
13430
|
+
*
|
|
13431
|
+
* A workspace-level policy over the engine's per-run raster mode: `Auto` lets
|
|
13432
|
+
* the engine decide from the text layer, `Always` renders every page (for
|
|
13433
|
+
* documents with unreliable text layers — scans, watermarks), and `Never`
|
|
13434
|
+
* relies on the text layer only.
|
|
13435
|
+
*/
|
|
13436
|
+
RasterPolicy: "auto" | "always" | "never";
|
|
13269
13437
|
/** @description The engine's registered recognizers, grouped by kind. */
|
|
13270
13438
|
RecognizerCatalog: {
|
|
13271
13439
|
/** @description LLM recognizers. */
|
|
@@ -15644,7 +15812,13 @@ interface components {
|
|
|
15644
15812
|
displayName: string;
|
|
15645
15813
|
/** @description Role of the member in the workspace. */
|
|
15646
15814
|
memberRole: components["schemas"]["WorkspaceRole"];
|
|
15647
|
-
/**
|
|
15815
|
+
/**
|
|
15816
|
+
* @description Workspace settings (raster policy, data-retention rules, upload cap).
|
|
15817
|
+
*
|
|
15818
|
+
* `maxUploadBytes` is resolved to the effective per-file limit — the smaller
|
|
15819
|
+
* of the workspace's own cap and the server-wide hard limit — so a client
|
|
15820
|
+
* always reads a concrete number to enforce.
|
|
15821
|
+
*/
|
|
15648
15822
|
settings: components["schemas"]["WorkspaceSettings"];
|
|
15649
15823
|
/** @description URL-safe workspace identifier. */
|
|
15650
15824
|
slug: components["schemas"]["Handle"];
|
|
@@ -15733,15 +15907,19 @@ interface components {
|
|
|
15733
15907
|
/** @description Typed workspace settings, the JSON stored in the `workspaces.settings` column. */
|
|
15734
15908
|
WorkspaceSettings: {
|
|
15735
15909
|
/**
|
|
15736
|
-
*
|
|
15737
|
-
* @
|
|
15910
|
+
* Format: uint64
|
|
15911
|
+
* @description A soft per-file upload cap in bytes: an upload larger than this is
|
|
15912
|
+
* rejected for this workspace. `None` imposes no workspace-specific cap.
|
|
15913
|
+
*
|
|
15914
|
+
* The server-wide hard limit still applies regardless; the effective cap is
|
|
15915
|
+
* the smaller of the two.
|
|
15738
15916
|
*/
|
|
15739
|
-
|
|
15917
|
+
maxUploadBytes?: number;
|
|
15740
15918
|
/**
|
|
15741
|
-
* @description
|
|
15742
|
-
* @default
|
|
15919
|
+
* @description How document pages are rasterised for OCR during detection.
|
|
15920
|
+
* @default auto
|
|
15743
15921
|
*/
|
|
15744
|
-
|
|
15922
|
+
raster?: components["schemas"]["RasterPolicy"];
|
|
15745
15923
|
/**
|
|
15746
15924
|
* @description Data-retention rules for the workspace.
|
|
15747
15925
|
* @default {
|
|
@@ -16013,6 +16191,8 @@ type FormatToken = Schemas$10["FormatToken"];
|
|
|
16013
16191
|
type ModalityToken = Schemas$10["ModalityToken"];
|
|
16014
16192
|
type ListFiles = Schemas$10["ListFiles"];
|
|
16015
16193
|
type FilePage = Schemas$10["FilePage"];
|
|
16194
|
+
type DeleteFiles = Schemas$10["DeleteFiles"];
|
|
16195
|
+
type DeletedFiles = Schemas$10["DeletedFiles"];
|
|
16016
16196
|
//#endregion
|
|
16017
16197
|
//#region src/datatypes/health.d.ts
|
|
16018
16198
|
type Schemas$9 = components["schemas"];
|
|
@@ -16150,10 +16330,10 @@ type UpdateWorkspace = Schemas["UpdateWorkspace"];
|
|
|
16150
16330
|
type WorkspaceRole = Schemas["WorkspaceRole"];
|
|
16151
16331
|
type WorkspacePage = Schemas["WorkspacePage"];
|
|
16152
16332
|
type WorkspaceSettings = Schemas["WorkspaceSettings"];
|
|
16153
|
-
type
|
|
16333
|
+
type RasterPolicy = Schemas["RasterPolicy"];
|
|
16154
16334
|
type Retention = Schemas["Retention"];
|
|
16155
16335
|
type RetentionSettings = Schemas["RetentionSettings"];
|
|
16156
16336
|
type RetentionOverride = Schemas["RetentionOverride"];
|
|
16157
16337
|
//#endregion
|
|
16158
|
-
export { PolicyRule as $,
|
|
16159
|
-
//# sourceMappingURL=index-
|
|
16338
|
+
export { PolicyRule as $, TokenExpiration as $i, SyncTriggerType as $n, ImageLocation as $r, ReplyInvite as $t, Color as A, WebhookActivityParams as Aa, TabularPattern as Ai, WorkspaceDetectionsQuery as An, AuditHash as Ar, NotificationPage as At, Label as B, TextHint as Bi, ConnectionsQuery as Bn, DocumentContext as Br, MemberSortField as Bt, Language as C, DetectionActivityParams as Ca, TabularAuditLog as Ci, DetectionStatus as Cn, AudioLocation as Cr, DetectionCompletedParams as Ct, ScopeMetadata as D, PipelineActivityParams as Da, TabularLocation as Di, RedactionId as Dn, AudioRefinement as Dr, MemberJoinedParams as Dt, Languages as E, MemberActivityParams as Ea, TabularHint as Ei, RedactDetection as En, AudioPattern as Er, MemberInvitedParams as Et, GdprArticle9Treatment as F, PasswordChange as Fa, TextAuditKind as Fi, ConnectionId as Fn, CodecParams as Fr, UnreadStatus as Ft, LanguageTag as G, TextRefinement as Gi, S3Credentials as Gn, ImageAdd as Gr, InviteCode as Gt, LabelLocale as H, TextManual as Hi, GcsCredentials as Hn, EditSet as Hr, CreateInvite as Ht, GdprSensitiveScope as I, PublicAccount as Ia, TextAuditLog as Ii, ConnectionPage as In, Conflict as Ir, UpdateNotificationSettings as It, PciDssPart as J, ApiToken as Ji, SyncDeletionPolicy as Jn, ImageAuditLog as Jr, InvitePreview as Jt, LocalizedText as K, TextRetag as Ki, StorageConfig as Kn, ImageAuditEvent as Kr, InviteExpiration as Kt, HipaaAccountNumbers as L, UpdateAccount as La, TextData as Li, ConnectionSync as Ln, Contested as Lr, ListMembers as Lt, CreatePolicy as M, Account as Ma, TabularRetag as Mi, AzureCredentials as Mn, Calibration as Mr, NotificationSettings as Mt, DateGranularity as N, AccountRef as Na, TextAdd as Ni, Connection as Nn, Category as Nr, RedactionCreatedParams as Nt, AudioRedaction as O, PolicyActivityParams as Oa, TabularManual as Oi, RedactionResult as On, AudioRetag as Or, Notification as Ot, DateStyle as P, Handle as Pa, TextAuditEvent as Pi, ConnectionConfig as Pn, CitedAttribution as Pr, UnreadCountEvent as Pt, PolicyDraft as Q, CreateApiToken as Qi, SyncStatus as Qn, ImageHint as Qr, ListInvites as Qt, HipaaDeidMethod as R, paths as Ra, TextEdit as Ri, ConnectionSyncPage as Rn, Deduplication as Rr, Member as Rt, CountryCode as S, ConnectionActivityParams as Sa, TabularAuditKind as Si, DetectionPage as Sn, AudioHint as Sr, ConnectionSyncFailedParams as St, LanguageSpan as T, InviteActivityParams as Ta, TabularEntity as Ti, PipelineDetectionsQuery as Tn, AudioModel as Tr, MarkedReadStatus as Tt, LabelRef as U, TextModel as Ui, LlmConfig as Un, EntityCoRef as Ur, GenerateInviteCode as Ut, LabelEntry as V, TextLocation as Vi, CreateConnection as Vn, Dpi as Vr, UpdateMember as Vt, LabelScope as W, TextPattern as Wi, OpenAiCredentials as Wn, FreeformAttribution as Wr, Invite as Wt, Policy as X, ApiTokenType as Xi, SyncSchedule as Xn, ImageEdit as Xr, InviteSortField as Xt, PciPanRender as Y, ApiTokenPage as Yi, SyncMode as Yn, ImageData as Yr, InviteSent as Yt, PolicyDefinition as Z, ApiTokenWithJWT as Zi, SyncScheduleInput as Zn, ImageEntity as Zr, InviteStatus as Zt, WebhookId as _, ActivityExportOptions as _a, Selection as _i, ValidationErrorDetail as _n, AudioAuditKind as _r, PipelineSummaryPage as _t, RetentionSettings as a, ModelUsage as aa, LeakProfile as ai, DeletedFiles as an, ChatToken as ar, TabularRedaction as at, WebhookStatus as b, ActivityPayload as ba, TabularAdd as bi, DetectionId as bn, AudioEdit as br, CursorPagination as bt, WorkspacePage as c, RecognizerId as ca, OperatorId as ci, FilePage as cn, LabelCatalog as cr, TextRedaction as ct, CreateWebhook as d, TokenCounts as da, Polygon as di, ModalityToken as dn, AuthToken as dr, CreatePipeline as dt, UpdateApiToken as ea, ImageManual as ei, SortOrder as en, UpdateConnection as er, PolicySummary as et, TestWebhook as f, Usage as fa, RangeOfUint as fi, UpdateFile as fn, Login as fr, Pipeline as ft, WebhookEvent as g, Activity as ga, RuleMatch as gi, ErrorResponse as gn, AudioAuditEvent as gr, PipelineSummary as gt, WebhookCreated as h, WorkspaceAnalytics as ha, Report as hi, ExportQuery as hn, AudioAdd as hr, PipelineStatus as ht, RetentionOverride as i, DetectionTimeSeries as ia, ImageRetag as ii, DeleteFiles as in, ChatSessionPage as ir, Sha2Algorithm as it, ConfidenceThreshold as j, WorkspaceActivityParams as ja, TabularRefinement as ji, AnthropicCredentials as jn, BoundingBox as jr, NotificationPayload as jt, ClampBucket as k, RedactionActivityParams as ka, TabularModel as ki, RedactionResultPage as kn, Audit as kr, NotificationEvent as kt, WorkspaceRole as l, StorageAnalytics as la, PatternEvent as li, FormatToken as ln, RecognizerCatalog as lr, UpdatePolicy as lt, Webhook as m, UsageReport as ma, Redaction as mi, ExportFormat as mn, Attribution as mr, PipelineFilter as mt, RasterPolicy as n, DetectionDayEntry as na, ImagePattern as ni, Health as nn, ChatRole as nr, PolicyTemplate as nt, UpdateWorkspace as o, ModelUsageEntry as oa, ManualIntent as oi, File as on, CreateChatSession as or, TemplateOrigin as ot, UpdateWebhook as p, UsageAnalytics as pa, RasterMode as pi, DateWindow as pn, Signup as pr, PipelineDefinition as pt, ModalityRedactions as q, TimeSpan as qi, SyncConnection as qn, ImageAuditKind as qr, InvitePage as qt, Retention as r, DetectionStatusEntry as ra, ImageRefinement as ri, HealthStatus as rn, ChatSession as rr, Predicate as rt, Workspace as s, ProviderType as sa, ModelEvent as si, FileKind as sn, SendChatMessage as sr, TerminalFallback as st, CreateWorkspace as t, DetectionAnalytics as ta, ImageModel as ti, ComponentHealth as tn, ChatMessage as tr, PolicySummaryPage as tt, WorkspaceSettings as u, StorageKindEntry as ua, Point as ui, ListFiles as un, RegisteredRecognizer as ur, Waveform as ut, WebhookPage as v, ActivityFilterQuery as va, SourceRef as vi, CreateDetection as vn, AudioAuditLog as vr, PipelineTriggerType as vt, LanguageProvenance as w, FileActivityParams as wa, TabularEdit as wi, DetectionStatusEvent as wn, AudioManual as wr, DetectionFailedParams as wt, Confidence as x, ActivityType as xa, TabularAuditEvent as xi, DetectionMetadata as xn, AudioEntity as xr, ConnectionSyncCompletedParams as xt, WebhookResult as y, ActivityPage as ya, Suppress as yi, Detection as yn, AudioData as yr, UpdatePipeline as yt, ImageRedaction as z, TextEntity as zi, ConnectionVerification as zn, Dimensions as zr, MemberPage as zt };
|
|
16339
|
+
//# sourceMappingURL=index-7mawMrbL.d.ts.map
|