@fbrc/sdk 0.0.8 → 0.0.10
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/dist/apis/MemoryApi.d.ts +24 -0
- package/dist/apis/MemoryApi.js +25 -1
- package/dist/apis/WorkspaceApi.d.ts +4 -4
- package/dist/apis/WorkspaceApi.js +11 -11
- package/dist/esm/apis/MemoryApi.d.ts +24 -0
- package/dist/esm/apis/MemoryApi.js +25 -1
- package/dist/esm/apis/WorkspaceApi.d.ts +4 -4
- package/dist/esm/apis/WorkspaceApi.js +11 -11
- package/dist/esm/models/UpdateMemoryRequest.d.ts +1 -1
- package/dist/esm/models/UpdateMemoryRequest.js +0 -2
- package/dist/models/UpdateMemoryRequest.d.ts +1 -1
- package/dist/models/UpdateMemoryRequest.js +0 -2
- package/dist/models/V2WorkspacesPatchRequest.d.ts +50 -0
- package/dist/models/V2WorkspacesPatchRequest.js +72 -0
- package/dist/models/V2WorkspacesPostRequest.d.ts +64 -0
- package/dist/models/V2WorkspacesPostRequest.js +82 -0
- package/package.json +1 -1
- package/src/apis/MemoryApi.ts +25 -1
- package/src/apis/WorkspaceApi.ts +11 -11
- package/src/models/UpdateMemoryRequest.ts +1 -2
package/dist/apis/MemoryApi.d.ts
CHANGED
|
@@ -42,39 +42,63 @@ export type UpdateMemoryOperationRequest = Omit<UpdateMemoryRequest & {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare class MemoryApi extends runtime.BaseAPI {
|
|
44
44
|
/**
|
|
45
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
46
|
+
* Create memory
|
|
45
47
|
*/
|
|
46
48
|
createRaw(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>>;
|
|
47
49
|
/**
|
|
50
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
51
|
+
* Create memory
|
|
48
52
|
*/
|
|
49
53
|
create(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob>;
|
|
50
54
|
/**
|
|
55
|
+
* Delete an existing memory.
|
|
56
|
+
* Delete memory
|
|
51
57
|
*/
|
|
52
58
|
deleteRaw(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
59
|
/**
|
|
60
|
+
* Delete an existing memory.
|
|
61
|
+
* Delete memory
|
|
54
62
|
*/
|
|
55
63
|
delete(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
56
64
|
/**
|
|
65
|
+
* Retrieve the details of a specific memory.
|
|
66
|
+
* Get memory
|
|
57
67
|
*/
|
|
58
68
|
getRaw(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Memory>>;
|
|
59
69
|
/**
|
|
70
|
+
* Retrieve the details of a specific memory.
|
|
71
|
+
* Get memory
|
|
60
72
|
*/
|
|
61
73
|
get(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Memory>;
|
|
62
74
|
/**
|
|
75
|
+
* Retrieve the status and details of a memory creation job.
|
|
76
|
+
* Get memory job
|
|
63
77
|
*/
|
|
64
78
|
getJobRaw(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>>;
|
|
65
79
|
/**
|
|
80
|
+
* Retrieve the status and details of a memory creation job.
|
|
81
|
+
* Get memory job
|
|
66
82
|
*/
|
|
67
83
|
getJob(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob>;
|
|
68
84
|
/**
|
|
85
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
86
|
+
* Search memories
|
|
69
87
|
*/
|
|
70
88
|
searchRaw(requestParameters?: SearchMemoriesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchMemories200Response>>;
|
|
71
89
|
/**
|
|
90
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
91
|
+
* Search memories
|
|
72
92
|
*/
|
|
73
93
|
search(requestParameters?: SearchMemoriesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<SearchMemories200Response>;
|
|
74
94
|
/**
|
|
95
|
+
* Update the name and content of an existing memory.
|
|
96
|
+
* Update memory
|
|
75
97
|
*/
|
|
76
98
|
updateRaw(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
77
99
|
/**
|
|
100
|
+
* Update the name and content of an existing memory.
|
|
101
|
+
* Update memory
|
|
78
102
|
*/
|
|
79
103
|
update(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
80
104
|
}
|
package/dist/apis/MemoryApi.js
CHANGED
|
@@ -30,6 +30,8 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class MemoryApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
34
|
+
* Create memory
|
|
33
35
|
*/
|
|
34
36
|
createRaw(requestParameters, initOverrides) {
|
|
35
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -55,6 +57,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
60
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
61
|
+
* Create memory
|
|
58
62
|
*/
|
|
59
63
|
create(requestParameters, initOverrides) {
|
|
60
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,6 +67,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
70
|
+
* Delete an existing memory.
|
|
71
|
+
* Delete memory
|
|
66
72
|
*/
|
|
67
73
|
deleteRaw(requestParameters, initOverrides) {
|
|
68
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -90,6 +96,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
90
96
|
});
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
99
|
+
* Delete an existing memory.
|
|
100
|
+
* Delete memory
|
|
93
101
|
*/
|
|
94
102
|
delete(requestParameters, initOverrides) {
|
|
95
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -97,6 +105,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
97
105
|
});
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
108
|
+
* Retrieve the details of a specific memory.
|
|
109
|
+
* Get memory
|
|
100
110
|
*/
|
|
101
111
|
getRaw(requestParameters, initOverrides) {
|
|
102
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -124,6 +134,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
124
134
|
});
|
|
125
135
|
}
|
|
126
136
|
/**
|
|
137
|
+
* Retrieve the details of a specific memory.
|
|
138
|
+
* Get memory
|
|
127
139
|
*/
|
|
128
140
|
get(requestParameters, initOverrides) {
|
|
129
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -132,6 +144,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
132
144
|
});
|
|
133
145
|
}
|
|
134
146
|
/**
|
|
147
|
+
* Retrieve the status and details of a memory creation job.
|
|
148
|
+
* Get memory job
|
|
135
149
|
*/
|
|
136
150
|
getJobRaw(requestParameters, initOverrides) {
|
|
137
151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -159,6 +173,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
159
173
|
});
|
|
160
174
|
}
|
|
161
175
|
/**
|
|
176
|
+
* Retrieve the status and details of a memory creation job.
|
|
177
|
+
* Get memory job
|
|
162
178
|
*/
|
|
163
179
|
getJob(requestParameters, initOverrides) {
|
|
164
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -167,6 +183,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
167
183
|
});
|
|
168
184
|
}
|
|
169
185
|
/**
|
|
186
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
187
|
+
* Search memories
|
|
170
188
|
*/
|
|
171
189
|
searchRaw() {
|
|
172
190
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -202,6 +220,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
202
220
|
});
|
|
203
221
|
}
|
|
204
222
|
/**
|
|
223
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
224
|
+
* Search memories
|
|
205
225
|
*/
|
|
206
226
|
search() {
|
|
207
227
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -210,6 +230,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
210
230
|
});
|
|
211
231
|
}
|
|
212
232
|
/**
|
|
233
|
+
* Update the name and content of an existing memory.
|
|
234
|
+
* Update memory
|
|
213
235
|
*/
|
|
214
236
|
updateRaw(requestParameters, initOverrides) {
|
|
215
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -230,7 +252,7 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
230
252
|
urlPath = urlPath.replace(`{${"memoryId"}}`, encodeURIComponent(String(requestParameters['memoryId'])));
|
|
231
253
|
const response = yield this.request({
|
|
232
254
|
path: urlPath,
|
|
233
|
-
method: '
|
|
255
|
+
method: 'PATCH',
|
|
234
256
|
headers: headerParameters,
|
|
235
257
|
query: queryParameters,
|
|
236
258
|
body: (0, index_1.UpdateMemoryRequestToJSON)(requestParameters),
|
|
@@ -239,6 +261,8 @@ class MemoryApi extends runtime.BaseAPI {
|
|
|
239
261
|
});
|
|
240
262
|
}
|
|
241
263
|
/**
|
|
264
|
+
* Update the name and content of an existing memory.
|
|
265
|
+
* Update memory
|
|
242
266
|
*/
|
|
243
267
|
update(requestParameters, initOverrides) {
|
|
244
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,21 +47,21 @@ export declare class WorkspaceApi extends runtime.BaseAPI {
|
|
|
47
47
|
*/
|
|
48
48
|
acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
49
49
|
/**
|
|
50
|
-
* Create
|
|
50
|
+
* Create workspace
|
|
51
51
|
*/
|
|
52
52
|
createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
53
53
|
/**
|
|
54
|
-
* Create
|
|
54
|
+
* Create workspace
|
|
55
55
|
*/
|
|
56
56
|
create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
57
57
|
/**
|
|
58
58
|
* Get workspace
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
getRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
61
61
|
/**
|
|
62
62
|
* Get workspace
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
get(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
65
65
|
/**
|
|
66
66
|
* List workspaces
|
|
67
67
|
*/
|
|
@@ -44,7 +44,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
44
44
|
if (this.configuration && this.configuration.apiKey) {
|
|
45
45
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
46
46
|
}
|
|
47
|
-
let urlPath = `/v2/
|
|
47
|
+
let urlPath = `/v2/workspaces/deletion-confirmation`;
|
|
48
48
|
const response = yield this.request({
|
|
49
49
|
path: urlPath,
|
|
50
50
|
method: 'POST',
|
|
@@ -64,7 +64,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Create
|
|
67
|
+
* Create workspace
|
|
68
68
|
*/
|
|
69
69
|
createRaw(requestParameters, initOverrides) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -78,7 +78,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
78
78
|
if (this.configuration && this.configuration.apiKey) {
|
|
79
79
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
80
80
|
}
|
|
81
|
-
let urlPath = `/v2/
|
|
81
|
+
let urlPath = `/v2/workspaces`;
|
|
82
82
|
const response = yield this.request({
|
|
83
83
|
path: urlPath,
|
|
84
84
|
method: 'POST',
|
|
@@ -90,7 +90,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Create
|
|
93
|
+
* Create workspace
|
|
94
94
|
*/
|
|
95
95
|
create(requestParameters, initOverrides) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -101,7 +101,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
101
101
|
/**
|
|
102
102
|
* Get workspace
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
getRaw() {
|
|
105
105
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
106
106
|
const queryParameters = {};
|
|
107
107
|
const headerParameters = {};
|
|
@@ -112,7 +112,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
112
112
|
if (this.configuration && this.configuration.apiKey) {
|
|
113
113
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
114
114
|
}
|
|
115
|
-
let urlPath = `/v2/
|
|
115
|
+
let urlPath = `/v2/workspaces/me`;
|
|
116
116
|
const response = yield this.request({
|
|
117
117
|
path: urlPath,
|
|
118
118
|
method: 'GET',
|
|
@@ -125,9 +125,9 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
125
125
|
/**
|
|
126
126
|
* Get workspace
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
get() {
|
|
129
129
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
130
|
-
const response = yield this.
|
|
130
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
131
131
|
return yield response.value();
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -157,7 +157,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
157
157
|
if (this.configuration && this.configuration.apiKey) {
|
|
158
158
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
159
159
|
}
|
|
160
|
-
let urlPath = `/v2/
|
|
160
|
+
let urlPath = `/v2/workspaces`;
|
|
161
161
|
const response = yield this.request({
|
|
162
162
|
path: urlPath,
|
|
163
163
|
method: 'GET',
|
|
@@ -191,7 +191,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
191
191
|
if (this.configuration && this.configuration.apiKey) {
|
|
192
192
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
193
193
|
}
|
|
194
|
-
let urlPath = `/v2/
|
|
194
|
+
let urlPath = `/v2/workspaces`;
|
|
195
195
|
const response = yield this.request({
|
|
196
196
|
path: urlPath,
|
|
197
197
|
method: 'PATCH',
|
|
@@ -227,7 +227,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
227
227
|
if (this.configuration && this.configuration.apiKey) {
|
|
228
228
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
229
229
|
}
|
|
230
|
-
let urlPath = `/v2/
|
|
230
|
+
let urlPath = `/v2/workspaces`;
|
|
231
231
|
const response = yield this.request({
|
|
232
232
|
path: urlPath,
|
|
233
233
|
method: 'DELETE',
|
|
@@ -42,39 +42,63 @@ export type UpdateMemoryOperationRequest = Omit<UpdateMemoryRequest & {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare class MemoryApi extends runtime.BaseAPI {
|
|
44
44
|
/**
|
|
45
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
46
|
+
* Create memory
|
|
45
47
|
*/
|
|
46
48
|
createRaw(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>>;
|
|
47
49
|
/**
|
|
50
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
51
|
+
* Create memory
|
|
48
52
|
*/
|
|
49
53
|
create(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob>;
|
|
50
54
|
/**
|
|
55
|
+
* Delete an existing memory.
|
|
56
|
+
* Delete memory
|
|
51
57
|
*/
|
|
52
58
|
deleteRaw(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
59
|
/**
|
|
60
|
+
* Delete an existing memory.
|
|
61
|
+
* Delete memory
|
|
54
62
|
*/
|
|
55
63
|
delete(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
56
64
|
/**
|
|
65
|
+
* Retrieve the details of a specific memory.
|
|
66
|
+
* Get memory
|
|
57
67
|
*/
|
|
58
68
|
getRaw(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Memory>>;
|
|
59
69
|
/**
|
|
70
|
+
* Retrieve the details of a specific memory.
|
|
71
|
+
* Get memory
|
|
60
72
|
*/
|
|
61
73
|
get(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Memory>;
|
|
62
74
|
/**
|
|
75
|
+
* Retrieve the status and details of a memory creation job.
|
|
76
|
+
* Get memory job
|
|
63
77
|
*/
|
|
64
78
|
getJobRaw(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>>;
|
|
65
79
|
/**
|
|
80
|
+
* Retrieve the status and details of a memory creation job.
|
|
81
|
+
* Get memory job
|
|
66
82
|
*/
|
|
67
83
|
getJob(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob>;
|
|
68
84
|
/**
|
|
85
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
86
|
+
* Search memories
|
|
69
87
|
*/
|
|
70
88
|
searchRaw(requestParameters?: SearchMemoriesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchMemories200Response>>;
|
|
71
89
|
/**
|
|
90
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
91
|
+
* Search memories
|
|
72
92
|
*/
|
|
73
93
|
search(requestParameters?: SearchMemoriesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<SearchMemories200Response>;
|
|
74
94
|
/**
|
|
95
|
+
* Update the name and content of an existing memory.
|
|
96
|
+
* Update memory
|
|
75
97
|
*/
|
|
76
98
|
updateRaw(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
77
99
|
/**
|
|
100
|
+
* Update the name and content of an existing memory.
|
|
101
|
+
* Update memory
|
|
78
102
|
*/
|
|
79
103
|
update(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
80
104
|
}
|
|
@@ -27,6 +27,8 @@ import { MemoryFromJSON, MemoryJobFromJSON, MemoryJobSourceToJSON, SearchMemorie
|
|
|
27
27
|
*/
|
|
28
28
|
export class MemoryApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
31
|
+
* Create memory
|
|
30
32
|
*/
|
|
31
33
|
createRaw(requestParameters, initOverrides) {
|
|
32
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -52,6 +54,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
52
54
|
});
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
57
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
58
|
+
* Create memory
|
|
55
59
|
*/
|
|
56
60
|
create(requestParameters, initOverrides) {
|
|
57
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -60,6 +64,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
60
64
|
});
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
67
|
+
* Delete an existing memory.
|
|
68
|
+
* Delete memory
|
|
63
69
|
*/
|
|
64
70
|
deleteRaw(requestParameters, initOverrides) {
|
|
65
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -87,6 +93,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
87
93
|
});
|
|
88
94
|
}
|
|
89
95
|
/**
|
|
96
|
+
* Delete an existing memory.
|
|
97
|
+
* Delete memory
|
|
90
98
|
*/
|
|
91
99
|
delete(requestParameters, initOverrides) {
|
|
92
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -94,6 +102,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
94
102
|
});
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
105
|
+
* Retrieve the details of a specific memory.
|
|
106
|
+
* Get memory
|
|
97
107
|
*/
|
|
98
108
|
getRaw(requestParameters, initOverrides) {
|
|
99
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -121,6 +131,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
121
131
|
});
|
|
122
132
|
}
|
|
123
133
|
/**
|
|
134
|
+
* Retrieve the details of a specific memory.
|
|
135
|
+
* Get memory
|
|
124
136
|
*/
|
|
125
137
|
get(requestParameters, initOverrides) {
|
|
126
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -129,6 +141,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
129
141
|
});
|
|
130
142
|
}
|
|
131
143
|
/**
|
|
144
|
+
* Retrieve the status and details of a memory creation job.
|
|
145
|
+
* Get memory job
|
|
132
146
|
*/
|
|
133
147
|
getJobRaw(requestParameters, initOverrides) {
|
|
134
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -156,6 +170,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
156
170
|
});
|
|
157
171
|
}
|
|
158
172
|
/**
|
|
173
|
+
* Retrieve the status and details of a memory creation job.
|
|
174
|
+
* Get memory job
|
|
159
175
|
*/
|
|
160
176
|
getJob(requestParameters, initOverrides) {
|
|
161
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -164,6 +180,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
164
180
|
});
|
|
165
181
|
}
|
|
166
182
|
/**
|
|
183
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
184
|
+
* Search memories
|
|
167
185
|
*/
|
|
168
186
|
searchRaw() {
|
|
169
187
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -199,6 +217,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
199
217
|
});
|
|
200
218
|
}
|
|
201
219
|
/**
|
|
220
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
221
|
+
* Search memories
|
|
202
222
|
*/
|
|
203
223
|
search() {
|
|
204
224
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -207,6 +227,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
207
227
|
});
|
|
208
228
|
}
|
|
209
229
|
/**
|
|
230
|
+
* Update the name and content of an existing memory.
|
|
231
|
+
* Update memory
|
|
210
232
|
*/
|
|
211
233
|
updateRaw(requestParameters, initOverrides) {
|
|
212
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -227,7 +249,7 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
227
249
|
urlPath = urlPath.replace(`{${"memoryId"}}`, encodeURIComponent(String(requestParameters['memoryId'])));
|
|
228
250
|
const response = yield this.request({
|
|
229
251
|
path: urlPath,
|
|
230
|
-
method: '
|
|
252
|
+
method: 'PATCH',
|
|
231
253
|
headers: headerParameters,
|
|
232
254
|
query: queryParameters,
|
|
233
255
|
body: UpdateMemoryRequestToJSON(requestParameters),
|
|
@@ -236,6 +258,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
236
258
|
});
|
|
237
259
|
}
|
|
238
260
|
/**
|
|
261
|
+
* Update the name and content of an existing memory.
|
|
262
|
+
* Update memory
|
|
239
263
|
*/
|
|
240
264
|
update(requestParameters, initOverrides) {
|
|
241
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,21 +47,21 @@ export declare class WorkspaceApi extends runtime.BaseAPI {
|
|
|
47
47
|
*/
|
|
48
48
|
acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
49
49
|
/**
|
|
50
|
-
* Create
|
|
50
|
+
* Create workspace
|
|
51
51
|
*/
|
|
52
52
|
createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
53
53
|
/**
|
|
54
|
-
* Create
|
|
54
|
+
* Create workspace
|
|
55
55
|
*/
|
|
56
56
|
create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
57
57
|
/**
|
|
58
58
|
* Get workspace
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
getRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
61
61
|
/**
|
|
62
62
|
* Get workspace
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
get(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
65
65
|
/**
|
|
66
66
|
* List workspaces
|
|
67
67
|
*/
|
|
@@ -41,7 +41,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
41
41
|
if (this.configuration && this.configuration.apiKey) {
|
|
42
42
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
43
43
|
}
|
|
44
|
-
let urlPath = `/v2/
|
|
44
|
+
let urlPath = `/v2/workspaces/deletion-confirmation`;
|
|
45
45
|
const response = yield this.request({
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
@@ -61,7 +61,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Create
|
|
64
|
+
* Create workspace
|
|
65
65
|
*/
|
|
66
66
|
createRaw(requestParameters, initOverrides) {
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -75,7 +75,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
75
75
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
76
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
77
77
|
}
|
|
78
|
-
let urlPath = `/v2/
|
|
78
|
+
let urlPath = `/v2/workspaces`;
|
|
79
79
|
const response = yield this.request({
|
|
80
80
|
path: urlPath,
|
|
81
81
|
method: 'POST',
|
|
@@ -87,7 +87,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Create
|
|
90
|
+
* Create workspace
|
|
91
91
|
*/
|
|
92
92
|
create(requestParameters, initOverrides) {
|
|
93
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -98,7 +98,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
98
98
|
/**
|
|
99
99
|
* Get workspace
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
getRaw() {
|
|
102
102
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
103
103
|
const queryParameters = {};
|
|
104
104
|
const headerParameters = {};
|
|
@@ -109,7 +109,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
109
109
|
if (this.configuration && this.configuration.apiKey) {
|
|
110
110
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
111
111
|
}
|
|
112
|
-
let urlPath = `/v2/
|
|
112
|
+
let urlPath = `/v2/workspaces/me`;
|
|
113
113
|
const response = yield this.request({
|
|
114
114
|
path: urlPath,
|
|
115
115
|
method: 'GET',
|
|
@@ -122,9 +122,9 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
122
122
|
/**
|
|
123
123
|
* Get workspace
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
get() {
|
|
126
126
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
127
|
-
const response = yield this.
|
|
127
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
128
128
|
return yield response.value();
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -154,7 +154,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
154
154
|
if (this.configuration && this.configuration.apiKey) {
|
|
155
155
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
156
156
|
}
|
|
157
|
-
let urlPath = `/v2/
|
|
157
|
+
let urlPath = `/v2/workspaces`;
|
|
158
158
|
const response = yield this.request({
|
|
159
159
|
path: urlPath,
|
|
160
160
|
method: 'GET',
|
|
@@ -188,7 +188,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
188
188
|
if (this.configuration && this.configuration.apiKey) {
|
|
189
189
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
190
190
|
}
|
|
191
|
-
let urlPath = `/v2/
|
|
191
|
+
let urlPath = `/v2/workspaces`;
|
|
192
192
|
const response = yield this.request({
|
|
193
193
|
path: urlPath,
|
|
194
194
|
method: 'PATCH',
|
|
@@ -224,7 +224,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
224
224
|
if (this.configuration && this.configuration.apiKey) {
|
|
225
225
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
226
226
|
}
|
|
227
|
-
let urlPath = `/v2/
|
|
227
|
+
let urlPath = `/v2/workspaces`;
|
|
228
228
|
const response = yield this.request({
|
|
229
229
|
path: urlPath,
|
|
230
230
|
method: 'DELETE',
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the UpdateMemoryRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfUpdateMemoryRequest(value) {
|
|
18
|
-
if (!('content' in value) || value['content'] === undefined)
|
|
19
|
-
return false;
|
|
20
18
|
return true;
|
|
21
19
|
}
|
|
22
20
|
export function UpdateMemoryRequestFromJSON(json) {
|
|
@@ -22,8 +22,6 @@ exports.UpdateMemoryRequestToJSONTyped = UpdateMemoryRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the UpdateMemoryRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateMemoryRequest(value) {
|
|
25
|
-
if (!('content' in value) || value['content'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function UpdateMemoryRequestFromJSON(json) {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface V2WorkspacesPatchRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface V2WorkspacesPatchRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V2WorkspacesPatchRequest
|
|
22
|
+
*/
|
|
23
|
+
'title'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof V2WorkspacesPatchRequest
|
|
28
|
+
*/
|
|
29
|
+
'description'?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2WorkspacesPatchRequest
|
|
34
|
+
*/
|
|
35
|
+
'slug'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof V2WorkspacesPatchRequest
|
|
40
|
+
*/
|
|
41
|
+
'avatarStoragePath'?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the V2WorkspacesPatchRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfV2WorkspacesPatchRequest(value: object): value is V2WorkspacesPatchRequest;
|
|
47
|
+
export declare function V2WorkspacesPatchRequestFromJSON(json: any): V2WorkspacesPatchRequest;
|
|
48
|
+
export declare function V2WorkspacesPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspacesPatchRequest;
|
|
49
|
+
export declare function V2WorkspacesPatchRequestToJSON(json: any): V2WorkspacesPatchRequest;
|
|
50
|
+
export declare function V2WorkspacesPatchRequestToJSONTyped(value?: V2WorkspacesPatchRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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.instanceOfV2WorkspacesPatchRequest = instanceOfV2WorkspacesPatchRequest;
|
|
17
|
+
exports.V2WorkspacesPatchRequestFromJSON = V2WorkspacesPatchRequestFromJSON;
|
|
18
|
+
exports.V2WorkspacesPatchRequestFromJSONTyped = V2WorkspacesPatchRequestFromJSONTyped;
|
|
19
|
+
exports.V2WorkspacesPatchRequestToJSON = V2WorkspacesPatchRequestToJSON;
|
|
20
|
+
exports.V2WorkspacesPatchRequestToJSONTyped = V2WorkspacesPatchRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the V2WorkspacesPatchRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfV2WorkspacesPatchRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function V2WorkspacesPatchRequestFromJSON(json) {
|
|
28
|
+
return V2WorkspacesPatchRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function V2WorkspacesPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const result = {};
|
|
35
|
+
if (json['title'] !== undefined) {
|
|
36
|
+
result['title'] = json['title'];
|
|
37
|
+
}
|
|
38
|
+
if (json['description'] !== undefined) {
|
|
39
|
+
if (json['description'] === null) {
|
|
40
|
+
result['description'] = null;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
result['description'] = json['description'];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (json['slug'] !== undefined) {
|
|
47
|
+
result['slug'] = json['slug'];
|
|
48
|
+
}
|
|
49
|
+
if (json['avatarStoragePath'] !== undefined) {
|
|
50
|
+
if (json['avatarStoragePath'] === null) {
|
|
51
|
+
result['avatarStoragePath'] = null;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
result['avatarStoragePath'] = json['avatarStoragePath'];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
function V2WorkspacesPatchRequestToJSON(json) {
|
|
60
|
+
return V2WorkspacesPatchRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function V2WorkspacesPatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'title': value['title'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'slug': value['slug'],
|
|
70
|
+
'avatarStoragePath': value['avatarStoragePath'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 { MarketingCampaignSource } from './MarketingCampaignSource';
|
|
13
|
+
import type { WorkspaceType } from './WorkspaceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface V2WorkspacesPostRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface V2WorkspacesPostRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof V2WorkspacesPostRequest
|
|
24
|
+
*/
|
|
25
|
+
'title'?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof V2WorkspacesPostRequest
|
|
30
|
+
*/
|
|
31
|
+
'description'?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof V2WorkspacesPostRequest
|
|
36
|
+
*/
|
|
37
|
+
'slug'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {MarketingCampaignSource}
|
|
41
|
+
* @memberof V2WorkspacesPostRequest
|
|
42
|
+
*/
|
|
43
|
+
'marketing'?: MarketingCampaignSource | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof V2WorkspacesPostRequest
|
|
48
|
+
*/
|
|
49
|
+
'referral'?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {WorkspaceType}
|
|
53
|
+
* @memberof V2WorkspacesPostRequest
|
|
54
|
+
*/
|
|
55
|
+
'type'?: WorkspaceType;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the V2WorkspacesPostRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfV2WorkspacesPostRequest(value: object): value is V2WorkspacesPostRequest;
|
|
61
|
+
export declare function V2WorkspacesPostRequestFromJSON(json: any): V2WorkspacesPostRequest;
|
|
62
|
+
export declare function V2WorkspacesPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspacesPostRequest;
|
|
63
|
+
export declare function V2WorkspacesPostRequestToJSON(json: any): V2WorkspacesPostRequest;
|
|
64
|
+
export declare function V2WorkspacesPostRequestToJSONTyped(value?: V2WorkspacesPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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.instanceOfV2WorkspacesPostRequest = instanceOfV2WorkspacesPostRequest;
|
|
17
|
+
exports.V2WorkspacesPostRequestFromJSON = V2WorkspacesPostRequestFromJSON;
|
|
18
|
+
exports.V2WorkspacesPostRequestFromJSONTyped = V2WorkspacesPostRequestFromJSONTyped;
|
|
19
|
+
exports.V2WorkspacesPostRequestToJSON = V2WorkspacesPostRequestToJSON;
|
|
20
|
+
exports.V2WorkspacesPostRequestToJSONTyped = V2WorkspacesPostRequestToJSONTyped;
|
|
21
|
+
const MarketingCampaignSource_1 = require("./MarketingCampaignSource");
|
|
22
|
+
const WorkspaceType_1 = require("./WorkspaceType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the V2WorkspacesPostRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfV2WorkspacesPostRequest(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function V2WorkspacesPostRequestFromJSON(json) {
|
|
30
|
+
return V2WorkspacesPostRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function V2WorkspacesPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const result = {};
|
|
37
|
+
if (json['title'] !== undefined) {
|
|
38
|
+
result['title'] = json['title'];
|
|
39
|
+
}
|
|
40
|
+
if (json['description'] !== undefined) {
|
|
41
|
+
if (json['description'] === null) {
|
|
42
|
+
result['description'] = null;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
result['description'] = json['description'];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (json['slug'] !== undefined) {
|
|
49
|
+
result['slug'] = json['slug'];
|
|
50
|
+
}
|
|
51
|
+
if (json['marketing'] !== undefined) {
|
|
52
|
+
if (json['marketing'] === null) {
|
|
53
|
+
result['marketing'] = null;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
result['marketing'] = (0, MarketingCampaignSource_1.MarketingCampaignSourceFromJSON)(json['marketing']);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (json['referral'] !== undefined) {
|
|
60
|
+
result['referral'] = json['referral'];
|
|
61
|
+
}
|
|
62
|
+
if (json['type'] !== undefined) {
|
|
63
|
+
result['type'] = (0, WorkspaceType_1.WorkspaceTypeFromJSON)(json['type']);
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
function V2WorkspacesPostRequestToJSON(json) {
|
|
68
|
+
return V2WorkspacesPostRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function V2WorkspacesPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'title': value['title'],
|
|
76
|
+
'description': value['description'],
|
|
77
|
+
'slug': value['slug'],
|
|
78
|
+
'marketing': (0, MarketingCampaignSource_1.MarketingCampaignSourceToJSON)(value['marketing']),
|
|
79
|
+
'referral': value['referral'],
|
|
80
|
+
'type': (0, WorkspaceType_1.WorkspaceTypeToJSON)(value['type']),
|
|
81
|
+
};
|
|
82
|
+
}
|
package/package.json
CHANGED
package/src/apis/MemoryApi.ts
CHANGED
|
@@ -75,6 +75,8 @@ export type UpdateMemoryOperationRequest = Omit<UpdateMemoryRequest & {
|
|
|
75
75
|
export class MemoryApi extends runtime.BaseAPI {
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
79
|
+
* Create memory
|
|
78
80
|
*/
|
|
79
81
|
async createRaw(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>> {
|
|
80
82
|
const queryParameters: any = {};
|
|
@@ -107,6 +109,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
/**
|
|
112
|
+
* Create a memory by analyzing the provided input data. Set `infer` to `false` to skip inference and store the memory verbatim. Memory inference is asynchronous. The response contains a job ID which can be used to track the status of the memory creation.
|
|
113
|
+
* Create memory
|
|
110
114
|
*/
|
|
111
115
|
async create(requestParameters: CreateMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob> {
|
|
112
116
|
const response = await this.createRaw(requestParameters, initOverrides);
|
|
@@ -114,6 +118,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
/**
|
|
121
|
+
* Delete an existing memory.
|
|
122
|
+
* Delete memory
|
|
117
123
|
*/
|
|
118
124
|
async deleteRaw(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
119
125
|
if (requestParameters['memoryId'] == null) {
|
|
@@ -151,12 +157,16 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
/**
|
|
160
|
+
* Delete an existing memory.
|
|
161
|
+
* Delete memory
|
|
154
162
|
*/
|
|
155
163
|
async delete(requestParameters: DeleteMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void> {
|
|
156
164
|
await this.deleteRaw(requestParameters, initOverrides);
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
/**
|
|
168
|
+
* Retrieve the details of a specific memory.
|
|
169
|
+
* Get memory
|
|
160
170
|
*/
|
|
161
171
|
async getRaw(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Memory>> {
|
|
162
172
|
if (requestParameters['memoryId'] == null) {
|
|
@@ -194,6 +204,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
194
204
|
}
|
|
195
205
|
|
|
196
206
|
/**
|
|
207
|
+
* Retrieve the details of a specific memory.
|
|
208
|
+
* Get memory
|
|
197
209
|
*/
|
|
198
210
|
async get(requestParameters: GetMemoryRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Memory> {
|
|
199
211
|
const response = await this.getRaw(requestParameters, initOverrides);
|
|
@@ -201,6 +213,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
201
213
|
}
|
|
202
214
|
|
|
203
215
|
/**
|
|
216
|
+
* Retrieve the status and details of a memory creation job.
|
|
217
|
+
* Get memory job
|
|
204
218
|
*/
|
|
205
219
|
async getJobRaw(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryJob>> {
|
|
206
220
|
if (requestParameters['jobId'] == null) {
|
|
@@ -238,6 +252,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
238
252
|
}
|
|
239
253
|
|
|
240
254
|
/**
|
|
255
|
+
* Retrieve the status and details of a memory creation job.
|
|
256
|
+
* Get memory job
|
|
241
257
|
*/
|
|
242
258
|
async getJob(requestParameters: GetMemoryJobRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MemoryJob> {
|
|
243
259
|
const response = await this.getJobRaw(requestParameters, initOverrides);
|
|
@@ -245,6 +261,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
245
261
|
}
|
|
246
262
|
|
|
247
263
|
/**
|
|
264
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
265
|
+
* Search memories
|
|
248
266
|
*/
|
|
249
267
|
async searchRaw(requestParameters: SearchMemoriesRequest = {}, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchMemories200Response>> {
|
|
250
268
|
const queryParameters: any = {};
|
|
@@ -290,6 +308,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
290
308
|
}
|
|
291
309
|
|
|
292
310
|
/**
|
|
311
|
+
* Search through memories using a query string. Uses hybrid semantic and keyword-based search with a recency bias to find relevant memories. Results are sorted by relevance and include a relevance score (higher is better).
|
|
312
|
+
* Search memories
|
|
293
313
|
*/
|
|
294
314
|
async search(requestParameters: SearchMemoriesRequest = {}, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<SearchMemories200Response> {
|
|
295
315
|
const response = await this.searchRaw(requestParameters, initOverrides);
|
|
@@ -297,6 +317,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
297
317
|
}
|
|
298
318
|
|
|
299
319
|
/**
|
|
320
|
+
* Update the name and content of an existing memory.
|
|
321
|
+
* Update memory
|
|
300
322
|
*/
|
|
301
323
|
async updateRaw(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
302
324
|
if (requestParameters['memoryId'] == null) {
|
|
@@ -327,7 +349,7 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
327
349
|
|
|
328
350
|
const response = await this.request({
|
|
329
351
|
path: urlPath,
|
|
330
|
-
method: '
|
|
352
|
+
method: 'PATCH',
|
|
331
353
|
headers: headerParameters,
|
|
332
354
|
query: queryParameters,
|
|
333
355
|
body: UpdateMemoryRequestToJSON(requestParameters),
|
|
@@ -337,6 +359,8 @@ export class MemoryApi extends runtime.BaseAPI {
|
|
|
337
359
|
}
|
|
338
360
|
|
|
339
361
|
/**
|
|
362
|
+
* Update the name and content of an existing memory.
|
|
363
|
+
* Update memory
|
|
340
364
|
*/
|
|
341
365
|
async update(requestParameters: UpdateMemoryOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void> {
|
|
342
366
|
await this.updateRaw(requestParameters, initOverrides);
|
package/src/apis/WorkspaceApi.ts
CHANGED
|
@@ -88,7 +88,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
let urlPath = `/v2/
|
|
91
|
+
let urlPath = `/v2/workspaces/deletion-confirmation`;
|
|
92
92
|
|
|
93
93
|
const response = await this.request({
|
|
94
94
|
path: urlPath,
|
|
@@ -109,7 +109,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Create
|
|
112
|
+
* Create workspace
|
|
113
113
|
*/
|
|
114
114
|
async createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>> {
|
|
115
115
|
const queryParameters: any = {};
|
|
@@ -128,7 +128,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
let urlPath = `/v2/
|
|
131
|
+
let urlPath = `/v2/workspaces`;
|
|
132
132
|
|
|
133
133
|
const response = await this.request({
|
|
134
134
|
path: urlPath,
|
|
@@ -142,7 +142,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Create
|
|
145
|
+
* Create workspace
|
|
146
146
|
*/
|
|
147
147
|
async create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace> {
|
|
148
148
|
const response = await this.createRaw(requestParameters, initOverrides);
|
|
@@ -152,7 +152,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
152
152
|
/**
|
|
153
153
|
* Get workspace
|
|
154
154
|
*/
|
|
155
|
-
async
|
|
155
|
+
async getRaw(requestParameters: GetRequest = {}, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>> {
|
|
156
156
|
const queryParameters: any = {};
|
|
157
157
|
|
|
158
158
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -167,7 +167,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
let urlPath = `/v2/
|
|
170
|
+
let urlPath = `/v2/workspaces/me`;
|
|
171
171
|
|
|
172
172
|
const response = await this.request({
|
|
173
173
|
path: urlPath,
|
|
@@ -182,8 +182,8 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
182
182
|
/**
|
|
183
183
|
* Get workspace
|
|
184
184
|
*/
|
|
185
|
-
async
|
|
186
|
-
const response = await this.
|
|
185
|
+
async get(requestParameters: GetRequest = {}, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace> {
|
|
186
|
+
const response = await this.getRaw(requestParameters, initOverrides);
|
|
187
187
|
return await response.value();
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -221,7 +221,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
let urlPath = `/v2/
|
|
224
|
+
let urlPath = `/v2/workspaces`;
|
|
225
225
|
|
|
226
226
|
const response = await this.request({
|
|
227
227
|
path: urlPath,
|
|
@@ -261,7 +261,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
|
|
264
|
-
let urlPath = `/v2/
|
|
264
|
+
let urlPath = `/v2/workspaces`;
|
|
265
265
|
|
|
266
266
|
const response = await this.request({
|
|
267
267
|
path: urlPath,
|
|
@@ -303,7 +303,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
|
|
306
|
-
let urlPath = `/v2/
|
|
306
|
+
let urlPath = `/v2/workspaces`;
|
|
307
307
|
|
|
308
308
|
const response = await this.request({
|
|
309
309
|
path: urlPath,
|
|
@@ -30,14 +30,13 @@ export interface UpdateMemoryRequest {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateMemoryRequest
|
|
32
32
|
*/
|
|
33
|
-
'content'
|
|
33
|
+
'content'?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the UpdateMemoryRequest interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfUpdateMemoryRequest(value: object): value is UpdateMemoryRequest {
|
|
40
|
-
if (!('content' in value) || value['content'] === undefined) return false;
|
|
41
40
|
return true;
|
|
42
41
|
}
|
|
43
42
|
|