@xemahq/webapp-studio-api-client 0.1.1 → 0.2.0
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 +36 -1
- package/README.md +62 -0
- package/dist/endpoints/app-databases/app-databases.d.ts +11 -11
- package/dist/endpoints/app-databases/app-databases.js +12 -12
- package/dist/endpoints/studio/studio.d.ts +36 -21
- package/dist/endpoints/studio/studio.js +74 -28
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -3
- package/dist/models/appDbResponseDto.d.ts +5 -5
- package/dist/models/appDbsResponseDto.d.ts +3 -3
- package/dist/models/appDbsResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/appTargetDto.d.ts +3 -3
- package/dist/models/biomeLifecycle.d.ts +20 -0
- package/dist/models/biomeLifecycle.js +19 -0
- package/dist/models/buildStatusResponseDto.d.ts +16 -0
- package/dist/models/buildStatusResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/buildStatusResponseDtoDataEnvelope.js +2 -0
- package/dist/models/createStudioDto.d.ts +5 -5
- package/dist/models/detectFrameworksDto.d.ts +2 -2
- package/dist/models/detectFrameworksDto.js +2 -2
- package/dist/models/detectFrameworksResponseDto.d.ts +5 -5
- package/dist/models/detectFrameworksResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/detectFrameworksResponseDtoDataEnvelope.js +2 -0
- package/dist/models/detectFrameworksResponseDtoInaccessibleReason.d.ts +2 -2
- package/dist/models/detectFrameworksResponseDtoInaccessibleReason.js +2 -2
- package/dist/models/index.d.ts +19 -6
- package/dist/models/index.js +19 -6
- package/dist/models/migrateAppDbDto.d.ts +2 -2
- package/dist/models/migrateAppDbDto.js +2 -2
- package/dist/models/migrateAppDbResponseDto.d.ts +3 -3
- package/dist/models/migrateAppDbResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/migrateAppDbResponseDtoDataEnvelope.js +2 -0
- package/dist/models/migrationRunnerKind.d.ts +2 -2
- package/dist/models/migrationRunnerKind.js +2 -2
- package/dist/models/openPrResponseDto.d.ts +2 -2
- package/dist/models/openPrResponseDto.js +2 -2
- package/dist/models/openPrResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/openPrResponseDtoDataEnvelope.js +2 -0
- package/dist/models/orgDatabasePurpose.d.ts +2 -2
- package/dist/models/orgDatabasePurpose.js +2 -2
- package/dist/models/orgDatabaseStatus.d.ts +2 -2
- package/dist/models/orgDatabaseStatus.js +2 -2
- package/dist/models/paginationMeta.d.ts +18 -0
- package/dist/models/{internalBiomeCleanupRequestDto.js → paginationMeta.js} +2 -2
- package/dist/models/patchStudioAppsDto.d.ts +3 -3
- package/dist/models/projectKitAuthInputDto.d.ts +2 -2
- package/dist/models/projectKitAuthInputDto.js +2 -2
- package/dist/models/projectKitBindingDto.d.ts +6 -6
- package/dist/models/projectKitBindingKind.d.ts +2 -2
- package/dist/models/projectKitBindingKind.js +2 -2
- package/dist/models/projectKitKind.d.ts +2 -2
- package/dist/models/projectKitKind.js +2 -2
- package/dist/models/projectKitPurpose.d.ts +2 -2
- package/dist/models/projectKitPurpose.js +2 -2
- package/dist/models/projectKitSourceInputDto.d.ts +4 -4
- package/dist/models/projectKitSourceKind.d.ts +2 -2
- package/dist/models/projectKitSourceKind.js +2 -2
- package/dist/models/promoteToProdDto.d.ts +2 -2
- package/dist/models/promoteToProdDto.js +2 -2
- package/dist/models/promoteToProdResponseDto.d.ts +7 -3
- package/dist/models/promoteToProdResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/promoteToProdResponseDtoDataEnvelope.js +2 -0
- package/dist/models/publishToXemaDto.d.ts +24 -0
- package/dist/models/publishToXemaDto.js +2 -0
- package/dist/models/publishToXemaDtoManifestSnapshot.d.ts +13 -0
- package/dist/models/{internalBiomeCleanupResponseDto.js → publishToXemaDtoManifestSnapshot.js} +2 -2
- package/dist/models/publishToXemaResponseDto.d.ts +22 -0
- package/dist/models/publishToXemaResponseDto.js +2 -0
- package/dist/models/publishToXemaResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/publishToXemaResponseDtoDataEnvelope.js +2 -0
- package/dist/models/startPublishResponseDto.d.ts +14 -0
- package/dist/models/startPublishResponseDto.js +2 -0
- package/dist/models/startPublishResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/startPublishResponseDtoDataEnvelope.js +2 -0
- package/dist/models/studioControllerListParams.d.ts +3 -3
- package/dist/models/studioResponseDto.d.ts +17 -11
- package/dist/models/studioResponseDtoAgentSlug.d.ts +3 -3
- package/dist/models/studioResponseDtoAgentSlug.js +2 -2
- package/dist/models/studioResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/studioResponseDtoDataEnvelope.js +2 -0
- package/dist/models/studioResponseDtoDescription.d.ts +2 -2
- package/dist/models/studioResponseDtoDescription.js +2 -2
- package/dist/models/studioResponseDtoFailureReason.d.ts +2 -2
- package/dist/models/studioResponseDtoFailureReason.js +2 -2
- package/dist/models/studioResponseDtoLatestPrUrl.d.ts +2 -2
- package/dist/models/studioResponseDtoLatestPrUrl.js +2 -2
- package/dist/models/studioResponseDtoPaginatedEnvelope.d.ts +13 -0
- package/dist/models/studioResponseDtoPaginatedEnvelope.js +2 -0
- package/dist/models/studioResponseDtoSessionId.d.ts +2 -2
- package/dist/models/studioResponseDtoSessionId.js +2 -2
- package/dist/models/studioResponseDtoSessionStatus.d.ts +14 -0
- package/dist/models/studioResponseDtoSessionStatus.js +9 -0
- package/dist/models/updateStudioDto.d.ts +2 -2
- package/dist/models/updateStudioDto.js +2 -2
- package/dist/models/webRemoteBuildStatus.d.ts +16 -0
- package/dist/models/webRemoteBuildStatus.js +15 -0
- package/dist/models/webappDetectState.d.ts +2 -2
- package/dist/models/webappDetectState.js +2 -2
- package/dist/models/webappKind.d.ts +2 -2
- package/dist/models/webappKind.js +2 -2
- package/dist/models/webappStudioStatus.d.ts +2 -2
- package/dist/models/webappStudioStatus.js +2 -2
- package/package.json +12 -2
- package/dist/endpoints/health/health.d.ts +0 -15
- package/dist/endpoints/health/health.js +0 -53
- package/dist/endpoints/internal/internal.d.ts +0 -30
- package/dist/endpoints/internal/internal.js +0 -68
- package/dist/models/internalBiomeCleanupRequestDto.d.ts +0 -25
- package/dist/models/internalBiomeCleanupResponseDto.d.ts +0 -11
- package/dist/models/studioProvisioningFailRequestDto.d.ts +0 -18
- package/dist/models/studioProvisioningFailRequestDtoActorType.d.ts +0 -16
- package/dist/models/studioProvisioningFailRequestDtoActorType.js +0 -15
- package/dist/models/studioProvisioningStepRequestDto.d.ts +0 -16
- package/dist/models/studioProvisioningStepRequestDtoActorType.d.ts +0 -16
- package/dist/models/studioProvisioningStepRequestDtoActorType.js +0 -15
- /package/dist/models/{studioProvisioningFailRequestDto.js → appDbsResponseDtoDataEnvelope.js} +0 -0
- /package/dist/models/{studioProvisioningStepRequestDto.js → buildStatusResponseDto.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
Xema Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Neuralchowder Inc.. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and its source code, object code, documentation, and all
|
|
6
|
+
associated materials (the "Software") are the confidential and proprietary
|
|
7
|
+
property of Neuralchowder Inc. ("Licensor") and are protected by copyright, trade secret,
|
|
8
|
+
and other intellectual property laws.
|
|
9
|
+
|
|
10
|
+
NO LICENSE IS GRANTED BY THIS FILE. No right or license to use, copy, modify,
|
|
11
|
+
merge, publish, distribute, sublicense, sell, host, embed, or create
|
|
12
|
+
derivative works of the Software is granted, whether by implication, estoppel,
|
|
13
|
+
or otherwise, except under a separate written agreement signed by an
|
|
14
|
+
authorized representative of Neuralchowder Inc..
|
|
15
|
+
|
|
16
|
+
Unauthorized copying, use, distribution, or disclosure of the Software, in
|
|
17
|
+
whole or in part, by any means, is strictly prohibited and may violate
|
|
18
|
+
applicable law.
|
|
19
|
+
|
|
20
|
+
Access to the Software, where provided, is granted solely under and subject to
|
|
21
|
+
the terms of a separate written commercial, evaluation, or subscription
|
|
22
|
+
agreement between you and Neuralchowder Inc.. In the event of any conflict between
|
|
23
|
+
this file and such signed agreement, the signed agreement controls.
|
|
24
|
+
|
|
25
|
+
Third-party software, libraries, packages, and assets included with or used by
|
|
26
|
+
the Software remain subject to their own respective license terms.
|
|
27
|
+
|
|
28
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED ON
|
|
29
|
+
AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
30
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF
|
|
31
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
|
|
32
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
|
|
33
|
+
Neuralchowder Inc. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
34
|
+
CONSEQUENTIAL, OR EXEMPLARY DAMAGES ARISING OUT OF OR RELATED TO THE SOFTWARE.
|
|
35
|
+
|
|
36
|
+
For licensing inquiries, contact: licensing@neuralchowder.com
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
|
|
2
|
+
<p align="center">
|
|
3
|
+
<svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/webapp-studio-api-client">
|
|
4
|
+
<rect width="680" height="120" rx="14" fill="#0B1020"/>
|
|
5
|
+
<g transform="translate(28,34)">
|
|
6
|
+
<path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
|
|
7
|
+
<path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/webapp-studio-api-client</text>
|
|
10
|
+
<text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated HTTP client for the Webapp Studio API.</text>
|
|
11
|
+
<text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
|
|
12
|
+
</svg>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://xema.dev">Website</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/@xemahq/webapp-studio-api-client">npm</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fwebapp-studio-api-client?color=2563eb&label=npm">
|
|
22
|
+
<img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fwebapp-studio-api-client?color=10b981">
|
|
23
|
+
<img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fwebapp-studio-api-client?color=3178c6">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# @xemahq/webapp-studio-api-client
|
|
27
|
+
|
|
28
|
+
> Typed, generated HTTP client for the Webapp Studio API.
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Auto-generated TypeScript client for the **Webapp Studio API**. It exports typed
|
|
33
|
+
request functions and response models that mirror the service's OpenAPI surface,
|
|
34
|
+
so callers get end-to-end type safety without hand-writing HTTP calls. This
|
|
35
|
+
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
+
the service's API changes — do not edit it by hand.
|
|
37
|
+
|
|
38
|
+
## When to use it
|
|
39
|
+
|
|
40
|
+
- Use it from any TypeScript service or app that calls the Webapp Studio API over HTTP.
|
|
41
|
+
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
+
up API changes rather than editing the client.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm add @xemahq/webapp-studio-api-client
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// Every endpoint function and response model is exported from the package root.
|
|
54
|
+
import * as client from '@xemahq/webapp-studio-api-client';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
+
from the service's OpenAPI spec.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Proprietary — © Xema. All rights reserved. — [xema.dev](https://xema.dev)
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webapp Studio API
|
|
5
5
|
* Studio session CRUD + lifecycle + PR-from-working-branch handoff
|
|
6
|
-
* OpenAPI spec version: 0.1.
|
|
6
|
+
* OpenAPI spec version: 0.1.1
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { AppDbsResponseDtoDataEnvelope, MigrateAppDbDto, MigrateAppDbResponseDtoDataEnvelope, PromoteToProdDto, PromoteToProdResponseDtoDataEnvelope } from '../../models';
|
|
9
|
+
export declare const getAppDbsControllerListUrl: (studioId: string, appSlug: string) => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary List the dev (and, when promoted, prod) org-managed databases attached to one app slug of a webapp-studio session.
|
|
11
12
|
*/
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const appDbsControllerList: (studioId: string, appSlug: string, options?: RequestInit) => Promise<AppDbsResponseDtoDataEnvelope>;
|
|
14
|
+
export declare const getAppDbsControllerEnsureDevUrl: (studioId: string, appSlug: string) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary Idempotently provision the dev database for this app and wait for it to become Active. Safe to call on first migration too.
|
|
16
17
|
*/
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const appDbsControllerEnsureDev: (studioId: string, appSlug: string, options?: RequestInit) => Promise<AppDbsResponseDtoDataEnvelope>;
|
|
19
|
+
export declare const getAppDbsControllerMigrateUrl: (studioId: string, appSlug: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary Run the app’s Prisma migration package against its dev DB. Polls org-database-pool-api until the run is succeeded/failed.
|
|
21
22
|
*/
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const appDbsControllerMigrate: (studioId: string, appSlug: string, migrateAppDbDto: MigrateAppDbDto, options?: RequestInit) => Promise<MigrateAppDbResponseDtoDataEnvelope>;
|
|
24
|
+
export declare const getAppDbsControllerPromoteUrl: (studioId: string, appSlug: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Provision (or attach) the prod DB, run the app’s migrations against it, and return the synchronized (dev, prod) pair. `copyData=true` is currently a documented stub and returns 501 NotImplemented.
|
|
26
27
|
*/
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const appDbsControllerPromote: (studioId: string, appSlug: string, promoteToProdDto: PromoteToProdDto, options?: RequestInit) => Promise<PromoteToProdResponseDto>;
|
|
28
|
+
export declare const appDbsControllerPromote: (studioId: string, appSlug: string, promoteToProdDto: PromoteToProdDto, options?: RequestInit) => Promise<PromoteToProdResponseDtoDataEnvelope>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.appDbsControllerPromote = exports.getAppDbsControllerPromoteUrl = exports.appDbsControllerMigrate = exports.getAppDbsControllerMigrateUrl = exports.appDbsControllerEnsureDev = exports.getAppDbsControllerEnsureDevUrl = exports.appDbsControllerList = exports.getAppDbsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary List the dev (and, when promoted, prod) org-managed databases attached to one app slug of a webapp-studio session.
|
|
7
|
-
*/
|
|
8
5
|
const getAppDbsControllerListUrl = (studioId, appSlug) => {
|
|
9
6
|
return `/studio/${studioId}/apps/${appSlug}/dbs`;
|
|
10
7
|
};
|
|
11
8
|
exports.getAppDbsControllerListUrl = getAppDbsControllerListUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List the dev (and, when promoted, prod) org-managed databases attached to one app slug of a webapp-studio session.
|
|
11
|
+
*/
|
|
12
12
|
const appDbsControllerList = async (studioId, appSlug, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppDbsControllerListUrl)(studioId, appSlug), {
|
|
14
14
|
...options,
|
|
@@ -16,13 +16,13 @@ const appDbsControllerList = async (studioId, appSlug, options) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.appDbsControllerList = appDbsControllerList;
|
|
19
|
-
/**
|
|
20
|
-
* @summary Idempotently provision the dev database for this app and wait for it to become Active. Safe to call on first migration too.
|
|
21
|
-
*/
|
|
22
19
|
const getAppDbsControllerEnsureDevUrl = (studioId, appSlug) => {
|
|
23
20
|
return `/studio/${studioId}/apps/${appSlug}/dbs/ensure-dev`;
|
|
24
21
|
};
|
|
25
22
|
exports.getAppDbsControllerEnsureDevUrl = getAppDbsControllerEnsureDevUrl;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Idempotently provision the dev database for this app and wait for it to become Active. Safe to call on first migration too.
|
|
25
|
+
*/
|
|
26
26
|
const appDbsControllerEnsureDev = async (studioId, appSlug, options) => {
|
|
27
27
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppDbsControllerEnsureDevUrl)(studioId, appSlug), {
|
|
28
28
|
...options,
|
|
@@ -30,13 +30,13 @@ const appDbsControllerEnsureDev = async (studioId, appSlug, options) => {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
exports.appDbsControllerEnsureDev = appDbsControllerEnsureDev;
|
|
33
|
-
/**
|
|
34
|
-
* @summary Run the app’s Prisma migration package against its dev DB. Polls org-database-pool-api until the run is succeeded/failed.
|
|
35
|
-
*/
|
|
36
33
|
const getAppDbsControllerMigrateUrl = (studioId, appSlug) => {
|
|
37
34
|
return `/studio/${studioId}/apps/${appSlug}/dbs/migrate`;
|
|
38
35
|
};
|
|
39
36
|
exports.getAppDbsControllerMigrateUrl = getAppDbsControllerMigrateUrl;
|
|
37
|
+
/**
|
|
38
|
+
* @summary Run the app’s Prisma migration package against its dev DB. Polls org-database-pool-api until the run is succeeded/failed.
|
|
39
|
+
*/
|
|
40
40
|
const appDbsControllerMigrate = async (studioId, appSlug, migrateAppDbDto, options) => {
|
|
41
41
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppDbsControllerMigrateUrl)(studioId, appSlug), {
|
|
42
42
|
...options,
|
|
@@ -46,13 +46,13 @@ const appDbsControllerMigrate = async (studioId, appSlug, migrateAppDbDto, optio
|
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
exports.appDbsControllerMigrate = appDbsControllerMigrate;
|
|
49
|
-
/**
|
|
50
|
-
* @summary Provision (or attach) the prod DB, run the app’s migrations against it, and return the synchronized (dev, prod) pair. `copyData=true` is currently a documented stub and returns 501 NotImplemented.
|
|
51
|
-
*/
|
|
52
49
|
const getAppDbsControllerPromoteUrl = (studioId, appSlug) => {
|
|
53
50
|
return `/studio/${studioId}/apps/${appSlug}/dbs/promote-to-prod`;
|
|
54
51
|
};
|
|
55
52
|
exports.getAppDbsControllerPromoteUrl = getAppDbsControllerPromoteUrl;
|
|
53
|
+
/**
|
|
54
|
+
* @summary Provision (or attach) the prod DB, run the app’s migrations against it, and return the synchronized (dev, prod) pair. `copyData=true` is currently a documented stub and returns 501 NotImplemented.
|
|
55
|
+
*/
|
|
56
56
|
const appDbsControllerPromote = async (studioId, appSlug, promoteToProdDto, options) => {
|
|
57
57
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppDbsControllerPromoteUrl)(studioId, appSlug), {
|
|
58
58
|
...options,
|
|
@@ -1,53 +1,68 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webapp Studio API
|
|
5
5
|
* Studio session CRUD + lifecycle + PR-from-working-branch handoff
|
|
6
|
-
* OpenAPI spec version: 0.1.
|
|
6
|
+
* OpenAPI spec version: 0.1.1
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateStudioDto, DetectFrameworksDto,
|
|
8
|
+
import type { BuildStatusResponseDtoDataEnvelope, CreateStudioDto, DetectFrameworksDto, DetectFrameworksResponseDtoDataEnvelope, OpenPrResponseDtoDataEnvelope, PatchStudioAppsDto, PublishToXemaDto, PublishToXemaResponseDtoDataEnvelope, StartPublishResponseDtoDataEnvelope, StudioControllerListParams, StudioResponseDtoDataEnvelope, StudioResponseDtoPaginatedEnvelope, UpdateStudioDto } from '../../models';
|
|
9
|
+
export declare const getStudioControllerDetectUrl: () => string;
|
|
9
10
|
/**
|
|
10
11
|
* @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.
|
|
11
12
|
*/
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const studioControllerDetect: (detectFrameworksDto: DetectFrameworksDto, options?: RequestInit) => Promise<DetectFrameworksResponseDtoDataEnvelope>;
|
|
14
|
+
export declare const getStudioControllerCreateUrl: () => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary Create a webapp studio session + provision its interactive agent
|
|
16
17
|
*/
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const studioControllerCreate: (createStudioDto: CreateStudioDto, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
19
|
+
export declare const getStudioControllerListUrl: (params?: StudioControllerListParams) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary List studio sessions
|
|
21
22
|
*/
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const studioControllerList: (params?: StudioControllerListParams, options?: RequestInit) => Promise<StudioResponseDtoPaginatedEnvelope>;
|
|
24
|
+
export declare const getStudioControllerGetByIdUrl: (id: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Get a studio session by id
|
|
26
27
|
*/
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const studioControllerGetById: (id: string, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
29
|
+
export declare const getStudioControllerUpdateUrl: (id: string) => string;
|
|
29
30
|
/**
|
|
30
31
|
* @summary Update studio metadata (title, description, agent override).
|
|
31
32
|
*/
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const studioControllerUpdate: (id: string, updateStudioDto: UpdateStudioDto, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
34
|
+
export declare const getStudioControllerArchiveUrl: (id: string) => string;
|
|
34
35
|
/**
|
|
35
36
|
* @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.
|
|
36
37
|
*/
|
|
37
|
-
export declare const
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const studioControllerArchive: (id: string, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
39
|
+
export declare const getStudioControllerPatchAppsUrl: (id: string) => string;
|
|
39
40
|
/**
|
|
40
41
|
* @summary Replace the studio app-target list. The supervisor picks up the new list on the next watcher rescan. Refuses on ARCHIVED studios.
|
|
41
42
|
*/
|
|
42
|
-
export declare const
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const studioControllerPatchApps: (id: string, patchStudioAppsDto: PatchStudioAppsDto, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
44
|
+
export declare const getStudioControllerRestartUrl: (id: string) => string;
|
|
44
45
|
/**
|
|
45
46
|
* @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.
|
|
46
47
|
*/
|
|
47
|
-
export declare const
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const studioControllerRestart: (id: string, options?: RequestInit) => Promise<StudioResponseDtoDataEnvelope>;
|
|
49
|
+
export declare const getStudioControllerOpenPrUrl: (id: string) => string;
|
|
49
50
|
/**
|
|
50
51
|
* @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.
|
|
51
52
|
*/
|
|
52
|
-
export declare const
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const studioControllerOpenPr: (id: string, options?: RequestInit) => Promise<OpenPrResponseDtoDataEnvelope>;
|
|
54
|
+
export declare const getPublishToXemaControllerStartPublishUrl: (studioId: string, appSlug: string) => string;
|
|
55
|
+
/**
|
|
56
|
+
* @summary STEP 1 — dispatch the server-side MF web-remote build for this studio app NON-BLOCKING and return a build-run id to poll. Ensures (later, at submit) a store listing for the manifest biome id. A real build is minutes; poll GET .../builds/:buildRunId, then POST .../submit.
|
|
57
|
+
*/
|
|
58
|
+
export declare const publishToXemaControllerStartPublish: (studioId: string, appSlug: string, publishToXemaDto: PublishToXemaDto, options?: RequestInit) => Promise<StartPublishResponseDtoDataEnvelope>;
|
|
59
|
+
export declare const getPublishToXemaControllerGetBuildStatusUrl: (studioId: string, appSlug: string, buildRunId: string) => string;
|
|
60
|
+
/**
|
|
61
|
+
* @summary STEP 2 — poll a dispatched build-run status: `building` (keep polling), `built` (call the submit endpoint), or `failed` (stop; see failureReason).
|
|
62
|
+
*/
|
|
63
|
+
export declare const publishToXemaControllerGetBuildStatus: (studioId: string, appSlug: string, buildRunId: string, options?: RequestInit) => Promise<BuildStatusResponseDtoDataEnvelope>;
|
|
64
|
+
export declare const getPublishToXemaControllerSubmitBuildUrl: (studioId: string, appSlug: string, buildRunId: string) => string;
|
|
65
|
+
/**
|
|
66
|
+
* @summary STEP 3 — finalize: once the build is `built`, read the server-produced web-artifact descriptor and submit the version to the Xema store. Re-supply the same { version, manifestSnapshot, notes?, listingId? } body from step 1. 409 while still building; 400 if the build failed.
|
|
67
|
+
*/
|
|
68
|
+
export declare const publishToXemaControllerSubmitBuild: (studioId: string, appSlug: string, buildRunId: string, publishToXemaDto: PublishToXemaDto, options?: RequestInit) => Promise<PublishToXemaResponseDtoDataEnvelope>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
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;
|
|
3
|
+
exports.publishToXemaControllerSubmitBuild = exports.getPublishToXemaControllerSubmitBuildUrl = exports.publishToXemaControllerGetBuildStatus = exports.getPublishToXemaControllerGetBuildStatusUrl = exports.publishToXemaControllerStartPublish = exports.getPublishToXemaControllerStartPublishUrl = 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
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
5
|
const getStudioControllerDetectUrl = () => {
|
|
9
6
|
return `/studio/detect`;
|
|
10
7
|
};
|
|
11
8
|
exports.getStudioControllerDetectUrl = getStudioControllerDetectUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @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.
|
|
11
|
+
*/
|
|
12
12
|
const studioControllerDetect = async (detectFrameworksDto, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerDetectUrl)(), {
|
|
14
14
|
...options,
|
|
@@ -18,13 +18,13 @@ const studioControllerDetect = async (detectFrameworksDto, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.studioControllerDetect = studioControllerDetect;
|
|
21
|
-
/**
|
|
22
|
-
* @summary Create a webapp studio session + provision its interactive agent
|
|
23
|
-
*/
|
|
24
21
|
const getStudioControllerCreateUrl = () => {
|
|
25
22
|
return `/studio`;
|
|
26
23
|
};
|
|
27
24
|
exports.getStudioControllerCreateUrl = getStudioControllerCreateUrl;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Create a webapp studio session + provision its interactive agent
|
|
27
|
+
*/
|
|
28
28
|
const studioControllerCreate = async (createStudioDto, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerCreateUrl)(), {
|
|
30
30
|
...options,
|
|
@@ -34,9 +34,6 @@ const studioControllerCreate = async (createStudioDto, options) => {
|
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
exports.studioControllerCreate = studioControllerCreate;
|
|
37
|
-
/**
|
|
38
|
-
* @summary List studio sessions
|
|
39
|
-
*/
|
|
40
37
|
const getStudioControllerListUrl = (params) => {
|
|
41
38
|
const normalizedParams = new URLSearchParams();
|
|
42
39
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -60,6 +57,9 @@ const getStudioControllerListUrl = (params) => {
|
|
|
60
57
|
return stringifiedParams.length > 0 ? `/studio?${stringifiedParams}` : `/studio`;
|
|
61
58
|
};
|
|
62
59
|
exports.getStudioControllerListUrl = getStudioControllerListUrl;
|
|
60
|
+
/**
|
|
61
|
+
* @summary List studio sessions
|
|
62
|
+
*/
|
|
63
63
|
const studioControllerList = async (params, options) => {
|
|
64
64
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerListUrl)(params), {
|
|
65
65
|
...options,
|
|
@@ -67,13 +67,13 @@ const studioControllerList = async (params, options) => {
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
exports.studioControllerList = studioControllerList;
|
|
70
|
-
/**
|
|
71
|
-
* @summary Get a studio session by id
|
|
72
|
-
*/
|
|
73
70
|
const getStudioControllerGetByIdUrl = (id) => {
|
|
74
71
|
return `/studio/${id}`;
|
|
75
72
|
};
|
|
76
73
|
exports.getStudioControllerGetByIdUrl = getStudioControllerGetByIdUrl;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Get a studio session by id
|
|
76
|
+
*/
|
|
77
77
|
const studioControllerGetById = async (id, options) => {
|
|
78
78
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerGetByIdUrl)(id), {
|
|
79
79
|
...options,
|
|
@@ -81,13 +81,13 @@ const studioControllerGetById = async (id, options) => {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
exports.studioControllerGetById = studioControllerGetById;
|
|
84
|
-
/**
|
|
85
|
-
* @summary Update studio metadata (title, description, agent override).
|
|
86
|
-
*/
|
|
87
84
|
const getStudioControllerUpdateUrl = (id) => {
|
|
88
85
|
return `/studio/${id}`;
|
|
89
86
|
};
|
|
90
87
|
exports.getStudioControllerUpdateUrl = getStudioControllerUpdateUrl;
|
|
88
|
+
/**
|
|
89
|
+
* @summary Update studio metadata (title, description, agent override).
|
|
90
|
+
*/
|
|
91
91
|
const studioControllerUpdate = async (id, updateStudioDto, options) => {
|
|
92
92
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerUpdateUrl)(id), {
|
|
93
93
|
...options,
|
|
@@ -97,13 +97,13 @@ const studioControllerUpdate = async (id, updateStudioDto, options) => {
|
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
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
100
|
const getStudioControllerArchiveUrl = (id) => {
|
|
104
101
|
return `/studio/${id}`;
|
|
105
102
|
};
|
|
106
103
|
exports.getStudioControllerArchiveUrl = getStudioControllerArchiveUrl;
|
|
104
|
+
/**
|
|
105
|
+
* @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.
|
|
106
|
+
*/
|
|
107
107
|
const studioControllerArchive = async (id, options) => {
|
|
108
108
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerArchiveUrl)(id), {
|
|
109
109
|
...options,
|
|
@@ -111,13 +111,13 @@ const studioControllerArchive = async (id, options) => {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
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
114
|
const getStudioControllerPatchAppsUrl = (id) => {
|
|
118
115
|
return `/studio/${id}/apps`;
|
|
119
116
|
};
|
|
120
117
|
exports.getStudioControllerPatchAppsUrl = getStudioControllerPatchAppsUrl;
|
|
118
|
+
/**
|
|
119
|
+
* @summary Replace the studio app-target list. The supervisor picks up the new list on the next watcher rescan. Refuses on ARCHIVED studios.
|
|
120
|
+
*/
|
|
121
121
|
const studioControllerPatchApps = async (id, patchStudioAppsDto, options) => {
|
|
122
122
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerPatchAppsUrl)(id), {
|
|
123
123
|
...options,
|
|
@@ -127,13 +127,13 @@ const studioControllerPatchApps = async (id, patchStudioAppsDto, options) => {
|
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
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
130
|
const getStudioControllerRestartUrl = (id) => {
|
|
134
131
|
return `/studio/${id}/restart`;
|
|
135
132
|
};
|
|
136
133
|
exports.getStudioControllerRestartUrl = getStudioControllerRestartUrl;
|
|
134
|
+
/**
|
|
135
|
+
* @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.
|
|
136
|
+
*/
|
|
137
137
|
const studioControllerRestart = async (id, options) => {
|
|
138
138
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerRestartUrl)(id), {
|
|
139
139
|
...options,
|
|
@@ -141,13 +141,13 @@ const studioControllerRestart = async (id, options) => {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
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
144
|
const getStudioControllerOpenPrUrl = (id) => {
|
|
148
145
|
return `/studio/${id}/open-pr`;
|
|
149
146
|
};
|
|
150
147
|
exports.getStudioControllerOpenPrUrl = getStudioControllerOpenPrUrl;
|
|
148
|
+
/**
|
|
149
|
+
* @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.
|
|
150
|
+
*/
|
|
151
151
|
const studioControllerOpenPr = async (id, options) => {
|
|
152
152
|
return (0, custom_fetch_1.customFetch)((0, exports.getStudioControllerOpenPrUrl)(id), {
|
|
153
153
|
...options,
|
|
@@ -155,3 +155,49 @@ const studioControllerOpenPr = async (id, options) => {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
exports.studioControllerOpenPr = studioControllerOpenPr;
|
|
158
|
+
const getPublishToXemaControllerStartPublishUrl = (studioId, appSlug) => {
|
|
159
|
+
return `/studio/${studioId}/apps/${appSlug}/publish-to-xema`;
|
|
160
|
+
};
|
|
161
|
+
exports.getPublishToXemaControllerStartPublishUrl = getPublishToXemaControllerStartPublishUrl;
|
|
162
|
+
/**
|
|
163
|
+
* @summary STEP 1 — dispatch the server-side MF web-remote build for this studio app NON-BLOCKING and return a build-run id to poll. Ensures (later, at submit) a store listing for the manifest biome id. A real build is minutes; poll GET .../builds/:buildRunId, then POST .../submit.
|
|
164
|
+
*/
|
|
165
|
+
const publishToXemaControllerStartPublish = async (studioId, appSlug, publishToXemaDto, options) => {
|
|
166
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getPublishToXemaControllerStartPublishUrl)(studioId, appSlug), {
|
|
167
|
+
...options,
|
|
168
|
+
method: 'POST',
|
|
169
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
170
|
+
body: JSON.stringify(publishToXemaDto)
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.publishToXemaControllerStartPublish = publishToXemaControllerStartPublish;
|
|
174
|
+
const getPublishToXemaControllerGetBuildStatusUrl = (studioId, appSlug, buildRunId) => {
|
|
175
|
+
return `/studio/${studioId}/apps/${appSlug}/publish-to-xema/builds/${buildRunId}`;
|
|
176
|
+
};
|
|
177
|
+
exports.getPublishToXemaControllerGetBuildStatusUrl = getPublishToXemaControllerGetBuildStatusUrl;
|
|
178
|
+
/**
|
|
179
|
+
* @summary STEP 2 — poll a dispatched build-run status: `building` (keep polling), `built` (call the submit endpoint), or `failed` (stop; see failureReason).
|
|
180
|
+
*/
|
|
181
|
+
const publishToXemaControllerGetBuildStatus = async (studioId, appSlug, buildRunId, options) => {
|
|
182
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getPublishToXemaControllerGetBuildStatusUrl)(studioId, appSlug, buildRunId), {
|
|
183
|
+
...options,
|
|
184
|
+
method: 'GET'
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
exports.publishToXemaControllerGetBuildStatus = publishToXemaControllerGetBuildStatus;
|
|
188
|
+
const getPublishToXemaControllerSubmitBuildUrl = (studioId, appSlug, buildRunId) => {
|
|
189
|
+
return `/studio/${studioId}/apps/${appSlug}/publish-to-xema/builds/${buildRunId}/submit`;
|
|
190
|
+
};
|
|
191
|
+
exports.getPublishToXemaControllerSubmitBuildUrl = getPublishToXemaControllerSubmitBuildUrl;
|
|
192
|
+
/**
|
|
193
|
+
* @summary STEP 3 — finalize: once the build is `built`, read the server-produced web-artifact descriptor and submit the version to the Xema store. Re-supply the same { version, manifestSnapshot, notes?, listingId? } body from step 1. 409 while still building; 400 if the build failed.
|
|
194
|
+
*/
|
|
195
|
+
const publishToXemaControllerSubmitBuild = async (studioId, appSlug, buildRunId, publishToXemaDto, options) => {
|
|
196
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getPublishToXemaControllerSubmitBuildUrl)(studioId, appSlug, buildRunId), {
|
|
197
|
+
...options,
|
|
198
|
+
method: 'POST',
|
|
199
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
200
|
+
body: JSON.stringify(publishToXemaDto)
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
exports.publishToXemaControllerSubmitBuild = publishToXemaControllerSubmitBuild;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
|
|
2
2
|
export * from './models';
|
|
3
3
|
export * from './endpoints/app-databases/app-databases';
|
|
4
|
-
export * from './endpoints/health/health';
|
|
5
|
-
export * from './endpoints/internal/internal';
|
|
6
4
|
export * from './endpoints/studio/studio';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
|
|
18
|
-
// Auto-generated by
|
|
18
|
+
// Auto-generated by @xemahq/api-client-generator — do not edit manually.
|
|
19
19
|
var custom_fetch_1 = require("./custom-fetch");
|
|
20
20
|
Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
|
|
21
21
|
Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
|
|
@@ -23,6 +23,4 @@ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function
|
|
|
23
23
|
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
24
|
__exportStar(require("./models"), exports);
|
|
25
25
|
__exportStar(require("./endpoints/app-databases/app-databases"), exports);
|
|
26
|
-
__exportStar(require("./endpoints/health/health"), exports);
|
|
27
|
-
__exportStar(require("./endpoints/internal/internal"), exports);
|
|
28
26
|
__exportStar(require("./endpoints/studio/studio"), exports);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webapp Studio API
|
|
5
5
|
* Studio session CRUD + lifecycle + PR-from-working-branch handoff
|
|
6
|
-
* OpenAPI spec version: 0.1.
|
|
6
|
+
* OpenAPI spec version: 0.1.1
|
|
7
7
|
*/
|
|
8
|
-
import type { MigrationRunnerKind } from './migrationRunnerKind';
|
|
9
|
-
import type { OrgDatabasePurpose } from './orgDatabasePurpose';
|
|
10
|
-
import type { OrgDatabaseStatus } from './orgDatabaseStatus';
|
|
8
|
+
import type { MigrationRunnerKind } from './migrationRunnerKind.js';
|
|
9
|
+
import type { OrgDatabasePurpose } from './orgDatabasePurpose.js';
|
|
10
|
+
import type { OrgDatabaseStatus } from './orgDatabaseStatus.js';
|
|
11
11
|
export interface AppDbResponseDto {
|
|
12
12
|
/** org-database-pool-api database id (ULID). */
|
|
13
13
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webapp Studio API
|
|
5
5
|
* Studio session CRUD + lifecycle + PR-from-working-branch handoff
|
|
6
|
-
* OpenAPI spec version: 0.1.
|
|
6
|
+
* OpenAPI spec version: 0.1.1
|
|
7
7
|
*/
|
|
8
|
-
import type { AppDbResponseDto } from './appDbResponseDto';
|
|
8
|
+
import type { AppDbResponseDto } from './appDbResponseDto.js';
|
|
9
9
|
export interface AppDbsResponseDto {
|
|
10
10
|
/** The app slug these databases belong to. */
|
|
11
11
|
appSlug: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
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.1
|
|
7
|
+
*/
|
|
8
|
+
import type { AppDbsResponseDto } from './appDbsResponseDto.js';
|
|
9
|
+
export interface AppDbsResponseDtoDataEnvelope {
|
|
10
|
+
data: AppDbsResponseDto;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Webapp Studio API
|
|
5
5
|
* Studio session CRUD + lifecycle + PR-from-working-branch handoff
|
|
6
|
-
* OpenAPI spec version: 0.1.
|
|
6
|
+
* OpenAPI spec version: 0.1.1
|
|
7
7
|
*/
|
|
8
|
-
import type { WebappKind } from './webappKind';
|
|
8
|
+
import type { WebappKind } from './webappKind.js';
|
|
9
9
|
export interface AppTargetDto {
|
|
10
10
|
/**
|
|
11
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.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.15.0 🍺
|
|
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.1
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Store-scoped lifecycle of the submitted version (typically `store-submitted` until a reviewer approves it).
|
|
10
|
+
*/
|
|
11
|
+
export type BiomeLifecycle = typeof BiomeLifecycle[keyof typeof BiomeLifecycle];
|
|
12
|
+
export declare const BiomeLifecycle: {
|
|
13
|
+
readonly draft: "draft";
|
|
14
|
+
readonly 'sandbox-installed': "sandbox-installed";
|
|
15
|
+
readonly 'review-required': "review-required";
|
|
16
|
+
readonly 'org-installed': "org-installed";
|
|
17
|
+
readonly 'store-submitted': "store-submitted";
|
|
18
|
+
readonly 'store-approved': "store-approved";
|
|
19
|
+
readonly archived: "archived";
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.15.0 🍺
|
|
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.1
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.BiomeLifecycle = void 0;
|
|
11
|
+
exports.BiomeLifecycle = {
|
|
12
|
+
draft: 'draft',
|
|
13
|
+
'sandbox-installed': 'sandbox-installed',
|
|
14
|
+
'review-required': 'review-required',
|
|
15
|
+
'org-installed': 'org-installed',
|
|
16
|
+
'store-submitted': 'store-submitted',
|
|
17
|
+
'store-approved': 'store-approved',
|
|
18
|
+
archived: 'archived',
|
|
19
|
+
};
|