@djangocfg/monitor 2.1.322 → 2.1.331

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 (79) hide show
  1. package/dist/client.cjs +945 -1136
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.d.cts +32 -46
  4. package/dist/client.d.ts +32 -46
  5. package/dist/client.mjs +945 -1147
  6. package/dist/client.mjs.map +1 -1
  7. package/dist/index.cjs +908 -1108
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +32 -46
  10. package/dist/index.d.ts +32 -46
  11. package/dist/index.mjs +901 -1112
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/server.cjs +904 -1102
  14. package/dist/server.cjs.map +1 -1
  15. package/dist/server.d.cts +32 -46
  16. package/dist/server.d.ts +32 -46
  17. package/dist/server.mjs +896 -1105
  18. package/dist/server.mjs.map +1 -1
  19. package/package.json +7 -2
  20. package/src/_api/BaseClient.ts +1 -1
  21. package/src/_api/generated/_cfg_monitor/api.ts +120 -0
  22. package/src/_api/generated/_cfg_monitor/events.ts +198 -0
  23. package/src/_api/generated/_cfg_monitor/hooks/index.ts +4 -0
  24. package/src/_api/generated/_cfg_monitor/hooks/useCfgMonitorIngestCreate.ts +24 -0
  25. package/src/_api/generated/_cfg_monitor/index.ts +29 -0
  26. package/src/_api/generated/_cfg_monitor/schemas/EventTypeEnum.ts +9 -0
  27. package/src/_api/generated/_cfg_monitor/schemas/FrontendEventIngestRequest.ts +27 -0
  28. package/src/_api/generated/_cfg_monitor/schemas/IngestBatchRequest.ts +12 -0
  29. package/src/_api/generated/_cfg_monitor/schemas/LevelEnum.ts +9 -0
  30. package/src/_api/generated/_cfg_monitor/schemas/index.ts +7 -0
  31. package/src/_api/generated/_cfg_monitor/sdk.gen.ts +5 -0
  32. package/src/_api/generated/_cfg_monitor/types.gen.ts +5 -0
  33. package/src/_api/generated/client/client.gen.ts +280 -0
  34. package/src/_api/generated/client/index.ts +25 -0
  35. package/src/_api/generated/client/types.gen.ts +217 -0
  36. package/src/_api/generated/client/utils.gen.ts +318 -0
  37. package/src/_api/generated/client.gen.ts +16 -0
  38. package/src/_api/generated/core/auth.gen.ts +41 -0
  39. package/src/_api/generated/core/bodySerializer.gen.ts +82 -0
  40. package/src/_api/generated/core/params.gen.ts +169 -0
  41. package/src/_api/generated/core/pathSerializer.gen.ts +171 -0
  42. package/src/_api/generated/core/queryKeySerializer.gen.ts +117 -0
  43. package/src/_api/generated/core/serverSentEvents.gen.ts +242 -0
  44. package/src/_api/generated/core/types.gen.ts +104 -0
  45. package/src/_api/generated/core/utils.gen.ts +140 -0
  46. package/src/_api/generated/helpers/errors.ts +70 -0
  47. package/src/_api/generated/helpers/index.ts +25 -0
  48. package/src/_api/generated/helpers/logger.ts +123 -0
  49. package/src/_api/generated/helpers/storage.ts +83 -0
  50. package/src/_api/generated/helpers/validation-events.ts +52 -0
  51. package/src/_api/generated/index.ts +22 -0
  52. package/src/_api/generated/sdk.gen.ts +55 -0
  53. package/src/_api/generated/types.gen.ts +79 -0
  54. package/src/_api/index.ts +2 -2
  55. package/src/client/capture/console.ts +2 -3
  56. package/src/client/transport/ingest.ts +21 -17
  57. package/src/server/index.ts +3 -2
  58. package/src/_api/generated/cfg_monitor/CLAUDE.md +0 -60
  59. package/src/_api/generated/cfg_monitor/_utils/fetchers/index.ts +0 -30
  60. package/src/_api/generated/cfg_monitor/_utils/fetchers/monitor.ts +0 -51
  61. package/src/_api/generated/cfg_monitor/_utils/hooks/index.ts +0 -30
  62. package/src/_api/generated/cfg_monitor/_utils/hooks/monitor.ts +0 -43
  63. package/src/_api/generated/cfg_monitor/_utils/schemas/FrontendEventIngestRequest.schema.ts +0 -34
  64. package/src/_api/generated/cfg_monitor/_utils/schemas/IngestBatchRequest.schema.ts +0 -20
  65. package/src/_api/generated/cfg_monitor/_utils/schemas/index.ts +0 -22
  66. package/src/_api/generated/cfg_monitor/api-instance.ts +0 -181
  67. package/src/_api/generated/cfg_monitor/client.ts +0 -330
  68. package/src/_api/generated/cfg_monitor/enums.ts +0 -34
  69. package/src/_api/generated/cfg_monitor/errors.ts +0 -123
  70. package/src/_api/generated/cfg_monitor/http.ts +0 -160
  71. package/src/_api/generated/cfg_monitor/index.ts +0 -317
  72. package/src/_api/generated/cfg_monitor/logger.ts +0 -261
  73. package/src/_api/generated/cfg_monitor/monitor/client.ts +0 -26
  74. package/src/_api/generated/cfg_monitor/monitor/index.ts +0 -4
  75. package/src/_api/generated/cfg_monitor/monitor/models.ts +0 -47
  76. package/src/_api/generated/cfg_monitor/retry.ts +0 -177
  77. package/src/_api/generated/cfg_monitor/schema.json +0 -181
  78. package/src/_api/generated/cfg_monitor/storage.ts +0 -163
  79. package/src/_api/generated/cfg_monitor/validation-events.ts +0 -135
package/dist/client.d.cts CHANGED
@@ -2,15 +2,15 @@ import * as react from 'react';
2
2
  import * as zustand_vanilla from 'zustand/vanilla';
3
3
 
4
4
  /**
5
- * * `JS_ERROR` - JS_ERROR
6
- * * `NETWORK_ERROR` - NETWORK_ERROR
7
- * * `ERROR` - ERROR
8
- * * `WARNING` - WARNING
9
- * * `PAGE_VIEW` - PAGE_VIEW
10
- * * `PERFORMANCE` - PERFORMANCE
11
- * * `CONSOLE` - CONSOLE
5
+ * * `JS_ERROR` - Js Error
6
+ * * `NETWORK_ERROR` - Network Error
7
+ * * `ERROR` - Error
8
+ * * `WARNING` - Warning
9
+ * * `PAGE_VIEW` - Page View
10
+ * * `PERFORMANCE` - Performance
11
+ * * `CONSOLE` - Console
12
12
  */
13
- declare enum FrontendEventIngestRequestEventType {
13
+ declare enum EventTypeEnum {
14
14
  JS_ERROR = "JS_ERROR",
15
15
  NETWORK_ERROR = "NETWORK_ERROR",
16
16
  ERROR = "ERROR",
@@ -19,51 +19,37 @@ declare enum FrontendEventIngestRequestEventType {
19
19
  PERFORMANCE = "PERFORMANCE",
20
20
  CONSOLE = "CONSOLE"
21
21
  }
22
- /**
23
- * * `error` - error
24
- * * `warning` - warning
25
- * * `info` - info
26
- * * `debug` - debug
27
- */
28
- declare enum FrontendEventIngestRequestLevel {
29
- ERROR = "error",
30
- WARNING = "warning",
31
- INFO = "info",
32
- DEBUG = "debug"
33
- }
34
-
35
22
  /**
36
23
  * Single browser event payload.
37
- *
38
- * Request model (no read-only fields).
39
24
  */
40
- interface FrontendEventIngestRequest {
41
- /** * `JS_ERROR` - JS_ERROR
42
- * `NETWORK_ERROR` - NETWORK_ERROR
43
- * `ERROR` - ERROR
44
- * `WARNING` - WARNING
45
- * `PAGE_VIEW` - PAGE_VIEW
46
- * `PERFORMANCE` - PERFORMANCE
47
- * `CONSOLE` - CONSOLE */
48
- event_type: FrontendEventIngestRequestEventType;
49
- message: string;
50
- /** * `error` - error
51
- * `warning` - warning
52
- * `info` - info
53
- * `debug` - debug */
54
- level?: FrontendEventIngestRequestLevel;
55
- stack_trace?: string;
56
- url?: string;
25
+ type FrontendEventIngestRequest = {
26
+ build_id?: string;
27
+ environment?: string;
28
+ event_type: EventTypeEnum;
29
+ extra?: unknown;
57
30
  fingerprint?: string;
58
- http_status?: number | null;
59
31
  http_method?: string;
32
+ http_status?: number | null;
60
33
  http_url?: string;
34
+ level?: LevelEnum;
35
+ message: string;
36
+ project_name?: string;
61
37
  session_id?: string;
38
+ stack_trace?: string;
39
+ url?: string;
62
40
  user_agent?: string;
63
- build_id?: string;
64
- environment?: string;
65
- extra?: Record<string, any>;
66
- project_name?: string;
41
+ };
42
+ /**
43
+ * * `error` - Error
44
+ * * `warning` - Warning
45
+ * * `info` - Info
46
+ * * `debug` - Debug
47
+ */
48
+ declare enum LevelEnum {
49
+ ERROR = "error",
50
+ WARNING = "warning",
51
+ INFO = "info",
52
+ DEBUG = "debug"
67
53
  }
68
54
 
69
55
  /**
@@ -194,4 +180,4 @@ declare const FrontendMonitor: {
194
180
  destroy(): void;
195
181
  };
196
182
 
197
- export { FrontendEventIngestRequestLevel as EventLevel, FrontendEventIngestRequestEventType as EventType, FrontendMonitor, MONITOR_VERSION, type MonitorConfig, type FrontendEventIngestRequest as MonitorEvent, MonitorProvider, type MonitorProviderProps, type WindowMonitorAPI, getSessionId, initWindowMonitor, isDevelopment, isProduction, monitorStore, monitoredFetch, useDebugMode };
183
+ export { LevelEnum as EventLevel, EventTypeEnum as EventType, FrontendMonitor, MONITOR_VERSION, type MonitorConfig, type FrontendEventIngestRequest as MonitorEvent, MonitorProvider, type MonitorProviderProps, type WindowMonitorAPI, getSessionId, initWindowMonitor, isDevelopment, isProduction, monitorStore, monitoredFetch, useDebugMode };
package/dist/client.d.ts CHANGED
@@ -2,15 +2,15 @@ import * as react from 'react';
2
2
  import * as zustand_vanilla from 'zustand/vanilla';
3
3
 
4
4
  /**
5
- * * `JS_ERROR` - JS_ERROR
6
- * * `NETWORK_ERROR` - NETWORK_ERROR
7
- * * `ERROR` - ERROR
8
- * * `WARNING` - WARNING
9
- * * `PAGE_VIEW` - PAGE_VIEW
10
- * * `PERFORMANCE` - PERFORMANCE
11
- * * `CONSOLE` - CONSOLE
5
+ * * `JS_ERROR` - Js Error
6
+ * * `NETWORK_ERROR` - Network Error
7
+ * * `ERROR` - Error
8
+ * * `WARNING` - Warning
9
+ * * `PAGE_VIEW` - Page View
10
+ * * `PERFORMANCE` - Performance
11
+ * * `CONSOLE` - Console
12
12
  */
13
- declare enum FrontendEventIngestRequestEventType {
13
+ declare enum EventTypeEnum {
14
14
  JS_ERROR = "JS_ERROR",
15
15
  NETWORK_ERROR = "NETWORK_ERROR",
16
16
  ERROR = "ERROR",
@@ -19,51 +19,37 @@ declare enum FrontendEventIngestRequestEventType {
19
19
  PERFORMANCE = "PERFORMANCE",
20
20
  CONSOLE = "CONSOLE"
21
21
  }
22
- /**
23
- * * `error` - error
24
- * * `warning` - warning
25
- * * `info` - info
26
- * * `debug` - debug
27
- */
28
- declare enum FrontendEventIngestRequestLevel {
29
- ERROR = "error",
30
- WARNING = "warning",
31
- INFO = "info",
32
- DEBUG = "debug"
33
- }
34
-
35
22
  /**
36
23
  * Single browser event payload.
37
- *
38
- * Request model (no read-only fields).
39
24
  */
40
- interface FrontendEventIngestRequest {
41
- /** * `JS_ERROR` - JS_ERROR
42
- * `NETWORK_ERROR` - NETWORK_ERROR
43
- * `ERROR` - ERROR
44
- * `WARNING` - WARNING
45
- * `PAGE_VIEW` - PAGE_VIEW
46
- * `PERFORMANCE` - PERFORMANCE
47
- * `CONSOLE` - CONSOLE */
48
- event_type: FrontendEventIngestRequestEventType;
49
- message: string;
50
- /** * `error` - error
51
- * `warning` - warning
52
- * `info` - info
53
- * `debug` - debug */
54
- level?: FrontendEventIngestRequestLevel;
55
- stack_trace?: string;
56
- url?: string;
25
+ type FrontendEventIngestRequest = {
26
+ build_id?: string;
27
+ environment?: string;
28
+ event_type: EventTypeEnum;
29
+ extra?: unknown;
57
30
  fingerprint?: string;
58
- http_status?: number | null;
59
31
  http_method?: string;
32
+ http_status?: number | null;
60
33
  http_url?: string;
34
+ level?: LevelEnum;
35
+ message: string;
36
+ project_name?: string;
61
37
  session_id?: string;
38
+ stack_trace?: string;
39
+ url?: string;
62
40
  user_agent?: string;
63
- build_id?: string;
64
- environment?: string;
65
- extra?: Record<string, any>;
66
- project_name?: string;
41
+ };
42
+ /**
43
+ * * `error` - Error
44
+ * * `warning` - Warning
45
+ * * `info` - Info
46
+ * * `debug` - Debug
47
+ */
48
+ declare enum LevelEnum {
49
+ ERROR = "error",
50
+ WARNING = "warning",
51
+ INFO = "info",
52
+ DEBUG = "debug"
67
53
  }
68
54
 
69
55
  /**
@@ -194,4 +180,4 @@ declare const FrontendMonitor: {
194
180
  destroy(): void;
195
181
  };
196
182
 
197
- export { FrontendEventIngestRequestLevel as EventLevel, FrontendEventIngestRequestEventType as EventType, FrontendMonitor, MONITOR_VERSION, type MonitorConfig, type FrontendEventIngestRequest as MonitorEvent, MonitorProvider, type MonitorProviderProps, type WindowMonitorAPI, getSessionId, initWindowMonitor, isDevelopment, isProduction, monitorStore, monitoredFetch, useDebugMode };
183
+ export { LevelEnum as EventLevel, EventTypeEnum as EventType, FrontendMonitor, MONITOR_VERSION, type MonitorConfig, type FrontendEventIngestRequest as MonitorEvent, MonitorProvider, type MonitorProviderProps, type WindowMonitorAPI, getSessionId, initWindowMonitor, isDevelopment, isProduction, monitorStore, monitoredFetch, useDebugMode };