@flowselections/ai-authenticatie 1.0.13 → 1.0.15
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/components/AiAuthenticatiePage.js +12 -12
- package/dist-lib/components/AiModuleDetailPage.js +8 -8
- package/dist-lib/components/AiModuleTestPanel.js +2 -2
- package/dist-lib/components/AiPeriodFilter.d.ts +1 -1
- package/dist-lib/components/AiPeriodFilter.js +1 -1
- package/dist-lib/components/ModuleAgentsDialog.d.ts +2 -2
- package/dist-lib/components/ModuleAgentsDialog.js +1 -1
- package/dist-lib/components/ProviderManageDialog.d.ts +1 -1
- package/dist-lib/components/ProviderManageDialog.js +6 -6
- package/dist-lib/components/settings/AiAuthenticatieSettingsCard.js +1 -1
- package/dist-lib/hooks/useAiCostOverview.d.ts +1 -1
- package/dist-lib/hooks/useAiCostOverview.js +1 -1
- package/dist-lib/hooks/useAiForGoal.d.ts +2 -2
- package/dist-lib/hooks/useAiForGoal.js +2 -2
- package/dist-lib/hooks/useAiForModule.d.ts +1 -1
- package/dist-lib/hooks/useAiForModule.js +1 -1
- package/dist-lib/hooks/useAiModules.d.ts +1 -1
- package/dist-lib/hooks/useAiModules.js +1 -1
- package/dist-lib/hooks/useAiPricing.d.ts +1 -1
- package/dist-lib/hooks/useAiPricing.js +1 -1
- package/dist-lib/hooks/useAiUsage.d.ts +1 -1
- package/dist-lib/hooks/useAiUsage.js +1 -1
- package/dist-lib/hooks/useAiUsageByModule.d.ts +1 -1
- package/dist-lib/hooks/useAiUsageByModule.js +1 -1
- package/dist-lib/hooks/useModules.d.ts +1 -1
- package/dist-lib/hooks/useModules.js +1 -1
- package/dist-lib/index.d.ts +25 -25
- package/dist-lib/index.js +18 -18
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1892 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/aiChat.functions.d.ts +4 -4
- package/dist-lib/lib/aiChat.functions.js +3 -3
- package/dist-lib/lib/aiChat.server.d.ts +1 -1
- package/dist-lib/lib/aiChat.server.js +1 -1
- package/dist-lib/lib/aiChat.stream.d.ts +1 -1
- package/dist-lib/lib/aiChat.stream.server.d.ts +1 -1
- package/dist-lib/lib/aiChat.stream.server.js +2 -2
- package/dist-lib/lib/aiCredentialTest.functions.d.ts +2 -2
- package/dist-lib/lib/aiCredentialTest.functions.js +1 -1
- package/dist-lib/lib/aiModules.functions.d.ts +7 -7
- package/dist-lib/lib/aiModules.functions.js +2 -2
- package/dist-lib/lib/aiPricing.functions.d.ts +3 -3
- package/dist-lib/lib/aiPricing.functions.js +2 -2
- package/dist-lib/lib/aiUsage.functions.d.ts +2 -2
- package/dist-lib/lib/aiUsage.functions.js +1 -1
- package/dist-lib/lib/aiUsage.server.d.ts +1 -1
- package/dist-lib/lib/aiUsageByModule.functions.d.ts +2 -2
- package/dist-lib/lib/aiUsageByModule.functions.js +1 -1
- package/dist-lib/lib/modules.functions.d.ts +4 -4
- package/dist-lib/lib/modules.functions.js +2 -2
- package/package.json +2 -2
|
@@ -3,18 +3,18 @@ import { useMemo, useState } from 'react';
|
|
|
3
3
|
import { Link } from '@tanstack/react-router';
|
|
4
4
|
import { Button, Card, Skeleton, Badge, Switch, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, toast, } from '@flowselections/core';
|
|
5
5
|
import { KeyRound, ChevronRight, ShieldCheck, RefreshCw, TrendingUp, AlertCircle, ExternalLink, Plus, Loader2, Sparkles, Trash2, Settings2, Boxes, Code2, } from 'lucide-react';
|
|
6
|
-
import { useAiAdminData } from '../hooks/useAiAdmin';
|
|
7
|
-
import { useModelPricing, providerSummaries, formatUsd, formatTokens } from '../hooks/useAiPricing';
|
|
8
|
-
import { useAllProviderUsage } from '../hooks/useAiUsage';
|
|
9
|
-
import { useAiModules } from '../hooks/useAiModules';
|
|
10
|
-
import { useModules } from '../hooks/useModules';
|
|
11
|
-
import { useAiCostOverview } from '../hooks/useAiCostOverview';
|
|
12
|
-
import { periodFromPreset } from '../lib/aiPeriod';
|
|
13
|
-
import { AiPeriodFilter } from './AiPeriodFilter';
|
|
14
|
-
import { StatTile } from './AiStatTile';
|
|
15
|
-
import { ProviderLogo } from './ProviderLogo';
|
|
16
|
-
import { ProviderManageDialog } from './ProviderManageDialog';
|
|
17
|
-
import { ModuleAgentsDialog } from './ModuleAgentsDialog';
|
|
6
|
+
import { useAiAdminData } from '../hooks/useAiAdmin.js';
|
|
7
|
+
import { useModelPricing, providerSummaries, formatUsd, formatTokens } from '../hooks/useAiPricing.js';
|
|
8
|
+
import { useAllProviderUsage } from '../hooks/useAiUsage.js';
|
|
9
|
+
import { useAiModules } from '../hooks/useAiModules.js';
|
|
10
|
+
import { useModules } from '../hooks/useModules.js';
|
|
11
|
+
import { useAiCostOverview } from '../hooks/useAiCostOverview.js';
|
|
12
|
+
import { periodFromPreset } from '../lib/aiPeriod.js';
|
|
13
|
+
import { AiPeriodFilter } from './AiPeriodFilter.js';
|
|
14
|
+
import { StatTile } from './AiStatTile.js';
|
|
15
|
+
import { ProviderLogo } from './ProviderLogo.js';
|
|
16
|
+
import { ProviderManageDialog } from './ProviderManageDialog.js';
|
|
17
|
+
import { ModuleAgentsDialog } from './ModuleAgentsDialog.js';
|
|
18
18
|
async function copyIntegrationSnippet(moduleKey) {
|
|
19
19
|
const snippet = `import { useAiForModule } from '@flowselections/ai-authenticatie';
|
|
20
20
|
|
|
@@ -4,14 +4,14 @@ import { Link, useParams } from '@tanstack/react-router';
|
|
|
4
4
|
import { useServerFn } from '@tanstack/react-start';
|
|
5
5
|
import { Button, Card, Skeleton, Badge } from '@flowselections/core';
|
|
6
6
|
import { ArrowLeft, RefreshCw } from 'lucide-react';
|
|
7
|
-
import { getAiModuleCalls } from '../lib/aiModules.functions';
|
|
8
|
-
import { useAiModules } from '../hooks/useAiModules';
|
|
9
|
-
import { useAiCostOverview } from '../hooks/useAiCostOverview';
|
|
10
|
-
import { periodFromPreset } from '../lib/aiPeriod';
|
|
11
|
-
import { AiPeriodFilter } from './AiPeriodFilter';
|
|
12
|
-
import { formatUsd, formatTokens } from '../hooks/useAiPricing';
|
|
13
|
-
import { StatTile } from './AiStatTile';
|
|
14
|
-
import { AiModuleTestPanel } from './AiModuleTestPanel';
|
|
7
|
+
import { getAiModuleCalls } from '../lib/aiModules.functions.js';
|
|
8
|
+
import { useAiModules } from '../hooks/useAiModules.js';
|
|
9
|
+
import { useAiCostOverview } from '../hooks/useAiCostOverview.js';
|
|
10
|
+
import { periodFromPreset } from '../lib/aiPeriod.js';
|
|
11
|
+
import { AiPeriodFilter } from './AiPeriodFilter.js';
|
|
12
|
+
import { formatUsd, formatTokens } from '../hooks/useAiPricing.js';
|
|
13
|
+
import { StatTile } from './AiStatTile.js';
|
|
14
|
+
import { AiModuleTestPanel } from './AiModuleTestPanel.js';
|
|
15
15
|
export function AiModuleDetailPage() {
|
|
16
16
|
const { moduleKey } = useParams({ strict: false });
|
|
17
17
|
const key = moduleKey ?? '';
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Button, Card, Badge, Textarea, toast } from '@flowselections/core';
|
|
4
4
|
import { Play, Loader2, AlertCircle } from 'lucide-react';
|
|
5
|
-
import { useAiForModule } from '../hooks/useAiForModule';
|
|
6
|
-
import { formatUsd, formatTokens } from '../hooks/useAiPricing';
|
|
5
|
+
import { useAiForModule } from '../hooks/useAiForModule.js';
|
|
6
|
+
import { formatUsd, formatTokens } from '../hooks/useAiPricing.js';
|
|
7
7
|
export function AiModuleTestPanel({ moduleKey }) {
|
|
8
8
|
const ai = useAiForModule(moduleKey);
|
|
9
9
|
const [prompt, setPrompt] = useState('Geef een korte testreactie in het Nederlands.');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Input, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@flowselections/core';
|
|
3
3
|
import { CalendarRange } from 'lucide-react';
|
|
4
|
-
import { PERIOD_LABELS, fromDateInput, periodFromPreset, toDateInput, } from '../lib/aiPeriod';
|
|
4
|
+
import { PERIOD_LABELS, fromDateInput, periodFromPreset, toDateInput, } from '../lib/aiPeriod.js';
|
|
5
5
|
export function AiPeriodFilter({ period, onChange, className = '', }) {
|
|
6
6
|
const presets = ['today', 'week', 'month', 'year', 'custom'];
|
|
7
7
|
return (_jsxs("div", { className: `flex flex-wrap items-center gap-2 ${className}`, children: [_jsx(CalendarRange, { className: "h-4 w-4 text-muted-foreground" }), _jsxs(Select, { value: period.preset, onValueChange: (v) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AiProvider, AiModel, AiCredential, AiBinding } from '../hooks/useAiAdmin';
|
|
2
|
-
import type { AiModuleRow } from '../lib/aiModules.functions';
|
|
1
|
+
import type { AiProvider, AiModel, AiCredential, AiBinding } from '../hooks/useAiAdmin.js';
|
|
2
|
+
import type { AiModuleRow } from '../lib/aiModules.functions.js';
|
|
3
3
|
export declare function ModuleAgentsDialog({ module, open, onOpenChange, providers, models, credentials, bindings, onChange, onOpenProvider, }: {
|
|
4
4
|
module: AiModuleRow;
|
|
5
5
|
open: boolean;
|
|
@@ -2,7 +2,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Button, Badge, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, supabase, toast, } from '@flowselections/core';
|
|
4
4
|
import { Plus, Trash2, Star, KeyRound } from 'lucide-react';
|
|
5
|
-
import { ProviderLogo } from './ProviderLogo';
|
|
5
|
+
import { ProviderLogo } from './ProviderLogo.js';
|
|
6
6
|
export function ModuleAgentsDialog({ module, open, onOpenChange, providers, models, credentials, bindings, onChange, onOpenProvider, }) {
|
|
7
7
|
const safeProviders = Array.isArray(providers) ? providers : [];
|
|
8
8
|
const safeModels = Array.isArray(models) ? models : [];
|
|
@@ -3,12 +3,12 @@ import { useMemo, useState } from 'react';
|
|
|
3
3
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, Button, Input, Label, Badge, Separator, Switch, Skeleton, supabase, toast, } from '@flowselections/core';
|
|
4
4
|
import { useServerFn } from '@tanstack/react-start';
|
|
5
5
|
import { Plus, Trash2, Eye, EyeOff, Zap, Loader2, ShieldCheck, TrendingUp, ExternalLink } from 'lucide-react';
|
|
6
|
-
import { ProviderLogo } from './ProviderLogo';
|
|
7
|
-
import { maskKey } from '../hooks/useAiAdmin';
|
|
8
|
-
import { testAiCredential, syncAiCredentialModels } from '../lib/aiCredentialTest.functions';
|
|
9
|
-
import { useModelPricing, pricingByModelSlug, formatUsd, formatTokens } from '../hooks/useAiPricing';
|
|
10
|
-
import { useProviderUsage } from '../hooks/useAiUsage';
|
|
11
|
-
import { useAdminCredentials, findAdminCred } from '../hooks/useAdminCredentials';
|
|
6
|
+
import { ProviderLogo } from './ProviderLogo.js';
|
|
7
|
+
import { maskKey } from '../hooks/useAiAdmin.js';
|
|
8
|
+
import { testAiCredential, syncAiCredentialModels } from '../lib/aiCredentialTest.functions.js';
|
|
9
|
+
import { useModelPricing, pricingByModelSlug, formatUsd, formatTokens } from '../hooks/useAiPricing.js';
|
|
10
|
+
import { useProviderUsage } from '../hooks/useAiUsage.js';
|
|
11
|
+
import { useAdminCredentials, findAdminCred } from '../hooks/useAdminCredentials.js';
|
|
12
12
|
export function ProviderManageDialog({ provider, credentials, open, onOpenChange, onChange, }) {
|
|
13
13
|
const safeCreds = Array.isArray(credentials) ? credentials : [];
|
|
14
14
|
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "max-w-2xl max-h-[90vh] overflow-y-auto", children: [_jsx(DialogHeader, { children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx(ProviderLogo, { slug: provider.slug, name: provider.name, className: "h-10 w-10" }), _jsxs("div", { children: [_jsx(DialogTitle, { children: provider.name }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Beheer sleutels, bekijk tarieven en actueel verbruik." })] })] }) }), _jsxs("div", { className: "mt-2 space-y-6", children: [_jsx(UsageSection, { provider: provider }), _jsx(AdminKeySection, { provider: provider }), _jsxs("div", { children: [_jsx("h4", { className: "text-sm font-semibold mb-2", children: "API-sleutels" }), _jsx(CredentialList, { provider: provider, credentials: safeCreds, onChange: onChange })] }), _jsx(PricingSection, { provider: provider }), _jsxs("div", { className: "flex items-start gap-2 rounded-lg border bg-muted/40 p-3", children: [_jsx(ShieldCheck, { className: "h-4 w-4 mt-0.5 text-muted-foreground shrink-0" }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Alle sleutels worden veilig en versleuteld opgeslagen. Admin-sleutels worden alleen server-side gebruikt om kosten op te halen." })] })] })] }) }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@flowselections/core';
|
|
3
3
|
import { KeyRound } from 'lucide-react';
|
|
4
|
-
import { AiAuthenticatiePage } from '../AiAuthenticatiePage';
|
|
4
|
+
import { AiAuthenticatiePage } from '../AiAuthenticatiePage.js';
|
|
5
5
|
export function AiAuthenticatieSettingsCard() {
|
|
6
6
|
return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(KeyRound, { className: "h-5 w-5 text-primary" }), _jsx(CardTitle, { children: "AI-Authenticatie" })] }), _jsx(CardDescription, { children: "Beheer per module welke AI-agents gebruikt worden, bekijk kosten en API sleutels." })] }), _jsx(CardContent, { children: _jsx(AiAuthenticatiePage, { embedded: true }) })] }));
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
|
-
import { getAiCostOverview } from '../lib/aiModules.functions';
|
|
3
|
+
import { getAiCostOverview } from '../lib/aiModules.functions.js';
|
|
4
4
|
const EMPTY = {
|
|
5
5
|
from: '', to: '',
|
|
6
6
|
totals: { calls: 0, errors: 0, input_tokens: 0, output_tokens: 0, total_tokens: 0, cost_usd: 0, avg_cost_per_call: 0 },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AiStreamHandlers } from '../lib/aiChat.stream';
|
|
2
|
-
import type { AiChatBindingInfo, AiChatMessage, AiChatOptions, AiChatResult } from '../lib/aiChat.types';
|
|
1
|
+
import { type AiStreamHandlers } from '../lib/aiChat.stream.js';
|
|
2
|
+
import type { AiChatBindingInfo, AiChatMessage, AiChatOptions, AiChatResult } from '../lib/aiChat.types.js';
|
|
3
3
|
export type UseAiForGoalReturn = {
|
|
4
4
|
ready: boolean;
|
|
5
5
|
loading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
|
-
import { runAiChat, describeAiBinding } from '../lib/aiChat.functions';
|
|
4
|
-
import { streamAiChat } from '../lib/aiChat.stream';
|
|
3
|
+
import { runAiChat, describeAiBinding } from '../lib/aiChat.functions.js';
|
|
4
|
+
import { streamAiChat } from '../lib/aiChat.stream.js';
|
|
5
5
|
/**
|
|
6
6
|
* Consumer-hook: geeft de AI-agent terug die aan een module is gekoppeld.
|
|
7
7
|
* `consumerModuleId` is de `module_key` uit de AI-instellingen.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AiModuleRow, type AiMutationResult } from '../lib/aiModules.functions';
|
|
1
|
+
import { type AiModuleRow, type AiMutationResult } from '../lib/aiModules.functions.js';
|
|
2
2
|
export type { AiModuleRow };
|
|
3
3
|
export declare function useAiModules(): {
|
|
4
4
|
modules: AiModuleRow[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
|
-
import { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, } from '../lib/aiModules.functions';
|
|
3
|
+
import { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, } from '../lib/aiModules.functions.js';
|
|
4
4
|
export function useAiModules() {
|
|
5
5
|
const listFn = useServerFn(listAiModules);
|
|
6
6
|
const saveFn = useServerFn(saveAiModule);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { supabase } from '@flowselections/core';
|
|
3
3
|
import { useServerFn } from '@tanstack/react-start';
|
|
4
|
-
import { ensureModelPricingFresh, refreshModelPricing } from '../lib/aiPricing.functions';
|
|
4
|
+
import { ensureModelPricingFresh, refreshModelPricing } from '../lib/aiPricing.functions.js';
|
|
5
5
|
export function useModelPricing() {
|
|
6
6
|
const [rows, setRows] = useState([]);
|
|
7
7
|
const [loading, setLoading] = useState(true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ProviderUsageResult } from '../lib/aiUsage.functions';
|
|
1
|
+
import { type ProviderUsageResult } from '../lib/aiUsage.functions.js';
|
|
2
2
|
export declare function useProviderUsage(providerSlug: string | null | undefined): {
|
|
3
3
|
data: ProviderUsageResult | null;
|
|
4
4
|
loading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
3
|
import { supabase } from '@flowselections/core';
|
|
4
|
-
import { fetchProviderUsage } from '../lib/aiUsage.functions';
|
|
4
|
+
import { fetchProviderUsage } from '../lib/aiUsage.functions.js';
|
|
5
5
|
function usageFallback(providerSlug, message) {
|
|
6
6
|
return {
|
|
7
7
|
ok: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AiUsageByModuleRow } from '../lib/aiUsageByModule.functions';
|
|
1
|
+
import { type AiUsageByModuleRow } from '../lib/aiUsageByModule.functions.js';
|
|
2
2
|
export type { AiUsageByModuleRow };
|
|
3
3
|
export declare function useAiUsageByModule(days?: number): {
|
|
4
4
|
rows: AiUsageByModuleRow[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
|
-
import { getAiUsageByModule } from '../lib/aiUsageByModule.functions';
|
|
3
|
+
import { getAiUsageByModule } from '../lib/aiUsageByModule.functions.js';
|
|
4
4
|
export function useAiUsageByModule(days = 30) {
|
|
5
5
|
const fn = useServerFn(getAiUsageByModule);
|
|
6
6
|
const [rows, setRows] = useState([]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ModuleRow, type ModuleMutationResult } from '../lib/modules.functions';
|
|
1
|
+
import { type ModuleRow, type ModuleMutationResult } from '../lib/modules.functions.js';
|
|
2
2
|
export type { ModuleRow };
|
|
3
3
|
export declare function useModules(): {
|
|
4
4
|
registered: ModuleRow[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useServerFn } from '@tanstack/react-start';
|
|
3
|
-
import { listModules, registerModule, setModuleActiveFn, } from '../lib/modules.functions';
|
|
3
|
+
import { listModules, registerModule, setModuleActiveFn, } from '../lib/modules.functions.js';
|
|
4
4
|
export function useModules() {
|
|
5
5
|
const listFn = useServerFn(listModules);
|
|
6
6
|
const registerFn = useServerFn(registerModule);
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import type { FlowModule } from '@flowselections/core';
|
|
2
|
-
export * from './_core-safelist';
|
|
3
|
-
export { AiAuthenticatiePage } from './components/AiAuthenticatiePage';
|
|
4
|
-
export { AiAuthenticatieLogo } from './components/AiAuthenticatieLogo';
|
|
5
|
-
import { AiAuthenticatieSettingsCard } from './components/settings/AiAuthenticatieSettingsCard';
|
|
2
|
+
export * from './_core-safelist.js';
|
|
3
|
+
export { AiAuthenticatiePage } from './components/AiAuthenticatiePage.js';
|
|
4
|
+
export { AiAuthenticatieLogo } from './components/AiAuthenticatieLogo.js';
|
|
5
|
+
import { AiAuthenticatieSettingsCard } from './components/settings/AiAuthenticatieSettingsCard.js';
|
|
6
6
|
export { AiAuthenticatieSettingsCard };
|
|
7
|
-
export * from './hooks/useAiAdmin';
|
|
8
|
-
export { runAiChat, describeAiBinding } from './lib/aiChat.functions';
|
|
9
|
-
export { streamAiChat } from './lib/aiChat.stream';
|
|
10
|
-
export type { AiStreamHandlers } from './lib/aiChat.stream';
|
|
11
|
-
export { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, getAiCostOverview, getAiModuleCalls, } from './lib/aiModules.functions';
|
|
12
|
-
export type { AiModuleRow, AiModuleStats, AiCostTotals, AiCostOverview, AiCallLogEntry } from './lib/aiModules.functions';
|
|
13
|
-
export { listModules, registerModule, setModuleActiveFn } from './lib/modules.functions';
|
|
14
|
-
export type { ModuleRow, ModuleMutationResult } from './lib/modules.functions';
|
|
15
|
-
export { useModules } from './hooks/useModules';
|
|
16
|
-
export { getAiUsageByModule, isAiAdmin } from './lib/aiUsageByModule.functions';
|
|
17
|
-
export type { AiUsageByModuleRow } from './lib/aiUsageByModule.functions';
|
|
18
|
-
export type { AiChatMessage, AiChatRole, AiChatOptions, AiChatUsage, AiChatResult, AiChatSuccess, AiChatError, AiChatBindingInfo, } from './lib/aiChat.types';
|
|
19
|
-
export { useAiForGoal } from './hooks/useAiForGoal';
|
|
20
|
-
export type { UseAiForGoalReturn } from './hooks/useAiForGoal';
|
|
21
|
-
export { useAiForModule } from './hooks/useAiForModule';
|
|
22
|
-
export type { UseAiForModuleReturn } from './hooks/useAiForModule';
|
|
23
|
-
export { useAiModules } from './hooks/useAiModules';
|
|
24
|
-
export { useAiCostOverview } from './hooks/useAiCostOverview';
|
|
25
|
-
export { useIsAiAdmin } from './hooks/useIsAiAdmin';
|
|
26
|
-
export { useAiUsageByModule } from './hooks/useAiUsageByModule';
|
|
27
|
-
export { AiModuleDetailPage } from './components/AiModuleDetailPage';
|
|
7
|
+
export * from './hooks/useAiAdmin.js';
|
|
8
|
+
export { runAiChat, describeAiBinding } from './lib/aiChat.functions.js';
|
|
9
|
+
export { streamAiChat } from './lib/aiChat.stream.js';
|
|
10
|
+
export type { AiStreamHandlers } from './lib/aiChat.stream.js';
|
|
11
|
+
export { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, getAiCostOverview, getAiModuleCalls, } from './lib/aiModules.functions.js';
|
|
12
|
+
export type { AiModuleRow, AiModuleStats, AiCostTotals, AiCostOverview, AiCallLogEntry } from './lib/aiModules.functions.js';
|
|
13
|
+
export { listModules, registerModule, setModuleActiveFn } from './lib/modules.functions.js';
|
|
14
|
+
export type { ModuleRow, ModuleMutationResult } from './lib/modules.functions.js';
|
|
15
|
+
export { useModules } from './hooks/useModules.js';
|
|
16
|
+
export { getAiUsageByModule, isAiAdmin } from './lib/aiUsageByModule.functions.js';
|
|
17
|
+
export type { AiUsageByModuleRow } from './lib/aiUsageByModule.functions.js';
|
|
18
|
+
export type { AiChatMessage, AiChatRole, AiChatOptions, AiChatUsage, AiChatResult, AiChatSuccess, AiChatError, AiChatBindingInfo, } from './lib/aiChat.types.js';
|
|
19
|
+
export { useAiForGoal } from './hooks/useAiForGoal.js';
|
|
20
|
+
export type { UseAiForGoalReturn } from './hooks/useAiForGoal.js';
|
|
21
|
+
export { useAiForModule } from './hooks/useAiForModule.js';
|
|
22
|
+
export type { UseAiForModuleReturn } from './hooks/useAiForModule.js';
|
|
23
|
+
export { useAiModules } from './hooks/useAiModules.js';
|
|
24
|
+
export { useAiCostOverview } from './hooks/useAiCostOverview.js';
|
|
25
|
+
export { useIsAiAdmin } from './hooks/useIsAiAdmin.js';
|
|
26
|
+
export { useAiUsageByModule } from './hooks/useAiUsageByModule.js';
|
|
27
|
+
export { AiModuleDetailPage } from './components/AiModuleDetailPage.js';
|
|
28
28
|
export declare const aiAuthenticatieModule: FlowModule;
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist-lib/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { KeyRound } from 'lucide-react';
|
|
2
|
-
export * from './_core-safelist';
|
|
3
|
-
export { AiAuthenticatiePage } from './components/AiAuthenticatiePage';
|
|
4
|
-
export { AiAuthenticatieLogo } from './components/AiAuthenticatieLogo';
|
|
5
|
-
import { AiAuthenticatieSettingsCard } from './components/settings/AiAuthenticatieSettingsCard';
|
|
2
|
+
export * from './_core-safelist.js';
|
|
3
|
+
export { AiAuthenticatiePage } from './components/AiAuthenticatiePage.js';
|
|
4
|
+
export { AiAuthenticatieLogo } from './components/AiAuthenticatieLogo.js';
|
|
5
|
+
import { AiAuthenticatieSettingsCard } from './components/settings/AiAuthenticatieSettingsCard.js';
|
|
6
6
|
export { AiAuthenticatieSettingsCard };
|
|
7
|
-
export * from './hooks/useAiAdmin';
|
|
7
|
+
export * from './hooks/useAiAdmin.js';
|
|
8
8
|
// Consumer-API voor andere modules
|
|
9
|
-
export { runAiChat, describeAiBinding } from './lib/aiChat.functions';
|
|
10
|
-
export { streamAiChat } from './lib/aiChat.stream';
|
|
11
|
-
export { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, getAiCostOverview, getAiModuleCalls, } from './lib/aiModules.functions';
|
|
9
|
+
export { runAiChat, describeAiBinding } from './lib/aiChat.functions.js';
|
|
10
|
+
export { streamAiChat } from './lib/aiChat.stream.js';
|
|
11
|
+
export { listAiModules, saveAiModule, setAiModuleEnabled, deleteAiModule, getAiCostOverview, getAiModuleCalls, } from './lib/aiModules.functions.js';
|
|
12
12
|
// Centrale moduleregistratie
|
|
13
|
-
export { listModules, registerModule, setModuleActiveFn } from './lib/modules.functions';
|
|
14
|
-
export { useModules } from './hooks/useModules';
|
|
15
|
-
export { getAiUsageByModule, isAiAdmin } from './lib/aiUsageByModule.functions';
|
|
16
|
-
export { useAiForGoal } from './hooks/useAiForGoal';
|
|
17
|
-
export { useAiForModule } from './hooks/useAiForModule';
|
|
18
|
-
export { useAiModules } from './hooks/useAiModules';
|
|
19
|
-
export { useAiCostOverview } from './hooks/useAiCostOverview';
|
|
20
|
-
export { useIsAiAdmin } from './hooks/useIsAiAdmin';
|
|
21
|
-
export { useAiUsageByModule } from './hooks/useAiUsageByModule';
|
|
22
|
-
export { AiModuleDetailPage } from './components/AiModuleDetailPage';
|
|
13
|
+
export { listModules, registerModule, setModuleActiveFn } from './lib/modules.functions.js';
|
|
14
|
+
export { useModules } from './hooks/useModules.js';
|
|
15
|
+
export { getAiUsageByModule, isAiAdmin } from './lib/aiUsageByModule.functions.js';
|
|
16
|
+
export { useAiForGoal } from './hooks/useAiForGoal.js';
|
|
17
|
+
export { useAiForModule } from './hooks/useAiForModule.js';
|
|
18
|
+
export { useAiModules } from './hooks/useAiModules.js';
|
|
19
|
+
export { useAiCostOverview } from './hooks/useAiCostOverview.js';
|
|
20
|
+
export { useIsAiAdmin } from './hooks/useIsAiAdmin.js';
|
|
21
|
+
export { useAiUsageByModule } from './hooks/useAiUsageByModule.js';
|
|
22
|
+
export { AiModuleDetailPage } from './components/AiModuleDetailPage.js';
|
|
23
23
|
export const aiAuthenticatieModule = {
|
|
24
24
|
id: 'ai-authenticatie',
|
|
25
25
|
name: 'AI-Authenticatie',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SupabaseClient } from '@supabase/supabase-js';
|
|
2
|
-
import type { Database } from './types';
|
|
2
|
+
import type { Database } from './types.js';
|
|
3
3
|
export interface AuthedSupabaseClient extends SupabaseClient<Database> {
|
|
4
4
|
}
|
|
5
5
|
export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|