@declarion/react 0.61.1 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/ActionDialog-uiuse5W8.js +374 -0
- package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
- package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
- package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
- package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1588 -5117
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +16 -23
- package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
- package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
- package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -111
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BUxXuP4c.js +0 -158
- package/dist-lib/format-count-bXVfHzbI.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-nSeHd5si.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -579
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
- package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
- package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
- package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
- package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
- package/dist-lib/useText-BsedsJ-J.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
package/dist-lib/api/agents.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export type AgentRole = "user" | "assistant" | "tool" | "system";
|
|
2
|
-
export type AgentContentBlock = {
|
|
3
|
-
type: "text";
|
|
4
|
-
text: string;
|
|
5
|
-
} | {
|
|
6
|
-
type: "tool_use";
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
input: Record<string, unknown>;
|
|
10
|
-
} | {
|
|
11
|
-
type: "tool_result";
|
|
12
|
-
id: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
output: unknown;
|
|
15
|
-
is_error?: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: "elicit";
|
|
18
|
-
id: string;
|
|
19
|
-
schema: Record<string, unknown>;
|
|
20
|
-
message: string;
|
|
21
|
-
} | {
|
|
22
|
-
type: "elicit_response";
|
|
23
|
-
id: string;
|
|
24
|
-
data: Record<string, unknown>;
|
|
25
|
-
} | {
|
|
26
|
-
type: "attachment";
|
|
27
|
-
kind: string;
|
|
28
|
-
content: string;
|
|
29
|
-
} | {
|
|
30
|
-
type: "summary";
|
|
31
|
-
covers: string[];
|
|
32
|
-
text: string;
|
|
33
|
-
} | {
|
|
34
|
-
type: "system";
|
|
35
|
-
reason: string;
|
|
36
|
-
} | {
|
|
37
|
-
type: "decision";
|
|
38
|
-
tool_use_id?: string;
|
|
39
|
-
tool_code: string;
|
|
40
|
-
decision: "approved" | "rejected";
|
|
41
|
-
decided_by?: string;
|
|
42
|
-
decided_at?: string;
|
|
43
|
-
note?: string;
|
|
44
|
-
};
|
|
45
|
-
export interface AgentMessage {
|
|
46
|
-
id: string;
|
|
47
|
-
conversation_id: string;
|
|
48
|
-
seq: number;
|
|
49
|
-
role: AgentRole;
|
|
50
|
-
content: AgentContentBlock[];
|
|
51
|
-
created_at: string;
|
|
52
|
-
streaming?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export type AgentTurnStatus = "queued" | "running" | "waiting" | "completed" | "failed" | "canceled";
|
|
55
|
-
export interface AgentTurn {
|
|
56
|
-
id: string;
|
|
57
|
-
conversation_id: string;
|
|
58
|
-
trigger_message_id: string;
|
|
59
|
-
runnable_message_seq: number;
|
|
60
|
-
status: AgentTurnStatus;
|
|
61
|
-
model_step: number;
|
|
62
|
-
reserved_assistant_message_id?: string | null;
|
|
63
|
-
error_code?: string | null;
|
|
64
|
-
error_details?: unknown;
|
|
65
|
-
}
|
|
66
|
-
export type AgentInvocationStatus = "proposed" | "pending_input" | "pending_approval" | "approved" | "rejected" | "running" | "succeeded" | "failed" | "canceled" | "interrupted" | "outcome_unknown";
|
|
67
|
-
export type AgentInvocationKind = "action" | "input_request" | "tool";
|
|
68
|
-
export interface AgentToolInvocation {
|
|
69
|
-
id: string;
|
|
70
|
-
conversation_id: string | null;
|
|
71
|
-
message_id: string | null;
|
|
72
|
-
kind: AgentInvocationKind;
|
|
73
|
-
turn_id: string | null;
|
|
74
|
-
assistant_message_id: string | null;
|
|
75
|
-
response_message_id: string | null;
|
|
76
|
-
provider_call_id: string | null;
|
|
77
|
-
call_ordinal: number | null;
|
|
78
|
-
server_code: string;
|
|
79
|
-
tool_code: string;
|
|
80
|
-
params: Record<string, unknown>;
|
|
81
|
-
question?: {
|
|
82
|
-
key?: string;
|
|
83
|
-
message?: string;
|
|
84
|
-
schema?: Record<string, unknown>;
|
|
85
|
-
};
|
|
86
|
-
status: AgentInvocationStatus;
|
|
87
|
-
approval?: {
|
|
88
|
-
decided_by?: string;
|
|
89
|
-
decided_at?: string;
|
|
90
|
-
reason?: string;
|
|
91
|
-
edits?: Record<string, unknown>;
|
|
92
|
-
};
|
|
93
|
-
confirmation_mode?: "never" | "once_per_conversation" | "always";
|
|
94
|
-
result?: unknown;
|
|
95
|
-
audit_operation_id?: string;
|
|
96
|
-
reason?: string;
|
|
97
|
-
confidence?: number;
|
|
98
|
-
}
|
|
99
|
-
export type AgentConversationStatus = "active" | "canceling" | "interrupted" | "closed";
|
|
100
|
-
export interface AgentConversation {
|
|
101
|
-
id: string;
|
|
102
|
-
tenant_id: string;
|
|
103
|
-
created_by?: string;
|
|
104
|
-
agent_id?: string;
|
|
105
|
-
agent?: string;
|
|
106
|
-
title?: string;
|
|
107
|
-
model?: string;
|
|
108
|
-
status: AgentConversationStatus;
|
|
109
|
-
token_usage?: {
|
|
110
|
-
in?: number;
|
|
111
|
-
out?: number;
|
|
112
|
-
cached_in?: number;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export interface AvailableAgent {
|
|
116
|
-
id: string;
|
|
117
|
-
code: string;
|
|
118
|
-
name?: Record<string, string>;
|
|
119
|
-
description?: Record<string, string>;
|
|
120
|
-
is_default: boolean;
|
|
121
|
-
}
|
|
122
|
-
export declare function listAvailableAgents(): Promise<AvailableAgent[]>;
|
|
123
|
-
export declare function createConversation(input: {
|
|
124
|
-
agent_id?: string;
|
|
125
|
-
}): Promise<AgentConversation>;
|
|
126
|
-
export declare function sendMessage(text: string, conversationId: string): Promise<AgentMessage>;
|
|
127
|
-
export declare function answerQuestion(invocationId: string, answer: Record<string, unknown>): Promise<void>;
|
|
128
|
-
export declare function sendElicitResponse(_conversationId: string, invocationId: string, data: Record<string, unknown>): Promise<void>;
|
|
129
|
-
/** What a person permitted: this call alone, or the action for the rest of
|
|
130
|
-
* the conversation. Absent means this call alone - the safe reading, and
|
|
131
|
-
* what every row written before the choice existed means. */
|
|
132
|
-
export type ApprovalScope = "call" | "conversation";
|
|
133
|
-
export declare function approveInvocation(id: string, scope?: ApprovalScope): Promise<void>;
|
|
134
|
-
export declare function rejectInvocation(id: string, note?: string): Promise<void>;
|
|
135
|
-
export declare function cancelInvocation(id: string): Promise<void>;
|
|
136
|
-
export declare function cancelConversation(id: string): Promise<void>;
|
|
137
|
-
export declare function listConversations(): Promise<AgentConversation[]>;
|
|
138
|
-
export declare function loadConversationTurns(conversationId: string): Promise<AgentTurn[]>;
|
|
139
|
-
export declare function loadConversationInvocations(conversationId: string): Promise<AgentToolInvocation[]>;
|
|
140
|
-
export declare function loadHistory(conversationId: string): Promise<AgentMessage[]>;
|
package/dist-lib/api/auth.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { CheckSetupResponse, LoginResponse, AuthUser, Tenant, SSOProvider } from "../types/api.d.ts";
|
|
2
|
-
export declare function checkSetup(): Promise<CheckSetupResponse>;
|
|
3
|
-
export declare function login(email: string, password: string, remember?: boolean): Promise<LoginResponse>;
|
|
4
|
-
export declare function signup(email: string, password: string, displayName: string): Promise<LoginResponse>;
|
|
5
|
-
export declare function getMe(): Promise<AuthUser>;
|
|
6
|
-
export declare function listTenants(): Promise<Tenant[]>;
|
|
7
|
-
export declare function switchTenant(tenantId: string): Promise<LoginResponse>;
|
|
8
|
-
export declare function createTenant(code: string, name: string): Promise<Tenant>;
|
|
9
|
-
export declare function logout(): Promise<void>;
|
|
10
|
-
export declare function listSSOProviders(tenantCode?: string): Promise<SSOProvider[]>;
|
|
11
|
-
export declare function ssoAuthorizeUrl(slug: string, tenantCode?: string, redirect?: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Impersonation client surface. Each call dispatches through
|
|
14
|
-
* POST /api/actions/{code} like every other auth handler. The server
|
|
15
|
-
* sets / clears the impersonation cookies via the LoginResult
|
|
16
|
-
* HTTPCustomizer; the client receives the public response shape
|
|
17
|
-
* (user / tenant / expires_at) and reloads the auth context.
|
|
18
|
-
*/
|
|
19
|
-
export interface ImpersonationStartResponse extends LoginResponse {
|
|
20
|
-
impersonation_session_id: string;
|
|
21
|
-
session_expires_at: string;
|
|
22
|
-
}
|
|
23
|
-
export declare function impersonationStart(targetUserId: string, reason: string, durationMinutes?: number): Promise<ImpersonationStartResponse>;
|
|
24
|
-
export declare function impersonationStop(): Promise<LoginResponse>;
|
|
25
|
-
export declare function impersonationRevoke(sessionId: string): Promise<void>;
|
|
26
|
-
export declare function changePassword(currentPassword: string, newPassword: string): Promise<void>;
|
package/dist-lib/api/batch.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ApiErrorBody } from "../types/api.d.ts";
|
|
2
|
-
export interface BatchOp {
|
|
3
|
-
action: string;
|
|
4
|
-
params?: Record<string, unknown> | null;
|
|
5
|
-
}
|
|
6
|
-
export interface BatchOpResult {
|
|
7
|
-
index: number;
|
|
8
|
-
/** The dispatched action, so an entry says WHICH op it describes. */
|
|
9
|
-
action?: string;
|
|
10
|
-
ok: boolean;
|
|
11
|
-
result?: unknown;
|
|
12
|
-
/** The failure, in the one shape every carrier sends. */
|
|
13
|
-
error?: ApiErrorBody;
|
|
14
|
-
}
|
|
15
|
-
export interface BatchResponse {
|
|
16
|
-
results: BatchOpResult[];
|
|
17
|
-
committed: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare class Batch {
|
|
20
|
-
private ops;
|
|
21
|
-
call(action: string, params?: unknown): this;
|
|
22
|
-
upsert(entity: string, records: Array<Record<string, unknown>>, mode?: "upsert" | "insert_if_missing", uniqueBy?: string[]): this;
|
|
23
|
-
execute(): Promise<BatchResponse>;
|
|
24
|
-
_ops(): readonly BatchOp[];
|
|
25
|
-
}
|
package/dist-lib/api/client.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/** Signals that auth.refresh failed terminally (refresh cookie missing, token
|
|
2
|
-
* expired/reused, session revoked). Callers MUST stop retrying and route the
|
|
3
|
-
* user back to /login — retrying produces an infinite 401/4xx storm against
|
|
4
|
-
* the rate-limited refresh endpoint. Distinct from generic network errors so
|
|
5
|
-
* useSSE can branch on it. */
|
|
6
|
-
export declare class RefreshDeadError extends Error {
|
|
7
|
-
status: number;
|
|
8
|
-
constructor(status: number);
|
|
9
|
-
}
|
|
10
|
-
/** Arm the proactive refresh timer from a server `expires_at` (the access
|
|
11
|
-
* token expiry, ISO-8601). Call after every login / signup / switch / the
|
|
12
|
-
* refresh itself. An undefined or unparseable value just clears the timer -
|
|
13
|
-
* the reactive 401 path still guarantees correctness. */
|
|
14
|
-
export declare function scheduleProactiveRefresh(expiresAt: string | undefined): void;
|
|
15
|
-
/** Stop proactive refresh and forget the tracked expiry. Called on logout. */
|
|
16
|
-
export declare function cancelProactiveRefresh(): void;
|
|
17
|
-
export declare function ensureRefresh(): Promise<void>;
|
|
18
|
-
type PersistentAuthFailureHandler = () => void;
|
|
19
|
-
/** Replace the handler invoked on persistent 401. Intended for tests
|
|
20
|
-
* and non-browser consumers. Returns the previous handler so callers
|
|
21
|
-
* can restore it if needed. */
|
|
22
|
-
export declare function setPersistentAuthFailureHandler(h: PersistentAuthFailureHandler): PersistentAuthFailureHandler;
|
|
23
|
-
/** Returns the currently registered persistent-auth-failure handler. useSSE
|
|
24
|
-
* reads this lazily so a setPersistentAuthFailureHandler() call from a test
|
|
25
|
-
* is observed by the SSE retry loop without re-importing the module. */
|
|
26
|
-
export declare function getPersistentAuthFailureHandler(): PersistentAuthFailureHandler;
|
|
27
|
-
export type ApiErrorReport = {
|
|
28
|
-
status: number;
|
|
29
|
-
code: string;
|
|
30
|
-
message: string;
|
|
31
|
-
};
|
|
32
|
-
type ApiErrorReporter = (report: ApiErrorReport) => void;
|
|
33
|
-
/** Replace the reporter invoked for every non-2xx response. Returns the
|
|
34
|
-
* previous reporter so callers can restore it. Tests should install a
|
|
35
|
-
* spy or no-op via this hook instead of stubbing `console.error`. */
|
|
36
|
-
export declare function setApiErrorReporter(r: ApiErrorReporter): ApiErrorReporter;
|
|
37
|
-
export declare function publishLanguage(language: string | null): void;
|
|
38
|
-
export declare function currentReader(): number;
|
|
39
|
-
export declare function publishLanguageFor(startedFor: number, language: string): void;
|
|
40
|
-
export declare function currentPublishedLanguage(): string | null;
|
|
41
|
-
export declare function withPublishedLanguage(path: string): string;
|
|
42
|
-
export declare function apiFetch<T>(path: string, options?: RequestInit): Promise<T>;
|
|
43
|
-
export interface BlobResponse {
|
|
44
|
-
blob: Blob;
|
|
45
|
-
filename: string;
|
|
46
|
-
headers: Headers;
|
|
47
|
-
}
|
|
48
|
-
export declare function apiFetchBlob(path: string, options?: RequestInit): Promise<BlobResponse>;
|
|
49
|
-
export declare function parseContentDispositionFilename(headers: Headers): string;
|
|
50
|
-
export declare function callHandler<R = unknown>(code: string, args?: unknown): Promise<R>;
|
|
51
|
-
export {};
|
package/dist-lib/api/data.d.ts
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import type { ApiErrorBody, ListParams, ListResponse, DataResponse } from "../types/api.d.ts";
|
|
2
|
-
import type { PkValues } from "../types/schema.d.ts";
|
|
3
|
-
import type { ExportRequest } from "../components/pages/exportRequest.d.ts";
|
|
4
|
-
export declare function listEntities(entity: string, params?: ListParams, options?: {
|
|
5
|
-
signal?: AbortSignal;
|
|
6
|
-
}): Promise<ListResponse>;
|
|
7
|
-
/** What a single-record read asks the server to compute beside the row. */
|
|
8
|
-
export interface GetEntityOptions {
|
|
9
|
-
expand?: readonly "evidence"[];
|
|
10
|
-
}
|
|
11
|
-
export declare function getEntity(entity: string, pkValues: PkValues | string, options?: GetEntityOptions): Promise<DataResponse>;
|
|
12
|
-
export declare function createEntity(entity: string, data: Record<string, unknown>): Promise<DataResponse>;
|
|
13
|
-
export declare function updateEntity(entity: string, pkValues: PkValues | string, data: Record<string, unknown>): Promise<DataResponse>;
|
|
14
|
-
export declare function deleteObject(entity: string, pkValues: PkValues | string): Promise<void>;
|
|
15
|
-
export declare function encodeObjectId(pkValues: PkValues): string;
|
|
16
|
-
export declare function restoreObject(entity: string, pkValues: PkValues | string): Promise<void>;
|
|
17
|
-
/** Result of POST /api/data/{entity}/export. The server streams a CSV
|
|
18
|
-
* blob; the client gets the bytes plus the server-resolved filename
|
|
19
|
-
* (parsed from Content-Disposition by apiFetchBlob, with RFC 5987
|
|
20
|
-
* filename* preferred). Triggering the actual download (anchor click)
|
|
21
|
-
* is the caller's job — separation lets ExportMenu show the bytes in a
|
|
22
|
-
* toast when the browser blocks the download. */
|
|
23
|
-
export interface ExportResponse {
|
|
24
|
-
blob: Blob;
|
|
25
|
-
filename: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function exportEntities(entity: string, body: ExportRequest): Promise<ExportResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Action request body is flat: top-level keys are handler params. The only
|
|
30
|
-
* reserved control key is `object_ids` (array of object IDs for
|
|
31
|
-
* single/batch scope). The server resolves entity from the action's
|
|
32
|
-
* registration; the URL code is fully qualified ("entity.action" for
|
|
33
|
-
* entity-scoped, "action" for global). Legacy `_ids` is rejected 400 by
|
|
34
|
-
* the server (parseActionBody) — there is no compat shim.
|
|
35
|
-
*/
|
|
36
|
-
export type ActionExecuteRequest = Record<string, unknown>;
|
|
37
|
-
export interface ActionExecuteResponse {
|
|
38
|
-
status: string;
|
|
39
|
-
result?: unknown;
|
|
40
|
-
audit_operation_id?: string;
|
|
41
|
-
object_count?: number;
|
|
42
|
-
/** IDs that succeeded (batch_mode: each responses). */
|
|
43
|
-
success?: string[];
|
|
44
|
-
/** Per-item errors (batch_mode: each responses with failures or partial). */
|
|
45
|
-
errors?: ActionItemError[];
|
|
46
|
-
/** Per-item skips (batch_mode: each responses where conditions filtered rows). */
|
|
47
|
-
skipped?: ActionItemSkip[];
|
|
48
|
-
/**
|
|
49
|
-
* The action's declared synchronous chain, when it has one. ABSENT means the
|
|
50
|
-
* action declares no such step - never that a step passed. A failed step does
|
|
51
|
-
* not change the action's own status: it committed, and an event is free to
|
|
52
|
-
* fail without undoing a committed write. So "saved" and "saved, and the work
|
|
53
|
-
* behind it did not run" are the same status and different reports.
|
|
54
|
-
*/
|
|
55
|
-
events?: EventsReport;
|
|
56
|
-
}
|
|
57
|
-
/** What the platform says the action's synchronous chain did. */
|
|
58
|
-
export interface EventsReport {
|
|
59
|
-
failed_count?: number;
|
|
60
|
-
timed_out_count?: number;
|
|
61
|
-
job_ids?: string[];
|
|
62
|
-
/** In the handler's DECLARED step order, at every depth. */
|
|
63
|
-
failures?: EventFailure[];
|
|
64
|
-
/** What the response bounds dropped. Non-zero means there were more. */
|
|
65
|
-
failures_omitted?: number;
|
|
66
|
-
}
|
|
67
|
-
/** One declared step that did not do its work. */
|
|
68
|
-
export interface EventFailure {
|
|
69
|
-
step: number;
|
|
70
|
-
handler: string;
|
|
71
|
-
/** The id a per-object step died on. */
|
|
72
|
-
object?: string;
|
|
73
|
-
/** How many objects after it were never reached. */
|
|
74
|
-
not_attempted?: number;
|
|
75
|
-
error?: ApiErrorBody;
|
|
76
|
-
/** This step's OWN chain, when it declared one. */
|
|
77
|
-
events?: EventsReport;
|
|
78
|
-
}
|
|
79
|
-
/** Whether anything in this chain, at any depth, did not happen. */
|
|
80
|
-
export declare function eventsFailed(events: EventsReport | undefined): boolean;
|
|
81
|
-
export interface ActionItemError {
|
|
82
|
-
id: string;
|
|
83
|
-
/** The failure, in the one shape every carrier sends. */
|
|
84
|
-
error: ApiErrorBody;
|
|
85
|
-
}
|
|
86
|
-
export interface ActionItemSkip {
|
|
87
|
-
id: string;
|
|
88
|
-
reason: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Thrown by executeAction when the platform returns 4xx with the invoke:each
|
|
92
|
-
* batch shape (all items failed). Carries the per-item details so the UI can
|
|
93
|
-
* render a meaningful toast instead of a generic "request failed".
|
|
94
|
-
*
|
|
95
|
-
* Pre-dispatch failures (auth, unknown action, invoke-shape mismatch) keep
|
|
96
|
-
* throwing the standard ApiError; use `instanceof ActionBatchError` to
|
|
97
|
-
* distinguish.
|
|
98
|
-
*/
|
|
99
|
-
export declare class ActionBatchError extends Error {
|
|
100
|
-
readonly status: number;
|
|
101
|
-
readonly response: ActionExecuteResponse;
|
|
102
|
-
constructor(status: number, response: ActionExecuteResponse);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Build a flat action body from handler params + optional object IDs.
|
|
106
|
-
* Promotes `ids` to the reserved `object_ids` key. Throws if a caller
|
|
107
|
-
* passes a param literally named `object_ids` (collision with the
|
|
108
|
-
* reserved control key) or the now-rejected legacy `_ids` key.
|
|
109
|
-
*
|
|
110
|
-
* The wire-level reserved key is `object_ids`. The legacy `_ids` envelope
|
|
111
|
-
* was removed; the server answers it with a 400.
|
|
112
|
-
*/
|
|
113
|
-
export declare function buildActionBody(params: Record<string, unknown> | undefined, ids?: string[]): ActionExecuteRequest;
|
|
114
|
-
/**
|
|
115
|
-
* A drop-in replacement for the network action dispatch. Installed only in
|
|
116
|
-
* tests via setActionExecutor; production leaves it null.
|
|
117
|
-
*/
|
|
118
|
-
export type ActionExecutor = (code: string, body: ActionExecuteRequest) => Promise<ActionExecuteResponse>;
|
|
119
|
-
/**
|
|
120
|
-
* Install a test-time override for executeAction - and therefore for
|
|
121
|
-
* createEntity / updateEntity / deleteObject / restoreObject, which all
|
|
122
|
-
* dispatch through executeAction. The @declarion/react/testing harness uses
|
|
123
|
-
* this (mirroring setApiErrorReporter) to resolve actions from a fixture map
|
|
124
|
-
* instead of the network. Returns the previous executor so a test can restore
|
|
125
|
-
* it. Pass null to clear. Default (unset) is the real apiFetch path, unchanged.
|
|
126
|
-
*/
|
|
127
|
-
export declare function setActionExecutor(fn: ActionExecutor | null): ActionExecutor | null;
|
|
128
|
-
/**
|
|
129
|
-
* Test-time override for the entity-list read seam (the leaf of useEntityData /
|
|
130
|
-
* useEntityCount). Return undefined to fall through to the network. Installed
|
|
131
|
-
* by @declarion/react/testing so the REAL list hooks run and resolve fixtures
|
|
132
|
-
* by entity, params-agnostically (the hooks' query keys carry the screen's
|
|
133
|
-
* per_page / sort / filters, which a cache seed cannot know ahead of render).
|
|
134
|
-
*/
|
|
135
|
-
export type ListEntitiesResolver = (entity: string, params: ListParams) => ListResponse | undefined;
|
|
136
|
-
/** Test-time override for the single-record read seam (useObject -> getEntity). */
|
|
137
|
-
export type GetEntityResolver = (entity: string, pkValues: PkValues | string) => DataResponse | undefined;
|
|
138
|
-
/** Install/clear the list read seam. Returns the previous resolver. */
|
|
139
|
-
export declare function setListEntitiesResolver(fn: ListEntitiesResolver | null): ListEntitiesResolver | null;
|
|
140
|
-
/** Install/clear the single-record read seam. Returns the previous resolver. */
|
|
141
|
-
export declare function setGetEntityResolver(fn: GetEntityResolver | null): GetEntityResolver | null;
|
|
142
|
-
/**
|
|
143
|
-
* Invoke an action. The URL `code` must be fully qualified for
|
|
144
|
-
* entity-scoped actions (e.g. `lead.archive`). For global actions it's the
|
|
145
|
-
* action code on its own (e.g. `auth.login`).
|
|
146
|
-
*/
|
|
147
|
-
export declare function executeAction(code: string, body: ActionExecuteRequest): Promise<ActionExecuteResponse>;
|
|
148
|
-
export interface AssociationResponse {
|
|
149
|
-
target_entity: string;
|
|
150
|
-
ids: string[];
|
|
151
|
-
count: number;
|
|
152
|
-
}
|
|
153
|
-
export declare function resolveAssociation(code: string, ids: string[]): Promise<AssociationResponse>;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import type { Refs, V2ListParams, V2Meta, V2StatusInstance, V2PropertyInstance, EnrichedRow } from "../types/api.d.ts";
|
|
2
|
-
/** Helper methods injected onto enriched rows. */
|
|
3
|
-
export interface RowHelpers {
|
|
4
|
-
$status(groupCode: string): V2StatusInstance | undefined;
|
|
5
|
-
$property(propertyCode: string): V2PropertyInstance | undefined;
|
|
6
|
-
}
|
|
7
|
-
/** Normalized ref cache that merges $refs across multiple responses. */
|
|
8
|
-
export declare class RefCache {
|
|
9
|
-
private cache;
|
|
10
|
-
/** Merge incoming refs into the cache. */
|
|
11
|
-
merge(refs: Refs | undefined): void;
|
|
12
|
-
/** Get a snapshot of all cached refs. */
|
|
13
|
-
all(): Refs;
|
|
14
|
-
/** Look up a single ref by entity code and id. */
|
|
15
|
-
get(entityCode: string, id: string): Record<string, unknown> | undefined;
|
|
16
|
-
/** Clear the cache. */
|
|
17
|
-
clear(): void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Generic, type-safe client for a single entity's v2 API.
|
|
21
|
-
*
|
|
22
|
-
* Single-item methods wrap arrays and unwrap the first result.
|
|
23
|
-
* Bulk methods pass arrays through directly.
|
|
24
|
-
*
|
|
25
|
-
* All write responses return enriched rows with $refs, $statuses, etc.
|
|
26
|
-
*/
|
|
27
|
-
export declare class EntityClient<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
28
|
-
readonly entity: string;
|
|
29
|
-
readonly refs: RefCache;
|
|
30
|
-
constructor(entity: string, refCache?: RefCache);
|
|
31
|
-
/** Get a single record through the query-PK detail contract.
|
|
32
|
-
*
|
|
33
|
-
* Pass a string to address by the `id` field (the common single-`id`-PK case,
|
|
34
|
-
* unchanged). Pass a PkValues object to address an entity whose primary key is
|
|
35
|
-
* a different single field (e.g. `{ code: "files.gc_sweep" }` for `schedule`)
|
|
36
|
-
* or a composite key (`{ region: "eu", code: "r1" }`) - each field becomes its
|
|
37
|
-
* own query param, which is how the detail contract resolves a row. A bare
|
|
38
|
-
* string with a non-`id` PK would send `?id=...` and 400. */
|
|
39
|
-
get(pk: string | Record<string, string>): Promise<T & EnrichedRow & RowHelpers>;
|
|
40
|
-
/** List records with cursor-based pagination, field selection, and expansion.
|
|
41
|
-
*
|
|
42
|
-
* Recovery on cursor-stale signals: when the server returns
|
|
43
|
-
* `cursor.semantics_mismatch` (sort grammar version bump),
|
|
44
|
-
* `cursor.language_changed` (the reader's language switched mid-pagination), or
|
|
45
|
-
* `cursor.archive_invalid` (an undecodable cross-store archive cursor), the
|
|
46
|
-
* `after` token is dropped and the request is retried once from the top.
|
|
47
|
-
*
|
|
48
|
-
* CRITICAL for accumulating callers (infinite scroll): the returned
|
|
49
|
-
* `reset` flag is `true` when this recovery fired. The refetched data is
|
|
50
|
-
* WINDOW 1, not the next page - an accumulating `useInfiniteQuery` MUST
|
|
51
|
-
* discard its prior pages and start from this one, never append it as the
|
|
52
|
-
* next page (which would duplicate the head and drop the middle). Callers
|
|
53
|
-
* that fetch a single window can ignore `reset`. See Decisions Log #14.
|
|
54
|
-
*/
|
|
55
|
-
list(params?: V2ListParams): Promise<{
|
|
56
|
-
data: (T & RowHelpers)[];
|
|
57
|
-
meta: V2Meta;
|
|
58
|
-
$refs: Refs;
|
|
59
|
-
reset: boolean;
|
|
60
|
-
}>;
|
|
61
|
-
/** Create a single record. Wraps in array, returns unwrapped result. */
|
|
62
|
-
create(item: Partial<T> & Record<string, unknown>): Promise<T & EnrichedRow & RowHelpers>;
|
|
63
|
-
/**
|
|
64
|
-
* Create multiple records in one transactional batch.
|
|
65
|
-
*
|
|
66
|
-
* `data.create` is one row per dispatch; N independent
|
|
67
|
-
* inserts compose through the platform batch primitive (`system.batch`,
|
|
68
|
-
* atomic READ COMMITTED tx). Each child op targets `<entity>.__create`
|
|
69
|
-
* with a FLAT `{entity, fields}` body inside `BatchOp.params`.
|
|
70
|
-
*
|
|
71
|
-
* Returns rows in input order. The batch fails atomically: any per-op
|
|
72
|
-
* error surfaces as a thrown Error with the first failing op's code +
|
|
73
|
-
* message; `committed: false` (4xx/200-soft-fail) means no row was
|
|
74
|
-
* written. The HTTP transport itself failing (5xx, network) keeps
|
|
75
|
-
* propagating as ApiError unchanged.
|
|
76
|
-
*/
|
|
77
|
-
createMany(items: (Partial<T> & Record<string, unknown>)[]): Promise<(T & EnrichedRow & RowHelpers)[]>;
|
|
78
|
-
/** Update a single record. Wraps in array, returns unwrapped result. */
|
|
79
|
-
update(id: string, data: Partial<T> & Record<string, unknown>): Promise<T & EnrichedRow & RowHelpers>;
|
|
80
|
-
/**
|
|
81
|
-
* Update multiple records in one request. Each item must include its id.
|
|
82
|
-
*
|
|
83
|
-
* `data.update` is one fields map per dispatch
|
|
84
|
-
* ({object_ids, entity, fields}); per-row variation composes through
|
|
85
|
-
* `system.batch` (atomic READ COMMITTED tx) — one __update child op per
|
|
86
|
-
* input item, mirroring createMany / upsertMany. The batch is atomic:
|
|
87
|
-
* any per-op failure rolls back all rows. The first per-op error
|
|
88
|
-
* surfaces as a thrown Error.
|
|
89
|
-
*
|
|
90
|
-
* Returns rows in input order.
|
|
91
|
-
*/
|
|
92
|
-
updateMany(items: (Partial<T> & Record<string, unknown> & {
|
|
93
|
-
id: string;
|
|
94
|
-
})[]): Promise<(T & EnrichedRow & RowHelpers)[]>;
|
|
95
|
-
/** Delete a single record by ID. */
|
|
96
|
-
delete(id: string): Promise<void>;
|
|
97
|
-
/**
|
|
98
|
-
* Delete multiple records in one request. Returns the count of deleted
|
|
99
|
-
* records.
|
|
100
|
-
*
|
|
101
|
-
* Dispatches /api/actions/<entity>.__delete with a FLAT envelope
|
|
102
|
-
* ({object_ids, entity}); the server derives the rows from `object_ids`
|
|
103
|
-
* and the entity's PK fields. The legacy `_ids` key is rejected with 400.
|
|
104
|
-
*/
|
|
105
|
-
deleteMany(ids: string[]): Promise<{
|
|
106
|
-
count: number;
|
|
107
|
-
}>;
|
|
108
|
-
/** Restore a single soft-deleted record by ID. */
|
|
109
|
-
restore(id: string): Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* Restore multiple soft-deleted records. Returns the count of restored
|
|
112
|
-
* records.
|
|
113
|
-
*
|
|
114
|
-
* Routes through the platform-default `__restore` action. The legacy CRUD route
|
|
115
|
-
* POST /api/data/{entity}/restore is retired (returns 410). The FLAT
|
|
116
|
-
* envelope ({object_ids, entity}) lands directly in DataRestoreParams
|
|
117
|
-
* via JSON tags; no `params:` wrapper on the wire.
|
|
118
|
-
*/
|
|
119
|
-
restoreMany(ids: string[]): Promise<{
|
|
120
|
-
count: number;
|
|
121
|
-
}>;
|
|
122
|
-
/** Upsert a single record. Wraps in array, returns unwrapped result. */
|
|
123
|
-
upsert(item: Partial<T> & Record<string, unknown>, uniqueFields: string[]): Promise<T & EnrichedRow & RowHelpers>;
|
|
124
|
-
/**
|
|
125
|
-
* Upsert multiple records. Existing matches (by uniqueFields) are
|
|
126
|
-
* updated; absent rows are inserted.
|
|
127
|
-
*
|
|
128
|
-
* `data.upsert` is one row per dispatch (per-row uniqueness matching), so N
|
|
129
|
-
* rows compose through `system.batch`. Each child op targets
|
|
130
|
-
* `<entity>.__upsert` with FLAT `{entity, fields, unique_by}` params.
|
|
131
|
-
* The handler returns `DataUpsertResult.rows[]` where each
|
|
132
|
-
* DataUpsertRowResult carries `{pk, action, row}`; the row payload is
|
|
133
|
-
* extracted to preserve the prior API shape (array of enriched rows).
|
|
134
|
-
*
|
|
135
|
-
* The batch is atomic: any per-op failure rolls back all rows. The
|
|
136
|
-
* first per-op error surfaces as a thrown Error.
|
|
137
|
-
*/
|
|
138
|
-
upsertMany(items: (Partial<T> & Record<string, unknown>)[], uniqueFields: string[]): Promise<(T & EnrichedRow & RowHelpers)[]>;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Create an EntityClient for the given entity code.
|
|
142
|
-
* Optionally share a RefCache across multiple clients.
|
|
143
|
-
*
|
|
144
|
-
* NOTE(T5): Each call creates a new EntityClient (and a new RefCache if none is
|
|
145
|
-
* provided). For cross-page ref accumulation, callers should create a persistent
|
|
146
|
-
* RefCache instance and pass it to every entityClient() call, e.g. via React
|
|
147
|
-
* context or a module-level singleton.
|
|
148
|
-
*/
|
|
149
|
-
export declare function entityClient<T extends Record<string, unknown> = Record<string, unknown>>(entity: string, refCache?: RefCache): EntityClient<T>;
|
package/dist-lib/api/events.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a change frame says happened. The relay emits exactly these three; a
|
|
3
|
-
* restore is an SQL update and arrives as `updated`, so a branch on a fourth
|
|
4
|
-
* value is dead.
|
|
5
|
-
* Declared once here because every layer below reads the same wire word.
|
|
6
|
-
*/
|
|
7
|
-
export type EntityAction = "created" | "updated" | "deleted";
|
|
8
|
-
/** One row a change frame names: its object id and its primary key. */
|
|
9
|
-
export interface ChangedObject {
|
|
10
|
-
object_id?: string;
|
|
11
|
-
pk?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export type SSEEvent = {
|
|
14
|
-
type: "entity_changed";
|
|
15
|
-
eventID?: string;
|
|
16
|
-
entity: string;
|
|
17
|
-
ids: string[];
|
|
18
|
-
objects?: ChangedObject[];
|
|
19
|
-
action: EntityAction;
|
|
20
|
-
/**
|
|
21
|
-
* Why the frame names no rows, when it names none. Only
|
|
22
|
-
* `access_not_projectable` can mean a viewer LOST a row, so only it may
|
|
23
|
-
* empty a cache; the rest leave a screen stale rather than wrong.
|
|
24
|
-
*/
|
|
25
|
-
reason?: string;
|
|
26
|
-
} | {
|
|
27
|
-
type: "checkpoint";
|
|
28
|
-
eventID: string;
|
|
29
|
-
} | {
|
|
30
|
-
type: "replay_complete";
|
|
31
|
-
seq?: number;
|
|
32
|
-
} | {
|
|
33
|
-
type: "snapshot_complete";
|
|
34
|
-
known: boolean;
|
|
35
|
-
asOf?: number;
|
|
36
|
-
} | {
|
|
37
|
-
type: "realtime_streaming";
|
|
38
|
-
eventID?: string;
|
|
39
|
-
degraded: string[];
|
|
40
|
-
} | {
|
|
41
|
-
type: "realtime_degraded";
|
|
42
|
-
eventID?: string;
|
|
43
|
-
entity: string;
|
|
44
|
-
degradedSeq?: number;
|
|
45
|
-
} | {
|
|
46
|
-
type: "cache_reset";
|
|
47
|
-
eventID?: string;
|
|
48
|
-
reason: string;
|
|
49
|
-
requestedSeq?: number;
|
|
50
|
-
oldestSeq?: number;
|
|
51
|
-
resetSeq?: number;
|
|
52
|
-
} | {
|
|
53
|
-
type: "session_refresh";
|
|
54
|
-
};
|
|
55
|
-
export declare const agentBus: EventTarget;
|
|
56
|
-
export declare const AGENT_FRAME_EVENT = "agent-frame";
|
|
57
|
-
export declare const AGENT_MESSAGE_CHANGED_EVENT = "agent-message-changed";
|
|
58
|
-
export interface AgentFrameDetail {
|
|
59
|
-
convId: string;
|
|
60
|
-
kind: string;
|
|
61
|
-
turnId?: string;
|
|
62
|
-
payload?: Record<string, unknown>;
|
|
63
|
-
}
|
|
64
|
-
export declare function emitAgentFrame(detail: AgentFrameDetail): void;
|
|
65
|
-
export declare class SSEAuthError extends Error {
|
|
66
|
-
constructor();
|
|
67
|
-
}
|
|
68
|
-
export interface StreamEventsOptions {
|
|
69
|
-
signal?: AbortSignal;
|
|
70
|
-
lastEventID?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Embed token mode: the scoped embed JWT. When set, it is sent as
|
|
73
|
-
* `Authorization: Bearer <token>` and the request omits cookies (see
|
|
74
|
-
* `credentials` below). Outside embed mode this is undefined and the
|
|
75
|
-
* cookie path runs unchanged.
|
|
76
|
-
*/
|
|
77
|
-
bearerToken?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Cookie policy for the SSE fetch. Defaults to `"include"` (the cookie
|
|
80
|
-
* path). Embed mode passes `"omit"`: the iframe is same-origin to
|
|
81
|
-
* Declarion and the auth middleware reads the cookie before the Bearer
|
|
82
|
-
* header, so a sent cookie would bypass the scoped embed token.
|
|
83
|
-
*/
|
|
84
|
-
credentials?: RequestCredentials;
|
|
85
|
-
/**
|
|
86
|
-
* Called for every chunk read from the stream, heartbeat comments included:
|
|
87
|
-
* what proves the connection is still alive on a tenant with nothing to say.
|
|
88
|
-
*/
|
|
89
|
-
onActivity?: () => void;
|
|
90
|
-
}
|
|
91
|
-
export declare function streamEvents(options?: StreamEventsOptions): AsyncGenerator<SSEEvent>;
|
package/dist-lib/api/params.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ParamLookup, PublicParamsResponse, ResolvedParam } from "../types/api.d.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Fetches the full pre-login envelope from /api/params/public:
|
|
4
|
-
* {parameters, accents, meta}. Used by AuthShell to theme
|
|
5
|
-
* unauthenticated screens before any user context exists.
|
|
6
|
-
*/
|
|
7
|
-
export declare function fetchPublicParams(): Promise<PublicParamsResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Looks up a single parameter from the platform. Always returns a
|
|
10
|
-
* `ParamLookup`; `found:false` signals "no value, use your default".
|
|
11
|
-
* Network/auth failures still throw - "missing" is normal, "broken"
|
|
12
|
-
* is an error.
|
|
13
|
-
*/
|
|
14
|
-
export declare function fetchParam(code: string): Promise<ParamLookup>;
|
|
15
|
-
/**
|
|
16
|
-
* Fetches the bulk effective-value view: every declared parameter the caller
|
|
17
|
-
* may see (disclosure-tiered server-side), each carrying its declaration facets
|
|
18
|
-
* (scopes / structure / choices) so the admin UIs are self-sufficient.
|
|
19
|
-
*
|
|
20
|
-
* `resolution: "tenant"` returns the TENANT BASELINE (yaml/env/tenant sources
|
|
21
|
-
* only, no role/user overlays) - the lens the tenant Parameters screen edits.
|
|
22
|
-
* Omit it for the caller's full personal resolution (Profile / attachment).
|
|
23
|
-
*
|
|
24
|
-
* NOTE: there is deliberately NO partial-write helper. Parameter overrides are
|
|
25
|
-
* written through the carrier entity's `__update` action with a FULL `$params`
|
|
26
|
-
* set (see ParamsBlock); a single-code write would delete every other override.
|
|
27
|
-
*/
|
|
28
|
-
export declare function fetchAllParams(resolution?: "tenant"): Promise<ResolvedParam[]>;
|