@knowledge-stack/ksapi 3.11.0 → 3.12.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 +26 -4
- package/README.md +18 -6
- package/dist/apis/AuthApi.d.ts +12 -9
- package/dist/apis/AuthApi.js +5 -2
- package/dist/apis/FeedbackApi.d.ts +10 -7
- package/dist/apis/FeedbackApi.js +5 -2
- package/dist/apis/InvitesApi.d.ts +39 -1
- package/dist/apis/InvitesApi.js +41 -0
- package/dist/apis/UsersApi.d.ts +51 -59
- package/dist/apis/UsersApi.js +50 -57
- package/dist/esm/apis/AuthApi.d.ts +12 -9
- package/dist/esm/apis/AuthApi.js +6 -3
- package/dist/esm/apis/FeedbackApi.d.ts +10 -7
- package/dist/esm/apis/FeedbackApi.js +5 -2
- package/dist/esm/apis/InvitesApi.d.ts +39 -1
- package/dist/esm/apis/InvitesApi.js +42 -1
- package/dist/esm/apis/UsersApi.d.ts +51 -59
- package/dist/esm/apis/UsersApi.js +51 -58
- package/dist/esm/models/{OnboardingProfileRequest.d.ts → AccessRequestResponse.d.ts} +14 -26
- package/dist/esm/models/{OnboardingCompanyRequest.js → AccessRequestResponse.js} +13 -20
- package/dist/esm/models/AddedBy.d.ts +25 -0
- package/dist/esm/models/AddedBy.js +43 -0
- package/dist/esm/models/CreatePasswordUserRequest.d.ts +6 -0
- package/dist/esm/models/CreatePasswordUserRequest.js +2 -0
- package/dist/esm/models/ErrorResponse.d.ts +2 -0
- package/dist/esm/models/ErrorResponse.js +2 -0
- package/dist/esm/models/FeaturesResponse.d.ts +7 -0
- package/dist/esm/models/FeaturesResponse.js +5 -0
- package/dist/esm/models/GuideModuleProgress.d.ts +66 -0
- package/dist/{models/OnboardingProfileRequest.js → esm/models/GuideModuleProgress.js} +31 -25
- package/dist/esm/models/GuideModuleStatus.d.ts +26 -0
- package/dist/esm/models/GuideModuleStatus.js +44 -0
- package/dist/esm/models/GuideModules.d.ts +126 -0
- package/dist/esm/models/GuideModules.js +69 -0
- package/dist/esm/models/InvitePreviewResponse.d.ts +80 -0
- package/dist/esm/models/InvitePreviewResponse.js +57 -0
- package/dist/esm/models/InvitePreviewState.d.ts +28 -0
- package/dist/esm/models/InvitePreviewState.js +46 -0
- package/dist/esm/models/InviteRejection.d.ts +30 -0
- package/dist/esm/models/InviteRejection.js +48 -0
- package/dist/esm/models/KbSummaryResponse.d.ts +8 -0
- package/dist/esm/models/KbSummaryResponse.js +4 -0
- package/dist/esm/models/{OnboardingCompanyRequest.d.ts → OnboardingState.d.ts} +26 -18
- package/dist/esm/models/{OnboardingProfileRequest.js → OnboardingState.js} +17 -19
- package/dist/esm/models/OnboardingStateUpdate.d.ts +61 -0
- package/dist/esm/models/OnboardingStateUpdate.js +48 -0
- package/dist/esm/models/OnboardingStep.d.ts +27 -0
- package/dist/esm/models/OnboardingStep.js +45 -0
- package/dist/esm/models/SignUpResponse.d.ts +174 -0
- package/dist/esm/models/SignUpResponse.js +107 -0
- package/dist/esm/models/TenantResponse.d.ts +7 -0
- package/dist/esm/models/TenantResponse.js +5 -0
- package/dist/esm/models/TenantUserJoinMethod.d.ts +26 -0
- package/dist/esm/models/TenantUserJoinMethod.js +44 -0
- package/dist/esm/models/UserResponse.d.ts +40 -0
- package/dist/esm/models/UserResponse.js +18 -0
- package/dist/esm/models/index.d.ts +13 -2
- package/dist/esm/models/index.js +13 -2
- package/dist/models/{OnboardingProfileRequest.d.ts → AccessRequestResponse.d.ts} +14 -26
- package/dist/models/{OnboardingCompanyRequest.js → AccessRequestResponse.js} +19 -26
- package/dist/models/AddedBy.d.ts +25 -0
- package/dist/models/AddedBy.js +51 -0
- package/dist/models/CreatePasswordUserRequest.d.ts +6 -0
- package/dist/models/CreatePasswordUserRequest.js +2 -0
- package/dist/models/ErrorResponse.d.ts +2 -0
- package/dist/models/ErrorResponse.js +2 -0
- package/dist/models/FeaturesResponse.d.ts +7 -0
- package/dist/models/FeaturesResponse.js +5 -0
- package/dist/models/GuideModuleProgress.d.ts +66 -0
- package/dist/models/GuideModuleProgress.js +72 -0
- package/dist/models/GuideModuleStatus.d.ts +26 -0
- package/dist/models/GuideModuleStatus.js +52 -0
- package/dist/models/GuideModules.d.ts +126 -0
- package/dist/models/GuideModules.js +77 -0
- package/dist/models/InvitePreviewResponse.d.ts +80 -0
- package/dist/models/InvitePreviewResponse.js +65 -0
- package/dist/models/InvitePreviewState.d.ts +28 -0
- package/dist/models/InvitePreviewState.js +54 -0
- package/dist/models/InviteRejection.d.ts +30 -0
- package/dist/models/InviteRejection.js +56 -0
- package/dist/models/KbSummaryResponse.d.ts +8 -0
- package/dist/models/KbSummaryResponse.js +4 -0
- package/dist/models/{OnboardingCompanyRequest.d.ts → OnboardingState.d.ts} +26 -18
- package/dist/models/OnboardingState.js +56 -0
- package/dist/models/OnboardingStateUpdate.d.ts +61 -0
- package/dist/models/OnboardingStateUpdate.js +56 -0
- package/dist/models/OnboardingStep.d.ts +27 -0
- package/dist/models/OnboardingStep.js +53 -0
- package/dist/models/SignUpResponse.d.ts +174 -0
- package/dist/models/SignUpResponse.js +115 -0
- package/dist/models/TenantResponse.d.ts +7 -0
- package/dist/models/TenantResponse.js +5 -0
- package/dist/models/TenantUserJoinMethod.d.ts +26 -0
- package/dist/models/TenantUserJoinMethod.js +52 -0
- package/dist/models/UserResponse.d.ts +40 -0
- package/dist/models/UserResponse.js +18 -0
- package/dist/models/index.d.ts +13 -2
- package/dist/models/index.js +13 -2
- package/docs/{OnboardingCompanyRequest.md → AccessRequestResponse.md} +6 -9
- package/docs/{OnboardingProfileRequest.md → AddedBy.md} +4 -11
- package/docs/AuthApi.md +8 -5
- package/docs/CreatePasswordUserRequest.md +2 -0
- package/docs/FeaturesResponse.md +2 -0
- package/docs/FeedbackApi.md +8 -5
- package/docs/GuideModuleProgress.md +40 -0
- package/docs/GuideModuleStatus.md +32 -0
- package/docs/GuideModules.md +60 -0
- package/docs/InvitePreviewResponse.md +44 -0
- package/docs/InvitePreviewState.md +32 -0
- package/docs/InviteRejection.md +32 -0
- package/docs/InvitesApi.md +70 -0
- package/docs/KbSummaryResponse.md +2 -0
- package/docs/OnboardingState.md +39 -0
- package/docs/OnboardingStateUpdate.md +38 -0
- package/docs/OnboardingStep.md +32 -0
- package/docs/SignUpResponse.md +74 -0
- package/docs/TenantResponse.md +2 -0
- package/docs/TenantUserJoinMethod.md +32 -0
- package/docs/UserResponse.md +12 -0
- package/docs/UsersApi.md +36 -47
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +20 -10
- package/src/apis/FeedbackApi.ts +14 -7
- package/src/apis/InvitesApi.ts +78 -0
- package/src/apis/UsersApi.ts +91 -110
- package/src/models/{OnboardingCompanyRequest.ts → AccessRequestResponse.ts} +19 -32
- package/src/models/AddedBy.ts +53 -0
- package/src/models/CreatePasswordUserRequest.ts +8 -0
- package/src/models/ErrorResponse.ts +2 -0
- package/src/models/FeaturesResponse.ts +16 -0
- package/src/models/GuideModuleProgress.ts +127 -0
- package/src/models/GuideModuleStatus.ts +54 -0
- package/src/models/GuideModules.ts +194 -0
- package/src/models/InvitePreviewResponse.ts +147 -0
- package/src/models/InvitePreviewState.ts +56 -0
- package/src/models/InviteRejection.ts +58 -0
- package/src/models/KbSummaryResponse.ts +9 -0
- package/src/models/{OnboardingProfileRequest.ts → OnboardingState.ts} +47 -33
- package/src/models/OnboardingStateUpdate.ts +115 -0
- package/src/models/OnboardingStep.ts +55 -0
- package/src/models/SignUpResponse.ts +303 -0
- package/src/models/TenantResponse.ts +16 -0
- package/src/models/TenantUserJoinMethod.ts +54 -0
- package/src/models/UserResponse.ts +77 -0
- package/src/models/index.ts +13 -2
package/dist/esm/models/index.js
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
export * from './AcceptDisclaimerRequest';
|
|
4
4
|
export * from './AcceptInviteResponse';
|
|
5
5
|
export * from './AccessCheckResponse';
|
|
6
|
+
export * from './AccessRequestResponse';
|
|
6
7
|
export * from './ActivateSkillVersionRequest';
|
|
7
8
|
export * from './AddMemberRequest';
|
|
9
|
+
export * from './AddedBy';
|
|
8
10
|
export * from './AncestryResponse';
|
|
9
11
|
export * from './ApiAuthConfig';
|
|
10
12
|
export * from './ApiConnectionRequestRequest';
|
|
@@ -158,6 +160,9 @@ export * from './GroupMemberOrder';
|
|
|
158
160
|
export * from './GroupPermissionOrder';
|
|
159
161
|
export * from './GroupPermissionResponse';
|
|
160
162
|
export * from './GroupResponse';
|
|
163
|
+
export * from './GuideModuleProgress';
|
|
164
|
+
export * from './GuideModuleStatus';
|
|
165
|
+
export * from './GuideModules';
|
|
161
166
|
export * from './HTTPValidationError';
|
|
162
167
|
export * from './HealthCheckResponse';
|
|
163
168
|
export * from './HourHistogramResponse';
|
|
@@ -177,6 +182,9 @@ export * from './InstructionSnapshot';
|
|
|
177
182
|
export * from './InviteLinkSettingsRequest';
|
|
178
183
|
export * from './InviteLinkSettingsResponse';
|
|
179
184
|
export * from './InviteOrder';
|
|
185
|
+
export * from './InvitePreviewResponse';
|
|
186
|
+
export * from './InvitePreviewState';
|
|
187
|
+
export * from './InviteRejection';
|
|
180
188
|
export * from './InviteResponse';
|
|
181
189
|
export * from './InviteStatus';
|
|
182
190
|
export * from './InviteUserRequest';
|
|
@@ -203,8 +211,9 @@ export * from './ModelTableRequest';
|
|
|
203
211
|
export * from './ModelTableResult';
|
|
204
212
|
export * from './NetworkClass';
|
|
205
213
|
export * from './NonFilesystemReferenceType';
|
|
206
|
-
export * from './
|
|
207
|
-
export * from './
|
|
214
|
+
export * from './OnboardingState';
|
|
215
|
+
export * from './OnboardingStateUpdate';
|
|
216
|
+
export * from './OnboardingStep';
|
|
208
217
|
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat';
|
|
209
218
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
210
219
|
export * from './PaginatedResponseBillingPaymentResponse';
|
|
@@ -288,6 +297,7 @@ export * from './SetApprovalStateRequest';
|
|
|
288
297
|
export * from './SetWorkflowRunApprovalRequest';
|
|
289
298
|
export * from './SheetVisibilityChange';
|
|
290
299
|
export * from './SignInRequest';
|
|
300
|
+
export * from './SignUpResponse';
|
|
291
301
|
export * from './SkillFile';
|
|
292
302
|
export * from './SkillOrder';
|
|
293
303
|
export * from './SkillResponse';
|
|
@@ -321,6 +331,7 @@ export * from './TenantSettingsResponse';
|
|
|
321
331
|
export * from './TenantSettingsUpdate';
|
|
322
332
|
export * from './TenantSubscriptionResponse';
|
|
323
333
|
export * from './TenantUserEditRequest';
|
|
334
|
+
export * from './TenantUserJoinMethod';
|
|
324
335
|
export * from './TenantUserOrder';
|
|
325
336
|
export * from './TenantUserResponse';
|
|
326
337
|
export * from './TenantUserRole';
|
|
@@ -10,31 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface AccessRequestResponse
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
18
|
-
/**
|
|
19
|
-
* User's first name
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OnboardingProfileRequest
|
|
22
|
-
*/
|
|
23
|
-
firstName?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* User's last name
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OnboardingProfileRequest
|
|
28
|
-
*/
|
|
29
|
-
lastName?: string | null;
|
|
17
|
+
export interface AccessRequestResponse {
|
|
30
18
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
33
|
-
* @memberof
|
|
19
|
+
* When this member's request was recorded. A repeat inside the daily window returns the original request and sends no second email.
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AccessRequestResponse
|
|
34
22
|
*/
|
|
35
|
-
|
|
23
|
+
requestedAt: Date;
|
|
36
24
|
}
|
|
37
|
-
export declare const
|
|
25
|
+
export declare const AccessRequestResponsePropertyValidationAttributesMap: {
|
|
38
26
|
[property: string]: {
|
|
39
27
|
maxLength?: number;
|
|
40
28
|
minLength?: number;
|
|
@@ -50,10 +38,10 @@ export declare const OnboardingProfileRequestPropertyValidationAttributesMap: {
|
|
|
50
38
|
};
|
|
51
39
|
};
|
|
52
40
|
/**
|
|
53
|
-
* Check if a given object implements the
|
|
41
|
+
* Check if a given object implements the AccessRequestResponse interface.
|
|
54
42
|
*/
|
|
55
|
-
export declare function
|
|
56
|
-
export declare function
|
|
57
|
-
export declare function
|
|
58
|
-
export declare function
|
|
59
|
-
export declare function
|
|
43
|
+
export declare function instanceOfAccessRequestResponse(value: object): value is AccessRequestResponse;
|
|
44
|
+
export declare function AccessRequestResponseFromJSON(json: any): AccessRequestResponse;
|
|
45
|
+
export declare function AccessRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRequestResponse;
|
|
46
|
+
export declare function AccessRequestResponseToJSON(json: any): AccessRequestResponse;
|
|
47
|
+
export declare function AccessRequestResponseToJSONTyped(value?: AccessRequestResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,47 +13,40 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
description: {
|
|
24
|
-
maxLength: 5000,
|
|
25
|
-
},
|
|
26
|
-
industry: {
|
|
27
|
-
maxLength: 120,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
16
|
+
exports.AccessRequestResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfAccessRequestResponse = instanceOfAccessRequestResponse;
|
|
18
|
+
exports.AccessRequestResponseFromJSON = AccessRequestResponseFromJSON;
|
|
19
|
+
exports.AccessRequestResponseFromJSONTyped = AccessRequestResponseFromJSONTyped;
|
|
20
|
+
exports.AccessRequestResponseToJSON = AccessRequestResponseToJSON;
|
|
21
|
+
exports.AccessRequestResponseToJSONTyped = AccessRequestResponseToJSONTyped;
|
|
22
|
+
exports.AccessRequestResponsePropertyValidationAttributesMap = {};
|
|
30
23
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the AccessRequestResponse interface.
|
|
32
25
|
*/
|
|
33
|
-
function
|
|
26
|
+
function instanceOfAccessRequestResponse(value) {
|
|
27
|
+
if (!('requestedAt' in value) || value['requestedAt'] === undefined)
|
|
28
|
+
return false;
|
|
34
29
|
return true;
|
|
35
30
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
31
|
+
function AccessRequestResponseFromJSON(json) {
|
|
32
|
+
return AccessRequestResponseFromJSONTyped(json, false);
|
|
38
33
|
}
|
|
39
|
-
function
|
|
34
|
+
function AccessRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
35
|
if (json == null) {
|
|
41
36
|
return json;
|
|
42
37
|
}
|
|
43
38
|
return {
|
|
44
|
-
'
|
|
45
|
-
'industry': json['industry'] == null ? undefined : json['industry'],
|
|
39
|
+
'requestedAt': (new Date(json['requested_at'])),
|
|
46
40
|
};
|
|
47
41
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
42
|
+
function AccessRequestResponseToJSON(json) {
|
|
43
|
+
return AccessRequestResponseToJSONTyped(json, false);
|
|
50
44
|
}
|
|
51
|
-
function
|
|
45
|
+
function AccessRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
46
|
if (value == null) {
|
|
53
47
|
return value;
|
|
54
48
|
}
|
|
55
49
|
return {
|
|
56
|
-
'
|
|
57
|
-
'industry': value['industry'],
|
|
50
|
+
'requested_at': value['requestedAt'].toISOString(),
|
|
58
51
|
};
|
|
59
52
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AddedBy: {
|
|
17
|
+
readonly DirectorySync: 'directory_sync';
|
|
18
|
+
readonly Operator: 'operator';
|
|
19
|
+
};
|
|
20
|
+
export type AddedBy = typeof AddedBy[keyof typeof AddedBy];
|
|
21
|
+
export declare function instanceOfAddedBy(value: any): boolean;
|
|
22
|
+
export declare function AddedByFromJSON(json: any): AddedBy;
|
|
23
|
+
export declare function AddedByFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddedBy;
|
|
24
|
+
export declare function AddedByToJSON(value?: AddedBy | null): any;
|
|
25
|
+
export declare function AddedByToJSONTyped(value: any, ignoreDiscriminator: boolean): AddedBy;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AddedBy = void 0;
|
|
17
|
+
exports.instanceOfAddedBy = instanceOfAddedBy;
|
|
18
|
+
exports.AddedByFromJSON = AddedByFromJSON;
|
|
19
|
+
exports.AddedByFromJSONTyped = AddedByFromJSONTyped;
|
|
20
|
+
exports.AddedByToJSON = AddedByToJSON;
|
|
21
|
+
exports.AddedByToJSONTyped = AddedByToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AddedBy = {
|
|
27
|
+
DirectorySync: 'directory_sync',
|
|
28
|
+
Operator: 'operator'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfAddedBy(value) {
|
|
31
|
+
for (const key in exports.AddedBy) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.AddedBy, key)) {
|
|
33
|
+
if (exports.AddedBy[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function AddedByFromJSON(json) {
|
|
41
|
+
return AddedByFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AddedByFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function AddedByToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function AddedByToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface CreatePasswordUserRequest {
|
|
|
39
39
|
* @memberof CreatePasswordUserRequest
|
|
40
40
|
*/
|
|
41
41
|
lastName?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Invite to resolve before any workspace is provisioned. When it is valid for the verified email the account joins that tenant only; otherwise sign-up proceeds as usual and invite_rejection says why.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePasswordUserRequest
|
|
46
|
+
*/
|
|
47
|
+
inviteId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
export declare const CreatePasswordUserRequestPropertyValidationAttributesMap: {
|
|
44
50
|
[property: string]: {
|
|
@@ -46,6 +46,7 @@ function CreatePasswordUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'emailToken': json['email_token'],
|
|
47
47
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
48
48
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
49
|
+
'inviteId': json['invite_id'] == null ? undefined : json['invite_id'],
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
function CreatePasswordUserRequestToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function CreatePasswordUserRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
60
61
|
'email_token': value['emailToken'],
|
|
61
62
|
'first_name': value['firstName'],
|
|
62
63
|
'last_name': value['lastName'],
|
|
64
|
+
'invite_id': value['inviteId'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -43,8 +43,10 @@ export declare const ErrorResponseCodeEnum: {
|
|
|
43
43
|
readonly PermissionLimit: 'permission_limit';
|
|
44
44
|
readonly Unauthorized: 'unauthorized';
|
|
45
45
|
readonly Forbidden: 'forbidden';
|
|
46
|
+
readonly NoWorkspace: 'no_workspace';
|
|
46
47
|
readonly NotFound: 'not_found';
|
|
47
48
|
readonly Conflict: 'conflict';
|
|
49
|
+
readonly TenantDeactivated: 'tenant_deactivated';
|
|
48
50
|
readonly RunBusy: 'run_busy';
|
|
49
51
|
readonly PayloadTooLarge: 'payload_too_large';
|
|
50
52
|
readonly UnsupportedMediaType: 'unsupported_media_type';
|
|
@@ -28,8 +28,10 @@ exports.ErrorResponseCodeEnum = {
|
|
|
28
28
|
PermissionLimit: 'permission_limit',
|
|
29
29
|
Unauthorized: 'unauthorized',
|
|
30
30
|
Forbidden: 'forbidden',
|
|
31
|
+
NoWorkspace: 'no_workspace',
|
|
31
32
|
NotFound: 'not_found',
|
|
32
33
|
Conflict: 'conflict',
|
|
34
|
+
TenantDeactivated: 'tenant_deactivated',
|
|
33
35
|
RunBusy: 'run_busy',
|
|
34
36
|
PayloadTooLarge: 'payload_too_large',
|
|
35
37
|
UnsupportedMediaType: 'unsupported_media_type',
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SupportedLanguage } from './SupportedLanguage';
|
|
13
13
|
import type { UploadConstraints } from './UploadConstraints';
|
|
14
|
+
import type { DataSourceEngine } from './DataSourceEngine';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -53,6 +54,12 @@ export interface FeaturesResponse {
|
|
|
53
54
|
* @memberof FeaturesResponse
|
|
54
55
|
*/
|
|
55
56
|
upload: UploadConstraints;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<DataSourceEngine>}
|
|
60
|
+
* @memberof FeaturesResponse
|
|
61
|
+
*/
|
|
62
|
+
dataSourceEngines: Array<DataSourceEngine>;
|
|
56
63
|
}
|
|
57
64
|
export declare const FeaturesResponsePropertyValidationAttributesMap: {
|
|
58
65
|
[property: string]: {
|
|
@@ -21,6 +21,7 @@ exports.FeaturesResponseToJSON = FeaturesResponseToJSON;
|
|
|
21
21
|
exports.FeaturesResponseToJSONTyped = FeaturesResponseToJSONTyped;
|
|
22
22
|
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
23
23
|
const UploadConstraints_1 = require("./UploadConstraints");
|
|
24
|
+
const DataSourceEngine_1 = require("./DataSourceEngine");
|
|
24
25
|
exports.FeaturesResponsePropertyValidationAttributesMap = {};
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the FeaturesResponse interface.
|
|
@@ -38,6 +39,8 @@ function instanceOfFeaturesResponse(value) {
|
|
|
38
39
|
return false;
|
|
39
40
|
if (!('upload' in value) || value['upload'] === undefined)
|
|
40
41
|
return false;
|
|
42
|
+
if (!('dataSourceEngines' in value) || value['dataSourceEngines'] === undefined)
|
|
43
|
+
return false;
|
|
41
44
|
return true;
|
|
42
45
|
}
|
|
43
46
|
function FeaturesResponseFromJSON(json) {
|
|
@@ -54,6 +57,7 @@ function FeaturesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
57
|
'smsLoginEnabled': json['sms_login_enabled'],
|
|
55
58
|
'defaultFrontendLanguage': (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['default_frontend_language']),
|
|
56
59
|
'upload': (0, UploadConstraints_1.UploadConstraintsFromJSON)(json['upload']),
|
|
60
|
+
'dataSourceEngines': (json['data_source_engines'].map(DataSourceEngine_1.DataSourceEngineFromJSON)),
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
function FeaturesResponseToJSON(json) {
|
|
@@ -70,5 +74,6 @@ function FeaturesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
74
|
'sms_login_enabled': value['smsLoginEnabled'],
|
|
71
75
|
'default_frontend_language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['defaultFrontendLanguage']),
|
|
72
76
|
'upload': (0, UploadConstraints_1.UploadConstraintsToJSON)(value['upload']),
|
|
77
|
+
'data_source_engines': (value['dataSourceEngines'].map(DataSourceEngine_1.DataSourceEngineToJSON)),
|
|
73
78
|
};
|
|
74
79
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 type { GuideModuleStatus } from './GuideModuleStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GuideModuleProgress
|
|
17
|
+
*/
|
|
18
|
+
export interface GuideModuleProgress {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {GuideModuleStatus}
|
|
22
|
+
* @memberof GuideModuleProgress
|
|
23
|
+
*/
|
|
24
|
+
status: GuideModuleStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Index of the last step the person reached
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GuideModuleProgress
|
|
29
|
+
*/
|
|
30
|
+
step: number;
|
|
31
|
+
/**
|
|
32
|
+
* Version of the module definition
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GuideModuleProgress
|
|
35
|
+
*/
|
|
36
|
+
version: number;
|
|
37
|
+
/**
|
|
38
|
+
* Server-stamped when the module first became COMPLETED; a client value is ignored. Null while not completed.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof GuideModuleProgress
|
|
41
|
+
*/
|
|
42
|
+
completedAt?: Date | null;
|
|
43
|
+
}
|
|
44
|
+
export declare const GuideModuleProgressPropertyValidationAttributesMap: {
|
|
45
|
+
[property: string]: {
|
|
46
|
+
maxLength?: number;
|
|
47
|
+
minLength?: number;
|
|
48
|
+
pattern?: string;
|
|
49
|
+
maximum?: number;
|
|
50
|
+
exclusiveMaximum?: boolean;
|
|
51
|
+
minimum?: number;
|
|
52
|
+
exclusiveMinimum?: boolean;
|
|
53
|
+
multipleOf?: number;
|
|
54
|
+
maxItems?: number;
|
|
55
|
+
minItems?: number;
|
|
56
|
+
uniqueItems?: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the GuideModuleProgress interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfGuideModuleProgress(value: object): value is GuideModuleProgress;
|
|
63
|
+
export declare function GuideModuleProgressFromJSON(json: any): GuideModuleProgress;
|
|
64
|
+
export declare function GuideModuleProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuideModuleProgress;
|
|
65
|
+
export declare function GuideModuleProgressToJSON(json: any): GuideModuleProgress;
|
|
66
|
+
export declare function GuideModuleProgressToJSONTyped(value?: GuideModuleProgress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GuideModuleProgressPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfGuideModuleProgress = instanceOfGuideModuleProgress;
|
|
18
|
+
exports.GuideModuleProgressFromJSON = GuideModuleProgressFromJSON;
|
|
19
|
+
exports.GuideModuleProgressFromJSONTyped = GuideModuleProgressFromJSONTyped;
|
|
20
|
+
exports.GuideModuleProgressToJSON = GuideModuleProgressToJSON;
|
|
21
|
+
exports.GuideModuleProgressToJSONTyped = GuideModuleProgressToJSONTyped;
|
|
22
|
+
const GuideModuleStatus_1 = require("./GuideModuleStatus");
|
|
23
|
+
exports.GuideModuleProgressPropertyValidationAttributesMap = {
|
|
24
|
+
step: {
|
|
25
|
+
minimum: 0,
|
|
26
|
+
exclusiveMinimum: false,
|
|
27
|
+
},
|
|
28
|
+
version: {
|
|
29
|
+
minimum: 1,
|
|
30
|
+
exclusiveMinimum: false,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GuideModuleProgress interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfGuideModuleProgress(value) {
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('step' in value) || value['step'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function GuideModuleProgressFromJSON(json) {
|
|
46
|
+
return GuideModuleProgressFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GuideModuleProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': (0, GuideModuleStatus_1.GuideModuleStatusFromJSON)(json['status']),
|
|
54
|
+
'step': json['step'],
|
|
55
|
+
'version': json['version'],
|
|
56
|
+
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function GuideModuleProgressToJSON(json) {
|
|
60
|
+
return GuideModuleProgressToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function GuideModuleProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'status': (0, GuideModuleStatus_1.GuideModuleStatusToJSON)(value['status']),
|
|
68
|
+
'step': value['step'],
|
|
69
|
+
'version': value['version'],
|
|
70
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const GuideModuleStatus: {
|
|
17
|
+
readonly InProgress: 'IN_PROGRESS';
|
|
18
|
+
readonly Completed: 'COMPLETED';
|
|
19
|
+
readonly Dismissed: 'DISMISSED';
|
|
20
|
+
};
|
|
21
|
+
export type GuideModuleStatus = typeof GuideModuleStatus[keyof typeof GuideModuleStatus];
|
|
22
|
+
export declare function instanceOfGuideModuleStatus(value: any): boolean;
|
|
23
|
+
export declare function GuideModuleStatusFromJSON(json: any): GuideModuleStatus;
|
|
24
|
+
export declare function GuideModuleStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuideModuleStatus;
|
|
25
|
+
export declare function GuideModuleStatusToJSON(value?: GuideModuleStatus | null): any;
|
|
26
|
+
export declare function GuideModuleStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): GuideModuleStatus;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GuideModuleStatus = void 0;
|
|
17
|
+
exports.instanceOfGuideModuleStatus = instanceOfGuideModuleStatus;
|
|
18
|
+
exports.GuideModuleStatusFromJSON = GuideModuleStatusFromJSON;
|
|
19
|
+
exports.GuideModuleStatusFromJSONTyped = GuideModuleStatusFromJSONTyped;
|
|
20
|
+
exports.GuideModuleStatusToJSON = GuideModuleStatusToJSON;
|
|
21
|
+
exports.GuideModuleStatusToJSONTyped = GuideModuleStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GuideModuleStatus = {
|
|
27
|
+
InProgress: 'IN_PROGRESS',
|
|
28
|
+
Completed: 'COMPLETED',
|
|
29
|
+
Dismissed: 'DISMISSED'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfGuideModuleStatus(value) {
|
|
32
|
+
for (const key in exports.GuideModuleStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.GuideModuleStatus, key)) {
|
|
34
|
+
if (exports.GuideModuleStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function GuideModuleStatusFromJSON(json) {
|
|
42
|
+
return GuideModuleStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GuideModuleStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function GuideModuleStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function GuideModuleStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|