@declarion/react 0.61.1 → 0.63.1
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/types/api.d.ts
DELETED
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
import type { AccentDef, EntityField, LocalizedString } from "./schema";
|
|
2
|
-
import type { HydratedFile } from "./files";
|
|
3
|
-
import type { FilterNode } from "../lib/filters.d.ts";
|
|
4
|
-
export interface ListMeta {
|
|
5
|
-
/**
|
|
6
|
-
* Total matching rows. Present only when the request asked for a count
|
|
7
|
-
* (`count=with` / `count=only` / `count=exact`). Absent (undefined) on a
|
|
8
|
-
* window-only response (`count` omitted) - the page of rows arrives
|
|
9
|
-
* without ever blocking on the count. Treat `count_mode === undefined` as
|
|
10
|
-
* "no count yet" and ignore `total` then.
|
|
11
|
-
*/
|
|
12
|
-
total?: number;
|
|
13
|
-
page: number;
|
|
14
|
-
per_page: number;
|
|
15
|
-
/** Present only when a count was computed (see `total`). */
|
|
16
|
-
total_pages?: number;
|
|
17
|
-
has_more?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* How `total` was produced: "exact" (an exact COUNT(*)) or "estimated"
|
|
20
|
-
* (an O(1) query-planner estimate). Absent when no count was computed.
|
|
21
|
-
* The SDK keys display precision on this, NOT on the entity schema, so a
|
|
22
|
-
* forced exact count renders precisely even on a `count: estimated`
|
|
23
|
-
* entity.
|
|
24
|
-
*/
|
|
25
|
-
count_mode?: "exact" | "estimated";
|
|
26
|
-
}
|
|
27
|
-
export interface ListResponse<T = Record<string, unknown>> {
|
|
28
|
-
data: T[];
|
|
29
|
-
meta: ListMeta;
|
|
30
|
-
$refs?: Refs;
|
|
31
|
-
}
|
|
32
|
-
export interface DataResponse<T = Record<string, unknown>> {
|
|
33
|
-
data: T;
|
|
34
|
-
$refs?: Refs;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A failure, in RFC 9457 Problem Details form - the one shape every Declarion
|
|
38
|
-
* carrier sends. `type` is the identifier to branch on; its last path segment is
|
|
39
|
-
* identical in every deployment. `title` is the sentence to SHOW: the server
|
|
40
|
-
* already rendered it in this caller's language, and the browser holds no
|
|
41
|
-
* catalogue to render one itself. A type's declared members are TOP-LEVEL, which
|
|
42
|
-
* is why this is an index signature and not a fixed shape.
|
|
43
|
-
*/
|
|
44
|
-
export interface ApiErrorBody {
|
|
45
|
-
type: string;
|
|
46
|
-
status?: number;
|
|
47
|
-
title: string;
|
|
48
|
-
/** This occurrence. A DIAGNOSTIC, not the headline - and absent for a failure nothing recognised. */
|
|
49
|
-
detail?: string;
|
|
50
|
-
instance?: string;
|
|
51
|
-
retryable: boolean;
|
|
52
|
-
[member: string]: unknown;
|
|
53
|
-
}
|
|
54
|
-
export declare class ApiError extends Error {
|
|
55
|
-
status: number;
|
|
56
|
-
/** The identifier to compare - the type's last path segment, e.g. `entity.not_found`. */
|
|
57
|
-
code: string;
|
|
58
|
-
/** The full `type`, e.g. `/errors/entity.not_found`. */
|
|
59
|
-
type: string;
|
|
60
|
-
/** Whether the same call can succeed later. From the DECLARATION, never computed from a status. */
|
|
61
|
-
retryable: boolean;
|
|
62
|
-
/** The diagnostic for this occurrence. Never the headline a user reads. */
|
|
63
|
-
detail?: string;
|
|
64
|
-
/** Bulk operation item index (present on validation errors for array requests). */
|
|
65
|
-
index?: number;
|
|
66
|
-
/** The untouched body, so a caller can re-detect a shape this class does not model. */
|
|
67
|
-
raw?: unknown;
|
|
68
|
-
constructor(status: number, body: Partial<ApiErrorBody>, raw?: unknown);
|
|
69
|
-
/**
|
|
70
|
-
* A declared member of this error's type. ONE accessor, so the six known
|
|
71
|
-
* consumers (`constraint`, `row_version`, `did_you_mean`, `valid_parameters`,
|
|
72
|
-
* `threshold`, `width`) do not each invent an access pattern.
|
|
73
|
-
*/
|
|
74
|
-
ext<T = unknown>(member: string): T | undefined;
|
|
75
|
-
}
|
|
76
|
-
/** The comparable identifier inside a `type`: its last path segment. */
|
|
77
|
-
export declare function errorCodeOf(type: string | undefined): string;
|
|
78
|
-
/** Whether a parsed JSON body is the platform's error object. */
|
|
79
|
-
export declare function isApiErrorBody(body: unknown): body is ApiErrorBody;
|
|
80
|
-
/**
|
|
81
|
-
* Stable error codes for cursor-based list pagination. The server returns
|
|
82
|
-
* these on ValidationError{Field:"after"} when an `after` token cannot be
|
|
83
|
-
* resumed under current request conditions:
|
|
84
|
-
*
|
|
85
|
-
* - CURSOR_SEMANTICS_MISMATCH: the cursor was minted under different sort
|
|
86
|
-
* semantics (multi-column ordering, NULL placement). Server bumped its
|
|
87
|
-
* cursor format version since the cursor was issued.
|
|
88
|
-
* - CURSOR_LANGUAGE_CHANGED: the cursor was minted in one language and the
|
|
89
|
-
* request now reads in another. Issued so multilang sort cannot silently
|
|
90
|
-
* re-order mid-pagination.
|
|
91
|
-
*
|
|
92
|
-
* UX contract for both: clear the `after` token and refetch page 1 under
|
|
93
|
-
* the current conditions. EntityClient.list does this transparently;
|
|
94
|
-
* direct apiFetch callers can recognise these codes to drive their own
|
|
95
|
-
* retry logic.
|
|
96
|
-
*/
|
|
97
|
-
export declare const CURSOR_SEMANTICS_MISMATCH = "cursor.semantics_mismatch";
|
|
98
|
-
export declare const CURSOR_LANGUAGE_CHANGED = "cursor.language_changed";
|
|
99
|
-
/**
|
|
100
|
-
* A cross-store (Postgres-hot / ClickHouse-cold) archive cursor that the server
|
|
101
|
-
* could not decode for this read - a malformed token, a tenant/entity mismatch,
|
|
102
|
-
* or a retired bespoke-archive cursor minted before the native-cursor release.
|
|
103
|
-
* Same recovery contract as the other two: drop `after`, refetch window 1.
|
|
104
|
-
*/
|
|
105
|
-
export declare const ARCHIVE_CURSOR_INVALID = "cursor.archive_invalid";
|
|
106
|
-
/** True if the error is a recoverable cursor-stale signal that warrants
|
|
107
|
-
* refetching page 1 instead of surfacing to the user. */
|
|
108
|
-
export declare function isCursorStaleError(err: unknown): boolean;
|
|
109
|
-
export type TenantEnv = "production" | "staging" | "dev" | (string & {});
|
|
110
|
-
export interface Tenant {
|
|
111
|
-
id: string;
|
|
112
|
-
code: string;
|
|
113
|
-
name: string;
|
|
114
|
-
role: string;
|
|
115
|
-
env?: TenantEnv;
|
|
116
|
-
/**
|
|
117
|
-
* Whether the caller has a `tenant_users` row for this tenant. Always
|
|
118
|
-
* true for non-superadmins. For superadmins, `auth.list_tenants` also
|
|
119
|
-
* returns non-membership tenants reachable via cross-tenant authority;
|
|
120
|
-
* the switcher splits them into a separate "All tenants" section.
|
|
121
|
-
*/
|
|
122
|
-
is_member?: boolean;
|
|
123
|
-
}
|
|
124
|
-
export interface AuthUser {
|
|
125
|
-
id: string;
|
|
126
|
-
email: string;
|
|
127
|
-
display_name: string;
|
|
128
|
-
is_active: boolean;
|
|
129
|
-
roles: string[];
|
|
130
|
-
permissions?: string[];
|
|
131
|
-
tenant?: Tenant;
|
|
132
|
-
/** Populated only when the request is acting under an impersonation session. */
|
|
133
|
-
impersonation?: ImpersonationInfo;
|
|
134
|
-
created_at: string;
|
|
135
|
-
updated_at: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* ImpersonationInfo is the read-side projection of the active session
|
|
139
|
-
* surfaced by auth.me. Drives the banner, topbar chip, viewport frame,
|
|
140
|
-
* and the "Exit impersonation" menu item.
|
|
141
|
-
*/
|
|
142
|
-
export interface ImpersonationInfo {
|
|
143
|
-
session_id: string;
|
|
144
|
-
real_user_id: string;
|
|
145
|
-
real_user_email?: string;
|
|
146
|
-
target_user_id: string;
|
|
147
|
-
target_user_email?: string;
|
|
148
|
-
reason: string;
|
|
149
|
-
started_at: string;
|
|
150
|
-
expires_at: string;
|
|
151
|
-
}
|
|
152
|
-
export interface LoginResponse {
|
|
153
|
-
expires_at: string;
|
|
154
|
-
user: AuthUser;
|
|
155
|
-
tenant?: Tenant;
|
|
156
|
-
}
|
|
157
|
-
export interface CheckSetupResponse {
|
|
158
|
-
needs_setup: boolean;
|
|
159
|
-
}
|
|
160
|
-
export interface StatusInfo {
|
|
161
|
-
group_code: string;
|
|
162
|
-
status_code: string;
|
|
163
|
-
status_name: LocalizedString;
|
|
164
|
-
color?: string;
|
|
165
|
-
set_by?: string;
|
|
166
|
-
set_at: string;
|
|
167
|
-
note?: string;
|
|
168
|
-
}
|
|
169
|
-
export interface PropertyValue {
|
|
170
|
-
property_code: string;
|
|
171
|
-
name: LocalizedString;
|
|
172
|
-
type: string;
|
|
173
|
-
value: unknown;
|
|
174
|
-
}
|
|
175
|
-
export interface PublicParam {
|
|
176
|
-
code: string;
|
|
177
|
-
name: LocalizedString;
|
|
178
|
-
type: string;
|
|
179
|
-
structure?: string;
|
|
180
|
-
category: string;
|
|
181
|
-
description?: LocalizedString;
|
|
182
|
-
value: unknown;
|
|
183
|
-
}
|
|
184
|
-
/** Per-app legal/support URL set rendered in the auth-shell footer. */
|
|
185
|
-
export interface PublicLegalLinks {
|
|
186
|
-
security_url?: string;
|
|
187
|
-
privacy_url?: string;
|
|
188
|
-
terms_url?: string;
|
|
189
|
-
docs_url?: string;
|
|
190
|
-
}
|
|
191
|
-
export interface BrandingIdentity {
|
|
192
|
-
app_name?: string;
|
|
193
|
-
app_logo?: string;
|
|
194
|
-
app_initial?: string;
|
|
195
|
-
ai_name?: string;
|
|
196
|
-
wordmark?: string;
|
|
197
|
-
version_label?: string;
|
|
198
|
-
status_url?: string;
|
|
199
|
-
auth_tagline?: LocalizedString;
|
|
200
|
-
auth_subtagline?: LocalizedString;
|
|
201
|
-
auth_badges?: LocalizedString[];
|
|
202
|
-
legal_entity?: string;
|
|
203
|
-
workspace_domain?: string;
|
|
204
|
-
legal_links?: PublicLegalLinks;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Fourteen brand colors, each named EXACTLY after the CSS custom property it
|
|
208
|
-
* writes, with underscores hyphenated: `surface_2` writes `--surface-2`. A
|
|
209
|
-
* developer who set a field in YAML reaches the same token from their own
|
|
210
|
-
* stylesheet without a lookup table. `branding.colorFields.test.ts` enforces
|
|
211
|
-
* the mapping against the YAML structure, across languages.
|
|
212
|
-
*
|
|
213
|
-
* The shades that hang off these (`--accent-soft`, `--accent-ring`,
|
|
214
|
-
* `--row-selected-bg`) are DERIVED from them and are not settable here: a
|
|
215
|
-
* designer picks an accent, and the tints follow. A brand that wants a bespoke
|
|
216
|
-
* tint sets the custom property in `theme.css_url`, with a plain rule and no
|
|
217
|
-
* `!important`.
|
|
218
|
-
*/
|
|
219
|
-
export interface BrandingThemeColors {
|
|
220
|
-
background?: string;
|
|
221
|
-
surface?: string;
|
|
222
|
-
surface_2?: string;
|
|
223
|
-
surface_3?: string;
|
|
224
|
-
text?: string;
|
|
225
|
-
text_2?: string;
|
|
226
|
-
text_3?: string;
|
|
227
|
-
border?: string;
|
|
228
|
-
divider?: string;
|
|
229
|
-
accent?: string;
|
|
230
|
-
accent_hover?: string;
|
|
231
|
-
accent_foreground?: string;
|
|
232
|
-
sidebar?: string;
|
|
233
|
-
rail?: string;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Page-title typography. Scheme-independent: a title is the same size in light
|
|
237
|
-
* and dark. Each field is named after the CSS custom property it writes:
|
|
238
|
-
* `page_title_size` writes `--page-title-size`.
|
|
239
|
-
*
|
|
240
|
-
* Three surfaces render an `<h1>` page title at three sizes the designer chose
|
|
241
|
-
* (list 20px, record 19px, page 18px). Declaring `page_title_size` overrides all
|
|
242
|
-
* three at once; omitting it leaves each on its own designed default.
|
|
243
|
-
*/
|
|
244
|
-
export interface BrandingTypography {
|
|
245
|
-
/** e.g. "15px". Overrides every page title's size. */
|
|
246
|
-
page_title_size?: string;
|
|
247
|
-
/** e.g. "22.5px" or "1.5". Overrides every page title's line height. */
|
|
248
|
-
page_title_line_height?: string;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Brand colors keyed by color scheme. A scheme may be omitted entirely, or any
|
|
252
|
-
* field within it omitted; the platform's own token for that scheme applies. A
|
|
253
|
-
* value is NEVER copied from the other scheme - that is the bug this shape
|
|
254
|
-
* exists to make impossible.
|
|
255
|
-
*/
|
|
256
|
-
export interface BrandingThemeColorSchemes {
|
|
257
|
-
light?: BrandingThemeColors;
|
|
258
|
-
dark?: BrandingThemeColors;
|
|
259
|
-
}
|
|
260
|
-
export interface BrandingTheme {
|
|
261
|
-
css_url?: string;
|
|
262
|
-
font_sans?: string;
|
|
263
|
-
font_mono?: string;
|
|
264
|
-
typography?: BrandingTypography;
|
|
265
|
-
colors?: BrandingThemeColorSchemes;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* The deployment's DEFAULTS for the controls the Preferences screen renders,
|
|
269
|
-
* and the single durable source of preference state: the browser stores
|
|
270
|
-
* nothing. A user's toggle holds for the SPA session and resets to
|
|
271
|
-
* these on reload.
|
|
272
|
-
*
|
|
273
|
-
* Wire shape is snake_case because it is YAML. `stores/preferences.ts` owns the
|
|
274
|
-
* single translation into the camelCase store; add a field here and there, or
|
|
275
|
-
* it will load, validate, and do nothing.
|
|
276
|
-
*/
|
|
277
|
-
export interface BrandingPreferences {
|
|
278
|
-
color_scheme?: "light" | "dark";
|
|
279
|
-
accent?: "violet" | "blue" | "teal" | "amber" | "rose";
|
|
280
|
-
density?: "compact" | "comfortable" | "cozy";
|
|
281
|
-
sidebar?: "wide" | "collapsed";
|
|
282
|
-
tabs_position?: "top" | "bottom";
|
|
283
|
-
tabs_max_open?: number;
|
|
284
|
-
tabs_persist?: boolean;
|
|
285
|
-
radius?: number;
|
|
286
|
-
zebra_rows?: boolean;
|
|
287
|
-
ai_surface?: "command" | "panel" | "both" | "off";
|
|
288
|
-
toast_position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Per-surface chrome flags - mirrors the YAML `branding_surface_flags`
|
|
292
|
-
* structure exactly. Kept distinct from {@link BrandingShellFlags}: the two
|
|
293
|
-
* are different YAML structures, and conflating them let a caller ask a
|
|
294
|
-
* surface for a shell flag that could never be set there.
|
|
295
|
-
*/
|
|
296
|
-
export interface BrandingSurfaceFlags {
|
|
297
|
-
show_title?: boolean;
|
|
298
|
-
show_actions?: boolean;
|
|
299
|
-
show_count?: boolean;
|
|
300
|
-
}
|
|
301
|
-
/** Shell chrome flags - mirrors the YAML `branding_chrome_shell` structure. */
|
|
302
|
-
export interface BrandingShellFlags {
|
|
303
|
-
show_topbar?: boolean;
|
|
304
|
-
show_rail?: boolean;
|
|
305
|
-
show_sidebar?: boolean;
|
|
306
|
-
show_tabs?: boolean;
|
|
307
|
-
show_breadcrumbs?: boolean;
|
|
308
|
-
show_tenant_switcher?: boolean;
|
|
309
|
-
show_command_palette?: boolean;
|
|
310
|
-
show_theme_toggle?: boolean;
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* The device class the SDK renders for. `auto` derives it from the measured
|
|
314
|
-
* viewport, which is what the platform has always done and what a deployment
|
|
315
|
-
* that declares nothing keeps.
|
|
316
|
-
*/
|
|
317
|
-
export type BrandingViewport = "auto" | "phone" | "tablet" | "desktop";
|
|
318
|
-
/**
|
|
319
|
-
* Where a deployment draws the device-class boundaries. Each key overrides one
|
|
320
|
-
* bound of the SDK's default table; an omitted key keeps the default, so a
|
|
321
|
-
* deployment moves the one boundary its devices need without restating the
|
|
322
|
-
* others. A forced `viewport` bypasses the boundaries entirely and wins.
|
|
323
|
-
*/
|
|
324
|
-
export interface BrandingBreakpoints {
|
|
325
|
-
phone_max?: number;
|
|
326
|
-
tablet_max?: number;
|
|
327
|
-
landscape_phone_max_height?: number;
|
|
328
|
-
}
|
|
329
|
-
export interface BrandingChrome {
|
|
330
|
-
full?: {
|
|
331
|
-
viewport?: BrandingViewport;
|
|
332
|
-
breakpoints?: BrandingBreakpoints;
|
|
333
|
-
shell?: BrandingShellFlags;
|
|
334
|
-
surfaces?: {
|
|
335
|
-
list?: BrandingSurfaceFlags;
|
|
336
|
-
detail?: BrandingSurfaceFlags;
|
|
337
|
-
record_list?: BrandingSurfaceFlags;
|
|
338
|
-
custom?: BrandingSurfaceFlags;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
embed?: {
|
|
342
|
-
viewport?: BrandingViewport;
|
|
343
|
-
breakpoints?: BrandingBreakpoints;
|
|
344
|
-
surfaces?: {
|
|
345
|
-
list?: BrandingSurfaceFlags;
|
|
346
|
-
detail?: BrandingSurfaceFlags;
|
|
347
|
-
record_list?: BrandingSurfaceFlags;
|
|
348
|
-
custom?: BrandingSurfaceFlags;
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
/** Structured value of the public `branding` parameter. */
|
|
353
|
-
export interface PublicBranding {
|
|
354
|
-
identity?: BrandingIdentity;
|
|
355
|
-
theme?: BrandingTheme;
|
|
356
|
-
preferences?: BrandingPreferences;
|
|
357
|
-
chrome?: BrandingChrome;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Deploy-time identity exposed pre-login by /api/params/public so the
|
|
361
|
-
* auth shell can render real region/build values (no mockup placeholders).
|
|
362
|
-
* Each field is empty when unconfigured/unset; consumers hide the pill
|
|
363
|
-
* when the entire block is missing or empty.
|
|
364
|
-
*/
|
|
365
|
-
export interface PublicMeta {
|
|
366
|
-
version?: string;
|
|
367
|
-
revision?: string;
|
|
368
|
-
build_time?: string;
|
|
369
|
-
region?: string;
|
|
370
|
-
}
|
|
371
|
-
/** Envelope returned by GET /api/params/public. */
|
|
372
|
-
export interface PublicParamsResponse {
|
|
373
|
-
parameters: PublicParam[];
|
|
374
|
-
accents?: Record<string, AccentDef>;
|
|
375
|
-
meta?: PublicMeta;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Wire envelope for GET /api/params/{code}.
|
|
379
|
-
*
|
|
380
|
-
* The server always responds with HTTP 200. `found:false` means the
|
|
381
|
-
* platform has no value for the code (undeclared, restricted-category,
|
|
382
|
-
* or no value at any resolution layer); the caller substitutes its own
|
|
383
|
-
* default. `found:true` means `value` is authoritative - even if it is
|
|
384
|
-
* null/zero (an explicit nil value is a real value, not absence).
|
|
385
|
-
*
|
|
386
|
-
* The default never crosses the wire; servers don't track caller
|
|
387
|
-
* defaults, so two callers with different defaults always see consistent
|
|
388
|
-
* server state.
|
|
389
|
-
*/
|
|
390
|
-
export interface ParamLookup {
|
|
391
|
-
code: string;
|
|
392
|
-
found: boolean;
|
|
393
|
-
value?: unknown;
|
|
394
|
-
source?: "object" | "user" | "role" | "tenant" | "env" | "yaml";
|
|
395
|
-
type?: string;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* One entry of the bulk `GET /api/params` response (and per-code resolution).
|
|
399
|
-
* Carries the declaration facets the admin UIs need to compute attachment,
|
|
400
|
-
* render structure editors, and render member selects, so the bulk endpoint is
|
|
401
|
-
* self-sufficient without a second schema fetch.
|
|
402
|
-
*/
|
|
403
|
-
export interface ResolvedParam {
|
|
404
|
-
code: string;
|
|
405
|
-
name: LocalizedString;
|
|
406
|
-
type: string;
|
|
407
|
-
category?: string;
|
|
408
|
-
description?: LocalizedString;
|
|
409
|
-
value: unknown;
|
|
410
|
-
source: "object" | "user" | "role" | "tenant" | "env" | "yaml" | "none";
|
|
411
|
-
/** Override levels the param accepts (reserved words or entity codes). */
|
|
412
|
-
scopes?: string[];
|
|
413
|
-
/** Structure code when `type === "structure"`. */
|
|
414
|
-
structure?: string;
|
|
415
|
-
/** Members of a closed type - `enum`, or an enum-backed `string_array`.
|
|
416
|
-
* Carried whole rather than as bare codes so the editor can show a name. */
|
|
417
|
-
values?: EntityField["values"];
|
|
418
|
-
/** Shared enum this parameter names, when it names one rather than listing
|
|
419
|
-
* its members inline. Present for display; `values` is what to render. */
|
|
420
|
-
enum?: string;
|
|
421
|
-
ref?: EntityField["ref"];
|
|
422
|
-
}
|
|
423
|
-
export interface ParamOverride {
|
|
424
|
-
param_code: string;
|
|
425
|
-
value: unknown;
|
|
426
|
-
}
|
|
427
|
-
export interface SSOProvider {
|
|
428
|
-
name: string;
|
|
429
|
-
slug: string;
|
|
430
|
-
}
|
|
431
|
-
export interface ListParams {
|
|
432
|
-
page?: number;
|
|
433
|
-
per_page?: number;
|
|
434
|
-
sort?: string;
|
|
435
|
-
search?: string;
|
|
436
|
-
/** JSON filter nodes (recursive AND/OR tree). */
|
|
437
|
-
filters?: FilterNode[];
|
|
438
|
-
include_deleted?: boolean;
|
|
439
|
-
expand?: string[];
|
|
440
|
-
screen?: string;
|
|
441
|
-
/** Return bounded display previews for fields that declare display.list_preview. */
|
|
442
|
-
preview?: boolean;
|
|
443
|
-
/**
|
|
444
|
-
* Field whitelist. When set, the server returns only these columns plus
|
|
445
|
-
* primary-key field(s) (auto-injected server-side). Filters/search/sort
|
|
446
|
-
* still operate against all fields regardless of select. Omit to fetch
|
|
447
|
-
* every column (default, backwards-compatible).
|
|
448
|
-
*/
|
|
449
|
-
select?: string[];
|
|
450
|
-
/**
|
|
451
|
-
* Row-count strategy for this request. Maps to the `?count=` query param.
|
|
452
|
-
* omitted / "window" - rows only, no total (the page-window request;
|
|
453
|
-
* the table never blocks on a count).
|
|
454
|
-
* "only" - total only, no rows (the follow-up count request).
|
|
455
|
-
* "with" - rows + total, using the entity's declared strategy.
|
|
456
|
-
* "exact" - rows + forced exact total.
|
|
457
|
-
*/
|
|
458
|
-
count?: "window" | "only" | "with" | "exact";
|
|
459
|
-
}
|
|
460
|
-
/** Cursor-based pagination metadata returned by v2 List. */
|
|
461
|
-
export interface V2Meta {
|
|
462
|
-
total: number;
|
|
463
|
-
limit: number;
|
|
464
|
-
has_more: boolean;
|
|
465
|
-
cursor?: string;
|
|
466
|
-
/** How `total` was produced: "exact" or "estimated". Absent when no count
|
|
467
|
-
* was requested. A cross-store cursor total is always "estimated". */
|
|
468
|
-
count_mode?: string;
|
|
469
|
-
/** True when a count WAS requested but abandoned because the cold-tier count
|
|
470
|
-
* would exceed the interactive scan bound (BC4b). The data window still
|
|
471
|
-
* loaded; render NO total ("~N") - distinct from a real `total: 0`. */
|
|
472
|
-
count_unknown?: boolean;
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Refs map: keyed by entity code (or $-prefixed virtual entity code),
|
|
476
|
-
* then by record ID, then field values.
|
|
477
|
-
* Example: { company: { "uuid-1": { id: "uuid-1", name: "Acme" } } }
|
|
478
|
-
*/
|
|
479
|
-
export type Refs = Record<string, Record<string, Record<string, unknown>>>;
|
|
480
|
-
/** Per-row status instance. */
|
|
481
|
-
export interface V2StatusInstance {
|
|
482
|
-
group_code: string;
|
|
483
|
-
status_code: string;
|
|
484
|
-
status_name?: Record<string, string>;
|
|
485
|
-
color?: string;
|
|
486
|
-
set_at?: string;
|
|
487
|
-
set_by?: string;
|
|
488
|
-
note?: string;
|
|
489
|
-
}
|
|
490
|
-
/** Per-row property instance. */
|
|
491
|
-
export interface V2PropertyInstance {
|
|
492
|
-
property_code: string;
|
|
493
|
-
value: unknown;
|
|
494
|
-
updated_at?: string;
|
|
495
|
-
updated_by?: string;
|
|
496
|
-
}
|
|
497
|
-
/** Per-row parameter override. */
|
|
498
|
-
/**
|
|
499
|
-
* The last verification verdict of an evidence-covered row, shipped under the
|
|
500
|
-
* row's `$evidence` key (the evidence satellite, mirroring `$statuses`). Read
|
|
501
|
-
* cheaply from the stored verification result - never a live re-verify. Mirrors
|
|
502
|
-
* the Go `evidence.RowVerdict`. `verdict` is one of: `verified`, `unverified`,
|
|
503
|
-
* `tampered`, `indeterminate`, `outside_coverage`.
|
|
504
|
-
*/
|
|
505
|
-
export interface EvidenceVerdict {
|
|
506
|
-
verdict: string;
|
|
507
|
-
verified_at?: string;
|
|
508
|
-
reason?: string;
|
|
509
|
-
seq?: number;
|
|
510
|
-
generation?: number;
|
|
511
|
-
covered: boolean;
|
|
512
|
-
}
|
|
513
|
-
export interface V2ParamInstance {
|
|
514
|
-
param_code: string;
|
|
515
|
-
value: unknown;
|
|
516
|
-
}
|
|
517
|
-
/** v2 List response with cursor pagination and response-level $refs. */
|
|
518
|
-
export interface V2ListResponse<T = Record<string, unknown>> {
|
|
519
|
-
data: T[];
|
|
520
|
-
meta: V2Meta;
|
|
521
|
-
$refs?: Refs;
|
|
522
|
-
}
|
|
523
|
-
/** v2 List query parameters. */
|
|
524
|
-
export interface V2ListParams {
|
|
525
|
-
select?: string[];
|
|
526
|
-
expand?: string[];
|
|
527
|
-
sort?: string;
|
|
528
|
-
search?: string;
|
|
529
|
-
filters?: FilterNode[];
|
|
530
|
-
limit?: number;
|
|
531
|
-
after?: string;
|
|
532
|
-
include_deleted?: boolean;
|
|
533
|
-
/** Request the (estimated) total alongside the window (`?count=with`). The
|
|
534
|
-
* cursor UI sends this on the FIRST window only; later windows omit it. */
|
|
535
|
-
count?: boolean;
|
|
536
|
-
/** Screen code, so the server applies that screen's `fixed_filters` (a
|
|
537
|
-
* cursor list of a `fixed_filters` view, e.g. the audit auth-log, needs
|
|
538
|
-
* the same server-side prefilter the offset list gets). */
|
|
539
|
-
screen?: string;
|
|
540
|
-
/** Return display-bounded (truncated) values for list cells, matching the
|
|
541
|
-
* offset list's `preview: true`. */
|
|
542
|
-
preview?: boolean;
|
|
543
|
-
}
|
|
544
|
-
/** Per-field resolved display unit codes. */
|
|
545
|
-
export type Units = Record<string, string>;
|
|
546
|
-
/**
|
|
547
|
-
* A raw entity row: an untyped bag of field values keyed by field code. The
|
|
548
|
-
* single canonical alias for `Record<string, unknown>` rows - import this
|
|
549
|
-
* instead of re-declaring a local `RowData`/`RowData`. `EnrichedRow` is the
|
|
550
|
-
* same bag plus typed `$`-prefixed sub-resources.
|
|
551
|
-
*/
|
|
552
|
-
export type RowData = Record<string, unknown>;
|
|
553
|
-
/** A row enriched with $-prefixed sub-resources (as returned by Get or write responses). */
|
|
554
|
-
export interface EnrichedRow extends RowData {
|
|
555
|
-
$refs?: Refs;
|
|
556
|
-
$files?: Record<string, HydratedFile | HydratedFile[] | null>;
|
|
557
|
-
$statuses?: V2StatusInstance[];
|
|
558
|
-
$properties?: V2PropertyInstance[];
|
|
559
|
-
$params?: V2ParamInstance[];
|
|
560
|
-
$children?: Record<string, Record<string, unknown>[]>;
|
|
561
|
-
$units?: Units;
|
|
562
|
-
$evidence?: EvidenceVerdict;
|
|
563
|
-
}
|
|
564
|
-
/** readProblem is the ONE way this client reads a failing response.
|
|
565
|
-
*
|
|
566
|
-
* It always consumes the body, even where only the status is acted on: an
|
|
567
|
-
* unread body leaves its stream - and the connection under it - open in the
|
|
568
|
-
* browser until garbage collection, and a page holding one never reaches
|
|
569
|
-
* network idle. A `/reset` page sat with one open refresh response for exactly
|
|
570
|
-
* that reason.
|
|
571
|
-
*
|
|
572
|
-
* `raw` is the untouched body, which the batch re-detection still needs; `body`
|
|
573
|
-
* is it only when it IS the error object. Two top-level shapes arrive here: a
|
|
574
|
-
* flat error object HAS a `type`, and a processed batch result
|
|
575
|
-
* (`{status, success, errors}`) is deliberately not an error. */
|
|
576
|
-
export declare function readProblem(res: Response): Promise<{
|
|
577
|
-
raw: unknown;
|
|
578
|
-
body: Partial<ApiErrorBody>;
|
|
579
|
-
}>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type FieldType = "uuid" | "string" | "text" | "rich_text" | "int" | "float" | "bool" | "date" | "time" | "timestamp" | "email" | "url" | "phone" | "enum" | "json" | "ref" | "tags" | "multilang" | "multilang_text" | "multilang_array" | "structure" | "secret" | "password" | "decimal" | "string_array" | "int_array" | "uuid_array" | "bytes";
|
|
2
|
-
export declare const FIELD_TYPES: readonly FieldType[];
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { LocalizedString } from "./schema";
|
|
2
|
-
export type FileFieldMode = "single" | "array" | "named_map" | "rich_text_inline";
|
|
3
|
-
export interface FileFieldDisplay {
|
|
4
|
-
widget: string;
|
|
5
|
-
placeholder?: LocalizedString;
|
|
6
|
-
initials?: boolean;
|
|
7
|
-
crop_on_upload?: boolean;
|
|
8
|
-
aspect_ratio?: string;
|
|
9
|
-
focal_point?: boolean;
|
|
10
|
-
is_listable?: boolean;
|
|
11
|
-
listable_thumbnail?: string;
|
|
12
|
-
reorderable?: boolean;
|
|
13
|
-
bulk_upload?: boolean;
|
|
14
|
-
bulk_download?: boolean;
|
|
15
|
-
lazy_load?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface FileNamedSlotDef {
|
|
18
|
-
name: LocalizedString;
|
|
19
|
-
accepts?: string[];
|
|
20
|
-
max_size_bytes?: number;
|
|
21
|
-
aspect_ratio?: string;
|
|
22
|
-
storage_backend?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface FileFieldDef {
|
|
25
|
-
/** The field's code, populated by the hydrator from the enclosing map key -
|
|
26
|
-
* not a label a person reads. `OrderedMap.fromObject` takes bodies as
|
|
27
|
-
* `Omit<_, "name">`, so a body cannot state it. */
|
|
28
|
-
name: string;
|
|
29
|
-
mode: FileFieldMode;
|
|
30
|
-
accepts?: string[];
|
|
31
|
-
max_size_bytes?: number;
|
|
32
|
-
max_count?: number;
|
|
33
|
-
max_total_size_bytes?: number;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
slots?: Record<string, FileNamedSlotDef>;
|
|
36
|
-
display?: FileFieldDisplay;
|
|
37
|
-
}
|
|
38
|
-
export interface HydratedFile {
|
|
39
|
-
id: string;
|
|
40
|
-
filename: string;
|
|
41
|
-
content_type: string;
|
|
42
|
-
size_bytes: number;
|
|
43
|
-
sha256?: string;
|
|
44
|
-
width?: number;
|
|
45
|
-
height?: number;
|
|
46
|
-
page_count?: number;
|
|
47
|
-
uploaded_at?: string;
|
|
48
|
-
uploaded_by?: string;
|
|
49
|
-
url?: string;
|
|
50
|
-
presigned_url?: string;
|
|
51
|
-
derivations?: Record<string, string>;
|
|
52
|
-
metadata?: Record<string, unknown>;
|
|
53
|
-
position?: number;
|
|
54
|
-
slot?: string;
|
|
55
|
-
version?: {
|
|
56
|
-
number?: number;
|
|
57
|
-
is_current?: boolean;
|
|
58
|
-
supersedes_file_id?: string;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export type NamedFileFieldValue = Record<string, HydratedFile | null>;
|
|
62
|
-
export type FileFieldValue = HydratedFile | HydratedFile[] | NamedFileFieldValue | null;
|
|
63
|
-
export interface UploadProgress {
|
|
64
|
-
loaded: number;
|
|
65
|
-
total: number;
|
|
66
|
-
pct: number;
|
|
67
|
-
}
|
|
68
|
-
export interface UploadedFile {
|
|
69
|
-
id: string;
|
|
70
|
-
filename: string;
|
|
71
|
-
content_type: string;
|
|
72
|
-
size_bytes: number;
|
|
73
|
-
sha256: string;
|
|
74
|
-
dedup?: boolean;
|
|
75
|
-
width?: number;
|
|
76
|
-
height?: number;
|
|
77
|
-
url?: string;
|
|
78
|
-
metadata?: Record<string, unknown>;
|
|
79
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OrderedMap preserves the insertion order of a string-keyed map while
|
|
3
|
-
* keeping O(1) lookup. It mirrors the Go `ordmap.OrderedMap[T]` container
|
|
4
|
-
* on the server side. Use it for schema sub-maps (entity fields, handler
|
|
5
|
-
* params, resolved_params) where YAML/JSON declaration order is part of
|
|
6
|
-
* the UI contract.
|
|
7
|
-
*
|
|
8
|
-
* JS objects already preserve insertion order for string keys (ES2015+),
|
|
9
|
-
* but the Go side emits JSON that is parsed into a plain object by
|
|
10
|
-
* default — this class wraps the hydrated object so call sites get a
|
|
11
|
-
* consistent API (`get`, `has`, iteration as `[name, value]` tuples) and
|
|
12
|
-
* the type system enforces read-only access.
|
|
13
|
-
*/
|
|
14
|
-
export declare class OrderedMap<T extends {
|
|
15
|
-
name?: string;
|
|
16
|
-
}> implements Iterable<[string, T]> {
|
|
17
|
-
#private;
|
|
18
|
-
constructor(items: readonly T[]);
|
|
19
|
-
/** Build from a `{ name: body }` object written in code: the key supplies
|
|
20
|
-
* `name`, insertion order is the JS property order, and bodies are
|
|
21
|
-
* type-checked. The wire equivalent, whose bodies cannot be, is `fromWire`. */
|
|
22
|
-
static fromObject<T extends {
|
|
23
|
-
name?: string;
|
|
24
|
-
}>(raw: Readonly<Record<string, Omit<T, "name">>> | null | undefined): OrderedMap<T>;
|
|
25
|
-
/** Build from a `{ name: body }` object decoded from JSON. Bodies are
|
|
26
|
-
* `unknown` and the cast to T is a claim about the server's envelope, not a
|
|
27
|
-
* check; anything written in code goes through `fromObject`, which checks. */
|
|
28
|
-
static fromWire<T extends {
|
|
29
|
-
name?: string;
|
|
30
|
-
}>(raw: Readonly<Record<string, unknown>> | null | undefined): OrderedMap<T>;
|
|
31
|
-
get length(): number;
|
|
32
|
-
has(name: string): boolean;
|
|
33
|
-
get(name: string): T | undefined;
|
|
34
|
-
/** Read-only items in declaration order. */
|
|
35
|
-
items(): readonly T[];
|
|
36
|
-
/** Names in declaration order. */
|
|
37
|
-
names(): readonly string[];
|
|
38
|
-
[Symbol.iterator](): IterableIterator<[string, T]>;
|
|
39
|
-
}
|