@xemahq/project-registry-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.
- package/LICENSE +201 -0
- package/dist/custom-fetch.d.ts +52 -0
- package/dist/custom-fetch.js +152 -0
- package/dist/endpoints/health/health.d.ts +15 -0
- package/dist/endpoints/health/health.js +53 -0
- package/dist/endpoints/manifest/manifest.d.ts +118 -0
- package/dist/endpoints/manifest/manifest.js +349 -0
- package/dist/endpoints/mcp/mcp.d.ts +6 -0
- package/dist/endpoints/mcp/mcp.js +44 -0
- package/dist/endpoints/onboarding/onboarding.d.ts +13 -0
- package/dist/endpoints/onboarding/onboarding.js +20 -0
- package/dist/endpoints/project-bindings/project-bindings.d.ts +23 -0
- package/dist/endpoints/project-bindings/project-bindings.js +48 -0
- package/dist/endpoints/project-registry/project-registry.d.ts +68 -0
- package/dist/endpoints/project-registry/project-registry.js +205 -0
- package/dist/endpoints/project-roles/project-roles.d.ts +23 -0
- package/dist/endpoints/project-roles/project-roles.js +50 -0
- package/dist/endpoints/variables/variables.d.ts +28 -0
- package/dist/endpoints/variables/variables.js +64 -0
- package/dist/endpoints/wallets/wallets.d.ts +48 -0
- package/dist/endpoints/wallets/wallets.js +124 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +31 -0
- package/dist/models/bootstrapAnalyzeDto.d.ts +14 -0
- package/dist/models/bootstrapAnalyzeDto.js +2 -0
- package/dist/models/bootstrapAnalyzeDtoOptions.d.ts +13 -0
- package/dist/models/bootstrapAnalyzeDtoOptions.js +9 -0
- package/dist/models/bootstrapDecisionDto.d.ts +22 -0
- package/dist/models/bootstrapDecisionDto.js +2 -0
- package/dist/models/bootstrapDecisionDtoDataEnvelope.d.ts +11 -0
- package/dist/models/bootstrapDecisionDtoDataEnvelope.js +2 -0
- package/dist/models/bootstrapDecisionDtoMode.d.ts +14 -0
- package/dist/models/bootstrapDecisionDtoMode.js +16 -0
- package/dist/models/bootstrapOptionDto.d.ts +13 -0
- package/dist/models/bootstrapOptionDto.js +9 -0
- package/dist/models/bootstrapProjectDto.d.ts +11 -0
- package/dist/models/bootstrapProjectDto.js +2 -0
- package/dist/models/bootstrapProjectDtoOptions.d.ts +10 -0
- package/dist/models/bootstrapProjectDtoOptions.js +9 -0
- package/dist/models/createProjectBindingDto.d.ts +13 -0
- package/dist/models/createProjectBindingDto.js +2 -0
- package/dist/models/createProjectDto.d.ts +13 -0
- package/dist/models/createProjectDto.js +2 -0
- package/dist/models/createProjectRepoDto.d.ts +13 -0
- package/dist/models/createProjectRepoDto.js +9 -0
- package/dist/models/createVariableDto.d.ts +17 -0
- package/dist/models/createVariableDto.js +9 -0
- package/dist/models/createWalletDto.d.ts +13 -0
- package/dist/models/createWalletDto.js +9 -0
- package/dist/models/errorDetailsDto.d.ts +12 -0
- package/dist/models/errorDetailsDto.js +2 -0
- package/dist/models/errorDetailsDtoDetails.d.ts +13 -0
- package/dist/models/errorDetailsDtoDetails.js +9 -0
- package/dist/models/errorPayloadDto.d.ts +13 -0
- package/dist/models/errorPayloadDto.js +2 -0
- package/dist/models/errorResponseDto.d.ts +11 -0
- package/dist/models/errorResponseDto.js +2 -0
- package/dist/models/existingAssetsDto.d.ts +12 -0
- package/dist/models/existingAssetsDto.js +9 -0
- package/dist/models/grantProjectRoleDto.d.ts +11 -0
- package/dist/models/grantProjectRoleDto.js +9 -0
- package/dist/models/index.d.ts +98 -0
- package/dist/models/index.js +115 -0
- package/dist/models/manifestControllerGetHistoryParams.d.ts +17 -0
- package/dist/models/manifestControllerGetHistoryParams.js +9 -0
- package/dist/models/manifestDiffResponseDto.d.ts +13 -0
- package/dist/models/manifestDiffResponseDto.js +9 -0
- package/dist/models/manifestDiffResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/manifestDiffResponseDtoDataEnvelope.js +2 -0
- package/dist/models/manifestHistoryEntryDto.d.ts +21 -0
- package/dist/models/manifestHistoryEntryDto.js +2 -0
- package/dist/models/manifestHistoryEntryDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/manifestHistoryEntryDtoDataArrayEnvelope.js +2 -0
- package/dist/models/manifestHistoryEntryDtoDataEnvelope.d.ts +11 -0
- package/dist/models/manifestHistoryEntryDtoDataEnvelope.js +2 -0
- package/dist/models/manifestHistoryEntryDtoDiff.d.ts +10 -0
- package/dist/models/manifestHistoryEntryDtoDiff.js +9 -0
- package/dist/models/manifestHistoryEntryDtoSnapshotJson.d.ts +10 -0
- package/dist/models/manifestHistoryEntryDtoSnapshotJson.js +9 -0
- package/dist/models/manifestResponseDto.d.ts +19 -0
- package/dist/models/manifestResponseDto.js +2 -0
- package/dist/models/manifestResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/manifestResponseDtoDataEnvelope.js +2 -0
- package/dist/models/manifestResponseDtoManifest.d.ts +10 -0
- package/dist/models/manifestResponseDtoManifest.js +9 -0
- package/dist/models/manifestSectionListResponseDto.d.ts +12 -0
- package/dist/models/manifestSectionListResponseDto.js +2 -0
- package/dist/models/manifestSectionListResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/manifestSectionListResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/manifestSectionListResponseDtoEntries.d.ts +13 -0
- package/dist/models/manifestSectionListResponseDtoEntries.js +9 -0
- package/dist/models/manifestValidationResponseDto.d.ts +11 -0
- package/dist/models/manifestValidationResponseDto.js +9 -0
- package/dist/models/manifestValidationResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/manifestValidationResponseDtoDataEnvelope.js +2 -0
- package/dist/models/patchManifestDto.d.ts +14 -0
- package/dist/models/patchManifestDto.js +2 -0
- package/dist/models/patchManifestDtoPatch.d.ts +13 -0
- package/dist/models/patchManifestDtoPatch.js +9 -0
- package/dist/models/patchSectionEntryDto.d.ts +14 -0
- package/dist/models/patchSectionEntryDto.js +2 -0
- package/dist/models/patchSectionEntryDtoPatch.d.ts +13 -0
- package/dist/models/patchSectionEntryDtoPatch.js +9 -0
- package/dist/models/preferredImageVariantResponseDto.d.ts +16 -0
- package/dist/models/preferredImageVariantResponseDto.js +9 -0
- package/dist/models/preferredImageVariantResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/preferredImageVariantResponseDtoDataEnvelope.js +2 -0
- package/dist/models/priorRunSummaryDto.d.ts +14 -0
- package/dist/models/priorRunSummaryDto.js +9 -0
- package/dist/models/projectBindingKind.d.ts +12 -0
- package/dist/models/projectBindingKind.js +14 -0
- package/dist/models/projectBindingResponseDto.d.ts +18 -0
- package/dist/models/projectBindingResponseDto.js +2 -0
- package/dist/models/projectBindingResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/projectBindingResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/projectBindingResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/projectBindingResponseDtoDataEnvelope.js +2 -0
- package/dist/models/projectEnvResponseDto.d.ts +12 -0
- package/dist/models/projectEnvResponseDto.js +9 -0
- package/dist/models/projectIntegrationResponseDto.d.ts +14 -0
- package/dist/models/projectIntegrationResponseDto.js +2 -0
- package/dist/models/projectIntegrationResponseDtoConfig.d.ts +10 -0
- package/dist/models/projectIntegrationResponseDtoConfig.js +9 -0
- package/dist/models/projectMembershipResponseDto.d.ts +16 -0
- package/dist/models/projectMembershipResponseDto.js +9 -0
- package/dist/models/projectMembershipResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/projectMembershipResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/projectMembershipResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/projectMembershipResponseDtoDataEnvelope.js +2 -0
- package/dist/models/projectRegistryControllerListProjectsParams.d.ts +17 -0
- package/dist/models/projectRegistryControllerListProjectsParams.js +9 -0
- package/dist/models/projectRepoResponseDto.d.ts +13 -0
- package/dist/models/projectRepoResponseDto.js +9 -0
- package/dist/models/projectResponseDto.d.ts +24 -0
- package/dist/models/projectResponseDto.js +2 -0
- package/dist/models/projectResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/projectResponseDtoDataEnvelope.js +2 -0
- package/dist/models/projectSettingsResponseDto.d.ts +19 -0
- package/dist/models/projectSettingsResponseDto.js +2 -0
- package/dist/models/projectSettingsResponseDtoCloudDetails.d.ts +13 -0
- package/dist/models/projectSettingsResponseDtoCloudDetails.js +9 -0
- package/dist/models/projectSettingsResponseDtoCloudProvider.d.ts +20 -0
- package/dist/models/projectSettingsResponseDtoCloudProvider.js +19 -0
- package/dist/models/projectSummaryResponseDto.d.ts +16 -0
- package/dist/models/projectSummaryResponseDto.js +9 -0
- package/dist/models/projectSummaryResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/projectSummaryResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/promptClassificationDto.d.ts +13 -0
- package/dist/models/promptClassificationDto.js +2 -0
- package/dist/models/promptClassificationDtoClassification.d.ts +13 -0
- package/dist/models/promptClassificationDtoClassification.js +15 -0
- package/dist/models/provisionOnboardingRequestDto.d.ts +19 -0
- package/dist/models/provisionOnboardingRequestDto.js +9 -0
- package/dist/models/provisionOnboardingResponseDto.d.ts +17 -0
- package/dist/models/provisionOnboardingResponseDto.js +9 -0
- package/dist/models/provisionOnboardingResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/provisionOnboardingResponseDtoDataEnvelope.js +2 -0
- package/dist/models/putManifestDto.d.ts +14 -0
- package/dist/models/putManifestDto.js +2 -0
- package/dist/models/putManifestDtoManifest.d.ts +13 -0
- package/dist/models/putManifestDtoManifest.js +9 -0
- package/dist/models/resolveWalletsRequestDto.d.ts +11 -0
- package/dist/models/resolveWalletsRequestDto.js +9 -0
- package/dist/models/resolvedWalletsResponseDto.d.ts +18 -0
- package/dist/models/resolvedWalletsResponseDto.js +2 -0
- package/dist/models/resolvedWalletsResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/resolvedWalletsResponseDtoDataEnvelope.js +2 -0
- package/dist/models/resolvedWalletsResponseDtoSecrets.d.ts +13 -0
- package/dist/models/resolvedWalletsResponseDtoSecrets.js +9 -0
- package/dist/models/resolvedWalletsResponseDtoVars.d.ts +13 -0
- package/dist/models/resolvedWalletsResponseDtoVars.js +9 -0
- package/dist/models/resolvedWalletsResponseDtoWalletKeyMap.d.ts +13 -0
- package/dist/models/resolvedWalletsResponseDtoWalletKeyMap.js +9 -0
- package/dist/models/revokeProjectRoleDto.d.ts +11 -0
- package/dist/models/revokeProjectRoleDto.js +9 -0
- package/dist/models/setPreferredImageVariantDto.d.ts +14 -0
- package/dist/models/setPreferredImageVariantDto.js +9 -0
- package/dist/models/updateProjectDto.d.ts +16 -0
- package/dist/models/updateProjectDto.js +9 -0
- package/dist/models/updateProjectIntegrationDto.d.ts +13 -0
- package/dist/models/updateProjectIntegrationDto.js +2 -0
- package/dist/models/updateProjectIntegrationDtoConfig.d.ts +10 -0
- package/dist/models/updateProjectIntegrationDtoConfig.js +9 -0
- package/dist/models/updateProjectSettingsDto.d.ts +21 -0
- package/dist/models/updateProjectSettingsDto.js +2 -0
- package/dist/models/updateProjectSettingsDtoCloudDetails.d.ts +13 -0
- package/dist/models/updateProjectSettingsDtoCloudDetails.js +9 -0
- package/dist/models/updateProjectSettingsDtoCloudProvider.d.ts +20 -0
- package/dist/models/updateProjectSettingsDtoCloudProvider.js +19 -0
- package/dist/models/updateProjectSettingsDtoSettings.d.ts +10 -0
- package/dist/models/updateProjectSettingsDtoSettings.js +9 -0
- package/dist/models/updateVariableDto.d.ts +12 -0
- package/dist/models/updateVariableDto.js +9 -0
- package/dist/models/updateWalletDto.d.ts +10 -0
- package/dist/models/updateWalletDto.js +9 -0
- package/dist/models/upsertSectionEntryDto.d.ts +14 -0
- package/dist/models/upsertSectionEntryDto.js +2 -0
- package/dist/models/upsertSectionEntryDtoEntry.d.ts +13 -0
- package/dist/models/upsertSectionEntryDtoEntry.js +9 -0
- package/dist/models/validateManifestDto.d.ts +12 -0
- package/dist/models/validateManifestDto.js +2 -0
- package/dist/models/validateManifestDtoManifest.d.ts +13 -0
- package/dist/models/validateManifestDtoManifest.js +9 -0
- package/dist/models/variableResponseDto.d.ts +28 -0
- package/dist/models/variableResponseDto.js +9 -0
- package/dist/models/variableResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/variableResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/variableResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/variableResponseDtoDataEnvelope.js +2 -0
- package/dist/models/walletEntryDto.d.ts +11 -0
- package/dist/models/walletEntryDto.js +9 -0
- package/dist/models/walletResponseDto.d.ts +21 -0
- package/dist/models/walletResponseDto.js +9 -0
- package/dist/models/walletResponseDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/walletResponseDtoDataArrayEnvelope.js +2 -0
- package/dist/models/walletResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/walletResponseDtoDataEnvelope.js +2 -0
- package/dist/models/walletWithEntriesResponseDto.d.ts +23 -0
- package/dist/models/walletWithEntriesResponseDto.js +2 -0
- package/dist/models/walletWithEntriesResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/walletWithEntriesResponseDtoDataEnvelope.js +2 -0
- package/package.json +27 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectRegistryControllerBootstrap = exports.getProjectRegistryControllerBootstrapUrl = exports.projectRegistryControllerAnalyzeBootstrap = exports.getProjectRegistryControllerAnalyzeBootstrapUrl = exports.projectRegistryControllerSetPreferredImageVariant = exports.getProjectRegistryControllerSetPreferredImageVariantUrl = exports.projectRegistryControllerGetPreferredImageVariant = exports.getProjectRegistryControllerGetPreferredImageVariantUrl = exports.projectRegistryControllerUpdateIntegration = exports.getProjectRegistryControllerUpdateIntegrationUrl = exports.projectRegistryControllerGetTypedSettings = exports.getProjectRegistryControllerGetTypedSettingsUrl = exports.projectRegistryControllerUpdateSettings = exports.getProjectRegistryControllerUpdateSettingsUrl = exports.projectRegistryControllerDeleteProject = exports.getProjectRegistryControllerDeleteProjectUrl = exports.projectRegistryControllerUpdateProject = exports.getProjectRegistryControllerUpdateProjectUrl = exports.projectRegistryControllerGetProject = exports.getProjectRegistryControllerGetProjectUrl = exports.projectRegistryControllerListProjects = exports.getProjectRegistryControllerListProjectsUrl = exports.projectRegistryControllerCreateProject = exports.getProjectRegistryControllerCreateProjectUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Create project workspace and optional repository link
|
|
7
|
+
*/
|
|
8
|
+
const getProjectRegistryControllerCreateProjectUrl = () => {
|
|
9
|
+
return `/projects`;
|
|
10
|
+
};
|
|
11
|
+
exports.getProjectRegistryControllerCreateProjectUrl = getProjectRegistryControllerCreateProjectUrl;
|
|
12
|
+
const projectRegistryControllerCreateProject = async (createProjectDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerCreateProjectUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(createProjectDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.projectRegistryControllerCreateProject = projectRegistryControllerCreateProject;
|
|
21
|
+
/**
|
|
22
|
+
* @summary List all projects for organization
|
|
23
|
+
*/
|
|
24
|
+
const getProjectRegistryControllerListProjectsUrl = (params) => {
|
|
25
|
+
const normalizedParams = new URLSearchParams();
|
|
26
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
27
|
+
if (value === undefined)
|
|
28
|
+
return;
|
|
29
|
+
if (value === null) {
|
|
30
|
+
normalizedParams.append(key, 'null');
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(value)) {
|
|
34
|
+
for (const item of value) {
|
|
35
|
+
if (item === undefined || item === null)
|
|
36
|
+
continue;
|
|
37
|
+
normalizedParams.append(key, item.toString());
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
normalizedParams.append(key, value.toString());
|
|
42
|
+
});
|
|
43
|
+
const stringifiedParams = normalizedParams.toString();
|
|
44
|
+
return stringifiedParams.length > 0 ? `/projects?${stringifiedParams}` : `/projects`;
|
|
45
|
+
};
|
|
46
|
+
exports.getProjectRegistryControllerListProjectsUrl = getProjectRegistryControllerListProjectsUrl;
|
|
47
|
+
const projectRegistryControllerListProjects = async (params, options) => {
|
|
48
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerListProjectsUrl)(params), {
|
|
49
|
+
...options,
|
|
50
|
+
method: 'GET'
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.projectRegistryControllerListProjects = projectRegistryControllerListProjects;
|
|
54
|
+
/**
|
|
55
|
+
* @summary Get project aggregate
|
|
56
|
+
*/
|
|
57
|
+
const getProjectRegistryControllerGetProjectUrl = (projectId) => {
|
|
58
|
+
return `/projects/${projectId}`;
|
|
59
|
+
};
|
|
60
|
+
exports.getProjectRegistryControllerGetProjectUrl = getProjectRegistryControllerGetProjectUrl;
|
|
61
|
+
const projectRegistryControllerGetProject = async (projectId, options) => {
|
|
62
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerGetProjectUrl)(projectId), {
|
|
63
|
+
...options,
|
|
64
|
+
method: 'GET'
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
exports.projectRegistryControllerGetProject = projectRegistryControllerGetProject;
|
|
68
|
+
/**
|
|
69
|
+
* @summary Update editable project metadata
|
|
70
|
+
*/
|
|
71
|
+
const getProjectRegistryControllerUpdateProjectUrl = (projectId) => {
|
|
72
|
+
return `/projects/${projectId}`;
|
|
73
|
+
};
|
|
74
|
+
exports.getProjectRegistryControllerUpdateProjectUrl = getProjectRegistryControllerUpdateProjectUrl;
|
|
75
|
+
const projectRegistryControllerUpdateProject = async (projectId, updateProjectDto, options) => {
|
|
76
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateProjectUrl)(projectId), {
|
|
77
|
+
...options,
|
|
78
|
+
method: 'PATCH',
|
|
79
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
80
|
+
body: JSON.stringify(updateProjectDto)
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.projectRegistryControllerUpdateProject = projectRegistryControllerUpdateProject;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Delete a project and all associated data
|
|
86
|
+
*/
|
|
87
|
+
const getProjectRegistryControllerDeleteProjectUrl = (projectId) => {
|
|
88
|
+
return `/projects/${projectId}`;
|
|
89
|
+
};
|
|
90
|
+
exports.getProjectRegistryControllerDeleteProjectUrl = getProjectRegistryControllerDeleteProjectUrl;
|
|
91
|
+
const projectRegistryControllerDeleteProject = async (projectId, options) => {
|
|
92
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerDeleteProjectUrl)(projectId), {
|
|
93
|
+
...options,
|
|
94
|
+
method: 'DELETE'
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
exports.projectRegistryControllerDeleteProject = projectRegistryControllerDeleteProject;
|
|
98
|
+
/**
|
|
99
|
+
* @summary Update project settings
|
|
100
|
+
*/
|
|
101
|
+
const getProjectRegistryControllerUpdateSettingsUrl = (projectId) => {
|
|
102
|
+
return `/projects/${projectId}/settings`;
|
|
103
|
+
};
|
|
104
|
+
exports.getProjectRegistryControllerUpdateSettingsUrl = getProjectRegistryControllerUpdateSettingsUrl;
|
|
105
|
+
const projectRegistryControllerUpdateSettings = async (projectId, updateProjectSettingsDto, options) => {
|
|
106
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateSettingsUrl)(projectId), {
|
|
107
|
+
...options,
|
|
108
|
+
method: 'PATCH',
|
|
109
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
110
|
+
body: JSON.stringify(updateProjectSettingsDto)
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
exports.projectRegistryControllerUpdateSettings = projectRegistryControllerUpdateSettings;
|
|
114
|
+
/**
|
|
115
|
+
* @summary Get typed project settings with defaults applied (service-to-service)
|
|
116
|
+
*/
|
|
117
|
+
const getProjectRegistryControllerGetTypedSettingsUrl = (projectId) => {
|
|
118
|
+
return `/projects/${projectId}/settings/typed`;
|
|
119
|
+
};
|
|
120
|
+
exports.getProjectRegistryControllerGetTypedSettingsUrl = getProjectRegistryControllerGetTypedSettingsUrl;
|
|
121
|
+
const projectRegistryControllerGetTypedSettings = async (projectId, options) => {
|
|
122
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerGetTypedSettingsUrl)(projectId), {
|
|
123
|
+
...options,
|
|
124
|
+
method: 'GET'
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
exports.projectRegistryControllerGetTypedSettings = projectRegistryControllerGetTypedSettings;
|
|
128
|
+
/**
|
|
129
|
+
* @summary Enable, disable, or update project integration configuration
|
|
130
|
+
*/
|
|
131
|
+
const getProjectRegistryControllerUpdateIntegrationUrl = (projectId, type) => {
|
|
132
|
+
return `/projects/${projectId}/integrations/${type}`;
|
|
133
|
+
};
|
|
134
|
+
exports.getProjectRegistryControllerUpdateIntegrationUrl = getProjectRegistryControllerUpdateIntegrationUrl;
|
|
135
|
+
const projectRegistryControllerUpdateIntegration = async (projectId, type, updateProjectIntegrationDto, options) => {
|
|
136
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateIntegrationUrl)(projectId, type), {
|
|
137
|
+
...options,
|
|
138
|
+
method: 'PATCH',
|
|
139
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
140
|
+
body: JSON.stringify(updateProjectIntegrationDto)
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
exports.projectRegistryControllerUpdateIntegration = projectRegistryControllerUpdateIntegration;
|
|
144
|
+
/**
|
|
145
|
+
* @summary Get the preferred workspace-image variant slug for a project
|
|
146
|
+
*/
|
|
147
|
+
const getProjectRegistryControllerGetPreferredImageVariantUrl = (projectId) => {
|
|
148
|
+
return `/projects/${projectId}/preferred-image-variant`;
|
|
149
|
+
};
|
|
150
|
+
exports.getProjectRegistryControllerGetPreferredImageVariantUrl = getProjectRegistryControllerGetPreferredImageVariantUrl;
|
|
151
|
+
const projectRegistryControllerGetPreferredImageVariant = async (projectId, options) => {
|
|
152
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerGetPreferredImageVariantUrl)(projectId), {
|
|
153
|
+
...options,
|
|
154
|
+
method: 'GET'
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
exports.projectRegistryControllerGetPreferredImageVariant = projectRegistryControllerGetPreferredImageVariant;
|
|
158
|
+
/**
|
|
159
|
+
* @summary Set or clear the preferred workspace-image variant slug for a project
|
|
160
|
+
*/
|
|
161
|
+
const getProjectRegistryControllerSetPreferredImageVariantUrl = (projectId) => {
|
|
162
|
+
return `/projects/${projectId}/preferred-image-variant`;
|
|
163
|
+
};
|
|
164
|
+
exports.getProjectRegistryControllerSetPreferredImageVariantUrl = getProjectRegistryControllerSetPreferredImageVariantUrl;
|
|
165
|
+
const projectRegistryControllerSetPreferredImageVariant = async (projectId, setPreferredImageVariantDto, options) => {
|
|
166
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerSetPreferredImageVariantUrl)(projectId), {
|
|
167
|
+
...options,
|
|
168
|
+
method: 'PATCH',
|
|
169
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
170
|
+
body: JSON.stringify(setPreferredImageVariantDto)
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.projectRegistryControllerSetPreferredImageVariant = projectRegistryControllerSetPreferredImageVariant;
|
|
174
|
+
/**
|
|
175
|
+
* @summary Analyze project state and return bootstrap decision before execution
|
|
176
|
+
*/
|
|
177
|
+
const getProjectRegistryControllerAnalyzeBootstrapUrl = (projectId) => {
|
|
178
|
+
return `/projects/${projectId}/bootstrap/analyze`;
|
|
179
|
+
};
|
|
180
|
+
exports.getProjectRegistryControllerAnalyzeBootstrapUrl = getProjectRegistryControllerAnalyzeBootstrapUrl;
|
|
181
|
+
const projectRegistryControllerAnalyzeBootstrap = async (projectId, bootstrapAnalyzeDto, options) => {
|
|
182
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerAnalyzeBootstrapUrl)(projectId), {
|
|
183
|
+
...options,
|
|
184
|
+
method: 'POST',
|
|
185
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
186
|
+
body: JSON.stringify(bootstrapAnalyzeDto)
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
exports.projectRegistryControllerAnalyzeBootstrap = projectRegistryControllerAnalyzeBootstrap;
|
|
190
|
+
/**
|
|
191
|
+
* @summary Request project bootstrap in orchestrator
|
|
192
|
+
*/
|
|
193
|
+
const getProjectRegistryControllerBootstrapUrl = (projectId) => {
|
|
194
|
+
return `/projects/${projectId}/bootstrap`;
|
|
195
|
+
};
|
|
196
|
+
exports.getProjectRegistryControllerBootstrapUrl = getProjectRegistryControllerBootstrapUrl;
|
|
197
|
+
const projectRegistryControllerBootstrap = async (projectId, bootstrapProjectDto, options) => {
|
|
198
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerBootstrapUrl)(projectId), {
|
|
199
|
+
...options,
|
|
200
|
+
method: 'POST',
|
|
201
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
202
|
+
body: JSON.stringify(bootstrapProjectDto)
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
exports.projectRegistryControllerBootstrap = projectRegistryControllerBootstrap;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { GrantProjectRoleDto, ProjectMembershipResponseDtoDataArrayEnvelope, ProjectMembershipResponseDtoDataEnvelope, RevokeProjectRoleDto } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Grant project-scoped role to user
|
|
11
|
+
*/
|
|
12
|
+
export declare const getProjectRolesControllerGrantRoleUrl: (projectId: string) => string;
|
|
13
|
+
export declare const projectRolesControllerGrantRole: (projectId: string, grantProjectRoleDto: GrantProjectRoleDto, options?: RequestInit) => Promise<ProjectMembershipResponseDtoDataEnvelope>;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Revoke project-scoped role from user
|
|
16
|
+
*/
|
|
17
|
+
export declare const getProjectRolesControllerRevokeRoleUrl: (projectId: string) => string;
|
|
18
|
+
export declare const projectRolesControllerRevokeRole: (projectId: string, revokeProjectRoleDto: RevokeProjectRoleDto, options?: RequestInit) => Promise<ProjectMembershipResponseDtoDataEnvelope>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary List project role assignments
|
|
21
|
+
*/
|
|
22
|
+
export declare const getProjectRolesControllerListRolesUrl: (projectId: string) => string;
|
|
23
|
+
export declare const projectRolesControllerListRoles: (projectId: string, options?: RequestInit) => Promise<ProjectMembershipResponseDtoDataArrayEnvelope>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectRolesControllerListRoles = exports.getProjectRolesControllerListRolesUrl = exports.projectRolesControllerRevokeRole = exports.getProjectRolesControllerRevokeRoleUrl = exports.projectRolesControllerGrantRole = exports.getProjectRolesControllerGrantRoleUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Grant project-scoped role to user
|
|
7
|
+
*/
|
|
8
|
+
const getProjectRolesControllerGrantRoleUrl = (projectId) => {
|
|
9
|
+
return `/projects/${projectId}/roles/grant`;
|
|
10
|
+
};
|
|
11
|
+
exports.getProjectRolesControllerGrantRoleUrl = getProjectRolesControllerGrantRoleUrl;
|
|
12
|
+
const projectRolesControllerGrantRole = async (projectId, grantProjectRoleDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRolesControllerGrantRoleUrl)(projectId), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(grantProjectRoleDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.projectRolesControllerGrantRole = projectRolesControllerGrantRole;
|
|
21
|
+
/**
|
|
22
|
+
* @summary Revoke project-scoped role from user
|
|
23
|
+
*/
|
|
24
|
+
const getProjectRolesControllerRevokeRoleUrl = (projectId) => {
|
|
25
|
+
return `/projects/${projectId}/roles/revoke`;
|
|
26
|
+
};
|
|
27
|
+
exports.getProjectRolesControllerRevokeRoleUrl = getProjectRolesControllerRevokeRoleUrl;
|
|
28
|
+
const projectRolesControllerRevokeRole = async (projectId, revokeProjectRoleDto, options) => {
|
|
29
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRolesControllerRevokeRoleUrl)(projectId), {
|
|
30
|
+
...options,
|
|
31
|
+
method: 'POST',
|
|
32
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
33
|
+
body: JSON.stringify(revokeProjectRoleDto)
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
exports.projectRolesControllerRevokeRole = projectRolesControllerRevokeRole;
|
|
37
|
+
/**
|
|
38
|
+
* @summary List project role assignments
|
|
39
|
+
*/
|
|
40
|
+
const getProjectRolesControllerListRolesUrl = (projectId) => {
|
|
41
|
+
return `/projects/${projectId}/roles`;
|
|
42
|
+
};
|
|
43
|
+
exports.getProjectRolesControllerListRolesUrl = getProjectRolesControllerListRolesUrl;
|
|
44
|
+
const projectRolesControllerListRoles = async (projectId, options) => {
|
|
45
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRolesControllerListRolesUrl)(projectId), {
|
|
46
|
+
...options,
|
|
47
|
+
method: 'GET'
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
exports.projectRolesControllerListRoles = projectRolesControllerListRoles;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateVariableDto, UpdateVariableDto, VariableResponseDtoDataArrayEnvelope, VariableResponseDtoDataEnvelope } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create a variable inside a wallet
|
|
11
|
+
*/
|
|
12
|
+
export declare const getVariablesControllerCreateVariableUrl: (walletId: string) => string;
|
|
13
|
+
export declare const variablesControllerCreateVariable: (walletId: string, createVariableDto: CreateVariableDto, options?: RequestInit) => Promise<VariableResponseDtoDataEnvelope>;
|
|
14
|
+
/**
|
|
15
|
+
* @summary List variables in a wallet
|
|
16
|
+
*/
|
|
17
|
+
export declare const getVariablesControllerListVariablesUrl: (walletId: string) => string;
|
|
18
|
+
export declare const variablesControllerListVariables: (walletId: string, options?: RequestInit) => Promise<VariableResponseDtoDataArrayEnvelope>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Update a variable
|
|
21
|
+
*/
|
|
22
|
+
export declare const getVariablesControllerUpdateVariableUrl: (walletId: string, variableId: string) => string;
|
|
23
|
+
export declare const variablesControllerUpdateVariable: (walletId: string, variableId: string, updateVariableDto: UpdateVariableDto, options?: RequestInit) => Promise<VariableResponseDtoDataEnvelope>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Delete a variable
|
|
26
|
+
*/
|
|
27
|
+
export declare const getVariablesControllerDeleteVariableUrl: (walletId: string, variableId: string) => string;
|
|
28
|
+
export declare const variablesControllerDeleteVariable: (walletId: string, variableId: string, options?: RequestInit) => Promise<unknown>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.variablesControllerDeleteVariable = exports.getVariablesControllerDeleteVariableUrl = exports.variablesControllerUpdateVariable = exports.getVariablesControllerUpdateVariableUrl = exports.variablesControllerListVariables = exports.getVariablesControllerListVariablesUrl = exports.variablesControllerCreateVariable = exports.getVariablesControllerCreateVariableUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Create a variable inside a wallet
|
|
7
|
+
*/
|
|
8
|
+
const getVariablesControllerCreateVariableUrl = (walletId) => {
|
|
9
|
+
return `/wallets/${walletId}/variables`;
|
|
10
|
+
};
|
|
11
|
+
exports.getVariablesControllerCreateVariableUrl = getVariablesControllerCreateVariableUrl;
|
|
12
|
+
const variablesControllerCreateVariable = async (walletId, createVariableDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getVariablesControllerCreateVariableUrl)(walletId), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(createVariableDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.variablesControllerCreateVariable = variablesControllerCreateVariable;
|
|
21
|
+
/**
|
|
22
|
+
* @summary List variables in a wallet
|
|
23
|
+
*/
|
|
24
|
+
const getVariablesControllerListVariablesUrl = (walletId) => {
|
|
25
|
+
return `/wallets/${walletId}/variables`;
|
|
26
|
+
};
|
|
27
|
+
exports.getVariablesControllerListVariablesUrl = getVariablesControllerListVariablesUrl;
|
|
28
|
+
const variablesControllerListVariables = async (walletId, options) => {
|
|
29
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getVariablesControllerListVariablesUrl)(walletId), {
|
|
30
|
+
...options,
|
|
31
|
+
method: 'GET'
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
exports.variablesControllerListVariables = variablesControllerListVariables;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Update a variable
|
|
37
|
+
*/
|
|
38
|
+
const getVariablesControllerUpdateVariableUrl = (walletId, variableId) => {
|
|
39
|
+
return `/wallets/${walletId}/variables/${variableId}`;
|
|
40
|
+
};
|
|
41
|
+
exports.getVariablesControllerUpdateVariableUrl = getVariablesControllerUpdateVariableUrl;
|
|
42
|
+
const variablesControllerUpdateVariable = async (walletId, variableId, updateVariableDto, options) => {
|
|
43
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getVariablesControllerUpdateVariableUrl)(walletId, variableId), {
|
|
44
|
+
...options,
|
|
45
|
+
method: 'PATCH',
|
|
46
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
47
|
+
body: JSON.stringify(updateVariableDto)
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
exports.variablesControllerUpdateVariable = variablesControllerUpdateVariable;
|
|
51
|
+
/**
|
|
52
|
+
* @summary Delete a variable
|
|
53
|
+
*/
|
|
54
|
+
const getVariablesControllerDeleteVariableUrl = (walletId, variableId) => {
|
|
55
|
+
return `/wallets/${walletId}/variables/${variableId}`;
|
|
56
|
+
};
|
|
57
|
+
exports.getVariablesControllerDeleteVariableUrl = getVariablesControllerDeleteVariableUrl;
|
|
58
|
+
const variablesControllerDeleteVariable = async (walletId, variableId, options) => {
|
|
59
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getVariablesControllerDeleteVariableUrl)(walletId, variableId), {
|
|
60
|
+
...options,
|
|
61
|
+
method: 'DELETE'
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
exports.variablesControllerDeleteVariable = variablesControllerDeleteVariable;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateWalletDto, ResolveWalletsRequestDto, ResolvedWalletsResponseDtoDataEnvelope, UpdateWalletDto, WalletResponseDtoDataArrayEnvelope, WalletResponseDtoDataEnvelope, WalletWithEntriesResponseDtoDataEnvelope } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create a project-scoped wallet
|
|
11
|
+
*/
|
|
12
|
+
export declare const getWalletsControllerCreateProjectWalletUrl: (projectId: string) => string;
|
|
13
|
+
export declare const walletsControllerCreateProjectWallet: (projectId: string, createWalletDto: CreateWalletDto, options?: RequestInit) => Promise<WalletResponseDtoDataEnvelope>;
|
|
14
|
+
/**
|
|
15
|
+
* @summary List wallets visible to a project (project-scoped + inherited org-scoped)
|
|
16
|
+
*/
|
|
17
|
+
export declare const getWalletsControllerListProjectWalletsUrl: (projectId: string) => string;
|
|
18
|
+
export declare const walletsControllerListProjectWallets: (projectId: string, options?: RequestInit) => Promise<WalletResponseDtoDataArrayEnvelope>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Create an org-scoped wallet (inherited by every project)
|
|
21
|
+
*/
|
|
22
|
+
export declare const getWalletsControllerCreateOrgWalletUrl: () => string;
|
|
23
|
+
export declare const walletsControllerCreateOrgWallet: (createWalletDto: CreateWalletDto, options?: RequestInit) => Promise<WalletResponseDtoDataEnvelope>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary List org-scoped wallets
|
|
26
|
+
*/
|
|
27
|
+
export declare const getWalletsControllerListOrgWalletsUrl: () => string;
|
|
28
|
+
export declare const walletsControllerListOrgWallets: (options?: RequestInit) => Promise<WalletResponseDtoDataArrayEnvelope>;
|
|
29
|
+
/**
|
|
30
|
+
* @summary Get a wallet with its entries (variable keys + isSecret flags, no values)
|
|
31
|
+
*/
|
|
32
|
+
export declare const getWalletsControllerGetWalletUrl: (walletId: string) => string;
|
|
33
|
+
export declare const walletsControllerGetWallet: (walletId: string, options?: RequestInit) => Promise<WalletWithEntriesResponseDtoDataEnvelope>;
|
|
34
|
+
/**
|
|
35
|
+
* @summary Update a wallet (description only — name is immutable)
|
|
36
|
+
*/
|
|
37
|
+
export declare const getWalletsControllerUpdateWalletUrl: (walletId: string) => string;
|
|
38
|
+
export declare const walletsControllerUpdateWallet: (walletId: string, updateWalletDto: UpdateWalletDto, options?: RequestInit) => Promise<WalletResponseDtoDataEnvelope>;
|
|
39
|
+
/**
|
|
40
|
+
* @summary Delete a wallet (cascades to its variables)
|
|
41
|
+
*/
|
|
42
|
+
export declare const getWalletsControllerDeleteWalletUrl: (walletId: string) => string;
|
|
43
|
+
export declare const walletsControllerDeleteWallet: (walletId: string, options?: RequestInit) => Promise<unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Resolve a set of wallet names for a project (decrypts secrets). Service-only — restricted to Keycloak service-account callers. Used by workflow-engine-api at dispatch and agent-session-api at session create. orgId comes from the standard `X-Org-Id` request header.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getWalletsControllerResolveWalletsUrl: (projectId: string) => string;
|
|
48
|
+
export declare const walletsControllerResolveWallets: (projectId: string, resolveWalletsRequestDto: ResolveWalletsRequestDto, options?: RequestInit) => Promise<ResolvedWalletsResponseDtoDataEnvelope>;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.walletsControllerResolveWallets = exports.getWalletsControllerResolveWalletsUrl = exports.walletsControllerDeleteWallet = exports.getWalletsControllerDeleteWalletUrl = exports.walletsControllerUpdateWallet = exports.getWalletsControllerUpdateWalletUrl = exports.walletsControllerGetWallet = exports.getWalletsControllerGetWalletUrl = exports.walletsControllerListOrgWallets = exports.getWalletsControllerListOrgWalletsUrl = exports.walletsControllerCreateOrgWallet = exports.getWalletsControllerCreateOrgWalletUrl = exports.walletsControllerListProjectWallets = exports.getWalletsControllerListProjectWalletsUrl = exports.walletsControllerCreateProjectWallet = exports.getWalletsControllerCreateProjectWalletUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Create a project-scoped wallet
|
|
7
|
+
*/
|
|
8
|
+
const getWalletsControllerCreateProjectWalletUrl = (projectId) => {
|
|
9
|
+
return `/projects/${projectId}/wallets`;
|
|
10
|
+
};
|
|
11
|
+
exports.getWalletsControllerCreateProjectWalletUrl = getWalletsControllerCreateProjectWalletUrl;
|
|
12
|
+
const walletsControllerCreateProjectWallet = async (projectId, createWalletDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerCreateProjectWalletUrl)(projectId), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(createWalletDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.walletsControllerCreateProjectWallet = walletsControllerCreateProjectWallet;
|
|
21
|
+
/**
|
|
22
|
+
* @summary List wallets visible to a project (project-scoped + inherited org-scoped)
|
|
23
|
+
*/
|
|
24
|
+
const getWalletsControllerListProjectWalletsUrl = (projectId) => {
|
|
25
|
+
return `/projects/${projectId}/wallets`;
|
|
26
|
+
};
|
|
27
|
+
exports.getWalletsControllerListProjectWalletsUrl = getWalletsControllerListProjectWalletsUrl;
|
|
28
|
+
const walletsControllerListProjectWallets = async (projectId, options) => {
|
|
29
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerListProjectWalletsUrl)(projectId), {
|
|
30
|
+
...options,
|
|
31
|
+
method: 'GET'
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
exports.walletsControllerListProjectWallets = walletsControllerListProjectWallets;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Create an org-scoped wallet (inherited by every project)
|
|
37
|
+
*/
|
|
38
|
+
const getWalletsControllerCreateOrgWalletUrl = () => {
|
|
39
|
+
return `/wallets`;
|
|
40
|
+
};
|
|
41
|
+
exports.getWalletsControllerCreateOrgWalletUrl = getWalletsControllerCreateOrgWalletUrl;
|
|
42
|
+
const walletsControllerCreateOrgWallet = async (createWalletDto, options) => {
|
|
43
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerCreateOrgWalletUrl)(), {
|
|
44
|
+
...options,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
47
|
+
body: JSON.stringify(createWalletDto)
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
exports.walletsControllerCreateOrgWallet = walletsControllerCreateOrgWallet;
|
|
51
|
+
/**
|
|
52
|
+
* @summary List org-scoped wallets
|
|
53
|
+
*/
|
|
54
|
+
const getWalletsControllerListOrgWalletsUrl = () => {
|
|
55
|
+
return `/wallets`;
|
|
56
|
+
};
|
|
57
|
+
exports.getWalletsControllerListOrgWalletsUrl = getWalletsControllerListOrgWalletsUrl;
|
|
58
|
+
const walletsControllerListOrgWallets = async (options) => {
|
|
59
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerListOrgWalletsUrl)(), {
|
|
60
|
+
...options,
|
|
61
|
+
method: 'GET'
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
exports.walletsControllerListOrgWallets = walletsControllerListOrgWallets;
|
|
65
|
+
/**
|
|
66
|
+
* @summary Get a wallet with its entries (variable keys + isSecret flags, no values)
|
|
67
|
+
*/
|
|
68
|
+
const getWalletsControllerGetWalletUrl = (walletId) => {
|
|
69
|
+
return `/wallets/${walletId}`;
|
|
70
|
+
};
|
|
71
|
+
exports.getWalletsControllerGetWalletUrl = getWalletsControllerGetWalletUrl;
|
|
72
|
+
const walletsControllerGetWallet = async (walletId, options) => {
|
|
73
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerGetWalletUrl)(walletId), {
|
|
74
|
+
...options,
|
|
75
|
+
method: 'GET'
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
exports.walletsControllerGetWallet = walletsControllerGetWallet;
|
|
79
|
+
/**
|
|
80
|
+
* @summary Update a wallet (description only — name is immutable)
|
|
81
|
+
*/
|
|
82
|
+
const getWalletsControllerUpdateWalletUrl = (walletId) => {
|
|
83
|
+
return `/wallets/${walletId}`;
|
|
84
|
+
};
|
|
85
|
+
exports.getWalletsControllerUpdateWalletUrl = getWalletsControllerUpdateWalletUrl;
|
|
86
|
+
const walletsControllerUpdateWallet = async (walletId, updateWalletDto, options) => {
|
|
87
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerUpdateWalletUrl)(walletId), {
|
|
88
|
+
...options,
|
|
89
|
+
method: 'PATCH',
|
|
90
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
91
|
+
body: JSON.stringify(updateWalletDto)
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
exports.walletsControllerUpdateWallet = walletsControllerUpdateWallet;
|
|
95
|
+
/**
|
|
96
|
+
* @summary Delete a wallet (cascades to its variables)
|
|
97
|
+
*/
|
|
98
|
+
const getWalletsControllerDeleteWalletUrl = (walletId) => {
|
|
99
|
+
return `/wallets/${walletId}`;
|
|
100
|
+
};
|
|
101
|
+
exports.getWalletsControllerDeleteWalletUrl = getWalletsControllerDeleteWalletUrl;
|
|
102
|
+
const walletsControllerDeleteWallet = async (walletId, options) => {
|
|
103
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerDeleteWalletUrl)(walletId), {
|
|
104
|
+
...options,
|
|
105
|
+
method: 'DELETE'
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
exports.walletsControllerDeleteWallet = walletsControllerDeleteWallet;
|
|
109
|
+
/**
|
|
110
|
+
* @summary Resolve a set of wallet names for a project (decrypts secrets). Service-only — restricted to Keycloak service-account callers. Used by workflow-engine-api at dispatch and agent-session-api at session create. orgId comes from the standard `X-Org-Id` request header.
|
|
111
|
+
*/
|
|
112
|
+
const getWalletsControllerResolveWalletsUrl = (projectId) => {
|
|
113
|
+
return `/projects/${projectId}/wallets/resolve`;
|
|
114
|
+
};
|
|
115
|
+
exports.getWalletsControllerResolveWalletsUrl = getWalletsControllerResolveWalletsUrl;
|
|
116
|
+
const walletsControllerResolveWallets = async (projectId, resolveWalletsRequestDto, options) => {
|
|
117
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getWalletsControllerResolveWalletsUrl)(projectId), {
|
|
118
|
+
...options,
|
|
119
|
+
method: 'POST',
|
|
120
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
121
|
+
body: JSON.stringify(resolveWalletsRequestDto)
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
exports.walletsControllerResolveWallets = walletsControllerResolveWallets;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
|
|
2
|
+
export * from './models';
|
|
3
|
+
export * from './endpoints/manifest/manifest';
|
|
4
|
+
export * from './endpoints/onboarding/onboarding';
|
|
5
|
+
export * from './endpoints/project-bindings/project-bindings';
|
|
6
|
+
export * from './endpoints/project-registry/project-registry';
|
|
7
|
+
export * from './endpoints/project-roles/project-roles';
|
|
8
|
+
export * from './endpoints/variables/variables';
|
|
9
|
+
export * from './endpoints/wallets/wallets';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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/manifest/manifest"), exports);
|
|
26
|
+
__exportStar(require("./endpoints/onboarding/onboarding"), exports);
|
|
27
|
+
__exportStar(require("./endpoints/project-bindings/project-bindings"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/project-registry/project-registry"), exports);
|
|
29
|
+
__exportStar(require("./endpoints/project-roles/project-roles"), exports);
|
|
30
|
+
__exportStar(require("./endpoints/variables/variables"), exports);
|
|
31
|
+
__exportStar(require("./endpoints/wallets/wallets"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { BootstrapAnalyzeDtoOptions } from './bootstrapAnalyzeDtoOptions';
|
|
9
|
+
export interface BootstrapAnalyzeDto {
|
|
10
|
+
/** The user prompt describing the project or change */
|
|
11
|
+
prompt: string;
|
|
12
|
+
/** Run configuration options */
|
|
13
|
+
options?: BootstrapAnalyzeDtoOptions;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Run configuration options
|
|
10
|
+
*/
|
|
11
|
+
export type BootstrapAnalyzeDtoOptions = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Project Registry API
|
|
6
|
+
* Project workspace, repository links, integrations and settings
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { BootstrapDecisionDtoMode } from './bootstrapDecisionDtoMode';
|
|
9
|
+
import type { BootstrapOptionDto } from './bootstrapOptionDto';
|
|
10
|
+
import type { ExistingAssetsDto } from './existingAssetsDto';
|
|
11
|
+
import type { PriorRunSummaryDto } from './priorRunSummaryDto';
|
|
12
|
+
import type { PromptClassificationDto } from './promptClassificationDto';
|
|
13
|
+
export interface BootstrapDecisionDto {
|
|
14
|
+
mode: BootstrapDecisionDtoMode;
|
|
15
|
+
priorRun?: PriorRunSummaryDto;
|
|
16
|
+
promptClassification: PromptClassificationDto;
|
|
17
|
+
existingAssets: ExistingAssetsDto;
|
|
18
|
+
/** Human-readable suggestions */
|
|
19
|
+
recommendations: string[];
|
|
20
|
+
/** Available bootstrap options */
|
|
21
|
+
options: BootstrapOptionDto[];
|
|
22
|
+
}
|