@knowledge-stack/ksapi 1.23.5 → 1.25.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 +130 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +282 -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 +161 -5
- package/dist/apis/ChunksApi.js +168 -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 +140 -1
- package/dist/apis/PathPartsApi.js +141 -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 +161 -5
- package/dist/esm/apis/ChunksApi.js +169 -32
- 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 +140 -1
- package/dist/esm/apis/PathPartsApi.js +142 -21
- 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/ChunkBulkResponse.d.ts +139 -0
- package/dist/esm/models/ChunkBulkResponse.js +100 -0
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
- package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/esm/models/ChunkSearchRequest.js +6 -2
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +10 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +10 -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 +88 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/esm/models/SubtreeChunkGroup.js +52 -0
- package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/esm/models/SubtreeChunksResponse.js +45 -0
- package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.js +10 -4
- package/dist/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/models/ChunkBulkResponse.js +108 -0
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
- package/dist/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/models/ChunkSearchRequest.js +6 -2
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +11 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +11 -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 +96 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/models/SubtreeChunkGroup.js +60 -0
- package/dist/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/models/SubtreeChunksResponse.js +53 -0
- package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/models/VersionChunkIdsResponse.js +52 -0
- package/dist/models/index.d.ts +10 -4
- package/dist/models/index.js +10 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkBulkResponse.md +65 -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 +51 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +590 -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 +461 -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/SubtreeChunkGroup.md +39 -0
- package/docs/SubtreeChunksResponse.md +35 -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/VersionChunkIdsResponse.md +35 -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 +298 -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 +260 -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/ChunkBulkResponse.ts +232 -0
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
- package/src/models/ChunkSearchRequest.ts +20 -4
- package/src/models/DocumentResponse.ts +17 -0
- package/src/models/FolderResponse.ts +19 -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 +182 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/SubtreeChunkGroup.ts +104 -0
- package/src/models/SubtreeChunksResponse.ts +91 -0
- package/src/models/VersionChunkIdsResponse.ts +83 -0
- package/src/models/index.ts +10 -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
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class UserPermissionsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Create User Permission Handler
|
|
33
|
+
* Creates request options for createUserPermission without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
createUserPermissionRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['createPermissionRequest'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('createPermissionRequest', 'Required parameter "createPermissionRequest" was null or undefined when calling createUserPermission().');
|
|
@@ -42,13 +41,23 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
43
|
let urlPath = `/v1/user-permissions`;
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
49
|
body: (0, index_1.CreatePermissionRequestToJSON)(requestParameters['createPermissionRequest']),
|
|
51
|
-
}
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create a path permission for a user in a tenant (admin/owner only).
|
|
55
|
+
* Create User Permission Handler
|
|
56
|
+
*/
|
|
57
|
+
createUserPermissionRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.createUserPermissionRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
|
|
53
62
|
});
|
|
54
63
|
}
|
|
@@ -63,10 +72,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
63
72
|
});
|
|
64
73
|
}
|
|
65
74
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Delete User Permission Handler
|
|
75
|
+
* Creates request options for deleteUserPermission without sending the request
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
deleteUserPermissionRequestOpts(requestParameters) {
|
|
70
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
79
|
if (requestParameters['permissionId'] == null) {
|
|
72
80
|
throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling deleteUserPermission().');
|
|
@@ -81,12 +89,22 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
81
89
|
const headerParameters = {};
|
|
82
90
|
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
83
91
|
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
84
|
-
|
|
92
|
+
return {
|
|
85
93
|
path: urlPath,
|
|
86
94
|
method: 'DELETE',
|
|
87
95
|
headers: headerParameters,
|
|
88
96
|
query: queryParameters,
|
|
89
|
-
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Delete a path permission (admin/owner only).
|
|
102
|
+
* Delete User Permission Handler
|
|
103
|
+
*/
|
|
104
|
+
deleteUserPermissionRaw(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const requestOptions = yield this.deleteUserPermissionRequestOpts(requestParameters);
|
|
107
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
90
108
|
return new runtime.VoidApiResponse(response);
|
|
91
109
|
});
|
|
92
110
|
}
|
|
@@ -100,10 +118,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
100
118
|
});
|
|
101
119
|
}
|
|
102
120
|
/**
|
|
103
|
-
*
|
|
104
|
-
* List User Permissions Handler
|
|
121
|
+
* Creates request options for listUserPermissions without sending the request
|
|
105
122
|
*/
|
|
106
|
-
|
|
123
|
+
listUserPermissionsRequestOpts(requestParameters) {
|
|
107
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
125
|
if (requestParameters['tenantId'] == null) {
|
|
109
126
|
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling listUserPermissions().');
|
|
@@ -126,12 +143,22 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
126
143
|
}
|
|
127
144
|
const headerParameters = {};
|
|
128
145
|
let urlPath = `/v1/user-permissions`;
|
|
129
|
-
|
|
146
|
+
return {
|
|
130
147
|
path: urlPath,
|
|
131
148
|
method: 'GET',
|
|
132
149
|
headers: headerParameters,
|
|
133
150
|
query: queryParameters,
|
|
134
|
-
}
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* List path permissions for a user in a tenant (admin/owner only).
|
|
156
|
+
* List User Permissions Handler
|
|
157
|
+
*/
|
|
158
|
+
listUserPermissionsRaw(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const requestOptions = yield this.listUserPermissionsRequestOpts(requestParameters);
|
|
161
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
135
162
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponsePermissionResponseFromJSON)(jsonValue));
|
|
136
163
|
});
|
|
137
164
|
}
|
|
@@ -146,10 +173,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
146
173
|
});
|
|
147
174
|
}
|
|
148
175
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Update User Permission Handler
|
|
176
|
+
* Creates request options for updateUserPermission without sending the request
|
|
151
177
|
*/
|
|
152
|
-
|
|
178
|
+
updateUserPermissionRequestOpts(requestParameters) {
|
|
153
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
180
|
if (requestParameters['permissionId'] == null) {
|
|
155
181
|
throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling updateUserPermission().');
|
|
@@ -168,13 +194,23 @@ class UserPermissionsApi extends runtime.BaseAPI {
|
|
|
168
194
|
headerParameters['Content-Type'] = 'application/json';
|
|
169
195
|
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
170
196
|
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
171
|
-
|
|
197
|
+
return {
|
|
172
198
|
path: urlPath,
|
|
173
199
|
method: 'PATCH',
|
|
174
200
|
headers: headerParameters,
|
|
175
201
|
query: queryParameters,
|
|
176
202
|
body: (0, index_1.UpdatePermissionRequestToJSON)(requestParameters['updatePermissionRequest']),
|
|
177
|
-
}
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Update a path permission (admin/owner only).
|
|
208
|
+
* Update User Permission Handler
|
|
209
|
+
*/
|
|
210
|
+
updateUserPermissionRaw(requestParameters, initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const requestOptions = yield this.updateUserPermissionRequestOpts(requestParameters);
|
|
213
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
178
214
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
|
|
179
215
|
});
|
|
180
216
|
}
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -25,6 +25,13 @@ export interface UpdateMeRequest {
|
|
|
25
25
|
* @interface UsersApiInterface
|
|
26
26
|
*/
|
|
27
27
|
export interface UsersApiInterface {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for getMe without sending the request
|
|
30
|
+
* @param {string} [ksUat]
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof UsersApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
|
|
28
35
|
/**
|
|
29
36
|
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
30
37
|
* @summary Get Me Handler
|
|
@@ -39,6 +46,14 @@ export interface UsersApiInterface {
|
|
|
39
46
|
* Get Me Handler
|
|
40
47
|
*/
|
|
41
48
|
getMe(requestParameters: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for updateMe without sending the request
|
|
51
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
52
|
+
* @param {string} [ksUat]
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
* @memberof UsersApiInterface
|
|
55
|
+
*/
|
|
56
|
+
updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
|
|
42
57
|
/**
|
|
43
58
|
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
44
59
|
* @summary Update Me Handler
|
|
@@ -59,6 +74,10 @@ export interface UsersApiInterface {
|
|
|
59
74
|
*
|
|
60
75
|
*/
|
|
61
76
|
export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterface {
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for getMe without sending the request
|
|
79
|
+
*/
|
|
80
|
+
getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
|
|
62
81
|
/**
|
|
63
82
|
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
64
83
|
* Get Me Handler
|
|
@@ -69,6 +88,10 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
|
|
|
69
88
|
* Get Me Handler
|
|
70
89
|
*/
|
|
71
90
|
getMe(requestParameters?: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Creates request options for updateMe without sending the request
|
|
93
|
+
*/
|
|
94
|
+
updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
|
|
72
95
|
/**
|
|
73
96
|
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
74
97
|
* Update Me Handler
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -30,20 +30,29 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class UsersApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Get Me Handler
|
|
33
|
+
* Creates request options for getMe without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
getMeRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
const queryParameters = {};
|
|
39
38
|
const headerParameters = {};
|
|
40
39
|
let urlPath = `/v1/users/me`;
|
|
41
|
-
|
|
40
|
+
return {
|
|
42
41
|
path: urlPath,
|
|
43
42
|
method: 'GET',
|
|
44
43
|
headers: headerParameters,
|
|
45
44
|
query: queryParameters,
|
|
46
|
-
}
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
|
|
50
|
+
* Get Me Handler
|
|
51
|
+
*/
|
|
52
|
+
getMeRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.getMeRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
47
56
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
|
|
48
57
|
});
|
|
49
58
|
}
|
|
@@ -58,10 +67,9 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
58
67
|
});
|
|
59
68
|
}
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
62
|
-
* Update Me Handler
|
|
70
|
+
* Creates request options for updateMe without sending the request
|
|
63
71
|
*/
|
|
64
|
-
|
|
72
|
+
updateMeRequestOpts(requestParameters) {
|
|
65
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
74
|
if (requestParameters['updateUserRequest'] == null) {
|
|
67
75
|
throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling updateMe().');
|
|
@@ -70,13 +78,23 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
70
78
|
const headerParameters = {};
|
|
71
79
|
headerParameters['Content-Type'] = 'application/json';
|
|
72
80
|
let urlPath = `/v1/users`;
|
|
73
|
-
|
|
81
|
+
return {
|
|
74
82
|
path: urlPath,
|
|
75
83
|
method: 'PATCH',
|
|
76
84
|
headers: headerParameters,
|
|
77
85
|
query: queryParameters,
|
|
78
86
|
body: (0, index_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
|
|
79
|
-
}
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Update the user\'s default tenant. The user must belong to the specified tenant.
|
|
92
|
+
* Update Me Handler
|
|
93
|
+
*/
|
|
94
|
+
updateMeRaw(requestParameters, initOverrides) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
const requestOptions = yield this.updateMeRequestOpts(requestParameters);
|
|
97
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
80
98
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
|
|
81
99
|
});
|
|
82
100
|
}
|
|
@@ -32,6 +32,14 @@ export interface WorkflowActionRequest {
|
|
|
32
32
|
* @interface WorkflowsApiInterface
|
|
33
33
|
*/
|
|
34
34
|
export interface WorkflowsApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getWorkflow without sending the request
|
|
37
|
+
* @param {string} workflowId
|
|
38
|
+
* @param {string} [ksUat]
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof WorkflowsApiInterface
|
|
41
|
+
*/
|
|
42
|
+
getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts>;
|
|
35
43
|
/**
|
|
36
44
|
* Get single workflow detail with live Temporal status.
|
|
37
45
|
* @summary Get Workflow Handler
|
|
@@ -47,6 +55,15 @@ export interface WorkflowsApiInterface {
|
|
|
47
55
|
* Get Workflow Handler
|
|
48
56
|
*/
|
|
49
57
|
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for listWorkflows without sending the request
|
|
60
|
+
* @param {number} [limit] Number of items per page
|
|
61
|
+
* @param {number} [offset] Number of items to skip
|
|
62
|
+
* @param {string} [ksUat]
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof WorkflowsApiInterface
|
|
65
|
+
*/
|
|
66
|
+
listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts>;
|
|
50
67
|
/**
|
|
51
68
|
* List all workflows for the current tenant (paginated, DB-backed).
|
|
52
69
|
* @summary List Workflows Handler
|
|
@@ -63,6 +80,15 @@ export interface WorkflowsApiInterface {
|
|
|
63
80
|
* List Workflows Handler
|
|
64
81
|
*/
|
|
65
82
|
listWorkflows(requestParameters: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for workflowAction without sending the request
|
|
85
|
+
* @param {string} workflowId
|
|
86
|
+
* @param {WorkflowAction} action Action to perform
|
|
87
|
+
* @param {string} [ksUat]
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof WorkflowsApiInterface
|
|
90
|
+
*/
|
|
91
|
+
workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts>;
|
|
66
92
|
/**
|
|
67
93
|
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
68
94
|
* @summary Workflow Action Handler
|
|
@@ -84,6 +110,10 @@ export interface WorkflowsApiInterface {
|
|
|
84
110
|
*
|
|
85
111
|
*/
|
|
86
112
|
export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsApiInterface {
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for getWorkflow without sending the request
|
|
115
|
+
*/
|
|
116
|
+
getWorkflowRequestOpts(requestParameters: GetWorkflowRequest): Promise<runtime.RequestOpts>;
|
|
87
117
|
/**
|
|
88
118
|
* Get single workflow detail with live Temporal status.
|
|
89
119
|
* Get Workflow Handler
|
|
@@ -94,6 +124,10 @@ export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsAp
|
|
|
94
124
|
* Get Workflow Handler
|
|
95
125
|
*/
|
|
96
126
|
getWorkflow(requestParameters: GetWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowDetailResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for listWorkflows without sending the request
|
|
129
|
+
*/
|
|
130
|
+
listWorkflowsRequestOpts(requestParameters: ListWorkflowsRequest): Promise<runtime.RequestOpts>;
|
|
97
131
|
/**
|
|
98
132
|
* List all workflows for the current tenant (paginated, DB-backed).
|
|
99
133
|
* List Workflows Handler
|
|
@@ -104,6 +138,10 @@ export declare class WorkflowsApi extends runtime.BaseAPI implements WorkflowsAp
|
|
|
104
138
|
* List Workflows Handler
|
|
105
139
|
*/
|
|
106
140
|
listWorkflows(requestParameters?: ListWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates request options for workflowAction without sending the request
|
|
143
|
+
*/
|
|
144
|
+
workflowActionRequestOpts(requestParameters: WorkflowActionRequest): Promise<runtime.RequestOpts>;
|
|
107
145
|
/**
|
|
108
146
|
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
109
147
|
* Workflow Action Handler
|
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class WorkflowsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Get Workflow Handler
|
|
33
|
+
* Creates request options for getWorkflow without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
getWorkflowRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['workflowId'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getWorkflow().');
|
|
@@ -42,12 +41,22 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
44
43
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'GET',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
|
-
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get single workflow detail with live Temporal status.
|
|
54
|
+
* Get Workflow Handler
|
|
55
|
+
*/
|
|
56
|
+
getWorkflowRaw(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const requestOptions = yield this.getWorkflowRequestOpts(requestParameters);
|
|
59
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
51
60
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowDetailResponseFromJSON)(jsonValue));
|
|
52
61
|
});
|
|
53
62
|
}
|
|
@@ -62,10 +71,9 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
62
71
|
});
|
|
63
72
|
}
|
|
64
73
|
/**
|
|
65
|
-
*
|
|
66
|
-
* List Workflows Handler
|
|
74
|
+
* Creates request options for listWorkflows without sending the request
|
|
67
75
|
*/
|
|
68
|
-
|
|
76
|
+
listWorkflowsRequestOpts(requestParameters) {
|
|
69
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
78
|
const queryParameters = {};
|
|
71
79
|
if (requestParameters['limit'] != null) {
|
|
@@ -76,12 +84,22 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
76
84
|
}
|
|
77
85
|
const headerParameters = {};
|
|
78
86
|
let urlPath = `/v1/workflows`;
|
|
79
|
-
|
|
87
|
+
return {
|
|
80
88
|
path: urlPath,
|
|
81
89
|
method: 'GET',
|
|
82
90
|
headers: headerParameters,
|
|
83
91
|
query: queryParameters,
|
|
84
|
-
}
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* List all workflows for the current tenant (paginated, DB-backed).
|
|
97
|
+
* List Workflows Handler
|
|
98
|
+
*/
|
|
99
|
+
listWorkflowsRaw(requestParameters, initOverrides) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const requestOptions = yield this.listWorkflowsRequestOpts(requestParameters);
|
|
102
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
85
103
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseWorkflowSummaryResponseFromJSON)(jsonValue));
|
|
86
104
|
});
|
|
87
105
|
}
|
|
@@ -96,10 +114,9 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
96
114
|
});
|
|
97
115
|
}
|
|
98
116
|
/**
|
|
99
|
-
*
|
|
100
|
-
* Workflow Action Handler
|
|
117
|
+
* Creates request options for workflowAction without sending the request
|
|
101
118
|
*/
|
|
102
|
-
|
|
119
|
+
workflowActionRequestOpts(requestParameters) {
|
|
103
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
121
|
if (requestParameters['workflowId'] == null) {
|
|
105
122
|
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling workflowAction().');
|
|
@@ -114,12 +131,22 @@ class WorkflowsApi extends runtime.BaseAPI {
|
|
|
114
131
|
const headerParameters = {};
|
|
115
132
|
let urlPath = `/v1/workflows/{workflow_id}`;
|
|
116
133
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
117
|
-
|
|
134
|
+
return {
|
|
118
135
|
path: urlPath,
|
|
119
136
|
method: 'POST',
|
|
120
137
|
headers: headerParameters,
|
|
121
138
|
query: queryParameters,
|
|
122
|
-
}
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Cancel or rerun a workflow (OWNER/ADMIN only).
|
|
144
|
+
* Workflow Action Handler
|
|
145
|
+
*/
|
|
146
|
+
workflowActionRaw(requestParameters, initOverrides) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const requestOptions = yield this.workflowActionRequestOpts(requestParameters);
|
|
149
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
123
150
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkflowActionResponseFromJSON)(jsonValue));
|
|
124
151
|
});
|
|
125
152
|
}
|