alepha 0.14.0 → 0.14.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 +3 -3
- package/dist/api/audits/index.d.ts +80 -1
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.d.ts +80 -1
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +236 -157
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/notifications/index.d.ts +21 -1
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +451 -4
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.d.ts +252 -249
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +4 -0
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +128 -128
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cli/index.d.ts +304 -115
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +650 -531
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +210 -13
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +306 -69
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +7 -6
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/fake/index.js.map +1 -1
- package/dist/file/index.d.ts.map +1 -1
- package/dist/file/index.js.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.browser.js +26 -5
- package/dist/orm/index.browser.js.map +1 -1
- package/dist/orm/index.d.ts +294 -215
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +522 -523
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/redis/index.js +2 -4
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/redis/index.d.ts +400 -29
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +412 -21
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +155 -155
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +0 -1
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/helmet/index.d.ts +4 -1
- package/dist/server/helmet/index.d.ts.map +1 -1
- package/dist/server/helmet/index.js.map +1 -1
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/multipart/index.d.ts.map +1 -1
- package/dist/server/multipart/index.js.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/security/index.d.ts +9 -9
- package/dist/server/security/index.js.map +1 -1
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/thread/index.js.map +1 -1
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.js +3 -3
- package/dist/topic/redis/index.js.map +1 -1
- package/dist/vite/index.js +9 -6
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.browser.js.map +1 -1
- package/dist/websocket/index.d.ts +7 -7
- package/dist/websocket/index.js.map +1 -1
- package/package.json +3 -3
- package/src/api/users/index.ts +4 -0
- package/src/cli/apps/AlephaCli.ts +36 -14
- package/src/cli/apps/AlephaPackageBuilderCli.ts +5 -1
- package/src/cli/assets/appRouterTs.ts +1 -1
- package/src/cli/atoms/changelogOptions.ts +45 -0
- package/src/cli/commands/{ViteCommands.ts → build.ts} +4 -93
- package/src/cli/commands/changelog.ts +244 -0
- package/src/cli/commands/clean.ts +14 -0
- package/src/cli/commands/{DrizzleCommands.ts → db.ts} +37 -124
- package/src/cli/commands/deploy.ts +118 -0
- package/src/cli/commands/dev.ts +57 -0
- package/src/cli/commands/format.ts +17 -0
- package/src/cli/commands/{CoreCommands.ts → init.ts} +2 -40
- package/src/cli/commands/lint.ts +17 -0
- package/src/cli/commands/root.ts +32 -0
- package/src/cli/commands/run.ts +24 -0
- package/src/cli/commands/test.ts +42 -0
- package/src/cli/commands/typecheck.ts +19 -0
- package/src/cli/commands/{VerifyCommands.ts → verify.ts} +1 -13
- package/src/cli/defineConfig.ts +24 -0
- package/src/cli/index.ts +17 -5
- package/src/cli/services/AlephaCliUtils.ts +4 -21
- package/src/cli/services/GitMessageParser.ts +77 -0
- package/src/command/helpers/EnvUtils.ts +37 -0
- package/src/command/index.ts +3 -1
- package/src/command/primitives/$command.ts +172 -6
- package/src/command/providers/CliProvider.ts +424 -91
- package/src/core/Alepha.ts +8 -5
- package/src/file/providers/NodeFileSystemProvider.ts +3 -1
- package/src/orm/index.browser.ts +1 -1
- package/src/orm/index.ts +18 -10
- package/src/orm/interfaces/PgQueryWhere.ts +1 -26
- package/src/orm/providers/{PostgresTypeProvider.ts → DatabaseTypeProvider.ts} +25 -3
- package/src/orm/providers/drivers/BunPostgresProvider.ts +225 -0
- package/src/orm/providers/drivers/BunSqliteProvider.ts +180 -0
- package/src/orm/providers/drivers/DatabaseProvider.ts +25 -0
- package/src/orm/providers/drivers/NodePostgresProvider.ts +0 -25
- package/src/orm/services/QueryManager.ts +10 -125
- package/src/queue/redis/providers/RedisQueueProvider.ts +2 -7
- package/src/redis/index.ts +65 -3
- package/src/redis/providers/BunRedisProvider.ts +304 -0
- package/src/redis/providers/BunRedisSubscriberProvider.ts +94 -0
- package/src/redis/providers/NodeRedisProvider.ts +280 -0
- package/src/redis/providers/NodeRedisSubscriberProvider.ts +94 -0
- package/src/redis/providers/RedisProvider.ts +134 -140
- package/src/redis/providers/RedisSubscriberProvider.ts +58 -49
- package/src/server/core/providers/BunHttpServerProvider.ts +0 -3
- package/src/server/core/providers/ServerBodyParserProvider.ts +3 -1
- package/src/server/core/providers/ServerProvider.ts +7 -4
- package/src/server/multipart/providers/ServerMultipartProvider.ts +3 -1
- package/src/server/proxy/providers/ServerProxyProvider.ts +1 -1
- package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
- package/src/vite/tasks/buildServer.ts +1 -0
- package/src/cli/commands/BiomeCommands.ts +0 -29
- package/src/cli/commands/ChangelogCommands.ts +0 -389
- package/src/orm/services/PgJsonQueryManager.ts +0 -511
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha188 from "alepha";
|
|
2
2
|
import { Alepha, Async, KIND, Primitive, Static } from "alepha";
|
|
3
3
|
import * as alepha_server_cookies0 from "alepha/server/cookies";
|
|
4
4
|
import { Cookies, ServerCookiesProvider } from "alepha/server/cookies";
|
|
@@ -20,82 +20,82 @@ declare const alephaServerAuthRoutes: {
|
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../../src/server/auth/schemas/authenticationProviderSchema.d.ts
|
|
23
|
-
declare const authenticationProviderSchema:
|
|
24
|
-
name:
|
|
25
|
-
type:
|
|
23
|
+
declare const authenticationProviderSchema: alepha188.TObject<{
|
|
24
|
+
name: alepha188.TString;
|
|
25
|
+
type: alepha188.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
26
26
|
}>;
|
|
27
27
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region ../../src/server/auth/schemas/tokenResponseSchema.d.ts
|
|
30
|
-
declare const tokenResponseSchema:
|
|
31
|
-
provider:
|
|
32
|
-
access_token:
|
|
33
|
-
issued_at:
|
|
34
|
-
expires_in:
|
|
35
|
-
refresh_token:
|
|
36
|
-
refresh_token_expires_in:
|
|
37
|
-
refresh_expires_in:
|
|
38
|
-
id_token:
|
|
39
|
-
scope:
|
|
40
|
-
user:
|
|
41
|
-
id:
|
|
42
|
-
name:
|
|
43
|
-
email:
|
|
44
|
-
username:
|
|
45
|
-
picture:
|
|
46
|
-
sessionId:
|
|
47
|
-
organizations:
|
|
48
|
-
roles:
|
|
30
|
+
declare const tokenResponseSchema: alepha188.TObject<{
|
|
31
|
+
provider: alepha188.TString;
|
|
32
|
+
access_token: alepha188.TString;
|
|
33
|
+
issued_at: alepha188.TNumber;
|
|
34
|
+
expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
35
|
+
refresh_token: alepha188.TOptional<alepha188.TString>;
|
|
36
|
+
refresh_token_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
37
|
+
refresh_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
38
|
+
id_token: alepha188.TOptional<alepha188.TString>;
|
|
39
|
+
scope: alepha188.TOptional<alepha188.TString>;
|
|
40
|
+
user: alepha188.TObject<{
|
|
41
|
+
id: alepha188.TString;
|
|
42
|
+
name: alepha188.TOptional<alepha188.TString>;
|
|
43
|
+
email: alepha188.TOptional<alepha188.TString>;
|
|
44
|
+
username: alepha188.TOptional<alepha188.TString>;
|
|
45
|
+
picture: alepha188.TOptional<alepha188.TString>;
|
|
46
|
+
sessionId: alepha188.TOptional<alepha188.TString>;
|
|
47
|
+
organizations: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
48
|
+
roles: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
49
49
|
}>;
|
|
50
|
-
api:
|
|
51
|
-
prefix:
|
|
52
|
-
links:
|
|
53
|
-
name:
|
|
54
|
-
group:
|
|
55
|
-
path:
|
|
56
|
-
method:
|
|
57
|
-
requestBodyType:
|
|
58
|
-
service:
|
|
50
|
+
api: alepha188.TObject<{
|
|
51
|
+
prefix: alepha188.TOptional<alepha188.TString>;
|
|
52
|
+
links: alepha188.TArray<alepha188.TObject<{
|
|
53
|
+
name: alepha188.TString;
|
|
54
|
+
group: alepha188.TOptional<alepha188.TString>;
|
|
55
|
+
path: alepha188.TString;
|
|
56
|
+
method: alepha188.TOptional<alepha188.TString>;
|
|
57
|
+
requestBodyType: alepha188.TOptional<alepha188.TString>;
|
|
58
|
+
service: alepha188.TOptional<alepha188.TString>;
|
|
59
59
|
}>>;
|
|
60
60
|
}>;
|
|
61
61
|
}>;
|
|
62
62
|
type TokenResponse = Static<typeof tokenResponseSchema>;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region ../../src/server/auth/schemas/tokensSchema.d.ts
|
|
65
|
-
declare const tokensSchema:
|
|
66
|
-
provider:
|
|
67
|
-
access_token:
|
|
68
|
-
issued_at:
|
|
69
|
-
expires_in:
|
|
70
|
-
refresh_token:
|
|
71
|
-
refresh_token_expires_in:
|
|
72
|
-
refresh_expires_in:
|
|
73
|
-
id_token:
|
|
74
|
-
scope:
|
|
65
|
+
declare const tokensSchema: alepha188.TObject<{
|
|
66
|
+
provider: alepha188.TString;
|
|
67
|
+
access_token: alepha188.TString;
|
|
68
|
+
issued_at: alepha188.TNumber;
|
|
69
|
+
expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
70
|
+
refresh_token: alepha188.TOptional<alepha188.TString>;
|
|
71
|
+
refresh_token_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
72
|
+
refresh_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
73
|
+
id_token: alepha188.TOptional<alepha188.TString>;
|
|
74
|
+
scope: alepha188.TOptional<alepha188.TString>;
|
|
75
75
|
}>;
|
|
76
76
|
type Tokens = Static<typeof tokensSchema>;
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../src/server/auth/schemas/userinfoResponseSchema.d.ts
|
|
79
|
-
declare const userinfoResponseSchema:
|
|
80
|
-
user:
|
|
81
|
-
id:
|
|
82
|
-
name:
|
|
83
|
-
email:
|
|
84
|
-
username:
|
|
85
|
-
picture:
|
|
86
|
-
sessionId:
|
|
87
|
-
organizations:
|
|
88
|
-
roles:
|
|
79
|
+
declare const userinfoResponseSchema: alepha188.TObject<{
|
|
80
|
+
user: alepha188.TOptional<alepha188.TObject<{
|
|
81
|
+
id: alepha188.TString;
|
|
82
|
+
name: alepha188.TOptional<alepha188.TString>;
|
|
83
|
+
email: alepha188.TOptional<alepha188.TString>;
|
|
84
|
+
username: alepha188.TOptional<alepha188.TString>;
|
|
85
|
+
picture: alepha188.TOptional<alepha188.TString>;
|
|
86
|
+
sessionId: alepha188.TOptional<alepha188.TString>;
|
|
87
|
+
organizations: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
88
|
+
roles: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
89
89
|
}>>;
|
|
90
|
-
api:
|
|
91
|
-
prefix:
|
|
92
|
-
links:
|
|
93
|
-
name:
|
|
94
|
-
group:
|
|
95
|
-
path:
|
|
96
|
-
method:
|
|
97
|
-
requestBodyType:
|
|
98
|
-
service:
|
|
90
|
+
api: alepha188.TObject<{
|
|
91
|
+
prefix: alepha188.TOptional<alepha188.TString>;
|
|
92
|
+
links: alepha188.TArray<alepha188.TObject<{
|
|
93
|
+
name: alepha188.TString;
|
|
94
|
+
group: alepha188.TOptional<alepha188.TString>;
|
|
95
|
+
path: alepha188.TString;
|
|
96
|
+
method: alepha188.TOptional<alepha188.TString>;
|
|
97
|
+
requestBodyType: alepha188.TOptional<alepha188.TString>;
|
|
98
|
+
service: alepha188.TOptional<alepha188.TString>;
|
|
99
99
|
}>>;
|
|
100
100
|
}>;
|
|
101
101
|
}>;
|
|
@@ -108,35 +108,35 @@ declare class ServerAuthProvider {
|
|
|
108
108
|
protected readonly serverCookiesProvider: ServerCookiesProvider;
|
|
109
109
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
110
110
|
protected readonly serverLinksProvider: ServerLinksProvider;
|
|
111
|
-
protected readonly authorizationCode: alepha_server_cookies0.AbstractCookiePrimitive<
|
|
112
|
-
provider:
|
|
113
|
-
realm:
|
|
114
|
-
codeVerifier:
|
|
115
|
-
redirectUri:
|
|
116
|
-
state:
|
|
117
|
-
nonce:
|
|
111
|
+
protected readonly authorizationCode: alepha_server_cookies0.AbstractCookiePrimitive<alepha188.TObject<{
|
|
112
|
+
provider: alepha188.TString;
|
|
113
|
+
realm: alepha188.TOptional<alepha188.TString>;
|
|
114
|
+
codeVerifier: alepha188.TOptional<alepha188.TString>;
|
|
115
|
+
redirectUri: alepha188.TOptional<alepha188.TString>;
|
|
116
|
+
state: alepha188.TOptional<alepha188.TString>;
|
|
117
|
+
nonce: alepha188.TOptional<alepha188.TString>;
|
|
118
118
|
}>>;
|
|
119
|
-
readonly tokens: alepha_server_cookies0.AbstractCookiePrimitive<
|
|
120
|
-
provider:
|
|
121
|
-
access_token:
|
|
122
|
-
issued_at:
|
|
123
|
-
expires_in:
|
|
124
|
-
refresh_token:
|
|
125
|
-
refresh_token_expires_in:
|
|
126
|
-
refresh_expires_in:
|
|
127
|
-
id_token:
|
|
128
|
-
scope:
|
|
119
|
+
readonly tokens: alepha_server_cookies0.AbstractCookiePrimitive<alepha188.TObject<{
|
|
120
|
+
provider: alepha188.TString;
|
|
121
|
+
access_token: alepha188.TString;
|
|
122
|
+
issued_at: alepha188.TNumber;
|
|
123
|
+
expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
124
|
+
refresh_token: alepha188.TOptional<alepha188.TString>;
|
|
125
|
+
refresh_token_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
126
|
+
refresh_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
127
|
+
id_token: alepha188.TOptional<alepha188.TString>;
|
|
128
|
+
scope: alepha188.TOptional<alepha188.TString>;
|
|
129
129
|
}>>;
|
|
130
130
|
get identities(): Array<AuthPrimitive>;
|
|
131
131
|
getAuthenticationProviders(filters?: {
|
|
132
132
|
realmName?: string;
|
|
133
133
|
}): AuthenticationProvider[];
|
|
134
|
-
protected readonly configure:
|
|
134
|
+
protected readonly configure: alepha188.HookPrimitive<"configure">;
|
|
135
135
|
protected getAccessTokens(tokens: Tokens): string | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
138
138
|
*/
|
|
139
|
-
protected readonly onRequest:
|
|
139
|
+
protected readonly onRequest: alepha188.HookPrimitive<"server:onRequest">;
|
|
140
140
|
/**
|
|
141
141
|
* Convert cookies to tokens.
|
|
142
142
|
* If the tokens are expired, try to refresh them using the refresh token.
|
|
@@ -147,26 +147,26 @@ declare class ServerAuthProvider {
|
|
|
147
147
|
* Get user information.
|
|
148
148
|
*/
|
|
149
149
|
readonly userinfo: alepha_server0.RoutePrimitive<{
|
|
150
|
-
response:
|
|
151
|
-
user:
|
|
152
|
-
id:
|
|
153
|
-
name:
|
|
154
|
-
email:
|
|
155
|
-
username:
|
|
156
|
-
picture:
|
|
157
|
-
sessionId:
|
|
158
|
-
organizations:
|
|
159
|
-
roles:
|
|
150
|
+
response: alepha188.TObject<{
|
|
151
|
+
user: alepha188.TOptional<alepha188.TObject<{
|
|
152
|
+
id: alepha188.TString;
|
|
153
|
+
name: alepha188.TOptional<alepha188.TString>;
|
|
154
|
+
email: alepha188.TOptional<alepha188.TString>;
|
|
155
|
+
username: alepha188.TOptional<alepha188.TString>;
|
|
156
|
+
picture: alepha188.TOptional<alepha188.TString>;
|
|
157
|
+
sessionId: alepha188.TOptional<alepha188.TString>;
|
|
158
|
+
organizations: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
159
|
+
roles: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
160
160
|
}>>;
|
|
161
|
-
api:
|
|
162
|
-
prefix:
|
|
163
|
-
links:
|
|
164
|
-
name:
|
|
165
|
-
group:
|
|
166
|
-
path:
|
|
167
|
-
method:
|
|
168
|
-
requestBodyType:
|
|
169
|
-
service:
|
|
161
|
+
api: alepha188.TObject<{
|
|
162
|
+
prefix: alepha188.TOptional<alepha188.TString>;
|
|
163
|
+
links: alepha188.TArray<alepha188.TObject<{
|
|
164
|
+
name: alepha188.TString;
|
|
165
|
+
group: alepha188.TOptional<alepha188.TString>;
|
|
166
|
+
path: alepha188.TString;
|
|
167
|
+
method: alepha188.TOptional<alepha188.TString>;
|
|
168
|
+
requestBodyType: alepha188.TOptional<alepha188.TString>;
|
|
169
|
+
service: alepha188.TOptional<alepha188.TString>;
|
|
170
170
|
}>>;
|
|
171
171
|
}>;
|
|
172
172
|
}>;
|
|
@@ -175,66 +175,66 @@ declare class ServerAuthProvider {
|
|
|
175
175
|
* Refresh a token for internal providers.
|
|
176
176
|
*/
|
|
177
177
|
readonly refresh: alepha_server0.RoutePrimitive<{
|
|
178
|
-
query:
|
|
179
|
-
provider:
|
|
178
|
+
query: alepha188.TObject<{
|
|
179
|
+
provider: alepha188.TString;
|
|
180
180
|
}>;
|
|
181
|
-
body:
|
|
182
|
-
refresh_token:
|
|
183
|
-
access_token:
|
|
181
|
+
body: alepha188.TObject<{
|
|
182
|
+
refresh_token: alepha188.TString;
|
|
183
|
+
access_token: alepha188.TOptional<alepha188.TString>;
|
|
184
184
|
}>;
|
|
185
|
-
response:
|
|
186
|
-
provider:
|
|
187
|
-
access_token:
|
|
188
|
-
issued_at:
|
|
189
|
-
expires_in:
|
|
190
|
-
refresh_token:
|
|
191
|
-
refresh_token_expires_in:
|
|
192
|
-
refresh_expires_in:
|
|
193
|
-
id_token:
|
|
194
|
-
scope:
|
|
185
|
+
response: alepha188.TObject<{
|
|
186
|
+
provider: alepha188.TString;
|
|
187
|
+
access_token: alepha188.TString;
|
|
188
|
+
issued_at: alepha188.TNumber;
|
|
189
|
+
expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
190
|
+
refresh_token: alepha188.TOptional<alepha188.TString>;
|
|
191
|
+
refresh_token_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
192
|
+
refresh_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
193
|
+
id_token: alepha188.TOptional<alepha188.TString>;
|
|
194
|
+
scope: alepha188.TOptional<alepha188.TString>;
|
|
195
195
|
}>;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
198
198
|
* Login for local password-based authentication.
|
|
199
199
|
*/
|
|
200
200
|
readonly token: alepha_server0.RoutePrimitive<{
|
|
201
|
-
query:
|
|
202
|
-
provider:
|
|
203
|
-
realm:
|
|
201
|
+
query: alepha188.TObject<{
|
|
202
|
+
provider: alepha188.TString;
|
|
203
|
+
realm: alepha188.TOptional<alepha188.TString>;
|
|
204
204
|
}>;
|
|
205
|
-
body:
|
|
206
|
-
username:
|
|
207
|
-
password:
|
|
205
|
+
body: alepha188.TObject<{
|
|
206
|
+
username: alepha188.TString;
|
|
207
|
+
password: alepha188.TString;
|
|
208
208
|
}>;
|
|
209
|
-
response:
|
|
210
|
-
provider:
|
|
211
|
-
access_token:
|
|
212
|
-
issued_at:
|
|
213
|
-
expires_in:
|
|
214
|
-
refresh_token:
|
|
215
|
-
refresh_token_expires_in:
|
|
216
|
-
refresh_expires_in:
|
|
217
|
-
id_token:
|
|
218
|
-
scope:
|
|
219
|
-
user:
|
|
220
|
-
id:
|
|
221
|
-
name:
|
|
222
|
-
email:
|
|
223
|
-
username:
|
|
224
|
-
picture:
|
|
225
|
-
sessionId:
|
|
226
|
-
organizations:
|
|
227
|
-
roles:
|
|
209
|
+
response: alepha188.TObject<{
|
|
210
|
+
provider: alepha188.TString;
|
|
211
|
+
access_token: alepha188.TString;
|
|
212
|
+
issued_at: alepha188.TNumber;
|
|
213
|
+
expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
214
|
+
refresh_token: alepha188.TOptional<alepha188.TString>;
|
|
215
|
+
refresh_token_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
216
|
+
refresh_expires_in: alepha188.TOptional<alepha188.TNumber>;
|
|
217
|
+
id_token: alepha188.TOptional<alepha188.TString>;
|
|
218
|
+
scope: alepha188.TOptional<alepha188.TString>;
|
|
219
|
+
user: alepha188.TObject<{
|
|
220
|
+
id: alepha188.TString;
|
|
221
|
+
name: alepha188.TOptional<alepha188.TString>;
|
|
222
|
+
email: alepha188.TOptional<alepha188.TString>;
|
|
223
|
+
username: alepha188.TOptional<alepha188.TString>;
|
|
224
|
+
picture: alepha188.TOptional<alepha188.TString>;
|
|
225
|
+
sessionId: alepha188.TOptional<alepha188.TString>;
|
|
226
|
+
organizations: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
227
|
+
roles: alepha188.TOptional<alepha188.TArray<alepha188.TString>>;
|
|
228
228
|
}>;
|
|
229
|
-
api:
|
|
230
|
-
prefix:
|
|
231
|
-
links:
|
|
232
|
-
name:
|
|
233
|
-
group:
|
|
234
|
-
path:
|
|
235
|
-
method:
|
|
236
|
-
requestBodyType:
|
|
237
|
-
service:
|
|
229
|
+
api: alepha188.TObject<{
|
|
230
|
+
prefix: alepha188.TOptional<alepha188.TString>;
|
|
231
|
+
links: alepha188.TArray<alepha188.TObject<{
|
|
232
|
+
name: alepha188.TString;
|
|
233
|
+
group: alepha188.TOptional<alepha188.TString>;
|
|
234
|
+
path: alepha188.TString;
|
|
235
|
+
method: alepha188.TOptional<alepha188.TString>;
|
|
236
|
+
requestBodyType: alepha188.TOptional<alepha188.TString>;
|
|
237
|
+
service: alepha188.TOptional<alepha188.TString>;
|
|
238
238
|
}>>;
|
|
239
239
|
}>;
|
|
240
240
|
}>;
|
|
@@ -243,10 +243,10 @@ declare class ServerAuthProvider {
|
|
|
243
243
|
* Oauth2/OIDC login route.
|
|
244
244
|
*/
|
|
245
245
|
readonly login: alepha_server0.RoutePrimitive<{
|
|
246
|
-
query:
|
|
247
|
-
provider:
|
|
248
|
-
realm:
|
|
249
|
-
redirect_uri:
|
|
246
|
+
query: alepha188.TObject<{
|
|
247
|
+
provider: alepha188.TString;
|
|
248
|
+
realm: alepha188.TOptional<alepha188.TString>;
|
|
249
|
+
redirect_uri: alepha188.TOptional<alepha188.TString>;
|
|
250
250
|
}>;
|
|
251
251
|
}>;
|
|
252
252
|
/**
|
|
@@ -258,8 +258,8 @@ declare class ServerAuthProvider {
|
|
|
258
258
|
* Logout route for OAuth2/OIDC providers.
|
|
259
259
|
*/
|
|
260
260
|
readonly logout: alepha_server0.RoutePrimitive<{
|
|
261
|
-
query:
|
|
262
|
-
post_logout_redirect_uri:
|
|
261
|
+
query: alepha188.TObject<{
|
|
262
|
+
post_logout_redirect_uri: alepha188.TOptional<alepha188.TString>;
|
|
263
263
|
}>;
|
|
264
264
|
}>;
|
|
265
265
|
/**
|
|
@@ -588,7 +588,7 @@ declare module "alepha" {
|
|
|
588
588
|
* @see {@link ServerAuthProvider}
|
|
589
589
|
* @module alepha.server.auth
|
|
590
590
|
*/
|
|
591
|
-
declare const AlephaServerAuth:
|
|
591
|
+
declare const AlephaServerAuth: alepha188.Service<alepha188.Module>;
|
|
592
592
|
//#endregion
|
|
593
593
|
export { $auth, $authCredentials, $authGithub, $authGoogle, AccessToken, AlephaServerAuth, AuthExternal, AuthInternal, AuthPrimitive, AuthPrimitiveOptions, AuthenticationProvider, Credentials, CredentialsFn, CredentialsOptions, LinkAccountFn, LinkAccountOptions, OAuth2Options, OAuth2Profile, OidcOptions, ServerAuthProvider, TokenResponse, Tokens, UserinfoResponse, WithLinkFn, WithLoginFn, alephaServerAuthRoutes, authenticationProviderSchema, tokenResponseSchema, tokensSchema, userinfoResponseSchema };
|
|
594
594
|
//# sourceMappingURL=index.d.ts.map
|