@knowledge-stack/ksapi 1.150.0 → 1.151.1
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 +0 -2
- package/README.md +2 -3
- package/dist/apis/MemoryApi.d.ts +5 -5
- package/dist/apis/MemoryApi.js +1 -1
- package/dist/apis/SystemJobsApi.d.ts +4 -4
- package/dist/apis/SystemJobsApi.js +2 -2
- package/dist/esm/apis/MemoryApi.d.ts +5 -5
- package/dist/esm/apis/MemoryApi.js +2 -2
- package/dist/esm/apis/SystemJobsApi.d.ts +4 -4
- package/dist/esm/apis/SystemJobsApi.js +2 -2
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/MemoryApi.md +2 -2
- package/docs/SystemJobsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/MemoryApi.ts +8 -8
- package/src/apis/SystemJobsApi.ts +4 -4
- package/src/models/index.ts +0 -1
- package/dist/esm/models/ProposedMemoryChunkResponse.d.ts +0 -91
- package/dist/esm/models/ProposedMemoryChunkResponse.js +0 -74
- package/dist/models/ProposedMemoryChunkResponse.d.ts +0 -91
- package/dist/models/ProposedMemoryChunkResponse.js +0 -82
- package/docs/ProposedMemoryChunkResponse.md +0 -48
- package/src/models/ProposedMemoryChunkResponse.ts +0 -163
package/.openapi-generator/FILES
CHANGED
|
@@ -249,7 +249,6 @@ docs/PixelRegion.md
|
|
|
249
249
|
docs/Polygon.md
|
|
250
250
|
docs/PolygonReference.md
|
|
251
251
|
docs/ProposeMemoryChunkRequest.md
|
|
252
|
-
docs/ProposedMemoryChunkResponse.md
|
|
253
252
|
docs/PublicApi.md
|
|
254
253
|
docs/ReasoningPart.md
|
|
255
254
|
docs/ReferenceType.md
|
|
@@ -671,7 +670,6 @@ src/models/PixelRegion.ts
|
|
|
671
670
|
src/models/Polygon.ts
|
|
672
671
|
src/models/PolygonReference.ts
|
|
673
672
|
src/models/ProposeMemoryChunkRequest.ts
|
|
674
|
-
src/models/ProposedMemoryChunkResponse.ts
|
|
675
673
|
src/models/ReasoningPart.ts
|
|
676
674
|
src/models/ReferenceType.ts
|
|
677
675
|
src/models/ReorderPathPartRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.151.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -516,7 +516,6 @@ All URIs are relative to *http://localhost:8000*
|
|
|
516
516
|
- [Polygon](docs/Polygon.md)
|
|
517
517
|
- [PolygonReference](docs/PolygonReference.md)
|
|
518
518
|
- [ProposeMemoryChunkRequest](docs/ProposeMemoryChunkRequest.md)
|
|
519
|
-
- [ProposedMemoryChunkResponse](docs/ProposedMemoryChunkResponse.md)
|
|
520
519
|
- [ReasoningPart](docs/ReasoningPart.md)
|
|
521
520
|
- [ReferenceType](docs/ReferenceType.md)
|
|
522
521
|
- [ReorderPathPartRequest](docs/ReorderPathPartRequest.md)
|
|
@@ -681,7 +680,7 @@ and is automatically generated by the
|
|
|
681
680
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
682
681
|
|
|
683
682
|
- API version: `0.1.0`
|
|
684
|
-
- Package version: `1.
|
|
683
|
+
- Package version: `1.151.1`
|
|
685
684
|
- Generator version: `7.21.0`
|
|
686
685
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
687
686
|
|
package/dist/apis/MemoryApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse,
|
|
13
|
+
import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, PendingMemoryChunkResponse, ProposeMemoryChunkRequest } from '../models/index';
|
|
14
14
|
export interface ApproveMemoryProposalRequest {
|
|
15
15
|
chunkId: string;
|
|
16
16
|
}
|
|
@@ -114,11 +114,11 @@ export interface MemoryApiInterface {
|
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
* @memberof MemoryApiInterface
|
|
116
116
|
*/
|
|
117
|
-
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
117
|
+
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
|
|
118
118
|
/**
|
|
119
119
|
* Propose Memory Chunk Handler
|
|
120
120
|
*/
|
|
121
|
-
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
121
|
+
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
|
|
122
122
|
/**
|
|
123
123
|
* Creates request options for rejectMemoryProposal without sending the request
|
|
124
124
|
* @param {string} chunkId
|
|
@@ -187,11 +187,11 @@ export declare class MemoryApi extends runtime.BaseAPI implements MemoryApiInter
|
|
|
187
187
|
/**
|
|
188
188
|
* Propose Memory Chunk Handler
|
|
189
189
|
*/
|
|
190
|
-
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
190
|
+
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
|
|
191
191
|
/**
|
|
192
192
|
* Propose Memory Chunk Handler
|
|
193
193
|
*/
|
|
194
|
-
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
194
|
+
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
|
|
195
195
|
/**
|
|
196
196
|
* Creates request options for rejectMemoryProposal without sending the request
|
|
197
197
|
*/
|
package/dist/apis/MemoryApi.js
CHANGED
|
@@ -245,7 +245,7 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
245
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
246
|
const requestOptions = yield this.proposeMemoryChunkRequestOpts(requestParameters);
|
|
247
247
|
const response = yield this.request(requestOptions, initOverrides);
|
|
248
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
248
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PendingMemoryChunkResponseFromJSON)(jsonValue));
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
@@ -129,7 +129,7 @@ export interface SystemJobsApiInterface {
|
|
|
129
129
|
*/
|
|
130
130
|
getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
|
|
131
131
|
/**
|
|
132
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
132
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
133
133
|
* @summary Get Zip Ingestion Status Handler
|
|
134
134
|
* @param {string} workflowId
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
@@ -138,7 +138,7 @@ export interface SystemJobsApiInterface {
|
|
|
138
138
|
*/
|
|
139
139
|
getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
|
|
140
140
|
/**
|
|
141
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
141
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
142
142
|
* Get Zip Ingestion Status Handler
|
|
143
143
|
*/
|
|
144
144
|
getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
|
|
@@ -231,12 +231,12 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
|
|
|
231
231
|
*/
|
|
232
232
|
getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
|
|
233
233
|
/**
|
|
234
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
234
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
235
235
|
* Get Zip Ingestion Status Handler
|
|
236
236
|
*/
|
|
237
237
|
getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
|
|
238
238
|
/**
|
|
239
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
239
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
240
240
|
* Get Zip Ingestion Status Handler
|
|
241
241
|
*/
|
|
242
242
|
getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
|
|
@@ -282,7 +282,7 @@ class SystemJobsApi extends runtime.BaseAPI {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
285
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
286
286
|
* Get Zip Ingestion Status Handler
|
|
287
287
|
*/
|
|
288
288
|
getZipIngestionStatusRaw(requestParameters, initOverrides) {
|
|
@@ -293,7 +293,7 @@ class SystemJobsApi extends runtime.BaseAPI {
|
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
296
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
297
297
|
* Get Zip Ingestion Status Handler
|
|
298
298
|
*/
|
|
299
299
|
getZipIngestionStatus(requestParameters, initOverrides) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse,
|
|
13
|
+
import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, PendingMemoryChunkResponse, ProposeMemoryChunkRequest } from '../models/index';
|
|
14
14
|
export interface ApproveMemoryProposalRequest {
|
|
15
15
|
chunkId: string;
|
|
16
16
|
}
|
|
@@ -114,11 +114,11 @@ export interface MemoryApiInterface {
|
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
* @memberof MemoryApiInterface
|
|
116
116
|
*/
|
|
117
|
-
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
117
|
+
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
|
|
118
118
|
/**
|
|
119
119
|
* Propose Memory Chunk Handler
|
|
120
120
|
*/
|
|
121
|
-
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
121
|
+
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
|
|
122
122
|
/**
|
|
123
123
|
* Creates request options for rejectMemoryProposal without sending the request
|
|
124
124
|
* @param {string} chunkId
|
|
@@ -187,11 +187,11 @@ export declare class MemoryApi extends runtime.BaseAPI implements MemoryApiInter
|
|
|
187
187
|
/**
|
|
188
188
|
* Propose Memory Chunk Handler
|
|
189
189
|
*/
|
|
190
|
-
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
190
|
+
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
|
|
191
191
|
/**
|
|
192
192
|
* Propose Memory Chunk Handler
|
|
193
193
|
*/
|
|
194
|
-
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
194
|
+
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
|
|
195
195
|
/**
|
|
196
196
|
* Creates request options for rejectMemoryProposal without sending the request
|
|
197
197
|
*/
|
|
@@ -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 { MemoryBodyResponseFromJSON, MemoryChunkResponseFromJSON, PaginatedResponsePendingMemoryChunkResponseFromJSON,
|
|
24
|
+
import { MemoryBodyResponseFromJSON, MemoryChunkResponseFromJSON, PaginatedResponsePendingMemoryChunkResponseFromJSON, PendingMemoryChunkResponseFromJSON, ProposeMemoryChunkRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -209,7 +209,7 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
210
|
const requestOptions = yield this.proposeMemoryChunkRequestOpts(requestParameters);
|
|
211
211
|
const response = yield this.request(requestOptions, initOverrides);
|
|
212
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PendingMemoryChunkResponseFromJSON(jsonValue));
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -129,7 +129,7 @@ export interface SystemJobsApiInterface {
|
|
|
129
129
|
*/
|
|
130
130
|
getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
|
|
131
131
|
/**
|
|
132
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
132
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
133
133
|
* @summary Get Zip Ingestion Status Handler
|
|
134
134
|
* @param {string} workflowId
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
@@ -138,7 +138,7 @@ export interface SystemJobsApiInterface {
|
|
|
138
138
|
*/
|
|
139
139
|
getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
|
|
140
140
|
/**
|
|
141
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
141
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
142
142
|
* Get Zip Ingestion Status Handler
|
|
143
143
|
*/
|
|
144
144
|
getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
|
|
@@ -231,12 +231,12 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
|
|
|
231
231
|
*/
|
|
232
232
|
getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
|
|
233
233
|
/**
|
|
234
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
234
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
235
235
|
* Get Zip Ingestion Status Handler
|
|
236
236
|
*/
|
|
237
237
|
getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
|
|
238
238
|
/**
|
|
239
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
239
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
240
240
|
* Get Zip Ingestion Status Handler
|
|
241
241
|
*/
|
|
242
242
|
getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
|
|
@@ -246,7 +246,7 @@ export class SystemJobsApi extends runtime.BaseAPI {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
249
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
250
250
|
* Get Zip Ingestion Status Handler
|
|
251
251
|
*/
|
|
252
252
|
getZipIngestionStatusRaw(requestParameters, initOverrides) {
|
|
@@ -257,7 +257,7 @@ export class SystemJobsApi extends runtime.BaseAPI {
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
260
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
261
261
|
* Get Zip Ingestion Status Handler
|
|
262
262
|
*/
|
|
263
263
|
getZipIngestionStatus(requestParameters, initOverrides) {
|
|
@@ -223,7 +223,6 @@ export * from './PixelRegion';
|
|
|
223
223
|
export * from './Polygon';
|
|
224
224
|
export * from './PolygonReference';
|
|
225
225
|
export * from './ProposeMemoryChunkRequest';
|
|
226
|
-
export * from './ProposedMemoryChunkResponse';
|
|
227
226
|
export * from './ReasoningPart';
|
|
228
227
|
export * from './ReferenceType';
|
|
229
228
|
export * from './ReorderPathPartRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -225,7 +225,6 @@ export * from './PixelRegion';
|
|
|
225
225
|
export * from './Polygon';
|
|
226
226
|
export * from './PolygonReference';
|
|
227
227
|
export * from './ProposeMemoryChunkRequest';
|
|
228
|
-
export * from './ProposedMemoryChunkResponse';
|
|
229
228
|
export * from './ReasoningPart';
|
|
230
229
|
export * from './ReferenceType';
|
|
231
230
|
export * from './ReorderPathPartRequest';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -223,7 +223,6 @@ export * from './PixelRegion';
|
|
|
223
223
|
export * from './Polygon';
|
|
224
224
|
export * from './PolygonReference';
|
|
225
225
|
export * from './ProposeMemoryChunkRequest';
|
|
226
|
-
export * from './ProposedMemoryChunkResponse';
|
|
227
226
|
export * from './ReasoningPart';
|
|
228
227
|
export * from './ReferenceType';
|
|
229
228
|
export * from './ReorderPathPartRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -241,7 +241,6 @@ __exportStar(require("./PixelRegion"), exports);
|
|
|
241
241
|
__exportStar(require("./Polygon"), exports);
|
|
242
242
|
__exportStar(require("./PolygonReference"), exports);
|
|
243
243
|
__exportStar(require("./ProposeMemoryChunkRequest"), exports);
|
|
244
|
-
__exportStar(require("./ProposedMemoryChunkResponse"), exports);
|
|
245
244
|
__exportStar(require("./ReasoningPart"), exports);
|
|
246
245
|
__exportStar(require("./ReferenceType"), exports);
|
|
247
246
|
__exportStar(require("./ReorderPathPartRequest"), exports);
|
package/docs/MemoryApi.md
CHANGED
|
@@ -239,7 +239,7 @@ example().catch(console.error);
|
|
|
239
239
|
|
|
240
240
|
## proposeMemoryChunk
|
|
241
241
|
|
|
242
|
-
>
|
|
242
|
+
> PendingMemoryChunkResponse proposeMemoryChunk(proposeMemoryChunkRequest)
|
|
243
243
|
|
|
244
244
|
Propose Memory Chunk Handler
|
|
245
245
|
|
|
@@ -288,7 +288,7 @@ example().catch(console.error);
|
|
|
288
288
|
|
|
289
289
|
### Return type
|
|
290
290
|
|
|
291
|
-
[**
|
|
291
|
+
[**PendingMemoryChunkResponse**](PendingMemoryChunkResponse.md)
|
|
292
292
|
|
|
293
293
|
### Authorization
|
|
294
294
|
|
package/docs/SystemJobsApi.md
CHANGED
|
@@ -319,7 +319,7 @@ example().catch(console.error);
|
|
|
319
319
|
|
|
320
320
|
Get Zip Ingestion Status Handler
|
|
321
321
|
|
|
322
|
-
Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
322
|
+
Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
323
323
|
|
|
324
324
|
### Example
|
|
325
325
|
|
package/package.json
CHANGED
package/src/apis/MemoryApi.ts
CHANGED
|
@@ -21,8 +21,8 @@ import type {
|
|
|
21
21
|
MemoryChunkResponse,
|
|
22
22
|
MemoryScope,
|
|
23
23
|
PaginatedResponsePendingMemoryChunkResponse,
|
|
24
|
+
PendingMemoryChunkResponse,
|
|
24
25
|
ProposeMemoryChunkRequest,
|
|
25
|
-
ProposedMemoryChunkResponse,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
import {
|
|
28
28
|
ErrorResponseFromJSON,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
MemoryScopeToJSON,
|
|
38
38
|
PaginatedResponsePendingMemoryChunkResponseFromJSON,
|
|
39
39
|
PaginatedResponsePendingMemoryChunkResponseToJSON,
|
|
40
|
+
PendingMemoryChunkResponseFromJSON,
|
|
41
|
+
PendingMemoryChunkResponseToJSON,
|
|
40
42
|
ProposeMemoryChunkRequestFromJSON,
|
|
41
43
|
ProposeMemoryChunkRequestToJSON,
|
|
42
|
-
ProposedMemoryChunkResponseFromJSON,
|
|
43
|
-
ProposedMemoryChunkResponseToJSON,
|
|
44
44
|
} from '../models/index';
|
|
45
45
|
|
|
46
46
|
export interface ApproveMemoryProposalRequest {
|
|
@@ -161,12 +161,12 @@ export interface MemoryApiInterface {
|
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
* @memberof MemoryApiInterface
|
|
163
163
|
*/
|
|
164
|
-
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
164
|
+
proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Propose Memory Chunk Handler
|
|
168
168
|
*/
|
|
169
|
-
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
169
|
+
proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Creates request options for rejectMemoryProposal without sending the request
|
|
@@ -411,17 +411,17 @@ export class MemoryApi extends runtime.BaseAPI implements MemoryApiInterface {
|
|
|
411
411
|
/**
|
|
412
412
|
* Propose Memory Chunk Handler
|
|
413
413
|
*/
|
|
414
|
-
async proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
414
|
+
async proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>> {
|
|
415
415
|
const requestOptions = await this.proposeMemoryChunkRequestOpts(requestParameters);
|
|
416
416
|
const response = await this.request(requestOptions, initOverrides);
|
|
417
417
|
|
|
418
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PendingMemoryChunkResponseFromJSON(jsonValue));
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Propose Memory Chunk Handler
|
|
423
423
|
*/
|
|
424
|
-
async proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
424
|
+
async proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse> {
|
|
425
425
|
const response = await this.proposeMemoryChunkRaw(requestParameters, initOverrides);
|
|
426
426
|
return await response.value();
|
|
427
427
|
}
|
|
@@ -180,7 +180,7 @@ export interface SystemJobsApiInterface {
|
|
|
180
180
|
getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
183
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
184
184
|
* @summary Get Zip Ingestion Status Handler
|
|
185
185
|
* @param {string} workflowId
|
|
186
186
|
* @param {*} [options] Override http request option.
|
|
@@ -190,7 +190,7 @@ export interface SystemJobsApiInterface {
|
|
|
190
190
|
getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
193
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
194
194
|
* Get Zip Ingestion Status Handler
|
|
195
195
|
*/
|
|
196
196
|
getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
|
|
@@ -484,7 +484,7 @@ export class SystemJobsApi extends runtime.BaseAPI implements SystemJobsApiInter
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
487
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
488
488
|
* Get Zip Ingestion Status Handler
|
|
489
489
|
*/
|
|
490
490
|
async getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>> {
|
|
@@ -495,7 +495,7 @@ export class SystemJobsApi extends runtime.BaseAPI implements SystemJobsApiInter
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this
|
|
498
|
+
* Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
|
|
499
499
|
* Get Zip Ingestion Status Handler
|
|
500
500
|
*/
|
|
501
501
|
async getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse> {
|
package/src/models/index.ts
CHANGED
|
@@ -225,7 +225,6 @@ export * from './PixelRegion';
|
|
|
225
225
|
export * from './Polygon';
|
|
226
226
|
export * from './PolygonReference';
|
|
227
227
|
export * from './ProposeMemoryChunkRequest';
|
|
228
|
-
export * from './ProposedMemoryChunkResponse';
|
|
229
228
|
export * from './ReasoningPart';
|
|
230
229
|
export * from './ReferenceType';
|
|
231
230
|
export * from './ReorderPathPartRequest';
|
|
@@ -1,91 +0,0 @@
|
|
|
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 { MemoryScope } from './MemoryScope';
|
|
13
|
-
import type { MemoryKind } from './MemoryKind';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ProposedMemoryChunkResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface ProposedMemoryChunkResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ProposedMemoryChunkResponse
|
|
24
|
-
*/
|
|
25
|
-
chunkId: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {MemoryScope}
|
|
29
|
-
* @memberof ProposedMemoryChunkResponse
|
|
30
|
-
*/
|
|
31
|
-
scope: MemoryScope;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ProposedMemoryChunkResponse
|
|
36
|
-
*/
|
|
37
|
-
ownerPathPartId: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {MemoryKind}
|
|
41
|
-
* @memberof ProposedMemoryChunkResponse
|
|
42
|
-
*/
|
|
43
|
-
kind: MemoryKind;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof ProposedMemoryChunkResponse
|
|
48
|
-
*/
|
|
49
|
-
rationale: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ProposedMemoryChunkResponse
|
|
54
|
-
*/
|
|
55
|
-
body: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ProposedMemoryChunkResponse
|
|
60
|
-
*/
|
|
61
|
-
proposerTenantUserId: string;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof ProposedMemoryChunkResponse
|
|
66
|
-
*/
|
|
67
|
-
runId: string | null;
|
|
68
|
-
}
|
|
69
|
-
export declare const ProposedMemoryChunkResponsePropertyValidationAttributesMap: {
|
|
70
|
-
[property: string]: {
|
|
71
|
-
maxLength?: number;
|
|
72
|
-
minLength?: number;
|
|
73
|
-
pattern?: string;
|
|
74
|
-
maximum?: number;
|
|
75
|
-
exclusiveMaximum?: boolean;
|
|
76
|
-
minimum?: number;
|
|
77
|
-
exclusiveMinimum?: boolean;
|
|
78
|
-
multipleOf?: number;
|
|
79
|
-
maxItems?: number;
|
|
80
|
-
minItems?: number;
|
|
81
|
-
uniqueItems?: boolean;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the ProposedMemoryChunkResponse interface.
|
|
86
|
-
*/
|
|
87
|
-
export declare function instanceOfProposedMemoryChunkResponse(value: object): value is ProposedMemoryChunkResponse;
|
|
88
|
-
export declare function ProposedMemoryChunkResponseFromJSON(json: any): ProposedMemoryChunkResponse;
|
|
89
|
-
export declare function ProposedMemoryChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProposedMemoryChunkResponse;
|
|
90
|
-
export declare function ProposedMemoryChunkResponseToJSON(json: any): ProposedMemoryChunkResponse;
|
|
91
|
-
export declare function ProposedMemoryChunkResponseToJSONTyped(value?: ProposedMemoryChunkResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
import { MemoryScopeFromJSON, MemoryScopeToJSON, } from './MemoryScope';
|
|
15
|
-
import { MemoryKindFromJSON, MemoryKindToJSON, } from './MemoryKind';
|
|
16
|
-
export const ProposedMemoryChunkResponsePropertyValidationAttributesMap = {};
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ProposedMemoryChunkResponse interface.
|
|
19
|
-
*/
|
|
20
|
-
export function instanceOfProposedMemoryChunkResponse(value) {
|
|
21
|
-
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('scope' in value) || value['scope'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('ownerPathPartId' in value) || value['ownerPathPartId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('rationale' in value) || value['rationale'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('body' in value) || value['body'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('proposerTenantUserId' in value) || value['proposerTenantUserId'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('runId' in value) || value['runId'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
export function ProposedMemoryChunkResponseFromJSON(json) {
|
|
40
|
-
return ProposedMemoryChunkResponseFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
export function ProposedMemoryChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'chunkId': json['chunk_id'],
|
|
48
|
-
'scope': MemoryScopeFromJSON(json['scope']),
|
|
49
|
-
'ownerPathPartId': json['owner_path_part_id'],
|
|
50
|
-
'kind': MemoryKindFromJSON(json['kind']),
|
|
51
|
-
'rationale': json['rationale'],
|
|
52
|
-
'body': json['body'],
|
|
53
|
-
'proposerTenantUserId': json['proposer_tenant_user_id'],
|
|
54
|
-
'runId': json['run_id'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export function ProposedMemoryChunkResponseToJSON(json) {
|
|
58
|
-
return ProposedMemoryChunkResponseToJSONTyped(json, false);
|
|
59
|
-
}
|
|
60
|
-
export function ProposedMemoryChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
-
if (value == null) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
'chunk_id': value['chunkId'],
|
|
66
|
-
'scope': MemoryScopeToJSON(value['scope']),
|
|
67
|
-
'owner_path_part_id': value['ownerPathPartId'],
|
|
68
|
-
'kind': MemoryKindToJSON(value['kind']),
|
|
69
|
-
'rationale': value['rationale'],
|
|
70
|
-
'body': value['body'],
|
|
71
|
-
'proposer_tenant_user_id': value['proposerTenantUserId'],
|
|
72
|
-
'run_id': value['runId'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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 { MemoryScope } from './MemoryScope';
|
|
13
|
-
import type { MemoryKind } from './MemoryKind';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ProposedMemoryChunkResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface ProposedMemoryChunkResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ProposedMemoryChunkResponse
|
|
24
|
-
*/
|
|
25
|
-
chunkId: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {MemoryScope}
|
|
29
|
-
* @memberof ProposedMemoryChunkResponse
|
|
30
|
-
*/
|
|
31
|
-
scope: MemoryScope;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ProposedMemoryChunkResponse
|
|
36
|
-
*/
|
|
37
|
-
ownerPathPartId: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {MemoryKind}
|
|
41
|
-
* @memberof ProposedMemoryChunkResponse
|
|
42
|
-
*/
|
|
43
|
-
kind: MemoryKind;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof ProposedMemoryChunkResponse
|
|
48
|
-
*/
|
|
49
|
-
rationale: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ProposedMemoryChunkResponse
|
|
54
|
-
*/
|
|
55
|
-
body: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ProposedMemoryChunkResponse
|
|
60
|
-
*/
|
|
61
|
-
proposerTenantUserId: string;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof ProposedMemoryChunkResponse
|
|
66
|
-
*/
|
|
67
|
-
runId: string | null;
|
|
68
|
-
}
|
|
69
|
-
export declare const ProposedMemoryChunkResponsePropertyValidationAttributesMap: {
|
|
70
|
-
[property: string]: {
|
|
71
|
-
maxLength?: number;
|
|
72
|
-
minLength?: number;
|
|
73
|
-
pattern?: string;
|
|
74
|
-
maximum?: number;
|
|
75
|
-
exclusiveMaximum?: boolean;
|
|
76
|
-
minimum?: number;
|
|
77
|
-
exclusiveMinimum?: boolean;
|
|
78
|
-
multipleOf?: number;
|
|
79
|
-
maxItems?: number;
|
|
80
|
-
minItems?: number;
|
|
81
|
-
uniqueItems?: boolean;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the ProposedMemoryChunkResponse interface.
|
|
86
|
-
*/
|
|
87
|
-
export declare function instanceOfProposedMemoryChunkResponse(value: object): value is ProposedMemoryChunkResponse;
|
|
88
|
-
export declare function ProposedMemoryChunkResponseFromJSON(json: any): ProposedMemoryChunkResponse;
|
|
89
|
-
export declare function ProposedMemoryChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProposedMemoryChunkResponse;
|
|
90
|
-
export declare function ProposedMemoryChunkResponseToJSON(json: any): ProposedMemoryChunkResponse;
|
|
91
|
-
export declare function ProposedMemoryChunkResponseToJSONTyped(value?: ProposedMemoryChunkResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,82 +0,0 @@
|
|
|
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.ProposedMemoryChunkResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
-
exports.instanceOfProposedMemoryChunkResponse = instanceOfProposedMemoryChunkResponse;
|
|
18
|
-
exports.ProposedMemoryChunkResponseFromJSON = ProposedMemoryChunkResponseFromJSON;
|
|
19
|
-
exports.ProposedMemoryChunkResponseFromJSONTyped = ProposedMemoryChunkResponseFromJSONTyped;
|
|
20
|
-
exports.ProposedMemoryChunkResponseToJSON = ProposedMemoryChunkResponseToJSON;
|
|
21
|
-
exports.ProposedMemoryChunkResponseToJSONTyped = ProposedMemoryChunkResponseToJSONTyped;
|
|
22
|
-
const MemoryScope_1 = require("./MemoryScope");
|
|
23
|
-
const MemoryKind_1 = require("./MemoryKind");
|
|
24
|
-
exports.ProposedMemoryChunkResponsePropertyValidationAttributesMap = {};
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ProposedMemoryChunkResponse interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfProposedMemoryChunkResponse(value) {
|
|
29
|
-
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('scope' in value) || value['scope'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('ownerPathPartId' in value) || value['ownerPathPartId'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('rationale' in value) || value['rationale'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('body' in value) || value['body'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('proposerTenantUserId' in value) || value['proposerTenantUserId'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('runId' in value) || value['runId'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
function ProposedMemoryChunkResponseFromJSON(json) {
|
|
48
|
-
return ProposedMemoryChunkResponseFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function ProposedMemoryChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'chunkId': json['chunk_id'],
|
|
56
|
-
'scope': (0, MemoryScope_1.MemoryScopeFromJSON)(json['scope']),
|
|
57
|
-
'ownerPathPartId': json['owner_path_part_id'],
|
|
58
|
-
'kind': (0, MemoryKind_1.MemoryKindFromJSON)(json['kind']),
|
|
59
|
-
'rationale': json['rationale'],
|
|
60
|
-
'body': json['body'],
|
|
61
|
-
'proposerTenantUserId': json['proposer_tenant_user_id'],
|
|
62
|
-
'runId': json['run_id'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function ProposedMemoryChunkResponseToJSON(json) {
|
|
66
|
-
return ProposedMemoryChunkResponseToJSONTyped(json, false);
|
|
67
|
-
}
|
|
68
|
-
function ProposedMemoryChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
-
if (value == null) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
'chunk_id': value['chunkId'],
|
|
74
|
-
'scope': (0, MemoryScope_1.MemoryScopeToJSON)(value['scope']),
|
|
75
|
-
'owner_path_part_id': value['ownerPathPartId'],
|
|
76
|
-
'kind': (0, MemoryKind_1.MemoryKindToJSON)(value['kind']),
|
|
77
|
-
'rationale': value['rationale'],
|
|
78
|
-
'body': value['body'],
|
|
79
|
-
'proposer_tenant_user_id': value['proposerTenantUserId'],
|
|
80
|
-
'run_id': value['runId'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProposedMemoryChunkResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`chunkId` | string
|
|
10
|
-
`scope` | [MemoryScope](MemoryScope.md)
|
|
11
|
-
`ownerPathPartId` | string
|
|
12
|
-
`kind` | [MemoryKind](MemoryKind.md)
|
|
13
|
-
`rationale` | string
|
|
14
|
-
`body` | string
|
|
15
|
-
`proposerTenantUserId` | string
|
|
16
|
-
`runId` | string
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { ProposedMemoryChunkResponse } from '@knowledge-stack/ksapi'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"chunkId": null,
|
|
26
|
-
"scope": null,
|
|
27
|
-
"ownerPathPartId": null,
|
|
28
|
-
"kind": null,
|
|
29
|
-
"rationale": null,
|
|
30
|
-
"body": null,
|
|
31
|
-
"proposerTenantUserId": null,
|
|
32
|
-
"runId": null,
|
|
33
|
-
} satisfies ProposedMemoryChunkResponse
|
|
34
|
-
|
|
35
|
-
console.log(example)
|
|
36
|
-
|
|
37
|
-
// Convert the instance to a JSON string
|
|
38
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
-
console.log(exampleJSON)
|
|
40
|
-
|
|
41
|
-
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProposedMemoryChunkResponse
|
|
43
|
-
console.log(exampleParsed)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,163 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { MemoryScope } from './MemoryScope';
|
|
17
|
-
import {
|
|
18
|
-
MemoryScopeFromJSON,
|
|
19
|
-
MemoryScopeFromJSONTyped,
|
|
20
|
-
MemoryScopeToJSON,
|
|
21
|
-
MemoryScopeToJSONTyped,
|
|
22
|
-
} from './MemoryScope';
|
|
23
|
-
import type { MemoryKind } from './MemoryKind';
|
|
24
|
-
import {
|
|
25
|
-
MemoryKindFromJSON,
|
|
26
|
-
MemoryKindFromJSONTyped,
|
|
27
|
-
MemoryKindToJSON,
|
|
28
|
-
MemoryKindToJSONTyped,
|
|
29
|
-
} from './MemoryKind';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ProposedMemoryChunkResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface ProposedMemoryChunkResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof ProposedMemoryChunkResponse
|
|
41
|
-
*/
|
|
42
|
-
chunkId: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {MemoryScope}
|
|
46
|
-
* @memberof ProposedMemoryChunkResponse
|
|
47
|
-
*/
|
|
48
|
-
scope: MemoryScope;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof ProposedMemoryChunkResponse
|
|
53
|
-
*/
|
|
54
|
-
ownerPathPartId: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {MemoryKind}
|
|
58
|
-
* @memberof ProposedMemoryChunkResponse
|
|
59
|
-
*/
|
|
60
|
-
kind: MemoryKind;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof ProposedMemoryChunkResponse
|
|
65
|
-
*/
|
|
66
|
-
rationale: string;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof ProposedMemoryChunkResponse
|
|
71
|
-
*/
|
|
72
|
-
body: string;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof ProposedMemoryChunkResponse
|
|
77
|
-
*/
|
|
78
|
-
proposerTenantUserId: string;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof ProposedMemoryChunkResponse
|
|
83
|
-
*/
|
|
84
|
-
runId: string | null;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export const ProposedMemoryChunkResponsePropertyValidationAttributesMap: {
|
|
89
|
-
[property: string]: {
|
|
90
|
-
maxLength?: number,
|
|
91
|
-
minLength?: number,
|
|
92
|
-
pattern?: string,
|
|
93
|
-
maximum?: number,
|
|
94
|
-
exclusiveMaximum?: boolean,
|
|
95
|
-
minimum?: number,
|
|
96
|
-
exclusiveMinimum?: boolean,
|
|
97
|
-
multipleOf?: number,
|
|
98
|
-
maxItems?: number,
|
|
99
|
-
minItems?: number,
|
|
100
|
-
uniqueItems?: boolean
|
|
101
|
-
}
|
|
102
|
-
} = {
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Check if a given object implements the ProposedMemoryChunkResponse interface.
|
|
108
|
-
*/
|
|
109
|
-
export function instanceOfProposedMemoryChunkResponse(value: object): value is ProposedMemoryChunkResponse {
|
|
110
|
-
if (!('chunkId' in value) || value['chunkId'] === undefined) return false;
|
|
111
|
-
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
112
|
-
if (!('ownerPathPartId' in value) || value['ownerPathPartId'] === undefined) return false;
|
|
113
|
-
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
114
|
-
if (!('rationale' in value) || value['rationale'] === undefined) return false;
|
|
115
|
-
if (!('body' in value) || value['body'] === undefined) return false;
|
|
116
|
-
if (!('proposerTenantUserId' in value) || value['proposerTenantUserId'] === undefined) return false;
|
|
117
|
-
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function ProposedMemoryChunkResponseFromJSON(json: any): ProposedMemoryChunkResponse {
|
|
122
|
-
return ProposedMemoryChunkResponseFromJSONTyped(json, false);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function ProposedMemoryChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProposedMemoryChunkResponse {
|
|
126
|
-
if (json == null) {
|
|
127
|
-
return json;
|
|
128
|
-
}
|
|
129
|
-
return {
|
|
130
|
-
|
|
131
|
-
'chunkId': json['chunk_id'],
|
|
132
|
-
'scope': MemoryScopeFromJSON(json['scope']),
|
|
133
|
-
'ownerPathPartId': json['owner_path_part_id'],
|
|
134
|
-
'kind': MemoryKindFromJSON(json['kind']),
|
|
135
|
-
'rationale': json['rationale'],
|
|
136
|
-
'body': json['body'],
|
|
137
|
-
'proposerTenantUserId': json['proposer_tenant_user_id'],
|
|
138
|
-
'runId': json['run_id'],
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function ProposedMemoryChunkResponseToJSON(json: any): ProposedMemoryChunkResponse {
|
|
143
|
-
return ProposedMemoryChunkResponseToJSONTyped(json, false);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export function ProposedMemoryChunkResponseToJSONTyped(value?: ProposedMemoryChunkResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
-
if (value == null) {
|
|
148
|
-
return value;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return {
|
|
152
|
-
|
|
153
|
-
'chunk_id': value['chunkId'],
|
|
154
|
-
'scope': MemoryScopeToJSON(value['scope']),
|
|
155
|
-
'owner_path_part_id': value['ownerPathPartId'],
|
|
156
|
-
'kind': MemoryKindToJSON(value['kind']),
|
|
157
|
-
'rationale': value['rationale'],
|
|
158
|
-
'body': value['body'],
|
|
159
|
-
'proposer_tenant_user_id': value['proposerTenantUserId'],
|
|
160
|
-
'run_id': value['runId'],
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|