mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-18 16:34:18 +01:00
chore: format code
This commit is contained in:
2
github/sst-env.d.ts
vendored
2
github/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../sst-env.d.ts" />
|
/// <reference path="../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
@@ -139,10 +139,7 @@ new sst.cloudflare.x.SolidStart("Console", {
|
|||||||
AWS_SES_SECRET_ACCESS_KEY,
|
AWS_SES_SECRET_ACCESS_KEY,
|
||||||
...($dev
|
...($dev
|
||||||
? [
|
? [
|
||||||
new sst.Secret(
|
new sst.Secret("CLOUDFLARE_DEFAULT_ACCOUNT_ID", process.env.CLOUDFLARE_DEFAULT_ACCOUNT_ID!),
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID",
|
|
||||||
process.env.CLOUDFLARE_DEFAULT_ACCOUNT_ID!,
|
|
||||||
),
|
|
||||||
new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!),
|
new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!),
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ export function createRateLimiter(model: string, limit: number | undefined, ip:
|
|||||||
prevRate = prevValue ? parseInt(prevValue) : 0
|
prevRate = prevValue ? parseInt(prevValue) : 0
|
||||||
currRate = currValue ? parseInt(currValue) : 0
|
currRate = currValue ? parseInt(currValue) : 0
|
||||||
logger.debug(`rate limit ${model} prev/curr: ${prevRate}/${currRate}`)
|
logger.debug(`rate limit ${model} prev/curr: ${prevRate}/${currRate}`)
|
||||||
if (prevRate + currRate >= limit)
|
if (prevRate + currRate >= limit) throw new RateLimitError(`Rate limit exceeded. Please try again later.`)
|
||||||
throw new RateLimitError(`Rate limit exceeded. Please try again later.`)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
packages/console/app/sst-env.d.ts
vendored
2
packages/console/app/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../../sst-env.d.ts" />
|
/// <reference path="../../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
152
packages/console/core/sst-env.d.ts
vendored
152
packages/console/core/sst-env.d.ts
vendored
@@ -6,108 +6,108 @@
|
|||||||
import "sst"
|
import "sst"
|
||||||
declare module "sst" {
|
declare module "sst" {
|
||||||
export interface Resource {
|
export interface Resource {
|
||||||
"ADMIN_SECRET": {
|
ADMIN_SECRET: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AUTH_API_URL": {
|
AUTH_API_URL: {
|
||||||
"type": "sst.sst.Linkable"
|
type: "sst.sst.Linkable"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_ACCESS_KEY_ID": {
|
AWS_SES_ACCESS_KEY_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_SECRET_ACCESS_KEY": {
|
AWS_SES_SECRET_ACCESS_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_API_TOKEN": {
|
CLOUDFLARE_API_TOKEN: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID": {
|
CLOUDFLARE_DEFAULT_ACCOUNT_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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
|
||||||
}
|
}
|
||||||
"Desktop": {
|
Desktop: {
|
||||||
"type": "sst.cloudflare.StaticSite"
|
type: "sst.cloudflare.StaticSite"
|
||||||
"url": string
|
url: string
|
||||||
}
|
}
|
||||||
"EMAILOCTOPUS_API_KEY": {
|
EMAILOCTOPUS_API_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: 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_MODELS1": {
|
ZEN_MODELS1: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"ZEN_MODELS2": {
|
ZEN_MODELS2: {
|
||||||
"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
|
||||||
"GatewayKv": cloudflare.KVNamespace
|
GatewayKv: cloudflare.KVNamespace
|
||||||
"LogProcessor": cloudflare.Service
|
LogProcessor: cloudflare.Service
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
152
packages/console/function/sst-env.d.ts
vendored
152
packages/console/function/sst-env.d.ts
vendored
@@ -6,108 +6,108 @@
|
|||||||
import "sst"
|
import "sst"
|
||||||
declare module "sst" {
|
declare module "sst" {
|
||||||
export interface Resource {
|
export interface Resource {
|
||||||
"ADMIN_SECRET": {
|
ADMIN_SECRET: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AUTH_API_URL": {
|
AUTH_API_URL: {
|
||||||
"type": "sst.sst.Linkable"
|
type: "sst.sst.Linkable"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_ACCESS_KEY_ID": {
|
AWS_SES_ACCESS_KEY_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_SECRET_ACCESS_KEY": {
|
AWS_SES_SECRET_ACCESS_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_API_TOKEN": {
|
CLOUDFLARE_API_TOKEN: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID": {
|
CLOUDFLARE_DEFAULT_ACCOUNT_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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
|
||||||
}
|
}
|
||||||
"Desktop": {
|
Desktop: {
|
||||||
"type": "sst.cloudflare.StaticSite"
|
type: "sst.cloudflare.StaticSite"
|
||||||
"url": string
|
url: string
|
||||||
}
|
}
|
||||||
"EMAILOCTOPUS_API_KEY": {
|
EMAILOCTOPUS_API_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: 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_MODELS1": {
|
ZEN_MODELS1: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"ZEN_MODELS2": {
|
ZEN_MODELS2: {
|
||||||
"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
|
||||||
"GatewayKv": cloudflare.KVNamespace
|
GatewayKv: cloudflare.KVNamespace
|
||||||
"LogProcessor": cloudflare.Service
|
LogProcessor: cloudflare.Service
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/console/mail/sst-env.d.ts
vendored
2
packages/console/mail/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../../sst-env.d.ts" />
|
/// <reference path="../../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
import type {
|
import type { KVNamespaceListOptions, KVNamespaceListResult, KVNamespacePutOptions } from "@cloudflare/workers-types"
|
||||||
KVNamespaceListOptions,
|
|
||||||
KVNamespaceListResult,
|
|
||||||
KVNamespacePutOptions,
|
|
||||||
} from "@cloudflare/workers-types"
|
|
||||||
import { Resource as ResourceBase } from "sst"
|
import { Resource as ResourceBase } from "sst"
|
||||||
import Cloudflare from "cloudflare"
|
import Cloudflare from "cloudflare"
|
||||||
|
|
||||||
@@ -27,9 +23,7 @@ export const Resource = new Proxy(
|
|||||||
keys: Array.isArray(k) ? k : [k],
|
keys: Array.isArray(k) ? k : [k],
|
||||||
account_id: accountId,
|
account_id: accountId,
|
||||||
})
|
})
|
||||||
.then((result) =>
|
.then((result) => (isMulti ? new Map(Object.entries(result?.values ?? {})) : result?.values?.[k]))
|
||||||
isMulti ? new Map(Object.entries(result?.values ?? {})) : result?.values?.[k],
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
put: (k: string, v: string, opts?: KVNamespacePutOptions) =>
|
put: (k: string, v: string, opts?: KVNamespacePutOptions) =>
|
||||||
client.kv.namespaces.values.update(namespaceId, k, {
|
client.kv.namespaces.values.update(namespaceId, k, {
|
||||||
|
|||||||
152
packages/console/resource/sst-env.d.ts
vendored
152
packages/console/resource/sst-env.d.ts
vendored
@@ -6,108 +6,108 @@
|
|||||||
import "sst"
|
import "sst"
|
||||||
declare module "sst" {
|
declare module "sst" {
|
||||||
export interface Resource {
|
export interface Resource {
|
||||||
"ADMIN_SECRET": {
|
ADMIN_SECRET: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AUTH_API_URL": {
|
AUTH_API_URL: {
|
||||||
"type": "sst.sst.Linkable"
|
type: "sst.sst.Linkable"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_ACCESS_KEY_ID": {
|
AWS_SES_ACCESS_KEY_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_SECRET_ACCESS_KEY": {
|
AWS_SES_SECRET_ACCESS_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_API_TOKEN": {
|
CLOUDFLARE_API_TOKEN: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID": {
|
CLOUDFLARE_DEFAULT_ACCOUNT_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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
|
||||||
}
|
}
|
||||||
"Desktop": {
|
Desktop: {
|
||||||
"type": "sst.cloudflare.StaticSite"
|
type: "sst.cloudflare.StaticSite"
|
||||||
"url": string
|
url: string
|
||||||
}
|
}
|
||||||
"EMAILOCTOPUS_API_KEY": {
|
EMAILOCTOPUS_API_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: 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_MODELS1": {
|
ZEN_MODELS1: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"ZEN_MODELS2": {
|
ZEN_MODELS2: {
|
||||||
"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
|
||||||
"GatewayKv": cloudflare.KVNamespace
|
GatewayKv: cloudflare.KVNamespace
|
||||||
"LogProcessor": cloudflare.Service
|
LogProcessor: cloudflare.Service
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
6
packages/desktop/src/sst-env.d.ts
vendored
6
packages/desktop/src/sst-env.d.ts
vendored
@@ -2,9 +2,7 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {}
|
||||||
|
|
||||||
}
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
readonly env: ImportMetaEnv
|
readonly env: ImportMetaEnv
|
||||||
}
|
}
|
||||||
|
|||||||
2
packages/desktop/sst-env.d.ts
vendored
2
packages/desktop/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
152
packages/function/sst-env.d.ts
vendored
152
packages/function/sst-env.d.ts
vendored
@@ -6,108 +6,108 @@
|
|||||||
import "sst"
|
import "sst"
|
||||||
declare module "sst" {
|
declare module "sst" {
|
||||||
export interface Resource {
|
export interface Resource {
|
||||||
"ADMIN_SECRET": {
|
ADMIN_SECRET: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AUTH_API_URL": {
|
AUTH_API_URL: {
|
||||||
"type": "sst.sst.Linkable"
|
type: "sst.sst.Linkable"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_ACCESS_KEY_ID": {
|
AWS_SES_ACCESS_KEY_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_SECRET_ACCESS_KEY": {
|
AWS_SES_SECRET_ACCESS_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_API_TOKEN": {
|
CLOUDFLARE_API_TOKEN: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID": {
|
CLOUDFLARE_DEFAULT_ACCOUNT_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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
|
||||||
}
|
}
|
||||||
"Desktop": {
|
Desktop: {
|
||||||
"type": "sst.cloudflare.StaticSite"
|
type: "sst.cloudflare.StaticSite"
|
||||||
"url": string
|
url: string
|
||||||
}
|
}
|
||||||
"EMAILOCTOPUS_API_KEY": {
|
EMAILOCTOPUS_API_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: 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_MODELS1": {
|
ZEN_MODELS1: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"ZEN_MODELS2": {
|
ZEN_MODELS2: {
|
||||||
"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
|
||||||
"GatewayKv": cloudflare.KVNamespace
|
GatewayKv: cloudflare.KVNamespace
|
||||||
"LogProcessor": cloudflare.Service
|
LogProcessor: cloudflare.Service
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/opencode/sst-env.d.ts
vendored
2
packages/opencode/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
@@ -24,4 +24,4 @@
|
|||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"@typescript/native-preview": "catalog:"
|
"@typescript/native-preview": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
packages/plugin/sst-env.d.ts
vendored
2
packages/plugin/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/script/sst-env.d.ts
vendored
2
packages/script/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
@@ -26,4 +26,4 @@
|
|||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"directory": "dist"
|
"directory": "dist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
packages/sdk/js/sst-env.d.ts
vendored
2
packages/sdk/js/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../../sst-env.d.ts" />
|
/// <reference path="../../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/slack/sst-env.d.ts
vendored
2
packages/slack/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/ui/sst-env.d.ts
vendored
2
packages/ui/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
packages/web/sst-env.d.ts
vendored
2
packages/web/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
2
sdks/vscode/sst-env.d.ts
vendored
2
sdks/vscode/sst-env.d.ts
vendored
@@ -6,4 +6,4 @@
|
|||||||
/// <reference path="../../sst-env.d.ts" />
|
/// <reference path="../../sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
170
sst-env.d.ts
vendored
170
sst-env.d.ts
vendored
@@ -5,120 +5,120 @@
|
|||||||
|
|
||||||
declare module "sst" {
|
declare module "sst" {
|
||||||
export interface Resource {
|
export interface Resource {
|
||||||
"ADMIN_SECRET": {
|
ADMIN_SECRET: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AUTH_API_URL": {
|
AUTH_API_URL: {
|
||||||
"type": "sst.sst.Linkable"
|
type: "sst.sst.Linkable"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_ACCESS_KEY_ID": {
|
AWS_SES_ACCESS_KEY_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"AWS_SES_SECRET_ACCESS_KEY": {
|
AWS_SES_SECRET_ACCESS_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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: {
|
||||||
"namespaceId": string
|
namespaceId: string
|
||||||
"type": "sst.cloudflare.Kv"
|
type: "sst.cloudflare.Kv"
|
||||||
}
|
}
|
||||||
"Bucket": {
|
Bucket: {
|
||||||
"name": string
|
name: string
|
||||||
"type": "sst.cloudflare.Bucket"
|
type: "sst.cloudflare.Bucket"
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_API_TOKEN": {
|
CLOUDFLARE_API_TOKEN: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"CLOUDFLARE_DEFAULT_ACCOUNT_ID": {
|
CLOUDFLARE_DEFAULT_ACCOUNT_ID: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"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
|
||||||
}
|
}
|
||||||
"Desktop": {
|
Desktop: {
|
||||||
"type": "sst.cloudflare.StaticSite"
|
type: "sst.cloudflare.StaticSite"
|
||||||
"url": string
|
url: string
|
||||||
}
|
}
|
||||||
"EMAILOCTOPUS_API_KEY": {
|
EMAILOCTOPUS_API_KEY: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: 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
|
||||||
}
|
}
|
||||||
"GatewayKv": {
|
GatewayKv: {
|
||||||
"namespaceId": string
|
namespaceId: string
|
||||||
"type": "sst.cloudflare.Kv"
|
type: "sst.cloudflare.Kv"
|
||||||
}
|
}
|
||||||
"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_MODELS1": {
|
ZEN_MODELS1: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
"ZEN_MODELS2": {
|
ZEN_MODELS2: {
|
||||||
"type": "sst.sst.Secret"
|
type: "sst.sst.Secret"
|
||||||
"value": string
|
value: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <reference path="sst-env.d.ts" />
|
/// <reference path="sst-env.d.ts" />
|
||||||
|
|
||||||
import "sst"
|
import "sst"
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
Reference in New Issue
Block a user