@meago/core 0.2.0 → 0.3.2

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.
package/README.md CHANGED
@@ -54,7 +54,15 @@ Consumer chỉ import từ `@meago/core`, không import `@meago/core/dist/...`.
54
54
  4. Chạy `npm publish` hoặc `npm run pub`.
55
55
  5. Nâng cùng version ở Server và Client, sau đó chạy test của cả hai repo.
56
56
 
57
- Package đang cấu hình `access: restricted`; registry/account deploy phải hỗ trợ scoped private package. Đổi sang `public` nếu chủ đích phát hành công khai.
57
+ Package được phát hành công khai với `publishConfig.access=public`. Npm account/token vẫn phải đáp ứng chính sách 2FA hoặc granular token quyền bypass 2FA khi publish tự động.
58
+
59
+ Trên Windows có thể chạy quy trình có kiểm soát:
60
+
61
+ ```powershell
62
+ .\commit.bat
63
+ ```
64
+
65
+ Script chạy `verify` trước khi commit, pull bằng rebase trên branch hiện tại và hỏi riêng trước khi publish. Khi phát hành, người dùng phải chọn `patch`/`minor`/`major`; `npm version` cập nhật cả `package.json`, lockfile, tạo release commit và Git tag. Package được publish rõ ràng với `--access public`, sau đó branch/tag mới được push. Script không force-push, không tự xử lý conflict và dừng ngay khi một gate thất bại.
58
66
 
59
67
  ## Compatibility
60
68
 
@@ -62,4 +70,3 @@ Package đang cấu hình `access: restricted`; registry/account deploy phải h
62
70
  - Minor: thêm export hoặc field optional.
63
71
  - Major: xóa/đổi export, thêm field required hoặc đổi semantics.
64
72
  - Entity database không phải contract và không được export từ library.
65
-
package/dist/index.d.mts CHANGED
@@ -52,13 +52,30 @@ declare enum ESortDir {
52
52
  ASC = "ASC",
53
53
  DESC = "DESC"
54
54
  }
55
+ /** Kết quả 1 audit event — mirror AuditOutcome của MeagoServer (audit.types.ts) */
56
+ declare enum EAuditOutcome {
57
+ SUCCESS = "success",
58
+ FAILURE = "failure",
59
+ DENIED = "denied"
60
+ }
61
+ /** Loại actor thực hiện hành động — mirror AuditActorType của MeagoServer (audit.types.ts) */
62
+ declare enum EAuditActorType {
63
+ USER = "user",
64
+ SYSTEM = "system",
65
+ SERVICE = "service",
66
+ ANONYMOUS = "anonymous"
67
+ }
55
68
 
69
+ type index$a_EAuditActorType = EAuditActorType;
70
+ declare const index$a_EAuditActorType: typeof EAuditActorType;
71
+ type index$a_EAuditOutcome = EAuditOutcome;
72
+ declare const index$a_EAuditOutcome: typeof EAuditOutcome;
56
73
  type index$a_ESortDir = ESortDir;
57
74
  declare const index$a_ESortDir: typeof ESortDir;
58
75
  type index$a_EUserStatus = EUserStatus;
59
76
  declare const index$a_EUserStatus: typeof EUserStatus;
60
77
  declare namespace index$a {
61
- export { index$a_ESortDir as ESortDir, index$a_EUserStatus as EUserStatus };
78
+ export { index$a_EAuditActorType as EAuditActorType, index$a_EAuditOutcome as EAuditOutcome, index$a_ESortDir as ESortDir, index$a_EUserStatus as EUserStatus };
62
79
  }
63
80
 
64
81
  interface ILoginDto {
@@ -116,6 +133,11 @@ interface IPaginatedResult<T> {
116
133
  hasNextPage?: boolean;
117
134
  hasPreviousPage?: boolean;
118
135
  }
136
+ /** Danh sách dùng cursor thay vì offset — cho bảng lớn/append-only (vd audit_events). */
137
+ interface ICursorPaginatedResult<T> {
138
+ items: T[];
139
+ nextCursor: string | null;
140
+ }
119
141
  interface IBaseQuery<TSortBy extends string = string> {
120
142
  page?: number;
121
143
  limit?: number;
@@ -137,11 +159,12 @@ interface ITrackingModel extends IBaseModel {
137
159
  type index$8_IBaseModel = IBaseModel;
138
160
  type index$8_IBaseQuery<TSortBy extends string = string> = IBaseQuery<TSortBy>;
139
161
  type index$8_IBaseResponse<T> = IBaseResponse<T>;
162
+ type index$8_ICursorPaginatedResult<T> = ICursorPaginatedResult<T>;
140
163
  type index$8_IErrorResponse<TDetails = unknown> = IErrorResponse<TDetails>;
141
164
  type index$8_IPaginatedResult<T> = IPaginatedResult<T>;
142
165
  type index$8_ITrackingModel = ITrackingModel;
143
166
  declare namespace index$8 {
144
- export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
167
+ export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_ICursorPaginatedResult as ICursorPaginatedResult, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
145
168
  }
146
169
 
147
170
  /** User trả về từ GET /auth/me — kèm tập permission đã resolve. */
@@ -166,13 +189,51 @@ interface IRole extends IBaseModel {
166
189
  description?: string | null;
167
190
  permissions: IPermission[];
168
191
  }
192
+ /**
193
+ * 1 dòng lịch sử thao tác — append-only, không có updatedAt/version.
194
+ * Khớp AuditEventEntity của MeagoServer (audit-event.entity.ts).
195
+ */
196
+ interface IAuditEvent {
197
+ id: string;
198
+ occurredAt: string;
199
+ actorType: EAuditActorType | string;
200
+ actorId: string | null;
201
+ action: string;
202
+ resourceType: string | null;
203
+ resourceId: string | null;
204
+ outcome: EAuditOutcome | string;
205
+ reasonCode: string | null;
206
+ requestId: string | null;
207
+ traceId: string | null;
208
+ httpMethod: string | null;
209
+ routeTemplate: string | null;
210
+ statusCode: number | null;
211
+ ip: string | null;
212
+ userAgent: string | null;
213
+ durationMs: number | null;
214
+ metadata: Record<string, unknown> | null;
215
+ }
216
+ /** Query params cho GET /audit-events — khớp AuditEventQueryDto của MeagoServer. */
217
+ interface IAuditEventQuery {
218
+ actorId?: string;
219
+ action?: string;
220
+ resourceType?: string;
221
+ resourceId?: string;
222
+ outcome?: EAuditOutcome | string;
223
+ from?: string;
224
+ to?: string;
225
+ cursor?: string;
226
+ limit?: number;
227
+ }
169
228
 
229
+ type index$7_IAuditEvent = IAuditEvent;
230
+ type index$7_IAuditEventQuery = IAuditEventQuery;
170
231
  type index$7_ICurrentUser = ICurrentUser;
171
232
  type index$7_IPermission = IPermission;
172
233
  type index$7_IRole = IRole;
173
234
  type index$7_IUser = IUser;
174
235
  declare namespace index$7 {
175
- export type { index$7_ICurrentUser as ICurrentUser, index$7_IPermission as IPermission, index$7_IRole as IRole, index$7_IUser as IUser };
236
+ export type { index$7_IAuditEvent as IAuditEvent, index$7_IAuditEventQuery as IAuditEventQuery, index$7_ICurrentUser as ICurrentUser, index$7_IPermission as IPermission, index$7_IRole as IRole, index$7_IUser as IUser };
176
237
  }
177
238
 
178
239
  interface ResponseMeta {
@@ -414,4 +475,4 @@ declare namespace index {
414
475
  export { type index_Result as Result, index_err as err, index_isErr as isErr, index_isOk as isOk, index_mapResult as mapResult, index_ok as ok, index_unwrapResult as unwrapResult };
415
476
  }
416
477
 
417
- export { API_ACTIONS, API_CONTROLLERS, API_VERSION, type AuthContext, type AuthCredential, type AuthIdentity, AuthMode, type AuthPrincipal, type AuthResult, type AuthStrategy, type Clock, CoreError, CoreErrorCode, type CoreErrorOptions, ESortDir, EUserStatus, type ErrorResponseInput, type Hasher, type IBaseModel, type IBaseQuery, type IBaseResponse, type ICurrentUser, type IErrorResponse, type IJwtPayload, type ILoginDto, type IPaginatedResult, type IPermission, type IRegisterDto, type IRole, type ITokenResponse, type ITrackingModel, type IUser, type IdGenerator, index$6 as MeagoApi, index$5 as MeagoAuth, index$b as MeagoConstants, index$9 as MeagoDto, index$a as MeagoEnums, index$4 as MeagoErrors, index$8 as MeagoInterfacesCommon, index$7 as MeagoInterfacesModels, index$3 as MeagoPagination, index$2 as MeagoPermissions, index$1 as MeagoPorts, index as MeagoResult, type NormalizedPagination, PERMISSIONS, type PaginationInput, type PaginationPolicy, type PermissionCollection, type ResponseMeta, type Result, type SessionRecord, type SessionStore, type TransactionRunner, createErrorResponse, createPaginatedResult, createSuccessResponse, err, getPaginationOffset, hasAllPermissions, hasAnyPermission, isCoreError, isErr, isOk, joinApiPath, mapResult, normalizePagination, ok, systemClock, unwrapResult };
478
+ export { API_ACTIONS, API_CONTROLLERS, API_VERSION, type AuthContext, type AuthCredential, type AuthIdentity, AuthMode, type AuthPrincipal, type AuthResult, type AuthStrategy, type Clock, CoreError, CoreErrorCode, type CoreErrorOptions, EAuditActorType, EAuditOutcome, ESortDir, EUserStatus, type ErrorResponseInput, type Hasher, type IAuditEvent, type IAuditEventQuery, type IBaseModel, type IBaseQuery, type IBaseResponse, type ICurrentUser, type ICursorPaginatedResult, type IErrorResponse, type IJwtPayload, type ILoginDto, type IPaginatedResult, type IPermission, type IRegisterDto, type IRole, type ITokenResponse, type ITrackingModel, type IUser, type IdGenerator, index$6 as MeagoApi, index$5 as MeagoAuth, index$b as MeagoConstants, index$9 as MeagoDto, index$a as MeagoEnums, index$4 as MeagoErrors, index$8 as MeagoInterfacesCommon, index$7 as MeagoInterfacesModels, index$3 as MeagoPagination, index$2 as MeagoPermissions, index$1 as MeagoPorts, index as MeagoResult, type NormalizedPagination, PERMISSIONS, type PaginationInput, type PaginationPolicy, type PermissionCollection, type ResponseMeta, type Result, type SessionRecord, type SessionStore, type TransactionRunner, createErrorResponse, createPaginatedResult, createSuccessResponse, err, getPaginationOffset, hasAllPermissions, hasAnyPermission, isCoreError, isErr, isOk, joinApiPath, mapResult, normalizePagination, ok, systemClock, unwrapResult };
package/dist/index.d.ts CHANGED
@@ -52,13 +52,30 @@ declare enum ESortDir {
52
52
  ASC = "ASC",
53
53
  DESC = "DESC"
54
54
  }
55
+ /** Kết quả 1 audit event — mirror AuditOutcome của MeagoServer (audit.types.ts) */
56
+ declare enum EAuditOutcome {
57
+ SUCCESS = "success",
58
+ FAILURE = "failure",
59
+ DENIED = "denied"
60
+ }
61
+ /** Loại actor thực hiện hành động — mirror AuditActorType của MeagoServer (audit.types.ts) */
62
+ declare enum EAuditActorType {
63
+ USER = "user",
64
+ SYSTEM = "system",
65
+ SERVICE = "service",
66
+ ANONYMOUS = "anonymous"
67
+ }
55
68
 
69
+ type index$a_EAuditActorType = EAuditActorType;
70
+ declare const index$a_EAuditActorType: typeof EAuditActorType;
71
+ type index$a_EAuditOutcome = EAuditOutcome;
72
+ declare const index$a_EAuditOutcome: typeof EAuditOutcome;
56
73
  type index$a_ESortDir = ESortDir;
57
74
  declare const index$a_ESortDir: typeof ESortDir;
58
75
  type index$a_EUserStatus = EUserStatus;
59
76
  declare const index$a_EUserStatus: typeof EUserStatus;
60
77
  declare namespace index$a {
61
- export { index$a_ESortDir as ESortDir, index$a_EUserStatus as EUserStatus };
78
+ export { index$a_EAuditActorType as EAuditActorType, index$a_EAuditOutcome as EAuditOutcome, index$a_ESortDir as ESortDir, index$a_EUserStatus as EUserStatus };
62
79
  }
63
80
 
64
81
  interface ILoginDto {
@@ -116,6 +133,11 @@ interface IPaginatedResult<T> {
116
133
  hasNextPage?: boolean;
117
134
  hasPreviousPage?: boolean;
118
135
  }
136
+ /** Danh sách dùng cursor thay vì offset — cho bảng lớn/append-only (vd audit_events). */
137
+ interface ICursorPaginatedResult<T> {
138
+ items: T[];
139
+ nextCursor: string | null;
140
+ }
119
141
  interface IBaseQuery<TSortBy extends string = string> {
120
142
  page?: number;
121
143
  limit?: number;
@@ -137,11 +159,12 @@ interface ITrackingModel extends IBaseModel {
137
159
  type index$8_IBaseModel = IBaseModel;
138
160
  type index$8_IBaseQuery<TSortBy extends string = string> = IBaseQuery<TSortBy>;
139
161
  type index$8_IBaseResponse<T> = IBaseResponse<T>;
162
+ type index$8_ICursorPaginatedResult<T> = ICursorPaginatedResult<T>;
140
163
  type index$8_IErrorResponse<TDetails = unknown> = IErrorResponse<TDetails>;
141
164
  type index$8_IPaginatedResult<T> = IPaginatedResult<T>;
142
165
  type index$8_ITrackingModel = ITrackingModel;
143
166
  declare namespace index$8 {
144
- export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
167
+ export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_ICursorPaginatedResult as ICursorPaginatedResult, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
145
168
  }
146
169
 
147
170
  /** User trả về từ GET /auth/me — kèm tập permission đã resolve. */
@@ -166,13 +189,51 @@ interface IRole extends IBaseModel {
166
189
  description?: string | null;
167
190
  permissions: IPermission[];
168
191
  }
192
+ /**
193
+ * 1 dòng lịch sử thao tác — append-only, không có updatedAt/version.
194
+ * Khớp AuditEventEntity của MeagoServer (audit-event.entity.ts).
195
+ */
196
+ interface IAuditEvent {
197
+ id: string;
198
+ occurredAt: string;
199
+ actorType: EAuditActorType | string;
200
+ actorId: string | null;
201
+ action: string;
202
+ resourceType: string | null;
203
+ resourceId: string | null;
204
+ outcome: EAuditOutcome | string;
205
+ reasonCode: string | null;
206
+ requestId: string | null;
207
+ traceId: string | null;
208
+ httpMethod: string | null;
209
+ routeTemplate: string | null;
210
+ statusCode: number | null;
211
+ ip: string | null;
212
+ userAgent: string | null;
213
+ durationMs: number | null;
214
+ metadata: Record<string, unknown> | null;
215
+ }
216
+ /** Query params cho GET /audit-events — khớp AuditEventQueryDto của MeagoServer. */
217
+ interface IAuditEventQuery {
218
+ actorId?: string;
219
+ action?: string;
220
+ resourceType?: string;
221
+ resourceId?: string;
222
+ outcome?: EAuditOutcome | string;
223
+ from?: string;
224
+ to?: string;
225
+ cursor?: string;
226
+ limit?: number;
227
+ }
169
228
 
229
+ type index$7_IAuditEvent = IAuditEvent;
230
+ type index$7_IAuditEventQuery = IAuditEventQuery;
170
231
  type index$7_ICurrentUser = ICurrentUser;
171
232
  type index$7_IPermission = IPermission;
172
233
  type index$7_IRole = IRole;
173
234
  type index$7_IUser = IUser;
174
235
  declare namespace index$7 {
175
- export type { index$7_ICurrentUser as ICurrentUser, index$7_IPermission as IPermission, index$7_IRole as IRole, index$7_IUser as IUser };
236
+ export type { index$7_IAuditEvent as IAuditEvent, index$7_IAuditEventQuery as IAuditEventQuery, index$7_ICurrentUser as ICurrentUser, index$7_IPermission as IPermission, index$7_IRole as IRole, index$7_IUser as IUser };
176
237
  }
177
238
 
178
239
  interface ResponseMeta {
@@ -414,4 +475,4 @@ declare namespace index {
414
475
  export { type index_Result as Result, index_err as err, index_isErr as isErr, index_isOk as isOk, index_mapResult as mapResult, index_ok as ok, index_unwrapResult as unwrapResult };
415
476
  }
416
477
 
417
- export { API_ACTIONS, API_CONTROLLERS, API_VERSION, type AuthContext, type AuthCredential, type AuthIdentity, AuthMode, type AuthPrincipal, type AuthResult, type AuthStrategy, type Clock, CoreError, CoreErrorCode, type CoreErrorOptions, ESortDir, EUserStatus, type ErrorResponseInput, type Hasher, type IBaseModel, type IBaseQuery, type IBaseResponse, type ICurrentUser, type IErrorResponse, type IJwtPayload, type ILoginDto, type IPaginatedResult, type IPermission, type IRegisterDto, type IRole, type ITokenResponse, type ITrackingModel, type IUser, type IdGenerator, index$6 as MeagoApi, index$5 as MeagoAuth, index$b as MeagoConstants, index$9 as MeagoDto, index$a as MeagoEnums, index$4 as MeagoErrors, index$8 as MeagoInterfacesCommon, index$7 as MeagoInterfacesModels, index$3 as MeagoPagination, index$2 as MeagoPermissions, index$1 as MeagoPorts, index as MeagoResult, type NormalizedPagination, PERMISSIONS, type PaginationInput, type PaginationPolicy, type PermissionCollection, type ResponseMeta, type Result, type SessionRecord, type SessionStore, type TransactionRunner, createErrorResponse, createPaginatedResult, createSuccessResponse, err, getPaginationOffset, hasAllPermissions, hasAnyPermission, isCoreError, isErr, isOk, joinApiPath, mapResult, normalizePagination, ok, systemClock, unwrapResult };
478
+ export { API_ACTIONS, API_CONTROLLERS, API_VERSION, type AuthContext, type AuthCredential, type AuthIdentity, AuthMode, type AuthPrincipal, type AuthResult, type AuthStrategy, type Clock, CoreError, CoreErrorCode, type CoreErrorOptions, EAuditActorType, EAuditOutcome, ESortDir, EUserStatus, type ErrorResponseInput, type Hasher, type IAuditEvent, type IAuditEventQuery, type IBaseModel, type IBaseQuery, type IBaseResponse, type ICurrentUser, type ICursorPaginatedResult, type IErrorResponse, type IJwtPayload, type ILoginDto, type IPaginatedResult, type IPermission, type IRegisterDto, type IRole, type ITokenResponse, type ITrackingModel, type IUser, type IdGenerator, index$6 as MeagoApi, index$5 as MeagoAuth, index$b as MeagoConstants, index$9 as MeagoDto, index$a as MeagoEnums, index$4 as MeagoErrors, index$8 as MeagoInterfacesCommon, index$7 as MeagoInterfacesModels, index$3 as MeagoPagination, index$2 as MeagoPermissions, index$1 as MeagoPorts, index as MeagoResult, type NormalizedPagination, PERMISSIONS, type PaginationInput, type PaginationPolicy, type PermissionCollection, type ResponseMeta, type Result, type SessionRecord, type SessionStore, type TransactionRunner, createErrorResponse, createPaginatedResult, createSuccessResponse, err, getPaginationOffset, hasAllPermissions, hasAnyPermission, isCoreError, isErr, isOk, joinApiPath, mapResult, normalizePagination, ok, systemClock, unwrapResult };
package/dist/index.js CHANGED
@@ -26,6 +26,8 @@ __export(index_exports, {
26
26
  AuthMode: () => AuthMode,
27
27
  CoreError: () => CoreError,
28
28
  CoreErrorCode: () => CoreErrorCode,
29
+ EAuditActorType: () => EAuditActorType,
30
+ EAuditOutcome: () => EAuditOutcome,
29
31
  ESortDir: () => ESortDir,
30
32
  EUserStatus: () => EUserStatus,
31
33
  MeagoApi: () => api_exports,
@@ -102,6 +104,8 @@ var PERMISSIONS = {
102
104
  // src/enums/index.ts
103
105
  var enums_exports = {};
104
106
  __export(enums_exports, {
107
+ EAuditActorType: () => EAuditActorType,
108
+ EAuditOutcome: () => EAuditOutcome,
105
109
  ESortDir: () => ESortDir,
106
110
  EUserStatus: () => EUserStatus
107
111
  });
@@ -115,6 +119,19 @@ var ESortDir = /* @__PURE__ */ ((ESortDir2) => {
115
119
  ESortDir2["DESC"] = "DESC";
116
120
  return ESortDir2;
117
121
  })(ESortDir || {});
122
+ var EAuditOutcome = /* @__PURE__ */ ((EAuditOutcome2) => {
123
+ EAuditOutcome2["SUCCESS"] = "success";
124
+ EAuditOutcome2["FAILURE"] = "failure";
125
+ EAuditOutcome2["DENIED"] = "denied";
126
+ return EAuditOutcome2;
127
+ })(EAuditOutcome || {});
128
+ var EAuditActorType = /* @__PURE__ */ ((EAuditActorType2) => {
129
+ EAuditActorType2["USER"] = "user";
130
+ EAuditActorType2["SYSTEM"] = "system";
131
+ EAuditActorType2["SERVICE"] = "service";
132
+ EAuditActorType2["ANONYMOUS"] = "anonymous";
133
+ return EAuditActorType2;
134
+ })(EAuditActorType || {});
118
135
 
119
136
  // src/dto/auth/index.ts
120
137
  var auth_exports = {};
@@ -294,6 +311,8 @@ function mapResult(result, mapper) {
294
311
  AuthMode,
295
312
  CoreError,
296
313
  CoreErrorCode,
314
+ EAuditActorType,
315
+ EAuditOutcome,
297
316
  ESortDir,
298
317
  EUserStatus,
299
318
  MeagoApi,
package/dist/index.mjs CHANGED
@@ -46,6 +46,8 @@ var PERMISSIONS = {
46
46
  // src/enums/index.ts
47
47
  var enums_exports = {};
48
48
  __export(enums_exports, {
49
+ EAuditActorType: () => EAuditActorType,
50
+ EAuditOutcome: () => EAuditOutcome,
49
51
  ESortDir: () => ESortDir,
50
52
  EUserStatus: () => EUserStatus
51
53
  });
@@ -59,6 +61,19 @@ var ESortDir = /* @__PURE__ */ ((ESortDir2) => {
59
61
  ESortDir2["DESC"] = "DESC";
60
62
  return ESortDir2;
61
63
  })(ESortDir || {});
64
+ var EAuditOutcome = /* @__PURE__ */ ((EAuditOutcome2) => {
65
+ EAuditOutcome2["SUCCESS"] = "success";
66
+ EAuditOutcome2["FAILURE"] = "failure";
67
+ EAuditOutcome2["DENIED"] = "denied";
68
+ return EAuditOutcome2;
69
+ })(EAuditOutcome || {});
70
+ var EAuditActorType = /* @__PURE__ */ ((EAuditActorType2) => {
71
+ EAuditActorType2["USER"] = "user";
72
+ EAuditActorType2["SYSTEM"] = "system";
73
+ EAuditActorType2["SERVICE"] = "service";
74
+ EAuditActorType2["ANONYMOUS"] = "anonymous";
75
+ return EAuditActorType2;
76
+ })(EAuditActorType || {});
62
77
 
63
78
  // src/dto/auth/index.ts
64
79
  var auth_exports = {};
@@ -237,6 +252,8 @@ export {
237
252
  AuthMode,
238
253
  CoreError,
239
254
  CoreErrorCode,
255
+ EAuditActorType,
256
+ EAuditOutcome,
240
257
  ESortDir,
241
258
  EUserStatus,
242
259
  api_exports as MeagoApi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meago/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.2",
4
4
  "description": "Framework-neutral contracts and core primitives for Meago applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -26,7 +26,7 @@
26
26
  "pub": "npm run build && npm publish"
27
27
  },
28
28
  "publishConfig": {
29
- "access": "restricted"
29
+ "access": "public"
30
30
  },
31
31
  "author": "Meago",
32
32
  "license": "MIT",