(data: PlainMessage<UpsertUserInstructionsRequest>)
| 204 | }; |
| 205 | |
| 206 | export const upsertUserInstructions = async (data: PlainMessage<UpsertUserInstructionsRequest>) => { |
| 207 | if (!apiclient.hasToken()) { |
| 208 | throw new Error("No token"); |
| 209 | } |
| 210 | const response = await apiclient.post("/users/@self/instructions", data); |
| 211 | return fromJson(UpsertUserInstructionsResponseSchema, response); |
| 212 | }; |
| 213 | |
| 214 | export const getProjectInstructions = async (data: PlainMessage<GetProjectInstructionsRequest>) => { |
| 215 | if (!apiclient.hasToken()) { |