alepha 0.20.4 → 0.20.5

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.
@@ -54,19 +54,19 @@ declare class ApiKeyService {
54
54
  */
55
55
  protected readonly validationCache: _$alepha_cache0.CacheMiddlewareFn<{
56
56
  description?: string | undefined;
57
- expiresAt?: string | undefined;
58
57
  lastUsedAt?: string | undefined;
59
58
  lastUsedIp?: string | undefined;
59
+ expiresAt?: string | undefined;
60
60
  revokedAt?: string | undefined;
61
- name: string;
62
61
  id: string;
63
- tokenSuffix: string;
64
- roles: string[];
65
62
  createdAt: string;
66
63
  updatedAt: string;
67
64
  userId: string;
65
+ name: string;
68
66
  tokenHash: string;
69
67
  tokenPrefix: string;
68
+ tokenSuffix: string;
69
+ roles: string[];
70
70
  usageCount: number;
71
71
  } | null>;
72
72
  /**
@@ -500,10 +500,10 @@ declare class ParameterPrimitive<T extends TObject> extends Primitive<ParameterP
500
500
  creatorName?: string | undefined;
501
501
  previousContent?: Record<string, any> | undefined;
502
502
  migrationLog?: string | undefined;
503
- name: string;
504
503
  id: string;
505
504
  createdAt: string;
506
505
  updatedAt: string;
506
+ name: string;
507
507
  content: Record<string, any>;
508
508
  schemaHash: string;
509
509
  activationDate: string;
@@ -519,10 +519,10 @@ declare class ParameterPrimitive<T extends TObject> extends Primitive<ParameterP
519
519
  creatorName?: string | undefined;
520
520
  previousContent?: Record<string, any> | undefined;
521
521
  migrationLog?: string | undefined;
522
- name: string;
523
522
  id: string;
524
523
  createdAt: string;
525
524
  updatedAt: string;
525
+ name: string;
526
526
  content: Record<string, any>;
527
527
  schemaHash: string;
528
528
  activationDate: string;
@@ -95,19 +95,19 @@ declare class UserAudits {
95
95
  recordUser(action: "create" | "update" | "delete" | "role_change" | "enable" | "disable", context: AuditContext): Promise<{
96
96
  description?: string | undefined;
97
97
  userId?: string | undefined;
98
+ userAgent?: string | undefined;
98
99
  userRealm?: string | undefined;
99
100
  userEmail?: string | undefined;
100
101
  resourceType?: string | undefined;
101
102
  resourceId?: string | undefined;
102
103
  metadata?: Record<string, any> | undefined;
103
104
  ipAddress?: string | undefined;
104
- userAgent?: string | undefined;
105
105
  sessionId?: string | undefined;
106
106
  requestId?: string | undefined;
107
107
  errorMessage?: string | undefined;
108
- type: string;
109
108
  id: string;
110
109
  createdAt: string;
110
+ type: string;
111
111
  action: string;
112
112
  severity: "info" | "warning" | "critical";
113
113
  success: boolean;
@@ -118,19 +118,19 @@ declare class UserAudits {
118
118
  recordAuth(action: "login" | "logout" | "login_failed" | "token_refresh", context: AuditContext): Promise<{
119
119
  description?: string | undefined;
120
120
  userId?: string | undefined;
121
+ userAgent?: string | undefined;
121
122
  userRealm?: string | undefined;
122
123
  userEmail?: string | undefined;
123
124
  resourceType?: string | undefined;
124
125
  resourceId?: string | undefined;
125
126
  metadata?: Record<string, any> | undefined;
126
127
  ipAddress?: string | undefined;
127
- userAgent?: string | undefined;
128
128
  sessionId?: string | undefined;
129
129
  requestId?: string | undefined;
130
130
  errorMessage?: string | undefined;
131
- type: string;
132
131
  id: string;
133
132
  createdAt: string;
133
+ type: string;
134
134
  action: string;
135
135
  severity: "info" | "warning" | "critical";
136
136
  success: boolean;
@@ -141,19 +141,19 @@ declare class UserAudits {
141
141
  record(category: string, action: string, context: AuditContext): Promise<{
142
142
  description?: string | undefined;
143
143
  userId?: string | undefined;
144
+ userAgent?: string | undefined;
144
145
  userRealm?: string | undefined;
145
146
  userEmail?: string | undefined;
146
147
  resourceType?: string | undefined;
147
148
  resourceId?: string | undefined;
148
149
  metadata?: Record<string, any> | undefined;
149
150
  ipAddress?: string | undefined;
150
- userAgent?: string | undefined;
151
151
  sessionId?: string | undefined;
152
152
  requestId?: string | undefined;
153
153
  errorMessage?: string | undefined;
154
- type: string;
155
154
  id: string;
156
155
  createdAt: string;
156
+ type: string;
157
157
  action: string;
158
158
  severity: "info" | "warning" | "critical";
159
159
  success: boolean;
@@ -7249,18 +7249,18 @@ declare class UserNotifications {
7249
7249
  //#endregion
7250
7250
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
7251
7251
  declare const createUserSchema: _$alepha.TObject<{
7252
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7253
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7254
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7255
7252
  id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7256
7253
  version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7254
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7257
7255
  createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7258
7256
  updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7259
7257
  username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7258
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7260
7259
  roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7261
7260
  firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7262
7261
  lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7263
7262
  picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7263
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7264
7264
  emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7265
7265
  organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7266
7266
  }>;
@@ -7268,14 +7268,14 @@ type CreateUser = Static<typeof createUserSchema>;
7268
7268
  //#endregion
7269
7269
  //#region ../../src/api/users/schemas/updateUserSchema.d.ts
7270
7270
  declare const updateUserSchema: _$alepha.TObject<{
7271
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7272
7271
  email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7273
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7274
7272
  realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7273
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7275
7274
  roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7276
7275
  firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7277
7276
  lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7278
7277
  picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7278
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7279
7279
  organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7280
7280
  }>;
7281
7281
  type UpdateUser = Static<typeof updateUserSchema>;
@@ -7429,18 +7429,18 @@ declare class AdminUserController {
7429
7429
  userRealmName: _$alepha.TOptional<_$alepha.TString>;
7430
7430
  }>;
7431
7431
  body: _$alepha.TObject<{
7432
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7433
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7434
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7435
7432
  id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7436
7433
  version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7434
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7437
7435
  createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7438
7436
  updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7439
7437
  username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7438
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7440
7439
  roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7441
7440
  firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7442
7441
  lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7443
7442
  picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7443
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7444
7444
  emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7445
7445
  organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7446
7446
  }>;
@@ -7473,14 +7473,14 @@ declare class AdminUserController {
7473
7473
  userRealmName: _$alepha.TOptional<_$alepha.TString>;
7474
7474
  }>;
7475
7475
  body: _$alepha.TObject<{
7476
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7477
7476
  email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7478
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7479
7477
  realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7478
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7480
7479
  roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7481
7480
  firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7482
7481
  lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7483
7482
  picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7483
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7484
7484
  organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7485
7485
  }>;
7486
7486
  response: _$alepha.TObject<{
@@ -8337,19 +8337,19 @@ declare class SessionService {
8337
8337
  deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
8338
8338
  link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
8339
8339
  email?: string | undefined;
8340
- phoneNumber?: string | undefined;
8341
8340
  username?: string | undefined;
8341
+ phoneNumber?: string | undefined;
8342
8342
  firstName?: string | undefined;
8343
8343
  lastName?: string | undefined;
8344
8344
  picture?: string | undefined;
8345
8345
  organizationId?: string | undefined;
8346
- enabled: boolean;
8347
8346
  id: string;
8348
8347
  version: number;
8349
8348
  createdAt: string;
8350
8349
  updatedAt: string;
8351
8350
  realm: string;
8352
8351
  roles: string[];
8352
+ enabled: boolean;
8353
8353
  emailVerified: boolean;
8354
8354
  } | {
8355
8355
  sub: string;