@absolutejs/absolute 0.19.0-beta.643 → 0.19.0-beta.645

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.
Files changed (37) hide show
  1. package/dist/ai/client/index.js +976 -15
  2. package/dist/ai/client/index.js.map +6 -6
  3. package/dist/ai/client/ui.js +807 -15
  4. package/dist/ai/client/ui.js.map +5 -5
  5. package/dist/ai/index.js +2737 -141
  6. package/dist/ai/index.js.map +13 -13
  7. package/dist/ai/rag/quality.js +813 -15
  8. package/dist/ai/rag/quality.js.map +5 -5
  9. package/dist/ai/rag/ui.js +807 -15
  10. package/dist/ai/rag/ui.js.map +5 -5
  11. package/dist/ai-client/angular/ai/index.js +436 -8
  12. package/dist/ai-client/react/ai/index.js +436 -8
  13. package/dist/ai-client/vue/ai/index.js +436 -8
  14. package/dist/angular/ai/index.js +976 -15
  15. package/dist/angular/ai/index.js.map +6 -6
  16. package/dist/index.js +6 -6
  17. package/dist/index.js.map +2 -2
  18. package/dist/react/ai/index.js +976 -15
  19. package/dist/react/ai/index.js.map +6 -6
  20. package/dist/src/ai/client/ragClient.d.ts +74 -1
  21. package/dist/src/ai/index.d.ts +2 -1
  22. package/dist/src/ai/rag/adapters/queryPlanning.d.ts +8 -0
  23. package/dist/src/ai/rag/chat.d.ts +135 -7
  24. package/dist/src/ai/rag/index.d.ts +1 -1
  25. package/dist/src/ai/rag/presentation.d.ts +5 -1
  26. package/dist/src/ai/rag/quality.d.ts +34 -1
  27. package/dist/src/vue/ai/useRAG.d.ts +84 -0
  28. package/dist/src/vue/ai/useRAGEvaluate.d.ts +74 -0
  29. package/dist/src/vue/ai/useRAGSearch.d.ts +10 -0
  30. package/dist/svelte/ai/index.js +976 -15
  31. package/dist/svelte/ai/index.js.map +6 -6
  32. package/dist/types/ai.d.ts +115 -13
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/session.d.ts +16 -0
  35. package/dist/vue/ai/index.js +976 -15
  36. package/dist/vue/ai/index.js.map +6 -6
  37. package/package.json +8 -7
@@ -1,3 +1,4 @@
1
+ import type { SessionStore } from './session';
1
2
  export type AIUsage = {
2
3
  inputTokens: number;
3
4
  outputTokens: number;
@@ -141,6 +142,7 @@ export type RAGSectionRetrievalDiagnostic = {
141
142
  queryTransformProvider?: string;
142
143
  queryTransformLabel?: string;
143
144
  queryTransformReason?: string;
145
+ evidenceReconcileApplied?: boolean;
144
146
  rerankApplied?: boolean;
145
147
  sourceBalanceApplied?: boolean;
146
148
  scoreThresholdApplied?: boolean;
@@ -603,6 +605,11 @@ export type RAGHybridSearchOptions = {
603
605
  fusionConstant?: number;
604
606
  lexicalWeight?: number;
605
607
  vectorWeight?: number;
608
+ nativeQueryProfile?: RAGNativeQueryProfile;
609
+ nativeCandidateLimit?: number;
610
+ nativeMaxBackfills?: number;
611
+ nativeMinResults?: number;
612
+ nativeFillPolicy?: 'strict_topk' | 'satisfy_min_results';
606
613
  };
607
614
  export type RAGUpsertInput = {
608
615
  chunks: RAGDocumentChunk[];
@@ -931,7 +938,7 @@ export type RAGCollectionSearchParams = {
931
938
  model?: string;
932
939
  signal?: AbortSignal;
933
940
  };
934
- export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'routing' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'diversity' | 'source_balance' | 'score_filter' | 'finalize';
941
+ export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'routing' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'diversity' | 'source_balance' | 'evidence_reconcile' | 'score_filter' | 'finalize';
935
942
  export type RAGRetrievalTraceStep = {
936
943
  stage: RAGRetrievalTraceStage;
937
944
  label: string;
@@ -2296,6 +2303,8 @@ export type RAGEvaluationRunDiff = {
2296
2303
  averageLexicalCount: number;
2297
2304
  averageCandidateTopK: number;
2298
2305
  averageLexicalTopK: number;
2306
+ officeEvidenceReconcileCasesDelta: number;
2307
+ pdfEvidenceReconcileCasesDelta: number;
2299
2308
  stageCounts: Partial<Record<RAGRetrievalTraceStage, number>>;
2300
2309
  };
2301
2310
  };
@@ -2571,6 +2580,58 @@ export type RAGEvaluationSuiteSnapshotHistoryPresentation = {
2571
2580
  rows: RAGLabelValueRow[];
2572
2581
  snapshots: RAGEvaluationSuiteSnapshotPresentation[];
2573
2582
  };
2583
+ export type RAGAdaptiveNativePlannerBenchmarkRuntime = {
2584
+ suiteId: string;
2585
+ suiteLabel: string;
2586
+ groupKey?: string;
2587
+ corpusGroupKey?: string;
2588
+ latestFixtureVariant?: string;
2589
+ fixtureVariants?: string[];
2590
+ recommendedGroupKey?: string;
2591
+ recommendedTags?: string[];
2592
+ latestRun?: RAGRetrievalComparisonRun;
2593
+ recentRuns?: RAGRetrievalComparisonRun[];
2594
+ historyPresentation?: RAGRetrievalReleaseGroupHistoryPresentation;
2595
+ snapshotHistory?: RAGEvaluationSuiteSnapshotHistory;
2596
+ snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
2597
+ };
2598
+ export type RAGNativeBackendComparisonBenchmarkRuntime = RAGAdaptiveNativePlannerBenchmarkRuntime;
2599
+ export type RAGAdaptiveNativePlannerBenchmarkResponse = {
2600
+ ok: boolean;
2601
+ suite?: RAGEvaluationSuite;
2602
+ comparison?: RAGRetrievalComparison;
2603
+ groupKey?: string;
2604
+ corpusGroupKey?: string;
2605
+ latestFixtureVariant?: string;
2606
+ fixtureVariants?: string[];
2607
+ latestRun?: RAGRetrievalComparisonRun;
2608
+ recentRuns?: RAGRetrievalComparisonRun[];
2609
+ historyPresentation?: RAGRetrievalReleaseGroupHistoryPresentation;
2610
+ snapshotHistory?: RAGEvaluationSuiteSnapshotHistory;
2611
+ snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
2612
+ error?: string;
2613
+ };
2614
+ export type RAGNativeBackendComparisonBenchmarkResponse = RAGAdaptiveNativePlannerBenchmarkResponse;
2615
+ export type RAGAdaptiveNativePlannerBenchmarkSnapshotResponse = {
2616
+ ok: boolean;
2617
+ suite?: RAGEvaluationSuite;
2618
+ snapshot?: RAGEvaluationSuiteSnapshot;
2619
+ snapshotHistory?: RAGEvaluationSuiteSnapshotHistory;
2620
+ snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
2621
+ error?: string;
2622
+ };
2623
+ export type RAGNativeBackendComparisonBenchmarkSnapshotResponse = RAGAdaptiveNativePlannerBenchmarkSnapshotResponse;
2624
+ export type RAGRetrievalReleaseHistoryRunPresentation = {
2625
+ runId: string;
2626
+ label: string;
2627
+ summary: string;
2628
+ rows: RAGLabelValueRow[];
2629
+ };
2630
+ export type RAGRetrievalReleaseGroupHistoryPresentation = {
2631
+ summary: string;
2632
+ rows: RAGLabelValueRow[];
2633
+ recentRuns: RAGRetrievalReleaseHistoryRunPresentation[];
2634
+ };
2574
2635
  export type RAGAnswerGroundingHistoryPresentation = {
2575
2636
  summary: string;
2576
2637
  rows: RAGLabelValueRow[];
@@ -2686,6 +2747,10 @@ export type RAGRetrievalTraceComparisonSummary = {
2686
2747
  multiVectorVectorHitCases: number;
2687
2748
  multiVectorLexicalHitCases: number;
2688
2749
  multiVectorCollapsedCases: number;
2750
+ officeEvidenceReconcileCases: number;
2751
+ pdfEvidenceReconcileCases: number;
2752
+ runtimeCandidateBudgetExhaustedCases: number;
2753
+ runtimeUnderfilledTopKCases: number;
2689
2754
  averageFinalCount: number;
2690
2755
  averageVectorCount: number;
2691
2756
  averageLexicalCount: number;
@@ -2891,6 +2956,10 @@ export type RAGRetrievalTraceComparisonSummaryDiff = {
2891
2956
  multiVectorVectorHitCasesDelta: number;
2892
2957
  multiVectorLexicalHitCasesDelta: number;
2893
2958
  multiVectorCollapsedCasesDelta: number;
2959
+ officeEvidenceReconcileCasesDelta: number;
2960
+ pdfEvidenceReconcileCasesDelta: number;
2961
+ runtimeCandidateBudgetExhaustedCasesDelta: number;
2962
+ runtimeUnderfilledTopKCasesDelta: number;
2894
2963
  modeDelta: RAGTraceSummaryListDelta<RAGHybridRetrievalMode>;
2895
2964
  sourceBalanceStrategyDelta: RAGTraceSummaryListDelta<RAGSourceBalanceStrategy>;
2896
2965
  stageCountsDelta: Partial<Record<RAGRetrievalTraceStage, RAGTraceSummaryStageCountsDelta>>;
@@ -2937,6 +3006,9 @@ export type RAGRetrievalComparisonSummary = {
2937
3006
  bestByMultivectorCollapsedCases?: string;
2938
3007
  bestByMultivectorLexicalHitCases?: string;
2939
3008
  bestByMultivectorVectorHitCases?: string;
3009
+ bestByEvidenceReconcileCases?: string;
3010
+ bestByLowestRuntimeCandidateBudgetExhaustedCases?: string;
3011
+ bestByLowestRuntimeUnderfilledTopKCases?: string;
2940
3012
  };
2941
3013
  export type RAGRetrievalComparison = {
2942
3014
  suiteId: string;
@@ -2954,6 +3026,7 @@ export type RAGRetrievalComparisonCandidateInput = {
2954
3026
  };
2955
3027
  export type RAGRetrievalComparisonRequest = RAGEvaluationInput & {
2956
3028
  retrievals: RAGRetrievalComparisonCandidateInput[];
3029
+ suiteId?: string;
2957
3030
  label?: string;
2958
3031
  persistRun?: boolean;
2959
3032
  baselineRetrievalId?: string;
@@ -2990,6 +3063,9 @@ export type RAGRetrievalComparisonDecisionDelta = {
2990
3063
  multiVectorCollapsedCasesDelta?: number;
2991
3064
  multiVectorLexicalHitCasesDelta?: number;
2992
3065
  multiVectorVectorHitCasesDelta?: number;
3066
+ evidenceReconcileCasesDelta?: number;
3067
+ runtimeCandidateBudgetExhaustedCasesDelta?: number;
3068
+ runtimeUnderfilledTopKCasesDelta?: number;
2993
3069
  };
2994
3070
  export type RAGRetrievalBaselineGatePolicy = {
2995
3071
  minPassingRateDelta?: number;
@@ -2998,6 +3074,9 @@ export type RAGRetrievalBaselineGatePolicy = {
2998
3074
  minMultiVectorCollapsedCasesDelta?: number;
2999
3075
  minMultiVectorLexicalHitCasesDelta?: number;
3000
3076
  minMultiVectorVectorHitCasesDelta?: number;
3077
+ minEvidenceReconcileCasesDelta?: number;
3078
+ maxRuntimeCandidateBudgetExhaustedCasesDelta?: number;
3079
+ maxRuntimeUnderfilledTopKCasesDelta?: number;
3001
3080
  severity?: 'warn' | 'fail';
3002
3081
  };
3003
3082
  export type RAGRetrievalComparisonGateResult = {
@@ -3023,6 +3102,9 @@ export type RAGRetrievalComparisonDecisionSummary = {
3023
3102
  winnerByMultivectorCollapsedCases?: string;
3024
3103
  winnerByMultivectorLexicalHitCases?: string;
3025
3104
  winnerByMultivectorVectorHitCases?: string;
3105
+ winnerByEvidenceReconcileCases?: string;
3106
+ winnerByLowestRuntimeCandidateBudgetExhaustedCases?: string;
3107
+ winnerByLowestRuntimeUnderfilledTopKCases?: string;
3026
3108
  baseline?: {
3027
3109
  retrievalId: string;
3028
3110
  label: string;
@@ -3032,6 +3114,9 @@ export type RAGRetrievalComparisonDecisionSummary = {
3032
3114
  multiVectorCollapsedCases?: number;
3033
3115
  multiVectorLexicalHitCases?: number;
3034
3116
  multiVectorVectorHitCases?: number;
3117
+ evidenceReconcileCases?: number;
3118
+ runtimeCandidateBudgetExhaustedCases?: number;
3119
+ runtimeUnderfilledTopKCases?: number;
3035
3120
  };
3036
3121
  candidate?: {
3037
3122
  retrievalId: string;
@@ -3042,6 +3127,9 @@ export type RAGRetrievalComparisonDecisionSummary = {
3042
3127
  multiVectorCollapsedCases?: number;
3043
3128
  multiVectorLexicalHitCases?: number;
3044
3129
  multiVectorVectorHitCases?: number;
3130
+ evidenceReconcileCases?: number;
3131
+ runtimeCandidateBudgetExhaustedCases?: number;
3132
+ runtimeUnderfilledTopKCases?: number;
3045
3133
  };
3046
3134
  delta?: RAGRetrievalComparisonDecisionDelta;
3047
3135
  gate?: RAGRetrievalComparisonGateResult;
@@ -3422,7 +3510,7 @@ export type RAGRetrievalIncidentRemediationBulkExecutionResponse = {
3422
3510
  export type RAGRetrievalReleaseGroupSummary = {
3423
3511
  corpusGroupKey?: string;
3424
3512
  groupKey: string;
3425
- classification?: 'general' | 'multivector';
3513
+ classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
3426
3514
  escalationSeverity: 'none' | 'info' | 'warning' | 'critical';
3427
3515
  recommendedAction: 'promote_candidate' | 'renew_approval' | 'await_approval' | 'investigate_regression' | 'monitor';
3428
3516
  recommendedActionReasons: string[];
@@ -3550,7 +3638,7 @@ export type RAGRetrievalReleaseLaneAuditSummary = {
3550
3638
  export type RAGRetrievalReleaseLaneRecommendationSummary = {
3551
3639
  corpusGroupKey?: string;
3552
3640
  groupKey: string;
3553
- classification?: 'general' | 'multivector';
3641
+ classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
3554
3642
  targetRolloutLabel: Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>;
3555
3643
  recommendedAction: 'promote_candidate' | 'renew_approval' | 'await_approval' | 'investigate_regression' | 'monitor';
3556
3644
  recommendedActionReasons: string[];
@@ -3590,7 +3678,7 @@ export type RAGRetrievalReleaseLaneHandoffSummary = {
3590
3678
  };
3591
3679
  export type RAGRetrievalLanePromotionStateSummary = {
3592
3680
  groupKey: string;
3593
- classification?: 'general' | 'multivector';
3681
+ classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
3594
3682
  targetRolloutLabel: Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>;
3595
3683
  baselineRetrievalId?: string;
3596
3684
  candidateRetrievalId?: string;
@@ -3624,7 +3712,7 @@ export type RAGRetrievalReleaseIncidentRecord = {
3624
3712
  acknowledgedBy?: string;
3625
3713
  acknowledgementNotes?: string;
3626
3714
  notes?: string;
3627
- classification?: 'general' | 'multivector';
3715
+ classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
3628
3716
  };
3629
3717
  export type RAGRetrievalLaneHandoffIncidentRecord = Omit<RAGRetrievalReleaseIncidentRecord, 'kind'> & {
3630
3718
  corpusGroupKey?: string;
@@ -3805,10 +3893,16 @@ export type RAGRetrievalIncidentRemediationStatusResponse = {
3805
3893
  export type RAGRetrievalIncidentClassificationSummary = {
3806
3894
  totalGeneralCount: number;
3807
3895
  totalMultiVectorCount: number;
3896
+ totalRuntimeCount: number;
3897
+ totalEvidenceCount: number;
3808
3898
  openGeneralCount: number;
3809
3899
  openMultiVectorCount: number;
3900
+ openRuntimeCount: number;
3901
+ openEvidenceCount: number;
3810
3902
  resolvedGeneralCount: number;
3811
3903
  resolvedMultiVectorCount: number;
3904
+ resolvedRuntimeCount: number;
3905
+ resolvedEvidenceCount: number;
3812
3906
  };
3813
3907
  export type RAGRetrievalReleaseEvent = {
3814
3908
  kind: 'incident_opened' | 'incident_resolved';
@@ -3913,6 +4007,9 @@ export type RAGRetrievalReleaseGroupHistoryResponse = {
3913
4007
  baselines?: RAGRetrievalBaselineRecord[];
3914
4008
  runs?: RAGRetrievalComparisonRun[];
3915
4009
  timeline?: RAGRetrievalReleaseTimelineSummary;
4010
+ presentation?: RAGRetrievalReleaseGroupHistoryPresentation;
4011
+ adaptiveNativePlannerBenchmark?: RAGAdaptiveNativePlannerBenchmarkRuntime;
4012
+ nativeBackendComparisonBenchmark?: RAGNativeBackendComparisonBenchmarkRuntime;
3916
4013
  error?: string;
3917
4014
  };
3918
4015
  export type RAGRetrievalPromotionCandidateListResponse = {
@@ -3936,6 +4033,9 @@ export type RAGRetrievalComparisonLatestSummary = {
3936
4033
  bestByMultivectorCollapsedCases?: string;
3937
4034
  bestByMultivectorLexicalHitCases?: string;
3938
4035
  bestByMultivectorVectorHitCases?: string;
4036
+ bestByEvidenceReconcileCases?: string;
4037
+ bestByLowestRuntimeCandidateBudgetExhaustedCases?: string;
4038
+ bestByLowestRuntimeUnderfilledTopKCases?: string;
3939
4039
  decisionSummary?: RAGRetrievalComparisonDecisionSummary;
3940
4040
  releaseVerdict?: RAGRetrievalReleaseVerdict;
3941
4041
  };
@@ -3957,12 +4057,14 @@ export type RAGRetrievalComparisonAlert = {
3957
4057
  candidateRetrievalId?: string;
3958
4058
  delta?: RAGRetrievalComparisonDecisionDelta;
3959
4059
  gate?: RAGRetrievalComparisonGateResult;
3960
- classification?: 'general' | 'multivector';
4060
+ classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
3961
4061
  };
3962
4062
  export type RAGRetrievalComparisonRuntime = {
3963
4063
  configured: boolean;
3964
4064
  recentRuns?: RAGRetrievalComparisonRun[];
3965
4065
  latest?: RAGRetrievalComparisonLatestSummary;
4066
+ adaptiveNativePlannerBenchmark?: RAGAdaptiveNativePlannerBenchmarkRuntime;
4067
+ nativeBackendComparisonBenchmark?: RAGNativeBackendComparisonBenchmarkRuntime;
3966
4068
  stableWinnerByPassingRate?: RAGRetrievalComparisonWinnerTrend;
3967
4069
  alerts?: RAGRetrievalComparisonAlert[];
3968
4070
  activeBaselines?: RAGRetrievalBaselineRecord[];
@@ -4356,13 +4458,7 @@ export type AIWebSocket = {
4356
4458
  send(data: string): void;
4357
4459
  readyState: number;
4358
4460
  };
4359
- export type AIConversationStore = {
4360
- get: (id: string) => Promise<AIConversation | undefined>;
4361
- getOrCreate: (id: string) => Promise<AIConversation>;
4362
- set: (id: string, conversation: AIConversation) => Promise<void>;
4363
- list: () => Promise<AIConversationSummary[]>;
4364
- remove: (id: string) => Promise<void>;
4365
- };
4461
+ export type AIConversationStore = SessionStore<AIConversation, AIConversationSummary>;
4366
4462
  export type AIHTMXRenderConfig = {
4367
4463
  messageStart?: (input: {
4368
4464
  conversationId: string;
@@ -4428,6 +4524,10 @@ export type RAGHTMXWorkflowRenderConfig = {
4428
4524
  cases: RAGEvaluationCaseResult[];
4429
4525
  summary: RAGEvaluationSummary;
4430
4526
  }) => string;
4527
+ adaptiveNativePlannerBenchmark?: (input: RAGAdaptiveNativePlannerBenchmarkResponse) => string;
4528
+ nativeBackendComparisonBenchmark?: (input: RAGNativeBackendComparisonBenchmarkResponse) => string;
4529
+ adaptiveNativePlannerBenchmarkSnapshot?: (input: RAGAdaptiveNativePlannerBenchmarkSnapshotResponse) => string;
4530
+ nativeBackendComparisonBenchmarkSnapshot?: (input: RAGNativeBackendComparisonBenchmarkSnapshotResponse) => string;
4431
4531
  mutationResult?: (input: RAGMutationResponse) => string;
4432
4532
  emptyState?: (kind: 'documents' | 'searchResults' | 'chunkPreview' | 'status' | 'evaluation') => string;
4433
4533
  error?: (message: string) => string;
@@ -4468,6 +4568,7 @@ export type RAGChatPluginConfig = AIChatPluginConfig & {
4468
4568
  ragStore?: RAGVectorStore;
4469
4569
  collection?: RAGCollection;
4470
4570
  jobStateStore?: RAGJobStateStore;
4571
+ evaluationSuiteSnapshotHistoryStore?: RAGEvaluationSuiteSnapshotHistoryStore;
4471
4572
  authorizeRAGAction?: RAGAuthorizationProvider;
4472
4573
  resolveRAGAccessScope?: RAGAccessScopeProvider;
4473
4574
  jobHistoryRetention?: RAGJobHistoryRetention;
@@ -4493,6 +4594,7 @@ export type RAGChatPluginConfig = AIChatPluginConfig & {
4493
4594
  retrievalReleasePoliciesByRolloutLabel?: Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalReleasePolicy>>;
4494
4595
  retrievalReleasePoliciesByGroupAndRolloutLabel?: Record<string, Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalReleasePolicy>>>;
4495
4596
  retrievalBaselineGatePoliciesByRolloutLabel?: Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalBaselineGatePolicy>>;
4597
+ retrievalBaselineGatePoliciesByGroup?: Record<string, RAGRetrievalBaselineGatePolicy>;
4496
4598
  retrievalBaselineGatePoliciesByGroupAndRolloutLabel?: Record<string, Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalBaselineGatePolicy>>>;
4497
4599
  onRetrievalReleaseEvent?: (event: RAGRetrievalReleaseEvent) => void | Promise<void>;
4498
4600
  extractors?: RAGFileExtractor[];
@@ -14,5 +14,6 @@ export * from './tool';
14
14
  export * from './typeGuards';
15
15
  export * from './jsonLd';
16
16
  export * from './metadata';
17
+ export * from './session';
17
18
  export * from './sitemap';
18
19
  export * from './websocket';
@@ -0,0 +1,16 @@
1
+ export type SessionStore<TSession extends {
2
+ id: string;
3
+ createdAt: number;
4
+ }, TSummary extends {
5
+ id: string;
6
+ createdAt: number;
7
+ } = {
8
+ id: string;
9
+ createdAt: number;
10
+ }> = {
11
+ get: (id: string) => Promise<TSession | undefined>;
12
+ getOrCreate: (id: string) => Promise<TSession>;
13
+ set: (id: string, value: TSession) => Promise<void>;
14
+ list: () => Promise<TSummary[]>;
15
+ remove: (id: string) => Promise<void>;
16
+ };