@nivaro/sdk 0.1.26 → 0.1.28

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/dist/index.d.ts CHANGED
@@ -2619,6 +2619,15 @@ interface ChatMessage {
2619
2619
  deleted_at?: ISODate | null;
2620
2620
  attachments: string[];
2621
2621
  reactions: ChatReaction[];
2622
+ /** Thread reply: the root it answers. */
2623
+ parent_id?: number | null;
2624
+ /** Thread summary on a root. */
2625
+ thread?: {
2626
+ count: number;
2627
+ last_reply_at: ISODate | null;
2628
+ } | null;
2629
+ /** The connected app (an AI assistant over MCP) that posted it for the sender. */
2630
+ via_app?: string | null;
2622
2631
  }
2623
2632
  interface ChatPin {
2624
2633
  pin_id: number;
@@ -2658,19 +2667,33 @@ declare function listChatRooms(): Command<{
2658
2667
  declare function readChatDirectory(search?: string): Command<{
2659
2668
  data: ChatDirectoryChannel[];
2660
2669
  }>;
2661
- /** Newest messages in a room, ascending for rendering. `before` = message id cursor. */
2670
+ /**
2671
+ * Newest messages in a room, ascending for rendering. `before` = message id cursor;
2672
+ * `thread` = a root message id (its replies instead of the timeline).
2673
+ */
2662
2674
  declare function listChatMessages(room: string, options?: {
2663
2675
  before?: number;
2664
2676
  limit?: number;
2677
+ thread?: number;
2665
2678
  }): Command<{
2666
2679
  data: ChatMessage[];
2680
+ meta?: {
2681
+ has_older: boolean;
2682
+ has_newer: boolean;
2683
+ anchor: number | null;
2684
+ };
2667
2685
  }>;
2668
- /** Send a message. `attachments` = uploaded nivaro_files ids; mentions notify explicitly. */
2686
+ /**
2687
+ * Send a message. `attachments` = uploaded nivaro_files ids; mentions notify explicitly;
2688
+ * `parent_id` replies in a thread; `client_id` makes a retry return the first send.
2689
+ */
2669
2690
  declare function sendChatMessage(body: {
2670
2691
  room: string;
2671
2692
  message?: string;
2672
2693
  mentions?: string[];
2673
2694
  attachments?: string[];
2695
+ parent_id?: number | null;
2696
+ client_id?: string | null;
2674
2697
  }): Command<{
2675
2698
  data: ChatMessage;
2676
2699
  }>;
@@ -3013,7 +3036,9 @@ interface AccessReason {
3013
3036
  }
3014
3037
  /** Why a record is (in)visible to the current user — each access gate re-run
3015
3038
  * separately, reasons only, never record data. */
3016
- declare function explainRecordAccess(collection: string, id: string | number): Command<{
3039
+ declare function explainRecordAccess(collection: string, id: string | number, opts?: {
3040
+ user_id?: string;
3041
+ }): Command<{
3017
3042
  data: {
3018
3043
  access: boolean;
3019
3044
  reasons: AccessReason[];
@@ -3677,6 +3702,72 @@ declare function readDistinctValues(collection: string, field: string, options?:
3677
3702
  data: unknown[];
3678
3703
  }>;
3679
3704
 
3705
+ /**
3706
+ * Dashboard commands: the Dashboards builder's boards and their widget figures.
3707
+ * Every figure computes AS THE CALLER — read permission, the role's row filter,
3708
+ * User Scopes and the role's field list bind it, exactly as for the person in
3709
+ * the app. Report Studio reports are in commands/admin (`listReports`).
3710
+ */
3711
+
3712
+ type DashboardWidgetType = 'count' | 'sum' | 'avg' | 'latest' | 'bar_chart' | 'line_chart' | 'saved_view' | (string & {});
3713
+ /** A dashboard filter: binds only widgets whose collection has the field. */
3714
+ interface DashboardFilter {
3715
+ field: string;
3716
+ value: unknown;
3717
+ op?: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'in';
3718
+ }
3719
+ interface DashboardWidget {
3720
+ id: UUID;
3721
+ dashboard: UUID;
3722
+ type: DashboardWidgetType;
3723
+ title: string;
3724
+ collection: string | null;
3725
+ /** The summed/averaged field, the `latest` column list, or a saved view id. */
3726
+ field: string | null;
3727
+ filters: unknown;
3728
+ col: number;
3729
+ row: number;
3730
+ width: number;
3731
+ height: number;
3732
+ refresh_seconds?: number | null;
3733
+ }
3734
+ interface Dashboard {
3735
+ id: UUID;
3736
+ name: string;
3737
+ user: UUID | null;
3738
+ is_shared: boolean;
3739
+ role_id: UUID | null;
3740
+ /** The saved filter bar the board opens with. */
3741
+ global_filters: DashboardFilter[] | null;
3742
+ widgets: DashboardWidget[];
3743
+ created_at: ISODate;
3744
+ updated_at: ISODate;
3745
+ }
3746
+ /** count / sum / avg / saved_view → value; latest → rows; bar/line charts → daily rows. */
3747
+ interface DashboardWidgetData {
3748
+ value?: number | null;
3749
+ rows?: Array<Record<string, unknown>>;
3750
+ sum_field?: string | null;
3751
+ view?: {
3752
+ id: number;
3753
+ name: string;
3754
+ collection: string;
3755
+ };
3756
+ reason?: string;
3757
+ }
3758
+ /** The caller's own dashboards plus those shared with everyone or with their role. */
3759
+ declare function listDashboards(): Command<{
3760
+ data: Dashboard[];
3761
+ }>;
3762
+ /** One dashboard with its widgets (403 when it is neither the caller's nor shared with them). */
3763
+ declare function readDashboard(id: UUID): Command<{
3764
+ data: Dashboard;
3765
+ }>;
3766
+ /** One widget's figure, computed as the caller; `filters` = the dashboard filter bar. */
3767
+ declare function readDashboardWidgetData(widgetId: UUID, filters?: DashboardFilter[] | null): Command<{
3768
+ data: DashboardWidgetData | null;
3769
+ }>;
3770
+
3680
3771
  /**
3681
3772
  * Layout editor commands: the bundle + atomic ops save model, the overview and
3682
3773
  * "which form opens" explain reads, the editor's read-only canvas projection,
@@ -3741,6 +3832,10 @@ interface GroupPatch {
3741
3832
  hidden_for_roles?: string | null;
3742
3833
  locked_for_roles?: string | null;
3743
3834
  read_width?: string | null;
3835
+ /** #2608: an editor-only note, JSON {text, by, by_name, at}. Never sent to record pages. */
3836
+ editor_note?: string | null;
3837
+ /** Label translations per locale, JSON `{ "es": { "label": "…" } }` (#2665). */
3838
+ i18n?: string | null;
3744
3839
  }
3745
3840
  interface GroupRow {
3746
3841
  id?: number;
@@ -3764,6 +3859,10 @@ interface GroupRow {
3764
3859
  hidden_for_roles: string | null;
3765
3860
  locked_for_roles: string | null;
3766
3861
  read_width: string | null;
3862
+ /** #2608 — absent on databases without the column (migration 460). */
3863
+ editor_note?: string | null;
3864
+ /** Label translations per locale (#2665); absent before migration 465. */
3865
+ i18n?: string | null;
3767
3866
  }
3768
3867
  /** The layout settings PATCH /collection-layouts/:id accepts. */
3769
3868
  type LayoutPatch = Partial<{
@@ -3821,6 +3920,12 @@ type LayoutPatch = Partial<{
3821
3920
  sheet_width: number | null;
3822
3921
  header_fields: string[] | null;
3823
3922
  hide_empty: boolean;
3923
+ /** Required change note (#2654): null = off, 'note' = a reason, 'note_ticket' = reason + ticket. */
3924
+ change_note: 'note' | 'note_ticket' | null;
3925
+ /** How people enter data on the form (#2702 #2707 #2708 #2710 #2728): presets, keyboard, tab order, mode, badge. */
3926
+ entry_config: Record<string, unknown> | null;
3927
+ /** A section as an email body (#2725): the group key whose fields notification emails show. */
3928
+ email_summary_group: string | null;
3824
3929
  }>;
3825
3930
  type LayoutRow = Record<string, unknown> & {
3826
3931
  id: number;
@@ -3876,11 +3981,13 @@ interface LayoutBundle {
3876
3981
  rev: string;
3877
3982
  }
3878
3983
  declare const PLACEMENT_PATCH_KEYS: readonly ["label_override", "is_visible", "default_expanded", "col_span", "overrides", "show_row_revisions", "allow_revision_restore", "lock_conditions", "input_bindings", "widget_id", "show_approval_chain"];
3879
- declare const GROUP_PATCH_KEYS: readonly ["label", "type", "icon", "is_collapsed", "tab_mode", "hide_when_empty", "visibility_mode", "summary_fields", "summary_hide_empty", "swap_config", "skip_if_filled", "content", "content_tone", "visible_when", "hidden_for_roles", "locked_for_roles", "read_width"];
3880
- declare const LAYOUT_PATCH_KEYS: readonly ["name", "slug", "create_label", "create_hidden", "sort", "is_active", "disable_comments", "disable_tasks", "tab_mode", "validate_before_next", "summary_enabled", "summary_hide_empty", "ai_enabled", "accordion_mode", "disable_revisions", "disable_clone", "disable_delete", "row_order_field", "pdf_theme", "pdf_template_id", "pdf_cover_enabled", "pdf_cover_title_field", "pdf_cover_subtitle", "pdf_show_logo", "pdf_page_size", "pdf_orientation", "pdf_button_label", "conditions", "allow_schedule", "allow_disable_pickers", "layout_type", "addendum_layout_id", "workflow_template_id", "single_active_addendum", "addendum_default_view", "record_conditions", "default_values", "display_mode", "parent_layout_id", "hide_integrity_banner", "hide_sla_banner", "changes_tray", "dossier_enabled", "dossier_label", "quick_picker", "sheet_width", "header_fields", "hide_empty"];
3984
+ /** #2608: the longest stored editor note (the JSON around its text included). */
3985
+ declare const EDITOR_NOTE_MAX = 4000;
3986
+ declare const GROUP_PATCH_KEYS: readonly ["label", "type", "icon", "is_collapsed", "tab_mode", "hide_when_empty", "visibility_mode", "summary_fields", "summary_hide_empty", "swap_config", "skip_if_filled", "content", "content_tone", "visible_when", "hidden_for_roles", "locked_for_roles", "read_width", "editor_note", "i18n"];
3987
+ declare const LAYOUT_PATCH_KEYS: readonly ["name", "slug", "create_label", "create_hidden", "sort", "is_active", "disable_comments", "disable_tasks", "tab_mode", "validate_before_next", "summary_enabled", "summary_hide_empty", "ai_enabled", "accordion_mode", "disable_revisions", "disable_clone", "disable_delete", "row_order_field", "pdf_theme", "pdf_template_id", "pdf_cover_enabled", "pdf_cover_title_field", "pdf_cover_subtitle", "pdf_show_logo", "pdf_page_size", "pdf_orientation", "pdf_button_label", "conditions", "allow_schedule", "allow_disable_pickers", "layout_type", "addendum_layout_id", "workflow_template_id", "single_active_addendum", "addendum_default_view", "record_conditions", "default_values", "display_mode", "parent_layout_id", "hide_integrity_banner", "hide_sla_banner", "changes_tray", "dossier_enabled", "dossier_label", "quick_picker", "sheet_width", "header_fields", "hide_empty", "change_note", "entry_config", "email_summary_group"];
3881
3988
  /** Why a layout won resolution. */
3882
3989
  interface LayoutPickReason {
3883
- kind: 'record_rule' | 'role' | 'default' | 'fallback' | 'slug' | 'type_use';
3990
+ kind: 'record_rule' | 'role' | 'default' | 'fallback' | 'slug' | 'type_use' | 'phone';
3884
3991
  rules?: Array<{
3885
3992
  field: string;
3886
3993
  op: string;
@@ -3889,6 +3996,10 @@ interface LayoutPickReason {
3889
3996
  role_ids?: string[];
3890
3997
  role_names?: string[];
3891
3998
  type_use?: string;
3999
+ /** kind 'phone': the desktop form this phone version stands in for, and why that won. */
4000
+ phone_of?: number;
4001
+ phone_of_name?: string;
4002
+ desktop_kind?: LayoutPickReason['kind'];
3892
4003
  }
3893
4004
  interface LayoutOverviewRow {
3894
4005
  layout_id: number;
@@ -3914,6 +4025,23 @@ interface LayoutOverviewRow {
3914
4025
  label: string;
3915
4026
  }>;
3916
4027
  warnings: string[];
4028
+ /** The days the form resolves on, and where today falls. */
4029
+ active_window?: {
4030
+ from: string | null;
4031
+ until: string | null;
4032
+ state: 'before' | 'open' | 'after';
4033
+ };
4034
+ /** This form's phone version / the form this one is the phone version of. */
4035
+ phone_version?: {
4036
+ layout_id: number;
4037
+ name: string;
4038
+ } | null;
4039
+ phone_of?: number | null;
4040
+ /** Edits refused until this day. */
4041
+ frozen?: {
4042
+ until: string;
4043
+ reason: string;
4044
+ } | null;
3917
4045
  }
3918
4046
  /**
3919
4047
  * "Which form does each kind of record get?" Every layout of a collection,
@@ -3928,13 +4056,17 @@ declare function readLayoutOverview(collection: string): Command<{
3928
4056
  /**
3929
4057
  * Which layout a saved record opens with, and why: the resolution itself, with
3930
4058
  * each candidate's check. `role_id` tests as that role (none = as an admin);
3931
- * `slug` pins a layout by its link name. Admin only.
4059
+ * `slug` pins a layout by its link name; `viewport: 'phone'` answers as on a
4060
+ * small screen (phone versions); `at` (yyyy-mm-dd) as on that day (active
4061
+ * dates). Admin only.
3932
4062
  */
3933
4063
  declare function explainLayout(query: {
3934
4064
  collection: string;
3935
4065
  item?: string | number;
3936
4066
  role_id?: string;
3937
4067
  slug?: string;
4068
+ viewport?: 'phone';
4069
+ at?: string;
3938
4070
  }): Command<{
3939
4071
  data: {
3940
4072
  layout_id: number | null;
@@ -3944,6 +4076,8 @@ declare function explainLayout(query: {
3944
4076
  matched: boolean;
3945
4077
  why: string;
3946
4078
  }>;
4079
+ at: string;
4080
+ viewport: 'phone' | null;
3947
4081
  };
3948
4082
  }>;
3949
4083
  /**
@@ -3956,12 +4090,18 @@ declare function readLayoutBundle(layoutId: number): Command<LayoutBundle>;
3956
4090
  * Rejections arrive as thrown errors carrying `status` and `response`:
3957
4091
  * 409 `{ error: 'stale', bundle }` when the layout changed since `base_rev`
3958
4092
  * (re-apply on `response.bundle`), 400 `{ error, op_index }` when an op is
3959
- * refused. Admin only.
4093
+ * refused, 400 `{ error, code: 'CHANGE_NOTE_REQUIRED' }` when the layout's
4094
+ * `change_note` asks for a `reason` (and `ticket`) the batch lacks, 400
4095
+ * `{ error, code: 'LAYOUT_FROZEN', freeze }` while the layout is frozen and
4096
+ * the batch carries no `freeze_override` note. Admin only.
3960
4097
  */
3961
4098
  declare function submitLayoutOps(layoutId: number, body: {
3962
4099
  ops: LayoutOp[];
3963
4100
  base_rev: string;
3964
4101
  note?: string | null;
4102
+ reason?: string | null;
4103
+ ticket?: string | null;
4104
+ freeze_override?: string | null;
3965
4105
  }): Command<LayoutBundle>;
3966
4106
  /** One saved version of a layout (the snapshot itself). Admin only. */
3967
4107
  declare function readLayoutVersion(layoutId: number, versionId: number): Command<{
@@ -4436,10 +4576,12 @@ declare function readCollectionLayouts(collection: string): Command<{
4436
4576
  }>;
4437
4577
  /** Read the active layout for a collection with groups + assignments. */
4438
4578
  declare function readActiveLayout(collection: string,
4439
- /** `slug` pins a layout by link name; `item` resolves record-conditional layouts. */
4579
+ /** `slug` pins a layout by link name; `item` resolves record-conditional layouts;
4580
+ * `viewport: 'phone'` gets a form's phone version where it has one. */
4440
4581
  opts?: {
4441
4582
  slug?: string;
4442
4583
  item?: string | number;
4584
+ viewport?: 'phone';
4443
4585
  }): Command<{
4444
4586
  data: {
4445
4587
  layout: CollectionLayout;
@@ -4845,6 +4987,82 @@ declare function startMasquerade(userId: string): Command<{
4845
4987
  declare function stopMasquerade(): Command<{
4846
4988
  ok: boolean;
4847
4989
  }>;
4990
+ /** A tool this instance adds to MCP: an extension's, or a custom query / flow
4991
+ * an administrator exposed under its own name. */
4992
+ interface InstanceToolEntry {
4993
+ name: string;
4994
+ title: string;
4995
+ description: string;
4996
+ /** JSON Schema object for the tool's input. */
4997
+ input_schema: Record<string, unknown>;
4998
+ read_only: boolean;
4999
+ source: {
5000
+ kind: 'extension';
5001
+ extension: string;
5002
+ } | {
5003
+ kind: 'custom_query';
5004
+ slug: string;
5005
+ } | {
5006
+ kind: 'flow';
5007
+ flow_id: string;
5008
+ };
5009
+ }
5010
+ /** The instance tools the caller may use. */
5011
+ declare function listInstanceTools(): Command<{
5012
+ data: InstanceToolEntry[];
5013
+ }>;
5014
+ /** Run one instance tool as the caller. */
5015
+ declare function callInstanceTool(name: string, input?: Record<string, unknown>): Command<{
5016
+ data: unknown;
5017
+ }>;
5018
+ /** A custom query or flow an administrator exposed as a named MCP tool. */
5019
+ interface NamedMcpToolConfig {
5020
+ name: string;
5021
+ title?: string;
5022
+ description: string;
5023
+ kind: 'custom_query' | 'flow';
5024
+ /** The query's slug, or the flow's id. */
5025
+ ref: string;
5026
+ access: 'admin' | 'authenticated';
5027
+ read_only: boolean;
5028
+ enabled: boolean;
5029
+ params?: Array<{
5030
+ name: string;
5031
+ type: 'string' | 'number' | 'integer' | 'boolean' | 'date';
5032
+ required?: boolean;
5033
+ description?: string;
5034
+ }>;
5035
+ }
5036
+ interface McpToolsConfig {
5037
+ /** False until the database has migration 473. */
5038
+ ready: boolean;
5039
+ tools: NamedMcpToolConfig[];
5040
+ extension_tools: Array<{
5041
+ name: string;
5042
+ title: string;
5043
+ extension: string;
5044
+ description: string;
5045
+ read_only: boolean;
5046
+ enabled: boolean;
5047
+ stats: {
5048
+ calls: number;
5049
+ errors: number;
5050
+ last_used_at: string | null;
5051
+ last_error: string | null;
5052
+ };
5053
+ }>;
5054
+ builtin_names: string[];
5055
+ }
5056
+ /** Named MCP tools + extension tools (admin). */
5057
+ declare function readMcpToolsConfig(): Command<{
5058
+ data: McpToolsConfig;
5059
+ }>;
5060
+ /** Replace the named MCP tools (admin). */
5061
+ declare function saveMcpToolsConfig(tools: NamedMcpToolConfig[]): Command<{
5062
+ data: {
5063
+ tools: NamedMcpToolConfig[];
5064
+ };
5065
+ }>;
4848
5066
 
4849
5067
  /**
4850
5068
  * File manager commands: listing, metadata, presigned uploads, updates,
@@ -5860,6 +6078,161 @@ declare function listRetentionRuns(policyId: number): Command<{
5860
6078
  data: RetentionRun[];
5861
6079
  }>;
5862
6080
 
6081
+ /**
6082
+ * Layout AI helpers (#2694 #2695 #2676 #2693) under /ai-design/layouts. Admin
6083
+ * only. The reads describe forms in plain terms; a proposal stores layout ops
6084
+ * for an administrator to review in the layout editor and never changes a
6085
+ * layout by itself.
6086
+ */
6087
+
6088
+ /** A form as an admin reads it: who gets it, settings that are on, sections and fields. */
6089
+ interface LayoutDescription {
6090
+ id: number;
6091
+ name: string;
6092
+ collection: string;
6093
+ kind: string;
6094
+ slug: string | null;
6095
+ default: boolean;
6096
+ who: string;
6097
+ record_rule: string | null;
6098
+ parent_layout_id: number | null;
6099
+ settings_on: string[];
6100
+ groups: Array<{
6101
+ key: string;
6102
+ label: string;
6103
+ type: string;
6104
+ parent: string | null;
6105
+ collapsed?: true;
6106
+ shows_when?: string;
6107
+ hidden_for?: string[];
6108
+ read_only_for?: string[];
6109
+ fields: Array<{
6110
+ field: string;
6111
+ label: string;
6112
+ width?: string;
6113
+ required?: true;
6114
+ readonly?: true;
6115
+ hidden?: true;
6116
+ inherited?: true;
6117
+ }>;
6118
+ }>;
6119
+ field_count: number;
6120
+ not_on_layout: Array<{
6121
+ field: string;
6122
+ label: string;
6123
+ }>;
6124
+ draft: boolean;
6125
+ truncated?: true;
6126
+ }
6127
+ interface WhichLayoutForm {
6128
+ as: string;
6129
+ record: string | null;
6130
+ layout: {
6131
+ id: number;
6132
+ name: string;
6133
+ } | null;
6134
+ why: string;
6135
+ checked: Array<{
6136
+ layout: string;
6137
+ matched: boolean;
6138
+ why: string;
6139
+ }>;
6140
+ }
6141
+ interface LayoutFieldExplanation {
6142
+ field: string;
6143
+ label: string;
6144
+ as: string;
6145
+ record: string | null;
6146
+ layout: {
6147
+ id: number;
6148
+ name: string;
6149
+ } | null;
6150
+ verdict: 'shown' | 'shown read-only' | 'hidden' | 'not on the form' | 'cannot open the record';
6151
+ reasons: string[];
6152
+ draft: boolean;
6153
+ }
6154
+ interface LayoutProposal {
6155
+ id: string;
6156
+ layout_id: number;
6157
+ note: string | null;
6158
+ status: 'proposed' | 'applied' | 'rejected' | 'expired';
6159
+ created_at: string;
6160
+ proposer: {
6161
+ name: string;
6162
+ via: string;
6163
+ };
6164
+ ops: LayoutOp[];
6165
+ sentences: string[];
6166
+ dropped: string[];
6167
+ /** Why it would not apply to the layout as it is now, or null. */
6168
+ conflict: string | null;
6169
+ }
6170
+ /** A layout described for a reader (or an assistant). Admin only. */
6171
+ declare function describeLayoutForm(layoutId: number): Command<{
6172
+ data: LayoutDescription;
6173
+ }>;
6174
+ /** Which form a record opens with for a role, and why. Admin only. */
6175
+ declare function whichLayoutForm(query: {
6176
+ collection: string;
6177
+ item?: string | number;
6178
+ role?: string;
6179
+ }): Command<{
6180
+ data: WhichLayoutForm;
6181
+ }>;
6182
+ /** Why a field shows, hides or is read-only for a role on a record. Admin only. */
6183
+ declare function explainLayoutField(query: {
6184
+ collection: string;
6185
+ field: string;
6186
+ role?: string;
6187
+ item?: string | number;
6188
+ layout_id?: number;
6189
+ }): Command<{
6190
+ data: LayoutFieldExplanation;
6191
+ }>;
6192
+ /**
6193
+ * Propose layout ops for an administrator to review in the layout editor.
6194
+ * Nothing changes until they apply it. Unknown fields and settings are left
6195
+ * out (`dropped`); ops that would not apply are refused with 400.
6196
+ */
6197
+ declare function proposeLayoutOps(layoutId: number, body: {
6198
+ ops: LayoutOp[] | unknown[];
6199
+ note?: string;
6200
+ }): Command<{
6201
+ data: {
6202
+ id: string;
6203
+ status: 'proposed';
6204
+ changes: string[];
6205
+ dropped: string[];
6206
+ note: string;
6207
+ };
6208
+ }>;
6209
+ /** Open proposals for a layout (`status: 'all'` adds applied, rejected and expired). */
6210
+ declare function readLayoutProposals(layoutId: number, status?: 'all'): Command<{
6211
+ data: LayoutProposal[];
6212
+ }>;
6213
+ /** Mark a proposal applied (after the editor applied it to its draft) or rejected. */
6214
+ declare function resolveLayoutProposal(layoutId: number, proposalId: string, outcome: 'applied' | 'rejected'): Command<{
6215
+ data: {
6216
+ id: string;
6217
+ status: string;
6218
+ };
6219
+ }>;
6220
+
6221
+ /**
6222
+ * MCP server support: which optional tool sets a credential gets.
6223
+ */
6224
+
6225
+ interface McpCapabilities {
6226
+ /** The read-only admin/ops and layout tools (an administrator not on a collection-scoped key). */
6227
+ admin_tools: boolean;
6228
+ /** Chat tools (#2492): none, reading only, or reading and posting. */
6229
+ chat: 'none' | 'read' | 'post';
6230
+ }
6231
+ /** What the MCP server may offer this credential (GET /api/mcp/capabilities). */
6232
+ declare function readMcpCapabilities(): Command<{
6233
+ data: McpCapabilities;
6234
+ }>;
6235
+
5863
6236
  /**
5864
6237
  * Operations reads (admin): readiness, detailed health, this process's runtime
5865
6238
  * stats, the instance roster, the DB connection pool, expensive SQL, the
@@ -6407,6 +6780,92 @@ declare function setQueueDefaultView(id: UUID, viewId: number | null): Command<{
6407
6780
  };
6408
6781
  }>;
6409
6782
 
6783
+ /**
6784
+ * Support desk commands (/api/support) — tickets live on Tasks (kind 'support').
6785
+ * Requesters see their own; desk members (a routed team) and administrators the
6786
+ * desk. Every gate is the API's, not the SDK's.
6787
+ */
6788
+
6789
+ type SupportTicketStatus = 'open' | 'in_progress' | 'done' | 'cancelled';
6790
+ interface SupportTicket {
6791
+ id: number;
6792
+ title: string;
6793
+ description: string | null;
6794
+ status: SupportTicketStatus;
6795
+ status_label: string;
6796
+ priority: string;
6797
+ collection: string | null;
6798
+ item: string | null;
6799
+ record_label: string | null;
6800
+ category_id: number | null;
6801
+ category_name: string | null;
6802
+ team_id: number | null;
6803
+ team_name: string | null;
6804
+ assignee: string | null;
6805
+ assignee_name: string | null;
6806
+ created_by: string;
6807
+ requester_name: string | null;
6808
+ [key: string]: unknown;
6809
+ }
6810
+ interface SupportTicketDetail extends SupportTicket {
6811
+ thread: Array<{
6812
+ id: string;
6813
+ text: string;
6814
+ user: string;
6815
+ user_name: string | null;
6816
+ created_at: string;
6817
+ from_requester: boolean;
6818
+ }>;
6819
+ history: Array<{
6820
+ id: number;
6821
+ text: string;
6822
+ user: string;
6823
+ user_name: string | null;
6824
+ at: string;
6825
+ }>;
6826
+ can: {
6827
+ work: boolean;
6828
+ reply: boolean;
6829
+ cancel: boolean;
6830
+ reopen: boolean;
6831
+ };
6832
+ }
6833
+ /** Tickets the caller may see. scope 'desk' = the desk (403 unless a desk worker). */
6834
+ declare function listSupportTickets(query?: {
6835
+ scope?: 'mine' | 'desk';
6836
+ status?: string;
6837
+ category?: number;
6838
+ assignee?: 'me' | 'unassigned';
6839
+ q?: string;
6840
+ collection?: string;
6841
+ item?: string;
6842
+ page?: number;
6843
+ limit?: number;
6844
+ }): Command<{
6845
+ data: SupportTicket[];
6846
+ total: number;
6847
+ page: number;
6848
+ limit: number;
6849
+ }>;
6850
+ /** One ticket with its thread, history and what the caller may do (`can`). */
6851
+ declare function readSupportTicket(id: number): Command<{
6852
+ data: SupportTicketDetail;
6853
+ }>;
6854
+ /** Take a ticket: assigned to the caller, In progress. */
6855
+ declare function claimSupportTicket(id: number): Command<{
6856
+ data: SupportTicket;
6857
+ }>;
6858
+ /** Reply on a ticket's thread. */
6859
+ declare function replySupportTicket(id: number, text: string): Command<{
6860
+ data: {
6861
+ ok: boolean;
6862
+ };
6863
+ }>;
6864
+ /** Change a ticket's status (requesters: cancel or reopen their own only). */
6865
+ declare function setSupportTicketStatus(id: number, status: SupportTicketStatus): Command<{
6866
+ data: SupportTicket;
6867
+ }>;
6868
+
6410
6869
  /**
6411
6870
  * Nivaro Presence — frontend user tracking.
6412
6871
  *
@@ -8352,4 +8811,4 @@ declare function submitFormItem(collection: string, values: Record<string, unkno
8352
8811
  data: Record<string, unknown>;
8353
8812
  }>;
8354
8813
 
8355
- 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 CollectionLayoutType, type CollectionPresetSummary, type Command, type Comment, type CommentVersion, type ConfigSnapshot, type ConfigTableClassification, type ContentBundle, type ContentExportFormat, type ContentExportOptions, type CoverageGapItem, type CoverageGapOwner, type CoverageGapReport, type CpuProfileSummary, type CronJob, type CustomQuery, type CustomQueryCatalogEntry, type DataQualityRule, type DataQualityRuleResult, type DataQualityRuleType, type DataQualityRun, type DataQualitySeverity, type DeadLetter, type DmvResult, type DraftPublishConfig, type DraftStatus, type DryRunReport, type ErpSubmission, type ErpSubmissionStatus, type ExpensiveStatement, 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, GROUP_PATCH_KEYS, type GlobalSearchRecord, type GlobalSearchResults, type GraphQLResponse, type GroupPatch, type GroupRow, type HealthDetailed, type HelpVideo, type HelpVideoClick, type HelpVideoContext, type HelpVideoDownloadUrls, type HelpVideoFinalizedUpload, type HelpVideoProgress, type HelpVideoUploadSession, type HelpVideoVersion, type HelpVideoVisibility, type HelpVideoWalkStep, type HelpVideoWhatsNew, 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 JobRegistryCron, type JobRun, LAYOUT_PATCH_KEYS, type LastTouch, type LayoutAssignment, type LayoutBundle, type LayoutGroup, type LayoutOp, type LayoutOverviewRow, type LayoutPatch, type LayoutPickReason, type LayoutRow, 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, PLACEMENT_PATCH_KEYS, 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 PlacementKey, type PlacementPatch, type PlacementRow, type PluginSlots, type Policy, type PoolStats, type PreflightCheck, type PreflightReport, type PreflightSeverity, type PresenceClient, type PresenceOptions, type PresenceSession, type PresenceSessionInfo, type PresenceViewer, type ProjectedPlacement, 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 ReadyReport, 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 RuntimeStats, type SavedView, type ScheduledChange, type ScheduledReport, type ScopeDimension, type ScopeDimensionInfo, type SemanticSearchMatch, type SessionRecording, type SessionReplayMasking, 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 TrafficSnapshot, type TrafficSnapshotEntity, 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, applyHelpVideoPackageImport, applyRecordTemplate, applySubRowTemplate, approveAddendum, approveAiProposal, archiveHelpVideo, asc, backupExportPath, batchPickerExclusionStatus, bulkPickerExclusion, callExternalApi, callExternalApiEndpoint, cancelScheduledChange, cancelStagedImport, captureCpuProfile, 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, diffLayoutVersion, disableTwoFactor, discardHelpVideoPackageImport, drillReportRow, editChatMessage, endSessionRecording, evaluateAlerts, evaluateAtRisk, evaluateFieldDefaults, evaluateFieldLock, evaluateFieldRules, evaluateFieldVisibility, excludeFromPicker, excludeFromPickers, executeBulkAction, executeCustomQuery, executeImportTemplate, executeItemAction, executeScheduledChange, explainLayout, explainRecordAccess, explainReportTrend, exportBlueprint, exportConfigSnapshot, exportContent, exportContentBundle, exportHelpVideoPackage, exportSchemaSnapshot, fetchFormSchema, fileDownloadPath, fileTransformPath, finalizeHelpVideoUpload, generateToken, generateUserToken, getAlertDefinition, getAttributeValues, getBrunoCollection, getCommentHistory, getExternalApi, getExternalApiEndpoint, getFieldTranslations, getFlowRun, getLocales, getOpenApi, getPickerExclusionStatus, getPostmanCollection, getPresence, getRetentionPolicy, getSlaRule, getSlaStatus, getTranslations, getTypes, getWebhook, globalSearch, heartbeatItemLock, helpVideosFor, importExternalApiSpec, importSchemaSnapshot, includeInPicker, includeInPickers, 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, listCustomQueryCatalog, listDataQualityRules, listDataQualityRuns, listDeadLetters, listExternalApiEndpoints, listExternalApiSchemas, listExternalApis, listFieldGroups, listFieldWatches, listFiles, listFlowRuns, listHelpVideoPages, listHelpVideoVersions, listHelpVideos, listHierarchyConfigs, listImportDefinitionVersions, listImportDefinitions, listImportJobs, listImportTemplates, listInternalWidgetPlacements, listInternalWidgets, listIssues, listItemActions, listItemScheduledChanges, listJobRuns, 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, openHelpVideoPackageImport, openHelpVideoUpload, presignFileUpload, previewContentBundle, previewHelpVideoPackageImport, previewImportJob, previewReportWidget, projectFieldConfig, 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, readDbPool, readDetailLayout, readDistinctValues, readDraftPublishConfig, readErpSubmissionHistory, readExpensiveSql, readFieldChangeHistory, readFieldConfig, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readFilesByIds, readHealthDetailed, readHelpVideo, readHelpVideoAnalytics, readHelpVideoDownloadLink, readHelpVideoDraft, readHelpVideoWalk, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readInstanceRoster, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readJobRegistry, readLastTouch, readLayoutAssignments, readLayoutBundle, readLayoutDrift, readLayoutGroups, readLayoutOverview, readLayoutVersion, readMany, readMe, readMetricAlertLog, readMyScopes, readMyWork, readNotificationCount, readNotificationSubscriptionStats, readOnlinePresence, readOwnerGroups, readPage, readPageWidgetData, readPdfTemplate, readPersistedQuery, readPickerExclusion, readPickerExclusions, readPipelineFlowMap, readPipelineReplay, readPipelineTemplate, readPipelineTemplates, readPipelineVersion, readPreflight, readQueue, readQueueCollectionStates, readQueueColumnPrefs, readQueueItems, readQueueTrends, readQueueWorkload, readReadiness, readRecordGraph, readRelationOptions, readReport, readReportAlertLog, readReportAlertsLog, readReportFilterOptions, readReportFiring, readReportSnapshot, readReportSubscription, readReportUsage, readReportWidgetData, readRequiredHelpVideos, readRevision, readRevisions, readRole, readRuntimeStats, readScopeDimensionCoverage, readSessionRecordingEvents, readSettings, readSingleton, readSlaStatusBatch, readStagedImport, readStagedImportStats, readStateOwnerGroups, readStateOwners, readStateOwnersBatch, readSyncJob, readTask, readTaskCounts, readTaskHistory, readThroughputReport, readTimeline, readTrace, readTrafficSnapshot, 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, submitLayoutOps, 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 };
8814
+ 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 CollectionLayoutType, type CollectionPresetSummary, type Command, type Comment, type CommentVersion, type ConfigSnapshot, type ConfigTableClassification, type ContentBundle, type ContentExportFormat, type ContentExportOptions, type CoverageGapItem, type CoverageGapOwner, type CoverageGapReport, type CpuProfileSummary, type CronJob, type CustomQuery, type CustomQueryCatalogEntry, type Dashboard, type DashboardFilter, type DashboardWidget, type DashboardWidgetData, type DashboardWidgetType, type DataQualityRule, type DataQualityRuleResult, type DataQualityRuleType, type DataQualityRun, type DataQualitySeverity, type DeadLetter, type DmvResult, type DraftPublishConfig, type DraftStatus, type DryRunReport, EDITOR_NOTE_MAX, type ErpSubmission, type ErpSubmissionStatus, type ExpensiveStatement, 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, GROUP_PATCH_KEYS, type GlobalSearchRecord, type GlobalSearchResults, type GraphQLResponse, type GroupPatch, type GroupRow, type HealthDetailed, type HelpVideo, type HelpVideoClick, type HelpVideoContext, type HelpVideoDownloadUrls, type HelpVideoFinalizedUpload, type HelpVideoProgress, type HelpVideoUploadSession, type HelpVideoVersion, type HelpVideoVisibility, type HelpVideoWalkStep, type HelpVideoWhatsNew, 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 InstanceToolEntry, type IntegrationApiHealth, type InternalWidget, type Issue, type IssueSeverity, type IssueStatus, type IssueSummary, type ItemLock, type JobRegistryCron, type JobRun, LAYOUT_PATCH_KEYS, type LastTouch, type LayoutAssignment, type LayoutBundle, type LayoutDescription, type LayoutFieldExplanation, type LayoutGroup, type LayoutOp, type LayoutOverviewRow, type LayoutPatch, type LayoutPickReason, type LayoutProposal, type LayoutRow, type LayoutVersion, type ListResponse, type ManagedUser, type McpCapabilities, type McpToolsConfig, type MetricAlertRule, type MetricAlertSubscription, type MetricDefinition, type MyTask, type MyWorkOwnedEntry, type MyWorkSla, type MyWorkSummary, type NamedMcpToolConfig, type NivaroClient, type NivaroClientOptions, type NivaroExtensionPlugin, type NivaroRealtime, type NivaroRuntime, type NotificationItem, type NotificationPage, type NotificationSubscription, type NumberFilterOps, type OmniSearchHit, type OnlinePresenceConfig, type OnlinePresenceUser, PLACEMENT_PATCH_KEYS, 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 PlacementKey, type PlacementPatch, type PlacementRow, type PluginSlots, type Policy, type PoolStats, type PreflightCheck, type PreflightReport, type PreflightSeverity, type PresenceClient, type PresenceOptions, type PresenceSession, type PresenceSessionInfo, type PresenceViewer, type ProjectedPlacement, 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 ReadyReport, 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 RuntimeStats, type SavedView, type ScheduledChange, type ScheduledReport, type ScopeDimension, type ScopeDimensionInfo, type SemanticSearchMatch, type SessionRecording, type SessionReplayMasking, type ShareLink, type SlaBatchStatus, type SlaRule, type SlaStatus, type StagedImportRun, type StagedImportStats, type StringFilterOps, type SubRow, type SubRowTemplate, type SupportTicket, type SupportTicketDetail, type SupportTicketStatus, type SyncJob, type Task, type TaskDoneWhenRule, type TaskPriority, type TaskStatus, type TimelineEvent, type TraceSpan, type TrafficSnapshot, type TrafficSnapshotEntity, 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 WhichLayoutForm, 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, applyHelpVideoPackageImport, applyRecordTemplate, applySubRowTemplate, approveAddendum, approveAiProposal, archiveHelpVideo, asc, backupExportPath, batchPickerExclusionStatus, bulkPickerExclusion, callExternalApi, callExternalApiEndpoint, callInstanceTool, cancelScheduledChange, cancelStagedImport, captureCpuProfile, cascadeFieldDependencies, checkBlackoutDate, claimQueueItem, claimSupportTicket, 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, describeLayoutForm, diffLayoutVersion, disableTwoFactor, discardHelpVideoPackageImport, drillReportRow, editChatMessage, endSessionRecording, evaluateAlerts, evaluateAtRisk, evaluateFieldDefaults, evaluateFieldLock, evaluateFieldRules, evaluateFieldVisibility, excludeFromPicker, excludeFromPickers, executeBulkAction, executeCustomQuery, executeImportTemplate, executeItemAction, executeScheduledChange, explainLayout, explainLayoutField, explainRecordAccess, explainReportTrend, exportBlueprint, exportConfigSnapshot, exportContent, exportContentBundle, exportHelpVideoPackage, exportSchemaSnapshot, fetchFormSchema, fileDownloadPath, fileTransformPath, finalizeHelpVideoUpload, generateToken, generateUserToken, getAlertDefinition, getAttributeValues, getBrunoCollection, getCommentHistory, getExternalApi, getExternalApiEndpoint, getFieldTranslations, getFlowRun, getLocales, getOpenApi, getPickerExclusionStatus, getPostmanCollection, getPresence, getRetentionPolicy, getSlaRule, getSlaStatus, getTranslations, getTypes, getWebhook, globalSearch, heartbeatItemLock, helpVideosFor, importExternalApiSpec, importSchemaSnapshot, includeInPicker, includeInPickers, 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, listCustomQueryCatalog, listDashboards, listDataQualityRules, listDataQualityRuns, listDeadLetters, listExternalApiEndpoints, listExternalApiSchemas, listExternalApis, listFieldGroups, listFieldWatches, listFiles, listFlowRuns, listHelpVideoPages, listHelpVideoVersions, listHelpVideos, listHierarchyConfigs, listImportDefinitionVersions, listImportDefinitions, listImportJobs, listImportTemplates, listInstanceTools, listInternalWidgetPlacements, listInternalWidgets, listIssues, listItemActions, listItemScheduledChanges, listJobRuns, 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, listSupportTickets, listSyncJobs, listTasks, listTeamTasks, listThroughputCollections, listTraces, listTreePermissions, listViewSubscriptions, listVirtualCollections, listWebhookDeliveries, listWebhooks, listWidgetFeeds, listWorkspaceTemplates, listWorkspaces, markAllNotificationsRead, markChatRoomRead, markNotificationRead, markNotificationsRead, moveTreeNode, nudgeTask, omniSearch, openHelpVideoPackageImport, openHelpVideoUpload, presignFileUpload, previewContentBundle, previewHelpVideoPackageImport, previewImportJob, previewReportWidget, projectFieldConfig, proposeLayoutOps, 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, readDashboard, readDashboardWidgetData, readDataQualityRun, readDbPool, readDetailLayout, readDistinctValues, readDraftPublishConfig, readErpSubmissionHistory, readExpensiveSql, readFieldChangeHistory, readFieldConfig, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readFilesByIds, readHealthDetailed, readHelpVideo, readHelpVideoAnalytics, readHelpVideoDownloadLink, readHelpVideoDraft, readHelpVideoWalk, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readInstanceRoster, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readJobRegistry, readLastTouch, readLayoutAssignments, readLayoutBundle, readLayoutDrift, readLayoutGroups, readLayoutOverview, readLayoutProposals, readLayoutVersion, readMany, readMcpCapabilities, readMcpToolsConfig, readMe, readMetricAlertLog, readMyScopes, readMyWork, readNotificationCount, readNotificationSubscriptionStats, readOnlinePresence, readOwnerGroups, readPage, readPageWidgetData, readPdfTemplate, readPersistedQuery, readPickerExclusion, readPickerExclusions, readPipelineFlowMap, readPipelineReplay, readPipelineTemplate, readPipelineTemplates, readPipelineVersion, readPreflight, readQueue, readQueueCollectionStates, readQueueColumnPrefs, readQueueItems, readQueueTrends, readQueueWorkload, readReadiness, readRecordGraph, readRelationOptions, readReport, readReportAlertLog, readReportAlertsLog, readReportFilterOptions, readReportFiring, readReportSnapshot, readReportSubscription, readReportUsage, readReportWidgetData, readRequiredHelpVideos, readRevision, readRevisions, readRole, readRuntimeStats, readScopeDimensionCoverage, readSessionRecordingEvents, readSettings, readSingleton, readSlaStatusBatch, readStagedImport, readStagedImportStats, readStateOwnerGroups, readStateOwners, readStateOwnersBatch, readSupportTicket, readSyncJob, readTask, readTaskCounts, readTaskHistory, readThroughputReport, readTimeline, readTrace, readTrafficSnapshot, 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, replySupportTicket, reportClientError, requestRecordAccess, requeueStagedImport, rerecordHelpVideo, rerenderHelpVideo, resetReportCache, resolveLayoutProposal, resolveReportAlert, restoreHelpVideoVersion, restoreImportDefinitionVersion, restoreLayoutVersion, restorePipelineVersion, restoreReportVersion, retryDeadLetter, retryErpSubmission, retryWebhookDelivery, revokeApiKey, revokeShareLink, revokeToken, revokeUserToken, rollbackRevision, rotateWidgetFeedToken, runAccessAudit, runActivityReport, runActivityReportCsv, runCronJob, runDataQuality, runRetentionPolicy, runScheduledReport, runSyncJob, saveHelpVideoDraft, saveMcpToolsConfig, saveMyScopeDefaults, saveReportFilterPreset, saveReportTemplate, saveReportWidgets, saveUserScope, searchChatMessages, semanticSearch, sendBulkNotification, sendChatMessage, sendTestMail, sessionRecordingEnabled, setHelpVideoContexts, setHelpVideoRequirements, setMyDelegate, setQueueDefaultView, setReportSubscription, setSupportTicketStatus, setTranslations, setupTwoFactor, simulatePermissions, simulatePipeline, simulatePipelineImpact, startApproval, startMasquerade, startSessionRecording, startWorkflow, stopMasquerade, submitAddendum, submitFormItem, submitItemForReview, submitLayoutOps, 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, whichLayoutForm };
package/dist/index.js CHANGED
@@ -748,6 +748,7 @@ function listChatMessages(room, options) {
748
748
  const params = { room };
749
749
  if (options?.before != null) params.before = options.before;
750
750
  if (options?.limit != null) params.limit = options.limit;
751
+ if (options?.thread != null) params.thread = options.thread;
751
752
  return cmd("GET", "/chat/messages", params);
752
753
  }
753
754
  function sendChatMessage(body) {
@@ -858,8 +859,12 @@ function createViewSubscription(body) {
858
859
  function deleteViewSubscription(id) {
859
860
  return cmd("DELETE", `/view-subscriptions/${id}`);
860
861
  }
861
- function explainRecordAccess(collection, id) {
862
- return cmd("GET", `/access-explain/${collection}/${id}`);
862
+ function explainRecordAccess(collection, id, opts) {
863
+ return cmd(
864
+ "GET",
865
+ `/access-explain/${collection}/${id}`,
866
+ opts?.user_id ? { user_id: opts.user_id } : void 0
867
+ );
863
868
  }
864
869
  function requestRecordAccess(body) {
865
870
  return cmd("POST", "/access-requests", void 0, body);
@@ -1101,6 +1106,21 @@ function readDistinctValues(collection, field, options) {
1101
1106
  return cmd("GET", `/items/${collection}/distinct`, params);
1102
1107
  }
1103
1108
 
1109
+ // src/commands/dashboards.ts
1110
+ function listDashboards() {
1111
+ return cmd("GET", "/dashboards");
1112
+ }
1113
+ function readDashboard(id) {
1114
+ return cmd("GET", `/dashboards/${id}`);
1115
+ }
1116
+ function readDashboardWidgetData(widgetId, filters) {
1117
+ return cmd(
1118
+ "GET",
1119
+ `/dashboards/widgets/${widgetId}/data`,
1120
+ filters?.length ? { extra_filters: JSON.stringify(filters) } : void 0
1121
+ );
1122
+ }
1123
+
1104
1124
  // src/commands/devex.ts
1105
1125
  function getPostmanCollection() {
1106
1126
  return cmd("GET", "/dev-tools/postman.json");
@@ -1334,6 +1354,20 @@ function startMasquerade(userId) {
1334
1354
  function stopMasquerade() {
1335
1355
  return cmd("DELETE", "/auth/masquerade");
1336
1356
  }
1357
+ function listInstanceTools() {
1358
+ return cmd("GET", "/mcp-tools");
1359
+ }
1360
+ function callInstanceTool(name, input) {
1361
+ return cmd("POST", `/mcp-tools/${encodeURIComponent(name)}/call`, void 0, {
1362
+ input: input ?? {}
1363
+ });
1364
+ }
1365
+ function readMcpToolsConfig() {
1366
+ return cmd("GET", "/mcp-tools/config");
1367
+ }
1368
+ function saveMcpToolsConfig(tools) {
1369
+ return cmd("PUT", "/mcp-tools/config", void 0, { tools });
1370
+ }
1337
1371
 
1338
1372
  // src/commands/files.ts
1339
1373
  function listFiles(options = {}) {
@@ -1640,6 +1674,28 @@ function listRetentionRuns(policyId) {
1640
1674
  return cmd("GET", `/retention/${policyId}/runs`);
1641
1675
  }
1642
1676
 
1677
+ // src/commands/layout-ai.ts
1678
+ function describeLayoutForm(layoutId) {
1679
+ return cmd("GET", `/ai-design/layouts/${layoutId}/describe`);
1680
+ }
1681
+ function whichLayoutForm(query) {
1682
+ return cmd("GET", "/ai-design/layouts/which-form", query);
1683
+ }
1684
+ function explainLayoutField(query) {
1685
+ return cmd("GET", "/ai-design/layouts/explain-field", query);
1686
+ }
1687
+ function proposeLayoutOps(layoutId, body) {
1688
+ return cmd("POST", `/ai-design/layouts/${layoutId}/proposals`, void 0, body);
1689
+ }
1690
+ function readLayoutProposals(layoutId, status) {
1691
+ return cmd("GET", `/ai-design/layouts/${layoutId}/proposals`, status ? { status } : void 0);
1692
+ }
1693
+ function resolveLayoutProposal(layoutId, proposalId, outcome) {
1694
+ return cmd("POST", `/ai-design/layouts/${layoutId}/proposals/${proposalId}/resolve`, void 0, {
1695
+ outcome
1696
+ });
1697
+ }
1698
+
1643
1699
  // src/commands/layout-editor.ts
1644
1700
  var PLACEMENT_PATCH_KEYS = [
1645
1701
  "label_override",
@@ -1654,6 +1710,7 @@ var PLACEMENT_PATCH_KEYS = [
1654
1710
  "widget_id",
1655
1711
  "show_approval_chain"
1656
1712
  ];
1713
+ var EDITOR_NOTE_MAX = 4e3;
1657
1714
  var GROUP_PATCH_KEYS = [
1658
1715
  "label",
1659
1716
  "type",
@@ -1671,7 +1728,9 @@ var GROUP_PATCH_KEYS = [
1671
1728
  "visible_when",
1672
1729
  "hidden_for_roles",
1673
1730
  "locked_for_roles",
1674
- "read_width"
1731
+ "read_width",
1732
+ "editor_note",
1733
+ "i18n"
1675
1734
  ];
1676
1735
  var LAYOUT_PATCH_KEYS = [
1677
1736
  "name",
@@ -1721,7 +1780,10 @@ var LAYOUT_PATCH_KEYS = [
1721
1780
  "quick_picker",
1722
1781
  "sheet_width",
1723
1782
  "header_fields",
1724
- "hide_empty"
1783
+ "hide_empty",
1784
+ "change_note",
1785
+ "entry_config",
1786
+ "email_summary_group"
1725
1787
  ];
1726
1788
  function readLayoutOverview(collection) {
1727
1789
  return cmd("GET", "/collection-layouts/overview", { collection });
@@ -1767,6 +1829,11 @@ function includeInPickers(body) {
1767
1829
  return cmd("DELETE", "/picker-exclusions", void 0, body);
1768
1830
  }
1769
1831
 
1832
+ // src/commands/mcp.ts
1833
+ function readMcpCapabilities() {
1834
+ return cmd("GET", "/mcp/capabilities");
1835
+ }
1836
+
1770
1837
  // src/commands/ops.ts
1771
1838
  function readReadiness() {
1772
1839
  return cmd("GET", "/ready");
@@ -1867,6 +1934,23 @@ function setQueueDefaultView(id, viewId) {
1867
1934
  return cmd("PUT", `/queues/${id}/default-view`, void 0, { view_id: viewId });
1868
1935
  }
1869
1936
 
1937
+ // src/commands/support.ts
1938
+ function listSupportTickets(query) {
1939
+ return cmd("GET", "/support/tickets", query);
1940
+ }
1941
+ function readSupportTicket(id) {
1942
+ return cmd("GET", `/support/tickets/${id}`);
1943
+ }
1944
+ function claimSupportTicket(id) {
1945
+ return cmd("POST", `/support/tickets/${id}/claim`);
1946
+ }
1947
+ function replySupportTicket(id, text) {
1948
+ return cmd("POST", `/support/tickets/${id}/comments`, void 0, { text });
1949
+ }
1950
+ function setSupportTicketStatus(id, status) {
1951
+ return cmd("PATCH", `/support/tickets/${id}`, void 0, { status });
1952
+ }
1953
+
1870
1954
  // src/presence.ts
1871
1955
  var STORAGE_KEY = "nvr_presence_sid";
1872
1956
  function generateId() {
@@ -2081,7 +2165,16 @@ function aggregateItems(collection, query) {
2081
2165
  if (query.filter) params.filter = JSON.stringify(query.filter);
2082
2166
  if (query.search) params.search = query.search;
2083
2167
  if (query.countAll) params.countAll = 1;
2084
- for (const key of ["groupBy", "count", "countDistinct", "sum", "avg", "min", "max", "sort"]) {
2168
+ for (const key of [
2169
+ "groupBy",
2170
+ "count",
2171
+ "countDistinct",
2172
+ "sum",
2173
+ "avg",
2174
+ "min",
2175
+ "max",
2176
+ "sort"
2177
+ ]) {
2085
2178
  const list = query[key];
2086
2179
  if (list?.length) params[key] = list.join(",");
2087
2180
  }
@@ -2832,6 +2925,7 @@ function submitFormItem(collection, values, options) {
2832
2925
  return cmd("POST", `/items/${collection}`, void 0, values);
2833
2926
  }
2834
2927
  export {
2928
+ EDITOR_NOTE_MAX,
2835
2929
  GROUP_PATCH_KEYS,
2836
2930
  LAYOUT_PATCH_KEYS,
2837
2931
  PLACEMENT_PATCH_KEYS,
@@ -2886,12 +2980,14 @@ export {
2886
2980
  bulkPickerExclusion,
2887
2981
  callExternalApi,
2888
2982
  callExternalApiEndpoint,
2983
+ callInstanceTool,
2889
2984
  cancelScheduledChange,
2890
2985
  cancelStagedImport,
2891
2986
  captureCpuProfile,
2892
2987
  cascadeFieldDependencies,
2893
2988
  checkBlackoutDate,
2894
2989
  claimQueueItem,
2990
+ claimSupportTicket,
2895
2991
  claimTask,
2896
2992
  clearTraces,
2897
2993
  cloneItem,
@@ -3033,6 +3129,7 @@ export {
3033
3129
  deleteWorkspaceTemplate,
3034
3130
  deployImportProcedure,
3035
3131
  desc,
3132
+ describeLayoutForm,
3036
3133
  diffLayoutVersion,
3037
3134
  disableTwoFactor,
3038
3135
  discardHelpVideoPackageImport,
@@ -3053,6 +3150,7 @@ export {
3053
3150
  executeItemAction,
3054
3151
  executeScheduledChange,
3055
3152
  explainLayout,
3153
+ explainLayoutField,
3056
3154
  explainRecordAccess,
3057
3155
  explainReportTrend,
3058
3156
  exportBlueprint,
@@ -3129,6 +3227,7 @@ export {
3129
3227
  listCronJobs,
3130
3228
  listCustomQueries,
3131
3229
  listCustomQueryCatalog,
3230
+ listDashboards,
3132
3231
  listDataQualityRules,
3133
3232
  listDataQualityRuns,
3134
3233
  listDeadLetters,
@@ -3147,6 +3246,7 @@ export {
3147
3246
  listImportDefinitions,
3148
3247
  listImportJobs,
3149
3248
  listImportTemplates,
3249
+ listInstanceTools,
3150
3250
  listInternalWidgetPlacements,
3151
3251
  listInternalWidgets,
3152
3252
  listIssues,
@@ -3200,6 +3300,7 @@ export {
3200
3300
  listStagedImports,
3201
3301
  listSubRowTemplates,
3202
3302
  listSubRows,
3303
+ listSupportTickets,
3203
3304
  listSyncJobs,
3204
3305
  listTasks,
3205
3306
  listTeamTasks,
@@ -3228,6 +3329,7 @@ export {
3228
3329
  previewImportJob,
3229
3330
  previewReportWidget,
3230
3331
  projectFieldConfig,
3332
+ proposeLayoutOps,
3231
3333
  publishHelpVideo,
3232
3334
  publishItem,
3233
3335
  queryVirtualCollection,
@@ -3259,6 +3361,8 @@ export {
3259
3361
  readCollections,
3260
3362
  readConfigInventory,
3261
3363
  readCoverageGaps,
3364
+ readDashboard,
3365
+ readDashboardWidgetData,
3262
3366
  readDataQualityRun,
3263
3367
  readDbPool,
3264
3368
  readDetailLayout,
@@ -3303,8 +3407,11 @@ export {
3303
3407
  readLayoutDrift,
3304
3408
  readLayoutGroups,
3305
3409
  readLayoutOverview,
3410
+ readLayoutProposals,
3306
3411
  readLayoutVersion,
3307
3412
  readMany,
3413
+ readMcpCapabilities,
3414
+ readMcpToolsConfig,
3308
3415
  readMe,
3309
3416
  readMetricAlertLog,
3310
3417
  readMyScopes,
@@ -3358,6 +3465,7 @@ export {
3358
3465
  readStateOwnerGroups,
3359
3466
  readStateOwners,
3360
3467
  readStateOwnersBatch,
3468
+ readSupportTicket,
3361
3469
  readSyncJob,
3362
3470
  readTask,
3363
3471
  readTaskCounts,
@@ -3405,12 +3513,14 @@ export {
3405
3513
  replaceSubRows,
3406
3514
  replayActivityEvent,
3407
3515
  replayFlow,
3516
+ replySupportTicket,
3408
3517
  reportClientError,
3409
3518
  requestRecordAccess,
3410
3519
  requeueStagedImport,
3411
3520
  rerecordHelpVideo,
3412
3521
  rerenderHelpVideo,
3413
3522
  resetReportCache,
3523
+ resolveLayoutProposal,
3414
3524
  resolveReportAlert,
3415
3525
  restoreHelpVideoVersion,
3416
3526
  restoreImportDefinitionVersion,
@@ -3435,6 +3545,7 @@ export {
3435
3545
  runScheduledReport,
3436
3546
  runSyncJob,
3437
3547
  saveHelpVideoDraft,
3548
+ saveMcpToolsConfig,
3438
3549
  saveMyScopeDefaults,
3439
3550
  saveReportFilterPreset,
3440
3551
  saveReportTemplate,
@@ -3451,6 +3562,7 @@ export {
3451
3562
  setMyDelegate,
3452
3563
  setQueueDefaultView,
3453
3564
  setReportSubscription,
3565
+ setSupportTicketStatus,
3454
3566
  setTranslations,
3455
3567
  setupTwoFactor,
3456
3568
  simulatePermissions,
@@ -3551,5 +3663,6 @@ export {
3551
3663
  updateWorkflowBinding,
3552
3664
  updateWorkspace,
3553
3665
  validateVirtualCollectionSql,
3554
- verifyTwoFactor
3666
+ verifyTwoFactor,
3667
+ whichLayoutForm
3555
3668
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
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",