@m5kdev/backend 0.6.0 → 0.8.0
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/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/api/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/factory.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-id-field.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/get-tables.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/account.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/rate-limit.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/session.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/shared.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/user.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/verification.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/context.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/helper.d.mts +7 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/init-options.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin-client.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter-base.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/expression/expression-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/kysely.d.mts +38 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/file-migration-provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/migrator.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/binary-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/delete-from-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/expression-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/group-by-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/insert-values-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/join-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/merge-into-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/reference-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/returning-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-from-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/set-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/tuple-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/unary-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-set-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/value-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/with-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/case-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/delete-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/having-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/join-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/merge-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/on-conflict-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/output-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/returning-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/select-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/update-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/where-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-creator.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/default-query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/noop-query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/raw-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/sql.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-foreign-key-constraint-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-drop-constraint-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-schema-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-type-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-schema-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-type-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/refresh-materialized-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/schema.d.mts +1 -0
- package/dist/src/lib/posthog.d.mts +7 -0
- package/dist/src/lib/posthog.mjs +7 -0
- package/dist/src/lib/posthog.mjs.map +1 -0
- package/dist/src/lib/sentry.d.mts +1 -0
- package/dist/src/lib/sentry.mjs +10 -0
- package/dist/src/lib/sentry.mjs.map +1 -0
- package/dist/src/modules/access/access.repository.d.mts +2352 -0
- package/dist/src/modules/access/access.repository.mjs +24 -0
- package/dist/src/modules/access/access.repository.mjs.map +1 -0
- package/dist/src/modules/access/access.service.d.mts +25 -0
- package/dist/src/modules/access/access.service.mjs +40 -0
- package/dist/src/modules/access/access.service.mjs.map +1 -0
- package/dist/src/modules/access/access.utils.d.mts +19 -0
- package/dist/src/modules/access/access.utils.mjs +21 -0
- package/dist/src/modules/access/access.utils.mjs.map +1 -0
- package/dist/src/modules/ai/ai.db.d.mts +401 -0
- package/dist/src/modules/ai/ai.db.mjs +38 -0
- package/dist/src/modules/ai/ai.db.mjs.map +1 -0
- package/dist/src/modules/ai/ai.prompt.d.mts +30 -0
- package/dist/src/modules/ai/ai.prompt.mjs +30 -0
- package/dist/src/modules/ai/ai.prompt.mjs.map +1 -0
- package/dist/src/modules/ai/ai.prompts.d.mts +10 -0
- package/dist/src/modules/ai/{ai.prompts.js → ai.prompts.mjs} +17 -15
- package/dist/src/modules/ai/ai.prompts.mjs.map +1 -0
- package/dist/src/modules/ai/ai.repository.d.mts +428 -0
- package/dist/src/modules/ai/ai.repository.mjs +23 -0
- package/dist/src/modules/ai/ai.repository.mjs.map +1 -0
- package/dist/src/modules/ai/ai.router.d.mts +1 -0
- package/dist/src/modules/ai/ai.service.d.mts +128 -0
- package/dist/src/modules/ai/ai.service.mjs +267 -0
- package/dist/src/modules/ai/ai.service.mjs.map +1 -0
- package/dist/src/modules/ai/ai.trpc.d.mts +31 -0
- package/dist/src/modules/ai/ai.trpc.mjs +17 -0
- package/dist/src/modules/ai/ai.trpc.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.mts +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.mjs +184 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.mts +234 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.mjs +45 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.mts +7 -0
- package/dist/src/modules/ai/ideogram/{ideogram.prompt.js → ideogram.prompt.mjs} +861 -859
- package/dist/src/modules/ai/ideogram/ideogram.prompt.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.mts +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.mjs +32 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.mts +14 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.mjs +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.mjs.map +1 -0
- package/dist/src/modules/auth/auth.db.d.mts +2341 -0
- package/dist/src/modules/auth/auth.db.mjs +169 -0
- package/dist/src/modules/auth/auth.db.mjs.map +1 -0
- package/dist/src/modules/auth/auth.dto.d.mts +70 -0
- package/dist/src/modules/auth/auth.dto.mjs +43 -0
- package/dist/src/modules/auth/auth.dto.mjs.map +1 -0
- package/dist/src/modules/auth/auth.lib.d.mts +4894 -0
- package/dist/src/modules/auth/auth.lib.mjs +232 -0
- package/dist/src/modules/auth/auth.lib.mjs.map +1 -0
- package/dist/src/modules/auth/auth.middleware.d.mts +619 -0
- package/dist/src/modules/auth/auth.middleware.mjs +38 -0
- package/dist/src/modules/auth/auth.middleware.mjs.map +1 -0
- package/dist/src/modules/auth/auth.repository.d.mts +2453 -0
- package/dist/src/modules/auth/auth.repository.mjs +401 -0
- package/dist/src/modules/auth/auth.repository.mjs.map +1 -0
- package/dist/src/modules/auth/auth.service.d.mts +105 -0
- package/dist/src/modules/auth/auth.service.mjs +227 -0
- package/dist/src/modules/auth/auth.service.mjs.map +1 -0
- package/dist/src/modules/auth/auth.trpc.d.mts +303 -0
- package/dist/src/modules/auth/auth.trpc.mjs +108 -0
- package/dist/src/modules/auth/auth.trpc.mjs.map +1 -0
- package/dist/src/modules/auth/auth.utils.d.mts +2356 -0
- package/dist/src/modules/auth/auth.utils.mjs +77 -0
- package/dist/src/modules/auth/auth.utils.mjs.map +1 -0
- package/dist/src/modules/base/base.abstract.d.mts +29 -0
- package/dist/src/modules/base/base.abstract.mjs +60 -0
- package/dist/src/modules/base/base.abstract.mjs.map +1 -0
- package/dist/src/modules/base/base.actor.d.mts +73 -0
- package/dist/src/modules/base/base.actor.mjs +78 -0
- package/dist/src/modules/base/base.actor.mjs.map +1 -0
- package/dist/src/modules/base/base.dto.d.mts +67 -0
- package/dist/src/modules/base/base.dto.mjs +79 -0
- package/dist/src/modules/base/base.dto.mjs.map +1 -0
- package/dist/src/modules/base/base.grants.d.mts +28 -0
- package/dist/src/modules/base/base.grants.mjs +103 -0
- package/dist/src/modules/base/base.grants.mjs.map +1 -0
- package/dist/src/modules/base/base.procedure.d.mts +111 -0
- package/dist/src/modules/base/base.procedure.mjs +252 -0
- package/dist/src/modules/base/base.procedure.mjs.map +1 -0
- package/dist/src/modules/base/base.repository.d.mts +123 -0
- package/dist/src/modules/base/base.repository.mjs +250 -0
- package/dist/src/modules/base/base.repository.mjs.map +1 -0
- package/dist/src/modules/base/base.service.d.mts +44 -0
- package/dist/src/modules/base/base.service.mjs +116 -0
- package/dist/src/modules/base/base.service.mjs.map +1 -0
- package/dist/src/modules/base/base.types.d.mts +5 -0
- package/dist/src/modules/billing/billing.db.d.mts +371 -0
- package/dist/src/modules/billing/billing.db.mjs +31 -0
- package/dist/src/modules/billing/billing.db.mjs.map +1 -0
- package/dist/src/modules/billing/billing.repository.d.mts +2787 -0
- package/dist/src/modules/billing/billing.repository.mjs +188 -0
- package/dist/src/modules/billing/billing.repository.mjs.map +1 -0
- package/dist/src/modules/billing/billing.router.d.mts +9 -0
- package/dist/src/modules/billing/billing.router.mjs +40 -0
- package/dist/src/modules/billing/billing.router.mjs.map +1 -0
- package/dist/src/modules/billing/billing.service.d.mts +53 -0
- package/dist/src/modules/billing/billing.service.mjs +125 -0
- package/dist/src/modules/billing/billing.service.mjs.map +1 -0
- package/dist/src/modules/billing/billing.trpc.d.mts +29 -0
- package/dist/src/modules/billing/billing.trpc.mjs +17 -0
- package/dist/src/modules/billing/billing.trpc.mjs.map +1 -0
- package/dist/src/modules/clay/clay.repository.d.mts +10 -0
- package/dist/src/modules/clay/clay.repository.mjs +27 -0
- package/dist/src/modules/clay/clay.repository.mjs.map +1 -0
- package/dist/src/modules/clay/clay.service.d.mts +32 -0
- package/dist/src/modules/clay/clay.service.mjs +23 -0
- package/dist/src/modules/clay/clay.service.mjs.map +1 -0
- package/dist/src/modules/connect/connect.db.d.mts +362 -0
- package/dist/src/modules/connect/connect.db.mjs +30 -0
- package/dist/src/modules/connect/connect.db.mjs.map +1 -0
- package/dist/src/modules/connect/connect.dto.d.mts +79 -0
- package/dist/src/modules/connect/connect.dto.mjs +38 -0
- package/dist/src/modules/connect/connect.dto.mjs.map +1 -0
- package/dist/src/modules/connect/connect.linkedin.d.mts +7 -0
- package/dist/src/modules/connect/connect.linkedin.mjs +47 -0
- package/dist/src/modules/connect/connect.linkedin.mjs.map +1 -0
- package/dist/src/modules/connect/connect.oauth.d.mts +32 -0
- package/dist/src/modules/connect/connect.oauth.mjs +145 -0
- package/dist/src/modules/connect/connect.oauth.mjs.map +1 -0
- package/dist/src/modules/connect/connect.repository.d.mts +419 -0
- package/dist/src/modules/connect/connect.repository.mjs +40 -0
- package/dist/src/modules/connect/connect.repository.mjs.map +1 -0
- package/dist/src/modules/connect/connect.router.d.mts +9 -0
- package/dist/src/modules/connect/connect.router.mjs +46 -0
- package/dist/src/modules/connect/connect.router.mjs.map +1 -0
- package/dist/src/modules/connect/connect.service.d.mts +103 -0
- package/dist/src/modules/connect/connect.service.mjs +88 -0
- package/dist/src/modules/connect/connect.service.mjs.map +1 -0
- package/dist/src/modules/connect/connect.trpc.d.mts +53 -0
- package/dist/src/modules/connect/connect.trpc.mjs +17 -0
- package/dist/src/modules/connect/connect.trpc.mjs.map +1 -0
- package/dist/src/modules/connect/connect.types.d.mts +29 -0
- package/dist/src/modules/crypto/crypto.db.d.mts +157 -0
- package/dist/src/modules/crypto/crypto.db.mjs +19 -0
- package/dist/src/modules/crypto/crypto.db.mjs.map +1 -0
- package/dist/src/modules/crypto/crypto.repository.d.mts +163 -0
- package/dist/src/modules/crypto/crypto.repository.mjs +9 -0
- package/dist/src/modules/crypto/crypto.repository.mjs.map +1 -0
- package/dist/src/modules/crypto/crypto.service.d.mts +15 -0
- package/dist/src/modules/crypto/crypto.service.mjs +40 -0
- package/dist/src/modules/crypto/crypto.service.mjs.map +1 -0
- package/dist/src/modules/email/email.service.d.mts +62 -0
- package/dist/src/modules/email/email.service.mjs +105 -0
- package/dist/src/modules/email/email.service.mjs.map +1 -0
- package/dist/src/modules/file/file.repository.d.mts +17 -0
- package/dist/src/modules/file/file.repository.mjs +72 -0
- package/dist/src/modules/file/file.repository.mjs.map +1 -0
- package/dist/src/modules/file/{file.router.d.ts → file.router.d.mts} +4 -0
- package/dist/src/modules/file/file.router.mjs +88 -0
- package/dist/src/modules/file/file.router.mjs.map +1 -0
- package/dist/src/modules/file/file.service.d.mts +30 -0
- package/dist/src/modules/file/file.service.mjs +117 -0
- package/dist/src/modules/file/file.service.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.db.d.mts +568 -0
- package/dist/src/modules/recurrence/recurrence.db.mjs +47 -0
- package/dist/src/modules/recurrence/recurrence.db.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.mts +588 -0
- package/dist/src/modules/recurrence/recurrence.repository.mjs +28 -0
- package/dist/src/modules/recurrence/recurrence.repository.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.service.d.mts +51 -0
- package/dist/src/modules/recurrence/recurrence.service.mjs +64 -0
- package/dist/src/modules/recurrence/recurrence.service.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.mts +65 -0
- package/dist/src/modules/recurrence/recurrence.trpc.mjs +44 -0
- package/dist/src/modules/recurrence/recurrence.trpc.mjs.map +1 -0
- package/dist/src/modules/social/social.dto.d.mts +39 -0
- package/dist/src/modules/social/social.dto.mjs +22 -0
- package/dist/src/modules/social/social.dto.mjs.map +1 -0
- package/dist/src/modules/social/{social.linkedin.d.ts → social.linkedin.d.mts} +8 -3
- package/dist/src/modules/social/social.linkedin.mjs +346 -0
- package/dist/src/modules/social/social.linkedin.mjs.map +1 -0
- package/dist/src/modules/social/social.service.d.mts +34 -0
- package/dist/src/modules/social/social.service.mjs +55 -0
- package/dist/src/modules/social/social.service.mjs.map +1 -0
- package/dist/src/modules/social/social.types.d.mts +40 -0
- package/dist/src/modules/tag/tag.db.d.mts +352 -0
- package/dist/src/modules/tag/tag.db.mjs +35 -0
- package/dist/src/modules/tag/tag.db.mjs.map +1 -0
- package/dist/src/modules/tag/tag.dto.d.mts +1025 -0
- package/dist/src/modules/tag/tag.dto.mjs +11 -0
- package/dist/src/modules/tag/tag.dto.mjs.map +1 -0
- package/dist/src/modules/tag/tag.repository.d.mts +394 -0
- package/dist/src/modules/tag/tag.repository.mjs +114 -0
- package/dist/src/modules/tag/tag.repository.mjs.map +1 -0
- package/dist/src/modules/tag/tag.service.d.mts +93 -0
- package/dist/src/modules/tag/tag.service.mjs +47 -0
- package/dist/src/modules/tag/tag.service.mjs.map +1 -0
- package/dist/src/modules/tag/tag.trpc.d.mts +109 -0
- package/dist/src/modules/tag/tag.trpc.mjs +30 -0
- package/dist/src/modules/tag/tag.trpc.mjs.map +1 -0
- package/dist/src/modules/utils/{applyPagination.d.ts → applyPagination.d.mts} +5 -1
- package/dist/src/modules/utils/applyPagination.mjs +15 -0
- package/dist/src/modules/utils/applyPagination.mjs.map +1 -0
- package/dist/src/modules/utils/applySorting.d.mts +13 -0
- package/dist/src/modules/utils/applySorting.mjs +18 -0
- package/dist/src/modules/utils/applySorting.mjs.map +1 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.mts +9 -0
- package/dist/src/modules/utils/getConditionsFromFilters.mjs +150 -0
- package/dist/src/modules/utils/getConditionsFromFilters.mjs.map +1 -0
- package/dist/src/modules/video/video.service.d.mts +12 -0
- package/dist/src/modules/video/video.service.mjs +50 -0
- package/dist/src/modules/video/video.service.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.constants.d.mts +12 -0
- package/dist/src/modules/webhook/webhook.constants.mjs +12 -0
- package/dist/src/modules/webhook/webhook.constants.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.db.d.mts +142 -0
- package/dist/src/modules/webhook/webhook.db.mjs +17 -0
- package/dist/src/modules/webhook/webhook.db.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.dto.d.mts +402 -0
- package/dist/src/modules/webhook/webhook.dto.mjs +9 -0
- package/dist/src/modules/webhook/webhook.dto.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.repository.d.mts +154 -0
- package/dist/src/modules/webhook/webhook.repository.mjs +50 -0
- package/dist/src/modules/webhook/webhook.repository.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.router.d.mts +8 -0
- package/dist/src/modules/webhook/webhook.router.mjs +23 -0
- package/dist/src/modules/webhook/webhook.router.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.service.d.mts +14 -0
- package/dist/src/modules/webhook/webhook.service.mjs +59 -0
- package/dist/src/modules/webhook/webhook.service.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.db.d.mts +302 -0
- package/dist/src/modules/workflow/workflow.db.mjs +28 -0
- package/dist/src/modules/workflow/workflow.db.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.repository.d.mts +371 -0
- package/dist/src/modules/workflow/workflow.repository.mjs +93 -0
- package/dist/src/modules/workflow/workflow.repository.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.service.d.mts +31 -0
- package/dist/src/modules/workflow/workflow.service.mjs +40 -0
- package/dist/src/modules/workflow/workflow.service.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.trpc.d.mts +28 -0
- package/dist/src/modules/workflow/workflow.trpc.mjs +17 -0
- package/dist/src/modules/workflow/workflow.trpc.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.types.d.mts +25 -0
- package/dist/src/modules/workflow/workflow.utils.d.mts +36 -0
- package/dist/src/modules/workflow/workflow.utils.mjs +181 -0
- package/dist/src/modules/workflow/workflow.utils.mjs.map +1 -0
- package/dist/src/types.d.mts +346 -0
- package/dist/src/types.mjs +13 -0
- package/dist/src/types.mjs.map +1 -0
- package/dist/src/utils/errors.d.mts +62 -0
- package/dist/src/utils/errors.mjs +96 -0
- package/dist/src/utils/errors.mjs.map +1 -0
- package/dist/src/utils/logger.d.mts +7 -0
- package/dist/src/utils/logger.mjs +10 -0
- package/dist/src/utils/logger.mjs.map +1 -0
- package/dist/src/utils/posthog.d.mts +17 -0
- package/dist/src/utils/posthog.mjs +25 -0
- package/dist/src/utils/posthog.mjs.map +1 -0
- package/dist/src/utils/trpc.d.mts +54 -0
- package/dist/src/utils/trpc.mjs +146 -0
- package/dist/src/utils/trpc.mjs.map +1 -0
- package/dist/src/utils/types.d.mts +9 -0
- package/package.json +5 -4
- package/dist/src/lib/posthog.d.ts +0 -2
- package/dist/src/lib/posthog.js +0 -7
- package/dist/src/lib/sentry.js +0 -9
- package/dist/src/modules/access/access.repository.d.ts +0 -2347
- package/dist/src/modules/access/access.repository.js +0 -32
- package/dist/src/modules/access/access.service.d.ts +0 -21
- package/dist/src/modules/access/access.service.js +0 -51
- package/dist/src/modules/access/access.test.js +0 -182
- package/dist/src/modules/access/access.utils.d.ts +0 -16
- package/dist/src/modules/access/access.utils.js +0 -20
- package/dist/src/modules/ai/ai.db.d.ts +0 -395
- package/dist/src/modules/ai/ai.db.js +0 -39
- package/dist/src/modules/ai/ai.prompt.d.ts +0 -26
- package/dist/src/modules/ai/ai.prompt.js +0 -30
- package/dist/src/modules/ai/ai.prompts.d.ts +0 -5
- package/dist/src/modules/ai/ai.repository.d.ts +0 -423
- package/dist/src/modules/ai/ai.repository.js +0 -26
- package/dist/src/modules/ai/ai.router.js +0 -132
- package/dist/src/modules/ai/ai.service.d.ts +0 -127
- package/dist/src/modules/ai/ai.service.js +0 -297
- package/dist/src/modules/ai/ai.trpc.d.ts +0 -22
- package/dist/src/modules/ai/ai.trpc.js +0 -20
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts +0 -7
- package/dist/src/modules/ai/ideogram/ideogram.constants.js +0 -167
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts +0 -229
- package/dist/src/modules/ai/ideogram/ideogram.dto.js +0 -49
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts +0 -2
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts +0 -6
- package/dist/src/modules/ai/ideogram/ideogram.repository.js +0 -46
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts +0 -9
- package/dist/src/modules/ai/ideogram/ideogram.service.js +0 -11
- package/dist/src/modules/auth/auth.db.d.ts +0 -2335
- package/dist/src/modules/auth/auth.db.js +0 -215
- package/dist/src/modules/auth/auth.dto.d.ts +0 -65
- package/dist/src/modules/auth/auth.dto.js +0 -38
- package/dist/src/modules/auth/auth.lib.d.ts +0 -4873
- package/dist/src/modules/auth/auth.lib.js +0 -284
- package/dist/src/modules/auth/auth.middleware.d.ts +0 -614
- package/dist/src/modules/auth/auth.middleware.js +0 -52
- package/dist/src/modules/auth/auth.repository.d.ts +0 -2421
- package/dist/src/modules/auth/auth.repository.js +0 -636
- package/dist/src/modules/auth/auth.service.d.ts +0 -108
- package/dist/src/modules/auth/auth.service.js +0 -246
- package/dist/src/modules/auth/auth.trpc.d.ts +0 -292
- package/dist/src/modules/auth/auth.trpc.js +0 -179
- package/dist/src/modules/auth/auth.utils.d.ts +0 -2351
- package/dist/src/modules/auth/auth.utils.js +0 -97
- package/dist/src/modules/base/base.abstract.d.ts +0 -19
- package/dist/src/modules/base/base.abstract.js +0 -62
- package/dist/src/modules/base/base.dto.d.ts +0 -69
- package/dist/src/modules/base/base.dto.js +0 -112
- package/dist/src/modules/base/base.grants.d.ts +0 -28
- package/dist/src/modules/base/base.grants.js +0 -123
- package/dist/src/modules/base/base.grants.test.js +0 -668
- package/dist/src/modules/base/base.procedure.d.ts +0 -112
- package/dist/src/modules/base/base.procedure.js +0 -289
- package/dist/src/modules/base/base.repository.d.ts +0 -97
- package/dist/src/modules/base/base.repository.js +0 -317
- package/dist/src/modules/base/base.service.d.ts +0 -52
- package/dist/src/modules/base/base.service.js +0 -116
- package/dist/src/modules/base/base.service.test.js +0 -415
- package/dist/src/modules/base/base.types.d.ts +0 -1
- package/dist/src/modules/base/base.types.js +0 -2
- package/dist/src/modules/billing/billing.db.d.ts +0 -365
- package/dist/src/modules/billing/billing.db.js +0 -29
- package/dist/src/modules/billing/billing.repository.d.ts +0 -2763
- package/dist/src/modules/billing/billing.repository.js +0 -235
- package/dist/src/modules/billing/billing.router.d.ts +0 -4
- package/dist/src/modules/billing/billing.router.js +0 -56
- package/dist/src/modules/billing/billing.service.d.ts +0 -59
- package/dist/src/modules/billing/billing.service.js +0 -147
- package/dist/src/modules/billing/billing.trpc.d.ts +0 -38
- package/dist/src/modules/billing/billing.trpc.js +0 -17
- package/dist/src/modules/clay/clay.repository.d.ts +0 -5
- package/dist/src/modules/clay/clay.repository.js +0 -26
- package/dist/src/modules/clay/clay.service.d.ts +0 -28
- package/dist/src/modules/clay/clay.service.js +0 -24
- package/dist/src/modules/connect/connect.db.d.ts +0 -356
- package/dist/src/modules/connect/connect.db.js +0 -30
- package/dist/src/modules/connect/connect.dto.d.ts +0 -74
- package/dist/src/modules/connect/connect.dto.js +0 -36
- package/dist/src/modules/connect/connect.linkedin.d.ts +0 -2
- package/dist/src/modules/connect/connect.linkedin.js +0 -53
- package/dist/src/modules/connect/connect.oauth.d.ts +0 -27
- package/dist/src/modules/connect/connect.oauth.js +0 -198
- package/dist/src/modules/connect/connect.repository.d.ts +0 -413
- package/dist/src/modules/connect/connect.repository.js +0 -54
- package/dist/src/modules/connect/connect.router.d.ts +0 -4
- package/dist/src/modules/connect/connect.router.js +0 -54
- package/dist/src/modules/connect/connect.service.d.ts +0 -88
- package/dist/src/modules/connect/connect.service.js +0 -114
- package/dist/src/modules/connect/connect.trpc.d.ts +0 -44
- package/dist/src/modules/connect/connect.trpc.js +0 -21
- package/dist/src/modules/connect/connect.types.d.ts +0 -25
- package/dist/src/modules/connect/connect.types.js +0 -2
- package/dist/src/modules/crypto/crypto.db.d.ts +0 -151
- package/dist/src/modules/crypto/crypto.db.js +0 -17
- package/dist/src/modules/crypto/crypto.repository.d.ts +0 -159
- package/dist/src/modules/crypto/crypto.repository.js +0 -10
- package/dist/src/modules/crypto/crypto.service.d.ts +0 -10
- package/dist/src/modules/crypto/crypto.service.js +0 -52
- package/dist/src/modules/email/email.service.d.ts +0 -56
- package/dist/src/modules/email/email.service.js +0 -106
- package/dist/src/modules/file/file.repository.d.ts +0 -12
- package/dist/src/modules/file/file.repository.js +0 -79
- package/dist/src/modules/file/file.router.js +0 -99
- package/dist/src/modules/file/file.service.d.ts +0 -24
- package/dist/src/modules/file/file.service.js +0 -150
- package/dist/src/modules/recurrence/recurrence.db.d.ts +0 -562
- package/dist/src/modules/recurrence/recurrence.db.js +0 -66
- package/dist/src/modules/recurrence/recurrence.repository.d.ts +0 -584
- package/dist/src/modules/recurrence/recurrence.repository.js +0 -39
- package/dist/src/modules/recurrence/recurrence.service.d.ts +0 -50
- package/dist/src/modules/recurrence/recurrence.service.js +0 -69
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts +0 -206
- package/dist/src/modules/recurrence/recurrence.trpc.js +0 -65
- package/dist/src/modules/social/social.dto.d.ts +0 -34
- package/dist/src/modules/social/social.dto.js +0 -18
- package/dist/src/modules/social/social.linkedin.js +0 -427
- package/dist/src/modules/social/social.linkedin.test.js +0 -235
- package/dist/src/modules/social/social.service.d.ts +0 -28
- package/dist/src/modules/social/social.service.js +0 -76
- package/dist/src/modules/social/social.types.d.ts +0 -35
- package/dist/src/modules/social/social.types.js +0 -2
- package/dist/src/modules/tag/tag.db.d.ts +0 -346
- package/dist/src/modules/tag/tag.db.js +0 -42
- package/dist/src/modules/tag/tag.dto.d.ts +0 -1018
- package/dist/src/modules/tag/tag.dto.js +0 -9
- package/dist/src/modules/tag/tag.repository.d.ts +0 -383
- package/dist/src/modules/tag/tag.repository.js +0 -156
- package/dist/src/modules/tag/tag.service.d.ts +0 -109
- package/dist/src/modules/tag/tag.service.js +0 -42
- package/dist/src/modules/tag/tag.trpc.d.ts +0 -164
- package/dist/src/modules/tag/tag.trpc.js +0 -53
- package/dist/src/modules/utils/applyPagination.js +0 -16
- package/dist/src/modules/utils/applySorting.d.ts +0 -8
- package/dist/src/modules/utils/applySorting.js +0 -18
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts +0 -4
- package/dist/src/modules/utils/getConditionsFromFilters.js +0 -200
- package/dist/src/modules/video/video.service.d.ts +0 -7
- package/dist/src/modules/video/video.service.js +0 -84
- package/dist/src/modules/webhook/webhook.constants.d.ts +0 -8
- package/dist/src/modules/webhook/webhook.constants.js +0 -10
- package/dist/src/modules/webhook/webhook.db.d.ts +0 -136
- package/dist/src/modules/webhook/webhook.db.js +0 -17
- package/dist/src/modules/webhook/webhook.dto.d.ts +0 -394
- package/dist/src/modules/webhook/webhook.dto.js +0 -7
- package/dist/src/modules/webhook/webhook.repository.d.ts +0 -148
- package/dist/src/modules/webhook/webhook.repository.js +0 -56
- package/dist/src/modules/webhook/webhook.router.d.ts +0 -3
- package/dist/src/modules/webhook/webhook.router.js +0 -30
- package/dist/src/modules/webhook/webhook.service.d.ts +0 -9
- package/dist/src/modules/webhook/webhook.service.js +0 -68
- package/dist/src/modules/workflow/workflow.db.d.ts +0 -296
- package/dist/src/modules/workflow/workflow.db.js +0 -30
- package/dist/src/modules/workflow/workflow.repository.d.ts +0 -343
- package/dist/src/modules/workflow/workflow.repository.js +0 -105
- package/dist/src/modules/workflow/workflow.service.d.ts +0 -21
- package/dist/src/modules/workflow/workflow.service.js +0 -37
- package/dist/src/modules/workflow/workflow.trpc.d.ts +0 -56
- package/dist/src/modules/workflow/workflow.trpc.js +0 -21
- package/dist/src/modules/workflow/workflow.types.d.ts +0 -20
- package/dist/src/modules/workflow/workflow.types.js +0 -2
- package/dist/src/modules/workflow/workflow.utils.d.ts +0 -21
- package/dist/src/modules/workflow/workflow.utils.js +0 -173
- package/dist/src/test/stubs/utils.d.ts +0 -2
- package/dist/src/test/stubs/utils.js +0 -5
- package/dist/src/trpc/context.d.ts +0 -41
- package/dist/src/trpc/context.js +0 -17
- package/dist/src/trpc/index.d.ts +0 -3
- package/dist/src/trpc/index.js +0 -6
- package/dist/src/trpc/procedures.d.ts +0 -233
- package/dist/src/trpc/procedures.js +0 -32
- package/dist/src/trpc/utils.d.ts +0 -4
- package/dist/src/trpc/utils.js +0 -20
- package/dist/src/types.d.ts +0 -358
- package/dist/src/types.js +0 -12
- package/dist/src/utils/errors.d.ts +0 -49
- package/dist/src/utils/errors.js +0 -104
- package/dist/src/utils/logger.d.ts +0 -1
- package/dist/src/utils/logger.js +0 -11
- package/dist/src/utils/posthog.d.ts +0 -13
- package/dist/src/utils/posthog.js +0 -31
- package/dist/src/utils/trpc.d.ts +0 -58
- package/dist/src/utils/trpc.js +0 -63
- package/dist/src/utils/types.d.ts +0 -4
- package/dist/src/utils/types.js +0 -2
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/src/{lib/sentry.d.ts → modules/ai/ai.router.mjs} +0 -0
- /package/dist/src/modules/{access/access.test.d.ts → base/base.types.mjs} +0 -0
- /package/dist/src/modules/{ai/ai.router.d.ts → connect/connect.types.mjs} +0 -0
- /package/dist/src/modules/{base/base.grants.test.d.ts → social/social.types.mjs} +0 -0
- /package/dist/src/modules/{base/base.service.test.d.ts → workflow/workflow.types.mjs} +0 -0
- /package/dist/src/{modules/social/social.linkedin.test.d.ts → utils/types.mjs} +0 -0
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import type { ServerResultAsync } from "../base/base.dto";
|
|
2
|
-
import { BaseService } from "../base/base.service";
|
|
3
|
-
import type { BillingService } from "../billing/billing.service";
|
|
4
|
-
import type { EmailService } from "../email/email.service";
|
|
5
|
-
import type { AccountClaim, AccountClaimMagicLinkOutput, AccountClaimOutput, Waitlist, WaitlistOutput } from "./auth.dto";
|
|
6
|
-
import type { Context, User } from "./auth.lib";
|
|
7
|
-
import type { AuthRepository } from "./auth.repository";
|
|
8
|
-
type AuthServiceDependencies = {
|
|
9
|
-
email: EmailService;
|
|
10
|
-
} | {
|
|
11
|
-
email: EmailService;
|
|
12
|
-
billing: BillingService;
|
|
13
|
-
};
|
|
14
|
-
export declare class AuthService extends BaseService<{
|
|
15
|
-
auth: AuthRepository;
|
|
16
|
-
}, AuthServiceDependencies> {
|
|
17
|
-
private getBillingService;
|
|
18
|
-
private getActiveOrganizationId;
|
|
19
|
-
getUserWaitlistCount({ user }: {
|
|
20
|
-
user: User;
|
|
21
|
-
}): ServerResultAsync<number>;
|
|
22
|
-
getOnboarding({ user }: {
|
|
23
|
-
user: User;
|
|
24
|
-
}): ServerResultAsync<number>;
|
|
25
|
-
setOnboarding(onboarding: number, { user }: {
|
|
26
|
-
user: User;
|
|
27
|
-
}): ServerResultAsync<number>;
|
|
28
|
-
getPreferences({ user }: {
|
|
29
|
-
user: User;
|
|
30
|
-
}): ServerResultAsync<Record<string, unknown>>;
|
|
31
|
-
setPreferences(preferences: Record<string, unknown>, { user }: {
|
|
32
|
-
user: User;
|
|
33
|
-
}): ServerResultAsync<Record<string, unknown>>;
|
|
34
|
-
getOrganizationPreferences(ctx: Context): ServerResultAsync<Record<string, unknown>>;
|
|
35
|
-
setOrganizationPreferences(preferences: Record<string, unknown>, ctx: Context): ServerResultAsync<Record<string, unknown>>;
|
|
36
|
-
getMetadata({ user }: {
|
|
37
|
-
user: User;
|
|
38
|
-
}): ServerResultAsync<Record<string, unknown>>;
|
|
39
|
-
setMetadata(metadata: Record<string, unknown>, { user }: {
|
|
40
|
-
user: User;
|
|
41
|
-
}): ServerResultAsync<Record<string, unknown>>;
|
|
42
|
-
getFlags({ user }: {
|
|
43
|
-
user: User;
|
|
44
|
-
}): ServerResultAsync<string[]>;
|
|
45
|
-
getOrganizationFlags(ctx: Context): ServerResultAsync<string[]>;
|
|
46
|
-
setFlags(flags: string[], { user }: {
|
|
47
|
-
user: User;
|
|
48
|
-
}): ServerResultAsync<string[]>;
|
|
49
|
-
setOrganizationFlags(flags: string[], ctx: Context): ServerResultAsync<string[]>;
|
|
50
|
-
listAdminWaitlist(): ServerResultAsync<WaitlistOutput[]>;
|
|
51
|
-
listWaitlist({ user }: {
|
|
52
|
-
user: User;
|
|
53
|
-
}): ServerResultAsync<Waitlist[]>;
|
|
54
|
-
addToWaitlist({ email }: {
|
|
55
|
-
email: string;
|
|
56
|
-
}): ServerResultAsync<WaitlistOutput>;
|
|
57
|
-
inviteFromWaitlist({ id }: {
|
|
58
|
-
id: string;
|
|
59
|
-
}): ServerResultAsync<Waitlist>;
|
|
60
|
-
inviteToWaitlist({ email, name }: {
|
|
61
|
-
email: string;
|
|
62
|
-
name?: string;
|
|
63
|
-
}, { user }: {
|
|
64
|
-
user: User;
|
|
65
|
-
}): ServerResultAsync<Waitlist>;
|
|
66
|
-
createInvitationCode({ name }: {
|
|
67
|
-
name?: string;
|
|
68
|
-
}, { user }: {
|
|
69
|
-
user: User;
|
|
70
|
-
}): ServerResultAsync<Waitlist>;
|
|
71
|
-
joinWaitlist({ email }: {
|
|
72
|
-
email: string;
|
|
73
|
-
}): ServerResultAsync<WaitlistOutput>;
|
|
74
|
-
removeFromWaitlist({ id }: {
|
|
75
|
-
id: string;
|
|
76
|
-
}): ServerResultAsync<WaitlistOutput>;
|
|
77
|
-
validateWaitlistCode(code: string): ServerResultAsync<{
|
|
78
|
-
status: string;
|
|
79
|
-
}>;
|
|
80
|
-
createAccountClaimCode({ userId, expiresInHours, }: {
|
|
81
|
-
userId: string;
|
|
82
|
-
expiresInHours?: number;
|
|
83
|
-
}): ServerResultAsync<AccountClaim>;
|
|
84
|
-
listAccountClaims(): ServerResultAsync<AccountClaimOutput[]>;
|
|
85
|
-
getMyAccountClaimStatus({ user }: {
|
|
86
|
-
user: User;
|
|
87
|
-
}): ServerResultAsync<AccountClaim | null>;
|
|
88
|
-
setMyAccountClaimEmail({ email }: {
|
|
89
|
-
email: string;
|
|
90
|
-
}, { user }: {
|
|
91
|
-
user: User;
|
|
92
|
-
}): ServerResultAsync<{
|
|
93
|
-
status: boolean;
|
|
94
|
-
}>;
|
|
95
|
-
acceptMyAccountClaim({ user }: {
|
|
96
|
-
user: User;
|
|
97
|
-
}): ServerResultAsync<{
|
|
98
|
-
status: boolean;
|
|
99
|
-
}>;
|
|
100
|
-
generateAccountClaimMagicLink({ claimId, email, }: {
|
|
101
|
-
claimId: string;
|
|
102
|
-
email?: string;
|
|
103
|
-
}): ServerResultAsync<AccountClaimMagicLinkOutput>;
|
|
104
|
-
listAccountClaimMagicLinks({ claimId, }: {
|
|
105
|
-
claimId: string;
|
|
106
|
-
}): ServerResultAsync<AccountClaimMagicLinkOutput[]>;
|
|
107
|
-
}
|
|
108
|
-
export {};
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthService = void 0;
|
|
4
|
-
const neverthrow_1 = require("neverthrow");
|
|
5
|
-
const posthog_1 = require("../../utils/posthog");
|
|
6
|
-
const base_service_1 = require("../base/base.service");
|
|
7
|
-
class AuthService extends base_service_1.BaseService {
|
|
8
|
-
getBillingService() {
|
|
9
|
-
if (!("billing" in this.service))
|
|
10
|
-
return null;
|
|
11
|
-
return this.service.billing;
|
|
12
|
-
}
|
|
13
|
-
getActiveOrganizationId(ctx) {
|
|
14
|
-
const organizationId = ctx.session.activeOrganizationId;
|
|
15
|
-
if (!organizationId) {
|
|
16
|
-
return this.repository.auth.error("FORBIDDEN", "No active organization");
|
|
17
|
-
}
|
|
18
|
-
return (0, neverthrow_1.ok)(organizationId);
|
|
19
|
-
}
|
|
20
|
-
async getUserWaitlistCount({ user }) {
|
|
21
|
-
if (user.role === "admin")
|
|
22
|
-
return (0, neverthrow_1.ok)(0);
|
|
23
|
-
return this.repository.auth.getUserWaitlistCount(user.id);
|
|
24
|
-
}
|
|
25
|
-
async getOnboarding({ user }) {
|
|
26
|
-
return this.repository.auth.getOnboarding(user.id);
|
|
27
|
-
}
|
|
28
|
-
async setOnboarding(onboarding, { user }) {
|
|
29
|
-
(0, posthog_1.posthogCapture)({
|
|
30
|
-
distinctId: user.id,
|
|
31
|
-
event: "onboarding_set",
|
|
32
|
-
properties: {
|
|
33
|
-
onboarding,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
return this.repository.auth.setOnboarding(user.id, onboarding);
|
|
37
|
-
}
|
|
38
|
-
async getPreferences({ user }) {
|
|
39
|
-
return this.repository.auth.getPreferences(user.id);
|
|
40
|
-
}
|
|
41
|
-
async setPreferences(preferences, { user }) {
|
|
42
|
-
(0, posthog_1.posthogCapture)({
|
|
43
|
-
distinctId: user.id,
|
|
44
|
-
event: "preferences_set",
|
|
45
|
-
});
|
|
46
|
-
return this.repository.auth.setPreferences(user.id, preferences);
|
|
47
|
-
}
|
|
48
|
-
async getOrganizationPreferences(ctx) {
|
|
49
|
-
const organizationId = this.getActiveOrganizationId(ctx);
|
|
50
|
-
if (organizationId.isErr())
|
|
51
|
-
return (0, neverthrow_1.err)(organizationId.error);
|
|
52
|
-
return this.repository.auth.getOrganizationPreferences(ctx.user.id, organizationId.value);
|
|
53
|
-
}
|
|
54
|
-
async setOrganizationPreferences(preferences, ctx) {
|
|
55
|
-
const organizationId = this.getActiveOrganizationId(ctx);
|
|
56
|
-
if (organizationId.isErr())
|
|
57
|
-
return (0, neverthrow_1.err)(organizationId.error);
|
|
58
|
-
(0, posthog_1.posthogCapture)({
|
|
59
|
-
distinctId: ctx.user.id,
|
|
60
|
-
event: "organization_preferences_set",
|
|
61
|
-
properties: {
|
|
62
|
-
organizationId: organizationId.value,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
return this.repository.auth.setOrganizationPreferences(ctx.user.id, organizationId.value, preferences);
|
|
66
|
-
}
|
|
67
|
-
async getMetadata({ user }) {
|
|
68
|
-
return this.repository.auth.getMetadata(user.id);
|
|
69
|
-
}
|
|
70
|
-
async setMetadata(metadata, { user }) {
|
|
71
|
-
(0, posthog_1.posthogCapture)({
|
|
72
|
-
distinctId: user.id,
|
|
73
|
-
event: "metadata_set",
|
|
74
|
-
});
|
|
75
|
-
return this.repository.auth.setMetadata(user.id, metadata);
|
|
76
|
-
}
|
|
77
|
-
async getFlags({ user }) {
|
|
78
|
-
return this.repository.auth.getFlags(user.id);
|
|
79
|
-
}
|
|
80
|
-
async getOrganizationFlags(ctx) {
|
|
81
|
-
const organizationId = this.getActiveOrganizationId(ctx);
|
|
82
|
-
if (organizationId.isErr())
|
|
83
|
-
return (0, neverthrow_1.err)(organizationId.error);
|
|
84
|
-
return this.repository.auth.getOrganizationFlags(ctx.user.id, organizationId.value);
|
|
85
|
-
}
|
|
86
|
-
async setFlags(flags, { user }) {
|
|
87
|
-
(0, posthog_1.posthogCapture)({
|
|
88
|
-
distinctId: user.id,
|
|
89
|
-
event: "flags_set",
|
|
90
|
-
});
|
|
91
|
-
return this.repository.auth.setFlags(user.id, flags);
|
|
92
|
-
}
|
|
93
|
-
async setOrganizationFlags(flags, ctx) {
|
|
94
|
-
const organizationId = this.getActiveOrganizationId(ctx);
|
|
95
|
-
if (organizationId.isErr())
|
|
96
|
-
return (0, neverthrow_1.err)(organizationId.error);
|
|
97
|
-
(0, posthog_1.posthogCapture)({
|
|
98
|
-
distinctId: ctx.user.id,
|
|
99
|
-
event: "organization_flags_set",
|
|
100
|
-
properties: {
|
|
101
|
-
organizationId: organizationId.value,
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
return this.repository.auth.setOrganizationFlags(ctx.user.id, organizationId.value, flags);
|
|
105
|
-
}
|
|
106
|
-
async listAdminWaitlist() {
|
|
107
|
-
return this.repository.auth.listAdminWaitlist();
|
|
108
|
-
}
|
|
109
|
-
async listWaitlist({ user }) {
|
|
110
|
-
return this.repository.auth.listWaitlist(user.id);
|
|
111
|
-
}
|
|
112
|
-
async addToWaitlist({ email }) {
|
|
113
|
-
return this.repository.auth.addToWaitlist(email);
|
|
114
|
-
}
|
|
115
|
-
async inviteFromWaitlist({ id }) {
|
|
116
|
-
const waitlist = await this.repository.auth.inviteFromWaitlist(id);
|
|
117
|
-
if (waitlist.isErr())
|
|
118
|
-
return (0, neverthrow_1.err)(waitlist.error);
|
|
119
|
-
if (!waitlist.value.code)
|
|
120
|
-
return this.repository.auth.error("BAD_REQUEST");
|
|
121
|
-
if (!waitlist.value.email)
|
|
122
|
-
return this.repository.auth.error("BAD_REQUEST");
|
|
123
|
-
await this.service.email.sendWaitlistInvite(waitlist.value.email, waitlist.value.code);
|
|
124
|
-
return (0, neverthrow_1.ok)(waitlist.value);
|
|
125
|
-
}
|
|
126
|
-
async inviteToWaitlist({ email, name }, { user }) {
|
|
127
|
-
const count = await this.repository.auth.getUserWaitlistCount(user.id);
|
|
128
|
-
if (count.isErr())
|
|
129
|
-
return (0, neverthrow_1.err)(count.error);
|
|
130
|
-
if (count.value >= 3)
|
|
131
|
-
return this.repository.auth.error("BAD_REQUEST", "Run out of invites");
|
|
132
|
-
const waitlist = await this.repository.auth.inviteToWaitlist({ email, userId: user.id, name });
|
|
133
|
-
if (waitlist.isErr())
|
|
134
|
-
return (0, neverthrow_1.err)(waitlist.error);
|
|
135
|
-
if (!waitlist.value.code)
|
|
136
|
-
return this.repository.auth.error("BAD_REQUEST");
|
|
137
|
-
await this.service.email.sendWaitlistUserInvite(email, waitlist.value.code, user.name, name);
|
|
138
|
-
(0, posthog_1.posthogCapture)({
|
|
139
|
-
distinctId: user.id,
|
|
140
|
-
event: "waitlist_invite_sent",
|
|
141
|
-
properties: {
|
|
142
|
-
email,
|
|
143
|
-
name,
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
return (0, neverthrow_1.ok)(waitlist.value);
|
|
147
|
-
}
|
|
148
|
-
async createInvitationCode({ name }, { user }) {
|
|
149
|
-
(0, posthog_1.posthogCapture)({
|
|
150
|
-
distinctId: user.id,
|
|
151
|
-
event: "waitlist_invitation_code_created",
|
|
152
|
-
properties: {
|
|
153
|
-
name,
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
return this.repository.auth.createInvitationCode({ userId: user.id, name });
|
|
157
|
-
}
|
|
158
|
-
async joinWaitlist({ email }) {
|
|
159
|
-
const waitlist = await this.repository.auth.joinWaitlist(email);
|
|
160
|
-
if (waitlist.isErr())
|
|
161
|
-
return (0, neverthrow_1.err)(waitlist.error);
|
|
162
|
-
await this.service.email.sendWaitlistConfirmation(email);
|
|
163
|
-
return (0, neverthrow_1.ok)(waitlist.value);
|
|
164
|
-
}
|
|
165
|
-
async removeFromWaitlist({ id }) {
|
|
166
|
-
return this.repository.auth.removeFromWaitlist(id);
|
|
167
|
-
}
|
|
168
|
-
async validateWaitlistCode(code) {
|
|
169
|
-
return this.repository.auth.validateWaitlistCode(code);
|
|
170
|
-
}
|
|
171
|
-
async createAccountClaimCode({ userId, expiresInHours, }) {
|
|
172
|
-
return this.repository.auth.createAccountClaimCode({ userId, expiresInHours });
|
|
173
|
-
}
|
|
174
|
-
async listAccountClaims() {
|
|
175
|
-
return this.repository.auth.listAccountClaims();
|
|
176
|
-
}
|
|
177
|
-
async getMyAccountClaimStatus({ user }) {
|
|
178
|
-
return this.repository.auth.findPendingAccountClaimForUser(user.id);
|
|
179
|
-
}
|
|
180
|
-
async setMyAccountClaimEmail({ email }, { user }) {
|
|
181
|
-
return this.repository.auth.setAccountClaimEmail({ userId: user.id, email });
|
|
182
|
-
}
|
|
183
|
-
async acceptMyAccountClaim({ user }) {
|
|
184
|
-
const pendingClaim = await this.repository.auth.findPendingAccountClaimForUser(user.id);
|
|
185
|
-
if (pendingClaim.isErr())
|
|
186
|
-
return (0, neverthrow_1.err)(pendingClaim.error);
|
|
187
|
-
const accepted = await this.repository.auth.acceptAccountClaim(user.id);
|
|
188
|
-
if (accepted.isErr())
|
|
189
|
-
return (0, neverthrow_1.err)(accepted.error);
|
|
190
|
-
if (pendingClaim.value) {
|
|
191
|
-
const billingService = this.getBillingService();
|
|
192
|
-
if (billingService) {
|
|
193
|
-
await billingService.createUserHook({ user });
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return (0, neverthrow_1.ok)(accepted.value);
|
|
197
|
-
}
|
|
198
|
-
async generateAccountClaimMagicLink({ claimId, email, }) {
|
|
199
|
-
const claim = await this.repository.auth.findAccountClaimById(claimId);
|
|
200
|
-
if (claim.isErr())
|
|
201
|
-
return (0, neverthrow_1.err)(claim.error);
|
|
202
|
-
if (!claim.value)
|
|
203
|
-
return this.repository.auth.error("NOT_FOUND", "Claim not found");
|
|
204
|
-
if (!claim.value.claimUserId)
|
|
205
|
-
return this.repository.auth.error("BAD_REQUEST", "Claim has no user");
|
|
206
|
-
if (claim.value.status !== "INVITED") {
|
|
207
|
-
return this.repository.auth.error("BAD_REQUEST", "Claim is not pending");
|
|
208
|
-
}
|
|
209
|
-
if (claim.value.expiresAt && claim.value.expiresAt < new Date()) {
|
|
210
|
-
return this.repository.auth.error("BAD_REQUEST", "Claim is expired");
|
|
211
|
-
}
|
|
212
|
-
const targetEmail = email ?? claim.value.claimedEmail ?? undefined;
|
|
213
|
-
if (!targetEmail) {
|
|
214
|
-
return this.repository.auth.error("BAD_REQUEST", "Email required to generate magic link");
|
|
215
|
-
}
|
|
216
|
-
const setEmail = await this.repository.auth.setAccountClaimEmail({
|
|
217
|
-
userId: claim.value.claimUserId,
|
|
218
|
-
email: targetEmail,
|
|
219
|
-
});
|
|
220
|
-
if (setEmail.isErr())
|
|
221
|
-
return (0, neverthrow_1.err)(setEmail.error);
|
|
222
|
-
const response = await fetch(`${process.env.VITE_SERVER_URL}/api/auth/sign-in/magic-link`, {
|
|
223
|
-
method: "POST",
|
|
224
|
-
headers: {
|
|
225
|
-
"content-type": "application/json",
|
|
226
|
-
},
|
|
227
|
-
body: JSON.stringify({
|
|
228
|
-
email: targetEmail.toLowerCase(),
|
|
229
|
-
callbackURL: `${process.env.VITE_APP_URL}/claim-account?claim=${claimId}`,
|
|
230
|
-
}),
|
|
231
|
-
});
|
|
232
|
-
if (!response.ok) {
|
|
233
|
-
return this.repository.auth.error("INTERNAL_SERVER_ERROR", "Failed to generate magic link");
|
|
234
|
-
}
|
|
235
|
-
const latest = await this.repository.auth.latestAccountClaimMagicLink(claimId);
|
|
236
|
-
if (latest.isErr())
|
|
237
|
-
return (0, neverthrow_1.err)(latest.error);
|
|
238
|
-
if (!latest.value)
|
|
239
|
-
return this.repository.auth.error("INTERNAL_SERVER_ERROR");
|
|
240
|
-
return (0, neverthrow_1.ok)(latest.value);
|
|
241
|
-
}
|
|
242
|
-
async listAccountClaimMagicLinks({ claimId, }) {
|
|
243
|
-
return this.repository.auth.listAccountClaimMagicLinks(claimId);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
exports.AuthService = AuthService;
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { type TRPCMethods } from "../../utils/trpc";
|
|
2
|
-
import type { AuthService } from "./auth.service";
|
|
3
|
-
export declare function createAuthTRPC({ router, publicProcedure, privateProcedure: procedure, adminProcedure }: TRPCMethods, authService: AuthService): import("@trpc/server").TRPCBuiltRouter<{
|
|
4
|
-
ctx: import("./auth.lib").Context;
|
|
5
|
-
meta: any;
|
|
6
|
-
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
7
|
-
transformer: true;
|
|
8
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9
|
-
getUserWaitlistCount: import("@trpc/server").TRPCQueryProcedure<{
|
|
10
|
-
input: void;
|
|
11
|
-
output: number;
|
|
12
|
-
meta: any;
|
|
13
|
-
}>;
|
|
14
|
-
createInvitationCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
15
|
-
input: {
|
|
16
|
-
name?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
output: {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string | null;
|
|
21
|
-
email: string | null;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date | null;
|
|
24
|
-
status: string;
|
|
25
|
-
code: string | null;
|
|
26
|
-
expiresAt: Date | null;
|
|
27
|
-
};
|
|
28
|
-
meta: any;
|
|
29
|
-
}>;
|
|
30
|
-
createAccountClaimCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
31
|
-
input: {
|
|
32
|
-
userId: string;
|
|
33
|
-
expiresInHours?: number | undefined;
|
|
34
|
-
};
|
|
35
|
-
output: {
|
|
36
|
-
id: string;
|
|
37
|
-
claimUserId: string | null;
|
|
38
|
-
code: string | null;
|
|
39
|
-
status: string;
|
|
40
|
-
expiresAt: Date | null;
|
|
41
|
-
claimedAt: Date | null;
|
|
42
|
-
claimedEmail: string | null;
|
|
43
|
-
createdAt: Date;
|
|
44
|
-
updatedAt: Date | null;
|
|
45
|
-
};
|
|
46
|
-
meta: any;
|
|
47
|
-
}>;
|
|
48
|
-
listAccountClaims: import("@trpc/server").TRPCQueryProcedure<{
|
|
49
|
-
input: void;
|
|
50
|
-
output: {
|
|
51
|
-
id: string;
|
|
52
|
-
createdAt: Date;
|
|
53
|
-
updatedAt: Date | null;
|
|
54
|
-
expiresAt: Date | null;
|
|
55
|
-
status: string;
|
|
56
|
-
claimUserId: string | null;
|
|
57
|
-
claimedAt: Date | null;
|
|
58
|
-
claimedEmail: string | null;
|
|
59
|
-
}[];
|
|
60
|
-
meta: any;
|
|
61
|
-
}>;
|
|
62
|
-
generateAccountClaimMagicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
63
|
-
input: {
|
|
64
|
-
claimId: string;
|
|
65
|
-
email?: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
output: {
|
|
68
|
-
id: string;
|
|
69
|
-
email: string;
|
|
70
|
-
createdAt: Date;
|
|
71
|
-
expiresAt: Date | null;
|
|
72
|
-
userId: string;
|
|
73
|
-
claimId: string;
|
|
74
|
-
url: string;
|
|
75
|
-
};
|
|
76
|
-
meta: any;
|
|
77
|
-
}>;
|
|
78
|
-
listAccountClaimMagicLinks: import("@trpc/server").TRPCQueryProcedure<{
|
|
79
|
-
input: {
|
|
80
|
-
claimId: string;
|
|
81
|
-
};
|
|
82
|
-
output: {
|
|
83
|
-
id: string;
|
|
84
|
-
email: string;
|
|
85
|
-
createdAt: Date;
|
|
86
|
-
expiresAt: Date | null;
|
|
87
|
-
userId: string;
|
|
88
|
-
claimId: string;
|
|
89
|
-
url: string;
|
|
90
|
-
}[];
|
|
91
|
-
meta: any;
|
|
92
|
-
}>;
|
|
93
|
-
getMyAccountClaimStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
94
|
-
input: void;
|
|
95
|
-
output: {
|
|
96
|
-
id: string;
|
|
97
|
-
claimUserId: string | null;
|
|
98
|
-
code: string | null;
|
|
99
|
-
status: string;
|
|
100
|
-
expiresAt: Date | null;
|
|
101
|
-
claimedAt: Date | null;
|
|
102
|
-
claimedEmail: string | null;
|
|
103
|
-
createdAt: Date;
|
|
104
|
-
updatedAt: Date | null;
|
|
105
|
-
} | null;
|
|
106
|
-
meta: any;
|
|
107
|
-
}>;
|
|
108
|
-
setMyAccountClaimEmail: import("@trpc/server").TRPCMutationProcedure<{
|
|
109
|
-
input: {
|
|
110
|
-
email: string;
|
|
111
|
-
};
|
|
112
|
-
output: {
|
|
113
|
-
status: boolean;
|
|
114
|
-
};
|
|
115
|
-
meta: any;
|
|
116
|
-
}>;
|
|
117
|
-
acceptMyAccountClaim: import("@trpc/server").TRPCMutationProcedure<{
|
|
118
|
-
input: void;
|
|
119
|
-
output: {
|
|
120
|
-
status: boolean;
|
|
121
|
-
};
|
|
122
|
-
meta: any;
|
|
123
|
-
}>;
|
|
124
|
-
listWaitlist: import("@trpc/server").TRPCQueryProcedure<{
|
|
125
|
-
input: void;
|
|
126
|
-
output: {
|
|
127
|
-
id: string;
|
|
128
|
-
name: string | null;
|
|
129
|
-
email: string | null;
|
|
130
|
-
createdAt: Date;
|
|
131
|
-
updatedAt: Date | null;
|
|
132
|
-
status: string;
|
|
133
|
-
code: string | null;
|
|
134
|
-
expiresAt: Date | null;
|
|
135
|
-
}[];
|
|
136
|
-
meta: any;
|
|
137
|
-
}>;
|
|
138
|
-
listAdminWaitlist: import("@trpc/server").TRPCQueryProcedure<{
|
|
139
|
-
input: void;
|
|
140
|
-
output: {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string | null;
|
|
143
|
-
email: string | null;
|
|
144
|
-
createdAt: Date;
|
|
145
|
-
updatedAt: Date | null;
|
|
146
|
-
status: string;
|
|
147
|
-
}[];
|
|
148
|
-
meta: any;
|
|
149
|
-
}>;
|
|
150
|
-
addToWaitlist: import("@trpc/server").TRPCMutationProcedure<{
|
|
151
|
-
input: {
|
|
152
|
-
email: string;
|
|
153
|
-
};
|
|
154
|
-
output: {
|
|
155
|
-
id: string;
|
|
156
|
-
name: string | null;
|
|
157
|
-
email: string | null;
|
|
158
|
-
createdAt: Date;
|
|
159
|
-
updatedAt: Date | null;
|
|
160
|
-
status: string;
|
|
161
|
-
};
|
|
162
|
-
meta: any;
|
|
163
|
-
}>;
|
|
164
|
-
inviteToWaitlist: import("@trpc/server").TRPCMutationProcedure<{
|
|
165
|
-
input: {
|
|
166
|
-
email: string;
|
|
167
|
-
name?: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
output: {
|
|
170
|
-
id: string;
|
|
171
|
-
name: string | null;
|
|
172
|
-
email: string | null;
|
|
173
|
-
createdAt: Date;
|
|
174
|
-
updatedAt: Date | null;
|
|
175
|
-
status: string;
|
|
176
|
-
code: string | null;
|
|
177
|
-
expiresAt: Date | null;
|
|
178
|
-
};
|
|
179
|
-
meta: any;
|
|
180
|
-
}>;
|
|
181
|
-
inviteFromWaitlist: import("@trpc/server").TRPCMutationProcedure<{
|
|
182
|
-
input: {
|
|
183
|
-
id: string;
|
|
184
|
-
};
|
|
185
|
-
output: {
|
|
186
|
-
id: string;
|
|
187
|
-
name: string | null;
|
|
188
|
-
email: string | null;
|
|
189
|
-
createdAt: Date;
|
|
190
|
-
updatedAt: Date | null;
|
|
191
|
-
status: string;
|
|
192
|
-
};
|
|
193
|
-
meta: any;
|
|
194
|
-
}>;
|
|
195
|
-
removeFromWaitlist: import("@trpc/server").TRPCMutationProcedure<{
|
|
196
|
-
input: {
|
|
197
|
-
id: string;
|
|
198
|
-
};
|
|
199
|
-
output: {
|
|
200
|
-
id: string;
|
|
201
|
-
name: string | null;
|
|
202
|
-
email: string | null;
|
|
203
|
-
createdAt: Date;
|
|
204
|
-
updatedAt: Date | null;
|
|
205
|
-
status: string;
|
|
206
|
-
};
|
|
207
|
-
meta: any;
|
|
208
|
-
}>;
|
|
209
|
-
joinWaitlist: import("@trpc/server").TRPCMutationProcedure<{
|
|
210
|
-
input: {
|
|
211
|
-
email: string;
|
|
212
|
-
};
|
|
213
|
-
output: {
|
|
214
|
-
id: string;
|
|
215
|
-
name: string | null;
|
|
216
|
-
email: string | null;
|
|
217
|
-
createdAt: Date;
|
|
218
|
-
updatedAt: Date | null;
|
|
219
|
-
status: string;
|
|
220
|
-
};
|
|
221
|
-
meta: any;
|
|
222
|
-
}>;
|
|
223
|
-
getOnboarding: import("@trpc/server").TRPCQueryProcedure<{
|
|
224
|
-
input: void;
|
|
225
|
-
output: number;
|
|
226
|
-
meta: any;
|
|
227
|
-
}>;
|
|
228
|
-
setOnboarding: import("@trpc/server").TRPCMutationProcedure<{
|
|
229
|
-
input: number;
|
|
230
|
-
output: number;
|
|
231
|
-
meta: any;
|
|
232
|
-
}>;
|
|
233
|
-
getPreferences: import("@trpc/server").TRPCQueryProcedure<{
|
|
234
|
-
input: void;
|
|
235
|
-
output: Record<string, unknown>;
|
|
236
|
-
meta: any;
|
|
237
|
-
}>;
|
|
238
|
-
setPreferences: import("@trpc/server").TRPCMutationProcedure<{
|
|
239
|
-
input: Record<string, unknown>;
|
|
240
|
-
output: Record<string, unknown>;
|
|
241
|
-
meta: any;
|
|
242
|
-
}>;
|
|
243
|
-
getOrganizationPreferences: import("@trpc/server").TRPCQueryProcedure<{
|
|
244
|
-
input: void;
|
|
245
|
-
output: Record<string, unknown>;
|
|
246
|
-
meta: any;
|
|
247
|
-
}>;
|
|
248
|
-
setOrganizationPreferences: import("@trpc/server").TRPCMutationProcedure<{
|
|
249
|
-
input: Record<string, unknown>;
|
|
250
|
-
output: Record<string, unknown>;
|
|
251
|
-
meta: any;
|
|
252
|
-
}>;
|
|
253
|
-
getMetadata: import("@trpc/server").TRPCQueryProcedure<{
|
|
254
|
-
input: void;
|
|
255
|
-
output: Record<string, unknown>;
|
|
256
|
-
meta: any;
|
|
257
|
-
}>;
|
|
258
|
-
setMetadata: import("@trpc/server").TRPCMutationProcedure<{
|
|
259
|
-
input: Record<string, unknown>;
|
|
260
|
-
output: Record<string, unknown>;
|
|
261
|
-
meta: any;
|
|
262
|
-
}>;
|
|
263
|
-
getFlags: import("@trpc/server").TRPCQueryProcedure<{
|
|
264
|
-
input: void;
|
|
265
|
-
output: string[];
|
|
266
|
-
meta: any;
|
|
267
|
-
}>;
|
|
268
|
-
getOrganizationFlags: import("@trpc/server").TRPCQueryProcedure<{
|
|
269
|
-
input: void;
|
|
270
|
-
output: string[];
|
|
271
|
-
meta: any;
|
|
272
|
-
}>;
|
|
273
|
-
setFlags: import("@trpc/server").TRPCMutationProcedure<{
|
|
274
|
-
input: string[];
|
|
275
|
-
output: string[];
|
|
276
|
-
meta: any;
|
|
277
|
-
}>;
|
|
278
|
-
setOrganizationFlags: import("@trpc/server").TRPCMutationProcedure<{
|
|
279
|
-
input: string[];
|
|
280
|
-
output: string[];
|
|
281
|
-
meta: any;
|
|
282
|
-
}>;
|
|
283
|
-
validateWaitlistCode: import("@trpc/server").TRPCQueryProcedure<{
|
|
284
|
-
input: {
|
|
285
|
-
code: string;
|
|
286
|
-
};
|
|
287
|
-
output: {
|
|
288
|
-
status: string;
|
|
289
|
-
};
|
|
290
|
-
meta: any;
|
|
291
|
-
}>;
|
|
292
|
-
}>>;
|