@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,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
|
+
/**
|
|
9
|
+
* The minted token class. Always `external_session_token` for a delegated session — a consumer edge can enforce it via `@RequireTokenClass(TokenClass.ExternalSessionToken)`.
|
|
10
|
+
*/
|
|
11
|
+
export type TokenClass = typeof TokenClass[keyof typeof TokenClass];
|
|
12
|
+
export declare const TokenClass: {
|
|
13
|
+
readonly user_jwt: "user_jwt";
|
|
14
|
+
readonly service_jwt: "service_jwt";
|
|
15
|
+
readonly agent_runtime_token: "agent_runtime_token";
|
|
16
|
+
readonly workflow_runtime_token: "workflow_runtime_token";
|
|
17
|
+
readonly external_session_token: "external_session_token";
|
|
18
|
+
readonly runner_attestation_token: "runner_attestation_token";
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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.TokenClass = void 0;
|
|
11
|
+
exports.TokenClass = {
|
|
12
|
+
user_jwt: 'user_jwt',
|
|
13
|
+
service_jwt: 'service_jwt',
|
|
14
|
+
agent_runtime_token: 'agent_runtime_token',
|
|
15
|
+
workflow_runtime_token: 'workflow_runtime_token',
|
|
16
|
+
external_session_token: 'external_session_token',
|
|
17
|
+
runner_attestation_token: 'runner_attestation_token',
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { AudienceUpstreamDto } from './audienceUpstreamDto.js';
|
|
9
|
+
import type { UpdateAudiencePolicyDtoRateLimitPerHourPerSubject } from './updateAudiencePolicyDtoRateLimitPerHourPerSubject.js';
|
|
10
|
+
export interface UpdateAudiencePolicyDto {
|
|
11
|
+
allowedEnvironments?: string[];
|
|
12
|
+
authUpstream?: AudienceUpstreamDto | null;
|
|
13
|
+
/** @nullable */
|
|
14
|
+
rateLimitPerHourPerSubject?: UpdateAudiencePolicyDtoRateLimitPerHourPerSubject;
|
|
15
|
+
}
|
|
@@ -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 UpdateAudiencePolicyDtoRateLimitPerHourPerSubject = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 UpdatePortalDto {
|
|
14
|
+
displayName?: string;
|
|
15
|
+
defaultZone?: string;
|
|
16
|
+
branding?: BrandingConfigDto;
|
|
17
|
+
lockfile?: AppLockfileDto;
|
|
18
|
+
installedBiomes?: BiomeInstallDto[];
|
|
19
|
+
capabilityPolicy?: CapabilityPolicyOverrideDto[];
|
|
20
|
+
/** @nullable */
|
|
21
|
+
subdomain?: string | null;
|
|
22
|
+
subdomainEnabled?: boolean;
|
|
23
|
+
defaultAudience?: string;
|
|
24
|
+
access?: PortalAccessDto;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 VerifyDelegatedSessionRequestDto {
|
|
9
|
+
/** The opaque JWT. */
|
|
10
|
+
token: string;
|
|
11
|
+
}
|
|
@@ -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
|
+
import type { TokenClass } from './tokenClass.js';
|
|
9
|
+
export interface VerifyDelegatedSessionResponseDto {
|
|
10
|
+
/** Id of the App this delegated session was minted FOR (the owning `App.id`, resolved from the backing session row). A consumer edge MUST bind the session to exactly this app before serving app data. */
|
|
11
|
+
appId: string;
|
|
12
|
+
sub: string;
|
|
13
|
+
act: string;
|
|
14
|
+
org: string;
|
|
15
|
+
project: string;
|
|
16
|
+
session: string;
|
|
17
|
+
environment: string;
|
|
18
|
+
capabilities: string[];
|
|
19
|
+
exp: number;
|
|
20
|
+
jti: string;
|
|
21
|
+
/** The minted token class. Always `external_session_token` for a delegated session — a consumer edge can enforce it via `@RequireTokenClass(TokenClass.ExternalSessionToken)`. */
|
|
22
|
+
tokenClass: TokenClass;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 VerifyMagicLinkDto {
|
|
9
|
+
/** The one-time magic-link token. */
|
|
10
|
+
token: string;
|
|
11
|
+
}
|
|
@@ -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
|
+
export interface VerifyMagicLinkResultDto {
|
|
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
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xemahq/app-platform-api-client",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "25.2.3",
|
|
15
|
+
"typescript": "5.9.3"
|
|
16
|
+
},
|
|
17
|
+
"xema": {
|
|
18
|
+
"kind": "api-client",
|
|
19
|
+
"surface": "public",
|
|
20
|
+
"service": "app-platform-api",
|
|
21
|
+
"biome": "app-platform",
|
|
22
|
+
"target": "server",
|
|
23
|
+
"generator": "@xemahq/api-client-generator@0.1.5",
|
|
24
|
+
"source": "openapi.public.json"
|
|
25
|
+
},
|
|
26
|
+
"license": "LicenseRef-Xema-BSL-1.1",
|
|
27
|
+
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
28
|
+
"homepage": "https://xema.dev",
|
|
29
|
+
"bugs": "https://github.com/xema-dev/xema-community/issues",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/xema-dev/xema-community.git",
|
|
33
|
+
"directory": "packages/clients/app-platform-api"
|
|
34
|
+
},
|
|
35
|
+
"description": "Generated public API client for the Xema app-platform-api service.",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"clean": "rm -rf dist",
|
|
38
|
+
"build": "tsc -p tsconfig.json",
|
|
39
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
|
+
}
|
|
41
|
+
}
|