alepha 0.20.6 → 0.20.8

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 (243) hide show
  1. package/AGENTS.md +0 -1
  2. package/CLAUDE.md +0 -1
  3. package/assets/agents-template.md +0 -1
  4. package/dist/api/audits/index.browser.js +1 -0
  5. package/dist/api/audits/index.browser.js.map +1 -1
  6. package/dist/api/audits/index.d.ts +370 -355
  7. package/dist/api/audits/index.d.ts.map +1 -1
  8. package/dist/api/audits/index.js +1 -0
  9. package/dist/api/audits/index.js.map +1 -1
  10. package/dist/api/files/index.browser.js +1 -0
  11. package/dist/api/files/index.browser.js.map +1 -1
  12. package/dist/api/files/index.d.ts +179 -170
  13. package/dist/api/files/index.d.ts.map +1 -1
  14. package/dist/api/files/index.js +1 -0
  15. package/dist/api/files/index.js.map +1 -1
  16. package/dist/api/jobs/index.browser.js +7 -0
  17. package/dist/api/jobs/index.browser.js.map +1 -1
  18. package/dist/api/jobs/index.d.ts +259 -250
  19. package/dist/api/jobs/index.d.ts.map +1 -1
  20. package/dist/api/jobs/index.js +21 -3
  21. package/dist/api/jobs/index.js.map +1 -1
  22. package/dist/api/keys/index.d.ts +198 -192
  23. package/dist/api/keys/index.d.ts.map +1 -1
  24. package/dist/api/keys/index.js +1 -0
  25. package/dist/api/keys/index.js.map +1 -1
  26. package/dist/api/notifications/index.d.ts +246 -245
  27. package/dist/api/notifications/index.d.ts.map +1 -1
  28. package/dist/api/organizations/index.d.ts +100 -97
  29. package/dist/api/organizations/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.d.ts +323 -320
  31. package/dist/api/parameters/index.d.ts.map +1 -1
  32. package/dist/api/payments/index.d.ts +431 -376
  33. package/dist/api/payments/index.d.ts.map +1 -1
  34. package/dist/api/payments/index.js +202 -87
  35. package/dist/api/payments/index.js.map +1 -1
  36. package/dist/api/subscriptions/index.d.ts +1695 -0
  37. package/dist/api/subscriptions/index.d.ts.map +1 -0
  38. package/dist/api/subscriptions/index.js +1919 -0
  39. package/dist/api/subscriptions/index.js.map +1 -0
  40. package/dist/api/users/index.d.ts +857 -841
  41. package/dist/api/users/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.d.ts +128 -127
  43. package/dist/api/verifications/index.d.ts.map +1 -1
  44. package/dist/bucket/index.d.ts +3 -2
  45. package/dist/bucket/index.d.ts.map +1 -1
  46. package/dist/cache/core/index.d.ts +114 -4
  47. package/dist/cache/core/index.d.ts.map +1 -1
  48. package/dist/cache/core/index.js +181 -15
  49. package/dist/cache/core/index.js.map +1 -1
  50. package/dist/cache/core/index.workerd.js +181 -15
  51. package/dist/cache/core/index.workerd.js.map +1 -1
  52. package/dist/cache/database/index.d.ts +20 -19
  53. package/dist/cache/database/index.d.ts.map +1 -1
  54. package/dist/cache/redis/index.d.ts +3 -2
  55. package/dist/cache/redis/index.d.ts.map +1 -1
  56. package/dist/cli/core/index.d.ts +116 -132
  57. package/dist/cli/core/index.d.ts.map +1 -1
  58. package/dist/cli/core/index.js +75 -7
  59. package/dist/cli/core/index.js.map +1 -1
  60. package/dist/cli/devtools/index.d.ts +3 -2
  61. package/dist/cli/devtools/index.d.ts.map +1 -1
  62. package/dist/cli/platform/index.d.ts +346 -290
  63. package/dist/cli/platform/index.d.ts.map +1 -1
  64. package/dist/cli/platform/index.js +105 -6
  65. package/dist/cli/platform/index.js.map +1 -1
  66. package/dist/cli/vendor/index.d.ts +12 -11
  67. package/dist/cli/vendor/index.d.ts.map +1 -1
  68. package/dist/command/index.d.ts +5 -4
  69. package/dist/command/index.d.ts.map +1 -1
  70. package/dist/core/index.browser.js +1 -1
  71. package/dist/core/index.browser.js.map +1 -1
  72. package/dist/core/index.d.ts +119 -118
  73. package/dist/core/index.d.ts.map +1 -1
  74. package/dist/core/index.js +1 -1
  75. package/dist/core/index.js.map +1 -1
  76. package/dist/core/index.native.js +1 -1
  77. package/dist/core/index.native.js.map +1 -1
  78. package/dist/core/index.workerd.js +1 -1
  79. package/dist/core/index.workerd.js.map +1 -1
  80. package/dist/crypto/index.d.ts +3 -2
  81. package/dist/crypto/index.d.ts.map +1 -1
  82. package/dist/email/core/index.d.ts +3 -2
  83. package/dist/email/core/index.d.ts.map +1 -1
  84. package/dist/email/smtp/index.d.ts +7 -6
  85. package/dist/email/smtp/index.d.ts.map +1 -1
  86. package/dist/lock/core/index.d.ts +5 -4
  87. package/dist/lock/core/index.d.ts.map +1 -1
  88. package/dist/logger/index.d.ts +10 -9
  89. package/dist/logger/index.d.ts.map +1 -1
  90. package/dist/mcp/index.d.ts +9 -8
  91. package/dist/mcp/index.d.ts.map +1 -1
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/index.js.map +1 -1
  94. package/dist/orm/core/index.browser.js +9 -3
  95. package/dist/orm/core/index.browser.js.map +1 -1
  96. package/dist/orm/core/index.bun.js +31 -10
  97. package/dist/orm/core/index.bun.js.map +1 -1
  98. package/dist/orm/core/index.d.ts +33 -14
  99. package/dist/orm/core/index.d.ts.map +1 -1
  100. package/dist/orm/core/index.js +31 -10
  101. package/dist/orm/core/index.js.map +1 -1
  102. package/dist/orm/postgres/index.d.ts +6 -5
  103. package/dist/orm/postgres/index.d.ts.map +1 -1
  104. package/dist/queue/core/index.d.ts +5 -4
  105. package/dist/queue/core/index.d.ts.map +1 -1
  106. package/dist/queue/redis/index.d.ts +3 -2
  107. package/dist/queue/redis/index.d.ts.map +1 -1
  108. package/dist/react/form/index.d.ts +5 -0
  109. package/dist/react/form/index.d.ts.map +1 -1
  110. package/dist/react/form/index.js +6 -4
  111. package/dist/react/form/index.js.map +1 -1
  112. package/dist/react/i18n/index.d.ts +2 -1
  113. package/dist/react/i18n/index.d.ts.map +1 -1
  114. package/dist/react/router/index.d.ts +206 -205
  115. package/dist/react/router/index.d.ts.map +1 -1
  116. package/dist/react/ui/index.d.ts +11 -11
  117. package/dist/react/ui/index.d.ts.map +1 -1
  118. package/dist/scheduler/index.d.ts +3 -2
  119. package/dist/scheduler/index.d.ts.map +1 -1
  120. package/dist/security/index.browser.js +29 -1
  121. package/dist/security/index.browser.js.map +1 -1
  122. package/dist/security/index.d.ts +82 -35
  123. package/dist/security/index.d.ts.map +1 -1
  124. package/dist/security/index.js +56 -3
  125. package/dist/security/index.js.map +1 -1
  126. package/dist/server/auth/index.d.ts +163 -158
  127. package/dist/server/auth/index.d.ts.map +1 -1
  128. package/dist/server/auth/index.js +16 -4
  129. package/dist/server/auth/index.js.map +1 -1
  130. package/dist/server/core/index.d.ts +35 -34
  131. package/dist/server/core/index.d.ts.map +1 -1
  132. package/dist/server/cors/index.d.ts +7 -6
  133. package/dist/server/cors/index.d.ts.map +1 -1
  134. package/dist/server/health/index.d.ts +16 -15
  135. package/dist/server/health/index.d.ts.map +1 -1
  136. package/dist/server/links/index.d.ts +51 -50
  137. package/dist/server/links/index.d.ts.map +1 -1
  138. package/dist/server/rate-limit/index.d.ts +6 -5
  139. package/dist/server/rate-limit/index.d.ts.map +1 -1
  140. package/dist/server/swagger/index.d.ts +2 -1
  141. package/dist/server/swagger/index.d.ts.map +1 -1
  142. package/dist/topic/redis/index.d.ts +3 -2
  143. package/dist/topic/redis/index.d.ts.map +1 -1
  144. package/package.json +16 -32
  145. package/src/api/audits/entities/audits.ts +1 -0
  146. package/src/api/files/entities/files.ts +1 -0
  147. package/src/api/jobs/__tests__/$job.spec.ts +92 -40
  148. package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
  149. package/src/api/jobs/providers/JobProvider.ts +20 -5
  150. package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
  151. package/src/api/keys/entities/apiKeyEntity.ts +1 -0
  152. package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
  153. package/src/api/payments/index.ts +3 -0
  154. package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
  155. package/src/api/payments/providers/PaymentProvider.ts +25 -9
  156. package/src/api/payments/services/PaymentService.ts +3 -0
  157. package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
  158. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
  159. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
  160. package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
  161. package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
  162. package/src/api/subscriptions/entities/subscriptions.ts +68 -0
  163. package/src/api/subscriptions/index.ts +133 -0
  164. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
  165. package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
  166. package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
  167. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
  168. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
  169. package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
  170. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
  171. package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
  172. package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
  173. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
  174. package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
  175. package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
  176. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
  177. package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
  178. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
  179. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
  180. package/src/api/subscriptions/services/BillingService.ts +437 -0
  181. package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
  182. package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
  183. package/src/api/subscriptions/services/UsageService.ts +118 -0
  184. package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
  185. package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
  186. package/src/cache/core/index.ts +16 -0
  187. package/src/cache/core/primitives/$cache.ts +347 -21
  188. package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
  189. package/src/cli/core/templates/agentMd.ts +39 -4
  190. package/src/cli/core/templates/biomeJson.ts +25 -1
  191. package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
  192. package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
  193. package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
  194. package/src/cli/platform/atoms/platformOptions.ts +13 -0
  195. package/src/cli/platform/schemas/platform.ts +1 -0
  196. package/src/cli/platform/services/CloudflareApi.ts +61 -0
  197. package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
  198. package/src/core/__tests__/$module.spec.ts +2 -2
  199. package/src/core/primitives/$module.ts +4 -4
  200. package/src/mcp/providers/McpServerProvider.ts +1 -1
  201. package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
  202. package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
  203. package/src/orm/core/schemas/insertSchema.ts +10 -2
  204. package/src/orm/core/services/Repository.ts +27 -7
  205. package/src/react/form/hooks/useFormState.ts +8 -1
  206. package/src/react/form/index.ts +10 -1
  207. package/src/react/form/services/FormModel.ts +9 -3
  208. package/src/security/atoms/currentTenantAtom.ts +34 -0
  209. package/src/security/index.browser.ts +1 -0
  210. package/src/security/index.ts +12 -1
  211. package/src/security/primitives/$issuer.ts +17 -1
  212. package/src/security/providers/SecurityProvider.ts +37 -0
  213. package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
  214. package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
  215. package/tsconfig.base.json +2 -1
  216. package/dist/react/websocket/index.d.ts +0 -117
  217. package/dist/react/websocket/index.d.ts.map +0 -1
  218. package/dist/react/websocket/index.js +0 -108
  219. package/dist/react/websocket/index.js.map +0 -1
  220. package/dist/websocket/index.browser.js +0 -848
  221. package/dist/websocket/index.browser.js.map +0 -1
  222. package/dist/websocket/index.d.ts +0 -876
  223. package/dist/websocket/index.d.ts.map +0 -1
  224. package/dist/websocket/index.js +0 -1185
  225. package/dist/websocket/index.js.map +0 -1
  226. package/src/react/websocket/hooks/useRoom.tsx +0 -251
  227. package/src/react/websocket/index.ts +0 -7
  228. package/src/websocket/__tests__/$channel.spec.ts +0 -30
  229. package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
  230. package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
  231. package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
  232. package/src/websocket/errors/WebSocketError.ts +0 -34
  233. package/src/websocket/index.browser.ts +0 -25
  234. package/src/websocket/index.shared.ts +0 -8
  235. package/src/websocket/index.ts +0 -85
  236. package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
  237. package/src/websocket/primitives/$channel.ts +0 -131
  238. package/src/websocket/primitives/$websocket.ts +0 -107
  239. package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
  240. package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
  241. package/src/websocket/services/RoomManager.ts +0 -160
  242. package/src/websocket/services/WebSocketClient.ts +0 -642
  243. package/src/websocket/services/WebSocketTopicService.ts +0 -108
@@ -6,24 +6,26 @@ import * as _$alepha_orm0 from "alepha/orm";
6
6
  import * as _$alepha_cache0 from "alepha/cache";
7
7
  import { DateTimeProvider } from "alepha/datetime";
8
8
  import * as _$alepha_logger0 from "alepha/logger";
9
+ import * as _$typebox from "typebox";
9
10
 
10
11
  //#region ../../src/api/keys/entities/apiKeyEntity.d.ts
11
- declare const apiKeyEntity: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
12
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
13
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
14
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
15
- userId: _$alepha.TString;
16
- name: _$alepha.TString;
17
- description: _$alepha.TOptional<_$alepha.TString>;
18
- tokenHash: _$alepha.TString;
19
- tokenPrefix: _$alepha.TString;
20
- tokenSuffix: _$alepha.TString;
21
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
22
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
23
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
24
- usageCount: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
25
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
26
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
12
+ declare const apiKeyEntity: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
13
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
14
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
15
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
16
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
17
+ userId: _$typebox.TString;
18
+ name: _$typebox.TString;
19
+ description: _$typebox.TOptional<_$typebox.TString>;
20
+ tokenHash: _$typebox.TString;
21
+ tokenPrefix: _$typebox.TString;
22
+ tokenSuffix: _$typebox.TString;
23
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
24
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
25
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
26
+ usageCount: _$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
27
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
28
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
27
29
  }>>;
28
30
  type ApiKeyEntity = Static<typeof apiKeyEntity.schema>;
29
31
  //#endregion
@@ -32,22 +34,23 @@ declare class ApiKeyService {
32
34
  protected readonly alepha: Alepha;
33
35
  protected readonly dateTimeProvider: DateTimeProvider;
34
36
  protected readonly log: _$alepha_logger0.Logger;
35
- protected readonly repo: _$alepha_orm0.Repository<_$alepha.TObject<{
36
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
37
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
38
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
39
- userId: _$alepha.TString;
40
- name: _$alepha.TString;
41
- description: _$alepha.TOptional<_$alepha.TString>;
42
- tokenHash: _$alepha.TString;
43
- tokenPrefix: _$alepha.TString;
44
- tokenSuffix: _$alepha.TString;
45
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
46
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
47
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
48
- usageCount: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
49
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
50
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
37
+ protected readonly repo: _$alepha_orm0.Repository<_$typebox.TObject<{
38
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
39
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
40
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
41
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
42
+ userId: _$typebox.TString;
43
+ name: _$typebox.TString;
44
+ description: _$typebox.TOptional<_$typebox.TString>;
45
+ tokenHash: _$typebox.TString;
46
+ tokenPrefix: _$typebox.TString;
47
+ tokenSuffix: _$typebox.TString;
48
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
49
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
50
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
51
+ usageCount: _$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
52
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
53
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
51
54
  }>>;
52
55
  /**
53
56
  * Cache validated API keys for 15 minutes.
@@ -73,6 +76,7 @@ declare class ApiKeyService {
73
76
  id: string;
74
77
  createdAt: string;
75
78
  updatedAt: string;
79
+ organizationId: string;
76
80
  userId: string;
77
81
  name: string;
78
82
  tokenHash: string;
@@ -120,38 +124,40 @@ declare class ApiKeyService {
120
124
  page?: number;
121
125
  size?: number;
122
126
  sort?: string;
123
- }): Promise<_$alepha.Page<_$alepha_orm0.PgStatic<_$alepha.TObject<{
124
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
125
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
126
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
127
- userId: _$alepha.TString;
128
- name: _$alepha.TString;
129
- description: _$alepha.TOptional<_$alepha.TString>;
130
- tokenHash: _$alepha.TString;
131
- tokenPrefix: _$alepha.TString;
132
- tokenSuffix: _$alepha.TString;
133
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
134
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
135
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
136
- usageCount: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
137
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
138
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
139
- }>, _$alepha_orm0.PgRelationMap<_$alepha.TObject<{
140
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
141
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
142
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
143
- userId: _$alepha.TString;
144
- name: _$alepha.TString;
145
- description: _$alepha.TOptional<_$alepha.TString>;
146
- tokenHash: _$alepha.TString;
147
- tokenPrefix: _$alepha.TString;
148
- tokenSuffix: _$alepha.TString;
149
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
150
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
151
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
152
- usageCount: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
153
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
154
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
127
+ }): Promise<_$alepha.Page<_$alepha_orm0.PgStatic<_$typebox.TObject<{
128
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
129
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
130
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
131
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
132
+ userId: _$typebox.TString;
133
+ name: _$typebox.TString;
134
+ description: _$typebox.TOptional<_$typebox.TString>;
135
+ tokenHash: _$typebox.TString;
136
+ tokenPrefix: _$typebox.TString;
137
+ tokenSuffix: _$typebox.TString;
138
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
139
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
140
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
141
+ usageCount: _$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
142
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
143
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
144
+ }>, _$alepha_orm0.PgRelationMap<_$typebox.TObject<{
145
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
146
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
147
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
148
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
149
+ userId: _$typebox.TString;
150
+ name: _$typebox.TString;
151
+ description: _$typebox.TOptional<_$typebox.TString>;
152
+ tokenHash: _$typebox.TString;
153
+ tokenPrefix: _$typebox.TString;
154
+ tokenSuffix: _$typebox.TString;
155
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
156
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
157
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
158
+ usageCount: _$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
159
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
160
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
155
161
  }>>>>>;
156
162
  /**
157
163
  * Get an API key by ID (admin only).
@@ -197,74 +203,74 @@ declare class AdminApiKeyController {
197
203
  * Find all API keys with optional filtering.
198
204
  */
199
205
  readonly findApiKeys: _$alepha_server0.ActionPrimitiveFn<{
200
- query: _$alepha.TObject<{
201
- page: _$alepha.TOptional<_$alepha.TInteger>;
202
- size: _$alepha.TOptional<_$alepha.TInteger>;
203
- sort: _$alepha.TOptional<_$alepha.TString>;
204
- userId: _$alepha.TOptional<_$alepha.TString>;
205
- includeRevoked: _$alepha.TOptional<_$alepha.TBoolean>;
206
+ query: _$typebox.TObject<{
207
+ page: _$typebox.TOptional<_$typebox.TInteger>;
208
+ size: _$typebox.TOptional<_$typebox.TInteger>;
209
+ sort: _$typebox.TOptional<_$typebox.TString>;
210
+ userId: _$typebox.TOptional<_$typebox.TString>;
211
+ includeRevoked: _$typebox.TOptional<_$typebox.TBoolean>;
206
212
  }>;
207
- response: _$alepha.TPage<_$alepha.TObject<{
208
- id: _$alepha.TString;
209
- userId: _$alepha.TString;
210
- name: _$alepha.TString;
211
- description: _$alepha.TOptional<_$alepha.TString>;
212
- tokenPrefix: _$alepha.TString;
213
- tokenSuffix: _$alepha.TString;
214
- roles: _$alepha.TArray<_$alepha.TString>;
215
- createdAt: _$alepha.TString;
216
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
217
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
218
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
219
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
220
- usageCount: _$alepha.TInteger;
213
+ response: _$alepha.TPage<_$typebox.TObject<{
214
+ id: _$typebox.TString;
215
+ userId: _$typebox.TString;
216
+ name: _$typebox.TString;
217
+ description: _$typebox.TOptional<_$typebox.TString>;
218
+ tokenPrefix: _$typebox.TString;
219
+ tokenSuffix: _$typebox.TString;
220
+ roles: _$typebox.TArray<_$typebox.TString>;
221
+ createdAt: _$typebox.TString;
222
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
223
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
224
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
225
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
226
+ usageCount: _$typebox.TInteger;
221
227
  }>>;
222
228
  }>;
223
229
  /**
224
230
  * Get an API key by ID.
225
231
  */
226
232
  readonly getApiKey: _$alepha_server0.ActionPrimitiveFn<{
227
- params: _$alepha.TObject<{
228
- id: _$alepha.TString;
233
+ params: _$typebox.TObject<{
234
+ id: _$typebox.TString;
229
235
  }>;
230
- response: _$alepha.TObject<{
231
- id: _$alepha.TString;
232
- userId: _$alepha.TString;
233
- name: _$alepha.TString;
234
- description: _$alepha.TOptional<_$alepha.TString>;
235
- tokenPrefix: _$alepha.TString;
236
- tokenSuffix: _$alepha.TString;
237
- roles: _$alepha.TArray<_$alepha.TString>;
238
- createdAt: _$alepha.TString;
239
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
240
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
241
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
242
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
243
- usageCount: _$alepha.TInteger;
236
+ response: _$typebox.TObject<{
237
+ id: _$typebox.TString;
238
+ userId: _$typebox.TString;
239
+ name: _$typebox.TString;
240
+ description: _$typebox.TOptional<_$typebox.TString>;
241
+ tokenPrefix: _$typebox.TString;
242
+ tokenSuffix: _$typebox.TString;
243
+ roles: _$typebox.TArray<_$typebox.TString>;
244
+ createdAt: _$typebox.TString;
245
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
246
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
247
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
248
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
249
+ usageCount: _$typebox.TInteger;
244
250
  }>;
245
251
  }>;
246
252
  /**
247
253
  * Revoke any API key.
248
254
  */
249
255
  readonly revokeApiKey: _$alepha_server0.ActionPrimitiveFn<{
250
- params: _$alepha.TObject<{
251
- id: _$alepha.TString;
256
+ params: _$typebox.TObject<{
257
+ id: _$typebox.TString;
252
258
  }>;
253
- response: _$alepha.TObject<{
254
- ok: _$alepha.TBoolean;
255
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
256
- count: _$alepha.TOptional<_$alepha.TNumber>;
259
+ response: _$typebox.TObject<{
260
+ ok: _$typebox.TBoolean;
261
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
262
+ count: _$typebox.TOptional<_$typebox.TNumber>;
257
263
  }>;
258
264
  }>;
259
265
  /**
260
266
  * Revoke many API keys in one request.
261
267
  */
262
268
  readonly revokeApiKeys: _$alepha_server0.ActionPrimitiveFn<{
263
- body: _$alepha.TObject<{
264
- ids: _$alepha.TArray<_$alepha.TString>;
269
+ body: _$typebox.TObject<{
270
+ ids: _$typebox.TArray<_$typebox.TString>;
265
271
  }>;
266
- response: _$alepha.TObject<{
267
- revoked: _$alepha.TArray<_$alepha.TString>;
272
+ response: _$typebox.TObject<{
273
+ revoked: _$typebox.TArray<_$typebox.TString>;
268
274
  }>;
269
275
  }>;
270
276
  }
@@ -283,19 +289,19 @@ declare class ApiKeyController {
283
289
  * The token is only returned once upon creation.
284
290
  */
285
291
  readonly createApiKey: _$alepha_server0.ActionPrimitiveFn<{
286
- body: _$alepha.TObject<{
287
- name: _$alepha.TString;
288
- description: _$alepha.TOptional<_$alepha.TString>;
289
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
292
+ body: _$typebox.TObject<{
293
+ name: _$typebox.TString;
294
+ description: _$typebox.TOptional<_$typebox.TString>;
295
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
290
296
  }>;
291
- response: _$alepha.TObject<{
292
- id: _$alepha.TString;
293
- name: _$alepha.TString;
294
- token: _$alepha.TString;
295
- tokenSuffix: _$alepha.TString;
296
- roles: _$alepha.TArray<_$alepha.TString>;
297
- createdAt: _$alepha.TString;
298
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
297
+ response: _$typebox.TObject<{
298
+ id: _$typebox.TString;
299
+ name: _$typebox.TString;
300
+ token: _$typebox.TString;
301
+ tokenSuffix: _$typebox.TString;
302
+ roles: _$typebox.TArray<_$typebox.TString>;
303
+ createdAt: _$typebox.TString;
304
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
299
305
  }>;
300
306
  }>;
301
307
  /**
@@ -303,107 +309,107 @@ declare class ApiKeyController {
303
309
  * Does not return the actual tokens.
304
310
  */
305
311
  readonly listApiKeys: _$alepha_server0.ActionPrimitiveFn<{
306
- response: _$alepha.TArray<_$alepha.TObject<{
307
- id: _$alepha.TString;
308
- name: _$alepha.TString;
309
- tokenPrefix: _$alepha.TString;
310
- tokenSuffix: _$alepha.TString;
311
- roles: _$alepha.TArray<_$alepha.TString>;
312
- createdAt: _$alepha.TString;
313
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
314
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
315
- usageCount: _$alepha.TInteger;
312
+ response: _$typebox.TArray<_$typebox.TObject<{
313
+ id: _$typebox.TString;
314
+ name: _$typebox.TString;
315
+ tokenPrefix: _$typebox.TString;
316
+ tokenSuffix: _$typebox.TString;
317
+ roles: _$typebox.TArray<_$typebox.TString>;
318
+ createdAt: _$typebox.TString;
319
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
320
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
321
+ usageCount: _$typebox.TInteger;
316
322
  }>>;
317
323
  }>;
318
324
  /**
319
325
  * Revoke an API key. Only the owner can revoke their own keys.
320
326
  */
321
327
  readonly revokeMyApiKey: _$alepha_server0.ActionPrimitiveFn<{
322
- params: _$alepha.TObject<{
323
- id: _$alepha.TString;
328
+ params: _$typebox.TObject<{
329
+ id: _$typebox.TString;
324
330
  }>;
325
- response: _$alepha.TObject<{
326
- ok: _$alepha.TBoolean;
331
+ response: _$typebox.TObject<{
332
+ ok: _$typebox.TBoolean;
327
333
  }>;
328
334
  }>;
329
335
  }
330
336
  //#endregion
331
337
  //#region ../../src/api/keys/schemas/adminApiKeyQuerySchema.d.ts
332
- declare const adminApiKeyQuerySchema: _$alepha.TObject<{
333
- page: _$alepha.TOptional<_$alepha.TInteger>;
334
- size: _$alepha.TOptional<_$alepha.TInteger>;
335
- sort: _$alepha.TOptional<_$alepha.TString>;
336
- userId: _$alepha.TOptional<_$alepha.TString>;
337
- includeRevoked: _$alepha.TOptional<_$alepha.TBoolean>;
338
+ declare const adminApiKeyQuerySchema: _$typebox.TObject<{
339
+ page: _$typebox.TOptional<_$typebox.TInteger>;
340
+ size: _$typebox.TOptional<_$typebox.TInteger>;
341
+ sort: _$typebox.TOptional<_$typebox.TString>;
342
+ userId: _$typebox.TOptional<_$typebox.TString>;
343
+ includeRevoked: _$typebox.TOptional<_$typebox.TBoolean>;
338
344
  }>;
339
345
  //#endregion
340
346
  //#region ../../src/api/keys/schemas/adminApiKeyResourceSchema.d.ts
341
- declare const adminApiKeyResourceSchema: _$alepha.TObject<{
342
- id: _$alepha.TString;
343
- userId: _$alepha.TString;
344
- name: _$alepha.TString;
345
- description: _$alepha.TOptional<_$alepha.TString>;
346
- tokenPrefix: _$alepha.TString;
347
- tokenSuffix: _$alepha.TString;
348
- roles: _$alepha.TArray<_$alepha.TString>;
349
- createdAt: _$alepha.TString;
350
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
351
- lastUsedIp: _$alepha.TOptional<_$alepha.TString>;
352
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
353
- revokedAt: _$alepha.TOptional<_$alepha.TString>;
354
- usageCount: _$alepha.TInteger;
347
+ declare const adminApiKeyResourceSchema: _$typebox.TObject<{
348
+ id: _$typebox.TString;
349
+ userId: _$typebox.TString;
350
+ name: _$typebox.TString;
351
+ description: _$typebox.TOptional<_$typebox.TString>;
352
+ tokenPrefix: _$typebox.TString;
353
+ tokenSuffix: _$typebox.TString;
354
+ roles: _$typebox.TArray<_$typebox.TString>;
355
+ createdAt: _$typebox.TString;
356
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
357
+ lastUsedIp: _$typebox.TOptional<_$typebox.TString>;
358
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
359
+ revokedAt: _$typebox.TOptional<_$typebox.TString>;
360
+ usageCount: _$typebox.TInteger;
355
361
  }>;
356
362
  //#endregion
357
363
  //#region ../../src/api/keys/schemas/createApiKeyBodySchema.d.ts
358
- declare const createApiKeyBodySchema: _$alepha.TObject<{
359
- name: _$alepha.TString;
360
- description: _$alepha.TOptional<_$alepha.TString>;
361
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
364
+ declare const createApiKeyBodySchema: _$typebox.TObject<{
365
+ name: _$typebox.TString;
366
+ description: _$typebox.TOptional<_$typebox.TString>;
367
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
362
368
  }>;
363
369
  //#endregion
364
370
  //#region ../../src/api/keys/schemas/createApiKeyResponseSchema.d.ts
365
- declare const createApiKeyResponseSchema: _$alepha.TObject<{
366
- id: _$alepha.TString;
367
- name: _$alepha.TString;
368
- token: _$alepha.TString;
369
- tokenSuffix: _$alepha.TString;
370
- roles: _$alepha.TArray<_$alepha.TString>;
371
- createdAt: _$alepha.TString;
372
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
371
+ declare const createApiKeyResponseSchema: _$typebox.TObject<{
372
+ id: _$typebox.TString;
373
+ name: _$typebox.TString;
374
+ token: _$typebox.TString;
375
+ tokenSuffix: _$typebox.TString;
376
+ roles: _$typebox.TArray<_$typebox.TString>;
377
+ createdAt: _$typebox.TString;
378
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
373
379
  }>;
374
380
  //#endregion
375
381
  //#region ../../src/api/keys/schemas/listApiKeyResponseSchema.d.ts
376
- declare const listApiKeyItemSchema: _$alepha.TObject<{
377
- id: _$alepha.TString;
378
- name: _$alepha.TString;
379
- tokenPrefix: _$alepha.TString;
380
- tokenSuffix: _$alepha.TString;
381
- roles: _$alepha.TArray<_$alepha.TString>;
382
- createdAt: _$alepha.TString;
383
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
384
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
385
- usageCount: _$alepha.TInteger;
382
+ declare const listApiKeyItemSchema: _$typebox.TObject<{
383
+ id: _$typebox.TString;
384
+ name: _$typebox.TString;
385
+ tokenPrefix: _$typebox.TString;
386
+ tokenSuffix: _$typebox.TString;
387
+ roles: _$typebox.TArray<_$typebox.TString>;
388
+ createdAt: _$typebox.TString;
389
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
390
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
391
+ usageCount: _$typebox.TInteger;
386
392
  }>;
387
- declare const listApiKeyResponseSchema: _$alepha.TArray<_$alepha.TObject<{
388
- id: _$alepha.TString;
389
- name: _$alepha.TString;
390
- tokenPrefix: _$alepha.TString;
391
- tokenSuffix: _$alepha.TString;
392
- roles: _$alepha.TArray<_$alepha.TString>;
393
- createdAt: _$alepha.TString;
394
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
395
- expiresAt: _$alepha.TOptional<_$alepha.TString>;
396
- usageCount: _$alepha.TInteger;
393
+ declare const listApiKeyResponseSchema: _$typebox.TArray<_$typebox.TObject<{
394
+ id: _$typebox.TString;
395
+ name: _$typebox.TString;
396
+ tokenPrefix: _$typebox.TString;
397
+ tokenSuffix: _$typebox.TString;
398
+ roles: _$typebox.TArray<_$typebox.TString>;
399
+ createdAt: _$typebox.TString;
400
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
401
+ expiresAt: _$typebox.TOptional<_$typebox.TString>;
402
+ usageCount: _$typebox.TInteger;
397
403
  }>>;
398
404
  //#endregion
399
405
  //#region ../../src/api/keys/schemas/revokeApiKeyParamsSchema.d.ts
400
- declare const revokeApiKeyParamsSchema: _$alepha.TObject<{
401
- id: _$alepha.TString;
406
+ declare const revokeApiKeyParamsSchema: _$typebox.TObject<{
407
+ id: _$typebox.TString;
402
408
  }>;
403
409
  //#endregion
404
410
  //#region ../../src/api/keys/schemas/revokeApiKeyResponseSchema.d.ts
405
- declare const revokeApiKeyResponseSchema: _$alepha.TObject<{
406
- ok: _$alepha.TBoolean;
411
+ declare const revokeApiKeyResponseSchema: _$typebox.TObject<{
412
+ ok: _$typebox.TBoolean;
407
413
  }>;
408
414
  //#endregion
409
415
  //#region ../../src/api/keys/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/keys/entities/apiKeyEntity.ts","../../../src/api/keys/services/ApiKeyService.ts","../../../src/api/keys/controllers/AdminApiKeyController.ts","../../../src/api/keys/controllers/ApiKeyController.ts","../../../src/api/keys/schemas/adminApiKeyQuerySchema.ts","../../../src/api/keys/schemas/adminApiKeyResourceSchema.ts","../../../src/api/keys/schemas/createApiKeyBodySchema.ts","../../../src/api/keys/schemas/createApiKeyResponseSchema.ts","../../../src/api/keys/schemas/listApiKeyResponseSchema.ts","../../../src/api/keys/schemas/revokeApiKeyParamsSchema.ts","../../../src/api/keys/schemas/revokeApiKeyResponseSchema.ts","../../../src/api/keys/index.ts"],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/keys/entities/apiKeyEntity.ts","../../../src/api/keys/services/ApiKeyService.ts","../../../src/api/keys/controllers/AdminApiKeyController.ts","../../../src/api/keys/controllers/ApiKeyController.ts","../../../src/api/keys/schemas/adminApiKeyQuerySchema.ts","../../../src/api/keys/schemas/adminApiKeyResourceSchema.ts","../../../src/api/keys/schemas/createApiKeyBodySchema.ts","../../../src/api/keys/schemas/createApiKeyResponseSchema.ts","../../../src/api/keys/schemas/listApiKeyResponseSchema.ts","../../../src/api/keys/schemas/revokeApiKeyParamsSchema.ts","../../../src/api/keys/schemas/revokeApiKeyResponseSchema.ts","../../../src/api/keys/index.ts"],"mappings":"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"}
@@ -36,6 +36,7 @@ const apiKeyEntity = $entity({
36
36
  id: db.primaryKey(t.uuid()),
37
37
  createdAt: db.createdAt(),
38
38
  updatedAt: db.updatedAt(),
39
+ organizationId: db.organization(),
39
40
  userId: t.uuid(),
40
41
  name: t.text({ maxLength: 100 }),
41
42
  description: t.optional(t.text({ maxLength: 500 })),