@xemahq/app-platform-api-client 0.1.2
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 +174 -0
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +48 -0
- package/dist/custom-fetch.js +146 -0
- package/dist/endpoints/delegated-sessions/delegated-sessions.d.ts +23 -0
- package/dist/endpoints/delegated-sessions/delegated-sessions.js +48 -0
- package/dist/endpoints/project-apps/project-apps.d.ts +83 -0
- package/dist/endpoints/project-apps/project-apps.js +245 -0
- package/dist/endpoints/public-ingress/public-ingress.d.ts +43 -0
- package/dist/endpoints/public-ingress/public-ingress.js +112 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +27 -0
- package/dist/models/anonAuthDto.d.ts +13 -0
- package/dist/models/anonAuthDto.js +9 -0
- package/dist/models/anonAuthResultDto.d.ts +17 -0
- package/dist/models/anonAuthResultDto.js +9 -0
- package/dist/models/appClientDto.d.ts +19 -0
- package/dist/models/appClientDto.js +2 -0
- package/dist/models/appClientDtoRevokedAt.d.ts +13 -0
- package/dist/models/appClientDtoRevokedAt.js +9 -0
- package/dist/models/appDto.d.ts +36 -0
- package/dist/models/appDto.js +2 -0
- package/dist/models/appLockfileDto.d.ts +25 -0
- package/dist/models/appLockfileDto.js +2 -0
- package/dist/models/appLockfileDtoAgents.d.ts +10 -0
- package/dist/models/appLockfileDtoAgents.js +9 -0
- package/dist/models/appLockfileDtoBiomes.d.ts +13 -0
- package/dist/models/appLockfileDtoBiomes.js +9 -0
- package/dist/models/appLockfileDtoCapabilities.d.ts +13 -0
- package/dist/models/appLockfileDtoCapabilities.js +9 -0
- package/dist/models/appLockfileDtoDeliverableSpecs.d.ts +10 -0
- package/dist/models/appLockfileDtoDeliverableSpecs.js +9 -0
- package/dist/models/appLockfileDtoSkills.d.ts +10 -0
- package/dist/models/appLockfileDtoSkills.js +9 -0
- package/dist/models/appLockfileDtoWorkflows.d.ts +10 -0
- package/dist/models/appLockfileDtoWorkflows.js +9 -0
- package/dist/models/audienceKind.d.ts +13 -0
- package/dist/models/audienceKind.js +15 -0
- package/dist/models/audiencePolicyDto.d.ts +21 -0
- package/dist/models/audiencePolicyDto.js +2 -0
- package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.d.ts +13 -0
- package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.js +9 -0
- package/dist/models/audienceUpstreamDto.d.ts +13 -0
- package/dist/models/audienceUpstreamDto.js +2 -0
- package/dist/models/audienceUpstreamDtoMetadata.d.ts +10 -0
- package/dist/models/audienceUpstreamDtoMetadata.js +9 -0
- package/dist/models/audienceUpstreamType.d.ts +13 -0
- package/dist/models/audienceUpstreamType.js +15 -0
- package/dist/models/biomeInstallDto.d.ts +16 -0
- package/dist/models/biomeInstallDto.js +2 -0
- package/dist/models/biomeInstallDtoConfiguration.d.ts +13 -0
- package/dist/models/biomeInstallDtoConfiguration.js +9 -0
- package/dist/models/brandingConfigDto.d.ts +18 -0
- package/dist/models/brandingConfigDto.js +2 -0
- package/dist/models/brandingConfigDtoCssTokens.d.ts +13 -0
- package/dist/models/brandingConfigDtoCssTokens.js +9 -0
- package/dist/models/capabilityPolicyOverrideDto.d.ts +16 -0
- package/dist/models/capabilityPolicyOverrideDto.js +9 -0
- package/dist/models/createAppClientDto.d.ts +12 -0
- package/dist/models/createAppClientDto.js +9 -0
- package/dist/models/createAudiencePolicyDto.d.ts +17 -0
- package/dist/models/createAudiencePolicyDto.js +2 -0
- package/dist/models/createPortalDto.d.ts +29 -0
- package/dist/models/createPortalDto.js +2 -0
- package/dist/models/createProjectAppDto.d.ts +33 -0
- package/dist/models/createProjectAppDto.js +2 -0
- package/dist/models/createProjectAppDtoProjectId.d.ts +14 -0
- package/dist/models/createProjectAppDtoProjectId.js +9 -0
- package/dist/models/createPublicSessionDto.d.ts +19 -0
- package/dist/models/createPublicSessionDto.js +9 -0
- package/dist/models/createdAppClientDto.d.ts +21 -0
- package/dist/models/createdAppClientDto.js +2 -0
- package/dist/models/createdAppClientDtoRevokedAt.d.ts +13 -0
- package/dist/models/createdAppClientDtoRevokedAt.js +9 -0
- package/dist/models/createdPublicSessionDto.d.ts +23 -0
- package/dist/models/createdPublicSessionDto.js +9 -0
- package/dist/models/delegatedSessionDto.d.ts +27 -0
- package/dist/models/delegatedSessionDto.js +2 -0
- package/dist/models/delegatedSessionDtoExternalSubjectId.d.ts +13 -0
- package/dist/models/delegatedSessionDtoExternalSubjectId.js +9 -0
- package/dist/models/delegatedSessionDtoRevokedAt.d.ts +13 -0
- package/dist/models/delegatedSessionDtoRevokedAt.js +9 -0
- package/dist/models/delegatedSessionStatus.d.ts +13 -0
- package/dist/models/delegatedSessionStatus.js +15 -0
- package/dist/models/delegatedSessionStatusDto.d.ts +29 -0
- package/dist/models/delegatedSessionStatusDto.js +2 -0
- package/dist/models/delegatedSessionStatusDtoExternalSubjectId.d.ts +13 -0
- package/dist/models/delegatedSessionStatusDtoExternalSubjectId.js +9 -0
- package/dist/models/delegatedSessionStatusDtoRevokedAt.d.ts +13 -0
- package/dist/models/delegatedSessionStatusDtoRevokedAt.js +9 -0
- package/dist/models/index.d.ts +58 -0
- package/dist/models/index.js +75 -0
- package/dist/models/oidcAuthDto.d.ts +13 -0
- package/dist/models/oidcAuthDto.js +9 -0
- package/dist/models/oidcAuthResultDto.d.ts +17 -0
- package/dist/models/oidcAuthResultDto.js +9 -0
- package/dist/models/portalAccessDto.d.ts +14 -0
- package/dist/models/portalAccessDto.js +2 -0
- package/dist/models/portalDetailDto.d.ts +13 -0
- package/dist/models/portalDetailDto.js +2 -0
- package/dist/models/portalShareDto.d.ts +14 -0
- package/dist/models/portalShareDto.js +2 -0
- package/dist/models/projectAppsControllerListParams.d.ts +14 -0
- package/dist/models/projectAppsControllerListParams.js +9 -0
- package/dist/models/requestMagicLinkDto.d.ts +13 -0
- package/dist/models/requestMagicLinkDto.js +9 -0
- package/dist/models/requestMagicLinkResultDto.d.ts +11 -0
- package/dist/models/requestMagicLinkResultDto.js +9 -0
- package/dist/models/resourceManagedBy.d.ts +19 -0
- package/dist/models/resourceManagedBy.js +18 -0
- package/dist/models/resourceVisibilityPattern.d.ts +18 -0
- package/dist/models/resourceVisibilityPattern.js +17 -0
- package/dist/models/subjectKind.d.ts +23 -0
- package/dist/models/subjectKind.js +22 -0
- package/dist/models/tokenClass.d.ts +19 -0
- package/dist/models/tokenClass.js +18 -0
- package/dist/models/updateAudiencePolicyDto.d.ts +15 -0
- package/dist/models/updateAudiencePolicyDto.js +2 -0
- package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.d.ts +13 -0
- package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.js +9 -0
- package/dist/models/updatePortalDto.d.ts +25 -0
- package/dist/models/updatePortalDto.js +2 -0
- package/dist/models/verifyDelegatedSessionRequestDto.d.ts +11 -0
- package/dist/models/verifyDelegatedSessionRequestDto.js +9 -0
- package/dist/models/verifyDelegatedSessionResponseDto.d.ts +23 -0
- package/dist/models/verifyDelegatedSessionResponseDto.js +2 -0
- package/dist/models/verifyMagicLinkDto.d.ts +11 -0
- package/dist/models/verifyMagicLinkDto.js +9 -0
- package/dist/models/verifyMagicLinkResultDto.d.ts +17 -0
- package/dist/models/verifyMagicLinkResultDto.js +9 -0
- package/package.json +41 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Map of `CapabilityRef` (sans `@major`) → chosen major.
|
|
10
|
+
*/
|
|
11
|
+
export type AppLockfileDtoCapabilities = {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AudienceKind = typeof AudienceKind[keyof typeof AudienceKind];
|
|
9
|
+
export declare const AudienceKind: {
|
|
10
|
+
readonly 'internal-org': "internal-org";
|
|
11
|
+
readonly 'external-subject': "external-subject";
|
|
12
|
+
readonly 'public-anon': "public-anon";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* App Runtime API
|
|
6
|
+
* App Runtime API extract (generated for client codegen).
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AudienceKind = void 0;
|
|
11
|
+
exports.AudienceKind = {
|
|
12
|
+
'internal-org': 'internal-org',
|
|
13
|
+
'external-subject': 'external-subject',
|
|
14
|
+
'public-anon': 'public-anon',
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AudienceKind } from './audienceKind.js';
|
|
9
|
+
import type { AudiencePolicyDtoRateLimitPerHourPerSubject } from './audiencePolicyDtoRateLimitPerHourPerSubject.js';
|
|
10
|
+
import type { AudienceUpstreamDto } from './audienceUpstreamDto.js';
|
|
11
|
+
export interface AudiencePolicyDto {
|
|
12
|
+
id: string;
|
|
13
|
+
appId: string;
|
|
14
|
+
kind: AudienceKind;
|
|
15
|
+
allowedEnvironments: string[];
|
|
16
|
+
authUpstream?: AudienceUpstreamDto | null;
|
|
17
|
+
/** @nullable */
|
|
18
|
+
rateLimitPerHourPerSubject?: AudiencePolicyDtoRateLimitPerHourPerSubject;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type AudiencePolicyDtoRateLimitPerHourPerSubject = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AudienceUpstreamDtoMetadata } from './audienceUpstreamDtoMetadata.js';
|
|
9
|
+
import type { AudienceUpstreamType } from './audienceUpstreamType.js';
|
|
10
|
+
export interface AudienceUpstreamDto {
|
|
11
|
+
type: AudienceUpstreamType;
|
|
12
|
+
metadata?: AudienceUpstreamDtoMetadata;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AudienceUpstreamType = typeof AudienceUpstreamType[keyof typeof AudienceUpstreamType];
|
|
9
|
+
export declare const AudienceUpstreamType: {
|
|
10
|
+
readonly oidc: "oidc";
|
|
11
|
+
readonly 'magic-link': "magic-link";
|
|
12
|
+
readonly anon: "anon";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* App Runtime API
|
|
6
|
+
* App Runtime API extract (generated for client codegen).
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AudienceUpstreamType = void 0;
|
|
11
|
+
exports.AudienceUpstreamType = {
|
|
12
|
+
oidc: 'oidc',
|
|
13
|
+
'magic-link': 'magic-link',
|
|
14
|
+
anon: 'anon',
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { BiomeInstallDtoConfiguration } from './biomeInstallDtoConfiguration.js';
|
|
9
|
+
export interface BiomeInstallDto {
|
|
10
|
+
/** Canonical XemaObjectRef for the biome (e.g. `xema://system/biome/document-buddy`). */
|
|
11
|
+
biomeRef: string;
|
|
12
|
+
/** Semver-range string (`^1.2.0`, `~1.2.0`, `1.2.0`, `latest-compatible`). */
|
|
13
|
+
versionConstraint: string;
|
|
14
|
+
/** Free-form per-install configuration the biome consumes. */
|
|
15
|
+
configuration?: BiomeInstallDtoConfiguration;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Free-form per-install configuration the biome consumes.
|
|
10
|
+
*/
|
|
11
|
+
export type BiomeInstallDtoConfiguration = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { BrandingConfigDtoCssTokens } from './brandingConfigDtoCssTokens.js';
|
|
9
|
+
export interface BrandingConfigDto {
|
|
10
|
+
/** Human-readable App label shown to audiences. */
|
|
11
|
+
displayName: string;
|
|
12
|
+
/** Public logo URL. */
|
|
13
|
+
logoUrl?: string;
|
|
14
|
+
/** Primary brand color in `#rgb`, `#rrggbb`, `#rrggbbaa`, `rgb()`, or `rgba()` form. */
|
|
15
|
+
primaryColor?: string;
|
|
16
|
+
/** Free-form CSS custom-property tokens (without leading `--`). */
|
|
17
|
+
cssTokens?: BrandingConfigDtoCssTokens;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Free-form CSS custom-property tokens (without leading `--`).
|
|
10
|
+
*/
|
|
11
|
+
export type BrandingConfigDtoCssTokens = {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface CapabilityPolicyOverrideDto {
|
|
9
|
+
/** Canonical CapabilityRef (e.g. `kb:page.read@1`). */
|
|
10
|
+
capability: string;
|
|
11
|
+
allowedResources?: string[];
|
|
12
|
+
/** ExecutionEnvironmentRef slugs the capability is narrowed to. */
|
|
13
|
+
allowedEnvironments?: string[];
|
|
14
|
+
/** Per-App rate cap. */
|
|
15
|
+
rateLimit?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface CreateAppClientDto {
|
|
9
|
+
displayName?: string;
|
|
10
|
+
/** OAuth-style redirect URI allow-list. */
|
|
11
|
+
redirectUris?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AudienceKind } from './audienceKind.js';
|
|
9
|
+
import type { AudienceUpstreamDto } from './audienceUpstreamDto.js';
|
|
10
|
+
export interface CreateAudiencePolicyDto {
|
|
11
|
+
kind: AudienceKind;
|
|
12
|
+
/** ExecutionEnvironmentRef slugs this audience may invoke. Required. */
|
|
13
|
+
allowedEnvironments: string[];
|
|
14
|
+
authUpstream?: AudienceUpstreamDto;
|
|
15
|
+
/** Rate cap (calls/hour/subject). */
|
|
16
|
+
rateLimitPerHourPerSubject?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
9
|
+
import type { BiomeInstallDto } from './biomeInstallDto.js';
|
|
10
|
+
import type { BrandingConfigDto } from './brandingConfigDto.js';
|
|
11
|
+
import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
|
|
12
|
+
import type { PortalAccessDto } from './portalAccessDto.js';
|
|
13
|
+
export interface CreatePortalDto {
|
|
14
|
+
/** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
|
|
15
|
+
slug: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
/** Default ExecutionEnvironment slug (e.g. `public-session`). */
|
|
18
|
+
defaultZone: string;
|
|
19
|
+
branding: BrandingConfigDto;
|
|
20
|
+
lockfile: AppLockfileDto;
|
|
21
|
+
installedBiomes: BiomeInstallDto[];
|
|
22
|
+
capabilityPolicy: CapabilityPolicyOverrideDto[];
|
|
23
|
+
/** @nullable */
|
|
24
|
+
subdomain?: string | null;
|
|
25
|
+
subdomainEnabled?: boolean;
|
|
26
|
+
defaultAudience?: string;
|
|
27
|
+
archived?: boolean;
|
|
28
|
+
access?: PortalAccessDto;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
9
|
+
import type { BiomeInstallDto } from './biomeInstallDto.js';
|
|
10
|
+
import type { BrandingConfigDto } from './brandingConfigDto.js';
|
|
11
|
+
import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
|
|
12
|
+
import type { CreateProjectAppDtoProjectId } from './createProjectAppDtoProjectId.js';
|
|
13
|
+
export interface CreateProjectAppDto {
|
|
14
|
+
/** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
|
|
15
|
+
slug: string;
|
|
16
|
+
/**
|
|
17
|
+
* Project id. Null or absent for org-scoped portals.
|
|
18
|
+
* @nullable
|
|
19
|
+
*/
|
|
20
|
+
projectId?: CreateProjectAppDtoProjectId;
|
|
21
|
+
displayName: string;
|
|
22
|
+
/** Default ExecutionEnvironment slug (e.g. `public-session`). */
|
|
23
|
+
defaultZone: string;
|
|
24
|
+
branding: BrandingConfigDto;
|
|
25
|
+
lockfile: AppLockfileDto;
|
|
26
|
+
installedBiomes: BiomeInstallDto[];
|
|
27
|
+
capabilityPolicy: CapabilityPolicyOverrideDto[];
|
|
28
|
+
/** @nullable */
|
|
29
|
+
subdomain?: string | null;
|
|
30
|
+
subdomainEnabled?: boolean;
|
|
31
|
+
defaultAudience?: string;
|
|
32
|
+
archived?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Project id. Null or absent for org-scoped portals.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type CreateProjectAppDtoProjectId = {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
} | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface CreatePublicSessionDto {
|
|
9
|
+
/** AppClient public identifier. */
|
|
10
|
+
clientId: string;
|
|
11
|
+
/** Plaintext AppClient secret. Required even for public-anon sessions so the App owner controls who may open anon sessions. */
|
|
12
|
+
clientSecret: string;
|
|
13
|
+
/** Upstream subject id (for external-subject audiences). Mutually exclusive with `subjectAnon: true`. */
|
|
14
|
+
subjectExternalId?: string;
|
|
15
|
+
/** Set true to mint a public-anon session (no externalId). Mutually exclusive with `subjectExternalId`. */
|
|
16
|
+
subjectAnon?: boolean;
|
|
17
|
+
/** Requested ExecutionEnvironment slug (e.g. `public-session`). Defaults to the App's `defaultZone` when omitted. Must be in the resolved AudiencePolicy.allowedEnvironments[]. */
|
|
18
|
+
requestedZone?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreatedAppClientDtoRevokedAt } from './createdAppClientDtoRevokedAt.js';
|
|
9
|
+
export interface CreatedAppClientDto {
|
|
10
|
+
id: string;
|
|
11
|
+
appId: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
redirectUris: string[];
|
|
15
|
+
/** @nullable */
|
|
16
|
+
revokedAt?: CreatedAppClientDtoRevokedAt;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
/** Plain-text client secret. Returned ONCE at issue time. Persist this securely; the service stores only a hash and CANNOT recover it. */
|
|
20
|
+
clientSecret: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type CreatedAppClientDtoRevokedAt = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* App Runtime API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface CreatedPublicSessionDto {
|
|
9
|
+
/** Signed delegated-session JWT. */
|
|
10
|
+
accessToken: string;
|
|
11
|
+
/** Token expiry (ISO-8601). */
|
|
12
|
+
expiresAt: string;
|
|
13
|
+
/** Server-side DelegatedSession row id. */
|
|
14
|
+
sessionId: string;
|
|
15
|
+
/** Subject ref minted into the token. */
|
|
16
|
+
subjectRef: string;
|
|
17
|
+
/** Actor ref (the AppClient). */
|
|
18
|
+
actorRef: string;
|
|
19
|
+
/** Execution environment slug stamped on the session. */
|
|
20
|
+
environment: string;
|
|
21
|
+
/** Capabilities the token authorizes at the gateway. */
|
|
22
|
+
capabilities: string[];
|
|
23
|
+
}
|