feat: Add a lot of stuff

This commit is contained in:
Wanjohi
2025-10-25 22:11:33 +03:00
parent a3ee9aadd9
commit c5d0242d50
85 changed files with 6718 additions and 1377 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@nestri/functions",
"name": "@nestri/cloud-functions",
"module": "index.ts",
"type": "module",
"private": true,
@@ -22,6 +22,7 @@
"@aws-sdk/client-s3": "^3.806.0",
"@aws-sdk/client-sqs": "^3.806.0",
"@nestri/core": "workspace:",
"@nestri/cloud-core": "workspace:",
"actor-core": "^0.8.0",
"hono": "^4.7.8",
"hono-openapi": "^0.4.8",

View File

@@ -3,9 +3,10 @@ import { Resource } from "sst";
import { logger } from "hono/logger";
import { subjects } from "../subjects";
import { handleDiscord } from "./utils";
import { Team } from "@nestri/cloud-core/team/index";
import { DiscordAdapter } from "./adapters";
import { issuer } from "@openauthjs/openauth";
import { User } from "@nestri/core/user/index";
import { User } from "@nestri/cloud-core/user/index";
import { patchLogger } from "../utils/patch-logger";
import type { KVNamespace } from "@cloudflare/workers-types";
import { CloudflareStorage } from "@openauthjs/openauth/storage/cloudflare";
@@ -63,6 +64,7 @@ export default {
if (user) {
try {
await Team.fromEmail(email);
const matching = await User.fromEmail(user.primary.email);
//Sign Up