@xemahq/app-runtime-internal-api-client 0.1.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.
Files changed (85) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +62 -0
  3. package/dist/custom-fetch.d.ts +48 -0
  4. package/dist/custom-fetch.js +146 -0
  5. package/dist/endpoints/app-clients/app-clients.d.ts +28 -0
  6. package/dist/endpoints/app-clients/app-clients.js +62 -0
  7. package/dist/endpoints/apps/apps.d.ts +43 -0
  8. package/dist/endpoints/apps/apps.js +125 -0
  9. package/dist/endpoints/audience-policies/audience-policies.d.ts +28 -0
  10. package/dist/endpoints/audience-policies/audience-policies.js +64 -0
  11. package/dist/endpoints/delegated-sessions/delegated-sessions.d.ts +13 -0
  12. package/dist/endpoints/delegated-sessions/delegated-sessions.js +20 -0
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.js +28 -0
  15. package/dist/models/appClientDto.d.ts +19 -0
  16. package/dist/models/appClientDto.js +2 -0
  17. package/dist/models/appClientDtoRevokedAt.d.ts +13 -0
  18. package/dist/models/appClientDtoRevokedAt.js +9 -0
  19. package/dist/models/appDto.d.ts +36 -0
  20. package/dist/models/appDto.js +2 -0
  21. package/dist/models/appLockfileDto.d.ts +25 -0
  22. package/dist/models/appLockfileDto.js +2 -0
  23. package/dist/models/appLockfileDtoAgents.d.ts +10 -0
  24. package/dist/models/appLockfileDtoAgents.js +9 -0
  25. package/dist/models/appLockfileDtoBiomes.d.ts +13 -0
  26. package/dist/models/appLockfileDtoBiomes.js +9 -0
  27. package/dist/models/appLockfileDtoCapabilities.d.ts +13 -0
  28. package/dist/models/appLockfileDtoCapabilities.js +9 -0
  29. package/dist/models/appLockfileDtoDeliverableSpecs.d.ts +10 -0
  30. package/dist/models/appLockfileDtoDeliverableSpecs.js +9 -0
  31. package/dist/models/appLockfileDtoSkills.d.ts +10 -0
  32. package/dist/models/appLockfileDtoSkills.js +9 -0
  33. package/dist/models/appLockfileDtoWorkflows.d.ts +10 -0
  34. package/dist/models/appLockfileDtoWorkflows.js +9 -0
  35. package/dist/models/appsControllerListParams.d.ts +13 -0
  36. package/dist/models/appsControllerListParams.js +9 -0
  37. package/dist/models/audienceKind.d.ts +13 -0
  38. package/dist/models/audienceKind.js +15 -0
  39. package/dist/models/audiencePolicyDto.d.ts +21 -0
  40. package/dist/models/audiencePolicyDto.js +2 -0
  41. package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.d.ts +13 -0
  42. package/dist/models/audiencePolicyDtoRateLimitPerHourPerSubject.js +9 -0
  43. package/dist/models/audienceUpstreamDto.d.ts +13 -0
  44. package/dist/models/audienceUpstreamDto.js +2 -0
  45. package/dist/models/audienceUpstreamDtoMetadata.d.ts +10 -0
  46. package/dist/models/audienceUpstreamDtoMetadata.js +9 -0
  47. package/dist/models/audienceUpstreamType.d.ts +13 -0
  48. package/dist/models/audienceUpstreamType.js +15 -0
  49. package/dist/models/biomeInstallDto.d.ts +16 -0
  50. package/dist/models/biomeInstallDto.js +2 -0
  51. package/dist/models/biomeInstallDtoConfiguration.d.ts +13 -0
  52. package/dist/models/biomeInstallDtoConfiguration.js +9 -0
  53. package/dist/models/brandingConfigDto.d.ts +18 -0
  54. package/dist/models/brandingConfigDto.js +2 -0
  55. package/dist/models/brandingConfigDtoCssTokens.d.ts +13 -0
  56. package/dist/models/brandingConfigDtoCssTokens.js +9 -0
  57. package/dist/models/capabilityPolicyOverrideDto.d.ts +16 -0
  58. package/dist/models/capabilityPolicyOverrideDto.js +9 -0
  59. package/dist/models/createAppClientDto.d.ts +12 -0
  60. package/dist/models/createAppClientDto.js +9 -0
  61. package/dist/models/createAppDto.d.ts +34 -0
  62. package/dist/models/createAppDto.js +2 -0
  63. package/dist/models/createAppDtoProjectId.d.ts +14 -0
  64. package/dist/models/createAppDtoProjectId.js +9 -0
  65. package/dist/models/createAudiencePolicyDto.d.ts +17 -0
  66. package/dist/models/createAudiencePolicyDto.js +2 -0
  67. package/dist/models/createdAppClientDto.d.ts +21 -0
  68. package/dist/models/createdAppClientDto.js +2 -0
  69. package/dist/models/createdAppClientDtoRevokedAt.d.ts +13 -0
  70. package/dist/models/createdAppClientDtoRevokedAt.js +9 -0
  71. package/dist/models/index.d.ts +34 -0
  72. package/dist/models/index.js +51 -0
  73. package/dist/models/mintForInviteRequestDto.d.ts +19 -0
  74. package/dist/models/mintForInviteRequestDto.js +9 -0
  75. package/dist/models/mintForInviteResponseDto.d.ts +13 -0
  76. package/dist/models/mintForInviteResponseDto.js +9 -0
  77. package/dist/models/resourceManagedBy.d.ts +17 -0
  78. package/dist/models/resourceManagedBy.js +16 -0
  79. package/dist/models/updateAppDto.d.ts +23 -0
  80. package/dist/models/updateAppDto.js +2 -0
  81. package/dist/models/updateAudiencePolicyDto.d.ts +15 -0
  82. package/dist/models/updateAudiencePolicyDto.js +2 -0
  83. package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.d.ts +13 -0
  84. package/dist/models/updateAudiencePolicyDtoRateLimitPerHourPerSubject.js +9 -0
  85. package/package.json +38 -0
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.appsControllerRefreshLockfile = exports.getAppsControllerRefreshLockfileUrl = exports.appsControllerDelete = exports.getAppsControllerDeleteUrl = exports.appsControllerArchive = exports.getAppsControllerArchiveUrl = exports.appsControllerUpdate = exports.getAppsControllerUpdateUrl = exports.appsControllerGetById = exports.getAppsControllerGetByIdUrl = exports.appsControllerList = exports.getAppsControllerListUrl = exports.appsControllerCreate = exports.getAppsControllerCreateUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getAppsControllerCreateUrl = () => {
6
+ return `/apps`;
7
+ };
8
+ exports.getAppsControllerCreateUrl = getAppsControllerCreateUrl;
9
+ /**
10
+ * @summary Create an App.
11
+ */
12
+ const appsControllerCreate = async (createAppDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerCreateUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(createAppDto)
18
+ });
19
+ };
20
+ exports.appsControllerCreate = appsControllerCreate;
21
+ const getAppsControllerListUrl = (params) => {
22
+ const normalizedParams = new URLSearchParams();
23
+ Object.entries(params || {}).forEach(([key, value]) => {
24
+ if (value === undefined)
25
+ return;
26
+ if (value === null) {
27
+ normalizedParams.append(key, 'null');
28
+ return;
29
+ }
30
+ if (Array.isArray(value)) {
31
+ for (const item of value) {
32
+ if (item === undefined || item === null)
33
+ continue;
34
+ normalizedParams.append(key, item.toString());
35
+ }
36
+ return;
37
+ }
38
+ normalizedParams.append(key, value.toString());
39
+ });
40
+ const stringifiedParams = normalizedParams.toString();
41
+ return stringifiedParams.length > 0 ? `/apps?${stringifiedParams}` : `/apps`;
42
+ };
43
+ exports.getAppsControllerListUrl = getAppsControllerListUrl;
44
+ /**
45
+ * @summary List Apps (filtered by orgId, projectId, portalOnly, and/or slug).
46
+ */
47
+ const appsControllerList = async (params, options) => {
48
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerListUrl)(params), {
49
+ ...options,
50
+ method: 'GET'
51
+ });
52
+ };
53
+ exports.appsControllerList = appsControllerList;
54
+ const getAppsControllerGetByIdUrl = (id) => {
55
+ return `/apps/${id}`;
56
+ };
57
+ exports.getAppsControllerGetByIdUrl = getAppsControllerGetByIdUrl;
58
+ /**
59
+ * @summary Get an App by id.
60
+ */
61
+ const appsControllerGetById = async (id, options) => {
62
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerGetByIdUrl)(id), {
63
+ ...options,
64
+ method: 'GET'
65
+ });
66
+ };
67
+ exports.appsControllerGetById = appsControllerGetById;
68
+ const getAppsControllerUpdateUrl = (id) => {
69
+ return `/apps/${id}`;
70
+ };
71
+ exports.getAppsControllerUpdateUrl = getAppsControllerUpdateUrl;
72
+ /**
73
+ * @summary Update an App.
74
+ */
75
+ const appsControllerUpdate = async (id, updateAppDto, options) => {
76
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerUpdateUrl)(id), {
77
+ ...options,
78
+ method: 'PATCH',
79
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
80
+ body: JSON.stringify(updateAppDto)
81
+ });
82
+ };
83
+ exports.appsControllerUpdate = appsControllerUpdate;
84
+ const getAppsControllerArchiveUrl = (id) => {
85
+ return `/apps/${id}/archive`;
86
+ };
87
+ exports.getAppsControllerArchiveUrl = getAppsControllerArchiveUrl;
88
+ /**
89
+ * @summary Soft-archive an App.
90
+ */
91
+ const appsControllerArchive = async (id, options) => {
92
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerArchiveUrl)(id), {
93
+ ...options,
94
+ method: 'POST'
95
+ });
96
+ };
97
+ exports.appsControllerArchive = appsControllerArchive;
98
+ const getAppsControllerDeleteUrl = (id) => {
99
+ return `/apps/${id}`;
100
+ };
101
+ exports.getAppsControllerDeleteUrl = getAppsControllerDeleteUrl;
102
+ /**
103
+ * @summary Hard-delete an App (cascades to its access grants, app-clients, and integration rows). Use `archive` for a reversible retire; delete is the verb the declarative control plane reconciles a removed resource into.
104
+ */
105
+ const appsControllerDelete = async (id, options) => {
106
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerDeleteUrl)(id), {
107
+ ...options,
108
+ method: 'DELETE'
109
+ });
110
+ };
111
+ exports.appsControllerDelete = appsControllerDelete;
112
+ const getAppsControllerRefreshLockfileUrl = (id) => {
113
+ return `/apps/${id}/lockfile/refresh`;
114
+ };
115
+ exports.getAppsControllerRefreshLockfileUrl = getAppsControllerRefreshLockfileUrl;
116
+ /**
117
+ * @summary Refresh the App lockfile. Re-pins kernel + installed biomes (and capabilities already present in the lockfile) via the kernel Lockfile Resolver. Returns 422 LOCKFILE_RESOLVER_FAILED on any unsatisfiable constraint, malformed ref, or unreachable upstream.
118
+ */
119
+ const appsControllerRefreshLockfile = async (id, options) => {
120
+ return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerRefreshLockfileUrl)(id), {
121
+ ...options,
122
+ method: 'POST'
123
+ });
124
+ };
125
+ exports.appsControllerRefreshLockfile = appsControllerRefreshLockfile;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by orval v8.15.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 { AudiencePolicyDto, CreateAudiencePolicyDto, UpdateAudiencePolicyDto } from '../../models';
9
+ export declare const getAudiencePoliciesControllerCreateUrl: (appId: string) => string;
10
+ /**
11
+ * @summary Create an AudiencePolicy on an App.
12
+ */
13
+ export declare const audiencePoliciesControllerCreate: (appId: string, createAudiencePolicyDto: CreateAudiencePolicyDto, options?: RequestInit) => Promise<AudiencePolicyDto>;
14
+ export declare const getAudiencePoliciesControllerListUrl: (appId: string) => string;
15
+ /**
16
+ * @summary List AudiencePolicies for an App.
17
+ */
18
+ export declare const audiencePoliciesControllerList: (appId: string, options?: RequestInit) => Promise<AudiencePolicyDto[]>;
19
+ export declare const getAudiencePoliciesControllerUpdateUrl: (id: string) => string;
20
+ /**
21
+ * @summary Update an AudiencePolicy.
22
+ */
23
+ export declare const audiencePoliciesControllerUpdate: (id: string, updateAudiencePolicyDto: UpdateAudiencePolicyDto, options?: RequestInit) => Promise<AudiencePolicyDto>;
24
+ export declare const getAudiencePoliciesControllerDeleteUrl: (id: string) => string;
25
+ /**
26
+ * @summary Delete an AudiencePolicy.
27
+ */
28
+ export declare const audiencePoliciesControllerDelete: (id: string, options?: RequestInit) => Promise<void>;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.audiencePoliciesControllerDelete = exports.getAudiencePoliciesControllerDeleteUrl = exports.audiencePoliciesControllerUpdate = exports.getAudiencePoliciesControllerUpdateUrl = exports.audiencePoliciesControllerList = exports.getAudiencePoliciesControllerListUrl = exports.audiencePoliciesControllerCreate = exports.getAudiencePoliciesControllerCreateUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getAudiencePoliciesControllerCreateUrl = (appId) => {
6
+ return `/apps/${appId}/audience-policies`;
7
+ };
8
+ exports.getAudiencePoliciesControllerCreateUrl = getAudiencePoliciesControllerCreateUrl;
9
+ /**
10
+ * @summary Create an AudiencePolicy on an App.
11
+ */
12
+ const audiencePoliciesControllerCreate = async (appId, createAudiencePolicyDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerCreateUrl)(appId), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(createAudiencePolicyDto)
18
+ });
19
+ };
20
+ exports.audiencePoliciesControllerCreate = audiencePoliciesControllerCreate;
21
+ const getAudiencePoliciesControllerListUrl = (appId) => {
22
+ return `/apps/${appId}/audience-policies`;
23
+ };
24
+ exports.getAudiencePoliciesControllerListUrl = getAudiencePoliciesControllerListUrl;
25
+ /**
26
+ * @summary List AudiencePolicies for an App.
27
+ */
28
+ const audiencePoliciesControllerList = async (appId, options) => {
29
+ return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerListUrl)(appId), {
30
+ ...options,
31
+ method: 'GET'
32
+ });
33
+ };
34
+ exports.audiencePoliciesControllerList = audiencePoliciesControllerList;
35
+ const getAudiencePoliciesControllerUpdateUrl = (id) => {
36
+ return `/audience-policies/${id}`;
37
+ };
38
+ exports.getAudiencePoliciesControllerUpdateUrl = getAudiencePoliciesControllerUpdateUrl;
39
+ /**
40
+ * @summary Update an AudiencePolicy.
41
+ */
42
+ const audiencePoliciesControllerUpdate = async (id, updateAudiencePolicyDto, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerUpdateUrl)(id), {
44
+ ...options,
45
+ method: 'PATCH',
46
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
47
+ body: JSON.stringify(updateAudiencePolicyDto)
48
+ });
49
+ };
50
+ exports.audiencePoliciesControllerUpdate = audiencePoliciesControllerUpdate;
51
+ const getAudiencePoliciesControllerDeleteUrl = (id) => {
52
+ return `/audience-policies/${id}`;
53
+ };
54
+ exports.getAudiencePoliciesControllerDeleteUrl = getAudiencePoliciesControllerDeleteUrl;
55
+ /**
56
+ * @summary Delete an AudiencePolicy.
57
+ */
58
+ const audiencePoliciesControllerDelete = async (id, options) => {
59
+ return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerDeleteUrl)(id), {
60
+ ...options,
61
+ method: 'DELETE'
62
+ });
63
+ };
64
+ exports.audiencePoliciesControllerDelete = audiencePoliciesControllerDelete;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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 { MintForInviteRequestDto, MintForInviteResponseDto } from '../../models';
9
+ export declare const getInternalDelegatedSessionsControllerMintForInviteUrl: () => string;
10
+ /**
11
+ * @summary Mint a delegated-session JWT for an external invitee. Service-to-service.
12
+ */
13
+ export declare const internalDelegatedSessionsControllerMintForInvite: (mintForInviteRequestDto: MintForInviteRequestDto, options?: RequestInit) => Promise<MintForInviteResponseDto>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.internalDelegatedSessionsControllerMintForInvite = exports.getInternalDelegatedSessionsControllerMintForInviteUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getInternalDelegatedSessionsControllerMintForInviteUrl = () => {
6
+ return `/internal/delegated-sessions/mint-for-invite`;
7
+ };
8
+ exports.getInternalDelegatedSessionsControllerMintForInviteUrl = getInternalDelegatedSessionsControllerMintForInviteUrl;
9
+ /**
10
+ * @summary Mint a delegated-session JWT for an external invitee. Service-to-service.
11
+ */
12
+ const internalDelegatedSessionsControllerMintForInvite = async (mintForInviteRequestDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getInternalDelegatedSessionsControllerMintForInviteUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(mintForInviteRequestDto)
18
+ });
19
+ };
20
+ exports.internalDelegatedSessionsControllerMintForInvite = internalDelegatedSessionsControllerMintForInvite;
@@ -0,0 +1,6 @@
1
+ export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
2
+ export * from './models';
3
+ export * from './endpoints/app-clients/app-clients';
4
+ export * from './endpoints/apps/apps';
5
+ export * from './endpoints/audience-policies/audience-policies';
6
+ export * from './endpoints/delegated-sessions/delegated-sessions';
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
18
+ // Auto-generated by @xemahq/api-client-generator — do not edit manually.
19
+ var custom_fetch_1 = require("./custom-fetch");
20
+ Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
21
+ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
22
+ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
23
+ Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
+ __exportStar(require("./models"), exports);
25
+ __exportStar(require("./endpoints/app-clients/app-clients"), exports);
26
+ __exportStar(require("./endpoints/apps/apps"), exports);
27
+ __exportStar(require("./endpoints/audience-policies/audience-policies"), exports);
28
+ __exportStar(require("./endpoints/delegated-sessions/delegated-sessions"), exports);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generated by orval v8.15.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 { AppClientDtoRevokedAt } from './appClientDtoRevokedAt.js';
9
+ export interface AppClientDto {
10
+ id: string;
11
+ appId: string;
12
+ clientId: string;
13
+ displayName?: string;
14
+ redirectUris: string[];
15
+ /** @nullable */
16
+ revokedAt?: AppClientDtoRevokedAt;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppClientDtoRevokedAt = {
12
+ [key: string]: unknown;
13
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,36 @@
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 { ResourceManagedBy } from './resourceManagedBy.js';
13
+ export interface AppDto {
14
+ id: string;
15
+ slug: string;
16
+ orgId: string;
17
+ /** @nullable */
18
+ projectId: string | null;
19
+ /** Canonical XemaObjectRef computed from (orgId, projectId, App, slug). */
20
+ ref: string;
21
+ displayName: string;
22
+ defaultZone: string;
23
+ branding: BrandingConfigDto;
24
+ lockfile: AppLockfileDto;
25
+ installedBiomes: BiomeInstallDto[];
26
+ capabilityPolicy: CapabilityPolicyOverrideDto[];
27
+ /** @nullable */
28
+ subdomain: string | null;
29
+ subdomainEnabled: boolean;
30
+ defaultAudience: string;
31
+ archived: boolean;
32
+ /** Provisioning ownership marker. `iac` = managed by the declarative control plane (Terraform / xema.yaml); `seeder` = a distribution default; `ui` = hand-managed (or adopted from iac/seeder via a UI edit); `system` = platform-shipped; null = unmanaged/legacy. Lets a console badge an IaC-owned resource and surface an "export as code" affordance. */
33
+ managedBy: ResourceManagedBy | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Generated by orval v8.15.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 { AppLockfileDtoAgents } from './appLockfileDtoAgents.js';
9
+ import type { AppLockfileDtoBiomes } from './appLockfileDtoBiomes.js';
10
+ import type { AppLockfileDtoCapabilities } from './appLockfileDtoCapabilities.js';
11
+ import type { AppLockfileDtoDeliverableSpecs } from './appLockfileDtoDeliverableSpecs.js';
12
+ import type { AppLockfileDtoSkills } from './appLockfileDtoSkills.js';
13
+ import type { AppLockfileDtoWorkflows } from './appLockfileDtoWorkflows.js';
14
+ export interface AppLockfileDto {
15
+ /** Resolved kernel semver string. */
16
+ kernel: string;
17
+ /** Map of `CapabilityRef` (sans `@major`) → chosen major. */
18
+ capabilities: AppLockfileDtoCapabilities;
19
+ /** Map of biome slug → chosen semver. */
20
+ biomes: AppLockfileDtoBiomes;
21
+ agents?: AppLockfileDtoAgents;
22
+ workflows?: AppLockfileDtoWorkflows;
23
+ deliverableSpecs?: AppLockfileDtoDeliverableSpecs;
24
+ skills?: AppLockfileDtoSkills;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppLockfileDtoAgents = {
9
+ [key: string]: string;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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 biome slug → chosen semver.
10
+ */
11
+ export type AppLockfileDtoBiomes = {
12
+ [key: string]: string;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppLockfileDtoDeliverableSpecs = {
9
+ [key: string]: string;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppLockfileDtoSkills = {
9
+ [key: string]: string;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppLockfileDtoWorkflows = {
9
+ [key: string]: string;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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 AppsControllerListParams = {
9
+ orgId?: string;
10
+ projectId?: string;
11
+ slug?: string;
12
+ portalOnly?: boolean;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.15.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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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.15.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.15.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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.15.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;