@knowledge-stack/ksapi 1.135.0 → 1.136.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/.openapi-generator/FILES +28 -4
- package/README.md +29 -4
- package/dist/apis/FoldersApi.d.ts +9 -9
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/SkillsApi.d.ts +579 -0
- package/dist/apis/SkillsApi.js +786 -0
- package/dist/apis/WorkflowDefinitionsApi.d.ts +3 -0
- package/dist/apis/WorkflowDefinitionsApi.js +3 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/FoldersApi.d.ts +9 -9
- package/dist/esm/apis/FoldersApi.js +3 -3
- package/dist/esm/apis/SkillsApi.d.ts +579 -0
- package/dist/esm/apis/SkillsApi.js +749 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +3 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +3 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ActivateSkillVersionRequest.d.ts +47 -0
- package/dist/esm/models/ActivateSkillVersionRequest.js +42 -0
- package/dist/esm/models/CreateSkillRequest.d.ts +60 -0
- package/dist/esm/models/CreateSkillRequest.js +59 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +6 -0
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.d.ts} +9 -6
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.js} +11 -6
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.d.ts} +16 -16
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.js} +12 -12
- package/dist/esm/models/PaginatedResponseSkillResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseSkillResponse.js +70 -0
- package/dist/esm/models/PartType.d.ts +1 -0
- package/dist/esm/models/PartType.js +2 -1
- package/dist/esm/models/ReferenceType.d.ts +1 -0
- package/dist/esm/models/ReferenceType.js +1 -0
- package/dist/esm/models/SearchSkillsRequest.d.ts +59 -0
- package/dist/esm/models/SearchSkillsRequest.js +64 -0
- package/dist/esm/models/SearchSkillsResponse.d.ts +48 -0
- package/dist/esm/models/SearchSkillsResponse.js +43 -0
- package/dist/esm/models/SkillOrder.d.ts +26 -0
- package/dist/esm/models/SkillOrder.js +44 -0
- package/dist/esm/models/SkillResponse.d.ts +147 -0
- package/dist/esm/models/SkillResponse.js +101 -0
- package/dist/esm/models/SkillScriptFile.d.ts +53 -0
- package/dist/esm/models/SkillScriptFile.js +52 -0
- package/dist/esm/models/SkillSearchResult.d.ts +71 -0
- package/dist/esm/models/SkillSearchResult.js +60 -0
- package/dist/esm/models/SkillVersionResponse.d.ts +71 -0
- package/dist/esm/models/SkillVersionResponse.js +58 -0
- package/dist/esm/models/UpdateSkillRequest.d.ts +54 -0
- package/dist/esm/models/UpdateSkillRequest.js +50 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +6 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +2 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +2 -0
- package/dist/esm/models/index.d.ts +13 -2
- package/dist/esm/models/index.js +13 -2
- package/dist/models/ActivateSkillVersionRequest.d.ts +47 -0
- package/dist/models/ActivateSkillVersionRequest.js +50 -0
- package/dist/models/CreateSkillRequest.d.ts +60 -0
- package/dist/models/CreateSkillRequest.js +67 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +6 -0
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.d.ts} +9 -6
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.js} +15 -10
- package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.d.ts} +16 -16
- package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.js} +18 -18
- package/dist/models/PaginatedResponseSkillResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseSkillResponse.js +78 -0
- package/dist/models/PartType.d.ts +1 -0
- package/dist/models/PartType.js +2 -1
- package/dist/models/ReferenceType.d.ts +1 -0
- package/dist/models/ReferenceType.js +1 -0
- package/dist/models/SearchSkillsRequest.d.ts +59 -0
- package/dist/models/SearchSkillsRequest.js +72 -0
- package/dist/models/SearchSkillsResponse.d.ts +48 -0
- package/dist/models/SearchSkillsResponse.js +51 -0
- package/dist/models/SkillOrder.d.ts +26 -0
- package/dist/models/SkillOrder.js +52 -0
- package/dist/models/SkillResponse.d.ts +147 -0
- package/dist/models/SkillResponse.js +109 -0
- package/dist/models/SkillScriptFile.d.ts +53 -0
- package/dist/models/SkillScriptFile.js +60 -0
- package/dist/models/SkillSearchResult.d.ts +71 -0
- package/dist/models/SkillSearchResult.js +68 -0
- package/dist/models/SkillVersionResponse.d.ts +71 -0
- package/dist/models/SkillVersionResponse.js +66 -0
- package/dist/models/UpdateSkillRequest.d.ts +54 -0
- package/dist/models/UpdateSkillRequest.js +58 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.js +6 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +6 -0
- package/dist/models/WorkflowDefinitionResponse.js +2 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/models/WorkflowRunSnapshot.js +2 -0
- package/dist/models/index.d.ts +13 -2
- package/dist/models/index.js +13 -2
- package/docs/ActivateSkillVersionRequest.md +35 -0
- package/docs/ChunksApi.md +1 -1
- package/docs/CreateSkillRequest.md +39 -0
- package/docs/CreateWorkflowDefinitionRequest.md +2 -0
- package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md} +12 -4
- package/docs/FoldersApi.md +4 -4
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.md} +5 -5
- package/docs/PaginatedResponseSkillResponse.md +40 -0
- package/docs/SearchSkillsRequest.md +39 -0
- package/docs/SearchSkillsResponse.md +34 -0
- package/docs/SkillOrder.md +33 -0
- package/docs/SkillResponse.md +65 -0
- package/docs/SkillScriptFile.md +37 -0
- package/docs/SkillSearchResult.md +43 -0
- package/docs/SkillVersionResponse.md +43 -0
- package/docs/SkillsApi.md +1093 -0
- package/docs/UpdateSkillRequest.md +37 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
- package/docs/WorkflowDefinitionResponse.md +2 -0
- package/docs/WorkflowDefinitionsApi.md +4 -1
- package/docs/WorkflowRunSnapshot.md +2 -0
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +13 -13
- package/src/apis/SkillsApi.ts +1321 -0
- package/src/apis/WorkflowDefinitionsApi.ts +7 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ActivateSkillVersionRequest.ts +82 -0
- package/src/models/CreateSkillRequest.ts +115 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +12 -0
- package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.ts} +19 -8
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat.ts} +25 -25
- package/src/models/PaginatedResponseSkillResponse.ts +130 -0
- package/src/models/PartType.ts +2 -1
- package/src/models/ReferenceType.ts +1 -0
- package/src/models/SearchSkillsRequest.ts +114 -0
- package/src/models/SearchSkillsResponse.ts +90 -0
- package/src/models/SkillOrder.ts +54 -0
- package/src/models/SkillResponse.ts +244 -0
- package/src/models/SkillScriptFile.ts +95 -0
- package/src/models/SkillSearchResult.ts +119 -0
- package/src/models/SkillVersionResponse.ts +118 -0
- package/src/models/UpdateSkillRequest.ts +102 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +12 -0
- package/src/models/WorkflowDefinitionResponse.ts +8 -0
- package/src/models/WorkflowRunSnapshot.ts +8 -0
- package/src/models/index.ts +13 -2
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ActivateSkillVersionRequest, CreateSkillRequest, PaginatedResponseSkillResponse, SearchSkillsRequest, SearchSkillsResponse, SkillOrder, SkillResponse, SkillVersionResponse, SortDirection, UpdateSkillRequest } from '../models/index';
|
|
14
|
+
export interface ActivateSkillVersionOperationRequest {
|
|
15
|
+
skillId: string;
|
|
16
|
+
versionId: string;
|
|
17
|
+
activateSkillVersionRequest: ActivateSkillVersionRequest;
|
|
18
|
+
}
|
|
19
|
+
export interface CheckinSkillRequest {
|
|
20
|
+
skillId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CheckoutSkillRequest {
|
|
23
|
+
skillId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateSkillOperationRequest {
|
|
26
|
+
createSkillRequest: CreateSkillRequest;
|
|
27
|
+
}
|
|
28
|
+
export interface DeleteSkillRequest {
|
|
29
|
+
skillId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DiscardSkillDraftRequest {
|
|
32
|
+
skillId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ExportSkillRequest {
|
|
35
|
+
skillId: string;
|
|
36
|
+
}
|
|
37
|
+
export interface GetSkillRequest {
|
|
38
|
+
skillId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ImportSkillRequest {
|
|
41
|
+
file: Blob;
|
|
42
|
+
}
|
|
43
|
+
export interface ListSkillVersionsRequest {
|
|
44
|
+
skillId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ListSkillsRequest {
|
|
47
|
+
sortBy?: SkillOrder;
|
|
48
|
+
search?: string | null;
|
|
49
|
+
limit?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
sortDir?: SortDirection;
|
|
52
|
+
}
|
|
53
|
+
export interface PublishSkillVersionRequest {
|
|
54
|
+
skillId: string;
|
|
55
|
+
}
|
|
56
|
+
export interface SearchSkillsOperationRequest {
|
|
57
|
+
searchSkillsRequest: SearchSkillsRequest;
|
|
58
|
+
}
|
|
59
|
+
export interface UpdateSkillOperationRequest {
|
|
60
|
+
skillId: string;
|
|
61
|
+
updateSkillRequest: UpdateSkillRequest;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* SkillsApi - interface
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @interface SkillsApiInterface
|
|
68
|
+
*/
|
|
69
|
+
export interface SkillsApiInterface {
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for activateSkillVersion without sending the request
|
|
72
|
+
* @param {string} skillId
|
|
73
|
+
* @param {string} versionId
|
|
74
|
+
* @param {ActivateSkillVersionRequest} activateSkillVersionRequest
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof SkillsApiInterface
|
|
77
|
+
*/
|
|
78
|
+
activateSkillVersionRequestOpts(requestParameters: ActivateSkillVersionOperationRequest): Promise<runtime.RequestOpts>;
|
|
79
|
+
/**
|
|
80
|
+
* Activate a published version, restoring the working copy to it. Requires a held checkout (it overwrites the working copy).
|
|
81
|
+
* @summary Activate Skill Version Handler
|
|
82
|
+
* @param {string} skillId
|
|
83
|
+
* @param {string} versionId
|
|
84
|
+
* @param {ActivateSkillVersionRequest} activateSkillVersionRequest
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof SkillsApiInterface
|
|
88
|
+
*/
|
|
89
|
+
activateSkillVersionRaw(requestParameters: ActivateSkillVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* Activate a published version, restoring the working copy to it. Requires a held checkout (it overwrites the working copy).
|
|
92
|
+
* Activate Skill Version Handler
|
|
93
|
+
*/
|
|
94
|
+
activateSkillVersion(requestParameters: ActivateSkillVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Creates request options for checkinSkill without sending the request
|
|
97
|
+
* @param {string} skillId
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
* @memberof SkillsApiInterface
|
|
100
|
+
*/
|
|
101
|
+
checkinSkillRequestOpts(requestParameters: CheckinSkillRequest): Promise<runtime.RequestOpts>;
|
|
102
|
+
/**
|
|
103
|
+
* Release the skill\'s checkout so another author can edit it.
|
|
104
|
+
* @summary Checkin Skill Handler
|
|
105
|
+
* @param {string} skillId
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof SkillsApiInterface
|
|
109
|
+
*/
|
|
110
|
+
checkinSkillRaw(requestParameters: CheckinSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
111
|
+
/**
|
|
112
|
+
* Release the skill\'s checkout so another author can edit it.
|
|
113
|
+
* Checkin Skill Handler
|
|
114
|
+
*/
|
|
115
|
+
checkinSkill(requestParameters: CheckinSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Creates request options for checkoutSkill without sending the request
|
|
118
|
+
* @param {string} skillId
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
* @memberof SkillsApiInterface
|
|
121
|
+
*/
|
|
122
|
+
checkoutSkillRequestOpts(requestParameters: CheckoutSkillRequest): Promise<runtime.RequestOpts>;
|
|
123
|
+
/**
|
|
124
|
+
* Check out the whole skill for editing (409 if another user holds it). Locks the skill via its ``SKILL.md`` document; hold it to edit any file (``SKILL.md`` or scripts) and release it with ``checkin``.
|
|
125
|
+
* @summary Checkout Skill Handler
|
|
126
|
+
* @param {string} skillId
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof SkillsApiInterface
|
|
130
|
+
*/
|
|
131
|
+
checkoutSkillRaw(requestParameters: CheckoutSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
132
|
+
/**
|
|
133
|
+
* Check out the whole skill for editing (409 if another user holds it). Locks the skill via its ``SKILL.md`` document; hold it to edit any file (``SKILL.md`` or scripts) and release it with ``checkin``.
|
|
134
|
+
* Checkout Skill Handler
|
|
135
|
+
*/
|
|
136
|
+
checkoutSkill(requestParameters: CheckoutSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for createSkill without sending the request
|
|
139
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
* @memberof SkillsApiInterface
|
|
142
|
+
*/
|
|
143
|
+
createSkillRequestOpts(requestParameters: CreateSkillOperationRequest): Promise<runtime.RequestOpts>;
|
|
144
|
+
/**
|
|
145
|
+
* Author a skill (JSON) under /agents/skills; requires can_write there.
|
|
146
|
+
* @summary Create Skill Handler
|
|
147
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
* @memberof SkillsApiInterface
|
|
151
|
+
*/
|
|
152
|
+
createSkillRaw(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
153
|
+
/**
|
|
154
|
+
* Author a skill (JSON) under /agents/skills; requires can_write there.
|
|
155
|
+
* Create Skill Handler
|
|
156
|
+
*/
|
|
157
|
+
createSkill(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* Creates request options for deleteSkill without sending the request
|
|
160
|
+
* @param {string} skillId
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
* @memberof SkillsApiInterface
|
|
163
|
+
*/
|
|
164
|
+
deleteSkillRequestOpts(requestParameters: DeleteSkillRequest): Promise<runtime.RequestOpts>;
|
|
165
|
+
/**
|
|
166
|
+
* Soft-delete a skill; requires can_delete; 409 if another holds checkout.
|
|
167
|
+
* @summary Delete Skill Handler
|
|
168
|
+
* @param {string} skillId
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof SkillsApiInterface
|
|
172
|
+
*/
|
|
173
|
+
deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
174
|
+
/**
|
|
175
|
+
* Soft-delete a skill; requires can_delete; 409 if another holds checkout.
|
|
176
|
+
* Delete Skill Handler
|
|
177
|
+
*/
|
|
178
|
+
deleteSkill(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
179
|
+
/**
|
|
180
|
+
* Creates request options for discardSkillDraft without sending the request
|
|
181
|
+
* @param {string} skillId
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
* @memberof SkillsApiInterface
|
|
184
|
+
*/
|
|
185
|
+
discardSkillDraftRequestOpts(requestParameters: DiscardSkillDraftRequest): Promise<runtime.RequestOpts>;
|
|
186
|
+
/**
|
|
187
|
+
* Discard unpublished edits: restore the working copy to the active version. Requires a held checkout (it overwrites the working copy).
|
|
188
|
+
* @summary Discard Skill Draft Handler
|
|
189
|
+
* @param {string} skillId
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
* @memberof SkillsApiInterface
|
|
193
|
+
*/
|
|
194
|
+
discardSkillDraftRaw(requestParameters: DiscardSkillDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
195
|
+
/**
|
|
196
|
+
* Discard unpublished edits: restore the working copy to the active version. Requires a held checkout (it overwrites the working copy).
|
|
197
|
+
* Discard Skill Draft Handler
|
|
198
|
+
*/
|
|
199
|
+
discardSkillDraft(requestParameters: DiscardSkillDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* Creates request options for exportSkill without sending the request
|
|
202
|
+
* @param {string} skillId
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof SkillsApiInterface
|
|
205
|
+
*/
|
|
206
|
+
exportSkillRequestOpts(requestParameters: ExportSkillRequest): Promise<runtime.RequestOpts>;
|
|
207
|
+
/**
|
|
208
|
+
* Download the active published version as a self-contained ZIP for sharing.
|
|
209
|
+
* @summary Export Skill Handler
|
|
210
|
+
* @param {string} skillId
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
* @memberof SkillsApiInterface
|
|
214
|
+
*/
|
|
215
|
+
exportSkillRaw(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
216
|
+
/**
|
|
217
|
+
* Download the active published version as a self-contained ZIP for sharing.
|
|
218
|
+
* Export Skill Handler
|
|
219
|
+
*/
|
|
220
|
+
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
221
|
+
/**
|
|
222
|
+
* Creates request options for getSkill without sending the request
|
|
223
|
+
* @param {string} skillId
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
* @memberof SkillsApiInterface
|
|
226
|
+
*/
|
|
227
|
+
getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
|
|
228
|
+
/**
|
|
229
|
+
* Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
|
|
230
|
+
* @summary Get Skill Handler
|
|
231
|
+
* @param {string} skillId
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
* @memberof SkillsApiInterface
|
|
235
|
+
*/
|
|
236
|
+
getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
237
|
+
/**
|
|
238
|
+
* Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
|
|
239
|
+
* Get Skill Handler
|
|
240
|
+
*/
|
|
241
|
+
getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
242
|
+
/**
|
|
243
|
+
* Creates request options for importSkill without sending the request
|
|
244
|
+
* @param {Blob} file
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
* @memberof SkillsApiInterface
|
|
247
|
+
*/
|
|
248
|
+
importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
|
|
249
|
+
/**
|
|
250
|
+
* Create a skill by importing a redistributable ZIP (works across tenants).
|
|
251
|
+
* @summary Import Skill Handler
|
|
252
|
+
* @param {Blob} file
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
* @memberof SkillsApiInterface
|
|
256
|
+
*/
|
|
257
|
+
importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
258
|
+
/**
|
|
259
|
+
* Create a skill by importing a redistributable ZIP (works across tenants).
|
|
260
|
+
* Import Skill Handler
|
|
261
|
+
*/
|
|
262
|
+
importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates request options for listSkillVersions without sending the request
|
|
265
|
+
* @param {string} skillId
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof SkillsApiInterface
|
|
268
|
+
*/
|
|
269
|
+
listSkillVersionsRequestOpts(requestParameters: ListSkillVersionsRequest): Promise<runtime.RequestOpts>;
|
|
270
|
+
/**
|
|
271
|
+
* List a skill\'s published versions, newest first.
|
|
272
|
+
* @summary List Skill Versions Handler
|
|
273
|
+
* @param {string} skillId
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
* @memberof SkillsApiInterface
|
|
277
|
+
*/
|
|
278
|
+
listSkillVersionsRaw(requestParameters: ListSkillVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillVersionResponse>>>;
|
|
279
|
+
/**
|
|
280
|
+
* List a skill\'s published versions, newest first.
|
|
281
|
+
* List Skill Versions Handler
|
|
282
|
+
*/
|
|
283
|
+
listSkillVersions(requestParameters: ListSkillVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillVersionResponse>>;
|
|
284
|
+
/**
|
|
285
|
+
* Creates request options for listSkills without sending the request
|
|
286
|
+
* @param {SkillOrder} [sortBy] Field to sort skills by (default: CREATED_AT)
|
|
287
|
+
* @param {string} [search] Case-insensitive skill-name substring filter (search bar)
|
|
288
|
+
* @param {number} [limit] Number of items per page
|
|
289
|
+
* @param {number} [offset] Number of items to skip
|
|
290
|
+
* @param {SortDirection} [sortDir] Sort direction (ASC or DESC); overrides the field\'s natural default. Every sort field supports both directions.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @memberof SkillsApiInterface
|
|
293
|
+
*/
|
|
294
|
+
listSkillsRequestOpts(requestParameters: ListSkillsRequest): Promise<runtime.RequestOpts>;
|
|
295
|
+
/**
|
|
296
|
+
* List readable skills: paginated, sortable both ways, name-searchable.
|
|
297
|
+
* @summary List Skills Handler
|
|
298
|
+
* @param {SkillOrder} [sortBy] Field to sort skills by (default: CREATED_AT)
|
|
299
|
+
* @param {string} [search] Case-insensitive skill-name substring filter (search bar)
|
|
300
|
+
* @param {number} [limit] Number of items per page
|
|
301
|
+
* @param {number} [offset] Number of items to skip
|
|
302
|
+
* @param {SortDirection} [sortDir] Sort direction (ASC or DESC); overrides the field\'s natural default. Every sort field supports both directions.
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof SkillsApiInterface
|
|
306
|
+
*/
|
|
307
|
+
listSkillsRaw(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseSkillResponse>>;
|
|
308
|
+
/**
|
|
309
|
+
* List readable skills: paginated, sortable both ways, name-searchable.
|
|
310
|
+
* List Skills Handler
|
|
311
|
+
*/
|
|
312
|
+
listSkills(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseSkillResponse>;
|
|
313
|
+
/**
|
|
314
|
+
* Creates request options for publishSkillVersion without sending the request
|
|
315
|
+
* @param {string} skillId
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
* @memberof SkillsApiInterface
|
|
318
|
+
*/
|
|
319
|
+
publishSkillVersionRequestOpts(requestParameters: PublishSkillVersionRequest): Promise<runtime.RequestOpts>;
|
|
320
|
+
/**
|
|
321
|
+
* Snapshot the working copy into a new immutable version and activate it. Requires a held checkout on the skill (publishing mutates it), so a second author cannot push a version over the checkout holder\'s in-progress draft.
|
|
322
|
+
* @summary Publish Skill Version Handler
|
|
323
|
+
* @param {string} skillId
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof SkillsApiInterface
|
|
327
|
+
*/
|
|
328
|
+
publishSkillVersionRaw(requestParameters: PublishSkillVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
329
|
+
/**
|
|
330
|
+
* Snapshot the working copy into a new immutable version and activate it. Requires a held checkout on the skill (publishing mutates it), so a second author cannot push a version over the checkout holder\'s in-progress draft.
|
|
331
|
+
* Publish Skill Version Handler
|
|
332
|
+
*/
|
|
333
|
+
publishSkillVersion(requestParameters: PublishSkillVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
334
|
+
/**
|
|
335
|
+
* Creates request options for searchSkills without sending the request
|
|
336
|
+
* @param {SearchSkillsRequest} searchSkillsRequest
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof SkillsApiInterface
|
|
339
|
+
*/
|
|
340
|
+
searchSkillsRequestOpts(requestParameters: SearchSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
341
|
+
/**
|
|
342
|
+
* Find skills by the meaning of their routing card (agent discovery). Dense semantic search over each skill\'s ``name + description`` card, scoped to the tenant. Fail-closed: hits are re-loaded tenant-scoped from Postgres (the authority — a mis-scoped Qdrant hit can\'t leak another tenant\'s skill) and any the caller cannot read are dropped.
|
|
343
|
+
* @summary Search Skills Handler
|
|
344
|
+
* @param {SearchSkillsRequest} searchSkillsRequest
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
* @memberof SkillsApiInterface
|
|
348
|
+
*/
|
|
349
|
+
searchSkillsRaw(requestParameters: SearchSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchSkillsResponse>>;
|
|
350
|
+
/**
|
|
351
|
+
* Find skills by the meaning of their routing card (agent discovery). Dense semantic search over each skill\'s ``name + description`` card, scoped to the tenant. Fail-closed: hits are re-loaded tenant-scoped from Postgres (the authority — a mis-scoped Qdrant hit can\'t leak another tenant\'s skill) and any the caller cannot read are dropped.
|
|
352
|
+
* Search Skills Handler
|
|
353
|
+
*/
|
|
354
|
+
searchSkills(requestParameters: SearchSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchSkillsResponse>;
|
|
355
|
+
/**
|
|
356
|
+
* Creates request options for updateSkill without sending the request
|
|
357
|
+
* @param {string} skillId
|
|
358
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
* @memberof SkillsApiInterface
|
|
361
|
+
*/
|
|
362
|
+
updateSkillRequestOpts(requestParameters: UpdateSkillOperationRequest): Promise<runtime.RequestOpts>;
|
|
363
|
+
/**
|
|
364
|
+
* Edit the working copy in place; requires can_write + a held checkout.
|
|
365
|
+
* @summary Update Skill Handler
|
|
366
|
+
* @param {string} skillId
|
|
367
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
* @memberof SkillsApiInterface
|
|
371
|
+
*/
|
|
372
|
+
updateSkillRaw(requestParameters: UpdateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
373
|
+
/**
|
|
374
|
+
* Edit the working copy in place; requires can_write + a held checkout.
|
|
375
|
+
* Update Skill Handler
|
|
376
|
+
*/
|
|
377
|
+
updateSkill(requestParameters: UpdateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
*/
|
|
382
|
+
export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInterface {
|
|
383
|
+
/**
|
|
384
|
+
* Creates request options for activateSkillVersion without sending the request
|
|
385
|
+
*/
|
|
386
|
+
activateSkillVersionRequestOpts(requestParameters: ActivateSkillVersionOperationRequest): Promise<runtime.RequestOpts>;
|
|
387
|
+
/**
|
|
388
|
+
* Activate a published version, restoring the working copy to it. Requires a held checkout (it overwrites the working copy).
|
|
389
|
+
* Activate Skill Version Handler
|
|
390
|
+
*/
|
|
391
|
+
activateSkillVersionRaw(requestParameters: ActivateSkillVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
392
|
+
/**
|
|
393
|
+
* Activate a published version, restoring the working copy to it. Requires a held checkout (it overwrites the working copy).
|
|
394
|
+
* Activate Skill Version Handler
|
|
395
|
+
*/
|
|
396
|
+
activateSkillVersion(requestParameters: ActivateSkillVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Creates request options for checkinSkill without sending the request
|
|
399
|
+
*/
|
|
400
|
+
checkinSkillRequestOpts(requestParameters: CheckinSkillRequest): Promise<runtime.RequestOpts>;
|
|
401
|
+
/**
|
|
402
|
+
* Release the skill\'s checkout so another author can edit it.
|
|
403
|
+
* Checkin Skill Handler
|
|
404
|
+
*/
|
|
405
|
+
checkinSkillRaw(requestParameters: CheckinSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
406
|
+
/**
|
|
407
|
+
* Release the skill\'s checkout so another author can edit it.
|
|
408
|
+
* Checkin Skill Handler
|
|
409
|
+
*/
|
|
410
|
+
checkinSkill(requestParameters: CheckinSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
411
|
+
/**
|
|
412
|
+
* Creates request options for checkoutSkill without sending the request
|
|
413
|
+
*/
|
|
414
|
+
checkoutSkillRequestOpts(requestParameters: CheckoutSkillRequest): Promise<runtime.RequestOpts>;
|
|
415
|
+
/**
|
|
416
|
+
* Check out the whole skill for editing (409 if another user holds it). Locks the skill via its ``SKILL.md`` document; hold it to edit any file (``SKILL.md`` or scripts) and release it with ``checkin``.
|
|
417
|
+
* Checkout Skill Handler
|
|
418
|
+
*/
|
|
419
|
+
checkoutSkillRaw(requestParameters: CheckoutSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
420
|
+
/**
|
|
421
|
+
* Check out the whole skill for editing (409 if another user holds it). Locks the skill via its ``SKILL.md`` document; hold it to edit any file (``SKILL.md`` or scripts) and release it with ``checkin``.
|
|
422
|
+
* Checkout Skill Handler
|
|
423
|
+
*/
|
|
424
|
+
checkoutSkill(requestParameters: CheckoutSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
425
|
+
/**
|
|
426
|
+
* Creates request options for createSkill without sending the request
|
|
427
|
+
*/
|
|
428
|
+
createSkillRequestOpts(requestParameters: CreateSkillOperationRequest): Promise<runtime.RequestOpts>;
|
|
429
|
+
/**
|
|
430
|
+
* Author a skill (JSON) under /agents/skills; requires can_write there.
|
|
431
|
+
* Create Skill Handler
|
|
432
|
+
*/
|
|
433
|
+
createSkillRaw(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
434
|
+
/**
|
|
435
|
+
* Author a skill (JSON) under /agents/skills; requires can_write there.
|
|
436
|
+
* Create Skill Handler
|
|
437
|
+
*/
|
|
438
|
+
createSkill(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
439
|
+
/**
|
|
440
|
+
* Creates request options for deleteSkill without sending the request
|
|
441
|
+
*/
|
|
442
|
+
deleteSkillRequestOpts(requestParameters: DeleteSkillRequest): Promise<runtime.RequestOpts>;
|
|
443
|
+
/**
|
|
444
|
+
* Soft-delete a skill; requires can_delete; 409 if another holds checkout.
|
|
445
|
+
* Delete Skill Handler
|
|
446
|
+
*/
|
|
447
|
+
deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
448
|
+
/**
|
|
449
|
+
* Soft-delete a skill; requires can_delete; 409 if another holds checkout.
|
|
450
|
+
* Delete Skill Handler
|
|
451
|
+
*/
|
|
452
|
+
deleteSkill(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
453
|
+
/**
|
|
454
|
+
* Creates request options for discardSkillDraft without sending the request
|
|
455
|
+
*/
|
|
456
|
+
discardSkillDraftRequestOpts(requestParameters: DiscardSkillDraftRequest): Promise<runtime.RequestOpts>;
|
|
457
|
+
/**
|
|
458
|
+
* Discard unpublished edits: restore the working copy to the active version. Requires a held checkout (it overwrites the working copy).
|
|
459
|
+
* Discard Skill Draft Handler
|
|
460
|
+
*/
|
|
461
|
+
discardSkillDraftRaw(requestParameters: DiscardSkillDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
462
|
+
/**
|
|
463
|
+
* Discard unpublished edits: restore the working copy to the active version. Requires a held checkout (it overwrites the working copy).
|
|
464
|
+
* Discard Skill Draft Handler
|
|
465
|
+
*/
|
|
466
|
+
discardSkillDraft(requestParameters: DiscardSkillDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
467
|
+
/**
|
|
468
|
+
* Creates request options for exportSkill without sending the request
|
|
469
|
+
*/
|
|
470
|
+
exportSkillRequestOpts(requestParameters: ExportSkillRequest): Promise<runtime.RequestOpts>;
|
|
471
|
+
/**
|
|
472
|
+
* Download the active published version as a self-contained ZIP for sharing.
|
|
473
|
+
* Export Skill Handler
|
|
474
|
+
*/
|
|
475
|
+
exportSkillRaw(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
476
|
+
/**
|
|
477
|
+
* Download the active published version as a self-contained ZIP for sharing.
|
|
478
|
+
* Export Skill Handler
|
|
479
|
+
*/
|
|
480
|
+
exportSkill(requestParameters: ExportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
481
|
+
/**
|
|
482
|
+
* Creates request options for getSkill without sending the request
|
|
483
|
+
*/
|
|
484
|
+
getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
|
|
485
|
+
/**
|
|
486
|
+
* Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
|
|
487
|
+
* Get Skill Handler
|
|
488
|
+
*/
|
|
489
|
+
getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
490
|
+
/**
|
|
491
|
+
* Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
|
|
492
|
+
* Get Skill Handler
|
|
493
|
+
*/
|
|
494
|
+
getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
495
|
+
/**
|
|
496
|
+
* Creates request options for importSkill without sending the request
|
|
497
|
+
*/
|
|
498
|
+
importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
|
|
499
|
+
/**
|
|
500
|
+
* Create a skill by importing a redistributable ZIP (works across tenants).
|
|
501
|
+
* Import Skill Handler
|
|
502
|
+
*/
|
|
503
|
+
importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
504
|
+
/**
|
|
505
|
+
* Create a skill by importing a redistributable ZIP (works across tenants).
|
|
506
|
+
* Import Skill Handler
|
|
507
|
+
*/
|
|
508
|
+
importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
509
|
+
/**
|
|
510
|
+
* Creates request options for listSkillVersions without sending the request
|
|
511
|
+
*/
|
|
512
|
+
listSkillVersionsRequestOpts(requestParameters: ListSkillVersionsRequest): Promise<runtime.RequestOpts>;
|
|
513
|
+
/**
|
|
514
|
+
* List a skill\'s published versions, newest first.
|
|
515
|
+
* List Skill Versions Handler
|
|
516
|
+
*/
|
|
517
|
+
listSkillVersionsRaw(requestParameters: ListSkillVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillVersionResponse>>>;
|
|
518
|
+
/**
|
|
519
|
+
* List a skill\'s published versions, newest first.
|
|
520
|
+
* List Skill Versions Handler
|
|
521
|
+
*/
|
|
522
|
+
listSkillVersions(requestParameters: ListSkillVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillVersionResponse>>;
|
|
523
|
+
/**
|
|
524
|
+
* Creates request options for listSkills without sending the request
|
|
525
|
+
*/
|
|
526
|
+
listSkillsRequestOpts(requestParameters: ListSkillsRequest): Promise<runtime.RequestOpts>;
|
|
527
|
+
/**
|
|
528
|
+
* List readable skills: paginated, sortable both ways, name-searchable.
|
|
529
|
+
* List Skills Handler
|
|
530
|
+
*/
|
|
531
|
+
listSkillsRaw(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseSkillResponse>>;
|
|
532
|
+
/**
|
|
533
|
+
* List readable skills: paginated, sortable both ways, name-searchable.
|
|
534
|
+
* List Skills Handler
|
|
535
|
+
*/
|
|
536
|
+
listSkills(requestParameters?: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseSkillResponse>;
|
|
537
|
+
/**
|
|
538
|
+
* Creates request options for publishSkillVersion without sending the request
|
|
539
|
+
*/
|
|
540
|
+
publishSkillVersionRequestOpts(requestParameters: PublishSkillVersionRequest): Promise<runtime.RequestOpts>;
|
|
541
|
+
/**
|
|
542
|
+
* Snapshot the working copy into a new immutable version and activate it. Requires a held checkout on the skill (publishing mutates it), so a second author cannot push a version over the checkout holder\'s in-progress draft.
|
|
543
|
+
* Publish Skill Version Handler
|
|
544
|
+
*/
|
|
545
|
+
publishSkillVersionRaw(requestParameters: PublishSkillVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
546
|
+
/**
|
|
547
|
+
* Snapshot the working copy into a new immutable version and activate it. Requires a held checkout on the skill (publishing mutates it), so a second author cannot push a version over the checkout holder\'s in-progress draft.
|
|
548
|
+
* Publish Skill Version Handler
|
|
549
|
+
*/
|
|
550
|
+
publishSkillVersion(requestParameters: PublishSkillVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
551
|
+
/**
|
|
552
|
+
* Creates request options for searchSkills without sending the request
|
|
553
|
+
*/
|
|
554
|
+
searchSkillsRequestOpts(requestParameters: SearchSkillsOperationRequest): Promise<runtime.RequestOpts>;
|
|
555
|
+
/**
|
|
556
|
+
* Find skills by the meaning of their routing card (agent discovery). Dense semantic search over each skill\'s ``name + description`` card, scoped to the tenant. Fail-closed: hits are re-loaded tenant-scoped from Postgres (the authority — a mis-scoped Qdrant hit can\'t leak another tenant\'s skill) and any the caller cannot read are dropped.
|
|
557
|
+
* Search Skills Handler
|
|
558
|
+
*/
|
|
559
|
+
searchSkillsRaw(requestParameters: SearchSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchSkillsResponse>>;
|
|
560
|
+
/**
|
|
561
|
+
* Find skills by the meaning of their routing card (agent discovery). Dense semantic search over each skill\'s ``name + description`` card, scoped to the tenant. Fail-closed: hits are re-loaded tenant-scoped from Postgres (the authority — a mis-scoped Qdrant hit can\'t leak another tenant\'s skill) and any the caller cannot read are dropped.
|
|
562
|
+
* Search Skills Handler
|
|
563
|
+
*/
|
|
564
|
+
searchSkills(requestParameters: SearchSkillsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchSkillsResponse>;
|
|
565
|
+
/**
|
|
566
|
+
* Creates request options for updateSkill without sending the request
|
|
567
|
+
*/
|
|
568
|
+
updateSkillRequestOpts(requestParameters: UpdateSkillOperationRequest): Promise<runtime.RequestOpts>;
|
|
569
|
+
/**
|
|
570
|
+
* Edit the working copy in place; requires can_write + a held checkout.
|
|
571
|
+
* Update Skill Handler
|
|
572
|
+
*/
|
|
573
|
+
updateSkillRaw(requestParameters: UpdateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
|
|
574
|
+
/**
|
|
575
|
+
* Edit the working copy in place; requires can_write + a held checkout.
|
|
576
|
+
* Update Skill Handler
|
|
577
|
+
*/
|
|
578
|
+
updateSkill(requestParameters: UpdateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
|
|
579
|
+
}
|