@nvisy/sdk 0.42.0 → 0.44.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 +45 -0
- package/CONTRIBUTING.md +1 -1
- package/LICENSE.txt +1 -1
- package/dist/{client-xTk64SwL.d.ts → client-B-AXyhN8.d.ts} +27 -2
- package/dist/client-B-AXyhN8.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-WMvrsPwY.js → error-CTCtJIAC.js} +2 -2
- package/dist/{error-WMvrsPwY.js.map → error-CTCtJIAC.js.map} +1 -1
- package/dist/{errors-DIGSyhl4.d.ts → errors-D2SP900g.d.ts} +2 -2
- package/dist/{errors-DIGSyhl4.d.ts.map → errors-D2SP900g.d.ts.map} +1 -1
- package/dist/{index-B42oglvJ.d.ts → index-Cv75Uuts.d.ts} +351 -24
- package/dist/index-Cv75Uuts.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-BUHecjRT.js → services-DOXHe3iC.js} +38 -1
- package/dist/services-DOXHe3iC.js.map +1 -0
- package/dist/standalone/index.d.ts +1 -1
- package/dist/standalone/index.js +1 -1
- package/dist/webhooks/index.d.ts +2 -2
- package/package.json +5 -4
- package/dist/client-xTk64SwL.d.ts.map +0 -1
- package/dist/index-B42oglvJ.d.ts.map +0 -1
- package/dist/services-BUHecjRT.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,49 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.44.0] - 2026-09-07
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `connections.startFileServiceOAuth(workspaceSlug, provider, request)` begins
|
|
16
|
+
the OAuth flow to connect a cloud file-service provider (Google Drive,
|
|
17
|
+
Dropbox, OneDrive, Box) and returns the provider `authorizeUrl` to send the
|
|
18
|
+
user to (`OAuthStartResponse`); the request is a `StartFileServiceOAuth`
|
|
19
|
+
- `catalog.listConnectors()` returns which connector families and providers the
|
|
20
|
+
deployment can create (`ConnectorCatalog`) — a file-service provider is
|
|
21
|
+
offered only when its OAuth app is configured on the server, while
|
|
22
|
+
object-store and inference connections are always available
|
|
23
|
+
- File-service connection datatypes (`Provider`, `FileServiceConfig`,
|
|
24
|
+
`OAuthTokens`, `StartFileServiceOAuth`, `OAuthStartResponse`) and connector
|
|
25
|
+
catalog datatypes (`ConnectorCatalog`, `FileProviders`)
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Regenerated the API schema against the updated platform handlers. A
|
|
30
|
+
`file_service` value was added to `ProviderType` for the new cloud
|
|
31
|
+
file-service connections
|
|
32
|
+
- **Breaking:** the `WorkspaceRole` values `member` and `guest` were renamed to
|
|
33
|
+
`editor` and `reviewer`. The type flows through member data, role updates,
|
|
34
|
+
invites, invite codes, and role filters; callers matching on the old string
|
|
35
|
+
values must update them
|
|
36
|
+
- **Breaking:** the minimum supported Node.js version is now 24 (was 20)
|
|
37
|
+
|
|
38
|
+
## [0.43.0] - 2026-09-04
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Text-location coordinate datatypes (`TextCoord`, `DecodedSpan`, `SourceSpan`)
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- Regenerated the API schema against the updated platform handlers
|
|
47
|
+
- **Breaking:** `TextLocation` now carries its position in a `coord` field — a
|
|
48
|
+
tagged `TextCoord` union that is either a `decoded` byte range (`DecodedSpan`,
|
|
49
|
+
with the optional raw `source` it decodes from) or a `source`-only reference
|
|
50
|
+
(`SourceSpan`, for content with no decoded range, such as a reviewer selecting
|
|
51
|
+
rendered text). The former top-level `range` and `source` fields moved into
|
|
52
|
+
the `decoded` variant; `page` stays alongside `coord`
|
|
53
|
+
|
|
11
54
|
## [0.42.0] - 2026-09-03
|
|
12
55
|
|
|
13
56
|
### Changed
|
|
@@ -858,6 +901,8 @@ redaction an independent resource. This release renames the SDK to match.
|
|
|
858
901
|
- Configuration validation with detailed error messages
|
|
859
902
|
|
|
860
903
|
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...HEAD
|
|
904
|
+
[0.44.0]: https://github.com/nvisycom/sdk-ts/compare/v0.43.0...v0.44.0
|
|
905
|
+
[0.43.0]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...v0.43.0
|
|
861
906
|
[0.42.0]: https://github.com/nvisycom/sdk-ts/compare/v0.41.0...v0.42.0
|
|
862
907
|
[0.41.0]: https://github.com/nvisycom/sdk-ts/compare/v0.40.0...v0.41.0
|
|
863
908
|
[0.40.0]: https://github.com/nvisycom/sdk-ts/compare/v0.39.0...v0.40.0
|
package/CONTRIBUTING.md
CHANGED
package/LICENSE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as SyncConnection, $t as ReplyInvite, An as RedactionResultPage, At as NotificationPage, Bn as ConnectionVerification, Cn as DetectionPage, Dn as RedactDetection, En as PipelineDetectionsQuery, Fa as WorkspaceAnalytics, Ft as UnreadStatus, Gt as InviteCode, Hn as CreateConnection, Ht as CreateInvite, It as UpdateNotificationSettings, Jt as InvitePreview, Kn as OAuthStartResponse, La as ActivityExportOptions, Ln as ConnectionPage, Lr as Audit, Lt as ListMembers, M as CreatePolicy, Mt as NotificationSettings, Pn as Connection, Pt as UnreadCountEvent, Qa as Account$1, Qt as ListInvites, Ra as ActivityFilterQuery, Rn as ConnectionSync, Rt as Member, Tn as DetectionStatusEvent, Tt as MarkedReadStatus, Ut as GenerateInviteCode, Vt as UpdateMember, X as Policy, Yn as Provider, Yt as InviteSent, Zn as StartFileServiceOAuth, _a as ApiTokenWithJWT, _r as RecognizerCatalog, _t as PipelineSummaryPage, aa as ArtifactSet, an as DeletedFiles, ba as UpdateApiToken, bn as Detection, br as Login, bt as CursorPagination, c as WorkspacePage, d as CreateWebhook, dn as ListFiles, dr as ChatToken, dt as CreatePipeline, f as TestWebhook, fr as CreateChatSession, ft as Pipeline, gn as ExportQuery, gr as LabelCatalog, h as WebhookCreated, ha as ApiTokenPage, ht as PipelineStatus, io as paths, ir as SyncStatus, jn as WorkspaceDetectionsQuery, kn as RedactionResult, ln as FilePage, lr as ChatSession, lt as UpdatePolicy, m as Webhook, ma as ApiToken, mn as DateWindow, mr as ConnectorCatalog, nn as Health, no as PublicAccount, o as UpdateWorkspace, on as File, or as UpdateConnection, p as UpdateWebhook, pn as UpdateFile, pr as SendChatMessage, qt as InvitePage, ro as UpdateAccount, s as Workspace, sr as ChatMessage, t as CreateWorkspace, tt as PolicySummaryPage, ur as ChatSessionPage, v as WebhookPage, va as CreateApiToken, wa as DetectionTimeSeries, xr as Signup, y as WebhookResult, yn as CreateDetection, yr as AuthToken, yt as UpdatePipeline, za as ActivityPage, zn as ConnectionSyncPage, zt as MemberPage } from "./index-Cv75Uuts.js";
|
|
2
2
|
import { t as ClientConfig } from "./config-BhUEqFOg.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
@@ -194,6 +194,17 @@ declare class Catalog {
|
|
|
194
194
|
* @returns Promise that resolves with the recognizer catalog.
|
|
195
195
|
*/
|
|
196
196
|
listRecognizers(): Promise<RecognizerCatalog>;
|
|
197
|
+
/**
|
|
198
|
+
* List which connector families and providers this deployment can create.
|
|
199
|
+
*
|
|
200
|
+
* An OAuth file-service provider is offered only when its app is configured
|
|
201
|
+
* on the server; object-store and inference connections carry their own
|
|
202
|
+
* credentials and are always available. Use it to render the connect UI
|
|
203
|
+
* without probing.
|
|
204
|
+
*
|
|
205
|
+
* @returns Promise that resolves with the connector catalog.
|
|
206
|
+
*/
|
|
207
|
+
listConnectors(): Promise<ConnectorCatalog>;
|
|
197
208
|
}
|
|
198
209
|
//#endregion
|
|
199
210
|
//#region src/services/chat.d.ts
|
|
@@ -324,6 +335,20 @@ declare class Connections {
|
|
|
324
335
|
* @throws {ApiError} if the request fails
|
|
325
336
|
*/
|
|
326
337
|
verifyConnection(workspaceSlug: string, connectionId: string): Promise<ConnectionVerification>;
|
|
338
|
+
/**
|
|
339
|
+
* Start the OAuth flow to connect a file-service provider.
|
|
340
|
+
*
|
|
341
|
+
* Returns an `authorizeUrl` to send the user to; on their consent the
|
|
342
|
+
* provider redirects back and the connection is created. Navigate the
|
|
343
|
+
* browser to the URL (a full-page redirect, not a fetch) to continue.
|
|
344
|
+
*
|
|
345
|
+
* @param workspaceSlug - Workspace slug
|
|
346
|
+
* @param provider - The file-service provider to connect
|
|
347
|
+
* @param request - Display name for the connection and optional sync root
|
|
348
|
+
* @returns Promise that resolves with the provider authorize URL
|
|
349
|
+
* @throws {ApiError} if the request fails
|
|
350
|
+
*/
|
|
351
|
+
startFileServiceOAuth(workspaceSlug: string, provider: Provider, request: StartFileServiceOAuth): Promise<OAuthStartResponse>;
|
|
327
352
|
}
|
|
328
353
|
//#endregion
|
|
329
354
|
//#region src/services/detections.d.ts
|
|
@@ -1177,4 +1202,4 @@ declare class Nvisy {
|
|
|
1177
1202
|
}
|
|
1178
1203
|
//#endregion
|
|
1179
1204
|
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 };
|
|
1180
|
-
//# sourceMappingURL=client-
|
|
1205
|
+
//# sourceMappingURL=client-B-AXyhN8.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-B-AXyhN8.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,eAAe,kBAAkB;;;;;;;cC7E3B;;EAGA,YAAA,KAAK;;;;;;;EAUX,aAAa,aAAa,QAAQ,QAAQ;;;;;;;EAa1C,cAAc,aAAa,SAAS,QAAQ;;;;;;EAY5C,iBAAiB;;;;;;;;cCjCX;;EAGA,YAAA,KAAK;;;;;EAQX,cAAc,QAAQ;;;;;EAStB,mBAAmB,QAAQ;;;;;;;;;;;EAe3B,kBAAkB,QAAQ;;;;;;;cC9BpB;;EAGA,YAAA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L,cAAc,uBAAuB,oBAAoB;;;;;;;;;EAiBzD,YACL,uBACA,mBACA,UAAU,cACR,QAAQ;;;;;;;cCrHC;;EAGA,YAAA,KAAK;;;;;;;EAUX,eAAe,QAAQ,mBAAmB,QAAQ;;;;;;;EAalD,aAAa,wBAAwB,QAAQ;;;;;;;EAa7C,gBAAgB,WAAW,kBAAkB,QAAQ;;;;;;;;EAcrD,gBACL,uBACA,SAAS,kBACP,QAAQ;;;;;;;EAcL,gBAAgB,wBAAwB;;;;;;;EAYxC,wBACL,wBACE,QAAQ;;;;;;;;EAiBL,2BACL,uBACA,UAAU,6BACR,QAAQ;;;;;;;;EAkBL,aAAa,uBAAuB,QAAQ,OAAO;;;;;;;EAqBnD,aAAa,wBAAwB;;;;;;;;;;KCzGhC,YAAY,OAAc;;;;;;;;;;;cAsBzB;;;;;;;;;;;;;;;;;EA4BA,YAAA,QAAQ;;;;;;;;;;;;;;;;;;;;;EAyFpB,aAAa,mBAAmB;;;;;;MAS5B;;;;;;;;;MAYA,OAAO;;;;MAOP,QAAQ;;;;MAOR,UAAU;;;;MAOV,WAAW;;;;MAOX,cAAc;;;;MAOd,aAAa;;;;MAOb,QAAQ;;;;MAOR,aAAa;;;;MAOb,eAAe;;;;MAOf,SAAS;;;;MAOT,aAAa;;;;MAOb,YAAY;;;;MAOZ,WAAW;;;;MAOX,WAAW;;;;MAOX,WAAW;;;;MAOX,iBAAiB;;;;MAOjB,cAAc;;;;MAOd,cAAc;;;;MAOd,SAAS;;;;MAOT,YAAY;;;;MAOZ,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PolicyRule, $i as
|
|
2
|
-
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, AnthropicCredentials, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthToken, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionVerification, ConnectionsQuery, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, DateGranularity, DateStyle, DateWindow, Deduplication, DeleteFiles, DeletedFiles, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, 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, 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, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
|
|
1
|
+
import { $ as PolicyRule, $a as AccountRef, $i as TextManual, $n as SyncConnection, $r as FreeformAttribution, $t as ReplyInvite, A as Color, Aa as StorageKindEntry, Ai as TabularAdd, An as RedactionResultPage, Ar as AudioHint, At as NotificationPage, B as Label, Ba as ActivityPayload, Bi as TabularPattern, Bn as ConnectionVerification, Br as Calibration, Bt as MemberSortField, C as Language, Ca as DetectionStatusEntry, Ci as Redaction, Cn as DetectionPage, Cr as AudioAdd, Ct as DetectionCompletedParams, D as ScopeMetadata, Da as ProviderType, Di as SourceRef, Dn as RedactDetection, Dr as AudioData, Dt as MemberJoinedParams, E as Languages, Ea as ModelUsageEntry, Ei as Selection, En as PipelineDetectionsQuery, Er as AudioAuditLog, Et as MemberInvitedParams, F as GdprArticle9Treatment, Fa as WorkspaceAnalytics, Fi as TabularEntity, Fn as ConnectionConfig, Fr as AudioRefinement, Ft as UnreadStatus, G as LanguageTag, Ga as InviteActivityParams, Gi as TextAuditKind, Gn as LlmConfig, Gr as Contested, Gt as InviteCode, H as LabelLocale, Ha as ConnectionActivityParams, Hi as TabularRetag, Hn as CreateConnection, Hr as CitedAttribution, Ht as CreateInvite, I as GdprSensitiveScope, Ia as Activity, Ii as TabularHint, In as ConnectionId, Ir as AudioRetag, It as UpdateNotificationSettings, J as PciDssPart, Ja as PolicyActivityParams, Ji as TextData, Jn as OpenAiCredentials, Jr as Dimensions, Jt as InvitePreview, K as LocalizedText, Ka as MemberActivityParams, Ki as TextAuditLog, Kn as OAuthStartResponse, Kr as DecodedSpan, Kt as InviteExpiration, L as HipaaAccountNumbers, La as ActivityExportOptions, Li as TabularLocation, Ln as ConnectionPage, Lr as Audit, Lt as ListMembers, M as CreatePolicy, Ma as Usage, Mi as TabularAuditKind, Mn as AnthropicCredentials, Mr as AudioManual, Mt as NotificationSettings, N as DateGranularity, Na as UsageAnalytics, Ni as TabularAuditLog, Nn as AzureCredentials, Nr as AudioModel, Nt as RedactionCreatedParams, O as AudioRedaction, Oa as RecognizerId, Oi as SourceSpan, On as RedactionId, Or as AudioEdit, Ot as Notification, P as DateStyle, Pa as UsageReport, Pi as TabularEdit, Pn as Connection, Pr as AudioPattern, Pt as UnreadCountEvent, Q as PolicyDraft, Qa as Account, Qi as TextLocation, Qn as StorageConfig, Qr as EntityCoRef, Qt as ListInvites, R as HipaaDeidMethod, Ra as ActivityFilterQuery, Ri as TabularManual, Rn as ConnectionSync, Rr as AuditHash, Rt as Member, S as CountryCode, Sa as DetectionDayEntry, Si as RasterMode, Sn as DetectionMetadata, Sr as Attribution, St as ConnectionSyncFailedParams, T as LanguageSpan, Ta as ModelUsage, Ti as RuleMatch, Tn as DetectionStatusEvent, Tr as AudioAuditKind, Tt as MarkedReadStatus, U as LabelRef, Ua as DetectionActivityParams, Ui as TextAdd, Un as FileServiceConfig, Ur as CodecParams, Ut as GenerateInviteCode, V as LabelEntry, Va as ActivityType, Vi as TabularRefinement, Vn as ConnectionsQuery, Vr as Category, Vt as UpdateMember, W as LabelScope, Wa as FileActivityParams, Wi as TextAuditEvent, Wn as GcsCredentials, Wr as Conflict, Wt as Invite, X as Policy, Xa as WebhookActivityParams, Xi as TextEntity, Xn as S3Credentials, Xr as Dpi, Xt as InviteSortField, Y as PciPanRender, Ya as RedactionActivityParams, Yi as TextEdit, Yn as Provider, Yr as DocumentContext, Yt as InviteSent, Z as PolicyDefinition, Za as WorkspaceActivityParams, Zi as TextHint, Zn as StartFileServiceOAuth, Zr as EditSet, Zt as InviteStatus, _ as WebhookId, _a as ApiTokenWithJWT, _i as OperatorId, _n as ErrorResponse, _r as RecognizerCatalog, _t as PipelineSummaryPage, a as RetentionSettings, aa as ArtifactSet, ai as ImageEdit, an as DeletedFiles, ar as SyncTriggerType, at as TabularRedaction, b as WebhookStatus, ba as UpdateApiToken, bi as Polygon, bn as Detection, br as Login, bt as CursorPagination, c as WorkspacePage, ca as LayoutWord, ci as ImageLocation, cn as FileKind, cr as ChatRole, ct as TextRedaction, d as CreateWebhook, da as TranscriptSegment, di as ImagePattern, dn as ListFiles, dr as ChatToken, dt as CreatePipeline, ea as TextModel, ei as ImageAdd, en as SortOrder, eo as Handle, er as SyncDeletionPolicy, et as PolicySummary, f as TestWebhook, fa as TranscriptWord, fi as ImageRefinement, fn as ModalityToken, fr as CreateChatSession, ft as Pipeline, g as WebhookEvent, ga as ApiTokenType, gi as ModelEvent, gn as ExportQuery, gr as LabelCatalog, gt as PipelineSummary, h as WebhookCreated, ha as ApiTokenPage, hi as ManualIntent, hn as ExportFormat, hr as FileProviders, ht as PipelineStatus, i as RetentionOverride, ia as TimeSpan, ii as ImageData, in as DeleteFiles, ir as SyncStatus, it as Sha2Algorithm, j as ConfidenceThreshold, ja as TokenCounts, ji as TabularAuditEvent, jn as WorkspaceDetectionsQuery, jr as AudioLocation, jt as NotificationPayload, k as ClampBucket, ka as StorageAnalytics, ki as Suppress, kn as RedactionResult, kr as AudioEntity, kt as NotificationEvent, l as WorkspaceRole, la as Token, li as ImageManual, ln as FilePage, lr as ChatSession, lt as UpdatePolicy, m as Webhook, ma as ApiToken, mi as LeakProfile, mn as DateWindow, mr as ConnectorCatalog, mt as PipelineFilter, n as RasterPolicy, na as TextRefinement, ni as ImageAuditKind, nn as Health, no as PublicAccount, nr as SyncSchedule, nt as PolicyTemplate, o as UpdateWorkspace, oa as Layout, oi as ImageEntity, on as File, or as UpdateConnection, ot as TemplateOrigin, p as UpdateWebhook, pa as Transcription, pi as ImageRetag, pn as UpdateFile, pr as SendChatMessage, pt as PipelineDefinition, q as ModalityRedactions, qa as PipelineActivityParams, qi as TextCoord, qn as OAuthTokens, qr as Deduplication, qt as InvitePage, r as Retention, ra as TextRetag, ri as ImageAuditLog, rn as HealthStatus, ro as UpdateAccount, rr as SyncScheduleInput, rt as Predicate, s as Workspace, sa as LayoutBlock, si as ImageHint, sn as FileHash, sr as ChatMessage, st as TerminalFallback, t as CreateWorkspace, ta as TextPattern, ti as ImageAuditEvent, tn as ComponentHealth, to as PasswordChange, tr as SyncMode, tt as PolicySummaryPage, u as WorkspaceSettings, ua as Tokens, ui as ImageModel, un as FormatToken, ur as ChatSessionPage, ut as Waveform, v as WebhookPage, va as CreateApiToken, vi as PatternEvent, vn as ValidationErrorDetail, vr as RegisteredRecognizer, vt as PipelineTriggerType, w as LanguageProvenance, wa as DetectionTimeSeries, wi as Report, wn as DetectionStatus, wr as AudioAuditEvent, wt as DetectionFailedParams, x as Confidence, xa as DetectionAnalytics, xi as RangeOfUint, xn as DetectionId, xr as Signup, xt as ConnectionSyncCompletedParams, y as WebhookResult, ya as TokenExpiration, yi as Point, yn as CreateDetection, yr as AuthToken, yt as UpdatePipeline, z as ImageRedaction, za as ActivityPage, zi as TabularModel, zn as ConnectionSyncPage, zr as BoundingBox, zt as MemberPage } from "../index-Cv75Uuts.js";
|
|
2
|
+
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, AnthropicCredentials, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, 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, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, 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, 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, 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, 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, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, 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, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, 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.44.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-CTCtJIAC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-
|
|
1
|
+
{"version":3,"file":"error-CTCtJIAC.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 { _n as ErrorResponse } from "./index-
|
|
1
|
+
import { _n as ErrorResponse } from "./index-Cv75Uuts.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-D2SP900g.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-D2SP900g.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"}
|