summaryrefslogtreecommitdiffhomepage
path: root/packages/function/sst-env.d.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-07-11 05:01:27 +0800
committerFrank <[email protected]>2025-07-11 05:01:27 +0800
commit1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1 (patch)
tree10f64998872a9d459f7a0deb861c129f81ceea0a /packages/function/sst-env.d.ts
parent85805d2c38d0c2e4ddbdc749b5404f316b209c90 (diff)
downloadopencode-1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1.tar.gz
opencode-1c4fd7f28ff776953c8f3b191dc19243e6c6c8d1.zip
Api: add endpoint for getting github app token
Diffstat (limited to 'packages/function/sst-env.d.ts')
-rw-r--r--packages/function/sst-env.d.ts24
1 files changed, 16 insertions, 8 deletions
diff --git a/packages/function/sst-env.d.ts b/packages/function/sst-env.d.ts
index fd95edbb4..dab7de3f3 100644
--- a/packages/function/sst-env.d.ts
+++ b/packages/function/sst-env.d.ts
@@ -6,20 +6,28 @@
import "sst"
declare module "sst" {
export interface Resource {
- Web: {
- type: "sst.cloudflare.Astro"
- url: string
+ "GITHUB_APP_ID": {
+ "type": "sst.sst.Secret"
+ "value": string
+ }
+ "GITHUB_APP_PRIVATE_KEY": {
+ "type": "sst.sst.Secret"
+ "value": string
+ }
+ "Web": {
+ "type": "sst.cloudflare.Astro"
+ "url": string
}
}
}
-// cloudflare
-import * as cloudflare from "@cloudflare/workers-types"
+// cloudflare
+import * as cloudflare from "@cloudflare/workers-types";
declare module "sst" {
export interface Resource {
- Api: cloudflare.Service
- Bucket: cloudflare.R2Bucket
+ "Api": cloudflare.Service
+ "Bucket": cloudflare.R2Bucket
}
}
import "sst"
-export {}
+export {} \ No newline at end of file