@nivaro/sdk 0.1.17 → 0.1.18

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/README.md CHANGED
@@ -24,6 +24,14 @@ The `@nivaro/sdk` package is a fully-typed TypeScript client for the Nivaro REST
24
24
  pnpm add @nivaro/sdk
25
25
  ```
26
26
 
27
+ #### MCP server (Claude Code, Claude Desktop, Cursor)
28
+
29
+ The companion package `@nivaro/mcp` wraps the SDK as a Model Context Protocol server, so an AI coding assistant can read and write an instance directly: collection schemas, record reads and aggregates, rehearsed creates, updates, deletes with an explicit confirm, pipeline state and transitions, and the instance's own ask-your-data assistant. It authenticates with an `nvk_` API key, so role permissions, row-level security and user scopes apply unchanged; a sandbox key is read-only by construction. Install and client config snippets live in the package README (`packages/mcp/README.md`).
30
+
31
+ ```typescript
32
+ claude mcp add nivaro -e NIVARO_URL=https://nivaro.example.com -e NIVARO_TOKEN=nvk_... -- npx -y @nivaro/mcp
33
+ ```
34
+
27
35
  #### Create a client
28
36
 
29
37
  ```typescript
@@ -2446,6 +2454,91 @@ await nivaro.request(createHierarchyConfig({
2446
2454
 
2447
2455
  ---
2448
2456
 
2457
+ ## SDK — Help Videos
2458
+
2459
+ Tutorial recordings: upload, edit, version, publish, choose where they show, require viewing and track progress. Authoring commands need an author (an administrator or a role in the author setting); reading and progress need only visibility.
2460
+
2461
+ ```typescript
2462
+ import {
2463
+ openHelpVideoUpload, finalizeHelpVideoUpload, createHelpVideo,
2464
+ setHelpVideoContexts, publishHelpVideo, helpVideosFor,
2465
+ } from '@nivaro/sdk'
2466
+
2467
+ // 1. Open an upload, send the bytes, finalize, create the video
2468
+ const { data: up } = await nivaro.request(openHelpVideoUpload('video/webm'))
2469
+ let part = up.next_part
2470
+ for (const chunk of chunks) {
2471
+ // Raw PUT — not a Command, because Commands JSON-encode their bodies.
2472
+ await fetch(`${baseUrl}/api/help-videos/uploads/${up.id}/parts/${part++}`, {
2473
+ method: 'PUT',
2474
+ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/octet-stream' },
2475
+ body: chunk, // at most 8 MB per part; the response is the upload session
2476
+ })
2477
+ }
2478
+ await nivaro.request(finalizeHelpVideoUpload(up.id, { duration_ms }))
2479
+ const { data: video } = await nivaro.request(createHelpVideo({ upload_id: up.id, title: 'Raise a PO' }))
2480
+
2481
+ // 2. Say where it shows, then publish
2482
+ await nivaro.request(setHelpVideoContexts(video.id, [{ kind: 'page', key: 'inbox', state_key: null }]))
2483
+ await nivaro.request(publishHelpVideo(video.id))
2484
+
2485
+ // 3. Show the right videos on a screen
2486
+ const { data } = await nivaro.request(helpVideosFor({ collection: 'purchase_orders', item: 42 }))
2487
+ ```
2488
+
2489
+ #### Response notes
2490
+
2491
+ - `stream_url`, `captions_url` and `poster_url` are ticketed (`?st=`): hand them to `<video>`, `<track>` and `<img>` as-is. Authors also get `draft_stream_url` and `draft_captions_url`.
2492
+ - `published.playable` is `false` when a viewer’s stream would answer 409 (the video is still being prepared); authors always get `true`.
2493
+ - `required` is true when the video is required for the caller’s own role. Authors also get `required_role_ids`. `my_progress` is the caller’s own progress (or `null`).
2494
+ - `recordHelpVideoProgress` takes `buckets` as a 20-character `0`/`1` string (the 5% sections seen) and answers `{ data: { completed } }`, or no body (204) for a masquerade session.
2495
+ - `listHelpVideos` and `helpVideosFor` carry `can_author`, so a screen can offer "Add a video" without a second call.
2496
+
2497
+ #### Errors callers must handle
2498
+
2499
+ | Status | code | When |
2500
+ | --- | --- | --- |
2501
+ | 409 | `HELP_VIDEO_PROCESSING` | A viewer requested `stream_url` before a current render exists and the original cannot be shown. Check `published.playable`, retry later. |
2502
+ | 409 | `HELP_VIDEO_EDITS_CONFLICT` | `saveHelpVideoDraft` with a stale `base_hash`. The body carries `current_hash`; reload the draft and merge. |
2503
+ | 409 | `UPLOAD_CLOSED` | The upload is already finalized or finishing; or, on discard, already used by a video or discarded. |
2504
+ | 422 | `UPLOAD_NOT_VIDEO` | A part is not a WebM or MP4 recording. |
2505
+ | 422 | `UPLOAD_TOO_LONG` | The recording is longer than 30 minutes (on finalize). |
2506
+ | 422 | `HELP_VIDEO_NOT_READY` | `publishHelpVideo` before the checklist is done; the body lists `missing`. |
2507
+ | 409 | `HELP_VIDEO_NOTHING_TO_PUBLISH` | `publishHelpVideo` with no draft, or a draft that is exactly the published version (`draft_matches_published`). With `watch_again` on a video someone must watch, it re-asks them instead. |
2508
+ | 422 | `HELP_VIDEO_EDITS_INVALID` | `saveHelpVideoDraft` with edits that cannot be kept, such as cuts that leave less than a second. The message says why; the stored draft is unchanged. |
2509
+ | 409 | `HELP_VIDEO_NOTHING_TO_RENDER` | `rerenderHelpVideo` for a version that does not exist. |
2510
+ | 403 | `HELP_VIDEO_AUTHOR_ONLY` | An authoring command by a non-author. |
2511
+ | 404 | `HELP_VIDEO_NOT_FOUND` | Unknown id, or a video the caller may not see. |
2512
+
2513
+ | Command | Route | Auth |
2514
+ | --- | --- | --- |
2515
+ | listHelpVideos(params?) | GET /help-videos | Authenticated |
2516
+ | readHelpVideo(id) | GET /help-videos/:id | Authenticated |
2517
+ | helpVideosFor(params) | GET /help-videos/for | Authenticated |
2518
+ | createHelpVideo(body) | POST /help-videos | Author |
2519
+ | updateHelpVideo(id, body) | PATCH /help-videos/:id | Author |
2520
+ | setHelpVideoContexts(id, contexts) | PUT /help-videos/:id/contexts | Author |
2521
+ | setHelpVideoRequirements(id, role_ids) | PUT /help-videos/:id/requirements | Author |
2522
+ | archiveHelpVideo(id, opts?) | DELETE /help-videos/:id | Author (purge: admin, archived videos only) |
2523
+ | readHelpVideoDraft(id) | GET /help-videos/:id/draft/edits | Author |
2524
+ | saveHelpVideoDraft(id, edits, base_hash?) | PUT /help-videos/:id/draft/edits | Author |
2525
+ | publishHelpVideo(id, opts?) | POST /help-videos/:id/publish | Author |
2526
+ | rerecordHelpVideo(id, upload_id) | POST /help-videos/:id/rerecord | Author |
2527
+ | listHelpVideoVersions(id) | GET /help-videos/:id/versions | Author |
2528
+ | restoreHelpVideoVersion(id, versionId) | POST /help-videos/:id/versions/:vid/restore | Author |
2529
+ | rerenderHelpVideo(id, opts?) | POST /help-videos/:id/render | Author |
2530
+ | recordHelpVideoProgress(id, body) | POST /help-videos/:id/progress | Authenticated |
2531
+ | readRequiredHelpVideos() | GET /help-videos/required/mine | Authenticated |
2532
+ | readHelpVideoAnalytics(id) | GET /help-videos/:id/analytics | Author |
2533
+ | openHelpVideoUpload(mime) | POST /help-videos/uploads | Author |
2534
+ | finalizeHelpVideoUpload(id, meta?) | POST /help-videos/uploads/:id/finalize | Author |
2535
+ | listMyHelpVideoUploads() | GET /help-videos/uploads/mine | Author |
2536
+ | abandonHelpVideoUpload(id) | DELETE /help-videos/uploads/:id | Author |
2537
+ | listHelpVideoPages() | GET /help-videos/pages | Authenticated |
2538
+ | registerHelpVideoPage(body) | POST /help-videos/pages | Author |
2539
+
2540
+ ---
2541
+
2449
2542
  ## SDK Coverage: 300+ Typed Commands
2450
2543
 
2451
2544
  The @nivaro/sdk command surface now covers every feature area — roughly 175 typed `Command<T>` factories spanning items, files, workflows, pipelines, flows, comments, webhooks, rules, custom queries, trees and hierarchies, submission forms, field watches, notification subscriptions, imports, SLA, alerts, AI endpoints (generate, summarize, validate, check-duplicates), translations, drafts, scheduled changes, record templates, saved views, API keys, widget feeds, sync jobs, ERP submissions, PDF templates, pages, queues (worklists, items, claims, saved views, trends, workload), roles & policies (RBAC/RLS), user management + out-of-office delegation, file management (list/meta/presign/transform URLs), dashboard widgets, extension item/bulk actions, throughput reporting, and more. If a REST route exists, there is a typed command for it.
package/dist/index.d.ts CHANGED
@@ -4492,6 +4492,263 @@ declare function fileTransformPath(id: string, options?: {
4492
4492
  quality?: number;
4493
4493
  }): string;
4494
4494
 
4495
+ /**
4496
+ * Help videos: tutorial recordings with edits, versions, where they show,
4497
+ * required viewing and progress. Upload parts are raw octet-stream PUTs to
4498
+ * /help-videos/uploads/:id/parts/:n (see README); everything else is here.
4499
+ *
4500
+ * Error codes callers must handle (all JSON `{ error, code }`):
4501
+ * - 409 `HELP_VIDEO_PROCESSING`: a viewer's `stream_url` answers this while the
4502
+ * video is still being rendered (check `published.playable` first).
4503
+ * - 409 `HELP_VIDEO_EDITS_CONFLICT`: `saveHelpVideoDraft` with a stale
4504
+ * `base_hash`; the body also carries `current_hash`.
4505
+ * - 409 `UPLOAD_CLOSED`: the upload was already finalized or is finishing.
4506
+ * - 422 `UPLOAD_NOT_VIDEO`: a part is not a WebM or MP4 recording.
4507
+ * - 422 `UPLOAD_TOO_LONG`: the recording is over 30 minutes (finalize).
4508
+ * Also: 403 `HELP_VIDEO_AUTHOR_ONLY` on any authoring command by a non-author,
4509
+ * 404 `HELP_VIDEO_NOT_FOUND` for an unknown or invisible video.
4510
+ */
4511
+
4512
+ type HelpVideoContext = {
4513
+ kind: 'collection' | 'page';
4514
+ key: string;
4515
+ state_key: string | null;
4516
+ };
4517
+ type HelpVideoVisibility = {
4518
+ mode: 'everyone' | 'roles';
4519
+ role_ids: string[];
4520
+ };
4521
+ interface HelpVideoVersion {
4522
+ id: string;
4523
+ version: number;
4524
+ edits: Record<string, unknown>;
4525
+ edits_hash: string;
4526
+ source_duration_ms: number | null;
4527
+ width: number | null;
4528
+ height: number | null;
4529
+ render_status: 'none' | 'queued' | 'rendering' | 'ready' | 'failed' | 'unavailable';
4530
+ render_progress: number | null;
4531
+ render_error: string | null;
4532
+ rendered_current: boolean;
4533
+ /** Published version only: false when a non-author would get a 409 HELP_VIDEO_PROCESSING. */
4534
+ playable?: boolean;
4535
+ note: string | null;
4536
+ created_at: string;
4537
+ /** Draft, re-record and restore results only (recorder data). Clicks on the
4538
+ * recorded tab: `t_ms` source time, `x`/`y` fractions (0–1) of the frame. */
4539
+ clicks?: Array<{
4540
+ t_ms: number;
4541
+ x: number;
4542
+ y: number;
4543
+ }> | null;
4544
+ /** Microphone loudness 0–1, one value per 100 ms of source time. */
4545
+ levels?: number[] | null;
4546
+ }
4547
+ interface HelpVideoProgress {
4548
+ position_ms: number;
4549
+ completed: boolean;
4550
+ percent: number;
4551
+ }
4552
+ interface HelpVideo {
4553
+ id: string;
4554
+ title: string;
4555
+ description: string | null;
4556
+ category: string | null;
4557
+ status: 'draft' | 'published' | 'archived';
4558
+ duration_ms: number | null;
4559
+ /** Ticketed URLs (`?st=`): play them as-is, do not rebuild them. */
4560
+ poster_url: string | null;
4561
+ stream_url: string | null;
4562
+ captions_url: string | null;
4563
+ contexts: HelpVideoContext[];
4564
+ /** Required for THIS viewer's role (not for the video in general). */
4565
+ required: boolean;
4566
+ published: HelpVideoVersion | null;
4567
+ /** Authors only. */
4568
+ visibility?: HelpVideoVisibility;
4569
+ required_role_ids?: string[];
4570
+ draft?: HelpVideoVersion | null;
4571
+ /** Author-only: the draft is exactly the published version; publishing it
4572
+ * answers 409 `HELP_VIDEO_NOTHING_TO_PUBLISH`. */
4573
+ draft_matches_published?: boolean;
4574
+ draft_stream_url?: string | null;
4575
+ draft_captions_url?: string | null;
4576
+ created_by_name?: string | null;
4577
+ updated_at: string;
4578
+ my_progress: HelpVideoProgress | null;
4579
+ }
4580
+ /** An upload session, as returned by open, each part PUT and "my uploads". */
4581
+ interface HelpVideoUploadSession {
4582
+ id: string;
4583
+ mime: string;
4584
+ bytes_received: number;
4585
+ next_part: number;
4586
+ /** `open` while parts arrive; `finalized` once uploaded (listed by
4587
+ * `listMyHelpVideoUploads` only while no video uses it). */
4588
+ status: string;
4589
+ /** Probed length of a finalized recording; null while open. */
4590
+ duration_ms: number | null;
4591
+ created_at: string;
4592
+ updated_at: string;
4593
+ }
4594
+ interface HelpVideoFinalizedUpload {
4595
+ file_id: string;
4596
+ duration_ms: number | null;
4597
+ width: number | null;
4598
+ height: number | null;
4599
+ has_audio: boolean;
4600
+ clicks: unknown;
4601
+ levels: unknown;
4602
+ }
4603
+ declare function listHelpVideos(params?: {
4604
+ search?: string;
4605
+ category?: string;
4606
+ status?: string;
4607
+ page?: number;
4608
+ limit?: number;
4609
+ }): Command<{
4610
+ data: HelpVideo[];
4611
+ total: number;
4612
+ categories: string[];
4613
+ can_author: boolean;
4614
+ }>;
4615
+ declare function readHelpVideo(id: string): Command<{
4616
+ data: HelpVideo;
4617
+ }>;
4618
+ declare function helpVideosFor(params: {
4619
+ collection?: string;
4620
+ item?: string | number;
4621
+ state?: string;
4622
+ page?: string;
4623
+ }): Command<{
4624
+ data: HelpVideo[];
4625
+ can_author: boolean;
4626
+ state: string | null;
4627
+ }>;
4628
+ declare function createHelpVideo(body: {
4629
+ upload_id: string;
4630
+ title?: string;
4631
+ contexts?: HelpVideoContext[];
4632
+ }): Command<{
4633
+ data: HelpVideo;
4634
+ }>;
4635
+ declare function updateHelpVideo(id: string, body: {
4636
+ title?: string;
4637
+ description?: string | null;
4638
+ category?: string | null;
4639
+ visibility?: HelpVideoVisibility;
4640
+ }): Command<{
4641
+ data: HelpVideo;
4642
+ }>;
4643
+ declare function setHelpVideoContexts(id: string, contexts: HelpVideoContext[]): Command<{
4644
+ data: {
4645
+ ok: true;
4646
+ };
4647
+ }>;
4648
+ declare function setHelpVideoRequirements(id: string, role_ids: string[]): Command<{
4649
+ data: {
4650
+ ok: true;
4651
+ added: string[];
4652
+ };
4653
+ }>;
4654
+ /** Archives the video; `purge: true` deletes it for good (administrators only, and only once it is archived). */
4655
+ declare function archiveHelpVideo(id: string, opts?: {
4656
+ purge?: boolean;
4657
+ }): Command<void>;
4658
+ declare function readHelpVideoDraft(id: string): Command<{
4659
+ data: HelpVideoVersion;
4660
+ }>;
4661
+ /** 409 `HELP_VIDEO_EDITS_CONFLICT` (body carries `current_hash`) when `base_hash` is stale. */
4662
+ declare function saveHelpVideoDraft(id: string, edits: Record<string, unknown>, base_hash?: string): Command<{
4663
+ data: HelpVideoVersion;
4664
+ }>;
4665
+ /** 422 `HELP_VIDEO_NOT_READY` (body lists `missing`) or 409 `HELP_VIDEO_NOTHING_TO_PUBLISH`
4666
+ * (no draft, or the draft equals what is published). With `watch_again` on an
4667
+ * unchanged video someone must watch, the requirement is re-armed instead: no
4668
+ * new version, no render. */
4669
+ declare function publishHelpVideo(id: string, opts?: {
4670
+ watch_again?: boolean;
4671
+ }): Command<{
4672
+ data: HelpVideo;
4673
+ }>;
4674
+ declare function rerecordHelpVideo(id: string, upload_id: string): Command<{
4675
+ data: HelpVideoVersion;
4676
+ }>;
4677
+ declare function listHelpVideoVersions(id: string): Command<{
4678
+ data: Array<HelpVideoVersion & {
4679
+ is_published: boolean;
4680
+ is_draft: boolean;
4681
+ created_by_name: string | null;
4682
+ }>;
4683
+ }>;
4684
+ declare function restoreHelpVideoVersion(id: string, versionId: string): Command<{
4685
+ data: HelpVideoVersion;
4686
+ }>;
4687
+ /** Re-queue the render of the published version (or the draft with `draft`).
4688
+ * 409 `HELP_VIDEO_NOTHING_TO_RENDER` when that version does not exist. */
4689
+ declare function rerenderHelpVideo(id: string, opts?: {
4690
+ draft?: boolean;
4691
+ }): Command<{
4692
+ data: {
4693
+ ok: true;
4694
+ };
4695
+ }>;
4696
+ /** `buckets` is a 20-character string of 0/1: the 5% sections watched so far.
4697
+ * Resolves with no body (204) for a masquerade session, which is never tracked. */
4698
+ declare function recordHelpVideoProgress(id: string, body: {
4699
+ position_ms: number;
4700
+ watched_ms_delta: number;
4701
+ buckets: string;
4702
+ version_id?: string;
4703
+ }): Command<{
4704
+ data: {
4705
+ completed: boolean;
4706
+ };
4707
+ } | undefined>;
4708
+ declare function readRequiredHelpVideos(): Command<{
4709
+ data: HelpVideo[];
4710
+ }>;
4711
+ declare function readHelpVideoAnalytics(id: string): Command<{
4712
+ data: {
4713
+ views: number;
4714
+ unique_viewers: number;
4715
+ completion_rate: number;
4716
+ drop_off: number[];
4717
+ watched_hours: number;
4718
+ };
4719
+ }>;
4720
+ declare function openHelpVideoUpload(mime: string): Command<{
4721
+ data: HelpVideoUploadSession;
4722
+ }>;
4723
+ /** 409 `UPLOAD_CLOSED`, 422 `UPLOAD_TOO_LONG`, 422 `UPLOAD_EMPTY`, 422 `UPLOAD_UNREADABLE`. */
4724
+ declare function finalizeHelpVideoUpload(id: string, meta?: {
4725
+ duration_ms?: number;
4726
+ clicks?: unknown;
4727
+ levels?: unknown;
4728
+ }): Command<{
4729
+ data: HelpVideoFinalizedUpload;
4730
+ }>;
4731
+ /** Your unfinished uploads and finished recordings never saved as a video
4732
+ * (save one with `createHelpVideo` / `rerecordHelpVideo`, no finalize). */
4733
+ declare function listMyHelpVideoUploads(): Command<{
4734
+ data: HelpVideoUploadSession[];
4735
+ }>;
4736
+ /** Discards an open upload, or a finished recording no video uses (its file
4737
+ * is deleted). 409 `UPLOAD_CLOSED` for anything else. */
4738
+ declare function abandonHelpVideoUpload(id: string): Command<void>;
4739
+ declare function listHelpVideoPages(): Command<{
4740
+ data: Array<{
4741
+ key: string;
4742
+ label: string;
4743
+ app: string | null;
4744
+ }>;
4745
+ }>;
4746
+ declare function registerHelpVideoPage(body: {
4747
+ key: string;
4748
+ label: string;
4749
+ app?: string;
4750
+ }): Command<void>;
4751
+
4495
4752
  interface ImportTemplateSummary {
4496
4753
  id: string;
4497
4754
  name: string;
@@ -7192,4 +7449,4 @@ declare function submitFormItem(collection: string, values: Record<string, unkno
7192
7449
  data: Record<string, unknown>;
7193
7450
  }>;
7194
7451
 
7195
- export { type AccessAudit, type AccessAuditFinding, type AccessAuditRun, type AccessAuditSubject, type AccessReason, type ActivityEntry, type ActivityQuery, type ActivityReportQuery, type ActivityReportRow, type ActivityReportSummary, type Addendum, type AddendumStatus, type AggregateQuery, type AggregateRow, type AiChatTraceEntry, type AiCollectionSettings, type AiColumnMapping, type AiDuplicateMatch, type AiQueryFilter, type AiQueryResult, type AiReviewFinding, type AiViolation, type AlertDefinition, type AlertLogEntry, type AlertSubscription, type AnomalyDefinition, type AnomalyRule, type ApiAnalyticsBucket, type ApiAnalyticsCollection, type ApiAnalyticsPath, type ApiAnalyticsSummary, type ApiErrorLog, type ApiKey, type ApiKeyScope, type ApprovalBrief, type ApprovalChain, type ApprovalChainStep, type ApprovalDecision, type ApprovalInstance, type ApprovalInstanceDetail, type ApprovalStatus, type ApprovalStepInput, type AtRiskCondition, type AtRiskOp, type AtRiskResult, type AtRiskRule, type AtRiskSummaryEntry, type AttributeDefinition, type AttributeValue, type BatchRead, type BatchReadResult, type BlackoutDate, type BoolFilterOps, type CMSCollection, type CascadeFilterRule, type ChangeOrder, type ChatChannel, type ChatChannelMember, type ChatDirectoryChannel, type ChatMessage, type ChatPin, type ChatReaction, type ChatRoomKind, type ChatRoomSummary, type ChatRoomType, type ChatSearchHit, type CollectionLayout, type CollectionPresetSummary, type Command, type Comment, type ConfigSnapshot, type ConfigTableClassification, type ContentBundle, type ContentExportFormat, type ContentExportOptions, type CoverageGapItem, type CoverageGapOwner, type CoverageGapReport, type CronJob, type CustomQuery, type DataQualityRule, type DataQualityRuleResult, type DataQualityRuleType, type DataQualityRun, type DataQualitySeverity, type DeadLetter, type DraftPublishConfig, type DraftStatus, type DryRunReport, type ErpSubmission, type ErpSubmissionStatus, type ExtensionManifest, type ExternalApi, type ExternalApiEndpoint, type ExternalApiSchema, type ExternalApiSlotContext, type ExternalApiSpecImportResult, type ExternalApiTestResult, type FieldChangeEntry, type FieldCondition, type FieldConfig, type FieldDependencyConfig, type FieldFilter, type FieldGroup, type FieldTranslations, type FieldVisibilityRules, type FieldWatch, type FileRecord, type FileUploadResult, type FileUsageEntry, type Filter, type FlowReplayResult, type FlowRun, type FlowTestStep, type FormFieldDescriptor, type FormFieldRelation, type FormGroupDescriptor, type FormLockCondition, type FormSchema, type FormValidationRule, type FormVisibilityRule, type GlobalSearchRecord, type GlobalSearchResults, type GraphQLResponse, type HierarchyConfigDef, type HierarchyFlatNode, type HierarchyLevelDef, type HierarchyNestedNode, type IDFilterOps, type ISODate, type ImportDefinition, type ImportJob, type ImportParseResponse, type ImportPreview, type ImportPreviewDiff, type ImportTemplateSummary, type InstanceOwner, type IntegrationApiHealth, type InternalWidget, type Issue, type IssueSeverity, type IssueStatus, type IssueSummary, type ItemLock, type LastTouch, type LayoutAssignment, type LayoutGroup, type LayoutVersion, type ListResponse, type ManagedUser, type MetricAlertRule, type MetricAlertSubscription, type MetricDefinition, type MyTask, type MyWorkOwnedEntry, type MyWorkSla, type MyWorkSummary, type NivaroClient, type NivaroClientOptions, type NivaroExtensionPlugin, type NivaroRealtime, type NivaroRuntime, type NotificationItem, type NotificationPage, type NotificationSubscription, type NumberFilterOps, type OmniSearchHit, type OnlinePresenceConfig, type OnlinePresenceUser, type Page, type PageLayout, type PageSlotKey, type PageWidget, type PdfTemplate, type PermissionSimulation, type PersistedQuery, type PickerExclusionStatus, type PipelineFlowEdge, type PipelineFlowState, type PipelineImpactResult, type PipelineOwnerGroup, type PipelineOwnerGroupUser, type PipelineSimulation, type PipelineState, type PipelineVersionEntry, type PluginSlots, type Policy, type PreflightCheck, type PreflightReport, type PreflightSeverity, type PresenceClient, type PresenceOptions, type PresenceSession, type PresenceSessionInfo, type PresenceViewer, type PromotionApplyResult, type PromotionPreview, type Query, type Queue, type QueueColumnPrefs, type QueueCondition, type QueueDetail, type QueueDisplayConfig, type QueueItem, type QueueItemsResult, type QueueOwner, type QueueRowClickMode, type QueueScope, type QueueSource, type QueueSourceType, type QueueStats, type QueueTrendPoint, type QueueView, type QueueViewKind, type QueueWorkloadRow, READ_MANY_MAX, type RealtimeEvent, type RecordGraphEdge, type RecordGraphNode, type RecordLink, type RecordLinkType, type RecordTemplate, type RecordViewRecap, type RegisteredAction, type RelatedCommentEntry, type RelationFilter, type RelationOption, type ReportAlert, type ReportAlertCondition, type ReportAlertLogEntry, type ReportAnnotation, type ReportColumnFormat, type ReportDateRange, type ReportDef, type ReportEntityFilter, type ReportFilterPreset, type ReportQueryColumn, type ReportQueryWidgetConfig, type ReportSnapshotEntry, type ReportSubscription, type ReportTemplateEntry, type ReportVersionEntry, type ReportWidget, type ReportWidgetConfig, type ReportWidgetData, type ReportWidgetPreset, type ReportWidgetType, type RequestTrace, type ResolvedOwner, type RetentionPolicy, type RetentionRun, type RetentionRunResult, type Revision, type Role, type Rule, type SavedView, type ScheduledChange, type ScheduledReport, type ScopeDimension, type ScopeDimensionInfo, type SemanticSearchMatch, type SessionRecording, type ShareLink, type SlaBatchStatus, type SlaRule, type SlaStatus, type StagedImportRun, type StagedImportStats, type StringFilterOps, type SubRow, type SubRowTemplate, type SyncJob, type Task, type TaskDoneWhenRule, type TaskPriority, type TaskStatus, type TimelineEvent, type TraceSpan, type TreeFlatNode, type TreeNestedNode, type TreeNodeConfig, type TreePermission, type TreePermissionAction, type UUID, type UserActivityEntry, type UserActivitySummary, type UserScopesInfo, type ViewSubscription, type VirtualCollection, type Webhook, type WebhookDelivery, type WidgetFeed, type WorkflowBinding, type WorkflowHistoryEntry, type WorkflowInstance, type WorkflowInstanceData, type WorkflowState, type WorkflowTransition, type Workspace, type WorkspaceQuotas, type WorkspaceTemplate, type WorkspaceUsage, _and, _contains, _ends_with, _eq, _gt, _gte, _in, _lt, _lte, _ncontains, _neq, _nin, _nnull, _none, _null, _or, _some, _starts_with, acquireItemLock, activateLayout, addChatChannelMember, addInstanceOwner, addSubRow, aggregateItems, aiBrief, aiBuildReport, aiChat, aiCheckDuplicates, aiGenerate, aiMapColumns, aiQuery, aiReportFilters, aiReview, aiSummarize, aiValidate, appendSessionRecordingEvents, applyContentBundle, applyRecordTemplate, applySubRowTemplate, approveAddendum, approveAiProposal, asc, backupExportPath, batchPickerExclusionStatus, bulkPickerExclusion, callExternalApi, callExternalApiEndpoint, cancelScheduledChange, cancelStagedImport, cascadeFieldDependencies, checkBlackoutDate, claimQueueItem, claimTask, clearTraces, cloneItem, cloneLayout, cloneReport, compareConfigSnapshot, completeTask, copyReportWidget, createAccessAudit, createAddendum, createAlertDefinition, createAlertSubscription, createAnomalyRule, createApiKey, createApprovalChain, createAtRiskRule, createAttributeDefinition, createBlackoutDate, createChatChannel, createChatRoomType, createCollectionLayout, createComment, createDataQualityRule, createExternalApi, createExternalApiEndpoint, createFieldGroup, createFieldWatch, createGroupDm, createHierarchyConfig, createImportDefinition, createImportJob, createImportJobFromUrl, createInternalWidget, createIssue, createItem, createMetricAlertRule, createNivaro, createNotification, createNotificationSubscription, createPage, createPdfTemplate, createPersistedQuery, createPresence, createQueue, createQueueView, createRealtime, createRecordLink, createRecordTemplate, createReport, createReportAlert, createReportAnnotation, createReportFromTemplate, createReportSnapshot, createReportWidgetPreset, createRetentionPolicy, createRole, createRolePolicy, createRule, createSavedView, createScheduledChange, createScheduledReport, createShareLink, createSlaRule, createSubRowTemplate, createSyncJob, createTask, createTreePermission, createUser, createViewSubscription, createVirtualCollection, createWebhook, createWidgetFeed, createWorkspace, createWorkspaceTemplate, decideApproval, deleteAccessAudit, deleteAddendum, deleteAlertDefinition, deleteAlertSubscription, deleteAnomalyRule, deleteApiKey, deleteApprovalChain, deleteAtRiskRule, deleteAttributeDefinition, deleteBlackoutDate, deleteChatMessage, deleteCollectionLayout, deleteComment, deleteDataQualityRule, deleteExternalApi, deleteExternalApiEndpoint, deleteExternalApiSchema, deleteFieldGroup, deleteFieldTranslations, deleteFieldWatch, deleteFile, deleteHierarchyConfig, deleteImportJob, deleteInternalWidget, deleteIssue, deleteItem, deleteMetricAlertRule, deleteNotification, deleteNotificationSubscription, deletePage, deletePdfTemplate, deletePersistedQuery, deleteQueue, deleteQueueView, deleteRecordLink, deleteRecordTemplate, deleteReport, deleteReportAlert, deleteReportAnnotation, deleteReportFilterPreset, deleteReportSnapshot, deleteReportTemplate, deleteReportWidgetPreset, deleteRetentionPolicy, deleteRole, deleteRolePolicy, deleteRule, deleteSavedView, deleteScheduledReport, deleteSessionRecording, deleteSlaRule, deleteSubRow, deleteSubRowTemplate, deleteSyncJob, deleteTask, deleteTreePermission, deleteUser, deleteViewSubscription, deleteVirtualCollection, deleteWebhook, deleteWidgetFeed, deleteWorkspace, deleteWorkspaceTemplate, deployImportProcedure, desc, disableTwoFactor, drillReportRow, editChatMessage, endSessionRecording, evaluateAlerts, evaluateAtRisk, evaluateFieldDefaults, evaluateFieldLock, evaluateFieldRules, evaluateFieldVisibility, excludeFromPicker, executeBulkAction, executeCustomQuery, executeImportTemplate, executeItemAction, executeScheduledChange, explainRecordAccess, explainReportTrend, exportBlueprint, exportConfigSnapshot, exportContent, exportContentBundle, exportSchemaSnapshot, fetchFormSchema, fileDownloadPath, fileTransformPath, generateToken, generateUserToken, getAlertDefinition, getAttributeValues, getBrunoCollection, getExternalApi, getExternalApiEndpoint, getFieldTranslations, getFlowRun, getLocales, getOpenApi, getPickerExclusionStatus, getPostmanCollection, getPresence, getRetentionPolicy, getSlaRule, getSlaStatus, getTranslations, getTypes, getWebhook, globalSearch, heartbeatItemLock, importExternalApiSpec, importSchemaSnapshot, includeInPicker, installBlueprint, installCollectionPreset, invokeInternalWidgetAction, isPageSlot, joinChatRoom, leaveChatRoom, listAccessAuditRuns, listAccessAudits, listActiveAtRiskRules, listActivePresence, listAddendums, listAlertDefinitions, listAlertSubscriptions, listAllNotificationSubscriptions, listAnomalyDefinitions, listAnomalyRules, listApiKeys, listApprovalChains, listApprovalInstances, listAtRiskRules, listAttributeDefinitions, listBlackoutDates, listBulkActions, listChangeOrders, listChatChannelMembers, listChatMessages, listChatPins, listChatRoles, listChatRoomTypes, listChatRooms, listCollectionPresets, listCollectionRecordTemplates, listComments, listCronJobs, listCustomQueries, listDataQualityRules, listDataQualityRuns, listDeadLetters, listExternalApiEndpoints, listExternalApiSchemas, listExternalApis, listFieldGroups, listFieldWatches, listFiles, listFlowRuns, listHierarchyConfigs, listImportDefinitionVersions, listImportDefinitions, listImportJobs, listImportTemplates, listInternalWidgets, listIssues, listItemActions, listItemScheduledChanges, listLayoutVersions, listMetricAlertRules, listMetricAlertSubscriptions, listMetricDefinitions, listMyTasks, listNotificationSubscriptions, listNotifications, listOrphanFiles, listPages, listPdfTemplates, listPersistedQueries, listPinnedItems, listPipelineVersions, listQueueViews, listQueues, listRecordLinks, listRecordTemplates, listRegisteredExtensions, listRegisteredFlowOperations, listRegisteredFlowTriggers, listRelatedComments, listReportAlerts, listReportAnnotations, listReportFilterPresets, listReportSnapshots, listReportTemplates, listReportVersions, listReportWidgetPresets, listReports, listRequestedTasks, listRetentionPolicies, listRetentionRuns, listRolePolicies, listRoleUsers, listRoles, listRules, listSavedViews, listScheduledChanges, listScheduledReports, listScopeDimensions, listSessionRecordings, listShareLinks, listSlaRules, listStagedImports, listSubRowTemplates, listSubRows, listSyncJobs, listTasks, listTeamTasks, listThroughputCollections, listTraces, listTreePermissions, listViewSubscriptions, listVirtualCollections, listWebhookDeliveries, listWebhooks, listWidgetFeeds, listWorkspaceTemplates, listWorkspaces, markAllNotificationsRead, markChatRoomRead, markNotificationRead, markNotificationsRead, moveTreeNode, nudgeTask, omniSearch, presignFileUpload, previewContentBundle, previewImportJob, previewReportWidget, publishItem, queryVirtualCollection, readAccessAuditFindings, readActiveLayout, readActivity, readActivityReportSummary, readAddendum, readAiSettings, readAlertLog, readAllStateOwners, readAnomalyLog, readApiAnalyticsErrors, readApiAnalyticsSummary, readApiAnalyticsTimeseries, readApiAnalyticsTopCollections, readApiAnalyticsTopPaths, readApiKey, readApprovalBrief, readApprovalChain, readAtRiskSummary, readBackupManifest, readChatConfig, readChatDirectory, readChatPeerRead, readCollection, readCollectionLayout, readCollectionLayouts, readCollections, readConfigInventory, readCoverageGaps, readDataQualityRun, readDetailLayout, readDistinctValues, readDraftPublishConfig, readErpSubmissionHistory, readFieldChangeHistory, readFieldConfig, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readLastTouch, readLayoutAssignments, readLayoutGroups, readMany, readMe, readMetricAlertLog, readMyScopes, readMyWork, readNotificationCount, readNotificationSubscriptionStats, readOnlinePresence, readOwnerGroups, readPage, readPageWidgetData, readPdfTemplate, readPersistedQuery, readPipelineFlowMap, readPipelineReplay, readPipelineTemplate, readPipelineTemplates, readPipelineVersion, readPreflight, readQueue, readQueueCollectionStates, readQueueColumnPrefs, readQueueItems, readQueueTrends, readQueueWorkload, readRecordGraph, readRelationOptions, readReport, readReportAlertLog, readReportAlertsLog, readReportFilterOptions, readReportFiring, readReportSnapshot, readReportSubscription, readReportUsage, readReportWidgetData, readRevision, readRevisions, readRole, readScopeDimensionCoverage, readSessionRecordingEvents, readSettings, readSingleton, readSlaStatusBatch, readStagedImport, readStagedImportStats, readStateOwnerGroups, readStateOwners, readStateOwnersBatch, readSyncJob, readTask, readTaskCounts, readTaskHistory, readThroughputReport, readTimeline, readTrace, readTreeAncestors, readTreeChildren, readTreeConfig, readTreeDescendants, readTreeNested, readTreeNodes, readTwoFactorStatus, readUnreadNotificationCount, readUser, readUserActivity, readUserActivitySummary, readUserCard, readUserScopes, readUsers, readWorkflowBindings, readWorkflowInstance, readWorkflowInstances, readWorkspace, readWorkspaceUsage, rebuildTreePaths, rehearseCreateItem, reindexSemanticSearch, rejectAddendum, rejectAiProposal, releaseItemLock, releaseQueueItem, rematerializeQueue, removeChatChannelMember, removeInstanceOwner, renderInternalWidget, renderPdfTemplate, reorderFieldGroups, reorderSubRows, reorderTreeSiblings, replaceSubRows, replayActivityEvent, replayFlow, reportClientError, requestRecordAccess, requeueStagedImport, resetReportCache, resolveReportAlert, restoreImportDefinitionVersion, restoreLayoutVersion, restorePipelineVersion, restoreReportVersion, retryDeadLetter, retryErpSubmission, retryWebhookDelivery, revokeApiKey, revokeShareLink, revokeToken, revokeUserToken, rollbackRevision, rotateWidgetFeedToken, runAccessAudit, runActivityReport, runActivityReportCsv, runCronJob, runDataQuality, runRetentionPolicy, runScheduledReport, runSyncJob, saveMyScopeDefaults, saveReportFilterPreset, saveReportTemplate, saveReportWidgets, saveUserScope, searchChatMessages, semanticSearch, sendBulkNotification, sendChatMessage, sendTestMail, sessionRecordingEnabled, setMyDelegate, setQueueDefaultView, setReportSubscription, setTranslations, setupTwoFactor, simulatePermissions, simulatePipeline, simulatePipelineImpact, startApproval, startMasquerade, startSessionRecording, startWorkflow, stopMasquerade, submitAddendum, submitFormItem, submitItemForReview, submitToErp, subscribeFieldWatch, subscribeMetricAlert, suggestImportValidation, suggestQueueLabels, switchWorkspace, testExternalApi, testFlow, testWebhook, toggleChatPin, toggleChatReaction, togglePinnedItem, toggleReportAlert, touchRecordView, transitionWorkflow, unpublishItem, unsubscribeFieldWatch, unsubscribeMetricAlert, updateAccessAudit, updateAddendum, updateAiSettings, updateAlertDefinition, updateAnomalyLogEntry, updateAnomalyRule, updateApiKey, updateApprovalChain, updateAtRiskRule, updateAttributeDefinition, updateAttributeValues, updateChatChannel, updateChatRoom, updateChatRoomType, updateCollectionLayout, updateComment, updateDataQualityRule, updateDraftPublishConfig, updateErpSubmissionStatus, updateExternalApi, updateExternalApiEndpoint, updateFieldConfig, updateFieldGroup, updateFieldWatch, updateFileMeta, updateHierarchyConfig, updateImportDefinition, updateInternalWidget, updateIssue, updateItem, updateItemLockConfig, updateLayoutAssignments, updateLayoutUngroupedSort, updateMe, updateMetricAlertRule, updateMetricAlertSubscription, updateNotificationSubscription, updatePage, updatePdfTemplate, updatePersistedQuery, updateQueue, updateQueueSources, updateQueueView, updateRecordTemplate, updateReport, updateReportAlert, updateReportWidgetPreset, updateRetentionPolicy, updateRole, updateRolePolicy, updateRoleUiPermissions, updateRule, updateSavedView, updateScheduledReport, updateSettings, updateSingleton, updateSlaRule, updateSyncJob, updateTask, updateTreePermission, updateUser, updateVirtualCollection, updateWebhook, updateWidgetFeed, updateWorkflowBinding, updateWorkspace, validateVirtualCollectionSql, verifyTwoFactor };
7452
+ export { type AccessAudit, type AccessAuditFinding, type AccessAuditRun, type AccessAuditSubject, type AccessReason, type ActivityEntry, type ActivityQuery, type ActivityReportQuery, type ActivityReportRow, type ActivityReportSummary, type Addendum, type AddendumStatus, type AggregateQuery, type AggregateRow, type AiChatTraceEntry, type AiCollectionSettings, type AiColumnMapping, type AiDuplicateMatch, type AiQueryFilter, type AiQueryResult, type AiReviewFinding, type AiViolation, type AlertDefinition, type AlertLogEntry, type AlertSubscription, type AnomalyDefinition, type AnomalyRule, type ApiAnalyticsBucket, type ApiAnalyticsCollection, type ApiAnalyticsPath, type ApiAnalyticsSummary, type ApiErrorLog, type ApiKey, type ApiKeyScope, type ApprovalBrief, type ApprovalChain, type ApprovalChainStep, type ApprovalDecision, type ApprovalInstance, type ApprovalInstanceDetail, type ApprovalStatus, type ApprovalStepInput, type AtRiskCondition, type AtRiskOp, type AtRiskResult, type AtRiskRule, type AtRiskSummaryEntry, type AttributeDefinition, type AttributeValue, type BatchRead, type BatchReadResult, type BlackoutDate, type BoolFilterOps, type CMSCollection, type CascadeFilterRule, type ChangeOrder, type ChatChannel, type ChatChannelMember, type ChatDirectoryChannel, type ChatMessage, type ChatPin, type ChatReaction, type ChatRoomKind, type ChatRoomSummary, type ChatRoomType, type ChatSearchHit, type CollectionLayout, type CollectionPresetSummary, type Command, type Comment, type ConfigSnapshot, type ConfigTableClassification, type ContentBundle, type ContentExportFormat, type ContentExportOptions, type CoverageGapItem, type CoverageGapOwner, type CoverageGapReport, type CronJob, type CustomQuery, type DataQualityRule, type DataQualityRuleResult, type DataQualityRuleType, type DataQualityRun, type DataQualitySeverity, type DeadLetter, type DraftPublishConfig, type DraftStatus, type DryRunReport, type ErpSubmission, type ErpSubmissionStatus, type ExtensionManifest, type ExternalApi, type ExternalApiEndpoint, type ExternalApiSchema, type ExternalApiSlotContext, type ExternalApiSpecImportResult, type ExternalApiTestResult, type FieldChangeEntry, type FieldCondition, type FieldConfig, type FieldDependencyConfig, type FieldFilter, type FieldGroup, type FieldTranslations, type FieldVisibilityRules, type FieldWatch, type FileRecord, type FileUploadResult, type FileUsageEntry, type Filter, type FlowReplayResult, type FlowRun, type FlowTestStep, type FormFieldDescriptor, type FormFieldRelation, type FormGroupDescriptor, type FormLockCondition, type FormSchema, type FormValidationRule, type FormVisibilityRule, type GlobalSearchRecord, type GlobalSearchResults, type GraphQLResponse, type HelpVideo, type HelpVideoContext, type HelpVideoFinalizedUpload, type HelpVideoProgress, type HelpVideoUploadSession, type HelpVideoVersion, type HelpVideoVisibility, type HierarchyConfigDef, type HierarchyFlatNode, type HierarchyLevelDef, type HierarchyNestedNode, type IDFilterOps, type ISODate, type ImportDefinition, type ImportJob, type ImportParseResponse, type ImportPreview, type ImportPreviewDiff, type ImportTemplateSummary, type InstanceOwner, type IntegrationApiHealth, type InternalWidget, type Issue, type IssueSeverity, type IssueStatus, type IssueSummary, type ItemLock, type LastTouch, type LayoutAssignment, type LayoutGroup, type LayoutVersion, type ListResponse, type ManagedUser, type MetricAlertRule, type MetricAlertSubscription, type MetricDefinition, type MyTask, type MyWorkOwnedEntry, type MyWorkSla, type MyWorkSummary, type NivaroClient, type NivaroClientOptions, type NivaroExtensionPlugin, type NivaroRealtime, type NivaroRuntime, type NotificationItem, type NotificationPage, type NotificationSubscription, type NumberFilterOps, type OmniSearchHit, type OnlinePresenceConfig, type OnlinePresenceUser, type Page, type PageLayout, type PageSlotKey, type PageWidget, type PdfTemplate, type PermissionSimulation, type PersistedQuery, type PickerExclusionStatus, type PipelineFlowEdge, type PipelineFlowState, type PipelineImpactResult, type PipelineOwnerGroup, type PipelineOwnerGroupUser, type PipelineSimulation, type PipelineState, type PipelineVersionEntry, type PluginSlots, type Policy, type PreflightCheck, type PreflightReport, type PreflightSeverity, type PresenceClient, type PresenceOptions, type PresenceSession, type PresenceSessionInfo, type PresenceViewer, type PromotionApplyResult, type PromotionPreview, type Query, type Queue, type QueueColumnPrefs, type QueueCondition, type QueueDetail, type QueueDisplayConfig, type QueueItem, type QueueItemsResult, type QueueOwner, type QueueRowClickMode, type QueueScope, type QueueSource, type QueueSourceType, type QueueStats, type QueueTrendPoint, type QueueView, type QueueViewKind, type QueueWorkloadRow, READ_MANY_MAX, type RealtimeEvent, type RecordGraphEdge, type RecordGraphNode, type RecordLink, type RecordLinkType, type RecordTemplate, type RecordViewRecap, type RegisteredAction, type RelatedCommentEntry, type RelationFilter, type RelationOption, type ReportAlert, type ReportAlertCondition, type ReportAlertLogEntry, type ReportAnnotation, type ReportColumnFormat, type ReportDateRange, type ReportDef, type ReportEntityFilter, type ReportFilterPreset, type ReportQueryColumn, type ReportQueryWidgetConfig, type ReportSnapshotEntry, type ReportSubscription, type ReportTemplateEntry, type ReportVersionEntry, type ReportWidget, type ReportWidgetConfig, type ReportWidgetData, type ReportWidgetPreset, type ReportWidgetType, type RequestTrace, type ResolvedOwner, type RetentionPolicy, type RetentionRun, type RetentionRunResult, type Revision, type Role, type Rule, type SavedView, type ScheduledChange, type ScheduledReport, type ScopeDimension, type ScopeDimensionInfo, type SemanticSearchMatch, type SessionRecording, type ShareLink, type SlaBatchStatus, type SlaRule, type SlaStatus, type StagedImportRun, type StagedImportStats, type StringFilterOps, type SubRow, type SubRowTemplate, type SyncJob, type Task, type TaskDoneWhenRule, type TaskPriority, type TaskStatus, type TimelineEvent, type TraceSpan, type TreeFlatNode, type TreeNestedNode, type TreeNodeConfig, type TreePermission, type TreePermissionAction, type UUID, type UserActivityEntry, type UserActivitySummary, type UserScopesInfo, type ViewSubscription, type VirtualCollection, type Webhook, type WebhookDelivery, type WidgetFeed, type WorkflowBinding, type WorkflowHistoryEntry, type WorkflowInstance, type WorkflowInstanceData, type WorkflowState, type WorkflowTransition, type Workspace, type WorkspaceQuotas, type WorkspaceTemplate, type WorkspaceUsage, _and, _contains, _ends_with, _eq, _gt, _gte, _in, _lt, _lte, _ncontains, _neq, _nin, _nnull, _none, _null, _or, _some, _starts_with, abandonHelpVideoUpload, acquireItemLock, activateLayout, addChatChannelMember, addInstanceOwner, addSubRow, aggregateItems, aiBrief, aiBuildReport, aiChat, aiCheckDuplicates, aiGenerate, aiMapColumns, aiQuery, aiReportFilters, aiReview, aiSummarize, aiValidate, appendSessionRecordingEvents, applyContentBundle, applyRecordTemplate, applySubRowTemplate, approveAddendum, approveAiProposal, archiveHelpVideo, asc, backupExportPath, batchPickerExclusionStatus, bulkPickerExclusion, callExternalApi, callExternalApiEndpoint, cancelScheduledChange, cancelStagedImport, cascadeFieldDependencies, checkBlackoutDate, claimQueueItem, claimTask, clearTraces, cloneItem, cloneLayout, cloneReport, compareConfigSnapshot, completeTask, copyReportWidget, createAccessAudit, createAddendum, createAlertDefinition, createAlertSubscription, createAnomalyRule, createApiKey, createApprovalChain, createAtRiskRule, createAttributeDefinition, createBlackoutDate, createChatChannel, createChatRoomType, createCollectionLayout, createComment, createDataQualityRule, createExternalApi, createExternalApiEndpoint, createFieldGroup, createFieldWatch, createGroupDm, createHelpVideo, createHierarchyConfig, createImportDefinition, createImportJob, createImportJobFromUrl, createInternalWidget, createIssue, createItem, createMetricAlertRule, createNivaro, createNotification, createNotificationSubscription, createPage, createPdfTemplate, createPersistedQuery, createPresence, createQueue, createQueueView, createRealtime, createRecordLink, createRecordTemplate, createReport, createReportAlert, createReportAnnotation, createReportFromTemplate, createReportSnapshot, createReportWidgetPreset, createRetentionPolicy, createRole, createRolePolicy, createRule, createSavedView, createScheduledChange, createScheduledReport, createShareLink, createSlaRule, createSubRowTemplate, createSyncJob, createTask, createTreePermission, createUser, createViewSubscription, createVirtualCollection, createWebhook, createWidgetFeed, createWorkspace, createWorkspaceTemplate, decideApproval, deleteAccessAudit, deleteAddendum, deleteAlertDefinition, deleteAlertSubscription, deleteAnomalyRule, deleteApiKey, deleteApprovalChain, deleteAtRiskRule, deleteAttributeDefinition, deleteBlackoutDate, deleteChatMessage, deleteCollectionLayout, deleteComment, deleteDataQualityRule, deleteExternalApi, deleteExternalApiEndpoint, deleteExternalApiSchema, deleteFieldGroup, deleteFieldTranslations, deleteFieldWatch, deleteFile, deleteHierarchyConfig, deleteImportJob, deleteInternalWidget, deleteIssue, deleteItem, deleteMetricAlertRule, deleteNotification, deleteNotificationSubscription, deletePage, deletePdfTemplate, deletePersistedQuery, deleteQueue, deleteQueueView, deleteRecordLink, deleteRecordTemplate, deleteReport, deleteReportAlert, deleteReportAnnotation, deleteReportFilterPreset, deleteReportSnapshot, deleteReportTemplate, deleteReportWidgetPreset, deleteRetentionPolicy, deleteRole, deleteRolePolicy, deleteRule, deleteSavedView, deleteScheduledReport, deleteSessionRecording, deleteSlaRule, deleteSubRow, deleteSubRowTemplate, deleteSyncJob, deleteTask, deleteTreePermission, deleteUser, deleteViewSubscription, deleteVirtualCollection, deleteWebhook, deleteWidgetFeed, deleteWorkspace, deleteWorkspaceTemplate, deployImportProcedure, desc, disableTwoFactor, drillReportRow, editChatMessage, endSessionRecording, evaluateAlerts, evaluateAtRisk, evaluateFieldDefaults, evaluateFieldLock, evaluateFieldRules, evaluateFieldVisibility, excludeFromPicker, executeBulkAction, executeCustomQuery, executeImportTemplate, executeItemAction, executeScheduledChange, explainRecordAccess, explainReportTrend, exportBlueprint, exportConfigSnapshot, exportContent, exportContentBundle, exportSchemaSnapshot, fetchFormSchema, fileDownloadPath, fileTransformPath, finalizeHelpVideoUpload, generateToken, generateUserToken, getAlertDefinition, getAttributeValues, getBrunoCollection, getExternalApi, getExternalApiEndpoint, getFieldTranslations, getFlowRun, getLocales, getOpenApi, getPickerExclusionStatus, getPostmanCollection, getPresence, getRetentionPolicy, getSlaRule, getSlaStatus, getTranslations, getTypes, getWebhook, globalSearch, heartbeatItemLock, helpVideosFor, importExternalApiSpec, importSchemaSnapshot, includeInPicker, installBlueprint, installCollectionPreset, invokeInternalWidgetAction, isPageSlot, joinChatRoom, leaveChatRoom, listAccessAuditRuns, listAccessAudits, listActiveAtRiskRules, listActivePresence, listAddendums, listAlertDefinitions, listAlertSubscriptions, listAllNotificationSubscriptions, listAnomalyDefinitions, listAnomalyRules, listApiKeys, listApprovalChains, listApprovalInstances, listAtRiskRules, listAttributeDefinitions, listBlackoutDates, listBulkActions, listChangeOrders, listChatChannelMembers, listChatMessages, listChatPins, listChatRoles, listChatRoomTypes, listChatRooms, listCollectionPresets, listCollectionRecordTemplates, listComments, listCronJobs, listCustomQueries, listDataQualityRules, listDataQualityRuns, listDeadLetters, listExternalApiEndpoints, listExternalApiSchemas, listExternalApis, listFieldGroups, listFieldWatches, listFiles, listFlowRuns, listHelpVideoPages, listHelpVideoVersions, listHelpVideos, listHierarchyConfigs, listImportDefinitionVersions, listImportDefinitions, listImportJobs, listImportTemplates, listInternalWidgets, listIssues, listItemActions, listItemScheduledChanges, listLayoutVersions, listMetricAlertRules, listMetricAlertSubscriptions, listMetricDefinitions, listMyHelpVideoUploads, listMyTasks, listNotificationSubscriptions, listNotifications, listOrphanFiles, listPages, listPdfTemplates, listPersistedQueries, listPinnedItems, listPipelineVersions, listQueueViews, listQueues, listRecordLinks, listRecordTemplates, listRegisteredExtensions, listRegisteredFlowOperations, listRegisteredFlowTriggers, listRelatedComments, listReportAlerts, listReportAnnotations, listReportFilterPresets, listReportSnapshots, listReportTemplates, listReportVersions, listReportWidgetPresets, listReports, listRequestedTasks, listRetentionPolicies, listRetentionRuns, listRolePolicies, listRoleUsers, listRoles, listRules, listSavedViews, listScheduledChanges, listScheduledReports, listScopeDimensions, listSessionRecordings, listShareLinks, listSlaRules, listStagedImports, listSubRowTemplates, listSubRows, listSyncJobs, listTasks, listTeamTasks, listThroughputCollections, listTraces, listTreePermissions, listViewSubscriptions, listVirtualCollections, listWebhookDeliveries, listWebhooks, listWidgetFeeds, listWorkspaceTemplates, listWorkspaces, markAllNotificationsRead, markChatRoomRead, markNotificationRead, markNotificationsRead, moveTreeNode, nudgeTask, omniSearch, openHelpVideoUpload, presignFileUpload, previewContentBundle, previewImportJob, previewReportWidget, publishHelpVideo, publishItem, queryVirtualCollection, readAccessAuditFindings, readActiveLayout, readActivity, readActivityReportSummary, readAddendum, readAiSettings, readAlertLog, readAllStateOwners, readAnomalyLog, readApiAnalyticsErrors, readApiAnalyticsSummary, readApiAnalyticsTimeseries, readApiAnalyticsTopCollections, readApiAnalyticsTopPaths, readApiKey, readApprovalBrief, readApprovalChain, readAtRiskSummary, readBackupManifest, readChatConfig, readChatDirectory, readChatPeerRead, readCollection, readCollectionLayout, readCollectionLayouts, readCollections, readConfigInventory, readCoverageGaps, readDataQualityRun, readDetailLayout, readDistinctValues, readDraftPublishConfig, readErpSubmissionHistory, readFieldChangeHistory, readFieldConfig, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readHelpVideo, readHelpVideoAnalytics, readHelpVideoDraft, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readLastTouch, readLayoutAssignments, readLayoutGroups, readMany, readMe, readMetricAlertLog, readMyScopes, readMyWork, readNotificationCount, readNotificationSubscriptionStats, readOnlinePresence, readOwnerGroups, readPage, readPageWidgetData, readPdfTemplate, readPersistedQuery, readPipelineFlowMap, readPipelineReplay, readPipelineTemplate, readPipelineTemplates, readPipelineVersion, readPreflight, readQueue, readQueueCollectionStates, readQueueColumnPrefs, readQueueItems, readQueueTrends, readQueueWorkload, readRecordGraph, readRelationOptions, readReport, readReportAlertLog, readReportAlertsLog, readReportFilterOptions, readReportFiring, readReportSnapshot, readReportSubscription, readReportUsage, readReportWidgetData, readRequiredHelpVideos, readRevision, readRevisions, readRole, readScopeDimensionCoverage, readSessionRecordingEvents, readSettings, readSingleton, readSlaStatusBatch, readStagedImport, readStagedImportStats, readStateOwnerGroups, readStateOwners, readStateOwnersBatch, readSyncJob, readTask, readTaskCounts, readTaskHistory, readThroughputReport, readTimeline, readTrace, readTreeAncestors, readTreeChildren, readTreeConfig, readTreeDescendants, readTreeNested, readTreeNodes, readTwoFactorStatus, readUnreadNotificationCount, readUser, readUserActivity, readUserActivitySummary, readUserCard, readUserScopes, readUsers, readWorkflowBindings, readWorkflowInstance, readWorkflowInstances, readWorkspace, readWorkspaceUsage, rebuildTreePaths, recordHelpVideoProgress, registerHelpVideoPage, rehearseCreateItem, reindexSemanticSearch, rejectAddendum, rejectAiProposal, releaseItemLock, releaseQueueItem, rematerializeQueue, removeChatChannelMember, removeInstanceOwner, renderInternalWidget, renderPdfTemplate, reorderFieldGroups, reorderSubRows, reorderTreeSiblings, replaceSubRows, replayActivityEvent, replayFlow, reportClientError, requestRecordAccess, requeueStagedImport, rerecordHelpVideo, rerenderHelpVideo, resetReportCache, resolveReportAlert, restoreHelpVideoVersion, restoreImportDefinitionVersion, restoreLayoutVersion, restorePipelineVersion, restoreReportVersion, retryDeadLetter, retryErpSubmission, retryWebhookDelivery, revokeApiKey, revokeShareLink, revokeToken, revokeUserToken, rollbackRevision, rotateWidgetFeedToken, runAccessAudit, runActivityReport, runActivityReportCsv, runCronJob, runDataQuality, runRetentionPolicy, runScheduledReport, runSyncJob, saveHelpVideoDraft, saveMyScopeDefaults, saveReportFilterPreset, saveReportTemplate, saveReportWidgets, saveUserScope, searchChatMessages, semanticSearch, sendBulkNotification, sendChatMessage, sendTestMail, sessionRecordingEnabled, setHelpVideoContexts, setHelpVideoRequirements, setMyDelegate, setQueueDefaultView, setReportSubscription, setTranslations, setupTwoFactor, simulatePermissions, simulatePipeline, simulatePipelineImpact, startApproval, startMasquerade, startSessionRecording, startWorkflow, stopMasquerade, submitAddendum, submitFormItem, submitItemForReview, submitToErp, subscribeFieldWatch, subscribeMetricAlert, suggestImportValidation, suggestQueueLabels, switchWorkspace, testExternalApi, testFlow, testWebhook, toggleChatPin, toggleChatReaction, togglePinnedItem, toggleReportAlert, touchRecordView, transitionWorkflow, unpublishItem, unsubscribeFieldWatch, unsubscribeMetricAlert, updateAccessAudit, updateAddendum, updateAiSettings, updateAlertDefinition, updateAnomalyLogEntry, updateAnomalyRule, updateApiKey, updateApprovalChain, updateAtRiskRule, updateAttributeDefinition, updateAttributeValues, updateChatChannel, updateChatRoom, updateChatRoomType, updateCollectionLayout, updateComment, updateDataQualityRule, updateDraftPublishConfig, updateErpSubmissionStatus, updateExternalApi, updateExternalApiEndpoint, updateFieldConfig, updateFieldGroup, updateFieldWatch, updateFileMeta, updateHelpVideo, updateHierarchyConfig, updateImportDefinition, updateInternalWidget, updateIssue, updateItem, updateItemLockConfig, updateLayoutAssignments, updateLayoutUngroupedSort, updateMe, updateMetricAlertRule, updateMetricAlertSubscription, updateNotificationSubscription, updatePage, updatePdfTemplate, updatePersistedQuery, updateQueue, updateQueueSources, updateQueueView, updateRecordTemplate, updateReport, updateReportAlert, updateReportWidgetPreset, updateRetentionPolicy, updateRole, updateRolePolicy, updateRoleUiPermissions, updateRule, updateSavedView, updateScheduledReport, updateSettings, updateSingleton, updateSlaRule, updateSyncJob, updateTask, updateTreePermission, updateUser, updateVirtualCollection, updateWebhook, updateWidgetFeed, updateWorkflowBinding, updateWorkspace, validateVirtualCollectionSql, verifyTwoFactor };
package/dist/index.js CHANGED
@@ -1372,6 +1372,80 @@ function fileTransformPath(id, options = {}) {
1372
1372
  return `/api/files/${id}/transform${qs ? `?${qs}` : ""}`;
1373
1373
  }
1374
1374
 
1375
+ // src/commands/help-videos.ts
1376
+ function listHelpVideos(params) {
1377
+ return cmd("GET", "/help-videos", params);
1378
+ }
1379
+ function readHelpVideo(id) {
1380
+ return cmd("GET", `/help-videos/${id}`);
1381
+ }
1382
+ function helpVideosFor(params) {
1383
+ return cmd("GET", "/help-videos/for", params);
1384
+ }
1385
+ function createHelpVideo(body) {
1386
+ return cmd("POST", "/help-videos", void 0, body);
1387
+ }
1388
+ function updateHelpVideo(id, body) {
1389
+ return cmd("PATCH", `/help-videos/${id}`, void 0, body);
1390
+ }
1391
+ function setHelpVideoContexts(id, contexts) {
1392
+ return cmd("PUT", `/help-videos/${id}/contexts`, void 0, { contexts });
1393
+ }
1394
+ function setHelpVideoRequirements(id, role_ids) {
1395
+ return cmd("PUT", `/help-videos/${id}/requirements`, void 0, { role_ids });
1396
+ }
1397
+ function archiveHelpVideo(id, opts) {
1398
+ return cmd("DELETE", `/help-videos/${id}`, opts?.purge ? { purge: 1 } : void 0);
1399
+ }
1400
+ function readHelpVideoDraft(id) {
1401
+ return cmd("GET", `/help-videos/${id}/draft/edits`);
1402
+ }
1403
+ function saveHelpVideoDraft(id, edits, base_hash) {
1404
+ return cmd("PUT", `/help-videos/${id}/draft/edits`, void 0, { edits, base_hash });
1405
+ }
1406
+ function publishHelpVideo(id, opts) {
1407
+ return cmd("POST", `/help-videos/${id}/publish`, void 0, opts ?? {});
1408
+ }
1409
+ function rerecordHelpVideo(id, upload_id) {
1410
+ return cmd("POST", `/help-videos/${id}/rerecord`, void 0, { upload_id });
1411
+ }
1412
+ function listHelpVideoVersions(id) {
1413
+ return cmd("GET", `/help-videos/${id}/versions`);
1414
+ }
1415
+ function restoreHelpVideoVersion(id, versionId) {
1416
+ return cmd("POST", `/help-videos/${id}/versions/${versionId}/restore`);
1417
+ }
1418
+ function rerenderHelpVideo(id, opts) {
1419
+ return cmd("POST", `/help-videos/${id}/render`, opts?.draft ? { draft: 1 } : void 0);
1420
+ }
1421
+ function recordHelpVideoProgress(id, body) {
1422
+ return cmd("POST", `/help-videos/${id}/progress`, void 0, body);
1423
+ }
1424
+ function readRequiredHelpVideos() {
1425
+ return cmd("GET", "/help-videos/required/mine");
1426
+ }
1427
+ function readHelpVideoAnalytics(id) {
1428
+ return cmd("GET", `/help-videos/${id}/analytics`);
1429
+ }
1430
+ function openHelpVideoUpload(mime) {
1431
+ return cmd("POST", "/help-videos/uploads", void 0, { mime });
1432
+ }
1433
+ function finalizeHelpVideoUpload(id, meta) {
1434
+ return cmd("POST", `/help-videos/uploads/${id}/finalize`, void 0, meta ?? {});
1435
+ }
1436
+ function listMyHelpVideoUploads() {
1437
+ return cmd("GET", "/help-videos/uploads/mine");
1438
+ }
1439
+ function abandonHelpVideoUpload(id) {
1440
+ return cmd("DELETE", `/help-videos/uploads/${id}`);
1441
+ }
1442
+ function listHelpVideoPages() {
1443
+ return cmd("GET", "/help-videos/pages");
1444
+ }
1445
+ function registerHelpVideoPage(body) {
1446
+ return cmd("POST", "/help-videos/pages", void 0, body);
1447
+ }
1448
+
1375
1449
  // src/commands/import-templates.ts
1376
1450
  var listImportTemplates = (collection) => cmd("GET", "/import-templates", { collection });
1377
1451
  var executeImportTemplate = (id, payload) => cmd("POST", `/import-templates/${id}/execute`, void 0, payload);
@@ -2573,6 +2647,7 @@ export {
2573
2647
  _or,
2574
2648
  _some,
2575
2649
  _starts_with,
2650
+ abandonHelpVideoUpload,
2576
2651
  acquireItemLock,
2577
2652
  activateLayout,
2578
2653
  addChatChannelMember,
@@ -2596,6 +2671,7 @@ export {
2596
2671
  applySubRowTemplate,
2597
2672
  approveAddendum,
2598
2673
  approveAiProposal,
2674
+ archiveHelpVideo,
2599
2675
  asc,
2600
2676
  backupExportPath,
2601
2677
  batchPickerExclusionStatus,
@@ -2635,6 +2711,7 @@ export {
2635
2711
  createFieldGroup,
2636
2712
  createFieldWatch,
2637
2713
  createGroupDm,
2714
+ createHelpVideo,
2638
2715
  createHierarchyConfig,
2639
2716
  createImportDefinition,
2640
2717
  createImportJob,
@@ -2773,6 +2850,7 @@ export {
2773
2850
  fetchFormSchema,
2774
2851
  fileDownloadPath,
2775
2852
  fileTransformPath,
2853
+ finalizeHelpVideoUpload,
2776
2854
  generateToken,
2777
2855
  generateUserToken,
2778
2856
  getAlertDefinition,
@@ -2795,6 +2873,7 @@ export {
2795
2873
  getWebhook,
2796
2874
  globalSearch,
2797
2875
  heartbeatItemLock,
2876
+ helpVideosFor,
2798
2877
  importExternalApiSpec,
2799
2878
  importSchemaSnapshot,
2800
2879
  includeInPicker,
@@ -2843,6 +2922,9 @@ export {
2843
2922
  listFieldWatches,
2844
2923
  listFiles,
2845
2924
  listFlowRuns,
2925
+ listHelpVideoPages,
2926
+ listHelpVideoVersions,
2927
+ listHelpVideos,
2846
2928
  listHierarchyConfigs,
2847
2929
  listImportDefinitionVersions,
2848
2930
  listImportDefinitions,
@@ -2856,6 +2938,7 @@ export {
2856
2938
  listMetricAlertRules,
2857
2939
  listMetricAlertSubscriptions,
2858
2940
  listMetricDefinitions,
2941
+ listMyHelpVideoUploads,
2859
2942
  listMyTasks,
2860
2943
  listNotificationSubscriptions,
2861
2944
  listNotifications,
@@ -2918,10 +3001,12 @@ export {
2918
3001
  moveTreeNode,
2919
3002
  nudgeTask,
2920
3003
  omniSearch,
3004
+ openHelpVideoUpload,
2921
3005
  presignFileUpload,
2922
3006
  previewContentBundle,
2923
3007
  previewImportJob,
2924
3008
  previewReportWidget,
3009
+ publishHelpVideo,
2925
3010
  publishItem,
2926
3011
  queryVirtualCollection,
2927
3012
  readAccessAuditFindings,
@@ -2963,6 +3048,9 @@ export {
2963
3048
  readFieldWatch,
2964
3049
  readFileMeta,
2965
3050
  readFileUsage,
3051
+ readHelpVideo,
3052
+ readHelpVideoAnalytics,
3053
+ readHelpVideoDraft,
2966
3054
  readHierarchyConfig,
2967
3055
  readHierarchyNodeAncestors,
2968
3056
  readHierarchyNodeChildren,
@@ -3018,6 +3106,7 @@ export {
3018
3106
  readReportSubscription,
3019
3107
  readReportUsage,
3020
3108
  readReportWidgetData,
3109
+ readRequiredHelpVideos,
3021
3110
  readRevision,
3022
3111
  readRevisions,
3023
3112
  readRole,
@@ -3058,6 +3147,8 @@ export {
3058
3147
  readWorkspace,
3059
3148
  readWorkspaceUsage,
3060
3149
  rebuildTreePaths,
3150
+ recordHelpVideoProgress,
3151
+ registerHelpVideoPage,
3061
3152
  rehearseCreateItem,
3062
3153
  reindexSemanticSearch,
3063
3154
  rejectAddendum,
@@ -3078,8 +3169,11 @@ export {
3078
3169
  reportClientError,
3079
3170
  requestRecordAccess,
3080
3171
  requeueStagedImport,
3172
+ rerecordHelpVideo,
3173
+ rerenderHelpVideo,
3081
3174
  resetReportCache,
3082
3175
  resolveReportAlert,
3176
+ restoreHelpVideoVersion,
3083
3177
  restoreImportDefinitionVersion,
3084
3178
  restoreLayoutVersion,
3085
3179
  restorePipelineVersion,
@@ -3101,6 +3195,7 @@ export {
3101
3195
  runRetentionPolicy,
3102
3196
  runScheduledReport,
3103
3197
  runSyncJob,
3198
+ saveHelpVideoDraft,
3104
3199
  saveMyScopeDefaults,
3105
3200
  saveReportFilterPreset,
3106
3201
  saveReportTemplate,
@@ -3112,6 +3207,8 @@ export {
3112
3207
  sendChatMessage,
3113
3208
  sendTestMail,
3114
3209
  sessionRecordingEnabled,
3210
+ setHelpVideoContexts,
3211
+ setHelpVideoRequirements,
3115
3212
  setMyDelegate,
3116
3213
  setQueueDefaultView,
3117
3214
  setReportSubscription,
@@ -3171,6 +3268,7 @@ export {
3171
3268
  updateFieldGroup,
3172
3269
  updateFieldWatch,
3173
3270
  updateFileMeta,
3271
+ updateHelpVideo,
3174
3272
  updateHierarchyConfig,
3175
3273
  updateImportDefinition,
3176
3274
  updateInternalWidget,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "TypeScript SDK for Nivaro CMS — typed REST client, GraphQL, realtime subscriptions, and presence.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",