initial ai assistance
This commit is contained in:
1 parent
1af9ec3172
commit
2e0bf1e88e
24 files changed
+1293
-60
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ export class Api {
|
||||
node = (id: string) => this.get<CmsNode>(`/api/nodes/${encodeURIComponent(id)}`)
|
||||
edges = (id: string) => this.get<NodeEdges>(`/api/nodes/${encodeURIComponent(id)}/edges`)
|
||||
edit = (ops: Op[]) => this.post<EditResult>('/api/edit', { ops })
|
||||
publish = (roots: string[]) => this.post('/api/publish-roots', { roots })
|
||||
publish = (ids: string[]) => this.post<{ publishedAt?: string; results?: { id: string; error?: string }[] }>('/api/publish-roots', { ids })
|
||||
|
||||
/** Schemas are code: cache for the session. */
|
||||
schema(type: string): Promise<JSONSchema> {
|
||||
|
||||
Reference in new issue
Block a user