@nvisy/sdk 0.32.0 → 0.34.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 +57 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{client-CfC5wM9f.d.ts → client-Dxa6VuCi.d.ts} +10 -8
- package/dist/client-Dxa6VuCi.d.ts.map +1 -0
- package/dist/{config-BwallLvT.d.ts → config-BhUEqFOg.d.ts} +5 -4
- package/dist/config-BhUEqFOg.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-C_RvXw4Z.js → error-DAOza_p3.js} +8 -12
- package/dist/error-DAOza_p3.js.map +1 -0
- package/dist/{errors-CrAVfGv9.d.ts → errors-B2mDlQfg.d.ts} +2 -2
- package/dist/{errors-CrAVfGv9.d.ts.map → errors-B2mDlQfg.d.ts.map} +1 -1
- package/dist/{index-CiQYVPsR.d.ts → index-BsijAKTe.d.ts} +1511 -895
- package/dist/index-BsijAKTe.d.ts.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-CA6ZPOfu.js → services-CjHW797N.js} +6 -4
- package/dist/services-CjHW797N.js.map +1 -0
- package/dist/webhooks/index.d.ts +2 -2
- package/package.json +4 -4
- package/dist/client-CfC5wM9f.d.ts.map +0 -1
- package/dist/config-BwallLvT.d.ts.map +0 -1
- package/dist/error-C_RvXw4Z.js.map +0 -1
- package/dist/index-CiQYVPsR.d.ts.map +0 -1
- package/dist/services-CA6ZPOfu.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,60 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.34.0] - 2026-08-18
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- The redesigned detection-result model reachable from `Audit`: the document
|
|
16
|
+
container (`DocumentContext`, `CodecParams`, `Report`), reviewer edits
|
|
17
|
+
(`EditSet`), the redaction decision (`Redaction`, `Selection`, `Suppress`,
|
|
18
|
+
`ManualIntent`), attribution rationales (`CitedAttribution`,
|
|
19
|
+
`FreeformAttribution`), reconciliation events (`Conflict`, `Contested`,
|
|
20
|
+
`Deduplication`, `Calibration`), and the per-modality event kinds for text,
|
|
21
|
+
image, audio, and tabular content (`*Model`, `*Pattern`, `*Manual`, `*Edit`,
|
|
22
|
+
`*Add`, `*Redact`, `*Refinement`, `*Retag`)
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Regenerated the API schema against the updated platform handlers
|
|
27
|
+
- The default user-agent version is now injected from `package.json` at build
|
|
28
|
+
time, so it always matches the published version (previously a hand-maintained
|
|
29
|
+
constant that had drifted)
|
|
30
|
+
- **Breaking:** the `Audit` datatype is now exported from the audit module
|
|
31
|
+
(unchanged import path via the package root and `@nvisy/sdk/datatypes`)
|
|
32
|
+
- **Breaking:** the activity feed's query datatypes are renamed —
|
|
33
|
+
`ActivityListQuery` → `ActivityFilterQuery` and `ActivityExportQuery` →
|
|
34
|
+
`ActivityExportOptions` — now composed with the date window and pagination by
|
|
35
|
+
`listActivities()` / `exportActivities()`
|
|
36
|
+
|
|
37
|
+
### Removed
|
|
38
|
+
|
|
39
|
+
- **Breaking:** detection-model datatypes the platform no longer exposes:
|
|
40
|
+
`EntityGroup`, `AuditContext`, `AttributionKind`, `Review`, the per-modality
|
|
41
|
+
`*EntityRecord` types (`TextEntityRecord`, `ImageEntityRecord`,
|
|
42
|
+
`AudioEntityRecord`, `TabularEntityRecord`), and `ScopeParams`
|
|
43
|
+
|
|
44
|
+
## [0.33.0] - 2026-08-18
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
- `ActivityListQuery` and `ActivityType` datatypes. `activities.listActivities()`
|
|
49
|
+
now accepts the feed's filters (`type`, `actor`, `from`, `to`) alongside
|
|
50
|
+
pagination (`limit`, `after`, `includeCount`); `type` is an `ActivityType[]`
|
|
51
|
+
and is also usable on `activities.exportActivities()`
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- Regenerated the API schema against the updated platform handlers
|
|
56
|
+
- **Breaking:** `activities.listActivities()` now takes an `ActivityListQuery`
|
|
57
|
+
(filters + pagination) rather than a plain cursor-pagination object
|
|
58
|
+
|
|
59
|
+
### Removed
|
|
60
|
+
|
|
61
|
+
- **Breaking:** the `SystemAnnouncementParams` and `SystemReportParams`
|
|
62
|
+
notification-payload datatypes; the platform no longer emits the
|
|
63
|
+
`system:announcement` / `system:report` notification variants
|
|
64
|
+
|
|
11
65
|
## [0.32.0] - 2026-08-18
|
|
12
66
|
|
|
13
67
|
### Added
|
|
@@ -666,7 +720,9 @@ and this project adheres to
|
|
|
666
720
|
- Network error handling for timeouts, DNS resolution, and connection issues
|
|
667
721
|
- Configuration validation with detailed error messages
|
|
668
722
|
|
|
669
|
-
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.
|
|
723
|
+
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.34.0...HEAD
|
|
724
|
+
[0.34.0]: https://github.com/nvisycom/sdk-ts/compare/v0.33.0...v0.34.0
|
|
725
|
+
[0.33.0]: https://github.com/nvisycom/sdk-ts/compare/v0.32.0...v0.33.0
|
|
670
726
|
[0.32.0]: https://github.com/nvisycom/sdk-ts/compare/v0.31.0...v0.32.0
|
|
671
727
|
[0.31.0]: https://github.com/nvisycom/sdk-ts/compare/v0.30.0...v0.31.0
|
|
672
728
|
[0.30.0]: https://github.com/nvisycom/sdk-ts/compare/v0.29.0...v0.30.0
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ClientConfig } from "../config-
|
|
2
|
-
import {
|
|
1
|
+
import { t as ClientConfig } from "../config-BhUEqFOg.js";
|
|
2
|
+
import { ar as Login, ir as AuthToken, or as Signup } from "../index-BsijAKTe.js";
|
|
3
3
|
//#region src/auth/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Configuration options for standalone authentication functions.
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ClientConfig } from "./config-
|
|
2
|
-
import { $t as
|
|
1
|
+
import { t as ClientConfig } from "./config-BhUEqFOg.js";
|
|
2
|
+
import { $n as CreateChatSession, $t as InviteCode, A as PipelineRunPage, An as ConnectionSync, B as CreatePolicy, Bn as SyncConnection, Cr as Audit, Ct as PipelineStatus, Dt as UpdatePipeline, En as Connection, F as RunStatusEvent, Gi as ApiToken, Gn as SyncStatus, Gt as ListMembers, Ht as UnreadCountEvent, It as NotificationPage, Ji as ApiTokenWithJWT, Jn as ChatMessage, Ki as ApiTokenPage, Kt as Member, M as PipelineRunsQuery, Ma as PublicAccount, Mn as ConnectionVerification, Na as UpdateAccount, O as CreatePipelineRun, Oa as Account$1, Ot as CursorPagination, Pa as paths, Pn as CreateConnection, Qn as ChatToken, Rt as NotificationSettings, Tt as PipelineSummaryPage, Ut as UnreadStatus, Wt as UpdateNotificationSettings, Xn as ChatSession, Xt as CreateInvite, Yi as CreateApiToken, Yt as UpdateMember, Zi as UpdateApiToken, Zn as ChatSessionPage, Zt as GenerateInviteCode, _t as UpdatePolicy, aa as RunTimeSeries, ar as Login, bt as Pipeline, c as WorkspacePage, d as CreateWebhook, er as SendChatMessage, f as TestWebhook, fa as WorkspaceAnalytics, fn as File, ga as ActivityPage, gn as ListFiles, h as WebhookCreated, ha as ActivityFilterQuery, ir as AuthToken, it as Policy, jn as ConnectionSyncPage, jt as MarkedReadStatus, k as PipelineRun, kn as ConnectionPage, lt as PolicySummaryPage, m as Webhook, ma as ActivityExportOptions, mn as FilePage, nn as InvitePreview, nr as RecognizerCatalog, o as UpdateWorkspace, on as ListInvites, or as Signup, p as UpdateWebhook, qn as UpdateConnection, qt as MemberPage, rn as InviteSent, s as Workspace, sn as ReplyInvite, t as CreateWorkspace, tn as InvitePage, tr as LabelCatalog, un as Health, v as WebhookPage, vn as UpdateFile, xn as ExportQuery, y as WebhookResult, yn as DateWindow, yt as CreatePipeline } from "./index-BsijAKTe.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
5
5
|
/**
|
|
@@ -61,19 +61,21 @@ declare class Activities {
|
|
|
61
61
|
/**
|
|
62
62
|
* List activities for a workspace
|
|
63
63
|
* @param workspaceSlug - Workspace slug
|
|
64
|
-
* @param query - Optional pagination (
|
|
64
|
+
* @param query - Optional filters and pagination (type, actor, from, to,
|
|
65
|
+
* limit, after, includeCount)
|
|
65
66
|
* @returns Promise that resolves with a paginated list of activities
|
|
66
67
|
* @throws {ApiError} if the request fails
|
|
67
68
|
*/
|
|
68
|
-
listActivities(workspaceSlug: string, query?: CursorPagination): Promise<ActivityPage>;
|
|
69
|
+
listActivities(workspaceSlug: string, query?: ActivityFilterQuery & DateWindow & CursorPagination): Promise<ActivityPage>;
|
|
69
70
|
/**
|
|
70
|
-
* Export the workspace's activity log
|
|
71
|
+
* Export the workspace's activity log as a file.
|
|
71
72
|
* @param workspaceSlug - Workspace slug
|
|
72
|
-
* @param query - Optional
|
|
73
|
+
* @param query - Optional filters (type, actor), date window (from, to), and
|
|
74
|
+
* output format (`csv` default, or `json`)
|
|
73
75
|
* @returns Promise that resolves with the file response
|
|
74
76
|
* @throws {ApiError} if the request fails
|
|
75
77
|
*/
|
|
76
|
-
exportActivities(workspaceSlug: string, query?:
|
|
78
|
+
exportActivities(workspaceSlug: string, query?: ActivityFilterQuery & DateWindow & ActivityExportOptions): Promise<Response>;
|
|
77
79
|
}
|
|
78
80
|
//#endregion
|
|
79
81
|
//#region src/services/analytics.d.ts
|
|
@@ -1117,4 +1119,4 @@ declare class Nvisy {
|
|
|
1117
1119
|
}
|
|
1118
1120
|
//#endregion
|
|
1119
1121
|
export { Auth as _, Syncs as a, Activities as b, Policies as c, Members as d, Invites as f, Catalog as g, Chat as h, Webhooks as i, Pipelines as l, Connections as m, Nvisy as n, Status as o, Files as p, Workspaces as r, Runs as s, ApiClient as t, Notifications as u, ApiTokens as v, Account as x, Analytics as y };
|
|
1120
|
-
//# sourceMappingURL=client-
|
|
1122
|
+
//# sourceMappingURL=client-Dxa6VuCi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-Dxa6VuCi.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/files.ts","../src/services/invites.ts","../src/services/members.ts","../src/services/notifications.ts","../src/services/pipelines.ts","../src/services/policies.ts","../src/services/runs.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,iBACL,uBACA,QAAQ,aACN,QAAQ;;;;;;;cC9BC;;EAGA,YAAA,KAAK;;;;;;;EAUX,cAAc,QAAQ,mBAAmB,QAAQ;;;;;;;EAajD,YAAY,kBAAkB,QAAQ;;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oB,QAAQ;;;;;;;;;EAkB9D,cACL,uBACA,mBACA,SAAS,gBACP,QAAQ;;;;;;;;EAkBL,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;;;;;;;;;;KC1GhC,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,QAAQ;;;;MAOR,SAAS;;;;MAOT,YAAY;;;;MAOZ,cAAc"}
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* Current SDK version.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Injected from `package.json` at build time, so it always matches the
|
|
14
|
+
* published version. Used in the default user agent string.
|
|
14
15
|
*/
|
|
15
|
-
declare const VERSION
|
|
16
|
+
declare const VERSION: string;
|
|
16
17
|
/**
|
|
17
18
|
* Configuration options for creating a Nvisy client.
|
|
18
19
|
*
|
|
@@ -85,8 +86,8 @@ declare const DEFAULTS: {
|
|
|
85
86
|
/**
|
|
86
87
|
* Default user agent string.
|
|
87
88
|
*/
|
|
88
|
-
readonly USER_AGENT:
|
|
89
|
+
readonly USER_AGENT: `@nvisy/sdk v.${string}`;
|
|
89
90
|
};
|
|
90
91
|
//#endregion
|
|
91
92
|
export { DEFAULTS as n, VERSION as r, ClientConfig as t };
|
|
92
|
-
//# sourceMappingURL=config-
|
|
93
|
+
//# sourceMappingURL=config-BhUEqFOg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-BhUEqFOg.d.ts","names":[],"sources":["../src/config.ts"],"mappings":";;;;;;;;;;;;;;;cAsBa;;;;;;;;;;;;;;;;;UAmBI;;;;;;EAMhB;;;;;;EAOA;;;;;;;;EASA,UAAU;;;;;;EAOV;;;;;;;;EASA;;;;;;;;;EAUA,eAAe,WAAW;;;;;cAMd;;;;WAAA;;;;WAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export type { Account, AccountRef, Activity,
|
|
1
|
+
import { $ as LanguageTag, $i as ModelUsageEntry, $n as CreateChatSession, $r as ImageRetag, $t as InviteCode, A as PipelineRunPage, Aa as Handle, Ai as TextAuditEvent, An as ConnectionSync, Ar as Conflict, At as ConnectionSyncFailedParams, B as CreatePolicy, Bi as TextPattern, Bn as SyncConnection, Br as ImageAuditEvent, Bt as PipelineRunCompletedParams, C as Language, Ca as PipelineActivityParams, Ci as TabularManual, Cn as ValidationErrorDetail, Cr as Audit, Ct as PipelineStatus, D as ScopeMetadata, Da as WorkspaceActivityParams, Di as TabularRefinement, Dn as ConnectionConfig, Dr as Category, Dt as UpdatePipeline, E as Languages, Ea as WebhookActivityParams, Ei as TabularRedact, En as Connection, Er as Calibration, Et as PipelineTriggerType, F as RunStatusEvent, Fi as TextEntity, Fn as GcsCredentials, Fr as Dpi, Ft as NotificationEvent, G as HipaaAccountNumbers, Gi as ApiToken, Gn as SyncStatus, Gr as ImageEntity, Gt as ListMembers, H as DateStyle, Hi as TextRefinement, Hn as SyncMode, Hr as ImageAuditLog, Ht as UnreadCountEvent, I as AudioRedaction, Ii as TextHint, In as LlmConfig, Ir as EditSet, It as NotificationPage, J as Label, Ji as ApiTokenWithJWT, Jn as ChatMessage, Jr as ImageManual, Jt as MemberSortField, K as HipaaDeidMethod, Ki as ApiTokenPage, Kn as SyncTriggerType, Kr as ImageHint, Kt as Member, L as ClampBucket, Li as TextLocation, Ln as OpenAiCredentials, Lr as EntityCoRef, Lt as NotificationPayload, M as PipelineRunsQuery, Ma as PublicAccount, Mi as TextAuditLog, Mn as ConnectionVerification, Mr as Deduplication, Mt as MemberInvitedParams, N as RunId, Na as UpdateAccount, Ni as TextData, Nn as ConnectionsQuery, Nr as Dimensions, Nt as MemberJoinedParams, O as CreatePipelineRun, Oa as Account, Oi as TabularRetag, On as ConnectionId, Or as CitedAttribution, Ot as CursorPagination, P as RunMetadata, Pi as TextEdit, Pn as CreateConnection, Pr as DocumentContext, Pt as Notification, Q as LabelScope, Qi as ModelUsage, Qn as ChatToken, Qr as ImageRefinement, Qt as Invite, R as Color, Ri as TextManual, Rn as S3Credentials, Rr as FreeformAttribution, Rt as NotificationSettings, S as CountryCode, Sa as MemberActivityParams, Si as TabularLocation, Sn as ErrorResponse, Sr as AudioRetag, St as PipelineFilter, T as LanguageSpan, Ta as PolicyActivityParams, Ti as TabularPattern, Tn as AzureCredentials, Tr as BoundingBox, Tt as PipelineSummaryPage, U as GdprArticle9Treatment, Ui as TextRetag, Un as SyncSchedule, Ur as ImageData, Ut as UnreadStatus, V as DateGranularity, Vi as TextRedact, Vn as SyncDeletionPolicy, Vr as ImageAuditKind, Vt as PipelineRunFailedParams, W as GdprSensitiveScope, Wi as TimeSpan, Wn as SyncScheduleInput, Wr as ImageEdit, Wt as UpdateNotificationSettings, X as LabelLocale, Xi as TokenExpiration, Xn as ChatSession, Xr as ImagePattern, Xt as CreateInvite, Y as LabelEntry, Yi as CreateApiToken, Yn as ChatRole, Yr as ImageModel, Yt as UpdateMember, Z as LabelRef, Zi as UpdateApiToken, Zn as ChatSessionPage, Zr as ImageRedact, Zt as GenerateInviteCode, _ as WebhookId, _a as ActivityPayload, _i as TabularAuditKind, _n as ModalityToken, _r as AudioManual, _t as UpdatePolicy, a as RetentionSettings, aa as RunTimeSeries, ai as Point, an as InviteStatus, ar as Login, at as PolicyDefinition, b as WebhookStatus, ba as FileActivityParams, bi as TabularEntity, bn as ExportFormat, br as AudioRedact, bt as Pipeline, c as WorkspacePage, ca as TokenCounts, ci as RasterMode, cn as SortOrder, cr as AudioAdd, ct as PolicySummary, d as CreateWebhook, da as UsageReport, di as RuleMatch, dn as HealthStatus, dr as AudioAuditLog, dt as Predicate, ea as ProviderType, ei as LeakProfile, en as InviteExpiration, er as SendChatMessage, et as LocalizedText, f as TestWebhook, fa as WorkspaceAnalytics, fi as Selection, fn as File, fr as AudioData, ft as Sha2Algorithm, g as WebhookEvent, ga as ActivityPage, gi as TabularAuditEvent, gn as ListFiles, gr as AudioLocation, gt as TextRedaction, h as WebhookCreated, ha as ActivityFilterQuery, hi as TabularAdd, hn as FormatToken, hr as AudioHint, ht as TerminalFallback, i as RetentionOverride, ia as RunStatusEntry, ii as PatternEvent, in as InviteSortField, ir as AuthToken, it as Policy, j as PipelineRunStatus, ja as PasswordChange, ji as TextAuditKind, jn as ConnectionSyncPage, jr as Contested, jt as MarkedReadStatus, k as PipelineRun, ka as AccountRef, ki as TextAdd, kn as ConnectionPage, kr as CodecParams, kt as ConnectionSyncCompletedParams, l as WorkspaceRole, la as Usage, li as Redaction, ln as ComponentHealth, lr as AudioAuditEvent, lt as PolicySummaryPage, m as Webhook, ma as ActivityExportOptions, mi as Suppress, mn as FilePage, mr as AudioEntity, mt as TemplateOrigin, n as OcrPolicy, na as RunAnalytics, ni as ModelEvent, nn as InvitePreview, nr as RecognizerCatalog, nt as PciDssPart, o as UpdateWorkspace, oa as StorageAnalytics, oi as Polygon, on as ListInvites, or as Signup, ot as PolicyDraft, p as UpdateWebhook, pa as Activity, pi as SourceRef, pn as FileKind, pr as AudioEdit, pt as TabularRedaction, q as ImageRedaction, qi as ApiTokenType, qn as UpdateConnection, qr as ImageLocation, qt as MemberPage, r as Retention, ra as RunDayEntry, ri as OperatorId, rn as InviteSent, rr as RegisteredRecognizer, rt as PciPanRender, s as Workspace, sa as StorageKindEntry, si as RangeOfUint, sn as ReplyInvite, sr as Attribution, st as PolicyRule, t as CreateWorkspace, ta as RecognizerId, ti as ManualIntent, tn as InvitePage, tr as LabelCatalog, tt as ModalityRedactions, u as WorkspaceSettings, ua as UsageAnalytics, ui as Report, un as Health, ur as AudioAuditKind, ut as PolicyTemplate, v as WebhookPage, va as ActivityType, vi as TabularAuditLog, vn as UpdateFile, vr as AudioModel, vt as Waveform, w as LanguageProvenance, wa as PipelineRunActivityParams, wi as TabularModel, wn as AnthropicCredentials, wr as AuditHash, wt as PipelineSummary, x as Confidence, xa as InviteActivityParams, xi as TabularHint, xn as ExportQuery, xr as AudioRefinement, xt as PipelineDefinition, y as WebhookResult, ya as ConnectionActivityParams, yi as TabularEdit, yn as DateWindow, yr as AudioPattern, yt as CreatePipeline, z as ConfidenceThreshold, zi as TextModel, zn as StorageConfig, zr as ImageAdd, zt as PipelineRunAnalyzedParams } from "../index-BsijAKTe.js";
|
|
2
|
+
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, AnthropicCredentials, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedact, 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, CreateInvite, CreatePipeline, CreatePipelineRun, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, DateGranularity, DateStyle, DateWindow, Deduplication, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFormat, ExportQuery, File, FileActivityParams, FileKind, FilePage, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedact, ImageRedaction, ImageRefinement, ImageRetag, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberInvitedParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OcrPolicy, OpenAiCredentials, OperatorId, PasswordChange, PatternEvent, PciDssPart, PciPanRender, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineFilter, PipelineRun, PipelineRunActivityParams, PipelineRunAnalyzedParams, PipelineRunCompletedParams, PipelineRunFailedParams, PipelineRunPage, PipelineRunStatus, PipelineRunsQuery, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, ProviderType, PublicAccount, RangeOfUint, RasterMode, RecognizerCatalog, RecognizerId, Redaction, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, RunAnalytics, RunDayEntry, RunId, RunMetadata, RunStatusEntry, RunStatusEvent, RunTimeSeries, 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, TabularRedact, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedact, TextRedaction, TextRefinement, TextRetag, TimeSpan, TokenCounts, TokenExpiration, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspacePage, WorkspaceRole, WorkspaceSettings };
|
|
@@ -2,19 +2,12 @@ import { n as NvisyError, t as NvisyApiError } from "./errors-BOLD8iC1.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/config.ts
|
|
4
4
|
/**
|
|
5
|
-
* @fileoverview Configuration types and constants for the Nvisy SDK.
|
|
6
|
-
*
|
|
7
|
-
* This module provides configuration interfaces, default values, and environment
|
|
8
|
-
* variable names used throughout the SDK.
|
|
9
|
-
*
|
|
10
|
-
* @module config
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
5
|
* Current SDK version.
|
|
14
6
|
*
|
|
15
|
-
*
|
|
7
|
+
* Injected from `package.json` at build time, so it always matches the
|
|
8
|
+
* published version. Used in the default user agent string.
|
|
16
9
|
*/
|
|
17
|
-
const VERSION = "0.
|
|
10
|
+
const VERSION = "0.34.0";
|
|
18
11
|
/**
|
|
19
12
|
* Default configuration values used when options are not explicitly provided.
|
|
20
13
|
*/
|
|
@@ -37,7 +30,10 @@ const DEFAULTS = {
|
|
|
37
30
|
*/
|
|
38
31
|
const errorMiddleware = {
|
|
39
32
|
async onResponse({ response }) {
|
|
40
|
-
if (!response.ok)
|
|
33
|
+
if (!response.ok) {
|
|
34
|
+
const error = await response.clone().json();
|
|
35
|
+
throw new NvisyApiError(error, response.status);
|
|
36
|
+
}
|
|
41
37
|
return response;
|
|
42
38
|
},
|
|
43
39
|
onError({ error }) {
|
|
@@ -48,4 +44,4 @@ const errorMiddleware = {
|
|
|
48
44
|
|
|
49
45
|
//#endregion
|
|
50
46
|
export { DEFAULTS as n, VERSION as r, errorMiddleware as t };
|
|
51
|
-
//# sourceMappingURL=error-
|
|
47
|
+
//# sourceMappingURL=error-DAOza_p3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-DAOza_p3.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * The `apiToken` field is required for authentication. All other fields are optional\n * and will use sensible defaults when omitted.\n *\n * @example\n * ```typescript\n * const config: ClientConfig = {\n * apiToken: \"your-api-token\",\n * baseUrl: \"https://api.nvisy.com\",\n * headers: { \"X-Custom-Header\": \"value\" },\n * };\n * const client = new Client(config);\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or via the auth endpoints.\n\t */\n\tapiToken: string;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAyEb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;ACjGA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sn as ErrorResponse } from "./index-BsijAKTe.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-B2mDlQfg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-B2mDlQfg.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"}
|