@knowledge-stack/ksapi 1.142.2 → 1.144.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.
@@ -252,7 +252,9 @@ docs/ProposedMemoryChunkResponse.md
252
252
  docs/PublicApi.md
253
253
  docs/ReasoningPart.md
254
254
  docs/ReferenceType.md
255
+ docs/ReorderPathPartRequest.md
255
256
  docs/RequestPhoneChangeRequest.md
257
+ docs/ResolvedRef.md
256
258
  docs/ResolvedReferenceInput.md
257
259
  docs/ResolvedReferenceOutput.md
258
260
  docs/ResponseSendPwResetEmail.md
@@ -665,7 +667,9 @@ src/models/ProposeMemoryChunkRequest.ts
665
667
  src/models/ProposedMemoryChunkResponse.ts
666
668
  src/models/ReasoningPart.ts
667
669
  src/models/ReferenceType.ts
670
+ src/models/ReorderPathPartRequest.ts
668
671
  src/models/RequestPhoneChangeRequest.ts
672
+ src/models/ResolvedRef.ts
669
673
  src/models/ResolvedReferenceInput.ts
670
674
  src/models/ResolvedReferenceOutput.ts
671
675
  src/models/ResponseSendPwResetEmail.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.142.2
1
+ # @knowledge-stack/ksapi@1.144.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -177,6 +177,7 @@ All URIs are relative to *http://localhost:8000*
177
177
  *PathPartsApi* | [**getPathPartTags**](docs/PathPartsApi.md#getpathparttags) | **GET** /v1/path-parts/{path_part_id}/tags | Get Path Part Tags Handler
178
178
  *PathPartsApi* | [**listPathPartEvents**](docs/PathPartsApi.md#listpathpartevents) | **GET** /v1/path-parts/{path_part_id}/events | List Path Part Events Handler
179
179
  *PathPartsApi* | [**listPathParts**](docs/PathPartsApi.md#listpathparts) | **GET** /v1/path-parts | List Path Parts Handler
180
+ *PathPartsApi* | [**reorderPathPart**](docs/PathPartsApi.md#reorderpathpartoperation) | **POST** /v1/path-parts/{path_part_id}/reorder | Reorder Path Part Handler
180
181
  *PathPartsApi* | [**setPathPartTags**](docs/PathPartsApi.md#setpathparttags) | **POST** /v1/path-parts/{path_part_id}/tags | Set Path Part Tags Handler
181
182
  *PathPartsApi* | [**transferPathPartOwner**](docs/PathPartsApi.md#transferpathpartowner) | **PUT** /v1/path-parts/{path_part_id}/owner | Transfer Path Part Owner Handler
182
183
  *PublicApi* | [**listPublicSubscriptions**](docs/PublicApi.md#listpublicsubscriptions) | **GET** /public/subscriptions | List Public Subscriptions Handler
@@ -515,7 +516,9 @@ All URIs are relative to *http://localhost:8000*
515
516
  - [ProposedMemoryChunkResponse](docs/ProposedMemoryChunkResponse.md)
516
517
  - [ReasoningPart](docs/ReasoningPart.md)
517
518
  - [ReferenceType](docs/ReferenceType.md)
519
+ - [ReorderPathPartRequest](docs/ReorderPathPartRequest.md)
518
520
  - [RequestPhoneChangeRequest](docs/RequestPhoneChangeRequest.md)
521
+ - [ResolvedRef](docs/ResolvedRef.md)
519
522
  - [ResolvedReferenceInput](docs/ResolvedReferenceInput.md)
520
523
  - [ResolvedReferenceOutput](docs/ResolvedReferenceOutput.md)
521
524
  - [ResponseSendPwResetEmail](docs/ResponseSendPwResetEmail.md)
@@ -670,7 +673,7 @@ and is automatically generated by the
670
673
  [OpenAPI Generator](https://openapi-generator.tech) project:
671
674
 
672
675
  - API version: `0.1.0`
673
- - Package version: `1.142.2`
676
+ - Package version: `1.144.0`
674
677
  - Generator version: `7.21.0`
675
678
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
676
679
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccessCheckResponse, AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, PermissionCapability, SortDirection, SubtreeChunksResponse, TransferOwnerRequest, TransferOwnerResponse } from '../models/index';
13
+ import type { AccessCheckResponse, AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, PermissionCapability, ReorderPathPartRequest, SortDirection, SubtreeChunksResponse, TransferOwnerRequest, TransferOwnerResponse } from '../models/index';
14
14
  export interface AppendPathPartEventRequest {
15
15
  pathPartId: string;
16
16
  appendEventRequest: AppendEventRequest;
@@ -58,6 +58,10 @@ export interface ListPathPartsRequest {
58
58
  updatedAfter?: Date | null;
59
59
  updatedBefore?: Date | null;
60
60
  }
61
+ export interface ReorderPathPartOperationRequest {
62
+ pathPartId: string;
63
+ reorderPathPartRequest: ReorderPathPartRequest;
64
+ }
61
65
  export interface SetPathPartTagsRequest {
62
66
  pathPartId: string;
63
67
  bulkTagRequest: BulkTagRequest;
@@ -302,6 +306,29 @@ export interface PathPartsApiInterface {
302
306
  * List Path Parts Handler
303
307
  */
304
308
  listPathParts(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
309
+ /**
310
+ * Creates request options for reorderPathPart without sending the request
311
+ * @param {string} pathPartId
312
+ * @param {ReorderPathPartRequest} reorderPathPartRequest
313
+ * @throws {RequiredError}
314
+ * @memberof PathPartsApiInterface
315
+ */
316
+ reorderPathPartRequestOpts(requestParameters: ReorderPathPartOperationRequest): Promise<runtime.RequestOpts>;
317
+ /**
318
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
319
+ * @summary Reorder Path Part Handler
320
+ * @param {string} pathPartId
321
+ * @param {ReorderPathPartRequest} reorderPathPartRequest
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ * @memberof PathPartsApiInterface
325
+ */
326
+ reorderPathPartRaw(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartResponse>>;
327
+ /**
328
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
329
+ * Reorder Path Part Handler
330
+ */
331
+ reorderPathPart(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
305
332
  /**
306
333
  * Creates request options for setPathPartTags without sending the request
307
334
  * @param {string} pathPartId
@@ -479,6 +506,20 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
479
506
  * List Path Parts Handler
480
507
  */
481
508
  listPathParts(requestParameters?: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
509
+ /**
510
+ * Creates request options for reorderPathPart without sending the request
511
+ */
512
+ reorderPathPartRequestOpts(requestParameters: ReorderPathPartOperationRequest): Promise<runtime.RequestOpts>;
513
+ /**
514
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
515
+ * Reorder Path Part Handler
516
+ */
517
+ reorderPathPartRaw(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartResponse>>;
518
+ /**
519
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
520
+ * Reorder Path Part Handler
521
+ */
522
+ reorderPathPart(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
482
523
  /**
483
524
  * Creates request options for setPathPartTags without sending the request
484
525
  */
@@ -560,6 +560,59 @@ class PathPartsApi extends runtime.BaseAPI {
560
560
  return yield response.value();
561
561
  });
562
562
  }
563
+ /**
564
+ * Creates request options for reorderPathPart without sending the request
565
+ */
566
+ reorderPathPartRequestOpts(requestParameters) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ if (requestParameters['pathPartId'] == null) {
569
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling reorderPathPart().');
570
+ }
571
+ if (requestParameters['reorderPathPartRequest'] == null) {
572
+ throw new runtime.RequiredError('reorderPathPartRequest', 'Required parameter "reorderPathPartRequest" was null or undefined when calling reorderPathPart().');
573
+ }
574
+ const queryParameters = {};
575
+ const headerParameters = {};
576
+ headerParameters['Content-Type'] = 'application/json';
577
+ if (this.configuration && this.configuration.accessToken) {
578
+ const token = this.configuration.accessToken;
579
+ const tokenString = yield token("bearerAuth", []);
580
+ if (tokenString) {
581
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
582
+ }
583
+ }
584
+ let urlPath = `/v1/path-parts/{path_part_id}/reorder`;
585
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
586
+ return {
587
+ path: urlPath,
588
+ method: 'POST',
589
+ headers: headerParameters,
590
+ query: queryParameters,
591
+ body: (0, index_1.ReorderPathPartRequestToJSON)(requestParameters['reorderPathPartRequest']),
592
+ };
593
+ });
594
+ }
595
+ /**
596
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
597
+ * Reorder Path Part Handler
598
+ */
599
+ reorderPathPartRaw(requestParameters, initOverrides) {
600
+ return __awaiter(this, void 0, void 0, function* () {
601
+ const requestOptions = yield this.reorderPathPartRequestOpts(requestParameters);
602
+ const response = yield this.request(requestOptions, initOverrides);
603
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartResponseFromJSON)(jsonValue));
604
+ });
605
+ }
606
+ /**
607
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
608
+ * Reorder Path Part Handler
609
+ */
610
+ reorderPathPart(requestParameters, initOverrides) {
611
+ return __awaiter(this, void 0, void 0, function* () {
612
+ const response = yield this.reorderPathPartRaw(requestParameters, initOverrides);
613
+ return yield response.value();
614
+ });
615
+ }
563
616
  /**
564
617
  * Creates request options for setPathPartTags without sending the request
565
618
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccessCheckResponse, AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, PermissionCapability, SortDirection, SubtreeChunksResponse, TransferOwnerRequest, TransferOwnerResponse } from '../models/index';
13
+ import type { AccessCheckResponse, AncestryResponse, AppendEventRequest, BulkTagRequest, EventResponse, PaginatedResponseEventResponse, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, PermissionCapability, ReorderPathPartRequest, SortDirection, SubtreeChunksResponse, TransferOwnerRequest, TransferOwnerResponse } from '../models/index';
14
14
  export interface AppendPathPartEventRequest {
15
15
  pathPartId: string;
16
16
  appendEventRequest: AppendEventRequest;
@@ -58,6 +58,10 @@ export interface ListPathPartsRequest {
58
58
  updatedAfter?: Date | null;
59
59
  updatedBefore?: Date | null;
60
60
  }
61
+ export interface ReorderPathPartOperationRequest {
62
+ pathPartId: string;
63
+ reorderPathPartRequest: ReorderPathPartRequest;
64
+ }
61
65
  export interface SetPathPartTagsRequest {
62
66
  pathPartId: string;
63
67
  bulkTagRequest: BulkTagRequest;
@@ -302,6 +306,29 @@ export interface PathPartsApiInterface {
302
306
  * List Path Parts Handler
303
307
  */
304
308
  listPathParts(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
309
+ /**
310
+ * Creates request options for reorderPathPart without sending the request
311
+ * @param {string} pathPartId
312
+ * @param {ReorderPathPartRequest} reorderPathPartRequest
313
+ * @throws {RequiredError}
314
+ * @memberof PathPartsApiInterface
315
+ */
316
+ reorderPathPartRequestOpts(requestParameters: ReorderPathPartOperationRequest): Promise<runtime.RequestOpts>;
317
+ /**
318
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
319
+ * @summary Reorder Path Part Handler
320
+ * @param {string} pathPartId
321
+ * @param {ReorderPathPartRequest} reorderPathPartRequest
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ * @memberof PathPartsApiInterface
325
+ */
326
+ reorderPathPartRaw(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartResponse>>;
327
+ /**
328
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
329
+ * Reorder Path Part Handler
330
+ */
331
+ reorderPathPart(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
305
332
  /**
306
333
  * Creates request options for setPathPartTags without sending the request
307
334
  * @param {string} pathPartId
@@ -479,6 +506,20 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
479
506
  * List Path Parts Handler
480
507
  */
481
508
  listPathParts(requestParameters?: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
509
+ /**
510
+ * Creates request options for reorderPathPart without sending the request
511
+ */
512
+ reorderPathPartRequestOpts(requestParameters: ReorderPathPartOperationRequest): Promise<runtime.RequestOpts>;
513
+ /**
514
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
515
+ * Reorder Path Part Handler
516
+ */
517
+ reorderPathPartRaw(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PathPartResponse>>;
518
+ /**
519
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
520
+ * Reorder Path Part Handler
521
+ */
522
+ reorderPathPart(requestParameters: ReorderPathPartOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
482
523
  /**
483
524
  * Creates request options for setPathPartTags without sending the request
484
525
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AccessCheckResponseFromJSON, AncestryResponseFromJSON, AppendEventRequestToJSON, BulkTagRequestToJSON, EventResponseFromJSON, PaginatedResponseEventResponseFromJSON, PaginatedResponsePathPartResponseFromJSON, PathPartResponseFromJSON, PathPartTagsResponseFromJSON, SubtreeChunksResponseFromJSON, TransferOwnerRequestToJSON, TransferOwnerResponseFromJSON, } from '../models/index';
24
+ import { AccessCheckResponseFromJSON, AncestryResponseFromJSON, AppendEventRequestToJSON, BulkTagRequestToJSON, EventResponseFromJSON, PaginatedResponseEventResponseFromJSON, PaginatedResponsePathPartResponseFromJSON, PathPartResponseFromJSON, PathPartTagsResponseFromJSON, ReorderPathPartRequestToJSON, SubtreeChunksResponseFromJSON, TransferOwnerRequestToJSON, TransferOwnerResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -524,6 +524,59 @@ export class PathPartsApi extends runtime.BaseAPI {
524
524
  return yield response.value();
525
525
  });
526
526
  }
527
+ /**
528
+ * Creates request options for reorderPathPart without sending the request
529
+ */
530
+ reorderPathPartRequestOpts(requestParameters) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ if (requestParameters['pathPartId'] == null) {
533
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling reorderPathPart().');
534
+ }
535
+ if (requestParameters['reorderPathPartRequest'] == null) {
536
+ throw new runtime.RequiredError('reorderPathPartRequest', 'Required parameter "reorderPathPartRequest" was null or undefined when calling reorderPathPart().');
537
+ }
538
+ const queryParameters = {};
539
+ const headerParameters = {};
540
+ headerParameters['Content-Type'] = 'application/json';
541
+ if (this.configuration && this.configuration.accessToken) {
542
+ const token = this.configuration.accessToken;
543
+ const tokenString = yield token("bearerAuth", []);
544
+ if (tokenString) {
545
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
546
+ }
547
+ }
548
+ let urlPath = `/v1/path-parts/{path_part_id}/reorder`;
549
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
550
+ return {
551
+ path: urlPath,
552
+ method: 'POST',
553
+ headers: headerParameters,
554
+ query: queryParameters,
555
+ body: ReorderPathPartRequestToJSON(requestParameters['reorderPathPartRequest']),
556
+ };
557
+ });
558
+ }
559
+ /**
560
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
561
+ * Reorder Path Part Handler
562
+ */
563
+ reorderPathPartRaw(requestParameters, initOverrides) {
564
+ return __awaiter(this, void 0, void 0, function* () {
565
+ const requestOptions = yield this.reorderPathPartRequestOpts(requestParameters);
566
+ const response = yield this.request(requestOptions, initOverrides);
567
+ return new runtime.JSONApiResponse(response, (jsonValue) => PathPartResponseFromJSON(jsonValue));
568
+ });
569
+ }
570
+ /**
571
+ * Reorder a path part within its sibling list. The left-nav order follows the path_part sibling linked list: one per-parent chain shared by everyone in the tenant. Moving is confined to the node\'s current parent; use the folder/document move endpoints to change parents.
572
+ * Reorder Path Part Handler
573
+ */
574
+ reorderPathPart(requestParameters, initOverrides) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ const response = yield this.reorderPathPartRaw(requestParameters, initOverrides);
577
+ return yield response.value();
578
+ });
579
+ }
527
580
  /**
528
581
  * Creates request options for setPathPartTags without sending the request
529
582
  */
@@ -10,12 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { UserInfo } from './UserInfo';
13
+ import type { ResolvedRef } from './ResolvedRef';
13
14
  /**
14
15
  * One event row, anchored to a path_part subject.
15
16
  *
16
17
  * ``kind`` is namespaced ``domain.action`` (e.g. ``workflow.approval``,
17
18
  * ``document.created``). ``payload`` is the domain-specific structured
18
- * JSON associated with the event.
19
+ * JSON associated with the event, stored verbatim and never rewritten —
20
+ * the human-readable resolution lives alongside it in ``references``.
19
21
  * @export
20
22
  * @interface EventResponse
21
23
  */
@@ -64,6 +66,38 @@ export interface EventResponse {
64
66
  * @memberof EventResponse
65
67
  */
66
68
  actor?: UserInfo | null;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof EventResponse
73
+ */
74
+ subjectName?: string | null;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof EventResponse
79
+ */
80
+ subjectPath?: string | null;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof EventResponse
85
+ */
86
+ subjectObjectId?: string | null;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof EventResponse
91
+ */
92
+ subjectPartType?: string | null;
93
+ /**
94
+ *
95
+ * @type {{ [key: string]: ResolvedRef; }}
96
+ * @memberof EventResponse
97
+ */
98
+ references?: {
99
+ [key: string]: ResolvedRef;
100
+ };
67
101
  }
68
102
  export declare const EventResponsePropertyValidationAttributesMap: {
69
103
  [property: string]: {
@@ -11,7 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { mapValues } from '../runtime';
14
15
  import { UserInfoFromJSON, UserInfoToJSON, } from './UserInfo';
16
+ import { ResolvedRefFromJSON, ResolvedRefToJSON, } from './ResolvedRef';
15
17
  export const EventResponsePropertyValidationAttributesMap = {};
16
18
  /**
17
19
  * Check if a given object implements the EventResponse interface.
@@ -46,6 +48,11 @@ export function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
46
48
  'actorUserId': json['actor_user_id'],
47
49
  'payload': json['payload'],
48
50
  'actor': json['actor'] == null ? undefined : UserInfoFromJSON(json['actor']),
51
+ 'subjectName': json['subject_name'] == null ? undefined : json['subject_name'],
52
+ 'subjectPath': json['subject_path'] == null ? undefined : json['subject_path'],
53
+ 'subjectObjectId': json['subject_object_id'] == null ? undefined : json['subject_object_id'],
54
+ 'subjectPartType': json['subject_part_type'] == null ? undefined : json['subject_part_type'],
55
+ 'references': json['references'] == null ? undefined : (mapValues(json['references'], ResolvedRefFromJSON)),
49
56
  };
50
57
  }
51
58
  export function EventResponseToJSON(json) {
@@ -63,5 +70,10 @@ export function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
63
70
  'actor_user_id': value['actorUserId'],
64
71
  'payload': value['payload'],
65
72
  'actor': UserInfoToJSON(value['actor']),
73
+ 'subject_name': value['subjectName'],
74
+ 'subject_path': value['subjectPath'],
75
+ 'subject_object_id': value['subjectObjectId'],
76
+ 'subject_part_type': value['subjectPartType'],
77
+ 'references': value['references'] == null ? undefined : (mapValues(value['references'], ResolvedRefToJSON)),
66
78
  };
67
79
  }
@@ -0,0 +1,53 @@
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
+ * Reorder a path part within its sibling list.
14
+ * @export
15
+ * @interface ReorderPathPartRequest
16
+ */
17
+ export interface ReorderPathPartRequest {
18
+ /**
19
+ * Place this node immediately after the given sibling PathPart id (must share the same parent). Pass the current tail's id to move to the end. Requires move_to_head=false.
20
+ * @type {string}
21
+ * @memberof ReorderPathPartRequest
22
+ */
23
+ prevSiblingPathId?: string | null;
24
+ /**
25
+ * Move this node to the head of its sibling list.
26
+ * @type {boolean}
27
+ * @memberof ReorderPathPartRequest
28
+ */
29
+ moveToHead?: boolean;
30
+ }
31
+ export declare const ReorderPathPartRequestPropertyValidationAttributesMap: {
32
+ [property: string]: {
33
+ maxLength?: number;
34
+ minLength?: number;
35
+ pattern?: string;
36
+ maximum?: number;
37
+ exclusiveMaximum?: boolean;
38
+ minimum?: number;
39
+ exclusiveMinimum?: boolean;
40
+ multipleOf?: number;
41
+ maxItems?: number;
42
+ minItems?: number;
43
+ uniqueItems?: boolean;
44
+ };
45
+ };
46
+ /**
47
+ * Check if a given object implements the ReorderPathPartRequest interface.
48
+ */
49
+ export declare function instanceOfReorderPathPartRequest(value: object): value is ReorderPathPartRequest;
50
+ export declare function ReorderPathPartRequestFromJSON(json: any): ReorderPathPartRequest;
51
+ export declare function ReorderPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReorderPathPartRequest;
52
+ export declare function ReorderPathPartRequestToJSON(json: any): ReorderPathPartRequest;
53
+ export declare function ReorderPathPartRequestToJSONTyped(value?: ReorderPathPartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const ReorderPathPartRequestPropertyValidationAttributesMap = {};
15
+ /**
16
+ * Check if a given object implements the ReorderPathPartRequest interface.
17
+ */
18
+ export function instanceOfReorderPathPartRequest(value) {
19
+ return true;
20
+ }
21
+ export function ReorderPathPartRequestFromJSON(json) {
22
+ return ReorderPathPartRequestFromJSONTyped(json, false);
23
+ }
24
+ export function ReorderPathPartRequestFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
30
+ 'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
31
+ };
32
+ }
33
+ export function ReorderPathPartRequestToJSON(json) {
34
+ return ReorderPathPartRequestToJSONTyped(json, false);
35
+ }
36
+ export function ReorderPathPartRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
42
+ 'move_to_head': value['moveToHead'],
43
+ };
44
+ }
@@ -0,0 +1,79 @@
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
+ * One id resolved to a human-readable, linkable entity.
14
+ *
15
+ * Every UUID that appears in an event (its subject, its actor, and any id
16
+ * inside the payload) resolves to one of these so the frontend can render a
17
+ * name and a link instead of a bare UUID. ``object_id`` is what the frontend
18
+ * routes on: a PDO id for a path_part (never the internal path_part_id), or
19
+ * the user id for a user.
20
+ * @export
21
+ * @interface ResolvedRef
22
+ */
23
+ export interface ResolvedRef {
24
+ /**
25
+ *
26
+ * @type {ResolvedRefEntityTypeEnum}
27
+ * @memberof ResolvedRef
28
+ */
29
+ entityType: ResolvedRefEntityTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ResolvedRef
34
+ */
35
+ objectId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ResolvedRef
40
+ */
41
+ displayName?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ResolvedRef
46
+ */
47
+ partType?: string | null;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const ResolvedRefEntityTypeEnum: {
53
+ readonly PathPart: 'path_part';
54
+ readonly User: 'user';
55
+ };
56
+ export type ResolvedRefEntityTypeEnum = typeof ResolvedRefEntityTypeEnum[keyof typeof ResolvedRefEntityTypeEnum];
57
+ export declare const ResolvedRefPropertyValidationAttributesMap: {
58
+ [property: string]: {
59
+ maxLength?: number;
60
+ minLength?: number;
61
+ pattern?: string;
62
+ maximum?: number;
63
+ exclusiveMaximum?: boolean;
64
+ minimum?: number;
65
+ exclusiveMinimum?: boolean;
66
+ multipleOf?: number;
67
+ maxItems?: number;
68
+ minItems?: number;
69
+ uniqueItems?: boolean;
70
+ };
71
+ };
72
+ /**
73
+ * Check if a given object implements the ResolvedRef interface.
74
+ */
75
+ export declare function instanceOfResolvedRef(value: object): value is ResolvedRef;
76
+ export declare function ResolvedRefFromJSON(json: any): ResolvedRef;
77
+ export declare function ResolvedRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedRef;
78
+ export declare function ResolvedRefToJSON(json: any): ResolvedRef;
79
+ export declare function ResolvedRefToJSONTyped(value?: ResolvedRef | null, ignoreDiscriminator?: boolean): any;