@xemahq/webapp-studio-api-client 0.1.1

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 (96) hide show
  1. package/LICENSE +1 -0
  2. package/dist/custom-fetch.d.ts +49 -0
  3. package/dist/custom-fetch.js +147 -0
  4. package/dist/endpoints/app-databases/app-databases.d.ts +28 -0
  5. package/dist/endpoints/app-databases/app-databases.js +64 -0
  6. package/dist/endpoints/health/health.d.ts +15 -0
  7. package/dist/endpoints/health/health.js +53 -0
  8. package/dist/endpoints/internal/internal.d.ts +30 -0
  9. package/dist/endpoints/internal/internal.js +68 -0
  10. package/dist/endpoints/studio/studio.d.ts +53 -0
  11. package/dist/endpoints/studio/studio.js +157 -0
  12. package/dist/index.d.ts +6 -0
  13. package/dist/index.js +28 -0
  14. package/dist/models/appDbResponseDto.d.ts +34 -0
  15. package/dist/models/appDbResponseDto.js +2 -0
  16. package/dist/models/appDbsResponseDto.d.ts +16 -0
  17. package/dist/models/appDbsResponseDto.js +2 -0
  18. package/dist/models/appTargetDto.d.ts +26 -0
  19. package/dist/models/appTargetDto.js +2 -0
  20. package/dist/models/createStudioDto.d.ts +36 -0
  21. package/dist/models/createStudioDto.js +2 -0
  22. package/dist/models/detectFrameworksDto.d.ts +13 -0
  23. package/dist/models/detectFrameworksDto.js +9 -0
  24. package/dist/models/detectFrameworksResponseDto.d.ts +22 -0
  25. package/dist/models/detectFrameworksResponseDto.js +2 -0
  26. package/dist/models/detectFrameworksResponseDtoInaccessibleReason.d.ts +14 -0
  27. package/dist/models/detectFrameworksResponseDtoInaccessibleReason.js +9 -0
  28. package/dist/models/index.d.ts +40 -0
  29. package/dist/models/index.js +57 -0
  30. package/dist/models/internalBiomeCleanupRequestDto.d.ts +25 -0
  31. package/dist/models/internalBiomeCleanupRequestDto.js +9 -0
  32. package/dist/models/internalBiomeCleanupResponseDto.d.ts +11 -0
  33. package/dist/models/internalBiomeCleanupResponseDto.js +9 -0
  34. package/dist/models/migrateAppDbDto.d.ts +15 -0
  35. package/dist/models/migrateAppDbDto.js +9 -0
  36. package/dist/models/migrateAppDbResponseDto.d.ts +14 -0
  37. package/dist/models/migrateAppDbResponseDto.js +2 -0
  38. package/dist/models/migrationRunnerKind.d.ts +17 -0
  39. package/dist/models/migrationRunnerKind.js +16 -0
  40. package/dist/models/openPrResponseDto.d.ts +15 -0
  41. package/dist/models/openPrResponseDto.js +9 -0
  42. package/dist/models/orgDatabasePurpose.d.ts +17 -0
  43. package/dist/models/orgDatabasePurpose.js +16 -0
  44. package/dist/models/orgDatabaseStatus.d.ts +18 -0
  45. package/dist/models/orgDatabaseStatus.js +17 -0
  46. package/dist/models/patchStudioAppsDto.d.ts +16 -0
  47. package/dist/models/patchStudioAppsDto.js +2 -0
  48. package/dist/models/projectKitAuthInputDto.d.ts +13 -0
  49. package/dist/models/projectKitAuthInputDto.js +9 -0
  50. package/dist/models/projectKitBindingDto.d.ts +23 -0
  51. package/dist/models/projectKitBindingDto.js +2 -0
  52. package/dist/models/projectKitBindingKind.d.ts +15 -0
  53. package/dist/models/projectKitBindingKind.js +14 -0
  54. package/dist/models/projectKitKind.d.ts +15 -0
  55. package/dist/models/projectKitKind.js +14 -0
  56. package/dist/models/projectKitPurpose.d.ts +15 -0
  57. package/dist/models/projectKitPurpose.js +14 -0
  58. package/dist/models/projectKitSourceInputDto.d.ts +27 -0
  59. package/dist/models/projectKitSourceInputDto.js +2 -0
  60. package/dist/models/projectKitSourceKind.d.ts +16 -0
  61. package/dist/models/projectKitSourceKind.js +15 -0
  62. package/dist/models/promoteToProdDto.d.ts +17 -0
  63. package/dist/models/promoteToProdDto.js +9 -0
  64. package/dist/models/promoteToProdResponseDto.d.ts +16 -0
  65. package/dist/models/promoteToProdResponseDto.js +2 -0
  66. package/dist/models/studioControllerListParams.d.ts +32 -0
  67. package/dist/models/studioControllerListParams.js +2 -0
  68. package/dist/models/studioProvisioningFailRequestDto.d.ts +18 -0
  69. package/dist/models/studioProvisioningFailRequestDto.js +2 -0
  70. package/dist/models/studioProvisioningFailRequestDtoActorType.d.ts +16 -0
  71. package/dist/models/studioProvisioningFailRequestDtoActorType.js +15 -0
  72. package/dist/models/studioProvisioningStepRequestDto.d.ts +16 -0
  73. package/dist/models/studioProvisioningStepRequestDto.js +2 -0
  74. package/dist/models/studioProvisioningStepRequestDtoActorType.d.ts +16 -0
  75. package/dist/models/studioProvisioningStepRequestDtoActorType.js +15 -0
  76. package/dist/models/studioResponseDto.d.ts +57 -0
  77. package/dist/models/studioResponseDto.js +2 -0
  78. package/dist/models/studioResponseDtoAgentSlug.d.ts +14 -0
  79. package/dist/models/studioResponseDtoAgentSlug.js +9 -0
  80. package/dist/models/studioResponseDtoDescription.d.ts +13 -0
  81. package/dist/models/studioResponseDtoDescription.js +9 -0
  82. package/dist/models/studioResponseDtoFailureReason.d.ts +14 -0
  83. package/dist/models/studioResponseDtoFailureReason.js +9 -0
  84. package/dist/models/studioResponseDtoLatestPrUrl.d.ts +14 -0
  85. package/dist/models/studioResponseDtoLatestPrUrl.js +9 -0
  86. package/dist/models/studioResponseDtoSessionId.d.ts +14 -0
  87. package/dist/models/studioResponseDtoSessionId.js +9 -0
  88. package/dist/models/updateStudioDto.d.ts +21 -0
  89. package/dist/models/updateStudioDto.js +9 -0
  90. package/dist/models/webappDetectState.d.ts +13 -0
  91. package/dist/models/webappDetectState.js +15 -0
  92. package/dist/models/webappKind.d.ts +15 -0
  93. package/dist/models/webappKind.js +14 -0
  94. package/dist/models/webappStudioStatus.d.ts +13 -0
  95. package/dist/models/webappStudioStatus.js +15 -0
  96. package/package.json +18 -0
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.studioControllerOpenPr = exports.getStudioControllerOpenPrUrl = exports.studioControllerRestart = exports.getStudioControllerRestartUrl = exports.studioControllerPatchApps = exports.getStudioControllerPatchAppsUrl = exports.studioControllerArchive = exports.getStudioControllerArchiveUrl = exports.studioControllerUpdate = exports.getStudioControllerUpdateUrl = exports.studioControllerGetById = exports.getStudioControllerGetByIdUrl = exports.studioControllerList = exports.getStudioControllerListUrl = exports.studioControllerCreate = exports.getStudioControllerCreateUrl = exports.studioControllerDetect = exports.getStudioControllerDetectUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary Probe a repo subfolder for a recognised webapp framework. Used by the create dialog to detect mismatches between the user-chosen `kind` and what already lives in the repo. Read-only and safe to call from a debounced input.
7
+ */
8
+ const getStudioControllerDetectUrl = () => {
9
+ return `/studio/detect`;
10
+ };
11
+ exports.getStudioControllerDetectUrl = getStudioControllerDetectUrl;
12
+ const studioControllerDetect = async (detectFrameworksDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerDetectUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(detectFrameworksDto)
18
+ });
19
+ };
20
+ exports.studioControllerDetect = studioControllerDetect;
21
+ /**
22
+ * @summary Create a webapp studio session + provision its interactive agent
23
+ */
24
+ const getStudioControllerCreateUrl = () => {
25
+ return `/studio`;
26
+ };
27
+ exports.getStudioControllerCreateUrl = getStudioControllerCreateUrl;
28
+ const studioControllerCreate = async (createStudioDto, options) => {
29
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerCreateUrl)(), {
30
+ ...options,
31
+ method: 'POST',
32
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
33
+ body: JSON.stringify(createStudioDto)
34
+ });
35
+ };
36
+ exports.studioControllerCreate = studioControllerCreate;
37
+ /**
38
+ * @summary List studio sessions
39
+ */
40
+ const getStudioControllerListUrl = (params) => {
41
+ const normalizedParams = new URLSearchParams();
42
+ Object.entries(params || {}).forEach(([key, value]) => {
43
+ if (value === undefined)
44
+ return;
45
+ if (value === null) {
46
+ normalizedParams.append(key, 'null');
47
+ return;
48
+ }
49
+ if (Array.isArray(value)) {
50
+ for (const item of value) {
51
+ if (item === undefined || item === null)
52
+ continue;
53
+ normalizedParams.append(key, item.toString());
54
+ }
55
+ return;
56
+ }
57
+ normalizedParams.append(key, value.toString());
58
+ });
59
+ const stringifiedParams = normalizedParams.toString();
60
+ return stringifiedParams.length > 0 ? `/studio?${stringifiedParams}` : `/studio`;
61
+ };
62
+ exports.getStudioControllerListUrl = getStudioControllerListUrl;
63
+ const studioControllerList = async (params, options) => {
64
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerListUrl)(params), {
65
+ ...options,
66
+ method: 'GET'
67
+ });
68
+ };
69
+ exports.studioControllerList = studioControllerList;
70
+ /**
71
+ * @summary Get a studio session by id
72
+ */
73
+ const getStudioControllerGetByIdUrl = (id) => {
74
+ return `/studio/${id}`;
75
+ };
76
+ exports.getStudioControllerGetByIdUrl = getStudioControllerGetByIdUrl;
77
+ const studioControllerGetById = async (id, options) => {
78
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerGetByIdUrl)(id), {
79
+ ...options,
80
+ method: 'GET'
81
+ });
82
+ };
83
+ exports.studioControllerGetById = studioControllerGetById;
84
+ /**
85
+ * @summary Update studio metadata (title, description, agent override).
86
+ */
87
+ const getStudioControllerUpdateUrl = (id) => {
88
+ return `/studio/${id}`;
89
+ };
90
+ exports.getStudioControllerUpdateUrl = getStudioControllerUpdateUrl;
91
+ const studioControllerUpdate = async (id, updateStudioDto, options) => {
92
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerUpdateUrl)(id), {
93
+ ...options,
94
+ method: 'PATCH',
95
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
96
+ body: JSON.stringify(updateStudioDto)
97
+ });
98
+ };
99
+ exports.studioControllerUpdate = studioControllerUpdate;
100
+ /**
101
+ * @summary Archive a studio (terminates the interactive session). Does NOT delete the long-lived `xema/webapp/<projectId>` working branch on the SCM remote — other sessions may target the same branch. Idempotent.
102
+ */
103
+ const getStudioControllerArchiveUrl = (id) => {
104
+ return `/studio/${id}`;
105
+ };
106
+ exports.getStudioControllerArchiveUrl = getStudioControllerArchiveUrl;
107
+ const studioControllerArchive = async (id, options) => {
108
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerArchiveUrl)(id), {
109
+ ...options,
110
+ method: 'DELETE'
111
+ });
112
+ };
113
+ exports.studioControllerArchive = studioControllerArchive;
114
+ /**
115
+ * @summary Replace the studio app-target list. The supervisor picks up the new list on the next watcher rescan. Refuses on ARCHIVED studios.
116
+ */
117
+ const getStudioControllerPatchAppsUrl = (id) => {
118
+ return `/studio/${id}/apps`;
119
+ };
120
+ exports.getStudioControllerPatchAppsUrl = getStudioControllerPatchAppsUrl;
121
+ const studioControllerPatchApps = async (id, patchStudioAppsDto, options) => {
122
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerPatchAppsUrl)(id), {
123
+ ...options,
124
+ method: 'PATCH',
125
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
126
+ body: JSON.stringify(patchStudioAppsDto)
127
+ });
128
+ };
129
+ exports.studioControllerPatchApps = studioControllerPatchApps;
130
+ /**
131
+ * @summary Provision a fresh interactive session for this studio. Reuses the studio identity, working branch, and app-target list. The previous session is terminated; its id is captured in `previousSessionIds` for audit.
132
+ */
133
+ const getStudioControllerRestartUrl = (id) => {
134
+ return `/studio/${id}/restart`;
135
+ };
136
+ exports.getStudioControllerRestartUrl = getStudioControllerRestartUrl;
137
+ const studioControllerRestart = async (id, options) => {
138
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerRestartUrl)(id), {
139
+ ...options,
140
+ method: 'POST'
141
+ });
142
+ };
143
+ exports.studioControllerRestart = studioControllerRestart;
144
+ /**
145
+ * @summary Open (or refresh) a PR from the studio working branch against the repo default branch. Idempotent — calling when a PR is already open returns its URL without creating a duplicate.
146
+ */
147
+ const getStudioControllerOpenPrUrl = (id) => {
148
+ return `/studio/${id}/open-pr`;
149
+ };
150
+ exports.getStudioControllerOpenPrUrl = getStudioControllerOpenPrUrl;
151
+ const studioControllerOpenPr = async (id, options) => {
152
+ return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerOpenPrUrl)(id), {
153
+ ...options,
154
+ method: 'POST'
155
+ });
156
+ };
157
+ exports.studioControllerOpenPr = studioControllerOpenPr;
@@ -0,0 +1,6 @@
1
+ export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
2
+ export * from './models';
3
+ export * from './endpoints/app-databases/app-databases';
4
+ export * from './endpoints/health/health';
5
+ export * from './endpoints/internal/internal';
6
+ export * from './endpoints/studio/studio';
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
18
+ // Auto-generated by scripts/build-client-index.js — do not edit manually.
19
+ var custom_fetch_1 = require("./custom-fetch");
20
+ Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
21
+ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
22
+ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
23
+ Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
+ __exportStar(require("./models"), exports);
25
+ __exportStar(require("./endpoints/app-databases/app-databases"), exports);
26
+ __exportStar(require("./endpoints/health/health"), exports);
27
+ __exportStar(require("./endpoints/internal/internal"), exports);
28
+ __exportStar(require("./endpoints/studio/studio"), exports);
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MigrationRunnerKind } from './migrationRunnerKind';
9
+ import type { OrgDatabasePurpose } from './orgDatabasePurpose';
10
+ import type { OrgDatabaseStatus } from './orgDatabaseStatus';
11
+ export interface AppDbResponseDto {
12
+ /** org-database-pool-api database id (ULID). */
13
+ id: string;
14
+ /** Owning org id. */
15
+ orgId: string;
16
+ /** Pool the database lives on. Threaded through unchanged from org-database-pool-api. */
17
+ poolId: string;
18
+ /** Physical database name on the pool host. */
19
+ databaseName: string;
20
+ /** Schema inside the database that the app reads/writes. */
21
+ schemaName: string;
22
+ /** Purpose tag the pool stamped at provision time. `app_dev` for the studio dev DB, `app_prod` for the promoted prod DB. */
23
+ purpose: OrgDatabasePurpose;
24
+ /** Provisioning lifecycle state. */
25
+ status: OrgDatabaseStatus;
26
+ /** Migration runner this app uses (Prisma for v1). */
27
+ runnerKind: MigrationRunnerKind;
28
+ /** Human-readable failure reason when `status = failed`. */
29
+ failureReason?: string;
30
+ /** Row creation timestamp (ISO-8601). */
31
+ createdAt: string;
32
+ /** Last-mutation timestamp (ISO-8601). */
33
+ updatedAt: string;
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AppDbResponseDto } from './appDbResponseDto';
9
+ export interface AppDbsResponseDto {
10
+ /** The app slug these databases belong to. */
11
+ appSlug: string;
12
+ /** Dev environment DB. */
13
+ dev: AppDbResponseDto;
14
+ /** Prod environment DB. Null until the user promotes the app to prod for the first time. */
15
+ prod?: AppDbResponseDto;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { WebappKind } from './webappKind';
9
+ export interface AppTargetDto {
10
+ /**
11
+ * Studio app slug — unique per studio, kebab-case. Becomes the `name` in `.xema/preview.yaml` and the tab label in the FE preview pane.
12
+ * @minLength 1
13
+ * @maxLength 64
14
+ */
15
+ slug: string;
16
+ /**
17
+ * Path relative to the repo root where this webapp lives. `.` for repo root; `apps/web` etc. for monorepo layouts.
18
+ * @minLength 1
19
+ * @maxLength 256
20
+ */
21
+ workingDir: string;
22
+ /** Framework kind for this app target. Drives the scaffolder (create-next-app vs `npm create vite`). Closed set. */
23
+ kind: WebappKind;
24
+ /** Optional dev-server port override. Omit to let the preview supervisor allocate dynamically. */
25
+ port?: number;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AppTargetDto } from './appTargetDto';
9
+ import type { ProjectKitBindingDto } from './projectKitBindingDto';
10
+ export interface CreateStudioDto {
11
+ /**
12
+ * @minLength 1
13
+ * @maxLength 200
14
+ */
15
+ title: string;
16
+ /** @maxLength 4000 */
17
+ description?: string;
18
+ /**
19
+ * Repo identifier the studio session will mount read-write. Format is `<owner>/<repo>` (e.g. `acme/web`) — matches `repoFullName` on `project-registry-api`’s `ProjectRepo` AND `repoRef` on the AWP composer / connector-gateway-api. The service validates this repo belongs to the request project before provisioning.
20
+ * @minLength 3
21
+ * @maxLength 256
22
+ */
23
+ repoRef: string;
24
+ /** Optional list of Next.js app targets inside the repo. Defaults to `[{ slug: "web", workingDir: "." }]` when omitted. Multi-app monorepos pass multiple entries; the preview pane renders one tab per entry. */
25
+ appTargets?: AppTargetDto[];
26
+ /**
27
+ * Project Kits to install into the repo at session start. Each entry is either a `catalog` binding (a slug from llm-registry-api `GET /project-kits`) or a `custom` binding (an inline npm/git source the user supplied — optionally wallet-backed for a private source). For a new (empty) repo the FE pre-selects the catalog kits whose `defaultForTargets` match the app kind; for an existing repo nothing is pre-selected (opt-in). Omit / empty = no kits.
28
+ * @maxItems 20
29
+ */
30
+ projectKits?: ProjectKitBindingDto[];
31
+ /**
32
+ * Primary-agent slug to drive the studio session. Must belong to the `webapp-studio` biome — the override is rejected with 400 otherwise. Omit to fall back to the workspace manifest default (`webapp-coordinator`).
33
+ * @maxLength 200
34
+ */
35
+ agentSlug?: string;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface DetectFrameworksDto {
9
+ /** `<owner>/<repo>` shape. Must match a `ProjectRepo` on the request project — the service rejects unknown repos with 400. */
10
+ repoRef: string;
11
+ /** Subfolder to inspect. Defaults to `.` (repo root). Use `apps/web` etc. to probe a monorepo sibling. */
12
+ workingDir?: string;
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { DetectFrameworksResponseDtoInaccessibleReason } from './detectFrameworksResponseDtoInaccessibleReason';
9
+ import type { WebappDetectState } from './webappDetectState';
10
+ import type { WebappKind } from './webappKind';
11
+ export interface DetectFrameworksResponseDto {
12
+ state: WebappDetectState;
13
+ /** Inferred framework when `state==="ready"` and the package.json matches a known kind. Null when the directory has a package.json but no recognised framework (likely a backend or library). */
14
+ detectedKind?: WebappKind | null;
15
+ /**
16
+ * When `state==="inaccessible"`, the upstream reason from connector-gateway-api so the FE can render a useful message.
17
+ * @nullable
18
+ */
19
+ inaccessibleReason?: DetectFrameworksResponseDtoInaccessibleReason;
20
+ /** When `state==="ready"`, the suggested subfolder name to scaffold into if the user picks the scaffold-subfolder mismatch resolution. Heuristic: 'apps/web' if 'apps/' is conventional in this repo, else 'web'. FE may override. */
21
+ suggestedSubfolder?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * When `state==="inaccessible"`, the upstream reason from connector-gateway-api so the FE can render a useful message.
10
+ * @nullable
11
+ */
12
+ export type DetectFrameworksResponseDtoInaccessibleReason = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ export * from './appDbResponseDto';
2
+ export * from './appDbsResponseDto';
3
+ export * from './appTargetDto';
4
+ export * from './createStudioDto';
5
+ export * from './detectFrameworksDto';
6
+ export * from './detectFrameworksResponseDto';
7
+ export * from './detectFrameworksResponseDtoInaccessibleReason';
8
+ export * from './internalBiomeCleanupRequestDto';
9
+ export * from './internalBiomeCleanupResponseDto';
10
+ export * from './migrateAppDbDto';
11
+ export * from './migrateAppDbResponseDto';
12
+ export * from './migrationRunnerKind';
13
+ export * from './openPrResponseDto';
14
+ export * from './orgDatabasePurpose';
15
+ export * from './orgDatabaseStatus';
16
+ export * from './patchStudioAppsDto';
17
+ export * from './projectKitAuthInputDto';
18
+ export * from './projectKitBindingDto';
19
+ export * from './projectKitBindingKind';
20
+ export * from './projectKitKind';
21
+ export * from './projectKitPurpose';
22
+ export * from './projectKitSourceInputDto';
23
+ export * from './projectKitSourceKind';
24
+ export * from './promoteToProdDto';
25
+ export * from './promoteToProdResponseDto';
26
+ export * from './studioControllerListParams';
27
+ export * from './studioProvisioningFailRequestDto';
28
+ export * from './studioProvisioningFailRequestDtoActorType';
29
+ export * from './studioProvisioningStepRequestDto';
30
+ export * from './studioProvisioningStepRequestDtoActorType';
31
+ export * from './studioResponseDto';
32
+ export * from './studioResponseDtoAgentSlug';
33
+ export * from './studioResponseDtoDescription';
34
+ export * from './studioResponseDtoFailureReason';
35
+ export * from './studioResponseDtoLatestPrUrl';
36
+ export * from './studioResponseDtoSessionId';
37
+ export * from './updateStudioDto';
38
+ export * from './webappDetectState';
39
+ export * from './webappKind';
40
+ export * from './webappStudioStatus';
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
+ __exportStar(require("./appDbResponseDto"), exports);
19
+ __exportStar(require("./appDbsResponseDto"), exports);
20
+ __exportStar(require("./appTargetDto"), exports);
21
+ __exportStar(require("./createStudioDto"), exports);
22
+ __exportStar(require("./detectFrameworksDto"), exports);
23
+ __exportStar(require("./detectFrameworksResponseDto"), exports);
24
+ __exportStar(require("./detectFrameworksResponseDtoInaccessibleReason"), exports);
25
+ __exportStar(require("./internalBiomeCleanupRequestDto"), exports);
26
+ __exportStar(require("./internalBiomeCleanupResponseDto"), exports);
27
+ __exportStar(require("./migrateAppDbDto"), exports);
28
+ __exportStar(require("./migrateAppDbResponseDto"), exports);
29
+ __exportStar(require("./migrationRunnerKind"), exports);
30
+ __exportStar(require("./openPrResponseDto"), exports);
31
+ __exportStar(require("./orgDatabasePurpose"), exports);
32
+ __exportStar(require("./orgDatabaseStatus"), exports);
33
+ __exportStar(require("./patchStudioAppsDto"), exports);
34
+ __exportStar(require("./projectKitAuthInputDto"), exports);
35
+ __exportStar(require("./projectKitBindingDto"), exports);
36
+ __exportStar(require("./projectKitBindingKind"), exports);
37
+ __exportStar(require("./projectKitKind"), exports);
38
+ __exportStar(require("./projectKitPurpose"), exports);
39
+ __exportStar(require("./projectKitSourceInputDto"), exports);
40
+ __exportStar(require("./projectKitSourceKind"), exports);
41
+ __exportStar(require("./promoteToProdDto"), exports);
42
+ __exportStar(require("./promoteToProdResponseDto"), exports);
43
+ __exportStar(require("./studioControllerListParams"), exports);
44
+ __exportStar(require("./studioProvisioningFailRequestDto"), exports);
45
+ __exportStar(require("./studioProvisioningFailRequestDtoActorType"), exports);
46
+ __exportStar(require("./studioProvisioningStepRequestDto"), exports);
47
+ __exportStar(require("./studioProvisioningStepRequestDtoActorType"), exports);
48
+ __exportStar(require("./studioResponseDto"), exports);
49
+ __exportStar(require("./studioResponseDtoAgentSlug"), exports);
50
+ __exportStar(require("./studioResponseDtoDescription"), exports);
51
+ __exportStar(require("./studioResponseDtoFailureReason"), exports);
52
+ __exportStar(require("./studioResponseDtoLatestPrUrl"), exports);
53
+ __exportStar(require("./studioResponseDtoSessionId"), exports);
54
+ __exportStar(require("./updateStudioDto"), exports);
55
+ __exportStar(require("./webappDetectState"), exports);
56
+ __exportStar(require("./webappKind"), exports);
57
+ __exportStar(require("./webappStudioStatus"), exports);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface InternalBiomeCleanupRequestDto {
9
+ /** Owning org id. */
10
+ orgId: string;
11
+ /** Owning project id. */
12
+ projectId: string;
13
+ /** Biome id of the uninstalled installation. */
14
+ biomeId: string;
15
+ /** Installation id of the deleted row. */
16
+ installationId: string;
17
+ /** Biome version that was installed. */
18
+ version: string;
19
+ /** Whether a sidecar / HttpApi workload was associated with the installation. */
20
+ hadWorkload: boolean;
21
+ /** Actor who triggered the uninstall. */
22
+ actorId: string;
23
+ /** Correlation id stamped on every downstream cleanup call. */
24
+ correlationId: string;
25
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface InternalBiomeCleanupResponseDto {
9
+ /** Number of webapp_studios rows archived. Zero when the uninstall is for a different biome id (this service only acts on its own). */
10
+ cleanedCount: number;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface MigrateAppDbDto {
9
+ /**
10
+ * Workspace directory on the worker filesystem that contains the app’s Prisma schema + migrations folder. Threaded through unchanged to org-database-pool-api.
11
+ * @minLength 1
12
+ * @maxLength 1024
13
+ */
14
+ workspaceDir: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AppDbResponseDto } from './appDbResponseDto';
9
+ export interface MigrateAppDbResponseDto {
10
+ /** org-database-pool-api migration-run id (ULID). */
11
+ migrationRunId: string;
12
+ /** The dev database row at the moment the run was triggered. */
13
+ dev: AppDbResponseDto;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Webapp Studio API
5
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Migration runner this app uses (Prisma for v1).
10
+ */
11
+ export type MigrationRunnerKind = typeof MigrationRunnerKind[keyof typeof MigrationRunnerKind];
12
+ export declare const MigrationRunnerKind: {
13
+ readonly prisma: "prisma";
14
+ readonly drizzle: "drizzle";
15
+ readonly flyway: "flyway";
16
+ readonly raw_sql: "raw_sql";
17
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Webapp Studio API
6
+ * Studio session CRUD + lifecycle + PR-from-working-branch handoff
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MigrationRunnerKind = void 0;
11
+ exports.MigrationRunnerKind = {
12
+ prisma: 'prisma',
13
+ drizzle: 'drizzle',
14
+ flyway: 'flyway',
15
+ raw_sql: 'raw_sql',
16
+ };