@macro-inc/sdk 0.0.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.
Files changed (296) hide show
  1. package/README.md +177 -0
  2. package/dist/chunk-5HAKQN23.js +1263 -0
  3. package/dist/chunk-77EI4LSQ.js +2492 -0
  4. package/dist/chunk-CTKR64MY.js +1436 -0
  5. package/dist/chunk-JXIQT5TH.js +1467 -0
  6. package/dist/chunk-P4DTO6VD.js +830 -0
  7. package/dist/chunk-PAAFJYGO.js +967 -0
  8. package/dist/chunk-QNUS5BC5.js +913 -0
  9. package/dist/chunk-SGAHIERJ.js +1235 -0
  10. package/dist/chunk-V45LUJDI.js +838 -0
  11. package/dist/chunk-YRUXFEZM.js +1044 -0
  12. package/dist/generated/agent-harness/client/client.gen.d.ts +2 -0
  13. package/dist/generated/agent-harness/client/index.d.ts +10 -0
  14. package/dist/generated/agent-harness/client/types.gen.d.ts +120 -0
  15. package/dist/generated/agent-harness/client/utils.gen.d.ts +37 -0
  16. package/dist/generated/agent-harness/client.gen.d.ts +12 -0
  17. package/dist/generated/agent-harness/core/auth.gen.d.ts +25 -0
  18. package/dist/generated/agent-harness/core/bodySerializer.gen.d.ts +25 -0
  19. package/dist/generated/agent-harness/core/params.gen.d.ts +43 -0
  20. package/dist/generated/agent-harness/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/generated/agent-harness/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/generated/agent-harness/core/serverSentEvents.gen.d.ts +71 -0
  23. package/dist/generated/agent-harness/core/types.gen.d.ts +83 -0
  24. package/dist/generated/agent-harness/core/utils.gen.d.ts +19 -0
  25. package/dist/generated/agent-harness/index.d.ts +2 -0
  26. package/dist/generated/agent-harness/index.js +6 -0
  27. package/dist/generated/agent-harness/sdk.gen.d.ts +84 -0
  28. package/dist/generated/agent-harness/types.gen.d.ts +539 -0
  29. package/dist/generated/auth/client/client.gen.d.ts +2 -0
  30. package/dist/generated/auth/client/index.d.ts +10 -0
  31. package/dist/generated/auth/client/types.gen.d.ts +120 -0
  32. package/dist/generated/auth/client/utils.gen.d.ts +37 -0
  33. package/dist/generated/auth/client.gen.d.ts +12 -0
  34. package/dist/generated/auth/core/auth.gen.d.ts +25 -0
  35. package/dist/generated/auth/core/bodySerializer.gen.d.ts +25 -0
  36. package/dist/generated/auth/core/params.gen.d.ts +43 -0
  37. package/dist/generated/auth/core/pathSerializer.gen.d.ts +33 -0
  38. package/dist/generated/auth/core/queryKeySerializer.gen.d.ts +18 -0
  39. package/dist/generated/auth/core/serverSentEvents.gen.d.ts +71 -0
  40. package/dist/generated/auth/core/types.gen.d.ts +83 -0
  41. package/dist/generated/auth/core/utils.gen.d.ts +19 -0
  42. package/dist/generated/auth/index.d.ts +2 -0
  43. package/dist/generated/auth/index.js +6 -0
  44. package/dist/generated/auth/sdk.gen.d.ts +383 -0
  45. package/dist/generated/auth/types.gen.d.ts +2175 -0
  46. package/dist/generated/cognition/client/client.gen.d.ts +2 -0
  47. package/dist/generated/cognition/client/index.d.ts +10 -0
  48. package/dist/generated/cognition/client/types.gen.d.ts +120 -0
  49. package/dist/generated/cognition/client/utils.gen.d.ts +37 -0
  50. package/dist/generated/cognition/client.gen.d.ts +12 -0
  51. package/dist/generated/cognition/core/auth.gen.d.ts +25 -0
  52. package/dist/generated/cognition/core/bodySerializer.gen.d.ts +25 -0
  53. package/dist/generated/cognition/core/params.gen.d.ts +43 -0
  54. package/dist/generated/cognition/core/pathSerializer.gen.d.ts +33 -0
  55. package/dist/generated/cognition/core/queryKeySerializer.gen.d.ts +18 -0
  56. package/dist/generated/cognition/core/serverSentEvents.gen.d.ts +71 -0
  57. package/dist/generated/cognition/core/types.gen.d.ts +83 -0
  58. package/dist/generated/cognition/core/utils.gen.d.ts +19 -0
  59. package/dist/generated/cognition/index.d.ts +2 -0
  60. package/dist/generated/cognition/index.js +6 -0
  61. package/dist/generated/cognition/sdk.gen.d.ts +224 -0
  62. package/dist/generated/cognition/types.gen.d.ts +2484 -0
  63. package/dist/generated/connection/client/client.gen.d.ts +2 -0
  64. package/dist/generated/connection/client/index.d.ts +10 -0
  65. package/dist/generated/connection/client/types.gen.d.ts +120 -0
  66. package/dist/generated/connection/client/utils.gen.d.ts +37 -0
  67. package/dist/generated/connection/client.gen.d.ts +12 -0
  68. package/dist/generated/connection/core/auth.gen.d.ts +25 -0
  69. package/dist/generated/connection/core/bodySerializer.gen.d.ts +25 -0
  70. package/dist/generated/connection/core/params.gen.d.ts +43 -0
  71. package/dist/generated/connection/core/pathSerializer.gen.d.ts +33 -0
  72. package/dist/generated/connection/core/queryKeySerializer.gen.d.ts +18 -0
  73. package/dist/generated/connection/core/serverSentEvents.gen.d.ts +71 -0
  74. package/dist/generated/connection/core/types.gen.d.ts +83 -0
  75. package/dist/generated/connection/core/utils.gen.d.ts +19 -0
  76. package/dist/generated/connection/index.d.ts +2 -0
  77. package/dist/generated/connection/index.js +839 -0
  78. package/dist/generated/connection/sdk.gen.d.ts +38 -0
  79. package/dist/generated/connection/types.gen.d.ts +235 -0
  80. package/dist/generated/contacts/client/client.gen.d.ts +2 -0
  81. package/dist/generated/contacts/client/index.d.ts +10 -0
  82. package/dist/generated/contacts/client/types.gen.d.ts +120 -0
  83. package/dist/generated/contacts/client/utils.gen.d.ts +37 -0
  84. package/dist/generated/contacts/client.gen.d.ts +12 -0
  85. package/dist/generated/contacts/core/auth.gen.d.ts +25 -0
  86. package/dist/generated/contacts/core/bodySerializer.gen.d.ts +25 -0
  87. package/dist/generated/contacts/core/params.gen.d.ts +43 -0
  88. package/dist/generated/contacts/core/pathSerializer.gen.d.ts +33 -0
  89. package/dist/generated/contacts/core/queryKeySerializer.gen.d.ts +18 -0
  90. package/dist/generated/contacts/core/serverSentEvents.gen.d.ts +71 -0
  91. package/dist/generated/contacts/core/types.gen.d.ts +83 -0
  92. package/dist/generated/contacts/core/utils.gen.d.ts +19 -0
  93. package/dist/generated/contacts/index.d.ts +2 -0
  94. package/dist/generated/contacts/index.js +6 -0
  95. package/dist/generated/contacts/sdk.gen.d.ts +43 -0
  96. package/dist/generated/contacts/types.gen.d.ts +52 -0
  97. package/dist/generated/email/client/client.gen.d.ts +2 -0
  98. package/dist/generated/email/client/index.d.ts +10 -0
  99. package/dist/generated/email/client/types.gen.d.ts +120 -0
  100. package/dist/generated/email/client/utils.gen.d.ts +37 -0
  101. package/dist/generated/email/client.gen.d.ts +12 -0
  102. package/dist/generated/email/core/auth.gen.d.ts +25 -0
  103. package/dist/generated/email/core/bodySerializer.gen.d.ts +25 -0
  104. package/dist/generated/email/core/params.gen.d.ts +43 -0
  105. package/dist/generated/email/core/pathSerializer.gen.d.ts +33 -0
  106. package/dist/generated/email/core/queryKeySerializer.gen.d.ts +18 -0
  107. package/dist/generated/email/core/serverSentEvents.gen.d.ts +71 -0
  108. package/dist/generated/email/core/types.gen.d.ts +83 -0
  109. package/dist/generated/email/core/utils.gen.d.ts +19 -0
  110. package/dist/generated/email/index.d.ts +2 -0
  111. package/dist/generated/email/index.js +6 -0
  112. package/dist/generated/email/sdk.gen.d.ts +254 -0
  113. package/dist/generated/email/types.gen.d.ts +2614 -0
  114. package/dist/generated/notification/client/client.gen.d.ts +2 -0
  115. package/dist/generated/notification/client/index.d.ts +10 -0
  116. package/dist/generated/notification/client/types.gen.d.ts +120 -0
  117. package/dist/generated/notification/client/utils.gen.d.ts +37 -0
  118. package/dist/generated/notification/client.gen.d.ts +12 -0
  119. package/dist/generated/notification/core/auth.gen.d.ts +25 -0
  120. package/dist/generated/notification/core/bodySerializer.gen.d.ts +25 -0
  121. package/dist/generated/notification/core/params.gen.d.ts +43 -0
  122. package/dist/generated/notification/core/pathSerializer.gen.d.ts +33 -0
  123. package/dist/generated/notification/core/queryKeySerializer.gen.d.ts +18 -0
  124. package/dist/generated/notification/core/serverSentEvents.gen.d.ts +71 -0
  125. package/dist/generated/notification/core/types.gen.d.ts +83 -0
  126. package/dist/generated/notification/core/utils.gen.d.ts +19 -0
  127. package/dist/generated/notification/index.d.ts +2 -0
  128. package/dist/generated/notification/index.js +6 -0
  129. package/dist/generated/notification/sdk.gen.d.ts +118 -0
  130. package/dist/generated/notification/types.gen.d.ts +1352 -0
  131. package/dist/generated/properties/client/client.gen.d.ts +2 -0
  132. package/dist/generated/properties/client/index.d.ts +10 -0
  133. package/dist/generated/properties/client/types.gen.d.ts +120 -0
  134. package/dist/generated/properties/client/utils.gen.d.ts +37 -0
  135. package/dist/generated/properties/client.gen.d.ts +12 -0
  136. package/dist/generated/properties/core/auth.gen.d.ts +25 -0
  137. package/dist/generated/properties/core/bodySerializer.gen.d.ts +25 -0
  138. package/dist/generated/properties/core/params.gen.d.ts +43 -0
  139. package/dist/generated/properties/core/pathSerializer.gen.d.ts +33 -0
  140. package/dist/generated/properties/core/queryKeySerializer.gen.d.ts +18 -0
  141. package/dist/generated/properties/core/serverSentEvents.gen.d.ts +71 -0
  142. package/dist/generated/properties/core/types.gen.d.ts +83 -0
  143. package/dist/generated/properties/core/utils.gen.d.ts +19 -0
  144. package/dist/generated/properties/index.d.ts +2 -0
  145. package/dist/generated/properties/index.js +6 -0
  146. package/dist/generated/properties/sdk.gen.d.ts +158 -0
  147. package/dist/generated/properties/types.gen.d.ts +1288 -0
  148. package/dist/generated/scheduled-action/client/client.gen.d.ts +2 -0
  149. package/dist/generated/scheduled-action/client/index.d.ts +10 -0
  150. package/dist/generated/scheduled-action/client/types.gen.d.ts +120 -0
  151. package/dist/generated/scheduled-action/client/utils.gen.d.ts +37 -0
  152. package/dist/generated/scheduled-action/client.gen.d.ts +12 -0
  153. package/dist/generated/scheduled-action/core/auth.gen.d.ts +25 -0
  154. package/dist/generated/scheduled-action/core/bodySerializer.gen.d.ts +25 -0
  155. package/dist/generated/scheduled-action/core/params.gen.d.ts +43 -0
  156. package/dist/generated/scheduled-action/core/pathSerializer.gen.d.ts +33 -0
  157. package/dist/generated/scheduled-action/core/queryKeySerializer.gen.d.ts +18 -0
  158. package/dist/generated/scheduled-action/core/serverSentEvents.gen.d.ts +71 -0
  159. package/dist/generated/scheduled-action/core/types.gen.d.ts +83 -0
  160. package/dist/generated/scheduled-action/core/utils.gen.d.ts +19 -0
  161. package/dist/generated/scheduled-action/index.d.ts +2 -0
  162. package/dist/generated/scheduled-action/index.js +845 -0
  163. package/dist/generated/scheduled-action/sdk.gen.d.ts +42 -0
  164. package/dist/generated/scheduled-action/types.gen.d.ts +241 -0
  165. package/dist/generated/search/client/client.gen.d.ts +2 -0
  166. package/dist/generated/search/client/index.d.ts +10 -0
  167. package/dist/generated/search/client/types.gen.d.ts +120 -0
  168. package/dist/generated/search/client/utils.gen.d.ts +37 -0
  169. package/dist/generated/search/client.gen.d.ts +12 -0
  170. package/dist/generated/search/core/auth.gen.d.ts +25 -0
  171. package/dist/generated/search/core/bodySerializer.gen.d.ts +25 -0
  172. package/dist/generated/search/core/params.gen.d.ts +43 -0
  173. package/dist/generated/search/core/pathSerializer.gen.d.ts +33 -0
  174. package/dist/generated/search/core/queryKeySerializer.gen.d.ts +18 -0
  175. package/dist/generated/search/core/serverSentEvents.gen.d.ts +71 -0
  176. package/dist/generated/search/core/types.gen.d.ts +83 -0
  177. package/dist/generated/search/core/utils.gen.d.ts +19 -0
  178. package/dist/generated/search/index.d.ts +2 -0
  179. package/dist/generated/search/index.js +6 -0
  180. package/dist/generated/search/sdk.gen.d.ts +44 -0
  181. package/dist/generated/search/types.gen.d.ts +2194 -0
  182. package/dist/generated/static-files/client/client.gen.d.ts +2 -0
  183. package/dist/generated/static-files/client/index.d.ts +10 -0
  184. package/dist/generated/static-files/client/types.gen.d.ts +120 -0
  185. package/dist/generated/static-files/client/utils.gen.d.ts +37 -0
  186. package/dist/generated/static-files/client.gen.d.ts +12 -0
  187. package/dist/generated/static-files/core/auth.gen.d.ts +25 -0
  188. package/dist/generated/static-files/core/bodySerializer.gen.d.ts +25 -0
  189. package/dist/generated/static-files/core/params.gen.d.ts +43 -0
  190. package/dist/generated/static-files/core/pathSerializer.gen.d.ts +33 -0
  191. package/dist/generated/static-files/core/queryKeySerializer.gen.d.ts +18 -0
  192. package/dist/generated/static-files/core/serverSentEvents.gen.d.ts +71 -0
  193. package/dist/generated/static-files/core/types.gen.d.ts +83 -0
  194. package/dist/generated/static-files/core/utils.gen.d.ts +19 -0
  195. package/dist/generated/static-files/index.d.ts +2 -0
  196. package/dist/generated/static-files/index.js +842 -0
  197. package/dist/generated/static-files/sdk.gen.d.ts +43 -0
  198. package/dist/generated/static-files/types.gen.d.ts +214 -0
  199. package/dist/generated/storage/client/client.gen.d.ts +2 -0
  200. package/dist/generated/storage/client/index.d.ts +10 -0
  201. package/dist/generated/storage/client/types.gen.d.ts +120 -0
  202. package/dist/generated/storage/client/utils.gen.d.ts +37 -0
  203. package/dist/generated/storage/client.gen.d.ts +12 -0
  204. package/dist/generated/storage/core/auth.gen.d.ts +25 -0
  205. package/dist/generated/storage/core/bodySerializer.gen.d.ts +25 -0
  206. package/dist/generated/storage/core/params.gen.d.ts +43 -0
  207. package/dist/generated/storage/core/pathSerializer.gen.d.ts +33 -0
  208. package/dist/generated/storage/core/queryKeySerializer.gen.d.ts +18 -0
  209. package/dist/generated/storage/core/serverSentEvents.gen.d.ts +71 -0
  210. package/dist/generated/storage/core/types.gen.d.ts +83 -0
  211. package/dist/generated/storage/core/utils.gen.d.ts +19 -0
  212. package/dist/generated/storage/index.d.ts +2 -0
  213. package/dist/generated/storage/index.js +6 -0
  214. package/dist/generated/storage/sdk.gen.d.ts +858 -0
  215. package/dist/generated/storage/types.gen.d.ts +12105 -0
  216. package/dist/generated/unfurl/client/client.gen.d.ts +2 -0
  217. package/dist/generated/unfurl/client/index.d.ts +10 -0
  218. package/dist/generated/unfurl/client/types.gen.d.ts +120 -0
  219. package/dist/generated/unfurl/client/utils.gen.d.ts +37 -0
  220. package/dist/generated/unfurl/client.gen.d.ts +12 -0
  221. package/dist/generated/unfurl/core/auth.gen.d.ts +25 -0
  222. package/dist/generated/unfurl/core/bodySerializer.gen.d.ts +25 -0
  223. package/dist/generated/unfurl/core/params.gen.d.ts +43 -0
  224. package/dist/generated/unfurl/core/pathSerializer.gen.d.ts +33 -0
  225. package/dist/generated/unfurl/core/queryKeySerializer.gen.d.ts +18 -0
  226. package/dist/generated/unfurl/core/serverSentEvents.gen.d.ts +71 -0
  227. package/dist/generated/unfurl/core/types.gen.d.ts +83 -0
  228. package/dist/generated/unfurl/core/utils.gen.d.ts +19 -0
  229. package/dist/generated/unfurl/index.d.ts +2 -0
  230. package/dist/generated/unfurl/index.js +835 -0
  231. package/dist/generated/unfurl/sdk.gen.d.ts +47 -0
  232. package/dist/generated/unfurl/types.gen.d.ts +125 -0
  233. package/dist/src/config.d.ts +51 -0
  234. package/dist/src/entities/agent-sessions/agent-session.d.ts +45 -0
  235. package/dist/src/entities/agent-sessions/namespace.d.ts +18 -0
  236. package/dist/src/entities/bots/namespace.d.ts +25 -0
  237. package/dist/src/entities/calls/call-record.d.ts +55 -0
  238. package/dist/src/entities/calls/namespace.d.ts +9 -0
  239. package/dist/src/entities/channels/channel.d.ts +88 -0
  240. package/dist/src/entities/channels/message.d.ts +64 -0
  241. package/dist/src/entities/channels/namespace.d.ts +30 -0
  242. package/dist/src/entities/channels/post.d.ts +20 -0
  243. package/dist/src/entities/channels/thread.d.ts +30 -0
  244. package/dist/src/entities/chats/chat.d.ts +55 -0
  245. package/dist/src/entities/chats/namespace.d.ts +14 -0
  246. package/dist/src/entities/crm/comment.d.ts +43 -0
  247. package/dist/src/entities/crm/company.d.ts +70 -0
  248. package/dist/src/entities/crm/contact.d.ts +48 -0
  249. package/dist/src/entities/crm/namespace.d.ts +22 -0
  250. package/dist/src/entities/documents/comment.d.ts +41 -0
  251. package/dist/src/entities/documents/document.d.ts +130 -0
  252. package/dist/src/entities/documents/namespace.d.ts +43 -0
  253. package/dist/src/entities/documents/system-skill.d.ts +16 -0
  254. package/dist/src/entities/email/attachment.d.ts +36 -0
  255. package/dist/src/entities/email/label.d.ts +31 -0
  256. package/dist/src/entities/email/link.d.ts +29 -0
  257. package/dist/src/entities/email/message.d.ts +58 -0
  258. package/dist/src/entities/email/namespace.d.ts +49 -0
  259. package/dist/src/entities/email/thread.d.ts +88 -0
  260. package/dist/src/entities/entity.d.ts +101 -0
  261. package/dist/src/entities/favorites/namespace.d.ts +19 -0
  262. package/dist/src/entities/foreign/foreign-entity.d.ts +30 -0
  263. package/dist/src/entities/foreign/namespace.d.ts +7 -0
  264. package/dist/src/entities/notifications/namespace.d.ts +29 -0
  265. package/dist/src/entities/notifications/notification.d.ts +50 -0
  266. package/dist/src/entities/pins/namespace.d.ts +19 -0
  267. package/dist/src/entities/projects/namespace.d.ts +13 -0
  268. package/dist/src/entities/projects/project.d.ts +42 -0
  269. package/dist/src/entities/properties/namespace.d.ts +47 -0
  270. package/dist/src/entities/properties/property-definition.d.ts +45 -0
  271. package/dist/src/entities/properties/property-option.d.ts +32 -0
  272. package/dist/src/entities/search.d.ts +23 -0
  273. package/dist/src/entities/tasks/namespace.d.ts +21 -0
  274. package/dist/src/entities/tasks/task.d.ts +34 -0
  275. package/dist/src/entities/teams/namespace.d.ts +12 -0
  276. package/dist/src/entities/teams/team.d.ts +40 -0
  277. package/dist/src/entities/users/namespace.d.ts +10 -0
  278. package/dist/src/entities/users/user.d.ts +43 -0
  279. package/dist/src/entities/webhooks/namespace.d.ts +31 -0
  280. package/dist/src/entities/webhooks/webhook.d.ts +88 -0
  281. package/dist/src/events/hydrate/channel.d.ts +85 -0
  282. package/dist/src/events/hydrate/document.d.ts +54 -0
  283. package/dist/src/events/receiver.d.ts +51 -0
  284. package/dist/src/events/types.d.ts +40 -0
  285. package/dist/src/events/verify.d.ts +13 -0
  286. package/dist/src/local-portmap.d.ts +8 -0
  287. package/dist/src/macro.d.ts +62 -0
  288. package/dist/src/macro.js +4215 -0
  289. package/dist/src/mentions.d.ts +37 -0
  290. package/dist/src/raw.d.ts +12 -0
  291. package/dist/src/utils/client.d.ts +53 -0
  292. package/dist/src/utils/index.d.ts +4 -0
  293. package/dist/src/utils/lazy.d.ts +18 -0
  294. package/dist/src/utils/pagination.d.ts +7 -0
  295. package/dist/src/utils/unwrap.d.ts +23 -0
  296. package/package.json +49 -0
@@ -0,0 +1,539 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ /**
5
+ * One thing a caller wants an agent to do.
6
+ */
7
+ export type AgentAction = (AgentPromptAction & {
8
+ type: 'prompt';
9
+ }) | (AgentSetModelAction & {
10
+ type: 'setModel';
11
+ }) | {
12
+ type: 'compact';
13
+ } | {
14
+ type: 'stop';
15
+ };
16
+ /**
17
+ * Identifies one accepted [`AgentAction`] end to end: returned by the
18
+ * control endpoint, written as the JSON-RPC request id on the action's wire
19
+ * frame, and read back off that frame as `request_id` on the folded message
20
+ * it derives. Correlation is string equality; the value is opaque.
21
+ *
22
+ * Minted only by the server at accept time, as `agent_session:{uuid}` - the
23
+ * prefix is what lets [`Self::from_request_id`] tell our ids from ones other
24
+ * clients picked.
25
+ */
26
+ export type AgentActionId = string;
27
+ /**
28
+ * Ask the agent to work on something.
29
+ */
30
+ export type AgentPromptAction = {
31
+ /**
32
+ * What to tell the agent.
33
+ */
34
+ prompt: string;
35
+ };
36
+ /**
37
+ * One entry of a session's protocol log.
38
+ *
39
+ * Serializes as `{"userId": ..., "direction": ..., "content": ...}` - the
40
+ * frame's own two fields, flattened in beside the attribution, which is the
41
+ * same shape a recorded session's JSONL carries. A reader can deserialize the
42
+ * `direction`/`content` pair straight back into the fold's own log type
43
+ * rather than through a transport vocabulary of its own.
44
+ *
45
+ * `agentSessionId` is not repeated per entry: every entry in a response
46
+ * belongs to the session named once at the top.
47
+ *
48
+ * `Deserialize` is for the wire-contract tests only - nothing server-side
49
+ * decodes its own response type.
50
+ */
51
+ export type AgentSessionLogEntryDto = LogFrameDto & {
52
+ /**
53
+ * When the log recorded the frame.
54
+ *
55
+ * The frame itself carries no time, so this comes from the log row. It is
56
+ * what a reader has to order these against anything else it is showing
57
+ * beside them - the fold derives an order among the messages of one
58
+ * session and nothing more.
59
+ */
60
+ createdAt: string;
61
+ /**
62
+ * The user whose action produced the frame, absent when no user did.
63
+ *
64
+ * Only prompts carry one, and only when the frame was attributed at the
65
+ * time - a replayed or recorded session's are anonymous.
66
+ */
67
+ userId?: string | null;
68
+ };
69
+ /**
70
+ * Response body for one session's raw protocol log.
71
+ *
72
+ * A wrapper rather than a bare array so that anything which is about the
73
+ * response rather than about a frame has somewhere to go later without
74
+ * breaking every client.
75
+ */
76
+ export type AgentSessionLogResponse = {
77
+ /**
78
+ * The agent whose messages the log derives.
79
+ *
80
+ * Here because a client renders those messages and cannot otherwise work
81
+ * out who sent them: the sender of an agent message is this session's
82
+ * bot, and nothing else names it.
83
+ */
84
+ bot: SessionBot;
85
+ /**
86
+ * Every logged frame, oldest first. Folding depends on this order.
87
+ */
88
+ entries: Array<AgentSessionLogEntryDto>;
89
+ };
90
+ /**
91
+ * Response body describing an agent session.
92
+ *
93
+ * Clients deserialize this, so both derives are used.
94
+ */
95
+ export type AgentSessionResponse = {
96
+ /**
97
+ * The ACP session id, if one exists.
98
+ */
99
+ acpSessionId?: string | null;
100
+ /**
101
+ * The bot running the agent.
102
+ */
103
+ botId: string;
104
+ /**
105
+ * When the session was created.
106
+ */
107
+ createdAt: string;
108
+ external?: null | ExternalSessionResponse;
109
+ /**
110
+ * Harness slug.
111
+ */
112
+ harness: string;
113
+ /**
114
+ * The session id.
115
+ */
116
+ id: string;
117
+ /**
118
+ * Model slug.
119
+ */
120
+ model: string;
121
+ /**
122
+ * When the session was last modified.
123
+ */
124
+ modifiedAt: string;
125
+ /**
126
+ * User-facing session name.
127
+ */
128
+ name: string;
129
+ /**
130
+ * The exact message that invoked the bot, if any.
131
+ */
132
+ originatingMessageId?: string | null;
133
+ /**
134
+ * The user who created and owns the session.
135
+ */
136
+ ownerId: string;
137
+ /**
138
+ * The repository the session works with, when one was stated.
139
+ */
140
+ repoUrl?: string | null;
141
+ /**
142
+ * Compute tier of the managed sandbox.
143
+ */
144
+ sandboxSize: SandboxSize;
145
+ /**
146
+ * The session's status.
147
+ */
148
+ status: SessionStatusDto;
149
+ /**
150
+ * The channel `thread_id` lives in, when the session was spawned from a
151
+ * thread.
152
+ */
153
+ threadChannelId?: string | null;
154
+ /**
155
+ * The root message of the thread the session was created from, if any.
156
+ */
157
+ threadId?: string | null;
158
+ /**
159
+ * The directory the session's harness runs in on its runtime.
160
+ */
161
+ workspace: string;
162
+ };
163
+ /**
164
+ * Ask the agent to run on a different model from here on.
165
+ */
166
+ export type AgentSetModelAction = {
167
+ /**
168
+ * The model slug the agent should switch to.
169
+ */
170
+ model: string;
171
+ };
172
+ export type BotId = string;
173
+ /**
174
+ * The operation to perform.
175
+ */
176
+ export type ControlRequest = AgentAction;
177
+ /**
178
+ * Request body for `POST /agent-sessions`.
179
+ *
180
+ * Carries two shapes, told apart by `workspace`. Naming one asks for an
181
+ * external session: the runtime is the bot operator's, so the caller has to
182
+ * say which bot and which directory, and must own that bot. Omitting it asks
183
+ * for a managed session, whose sandbox this deployment provisions from its
184
+ * own configuration - which is why the fields describing someone else's
185
+ * runtime must be omitted along with it rather than quietly ignored. Mixing
186
+ * the two is refused rather than guessed at, so that no request can reach the
187
+ * managed path carrying a bot the caller was never entitled to name.
188
+ *
189
+ * Clients serialize this, so both derives are used.
190
+ */
191
+ export type CreateAgentSessionRequest = {
192
+ /**
193
+ * Bot the session runs for. Bot callers may omit it (their own identity
194
+ * is used) and must not name another bot; user callers must supply a
195
+ * bot they own. External sessions only: a managed session runs as the
196
+ * bot its deployment is configured for.
197
+ */
198
+ botId?: string | null;
199
+ /**
200
+ * The user who owns the session. Ignored for user callers, who always
201
+ * own their own sessions; required for bot callers without verified
202
+ * acting-user claims.
203
+ *
204
+ * For bot callers this is a claim, not a verified fact: it is scoped to
205
+ * the bot's own sessions, but the named user owns the session on the
206
+ * bot's say-so.
207
+ */
208
+ owner?: string | null;
209
+ /**
210
+ * First prompt to deliver once the session is running. Managed sessions
211
+ * only - an external runtime sends its own first prompt through the
212
+ * control endpoint. Omitted, the session opens idle.
213
+ */
214
+ prompt?: string | null;
215
+ /**
216
+ * Repository nominally checked out at `workspace`. Informational and
217
+ * optional: having it cloned there is the runtime operator's job.
218
+ */
219
+ repoUrl?: string | null;
220
+ thread?: null | CreateSessionThread;
221
+ /**
222
+ * Absolute directory the bot's harness runs in on its runtime. Present
223
+ * for an external session, absent for a managed one, which runs in the
224
+ * path baked into its image.
225
+ */
226
+ workspace?: string | null;
227
+ };
228
+ /**
229
+ * Response body for `POST /agent-sessions`.
230
+ *
231
+ * Clients deserialize this, so both derives are used.
232
+ */
233
+ export type CreateAgentSessionResponse = {
234
+ /**
235
+ * The created session.
236
+ */
237
+ session: AgentSessionResponse;
238
+ };
239
+ /**
240
+ * The triggering mention on a create request.
241
+ *
242
+ * Clients serialize this, so both derives are used.
243
+ */
244
+ export type CreateSessionThread = {
245
+ /**
246
+ * Channel the mentioning message was posted in.
247
+ */
248
+ channelId: string;
249
+ /**
250
+ * The mention's text, quoted in the session's announcement.
251
+ */
252
+ content?: string;
253
+ /**
254
+ * The mentioning message.
255
+ */
256
+ messageId: string;
257
+ /**
258
+ * Thread the session belongs to; defaults to the message itself, which
259
+ * is how a top-level mention roots its own thread.
260
+ */
261
+ threadId?: string | null;
262
+ };
263
+ /**
264
+ * The provider-side identity of an externally-served session.
265
+ */
266
+ export type ExternalSessionResponse = {
267
+ /**
268
+ * The provider's display name for the agent, when it reported one.
269
+ */
270
+ name?: string | null;
271
+ /**
272
+ * Which provider serves the session, e.g. `cursor`.
273
+ */
274
+ provider: string;
275
+ /**
276
+ * The agent's page on the provider's site, for a client to link out to.
277
+ */
278
+ url?: string | null;
279
+ };
280
+ /**
281
+ * Which way a logged frame travelled, mirroring [`Message`]'s discriminant.
282
+ */
283
+ export type LogDirectionDto = 'to_server' | 'to_runtime';
284
+ /**
285
+ * The two fields [`AgentSessionLogEntryDto`] flattens in.
286
+ *
287
+ * Schema only. Nothing constructs one: the entry serializes through
288
+ * [`Message`], and this exists so the generated clients see `direction` and
289
+ * `content` as named fields instead of an open map. A hand-built copy could
290
+ * drift from the fold's wire format, and the point of the endpoint is that it
291
+ * cannot - so this describes that format without being able to produce it.
292
+ */
293
+ export type LogFrameDto = {
294
+ /**
295
+ * The protocol envelope, verbatim. Opaque here: it is Agent Runtime
296
+ * Protocol, whose shape belongs to the fold rather than this endpoint.
297
+ */
298
+ content: {
299
+ [key: string]: unknown;
300
+ };
301
+ /**
302
+ * Which way the frame travelled.
303
+ */
304
+ direction: LogDirectionDto;
305
+ };
306
+ /**
307
+ * Request body for renaming an agent session.
308
+ */
309
+ export type RenameAgentSessionRequest = {
310
+ /**
311
+ * New user-facing name. Leading and trailing whitespace is discarded.
312
+ */
313
+ name: string;
314
+ };
315
+ /**
316
+ * Named compute tier for a managed sandbox.
317
+ *
318
+ * The API and database store the name. CPU, RAM, and disk live in
319
+ * `crates/agent_harness/sandbox_sizes.json`.
320
+ */
321
+ export type SandboxSize = 'small' | 'default' | 'large';
322
+ /**
323
+ * Request or response body for a named sandbox size.
324
+ */
325
+ export type SandboxSizeBody = {
326
+ /**
327
+ * Named compute tier.
328
+ */
329
+ size: SandboxSize;
330
+ };
331
+ /**
332
+ * The agent behind a session, as much of it as rendering a message needs.
333
+ */
334
+ export type SessionBot = {
335
+ /**
336
+ * Avatar, when it has one.
337
+ */
338
+ avatarUrl?: string | null;
339
+ /**
340
+ * The bot's id. A message it sent has `"bot|{id}"` as its sender.
341
+ */
342
+ id: BotId;
343
+ /**
344
+ * Display name.
345
+ */
346
+ name: string;
347
+ };
348
+ /**
349
+ * Transport representation of a session's status, mirroring
350
+ * [`SessionStatus`].
351
+ */
352
+ export type SessionStatusDto = {
353
+ kind: 'no_messages';
354
+ } | {
355
+ /**
356
+ * The wire name of the system event, e.g. `acp_ready`.
357
+ */
358
+ event: string;
359
+ kind: 'event';
360
+ } | {
361
+ kind: 'disconnected';
362
+ };
363
+ export type GetAgentSandboxSizeData = {
364
+ body?: never;
365
+ path?: never;
366
+ query?: never;
367
+ url: '/agent-sandbox-size';
368
+ };
369
+ export type GetAgentSandboxSizeErrors = {
370
+ 401: string;
371
+ 500: string;
372
+ };
373
+ export type GetAgentSandboxSizeError = GetAgentSandboxSizeErrors[keyof GetAgentSandboxSizeErrors];
374
+ export type GetAgentSandboxSizeResponses = {
375
+ 200: SandboxSizeBody;
376
+ };
377
+ export type GetAgentSandboxSizeResponse = GetAgentSandboxSizeResponses[keyof GetAgentSandboxSizeResponses];
378
+ export type PutAgentSandboxSizeData = {
379
+ body: SandboxSizeBody;
380
+ path?: never;
381
+ query?: never;
382
+ url: '/agent-sandbox-size';
383
+ };
384
+ export type PutAgentSandboxSizeErrors = {
385
+ 401: string;
386
+ 500: string;
387
+ };
388
+ export type PutAgentSandboxSizeError = PutAgentSandboxSizeErrors[keyof PutAgentSandboxSizeErrors];
389
+ export type PutAgentSandboxSizeResponses = {
390
+ 200: SandboxSizeBody;
391
+ };
392
+ export type PutAgentSandboxSizeResponse = PutAgentSandboxSizeResponses[keyof PutAgentSandboxSizeResponses];
393
+ export type CreateAgentSessionData = {
394
+ body: CreateAgentSessionRequest;
395
+ path?: never;
396
+ query?: never;
397
+ url: '/agent-sessions';
398
+ };
399
+ export type CreateAgentSessionErrors = {
400
+ 401: string;
401
+ 403: string;
402
+ 404: string;
403
+ 422: string;
404
+ 500: string;
405
+ };
406
+ export type CreateAgentSessionError = CreateAgentSessionErrors[keyof CreateAgentSessionErrors];
407
+ export type CreateAgentSessionResponses = {
408
+ 201: CreateAgentSessionResponse;
409
+ };
410
+ export type CreateAgentSessionResponse2 = CreateAgentSessionResponses[keyof CreateAgentSessionResponses];
411
+ export type DeleteAgentSessionData = {
412
+ body?: never;
413
+ path: {
414
+ /**
415
+ * ID of the agent session
416
+ */
417
+ session_id: string;
418
+ };
419
+ query?: never;
420
+ url: '/agent-sessions/{session_id}';
421
+ };
422
+ export type DeleteAgentSessionErrors = {
423
+ 401: string;
424
+ 403: string;
425
+ 500: string;
426
+ };
427
+ export type DeleteAgentSessionError = DeleteAgentSessionErrors[keyof DeleteAgentSessionErrors];
428
+ export type DeleteAgentSessionResponses = {
429
+ 200: unknown;
430
+ };
431
+ export type GetAgentSessionData = {
432
+ body?: never;
433
+ path: {
434
+ /**
435
+ * ID of the agent session
436
+ */
437
+ session_id: string;
438
+ };
439
+ query?: never;
440
+ url: '/agent-sessions/{session_id}';
441
+ };
442
+ export type GetAgentSessionErrors = {
443
+ 401: string;
444
+ 403: string;
445
+ 500: string;
446
+ };
447
+ export type GetAgentSessionError = GetAgentSessionErrors[keyof GetAgentSessionErrors];
448
+ export type GetAgentSessionResponses = {
449
+ 200: AgentSessionResponse;
450
+ };
451
+ export type GetAgentSessionResponse = GetAgentSessionResponses[keyof GetAgentSessionResponses];
452
+ export type ControlAgentSessionData = {
453
+ body: ControlRequest;
454
+ path: {
455
+ /**
456
+ * ID of the agent session
457
+ */
458
+ session_id: string;
459
+ };
460
+ query?: never;
461
+ url: '/agent-sessions/{session_id}/control';
462
+ };
463
+ export type ControlAgentSessionErrors = {
464
+ 401: string;
465
+ 403: string;
466
+ 500: string;
467
+ };
468
+ export type ControlAgentSessionError = ControlAgentSessionErrors[keyof ControlAgentSessionErrors];
469
+ export type ControlAgentSessionResponses = {
470
+ /**
471
+ * Accepted; matches `requestId` on the folded message this action derives
472
+ */
473
+ 200: AgentActionId;
474
+ };
475
+ export type ControlAgentSessionResponse = ControlAgentSessionResponses[keyof ControlAgentSessionResponses];
476
+ export type GetAgentSessionLogData = {
477
+ body?: never;
478
+ path: {
479
+ /**
480
+ * ID of the agent session
481
+ */
482
+ session_id: string;
483
+ };
484
+ query?: never;
485
+ url: '/agent-sessions/{session_id}/log';
486
+ };
487
+ export type GetAgentSessionLogErrors = {
488
+ 401: string;
489
+ 403: string;
490
+ 500: string;
491
+ };
492
+ export type GetAgentSessionLogError = GetAgentSessionLogErrors[keyof GetAgentSessionLogErrors];
493
+ export type GetAgentSessionLogResponses = {
494
+ 200: AgentSessionLogResponse;
495
+ };
496
+ export type GetAgentSessionLogResponse = GetAgentSessionLogResponses[keyof GetAgentSessionLogResponses];
497
+ export type RenameAgentSessionData = {
498
+ body: RenameAgentSessionRequest;
499
+ path: {
500
+ /**
501
+ * ID of the agent session
502
+ */
503
+ session_id: string;
504
+ };
505
+ query?: never;
506
+ url: '/agent-sessions/{session_id}/name';
507
+ };
508
+ export type RenameAgentSessionErrors = {
509
+ 400: string;
510
+ 401: string;
511
+ 403: string;
512
+ 500: string;
513
+ };
514
+ export type RenameAgentSessionError = RenameAgentSessionErrors[keyof RenameAgentSessionErrors];
515
+ export type RenameAgentSessionResponses = {
516
+ 204: void;
517
+ };
518
+ export type RenameAgentSessionResponse = RenameAgentSessionResponses[keyof RenameAgentSessionResponses];
519
+ export type PutAgentSessionSandboxSizeData = {
520
+ body: SandboxSizeBody;
521
+ path: {
522
+ /**
523
+ * ID of the agent session
524
+ */
525
+ session_id: string;
526
+ };
527
+ query?: never;
528
+ url: '/agent-sessions/{session_id}/sandbox-size';
529
+ };
530
+ export type PutAgentSessionSandboxSizeErrors = {
531
+ 401: string;
532
+ 403: string;
533
+ 500: string;
534
+ };
535
+ export type PutAgentSessionSandboxSizeError = PutAgentSessionSandboxSizeErrors[keyof PutAgentSessionSandboxSizeErrors];
536
+ export type PutAgentSessionSandboxSizeResponses = {
537
+ 200: SandboxSizeBody;
538
+ };
539
+ export type PutAgentSessionSandboxSizeResponse = PutAgentSessionSandboxSizeResponses[keyof PutAgentSessionSandboxSizeResponses];
@@ -0,0 +1,2 @@
1
+ import type { Client, Config } from './types.gen';
2
+ export declare const createClient: (config?: Config) => Client;
@@ -0,0 +1,10 @@
1
+ export type { Auth } from '../core/auth.gen';
2
+ export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
3
+ export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
4
+ export { buildClientParams } from '../core/params.gen';
5
+ export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
6
+ export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
7
+ export type { ClientMeta } from '../core/types.gen';
8
+ export { createClient } from './client.gen';
9
+ export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from './types.gen';
10
+ export { createConfig, mergeHeaders } from './utils.gen';
@@ -0,0 +1,120 @@
1
+ import type { Auth } from '../core/auth.gen';
2
+ import type { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen';
3
+ import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen';
4
+ import type { Middleware } from './utils.gen';
5
+ export type ResponseStyle = 'data' | 'fields';
6
+ export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, CoreConfig {
7
+ /**
8
+ * Base URL for all requests made by this client.
9
+ */
10
+ baseUrl?: T['baseUrl'];
11
+ /**
12
+ * Fetch API implementation. You can use this option to provide a custom
13
+ * fetch instance.
14
+ *
15
+ * @default globalThis.fetch
16
+ */
17
+ fetch?: typeof fetch;
18
+ /**
19
+ * Please don't use the Fetch client for Next.js applications. The `next`
20
+ * options won't have any effect.
21
+ *
22
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
23
+ */
24
+ next?: never;
25
+ /**
26
+ * Return the response data parsed in a specified format. By default, `auto`
27
+ * will infer the appropriate method from the `Content-Type` response header.
28
+ * You can override this behavior with any of the {@link Body} methods.
29
+ * Select `stream` if you don't want to parse response data at all.
30
+ *
31
+ * @default 'auto'
32
+ */
33
+ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
34
+ /**
35
+ * Should we return only data or multiple fields (data, error, response, etc.)?
36
+ *
37
+ * @default 'fields'
38
+ */
39
+ responseStyle?: ResponseStyle;
40
+ /**
41
+ * Throw an error instead of returning it in the response?
42
+ *
43
+ * @default false
44
+ */
45
+ throwOnError?: T['throwOnError'];
46
+ }
47
+ export interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
48
+ responseStyle: TResponseStyle;
49
+ throwOnError: ThrowOnError;
50
+ }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
51
+ /**
52
+ * Any body that you want to add to your request.
53
+ *
54
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
55
+ */
56
+ body?: unknown;
57
+ path?: Record<string, unknown>;
58
+ query?: Record<string, unknown>;
59
+ /**
60
+ * Security mechanism(s) to use for the request.
61
+ */
62
+ security?: ReadonlyArray<Auth>;
63
+ url: Url;
64
+ }
65
+ export interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
66
+ headers: Headers;
67
+ serializedBody?: string;
68
+ }
69
+ export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
70
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
71
+ request: Request;
72
+ response: Response;
73
+ }> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
74
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
75
+ error: undefined;
76
+ } | {
77
+ data: undefined;
78
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
79
+ }) & {
80
+ /** request may be undefined, because error may be from building the request object itself */
81
+ request?: Request;
82
+ /** response may be undefined, because error may be from building the request object itself or from a network error */
83
+ response?: Response;
84
+ }>;
85
+ export interface ClientOptions {
86
+ baseUrl?: string;
87
+ responseStyle?: ResponseStyle;
88
+ throwOnError?: boolean;
89
+ }
90
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
91
+ type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
92
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
93
+ type BuildUrlFn = <TData extends {
94
+ body?: unknown;
95
+ path?: Record<string, unknown>;
96
+ query?: Record<string, unknown>;
97
+ url: string;
98
+ }>(options: TData & Options<TData>) => string;
99
+ export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
100
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
101
+ };
102
+ /**
103
+ * The `createClientConfig()` function will be called on client initialization
104
+ * and the returned object will become the client's initial configuration.
105
+ *
106
+ * You may want to initialize your client this way instead of calling
107
+ * `setConfig()`. This is useful for example if you're using Next.js
108
+ * to ensure your client always has the correct values.
109
+ */
110
+ export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
111
+ export interface TDataShape {
112
+ body?: unknown;
113
+ headers?: unknown;
114
+ path?: unknown;
115
+ query?: unknown;
116
+ url: string;
117
+ }
118
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
119
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
120
+ export {};