@privateaim/telemetry-kit 0.8.16

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 (67) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +202 -0
  3. package/dist/domains/base.d.ts +8 -0
  4. package/dist/domains/base.d.ts.map +1 -0
  5. package/dist/domains/constants.d.ts +5 -0
  6. package/dist/domains/constants.d.ts.map +1 -0
  7. package/dist/domains/event/api.d.ts +12 -0
  8. package/dist/domains/event/api.d.ts.map +1 -0
  9. package/dist/domains/event/entity.d.ts +50 -0
  10. package/dist/domains/event/entity.d.ts.map +1 -0
  11. package/dist/domains/event/index.d.ts +4 -0
  12. package/dist/domains/event/index.d.ts.map +1 -0
  13. package/dist/domains/event/validator.d.ts +6 -0
  14. package/dist/domains/event/validator.d.ts.map +1 -0
  15. package/dist/domains/index.d.ts +5 -0
  16. package/dist/domains/index.d.ts.map +1 -0
  17. package/dist/domains/log/api.d.ts +10 -0
  18. package/dist/domains/log/api.d.ts.map +1 -0
  19. package/dist/domains/log/constants.d.ts +65 -0
  20. package/dist/domains/log/constants.d.ts.map +1 -0
  21. package/dist/domains/log/entity.d.ts +31 -0
  22. package/dist/domains/log/entity.d.ts.map +1 -0
  23. package/dist/domains/log/helpers.d.ts +3 -0
  24. package/dist/domains/log/helpers.d.ts.map +1 -0
  25. package/dist/domains/log/index.d.ts +6 -0
  26. package/dist/domains/log/index.d.ts.map +1 -0
  27. package/dist/domains/log/validator.d.ts +6 -0
  28. package/dist/domains/log/validator.d.ts.map +1 -0
  29. package/dist/domains/types-base.d.ts +14 -0
  30. package/dist/domains/types-base.d.ts.map +1 -0
  31. package/dist/domains/types.d.ts +12 -0
  32. package/dist/domains/types.d.ts.map +1 -0
  33. package/dist/http/api-client/index.d.ts +2 -0
  34. package/dist/http/api-client/index.d.ts.map +1 -0
  35. package/dist/http/api-client/module.d.ts +9 -0
  36. package/dist/http/api-client/module.d.ts.map +1 -0
  37. package/dist/http/index.d.ts +2 -0
  38. package/dist/http/index.d.ts.map +1 -0
  39. package/dist/index.cjs +414 -0
  40. package/dist/index.cjs.map +1 -0
  41. package/dist/index.d.ts +3 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/index.mjs +402 -0
  44. package/dist/index.mjs.map +1 -0
  45. package/package.json +51 -0
  46. package/rollup.config.mjs +19 -0
  47. package/src/domains/base.ts +30 -0
  48. package/src/domains/constants.ts +11 -0
  49. package/src/domains/event/api.ts +43 -0
  50. package/src/domains/event/entity.ts +85 -0
  51. package/src/domains/event/index.ts +10 -0
  52. package/src/domains/event/validator.ts +148 -0
  53. package/src/domains/index.ts +12 -0
  54. package/src/domains/log/api.ts +29 -0
  55. package/src/domains/log/constants.ts +84 -0
  56. package/src/domains/log/entity.ts +44 -0
  57. package/src/domains/log/helpers.ts +17 -0
  58. package/src/domains/log/index.ts +12 -0
  59. package/src/domains/log/validator.ts +79 -0
  60. package/src/domains/types-base.ts +22 -0
  61. package/src/domains/types.ts +19 -0
  62. package/src/http/api-client/index.ts +8 -0
  63. package/src/http/api-client/module.ts +39 -0
  64. package/src/http/index.ts +8 -0
  65. package/src/index.ts +9 -0
  66. package/tsconfig.build.json +11 -0
  67. package/tsconfig.json +8 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,414 @@
1
+ 'use strict';
2
+
3
+ var hapic = require('hapic');
4
+ var rapiq = require('rapiq');
5
+ var adapterZod = require('@validup/adapter-zod');
6
+ var validup = require('validup');
7
+ var zod = require('zod');
8
+ var kit = require('@privateaim/kit');
9
+
10
+ /*
11
+ * Copyright (c) 2023-2024.
12
+ * Author Peter Placzek (tada5hi)
13
+ * For the full copyright and license information,
14
+ * view the LICENSE file that was distributed with this source code.
15
+ */ function _define_property$2(obj, key, value) {
16
+ if (key in obj) {
17
+ Object.defineProperty(obj, key, {
18
+ value: value,
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true
22
+ });
23
+ } else {
24
+ obj[key] = value;
25
+ }
26
+ return obj;
27
+ }
28
+ class BaseAPI {
29
+ // -----------------------------------------------------------------------------------
30
+ setClient(input) {
31
+ this.client = hapic.isClient(input) ? input : hapic.createClient(input);
32
+ }
33
+ // -----------------------------------------------------------------------------------
34
+ constructor(context){
35
+ _define_property$2(this, "client", void 0);
36
+ context = context || {};
37
+ this.setClient(context.client);
38
+ }
39
+ }
40
+
41
+ /*
42
+ * Copyright (c) 2021-2024.
43
+ * Author Peter Placzek (tada5hi)
44
+ * For the full copyright and license information,
45
+ * view the LICENSE file that was distributed with this source code.
46
+ */ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
47
+ try {
48
+ var info = gen[key](arg);
49
+ var value = info.value;
50
+ } catch (error) {
51
+ reject(error);
52
+ return;
53
+ }
54
+ if (info.done) {
55
+ resolve(value);
56
+ } else {
57
+ Promise.resolve(value).then(_next, _throw);
58
+ }
59
+ }
60
+ function _async_to_generator$1(fn) {
61
+ return function() {
62
+ var self = this, args = arguments;
63
+ return new Promise(function(resolve, reject) {
64
+ var gen = fn.apply(self, args);
65
+ function _next(value) {
66
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
67
+ }
68
+ function _throw(err) {
69
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
70
+ }
71
+ _next(undefined);
72
+ });
73
+ };
74
+ }
75
+ class EventAPI extends BaseAPI {
76
+ getMany(options) {
77
+ return _async_to_generator$1(function*() {
78
+ const { data: response } = yield this.client.get(`events${rapiq.buildQuery(options)}`);
79
+ return response;
80
+ }).call(this);
81
+ }
82
+ getOne(id) {
83
+ return _async_to_generator$1(function*() {
84
+ const { data: response } = yield this.client.get(`events/${id}`);
85
+ return response;
86
+ }).call(this);
87
+ }
88
+ delete(id) {
89
+ return _async_to_generator$1(function*() {
90
+ const { data: response } = yield this.client.delete(`events/${id}`);
91
+ return response;
92
+ }).call(this);
93
+ }
94
+ update(id, data) {
95
+ return _async_to_generator$1(function*() {
96
+ const { data: response } = yield this.client.post(`events/${id}`, data);
97
+ return response;
98
+ }).call(this);
99
+ }
100
+ create(data) {
101
+ return _async_to_generator$1(function*() {
102
+ const { data: response } = yield this.client.post('events', data);
103
+ return response;
104
+ }).call(this);
105
+ }
106
+ }
107
+
108
+ class EventValidator extends validup.Container {
109
+ initialize() {
110
+ super.initialize();
111
+ this.mount('ref_type', adapterZod.createValidator(zod.string().min(3).max(128)));
112
+ this.mount('ref_id', {
113
+ optional: true
114
+ }, adapterZod.createValidator(zod.uuidv4().nullable()));
115
+ // ----------------------------------------------
116
+ this.mount('scope', adapterZod.createValidator(zod.string().min(3).max(128)));
117
+ this.mount('name', adapterZod.createValidator(zod.string().min(3).max(128)));
118
+ // ----------------------------------------------
119
+ this.mount('data', {
120
+ optional: true
121
+ }, adapterZod.createValidator(zod.record(zod.string(), zod.any()).nullable()));
122
+ // ----------------------------------------------
123
+ this.mount('expiring', {
124
+ optional: true
125
+ }, adapterZod.createValidator(zod.boolean().nullable()));
126
+ // ----------------------------------------------
127
+ this.mount('request_path', {
128
+ optional: true
129
+ }, adapterZod.createValidator(zod.string().min(3).max(256).nullable()));
130
+ this.mount('request_method', {
131
+ optional: true
132
+ }, adapterZod.createValidator(zod.string().min(3).max(10).nullable()));
133
+ this.mount('request_ip_address', {
134
+ optional: true
135
+ }, adapterZod.createValidator(zod.ipv4().nullable()));
136
+ this.mount('request_user_agent', {
137
+ optional: true
138
+ }, adapterZod.createValidator(zod.string().min(3).max(512).nullable()));
139
+ // ----------------------------------------------
140
+ this.mount('actor_type', {
141
+ optional: true
142
+ }, adapterZod.createValidator(zod.string().min(3).max(64).nullable()));
143
+ this.mount('actor_id', {
144
+ optional: true
145
+ }, adapterZod.createValidator(zod.uuidv4().nullable()));
146
+ this.mount('actor_name', {
147
+ optional: true
148
+ }, adapterZod.createValidator(zod.string().min(3).max(64).nullable()));
149
+ // ----------------------------------------------
150
+ this.mount('realm_id', {
151
+ optional: true
152
+ }, adapterZod.createValidator(zod.uuidv4().nullable()));
153
+ // ----------------------------------------------
154
+ this.mount('expires_at', {
155
+ optional: true
156
+ }, adapterZod.createValidator(zod.iso.datetime().nullable()));
157
+ }
158
+ }
159
+
160
+ /*
161
+ * Copyright (c) 2021-2024.
162
+ * Author Peter Placzek (tada5hi)
163
+ * For the full copyright and license information,
164
+ * view the LICENSE file that was distributed with this source code.
165
+ */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
166
+ try {
167
+ var info = gen[key](arg);
168
+ var value = info.value;
169
+ } catch (error) {
170
+ reject(error);
171
+ return;
172
+ }
173
+ if (info.done) {
174
+ resolve(value);
175
+ } else {
176
+ Promise.resolve(value).then(_next, _throw);
177
+ }
178
+ }
179
+ function _async_to_generator(fn) {
180
+ return function() {
181
+ var self = this, args = arguments;
182
+ return new Promise(function(resolve, reject) {
183
+ var gen = fn.apply(self, args);
184
+ function _next(value) {
185
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
186
+ }
187
+ function _throw(err) {
188
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
189
+ }
190
+ _next(undefined);
191
+ });
192
+ };
193
+ }
194
+ class LogAPI extends BaseAPI {
195
+ getMany(options) {
196
+ return _async_to_generator(function*() {
197
+ const { data: response } = yield this.client.get(`logs${rapiq.buildQuery(options)}`);
198
+ return response;
199
+ }).call(this);
200
+ }
201
+ deleteMany(options) {
202
+ return _async_to_generator(function*() {
203
+ yield this.client.delete(`logs${rapiq.buildQuery(options)}`);
204
+ }).call(this);
205
+ }
206
+ create(data) {
207
+ return _async_to_generator(function*() {
208
+ const { data: response } = yield this.client.post('logs', data);
209
+ return response;
210
+ }).call(this);
211
+ }
212
+ }
213
+
214
+ /*
215
+ * Copyright (c) 2025.
216
+ * Author Peter Placzek (tada5hi)
217
+ * For the full copyright and license information,
218
+ * view the LICENSE file that was distributed with this source code.
219
+ */ var LogLevel = /*#__PURE__*/ function(LogLevel) {
220
+ /**
221
+ * indicates that the system is unusable
222
+ * and requires immediate attention
223
+ */ LogLevel["EMERGENCE"] = "emerg";
224
+ /**
225
+ * indicates that immediate action is necessary
226
+ * to resolve a critical issue.
227
+ */ LogLevel["ALERT"] = "alert";
228
+ /**
229
+ * signifies critical conditions in the program that demand
230
+ * intervention to prevent system failure.
231
+ */ LogLevel["CRITICAL"] = "crit";
232
+ /**
233
+ * indicates error conditions that impair
234
+ * some operation but are less severe than critical situations.
235
+ */ LogLevel["ERROR"] = "error";
236
+ /**
237
+ * signifies potential issues that may lead to errors
238
+ * or unexpected behavior in the future if not addressed.
239
+ */ LogLevel["WARNING"] = "warn";
240
+ /**
241
+ * applies to normal but significant
242
+ * conditions that may require monitoring
243
+ */ LogLevel["NOTICE"] = "notice";
244
+ /**
245
+ * includes messages that provide a record
246
+ * of the normal operation of the system.
247
+ */ LogLevel["INFORMATIONAL"] = "info";
248
+ /**
249
+ * intended for logging detailed information about the system
250
+ * for debugging purposes.
251
+ */ LogLevel["DEBUG"] = "debug";
252
+ return LogLevel;
253
+ }({});
254
+ var LogLevelColor = /*#__PURE__*/ function(LogLevelColor) {
255
+ LogLevelColor["EMERGENCE"] = "#8B0000";
256
+ LogLevelColor["ALERT"] = "#FF0000";
257
+ LogLevelColor["CRITICAL"] = "#FF4500";
258
+ LogLevelColor["ERROR"] = "#FF6347";
259
+ LogLevelColor["WARNING"] = "#FFD700";
260
+ LogLevelColor["NOTICE"] = "#1E90FF";
261
+ LogLevelColor["INFORMATIONAL"] = "#228B22";
262
+ LogLevelColor["DEBUG"] = "#A9A9A9";
263
+ return LogLevelColor;
264
+ }({});
265
+ var LogFlag = /*#__PURE__*/ function(LogFlag) {
266
+ LogFlag["CHANNEL"] = "channel";
267
+ LogFlag["COMPONENT"] = "component";
268
+ LogFlag["SERVICE"] = "service";
269
+ LogFlag["LEVEL"] = "level";
270
+ return LogFlag;
271
+ }({});
272
+ var LogChannel = /*#__PURE__*/ function(LogChannel) {
273
+ LogChannel["HTTP"] = "http";
274
+ LogChannel["WEBSOCKET"] = "websocket";
275
+ LogChannel["BACKGROUND"] = "background";
276
+ LogChannel["SYSTEM"] = "system";
277
+ return LogChannel;
278
+ }({});
279
+
280
+ /*
281
+ * Copyright (c) 2025.
282
+ * Author Peter Placzek (tada5hi)
283
+ * For the full copyright and license information,
284
+ * view the LICENSE file that was distributed with this source code.
285
+ */ function _define_property$1(obj, key, value) {
286
+ if (key in obj) {
287
+ Object.defineProperty(obj, key, {
288
+ value: value,
289
+ enumerable: true,
290
+ configurable: true,
291
+ writable: true
292
+ });
293
+ } else {
294
+ obj[key] = value;
295
+ }
296
+ return obj;
297
+ }
298
+ function _object_spread(target) {
299
+ for(var i = 1; i < arguments.length; i++){
300
+ var source = arguments[i] != null ? arguments[i] : {};
301
+ var ownKeys = Object.keys(source);
302
+ if (typeof Object.getOwnPropertySymbols === "function") {
303
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
304
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
305
+ }));
306
+ }
307
+ ownKeys.forEach(function(key) {
308
+ _define_property$1(target, key, source[key]);
309
+ });
310
+ }
311
+ return target;
312
+ }
313
+ function ownKeys(object, enumerableOnly) {
314
+ var keys = Object.keys(object);
315
+ if (Object.getOwnPropertySymbols) {
316
+ var symbols = Object.getOwnPropertySymbols(object);
317
+ keys.push.apply(keys, symbols);
318
+ }
319
+ return keys;
320
+ }
321
+ function _object_spread_props(target, source) {
322
+ source = source != null ? source : {};
323
+ if (Object.getOwnPropertyDescriptors) {
324
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
325
+ } else {
326
+ ownKeys(Object(source)).forEach(function(key) {
327
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
328
+ });
329
+ }
330
+ return target;
331
+ }
332
+ function normalizeLogInput(input) {
333
+ return _object_spread_props(_object_spread({}, input), {
334
+ time: input.time || kit.nanoSeconds(),
335
+ labels: input.labels || {}
336
+ });
337
+ }
338
+
339
+ class LogValidator extends validup.Container {
340
+ initialize() {
341
+ super.initialize();
342
+ this.mount('time', {
343
+ optional: true
344
+ }, adapterZod.createValidator(zod.string().min(0).max(20).or(zod.bigint()).optional()));
345
+ this.mount('message', adapterZod.createValidator(zod.string().min(3).max(512)));
346
+ this.mount('service', adapterZod.createValidator(zod.string().min(3).max(64)));
347
+ // ----------------------------------------------
348
+ this.mount('level', adapterZod.createValidator(zod.enum(Object.values(LogLevel))));
349
+ this.mount('channel', adapterZod.createValidator(zod.enum(Object.values(LogChannel))));
350
+ this.mount('labels', {
351
+ optional: true
352
+ }, adapterZod.createValidator(zod.record(zod.string(), zod.string()).nullable()));
353
+ }
354
+ }
355
+
356
+ /*
357
+ * Copyright (c) 2025.
358
+ * Author Peter Placzek (tada5hi)
359
+ * For the full copyright and license information,
360
+ * view the LICENSE file that was distributed with this source code.
361
+ */ var DomainType = /*#__PURE__*/ function(DomainType) {
362
+ DomainType["EVENT"] = "event";
363
+ DomainType["LOG"] = "log";
364
+ return DomainType;
365
+ }({});
366
+
367
+ /*
368
+ * Copyright (c) 2022-2024.
369
+ * Author Peter Placzek (tada5hi)
370
+ * For the full copyright and license information,
371
+ * view the LICENSE file that was distributed with this source code.
372
+ */ function _define_property(obj, key, value) {
373
+ if (key in obj) {
374
+ Object.defineProperty(obj, key, {
375
+ value: value,
376
+ enumerable: true,
377
+ configurable: true,
378
+ writable: true
379
+ });
380
+ } else {
381
+ obj[key] = value;
382
+ }
383
+ return obj;
384
+ }
385
+ class APIClient extends hapic.Client {
386
+ constructor(config){
387
+ super(config), _define_property(this, "event", void 0), _define_property(this, "log", void 0);
388
+ this.event = new EventAPI({
389
+ client: this
390
+ });
391
+ this.log = new LogAPI({
392
+ client: this
393
+ });
394
+ this.on(hapic.HookName.RESPONSE_ERROR, (error)=>{
395
+ if (hapic.isClientError(error) && error.response && error.response.data && typeof error.response.data.message === 'string') {
396
+ error.message = error.response.data.message;
397
+ }
398
+ throw error;
399
+ });
400
+ }
401
+ }
402
+
403
+ exports.APIClient = APIClient;
404
+ exports.DomainType = DomainType;
405
+ exports.EventAPI = EventAPI;
406
+ exports.EventValidator = EventValidator;
407
+ exports.LogAPI = LogAPI;
408
+ exports.LogChannel = LogChannel;
409
+ exports.LogFlag = LogFlag;
410
+ exports.LogLevel = LogLevel;
411
+ exports.LogLevelColor = LogLevelColor;
412
+ exports.LogValidator = LogValidator;
413
+ exports.normalizeLogInput = normalizeLogInput;
414
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/domains/base.ts","../src/domains/event/api.ts","../src/domains/event/validator.ts","../src/domains/log/api.ts","../src/domains/log/constants.ts","../src/domains/log/helpers.ts","../src/domains/log/validator.ts","../src/domains/constants.ts","../src/http/api-client/module.ts"],"sourcesContent":["/*\n * Copyright (c) 2023-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport { createClient, isClient } from 'hapic';\nimport type { Client, RequestBaseOptions } from 'hapic';\nimport type { BaseAPIContext } from './types-base';\n\nexport class BaseAPI {\n protected client! : Client;\n\n // -----------------------------------------------------------------------------------\n\n constructor(context?: BaseAPIContext) {\n context = context || {};\n\n this.setClient(context.client);\n }\n\n // -----------------------------------------------------------------------------------\n\n setClient(input?: Client | RequestBaseOptions) {\n this.client = isClient(input) ?\n input :\n createClient(input);\n }\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { BuildInput } from 'rapiq';\nimport { buildQuery } from 'rapiq';\nimport type { Event } from './entity';\nimport type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';\nimport { BaseAPI } from '../base';\n\nexport class EventAPI extends BaseAPI {\n async getMany(options?: BuildInput<Event>): Promise<CollectionResourceResponse<Event>> {\n const { data: response } = await this.client.get(`events${buildQuery(options)}`);\n return response;\n }\n\n async getOne(id: Event['id']): Promise<SingleResourceResponse<Event>> {\n const { data: response } = await this.client.get(`events/${id}`);\n\n return response;\n }\n\n async delete(id: Event['id']): Promise<SingleResourceResponse<Event>> {\n const { data: response } = await this.client.delete(`events/${id}`);\n\n return response;\n }\n\n async update(id: Event['id'], data: Partial<Event>): Promise<SingleResourceResponse<Event>> {\n const { data: response } = await this.client.post(`events/${id}`, data);\n\n return response;\n }\n\n async create(data: Partial<Event>): Promise<SingleResourceResponse<Event>> {\n const { data: response } = await this.client.post('events', data);\n\n return response;\n }\n}\n","/*\n * Copyright (c) 2025.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport { createValidator } from '@validup/adapter-zod';\nimport { Container } from 'validup';\nimport zod from 'zod';\nimport type { Event } from './entity';\n\nexport class EventValidator extends Container<Event> {\n protected initialize() {\n super.initialize();\n\n this.mount(\n 'ref_type',\n createValidator(\n zod\n .string()\n .min(3)\n .max(128),\n ),\n );\n\n this.mount(\n 'ref_id',\n { optional: true },\n createValidator(\n zod\n .uuidv4()\n .nullable(),\n ),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'scope',\n createValidator(\n zod\n .string()\n .min(3)\n .max(128),\n ),\n );\n\n this.mount(\n 'name',\n createValidator(\n zod\n .string()\n .min(3)\n .max(128),\n ),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'data',\n { optional: true },\n createValidator(\n zod\n .record(zod.string(), zod.any())\n .nullable(),\n ),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'expiring',\n { optional: true },\n createValidator(\n zod\n .boolean()\n .nullable(),\n ),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'request_path',\n { optional: true },\n createValidator(zod.string().min(3).max(256).nullable()),\n );\n\n this.mount(\n 'request_method',\n { optional: true },\n createValidator(zod.string().min(3).max(10).nullable()),\n );\n\n this.mount(\n 'request_ip_address',\n { optional: true },\n createValidator(zod.ipv4().nullable()),\n );\n\n this.mount(\n 'request_user_agent',\n { optional: true },\n createValidator(zod.string().min(3).max(512).nullable()),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'actor_type',\n { optional: true },\n createValidator(zod.string().min(3).max(64).nullable()),\n );\n\n this.mount(\n 'actor_id',\n { optional: true },\n createValidator(zod.uuidv4().nullable()),\n );\n\n this.mount(\n 'actor_name',\n { optional: true },\n createValidator(zod.string().min(3).max(64).nullable()),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'realm_id',\n { optional: true },\n createValidator(zod.uuidv4().nullable()),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'expires_at',\n { optional: true },\n createValidator(\n zod.iso.datetime()\n .nullable(),\n ),\n );\n }\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { BuildInput } from 'rapiq';\nimport { buildQuery } from 'rapiq';\nimport type { Log, LogInput } from './entity';\nimport type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';\nimport { BaseAPI } from '../base';\n\nexport class LogAPI extends BaseAPI {\n async getMany(options?: BuildInput<Log>): Promise<CollectionResourceResponse<Log>> {\n const { data: response } = await this.client.get(`logs${buildQuery(options)}`);\n return response;\n }\n\n async deleteMany(options?: BuildInput<Log>): Promise<void> {\n await this.client.delete(`logs${buildQuery(options)}`);\n }\n\n async create(data: Partial<LogInput>): Promise<SingleResourceResponse<Log>> {\n const { data: response } = await this.client.post('logs', data);\n\n return response;\n }\n}\n","/*\n * Copyright (c) 2025.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum LogLevel {\n /**\n * indicates that the system is unusable\n * and requires immediate attention\n */\n EMERGENCE = 'emerg',\n\n /**\n * indicates that immediate action is necessary\n * to resolve a critical issue.\n */\n ALERT = 'alert',\n\n /**\n * signifies critical conditions in the program that demand\n * intervention to prevent system failure.\n */\n CRITICAL = 'crit',\n\n /**\n * indicates error conditions that impair\n * some operation but are less severe than critical situations.\n */\n ERROR = 'error',\n\n /**\n * signifies potential issues that may lead to errors\n * or unexpected behavior in the future if not addressed.\n */\n WARNING = 'warn',\n\n /**\n * applies to normal but significant\n * conditions that may require monitoring\n */\n NOTICE = 'notice',\n\n /**\n * includes messages that provide a record\n * of the normal operation of the system.\n */\n INFORMATIONAL = 'info',\n\n /**\n * intended for logging detailed information about the system\n * for debugging purposes.\n */\n DEBUG = 'debug',\n}\n\nexport enum LogLevelColor {\n EMERGENCE = '#8B0000',\n ALERT = '#FF0000',\n CRITICAL = '#FF4500',\n ERROR = '#FF6347',\n WARNING = '#FFD700',\n NOTICE = '#1E90FF',\n INFORMATIONAL = '#228B22',\n DEBUG = '#A9A9A9',\n}\n\nexport enum LogFlag {\n CHANNEL = 'channel',\n\n COMPONENT = 'component',\n\n SERVICE = 'service',\n\n LEVEL = 'level',\n}\n\nexport enum LogChannel {\n HTTP = 'http',\n WEBSOCKET = 'websocket',\n BACKGROUND = 'background',\n SYSTEM = 'system',\n}\n","/*\n * Copyright (c) 2025.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport { nanoSeconds } from '@privateaim/kit';\nimport type { Log, LogInput } from './entity';\n\nexport function normalizeLogInput(input: LogInput) : Log {\n return {\n ...input,\n time: input.time || nanoSeconds(),\n labels: input.labels || {},\n };\n}\n","/*\n * Copyright (c) 2025.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport { createValidator } from '@validup/adapter-zod';\nimport { Container } from 'validup';\nimport zod from 'zod';\nimport { LogChannel, LogLevel } from './constants';\nimport type { LogInput } from './entity';\n\nexport class LogValidator extends Container<LogInput> {\n protected initialize() {\n super.initialize();\n\n this.mount(\n 'time',\n { optional: true },\n createValidator(\n zod\n .string()\n .min(0)\n .max(20)\n .or(zod.bigint())\n .optional(),\n ),\n );\n\n this.mount(\n 'message',\n createValidator(\n zod\n .string()\n .min(3)\n .max(512),\n ),\n );\n\n this.mount(\n 'service',\n createValidator(\n zod\n .string()\n .min(3)\n .max(64),\n ),\n );\n\n // ----------------------------------------------\n\n this.mount(\n 'level',\n createValidator(\n zod\n .enum(Object.values(LogLevel)),\n ),\n );\n\n this.mount(\n 'channel',\n createValidator(\n zod\n .enum(Object.values(LogChannel)),\n ),\n );\n\n this.mount(\n 'labels',\n { optional: true },\n createValidator(\n zod\n .record(zod.string(), zod.string())\n .nullable(),\n ),\n );\n }\n}\n","/*\n * Copyright (c) 2025.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum DomainType {\n EVENT = 'event',\n LOG = 'log',\n}\n","/*\n * Copyright (c) 2022-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { RequestBaseOptions } from 'hapic';\nimport { Client, HookName, isClientError } from 'hapic';\nimport {\n EventAPI,\n LogAPI,\n} from '../../domains';\n\nexport class APIClient extends Client {\n public readonly event : EventAPI;\n\n public readonly log : LogAPI;\n\n constructor(config: RequestBaseOptions) {\n super(config);\n\n this.event = new EventAPI({ client: this });\n this.log = new LogAPI({ client: this });\n\n this.on(HookName.RESPONSE_ERROR, ((error) => {\n if (\n isClientError(error) &&\n error.response &&\n error.response.data &&\n typeof error.response.data.message === 'string'\n ) {\n error.message = error.response.data.message;\n }\n\n throw error;\n }));\n }\n}\n"],"names":["_define_property","BaseAPI","setClient","input","client","isClient","createClient","context","asyncGeneratorStep","EventAPI","getMany","options","data","response","get","buildQuery","getOne","id","delete","update","post","create","EventValidator","Container","initialize","mount","createValidator","zod","string","min","max","optional","uuidv4","nullable","record","any","boolean","ipv4","iso","datetime","LogAPI","deleteMany","LogLevel","LogLevelColor","LogFlag","LogChannel","normalizeLogInput","time","nanoSeconds","labels","LogValidator","or","bigint","enum","Object","values","DomainType","APIClient","Client","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WAAA,CAAYC,MAA0B,CAAE;QACpC,KAAK,CAACA,SALV,gBAAA,CAAA,IAAA,EAAgBC,OAAAA,EAAhB,MAAA,CAAA,EAEA,gBAAA,CAAA,IAAA,EAAgBC,OAAhB,MAAA,CAAA;AAKI,QAAA,IAAI,CAACD,KAAK,GAAG,IAAInD,QAAAA,CAAS;AAAEL,YAAAA,MAAAA,EAAQ;AAAK,SAAA,CAAA;AACzC,QAAA,IAAI,CAACyD,GAAG,GAAG,IAAIrB,MAAAA,CAAO;AAAEpC,YAAAA,MAAAA,EAAQ;AAAK,SAAA,CAAA;AAErC,QAAA,IAAI,CAAC0D,EAAE,CAACC,cAAAA,CAASC,cAAc,EAAG,CAACC,KAAAA,GAAAA;AAC/B,YAAA,IACIC,oBAAcD,KAAAA,CAAAA,IACdA,KAAAA,CAAMpD,QAAQ,IACdoD,KAAAA,CAAMpD,QAAQ,CAACD,IAAI,IACnB,OAAOqD,MAAMpD,QAAQ,CAACD,IAAI,CAACuD,OAAO,KAAK,QAAA,EACzC;AACEF,gBAAAA,KAAAA,CAAME,OAAO,GAAGF,KAAAA,CAAMpD,QAAQ,CAACD,IAAI,CAACuD,OAAO;AAC/C,YAAA;YAEA,MAAMF,KAAAA;AACV,QAAA,CAAA,CAAA;AACJ,IAAA;AACJ;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from './http';
2
+ export * from './domains';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}