@nordsym/apiclaw 1.5.4 → 1.5.5
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/proxy.js +1 -1
- package/dist/proxy.js.map +1 -1
- package/landing/src/app/api/auth/magic-link/route.ts +1 -1
- package/landing/src/app/api/auth/session/route.ts +1 -1
- package/landing/src/app/api/auth/verify/route.ts +1 -1
- package/landing/src/app/api/billing/checkout/route.ts +1 -1
- package/landing/src/app/api/billing/payment-method/route.ts +1 -1
- package/landing/src/app/api/billing/portal/route.ts +1 -1
- package/landing/src/app/api/mou/sign/route.ts +2 -2
- package/landing/src/app/api/stripe/webhook/route.ts +1 -1
- package/landing/src/app/api/workspace-auth/magic-link/route.ts +1 -1
- package/landing/src/app/api/workspace-auth/session/route.ts +1 -1
- package/landing/src/app/api/workspace-auth/verify/route.ts +1 -1
- package/landing/src/lib/convex-client.ts +1 -1
- package/package.json +1 -1
- package/src/proxy.ts +1 -1
package/dist/proxy.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* APIClaw Proxy - Fallback to hosted API when no local credentials
|
|
3
3
|
*/
|
|
4
4
|
import { readSession, getMachineFingerprint } from './session.js';
|
|
5
|
-
const PROXY_BASE = "https://
|
|
5
|
+
const PROXY_BASE = "https://brilliant-puffin-712.eu-west-1.convex.site/proxy";
|
|
6
6
|
export async function callProxy(provider, params) {
|
|
7
7
|
const url = `${PROXY_BASE}/${provider}`;
|
|
8
8
|
// Get session and fingerprint for tracking
|
package/dist/proxy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[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W,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function POST(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function POST(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function POST(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
import Stripe from "stripe";
|
|
3
3
|
|
|
4
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
4
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
5
5
|
const stripeSecretKey = process.env.STRIPE_SECRET_KEY;
|
|
6
6
|
|
|
7
7
|
const stripe = stripeSecretKey ? new Stripe(stripeSecretKey) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
import Stripe from "stripe";
|
|
3
3
|
|
|
4
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
4
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
5
5
|
const stripeSecretKey = process.env.STRIPE_SECRET_KEY;
|
|
6
6
|
|
|
7
7
|
const stripe = stripeSecretKey ? new Stripe(stripeSecretKey) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
import Stripe from "stripe";
|
|
3
3
|
|
|
4
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
4
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
5
5
|
const stripeSecretKey = process.env.STRIPE_SECRET_KEY;
|
|
6
6
|
|
|
7
7
|
const stripe = stripeSecretKey ? new Stripe(stripeSecretKey) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
// MOU functions deployed to
|
|
4
|
-
const CONVEX_URL = "https://
|
|
3
|
+
// MOU functions deployed to brilliant-puffin-712.eu-west-1
|
|
4
|
+
const CONVEX_URL = "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
5
5
|
|
|
6
6
|
interface PartnerConfig {
|
|
7
7
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
import Stripe from "stripe";
|
|
3
3
|
|
|
4
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
4
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
5
5
|
|
|
6
6
|
// Initialize Stripe
|
|
7
7
|
const stripeSecretKey = process.env.STRIPE_SECRET_KEY;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function POST(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function GET(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function POST(req: NextRequest) {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Simple Convex HTTP client for the dashboard
|
|
2
2
|
|
|
3
|
-
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://
|
|
3
|
+
const CONVEX_URL = process.env.NEXT_PUBLIC_CONVEX_URL || "https://brilliant-puffin-712.eu-west-1.convex.cloud";
|
|
4
4
|
|
|
5
5
|
export async function convexQuery<T>(path: string, args: Record<string, unknown>): Promise<T> {
|
|
6
6
|
const response = await fetch(`${CONVEX_URL}/api/query`, {
|
package/package.json
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { readSession, getMachineFingerprint } from './session.js';
|
|
6
6
|
|
|
7
|
-
const PROXY_BASE = "https://
|
|
7
|
+
const PROXY_BASE = "https://brilliant-puffin-712.eu-west-1.convex.site/proxy";
|
|
8
8
|
|
|
9
9
|
export async function callProxy(provider: string, params: any): Promise<any> {
|
|
10
10
|
const url = `${PROXY_BASE}/${provider}`;
|