create-disposabl-app 0.8.10 → 0.8.12

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.
Files changed (68) hide show
  1. package/README.md +13 -1
  2. package/dist/disposabl.js +1 -1
  3. package/dist/index.js +1 -6
  4. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +0 -1
  5. package/dist/templates/default/bun.lock +1 -7
  6. package/dist/templates/default/packages/backend/README.md +4 -8
  7. package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +0 -67
  8. package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +0 -9
  9. package/dist/templates/default/packages/backend/convex/convex.config.ts +0 -11
  10. package/dist/templates/default/packages/backend/convex/http.ts +1 -9
  11. package/dist/templates/default/packages/backend/convex/schema.ts +1 -70
  12. package/dist/templates/default/packages/backend/generated/openapi.json +1 -1262
  13. package/dist/templates/default/packages/backend/generated/pages.json +0 -4
  14. package/dist/templates/default/packages/backend/generated/platforms.ts +2 -20
  15. package/dist/templates/default/packages/backend/package.json +1 -7
  16. package/dist/templates/default/packages/skill/SKILL.md +5 -5
  17. package/dist/templates/default/packages/skill/references/delivery.md +1 -1
  18. package/package.json +2 -2
  19. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.connections.tsx +0 -445
  20. package/dist/templates/default/packages/backend/convex/apps/actions/cleanup.ts +0 -317
  21. package/dist/templates/default/packages/backend/convex/apps/actions/create.ts +0 -30
  22. package/dist/templates/default/packages/backend/convex/apps/actions/delete.ts +0 -15
  23. package/dist/templates/default/packages/backend/convex/apps/actions/expo.ts +0 -180
  24. package/dist/templates/default/packages/backend/convex/apps/actions/setup.ts +0 -48
  25. package/dist/templates/default/packages/backend/convex/apps/internal.ts +0 -211
  26. package/dist/templates/default/packages/backend/convex/apps/operations/internal.ts +0 -239
  27. package/dist/templates/default/packages/backend/convex/apps/validator.ts +0 -23
  28. package/dist/templates/default/packages/backend/convex/connections/actions/credentials.ts +0 -56
  29. package/dist/templates/default/packages/backend/convex/connections/actions/expo.ts +0 -79
  30. package/dist/templates/default/packages/backend/convex/connections/actions/github.ts +0 -119
  31. package/dist/templates/default/packages/backend/convex/connections/actions/oauth.ts +0 -128
  32. package/dist/templates/default/packages/backend/convex/connections/index.ts +0 -80
  33. package/dist/templates/default/packages/backend/convex/connections/internal.ts +0 -147
  34. package/dist/templates/default/packages/backend/convex/connections/validator.ts +0 -35
  35. package/dist/templates/default/packages/backend/convex/downloads/action.ts +0 -136
  36. package/dist/templates/default/packages/backend/convex/downloads/http.ts +0 -32
  37. package/dist/templates/default/packages/backend/convex/downloads/internal.ts +0 -58
  38. package/dist/templates/default/packages/backend/convex/github/actions/http.ts +0 -69
  39. package/dist/templates/default/packages/backend/convex/github/actions/internal.ts +0 -196
  40. package/dist/templates/default/packages/backend/convex/github/actions/oidc.ts +0 -75
  41. package/dist/templates/default/packages/backend/convex/github/actions/provision.ts +0 -76
  42. package/dist/templates/default/packages/backend/convex/github/actions/secrets.ts +0 -180
  43. package/dist/templates/default/packages/backend/convex/github/actions/signing.ts +0 -41
  44. package/dist/templates/default/packages/backend/convex/github/actions/tokens.ts +0 -145
  45. package/dist/templates/default/packages/backend/convex/github/identityCache.ts +0 -54
  46. package/dist/templates/default/packages/backend/convex/github/internal.ts +0 -33
  47. package/dist/templates/default/packages/backend/convex/previews/internal.ts +0 -257
  48. package/dist/templates/default/packages/backend/convex/previews/token/actions/create.ts +0 -83
  49. package/dist/templates/default/packages/backend/convex/previews/token/actions/management.ts +0 -182
  50. package/dist/templates/default/packages/backend/convex/previews/token/internal.ts +0 -32
  51. package/dist/templates/default/packages/backend/convex/releases/internal.ts +0 -28
  52. package/dist/templates/default/packages/backend/convex/validator.ts +0 -87
  53. package/dist/templates/default/packages/sdk/src/generated/client/client.gen.ts +0 -300
  54. package/dist/templates/default/packages/sdk/src/generated/client/index.ts +0 -27
  55. package/dist/templates/default/packages/sdk/src/generated/client/types.gen.ts +0 -238
  56. package/dist/templates/default/packages/sdk/src/generated/client/utils.gen.ts +0 -337
  57. package/dist/templates/default/packages/sdk/src/generated/client.gen.ts +0 -28
  58. package/dist/templates/default/packages/sdk/src/generated/core/auth.gen.ts +0 -49
  59. package/dist/templates/default/packages/sdk/src/generated/core/bodySerializer.gen.ts +0 -96
  60. package/dist/templates/default/packages/sdk/src/generated/core/params.gen.ts +0 -188
  61. package/dist/templates/default/packages/sdk/src/generated/core/pathSerializer.gen.ts +0 -186
  62. package/dist/templates/default/packages/sdk/src/generated/core/queryKeySerializer.gen.ts +0 -134
  63. package/dist/templates/default/packages/sdk/src/generated/core/serverSentEvents.gen.ts +0 -265
  64. package/dist/templates/default/packages/sdk/src/generated/core/types.gen.ts +0 -126
  65. package/dist/templates/default/packages/sdk/src/generated/core/utils.gen.ts +0 -146
  66. package/dist/templates/default/packages/sdk/src/generated/index.ts +0 -63
  67. package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +0 -234
  68. package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +0 -660
package/README.md CHANGED
@@ -27,8 +27,20 @@ New apps start on `main`, which is also their initial preview name. No branch pr
27
27
 
28
28
  The website opens automatically and Metro starts with development-client support. Install a development build once with `bun run --cwd apps/mobile android` or `bun run --cwd apps/mobile ios`. Expo Go is not used.
29
29
 
30
- To get another development key in a worktree, run `disposabl previews token create --configure .`. The branch is detected automatically, or the worktree name when detached. Repeated requests reuse the preview and issue a new key.
30
+ To get another development key in a worktree, run `disposabl previews token create --configure .`. The branch is detected automatically, or the worktree name when detached. Repeated requests reuse the preview and issue a new key. This configures local development; it does not deploy or require a git push. Push the scaffold Initial commit to `main` first, then open a same-repository feature PR to `main` for a CI preview. A feature branch push alone does not deploy.
31
31
 
32
32
  If app creation is interrupted, rerun `bun create disposabl-app@latest my-app` from the parent directory. It resumes setup using the existing files and app UUID.
33
33
 
34
34
  Generated apps do not include the `create-disposabl-app` package, its workspace lockfile entry, or its Turbo build task. The generator and bundled Disposabl CLI run externally.
35
+
36
+ Generated backends start with only `users: defineTable({})`. The starter keeps
37
+ authentication, static hosting, and API/MCP support, with `users/current` as its
38
+ only application operation. Disposabl's apps, previews, releases, provider
39
+ connections, GitHub handlers, and service credentials stay in the Disposabl
40
+ backend. Product-generated API bindings, contracts, and SDK operations are not
41
+ copied into new apps.
42
+
43
+ The root `reset.ts` script owns the product-to-starter cleanup. The generator
44
+ runs it only inside its disposable staging copy before packaging. Replacement
45
+ backend files live in `starter/backend`; platform and feature selection still
46
+ happens when the user creates an app.
package/dist/disposabl.js CHANGED
@@ -255,7 +255,7 @@ Sign in to Expo if needed and choose Delete project. Then rerun this command to
255
255
  // ../cli/package.json
256
256
  var package_default = {
257
257
  name: "@disposabl/cli",
258
- version: "0.8.10",
258
+ version: "0.8.12",
259
259
  type: "module",
260
260
  description: "Command-line access to your Disposabl app",
261
261
  license: "MIT",
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8
8
  import { Command, CommanderError } from "commander";
9
9
  import * as p2 from "@clack/prompts";
10
10
  // package.json
11
- var version = "0.8.10";
11
+ var version = "0.8.12";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -328,16 +328,11 @@ async function createApp(template, destination, name, config, overwrite = false)
328
328
  force: true
329
329
  });
330
330
  }
331
- await rm(join(destination, "apps/web/src/router/_authenticated/dashboard.connections.tsx"), { force: true });
332
- const dashboard = join(destination, "apps/web/src/router/_authenticated/dashboard.tsx");
333
- await writeFile(dashboard, (await readFile(dashboard, "utf8")).replace(` <Link to="/dashboard/connections">Connections</Link>
334
- `, ""));
335
331
  if (!config.features.includes("authentication")) {
336
332
  for (const path of [
337
333
  "packages/disposabl-kit/client/routes/_auth-pages",
338
334
  "packages/disposabl-kit/client/routes/consent.tsx",
339
335
  "apps/web/src/router/_authenticated/dashboard.api-keys.tsx",
340
- "apps/web/src/router/_authenticated/dashboard.connections.tsx",
341
336
  "apps/mobile/src/app/(auth)",
342
337
  "apps/mobile/src/app/(authenticated)/account.tsx"
343
338
  ]) {
@@ -18,7 +18,6 @@ function Dashboard() {
18
18
  <main className="mx-auto max-w-xl space-y-4 p-6">
19
19
  <h1 className="text-2xl font-semibold">Dashboard</h1>
20
20
  <nav className="flex gap-4">
21
- <Link to="/dashboard/connections">Connections</Link>
22
21
  {config.platforms.includes("api") && (
23
22
  <Link to="/dashboard/api-keys">API keys</Link>
24
23
  )}
@@ -137,20 +137,14 @@
137
137
  "@convex-dev/auth": "catalog:",
138
138
  "@convex-dev/mcp": "catalog:",
139
139
  "@convex-dev/static-hosting": "catalog:",
140
- "@convex-dev/workflow": "^0.4.10",
141
140
  "@disposabl/disposabl-kit": "workspace:*",
142
- "@octokit/rest": "^22.0.1",
143
- "@vercel/connect": "^2.5.2",
144
- "convex": "catalog:",
145
- "libsodium-wrappers": "^0.8.4",
146
- "node-forge": "^1.4.2"
141
+ "convex": "catalog:"
147
142
  },
148
143
  "devDependencies": {
149
144
  "@convex-dev/eslint-plugin": "^5.0.1",
150
145
  "@eslint/eslintrc": "^3.3.6",
151
146
  "@eslint/js": "^10.0.1",
152
147
  "@types/node": "^24.13.3",
153
- "@types/node-forge": "^1.3.14",
154
148
  "@typescript-eslint/eslint-plugin": "^8.66.0",
155
149
  "@typescript-eslint/parser": "^8.66.0",
156
150
  "@typescript/native": "npm:typescript@^7.0.2",
@@ -1,13 +1,9 @@
1
1
  # Backend
2
2
 
3
- Run `bun run dev` at the workspace root, or `bun run dev` here for Convex alone.
3
+ Fresh apps start with only a `users` table. Authentication, API/MCP access, and static hosting use the shared kit and Convex components. Add your app's tables to `convex/schema.ts` and its operations in feature folders.
4
4
 
5
- `apps`, `previews`, and `appReleases` hold application data. `githubConnections` stores installation bindings; `connections` stores encrypted Convex and Expo credentials. `users` provides authentication identities. App IDs are UUID v4 values; preview references are branch/worktree names, including `main`. Deletion requires explicit confirmation, removes linked cloud resources and previews, and permanently removes the app. A production release prevents deletion.
5
+ Run `bun run dev` at the workspace root. Run `bun run generate` after changing operations to regenerate the API/MCP contract and selected SDK.
6
6
 
7
- `index.ts` resolves the authenticated user for web/mobile. `internal.ts` implements operations; `platforms: true` exposes them through enabled API, MCP, SDK, and CLI platforms. Internal functions validate the supplied `userId`; entry points authenticate it. Internal code checks resource ownership without repeating session checks. Actions live under `actions/`. Put argument/return validators in `validator.ts`, and table definitions in `schema.ts`.
7
+ `index.ts` authenticates web/mobile callers. `internal.ts` implements operations; `platforms: true` exposes them through enabled API/MCP platforms. Put argument and return validators in `validator.ts` and table definitions in `schema.ts`.
8
8
 
9
- Managed setup uses the user's GitHub and Convex connections; Expo is optional. Connect accounts at `/dashboard/connections`. Login works independently. The CLI saves the app UUID before creating cloud resources so setup can resume after a failure.
10
-
11
- The Disposabl service needs `CONVEX_OAUTH_CLIENT_ID`, `CONVEX_OAUTH_CLIENT_SECRET`, and a base64-encoded 32-byte `CONNECTIONS_ENCRYPTION_KEY`. GitHub uses Vercel Connect with `VERCEL_TOKEN`, `VERCEL_PROJECT_ID`, `VERCEL_TEAM_ID`, `GITHUB_CONNECTOR`, and `GITHUB_APP_SLUG`. `CONNECTIONS_ORIGIN` defaults to `https://www.disposabl.dev`. Generated apps do not need these service credentials for normal development.
12
-
13
- Preview token creation reuses a named development deployment and returns a fresh development key. Keys are never stored in application tables. GitHub Actions reports the latest build results through verified OIDC identity. Enabled platforms without a published artifact have no download link.
9
+ Disposabl app provisioning, provider connections, previews, releases, and GitHub reporting run in the Disposabl service. They are not part of this backend.
@@ -8,44 +8,11 @@
8
8
  * @module
9
9
  */
10
10
 
11
- import type * as apps_actions_cleanup from "../apps/actions/cleanup.js";
12
- import type * as apps_actions_create from "../apps/actions/create.js";
13
- import type * as apps_actions_delete from "../apps/actions/delete.js";
14
- import type * as apps_actions_expo from "../apps/actions/expo.js";
15
- import type * as apps_actions_setup from "../apps/actions/setup.js";
16
- import type * as apps_internal from "../apps/internal.js";
17
- import type * as apps_operations_internal from "../apps/operations/internal.js";
18
- import type * as apps_validator from "../apps/validator.js";
19
11
  import type * as auth from "../auth.js";
20
- import type * as connections_actions_credentials from "../connections/actions/credentials.js";
21
- import type * as connections_actions_expo from "../connections/actions/expo.js";
22
- import type * as connections_actions_github from "../connections/actions/github.js";
23
- import type * as connections_actions_oauth from "../connections/actions/oauth.js";
24
- import type * as connections_index from "../connections/index.js";
25
- import type * as connections_internal from "../connections/internal.js";
26
- import type * as connections_validator from "../connections/validator.js";
27
- import type * as downloads_action from "../downloads/action.js";
28
- import type * as downloads_http from "../downloads/http.js";
29
- import type * as downloads_internal from "../downloads/internal.js";
30
- import type * as github_actions_http from "../github/actions/http.js";
31
- import type * as github_actions_internal from "../github/actions/internal.js";
32
- import type * as github_actions_oidc from "../github/actions/oidc.js";
33
- import type * as github_actions_provision from "../github/actions/provision.js";
34
- import type * as github_actions_secrets from "../github/actions/secrets.js";
35
- import type * as github_actions_signing from "../github/actions/signing.js";
36
- import type * as github_actions_tokens from "../github/actions/tokens.js";
37
- import type * as github_identityCache from "../github/identityCache.js";
38
- import type * as github_internal from "../github/internal.js";
39
12
  import type * as http from "../http.js";
40
13
  import type * as mcp from "../mcp.js";
41
- import type * as previews_internal from "../previews/internal.js";
42
- import type * as previews_token_actions_create from "../previews/token/actions/create.js";
43
- import type * as previews_token_actions_management from "../previews/token/actions/management.js";
44
- import type * as previews_token_internal from "../previews/token/internal.js";
45
- import type * as releases_internal from "../releases/internal.js";
46
14
  import type * as users_index from "../users/index.js";
47
15
  import type * as users_internal from "../users/internal.js";
48
- import type * as validator from "../validator.js";
49
16
 
50
17
  import type {
51
18
  ApiFromModules,
@@ -54,44 +21,11 @@ import type {
54
21
  } from "convex/server";
55
22
 
56
23
  declare const fullApi: ApiFromModules<{
57
- "apps/actions/cleanup": typeof apps_actions_cleanup;
58
- "apps/actions/create": typeof apps_actions_create;
59
- "apps/actions/delete": typeof apps_actions_delete;
60
- "apps/actions/expo": typeof apps_actions_expo;
61
- "apps/actions/setup": typeof apps_actions_setup;
62
- "apps/internal": typeof apps_internal;
63
- "apps/operations/internal": typeof apps_operations_internal;
64
- "apps/validator": typeof apps_validator;
65
24
  auth: typeof auth;
66
- "connections/actions/credentials": typeof connections_actions_credentials;
67
- "connections/actions/expo": typeof connections_actions_expo;
68
- "connections/actions/github": typeof connections_actions_github;
69
- "connections/actions/oauth": typeof connections_actions_oauth;
70
- "connections/index": typeof connections_index;
71
- "connections/internal": typeof connections_internal;
72
- "connections/validator": typeof connections_validator;
73
- "downloads/action": typeof downloads_action;
74
- "downloads/http": typeof downloads_http;
75
- "downloads/internal": typeof downloads_internal;
76
- "github/actions/http": typeof github_actions_http;
77
- "github/actions/internal": typeof github_actions_internal;
78
- "github/actions/oidc": typeof github_actions_oidc;
79
- "github/actions/provision": typeof github_actions_provision;
80
- "github/actions/secrets": typeof github_actions_secrets;
81
- "github/actions/signing": typeof github_actions_signing;
82
- "github/actions/tokens": typeof github_actions_tokens;
83
- "github/identityCache": typeof github_identityCache;
84
- "github/internal": typeof github_internal;
85
25
  http: typeof http;
86
26
  mcp: typeof mcp;
87
- "previews/internal": typeof previews_internal;
88
- "previews/token/actions/create": typeof previews_token_actions_create;
89
- "previews/token/actions/management": typeof previews_token_actions_management;
90
- "previews/token/internal": typeof previews_token_internal;
91
- "releases/internal": typeof releases_internal;
92
27
  "users/index": typeof users_index;
93
28
  "users/internal": typeof users_internal;
94
- validator: typeof validator;
95
29
  }>;
96
30
 
97
31
  /**
@@ -126,5 +60,4 @@ export declare const components: {
126
60
  authUsername: import("@convex-dev/auth/components/username/_generated/component.js").ComponentApi<"authUsername">;
127
61
  staticHosting: import("@convex-dev/static-hosting/_generated/component.js").ComponentApi<"staticHosting">;
128
62
  mcp: import("@convex-dev/mcp/_generated/component.js").ComponentApi<"mcp">;
129
- workflow: import("@convex-dev/workflow/_generated/component.js").ComponentApi<"workflow">;
130
63
  };
@@ -32,15 +32,6 @@ type Env = {
32
32
  readonly CONVEX_SITE_URL: string;
33
33
  readonly AUTH_JWKS: string;
34
34
  readonly AUTH_PRIVATE_KEY: string;
35
- readonly CONNECTIONS_ENCRYPTION_KEY: string | undefined;
36
- readonly CONNECTIONS_ORIGIN: string | undefined;
37
- readonly CONVEX_OAUTH_CLIENT_ID: string | undefined;
38
- readonly CONVEX_OAUTH_CLIENT_SECRET: string | undefined;
39
- readonly GITHUB_APP_SLUG: string | undefined;
40
- readonly GITHUB_CONNECTOR: string | undefined;
41
- readonly VERCEL_PROJECT_ID: string | undefined;
42
- readonly VERCEL_TEAM_ID: string | undefined;
43
- readonly VERCEL_TOKEN: string | undefined;
44
35
  };
45
36
 
46
37
  /**
@@ -3,7 +3,6 @@ import username from "@convex-dev/auth/components/username/convex.config.js";
3
3
  import auth from "@convex-dev/auth/convex.config.js";
4
4
  import mcp from "@convex-dev/mcp/convex.config.js";
5
5
  import staticHosting from "@convex-dev/static-hosting/convex.config";
6
- import workflow from "@convex-dev/workflow/convex.config";
7
6
  import { defineApp } from "convex/server";
8
7
  import { v } from "convex/values";
9
8
 
@@ -11,15 +10,6 @@ const app = defineApp({
11
10
  env: {
12
11
  AUTH_PRIVATE_KEY: v.string(),
13
12
  AUTH_JWKS: v.string(),
14
- CONVEX_OAUTH_CLIENT_ID: v.optional(v.string()),
15
- CONVEX_OAUTH_CLIENT_SECRET: v.optional(v.string()),
16
- GITHUB_APP_SLUG: v.optional(v.string()),
17
- CONNECTIONS_ENCRYPTION_KEY: v.optional(v.string()),
18
- CONNECTIONS_ORIGIN: v.optional(v.string()),
19
- VERCEL_TOKEN: v.optional(v.string()),
20
- VERCEL_PROJECT_ID: v.optional(v.string()),
21
- VERCEL_TEAM_ID: v.optional(v.string()),
22
- GITHUB_CONNECTOR: v.optional(v.string()),
23
13
  },
24
14
  });
25
15
 
@@ -34,6 +24,5 @@ app.use(passwordProvider);
34
24
  app.use(username);
35
25
  app.use(staticHosting);
36
26
  app.use(mcp);
37
- app.use(workflow);
38
27
 
39
28
  export default app;
@@ -1,11 +1,3 @@
1
- import { download } from "./downloads/http";
2
- import { token, report } from "./github/actions/http";
3
1
  import createHttpRouter from "@disposabl/disposabl-kit/server/http";
4
2
 
5
- const http = createHttpRouter();
6
- http.route({ path: "/github/token", method: "POST", handler: token });
7
- http.route({ path: "/github/report", method: "POST", handler: report });
8
-
9
- http.route({ pathPrefix: "/downloads/", method: "GET", handler: download });
10
-
11
- export default http;
3
+ export default createHttpRouter();
@@ -1,74 +1,5 @@
1
1
  import { defineSchema, defineTable } from "convex/server";
2
- import { v } from "convex/values";
3
- import { pendingDelete } from "./apps/validator";
4
- import { deployment, platform, releases } from "./validator";
5
2
 
6
3
  export default defineSchema({
7
- serviceIdentities: defineTable({
8
- key: v.string(),
9
- token: v.optional(v.string()),
10
- expiresAt: v.number(),
11
- refreshAfter: v.number(),
12
- lease: v.optional(v.string()),
13
- }).index("by_key", ["key"]),
14
- users: defineTable({
15
- connectionState: v.optional(
16
- v.object({
17
- provider: v.union(v.literal("github"), v.literal("convex")),
18
- hash: v.string(),
19
- verifier: v.string(),
20
- expiresAt: v.number(),
21
- }),
22
- ),
23
- }),
24
- connections: defineTable({
25
- userId: v.string(),
26
- provider: v.union(v.literal("convex"), v.literal("expo")),
27
- accountId: v.string(),
28
- name: v.string(),
29
- token: v.string(),
30
- }).index("by_userId_provider", ["userId", "provider"]),
31
- apps: defineTable({
32
- appId: v.string(),
33
- userId: v.string(),
34
- name: v.string(),
35
- platforms: v.array(platform),
36
- githubOwner: v.optional(v.string()),
37
- githubRepo: v.optional(v.string()),
38
- convexProjectId: v.optional(v.number()),
39
- expoProjectId: v.optional(v.string()),
40
- expoAccountId: v.optional(v.union(v.string(), v.null())),
41
- operation: v.optional(
42
- v.object({
43
- kind: v.union(v.literal("setup"), v.literal("delete")),
44
- until: v.number(),
45
- pending: v.optional(pendingDelete),
46
- expoManual: v.optional(v.boolean()),
47
- }),
48
- ),
49
- })
50
- .index("by_appId", ["appId"])
51
- .index("by_userId", ["userId"]),
52
- previews: defineTable({
53
- appId: v.string(),
54
- reference: v.string(),
55
- stage: v.union(v.literal("generating"), v.literal("building")),
56
- deployment: v.optional(deployment),
57
- releases,
58
- updatedAt: v.number(),
59
- }).index("by_appId_reference", ["appId", "reference"]),
60
- appReleases: defineTable({
61
- appId: v.string(),
62
- releases,
63
- updatedAt: v.number(),
64
- }).index("by_appId", ["appId"]),
65
- githubConnections: defineTable({
66
- userId: v.string(),
67
- owner: v.string(),
68
- installationId: v.string(),
69
- })
70
- // Latest connection uses creation order; owner lookup uses the compound index.
71
- // eslint-disable-next-line @convex-dev/no-duplicate-indexes
72
- .index("by_userId", ["userId"])
73
- .index("by_userId_owner", ["userId", "owner"]),
4
+ users: defineTable({}),
74
5
  });