@knowledge-stack/ksapi 3.16.2 → 3.17.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 +26 -4
- package/README.md +23 -4
- package/dist/apis/MemoryApi.d.ts +5 -5
- package/dist/apis/MemoryApi.js +1 -1
- package/dist/apis/WorkflowMemoryApi.d.ts +17 -17
- package/dist/apis/WorkflowMemoryApi.js +4 -4
- package/dist/apis/WorkflowRepositoryApi.d.ts +419 -0
- package/dist/apis/WorkflowRepositoryApi.js +595 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/MemoryApi.d.ts +5 -5
- package/dist/esm/apis/MemoryApi.js +2 -2
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +17 -17
- package/dist/esm/apis/WorkflowMemoryApi.js +5 -5
- package/dist/esm/apis/WorkflowRepositoryApi.d.ts +419 -0
- package/dist/esm/apis/WorkflowRepositoryApi.js +558 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ErrorResponse.d.ts +7 -0
- package/dist/esm/models/ErrorResponse.js +7 -0
- package/dist/esm/models/{MemoryChunkResponse.d.ts → MemoryEntryResponse.d.ts} +12 -12
- package/dist/esm/models/{MemoryChunkResponse.js → MemoryEntryResponse.js} +9 -9
- package/dist/esm/models/{PaginatedResponseMemoryChunkResponse.d.ts → PaginatedResponseMemoryEntryResponse.d.ts} +16 -16
- package/dist/esm/models/{PaginatedResponseMemoryChunkResponse.js → PaginatedResponseMemoryEntryResponse.js} +12 -12
- package/dist/esm/models/PaginatedResponseRepoVersionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseRepoVersionResponse.js +70 -0
- package/dist/esm/models/RecordRepoSaveSkipRequest.d.ts +60 -0
- package/dist/esm/models/RecordRepoSaveSkipRequest.js +55 -0
- package/dist/esm/models/RepoBranchResponse.d.ts +126 -0
- package/dist/esm/models/RepoBranchResponse.js +95 -0
- package/dist/esm/models/RepoCommitSummary.d.ts +71 -0
- package/dist/esm/models/RepoCommitSummary.js +60 -0
- package/dist/esm/models/RepoSaveSkipReason.d.ts +36 -0
- package/dist/esm/models/RepoSaveSkipReason.js +54 -0
- package/dist/esm/models/RepoSnapshot.d.ts +59 -0
- package/dist/esm/models/RepoSnapshot.js +50 -0
- package/dist/esm/models/RepoTreeEntry.d.ts +59 -0
- package/dist/esm/models/RepoTreeEntry.js +52 -0
- package/dist/esm/models/RepoTreeResponse.d.ts +54 -0
- package/dist/esm/models/RepoTreeResponse.js +49 -0
- package/dist/esm/models/RepoVersionResponse.d.ts +95 -0
- package/dist/esm/models/RepoVersionResponse.js +74 -0
- package/dist/esm/models/WorkflowRepoResponse.d.ts +102 -0
- package/dist/esm/models/WorkflowRepoResponse.js +81 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +7 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +3 -0
- package/dist/esm/models/index.d.ts +12 -2
- package/dist/esm/models/index.js +12 -2
- package/dist/models/ErrorResponse.d.ts +7 -0
- package/dist/models/ErrorResponse.js +7 -0
- package/dist/models/{MemoryChunkResponse.d.ts → MemoryEntryResponse.d.ts} +12 -12
- package/dist/models/{MemoryChunkResponse.js → MemoryEntryResponse.js} +15 -15
- package/dist/models/{PaginatedResponseMemoryChunkResponse.d.ts → PaginatedResponseMemoryEntryResponse.d.ts} +16 -16
- package/dist/models/{PaginatedResponseMemoryChunkResponse.js → PaginatedResponseMemoryEntryResponse.js} +18 -18
- package/dist/models/PaginatedResponseRepoVersionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseRepoVersionResponse.js +78 -0
- package/dist/models/RecordRepoSaveSkipRequest.d.ts +60 -0
- package/dist/models/RecordRepoSaveSkipRequest.js +63 -0
- package/dist/models/RepoBranchResponse.d.ts +126 -0
- package/dist/models/RepoBranchResponse.js +103 -0
- package/dist/models/RepoCommitSummary.d.ts +71 -0
- package/dist/models/RepoCommitSummary.js +68 -0
- package/dist/models/RepoSaveSkipReason.d.ts +36 -0
- package/dist/models/RepoSaveSkipReason.js +62 -0
- package/dist/models/RepoSnapshot.d.ts +59 -0
- package/dist/models/RepoSnapshot.js +58 -0
- package/dist/models/RepoTreeEntry.d.ts +59 -0
- package/dist/models/RepoTreeEntry.js +60 -0
- package/dist/models/RepoTreeResponse.d.ts +54 -0
- package/dist/models/RepoTreeResponse.js +57 -0
- package/dist/models/RepoVersionResponse.d.ts +95 -0
- package/dist/models/RepoVersionResponse.js +82 -0
- package/dist/models/WorkflowRepoResponse.d.ts +102 -0
- package/dist/models/WorkflowRepoResponse.js +89 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +7 -0
- package/dist/models/WorkflowRunSnapshot.js +3 -0
- package/dist/models/index.d.ts +12 -2
- package/dist/models/index.js +12 -2
- package/docs/MemoryApi.md +2 -2
- package/docs/{MemoryChunkResponse.md → MemoryEntryResponse.md} +4 -4
- package/docs/{PaginatedResponseMemoryChunkResponse.md → PaginatedResponseMemoryEntryResponse.md} +5 -5
- package/docs/PaginatedResponseRepoVersionResponse.md +40 -0
- package/docs/RecordRepoSaveSkipRequest.md +38 -0
- package/docs/RepoBranchResponse.md +61 -0
- package/docs/RepoCommitSummary.md +42 -0
- package/docs/RepoSaveSkipReason.md +33 -0
- package/docs/RepoSnapshot.md +39 -0
- package/docs/RepoTreeEntry.md +38 -0
- package/docs/RepoTreeResponse.md +36 -0
- package/docs/RepoVersionResponse.md +51 -0
- package/docs/WorkflowMemoryApi.md +8 -8
- package/docs/WorkflowRepoResponse.md +53 -0
- package/docs/WorkflowRepositoryApi.md +745 -0
- package/docs/WorkflowRunSnapshot.md +2 -0
- package/package.json +1 -1
- package/src/apis/MemoryApi.ts +8 -8
- package/src/apis/WorkflowMemoryApi.ts +26 -26
- package/src/apis/WorkflowRepositoryApi.ts +1002 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ErrorResponse.ts +7 -0
- package/src/models/{MemoryChunkResponse.ts → MemoryEntryResponse.ts} +14 -14
- package/src/models/{PaginatedResponseMemoryChunkResponse.ts → PaginatedResponseMemoryEntryResponse.ts} +25 -25
- package/src/models/PaginatedResponseRepoVersionResponse.ts +130 -0
- package/src/models/RecordRepoSaveSkipRequest.ts +113 -0
- package/src/models/RepoBranchResponse.ts +207 -0
- package/src/models/RepoCommitSummary.ts +119 -0
- package/src/models/RepoSaveSkipReason.ts +64 -0
- package/src/models/RepoSnapshot.ts +100 -0
- package/src/models/RepoTreeEntry.ts +101 -0
- package/src/models/RepoTreeResponse.ts +100 -0
- package/src/models/RepoVersionResponse.ts +154 -0
- package/src/models/WorkflowRepoResponse.ts +172 -0
- package/src/models/WorkflowRunSnapshot.ts +15 -0
- package/src/models/index.ts +12 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# RecordRepoSaveSkipRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`runId` | string
|
|
10
|
+
`reason` | [RepoSaveSkipReason](RepoSaveSkipReason.md)
|
|
11
|
+
`detail` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { RecordRepoSaveSkipRequest } from '@knowledge-stack/ksapi'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"runId": null,
|
|
21
|
+
"reason": null,
|
|
22
|
+
"detail": null,
|
|
23
|
+
} satisfies RecordRepoSaveSkipRequest
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as RecordRepoSaveSkipRequest
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoBranchResponse
|
|
3
|
+
|
|
4
|
+
A retained run branch, independently of whether it reached main.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`versionId` | string
|
|
11
|
+
`headSha` | string
|
|
12
|
+
`previousHeadSha` | string
|
|
13
|
+
`commitsAdded` | number
|
|
14
|
+
`runId` | string
|
|
15
|
+
`savedByUserId` | string
|
|
16
|
+
`savedAt` | Date
|
|
17
|
+
`instructionVersionId` | string
|
|
18
|
+
`candidateVersionId` | string
|
|
19
|
+
`branch` | string
|
|
20
|
+
`baseVersionId` | string
|
|
21
|
+
`integratedVersionId` | string
|
|
22
|
+
`integratedHeadSha` | string
|
|
23
|
+
`files` | [Array<RepoTreeEntry>](RepoTreeEntry.md)
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { RepoBranchResponse } from '@knowledge-stack/ksapi'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"versionId": null,
|
|
33
|
+
"headSha": null,
|
|
34
|
+
"previousHeadSha": null,
|
|
35
|
+
"commitsAdded": null,
|
|
36
|
+
"runId": null,
|
|
37
|
+
"savedByUserId": null,
|
|
38
|
+
"savedAt": null,
|
|
39
|
+
"instructionVersionId": null,
|
|
40
|
+
"candidateVersionId": null,
|
|
41
|
+
"branch": null,
|
|
42
|
+
"baseVersionId": null,
|
|
43
|
+
"integratedVersionId": null,
|
|
44
|
+
"integratedHeadSha": null,
|
|
45
|
+
"files": null,
|
|
46
|
+
} satisfies RepoBranchResponse
|
|
47
|
+
|
|
48
|
+
console.log(example)
|
|
49
|
+
|
|
50
|
+
// Convert the instance to a JSON string
|
|
51
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
52
|
+
console.log(exampleJSON)
|
|
53
|
+
|
|
54
|
+
// Parse the JSON string back to an object
|
|
55
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoBranchResponse
|
|
56
|
+
console.log(exampleParsed)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
60
|
+
|
|
61
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoCommitSummary
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`sha` | string
|
|
10
|
+
`subject` | string
|
|
11
|
+
`authoredAt` | Date
|
|
12
|
+
`runId` | string
|
|
13
|
+
`savedByUserId` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { RepoCommitSummary } from '@knowledge-stack/ksapi'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"sha": null,
|
|
23
|
+
"subject": null,
|
|
24
|
+
"authoredAt": null,
|
|
25
|
+
"runId": null,
|
|
26
|
+
"savedByUserId": null,
|
|
27
|
+
} satisfies RepoCommitSummary
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoCommitSummary
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoSaveSkipReason
|
|
3
|
+
|
|
4
|
+
Why retention or integration could not complete. ``conflict``: integration failed; a retained branch remains recoverable. ``history_rewrite``: the run rewrote saved history. ``no_write``: the turn\'s user cannot write the workflow. ``uncommitted``: changes were never committed to the assigned branch. ``rejected``: the platform refused the bundle (too large, unsafe paths). ``failed``: the checkout or the save itself failed.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { RepoSaveSkipReason } from '@knowledge-stack/ksapi'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies RepoSaveSkipReason
|
|
19
|
+
|
|
20
|
+
console.log(example)
|
|
21
|
+
|
|
22
|
+
// Convert the instance to a JSON string
|
|
23
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
24
|
+
console.log(exampleJSON)
|
|
25
|
+
|
|
26
|
+
// Parse the JSON string back to an object
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoSaveSkipReason
|
|
28
|
+
console.log(exampleParsed)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoSnapshot
|
|
3
|
+
|
|
4
|
+
The workflow repository version a run was started against.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`commit` | string
|
|
11
|
+
`versionId` | string
|
|
12
|
+
`instructionVersionId` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { RepoSnapshot } from '@knowledge-stack/ksapi'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"commit": null,
|
|
22
|
+
"versionId": null,
|
|
23
|
+
"instructionVersionId": null,
|
|
24
|
+
} satisfies RepoSnapshot
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoSnapshot
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoTreeEntry
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`path` | string
|
|
10
|
+
`size` | number
|
|
11
|
+
`isBinary` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { RepoTreeEntry } from '@knowledge-stack/ksapi'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"path": null,
|
|
21
|
+
"size": null,
|
|
22
|
+
"isBinary": null,
|
|
23
|
+
} satisfies RepoTreeEntry
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoTreeEntry
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoTreeResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`commit` | string
|
|
10
|
+
`entries` | [Array<RepoTreeEntry>](RepoTreeEntry.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RepoTreeResponse } from '@knowledge-stack/ksapi'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"commit": null,
|
|
20
|
+
"entries": null,
|
|
21
|
+
} satisfies RepoTreeResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoTreeResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
# RepoVersionResponse
|
|
3
|
+
|
|
4
|
+
One saved version: a new main and the run that saved it.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`versionId` | string
|
|
11
|
+
`headSha` | string
|
|
12
|
+
`previousHeadSha` | string
|
|
13
|
+
`commitsAdded` | number
|
|
14
|
+
`runId` | string
|
|
15
|
+
`savedByUserId` | string
|
|
16
|
+
`savedAt` | Date
|
|
17
|
+
`instructionVersionId` | string
|
|
18
|
+
`candidateVersionId` | string
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { RepoVersionResponse } from '@knowledge-stack/ksapi'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"versionId": null,
|
|
28
|
+
"headSha": null,
|
|
29
|
+
"previousHeadSha": null,
|
|
30
|
+
"commitsAdded": null,
|
|
31
|
+
"runId": null,
|
|
32
|
+
"savedByUserId": null,
|
|
33
|
+
"savedAt": null,
|
|
34
|
+
"instructionVersionId": null,
|
|
35
|
+
"candidateVersionId": null,
|
|
36
|
+
} satisfies RepoVersionResponse
|
|
37
|
+
|
|
38
|
+
console.log(example)
|
|
39
|
+
|
|
40
|
+
// Convert the instance to a JSON string
|
|
41
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
42
|
+
console.log(exampleJSON)
|
|
43
|
+
|
|
44
|
+
// Parse the JSON string back to an object
|
|
45
|
+
const exampleParsed = JSON.parse(exampleJSON) as RepoVersionResponse
|
|
46
|
+
console.log(exampleParsed)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
50
|
+
|
|
51
|
+
|
|
@@ -14,7 +14,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
14
14
|
|
|
15
15
|
## appendWorkflowMemoryChunk
|
|
16
16
|
|
|
17
|
-
>
|
|
17
|
+
> MemoryEntryResponse appendWorkflowMemoryChunk(definitionId, appendMemoryChunkRequest)
|
|
18
18
|
|
|
19
19
|
Append Workflow Memory Chunk Handler
|
|
20
20
|
|
|
@@ -66,7 +66,7 @@ example().catch(console.error);
|
|
|
66
66
|
|
|
67
67
|
### Return type
|
|
68
68
|
|
|
69
|
-
[**
|
|
69
|
+
[**MemoryEntryResponse**](MemoryEntryResponse.md)
|
|
70
70
|
|
|
71
71
|
### Authorization
|
|
72
72
|
|
|
@@ -90,7 +90,7 @@ example().catch(console.error);
|
|
|
90
90
|
|
|
91
91
|
## editWorkflowMemoryChunk
|
|
92
92
|
|
|
93
|
-
>
|
|
93
|
+
> MemoryEntryResponse editWorkflowMemoryChunk(definitionId, chunkId, editMemoryChunkRequest)
|
|
94
94
|
|
|
95
95
|
Edit Workflow Memory Chunk Handler
|
|
96
96
|
|
|
@@ -145,7 +145,7 @@ example().catch(console.error);
|
|
|
145
145
|
|
|
146
146
|
### Return type
|
|
147
147
|
|
|
148
|
-
[**
|
|
148
|
+
[**MemoryEntryResponse**](MemoryEntryResponse.md)
|
|
149
149
|
|
|
150
150
|
### Authorization
|
|
151
151
|
|
|
@@ -245,7 +245,7 @@ example().catch(console.error);
|
|
|
245
245
|
|
|
246
246
|
## getWorkflowMemoryChunk
|
|
247
247
|
|
|
248
|
-
>
|
|
248
|
+
> MemoryEntryResponse getWorkflowMemoryChunk(definitionId, chunkId)
|
|
249
249
|
|
|
250
250
|
Get Workflow Memory Chunk Handler
|
|
251
251
|
|
|
@@ -297,7 +297,7 @@ example().catch(console.error);
|
|
|
297
297
|
|
|
298
298
|
### Return type
|
|
299
299
|
|
|
300
|
-
[**
|
|
300
|
+
[**MemoryEntryResponse**](MemoryEntryResponse.md)
|
|
301
301
|
|
|
302
302
|
### Authorization
|
|
303
303
|
|
|
@@ -321,7 +321,7 @@ example().catch(console.error);
|
|
|
321
321
|
|
|
322
322
|
## listWorkflowMemoryChunks
|
|
323
323
|
|
|
324
|
-
>
|
|
324
|
+
> PaginatedResponseMemoryEntryResponse listWorkflowMemoryChunks(definitionId, limit, offset)
|
|
325
325
|
|
|
326
326
|
List Workflow Memory Chunks Handler
|
|
327
327
|
|
|
@@ -376,7 +376,7 @@ example().catch(console.error);
|
|
|
376
376
|
|
|
377
377
|
### Return type
|
|
378
378
|
|
|
379
|
-
[**
|
|
379
|
+
[**PaginatedResponseMemoryEntryResponse**](PaginatedResponseMemoryEntryResponse.md)
|
|
380
380
|
|
|
381
381
|
### Authorization
|
|
382
382
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
# WorkflowRepoResponse
|
|
3
|
+
|
|
4
|
+
The workflow\'s repository at its current ``main``.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
`_exists` | boolean
|
|
12
|
+
`versionId` | string
|
|
13
|
+
`head` | [RepoCommitSummary](RepoCommitSummary.md)
|
|
14
|
+
`fileCount` | number
|
|
15
|
+
`totalBytes` | number
|
|
16
|
+
`commitCount` | number
|
|
17
|
+
`updatedAt` | Date
|
|
18
|
+
`writableByMe` | boolean
|
|
19
|
+
`instructionVersionId` | string
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { WorkflowRepoResponse } from '@knowledge-stack/ksapi'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"name": null,
|
|
29
|
+
"_exists": null,
|
|
30
|
+
"versionId": null,
|
|
31
|
+
"head": null,
|
|
32
|
+
"fileCount": null,
|
|
33
|
+
"totalBytes": null,
|
|
34
|
+
"commitCount": null,
|
|
35
|
+
"updatedAt": null,
|
|
36
|
+
"writableByMe": null,
|
|
37
|
+
"instructionVersionId": null,
|
|
38
|
+
} satisfies WorkflowRepoResponse
|
|
39
|
+
|
|
40
|
+
console.log(example)
|
|
41
|
+
|
|
42
|
+
// Convert the instance to a JSON string
|
|
43
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
44
|
+
console.log(exampleJSON)
|
|
45
|
+
|
|
46
|
+
// Parse the JSON string back to an object
|
|
47
|
+
const exampleParsed = JSON.parse(exampleJSON) as WorkflowRepoResponse
|
|
48
|
+
console.log(exampleParsed)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
52
|
+
|
|
53
|
+
|