@nvisy/sdk 0.47.0 → 0.48.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 +14 -0
- package/dist/{client-pc1XUsBx.d.ts → client-BMQhkLaC.d.ts} +15 -2
- package/dist/client-BMQhkLaC.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{error-CPo0Jl05.js → error-DZ3l15-g.js} +2 -2
- package/dist/{error-CPo0Jl05.js.map → error-DZ3l15-g.js.map} +1 -1
- package/dist/{errors-Cht3LbX5.d.ts → errors-DILJOdod.d.ts} +2 -2
- package/dist/{errors-Cht3LbX5.d.ts.map → errors-DILJOdod.d.ts.map} +1 -1
- package/dist/{index-B-oR9rqQ.d.ts → index-BtQASJ4U.d.ts} +142 -3
- package/dist/{index-B-oR9rqQ.d.ts.map → index-BtQASJ4U.d.ts.map} +1 -1
- 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-FV0hA89s.js → services-CG0FEolQ.js} +17 -1
- package/dist/services-CG0FEolQ.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 +1 -1
- package/dist/client-pc1XUsBx.d.ts.map +0 -1
- package/dist/services-FV0hA89s.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.48.0] - 2026-09-08
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `auth.mintDesktopToken(request)` mints a long-lived native-app token from an
|
|
16
|
+
active browser session for a desktop app, delivered via a deep-link
|
|
17
|
+
`redirectUri` (`DesktopTokenRequest` / `DesktopToken`)
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Regenerated the API schema against the updated platform handlers
|
|
22
|
+
- **Breaking:** the `ApiTokenType` value `cli` was renamed to `app`
|
|
23
|
+
|
|
11
24
|
## [0.47.0] - 2026-09-08
|
|
12
25
|
|
|
13
26
|
### Added
|
|
@@ -987,6 +1000,7 @@ redaction an independent resource. This release renames the SDK to match.
|
|
|
987
1000
|
- Configuration validation with detailed error messages
|
|
988
1001
|
|
|
989
1002
|
[Unreleased]: https://github.com/nvisycom/sdk-ts/compare/v0.42.0...HEAD
|
|
1003
|
+
[0.48.0]: https://github.com/nvisycom/sdk-ts/compare/v0.47.0...v0.48.0
|
|
990
1004
|
[0.47.0]: https://github.com/nvisycom/sdk-ts/compare/v0.46.0...v0.47.0
|
|
991
1005
|
[0.46.0]: https://github.com/nvisycom/sdk-ts/compare/v0.45.0...v0.46.0
|
|
992
1006
|
[0.45.0]: https://github.com/nvisycom/sdk-ts/compare/v0.44.0...v0.45.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as Provider, $t as ListInvites, An as RedactionResult, Ba as
|
|
1
|
+
import { $n as Provider, $t as ListInvites, An as RedactionResult, Ba as WorkspaceAnalytics, Bn as ConnectionSyncPage, Bt as MemberPage, Ca as CreateApiToken, Cr as DesktopToken, Dn as PipelineDetectionsQuery, En as DetectionStatusEvent, Er as Signup, Et as MarkedReadStatus, Fn as Connection, Ft as UnreadCountEvent, Ha as ActivityExportOptions, Hr as Audit, Ht as UpdateMember, It as UnreadStatus, Jt as InvitePage, Kt as InviteCode, Lt as UpdateNotificationSettings, M as CreatePolicy, Mn as WorkspaceDetectionsQuery, Nt as NotificationSettings, On as RedactDetection, Qn as PickerToken, Rn as ConnectionPage, Rt as ListMembers, Sa as ApiTokenWithJWT, Ta as UpdateApiToken, Tr as Login, Ua as ActivityFilterQuery, Un as CreateConnection, Ut as CreateInvite, Vn as ConnectionVerification, Wa as ActivityPage, Wn as ExportFiles, Wt as GenerateInviteCode, Xt as InviteSent, Yn as OAuthStartResponse, Yt as InvitePreview, Z as Policy, _n as ExportQuery, _r as SendChatMessage, ba as ApiTokenPage, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, co as IdentityProvider, d as CreateWebhook, do as SetPassword, dr as ChatMessage, en as ReplyInvite, f as TestWebhook, fn as ListFiles, fo as UpdateAccount, ft as CreatePipeline, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, hn as DateWindow, hr as ChatToken, io as AccountIdentities, jn as RedactionResultPage, jt as NotificationPage, ka as DetectionTimeSeries, lo as OidcStartResponse, m as Webhook, mn as UpdateFile, mr as ChatSessionPage, nt as PolicySummaryPage, o as UpdateWorkspace, on as DeletedFiles, p as UpdateWebhook, po as paths, pr as ChatSession, pt as Pipeline, qn as ImportFiles, rn as Health, ro as Account$1, s as Workspace, sn as File, sr as SyncStatus, t as CreateWorkspace, tr as StartFileServiceOAuth, ua as ArtifactSet, un as FilePage, uo as PublicAccount, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, vr as ConnectorCatalog, vt as PipelineSummaryPage, wn as DetectionPage, wr as DesktopTokenRequest, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiToken, zn as ConnectionSync, zt as Member } from "./index-BtQASJ4U.js";
|
|
2
2
|
import { t as ClientConfig } from "./config-BdAgnJlh.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
@@ -267,6 +267,19 @@ declare class Auth {
|
|
|
267
267
|
startOidcSignIn(provider: IdentityProvider, query?: {
|
|
268
268
|
redirectUri?: string;
|
|
269
269
|
}): Promise<OidcStartResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* Mint a long-lived native-app token for a desktop app.
|
|
272
|
+
*
|
|
273
|
+
* Requires an active browser session (the desktop login completes in the
|
|
274
|
+
* browser first). Exchanges that session for an `app` token to hand to the
|
|
275
|
+
* desktop app via the given deep-link `redirectUri`, which must be a
|
|
276
|
+
* configured desktop scheme; it is echoed back in the response.
|
|
277
|
+
*
|
|
278
|
+
* @param request - The desktop deep-link to deliver the token on
|
|
279
|
+
* @returns Promise that resolves with the minted token and redirect URI
|
|
280
|
+
* @throws {ApiError} if the request fails
|
|
281
|
+
*/
|
|
282
|
+
mintDesktopToken(request: DesktopTokenRequest): Promise<DesktopToken>;
|
|
270
283
|
}
|
|
271
284
|
//#endregion
|
|
272
285
|
//#region src/services/catalog.d.ts
|
|
@@ -1347,4 +1360,4 @@ declare class Nvisy {
|
|
|
1347
1360
|
}
|
|
1348
1361
|
//#endregion
|
|
1349
1362
|
export { Account as S, Catalog as _, Syncs as a, Analytics as b, Policies as c, Members as d, Invites as f, Chat as g, Connections as h, Webhooks as i, Pipelines as l, Detections as m, Nvisy as n, Status as o, Files as p, Workspaces as r, Redactions as s, ApiClient as t, Notifications as u, Auth as v, Activities as x, ApiTokens as y };
|
|
1350
|
-
//# sourceMappingURL=client-
|
|
1363
|
+
//# sourceMappingURL=client-BMQhkLaC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-BMQhkLaC.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;;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EAkBL,WAAW,uBAAuB,oBAAoB,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;;;;;;;;;;KCzGhC,YAAY,OAAc;;;;;;;;;;;cA0BzB;;;;;;;;;;;;;;;;;;;;;;;EAkCA,YAAA,SAAQ;;;;;;;;;;;;;;;;;;;;;EA+GpB,aAAa,mBAAmB;;;;;;MAS5B;;;;;;;;;MAYA,OAAO;;;;MAOP,QAAQ;;;;MAOR,UAAU;;;;MAOV,WAAW;;;;MAOX,cAAc;;;;MAOd,aAAa;;;;MAOb,QAAQ;;;;MAOR,aAAa;;;;MAOb,eAAe;;;;MAOf,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 PolicyDraft, $a as
|
|
2
|
-
export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberInvitedParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, ProviderType, PublicAccount, RangeOfUint, RasterMode, RasterPolicy, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, SyncDeletionPolicy, SyncMode, SyncSchedule, SyncScheduleInput, SyncStatus, SyncTriggerType, TabularAdd, TabularAuditEvent, TabularAuditKind, TabularAuditLog, TabularEdit, TabularEntity, TabularHint, TabularLocation, TabularManual, TabularModel, TabularPattern, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
|
|
1
|
+
import { $ as PolicyDraft, $a as PolicyActivityParams, $i as TextData, $n as Provider, $r as Dimensions, $t as ListInvites, A as Color, Aa as ModelUsage, Ai as RuleMatch, An as RedactionResult, Ar as AudioAuditKind, At as NotificationEvent, B as ImageRedaction, Ba as WorkspaceAnalytics, Bi as TabularEntity, Bn as ConnectionSyncPage, Br as AudioRefinement, Bt as MemberPage, C as Language, Ca as CreateApiToken, Ci as PatternEvent, Cn as DetectionMetadata, Cr as DesktopToken, Ct as ConnectionSyncFailedParams, D as ScopeMetadata, Da as DetectionDayEntry, Di as RasterMode, Dn as PipelineDetectionsQuery, Dr as Attribution, Dt as MemberInvitedParams, E as Languages, Ea as DetectionAnalytics, Ei as RangeOfUint, En as DetectionStatusEvent, Er as Signup, Et as MarkedReadStatus, F as DateStyle, Fa as StorageKindEntry, Fi as TabularAdd, Fn as Connection, Fr as AudioHint, Ft as UnreadCountEvent, G as LabelScope, Ga as ActivityPayload, Gi as TabularPattern, Gn as FileServiceConfig, Gr as Calibration, Gt as Invite, H as LabelEntry, Ha as ActivityExportOptions, Hi as TabularLocation, Hn as ConnectionsQuery, Hr as Audit, Ht as UpdateMember, I as GdprArticle9Treatment, Ia as TokenCounts, Ii as TabularAuditEvent, In as ConnectionConfig, Ir as AudioLocation, It as UnreadStatus, J as ModalityRedactions, Ja as DetectionActivityParams, Ji as TextAdd, Jn as LlmConfig, Jr as CodecParams, Jt as InvitePage, K as LanguageTag, Ka as ActivityType, Ki as TabularRefinement, Kn as GcsCredentials, Kr as Category, Kt as InviteCode, L as GdprSensitiveScope, La as Usage, Li as TabularAuditKind, Ln as ConnectionId, Lr as AudioManual, Lt as UpdateNotificationSettings, M as CreatePolicy, Ma as ProviderType, Mi as SourceRef, Mn as WorkspaceDetectionsQuery, Mr as AudioData, Mt as NotificationPayload, N as CustomMatcher, Na as RecognizerId, Ni as SourceSpan, Nn as AuthenticatedProvider, Nr as AudioEdit, Nt as NotificationSettings, O as AudioRedaction, Oa as DetectionStatusEntry, Oi as Redaction, On as RedactDetection, Or as AudioAdd, Ot as MemberJoinedParams, P as DateGranularity, Pa as StorageAnalytics, Pi as Suppress, Pn as AzureCredentials, Pr as AudioEntity, Pt as RedactionCreatedParams, Q as PolicyDefinition, Qa as PipelineActivityParams, Qi as TextCoord, Qn as PickerToken, Qr as Deduplication, Qt as InviteStatus, R as HipaaAccountNumbers, Ra as UsageAnalytics, Ri as TabularAuditLog, Rn as ConnectionPage, Rr as AudioModel, Rt as ListMembers, S as CountryCode, Sa as ApiTokenWithJWT, Si as OperatorId, Sn as DetectionId, Sr as RegisteredRecognizer, St as ConnectionSyncCompletedParams, T as LanguageSpan, Ta as UpdateApiToken, Ti as Polygon, Tn as DetectionStatus, Tr as Login, Tt as DetectionFailedParams, U as LabelLocale, Ua as ActivityFilterQuery, Ui as TabularManual, Un as CreateConnection, Ur as AuditHash, Ut as CreateInvite, V as Label, Va as Activity, Vi as TabularHint, Vn as ConnectionVerification, Vr as AudioRetag, Vt as MemberSortField, W as LabelRef, Wa as ActivityPage, Wi as TabularModel, Wn as ExportFiles, Wr as BoundingBox, Wt as GenerateInviteCode, X as PciPanRender, Xa as InviteActivityParams, Xi as TextAuditKind, Xn as OAuthTokens, Xr as Contested, Xt as InviteSent, Y as PciDssPart, Ya as FileActivityParams, Yi as TextAuditEvent, Yn as OAuthStartResponse, Yr as Conflict, Yt as InvitePreview, Z as Policy, Za as MemberActivityParams, Zi as TextAuditLog, Zn as PickedFile, Zr as DecodedSpan, Zt as InviteSortField, _ as WebhookId, _a as TranscriptWord, _i as ImageRefinement, _n as ExportQuery, _r as SendChatMessage, _t as PipelineSummary, a as RetentionSettings, aa as TextModel, ai as ImageAdd, an as DeleteFiles, ao as AccountIdentity, ar as SyncSchedule, at as Sha2Algorithm, b as WebhookStatus, ba as ApiTokenPage, bi as ManualIntent, bn as CreateDetection, br as LabelCatalog, bt as UpdatePipeline, c as WorkspacePage, ca as TextRetag, ci as ImageAuditLog, cn as FileHash, co as IdentityProvider, cr as SyncTriggerType, ct as TerminalFallback, d as CreateWebhook, da as Layout, di as ImageEntity, dn as FormatToken, do as SetPassword, dr as ChatMessage, dt as Waveform, ea as TextEdit, ei as DocumentContext, en as ReplyInvite, eo as RedactionActivityParams, er as S3Credentials, et as PolicyRule, f as TestWebhook, fa as LayoutBlock, fi as ImageHint, fn as ListFiles, fo as UpdateAccount, fr as ChatRole, ft as CreatePipeline, g as WebhookEvent, ga as TranscriptSegment, gi as ImagePattern, gn as ExportFormat, gr as CreateChatSession, gt as PipelineStatus, h as WebhookCreated, ha as Tokens, hi as ImageModel, hn as DateWindow, hr as ChatToken, ht as PipelineFilter, i as RetentionOverride, ia as TextManual, ii as FreeformAttribution, in as HealthStatus, io as AccountIdentities, ir as SyncMode, it as Predicate, j as ConfidenceThreshold, ja as ModelUsageEntry, ji as Selection, jn as RedactionResultPage, jr as AudioAuditLog, jt as NotificationPage, k as ClampBucket, ka as DetectionTimeSeries, ki as Report, kn as RedactionId, kr as AudioAuditEvent, kt as Notification, l as WorkspaceRole, la as TimeSpan, li as ImageData, ln as FileKind, lo as OidcStartResponse, lr as UnauthenticatedProvider, lt as TextRedaction, m as Webhook, ma as Token, mi as ImageManual, mn as UpdateFile, mr as ChatSessionPage, mt as PipelineDefinition, n as RasterPolicy, na as TextHint, ni as EditSet, nn as ComponentHealth, no as WorkspaceActivityParams, nr as StorageConfig, nt as PolicySummaryPage, o as UpdateWorkspace, oa as TextPattern, oi as ImageAuditEvent, on as DeletedFiles, oo as AccountRef, or as SyncScheduleInput, ot as TabularRedaction, p as UpdateWebhook, pa as LayoutWord, pi as ImageLocation, pn as ModalityToken, pr as ChatSession, pt as Pipeline, q as LocalizedText, qa as ConnectionActivityParams, qi as TabularRetag, qn as ImportFiles, qr as CitedAttribution, qt as InviteExpiration, r as Retention, ra as TextLocation, ri as EntityCoRef, rn as Health, ro as Account, rr as SyncDeletionPolicy, rt as PolicyTemplate, s as Workspace, sa as TextRefinement, si as ImageAuditKind, sn as File, so as Handle, sr as SyncStatus, st as TemplateOrigin, t as CreateWorkspace, ta as TextEntity, ti as Dpi, tn as SortOrder, to as WebhookActivityParams, tr as StartFileServiceOAuth, tt as PolicySummary, u as WorkspaceSettings, ua as ArtifactSet, ui as ImageEdit, un as FilePage, uo as PublicAccount, ur as UpdateConnection, ut as UpdatePolicy, v as WebhookPage, va as Transcription, vi as ImageRetag, vn as ErrorResponse, vr as ConnectorCatalog, vt as PipelineSummaryPage, w as LanguageProvenance, wa as TokenExpiration, wi as Point, wn as DetectionPage, wr as DesktopTokenRequest, wt as DetectionCompletedParams, x as Confidence, xa as ApiTokenType, xi as ModelEvent, xn as Detection, xr as RecognizerCatalog, xt as CursorPagination, y as WebhookResult, ya as ApiToken, yi as LeakProfile, yn as ValidationErrorDetail, yr as FileProviders, yt as PipelineTriggerType, z as HipaaDeidMethod, za as UsageReport, zi as TabularEdit, zn as ConnectionSync, zr as AudioPattern, zt as Member } from "../index-BtQASJ4U.js";
|
|
2
|
+
export type { Account, AccountIdentities, AccountIdentity, AccountRef, Activity, ActivityExportOptions, ActivityFilterQuery, ActivityPage, ActivityPayload, ActivityType, ApiToken, ApiTokenPage, ApiTokenType, ApiTokenWithJWT, ArtifactSet, Attribution, AudioAdd, AudioAuditEvent, AudioAuditKind, AudioAuditLog, AudioData, AudioEdit, AudioEntity, AudioHint, AudioLocation, AudioManual, AudioModel, AudioPattern, AudioRedaction, AudioRefinement, AudioRetag, Audit, AuditHash, AuthenticatedProvider, AzureCredentials, BoundingBox, Calibration, Category, ChatMessage, ChatRole, ChatSession, ChatSessionPage, ChatToken, CitedAttribution, ClampBucket, CodecParams, Color, ComponentHealth, Confidence, ConfidenceThreshold, Conflict, Connection, ConnectionActivityParams, ConnectionConfig, ConnectionId, ConnectionPage, ConnectionSync, ConnectionSyncCompletedParams, ConnectionSyncFailedParams, ConnectionSyncPage, ConnectionVerification, ConnectionsQuery, ConnectorCatalog, Contested, CountryCode, CreateApiToken, CreateChatSession, CreateConnection, CreateDetection, CreateInvite, CreatePipeline, CreatePolicy, CreateWebhook, CreateWorkspace, CursorPagination, CustomMatcher, DateGranularity, DateStyle, DateWindow, DecodedSpan, Deduplication, DeleteFiles, DeletedFiles, DesktopToken, DesktopTokenRequest, Detection, DetectionActivityParams, DetectionAnalytics, DetectionCompletedParams, DetectionDayEntry, DetectionFailedParams, DetectionId, DetectionMetadata, DetectionPage, DetectionStatus, DetectionStatusEntry, DetectionStatusEvent, DetectionTimeSeries, Dimensions, DocumentContext, Dpi, EditSet, EntityCoRef, ErrorResponse, ExportFiles, ExportFormat, ExportQuery, File, FileActivityParams, FileHash, FileKind, FilePage, FileProviders, FileServiceConfig, FormatToken, FreeformAttribution, GcsCredentials, GdprArticle9Treatment, GdprSensitiveScope, GenerateInviteCode, Handle, Health, HealthStatus, HipaaAccountNumbers, HipaaDeidMethod, IdentityProvider, ImageAdd, ImageAuditEvent, ImageAuditKind, ImageAuditLog, ImageData, ImageEdit, ImageEntity, ImageHint, ImageLocation, ImageManual, ImageModel, ImagePattern, ImageRedaction, ImageRefinement, ImageRetag, ImportFiles, Invite, InviteActivityParams, InviteCode, InviteExpiration, InvitePage, InvitePreview, InviteSent, InviteSortField, InviteStatus, Label, LabelCatalog, LabelEntry, LabelLocale, LabelRef, LabelScope, Language, LanguageProvenance, LanguageSpan, LanguageTag, Languages, Layout, LayoutBlock, LayoutWord, LeakProfile, ListFiles, ListInvites, ListMembers, LlmConfig, LocalizedText, Login, ManualIntent, MarkedReadStatus, Member, MemberActivityParams, MemberInvitedParams, MemberJoinedParams, MemberPage, MemberSortField, ModalityRedactions, ModalityToken, ModelEvent, ModelUsage, ModelUsageEntry, Notification, NotificationEvent, NotificationPage, NotificationPayload, NotificationSettings, OAuthStartResponse, OAuthTokens, OidcStartResponse, OperatorId, PatternEvent, PciDssPart, PciPanRender, PickedFile, PickerToken, Pipeline, PipelineActivityParams, PipelineDefinition, PipelineDetectionsQuery, PipelineFilter, PipelineStatus, PipelineSummary, PipelineSummaryPage, PipelineTriggerType, Point, Policy, PolicyActivityParams, PolicyDefinition, PolicyDraft, PolicyRule, PolicySummary, PolicySummaryPage, PolicyTemplate, Polygon, Predicate, Provider, ProviderType, PublicAccount, RangeOfUint, RasterMode, RasterPolicy, RecognizerCatalog, RecognizerId, RedactDetection, Redaction, RedactionActivityParams, RedactionCreatedParams, RedactionId, RedactionResult, RedactionResultPage, RegisteredRecognizer, ReplyInvite, Report, Retention, RetentionOverride, RetentionSettings, RuleMatch, S3Credentials, ScopeMetadata, Selection, SendChatMessage, SetPassword, Sha2Algorithm, Signup, SortOrder, SourceRef, SourceSpan, StartFileServiceOAuth, StorageAnalytics, StorageConfig, StorageKindEntry, Suppress, SyncDeletionPolicy, SyncMode, SyncSchedule, SyncScheduleInput, SyncStatus, SyncTriggerType, TabularAdd, TabularAuditEvent, TabularAuditKind, TabularAuditLog, TabularEdit, TabularEntity, TabularHint, TabularLocation, TabularManual, TabularModel, TabularPattern, TabularRedaction, TabularRefinement, TabularRetag, TemplateOrigin, TerminalFallback, TestWebhook, TextAdd, TextAuditEvent, TextAuditKind, TextAuditLog, TextCoord, TextData, TextEdit, TextEntity, TextHint, TextLocation, TextManual, TextModel, TextPattern, TextRedaction, TextRefinement, TextRetag, TimeSpan, Token, TokenCounts, TokenExpiration, Tokens, TranscriptSegment, TranscriptWord, Transcription, UnauthenticatedProvider, UnreadCountEvent, UnreadStatus, UpdateAccount, UpdateApiToken, UpdateConnection, UpdateFile, UpdateMember, UpdateNotificationSettings, UpdatePipeline, UpdatePolicy, UpdateWebhook, UpdateWorkspace, Usage, UsageAnalytics, UsageReport, ValidationErrorDetail, Waveform, Webhook, WebhookActivityParams, WebhookCreated, WebhookEvent, WebhookId, WebhookPage, WebhookResult, WebhookStatus, Workspace, WorkspaceActivityParams, WorkspaceAnalytics, WorkspaceDetectionsQuery, WorkspacePage, WorkspaceRole, WorkspaceSettings };
|
|
@@ -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.48.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-DZ3l15-g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-
|
|
1
|
+
{"version":3,"file":"error-DZ3l15-g.js","names":[],"sources":["../src/config.ts","../src/middleware/error.ts"],"sourcesContent":["/**\n * @fileoverview Configuration types and constants for the Nvisy SDK.\n *\n * This module provides configuration interfaces, default values, and environment\n * variable names used throughout the SDK.\n *\n * @module config\n */\n\n/**\n * Compile-time version token, replaced with the `package.json` version by the\n * build (see `tsdown.config.ts`). Declared so it type-checks; the `typeof`\n * guard below keeps it safe when the define isn't applied (tests, direct `tsc`).\n */\ndeclare const __SDK_VERSION__: string | undefined;\n\n/**\n * Current SDK version.\n *\n * Injected from `package.json` at build time, so it always matches the\n * published version. Used in the default user agent string.\n */\nexport const VERSION =\n\ttypeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"0.0.0-dev\";\n\n/**\n * Configuration options for creating a Nvisy client.\n *\n * Authenticate one of two ways: pass an `apiToken` (sent as a bearer token on\n * every request), or use a browser session — sign in with the standalone\n * `login` / `signup`, then set `credentials: \"include\"` so the session cookies\n * are sent. All other fields are optional and use sensible defaults.\n *\n * @example\n * ```typescript\n * // API token\n * const client = new Client({ apiToken: \"your-api-token\" });\n *\n * // Browser session (after `login()` set the cookies)\n * const client = new Client({ credentials: \"include\" });\n * ```\n */\nexport interface ClientConfig {\n\t/**\n\t * API token for authentication, sent as `Authorization: Bearer <token>`.\n\t *\n\t * Tokens can be obtained from the Nvisy dashboard or the api-tokens endpoint.\n\t * Omit it to authenticate with a browser session instead (see `credentials`).\n\t */\n\tapiToken?: string;\n\n\t/**\n\t * Credentials mode for every request, forwarded to `fetch`.\n\t *\n\t * Set to `\"include\"` to send the session cookies established by the\n\t * standalone `login` / `signup` (needed for cross-origin browser sessions).\n\t * Defaults to the platform's `fetch` default when omitted.\n\t */\n\tcredentials?: RequestCredentials;\n\n\t/**\n\t * Base URL for the Nvisy API.\n\t *\n\t * @default \"https://api.nvisy.com\"\n\t */\n\tbaseUrl?: string;\n\n\t/**\n\t * Custom headers to include with every request.\n\t *\n\t * These headers are merged with the default headers (Content-Type, User-Agent,\n\t * and Authorization). Custom headers take precedence over defaults if there\n\t * are conflicts.\n\t */\n\theaders?: Record<string, string>;\n\n\t/**\n\t * Custom user agent string to identify your application.\n\t *\n\t * @default \"@nvisy/sdk v.{version}\"\n\t */\n\tuserAgent?: string;\n\n\t/**\n\t * Enable logging for requests and responses.\n\t *\n\t * When enabled, logs request method, URL, status, and timing to console.\n\t *\n\t * @default false\n\t */\n\twithLogging?: boolean;\n\n\t/**\n\t * Custom fetch implementation used for every request. Must match the WHATWG\n\t * `fetch` signature. Defaults to the global `fetch`.\n\t *\n\t * Lets a host swap in a non-browser transport — e.g. a desktop (Tauri) app\n\t * passing `@tauri-apps/plugin-http`'s `fetch`, which performs the request in\n\t * the native process and so is not subject to browser CORS.\n\t */\n\tfetch?: typeof globalThis.fetch;\n}\n\n/**\n * Default configuration values used when options are not explicitly provided.\n */\nexport const DEFAULTS = {\n\t/**\n\t * Default base URL for the Nvisy API.\n\t */\n\tBASE_URL: \"https://api.nvisy.com\",\n\n\t/**\n\t * Default user agent string.\n\t */\n\tUSER_AGENT: `@nvisy/sdk v.${VERSION}`,\n} as const;\n","import type { Middleware } from \"openapi-fetch\";\nimport type { ErrorResponse } from \"@/datatypes/index.js\";\nimport { NvisyApiError, NvisyError } from \"@/errors.js\";\n\n/**\n * Middleware that automatically throws NvisyApiError for error responses.\n * This replaces the need for manual checks in services.\n */\nexport const errorMiddleware: Middleware = {\n\tasync onResponse({ response }) {\n\t\tif (!response.ok) {\n\t\t\tconst error = (await response.clone().json()) as ErrorResponse;\n\t\t\tthrow new NvisyApiError(error, response.status);\n\t\t}\n\t\treturn response;\n\t},\n\n\tonError({ error }) {\n\t\t// Wrap fetch errors (network failures, CORS, etc.) in NvisyError\n\t\tif (error instanceof Error) {\n\t\t\tthrow new NvisyError(error.message);\n\t\t}\n\t\tthrow new NvisyError(\"An unknown network error occurred\");\n\t},\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa;;;;AAoFb,MAAa,WAAW;;;;CAIvB,UAAU;;;;CAKV,YAAY,gBAAgB;AAC7B;;;;;;;;AC5GA,MAAa,kBAA8B;CAC1C,MAAM,WAAW,EAAE,YAAY;EAC9B,IAAI,CAAC,SAAS,IAAI;GACjB,MAAM,QAAS,MAAM,SAAS,MAAM,CAAC,CAAC,KAAK;GAC3C,MAAM,IAAI,cAAc,OAAO,SAAS,MAAM;EAC/C;EACA,OAAO;CACR;CAEA,QAAQ,EAAE,SAAS;EAElB,IAAI,iBAAiB,OACpB,MAAM,IAAI,WAAW,MAAM,OAAO;EAEnC,MAAM,IAAI,WAAW,mCAAmC;CACzD;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vn as ErrorResponse } from "./index-
|
|
1
|
+
import { vn as ErrorResponse } from "./index-BtQASJ4U.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-DILJOdod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-DILJOdod.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"}
|
|
@@ -9835,6 +9835,113 @@ interface paths {
|
|
|
9835
9835
|
patch?: never;
|
|
9836
9836
|
trace?: never;
|
|
9837
9837
|
};
|
|
9838
|
+
"/auth/desktop/token/": {
|
|
9839
|
+
parameters: {
|
|
9840
|
+
query?: never;
|
|
9841
|
+
header?: never;
|
|
9842
|
+
path?: never;
|
|
9843
|
+
cookie?: never;
|
|
9844
|
+
};
|
|
9845
|
+
get?: never;
|
|
9846
|
+
put?: never;
|
|
9847
|
+
/**
|
|
9848
|
+
* Mint a desktop app token
|
|
9849
|
+
* @description Mints a long-lived native-app session token for the authenticated account, to be delivered to the desktop app via the given desktop deep-link. Requires an active browser session (the desktop login completes in the browser first). The `redirectUri` must be a configured desktop scheme.
|
|
9850
|
+
*/
|
|
9851
|
+
post: {
|
|
9852
|
+
parameters: {
|
|
9853
|
+
query?: never;
|
|
9854
|
+
header?: never;
|
|
9855
|
+
path?: never;
|
|
9856
|
+
cookie?: never;
|
|
9857
|
+
};
|
|
9858
|
+
/**
|
|
9859
|
+
* @description Request payload to mint a native-app (desktop) session token.
|
|
9860
|
+
*
|
|
9861
|
+
* Called by the frontend after a normal browser (cookie) login when the login
|
|
9862
|
+
* was initiated by the desktop app: it exchanges the just-established session for
|
|
9863
|
+
* a long-lived `app` token the frontend then hands to the app via the
|
|
9864
|
+
* `redirectUri` deep-link. The `redirectUri` must be a registered desktop scheme
|
|
9865
|
+
* (e.g. `nvisy://…`), so a token cannot be minted toward a web origin.
|
|
9866
|
+
*/
|
|
9867
|
+
requestBody: {
|
|
9868
|
+
content: {
|
|
9869
|
+
"application/json": components["schemas"]["DesktopTokenRequest"];
|
|
9870
|
+
};
|
|
9871
|
+
};
|
|
9872
|
+
responses: {
|
|
9873
|
+
/**
|
|
9874
|
+
* @description The result of minting a native-app (desktop) session token.
|
|
9875
|
+
*
|
|
9876
|
+
* The frontend hands `apiToken` to the desktop app via the `redirectUri`
|
|
9877
|
+
* deep-link (`{redirectUri}?token={apiToken}`); the app stores it and sends it as
|
|
9878
|
+
* an `Authorization: Bearer` credential. Browser web sessions use cookies
|
|
9879
|
+
* instead and return no token.
|
|
9880
|
+
*/
|
|
9881
|
+
200: {
|
|
9882
|
+
headers: {
|
|
9883
|
+
[name: string]: unknown;
|
|
9884
|
+
};
|
|
9885
|
+
content: {
|
|
9886
|
+
"application/json": components["schemas"]["DesktopToken"];
|
|
9887
|
+
};
|
|
9888
|
+
};
|
|
9889
|
+
/**
|
|
9890
|
+
* @description HTTP error response representation with security-conscious design.
|
|
9891
|
+
*
|
|
9892
|
+
* This struct contains all the information needed to serialize an error
|
|
9893
|
+
* response, including the error name, message, HTTP status code, resource
|
|
9894
|
+
* information, and user-friendly messages.
|
|
9895
|
+
*/
|
|
9896
|
+
400: {
|
|
9897
|
+
headers: {
|
|
9898
|
+
[name: string]: unknown;
|
|
9899
|
+
};
|
|
9900
|
+
content: {
|
|
9901
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9902
|
+
};
|
|
9903
|
+
};
|
|
9904
|
+
/**
|
|
9905
|
+
* @description HTTP error response representation with security-conscious design.
|
|
9906
|
+
*
|
|
9907
|
+
* This struct contains all the information needed to serialize an error
|
|
9908
|
+
* response, including the error name, message, HTTP status code, resource
|
|
9909
|
+
* information, and user-friendly messages.
|
|
9910
|
+
*/
|
|
9911
|
+
401: {
|
|
9912
|
+
headers: {
|
|
9913
|
+
[name: string]: unknown;
|
|
9914
|
+
};
|
|
9915
|
+
content: {
|
|
9916
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9917
|
+
};
|
|
9918
|
+
};
|
|
9919
|
+
/** @description Expected request with `Content-Type: application/json` */
|
|
9920
|
+
415: {
|
|
9921
|
+
headers: {
|
|
9922
|
+
[name: string]: unknown;
|
|
9923
|
+
};
|
|
9924
|
+
content: {
|
|
9925
|
+
"text/plain": string;
|
|
9926
|
+
};
|
|
9927
|
+
};
|
|
9928
|
+
/** @description Failed to deserialize the JSON body into the target type */
|
|
9929
|
+
422: {
|
|
9930
|
+
headers: {
|
|
9931
|
+
[name: string]: unknown;
|
|
9932
|
+
};
|
|
9933
|
+
content: {
|
|
9934
|
+
"text/plain": string;
|
|
9935
|
+
};
|
|
9936
|
+
};
|
|
9937
|
+
};
|
|
9938
|
+
};
|
|
9939
|
+
delete?: never;
|
|
9940
|
+
options?: never;
|
|
9941
|
+
head?: never;
|
|
9942
|
+
patch?: never;
|
|
9943
|
+
trace?: never;
|
|
9944
|
+
};
|
|
9838
9945
|
"/auth/login/": {
|
|
9839
9946
|
parameters: {
|
|
9840
9947
|
query?: never;
|
|
@@ -10662,7 +10769,7 @@ interface components {
|
|
|
10662
10769
|
* This enumeration corresponds to the `API_TOKEN_TYPE` PostgreSQL enum and is used
|
|
10663
10770
|
* to categorize different types of authentication tokens based on the client type.
|
|
10664
10771
|
*/
|
|
10665
|
-
ApiTokenType: "web" | "api" | "
|
|
10772
|
+
ApiTokenType: "web" | "api" | "app";
|
|
10666
10773
|
/** @description API token with JWT token string (only returned on creation). */
|
|
10667
10774
|
ApiTokenWithJWT: {
|
|
10668
10775
|
/** @description Human-readable display name for the API token. */
|
|
@@ -12227,6 +12334,36 @@ interface components {
|
|
|
12227
12334
|
*/
|
|
12228
12335
|
skipped: string[];
|
|
12229
12336
|
};
|
|
12337
|
+
/**
|
|
12338
|
+
* @description The result of minting a native-app (desktop) session token.
|
|
12339
|
+
*
|
|
12340
|
+
* The frontend hands `apiToken` to the desktop app via the `redirectUri`
|
|
12341
|
+
* deep-link (`{redirectUri}?token={apiToken}`); the app stores it and sends it as
|
|
12342
|
+
* an `Authorization: Bearer` credential. Browser web sessions use cookies
|
|
12343
|
+
* instead and return no token.
|
|
12344
|
+
*/
|
|
12345
|
+
DesktopToken: {
|
|
12346
|
+
/** @description The signed `app` JWT to send as a Bearer token. */
|
|
12347
|
+
apiToken: string;
|
|
12348
|
+
/** @description The desktop deep-link the token should be delivered on, echoed back. */
|
|
12349
|
+
redirectUri: string;
|
|
12350
|
+
};
|
|
12351
|
+
/**
|
|
12352
|
+
* @description Request payload to mint a native-app (desktop) session token.
|
|
12353
|
+
*
|
|
12354
|
+
* Called by the frontend after a normal browser (cookie) login when the login
|
|
12355
|
+
* was initiated by the desktop app: it exchanges the just-established session for
|
|
12356
|
+
* a long-lived `app` token the frontend then hands to the app via the
|
|
12357
|
+
* `redirectUri` deep-link. The `redirectUri` must be a registered desktop scheme
|
|
12358
|
+
* (e.g. `nvisy://…`), so a token cannot be minted toward a web origin.
|
|
12359
|
+
*/
|
|
12360
|
+
DesktopTokenRequest: {
|
|
12361
|
+
/**
|
|
12362
|
+
* @description The desktop deep-link the app will receive the token on. Must match a
|
|
12363
|
+
* configured desktop redirect scheme.
|
|
12364
|
+
*/
|
|
12365
|
+
redirectUri: string;
|
|
12366
|
+
};
|
|
12230
12367
|
/**
|
|
12231
12368
|
* @description Response type for a detection.
|
|
12232
12369
|
*
|
|
@@ -17911,6 +18048,8 @@ type TabularRetag = Schemas$18["TabularRetag"];
|
|
|
17911
18048
|
type Schemas$17 = components["schemas"];
|
|
17912
18049
|
type Login = Schemas$17["Login"];
|
|
17913
18050
|
type Signup = Schemas$17["Signup"];
|
|
18051
|
+
type DesktopTokenRequest = Schemas$17["DesktopTokenRequest"];
|
|
18052
|
+
type DesktopToken = Schemas$17["DesktopToken"];
|
|
17914
18053
|
//#endregion
|
|
17915
18054
|
//#region src/datatypes/catalog.d.ts
|
|
17916
18055
|
type Schemas$16 = components["schemas"];
|
|
@@ -18150,5 +18289,5 @@ type Retention = Schemas["Retention"];
|
|
|
18150
18289
|
type RetentionSettings = Schemas["RetentionSettings"];
|
|
18151
18290
|
type RetentionOverride = Schemas["RetentionOverride"];
|
|
18152
18291
|
//#endregion
|
|
18153
|
-
export { PolicyDraft as $,
|
|
18154
|
-
//# sourceMappingURL=index-
|
|
18292
|
+
export { PolicyDraft as $, PolicyActivityParams as $a, TextData as $i, Provider as $n, Dimensions as $r, ListInvites as $t, Color as A, ModelUsage as Aa, RuleMatch as Ai, RedactionResult as An, AudioAuditKind as Ar, NotificationEvent as At, ImageRedaction as B, WorkspaceAnalytics as Ba, TabularEntity as Bi, ConnectionSyncPage as Bn, AudioRefinement as Br, MemberPage as Bt, Language as C, CreateApiToken as Ca, PatternEvent as Ci, DetectionMetadata as Cn, DesktopToken as Cr, ConnectionSyncFailedParams as Ct, ScopeMetadata as D, DetectionDayEntry as Da, RasterMode as Di, PipelineDetectionsQuery as Dn, Attribution as Dr, MemberInvitedParams as Dt, Languages as E, DetectionAnalytics as Ea, RangeOfUint as Ei, DetectionStatusEvent as En, Signup as Er, MarkedReadStatus as Et, DateStyle as F, StorageKindEntry as Fa, TabularAdd as Fi, Connection as Fn, AudioHint as Fr, UnreadCountEvent as Ft, LabelScope as G, ActivityPayload as Ga, TabularPattern as Gi, FileServiceConfig as Gn, Calibration as Gr, Invite as Gt, LabelEntry as H, ActivityExportOptions as Ha, TabularLocation as Hi, ConnectionsQuery as Hn, Audit as Hr, UpdateMember as Ht, GdprArticle9Treatment as I, TokenCounts as Ia, TabularAuditEvent as Ii, ConnectionConfig as In, AudioLocation as Ir, UnreadStatus as It, ModalityRedactions as J, DetectionActivityParams as Ja, TextAdd as Ji, LlmConfig as Jn, CodecParams as Jr, InvitePage as Jt, LanguageTag as K, ActivityType as Ka, TabularRefinement as Ki, GcsCredentials as Kn, Category as Kr, InviteCode as Kt, GdprSensitiveScope as L, Usage as La, TabularAuditKind as Li, ConnectionId as Ln, AudioManual as Lr, UpdateNotificationSettings as Lt, CreatePolicy as M, ProviderType as Ma, SourceRef as Mi, WorkspaceDetectionsQuery as Mn, AudioData as Mr, NotificationPayload as Mt, CustomMatcher as N, RecognizerId as Na, SourceSpan as Ni, AuthenticatedProvider as Nn, AudioEdit as Nr, NotificationSettings as Nt, AudioRedaction as O, DetectionStatusEntry as Oa, Redaction as Oi, RedactDetection as On, AudioAdd as Or, MemberJoinedParams as Ot, DateGranularity as P, StorageAnalytics as Pa, Suppress as Pi, AzureCredentials as Pn, AudioEntity as Pr, RedactionCreatedParams as Pt, PolicyDefinition as Q, PipelineActivityParams as Qa, TextCoord as Qi, PickerToken as Qn, Deduplication as Qr, InviteStatus as Qt, HipaaAccountNumbers as R, UsageAnalytics as Ra, TabularAuditLog as Ri, ConnectionPage as Rn, AudioModel as Rr, ListMembers as Rt, CountryCode as S, ApiTokenWithJWT as Sa, OperatorId as Si, DetectionId as Sn, RegisteredRecognizer as Sr, ConnectionSyncCompletedParams as St, LanguageSpan as T, UpdateApiToken as Ta, Polygon as Ti, DetectionStatus as Tn, Login as Tr, DetectionFailedParams as Tt, LabelLocale as U, ActivityFilterQuery as Ua, TabularManual as Ui, CreateConnection as Un, AuditHash as Ur, CreateInvite as Ut, Label as V, Activity as Va, TabularHint as Vi, ConnectionVerification as Vn, AudioRetag as Vr, MemberSortField as Vt, LabelRef as W, ActivityPage as Wa, TabularModel as Wi, ExportFiles as Wn, BoundingBox as Wr, GenerateInviteCode as Wt, PciPanRender as X, InviteActivityParams as Xa, TextAuditKind as Xi, OAuthTokens as Xn, Contested as Xr, InviteSent as Xt, PciDssPart as Y, FileActivityParams as Ya, TextAuditEvent as Yi, OAuthStartResponse as Yn, Conflict as Yr, InvitePreview as Yt, Policy as Z, MemberActivityParams as Za, TextAuditLog as Zi, PickedFile as Zn, DecodedSpan as Zr, InviteSortField as Zt, WebhookId as _, TranscriptWord as _a, ImageRefinement as _i, ExportQuery as _n, SendChatMessage as _r, PipelineSummary as _t, RetentionSettings as a, TextModel as aa, ImageAdd as ai, DeleteFiles as an, AccountIdentity as ao, SyncSchedule as ar, Sha2Algorithm as at, WebhookStatus as b, ApiTokenPage as ba, ManualIntent as bi, CreateDetection as bn, LabelCatalog as br, UpdatePipeline as bt, WorkspacePage as c, TextRetag as ca, ImageAuditLog as ci, FileHash as cn, IdentityProvider as co, SyncTriggerType as cr, TerminalFallback as ct, CreateWebhook as d, Layout as da, ImageEntity as di, FormatToken as dn, SetPassword as do, ChatMessage as dr, Waveform as dt, TextEdit as ea, DocumentContext as ei, ReplyInvite as en, RedactionActivityParams as eo, S3Credentials as er, PolicyRule as et, TestWebhook as f, LayoutBlock as fa, ImageHint as fi, ListFiles as fn, UpdateAccount as fo, ChatRole as fr, CreatePipeline as ft, WebhookEvent as g, TranscriptSegment as ga, ImagePattern as gi, ExportFormat as gn, CreateChatSession as gr, PipelineStatus as gt, WebhookCreated as h, Tokens as ha, ImageModel as hi, DateWindow as hn, ChatToken as hr, PipelineFilter as ht, RetentionOverride as i, TextManual as ia, FreeformAttribution as ii, HealthStatus as in, AccountIdentities as io, SyncMode as ir, Predicate as it, ConfidenceThreshold as j, ModelUsageEntry as ja, Selection as ji, RedactionResultPage as jn, AudioAuditLog as jr, NotificationPage as jt, ClampBucket as k, DetectionTimeSeries as ka, Report as ki, RedactionId as kn, AudioAuditEvent as kr, Notification as kt, WorkspaceRole as l, TimeSpan as la, ImageData as li, FileKind as ln, OidcStartResponse as lo, UnauthenticatedProvider as lr, TextRedaction as lt, Webhook as m, Token as ma, ImageManual as mi, UpdateFile as mn, ChatSessionPage as mr, PipelineDefinition as mt, RasterPolicy as n, TextHint as na, EditSet as ni, ComponentHealth as nn, WorkspaceActivityParams as no, StorageConfig as nr, PolicySummaryPage as nt, UpdateWorkspace as o, TextPattern as oa, ImageAuditEvent as oi, DeletedFiles as on, AccountRef as oo, SyncScheduleInput as or, TabularRedaction as ot, UpdateWebhook as p, LayoutWord as pa, ImageLocation as pi, ModalityToken as pn, paths as po, ChatSession as pr, Pipeline as pt, LocalizedText as q, ConnectionActivityParams as qa, TabularRetag as qi, ImportFiles as qn, CitedAttribution as qr, InviteExpiration as qt, Retention as r, TextLocation as ra, EntityCoRef as ri, Health as rn, Account as ro, SyncDeletionPolicy as rr, PolicyTemplate as rt, Workspace as s, TextRefinement as sa, ImageAuditKind as si, File as sn, Handle as so, SyncStatus as sr, TemplateOrigin as st, CreateWorkspace as t, TextEntity as ta, Dpi as ti, SortOrder as tn, WebhookActivityParams as to, StartFileServiceOAuth as tr, PolicySummary as tt, WorkspaceSettings as u, ArtifactSet as ua, ImageEdit as ui, FilePage as un, PublicAccount as uo, UpdateConnection as ur, UpdatePolicy as ut, WebhookPage as v, Transcription as va, ImageRetag as vi, ErrorResponse as vn, ConnectorCatalog as vr, PipelineSummaryPage as vt, LanguageProvenance as w, TokenExpiration as wa, Point as wi, DetectionPage as wn, DesktopTokenRequest as wr, DetectionCompletedParams as wt, Confidence as x, ApiTokenType as xa, ModelEvent as xi, Detection as xn, RecognizerCatalog as xr, CursorPagination as xt, WebhookResult as y, ApiToken as ya, LeakProfile as yi, ValidationErrorDetail as yn, FileProviders as yr, PipelineTriggerType as yt, HipaaDeidMethod as z, UsageReport as za, TabularEdit as zi, ConnectionSync as zn, AudioPattern as zr, Member as zt };
|
|
18293
|
+
//# sourceMappingURL=index-BtQASJ4U.d.ts.map
|