@nvisy/sdk 0.48.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,53 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.50.0] - 2026-09-11
12
+
13
+ ### Added
14
+
15
+ - `nvisy.assignments` service for assigning files to reviewers and tracking
16
+ review status (`assigned` / `in_review` / `done`): `listFileAssignments`,
17
+ `createAssignment`, `listAssignments`, `updateAssignment`, `deleteAssignment`
18
+ - Assignment datatypes (`Assignment`, `CreateAssignment`, `UpdateAssignment`,
19
+ `AssignmentPage`, `AssignmentStatus`, `WorkspaceAssignmentsQuery`) and the
20
+ `FileAssignedParams` / `FileUnassignedParams` notification payloads
21
+
22
+ ### Changed
23
+
24
+ - Regenerated the API schema against the updated platform handlers
25
+
26
+ ### Removed
27
+
28
+ - **Breaking:** `ErrorResponse` no longer carries `suggestion` or `validation`,
29
+ and the `ValidationErrorDetail` datatype is removed. `NvisyApiError` drops its
30
+ `suggestion` and `validation` properties accordingly
31
+ - **Breaking:** the `MemberInvitedParams` notification-payload datatype
32
+
33
+ ## [0.49.0] - 2026-09-09
34
+
35
+ ### Added
36
+
37
+ - `nvisy.providers` service for a workspace's inference providers (the LLM / NER
38
+ services the platform calls): `listProviders`, `createProvider`, `getProvider`,
39
+ `updateProvider`, `deleteProvider`, and `verifyProvider`
40
+ - Provider datatypes (`Provider`, `CreateProvider`, `UpdateProvider`,
41
+ `ProviderPage`, `ProvidersQuery`, `ProviderId`, `ProviderConfig`,
42
+ `InferenceConfig`), the `ConnectionType` datatype, and a `resource` field on
43
+ the picker-token request (`PickerTokenRequest`)
44
+
45
+ ### Changed
46
+
47
+ - Regenerated the API schema against the updated platform handlers
48
+ - **Breaking:** the file-service provider enum was renamed from `Provider` to
49
+ `FileServiceProvider`; `Provider` now names the inference-provider resource.
50
+ `connections.startFileServiceOAuth(...)` takes a `FileServiceProvider`
51
+ - **Breaking:** `ProviderType` is now the inference model type (`llm` / `ner`),
52
+ renamed from the former connection-category values
53
+ - **Breaking:** the `SyncTriggerType` value `manual` was renamed to `on_demand`,
54
+ and `webhook` was removed
55
+ - `connections.getPickerToken(...)` accepts an optional `PickerTokenRequest`
56
+ (a picker `resource`); the request body is otherwise empty
57
+
11
58
  ## [0.48.0] - 2026-09-08
12
59
 
13
60
  ### Added
@@ -999,7 +1046,9 @@ redaction an independent resource. This release renames the SDK to match.
999
1046
  - Network error handling for timeouts, DNS resolution, and connection issues
1000
1047
  - Configuration validation with detailed error messages
1001
1048
 
1002
- [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...HEAD
1049
+ [Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.50.0...HEAD
1050
+ [0.50.0]: https://github.com/nvisycom/sdk-ts/compare/v0.49.0...v0.50.0
1051
+ [0.49.0]: https://github.com/nvisycom/sdk-ts/compare/v0.48.0...v0.49.0
1003
1052
  [0.48.0]: https://github.com/nvisycom/sdk-ts/compare/v0.47.0...v0.48.0
1004
1053
  [0.47.0]: https://github.com/nvisycom/sdk-ts/compare/v0.46.0...v0.47.0
1005
1054
  [0.46.0]: https://github.com/nvisycom/sdk-ts/compare/v0.45.0...v0.46.0
@@ -1,4 +1,4 @@
1
- import { $n as Provider, $t as ListInvites, An as RedactionResult, Ba as WorkspaceAnalytics, Bn as ConnectionSyncPage, Bt as MemberPage, Ca as CreateApiToken, Cr as DesktopToken, Dn as PipelineDetectionsQuery, En as DetectionStatusEvent, Er as Signup, Et as MarkedReadStatus, Fn as Connection, Ft as UnreadCountEvent, Ha as ActivityExportOptions, Hr as Audit, Ht as UpdateMember, It as UnreadStatus, Jt as InvitePage, Kt as InviteCode, Lt as UpdateNotificationSettings, M as CreatePolicy, Mn as WorkspaceDetectionsQuery, Nt as NotificationSettings, On as RedactDetection, Qn as PickerToken, Rn as ConnectionPage, Rt as ListMembers, Sa as ApiTokenWithJWT, Ta as UpdateApiToken, Tr as Login, Ua as ActivityFilterQuery, Un as CreateConnection, Ut as CreateInvite, Vn as ConnectionVerification, Wa as ActivityPage, Wn as ExportFiles, Wt as GenerateInviteCode, Xt as InviteSent, Yn as OAuthStartResponse, Yt as InvitePreview, Z as Policy, _n as ExportQuery, _r as SendChatMessage, ba as ApiTokenPage, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, co as IdentityProvider, d as CreateWebhook, do as SetPassword, dr as ChatMessage, en as ReplyInvite, f as TestWebhook, fn as ListFiles, fo as UpdateAccount, ft as CreatePipeline, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, hn as DateWindow, hr as ChatToken, io as AccountIdentities, jn as RedactionResultPage, jt as NotificationPage, ka as DetectionTimeSeries, lo as OidcStartResponse, m as Webhook, mn as UpdateFile, mr as ChatSessionPage, nt as PolicySummaryPage, o as UpdateWorkspace, on as DeletedFiles, p as UpdateWebhook, po as paths, pr as ChatSession, pt as Pipeline, qn as ImportFiles, rn as Health, ro as Account$1, s as Workspace, sn as File, sr as SyncStatus, t as CreateWorkspace, tr as StartFileServiceOAuth, ua as ArtifactSet, un as FilePage, uo as PublicAccount, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, vr as ConnectorCatalog, vt as PipelineSummaryPage, wn as DetectionPage, wr as DesktopTokenRequest, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiToken, zn as ConnectionSync, zt as Member } from "./index-BtQASJ4U.js";
1
+ import { $n as CreateConnection, $r as Audit, $t as CreateInvite, A as Provider, An as Detection, At as CursorPagination, Ba as CreateApiToken, Bn as RedactionResultPage, Da as ArtifactSet, Dn as ExportQuery, Do as SetPassword, Dr as CreateChatSession, Dt as PipelineSummaryPage, Ea as WorkspaceAssignmentsQuery, Eo as PublicAccount, Er as ChatToken, F as ProvidersQuery, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Gt as UnreadCountEvent, Ha as UpdateApiToken, I as UpdateProvider, Ia as ApiToken, In as PipelineDetectionsQuery, Ir as Login, Jn as ConnectionSync, Jt as ListMembers, Ka as DetectionTimeSeries, Kt as UnreadStatus, La as ApiTokenPage, Ln as RedactDetection, Lr as Signup, Lt as MarkedReadStatus, Mr as RecognizerCatalog, N as ProviderPage, Nn as DetectionPage, O as CreateProvider, Oo as UpdateAccount, Or as SendChatMessage, Pr as DesktopToken, Qt as UpdateMember, Sa as AssignmentPage, Sn as ListFiles, Sr as ChatMessage, St as Pipeline, Ta as UpdateAssignment, Tn as DateWindow, To as OidcStartResponse, Tr as ChatSessionPage, Tt as PipelineStatus, Ut as NotificationSettings, V as CreatePolicy, Vn as WorkspaceDetectionsQuery, Vt as NotificationPage, Wn as Connection, Xt as MemberPage, Yn as ConnectionSyncPage, Yt as Member, Zn as ConnectionVerification, _n as File, an as InvitePreview, ao as ActivityFilterQuery, bn as FilePage, bo as AccountIdentities, c as WorkspacePage, d as CreateWebhook, dt as PolicySummaryPage, en as GenerateInviteCode, er as ExportFiles, f as TestWebhook, fr as StartFileServiceOAuth, gn as DeletedFiles, h as WebhookCreated, in as InvitePage, io as ActivityExportOptions, ir as ImportFiles, jr as LabelCatalog, kn as CreateDetection, ko as paths, kr as ConnectorCatalog, kt as UpdatePipeline, ln as ListInvites, lr as PickerToken, m as Webhook, nn as InviteCode, no as WorkspaceAnalytics, nr as FileServiceProvider, o as UpdateWorkspace, on as InviteSent, oo as ActivityPage, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, pn as Health, qn as ConnectionPage, qt as UpdateNotificationSettings, s as Workspace, t as CreateWorkspace, un as ReplyInvite, ur as PickerTokenRequest, v as WebhookPage, vr as SyncStatus, wa as CreateAssignment, wn as UpdateFile, wo as IdentityProvider, wr as ChatSession, xa as Assignment, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, yo as Account$1, yt as UpdatePolicy, za as ApiTokenWithJWT, zn as RedactionResult } from "./index-QQU6h-4Y.js";
2
2
  import { t as ClientConfig } from "./config-BdAgnJlh.js";
3
3
  import { Client } from "openapi-fetch";
4
4
  //#region src/services/account.d.ts
@@ -215,6 +215,59 @@ declare class ApiTokens {
215
215
  revokeApiToken(tokenId: string): Promise<void>;
216
216
  }
217
217
  //#endregion
218
+ //#region src/services/assignments.d.ts
219
+ /**
220
+ * Service for file assignments: assigning a file to a reviewer and tracking its
221
+ * review status (`assigned` → `in_review` → `done`).
222
+ */
223
+ declare class Assignments {
224
+ #private;
225
+ constructor(api: ApiClient);
226
+ /**
227
+ * List the assignments on a file, most recent first.
228
+ * @param workspaceSlug - Workspace slug
229
+ * @param fileId - File ID
230
+ * @returns Promise that resolves with the file's assignments
231
+ * @throws {ApiError} if the request fails
232
+ */
233
+ listFileAssignments(workspaceSlug: string, fileId: string): Promise<Assignment[]>;
234
+ /**
235
+ * Assign a file to a reviewer.
236
+ * @param workspaceSlug - Workspace slug
237
+ * @param fileId - File ID
238
+ * @param assignment - Assignment creation request
239
+ * @returns Promise that resolves with the created assignment
240
+ * @throws {ApiError} if the request fails
241
+ */
242
+ createAssignment(workspaceSlug: string, fileId: string, assignment: CreateAssignment): Promise<Assignment>;
243
+ /**
244
+ * List a workspace's assignments, most recent first.
245
+ * @param workspaceSlug - Workspace slug
246
+ * @param query - Optional pagination and filters (assignee, status, fileId,
247
+ * limit, after)
248
+ * @returns Promise that resolves with a paginated list of assignments
249
+ * @throws {ApiError} if the request fails
250
+ */
251
+ listAssignments(workspaceSlug: string, query?: CursorPagination & WorkspaceAssignmentsQuery): Promise<AssignmentPage>;
252
+ /**
253
+ * Update an assignment (e.g. change its review status).
254
+ * @param workspaceSlug - Workspace slug
255
+ * @param assignmentId - Assignment ID
256
+ * @param updates - Assignment update request
257
+ * @returns Promise that resolves with the updated assignment
258
+ * @throws {ApiError} if the request fails
259
+ */
260
+ updateAssignment(workspaceSlug: string, assignmentId: string, updates: UpdateAssignment): Promise<Assignment>;
261
+ /**
262
+ * Delete an assignment.
263
+ * @param workspaceSlug - Workspace slug
264
+ * @param assignmentId - Assignment ID
265
+ * @returns Promise that resolves when the assignment is deleted
266
+ * @throws {ApiError} if the request fails
267
+ */
268
+ deleteAssignment(workspaceSlug: string, assignmentId: string): Promise<void>;
269
+ }
270
+ //#endregion
218
271
  //#region src/services/auth.d.ts
219
272
  /**
220
273
  * Service for handling authentication operations
@@ -454,7 +507,7 @@ declare class Connections {
454
507
  * @returns Promise that resolves with the provider authorize URL
455
508
  * @throws {ApiError} if the request fails
456
509
  */
457
- startFileServiceOAuth(workspaceSlug: string, provider: Provider, request: StartFileServiceOAuth): Promise<OAuthStartResponse>;
510
+ startFileServiceOAuth(workspaceSlug: string, provider: FileServiceProvider, request: StartFileServiceOAuth): Promise<OAuthStartResponse>;
458
511
  /**
459
512
  * Import picker-selected files from a file-service connection.
460
513
  *
@@ -492,10 +545,11 @@ declare class Connections {
492
545
  *
493
546
  * @param workspaceSlug - Workspace slug
494
547
  * @param connectionId - Connection ID
548
+ * @param request - Optional picker resource (defaults to the connection's)
495
549
  * @returns Promise that resolves with the short-lived picker token
496
550
  * @throws {ApiError} if the request fails
497
551
  */
498
- getPickerToken(workspaceSlug: string, connectionId: string): Promise<PickerToken>;
552
+ getPickerToken(workspaceSlug: string, connectionId: string, request?: PickerTokenRequest): Promise<PickerToken>;
499
553
  }
500
554
  //#endregion
501
555
  //#region src/services/detections.d.ts
@@ -972,6 +1026,66 @@ declare class Policies {
972
1026
  deletePolicy(workspaceSlug: string, policySlug: string): Promise<void>;
973
1027
  }
974
1028
  //#endregion
1029
+ //#region src/services/providers.d.ts
1030
+ /**
1031
+ * Service for a workspace's inference providers — the LLM / NER services the
1032
+ * platform calls. Only provider metadata is returned; encrypted credentials
1033
+ * are never exposed.
1034
+ */
1035
+ declare class Providers {
1036
+ #private;
1037
+ constructor(api: ApiClient);
1038
+ /**
1039
+ * List a workspace's inference providers
1040
+ * @param workspaceSlug - Workspace slug
1041
+ * @param query - Optional pagination and filters (provider, limit, after)
1042
+ * @returns Promise that resolves with a paginated list of providers
1043
+ * @throws {ApiError} if the request fails
1044
+ */
1045
+ listProviders(workspaceSlug: string, query?: CursorPagination & ProvidersQuery): Promise<ProviderPage>;
1046
+ /**
1047
+ * Create an inference provider in a workspace
1048
+ * @param workspaceSlug - Workspace slug
1049
+ * @param provider - Provider creation request
1050
+ * @returns Promise that resolves with the created provider
1051
+ * @throws {ApiError} if the request fails
1052
+ */
1053
+ createProvider(workspaceSlug: string, provider: CreateProvider): Promise<Provider>;
1054
+ /**
1055
+ * Get provider details by ID
1056
+ * @param workspaceSlug - Workspace slug
1057
+ * @param providerId - Provider ID
1058
+ * @returns Promise that resolves with the provider details
1059
+ * @throws {ApiError} if the request fails
1060
+ */
1061
+ getProvider(workspaceSlug: string, providerId: string): Promise<Provider>;
1062
+ /**
1063
+ * Update an inference provider
1064
+ * @param workspaceSlug - Workspace slug
1065
+ * @param providerId - Provider ID
1066
+ * @param updates - Provider update request
1067
+ * @returns Promise that resolves with the updated provider
1068
+ * @throws {ApiError} if the request fails
1069
+ */
1070
+ updateProvider(workspaceSlug: string, providerId: string, updates: UpdateProvider): Promise<Provider>;
1071
+ /**
1072
+ * Delete an inference provider
1073
+ * @param workspaceSlug - Workspace slug
1074
+ * @param providerId - Provider ID
1075
+ * @returns Promise that resolves when the provider is deleted
1076
+ * @throws {ApiError} if the request fails
1077
+ */
1078
+ deleteProvider(workspaceSlug: string, providerId: string): Promise<void>;
1079
+ /**
1080
+ * Verify an inference provider's configuration and credentials
1081
+ * @param workspaceSlug - Workspace slug
1082
+ * @param providerId - Provider ID
1083
+ * @returns Promise that resolves with the verification result
1084
+ * @throws {ApiError} if the request fails
1085
+ */
1086
+ verifyProvider(workspaceSlug: string, providerId: string): Promise<ConnectionVerification>;
1087
+ }
1088
+ //#endregion
975
1089
  //#region src/services/redactions.d.ts
976
1090
  /**
977
1091
  * Service for workspace redactions, independent of the detection they came
@@ -1305,6 +1419,10 @@ declare class Nvisy {
1305
1419
  * Service for managing API tokens.
1306
1420
  */
1307
1421
  get apiTokens(): ApiTokens;
1422
+ /**
1423
+ * Service for file assignments (assigning files to reviewers).
1424
+ */
1425
+ get assignments(): Assignments;
1308
1426
  /**
1309
1427
  * Service for managing connections.
1310
1428
  */
@@ -1321,6 +1439,10 @@ declare class Nvisy {
1321
1439
  * Service for managing policies.
1322
1440
  */
1323
1441
  get policies(): Policies;
1442
+ /**
1443
+ * Service for managing a workspace's inference providers.
1444
+ */
1445
+ get providers(): Providers;
1324
1446
  /**
1325
1447
  * Service for reading the deployment's label and recognizer catalogs.
1326
1448
  */
@@ -1359,5 +1481,5 @@ declare class Nvisy {
1359
1481
  get workspaces(): Workspaces;
1360
1482
  }
1361
1483
  //#endregion
1362
- 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 };
1363
- //# sourceMappingURL=client-BMQhkLaC.d.ts.map
1484
+ export { Activities as C, Analytics as S, Chat as _, Syncs as a, Assignments as b, Providers as c, Notifications as d, Members as f, Connections as g, Detections as h, Webhooks as i, Policies as l, Files as m, Nvisy as n, Status as o, Invites as p, Workspaces as r, Redactions as s, ApiClient as t, Pipelines as u, Catalog as v, Account as w, ApiTokens as x, Auth as y };
1485
+ //# sourceMappingURL=client-ClO429Iv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-ClO429Iv.d.ts","names":[],"sources":["../src/services/account.ts","../src/services/activities.ts","../src/services/analytics.ts","../src/services/api-tokens.ts","../src/services/assignments.ts","../src/services/auth.ts","../src/services/catalog.ts","../src/services/chat.ts","../src/services/connections.ts","../src/services/detections.ts","../src/services/files.ts","../src/services/invites.ts","../src/services/members.ts","../src/services/notifications.ts","../src/services/pipelines.ts","../src/services/policies.ts","../src/services/providers.ts","../src/services/redactions.ts","../src/services/status.ts","../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AAS,kBACP,QAAQ;;;;;;;EAcL,gBAAgB,wBAAwB;;;;;;;EAYxC,wBACL,wBACE,QAAQ;;;;;;;;EAiBL,2BACL,uBACA,UAAU,6BACR,QAAQ;;;;;;;;EAkBL,aAAa,uBAAuB,QAAQ,OAAO;;;;;;;EAqBnD,aAAa,wBAAwB;;;;;;;;;;KCvGhC,YAAY,OAAc;;;;;;;;;;;cA0BzB;;;;;;;;;;;;;;;;;;;;;;;EAkCA,YAAA,SAAQ;;;;;;;;;;;;;;;;;;;;;EA+GpB,aAAa,mBAAmB;;;;;;MAS5B;;;;;;;;;MAYA,OAAO;;;;MAOP,QAAQ;;;;MAOR,UAAU;;;;MAOV,WAAW;;;;MAOX,cAAc;;;;MAOd,aAAa;;;;MAOb,QAAQ;;;;MAOR,aAAa;;;;MAOb,eAAe;;;;MAOf,eAAe;;;;MAOf,SAAS;;;;MAOT,aAAa;;;;MAOb,YAAY;;;;MAOZ,aAAa;;;;MAOb,WAAW;;;;MAOX,WAAW;;;;MAOX,WAAW;;;;MAOX,iBAAiB;;;;MAOjB,cAAc;;;;MAOd,cAAc;;;;MAOd,SAAS;;;;MAOT,YAAY;;;;MAOZ,cAAc"}
@@ -1,2 +1,2 @@
1
- import { $ as PolicyDraft, $a as PolicyActivityParams, $i as TextData, $n as Provider, $r as Dimensions, $t as ListInvites, A as Color, Aa as ModelUsage, Ai as RuleMatch, An as RedactionResult, Ar as AudioAuditKind, At as NotificationEvent, B as ImageRedaction, Ba as WorkspaceAnalytics, Bi as TabularEntity, Bn as ConnectionSyncPage, Br as AudioRefinement, Bt as MemberPage, C as Language, Ca as CreateApiToken, Ci as PatternEvent, Cn as DetectionMetadata, Cr as DesktopToken, Ct as ConnectionSyncFailedParams, D as ScopeMetadata, Da as DetectionDayEntry, Di as RasterMode, Dn as PipelineDetectionsQuery, Dr as Attribution, Dt as MemberInvitedParams, E as Languages, Ea as DetectionAnalytics, Ei as RangeOfUint, En as DetectionStatusEvent, Er as Signup, Et as MarkedReadStatus, F as DateStyle, Fa as StorageKindEntry, Fi as TabularAdd, Fn as Connection, Fr as AudioHint, Ft as UnreadCountEvent, G as LabelScope, Ga as ActivityPayload, Gi as TabularPattern, Gn as FileServiceConfig, Gr as Calibration, Gt as Invite, H as LabelEntry, Ha as ActivityExportOptions, Hi as TabularLocation, Hn as ConnectionsQuery, Hr as Audit, Ht as UpdateMember, I as GdprArticle9Treatment, Ia as TokenCounts, Ii as TabularAuditEvent, In as ConnectionConfig, Ir as AudioLocation, It as UnreadStatus, J as ModalityRedactions, Ja as DetectionActivityParams, Ji as TextAdd, Jn as LlmConfig, Jr as CodecParams, Jt as InvitePage, K as LanguageTag, Ka as ActivityType, Ki as TabularRefinement, Kn as GcsCredentials, Kr as Category, Kt as InviteCode, L as GdprSensitiveScope, La as Usage, Li as TabularAuditKind, Ln as ConnectionId, Lr as AudioManual, Lt as UpdateNotificationSettings, M as CreatePolicy, Ma as ProviderType, Mi as SourceRef, Mn as WorkspaceDetectionsQuery, Mr as AudioData, Mt as NotificationPayload, N as CustomMatcher, Na as RecognizerId, Ni as SourceSpan, Nn as AuthenticatedProvider, Nr as AudioEdit, Nt as NotificationSettings, O as AudioRedaction, Oa as DetectionStatusEntry, Oi as Redaction, On as RedactDetection, Or as AudioAdd, Ot as MemberJoinedParams, P as DateGranularity, Pa as StorageAnalytics, Pi as Suppress, Pn as AzureCredentials, Pr as AudioEntity, Pt as RedactionCreatedParams, Q as PolicyDefinition, Qa as PipelineActivityParams, Qi as TextCoord, Qn as PickerToken, Qr as Deduplication, Qt as InviteStatus, R as HipaaAccountNumbers, Ra as UsageAnalytics, Ri as TabularAuditLog, Rn as ConnectionPage, Rr as AudioModel, Rt as ListMembers, S as CountryCode, Sa as ApiTokenWithJWT, Si as OperatorId, Sn as DetectionId, Sr as RegisteredRecognizer, St as ConnectionSyncCompletedParams, T as LanguageSpan, Ta as UpdateApiToken, Ti as Polygon, Tn as DetectionStatus, Tr as Login, Tt as DetectionFailedParams, U as LabelLocale, Ua as ActivityFilterQuery, Ui as TabularManual, Un as CreateConnection, Ur as AuditHash, Ut as CreateInvite, V as Label, Va as Activity, Vi as TabularHint, Vn as ConnectionVerification, Vr as AudioRetag, Vt as MemberSortField, W as LabelRef, Wa as ActivityPage, Wi as TabularModel, Wn as ExportFiles, Wr as BoundingBox, Wt as GenerateInviteCode, X as PciPanRender, Xa as InviteActivityParams, Xi as TextAuditKind, Xn as OAuthTokens, Xr as Contested, Xt as InviteSent, Y as PciDssPart, Ya as FileActivityParams, Yi as TextAuditEvent, Yn as OAuthStartResponse, Yr as Conflict, Yt as InvitePreview, Z as Policy, Za as MemberActivityParams, Zi as TextAuditLog, Zn as PickedFile, Zr as DecodedSpan, Zt as InviteSortField, _ as WebhookId, _a as TranscriptWord, _i as ImageRefinement, _n as ExportQuery, _r as SendChatMessage, _t as PipelineSummary, a as RetentionSettings, aa as TextModel, ai as ImageAdd, an as DeleteFiles, ao as AccountIdentity, ar as SyncSchedule, at as Sha2Algorithm, b as WebhookStatus, ba as ApiTokenPage, bi as ManualIntent, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, ca as TextRetag, ci as ImageAuditLog, cn as FileHash, co as IdentityProvider, cr as SyncTriggerType, ct as TerminalFallback, d as CreateWebhook, da as Layout, di as ImageEntity, dn as FormatToken, do as SetPassword, dr as ChatMessage, dt as Waveform, ea as TextEdit, ei as DocumentContext, en as ReplyInvite, eo as RedactionActivityParams, er as S3Credentials, et as PolicyRule, f as TestWebhook, fa as LayoutBlock, fi as ImageHint, fn as ListFiles, fo as UpdateAccount, fr as ChatRole, ft as CreatePipeline, g as WebhookEvent, ga as TranscriptSegment, gi as ImagePattern, gn as ExportFormat, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, ha as Tokens, hi as ImageModel, hn as DateWindow, hr as ChatToken, ht as PipelineFilter, i as RetentionOverride, ia as TextManual, ii as FreeformAttribution, in as HealthStatus, io as AccountIdentities, ir as SyncMode, it as Predicate, j as ConfidenceThreshold, ja as ModelUsageEntry, ji as Selection, jn as RedactionResultPage, jr as AudioAuditLog, jt as NotificationPage, k as ClampBucket, ka as DetectionTimeSeries, ki as Report, kn as RedactionId, kr as AudioAuditEvent, kt as Notification, l as WorkspaceRole, la as TimeSpan, li as ImageData, ln as FileKind, lo as OidcStartResponse, lr as UnauthenticatedProvider, lt as TextRedaction, m as Webhook, ma as Token, mi as ImageManual, mn as UpdateFile, mr as ChatSessionPage, mt as PipelineDefinition, n as RasterPolicy, na as TextHint, ni as EditSet, nn as ComponentHealth, no as WorkspaceActivityParams, nr as StorageConfig, nt as PolicySummaryPage, o as UpdateWorkspace, oa as TextPattern, oi as ImageAuditEvent, on as DeletedFiles, oo as AccountRef, or as SyncScheduleInput, ot as TabularRedaction, p as UpdateWebhook, pa as LayoutWord, pi as ImageLocation, pn as ModalityToken, pr as ChatSession, pt as Pipeline, q as LocalizedText, qa as ConnectionActivityParams, qi as TabularRetag, qn as ImportFiles, qr as CitedAttribution, qt as InviteExpiration, r as Retention, ra as TextLocation, ri as EntityCoRef, rn as Health, ro as Account, rr as SyncDeletionPolicy, rt as PolicyTemplate, s as Workspace, sa as TextRefinement, si as ImageAuditKind, sn as File, so as Handle, sr as SyncStatus, st as TemplateOrigin, t as CreateWorkspace, ta as TextEntity, ti as Dpi, tn as SortOrder, to as WebhookActivityParams, tr as StartFileServiceOAuth, tt as PolicySummary, u as WorkspaceSettings, ua as ArtifactSet, ui as ImageEdit, un as FilePage, uo as PublicAccount, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, va as Transcription, vi as ImageRetag, vn as ErrorResponse, vr as ConnectorCatalog, vt as PipelineSummaryPage, w as LanguageProvenance, wa as TokenExpiration, wi as Point, wn as DetectionPage, wr as DesktopTokenRequest, wt as DetectionCompletedParams, x as Confidence, xa as ApiTokenType, xi as ModelEvent, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiToken, yi as LeakProfile, yn as ValidationErrorDetail, yr as FileProviders, yt as PipelineTriggerType, z as HipaaDeidMethod, za as UsageReport, zi as TabularEdit, zn as ConnectionSync, zr as AudioPattern, zt as Member } from "../index-BtQASJ4U.js";
2
- export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, DesktopToken, DesktopTokenRequest, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberInvitedParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, 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, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, SyncDeletionPolicy, SyncMode, SyncSchedule, SyncScheduleInput, SyncStatus, SyncTriggerType, TabularAdd, TabularAuditEvent, TabularAuditKind, TabularAuditLog, TabularEdit, TabularEntity, TabularHint, TabularLocation, TabularManual, TabularModel, TabularPattern, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
1
+ import { $ as LabelRef, $a as Usage, $i as TabularLocation, $n as CreateConnection, $r as Audit, $t as CreateInvite, A as Provider, Aa as LayoutWord, Ai as LeakProfile, An as Detection, Ar as FileProviders, At as CursorPagination, B as ConfidenceThreshold, Ba as CreateApiToken, Bi as Report, Bn as RedactionResultPage, Br as AudioAuditEvent, Bt as NotificationEvent, C as Language, Ca as AssignmentStatus, Ci as ImageHint, Cn as ModalityToken, Co as Handle, Cr as ChatRole, Ct as PipelineDefinition, D as ScopeMetadata, Da as ArtifactSet, Di as ImagePattern, Dn as ExportQuery, Do as SetPassword, Dr as CreateChatSession, Dt as PipelineSummaryPage, E as Languages, Ea as WorkspaceAssignmentsQuery, Ei as ImageModel, En as ExportFormat, Eo as PublicAccount, Er as ChatToken, Et as PipelineSummary, F as ProvidersQuery, Fa as Transcription, Fi as Point, Fn as DetectionStatusEvent, Fr as DesktopTokenRequest, Ft as FileAssignedParams, G as GdprArticle9Treatment, Ga as DetectionStatusEntry, Gi as Suppress, Gn as ConnectionConfig, Gr as AudioEntity, Gt as UnreadCountEvent, H as CustomMatcher, Ha as UpdateApiToken, Hi as Selection, Hn as AuthenticatedProvider, Hr as AudioAuditLog, Ht as NotificationPayload, I as UpdateProvider, Ia as ApiToken, Ii as Polygon, In as PipelineDetectionsQuery, Ir as Login, It as FileUnassignedParams, J as HipaaDeidMethod, Ja as ModelUsageEntry, Ji as TabularAuditKind, Jn as ConnectionSync, Jr as AudioManual, Jt as ListMembers, K as GdprSensitiveScope, Ka as DetectionTimeSeries, Ki as TabularAdd, Kn as ConnectionId, Kr as AudioHint, Kt as UnreadStatus, L as AudioRedaction, La as ApiTokenPage, Li as RangeOfUint, Ln as RedactDetection, Lr as Signup, Lt as MarkedReadStatus, M as ProviderId, Ma as Tokens, Mi as ModelEvent, Mn as DetectionMetadata, Mr as RecognizerCatalog, Mt as ConnectionSyncFailedParams, N as ProviderPage, Na as TranscriptSegment, Ni as OperatorId, Nn as DetectionPage, Nr as RegisteredRecognizer, Nt as DetectionCompletedParams, O as CreateProvider, Oa as Layout, Oi as ImageRefinement, On as ErrorResponse, Oo as UpdateAccount, Or as SendChatMessage, Ot as PipelineTriggerType, P as ProviderType, Pa as TranscriptWord, Pi as PatternEvent, Pn as DetectionStatus, Pr as DesktopToken, Pt as DetectionFailedParams, Q as LabelLocale, Qa as TokenCounts, Qi as TabularHint, Qn as ConnectionsQuery, Qr as AudioRetag, Qt as UpdateMember, R as ClampBucket, Ra as ApiTokenType, Ri as RasterMode, Rn as RedactionId, Rr as Attribution, Rt as MemberJoinedParams, S as CountryCode, Sa as AssignmentPage, Si as ImageEntity, Sn as ListFiles, So as AccountRef, Sr as ChatMessage, St as Pipeline, T as LanguageSpan, Ta as UpdateAssignment, Ti as ImageManual, Tn as DateWindow, To as OidcStartResponse, Tr as ChatSessionPage, Tt as PipelineStatus, U as DateGranularity, Ua as DetectionAnalytics, Ui as SourceRef, Un as AzureCredentials, Ur as AudioData, Ut as NotificationSettings, V as CreatePolicy, Va as TokenExpiration, Vi as RuleMatch, Vn as WorkspaceDetectionsQuery, Vr as AudioAuditKind, Vt as NotificationPage, W as DateStyle, Wa as DetectionDayEntry, Wi as SourceSpan, Wn as Connection, Wr as AudioEdit, Wt as RedactionCreatedParams, X as Label, Xa as StorageAnalytics, Xi as TabularEdit, Xn as ConnectionType, Xr as AudioPattern, Xt as MemberPage, Y as ImageRedaction, Ya as RecognizerId, Yi as TabularAuditLog, Yn as ConnectionSyncPage, Yr as AudioModel, Yt as Member, Z as LabelEntry, Za as StorageKindEntry, Zi as TabularEntity, Zn as ConnectionVerification, Zr as AudioRefinement, Zt as MemberSortField, _ as WebhookId, _a as TextPattern, _i as ImageAuditEvent, _n as File, _o as WebhookActivityParams, _r as SyncScheduleInput, _t as TerminalFallback, a as RetentionSettings, aa as TextAdd, ai as CodecParams, an as InvitePreview, ao as ActivityFilterQuery, ar as LlmConfig, at as PciPanRender, b as WebhookStatus, ba as TimeSpan, bi as ImageData, bn as FilePage, bo as AccountIdentities, br as UnauthenticatedProvider, bt as Waveform, c as WorkspacePage, ca as TextAuditLog, ci as DecodedSpan, cn as InviteStatus, co as ActivityType, cr as PickedFile, ct as PolicyDraft, d as CreateWebhook, da as TextEdit, di as DocumentContext, dn as SortOrder, do as FileActivityParams, dr as S3Credentials, dt as PolicySummaryPage, ea as TabularManual, ei as AuditHash, en as GenerateInviteCode, eo as UsageAnalytics, er as ExportFiles, et as LabelScope, f as TestWebhook, fa as TextEntity, fi as Dpi, fn as ComponentHealth, fo as InviteActivityParams, fr as StartFileServiceOAuth, ft as PolicyTemplate, g as WebhookEvent, ga as TextModel, gi as ImageAdd, gn as DeletedFiles, go as RedactionActivityParams, gr as SyncSchedule, gt as TemplateOrigin, h as WebhookCreated, ha as TextManual, hi as FreeformAttribution, hn as DeleteFiles, ho as PolicyActivityParams, hr as SyncMode, ht as TabularRedaction, i as RetentionOverride, ia as TabularRetag, ii as CitedAttribution, in as InvitePage, io as ActivityExportOptions, ir as ImportFiles, it as PciDssPart, j as ProviderConfig, ja as Token, ji as ManualIntent, jn as DetectionId, jr as LabelCatalog, jt as ConnectionSyncCompletedParams, k as InferenceConfig, ka as LayoutBlock, ki as ImageRetag, kn as CreateDetection, kr as ConnectorCatalog, kt as UpdatePipeline, l as WorkspaceRole, la as TextCoord, li as Deduplication, ln as ListInvites, lo as ConnectionActivityParams, lr as PickerToken, lt as PolicyRule, m as Webhook, ma as TextLocation, mi as EntityCoRef, mn as HealthStatus, mo as PipelineActivityParams, mr as SyncDeletionPolicy, mt as Sha2Algorithm, n as RasterPolicy, na as TabularPattern, ni as Calibration, nn as InviteCode, no as WorkspaceAnalytics, nr as FileServiceProvider, nt as LocalizedText, o as UpdateWorkspace, oa as TextAuditEvent, oi as Conflict, on as InviteSent, oo as ActivityPage, or as OAuthStartResponse, ot as Policy, p as UpdateWebhook, pa as TextHint, pi as EditSet, pn as Health, po as MemberActivityParams, pr as StorageConfig, pt as Predicate, q as HipaaAccountNumbers, qa as ModelUsage, qi as TabularAuditEvent, qn as ConnectionPage, qr as AudioLocation, qt as UpdateNotificationSettings, r as Retention, ra as TabularRefinement, ri as Category, rn as InviteExpiration, ro as Activity, rr as GcsCredentials, rt as ModalityRedactions, s as Workspace, sa as TextAuditKind, si as Contested, sn as InviteSortField, so as ActivityPayload, sr as OAuthTokens, st as PolicyDefinition, t as CreateWorkspace, ta as TabularModel, ti as BoundingBox, tn as Invite, to as UsageReport, tr as FileServiceConfig, tt as LanguageTag, u as WorkspaceSettings, ua as TextData, ui as Dimensions, un as ReplyInvite, uo as DetectionActivityParams, ur as PickerTokenRequest, ut as PolicySummary, v as WebhookPage, va as TextRefinement, vi as ImageAuditKind, vn as FileHash, vo as WorkspaceActivityParams, vr as SyncStatus, vt as TextRedaction, w as LanguageProvenance, wa as CreateAssignment, wi as ImageLocation, wn as UpdateFile, wo as IdentityProvider, wr as ChatSession, wt as PipelineFilter, x as Confidence, xa as Assignment, xi as ImageEdit, xn as FormatToken, xo as AccountIdentity, xr as UpdateConnection, xt as CreatePipeline, y as WebhookResult, ya as TextRetag, yi as ImageAuditLog, yn as FileKind, yo as Account, yr as SyncTriggerType, yt as UpdatePolicy, z as Color, za as ApiTokenWithJWT, zi as Redaction, zn as RedactionResult, zr as AudioAdd, zt as Notification } from "../index-QQU6h-4Y.js";
2
+ export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Assignment, AssignmentPage, AssignmentStatus, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionType, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateAssignment, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateProvider, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, DesktopToken, DesktopTokenRequest, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileAssignedParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FileServiceProvider, FileUnassignedParams, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, InferenceConfig, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, PickerTokenRequest, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, ProviderConfig, ProviderId, ProviderPage, ProviderType, ProvidersQuery, PublicAccount, RangeOfUint, RasterMode, RasterPolicy, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, SyncDeletionPolicy, SyncMode, SyncSchedule, SyncScheduleInput, SyncStatus, SyncTriggerType, TabularAdd, TabularAuditEvent, TabularAuditKind, TabularAuditLog, TabularEdit, TabularEntity, TabularHint, TabularLocation, TabularManual, TabularModel, TabularPattern, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateAssignment, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateProvider, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceAssignmentsQuery, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
@@ -1,4 +1,4 @@
1
- import { n as NvisyError, t as NvisyApiError } from "./errors-BOLD8iC1.js";
1
+ import { n as NvisyError, t as NvisyApiError } from "./errors-D2J3LbE-.js";
2
2
 
3
3
  //#region src/config.ts
4
4
  /**
@@ -7,7 +7,7 @@ import { n as NvisyError, t as NvisyApiError } from "./errors-BOLD8iC1.js";
7
7
  * Injected from `package.json` at build time, so it always matches the
8
8
  * published version. Used in the default user agent string.
9
9
  */
10
- const VERSION = "0.48.0";
10
+ const VERSION = "0.50.0";
11
11
  /**
12
12
  * Default configuration values used when options are not explicitly provided.
13
13
  */
@@ -44,4 +44,4 @@ const errorMiddleware = {
44
44
 
45
45
  //#endregion
46
46
  export { DEFAULTS as n, VERSION as r, errorMiddleware as t };
47
- //# sourceMappingURL=error-DZ3l15-g.js.map
47
+ //# sourceMappingURL=error-DRb1GHg6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-DZ3l15-g.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * Authenticate one of two ways: pass an `apiToken` (sent as a bearer token on\n * every request), or use a browser session — sign in with the standalone\n * `login` / `signup`, then set `credentials: \"include\"` so the session cookies\n * are sent. All other fields are optional and use sensible defaults.\n *\n * @example\n * ```typescript\n * // API token\n * const client = new Client({ apiToken: \"your-api-token\" });\n *\n * // Browser session (after `login()` set the cookies)\n * const client = new Client({ credentials: \"include\" });\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication, sent as `Authorization: Bearer <token>`.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or the api-tokens endpoint.\n\t * Omit it to authenticate with a browser session instead (see `credentials`).\n\t */\n\tapiToken?: string;\n\n\t/**\n\t * Credentials mode for every request, forwarded to `fetch`.\n\t *\n\t * Set to `\"include\"` to send the session cookies established by the\n\t * standalone `login` / `signup` (needed for cross-origin browser sessions).\n\t * Defaults to the platform's `fetch` default when omitted.\n\t */\n\tcredentials?: RequestCredentials;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAoFb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;AC5GA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
1
+ {"version":3,"file":"error-DRb1GHg6.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * Authenticate one of two ways: pass an `apiToken` (sent as a bearer token on\n * every request), or use a browser session — sign in with the standalone\n * `login` / `signup`, then set `credentials: \"include\"` so the session cookies\n * are sent. All other fields are optional and use sensible defaults.\n *\n * @example\n * ```typescript\n * // API token\n * const client = new Client({ apiToken: \"your-api-token\" });\n *\n * // Browser session (after `login()` set the cookies)\n * const client = new Client({ credentials: \"include\" });\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication, sent as `Authorization: Bearer <token>`.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or the api-tokens endpoint.\n\t * Omit it to authenticate with a browser session instead (see `credentials`).\n\t */\n\tapiToken?: string;\n\n\t/**\n\t * Credentials mode for every request, forwarded to `fetch`.\n\t *\n\t * Set to `\"include\"` to send the session cookies established by the\n\t * standalone `login` / `signup` (needed for cross-origin browser sessions).\n\t * Defaults to the platform's `fetch` default when omitted.\n\t */\n\tcredentials?: RequestCredentials;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAoFb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;AC5GA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
@@ -1,4 +1,4 @@
1
- import { vn as ErrorResponse } from "./index-BtQASJ4U.js";
1
+ import { On as ErrorResponse } from "./index-QQU6h-4Y.js";
2
2
  //#region src/errors.d.ts
3
3
  /**
4
4
  * Base error class for all Nvisy SDK errors.
@@ -65,16 +65,6 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
65
65
  * May be undefined if the error is not resource-specific.
66
66
  */
67
67
  readonly resource?: string;
68
- /**
69
- * A helpful suggestion for resolving the error.
70
- * May be undefined if no suggestion is available.
71
- */
72
- readonly suggestion?: string;
73
- /**
74
- * Field-specific validation errors.
75
- * Present when the error is due to invalid input data.
76
- */
77
- readonly validation?: ErrorResponse["validation"];
78
68
  /**
79
69
  * HTTP status code of the response (e.g., 400, 404, 500).
80
70
  */
@@ -124,4 +114,4 @@ declare class NvisyApiError extends NvisyError implements ErrorResponse {
124
114
  }
125
115
  //#endregion
126
116
  export { NvisyError as n, NvisyApiError as t };
127
- //# sourceMappingURL=errors-DILJOdod.d.ts.map
117
+ //# sourceMappingURL=errors-BoBDbzst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-BoBDbzst.d.ts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAgCa,mBAAmB;;;;WAIf;;;;;;EAOJ,YAAA;;;;;;;;;;;;;;;;;;;;;;;;cA4BA,sBAAsB,sBAAsB;;;;WAIxC;;;;WAKA;;;;;WAMA;;;;WAKA;;;;;;;EAQJ,YAAA,UAAU,eAAe;;;;;;;;;EAgBrC;;;;;;;;;EAYA;;;;;;;;;EAYA;;;;;;;;EAeA,UAAU"}
@@ -68,16 +68,6 @@ var NvisyApiError = class extends NvisyError {
68
68
  */
69
69
  resource;
70
70
  /**
71
- * A helpful suggestion for resolving the error.
72
- * May be undefined if no suggestion is available.
73
- */
74
- suggestion;
75
- /**
76
- * Field-specific validation errors.
77
- * Present when the error is due to invalid input data.
78
- */
79
- validation;
80
- /**
81
71
  * HTTP status code of the response (e.g., 400, 404, 500).
82
72
  */
83
73
  statusCode;
@@ -92,8 +82,6 @@ var NvisyApiError = class extends NvisyError {
92
82
  this.name = response.name;
93
83
  this.message = response.message;
94
84
  this.resource = response.resource;
95
- this.suggestion = response.suggestion;
96
- this.validation = response.validation;
97
85
  this.statusCode = statusCode;
98
86
  }
99
87
  /**
@@ -140,13 +128,11 @@ var NvisyApiError = class extends NvisyError {
140
128
  return {
141
129
  name: this.name,
142
130
  message: this.message,
143
- resource: this.resource,
144
- suggestion: this.suggestion,
145
- validation: this.validation
131
+ resource: this.resource
146
132
  };
147
133
  }
148
134
  };
149
135
 
150
136
  //#endregion
151
137
  export { NvisyError as n, NvisyApiError as t };
152
- //# sourceMappingURL=errors-BOLD8iC1.js.map
138
+ //# sourceMappingURL=errors-D2J3LbE-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-D2J3LbE-.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * @fileoverview Error types for the Nvisy SDK.\n *\n * This module defines the error hierarchy used throughout the SDK:\n * - {@link NvisyError} - Base error class for all SDK errors\n * - {@link NvisyApiError} - Errors returned by the Nvisy API (4xx/5xx responses)\n *\n * @module errors\n */\n\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\n\n// Re-export ErrorResponse type for convenience\nexport type { ErrorResponse } from \"@/datatypes/index.js\";\n\n/**\n * Base error class for all Nvisy SDK errors.\n *\n * This class provides common functionality for all SDK errors.\n * It ensures proper error naming and stack traces.\n *\n * @example\n * ```typescript\n * try {\n * const client = new Client({ apiToken: \"\" });\n * } catch (error) {\n * if (error instanceof NvisyError) {\n * console.log(\"SDK error:\", error.message);\n * }\n * }\n * ```\n */\nexport class NvisyError extends Error {\n\t/**\n\t * The error class name.\n\t */\n\tpublic readonly name: string;\n\n\t/**\n\t * Creates a new NvisyError.\n\t *\n\t * @param message - The error message\n\t */\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = this.constructor.name;\n\t}\n}\n\n/**\n * Error thrown when the Nvisy API returns an error response.\n *\n * This error class wraps the API's {@link ErrorResponse} format and adds\n * the HTTP status code. It provides helper methods to categorize errors\n * and determine if they are retryable.\n *\n * @example\n * ```typescript\n * try {\n * await client.account.getAccount();\n * } catch (error) {\n * if (error instanceof NvisyApiError) {\n * console.log(`API Error: ${error.message}`);\n * console.log(`Status: ${error.statusCode}`);\n * if (error.isRetryable()) {\n * // Implement retry logic\n * }\n * }\n * }\n * ```\n */\nexport class NvisyApiError extends NvisyError implements ErrorResponse {\n\t/**\n\t * The error type identifier (e.g., \"ValidationError\", \"NotFoundError\").\n\t */\n\tpublic readonly name: string;\n\n\t/**\n\t * Human-readable error message safe for display to end users.\n\t */\n\tpublic readonly message: string;\n\n\t/**\n\t * The resource type that the error relates to (e.g., \"account\", \"project\").\n\t * May be undefined if the error is not resource-specific.\n\t */\n\tpublic readonly resource?: string;\n\n\t/**\n\t * HTTP status code of the response (e.g., 400, 404, 500).\n\t */\n\tpublic readonly statusCode: number;\n\n\t/**\n\t * Creates a new NvisyApiError from an API error response.\n\t *\n\t * @param response - The error response from the API\n\t * @param statusCode - The HTTP status code of the response\n\t */\n\tconstructor(response: ErrorResponse, statusCode: number) {\n\t\tsuper(response.message);\n\t\tthis.name = response.name;\n\t\tthis.message = response.message;\n\t\tthis.resource = response.resource;\n\t\tthis.statusCode = statusCode;\n\t}\n\n\t/**\n\t * Checks if this is a client error (4xx status code).\n\t *\n\t * Client errors indicate problems with the request itself, such as\n\t * invalid input, missing authentication, or accessing non-existent resources.\n\t *\n\t * @returns True if the status code is in the 4xx range\n\t */\n\tisClientError(): boolean {\n\t\treturn this.statusCode >= 400 && this.statusCode < 500;\n\t}\n\n\t/**\n\t * Checks if this is a server error (5xx status code).\n\t *\n\t * Server errors indicate problems on the API side. These are typically\n\t * transient and may succeed if retried.\n\t *\n\t * @returns True if the status code is in the 5xx range\n\t */\n\tisServerError(): boolean {\n\t\treturn this.statusCode >= 500;\n\t}\n\n\t/**\n\t * Determines if this error is safe to retry.\n\t *\n\t * An error is considered retryable if it's a server error (5xx),\n\t * a request timeout (408), or rate limiting (429).\n\t *\n\t * @returns True if the request may succeed on retry\n\t */\n\tisRetryable(): boolean {\n\t\treturn (\n\t\t\tthis.statusCode >= 500 || // Server errors\n\t\t\tthis.statusCode === 408 || // Request timeout\n\t\t\tthis.statusCode === 429 // Rate limited\n\t\t);\n\t}\n\n\t/**\n\t * Converts the error to a plain {@link ErrorResponse} object.\n\t *\n\t * Useful for serialization or logging.\n\t *\n\t * @returns A plain object representation of the error\n\t */\n\ttoJSON(): ErrorResponse {\n\t\treturn {\n\t\t\tname: this.name,\n\t\t\tmessage: this.message,\n\t\t\tresource: this.resource,\n\t\t};\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAgCA,IAAa,aAAb,cAAgC,MAAM;;;;CAIrC,AAAgB;;;;;;CAOhB,YAAY,SAAiB;EAC5B,MAAM,OAAO;EACb,KAAK,OAAO,KAAK,YAAY;CAC9B;AACD;;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAa,gBAAb,cAAmC,WAAoC;;;;CAItE,AAAgB;;;;CAKhB,AAAgB;;;;;CAMhB,AAAgB;;;;CAKhB,AAAgB;;;;;;;CAQhB,YAAY,UAAyB,YAAoB;EACxD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO,SAAS;EACrB,KAAK,UAAU,SAAS;EACxB,KAAK,WAAW,SAAS;EACzB,KAAK,aAAa;CACnB;;;;;;;;;CAUA,gBAAyB;EACxB,OAAO,KAAK,cAAc,OAAO,KAAK,aAAa;CACpD;;;;;;;;;CAUA,gBAAyB;EACxB,OAAO,KAAK,cAAc;CAC3B;;;;;;;;;CAUA,cAAuB;EACtB,OACC,KAAK,cAAc,OACnB,KAAK,eAAe,OACpB,KAAK,eAAe;CAEtB;;;;;;;;CASA,SAAwB;EACvB,OAAO;GACN,MAAM,KAAK;GACX,SAAS,KAAK;GACd,UAAU,KAAK;EAChB;CACD;AACD"}