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
|
@@ -52,39 +52,39 @@ type FieldRequirement = "none" | "optional" | "required";
|
|
|
52
52
|
* collision behavior.
|
|
53
53
|
*/
|
|
54
54
|
type UsernameFieldRequirement = FieldRequirement | "email";
|
|
55
|
-
declare const realmAuthSettingsAtom: _$alepha.Atom<_$
|
|
56
|
-
displayName: _$
|
|
57
|
-
description: _$
|
|
58
|
-
logoUrl: _$
|
|
59
|
-
registrationAllowed: _$
|
|
60
|
-
email: _$
|
|
61
|
-
username: _$
|
|
62
|
-
usernameRegExp: _$
|
|
63
|
-
usernameBlocklist: _$
|
|
64
|
-
phoneNumber: _$
|
|
65
|
-
verifyEmailRequired: _$
|
|
66
|
-
verifyPhoneRequired: _$
|
|
67
|
-
firstNameLastName: _$
|
|
68
|
-
resetPasswordAllowed: _$
|
|
69
|
-
captchaRequired: _$
|
|
70
|
-
adminEmails: _$
|
|
71
|
-
adminUsernames: _$
|
|
72
|
-
defaultRoles: _$
|
|
73
|
-
verifyEmailUrl: _$
|
|
74
|
-
passwordPolicy: _$
|
|
75
|
-
minLength: _$
|
|
76
|
-
requireUppercase: _$
|
|
77
|
-
requireLowercase: _$
|
|
78
|
-
requireNumbers: _$
|
|
79
|
-
requireSpecialCharacters: _$
|
|
55
|
+
declare const realmAuthSettingsAtom: _$alepha.Atom<_$typebox.TObject<{
|
|
56
|
+
displayName: _$typebox.TOptional<_$typebox.TString>;
|
|
57
|
+
description: _$typebox.TOptional<_$typebox.TString>;
|
|
58
|
+
logoUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
59
|
+
registrationAllowed: _$typebox.TBoolean;
|
|
60
|
+
email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
61
|
+
username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
|
|
62
|
+
usernameRegExp: _$typebox.TString;
|
|
63
|
+
usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
|
|
64
|
+
phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
65
|
+
verifyEmailRequired: _$typebox.TBoolean;
|
|
66
|
+
verifyPhoneRequired: _$typebox.TBoolean;
|
|
67
|
+
firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
68
|
+
resetPasswordAllowed: _$typebox.TBoolean;
|
|
69
|
+
captchaRequired: _$typebox.TBoolean;
|
|
70
|
+
adminEmails: _$typebox.TArray<_$typebox.TString>;
|
|
71
|
+
adminUsernames: _$typebox.TArray<_$typebox.TString>;
|
|
72
|
+
defaultRoles: _$typebox.TArray<_$typebox.TString>;
|
|
73
|
+
verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
74
|
+
passwordPolicy: _$typebox.TObject<{
|
|
75
|
+
minLength: _$typebox.TInteger;
|
|
76
|
+
requireUppercase: _$typebox.TBoolean;
|
|
77
|
+
requireLowercase: _$typebox.TBoolean;
|
|
78
|
+
requireNumbers: _$typebox.TBoolean;
|
|
79
|
+
requireSpecialCharacters: _$typebox.TBoolean;
|
|
80
80
|
}>;
|
|
81
|
-
loginRateLimit: _$
|
|
82
|
-
ipMaxAttempts: _$
|
|
83
|
-
accountMaxAttempts: _$
|
|
84
|
-
windowMs: _$
|
|
81
|
+
loginRateLimit: _$typebox.TObject<{
|
|
82
|
+
ipMaxAttempts: _$typebox.TInteger;
|
|
83
|
+
accountMaxAttempts: _$typebox.TInteger;
|
|
84
|
+
windowMs: _$typebox.TInteger;
|
|
85
85
|
}>;
|
|
86
|
-
refreshToken: _$
|
|
87
|
-
expirationIdle: _$
|
|
86
|
+
refreshToken: _$typebox.TObject<{
|
|
87
|
+
expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
|
|
88
88
|
}>;
|
|
89
89
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
90
90
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -120,6 +120,7 @@ declare class UserAudits {
|
|
|
120
120
|
type: string;
|
|
121
121
|
id: string;
|
|
122
122
|
createdAt: string;
|
|
123
|
+
organizationId: string;
|
|
123
124
|
action: string;
|
|
124
125
|
severity: "info" | "warning" | "critical";
|
|
125
126
|
success: boolean;
|
|
@@ -143,6 +144,7 @@ declare class UserAudits {
|
|
|
143
144
|
type: string;
|
|
144
145
|
id: string;
|
|
145
146
|
createdAt: string;
|
|
147
|
+
organizationId: string;
|
|
146
148
|
action: string;
|
|
147
149
|
severity: "info" | "warning" | "critical";
|
|
148
150
|
success: boolean;
|
|
@@ -166,6 +168,7 @@ declare class UserAudits {
|
|
|
166
168
|
type: string;
|
|
167
169
|
id: string;
|
|
168
170
|
createdAt: string;
|
|
171
|
+
organizationId: string;
|
|
169
172
|
action: string;
|
|
170
173
|
severity: "info" | "warning" | "critical";
|
|
171
174
|
success: boolean;
|
|
@@ -203,6 +206,8 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as
|
|
|
203
206
|
[PG_GENERATED]: any;
|
|
204
207
|
} ? never : K]: T["properties"][K] extends {
|
|
205
208
|
[PG_DEFAULT]: any;
|
|
209
|
+
} | {
|
|
210
|
+
[PG_ORGANIZATION]: any;
|
|
206
211
|
} | {
|
|
207
212
|
"~optional": true;
|
|
208
213
|
} ? TOptional<T["properties"][K]> : T["properties"][K] }>;
|
|
@@ -6194,7 +6199,7 @@ declare abstract class DatabaseProvider {
|
|
|
6194
6199
|
* Migration tracking table name, scoped by schema.
|
|
6195
6200
|
*
|
|
6196
6201
|
* Returns `migrations_{schema}` so that multiple schemas sharing the same
|
|
6197
|
-
* database each get their own migration history (e.g. `
|
|
6202
|
+
* database each get their own migration history (e.g. `migrations_lore`,
|
|
6198
6203
|
* `migrations_public`).
|
|
6199
6204
|
*/
|
|
6200
6205
|
get migrationsTable(): string;
|
|
@@ -6645,6 +6650,17 @@ declare abstract class Repository$1<T extends TObject> {
|
|
|
6645
6650
|
protected deletedAt(): PgAttrField | undefined;
|
|
6646
6651
|
protected withOrganization(where: PgQueryWhereOrSQL<T>): PgQueryWhereOrSQL<T>;
|
|
6647
6652
|
protected stampOrganization(data: any): void;
|
|
6653
|
+
/**
|
|
6654
|
+
* Resolve the value used for `PG_ORGANIZATION` scoping.
|
|
6655
|
+
*
|
|
6656
|
+
* Priority:
|
|
6657
|
+
* 1. Request-bound tenant (`currentTenantAtom`) — set by an app-level
|
|
6658
|
+
* middleware from the request `Host`. Lets cross-tenant users (admins,
|
|
6659
|
+
* agency operators) be scoped to the tenant they are acting in rather
|
|
6660
|
+
* than the one they belong to.
|
|
6661
|
+
* 2. Authenticated user's `organization` — the legacy single-tenant case.
|
|
6662
|
+
*/
|
|
6663
|
+
protected resolveOrganizationValue(): string | undefined;
|
|
6648
6664
|
protected organizationField(): PgAttrField | undefined;
|
|
6649
6665
|
/**
|
|
6650
6666
|
* Convert something to valid Pg Insert Value.
|
|
@@ -6747,8 +6763,8 @@ type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
|
|
|
6747
6763
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
6748
6764
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
6749
6765
|
*/
|
|
6750
|
-
declare const databaseEnvSchema: _$
|
|
6751
|
-
DATABASE_URL: _$
|
|
6766
|
+
declare const databaseEnvSchema: _$typebox.TObject<{
|
|
6767
|
+
DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
|
|
6752
6768
|
/**
|
|
6753
6769
|
* Enable or disable push-based schema synchronization (drizzle-kit push).
|
|
6754
6770
|
*
|
|
@@ -6756,68 +6772,68 @@ declare const databaseEnvSchema: _$alepha.TObject<{
|
|
|
6756
6772
|
* Set to `false` in development to skip automatic schema sync
|
|
6757
6773
|
* (e.g. when managing migrations manually).
|
|
6758
6774
|
*/
|
|
6759
|
-
DATABASE_SYNC: _$
|
|
6775
|
+
DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
6760
6776
|
}>;
|
|
6761
6777
|
declare module "alepha" {
|
|
6762
6778
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
6763
6779
|
} //# sourceMappingURL=databaseEnvSchema.d.ts.map
|
|
6764
6780
|
//#endregion
|
|
6765
6781
|
//#region ../../src/api/users/entities/identities.d.ts
|
|
6766
|
-
declare const identities: _$alepha_orm0.EntityPrimitive<_$
|
|
6767
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6768
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6769
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6770
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6771
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
6772
|
-
password: _$
|
|
6773
|
-
provider: _$
|
|
6774
|
-
providerUserId: _$
|
|
6775
|
-
providerData: _$
|
|
6782
|
+
declare const identities: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
|
|
6783
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6784
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6785
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6786
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6787
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6788
|
+
password: _$typebox.TOptional<_$typebox.TString>;
|
|
6789
|
+
provider: _$typebox.TString;
|
|
6790
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
6791
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
6776
6792
|
}>>;
|
|
6777
6793
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
6778
6794
|
//#endregion
|
|
6779
6795
|
//#region ../../src/api/users/entities/sessions.d.ts
|
|
6780
|
-
declare const sessions: _$alepha_orm0.EntityPrimitive<_$
|
|
6781
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6782
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6783
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6784
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6785
|
-
refreshToken: _$
|
|
6786
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
6787
|
-
expiresAt: _$
|
|
6796
|
+
declare const sessions: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
|
|
6797
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6798
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6799
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6800
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6801
|
+
refreshToken: _$typebox.TString;
|
|
6802
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6803
|
+
expiresAt: _$typebox.TString;
|
|
6788
6804
|
/**
|
|
6789
6805
|
* Last time the session was used to refresh an access token.
|
|
6790
6806
|
* Used by realm `refreshToken.expirationIdle` to invalidate idle sessions.
|
|
6791
6807
|
* `null` on existing rows pre-migration — falls back to `createdAt`.
|
|
6792
6808
|
*/
|
|
6793
|
-
lastUsedAt: _$
|
|
6794
|
-
ip: _$
|
|
6795
|
-
userAgent: _$
|
|
6796
|
-
os: _$
|
|
6797
|
-
browser: _$
|
|
6798
|
-
device: _$
|
|
6809
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
6810
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
6811
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
6812
|
+
os: _$typebox.TString;
|
|
6813
|
+
browser: _$typebox.TString;
|
|
6814
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6799
6815
|
}>>;
|
|
6800
6816
|
}>>;
|
|
6801
6817
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
6802
6818
|
//#endregion
|
|
6803
6819
|
//#region ../../src/api/users/entities/users.d.ts
|
|
6804
6820
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
6805
|
-
declare const users: _$alepha_orm0.EntityPrimitive<_$
|
|
6806
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6807
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6808
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6809
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6810
|
-
realm: _$alepha_orm0.PgAttr<_$
|
|
6811
|
-
username: _$
|
|
6812
|
-
email: _$
|
|
6813
|
-
phoneNumber: _$
|
|
6814
|
-
roles: _$alepha_orm0.PgAttr<_$
|
|
6815
|
-
firstName: _$
|
|
6816
|
-
lastName: _$
|
|
6817
|
-
picture: _$
|
|
6818
|
-
enabled: _$alepha_orm0.PgAttr<_$
|
|
6819
|
-
emailVerified: _$alepha_orm0.PgAttr<_$
|
|
6820
|
-
organizationId: _$alepha_orm0.PgAttr<_$
|
|
6821
|
+
declare const users: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
|
|
6822
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6823
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6824
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6825
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6826
|
+
realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6827
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
6828
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
6829
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
6830
|
+
roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6831
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
6832
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
6833
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
6834
|
+
enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6835
|
+
emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6836
|
+
organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
6821
6837
|
}>>;
|
|
6822
6838
|
type UserEntity = Static<typeof users.schema>;
|
|
6823
6839
|
//#endregion
|
|
@@ -6944,49 +6960,49 @@ interface Realm {
|
|
|
6944
6960
|
}
|
|
6945
6961
|
declare class RealmProvider {
|
|
6946
6962
|
protected readonly alepha: Alepha;
|
|
6947
|
-
protected readonly defaultIdentities: Repository<_$
|
|
6948
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6949
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6950
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6951
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6952
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
6953
|
-
password: _$
|
|
6954
|
-
provider: _$
|
|
6955
|
-
providerUserId: _$
|
|
6956
|
-
providerData: _$
|
|
6963
|
+
protected readonly defaultIdentities: Repository<_$typebox.TObject<{
|
|
6964
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6965
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6966
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6967
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6968
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6969
|
+
password: _$typebox.TOptional<_$typebox.TString>;
|
|
6970
|
+
provider: _$typebox.TString;
|
|
6971
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
6972
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
6957
6973
|
}>>;
|
|
6958
|
-
protected readonly defaultSessions: Repository<_$
|
|
6959
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6960
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6961
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6962
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6963
|
-
refreshToken: _$
|
|
6964
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
6965
|
-
expiresAt: _$
|
|
6966
|
-
lastUsedAt: _$
|
|
6967
|
-
ip: _$
|
|
6968
|
-
userAgent: _$
|
|
6969
|
-
os: _$
|
|
6970
|
-
browser: _$
|
|
6971
|
-
device: _$
|
|
6974
|
+
protected readonly defaultSessions: Repository<_$typebox.TObject<{
|
|
6975
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6976
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6977
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6978
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6979
|
+
refreshToken: _$typebox.TString;
|
|
6980
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
6981
|
+
expiresAt: _$typebox.TString;
|
|
6982
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
6983
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
6984
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
6985
|
+
os: _$typebox.TString;
|
|
6986
|
+
browser: _$typebox.TString;
|
|
6987
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6972
6988
|
}>>;
|
|
6973
6989
|
}>>;
|
|
6974
|
-
protected readonly defaultUsers: Repository<_$
|
|
6975
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6976
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6977
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6978
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
6979
|
-
realm: _$alepha_orm0.PgAttr<_$
|
|
6980
|
-
username: _$
|
|
6981
|
-
email: _$
|
|
6982
|
-
phoneNumber: _$
|
|
6983
|
-
roles: _$alepha_orm0.PgAttr<_$
|
|
6984
|
-
firstName: _$
|
|
6985
|
-
lastName: _$
|
|
6986
|
-
picture: _$
|
|
6987
|
-
enabled: _$alepha_orm0.PgAttr<_$
|
|
6988
|
-
emailVerified: _$alepha_orm0.PgAttr<_$
|
|
6989
|
-
organizationId: _$alepha_orm0.PgAttr<_$
|
|
6990
|
+
protected readonly defaultUsers: Repository<_$typebox.TObject<{
|
|
6991
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6992
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6993
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6994
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6995
|
+
realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
6996
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
6997
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
6998
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
6999
|
+
roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7000
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7001
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7002
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7003
|
+
enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7004
|
+
emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7005
|
+
organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
6990
7006
|
}>>;
|
|
6991
7007
|
protected realms: Map<string, Realm>;
|
|
6992
7008
|
register(realmName: string, realmOptions?: RealmOptions): Realm;
|
|
@@ -7000,12 +7016,12 @@ declare class RealmProvider {
|
|
|
7000
7016
|
}
|
|
7001
7017
|
//#endregion
|
|
7002
7018
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
7003
|
-
declare const identityQuerySchema: _$
|
|
7004
|
-
page: _$
|
|
7005
|
-
size: _$
|
|
7006
|
-
sort: _$
|
|
7007
|
-
userId: _$
|
|
7008
|
-
provider: _$
|
|
7019
|
+
declare const identityQuerySchema: _$typebox.TObject<{
|
|
7020
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7021
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7022
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7023
|
+
userId: _$typebox.TOptional<_$typebox.TString>;
|
|
7024
|
+
provider: _$typebox.TOptional<_$typebox.TString>;
|
|
7009
7025
|
}>;
|
|
7010
7026
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
7011
7027
|
//#endregion
|
|
@@ -7015,16 +7031,16 @@ declare class IdentityService {
|
|
|
7015
7031
|
protected readonly log: _$alepha_logger0.Logger;
|
|
7016
7032
|
protected readonly realmProvider: RealmProvider;
|
|
7017
7033
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7018
|
-
identities(userRealmName?: string): _$alepha_orm0.Repository<_$
|
|
7019
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7020
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7021
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7022
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7023
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
7024
|
-
password: _$
|
|
7025
|
-
provider: _$
|
|
7026
|
-
providerUserId: _$
|
|
7027
|
-
providerData: _$
|
|
7034
|
+
identities(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
|
|
7035
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7036
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7037
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7038
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7039
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7040
|
+
password: _$typebox.TOptional<_$typebox.TString>;
|
|
7041
|
+
provider: _$typebox.TString;
|
|
7042
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
7043
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
7028
7044
|
}>>;
|
|
7029
7045
|
/**
|
|
7030
7046
|
* Find identities with pagination and filtering.
|
|
@@ -7049,70 +7065,70 @@ declare class AdminIdentityController {
|
|
|
7049
7065
|
* Find identities with pagination and filtering.
|
|
7050
7066
|
*/
|
|
7051
7067
|
readonly findIdentities: _$alepha_server0.ActionPrimitiveFn<{
|
|
7052
|
-
query: _$
|
|
7053
|
-
page: _$
|
|
7054
|
-
size: _$
|
|
7055
|
-
sort: _$
|
|
7056
|
-
userId: _$
|
|
7057
|
-
provider: _$
|
|
7058
|
-
userRealmName: _$
|
|
7059
|
-
}>;
|
|
7060
|
-
response: _$alepha.TPage<_$
|
|
7061
|
-
id: PgAttr<PgAttr<_$
|
|
7062
|
-
version: PgAttr<PgAttr<_$
|
|
7063
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7064
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7065
|
-
userId: PgAttr<_$
|
|
7066
|
-
provider: _$
|
|
7067
|
-
providerUserId: _$
|
|
7068
|
-
providerData: _$
|
|
7068
|
+
query: _$typebox.TObject<{
|
|
7069
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7070
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7071
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7072
|
+
userId: _$typebox.TOptional<_$typebox.TString>;
|
|
7073
|
+
provider: _$typebox.TOptional<_$typebox.TString>;
|
|
7074
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7075
|
+
}>;
|
|
7076
|
+
response: _$alepha.TPage<_$typebox.TObject<{
|
|
7077
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7078
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7079
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7080
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7081
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
7082
|
+
provider: _$typebox.TString;
|
|
7083
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
7084
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
7069
7085
|
}>>;
|
|
7070
7086
|
}>;
|
|
7071
7087
|
/**
|
|
7072
7088
|
* Get an identity by ID.
|
|
7073
7089
|
*/
|
|
7074
7090
|
readonly getIdentity: _$alepha_server0.ActionPrimitiveFn<{
|
|
7075
|
-
params: _$
|
|
7076
|
-
id: _$
|
|
7077
|
-
}>;
|
|
7078
|
-
query: _$
|
|
7079
|
-
userRealmName: _$
|
|
7080
|
-
}>;
|
|
7081
|
-
response: _$
|
|
7082
|
-
id: PgAttr<PgAttr<_$
|
|
7083
|
-
version: PgAttr<PgAttr<_$
|
|
7084
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7085
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7086
|
-
userId: PgAttr<_$
|
|
7087
|
-
provider: _$
|
|
7088
|
-
providerUserId: _$
|
|
7089
|
-
providerData: _$
|
|
7091
|
+
params: _$typebox.TObject<{
|
|
7092
|
+
id: _$typebox.TString;
|
|
7093
|
+
}>;
|
|
7094
|
+
query: _$typebox.TObject<{
|
|
7095
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7096
|
+
}>;
|
|
7097
|
+
response: _$typebox.TObject<{
|
|
7098
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7099
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7100
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7101
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7102
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
7103
|
+
provider: _$typebox.TString;
|
|
7104
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
7105
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
7090
7106
|
}>;
|
|
7091
7107
|
}>;
|
|
7092
7108
|
/**
|
|
7093
7109
|
* Delete an identity.
|
|
7094
7110
|
*/
|
|
7095
7111
|
readonly deleteIdentity: _$alepha_server0.ActionPrimitiveFn<{
|
|
7096
|
-
params: _$
|
|
7097
|
-
id: _$
|
|
7112
|
+
params: _$typebox.TObject<{
|
|
7113
|
+
id: _$typebox.TString;
|
|
7098
7114
|
}>;
|
|
7099
|
-
query: _$
|
|
7100
|
-
userRealmName: _$
|
|
7115
|
+
query: _$typebox.TObject<{
|
|
7116
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7101
7117
|
}>;
|
|
7102
|
-
response: _$
|
|
7103
|
-
ok: _$
|
|
7104
|
-
id: _$
|
|
7105
|
-
count: _$
|
|
7118
|
+
response: _$typebox.TObject<{
|
|
7119
|
+
ok: _$typebox.TBoolean;
|
|
7120
|
+
id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
|
|
7121
|
+
count: _$typebox.TOptional<_$typebox.TNumber>;
|
|
7106
7122
|
}>;
|
|
7107
7123
|
}>;
|
|
7108
7124
|
}
|
|
7109
7125
|
//#endregion
|
|
7110
7126
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
7111
|
-
declare const sessionQuerySchema: _$
|
|
7112
|
-
page: _$
|
|
7113
|
-
size: _$
|
|
7114
|
-
sort: _$
|
|
7115
|
-
userId: _$
|
|
7127
|
+
declare const sessionQuerySchema: _$typebox.TObject<{
|
|
7128
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7129
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7130
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7131
|
+
userId: _$typebox.TOptional<_$typebox.TString>;
|
|
7116
7132
|
}>;
|
|
7117
7133
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
7118
7134
|
//#endregion
|
|
@@ -7120,20 +7136,20 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
|
7120
7136
|
declare class SessionCrudService {
|
|
7121
7137
|
protected readonly log: _$alepha_logger0.Logger;
|
|
7122
7138
|
protected readonly realmProvider: RealmProvider;
|
|
7123
|
-
sessions(userRealmName?: string): _$alepha_orm0.Repository<_$
|
|
7124
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7125
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7126
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7127
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7128
|
-
refreshToken: _$
|
|
7129
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
7130
|
-
expiresAt: _$
|
|
7131
|
-
lastUsedAt: _$
|
|
7132
|
-
ip: _$
|
|
7133
|
-
userAgent: _$
|
|
7134
|
-
os: _$
|
|
7135
|
-
browser: _$
|
|
7136
|
-
device: _$
|
|
7139
|
+
sessions(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
|
|
7140
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7141
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7142
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7143
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7144
|
+
refreshToken: _$typebox.TString;
|
|
7145
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
7146
|
+
expiresAt: _$typebox.TString;
|
|
7147
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
7148
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
7149
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
7150
|
+
os: _$typebox.TString;
|
|
7151
|
+
browser: _$typebox.TString;
|
|
7152
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7137
7153
|
}>>;
|
|
7138
7154
|
}>>;
|
|
7139
7155
|
/**
|
|
@@ -7163,26 +7179,26 @@ declare class AdminSessionController {
|
|
|
7163
7179
|
* Find sessions with pagination and filtering.
|
|
7164
7180
|
*/
|
|
7165
7181
|
readonly findSessions: _$alepha_server0.ActionPrimitiveFn<{
|
|
7166
|
-
query: _$
|
|
7167
|
-
page: _$
|
|
7168
|
-
size: _$
|
|
7169
|
-
sort: _$
|
|
7170
|
-
userId: _$
|
|
7171
|
-
userRealmName: _$
|
|
7172
|
-
}>;
|
|
7173
|
-
response: _$alepha.TPage<_$
|
|
7174
|
-
id: _$
|
|
7175
|
-
version: _$
|
|
7176
|
-
createdAt: _$
|
|
7177
|
-
updatedAt: _$
|
|
7178
|
-
refreshToken: _$
|
|
7179
|
-
userId: _$
|
|
7180
|
-
expiresAt: _$
|
|
7181
|
-
ip: _$
|
|
7182
|
-
userAgent: _$
|
|
7183
|
-
os: _$
|
|
7184
|
-
browser: _$
|
|
7185
|
-
device: _$
|
|
7182
|
+
query: _$typebox.TObject<{
|
|
7183
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7184
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7185
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7186
|
+
userId: _$typebox.TOptional<_$typebox.TString>;
|
|
7187
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7188
|
+
}>;
|
|
7189
|
+
response: _$alepha.TPage<_$typebox.TObject<{
|
|
7190
|
+
id: _$typebox.TString;
|
|
7191
|
+
version: _$typebox.TNumber;
|
|
7192
|
+
createdAt: _$typebox.TString;
|
|
7193
|
+
updatedAt: _$typebox.TString;
|
|
7194
|
+
refreshToken: _$typebox.TString;
|
|
7195
|
+
userId: _$typebox.TString;
|
|
7196
|
+
expiresAt: _$typebox.TString;
|
|
7197
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
7198
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
7199
|
+
os: _$typebox.TString;
|
|
7200
|
+
browser: _$typebox.TString;
|
|
7201
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7186
7202
|
}>>;
|
|
7187
7203
|
}>>;
|
|
7188
7204
|
}>;
|
|
@@ -7190,25 +7206,25 @@ declare class AdminSessionController {
|
|
|
7190
7206
|
* Get a session by ID.
|
|
7191
7207
|
*/
|
|
7192
7208
|
readonly getSession: _$alepha_server0.ActionPrimitiveFn<{
|
|
7193
|
-
params: _$
|
|
7194
|
-
id: _$
|
|
7195
|
-
}>;
|
|
7196
|
-
query: _$
|
|
7197
|
-
userRealmName: _$
|
|
7198
|
-
}>;
|
|
7199
|
-
response: _$
|
|
7200
|
-
id: _$
|
|
7201
|
-
version: _$
|
|
7202
|
-
createdAt: _$
|
|
7203
|
-
updatedAt: _$
|
|
7204
|
-
refreshToken: _$
|
|
7205
|
-
userId: _$
|
|
7206
|
-
expiresAt: _$
|
|
7207
|
-
ip: _$
|
|
7208
|
-
userAgent: _$
|
|
7209
|
-
os: _$
|
|
7210
|
-
browser: _$
|
|
7211
|
-
device: _$
|
|
7209
|
+
params: _$typebox.TObject<{
|
|
7210
|
+
id: _$typebox.TString;
|
|
7211
|
+
}>;
|
|
7212
|
+
query: _$typebox.TObject<{
|
|
7213
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7214
|
+
}>;
|
|
7215
|
+
response: _$typebox.TObject<{
|
|
7216
|
+
id: _$typebox.TString;
|
|
7217
|
+
version: _$typebox.TNumber;
|
|
7218
|
+
createdAt: _$typebox.TString;
|
|
7219
|
+
updatedAt: _$typebox.TString;
|
|
7220
|
+
refreshToken: _$typebox.TString;
|
|
7221
|
+
userId: _$typebox.TString;
|
|
7222
|
+
expiresAt: _$typebox.TString;
|
|
7223
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
7224
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
7225
|
+
os: _$typebox.TString;
|
|
7226
|
+
browser: _$typebox.TString;
|
|
7227
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7212
7228
|
}>>;
|
|
7213
7229
|
}>;
|
|
7214
7230
|
}>;
|
|
@@ -7216,109 +7232,109 @@ declare class AdminSessionController {
|
|
|
7216
7232
|
* Delete a session.
|
|
7217
7233
|
*/
|
|
7218
7234
|
readonly deleteSession: _$alepha_server0.ActionPrimitiveFn<{
|
|
7219
|
-
params: _$
|
|
7220
|
-
id: _$
|
|
7235
|
+
params: _$typebox.TObject<{
|
|
7236
|
+
id: _$typebox.TString;
|
|
7221
7237
|
}>;
|
|
7222
|
-
query: _$
|
|
7223
|
-
userRealmName: _$
|
|
7238
|
+
query: _$typebox.TObject<{
|
|
7239
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7224
7240
|
}>;
|
|
7225
|
-
response: _$
|
|
7226
|
-
ok: _$
|
|
7227
|
-
id: _$
|
|
7228
|
-
count: _$
|
|
7241
|
+
response: _$typebox.TObject<{
|
|
7242
|
+
ok: _$typebox.TBoolean;
|
|
7243
|
+
id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
|
|
7244
|
+
count: _$typebox.TOptional<_$typebox.TNumber>;
|
|
7229
7245
|
}>;
|
|
7230
7246
|
}>;
|
|
7231
7247
|
/**
|
|
7232
7248
|
* Delete many sessions in one repository call.
|
|
7233
7249
|
*/
|
|
7234
7250
|
readonly deleteSessions: _$alepha_server0.ActionPrimitiveFn<{
|
|
7235
|
-
query: _$
|
|
7236
|
-
userRealmName: _$
|
|
7251
|
+
query: _$typebox.TObject<{
|
|
7252
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7237
7253
|
}>;
|
|
7238
|
-
body: _$
|
|
7239
|
-
ids: _$
|
|
7254
|
+
body: _$typebox.TObject<{
|
|
7255
|
+
ids: _$typebox.TArray<_$typebox.TString>;
|
|
7240
7256
|
}>;
|
|
7241
|
-
response: _$
|
|
7242
|
-
deleted: _$
|
|
7257
|
+
response: _$typebox.TObject<{
|
|
7258
|
+
deleted: _$typebox.TArray<_$typebox.TString>;
|
|
7243
7259
|
}>;
|
|
7244
7260
|
}>;
|
|
7245
7261
|
}
|
|
7246
7262
|
//#endregion
|
|
7247
7263
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
7248
7264
|
declare class UserNotifications {
|
|
7249
|
-
readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7250
|
-
email: _$
|
|
7251
|
-
code: _$
|
|
7252
|
-
expiresInMinutes: _$
|
|
7265
|
+
readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7266
|
+
email: _$typebox.TString;
|
|
7267
|
+
code: _$typebox.TString;
|
|
7268
|
+
expiresInMinutes: _$typebox.TNumber;
|
|
7253
7269
|
}>>;
|
|
7254
|
-
readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7255
|
-
email: _$
|
|
7256
|
-
code: _$
|
|
7257
|
-
expiresInMinutes: _$
|
|
7270
|
+
readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7271
|
+
email: _$typebox.TString;
|
|
7272
|
+
code: _$typebox.TString;
|
|
7273
|
+
expiresInMinutes: _$typebox.TNumber;
|
|
7258
7274
|
}>>;
|
|
7259
|
-
readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7260
|
-
phoneNumber: _$
|
|
7261
|
-
code: _$
|
|
7262
|
-
expiresInMinutes: _$
|
|
7275
|
+
readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7276
|
+
phoneNumber: _$typebox.TString;
|
|
7277
|
+
code: _$typebox.TString;
|
|
7278
|
+
expiresInMinutes: _$typebox.TNumber;
|
|
7263
7279
|
}>>;
|
|
7264
|
-
readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7265
|
-
email: _$
|
|
7266
|
-
resetUrl: _$
|
|
7267
|
-
expiresInMinutes: _$
|
|
7280
|
+
readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7281
|
+
email: _$typebox.TString;
|
|
7282
|
+
resetUrl: _$typebox.TString;
|
|
7283
|
+
expiresInMinutes: _$typebox.TNumber;
|
|
7268
7284
|
}>>;
|
|
7269
|
-
readonly accountLockout: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7270
|
-
email: _$
|
|
7271
|
-
lockoutMinutes: _$
|
|
7285
|
+
readonly accountLockout: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7286
|
+
email: _$typebox.TString;
|
|
7287
|
+
lockoutMinutes: _$typebox.TNumber;
|
|
7272
7288
|
}>>;
|
|
7273
|
-
readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$
|
|
7274
|
-
email: _$
|
|
7275
|
-
verifyUrl: _$
|
|
7276
|
-
expiresInMinutes: _$
|
|
7289
|
+
readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
|
|
7290
|
+
email: _$typebox.TString;
|
|
7291
|
+
verifyUrl: _$typebox.TString;
|
|
7292
|
+
expiresInMinutes: _$typebox.TNumber;
|
|
7277
7293
|
}>>;
|
|
7278
7294
|
}
|
|
7279
7295
|
//#endregion
|
|
7280
7296
|
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
7281
|
-
declare const createUserSchema: _$
|
|
7282
|
-
enabled: _$
|
|
7283
|
-
email: _$
|
|
7284
|
-
phoneNumber: _$
|
|
7285
|
-
id: _$
|
|
7286
|
-
version: _$
|
|
7287
|
-
createdAt: _$
|
|
7288
|
-
updatedAt: _$
|
|
7289
|
-
username: _$
|
|
7290
|
-
roles: _$
|
|
7291
|
-
firstName: _$
|
|
7292
|
-
lastName: _$
|
|
7293
|
-
picture: _$
|
|
7294
|
-
emailVerified: _$
|
|
7295
|
-
organizationId: _$
|
|
7297
|
+
declare const createUserSchema: _$typebox.TObject<{
|
|
7298
|
+
enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7299
|
+
email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7300
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7301
|
+
id: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7302
|
+
version: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
7303
|
+
createdAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
7304
|
+
updatedAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7305
|
+
username: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7306
|
+
roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
|
|
7307
|
+
firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7308
|
+
lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7309
|
+
picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7310
|
+
emailVerified: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7311
|
+
organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
|
|
7296
7312
|
}>;
|
|
7297
7313
|
type CreateUser = Static<typeof createUserSchema>;
|
|
7298
7314
|
//#endregion
|
|
7299
7315
|
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
7300
|
-
declare const updateUserSchema: _$
|
|
7301
|
-
enabled: _$
|
|
7302
|
-
email: _$
|
|
7303
|
-
phoneNumber: _$
|
|
7304
|
-
realm: _$
|
|
7305
|
-
roles: _$
|
|
7306
|
-
firstName: _$
|
|
7307
|
-
lastName: _$
|
|
7308
|
-
picture: _$
|
|
7309
|
-
organizationId: _$
|
|
7316
|
+
declare const updateUserSchema: _$typebox.TObject<{
|
|
7317
|
+
enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7318
|
+
email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7319
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7320
|
+
realm: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_DEFAULT>>;
|
|
7321
|
+
roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
|
|
7322
|
+
firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7323
|
+
lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7324
|
+
picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7325
|
+
organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
|
|
7310
7326
|
}>;
|
|
7311
7327
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
7312
7328
|
//#endregion
|
|
7313
7329
|
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
7314
|
-
declare const userQuerySchema: _$
|
|
7315
|
-
page: _$
|
|
7316
|
-
size: _$
|
|
7317
|
-
sort: _$
|
|
7318
|
-
email: _$
|
|
7319
|
-
enabled: _$
|
|
7320
|
-
emailVerified: _$
|
|
7321
|
-
roles: _$
|
|
7330
|
+
declare const userQuerySchema: _$typebox.TObject<{
|
|
7331
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7332
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7333
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7334
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7335
|
+
enabled: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
7336
|
+
emailVerified: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
7337
|
+
roles: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
|
|
7322
7338
|
}>;
|
|
7323
7339
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
7324
7340
|
//#endregion
|
|
@@ -7330,22 +7346,22 @@ declare class UserService {
|
|
|
7330
7346
|
protected readonly realmProvider: RealmProvider;
|
|
7331
7347
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7332
7348
|
protected userNotifications(realmName?: string): UserNotifications | undefined;
|
|
7333
|
-
users(userRealmName?: string): _$alepha_orm0.Repository<_$
|
|
7334
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7335
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7336
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7337
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
7338
|
-
realm: _$alepha_orm0.PgAttr<_$
|
|
7339
|
-
username: _$
|
|
7340
|
-
email: _$
|
|
7341
|
-
phoneNumber: _$
|
|
7342
|
-
roles: _$alepha_orm0.PgAttr<_$
|
|
7343
|
-
firstName: _$
|
|
7344
|
-
lastName: _$
|
|
7345
|
-
picture: _$
|
|
7346
|
-
enabled: _$alepha_orm0.PgAttr<_$
|
|
7347
|
-
emailVerified: _$alepha_orm0.PgAttr<_$
|
|
7348
|
-
organizationId: _$alepha_orm0.PgAttr<_$
|
|
7349
|
+
users(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
|
|
7350
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7351
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7352
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7353
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7354
|
+
realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7355
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7356
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7357
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7358
|
+
roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7359
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7360
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7361
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7362
|
+
enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7363
|
+
emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
7364
|
+
organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
7349
7365
|
}>>;
|
|
7350
7366
|
/**
|
|
7351
7367
|
* Request email verification for a user.
|
|
@@ -7395,156 +7411,156 @@ declare class AdminUserController {
|
|
|
7395
7411
|
* Find users with pagination and filtering.
|
|
7396
7412
|
*/
|
|
7397
7413
|
readonly findUsers: _$alepha_server0.ActionPrimitiveFn<{
|
|
7398
|
-
query: _$
|
|
7399
|
-
page: _$
|
|
7400
|
-
size: _$
|
|
7401
|
-
sort: _$
|
|
7402
|
-
email: _$
|
|
7403
|
-
enabled: _$
|
|
7404
|
-
emailVerified: _$
|
|
7405
|
-
roles: _$
|
|
7406
|
-
userRealmName: _$
|
|
7407
|
-
}>;
|
|
7408
|
-
response: _$alepha.TPage<_$
|
|
7409
|
-
id: PgAttr<PgAttr<_$
|
|
7410
|
-
version: PgAttr<PgAttr<_$
|
|
7411
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7412
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7413
|
-
realm: PgAttr<_$
|
|
7414
|
-
username: _$
|
|
7415
|
-
email: _$
|
|
7416
|
-
phoneNumber: _$
|
|
7417
|
-
roles: PgAttr<_$
|
|
7418
|
-
firstName: _$
|
|
7419
|
-
lastName: _$
|
|
7420
|
-
picture: _$
|
|
7421
|
-
enabled: PgAttr<_$
|
|
7422
|
-
emailVerified: PgAttr<_$
|
|
7423
|
-
organizationId: PgAttr<_$
|
|
7414
|
+
query: _$typebox.TObject<{
|
|
7415
|
+
page: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7416
|
+
size: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7417
|
+
sort: _$typebox.TOptional<_$typebox.TString>;
|
|
7418
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7419
|
+
enabled: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
7420
|
+
emailVerified: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
7421
|
+
roles: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
|
|
7422
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7423
|
+
}>;
|
|
7424
|
+
response: _$alepha.TPage<_$typebox.TObject<{
|
|
7425
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7426
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7427
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7428
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7429
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
7430
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7431
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7432
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7433
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
7434
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7435
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7436
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7437
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7438
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7439
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
7424
7440
|
}>>;
|
|
7425
7441
|
}>;
|
|
7426
7442
|
/**
|
|
7427
7443
|
* Get a user by ID.
|
|
7428
7444
|
*/
|
|
7429
7445
|
readonly getUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7430
|
-
params: _$
|
|
7431
|
-
id: _$
|
|
7432
|
-
}>;
|
|
7433
|
-
query: _$
|
|
7434
|
-
userRealmName: _$
|
|
7435
|
-
}>;
|
|
7436
|
-
response: _$
|
|
7437
|
-
id: PgAttr<PgAttr<_$
|
|
7438
|
-
version: PgAttr<PgAttr<_$
|
|
7439
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7440
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7441
|
-
realm: PgAttr<_$
|
|
7442
|
-
username: _$
|
|
7443
|
-
email: _$
|
|
7444
|
-
phoneNumber: _$
|
|
7445
|
-
roles: PgAttr<_$
|
|
7446
|
-
firstName: _$
|
|
7447
|
-
lastName: _$
|
|
7448
|
-
picture: _$
|
|
7449
|
-
enabled: PgAttr<_$
|
|
7450
|
-
emailVerified: PgAttr<_$
|
|
7451
|
-
organizationId: PgAttr<_$
|
|
7446
|
+
params: _$typebox.TObject<{
|
|
7447
|
+
id: _$typebox.TString;
|
|
7448
|
+
}>;
|
|
7449
|
+
query: _$typebox.TObject<{
|
|
7450
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7451
|
+
}>;
|
|
7452
|
+
response: _$typebox.TObject<{
|
|
7453
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7454
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7455
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7456
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7457
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
7458
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7459
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7460
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7461
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
7462
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7463
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7464
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7465
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7466
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7467
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
7452
7468
|
}>;
|
|
7453
7469
|
}>;
|
|
7454
7470
|
/**
|
|
7455
7471
|
* Create a new user.
|
|
7456
7472
|
*/
|
|
7457
7473
|
readonly createUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7458
|
-
query: _$
|
|
7459
|
-
userRealmName: _$
|
|
7460
|
-
}>;
|
|
7461
|
-
body: _$
|
|
7462
|
-
enabled: _$
|
|
7463
|
-
email: _$
|
|
7464
|
-
phoneNumber: _$
|
|
7465
|
-
id: _$
|
|
7466
|
-
version: _$
|
|
7467
|
-
createdAt: _$
|
|
7468
|
-
updatedAt: _$
|
|
7469
|
-
username: _$
|
|
7470
|
-
roles: _$
|
|
7471
|
-
firstName: _$
|
|
7472
|
-
lastName: _$
|
|
7473
|
-
picture: _$
|
|
7474
|
-
emailVerified: _$
|
|
7475
|
-
organizationId: _$
|
|
7476
|
-
}>;
|
|
7477
|
-
response: _$
|
|
7478
|
-
id: PgAttr<PgAttr<_$
|
|
7479
|
-
version: PgAttr<PgAttr<_$
|
|
7480
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7481
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7482
|
-
realm: PgAttr<_$
|
|
7483
|
-
username: _$
|
|
7484
|
-
email: _$
|
|
7485
|
-
phoneNumber: _$
|
|
7486
|
-
roles: PgAttr<_$
|
|
7487
|
-
firstName: _$
|
|
7488
|
-
lastName: _$
|
|
7489
|
-
picture: _$
|
|
7490
|
-
enabled: PgAttr<_$
|
|
7491
|
-
emailVerified: PgAttr<_$
|
|
7492
|
-
organizationId: PgAttr<_$
|
|
7474
|
+
query: _$typebox.TObject<{
|
|
7475
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7476
|
+
}>;
|
|
7477
|
+
body: _$typebox.TObject<{
|
|
7478
|
+
enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7479
|
+
email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7480
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7481
|
+
id: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
7482
|
+
version: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
7483
|
+
createdAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
7484
|
+
updatedAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
7485
|
+
username: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7486
|
+
roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
|
|
7487
|
+
firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7488
|
+
lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7489
|
+
picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7490
|
+
emailVerified: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7491
|
+
organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
|
|
7492
|
+
}>;
|
|
7493
|
+
response: _$typebox.TObject<{
|
|
7494
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7495
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7496
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7497
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7498
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
7499
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7500
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7501
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7502
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
7503
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7504
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7505
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7506
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7507
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7508
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
7493
7509
|
}>;
|
|
7494
7510
|
}>;
|
|
7495
7511
|
/**
|
|
7496
7512
|
* Update a user.
|
|
7497
7513
|
*/
|
|
7498
7514
|
readonly updateUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7499
|
-
params: _$
|
|
7500
|
-
id: _$
|
|
7501
|
-
}>;
|
|
7502
|
-
query: _$
|
|
7503
|
-
userRealmName: _$
|
|
7504
|
-
}>;
|
|
7505
|
-
body: _$
|
|
7506
|
-
enabled: _$
|
|
7507
|
-
email: _$
|
|
7508
|
-
phoneNumber: _$
|
|
7509
|
-
realm: _$
|
|
7510
|
-
roles: _$
|
|
7511
|
-
firstName: _$
|
|
7512
|
-
lastName: _$
|
|
7513
|
-
picture: _$
|
|
7514
|
-
organizationId: _$
|
|
7515
|
-
}>;
|
|
7516
|
-
response: _$
|
|
7517
|
-
id: PgAttr<PgAttr<_$
|
|
7518
|
-
version: PgAttr<PgAttr<_$
|
|
7519
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7520
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7521
|
-
realm: PgAttr<_$
|
|
7522
|
-
username: _$
|
|
7523
|
-
email: _$
|
|
7524
|
-
phoneNumber: _$
|
|
7525
|
-
roles: PgAttr<_$
|
|
7526
|
-
firstName: _$
|
|
7527
|
-
lastName: _$
|
|
7528
|
-
picture: _$
|
|
7529
|
-
enabled: PgAttr<_$
|
|
7530
|
-
emailVerified: PgAttr<_$
|
|
7531
|
-
organizationId: PgAttr<_$
|
|
7515
|
+
params: _$typebox.TObject<{
|
|
7516
|
+
id: _$typebox.TString;
|
|
7517
|
+
}>;
|
|
7518
|
+
query: _$typebox.TObject<{
|
|
7519
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7520
|
+
}>;
|
|
7521
|
+
body: _$typebox.TObject<{
|
|
7522
|
+
enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
|
|
7523
|
+
email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7524
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7525
|
+
realm: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_DEFAULT>>;
|
|
7526
|
+
roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
|
|
7527
|
+
firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7528
|
+
lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7529
|
+
picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
|
|
7530
|
+
organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
|
|
7531
|
+
}>;
|
|
7532
|
+
response: _$typebox.TObject<{
|
|
7533
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7534
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7535
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7536
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7537
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
7538
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7539
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7540
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7541
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
7542
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7543
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7544
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7545
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7546
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7547
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
7532
7548
|
}>;
|
|
7533
7549
|
}>;
|
|
7534
7550
|
/**
|
|
7535
7551
|
* Delete a user.
|
|
7536
7552
|
*/
|
|
7537
7553
|
readonly deleteUser: _$alepha_server0.ActionPrimitiveFn<{
|
|
7538
|
-
params: _$
|
|
7539
|
-
id: _$
|
|
7554
|
+
params: _$typebox.TObject<{
|
|
7555
|
+
id: _$typebox.TString;
|
|
7540
7556
|
}>;
|
|
7541
|
-
query: _$
|
|
7542
|
-
userRealmName: _$
|
|
7557
|
+
query: _$typebox.TObject<{
|
|
7558
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7543
7559
|
}>;
|
|
7544
|
-
response: _$
|
|
7545
|
-
ok: _$
|
|
7546
|
-
id: _$
|
|
7547
|
-
count: _$
|
|
7560
|
+
response: _$typebox.TObject<{
|
|
7561
|
+
ok: _$typebox.TBoolean;
|
|
7562
|
+
id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
|
|
7563
|
+
count: _$typebox.TOptional<_$typebox.TNumber>;
|
|
7548
7564
|
}>;
|
|
7549
7565
|
}>;
|
|
7550
7566
|
/**
|
|
@@ -7553,14 +7569,14 @@ declare class AdminUserController {
|
|
|
7553
7569
|
* id surface with that id in the response.
|
|
7554
7570
|
*/
|
|
7555
7571
|
readonly deleteUsers: _$alepha_server0.ActionPrimitiveFn<{
|
|
7556
|
-
query: _$
|
|
7557
|
-
userRealmName: _$
|
|
7572
|
+
query: _$typebox.TObject<{
|
|
7573
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7558
7574
|
}>;
|
|
7559
|
-
body: _$
|
|
7560
|
-
ids: _$
|
|
7575
|
+
body: _$typebox.TObject<{
|
|
7576
|
+
ids: _$typebox.TArray<_$typebox.TString>;
|
|
7561
7577
|
}>;
|
|
7562
|
-
response: _$
|
|
7563
|
-
deleted: _$
|
|
7578
|
+
response: _$typebox.TObject<{
|
|
7579
|
+
deleted: _$typebox.TArray<_$typebox.TString>;
|
|
7564
7580
|
}>;
|
|
7565
7581
|
}>;
|
|
7566
7582
|
}
|
|
@@ -7581,62 +7597,62 @@ declare class RealmController {
|
|
|
7581
7597
|
* This endpoint is not exposed in the API documentation.
|
|
7582
7598
|
*/
|
|
7583
7599
|
readonly getRealmConfig: _$alepha_server0.ActionPrimitiveFn<{
|
|
7584
|
-
query: _$
|
|
7585
|
-
realmName: _$
|
|
7586
|
-
}>;
|
|
7587
|
-
response: _$
|
|
7588
|
-
settings: _$
|
|
7589
|
-
displayName: _$
|
|
7590
|
-
description: _$
|
|
7591
|
-
logoUrl: _$
|
|
7592
|
-
registrationAllowed: _$
|
|
7593
|
-
email: _$
|
|
7594
|
-
username: _$
|
|
7595
|
-
usernameRegExp: _$
|
|
7596
|
-
usernameBlocklist: _$
|
|
7597
|
-
phoneNumber: _$
|
|
7598
|
-
verifyEmailRequired: _$
|
|
7599
|
-
verifyPhoneRequired: _$
|
|
7600
|
-
firstNameLastName: _$
|
|
7601
|
-
resetPasswordAllowed: _$
|
|
7602
|
-
captchaRequired: _$
|
|
7603
|
-
adminEmails: _$
|
|
7604
|
-
adminUsernames: _$
|
|
7605
|
-
defaultRoles: _$
|
|
7606
|
-
verifyEmailUrl: _$
|
|
7607
|
-
passwordPolicy: _$
|
|
7608
|
-
minLength: _$
|
|
7609
|
-
requireUppercase: _$
|
|
7610
|
-
requireLowercase: _$
|
|
7611
|
-
requireNumbers: _$
|
|
7612
|
-
requireSpecialCharacters: _$
|
|
7600
|
+
query: _$typebox.TObject<{
|
|
7601
|
+
realmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7602
|
+
}>;
|
|
7603
|
+
response: _$typebox.TObject<{
|
|
7604
|
+
settings: _$typebox.TObject<{
|
|
7605
|
+
displayName: _$typebox.TOptional<_$typebox.TString>;
|
|
7606
|
+
description: _$typebox.TOptional<_$typebox.TString>;
|
|
7607
|
+
logoUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
7608
|
+
registrationAllowed: _$typebox.TBoolean;
|
|
7609
|
+
email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7610
|
+
username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
|
|
7611
|
+
usernameRegExp: _$typebox.TString;
|
|
7612
|
+
usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
|
|
7613
|
+
phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7614
|
+
verifyEmailRequired: _$typebox.TBoolean;
|
|
7615
|
+
verifyPhoneRequired: _$typebox.TBoolean;
|
|
7616
|
+
firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
7617
|
+
resetPasswordAllowed: _$typebox.TBoolean;
|
|
7618
|
+
captchaRequired: _$typebox.TBoolean;
|
|
7619
|
+
adminEmails: _$typebox.TArray<_$typebox.TString>;
|
|
7620
|
+
adminUsernames: _$typebox.TArray<_$typebox.TString>;
|
|
7621
|
+
defaultRoles: _$typebox.TArray<_$typebox.TString>;
|
|
7622
|
+
verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
7623
|
+
passwordPolicy: _$typebox.TObject<{
|
|
7624
|
+
minLength: _$typebox.TInteger;
|
|
7625
|
+
requireUppercase: _$typebox.TBoolean;
|
|
7626
|
+
requireLowercase: _$typebox.TBoolean;
|
|
7627
|
+
requireNumbers: _$typebox.TBoolean;
|
|
7628
|
+
requireSpecialCharacters: _$typebox.TBoolean;
|
|
7613
7629
|
}>;
|
|
7614
|
-
loginRateLimit: _$
|
|
7615
|
-
ipMaxAttempts: _$
|
|
7616
|
-
accountMaxAttempts: _$
|
|
7617
|
-
windowMs: _$
|
|
7630
|
+
loginRateLimit: _$typebox.TObject<{
|
|
7631
|
+
ipMaxAttempts: _$typebox.TInteger;
|
|
7632
|
+
accountMaxAttempts: _$typebox.TInteger;
|
|
7633
|
+
windowMs: _$typebox.TInteger;
|
|
7618
7634
|
}>;
|
|
7619
|
-
refreshToken: _$
|
|
7620
|
-
expirationIdle: _$
|
|
7635
|
+
refreshToken: _$typebox.TObject<{
|
|
7636
|
+
expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
|
|
7621
7637
|
}>;
|
|
7622
7638
|
}>;
|
|
7623
|
-
realmName: _$
|
|
7624
|
-
authenticationMethods: _$
|
|
7625
|
-
name: _$
|
|
7626
|
-
type: _$
|
|
7639
|
+
realmName: _$typebox.TString;
|
|
7640
|
+
authenticationMethods: _$typebox.TArray<_$typebox.TObject<{
|
|
7641
|
+
name: _$typebox.TString;
|
|
7642
|
+
type: _$typebox.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
7627
7643
|
}>>;
|
|
7628
|
-
captchaSiteKey: _$
|
|
7644
|
+
captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
|
|
7629
7645
|
}>;
|
|
7630
7646
|
}>;
|
|
7631
7647
|
readonly checkUsernameAvailability: _$alepha_server0.ActionPrimitiveFn<{
|
|
7632
|
-
query: _$
|
|
7633
|
-
realmName: _$
|
|
7648
|
+
query: _$typebox.TObject<{
|
|
7649
|
+
realmName: _$typebox.TOptional<_$typebox.TString>;
|
|
7634
7650
|
}>;
|
|
7635
|
-
body: _$
|
|
7636
|
-
username: _$
|
|
7651
|
+
body: _$typebox.TObject<{
|
|
7652
|
+
username: _$typebox.TString;
|
|
7637
7653
|
}>;
|
|
7638
|
-
response: _$
|
|
7639
|
-
available: _$
|
|
7654
|
+
response: _$typebox.TObject<{
|
|
7655
|
+
available: _$typebox.TBoolean;
|
|
7640
7656
|
}>;
|
|
7641
7657
|
}>;
|
|
7642
7658
|
}
|
|
@@ -7648,10 +7664,10 @@ declare class RealmController {
|
|
|
7648
7664
|
* Requires the intent ID from Phase 1, the verification code,
|
|
7649
7665
|
* and the new password.
|
|
7650
7666
|
*/
|
|
7651
|
-
declare const completePasswordResetRequestSchema: _$
|
|
7652
|
-
intentId: _$
|
|
7653
|
-
code: _$
|
|
7654
|
-
newPassword: _$
|
|
7667
|
+
declare const completePasswordResetRequestSchema: _$typebox.TObject<{
|
|
7668
|
+
intentId: _$typebox.TString;
|
|
7669
|
+
code: _$typebox.TString;
|
|
7670
|
+
newPassword: _$typebox.TString;
|
|
7655
7671
|
}>;
|
|
7656
7672
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
7657
7673
|
//#endregion
|
|
@@ -7662,9 +7678,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
7662
7678
|
* Contains the intent ID needed for Phase 2 completion,
|
|
7663
7679
|
* along with expiration time.
|
|
7664
7680
|
*/
|
|
7665
|
-
declare const passwordResetIntentResponseSchema: _$
|
|
7666
|
-
intentId: _$
|
|
7667
|
-
expiresAt: _$
|
|
7681
|
+
declare const passwordResetIntentResponseSchema: _$typebox.TObject<{
|
|
7682
|
+
intentId: _$typebox.TString;
|
|
7683
|
+
expiresAt: _$typebox.TString;
|
|
7668
7684
|
}>;
|
|
7669
7685
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
7670
7686
|
//#endregion
|
|
@@ -7689,49 +7705,49 @@ declare class CredentialService {
|
|
|
7689
7705
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
7690
7706
|
protected userNotifications(realmName?: string): UserNotifications | undefined;
|
|
7691
7707
|
protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
|
|
7692
|
-
users(userRealmName?: string): Repository$1<_$
|
|
7693
|
-
id: PgAttr<PgAttr<_$
|
|
7694
|
-
version: PgAttr<PgAttr<_$
|
|
7695
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7696
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7697
|
-
realm: PgAttr<_$
|
|
7698
|
-
username: _$
|
|
7699
|
-
email: _$
|
|
7700
|
-
phoneNumber: _$
|
|
7701
|
-
roles: PgAttr<_$
|
|
7702
|
-
firstName: _$
|
|
7703
|
-
lastName: _$
|
|
7704
|
-
picture: _$
|
|
7705
|
-
enabled: PgAttr<_$
|
|
7706
|
-
emailVerified: PgAttr<_$
|
|
7707
|
-
organizationId: PgAttr<_$
|
|
7708
|
+
users(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
7709
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7710
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7711
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7712
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7713
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
7714
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7715
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7716
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7717
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
7718
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7719
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7720
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7721
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7722
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
7723
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
7708
7724
|
}>>;
|
|
7709
|
-
sessions(userRealmName?: string): Repository$1<_$
|
|
7710
|
-
id: PgAttr<PgAttr<_$
|
|
7711
|
-
version: PgAttr<PgAttr<_$
|
|
7712
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7713
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7714
|
-
refreshToken: _$
|
|
7715
|
-
userId: PgAttr<_$
|
|
7716
|
-
expiresAt: _$
|
|
7717
|
-
lastUsedAt: _$
|
|
7718
|
-
ip: _$
|
|
7719
|
-
userAgent: _$
|
|
7720
|
-
os: _$
|
|
7721
|
-
browser: _$
|
|
7722
|
-
device: _$
|
|
7725
|
+
sessions(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
7726
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7727
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7728
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7729
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7730
|
+
refreshToken: _$typebox.TString;
|
|
7731
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
7732
|
+
expiresAt: _$typebox.TString;
|
|
7733
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
7734
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
7735
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
7736
|
+
os: _$typebox.TString;
|
|
7737
|
+
browser: _$typebox.TString;
|
|
7738
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
7723
7739
|
}>>;
|
|
7724
7740
|
}>>;
|
|
7725
|
-
identities(userRealmName?: string): Repository$1<_$
|
|
7726
|
-
id: PgAttr<PgAttr<_$
|
|
7727
|
-
version: PgAttr<PgAttr<_$
|
|
7728
|
-
createdAt: PgAttr<PgAttr<_$
|
|
7729
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
7730
|
-
userId: PgAttr<_$
|
|
7731
|
-
password: _$
|
|
7732
|
-
provider: _$
|
|
7733
|
-
providerUserId: _$
|
|
7734
|
-
providerData: _$
|
|
7741
|
+
identities(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
7742
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
7743
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
7744
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
7745
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
7746
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
7747
|
+
password: _$typebox.TOptional<_$typebox.TString>;
|
|
7748
|
+
provider: _$typebox.TString;
|
|
7749
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
7750
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
7735
7751
|
}>>;
|
|
7736
7752
|
/**
|
|
7737
7753
|
* Validate a password against the realm's password policy.
|
|
@@ -7772,11 +7788,11 @@ declare class CredentialService {
|
|
|
7772
7788
|
}
|
|
7773
7789
|
//#endregion
|
|
7774
7790
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
7775
|
-
declare const completeRegistrationRequestSchema: _$
|
|
7776
|
-
intentId: _$
|
|
7777
|
-
emailCode: _$
|
|
7778
|
-
phoneCode: _$
|
|
7779
|
-
captchaToken: _$
|
|
7791
|
+
declare const completeRegistrationRequestSchema: _$typebox.TObject<{
|
|
7792
|
+
intentId: _$typebox.TString;
|
|
7793
|
+
emailCode: _$typebox.TOptional<_$typebox.TString>;
|
|
7794
|
+
phoneCode: _$typebox.TOptional<_$typebox.TString>;
|
|
7795
|
+
captchaToken: _$typebox.TOptional<_$typebox.TString>;
|
|
7780
7796
|
}>;
|
|
7781
7797
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
7782
7798
|
//#endregion
|
|
@@ -7785,26 +7801,26 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
7785
7801
|
* Schema for user registration request body.
|
|
7786
7802
|
* Password is always required, other fields depend on realm settings.
|
|
7787
7803
|
*/
|
|
7788
|
-
declare const registerRequestSchema: _$
|
|
7789
|
-
password: _$
|
|
7790
|
-
username: _$
|
|
7791
|
-
email: _$
|
|
7792
|
-
phoneNumber: _$
|
|
7793
|
-
firstName: _$
|
|
7794
|
-
lastName: _$
|
|
7795
|
-
picture: _$
|
|
7796
|
-
captchaToken: _$
|
|
7804
|
+
declare const registerRequestSchema: _$typebox.TObject<{
|
|
7805
|
+
password: _$typebox.TString;
|
|
7806
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
7807
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
7808
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
7809
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
7810
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
7811
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
7812
|
+
captchaToken: _$typebox.TOptional<_$typebox.TString>;
|
|
7797
7813
|
}>;
|
|
7798
7814
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
7799
7815
|
//#endregion
|
|
7800
7816
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
7801
|
-
declare const registrationIntentResponseSchema: _$
|
|
7802
|
-
intentId: _$
|
|
7803
|
-
expectCaptcha: _$
|
|
7804
|
-
captchaSiteKey: _$
|
|
7805
|
-
expectEmailVerification: _$
|
|
7806
|
-
expectPhoneVerification: _$
|
|
7807
|
-
expiresAt: _$
|
|
7817
|
+
declare const registrationIntentResponseSchema: _$typebox.TObject<{
|
|
7818
|
+
intentId: _$typebox.TString;
|
|
7819
|
+
expectCaptcha: _$typebox.TBoolean;
|
|
7820
|
+
captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
|
|
7821
|
+
expectEmailVerification: _$typebox.TBoolean;
|
|
7822
|
+
expectPhoneVerification: _$typebox.TBoolean;
|
|
7823
|
+
expiresAt: _$typebox.TString;
|
|
7808
7824
|
}>;
|
|
7809
7825
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
7810
7826
|
//#endregion
|
|
@@ -7982,26 +7998,26 @@ declare class UserController {
|
|
|
7982
7998
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
7983
7999
|
*/
|
|
7984
8000
|
readonly createRegistrationIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
7985
|
-
body: _$
|
|
7986
|
-
password: _$
|
|
7987
|
-
username: _$
|
|
7988
|
-
email: _$
|
|
7989
|
-
phoneNumber: _$
|
|
7990
|
-
firstName: _$
|
|
7991
|
-
lastName: _$
|
|
7992
|
-
picture: _$
|
|
7993
|
-
captchaToken: _$
|
|
7994
|
-
}>;
|
|
7995
|
-
query: _$
|
|
7996
|
-
userRealmName: _$
|
|
7997
|
-
}>;
|
|
7998
|
-
response: _$
|
|
7999
|
-
intentId: _$
|
|
8000
|
-
expectCaptcha: _$
|
|
8001
|
-
captchaSiteKey: _$
|
|
8002
|
-
expectEmailVerification: _$
|
|
8003
|
-
expectPhoneVerification: _$
|
|
8004
|
-
expiresAt: _$
|
|
8001
|
+
body: _$typebox.TObject<{
|
|
8002
|
+
password: _$typebox.TString;
|
|
8003
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8004
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8005
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8006
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8007
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8008
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8009
|
+
captchaToken: _$typebox.TOptional<_$typebox.TString>;
|
|
8010
|
+
}>;
|
|
8011
|
+
query: _$typebox.TObject<{
|
|
8012
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8013
|
+
}>;
|
|
8014
|
+
response: _$typebox.TObject<{
|
|
8015
|
+
intentId: _$typebox.TString;
|
|
8016
|
+
expectCaptcha: _$typebox.TBoolean;
|
|
8017
|
+
captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
|
|
8018
|
+
expectEmailVerification: _$typebox.TBoolean;
|
|
8019
|
+
expectPhoneVerification: _$typebox.TBoolean;
|
|
8020
|
+
expiresAt: _$typebox.TString;
|
|
8005
8021
|
}>;
|
|
8006
8022
|
}>;
|
|
8007
8023
|
/**
|
|
@@ -8009,28 +8025,28 @@ declare class UserController {
|
|
|
8009
8025
|
* Validates verification codes and creates the user.
|
|
8010
8026
|
*/
|
|
8011
8027
|
readonly createUserFromIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
8012
|
-
body: _$
|
|
8013
|
-
intentId: _$
|
|
8014
|
-
emailCode: _$
|
|
8015
|
-
phoneCode: _$
|
|
8016
|
-
captchaToken: _$
|
|
8017
|
-
}>;
|
|
8018
|
-
response: _$
|
|
8019
|
-
id: PgAttr<PgAttr<_$
|
|
8020
|
-
version: PgAttr<PgAttr<_$
|
|
8021
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8022
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8023
|
-
realm: PgAttr<_$
|
|
8024
|
-
username: _$
|
|
8025
|
-
email: _$
|
|
8026
|
-
phoneNumber: _$
|
|
8027
|
-
roles: PgAttr<_$
|
|
8028
|
-
firstName: _$
|
|
8029
|
-
lastName: _$
|
|
8030
|
-
picture: _$
|
|
8031
|
-
enabled: PgAttr<_$
|
|
8032
|
-
emailVerified: PgAttr<_$
|
|
8033
|
-
organizationId: PgAttr<_$
|
|
8028
|
+
body: _$typebox.TObject<{
|
|
8029
|
+
intentId: _$typebox.TString;
|
|
8030
|
+
emailCode: _$typebox.TOptional<_$typebox.TString>;
|
|
8031
|
+
phoneCode: _$typebox.TOptional<_$typebox.TString>;
|
|
8032
|
+
captchaToken: _$typebox.TOptional<_$typebox.TString>;
|
|
8033
|
+
}>;
|
|
8034
|
+
response: _$typebox.TObject<{
|
|
8035
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8036
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8037
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8038
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8039
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
8040
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8041
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8042
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8043
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
8044
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8045
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8046
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8047
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8048
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8049
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
8034
8050
|
}>;
|
|
8035
8051
|
}>;
|
|
8036
8052
|
/**
|
|
@@ -8038,15 +8054,15 @@ declare class UserController {
|
|
|
8038
8054
|
* Validates email, sends verification code, and stores intent in cache.
|
|
8039
8055
|
*/
|
|
8040
8056
|
readonly createPasswordResetIntent: _$alepha_server0.ActionPrimitiveFn<{
|
|
8041
|
-
query: _$
|
|
8042
|
-
userRealmName: _$
|
|
8057
|
+
query: _$typebox.TObject<{
|
|
8058
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8043
8059
|
}>;
|
|
8044
|
-
body: _$
|
|
8045
|
-
email: _$
|
|
8060
|
+
body: _$typebox.TObject<{
|
|
8061
|
+
email: _$typebox.TString;
|
|
8046
8062
|
}>;
|
|
8047
|
-
response: _$
|
|
8048
|
-
intentId: _$
|
|
8049
|
-
expiresAt: _$
|
|
8063
|
+
response: _$typebox.TObject<{
|
|
8064
|
+
intentId: _$typebox.TString;
|
|
8065
|
+
expiresAt: _$typebox.TString;
|
|
8050
8066
|
}>;
|
|
8051
8067
|
}>;
|
|
8052
8068
|
/**
|
|
@@ -8054,61 +8070,61 @@ declare class UserController {
|
|
|
8054
8070
|
* Validates verification code, updates password, and invalidates sessions.
|
|
8055
8071
|
*/
|
|
8056
8072
|
readonly completePasswordReset: _$alepha_server0.ActionPrimitiveFn<{
|
|
8057
|
-
body: _$
|
|
8058
|
-
intentId: _$
|
|
8059
|
-
code: _$
|
|
8060
|
-
newPassword: _$
|
|
8073
|
+
body: _$typebox.TObject<{
|
|
8074
|
+
intentId: _$typebox.TString;
|
|
8075
|
+
code: _$typebox.TString;
|
|
8076
|
+
newPassword: _$typebox.TString;
|
|
8061
8077
|
}>;
|
|
8062
|
-
response: _$
|
|
8063
|
-
ok: _$
|
|
8064
|
-
id: _$
|
|
8065
|
-
count: _$
|
|
8078
|
+
response: _$typebox.TObject<{
|
|
8079
|
+
ok: _$typebox.TBoolean;
|
|
8080
|
+
id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
|
|
8081
|
+
count: _$typebox.TOptional<_$typebox.TNumber>;
|
|
8066
8082
|
}>;
|
|
8067
8083
|
}>;
|
|
8068
8084
|
/**
|
|
8069
8085
|
* @deprecated Use createPasswordResetIntent instead
|
|
8070
8086
|
*/
|
|
8071
8087
|
requestPasswordReset: _$alepha_server0.ActionPrimitiveFn<{
|
|
8072
|
-
query: _$
|
|
8073
|
-
userRealmName: _$
|
|
8088
|
+
query: _$typebox.TObject<{
|
|
8089
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8074
8090
|
}>;
|
|
8075
|
-
body: _$
|
|
8076
|
-
email: _$
|
|
8091
|
+
body: _$typebox.TObject<{
|
|
8092
|
+
email: _$typebox.TString;
|
|
8077
8093
|
}>;
|
|
8078
|
-
response: _$
|
|
8079
|
-
success: _$
|
|
8080
|
-
message: _$
|
|
8094
|
+
response: _$typebox.TObject<{
|
|
8095
|
+
success: _$typebox.TBoolean;
|
|
8096
|
+
message: _$typebox.TString;
|
|
8081
8097
|
}>;
|
|
8082
8098
|
}>;
|
|
8083
8099
|
/**
|
|
8084
8100
|
* @deprecated Use completePasswordReset instead
|
|
8085
8101
|
*/
|
|
8086
8102
|
validateResetToken: _$alepha_server0.ActionPrimitiveFn<{
|
|
8087
|
-
query: _$
|
|
8088
|
-
email: _$
|
|
8089
|
-
token: _$
|
|
8090
|
-
userRealmName: _$
|
|
8103
|
+
query: _$typebox.TObject<{
|
|
8104
|
+
email: _$typebox.TString;
|
|
8105
|
+
token: _$typebox.TString;
|
|
8106
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8091
8107
|
}>;
|
|
8092
|
-
response: _$
|
|
8093
|
-
valid: _$
|
|
8094
|
-
email: _$
|
|
8108
|
+
response: _$typebox.TObject<{
|
|
8109
|
+
valid: _$typebox.TBoolean;
|
|
8110
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8095
8111
|
}>;
|
|
8096
8112
|
}>;
|
|
8097
8113
|
/**
|
|
8098
8114
|
* @deprecated Use completePasswordReset instead
|
|
8099
8115
|
*/
|
|
8100
8116
|
resetPassword: _$alepha_server0.ActionPrimitiveFn<{
|
|
8101
|
-
query: _$
|
|
8102
|
-
userRealmName: _$
|
|
8117
|
+
query: _$typebox.TObject<{
|
|
8118
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8103
8119
|
}>;
|
|
8104
|
-
body: _$
|
|
8105
|
-
email: _$
|
|
8106
|
-
token: _$
|
|
8107
|
-
newPassword: _$
|
|
8120
|
+
body: _$typebox.TObject<{
|
|
8121
|
+
email: _$typebox.TString;
|
|
8122
|
+
token: _$typebox.TString;
|
|
8123
|
+
newPassword: _$typebox.TString;
|
|
8108
8124
|
}>;
|
|
8109
|
-
response: _$
|
|
8110
|
-
success: _$
|
|
8111
|
-
message: _$
|
|
8125
|
+
response: _$typebox.TObject<{
|
|
8126
|
+
success: _$typebox.TBoolean;
|
|
8127
|
+
message: _$typebox.TString;
|
|
8112
8128
|
}>;
|
|
8113
8129
|
}>;
|
|
8114
8130
|
/**
|
|
@@ -8118,16 +8134,16 @@ declare class UserController {
|
|
|
8118
8134
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
8119
8135
|
*/
|
|
8120
8136
|
requestEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
|
|
8121
|
-
query: _$
|
|
8122
|
-
userRealmName: _$
|
|
8123
|
-
method: _$
|
|
8137
|
+
query: _$typebox.TObject<{
|
|
8138
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8139
|
+
method: _$typebox.TOptional<_$typebox.TUnsafe<"link" | "code">>;
|
|
8124
8140
|
}>;
|
|
8125
|
-
body: _$
|
|
8126
|
-
email: _$
|
|
8141
|
+
body: _$typebox.TObject<{
|
|
8142
|
+
email: _$typebox.TString;
|
|
8127
8143
|
}>;
|
|
8128
|
-
response: _$
|
|
8129
|
-
success: _$
|
|
8130
|
-
message: _$
|
|
8144
|
+
response: _$typebox.TObject<{
|
|
8145
|
+
success: _$typebox.TBoolean;
|
|
8146
|
+
message: _$typebox.TString;
|
|
8131
8147
|
}>;
|
|
8132
8148
|
}>;
|
|
8133
8149
|
/**
|
|
@@ -8135,28 +8151,28 @@ declare class UserController {
|
|
|
8135
8151
|
* Updates the user's emailVerified status.
|
|
8136
8152
|
*/
|
|
8137
8153
|
verifyEmail: _$alepha_server0.ActionPrimitiveFn<{
|
|
8138
|
-
query: _$
|
|
8139
|
-
userRealmName: _$
|
|
8154
|
+
query: _$typebox.TObject<{
|
|
8155
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8140
8156
|
}>;
|
|
8141
|
-
body: _$
|
|
8142
|
-
email: _$
|
|
8143
|
-
token: _$
|
|
8157
|
+
body: _$typebox.TObject<{
|
|
8158
|
+
email: _$typebox.TString;
|
|
8159
|
+
token: _$typebox.TString;
|
|
8144
8160
|
}>;
|
|
8145
|
-
response: _$
|
|
8146
|
-
success: _$
|
|
8147
|
-
message: _$
|
|
8161
|
+
response: _$typebox.TObject<{
|
|
8162
|
+
success: _$typebox.TBoolean;
|
|
8163
|
+
message: _$typebox.TString;
|
|
8148
8164
|
}>;
|
|
8149
8165
|
}>;
|
|
8150
8166
|
/**
|
|
8151
8167
|
* Check if an email is verified.
|
|
8152
8168
|
*/
|
|
8153
8169
|
checkEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
|
|
8154
|
-
query: _$
|
|
8155
|
-
email: _$
|
|
8156
|
-
userRealmName: _$
|
|
8170
|
+
query: _$typebox.TObject<{
|
|
8171
|
+
email: _$typebox.TString;
|
|
8172
|
+
userRealmName: _$typebox.TOptional<_$typebox.TString>;
|
|
8157
8173
|
}>;
|
|
8158
|
-
response: _$
|
|
8159
|
-
verified: _$
|
|
8174
|
+
response: _$typebox.TObject<{
|
|
8175
|
+
verified: _$typebox.TBoolean;
|
|
8160
8176
|
}>;
|
|
8161
8177
|
}>;
|
|
8162
8178
|
}
|
|
@@ -8176,20 +8192,20 @@ declare class UserController {
|
|
|
8176
8192
|
declare class UserJobs {
|
|
8177
8193
|
protected readonly log: _$alepha_logger0.Logger;
|
|
8178
8194
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
8179
|
-
protected readonly sessionRepository: _$alepha_orm0.Repository<_$
|
|
8180
|
-
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
8181
|
-
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
8182
|
-
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
8183
|
-
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$
|
|
8184
|
-
refreshToken: _$
|
|
8185
|
-
userId: _$alepha_orm0.PgAttr<_$
|
|
8186
|
-
expiresAt: _$
|
|
8187
|
-
lastUsedAt: _$
|
|
8188
|
-
ip: _$
|
|
8189
|
-
userAgent: _$
|
|
8190
|
-
os: _$
|
|
8191
|
-
browser: _$
|
|
8192
|
-
device: _$
|
|
8195
|
+
protected readonly sessionRepository: _$alepha_orm0.Repository<_$typebox.TObject<{
|
|
8196
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8197
|
+
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8198
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8199
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
8200
|
+
refreshToken: _$typebox.TString;
|
|
8201
|
+
userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
|
|
8202
|
+
expiresAt: _$typebox.TString;
|
|
8203
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
8204
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
8205
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
8206
|
+
os: _$typebox.TString;
|
|
8207
|
+
browser: _$typebox.TString;
|
|
8208
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8193
8209
|
}>>;
|
|
8194
8210
|
}>>;
|
|
8195
8211
|
protected readonly realmProvider: RealmProvider;
|
|
@@ -8205,133 +8221,133 @@ declare class UserJobs {
|
|
|
8205
8221
|
* The idle sweep is best-effort cleanup — runtime enforcement happens in
|
|
8206
8222
|
* `SessionService.refreshSession()`.
|
|
8207
8223
|
*/
|
|
8208
|
-
readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$
|
|
8224
|
+
readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$typebox.TSchema>;
|
|
8209
8225
|
}
|
|
8210
8226
|
//#endregion
|
|
8211
8227
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
8212
|
-
declare const identityResourceSchema: _$
|
|
8213
|
-
id: PgAttr<PgAttr<_$
|
|
8214
|
-
version: PgAttr<PgAttr<_$
|
|
8215
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8216
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8217
|
-
userId: PgAttr<_$
|
|
8218
|
-
provider: _$
|
|
8219
|
-
providerUserId: _$
|
|
8220
|
-
providerData: _$
|
|
8228
|
+
declare const identityResourceSchema: _$typebox.TObject<{
|
|
8229
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8230
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8231
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8232
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8233
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
8234
|
+
provider: _$typebox.TString;
|
|
8235
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
8236
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
8221
8237
|
}>;
|
|
8222
8238
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
8223
8239
|
//#endregion
|
|
8224
8240
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
8225
|
-
declare const loginSchema: _$
|
|
8226
|
-
username: _$
|
|
8227
|
-
password: _$
|
|
8241
|
+
declare const loginSchema: _$typebox.TObject<{
|
|
8242
|
+
username: _$typebox.TString;
|
|
8243
|
+
password: _$typebox.TString;
|
|
8228
8244
|
}>;
|
|
8229
8245
|
type LoginInput = Static<typeof loginSchema>;
|
|
8230
8246
|
//#endregion
|
|
8231
8247
|
//#region ../../src/api/users/schemas/realmConfigSchema.d.ts
|
|
8232
|
-
declare const realmConfigSchema: _$
|
|
8233
|
-
settings: _$
|
|
8234
|
-
displayName: _$
|
|
8235
|
-
description: _$
|
|
8236
|
-
logoUrl: _$
|
|
8237
|
-
registrationAllowed: _$
|
|
8238
|
-
email: _$
|
|
8239
|
-
username: _$
|
|
8240
|
-
usernameRegExp: _$
|
|
8241
|
-
usernameBlocklist: _$
|
|
8242
|
-
phoneNumber: _$
|
|
8243
|
-
verifyEmailRequired: _$
|
|
8244
|
-
verifyPhoneRequired: _$
|
|
8245
|
-
firstNameLastName: _$
|
|
8246
|
-
resetPasswordAllowed: _$
|
|
8247
|
-
captchaRequired: _$
|
|
8248
|
-
adminEmails: _$
|
|
8249
|
-
adminUsernames: _$
|
|
8250
|
-
defaultRoles: _$
|
|
8251
|
-
verifyEmailUrl: _$
|
|
8252
|
-
passwordPolicy: _$
|
|
8253
|
-
minLength: _$
|
|
8254
|
-
requireUppercase: _$
|
|
8255
|
-
requireLowercase: _$
|
|
8256
|
-
requireNumbers: _$
|
|
8257
|
-
requireSpecialCharacters: _$
|
|
8258
|
-
}>;
|
|
8259
|
-
loginRateLimit: _$
|
|
8260
|
-
ipMaxAttempts: _$
|
|
8261
|
-
accountMaxAttempts: _$
|
|
8262
|
-
windowMs: _$
|
|
8263
|
-
}>;
|
|
8264
|
-
refreshToken: _$
|
|
8265
|
-
expirationIdle: _$
|
|
8248
|
+
declare const realmConfigSchema: _$typebox.TObject<{
|
|
8249
|
+
settings: _$typebox.TObject<{
|
|
8250
|
+
displayName: _$typebox.TOptional<_$typebox.TString>;
|
|
8251
|
+
description: _$typebox.TOptional<_$typebox.TString>;
|
|
8252
|
+
logoUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
8253
|
+
registrationAllowed: _$typebox.TBoolean;
|
|
8254
|
+
email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8255
|
+
username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
|
|
8256
|
+
usernameRegExp: _$typebox.TString;
|
|
8257
|
+
usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
|
|
8258
|
+
phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8259
|
+
verifyEmailRequired: _$typebox.TBoolean;
|
|
8260
|
+
verifyPhoneRequired: _$typebox.TBoolean;
|
|
8261
|
+
firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
|
|
8262
|
+
resetPasswordAllowed: _$typebox.TBoolean;
|
|
8263
|
+
captchaRequired: _$typebox.TBoolean;
|
|
8264
|
+
adminEmails: _$typebox.TArray<_$typebox.TString>;
|
|
8265
|
+
adminUsernames: _$typebox.TArray<_$typebox.TString>;
|
|
8266
|
+
defaultRoles: _$typebox.TArray<_$typebox.TString>;
|
|
8267
|
+
verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
|
|
8268
|
+
passwordPolicy: _$typebox.TObject<{
|
|
8269
|
+
minLength: _$typebox.TInteger;
|
|
8270
|
+
requireUppercase: _$typebox.TBoolean;
|
|
8271
|
+
requireLowercase: _$typebox.TBoolean;
|
|
8272
|
+
requireNumbers: _$typebox.TBoolean;
|
|
8273
|
+
requireSpecialCharacters: _$typebox.TBoolean;
|
|
8274
|
+
}>;
|
|
8275
|
+
loginRateLimit: _$typebox.TObject<{
|
|
8276
|
+
ipMaxAttempts: _$typebox.TInteger;
|
|
8277
|
+
accountMaxAttempts: _$typebox.TInteger;
|
|
8278
|
+
windowMs: _$typebox.TInteger;
|
|
8279
|
+
}>;
|
|
8280
|
+
refreshToken: _$typebox.TObject<{
|
|
8281
|
+
expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
|
|
8266
8282
|
}>;
|
|
8267
8283
|
}>;
|
|
8268
|
-
realmName: _$
|
|
8269
|
-
authenticationMethods: _$
|
|
8270
|
-
name: _$
|
|
8271
|
-
type: _$
|
|
8284
|
+
realmName: _$typebox.TString;
|
|
8285
|
+
authenticationMethods: _$typebox.TArray<_$typebox.TObject<{
|
|
8286
|
+
name: _$typebox.TString;
|
|
8287
|
+
type: _$typebox.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
8272
8288
|
}>>;
|
|
8273
|
-
captchaSiteKey: _$
|
|
8289
|
+
captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
|
|
8274
8290
|
}>;
|
|
8275
8291
|
type RealmConfig = Static<typeof realmConfigSchema>;
|
|
8276
8292
|
//#endregion
|
|
8277
8293
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
8278
|
-
declare const registerSchema: _$
|
|
8279
|
-
username: _$
|
|
8280
|
-
email: _$
|
|
8281
|
-
password: _$
|
|
8282
|
-
confirmPassword: _$
|
|
8283
|
-
firstName: _$
|
|
8284
|
-
lastName: _$
|
|
8294
|
+
declare const registerSchema: _$typebox.TObject<{
|
|
8295
|
+
username: _$typebox.TString;
|
|
8296
|
+
email: _$typebox.TString;
|
|
8297
|
+
password: _$typebox.TString;
|
|
8298
|
+
confirmPassword: _$typebox.TString;
|
|
8299
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8300
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8285
8301
|
}>;
|
|
8286
8302
|
type RegisterInput = Static<typeof registerSchema>;
|
|
8287
8303
|
//#endregion
|
|
8288
8304
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
8289
|
-
declare const resetPasswordRequestSchema: _$
|
|
8290
|
-
email: _$
|
|
8305
|
+
declare const resetPasswordRequestSchema: _$typebox.TObject<{
|
|
8306
|
+
email: _$typebox.TString;
|
|
8291
8307
|
}>;
|
|
8292
|
-
declare const resetPasswordSchema: _$
|
|
8293
|
-
token: _$
|
|
8294
|
-
password: _$
|
|
8295
|
-
confirmPassword: _$
|
|
8308
|
+
declare const resetPasswordSchema: _$typebox.TObject<{
|
|
8309
|
+
token: _$typebox.TString;
|
|
8310
|
+
password: _$typebox.TString;
|
|
8311
|
+
confirmPassword: _$typebox.TString;
|
|
8296
8312
|
}>;
|
|
8297
8313
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
8298
8314
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
8299
8315
|
//#endregion
|
|
8300
8316
|
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
8301
|
-
declare const sessionResourceSchema: _$
|
|
8302
|
-
id: _$
|
|
8303
|
-
version: _$
|
|
8304
|
-
createdAt: _$
|
|
8305
|
-
updatedAt: _$
|
|
8306
|
-
refreshToken: _$
|
|
8307
|
-
userId: _$
|
|
8308
|
-
expiresAt: _$
|
|
8309
|
-
ip: _$
|
|
8310
|
-
userAgent: _$
|
|
8311
|
-
os: _$
|
|
8312
|
-
browser: _$
|
|
8313
|
-
device: _$
|
|
8317
|
+
declare const sessionResourceSchema: _$typebox.TObject<{
|
|
8318
|
+
id: _$typebox.TString;
|
|
8319
|
+
version: _$typebox.TNumber;
|
|
8320
|
+
createdAt: _$typebox.TString;
|
|
8321
|
+
updatedAt: _$typebox.TString;
|
|
8322
|
+
refreshToken: _$typebox.TString;
|
|
8323
|
+
userId: _$typebox.TString;
|
|
8324
|
+
expiresAt: _$typebox.TString;
|
|
8325
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
8326
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
8327
|
+
os: _$typebox.TString;
|
|
8328
|
+
browser: _$typebox.TString;
|
|
8329
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8314
8330
|
}>>;
|
|
8315
8331
|
}>;
|
|
8316
8332
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
8317
8333
|
//#endregion
|
|
8318
8334
|
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
8319
|
-
declare const userResourceSchema: _$
|
|
8320
|
-
id: PgAttr<PgAttr<_$
|
|
8321
|
-
version: PgAttr<PgAttr<_$
|
|
8322
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8323
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8324
|
-
realm: PgAttr<_$
|
|
8325
|
-
username: _$
|
|
8326
|
-
email: _$
|
|
8327
|
-
phoneNumber: _$
|
|
8328
|
-
roles: PgAttr<_$
|
|
8329
|
-
firstName: _$
|
|
8330
|
-
lastName: _$
|
|
8331
|
-
picture: _$
|
|
8332
|
-
enabled: PgAttr<_$
|
|
8333
|
-
emailVerified: PgAttr<_$
|
|
8334
|
-
organizationId: PgAttr<_$
|
|
8335
|
+
declare const userResourceSchema: _$typebox.TObject<{
|
|
8336
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8337
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8338
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8339
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8340
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
8341
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8342
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8343
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8344
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
8345
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8346
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8347
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8348
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8349
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8350
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
8335
8351
|
}>;
|
|
8336
8352
|
type UserResource = Static<typeof userResourceSchema>;
|
|
8337
8353
|
//#endregion
|
|
@@ -8348,49 +8364,49 @@ declare class SessionService {
|
|
|
8348
8364
|
protected readonly usernameSlugger: UsernameSlugger;
|
|
8349
8365
|
protected userAudits(realmName?: string): UserAudits | undefined;
|
|
8350
8366
|
protected userNotifications(realmName?: string): UserNotifications | undefined;
|
|
8351
|
-
users(userRealmName?: string): Repository$1<_$
|
|
8352
|
-
id: PgAttr<PgAttr<_$
|
|
8353
|
-
version: PgAttr<PgAttr<_$
|
|
8354
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8355
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8356
|
-
realm: PgAttr<_$
|
|
8357
|
-
username: _$
|
|
8358
|
-
email: _$
|
|
8359
|
-
phoneNumber: _$
|
|
8360
|
-
roles: PgAttr<_$
|
|
8361
|
-
firstName: _$
|
|
8362
|
-
lastName: _$
|
|
8363
|
-
picture: _$
|
|
8364
|
-
enabled: PgAttr<_$
|
|
8365
|
-
emailVerified: PgAttr<_$
|
|
8366
|
-
organizationId: PgAttr<_$
|
|
8367
|
+
users(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
8368
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8369
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8370
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8371
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8372
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
8373
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8374
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8375
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8376
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
8377
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8378
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8379
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8380
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8381
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8382
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
8367
8383
|
}>>;
|
|
8368
|
-
sessions(userRealmName?: string): Repository$1<_$
|
|
8369
|
-
id: PgAttr<PgAttr<_$
|
|
8370
|
-
version: PgAttr<PgAttr<_$
|
|
8371
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8372
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8373
|
-
refreshToken: _$
|
|
8374
|
-
userId: PgAttr<_$
|
|
8375
|
-
expiresAt: _$
|
|
8376
|
-
lastUsedAt: _$
|
|
8377
|
-
ip: _$
|
|
8378
|
-
userAgent: _$
|
|
8379
|
-
os: _$
|
|
8380
|
-
browser: _$
|
|
8381
|
-
device: _$
|
|
8384
|
+
sessions(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
8385
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8386
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8387
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8388
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8389
|
+
refreshToken: _$typebox.TString;
|
|
8390
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
8391
|
+
expiresAt: _$typebox.TString;
|
|
8392
|
+
lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
|
|
8393
|
+
ip: _$typebox.TOptional<_$typebox.TString>;
|
|
8394
|
+
userAgent: _$typebox.TOptional<_$typebox.TObject<{
|
|
8395
|
+
os: _$typebox.TString;
|
|
8396
|
+
browser: _$typebox.TString;
|
|
8397
|
+
device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
8382
8398
|
}>>;
|
|
8383
8399
|
}>>;
|
|
8384
|
-
identities(userRealmName?: string): Repository$1<_$
|
|
8385
|
-
id: PgAttr<PgAttr<_$
|
|
8386
|
-
version: PgAttr<PgAttr<_$
|
|
8387
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8388
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8389
|
-
userId: PgAttr<_$
|
|
8390
|
-
password: _$
|
|
8391
|
-
provider: _$
|
|
8392
|
-
providerUserId: _$
|
|
8393
|
-
providerData: _$
|
|
8400
|
+
identities(userRealmName?: string): Repository$1<_$typebox.TObject<{
|
|
8401
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8402
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8403
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8404
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8405
|
+
userId: PgAttr<_$typebox.TString, typeof PG_REF>;
|
|
8406
|
+
password: _$typebox.TOptional<_$typebox.TString>;
|
|
8407
|
+
provider: _$typebox.TString;
|
|
8408
|
+
providerUserId: _$typebox.TOptional<_$typebox.TString>;
|
|
8409
|
+
providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
|
|
8394
8410
|
}>>;
|
|
8395
8411
|
/**
|
|
8396
8412
|
* Check if user should be auto-promoted to admin based on adminEmails/adminUsernames settings.
|
|
@@ -8439,38 +8455,38 @@ declare class SessionService {
|
|
|
8439
8455
|
sessionId: string;
|
|
8440
8456
|
}>;
|
|
8441
8457
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
8442
|
-
user: PgStatic<_$
|
|
8443
|
-
id: PgAttr<PgAttr<_$
|
|
8444
|
-
version: PgAttr<PgAttr<_$
|
|
8445
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8446
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8447
|
-
realm: PgAttr<_$
|
|
8448
|
-
username: _$
|
|
8449
|
-
email: _$
|
|
8450
|
-
phoneNumber: _$
|
|
8451
|
-
roles: PgAttr<_$
|
|
8452
|
-
firstName: _$
|
|
8453
|
-
lastName: _$
|
|
8454
|
-
picture: _$
|
|
8455
|
-
enabled: PgAttr<_$
|
|
8456
|
-
emailVerified: PgAttr<_$
|
|
8457
|
-
organizationId: PgAttr<_$
|
|
8458
|
-
}>, PgRelationMap<_$
|
|
8459
|
-
id: PgAttr<PgAttr<_$
|
|
8460
|
-
version: PgAttr<PgAttr<_$
|
|
8461
|
-
createdAt: PgAttr<PgAttr<_$
|
|
8462
|
-
updatedAt: PgAttr<PgAttr<_$
|
|
8463
|
-
realm: PgAttr<_$
|
|
8464
|
-
username: _$
|
|
8465
|
-
email: _$
|
|
8466
|
-
phoneNumber: _$
|
|
8467
|
-
roles: PgAttr<_$
|
|
8468
|
-
firstName: _$
|
|
8469
|
-
lastName: _$
|
|
8470
|
-
picture: _$
|
|
8471
|
-
enabled: PgAttr<_$
|
|
8472
|
-
emailVerified: PgAttr<_$
|
|
8473
|
-
organizationId: PgAttr<_$
|
|
8458
|
+
user: PgStatic<_$typebox.TObject<{
|
|
8459
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8460
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8461
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8462
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8463
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
8464
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8465
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8466
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8467
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
8468
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8469
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8470
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8471
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8472
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8473
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
8474
|
+
}>, PgRelationMap<_$typebox.TObject<{
|
|
8475
|
+
id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
8476
|
+
version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
8477
|
+
createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
8478
|
+
updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
8479
|
+
realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
|
|
8480
|
+
username: _$typebox.TOptional<_$typebox.TString>;
|
|
8481
|
+
email: _$typebox.TOptional<_$typebox.TString>;
|
|
8482
|
+
phoneNumber: _$typebox.TOptional<_$typebox.TString>;
|
|
8483
|
+
roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
|
|
8484
|
+
firstName: _$typebox.TOptional<_$typebox.TString>;
|
|
8485
|
+
lastName: _$typebox.TOptional<_$typebox.TString>;
|
|
8486
|
+
picture: _$typebox.TOptional<_$typebox.TString>;
|
|
8487
|
+
enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8488
|
+
emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
|
|
8489
|
+
organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
|
|
8474
8490
|
}>>>;
|
|
8475
8491
|
expiresIn: number;
|
|
8476
8492
|
sessionId: string;
|
|
@@ -8483,7 +8499,6 @@ declare class SessionService {
|
|
|
8483
8499
|
firstName?: string | undefined;
|
|
8484
8500
|
lastName?: string | undefined;
|
|
8485
8501
|
picture?: string | undefined;
|
|
8486
|
-
organizationId?: string | undefined;
|
|
8487
8502
|
enabled: boolean;
|
|
8488
8503
|
id: string;
|
|
8489
8504
|
version: number;
|
|
@@ -8492,6 +8507,7 @@ declare class SessionService {
|
|
|
8492
8507
|
realm: string;
|
|
8493
8508
|
roles: string[];
|
|
8494
8509
|
emailVerified: boolean;
|
|
8510
|
+
organizationId: string;
|
|
8495
8511
|
} | {
|
|
8496
8512
|
sub: string;
|
|
8497
8513
|
email?: string;
|