@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.
- package/LICENSE +1 -0
- package/dist/custom-fetch.d.ts +49 -0
- package/dist/custom-fetch.js +147 -0
- package/dist/endpoints/app-databases/app-databases.d.ts +28 -0
- package/dist/endpoints/app-databases/app-databases.js +64 -0
- package/dist/endpoints/health/health.d.ts +15 -0
- package/dist/endpoints/health/health.js +53 -0
- package/dist/endpoints/internal/internal.d.ts +30 -0
- package/dist/endpoints/internal/internal.js +68 -0
- package/dist/endpoints/studio/studio.d.ts +53 -0
- package/dist/endpoints/studio/studio.js +157 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +28 -0
- package/dist/models/appDbResponseDto.d.ts +34 -0
- package/dist/models/appDbResponseDto.js +2 -0
- package/dist/models/appDbsResponseDto.d.ts +16 -0
- package/dist/models/appDbsResponseDto.js +2 -0
- package/dist/models/appTargetDto.d.ts +26 -0
- package/dist/models/appTargetDto.js +2 -0
- package/dist/models/createStudioDto.d.ts +36 -0
- package/dist/models/createStudioDto.js +2 -0
- package/dist/models/detectFrameworksDto.d.ts +13 -0
- package/dist/models/detectFrameworksDto.js +9 -0
- package/dist/models/detectFrameworksResponseDto.d.ts +22 -0
- package/dist/models/detectFrameworksResponseDto.js +2 -0
- package/dist/models/detectFrameworksResponseDtoInaccessibleReason.d.ts +14 -0
- package/dist/models/detectFrameworksResponseDtoInaccessibleReason.js +9 -0
- package/dist/models/index.d.ts +40 -0
- package/dist/models/index.js +57 -0
- package/dist/models/internalBiomeCleanupRequestDto.d.ts +25 -0
- package/dist/models/internalBiomeCleanupRequestDto.js +9 -0
- package/dist/models/internalBiomeCleanupResponseDto.d.ts +11 -0
- package/dist/models/internalBiomeCleanupResponseDto.js +9 -0
- package/dist/models/migrateAppDbDto.d.ts +15 -0
- package/dist/models/migrateAppDbDto.js +9 -0
- package/dist/models/migrateAppDbResponseDto.d.ts +14 -0
- package/dist/models/migrateAppDbResponseDto.js +2 -0
- package/dist/models/migrationRunnerKind.d.ts +17 -0
- package/dist/models/migrationRunnerKind.js +16 -0
- package/dist/models/openPrResponseDto.d.ts +15 -0
- package/dist/models/openPrResponseDto.js +9 -0
- package/dist/models/orgDatabasePurpose.d.ts +17 -0
- package/dist/models/orgDatabasePurpose.js +16 -0
- package/dist/models/orgDatabaseStatus.d.ts +18 -0
- package/dist/models/orgDatabaseStatus.js +17 -0
- package/dist/models/patchStudioAppsDto.d.ts +16 -0
- package/dist/models/patchStudioAppsDto.js +2 -0
- package/dist/models/projectKitAuthInputDto.d.ts +13 -0
- package/dist/models/projectKitAuthInputDto.js +9 -0
- package/dist/models/projectKitBindingDto.d.ts +23 -0
- package/dist/models/projectKitBindingDto.js +2 -0
- package/dist/models/projectKitBindingKind.d.ts +15 -0
- package/dist/models/projectKitBindingKind.js +14 -0
- package/dist/models/projectKitKind.d.ts +15 -0
- package/dist/models/projectKitKind.js +14 -0
- package/dist/models/projectKitPurpose.d.ts +15 -0
- package/dist/models/projectKitPurpose.js +14 -0
- package/dist/models/projectKitSourceInputDto.d.ts +27 -0
- package/dist/models/projectKitSourceInputDto.js +2 -0
- package/dist/models/projectKitSourceKind.d.ts +16 -0
- package/dist/models/projectKitSourceKind.js +15 -0
- package/dist/models/promoteToProdDto.d.ts +17 -0
- package/dist/models/promoteToProdDto.js +9 -0
- package/dist/models/promoteToProdResponseDto.d.ts +16 -0
- package/dist/models/promoteToProdResponseDto.js +2 -0
- package/dist/models/studioControllerListParams.d.ts +32 -0
- package/dist/models/studioControllerListParams.js +2 -0
- package/dist/models/studioProvisioningFailRequestDto.d.ts +18 -0
- package/dist/models/studioProvisioningFailRequestDto.js +2 -0
- package/dist/models/studioProvisioningFailRequestDtoActorType.d.ts +16 -0
- package/dist/models/studioProvisioningFailRequestDtoActorType.js +15 -0
- package/dist/models/studioProvisioningStepRequestDto.d.ts +16 -0
- package/dist/models/studioProvisioningStepRequestDto.js +2 -0
- package/dist/models/studioProvisioningStepRequestDtoActorType.d.ts +16 -0
- package/dist/models/studioProvisioningStepRequestDtoActorType.js +15 -0
- package/dist/models/studioResponseDto.d.ts +57 -0
- package/dist/models/studioResponseDto.js +2 -0
- package/dist/models/studioResponseDtoAgentSlug.d.ts +14 -0
- package/dist/models/studioResponseDtoAgentSlug.js +9 -0
- package/dist/models/studioResponseDtoDescription.d.ts +13 -0
- package/dist/models/studioResponseDtoDescription.js +9 -0
- package/dist/models/studioResponseDtoFailureReason.d.ts +14 -0
- package/dist/models/studioResponseDtoFailureReason.js +9 -0
- package/dist/models/studioResponseDtoLatestPrUrl.d.ts +14 -0
- package/dist/models/studioResponseDtoLatestPrUrl.js +9 -0
- package/dist/models/studioResponseDtoSessionId.d.ts +14 -0
- package/dist/models/studioResponseDtoSessionId.js +9 -0
- package/dist/models/updateStudioDto.d.ts +21 -0
- package/dist/models/updateStudioDto.js +9 -0
- package/dist/models/webappDetectState.d.ts +13 -0
- package/dist/models/webappDetectState.js +15 -0
- package/dist/models/webappKind.d.ts +15 -0
- package/dist/models/webappKind.js +14 -0
- package/dist/models/webappStudioStatus.d.ts +13 -0
- package/dist/models/webappStudioStatus.js +15 -0
- package/package.json +18 -0
|
@@ -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
|
+
* Human-readable error when create or archive failed. Null on healthy rows.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type StudioResponseDtoFailureReason = {
|
|
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,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
|
+
* Most recent PR URL opened from `workingBranch`. Null until the first successful `/open-pr` call.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type StudioResponseDtoLatestPrUrl = {
|
|
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,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
|
+
* Active agent-session id. Null during CREATING, or after a restart while the fresh session is provisioning.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type StudioResponseDtoSessionId = {
|
|
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,21 @@
|
|
|
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 UpdateStudioDto {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @maxLength 200
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/** @maxLength 4000 */
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Replace the primary-agent slug. Same validation as create — must belong to the `webapp-studio` biome.
|
|
18
|
+
* @maxLength 200
|
|
19
|
+
*/
|
|
20
|
+
agentSlug?: string;
|
|
21
|
+
}
|
|
@@ -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,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 type WebappDetectState = typeof WebappDetectState[keyof typeof WebappDetectState];
|
|
9
|
+
export declare const WebappDetectState: {
|
|
10
|
+
readonly empty: "empty";
|
|
11
|
+
readonly ready: "ready";
|
|
12
|
+
readonly inaccessible: "inaccessible";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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.WebappDetectState = void 0;
|
|
11
|
+
exports.WebappDetectState = {
|
|
12
|
+
empty: 'empty',
|
|
13
|
+
ready: 'ready',
|
|
14
|
+
inaccessible: 'inaccessible',
|
|
15
|
+
};
|
|
@@ -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
|
+
/**
|
|
9
|
+
* 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).
|
|
10
|
+
*/
|
|
11
|
+
export type WebappKind = typeof WebappKind[keyof typeof WebappKind];
|
|
12
|
+
export declare const WebappKind: {
|
|
13
|
+
readonly nextjs: "nextjs";
|
|
14
|
+
readonly 'spa-vite-react': "spa-vite-react";
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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.WebappKind = void 0;
|
|
11
|
+
exports.WebappKind = {
|
|
12
|
+
nextjs: 'nextjs',
|
|
13
|
+
'spa-vite-react': 'spa-vite-react',
|
|
14
|
+
};
|
|
@@ -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 type WebappStudioStatus = typeof WebappStudioStatus[keyof typeof WebappStudioStatus];
|
|
9
|
+
export declare const WebappStudioStatus: {
|
|
10
|
+
readonly creating: "creating";
|
|
11
|
+
readonly active: "active";
|
|
12
|
+
readonly archived: "archived";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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.WebappStudioStatus = void 0;
|
|
11
|
+
exports.WebappStudioStatus = {
|
|
12
|
+
creating: 'creating',
|
|
13
|
+
active: 'active',
|
|
14
|
+
archived: 'archived',
|
|
15
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xemahq/webapp-studio-api-client",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://npm.pkg.github.com"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"typescript": "5.9.3"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc -p tsconfig.json"
|
|
17
|
+
}
|
|
18
|
+
}
|