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.
Files changed (149) hide show
  1. package/README.md +3 -3
  2. package/dist/api/audits/index.d.ts +80 -1
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.d.ts +80 -1
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js.map +1 -1
  8. package/dist/api/jobs/index.d.ts +236 -157
  9. package/dist/api/jobs/index.d.ts.map +1 -1
  10. package/dist/api/jobs/index.js.map +1 -1
  11. package/dist/api/notifications/index.d.ts +21 -1
  12. package/dist/api/notifications/index.d.ts.map +1 -1
  13. package/dist/api/parameters/index.d.ts +451 -4
  14. package/dist/api/parameters/index.d.ts.map +1 -1
  15. package/dist/api/parameters/index.js.map +1 -1
  16. package/dist/api/users/index.d.ts +252 -249
  17. package/dist/api/users/index.d.ts.map +1 -1
  18. package/dist/api/users/index.js +4 -0
  19. package/dist/api/users/index.js.map +1 -1
  20. package/dist/api/verifications/index.d.ts +128 -128
  21. package/dist/api/verifications/index.d.ts.map +1 -1
  22. package/dist/batch/index.js.map +1 -1
  23. package/dist/cache/core/index.js.map +1 -1
  24. package/dist/cli/index.d.ts +304 -115
  25. package/dist/cli/index.d.ts.map +1 -1
  26. package/dist/cli/index.js +650 -531
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/command/index.d.ts +210 -13
  29. package/dist/command/index.d.ts.map +1 -1
  30. package/dist/command/index.js +306 -69
  31. package/dist/command/index.js.map +1 -1
  32. package/dist/core/index.browser.js.map +1 -1
  33. package/dist/core/index.d.ts +1 -1
  34. package/dist/core/index.d.ts.map +1 -1
  35. package/dist/core/index.js +7 -6
  36. package/dist/core/index.js.map +1 -1
  37. package/dist/core/index.native.js +7 -6
  38. package/dist/core/index.native.js.map +1 -1
  39. package/dist/datetime/index.js.map +1 -1
  40. package/dist/fake/index.js.map +1 -1
  41. package/dist/file/index.d.ts.map +1 -1
  42. package/dist/file/index.js.map +1 -1
  43. package/dist/lock/redis/index.js.map +1 -1
  44. package/dist/logger/index.js.map +1 -1
  45. package/dist/mcp/index.js.map +1 -1
  46. package/dist/orm/index.browser.js +26 -5
  47. package/dist/orm/index.browser.js.map +1 -1
  48. package/dist/orm/index.d.ts +294 -215
  49. package/dist/orm/index.d.ts.map +1 -1
  50. package/dist/orm/index.js +522 -523
  51. package/dist/orm/index.js.map +1 -1
  52. package/dist/queue/redis/index.js +2 -4
  53. package/dist/queue/redis/index.js.map +1 -1
  54. package/dist/redis/index.d.ts +400 -29
  55. package/dist/redis/index.d.ts.map +1 -1
  56. package/dist/redis/index.js +412 -21
  57. package/dist/redis/index.js.map +1 -1
  58. package/dist/retry/index.js.map +1 -1
  59. package/dist/router/index.js.map +1 -1
  60. package/dist/scheduler/index.js.map +1 -1
  61. package/dist/security/index.d.ts.map +1 -1
  62. package/dist/security/index.js.map +1 -1
  63. package/dist/server/auth/index.d.ts +155 -155
  64. package/dist/server/auth/index.js.map +1 -1
  65. package/dist/server/cache/index.js.map +1 -1
  66. package/dist/server/cookies/index.browser.js.map +1 -1
  67. package/dist/server/cookies/index.js.map +1 -1
  68. package/dist/server/core/index.browser.js.map +1 -1
  69. package/dist/server/core/index.d.ts +0 -1
  70. package/dist/server/core/index.d.ts.map +1 -1
  71. package/dist/server/core/index.js.map +1 -1
  72. package/dist/server/helmet/index.d.ts +4 -1
  73. package/dist/server/helmet/index.d.ts.map +1 -1
  74. package/dist/server/helmet/index.js.map +1 -1
  75. package/dist/server/links/index.browser.js.map +1 -1
  76. package/dist/server/links/index.js.map +1 -1
  77. package/dist/server/multipart/index.d.ts.map +1 -1
  78. package/dist/server/multipart/index.js.map +1 -1
  79. package/dist/server/proxy/index.js.map +1 -1
  80. package/dist/server/rate-limit/index.js.map +1 -1
  81. package/dist/server/security/index.d.ts +9 -9
  82. package/dist/server/security/index.js.map +1 -1
  83. package/dist/server/swagger/index.js.map +1 -1
  84. package/dist/thread/index.js.map +1 -1
  85. package/dist/topic/core/index.js.map +1 -1
  86. package/dist/topic/redis/index.js +3 -3
  87. package/dist/topic/redis/index.js.map +1 -1
  88. package/dist/vite/index.js +9 -6
  89. package/dist/vite/index.js.map +1 -1
  90. package/dist/websocket/index.browser.js.map +1 -1
  91. package/dist/websocket/index.d.ts +7 -7
  92. package/dist/websocket/index.js.map +1 -1
  93. package/package.json +3 -3
  94. package/src/api/users/index.ts +4 -0
  95. package/src/cli/apps/AlephaCli.ts +36 -14
  96. package/src/cli/apps/AlephaPackageBuilderCli.ts +5 -1
  97. package/src/cli/assets/appRouterTs.ts +1 -1
  98. package/src/cli/atoms/changelogOptions.ts +45 -0
  99. package/src/cli/commands/{ViteCommands.ts → build.ts} +4 -93
  100. package/src/cli/commands/changelog.ts +244 -0
  101. package/src/cli/commands/clean.ts +14 -0
  102. package/src/cli/commands/{DrizzleCommands.ts → db.ts} +37 -124
  103. package/src/cli/commands/deploy.ts +118 -0
  104. package/src/cli/commands/dev.ts +57 -0
  105. package/src/cli/commands/format.ts +17 -0
  106. package/src/cli/commands/{CoreCommands.ts → init.ts} +2 -40
  107. package/src/cli/commands/lint.ts +17 -0
  108. package/src/cli/commands/root.ts +32 -0
  109. package/src/cli/commands/run.ts +24 -0
  110. package/src/cli/commands/test.ts +42 -0
  111. package/src/cli/commands/typecheck.ts +19 -0
  112. package/src/cli/commands/{VerifyCommands.ts → verify.ts} +1 -13
  113. package/src/cli/defineConfig.ts +24 -0
  114. package/src/cli/index.ts +17 -5
  115. package/src/cli/services/AlephaCliUtils.ts +4 -21
  116. package/src/cli/services/GitMessageParser.ts +77 -0
  117. package/src/command/helpers/EnvUtils.ts +37 -0
  118. package/src/command/index.ts +3 -1
  119. package/src/command/primitives/$command.ts +172 -6
  120. package/src/command/providers/CliProvider.ts +424 -91
  121. package/src/core/Alepha.ts +8 -5
  122. package/src/file/providers/NodeFileSystemProvider.ts +3 -1
  123. package/src/orm/index.browser.ts +1 -1
  124. package/src/orm/index.ts +18 -10
  125. package/src/orm/interfaces/PgQueryWhere.ts +1 -26
  126. package/src/orm/providers/{PostgresTypeProvider.ts → DatabaseTypeProvider.ts} +25 -3
  127. package/src/orm/providers/drivers/BunPostgresProvider.ts +225 -0
  128. package/src/orm/providers/drivers/BunSqliteProvider.ts +180 -0
  129. package/src/orm/providers/drivers/DatabaseProvider.ts +25 -0
  130. package/src/orm/providers/drivers/NodePostgresProvider.ts +0 -25
  131. package/src/orm/services/QueryManager.ts +10 -125
  132. package/src/queue/redis/providers/RedisQueueProvider.ts +2 -7
  133. package/src/redis/index.ts +65 -3
  134. package/src/redis/providers/BunRedisProvider.ts +304 -0
  135. package/src/redis/providers/BunRedisSubscriberProvider.ts +94 -0
  136. package/src/redis/providers/NodeRedisProvider.ts +280 -0
  137. package/src/redis/providers/NodeRedisSubscriberProvider.ts +94 -0
  138. package/src/redis/providers/RedisProvider.ts +134 -140
  139. package/src/redis/providers/RedisSubscriberProvider.ts +58 -49
  140. package/src/server/core/providers/BunHttpServerProvider.ts +0 -3
  141. package/src/server/core/providers/ServerBodyParserProvider.ts +3 -1
  142. package/src/server/core/providers/ServerProvider.ts +7 -4
  143. package/src/server/multipart/providers/ServerMultipartProvider.ts +3 -1
  144. package/src/server/proxy/providers/ServerProxyProvider.ts +1 -1
  145. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  146. package/src/vite/tasks/buildServer.ts +1 -0
  147. package/src/cli/commands/BiomeCommands.ts +0 -29
  148. package/src/cli/commands/ChangelogCommands.ts +0 -389
  149. package/src/orm/services/PgJsonQueryManager.ts +0 -511
@@ -1,4 +1,4 @@
1
- import * as alepha169 from "alepha";
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: alepha169.TObject<{
24
- name: alepha169.TString;
25
- type: alepha169.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
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: alepha169.TObject<{
31
- provider: alepha169.TString;
32
- access_token: alepha169.TString;
33
- issued_at: alepha169.TNumber;
34
- expires_in: alepha169.TOptional<alepha169.TNumber>;
35
- refresh_token: alepha169.TOptional<alepha169.TString>;
36
- refresh_token_expires_in: alepha169.TOptional<alepha169.TNumber>;
37
- refresh_expires_in: alepha169.TOptional<alepha169.TNumber>;
38
- id_token: alepha169.TOptional<alepha169.TString>;
39
- scope: alepha169.TOptional<alepha169.TString>;
40
- user: alepha169.TObject<{
41
- id: alepha169.TString;
42
- name: alepha169.TOptional<alepha169.TString>;
43
- email: alepha169.TOptional<alepha169.TString>;
44
- username: alepha169.TOptional<alepha169.TString>;
45
- picture: alepha169.TOptional<alepha169.TString>;
46
- sessionId: alepha169.TOptional<alepha169.TString>;
47
- organizations: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
48
- roles: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
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: alepha169.TObject<{
51
- prefix: alepha169.TOptional<alepha169.TString>;
52
- links: alepha169.TArray<alepha169.TObject<{
53
- name: alepha169.TString;
54
- group: alepha169.TOptional<alepha169.TString>;
55
- path: alepha169.TString;
56
- method: alepha169.TOptional<alepha169.TString>;
57
- requestBodyType: alepha169.TOptional<alepha169.TString>;
58
- service: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
66
- provider: alepha169.TString;
67
- access_token: alepha169.TString;
68
- issued_at: alepha169.TNumber;
69
- expires_in: alepha169.TOptional<alepha169.TNumber>;
70
- refresh_token: alepha169.TOptional<alepha169.TString>;
71
- refresh_token_expires_in: alepha169.TOptional<alepha169.TNumber>;
72
- refresh_expires_in: alepha169.TOptional<alepha169.TNumber>;
73
- id_token: alepha169.TOptional<alepha169.TString>;
74
- scope: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
80
- user: alepha169.TOptional<alepha169.TObject<{
81
- id: alepha169.TString;
82
- name: alepha169.TOptional<alepha169.TString>;
83
- email: alepha169.TOptional<alepha169.TString>;
84
- username: alepha169.TOptional<alepha169.TString>;
85
- picture: alepha169.TOptional<alepha169.TString>;
86
- sessionId: alepha169.TOptional<alepha169.TString>;
87
- organizations: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
88
- roles: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
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: alepha169.TObject<{
91
- prefix: alepha169.TOptional<alepha169.TString>;
92
- links: alepha169.TArray<alepha169.TObject<{
93
- name: alepha169.TString;
94
- group: alepha169.TOptional<alepha169.TString>;
95
- path: alepha169.TString;
96
- method: alepha169.TOptional<alepha169.TString>;
97
- requestBodyType: alepha169.TOptional<alepha169.TString>;
98
- service: alepha169.TOptional<alepha169.TString>;
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<alepha169.TObject<{
112
- provider: alepha169.TString;
113
- realm: alepha169.TOptional<alepha169.TString>;
114
- codeVerifier: alepha169.TOptional<alepha169.TString>;
115
- redirectUri: alepha169.TOptional<alepha169.TString>;
116
- state: alepha169.TOptional<alepha169.TString>;
117
- nonce: alepha169.TOptional<alepha169.TString>;
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<alepha169.TObject<{
120
- provider: alepha169.TString;
121
- access_token: alepha169.TString;
122
- issued_at: alepha169.TNumber;
123
- expires_in: alepha169.TOptional<alepha169.TNumber>;
124
- refresh_token: alepha169.TOptional<alepha169.TString>;
125
- refresh_token_expires_in: alepha169.TOptional<alepha169.TNumber>;
126
- refresh_expires_in: alepha169.TOptional<alepha169.TNumber>;
127
- id_token: alepha169.TOptional<alepha169.TString>;
128
- scope: alepha169.TOptional<alepha169.TString>;
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: alepha169.HookPrimitive<"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: alepha169.HookPrimitive<"server: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: alepha169.TObject<{
151
- user: alepha169.TOptional<alepha169.TObject<{
152
- id: alepha169.TString;
153
- name: alepha169.TOptional<alepha169.TString>;
154
- email: alepha169.TOptional<alepha169.TString>;
155
- username: alepha169.TOptional<alepha169.TString>;
156
- picture: alepha169.TOptional<alepha169.TString>;
157
- sessionId: alepha169.TOptional<alepha169.TString>;
158
- organizations: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
159
- roles: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
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: alepha169.TObject<{
162
- prefix: alepha169.TOptional<alepha169.TString>;
163
- links: alepha169.TArray<alepha169.TObject<{
164
- name: alepha169.TString;
165
- group: alepha169.TOptional<alepha169.TString>;
166
- path: alepha169.TString;
167
- method: alepha169.TOptional<alepha169.TString>;
168
- requestBodyType: alepha169.TOptional<alepha169.TString>;
169
- service: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
179
- provider: alepha169.TString;
178
+ query: alepha188.TObject<{
179
+ provider: alepha188.TString;
180
180
  }>;
181
- body: alepha169.TObject<{
182
- refresh_token: alepha169.TString;
183
- access_token: alepha169.TOptional<alepha169.TString>;
181
+ body: alepha188.TObject<{
182
+ refresh_token: alepha188.TString;
183
+ access_token: alepha188.TOptional<alepha188.TString>;
184
184
  }>;
185
- response: alepha169.TObject<{
186
- provider: alepha169.TString;
187
- access_token: alepha169.TString;
188
- issued_at: alepha169.TNumber;
189
- expires_in: alepha169.TOptional<alepha169.TNumber>;
190
- refresh_token: alepha169.TOptional<alepha169.TString>;
191
- refresh_token_expires_in: alepha169.TOptional<alepha169.TNumber>;
192
- refresh_expires_in: alepha169.TOptional<alepha169.TNumber>;
193
- id_token: alepha169.TOptional<alepha169.TString>;
194
- scope: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
202
- provider: alepha169.TString;
203
- realm: alepha169.TOptional<alepha169.TString>;
201
+ query: alepha188.TObject<{
202
+ provider: alepha188.TString;
203
+ realm: alepha188.TOptional<alepha188.TString>;
204
204
  }>;
205
- body: alepha169.TObject<{
206
- username: alepha169.TString;
207
- password: alepha169.TString;
205
+ body: alepha188.TObject<{
206
+ username: alepha188.TString;
207
+ password: alepha188.TString;
208
208
  }>;
209
- response: alepha169.TObject<{
210
- provider: alepha169.TString;
211
- access_token: alepha169.TString;
212
- issued_at: alepha169.TNumber;
213
- expires_in: alepha169.TOptional<alepha169.TNumber>;
214
- refresh_token: alepha169.TOptional<alepha169.TString>;
215
- refresh_token_expires_in: alepha169.TOptional<alepha169.TNumber>;
216
- refresh_expires_in: alepha169.TOptional<alepha169.TNumber>;
217
- id_token: alepha169.TOptional<alepha169.TString>;
218
- scope: alepha169.TOptional<alepha169.TString>;
219
- user: alepha169.TObject<{
220
- id: alepha169.TString;
221
- name: alepha169.TOptional<alepha169.TString>;
222
- email: alepha169.TOptional<alepha169.TString>;
223
- username: alepha169.TOptional<alepha169.TString>;
224
- picture: alepha169.TOptional<alepha169.TString>;
225
- sessionId: alepha169.TOptional<alepha169.TString>;
226
- organizations: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
227
- roles: alepha169.TOptional<alepha169.TArray<alepha169.TString>>;
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: alepha169.TObject<{
230
- prefix: alepha169.TOptional<alepha169.TString>;
231
- links: alepha169.TArray<alepha169.TObject<{
232
- name: alepha169.TString;
233
- group: alepha169.TOptional<alepha169.TString>;
234
- path: alepha169.TString;
235
- method: alepha169.TOptional<alepha169.TString>;
236
- requestBodyType: alepha169.TOptional<alepha169.TString>;
237
- service: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
247
- provider: alepha169.TString;
248
- realm: alepha169.TOptional<alepha169.TString>;
249
- redirect_uri: alepha169.TOptional<alepha169.TString>;
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: alepha169.TObject<{
262
- post_logout_redirect_uri: alepha169.TOptional<alepha169.TString>;
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: alepha169.Service<alepha169.Module>;
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