alepha 0.10.5 → 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/api/files.d.ts +198 -121
- package/api/jobs.d.ts +170 -170
- package/api/users.d.ts +216 -216
- package/command.d.ts +1 -1
- package/devtools.d.ts +247 -247
- package/email.d.ts +5 -5
- package/package.json +48 -48
- package/postgres.d.ts +36 -13
- package/react.d.ts +26 -26
- package/security.d.ts +4 -7
- package/server/cache.d.ts +16 -7
- package/server/links.d.ts +31 -31
- package/server/security.d.ts +4 -6
- package/server.d.ts +20 -20
package/api/users.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _alepha_core0 from "alepha";
|
|
2
2
|
import { Alepha, Static } from "alepha";
|
|
3
|
-
import * as
|
|
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
|
|
9
|
+
import * as typebox176 from "typebox";
|
|
10
10
|
|
|
11
11
|
//#region src/descriptors/$authApple.d.ts
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ import * as typebox230 from "typebox";
|
|
|
15
15
|
declare const $authApple: () => never;
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/descriptors/$authCredentials.d.ts
|
|
18
|
-
declare const $authCredentials: (realm: RealmDescriptor) =>
|
|
18
|
+
declare const $authCredentials: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/descriptors/$authGithub.d.ts
|
|
21
21
|
/**
|
|
@@ -28,7 +28,7 @@ declare const $authCredentials: (realm: RealmDescriptor) => _alepha_react_auth1.
|
|
|
28
28
|
* - `GITHUB_CLIENT_ID`: The client ID obtained from the GitHub Developer Settings.
|
|
29
29
|
* - `GITHUB_CLIENT_SECRET`: The client secret obtained from the GitHub Developer Settings.
|
|
30
30
|
*/
|
|
31
|
-
declare const $authGithub: (realm: RealmDescriptor) =>
|
|
31
|
+
declare const $authGithub: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/descriptors/$authGoogle.d.ts
|
|
34
34
|
/**
|
|
@@ -41,7 +41,7 @@ declare const $authGithub: (realm: RealmDescriptor) => _alepha_react_auth1.AuthD
|
|
|
41
41
|
* - `GOOGLE_CLIENT_ID`: The client ID obtained from the Google Developer Console.
|
|
42
42
|
* - `GOOGLE_CLIENT_SECRET`: The client secret obtained from the Google Developer Console.
|
|
43
43
|
*/
|
|
44
|
-
declare const $authGoogle: (realm: RealmDescriptor) =>
|
|
44
|
+
declare const $authGoogle: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/descriptors/$realmUsers.d.ts
|
|
47
47
|
/**
|
|
@@ -63,122 +63,122 @@ declare const $realmUsers: (options?: {
|
|
|
63
63
|
}) => _alepha_security0.RealmDescriptor;
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/entities/identities.d.ts
|
|
66
|
-
declare const identities:
|
|
67
|
-
id:
|
|
68
|
-
version:
|
|
69
|
-
createdAt:
|
|
70
|
-
updatedAt:
|
|
71
|
-
userId:
|
|
72
|
-
provider:
|
|
73
|
-
providerUserId:
|
|
74
|
-
providerData:
|
|
75
|
-
}>,
|
|
76
|
-
id:
|
|
77
|
-
version:
|
|
78
|
-
createdAt:
|
|
79
|
-
updatedAt:
|
|
80
|
-
userId:
|
|
81
|
-
provider:
|
|
82
|
-
providerUserId:
|
|
83
|
-
providerData:
|
|
84
|
-
}>>>,
|
|
85
|
-
id:
|
|
86
|
-
version:
|
|
87
|
-
createdAt:
|
|
88
|
-
updatedAt:
|
|
89
|
-
userId:
|
|
90
|
-
provider:
|
|
91
|
-
providerUserId:
|
|
92
|
-
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>>;
|
|
93
93
|
}>>;
|
|
94
94
|
type IdentityEntity = Static<typeof identities.$schema>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/entities/sessions.d.ts
|
|
97
|
-
declare const sessions:
|
|
98
|
-
id:
|
|
99
|
-
version:
|
|
100
|
-
createdAt:
|
|
101
|
-
updatedAt:
|
|
102
|
-
refreshToken:
|
|
103
|
-
userId:
|
|
104
|
-
expiresAt:
|
|
105
|
-
ip:
|
|
106
|
-
userAgent:
|
|
107
|
-
os:
|
|
108
|
-
browser:
|
|
109
|
-
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">;
|
|
110
110
|
}>>;
|
|
111
|
-
}>,
|
|
112
|
-
id:
|
|
113
|
-
version:
|
|
114
|
-
createdAt:
|
|
115
|
-
updatedAt:
|
|
116
|
-
refreshToken:
|
|
117
|
-
userId:
|
|
118
|
-
expiresAt:
|
|
119
|
-
ip:
|
|
120
|
-
userAgent:
|
|
121
|
-
os:
|
|
122
|
-
browser:
|
|
123
|
-
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">;
|
|
124
124
|
}>>;
|
|
125
|
-
}>>>,
|
|
126
|
-
id:
|
|
127
|
-
version:
|
|
128
|
-
createdAt:
|
|
129
|
-
updatedAt:
|
|
130
|
-
refreshToken:
|
|
131
|
-
userId:
|
|
132
|
-
expiresAt:
|
|
133
|
-
ip:
|
|
134
|
-
userAgent:
|
|
135
|
-
os:
|
|
136
|
-
browser:
|
|
137
|
-
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">;
|
|
138
138
|
}>>;
|
|
139
139
|
}>>;
|
|
140
140
|
type SessionEntity = Static<typeof sessions.$schema>;
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/entities/users.d.ts
|
|
143
|
-
declare const users:
|
|
144
|
-
id:
|
|
145
|
-
version:
|
|
146
|
-
createdAt:
|
|
147
|
-
updatedAt:
|
|
148
|
-
email:
|
|
149
|
-
roles:
|
|
150
|
-
name:
|
|
151
|
-
firstName:
|
|
152
|
-
lastName:
|
|
153
|
-
picture:
|
|
154
|
-
enabled:
|
|
155
|
-
emailVerified:
|
|
156
|
-
}>,
|
|
157
|
-
id:
|
|
158
|
-
version:
|
|
159
|
-
createdAt:
|
|
160
|
-
updatedAt:
|
|
161
|
-
email:
|
|
162
|
-
roles:
|
|
163
|
-
name:
|
|
164
|
-
firstName:
|
|
165
|
-
lastName:
|
|
166
|
-
picture:
|
|
167
|
-
enabled:
|
|
168
|
-
emailVerified:
|
|
169
|
-
}>>>,
|
|
170
|
-
id:
|
|
171
|
-
version:
|
|
172
|
-
createdAt:
|
|
173
|
-
updatedAt:
|
|
174
|
-
email:
|
|
175
|
-
roles:
|
|
176
|
-
name:
|
|
177
|
-
firstName:
|
|
178
|
-
lastName:
|
|
179
|
-
picture:
|
|
180
|
-
enabled:
|
|
181
|
-
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>;
|
|
182
182
|
}>>;
|
|
183
183
|
type UserEntity = Static<typeof users.$schema>;
|
|
184
184
|
//#endregion
|
|
@@ -187,116 +187,116 @@ declare class SessionService {
|
|
|
187
187
|
protected readonly alepha: Alepha;
|
|
188
188
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
189
189
|
protected readonly cryptoProvider: CryptoProvider;
|
|
190
|
-
readonly users:
|
|
191
|
-
id:
|
|
192
|
-
version:
|
|
193
|
-
createdAt:
|
|
194
|
-
updatedAt:
|
|
195
|
-
email:
|
|
196
|
-
roles:
|
|
197
|
-
name:
|
|
198
|
-
firstName:
|
|
199
|
-
lastName:
|
|
200
|
-
picture:
|
|
201
|
-
enabled:
|
|
202
|
-
emailVerified:
|
|
203
|
-
}>,
|
|
204
|
-
id:
|
|
205
|
-
version:
|
|
206
|
-
createdAt:
|
|
207
|
-
updatedAt:
|
|
208
|
-
email:
|
|
209
|
-
roles:
|
|
210
|
-
name:
|
|
211
|
-
firstName:
|
|
212
|
-
lastName:
|
|
213
|
-
picture:
|
|
214
|
-
enabled:
|
|
215
|
-
emailVerified:
|
|
216
|
-
}>>>,
|
|
217
|
-
id:
|
|
218
|
-
version:
|
|
219
|
-
createdAt:
|
|
220
|
-
updatedAt:
|
|
221
|
-
email:
|
|
222
|
-
roles:
|
|
223
|
-
name:
|
|
224
|
-
firstName:
|
|
225
|
-
lastName:
|
|
226
|
-
picture:
|
|
227
|
-
enabled:
|
|
228
|
-
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>;
|
|
229
229
|
}>>;
|
|
230
|
-
readonly sessions:
|
|
231
|
-
id:
|
|
232
|
-
version:
|
|
233
|
-
createdAt:
|
|
234
|
-
updatedAt:
|
|
235
|
-
refreshToken:
|
|
236
|
-
userId:
|
|
237
|
-
expiresAt:
|
|
238
|
-
ip:
|
|
239
|
-
userAgent:
|
|
240
|
-
os:
|
|
241
|
-
browser:
|
|
242
|
-
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">;
|
|
243
243
|
}>>;
|
|
244
|
-
}>,
|
|
245
|
-
id:
|
|
246
|
-
version:
|
|
247
|
-
createdAt:
|
|
248
|
-
updatedAt:
|
|
249
|
-
refreshToken:
|
|
250
|
-
userId:
|
|
251
|
-
expiresAt:
|
|
252
|
-
ip:
|
|
253
|
-
userAgent:
|
|
254
|
-
os:
|
|
255
|
-
browser:
|
|
256
|
-
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">;
|
|
257
257
|
}>>;
|
|
258
|
-
}>>>,
|
|
259
|
-
id:
|
|
260
|
-
version:
|
|
261
|
-
createdAt:
|
|
262
|
-
updatedAt:
|
|
263
|
-
refreshToken:
|
|
264
|
-
userId:
|
|
265
|
-
expiresAt:
|
|
266
|
-
ip:
|
|
267
|
-
userAgent:
|
|
268
|
-
os:
|
|
269
|
-
browser:
|
|
270
|
-
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">;
|
|
271
271
|
}>>;
|
|
272
272
|
}>>;
|
|
273
|
-
readonly identities:
|
|
274
|
-
id:
|
|
275
|
-
version:
|
|
276
|
-
createdAt:
|
|
277
|
-
updatedAt:
|
|
278
|
-
userId:
|
|
279
|
-
provider:
|
|
280
|
-
providerUserId:
|
|
281
|
-
providerData:
|
|
282
|
-
}>,
|
|
283
|
-
id:
|
|
284
|
-
version:
|
|
285
|
-
createdAt:
|
|
286
|
-
updatedAt:
|
|
287
|
-
userId:
|
|
288
|
-
provider:
|
|
289
|
-
providerUserId:
|
|
290
|
-
providerData:
|
|
291
|
-
}>>>,
|
|
292
|
-
id:
|
|
293
|
-
version:
|
|
294
|
-
createdAt:
|
|
295
|
-
updatedAt:
|
|
296
|
-
userId:
|
|
297
|
-
provider:
|
|
298
|
-
providerUserId:
|
|
299
|
-
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>>;
|
|
300
300
|
}>>;
|
|
301
301
|
login(provider: string, username: string, password: string): Promise<{
|
|
302
302
|
name?: string | undefined;
|
package/command.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ declare class CommandDescriptor<T extends TObject = TObject, A extends TSchema =
|
|
|
151
151
|
}
|
|
152
152
|
interface CommandHandlerArgs<T extends TObject, A extends TSchema = TSchema> {
|
|
153
153
|
flags: Static<T>;
|
|
154
|
-
args: A extends TSchema ? Static<A> :
|
|
154
|
+
args: A extends TSchema ? Static<A> : Array<string>;
|
|
155
155
|
run: RunnerMethod;
|
|
156
156
|
ask: AskMethod;
|
|
157
157
|
glob: typeof glob;
|