atmx-web 0.42.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.
@@ -0,0 +1,49 @@
1
+ export interface AtmxContractConfig {
2
+ contractUrl: string;
3
+ baseUrl: string;
4
+ }
5
+
6
+ export interface AtmxConfig {
7
+ contracts: Record<string, AtmxContractConfig>;
8
+ debug?: boolean; // Enable verbose logging
9
+ }
10
+
11
+ export enum EventType {
12
+ Complete = 0,
13
+ NetworkSuccess = 1,
14
+ CacheHit = 2,
15
+ CacheHitAndFetching = 3,
16
+ Error = 4,
17
+ }
18
+
19
+ export interface AxiomError {
20
+ stage: string;
21
+ category: string;
22
+ code: string | Record<string, any>;
23
+ message: string;
24
+ retryable: boolean;
25
+ details?: string;
26
+ }
27
+
28
+ export interface AxiomResponse {
29
+ eventType: EventType;
30
+ data?: any;
31
+ error?: AxiomError;
32
+ isFetching?: boolean;
33
+ isStreamChunk?: boolean;
34
+ }
35
+
36
+ export interface InitResult {
37
+ ok: boolean;
38
+ error?: AxiomError;
39
+ contracts: Record<
40
+ string,
41
+ { loaded: boolean; endpointCount: number; error?: string }
42
+ >;
43
+ initDurationMs: number;
44
+ }
45
+
46
+ export interface ContractLoadedEvent {
47
+ namespace: string;
48
+ endpointCount: number;
49
+ }