@nvisy/sdk 0.44.0 → 0.46.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 +65 -0
- package/dist/{client-B-AXyhN8.d.ts → client-0oq7sASN.d.ts} +134 -5
- package/dist/client-0oq7sASN.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-CTCtJIAC.js → error-BeVSNpDg.js} +2 -2
- package/dist/{error-CTCtJIAC.js.map → error-BeVSNpDg.js.map} +1 -1
- package/dist/{errors-D2SP900g.d.ts → errors-BLX8SuEm.d.ts} +2 -2
- package/dist/{errors-D2SP900g.d.ts.map → errors-BLX8SuEm.d.ts.map} +1 -1
- package/dist/{index-Cv75Uuts.d.ts → index-uEHkixjD.d.ts} +1556 -392
- package/dist/index-uEHkixjD.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-DOXHe3iC.js → services-BZFiiCXu.js} +181 -11
- package/dist/services-BZFiiCXu.js.map +1 -0
- package/dist/standalone/index.d.ts +31 -5
- package/dist/standalone/index.d.ts.map +1 -1
- package/dist/standalone/index.js +32 -2
- package/dist/standalone/index.js.map +1 -1
- package/dist/webhooks/index.d.ts +9 -9
- package/dist/webhooks/index.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/client-B-AXyhN8.d.ts.map +0 -1
- package/dist/index-Cv75Uuts.d.ts.map +0 -1
- package/dist/services-DOXHe3iC.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,69 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.46.0] - 2026-09-08
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Account sign-in management on the account service: `listIdentities()`
|
|
16
|
+
(`AccountIdentities` / `AccountIdentity`), `setPassword(request)`
|
|
17
|
+
(`SetPassword`), `removePassword()`, `linkIdentity(provider, query?)`,
|
|
18
|
+
`unlinkIdentity(provider)`, and `reauth(provider, query?)` — the OIDC step-up
|
|
19
|
+
that mints the proof required to set a first password or link a provider
|
|
20
|
+
- OpenID Connect sign-in: `auth.startOidcSignIn(provider, query?)` and the
|
|
21
|
+
standalone `startOidcSignIn(provider, query?, config?)` (usable without a
|
|
22
|
+
client), both returning the provider authorize URL (`OidcStartResponse`)
|
|
23
|
+
- `connections.getPickerToken(workspaceSlug, connectionId)` mints a short-lived
|
|
24
|
+
provider access token for a browser file picker (`PickerToken`)
|
|
25
|
+
- Identity datatypes (`AccountIdentities`, `AccountIdentity`, `IdentityProvider`,
|
|
26
|
+
`SetPassword`, `OidcStartResponse`), `PickerToken`, and `CustomMatcher` — a
|
|
27
|
+
caller-defined matcher now allowed on `PolicyDefinition` / `PolicyDraft`
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Regenerated the API schema against the updated platform handlers
|
|
32
|
+
|
|
33
|
+
### Removed
|
|
34
|
+
|
|
35
|
+
- **Breaking:** the `PasswordChange` datatype — password changes moved from
|
|
36
|
+
`UpdateAccount` to the dedicated `account.setPassword()` (`SetPassword`)
|
|
37
|
+
|
|
38
|
+
### Internal
|
|
39
|
+
|
|
40
|
+
- The coverage audit now scans `src/standalone` (was a stale `src/auth`), so the
|
|
41
|
+
standalone auth functions are covered by the operation gate
|
|
42
|
+
|
|
43
|
+
## [0.45.0] - 2026-09-07
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- `connections.importFiles(workspaceSlug, connectionId, request)` imports the
|
|
48
|
+
files a user selected in a file-service provider's picker (`ImportFiles` /
|
|
49
|
+
`PickedFile`); already-imported files are skipped. Returns the created
|
|
50
|
+
`ConnectionSync`
|
|
51
|
+
- `connections.exportFiles(workspaceSlug, connectionId, request)` exports
|
|
52
|
+
workspace files to a file-service connection, each written as a new provider
|
|
53
|
+
file (`ExportFiles`). Returns the created `ConnectionSync`
|
|
54
|
+
- LLM provider config datatypes `AuthenticatedProvider` (API-key providers:
|
|
55
|
+
OpenAI, Anthropic) and `UnauthenticatedProvider` (base-URL providers), and an
|
|
56
|
+
`ollama` variant on `LlmConfig`
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
|
|
60
|
+
- Regenerated the API schema against the updated platform handlers
|
|
61
|
+
- **Breaking:** `syncs.startSync(workspaceSlug, connectionId)` no longer takes a
|
|
62
|
+
request body — an object-store sync now runs the connection's configured
|
|
63
|
+
direction. File-service connections use `connections.importFiles` /
|
|
64
|
+
`connections.exportFiles` instead
|
|
65
|
+
|
|
66
|
+
### Removed
|
|
67
|
+
|
|
68
|
+
- **Breaking:** the `SyncConnection` datatype — the generic sync request was
|
|
69
|
+
split into the picker import and per-connection export flows above
|
|
70
|
+
- **Breaking:** the `AnthropicCredentials` and `OpenAiCredentials` datatypes —
|
|
71
|
+
the LLM connection config now composes `AuthenticatedProvider` and
|
|
72
|
+
`UnauthenticatedProvider`
|
|
73
|
+
|
|
11
74
|
## [0.44.0] - 2026-09-07
|
|
12
75
|
|
|
13
76
|
### Added
|
|
@@ -901,6 +964,8 @@ redaction an independent resource. This release renames the SDK to match.
|
|
|
901
964
|
- Configuration validation with detailed error messages
|
|
902
965
|
|
|
903
966
|
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...HEAD
|
|
967
|
+
[0.46.0]: https://github.com/nvisycom/sdk-ts/compare/v0.45.0...v0.46.0
|
|
968
|
+
[0.45.0]: https://github.com/nvisycom/sdk-ts/compare/v0.44.0...v0.45.0
|
|
904
969
|
[0.44.0]: https://github.com/nvisycom/sdk-ts/compare/v0.43.0...v0.44.0
|
|
905
970
|
[0.43.0]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...v0.43.0
|
|
906
971
|
[0.42.0]: https://github.com/nvisycom/sdk-ts/compare/v0.41.0...v0.42.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as Provider, $t as ListInvites, An as RedactionResult, Bn as ConnectionSyncPage, Bt as MemberPage, Cr as AuthToken, Dn as PipelineDetectionsQuery, En as DetectionStatusEvent, Et as MarkedReadStatus, Fn as Connection, Ft as UnreadCountEvent, Ha as ActivityFilterQuery, Ht as UpdateMember, It as UnreadStatus, Jt as InvitePage, Kt as InviteCode, Lt as UpdateNotificationSettings, M as CreatePolicy, Mn as WorkspaceDetectionsQuery, Nt as NotificationSettings, Oa as DetectionTimeSeries, On as RedactDetection, Qn as PickerToken, Rn as ConnectionPage, Rt as ListMembers, Sa as CreateApiToken, Tr as Signup, Ua as ActivityPage, Un as CreateConnection, Ut as CreateInvite, Va as ActivityExportOptions, Vn as ConnectionVerification, Vr as Audit, Wn as ExportFiles, Wt as GenerateInviteCode, Xt as InviteSent, Yn as OAuthStartResponse, Yt as InvitePreview, Z as Policy, _n as ExportQuery, _r as SendChatMessage, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, co as OidcStartResponse, d as CreateWebhook, do as UpdateAccount, dr as ChatMessage, en as ReplyInvite, f as TestWebhook, fn as ListFiles, fo as paths, ft as CreatePipeline, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, hn as DateWindow, hr as ChatToken, jn as RedactionResultPage, jt as NotificationPage, la as ArtifactSet, lo as PublicAccount, m as Webhook, mn as UpdateFile, mr as ChatSessionPage, no as Account$1, nt as PolicySummaryPage, o as UpdateWorkspace, on as DeletedFiles, p as UpdateWebhook, pr as ChatSession, pt as Pipeline, qn as ImportFiles, rn as Health, ro as AccountIdentities, s as Workspace, sn as File, so as IdentityProvider, sr as SyncStatus, t as CreateWorkspace, tr as StartFileServiceOAuth, un as FilePage, uo as SetPassword, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, va as ApiToken, vr as ConnectorCatalog, vt as PipelineSummaryPage, wa as UpdateApiToken, wn as DetectionPage, wr as Login, xa as ApiTokenWithJWT, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiTokenPage, za as WorkspaceAnalytics, zn as ConnectionSync, zt as Member } from "./index-uEHkixjD.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
|
|
@@ -49,6 +49,74 @@ declare class Account {
|
|
|
49
49
|
* @throws {ApiError} if the request fails
|
|
50
50
|
*/
|
|
51
51
|
deleteAvatar(username: string): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* List the account's sign-in methods: its password and linked providers.
|
|
54
|
+
* @returns Promise that resolves with the account's identities
|
|
55
|
+
* @throws {ApiError} if the request fails
|
|
56
|
+
*/
|
|
57
|
+
listIdentities(): Promise<AccountIdentities>;
|
|
58
|
+
/**
|
|
59
|
+
* Set or change the account's password.
|
|
60
|
+
*
|
|
61
|
+
* Changing an existing password requires the current one; setting a first
|
|
62
|
+
* password on a provider-only account requires a step-up `reauthProof` (see
|
|
63
|
+
* {@link reauth}) instead.
|
|
64
|
+
*
|
|
65
|
+
* @param request - The password change (current/new password or reauth proof)
|
|
66
|
+
* @returns Promise that resolves when the password is set
|
|
67
|
+
* @throws {ApiError} if the request fails
|
|
68
|
+
*/
|
|
69
|
+
setPassword(request: SetPassword): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Remove the account's password, leaving only its linked providers.
|
|
72
|
+
*
|
|
73
|
+
* Refused if the password is the account's only sign-in method.
|
|
74
|
+
*
|
|
75
|
+
* @returns Promise that resolves when the password is removed
|
|
76
|
+
* @throws {ApiError} if the request fails
|
|
77
|
+
*/
|
|
78
|
+
removePassword(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Begin linking an OIDC provider to the account.
|
|
81
|
+
*
|
|
82
|
+
* Requires a step-up `reauthProof` (from {@link reauth}). Returns the
|
|
83
|
+
* provider authorize URL to send the user to; on consent the callback
|
|
84
|
+
* attaches the verified identity to the account.
|
|
85
|
+
*
|
|
86
|
+
* @param provider - The identity provider to link
|
|
87
|
+
* @param query - The reauth proof and optional post-flow redirect URI
|
|
88
|
+
* @returns Promise that resolves with the provider authorize URL
|
|
89
|
+
* @throws {ApiError} if the request fails
|
|
90
|
+
*/
|
|
91
|
+
linkIdentity(provider: IdentityProvider, query?: {
|
|
92
|
+
reauthProof?: string;
|
|
93
|
+
redirectUri?: string;
|
|
94
|
+
}): Promise<OidcStartResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Unlink an OIDC provider from the account.
|
|
97
|
+
*
|
|
98
|
+
* Refused if the provider is the account's only sign-in method.
|
|
99
|
+
*
|
|
100
|
+
* @param provider - The identity provider to unlink
|
|
101
|
+
* @returns Promise that resolves when the provider is unlinked
|
|
102
|
+
* @throws {ApiError} if the request fails
|
|
103
|
+
*/
|
|
104
|
+
unlinkIdentity(provider: IdentityProvider): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Begin a step-up re-authentication with an already-linked provider.
|
|
107
|
+
*
|
|
108
|
+
* Returns the provider authorize URL to send the user to; on consent the
|
|
109
|
+
* callback mints a short-lived, single-use proof required to add a credential
|
|
110
|
+
* ({@link setPassword} for a first password, or {@link linkIdentity}).
|
|
111
|
+
*
|
|
112
|
+
* @param provider - The linked identity provider to re-authenticate with
|
|
113
|
+
* @param query - Optional post-flow redirect URI
|
|
114
|
+
* @returns Promise that resolves with the provider authorize URL
|
|
115
|
+
* @throws {ApiError} if the request fails
|
|
116
|
+
*/
|
|
117
|
+
reauth(provider: IdentityProvider, query?: {
|
|
118
|
+
redirectUri?: string;
|
|
119
|
+
}): Promise<OidcStartResponse>;
|
|
52
120
|
}
|
|
53
121
|
//#endregion
|
|
54
122
|
//#region src/services/activities.d.ts
|
|
@@ -174,6 +242,21 @@ declare class Auth {
|
|
|
174
242
|
* @throws {ApiError} if the request fails
|
|
175
243
|
*/
|
|
176
244
|
logoutAccount(): Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* Begin an OpenID Connect sign-in with a provider.
|
|
247
|
+
*
|
|
248
|
+
* Returns the provider authorize URL to redirect the user to; on consent the
|
|
249
|
+
* provider redirects to the callback, which signs the user in. Also available
|
|
250
|
+
* as the standalone `startOidcSignIn` for use without a client.
|
|
251
|
+
*
|
|
252
|
+
* @param provider - The identity provider to sign in with
|
|
253
|
+
* @param query - Optional frontend URL to return to once done
|
|
254
|
+
* @returns Promise that resolves with the provider authorize URL
|
|
255
|
+
* @throws {ApiError} if the request fails
|
|
256
|
+
*/
|
|
257
|
+
startOidcSignIn(provider: IdentityProvider, query?: {
|
|
258
|
+
redirectUri?: string;
|
|
259
|
+
}): Promise<OidcStartResponse>;
|
|
177
260
|
}
|
|
178
261
|
//#endregion
|
|
179
262
|
//#region src/services/catalog.d.ts
|
|
@@ -349,6 +432,47 @@ declare class Connections {
|
|
|
349
432
|
* @throws {ApiError} if the request fails
|
|
350
433
|
*/
|
|
351
434
|
startFileServiceOAuth(workspaceSlug: string, provider: Provider, request: StartFileServiceOAuth): Promise<OAuthStartResponse>;
|
|
435
|
+
/**
|
|
436
|
+
* Import picker-selected files from a file-service connection.
|
|
437
|
+
*
|
|
438
|
+
* Takes the files the user chose in the provider's picker (id + name each);
|
|
439
|
+
* already-imported files are skipped. Returns the created sync — poll it for
|
|
440
|
+
* completion.
|
|
441
|
+
*
|
|
442
|
+
* @param workspaceSlug - Workspace slug
|
|
443
|
+
* @param connectionId - Connection ID
|
|
444
|
+
* @param request - The picker-selected files to import
|
|
445
|
+
* @returns Promise that resolves with the created connection sync
|
|
446
|
+
* @throws {ApiError} if the request fails
|
|
447
|
+
*/
|
|
448
|
+
importFiles(workspaceSlug: string, connectionId: string, request: ImportFiles): Promise<ConnectionSync>;
|
|
449
|
+
/**
|
|
450
|
+
* Export workspace files to a file-service connection.
|
|
451
|
+
*
|
|
452
|
+
* Each file's redacted output is written to the connection as a new provider
|
|
453
|
+
* file, never overwriting the source. Returns the created sync — poll it for
|
|
454
|
+
* completion.
|
|
455
|
+
*
|
|
456
|
+
* @param workspaceSlug - Workspace slug
|
|
457
|
+
* @param connectionId - Connection ID
|
|
458
|
+
* @param request - The workspace file ids to export
|
|
459
|
+
* @returns Promise that resolves with the created connection sync
|
|
460
|
+
* @throws {ApiError} if the request fails
|
|
461
|
+
*/
|
|
462
|
+
exportFiles(workspaceSlug: string, connectionId: string, request: ExportFiles): Promise<ConnectionSync>;
|
|
463
|
+
/**
|
|
464
|
+
* Mint a short-lived provider access token for a browser file picker.
|
|
465
|
+
*
|
|
466
|
+
* For file-service connections with a token-based picker only. The token is
|
|
467
|
+
* minted from the connection's stored credentials and is short-lived; the
|
|
468
|
+
* refresh token is never returned.
|
|
469
|
+
*
|
|
470
|
+
* @param workspaceSlug - Workspace slug
|
|
471
|
+
* @param connectionId - Connection ID
|
|
472
|
+
* @returns Promise that resolves with the short-lived picker token
|
|
473
|
+
* @throws {ApiError} if the request fails
|
|
474
|
+
*/
|
|
475
|
+
getPickerToken(workspaceSlug: string, connectionId: string): Promise<PickerToken>;
|
|
352
476
|
}
|
|
353
477
|
//#endregion
|
|
354
478
|
//#region src/services/detections.d.ts
|
|
@@ -876,14 +1000,19 @@ declare class Syncs {
|
|
|
876
1000
|
status?: SyncStatus;
|
|
877
1001
|
}): Promise<ConnectionSyncPage>;
|
|
878
1002
|
/**
|
|
879
|
-
* Start a sync for
|
|
1003
|
+
* Start a sync for an object-store connection.
|
|
1004
|
+
*
|
|
1005
|
+
* Runs the connection's configured direction — imports every new object, or
|
|
1006
|
+
* exports every redacted output not yet exported. File-service connections
|
|
1007
|
+
* use {@link Connections.importFiles} and {@link Connections.exportFiles}
|
|
1008
|
+
* instead. Returns the created sync — poll it for completion.
|
|
1009
|
+
*
|
|
880
1010
|
* @param workspaceSlug - Workspace slug
|
|
881
1011
|
* @param connectionId - Connection ID
|
|
882
|
-
* @param sync - Sync request
|
|
883
1012
|
* @returns Promise that resolves with the started connection sync
|
|
884
1013
|
* @throws {ApiError} if the request fails
|
|
885
1014
|
*/
|
|
886
|
-
startSync(workspaceSlug: string, connectionId: string
|
|
1015
|
+
startSync(workspaceSlug: string, connectionId: string): Promise<ConnectionSync>;
|
|
887
1016
|
/**
|
|
888
1017
|
* List syncs for a connection
|
|
889
1018
|
* @param workspaceSlug - Workspace slug
|
|
@@ -1202,4 +1331,4 @@ declare class Nvisy {
|
|
|
1202
1331
|
}
|
|
1203
1332
|
//#endregion
|
|
1204
1333
|
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 };
|
|
1205
|
-
//# sourceMappingURL=client-
|
|
1334
|
+
//# sourceMappingURL=client-0oq7sASN.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-0oq7sASN.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":";;;;;;;cAca;;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;;;;;;EAWhC,kBAAkB,QAAQ;;;;;;;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AuB,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
|
|
2
|
-
export type { Account, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType,
|
|
1
|
+
import { $ as PolicyDraft, $a as RedactionActivityParams, $i as TextEdit, $n as Provider, $r as DocumentContext, $t as ListInvites, A as Color, Aa as ModelUsageEntry, Ai as Selection, An as RedactionResult, Ar as AudioAuditLog, At as NotificationEvent, B as ImageRedaction, Ba as Activity, Bi as TabularHint, Bn as ConnectionSyncPage, Br as AudioRetag, Bt as MemberPage, C as Language, Ca as TokenExpiration, Ci as Point, Cn as DetectionMetadata, Cr as AuthToken, Ct as ConnectionSyncFailedParams, D as ScopeMetadata, Da as DetectionStatusEntry, Di as Redaction, Dn as PipelineDetectionsQuery, Dr as AudioAdd, Dt as MemberInvitedParams, E as Languages, Ea as DetectionDayEntry, Ei as RasterMode, En as DetectionStatusEvent, Er as Attribution, Et as MarkedReadStatus, F as DateStyle, Fa as TokenCounts, Fi as TabularAuditEvent, Fn as Connection, Fr as AudioLocation, Ft as UnreadCountEvent, G as LabelScope, Ga as ActivityType, Gi as TabularRefinement, Gn as FileServiceConfig, Gr as Category, Gt as Invite, H as LabelEntry, Ha as ActivityFilterQuery, Hi as TabularManual, Hn as ConnectionsQuery, Hr as AuditHash, Ht as UpdateMember, I as GdprArticle9Treatment, Ia as Usage, Ii as TabularAuditKind, In as ConnectionConfig, Ir as AudioManual, It as UnreadStatus, J as ModalityRedactions, Ja as FileActivityParams, Ji as TextAuditEvent, Jn as LlmConfig, Jr as Conflict, Jt as InvitePage, K as LanguageTag, Ka as ConnectionActivityParams, Ki as TabularRetag, Kn as GcsCredentials, Kr as CitedAttribution, Kt as InviteCode, L as GdprSensitiveScope, La as UsageAnalytics, Li as TabularAuditLog, Ln as ConnectionId, Lr as AudioModel, Lt as UpdateNotificationSettings, M as CreatePolicy, Ma as RecognizerId, Mi as SourceSpan, Mn as WorkspaceDetectionsQuery, Mr as AudioEdit, Mt as NotificationPayload, N as CustomMatcher, Na as StorageAnalytics, Ni as Suppress, Nn as AuthenticatedProvider, Nr as AudioEntity, Nt as NotificationSettings, O as AudioRedaction, Oa as DetectionTimeSeries, Oi as Report, On as RedactDetection, Or as AudioAuditEvent, Ot as MemberJoinedParams, P as DateGranularity, Pa as StorageKindEntry, Pi as TabularAdd, Pn as AzureCredentials, Pr as AudioHint, Pt as RedactionCreatedParams, Q as PolicyDefinition, Qa as PolicyActivityParams, Qi as TextData, Qn as PickerToken, Qr as Dimensions, Qt as InviteStatus, R as HipaaAccountNumbers, Ra as UsageReport, Ri as TabularEdit, Rn as ConnectionPage, Rr as AudioPattern, Rt as ListMembers, S as CountryCode, Sa as CreateApiToken, Si as PatternEvent, Sn as DetectionId, Sr as RegisteredRecognizer, St as ConnectionSyncCompletedParams, T as LanguageSpan, Ta as DetectionAnalytics, Ti as RangeOfUint, Tn as DetectionStatus, Tr as Signup, Tt as DetectionFailedParams, U as LabelLocale, Ua as ActivityPage, Ui as TabularModel, Un as CreateConnection, Ur as BoundingBox, Ut as CreateInvite, V as Label, Va as ActivityExportOptions, Vi as TabularLocation, Vn as ConnectionVerification, Vr as Audit, Vt as MemberSortField, W as LabelRef, Wa as ActivityPayload, Wi as TabularPattern, Wn as ExportFiles, Wr as Calibration, Wt as GenerateInviteCode, X as PciPanRender, Xa as MemberActivityParams, Xi as TextAuditLog, Xn as OAuthTokens, Xr as DecodedSpan, Xt as InviteSent, Y as PciDssPart, Ya as InviteActivityParams, Yi as TextAuditKind, Yn as OAuthStartResponse, Yr as Contested, Yt as InvitePreview, Z as Policy, Za as PipelineActivityParams, Zi as TextCoord, Zn as PickedFile, Zr as Deduplication, Zt as InviteSortField, _ as WebhookId, _a as Transcription, _i as ImageRetag, _n as ExportQuery, _r as SendChatMessage, _t as PipelineSummary, a as RetentionSettings, aa as TextPattern, ai as ImageAuditEvent, an as DeleteFiles, ao as AccountRef, ar as SyncSchedule, at as Sha2Algorithm, b as WebhookStatus, ba as ApiTokenType, bi as ModelEvent, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, ca as TimeSpan, ci as ImageData, cn as FileHash, co as OidcStartResponse, cr as SyncTriggerType, ct as TerminalFallback, d as CreateWebhook, da as LayoutBlock, di as ImageHint, dn as FormatToken, do as UpdateAccount, dr as ChatMessage, dt as Waveform, ea as TextEntity, ei as Dpi, en as ReplyInvite, eo as WebhookActivityParams, er as S3Credentials, et as PolicyRule, f as TestWebhook, fa as LayoutWord, fi as ImageLocation, fn as ListFiles, fr as ChatRole, ft as CreatePipeline, g as WebhookEvent, ga as TranscriptWord, gi as ImageRefinement, gn as ExportFormat, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, ha as TranscriptSegment, hi as ImagePattern, hn as DateWindow, hr as ChatToken, ht as PipelineFilter, i as RetentionOverride, ia as TextModel, ii as ImageAdd, in as HealthStatus, io as AccountIdentity, ir as SyncMode, it as Predicate, j as ConfidenceThreshold, ja as ProviderType, ji as SourceRef, jn as RedactionResultPage, jr as AudioData, jt as NotificationPage, k as ClampBucket, ka as ModelUsage, ki as RuleMatch, kn as RedactionId, kr as AudioAuditKind, kt as Notification, l as WorkspaceRole, la as ArtifactSet, li as ImageEdit, ln as FileKind, lo as PublicAccount, lr as UnauthenticatedProvider, lt as TextRedaction, m as Webhook, ma as Tokens, mi as ImageModel, mn as UpdateFile, mr as ChatSessionPage, mt as PipelineDefinition, n as RasterPolicy, na as TextLocation, ni as EntityCoRef, nn as ComponentHealth, no as Account, nr as StorageConfig, nt as PolicySummaryPage, o as UpdateWorkspace, oa as TextRefinement, oi as ImageAuditKind, on as DeletedFiles, oo as Handle, or as SyncScheduleInput, ot as TabularRedaction, p as UpdateWebhook, pa as Token, pi as ImageManual, pn as ModalityToken, pr as ChatSession, pt as Pipeline, q as LocalizedText, qa as DetectionActivityParams, qi as TextAdd, qn as ImportFiles, qr as CodecParams, qt as InviteExpiration, r as Retention, ra as TextManual, ri as FreeformAttribution, rn as Health, ro as AccountIdentities, rr as SyncDeletionPolicy, rt as PolicyTemplate, s as Workspace, sa as TextRetag, si as ImageAuditLog, sn as File, so as IdentityProvider, sr as SyncStatus, st as TemplateOrigin, t as CreateWorkspace, ta as TextHint, ti as EditSet, tn as SortOrder, to as WorkspaceActivityParams, tr as StartFileServiceOAuth, tt as PolicySummary, u as WorkspaceSettings, ua as Layout, ui as ImageEntity, un as FilePage, uo as SetPassword, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, va as ApiToken, vi as LeakProfile, vn as ErrorResponse, vr as ConnectorCatalog, vt as PipelineSummaryPage, w as LanguageProvenance, wa as UpdateApiToken, wi as Polygon, wn as DetectionPage, wr as Login, wt as DetectionCompletedParams, x as Confidence, xa as ApiTokenWithJWT, xi as OperatorId, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiTokenPage, yi as ManualIntent, yn as ValidationErrorDetail, yr as FileProviders, yt as PipelineTriggerType, z as HipaaDeidMethod, za as WorkspaceAnalytics, zi as TabularEntity, zn as ConnectionSync, zr as AudioRefinement, zt as Member } from "../index-uEHkixjD.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, AuthToken, 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, 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 };
|
|
@@ -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.46.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-BeVSNpDg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-
|
|
1
|
+
{"version":3,"file":"error-BeVSNpDg.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 { vn as ErrorResponse } from "./index-uEHkixjD.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-BLX8SuEm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-BLX8SuEm.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"}
|