@xemahq/project-registry-api-client 0.2.7 → 0.2.8

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.
@@ -11,7 +11,7 @@ export declare const getProjectRegistryControllerCreateProjectUrl: () => string;
11
11
  export declare const projectRegistryControllerCreateProject: (createProjectDto: CreateProjectDto, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
12
12
  export declare const getProjectRegistryControllerListProjectsUrl: (params?: ProjectRegistryControllerListProjectsParams) => string;
13
13
  /**
14
- * @summary List all projects for organization
14
+ * @summary List projects for the organization. Archived (retired) projects are excluded unless `includeArchived=true`.
15
15
  */
16
16
  export declare const projectRegistryControllerListProjects: (params?: ProjectRegistryControllerListProjectsParams, options?: RequestInit) => Promise<ProjectSummaryResponseDtoDataArrayEnvelope>;
17
17
  export declare const getProjectRegistryControllerEnsureManagedProjectUrl: (managedKey: string) => string;
@@ -31,9 +31,19 @@ export declare const getProjectRegistryControllerUpdateProjectUrl: (projectId: s
31
31
  export declare const projectRegistryControllerUpdateProject: (projectId: string, updateProjectDto: UpdateProjectDto, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
32
32
  export declare const getProjectRegistryControllerDeleteProjectUrl: (projectId: string) => string;
33
33
  /**
34
- * @summary Delete a project and all associated data
34
+ * @summary Hard-delete a project and all associated data, and publish the platform-wide cascade-cleanup signal. Irreversible — use archive for a reversible retire. Refused (409 PROJECT_MANAGED_DELETE_REFUSED) for a project a producer owns and would recreate; `hardDeletable` on the project response is this exact precondition.
35
35
  */
36
36
  export declare const projectRegistryControllerDeleteProject: (projectId: string, options?: RequestInit) => Promise<unknown>;
37
+ export declare const getProjectRegistryControllerArchiveProjectUrl: (projectId: string) => string;
38
+ /**
39
+ * @summary Archive (soft-retire) a project. The project leaves the default listing and accepts no further writes; every row it owns is kept. Reversible via `POST /:projectId/unarchive`, and idempotent. Nothing outside this service is notified — unlike DELETE, an archive publishes no cascade signal, because the data is exactly what un-archiving restores.
40
+ */
41
+ export declare const projectRegistryControllerArchiveProject: (projectId: string, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
42
+ export declare const getProjectRegistryControllerUnarchiveProjectUrl: (projectId: string) => string;
43
+ /**
44
+ * @summary Un-archive a retired project, returning it to `active`. The exact inverse of archive and nothing else — the `ui` adoption an archive performed is NOT undone. Idempotent.
45
+ */
46
+ export declare const projectRegistryControllerUnarchiveProject: (projectId: string, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
37
47
  export declare const getProjectRegistryControllerUpdateSettingsUrl: (projectId: string) => string;
38
48
  /**
39
49
  * @summary Update project settings
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
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.projectRegistryControllerUpdateConnection = exports.getProjectRegistryControllerUpdateConnectionUrl = exports.projectRegistryControllerGetTypedSettings = exports.getProjectRegistryControllerGetTypedSettingsUrl = exports.projectRegistryControllerUpdateSettings = exports.getProjectRegistryControllerUpdateSettingsUrl = exports.projectRegistryControllerDeleteProject = exports.getProjectRegistryControllerDeleteProjectUrl = exports.projectRegistryControllerUpdateProject = exports.getProjectRegistryControllerUpdateProjectUrl = exports.projectRegistryControllerGetProject = exports.getProjectRegistryControllerGetProjectUrl = exports.projectRegistryControllerEnsureManagedProject = exports.getProjectRegistryControllerEnsureManagedProjectUrl = exports.projectRegistryControllerListProjects = exports.getProjectRegistryControllerListProjectsUrl = exports.projectRegistryControllerCreateProject = exports.getProjectRegistryControllerCreateProjectUrl = void 0;
3
+ exports.projectRegistryControllerBootstrap = exports.getProjectRegistryControllerBootstrapUrl = exports.projectRegistryControllerAnalyzeBootstrap = exports.getProjectRegistryControllerAnalyzeBootstrapUrl = exports.projectRegistryControllerSetPreferredImageVariant = exports.getProjectRegistryControllerSetPreferredImageVariantUrl = exports.projectRegistryControllerGetPreferredImageVariant = exports.getProjectRegistryControllerGetPreferredImageVariantUrl = exports.projectRegistryControllerUpdateConnection = exports.getProjectRegistryControllerUpdateConnectionUrl = exports.projectRegistryControllerGetTypedSettings = exports.getProjectRegistryControllerGetTypedSettingsUrl = exports.projectRegistryControllerUpdateSettings = exports.getProjectRegistryControllerUpdateSettingsUrl = exports.projectRegistryControllerUnarchiveProject = exports.getProjectRegistryControllerUnarchiveProjectUrl = exports.projectRegistryControllerArchiveProject = exports.getProjectRegistryControllerArchiveProjectUrl = exports.projectRegistryControllerDeleteProject = exports.getProjectRegistryControllerDeleteProjectUrl = exports.projectRegistryControllerUpdateProject = exports.getProjectRegistryControllerUpdateProjectUrl = exports.projectRegistryControllerGetProject = exports.getProjectRegistryControllerGetProjectUrl = exports.projectRegistryControllerEnsureManagedProject = exports.getProjectRegistryControllerEnsureManagedProjectUrl = exports.projectRegistryControllerListProjects = exports.getProjectRegistryControllerListProjectsUrl = exports.projectRegistryControllerCreateProject = exports.getProjectRegistryControllerCreateProjectUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
5
  const getProjectRegistryControllerCreateProjectUrl = () => {
6
6
  return `/projects`;
@@ -42,7 +42,7 @@ const getProjectRegistryControllerListProjectsUrl = (params) => {
42
42
  };
43
43
  exports.getProjectRegistryControllerListProjectsUrl = getProjectRegistryControllerListProjectsUrl;
44
44
  /**
45
- * @summary List all projects for organization
45
+ * @summary List projects for the organization. Archived (retired) projects are excluded unless `includeArchived=true`.
46
46
  */
47
47
  const projectRegistryControllerListProjects = async (params, options) => {
48
48
  return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerListProjectsUrl)(params), {
@@ -102,7 +102,7 @@ const getProjectRegistryControllerDeleteProjectUrl = (projectId) => {
102
102
  };
103
103
  exports.getProjectRegistryControllerDeleteProjectUrl = getProjectRegistryControllerDeleteProjectUrl;
104
104
  /**
105
- * @summary Delete a project and all associated data
105
+ * @summary Hard-delete a project and all associated data, and publish the platform-wide cascade-cleanup signal. Irreversible — use archive for a reversible retire. Refused (409 PROJECT_MANAGED_DELETE_REFUSED) for a project a producer owns and would recreate; `hardDeletable` on the project response is this exact precondition.
106
106
  */
107
107
  const projectRegistryControllerDeleteProject = async (projectId, options) => {
108
108
  return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerDeleteProjectUrl)(projectId), {
@@ -111,6 +111,34 @@ const projectRegistryControllerDeleteProject = async (projectId, options) => {
111
111
  });
112
112
  };
113
113
  exports.projectRegistryControllerDeleteProject = projectRegistryControllerDeleteProject;
114
+ const getProjectRegistryControllerArchiveProjectUrl = (projectId) => {
115
+ return `/projects/${projectId}/archive`;
116
+ };
117
+ exports.getProjectRegistryControllerArchiveProjectUrl = getProjectRegistryControllerArchiveProjectUrl;
118
+ /**
119
+ * @summary Archive (soft-retire) a project. The project leaves the default listing and accepts no further writes; every row it owns is kept. Reversible via `POST /:projectId/unarchive`, and idempotent. Nothing outside this service is notified — unlike DELETE, an archive publishes no cascade signal, because the data is exactly what un-archiving restores.
120
+ */
121
+ const projectRegistryControllerArchiveProject = async (projectId, options) => {
122
+ return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerArchiveProjectUrl)(projectId), {
123
+ ...options,
124
+ method: 'POST'
125
+ });
126
+ };
127
+ exports.projectRegistryControllerArchiveProject = projectRegistryControllerArchiveProject;
128
+ const getProjectRegistryControllerUnarchiveProjectUrl = (projectId) => {
129
+ return `/projects/${projectId}/unarchive`;
130
+ };
131
+ exports.getProjectRegistryControllerUnarchiveProjectUrl = getProjectRegistryControllerUnarchiveProjectUrl;
132
+ /**
133
+ * @summary Un-archive a retired project, returning it to `active`. The exact inverse of archive and nothing else — the `ui` adoption an archive performed is NOT undone. Idempotent.
134
+ */
135
+ const projectRegistryControllerUnarchiveProject = async (projectId, options) => {
136
+ return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUnarchiveProjectUrl)(projectId), {
137
+ ...options,
138
+ method: 'POST'
139
+ });
140
+ };
141
+ exports.projectRegistryControllerUnarchiveProject = projectRegistryControllerUnarchiveProject;
114
142
  const getProjectRegistryControllerUpdateSettingsUrl = (projectId) => {
115
143
  return `/projects/${projectId}/settings`;
116
144
  };
@@ -52,16 +52,19 @@ export * from './projectEnvResponseDto';
52
52
  export * from './projectMembershipResponseDto';
53
53
  export * from './projectMembershipResponseDtoDataArrayEnvelope';
54
54
  export * from './projectMembershipResponseDtoDataEnvelope';
55
+ export * from './projectRegistryControllerListProjectsIncludeArchived';
55
56
  export * from './projectRegistryControllerListProjectsParams';
56
57
  export * from './projectRepoResponseDto';
57
58
  export * from './projectResponseDto';
58
59
  export * from './projectResponseDtoDataEnvelope';
60
+ export * from './projectResponseDtoManagedBy';
59
61
  export * from './projectRole';
60
62
  export * from './projectSettingsResponseDto';
61
63
  export * from './projectSettingsResponseDtoCloudDetails';
62
64
  export * from './projectSettingsResponseDtoCloudProvider';
63
65
  export * from './projectSummaryResponseDto';
64
66
  export * from './projectSummaryResponseDtoDataArrayEnvelope';
67
+ export * from './projectSummaryResponseDtoManagedBy';
65
68
  export * from './promptClassificationDto';
66
69
  export * from './promptClassificationDtoClassification';
67
70
  export * from './provisionOnboardingRequestDto';
@@ -69,16 +69,19 @@ __exportStar(require("./projectEnvResponseDto"), exports);
69
69
  __exportStar(require("./projectMembershipResponseDto"), exports);
70
70
  __exportStar(require("./projectMembershipResponseDtoDataArrayEnvelope"), exports);
71
71
  __exportStar(require("./projectMembershipResponseDtoDataEnvelope"), exports);
72
+ __exportStar(require("./projectRegistryControllerListProjectsIncludeArchived"), exports);
72
73
  __exportStar(require("./projectRegistryControllerListProjectsParams"), exports);
73
74
  __exportStar(require("./projectRepoResponseDto"), exports);
74
75
  __exportStar(require("./projectResponseDto"), exports);
75
76
  __exportStar(require("./projectResponseDtoDataEnvelope"), exports);
77
+ __exportStar(require("./projectResponseDtoManagedBy"), exports);
76
78
  __exportStar(require("./projectRole"), exports);
77
79
  __exportStar(require("./projectSettingsResponseDto"), exports);
78
80
  __exportStar(require("./projectSettingsResponseDtoCloudDetails"), exports);
79
81
  __exportStar(require("./projectSettingsResponseDtoCloudProvider"), exports);
80
82
  __exportStar(require("./projectSummaryResponseDto"), exports);
81
83
  __exportStar(require("./projectSummaryResponseDtoDataArrayEnvelope"), exports);
84
+ __exportStar(require("./projectSummaryResponseDtoManagedBy"), exports);
82
85
  __exportStar(require("./promptClassificationDto"), exports);
83
86
  __exportStar(require("./promptClassificationDtoClassification"), exports);
84
87
  __exportStar(require("./provisionOnboardingRequestDto"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Project Registry API
4
+ * OpenAPI spec version: 0.1.2
5
+ */
6
+ export type ProjectRegistryControllerListProjectsIncludeArchived = typeof ProjectRegistryControllerListProjectsIncludeArchived[keyof typeof ProjectRegistryControllerListProjectsIncludeArchived];
7
+ export declare const ProjectRegistryControllerListProjectsIncludeArchived: {
8
+ readonly true: "true";
9
+ readonly false: "false";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Project Registry API
5
+ * OpenAPI spec version: 0.1.2
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ProjectRegistryControllerListProjectsIncludeArchived = void 0;
9
+ exports.ProjectRegistryControllerListProjectsIncludeArchived = {
10
+ true: 'true',
11
+ false: 'false',
12
+ };
@@ -3,6 +3,7 @@
3
3
  * Project Registry API
4
4
  * OpenAPI spec version: 0.1.2
5
5
  */
6
+ import type { ProjectRegistryControllerListProjectsIncludeArchived } from './projectRegistryControllerListProjectsIncludeArchived.js';
6
7
  export type ProjectRegistryControllerListProjectsParams = {
7
8
  /**
8
9
  * Page number (default: 1)
@@ -12,4 +13,8 @@ export type ProjectRegistryControllerListProjectsParams = {
12
13
  * Items per page (default: 20, max: 100)
13
14
  */
14
15
  limit?: string;
16
+ /**
17
+ * Include archived (retired) projects in the listing. Default: false.
18
+ */
19
+ includeArchived?: ProjectRegistryControllerListProjectsIncludeArchived;
15
20
  };
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Project Registry API
5
- * OpenAPI spec version: 0.1.2
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,7 @@
6
6
  import type { ProjectConnectionResponseDto } from './projectConnectionResponseDto.js';
7
7
  import type { ProjectEnvResponseDto } from './projectEnvResponseDto.js';
8
8
  import type { ProjectRepoResponseDto } from './projectRepoResponseDto.js';
9
+ import type { ProjectResponseDtoManagedBy } from './projectResponseDtoManagedBy.js';
9
10
  import type { ProjectSettingsResponseDto } from './projectSettingsResponseDto.js';
10
11
  export interface ProjectResponseDto {
11
12
  id: string;
@@ -17,6 +18,13 @@ export interface ProjectResponseDto {
17
18
  envs: ProjectEnvResponseDto[];
18
19
  connections: ProjectConnectionResponseDto[];
19
20
  settings?: ProjectSettingsResponseDto;
21
+ /**
22
+ * Provisioning ownership marker. `iac` = managed by the declarative control plane; `seeder` = resolved by a managed-key producer; `ui` = hand-managed (or adopted from seeder by an edit or an archive); `system` = platform-shipped; null = unmanaged/legacy.
23
+ * @nullable
24
+ */
25
+ managedBy: ProjectResponseDtoManagedBy;
26
+ /** Whether DELETE /projects/:projectId would be accepted — read-only and server-derived. False means a producer owns this project and would recreate it; archive it instead, or retire the source that declares it. */
27
+ hardDeletable: boolean;
20
28
  createdAt: string;
21
29
  createdBy: string;
22
30
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Project Registry API
4
+ * OpenAPI spec version: 0.1.2
5
+ */
6
+ /**
7
+ * Provisioning ownership marker. `iac` = managed by the declarative control plane; `seeder` = resolved by a managed-key producer; `ui` = hand-managed (or adopted from seeder by an edit or an archive); `system` = platform-shipped; null = unmanaged/legacy.
8
+ * @nullable
9
+ */
10
+ export type ProjectResponseDtoManagedBy = typeof ProjectResponseDtoManagedBy[keyof typeof ProjectResponseDtoManagedBy] | null;
11
+ export declare const ProjectResponseDtoManagedBy: {
12
+ readonly ui: "ui";
13
+ readonly iac: "iac";
14
+ readonly seeder: "seeder";
15
+ readonly biome_contributed: "biome_contributed";
16
+ readonly runtime_registered: "runtime_registered";
17
+ readonly system: "system";
18
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Project Registry API
5
+ * OpenAPI spec version: 0.1.2
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ProjectResponseDtoManagedBy = void 0;
9
+ exports.ProjectResponseDtoManagedBy = {
10
+ ui: 'ui',
11
+ iac: 'iac',
12
+ seeder: 'seeder',
13
+ biome_contributed: 'biome_contributed',
14
+ runtime_registered: 'runtime_registered',
15
+ system: 'system',
16
+ };
@@ -3,12 +3,20 @@
3
3
  * Project Registry API
4
4
  * OpenAPI spec version: 0.1.2
5
5
  */
6
+ import type { ProjectSummaryResponseDtoManagedBy } from './projectSummaryResponseDtoManagedBy.js';
6
7
  export interface ProjectSummaryResponseDto {
7
8
  id: string;
8
9
  orgId: string;
9
10
  name: string;
10
11
  description?: string;
11
12
  status: string;
13
+ /**
14
+ * Provisioning ownership marker. `iac` = managed by the declarative control plane; `seeder` = resolved by a managed-key producer; `ui` = hand-managed (or adopted from seeder by an edit or an archive); `system` = platform-shipped; null = unmanaged/legacy.
15
+ * @nullable
16
+ */
17
+ managedBy: ProjectSummaryResponseDtoManagedBy;
18
+ /** Whether DELETE /projects/:projectId would be accepted — read-only and server-derived. False means a producer owns this project and would recreate it; archive it instead, or retire the source that declares it. */
19
+ hardDeletable: boolean;
12
20
  createdAt: string;
13
21
  createdBy: string;
14
22
  }
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Project Registry API
5
- * OpenAPI spec version: 0.1.2
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Project Registry API
4
+ * OpenAPI spec version: 0.1.2
5
+ */
6
+ /**
7
+ * Provisioning ownership marker. `iac` = managed by the declarative control plane; `seeder` = resolved by a managed-key producer; `ui` = hand-managed (or adopted from seeder by an edit or an archive); `system` = platform-shipped; null = unmanaged/legacy.
8
+ * @nullable
9
+ */
10
+ export type ProjectSummaryResponseDtoManagedBy = typeof ProjectSummaryResponseDtoManagedBy[keyof typeof ProjectSummaryResponseDtoManagedBy] | null;
11
+ export declare const ProjectSummaryResponseDtoManagedBy: {
12
+ readonly ui: "ui";
13
+ readonly iac: "iac";
14
+ readonly seeder: "seeder";
15
+ readonly biome_contributed: "biome_contributed";
16
+ readonly runtime_registered: "runtime_registered";
17
+ readonly system: "system";
18
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Project Registry API
5
+ * OpenAPI spec version: 0.1.2
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ProjectSummaryResponseDtoManagedBy = void 0;
9
+ exports.ProjectSummaryResponseDtoManagedBy = {
10
+ ui: 'ui',
11
+ iac: 'iac',
12
+ seeder: 'seeder',
13
+ biome_contributed: 'biome_contributed',
14
+ runtime_registered: 'runtime_registered',
15
+ system: 'system',
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/project-registry-api-client",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "project-registry-api",
20
20
  "biome": "project-registry",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.15.0",
22
+ "generator": "@xemahq/api-client-generator@0.15.2",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",