@xemahq/skill-registry-api-client 0.1.0 → 0.2.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 +175 -201
- package/dist/custom-fetch.d.ts +1 -1
- package/dist/custom-fetch.js +1 -1
- package/dist/endpoints/skill-governance/skill-governance.d.ts +11 -11
- package/dist/endpoints/skill-governance/skill-governance.js +40 -40
- package/dist/endpoints/skill-repositories/skill-repositories.d.ts +6 -6
- package/dist/endpoints/skill-repositories/skill-repositories.js +18 -18
- package/dist/endpoints/skills/skills.d.ts +11 -11
- package/dist/endpoints/skills/skills.js +40 -40
- package/dist/models/createSkillBundleDto.d.ts +3 -3
- package/dist/models/createSkillBundleResourceDto.d.ts +2 -2
- package/dist/models/createSkillBundleResponseDto.d.ts +1 -1
- package/dist/models/createSkillBundleResponseDto.js +1 -1
- package/dist/models/createSkillBundleResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/createSkillDto.d.ts +4 -4
- package/dist/models/createSkillRepositoryDto.d.ts +1 -1
- package/dist/models/createSkillRepositoryDto.js +1 -1
- package/dist/models/errorDetailsDto.d.ts +2 -2
- package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
- package/dist/models/errorDetailsDtoDetails.js +1 -1
- package/dist/models/errorPayloadDto.d.ts +2 -2
- package/dist/models/errorResponseDto.d.ts +2 -2
- package/dist/models/rejectSkillDto.d.ts +1 -1
- package/dist/models/rejectSkillDto.js +1 -1
- package/dist/models/rollbackSkillDto.d.ts +1 -1
- package/dist/models/rollbackSkillDto.js +1 -1
- package/dist/models/searchSkillsQueryDto.d.ts +2 -2
- package/dist/models/skillAssertionGradingMethod.d.ts +1 -1
- package/dist/models/skillAssertionGradingMethod.js +1 -1
- package/dist/models/skillAssertionResultDto.d.ts +3 -3
- package/dist/models/skillAssertionVerdict.d.ts +1 -1
- package/dist/models/skillAssertionVerdict.js +1 -1
- package/dist/models/skillBundleResourceDto.d.ts +2 -2
- package/dist/models/skillBundleResponseDto.d.ts +2 -2
- package/dist/models/skillBundleResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillCatalogEntryDto.d.ts +2 -2
- package/dist/models/skillCatalogEntryDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/skillEvalBenchmarkDto.d.ts +2 -2
- package/dist/models/skillEvalCaseDto.d.ts +3 -3
- package/dist/models/skillEvalCaseFileDto.d.ts +1 -1
- package/dist/models/skillEvalCaseFileDto.js +1 -1
- package/dist/models/skillEvalCaseResultDto.d.ts +3 -3
- package/dist/models/skillEvalConfigBenchmarkDto.d.ts +2 -2
- package/dist/models/skillEvalRunConfig.d.ts +1 -1
- package/dist/models/skillEvalRunConfig.js +1 -1
- package/dist/models/skillEvalRunResponseDto.d.ts +4 -4
- package/dist/models/skillEvalRunResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillEvalRunStatus.d.ts +1 -1
- package/dist/models/skillEvalRunStatus.js +1 -1
- package/dist/models/skillEvalSuiteResponseDto.d.ts +2 -2
- package/dist/models/skillEvalSuiteResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillGovernanceAction.d.ts +1 -1
- package/dist/models/skillGovernanceAction.js +1 -1
- package/dist/models/skillGovernanceEventDto.d.ts +3 -3
- package/dist/models/skillGovernanceStateDto.d.ts +5 -5
- package/dist/models/skillGovernanceStateDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillInjectionMode.d.ts +1 -1
- package/dist/models/skillInjectionMode.js +1 -1
- package/dist/models/skillKind.d.ts +1 -1
- package/dist/models/skillKind.js +1 -1
- package/dist/models/skillLifecycleState.d.ts +1 -1
- package/dist/models/skillLifecycleState.js +1 -1
- package/dist/models/skillRepositoryResponseDto.d.ts +1 -1
- package/dist/models/skillRepositoryResponseDto.js +1 -1
- package/dist/models/skillRepositoryResponseDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/skillRepositoryResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillRepositorySyncResultDto.d.ts +1 -1
- package/dist/models/skillRepositorySyncResultDto.js +1 -1
- package/dist/models/skillRepositorySyncResultDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillResourceType.d.ts +1 -1
- package/dist/models/skillResourceType.js +1 -1
- package/dist/models/skillResponseDto.d.ts +8 -8
- package/dist/models/skillResponseDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/skillResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/skillRiskIndicator.d.ts +1 -1
- package/dist/models/skillRiskIndicator.js +1 -1
- package/dist/models/skillRiskTier.d.ts +1 -1
- package/dist/models/skillRiskTier.js +1 -1
- package/dist/models/skillSourceKind.d.ts +1 -1
- package/dist/models/skillSourceKind.js +1 -1
- package/dist/models/skillSpace.d.ts +1 -1
- package/dist/models/skillSpace.js +1 -1
- package/dist/models/skillSurface.d.ts +1 -1
- package/dist/models/skillSurface.js +1 -1
- package/dist/models/skillTreeNodeDto.d.ts +2 -2
- package/dist/models/skillTreeNodeDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/skillTriggerExpectation.d.ts +1 -1
- package/dist/models/skillTriggerExpectation.js +1 -1
- package/dist/models/skillsControllerBundleParams.d.ts +1 -1
- package/dist/models/skillsControllerBundleParams.js +1 -1
- package/dist/models/skillsControllerListParams.d.ts +4 -4
- package/dist/models/skillsControllerLookupParams.d.ts +1 -1
- package/dist/models/skillsControllerLookupParams.js +1 -1
- package/dist/models/updateSkillDto.d.ts +2 -2
- package/dist/models/upsertSkillEvalSuiteDto.d.ts +3 -3
- package/package.json +3 -2
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.skillGovernanceControllerRollback = exports.getSkillGovernanceControllerRollbackUrl = exports.skillGovernanceControllerDeprecate = exports.getSkillGovernanceControllerDeprecateUrl = exports.skillGovernanceControllerReject = exports.getSkillGovernanceControllerRejectUrl = exports.skillGovernanceControllerApprove = exports.getSkillGovernanceControllerApproveUrl = exports.skillGovernanceControllerSubmitForReview = exports.getSkillGovernanceControllerSubmitForReviewUrl = exports.skillGovernanceControllerGetLatestRun = exports.getSkillGovernanceControllerGetLatestRunUrl = exports.skillGovernanceControllerRunEvalSuite = exports.getSkillGovernanceControllerRunEvalSuiteUrl = exports.skillGovernanceControllerUpsertEvalSuite = exports.getSkillGovernanceControllerUpsertEvalSuiteUrl = exports.skillGovernanceControllerGetEvalSuite = exports.getSkillGovernanceControllerGetEvalSuiteUrl = exports.skillGovernanceControllerGetState = exports.getSkillGovernanceControllerGetStateUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Lifecycle state, risk tier + the deterministic indicators that fired, eval-suite status, approval provenance, and the append-only audit history of the current version.
|
|
7
|
-
* @summary The governance state of a skill.
|
|
8
|
-
*/
|
|
9
5
|
const getSkillGovernanceControllerGetStateUrl = (id) => {
|
|
10
6
|
return `/skills/${id}/governance`;
|
|
11
7
|
};
|
|
12
8
|
exports.getSkillGovernanceControllerGetStateUrl = getSkillGovernanceControllerGetStateUrl;
|
|
9
|
+
/**
|
|
10
|
+
* Lifecycle state, risk tier + the deterministic indicators that fired, eval-suite status, approval provenance, and the append-only audit history of the current version.
|
|
11
|
+
* @summary The governance state of a skill.
|
|
12
|
+
*/
|
|
13
13
|
const skillGovernanceControllerGetState = async (id, options) => {
|
|
14
14
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerGetStateUrl)(id), {
|
|
15
15
|
...options,
|
|
@@ -17,14 +17,14 @@ const skillGovernanceControllerGetState = async (id, options) => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
exports.skillGovernanceControllerGetState = skillGovernanceControllerGetState;
|
|
20
|
-
/**
|
|
21
|
-
* The 3–5 representative queries plus the last-run outcome.
|
|
22
|
-
* @summary Read the skill's evaluation suite.
|
|
23
|
-
*/
|
|
24
20
|
const getSkillGovernanceControllerGetEvalSuiteUrl = (id) => {
|
|
25
21
|
return `/skills/${id}/governance/eval-suite`;
|
|
26
22
|
};
|
|
27
23
|
exports.getSkillGovernanceControllerGetEvalSuiteUrl = getSkillGovernanceControllerGetEvalSuiteUrl;
|
|
24
|
+
/**
|
|
25
|
+
* The 3–5 representative queries plus the last-run outcome.
|
|
26
|
+
* @summary Read the skill's evaluation suite.
|
|
27
|
+
*/
|
|
28
28
|
const skillGovernanceControllerGetEvalSuite = async (id, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerGetEvalSuiteUrl)(id), {
|
|
30
30
|
...options,
|
|
@@ -32,14 +32,14 @@ const skillGovernanceControllerGetEvalSuite = async (id, options) => {
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
exports.skillGovernanceControllerGetEvalSuite = skillGovernanceControllerGetEvalSuite;
|
|
35
|
-
/**
|
|
36
|
-
* Submit 3–5 representative queries (should-trigger / should-not-trigger / edge). Allowed only while the skill is in `draft`. Replacing the suite clears the last-run outcome.
|
|
37
|
-
* @summary Replace the skill's evaluation suite.
|
|
38
|
-
*/
|
|
39
35
|
const getSkillGovernanceControllerUpsertEvalSuiteUrl = (id) => {
|
|
40
36
|
return `/skills/${id}/governance/eval-suite`;
|
|
41
37
|
};
|
|
42
38
|
exports.getSkillGovernanceControllerUpsertEvalSuiteUrl = getSkillGovernanceControllerUpsertEvalSuiteUrl;
|
|
39
|
+
/**
|
|
40
|
+
* Submit 3–5 representative queries (should-trigger / should-not-trigger / edge). Allowed only while the skill is in `draft`. Replacing the suite clears the last-run outcome.
|
|
41
|
+
* @summary Replace the skill's evaluation suite.
|
|
42
|
+
*/
|
|
43
43
|
const skillGovernanceControllerUpsertEvalSuite = async (id, upsertSkillEvalSuiteDto, options) => {
|
|
44
44
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerUpsertEvalSuiteUrl)(id), {
|
|
45
45
|
...options,
|
|
@@ -49,14 +49,14 @@ const skillGovernanceControllerUpsertEvalSuite = async (id, upsertSkillEvalSuite
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
exports.skillGovernanceControllerUpsertEvalSuite = skillGovernanceControllerUpsertEvalSuite;
|
|
52
|
-
/**
|
|
53
|
-
* Executes a full eval-driven iteration: every test case is run twice — once with the skill mounted, once without it (the baseline) — in ephemeral sandbox sessions; every assertion is graded PASS/FAIL with concrete evidence; an aggregated benchmark (per-config pass rates + the with/without delta) is persisted. A run whose benchmark satisfies the governance gate (with-skill pass rate ≥ threshold AND positive delta) is what `approve` requires.
|
|
54
|
-
* @summary Run the skill's evaluation suite.
|
|
55
|
-
*/
|
|
56
52
|
const getSkillGovernanceControllerRunEvalSuiteUrl = (id) => {
|
|
57
53
|
return `/skills/${id}/governance/eval-suite/run`;
|
|
58
54
|
};
|
|
59
55
|
exports.getSkillGovernanceControllerRunEvalSuiteUrl = getSkillGovernanceControllerRunEvalSuiteUrl;
|
|
56
|
+
/**
|
|
57
|
+
* Executes a full eval-driven iteration: every test case is run twice — once with the skill mounted, once without it (the baseline) — in ephemeral sandbox sessions; every assertion is graded PASS/FAIL with concrete evidence; an aggregated benchmark (per-config pass rates + the with/without delta) is persisted. A run whose benchmark satisfies the governance gate (with-skill pass rate ≥ threshold AND positive delta) is what `approve` requires.
|
|
58
|
+
* @summary Run the skill's evaluation suite.
|
|
59
|
+
*/
|
|
60
60
|
const skillGovernanceControllerRunEvalSuite = async (id, options) => {
|
|
61
61
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerRunEvalSuiteUrl)(id), {
|
|
62
62
|
...options,
|
|
@@ -64,14 +64,14 @@ const skillGovernanceControllerRunEvalSuite = async (id, options) => {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
exports.skillGovernanceControllerRunEvalSuite = skillGovernanceControllerRunEvalSuite;
|
|
67
|
-
/**
|
|
68
|
-
* The most recent eval run with its per-case results, the aggregated benchmark, and the frozen governance-gate verdict.
|
|
69
|
-
* @summary Read the skill's latest evaluation run.
|
|
70
|
-
*/
|
|
71
67
|
const getSkillGovernanceControllerGetLatestRunUrl = (id) => {
|
|
72
68
|
return `/skills/${id}/governance/eval-suite/latest-run`;
|
|
73
69
|
};
|
|
74
70
|
exports.getSkillGovernanceControllerGetLatestRunUrl = getSkillGovernanceControllerGetLatestRunUrl;
|
|
71
|
+
/**
|
|
72
|
+
* The most recent eval run with its per-case results, the aggregated benchmark, and the frozen governance-gate verdict.
|
|
73
|
+
* @summary Read the skill's latest evaluation run.
|
|
74
|
+
*/
|
|
75
75
|
const skillGovernanceControllerGetLatestRun = async (id, options) => {
|
|
76
76
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerGetLatestRunUrl)(id), {
|
|
77
77
|
...options,
|
|
@@ -79,14 +79,14 @@ const skillGovernanceControllerGetLatestRun = async (id, options) => {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
exports.skillGovernanceControllerGetLatestRun = skillGovernanceControllerGetLatestRun;
|
|
82
|
-
/**
|
|
83
|
-
* Transitions the current version `draft → in_review`.
|
|
84
|
-
* @summary Submit the skill for review.
|
|
85
|
-
*/
|
|
86
82
|
const getSkillGovernanceControllerSubmitForReviewUrl = (id) => {
|
|
87
83
|
return `/skills/${id}/governance/submit-for-review`;
|
|
88
84
|
};
|
|
89
85
|
exports.getSkillGovernanceControllerSubmitForReviewUrl = getSkillGovernanceControllerSubmitForReviewUrl;
|
|
86
|
+
/**
|
|
87
|
+
* Transitions the current version `draft → in_review`.
|
|
88
|
+
* @summary Submit the skill for review.
|
|
89
|
+
*/
|
|
90
90
|
const skillGovernanceControllerSubmitForReview = async (id, options) => {
|
|
91
91
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerSubmitForReviewUrl)(id), {
|
|
92
92
|
...options,
|
|
@@ -94,14 +94,14 @@ const skillGovernanceControllerSubmitForReview = async (id, options) => {
|
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
exports.skillGovernanceControllerSubmitForReview = skillGovernanceControllerSubmitForReview;
|
|
97
|
-
/**
|
|
98
|
-
* Transitions `in_review → approved`. Blocked unless the caller differs from the author (separation of duties) and the evaluation suite has a passing run.
|
|
99
|
-
* @summary Approve the skill.
|
|
100
|
-
*/
|
|
101
97
|
const getSkillGovernanceControllerApproveUrl = (id) => {
|
|
102
98
|
return `/skills/${id}/governance/approve`;
|
|
103
99
|
};
|
|
104
100
|
exports.getSkillGovernanceControllerApproveUrl = getSkillGovernanceControllerApproveUrl;
|
|
101
|
+
/**
|
|
102
|
+
* Transitions `in_review → approved`. Blocked unless the caller differs from the author (separation of duties) and the evaluation suite has a passing run.
|
|
103
|
+
* @summary Approve the skill.
|
|
104
|
+
*/
|
|
105
105
|
const skillGovernanceControllerApprove = async (id, options) => {
|
|
106
106
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerApproveUrl)(id), {
|
|
107
107
|
...options,
|
|
@@ -109,14 +109,14 @@ const skillGovernanceControllerApprove = async (id, options) => {
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
exports.skillGovernanceControllerApprove = skillGovernanceControllerApprove;
|
|
112
|
-
/**
|
|
113
|
-
* Transitions `in_review → draft` so the author can revise. A reason is required and recorded on the audit log.
|
|
114
|
-
* @summary Reject the skill under review.
|
|
115
|
-
*/
|
|
116
112
|
const getSkillGovernanceControllerRejectUrl = (id) => {
|
|
117
113
|
return `/skills/${id}/governance/reject`;
|
|
118
114
|
};
|
|
119
115
|
exports.getSkillGovernanceControllerRejectUrl = getSkillGovernanceControllerRejectUrl;
|
|
116
|
+
/**
|
|
117
|
+
* Transitions `in_review → draft` so the author can revise. A reason is required and recorded on the audit log.
|
|
118
|
+
* @summary Reject the skill under review.
|
|
119
|
+
*/
|
|
120
120
|
const skillGovernanceControllerReject = async (id, rejectSkillDto, options) => {
|
|
121
121
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerRejectUrl)(id), {
|
|
122
122
|
...options,
|
|
@@ -126,14 +126,14 @@ const skillGovernanceControllerReject = async (id, rejectSkillDto, options) => {
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
exports.skillGovernanceControllerReject = skillGovernanceControllerReject;
|
|
129
|
-
/**
|
|
130
|
-
* Transitions `approved → deprecated`.
|
|
131
|
-
* @summary Deprecate an approved skill.
|
|
132
|
-
*/
|
|
133
129
|
const getSkillGovernanceControllerDeprecateUrl = (id) => {
|
|
134
130
|
return `/skills/${id}/governance/deprecate`;
|
|
135
131
|
};
|
|
136
132
|
exports.getSkillGovernanceControllerDeprecateUrl = getSkillGovernanceControllerDeprecateUrl;
|
|
133
|
+
/**
|
|
134
|
+
* Transitions `approved → deprecated`.
|
|
135
|
+
* @summary Deprecate an approved skill.
|
|
136
|
+
*/
|
|
137
137
|
const skillGovernanceControllerDeprecate = async (id, options) => {
|
|
138
138
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerDeprecateUrl)(id), {
|
|
139
139
|
...options,
|
|
@@ -141,14 +141,14 @@ const skillGovernanceControllerDeprecate = async (id, options) => {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
exports.skillGovernanceControllerDeprecate = skillGovernanceControllerDeprecate;
|
|
144
|
-
/**
|
|
145
|
-
* Re-points the skill's current version to an already-approved version. No version's lifecycle state changes; the move is recorded on the audit log.
|
|
146
|
-
* @summary Roll the skill back to a prior approved version.
|
|
147
|
-
*/
|
|
148
144
|
const getSkillGovernanceControllerRollbackUrl = (id) => {
|
|
149
145
|
return `/skills/${id}/governance/rollback`;
|
|
150
146
|
};
|
|
151
147
|
exports.getSkillGovernanceControllerRollbackUrl = getSkillGovernanceControllerRollbackUrl;
|
|
148
|
+
/**
|
|
149
|
+
* Re-points the skill's current version to an already-approved version. No version's lifecycle state changes; the move is recorded on the audit log.
|
|
150
|
+
* @summary Roll the skill back to a prior approved version.
|
|
151
|
+
*/
|
|
152
152
|
const skillGovernanceControllerRollback = async (id, rollbackSkillDto, options) => {
|
|
153
153
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillGovernanceControllerRollbackUrl)(id), {
|
|
154
154
|
...options,
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Skill Registry API
|
|
5
5
|
* Skill-registry extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CreateSkillRepositoryDto, SkillRepositoryResponseDtoDataArrayEnvelope, SkillRepositoryResponseDtoDataEnvelope, SkillRepositorySyncResultDtoDataEnvelope } from '../../models';
|
|
9
|
+
export declare const getSkillRepositoriesControllerListUrl: () => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary List the git skill repositories registered by the caller org.
|
|
11
12
|
*/
|
|
12
|
-
export declare const getSkillRepositoriesControllerListUrl: () => string;
|
|
13
13
|
export declare const skillRepositoriesControllerList: (options?: RequestInit) => Promise<SkillRepositoryResponseDtoDataArrayEnvelope>;
|
|
14
|
+
export declare const getSkillRepositoriesControllerCreateUrl: () => string;
|
|
14
15
|
/**
|
|
15
16
|
* Stores the repo; call `POST /skill-repositories/:id/sync` to ingest its SKILL.md bundles. A duplicate `(org, url)` returns 409.
|
|
16
17
|
* @summary Register a git repository as a skill source.
|
|
17
18
|
*/
|
|
18
|
-
export declare const getSkillRepositoriesControllerCreateUrl: () => string;
|
|
19
19
|
export declare const skillRepositoriesControllerCreate: (createSkillRepositoryDto: CreateSkillRepositoryDto, options?: RequestInit) => Promise<SkillRepositoryResponseDtoDataEnvelope>;
|
|
20
|
+
export declare const getSkillRepositoriesControllerGetByIdUrl: (id: string) => string;
|
|
20
21
|
/**
|
|
21
22
|
* @summary Get a registered skill repository by id.
|
|
22
23
|
*/
|
|
23
|
-
export declare const getSkillRepositoriesControllerGetByIdUrl: (id: string) => string;
|
|
24
24
|
export declare const skillRepositoriesControllerGetById: (id: string, options?: RequestInit) => Promise<SkillRepositoryResponseDtoDataEnvelope>;
|
|
25
|
+
export declare const getSkillRepositoriesControllerRemoveUrl: (id: string) => string;
|
|
25
26
|
/**
|
|
26
27
|
* Cascade-deletes every skill ingested from this repository.
|
|
27
28
|
* @summary Remove a skill repository.
|
|
28
29
|
*/
|
|
29
|
-
export declare const getSkillRepositoriesControllerRemoveUrl: (id: string) => string;
|
|
30
30
|
export declare const skillRepositoriesControllerRemove: (id: string, options?: RequestInit) => Promise<SkillRepositoryResponseDtoDataEnvelope>;
|
|
31
|
+
export declare const getSkillRepositoriesControllerSyncUrl: (id: string) => string;
|
|
31
32
|
/**
|
|
32
33
|
* Shallow-clones the repo, ingests every SKILL.md bundle as an org-scoped git-sourced skill, and prunes skills removed from the repo.
|
|
33
34
|
* @summary Sync a skill repository.
|
|
34
35
|
*/
|
|
35
|
-
export declare const getSkillRepositoriesControllerSyncUrl: (id: string) => string;
|
|
36
36
|
export declare const skillRepositoriesControllerSync: (id: string, options?: RequestInit) => Promise<SkillRepositorySyncResultDtoDataEnvelope>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.skillRepositoriesControllerSync = exports.getSkillRepositoriesControllerSyncUrl = exports.skillRepositoriesControllerRemove = exports.getSkillRepositoriesControllerRemoveUrl = exports.skillRepositoriesControllerGetById = exports.getSkillRepositoriesControllerGetByIdUrl = exports.skillRepositoriesControllerCreate = exports.getSkillRepositoriesControllerCreateUrl = exports.skillRepositoriesControllerList = exports.getSkillRepositoriesControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary List the git skill repositories registered by the caller org.
|
|
7
|
-
*/
|
|
8
5
|
const getSkillRepositoriesControllerListUrl = () => {
|
|
9
6
|
return `/skill-repositories`;
|
|
10
7
|
};
|
|
11
8
|
exports.getSkillRepositoriesControllerListUrl = getSkillRepositoriesControllerListUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List the git skill repositories registered by the caller org.
|
|
11
|
+
*/
|
|
12
12
|
const skillRepositoriesControllerList = async (options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillRepositoriesControllerListUrl)(), {
|
|
14
14
|
...options,
|
|
@@ -16,14 +16,14 @@ const skillRepositoriesControllerList = async (options) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.skillRepositoriesControllerList = skillRepositoriesControllerList;
|
|
19
|
-
/**
|
|
20
|
-
* Stores the repo; call `POST /skill-repositories/:id/sync` to ingest its SKILL.md bundles. A duplicate `(org, url)` returns 409.
|
|
21
|
-
* @summary Register a git repository as a skill source.
|
|
22
|
-
*/
|
|
23
19
|
const getSkillRepositoriesControllerCreateUrl = () => {
|
|
24
20
|
return `/skill-repositories`;
|
|
25
21
|
};
|
|
26
22
|
exports.getSkillRepositoriesControllerCreateUrl = getSkillRepositoriesControllerCreateUrl;
|
|
23
|
+
/**
|
|
24
|
+
* Stores the repo; call `POST /skill-repositories/:id/sync` to ingest its SKILL.md bundles. A duplicate `(org, url)` returns 409.
|
|
25
|
+
* @summary Register a git repository as a skill source.
|
|
26
|
+
*/
|
|
27
27
|
const skillRepositoriesControllerCreate = async (createSkillRepositoryDto, options) => {
|
|
28
28
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillRepositoriesControllerCreateUrl)(), {
|
|
29
29
|
...options,
|
|
@@ -33,13 +33,13 @@ const skillRepositoriesControllerCreate = async (createSkillRepositoryDto, optio
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
exports.skillRepositoriesControllerCreate = skillRepositoriesControllerCreate;
|
|
36
|
-
/**
|
|
37
|
-
* @summary Get a registered skill repository by id.
|
|
38
|
-
*/
|
|
39
36
|
const getSkillRepositoriesControllerGetByIdUrl = (id) => {
|
|
40
37
|
return `/skill-repositories/${id}`;
|
|
41
38
|
};
|
|
42
39
|
exports.getSkillRepositoriesControllerGetByIdUrl = getSkillRepositoriesControllerGetByIdUrl;
|
|
40
|
+
/**
|
|
41
|
+
* @summary Get a registered skill repository by id.
|
|
42
|
+
*/
|
|
43
43
|
const skillRepositoriesControllerGetById = async (id, options) => {
|
|
44
44
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillRepositoriesControllerGetByIdUrl)(id), {
|
|
45
45
|
...options,
|
|
@@ -47,14 +47,14 @@ const skillRepositoriesControllerGetById = async (id, options) => {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
exports.skillRepositoriesControllerGetById = skillRepositoriesControllerGetById;
|
|
50
|
-
/**
|
|
51
|
-
* Cascade-deletes every skill ingested from this repository.
|
|
52
|
-
* @summary Remove a skill repository.
|
|
53
|
-
*/
|
|
54
50
|
const getSkillRepositoriesControllerRemoveUrl = (id) => {
|
|
55
51
|
return `/skill-repositories/${id}`;
|
|
56
52
|
};
|
|
57
53
|
exports.getSkillRepositoriesControllerRemoveUrl = getSkillRepositoriesControllerRemoveUrl;
|
|
54
|
+
/**
|
|
55
|
+
* Cascade-deletes every skill ingested from this repository.
|
|
56
|
+
* @summary Remove a skill repository.
|
|
57
|
+
*/
|
|
58
58
|
const skillRepositoriesControllerRemove = async (id, options) => {
|
|
59
59
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillRepositoriesControllerRemoveUrl)(id), {
|
|
60
60
|
...options,
|
|
@@ -62,14 +62,14 @@ const skillRepositoriesControllerRemove = async (id, options) => {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
exports.skillRepositoriesControllerRemove = skillRepositoriesControllerRemove;
|
|
65
|
-
/**
|
|
66
|
-
* Shallow-clones the repo, ingests every SKILL.md bundle as an org-scoped git-sourced skill, and prunes skills removed from the repo.
|
|
67
|
-
* @summary Sync a skill repository.
|
|
68
|
-
*/
|
|
69
65
|
const getSkillRepositoriesControllerSyncUrl = (id) => {
|
|
70
66
|
return `/skill-repositories/${id}/sync`;
|
|
71
67
|
};
|
|
72
68
|
exports.getSkillRepositoriesControllerSyncUrl = getSkillRepositoriesControllerSyncUrl;
|
|
69
|
+
/**
|
|
70
|
+
* Shallow-clones the repo, ingests every SKILL.md bundle as an org-scoped git-sourced skill, and prunes skills removed from the repo.
|
|
71
|
+
* @summary Sync a skill repository.
|
|
72
|
+
*/
|
|
73
73
|
const skillRepositoriesControllerSync = async (id, options) => {
|
|
74
74
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillRepositoriesControllerSyncUrl)(id), {
|
|
75
75
|
...options,
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Skill Registry API
|
|
5
5
|
* Skill-registry extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CreateSkillBundleDto, CreateSkillBundleResponseDtoDataEnvelope, CreateSkillDto, SearchSkillsQueryDto, SkillBundleResponseDtoDataEnvelope, SkillCatalogEntryDtoDataArrayEnvelope, SkillResponseDtoDataArrayEnvelope, SkillResponseDtoDataEnvelope, SkillTreeNodeDtoDataArrayEnvelope, SkillsControllerBundleParams, SkillsControllerListParams, SkillsControllerLookupParams, UpdateSkillDto } from '../../models';
|
|
9
|
+
export declare const getSkillsControllerListUrl: (params?: SkillsControllerListParams) => string;
|
|
9
10
|
/**
|
|
10
11
|
* Returns every active system skill plus the caller org/project/user skills. Optional filters (scope, kind, parentSlug, topLevelOnly) are AND-combined. `skillMarkdown` is omitted from list rows.
|
|
11
12
|
* @summary List skills visible to the caller.
|
|
12
13
|
*/
|
|
13
|
-
export declare const getSkillsControllerListUrl: (params?: SkillsControllerListParams) => string;
|
|
14
14
|
export declare const skillsControllerList: (params?: SkillsControllerListParams, options?: RequestInit) => Promise<SkillResponseDtoDataArrayEnvelope>;
|
|
15
|
+
export declare const getSkillsControllerCreateUrl: () => string;
|
|
15
16
|
/**
|
|
16
17
|
* Creates a skill + its first draft version. Scope must be org, project, or user. A `(scope, slug)` collision returns 409.
|
|
17
18
|
* @summary Author a new skill.
|
|
18
19
|
*/
|
|
19
|
-
export declare const getSkillsControllerCreateUrl: () => string;
|
|
20
20
|
export declare const skillsControllerCreate: (createSkillDto: CreateSkillDto, options?: RequestInit) => Promise<SkillResponseDtoDataEnvelope>;
|
|
21
|
+
export declare const getSkillsControllerTreeUrl: () => string;
|
|
21
22
|
/**
|
|
22
23
|
* Top-level skills with their nested sub-skills. A skill whose parent is not visible to the caller is surfaced as a root.
|
|
23
24
|
* @summary The visible skill hierarchy as a nested tree.
|
|
24
25
|
*/
|
|
25
|
-
export declare const getSkillsControllerTreeUrl: () => string;
|
|
26
26
|
export declare const skillsControllerTree: (options?: RequestInit) => Promise<SkillTreeNodeDtoDataArrayEnvelope>;
|
|
27
|
+
export declare const getSkillsControllerRegistryJsonUrl: () => string;
|
|
27
28
|
/**
|
|
28
29
|
* A flat catalog (slug, name, description, kind, category, tags) of every visible skill — the progressive-disclosure discovery surface.
|
|
29
30
|
* @summary OpenCode-compatible skill catalog.
|
|
30
31
|
*/
|
|
31
|
-
export declare const getSkillsControllerRegistryJsonUrl: () => string;
|
|
32
32
|
export declare const skillsControllerRegistryJson: (options?: RequestInit) => Promise<SkillCatalogEntryDtoDataArrayEnvelope>;
|
|
33
|
+
export declare const getSkillsControllerLookupUrl: (params: SkillsControllerLookupParams) => string;
|
|
33
34
|
/**
|
|
34
35
|
* Slugs contain `/`, so they are passed as a query param rather than a path segment. When the slug exists at multiple scopes the most specific visible one wins: user > project > org > system.
|
|
35
36
|
* @summary Resolve a skill by its hierarchical slug.
|
|
36
37
|
*/
|
|
37
|
-
export declare const getSkillsControllerLookupUrl: (params: SkillsControllerLookupParams) => string;
|
|
38
38
|
export declare const skillsControllerLookup: (params: SkillsControllerLookupParams, options?: RequestInit) => Promise<SkillResponseDtoDataEnvelope>;
|
|
39
|
+
export declare const getSkillsControllerBundleUrl: (params: SkillsControllerBundleParams) => string;
|
|
39
40
|
/**
|
|
40
41
|
* SKILL.md plus every bundled resource (reference docs, scripts, assets, templates) for the highest-precedence visible skill at `slug`. This is what the workspace composer mounts into `/workspace/.opencode/skills/`.
|
|
41
42
|
* @summary The full mountable bundle for a skill.
|
|
42
43
|
*/
|
|
43
|
-
export declare const getSkillsControllerBundleUrl: (params: SkillsControllerBundleParams) => string;
|
|
44
44
|
export declare const skillsControllerBundle: (params: SkillsControllerBundleParams, options?: RequestInit) => Promise<SkillBundleResponseDtoDataEnvelope>;
|
|
45
|
+
export declare const getSkillsControllerAuthorBundleUrl: () => string;
|
|
45
46
|
/**
|
|
46
47
|
* Creates or replaces a skill from a complete bundle — SKILL.md plus reference docs, scripts, assets, templates, and nested sub-skills (a resource whose `relPath` is a nested `SKILL.md`). Use this from the Agent Studio skill builder; `POST /skills` remains the single-file quick-create path. Scope must be `org`, `project`, or `user`. Only SKILL.md is strictly validated. Re-authoring the same `(scope, slug)` upserts the bundle in place as a new draft version. A slug owned by a biome/git source returns 409.
|
|
47
48
|
* @summary Author a skill as a full multi-file bundle.
|
|
48
49
|
*/
|
|
49
|
-
export declare const getSkillsControllerAuthorBundleUrl: () => string;
|
|
50
50
|
export declare const skillsControllerAuthorBundle: (createSkillBundleDto: CreateSkillBundleDto, options?: RequestInit) => Promise<CreateSkillBundleResponseDtoDataEnvelope>;
|
|
51
|
+
export declare const getSkillsControllerGetByIdUrl: (id: string) => string;
|
|
51
52
|
/**
|
|
52
53
|
* Returns the skill including its current-version SKILL.md body.
|
|
53
54
|
* @summary Get a skill by id.
|
|
54
55
|
*/
|
|
55
|
-
export declare const getSkillsControllerGetByIdUrl: (id: string) => string;
|
|
56
56
|
export declare const skillsControllerGetById: (id: string, options?: RequestInit) => Promise<SkillResponseDtoDataEnvelope>;
|
|
57
|
+
export declare const getSkillsControllerUpdateUrl: (id: string) => string;
|
|
57
58
|
/**
|
|
58
59
|
* Updates metadata in place. When `skillMarkdown` is supplied a new draft version is created and becomes current (`version` then required). System/biome skills are read-only — 409 with a fork-first hint.
|
|
59
60
|
* @summary Update a skill.
|
|
60
61
|
*/
|
|
61
|
-
export declare const getSkillsControllerUpdateUrl: (id: string) => string;
|
|
62
62
|
export declare const skillsControllerUpdate: (id: string, updateSkillDto: UpdateSkillDto, options?: RequestInit) => Promise<SkillResponseDtoDataEnvelope>;
|
|
63
|
+
export declare const getSkillsControllerSearchUrl: () => string;
|
|
63
64
|
/**
|
|
64
65
|
* Keyword search over skill name and description, scoped to the caller's visible skills. Name matches rank above description-only matches.
|
|
65
66
|
* @summary Search skills by keyword.
|
|
66
67
|
*/
|
|
67
|
-
export declare const getSkillsControllerSearchUrl: () => string;
|
|
68
68
|
export declare const skillsControllerSearch: (searchSkillsQueryDto: SearchSkillsQueryDto, options?: RequestInit) => Promise<SkillResponseDtoDataArrayEnvelope>;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.skillsControllerSearch = exports.getSkillsControllerSearchUrl = exports.skillsControllerUpdate = exports.getSkillsControllerUpdateUrl = exports.skillsControllerGetById = exports.getSkillsControllerGetByIdUrl = exports.skillsControllerAuthorBundle = exports.getSkillsControllerAuthorBundleUrl = exports.skillsControllerBundle = exports.getSkillsControllerBundleUrl = exports.skillsControllerLookup = exports.getSkillsControllerLookupUrl = exports.skillsControllerRegistryJson = exports.getSkillsControllerRegistryJsonUrl = exports.skillsControllerTree = exports.getSkillsControllerTreeUrl = exports.skillsControllerCreate = exports.getSkillsControllerCreateUrl = exports.skillsControllerList = exports.getSkillsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Returns every active system skill plus the caller org/project/user skills. Optional filters (scope, kind, parentSlug, topLevelOnly) are AND-combined. `skillMarkdown` is omitted from list rows.
|
|
7
|
-
* @summary List skills visible to the caller.
|
|
8
|
-
*/
|
|
9
5
|
const getSkillsControllerListUrl = (params) => {
|
|
10
6
|
const normalizedParams = new URLSearchParams();
|
|
11
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -29,6 +25,10 @@ const getSkillsControllerListUrl = (params) => {
|
|
|
29
25
|
return stringifiedParams.length > 0 ? `/skills?${stringifiedParams}` : `/skills`;
|
|
30
26
|
};
|
|
31
27
|
exports.getSkillsControllerListUrl = getSkillsControllerListUrl;
|
|
28
|
+
/**
|
|
29
|
+
* Returns every active system skill plus the caller org/project/user skills. Optional filters (scope, kind, parentSlug, topLevelOnly) are AND-combined. `skillMarkdown` is omitted from list rows.
|
|
30
|
+
* @summary List skills visible to the caller.
|
|
31
|
+
*/
|
|
32
32
|
const skillsControllerList = async (params, options) => {
|
|
33
33
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerListUrl)(params), {
|
|
34
34
|
...options,
|
|
@@ -36,14 +36,14 @@ const skillsControllerList = async (params, options) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
exports.skillsControllerList = skillsControllerList;
|
|
39
|
-
/**
|
|
40
|
-
* Creates a skill + its first draft version. Scope must be org, project, or user. A `(scope, slug)` collision returns 409.
|
|
41
|
-
* @summary Author a new skill.
|
|
42
|
-
*/
|
|
43
39
|
const getSkillsControllerCreateUrl = () => {
|
|
44
40
|
return `/skills`;
|
|
45
41
|
};
|
|
46
42
|
exports.getSkillsControllerCreateUrl = getSkillsControllerCreateUrl;
|
|
43
|
+
/**
|
|
44
|
+
* Creates a skill + its first draft version. Scope must be org, project, or user. A `(scope, slug)` collision returns 409.
|
|
45
|
+
* @summary Author a new skill.
|
|
46
|
+
*/
|
|
47
47
|
const skillsControllerCreate = async (createSkillDto, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerCreateUrl)(), {
|
|
49
49
|
...options,
|
|
@@ -53,14 +53,14 @@ const skillsControllerCreate = async (createSkillDto, options) => {
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
exports.skillsControllerCreate = skillsControllerCreate;
|
|
56
|
-
/**
|
|
57
|
-
* Top-level skills with their nested sub-skills. A skill whose parent is not visible to the caller is surfaced as a root.
|
|
58
|
-
* @summary The visible skill hierarchy as a nested tree.
|
|
59
|
-
*/
|
|
60
56
|
const getSkillsControllerTreeUrl = () => {
|
|
61
57
|
return `/skills/tree`;
|
|
62
58
|
};
|
|
63
59
|
exports.getSkillsControllerTreeUrl = getSkillsControllerTreeUrl;
|
|
60
|
+
/**
|
|
61
|
+
* Top-level skills with their nested sub-skills. A skill whose parent is not visible to the caller is surfaced as a root.
|
|
62
|
+
* @summary The visible skill hierarchy as a nested tree.
|
|
63
|
+
*/
|
|
64
64
|
const skillsControllerTree = async (options) => {
|
|
65
65
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerTreeUrl)(), {
|
|
66
66
|
...options,
|
|
@@ -68,14 +68,14 @@ const skillsControllerTree = async (options) => {
|
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
exports.skillsControllerTree = skillsControllerTree;
|
|
71
|
-
/**
|
|
72
|
-
* A flat catalog (slug, name, description, kind, category, tags) of every visible skill — the progressive-disclosure discovery surface.
|
|
73
|
-
* @summary OpenCode-compatible skill catalog.
|
|
74
|
-
*/
|
|
75
71
|
const getSkillsControllerRegistryJsonUrl = () => {
|
|
76
72
|
return `/skills/registry.json`;
|
|
77
73
|
};
|
|
78
74
|
exports.getSkillsControllerRegistryJsonUrl = getSkillsControllerRegistryJsonUrl;
|
|
75
|
+
/**
|
|
76
|
+
* A flat catalog (slug, name, description, kind, category, tags) of every visible skill — the progressive-disclosure discovery surface.
|
|
77
|
+
* @summary OpenCode-compatible skill catalog.
|
|
78
|
+
*/
|
|
79
79
|
const skillsControllerRegistryJson = async (options) => {
|
|
80
80
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerRegistryJsonUrl)(), {
|
|
81
81
|
...options,
|
|
@@ -83,10 +83,6 @@ const skillsControllerRegistryJson = async (options) => {
|
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
exports.skillsControllerRegistryJson = skillsControllerRegistryJson;
|
|
86
|
-
/**
|
|
87
|
-
* Slugs contain `/`, so they are passed as a query param rather than a path segment. When the slug exists at multiple scopes the most specific visible one wins: user > project > org > system.
|
|
88
|
-
* @summary Resolve a skill by its hierarchical slug.
|
|
89
|
-
*/
|
|
90
86
|
const getSkillsControllerLookupUrl = (params) => {
|
|
91
87
|
const normalizedParams = new URLSearchParams();
|
|
92
88
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -110,6 +106,10 @@ const getSkillsControllerLookupUrl = (params) => {
|
|
|
110
106
|
return stringifiedParams.length > 0 ? `/skills/lookup?${stringifiedParams}` : `/skills/lookup`;
|
|
111
107
|
};
|
|
112
108
|
exports.getSkillsControllerLookupUrl = getSkillsControllerLookupUrl;
|
|
109
|
+
/**
|
|
110
|
+
* Slugs contain `/`, so they are passed as a query param rather than a path segment. When the slug exists at multiple scopes the most specific visible one wins: user > project > org > system.
|
|
111
|
+
* @summary Resolve a skill by its hierarchical slug.
|
|
112
|
+
*/
|
|
113
113
|
const skillsControllerLookup = async (params, options) => {
|
|
114
114
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerLookupUrl)(params), {
|
|
115
115
|
...options,
|
|
@@ -117,10 +117,6 @@ const skillsControllerLookup = async (params, options) => {
|
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
119
|
exports.skillsControllerLookup = skillsControllerLookup;
|
|
120
|
-
/**
|
|
121
|
-
* SKILL.md plus every bundled resource (reference docs, scripts, assets, templates) for the highest-precedence visible skill at `slug`. This is what the workspace composer mounts into `/workspace/.opencode/skills/`.
|
|
122
|
-
* @summary The full mountable bundle for a skill.
|
|
123
|
-
*/
|
|
124
120
|
const getSkillsControllerBundleUrl = (params) => {
|
|
125
121
|
const normalizedParams = new URLSearchParams();
|
|
126
122
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -144,6 +140,10 @@ const getSkillsControllerBundleUrl = (params) => {
|
|
|
144
140
|
return stringifiedParams.length > 0 ? `/skills/bundle?${stringifiedParams}` : `/skills/bundle`;
|
|
145
141
|
};
|
|
146
142
|
exports.getSkillsControllerBundleUrl = getSkillsControllerBundleUrl;
|
|
143
|
+
/**
|
|
144
|
+
* SKILL.md plus every bundled resource (reference docs, scripts, assets, templates) for the highest-precedence visible skill at `slug`. This is what the workspace composer mounts into `/workspace/.opencode/skills/`.
|
|
145
|
+
* @summary The full mountable bundle for a skill.
|
|
146
|
+
*/
|
|
147
147
|
const skillsControllerBundle = async (params, options) => {
|
|
148
148
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerBundleUrl)(params), {
|
|
149
149
|
...options,
|
|
@@ -151,14 +151,14 @@ const skillsControllerBundle = async (params, options) => {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
exports.skillsControllerBundle = skillsControllerBundle;
|
|
154
|
-
/**
|
|
155
|
-
* Creates or replaces a skill from a complete bundle — SKILL.md plus reference docs, scripts, assets, templates, and nested sub-skills (a resource whose `relPath` is a nested `SKILL.md`). Use this from the Agent Studio skill builder; `POST /skills` remains the single-file quick-create path. Scope must be `org`, `project`, or `user`. Only SKILL.md is strictly validated. Re-authoring the same `(scope, slug)` upserts the bundle in place as a new draft version. A slug owned by a biome/git source returns 409.
|
|
156
|
-
* @summary Author a skill as a full multi-file bundle.
|
|
157
|
-
*/
|
|
158
154
|
const getSkillsControllerAuthorBundleUrl = () => {
|
|
159
155
|
return `/skills/bundle`;
|
|
160
156
|
};
|
|
161
157
|
exports.getSkillsControllerAuthorBundleUrl = getSkillsControllerAuthorBundleUrl;
|
|
158
|
+
/**
|
|
159
|
+
* Creates or replaces a skill from a complete bundle — SKILL.md plus reference docs, scripts, assets, templates, and nested sub-skills (a resource whose `relPath` is a nested `SKILL.md`). Use this from the Agent Studio skill builder; `POST /skills` remains the single-file quick-create path. Scope must be `org`, `project`, or `user`. Only SKILL.md is strictly validated. Re-authoring the same `(scope, slug)` upserts the bundle in place as a new draft version. A slug owned by a biome/git source returns 409.
|
|
160
|
+
* @summary Author a skill as a full multi-file bundle.
|
|
161
|
+
*/
|
|
162
162
|
const skillsControllerAuthorBundle = async (createSkillBundleDto, options) => {
|
|
163
163
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerAuthorBundleUrl)(), {
|
|
164
164
|
...options,
|
|
@@ -168,14 +168,14 @@ const skillsControllerAuthorBundle = async (createSkillBundleDto, options) => {
|
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
170
|
exports.skillsControllerAuthorBundle = skillsControllerAuthorBundle;
|
|
171
|
-
/**
|
|
172
|
-
* Returns the skill including its current-version SKILL.md body.
|
|
173
|
-
* @summary Get a skill by id.
|
|
174
|
-
*/
|
|
175
171
|
const getSkillsControllerGetByIdUrl = (id) => {
|
|
176
172
|
return `/skills/${id}`;
|
|
177
173
|
};
|
|
178
174
|
exports.getSkillsControllerGetByIdUrl = getSkillsControllerGetByIdUrl;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the skill including its current-version SKILL.md body.
|
|
177
|
+
* @summary Get a skill by id.
|
|
178
|
+
*/
|
|
179
179
|
const skillsControllerGetById = async (id, options) => {
|
|
180
180
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerGetByIdUrl)(id), {
|
|
181
181
|
...options,
|
|
@@ -183,14 +183,14 @@ const skillsControllerGetById = async (id, options) => {
|
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
185
|
exports.skillsControllerGetById = skillsControllerGetById;
|
|
186
|
-
/**
|
|
187
|
-
* Updates metadata in place. When `skillMarkdown` is supplied a new draft version is created and becomes current (`version` then required). System/biome skills are read-only — 409 with a fork-first hint.
|
|
188
|
-
* @summary Update a skill.
|
|
189
|
-
*/
|
|
190
186
|
const getSkillsControllerUpdateUrl = (id) => {
|
|
191
187
|
return `/skills/${id}`;
|
|
192
188
|
};
|
|
193
189
|
exports.getSkillsControllerUpdateUrl = getSkillsControllerUpdateUrl;
|
|
190
|
+
/**
|
|
191
|
+
* Updates metadata in place. When `skillMarkdown` is supplied a new draft version is created and becomes current (`version` then required). System/biome skills are read-only — 409 with a fork-first hint.
|
|
192
|
+
* @summary Update a skill.
|
|
193
|
+
*/
|
|
194
194
|
const skillsControllerUpdate = async (id, updateSkillDto, options) => {
|
|
195
195
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerUpdateUrl)(id), {
|
|
196
196
|
...options,
|
|
@@ -200,14 +200,14 @@ const skillsControllerUpdate = async (id, updateSkillDto, options) => {
|
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
exports.skillsControllerUpdate = skillsControllerUpdate;
|
|
203
|
-
/**
|
|
204
|
-
* Keyword search over skill name and description, scoped to the caller's visible skills. Name matches rank above description-only matches.
|
|
205
|
-
* @summary Search skills by keyword.
|
|
206
|
-
*/
|
|
207
203
|
const getSkillsControllerSearchUrl = () => {
|
|
208
204
|
return `/skills/search`;
|
|
209
205
|
};
|
|
210
206
|
exports.getSkillsControllerSearchUrl = getSkillsControllerSearchUrl;
|
|
207
|
+
/**
|
|
208
|
+
* Keyword search over skill name and description, scoped to the caller's visible skills. Name matches rank above description-only matches.
|
|
209
|
+
* @summary Search skills by keyword.
|
|
210
|
+
*/
|
|
211
211
|
const skillsControllerSearch = async (searchSkillsQueryDto, options) => {
|
|
212
212
|
return (0, custom_fetch_1.customFetch)((0, exports.getSkillsControllerSearchUrl)(), {
|
|
213
213
|
...options,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Skill Registry API
|
|
5
5
|
* Skill-registry extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateSkillBundleResourceDto } from './createSkillBundleResourceDto';
|
|
9
|
-
import type { SkillSpace } from './skillSpace';
|
|
8
|
+
import type { CreateSkillBundleResourceDto } from './createSkillBundleResourceDto.js';
|
|
9
|
+
import type { SkillSpace } from './skillSpace.js';
|
|
10
10
|
export interface CreateSkillBundleDto {
|
|
11
11
|
/** Hierarchical slug, e.g. `software-engineering/requirements`. */
|
|
12
12
|
slug: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Skill Registry API
|
|
5
5
|
* Skill-registry extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { SkillResourceType } from './skillResourceType';
|
|
8
|
+
import type { SkillResourceType } from './skillResourceType.js';
|
|
9
9
|
export interface CreateSkillBundleResourceDto {
|
|
10
10
|
/** Forward-slash path relative to the skill directory, e.g. `reference/api.md` or `scripts/lint.sh`. No leading slash, no `..` segments. */
|
|
11
11
|
relPath: string;
|