@m5kdev/backend 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/rules/backend.mdc +70 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-check-types.log +5 -0
- package/.turbo/turbo-lint$colon$fix.log +255 -0
- package/CHANGELOG.md +19 -0
- package/dist/src/lib/posthog.d.ts +3 -0
- package/dist/src/lib/posthog.d.ts.map +1 -0
- package/dist/src/lib/posthog.js +7 -0
- package/dist/src/lib/sentry.d.ts +2 -0
- package/dist/src/lib/sentry.d.ts.map +1 -0
- package/dist/src/lib/sentry.js +9 -0
- package/dist/src/modules/access/access.repository.d.ts +2348 -0
- package/dist/src/modules/access/access.repository.d.ts.map +1 -0
- package/dist/src/modules/access/access.repository.js +32 -0
- package/dist/src/modules/access/access.service.d.ts +22 -0
- package/dist/src/modules/access/access.service.d.ts.map +1 -0
- package/dist/src/modules/access/access.service.js +51 -0
- package/dist/src/modules/access/access.test.d.ts +2 -0
- package/dist/src/modules/access/access.test.d.ts.map +1 -0
- package/dist/src/modules/access/access.test.js +182 -0
- package/dist/src/modules/access/access.utils.d.ts +17 -0
- package/dist/src/modules/access/access.utils.d.ts.map +1 -0
- package/dist/src/modules/access/access.utils.js +20 -0
- package/dist/src/modules/ai/ai.db.d.ts +396 -0
- package/dist/src/modules/ai/ai.db.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.db.js +39 -0
- package/dist/src/modules/ai/ai.prompt.d.ts +28 -0
- package/dist/src/modules/ai/ai.prompt.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.prompt.js +30 -0
- package/dist/src/modules/ai/ai.repository.d.ts +424 -0
- package/dist/src/modules/ai/ai.repository.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.repository.js +26 -0
- package/dist/src/modules/ai/ai.router.d.ts +2 -0
- package/dist/src/modules/ai/ai.router.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.router.js +132 -0
- package/dist/src/modules/ai/ai.service.d.ts +115 -0
- package/dist/src/modules/ai/ai.service.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.service.js +207 -0
- package/dist/src/modules/ai/ai.trpc.d.ts +59 -0
- package/dist/src/modules/ai/ai.trpc.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.trpc.js +20 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts +8 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.js +167 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts +230 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.js +49 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts +3 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.js +860 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts +7 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.js +46 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts +10 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.js +11 -0
- package/dist/src/modules/auth/auth.db.d.ts +2336 -0
- package/dist/src/modules/auth/auth.db.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.db.js +215 -0
- package/dist/src/modules/auth/auth.dto.d.ts +66 -0
- package/dist/src/modules/auth/auth.dto.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.dto.js +38 -0
- package/dist/src/modules/auth/auth.lib.d.ts +4874 -0
- package/dist/src/modules/auth/auth.lib.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.lib.js +284 -0
- package/dist/src/modules/auth/auth.middleware.d.ts +615 -0
- package/dist/src/modules/auth/auth.middleware.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.middleware.js +52 -0
- package/dist/src/modules/auth/auth.repository.d.ts +2417 -0
- package/dist/src/modules/auth/auth.repository.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.repository.js +541 -0
- package/dist/src/modules/auth/auth.service.d.ts +104 -0
- package/dist/src/modules/auth/auth.service.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.service.js +201 -0
- package/dist/src/modules/auth/auth.trpc.d.ts +309 -0
- package/dist/src/modules/auth/auth.trpc.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.trpc.js +157 -0
- package/dist/src/modules/auth/auth.utils.d.ts +2352 -0
- package/dist/src/modules/auth/auth.utils.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.utils.js +97 -0
- package/dist/src/modules/base/base.abstract.d.ts +19 -0
- package/dist/src/modules/base/base.abstract.d.ts.map +1 -0
- package/dist/src/modules/base/base.abstract.js +53 -0
- package/dist/src/modules/base/base.dto.d.ts +70 -0
- package/dist/src/modules/base/base.dto.d.ts.map +1 -0
- package/dist/src/modules/base/base.dto.js +112 -0
- package/dist/src/modules/base/base.grants.d.ts +29 -0
- package/dist/src/modules/base/base.grants.d.ts.map +1 -0
- package/dist/src/modules/base/base.grants.js +123 -0
- package/dist/src/modules/base/base.grants.test.d.ts +2 -0
- package/dist/src/modules/base/base.grants.test.d.ts.map +1 -0
- package/dist/src/modules/base/base.grants.test.js +668 -0
- package/dist/src/modules/base/base.repository.d.ts +97 -0
- package/dist/src/modules/base/base.repository.d.ts.map +1 -0
- package/dist/src/modules/base/base.repository.js +307 -0
- package/dist/src/modules/base/base.service.d.ts +42 -0
- package/dist/src/modules/base/base.service.d.ts.map +1 -0
- package/dist/src/modules/base/base.service.js +109 -0
- package/dist/src/modules/base/base.types.d.ts +2 -0
- package/dist/src/modules/base/base.types.d.ts.map +1 -0
- package/dist/src/modules/base/base.types.js +2 -0
- package/dist/src/modules/billing/billing.db.d.ts +366 -0
- package/dist/src/modules/billing/billing.db.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.db.js +29 -0
- package/dist/src/modules/billing/billing.repository.d.ts +2764 -0
- package/dist/src/modules/billing/billing.repository.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.repository.js +235 -0
- package/dist/src/modules/billing/billing.router.d.ts +5 -0
- package/dist/src/modules/billing/billing.router.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.router.js +56 -0
- package/dist/src/modules/billing/billing.service.d.ts +60 -0
- package/dist/src/modules/billing/billing.service.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.service.js +147 -0
- package/dist/src/modules/billing/billing.trpc.d.ts +75 -0
- package/dist/src/modules/billing/billing.trpc.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.trpc.js +17 -0
- package/dist/src/modules/clay/clay.repository.d.ts +6 -0
- package/dist/src/modules/clay/clay.repository.d.ts.map +1 -0
- package/dist/src/modules/clay/clay.repository.js +26 -0
- package/dist/src/modules/clay/clay.service.d.ts +29 -0
- package/dist/src/modules/clay/clay.service.d.ts.map +1 -0
- package/dist/src/modules/clay/clay.service.js +24 -0
- package/dist/src/modules/connect/connect.db.d.ts +357 -0
- package/dist/src/modules/connect/connect.db.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.db.js +30 -0
- package/dist/src/modules/connect/connect.dto.d.ts +75 -0
- package/dist/src/modules/connect/connect.dto.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.dto.js +36 -0
- package/dist/src/modules/connect/connect.linkedin.d.ts +3 -0
- package/dist/src/modules/connect/connect.linkedin.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.linkedin.js +53 -0
- package/dist/src/modules/connect/connect.oauth.d.ts +28 -0
- package/dist/src/modules/connect/connect.oauth.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.oauth.js +198 -0
- package/dist/src/modules/connect/connect.repository.d.ts +414 -0
- package/dist/src/modules/connect/connect.repository.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.repository.js +54 -0
- package/dist/src/modules/connect/connect.router.d.ts +5 -0
- package/dist/src/modules/connect/connect.router.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.router.js +54 -0
- package/dist/src/modules/connect/connect.service.d.ts +89 -0
- package/dist/src/modules/connect/connect.service.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.service.js +114 -0
- package/dist/src/modules/connect/connect.trpc.d.ts +81 -0
- package/dist/src/modules/connect/connect.trpc.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.trpc.js +21 -0
- package/dist/src/modules/connect/connect.types.d.ts +26 -0
- package/dist/src/modules/connect/connect.types.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.types.js +2 -0
- package/dist/src/modules/crypto/crypto.db.d.ts +152 -0
- package/dist/src/modules/crypto/crypto.db.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.db.js +17 -0
- package/dist/src/modules/crypto/crypto.repository.d.ts +160 -0
- package/dist/src/modules/crypto/crypto.repository.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.repository.js +10 -0
- package/dist/src/modules/crypto/crypto.service.d.ts +11 -0
- package/dist/src/modules/crypto/crypto.service.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.service.js +52 -0
- package/dist/src/modules/email/email.service.d.ts +57 -0
- package/dist/src/modules/email/email.service.d.ts.map +1 -0
- package/dist/src/modules/email/email.service.js +107 -0
- package/dist/src/modules/file/file.repository.d.ts +13 -0
- package/dist/src/modules/file/file.repository.d.ts.map +1 -0
- package/dist/src/modules/file/file.repository.js +79 -0
- package/dist/src/modules/file/file.router.d.ts +4 -0
- package/dist/src/modules/file/file.router.d.ts.map +1 -0
- package/dist/src/modules/file/file.router.js +99 -0
- package/dist/src/modules/file/file.service.d.ts +25 -0
- package/dist/src/modules/file/file.service.d.ts.map +1 -0
- package/dist/src/modules/file/file.service.js +150 -0
- package/dist/src/modules/recurrence/recurrence.db.d.ts +563 -0
- package/dist/src/modules/recurrence/recurrence.db.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.db.js +66 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.ts +585 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.repository.js +39 -0
- package/dist/src/modules/recurrence/recurrence.service.d.ts +30 -0
- package/dist/src/modules/recurrence/recurrence.service.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.service.js +70 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts +243 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.trpc.js +65 -0
- package/dist/src/modules/social/social.dto.d.ts +35 -0
- package/dist/src/modules/social/social.dto.d.ts.map +1 -0
- package/dist/src/modules/social/social.dto.js +18 -0
- package/dist/src/modules/social/social.linkedin.d.ts +11 -0
- package/dist/src/modules/social/social.linkedin.d.ts.map +1 -0
- package/dist/src/modules/social/social.linkedin.js +427 -0
- package/dist/src/modules/social/social.linkedin.test.d.ts +2 -0
- package/dist/src/modules/social/social.linkedin.test.d.ts.map +1 -0
- package/dist/src/modules/social/social.linkedin.test.js +235 -0
- package/dist/src/modules/social/social.service.d.ts +29 -0
- package/dist/src/modules/social/social.service.d.ts.map +1 -0
- package/dist/src/modules/social/social.service.js +76 -0
- package/dist/src/modules/social/social.types.d.ts +36 -0
- package/dist/src/modules/social/social.types.d.ts.map +1 -0
- package/dist/src/modules/social/social.types.js +2 -0
- package/dist/src/modules/tag/tag.db.d.ts +347 -0
- package/dist/src/modules/tag/tag.db.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.db.js +42 -0
- package/dist/src/modules/tag/tag.dto.d.ts +1019 -0
- package/dist/src/modules/tag/tag.dto.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.dto.js +9 -0
- package/dist/src/modules/tag/tag.repository.d.ts +384 -0
- package/dist/src/modules/tag/tag.repository.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.repository.js +154 -0
- package/dist/src/modules/tag/tag.service.d.ts +36 -0
- package/dist/src/modules/tag/tag.service.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.service.js +31 -0
- package/dist/src/modules/tag/tag.trpc.d.ts +191 -0
- package/dist/src/modules/tag/tag.trpc.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.trpc.js +47 -0
- package/dist/src/modules/utils/applyPagination.d.ts +7 -0
- package/dist/src/modules/utils/applyPagination.d.ts.map +1 -0
- package/dist/src/modules/utils/applyPagination.js +16 -0
- package/dist/src/modules/utils/applySorting.d.ts +9 -0
- package/dist/src/modules/utils/applySorting.d.ts.map +1 -0
- package/dist/src/modules/utils/applySorting.js +18 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts +5 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts.map +1 -0
- package/dist/src/modules/utils/getConditionsFromFilters.js +200 -0
- package/dist/src/modules/video/video.service.d.ts +8 -0
- package/dist/src/modules/video/video.service.d.ts.map +1 -0
- package/dist/src/modules/video/video.service.js +84 -0
- package/dist/src/modules/webhook/webhook.constants.d.ts +9 -0
- package/dist/src/modules/webhook/webhook.constants.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.constants.js +10 -0
- package/dist/src/modules/webhook/webhook.db.d.ts +137 -0
- package/dist/src/modules/webhook/webhook.db.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.db.js +17 -0
- package/dist/src/modules/webhook/webhook.dto.d.ts +395 -0
- package/dist/src/modules/webhook/webhook.dto.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.dto.js +7 -0
- package/dist/src/modules/webhook/webhook.repository.d.ts +149 -0
- package/dist/src/modules/webhook/webhook.repository.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.repository.js +56 -0
- package/dist/src/modules/webhook/webhook.router.d.ts +4 -0
- package/dist/src/modules/webhook/webhook.router.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.router.js +30 -0
- package/dist/src/modules/webhook/webhook.service.d.ts +10 -0
- package/dist/src/modules/webhook/webhook.service.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.service.js +68 -0
- package/dist/src/modules/workflow/workflow.db.d.ts +297 -0
- package/dist/src/modules/workflow/workflow.db.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.db.js +30 -0
- package/dist/src/modules/workflow/workflow.repository.d.ts +344 -0
- package/dist/src/modules/workflow/workflow.repository.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.repository.js +105 -0
- package/dist/src/modules/workflow/workflow.service.d.ts +22 -0
- package/dist/src/modules/workflow/workflow.service.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.service.js +37 -0
- package/dist/src/modules/workflow/workflow.trpc.d.ts +93 -0
- package/dist/src/modules/workflow/workflow.trpc.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.trpc.js +21 -0
- package/dist/src/modules/workflow/workflow.types.d.ts +21 -0
- package/dist/src/modules/workflow/workflow.types.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.types.js +2 -0
- package/dist/src/modules/workflow/workflow.utils.d.ts +22 -0
- package/dist/src/modules/workflow/workflow.utils.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.utils.js +173 -0
- package/dist/src/test/stubs/utils.d.ts +3 -0
- package/dist/src/test/stubs/utils.d.ts.map +1 -0
- package/dist/src/test/stubs/utils.js +5 -0
- package/dist/src/trpc/context.d.ts +42 -0
- package/dist/src/trpc/context.d.ts.map +1 -0
- package/dist/src/trpc/context.js +17 -0
- package/dist/src/trpc/index.d.ts +4 -0
- package/dist/src/trpc/index.d.ts.map +1 -0
- package/dist/src/trpc/index.js +6 -0
- package/dist/src/trpc/procedures.d.ts +234 -0
- package/dist/src/trpc/procedures.d.ts.map +1 -0
- package/dist/src/trpc/procedures.js +32 -0
- package/dist/src/trpc/utils.d.ts +5 -0
- package/dist/src/trpc/utils.d.ts.map +1 -0
- package/dist/src/trpc/utils.js +20 -0
- package/dist/src/types.d.ts +486 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +13 -0
- package/dist/src/utils/errors.d.ts +50 -0
- package/dist/src/utils/errors.d.ts.map +1 -0
- package/dist/src/utils/errors.js +104 -0
- package/dist/src/utils/logger.d.ts +2 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +11 -0
- package/dist/src/utils/posthog.d.ts +14 -0
- package/dist/src/utils/posthog.d.ts.map +1 -0
- package/dist/src/utils/posthog.js +31 -0
- package/dist/src/utils/types.d.ts +5 -0
- package/dist/src/utils/types.d.ts.map +1 -0
- package/dist/src/utils/types.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/jest.config.ts +19 -0
- package/package.json +3 -6
- package/tsconfig.json +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.db.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/auth.db.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountClaimMagicLinks = exports.waitlist = exports.apikeys = exports.invitations = exports.teamMembers = exports.teams = exports.members = exports.organizations = exports.verifications = exports.accounts = exports.sessions = exports.users = void 0;
|
|
4
|
+
const sqlite_core_1 = require("drizzle-orm/sqlite-core");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
exports.users = (0, sqlite_core_1.sqliteTable)("users", {
|
|
7
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
8
|
+
name: (0, sqlite_core_1.text)("name").notNull(),
|
|
9
|
+
email: (0, sqlite_core_1.text)("email").notNull().unique(),
|
|
10
|
+
emailVerified: (0, sqlite_core_1.integer)("email_verified", { mode: "boolean" }).notNull(),
|
|
11
|
+
image: (0, sqlite_core_1.text)("image"),
|
|
12
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
13
|
+
.notNull()
|
|
14
|
+
.$default(() => new Date()),
|
|
15
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" })
|
|
16
|
+
.notNull()
|
|
17
|
+
.$default(() => new Date()),
|
|
18
|
+
role: (0, sqlite_core_1.text)("role"),
|
|
19
|
+
banned: (0, sqlite_core_1.integer)("banned", { mode: "boolean" }),
|
|
20
|
+
banReason: (0, sqlite_core_1.text)("ban_reason"),
|
|
21
|
+
banExpires: (0, sqlite_core_1.integer)("ban_expires", { mode: "timestamp" }),
|
|
22
|
+
stripeCustomerId: (0, sqlite_core_1.text)("stripe_customer_id").unique(),
|
|
23
|
+
paymentCustomerId: (0, sqlite_core_1.text)("payment_customer_id").unique(),
|
|
24
|
+
paymentPlanTier: (0, sqlite_core_1.text)("payment_plan_tier"),
|
|
25
|
+
paymentPlanExpiresAt: (0, sqlite_core_1.integer)("payment_plan_expires_at", {
|
|
26
|
+
mode: "timestamp",
|
|
27
|
+
}),
|
|
28
|
+
preferences: (0, sqlite_core_1.text)("preferences"),
|
|
29
|
+
metadata: (0, sqlite_core_1.text)("metadata", { mode: "json" })
|
|
30
|
+
.notNull()
|
|
31
|
+
.default({})
|
|
32
|
+
.$type(),
|
|
33
|
+
onboarding: (0, sqlite_core_1.integer)("onboarding"),
|
|
34
|
+
flags: (0, sqlite_core_1.text)("flags"),
|
|
35
|
+
});
|
|
36
|
+
exports.sessions = (0, sqlite_core_1.sqliteTable)("sessions", {
|
|
37
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
38
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }).notNull(),
|
|
39
|
+
token: (0, sqlite_core_1.text)("token").notNull().unique(),
|
|
40
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
41
|
+
.notNull()
|
|
42
|
+
.$default(() => new Date()),
|
|
43
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" })
|
|
44
|
+
.notNull()
|
|
45
|
+
.$default(() => new Date()),
|
|
46
|
+
ipAddress: (0, sqlite_core_1.text)("ip_address"),
|
|
47
|
+
userAgent: (0, sqlite_core_1.text)("user_agent"),
|
|
48
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
49
|
+
.notNull()
|
|
50
|
+
.references(() => exports.users.id, { onDelete: "cascade" }),
|
|
51
|
+
impersonatedBy: (0, sqlite_core_1.text)("impersonated_by"),
|
|
52
|
+
activeOrganizationId: (0, sqlite_core_1.text)("active_organization_id"),
|
|
53
|
+
activeOrganizationRole: (0, sqlite_core_1.text)("active_organization_role"),
|
|
54
|
+
activeTeamId: (0, sqlite_core_1.text)("active_team_id"),
|
|
55
|
+
activeTeamRole: (0, sqlite_core_1.text)("active_team_role"),
|
|
56
|
+
});
|
|
57
|
+
exports.accounts = (0, sqlite_core_1.sqliteTable)("accounts", {
|
|
58
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
59
|
+
accountId: (0, sqlite_core_1.text)("account_id").notNull(),
|
|
60
|
+
providerId: (0, sqlite_core_1.text)("provider_id").notNull(),
|
|
61
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
62
|
+
.notNull()
|
|
63
|
+
.references(() => exports.users.id, { onDelete: "cascade" }),
|
|
64
|
+
accessToken: (0, sqlite_core_1.text)("access_token"),
|
|
65
|
+
refreshToken: (0, sqlite_core_1.text)("refresh_token"),
|
|
66
|
+
idToken: (0, sqlite_core_1.text)("id_token"),
|
|
67
|
+
accessTokenExpiresAt: (0, sqlite_core_1.integer)("access_token_expires_at", {
|
|
68
|
+
mode: "timestamp",
|
|
69
|
+
}),
|
|
70
|
+
refreshTokenExpiresAt: (0, sqlite_core_1.integer)("refresh_token_expires_at", {
|
|
71
|
+
mode: "timestamp",
|
|
72
|
+
}),
|
|
73
|
+
scope: (0, sqlite_core_1.text)("scope"),
|
|
74
|
+
password: (0, sqlite_core_1.text)("password"),
|
|
75
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
76
|
+
.notNull()
|
|
77
|
+
.$default(() => new Date()),
|
|
78
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" })
|
|
79
|
+
.notNull()
|
|
80
|
+
.$default(() => new Date()),
|
|
81
|
+
});
|
|
82
|
+
exports.verifications = (0, sqlite_core_1.sqliteTable)("verifications", {
|
|
83
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
84
|
+
identifier: (0, sqlite_core_1.text)("identifier").notNull(),
|
|
85
|
+
value: (0, sqlite_core_1.text)("value").notNull(),
|
|
86
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }).notNull(),
|
|
87
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" }).$default(() => new Date()),
|
|
88
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" }).$default(() => new Date()),
|
|
89
|
+
});
|
|
90
|
+
exports.organizations = (0, sqlite_core_1.sqliteTable)("organizations", {
|
|
91
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
92
|
+
name: (0, sqlite_core_1.text)("name").notNull(),
|
|
93
|
+
slug: (0, sqlite_core_1.text)("slug").unique(),
|
|
94
|
+
logo: (0, sqlite_core_1.text)("logo"),
|
|
95
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
96
|
+
.notNull()
|
|
97
|
+
.$default(() => new Date()),
|
|
98
|
+
metadata: (0, sqlite_core_1.text)("metadata"),
|
|
99
|
+
});
|
|
100
|
+
exports.members = (0, sqlite_core_1.sqliteTable)("members", {
|
|
101
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
102
|
+
organizationId: (0, sqlite_core_1.text)("organization_id")
|
|
103
|
+
.notNull()
|
|
104
|
+
.references(() => exports.organizations.id),
|
|
105
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
106
|
+
.notNull()
|
|
107
|
+
.references(() => exports.users.id),
|
|
108
|
+
role: (0, sqlite_core_1.text)("role").notNull(),
|
|
109
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
110
|
+
.notNull()
|
|
111
|
+
.$default(() => new Date()),
|
|
112
|
+
});
|
|
113
|
+
exports.teams = (0, sqlite_core_1.sqliteTable)("teams", {
|
|
114
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
115
|
+
name: (0, sqlite_core_1.text)("name").notNull(),
|
|
116
|
+
organizationId: (0, sqlite_core_1.text)("organization_id")
|
|
117
|
+
.notNull()
|
|
118
|
+
.references(() => exports.organizations.id),
|
|
119
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
120
|
+
.notNull()
|
|
121
|
+
.$default(() => new Date()),
|
|
122
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" }),
|
|
123
|
+
});
|
|
124
|
+
exports.teamMembers = (0, sqlite_core_1.sqliteTable)("teammembers", {
|
|
125
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
126
|
+
teamId: (0, sqlite_core_1.text)("team_id")
|
|
127
|
+
.notNull()
|
|
128
|
+
.references(() => exports.teams.id),
|
|
129
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
130
|
+
.notNull()
|
|
131
|
+
.references(() => exports.users.id),
|
|
132
|
+
role: (0, sqlite_core_1.text)("role").notNull(),
|
|
133
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
134
|
+
.notNull()
|
|
135
|
+
.$default(() => new Date()),
|
|
136
|
+
});
|
|
137
|
+
exports.invitations = (0, sqlite_core_1.sqliteTable)("invitations", {
|
|
138
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
139
|
+
organizationId: (0, sqlite_core_1.text)("organization_id")
|
|
140
|
+
.notNull()
|
|
141
|
+
.references(() => exports.organizations.id),
|
|
142
|
+
teamId: (0, sqlite_core_1.text)("team_id").references(() => exports.teams.id),
|
|
143
|
+
email: (0, sqlite_core_1.text)("email").notNull(),
|
|
144
|
+
role: (0, sqlite_core_1.text)("role"),
|
|
145
|
+
status: (0, sqlite_core_1.text)("status").notNull(),
|
|
146
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
147
|
+
.notNull()
|
|
148
|
+
.$default(() => new Date()),
|
|
149
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }).notNull(),
|
|
150
|
+
inviterId: (0, sqlite_core_1.text)("inviter_id")
|
|
151
|
+
.notNull()
|
|
152
|
+
.references(() => exports.users.id),
|
|
153
|
+
});
|
|
154
|
+
exports.apikeys = (0, sqlite_core_1.sqliteTable)("apikeys", {
|
|
155
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
156
|
+
name: (0, sqlite_core_1.text)("name"),
|
|
157
|
+
start: (0, sqlite_core_1.text)("start"),
|
|
158
|
+
prefix: (0, sqlite_core_1.text)("prefix"),
|
|
159
|
+
key: (0, sqlite_core_1.text)("key").notNull(),
|
|
160
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
161
|
+
.notNull()
|
|
162
|
+
.references(() => exports.users.id),
|
|
163
|
+
refillInterval: (0, sqlite_core_1.integer)("refill_interval", { mode: "number" }),
|
|
164
|
+
refillAmount: (0, sqlite_core_1.integer)("refill_amount", { mode: "number" }),
|
|
165
|
+
lastRefillAt: (0, sqlite_core_1.integer)("last_refill_at", { mode: "timestamp" }),
|
|
166
|
+
enabled: (0, sqlite_core_1.integer)("enabled", { mode: "boolean" }).notNull(),
|
|
167
|
+
rateLimitEnabled: (0, sqlite_core_1.integer)("rate_limit_enabled", { mode: "boolean" }).notNull(),
|
|
168
|
+
rateLimitTimeWindow: (0, sqlite_core_1.integer)("rate_limit_time_window", { mode: "number" }),
|
|
169
|
+
rateLimitMax: (0, sqlite_core_1.integer)("rate_limit_max", { mode: "number" }),
|
|
170
|
+
requestCount: (0, sqlite_core_1.integer)("request_count", { mode: "number" }).notNull(),
|
|
171
|
+
remaining: (0, sqlite_core_1.integer)("remaining", { mode: "number" }),
|
|
172
|
+
lastRequest: (0, sqlite_core_1.integer)("last_request", { mode: "timestamp" }),
|
|
173
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }),
|
|
174
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
175
|
+
.notNull()
|
|
176
|
+
.$default(() => new Date()),
|
|
177
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" })
|
|
178
|
+
.notNull()
|
|
179
|
+
.$default(() => new Date()),
|
|
180
|
+
permissions: (0, sqlite_core_1.text)("permissions"),
|
|
181
|
+
metadata: (0, sqlite_core_1.text)("metadata"),
|
|
182
|
+
});
|
|
183
|
+
exports.waitlist = (0, sqlite_core_1.sqliteTable)("waitlist", {
|
|
184
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
185
|
+
name: (0, sqlite_core_1.text)("name"),
|
|
186
|
+
email: (0, sqlite_core_1.text)("email"),
|
|
187
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
188
|
+
.notNull()
|
|
189
|
+
.$default(() => new Date()),
|
|
190
|
+
updatedAt: (0, sqlite_core_1.integer)("updated_at", { mode: "timestamp" }),
|
|
191
|
+
status: (0, sqlite_core_1.text)("status").notNull().default("WAITLIST"),
|
|
192
|
+
type: (0, sqlite_core_1.text)("type").notNull().default("WAITLIST"),
|
|
193
|
+
code: (0, sqlite_core_1.text)("code"),
|
|
194
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }),
|
|
195
|
+
userId: (0, sqlite_core_1.text)("user_id").references(() => exports.users.id),
|
|
196
|
+
claimUserId: (0, sqlite_core_1.text)("claim_user_id").references(() => exports.users.id),
|
|
197
|
+
claimedAt: (0, sqlite_core_1.integer)("claimed_at", { mode: "timestamp" }),
|
|
198
|
+
claimedEmail: (0, sqlite_core_1.text)("claimed_email"),
|
|
199
|
+
});
|
|
200
|
+
exports.accountClaimMagicLinks = (0, sqlite_core_1.sqliteTable)("account_claim_magic_links", {
|
|
201
|
+
id: (0, sqlite_core_1.text)("id").primaryKey().$default(uuid_1.v4),
|
|
202
|
+
claimId: (0, sqlite_core_1.text)("claim_id")
|
|
203
|
+
.notNull()
|
|
204
|
+
.references(() => exports.waitlist.id, { onDelete: "cascade" }),
|
|
205
|
+
userId: (0, sqlite_core_1.text)("user_id")
|
|
206
|
+
.notNull()
|
|
207
|
+
.references(() => exports.users.id, { onDelete: "cascade" }),
|
|
208
|
+
email: (0, sqlite_core_1.text)("email").notNull(),
|
|
209
|
+
token: (0, sqlite_core_1.text)("token").notNull(),
|
|
210
|
+
url: (0, sqlite_core_1.text)("url").notNull(),
|
|
211
|
+
expiresAt: (0, sqlite_core_1.integer)("expires_at", { mode: "timestamp" }),
|
|
212
|
+
createdAt: (0, sqlite_core_1.integer)("created_at", { mode: "timestamp" })
|
|
213
|
+
.notNull()
|
|
214
|
+
.$default(() => new Date()),
|
|
215
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const waitlistSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
email: z.ZodNullable<z.ZodString>;
|
|
6
|
+
createdAt: z.ZodDate;
|
|
7
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
8
|
+
status: z.ZodString;
|
|
9
|
+
code: z.ZodNullable<z.ZodString>;
|
|
10
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const waitlistOutputSchema: z.ZodObject<{
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
createdAt: z.ZodDate;
|
|
16
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
17
|
+
email: z.ZodNullable<z.ZodString>;
|
|
18
|
+
status: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type WaitlistOutput = z.infer<typeof waitlistOutputSchema>;
|
|
21
|
+
export type Waitlist = z.infer<typeof waitlistSchema>;
|
|
22
|
+
export declare const accountClaimSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
claimUserId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
code: z.ZodNullable<z.ZodString>;
|
|
26
|
+
status: z.ZodString;
|
|
27
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
28
|
+
claimedAt: z.ZodNullable<z.ZodDate>;
|
|
29
|
+
claimedEmail: z.ZodNullable<z.ZodString>;
|
|
30
|
+
createdAt: z.ZodDate;
|
|
31
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const accountClaimOutputSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
36
|
+
createdAt: z.ZodDate;
|
|
37
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
38
|
+
status: z.ZodString;
|
|
39
|
+
claimUserId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
claimedAt: z.ZodNullable<z.ZodDate>;
|
|
41
|
+
claimedEmail: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type AccountClaim = z.infer<typeof accountClaimSchema>;
|
|
44
|
+
export type AccountClaimOutput = z.infer<typeof accountClaimOutputSchema>;
|
|
45
|
+
export declare const accountClaimMagicLinkSchema: z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
claimId: z.ZodString;
|
|
48
|
+
userId: z.ZodString;
|
|
49
|
+
email: z.ZodString;
|
|
50
|
+
token: z.ZodString;
|
|
51
|
+
url: z.ZodString;
|
|
52
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
53
|
+
createdAt: z.ZodDate;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const accountClaimMagicLinkOutputSchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
userId: z.ZodString;
|
|
58
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
59
|
+
createdAt: z.ZodDate;
|
|
60
|
+
email: z.ZodString;
|
|
61
|
+
url: z.ZodString;
|
|
62
|
+
claimId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type AccountClaimMagicLink = z.infer<typeof accountClaimMagicLinkSchema>;
|
|
65
|
+
export type AccountClaimMagicLinkOutput = z.infer<typeof accountClaimMagicLinkOutputSchema>;
|
|
66
|
+
//# sourceMappingURL=auth.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/auth.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;iBASzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAAuD,CAAC;AACzF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;;;;;;;iBAU7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;iBAA0C,CAAC;AAChF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;;;;;iBAStC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;iBAAoD,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountClaimMagicLinkOutputSchema = exports.accountClaimMagicLinkSchema = exports.accountClaimOutputSchema = exports.accountClaimSchema = exports.waitlistOutputSchema = exports.waitlistSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.waitlistSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string().nullable(),
|
|
8
|
+
email: zod_1.z.string().nullable(),
|
|
9
|
+
createdAt: zod_1.z.date(),
|
|
10
|
+
updatedAt: zod_1.z.date().nullable(),
|
|
11
|
+
status: zod_1.z.string(),
|
|
12
|
+
code: zod_1.z.string().nullable(),
|
|
13
|
+
expiresAt: zod_1.z.date().nullable(),
|
|
14
|
+
});
|
|
15
|
+
exports.waitlistOutputSchema = exports.waitlistSchema.omit({ code: true, expiresAt: true });
|
|
16
|
+
exports.accountClaimSchema = zod_1.z.object({
|
|
17
|
+
id: zod_1.z.string(),
|
|
18
|
+
claimUserId: zod_1.z.string().nullable(),
|
|
19
|
+
code: zod_1.z.string().nullable(),
|
|
20
|
+
status: zod_1.z.string(),
|
|
21
|
+
expiresAt: zod_1.z.date().nullable(),
|
|
22
|
+
claimedAt: zod_1.z.date().nullable(),
|
|
23
|
+
claimedEmail: zod_1.z.string().nullable(),
|
|
24
|
+
createdAt: zod_1.z.date(),
|
|
25
|
+
updatedAt: zod_1.z.date().nullable(),
|
|
26
|
+
});
|
|
27
|
+
exports.accountClaimOutputSchema = exports.accountClaimSchema.omit({ code: true });
|
|
28
|
+
exports.accountClaimMagicLinkSchema = zod_1.z.object({
|
|
29
|
+
id: zod_1.z.string(),
|
|
30
|
+
claimId: zod_1.z.string(),
|
|
31
|
+
userId: zod_1.z.string(),
|
|
32
|
+
email: zod_1.z.string(),
|
|
33
|
+
token: zod_1.z.string(),
|
|
34
|
+
url: zod_1.z.string(),
|
|
35
|
+
expiresAt: zod_1.z.date().nullable(),
|
|
36
|
+
createdAt: zod_1.z.date(),
|
|
37
|
+
});
|
|
38
|
+
exports.accountClaimMagicLinkOutputSchema = exports.accountClaimMagicLinkSchema.omit({ token: true });
|