@knowledge-stack/ksapi 1.23.5 → 1.24.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 +122 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +103 -0
- package/dist/apis/TenantsApi.js +112 -40
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +103 -0
- package/dist/esm/apis/TenantsApi.js +112 -40
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/index.d.ts +6 -4
- package/dist/esm/models/index.js +6 -4
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/index.d.ts +6 -4
- package/dist/models/index.js +6 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +183 -40
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/index.ts +6 -4
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
package/src/apis/TagsApi.ts
CHANGED
|
@@ -68,6 +68,15 @@ export interface UpdateTagOperationRequest {
|
|
|
68
68
|
* @interface TagsApiInterface
|
|
69
69
|
*/
|
|
70
70
|
export interface TagsApiInterface {
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for createTag without sending the request
|
|
73
|
+
* @param {CreateTagRequest} createTagRequest
|
|
74
|
+
* @param {string} [ksUat]
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof TagsApiInterface
|
|
77
|
+
*/
|
|
78
|
+
createTagRequestOpts(requestParameters: CreateTagOperationRequest): Promise<runtime.RequestOpts>;
|
|
79
|
+
|
|
71
80
|
/**
|
|
72
81
|
* Create a new tag for the current tenant. Requires ADMIN or OWNER role.
|
|
73
82
|
* @summary Create Tag Handler
|
|
@@ -85,6 +94,15 @@ export interface TagsApiInterface {
|
|
|
85
94
|
*/
|
|
86
95
|
createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
|
|
87
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for deleteTag without sending the request
|
|
99
|
+
* @param {string} tagId
|
|
100
|
+
* @param {string} [ksUat]
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof TagsApiInterface
|
|
103
|
+
*/
|
|
104
|
+
deleteTagRequestOpts(requestParameters: DeleteTagRequest): Promise<runtime.RequestOpts>;
|
|
105
|
+
|
|
88
106
|
/**
|
|
89
107
|
* Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
|
|
90
108
|
* @summary Delete Tag Handler
|
|
@@ -102,6 +120,15 @@ export interface TagsApiInterface {
|
|
|
102
120
|
*/
|
|
103
121
|
deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
104
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Creates request options for getTag without sending the request
|
|
125
|
+
* @param {string} tagId
|
|
126
|
+
* @param {string} [ksUat]
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof TagsApiInterface
|
|
129
|
+
*/
|
|
130
|
+
getTagRequestOpts(requestParameters: GetTagRequest): Promise<runtime.RequestOpts>;
|
|
131
|
+
|
|
105
132
|
/**
|
|
106
133
|
* Get a tag by its ID.
|
|
107
134
|
* @summary Get Tag Handler
|
|
@@ -119,6 +146,16 @@ export interface TagsApiInterface {
|
|
|
119
146
|
*/
|
|
120
147
|
getTag(requestParameters: GetTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
|
|
121
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Creates request options for listTags without sending the request
|
|
151
|
+
* @param {number} [limit] Number of items per page
|
|
152
|
+
* @param {number} [offset] Number of items to skip
|
|
153
|
+
* @param {string} [ksUat]
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof TagsApiInterface
|
|
156
|
+
*/
|
|
157
|
+
listTagsRequestOpts(requestParameters: ListTagsRequest): Promise<runtime.RequestOpts>;
|
|
158
|
+
|
|
122
159
|
/**
|
|
123
160
|
* List all tags for the current tenant.
|
|
124
161
|
* @summary List Tags Handler
|
|
@@ -137,6 +174,16 @@ export interface TagsApiInterface {
|
|
|
137
174
|
*/
|
|
138
175
|
listTags(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
|
|
139
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Creates request options for updateTag without sending the request
|
|
179
|
+
* @param {string} tagId
|
|
180
|
+
* @param {UpdateTagRequest} updateTagRequest
|
|
181
|
+
* @param {string} [ksUat]
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
* @memberof TagsApiInterface
|
|
184
|
+
*/
|
|
185
|
+
updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts>;
|
|
186
|
+
|
|
140
187
|
/**
|
|
141
188
|
* Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
|
|
142
189
|
* @summary Update Tag Handler
|
|
@@ -163,10 +210,9 @@ export interface TagsApiInterface {
|
|
|
163
210
|
export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
164
211
|
|
|
165
212
|
/**
|
|
166
|
-
*
|
|
167
|
-
* Create Tag Handler
|
|
213
|
+
* Creates request options for createTag without sending the request
|
|
168
214
|
*/
|
|
169
|
-
async
|
|
215
|
+
async createTagRequestOpts(requestParameters: CreateTagOperationRequest): Promise<runtime.RequestOpts> {
|
|
170
216
|
if (requestParameters['createTagRequest'] == null) {
|
|
171
217
|
throw new runtime.RequiredError(
|
|
172
218
|
'createTagRequest',
|
|
@@ -183,13 +229,22 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
183
229
|
|
|
184
230
|
let urlPath = `/v1/tags`;
|
|
185
231
|
|
|
186
|
-
|
|
232
|
+
return {
|
|
187
233
|
path: urlPath,
|
|
188
234
|
method: 'POST',
|
|
189
235
|
headers: headerParameters,
|
|
190
236
|
query: queryParameters,
|
|
191
237
|
body: CreateTagRequestToJSON(requestParameters['createTagRequest']),
|
|
192
|
-
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Create a new tag for the current tenant. Requires ADMIN or OWNER role.
|
|
243
|
+
* Create Tag Handler
|
|
244
|
+
*/
|
|
245
|
+
async createTagRaw(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
|
|
246
|
+
const requestOptions = await this.createTagRequestOpts(requestParameters);
|
|
247
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
193
248
|
|
|
194
249
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseFromJSON(jsonValue));
|
|
195
250
|
}
|
|
@@ -204,10 +259,9 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
204
259
|
}
|
|
205
260
|
|
|
206
261
|
/**
|
|
207
|
-
*
|
|
208
|
-
* Delete Tag Handler
|
|
262
|
+
* Creates request options for deleteTag without sending the request
|
|
209
263
|
*/
|
|
210
|
-
async
|
|
264
|
+
async deleteTagRequestOpts(requestParameters: DeleteTagRequest): Promise<runtime.RequestOpts> {
|
|
211
265
|
if (requestParameters['tagId'] == null) {
|
|
212
266
|
throw new runtime.RequiredError(
|
|
213
267
|
'tagId',
|
|
@@ -223,12 +277,21 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
223
277
|
let urlPath = `/v1/tags/{tag_id}`;
|
|
224
278
|
urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
|
|
225
279
|
|
|
226
|
-
|
|
280
|
+
return {
|
|
227
281
|
path: urlPath,
|
|
228
282
|
method: 'DELETE',
|
|
229
283
|
headers: headerParameters,
|
|
230
284
|
query: queryParameters,
|
|
231
|
-
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
|
|
290
|
+
* Delete Tag Handler
|
|
291
|
+
*/
|
|
292
|
+
async deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
293
|
+
const requestOptions = await this.deleteTagRequestOpts(requestParameters);
|
|
294
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
232
295
|
|
|
233
296
|
return new runtime.VoidApiResponse(response);
|
|
234
297
|
}
|
|
@@ -242,10 +305,9 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
242
305
|
}
|
|
243
306
|
|
|
244
307
|
/**
|
|
245
|
-
*
|
|
246
|
-
* Get Tag Handler
|
|
308
|
+
* Creates request options for getTag without sending the request
|
|
247
309
|
*/
|
|
248
|
-
async
|
|
310
|
+
async getTagRequestOpts(requestParameters: GetTagRequest): Promise<runtime.RequestOpts> {
|
|
249
311
|
if (requestParameters['tagId'] == null) {
|
|
250
312
|
throw new runtime.RequiredError(
|
|
251
313
|
'tagId',
|
|
@@ -261,12 +323,21 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
261
323
|
let urlPath = `/v1/tags/{tag_id}`;
|
|
262
324
|
urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
|
|
263
325
|
|
|
264
|
-
|
|
326
|
+
return {
|
|
265
327
|
path: urlPath,
|
|
266
328
|
method: 'GET',
|
|
267
329
|
headers: headerParameters,
|
|
268
330
|
query: queryParameters,
|
|
269
|
-
}
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Get a tag by its ID.
|
|
336
|
+
* Get Tag Handler
|
|
337
|
+
*/
|
|
338
|
+
async getTagRaw(requestParameters: GetTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
|
|
339
|
+
const requestOptions = await this.getTagRequestOpts(requestParameters);
|
|
340
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
270
341
|
|
|
271
342
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseFromJSON(jsonValue));
|
|
272
343
|
}
|
|
@@ -281,10 +352,9 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
281
352
|
}
|
|
282
353
|
|
|
283
354
|
/**
|
|
284
|
-
*
|
|
285
|
-
* List Tags Handler
|
|
355
|
+
* Creates request options for listTags without sending the request
|
|
286
356
|
*/
|
|
287
|
-
async
|
|
357
|
+
async listTagsRequestOpts(requestParameters: ListTagsRequest): Promise<runtime.RequestOpts> {
|
|
288
358
|
const queryParameters: any = {};
|
|
289
359
|
|
|
290
360
|
if (requestParameters['limit'] != null) {
|
|
@@ -300,12 +370,21 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
300
370
|
|
|
301
371
|
let urlPath = `/v1/tags`;
|
|
302
372
|
|
|
303
|
-
|
|
373
|
+
return {
|
|
304
374
|
path: urlPath,
|
|
305
375
|
method: 'GET',
|
|
306
376
|
headers: headerParameters,
|
|
307
377
|
query: queryParameters,
|
|
308
|
-
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* List all tags for the current tenant.
|
|
383
|
+
* List Tags Handler
|
|
384
|
+
*/
|
|
385
|
+
async listTagsRaw(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseTagResponse>> {
|
|
386
|
+
const requestOptions = await this.listTagsRequestOpts(requestParameters);
|
|
387
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
309
388
|
|
|
310
389
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseTagResponseFromJSON(jsonValue));
|
|
311
390
|
}
|
|
@@ -320,10 +399,9 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
320
399
|
}
|
|
321
400
|
|
|
322
401
|
/**
|
|
323
|
-
*
|
|
324
|
-
* Update Tag Handler
|
|
402
|
+
* Creates request options for updateTag without sending the request
|
|
325
403
|
*/
|
|
326
|
-
async
|
|
404
|
+
async updateTagRequestOpts(requestParameters: UpdateTagOperationRequest): Promise<runtime.RequestOpts> {
|
|
327
405
|
if (requestParameters['tagId'] == null) {
|
|
328
406
|
throw new runtime.RequiredError(
|
|
329
407
|
'tagId',
|
|
@@ -348,13 +426,22 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
|
|
|
348
426
|
let urlPath = `/v1/tags/{tag_id}`;
|
|
349
427
|
urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
|
|
350
428
|
|
|
351
|
-
|
|
429
|
+
return {
|
|
352
430
|
path: urlPath,
|
|
353
431
|
method: 'PATCH',
|
|
354
432
|
headers: headerParameters,
|
|
355
433
|
query: queryParameters,
|
|
356
434
|
body: UpdateTagRequestToJSON(requestParameters['updateTagRequest']),
|
|
357
|
-
}
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
|
|
440
|
+
* Update Tag Handler
|
|
441
|
+
*/
|
|
442
|
+
async updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
|
|
443
|
+
const requestOptions = await this.updateTagRequestOpts(requestParameters);
|
|
444
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
358
445
|
|
|
359
446
|
return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseFromJSON(jsonValue));
|
|
360
447
|
}
|