@fayz-ai/admin 0.10.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/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/CommandPalette-2AL327XQ.js +258 -0
- package/dist/CommandPalette-2AL327XQ.js.map +1 -0
- package/dist/ImportWizard-CISHGNQC.js +3 -0
- package/dist/ImportWizard-CISHGNQC.js.map +1 -0
- package/dist/ScheduleEditor-BSFF7LME.js +1040 -0
- package/dist/ScheduleEditor-BSFF7LME.js.map +1 -0
- package/dist/SubscriptionPage-NLZAZO4P.js +7 -0
- package/dist/SubscriptionPage-NLZAZO4P.js.map +1 -0
- package/dist/access/context.d.ts +47 -0
- package/dist/access/context.d.ts.map +1 -0
- package/dist/access/headless.d.ts +21 -0
- package/dist/access/headless.d.ts.map +1 -0
- package/dist/access/index.d.ts +12 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/limits-registry.d.ts +33 -0
- package/dist/access/limits-registry.d.ts.map +1 -0
- package/dist/access/module-nav.d.ts +15 -0
- package/dist/access/module-nav.d.ts.map +1 -0
- package/dist/access/resolver.d.ts +2 -0
- package/dist/access/resolver.d.ts.map +1 -0
- package/dist/access/types.d.ts +43 -0
- package/dist/access/types.d.ts.map +1 -0
- package/dist/access/upgrade-modal-store.d.ts +23 -0
- package/dist/access/upgrade-modal-store.d.ts.map +1 -0
- package/dist/app/AdminShell.d.ts +65 -0
- package/dist/app/AdminShell.d.ts.map +1 -0
- package/dist/app/LoginPage.d.ts +3 -0
- package/dist/app/LoginPage.d.ts.map +1 -0
- package/dist/app/admin-app.d.ts +23 -0
- package/dist/app/admin-app.d.ts.map +1 -0
- package/dist/app/config.d.ts +277 -0
- package/dist/app/config.d.ts.map +1 -0
- package/dist/app/core-entities.d.ts +25 -0
- package/dist/app/core-entities.d.ts.map +1 -0
- package/dist/app/derive-contract.d.ts +8 -0
- package/dist/app/derive-contract.d.ts.map +1 -0
- package/dist/app/nav-contributions.store.d.ts +17 -0
- package/dist/app/nav-contributions.store.d.ts.map +1 -0
- package/dist/app/routing.d.ts +10 -0
- package/dist/app/routing.d.ts.map +1 -0
- package/dist/app/scaffold.d.ts +17 -0
- package/dist/app/scaffold.d.ts.map +1 -0
- package/dist/billing/index.d.ts +5 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +3 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/plan-badge.d.ts +17 -0
- package/dist/billing/plan-badge.d.ts.map +1 -0
- package/dist/billing/store.d.ts +40 -0
- package/dist/billing/store.d.ts.map +1 -0
- package/dist/chunk-5O2UJAQ7.js +534 -0
- package/dist/chunk-5O2UJAQ7.js.map +1 -0
- package/dist/chunk-PNAJODZM.js +315 -0
- package/dist/chunk-PNAJODZM.js.map +1 -0
- package/dist/chunk-RKXZ7RUG.js +20 -0
- package/dist/chunk-RKXZ7RUG.js.map +1 -0
- package/dist/chunk-TNTZHUL6.js +817 -0
- package/dist/chunk-TNTZHUL6.js.map +1 -0
- package/dist/chunk-UMRN6427.js +510 -0
- package/dist/chunk-UMRN6427.js.map +1 -0
- package/dist/chunk-VN5NTK26.js +36 -0
- package/dist/chunk-VN5NTK26.js.map +1 -0
- package/dist/chunk-VTEP2AQX.js +101 -0
- package/dist/chunk-VTEP2AQX.js.map +1 -0
- package/dist/chunk-YUHCC7JY.js +11 -0
- package/dist/chunk-YUHCC7JY.js.map +1 -0
- package/dist/components/RightRail.d.ts +8 -0
- package/dist/components/RightRail.d.ts.map +1 -0
- package/dist/components/auth/CenteredLogin.d.ts +13 -0
- package/dist/components/auth/CenteredLogin.d.ts.map +1 -0
- package/dist/components/auth/LoginForm.d.ts +12 -0
- package/dist/components/auth/LoginForm.d.ts.map +1 -0
- package/dist/components/auth/LoginPage.d.ts +15 -0
- package/dist/components/auth/LoginPage.d.ts.map +1 -0
- package/dist/components/auth/OAuthButtons.d.ts +10 -0
- package/dist/components/auth/OAuthButtons.d.ts.map +1 -0
- package/dist/components/auth/ProtectedRoute.d.ts +11 -0
- package/dist/components/auth/ProtectedRoute.d.ts.map +1 -0
- package/dist/components/auth/RecoveryForm.d.ts +9 -0
- package/dist/components/auth/RecoveryForm.d.ts.map +1 -0
- package/dist/components/auth/SignupForm.d.ts +10 -0
- package/dist/components/auth/SignupForm.d.ts.map +1 -0
- package/dist/components/auth/SplitLogin.d.ts +14 -0
- package/dist/components/auth/SplitLogin.d.ts.map +1 -0
- package/dist/components/auth/index.d.ts +7 -0
- package/dist/components/auth/index.d.ts.map +1 -0
- package/dist/components/billing/InvoiceList.d.ts +9 -0
- package/dist/components/billing/InvoiceList.d.ts.map +1 -0
- package/dist/components/billing/PlanSelector.d.ts +13 -0
- package/dist/components/billing/PlanSelector.d.ts.map +1 -0
- package/dist/components/billing/SoftLimitBanner.d.ts +5 -0
- package/dist/components/billing/SoftLimitBanner.d.ts.map +1 -0
- package/dist/components/billing/SubscriptionCard.d.ts +12 -0
- package/dist/components/billing/SubscriptionCard.d.ts.map +1 -0
- package/dist/components/billing/SubscriptionPage.d.ts +5 -0
- package/dist/components/billing/SubscriptionPage.d.ts.map +1 -0
- package/dist/components/billing/UpgradeModal.d.ts +3 -0
- package/dist/components/billing/UpgradeModal.d.ts.map +1 -0
- package/dist/components/billing/UpgradeOverlay.d.ts +15 -0
- package/dist/components/billing/UpgradeOverlay.d.ts.map +1 -0
- package/dist/components/billing/UpgradePrompt.d.ts +10 -0
- package/dist/components/billing/UpgradePrompt.d.ts.map +1 -0
- package/dist/components/billing/access-contract.d.ts +18 -0
- package/dist/components/billing/access-contract.d.ts.map +1 -0
- package/dist/components/billing/gates.d.ts +14 -0
- package/dist/components/billing/gates.d.ts.map +1 -0
- package/dist/components/billing/index.d.ts +15 -0
- package/dist/components/billing/index.d.ts.map +1 -0
- package/dist/components/billing/plan-feature.d.ts +11 -0
- package/dist/components/billing/plan-feature.d.ts.map +1 -0
- package/dist/components/chat/ChatAttachments.d.ts +23 -0
- package/dist/components/chat/ChatAttachments.d.ts.map +1 -0
- package/dist/components/chat/ChatComposer.d.ts +21 -0
- package/dist/components/chat/ChatComposer.d.ts.map +1 -0
- package/dist/components/chat/ChatConversation.d.ts +20 -0
- package/dist/components/chat/ChatConversation.d.ts.map +1 -0
- package/dist/components/chat/ChatFab.d.ts +17 -0
- package/dist/components/chat/ChatFab.d.ts.map +1 -0
- package/dist/components/chat/ChatHistory.d.ts +16 -0
- package/dist/components/chat/ChatHistory.d.ts.map +1 -0
- package/dist/components/chat/ChatMessages.d.ts +16 -0
- package/dist/components/chat/ChatMessages.d.ts.map +1 -0
- package/dist/components/chat/ChatSuggestions.d.ts +17 -0
- package/dist/components/chat/ChatSuggestions.d.ts.map +1 -0
- package/dist/components/chat/ConfirmActionCard.d.ts +19 -0
- package/dist/components/chat/ConfirmActionCard.d.ts.map +1 -0
- package/dist/components/chat/RecordChip.d.ts +12 -0
- package/dist/components/chat/RecordChip.d.ts.map +1 -0
- package/dist/components/chat/index.d.ts +4 -0
- package/dist/components/chat/index.d.ts.map +1 -0
- package/dist/components/chat/markdown.d.ts +5 -0
- package/dist/components/chat/markdown.d.ts.map +1 -0
- package/dist/components/connect/AddConnectorPanel.d.ts +32 -0
- package/dist/components/connect/AddConnectorPanel.d.ts.map +1 -0
- package/dist/components/connect/ConnectConsentPage.d.ts +12 -0
- package/dist/components/connect/ConnectConsentPage.d.ts.map +1 -0
- package/dist/components/connect/ConnectorDetail.d.ts +29 -0
- package/dist/components/connect/ConnectorDetail.d.ts.map +1 -0
- package/dist/components/connect/ConnectorMark.d.ts +20 -0
- package/dist/components/connect/ConnectorMark.d.ts.map +1 -0
- package/dist/components/connect/ConnectorRow.d.ts +33 -0
- package/dist/components/connect/ConnectorRow.d.ts.map +1 -0
- package/dist/components/connect/ConnectorsPanel.d.ts +40 -0
- package/dist/components/connect/ConnectorsPanel.d.ts.map +1 -0
- package/dist/components/connect/ConnectorsTab.d.ts +16 -0
- package/dist/components/connect/ConnectorsTab.d.ts.map +1 -0
- package/dist/components/connect/client-marks.d.ts +31 -0
- package/dist/components/connect/client-marks.d.ts.map +1 -0
- package/dist/components/connect/index.d.ts +12 -0
- package/dist/components/connect/index.d.ts.map +1 -0
- package/dist/components/connect/model.d.ts +151 -0
- package/dist/components/connect/model.d.ts.map +1 -0
- package/dist/components/connect/useConnectors.d.ts +24 -0
- package/dist/components/connect/useConnectors.d.ts.map +1 -0
- package/dist/components/layout/BottomNav.d.ts +24 -0
- package/dist/components/layout/BottomNav.d.ts.map +1 -0
- package/dist/components/layout/CommandPalette.d.ts +23 -0
- package/dist/components/layout/CommandPalette.d.ts.map +1 -0
- package/dist/components/layout/LocationSwitchOverlay.d.ts +3 -0
- package/dist/components/layout/LocationSwitchOverlay.d.ts.map +1 -0
- package/dist/components/layout/MockModeBanner.d.ts +3 -0
- package/dist/components/layout/MockModeBanner.d.ts.map +1 -0
- package/dist/components/layout/PrintChrome.d.ts +10 -0
- package/dist/components/layout/PrintChrome.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +6 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/notes/NotesPanel.d.ts +13 -0
- package/dist/components/notes/NotesPanel.d.ts.map +1 -0
- package/dist/components/notifications/ChangelogFeed.d.ts +8 -0
- package/dist/components/notifications/ChangelogFeed.d.ts.map +1 -0
- package/dist/components/notifications/NotificationBell.d.ts +9 -0
- package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
- package/dist/components/notifications/NotificationInbox.d.ts +13 -0
- package/dist/components/notifications/NotificationInbox.d.ts.map +1 -0
- package/dist/components/notifications/ToastProvider.d.ts +2 -0
- package/dist/components/notifications/ToastProvider.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +5 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/organization/InviteMemberDialog.d.ts +10 -0
- package/dist/components/organization/InviteMemberDialog.d.ts.map +1 -0
- package/dist/components/organization/OrgInitializer.d.ts +7 -0
- package/dist/components/organization/OrgInitializer.d.ts.map +1 -0
- package/dist/components/organization/OrgSwitcher.d.ts +7 -0
- package/dist/components/organization/OrgSwitcher.d.ts.map +1 -0
- package/dist/components/organization/PermissionMatrixEditor.d.ts +22 -0
- package/dist/components/organization/PermissionMatrixEditor.d.ts.map +1 -0
- package/dist/components/organization/PermissionProfilesTab.d.ts +3 -0
- package/dist/components/organization/PermissionProfilesTab.d.ts.map +1 -0
- package/dist/components/organization/TeamTab.d.ts +3 -0
- package/dist/components/organization/TeamTab.d.ts.map +1 -0
- package/dist/components/organization/TenantOnboarding.d.ts +9 -0
- package/dist/components/organization/TenantOnboarding.d.ts.map +1 -0
- package/dist/components/organization/index.d.ts +7 -0
- package/dist/components/organization/index.d.ts.map +1 -0
- package/dist/components/plugins/ConnectorsHub.d.ts +5 -0
- package/dist/components/plugins/ConnectorsHub.d.ts.map +1 -0
- package/dist/components/plugins/PluginSettingsPanel.d.ts +28 -0
- package/dist/components/plugins/PluginSettingsPanel.d.ts.map +1 -0
- package/dist/components/right-rail.d.ts +58 -0
- package/dist/components/right-rail.d.ts.map +1 -0
- package/dist/components/settings/BrandingSettings.d.ts +12 -0
- package/dist/components/settings/BrandingSettings.d.ts.map +1 -0
- package/dist/components/settings/CompanySettings.d.ts +13 -0
- package/dist/components/settings/CompanySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedBrandingSettings.d.ts +2 -0
- package/dist/components/settings/ConnectedBrandingSettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedCompanySettings.d.ts +2 -0
- package/dist/components/settings/ConnectedCompanySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedFieldRulesSettings.d.ts +2 -0
- package/dist/components/settings/ConnectedFieldRulesSettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedSecuritySettings.d.ts +2 -0
- package/dist/components/settings/ConnectedSecuritySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedUserProfile.d.ts +3 -0
- package/dist/components/settings/ConnectedUserProfile.d.ts.map +1 -0
- package/dist/components/settings/FieldRulesSettings.d.ts +11 -0
- package/dist/components/settings/FieldRulesSettings.d.ts.map +1 -0
- package/dist/components/settings/HolidaysSettings.d.ts +21 -0
- package/dist/components/settings/HolidaysSettings.d.ts.map +1 -0
- package/dist/components/settings/LocationsCrudPage.d.ts +6 -0
- package/dist/components/settings/LocationsCrudPage.d.ts.map +1 -0
- package/dist/components/settings/LocationsOverview.d.ts +19 -0
- package/dist/components/settings/LocationsOverview.d.ts.map +1 -0
- package/dist/components/settings/SecuritySettings.d.ts +17 -0
- package/dist/components/settings/SecuritySettings.d.ts.map +1 -0
- package/dist/components/settings/SettingsPage.d.ts +46 -0
- package/dist/components/settings/SettingsPage.d.ts.map +1 -0
- package/dist/components/settings/UserProfile.d.ts +12 -0
- package/dist/components/settings/UserProfile.d.ts.map +1 -0
- package/dist/components/settings/index.d.ts +11 -0
- package/dist/components/settings/index.d.ts.map +1 -0
- package/dist/components/shared/ContactPicker.d.ts +92 -0
- package/dist/components/shared/ContactPicker.d.ts.map +1 -0
- package/dist/components/shared/PersonLink.d.ts +29 -0
- package/dist/components/shared/PersonLink.d.ts.map +1 -0
- package/dist/components/shared/create-person.d.ts +20 -0
- package/dist/components/shared/create-person.d.ts.map +1 -0
- package/dist/crud/CrudCardGrid.d.ts +13 -0
- package/dist/crud/CrudCardGrid.d.ts.map +1 -0
- package/dist/crud/CrudDetailPage.d.ts +23 -0
- package/dist/crud/CrudDetailPage.d.ts.map +1 -0
- package/dist/crud/CrudFormPage.d.ts +18 -0
- package/dist/crud/CrudFormPage.d.ts.map +1 -0
- package/dist/crud/CrudListView.d.ts +92 -0
- package/dist/crud/CrudListView.d.ts.map +1 -0
- package/dist/crud/CrudPage.d.ts +27 -0
- package/dist/crud/CrudPage.d.ts.map +1 -0
- package/dist/crud/CrudSkeletons.d.ts +21 -0
- package/dist/crud/CrudSkeletons.d.ts.map +1 -0
- package/dist/crud/DeleteConfirmDialog.d.ts +11 -0
- package/dist/crud/DeleteConfirmDialog.d.ts.map +1 -0
- package/dist/crud/EntityOverview.d.ts +14 -0
- package/dist/crud/EntityOverview.d.ts.map +1 -0
- package/dist/crud/ImportWizard.d.ts +18 -0
- package/dist/crud/ImportWizard.d.ts.map +1 -0
- package/dist/crud/archetype-lookup.d.ts +30 -0
- package/dist/crud/archetype-lookup.d.ts.map +1 -0
- package/dist/crud/archetypes/ActiveToggle.d.ts +8 -0
- package/dist/crud/archetypes/ActiveToggle.d.ts.map +1 -0
- package/dist/crud/archetypes/AddressesTab.d.ts +21 -0
- package/dist/crud/archetypes/AddressesTab.d.ts.map +1 -0
- package/dist/crud/archetypes/ArchetypeStatusBar.d.ts +11 -0
- package/dist/crud/archetypes/ArchetypeStatusBar.d.ts.map +1 -0
- package/dist/crud/archetypes/BlockSettingsPopover.d.ts +15 -0
- package/dist/crud/archetypes/BlockSettingsPopover.d.ts.map +1 -0
- package/dist/crud/archetypes/ClientOrdersTab.d.ts +18 -0
- package/dist/crud/archetypes/ClientOrdersTab.d.ts.map +1 -0
- package/dist/crud/archetypes/EntityLink.d.ts +32 -0
- package/dist/crud/archetypes/EntityLink.d.ts.map +1 -0
- package/dist/crud/archetypes/LocationDetailTabs.d.ts +11 -0
- package/dist/crud/archetypes/LocationDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/LocationFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/LocationFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderDetailView.d.ts +115 -0
- package/dist/crud/archetypes/OrderDetailView.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderFormView.d.ts +112 -0
- package/dist/crud/archetypes/OrderFormView.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderListView.d.ts +36 -0
- package/dist/crud/archetypes/OrderListView.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonDetailTabs.d.ts +35 -0
- package/dist/crud/archetypes/PersonDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonFormLayout.d.ts +13 -0
- package/dist/crud/archetypes/PersonFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonPicker.d.ts +23 -0
- package/dist/crud/archetypes/PersonPicker.d.ts.map +1 -0
- package/dist/crud/archetypes/ProductDetailTabs.d.ts +11 -0
- package/dist/crud/archetypes/ProductDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/ProductFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/ProductFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/ScheduleEditor.d.ts +7 -0
- package/dist/crud/archetypes/ScheduleEditor.d.ts.map +1 -0
- package/dist/crud/archetypes/ServiceDetailTabs.d.ts +10 -0
- package/dist/crud/archetypes/ServiceDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/ServiceFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/ServiceFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/SubjectDetailTabs.d.ts +12 -0
- package/dist/crud/archetypes/SubjectDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/SubjectFormLayout.d.ts +14 -0
- package/dist/crud/archetypes/SubjectFormLayout.d.ts.map +1 -0
- package/dist/crud/createCrudPage.d.ts +34 -0
- package/dist/crud/createCrudPage.d.ts.map +1 -0
- package/dist/crud/csv-export.d.ts +3 -0
- package/dist/crud/csv-export.d.ts.map +1 -0
- package/dist/crud/fieldToColumn.d.ts +14 -0
- package/dist/crud/fieldToColumn.d.ts.map +1 -0
- package/dist/crud/index.d.ts +16 -0
- package/dist/crud/index.d.ts.map +1 -0
- package/dist/crud/placeholder.d.ts +7 -0
- package/dist/crud/placeholder.d.ts.map +1 -0
- package/dist/crud/relation-field.d.ts +28 -0
- package/dist/crud/relation-field.d.ts.map +1 -0
- package/dist/data/client.d.ts +14 -0
- package/dist/data/client.d.ts.map +1 -0
- package/dist/db.cjs +14 -0
- package/dist/db.cjs.map +1 -0
- package/dist/db.d.ts +2 -0
- package/dist/db.d.ts.map +1 -0
- package/dist/db.js +3 -0
- package/dist/db.js.map +1 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAITools.d.ts +23 -0
- package/dist/hooks/useAITools.d.ts.map +1 -0
- package/dist/hooks/useAgentSurface.d.ts +15 -0
- package/dist/hooks/useAgentSurface.d.ts.map +1 -0
- package/dist/hooks/useAuth.d.ts +16 -0
- package/dist/hooks/useAuth.d.ts.map +1 -0
- package/dist/hooks/useChat.d.ts +38 -0
- package/dist/hooks/useChat.d.ts.map +1 -0
- package/dist/hooks/useDictation.d.ts +31 -0
- package/dist/hooks/useDictation.d.ts.map +1 -0
- package/dist/hooks/useFieldRules.d.ts +6 -0
- package/dist/hooks/useFieldRules.d.ts.map +1 -0
- package/dist/hooks/useFormatters.d.ts +7 -0
- package/dist/hooks/useFormatters.d.ts.map +1 -0
- package/dist/hooks/useGlobalSearch.d.ts +10 -0
- package/dist/hooks/useGlobalSearch.d.ts.map +1 -0
- package/dist/hooks/useLayout.d.ts +16 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useMicLevels.d.ts +10 -0
- package/dist/hooks/useMicLevels.d.ts.map +1 -0
- package/dist/hooks/useModuleNavigation.d.ts +27 -0
- package/dist/hooks/useModuleNavigation.d.ts.map +1 -0
- package/dist/hooks/useNotifications.d.ts +11 -0
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/hooks/usePluginPrefs.d.ts +23 -0
- package/dist/hooks/usePluginPrefs.d.ts.map +1 -0
- package/dist/hooks/usePlugins.d.ts +5 -0
- package/dist/hooks/usePlugins.d.ts.map +1 -0
- package/dist/hooks/useSystemPermission.d.ts +3 -0
- package/dist/hooks/useSystemPermission.d.ts.map +1 -0
- package/dist/hooks/useTenant.d.ts +23 -0
- package/dist/hooks/useTenant.d.ts.map +1 -0
- package/dist/hooks/useTenantPluginSettings.d.ts +12 -0
- package/dist/hooks/useTenantPluginSettings.d.ts.map +1 -0
- package/dist/hooks/useTenantPlugins.d.ts +10 -0
- package/dist/hooks/useTenantPlugins.d.ts.map +1 -0
- package/dist/hooks/useTranslation.d.ts +5 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17207 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/agent-approvals.d.ts +27 -0
- package/dist/lib/agent-approvals.d.ts.map +1 -0
- package/dist/lib/agent-surface.d.ts +78 -0
- package/dist/lib/agent-surface.d.ts.map +1 -0
- package/dist/lib/ai-tool-handlers.d.ts +154 -0
- package/dist/lib/ai-tool-handlers.d.ts.map +1 -0
- package/dist/lib/apply-field-rules.d.ts +4 -0
- package/dist/lib/apply-field-rules.d.ts.map +1 -0
- package/dist/lib/assistant-delegation.d.ts +5 -0
- package/dist/lib/assistant-delegation.d.ts.map +1 -0
- package/dist/lib/assistant-feature.d.ts +8 -0
- package/dist/lib/assistant-feature.d.ts.map +1 -0
- package/dist/lib/attachments.d.ts +95 -0
- package/dist/lib/attachments.d.ts.map +1 -0
- package/dist/lib/auth-context.d.ts +5 -0
- package/dist/lib/auth-context.d.ts.map +1 -0
- package/dist/lib/cache.d.ts +18 -0
- package/dist/lib/cache.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/core-ai-tools.d.ts +49 -0
- package/dist/lib/core-ai-tools.d.ts.map +1 -0
- package/dist/lib/create-client-orders-provider.d.ts +3 -0
- package/dist/lib/create-client-orders-provider.d.ts.map +1 -0
- package/dist/lib/csv.d.ts +14 -0
- package/dist/lib/csv.d.ts.map +1 -0
- package/dist/lib/currency.d.ts +7 -0
- package/dist/lib/currency.d.ts.map +1 -0
- package/dist/lib/dedup.d.ts +2 -0
- package/dist/lib/dedup.d.ts.map +1 -0
- package/dist/lib/entity-registry.d.ts +19 -0
- package/dist/lib/entity-registry.d.ts.map +1 -0
- package/dist/lib/entity-routes.d.ts +48 -0
- package/dist/lib/entity-routes.d.ts.map +1 -0
- package/dist/lib/fayz-agent.d.ts +23 -0
- package/dist/lib/fayz-agent.d.ts.map +1 -0
- package/dist/lib/format.d.ts +7 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/locale-config.d.ts +8 -0
- package/dist/lib/locale-config.d.ts.map +1 -0
- package/dist/lib/notes-tasks-bridge.d.ts +28 -0
- package/dist/lib/notes-tasks-bridge.d.ts.map +1 -0
- package/dist/lib/org-context.d.ts +5 -0
- package/dist/lib/org-context.d.ts.map +1 -0
- package/dist/lib/plugins.d.ts +2 -0
- package/dist/lib/plugins.d.ts.map +1 -0
- package/dist/lib/record-refs.d.ts +31 -0
- package/dist/lib/record-refs.d.ts.map +1 -0
- package/dist/lib/router.d.ts +15 -0
- package/dist/lib/router.d.ts.map +1 -0
- package/dist/lib/schedule-config.d.ts +32 -0
- package/dist/lib/schedule-config.d.ts.map +1 -0
- package/dist/lib/schedule-service.d.ts +76 -0
- package/dist/lib/schedule-service.d.ts.map +1 -0
- package/dist/lib/search-targets.d.ts +12 -0
- package/dist/lib/search-targets.d.ts.map +1 -0
- package/dist/lib/speech.d.ts +36 -0
- package/dist/lib/speech.d.ts.map +1 -0
- package/dist/lib/supabase.d.ts +10 -0
- package/dist/lib/supabase.d.ts.map +1 -0
- package/dist/org/adapters/mock.d.ts +4 -0
- package/dist/org/adapters/mock.d.ts.map +1 -0
- package/dist/org/adapters/supabase.d.ts +33 -0
- package/dist/org/adapters/supabase.d.ts.map +1 -0
- package/dist/org/cache.d.ts +29 -0
- package/dist/org/cache.d.ts.map +1 -0
- package/dist/org/context.d.ts +36 -0
- package/dist/org/context.d.ts.map +1 -0
- package/dist/org/index.d.ts +10 -0
- package/dist/org/index.d.ts.map +1 -0
- package/dist/org/index.js +5 -0
- package/dist/org/index.js.map +1 -0
- package/dist/org/store.d.ts +20 -0
- package/dist/org/store.d.ts.map +1 -0
- package/dist/org/team-rows.d.ts +45 -0
- package/dist/org/team-rows.d.ts.map +1 -0
- package/dist/permissions/PermissionGate.d.ts +12 -0
- package/dist/permissions/PermissionGate.d.ts.map +1 -0
- package/dist/permissions/context.d.ts +39 -0
- package/dist/permissions/context.d.ts.map +1 -0
- package/dist/permissions/index.d.ts +5 -0
- package/dist/permissions/index.d.ts.map +1 -0
- package/dist/permissions/index.js +3 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/permissions/roles.d.ts +7 -0
- package/dist/permissions/roles.d.ts.map +1 -0
- package/dist/permissions/store.d.ts +21 -0
- package/dist/permissions/store.d.ts.map +1 -0
- package/dist/plugins/ModuleActionBar.d.ts +27 -0
- package/dist/plugins/ModuleActionBar.d.ts.map +1 -0
- package/dist/plugins/PluginRegistryManager.d.ts +13 -0
- package/dist/plugins/PluginRegistryManager.d.ts.map +1 -0
- package/dist/plugins/QuickActionsButton.d.ts +12 -0
- package/dist/plugins/QuickActionsButton.d.ts.map +1 -0
- package/dist/plugins/SettingsGroup.d.ts +25 -0
- package/dist/plugins/SettingsGroup.d.ts.map +1 -0
- package/dist/plugins/WidgetSlot.d.ts +8 -0
- package/dist/plugins/WidgetSlot.d.ts.map +1 -0
- package/dist/plugins/createPluginContext.d.ts +28 -0
- package/dist/plugins/createPluginContext.d.ts.map +1 -0
- package/dist/plugins/createViewRouter.d.ts +38 -0
- package/dist/plugins/createViewRouter.d.ts.map +1 -0
- package/dist/projects/ProjectsSettings.d.ts +3 -0
- package/dist/projects/ProjectsSettings.d.ts.map +1 -0
- package/dist/projects/SeuSiteWidget.d.ts +7 -0
- package/dist/projects/SeuSiteWidget.d.ts.map +1 -0
- package/dist/projects/provider.d.ts +8 -0
- package/dist/projects/provider.d.ts.map +1 -0
- package/dist/projects/store.d.ts +16 -0
- package/dist/projects/store.d.ts.map +1 -0
- package/dist/projects/types.d.ts +46 -0
- package/dist/projects/types.d.ts.map +1 -0
- package/dist/stores/auth.store.d.ts +12 -0
- package/dist/stores/auth.store.d.ts.map +1 -0
- package/dist/stores/billing.store.d.ts +2 -0
- package/dist/stores/billing.store.d.ts.map +1 -0
- package/dist/stores/chat.store.d.ts +208 -0
- package/dist/stores/chat.store.d.ts.map +1 -0
- package/dist/stores/createCrudStore.d.ts +54 -0
- package/dist/stores/createCrudStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +13 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/invite.store.d.ts +11 -0
- package/dist/stores/invite.store.d.ts.map +1 -0
- package/dist/stores/layout.store.d.ts +2 -0
- package/dist/stores/layout.store.d.ts.map +1 -0
- package/dist/stores/locale.store.d.ts +17 -0
- package/dist/stores/locale.store.d.ts.map +1 -0
- package/dist/stores/location.store.d.ts +20 -0
- package/dist/stores/location.store.d.ts.map +1 -0
- package/dist/stores/notifications.store.d.ts +12 -0
- package/dist/stores/notifications.store.d.ts.map +1 -0
- package/dist/stores/organization.store.d.ts +2 -0
- package/dist/stores/organization.store.d.ts.map +1 -0
- package/dist/stores/permissions.store.d.ts +2 -0
- package/dist/stores/permissions.store.d.ts.map +1 -0
- package/dist/stores/plugin.store.d.ts +24 -0
- package/dist/stores/plugin.store.d.ts.map +1 -0
- package/dist/stores/tenant.store.d.ts +11 -0
- package/dist/stores/tenant.store.d.ts.map +1 -0
- package/dist/stores/theme.store.d.ts +17 -0
- package/dist/stores/theme.store.d.ts.map +1 -0
- package/dist/theme/dark.d.ts +3 -0
- package/dist/theme/dark.d.ts.map +1 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/light.d.ts +3 -0
- package/dist/theme/light.d.ts.map +1 -0
- package/dist/theme/tailwind-preset.d.ts +4 -0
- package/dist/theme/tailwind-preset.d.ts.map +1 -0
- package/dist/theme/tokens.d.ts +119 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/theme/utils.d.ts +31 -0
- package/dist/theme/utils.d.ts.map +1 -0
- package/dist/types/auth-adapter.d.ts +14 -0
- package/dist/types/auth-adapter.d.ts.map +1 -0
- package/dist/types/auth.d.ts +34 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/billing.d.ts +81 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/client-orders.d.ts +47 -0
- package/dist/types/client-orders.d.ts.map +1 -0
- package/dist/types/crud.d.ts +137 -0
- package/dist/types/crud.d.ts.map +1 -0
- package/dist/types/entities.d.ts +150 -0
- package/dist/types/entities.d.ts.map +1 -0
- package/dist/types/entity-lookup.d.ts +18 -0
- package/dist/types/entity-lookup.d.ts.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/integrations.d.ts +48 -0
- package/dist/types/integrations.d.ts.map +1 -0
- package/dist/types/invite.d.ts +23 -0
- package/dist/types/invite.d.ts.map +1 -0
- package/dist/types/layout.d.ts +26 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/types/notifications.d.ts +31 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/org-adapter.d.ts +92 -0
- package/dist/types/org-adapter.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +39 -0
- package/dist/types/permissions.d.ts.map +1 -0
- package/dist/types/platform.d.ts +25 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/plugins.d.ts +269 -0
- package/dist/types/plugins.d.ts.map +1 -0
- package/dist/types/tenant.d.ts +74 -0
- package/dist/types/tenant.d.ts.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +3 -0
- package/dist/ui.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FayzAgentConnectionConfig } from '../../lib/fayz-agent';
|
|
3
|
+
import type { ChatVoiceConfig } from '../../app/config';
|
|
4
|
+
interface ChatFabProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
apiEndpoint?: string;
|
|
7
|
+
systemPrompt?: string;
|
|
8
|
+
agent?: FayzAgentConnectionConfig | false;
|
|
9
|
+
voice?: ChatVoiceConfig;
|
|
10
|
+
/** Also render on phones. An app with a bottom bar owns that entry point
|
|
11
|
+
* (and that corner of the screen); an app without one has no other way in,
|
|
12
|
+
* which quietly made the assistant desktop-only. */
|
|
13
|
+
mobile?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function ChatFab({ className, apiEndpoint, systemPrompt, agent, voice, mobile }: ChatFabProps): React.JSX.Element | null;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ChatFab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatFab.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatFab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,yBAAyB,GAAG,KAAK,CAAA;IACzC,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB;;yDAEqD;IACrD,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AA0HD,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,4BA4OnG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ChatConversationSummary {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string | null;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
}
|
|
7
|
+
interface ChatHistoryProps {
|
|
8
|
+
conversations: ChatConversationSummary[];
|
|
9
|
+
activeId: string | null;
|
|
10
|
+
onSelect: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
/** Past threads, grouped the way people remember them (today / yesterday /
|
|
13
|
+
* this week), searchable once there are enough to scroll. */
|
|
14
|
+
export declare function ChatHistory({ conversations, activeId, onSelect }: ChatHistoryProps): React.JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ChatHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatHistory.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,gBAAgB;IACxB,aAAa,EAAE,uBAAuB,EAAE,CAAA;IACxC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAkBD;8DAC8D;AAC9D,wBAAgB,WAAW,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,qBA0FlF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ChatMessage } from '../../stores/chat.store';
|
|
3
|
+
/** `agenda_create_appointment` → `Agenda create appointment`. The raw name is
|
|
4
|
+
* still there, one expand away — the person reading is a salon manager. */
|
|
5
|
+
export declare function humanizeToolName(name: string): string;
|
|
6
|
+
export declare function MessageBubble({ message, isPending }: {
|
|
7
|
+
message: ChatMessage;
|
|
8
|
+
isPending?: boolean;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
/** Which tools are running right now — the agent's work made visible instead
|
|
11
|
+
* of a silent pause. */
|
|
12
|
+
export declare function ActiveToolChips({ names }: {
|
|
13
|
+
names: string[];
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
export declare function TypingDots(): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=ChatMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessages.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,yBAAyB,CAAA;AAOxE;4EAC4E;AAC5E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMrD;AAkED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IAAE,OAAO,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,qBAuElG;AAED;yBACyB;AACzB,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,qBAc7D;AAED,wBAAgB,UAAU,sBAYzB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ResolvedSuggestion, ResolvedToolGroup } from '../../hooks/useAITools';
|
|
3
|
+
interface ChatSuggestionsProps {
|
|
4
|
+
suggestions: ResolvedSuggestion[];
|
|
5
|
+
onSelect: (suggestion: ResolvedSuggestion) => void;
|
|
6
|
+
/** Rendered mid-conversation (user asked for them) — offer a way back. */
|
|
7
|
+
onDismiss?: () => void;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function ChatSuggestions({ suggestions, onSelect, onDismiss, compact }: ChatSuggestionsProps): React.JSX.Element | null;
|
|
11
|
+
interface ChatToolsPanelProps {
|
|
12
|
+
toolGroups: ResolvedToolGroup[];
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function ChatToolsPanel({ toolGroups, onClose }: ChatToolsPanelProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ChatSuggestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSuggestions.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatSuggestions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAEnF,UAAU,oBAAoB;IAC5B,WAAW,EAAE,kBAAkB,EAAE,CAAA;IACjC,QAAQ,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAClD,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,oBAAoB,4BAgDlG;AAID,UAAU,mBAAmB;IAC3B,UAAU,EAAE,iBAAiB,EAAE,CAAA;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,mBAAmB,qBAwD1E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PendingAgentAction } from '../../stores/chat.store';
|
|
3
|
+
/**
|
|
4
|
+
* The human gate in front of an agent write: shows what the agent wants to do
|
|
5
|
+
* (tool + arguments) and blocks the conversation until the user decides — the
|
|
6
|
+
* FAB's native rendering of the confirmation step every channel has (WhatsApp
|
|
7
|
+
* asks "responda SIM", MCP uses elicitation).
|
|
8
|
+
*
|
|
9
|
+
* Three answers, not two. "Always allow" is what turns the assistant from a
|
|
10
|
+
* demo into a tool someone uses forty times a day; it is scoped to this exact
|
|
11
|
+
* action (create THIS entity), and for anything destructive it only lasts the
|
|
12
|
+
* session — a misheard voice command must never be able to delete data under a
|
|
13
|
+
* rule granted last month and forgotten.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ConfirmActionCard({ action, onResolve, }: {
|
|
16
|
+
action: PendingAgentAction;
|
|
17
|
+
onResolve: (approved: boolean, values?: Record<string, unknown>) => void;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=ConfirmActionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmActionCard.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ConfirmActionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,yBAAyB,CAAA;AAErF;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,kBAAkB,CAAA;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;CACzE,qBA2PA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ChatRecordLink } from '../../stores/chat.store';
|
|
3
|
+
/** A record's name, clickable when this app's route map resolves its
|
|
4
|
+
* archetype. Unroutable renders as plain text — a missing link is correct, an
|
|
5
|
+
* invented one is a dead end. */
|
|
6
|
+
export declare function RecordChip({ link, variant, className, }: {
|
|
7
|
+
link: ChatRecordLink;
|
|
8
|
+
/** `button` — standalone chip under a reply. `inline` — inside a card row. */
|
|
9
|
+
variant?: 'button' | 'inline';
|
|
10
|
+
className?: string;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=RecordChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordChip.d.ts","sourceRoot":"","sources":["../../../src/components/chat/RecordChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAE3E;;kCAEkC;AAClC,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAkB,EAClB,SAAS,GACV,EAAE;IACD,IAAI,EAAE,cAAc,CAAA;IACpB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,qBA6DA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/components/chat/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA+C9B,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,qBAsD5D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type UnifiedConnector } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* The Fayz connector directory, as an "add" panel.
|
|
5
|
+
*
|
|
6
|
+
* It lists the very same rows the hub does — same id, same mark, same badges —
|
|
7
|
+
* because "Google Calendar" browsed here and "Google Calendar" configured in
|
|
8
|
+
* Agenda → Integrações are one connector, not two screens that happen to share
|
|
9
|
+
* a name. Picking one opens the same journey panel; nothing is duplicated here,
|
|
10
|
+
* so nothing can drift.
|
|
11
|
+
*
|
|
12
|
+
* Three states exist and the panel has to tell them apart, because collapsing
|
|
13
|
+
* them is how a catalogue turns into a promise:
|
|
14
|
+
*
|
|
15
|
+
* - **pronto para conectar** — a plugin in THIS app contributes it, so there
|
|
16
|
+
* is a real place to go and connect it.
|
|
17
|
+
* - **disponível no Fayz** — the platform has it built, but this app lacks the
|
|
18
|
+
* plugin that hosts it.
|
|
19
|
+
* - **em breve** — a catalogue entry with nothing behind it yet.
|
|
20
|
+
*/
|
|
21
|
+
export declare function AddConnectorPanel({ open, onOpenChange, connectors, onSelect, }: {
|
|
22
|
+
open: boolean;
|
|
23
|
+
onOpenChange: (open: boolean) => void;
|
|
24
|
+
/** The unified list; `null` while it loads. */
|
|
25
|
+
connectors: UnifiedConnector[] | null;
|
|
26
|
+
onSelect: (connector: UnifiedConnector) => void;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
/** Small trigger a screen can render next to its heading. */
|
|
29
|
+
export declare function AddConnectorButton({ onClick }: {
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
//# sourceMappingURL=AddConnectorPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddConnectorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/connect/AddConnectorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,OAAO,EAAqC,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAElF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,+CAA+C;IAC/C,UAAU,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;IACrC,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAChD,qBAiEA;AA0CD,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,qBAWtE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ConnectConsentPageProps {
|
|
3
|
+
/** Product name shown next to the requesting client. Defaults to the document title. */
|
|
4
|
+
appName?: string;
|
|
5
|
+
/**
|
|
6
|
+
* ICON-ONLY mark. Not the wordmark: this badge is square, and a wordmark in
|
|
7
|
+
* it is cropped. Absent, the app's initial is used, which is always legible.
|
|
8
|
+
*/
|
|
9
|
+
logo?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function ConnectConsentPage({ appName, logo }: ConnectConsentPageProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ConnectConsentPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectConsentPage.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectConsentPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6DzB,MAAM,WAAW,uBAAuB;IACtC,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB;AAQD,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,uBAAuB,qBAgI5E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UnifiedConnector } from './model';
|
|
3
|
+
/** Mark, name and badges — the same identity in the rail and in the sheet. */
|
|
4
|
+
export declare function ConnectorHeading({ connector }: {
|
|
5
|
+
connector: UnifiedConnector;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export declare function ConnectorJourney({ connector, onChanged, onRevoke, }: {
|
|
8
|
+
connector: UnifiedConnector;
|
|
9
|
+
/** Something was connected/disconnected — the list should reload. */
|
|
10
|
+
onChanged?: () => void;
|
|
11
|
+
/** Revoking an inbound grant goes through the screen that owns the API. */
|
|
12
|
+
onRevoke?: (connector: UnifiedConnector) => Promise<void> | void;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* The journey as a right-hand sheet — the fallback surface.
|
|
16
|
+
*
|
|
17
|
+
* Apps with an assistant show this inside the rail instead, next to the chat:
|
|
18
|
+
* a connector is a capability of the agent, so it belongs in the agent's own
|
|
19
|
+
* column rather than in a panel that floats over the page. This wrapper is what
|
|
20
|
+
* an app without that rail falls back to, so the journey is never unreachable.
|
|
21
|
+
*/
|
|
22
|
+
export declare function ConnectorDetail({ connector, open, onOpenChange, onChanged, onRevoke, }: {
|
|
23
|
+
connector: UnifiedConnector | null;
|
|
24
|
+
open: boolean;
|
|
25
|
+
onOpenChange: (open: boolean) => void;
|
|
26
|
+
onChanged?: () => void;
|
|
27
|
+
onRevoke?: (connector: UnifiedConnector) => Promise<void> | void;
|
|
28
|
+
}): React.JSX.Element | null;
|
|
29
|
+
//# sourceMappingURL=ConnectorDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorDetail.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAiH/C,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,qBAmB9E;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,gBAAgB,CAAA;IAC3B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACjE,qBAwIA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAClC,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACjE,4BAgBA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UnifiedConnector } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* The face of a connector, resolved the same way everywhere it appears.
|
|
5
|
+
*
|
|
6
|
+
* The built-in assistant wears the FAB's own look — theme colour and the same
|
|
7
|
+
* wand — because it IS that assistant, and a different avatar would read as a
|
|
8
|
+
* different thing. Everything else prefers its product mark: a connection the
|
|
9
|
+
* user approved next to a logo should not turn into a grey initial once it is
|
|
10
|
+
* in the list.
|
|
11
|
+
*
|
|
12
|
+
* Marks are tried in order and a failure just advances to the next candidate,
|
|
13
|
+
* so a column of broken-image glyphs — which reads as the feature being broken
|
|
14
|
+
* rather than one asset being unreachable — never happens.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ConnectorMark({ connector, size, }: {
|
|
17
|
+
connector: UnifiedConnector;
|
|
18
|
+
size?: 'sm' | 'md';
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ConnectorMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorMark.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorMark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,IAAW,GACZ,EAAE;IACD,SAAS,EAAE,gBAAgB,CAAA;IAC3B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CACnB,qBA0CA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ConnectorPlane, ConnectorState, UnifiedConnector } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* How a connector is honoured, as a badge.
|
|
5
|
+
*
|
|
6
|
+
* Two planes, and the difference is the whole point of merging the screens: the
|
|
7
|
+
* agentic one hands tools to the assistant and copies nothing; the sync one
|
|
8
|
+
* keeps a mirror inside the app. The user does not need the words "MCP" or
|
|
9
|
+
* "webhook" to make that choice — they need to know whether there will be a
|
|
10
|
+
* copy of their data and whether it can go stale.
|
|
11
|
+
*/
|
|
12
|
+
export declare function PlaneBadge({ plane, active }: {
|
|
13
|
+
plane: ConnectorPlane;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export declare function DirectionBadge({ direction }: {
|
|
17
|
+
direction: 'inbound' | 'outbound';
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
export declare function StateChip({ state }: {
|
|
20
|
+
state: ConnectorState;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* One row of the unified list — inbound grant, installed connector or catalogue
|
|
24
|
+
* entry, all the same shape. The row is the entry point of the journey: it says
|
|
25
|
+
* what the thing is and how far along it is, and opening it is what explains
|
|
26
|
+
* the rest.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ConnectorRow({ connector, onOpen, showHost, }: {
|
|
29
|
+
connector: UnifiedConnector;
|
|
30
|
+
onOpen: (connector: UnifiedConnector) => void;
|
|
31
|
+
showHost?: boolean;
|
|
32
|
+
}): React.JSX.Element;
|
|
33
|
+
//# sourceMappingURL=ConnectorRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorRow.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAG/E;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,qBAkBxF;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,SAAS,GAAG,UAAU,CAAA;CAAE,qBASlF;AASD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,cAAc,CAAA;CAAE,qBAG7D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,MAAM,EACN,QAAe,GAChB,EAAE;IACD,SAAS,EAAE,gBAAgB,CAAA;IAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,qBAmDA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type UnifiedConnector } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* Conectores, inside the assistant.
|
|
5
|
+
*
|
|
6
|
+
* A connector is not a settings chore that happens elsewhere — it is what the
|
|
7
|
+
* assistant can reach. So it lives where the assistant's own capabilities
|
|
8
|
+
* already live: the chat panel, one button after the tools drawer. Settings →
|
|
9
|
+
* Conectores keeps the inventory (the list you audit and revoke from) and
|
|
10
|
+
* opening a row raises the assistant with this drawer already on that
|
|
11
|
+
* connector.
|
|
12
|
+
*
|
|
13
|
+
* Two views in the drawer:
|
|
14
|
+
* - the list: what this organization has, then what Fayz offers
|
|
15
|
+
* - the journey: what a connector does, how it resolves, and how to authorize
|
|
16
|
+
*/
|
|
17
|
+
interface ConnectorsSurfaceState {
|
|
18
|
+
/** Connector being shown; null means the list. */
|
|
19
|
+
selected: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* A screen asked for this drawer and the chat hasn't opened it yet. A flag
|
|
22
|
+
* rather than a counter because the request usually lands BEFORE the chat
|
|
23
|
+
* panel mounts — the rail has to open first — so the chat has to find the
|
|
24
|
+
* request waiting for it, not miss an edge it wasn't around for.
|
|
25
|
+
*/
|
|
26
|
+
pending: boolean;
|
|
27
|
+
select: (id: string | null) => void;
|
|
28
|
+
open: (id: string | null) => void;
|
|
29
|
+
consume: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const useConnectorsSurface: import("zustand").UseBoundStore<import("zustand").StoreApi<ConnectorsSurfaceState>>;
|
|
32
|
+
/** Raise the assistant with the connectors drawer open, on a connector or the list. */
|
|
33
|
+
export declare function openConnectorsPanel(connector?: UnifiedConnector | null): void;
|
|
34
|
+
/** Whether the assistant is mounted and can host the journey. */
|
|
35
|
+
export declare function useConnectorsPanelAvailable(): boolean;
|
|
36
|
+
export declare function ConnectorsPanel({ onClose }: {
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
}): React.JSX.Element;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=ConnectorsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEjE;;;;;;;;;;;;;GAaG;AAEH,UAAU,sBAAsB;IAC9B,kDAAkD;IAClD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACnC,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,oBAAoB,qFAM9B,CAAA;AAEH,uFAAuF;AACvF,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAM7E;AAED,iEAAiE;AACjE,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,qBA6GnE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Settings → Conectores — the whole surface, in one list.
|
|
4
|
+
*
|
|
5
|
+
* Two things used to live apart: what an outside assistant had been granted
|
|
6
|
+
* over this organization, and what the app itself reached out to. To the person
|
|
7
|
+
* running the salon "o Claude lê minha agenda" and "minha agenda vai pro Google"
|
|
8
|
+
* are the same kind of decision, so they are the same list. `direction` tells
|
|
9
|
+
* them apart; a second screen would only hide half the answer.
|
|
10
|
+
*
|
|
11
|
+
* It is also the other half of consent: an approval you cannot find is an
|
|
12
|
+
* approval you cannot withdraw. Everything granted is listed, and everything
|
|
13
|
+
* listed can be revoked — from the same panel that explains what it does.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ConnectorsTab(): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=ConnectorsTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorsTab.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorsTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,sBAmH5B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marks for clients the product recognises.
|
|
3
|
+
*
|
|
4
|
+
* Two ways to match, and they are not equally trustworthy:
|
|
5
|
+
*
|
|
6
|
+
* - **by origin** — the `client_id` is a URL whose metadata document we
|
|
7
|
+
* fetched from that very origin (CIMD). The origin is the one part of an
|
|
8
|
+
* identity nobody can simply type.
|
|
9
|
+
* - **by name** — self-declared. A client that registers itself (DCR, which
|
|
10
|
+
* is what the Claude Code CLI does today) types its own `client_name`.
|
|
11
|
+
*
|
|
12
|
+
* Name matching is enabled deliberately, so a recognised product looks like
|
|
13
|
+
* itself instead of a grey initial. The tradeoff is real and is handled in the
|
|
14
|
+
* screen rather than here: a client whose identity was not attested still
|
|
15
|
+
* carries the line "nome informado pelo próprio aplicativo" next to its name,
|
|
16
|
+
* so the mark never stands in for verification. Tightening this to
|
|
17
|
+
* origin-only is a one-line change — drop `nameMatches` from the resolver.
|
|
18
|
+
*
|
|
19
|
+
* Inlined as data URIs so the asset cannot fail to load on an app served from
|
|
20
|
+
* anywhere, and so a consent screen never fetches from a third-party origin.
|
|
21
|
+
*/
|
|
22
|
+
export declare const KNOWN_CLIENT_MARKS: Record<string, string>;
|
|
23
|
+
/**
|
|
24
|
+
* The mark to show for a client, or null.
|
|
25
|
+
*
|
|
26
|
+
* An attested origin wins; a recognised name is the fallback. The caller is
|
|
27
|
+
* responsible for still telling the user when the identity was self-declared —
|
|
28
|
+
* the mark is decoration, not evidence.
|
|
29
|
+
*/
|
|
30
|
+
export declare function knownClientMark(clientWebsite: string | undefined, verified: boolean, clientName?: string): string | null;
|
|
31
|
+
//# sourceMappingURL=client-marks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-marks.d.ts","sourceRoot":"","sources":["../../../src/components/connect/client-marks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGrD,CAAA;AAaD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,QAAQ,EAAE,OAAO,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI,CAUf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ConnectConsentPage } from './ConnectConsentPage';
|
|
2
|
+
export type { ConnectConsentPageProps } from './ConnectConsentPage';
|
|
3
|
+
export { ConnectorsTab } from './ConnectorsTab';
|
|
4
|
+
export { AddConnectorPanel, AddConnectorButton } from './AddConnectorPanel';
|
|
5
|
+
export { ConnectorRow, PlaneBadge, DirectionBadge, StateChip } from './ConnectorRow';
|
|
6
|
+
export { ConnectorDetail, ConnectorJourney, ConnectorHeading } from './ConnectorDetail';
|
|
7
|
+
export { ConnectorMark } from './ConnectorMark';
|
|
8
|
+
export { useConnectors, useConnectorCatalog } from './useConnectors';
|
|
9
|
+
export { ConnectorsPanel, openConnectorsPanel, useConnectorsPanelAvailable } from './ConnectorsPanel';
|
|
10
|
+
export { buildConnectorList, filterConnectors, sortConnectors, connectorRoute, CATEGORY_LABELS, } from './model';
|
|
11
|
+
export type { UnifiedConnector, ConnectorState, ConnectorFilter, AgentGrant, CatalogConnector, InstalledConnector, } from './model';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/connect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACpF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AACrG,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,SAAS,CAAA;AAChB,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { ConnectorDefinition, ConnectorPlane, ConnectorDirection, ConnectorAgentTool } from '@fayz-ai/core';
|
|
2
|
+
/**
|
|
3
|
+
* One list, one noun.
|
|
4
|
+
*
|
|
5
|
+
* A "conector" and an "integração" were the same thing described from two
|
|
6
|
+
* screens: the plugin's Integrações tab knew how to authorize a provider, and
|
|
7
|
+
* Settings → Conectores knew what had been granted. Neither could answer the
|
|
8
|
+
* question the person running the business actually asks — *o que está ligado
|
|
9
|
+
* no meu negócio, e quem consegue fazer o quê?* — because each held half the
|
|
10
|
+
* answer.
|
|
11
|
+
*
|
|
12
|
+
* So both surfaces now project onto this one view model. Four facets tell the
|
|
13
|
+
* rows apart, and none of them justifies a second screen:
|
|
14
|
+
*
|
|
15
|
+
* - `direction` — quem alcança quem (o Claude lê minha agenda ↔ minha agenda
|
|
16
|
+
* vai pro Google)
|
|
17
|
+
* - `plane` — como a integração é honrada: entregue ao assistente (agêntica)
|
|
18
|
+
* ou espelhada por uma esteira (sync)
|
|
19
|
+
* - `hostPluginId` — qual plugin hospeda o conector (agenda, financeiro)
|
|
20
|
+
* - `state` — o quanto dessa jornada já aconteceu
|
|
21
|
+
*/
|
|
22
|
+
export type { ConnectorPlane, ConnectorDirection, ConnectorAgentTool };
|
|
23
|
+
/**
|
|
24
|
+
* How far along the journey a connector is. The distinction between `ready`,
|
|
25
|
+
* `catalog` and `soon` is the one worth being strict about: collapsing them is
|
|
26
|
+
* how a catalogue turns into a promise, because only `ready` has somewhere real
|
|
27
|
+
* to send the user.
|
|
28
|
+
*/
|
|
29
|
+
export type ConnectorState =
|
|
30
|
+
/** Live — granted (inbound) or authorized (outbound). */
|
|
31
|
+
'connected'
|
|
32
|
+
/** Installed in this app: a plugin here contributes it, so it can be connected now. */
|
|
33
|
+
| 'ready'
|
|
34
|
+
/** The platform has it built, but this app lacks the plugin that hosts it. */
|
|
35
|
+
| 'catalog'
|
|
36
|
+
/** A catalogue entry with nothing behind it yet. */
|
|
37
|
+
| 'soon';
|
|
38
|
+
export interface UnifiedConnector {
|
|
39
|
+
/** Stable row key — connector id, catalog slug, or grant id. */
|
|
40
|
+
id: string;
|
|
41
|
+
/** Catalog slug / connector id, used to match the three sources together. */
|
|
42
|
+
slug: string;
|
|
43
|
+
name: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
direction: ConnectorDirection;
|
|
46
|
+
/** Planes this connector can be honoured on. */
|
|
47
|
+
planes: ConnectorPlane[];
|
|
48
|
+
/** The plane it is running on right now (only meaningful when connected). */
|
|
49
|
+
activePlane?: ConnectorPlane;
|
|
50
|
+
state: ConnectorState;
|
|
51
|
+
hostPluginId?: string;
|
|
52
|
+
category?: string;
|
|
53
|
+
/** Lucide icon name (installed connectors). */
|
|
54
|
+
icon?: string;
|
|
55
|
+
/** Brand mark from the catalogue or the granting client. */
|
|
56
|
+
logoUrl?: string;
|
|
57
|
+
/** Canonical entities the connector touches. */
|
|
58
|
+
entities?: string[];
|
|
59
|
+
/** How many record types it reaches, when the source only counts them. */
|
|
60
|
+
entityCount?: number;
|
|
61
|
+
/** Tools the assistant gains — declared (outbound) or granted (inbound). */
|
|
62
|
+
agentTools?: ConnectorAgentTool[];
|
|
63
|
+
detail?: string;
|
|
64
|
+
docsUrl?: string;
|
|
65
|
+
builtIn?: boolean;
|
|
66
|
+
revocable?: boolean;
|
|
67
|
+
readOnly?: boolean;
|
|
68
|
+
scopes?: string[];
|
|
69
|
+
grantedByMe?: boolean;
|
|
70
|
+
identityVerified?: boolean;
|
|
71
|
+
clientWebsite?: string;
|
|
72
|
+
createdAt?: string | null;
|
|
73
|
+
lastUsedAt?: string | null;
|
|
74
|
+
/** Runtime facts about a granted assistant (model, execution plane). */
|
|
75
|
+
agentConfig?: AgentGrant['config'];
|
|
76
|
+
/** The live definition, when this app actually has the connector installed. */
|
|
77
|
+
definition?: ConnectorDefinition;
|
|
78
|
+
}
|
|
79
|
+
/** An inbound grant as the agent connections API returns it. */
|
|
80
|
+
export interface AgentGrant {
|
|
81
|
+
id: string;
|
|
82
|
+
direction: 'inbound' | 'outbound';
|
|
83
|
+
kind: string;
|
|
84
|
+
builtIn?: boolean;
|
|
85
|
+
revocable?: boolean;
|
|
86
|
+
clientName: string;
|
|
87
|
+
clientWebsite?: string;
|
|
88
|
+
clientLogoUri?: string;
|
|
89
|
+
identityVerified?: boolean;
|
|
90
|
+
description?: string | null;
|
|
91
|
+
enabled?: boolean;
|
|
92
|
+
scopes: string[];
|
|
93
|
+
readOnly: boolean;
|
|
94
|
+
grantedByMe: boolean;
|
|
95
|
+
createdAt: string | null;
|
|
96
|
+
lastUsedAt: string | null;
|
|
97
|
+
config?: {
|
|
98
|
+
model?: string | null;
|
|
99
|
+
channel?: {
|
|
100
|
+
status: string;
|
|
101
|
+
audience: string;
|
|
102
|
+
} | null;
|
|
103
|
+
executionPlane?: string;
|
|
104
|
+
};
|
|
105
|
+
capabilities?: {
|
|
106
|
+
entities: number;
|
|
107
|
+
tools: string[];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** A row of the Fayz connector directory. */
|
|
111
|
+
export interface CatalogConnector {
|
|
112
|
+
slug: string;
|
|
113
|
+
name: string;
|
|
114
|
+
description?: string;
|
|
115
|
+
category?: string;
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
logoUrl?: string;
|
|
118
|
+
iconUrl?: string;
|
|
119
|
+
/** Planes the platform declares for this provider, when it knows. */
|
|
120
|
+
planes?: ConnectorPlane[];
|
|
121
|
+
}
|
|
122
|
+
export declare const CATEGORY_LABELS: Record<string, string>;
|
|
123
|
+
/** The four the product leads with; the rest follow, in catalogue order. */
|
|
124
|
+
export declare const FEATURED: string[];
|
|
125
|
+
/** An installed connector plus the status the hub already resolved for it. */
|
|
126
|
+
export interface InstalledConnector {
|
|
127
|
+
definition: ConnectorDefinition;
|
|
128
|
+
connected?: boolean;
|
|
129
|
+
detail?: string;
|
|
130
|
+
/** Plane reported by `getStatus()`; falls back to the preferred one. */
|
|
131
|
+
plane?: ConnectorPlane;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Merge the three sources into the single list both surfaces render.
|
|
135
|
+
*
|
|
136
|
+
* Installed connectors win over their catalogue twin — the catalogue only
|
|
137
|
+
* lends them a brand mark — because the installed one is the copy with real
|
|
138
|
+
* verbs behind it.
|
|
139
|
+
*/
|
|
140
|
+
export declare function buildConnectorList(input: {
|
|
141
|
+
installed?: InstalledConnector[];
|
|
142
|
+
grants?: AgentGrant[];
|
|
143
|
+
catalog?: CatalogConnector[];
|
|
144
|
+
}): UnifiedConnector[];
|
|
145
|
+
/** Connected first, then what can be connected here, then the catalogue. */
|
|
146
|
+
export declare function sortConnectors(list: UnifiedConnector[]): UnifiedConnector[];
|
|
147
|
+
export type ConnectorFilter = 'all' | 'connected' | 'agentic' | 'sync' | 'inbound' | 'outbound';
|
|
148
|
+
export declare function filterConnectors(list: UnifiedConnector[], filter: ConnectorFilter, query?: string): UnifiedConnector[];
|
|
149
|
+
/** Deep link to where a connector is actually configured. */
|
|
150
|
+
export declare function connectorRoute(connector: UnifiedConnector): string;
|
|
151
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/components/connect/model.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CatalogConnector, type UnifiedConnector } from './model';
|
|
2
|
+
export declare function useConnectorCatalog(): CatalogConnector[] | null;
|
|
3
|
+
export interface ConnectorsView {
|
|
4
|
+
connectors: UnifiedConnector[] | null;
|
|
5
|
+
error: string | null;
|
|
6
|
+
reload: () => void;
|
|
7
|
+
/** Withdraw an inbound grant. Resolves once the row is gone. */
|
|
8
|
+
revokeGrant: (connector: UnifiedConnector) => Promise<void>;
|
|
9
|
+
/** No Fayz project behind this app — the inbound half simply doesn't exist. */
|
|
10
|
+
agentAvailable: boolean;
|
|
11
|
+
tenantReady: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Builds the unified list: inbound grants (what reaches this org) + installed
|
|
15
|
+
* connectors (what this app reaches) + the Fayz catalogue (what it could).
|
|
16
|
+
*/
|
|
17
|
+
export declare function useConnectors(options?: {
|
|
18
|
+
hostPluginId?: string;
|
|
19
|
+
/** Include the inbound grants — the plugin-scoped view leaves them out. */
|
|
20
|
+
includeGrants?: boolean;
|
|
21
|
+
/** Include catalogue rows this app can't connect yet. */
|
|
22
|
+
includeCatalog?: boolean;
|
|
23
|
+
}): ConnectorsView;
|
|
24
|
+
//# sourceMappingURL=useConnectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectors.d.ts","sourceRoot":"","sources":["../../../src/components/connect/useConnectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,gBAAgB,EAErB,KAAK,gBAAgB,EACtB,MAAM,SAAS,CAAA;AAgChB,wBAAgB,mBAAmB,IAAI,gBAAgB,EAAE,GAAG,IAAI,CAY/D;AAaD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,gEAAgE;IAChE,WAAW,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,+EAA+E;IAC/E,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE;IACrC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,cAAc,CAmHtB"}
|