@xemahq/project-registry-api-client 0.2.10 → 0.2.12
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/dist/endpoints/project-members/project-members.d.ts +5 -0
- package/dist/endpoints/project-members/project-members.js +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/createProjectBindingDto.d.ts +7 -0
- package/dist/models/createProjectDto.d.ts +2 -0
- package/dist/models/createVariableDto.d.ts +13 -3
- package/dist/models/createWalletDto.d.ts +9 -2
- package/dist/models/grantProjectRoleDto.d.ts +10 -0
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/dist/models/problemDetailsDto.d.ts +24 -0
- package/dist/models/problemFieldIssueDto.d.ts +10 -0
- package/dist/models/projectRole.d.ts +10 -0
- package/dist/models/resolveWalletsRequestDto.d.ts +6 -1
- package/dist/models/setPreferredImageVariantDto.d.ts +1 -0
- package/dist/models/updateProjectDto.d.ts +5 -1
- package/dist/models/updateVariableDto.d.ts +5 -1
- package/dist/models/updateWalletDto.d.ts +1 -0
- package/package.json +26 -2
- package/dist/models/errorDetailsDto.d.ts +0 -10
- package/dist/models/errorDetailsDtoDetails.d.ts +0 -11
- package/dist/models/errorPayloadDto.d.ts +0 -11
- package/dist/models/errorPayloadDto.js +0 -2
- package/dist/models/errorResponseDto.d.ts +0 -9
- package/dist/models/errorResponseDto.js +0 -2
- /package/dist/models/{errorDetailsDto.js → problemDetailsDto.js} +0 -0
- /package/dist/models/{errorDetailsDtoDetails.js → problemFieldIssueDto.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getProjectMembersControllerRemoveMemberUrl: (projectId: string, userId: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* @summary Remove a user from a project, dropping their access record
|
|
4
|
+
*/
|
|
5
|
+
export declare const projectMembersControllerRemoveMember: (projectId: string, userId: string, options?: RequestInit) => Promise<unknown>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectMembersControllerRemoveMember = exports.getProjectMembersControllerRemoveMemberUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
6
|
+
* Project Registry API
|
|
7
|
+
* OpenAPI spec version: 0.1.2
|
|
8
|
+
*/
|
|
9
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
10
|
+
const getProjectMembersControllerRemoveMemberUrl = (projectId, userId) => {
|
|
11
|
+
return `/projects/${projectId}/members/${userId}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getProjectMembersControllerRemoveMemberUrl = getProjectMembersControllerRemoveMemberUrl;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Remove a user from a project, dropping their access record
|
|
16
|
+
*/
|
|
17
|
+
const projectMembersControllerRemoveMember = async (projectId, userId, options) => {
|
|
18
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectMembersControllerRemoveMemberUrl)(projectId, userId), {
|
|
19
|
+
...options,
|
|
20
|
+
method: 'DELETE'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.projectMembersControllerRemoveMember = projectMembersControllerRemoveMember;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './models';
|
|
|
3
3
|
export * from './endpoints/manifest/manifest';
|
|
4
4
|
export * from './endpoints/onboarding/onboarding';
|
|
5
5
|
export * from './endpoints/project-bindings/project-bindings';
|
|
6
|
+
export * from './endpoints/project-members/project-members';
|
|
6
7
|
export * from './endpoints/project-registry/project-registry';
|
|
7
8
|
export * from './endpoints/project-roles/project-roles';
|
|
8
9
|
export * from './endpoints/variables/variables';
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./models"), exports);
|
|
|
25
25
|
__exportStar(require("./endpoints/manifest/manifest"), exports);
|
|
26
26
|
__exportStar(require("./endpoints/onboarding/onboarding"), exports);
|
|
27
27
|
__exportStar(require("./endpoints/project-bindings/project-bindings"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/project-members/project-members"), exports);
|
|
28
29
|
__exportStar(require("./endpoints/project-registry/project-registry"), exports);
|
|
29
30
|
__exportStar(require("./endpoints/project-roles/project-roles"), exports);
|
|
30
31
|
__exportStar(require("./endpoints/variables/variables"), exports);
|
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
import type { ProjectBindingKind } from './projectBindingKind.js';
|
|
7
7
|
export interface CreateProjectBindingDto {
|
|
8
8
|
kind: ProjectBindingKind;
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the upstream target.
|
|
11
|
+
* - `KB_SPACE` -> KB space slug (validated against knowledge-base-api)
|
|
12
|
+
* - `EXTERNAL_PROJECT` -> Project id in the same org (validated locally)
|
|
13
|
+
* @maxLength 200
|
|
14
|
+
*/
|
|
9
15
|
targetId: string;
|
|
16
|
+
/** @maxLength 200 */
|
|
10
17
|
label?: string;
|
|
11
18
|
}
|
|
@@ -4,12 +4,22 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
export interface CreateVariableDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Variable name (uppercase + underscores). Unique within the wallet.
|
|
9
|
+
* @maxLength 256
|
|
10
|
+
* @pattern /^[A-Z][A-Z0-9_]*$/
|
|
11
|
+
*/
|
|
8
12
|
key: string;
|
|
9
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Variable value (plaintext or secret)
|
|
15
|
+
* @maxLength 8192
|
|
16
|
+
*/
|
|
10
17
|
value: string;
|
|
11
18
|
/** Whether this variable is a secret (encrypted at rest, write-only). Defaults to false. */
|
|
12
19
|
isSecret?: boolean;
|
|
13
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable description
|
|
22
|
+
* @maxLength 500
|
|
23
|
+
*/
|
|
14
24
|
description?: string;
|
|
15
25
|
}
|
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
export interface CreateWalletDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Wallet name unique within the wallet's (org, project) scope. Lowercase kebab-case.
|
|
9
|
+
* @maxLength 63
|
|
10
|
+
* @pattern WALLET_NAME_PATTERN
|
|
11
|
+
*/
|
|
8
12
|
name: string;
|
|
9
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable description shown in the settings UI.
|
|
15
|
+
* @maxLength 500
|
|
16
|
+
*/
|
|
10
17
|
description?: string;
|
|
11
18
|
}
|
|
@@ -6,5 +6,15 @@
|
|
|
6
6
|
import type { ProjectRole } from './projectRole.js';
|
|
7
7
|
export interface GrantProjectRoleDto {
|
|
8
8
|
userId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The role to add. CLOSED set (`ProjectRole`) — an unrecognised value is
|
|
11
|
+
* REFUSED at the wire with 400, never stored. Storing one was the defect
|
|
12
|
+
* this closes: `role` was a bare `string`, so `'adminn'` was accepted,
|
|
13
|
+
* persisted, and then failed the authority check for the lifetime of the row
|
|
14
|
+
* while reading in the UI as a granted role.
|
|
15
|
+
*
|
|
16
|
+
* `RevokeProjectRoleDto.role` is intentionally NOT closed the same way — see
|
|
17
|
+
* the class doc above before changing either field.
|
|
18
|
+
*/
|
|
9
19
|
role: ProjectRole;
|
|
10
20
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,10 +11,6 @@ export * from './createProjectDto';
|
|
|
11
11
|
export * from './createProjectRepoDto';
|
|
12
12
|
export * from './createVariableDto';
|
|
13
13
|
export * from './createWalletDto';
|
|
14
|
-
export * from './errorDetailsDto';
|
|
15
|
-
export * from './errorDetailsDtoDetails';
|
|
16
|
-
export * from './errorPayloadDto';
|
|
17
|
-
export * from './errorResponseDto';
|
|
18
14
|
export * from './existingAssetsDto';
|
|
19
15
|
export * from './grantProjectRoleDto';
|
|
20
16
|
export * from './manifestControllerGetHistoryParams';
|
|
@@ -41,6 +37,8 @@ export * from './patchSectionEntryDtoPatch';
|
|
|
41
37
|
export * from './preferredImageVariantResponseDto';
|
|
42
38
|
export * from './preferredImageVariantResponseDtoDataEnvelope';
|
|
43
39
|
export * from './priorRunSummaryDto';
|
|
40
|
+
export * from './problemDetailsDto';
|
|
41
|
+
export * from './problemFieldIssueDto';
|
|
44
42
|
export * from './projectBindingKind';
|
|
45
43
|
export * from './projectBindingResponseDto';
|
|
46
44
|
export * from './projectBindingResponseDtoDataArrayEnvelope';
|
package/dist/models/index.js
CHANGED
|
@@ -28,10 +28,6 @@ __exportStar(require("./createProjectDto"), exports);
|
|
|
28
28
|
__exportStar(require("./createProjectRepoDto"), exports);
|
|
29
29
|
__exportStar(require("./createVariableDto"), exports);
|
|
30
30
|
__exportStar(require("./createWalletDto"), exports);
|
|
31
|
-
__exportStar(require("./errorDetailsDto"), exports);
|
|
32
|
-
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
33
|
-
__exportStar(require("./errorPayloadDto"), exports);
|
|
34
|
-
__exportStar(require("./errorResponseDto"), exports);
|
|
35
31
|
__exportStar(require("./existingAssetsDto"), exports);
|
|
36
32
|
__exportStar(require("./grantProjectRoleDto"), exports);
|
|
37
33
|
__exportStar(require("./manifestControllerGetHistoryParams"), exports);
|
|
@@ -58,6 +54,8 @@ __exportStar(require("./patchSectionEntryDtoPatch"), exports);
|
|
|
58
54
|
__exportStar(require("./preferredImageVariantResponseDto"), exports);
|
|
59
55
|
__exportStar(require("./preferredImageVariantResponseDtoDataEnvelope"), exports);
|
|
60
56
|
__exportStar(require("./priorRunSummaryDto"), exports);
|
|
57
|
+
__exportStar(require("./problemDetailsDto"), exports);
|
|
58
|
+
__exportStar(require("./problemFieldIssueDto"), exports);
|
|
61
59
|
__exportStar(require("./projectBindingKind"), exports);
|
|
62
60
|
__exportStar(require("./projectBindingResponseDto"), exports);
|
|
63
61
|
__exportStar(require("./projectBindingResponseDtoDataArrayEnvelope"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
|
|
7
|
+
export interface ProblemDetailsDto {
|
|
8
|
+
/** Absolute URI identifying the refusal TYPE. Derived one-to-one from `code`, so a caller may branch on either and can never be told two different things. Never `about:blank`. */
|
|
9
|
+
type: string;
|
|
10
|
+
/** Short, human-readable, and STABLE for a given `type`. Never per-occurrence — that is `detail`. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** The HTTP status code, repeated in the body so a logged document is self-contained. */
|
|
13
|
+
status: number;
|
|
14
|
+
/** SCREAMING_SNAKE_CASE. The machine-branchable refusal, and the value a policy rule, a retry predicate and a UI branch all name. */
|
|
15
|
+
code: string;
|
|
16
|
+
/** Human-readable and specific to THIS occurrence. */
|
|
17
|
+
detail?: string;
|
|
18
|
+
/** URI reference identifying the occurrence — a request path, a run, a row. */
|
|
19
|
+
instance?: string;
|
|
20
|
+
/** W3C trace-context trace-id, present when the caller sent a `traceparent`. Omitted rather than invented when it did not. */
|
|
21
|
+
traceId?: string;
|
|
22
|
+
/** Field-level issues, when the refusal is about the request body. */
|
|
23
|
+
errors?: ProblemFieldIssueDto[];
|
|
24
|
+
}
|
|
@@ -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 interface ProblemFieldIssueDto {
|
|
7
|
+
/** RFC 6901 JSON Pointer into the request body. Root is "/". */
|
|
8
|
+
pointer: string;
|
|
9
|
+
detail: string;
|
|
10
|
+
}
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
* Project Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The role to add. CLOSED set (`ProjectRole`) — an unrecognised value is
|
|
8
|
+
* REFUSED at the wire with 400, never stored. Storing one was the defect
|
|
9
|
+
* this closes: `role` was a bare `string`, so `'adminn'` was accepted,
|
|
10
|
+
* persisted, and then failed the authority check for the lifetime of the row
|
|
11
|
+
* while reading in the UI as a granted role.
|
|
12
|
+
*
|
|
13
|
+
* `RevokeProjectRoleDto.role` is intentionally NOT closed the same way — see
|
|
14
|
+
* the class doc above before changing either field.
|
|
15
|
+
*/
|
|
6
16
|
export type ProjectRole = typeof ProjectRole[keyof typeof ProjectRole];
|
|
7
17
|
export declare const ProjectRole: {
|
|
8
18
|
readonly admin: "admin";
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
export interface ResolveWalletsRequestDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Wallet names to resolve. Must all exist within the project/org scope; missing names fail-fast with WORKFLOW_WALLET_NOT_FOUND.
|
|
9
|
+
* @minItems 1
|
|
10
|
+
* @maxItems 64
|
|
11
|
+
* @items.pattern WALLET_NAME_PATTERN
|
|
12
|
+
*/
|
|
8
13
|
names: string[];
|
|
9
14
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export interface SetPreferredImageVariantDto {
|
|
7
7
|
/**
|
|
8
8
|
* Workspace-image variant slug to prefer for this project. Set null to clear the preference and let the resolver cascade to the org default.
|
|
9
|
+
* @maxLength 120
|
|
9
10
|
* @nullable
|
|
10
11
|
*/
|
|
11
12
|
preferredImageVariantSlug?: string | null;
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
export interface UpdateProjectDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable project name.
|
|
9
|
+
* @maxLength 120
|
|
10
|
+
*/
|
|
8
11
|
name?: string;
|
|
9
12
|
/**
|
|
10
13
|
* Optional project description. Set null to clear the existing description.
|
|
14
|
+
* @maxLength 500
|
|
11
15
|
* @nullable
|
|
12
16
|
*/
|
|
13
17
|
description?: string | null;
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
export interface UpdateVariableDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* New value (required for secrets, optional for non-secrets)
|
|
9
|
+
* @maxLength 8192
|
|
10
|
+
*/
|
|
8
11
|
value?: string;
|
|
12
|
+
/** @maxLength 500 */
|
|
9
13
|
description?: string;
|
|
10
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/project-registry-api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
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.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.19.0",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -32,6 +32,30 @@
|
|
|
32
32
|
"directory": "packages/clients/project-registry-api"
|
|
33
33
|
},
|
|
34
34
|
"description": "Generated public API client for the Xema project-registry-api service.",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./models": {
|
|
41
|
+
"types": "./dist/models/index.d.ts",
|
|
42
|
+
"default": "./dist/models/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./models/*": {
|
|
45
|
+
"types": "./dist/models/*.d.ts",
|
|
46
|
+
"default": "./dist/models/*.js"
|
|
47
|
+
},
|
|
48
|
+
"./endpoints/*": {
|
|
49
|
+
"types": "./dist/endpoints/*.d.ts",
|
|
50
|
+
"default": "./dist/endpoints/*.js"
|
|
51
|
+
},
|
|
52
|
+
"./custom-fetch": {
|
|
53
|
+
"types": "./dist/custom-fetch.d.ts",
|
|
54
|
+
"default": "./dist/custom-fetch.js"
|
|
55
|
+
},
|
|
56
|
+
"./package.json": "./package.json"
|
|
57
|
+
},
|
|
58
|
+
"sideEffects": false,
|
|
35
59
|
"scripts": {
|
|
36
60
|
"build": "tsc -p tsconfig.json"
|
|
37
61
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
|
|
7
|
-
export interface ErrorDetailsDto {
|
|
8
|
-
/** @nullable */
|
|
9
|
-
details: ErrorDetailsDtoDetails;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
import type { ErrorDetailsDto } from './errorDetailsDto.js';
|
|
7
|
-
export interface ErrorPayloadDto {
|
|
8
|
-
code: string;
|
|
9
|
-
message: string;
|
|
10
|
-
details: ErrorDetailsDto | null;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
import type { ErrorPayloadDto } from './errorPayloadDto.js';
|
|
7
|
-
export interface ErrorResponseDto {
|
|
8
|
-
error: ErrorPayloadDto;
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|