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.
- package/AGENTS.md +0 -1
- package/CLAUDE.md +0 -1
- package/assets/agents-template.md +0 -1
- package/dist/api/audits/index.browser.js +1 -0
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +370 -355
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +1 -0
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +1 -0
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +179 -170
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +1 -0
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +7 -0
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +259 -250
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +21 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +198 -192
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js +1 -0
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.d.ts +246 -245
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/organizations/index.d.ts +100 -97
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +323 -320
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/payments/index.d.ts +431 -376
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js +202 -87
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +1695 -0
- package/dist/api/subscriptions/index.d.ts.map +1 -0
- package/dist/api/subscriptions/index.js +1919 -0
- package/dist/api/subscriptions/index.js.map +1 -0
- package/dist/api/users/index.d.ts +857 -841
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/verifications/index.d.ts +128 -127
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/bucket/index.d.ts +3 -2
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/cache/core/index.d.ts +114 -4
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +181 -15
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +181 -15
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +20 -19
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/redis/index.d.ts +3 -2
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cli/core/index.d.ts +116 -132
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +75 -7
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -2
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/platform/index.d.ts +346 -290
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +105 -6
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +12 -11
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/command/index.d.ts +5 -4
- package/dist/command/index.d.ts.map +1 -1
- package/dist/core/index.browser.js +1 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +119 -118
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +1 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +1 -1
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +3 -2
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/email/core/index.d.ts +3 -2
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/smtp/index.d.ts +7 -6
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/lock/core/index.d.ts +5 -4
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +10 -9
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +9 -8
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +9 -3
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +31 -10
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +33 -14
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +31 -10
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +6 -5
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/queue/core/index.d.ts +5 -4
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -2
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/react/form/index.d.ts +5 -0
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +6 -4
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +2 -1
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/router/index.d.ts +206 -205
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/ui/index.d.ts +11 -11
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +3 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/security/index.browser.js +29 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +82 -35
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +56 -3
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +163 -158
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +16 -4
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/core/index.d.ts +35 -34
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/cors/index.d.ts +7 -6
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +16 -15
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/links/index.d.ts +51 -50
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts +6 -5
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +2 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts +3 -2
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/package.json +16 -32
- package/src/api/audits/entities/audits.ts +1 -0
- package/src/api/files/entities/files.ts +1 -0
- package/src/api/jobs/__tests__/$job.spec.ts +92 -40
- package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
- package/src/api/jobs/providers/JobProvider.ts +20 -5
- package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
- package/src/api/keys/entities/apiKeyEntity.ts +1 -0
- package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
- package/src/api/payments/index.ts +3 -0
- package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
- package/src/api/payments/providers/PaymentProvider.ts +25 -9
- package/src/api/payments/services/PaymentService.ts +3 -0
- package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
- package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
- package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
- package/src/api/subscriptions/entities/subscriptions.ts +68 -0
- package/src/api/subscriptions/index.ts +133 -0
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
- package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
- package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
- package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
- package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
- package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
- package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
- package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
- package/src/api/subscriptions/services/BillingService.ts +437 -0
- package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
- package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
- package/src/api/subscriptions/services/UsageService.ts +118 -0
- package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
- package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
- package/src/cache/core/index.ts +16 -0
- package/src/cache/core/primitives/$cache.ts +347 -21
- package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
- package/src/cli/core/templates/agentMd.ts +39 -4
- package/src/cli/core/templates/biomeJson.ts +25 -1
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
- package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
- package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
- package/src/cli/platform/atoms/platformOptions.ts +13 -0
- package/src/cli/platform/schemas/platform.ts +1 -0
- package/src/cli/platform/services/CloudflareApi.ts +61 -0
- package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
- package/src/core/__tests__/$module.spec.ts +2 -2
- package/src/core/primitives/$module.ts +4 -4
- package/src/mcp/providers/McpServerProvider.ts +1 -1
- package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
- package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
- package/src/orm/core/schemas/insertSchema.ts +10 -2
- package/src/orm/core/services/Repository.ts +27 -7
- package/src/react/form/hooks/useFormState.ts +8 -1
- package/src/react/form/index.ts +10 -1
- package/src/react/form/services/FormModel.ts +9 -3
- package/src/security/atoms/currentTenantAtom.ts +34 -0
- package/src/security/index.browser.ts +1 -0
- package/src/security/index.ts +12 -1
- package/src/security/primitives/$issuer.ts +17 -1
- package/src/security/providers/SecurityProvider.ts +37 -0
- package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
- package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
- package/tsconfig.base.json +2 -1
- package/dist/react/websocket/index.d.ts +0 -117
- package/dist/react/websocket/index.d.ts.map +0 -1
- package/dist/react/websocket/index.js +0 -108
- package/dist/react/websocket/index.js.map +0 -1
- package/dist/websocket/index.browser.js +0 -848
- package/dist/websocket/index.browser.js.map +0 -1
- package/dist/websocket/index.d.ts +0 -876
- package/dist/websocket/index.d.ts.map +0 -1
- package/dist/websocket/index.js +0 -1185
- package/dist/websocket/index.js.map +0 -1
- package/src/react/websocket/hooks/useRoom.tsx +0 -251
- package/src/react/websocket/index.ts +0 -7
- package/src/websocket/__tests__/$channel.spec.ts +0 -30
- package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
- package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
- package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
- package/src/websocket/errors/WebSocketError.ts +0 -34
- package/src/websocket/index.browser.ts +0 -25
- package/src/websocket/index.shared.ts +0 -8
- package/src/websocket/index.ts +0 -85
- package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
- package/src/websocket/primitives/$channel.ts +0 -131
- package/src/websocket/primitives/$websocket.ts +0 -107
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
- package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
- package/src/websocket/services/RoomManager.ts +0 -160
- package/src/websocket/services/WebSocketClient.ts +0 -642
- package/src/websocket/services/WebSocketTopicService.ts +0 -108
package/dist/api/keys/index.d.ts
CHANGED
|
@@ -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<_$
|
|
12
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
13
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
14
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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<_$
|
|
36
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
37
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
38
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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<_$
|
|
124
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
125
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
126
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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: _$
|
|
201
|
-
page: _$
|
|
202
|
-
size: _$
|
|
203
|
-
sort: _$
|
|
204
|
-
userId: _$
|
|
205
|
-
includeRevoked: _$
|
|
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<_$
|
|
208
|
-
id: _$
|
|
209
|
-
userId: _$
|
|
210
|
-
name: _$
|
|
211
|
-
description: _$
|
|
212
|
-
tokenPrefix: _$
|
|
213
|
-
tokenSuffix: _$
|
|
214
|
-
roles: _$
|
|
215
|
-
createdAt: _$
|
|
216
|
-
lastUsedAt: _$
|
|
217
|
-
lastUsedIp: _$
|
|
218
|
-
expiresAt: _$
|
|
219
|
-
revokedAt: _$
|
|
220
|
-
usageCount: _$
|
|
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: _$
|
|
228
|
-
id: _$
|
|
233
|
+
params: _$typebox.TObject<{
|
|
234
|
+
id: _$typebox.TString;
|
|
229
235
|
}>;
|
|
230
|
-
response: _$
|
|
231
|
-
id: _$
|
|
232
|
-
userId: _$
|
|
233
|
-
name: _$
|
|
234
|
-
description: _$
|
|
235
|
-
tokenPrefix: _$
|
|
236
|
-
tokenSuffix: _$
|
|
237
|
-
roles: _$
|
|
238
|
-
createdAt: _$
|
|
239
|
-
lastUsedAt: _$
|
|
240
|
-
lastUsedIp: _$
|
|
241
|
-
expiresAt: _$
|
|
242
|
-
revokedAt: _$
|
|
243
|
-
usageCount: _$
|
|
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: _$
|
|
251
|
-
id: _$
|
|
256
|
+
params: _$typebox.TObject<{
|
|
257
|
+
id: _$typebox.TString;
|
|
252
258
|
}>;
|
|
253
|
-
response: _$
|
|
254
|
-
ok: _$
|
|
255
|
-
id: _$
|
|
256
|
-
count: _$
|
|
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: _$
|
|
264
|
-
ids: _$
|
|
269
|
+
body: _$typebox.TObject<{
|
|
270
|
+
ids: _$typebox.TArray<_$typebox.TString>;
|
|
265
271
|
}>;
|
|
266
|
-
response: _$
|
|
267
|
-
revoked: _$
|
|
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: _$
|
|
287
|
-
name: _$
|
|
288
|
-
description: _$
|
|
289
|
-
expiresAt: _$
|
|
292
|
+
body: _$typebox.TObject<{
|
|
293
|
+
name: _$typebox.TString;
|
|
294
|
+
description: _$typebox.TOptional<_$typebox.TString>;
|
|
295
|
+
expiresAt: _$typebox.TOptional<_$typebox.TString>;
|
|
290
296
|
}>;
|
|
291
|
-
response: _$
|
|
292
|
-
id: _$
|
|
293
|
-
name: _$
|
|
294
|
-
token: _$
|
|
295
|
-
tokenSuffix: _$
|
|
296
|
-
roles: _$
|
|
297
|
-
createdAt: _$
|
|
298
|
-
expiresAt: _$
|
|
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: _$
|
|
307
|
-
id: _$
|
|
308
|
-
name: _$
|
|
309
|
-
tokenPrefix: _$
|
|
310
|
-
tokenSuffix: _$
|
|
311
|
-
roles: _$
|
|
312
|
-
createdAt: _$
|
|
313
|
-
lastUsedAt: _$
|
|
314
|
-
expiresAt: _$
|
|
315
|
-
usageCount: _$
|
|
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: _$
|
|
323
|
-
id: _$
|
|
328
|
+
params: _$typebox.TObject<{
|
|
329
|
+
id: _$typebox.TString;
|
|
324
330
|
}>;
|
|
325
|
-
response: _$
|
|
326
|
-
ok: _$
|
|
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: _$
|
|
333
|
-
page: _$
|
|
334
|
-
size: _$
|
|
335
|
-
sort: _$
|
|
336
|
-
userId: _$
|
|
337
|
-
includeRevoked: _$
|
|
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: _$
|
|
342
|
-
id: _$
|
|
343
|
-
userId: _$
|
|
344
|
-
name: _$
|
|
345
|
-
description: _$
|
|
346
|
-
tokenPrefix: _$
|
|
347
|
-
tokenSuffix: _$
|
|
348
|
-
roles: _$
|
|
349
|
-
createdAt: _$
|
|
350
|
-
lastUsedAt: _$
|
|
351
|
-
lastUsedIp: _$
|
|
352
|
-
expiresAt: _$
|
|
353
|
-
revokedAt: _$
|
|
354
|
-
usageCount: _$
|
|
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: _$
|
|
359
|
-
name: _$
|
|
360
|
-
description: _$
|
|
361
|
-
expiresAt: _$
|
|
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: _$
|
|
366
|
-
id: _$
|
|
367
|
-
name: _$
|
|
368
|
-
token: _$
|
|
369
|
-
tokenSuffix: _$
|
|
370
|
-
roles: _$
|
|
371
|
-
createdAt: _$
|
|
372
|
-
expiresAt: _$
|
|
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: _$
|
|
377
|
-
id: _$
|
|
378
|
-
name: _$
|
|
379
|
-
tokenPrefix: _$
|
|
380
|
-
tokenSuffix: _$
|
|
381
|
-
roles: _$
|
|
382
|
-
createdAt: _$
|
|
383
|
-
lastUsedAt: _$
|
|
384
|
-
expiresAt: _$
|
|
385
|
-
usageCount: _$
|
|
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: _$
|
|
388
|
-
id: _$
|
|
389
|
-
name: _$
|
|
390
|
-
tokenPrefix: _$
|
|
391
|
-
tokenSuffix: _$
|
|
392
|
-
roles: _$
|
|
393
|
-
createdAt: _$
|
|
394
|
-
lastUsedAt: _$
|
|
395
|
-
expiresAt: _$
|
|
396
|
-
usageCount: _$
|
|
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: _$
|
|
401
|
-
id: _$
|
|
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: _$
|
|
406
|
-
ok: _$
|
|
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":"
|
|
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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"}
|
package/dist/api/keys/index.js
CHANGED
|
@@ -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 })),
|