alepha 0.10.4 → 0.10.6
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 +7 -19
- package/api/files.d.ts +200 -125
- package/api/jobs.d.ts +170 -172
- package/api/users.d.ts +216 -215
- package/bucket.d.ts +81 -4
- package/command.d.ts +1 -1
- package/email.d.ts +5 -5
- package/package.json +48 -48
- package/postgres.d.ts +48 -5
- package/react/auth.d.ts +5 -0
- package/react.d.ts +28 -28
- package/security.d.ts +4 -7
- package/server/cache.d.ts +16 -7
- package/server/links.d.ts +2 -2
- package/server/security.d.ts +4 -6
- package/server.d.ts +20 -20
package/api/users.d.ts
CHANGED
|
@@ -3,12 +3,10 @@ import { Alepha, Static } from "alepha";
|
|
|
3
3
|
import * as _alepha_react_auth0 from "alepha/react/auth";
|
|
4
4
|
import { OAuth2Profile } from "alepha/react/auth";
|
|
5
5
|
import { DateTimeProvider } from "alepha/datetime";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _alepha_postgres233 from "alepha/postgres";
|
|
7
7
|
import * as _alepha_security0 from "alepha/security";
|
|
8
8
|
import { CryptoProvider, RealmDescriptor, RealmDescriptorOptions, UserAccount } from "alepha/security";
|
|
9
|
-
import * as
|
|
10
|
-
import * as _alepha_postgres_src_helpers_pgAttr_ts83 from "alepha/postgres/src/helpers/pgAttr.ts";
|
|
11
|
-
import * as _alepha_postgres_src_helpers_pgAttr0 from "alepha/postgres/src/helpers/pgAttr";
|
|
9
|
+
import * as typebox176 from "typebox";
|
|
12
10
|
|
|
13
11
|
//#region src/descriptors/$authApple.d.ts
|
|
14
12
|
/**
|
|
@@ -16,6 +14,9 @@ import * as _alepha_postgres_src_helpers_pgAttr0 from "alepha/postgres/src/helpe
|
|
|
16
14
|
*/
|
|
17
15
|
declare const $authApple: () => never;
|
|
18
16
|
//#endregion
|
|
17
|
+
//#region src/descriptors/$authCredentials.d.ts
|
|
18
|
+
declare const $authCredentials: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
19
|
+
//#endregion
|
|
19
20
|
//#region src/descriptors/$authGithub.d.ts
|
|
20
21
|
/**
|
|
21
22
|
* Already configured GitHub authentication descriptor.
|
|
@@ -62,122 +63,122 @@ declare const $realmUsers: (options?: {
|
|
|
62
63
|
}) => _alepha_security0.RealmDescriptor;
|
|
63
64
|
//#endregion
|
|
64
65
|
//#region src/entities/identities.d.ts
|
|
65
|
-
declare const identities:
|
|
66
|
-
id:
|
|
67
|
-
version:
|
|
68
|
-
createdAt:
|
|
69
|
-
updatedAt:
|
|
70
|
-
userId:
|
|
71
|
-
provider:
|
|
72
|
-
providerUserId:
|
|
73
|
-
providerData:
|
|
74
|
-
}>,
|
|
75
|
-
id:
|
|
76
|
-
version:
|
|
77
|
-
createdAt:
|
|
78
|
-
updatedAt:
|
|
79
|
-
userId:
|
|
80
|
-
provider:
|
|
81
|
-
providerUserId:
|
|
82
|
-
providerData:
|
|
83
|
-
}>>>,
|
|
84
|
-
id:
|
|
85
|
-
version:
|
|
86
|
-
createdAt:
|
|
87
|
-
updatedAt:
|
|
88
|
-
userId:
|
|
89
|
-
provider:
|
|
90
|
-
providerUserId:
|
|
91
|
-
providerData:
|
|
66
|
+
declare const identities: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"identities", typebox176.TObject<{
|
|
67
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
68
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
69
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
70
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
71
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
72
|
+
provider: typebox176.TString;
|
|
73
|
+
providerUserId: typebox176.TString;
|
|
74
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
75
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
76
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
77
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
78
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
79
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
80
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
81
|
+
provider: typebox176.TString;
|
|
82
|
+
providerUserId: typebox176.TString;
|
|
83
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
84
|
+
}>>>, typebox176.TObject<{
|
|
85
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
86
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
87
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
88
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
89
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
90
|
+
provider: typebox176.TString;
|
|
91
|
+
providerUserId: typebox176.TString;
|
|
92
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
92
93
|
}>>;
|
|
93
94
|
type IdentityEntity = Static<typeof identities.$schema>;
|
|
94
95
|
//#endregion
|
|
95
96
|
//#region src/entities/sessions.d.ts
|
|
96
|
-
declare const sessions:
|
|
97
|
-
id:
|
|
98
|
-
version:
|
|
99
|
-
createdAt:
|
|
100
|
-
updatedAt:
|
|
101
|
-
refreshToken:
|
|
102
|
-
userId:
|
|
103
|
-
expiresAt:
|
|
104
|
-
ip:
|
|
105
|
-
userAgent:
|
|
106
|
-
os:
|
|
107
|
-
browser:
|
|
108
|
-
device:
|
|
97
|
+
declare const sessions: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"sessions", typebox176.TObject<{
|
|
98
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
99
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
100
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
101
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
102
|
+
refreshToken: typebox176.TString;
|
|
103
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
104
|
+
expiresAt: typebox176.TString;
|
|
105
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
106
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
107
|
+
os: typebox176.TString;
|
|
108
|
+
browser: typebox176.TString;
|
|
109
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
109
110
|
}>>;
|
|
110
|
-
}>,
|
|
111
|
-
id:
|
|
112
|
-
version:
|
|
113
|
-
createdAt:
|
|
114
|
-
updatedAt:
|
|
115
|
-
refreshToken:
|
|
116
|
-
userId:
|
|
117
|
-
expiresAt:
|
|
118
|
-
ip:
|
|
119
|
-
userAgent:
|
|
120
|
-
os:
|
|
121
|
-
browser:
|
|
122
|
-
device:
|
|
111
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
112
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
113
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
114
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
115
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
116
|
+
refreshToken: typebox176.TString;
|
|
117
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
118
|
+
expiresAt: typebox176.TString;
|
|
119
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
120
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
121
|
+
os: typebox176.TString;
|
|
122
|
+
browser: typebox176.TString;
|
|
123
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
123
124
|
}>>;
|
|
124
|
-
}>>>,
|
|
125
|
-
id:
|
|
126
|
-
version:
|
|
127
|
-
createdAt:
|
|
128
|
-
updatedAt:
|
|
129
|
-
refreshToken:
|
|
130
|
-
userId:
|
|
131
|
-
expiresAt:
|
|
132
|
-
ip:
|
|
133
|
-
userAgent:
|
|
134
|
-
os:
|
|
135
|
-
browser:
|
|
136
|
-
device:
|
|
125
|
+
}>>>, typebox176.TObject<{
|
|
126
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
127
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
128
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
129
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
130
|
+
refreshToken: typebox176.TString;
|
|
131
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
132
|
+
expiresAt: typebox176.TString;
|
|
133
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
134
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
135
|
+
os: typebox176.TString;
|
|
136
|
+
browser: typebox176.TString;
|
|
137
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
137
138
|
}>>;
|
|
138
139
|
}>>;
|
|
139
140
|
type SessionEntity = Static<typeof sessions.$schema>;
|
|
140
141
|
//#endregion
|
|
141
142
|
//#region src/entities/users.d.ts
|
|
142
|
-
declare const users:
|
|
143
|
-
id:
|
|
144
|
-
version:
|
|
145
|
-
createdAt:
|
|
146
|
-
updatedAt:
|
|
147
|
-
email:
|
|
148
|
-
roles:
|
|
149
|
-
name:
|
|
150
|
-
firstName:
|
|
151
|
-
lastName:
|
|
152
|
-
picture:
|
|
153
|
-
enabled:
|
|
154
|
-
emailVerified:
|
|
155
|
-
}>,
|
|
156
|
-
id:
|
|
157
|
-
version:
|
|
158
|
-
createdAt:
|
|
159
|
-
updatedAt:
|
|
160
|
-
email:
|
|
161
|
-
roles:
|
|
162
|
-
name:
|
|
163
|
-
firstName:
|
|
164
|
-
lastName:
|
|
165
|
-
picture:
|
|
166
|
-
enabled:
|
|
167
|
-
emailVerified:
|
|
168
|
-
}>>>,
|
|
169
|
-
id:
|
|
170
|
-
version:
|
|
171
|
-
createdAt:
|
|
172
|
-
updatedAt:
|
|
173
|
-
email:
|
|
174
|
-
roles:
|
|
175
|
-
name:
|
|
176
|
-
firstName:
|
|
177
|
-
lastName:
|
|
178
|
-
picture:
|
|
179
|
-
enabled:
|
|
180
|
-
emailVerified:
|
|
143
|
+
declare const users: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"users", typebox176.TObject<{
|
|
144
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
145
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
146
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
147
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
148
|
+
email: typebox176.TString;
|
|
149
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
150
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
151
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
152
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
153
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
154
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
155
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
156
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
157
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
158
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
159
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
160
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
161
|
+
email: typebox176.TString;
|
|
162
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
163
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
164
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
165
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
166
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
167
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
168
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
169
|
+
}>>>, typebox176.TObject<{
|
|
170
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
171
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
172
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
173
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
174
|
+
email: typebox176.TString;
|
|
175
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
176
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
177
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
178
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
179
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
180
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
181
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
181
182
|
}>>;
|
|
182
183
|
type UserEntity = Static<typeof users.$schema>;
|
|
183
184
|
//#endregion
|
|
@@ -186,116 +187,116 @@ declare class SessionService {
|
|
|
186
187
|
protected readonly alepha: Alepha;
|
|
187
188
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
188
189
|
protected readonly cryptoProvider: CryptoProvider;
|
|
189
|
-
readonly users:
|
|
190
|
-
id:
|
|
191
|
-
version:
|
|
192
|
-
createdAt:
|
|
193
|
-
updatedAt:
|
|
194
|
-
email:
|
|
195
|
-
roles:
|
|
196
|
-
name:
|
|
197
|
-
firstName:
|
|
198
|
-
lastName:
|
|
199
|
-
picture:
|
|
200
|
-
enabled:
|
|
201
|
-
emailVerified:
|
|
202
|
-
}>,
|
|
203
|
-
id:
|
|
204
|
-
version:
|
|
205
|
-
createdAt:
|
|
206
|
-
updatedAt:
|
|
207
|
-
email:
|
|
208
|
-
roles:
|
|
209
|
-
name:
|
|
210
|
-
firstName:
|
|
211
|
-
lastName:
|
|
212
|
-
picture:
|
|
213
|
-
enabled:
|
|
214
|
-
emailVerified:
|
|
215
|
-
}>>>,
|
|
216
|
-
id:
|
|
217
|
-
version:
|
|
218
|
-
createdAt:
|
|
219
|
-
updatedAt:
|
|
220
|
-
email:
|
|
221
|
-
roles:
|
|
222
|
-
name:
|
|
223
|
-
firstName:
|
|
224
|
-
lastName:
|
|
225
|
-
picture:
|
|
226
|
-
enabled:
|
|
227
|
-
emailVerified:
|
|
190
|
+
readonly users: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"users", typebox176.TObject<{
|
|
191
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
192
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
193
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
194
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
195
|
+
email: typebox176.TString;
|
|
196
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
197
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
198
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
199
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
200
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
201
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
202
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
203
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
204
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
205
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
206
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
207
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
208
|
+
email: typebox176.TString;
|
|
209
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
210
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
211
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
212
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
213
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
214
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
215
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
216
|
+
}>>>, typebox176.TObject<{
|
|
217
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
218
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
219
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
220
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
221
|
+
email: typebox176.TString;
|
|
222
|
+
roles: typebox176.TArray<typebox176.TString>;
|
|
223
|
+
name: typebox176.TOptional<typebox176.TString>;
|
|
224
|
+
firstName: typebox176.TOptional<typebox176.TString>;
|
|
225
|
+
lastName: typebox176.TOptional<typebox176.TString>;
|
|
226
|
+
picture: typebox176.TOptional<typebox176.TString>;
|
|
227
|
+
enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
228
|
+
emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
228
229
|
}>>;
|
|
229
|
-
readonly sessions:
|
|
230
|
-
id:
|
|
231
|
-
version:
|
|
232
|
-
createdAt:
|
|
233
|
-
updatedAt:
|
|
234
|
-
refreshToken:
|
|
235
|
-
userId:
|
|
236
|
-
expiresAt:
|
|
237
|
-
ip:
|
|
238
|
-
userAgent:
|
|
239
|
-
os:
|
|
240
|
-
browser:
|
|
241
|
-
device:
|
|
230
|
+
readonly sessions: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"sessions", typebox176.TObject<{
|
|
231
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
232
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
233
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
234
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
235
|
+
refreshToken: typebox176.TString;
|
|
236
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
237
|
+
expiresAt: typebox176.TString;
|
|
238
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
239
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
240
|
+
os: typebox176.TString;
|
|
241
|
+
browser: typebox176.TString;
|
|
242
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
242
243
|
}>>;
|
|
243
|
-
}>,
|
|
244
|
-
id:
|
|
245
|
-
version:
|
|
246
|
-
createdAt:
|
|
247
|
-
updatedAt:
|
|
248
|
-
refreshToken:
|
|
249
|
-
userId:
|
|
250
|
-
expiresAt:
|
|
251
|
-
ip:
|
|
252
|
-
userAgent:
|
|
253
|
-
os:
|
|
254
|
-
browser:
|
|
255
|
-
device:
|
|
244
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
245
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
246
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
247
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
248
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
249
|
+
refreshToken: typebox176.TString;
|
|
250
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
251
|
+
expiresAt: typebox176.TString;
|
|
252
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
253
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
254
|
+
os: typebox176.TString;
|
|
255
|
+
browser: typebox176.TString;
|
|
256
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
256
257
|
}>>;
|
|
257
|
-
}>>>,
|
|
258
|
-
id:
|
|
259
|
-
version:
|
|
260
|
-
createdAt:
|
|
261
|
-
updatedAt:
|
|
262
|
-
refreshToken:
|
|
263
|
-
userId:
|
|
264
|
-
expiresAt:
|
|
265
|
-
ip:
|
|
266
|
-
userAgent:
|
|
267
|
-
os:
|
|
268
|
-
browser:
|
|
269
|
-
device:
|
|
258
|
+
}>>>, typebox176.TObject<{
|
|
259
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
260
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
261
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
262
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
263
|
+
refreshToken: typebox176.TString;
|
|
264
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
265
|
+
expiresAt: typebox176.TString;
|
|
266
|
+
ip: typebox176.TOptional<typebox176.TString>;
|
|
267
|
+
userAgent: typebox176.TOptional<typebox176.TObject<{
|
|
268
|
+
os: typebox176.TString;
|
|
269
|
+
browser: typebox176.TString;
|
|
270
|
+
device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
270
271
|
}>>;
|
|
271
272
|
}>>;
|
|
272
|
-
readonly identities:
|
|
273
|
-
id:
|
|
274
|
-
version:
|
|
275
|
-
createdAt:
|
|
276
|
-
updatedAt:
|
|
277
|
-
userId:
|
|
278
|
-
provider:
|
|
279
|
-
providerUserId:
|
|
280
|
-
providerData:
|
|
281
|
-
}>,
|
|
282
|
-
id:
|
|
283
|
-
version:
|
|
284
|
-
createdAt:
|
|
285
|
-
updatedAt:
|
|
286
|
-
userId:
|
|
287
|
-
provider:
|
|
288
|
-
providerUserId:
|
|
289
|
-
providerData:
|
|
290
|
-
}>>>,
|
|
291
|
-
id:
|
|
292
|
-
version:
|
|
293
|
-
createdAt:
|
|
294
|
-
updatedAt:
|
|
295
|
-
userId:
|
|
296
|
-
provider:
|
|
297
|
-
providerUserId:
|
|
298
|
-
providerData:
|
|
273
|
+
readonly identities: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"identities", typebox176.TObject<{
|
|
274
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
275
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
276
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
277
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
278
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
279
|
+
provider: typebox176.TString;
|
|
280
|
+
providerUserId: typebox176.TString;
|
|
281
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
282
|
+
}>, _alepha_postgres233.FromSchema<typebox176.TObject<{
|
|
283
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
284
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
285
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
286
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
287
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
288
|
+
provider: typebox176.TString;
|
|
289
|
+
providerUserId: typebox176.TString;
|
|
290
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
291
|
+
}>>>, typebox176.TObject<{
|
|
292
|
+
id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
293
|
+
version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
294
|
+
createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
295
|
+
updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
|
|
296
|
+
userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
|
|
297
|
+
provider: typebox176.TString;
|
|
298
|
+
providerUserId: typebox176.TString;
|
|
299
|
+
providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
|
|
299
300
|
}>>;
|
|
300
301
|
login(provider: string, username: string, password: string): Promise<{
|
|
301
302
|
name?: string | undefined;
|
|
@@ -390,5 +391,5 @@ declare class SessionService {
|
|
|
390
391
|
*/
|
|
391
392
|
declare const AlephaApiUsers: _alepha_core0.Service<_alepha_core0.Module<{}>>;
|
|
392
393
|
//#endregion
|
|
393
|
-
export { $authApple, $authGithub, $authGoogle, $realmUsers, AlephaApiUsers, IdentityEntity, SessionEntity, SessionService, UserEntity, identities, sessions, users };
|
|
394
|
+
export { $authApple, $authCredentials, $authGithub, $authGoogle, $realmUsers, AlephaApiUsers, IdentityEntity, SessionEntity, SessionService, UserEntity, identities, sessions, users };
|
|
394
395
|
//# sourceMappingURL=index.d.ts.map
|