@nivaro/sdk 0.1.12 → 0.1.14

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
@@ -1515,21 +1515,13 @@ await nivaro.request(deleteWebhook(wh.id))
1515
1515
 
1516
1516
  ```typescript
1517
1517
  {
1518
- "event": "item.create",
1518
+ "event": "update", // create | update | delete
1519
1519
  "collection": "projects",
1520
- "item": {
1521
- "id": "123",
1522
- "name": "New Project",
1523
- "status": "draft",
1524
- ...
1525
- },
1526
- "delta": {
1527
- // For updates only — fields that changed
1528
- "status": "draft"
1529
- },
1530
- "timestamp": "2024-06-14T10:30:00Z",
1531
- "user_id": "user-uuid",
1532
- "delivery_id": "delivery-uuid"
1520
+ "item": "123",
1521
+ "origin": "person", // person | machine | import | integration
1522
+ "changed_fields": ["status"], // updates only
1523
+ "data": { "id": 123, "name": "New Project", "status": "active" },
1524
+ "timestamp": "2026-09-27T10:30:00.000Z"
1533
1525
  }
1534
1526
  ```
1535
1527
 
package/dist/index.d.ts CHANGED
@@ -2032,64 +2032,139 @@ declare function aiBrief(body: {
2032
2032
  * (paginated center), per-user activity, issues.
2033
2033
  */
2034
2034
 
2035
- type TaskStatus = 'open' | 'done' | 'cancelled';
2035
+ type TaskStatus = 'open' | 'in_progress' | 'done' | 'cancelled';
2036
+ type TaskPriority = 'low' | 'normal' | 'urgent';
2037
+ /** One `[{field, op, value}]` rule: the task closes itself when the record
2038
+ * meets every rule (op: eq, neq, in, nnull, null, gt, gte, lt, lte, or
2039
+ * related_some / related_none with field `<child collection>:<fk>`). */
2040
+ interface TaskDoneWhenRule {
2041
+ field: string;
2042
+ op: string;
2043
+ value?: string | number | null;
2044
+ }
2036
2045
  interface Task {
2037
2046
  id: number;
2038
- collection: string;
2039
- item: string;
2047
+ /** null = an ordinary task, 'support' = a support ticket. */
2048
+ kind?: string | null;
2049
+ collection: string | null;
2050
+ item: string | null;
2040
2051
  title: string;
2041
2052
  description: string | null;
2042
- assignee: UUID;
2053
+ /** null while a team task waits for someone to pick it up. */
2054
+ assignee: UUID | null;
2055
+ team_id?: number | null;
2043
2056
  due_date: ISODate | null;
2044
2057
  status: TaskStatus;
2058
+ priority?: TaskPriority;
2045
2059
  created_by: UUID;
2046
2060
  completed_at: ISODate | null;
2061
+ completed_by?: UUID | null;
2062
+ /** JSON condition list, when the task closes itself. */
2063
+ done_when?: string | null;
2047
2064
  created_at: ISODate;
2048
2065
  updated_at: ISODate;
2049
2066
  assignee_name?: string | null;
2050
2067
  created_by_name?: string | null;
2068
+ completed_by_name?: string | null;
2069
+ team_name?: string | null;
2070
+ /** The record's human id (TP26-80366). */
2071
+ item_label?: string | null;
2051
2072
  }
2052
2073
  interface MyTask extends Task {
2053
2074
  item_label: string | null;
2054
2075
  }
2055
- /** List tasks. `assignee: 'me'` resolves to the current user. */
2076
+ /** List tasks. `assignee: 'me'` resolves to the current user. Without a
2077
+ * record, non-admins get their own tasks (assigned, requested, their team's);
2078
+ * a record's list shows only to people who can read the record. */
2056
2079
  declare function listTasks(query?: {
2057
2080
  collection?: string;
2058
2081
  item?: string;
2059
2082
  assignee?: string;
2060
- status?: TaskStatus;
2083
+ created_by?: string;
2084
+ /** 'active' = open + in progress. */
2085
+ status?: TaskStatus | 'active';
2086
+ priority?: TaskPriority;
2087
+ due?: 'overdue' | 'today' | 'week' | 'none';
2088
+ search?: string;
2089
+ limit?: number;
2061
2090
  }): Command<{
2062
2091
  data: Task[];
2063
2092
  }>;
2064
- /** Open tasks assigned to the current user, with best-effort item labels. */
2093
+ /** Open tasks assigned to the current user, with the record's human id. */
2065
2094
  declare function listMyTasks(): Command<{
2066
2095
  data: MyTask[];
2067
2096
  }>;
2097
+ /** Open, unclaimed tasks waiting with one of my teams. */
2098
+ declare function listTeamTasks(): Command<{
2099
+ data: MyTask[];
2100
+ }>;
2101
+ /** Tasks I asked others to do: open, plus the ones finished in the last `days`. */
2102
+ declare function listRequestedTasks(days?: number): Command<{
2103
+ data: MyTask[];
2104
+ }>;
2068
2105
  declare function readTask(id: number): Command<{
2069
2106
  data: Task;
2070
2107
  }>;
2108
+ /** The task's plain-language history ("Reassigned to Beth", "Done by Kim"). */
2109
+ declare function readTaskHistory(id: number): Command<{
2110
+ data: Array<{
2111
+ id: number;
2112
+ action: string;
2113
+ text: string;
2114
+ at: ISODate;
2115
+ user: UUID | null;
2116
+ user_name: string | null;
2117
+ }>;
2118
+ }>;
2119
+ /** Open and overdue task counts per record for one page of a list. */
2120
+ declare function readTaskCounts(collection: string, ids: Array<string | number>): Command<{
2121
+ data: Record<string, {
2122
+ open: number;
2123
+ overdue: number;
2124
+ }>;
2125
+ }>;
2126
+ /** Create a task for a person (`assignee`) or a team (`team_id`). A person
2127
+ * who is out of office with a delegate hands it to the delegate — the
2128
+ * response's `delegated_from` says so. */
2071
2129
  declare function createTask(body: {
2072
2130
  collection: string;
2073
2131
  item: string;
2074
2132
  title: string;
2075
- assignee: string;
2133
+ assignee?: string | null;
2134
+ team_id?: number | null;
2076
2135
  description?: string | null;
2077
2136
  due_date?: string | null;
2137
+ priority?: TaskPriority;
2138
+ done_when?: TaskDoneWhenRule[] | null;
2078
2139
  }): Command<{
2079
- data: Task;
2140
+ data: Task & {
2141
+ delegated_from: UUID | null;
2142
+ };
2080
2143
  }>;
2081
2144
  declare function updateTask(id: number, body: Partial<{
2082
2145
  title: string;
2083
2146
  description: string | null;
2084
- assignee: string;
2147
+ assignee: string | null;
2085
2148
  due_date: string | null;
2086
2149
  status: TaskStatus;
2150
+ priority: TaskPriority;
2151
+ done_when: TaskDoneWhenRule[] | null;
2087
2152
  }>): Command<{
2088
2153
  data: Task;
2089
2154
  }>;
2090
2155
  declare function completeTask(id: number): Command<{
2091
2156
  data: Task;
2092
2157
  }>;
2158
+ /** A team member picks up an unclaimed team task (409 when someone was faster). */
2159
+ declare function claimTask(id: number): Command<{
2160
+ data: Task;
2161
+ }>;
2162
+ /** The requester reminds the assignee (at most once per 20 hours; 429 NUDGE_TOO_SOON). */
2163
+ declare function nudgeTask(id: number, note?: string): Command<{
2164
+ data: {
2165
+ nudged: number;
2166
+ };
2167
+ }>;
2093
2168
  declare function deleteTask(id: number): Command<void>;
2094
2169
  interface ApprovalChainStep {
2095
2170
  id: number;
@@ -5388,12 +5463,25 @@ interface Query<T = Record<string, unknown>> {
5388
5463
  offset?: number;
5389
5464
  page?: number;
5390
5465
  search?: string;
5466
+ /**
5467
+ * Keyset paging for walking a large collection: 'start' for the first page,
5468
+ * then the `next_cursor` of the page before. Sort by the record's own fields
5469
+ * only; `id` is added as the tie-break. Replaces offset/page.
5470
+ */
5471
+ after?: string;
5472
+ /** false = skip the count query; `total` answers null. */
5473
+ count?: boolean;
5391
5474
  }
5392
5475
  interface ListResponse<T> {
5393
5476
  data: T[];
5477
+ /** null when the read asked for no count (`count: false`). */
5394
5478
  total: number;
5395
5479
  limit: number;
5396
5480
  offset: number;
5481
+ /** Present on a keyset read: the cursor of the next page, null on the last. */
5482
+ next_cursor?: string | null;
5483
+ /** To-many aliases whose lists were cut at the per-record limit. */
5484
+ truncated_relations?: string[];
5397
5485
  }
5398
5486
  interface WorkflowState {
5399
5487
  id: UUID;
@@ -5775,12 +5863,86 @@ interface NivaroRuntime {
5775
5863
  }
5776
5864
 
5777
5865
  declare function readItems<T = Record<string, unknown>>(collection: string, query?: Query<T>): Command<ListResponse<T>>;
5866
+ interface AggregateQuery {
5867
+ filter?: Record<string, unknown>;
5868
+ search?: string;
5869
+ /** Up to 4 stored fields. Without it, one row for the whole set. */
5870
+ groupBy?: string[];
5871
+ countAll?: boolean;
5872
+ count?: string[];
5873
+ countDistinct?: string[];
5874
+ sum?: string[];
5875
+ avg?: string[];
5876
+ min?: string[];
5877
+ max?: string[];
5878
+ /** Group fields, `countAll`, or `<function>.<field>`; `-` first = descending. */
5879
+ sort?: string[];
5880
+ limit?: number;
5881
+ offset?: number;
5882
+ }
5883
+ interface AggregateRow {
5884
+ group: Record<string, unknown>;
5885
+ countAll?: number;
5886
+ count?: Record<string, number>;
5887
+ countDistinct?: Record<string, number>;
5888
+ sum?: Record<string, number | null>;
5889
+ avg?: Record<string, number | null>;
5890
+ min?: Record<string, unknown>;
5891
+ max?: Record<string, unknown>;
5892
+ }
5893
+ /**
5894
+ * Counts, sums and averages over the rows a list read with the same filter
5895
+ * would match for the caller.
5896
+ */
5897
+ declare function aggregateItems(collection: string, query: AggregateQuery): Command<{
5898
+ data: AggregateRow[];
5899
+ total: number;
5900
+ limit: number;
5901
+ offset: number;
5902
+ }>;
5778
5903
  declare function readItem<T = Record<string, unknown>>(collection: string, id: string | number): Command<{
5779
5904
  data: T;
5780
5905
  }>;
5781
5906
  declare function createItem<T = Record<string, unknown>>(collection: string, data: Partial<T>): Command<{
5782
5907
  data: T;
5783
5908
  }>;
5909
+ /** What a create would do. Nothing is stored and no number is taken. */
5910
+ interface DryRunReport<T = Record<string, unknown>> {
5911
+ dry_run: true;
5912
+ ok: boolean;
5913
+ /** The status the real request would answer. */
5914
+ status: number;
5915
+ would: 'create' | 'update' | null;
5916
+ data: Partial<T> | null;
5917
+ matched_id?: string | number;
5918
+ keys?: string[];
5919
+ changes?: Array<{
5920
+ field: string;
5921
+ from: unknown;
5922
+ to: unknown;
5923
+ }>;
5924
+ filled: string[];
5925
+ ignored: string[];
5926
+ links: Record<string, Array<string | number>>;
5927
+ nested: Record<string, Array<{
5928
+ index: number;
5929
+ ok: boolean;
5930
+ data?: Record<string, unknown> | null;
5931
+ status?: number;
5932
+ error?: string;
5933
+ code?: string;
5934
+ }>>;
5935
+ notes: string[];
5936
+ error?: string;
5937
+ code?: string;
5938
+ violations?: unknown;
5939
+ }
5940
+ /**
5941
+ * Rehearse a create: rules, generated ids, validation and the database's own
5942
+ * constraints all run, and the report says what would be stored or why the
5943
+ * create would be refused.
5944
+ */
5945
+ declare function rehearseCreateItem<T = Record<string, unknown>>(collection: string, data: Partial<T>): Command<DryRunReport<T>>;
5784
5946
  declare function updateItem<T = Record<string, unknown>>(collection: string, id: string | number, data: Partial<T>): Command<{
5785
5947
  data: T;
5786
5948
  }>;
@@ -6992,4 +7154,4 @@ declare function submitFormItem(collection: string, values: Record<string, unkno
6992
7154
  data: Record<string, unknown>;
6993
7155
  }>;
6994
7156
 
6995
- 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 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 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 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 FieldHistoryEntry, 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, 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 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, 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, 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, listRetentionPolicies, listRetentionRuns, listRolePolicies, listRoleUsers, listRoles, listRules, listSavedViews, listScheduledChanges, listScheduledReports, listScopeDimensions, listSessionRecordings, listShareLinks, listSlaRules, listStagedImports, listSubRowTemplates, listSubRows, listSyncJobs, listTasks, listThroughputCollections, listTraces, listTreePermissions, listViewSubscriptions, listVirtualCollections, listWebhookDeliveries, listWebhooks, listWidgetFeeds, listWorkspaceTemplates, listWorkspaces, markAllNotificationsRead, markChatRoomRead, markNotificationRead, markNotificationsRead, moveTreeNode, 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, readFieldHistory, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readLastTouch, readLayoutAssignments, readLayoutGroups, 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, readThroughputReport, readTimeline, readTrace, readTreeAncestors, readTreeChildren, readTreeConfig, readTreeDescendants, readTreeNested, readTreeNodes, readTwoFactorStatus, readUnreadNotificationCount, readUser, readUserActivity, readUserActivitySummary, readUserCard, readUserScopes, readUsers, readWorkflowBindings, readWorkflowInstance, readWorkflowInstances, readWorkspace, readWorkspaceUsage, rebuildTreePaths, 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 };
7157
+ 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 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 FieldHistoryEntry, 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, 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, readFieldHistory, readFieldImpact, readFieldWatch, readFileMeta, readFileUsage, readHierarchyConfig, readHierarchyNodeAncestors, readHierarchyNodeChildren, readHierarchyNodes, readHierarchyTree, readImportJob, readImportProcedure, readInstanceOwners, readIntegrationHealth, readInternalWidget, readIssue, readIssueSummary, readItem, readItemLock, readItemLockConfig, readItems, readLastTouch, readLayoutAssignments, readLayoutGroups, 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 };
package/dist/index.js CHANGED
@@ -564,18 +564,27 @@ function aiBrief(body) {
564
564
  // src/commands/collab.ts
565
565
  function listTasks(query) {
566
566
  const params = {};
567
- if (query?.collection) params.collection = query.collection;
568
- if (query?.item) params.item = query.item;
569
- if (query?.assignee) params.assignee = query.assignee;
570
- if (query?.status) params.status = query.status;
567
+ for (const [k, v] of Object.entries(query ?? {})) if (v !== void 0 && v !== "") params[k] = v;
571
568
  return cmd("GET", "/tasks", params);
572
569
  }
573
570
  function listMyTasks() {
574
571
  return cmd("GET", "/tasks/mine");
575
572
  }
573
+ function listTeamTasks() {
574
+ return cmd("GET", "/tasks/team");
575
+ }
576
+ function listRequestedTasks(days) {
577
+ return cmd("GET", "/tasks/requested", days ? { days } : void 0);
578
+ }
576
579
  function readTask(id) {
577
580
  return cmd("GET", `/tasks/${id}`);
578
581
  }
582
+ function readTaskHistory(id) {
583
+ return cmd("GET", `/tasks/${id}/history`);
584
+ }
585
+ function readTaskCounts(collection, ids) {
586
+ return cmd("POST", "/tasks/counts", void 0, { collection, ids });
587
+ }
579
588
  function createTask(body) {
580
589
  return cmd("POST", "/tasks", void 0, body);
581
590
  }
@@ -585,6 +594,12 @@ function updateTask(id, body) {
585
594
  function completeTask(id) {
586
595
  return cmd("POST", `/tasks/${id}/complete`);
587
596
  }
597
+ function claimTask(id) {
598
+ return cmd("POST", `/tasks/${id}/claim`);
599
+ }
600
+ function nudgeTask(id, note) {
601
+ return cmd("POST", `/tasks/${id}/nudge`, void 0, note ? { note } : {});
602
+ }
588
603
  function deleteTask(id) {
589
604
  return cmd("DELETE", `/tasks/${id}`);
590
605
  }
@@ -1787,14 +1802,32 @@ function readItems(collection, query) {
1787
1802
  if (query?.offset != null) params.offset = query.offset;
1788
1803
  if (query?.page != null) params.page = query.page;
1789
1804
  if (query?.search) params.search = query.search;
1805
+ if (query?.after != null) params.after = query.after;
1806
+ if (query?.count === false) params.count = 0;
1790
1807
  return cmd("GET", `/items/${collection}`, params);
1791
1808
  }
1809
+ function aggregateItems(collection, query) {
1810
+ const params = {};
1811
+ if (query.filter) params.filter = JSON.stringify(query.filter);
1812
+ if (query.search) params.search = query.search;
1813
+ if (query.countAll) params.countAll = 1;
1814
+ for (const key of ["groupBy", "count", "countDistinct", "sum", "avg", "min", "max", "sort"]) {
1815
+ const list = query[key];
1816
+ if (list?.length) params[key] = list.join(",");
1817
+ }
1818
+ if (query.limit != null) params.limit = query.limit;
1819
+ if (query.offset != null) params.offset = query.offset;
1820
+ return cmd("GET", `/items/${collection}/aggregate`, params);
1821
+ }
1792
1822
  function readItem(collection, id) {
1793
1823
  return cmd("GET", `/items/${collection}/${id}`);
1794
1824
  }
1795
1825
  function createItem(collection, data) {
1796
1826
  return cmd("POST", `/items/${collection}`, void 0, data);
1797
1827
  }
1828
+ function rehearseCreateItem(collection, data) {
1829
+ return cmd("POST", `/items/${collection}`, { dry_run: 1 }, data);
1830
+ }
1798
1831
  function updateItem(collection, id, data) {
1799
1832
  return cmd("PATCH", `/items/${collection}/${id}`, void 0, data);
1800
1833
  }
@@ -2520,6 +2553,7 @@ export {
2520
2553
  addChatChannelMember,
2521
2554
  addInstanceOwner,
2522
2555
  addSubRow,
2556
+ aggregateItems,
2523
2557
  aiBrief,
2524
2558
  aiBuildReport,
2525
2559
  aiChat,
@@ -2548,6 +2582,7 @@ export {
2548
2582
  cascadeFieldDependencies,
2549
2583
  checkBlackoutDate,
2550
2584
  claimQueueItem,
2585
+ claimTask,
2551
2586
  clearTraces,
2552
2587
  cloneItem,
2553
2588
  cloneLayout,
@@ -2821,6 +2856,7 @@ export {
2821
2856
  listReportVersions,
2822
2857
  listReportWidgetPresets,
2823
2858
  listReports,
2859
+ listRequestedTasks,
2824
2860
  listRetentionPolicies,
2825
2861
  listRetentionRuns,
2826
2862
  listRolePolicies,
@@ -2839,6 +2875,7 @@ export {
2839
2875
  listSubRows,
2840
2876
  listSyncJobs,
2841
2877
  listTasks,
2878
+ listTeamTasks,
2842
2879
  listThroughputCollections,
2843
2880
  listTraces,
2844
2881
  listTreePermissions,
@@ -2854,6 +2891,7 @@ export {
2854
2891
  markNotificationRead,
2855
2892
  markNotificationsRead,
2856
2893
  moveTreeNode,
2894
+ nudgeTask,
2857
2895
  omniSearch,
2858
2896
  presignFileUpload,
2859
2897
  previewContentBundle,
@@ -2970,6 +3008,8 @@ export {
2970
3008
  readStateOwnersBatch,
2971
3009
  readSyncJob,
2972
3010
  readTask,
3011
+ readTaskCounts,
3012
+ readTaskHistory,
2973
3013
  readThroughputReport,
2974
3014
  readTimeline,
2975
3015
  readTrace,
@@ -2993,6 +3033,7 @@ export {
2993
3033
  readWorkspace,
2994
3034
  readWorkspaceUsage,
2995
3035
  rebuildTreePaths,
3036
+ rehearseCreateItem,
2996
3037
  reindexSemanticSearch,
2997
3038
  rejectAddendum,
2998
3039
  rejectAiProposal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
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",