chore: format code

This commit is contained in:
GitHub Action
2025-09-19 18:18:56 +00:00
parent 9420d80b73
commit f1cbdf441c
16 changed files with 234 additions and 265 deletions

View File

@@ -48,9 +48,7 @@
"indexes": { "indexes": {
"email": { "email": {
"name": "email", "name": "email",
"columns": [ "columns": ["email"],
"email"
],
"isUnique": true "isUnique": true
} }
}, },
@@ -180,9 +178,7 @@
"indexes": { "indexes": {
"global_customer_id": { "global_customer_id": {
"name": "global_customer_id", "name": "global_customer_id",
"columns": [ "columns": ["customer_id"],
"customer_id"
],
"isUnique": true "isUnique": true
} }
}, },
@@ -190,10 +186,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"billing_workspace_id_id_pk": { "billing_workspace_id_id_pk": {
"name": "billing_workspace_id_id_pk", "name": "billing_workspace_id_id_pk",
"columns": [ "columns": ["workspace_id", "id"]
"workspace_id",
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -266,10 +259,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"payment_workspace_id_id_pk": { "payment_workspace_id_id_pk": {
"name": "payment_workspace_id_id_pk", "name": "payment_workspace_id_id_pk",
"columns": [ "columns": ["workspace_id", "id"]
"workspace_id",
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -384,10 +374,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"usage_workspace_id_id_pk": { "usage_workspace_id_id_pk": {
"name": "usage_workspace_id_id_pk", "name": "usage_workspace_id_id_pk",
"columns": [ "columns": ["workspace_id", "id"]
"workspace_id",
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -472,17 +459,12 @@
"indexes": { "indexes": {
"global_key": { "global_key": {
"name": "global_key", "name": "global_key",
"columns": [ "columns": ["key"],
"key"
],
"isUnique": true "isUnique": true
}, },
"name": { "name": {
"name": "name", "name": "name",
"columns": [ "columns": ["workspace_id", "name"],
"workspace_id",
"name"
],
"isUnique": true "isUnique": true
} }
}, },
@@ -490,10 +472,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"key_workspace_id_id_pk": { "key_workspace_id_id_pk": {
"name": "key_workspace_id_id_pk", "name": "key_workspace_id_id_pk",
"columns": [ "columns": ["workspace_id", "id"]
"workspace_id",
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -571,10 +550,7 @@
"indexes": { "indexes": {
"user_email": { "user_email": {
"name": "user_email", "name": "user_email",
"columns": [ "columns": ["workspace_id", "email"],
"workspace_id",
"email"
],
"isUnique": true "isUnique": true
} }
}, },
@@ -582,10 +558,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"user_workspace_id_id_pk": { "user_workspace_id_id_pk": {
"name": "user_workspace_id_id_pk", "name": "user_workspace_id_id_pk",
"columns": [ "columns": ["workspace_id", "id"]
"workspace_id",
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -649,9 +622,7 @@
"indexes": { "indexes": {
"slug": { "slug": {
"name": "slug", "name": "slug",
"columns": [ "columns": ["slug"],
"slug"
],
"isUnique": true "isUnique": true
} }
}, },
@@ -659,9 +630,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"workspace_id": { "workspace_id": {
"name": "workspace_id", "name": "workspace_id",
"columns": [ "columns": ["id"]
"id"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},

View File

@@ -6,73 +6,73 @@
import "sst" import "sst"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"AUTH_API_URL": { AUTH_API_URL: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Console": { Console: {
"type": "sst.cloudflare.SolidStart" type: "sst.cloudflare.SolidStart"
"url": string url: string
} }
"Database": { Database: {
"database": string database: string
"host": string host: string
"password": string password: string
"port": number port: number
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"username": string username: string
} }
"GITHUB_APP_ID": { GITHUB_APP_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_APP_PRIVATE_KEY": { GITHUB_APP_PRIVATE_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_ID_CONSOLE": { GITHUB_CLIENT_ID_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_SECRET_CONSOLE": { GITHUB_CLIENT_SECRET_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GOOGLE_CLIENT_ID": { GOOGLE_CLIENT_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"HONEYCOMB_API_KEY": { HONEYCOMB_API_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_SECRET_KEY": { STRIPE_SECRET_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_WEBHOOK_SECRET": { STRIPE_WEBHOOK_SECRET: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Web": { Web: {
"type": "sst.cloudflare.Astro" type: "sst.cloudflare.Astro"
"url": string url: string
} }
"ZEN_MODELS": { ZEN_MODELS: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
} }
} }
// cloudflare // cloudflare
import * as cloudflare from "@cloudflare/workers-types"; import * as cloudflare from "@cloudflare/workers-types"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"Api": cloudflare.Service Api: cloudflare.Service
"AuthApi": cloudflare.Service AuthApi: cloudflare.Service
"AuthStorage": cloudflare.KVNamespace AuthStorage: cloudflare.KVNamespace
"Bucket": cloudflare.R2Bucket Bucket: cloudflare.R2Bucket
"LogProcessor": cloudflare.Service LogProcessor: cloudflare.Service
} }
} }

View File

@@ -6,73 +6,73 @@
import "sst" import "sst"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"AUTH_API_URL": { AUTH_API_URL: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Console": { Console: {
"type": "sst.cloudflare.SolidStart" type: "sst.cloudflare.SolidStart"
"url": string url: string
} }
"Database": { Database: {
"database": string database: string
"host": string host: string
"password": string password: string
"port": number port: number
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"username": string username: string
} }
"GITHUB_APP_ID": { GITHUB_APP_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_APP_PRIVATE_KEY": { GITHUB_APP_PRIVATE_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_ID_CONSOLE": { GITHUB_CLIENT_ID_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_SECRET_CONSOLE": { GITHUB_CLIENT_SECRET_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GOOGLE_CLIENT_ID": { GOOGLE_CLIENT_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"HONEYCOMB_API_KEY": { HONEYCOMB_API_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_SECRET_KEY": { STRIPE_SECRET_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_WEBHOOK_SECRET": { STRIPE_WEBHOOK_SECRET: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Web": { Web: {
"type": "sst.cloudflare.Astro" type: "sst.cloudflare.Astro"
"url": string url: string
} }
"ZEN_MODELS": { ZEN_MODELS: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
} }
} }
// cloudflare // cloudflare
import * as cloudflare from "@cloudflare/workers-types"; import * as cloudflare from "@cloudflare/workers-types"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"Api": cloudflare.Service Api: cloudflare.Service
"AuthApi": cloudflare.Service AuthApi: cloudflare.Service
"AuthStorage": cloudflare.KVNamespace AuthStorage: cloudflare.KVNamespace
"Bucket": cloudflare.R2Bucket Bucket: cloudflare.R2Bucket
"LogProcessor": cloudflare.Service LogProcessor: cloudflare.Service
} }
} }

View File

@@ -6,73 +6,73 @@
import "sst" import "sst"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"AUTH_API_URL": { AUTH_API_URL: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Console": { Console: {
"type": "sst.cloudflare.SolidStart" type: "sst.cloudflare.SolidStart"
"url": string url: string
} }
"Database": { Database: {
"database": string database: string
"host": string host: string
"password": string password: string
"port": number port: number
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"username": string username: string
} }
"GITHUB_APP_ID": { GITHUB_APP_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_APP_PRIVATE_KEY": { GITHUB_APP_PRIVATE_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_ID_CONSOLE": { GITHUB_CLIENT_ID_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_SECRET_CONSOLE": { GITHUB_CLIENT_SECRET_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GOOGLE_CLIENT_ID": { GOOGLE_CLIENT_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"HONEYCOMB_API_KEY": { HONEYCOMB_API_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_SECRET_KEY": { STRIPE_SECRET_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_WEBHOOK_SECRET": { STRIPE_WEBHOOK_SECRET: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Web": { Web: {
"type": "sst.cloudflare.Astro" type: "sst.cloudflare.Astro"
"url": string url: string
} }
"ZEN_MODELS": { ZEN_MODELS: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
} }
} }
// cloudflare // cloudflare
import * as cloudflare from "@cloudflare/workers-types"; import * as cloudflare from "@cloudflare/workers-types"
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"Api": cloudflare.Service Api: cloudflare.Service
"AuthApi": cloudflare.Service AuthApi: cloudflare.Service
"AuthStorage": cloudflare.KVNamespace AuthStorage: cloudflare.KVNamespace
"Bucket": cloudflare.R2Bucket Bucket: cloudflare.R2Bucket
"LogProcessor": cloudflare.Service LogProcessor: cloudflare.Service
} }
} }

112
sst-env.d.ts vendored
View File

@@ -5,79 +5,79 @@
declare module "sst" { declare module "sst" {
export interface Resource { export interface Resource {
"AUTH_API_URL": { AUTH_API_URL: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Api": { Api: {
"type": "sst.cloudflare.Worker" type: "sst.cloudflare.Worker"
"url": string url: string
} }
"AuthApi": { AuthApi: {
"type": "sst.cloudflare.Worker" type: "sst.cloudflare.Worker"
"url": string url: string
} }
"AuthStorage": { AuthStorage: {
"type": "sst.cloudflare.Kv" type: "sst.cloudflare.Kv"
} }
"Bucket": { Bucket: {
"name": string name: string
"type": "sst.cloudflare.Bucket" type: "sst.cloudflare.Bucket"
} }
"Console": { Console: {
"type": "sst.cloudflare.SolidStart" type: "sst.cloudflare.SolidStart"
"url": string url: string
} }
"Database": { Database: {
"database": string database: string
"host": string host: string
"password": string password: string
"port": number port: number
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"username": string username: string
} }
"GITHUB_APP_ID": { GITHUB_APP_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_APP_PRIVATE_KEY": { GITHUB_APP_PRIVATE_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_ID_CONSOLE": { GITHUB_CLIENT_ID_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GITHUB_CLIENT_SECRET_CONSOLE": { GITHUB_CLIENT_SECRET_CONSOLE: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"GOOGLE_CLIENT_ID": { GOOGLE_CLIENT_ID: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"HONEYCOMB_API_KEY": { HONEYCOMB_API_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"LogProcessor": { LogProcessor: {
"type": "sst.cloudflare.Worker" type: "sst.cloudflare.Worker"
} }
"STRIPE_SECRET_KEY": { STRIPE_SECRET_KEY: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
"STRIPE_WEBHOOK_SECRET": { STRIPE_WEBHOOK_SECRET: {
"type": "sst.sst.Linkable" type: "sst.sst.Linkable"
"value": string value: string
} }
"Web": { Web: {
"type": "sst.cloudflare.Astro" type: "sst.cloudflare.Astro"
"url": string url: string
} }
"ZEN_MODELS": { ZEN_MODELS: {
"type": "sst.sst.Secret" type: "sst.sst.Secret"
"value": string value: string
} }
} }
} }