worker-configuration.d.ts
This file
Path
apps/platform/worker-configuration.d.ts
106 lines · 3.4 KiB · TypeScript
Last changed by
Merge infra/drop-demo into mainoscabrielbefore adoptionc49b6bf
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 1why, one step back1/* eslint-disable */Merge infra/drop-demo into mainoscabrielbefore adoptionc49b6bf
line 2why, one step back2// Generated by Wrangler by running `wrangler types --include-runtime=false --strict-vars=false` (hash: d86181b89e45aafbd21bd32eeae49b73)Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 3–6why, one step back3interface __BaseEnv_Env {4 OAUTH_KV: KVNamespace;5 EVIDENCE: R2Bucket;6 RELEASES: R2Bucket;Name the ask an opening opened, say why a policy has not evaluated, and give code history a durable storeoscabrielbefore adoption51f046c
line 7why, one step back7 CODE_CACHE: R2Bucket;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 8why, one step back8 FRONT_PAGE: D1Database;Sign people in by a proven email, with a display name, and Google's emailoscabrielbefore adoption125964c
line 9why, one step back9 EMAIL: SendEmail;Merge observability into mainoscabrielbefore adoption1985111
line 10why, one step back10 METRICS: AnalyticsEngineDataset;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 11–15why, one step back11 ARTIFACTS: Artifacts;12 ARTIFACTS_PRIVATE: Artifacts;13 CLAIM_LIMIT: RateLimit;14 PROPOSAL_LIMIT: RateLimit;15 SIGN_IN_LIMIT: RateLimit;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 16why, one step back16 DRAFT_LIMIT: RateLimit;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 17why, one step back17 LOADER: WorkerLoader;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 18why, one step back18 AI: Ai;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 19–21why, one step back19 OPERATOR_HANDLE: string;20 STAGE: string;21 LANDER_ADAPTER: string;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
lines 22–23why, one step back22 DRAFT_MODEL: string;23 PUBLIC_WEB_URL: string;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 24–28why, one step back24 OPERATOR_TOKEN: string;25 COOKIE_KEY: string;26 PASSWORD_PEPPER: string;27 MASTER_KEY: string;28 PROJECT: DurableObjectNamespace<import("./src/worker").Project>;Merge infra/drop-demo into mainoscabrielbefore adoptionc49b6bf
line 29why, one step back29 SANDBOX: Fetcher /* sandbox-dev-oscabriel */ | Fetcher /* sandbox-prod */ | Fetcher /* sandbox */;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 30–41why, one step back30 ANSWER: Workflow<Parameters<import("./src/worker").Answer['run']>[0]['payload']>;31 ON_PUSH: Workflow<Parameters<import("./src/worker").OnPush['run']>[0]['payload']>;32}33declare namespace Cloudflare {34 interface GlobalProps {35 mainModule: typeof import("./src/worker");36 durableNamespaces: "Project";37 }38 interface DevOscabrielEnv {39 OAUTH_KV: KVNamespace;40 EVIDENCE: R2Bucket;41 RELEASES: R2Bucket;Name the ask an opening opened, say why a policy has not evaluated, and give code history a durable storeoscabrielbefore adoption51f046c
line 42why, one step back42 CODE_CACHE: R2Bucket;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 43why, one step back43 FRONT_PAGE: D1Database;Sign people in by a proven email, with a display name, and Google's emailoscabrielbefore adoption125964c
line 44why, one step back44 EMAIL: SendEmail;Merge observability into mainoscabrielbefore adoption1985111
line 45why, one step back45 METRICS: AnalyticsEngineDataset;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 46–50why, one step back46 ARTIFACTS: Artifacts;47 ARTIFACTS_PRIVATE: Artifacts;48 CLAIM_LIMIT: RateLimit;49 PROPOSAL_LIMIT: RateLimit;50 SIGN_IN_LIMIT: RateLimit;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 51why, one step back51 DRAFT_LIMIT: RateLimit;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 52why, one step back52 LOADER: WorkerLoader;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 53why, one step back53 AI: Ai;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 54–56why, one step back54 OPERATOR_HANDLE: string;55 STAGE: string;56 LANDER_ADAPTER: string;Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
lines 57–58why, one step back57 DRAFT_MODEL: string;58 PUBLIC_WEB_URL: string;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 59–64why, one step back59 OPERATOR_TOKEN: string;60 COOKIE_KEY: string;61 PASSWORD_PEPPER: string;62 MASTER_KEY: string;63 PROJECT: DurableObjectNamespace<import("./src/worker").Project>;64 SANDBOX: Fetcher /* sandbox-dev-oscabriel */;Add a prod stage served on the brand's own domainoscabrielbefore adoption78a5062
lines 65–73why, one step back65 ANSWER: Workflow<Parameters<import("./src/worker").Answer['run']>[0]['payload']>;66 ON_PUSH: Workflow<Parameters<import("./src/worker").OnPush['run']>[0]['payload']>;67 }68 interface ProdEnv {69 OAUTH_KV: KVNamespace;70 EVIDENCE: R2Bucket;71 RELEASES: R2Bucket;72 CODE_CACHE: R2Bucket;73 FRONT_PAGE: D1Database;Sign people in by a proven email, with a display name, and Google's emailoscabrielbefore adoption125964c
line 74why, one step back74 EMAIL: SendEmail;Merge observability into mainoscabrielbefore adoption1985111
line 75why, one step back75 METRICS: AnalyticsEngineDataset;Add a prod stage served on the brand's own domainoscabrielbefore adoption78a5062
lines 76–94why, one step back76 ARTIFACTS: Artifacts;77 ARTIFACTS_PRIVATE: Artifacts;78 CLAIM_LIMIT: RateLimit;79 PROPOSAL_LIMIT: RateLimit;80 SIGN_IN_LIMIT: RateLimit;81 DRAFT_LIMIT: RateLimit;82 LOADER: WorkerLoader;83 AI: Ai;84 OPERATOR_HANDLE: string;85 STAGE: string;86 LANDER_ADAPTER: string;87 DRAFT_MODEL: string;88 PUBLIC_WEB_URL: string;89 OPERATOR_TOKEN: string;90 COOKIE_KEY: string;91 PASSWORD_PEPPER: string;92 MASTER_KEY: string;93 PROJECT: DurableObjectNamespace<import("./src/worker").Project>;94 SANDBOX: Fetcher /* sandbox-prod */;Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 95–104why, one step back95 ANSWER: Workflow<Parameters<import("./src/worker").Answer['run']>[0]['payload']>;96 ON_PUSH: Workflow<Parameters<import("./src/worker").OnPush['run']>[0]['payload']>;97 }98 interface Env extends __BaseEnv_Env {}99}100interface Env extends __BaseEnv_Env {}101type StringifyValues<EnvType extends Record<string, unknown>> = {102 [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;103};104declare namespace NodeJS {Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 105why, one step back105 interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "OPERATOR_HANDLE" | "STAGE" | "LANDER_ADAPTER" | "DRAFT_MODEL" | "PUBLIC_WEB_URL" | "OPERATOR_TOKEN" | "COOKIE_KEY" | "PASSWORD_PEPPER" | "MASTER_KEY">> {}Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
line 106why, one step back106}