@observa/sdk 2.2.1 → 2.3.1

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 (69) hide show
  1. package/README.md +12 -0
  2. package/dist/apis/ingestApi.d.ts +12 -1
  3. package/dist/apis/ingestApi.d.ts.map +1 -1
  4. package/dist/apis/ingestApi.js +136 -3
  5. package/dist/apis/ingestApi.js.map +1 -1
  6. package/dist/domain/ingest.d.ts +15 -1
  7. package/dist/domain/ingest.d.ts.map +1 -1
  8. package/dist/index.d.ts +494 -20
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +568 -18
  11. package/dist/index.js.map +1 -1
  12. package/dist/sdk.d.ts +2 -1
  13. package/dist/sdk.d.ts.map +1 -1
  14. package/dist/sdk.js +1 -1
  15. package/dist/sdk.js.map +1 -1
  16. package/dist/src/apis/ingestApi.d.ts +22 -0
  17. package/dist/src/apis/ingestApi.js +167 -0
  18. package/dist/src/apis/ingestApi.js.map +1 -0
  19. package/dist/src/apis/uptimeApi.d.ts +11 -0
  20. package/dist/src/apis/uptimeApi.js +39 -0
  21. package/dist/src/apis/uptimeApi.js.map +1 -0
  22. package/dist/src/domain/ingest.d.ts +47 -0
  23. package/dist/src/domain/ingest.js +2 -0
  24. package/dist/src/domain/ingest.js.map +1 -0
  25. package/dist/src/domain/uptime.d.ts +23 -0
  26. package/dist/src/domain/uptime.js +2 -0
  27. package/dist/src/domain/uptime.js.map +1 -0
  28. package/dist/src/http/errors.d.ts +33 -0
  29. package/dist/src/http/errors.js +54 -0
  30. package/dist/src/http/errors.js.map +1 -0
  31. package/dist/src/http/httpClient.d.ts +45 -0
  32. package/dist/src/http/httpClient.js +165 -0
  33. package/dist/src/http/httpClient.js.map +1 -0
  34. package/dist/src/index.d.ts +12 -0
  35. package/dist/src/index.js +7 -0
  36. package/dist/src/index.js.map +1 -0
  37. package/dist/src/sdk.d.ts +23 -0
  38. package/dist/src/sdk.js +40 -0
  39. package/dist/src/sdk.js.map +1 -0
  40. package/dist/src/utils/processContext.d.ts +34 -0
  41. package/dist/src/utils/processContext.js +47 -0
  42. package/dist/src/utils/processContext.js.map +1 -0
  43. package/dist/src/utils/validate.d.ts +2 -0
  44. package/dist/src/utils/validate.js +12 -0
  45. package/dist/src/utils/validate.js.map +1 -0
  46. package/dist/tests/httpClient.test.d.ts +1 -0
  47. package/dist/tests/httpClient.test.js +47 -0
  48. package/dist/tests/httpClient.test.js.map +1 -0
  49. package/dist/tests/ingestApi.test.d.ts +1 -0
  50. package/dist/tests/ingestApi.test.js +65 -0
  51. package/dist/tests/ingestApi.test.js.map +1 -0
  52. package/dist/tests/observaSdk.integration.test.d.ts +1 -0
  53. package/dist/tests/observaSdk.integration.test.js +51 -0
  54. package/dist/tests/observaSdk.integration.test.js.map +1 -0
  55. package/dist/tests/sdk.test.d.ts +1 -0
  56. package/dist/tests/sdk.test.js +104 -0
  57. package/dist/tests/sdk.test.js.map +1 -0
  58. package/dist/tsconfig.build.tsbuildinfo +1 -0
  59. package/package.json +11 -3
  60. package/src/apis/ingestApi.ts +185 -0
  61. package/src/apis/uptimeApi.ts +58 -0
  62. package/src/domain/ingest.ts +89 -0
  63. package/src/domain/uptime.ts +86 -0
  64. package/src/http/errors.ts +88 -0
  65. package/src/http/httpClient.ts +277 -0
  66. package/src/index.ts +68 -0
  67. package/src/sdk.ts +103 -0
  68. package/src/utils/processContext.ts +84 -0
  69. package/src/utils/validate.ts +19 -0
package/dist/index.d.ts CHANGED
@@ -1,36 +1,510 @@
1
+ type ProcessContextStatic = {
2
+ versions?: NodeJS.ProcessVersions;
3
+ node?: string;
4
+ platform?: NodeJS.Platform;
5
+ arch?: string;
6
+ releaseName?: string;
7
+ };
8
+ type ProcessContextDynamic = {
9
+ pid?: number;
10
+ uptimeSeconds?: number;
11
+ memory?: NodeJS.MemoryUsage;
12
+ };
13
+ type ProcessContext = ProcessContextStatic & ProcessContextDynamic;
14
+ type ProcessContextOptions = {
15
+ includeStatic?: boolean;
16
+ includeDynamic?: boolean;
17
+ includeVersions?: boolean;
18
+ includeRuntime?: boolean;
19
+ includePid?: boolean;
20
+ includeUptime?: boolean;
21
+ includeMemory?: boolean;
22
+ };
23
+ type ProcessContextStaticOptions = {
24
+ includeVersions?: boolean;
25
+ includeRuntime?: boolean;
26
+ };
27
+ type ProcessContextDynamicOptions = {
28
+ includePid?: boolean;
29
+ includeUptime?: boolean;
30
+ includeMemory?: boolean;
31
+ };
32
+ declare function getProcessContext(options?: ProcessContextOptions): ProcessContext;
33
+ declare function getProcessContextStatic(options?: ProcessContextStaticOptions): ProcessContextStatic;
34
+ declare function getProcessContextDynamic(options?: ProcessContextDynamicOptions): ProcessContextDynamic;
35
+
1
36
  /**
2
- * Main SDK.
37
+ * Severity levels for events.
3
38
  */
4
- export { ObservaSDK } from './sdk';
39
+ type IngestLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
40
+ type StacktraceFrame = {
41
+ filename?: string;
42
+ function?: string;
43
+ lineno?: number;
44
+ colno?: number;
45
+ in_app?: boolean;
46
+ };
47
+ type Stacktrace = {
48
+ frames: StacktraceFrame[];
49
+ };
50
+ type IngestException = {
51
+ type: string;
52
+ value: string;
53
+ stacktrace?: Stacktrace;
54
+ };
55
+ type RequestContext = {
56
+ requestId?: string;
57
+ userId?: string;
58
+ [key: string]: unknown;
59
+ };
60
+ type IngestEventContext = {
61
+ system?: ProcessContextDynamic;
62
+ runtime?: ProcessContextStatic;
63
+ request?: RequestContext;
64
+ };
5
65
  /**
6
- * SDK options.
66
+ * Ingestion event.
7
67
  */
8
- export type { ObservaSDKOptions } from './sdk';
68
+ type IngestEvent = {
69
+ /**
70
+ * Unique event identifier.
71
+ */
72
+ event_id?: string;
73
+ /**
74
+ * Event ISO timestamp.
75
+ */
76
+ timestamp?: string;
77
+ schema_version?: number;
78
+ /**
79
+ * Severity level.
80
+ */
81
+ level?: IngestLevel;
82
+ /**
83
+ * Main message.
84
+ */
85
+ message?: string;
86
+ exception?: IngestException;
87
+ context?: IngestEventContext;
88
+ tags?: Record<string, string>;
89
+ extra?: Record<string, unknown>;
90
+ };
9
91
  /**
10
- * Base HTTP client.
92
+ * Payload for sending an event to the backend.
11
93
  */
12
- export { HttpClient } from './http/httpClient';
94
+ type IngestRequest = {
95
+ /**
96
+ * Project DSN. Uses the SDK default when omitted.
97
+ */
98
+ dsnKey?: string;
99
+ /**
100
+ * Event to record.
101
+ */
102
+ event: IngestEvent;
103
+ idempotencyKey?: string;
104
+ sdkVersion?: string;
105
+ };
13
106
  /**
14
- * HTTP types.
107
+ * Response after sending an event.
15
108
  */
16
- export type { HttpClientOptions, RequestOptions, RetryPolicy, AuthMode } from './http/httpClient';
109
+ type IngestResponse = {
110
+ /**
111
+ * Assigned event identifier.
112
+ */
113
+ event_id: string;
114
+ };
115
+
17
116
  /**
18
- * Typed SDK errors.
117
+ * Authentication mode per request.
19
118
  */
20
- export { SdkError, ValidationError, AuthError, ForbiddenError, NotFoundError, ConflictError, RateLimitError, ServerError, NetworkError, TimeoutError, } from './http/errors';
119
+ type AuthMode = 'apiKey' | 'none';
21
120
  /**
22
- * Domain APIs.
121
+ * Supported HTTP methods.
23
122
  */
24
- export { UptimeApi } from './apis/uptimeApi';
25
- export { IngestApi } from './apis/ingestApi';
123
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
26
124
  /**
27
- * Uptime types.
125
+ * Serializable query parameters.
28
126
  */
29
- export type { UptimeEvent, UptimeStatus, UptimeHeartbeatInput, UptimeSummary } from './domain/uptime';
127
+ type QueryParams = Record<string, string | number | boolean | undefined>;
30
128
  /**
31
- * Ingestion types.
129
+ * Retry policy for transient errors.
32
130
  */
33
- export type { IngestEvent, IngestLevel, IngestRequest, IngestResponse, IngestException, Stacktrace, StacktraceFrame } from './domain/ingest';
34
- export type { ProcessContext, ProcessContextDynamic, ProcessContextDynamicOptions, ProcessContextOptions, ProcessContextStatic, ProcessContextStaticOptions, } from './utils/processContext';
35
- export { getProcessContext, getProcessContextDynamic, getProcessContextStatic } from './utils/processContext';
36
- //# sourceMappingURL=index.d.ts.map
131
+ type RetryPolicy = {
132
+ /**
133
+ * Number of additional retries.
134
+ */
135
+ retries: number;
136
+ /**
137
+ * Computes the delay between retries.
138
+ */
139
+ retryDelayMs?: (attempt: number, response?: Response, error?: unknown) => number;
140
+ /**
141
+ * Determines whether a response or error should be retried.
142
+ */
143
+ retryOn?: (response?: Response, error?: unknown) => boolean;
144
+ };
145
+ /**
146
+ * Base HTTP client configuration.
147
+ */
148
+ type HttpClientOptions = {
149
+ /**
150
+ * Backend base URL.
151
+ */
152
+ baseUrl: string;
153
+ /**
154
+ * API key used for SDK authentication.
155
+ */
156
+ apiKey?: string;
157
+ /**
158
+ * Request timeout in milliseconds.
159
+ */
160
+ timeoutMs?: number;
161
+ /**
162
+ * Global headers.
163
+ */
164
+ headers?: Record<string, string>;
165
+ /**
166
+ * Retry policy.
167
+ */
168
+ retry?: RetryPolicy;
169
+ };
170
+ /**
171
+ * Per-request options.
172
+ */
173
+ type RequestOptions = {
174
+ method: HttpMethod;
175
+ path: string;
176
+ query?: QueryParams;
177
+ body?: unknown;
178
+ headers?: Record<string, string>;
179
+ /**
180
+ * Defines whether the request requires an apiKey or is public.
181
+ */
182
+ auth?: AuthMode;
183
+ };
184
+ /**
185
+ * Base HTTP client for the SDK.
186
+ */
187
+ declare class HttpClient {
188
+ private apiKey?;
189
+ private readonly baseUrl;
190
+ private readonly timeoutMs;
191
+ private readonly headers;
192
+ private readonly retry?;
193
+ private healthCheckPromise?;
194
+ /**
195
+ * Creates an HTTP client with baseUrl and optional apiKey.
196
+ */
197
+ constructor(options: HttpClientOptions);
198
+ /**
199
+ * Updates the API key at runtime.
200
+ */
201
+ setApiKey(apiKey?: string): void;
202
+ startHealthCheck(healthCheck: () => Promise<unknown>): void;
203
+ /**
204
+ * GET request.
205
+ */
206
+ get<T>(path: string, options?: Omit<RequestOptions, 'method' | 'path'>): Promise<T>;
207
+ /**
208
+ * POST request.
209
+ */
210
+ post<T>(path: string, body?: unknown, options?: Omit<RequestOptions, 'method' | 'path' | 'body'>): Promise<T>;
211
+ /**
212
+ * PUT request.
213
+ */
214
+ put<T>(path: string, body?: unknown, options?: Omit<RequestOptions, 'method' | 'path' | 'body'>): Promise<T>;
215
+ /**
216
+ * PATCH request.
217
+ */
218
+ patch<T>(path: string, body?: unknown, options?: Omit<RequestOptions, 'method' | 'path' | 'body'>): Promise<T>;
219
+ /**
220
+ * DELETE request.
221
+ */
222
+ delete<T>(path: string, options?: Omit<RequestOptions, 'method' | 'path'>): Promise<T>;
223
+ /**
224
+ * Executes a request with retry logic.
225
+ */
226
+ request<T>(options: RequestOptions): Promise<T>;
227
+ /**
228
+ * Executes a request without retry and returns response + data.
229
+ */
230
+ private execute;
231
+ /**
232
+ * Builds the final URL with query params.
233
+ */
234
+ private buildUrl;
235
+ /**
236
+ * Parses the body as JSON when possible.
237
+ */
238
+ private readBody;
239
+ private parseRetryAfter;
240
+ /**
241
+ * Simple delay for retries.
242
+ */
243
+ private delay;
244
+ }
245
+
246
+ type IngestNormalizationOptions = {
247
+ schemaVersion?: number;
248
+ includeContext?: boolean;
249
+ includeSystemContext?: boolean;
250
+ includeRuntimeContext?: boolean;
251
+ maxEventBytes?: number;
252
+ maxFrames?: number;
253
+ maxMessageLength?: number;
254
+ maxExceptionValueLength?: number;
255
+ };
256
+ /**
257
+ * Event ingestion API.
258
+ */
259
+ declare class IngestApi {
260
+ private readonly http;
261
+ private readonly defaultDsnKey?;
262
+ private readonly normalization?;
263
+ /**
264
+ * Creates the ingestion client with an optional default DSN.
265
+ */
266
+ constructor(http: HttpClient, defaultDsnKey?: string | undefined, normalization?: IngestNormalizationOptions | undefined);
267
+ /**
268
+ * Sends an event to the ingestion backend.
269
+ */
270
+ event(input: IngestRequest): Promise<IngestResponse>;
271
+ health(dsnKey?: string): Promise<{
272
+ ok: boolean;
273
+ }>;
274
+ }
275
+
276
+ /**
277
+ * Possible uptime statuses.
278
+ */
279
+ type UptimeStatus = 'up' | 'down' | 'degraded';
280
+ /**
281
+ * Recorded uptime event.
282
+ */
283
+ type UptimeEvent = {
284
+ /**
285
+ * Event identifier.
286
+ */
287
+ id: string;
288
+ /**
289
+ * Project the event belongs to.
290
+ */
291
+ projectId: string;
292
+ /**
293
+ * Uptime status.
294
+ */
295
+ status: UptimeStatus;
296
+ /**
297
+ * Optional message for the event.
298
+ */
299
+ message?: string;
300
+ /**
301
+ * Response time in milliseconds.
302
+ */
303
+ responseTimeMs?: number;
304
+ /**
305
+ * ISO timestamp of the check.
306
+ */
307
+ checkedAt?: string;
308
+ /**
309
+ * ISO timestamp of backend creation.
310
+ */
311
+ createdAt?: string;
312
+ };
313
+ /**
314
+ * Payload for sending an uptime heartbeat.
315
+ */
316
+ type UptimeHeartbeatInput = {
317
+ /**
318
+ * Project DSN. Uses the SDK default when omitted.
319
+ */
320
+ dsnKey?: string;
321
+ /**
322
+ * Reported status.
323
+ */
324
+ status: UptimeStatus;
325
+ /**
326
+ * Response time in milliseconds.
327
+ */
328
+ responseTimeMs?: number;
329
+ /**
330
+ * ISO timestamp of the check.
331
+ */
332
+ checkedAt?: string;
333
+ /**
334
+ * Optional message.
335
+ */
336
+ message?: string;
337
+ };
338
+ /**
339
+ * Daily uptime summary.
340
+ */
341
+ type UptimeSummary = {
342
+ /**
343
+ * ISO date of the summary.
344
+ */
345
+ date: string;
346
+ /**
347
+ * Hours without data.
348
+ */
349
+ missingHours?: number;
350
+ /**
351
+ * Accumulated delay minutes.
352
+ */
353
+ delayMinutes?: number;
354
+ /**
355
+ * Number of delayed events.
356
+ */
357
+ delayedCount?: number;
358
+ };
359
+
360
+ /**
361
+ * Uptime API for heartbeats and public reads.
362
+ */
363
+ declare class UptimeApi {
364
+ private readonly http;
365
+ private readonly defaultDsnKey?;
366
+ /**
367
+ * Creates the uptime client with an optional default DSN.
368
+ */
369
+ constructor(http: HttpClient, defaultDsnKey?: string | undefined);
370
+ /**
371
+ * Records an uptime heartbeat.
372
+ */
373
+ recordHeartbeat(input: UptimeHeartbeatInput): Promise<UptimeEvent>;
374
+ /**
375
+ * Lists a project's daily uptime history.
376
+ */
377
+ history(projectId: string, date: string): Promise<UptimeEvent[]>;
378
+ /**
379
+ * Gets the latest uptime event for a project.
380
+ */
381
+ latest(projectId: string): Promise<UptimeEvent | null>;
382
+ /**
383
+ * Summarizes daily uptime.
384
+ */
385
+ summary(projectId: string, days?: number, delayThresholdMinutes?: number): Promise<UptimeSummary[]>;
386
+ }
387
+
388
+ /**
389
+ * SDK configuration options.
390
+ */
391
+ type ObservaSDKOptions = {
392
+ /**
393
+ * Organization API key used to authenticate SDK requests.
394
+ */
395
+ apiKey: string;
396
+ /**
397
+ * Project DSN used to identify the destination of events and heartbeats.
398
+ */
399
+ dsnKey: string;
400
+ baseUrl?: string;
401
+ /**
402
+ * HTTP request timeout in milliseconds.
403
+ */
404
+ timeoutMs?: number;
405
+ /**
406
+ * Retry policy for transient errors.
407
+ */
408
+ retry?: RetryPolicy;
409
+ /**
410
+ * Additional headers sent with every request.
411
+ */
412
+ headers?: Record<string, string>;
413
+ ingest?: IngestNormalizationOptions;
414
+ };
415
+ /**
416
+ * Main SDK for error ingestion and uptime heartbeats.
417
+ */
418
+ declare class ObservaSDK {
419
+ /**
420
+ * Uptime API (heartbeats and public reads).
421
+ */
422
+ readonly uptime: UptimeApi;
423
+ /**
424
+ * Event ingestion API.
425
+ */
426
+ readonly ingest: IngestApi;
427
+ private readonly http;
428
+ /**
429
+ * Creates an SDK instance with required apiKey and dsnKey.
430
+ */
431
+ constructor(options: ObservaSDKOptions);
432
+ /**
433
+ * Updates the API key used by the SDK at runtime.
434
+ */
435
+ setApiKey(apiKey: string): void;
436
+ getProcessContext(options?: ProcessContextOptions): ProcessContext;
437
+ getProcessContextStatic(options?: ProcessContextStaticOptions): ProcessContextStatic;
438
+ getProcessContextDynamic(options?: ProcessContextDynamicOptions): ProcessContextDynamic;
439
+ }
440
+
441
+ /**
442
+ * Additional data to enrich SDK errors.
443
+ */
444
+ type ErrorDetails = {
445
+ status?: number;
446
+ code?: string;
447
+ details?: unknown;
448
+ retryAfter?: number;
449
+ };
450
+ /**
451
+ * Base SDK error.
452
+ */
453
+ declare class SdkError extends Error {
454
+ readonly status?: number;
455
+ readonly code?: string;
456
+ readonly details?: unknown;
457
+ /**
458
+ * Creates an error with optional metadata.
459
+ */
460
+ constructor(message: string, details?: ErrorDetails);
461
+ }
462
+ /**
463
+ * Input validation error.
464
+ */
465
+ declare class ValidationError extends SdkError {
466
+ }
467
+ /**
468
+ * Authentication error.
469
+ */
470
+ declare class AuthError extends SdkError {
471
+ }
472
+ /**
473
+ * Error caused by insufficient permissions.
474
+ */
475
+ declare class ForbiddenError extends SdkError {
476
+ }
477
+ /**
478
+ * Error when a resource does not exist.
479
+ */
480
+ declare class NotFoundError extends SdkError {
481
+ }
482
+ /**
483
+ * Error caused by a state conflict.
484
+ */
485
+ declare class ConflictError extends SdkError {
486
+ }
487
+ /**
488
+ * Error caused by rate limiting.
489
+ */
490
+ declare class RateLimitError extends SdkError {
491
+ readonly retryAfter?: number;
492
+ constructor(message: string, details?: ErrorDetails);
493
+ }
494
+ /**
495
+ * Server-side error.
496
+ */
497
+ declare class ServerError extends SdkError {
498
+ }
499
+ /**
500
+ * Network error.
501
+ */
502
+ declare class NetworkError extends SdkError {
503
+ }
504
+ /**
505
+ * Request timeout error.
506
+ */
507
+ declare class TimeoutError extends SdkError {
508
+ }
509
+
510
+ export { AuthError, type AuthMode, ConflictError, ForbiddenError, HttpClient, type HttpClientOptions, IngestApi, type IngestEvent, type IngestEventContext, type IngestException, type IngestLevel, type IngestNormalizationOptions, type IngestRequest, type IngestResponse, NetworkError, NotFoundError, ObservaSDK, type ObservaSDKOptions, type ProcessContext, type ProcessContextDynamic, type ProcessContextDynamicOptions, type ProcessContextOptions, type ProcessContextStatic, type ProcessContextStaticOptions, RateLimitError, type RequestContext, type RequestOptions, type RetryPolicy, SdkError, ServerError, type Stacktrace, type StacktraceFrame, TimeoutError, UptimeApi, type UptimeEvent, type UptimeHeartbeatInput, type UptimeStatus, type UptimeSummary, ValidationError, getProcessContext, getProcessContextDynamic, getProcessContextStatic };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC;;GAEG;AACH,YAAY,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C;;GAEG;AACH,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjG;;GAEG;AACH,OAAO,EACL,QAAQ,EACR,eAAe,EACf,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,eAAe,CAAA;AAEtB;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE5C;;GAEG;AACH,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACrG;;GAEG;AACH,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC5I,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC;;GAEG;AACH,YAAY,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C;;GAEG;AACH,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjG;;GAEG;AACH,OAAO,EACL,QAAQ,EACR,eAAe,EACf,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,eAAe,CAAA;AAEtB;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,YAAY,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAElE;;GAEG;AACH,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACrG;;GAEG;AACH,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,EACd,UAAU,EACV,eAAe,GAChB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA"}